@woven-canvas/vue 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Synced as zh, defineCanvasSingleton as Fh, CanvasStore as H0 } from "@woven-ecs/canvas-store";
2
- import { CanvasComponentDef as oI, CanvasSingletonDef as rI, CanvasStore as sI, Synced as iI, defineCanvasComponent as lI, defineCanvasSingleton as aI } from "@woven-ecs/canvas-store";
2
+ import { CanvasComponentDef as sI, CanvasSingletonDef as iI, CanvasStore as lI, Synced as aI, defineCanvasComponent as cI, defineCanvasSingleton as uI } from "@woven-ecs/canvas-store";
3
3
  import { ArrowHeadKind as Qe, ArcArrow as fn, ElbowArrow as hn, createArrowsPlugin as V0 } from "@woven-canvas/plugin-arrows";
4
- import { inject as ge, shallowRef as Ae, onUnmounted as $e, defineComponent as q, computed as O, openBlock as C, createElementBlock as A, unref as F, Fragment as ie, createElementVNode as x, createCommentVNode as j, ref as B, onMounted as wt, createBlock as ee, renderList as Se, toDisplayString as _e, normalizeStyle as ve, watch as pe, normalizeClass as Te, withAsyncContext as Dr, h as Xi, getCurrentInstance as Cc, watchEffect as Ws, nextTick as Gn, onBeforeUnmount as W0, markRaw as j0, customRef as U0, toValue as st, reactive as Hh, readonly as Rl, createVNode as Z, mergeProps as Xo, getCurrentScope as Vh, onScopeDispose as Wh, shallowReadonly as Lo, provide as ho, withModifiers as At, renderSlot as me, Teleport as ps, withCtx as se, Transition as Mc, withDirectives as jh, withKeys as td, vModelText as Uh, useSlots as Kh, resolveDynamicComponent as xa, createTextVNode as Sa, normalizeProps as qh, guardReactiveProps as Jh, Suspense as K0, createSlots as q0 } from "vue";
5
- import { hasComponent as Fe, Color as Zo, EmbedProvider as de, Embed as Ca, Block as le, Frame as js, FrameDropTarget as J0, UploadState as jn, Asset as gn, Image as Us, getBlockDef as Gh, Grid as bn, RankBounds as Yh, createEntity as Zi, addComponent as He, Synced as Tt, defineQuery as ct, Selected as Qi, Mouse as Ma, Camera as Pe, canBlockEdit as Tc, EditAfterPlacing as Ec, SelectBlock as G0, isAlive as Y0, cascadeDelete as X0, getResources as cr, deselectAll as Ta, selectBlock as Ea, findFrameAtPoint as Z0, AssignFrameChildren as Q0, Text as it, getDescendants as ey, Aabb as Uo, DeselectAll as Ac, Edited as Ic, Screen as eo, TransformBoxStateSingleton as Oc, TransformBoxState as ty, UpdateTransformBox as _c, SelectionStateSingleton as el, SelectionState as Jr, TransformHandle as nd, TransformHandleKind as ny, removeEntity as Aa, ResetKeyboard as oy, VerticalAlignment as Ze, StrokeKind as Mt, Shape as Gt, VerticalAlign as Ks, ResizeMode as Pl, DuplicateSelected as ry, BringForwardSelected as sy, SendBackwardSelected as iy, RemoveSelected as Xh, TextAlignment as un, getPluginResources as Io, Undo as Dc, Redo as qs, detectEmbedProvider as ly, validateEmbedUrl as ay, resolveEmbedUrl as cy, Controls as Bt, Cursor as Nc, field as pn, defineEditorState as uy, defineEditorSystem as tl, isReadonly as nl, getPointerInput as Rc, PointerButton as Zh, PlaceBlockEvent as Js, Held as Ia, on as od, Key as Ll, Connector as rd, Hovered as dy, Opacity as sd, User as $l, Layer as fy, UserData as hy, Editor as py, SINGLETON_ENTITY_ID as my, EventType as $o, resolveLayerRank as id, compareBlockOrder as gy } from "@woven-canvas/core";
4
+ import { inject as ge, shallowRef as Ae, onUnmounted as $e, defineComponent as q, computed as O, openBlock as C, createElementBlock as A, unref as F, Fragment as ie, createElementVNode as x, createCommentVNode as j, ref as B, onMounted as kt, createBlock as ee, renderList as Se, toDisplayString as _e, normalizeStyle as ve, watch as pe, normalizeClass as Te, withAsyncContext as Dr, h as Xi, getCurrentInstance as Cc, watchEffect as Ws, nextTick as Gn, onBeforeUnmount as W0, markRaw as j0, customRef as U0, toValue as st, reactive as Hh, readonly as Rl, createVNode as Z, mergeProps as Xo, getCurrentScope as Vh, onScopeDispose as Wh, shallowReadonly as Lo, provide as ho, withModifiers as ut, renderSlot as me, Teleport as ps, withCtx as se, Transition as Mc, withDirectives as jh, withKeys as td, vModelText as Uh, useSlots as Kh, resolveDynamicComponent as xa, createTextVNode as Sa, normalizeProps as qh, guardReactiveProps as Jh, Suspense as K0, createSlots as q0 } from "vue";
5
+ import { hasComponent as Fe, Color as Zo, EmbedProvider as de, Embed as Ca, Block as le, Frame as js, FrameDropTarget as J0, UploadState as jn, Asset as gn, Image as Us, getBlockDef as Gh, Grid as bn, RankBounds as Yh, createEntity as Zi, addComponent as He, Synced as Et, defineQuery as ct, Selected as Qi, Mouse as Ma, Camera as Pe, canBlockEdit as Tc, EditAfterPlacing as Ec, SelectBlock as G0, isAlive as Y0, cascadeDelete as X0, getResources as cr, deselectAll as Ta, selectBlock as Ea, findFrameAtPoint as Z0, AssignFrameChildren as Q0, Text as it, getDescendants as ey, Aabb as Uo, DeselectAll as Ac, Edited as Ic, Screen as eo, TransformBoxStateSingleton as Oc, TransformBoxState as ty, UpdateTransformBox as _c, SelectionStateSingleton as el, SelectionState as Jr, TransformHandle as nd, TransformHandleKind as ny, removeEntity as Aa, ResetKeyboard as oy, VerticalAlignment as Ze, StrokeKind as Tt, Shape as Gt, VerticalAlign as Ks, ResizeMode as Pl, DuplicateSelected as ry, BringForwardSelected as sy, SendBackwardSelected as iy, RemoveSelected as Xh, TextAlignment as un, getPluginResources as Io, Undo as Dc, Redo as qs, detectEmbedProvider as ly, validateEmbedUrl as ay, resolveEmbedUrl as cy, Controls as Bt, Cursor as Nc, field as pn, defineEditorState as uy, defineEditorSystem as tl, isReadonly as nl, getPointerInput as Rc, PointerButton as Zh, PlaceBlockEvent as Js, Held as Ia, on as od, Key as Ll, Connector as rd, Hovered as dy, Opacity as sd, User as $l, Layer as fy, UserData as hy, Editor as py, SINGLETON_ENTITY_ID as my, EventType as $o, resolveLayerRank as id, compareBlockOrder as gy } from "@woven-canvas/core";
6
6
  import { Arc as rn, Vec2 as In, Aabb as Ln, Rect as yy } from "@woven-canvas/math";
7
7
  import { EraserStroke as vy, POINTS_CAPACITY as ld, createEraserPlugin as wy } from "@woven-canvas/plugin-eraser";
8
8
  import { PenStrokeKind as Oa, PenStroke as _a, createPenPlugin as ky } from "@woven-canvas/plugin-pen";
