@stonecrop/desktop 0.10.15 → 0.11.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/dist/desktop.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as We, ref as A, onMounted as mr, openBlock as $, createElementBlock as q, normalizeClass as ur, createElementVNode as N, Fragment as oe, renderList as Me, toDisplayString as At, createCommentVNode as ne, withDirectives as cr, vShow as Jr, useTemplateRef as So, computed as x, watch as J, nextTick as ie, createBlock as ln, Teleport as Ri, createVNode as Jt, Transition as Ci, withCtx as je, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as lr, toRaw as Oo, isRef as se, isReactive as wr, toRef as Mt, hasInjectionContext as Gr, inject as $e, getCurrentInstance as ko, reactive as Do, markRaw as Oe, effectScope as Ni, getCurrentScope as Fe, onScopeDispose as Be, toRefs as Vn, provide as Qr, shallowRef as Tt, toValue as X, readonly as ve, customRef as Ke, unref as sr, useModel as Mi, watchEffect as ji, resolveComponent as Ao, resolveDynamicComponent as $i, mergeProps as Ti, mergeModels as Ln, withKeys as Ie, normalizeStyle as xr } from "vue";
1
+ import { defineComponent as We, ref as A, onMounted as wr, openBlock as M, createElementBlock as q, normalizeClass as ur, createElementVNode as N, Fragment as oe, renderList as Me, toDisplayString as At, createCommentVNode as re, withDirectives as cr, vShow as Gr, useTemplateRef as Io, computed as x, watch as J, nextTick as ie, createBlock as lr, Teleport as Ri, createVNode as ne, Transition as Ci, withCtx as je, withModifiers as Eo, vModelText as Oo, renderSlot as xr, createTextVNode as fr, toRaw as ko, isRef as se, isReactive as br, toRef as Mt, hasInjectionContext as Qr, inject as $e, getCurrentInstance as Do, reactive as Ao, markRaw as Oe, effectScope as Ni, getCurrentScope as Fe, onScopeDispose as Be, toRefs as Vn, provide as Yr, shallowRef as Tt, toValue as X, readonly as ve, customRef as Ke, unref as sr, useModel as Mi, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as $i, mergeModels as Un, resolveComponent as Ti, withKeys as Ie, normalizeStyle as Rr } from "vue";
2
2
  const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { key: 1 }, Li = ["onClick"], Ui = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Fi = ["onClick"], Bi = ["href"], Ki = { class: "dropdown-item" }, Hi = /* @__PURE__ */ We({
3
3
  __name: "ActionSet",
4
4
  props: {
@@ -7,7 +7,7 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
7
7
  emits: ["actionClick"],
8
8
  setup(t, { emit: e }) {
9
9
  const r = e, n = A({}), o = A(!1), i = A(-1), s = A(!1), a = A(!1);
10
- mr(() => {
10
+ wr(() => {
11
11
  u();
12
12
  });
13
13
  const u = () => {
@@ -18,13 +18,13 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
18
18
  }, 500);
19
19
  }, l = () => {
20
20
  s.value = !1, a.value = !1, clearTimeout(i.value), o.value = !1;
21
- }, f = (v) => {
22
- const y = !n.value[v];
23
- u(), y && (n.value[v] = !0);
24
- }, h = (v, y) => {
25
- r("actionClick", y, v);
21
+ }, f = (d) => {
22
+ const _ = !n.value[d];
23
+ u(), _ && (n.value[d] = !0);
24
+ }, h = (d, _) => {
25
+ r("actionClick", _, d);
26
26
  };
27
- return (v, y) => ($(), q("div", {
27
+ return (d, _) => (M(), q("div", {
28
28
  class: ur([{ "open-set": o.value, "hovered-and-closed": a.value }, "action-set collapse"]),
29
29
  onMouseover: c,
30
30
  onMouseleave: l
@@ -32,8 +32,8 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
32
32
  N("div", Pi, [
33
33
  N("div", {
34
34
  id: "chevron",
35
- onClick: y[0] || (y[0] = (m) => a.value = !a.value)
36
- }, [...y[1] || (y[1] = [
35
+ onClick: _[0] || (_[0] = (m) => a.value = !a.value)
36
+ }, [..._[1] || (_[1] = [
37
37
  N("svg", {
38
38
  id: "Layer_1",
39
39
  class: "leftBar",
@@ -62,43 +62,43 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
62
62
  ], -1)
63
63
  ])])
64
64
  ]),
65
- y[2] || (y[2] = N("div", { style: { "margin-right": "30px" } }, null, -1)),
66
- ($(!0), q(oe, null, Me(t.elements, (m, O) => ($(), q("div", {
65
+ _[2] || (_[2] = N("div", { style: { "margin-right": "30px" } }, null, -1)),
66
+ (M(!0), q(oe, null, Me(t.elements, (m, k) => (M(), q("div", {
67
67
  key: m.label,
68
68
  class: "action-element"
69
69
  }, [
70
- m.type == "button" ? ($(), q("button", {
70
+ m.type == "button" ? (M(), q("button", {
71
71
  key: 0,
72
72
  disabled: m.disabled,
73
73
  class: "button-default",
74
74
  onClick: (D) => h(m.action, m.label)
75
- }, At(m.label), 9, qi)) : ne("", !0),
76
- m.type == "dropdown" ? ($(), q("div", Vi, [
75
+ }, At(m.label), 9, qi)) : re("", !0),
76
+ m.type == "dropdown" ? (M(), q("div", Vi, [
77
77
  N("button", {
78
78
  class: "button-default",
79
- onClick: (D) => f(O)
79
+ onClick: (D) => f(k)
80
80
  }, At(m.label), 9, Li),
81
81
  cr(N("div", Ui, [
82
82
  N("div", Wi, [
83
- ($(!0), q(oe, null, Me(m.actions, (D, rt) => ($(), q("div", {
83
+ (M(!0), q(oe, null, Me(m.actions, (D, rt) => (M(), q("div", {
84
84
  key: D.label
85
85
  }, [
86
- D.action != null ? ($(), q("button", {
86
+ D.action != null ? (M(), q("button", {
87
87
  key: 0,
88
88
  class: "dropdown-item",
89
89
  onClick: (at) => h(D.action, D.label)
90
- }, At(D.label), 9, Fi)) : D.link != null ? ($(), q("a", {
90
+ }, At(D.label), 9, Fi)) : D.link != null ? (M(), q("a", {
91
91
  key: 1,
92
92
  href: D.link
93
93
  }, [
94
94
  N("button", Ki, At(D.label), 1)
95
- ], 8, Bi)) : ne("", !0)
95
+ ], 8, Bi)) : re("", !0)
96
96
  ]))), 128))
97
97
  ])
98
98
  ], 512), [
99
- [Jr, n.value[O]]
99
+ [Gr, n.value[k]]
100
100
  ])
101
- ])) : ne("", !0)
101
+ ])) : re("", !0)
102
102
  ]))), 128))
103
103
  ], 34));
104
104
  }
@@ -123,7 +123,7 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
123
123
  },
124
124
  emits: ["select", "close"],
125
125
  setup(t, { emit: e }) {
126
- const r = e, n = A(""), o = A(0), i = So("input"), s = x(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
126
+ const r = e, n = A(""), o = A(0), i = Io("input"), s = x(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
127
127
  J(
128
128
  () => t.isOpen,
129
129
  async (l) => {
@@ -152,17 +152,17 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
152
152
  }, c = (l) => {
153
153
  r("select", l), a();
154
154
  };
155
- return (l, f) => ($(), ln(Ri, { to: "body" }, [
156
- Jt(Ci, { name: "fade" }, {
155
+ return (l, f) => (M(), lr(Ri, { to: "body" }, [
156
+ ne(Ci, { name: "fade" }, {
157
157
  default: je(() => [
158
- t.isOpen ? ($(), q("div", {
158
+ t.isOpen ? (M(), q("div", {
159
159
  key: 0,
160
160
  class: "command-palette-overlay",
161
161
  onClick: a
162
162
  }, [
163
163
  N("div", {
164
164
  class: "command-palette",
165
- onClick: f[1] || (f[1] = Io(() => {
165
+ onClick: f[1] || (f[1] = Eo(() => {
166
166
  }, ["stop"]))
167
167
  }, [
168
168
  N("div", Ji, [
@@ -175,45 +175,45 @@ const Pi = { class: "action-menu-icon" }, qi = ["disabled", "onClick"], Vi = { k
175
175
  autofocus: "",
176
176
  onKeydown: u
177
177
  }, null, 40, Gi), [
178
- [Eo, n.value]
178
+ [Oo, n.value]
179
179
  ])
180
180
  ]),
181
- s.value.length ? ($(), q("div", Qi, [
182
- ($(!0), q(oe, null, Me(s.value, (h, v) => ($(), q("div", {
183
- key: v,
184
- class: ur(["command-palette-result", { selected: v === o.value }]),
185
- onClick: (y) => c(h),
186
- onMouseover: (y) => o.value = v
181
+ s.value.length ? (M(), q("div", Qi, [
182
+ (M(!0), q(oe, null, Me(s.value, (h, d) => (M(), q("div", {
183
+ key: d,
184
+ class: ur(["command-palette-result", { selected: d === o.value }]),
185
+ onClick: (_) => c(h),
186
+ onMouseover: (_) => o.value = d
187
187
  }, [
188
188
  N("div", Xi, [
189
- zr(l.$slots, "title", { result: h })
189
+ xr(l.$slots, "title", { result: h })
190
190
  ]),
191
191
  N("div", Zi, [
192
- zr(l.$slots, "content", { result: h })
192
+ xr(l.$slots, "content", { result: h })
193
193
  ])
194
194
  ], 42, Yi))), 128))
195
- ])) : n.value && !s.value.length ? ($(), q("div", ts, [
196
- zr(l.$slots, "empty", {}, () => [
197
- lr(' No results found for "' + At(n.value) + '" ', 1)
195
+ ])) : n.value && !s.value.length ? (M(), q("div", ts, [
196
+ xr(l.$slots, "empty", {}, () => [
197
+ fr(' No results found for "' + At(n.value) + '" ', 1)
198
198
  ])
199
- ])) : ne("", !0)
199
+ ])) : re("", !0)
200
200
  ])
201
- ])) : ne("", !0)
201
+ ])) : re("", !0)
202
202
  ]),
203
203
  _: 3
204
204
  })
205
205
  ]));
206
206
  }
207
207
  });
208
- const ee = typeof window < "u";
208
+ const te = typeof window < "u";
209
209
  let Ht;
210
- const fr = (t) => Ht = t;
210
+ const hr = (t) => Ht = t;
211
211
  process.env.NODE_ENV;
212
- const Yr = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
212
+ const Xr = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
213
213
  /* istanbul ignore next */
214
214
  /* @__PURE__ */ Symbol()
215
215
  );
216
- function Gt(t) {
216
+ function Jt(t) {
217
217
  return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
218
218
  }
219
219
  var ze;
@@ -226,32 +226,32 @@ function Co(t, e) {
226
226
  if (!(r in t))
227
227
  continue;
228
228
  const o = t[r];
229
- Gt(o) && Gt(n) && !se(n) && !wr(n) ? t[r] = Co(o, n) : t[r] = n;
229
+ Jt(o) && Jt(n) && !se(n) && !br(n) ? t[r] = Co(o, n) : t[r] = n;
230
230
  }
231
231
  return t;
232
232
  }
233
233
  const No = () => {
234
234
  };
235
- function Un(t, e, r, n = No) {
235
+ function Wn(t, e, r, n = No) {
236
236
  t.add(e);
237
237
  const o = () => {
238
238
  t.delete(e) && n();
239
239
  };
240
240
  return !r && Fe() && Be(o), o;
241
241
  }
242
- function te(t, ...e) {
242
+ function Zt(t, ...e) {
243
243
  t.forEach((r) => {
244
244
  r(...e);
245
245
  });
246
246
  }
247
- const es = (t) => t(), Wn = /* @__PURE__ */ Symbol(), Rr = /* @__PURE__ */ Symbol();
248
- function Xr(t, e) {
247
+ const es = (t) => t(), Fn = /* @__PURE__ */ Symbol(), Cr = /* @__PURE__ */ Symbol();
248
+ function Zr(t, e) {
249
249
  t instanceof Map && e instanceof Map ? e.forEach((r, n) => t.set(n, r)) : t instanceof Set && e instanceof Set && e.forEach(t.add, t);
250
250
  for (const r in e) {
251
251
  if (!e.hasOwnProperty(r))
252
252
  continue;
253
253
  const n = e[r], o = t[r];
254
- Gt(o) && Gt(n) && t.hasOwnProperty(r) && !se(n) && !wr(n) ? t[r] = Xr(o, n) : t[r] = n;
254
+ Jt(o) && Jt(n) && t.hasOwnProperty(r) && !se(n) && !br(n) ? t[r] = Zr(o, n) : t[r] = n;
255
255
  }
256
256
  return t;
257
257
  }
@@ -260,13 +260,13 @@ const rs = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia
260
260
  /* @__PURE__ */ Symbol()
261
261
  );
262
262
  function ns(t) {
263
- return !Gt(t) || !Object.prototype.hasOwnProperty.call(t, rs);
263
+ return !Jt(t) || !Object.prototype.hasOwnProperty.call(t, rs);
264
264
  }
265
265
  const { assign: St } = Object;
266
- function Fn(t) {
266
+ function Bn(t) {
267
267
  return !!(se(t) && t.effect);
268
268
  }
269
- function Bn(t, e, r, n) {
269
+ function Kn(t, e, r, n) {
270
270
  const { state: o, actions: i, getters: s } = e, a = r.state.value[t];
271
271
  let u;
272
272
  function c() {
@@ -276,43 +276,43 @@ function Bn(t, e, r, n) {
276
276
  Vn(A(o ? o() : {}).value)
277
277
  ) : Vn(r.state.value[t]);
278
278
  return St(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] = Oe(x(() => {
279
- fr(r);
280
- const v = r._s.get(t);
281
- return s[h].call(v, v);
279
+ hr(r);
280
+ const d = r._s.get(t);
281
+ return s[h].call(d, d);
282
282
  })), f), {}));
283
283
  }
284
- return u = Zr(t, c, e, r, n, !0), u;
284
+ return u = tn(t, c, e, r, n, !0), u;
285
285
  }
286
- function Zr(t, e, r = {}, n, o, i) {
286
+ function tn(t, e, r = {}, n, o, i) {
287
287
  let s;
288
288
  const a = St({ actions: {} }, r);
289
289
  if (process.env.NODE_ENV !== "production" && !n._e.active)
290
290
  throw new Error("Pinia destroyed");
291
291
  const u = { deep: !0 };
292
292
  process.env.NODE_ENV !== "production" && (u.onTrigger = (w) => {
293
- c ? v = w : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
293
+ c ? d = w : c == !1 && !E._hotUpdating && (Array.isArray(d) ? d.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
294
294
  });
295
- let c, l, f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), v;
296
- const y = n.state.value[t];
297
- !i && !y && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
295
+ let c, l, f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), d;
296
+ const _ = n.state.value[t];
297
+ !i && !_ && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
298
298
  const m = A({});
299
- let O;
299
+ let k;
300
300
  function D(w) {
301
301
  let b;
302
- c = l = !1, process.env.NODE_ENV !== "production" && (v = []), typeof w == "function" ? (w(n.state.value[t]), b = {
302
+ c = l = !1, process.env.NODE_ENV !== "production" && (d = []), typeof w == "function" ? (w(n.state.value[t]), b = {
303
303
  type: ze.patchFunction,
304
304
  storeId: t,
305
- events: v
306
- }) : (Xr(n.state.value[t], w), b = {
305
+ events: d
306
+ }) : (Zr(n.state.value[t], w), b = {
307
307
  type: ze.patchObject,
308
308
  payload: w,
309
309
  storeId: t,
310
- events: v
310
+ events: d
311
311
  });
312
- const z = O = /* @__PURE__ */ Symbol();
312
+ const z = k = /* @__PURE__ */ Symbol();
313
313
  ie().then(() => {
314
- O === z && (c = !0);
315
- }), l = !0, te(f, b, n.state.value[t]);
314
+ k === z && (c = !0);
315
+ }), l = !0, Zt(f, b, n.state.value[t]);
316
316
  }
317
317
  const rt = i ? function() {
318
318
  const { state: b } = r, z = b ? b() : {};
@@ -329,20 +329,20 @@ function Zr(t, e, r = {}, n, o, i) {
329
329
  s.stop(), f.clear(), h.clear(), n._s.delete(t);
330
330
  }
331
331
  const wt = (w, b = "") => {
332
- if (Wn in w)
333
- return w[Rr] = b, w;
332
+ if (Fn in w)
333
+ return w[Cr] = b, w;
334
334
  const z = function() {
335
- fr(n);
336
- const B = Array.from(arguments), k = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
335
+ hr(n);
336
+ const B = Array.from(arguments), O = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set();
337
337
  function U(K) {
338
- k.add(K);
338
+ O.add(K);
339
339
  }
340
340
  function Pt(K) {
341
- M.add(K);
341
+ j.add(K);
342
342
  }
343
- te(h, {
343
+ Zt(h, {
344
344
  args: B,
345
- name: z[Rr],
345
+ name: z[Cr],
346
346
  store: E,
347
347
  after: U,
348
348
  onError: Pt
@@ -351,11 +351,11 @@ function Zr(t, e, r = {}, n, o, i) {
351
351
  try {
352
352
  ht = w.apply(this && this.$id === t ? this : E, B);
353
353
  } catch (K) {
354
- throw te(M, K), K;
354
+ throw Zt(j, K), K;
355
355
  }
356
- return ht instanceof Promise ? ht.then((K) => (te(k, K), K)).catch((K) => (te(M, K), Promise.reject(K))) : (te(k, ht), ht);
356
+ return ht instanceof Promise ? ht.then((K) => (Zt(O, K), K)).catch((K) => (Zt(j, K), Promise.reject(K))) : (Zt(O, ht), ht);
357
357
  };
358
- return z[Wn] = !0, z[Rr] = b, z;
358
+ return z[Fn] = !0, z[Cr] = b, z;
359
359
  }, Q = /* @__PURE__ */ Oe({
360
360
  actions: {},
361
361
  getters: {},
@@ -365,21 +365,21 @@ function Zr(t, e, r = {}, n, o, i) {
365
365
  _p: n,
366
366
  // _s: scope,
367
367
  $id: t,
368
- $onAction: Un.bind(null, h),
368
+ $onAction: Wn.bind(null, h),
369
369
  $patch: D,
370
370
  $reset: rt,
371
371
  $subscribe(w, b = {}) {
372
- const z = Un(f, w, b.detached, () => B()), B = s.run(() => J(() => n.state.value[t], (k) => {
372
+ const z = Wn(f, w, b.detached, () => B()), B = s.run(() => J(() => n.state.value[t], (O) => {
373
373
  (b.flush === "sync" ? l : c) && w({
374
374
  storeId: t,
375
375
  type: ze.direct,
376
- events: v
377
- }, k);
376
+ events: d
377
+ }, O);
378
378
  }, St({}, u, b)));
379
379
  return z;
380
380
  },
381
381
  $dispose: at
382
- }, E = Do(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && ee ? St(
382
+ }, E = Ao(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te ? St(
383
383
  {
384
384
  _hmrPayload: Q,
385
385
  _customProperties: Oe(/* @__PURE__ */ new Set())
@@ -393,18 +393,18 @@ function Zr(t, e, r = {}, n, o, i) {
393
393
  const Y = (n._a && n._a.runWithContext || es)(() => n._e.run(() => (s = Ni()).run(() => e({ action: wt }))));
394
394
  for (const w in Y) {
395
395
  const b = Y[w];
396
- if (se(b) && !Fn(b) || wr(b))
397
- process.env.NODE_ENV !== "production" && o ? m.value[w] = Mt(Y, w) : i || (y && ns(b) && (se(b) ? b.value = y[w] : Xr(b, y[w])), n.state.value[t][w] = b), process.env.NODE_ENV !== "production" && Q.state.push(w);
396
+ if (se(b) && !Bn(b) || br(b))
397
+ process.env.NODE_ENV !== "production" && o ? m.value[w] = Mt(Y, w) : i || (_ && ns(b) && (se(b) ? b.value = _[w] : Zr(b, _[w])), n.state.value[t][w] = b), process.env.NODE_ENV !== "production" && Q.state.push(w);
398
398
  else if (typeof b == "function") {
399
399
  const z = process.env.NODE_ENV !== "production" && o ? b : wt(b, w);
400
400
  Y[w] = z, process.env.NODE_ENV !== "production" && (Q.actions[w] = b), a.actions[w] = b;
401
- } else process.env.NODE_ENV !== "production" && Fn(b) && (Q.getters[w] = i ? (
401
+ } else process.env.NODE_ENV !== "production" && Bn(b) && (Q.getters[w] = i ? (
402
402
  // @ts-expect-error
403
403
  r.getters[w]
404
- ) : b, ee && (Y._getters || // @ts-expect-error: same
404
+ ) : b, te && (Y._getters || // @ts-expect-error: same
405
405
  (Y._getters = Oe([]))).push(w));
406
406
  }
407
- if (St(E, Y), St(Oo(E), Y), Object.defineProperty(E, "$state", {
407
+ if (St(E, Y), St(ko(E), Y), Object.defineProperty(E, "$state", {
408
408
  get: () => process.env.NODE_ENV !== "production" && o ? m.value : n.state.value[t],
409
409
  set: (w) => {
410
410
  if (process.env.NODE_ENV !== "production" && o)
@@ -417,7 +417,7 @@ function Zr(t, e, r = {}, n, o, i) {
417
417
  E._hotUpdating = !0, w._hmrPayload.state.forEach((b) => {
418
418
  if (b in E.$state) {
419
419
  const z = w.$state[b], B = E.$state[b];
420
- typeof z == "object" && Gt(z) && Gt(B) ? Co(z, B) : w.$state[b] = B;
420
+ typeof z == "object" && Jt(z) && Jt(B) ? Co(z, B) : w.$state[b] = B;
421
421
  }
422
422
  E[b] = Mt(w.$state, b);
423
423
  }), Object.keys(E.$state).forEach((b) => {
@@ -433,7 +433,7 @@ function Zr(t, e, r = {}, n, o, i) {
433
433
  for (const b in w._hmrPayload.getters) {
434
434
  const z = w._hmrPayload.getters[b], B = i ? (
435
435
  // special handling of options api
436
- x(() => (fr(n), z.call(E, E)))
436
+ x(() => (hr(n), z.call(E, E)))
437
437
  ) : z;
438
438
  E[b] = //
439
439
  B;
@@ -443,7 +443,7 @@ function Zr(t, e, r = {}, n, o, i) {
443
443
  }), Object.keys(E._hmrPayload.actions).forEach((b) => {
444
444
  b in w._hmrPayload.actions || delete E[b];
445
445
  }), E._hmrPayload = w._hmrPayload, E._getters = w._getters, E._hotUpdating = !1;
446
- })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && ee) {
446
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te) {
447
447
  const w = {
448
448
  writable: !0,
449
449
  configurable: !0,
@@ -455,7 +455,7 @@ function Zr(t, e, r = {}, n, o, i) {
455
455
  });
456
456
  }
457
457
  return n._p.forEach((w) => {
458
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && ee) {
458
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te) {
459
459
  const b = s.run(() => w({
460
460
  store: E,
461
461
  app: n._a,
@@ -472,7 +472,7 @@ function Zr(t, e, r = {}, n, o, i) {
472
472
  })));
473
473
  }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
474
474
  state: () => new MyClass()
475
- Found in store "${E.$id}".`), y && i && r.hydrate && r.hydrate(E.$state, y), c = !0, l = !0, E;
475
+ Found in store "${E.$id}".`), _ && i && r.hydrate && r.hydrate(E.$state, _), c = !0, l = !0, E;
476
476
  }
477
477
  // @__NO_SIDE_EFFECTS__
478
478
  function os(t, e, r) {
@@ -480,21 +480,21 @@ function os(t, e, r) {
480
480
  const o = typeof e == "function";
481
481
  n = o ? r : e;
482
482
  function i(s, a) {
483
- const u = Gr();
483
+ const u = Qr();
484
484
  if (s = // in test mode, ignore the argument provided as we can always retrieve a
485
485
  // pinia instance with getActivePinia()
486
- (process.env.NODE_ENV === "test" && Ht && Ht._testing ? null : s) || (u ? $e(Yr, null) : null), s && fr(s), process.env.NODE_ENV !== "production" && !Ht)
486
+ (process.env.NODE_ENV === "test" && Ht && Ht._testing ? null : s) || (u ? $e(Xr, null) : null), s && hr(s), process.env.NODE_ENV !== "production" && !Ht)
487
487
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
488
488
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
489
489
  This will fail in production.`);
490
- s = Ht, s._s.has(t) || (o ? Zr(t, e, n, s) : Bn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
490
+ s = Ht, s._s.has(t) || (o ? tn(t, e, n, s) : Kn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
491
491
  const c = s._s.get(t);
492
492
  if (process.env.NODE_ENV !== "production" && a) {
493
- const l = "__hot:" + t, f = o ? Zr(l, e, n, s, !0) : Bn(l, St({}, n), s, !0);
493
+ const l = "__hot:" + t, f = o ? tn(l, e, n, s, !0) : Kn(l, St({}, n), s, !0);
494
494
  a._hotUpdate(f), delete s.state.value[l], s._s.delete(l);
495
495
  }
496
- if (process.env.NODE_ENV !== "production" && ee) {
497
- const l = ko();
496
+ if (process.env.NODE_ENV !== "production" && te) {
497
+ const l = Do();
498
498
  if (l && l.proxy && // avoid adding stores that are just built for hot module replacement
499
499
  !a) {
500
500
  const f = l.proxy, h = "_pStores" in f ? f._pStores : f._pStores = {};
@@ -506,7 +506,7 @@ This will fail in production.`);
506
506
  return i.$id = t, i;
507
507
  }
508
508
  function is(t) {
509
- const e = Oo(t), r = {};
509
+ const e = ko(t), r = {};
510
510
  for (const n in e) {
511
511
  const o = e[n];
512
512
  o.effect ? r[n] = // ...
@@ -515,7 +515,7 @@ function is(t) {
515
515
  set(i) {
516
516
  t[n] = i;
517
517
  }
518
- }) : (se(o) || wr(o)) && (r[n] = // ---
518
+ }) : (se(o) || br(o)) && (r[n] = // ---
519
519
  Mt(t, n));
520
520
  }
521
521
  return r;
@@ -535,27 +535,27 @@ function us(...t) {
535
535
  set: as
536
536
  }))) : A(e);
537
537
  }
538
- function Cr(t) {
538
+ function Nr(t) {
539
539
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
540
540
  }
541
- const Nr = /* @__PURE__ */ new WeakMap();
541
+ const Mr = /* @__PURE__ */ new WeakMap();
542
542
  function cs(t, e = !1) {
543
543
  const r = Tt(e);
544
544
  let n = "";
545
545
  J(us(t), (s) => {
546
- const a = Cr(X(s));
546
+ const a = Nr(X(s));
547
547
  if (a) {
548
548
  const u = a;
549
- if (Nr.get(u) || Nr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
549
+ if (Mr.get(u) || Mr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
550
550
  if (r.value) return u.style.overflow = "hidden";
551
551
  }
552
552
  }, { immediate: !0 });
553
553
  const o = () => {
554
- const s = Cr(X(t));
554
+ const s = Nr(X(t));
555
555
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
556
556
  }, i = () => {
557
- const s = Cr(X(t));
558
- !s || !r.value || (s.style.overflow = n, Nr.delete(s), r.value = !1);
557
+ const s = Nr(X(t));
558
+ !s || !r.value || (s.style.overflow = n, Mr.delete(s), r.value = !1);
559
559
  };
560
560
  return ss(i), x({
561
561
  get() {
@@ -591,27 +591,27 @@ function ps(...t) {
591
591
  set: hs
592
592
  }))) : A(e);
593
593
  }
594
- function Mr(t) {
594
+ function jr(t) {
595
595
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
596
596
  }
597
- const jr = /* @__PURE__ */ new WeakMap();
597
+ const $r = /* @__PURE__ */ new WeakMap();
598
598
  function ds(t, e = !1) {
599
599
  const r = Tt(e);
600
600
  let n = "";
601
601
  J(ps(t), (s) => {
602
- const a = Mr(X(s));
602
+ const a = jr(X(s));
603
603
  if (a) {
604
604
  const u = a;
605
- if (jr.get(u) || jr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
605
+ if ($r.get(u) || $r.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
606
606
  if (r.value) return u.style.overflow = "hidden";
607
607
  }
608
608
  }, { immediate: !0 });
609
609
  const o = () => {
610
- const s = Mr(X(t));
610
+ const s = jr(X(t));
611
611
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
612
612
  }, i = () => {
613
- const s = Mr(X(t));
614
- !s || !r.value || (s.style.overflow = n, jr.delete(s), r.value = !1);
613
+ const s = jr(X(t));
614
+ !s || !r.value || (s.style.overflow = n, $r.delete(s), r.value = !1);
615
615
  };
616
616
  return fs(i), x({
617
617
  get() {
@@ -634,7 +634,7 @@ function vs() {
634
634
  }
635
635
  vs();
636
636
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
637
- function hr(t) {
637
+ function pr(t) {
638
638
  return t.cardinality === "many";
639
639
  }
640
640
  const ys = typeof window < "u" && typeof document < "u";
@@ -680,11 +680,11 @@ function Ss(t = Mo, e = {}) {
680
680
  eventFilter: s
681
681
  };
682
682
  }
683
- function $r(t) {
683
+ function Tr(t) {
684
684
  return Array.isArray(t) ? t : [t];
685
685
  }
686
686
  function Is(t) {
687
- return ko();
687
+ return Do();
688
688
  }
689
689
  function Es(t, e, r = {}) {
690
690
  const { eventFilter: n = Mo, ...o } = r;
@@ -703,7 +703,7 @@ function Os(t, e, r = {}) {
703
703
  };
704
704
  }
705
705
  function ks(t, e = !0, r) {
706
- Is() ? mr(t, r) : e ? t() : ie(t);
706
+ Is() ? wr(t, r) : e ? t() : ie(t);
707
707
  }
708
708
  function Ds(t, e, r) {
709
709
  return J(t, e, {
@@ -711,28 +711,28 @@ function Ds(t, e, r) {
711
711
  immediate: !0
712
712
  });
713
713
  }
714
- const pr = ys ? window : void 0;
714
+ const dr = ys ? window : void 0;
715
715
  function As(t) {
716
716
  var e;
717
717
  const r = X(t);
718
718
  return (e = r?.$el) !== null && e !== void 0 ? e : r;
719
719
  }
720
- function Kn(...t) {
720
+ function Hn(...t) {
721
721
  const e = (n, o, i, s) => (n.addEventListener(o, i, s), () => n.removeEventListener(o, i, s)), r = x(() => {
722
- const n = $r(X(t[0])).filter((o) => o != null);
722
+ const n = Tr(X(t[0])).filter((o) => o != null);
723
723
  return n.every((o) => typeof o != "string") ? n : void 0;
724
724
  });
725
725
  return Ds(() => {
726
726
  var n, o;
727
727
  return [
728
- (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => As(i))) !== null && n !== void 0 ? n : [pr].filter((i) => i != null),
729
- $r(X(r.value ? t[1] : t[0])),
730
- $r(sr(r.value ? t[2] : t[1])),
728
+ (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => As(i))) !== null && n !== void 0 ? n : [dr].filter((i) => i != null),
729
+ Tr(X(r.value ? t[1] : t[0])),
730
+ Tr(sr(r.value ? t[2] : t[1])),
731
731
  X(r.value ? t[3] : t[2])
732
732
  ];
733
733
  }, ([n, o, i, s], a, u) => {
734
734
  if (!n?.length || !o?.length || !i?.length) return;
735
- const c = gs(s) ? { ...s } : s, l = n.flatMap((f) => o.flatMap((h) => i.map((v) => e(f, h, v, c))));
735
+ const c = gs(s) ? { ...s } : s, l = n.flatMap((f) => o.flatMap((h) => i.map((d) => e(f, h, d, c))));
736
736
  u(() => {
737
737
  l.forEach((f) => f());
738
738
  });
@@ -781,98 +781,98 @@ const Ns = {
781
781
  read: (t) => new Date(t),
782
782
  write: (t) => t.toISOString()
783
783
  }
784
- }, Hn = "vueuse-storage";
784
+ }, Jn = "vueuse-storage";
785
785
  function Ms(t, e, r, n = {}) {
786
786
  var o;
787
- const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = pr, eventFilter: h, onError: v = (k) => {
788
- console.error(k);
789
- }, initOnMounted: y } = n, m = (l ? Tt : A)(e), O = x(() => X(t));
787
+ const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = dr, eventFilter: h, onError: d = (O) => {
788
+ console.error(O);
789
+ }, initOnMounted: _ } = n, m = (l ? Tt : A)(e), k = x(() => X(t));
790
790
  if (!r) try {
791
- r = Rs("getDefaultStorage", () => pr?.localStorage)();
792
- } catch (k) {
793
- v(k);
791
+ r = Rs("getDefaultStorage", () => dr?.localStorage)();
792
+ } catch (O) {
793
+ d(O);
794
794
  }
795
795
  if (!r) return m;
796
- const D = X(e), rt = Cs(D), at = (o = n.serializer) !== null && o !== void 0 ? o : Ns[rt], { pause: wt, resume: Q } = Os(m, (k) => w(k), {
796
+ const D = X(e), rt = Cs(D), at = (o = n.serializer) !== null && o !== void 0 ? o : Ns[rt], { pause: wt, resume: Q } = Os(m, (O) => w(O), {
797
797
  flush: i,
798
798
  deep: s,
799
799
  eventFilter: h
800
800
  });
801
- J(O, () => z(), { flush: i });
801
+ J(k, () => z(), { flush: i });
802
802
  let bt = !1;
803
- const E = (k) => {
804
- y && !bt || z(k);
805
- }, Nt = (k) => {
806
- y && !bt || B(k);
803
+ const E = (O) => {
804
+ _ && !bt || z(O);
805
+ }, Nt = (O) => {
806
+ _ && !bt || B(O);
807
807
  };
808
- f && a && (r instanceof Storage ? Kn(f, "storage", E, { passive: !0 }) : Kn(f, Hn, Nt)), y ? ks(() => {
808
+ f && a && (r instanceof Storage ? Hn(f, "storage", E, { passive: !0 }) : Hn(f, Jn, Nt)), _ ? ks(() => {
809
809
  bt = !0, z();
810
810
  }) : z();
811
- function Y(k, M) {
811
+ function Y(O, j) {
812
812
  if (f) {
813
813
  const U = {
814
- key: O.value,
815
- oldValue: k,
816
- newValue: M,
814
+ key: k.value,
815
+ oldValue: O,
816
+ newValue: j,
817
817
  storageArea: r
818
818
  };
819
- f.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", U) : new CustomEvent(Hn, { detail: U }));
819
+ f.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", U) : new CustomEvent(Jn, { detail: U }));
820
820
  }
821
821
  }
822
- function w(k) {
822
+ function w(O) {
823
823
  try {
824
- const M = r.getItem(O.value);
825
- if (k == null)
826
- Y(M, null), r.removeItem(O.value);
824
+ const j = r.getItem(k.value);
825
+ if (O == null)
826
+ Y(j, null), r.removeItem(k.value);
827
827
  else {
828
- const U = at.write(k);
829
- M !== U && (r.setItem(O.value, U), Y(M, U));
828
+ const U = at.write(O);
829
+ j !== U && (r.setItem(k.value, U), Y(j, U));
830
830
  }
831
- } catch (M) {
832
- v(M);
831
+ } catch (j) {
832
+ d(j);
833
833
  }
834
834
  }
835
- function b(k) {
836
- const M = k ? k.newValue : r.getItem(O.value);
837
- if (M == null)
838
- return u && D != null && r.setItem(O.value, at.write(D)), D;
839
- if (!k && c) {
840
- const U = at.read(M);
835
+ function b(O) {
836
+ const j = O ? O.newValue : r.getItem(k.value);
837
+ if (j == null)
838
+ return u && D != null && r.setItem(k.value, at.write(D)), D;
839
+ if (!O && c) {
840
+ const U = at.read(j);
841
841
  return typeof c == "function" ? c(U, D) : rt === "object" && !Array.isArray(U) ? {
842
842
  ...D,
843
843
  ...U
844
844
  } : U;
845
- } else return typeof M != "string" ? M : at.read(M);
845
+ } else return typeof j != "string" ? j : at.read(j);
846
846
  }
847
- function z(k) {
848
- if (!(k && k.storageArea !== r)) {
849
- if (k && k.key == null) {
847
+ function z(O) {
848
+ if (!(O && O.storageArea !== r)) {
849
+ if (O && O.key == null) {
850
850
  m.value = D;
851
851
  return;
852
852
  }
853
- if (!(k && k.key !== O.value)) {
853
+ if (!(O && O.key !== k.value)) {
854
854
  wt();
855
855
  try {
856
- const M = at.write(m.value);
857
- (k === void 0 || k?.newValue !== M) && (m.value = b(k));
858
- } catch (M) {
859
- v(M);
856
+ const j = at.write(m.value);
857
+ (O === void 0 || O?.newValue !== j) && (m.value = b(O));
858
+ } catch (j) {
859
+ d(j);
860
860
  } finally {
861
- k ? ie(Q) : Q();
861
+ O ? ie(Q) : Q();
862
862
  }
863
863
  }
864
864
  }
865
865
  }
866
- function B(k) {
867
- z(k.detail);
866
+ function B(O) {
867
+ z(O.detail);
868
868
  }
869
869
  return m;
870
870
  }
871
871
  function js(t, e, r = {}) {
872
- const { window: n = pr } = r;
872
+ const { window: n = dr } = r;
873
873
  return Ms(t, e, n?.localStorage, r);
874
874
  }
875
- function Tr() {
875
+ function Pr() {
876
876
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
877
877
  }
878
878
  function er(t) {
@@ -910,9 +910,9 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
910
910
  autoSyncInterval: 3e4,
911
911
  enablePersistence: !1,
912
912
  persistenceKeyPrefix: "stonecrop-ops"
913
- }), e = A([]), r = A(-1), n = A(Tr()), o = A(!1), i = A([]), s = A(null), a = x(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), u = x(() => r.value < e.value.length - 1), c = x(() => {
913
+ }), e = A([]), r = A(-1), n = A(Pr()), o = A(!1), i = A([]), s = A(null), a = x(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), u = x(() => r.value < e.value.length - 1), c = x(() => {
914
914
  let S = 0;
915
- for (let _ = r.value; _ >= 0 && e.value[_]?.reversible; _--)
915
+ for (let y = r.value; y >= 0 && e.value[y]?.reversible; y--)
916
916
  S++;
917
917
  return S;
918
918
  }), l = x(() => e.value.length - 1 - r.value), f = x(() => ({
@@ -925,12 +925,12 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
925
925
  function h(S) {
926
926
  t.value = { ...t.value, ...S }, t.value.enablePersistence && (Pt(), K()), t.value.enableCrossTabSync && b();
927
927
  }
928
- function v(S, _ = "user") {
928
+ function d(S, y = "user") {
929
929
  const g = {
930
930
  ...S,
931
- id: Tr(),
931
+ id: Pr(),
932
932
  timestamp: /* @__PURE__ */ new Date(),
933
- source: _,
933
+ source: y,
934
934
  userId: t.value.userId
935
935
  };
936
936
  if (t.value.operationFilter && !t.value.operationFilter(g))
@@ -943,14 +943,14 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
943
943
  }
944
944
  return t.value.enableCrossTabSync && z(g), g.id;
945
945
  }
946
- function y() {
947
- o.value = !0, i.value = [], s.value = Tr();
946
+ function _() {
947
+ o.value = !0, i.value = [], s.value = Pr();
948
948
  }
949
949
  function m(S) {
950
950
  if (!o.value || i.value.length === 0)
951
951
  return o.value = !1, i.value = [], s.value = null, null;
952
- const _ = s.value, g = i.value.every((I) => I.reversible), p = {
953
- id: _,
952
+ const y = s.value, g = i.value.every((I) => I.reversible), p = {
953
+ id: y,
954
954
  type: "batch",
955
955
  path: "",
956
956
  // Batch doesn't have a single path
@@ -966,77 +966,77 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
966
966
  metadata: { description: S }
967
967
  };
968
968
  i.value.forEach((I) => {
969
- I.parentOperationId = _;
969
+ I.parentOperationId = y;
970
970
  }), e.value.push(...i.value, p), r.value = e.value.length - 1, t.value.enableCrossTabSync && B(i.value, p);
971
- const d = _;
972
- return o.value = !1, i.value = [], s.value = null, d;
971
+ const v = y;
972
+ return o.value = !1, i.value = [], s.value = null, v;
973
973
  }
974
- function O() {
974
+ function k() {
975
975
  o.value = !1, i.value = [], s.value = null;
976
976
  }
977
977
  function D(S) {
978
978
  if (!a.value) return !1;
979
- const _ = e.value[r.value];
980
- if (!_.reversible)
981
- return typeof console < "u" && _.irreversibleReason && console.warn("Cannot undo irreversible operation:", _.irreversibleReason), !1;
979
+ const y = e.value[r.value];
980
+ if (!y.reversible)
981
+ return typeof console < "u" && y.irreversibleReason && console.warn("Cannot undo irreversible operation:", y.irreversibleReason), !1;
982
982
  try {
983
- if (_.type === "batch" && _.childOperationIds)
984
- for (let g = _.childOperationIds.length - 1; g >= 0; g--) {
985
- const p = _.childOperationIds[g], d = e.value.find((I) => I.id === p);
986
- d && at(d, S);
983
+ if (y.type === "batch" && y.childOperationIds)
984
+ for (let g = y.childOperationIds.length - 1; g >= 0; g--) {
985
+ const p = y.childOperationIds[g], v = e.value.find((I) => I.id === p);
986
+ v && at(v, S);
987
987
  }
988
988
  else
989
- at(_, S);
990
- return r.value--, t.value.enableCrossTabSync && k(_), !0;
989
+ at(y, S);
990
+ return r.value--, t.value.enableCrossTabSync && O(y), !0;
991
991
  } catch (g) {
992
992
  return typeof console < "u" && console.error("Undo failed:", g), !1;
993
993
  }
994
994
  }
995
995
  function rt(S) {
996
996
  if (!u.value) return !1;
997
- const _ = e.value[r.value + 1];
997
+ const y = e.value[r.value + 1];
998
998
  try {
999
- if (_.type === "batch" && _.childOperationIds)
1000
- for (const g of _.childOperationIds) {
1001
- const p = e.value.find((d) => d.id === g);
999
+ if (y.type === "batch" && y.childOperationIds)
1000
+ for (const g of y.childOperationIds) {
1001
+ const p = e.value.find((v) => v.id === g);
1002
1002
  p && wt(p, S);
1003
1003
  }
1004
1004
  else
1005
- wt(_, S);
1006
- return r.value++, t.value.enableCrossTabSync && M(_), !0;
1005
+ wt(y, S);
1006
+ return r.value++, t.value.enableCrossTabSync && j(y), !0;
1007
1007
  } catch (g) {
1008
1008
  return typeof console < "u" && console.error("Redo failed:", g), !1;
1009
1009
  }
1010
1010
  }
1011
- function at(S, _) {
1012
- (S.type === "set" || S.type === "delete") && _ && typeof _.set == "function" && _.set(S.path, S.beforeValue, "undo");
1011
+ function at(S, y) {
1012
+ (S.type === "set" || S.type === "delete") && y && typeof y.set == "function" && y.set(S.path, S.beforeValue, "undo");
1013
1013
  }
1014
- function wt(S, _) {
1015
- (S.type === "set" || S.type === "delete") && _ && typeof _.set == "function" && _.set(S.path, S.afterValue, "redo");
1014
+ function wt(S, y) {
1015
+ (S.type === "set" || S.type === "delete") && y && typeof y.set == "function" && y.set(S.path, S.afterValue, "redo");
1016
1016
  }
1017
1017
  function Q() {
1018
- const S = e.value.filter((g) => g.reversible).length, _ = e.value.map((g) => g.timestamp);
1018
+ const S = e.value.filter((g) => g.reversible).length, y = e.value.map((g) => g.timestamp);
1019
1019
  return {
1020
1020
  operations: [...e.value],
1021
1021
  currentIndex: r.value,
1022
1022
  totalOperations: e.value.length,
1023
1023
  reversibleOperations: S,
1024
1024
  irreversibleOperations: e.value.length - S,
1025
- oldestOperation: _.length > 0 ? new Date(Math.min(..._.map((g) => g.getTime()))) : void 0,
1026
- newestOperation: _.length > 0 ? new Date(Math.max(..._.map((g) => g.getTime()))) : void 0
1025
+ oldestOperation: y.length > 0 ? new Date(Math.min(...y.map((g) => g.getTime()))) : void 0,
1026
+ newestOperation: y.length > 0 ? new Date(Math.max(...y.map((g) => g.getTime()))) : void 0
1027
1027
  };
1028
1028
  }
1029
1029
  function bt() {
1030
1030
  e.value = [], r.value = -1;
1031
1031
  }
1032
- function E(S, _) {
1033
- return e.value.filter((g) => g.doctype === S && (_ === void 0 || g.recordId === _));
1032
+ function E(S, y) {
1033
+ return e.value.filter((g) => g.doctype === S && (y === void 0 || g.recordId === y));
1034
1034
  }
1035
- function Nt(S, _) {
1035
+ function Nt(S, y) {
1036
1036
  const g = e.value.find((p) => p.id === S);
1037
- g && (g.reversible = !1, g.irreversibleReason = _);
1037
+ g && (g.reversible = !1, g.irreversibleReason = y);
1038
1038
  }
1039
- function Y(S, _, g, p = "success", d) {
1039
+ function Y(S, y, g, p = "success", v) {
1040
1040
  const I = {
1041
1041
  type: "action",
1042
1042
  path: g && g.length > 0 ? `${S}.${g[0]}` : S,
@@ -1047,61 +1047,61 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
1047
1047
  recordId: g && g.length > 0 ? g[0] : void 0,
1048
1048
  reversible: !1,
1049
1049
  // Actions are typically not reversible
1050
- actionName: _,
1050
+ actionName: y,
1051
1051
  actionRecordIds: g,
1052
1052
  actionResult: p,
1053
- actionError: d
1053
+ actionError: v
1054
1054
  };
1055
- return v(I);
1055
+ return d(I);
1056
1056
  }
1057
1057
  let w = null;
1058
1058
  function b() {
1059
1059
  typeof window > "u" || !window.BroadcastChannel || (w = new BroadcastChannel("stonecrop-operation-log"), w.addEventListener("message", (S) => {
1060
- const _ = S.data;
1061
- if (!_ || typeof _ != "object") return;
1062
- const g = $s(_);
1060
+ const y = S.data;
1061
+ if (!y || typeof y != "object") return;
1062
+ const g = $s(y);
1063
1063
  g.clientId !== n.value && (g.type === "operation" && g.operation ? (e.value.push({ ...g.operation, source: "sync" }), r.value = e.value.length - 1) : g.type === "operation" && g.operations && (e.value.push(...g.operations.map((p) => ({ ...p, source: "sync" }))), r.value = e.value.length - 1));
1064
1064
  }));
1065
1065
  }
1066
1066
  function z(S) {
1067
1067
  if (!w) return;
1068
- const _ = {
1068
+ const y = {
1069
1069
  type: "operation",
1070
1070
  operation: S,
1071
1071
  clientId: n.value,
1072
1072
  timestamp: /* @__PURE__ */ new Date()
1073
1073
  };
1074
- w.postMessage(er(_));
1074
+ w.postMessage(er(y));
1075
1075
  }
1076
- function B(S, _) {
1076
+ function B(S, y) {
1077
1077
  if (!w) return;
1078
1078
  const g = {
1079
1079
  type: "operation",
1080
- operations: [...S, _],
1080
+ operations: [...S, y],
1081
1081
  clientId: n.value,
1082
1082
  timestamp: /* @__PURE__ */ new Date()
1083
1083
  };
1084
1084
  w.postMessage(er(g));
1085
1085
  }
1086
- function k(S) {
1086
+ function O(S) {
1087
1087
  if (!w) return;
1088
- const _ = {
1088
+ const y = {
1089
1089
  type: "undo",
1090
1090
  operation: S,
1091
1091
  clientId: n.value,
1092
1092
  timestamp: /* @__PURE__ */ new Date()
1093
1093
  };
1094
- w.postMessage(er(_));
1094
+ w.postMessage(er(y));
1095
1095
  }
1096
- function M(S) {
1096
+ function j(S) {
1097
1097
  if (!w) return;
1098
- const _ = {
1098
+ const y = {
1099
1099
  type: "redo",
1100
1100
  operation: S,
1101
1101
  clientId: n.value,
1102
1102
  timestamp: /* @__PURE__ */ new Date()
1103
1103
  };
1104
- w.postMessage(er(_));
1104
+ w.postMessage(er(y));
1105
1105
  }
1106
1106
  const U = js("stonecrop-ops-operations", null, {
1107
1107
  serializer: {
@@ -1119,9 +1119,9 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
1119
1119
  if (!(typeof window > "u"))
1120
1120
  try {
1121
1121
  const S = U.value;
1122
- S && Array.isArray(S.operations) && (e.value = S.operations.map((_) => ({
1123
- ..._,
1124
- timestamp: new Date(_.timestamp)
1122
+ S && Array.isArray(S.operations) && (e.value = S.operations.map((y) => ({
1123
+ ...y,
1124
+ timestamp: new Date(y.timestamp)
1125
1125
  })), r.value = S.currentIndex ?? -1);
1126
1126
  } catch (S) {
1127
1127
  typeof console < "u" && console.error("Failed to load operations from persistence:", S);
@@ -1164,10 +1164,10 @@ const jo = /* @__PURE__ */ os("hst-operation-log", () => {
1164
1164
  redoCount: l,
1165
1165
  // Methods
1166
1166
  configure: h,
1167
- addOperation: v,
1168
- startBatch: y,
1167
+ addOperation: d,
1168
+ startBatch: _,
1169
1169
  commitBatch: m,
1170
- cancelBatch: O,
1170
+ cancelBatch: k,
1171
1171
  undo: D,
1172
1172
  redo: rt,
1173
1173
  clear: bt,
@@ -1295,15 +1295,15 @@ class xe {
1295
1295
  h && e.store && (l = this.captureSnapshot(e));
1296
1296
  for (const m of i)
1297
1297
  try {
1298
- const O = await this.executeAction(m, e, r.timeout);
1299
- if (a.push(O), !O.success) {
1298
+ const k = await this.executeAction(m, e, r.timeout);
1299
+ if (a.push(k), !k.success) {
1300
1300
  u = !0;
1301
1301
  break;
1302
1302
  }
1303
- } catch (O) {
1303
+ } catch (k) {
1304
1304
  const D = {
1305
1305
  success: !1,
1306
- error: O instanceof Error ? O : new Error(String(O)),
1306
+ error: k instanceof Error ? k : new Error(String(k)),
1307
1307
  executionTime: 0,
1308
1308
  action: m
1309
1309
  };
@@ -1316,18 +1316,18 @@ class xe {
1316
1316
  } catch (m) {
1317
1317
  console.error("[FieldTriggers] Rollback failed:", m);
1318
1318
  }
1319
- const v = performance.now() - s, y = a.filter((m) => !m.success);
1320
- if (y.length > 0 && this.options.errorHandler)
1321
- for (const m of y)
1319
+ const d = performance.now() - s, _ = a.filter((m) => !m.success);
1320
+ if (_.length > 0 && this.options.errorHandler)
1321
+ for (const m of _)
1322
1322
  try {
1323
1323
  this.options.errorHandler(m.error, e, m.action);
1324
- } catch (O) {
1325
- console.error("[FieldTriggers] Error in global error handler:", O);
1324
+ } catch (k) {
1325
+ console.error("[FieldTriggers] Error in global error handler:", k);
1326
1326
  }
1327
1327
  return {
1328
1328
  path: e.path,
1329
1329
  actionResults: a,
1330
- totalExecutionTime: v,
1330
+ totalExecutionTime: d,
1331
1331
  allSucceeded: a.every((m) => m.success),
1332
1332
  stoppedOnError: u,
1333
1333
  rolledBack: c,
@@ -1513,24 +1513,24 @@ class xe {
1513
1513
  }
1514
1514
  }
1515
1515
  }
1516
- function Jn(t) {
1516
+ function Gn(t) {
1517
1517
  return new xe(t);
1518
1518
  }
1519
- function Gn() {
1519
+ function Qn() {
1520
1520
  try {
1521
1521
  return jo();
1522
1522
  } catch {
1523
1523
  return null;
1524
1524
  }
1525
1525
  }
1526
- class re {
1526
+ class ee {
1527
1527
  static instance;
1528
1528
  /**
1529
1529
  * Gets the singleton instance of HST
1530
1530
  * @returns The HST singleton instance
1531
1531
  */
1532
1532
  static getInstance() {
1533
- return re.instance || (re.instance = new re()), re.instance;
1533
+ return ee.instance || (ee.instance = new ee()), ee.instance;
1534
1534
  }
1535
1535
  /**
1536
1536
  * Gets the global registry instance
@@ -1564,7 +1564,7 @@ class re {
1564
1564
  return r.registry[e];
1565
1565
  }
1566
1566
  }
1567
- class dr {
1567
+ class vr {
1568
1568
  target;
1569
1569
  parentPath;
1570
1570
  rootNode;
@@ -1572,7 +1572,7 @@ class dr {
1572
1572
  parentDoctype;
1573
1573
  hst;
1574
1574
  constructor(e, r, n = "", o = null, i) {
1575
- return this.target = e, this.parentPath = n, this.rootNode = o || this, this.doctype = r, this.parentDoctype = i, this.hst = re.getInstance(), new Proxy(this, {
1575
+ return this.target = e, this.parentPath = n, this.rootNode = o || this, this.doctype = r, this.parentDoctype = i, this.hst = ee.getInstance(), new Proxy(this, {
1576
1576
  get(s, a) {
1577
1577
  if (a in s) return s[a];
1578
1578
  const u = String(a);
@@ -1591,12 +1591,12 @@ class dr {
1591
1591
  getNode(e) {
1592
1592
  const r = this.resolvePath(e), n = this.resolveValue(e), o = r.split(".");
1593
1593
  let i = this.doctype;
1594
- return this.doctype === "StonecropStore" && o.length >= 1 && (i = o[0]), typeof n == "object" && n !== null && !this.isPrimitive(n) ? new dr(n, i, r, this.rootNode, this.parentDoctype) : new dr(n, i, r, this.rootNode, this.parentDoctype);
1594
+ return this.doctype === "StonecropStore" && o.length >= 1 && (i = o[0]), typeof n == "object" && n !== null && !this.isPrimitive(n) ? new vr(n, i, r, this.rootNode, this.parentDoctype) : new vr(n, i, r, this.rootNode, this.parentDoctype);
1595
1595
  }
1596
1596
  set(e, r, n = "user") {
1597
1597
  const o = this.resolvePath(e), i = this.has(e) ? this.get(e) : void 0;
1598
1598
  if (n !== "undo" && n !== "redo") {
1599
- const s = Gn();
1599
+ const s = Qn();
1600
1600
  if (s && typeof s.addOperation == "function") {
1601
1601
  const a = o.split("."), u = this.doctype === "StonecropStore" && a.length >= 1 ? a[0] : this.doctype, c = a.length >= 2 ? a[1] : void 0, l = a.slice(2).join(".") || a[a.length - 1], f = r === void 0 && i !== void 0 ? "delete" : "set";
1602
1602
  s.addOperation(
@@ -1658,7 +1658,7 @@ class dr {
1658
1658
  * Trigger an XState transition with optional context data
1659
1659
  */
1660
1660
  async triggerTransition(e, r) {
1661
- const n = Jn(), o = this.parentPath.split(".");
1661
+ const n = Gn(), o = this.parentPath.split(".");
1662
1662
  let i = this.doctype, s;
1663
1663
  this.doctype === "StonecropStore" && o.length >= 1 && (i = o[0]), o.length >= 2 && (s = o[1]);
1664
1664
  const a = {
@@ -1676,7 +1676,7 @@ class dr {
1676
1676
  currentState: r?.currentState,
1677
1677
  targetState: r?.targetState,
1678
1678
  fsmContext: r?.fsmContext
1679
- }, u = Gn();
1679
+ }, u = Qn();
1680
1680
  return u && typeof u.addOperation == "function" && u.addOperation(
1681
1681
  {
1682
1682
  type: "transition",
@@ -1743,7 +1743,7 @@ class dr {
1743
1743
  const o = e.split(".");
1744
1744
  if (o.length < 3)
1745
1745
  return;
1746
- const i = Jn(), s = o.slice(2).join(".") || o[o.length - 1];
1746
+ const i = Gn(), s = o.slice(2).join(".") || o[o.length - 1];
1747
1747
  let a = this.doctype;
1748
1748
  this.doctype === "StonecropStore" && o.length >= 1 && (a = o[0]);
1749
1749
  let u;
@@ -1801,7 +1801,7 @@ class dr {
1801
1801
  }
1802
1802
  }
1803
1803
  function Ts(t, e, r) {
1804
- return new dr(t, e, "", null, r);
1804
+ return new vr(t, e, "", null, r);
1805
1805
  }
1806
1806
  class Re {
1807
1807
  /**
@@ -1865,7 +1865,7 @@ class Re {
1865
1865
  const e = {};
1866
1866
  Object.keys(this.registry.registry).forEach((r) => {
1867
1867
  e[r] = {};
1868
- }), this.hstStore = Ts(Do(e), "StonecropStore");
1868
+ }), this.hstStore = Ts(Ao(e), "StonecropStore");
1869
1869
  }
1870
1870
  /**
1871
1871
  * Setup automatic sync with Registry when doctypes are added
@@ -2064,14 +2064,14 @@ class Re {
2064
2064
  */
2065
2065
  collectRecordPayload(e, r) {
2066
2066
  const n = `${e.slug}.${r}`, o = { ...this.hstStore.get(n) || {} }, i = e.schema ? Array.isArray(e.schema) ? e.schema : Array.from(e.schema) : [], s = this.registry.resolveSchema(i), a = s.filter(
2067
- (c) => "fieldtype" in c && c.fieldtype === "Doctype" && !hr(c) && "schema" in c && Array.isArray(c.schema)
2067
+ (c) => "fieldtype" in c && c.fieldtype === "Doctype" && !pr(c) && "schema" in c && Array.isArray(c.schema)
2068
2068
  );
2069
2069
  for (const c of a) {
2070
2070
  const l = c, f = `${n}.${l.fieldname}`, h = $o(l.schema, f, this.hstStore);
2071
2071
  o[l.fieldname] = h;
2072
2072
  }
2073
2073
  const u = s.filter(
2074
- (c) => "fieldtype" in c && c.fieldtype === "Doctype" && hr(c)
2074
+ (c) => "fieldtype" in c && c.fieldtype === "Doctype" && pr(c)
2075
2075
  );
2076
2076
  for (const c of u) {
2077
2077
  const l = c, f = `${n}.${l.fieldname}`, h = this.hstStore.get(f);
@@ -2097,14 +2097,14 @@ class Re {
2097
2097
  }
2098
2098
  function $o(t, e, r) {
2099
2099
  const n = { ...r.get(e) || {} }, o = t.filter(
2100
- (s) => "fieldtype" in s && s.fieldtype === "Doctype" && !hr(s) && "schema" in s && Array.isArray(s.schema)
2100
+ (s) => "fieldtype" in s && s.fieldtype === "Doctype" && !pr(s) && "schema" in s && Array.isArray(s.schema)
2101
2101
  );
2102
2102
  for (const s of o) {
2103
2103
  const a = s, u = `${e}.${a.fieldname}`, c = $o(a.schema, u, r);
2104
2104
  n[a.fieldname] = c;
2105
2105
  }
2106
2106
  const i = t.filter(
2107
- (s) => "fieldtype" in s && s.fieldtype === "Doctype" && hr(s)
2107
+ (s) => "fieldtype" in s && s.fieldtype === "Doctype" && pr(s)
2108
2108
  );
2109
2109
  for (const s of i) {
2110
2110
  const a = s, u = `${e}.${a.fieldname}`, c = r.get(u);
@@ -2116,7 +2116,7 @@ function Ps(t) {
2116
2116
  t || (t = {});
2117
2117
  const e = t.registry || $e("$registry"), r = $e("$stonecrop"), n = A(), o = A(), i = A({}), s = A(), a = A(), u = A([]), c = A(!1), l = A(null), f = A(), h = r || Re._root;
2118
2118
  h && (n.value = h), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
2119
- const v = A([]), y = A(-1), m = x(() => n.value?.getOperationLogStore().canUndo ?? !1), O = x(() => n.value?.getOperationLogStore().canRedo ?? !1), D = x(() => n.value?.getOperationLogStore().undoCount ?? 0), rt = x(() => n.value?.getOperationLogStore().redoCount ?? 0), at = x(
2119
+ const d = A([]), _ = A(-1), m = x(() => n.value?.getOperationLogStore().canUndo ?? !1), k = x(() => n.value?.getOperationLogStore().canRedo ?? !1), D = x(() => n.value?.getOperationLogStore().undoCount ?? 0), rt = x(() => n.value?.getOperationLogStore().redoCount ?? 0), at = x(
2120
2120
  () => n.value?.getOperationLogStore().undoRedoState ?? {
2121
2121
  canUndo: !1,
2122
2122
  canRedo: !1,
@@ -2124,58 +2124,58 @@ function Ps(t) {
2124
2124
  redoCount: 0,
2125
2125
  currentIndex: -1
2126
2126
  }
2127
- ), wt = (_) => n.value?.getOperationLogStore().undo(_) ?? !1, Q = (_) => n.value?.getOperationLogStore().redo(_) ?? !1, bt = () => {
2127
+ ), wt = (y) => n.value?.getOperationLogStore().undo(y) ?? !1, Q = (y) => n.value?.getOperationLogStore().redo(y) ?? !1, bt = () => {
2128
2128
  n.value?.getOperationLogStore().startBatch();
2129
- }, E = (_) => n.value?.getOperationLogStore().commitBatch(_) ?? null, Nt = () => {
2129
+ }, E = (y) => n.value?.getOperationLogStore().commitBatch(y) ?? null, Nt = () => {
2130
2130
  n.value?.getOperationLogStore().cancelBatch();
2131
2131
  }, Y = () => {
2132
2132
  n.value?.getOperationLogStore().clear();
2133
- }, w = (_, g) => n.value?.getOperationLogStore().getOperationsFor(_, g) ?? [], b = () => n.value?.getOperationLogStore().getSnapshot() ?? {
2133
+ }, w = (y, g) => n.value?.getOperationLogStore().getOperationsFor(y, g) ?? [], b = () => n.value?.getOperationLogStore().getSnapshot() ?? {
2134
2134
  operations: [],
2135
2135
  currentIndex: -1,
2136
2136
  totalOperations: 0,
2137
2137
  reversibleOperations: 0,
2138
2138
  irreversibleOperations: 0
2139
- }, z = (_, g) => {
2140
- n.value?.getOperationLogStore().markIrreversible(_, g);
2141
- }, B = (_, g, p, d = "success", I) => n.value?.getOperationLogStore().logAction(_, g, p, d, I) ?? "", k = (_) => {
2142
- n.value?.getOperationLogStore().configure(_);
2139
+ }, z = (y, g) => {
2140
+ n.value?.getOperationLogStore().markIrreversible(y, g);
2141
+ }, B = (y, g, p, v = "success", I) => n.value?.getOperationLogStore().logAction(y, g, p, v, I) ?? "", O = (y) => {
2142
+ n.value?.getOperationLogStore().configure(y);
2143
2143
  };
2144
- mr(async () => {
2144
+ wr(async () => {
2145
2145
  if (!(!e || !n.value)) {
2146
2146
  try {
2147
- const _ = n.value.getOperationLogStore(), g = is(_);
2148
- v.value = g.operations.value, y.value = g.currentIndex.value, J(
2147
+ const y = n.value.getOperationLogStore(), g = is(y);
2148
+ d.value = g.operations.value, _.value = g.currentIndex.value, J(
2149
2149
  () => g.operations.value,
2150
2150
  (p) => {
2151
- v.value = p;
2151
+ d.value = p;
2152
2152
  }
2153
2153
  ), J(
2154
2154
  () => g.currentIndex.value,
2155
2155
  (p) => {
2156
- y.value = p;
2156
+ _.value = p;
2157
2157
  }
2158
2158
  );
2159
2159
  } catch {
2160
2160
  }
2161
2161
  if (!t.doctype && e.router) {
2162
- const _ = e.router.currentRoute.value;
2163
- if (!_.path) return;
2164
- const g = _.path.split("/").filter((d) => d.length > 0), p = g[1]?.toLowerCase();
2162
+ const y = e.router.currentRoute.value;
2163
+ if (!y.path) return;
2164
+ const g = y.path.split("/").filter((v) => v.length > 0), p = g[1]?.toLowerCase();
2165
2165
  if (g.length > 0) {
2166
- const d = {
2167
- path: _.path,
2166
+ const v = {
2167
+ path: y.path,
2168
2168
  segments: g
2169
- }, I = await e.getMeta?.(d);
2169
+ }, I = await e.getMeta?.(v);
2170
2170
  if (I) {
2171
2171
  if (e.addDoctype(I), n.value.setup(I), s.value = I, a.value = p, o.value = n.value.getStore(), e) {
2172
- const j = I.schema ? Array.isArray(I.schema) ? I.schema : Array.from(I.schema) : [];
2173
- u.value = e.resolveSchema(j);
2172
+ const $ = I.schema ? Array.isArray(I.schema) ? I.schema : Array.from(I.schema) : [];
2173
+ u.value = e.resolveSchema($);
2174
2174
  }
2175
2175
  if (p && p !== "new") {
2176
- const j = n.value.getRecordById(I, p);
2177
- if (j)
2178
- i.value = j.get("") || {};
2176
+ const $ = n.value.getRecordById(I, p);
2177
+ if ($)
2178
+ i.value = $.get("") || {};
2179
2179
  else
2180
2180
  try {
2181
2181
  await n.value.getRecord(I, p);
@@ -2186,26 +2186,26 @@ function Ps(t) {
2186
2186
  }
2187
2187
  } else
2188
2188
  i.value = e.initializeRecord(u.value);
2189
- o.value && Qn(I, p || "new", i, o.value), n.value.runAction(I, "load", p ? [p] : void 0);
2189
+ o.value && Yn(I, p || "new", i, o.value), n.value.runAction(I, "load", p ? [p] : void 0);
2190
2190
  }
2191
2191
  }
2192
2192
  }
2193
2193
  if (t.doctype) {
2194
2194
  o.value = n.value.getStore();
2195
- const _ = t.recordId;
2195
+ const y = t.recordId;
2196
2196
  let g;
2197
2197
  if (typeof t.doctype == "string") {
2198
- const d = t.doctype;
2198
+ const v = t.doctype;
2199
2199
  c.value = !0, l.value = null;
2200
2200
  try {
2201
- if (g = e.getDoctype(d), !g && e.getMeta) {
2201
+ if (g = e.getDoctype(v), !g && e.getMeta) {
2202
2202
  const I = {
2203
- path: `/${d}`,
2204
- segments: [d]
2203
+ path: `/${v}`,
2204
+ segments: [v]
2205
2205
  };
2206
2206
  g = await e.getMeta(I), g && e.addDoctype(g);
2207
2207
  }
2208
- g || (l.value = new Error(`Doctype '${d}' not found in registry and getMeta returned no result`));
2208
+ g || (l.value = new Error(`Doctype '${v}' not found in registry and getMeta returned no result`));
2209
2209
  } catch (I) {
2210
2210
  l.value = I instanceof Error ? I : new Error(String(I));
2211
2211
  } finally {
@@ -2216,38 +2216,38 @@ function Ps(t) {
2216
2216
  if (f.value = g, !g)
2217
2217
  return;
2218
2218
  const p = g.schema ? Array.isArray(g.schema) ? g.schema : Array.from(g.schema) : [];
2219
- if (u.value = e.resolveSchema(p), _ && _ !== "new") {
2220
- const d = n.value.getRecordById(g, _);
2221
- if (d)
2222
- i.value = d.get("") || {};
2219
+ if (u.value = e.resolveSchema(p), y && y !== "new") {
2220
+ const v = n.value.getRecordById(g, y);
2221
+ if (v)
2222
+ i.value = v.get("") || {};
2223
2223
  else
2224
2224
  try {
2225
- await n.value.getRecord(g, _);
2226
- const I = n.value.getRecordById(g, _);
2225
+ await n.value.getRecord(g, y);
2226
+ const I = n.value.getRecordById(g, y);
2227
2227
  I && (i.value = I.get("") || {});
2228
2228
  } catch {
2229
2229
  i.value = e.initializeRecord(u.value);
2230
2230
  }
2231
2231
  } else
2232
2232
  i.value = e.initializeRecord(u.value);
2233
- o.value && Qn(g, _ || "new", i, o.value);
2233
+ o.value && Yn(g, y || "new", i, o.value);
2234
2234
  }
2235
2235
  }
2236
2236
  });
2237
- const M = (_, g) => {
2237
+ const j = (y, g) => {
2238
2238
  const p = f.value || s.value;
2239
2239
  if (!p) return "";
2240
- const d = g || t.recordId || a.value || "new";
2241
- return `${p.slug}.${d}.${_}`;
2242
- }, U = (_) => {
2240
+ const v = g || t.recordId || a.value || "new";
2241
+ return `${p.slug}.${v}.${y}`;
2242
+ }, U = (y) => {
2243
2243
  const g = f.value || s.value;
2244
2244
  if (!(!o.value || !n.value || !g))
2245
2245
  try {
2246
- const p = _.path.split(".");
2246
+ const p = y.path.split(".");
2247
2247
  if (p.length >= 2) {
2248
- const j = p[0], H = p[1];
2249
- if (o.value.has(`${j}.${H}`) || n.value.addRecord(g, H, { ...i.value }), p.length > 3) {
2250
- const tt = `${j}.${H}`, nt = p.slice(2);
2248
+ const $ = p[0], H = p[1];
2249
+ if (o.value.has(`${$}.${H}`) || n.value.addRecord(g, H, { ...i.value }), p.length > 3) {
2250
+ const tt = `${$}.${H}`, nt = p.slice(2);
2251
2251
  let ot = tt;
2252
2252
  for (let Bt = 0; Bt < nt.length - 1; Bt++)
2253
2253
  if (ot += `.${nt[Bt]}`, !o.value.has(ot)) {
@@ -2256,36 +2256,36 @@ function Ps(t) {
2256
2256
  }
2257
2257
  }
2258
2258
  }
2259
- o.value.set(_.path, _.value);
2260
- const d = _.fieldname.split("."), I = { ...i.value };
2261
- d.length === 1 ? I[d[0]] = _.value : qs(I, d, _.value), i.value = I;
2259
+ o.value.set(y.path, y.value);
2260
+ const v = y.fieldname.split("."), I = { ...i.value };
2261
+ v.length === 1 ? I[v[0]] = y.value : qs(I, v, y.value), i.value = I;
2262
2262
  } catch {
2263
2263
  }
2264
2264
  };
2265
- (t.doctype || e?.router) && (Qr("hstPathProvider", M), Qr("hstChangeHandler", U));
2266
- const Pt = (_, g, p) => {
2265
+ (t.doctype || e?.router) && (Yr("hstPathProvider", j), Yr("hstChangeHandler", U));
2266
+ const Pt = (y, g, p) => {
2267
2267
  if (!n.value)
2268
2268
  throw new Error("Stonecrop instance not available");
2269
- return n.value.loadNestedData(_, g, p);
2270
- }, ht = (_, g) => {
2269
+ return n.value.loadNestedData(y, g, p);
2270
+ }, ht = (y, g) => {
2271
2271
  if (!n.value)
2272
2272
  throw new Error("Stonecrop instance not available");
2273
- return n.value.collectRecordPayload(_, g);
2274
- }, K = (_, g) => ({
2275
- provideHSTPath: (p) => `${_}.${p}`,
2273
+ return n.value.collectRecordPayload(y, g);
2274
+ }, K = (y, g) => ({
2275
+ provideHSTPath: (p) => `${y}.${p}`,
2276
2276
  handleHSTChange: (p) => {
2277
- const d = p.path.startsWith(_) ? p.path : `${_}.${p.fieldname}`;
2277
+ const v = p.path.startsWith(y) ? p.path : `${y}.${p.fieldname}`;
2278
2278
  U({
2279
2279
  ...p,
2280
- path: d
2280
+ path: v
2281
2281
  });
2282
2282
  }
2283
2283
  }), S = {
2284
- operations: v,
2285
- currentIndex: y,
2284
+ operations: d,
2285
+ currentIndex: _,
2286
2286
  undoRedoState: at,
2287
2287
  canUndo: m,
2288
- canRedo: O,
2288
+ canRedo: k,
2289
2289
  undoCount: D,
2290
2290
  redoCount: rt,
2291
2291
  undo: wt,
@@ -2298,12 +2298,12 @@ function Ps(t) {
2298
2298
  getSnapshot: b,
2299
2299
  markIrreversible: z,
2300
2300
  logAction: B,
2301
- configure: k
2301
+ configure: O
2302
2302
  };
2303
2303
  return t.doctype ? {
2304
2304
  stonecrop: n,
2305
2305
  operationLog: S,
2306
- provideHSTPath: M,
2306
+ provideHSTPath: j,
2307
2307
  handleHSTChange: U,
2308
2308
  hstStore: o,
2309
2309
  formData: i,
@@ -2317,7 +2317,7 @@ function Ps(t) {
2317
2317
  } : !t.doctype && e?.router ? {
2318
2318
  stonecrop: n,
2319
2319
  operationLog: S,
2320
- provideHSTPath: M,
2320
+ provideHSTPath: j,
2321
2321
  handleHSTChange: U,
2322
2322
  hstStore: o,
2323
2323
  formData: i,
@@ -2333,7 +2333,7 @@ function Ps(t) {
2333
2333
  operationLog: S
2334
2334
  };
2335
2335
  }
2336
- function Qn(t, e, r, n) {
2336
+ function Yn(t, e, r, n) {
2337
2337
  J(
2338
2338
  r,
2339
2339
  (o) => {
@@ -2358,15 +2358,15 @@ function qs(t, e, r) {
2358
2358
  const o = e[e.length - 1];
2359
2359
  n[o] = r;
2360
2360
  }
2361
- var vr = "@@__IMMUTABLE_INDEXED__@@";
2361
+ var yr = "@@__IMMUTABLE_INDEXED__@@";
2362
2362
  function Et(t) {
2363
2363
  return !!(t && // @ts-expect-error: maybeIndexed is typed as `{}`, need to change in 6.0 to `maybeIndexed && typeof maybeIndexed === 'object' && IS_INDEXED_SYMBOL in maybeIndexed`
2364
- t[vr]);
2364
+ t[yr]);
2365
2365
  }
2366
- var yr = "@@__IMMUTABLE_KEYED__@@";
2366
+ var _r = "@@__IMMUTABLE_KEYED__@@";
2367
2367
  function W(t) {
2368
2368
  return !!(t && // @ts-expect-error: maybeKeyed is typed as `{}`, need to change in 6.0 to `maybeKeyed && typeof maybeKeyed === 'object' && IS_KEYED_SYMBOL in maybeKeyed`
2369
- t[yr]);
2369
+ t[_r]);
2370
2370
  }
2371
2371
  function fn(t) {
2372
2372
  return W(t) || Et(t);
@@ -2383,7 +2383,7 @@ var it = function(t) {
2383
2383
  return W(r) ? r : Ft(r);
2384
2384
  }
2385
2385
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2386
- })(it), Qt = /* @__PURE__ */ (function(t) {
2386
+ })(it), Gt = /* @__PURE__ */ (function(t) {
2387
2387
  function e(r) {
2388
2388
  return Et(r) ? r : kt(r);
2389
2389
  }
@@ -2395,9 +2395,9 @@ var it = function(t) {
2395
2395
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2396
2396
  })(it);
2397
2397
  it.Keyed = Ot;
2398
- it.Indexed = Qt;
2398
+ it.Indexed = Gt;
2399
2399
  it.Set = ye;
2400
- var _e = 0, gt = 1, mt = 2, tn = typeof Symbol == "function" && Symbol.iterator, Po = "@@iterator", br = tn || Po, C = function(t) {
2400
+ var _e = 0, gt = 1, mt = 2, en = typeof Symbol == "function" && Symbol.iterator, Po = "@@iterator", Sr = en || Po, C = function(t) {
2401
2401
  this.next = t;
2402
2402
  };
2403
2403
  C.prototype.toString = function() {
@@ -2409,7 +2409,7 @@ C.ENTRIES = mt;
2409
2409
  C.prototype.inspect = C.prototype.toSource = function() {
2410
2410
  return this.toString();
2411
2411
  };
2412
- C.prototype[br] = function() {
2412
+ C.prototype[Sr] = function() {
2413
2413
  return this;
2414
2414
  };
2415
2415
  function F(t, e, r, n) {
@@ -2424,33 +2424,33 @@ function ct() {
2424
2424
  return { value: void 0, done: !0 };
2425
2425
  }
2426
2426
  function qo(t) {
2427
- return Array.isArray(t) ? !0 : !!Sr(t);
2427
+ return Array.isArray(t) ? !0 : !!Ir(t);
2428
2428
  }
2429
- function Yn(t) {
2429
+ function Xn(t) {
2430
2430
  return !!(t && // @ts-expect-error: maybeIterator is typed as `{}`
2431
2431
  typeof t.next == "function");
2432
2432
  }
2433
- function en(t) {
2434
- var e = Sr(t);
2433
+ function rn(t) {
2434
+ var e = Ir(t);
2435
2435
  return e && e.call(t);
2436
2436
  }
2437
- function Sr(t) {
2437
+ function Ir(t) {
2438
2438
  var e = t && // @ts-expect-error: maybeIterator is typed as `{}`
2439
- (tn && t[tn] || // @ts-expect-error: maybeIterator is typed as `{}`
2439
+ (en && t[en] || // @ts-expect-error: maybeIterator is typed as `{}`
2440
2440
  t[Po]);
2441
2441
  if (typeof e == "function")
2442
2442
  return e;
2443
2443
  }
2444
2444
  function Vs(t) {
2445
- var e = Sr(t);
2445
+ var e = Ir(t);
2446
2446
  return e && e === t.entries;
2447
2447
  }
2448
2448
  function Ls(t) {
2449
- var e = Sr(t);
2449
+ var e = Ir(t);
2450
2450
  return e && e === t.keys;
2451
2451
  }
2452
2452
  var He = "delete", P = 5, vt = 1 << P, ut = vt - 1, R = {};
2453
- function rn() {
2453
+ function nn() {
2454
2454
  return { value: !1 };
2455
2455
  }
2456
2456
  function It(t) {
@@ -2473,13 +2473,13 @@ function Lt(t, e) {
2473
2473
  function Vo() {
2474
2474
  return !0;
2475
2475
  }
2476
- function Ir(t, e, r) {
2476
+ function Er(t, e, r) {
2477
2477
  return (t === 0 && !Uo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
2478
2478
  }
2479
2479
  function Je(t, e) {
2480
2480
  return Lo(t, e, 0);
2481
2481
  }
2482
- function Er(t, e) {
2482
+ function Or(t, e) {
2483
2483
  return Lo(t, e, e);
2484
2484
  }
2485
2485
  function Lo(t, e, r) {
@@ -2489,12 +2489,12 @@ function Uo(t) {
2489
2489
  return t < 0 || t === 0 && 1 / t === -1 / 0;
2490
2490
  }
2491
2491
  var Wo = "@@__IMMUTABLE_RECORD__@@";
2492
- function Yt(t) {
2492
+ function Qt(t) {
2493
2493
  return !!(t && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
2494
2494
  t[Wo]);
2495
2495
  }
2496
2496
  function Rt(t) {
2497
- return _t(t) || Yt(t);
2497
+ return _t(t) || Qt(t);
2498
2498
  }
2499
2499
  var Ut = "@@__IMMUTABLE_ORDERED__@@";
2500
2500
  function xt(t) {
@@ -2557,14 +2557,14 @@ var ft = /* @__PURE__ */ (function(t) {
2557
2557
  }, e;
2558
2558
  })(it), Ft = /* @__PURE__ */ (function(t) {
2559
2559
  function e(r) {
2560
- return r == null ? vn().toKeyedSeq() : _t(r) ? W(r) ? r.toSeq() : r.fromEntrySeq() : Yt(r) ? r.toSeq() : yn(r);
2560
+ return r == null ? vn().toKeyedSeq() : _t(r) ? W(r) ? r.toSeq() : r.fromEntrySeq() : Qt(r) ? r.toSeq() : yn(r);
2561
2561
  }
2562
2562
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
2563
2563
  return this;
2564
2564
  }, e;
2565
2565
  })(ft), kt = /* @__PURE__ */ (function(t) {
2566
2566
  function e(r) {
2567
- return r == null ? vn() : _t(r) ? W(r) ? r.entrySeq() : r.toIndexedSeq() : Yt(r) ? r.toSeq().entrySeq() : Ko(r);
2567
+ return r == null ? vn() : _t(r) ? W(r) ? r.entrySeq() : r.toIndexedSeq() : Qt(r) ? r.toSeq().entrySeq() : Ko(r);
2568
2568
  }
2569
2569
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
2570
2570
  return e(arguments);
@@ -2646,16 +2646,16 @@ var Us = /* @__PURE__ */ (function(t) {
2646
2646
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
2647
2647
  if (n)
2648
2648
  return this.cacheResult().__iterate(r, n);
2649
- var o = this._collection, i = en(o), s = 0;
2650
- if (Yn(i))
2649
+ var o = this._collection, i = rn(o), s = 0;
2650
+ if (Xn(i))
2651
2651
  for (var a; !(a = i.next()).done && r(a.value, s++, this) !== !1; )
2652
2652
  ;
2653
2653
  return s;
2654
2654
  }, e.prototype.__iteratorUncached = function(r, n) {
2655
2655
  if (n)
2656
2656
  return this.cacheResult().__iterator(r, n);
2657
- var o = this._collection, i = en(o);
2658
- if (!Yn(i))
2657
+ var o = this._collection, i = rn(o);
2658
+ if (!Xn(i))
2659
2659
  return new C(ct);
2660
2660
  var s = 0;
2661
2661
  return new C(function() {
@@ -2663,9 +2663,9 @@ var Us = /* @__PURE__ */ (function(t) {
2663
2663
  return a.done ? a : F(r, s++, a.value);
2664
2664
  });
2665
2665
  }, e;
2666
- })(kt), Xn;
2666
+ })(kt), Zn;
2667
2667
  function vn() {
2668
- return Xn || (Xn = new ue([]));
2668
+ return Zn || (Zn = new ue([]));
2669
2669
  }
2670
2670
  function yn(t) {
2671
2671
  var e = _n(t);
@@ -2709,25 +2709,25 @@ var Ee = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
2709
2709
  var r = t & 65535, n = e & 65535;
2710
2710
  return r * n + ((t >>> 16) * n + r * (e >>> 16) << 16 >>> 0) | 0;
2711
2711
  };
2712
- function Or(t) {
2712
+ function kr(t) {
2713
2713
  return t >>> 1 & 1073741824 | t & 3221225471;
2714
2714
  }
2715
2715
  var Fs = Object.prototype.valueOf;
2716
2716
  function pt(t) {
2717
2717
  if (t == null)
2718
- return Zn(t);
2718
+ return to(t);
2719
2719
  if (typeof t.hashCode == "function")
2720
- return Or(t.hashCode(t));
2720
+ return kr(t.hashCode(t));
2721
2721
  var e = Qs(t);
2722
2722
  if (e == null)
2723
- return Zn(e);
2723
+ return to(e);
2724
2724
  switch (typeof e) {
2725
2725
  case "boolean":
2726
2726
  return e ? 1108378657 : 1108378656;
2727
2727
  case "number":
2728
2728
  return Bs(e);
2729
2729
  case "string":
2730
- return e.length > Ys ? Ks(e) : nn(e);
2730
+ return e.length > Ys ? Ks(e) : on(e);
2731
2731
  case "object":
2732
2732
  case "function":
2733
2733
  return Js(e);
@@ -2735,11 +2735,11 @@ function pt(t) {
2735
2735
  return Hs(e);
2736
2736
  default:
2737
2737
  if (typeof e.toString == "function")
2738
- return nn(e.toString());
2738
+ return on(e.toString());
2739
2739
  throw new Error("Value type " + typeof e + " cannot be hashed.");
2740
2740
  }
2741
2741
  }
2742
- function Zn(t) {
2742
+ function to(t) {
2743
2743
  return t === null ? 1108378658 : (
2744
2744
  /* undefined */
2745
2745
  1108378659
@@ -2751,31 +2751,31 @@ function Bs(t) {
2751
2751
  var e = t | 0;
2752
2752
  for (e !== t && (e ^= t * 4294967295); t > 4294967295; )
2753
2753
  t /= 4294967295, e ^= t;
2754
- return Or(e);
2754
+ return kr(e);
2755
2755
  }
2756
2756
  function Ks(t) {
2757
- var e = Vr[t];
2758
- return e === void 0 && (e = nn(t), qr === Xs && (qr = 0, Vr = {}), qr++, Vr[t] = e), e;
2757
+ var e = Lr[t];
2758
+ return e === void 0 && (e = on(t), Vr === Xs && (Vr = 0, Lr = {}), Vr++, Lr[t] = e), e;
2759
2759
  }
2760
- function nn(t) {
2760
+ function on(t) {
2761
2761
  for (var e = 0, r = 0; r < t.length; r++)
2762
2762
  e = 31 * e + t.charCodeAt(r) | 0;
2763
- return Or(e);
2763
+ return kr(e);
2764
2764
  }
2765
2765
  function Hs(t) {
2766
- var e = ro[t];
2767
- return e !== void 0 || (e = Ho(), ro[t] = e), e;
2766
+ var e = no[t];
2767
+ return e !== void 0 || (e = Ho(), no[t] = e), e;
2768
2768
  }
2769
2769
  function Js(t) {
2770
2770
  var e;
2771
- if (on && (e = sn.get(t), e !== void 0) || (e = t[Kt], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Kt], e !== void 0 || (e = Gs(t), e !== void 0)))
2771
+ if (sn && (e = an.get(t), e !== void 0) || (e = t[Kt], e !== void 0) || !ro && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Kt], e !== void 0 || (e = Gs(t), e !== void 0)))
2772
2772
  return e;
2773
- if (e = Ho(), on)
2774
- sn.set(t, e);
2773
+ if (e = Ho(), sn)
2774
+ an.set(t, e);
2775
2775
  else {
2776
- if (to !== void 0 && to(t) === !1)
2776
+ if (eo !== void 0 && eo(t) === !1)
2777
2777
  throw new Error("Non-extensible objects are not allowed as keys.");
2778
- if (eo)
2778
+ if (ro)
2779
2779
  Object.defineProperty(t, Kt, {
2780
2780
  enumerable: !1,
2781
2781
  configurable: !1,
@@ -2797,7 +2797,7 @@ function Js(t) {
2797
2797
  }
2798
2798
  return e;
2799
2799
  }
2800
- var to = Object.isExtensible, eo = (function() {
2800
+ var eo = Object.isExtensible, ro = (function() {
2801
2801
  try {
2802
2802
  return Object.defineProperty({}, "@", {}), !0;
2803
2803
  } catch {
@@ -2820,14 +2820,14 @@ function Qs(t) {
2820
2820
  ) : t;
2821
2821
  }
2822
2822
  function Ho() {
2823
- var t = ++Pr;
2824
- return Pr & 1073741824 && (Pr = 0), t;
2823
+ var t = ++qr;
2824
+ return qr & 1073741824 && (qr = 0), t;
2825
2825
  }
2826
- var on = typeof WeakMap == "function", sn;
2827
- on && (sn = /* @__PURE__ */ new WeakMap());
2828
- var ro = /* @__PURE__ */ Object.create(null), Pr = 0, Kt = "__immutablehash__";
2826
+ var sn = typeof WeakMap == "function", an;
2827
+ sn && (an = /* @__PURE__ */ new WeakMap());
2828
+ var no = /* @__PURE__ */ Object.create(null), qr = 0, Kt = "__immutablehash__";
2829
2829
  typeof Symbol == "function" && (Kt = Symbol(Kt));
2830
- var Ys = 16, Xs = 255, qr = 0, Vr = {}, kr = /* @__PURE__ */ (function(t) {
2830
+ var Ys = 16, Xs = 255, Vr = 0, Lr = {}, Dr = /* @__PURE__ */ (function(t) {
2831
2831
  function e(r, n) {
2832
2832
  this._iter = r, this._useKeys = n, this.size = r.size;
2833
2833
  }
@@ -2856,7 +2856,7 @@ var Ys = 16, Xs = 255, qr = 0, Vr = {}, kr = /* @__PURE__ */ (function(t) {
2856
2856
  return this._iter.__iterator(r, n);
2857
2857
  }, e;
2858
2858
  })(Ft);
2859
- kr.prototype[Ut] = !0;
2859
+ Dr.prototype[Ut] = !0;
2860
2860
  var Jo = /* @__PURE__ */ (function(t) {
2861
2861
  function e(r) {
2862
2862
  this._iter = r, this.size = r.size;
@@ -2911,7 +2911,7 @@ var Jo = /* @__PURE__ */ (function(t) {
2911
2911
  var o = this;
2912
2912
  return this._iter.__iterate(function(i) {
2913
2913
  if (i) {
2914
- oo(i);
2914
+ io(i);
2915
2915
  var s = _t(i);
2916
2916
  return r(
2917
2917
  s ? i.get(1) : i[1],
@@ -2929,7 +2929,7 @@ var Jo = /* @__PURE__ */ (function(t) {
2929
2929
  return i;
2930
2930
  var s = i.value;
2931
2931
  if (s) {
2932
- oo(s);
2932
+ io(s);
2933
2933
  var a = _t(s);
2934
2934
  return F(
2935
2935
  r,
@@ -2942,7 +2942,7 @@ var Jo = /* @__PURE__ */ (function(t) {
2942
2942
  });
2943
2943
  }, e;
2944
2944
  })(Ft);
2945
- Jo.prototype.cacheResult = kr.prototype.cacheResult = Go.prototype.cacheResult = Qo.prototype.cacheResult = bn;
2945
+ Jo.prototype.cacheResult = Dr.prototype.cacheResult = Go.prototype.cacheResult = Qo.prototype.cacheResult = bn;
2946
2946
  function Yo(t) {
2947
2947
  var e = Ct(t);
2948
2948
  return e._iter = t, e.size = t.size, e.flip = function() {
@@ -3116,11 +3116,11 @@ function ea(t, e, r) {
3116
3116
  }
3117
3117
  function mn(t, e, r, n) {
3118
3118
  var o = t.size;
3119
- if (Ir(e, r, o))
3119
+ if (Er(e, r, o))
3120
3120
  return t;
3121
3121
  if (typeof o > "u" && (e < 0 || r < 0))
3122
3122
  return mn(t.toSeq().cacheResult(), e, r, n);
3123
- var i = Je(e, o), s = Er(r, o), a = s - i, u;
3123
+ var i = Je(e, o), s = Or(r, o), a = s - i, u;
3124
3124
  a === a && (u = a < 0 ? 0 : a);
3125
3125
  var c = Ct(t);
3126
3126
  return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
@@ -3131,24 +3131,24 @@ function mn(t, e, r, n) {
3131
3131
  return 0;
3132
3132
  if (f)
3133
3133
  return this.cacheResult().__iterate(l, f);
3134
- var v = 0, y = !0, m = 0;
3135
- return t.__iterate(function(O, D) {
3136
- if (!(y && (y = v++ < i)))
3137
- return m++, l(O, n ? D : m - 1, h) !== !1 && m !== u;
3134
+ var d = 0, _ = !0, m = 0;
3135
+ return t.__iterate(function(k, D) {
3136
+ if (!(_ && (_ = d++ < i)))
3137
+ return m++, l(k, n ? D : m - 1, h) !== !1 && m !== u;
3138
3138
  }), m;
3139
3139
  }, c.__iteratorUncached = function(l, f) {
3140
3140
  if (u !== 0 && f)
3141
3141
  return this.cacheResult().__iterator(l, f);
3142
3142
  if (u === 0)
3143
3143
  return new C(ct);
3144
- var h = t.__iterator(l, f), v = 0, y = 0;
3144
+ var h = t.__iterator(l, f), d = 0, _ = 0;
3145
3145
  return new C(function() {
3146
- for (; v++ < i; )
3146
+ for (; d++ < i; )
3147
3147
  h.next();
3148
- if (++y > u)
3148
+ if (++_ > u)
3149
3149
  return ct();
3150
3150
  var m = h.next();
3151
- return n || l === gt || m.done ? m : l === _e ? F(l, y - 1, void 0, m) : F(l, y - 1, m.value[1], m);
3151
+ return n || l === gt || m.done ? m : l === _e ? F(l, _ - 1, void 0, m) : F(l, _ - 1, m.value[1], m);
3152
3152
  });
3153
3153
  }, c;
3154
3154
  }
@@ -3197,14 +3197,14 @@ function ti(t, e, r, n) {
3197
3197
  return this.cacheResult().__iterator(i, s);
3198
3198
  var u = t.__iterator(mt, s), c = !0, l = 0;
3199
3199
  return new C(function() {
3200
- var f, h, v;
3200
+ var f, h, d;
3201
3201
  do {
3202
3202
  if (f = u.next(), f.done)
3203
3203
  return n || i === gt ? f : i === _e ? F(i, l++, void 0, f) : F(i, l++, f.value[1], f);
3204
- var y = f.value;
3205
- h = y[0], v = y[1], c && (c = e.call(r, v, h, a));
3204
+ var _ = f.value;
3205
+ h = _[0], d = _[1], c && (c = e.call(r, d, h, a));
3206
3206
  } while (c);
3207
- return i === mt ? f : F(i, h, v, f);
3207
+ return i === mt ? f : F(i, h, d, f);
3208
3208
  });
3209
3209
  }, o;
3210
3210
  }
@@ -3218,7 +3218,7 @@ var na = /* @__PURE__ */ (function(t) {
3218
3218
  if (i !== void 0)
3219
3219
  return n + i;
3220
3220
  }
3221
- }, 0), this[yr] = this._wrappedIterables[0][yr], this[vr] = this._wrappedIterables[0][vr], this[Ut] = this._wrappedIterables[0][Ut];
3221
+ }, 0), this[_r] = this._wrappedIterables[0][_r], this[yr] = this._wrappedIterables[0][yr], this[Ut] = this._wrappedIterables[0][Ut];
3222
3222
  }
3223
3223
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
3224
3224
  if (this._wrappedIterables.length !== 0) {
@@ -3355,15 +3355,15 @@ function rr(t, e, r) {
3355
3355
  var n = t.toSeq().map(function(o, i) {
3356
3356
  return [o, r(o, i, t)];
3357
3357
  }).reduce(function(o, i) {
3358
- return no(e, o[1], i[1]) ? i : o;
3358
+ return oo(e, o[1], i[1]) ? i : o;
3359
3359
  });
3360
3360
  return n && n[0];
3361
3361
  }
3362
3362
  return t.reduce(function(o, i) {
3363
- return no(e, o, i) ? i : o;
3363
+ return oo(e, o, i) ? i : o;
3364
3364
  });
3365
3365
  }
3366
- function no(t, e, r) {
3366
+ function oo(t, e, r) {
3367
3367
  var n = t(r, e);
3368
3368
  return n === 0 && r !== e && (r == null || r !== r) || n > 0;
3369
3369
  }
@@ -3378,7 +3378,7 @@ function nr(t, e, r, n) {
3378
3378
  }, o.__iteratorUncached = function(s, a) {
3379
3379
  var u = r.map(
3380
3380
  function(f) {
3381
- return f = it(f), en(a ? f.reverse() : f);
3381
+ return f = it(f), rn(a ? f.reverse() : f);
3382
3382
  }
3383
3383
  ), c = 0, l = !1;
3384
3384
  return new C(function() {
@@ -3405,12 +3405,12 @@ function nr(t, e, r, n) {
3405
3405
  function T(t, e) {
3406
3406
  return t === e ? t : pn(t) ? e : t.constructor(e);
3407
3407
  }
3408
- function oo(t) {
3408
+ function io(t) {
3409
3409
  if (t !== Object(t))
3410
3410
  throw new TypeError("Expected [K, V] tuple: " + t);
3411
3411
  }
3412
3412
  function wn(t) {
3413
- return W(t) ? Ot : Et(t) ? Qt : ye;
3413
+ return W(t) ? Ot : Et(t) ? Gt : ye;
3414
3414
  }
3415
3415
  function Ct(t) {
3416
3416
  return Object.create(
@@ -3423,7 +3423,7 @@ function bn() {
3423
3423
  function ri(t, e) {
3424
3424
  return t === void 0 && e === void 0 ? 0 : t === void 0 ? 1 : e === void 0 ? -1 : t > e ? 1 : t < e ? -1 : 0;
3425
3425
  }
3426
- function io(t) {
3426
+ function so(t) {
3427
3427
  return !!(t && // @ts-expect-error: maybeValue is typed as `{}`
3428
3428
  typeof t.equals == "function" && // @ts-expect-error: maybeValue is typed as `{}`
3429
3429
  typeof t.hashCode == "function");
@@ -3439,7 +3439,7 @@ function yt(t, e) {
3439
3439
  if (!t || !e)
3440
3440
  return !1;
3441
3441
  }
3442
- return !!(io(t) && io(e) && t.equals(e));
3442
+ return !!(so(t) && so(e) && t.equals(e));
3443
3443
  }
3444
3444
  function ni(t, e, r, n) {
3445
3445
  return be(
@@ -3465,7 +3465,7 @@ function si(t, e, r) {
3465
3465
  var i = Ot(e[o]);
3466
3466
  i.size !== 0 && n.push(i);
3467
3467
  }
3468
- return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ? Yt(t) ? t : t.constructor(n[0]) : t.withMutations(function(s) {
3468
+ return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ? Qt(t) ? t : t.constructor(n[0]) : t.withMutations(function(s) {
3469
3469
  for (var a = r ? function(c, l) {
3470
3470
  ni(
3471
3471
  s,
@@ -3501,7 +3501,7 @@ function Dt(t, e) {
3501
3501
  n[o] = t[o + e];
3502
3502
  return n;
3503
3503
  }
3504
- function _r(t) {
3504
+ function gr(t) {
3505
3505
  if (Array.isArray(t))
3506
3506
  return Dt(t);
3507
3507
  var e = {};
@@ -3519,11 +3519,11 @@ function In(t, e, r) {
3519
3519
  );
3520
3520
  if (Rt(t))
3521
3521
  return typeof r == "function" && t.mergeWith ? t.mergeWith.apply(t, [r].concat(e)) : t.merge ? t.merge.apply(t, e) : t.concat.apply(t, e);
3522
- for (var n = Array.isArray(t), o = t, i = n ? Qt : Ot, s = n ? function(u) {
3523
- o === t && (o = _r(o)), o.push(u);
3522
+ for (var n = Array.isArray(t), o = t, i = n ? Gt : Ot, s = n ? function(u) {
3523
+ o === t && (o = gr(o)), o.push(u);
3524
3524
  } : function(u, c) {
3525
3525
  var l = ge.call(o, c), f = l && r ? r(o[c], u, c) : u;
3526
- (!l || f !== o[c]) && (o === t && (o = _r(o)), o[c] = f);
3526
+ (!l || f !== o[c]) && (o === t && (o = gr(o)), o[c] = f);
3527
3527
  }, a = 0; a < e.length; a++)
3528
3528
  i(e[a]).forEach(s);
3529
3529
  return o;
@@ -3610,9 +3610,9 @@ var we = /* @__PURE__ */ (function(t) {
3610
3610
  }, e.prototype.get = function(r, n) {
3611
3611
  return this._root ? this._root.get(0, void 0, r, n) : n;
3612
3612
  }, e.prototype.set = function(r, n) {
3613
- return uo(this, r, n);
3613
+ return co(this, r, n);
3614
3614
  }, e.prototype.remove = function(r) {
3615
- return uo(this, r, R);
3615
+ return co(this, r, R);
3616
3616
  }, e.prototype.deleteAll = function(r) {
3617
3617
  var n = it(r);
3618
3618
  return n.size === 0 ? this : this.withMutations(function(o) {
@@ -3687,8 +3687,8 @@ Te.prototype.update = function(t, e, r, n, o, i, s) {
3687
3687
  if (It(s), (a || !f) && It(i), !(a && u.length === 1)) {
3688
3688
  if (!f && !a && u.length >= ga)
3689
3689
  return pa(t, u, n, o);
3690
- var h = t && t === this.ownerID, v = h ? u : Dt(u);
3691
- return f ? a ? c === l - 1 ? v.pop() : v[c] = v.pop() : v[c] = [n, o] : v.push([n, o]), h ? (this.entries = v, this) : new Te(t, v);
3690
+ var h = t && t === this.ownerID, d = h ? u : Dt(u);
3691
+ return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new Te(t, d);
3692
3692
  }
3693
3693
  };
3694
3694
  var le = function(t, e, r) {
@@ -3709,8 +3709,8 @@ le.prototype.update = function(t, e, r, n, o, i, s) {
3709
3709
  var a = (e === 0 ? r : r >>> e) & ut, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
3710
3710
  if (!l && o === R)
3711
3711
  return this;
3712
- var f = li(c & u - 1), h = this.nodes, v = l ? h[f] : void 0, y = Cn(
3713
- v,
3712
+ var f = li(c & u - 1), h = this.nodes, d = l ? h[f] : void 0, _ = Cn(
3713
+ d,
3714
3714
  t,
3715
3715
  e + P,
3716
3716
  r,
@@ -3719,16 +3719,16 @@ le.prototype.update = function(t, e, r, n, o, i, s) {
3719
3719
  i,
3720
3720
  s
3721
3721
  );
3722
- if (y === v)
3722
+ if (_ === d)
3723
3723
  return this;
3724
- if (!l && y && h.length >= ma)
3725
- return va(t, h, c, a, y);
3726
- if (l && !y && h.length === 2 && co(h[f ^ 1]))
3724
+ if (!l && _ && h.length >= ma)
3725
+ return va(t, h, c, a, _);
3726
+ if (l && !_ && h.length === 2 && lo(h[f ^ 1]))
3727
3727
  return h[f ^ 1];
3728
- if (l && y && h.length === 1 && co(y))
3729
- return y;
3730
- var m = t && t === this.ownerID, O = l ? y ? c : c ^ u : c | u, D = l ? y ? fi(h, f, y, m) : _a(h, f, m) : ya(h, f, y, m);
3731
- return m ? (this.bitmap = O, this.nodes = D, this) : new le(t, O, D);
3728
+ if (l && _ && h.length === 1 && lo(_))
3729
+ return _;
3730
+ var m = t && t === this.ownerID, k = l ? _ ? c : c ^ u : c | u, D = l ? _ ? fi(h, f, _, m) : _a(h, f, m) : ya(h, f, _, m);
3731
+ return m ? (this.bitmap = k, this.nodes = D, this) : new le(t, k, D);
3732
3732
  };
3733
3733
  var Pe = function(t, e, r) {
3734
3734
  this.ownerID = t, this.count = e, this.nodes = r;
@@ -3760,8 +3760,8 @@ Pe.prototype.update = function(t, e, r, n, o, i, s) {
3760
3760
  h++;
3761
3761
  else if (!f && (h--, h < wa))
3762
3762
  return da(t, c, h, a);
3763
- var v = t && t === this.ownerID, y = fi(c, a, f, v);
3764
- return v ? (this.count = h, this.nodes = y, this) : new Pe(t, h, y);
3763
+ var d = t && t === this.ownerID, _ = fi(c, a, f, d);
3764
+ return d ? (this.count = h, this.nodes = _, this) : new Pe(t, h, _);
3765
3765
  };
3766
3766
  var fe = function(t, e, r) {
3767
3767
  this.ownerID = t, this.keyHash = e, this.entries = r;
@@ -3784,8 +3784,8 @@ fe.prototype.update = function(t, e, r, n, o, i, s) {
3784
3784
  return this;
3785
3785
  if (It(s), (a || !f) && It(i), a && l === 2)
3786
3786
  return new jt(t, this.keyHash, u[c ^ 1]);
3787
- var h = t && t === this.ownerID, v = h ? u : Dt(u);
3788
- return f ? a ? c === l - 1 ? v.pop() : v[c] = v.pop() : v[c] = [n, o] : v.push([n, o]), h ? (this.entries = v, this) : new fe(t, this.keyHash, v);
3787
+ var h = t && t === this.ownerID, d = h ? u : Dt(u);
3788
+ return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new fe(t, this.keyHash, d);
3789
3789
  };
3790
3790
  var jt = function(t, e, r) {
3791
3791
  this.ownerID = t, this.keyHash = e, this.entry = r;
@@ -3820,17 +3820,17 @@ jt.prototype.iterate = function(t, e) {
3820
3820
  };
3821
3821
  var ha = /* @__PURE__ */ (function(t) {
3822
3822
  function e(r, n, o) {
3823
- this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
3823
+ this._type = n, this._reverse = o, this._stack = r._root && ao(r._root);
3824
3824
  }
3825
3825
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.next = function() {
3826
3826
  for (var r = this._type, n = this._stack; n; ) {
3827
3827
  var o = n.node, i = n.index++, s = void 0;
3828
3828
  if (o.entry) {
3829
3829
  if (i === 0)
3830
- return Lr(r, o.entry);
3830
+ return Ur(r, o.entry);
3831
3831
  } else if (o.entries) {
3832
3832
  if (s = o.entries.length - 1, i <= s)
3833
- return Lr(
3833
+ return Ur(
3834
3834
  r,
3835
3835
  o.entries[this._reverse ? s - i : i]
3836
3836
  );
@@ -3838,8 +3838,8 @@ var ha = /* @__PURE__ */ (function(t) {
3838
3838
  var a = o.nodes[this._reverse ? s - i : i];
3839
3839
  if (a) {
3840
3840
  if (a.entry)
3841
- return Lr(r, a.entry);
3842
- n = this._stack = so(a, n);
3841
+ return Ur(r, a.entry);
3842
+ n = this._stack = ao(a, n);
3843
3843
  }
3844
3844
  continue;
3845
3845
  }
@@ -3848,10 +3848,10 @@ var ha = /* @__PURE__ */ (function(t) {
3848
3848
  return ct();
3849
3849
  }, e;
3850
3850
  })(C);
3851
- function Lr(t, e) {
3851
+ function Ur(t, e) {
3852
3852
  return F(t, e[0], e[1]);
3853
3853
  }
3854
- function so(t, e) {
3854
+ function ao(t, e) {
3855
3855
  return {
3856
3856
  node: t,
3857
3857
  index: 0,
@@ -3862,14 +3862,14 @@ function Rn(t, e, r, n) {
3862
3862
  var o = Object.create(L);
3863
3863
  return o.size = t, o._root = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
3864
3864
  }
3865
- var ao;
3865
+ var uo;
3866
3866
  function zt() {
3867
- return ao || (ao = Rn(0));
3867
+ return uo || (uo = Rn(0));
3868
3868
  }
3869
- function uo(t, e, r) {
3869
+ function co(t, e, r) {
3870
3870
  var n, o;
3871
3871
  if (t._root) {
3872
- var i = rn(), s = rn();
3872
+ var i = nn(), s = nn();
3873
3873
  if (n = Cn(
3874
3874
  t._root,
3875
3875
  t.__ownerID,
@@ -3900,7 +3900,7 @@ function Cn(t, e, r, n, o, i, s, a) {
3900
3900
  a
3901
3901
  ) : i === R ? t : (It(a), It(s), new jt(e, n, [o, i]));
3902
3902
  }
3903
- function co(t) {
3903
+ function lo(t) {
3904
3904
  return t.constructor === jt || t.constructor === fe;
3905
3905
  }
3906
3906
  function Nn(t, e, r, n, o) {
@@ -3998,7 +3998,7 @@ function Sa(t, e) {
3998
3998
  }
3999
3999
  if (!ge.call(t, e))
4000
4000
  return t;
4001
- var r = _r(t);
4001
+ var r = gr(t);
4002
4002
  return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
4003
4003
  }
4004
4004
  function Ia(t, e, r) {
@@ -4011,7 +4011,7 @@ function Ia(t, e, r) {
4011
4011
  }
4012
4012
  if (ge.call(t, e) && r === t[e])
4013
4013
  return t;
4014
- var n = _r(t);
4014
+ var n = gr(t);
4015
4015
  return n[e] = r, n;
4016
4016
  }
4017
4017
  function be(t, e, r, n) {
@@ -4059,7 +4059,7 @@ function yi(t) {
4059
4059
  return !!(t && // @ts-expect-error: maybeList is typed as `{}`, need to change in 6.0 to `maybeList && typeof maybeList === 'object' && IS_LIST_SYMBOL in maybeList`
4060
4060
  t[vi]);
4061
4061
  }
4062
- var Dr = /* @__PURE__ */ (function(t) {
4062
+ var Ar = /* @__PURE__ */ (function(t) {
4063
4063
  function e(r) {
4064
4064
  var n = ar();
4065
4065
  if (r == null)
@@ -4139,19 +4139,19 @@ var Dr = /* @__PURE__ */ (function(t) {
4139
4139
  });
4140
4140
  }, e.prototype.slice = function(r, n) {
4141
4141
  var o = this.size;
4142
- return Ir(r, n, o) ? this : qt(
4142
+ return Er(r, n, o) ? this : qt(
4143
4143
  this,
4144
4144
  Je(r, o),
4145
- Er(n, o)
4145
+ Or(n, o)
4146
4146
  );
4147
4147
  }, e.prototype.__iterator = function(r, n) {
4148
- var o = n ? this.size : 0, i = lo(this, n);
4148
+ var o = n ? this.size : 0, i = fo(this, n);
4149
4149
  return new C(function() {
4150
4150
  var s = i();
4151
4151
  return s === Ne ? ct() : F(r, n ? --o : o++, s);
4152
4152
  });
4153
4153
  }, e.prototype.__iterate = function(r, n) {
4154
- for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Ne && r(s, n ? --o : o++, this) !== !1; )
4154
+ for (var o = n ? this.size : 0, i = fo(this, n), s; (s = i()) !== Ne && r(s, n ? --o : o++, this) !== !1; )
4155
4155
  ;
4156
4156
  return o;
4157
4157
  }, e.prototype.__ensureOwner = function(r) {
@@ -4165,9 +4165,9 @@ var Dr = /* @__PURE__ */ (function(t) {
4165
4165
  this.__hash
4166
4166
  ) : this.size === 0 ? ar() : (this.__ownerID = r, this.__altered = !1, this);
4167
4167
  }, e;
4168
- })(Qt);
4169
- Dr.isList = yi;
4170
- var G = Dr.prototype;
4168
+ })(Gt);
4169
+ Ar.isList = yi;
4170
+ var G = Ar.prototype;
4171
4171
  G[vi] = !0;
4172
4172
  G[He] = G.remove;
4173
4173
  G.merge = G.concat;
@@ -4226,36 +4226,36 @@ Vt.prototype.removeAfter = function(t, e, r) {
4226
4226
  return s.array.splice(n + 1), o && (s.array[n] = o), s;
4227
4227
  };
4228
4228
  var Ne = {};
4229
- function lo(t, e) {
4229
+ function fo(t, e) {
4230
4230
  var r = t._origin, n = t._capacity, o = Le(n), i = t._tail;
4231
4231
  return s(t._root, t._level, 0);
4232
4232
  function s(c, l, f) {
4233
4233
  return l === 0 ? a(c, f) : u(c, l, f);
4234
4234
  }
4235
4235
  function a(c, l) {
4236
- var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, v = n - l;
4237
- return v > vt && (v = vt), function() {
4238
- if (h === v)
4236
+ var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
4237
+ return d > vt && (d = vt), function() {
4238
+ if (h === d)
4239
4239
  return Ne;
4240
- var y = e ? --v : h++;
4241
- return f && f[y];
4240
+ var _ = e ? --d : h++;
4241
+ return f && f[_];
4242
4242
  };
4243
4243
  }
4244
4244
  function u(c, l, f) {
4245
- var h, v = c && c.array, y = f > r ? 0 : r - f >> l, m = (n - f >> l) + 1;
4245
+ var h, d = c && c.array, _ = f > r ? 0 : r - f >> l, m = (n - f >> l) + 1;
4246
4246
  return m > vt && (m = vt), function() {
4247
4247
  for (; ; ) {
4248
4248
  if (h) {
4249
- var O = h();
4250
- if (O !== Ne)
4251
- return O;
4249
+ var k = h();
4250
+ if (k !== Ne)
4251
+ return k;
4252
4252
  h = null;
4253
4253
  }
4254
- if (y === m)
4254
+ if (_ === m)
4255
4255
  return Ne;
4256
- var D = e ? --m : y++;
4256
+ var D = e ? --m : _++;
4257
4257
  h = s(
4258
- v && v[D],
4258
+ d && d[D],
4259
4259
  l - P,
4260
4260
  f + (D << l)
4261
4261
  );
@@ -4278,8 +4278,8 @@ function Oa(t, e, r) {
4278
4278
  e < 0 ? qt(s, e).set(0, r) : qt(s, 0, e + 1).set(e, r);
4279
4279
  });
4280
4280
  e += t._origin;
4281
- var n = t._tail, o = t._root, i = rn();
4282
- return e >= Le(t._capacity) ? n = an(n, t.__ownerID, 0, e, r, i) : o = an(
4281
+ var n = t._tail, o = t._root, i = nn();
4282
+ return e >= Le(t._capacity) ? n = un(n, t.__ownerID, 0, e, r, i) : o = un(
4283
4283
  o,
4284
4284
  t.__ownerID,
4285
4285
  t._level,
@@ -4288,13 +4288,13 @@ function Oa(t, e, r) {
4288
4288
  i
4289
4289
  ), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Ve(t._origin, t._capacity, t._level, o, n) : t;
4290
4290
  }
4291
- function an(t, e, r, n, o, i) {
4291
+ function un(t, e, r, n, o, i) {
4292
4292
  var s = n >>> r & ut, a = t && s < t.array.length;
4293
4293
  if (!a && o === void 0)
4294
4294
  return t;
4295
4295
  var u;
4296
4296
  if (r > 0) {
4297
- var c = t && t.array[s], l = an(
4297
+ var c = t && t.array[s], l = un(
4298
4298
  c,
4299
4299
  e,
4300
4300
  r - P,
@@ -4336,17 +4336,17 @@ function qt(t, e, r) {
4336
4336
  c && c.array.length ? [c] : [],
4337
4337
  n
4338
4338
  ), u += P;
4339
- var v = t._tail, y = h < f ? _i(t, a - 1) : h > f ? new Vt([], n) : v;
4340
- if (v && h > f && s < i && v.array.length) {
4339
+ var d = t._tail, _ = h < f ? _i(t, a - 1) : h > f ? new Vt([], n) : d;
4340
+ if (d && h > f && s < i && d.array.length) {
4341
4341
  c = he(c, n);
4342
- for (var m = c, O = u; O > P; O -= P) {
4343
- var D = f >>> O & ut;
4342
+ for (var m = c, k = u; k > P; k -= P) {
4343
+ var D = f >>> k & ut;
4344
4344
  m = m.array[D] = he(m.array[D], n);
4345
4345
  }
4346
- m.array[f >>> P & ut] = v;
4346
+ m.array[f >>> P & ut] = d;
4347
4347
  }
4348
- if (a < i && (y = y && y.removeAfter(n, 0, a)), s >= h)
4349
- s -= h, a -= h, u = P, c = null, y = y && y.removeBefore(n, 0, s);
4348
+ if (a < i && (_ = _ && _.removeAfter(n, 0, a)), s >= h)
4349
+ s -= h, a -= h, u = P, c = null, _ = _ && _.removeBefore(n, 0, s);
4350
4350
  else if (s > o || h < f) {
4351
4351
  for (l = 0; c; ) {
4352
4352
  var rt = s >>> u & ut;
@@ -4360,7 +4360,7 @@ function qt(t, e, r) {
4360
4360
  h - l
4361
4361
  )), l && (s -= l, a -= l);
4362
4362
  }
4363
- return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Ve(s, a, u, c, y);
4363
+ return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = _, t.__hash = void 0, t.__altered = !0, t) : Ve(s, a, u, c, _);
4364
4364
  }
4365
4365
  function Le(t) {
4366
4366
  return t < vt ? 0 : t - 1 >>> P << P;
@@ -4387,9 +4387,9 @@ var $t = /* @__PURE__ */ (function(t) {
4387
4387
  }, e.prototype.clear = function() {
4388
4388
  return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._map.clear(), this._list.clear(), this.__altered = !0, this) : ke();
4389
4389
  }, e.prototype.set = function(r, n) {
4390
- return ho(this, r, n);
4390
+ return po(this, r, n);
4391
4391
  }, e.prototype.remove = function(r) {
4392
- return ho(this, r, R);
4392
+ return po(this, r, R);
4393
4393
  }, e.prototype.__iterate = function(r, n) {
4394
4394
  var o = this;
4395
4395
  return this._list.__iterate(
@@ -4414,11 +4414,11 @@ function jn(t, e, r, n) {
4414
4414
  var o = Object.create($t.prototype);
4415
4415
  return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4416
4416
  }
4417
- var fo;
4417
+ var ho;
4418
4418
  function ke() {
4419
- return fo || (fo = jn(zt(), ar()));
4419
+ return ho || (ho = jn(zt(), ar()));
4420
4420
  }
4421
- function ho(t, e, r) {
4421
+ function po(t, e, r) {
4422
4422
  var n = t._map, o = t._list, i = n.get(e), s = i !== void 0, a, u;
4423
4423
  if (r === R) {
4424
4424
  if (!s)
@@ -4437,13 +4437,13 @@ function ho(t, e, r) {
4437
4437
  return t.__ownerID ? (t.size = a.size, t._map = a, t._list = u, t.__hash = void 0, t.__altered = !0, t) : jn(a, u);
4438
4438
  }
4439
4439
  var mi = "@@__IMMUTABLE_STACK__@@";
4440
- function un(t) {
4440
+ function cn(t) {
4441
4441
  return !!(t && // @ts-expect-error: maybeStack is typed as `{}`, need to change in 6.0 to `maybeStack && typeof maybeStack === 'object' && MAYBE_STACK_SYMBOL in maybeStack`
4442
4442
  t[mi]);
4443
4443
  }
4444
4444
  var $n = /* @__PURE__ */ (function(t) {
4445
4445
  function e(r) {
4446
- return r == null ? or() : un(r) ? r : or().pushAll(r);
4446
+ return r == null ? or() : cn(r) ? r : or().pushAll(r);
4447
4447
  }
4448
4448
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
4449
4449
  return this(arguments);
@@ -4469,7 +4469,7 @@ var $n = /* @__PURE__ */ (function(t) {
4469
4469
  }, e.prototype.pushAll = function(r) {
4470
4470
  if (r = t(r), r.size === 0)
4471
4471
  return this;
4472
- if (this.size === 0 && un(r))
4472
+ if (this.size === 0 && cn(r))
4473
4473
  return r;
4474
4474
  dt(r.size);
4475
4475
  var n = this.size, o = this._head;
@@ -4488,9 +4488,9 @@ var $n = /* @__PURE__ */ (function(t) {
4488
4488
  }, e.prototype.clear = function() {
4489
4489
  return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : or();
4490
4490
  }, e.prototype.slice = function(r, n) {
4491
- if (Ir(r, n, this.size))
4491
+ if (Er(r, n, this.size))
4492
4492
  return this;
4493
- var o = Je(r, this.size), i = Er(n, this.size);
4493
+ var o = Je(r, this.size), i = Or(n, this.size);
4494
4494
  if (i !== this.size)
4495
4495
  return t.prototype.slice.call(this, r, n);
4496
4496
  for (var s = this.size - o, a = this._head; o--; )
@@ -4522,8 +4522,8 @@ var $n = /* @__PURE__ */ (function(t) {
4522
4522
  return ct();
4523
4523
  });
4524
4524
  }, e;
4525
- })(Qt);
4526
- $n.isStack = un;
4525
+ })(Gt);
4526
+ $n.isStack = cn;
4527
4527
  var lt = $n.prototype;
4528
4528
  lt[mi] = !0;
4529
4529
  lt.shift = lt.pop;
@@ -4543,11 +4543,11 @@ function De(t, e, r, n) {
4543
4543
  var o = Object.create(lt);
4544
4544
  return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4545
4545
  }
4546
- var po;
4546
+ var vo;
4547
4547
  function or() {
4548
- return po || (po = De(0));
4548
+ return vo || (vo = De(0));
4549
4549
  }
4550
- function vo(t, e, r, n, o, i) {
4550
+ function yo(t, e, r, n, o, i) {
4551
4551
  return dt(t.size), t.__iterate(function(s, a, u) {
4552
4552
  o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
4553
4553
  }, i), r;
@@ -4558,19 +4558,19 @@ function ka(t, e) {
4558
4558
  function Da(t, e) {
4559
4559
  return [e, t];
4560
4560
  }
4561
- function Ur(t) {
4561
+ function Wr(t) {
4562
4562
  return function() {
4563
4563
  for (var e = [], r = arguments.length; r--; ) e[r] = arguments[r];
4564
4564
  return !t.apply(this, e);
4565
4565
  };
4566
4566
  }
4567
- function yo(t) {
4567
+ function _o(t) {
4568
4568
  return function() {
4569
4569
  for (var e = [], r = arguments.length; r--; ) e[r] = arguments[r];
4570
4570
  return -t.apply(this, e);
4571
4571
  };
4572
4572
  }
4573
- function _o(t, e) {
4573
+ function go(t, e) {
4574
4574
  return t < e ? 1 : t > e ? -1 : 0;
4575
4575
  }
4576
4576
  function wi(t, e) {
@@ -4632,9 +4632,9 @@ var Aa = /* @__PURE__ */ (function(t) {
4632
4632
  n !== void 0,
4633
4633
  "You must define an end value when using Range"
4634
4634
  ), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
4635
- if (Wr)
4636
- return Wr;
4637
- Wr = this;
4635
+ if (Fr)
4636
+ return Fr;
4637
+ Fr = this;
4638
4638
  }
4639
4639
  }
4640
4640
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toString = function() {
@@ -4645,7 +4645,7 @@ var Aa = /* @__PURE__ */ (function(t) {
4645
4645
  var n = (r - this._start) / this._step;
4646
4646
  return n >= 0 && n < this.size && n === Math.floor(n);
4647
4647
  }, e.prototype.slice = function(r, n) {
4648
- return Ir(r, n, this.size) ? this : (r = Je(r, this.size), n = Er(n, this.size), n <= r ? new e(0, 0) : new e(
4648
+ return Er(r, n, this.size) ? this : (r = Je(r, this.size), n = Or(n, this.size), n <= r ? new e(0, 0) : new e(
4649
4649
  this.get(r, this._end),
4650
4650
  this.get(n, this._end),
4651
4651
  this._step
@@ -4675,12 +4675,12 @@ var Aa = /* @__PURE__ */ (function(t) {
4675
4675
  }, e.prototype.equals = function(r) {
4676
4676
  return r instanceof e ? this._start === r._start && this._end === r._end && this._step === r._step : wi(this, r);
4677
4677
  }, e;
4678
- })(kt), Wr, bi = "@@__IMMUTABLE_SET__@@";
4678
+ })(kt), Fr, bi = "@@__IMMUTABLE_SET__@@";
4679
4679
  function Tn(t) {
4680
4680
  return !!(t && // @ts-expect-error: maybeSet is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSet === 'object' && MAYBE_SET_SYMBOL in maybeSet`
4681
4681
  t[bi]);
4682
4682
  }
4683
- var Ar = /* @__PURE__ */ (function(t) {
4683
+ var zr = /* @__PURE__ */ (function(t) {
4684
4684
  function e(r) {
4685
4685
  return r == null ? Ae() : Tn(r) && !xt(r) ? r : Ae().withMutations(function(n) {
4686
4686
  var o = t(r);
@@ -4780,8 +4780,8 @@ var Ar = /* @__PURE__ */ (function(t) {
4780
4780
  return r ? this.__make(n, r) : this.size === 0 ? this.__empty() : (this.__ownerID = r, this._map = n, this);
4781
4781
  }, e;
4782
4782
  })(ye);
4783
- Ar.isSet = Tn;
4784
- var et = Ar.prototype;
4783
+ zr.isSet = Tn;
4784
+ var et = zr.prototype;
4785
4785
  et[bi] = !0;
4786
4786
  et[He] = et.remove;
4787
4787
  et.merge = et.concat = et.union;
@@ -4803,9 +4803,9 @@ function Si(t, e) {
4803
4803
  var r = Object.create(et);
4804
4804
  return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
4805
4805
  }
4806
- var go;
4806
+ var mo;
4807
4807
  function Ae() {
4808
- return go || (go = Si(zt()));
4808
+ return mo || (mo = Si(zt()));
4809
4809
  }
4810
4810
  function Ii(t, e, r) {
4811
4811
  for (var n = hi(e), o = 0; o !== n.length; )
@@ -4829,7 +4829,7 @@ function Oi() {
4829
4829
  t[r] = e;
4830
4830
  }), t;
4831
4831
  }
4832
- function gr(t) {
4832
+ function mr(t) {
4833
4833
  if (!t || typeof t != "object")
4834
4834
  return t;
4835
4835
  if (!_t(t)) {
@@ -4840,12 +4840,12 @@ function gr(t) {
4840
4840
  if (W(t)) {
4841
4841
  var e = {};
4842
4842
  return t.__iterate(function(n, o) {
4843
- e[o] = gr(n);
4843
+ e[o] = mr(n);
4844
4844
  }), e;
4845
4845
  }
4846
4846
  var r = [];
4847
4847
  return t.__iterate(function(n) {
4848
- r.push(gr(n));
4848
+ r.push(mr(n));
4849
4849
  }), r;
4850
4850
  }
4851
4851
  function Ra(t) {
@@ -4853,9 +4853,9 @@ function Ra(t) {
4853
4853
  return 0;
4854
4854
  var e = xt(t), r = W(t), n = e ? 1 : 0;
4855
4855
  return t.__iterate(r ? e ? function(o, i) {
4856
- n = 31 * n + mo(pt(o), pt(i)) | 0;
4856
+ n = 31 * n + wo(pt(o), pt(i)) | 0;
4857
4857
  } : function(o, i) {
4858
- n = n + mo(pt(o), pt(i)) | 0;
4858
+ n = n + wo(pt(o), pt(i)) | 0;
4859
4859
  } : e ? function(o) {
4860
4860
  n = 31 * n + pt(o) | 0;
4861
4861
  } : function(o) {
@@ -4863,19 +4863,19 @@ function Ra(t) {
4863
4863
  }), Ca(t.size, n);
4864
4864
  }
4865
4865
  function Ca(t, e) {
4866
- return e = Ee(e, 3432918353), e = Ee(e << 15 | e >>> -15, 461845907), e = Ee(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Ee(e ^ e >>> 16, 2246822507), e = Ee(e ^ e >>> 13, 3266489909), e = Or(e ^ e >>> 16), e;
4866
+ return e = Ee(e, 3432918353), e = Ee(e << 15 | e >>> -15, 461845907), e = Ee(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Ee(e ^ e >>> 16, 2246822507), e = Ee(e ^ e >>> 13, 3266489909), e = kr(e ^ e >>> 16), e;
4867
4867
  }
4868
- function mo(t, e) {
4868
+ function wo(t, e) {
4869
4869
  return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
4870
4870
  }
4871
- function Xt(t, e) {
4871
+ function Yt(t, e) {
4872
4872
  var r = function(n) {
4873
4873
  t.prototype[n] = e[n];
4874
4874
  };
4875
4875
  return Object.keys(e).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(r), t;
4876
4876
  }
4877
4877
  it.Iterator = C;
4878
- Xt(it, {
4878
+ Yt(it, {
4879
4879
  // ### Conversion to other types
4880
4880
  toArray: function() {
4881
4881
  dt(this.size);
@@ -4888,10 +4888,10 @@ Xt(it, {
4888
4888
  return new Jo(this);
4889
4889
  },
4890
4890
  toJS: function() {
4891
- return gr(this);
4891
+ return mr(this);
4892
4892
  },
4893
4893
  toKeyedSeq: function() {
4894
- return new kr(this, !0);
4894
+ return new Dr(this, !0);
4895
4895
  },
4896
4896
  toMap: function() {
4897
4897
  return we(this.toKeyedSeq());
@@ -4904,7 +4904,7 @@ Xt(it, {
4904
4904
  return Ue(W(this) ? this.valueSeq() : this);
4905
4905
  },
4906
4906
  toSet: function() {
4907
- return Ar(W(this) ? this.valueSeq() : this);
4907
+ return zr(W(this) ? this.valueSeq() : this);
4908
4908
  },
4909
4909
  toSetSeq: function() {
4910
4910
  return new Go(this);
@@ -4916,7 +4916,7 @@ Xt(it, {
4916
4916
  return $n(W(this) ? this.valueSeq() : this);
4917
4917
  },
4918
4918
  toList: function() {
4919
- return Dr(W(this) ? this.valueSeq() : this);
4919
+ return Ar(W(this) ? this.valueSeq() : this);
4920
4920
  },
4921
4921
  // ### Common JavaScript methods and properties
4922
4922
  toString: function() {
@@ -4973,7 +4973,7 @@ Xt(it, {
4973
4973
  return T(this, Xo(this, t, e));
4974
4974
  },
4975
4975
  reduce: function(t, e, r) {
4976
- return vo(
4976
+ return yo(
4977
4977
  this,
4978
4978
  t,
4979
4979
  e,
@@ -4983,7 +4983,7 @@ Xt(it, {
4983
4983
  );
4984
4984
  },
4985
4985
  reduceRight: function(t, e, r) {
4986
- return vo(
4986
+ return yo(
4987
4987
  this,
4988
4988
  t,
4989
4989
  e,
@@ -5042,7 +5042,7 @@ Xt(it, {
5042
5042
  }, e;
5043
5043
  },
5044
5044
  filterNot: function(t, e) {
5045
- return this.filter(Ur(t), e);
5045
+ return this.filter(Wr(t), e);
5046
5046
  },
5047
5047
  findEntry: function(t, e, r) {
5048
5048
  var n = r;
@@ -5120,13 +5120,13 @@ Xt(it, {
5120
5120
  min: function(t) {
5121
5121
  return rr(
5122
5122
  this,
5123
- t ? yo(t) : _o
5123
+ t ? _o(t) : go
5124
5124
  );
5125
5125
  },
5126
5126
  minBy: function(t, e) {
5127
5127
  return rr(
5128
5128
  this,
5129
- e ? yo(e) : _o,
5129
+ e ? _o(e) : go,
5130
5130
  t
5131
5131
  );
5132
5132
  },
@@ -5143,7 +5143,7 @@ Xt(it, {
5143
5143
  return T(this, ti(this, t, e, !0));
5144
5144
  },
5145
5145
  skipUntil: function(t, e) {
5146
- return this.skipWhile(Ur(t), e);
5146
+ return this.skipWhile(Wr(t), e);
5147
5147
  },
5148
5148
  sortBy: function(t, e) {
5149
5149
  return T(this, ce(this, e, t));
@@ -5158,7 +5158,7 @@ Xt(it, {
5158
5158
  return T(this, ra(this, t, e));
5159
5159
  },
5160
5160
  takeUntil: function(t, e) {
5161
- return this.takeWhile(Ur(t), e);
5161
+ return this.takeWhile(Wr(t), e);
5162
5162
  },
5163
5163
  update: function(t) {
5164
5164
  return t(this);
@@ -5176,7 +5176,7 @@ Xt(it, {
5176
5176
  });
5177
5177
  var st = it.prototype;
5178
5178
  st[To] = !0;
5179
- st[br] = st.values;
5179
+ st[Sr] = st.values;
5180
5180
  st.toJSON = st.toArray;
5181
5181
  st.__toStringMapper = qe;
5182
5182
  st.inspect = st.toSource = function() {
@@ -5184,7 +5184,7 @@ st.inspect = st.toSource = function() {
5184
5184
  };
5185
5185
  st.chain = st.flatMap;
5186
5186
  st.contains = st.includes;
5187
- Xt(Ot, {
5187
+ Yt(Ot, {
5188
5188
  // ### More sequential methods
5189
5189
  flip: function() {
5190
5190
  return T(this, Yo(this));
@@ -5209,16 +5209,16 @@ Xt(Ot, {
5209
5209
  }
5210
5210
  });
5211
5211
  var Xe = Ot.prototype;
5212
- Xe[yr] = !0;
5213
- Xe[br] = st.entries;
5212
+ Xe[_r] = !0;
5213
+ Xe[Sr] = st.entries;
5214
5214
  Xe.toJSON = Oi;
5215
5215
  Xe.__toStringMapper = function(t, e) {
5216
5216
  return qe(e) + ": " + qe(t);
5217
5217
  };
5218
- Xt(Qt, {
5218
+ Yt(Gt, {
5219
5219
  // ### Conversion to other types
5220
5220
  toKeyedSeq: function() {
5221
- return new kr(this, !1);
5221
+ return new Dr(this, !1);
5222
5222
  },
5223
5223
  // ### ES6 Collection methods (ES6 Array and Map)
5224
5224
  filter: function(t, e) {
@@ -5290,21 +5290,21 @@ Xt(Qt, {
5290
5290
  },
5291
5291
  zip: function() {
5292
5292
  var t = [this].concat(Dt(arguments));
5293
- return T(this, nr(this, wo, t));
5293
+ return T(this, nr(this, bo, t));
5294
5294
  },
5295
5295
  zipAll: function() {
5296
5296
  var t = [this].concat(Dt(arguments));
5297
- return T(this, nr(this, wo, t, !0));
5297
+ return T(this, nr(this, bo, t, !0));
5298
5298
  },
5299
5299
  zipWith: function(t) {
5300
5300
  var e = Dt(arguments);
5301
5301
  return e[0] = this, T(this, nr(this, t, e));
5302
5302
  }
5303
5303
  });
5304
- var Se = Qt.prototype;
5305
- Se[vr] = !0;
5304
+ var Se = Gt.prototype;
5305
+ Se[yr] = !0;
5306
5306
  Se[Ut] = !0;
5307
- Xt(ye, {
5307
+ Yt(ye, {
5308
5308
  // ### ES6 Collection methods (ES6 Array and Map)
5309
5309
  get: function(t, e) {
5310
5310
  return this.has(t) ? t : e;
@@ -5321,10 +5321,10 @@ var pe = ye.prototype;
5321
5321
  pe.has = st.includes;
5322
5322
  pe.contains = pe.includes;
5323
5323
  pe.keys = pe.values;
5324
- Xt(Ft, Xe);
5325
- Xt(kt, Se);
5326
- Xt(me, pe);
5327
- function wo() {
5324
+ Yt(Ft, Xe);
5325
+ Yt(kt, Se);
5326
+ Yt(me, pe);
5327
+ function bo() {
5328
5328
  return Dt(arguments);
5329
5329
  }
5330
5330
  function ki(t) {
@@ -5332,7 +5332,7 @@ function ki(t) {
5332
5332
  }
5333
5333
  var Ue = /* @__PURE__ */ (function(t) {
5334
5334
  function e(r) {
5335
- return r == null ? cn() : ki(r) ? r : cn().withMutations(function(n) {
5335
+ return r == null ? ln() : ki(r) ? r : ln().withMutations(function(n) {
5336
5336
  var o = ye(r);
5337
5337
  dt(o.size), o.forEach(function(i) {
5338
5338
  return n.add(i);
@@ -5346,25 +5346,25 @@ var Ue = /* @__PURE__ */ (function(t) {
5346
5346
  }, e.prototype.toString = function() {
5347
5347
  return this.__toString("OrderedSet {", "}");
5348
5348
  }, e;
5349
- })(Ar);
5349
+ })(zr);
5350
5350
  Ue.isOrderedSet = ki;
5351
- var Zt = Ue.prototype;
5352
- Zt[Ut] = !0;
5353
- Zt.zip = Se.zip;
5354
- Zt.zipWith = Se.zipWith;
5355
- Zt.zipAll = Se.zipAll;
5356
- Zt.__empty = cn;
5357
- Zt.__make = Di;
5351
+ var Xt = Ue.prototype;
5352
+ Xt[Ut] = !0;
5353
+ Xt.zip = Se.zip;
5354
+ Xt.zipWith = Se.zipWith;
5355
+ Xt.zipAll = Se.zipAll;
5356
+ Xt.__empty = ln;
5357
+ Xt.__make = Di;
5358
5358
  function Di(t, e) {
5359
- var r = Object.create(Zt);
5359
+ var r = Object.create(Xt);
5360
5360
  return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
5361
5361
  }
5362
- var bo;
5363
- function cn() {
5364
- return bo || (bo = Di(ke()));
5362
+ var So;
5363
+ function ln() {
5364
+ return So || (So = Di(ke()));
5365
5365
  }
5366
5366
  function Na(t) {
5367
- if (Yt(t))
5367
+ if (Qt(t))
5368
5368
  throw new Error(
5369
5369
  "Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
5370
5370
  );
@@ -5397,9 +5397,9 @@ var Z = function(t, e) {
5397
5397
  ) : Ma(o, l);
5398
5398
  }
5399
5399
  }
5400
- return this.__ownerID = void 0, this._values = Dr().withMutations(function(f) {
5401
- f.setSize(s._keys.length), Ot(i).forEach(function(h, v) {
5402
- f.set(s._indices[v], h === s._defaultValues[v] ? void 0 : h);
5400
+ return this.__ownerID = void 0, this._values = Ar().withMutations(function(f) {
5401
+ f.setSize(s._keys.length), Ot(i).forEach(function(h, d) {
5402
+ f.set(s._indices[d], h === s._defaultValues[d] ? void 0 : h);
5403
5403
  });
5404
5404
  }), this;
5405
5405
  }, o = n.prototype = Object.create(V);
@@ -5411,7 +5411,7 @@ Z.prototype.toString = function() {
5411
5411
  return t + " }";
5412
5412
  };
5413
5413
  Z.prototype.equals = function(t) {
5414
- return this === t || Yt(t) && de(this).equals(de(t));
5414
+ return this === t || Qt(t) && de(this).equals(de(t));
5415
5415
  };
5416
5416
  Z.prototype.hashCode = function() {
5417
5417
  return de(this).hashCode();
@@ -5450,7 +5450,7 @@ Z.prototype.toSeq = function() {
5450
5450
  return de(this);
5451
5451
  };
5452
5452
  Z.prototype.toJS = function() {
5453
- return gr(this);
5453
+ return mr(this);
5454
5454
  };
5455
5455
  Z.prototype.entries = function() {
5456
5456
  return this.__iterator(mt);
@@ -5467,7 +5467,7 @@ Z.prototype.__ensureOwner = function(t) {
5467
5467
  var e = this._values.__ensureOwner(t);
5468
5468
  return t ? Pn(this, e, t) : (this.__ownerID = t, this._values = e, this);
5469
5469
  };
5470
- Z.isRecord = Yt;
5470
+ Z.isRecord = Qt;
5471
5471
  Z.getDescriptiveName = qn;
5472
5472
  var V = Z.prototype;
5473
5473
  V[Wo] = !0;
@@ -5487,7 +5487,7 @@ V.updateIn = An;
5487
5487
  V.withMutations = Ye;
5488
5488
  V.asMutable = Qe;
5489
5489
  V.asImmutable = Ge;
5490
- V[br] = V.entries;
5490
+ V[Sr] = V.entries;
5491
5491
  V.toJSON = V.toObject = st.toObject;
5492
5492
  V.inspect = V.toSource = function() {
5493
5493
  return this.toString();
@@ -5532,27 +5532,27 @@ function Ta(...t) {
5532
5532
  set: $a
5533
5533
  }))) : A(e);
5534
5534
  }
5535
- function Fr(t) {
5535
+ function Br(t) {
5536
5536
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5537
5537
  }
5538
- const Br = /* @__PURE__ */ new WeakMap();
5538
+ const Kr = /* @__PURE__ */ new WeakMap();
5539
5539
  function Pa(t, e = !1) {
5540
5540
  const r = Tt(e);
5541
5541
  let n = "";
5542
5542
  J(Ta(t), (s) => {
5543
- const a = Fr(X(s));
5543
+ const a = Br(X(s));
5544
5544
  if (a) {
5545
5545
  const u = a;
5546
- if (Br.get(u) || Br.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5546
+ if (Kr.get(u) || Kr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5547
5547
  if (r.value) return u.style.overflow = "hidden";
5548
5548
  }
5549
5549
  }, { immediate: !0 });
5550
5550
  const o = () => {
5551
- const s = Fr(X(t));
5551
+ const s = Br(X(t));
5552
5552
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
5553
5553
  }, i = () => {
5554
- const s = Fr(X(t));
5555
- !s || !r.value || (s.style.overflow = n, Br.delete(s), r.value = !1);
5554
+ const s = Br(X(t));
5555
+ !s || !r.value || (s.style.overflow = n, Kr.delete(s), r.value = !1);
5556
5556
  };
5557
5557
  return ja(i), x({
5558
5558
  get() {
@@ -5594,27 +5594,27 @@ function Wa(...t) {
5594
5594
  set: Ua
5595
5595
  }))) : A(e);
5596
5596
  }
5597
- function Kr(t) {
5597
+ function Hr(t) {
5598
5598
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5599
5599
  }
5600
- const Hr = /* @__PURE__ */ new WeakMap();
5600
+ const Jr = /* @__PURE__ */ new WeakMap();
5601
5601
  function Fa(t, e = !1) {
5602
5602
  const r = Tt(e);
5603
5603
  let n = "";
5604
5604
  J(Wa(t), (s) => {
5605
- const a = Kr(X(s));
5605
+ const a = Hr(X(s));
5606
5606
  if (a) {
5607
5607
  const u = a;
5608
- if (Hr.get(u) || Hr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5608
+ if (Jr.get(u) || Jr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5609
5609
  if (r.value) return u.style.overflow = "hidden";
5610
5610
  }
5611
5611
  }, { immediate: !0 });
5612
5612
  const o = () => {
5613
- const s = Kr(X(t));
5613
+ const s = Hr(X(t));
5614
5614
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
5615
5615
  }, i = () => {
5616
- const s = Kr(X(t));
5617
- !s || !r.value || (s.style.overflow = n, Hr.delete(s), r.value = !1);
5616
+ const s = Hr(X(t));
5617
+ !s || !r.value || (s.style.overflow = n, Jr.delete(s), r.value = !1);
5618
5618
  };
5619
5619
  return La(i), x({
5620
5620
  get() {
@@ -5645,14 +5645,14 @@ const Ka = { class: "aform" }, Ha = {
5645
5645
  class: "aform-nested-label"
5646
5646
  }, Ga = /* @__PURE__ */ We({
5647
5647
  __name: "AForm",
5648
- props: /* @__PURE__ */ Ln({
5648
+ props: /* @__PURE__ */ Un({
5649
5649
  schema: {},
5650
5650
  mode: { default: "edit" }
5651
5651
  }, {
5652
5652
  data: { required: !0 },
5653
5653
  dataModifiers: {}
5654
5654
  }),
5655
- emits: /* @__PURE__ */ Ln(["update:schema", "update:data"], ["update:data"]),
5655
+ emits: /* @__PURE__ */ Un(["update:schema", "update:data"], ["update:data"]),
5656
5656
  setup(t, { emit: e }) {
5657
5657
  const r = e, n = Mi(t, "data"), o = A({});
5658
5658
  J(
@@ -5668,8 +5668,8 @@ const Ka = { class: "aform" }, Ha = {
5668
5668
  o.value[f] = h, n.value && (n.value[f] = h, r("update:data", { ...n.value }));
5669
5669
  }, s = (f) => {
5670
5670
  const h = {};
5671
- for (const [v, y] of Object.entries(f))
5672
- ["component", "fieldtype", "mode"].includes(v) || (h[v] = y), v === "rows" && (!y || Array.isArray(y) && y.length === 0) && (h.rows = n.value[f.fieldname] || []);
5671
+ for (const [d, _] of Object.entries(f))
5672
+ ["component", "fieldtype", "mode"].includes(d) || (h[d] = _), d === "rows" && (!_ || Array.isArray(_) && _.length === 0) && (h.rows = n.value[f.fieldname] || []);
5673
5673
  return h;
5674
5674
  }, a = x(() => t.mode ?? "edit");
5675
5675
  function u(f) {
@@ -5681,44 +5681,41 @@ const Ka = { class: "aform" }, Ha = {
5681
5681
  get() {
5682
5682
  return n.value?.[t.schema[h].fieldname];
5683
5683
  },
5684
- set: (v) => {
5685
- const y = t.schema[h].fieldname;
5686
- y && n.value && (n.value[y] = v, r("update:data", { ...n.value })), r("update:schema", t.schema);
5684
+ set: (d) => {
5685
+ const _ = t.schema[h].fieldname;
5686
+ _ && n.value && (n.value[_] = d, r("update:data", { ...n.value })), r("update:schema", t.schema);
5687
5687
  }
5688
5688
  })));
5689
5689
  });
5690
5690
  const l = x(() => c.value);
5691
- return (f, h) => {
5692
- const v = Ao("AForm", !0);
5693
- return $(), q("form", Ka, [
5694
- ($(!0), q(oe, null, Me(t.schema, (y, m) => ($(), q(oe, { key: m }, [
5695
- "schema" in y && Array.isArray(y.schema) && y.schema.length > 0 ? ($(), q("div", Ha, [
5696
- y.label ? ($(), q("h4", Ja, At(y.label), 1)) : ne("", !0),
5697
- Jt(v, {
5698
- data: o.value[y.fieldname],
5699
- mode: u(y),
5700
- schema: y.schema,
5701
- "onUpdate:data": (O) => i(y.fieldname, O)
5702
- }, null, 8, ["data", "mode", "schema", "onUpdate:data"])
5703
- ])) : ($(), ln($i(y.component), Ti({
5704
- key: 1,
5705
- modelValue: l.value[m].value,
5706
- "onUpdate:modelValue": (O) => l.value[m].value = O,
5707
- schema: y,
5708
- data: n.value[y.fieldname],
5709
- mode: u(y)
5710
- }, { ref_for: !0 }, s(y)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
5711
- ], 64))), 128))
5712
- ]);
5713
- };
5691
+ return (f, h) => (M(), q("form", Ka, [
5692
+ (M(!0), q(oe, null, Me(t.schema, (d, _) => (M(), q(oe, { key: _ }, [
5693
+ "schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), q("div", Ha, [
5694
+ d.label ? (M(), q("h4", Ja, At(d.label), 1)) : re("", !0),
5695
+ (M(), lr(Ln(d.component ?? "AForm"), {
5696
+ data: o.value[d.fieldname],
5697
+ mode: u(d),
5698
+ schema: d.schema,
5699
+ "onUpdate:data": (m) => i(d.fieldname, m)
5700
+ }, null, 40, ["data", "mode", "schema", "onUpdate:data"]))
5701
+ ])) : (M(), lr(Ln(d.component), $i({
5702
+ key: 1,
5703
+ modelValue: l.value[_].value,
5704
+ "onUpdate:modelValue": (m) => l.value[_].value = m,
5705
+ schema: d,
5706
+ data: n.value[d.fieldname],
5707
+ mode: u(d)
5708
+ }, { ref_for: !0 }, s(d)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
5709
+ ], 64))), 128))
5710
+ ]));
5714
5711
  }
5715
- }), Qa = /* @__PURE__ */ Va(Ga, [["__scopeId", "data-v-969d8869"]]), Ya = { class: "tabs" }, Xa = { tabindex: "0" }, Za = { tabindex: "0" }, tu = /* @__PURE__ */ We({
5712
+ }), Qa = /* @__PURE__ */ Va(Ga, [["__scopeId", "data-v-4d760d4f"]]), Ya = { class: "tabs" }, Xa = { tabindex: "0" }, Za = { tabindex: "0" }, tu = /* @__PURE__ */ We({
5716
5713
  __name: "SheetNav",
5717
5714
  props: {
5718
5715
  breadcrumbs: { default: () => [] }
5719
5716
  },
5720
5717
  setup(t) {
5721
- const e = A(!0), r = A(!1), n = A(""), o = So("searchinput"), i = x(() => e.value ? "unrotated" : "rotated"), s = () => {
5718
+ const e = A(!0), r = A(!1), n = A(""), o = Io("searchinput"), i = x(() => e.value ? "unrotated" : "rotated"), s = () => {
5722
5719
  e.value = !e.value;
5723
5720
  }, a = async () => {
5724
5721
  r.value = !r.value, await ie(() => {
@@ -5731,8 +5728,8 @@ const Ka = { class: "aform" }, Ha = {
5731
5728
  }, l = () => {
5732
5729
  };
5733
5730
  return (f, h) => {
5734
- const v = Ao("router-link");
5735
- return $(), q("footer", null, [
5731
+ const d = Ti("router-link");
5732
+ return M(), q("footer", null, [
5736
5733
  N("ul", Ya, [
5737
5734
  N("li", {
5738
5735
  class: "hidebreadcrumbs",
@@ -5747,11 +5744,11 @@ const Ka = { class: "aform" }, Ha = {
5747
5744
  ], 32),
5748
5745
  N("li", {
5749
5746
  class: "hometab",
5750
- style: xr({ display: e.value ? "block" : "none" }),
5747
+ style: Rr({ display: e.value ? "block" : "none" }),
5751
5748
  onClick: l,
5752
5749
  onKeydown: Ie(l, ["enter"])
5753
5750
  }, [
5754
- Jt(v, {
5751
+ ne(d, {
5755
5752
  to: "/",
5756
5753
  tabindex: "0"
5757
5754
  }, {
@@ -5773,10 +5770,10 @@ const Ka = { class: "aform" }, Ha = {
5773
5770
  ], 36),
5774
5771
  N("li", {
5775
5772
  class: ur(["searchtab", { "search-active": r.value }]),
5776
- style: xr({ display: e.value ? "block" : "none" })
5773
+ style: Rr({ display: e.value ? "block" : "none" })
5777
5774
  }, [
5778
5775
  N("a", Za, [
5779
- cr(($(), q("svg", {
5776
+ cr((M(), q("svg", {
5780
5777
  class: "icon search-icon",
5781
5778
  role: "button",
5782
5779
  "aria-label": "Search",
@@ -5794,37 +5791,37 @@ const Ka = { class: "aform" }, Ha = {
5794
5791
  }, null, -1),
5795
5792
  N("path", { d: "M21 21l-4.35-4.35" }, null, -1)
5796
5793
  ])], 544)), [
5797
- [Jr, !r.value]
5794
+ [Gr, !r.value]
5798
5795
  ]),
5799
5796
  cr(N("input", {
5800
5797
  ref: "searchinput",
5801
- "onUpdate:modelValue": h[0] || (h[0] = (y) => n.value = y),
5798
+ "onUpdate:modelValue": h[0] || (h[0] = (_) => n.value = _),
5802
5799
  type: "text",
5803
5800
  placeholder: "Search...",
5804
- onClick: h[1] || (h[1] = Io(() => {
5801
+ onClick: h[1] || (h[1] = Eo(() => {
5805
5802
  }, ["stop"])),
5806
- onInput: h[2] || (h[2] = (y) => u(y)),
5807
- onBlur: h[3] || (h[3] = (y) => c(y)),
5803
+ onInput: h[2] || (h[2] = (_) => u(_)),
5804
+ onBlur: h[3] || (h[3] = (_) => c(_)),
5808
5805
  onKeydown: [
5809
- h[4] || (h[4] = Ie((y) => c(y), ["enter"])),
5806
+ h[4] || (h[4] = Ie((_) => c(_), ["enter"])),
5810
5807
  Ie(a, ["escape"])
5811
5808
  ]
5812
5809
  }, null, 544), [
5813
- [Jr, r.value],
5814
- [Eo, n.value]
5810
+ [Gr, r.value],
5811
+ [Oo, n.value]
5815
5812
  ])
5816
5813
  ])
5817
5814
  ], 6),
5818
- ($(!0), q(oe, null, Me(t.breadcrumbs, (y) => ($(), q("li", {
5819
- key: y.title,
5820
- style: xr({ display: e.value ? "block" : "none" })
5815
+ (M(!0), q(oe, null, Me(t.breadcrumbs, (_) => (M(), q("li", {
5816
+ key: _.title,
5817
+ style: Rr({ display: e.value ? "block" : "none" })
5821
5818
  }, [
5822
- Jt(v, {
5819
+ ne(d, {
5823
5820
  tabindex: "0",
5824
- to: y.to
5821
+ to: _.to
5825
5822
  }, {
5826
5823
  default: je(() => [
5827
- lr(At(y.title), 1)
5824
+ fr(At(_.title), 1)
5828
5825
  ]),
5829
5826
  _: 2
5830
5827
  }, 1032, ["to"])
@@ -5851,24 +5848,24 @@ const Ka = { class: "aform" }, Ha = {
5851
5848
  setup(t, { emit: e }) {
5852
5849
  const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Ps(), s = A(!1), a = A(!1), u = x({
5853
5850
  get() {
5854
- if (!i.value || !f.value || !v.value)
5851
+ if (!i.value || !f.value || !d.value)
5855
5852
  return {};
5856
5853
  try {
5857
- return { ...i.value.getRecordById(f.value, v.value)?.get("") || {} };
5854
+ return { ...i.value.getRecordById(f.value, d.value)?.get("") || {} };
5858
5855
  } catch {
5859
5856
  return {};
5860
5857
  }
5861
5858
  },
5862
5859
  set(p) {
5863
- if (!(!i.value || !f.value || !v.value))
5860
+ if (!(!i.value || !f.value || !d.value))
5864
5861
  try {
5865
- const d = i.value.getStore();
5866
- for (const [I, j] of Object.entries(p)) {
5867
- const H = `${f.value}.${v.value}.${I}`;
5868
- (d.has(H) ? d.get(H) : void 0) !== j && d.set(H, j);
5862
+ const v = i.value.getStore();
5863
+ for (const [I, $] of Object.entries(p)) {
5864
+ const H = `${f.value}.${d.value}.${I}`;
5865
+ (v.has(H) ? v.get(H) : void 0) !== $ && v.set(H, $);
5869
5866
  }
5870
- } catch (d) {
5871
- console.warn("HST update failed:", d);
5867
+ } catch (v) {
5868
+ console.warn("HST update failed:", v);
5872
5869
  }
5873
5870
  }
5874
5871
  }), c = x(() => r.routeAdapter ? null : sr(i.value?.registry.router?.currentRoute)), l = x(() => r.routeAdapter ? null : i.value?.registry.router), f = x(() => {
@@ -5889,41 +5886,41 @@ const Ka = { class: "aform" }, Ha = {
5889
5886
  return c.value.params.doctype;
5890
5887
  const p = c.value.params.pathMatch;
5891
5888
  return p && p.length > 0 ? p[0] : "";
5892
- }), v = x(() => {
5889
+ }), d = x(() => {
5893
5890
  if (r.routeAdapter) return r.routeAdapter.getCurrentRecordId();
5894
5891
  if (!c.value) return "";
5895
5892
  if (c.value.params.recordId)
5896
5893
  return c.value.params.recordId;
5897
5894
  const p = c.value.params.pathMatch;
5898
5895
  return p && p.length > 1 ? p[1] : "";
5899
- }), y = x(() => v.value?.startsWith("new-")), m = x(() => {
5896
+ }), _ = x(() => d.value?.startsWith("new-")), m = x(() => {
5900
5897
  if (r.routeAdapter) return r.routeAdapter.getCurrentView();
5901
5898
  if (!c.value || c.value.name === "home" || c.value.path === "/")
5902
5899
  return "doctypes";
5903
5900
  if (c.value.name && c.value.name !== "catch-all") {
5904
- const d = c.value.name;
5905
- if (d.includes("form") || c.value.params.recordId)
5901
+ const v = c.value.name;
5902
+ if (v.includes("form") || c.value.params.recordId)
5906
5903
  return "record";
5907
- if (d.includes("list") || c.value.params.doctype)
5904
+ if (v.includes("list") || c.value.params.doctype)
5908
5905
  return "records";
5909
5906
  }
5910
5907
  const p = c.value.params.pathMatch;
5911
5908
  return p && p.length > 0 ? p.length === 1 ? "records" : "record" : "doctypes";
5912
- }), O = () => {
5913
- if (!i.value || !f.value || !v.value)
5909
+ }), k = () => {
5910
+ if (!i.value || !f.value || !d.value)
5914
5911
  return [];
5915
5912
  try {
5916
5913
  const p = i.value.registry.getDoctype(f.value);
5917
5914
  if (!p?.workflow) return [];
5918
- const d = i.value.getRecordState(f.value, v.value), I = p.getAvailableTransitions(d), j = u.value || {};
5915
+ const v = i.value.getRecordState(f.value, d.value), I = p.getAvailableTransitions(v), $ = u.value || {};
5919
5916
  return I.map(({ name: H, targetState: tt }) => ({
5920
5917
  label: `${H} (→ ${tt})`,
5921
5918
  action: () => {
5922
5919
  n("action", {
5923
5920
  name: H,
5924
5921
  doctype: f.value,
5925
- recordId: v.value,
5926
- data: j
5922
+ recordId: d.value,
5923
+ data: $
5927
5924
  });
5928
5925
  }
5929
5926
  }));
@@ -5943,11 +5940,11 @@ const Ka = { class: "aform" }, Ha = {
5943
5940
  });
5944
5941
  break;
5945
5942
  case "record": {
5946
- const d = O();
5947
- d.length > 0 && p.push({
5943
+ const v = k();
5944
+ v.length > 0 && p.push({
5948
5945
  type: "dropdown",
5949
5946
  label: "Actions",
5950
- actions: d
5947
+ actions: v
5951
5948
  });
5952
5949
  break;
5953
5950
  }
@@ -5961,16 +5958,16 @@ const Ka = { class: "aform" }, Ha = {
5961
5958
  { title: Q(h.value), to: `/${h.value}` }
5962
5959
  );
5963
5960
  else if (m.value === "record" && h.value) {
5964
- const d = v.value ? `/${h.value}/${v.value}` : c.value?.fullPath ?? "";
5961
+ const v = d.value ? `/${h.value}/${d.value}` : c.value?.fullPath ?? "";
5965
5962
  p.push(
5966
5963
  { title: "Home", to: "/" },
5967
5964
  { title: Q(h.value), to: `/${h.value}` },
5968
- { title: y.value ? "New Record" : "Edit Record", to: d }
5965
+ { title: _.value ? "New Record" : "Edit Record", to: v }
5969
5966
  );
5970
5967
  }
5971
5968
  return p;
5972
5969
  }), at = (p) => {
5973
- const d = [
5970
+ const v = [
5974
5971
  {
5975
5972
  title: "Go Home",
5976
5973
  description: "Navigate to the home page",
@@ -5984,48 +5981,48 @@ const Ka = { class: "aform" }, Ha = {
5984
5981
  action: () => a.value = !a.value
5985
5982
  }
5986
5983
  ];
5987
- return h.value && (d.push({
5984
+ return h.value && (v.push({
5988
5985
  title: `View ${Q(h.value)} Records`,
5989
5986
  description: `Navigate to ${h.value} list`,
5990
5987
  action: () => {
5991
5988
  E({ view: "records", doctype: h.value });
5992
5989
  }
5993
- }), d.push({
5990
+ }), v.push({
5994
5991
  title: `Create New ${Q(h.value)}`,
5995
5992
  description: `Create a new ${h.value} record`,
5996
5993
  action: () => {
5997
5994
  w();
5998
5995
  }
5999
5996
  })), o.forEach((I) => {
6000
- d.push({
5997
+ v.push({
6001
5998
  title: `View ${Q(I)}`,
6002
5999
  description: `Navigate to ${I} list`,
6003
6000
  action: () => {
6004
6001
  E({ view: "records", doctype: I });
6005
6002
  }
6006
6003
  });
6007
- }), p ? d.filter(
6004
+ }), p ? v.filter(
6008
6005
  (I) => I.title.toLowerCase().includes(p.toLowerCase()) || I.description.toLowerCase().includes(p.toLowerCase())
6009
- ) : d;
6006
+ ) : v;
6010
6007
  }, wt = (p) => {
6011
6008
  p.action(), a.value = !1;
6012
- }, Q = (p) => p.split("-").map((d) => d.charAt(0).toUpperCase() + d.slice(1)).join(" "), bt = (p) => i.value ? i.value.getRecordIds(p).length : 0, E = async (p) => {
6009
+ }, Q = (p) => p.split("-").map((v) => v.charAt(0).toUpperCase() + v.slice(1)).join(" "), bt = (p) => i.value ? i.value.getRecordIds(p).length : 0, E = async (p) => {
6013
6010
  n("navigate", p), r.routeAdapter ? await r.routeAdapter.navigate(p) : p.view === "doctypes" ? await l.value?.push("/") : p.view === "records" && p.doctype ? await l.value?.push(`/${p.doctype}`) : p.view === "record" && p.doctype && p.recordId && await l.value?.push(`/${p.doctype}/${p.recordId}`);
6014
6011
  }, Nt = async (p) => {
6015
6012
  await E({ view: "records", doctype: p });
6016
6013
  }, Y = async (p) => {
6017
- const d = h.value;
6018
- n("record:open", { doctype: d, recordId: p }), await E({ view: "record", doctype: d, recordId: p });
6014
+ const v = h.value;
6015
+ n("record:open", { doctype: v, recordId: p }), await E({ view: "record", doctype: v, recordId: p });
6019
6016
  }, w = async () => {
6020
6017
  const p = `new-${Date.now()}`;
6021
6018
  await E({ view: "record", doctype: h.value, recordId: p });
6022
6019
  }, b = () => {
6023
6020
  if (!o.length) return [];
6024
- const p = o.map((d) => ({
6025
- id: d,
6026
- doctype: d,
6027
- display_name: Q(d),
6028
- record_count: bt(d),
6021
+ const p = o.map((v) => ({
6022
+ id: v,
6023
+ doctype: v,
6024
+ display_name: Q(v),
6025
+ record_count: bt(v),
6029
6026
  actions: "View Records"
6030
6027
  }));
6031
6028
  return [
@@ -6076,10 +6073,10 @@ const Ka = { class: "aform" }, Ha = {
6076
6073
  }, z = () => {
6077
6074
  if (!f.value) return [];
6078
6075
  if (!i.value) return [];
6079
- const p = k(), d = M(), I = r.recordIdField || "id";
6080
- if (d.length === 0)
6076
+ const p = O(), v = j(), I = r.recordIdField || "id";
6077
+ if (v.length === 0)
6081
6078
  return [];
6082
- const j = d.find((ot) => ot.fieldname === I), H = d.filter((ot) => ot.fieldname !== I), tt = j ? [j, ...H] : d, nt = p.map((ot) => ({
6079
+ const $ = v.find((ot) => ot.fieldname === I), H = v.filter((ot) => ot.fieldname !== I), tt = $ ? [$, ...H] : v, nt = p.map((ot) => ({
6083
6080
  ...ot,
6084
6081
  // Use the canonical ID field for navigation
6085
6082
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
@@ -6119,28 +6116,25 @@ const Ka = { class: "aform" }, Ha = {
6119
6116
  if (!f.value) return [];
6120
6117
  if (!i.value) return [];
6121
6118
  try {
6122
- const p = i.value?.registry, d = p?.registry[f.value];
6123
- if (!d?.schema)
6124
- return [];
6125
- const I = "toArray" in d.schema ? d.schema.toArray() : d.schema;
6126
- return p.resolveSchema(I);
6119
+ const p = i.value?.registry, v = p?.registry[f.value];
6120
+ return v?.schema ? p.resolveSchema(v) : [];
6127
6121
  } catch {
6128
6122
  return [];
6129
6123
  }
6130
- }, k = () => {
6124
+ }, O = () => {
6131
6125
  if (!i.value || !f.value)
6132
6126
  return [];
6133
- const d = i.value.records(f.value)?.get("");
6134
- return d && typeof d == "object" && !Array.isArray(d) ? Object.values(d) : [];
6135
- }, M = () => {
6127
+ const v = i.value.records(f.value)?.get("");
6128
+ return v && typeof v == "object" && !Array.isArray(v) ? Object.values(v) : [];
6129
+ }, j = () => {
6136
6130
  if (!i.value || !f.value) return [];
6137
6131
  try {
6138
- const d = i.value.registry.registry[f.value];
6139
- if (d?.schema)
6140
- return ("toArray" in d.schema ? d.schema.toArray() : d.schema).map((j) => ({
6141
- fieldname: j.fieldname,
6142
- label: "label" in j && j.label || j.fieldname,
6143
- fieldtype: "fieldtype" in j && j.fieldtype || "Data"
6132
+ const v = i.value.registry.registry[f.value];
6133
+ if (v?.schema)
6134
+ return ("toArray" in v.schema ? v.schema.toArray() : v.schema).map(($) => ({
6135
+ fieldname: $.fieldname,
6136
+ label: "label" in $ && $.label || $.fieldname,
6137
+ fieldtype: "fieldtype" in $ && $.fieldtype || "Data"
6144
6138
  }));
6145
6139
  } catch {
6146
6140
  }
@@ -6156,34 +6150,34 @@ const Ka = { class: "aform" }, Ha = {
6156
6150
  default:
6157
6151
  return [];
6158
6152
  }
6159
- }), Pt = (p, d) => {
6160
- d && d();
6153
+ }), Pt = (p, v) => {
6154
+ v && v();
6161
6155
  }, ht = async (p) => {
6162
- const d = p || v.value;
6163
- if (!d) return;
6156
+ const v = p || d.value;
6157
+ if (!v) return;
6164
6158
  (r.confirmFn ? await r.confirmFn("Are you sure you want to delete this record?") : confirm("Are you sure you want to delete this record?")) && n("action", {
6165
6159
  name: "DELETE",
6166
6160
  doctype: f.value,
6167
- recordId: d,
6161
+ recordId: v,
6168
6162
  data: u.value || {}
6169
6163
  });
6170
6164
  }, K = (p) => {
6171
- const d = p.querySelector("td[data-rowindex]");
6172
- if (!d) return null;
6173
- const I = d.getAttribute("data-rowindex");
6165
+ const v = p.querySelector("td[data-rowindex]");
6166
+ if (!v) return null;
6167
+ const I = v.getAttribute("data-rowindex");
6174
6168
  if (I === null) return null;
6175
- const j = parseInt(I, 10);
6176
- if (isNaN(j)) return null;
6177
- const tt = k()[j];
6169
+ const $ = parseInt(I, 10);
6170
+ if (isNaN($)) return null;
6171
+ const tt = O()[$];
6178
6172
  if (!tt) return null;
6179
6173
  const nt = r.recordIdField || "id";
6180
6174
  return tt[nt] || tt.id || null;
6181
6175
  }, S = async (p) => {
6182
- const d = p.target;
6183
- d.getAttribute("data-action") === "create" && await w();
6184
- const j = d.closest("td, th");
6185
- if (j) {
6186
- const H = j.textContent?.trim(), tt = j.closest("tr");
6176
+ const v = p.target;
6177
+ v.getAttribute("data-action") === "create" && await w();
6178
+ const $ = v.closest("td, th");
6179
+ if ($) {
6180
+ const H = $.textContent?.trim(), tt = $.closest("tr");
6187
6181
  if (H === "View Records" && tt) {
6188
6182
  const nt = tt.querySelectorAll("td");
6189
6183
  if (nt.length > 0) {
@@ -6198,11 +6192,11 @@ const Ka = { class: "aform" }, Ha = {
6198
6192
  nt && await ht(nt);
6199
6193
  }
6200
6194
  }
6201
- }, _ = () => {
6195
+ }, y = () => {
6202
6196
  if (!(!i.value || !f.value)) {
6203
6197
  s.value = !0;
6204
6198
  try {
6205
- y.value || i.value.getRecordById(f.value, v.value);
6199
+ _.value || i.value.getRecordById(f.value, d.value);
6206
6200
  } catch (p) {
6207
6201
  console.warn("Error loading record data:", p);
6208
6202
  } finally {
@@ -6211,12 +6205,12 @@ const Ka = { class: "aform" }, Ha = {
6211
6205
  }
6212
6206
  };
6213
6207
  return J(
6214
- [m, f, v],
6208
+ [m, f, d],
6215
6209
  () => {
6216
- m.value === "records" && f.value ? n("load-records", { doctype: f.value }) : m.value === "record" && f.value && v.value && (n("load-record", { doctype: f.value, recordId: v.value }), _());
6210
+ m.value === "records" && f.value ? n("load-records", { doctype: f.value }) : m.value === "record" && f.value && d.value && (n("load-record", { doctype: f.value, recordId: d.value }), y());
6217
6211
  },
6218
6212
  { immediate: !0 }
6219
- ), Qr("desktopMethods", {
6213
+ ), Yr("desktopMethods", {
6220
6214
  navigateToDoctype: Nt,
6221
6215
  openRecord: Y,
6222
6216
  createNewRecord: w,
@@ -6225,52 +6219,52 @@ const Ka = { class: "aform" }, Ha = {
6225
6219
  * Convenience wrapper so child components (e.g. slot content) can emit
6226
6220
  * an action event without needing a direct reference to the emit function.
6227
6221
  */
6228
- emitAction: (p, d) => {
6222
+ emitAction: (p, v) => {
6229
6223
  n("action", {
6230
6224
  name: p,
6231
6225
  doctype: f.value,
6232
- recordId: v.value,
6233
- data: d ?? u.value ?? {}
6226
+ recordId: d.value,
6227
+ data: v ?? u.value ?? {}
6234
6228
  });
6235
6229
  }
6236
- }), mr(() => {
6237
- const p = (d) => {
6238
- (d.ctrlKey || d.metaKey) && d.key === "k" && (d.preventDefault(), a.value = !0), d.key === "Escape" && a.value && (a.value = !1);
6230
+ }), wr(() => {
6231
+ const p = (v) => {
6232
+ (v.ctrlKey || v.metaKey) && v.key === "k" && (v.preventDefault(), a.value = !0), v.key === "Escape" && a.value && (a.value = !1);
6239
6233
  };
6240
6234
  return document.addEventListener("keydown", p), () => {
6241
6235
  document.removeEventListener("keydown", p);
6242
6236
  };
6243
- }), (p, d) => ($(), q("div", {
6237
+ }), (p, v) => (M(), q("div", {
6244
6238
  class: "desktop",
6245
6239
  onClick: S
6246
6240
  }, [
6247
- Jt(xo, {
6241
+ ne(xo, {
6248
6242
  elements: D.value,
6249
6243
  onActionClick: Pt
6250
6244
  }, null, 8, ["elements"]),
6251
- U.value.length > 0 ? ($(), ln(sr(Qa), {
6245
+ U.value.length > 0 ? (M(), lr(sr(Qa), {
6252
6246
  key: 0,
6253
6247
  data: u.value,
6254
- "onUpdate:data": d[0] || (d[0] = (I) => u.value = I),
6248
+ "onUpdate:data": v[0] || (v[0] = (I) => u.value = I),
6255
6249
  schema: U.value
6256
- }, null, 8, ["data", "schema"])) : sr(i) ? ($(), q("div", ru, [
6250
+ }, null, 8, ["data", "schema"])) : sr(i) ? (M(), q("div", ru, [
6257
6251
  N("p", null, "Loading " + At(m.value) + " data...", 1)
6258
- ])) : ($(), q("div", eu, [...d[2] || (d[2] = [
6252
+ ])) : (M(), q("div", eu, [...v[2] || (v[2] = [
6259
6253
  N("p", null, "Initializing Stonecrop...", -1)
6260
6254
  ])])),
6261
- Jt(Ai, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
6262
- Jt(Ro, {
6255
+ ne(Ai, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
6256
+ ne(Ro, {
6263
6257
  "is-open": a.value,
6264
6258
  search: at,
6265
6259
  placeholder: "Type a command or search...",
6266
6260
  onSelect: wt,
6267
- onClose: d[1] || (d[1] = (I) => a.value = !1)
6261
+ onClose: v[1] || (v[1] = (I) => a.value = !1)
6268
6262
  }, {
6269
6263
  title: je(({ result: I }) => [
6270
- lr(At(I.title), 1)
6264
+ fr(At(I.title), 1)
6271
6265
  ]),
6272
6266
  content: je(({ result: I }) => [
6273
- lr(At(I.description), 1)
6267
+ fr(At(I.description), 1)
6274
6268
  ]),
6275
6269
  _: 1
6276
6270
  }, 8, ["is-open"])