@@ -171,7 +171,7 @@ const My = { key: 0 }, Ty = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"],
171
171
  setup(n) {
172
172
  const e = n, t = B(null), o = B(0), r = B(0), s = De(e.entityId, Zo), i = De(e.entityId, fn);
173
173
  let l = null;
174
- wt(() => {
174
+ kt(() => {
175
175
  t.value && (l = new ResizeObserver(() => {
176
176
  t.value && (o.value = t.value.clientWidth, r.value = t.value.clientHeight);
177
177
  }), l.observe(t.value), o.value = t.value.clientWidth, r.value = t.value.clientHeight);
@@ -354,7 +354,7 @@ const qy = /* @__PURE__ */ Oo(jy, [["render", Ky]]), Jy = {
354
354
  setup(n) {
355
355
  const e = n, t = B(null), o = B(0), r = B(0), s = De(e.entityId, Zo), i = De(e.entityId, hn), l = O(() => e.hovered || e.selected);
356
356
  let a = null;
357
- wt(() => {
357
+ kt(() => {
358
358
  t.value && (a = new ResizeObserver(() => {
359
359
  t.value && (o.value = t.value.clientWidth, r.value = t.value.clientHeight);
360
360
  }), a.observe(t.value), o.value = t.value.clientWidth, r.value = t.value.clientHeight);
@@ -693,8 +693,8 @@ function yv(n, e = {}) {
693
693
  let { pressure: X } = n[J], { point: Y, vector: re, distance: fe, runningLength: ke } = n[J], Be = J === n.length - 1;
694
694
  if (!Be && p - ke < 3) continue;
695
695
  r ? (s && (X = np(v, fe, t)), b = dd(t, r, X, i)) : b = t / 2, M === void 0 && (M = b);
696
- let qe = ke < m ? d(ke / m) : 1, bt = p - ke < g ? h((p - ke) / g) : 1;
697
- b = Math.max(0.01, b * Math.min(qe, bt));
696
+ let qe = ke < m ? d(ke / m) : 1, xt = p - ke < g ? h((p - ke) / g) : 1;
697
+ b = Math.max(0.01, b * Math.min(qe, xt));
698
698
  let Dt = (Be ? n[J] : n[J + 1]).vector, Cn = Be ? 1 : hd(re, Dt), yr = hd(re, S) < 0 && !N, oo = Cn !== null && Cn < 0;
699
699
  if (yr || oo) {
700
700
  Fl(Ye, S), zl(Ye, Ye, b);
@@ -973,7 +973,7 @@ const Mv = { class: "wov-image-block" }, Tv = {
973
973
  w();
974
974
  },
975
975
  { immediate: !0 }
976
- ), wt(() => {
976
+ ), kt(() => {
977
977
  w();
978
978
  }), pe(
979
979
  () => [o.block.size[0], o.block.size[1]],
@@ -4005,15 +4005,15 @@ class Ba {
4005
4005
  return (this.delInfo & $s) > 0;
4006
4006
  }
4007
4007
  }
4008
- class gt {
4008
+ class yt {
4009
4009
  /**
4010
4010
  Create a position map. The modifications to the document are
4011
4011
  represented as an array of numbers, in which each group of three
4012
4012
  represents a modified chunk as `[start, oldSize, newSize]`.
4013
4013
  */
4014
4014
  constructor(e, t = !1) {
4015
- if (this.ranges = e, this.inverted = t, !e.length && gt.empty)
4016
- return gt.empty;
4015
+ if (this.ranges = e, this.inverted = t, !e.length && yt.empty)
4016
+ return yt.empty;
4017
4017
  }
4018
4018
  /**
4019
4019
  @internal
@@ -4084,7 +4084,7 @@ class gt {
4084
4084
  map positions in the post-step document to the pre-step document.
4085
4085
  */
4086
4086
  invert() {
4087
- return new gt(this.ranges, !this.inverted);
4087
+ return new yt(this.ranges, !this.inverted);
4088
4088
  }
4089
4089
  /**
4090
4090
  @internal
@@ -4098,10 +4098,10 @@ class gt {
4098
4098
  sub-document to a larger document, or vice-versa.
4099
4099
  */
4100
4100
  static offset(e) {
4101
- return e == 0 ? gt.empty : new gt(e < 0 ? [0, -e, 0] : [0, 0, e]);
4101
+ return e == 0 ? yt.empty : new yt(e < 0 ? [0, -e, 0] : [0, 0, e]);
4102
4102
  }
4103
4103
  }
4104
- gt.empty = new gt([]);
4104
+ yt.empty = new yt([]);
4105
4105
  class Qr {
4106
4106
  /**
4107
4107
  Create a new mapping with the given position maps.
@@ -4217,7 +4217,7 @@ class at {
4217
4217
  and the new document.
4218
4218
  */
4219
4219
  getMap() {
4220
- return gt.empty;
4220
+ return yt.empty;
4221
4221
  }
4222
4222
  /**
4223
4223
  Try to merge this step with another one, to be applied directly
@@ -4467,7 +4467,7 @@ class ze extends at {
4467
4467
  return this.structure && za(e, this.from, this.to) ? Le.fail("Structure replace would overwrite content") : Le.fromReplace(e, this.from, this.to, this.slice);
4468
4468
  }
4469
4469
  getMap() {
4470
- return new gt([this.from, this.to - this.from, this.slice.size]);
4470
+ return new yt([this.from, this.to - this.from, this.slice.size]);
4471
4471
  }
4472
4472
  invert(e) {
4473
4473
  return new ze(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
@@ -4522,7 +4522,7 @@ class Ve extends at {
4522
4522
  return o ? Le.fromReplace(e, this.from, this.to, o) : Le.fail("Content does not fit in gap");
4523
4523
  }
4524
4524
  getMap() {
4525
- return new gt([
4525
+ return new yt([
4526
4526
  this.from,
4527
4527
  this.gapFrom - this.from,
4528
4528
  this.insert,
@@ -5165,7 +5165,7 @@ class Jo extends at {
5165
5165
  return Le.fromReplace(e, this.pos, this.pos + 1, new G($.from(r), 0, t.isLeaf ? 0 : 1));
5166
5166
  }
5167
5167
  getMap() {
5168
- return gt.empty;
5168
+ return yt.empty;
5169
5169
  }
5170
5170
  invert(e) {
5171
5171
  return new Jo(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
@@ -5200,7 +5200,7 @@ class es extends at {
5200
5200
  return Le.ok(o);
5201
5201
  }
5202
5202
  getMap() {
5203
- return gt.empty;
5203
+ return yt.empty;
5204
5204
  }
5205
5205
  invert(e) {
5206
5206
  return new es(this.attr, e.attrs[this.attr]);
@@ -5579,7 +5579,7 @@ class ue {
5579
5579
  negative, it will search backwards first.
5580
5580
  */
5581
5581
  static near(e, t = 1) {
5582
- return this.findFrom(e, t) || this.findFrom(e, -t) || new yt(e.node(0));
5582
+ return this.findFrom(e, t) || this.findFrom(e, -t) || new vt(e.node(0));
5583
5583
  }
5584
5584
  /**
5585
5585
  Find the cursor or leaf node selection closest to the start of
@@ -5588,14 +5588,14 @@ class ue {
5588
5588
  exists.
5589
5589
  */
5590
5590
  static atStart(e) {
5591
- return Ho(e, e, 0, 0, 1) || new yt(e);
5591
+ return Ho(e, e, 0, 0, 1) || new vt(e);
5592
5592
  }
5593
5593
  /**
5594
5594
  Find the cursor or leaf node selection closest to the end of the
5595
5595
  given document.
5596
5596
  */
5597
5597
  static atEnd(e) {
5598
- return Ho(e, e, e.content.size, e.childCount, -1) || new yt(e);
5598
+ return Ho(e, e, e.content.size, e.childCount, -1) || new vt(e);
5599
5599
  }
5600
5600
  /**
5601
5601
  Deserialize the JSON representation of a selection. Must be
@@ -5791,7 +5791,7 @@ class Fc {
5791
5791
  return o && oe.isSelectable(o) ? new oe(t) : ue.near(t);
5792
5792
  }
5793
5793
  }
5794
- class yt extends ue {
5794
+ class vt extends ue {
5795
5795
  /**
5796
5796
  Create an all-selection over the given document.
5797
5797
  */
@@ -5813,25 +5813,25 @@ class yt extends ue {
5813
5813
  @internal
5814
5814
  */
5815
5815
  static fromJSON(e) {
5816
- return new yt(e);
5816
+ return new vt(e);
5817
5817
  }
5818
5818
  map(e) {
5819
- return new yt(e);
5819
+ return new vt(e);
5820
5820
  }
5821
5821
  eq(e) {
5822
- return e instanceof yt;
5822
+ return e instanceof vt;
5823
5823
  }
5824
5824
  getBookmark() {
5825
5825
  return D1;
5826
5826
  }
5827
5827
  }
5828
- ue.jsonID("all", yt);
5828
+ ue.jsonID("all", vt);
5829
5829
  const D1 = {
5830
5830
  map() {
5831
5831
  return this;
5832
5832
  },
5833
5833
  resolve(n) {
5834
- return new yt(n);
5834
+ return new vt(n);
5835
5835
  }
5836
5836
  };
5837
5837
  function Ho(n, e, t, o, r, s = !1) {
@@ -6480,7 +6480,7 @@ const F1 = (n, e) => {
6480
6480
  return !0;
6481
6481
  }, Gp = (n, e) => {
6482
6482
  let t = n.selection, { $from: o, $to: r } = t;
6483
- if (t instanceof yt || o.parent.inlineContent || r.parent.inlineContent)
6483
+ if (t instanceof vt || o.parent.inlineContent || r.parent.inlineContent)
6484
6484
  return !1;
6485
6485
  let s = jc(r.parent.contentMatchAt(r.indexAfter()));
6486
6486
  if (!s || !s.isTextblock)
@@ -6520,7 +6520,7 @@ function H1(n) {
6520
6520
  s.unshift(null);
6521
6521
  }
6522
6522
  let u = e.tr;
6523
- (e.selection instanceof ae || e.selection instanceof yt) && u.deleteSelection();
6523
+ (e.selection instanceof ae || e.selection instanceof vt) && u.deleteSelection();
6524
6524
  let d = u.mapping.map(o.pos), f = wn(u.doc, d, s.length, s);
6525
6525
  if (f || (s[0] = l ? { type: l } : null, f = wn(u.doc, d, s.length, s)), !f)
6526
6526
  return !1;
@@ -6739,7 +6739,7 @@ function Hd(n, e, t, o, r) {
6739
6739
  for (var s; ; ) {
6740
6740
  if (n == t && e == o)
6741
6741
  return !0;
6742
- if (e == (r < 0 ? 0 : Et(n))) {
6742
+ if (e == (r < 0 ? 0 : At(n))) {
6743
6743
  let i = n.parentNode;
6744
6744
  if (!i || i.nodeType != 1 || ms(n) || nw.test(n.nodeName) || n.contentEditable == "false")
6745
6745
  return !1;
@@ -6752,12 +6752,12 @@ function Hd(n, e, t, o, r) {
6752
6752
  else
6753
6753
  return !1;
6754
6754
  else
6755
- n = i, e = r < 0 ? Et(n) : 0;
6755
+ n = i, e = r < 0 ? At(n) : 0;
6756
6756
  } else
6757
6757
  return !1;
6758
6758
  }
6759
6759
  }
6760
- function Et(n) {
6760
+ function At(n) {
6761
6761
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
6762
6762
  }
6763
6763
  function ow(n, e) {
@@ -6767,7 +6767,7 @@ function ow(n, e) {
6767
6767
  if (n.nodeType == 1 && e > 0) {
6768
6768
  if (n.contentEditable == "false")
6769
6769
  return null;
6770
- n = n.childNodes[e - 1], e = Et(n);
6770
+ n = n.childNodes[e - 1], e = At(n);
6771
6771
  } else if (n.parentNode && !ms(n))
6772
6772
  e = et(n), n = n.parentNode;
6773
6773
  else
@@ -6789,13 +6789,13 @@ function rw(n, e) {
6789
6789
  }
6790
6790
  }
6791
6791
  function sw(n, e, t) {
6792
- for (let o = e == 0, r = e == Et(n); o || r; ) {
6792
+ for (let o = e == 0, r = e == At(n); o || r; ) {
6793
6793
  if (n == t)
6794
6794
  return !0;
6795
6795
  let s = et(n);
6796
6796
  if (n = n.parentNode, !n)
6797
6797
  return !1;
6798
- o = o && s == 0, r = r && s == Et(n);
6798
+ o = o && s == 0, r = r && s == At(n);
6799
6799
  }
6800
6800
  }
6801
6801
  function ms(n) {
@@ -6822,18 +6822,18 @@ function lw(n, e, t) {
6822
6822
  try {
6823
6823
  let o = n.caretPositionFromPoint(e, t);
6824
6824
  if (o)
6825
- return { node: o.offsetNode, offset: Math.min(Et(o.offsetNode), o.offset) };
6825
+ return { node: o.offsetNode, offset: Math.min(At(o.offsetNode), o.offset) };
6826
6826
  } catch {
6827
6827
  }
6828
6828
  if (n.caretRangeFromPoint) {
6829
6829
  let o = n.caretRangeFromPoint(e, t);
6830
6830
  if (o)
6831
- return { node: o.startContainer, offset: Math.min(Et(o.startContainer), o.startOffset) };
6831
+ return { node: o.startContainer, offset: Math.min(At(o.startContainer), o.startOffset) };
6832
6832
  }
6833
6833
  }
6834
- const Zt = typeof navigator < "u" ? navigator : null, Vd = typeof document < "u" ? document : null, to = Zt && Zt.userAgent || "", Ha = /Edge\/(\d+)/.exec(to), Qp = /MSIE \d/.exec(to), Va = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(to), mt = !!(Qp || Va || Ha), Kn = Qp ? document.documentMode : Va ? +Va[1] : Ha ? +Ha[1] : 0, It = !mt && /gecko\/(\d+)/i.test(to);
6834
+ const Zt = typeof navigator < "u" ? navigator : null, Vd = typeof document < "u" ? document : null, to = Zt && Zt.userAgent || "", Ha = /Edge\/(\d+)/.exec(to), Qp = /MSIE \d/.exec(to), Va = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(to), gt = !!(Qp || Va || Ha), Kn = Qp ? document.documentMode : Va ? +Va[1] : Ha ? +Ha[1] : 0, It = !gt && /gecko\/(\d+)/i.test(to);
6835
6835
  It && +(/Firefox\/(\d+)/.exec(to) || [0, 0])[1];
6836
- const Wa = !mt && /Chrome\/(\d+)/.exec(to), nt = !!Wa, em = Wa ? +Wa[1] : 0, lt = !mt && !!Zt && /Apple Computer/.test(Zt.vendor), nr = lt && (/Mobile\/\w+/.test(to) || !!Zt && Zt.maxTouchPoints > 2), Ct = nr || (Zt ? /Mac/.test(Zt.platform) : !1), tm = Zt ? /Win/.test(Zt.platform) : !1, mn = /Android \d/.test(to), gs = !!Vd && "webkitFontSmoothing" in Vd.documentElement.style, aw = gs ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6836
+ const Wa = !gt && /Chrome\/(\d+)/.exec(to), nt = !!Wa, em = Wa ? +Wa[1] : 0, lt = !gt && !!Zt && /Apple Computer/.test(Zt.vendor), nr = lt && (/Mobile\/\w+/.test(to) || !!Zt && Zt.maxTouchPoints > 2), Mt = nr || (Zt ? /Mac/.test(Zt.platform) : !1), tm = Zt ? /Win/.test(Zt.platform) : !1, mn = /Android \d/.test(to), gs = !!Vd && "webkitFontSmoothing" in Vd.documentElement.style, aw = gs ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6837
6837
  function cw(n) {
6838
6838
  let e = n.defaultView && n.defaultView.visualViewport;
6839
6839
  return e ? {
@@ -7068,24 +7068,24 @@ function im(n, e, t) {
7068
7068
  return t < 0 && !r ? (c++, u = -1) : t >= 0 && r == o.nodeValue.length ? (a--, u = 1) : t < 0 ? a-- : c++, kr(An(dn(o, a, c), u), u < 0);
7069
7069
  }
7070
7070
  if (!n.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
7071
- if (s == null && r && (t < 0 || r == Et(o))) {
7071
+ if (s == null && r && (t < 0 || r == At(o))) {
7072
7072
  let a = o.childNodes[r - 1];
7073
7073
  if (a.nodeType == 1)
7074
7074
  return Gl(a.getBoundingClientRect(), !1);
7075
7075
  }
7076
- if (s == null && r < Et(o)) {
7076
+ if (s == null && r < At(o)) {
7077
7077
  let a = o.childNodes[r];
7078
7078
  if (a.nodeType == 1)
7079
7079
  return Gl(a.getBoundingClientRect(), !0);
7080
7080
  }
7081
7081
  return Gl(o.getBoundingClientRect(), t >= 0);
7082
7082
  }
7083
- if (s == null && r && (t < 0 || r == Et(o))) {
7084
- let a = o.childNodes[r - 1], c = a.nodeType == 3 ? dn(a, Et(a) - (i ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
7083
+ if (s == null && r && (t < 0 || r == At(o))) {
7084
+ let a = o.childNodes[r - 1], c = a.nodeType == 3 ? dn(a, At(a) - (i ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
7085
7085
  if (c)
7086
7086
  return kr(An(c, 1), !1);
7087
7087
  }
7088
- if (s == null && r < Et(o)) {
7088
+ if (s == null && r < At(o)) {
7089
7089
  let a = o.childNodes[r];
7090
7090
  for (; a.pmViewDesc && a.pmViewDesc.ignoreForCoords; )
7091
7091
  a = a.nextSibling;
@@ -8283,7 +8283,7 @@ function Rw(n) {
8283
8283
  if (!e)
8284
8284
  return;
8285
8285
  let t = n.cursorWrapper.dom, o = t.nodeName == "IMG";
8286
- o ? e.collapse(t.parentNode, et(t) + 1) : e.collapse(t, 0), !o && !n.state.selection.visible && mt && Kn <= 11 && (t.disabled = !0, t.disabled = !1);
8286
+ o ? e.collapse(t.parentNode, et(t) + 1) : e.collapse(t, 0), !o && !n.state.selection.visible && gt && Kn <= 11 && (t.disabled = !0, t.disabled = !1);
8287
8287
  }
8288
8288
  function pm(n, e) {
8289
8289
  if (e instanceof oe) {
@@ -8335,7 +8335,7 @@ function nf(n, e, t) {
8335
8335
  if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
8336
8336
  let r = Ka(n.state, e);
8337
8337
  return r && r instanceof oe ? On(n, r) : !1;
8338
- } else if (!(Ct && t.indexOf("m") > -1)) {
8338
+ } else if (!(Mt && t.indexOf("m") > -1)) {
8339
8339
  let r = o.$head, s = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, i;
8340
8340
  if (!s || s.isText)
8341
8341
  return !1;
@@ -8495,7 +8495,7 @@ function of(n, e) {
8495
8495
  }
8496
8496
  function rf(n, e, t) {
8497
8497
  let o = n.state.selection;
8498
- if (o instanceof ae && !o.empty || t.indexOf("s") > -1 || Ct && t.indexOf("m") > -1)
8498
+ if (o instanceof ae && !o.empty || t.indexOf("s") > -1 || Mt && t.indexOf("m") > -1)
8499
8499
  return !1;
8500
8500
  let { $from: r, $to: s } = o;
8501
8501
  if (!r.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -8504,7 +8504,7 @@ function rf(n, e, t) {
8504
8504
  return On(n, i);
8505
8505
  }
8506
8506
  if (!r.parent.inlineContent) {
8507
- let i = e < 0 ? r : s, l = o instanceof yt ? ue.near(i, e) : ue.findFrom(i, e);
8507
+ let i = e < 0 ? r : s, l = o instanceof vt ? ue.near(i, e) : ue.findFrom(i, e);
8508
8508
  return l ? On(n, l) : !1;
8509
8509
  }
8510
8510
  return !1;
@@ -8545,24 +8545,24 @@ function Hw(n) {
8545
8545
  }
8546
8546
  function Vw(n, e) {
8547
8547
  let t = e.keyCode, o = Hw(e);
8548
- if (t == 8 || Ct && t == 72 && o == "c")
8548
+ if (t == 8 || Mt && t == 72 && o == "c")
8549
8549
  return sf(n, -1) || zo(n, -1);
8550
- if (t == 46 && !e.shiftKey || Ct && t == 68 && o == "c")
8550
+ if (t == 46 && !e.shiftKey || Mt && t == 68 && o == "c")
8551
8551
  return sf(n, 1) || zo(n, 1);
8552
8552
  if (t == 13 || t == 27)
8553
8553
  return !0;
8554
- if (t == 37 || Ct && t == 66 && o == "c") {
8554
+ if (t == 37 || Mt && t == 66 && o == "c") {
8555
8555
  let r = t == 37 ? of(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
8556
8556
  return nf(n, r, o) || zo(n, r);
8557
- } else if (t == 39 || Ct && t == 70 && o == "c") {
8557
+ } else if (t == 39 || Mt && t == 70 && o == "c") {
8558
8558
  let r = t == 39 ? of(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
8559
8559
  return nf(n, r, o) || zo(n, r);
8560
8560
  } else {
8561
- if (t == 38 || Ct && t == 80 && o == "c")
8561
+ if (t == 38 || Mt && t == 80 && o == "c")
8562
8562
  return rf(n, -1, o) || zo(n, -1);
8563
- if (t == 40 || Ct && t == 78 && o == "c")
8563
+ if (t == 40 || Mt && t == 78 && o == "c")
8564
8564
  return Fw(n) || rf(n, 1, o) || zo(n, 1);
8565
- if (o == (Ct ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
8565
+ if (o == (Mt ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
8566
8566
  return !0;
8567
8567
  }
8568
8568
  return !1;
@@ -8757,17 +8757,17 @@ function Jw(n, e) {
8757
8757
  }
8758
8758
  return new G(r, s, i);
8759
8759
  }
8760
- const dt = {}, ft = {}, Gw = { touchstart: !0, touchmove: !0 };
8760
+ const ft = {}, ht = {}, Gw = { touchstart: !0, touchmove: !0 };
8761
8761
  class Yw {
8762
8762
  constructor() {
8763
8763
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.badSafariComposition = !1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
8764
8764
  }
8765
8765
  }
8766
8766
  function Xw(n) {
8767
- for (let e in dt) {
8768
- let t = dt[e];
8767
+ for (let e in ft) {
8768
+ let t = ft[e];
8769
8769
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (o) => {
8770
- Qw(n, o) && !Yc(n, o) && (n.editable || !(o.type in ft)) && t(n, o);
8770
+ Qw(n, o) && !Yc(n, o) && (n.editable || !(o.type in ht)) && t(n, o);
8771
8771
  }, Gw[e] ? { passive: !0 } : void 0);
8772
8772
  }
8773
8773
  lt && n.dom.addEventListener("input", () => null), Ga(n);
@@ -8804,9 +8804,9 @@ function Qw(n, e) {
8804
8804
  return !0;
8805
8805
  }
8806
8806
  function ek(n, e) {
8807
- !Yc(n, e) && dt[e.type] && (n.editable || !(e.type in ft)) && dt[e.type](n, e);
8807
+ !Yc(n, e) && ft[e.type] && (n.editable || !(e.type in ht)) && ft[e.type](n, e);
8808
8808
  }
8809
- ft.keydown = (n, e) => {
8809
+ ht.keydown = (n, e) => {
8810
8810
  let t = e;
8811
8811
  if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !Cm(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(mn && nt && t.keyCode == 13)))
8812
8812
  if (t.keyCode != 229 && n.domObserver.forceFlush(), nr && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
@@ -8816,12 +8816,12 @@ ft.keydown = (n, e) => {
8816
8816
  }, 200);
8817
8817
  } else n.someProp("handleKeyDown", (o) => o(n, t)) || Vw(n, t) ? t.preventDefault() : Hn(n, "key");
8818
8818
  };
8819
- ft.keyup = (n, e) => {
8819
+ ht.keyup = (n, e) => {
8820
8820
  e.keyCode == 16 && (n.input.shiftKey = !1);
8821
8821
  };
8822
- ft.keypress = (n, e) => {
8822
+ ht.keypress = (n, e) => {
8823
8823
  let t = e;
8824
- if (Cm(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Ct && t.metaKey)
8824
+ if (Cm(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Mt && t.metaKey)
8825
8825
  return;
8826
8826
  if (n.someProp("handleKeyPress", (r) => r(n, t))) {
8827
8827
  t.preventDefault();
@@ -8906,8 +8906,8 @@ function lk(n, e, t) {
8906
8906
  function Zc(n) {
8907
8907
  return ri(n);
8908
8908
  }
8909
- const Sm = Ct ? "metaKey" : "ctrlKey";
8910
- dt.mousedown = (n, e) => {
8909
+ const Sm = Mt ? "metaKey" : "ctrlKey";
8910
+ ft.mousedown = (n, e) => {
8911
8911
  let t = e;
8912
8912
  n.input.shiftKey = t.shiftKey;
8913
8913
  let o = Zc(n), r = Date.now(), s = "singleClick";
@@ -8961,18 +8961,18 @@ class ak {
8961
8961
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
8962
8962
  }
8963
8963
  }
8964
- dt.touchstart = (n) => {
8964
+ ft.touchstart = (n) => {
8965
8965
  n.input.lastTouch = Date.now(), Zc(n), Hn(n, "pointer");
8966
8966
  };
8967
- dt.touchmove = (n) => {
8967
+ ft.touchmove = (n) => {
8968
8968
  n.input.lastTouch = Date.now(), Hn(n, "pointer");
8969
8969
  };
8970
- dt.contextmenu = (n) => Zc(n);
8970
+ ft.contextmenu = (n) => Zc(n);
8971
8971
  function Cm(n, e) {
8972
8972
  return n.composing ? !0 : lt && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
8973
8973
  }
8974
8974
  const ck = mn ? 5e3 : -1;
8975
- ft.compositionstart = ft.compositionupdate = (n) => {
8975
+ ht.compositionstart = ht.compositionupdate = (n) => {
8976
8976
  if (!n.composing) {
8977
8977
  n.domObserver.flush();
8978
8978
  let { state: e } = n, t = e.selection.$to;
@@ -9003,7 +9003,7 @@ function uk(n) {
9003
9003
  let o = e.childNodes[t];
9004
9004
  return o.nodeType == 1 && o.contentEditable == "false";
9005
9005
  }
9006
- ft.compositionend = (n, e) => {
9006
+ ht.compositionend = (n, e) => {
9007
9007
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.badSafariComposition ? n.domObserver.forceFlush() : n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, Mm(n, 20));
9008
9008
  };
9009
9009
  function Mm(n, e) {
@@ -9055,8 +9055,8 @@ function hk(n, e) {
9055
9055
  t.parentNode && t.parentNode.removeChild(t), n.focus();
9056
9056
  }, 50);
9057
9057
  }
9058
- const ts = mt && Kn < 15 || nr && aw < 604;
9059
- dt.copy = ft.cut = (n, e) => {
9058
+ const ts = gt && Kn < 15 || nr && aw < 604;
9059
+ ft.copy = ht.cut = (n, e) => {
9060
9060
  let t = e, o = n.state.selection, r = t.type == "cut";
9061
9061
  if (o.empty)
9062
9062
  return;
@@ -9092,7 +9092,7 @@ function Em(n) {
9092
9092
  let t = n.getData("text/uri-list");
9093
9093
  return t ? t.replace(/\r?\n/g, " ") : "";
9094
9094
  }
9095
- ft.paste = (n, e) => {
9095
+ ht.paste = (n, e) => {
9096
9096
  let t = e;
9097
9097
  if (n.composing && !mn)
9098
9098
  return;
@@ -9104,12 +9104,12 @@ class Am {
9104
9104
  this.slice = e, this.move = t, this.node = o;
9105
9105
  }
9106
9106
  }
9107
- const gk = Ct ? "altKey" : "ctrlKey";
9107
+ const gk = Mt ? "altKey" : "ctrlKey";
9108
9108
  function Im(n, e) {
9109
9109
  let t = n.someProp("dragCopies", (o) => !o(e));
9110
9110
  return t ?? !e[gk];
9111
9111
  }
9112
- dt.dragstart = (n, e) => {
9112
+ ft.dragstart = (n, e) => {
9113
9113
  let t = e, o = n.input.mouseDown;
9114
9114
  if (o && o.done(), !t.dataTransfer)
9115
9115
  return;
@@ -9125,14 +9125,14 @@ dt.dragstart = (n, e) => {
9125
9125
  let l = (i || n.state.selection).content(), { dom: a, text: c, slice: u } = Gc(n, l);
9126
9126
  (!t.dataTransfer.files.length || !nt || em > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(ts ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", ts || t.dataTransfer.setData("text/plain", c), n.dragging = new Am(u, Im(n, t), i);
9127
9127
  };
9128
- dt.dragend = (n) => {
9128
+ ft.dragend = (n) => {
9129
9129
  let e = n.dragging;
9130
9130
  window.setTimeout(() => {
9131
9131
  n.dragging == e && (n.dragging = null);
9132
9132
  }, 50);
9133
9133
  };
9134
- ft.dragover = ft.dragenter = (n, e) => e.preventDefault();
9135
- ft.drop = (n, e) => {
9134
+ ht.dragover = ht.dragenter = (n, e) => e.preventDefault();
9135
+ ht.drop = (n, e) => {
9136
9136
  try {
9137
9137
  yk(n, e, n.dragging);
9138
9138
  } finally {
@@ -9176,16 +9176,16 @@ function yk(n, e, t) {
9176
9176
  }
9177
9177
  n.focus(), n.dispatch(a.setMeta("uiEvent", "drop"));
9178
9178
  }
9179
- dt.focus = (n) => {
9179
+ ft.focus = (n) => {
9180
9180
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
9181
9181
  n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && kn(n);
9182
9182
  }, 20));
9183
9183
  };
9184
- dt.blur = (n, e) => {
9184
+ ft.blur = (n, e) => {
9185
9185
  let t = e;
9186
9186
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
9187
9187
  };
9188
- dt.beforeinput = (n, e) => {
9188
+ ft.beforeinput = (n, e) => {
9189
9189
  if (nt && mn && e.inputType == "deleteContentBackward") {
9190
9190
  n.domObserver.flushSoon();
9191
9191
  let { domChangeCount: o } = n.input;
@@ -9197,8 +9197,8 @@ dt.beforeinput = (n, e) => {
9197
9197
  }, 50);
9198
9198
  }
9199
9199
  };
9200
- for (let n in ft)
9201
- dt[n] = ft[n];
9200
+ for (let n in ht)
9201
+ ft[n] = ht[n];
9202
9202
  function rs(n, e) {
9203
9203
  if (n == e)
9204
9204
  return !0;
@@ -9216,7 +9216,7 @@ class si {
9216
9216
  }
9217
9217
  map(e, t, o, r) {
9218
9218
  let { pos: s, deleted: i } = e.mapResult(t.from + r, this.side < 0 ? -1 : 1);
9219
- return i ? null : new ut(s - o, s - o, this);
9219
+ return i ? null : new dt(s - o, s - o, this);
9220
9220
  }
9221
9221
  valid() {
9222
9222
  return !0;
@@ -9234,7 +9234,7 @@ class Jn {
9234
9234
  }
9235
9235
  map(e, t, o, r) {
9236
9236
  let s = e.map(t.from + r, this.spec.inclusiveStart ? -1 : 1) - o, i = e.map(t.to + r, this.spec.inclusiveEnd ? 1 : -1) - o;
9237
- return s >= i ? null : new ut(s, i, this);
9237
+ return s >= i ? null : new dt(s, i, this);
9238
9238
  }
9239
9239
  valid(e, t) {
9240
9240
  return t.from < t.to;
@@ -9257,7 +9257,7 @@ class Qc {
9257
9257
  if (s.deleted)
9258
9258
  return null;
9259
9259
  let i = e.mapResult(t.to + r, -1);
9260
- return i.deleted || i.pos <= s.pos ? null : new ut(s.pos - o, i.pos - o, this);
9260
+ return i.deleted || i.pos <= s.pos ? null : new dt(s.pos - o, i.pos - o, this);
9261
9261
  }
9262
9262
  valid(e, t) {
9263
9263
  let { index: o, offset: r } = e.content.findIndex(t.from), s;
@@ -9269,7 +9269,7 @@ class Qc {
9269
9269
  destroy() {
9270
9270
  }
9271
9271
  }
9272
- class ut {
9272
+ class dt {
9273
9273
  /**
9274
9274
  @internal
9275
9275
  */
@@ -9280,7 +9280,7 @@ class ut {
9280
9280
  @internal
9281
9281
  */
9282
9282
  copy(e, t) {
9283
- return new ut(e, t, this.type);
9283
+ return new dt(e, t, this.type);
9284
9284
  }
9285
9285
  /**
9286
9286
  @internal
@@ -9303,14 +9303,14 @@ class ut {
9303
9303
  widget's current document position.
9304
9304
  */
9305
9305
  static widget(e, t, o) {
9306
- return new ut(e, e, new si(t, o));
9306
+ return new dt(e, e, new si(t, o));
9307
9307
  }
9308
9308
  /**
9309
9309
  Creates an inline decoration, which adds the given attributes to
9310
9310
  each inline node between `from` and `to`.
9311
9311
  */
9312
9312
  static inline(e, t, o, r) {
9313
- return new ut(e, t, new Jn(o, r));
9313
+ return new dt(e, t, new Jn(o, r));
9314
9314
  }
9315
9315
  /**
9316
9316
  Creates a node decoration. `from` and `to` should point precisely
@@ -9318,7 +9318,7 @@ class ut {
9318
9318
  node, will receive the given attributes.
9319
9319
  */
9320
9320
  static node(e, t, o, r) {
9321
- return new ut(e, t, new Qc(o, r));
9321
+ return new dt(e, t, new Qc(o, r));
9322
9322
  }
9323
9323
  /**
9324
9324
  The spec provided when creating this decoration. Can be useful
@@ -9628,7 +9628,7 @@ function Om(n, e) {
9628
9628
  let t = [];
9629
9629
  for (let o = 0; o < n.length; o++) {
9630
9630
  let r = n[o];
9631
- t.push(new ut(r.from + e, r.to + e, r.type));
9631
+ t.push(new dt(r.from + e, r.to + e, r.type));
9632
9632
  }
9633
9633
  return t;
9634
9634
  }
@@ -9714,7 +9714,7 @@ const kk = {
9714
9714
  attributes: !0,
9715
9715
  attributeOldValue: !0,
9716
9716
  subtree: !0
9717
- }, bk = mt && Kn <= 11;
9717
+ }, bk = gt && Kn <= 11;
9718
9718
  class xk {
9719
9719
  constructor() {
9720
9720
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -9734,7 +9734,7 @@ class Sk {
9734
9734
  this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new xk(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((o) => {
9735
9735
  for (let r = 0; r < o.length; r++)
9736
9736
  this.queue.push(o[r]);
9737
- mt && Kn <= 11 && o.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : lt && e.composing && o.some((r) => r.type == "childList" && r.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
9737
+ gt && Kn <= 11 && o.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : lt && e.composing && o.some((r) => r.type == "childList" && r.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
9738
9738
  }), bk && (this.onCharData = (o) => {
9739
9739
  this.queue.push({ target: o.target, type: "characterData", oldValue: o.prevValue }), this.flushSoon();
9740
9740
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -9775,7 +9775,7 @@ class Sk {
9775
9775
  if (tf(this.view)) {
9776
9776
  if (this.suppressingSelectionUpdates)
9777
9777
  return kn(this.view);
9778
- if (mt && Kn <= 11 && !this.view.state.selection.empty) {
9778
+ if (gt && Kn <= 11 && !this.view.state.selection.empty) {
9779
9779
  let e = this.view.domSelectionRange();
9780
9780
  if (e.focusNode && Co(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
9781
9781
  return this.flushSoon();
@@ -9859,7 +9859,7 @@ class Sk {
9859
9859
  if (o.contentDOM && o.contentDOM != o.dom && !o.contentDOM.contains(e.target))
9860
9860
  return { from: o.posBefore, to: o.posAfter };
9861
9861
  let r = e.previousSibling, s = e.nextSibling;
9862
- if (mt && Kn <= 11 && e.addedNodes.length)
9862
+ if (gt && Kn <= 11 && e.addedNodes.length)
9863
9863
  for (let u = 0; u < e.addedNodes.length; u++) {
9864
9864
  let { previousSibling: d, nextSibling: f } = e.addedNodes[u];
9865
9865
  (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (r = d), (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (s = f);
@@ -10008,7 +10008,7 @@ function _k(n, e, t, o, r) {
10008
10008
  }
10009
10009
  return;
10010
10010
  }
10011
- n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof ae && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), mt && Kn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
10011
+ n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof ae && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), gt && Kn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
10012
10012
  let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), y = u.resolve(p.start), k = m.sameParent(g) && m.parent.inlineContent && y.end() >= p.endA;
10013
10013
  if ((nr && n.input.lastIOSEnter > Date.now() - 225 && (!k || r.some((S) => S.nodeName == "DIV" || S.nodeName == "P")) || !k && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && n.someProp("handleKeyDown", (S) => S(n, so(13, "Enter")))) {
10014
10014
  n.input.lastIOSEnter = 0;
@@ -10027,13 +10027,13 @@ function _k(n, e, t, o, r) {
10027
10027
  let T = S || n.state.tr.replace(w, v, c.doc.slice(p.start - c.from, p.endB - c.from));
10028
10028
  if (c.sel) {
10029
10029
  let E = pf(n, T.doc, c.sel);
10030
- E && !(nt && n.composing && E.empty && (p.start != p.endB || n.input.lastChromeDelete < Date.now() - 100) && (E.head == w || E.head == T.mapping.map(v) - 1) || mt && E.empty && E.head == w) && T.setSelection(E);
10030
+ E && !(nt && n.composing && E.empty && (p.start != p.endB || n.input.lastChromeDelete < Date.now() - 100) && (E.head == w || E.head == T.mapping.map(v) - 1) || gt && E.empty && E.head == w) && T.setSelection(E);
10031
10031
  }
10032
10032
  return s && T.setMeta("composition", s), T.scrollIntoView();
10033
10033
  }, M;
10034
10034
  if (k)
10035
10035
  if (m.pos == g.pos) {
10036
- mt && Kn <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => kn(n), 20));
10036
+ gt && Kn <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => kn(n), 20));
10037
10037
  let S = b(n.state.tr.delete(w, v)), T = u.resolve(p.start).marksAcross(u.resolve(p.endA));
10038
10038
  T && S.ensureMarks(T), n.dispatch(S);
10039
10039
  } else if (
@@ -10200,7 +10200,7 @@ class Nm {
10200
10200
  let f = u == "preserve" && i && this.dom.style.overflowAnchor == null && dw(this);
10201
10201
  if (i) {
10202
10202
  this.domObserver.stop();
10203
- let h = d && (mt || nt) && !this.composing && !r.selection.empty && !e.selection.empty && Pk(r.selection, e.selection);
10203
+ let h = d && (gt || nt) && !this.composing && !r.selection.empty && !e.selection.empty && Pk(r.selection, e.selection);
10204
10204
  if (d) {
10205
10205
  let p = nt ? this.trackWrites = this.domSelectionRange().focusNode : null;
10206
10206
  this.composing && (this.input.compositionNode = dk(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Gd(e.doc, c, a, this.dom, this)), p && (!this.trackWrites || !this.dom.contains(this.trackWrites)) && (h = !0);
@@ -10275,7 +10275,7 @@ class Nm {
10275
10275
  Query whether the view has focus.
10276
10276
  */
10277
10277
  hasFocus() {
10278
- if (mt) {
10278
+ if (gt) {
10279
10279
  let e = this.root.activeElement;
10280
10280
  if (e == this.dom)
10281
10281
  return !0;
@@ -10465,12 +10465,12 @@ function gf(n) {
10465
10465
  if (typeof t == "function" && (t = t(n.state)), t)
10466
10466
  for (let o in t)
10467
10467
  o == "class" ? e.class += " " + t[o] : o == "style" ? e.style = (e.style ? e.style + ";" : "") + t[o] : !e[o] && o != "contenteditable" && o != "nodeName" && (e[o] = String(t[o]));
10468
- }), e.translate || (e.translate = "no"), [ut.node(0, n.state.doc.content.size, e)];
10468
+ }), e.translate || (e.translate = "no"), [dt.node(0, n.state.doc.content.size, e)];
10469
10469
  }
10470
10470
  function yf(n) {
10471
10471
  if (n.markCursor) {
10472
10472
  let e = document.createElement("img");
10473
- e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: ut.widget(n.state.selection.from, e, { raw: !0, marks: n.markCursor }) };
10473
+ e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: dt.widget(n.state.selection.from, e, { raw: !0, marks: n.markCursor }) };
10474
10474
  } else
10475
10475
  n.cursorWrapper = null;
10476
10476
  }
@@ -11225,7 +11225,7 @@ var Eb = (n, e) => ({ tr: t, state: o, dispatch: r }) => {
11225
11225
  }), a;
11226
11226
  }, Ab = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Ib = () => ({ tr: n, dispatch: e }) => {
11227
11227
  if (e) {
11228
- const t = new yt(n.doc);
11228
+ const t = new vt(n.doc);
11229
11229
  n.setSelection(t);
11230
11230
  }
11231
11231
  return !0;
@@ -14547,11 +14547,11 @@ function hx(n, e) {
14547
14547
  e[o].indexOf(n) >= 0 && (t[o] = !0);
14548
14548
  return t;
14549
14549
  }
14550
- function pt(n = null) {
14550
+ function mt(n = null) {
14551
14551
  this.j = {}, this.jr = [], this.jd = null, this.t = n;
14552
14552
  }
14553
- pt.groups = {};
14554
- pt.prototype = {
14553
+ mt.groups = {};
14554
+ mt.prototype = {
14555
14555
  accepts() {
14556
14556
  return !!this.t;
14557
14557
  },
@@ -14604,9 +14604,9 @@ pt.prototype = {
14604
14604
  * @returns {State<T>} taken after the given input
14605
14605
  */
14606
14606
  tr(n, e, t, o) {
14607
- o = o || pt.groups;
14607
+ o = o || mt.groups;
14608
14608
  let r;
14609
- return e && e.j ? r = e : (r = new pt(e), t && o && co(e, t, o)), this.jr.push([n, r]), r;
14609
+ return e && e.j ? r = e : (r = new mt(e), t && o && co(e, t, o)), this.jr.push([n, r]), r;
14610
14610
  },
14611
14611
  /**
14612
14612
  * Short for "take transitions", will take as many sequential transitions as
@@ -14654,13 +14654,13 @@ pt.prototype = {
14654
14654
  * @returns {State<T>} taken after the given input
14655
14655
  */
14656
14656
  tt(n, e, t, o) {
14657
- o = o || pt.groups;
14657
+ o = o || mt.groups;
14658
14658
  const r = this;
14659
14659
  if (e && e.j)
14660
14660
  return r.j[n] = e, e;
14661
14661
  const s = e;
14662
14662
  let i, l = r.go(n);
14663
- if (l ? (i = new pt(), Object.assign(i.j, l.j), i.jr.push.apply(i.jr, l.jr), i.jd = l.jd, i.t = l.t) : i = new pt(), s) {
14663
+ if (l ? (i = new mt(), Object.assign(i.j, l.j), i.jr.push.apply(i.jr, l.jr), i.jd = l.jd, i.t = l.t) : i = new mt(), s) {
14664
14664
  if (o)
14665
14665
  if (i.t && typeof i.t == "string") {
14666
14666
  const a = Object.assign(hx(i.t, o), t);
@@ -14671,7 +14671,7 @@ pt.prototype = {
14671
14671
  return r.j[n] = i, i;
14672
14672
  }
14673
14673
  };
14674
- const ce = (n, e, t, o, r) => n.ta(e, t, o, r), Ie = (n, e, t, o, r) => n.tr(e, t, o, r), Nf = (n, e, t, o, r) => n.ts(e, t, o, r), H = (n, e, t, o, r) => n.tt(e, t, o, r), cn = "WORD", nc = "UWORD", bg = "ASCIINUMERICAL", xg = "ALPHANUMERICAL", as = "LOCALHOST", oc = "TLD", rc = "UTLD", zs = "SCHEME", Wo = "SLASH_SCHEME", fu = "NUM", sc = "WS", hu = "NL", zr = "OPENBRACE", Fr = "CLOSEBRACE", fi = "OPENBRACKET", hi = "CLOSEBRACKET", pi = "OPENPAREN", mi = "CLOSEPAREN", gi = "OPENANGLEBRACKET", yi = "CLOSEANGLEBRACKET", vi = "FULLWIDTHLEFTPAREN", wi = "FULLWIDTHRIGHTPAREN", ki = "LEFTCORNERBRACKET", bi = "RIGHTCORNERBRACKET", xi = "LEFTWHITECORNERBRACKET", Si = "RIGHTWHITECORNERBRACKET", Ci = "FULLWIDTHLESSTHAN", Mi = "FULLWIDTHGREATERTHAN", Ti = "AMPERSAND", Ei = "APOSTROPHE", Ai = "ASTERISK", _n = "AT", Ii = "BACKSLASH", Oi = "BACKTICK", _i = "CARET", Rn = "COLON", pu = "COMMA", Di = "DOLLAR", Kt = "DOT", Ni = "EQUALS", mu = "EXCLAMATION", St = "HYPHEN", Hr = "PERCENT", Ri = "PIPE", Pi = "PLUS", Li = "POUND", Vr = "QUERY", gu = "QUOTE", Sg = "FULLWIDTHMIDDLEDOT", yu = "SEMI", qt = "SLASH", Wr = "TILDE", $i = "UNDERSCORE", Cg = "EMOJI", Bi = "SYM";
14674
+ const ce = (n, e, t, o, r) => n.ta(e, t, o, r), Ie = (n, e, t, o, r) => n.tr(e, t, o, r), Nf = (n, e, t, o, r) => n.ts(e, t, o, r), H = (n, e, t, o, r) => n.tt(e, t, o, r), cn = "WORD", nc = "UWORD", bg = "ASCIINUMERICAL", xg = "ALPHANUMERICAL", as = "LOCALHOST", oc = "TLD", rc = "UTLD", zs = "SCHEME", Wo = "SLASH_SCHEME", fu = "NUM", sc = "WS", hu = "NL", zr = "OPENBRACE", Fr = "CLOSEBRACE", fi = "OPENBRACKET", hi = "CLOSEBRACKET", pi = "OPENPAREN", mi = "CLOSEPAREN", gi = "OPENANGLEBRACKET", yi = "CLOSEANGLEBRACKET", vi = "FULLWIDTHLEFTPAREN", wi = "FULLWIDTHRIGHTPAREN", ki = "LEFTCORNERBRACKET", bi = "RIGHTCORNERBRACKET", xi = "LEFTWHITECORNERBRACKET", Si = "RIGHTWHITECORNERBRACKET", Ci = "FULLWIDTHLESSTHAN", Mi = "FULLWIDTHGREATERTHAN", Ti = "AMPERSAND", Ei = "APOSTROPHE", Ai = "ASTERISK", _n = "AT", Ii = "BACKSLASH", Oi = "BACKTICK", _i = "CARET", Rn = "COLON", pu = "COMMA", Di = "DOLLAR", Kt = "DOT", Ni = "EQUALS", mu = "EXCLAMATION", Ct = "HYPHEN", Hr = "PERCENT", Ri = "PIPE", Pi = "PLUS", Li = "POUND", Vr = "QUERY", gu = "QUOTE", Sg = "FULLWIDTHMIDDLEDOT", yu = "SEMI", qt = "SLASH", Wr = "TILDE", $i = "UNDERSCORE", Cg = "EMOJI", Bi = "SYM";
14675
14675
  var Mg = /* @__PURE__ */ Object.freeze({
14676
14676
  __proto__: null,
14677
14677
  ALPHANUMERICAL: xg,
@@ -14699,7 +14699,7 @@ var Mg = /* @__PURE__ */ Object.freeze({
14699
14699
  FULLWIDTHLESSTHAN: Ci,
14700
14700
  FULLWIDTHMIDDLEDOT: Sg,
14701
14701
  FULLWIDTHRIGHTPAREN: wi,
14702
- HYPHEN: St,
14702
+ HYPHEN: Ct,
14703
14703
  LEFTCORNERBRACKET: ki,
14704
14704
  LEFTWHITECORNERBRACKET: xi,
14705
14705
  LOCALHOST: as,
@@ -14735,9 +14735,9 @@ const ln = /[a-z]/, xr = new RegExp("\\p{L}", "u"), sa = new RegExp("\\p{Emoji}"
14735
14735
  let Is = null, Os = null;
14736
14736
  function gx(n = []) {
14737
14737
  const e = {};
14738
- pt.groups = e;
14739
- const t = new pt();
14740
- Is == null && (Is = Pf(ax)), Os == null && (Os = Pf(cx)), H(t, "'", Ei), H(t, "{", zr), H(t, "}", Fr), H(t, "[", fi), H(t, "]", hi), H(t, "(", pi), H(t, ")", mi), H(t, "<", gi), H(t, ">", yi), H(t, "(", vi), H(t, ")", wi), H(t, "「", ki), H(t, "」", bi), H(t, "『", xi), H(t, "』", Si), H(t, "<", Ci), H(t, ">", Mi), H(t, "&", Ti), H(t, "*", Ai), H(t, "@", _n), H(t, "`", Oi), H(t, "^", _i), H(t, ":", Rn), H(t, ",", pu), H(t, "$", Di), H(t, ".", Kt), H(t, "=", Ni), H(t, "!", mu), H(t, "-", St), H(t, "%", Hr), H(t, "|", Ri), H(t, "+", Pi), H(t, "#", Li), H(t, "?", Vr), H(t, '"', gu), H(t, "/", qt), H(t, ";", yu), H(t, "~", Wr), H(t, "_", $i), H(t, "\\", Ii), H(t, "・", Sg);
14738
+ mt.groups = e;
14739
+ const t = new mt();
14740
+ Is == null && (Is = Pf(ax)), Os == null && (Os = Pf(cx)), H(t, "'", Ei), H(t, "{", zr), H(t, "}", Fr), H(t, "[", fi), H(t, "]", hi), H(t, "(", pi), H(t, ")", mi), H(t, "<", gi), H(t, ">", yi), H(t, "(", vi), H(t, ")", wi), H(t, "「", ki), H(t, "」", bi), H(t, "『", xi), H(t, "』", Si), H(t, "<", Ci), H(t, ">", Mi), H(t, "&", Ti), H(t, "*", Ai), H(t, "@", _n), H(t, "`", Oi), H(t, "^", _i), H(t, ":", Rn), H(t, ",", pu), H(t, "$", Di), H(t, ".", Kt), H(t, "=", Ni), H(t, "!", mu), H(t, "-", Ct), H(t, "%", Hr), H(t, "|", Ri), H(t, "+", Pi), H(t, "#", Li), H(t, "?", Vr), H(t, '"', gu), H(t, "/", qt), H(t, ";", yu), H(t, "~", Wr), H(t, "_", $i), H(t, "\\", Ii), H(t, "・", Sg);
14741
14741
  const o = Ie(t, an, fu, {
14742
14742
  [Za]: !0
14743
14743
  });
@@ -14796,7 +14796,7 @@ function gx(n = []) {
14796
14796
  }
14797
14797
  return Nf(t, "localhost", as, {
14798
14798
  ascii: !0
14799
- }), t.jd = new pt(Bi), {
14799
+ }), t.jd = new mt(Bi), {
14800
14800
  start: t,
14801
14801
  tokens: Object.assign({
14802
14802
  groups: e
@@ -14837,9 +14837,9 @@ function En(n, e, t, o, r) {
14837
14837
  const i = e.length;
14838
14838
  for (let l = 0; l < i - 1; l++) {
14839
14839
  const a = e[l];
14840
- n.j[a] ? s = n.j[a] : (s = new pt(o), s.jr = r.slice(), n.j[a] = s), n = s;
14840
+ n.j[a] ? s = n.j[a] : (s = new mt(o), s.jr = r.slice(), n.j[a] = s), n = s;
14841
14841
  }
14842
- return s = new pt(t), s.jr = r.slice(), n.j[e[i - 1]] = s, s;
14842
+ return s = new mt(t), s.jr = r.slice(), n.j[e[i - 1]] = s, s;
14843
14843
  }
14844
14844
  function Pf(n) {
14845
14845
  const e = [], t = [];
@@ -15089,38 +15089,38 @@ const $f = gl("email", {
15089
15089
  const n = this.tk;
15090
15090
  return n.length >= 2 && n[0].t !== as && n[1].t === Rn;
15091
15091
  }
15092
- }), xt = (n) => new pt(n);
15092
+ }), St = (n) => new mt(n);
15093
15093
  function wx({
15094
15094
  groups: n
15095
15095
  }) {
15096
- const e = n.domain.concat([Ti, Ai, _n, Ii, Oi, _i, Di, Ni, St, fu, Hr, Ri, Pi, Li, qt, Bi, Wr, $i]), t = [Ei, Rn, pu, Kt, mu, Hr, Vr, gu, yu, gi, yi, zr, Fr, hi, fi, pi, mi, vi, wi, ki, bi, xi, Si, Ci, Mi], o = [Ti, Ei, Ai, Ii, Oi, _i, Di, Ni, St, zr, Fr, Hr, Ri, Pi, Li, Vr, qt, Bi, Wr, $i], r = xt(), s = H(r, Wr);
15096
+ const e = n.domain.concat([Ti, Ai, _n, Ii, Oi, _i, Di, Ni, Ct, fu, Hr, Ri, Pi, Li, qt, Bi, Wr, $i]), t = [Ei, Rn, pu, Kt, mu, Hr, Vr, gu, yu, gi, yi, zr, Fr, hi, fi, pi, mi, vi, wi, ki, bi, xi, Si, Ci, Mi], o = [Ti, Ei, Ai, Ii, Oi, _i, Di, Ni, Ct, zr, Fr, Hr, Ri, Pi, Li, Vr, qt, Bi, Wr, $i], r = St(), s = H(r, Wr);
15097
15097
  ce(s, o, s), ce(s, n.domain, s);
15098
- const i = xt(), l = xt(), a = xt();
15098
+ const i = St(), l = St(), a = St();
15099
15099
  ce(r, n.domain, i), ce(r, n.scheme, l), ce(r, n.slashscheme, a), ce(i, o, s), ce(i, n.domain, i);
15100
15100
  const c = H(i, _n);
15101
15101
  H(s, _n, c), H(l, _n, c), H(a, _n, c);
15102
15102
  const u = H(s, Kt);
15103
15103
  ce(u, o, s), ce(u, n.domain, s);
15104
- const d = xt();
15104
+ const d = St();
15105
15105
  ce(c, n.domain, d), ce(d, n.domain, d);
15106
15106
  const f = H(d, Kt);
15107
15107
  ce(f, n.domain, d);
15108
- const h = xt($f);
15108
+ const h = St($f);
15109
15109
  ce(f, n.tld, h), ce(f, n.utld, h), H(c, as, h);
15110
- const p = H(d, St);
15111
- H(p, St, p), ce(p, n.domain, d), ce(h, n.domain, d), H(h, Kt, f), H(h, St, p);
15110
+ const p = H(d, Ct);
15111
+ H(p, Ct, p), ce(p, n.domain, d), ce(h, n.domain, d), H(h, Kt, f), H(h, Ct, p);
15112
15112
  const m = H(h, Rn);
15113
15113
  ce(m, n.numeric, $f);
15114
- const g = H(i, St), y = H(i, Kt);
15115
- H(g, St, g), ce(g, n.domain, i), ce(y, o, s), ce(y, n.domain, i);
15116
- const k = xt(_s);
15117
- ce(y, n.tld, k), ce(y, n.utld, k), ce(k, n.domain, i), ce(k, o, s), H(k, Kt, y), H(k, St, g), H(k, _n, c);
15118
- const w = H(k, Rn), v = xt(_s);
15114
+ const g = H(i, Ct), y = H(i, Kt);
15115
+ H(g, Ct, g), ce(g, n.domain, i), ce(y, o, s), ce(y, n.domain, i);
15116
+ const k = St(_s);
15117
+ ce(y, n.tld, k), ce(y, n.utld, k), ce(k, n.domain, i), ce(k, o, s), H(k, Kt, y), H(k, Ct, g), H(k, _n, c);
15118
+ const w = H(k, Rn), v = St(_s);
15119
15119
  ce(w, n.numeric, v);
15120
- const b = xt(_s), M = xt();
15120
+ const b = St(_s), M = St();
15121
15121
  ce(b, e, b), ce(b, t, M), ce(M, e, b), ce(M, t, M), H(k, qt, b), H(v, qt, b);
15122
15122
  const S = H(l, Rn), T = H(a, Rn), E = H(T, qt), _ = H(E, qt);
15123
- ce(l, n.domain, i), H(l, Kt, y), H(l, St, g), ce(a, n.domain, i), H(a, Kt, y), H(a, St, g), ce(S, n.domain, b), H(S, qt, b), H(S, Vr, b), ce(_, n.domain, b), ce(_, e, b), H(_, qt, b);
15123
+ ce(l, n.domain, i), H(l, Kt, y), H(l, Ct, g), ce(a, n.domain, i), H(a, Kt, y), H(a, Ct, g), ce(S, n.domain, b), H(S, qt, b), H(S, Vr, b), ce(_, n.domain, b), ce(_, e, b), H(_, qt, b);
15124
15124
  const D = [
15125
15125
  [zr, Fr],
15126
15126
  // {}
@@ -15142,9 +15142,9 @@ function wx({
15142
15142
  for (let N = 0; N < D.length; N++) {
15143
15143
  const [R, W] = D[N], V = H(b, R);
15144
15144
  H(M, R, V), H(V, W, b);
15145
- const te = xt(_s);
15145
+ const te = St(_s);
15146
15146
  ce(V, e, te);
15147
- const J = xt();
15147
+ const J = St();
15148
15148
  ce(V, t), ce(te, e, te), ce(te, t, J), ce(J, e, te), ce(J, t, J), H(te, W, b), H(J, W, b);
15149
15149
  }
15150
15150
  return H(r, as, k), H(r, hu, vx), {
@@ -15184,7 +15184,7 @@ const bx = typeof console < "u" && console && console.warn || (() => {
15184
15184
  initialized: !1
15185
15185
  };
15186
15186
  function Sx() {
15187
- return pt.groups = {}, xe.scanner = null, xe.parser = null, xe.tokenQueue = [], xe.pluginQueue = [], xe.customSchemes = [], xe.initialized = !1, xe;
15187
+ return mt.groups = {}, xe.scanner = null, xe.parser = null, xe.tokenQueue = [], xe.pluginQueue = [], xe.customSchemes = [], xe.initialized = !1, xe;
15188
15188
  }
15189
15189
  function zf(n, e = !1) {
15190
15190
  if (xe.initialized && bx(`linkifyjs: already initialized - will not register custom scheme "${n}" ${xx}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
@@ -16078,7 +16078,7 @@ function Jx(n) {
16078
16078
  if (!(n.selection instanceof Oe))
16079
16079
  return null;
16080
16080
  let e = document.createElement("div");
16081
- return e.className = "ProseMirror-gapcursor", Ee.create(n.doc, [ut.widget(n.selection.head, e, { key: "gapcursor" })]);
16081
+ return e.className = "ProseMirror-gapcursor", Ee.create(n.doc, [dt.widget(n.selection.head, e, { key: "gapcursor" })]);
16082
16082
  }
16083
16083
  var zi = 200, We = function() {
16084
16084
  };
@@ -16531,7 +16531,7 @@ Me.create({
16531
16531
  if (l += 1, this.options.mode === "deepest" && i - l > 0 || this.options.mode === "shallowest" && l > 1)
16532
16532
  return this.options.mode === "deepest";
16533
16533
  s.push(
16534
- ut.node(c, c + a.nodeSize, {
16534
+ dt.node(c, c + a.nodeSize, {
16535
16535
  class: this.options.className
16536
16536
  })
16537
16537
  );
@@ -16592,7 +16592,7 @@ Me.create({
16592
16592
  if ((c || !this.options.showOnlyCurrent) && u) {
16593
16593
  const d = [this.options.emptyNodeClass];
16594
16594
  i && d.push(this.options.emptyEditorClass);
16595
- const f = ut.node(a, a + l.nodeSize, {
16595
+ const f = dt.node(a, a + l.nodeSize, {
16596
16596
  class: d.join(" "),
16597
16597
  [n]: typeof this.options.placeholder == "function" ? this.options.placeholder({
16598
16598
  editor: this.editor,
@@ -16626,7 +16626,7 @@ Me.create({
16626
16626
  props: {
16627
16627
  decorations(t) {
16628
16628
  return t.selection.empty || n.isFocused || !n.isEditable || Yb(t.selection) || n.view.dragging ? null : Ee.create(t.doc, [
16629
- ut.inline(t.selection.from, t.selection.to, {
16629
+ dt.inline(t.selection.from, t.selection.to, {
16630
16630
  class: e.className
16631
16631
  })
16632
16632
  ]);
@@ -16730,7 +16730,7 @@ function us(n, e, t) {
16730
16730
  const r = e.block.size ?? [100, 100], s = [t[0] - r[0] / 2, t[1] - r[1] / 2];
16731
16731
  bn.snapPosition(n, s);
16732
16732
  const [i, l] = s, a = e.block.rank ?? Yh.genNext(n), c = Zi(n);
16733
- "synced" in e || He(n, c, Tt, {
16733
+ "synced" in e || He(n, c, Et, {
16734
16734
  id: crypto.randomUUID()
16735
16735
  });
16736
16736
  const u = Object.assign({}, e.block, {
@@ -16991,14 +16991,14 @@ function lS(n) {
16991
16991
  for (const f of ey(n, d))
16992
16992
  t.add(f);
16993
16993
  e = [...t];
16994
- const { componentsById: o } = cr(n), r = new Map([...o].filter(([, d]) => d.sync === "document")), s = Tt._getComponentId(n), i = /* @__PURE__ */ new Set();
16994
+ const { componentsById: o } = cr(n), r = new Map([...o].filter(([, d]) => d.sync === "document")), s = Et._getComponentId(n), i = /* @__PURE__ */ new Set();
16995
16995
  for (const d of e)
16996
- Fe(n, d, Tt) && i.add(Tt.read(n, d).id);
16996
+ Fe(n, d, Et) && i.add(Et.read(n, d).id);
16997
16997
  const l = new Set(e), a = [], c = Ln.zero();
16998
16998
  let u = !1;
16999
16999
  for (const d of e) {
17000
17000
  const f = {};
17001
- Fe(n, d, Tt) && (f[Vg] = Tt.snapshot(n, d));
17001
+ Fe(n, d, Et) && (f[Vg] = Et.snapshot(n, d));
17002
17002
  for (const h of n.entityBuffer.getComponentIds(d)) {
17003
17003
  if (h === s) continue;
17004
17004
  const p = r.get(h);
@@ -17033,7 +17033,7 @@ function aS(n, e) {
17033
17033
  return null;
17034
17034
  }
17035
17035
  if (!t || t.version !== Hg || !Array.isArray(t.entities) || t.entities.length === 0) return null;
17036
- const { componentsByName: o } = cr(n), r = Tt._getComponentId(n), s = [];
17036
+ const { componentsByName: o } = cr(n), r = Et._getComponentId(n), s = [];
17037
17037
  for (const i of t.entities) {
17038
17038
  const l = /* @__PURE__ */ new Map();
17039
17039
  for (const [a, c] of Object.entries(i)) {
@@ -17054,7 +17054,7 @@ function cS(n, e, t) {
17054
17054
  for (const [s, i] of Object.entries(e))
17055
17055
  if (((r = i == null ? void 0 : i.def) == null ? void 0 : r.type) === "ref") {
17056
17056
  const l = t[s];
17057
- o[s] = l != null && Fe(n, l, Tt) ? Tt.read(n, l).id : null;
17057
+ o[s] = l != null && Fe(n, l, Et) ? Et.read(n, l).id : null;
17058
17058
  }
17059
17059
  return o;
17060
17060
  }
@@ -17076,7 +17076,7 @@ function dS(n, e, t, o, r) {
17076
17076
  }
17077
17077
  function Jf(n, e, t, o) {
17078
17078
  if (e.length === 0) return;
17079
- const { componentsById: r } = cr(n), s = new Map([...r].filter(([, h]) => h.sync === "document")), i = Tt._getComponentId(n), l = le._getComponentId(n);
17079
+ const { componentsById: r } = cr(n), s = new Map([...r].filter(([, h]) => h.sync === "document")), i = Et._getComponentId(n), l = le._getComponentId(n);
17080
17080
  let a;
17081
17081
  if (o)
17082
17082
  a = In.clone(o), In.sub(a, t);
@@ -17093,7 +17093,7 @@ function Jf(n, e, t, o) {
17093
17093
  const u = /* @__PURE__ */ new Map(), d = [];
17094
17094
  for (const h of c) {
17095
17095
  const p = Zi(n), m = h.get(i);
17096
- m != null && m.id && u.set(m.id, p), He(n, p, Tt, { id: crypto.randomUUID() });
17096
+ m != null && m.id && u.set(m.id, p), He(n, p, Et, { id: crypto.randomUUID() });
17097
17097
  for (const [g, y] of h) {
17098
17098
  if (g === i) continue;
17099
17099
  const k = s.get(g);
@@ -17220,7 +17220,7 @@ function hS(n, e = {}) {
17220
17220
  );
17221
17221
  Tc(k, "text") && He(k, _, Ec, {}), G0.spawn(k, { entityId: _, deselectOthers: !0 });
17222
17222
  }
17223
- wt(() => {
17223
+ kt(() => {
17224
17224
  const p = n.value;
17225
17225
  p && (p.addEventListener("paste", h), p.addEventListener("copy", d), p.addEventListener("cut", f));
17226
17226
  }), $e(() => {
@@ -18258,21 +18258,21 @@ const PS = { key: 1 }, LS = ["innerHTML"], Au = /* @__PURE__ */ q({
18258
18258
  [Ze.Top]: "flex-start",
18259
18259
  [Ze.Center]: "center",
18260
18260
  [Ze.Bottom]: "flex-end"
18261
- }, i = O(() => t.value ? `rgba(${t.value.fillRed}, ${t.value.fillGreen}, ${t.value.fillBlue}, ${(t.value.fillAlpha ?? 255) / 255})` : "rgba(0, 0, 0, 0)"), l = O(() => t.value ? t.value.strokeKind === Mt.None ? "none" : `rgba(${t.value.strokeRed}, ${t.value.strokeGreen}, ${t.value.strokeBlue}, ${t.value.strokeAlpha / 255})` : "rgba(0, 0, 0, 1)"), a = O(() => {
18261
+ }, i = O(() => t.value ? `rgba(${t.value.fillRed}, ${t.value.fillGreen}, ${t.value.fillBlue}, ${(t.value.fillAlpha ?? 255) / 255})` : "rgba(0, 0, 0, 0)"), l = O(() => t.value ? t.value.strokeKind === Tt.None ? "none" : `rgba(${t.value.strokeRed}, ${t.value.strokeGreen}, ${t.value.strokeBlue}, ${t.value.strokeAlpha / 255})` : "rgba(0, 0, 0, 1)"), a = O(() => {
18262
18262
  var m;
18263
18263
  return ((m = t.value) == null ? void 0 : m.strokeWidth) ?? 2;
18264
18264
  }), c = O(() => {
18265
18265
  var m;
18266
- return ((m = t.value) == null ? void 0 : m.strokeKind) ?? Mt.Solid;
18266
+ return ((m = t.value) == null ? void 0 : m.strokeKind) ?? Tt.Solid;
18267
18267
  }), u = O(() => {
18268
18268
  var m;
18269
18269
  return Ys[((m = t.value) == null ? void 0 : m.kind) ?? "rectangle"] ?? Ys.rectangle;
18270
18270
  }), d = O(() => {
18271
18271
  const m = a.value;
18272
18272
  switch (c.value) {
18273
- case Mt.Dashed:
18273
+ case Tt.Dashed:
18274
18274
  return `${m * 3} ${m * 3}`;
18275
- case Mt.None:
18275
+ case Tt.None:
18276
18276
  return "";
18277
18277
  default:
18278
18278
  return "";
@@ -18382,7 +18382,7 @@ const PS = { key: 1 }, LS = ["innerHTML"], Au = /* @__PURE__ */ q({
18382
18382
  y();
18383
18383
  },
18384
18384
  { immediate: !0 }
18385
- ), wt(() => {
18385
+ ), kt(() => {
18386
18386
  y();
18387
18387
  }), pe(
18388
18388
  () => o.block.size[1],
@@ -18903,7 +18903,7 @@ function kl() {
18903
18903
  function Ro(n) {
18904
18904
  return Iu(n) ? (n.nodeName || "").toLowerCase() : "#document";
18905
18905
  }
18906
- function vt(n) {
18906
+ function wt(n) {
18907
18907
  var e;
18908
18908
  return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
18909
18909
  }
@@ -18912,16 +18912,16 @@ function on(n) {
18912
18912
  return (e = (Iu(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
18913
18913
  }
18914
18914
  function Iu(n) {
18915
- return kl() ? n instanceof Node || n instanceof vt(n).Node : !1;
18915
+ return kl() ? n instanceof Node || n instanceof wt(n).Node : !1;
18916
18916
  }
18917
18917
  function zt(n) {
18918
- return kl() ? n instanceof Element || n instanceof vt(n).Element : !1;
18918
+ return kl() ? n instanceof Element || n instanceof wt(n).Element : !1;
18919
18919
  }
18920
18920
  function en(n) {
18921
- return kl() ? n instanceof HTMLElement || n instanceof vt(n).HTMLElement : !1;
18921
+ return kl() ? n instanceof HTMLElement || n instanceof wt(n).HTMLElement : !1;
18922
18922
  }
18923
18923
  function rh(n) {
18924
- return !kl() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof vt(n).ShadowRoot;
18924
+ return !kl() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof wt(n).ShadowRoot;
18925
18925
  }
18926
18926
  const mC = /* @__PURE__ */ new Set(["inline", "contents"]);
18927
18927
  function vs(n) {
@@ -18971,7 +18971,7 @@ function sr(n) {
18971
18971
  return SC.has(Ro(n));
18972
18972
  }
18973
18973
  function Ft(n) {
18974
- return vt(n).getComputedStyle(n);
18974
+ return wt(n).getComputedStyle(n);
18975
18975
  }
18976
18976
  function xl(n) {
18977
18977
  return zt(n) ? {
@@ -19001,7 +19001,7 @@ function Yg(n) {
19001
19001
  function hs(n, e, t) {
19002
19002
  var o;
19003
19003
  e === void 0 && (e = []), t === void 0 && (t = !0);
19004
- const r = Yg(n), s = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = vt(r);
19004
+ const r = Yg(n), s = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = wt(r);
19005
19005
  if (s) {
19006
19006
  const l = uc(i);
19007
19007
  return e.concat(i, i.visualViewport || [], vs(r) ? r : [], l && t ? hs(l) : []);
@@ -19041,14 +19041,14 @@ function Yo(n) {
19041
19041
  }
19042
19042
  const CC = /* @__PURE__ */ Yt(0);
19043
19043
  function Zg(n) {
19044
- const e = vt(n);
19044
+ const e = wt(n);
19045
19045
  return !_u() || !e.visualViewport ? CC : {
19046
19046
  x: e.visualViewport.offsetLeft,
19047
19047
  y: e.visualViewport.offsetTop
19048
19048
  };
19049
19049
  }
19050
19050
  function MC(n, e, t) {
19051
- return e === void 0 && (e = !1), !t || e && t !== vt(n) ? !1 : e;
19051
+ return e === void 0 && (e = !1), !t || e && t !== wt(n) ? !1 : e;
19052
19052
  }
19053
19053
  function Eo(n, e, t, o) {
19054
19054
  e === void 0 && (e = !1), t === void 0 && (t = !1);
@@ -19058,11 +19058,11 @@ function Eo(n, e, t, o) {
19058
19058
  const l = MC(s, t, o) ? Zg(s) : Yt(0);
19059
19059
  let a = (r.left + l.x) / i.x, c = (r.top + l.y) / i.y, u = r.width / i.x, d = r.height / i.y;
19060
19060
  if (s) {
19061
- const f = vt(s), h = o && zt(o) ? vt(o) : o;
19061
+ const f = wt(s), h = o && zt(o) ? wt(o) : o;
19062
19062
  let p = f, m = uc(p);
19063
19063
  for (; m && o && h !== p; ) {
19064
19064
  const g = Yo(m), y = m.getBoundingClientRect(), k = Ft(m), w = y.left + (m.clientLeft + parseFloat(k.paddingLeft)) * g.x, v = y.top + (m.clientTop + parseFloat(k.paddingTop)) * g.y;
19065
- a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += w, c += v, p = vt(m), m = uc(p);
19065
+ a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += w, c += v, p = wt(m), m = uc(p);
19066
19066
  }
19067
19067
  }
19068
19068
  return ji({
@@ -19126,7 +19126,7 @@ function AC(n) {
19126
19126
  }
19127
19127
  const sh = 25;
19128
19128
  function IC(n, e) {
19129
- const t = vt(n), o = on(n), r = t.visualViewport;
19129
+ const t = wt(n), o = on(n), r = t.visualViewport;
19130
19130
  let s = o.clientWidth, i = o.clientHeight, l = 0, a = 0;
19131
19131
  if (r) {
19132
19132
  s = r.width, i = r.height;
@@ -19255,7 +19255,7 @@ function lh(n, e) {
19255
19255
  return on(n) === t && (t = t.ownerDocument.body), t;
19256
19256
  }
19257
19257
  function t0(n, e) {
19258
- const t = vt(n);
19258
+ const t = wt(n);
19259
19259
  if (bl(n))
19260
19260
  return t;
19261
19261
  if (!en(n)) {
@@ -19498,7 +19498,7 @@ function gr(n, e, t) {
19498
19498
  update: w
19499
19499
  };
19500
19500
  }
19501
- const VC = ["menu-open"], kt = /* @__PURE__ */ q({
19501
+ const VC = ["menu-open"], bt = /* @__PURE__ */ q({
19502
19502
  __name: "MenuDropdown",
19503
19503
  props: {
19504
19504
  title: {},
@@ -19549,7 +19549,7 @@ const VC = ["menu-open"], kt = /* @__PURE__ */ q({
19549
19549
  ref: d,
19550
19550
  class: Te(["wov-menu-dropdown-trigger", { "is-open": u.value }]),
19551
19551
  "menu-open": u.value || void 0,
19552
- onMousedown: v[0] || (v[0] = At(() => {
19552
+ onMousedown: v[0] || (v[0] = ut(() => {
19553
19553
  }, ["prevent"])),
19554
19554
  onClick: p,
19555
19555
  onMouseenter: y,
@@ -19637,7 +19637,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
19637
19637
  const a = e.side === "start";
19638
19638
  return `<line x1="${a ? 8 : 4}" y1="12" x2="${a ? 20 : 16}" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round" /><g transform="${`translate(${a ? 4 : 20}, 12) scale(${a ? "-0.8, 0.8" : "0.8"})`}">${l.svg}</g>`;
19639
19639
  }
19640
- return (l, a) => (C(), ee(kt, {
19640
+ return (l, a) => (C(), ee(bt, {
19641
19641
  title: n.side === "start" ? "Start Arrow Head" : "End Arrow Head"
19642
19642
  }, {
19643
19643
  button: se(() => [
@@ -19718,7 +19718,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
19718
19718
  }
19719
19719
  });
19720
19720
  }
19721
- return (i, l) => (C(), ee(kt, { title: "Thickness" }, {
19721
+ return (i, l) => (C(), ee(bt, { title: "Thickness" }, {
19722
19722
  button: se(() => [
19723
19723
  x("div", YC, [
19724
19724
  l[0] || (l[0] = x("svg", {
@@ -19904,7 +19904,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
19904
19904
  var i;
19905
19905
  (i = t()) == null || i.command(r.command), s();
19906
19906
  }
19907
- return (r, s) => (C(), ee(kt, { title: "More" }, {
19907
+ return (r, s) => (C(), ee(bt, { title: "More" }, {
19908
19908
  button: se(() => [...s[0] || (s[0] = [
19909
19909
  x("div", { class: "wov-block-operations-button" }, [
19910
19910
  x("svg", {
@@ -20038,7 +20038,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20038
20038
  ref_key: "sliderRef",
20039
20039
  ref: r,
20040
20040
  class: "wov-color-slider",
20041
- onPointerdown: At(i, ["prevent"])
20041
+ onPointerdown: ut(i, ["prevent"])
20042
20042
  }, [
20043
20043
  n.background ? (C(), A("div", {
20044
20044
  key: 0,
@@ -20118,7 +20118,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20118
20118
  ref: i,
20119
20119
  class: "wov-color-picker-selector",
20120
20120
  style: ve({ backgroundColor: h.value }),
20121
- onPointerdown: At(w, ["prevent"])
20121
+ onPointerdown: ut(w, ["prevent"])
20122
20122
  }, [
20123
20123
  x("div", uM, [
20124
20124
  x("div", {
@@ -20224,14 +20224,14 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20224
20224
  key: g,
20225
20225
  class: Te(["wov-color-bubble", { selected: c(g) }]),
20226
20226
  style: ve({ backgroundColor: g }),
20227
- onMousedown: m[1] || (m[1] = At(() => {
20227
+ onMousedown: m[1] || (m[1] = ut(() => {
20228
20228
  }, ["prevent"])),
20229
20229
  onClick: (y) => d(g)
20230
20230
  }, null, 46, mM))), 128)),
20231
20231
  n.withPicker ? (C(), A("div", {
20232
20232
  key: 0,
20233
20233
  class: Te(["wov-color-bubble wov-rainbow-bubble", { selected: u() }]),
20234
- onMousedown: m[2] || (m[2] = At(() => {
20234
+ onMousedown: m[2] || (m[2] = ut(() => {
20235
20235
  }, ["prevent"])),
20236
20236
  onClick: f
20237
20237
  }, null, 34)) : j("", !0)
@@ -20270,7 +20270,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20270
20270
  Zo.fromHex(d, f, u);
20271
20271
  });
20272
20272
  }
20273
- return (c, u) => (C(), ee(kt, { title: "Color" }, {
20273
+ return (c, u) => (C(), ee(bt, { title: "Color" }, {
20274
20274
  button: se(() => [
20275
20275
  x("div", gM, [
20276
20276
  x("div", yM, [
@@ -20307,7 +20307,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20307
20307
  placement: s,
20308
20308
  middleware: [hr(8), mr(), pr({ padding: 8 })]
20309
20309
  }), l = Symbol("menu-tooltip"), a = O(() => Ns.value[0] === l);
20310
- wt(() => {
20310
+ kt(() => {
20311
20311
  Ns.value.push(l);
20312
20312
  }), $e(() => {
20313
20313
  Ns.value = Ns.value.filter((u) => u !== l);
@@ -20371,7 +20371,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20371
20371
  }
20372
20372
  });
20373
20373
  }
20374
- return (a, c) => s.value ? (C(), ee(kt, {
20374
+ return (a, c) => s.value ? (C(), ee(bt, {
20375
20375
  key: 0,
20376
20376
  title: "Thickness"
20377
20377
  }, {
@@ -20480,7 +20480,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20480
20480
  });
20481
20481
  }
20482
20482
  const h = B(!1);
20483
- return (p, m) => (C(), ee(kt, { title: "Fill Color" }, {
20483
+ return (p, m) => (C(), ee(bt, { title: "Fill Color" }, {
20484
20484
  button: se(() => [
20485
20485
  x("div", SM, [
20486
20486
  m[1] || (m[1] = x("svg", {
@@ -20578,7 +20578,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20578
20578
  }
20579
20579
  });
20580
20580
  }
20581
- return (c, u) => (C(), ee(kt, { title: "Shape Type" }, {
20581
+ return (c, u) => (C(), ee(bt, { title: "Shape Type" }, {
20582
20582
  button: se(() => [
20583
20583
  x("div", OM, [
20584
20584
  u[0] || (u[0] = x("svg", {
@@ -20640,15 +20640,15 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20640
20640
  emits: ["change"],
20641
20641
  setup(n, { emit: e }) {
20642
20642
  const t = e, o = [
20643
- { kind: Mt.Solid, label: "Solid" },
20644
- { kind: Mt.Dashed, label: "Dashed" },
20645
- { kind: Mt.None, label: "None" }
20643
+ { kind: Tt.Solid, label: "Solid" },
20644
+ { kind: Tt.Dashed, label: "Dashed" },
20645
+ { kind: Tt.None, label: "None" }
20646
20646
  ];
20647
20647
  function r(i) {
20648
20648
  switch (i) {
20649
- case Mt.Dashed:
20649
+ case Tt.Dashed:
20650
20650
  return "6 6";
20651
- case Mt.None:
20651
+ case Tt.None:
20652
20652
  return "";
20653
20653
  default:
20654
20654
  return "";
@@ -20674,7 +20674,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20674
20674
  y2: "4",
20675
20675
  "stroke-linecap": "round",
20676
20676
  "stroke-dasharray": r(a.kind),
20677
- "stroke-opacity": a.kind === F(Mt).None ? 0.3 : 1
20677
+ "stroke-opacity": a.kind === F(Tt).None ? 0.3 : 1
20678
20678
  }, null, 8, zM)
20679
20679
  ])),
20680
20680
  x("span", null, _e(a.label), 1)
@@ -20708,7 +20708,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20708
20708
  return Array.from(m);
20709
20709
  }), l = O(() => i.value.length > 1), a = O(() => i.value[0] ?? "#000000"), c = O(() => {
20710
20710
  const m = r.value.values().next().value;
20711
- return (m == null ? void 0 : m.strokeKind) ?? Mt.Solid;
20711
+ return (m == null ? void 0 : m.strokeKind) ?? Tt.Solid;
20712
20712
  }), u = O(() => {
20713
20713
  const m = /* @__PURE__ */ new Set();
20714
20714
  for (const g of r.value.values())
@@ -20744,7 +20744,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20744
20744
  }
20745
20745
  });
20746
20746
  }
20747
- return (m, g) => (C(), ee(kt, { title: "Stroke Color" }, {
20747
+ return (m, g) => (C(), ee(bt, { title: "Stroke Color" }, {
20748
20748
  button: se(() => [
20749
20749
  x("div", HM, [
20750
20750
  g[1] || (g[1] = x("svg", {
@@ -20836,7 +20836,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20836
20836
  }
20837
20837
  });
20838
20838
  }
20839
- return (l, a) => (C(), ee(kt, { title: "Tape Style" }, {
20839
+ return (l, a) => (C(), ee(bt, { title: "Tape Style" }, {
20840
20840
  button: se(() => [
20841
20841
  x("div", JM, [
20842
20842
  x("div", {
@@ -20852,7 +20852,7 @@ const _t = /* @__PURE__ */ Oo(WC, [["render", UC]]), KC = { class: "wov-menu-but
20852
20852
  key: c.url,
20853
20853
  class: Te(["wov-tape-image-bubble", { selected: s.value === c.url }]),
20854
20854
  style: ve({ backgroundImage: `url(${c.url})` }),
20855
- onMousedown: a[0] || (a[0] = At(() => {
20855
+ onMousedown: a[0] || (a[0] = ut(() => {
20856
20856
  }, ["prevent"])),
20857
20857
  onClick: (u) => i(c.url)
20858
20858
  }, null, 46, YM)), 64))
@@ -20956,7 +20956,7 @@ function iT(n) {
20956
20956
  return Cc();
20957
20957
  }
20958
20958
  function lT(n, e = !0, t) {
20959
- iT() ? wt(n, t) : e ? n() : Gn(n);
20959
+ iT() ? kt(n, t) : e ? n() : Gn(n);
20960
20960
  }
20961
20961
  function aT(n, e, t) {
20962
20962
  return pe(n, e, {
@@ -21059,7 +21059,7 @@ function cT(n, e, t = {}) {
21059
21059
  // @__NO_SIDE_EFFECTS__
21060
21060
  function uT() {
21061
21061
  const n = Ae(!1), e = Cc();
21062
- return e && wt(() => {
21062
+ return e && kt(() => {
21063
21063
  n.value = !0;
21064
21064
  }, e), n;
21065
21065
  }
@@ -21160,7 +21160,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21160
21160
  function c(u) {
21161
21161
  u.stopPropagation();
21162
21162
  }
21163
- return (u, d) => F(t).showTextMenuButtons ? (C(), ee(kt, {
21163
+ return (u, d) => F(t).showTextMenuButtons ? (C(), ee(bt, {
21164
21164
  key: 0,
21165
21165
  title: "Font Family"
21166
21166
  }, {
@@ -21174,7 +21174,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21174
21174
  x("div", {
21175
21175
  class: "wov-font-family-menu",
21176
21176
  onWheel: c,
21177
- onClick: d[0] || (d[0] = At(() => {
21177
+ onClick: d[0] || (d[0] = ut(() => {
21178
21178
  }, ["stop"]))
21179
21179
  }, [
21180
21180
  x("div", gT, [
@@ -21208,79 +21208,128 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21208
21208
  xmlns: "http://www.w3.org/2000/svg",
21209
21209
  viewBox: "0 0 448 512",
21210
21210
  fill: "currentColor"
21211
- }, ST = { class: "wov-input-container" }, CT = ["value"], mh = /* @__PURE__ */ q({
21211
+ }, ST = { class: "wov-input-container" }, CT = ["value"], MT = { class: "wov-size-stepper" }, TT = 1, mh = /* @__PURE__ */ q({
21212
21212
  __name: "TextFontSizeButton",
21213
21213
  props: {
21214
21214
  entityIds: {}
21215
21215
  },
21216
21216
  setup(n) {
21217
- const e = n, { state: t, commands: o } = nn(() => e.entityIds), r = [
21217
+ const e = n, { state: t, commands: o } = nn(() => e.entityIds), r = B(null), s = [
21218
21218
  { label: "Small", value: 16, displayValue: 10 },
21219
21219
  { label: "Medium", value: 24, displayValue: 12 },
21220
21220
  { label: "Large", value: 40, displayValue: 16 },
21221
21221
  { label: "Huge", value: 96, displayValue: 20 }
21222
- ], s = O(() => t.fontSize), i = O(() => {
21223
- const f = s.value;
21224
- if (f === null) return "Mixed";
21225
- const h = r.find((p) => p.value === f);
21226
- return h ? h.label : `${+f.toFixed(1)} px`;
21227
- }), l = O(() => {
21228
- const f = s.value;
21229
- return f === null ? "" : String(+f.toFixed(1));
21222
+ ], i = O(() => t.fontSize), l = O(() => {
21223
+ const p = i.value;
21224
+ if (p === null) return "Mixed";
21225
+ const m = s.find((g) => g.value === p);
21226
+ return m ? m.label : `${+p.toFixed(1)} px`;
21227
+ }), a = O(() => {
21228
+ const p = i.value;
21229
+ return p === null ? "" : String(+p.toFixed(1));
21230
21230
  });
21231
- function a(f) {
21232
- o.setFontSize(f);
21231
+ function c(p) {
21232
+ o.setFontSize(p);
21233
+ }
21234
+ function u(p) {
21235
+ const m = p.target, g = Number.parseFloat(m.value);
21236
+ if (Number.isNaN(g) || g <= 0) {
21237
+ m.value = a.value;
21238
+ return;
21239
+ }
21240
+ c(g);
21233
21241
  }
21234
- function c(f) {
21235
- const h = f.target, p = Number.parseFloat(h.value);
21236
- !Number.isNaN(p) && p > 0 && a(p);
21242
+ function d(p) {
21243
+ var k;
21244
+ const m = Number.parseFloat(((k = r.value) == null ? void 0 : k.value) ?? ""), g = Number.isNaN(m) ? i.value : m;
21245
+ if (g === null) return;
21246
+ const y = Math.max(+(g + p).toFixed(1), TT);
21247
+ r.value && (r.value.value = String(y)), c(y);
21237
21248
  }
21238
- function u(f) {
21239
- f.key === "Enter" && f.target.blur();
21249
+ function f(p) {
21250
+ p.key === "Enter" ? p.target.blur() : p.key === "ArrowUp" ? (p.preventDefault(), d(1)) : p.key === "ArrowDown" && (p.preventDefault(), d(-1));
21240
21251
  }
21241
- function d(f) {
21242
- f.stopPropagation();
21252
+ function h(p) {
21253
+ p.stopPropagation();
21243
21254
  }
21244
- return (f, h) => F(t).showTextMenuButtons ? (C(), ee(kt, {
21255
+ return (p, m) => F(t).showTextMenuButtons ? (C(), ee(bt, {
21245
21256
  key: 0,
21246
21257
  title: "Font Size"
21247
21258
  }, {
21248
21259
  button: se(() => [
21249
21260
  x("div", wT, [
21250
- x("span", kT, _e(i.value), 1),
21261
+ x("span", kT, _e(l.value), 1),
21251
21262
  Z(_t, { class: "wov-chevron-down" })
21252
21263
  ])
21253
21264
  ]),
21254
21265
  dropdown: se(() => [
21255
21266
  x("div", {
21256
21267
  class: "wov-font-size-menu",
21257
- onWheel: d,
21258
- onClick: h[0] || (h[0] = At(() => {
21268
+ onWheel: h,
21269
+ onClick: m[4] || (m[4] = ut(() => {
21270
+ }, ["stop"])),
21271
+ onKeydown: m[5] || (m[5] = ut(() => {
21259
21272
  }, ["stop"]))
21260
21273
  }, [
21261
- (C(), A(ie, null, Se(r, (p) => x("div", {
21262
- key: p.value,
21263
- class: Te(["wov-font-size-option", { active: s.value === p.value }]),
21264
- onClick: (m) => a(p.value)
21274
+ (C(), A(ie, null, Se(s, (g) => x("div", {
21275
+ key: g.value,
21276
+ class: Te(["wov-font-size-option", { active: i.value === g.value }]),
21277
+ onClick: (y) => c(g.value)
21265
21278
  }, [
21266
- s.value === p.value ? (C(), A("svg", xT, [...h[1] || (h[1] = [
21279
+ i.value === g.value ? (C(), A("svg", xT, [...m[6] || (m[6] = [
21267
21280
  x("path", { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }, null, -1)
21268
21281
  ])])) : j("", !0),
21269
21282
  x("span", {
21270
21283
  class: "wov-option-label",
21271
- style: ve({ fontSize: `${p.displayValue}px` })
21272
- }, _e(p.label), 5)
21284
+ style: ve({ fontSize: `${g.displayValue}px` })
21285
+ }, _e(g.label), 5)
21273
21286
  ], 10, bT)), 64)),
21274
- h[3] || (h[3] = x("div", { class: "wov-separator" }, null, -1)),
21287
+ m[10] || (m[10] = x("div", { class: "wov-separator" }, null, -1)),
21275
21288
  x("div", ST, [
21276
21289
  x("input", {
21290
+ ref_key: "inputRef",
21291
+ ref: r,
21277
21292
  class: "wov-custom-input",
21278
- value: l.value,
21279
- onInput: c,
21280
- onKeydown: u,
21293
+ value: a.value,
21294
+ onChange: u,
21295
+ onKeydown: f,
21281
21296
  placeholder: "Custom size"
21282
21297
  }, null, 40, CT),
21283
- h[2] || (h[2] = x("span", { class: "wov-px-suffix" }, "px", -1))
21298
+ m[9] || (m[9] = x("span", { class: "wov-px-suffix" }, "px", -1)),
21299
+ x("div", MT, [
21300
+ x("button", {
21301
+ class: "wov-size-stepper-button",
21302
+ title: "Increase size",
21303
+ onMousedown: m[0] || (m[0] = ut(() => {
21304
+ }, ["prevent"])),
21305
+ onClick: m[1] || (m[1] = (g) => d(1))
21306
+ }, [...m[7] || (m[7] = [
21307
+ x("svg", {
21308
+ class: "wov-size-stepper-icon up",
21309
+ xmlns: "http://www.w3.org/2000/svg",
21310
+ viewBox: "0 0 512 320",
21311
+ fill: "currentColor"
21312
+ }, [
21313
+ x("path", { d: "M233.4 278.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 210.7 86.6 41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z" })
21314
+ ], -1)
21315
+ ])], 32),
21316
+ x("button", {
21317
+ class: "wov-size-stepper-button",
21318
+ title: "Decrease size",
21319
+ onMousedown: m[2] || (m[2] = ut(() => {
21320
+ }, ["prevent"])),
21321
+ onClick: m[3] || (m[3] = (g) => d(-1))
21322
+ }, [...m[8] || (m[8] = [
21323
+ x("svg", {
21324
+ class: "wov-size-stepper-icon",
21325
+ xmlns: "http://www.w3.org/2000/svg",
21326
+ viewBox: "0 0 512 320",
21327
+ fill: "currentColor"
21328
+ }, [
21329
+ x("path", { d: "M233.4 278.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 210.7 86.6 41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z" })
21330
+ ], -1)
21331
+ ])], 32)
21332
+ ])
21284
21333
  ])
21285
21334
  ], 32)
21286
21335
  ]),
@@ -21337,7 +21386,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21337
21386
  _: 1
21338
21387
  }, 8, ["class", "onClick"])) : j("", !0);
21339
21388
  }
21340
- }), MT = { class: "wov-link-input-container" }, TT = ["onKeydown"], vh = /* @__PURE__ */ q({
21389
+ }), ET = { class: "wov-link-input-container" }, AT = ["onKeydown"], vh = /* @__PURE__ */ q({
21341
21390
  __name: "TextLinkButton",
21342
21391
  props: {
21343
21392
  entityIds: {}
@@ -21401,10 +21450,10 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21401
21450
  ref: a,
21402
21451
  class: "wov-link-input-dropdown",
21403
21452
  style: ve(F(u)),
21404
- onKeydown: g[2] || (g[2] = At(() => {
21453
+ onKeydown: g[2] || (g[2] = ut(() => {
21405
21454
  }, ["stop"]))
21406
21455
  }, [
21407
- x("div", MT, [
21456
+ x("div", ET, [
21408
21457
  jh(x("input", {
21409
21458
  ref_key: "inputRef",
21410
21459
  ref: i,
@@ -21412,10 +21461,10 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21412
21461
  class: "wov-link-input",
21413
21462
  placeholder: "Paste or type URL",
21414
21463
  onKeydown: [
21415
- td(At(f, ["prevent"]), ["enter"]),
21416
- g[1] || (g[1] = td(At((y) => r.value = !1, ["prevent"]), ["esc"]))
21464
+ td(ut(f, ["prevent"]), ["enter"]),
21465
+ g[1] || (g[1] = td(ut((y) => r.value = !1, ["prevent"]), ["esc"]))
21417
21466
  ]
21418
- }, null, 40, TT), [
21467
+ }, null, 40, AT), [
21419
21468
  [Uh, s.value]
21420
21469
  ]),
21421
21470
  s.value || F(t).linkHref ? (C(), A("button", {
@@ -21450,7 +21499,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21450
21499
  ], 8, ["to"])) : j("", !0)
21451
21500
  ], 64));
21452
21501
  }
21453
- }), ET = { class: "wov-text-color-button" }, AT = { class: "wov-text-icon-container" }, wh = /* @__PURE__ */ q({
21502
+ }), IT = { class: "wov-text-color-button" }, OT = { class: "wov-text-icon-container" }, wh = /* @__PURE__ */ q({
21454
21503
  __name: "TextColorButton",
21455
21504
  props: {
21456
21505
  entityIds: {}
@@ -21460,13 +21509,13 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21460
21509
  function i(l) {
21461
21510
  o.setColor(ds(l));
21462
21511
  }
21463
- return (l, a) => F(t).showTextMenuButtons ? (C(), ee(kt, {
21512
+ return (l, a) => F(t).showTextMenuButtons ? (C(), ee(bt, {
21464
21513
  key: 0,
21465
21514
  title: "Text Color"
21466
21515
  }, {
21467
21516
  button: se(() => [
21468
- x("div", ET, [
21469
- x("div", AT, [
21517
+ x("div", IT, [
21518
+ x("div", OT, [
21470
21519
  a[0] || (a[0] = x("svg", {
21471
21520
  xmlns: "http://www.w3.org/2000/svg",
21472
21521
  viewBox: "0 0 640 640",
@@ -21493,7 +21542,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21493
21542
  _: 1
21494
21543
  })) : j("", !0);
21495
21544
  }
21496
- }), IT = {
21545
+ }), _T = {
21497
21546
  key: 0,
21498
21547
  xmlns: "http://www.w3.org/2000/svg",
21499
21548
  width: "24",
@@ -21505,7 +21554,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21505
21554
  "stroke-linecap": "round",
21506
21555
  "stroke-linejoin": "round",
21507
21556
  class: "lucide lucide-align-vertical-justify-start-icon lucide-align-vertical-justify-start"
21508
- }, OT = {
21557
+ }, DT = {
21509
21558
  key: 1,
21510
21559
  xmlns: "http://www.w3.org/2000/svg",
21511
21560
  width: "24",
@@ -21517,7 +21566,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21517
21566
  "stroke-linecap": "round",
21518
21567
  "stroke-linejoin": "round",
21519
21568
  class: "lucide lucide-align-vertical-justify-center-icon lucide-align-vertical-justify-center"
21520
- }, _T = {
21569
+ }, NT = {
21521
21570
  key: 2,
21522
21571
  xmlns: "http://www.w3.org/2000/svg",
21523
21572
  width: "24",
@@ -21561,7 +21610,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21561
21610
  onClick: l
21562
21611
  }, {
21563
21612
  default: se(() => [
21564
- i.value === F(Ze).Top || i.value === null ? (C(), A("svg", IT, [...c[0] || (c[0] = [
21613
+ i.value === F(Ze).Top || i.value === null ? (C(), A("svg", _T, [...c[0] || (c[0] = [
21565
21614
  x("rect", {
21566
21615
  width: "14",
21567
21616
  height: "6",
@@ -21577,7 +21626,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21577
21626
  rx: "2"
21578
21627
  }, null, -1),
21579
21628
  x("path", { d: "M2 2h20" }, null, -1)
21580
- ])])) : i.value === F(Ze).Center ? (C(), A("svg", OT, [...c[1] || (c[1] = [
21629
+ ])])) : i.value === F(Ze).Center ? (C(), A("svg", DT, [...c[1] || (c[1] = [
21581
21630
  x("rect", {
21582
21631
  width: "14",
21583
21632
  height: "6",
@@ -21593,7 +21642,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21593
21642
  rx: "2"
21594
21643
  }, null, -1),
21595
21644
  x("path", { d: "M2 12h20" }, null, -1)
21596
- ])])) : (C(), A("svg", _T, [...c[2] || (c[2] = [
21645
+ ])])) : (C(), A("svg", NT, [...c[2] || (c[2] = [
21597
21646
  x("rect", {
21598
21647
  width: "14",
21599
21648
  height: "6",
@@ -21614,7 +21663,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21614
21663
  _: 1
21615
21664
  })) : j("", !0);
21616
21665
  }
21617
- }), DT = { class: "wov-text-group-button" }, NT = { class: "wov-text-group-dropdown" }, RT = { class: "wov-text-group-row wov-text-group-row-full" }, PT = { class: "wov-text-group-row" }, LT = /* @__PURE__ */ q({
21666
+ }), RT = { class: "wov-text-group-button" }, PT = { class: "wov-text-group-dropdown" }, LT = { class: "wov-text-group-row wov-text-group-row-full" }, $T = { class: "wov-text-group-row" }, BT = /* @__PURE__ */ q({
21618
21667
  __name: "TextButtonGroup",
21619
21668
  props: {
21620
21669
  entityIds: {},
@@ -21623,13 +21672,13 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21623
21672
  setup(n) {
21624
21673
  const e = n, { state: t } = nn(() => e.entityIds), o = ge("containerRef"), { width: r } = r0(o), s = O(() => r.value > 0 && r.value < 600), i = B(/* @__PURE__ */ new Map());
21625
21674
  return ho(ep, i), (l, a) => F(t).showTextMenuButtons ? (C(), A(ie, { key: 0 }, [
21626
- s.value ? (C(), ee(kt, {
21675
+ s.value ? (C(), ee(bt, {
21627
21676
  key: 0,
21628
21677
  title: "Text Formatting",
21629
21678
  placement: "top"
21630
21679
  }, {
21631
21680
  button: se(() => [
21632
- x("div", DT, [
21681
+ x("div", RT, [
21633
21682
  a[0] || (a[0] = x("svg", {
21634
21683
  xmlns: "http://www.w3.org/2000/svg",
21635
21684
  viewBox: "0 0 640 640",
@@ -21642,13 +21691,13 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21642
21691
  ])
21643
21692
  ]),
21644
21693
  dropdown: se(() => [
21645
- x("div", NT, [
21646
- x("div", RT, [
21694
+ x("div", PT, [
21695
+ x("div", LT, [
21647
21696
  Z(ph, { entityIds: n.entityIds }, null, 8, ["entityIds"]),
21648
21697
  a[1] || (a[1] = x("div", { class: "wov-text-group-spacer" }, null, -1)),
21649
21698
  Z(mh, { entityIds: n.entityIds }, null, 8, ["entityIds"])
21650
21699
  ]),
21651
- x("div", PT, [
21700
+ x("div", $T, [
21652
21701
  Z(hh, { entityIds: n.entityIds }, null, 8, ["entityIds"]),
21653
21702
  Z(gh, { entityIds: n.entityIds }, null, 8, ["entityIds"]),
21654
21703
  Z(yh, { entityIds: n.entityIds }, null, 8, ["entityIds"]),
@@ -21688,7 +21737,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21688
21737
  ], 64))
21689
21738
  ], 64)) : j("", !0);
21690
21739
  }
21691
- }), $T = /* @__PURE__ */ q({
21740
+ }), zT = /* @__PURE__ */ q({
21692
21741
  __name: "CanvasBackground",
21693
21742
  props: {
21694
21743
  background: {}
@@ -21773,8 +21822,8 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21773
21822
  let N = w * b, R = v * b, W = 0, V = 0, te = Number.POSITIVE_INFINITY, J = Number.POSITIVE_INFINITY;
21774
21823
  for (; ; ) {
21775
21824
  N = b * w, R = b * v, W = Math.floor(T / N) * N, V = Math.floor(E / R) * R;
21776
- const bt = Math.ceil(_ / N) * N, Dt = Math.ceil(D / R) * R;
21777
- if (J = Math.round((bt - W) / w), te = Math.round((Dt - V) / v), Math.max(J, te) > 125)
21825
+ const xt = Math.ceil(_ / N) * N, Dt = Math.ceil(D / R) * R;
21826
+ if (J = Math.round((xt - W) / w), te = Math.round((Dt - V) / v), Math.max(J, te) > 125)
21778
21827
  w *= 2, v *= 2;
21779
21828
  else
21780
21829
  break;
@@ -21801,8 +21850,8 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21801
21850
  let N = w * b, R = v * b, W = 0, V = 0, te = Number.POSITIVE_INFINITY, J = Number.POSITIVE_INFINITY;
21802
21851
  for (; ; ) {
21803
21852
  N = b * w, R = b * v, W = Math.floor(T / N) * N, V = Math.floor(E / R) * R;
21804
- const bt = Math.ceil(_ / N) * N, Dt = Math.ceil(D / R) * R;
21805
- if (J = Math.round((bt - W) / w), te = Math.round((Dt - V) / v), Math.max(J, te) > 200)
21853
+ const xt = Math.ceil(_ / N) * N, Dt = Math.ceil(D / R) * R;
21854
+ if (J = Math.round((xt - W) / w), te = Math.round((Dt - V) / v), Math.max(J, te) > 200)
21806
21855
  w *= 2, v *= 2;
21807
21856
  else
21808
21857
  break;
@@ -21837,7 +21886,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21837
21886
  y();
21838
21887
  },
21839
21888
  { deep: !0 }
21840
- ), wt(() => {
21889
+ ), kt(() => {
21841
21890
  const k = i == null ? void 0 : i.value;
21842
21891
  if (k) {
21843
21892
  const w = () => {
@@ -21864,7 +21913,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21864
21913
  }
21865
21914
  }, null, 512));
21866
21915
  }
21867
- }), BT = /* @__PURE__ */ q({
21916
+ }), FT = /* @__PURE__ */ q({
21868
21917
  __name: "FileDropZone",
21869
21918
  props: {
21870
21919
  maxSize: { default: 400 }
@@ -21887,7 +21936,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21887
21936
  function d() {
21888
21937
  i = 0, s.value = !1;
21889
21938
  }
21890
- wt(() => {
21939
+ kt(() => {
21891
21940
  const v = a == null ? void 0 : a.value;
21892
21941
  v && (v.addEventListener("dragenter", c), v.addEventListener("dragleave", u), v.addEventListener("drop", d));
21893
21942
  }), $e(() => {
@@ -21971,7 +22020,7 @@ const pT = { class: "wov-font-family-button" }, mT = { class: "wov-font-family-l
21971
22020
  }, null, 34));
21972
22021
  }
21973
22022
  });
21974
- function zT(n, e) {
22023
+ function HT(n, e) {
21975
22024
  if (e.length === 0) return /* @__PURE__ */ new Set();
21976
22025
  const t = e[0].tag, o = n.blockDefs[t];
21977
22026
  if (!o) return /* @__PURE__ */ new Set();
@@ -21988,13 +22037,13 @@ function zT(n, e) {
21988
22037
  }
21989
22038
  return r;
21990
22039
  }
21991
- function FT(n, e) {
22040
+ function VT(n, e) {
21992
22041
  return e.length === 0 ? !1 : e.every(({ tag: t }) => {
21993
22042
  var o;
21994
22043
  return ((o = n.blockDefs[t]) == null ? void 0 : o.showOperations) ?? !0;
21995
22044
  });
21996
22045
  }
21997
- const HT = /* @__PURE__ */ q({
22046
+ const WT = /* @__PURE__ */ q({
21998
22047
  __name: "FloatingMenuBar",
21999
22048
  setup(n) {
22000
22049
  const e = Kh(), { reset: t } = no(), o = ge(tp), { selectedIds: r, commonComponents: s, showOperations: i } = o, l = /* @__PURE__ */ new Set([
@@ -22081,7 +22130,7 @@ const HT = /* @__PURE__ */ q({
22081
22130
  key: 6,
22082
22131
  entityIds: F(r)
22083
22132
  }, () => [
22084
- Z(LT, {
22133
+ Z(BT, {
22085
22134
  entityIds: F(r),
22086
22135
  showVerticalAlign: F(s).has("verticalAlign")
22087
22136
  }, null, 8, ["entityIds", "showVerticalAlign"])
@@ -22097,7 +22146,7 @@ const HT = /* @__PURE__ */ q({
22097
22146
  ], 64)) : j("", !0)
22098
22147
  ], 32));
22099
22148
  }
22100
- }), VT = { class: "wov-floating-menu-inner" }, WT = /* @__PURE__ */ q({
22149
+ }), jT = { class: "wov-floating-menu-inner" }, UT = /* @__PURE__ */ q({
22101
22150
  __name: "FloatingMenu",
22102
22151
  setup(n) {
22103
22152
  const e = ge(Ue), t = gS([le, Qi]), o = ot(Pe), r = ot(eo), s = ot(el), i = fr(), l = O(
@@ -22106,10 +22155,10 @@ const HT = /* @__PURE__ */ q({
22106
22155
  () => t.value.map((T) => ({ tag: T.block.value.tag }))
22107
22156
  ), c = O(() => {
22108
22157
  const T = e == null ? void 0 : e.getEditor();
22109
- return T ? zT(T, a.value) : /* @__PURE__ */ new Set();
22158
+ return T ? HT(T, a.value) : /* @__PURE__ */ new Set();
22110
22159
  }), u = O(() => {
22111
22160
  const T = e == null ? void 0 : e.getEditor();
22112
- return T ? FT(T, a.value) : !1;
22161
+ return T ? VT(T, a.value) : !1;
22113
22162
  });
22114
22163
  ho(tp, { selectedIds: l, commonComponents: c, showOperations: u });
22115
22164
  const d = [0, 0, 0, 0];
@@ -22213,9 +22262,9 @@ const HT = /* @__PURE__ */ q({
22213
22262
  class: "wov-floating-menu",
22214
22263
  style: ve(F(k))
22215
22264
  }, [
22216
- x("div", VT, [
22265
+ x("div", jT, [
22217
22266
  me(T.$slots, "default", {}, () => [
22218
- Z(HT)
22267
+ Z(WT)
22219
22268
  ])
22220
22269
  ])
22221
22270
  ], 4)) : j("", !0)
@@ -22223,10 +22272,10 @@ const HT = /* @__PURE__ */ q({
22223
22272
  _: 3
22224
22273
  }));
22225
22274
  }
22226
- }), jT = {
22275
+ }), KT = {
22227
22276
  key: 0,
22228
22277
  class: "wov-loading-overlay"
22229
- }, UT = { class: "wov-loading-spinner" }, KT = /* @__PURE__ */ q({
22278
+ }, qT = { class: "wov-loading-spinner" }, JT = /* @__PURE__ */ q({
22230
22279
  __name: "LoadingOverlay",
22231
22280
  props: {
22232
22281
  isLoading: { type: Boolean }
@@ -22234,7 +22283,7 @@ const HT = /* @__PURE__ */ q({
22234
22283
  setup(n) {
22235
22284
  const e = B("|"), t = ["|", "/", "-", "\\"];
22236
22285
  let o = null;
22237
- return wt(() => {
22286
+ return kt(() => {
22238
22287
  o = setInterval(() => {
22239
22288
  const r = t.indexOf(e.value);
22240
22289
  e.value = t[(r + 1) % t.length];
@@ -22243,14 +22292,14 @@ const HT = /* @__PURE__ */ q({
22243
22292
  o !== null && clearInterval(o);
22244
22293
  }), (r, s) => (C(), ee(Mc, { name: "wov-loading-fade" }, {
22245
22294
  default: se(() => [
22246
- n.isLoading ? (C(), A("div", jT, [
22247
- x("div", UT, _e(e.value), 1)
22295
+ n.isLoading ? (C(), A("div", KT, [
22296
+ x("div", qT, _e(e.value), 1)
22248
22297
  ])) : j("", !0)
22249
22298
  ]),
22250
22299
  _: 1
22251
22300
  }));
22252
22301
  }
22253
- }), qT = { class: "wov-action-bar" }, JT = /* @__PURE__ */ q({
22302
+ }), GT = { class: "wov-action-bar" }, YT = /* @__PURE__ */ q({
22254
22303
  __name: "ActionBar",
22255
22304
  setup(n) {
22256
22305
  const { getEditor: e } = Ce(), t = ge(Ue), o = B(!1), r = B(!1);
@@ -22273,7 +22322,7 @@ const HT = /* @__PURE__ */ q({
22273
22322
  const a = e();
22274
22323
  a == null || a.command(Xh);
22275
22324
  }
22276
- return (a, c) => (C(), A("div", qT, [
22325
+ return (a, c) => (C(), A("div", GT, [
22277
22326
  x("button", {
22278
22327
  class: "wov-action-button",
22279
22328
  onClick: s,
@@ -22389,30 +22438,30 @@ const HT = /* @__PURE__ */ q({
22389
22438
  me(h.$slots, "default")
22390
22439
  ], 34));
22391
22440
  }
22392
- }), GT = '<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.35 4.75" width="20" height="20"><defs><style>.cls-1{stroke:#fff;stroke-miterlimit:10;stroke-width:.25px;}</style></defs><path class="cls-1" d="M2.39,2.88s-.04.01-.05.02c-.01,0-.02.01-.03.02,0,.01-.02.02-.03.05l-.77,1.44c-.07.13-.1.19-.14.2-.03.01-.07,0-.1-.01-.03-.02-.05-.09-.09-.23L.16.41c-.03-.13-.05-.19-.03-.23.02-.03.04-.05.08-.06.04,0,.1.02.21.08l3.59,1.94c.13.07.19.1.2.14.01.03,0,.07-.01.1-.02.03-.09.05-.23.09l-1.58.4Z"/></svg>', YT = '<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.08 4.75" width="24" height="24"><defs><style>.cls-1{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:.25px;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:.51px;}</style></defs><path class="cls-1" d="M.89,2.25v.63M.89,2.25V.75c0-.21.17-.38.38-.38s.38.17.38.38M.89,2.25c0-.21-.17-.37-.38-.37s-.38.17-.38.37v.5c0,1.04.86,1.87,1.91,1.87s1.91-.84,1.91-1.87v-1.25c0-.21-.17-.38-.38-.38s-.38.17.38.38M1.66.75v1.38M1.66.75v-.25c0-.21.17-.38.38-.38s.38.17.38.38v.25M2.42.75v1.38M2.42.75c0-.21.17-.38.38-.38s.38.17.38.38v.75M3.19,1.5v.63"/><line class="cls-2" x1="2.8" y1=".77" x2="2.8" y2="2.03"/><line class="cls-2" x1="2.04" y1=".64" x2="2.04" y2="2.02"/><line class="cls-2" x1="1.27" y1=".84" x2="1.27" y2="2.29"/></svg>', XT = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M9 12l6 0" /><path d="M12 9l0 6" /></svg>', ko = {
22441
+ }), XT = '<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.35 4.75" width="20" height="20"><defs><style>.cls-1{stroke:#fff;stroke-miterlimit:10;stroke-width:.25px;}</style></defs><path class="cls-1" d="M2.39,2.88s-.04.01-.05.02c-.01,0-.02.01-.03.02,0,.01-.02.02-.03.05l-.77,1.44c-.07.13-.1.19-.14.2-.03.01-.07,0-.1-.01-.03-.02-.05-.09-.09-.23L.16.41c-.03-.13-.05-.19-.03-.23.02-.03.04-.05.08-.06.04,0,.1.02.21.08l3.59,1.94c.13.07.19.1.2.14.01.03,0,.07-.01.1-.02.03-.09.05-.23.09l-1.58.4Z"/></svg>', ZT = '<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.08 4.75" width="24" height="24"><defs><style>.cls-1{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:.25px;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:.51px;}</style></defs><path class="cls-1" d="M.89,2.25v.63M.89,2.25V.75c0-.21.17-.38.38-.38s.38.17.38.38M.89,2.25c0-.21-.17-.37-.38-.37s-.38.17-.38.37v.5c0,1.04.86,1.87,1.91,1.87s1.91-.84,1.91-1.87v-1.25c0-.21-.17-.38-.38-.38s-.38.17.38.38M1.66.75v1.38M1.66.75v-.25c0-.21.17-.38.38-.38s.38.17.38.38v.25M2.42.75v1.38M2.42.75c0-.21.17-.38.38-.38s.38.17.38.38v.75M3.19,1.5v.63"/><line class="cls-2" x1="2.8" y1=".77" x2="2.8" y2="2.03"/><line class="cls-2" x1="2.04" y1=".64" x2="2.04" y2="2.02"/><line class="cls-2" x1="1.27" y1=".84" x2="1.27" y2="2.29"/></svg>', QT = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M9 12l6 0" /><path d="M12 9l0 6" /></svg>', ko = {
22393
22442
  Select: "select",
22394
22443
  Hand: "hand",
22395
22444
  Crosshair: "crosshair"
22396
- }, ZT = {
22445
+ }, eE = {
22397
22446
  [ko.Select]: {
22398
- makeSvg: () => GT,
22447
+ makeSvg: () => XT,
22399
22448
  hotspot: [1, 0],
22400
22449
  rotationOffset: 0
22401
22450
  },
22402
22451
  [ko.Hand]: {
22403
- makeSvg: () => YT,
22452
+ makeSvg: () => ZT,
22404
22453
  hotspot: [12, 12],
22405
22454
  rotationOffset: 0
22406
22455
  },
22407
22456
  [ko.Crosshair]: {
22408
- makeSvg: () => XT,
22457
+ makeSvg: () => QT,
22409
22458
  hotspot: [12, 12],
22410
22459
  rotationOffset: 0
22411
22460
  }
22412
- }, QT = {
22461
+ }, tE = {
22413
22462
  viewBox: "0 0 20 20",
22414
22463
  style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-miterlimit": "10" }
22415
- }, eE = /* @__PURE__ */ q({
22464
+ }, nE = /* @__PURE__ */ q({
22416
22465
  __name: "SelectTool",
22417
22466
  setup(n) {
22418
22467
  const { nextEditorTick: e } = Ce(), { activeTool: t } = Mu();
@@ -22426,7 +22475,7 @@ const HT = /* @__PURE__ */ q({
22426
22475
  cursor: F(ko).Select
22427
22476
  }, {
22428
22477
  default: se(() => [
22429
- (C(), A("svg", QT, [...r[0] || (r[0] = [
22478
+ (C(), A("svg", tE, [...r[0] || (r[0] = [
22430
22479
  x("g", { transform: "matrix(4.21053,0,0,4.21053,0.842105,0)" }, [
22431
22480
  x("path", {
22432
22481
  fill: "none",
@@ -22440,7 +22489,7 @@ const HT = /* @__PURE__ */ q({
22440
22489
  _: 1
22441
22490
  }, 8, ["cursor"]));
22442
22491
  }
22443
- }), tE = /* @__PURE__ */ q({
22492
+ }), oE = /* @__PURE__ */ q({
22444
22493
  __name: "HandTool",
22445
22494
  setup(n) {
22446
22495
  return (e, t) => (C(), ee(Ht, {
@@ -22463,7 +22512,7 @@ const HT = /* @__PURE__ */ q({
22463
22512
  _: 1
22464
22513
  }, 8, ["cursor"]));
22465
22514
  }
22466
- }), nE = /* @__PURE__ */ q({
22515
+ }), rE = /* @__PURE__ */ q({
22467
22516
  __name: "StickyNoteTool",
22468
22517
  setup(n) {
22469
22518
  const e = ge(Ue), t = O(() => JSON.stringify({
@@ -22504,7 +22553,7 @@ const HT = /* @__PURE__ */ q({
22504
22553
  _: 1
22505
22554
  }, 8, ["drag-out-snapshot", "placement-snapshot"]));
22506
22555
  }
22507
- }), oE = /* @__PURE__ */ q({
22556
+ }), sE = /* @__PURE__ */ q({
22508
22557
  __name: "ShapeTool",
22509
22558
  setup(n) {
22510
22559
  const e = ge(Ue), t = O(() => JSON.stringify({
@@ -22514,7 +22563,7 @@ const HT = /* @__PURE__ */ q({
22514
22563
  },
22515
22564
  shape: {
22516
22565
  kind: "rectangle",
22517
- strokeKind: Mt.Solid,
22566
+ strokeKind: Tt.Solid,
22518
22567
  strokeWidth: 2,
22519
22568
  strokeRed: 0,
22520
22569
  strokeGreen: 0,
@@ -22558,7 +22607,7 @@ const HT = /* @__PURE__ */ q({
22558
22607
  _: 1
22559
22608
  }, 8, ["drag-out-snapshot", "draw-snapshot"]));
22560
22609
  }
22561
- }), rE = /* @__PURE__ */ q({
22610
+ }), iE = /* @__PURE__ */ q({
22562
22611
  __name: "EraserTool",
22563
22612
  setup(n) {
22564
22613
  return (e, t) => (C(), ee(Ht, {
@@ -22577,7 +22626,7 @@ const HT = /* @__PURE__ */ q({
22577
22626
  _: 1
22578
22627
  }));
22579
22628
  }
22580
- }), sE = /* @__PURE__ */ q({
22629
+ }), lE = /* @__PURE__ */ q({
22581
22630
  __name: "PenTool",
22582
22631
  setup(n) {
22583
22632
  return (e, t) => (C(), ee(Ht, {
@@ -22605,7 +22654,7 @@ const HT = /* @__PURE__ */ q({
22605
22654
  _: 1
22606
22655
  }));
22607
22656
  }
22608
- }), iE = /* @__PURE__ */ q({
22657
+ }), aE = /* @__PURE__ */ q({
22609
22658
  __name: "TextTool",
22610
22659
  setup(n) {
22611
22660
  const e = ge(Ue), t = O(() => JSON.stringify({
@@ -22657,7 +22706,7 @@ const HT = /* @__PURE__ */ q({
22657
22706
  _: 1
22658
22707
  }, 8, ["drag-out-snapshot", "placement-snapshot"]));
22659
22708
  }
22660
- }), lE = /* @__PURE__ */ q({
22709
+ }), cE = /* @__PURE__ */ q({
22661
22710
  __name: "ElbowArrowTool",
22662
22711
  setup(n) {
22663
22712
  const e = JSON.stringify({
@@ -22695,7 +22744,7 @@ const HT = /* @__PURE__ */ q({
22695
22744
  _: 1
22696
22745
  }, 8, ["drag-out-snapshot"]));
22697
22746
  }
22698
- }), aE = /* @__PURE__ */ q({
22747
+ }), uE = /* @__PURE__ */ q({
22699
22748
  __name: "ImageTool",
22700
22749
  setup(n) {
22701
22750
  const { nextEditorTick: e } = Ce(), { show: t, hide: o } = no(), { setTool: r } = Mu(), { createImageBlock: s } = jg(), i = B(null), l = B(null);
@@ -22766,7 +22815,7 @@ const HT = /* @__PURE__ */ q({
22766
22815
  }, null, 544)
22767
22816
  ], 544));
22768
22817
  }
22769
- }), cE = { class: "wov-embed-provider-grid" }, uE = ["onClick"], dE = { class: "wov-embed-provider-icon" }, fE = {
22818
+ }), dE = { class: "wov-embed-provider-grid" }, fE = ["onClick"], hE = { class: "wov-embed-provider-icon" }, pE = {
22770
22819
  key: 0,
22771
22820
  viewBox: "0 0 24 24",
22772
22821
  fill: "none",
@@ -22774,7 +22823,7 @@ const HT = /* @__PURE__ */ q({
22774
22823
  "stroke-width": "1.5",
22775
22824
  "stroke-linecap": "round",
22776
22825
  "stroke-linejoin": "round"
22777
- }, hE = {
22826
+ }, mE = {
22778
22827
  key: 1,
22779
22828
  viewBox: "0 0 24 24",
22780
22829
  fill: "none",
@@ -22782,7 +22831,7 @@ const HT = /* @__PURE__ */ q({
22782
22831
  "stroke-width": "1.5",
22783
22832
  "stroke-linecap": "round",
22784
22833
  "stroke-linejoin": "round"
22785
- }, pE = {
22834
+ }, gE = {
22786
22835
  key: 2,
22787
22836
  viewBox: "0 0 24 24",
22788
22837
  fill: "none",
@@ -22790,7 +22839,7 @@ const HT = /* @__PURE__ */ q({
22790
22839
  "stroke-width": "1.5",
22791
22840
  "stroke-linecap": "round",
22792
22841
  "stroke-linejoin": "round"
22793
- }, mE = {
22842
+ }, yE = {
22794
22843
  key: 3,
22795
22844
  viewBox: "0 0 24 24",
22796
22845
  fill: "none",
@@ -22798,7 +22847,7 @@ const HT = /* @__PURE__ */ q({
22798
22847
  "stroke-width": "1.5",
22799
22848
  "stroke-linecap": "round",
22800
22849
  "stroke-linejoin": "round"
22801
- }, gE = {
22850
+ }, vE = {
22802
22851
  key: 4,
22803
22852
  viewBox: "0 0 24 24",
22804
22853
  fill: "none",
@@ -22806,7 +22855,7 @@ const HT = /* @__PURE__ */ q({
22806
22855
  "stroke-width": "1.5",
22807
22856
  "stroke-linecap": "round",
22808
22857
  "stroke-linejoin": "round"
22809
- }, yE = {
22858
+ }, wE = {
22810
22859
  key: 5,
22811
22860
  viewBox: "0 0 24 24",
22812
22861
  fill: "none",
@@ -22814,7 +22863,7 @@ const HT = /* @__PURE__ */ q({
22814
22863
  "stroke-width": "1.5",
22815
22864
  "stroke-linecap": "round",
22816
22865
  "stroke-linejoin": "round"
22817
- }, vE = {
22866
+ }, kE = {
22818
22867
  key: 6,
22819
22868
  viewBox: "0 0 24 24",
22820
22869
  fill: "none",
@@ -22822,16 +22871,16 @@ const HT = /* @__PURE__ */ q({
22822
22871
  "stroke-width": "1.5",
22823
22872
  "stroke-linecap": "round",
22824
22873
  "stroke-linejoin": "round"
22825
- }, wE = {
22874
+ }, bE = {
22826
22875
  key: 7,
22827
22876
  xmlns: "http://www.w3.org/2000/svg",
22828
22877
  width: "24",
22829
22878
  height: "24",
22830
22879
  viewBox: "0 0 24 24"
22831
- }, kE = { class: "wov-embed-provider-label" }, bE = { class: "wov-embed-panel-header" }, xE = { class: "wov-embed-url-form" }, SE = ["placeholder"], CE = {
22880
+ }, xE = { class: "wov-embed-provider-label" }, SE = { class: "wov-embed-panel-header" }, CE = { class: "wov-embed-url-form" }, ME = ["placeholder"], TE = {
22832
22881
  key: 0,
22833
22882
  class: "wov-embed-url-error"
22834
- }, ME = /* @__PURE__ */ q({
22883
+ }, EE = /* @__PURE__ */ q({
22835
22884
  __name: "EmbedTool",
22836
22885
  setup(n) {
22837
22886
  const { nextEditorTick: e } = Ce(), { show: t, hide: o } = no(), { setTool: r } = Mu(), s = B(null), i = B(null), l = B(null), a = B(!1), c = B(null), u = B(""), d = B(""), f = ge("containerRef"), { floatingStyles: h } = gr(s, i, {
@@ -23002,7 +23051,7 @@ const HT = /* @__PURE__ */ q({
23002
23051
  style: ve(F(h))
23003
23052
  }, [
23004
23053
  c.value ? (C(), A(ie, { key: 1 }, [
23005
- x("div", bE, [
23054
+ x("div", SE, [
23006
23055
  x("button", {
23007
23056
  class: "wov-embed-back-button",
23008
23057
  onClick: k
@@ -23020,7 +23069,7 @@ const HT = /* @__PURE__ */ q({
23020
23069
  ])]),
23021
23070
  x("span", null, _e((_ = p.find((D) => D.value === c.value)) == null ? void 0 : _.label), 1)
23022
23071
  ]),
23023
- x("div", xE, [
23072
+ x("div", CE, [
23024
23073
  jh(x("input", {
23025
23074
  ref_key: "urlInputRef",
23026
23075
  ref: l,
@@ -23029,10 +23078,10 @@ const HT = /* @__PURE__ */ q({
23029
23078
  placeholder: m.value,
23030
23079
  class: "wov-embed-url-input",
23031
23080
  onKeydown: v
23032
- }, null, 40, SE), [
23081
+ }, null, 40, ME), [
23033
23082
  [Uh, u.value]
23034
23083
  ]),
23035
- d.value ? (C(), A("div", CE, _e(d.value), 1)) : j("", !0),
23084
+ d.value ? (C(), A("div", TE, _e(d.value), 1)) : j("", !0),
23036
23085
  x("button", {
23037
23086
  class: "wov-embed-submit-button",
23038
23087
  onClick: w
@@ -23040,17 +23089,17 @@ const HT = /* @__PURE__ */ q({
23040
23089
  ])
23041
23090
  ], 64)) : (C(), A(ie, { key: 0 }, [
23042
23091
  E[10] || (E[10] = x("div", { class: "wov-embed-panel-header" }, "Add embed", -1)),
23043
- x("div", cE, [
23092
+ x("div", dE, [
23044
23093
  (C(), A(ie, null, Se(p, (D) => x("button", {
23045
23094
  key: D.value,
23046
23095
  class: "wov-embed-provider-button",
23047
23096
  onClick: (N) => y(D.value)
23048
23097
  }, [
23049
- x("span", dE, [
23050
- D.icon === "youtube" ? (C(), A("svg", fE, [...E[2] || (E[2] = [
23098
+ x("span", hE, [
23099
+ D.icon === "youtube" ? (C(), A("svg", pE, [...E[2] || (E[2] = [
23051
23100
  x("path", { d: "M2.5 17V7a2 2 0 0 1 2-2h15a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-15a2 2 0 0 1-2-2z" }, null, -1),
23052
23101
  x("path", { d: "m10 15 5-3-5-3z" }, null, -1)
23053
- ])])) : D.icon === "spotify" ? (C(), A("svg", hE, [...E[3] || (E[3] = [
23102
+ ])])) : D.icon === "spotify" ? (C(), A("svg", mE, [...E[3] || (E[3] = [
23054
23103
  x("circle", {
23055
23104
  cx: "12",
23056
23105
  cy: "12",
@@ -23059,14 +23108,14 @@ const HT = /* @__PURE__ */ q({
23059
23108
  x("path", { d: "M8 11.973c2.5-1.473 5.5-.973 7.5.527" }, null, -1),
23060
23109
  x("path", { d: "M9 15c1.5-1 4-.5 5.5.5" }, null, -1),
23061
23110
  x("path", { d: "M7 9c3-2 7-1 10 1" }, null, -1)
23062
- ])])) : D.icon === "map" ? (C(), A("svg", pE, [...E[4] || (E[4] = [
23111
+ ])])) : D.icon === "map" ? (C(), A("svg", gE, [...E[4] || (E[4] = [
23063
23112
  x("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z" }, null, -1),
23064
23113
  x("circle", {
23065
23114
  cx: "12",
23066
23115
  cy: "9",
23067
23116
  r: "2.5"
23068
23117
  }, null, -1)
23069
- ])])) : D.icon === "calendar" ? (C(), A("svg", mE, [...E[5] || (E[5] = [
23118
+ ])])) : D.icon === "calendar" ? (C(), A("svg", yE, [...E[5] || (E[5] = [
23070
23119
  x("rect", {
23071
23120
  x: "3",
23072
23121
  y: "4",
@@ -23093,7 +23142,7 @@ const HT = /* @__PURE__ */ q({
23093
23142
  x2: "21",
23094
23143
  y2: "10"
23095
23144
  }, null, -1)
23096
- ])])) : D.icon === "slides" ? (C(), A("svg", gE, [...E[6] || (E[6] = [
23145
+ ])])) : D.icon === "slides" ? (C(), A("svg", vE, [...E[6] || (E[6] = [
23097
23146
  x("rect", {
23098
23147
  x: "2",
23099
23148
  y: "3",
@@ -23114,24 +23163,24 @@ const HT = /* @__PURE__ */ q({
23114
23163
  x2: "12",
23115
23164
  y2: "21"
23116
23165
  }, null, -1)
23117
- ])])) : D.icon === "figma" ? (C(), A("svg", yE, [...E[7] || (E[7] = [
23166
+ ])])) : D.icon === "figma" ? (C(), A("svg", wE, [...E[7] || (E[7] = [
23118
23167
  x("path", { d: "M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z" }, null, -1),
23119
23168
  x("path", { d: "M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z" }, null, -1),
23120
23169
  x("path", { d: "M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z" }, null, -1),
23121
23170
  x("path", { d: "M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z" }, null, -1),
23122
23171
  x("path", { d: "M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z" }, null, -1)
23123
- ])])) : D.icon === "gist" ? (C(), A("svg", vE, [...E[8] || (E[8] = [
23172
+ ])])) : D.icon === "gist" ? (C(), A("svg", kE, [...E[8] || (E[8] = [
23124
23173
  x("polyline", { points: "16 18 22 12 16 6" }, null, -1),
23125
23174
  x("polyline", { points: "8 6 2 12 8 18" }, null, -1)
23126
- ])])) : D.icon === "tldraw" ? (C(), A("svg", wE, [...E[9] || (E[9] = [
23175
+ ])])) : D.icon === "tldraw" ? (C(), A("svg", bE, [...E[9] || (E[9] = [
23127
23176
  x("path", {
23128
23177
  fill: "currentColor",
23129
23178
  d: "M21.474 0H2.526C1.131 0 0 1.18 0 2.637v18.726C0 22.819 1.131 24 2.526 24h18.948C22.869 24 24 22.82 24 21.363V2.637C24 1.181 22.869 0 21.474 0m-11.01 5.388q.595-.607 1.474-.607q.854 0 1.448.607q.595.606.595 1.476c0 .87-.198 1.072-.595 1.476a1.95 1.95 0 0 1-1.448.607q-.879 0-1.474-.607q-.594-.606-.594-1.476c0-.87.198-1.072.594-1.476m3.13 11.49a4.9 4.9 0 0 1-2.018 2.136q-.724.422-1.19-.026q-.438-.422.26-1.002q.387-.29.646-.738q.258-.449.336-.923q.026-.21-.181-.21q-.517-.027-1.06-.581t-.543-1.37q0-.87.594-1.477a2.02 2.02 0 0 1 1.5-.633q.828 0 1.448.633q.62.605.724 1.37q.207 1.424-.517 2.822z"
23130
23179
  }, null, -1)
23131
23180
  ])])) : j("", !0)
23132
23181
  ]),
23133
- x("span", kE, _e(D.label), 1)
23134
- ], 8, uE)), 64))
23182
+ x("span", xE, _e(D.label), 1)
23183
+ ], 8, fE)), 64))
23135
23184
  ])
23136
23185
  ], 64))
23137
23186
  ], 4)) : j("", !0)
@@ -23139,7 +23188,7 @@ const HT = /* @__PURE__ */ q({
23139
23188
  ], 64);
23140
23189
  };
23141
23190
  }
23142
- }), TE = "https://storage.googleapis.com/download/storage/v1/b/zine-maker-public/o/tapes%2F7e3b7dde-927d-4b09-aeb4-d49eac36d4ea.png?generation=1715183194653465&alt=media", EE = /* @__PURE__ */ q({
23191
+ }), AE = "https://storage.googleapis.com/download/storage/v1/b/zine-maker-public/o/tapes%2F7e3b7dde-927d-4b09-aeb4-d49eac36d4ea.png?generation=1715183194653465&alt=media", IE = /* @__PURE__ */ q({
23143
23192
  __name: "TapeTool",
23144
23193
  setup(n) {
23145
23194
  const e = JSON.stringify({
@@ -23151,7 +23200,7 @@ const HT = /* @__PURE__ */ q({
23151
23200
  thickness: 30
23152
23201
  },
23153
23202
  asset: {
23154
- identifier: TE,
23203
+ identifier: AE,
23155
23204
  uploadState: "complete"
23156
23205
  }
23157
23206
  });
@@ -23209,7 +23258,7 @@ const HT = /* @__PURE__ */ q({
23209
23258
  _: 1
23210
23259
  }, 8, ["drag-out-snapshot"]));
23211
23260
  }
23212
- }), AE = /* @__PURE__ */ q({
23261
+ }), OE = /* @__PURE__ */ q({
23213
23262
  __name: "FrameTool",
23214
23263
  setup(n) {
23215
23264
  const e = O(() => JSON.stringify({
@@ -23245,22 +23294,22 @@ const HT = /* @__PURE__ */ q({
23245
23294
  _: 1
23246
23295
  }, 8, ["drag-out-snapshot", "draw-snapshot"]));
23247
23296
  }
23248
- }), IE = { class: "wov-toolbar-container" }, OE = /* @__PURE__ */ q({
23297
+ }), _E = { class: "wov-toolbar-container" }, DE = /* @__PURE__ */ q({
23249
23298
  __name: "Toolbar",
23250
23299
  setup(n) {
23251
23300
  const e = Kh(), { reset: t } = no(), { nextEditorTick: o } = Ce(), r = B(null), s = B(null), i = ot(Bt), l = O(() => i.value.activeToolName), a = [
23252
- eE,
23253
- tE,
23254
- iE,
23255
- aE,
23256
- ME,
23257
- oE,
23258
- AE,
23259
- lE,
23260
23301
  nE,
23302
+ oE,
23303
+ aE,
23304
+ uE,
23261
23305
  EE,
23262
23306
  sE,
23263
- rE
23307
+ OE,
23308
+ cE,
23309
+ rE,
23310
+ IE,
23311
+ lE,
23312
+ iE
23264
23313
  ], c = ge("containerRef"), u = B(null), d = B(!1), f = B(null), h = B(null), p = B(1 / 0), m = B(0), g = B([]), y = B(8), k = B(48), { width: w } = r0(c);
23265
23314
  function v() {
23266
23315
  return f.value ? Array.from(f.value.children).filter((X) => !X.classList.contains("wov-overflow-button") && !X.classList.contains("wov-menu-tooltip")) : [];
@@ -23279,8 +23328,8 @@ const HT = /* @__PURE__ */ q({
23279
23328
  if (g.value.length === 0) return;
23280
23329
  const re = w.value - 40 - 20, fe = y.value, ke = k.value;
23281
23330
  let Be = 0, qe = 0;
23282
- for (let bt = 0; bt < g.value.length; bt++) {
23283
- const Dt = g.value[bt], Cn = Be > 0 ? Dt + fe : Dt, Vt = g.value.length - bt - 1 > 0 ? ke : 0;
23331
+ for (let xt = 0; xt < g.value.length; xt++) {
23332
+ const Dt = g.value[xt], Cn = Be > 0 ? Dt + fe : Dt, Vt = g.value.length - xt - 1 > 0 ? ke : 0;
23284
23333
  if (Be + Cn + Vt <= re)
23285
23334
  Be += Cn, qe++;
23286
23335
  else
@@ -23290,7 +23339,7 @@ const HT = /* @__PURE__ */ q({
23290
23339
  }
23291
23340
  pe(w, () => {
23292
23341
  g.value.length > 0 && M();
23293
- }), wt(() => {
23342
+ }), kt(() => {
23294
23343
  Gn(() => {
23295
23344
  b(), M();
23296
23345
  });
@@ -23355,8 +23404,8 @@ const HT = /* @__PURE__ */ q({
23355
23404
  dragOutTool: R,
23356
23405
  onToolPointerDown: W,
23357
23406
  onToolPointerUp: V
23358
- }), (X, Y) => (C(), A("div", IE, [
23359
- Z(JT),
23407
+ }), (X, Y) => (C(), A("div", _E, [
23408
+ Z(YT),
23360
23409
  x("div", {
23361
23410
  ref_key: "toolsContainerRef",
23362
23411
  ref: f,
@@ -23408,7 +23457,7 @@ const HT = /* @__PURE__ */ q({
23408
23457
  ], 8, ["to"])) : j("", !0)
23409
23458
  ]));
23410
23459
  }
23411
- }), QA = /* @__PURE__ */ q({
23460
+ }), tI = /* @__PURE__ */ q({
23412
23461
  __name: "ArcArrowTool",
23413
23462
  setup(n) {
23414
23463
  return (e, t) => (C(), ee(Ht, {
@@ -23432,7 +23481,7 @@ const HT = /* @__PURE__ */ q({
23432
23481
  _: 1
23433
23482
  }));
23434
23483
  }
23435
- }), _E = { class: "wov-user-presence-avatars" }, DE = ["src", "alt"], NE = { class: "wov-user-presence-list" }, RE = ["src", "alt"], PE = { class: "wov-user-presence-name" }, LE = 4, $E = /* @__PURE__ */ q({
23484
+ }), NE = { class: "wov-user-presence-avatars" }, RE = ["src", "alt"], PE = { class: "wov-user-presence-list" }, LE = ["src", "alt"], $E = { class: "wov-user-presence-name" }, BE = 4, zE = /* @__PURE__ */ q({
23436
23485
  __name: "UserPresence",
23437
23486
  props: {
23438
23487
  users: {}
@@ -23455,7 +23504,7 @@ const HT = /* @__PURE__ */ q({
23455
23504
  avatar: l.avatar,
23456
23505
  initials: r(l.name)
23457
23506
  }))
23458
- ), i = O(() => s.value.slice(0, LE));
23507
+ ), i = O(() => s.value.slice(0, BE));
23459
23508
  return (l, a) => n.users.length > 1 ? (C(), A("div", {
23460
23509
  key: 0,
23461
23510
  ref_key: "containerRef",
@@ -23466,7 +23515,7 @@ const HT = /* @__PURE__ */ q({
23466
23515
  class: Te(["wov-user-presence-trigger", { "is-open": t.value }]),
23467
23516
  onClick: a[0] || (a[0] = (c) => t.value = !t.value)
23468
23517
  }, [
23469
- x("div", _E, [
23518
+ x("div", NE, [
23470
23519
  (C(!0), A(ie, null, Se(i.value, (c) => (C(), A("div", {
23471
23520
  key: c.sessionId,
23472
23521
  class: "wov-user-avatar",
@@ -23477,7 +23526,7 @@ const HT = /* @__PURE__ */ q({
23477
23526
  src: c.avatar,
23478
23527
  alt: c.name,
23479
23528
  class: "wov-user-avatar-img"
23480
- }, null, 8, DE)) : (C(), A(ie, { key: 1 }, [
23529
+ }, null, 8, RE)) : (C(), A(ie, { key: 1 }, [
23481
23530
  Sa(_e(c.initials), 1)
23482
23531
  ], 64))
23483
23532
  ], 4))), 128))
@@ -23486,10 +23535,10 @@ const HT = /* @__PURE__ */ q({
23486
23535
  t.value ? (C(), A("div", {
23487
23536
  key: 0,
23488
23537
  class: "wov-user-presence-dropdown",
23489
- onWheel: a[1] || (a[1] = At(() => {
23538
+ onWheel: a[1] || (a[1] = ut(() => {
23490
23539
  }, ["stop"]))
23491
23540
  }, [
23492
- x("div", NE, [
23541
+ x("div", PE, [
23493
23542
  (C(!0), A(ie, null, Se(s.value, (c) => (C(), A("div", {
23494
23543
  key: c.sessionId,
23495
23544
  class: "wov-user-presence-item"
@@ -23505,11 +23554,11 @@ const HT = /* @__PURE__ */ q({
23505
23554
  src: c.avatar,
23506
23555
  alt: c.name,
23507
23556
  class: "wov-user-avatar-img"
23508
- }, null, 8, RE)) : (C(), A(ie, { key: 1 }, [
23557
+ }, null, 8, LE)) : (C(), A(ie, { key: 1 }, [
23509
23558
  Sa(_e(c.initials), 1)
23510
23559
  ], 64))
23511
23560
  ], 4),
23512
- x("span", PE, _e(c.name), 1)
23561
+ x("span", $E, _e(c.name), 1)
23513
23562
  ]))), 128))
23514
23563
  ])
23515
23564
  ], 32)) : j("", !0)
@@ -23517,7 +23566,7 @@ const HT = /* @__PURE__ */ q({
23517
23566
  }
23518
23567
  }), dc = (n, e) => e.some((t) => n instanceof t);
23519
23568
  let bh, xh;
23520
- function BE() {
23569
+ function FE() {
23521
23570
  return bh || (bh = [
23522
23571
  IDBDatabase,
23523
23572
  IDBObjectStore,
@@ -23526,7 +23575,7 @@ function BE() {
23526
23575
  IDBTransaction
23527
23576
  ]);
23528
23577
  }
23529
- function zE() {
23578
+ function HE() {
23530
23579
  return xh || (xh = [
23531
23580
  IDBCursor.prototype.advance,
23532
23581
  IDBCursor.prototype.continue,
@@ -23534,7 +23583,7 @@ function zE() {
23534
23583
  ]);
23535
23584
  }
23536
23585
  const fc = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), El = /* @__PURE__ */ new WeakMap();
23537
- function FE(n) {
23586
+ function VE(n) {
23538
23587
  const e = new Promise((t, o) => {
23539
23588
  const r = () => {
23540
23589
  n.removeEventListener("success", s), n.removeEventListener("error", i);
@@ -23547,7 +23596,7 @@ function FE(n) {
23547
23596
  });
23548
23597
  return El.set(e, n), e;
23549
23598
  }
23550
- function HE(n) {
23599
+ function WE(n) {
23551
23600
  if (fc.has(n))
23552
23601
  return;
23553
23602
  const e = new Promise((t, o) => {
@@ -23582,26 +23631,26 @@ let hc = {
23582
23631
  function s0(n) {
23583
23632
  hc = n(hc);
23584
23633
  }
23585
- function VE(n) {
23586
- return zE().includes(n) ? function(...e) {
23634
+ function jE(n) {
23635
+ return HE().includes(n) ? function(...e) {
23587
23636
  return n.apply(pc(this), e), bo(this.request);
23588
23637
  } : function(...e) {
23589
23638
  return bo(n.apply(pc(this), e));
23590
23639
  };
23591
23640
  }
23592
- function WE(n) {
23593
- return typeof n == "function" ? VE(n) : (n instanceof IDBTransaction && HE(n), dc(n, BE()) ? new Proxy(n, hc) : n);
23641
+ function UE(n) {
23642
+ return typeof n == "function" ? jE(n) : (n instanceof IDBTransaction && WE(n), dc(n, FE()) ? new Proxy(n, hc) : n);
23594
23643
  }
23595
23644
  function bo(n) {
23596
23645
  if (n instanceof IDBRequest)
23597
- return FE(n);
23646
+ return VE(n);
23598
23647
  if (ya.has(n))
23599
23648
  return ya.get(n);
23600
- const e = WE(n);
23649
+ const e = UE(n);
23601
23650
  return e !== n && (ya.set(n, e), El.set(e, n)), e;
23602
23651
  }
23603
23652
  const pc = (n) => El.get(n);
23604
- function jE(n, e, { blocked: t, upgrade: o, blocking: r, terminated: s } = {}) {
23653
+ function KE(n, e, { blocked: t, upgrade: o, blocking: r, terminated: s } = {}) {
23605
23654
  const i = indexedDB.open(n, e), l = bo(i);
23606
23655
  return o && i.addEventListener("upgradeneeded", (a) => {
23607
23656
  o(bo(i.result), a.oldVersion, a.newVersion, bo(i.transaction), a);
@@ -23615,16 +23664,16 @@ function jE(n, e, { blocked: t, upgrade: o, blocking: r, terminated: s } = {}) {
23615
23664
  }).catch(() => {
23616
23665
  }), l;
23617
23666
  }
23618
- const UE = ["get", "getKey", "getAll", "getAllKeys", "count"], KE = ["put", "add", "delete", "clear"], va = /* @__PURE__ */ new Map();
23667
+ const qE = ["get", "getKey", "getAll", "getAllKeys", "count"], JE = ["put", "add", "delete", "clear"], va = /* @__PURE__ */ new Map();
23619
23668
  function Sh(n, e) {
23620
23669
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
23621
23670
  return;
23622
23671
  if (va.get(e))
23623
23672
  return va.get(e);
23624
- const t = e.replace(/FromIndex$/, ""), o = e !== t, r = KE.includes(t);
23673
+ const t = e.replace(/FromIndex$/, ""), o = e !== t, r = JE.includes(t);
23625
23674
  if (
23626
23675
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
23627
- !(t in (o ? IDBIndex : IDBObjectStore).prototype) || !(r || UE.includes(t))
23676
+ !(t in (o ? IDBIndex : IDBObjectStore).prototype) || !(r || qE.includes(t))
23628
23677
  )
23629
23678
  return;
23630
23679
  const s = async function(i, ...l) {
@@ -23642,9 +23691,9 @@ s0((n) => ({
23642
23691
  get: (e, t, o) => Sh(e, t) || n.get(e, t, o),
23643
23692
  has: (e, t) => !!Sh(e, t) || n.has(e, t)
23644
23693
  }));
23645
- const qE = ["continue", "continuePrimaryKey", "advance"], Ch = {}, mc = /* @__PURE__ */ new WeakMap(), i0 = /* @__PURE__ */ new WeakMap(), JE = {
23694
+ const GE = ["continue", "continuePrimaryKey", "advance"], Ch = {}, mc = /* @__PURE__ */ new WeakMap(), i0 = /* @__PURE__ */ new WeakMap(), YE = {
23646
23695
  get(n, e) {
23647
- if (!qE.includes(e))
23696
+ if (!GE.includes(e))
23648
23697
  return n[e];
23649
23698
  let t = Ch[e];
23650
23699
  return t || (t = Ch[e] = function(...o) {
@@ -23652,12 +23701,12 @@ const qE = ["continue", "continuePrimaryKey", "advance"], Ch = {}, mc = /* @__PU
23652
23701
  }), t;
23653
23702
  }
23654
23703
  };
23655
- async function* GE(...n) {
23704
+ async function* XE(...n) {
23656
23705
  let e = this;
23657
23706
  if (e instanceof IDBCursor || (e = await e.openCursor(...n)), !e)
23658
23707
  return;
23659
23708
  e = e;
23660
- const t = new Proxy(e, JE);
23709
+ const t = new Proxy(e, YE);
23661
23710
  for (i0.set(t, e), El.set(t, pc(e)); e; )
23662
23711
  yield t, e = await (mc.get(t) || e.continue()), mc.delete(t);
23663
23712
  }
@@ -23667,21 +23716,21 @@ function Mh(n, e) {
23667
23716
  s0((n) => ({
23668
23717
  ...n,
23669
23718
  get(e, t, o) {
23670
- return Mh(e, t) ? GE : n.get(e, t, o);
23719
+ return Mh(e, t) ? XE : n.get(e, t, o);
23671
23720
  },
23672
23721
  has(e, t) {
23673
23722
  return Mh(e, t) || n.has(e, t);
23674
23723
  }
23675
23724
  }));
23676
23725
  async function gc(n, e) {
23677
- const t = await jE(n, 1, {
23726
+ const t = await KE(n, 1, {
23678
23727
  upgrade(o) {
23679
23728
  o.objectStoreNames.contains(e) || o.createObjectStore(e);
23680
23729
  }
23681
23730
  });
23682
- return new YE(t, e);
23731
+ return new ZE(t, e);
23683
23732
  }
23684
- var YE = class {
23733
+ var ZE = class {
23685
23734
  constructor(n, e) {
23686
23735
  this.db = n, this.storeName = e;
23687
23736
  }
@@ -23707,7 +23756,7 @@ var YE = class {
23707
23756
  close() {
23708
23757
  this.db.close();
23709
23758
  }
23710
- }, XE = class {
23759
+ }, QE = class {
23711
23760
  constructor(n) {
23712
23761
  this.jobsStore = null, this.binariesStore = null, this.blobUrls = /* @__PURE__ */ new Map(), this.uploading = /* @__PURE__ */ new Set(), this.uploadPromises = /* @__PURE__ */ new Map(), this.startListeners = /* @__PURE__ */ new Set(), this.completeListeners = /* @__PURE__ */ new Set(), this.errorListeners = /* @__PURE__ */ new Set(), this.persisting = /* @__PURE__ */ new Set(), this.persistStartListeners = /* @__PURE__ */ new Set(), this.persistEndListeners = /* @__PURE__ */ new Set(), this.provider = n.provider, this.documentId = n.documentId, this.maxRetries = n.provider.maxRetries ?? 3, this.retryDelay = n.provider.retryDelay ?? 5e3;
23713
23762
  }
@@ -23937,7 +23986,7 @@ var YE = class {
23937
23986
  s && (s.reject(r), this.uploadPromises.delete(n));
23938
23987
  }
23939
23988
  }
23940
- }, ZE = "wovencanvas-assets", QE = "blobs", e3 = class {
23989
+ }, e3 = "wovencanvas-assets", t3 = "blobs", n3 = class {
23941
23990
  constructor() {
23942
23991
  this.store = null, this.initPromise = null, this.maxRetries = 3, this.retryDelay = 5e3;
23943
23992
  }
@@ -23960,10 +24009,10 @@ var YE = class {
23960
24009
  this.store && (this.store.close(), this.store = null, this.initPromise = null);
23961
24010
  }
23962
24011
  getStore() {
23963
- return this.store ? Promise.resolve(this.store) : (this.initPromise || (this.initPromise = gc(ZE, QE).then((n) => (this.store = n, n))), this.initPromise);
24012
+ return this.store ? Promise.resolve(this.store) : (this.initPromise || (this.initPromise = gc(e3, t3).then((n) => (this.store = n, n))), this.initPromise);
23964
24013
  }
23965
24014
  };
23966
- const t3 = /* @__PURE__ */ q({
24015
+ const o3 = /* @__PURE__ */ q({
23967
24016
  __name: "StickyNote",
23968
24017
  props: {
23969
24018
  entityId: {},
@@ -24013,14 +24062,14 @@ const t3 = /* @__PURE__ */ q({
24013
24062
  /** Checkpoint ID for squashing edited block history, or empty string if none */
24014
24063
  editedCheckpoint: pn.string().default("").max(36)
24015
24064
  }
24016
- ), n3 = JSON.stringify({
24065
+ ), r3 = JSON.stringify({
24017
24066
  block: { tag: "text", size: [10, 29] },
24018
24067
  text: { constrainWidth: !1, fontSizePx: 24 }
24019
24068
  }), qr = Fh(
24020
24069
  { name: "doubleClickState" },
24021
24070
  {
24022
24071
  /** JSON-serialized BlockSnapshot, or empty string to disable */
24023
- snapshot: pn.string().max(1024).default(n3),
24072
+ snapshot: pn.string().max(1024).default(r3),
24024
24073
  lastClickTime: pn.float64().default(0),
24025
24074
  lastClickWorldX: pn.float64().default(0),
24026
24075
  lastClickWorldY: pn.float64().default(0)
@@ -24054,7 +24103,7 @@ function Eh(n, e, t, o, r) {
24054
24103
  const u = Nc.write(n);
24055
24104
  u.cursorKind = "select", u.rotation = 0;
24056
24105
  }
24057
- function o3(n) {
24106
+ function s3(n) {
24058
24107
  const e = Ui.read(n);
24059
24108
  if (e.editedCheckpoint) {
24060
24109
  const t = e.editedCheckpoint;
@@ -24063,9 +24112,9 @@ function o3(n) {
24063
24112
  o.onSettled(() => o.squashToCheckpoint(t), { frames: 5 });
24064
24113
  }
24065
24114
  }
24066
- const r3 = tl({ phase: "capture" }, (n) => {
24115
+ const i3 = tl({ phase: "capture" }, (n) => {
24067
24116
  if (nl(n)) return;
24068
- Th.removed(n).length > 0 && Th.current(n).length === 0 && o3(n);
24117
+ Th.removed(n).length > 0 && Th.current(n).length === 0 && s3(n);
24069
24118
  const e = Bt.read(n);
24070
24119
  if (!e.heldSnapshot || e.leftMouseTool === "draw") return;
24071
24120
  const t = Rc(n, [Zh.Left]);
@@ -24094,7 +24143,7 @@ const r3 = tl({ phase: "capture" }, (n) => {
24094
24143
  "placement"
24095
24144
  );
24096
24145
  }
24097
- }), s3 = 400, i3 = 10, l3 = tl({ phase: "capture" }, (n) => {
24146
+ }), l3 = 400, a3 = 10, c3 = tl({ phase: "capture" }, (n) => {
24098
24147
  var d, f;
24099
24148
  if (nl(n)) return;
24100
24149
  const e = qr.read(n);
@@ -24106,7 +24155,7 @@ const r3 = tl({ phase: "capture" }, (n) => {
24106
24155
  const r = o.find((h) => h.type === "click" && !h.obscured);
24107
24156
  if (!r || r.intersects.some((h) => !Fe(n, h, js))) return;
24108
24157
  const i = performance.now(), l = i - e.lastClickTime, a = r.worldPosition[0] - e.lastClickWorldX, c = r.worldPosition[1] - e.lastClickWorldY, u = Math.sqrt(a * a + c * c);
24109
- if (l < s3 && u < i3) {
24158
+ if (l < l3 && u < a3) {
24110
24159
  let h;
24111
24160
  try {
24112
24161
  h = JSON.parse(e.snapshot);
@@ -24129,7 +24178,7 @@ const r3 = tl({ phase: "capture" }, (n) => {
24129
24178
  h.lastClickTime = i, h.lastClickWorldX = r.worldPosition[0], h.lastClickWorldY = r.worldPosition[1];
24130
24179
  }
24131
24180
  });
24132
- function a3() {
24181
+ function u3() {
24133
24182
  if (typeof globalThis < "u")
24134
24183
  return globalThis;
24135
24184
  if (typeof self < "u")
@@ -24139,15 +24188,15 @@ function a3() {
24139
24188
  if (typeof global < "u")
24140
24189
  return global;
24141
24190
  }
24142
- function c3() {
24143
- const n = a3();
24191
+ function d3() {
24192
+ const n = u3();
24144
24193
  if (n.__xstate__)
24145
24194
  return n.__xstate__;
24146
24195
  }
24147
- const u3 = (n) => {
24196
+ const f3 = (n) => {
24148
24197
  if (typeof window > "u")
24149
24198
  return;
24150
- const e = c3();
24199
+ const e = d3();
24151
24200
  e && e.register(n);
24152
24201
  };
24153
24202
  class Ah {
@@ -24179,8 +24228,8 @@ class Ah {
24179
24228
  this._last = null;
24180
24229
  }
24181
24230
  }
24182
- const a0 = ".", d3 = "", c0 = "", f3 = "#", h3 = "*", u0 = "xstate.init", p3 = "xstate.error", yc = "xstate.stop";
24183
- function m3(n, e) {
24231
+ const a0 = ".", h3 = "", c0 = "", p3 = "#", m3 = "*", u0 = "xstate.init", g3 = "xstate.error", yc = "xstate.stop";
24232
+ function y3(n, e) {
24184
24233
  return {
24185
24234
  type: `xstate.after.${n}.${e}`
24186
24235
  };
@@ -24191,7 +24240,7 @@ function vc(n, e) {
24191
24240
  output: e
24192
24241
  };
24193
24242
  }
24194
- function g3(n, e) {
24243
+ function v3(n, e) {
24195
24244
  return {
24196
24245
  type: `xstate.done.actor.${n}`,
24197
24246
  output: e,
@@ -24216,7 +24265,7 @@ function Ut(n) {
24216
24265
  throw n;
24217
24266
  });
24218
24267
  }
24219
- const y3 = typeof Symbol == "function" && Symbol.observable || "@@observable";
24268
+ const w3 = typeof Symbol == "function" && Symbol.observable || "@@observable";
24220
24269
  function h0(n, e) {
24221
24270
  const t = Ih(n), o = Ih(e);
24222
24271
  return typeof o == "string" ? typeof t == "string" ? o === t : !1 : typeof t == "string" ? t in o : Object.keys(t).every((r) => r in o ? h0(t[r], o[r]) : !1);
@@ -24240,14 +24289,14 @@ function Nu(n) {
24240
24289
  return e.push(t), e;
24241
24290
  }
24242
24291
  function Ih(n) {
24243
- if (Z3(n))
24292
+ if (eA(n))
24244
24293
  return n.value;
24245
24294
  if (typeof n != "string")
24246
24295
  return n;
24247
24296
  const e = Nu(n);
24248
- return v3(e);
24297
+ return k3(e);
24249
24298
  }
24250
- function v3(n) {
24299
+ function k3(n) {
24251
24300
  if (n.length === 1)
24252
24301
  return n[0];
24253
24302
  const e = {};
@@ -24285,7 +24334,7 @@ function wc(n, e, t, o) {
24285
24334
  function m0(n) {
24286
24335
  return Array.isArray(n);
24287
24336
  }
24288
- function w3(n) {
24337
+ function b3(n) {
24289
24338
  return n.type.startsWith("xstate.error.actor");
24290
24339
  }
24291
24340
  function jo(n) {
@@ -24294,7 +24343,7 @@ function jo(n) {
24294
24343
  } : e);
24295
24344
  }
24296
24345
  function g0(n) {
24297
- if (!(n === void 0 || n === d3))
24346
+ if (!(n === void 0 || n === h3))
24298
24347
  return Wn(n);
24299
24348
  }
24300
24349
  function kc(n, e, t) {
@@ -24316,8 +24365,8 @@ function Ru(n, e) {
24316
24365
  const [, o, r] = t, i = n.getStateNodeById(r).config.invoke;
24317
24366
  return (Array.isArray(i) ? i[o] : i).src;
24318
24367
  }
24319
- function k3(n, e) {
24320
- if (e === n || e === h3)
24368
+ function x3(n, e) {
24369
+ if (e === n || e === m3)
24321
24370
  return !0;
24322
24371
  if (!e.endsWith(".*"))
24323
24372
  return !1;
@@ -24334,8 +24383,8 @@ function k3(n, e) {
24334
24383
  function Dh(n, e) {
24335
24384
  return `${n.sessionId}.${e}`;
24336
24385
  }
24337
- let b3 = 0;
24338
- function x3(n, e) {
24386
+ let S3 = 0;
24387
+ function C3(n, e) {
24339
24388
  const t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Set(), i = {}, {
24340
24389
  clock: l,
24341
24390
  logger: a
@@ -24380,7 +24429,7 @@ function x3(n, e) {
24380
24429
  _snapshot: {
24381
24430
  _scheduledEvents: ((e == null ? void 0 : e.snapshot) && e.snapshot.scheduler) ?? {}
24382
24431
  },
24383
- _bookId: () => `x:${b3++}`,
24432
+ _bookId: () => `x:${S3++}`,
24384
24433
  _register: (f, h) => (t.set(f, h), f),
24385
24434
  _unregister: (f) => {
24386
24435
  t.delete(f.sessionId);
@@ -24439,10 +24488,10 @@ function x3(n, e) {
24439
24488
  }
24440
24489
  let wa = !1;
24441
24490
  const Pu = 1;
24442
- let ht = /* @__PURE__ */ function(n) {
24491
+ let pt = /* @__PURE__ */ function(n) {
24443
24492
  return n[n.NotStarted = 0] = "NotStarted", n[n.Running = 1] = "Running", n[n.Stopped = 2] = "Stopped", n;
24444
24493
  }({});
24445
- const S3 = {
24494
+ const M3 = {
24446
24495
  clock: {
24447
24496
  setTimeout: (n, e) => setTimeout(n, e),
24448
24497
  clearTimeout: (n) => clearTimeout(n)
@@ -24450,7 +24499,7 @@ const S3 = {
24450
24499
  logger: console.log.bind(console),
24451
24500
  devTools: !1
24452
24501
  };
24453
- class C3 {
24502
+ class T3 {
24454
24503
  /**
24455
24504
  * Creates a new actor instance for the given logic with the provided options,
24456
24505
  * if any.
@@ -24459,9 +24508,9 @@ class C3 {
24459
24508
  * @param options Actor options
24460
24509
  */
24461
24510
  constructor(e, t) {
24462
- this.logic = e, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new Ah(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = ht.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this.systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
24511
+ this.logic = e, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new Ah(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = pt.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this.systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
24463
24512
  const o = {
24464
- ...S3,
24513
+ ...M3,
24465
24514
  ...t
24466
24515
  }, {
24467
24516
  clock: r,
@@ -24472,7 +24521,7 @@ class C3 {
24472
24521
  systemId: c,
24473
24522
  inspect: u
24474
24523
  } = o;
24475
- this.system = i ? i.system : x3(this, {
24524
+ this.system = i ? i.system : C3(this, {
24476
24525
  clock: r,
24477
24526
  logger: s
24478
24527
  }), u && !i && this.system.inspect(kc(u)), this.sessionId = this.system._bookId(), this.id = a ?? this.sessionId, this.logger = (t == null ? void 0 : t.logger) ?? this.system._logger, this.clock = (t == null ? void 0 : t.clock) ?? this.system._clock, this._parent = i, this._syncSnapshot = l, this.options = o, this.src = o.src ?? e, this.ref = this, this._actorScope = {
@@ -24519,7 +24568,7 @@ class C3 {
24519
24568
  wa = h;
24520
24569
  }
24521
24570
  };
24522
- this._processingStatus === ht.Running ? f() : this._deferred.push(f);
24571
+ this._processingStatus === pt.Running ? f() : this._deferred.push(f);
24523
24572
  }
24524
24573
  }, this.send = this.send.bind(this), this.system._sendInspectionEvent({
24525
24574
  type: "@xstate.actor",
@@ -24568,7 +24617,7 @@ class C3 {
24568
24617
  } catch (l) {
24569
24618
  Ut(l);
24570
24619
  }
24571
- this._stopProcedure(), this._complete(), this._doneEvent = g3(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
24620
+ this._stopProcedure(), this._complete(), this._doneEvent = v3(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
24572
24621
  break;
24573
24622
  case "error":
24574
24623
  this._error(this._snapshot.error);
@@ -24643,7 +24692,7 @@ class C3 {
24643
24692
  subscribe(e, t, o) {
24644
24693
  var s;
24645
24694
  const r = kc(e, t, o);
24646
- if (this._processingStatus !== ht.Stopped)
24695
+ if (this._processingStatus !== pt.Stopped)
24647
24696
  this.observers.add(r);
24648
24697
  else
24649
24698
  switch (this._snapshot.status) {
@@ -24685,7 +24734,7 @@ class C3 {
24685
24734
  }
24686
24735
  /** Starts the Actor from the initial state */
24687
24736
  start() {
24688
- if (this._processingStatus === ht.Running)
24737
+ if (this._processingStatus === pt.Running)
24689
24738
  return this;
24690
24739
  this._syncSnapshot && this.subscribe({
24691
24740
  next: (o) => {
@@ -24696,7 +24745,7 @@ class C3 {
24696
24745
  },
24697
24746
  error: () => {
24698
24747
  }
24699
- }), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = ht.Running;
24748
+ }), this.system._register(this.sessionId, this), this.systemId && this.system._set(this.systemId, this), this._processingStatus = pt.Running;
24700
24749
  const e = f0(this.options.input);
24701
24750
  switch (this.system._sendInspectionEvent({
24702
24751
  type: "@xstate.event",
@@ -24744,7 +24793,7 @@ class C3 {
24744
24793
  this.update(t, e), e.type === yc && (this._stopProcedure(), this._complete());
24745
24794
  }
24746
24795
  _stop() {
24747
- return this._processingStatus === ht.Stopped ? this : (this.mailbox.clear(), this._processingStatus === ht.NotStarted ? (this._processingStatus = ht.Stopped, this) : (this.mailbox.enqueue({
24796
+ return this._processingStatus === pt.Stopped ? this : (this.mailbox.clear(), this._processingStatus === pt.NotStarted ? (this._processingStatus = pt.Stopped, this) : (this.mailbox.enqueue({
24748
24797
  type: yc
24749
24798
  }), this));
24750
24799
  }
@@ -24790,11 +24839,11 @@ class C3 {
24790
24839
  // right now, they are being stopped within the machine's transition
24791
24840
  // but that could throw and leave us with "orphaned" active actors
24792
24841
  _stopProcedure() {
24793
- return this._processingStatus !== ht.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new Ah(this._process.bind(this)), this._processingStatus = ht.Stopped, this.system._unregister(this), this);
24842
+ return this._processingStatus !== pt.Running ? this : (this.system.scheduler.cancelAll(this), this.mailbox.clear(), this.mailbox = new Ah(this._process.bind(this)), this._processingStatus = pt.Stopped, this.system._unregister(this), this);
24794
24843
  }
24795
24844
  /** @internal */
24796
24845
  _send(e) {
24797
- this._processingStatus !== ht.Stopped && this.mailbox.enqueue(e);
24846
+ this._processingStatus !== pt.Stopped && this.mailbox.enqueue(e);
24798
24847
  }
24799
24848
  /**
24800
24849
  * Sends an event to the running Actor to trigger a transition.
@@ -24808,7 +24857,7 @@ class C3 {
24808
24857
  const {
24809
24858
  devTools: e
24810
24859
  } = this.options;
24811
- e && (typeof e == "function" ? e : u3)(this);
24860
+ e && (typeof e == "function" ? e : f3)(this);
24812
24861
  }
24813
24862
  toJSON() {
24814
24863
  return {
@@ -24832,7 +24881,7 @@ class C3 {
24832
24881
  getPersistedSnapshot(e) {
24833
24882
  return this.logic.getPersistedSnapshot(this._snapshot, e);
24834
24883
  }
24835
- [y3]() {
24884
+ [w3]() {
24836
24885
  return this;
24837
24886
  }
24838
24887
  /**
@@ -24854,9 +24903,9 @@ class C3 {
24854
24903
  }
24855
24904
  }
24856
24905
  function Ki(n, ...[e]) {
24857
- return new C3(n, e);
24906
+ return new T3(n, e);
24858
24907
  }
24859
- function M3(n, e, t, o, {
24908
+ function E3(n, e, t, o, {
24860
24909
  sendId: r
24861
24910
  }) {
24862
24911
  const s = typeof r == "function" ? r(t, o) : r;
@@ -24864,7 +24913,7 @@ function M3(n, e, t, o, {
24864
24913
  sendId: s
24865
24914
  }, void 0];
24866
24915
  }
24867
- function T3(n, e) {
24916
+ function A3(n, e) {
24868
24917
  n.defer(() => {
24869
24918
  n.system.scheduler.cancel(n.self, e.sendId);
24870
24919
  });
@@ -24872,9 +24921,9 @@ function T3(n, e) {
24872
24921
  function Lu(n) {
24873
24922
  function e(t, o) {
24874
24923
  }
24875
- return e.type = "xstate.cancel", e.sendId = n, e.resolve = M3, e.execute = T3, e;
24924
+ return e.type = "xstate.cancel", e.sendId = n, e.resolve = E3, e.execute = A3, e;
24876
24925
  }
24877
- function E3(n, e, t, o, {
24926
+ function I3(n, e, t, o, {
24878
24927
  id: r,
24879
24928
  systemId: s,
24880
24929
  src: i,
@@ -24907,11 +24956,11 @@ function E3(n, e, t, o, {
24907
24956
  input: f
24908
24957
  }, void 0];
24909
24958
  }
24910
- function A3(n, {
24959
+ function O3(n, {
24911
24960
  actorRef: e
24912
24961
  }) {
24913
24962
  e && n.defer(() => {
24914
- e._processingStatus !== ht.Stopped && e.start();
24963
+ e._processingStatus !== pt.Stopped && e.start();
24915
24964
  });
24916
24965
  }
24917
24966
  function $u(...[n, {
@@ -24922,9 +24971,9 @@ function $u(...[n, {
24922
24971
  } = {}]) {
24923
24972
  function s(i, l) {
24924
24973
  }
24925
- return s.type = "xstate.spawnChild", s.id = e, s.systemId = t, s.src = n, s.input = o, s.syncSnapshot = r, s.resolve = E3, s.execute = A3, s;
24974
+ return s.type = "xstate.spawnChild", s.id = e, s.systemId = t, s.src = n, s.input = o, s.syncSnapshot = r, s.resolve = I3, s.execute = O3, s;
24926
24975
  }
24927
- function I3(n, e, t, o, {
24976
+ function _3(n, e, t, o, {
24928
24977
  actorRef: r
24929
24978
  }) {
24930
24979
  const s = typeof r == "function" ? r(t, o) : r, i = typeof s == "string" ? e.children[s] : s;
@@ -24942,9 +24991,9 @@ function y0(n, e) {
24942
24991
  y0(n, o);
24943
24992
  n.system._unregister(e);
24944
24993
  }
24945
- function O3(n, e) {
24994
+ function D3(n, e) {
24946
24995
  if (e) {
24947
- if (y0(n, e), e._processingStatus !== ht.Running) {
24996
+ if (y0(n, e), e._processingStatus !== pt.Running) {
24948
24997
  n.stopChild(e);
24949
24998
  return;
24950
24999
  }
@@ -24956,7 +25005,7 @@ function O3(n, e) {
24956
25005
  function Al(n) {
24957
25006
  function e(t, o) {
24958
25007
  }
24959
- return e.type = "xstate.stopChild", e.actorRef = n, e.resolve = I3, e.execute = O3, e;
25008
+ return e.type = "xstate.stopChild", e.actorRef = n, e.resolve = _3, e.execute = D3, e;
24960
25009
  }
24961
25010
  function Il(n, e, t, o) {
24962
25011
  const {
@@ -25045,16 +25094,16 @@ function k0(n, e) {
25045
25094
  function zu(n, e) {
25046
25095
  return e.type === "compound" ? ir(e).some((t) => t.type === "final" && n.has(t)) : e.type === "parallel" ? ir(e).every((t) => zu(n, t)) : e.type === "final";
25047
25096
  }
25048
- const Ol = (n) => n[0] === f3;
25049
- function _3(n, e) {
25050
- return n.transitions.get(e) || [...n.transitions.keys()].filter((o) => k3(e, o)).sort((o, r) => r.length - o.length).flatMap((o) => n.transitions.get(o));
25097
+ const Ol = (n) => n[0] === p3;
25098
+ function N3(n, e) {
25099
+ return n.transitions.get(e) || [...n.transitions.keys()].filter((o) => x3(e, o)).sort((o, r) => r.length - o.length).flatMap((o) => n.transitions.get(o));
25051
25100
  }
25052
- function D3(n) {
25101
+ function R3(n) {
25053
25102
  const e = n.config.after;
25054
25103
  if (!e)
25055
25104
  return [];
25056
25105
  const t = (r) => {
25057
- const s = m3(r, n.id), i = s.type;
25106
+ const s = y3(r, n.id), i = s.type;
25058
25107
  return n.entry.push(Vu(s, {
25059
25108
  id: i,
25060
25109
  delay: r
@@ -25080,7 +25129,7 @@ function D3(n) {
25080
25129
  });
25081
25130
  }
25082
25131
  function Pn(n, e, t) {
25083
- const o = g0(t.target), r = t.reenter ?? !1, s = L3(n, o), i = {
25132
+ const o = g0(t.target), r = t.reenter ?? !1, s = B3(n, o), i = {
25084
25133
  ...t,
25085
25134
  actions: Wn(t.actions),
25086
25135
  guard: t.guard,
@@ -25096,7 +25145,7 @@ function Pn(n, e, t) {
25096
25145
  };
25097
25146
  return i;
25098
25147
  }
25099
- function N3(n) {
25148
+ function P3(n) {
25100
25149
  const e = /* @__PURE__ */ new Map();
25101
25150
  if (n.config.on)
25102
25151
  for (const t of Object.keys(n.config.on)) {
@@ -25129,7 +25178,7 @@ function N3(n) {
25129
25178
  }
25130
25179
  return e;
25131
25180
  }
25132
- function R3(n) {
25181
+ function L3(n) {
25133
25182
  const e = [], t = (o) => {
25134
25183
  Object.values(o).forEach((r) => {
25135
25184
  if (r.config.route && r.config.id) {
@@ -25145,7 +25194,7 @@ function R3(n) {
25145
25194
  };
25146
25195
  t(n.states), e.length > 0 && n.transitions.set("xstate.route", e);
25147
25196
  }
25148
- function P3(n, e) {
25197
+ function $3(n, e) {
25149
25198
  const t = typeof e == "string" ? n.states[e] : e ? n.states[e.target] : void 0;
25150
25199
  if (!t && e)
25151
25200
  throw new Error(
@@ -25166,7 +25215,7 @@ function P3(n, e) {
25166
25215
  };
25167
25216
  return o;
25168
25217
  }
25169
- function L3(n, e) {
25218
+ function B3(n, e) {
25170
25219
  if (e !== void 0)
25171
25220
  return e.map((t) => {
25172
25221
  if (typeof t != "string")
@@ -25259,15 +25308,15 @@ function Gi(n, e) {
25259
25308
  return r.concat(l);
25260
25309
  }, []));
25261
25310
  }
25262
- function $3(n, e, t, o) {
25311
+ function z3(n, e, t, o) {
25263
25312
  const s = lr(n, e).next(t, o);
25264
25313
  return !s || !s.length ? n.next(t, o) : s;
25265
25314
  }
25266
- function B3(n, e, t, o) {
25315
+ function F3(n, e, t, o) {
25267
25316
  const r = Object.keys(e), s = lr(n, r[0]), i = Fu(s, e[r[0]], t, o);
25268
25317
  return !i || !i.length ? n.next(t, o) : i;
25269
25318
  }
25270
- function z3(n, e, t, o) {
25319
+ function H3(n, e, t, o) {
25271
25320
  const r = [];
25272
25321
  for (const s of Object.keys(e)) {
25273
25322
  const i = e[s];
@@ -25279,9 +25328,9 @@ function z3(n, e, t, o) {
25279
25328
  return r.length ? r : n.next(t, o);
25280
25329
  }
25281
25330
  function Fu(n, e, t, o) {
25282
- return typeof e == "string" ? $3(n, e, t, o) : Object.keys(e).length === 1 ? B3(n, e, t, o) : z3(n, e, t, o);
25331
+ return typeof e == "string" ? z3(n, e, t, o) : Object.keys(e).length === 1 ? F3(n, e, t, o) : H3(n, e, t, o);
25283
25332
  }
25284
- function F3(n) {
25333
+ function V3(n) {
25285
25334
  return Object.keys(n.states).map((e) => n.states[e]).filter((e) => e.type === "history");
25286
25335
  }
25287
25336
  function Qn(n, e) {
@@ -25290,7 +25339,7 @@ function Qn(n, e) {
25290
25339
  t = t.parent;
25291
25340
  return t.parent === e;
25292
25341
  }
25293
- function H3(n, e) {
25342
+ function W3(n, e) {
25294
25343
  const t = new Set(n), o = new Set(e);
25295
25344
  for (const r of t)
25296
25345
  if (o.has(r))
@@ -25306,7 +25355,7 @@ function S0(n, e, t) {
25306
25355
  let s = !1;
25307
25356
  const i = /* @__PURE__ */ new Set();
25308
25357
  for (const l of o)
25309
- if (H3(bc([r], e, t), bc([l], e, t)))
25358
+ if (W3(bc([r], e, t), bc([l], e, t)))
25310
25359
  if (Qn(r.source, l.source))
25311
25360
  i.add(l);
25312
25361
  else {
@@ -25321,7 +25370,7 @@ function S0(n, e, t) {
25321
25370
  }
25322
25371
  return Array.from(o);
25323
25372
  }
25324
- function V3(n) {
25373
+ function j3(n) {
25325
25374
  const [e, ...t] = n;
25326
25375
  for (const o of ws(e, void 0))
25327
25376
  if (t.every((r) => Qn(r, o)))
@@ -25349,7 +25398,7 @@ function C0(n, e) {
25349
25398
  return;
25350
25399
  if (!n.reenter && t.every((r) => r === n.source || Qn(r, n.source)))
25351
25400
  return n.source;
25352
- const o = V3(t.concat(n.source));
25401
+ const o = j3(t.concat(n.source));
25353
25402
  if (o)
25354
25403
  return o;
25355
25404
  if (!n.reenter)
@@ -25367,7 +25416,7 @@ function bc(n, e, t) {
25367
25416
  }
25368
25417
  return [...o];
25369
25418
  }
25370
- function W3(n, e) {
25419
+ function U3(n, e) {
25371
25420
  if (n.length !== e.size)
25372
25421
  return !1;
25373
25422
  for (const t of n)
@@ -25375,7 +25424,7 @@ function W3(n, e) {
25375
25424
  return !1;
25376
25425
  return !0;
25377
25426
  }
25378
- function j3(n, e, t, o, r) {
25427
+ function K3(n, e, t, o, r) {
25379
25428
  return xc([{
25380
25429
  target: [...x0(n)],
25381
25430
  source: n,
@@ -25398,11 +25447,11 @@ function xc(n, e, t, o, r, s) {
25398
25447
  let c = e.historyValue;
25399
25448
  const u = S0(n, a, c);
25400
25449
  let d = e;
25401
- r || ([d, c] = J3(d, o, t, u, a, c, s, t.actionExecutor)), d = ar(d, o, t, u.flatMap((h) => h.actions), s, void 0), d = K3(d, o, t, u, a, s, c, r);
25450
+ r || ([d, c] = Y3(d, o, t, u, a, c, s, t.actionExecutor)), d = ar(d, o, t, u.flatMap((h) => h.actions), s, void 0), d = J3(d, o, t, u, a, s, c, r);
25402
25451
  const f = [...a];
25403
25452
  d.status === "done" && (d = ar(d, o, t, f.sort((h, p) => p.order - h.order).flatMap((h) => h.exit), s, void 0));
25404
25453
  try {
25405
- return c === e.historyValue && W3(e._nodes, a) ? [d, i] : [Ao(d, {
25454
+ return c === e.historyValue && U3(e._nodes, a) ? [d, i] : [Ao(d, {
25406
25455
  _nodes: f,
25407
25456
  historyValue: c
25408
25457
  }), i];
@@ -25413,16 +25462,16 @@ function xc(n, e, t, o, r, s) {
25413
25462
  t.actionExecutor = l;
25414
25463
  }
25415
25464
  }
25416
- function U3(n, e, t, o, r) {
25465
+ function q3(n, e, t, o, r) {
25417
25466
  if (o.output === void 0)
25418
25467
  return;
25419
25468
  const s = vc(r.id, r.output !== void 0 && r.parent ? wc(r.output, n.context, e, t.self) : void 0);
25420
25469
  return wc(o.output, n.context, s, t.self);
25421
25470
  }
25422
- function K3(n, e, t, o, r, s, i, l) {
25471
+ function J3(n, e, t, o, r, s, i, l) {
25423
25472
  let a = n;
25424
25473
  const c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
25425
- q3(o, i, u, c), l && u.add(n.machine.root);
25474
+ G3(o, i, u, c), l && u.add(n.machine.root);
25426
25475
  const d = /* @__PURE__ */ new Set();
25427
25476
  for (const f of [...c].sort((h, p) => h.order - p.order)) {
25428
25477
  r.add(f);
@@ -25446,13 +25495,13 @@ function K3(n, e, t, o, r, s, i, l) {
25446
25495
  continue;
25447
25496
  a = Ao(a, {
25448
25497
  status: "done",
25449
- output: U3(a, e, t, a.machine.root, g)
25498
+ output: q3(a, e, t, a.machine.root, g)
25450
25499
  });
25451
25500
  }
25452
25501
  }
25453
25502
  return a;
25454
25503
  }
25455
- function q3(n, e, t, o) {
25504
+ function G3(n, e, t, o) {
25456
25505
  for (const r of n) {
25457
25506
  const s = C0(r, e);
25458
25507
  for (const l of r.target || [])
@@ -25500,13 +25549,13 @@ function M0(n, e, t, o, r) {
25500
25549
  function ka(n, e, t, o, r) {
25501
25550
  M0(t, o, r, ws(n, e));
25502
25551
  }
25503
- function J3(n, e, t, o, r, s, i, l) {
25552
+ function Y3(n, e, t, o, r, s, i, l) {
25504
25553
  let a = n;
25505
25554
  const c = bc(o, r, s);
25506
25555
  c.sort((d, f) => f.order - d.order);
25507
25556
  let u;
25508
25557
  for (const d of c)
25509
- for (const f of F3(d)) {
25558
+ for (const f of V3(d)) {
25510
25559
  let h;
25511
25560
  f.history === "deep" ? h = (p) => Bu(p) && Qn(p, d) : h = (p) => p.parent === d, u ?? (u = {
25512
25561
  ...s
@@ -25516,7 +25565,7 @@ function J3(n, e, t, o, r, s, i, l) {
25516
25565
  a = ar(a, e, t, [...d.exit, ...d.invoke.map((f) => Al(f.id))], i, void 0), r.delete(d);
25517
25566
  return [a, u || s];
25518
25567
  }
25519
- function G3(n, e) {
25568
+ function X3(n, e) {
25520
25569
  return n.implementations.actions[e];
25521
25570
  }
25522
25571
  function T0(n, e, t, o, r, s) {
@@ -25529,7 +25578,7 @@ function T0(n, e, t, o, r, s) {
25529
25578
  // the existing type of `.actions` assumes non-nullable `TExpressionAction`
25530
25579
  // it's fine to cast this here to get a common type and lack of errors in the rest of the code
25531
25580
  // our logic below makes sure that we call those 2 "variants" correctly
25532
- G3(i, typeof a == "string" ? a : a.type)
25581
+ X3(i, typeof a == "string" ? a : a.type)
25533
25582
  ), d = {
25534
25583
  context: l.context,
25535
25584
  event: e,
@@ -25596,7 +25645,7 @@ function ba(n, e, t, o) {
25596
25645
  };
25597
25646
  let l = e;
25598
25647
  if (l.type !== u0) {
25599
- const c = l, u = w3(c), d = Ph(c, r);
25648
+ const c = l, u = b3(c), d = Ph(c, r);
25600
25649
  if (u && !d.length)
25601
25650
  return r = Ao(n, {
25602
25651
  status: "error",
@@ -25618,7 +25667,7 @@ function ba(n, e, t, o) {
25618
25667
  }
25619
25668
  let a = !0;
25620
25669
  for (; r.status === "active"; ) {
25621
- let c = a ? Y3(r, l) : [];
25670
+ let c = a ? Z3(r, l) : [];
25622
25671
  const u = c.length ? r : void 0;
25623
25672
  if (!c.length) {
25624
25673
  if (!o.length)
@@ -25639,7 +25688,7 @@ function Rh(n, e, t) {
25639
25688
  function Ph(n, e) {
25640
25689
  return e.machine.getTransitionData(e, n);
25641
25690
  }
25642
- function Y3(n, e) {
25691
+ function Z3(n, e) {
25643
25692
  const t = /* @__PURE__ */ new Set(), o = n._nodes.filter(Bu);
25644
25693
  for (const r of o)
25645
25694
  e: for (const s of [r].concat(ws(r, void 0)))
@@ -25652,22 +25701,22 @@ function Y3(n, e) {
25652
25701
  }
25653
25702
  return S0(Array.from(t), new Set(n._nodes), n.historyValue);
25654
25703
  }
25655
- function X3(n, e) {
25704
+ function Q3(n, e) {
25656
25705
  const t = qi(Gi(n, e));
25657
25706
  return k0(n, [...t]);
25658
25707
  }
25659
- function Z3(n) {
25708
+ function eA(n) {
25660
25709
  return !!n && typeof n == "object" && "machine" in n && "value" in n;
25661
25710
  }
25662
- const Q3 = function(e) {
25711
+ const tA = function(e) {
25663
25712
  return h0(e, this.value);
25664
- }, eA = function(e) {
25713
+ }, nA = function(e) {
25665
25714
  return this.tags.has(e);
25666
- }, tA = function(e) {
25715
+ }, oA = function(e) {
25667
25716
  const t = this.machine.getTransitionData(this, e);
25668
25717
  return !!(t != null && t.length) && // Check that at least one transition is not forbidden
25669
25718
  t.some((o) => o.target !== void 0 || o.actions.length);
25670
- }, nA = function() {
25719
+ }, rA = function() {
25671
25720
  const {
25672
25721
  _nodes: e,
25673
25722
  tags: t,
@@ -25683,7 +25732,7 @@ const Q3 = function(e) {
25683
25732
  ...c,
25684
25733
  tags: Array.from(t)
25685
25734
  };
25686
- }, oA = function() {
25735
+ }, sA = function() {
25687
25736
  return this._nodes.reduce((e, t) => (t.meta !== void 0 && (e[t.id] = t.meta), e), {});
25688
25737
  };
25689
25738
  function Vs(n, e) {
@@ -25698,11 +25747,11 @@ function Vs(n, e) {
25698
25747
  tags: new Set(n._nodes.flatMap((t) => t.tags)),
25699
25748
  children: n.children,
25700
25749
  historyValue: n.historyValue || {},
25701
- matches: Q3,
25702
- hasTag: eA,
25703
- can: tA,
25704
- getMeta: oA,
25705
- toJSON: nA
25750
+ matches: tA,
25751
+ hasTag: nA,
25752
+ can: oA,
25753
+ getMeta: sA,
25754
+ toJSON: rA
25706
25755
  };
25707
25756
  }
25708
25757
  function Ao(n, e = {}) {
@@ -25711,7 +25760,7 @@ function Ao(n, e = {}) {
25711
25760
  ...e
25712
25761
  }, n.machine);
25713
25762
  }
25714
- function rA(n) {
25763
+ function iA(n) {
25715
25764
  if (typeof n != "object" || n === null)
25716
25765
  return {};
25717
25766
  const e = {};
@@ -25723,7 +25772,7 @@ function rA(n) {
25723
25772
  }
25724
25773
  return e;
25725
25774
  }
25726
- function sA(n, e) {
25775
+ function lA(n, e) {
25727
25776
  const {
25728
25777
  _nodes: t,
25729
25778
  tags: o,
@@ -25750,7 +25799,7 @@ function sA(n, e) {
25750
25799
  ...f,
25751
25800
  context: E0(i),
25752
25801
  children: h,
25753
- historyValue: rA(f.historyValue)
25802
+ historyValue: iA(f.historyValue)
25754
25803
  };
25755
25804
  }
25756
25805
  function E0(n) {
@@ -25774,7 +25823,7 @@ function E0(n) {
25774
25823
  }
25775
25824
  return e ?? n;
25776
25825
  }
25777
- function iA(n, e, t, o, {
25826
+ function aA(n, e, t, o, {
25778
25827
  event: r,
25779
25828
  id: s,
25780
25829
  delay: i
@@ -25800,7 +25849,7 @@ function iA(n, e, t, o, {
25800
25849
  delay: u
25801
25850
  }, void 0];
25802
25851
  }
25803
- function lA(n, e) {
25852
+ function cA(n, e) {
25804
25853
  const {
25805
25854
  event: t,
25806
25855
  delay: o,
@@ -25817,9 +25866,9 @@ function lA(n, e) {
25817
25866
  function Vu(n, e) {
25818
25867
  function t(o, r) {
25819
25868
  }
25820
- return t.type = "xstate.raise", t.event = n, t.id = e == null ? void 0 : e.id, t.delay = e == null ? void 0 : e.delay, t.resolve = iA, t.execute = lA, t;
25869
+ return t.type = "xstate.raise", t.event = n, t.id = e == null ? void 0 : e.id, t.delay = e == null ? void 0 : e.delay, t.resolve = aA, t.execute = cA, t;
25821
25870
  }
25822
- function aA(n, {
25871
+ function uA(n, {
25823
25872
  machine: e,
25824
25873
  context: t
25825
25874
  }, o, r) {
@@ -25854,11 +25903,11 @@ function aA(n, {
25854
25903
  return (i, l) => {
25855
25904
  const a = s(i, l);
25856
25905
  return r[a.id] = a, n.defer(() => {
25857
- a._processingStatus !== ht.Stopped && a.start();
25906
+ a._processingStatus !== pt.Stopped && a.start();
25858
25907
  }), a;
25859
25908
  };
25860
25909
  }
25861
- function cA(n, e, t, o, {
25910
+ function dA(n, e, t, o, {
25862
25911
  assignment: r
25863
25912
  }) {
25864
25913
  if (!e.context)
@@ -25866,7 +25915,7 @@ function cA(n, e, t, o, {
25866
25915
  const s = {}, i = {
25867
25916
  context: e.context,
25868
25917
  event: t.event,
25869
- spawn: aA(n, e, t.event, s),
25918
+ spawn: uA(n, e, t.event, s),
25870
25919
  self: n.self,
25871
25920
  system: n.system
25872
25921
  };
@@ -25890,7 +25939,7 @@ function cA(n, e, t, o, {
25890
25939
  function fo(n) {
25891
25940
  function e(t, o) {
25892
25941
  }
25893
- return e.type = "xstate.assign", e.assignment = n, e.resolve = cA, e;
25942
+ return e.type = "xstate.assign", e.assignment = n, e.resolve = dA, e;
25894
25943
  }
25895
25944
  const Lh = /* @__PURE__ */ new WeakMap();
25896
25945
  function Fo(n, e, t) {
@@ -25899,7 +25948,7 @@ function Fo(n, e, t) {
25899
25948
  [e]: t()
25900
25949
  }, Lh.set(n, o)), o[e];
25901
25950
  }
25902
- const uA = {}, Mr = (n) => typeof n == "string" ? {
25951
+ const fA = {}, Mr = (n) => typeof n == "string" ? {
25903
25952
  type: n
25904
25953
  } : typeof n == "function" ? "resolve" in n ? {
25905
25954
  type: n.type
@@ -25912,13 +25961,13 @@ class Yi {
25912
25961
  _parent: this,
25913
25962
  _key: r,
25914
25963
  _machine: this.machine
25915
- })) : uA, this.type === "compound" && !this.config.initial)
25964
+ })) : fA, this.type === "compound" && !this.config.initial)
25916
25965
  throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);
25917
25966
  this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this.entry = Wn(this.config.entry).slice(), this.exit = Wn(this.config.exit).slice(), this.meta = this.config.meta, this.output = this.type === "final" || !this.parent ? this.config.output : void 0, this.tags = Wn(e.tags).slice();
25918
25967
  }
25919
25968
  /** @internal */
25920
25969
  _initialize() {
25921
- this.transitions = N3(this), this.config.always && (this.always = jo(this.config.always).map((e) => Pn(this, c0, e))), Object.keys(this.states).forEach((e) => {
25970
+ this.transitions = P3(this), this.config.always && (this.always = jo(this.config.always).map((e) => Pn(this, c0, e))), Object.keys(this.states).forEach((e) => {
25922
25971
  this.states[e]._initialize();
25923
25972
  });
25924
25973
  }
@@ -25996,16 +26045,16 @@ class Yi {
25996
26045
  return Fo(this, "on", () => [...this.transitions].flatMap(([t, o]) => o.map((r) => [t, r])).reduce((t, [o, r]) => (t[o] = t[o] || [], t[o].push(r), t), {}));
25997
26046
  }
25998
26047
  get after() {
25999
- return Fo(this, "delayedTransitions", () => D3(this));
26048
+ return Fo(this, "delayedTransitions", () => R3(this));
26000
26049
  }
26001
26050
  get initial() {
26002
- return Fo(this, "initial", () => P3(this, this.config.initial));
26051
+ return Fo(this, "initial", () => $3(this, this.config.initial));
26003
26052
  }
26004
26053
  /** @internal */
26005
26054
  next(e, t) {
26006
26055
  const o = t.type, r = [];
26007
26056
  let s;
26008
- const i = Fo(this, `candidates-${o}`, () => _3(this, o));
26057
+ const i = Fo(this, `candidates-${o}`, () => N3(this, o));
26009
26058
  for (const l of i) {
26010
26059
  const {
26011
26060
  guard: a
@@ -26051,7 +26100,7 @@ ${d.message}`);
26051
26100
  return Array.from(t);
26052
26101
  }
26053
26102
  }
26054
- const dA = "#";
26103
+ const hA = "#";
26055
26104
  class Wu {
26056
26105
  constructor(e, t) {
26057
26106
  this.config = e, this.version = void 0, this.schemas = void 0, this.implementations = void 0, this.__xstatenode = !0, this.idMap = /* @__PURE__ */ new Map(), this.root = void 0, this.id = void 0, this.states = void 0, this.events = void 0, this.id = e.id || "(machine)", this.implementations = {
@@ -26062,7 +26111,7 @@ class Wu {
26062
26111
  }, this.version = this.config.version, this.schemas = this.config.schemas, this.transition = this.transition.bind(this), this.getInitialSnapshot = this.getInitialSnapshot.bind(this), this.getPersistedSnapshot = this.getPersistedSnapshot.bind(this), this.restoreSnapshot = this.restoreSnapshot.bind(this), this.start = this.start.bind(this), this.root = new Yi(e, {
26063
26112
  _key: this.id,
26064
26113
  _machine: this
26065
- }), this.root._initialize(), R3(this.root), this.states = this.root.states, this.events = this.root.events;
26114
+ }), this.root._initialize(), L3(this.root), this.states = this.root.states, this.events = this.root.events;
26066
26115
  }
26067
26116
  /**
26068
26117
  * Clones this state machine with the provided implementations.
@@ -26098,7 +26147,7 @@ class Wu {
26098
26147
  });
26099
26148
  }
26100
26149
  resolveState(e) {
26101
- const t = X3(this.root, e.value), o = qi(Gi(this.root, t));
26150
+ const t = Q3(this.root, e.value), o = qi(Gi(this.root, t));
26102
26151
  return Vs({
26103
26152
  _nodes: [...o],
26104
26153
  context: e.context || {},
@@ -26162,7 +26211,7 @@ class Wu {
26162
26211
  * `ActorRef`.
26163
26212
  */
26164
26213
  getInitialSnapshot(e, t) {
26165
- const o = f0(t), r = [], s = this._getPreInitialState(e, o, r), [i] = j3(this.root, s, e, o, r), {
26214
+ const o = f0(t), r = [], s = this._getPreInitialState(e, o, r), [i] = K3(this.root, s, e, o, r), {
26166
26215
  snapshot: l
26167
26216
  } = ba(i, o, e, r);
26168
26217
  return l;
@@ -26173,7 +26222,7 @@ class Wu {
26173
26222
  });
26174
26223
  }
26175
26224
  getStateNodeById(e) {
26176
- const t = Nu(e), o = t.slice(1), r = Ol(t[0]) ? t[0].slice(dA.length) : t[0], s = this.idMap.get(r);
26225
+ const t = Nu(e), o = t.slice(1), r = Ol(t[0]) ? t[0].slice(hA.length) : t[0], s = this.idMap.get(r);
26177
26226
  if (!s)
26178
26227
  throw new Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);
26179
26228
  return Ji(s, o);
@@ -26185,7 +26234,7 @@ class Wu {
26185
26234
  return this.definition;
26186
26235
  }
26187
26236
  getPersistedSnapshot(e, t) {
26188
- return sA(e, t);
26237
+ return lA(e, t);
26189
26238
  }
26190
26239
  restoreSnapshot(e, t) {
26191
26240
  const o = {}, r = e.children;
@@ -26248,7 +26297,7 @@ class Wu {
26248
26297
  return u(a.context, o), a;
26249
26298
  }
26250
26299
  }
26251
- function fA(n, e, t, o, {
26300
+ function pA(n, e, t, o, {
26252
26301
  event: r
26253
26302
  }) {
26254
26303
  const s = typeof r == "function" ? r(t, o) : r;
@@ -26256,7 +26305,7 @@ function fA(n, e, t, o, {
26256
26305
  event: s
26257
26306
  }, void 0];
26258
26307
  }
26259
- function hA(n, {
26308
+ function mA(n, {
26260
26309
  event: e
26261
26310
  }) {
26262
26311
  n.defer(() => n.emit(e));
@@ -26264,12 +26313,12 @@ function hA(n, {
26264
26313
  function A0(n) {
26265
26314
  function e(t, o) {
26266
26315
  }
26267
- return e.type = "xstate.emit", e.event = n, e.resolve = fA, e.execute = hA, e;
26316
+ return e.type = "xstate.emit", e.event = n, e.resolve = pA, e.execute = mA, e;
26268
26317
  }
26269
26318
  let Sc = /* @__PURE__ */ function(n) {
26270
26319
  return n.Parent = "#_parent", n.Internal = "#_internal", n;
26271
26320
  }({});
26272
- function pA(n, e, t, o, {
26321
+ function gA(n, e, t, o, {
26273
26322
  to: r,
26274
26323
  event: s,
26275
26324
  id: i,
@@ -26304,10 +26353,10 @@ function pA(n, e, t, o, {
26304
26353
  delay: d
26305
26354
  }, void 0];
26306
26355
  }
26307
- function mA(n, e, t) {
26356
+ function yA(n, e, t) {
26308
26357
  typeof t.to == "string" && (t.to = e.children[t.to]);
26309
26358
  }
26310
- function gA(n, e) {
26359
+ function vA(n, e) {
26311
26360
  n.defer(() => {
26312
26361
  const {
26313
26362
  to: t,
@@ -26324,19 +26373,19 @@ function gA(n, e) {
26324
26373
  // at this point, in a deferred task, it should already be mutated by retryResolveSendTo
26325
26374
  // if it initially started as a string
26326
26375
  t,
26327
- o.type === p3 ? d0(n.self.id, o.data) : o
26376
+ o.type === g3 ? d0(n.self.id, o.data) : o
26328
26377
  );
26329
26378
  });
26330
26379
  }
26331
26380
  function ju(n, e, t) {
26332
26381
  function o(r, s) {
26333
26382
  }
26334
- return o.type = "xstate.sendTo", o.to = n, o.event = e, o.id = t == null ? void 0 : t.id, o.delay = t == null ? void 0 : t.delay, o.resolve = pA, o.retryResolve = mA, o.execute = gA, o;
26383
+ return o.type = "xstate.sendTo", o.to = n, o.event = e, o.id = t == null ? void 0 : t.id, o.delay = t == null ? void 0 : t.delay, o.resolve = gA, o.retryResolve = yA, o.execute = vA, o;
26335
26384
  }
26336
- function yA(n, e) {
26385
+ function wA(n, e) {
26337
26386
  return ju(Sc.Parent, n, e);
26338
26387
  }
26339
- function vA(n, e, t, o, {
26388
+ function kA(n, e, t, o, {
26340
26389
  collect: r
26341
26390
  }) {
26342
26391
  const s = [], i = function(a) {
@@ -26351,7 +26400,7 @@ function vA(n, e, t, o, {
26351
26400
  }, i.sendTo = (...l) => {
26352
26401
  s.push(ju(...l));
26353
26402
  }, i.sendParent = (...l) => {
26354
- s.push(yA(...l));
26403
+ s.push(wA(...l));
26355
26404
  }, i.spawnChild = (...l) => {
26356
26405
  s.push($u(...l));
26357
26406
  }, i.stopChild = (...l) => {
@@ -26367,12 +26416,12 @@ function vA(n, e, t, o, {
26367
26416
  system: n.system
26368
26417
  }, o), [e, void 0, s];
26369
26418
  }
26370
- function wA(n) {
26419
+ function bA(n) {
26371
26420
  function e(t, o) {
26372
26421
  }
26373
- return e.type = "xstate.enqueueActions", e.collect = n, e.resolve = vA, e;
26422
+ return e.type = "xstate.enqueueActions", e.collect = n, e.resolve = kA, e;
26374
26423
  }
26375
- function kA(n, e, t, o, {
26424
+ function xA(n, e, t, o, {
26376
26425
  value: r,
26377
26426
  label: s
26378
26427
  }) {
@@ -26381,7 +26430,7 @@ function kA(n, e, t, o, {
26381
26430
  label: s
26382
26431
  }, void 0];
26383
26432
  }
26384
- function bA({
26433
+ function SA({
26385
26434
  logger: n
26386
26435
  }, {
26387
26436
  value: e,
@@ -26389,7 +26438,7 @@ function bA({
26389
26438
  }) {
26390
26439
  t ? n(t, e) : n(e);
26391
26440
  }
26392
- function xA(n = ({
26441
+ function CA(n = ({
26393
26442
  context: t,
26394
26443
  event: o
26395
26444
  }) => ({
@@ -26398,9 +26447,9 @@ function xA(n = ({
26398
26447
  }), e) {
26399
26448
  function t(o, r) {
26400
26449
  }
26401
- return t.type = "xstate.log", t.value = n, t.label = e, t.resolve = kA, t.execute = bA, t;
26450
+ return t.type = "xstate.log", t.value = n, t.label = e, t.resolve = xA, t.execute = SA, t;
26402
26451
  }
26403
- function SA(n, e) {
26452
+ function MA(n, e) {
26404
26453
  return new Wu(n, e);
26405
26454
  }
26406
26455
  function I0({
@@ -26414,15 +26463,15 @@ function I0({
26414
26463
  assign: fo,
26415
26464
  sendTo: ju,
26416
26465
  raise: Vu,
26417
- log: xA,
26466
+ log: CA,
26418
26467
  cancel: Lu,
26419
26468
  stopChild: Al,
26420
- enqueueActions: wA,
26469
+ enqueueActions: bA,
26421
26470
  emit: A0,
26422
26471
  spawnChild: $u,
26423
26472
  createStateConfig: (s) => s,
26424
26473
  createAction: (s) => s,
26425
- createMachine: (s) => SA({
26474
+ createMachine: (s) => MA({
26426
26475
  ...s,
26427
26476
  schemas: n
26428
26477
  }, {
@@ -26449,9 +26498,9 @@ function I0({
26449
26498
  })
26450
26499
  };
26451
26500
  }
26452
- const CA = 4, $h = 1, Bh = "draw", MA = I0({
26501
+ const TA = 4, $h = 1, Bh = "draw", EA = I0({
26453
26502
  guards: {
26454
- isThresholdReached: ({ context: n, event: e }) => In.distance(n.pointingStartWorld, e.worldPosition) * e.cameraZoom >= CA
26503
+ isThresholdReached: ({ context: n, event: e }) => In.distance(n.pointingStartWorld, e.worldPosition) * e.cameraZoom >= TA
26455
26504
  },
26456
26505
  actions: {
26457
26506
  setPointingStart: fo({
@@ -26554,15 +26603,15 @@ const CA = 4, $h = 1, Bh = "draw", MA = I0({
26554
26603
  }
26555
26604
  }
26556
26605
  }
26557
- }), TA = tl({ phase: "capture", priority: 100 }, (n) => {
26606
+ }), AA = tl({ phase: "capture", priority: 100 }, (n) => {
26558
26607
  if (nl(n)) return;
26559
26608
  const e = Bt.read(n);
26560
26609
  if (e.leftMouseTool !== Bh || !e.heldSnapshot) return;
26561
26610
  const t = Bt.getButtons(n, Bh);
26562
26611
  if (t.length === 0) return;
26563
26612
  const o = Rc(n, t);
26564
- o.length !== 0 && l0.run(n, MA, o);
26565
- }), EA = tl({ phase: "update" }, (n) => {
26613
+ o.length !== 0 && l0.run(n, EA, o);
26614
+ }), IA = tl({ phase: "update" }, (n) => {
26566
26615
  if (nl(n)) return;
26567
26616
  const { store: e } = Io(n, No);
26568
26617
  od(n, Dc, () => {
@@ -26570,7 +26619,7 @@ const CA = 4, $h = 1, Bh = "draw", MA = I0({
26570
26619
  }), od(n, qs, () => {
26571
26620
  e.canRedo() && (Ta(n), e.redo());
26572
26621
  });
26573
- }), AA = [
26622
+ }), OA = [
26574
26623
  {
26575
26624
  name: "Figtree",
26576
26625
  displayName: "Figtree",
@@ -26596,17 +26645,17 @@ const CA = 4, $h = 1, Bh = "draw", MA = I0({
26596
26645
  previewImage: "https://storage.googleapis.com/scrolly-page-fonts/EBGaramond.png"
26597
26646
  }
26598
26647
  ];
26599
- function IA(n) {
26648
+ function _A(n) {
26600
26649
  return {
26601
26650
  name: No,
26602
26651
  resources: { store: n.store, getDefaults: n.getDefaults },
26603
26652
  singletons: [Ui, qr, l0],
26604
- systems: [r3, TA, l3, EA],
26653
+ systems: [i3, AA, c3, IA],
26605
26654
  setup(e) {
26606
26655
  n.doubleClickSnapshot && (qr.write(e).snapshot = n.doubleClickSnapshot);
26607
26656
  },
26608
- cursors: ZT,
26609
- fonts: AA,
26657
+ cursors: eE,
26658
+ fonts: OA,
26610
26659
  keybinds: [
26611
26660
  { command: Dc.name, key: Ll.Z, mod: !0 },
26612
26661
  { command: qs.name, key: Ll.Y, mod: !0 },
@@ -26614,7 +26663,7 @@ function IA(n) {
26614
26663
  ]
26615
26664
  };
26616
26665
  }
26617
- const OA = /* @__PURE__ */ q({
26666
+ const DA = /* @__PURE__ */ q({
26618
26667
  __name: "ClipboardHandler",
26619
26668
  props: {
26620
26669
  options: {}
@@ -26623,12 +26672,12 @@ const OA = /* @__PURE__ */ q({
26623
26672
  const e = n, t = ge("containerRef", B(null));
26624
26673
  return hS(t, e.options), (o, r) => me(o.$slots, "default");
26625
26674
  }
26626
- }), _A = { class: "wov-user-cursors" }, DA = {
26675
+ }), NA = { class: "wov-user-cursors" }, RA = {
26627
26676
  class: "wov-cursor-svg",
26628
26677
  viewBox: "0 0 4.35 4.75",
26629
26678
  width: "20",
26630
26679
  height: "20"
26631
- }, NA = ["fill"], RA = "M2.39,2.88s-.04.01-.05.02c-.01,0-.02.01-.03.02,0,.01-.02.02-.03.05l-.77,1.44c-.07.13-.1.19-.14.2-.03.01-.07,0-.1-.01-.03-.02-.05-.09-.09-.23L.16.41c-.03-.13-.05-.19-.03-.23.02-.03.04-.05.08-.06.04,0,.1.02.21.08l3.59,1.94c.13.07.19.1.2.14.01.03,0,.07-.01.1-.02.03-.09.05-.23.09l-1.58.4Z", PA = /* @__PURE__ */ q({
26680
+ }, PA = ["fill"], LA = "M2.39,2.88s-.04.01-.05.02c-.01,0-.02.01-.03.02,0,.01-.02.02-.03.05l-.77,1.44c-.07.13-.1.19-.14.2-.03.01-.07,0-.1-.01-.03-.02-.05-.09-.09-.23L.16.41c-.03-.13-.05-.19-.03-.23.02-.03.04-.05.08-.06.04,0,.1.02.21.08l3.59,1.94c.13.07.19.1.2.14.01.03,0,.07-.01.1-.02.03-.09.05-.23.09l-1.58.4Z", $A = /* @__PURE__ */ q({
26632
26681
  __name: "UserCursors",
26633
26682
  props: {
26634
26683
  users: {},
@@ -26643,7 +26692,7 @@ const OA = /* @__PURE__ */ q({
26643
26692
  screenY: (o.position[1] - e.camera.top) * e.camera.zoom
26644
26693
  }))
26645
26694
  );
26646
- return (o, r) => (C(), A("div", _A, [
26695
+ return (o, r) => (C(), A("div", NA, [
26647
26696
  (C(!0), A(ie, null, Se(t.value, (s) => (C(), A("div", {
26648
26697
  key: s.sessionId,
26649
26698
  class: "wov-user-cursor",
@@ -26651,14 +26700,14 @@ const OA = /* @__PURE__ */ q({
26651
26700
  transform: `translate(${s.screenX}px, ${s.screenY}px)`
26652
26701
  })
26653
26702
  }, [
26654
- (C(), A("svg", DA, [
26703
+ (C(), A("svg", RA, [
26655
26704
  x("path", {
26656
26705
  fill: s.color,
26657
26706
  stroke: "#fff",
26658
26707
  "stroke-miterlimit": "10",
26659
26708
  "stroke-width": ".25",
26660
- d: RA
26661
- }, null, 8, NA)
26709
+ d: LA
26710
+ }, null, 8, PA)
26662
26711
  ])),
26663
26712
  x("span", {
26664
26713
  class: "wov-cursor-label",
@@ -26667,21 +26716,21 @@ const OA = /* @__PURE__ */ q({
26667
26716
  ], 4))), 128))
26668
26717
  ]));
26669
26718
  }
26670
- }), LA = {
26719
+ }), BA = {
26671
26720
  key: 0,
26672
26721
  class: "wov-offline-indicator"
26673
- }, $A = /* @__PURE__ */ q({
26722
+ }, zA = /* @__PURE__ */ q({
26674
26723
  __name: "OfflineIndicator",
26675
26724
  props: {
26676
26725
  isOnline: { type: Boolean }
26677
26726
  },
26678
26727
  setup(n) {
26679
- return (e, t) => n.isOnline ? j("", !0) : (C(), A("div", LA, "Working Offline"));
26728
+ return (e, t) => n.isOnline ? j("", !0) : (C(), A("div", BA, "Working Offline"));
26680
26729
  }
26681
- }), BA = {
26730
+ }), FA = {
26682
26731
  key: 0,
26683
26732
  class: "wov-version-mismatch-overlay"
26684
- }, zA = /* @__PURE__ */ q({
26733
+ }, HA = /* @__PURE__ */ q({
26685
26734
  __name: "VersionMismatch",
26686
26735
  props: {
26687
26736
  versionMismatch: { type: Boolean }
@@ -26690,7 +26739,7 @@ const OA = /* @__PURE__ */ q({
26690
26739
  function e() {
26691
26740
  window.location.reload();
26692
26741
  }
26693
- return (t, o) => n.versionMismatch ? (C(), A("div", BA, [
26742
+ return (t, o) => n.versionMismatch ? (C(), A("div", FA, [
26694
26743
  x("div", { class: "wov-version-mismatch-dialog" }, [
26695
26744
  o[0] || (o[0] = x("p", null, "A new version is available.", -1)),
26696
26745
  o[1] || (o[1] = x("p", null, "Please refresh the page to continue.", -1)),
@@ -26698,10 +26747,10 @@ const OA = /* @__PURE__ */ q({
26698
26747
  ])
26699
26748
  ])) : j("", !0);
26700
26749
  }
26701
- }), FA = /* @__PURE__ */ q({
26750
+ }), VA = /* @__PURE__ */ q({
26702
26751
  __name: "BackToContentButton",
26703
26752
  setup(n) {
26704
- const { nextEditorTick: e } = Ce(), t = ot(Pe), o = ct((c) => c.with(Tt, le, Uo)), r = B(0), s = ge(Ue);
26753
+ const { nextEditorTick: e } = Ce(), t = ot(Pe), o = ct((c) => c.with(Et, le, Uo)), r = B(0), s = ge(Ue);
26705
26754
  if (s) {
26706
26755
  const c = s.registerTickCallback((u) => {
26707
26756
  o.addedOrRemoved(u).length > 0 && (r.value = o.current(u).length);
@@ -26782,7 +26831,7 @@ const OA = /* @__PURE__ */ q({
26782
26831
  Sa(" Back to content ", -1)
26783
26832
  ])])) : j("", !0);
26784
26833
  }
26785
- }), HA = ["data-entity-id", "data-selected", "data-held-by-other", "data-hovered", "data-edited"], VA = /* @__PURE__ */ q({
26834
+ }), WA = ["data-entity-id", "data-selected", "data-held-by-other", "data-hovered", "data-edited"], jA = /* @__PURE__ */ q({
26786
26835
  __name: "WovenCanvasCore",
26787
26836
  props: {
26788
26837
  store: {},
@@ -26808,7 +26857,7 @@ const OA = /* @__PURE__ */ q({
26808
26857
  "transform-handle": YS,
26809
26858
  "arrow-handle": Wy,
26810
26859
  "arrow-terminal": qy,
26811
- "sticky-note": t3,
26860
+ "sticky-note": o3,
26812
26861
  eraser: Sv,
26813
26862
  "pen-stroke": $v,
26814
26863
  "arc-arrow": zy,
@@ -26869,7 +26918,7 @@ const OA = /* @__PURE__ */ q({
26869
26918
  P.delete(U), P.size === 0 && D.delete(I);
26870
26919
  };
26871
26920
  }
26872
- function bt(I, U) {
26921
+ function xt(I, U) {
26873
26922
  const P = D.get(U.name);
26874
26923
  if (!P || P.size === 0) return;
26875
26924
  const K = U.snapshot(I);
@@ -26913,15 +26962,15 @@ const OA = /* @__PURE__ */ q({
26913
26962
  });
26914
26963
  let Vt = 0, Wt = null, Je = null;
26915
26964
  const O0 = ((Yu = (Gu = g.store) == null ? void 0 : Gu.persistence) == null ? void 0 : Yu.documentId) ?? "default";
26916
- let Ge = new XE({
26917
- provider: g.assetProvider ?? new e3(),
26965
+ let Ge = new QE({
26966
+ provider: g.assetProvider ?? new n3(),
26918
26967
  documentId: O0
26919
26968
  });
26920
26969
  function _0(I) {
26921
26970
  var K;
26922
26971
  const U = [], P = g.pluginOptions;
26923
26972
  return (P == null ? void 0 : P.controls) !== !1 && U.push(Sy((P == null ? void 0 : P.controls) ?? {})), (P == null ? void 0 : P.eraser) !== !1 && U.push(wy((P == null ? void 0 : P.eraser) || void 0)), (P == null ? void 0 : P.pen) !== !1 && U.push(ky()), (P == null ? void 0 : P.arrows) !== !1 && U.push(V0((P == null ? void 0 : P.arrows) || void 0)), (P == null ? void 0 : P.tapes) !== !1 && U.push(Cy()), U.push(
26924
- IA({
26973
+ _A({
26925
26974
  store: I,
26926
26975
  doubleClickSnapshot: g.doubleClickSnapshot,
26927
26976
  // Live read of the creation-defaults registry so the placement systems can
@@ -26994,7 +27043,7 @@ const OA = /* @__PURE__ */ q({
26994
27043
  X();
26995
27044
  };
26996
27045
  let Dl = null;
26997
- wt(async () => {
27046
+ kt(async () => {
26998
27047
  var P, K, z;
26999
27048
  if (!v.value) return;
27000
27049
  X(), window.addEventListener("online", bs), window.addEventListener("offline", bs), Ku = () => {
@@ -27030,7 +27079,7 @@ const OA = /* @__PURE__ */ q({
27030
27079
  if (L === my) {
27031
27080
  if (ne === $o.CHANGED) {
27032
27081
  const ye = z.get(he);
27033
- ye && bt(I, ye);
27082
+ ye && xt(I, ye);
27034
27083
  }
27035
27084
  continue;
27036
27085
  }
@@ -27254,7 +27303,7 @@ const OA = /* @__PURE__ */ q({
27254
27303
  key: 0,
27255
27304
  background: n.background
27256
27305
  }, () => [
27257
- Z($T, { background: n.background }, null, 8, ["background"])
27306
+ Z(zT, { background: n.background }, null, 8, ["background"])
27258
27307
  ]) : j("", !0),
27259
27308
  (C(), A(ie, null, Se(k, (P) => (C(), A(ie, {
27260
27309
  key: P.class
@@ -27288,7 +27337,7 @@ const OA = /* @__PURE__ */ q({
27288
27337
  ref_for: !0
27289
27338
  }, K.value), null, 16)) : j("", !0)
27290
27339
  ])
27291
- ], 12, HA)) : j("", !0)
27340
+ ], 12, WA)) : j("", !0)
27292
27341
  ], 64))), 128))
27293
27342
  ], 6)
27294
27343
  ], 64))), 64)),
@@ -27298,13 +27347,13 @@ const OA = /* @__PURE__ */ q({
27298
27347
  currentSessionId: F(M).sessionId,
27299
27348
  camera: fe.value
27300
27349
  }, () => [
27301
- Z(PA, {
27350
+ Z($A, {
27302
27351
  users: E.value,
27303
27352
  "current-session-id": F(M).sessionId,
27304
27353
  camera: fe.value
27305
27354
  }, null, 8, ["users", "current-session-id", "camera"])
27306
27355
  ]) : j("", !0),
27307
- b.value ? (C(), ee(WT, { key: 2 }, {
27356
+ b.value ? (C(), ee(UT, { key: 2 }, {
27308
27357
  default: se((P) => [
27309
27358
  me(I.$slots, "floating-menu", qh(Jh(P)))
27310
27359
  ]),
@@ -27314,35 +27363,35 @@ const OA = /* @__PURE__ */ q({
27314
27363
  key: 3,
27315
27364
  users: E.value
27316
27365
  }, () => [
27317
- Z($E, { users: E.value }, null, 8, ["users"])
27366
+ Z(zE, { users: E.value }, null, 8, ["users"])
27318
27367
  ]) : j("", !0),
27319
27368
  b.value ? me(I.$slots, "toolbar", { key: 4 }, () => [
27320
- Z(OE)
27369
+ Z(DE)
27321
27370
  ]) : j("", !0),
27322
27371
  b.value ? me(I.$slots, "default", { key: 5 }) : j("", !0),
27323
27372
  me(I.$slots, "offline-indicator", { isOnline: V.value }, () => [
27324
- Z($A, { "is-online": V.value }, null, 8, ["is-online"])
27373
+ Z(zA, { "is-online": V.value }, null, 8, ["is-online"])
27325
27374
  ]),
27326
27375
  me(I.$slots, "version-mismatch", { versionMismatch: Y.value }, () => [
27327
- Z(zA, { "version-mismatch": Y.value }, null, 8, ["version-mismatch"])
27376
+ Z(HA, { "version-mismatch": Y.value }, null, 8, ["version-mismatch"])
27328
27377
  ]),
27329
27378
  me(I.$slots, "back-to-content", {}, () => [
27330
- Z(FA)
27379
+ Z(VA)
27331
27380
  ]),
27332
27381
  me(I.$slots, "loading", { isLoading: re.value }, () => [
27333
- Z(KT, { "is-loading": re.value }, null, 8, ["is-loading"])
27382
+ Z(JT, { "is-loading": re.value }, null, 8, ["is-loading"])
27334
27383
  ]),
27335
27384
  b.value ? me(I.$slots, "file-drop-zone", { key: 6 }, () => [
27336
- Z(BT)
27385
+ Z(FT)
27337
27386
  ]) : j("", !0),
27338
- b.value ? (C(), ee(OA, {
27387
+ b.value ? (C(), ee(DA, {
27339
27388
  key: 7,
27340
27389
  options: g.copyPaste
27341
27390
  }, null, 8, ["options"])) : j("", !0),
27342
27391
  Z(wM)
27343
27392
  ], 512));
27344
27393
  }
27345
- }), eI = /* @__PURE__ */ q({
27394
+ }), nI = /* @__PURE__ */ q({
27346
27395
  inheritAttrs: !1,
27347
27396
  __name: "WovenCanvas",
27348
27397
  setup(n, { expose: e }) {
@@ -27354,7 +27403,7 @@ const OA = /* @__PURE__ */ q({
27354
27403
  }
27355
27404
  }), (o, r) => (C(), ee(K0, null, {
27356
27405
  default: se(() => [
27357
- Z(VA, Xo({
27406
+ Z(jA, Xo({
27358
27407
  ref_key: "core",
27359
27408
  ref: t
27360
27409
  }, o.$attrs), q0({ _: 2 }, [
@@ -27373,7 +27422,7 @@ const OA = /* @__PURE__ */ q({
27373
27422
  export {
27374
27423
  Qh as ARROW_HEADS,
27375
27424
  zy as ArcArrow,
27376
- QA as ArcArrowTool,
27425
+ tI as ArcArrowTool,
27377
27426
  Wy as ArrowHandle,
27378
27427
  $n as ArrowHead,
27379
27428
  uh as ArrowHeadButton,
@@ -27381,51 +27430,51 @@ export {
27381
27430
  ZC as ArrowThicknessButton,
27382
27431
  eM as AspectLockButton,
27383
27432
  sM as BlockOperationsButton,
27384
- ZT as CURSORS,
27385
- $T as CanvasBackground,
27386
- oI as CanvasComponentDef,
27387
- rI as CanvasSingletonDef,
27388
- sI as CanvasStore,
27433
+ eE as CURSORS,
27434
+ zT as CanvasBackground,
27435
+ sI as CanvasComponentDef,
27436
+ iI as CanvasSingletonDef,
27437
+ lI as CanvasStore,
27389
27438
  vM as ColorButton,
27390
27439
  fM as ColorPicker,
27391
27440
  ko as CursorKind,
27392
27441
  No as EDITING_PLUGIN_NAME,
27393
27442
  Au as EditableText,
27394
- IA as EditingPlugin,
27443
+ _A as EditingPlugin,
27395
27444
  Qy as ElbowArrow,
27396
- lE as ElbowArrowTool,
27445
+ cE as ElbowArrowTool,
27397
27446
  ov as EmbedBlock,
27398
- ME as EmbedTool,
27447
+ EE as EmbedTool,
27399
27448
  Sv as Eraser,
27400
- rE as EraserTool,
27401
- BT as FileDropZone,
27402
- WT as FloatingMenu,
27403
- HT as FloatingMenuBar,
27449
+ iE as EraserTool,
27450
+ FT as FileDropZone,
27451
+ UT as FloatingMenu,
27452
+ WT as FloatingMenuBar,
27404
27453
  Cv as FrameBlock,
27405
- tE as HandTool,
27454
+ oE as HandTool,
27406
27455
  _t as IconChevronDown,
27407
27456
  Ov as ImageBlock,
27408
- aE as ImageTool,
27409
- KT as LoadingOverlay,
27457
+ uE as ImageTool,
27458
+ JT as LoadingOverlay,
27410
27459
  Po as MenuButton,
27411
- kt as MenuDropdown,
27460
+ bt as MenuDropdown,
27412
27461
  wM as MenuTooltip,
27413
27462
  $v as PenStroke,
27414
27463
  xM as PenStrokeThicknessButton,
27415
- sE as PenTool,
27464
+ lE as PenTool,
27416
27465
  Ys as SHAPES,
27417
- eE as SelectTool,
27466
+ nE as SelectTool,
27418
27467
  zv as SelectionBox,
27419
27468
  zS as ShapeBlock,
27420
27469
  IM as ShapeFillColorButton,
27421
27470
  PM as ShapeKindButton,
27422
27471
  qM as ShapeStrokeColorButton,
27423
- oE as ShapeTool,
27424
- nE as StickyNoteTool,
27425
- iI as Synced,
27472
+ sE as ShapeTool,
27473
+ rE as StickyNoteTool,
27474
+ aI as Synced,
27426
27475
  VS as TapeBlock,
27427
27476
  XM as TapeImageButton,
27428
- EE as TapeTool,
27477
+ IE as TapeTool,
27429
27478
  fh as TextAlignmentButton,
27430
27479
  jS as TextBlock,
27431
27480
  hh as TextBoldButton,
@@ -27434,19 +27483,19 @@ export {
27434
27483
  mh as TextFontSizeButton,
27435
27484
  gh as TextItalicButton,
27436
27485
  vh as TextLinkButton,
27437
- iE as TextTool,
27486
+ aE as TextTool,
27438
27487
  yh as TextUnderlineButton,
27439
- OE as Toolbar,
27488
+ DE as Toolbar,
27440
27489
  Ht as ToolbarButton,
27441
27490
  KS as TransformBox,
27442
27491
  YS as TransformHandle,
27443
- $E as UserPresence,
27492
+ zE as UserPresence,
27444
27493
  Ue as WOVEN_CANVAS_KEY,
27445
- eI as WovenCanvas,
27446
- zT as computeCommonComponents,
27447
- FT as computeShowOperations,
27448
- lI as defineCanvasComponent,
27449
- aI as defineCanvasSingleton,
27494
+ nI as WovenCanvas,
27495
+ HT as computeCommonComponents,
27496
+ VT as computeShowOperations,
27497
+ cI as defineCanvasComponent,
27498
+ uI as defineCanvasSingleton,
27450
27499
  Gr as getArrowHead,
27451
27500
  De as useComponent,
27452
27501
  Sn as useComponents,