@quickflo/quickforms-quasar 1.19.26 → 1.19.27

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SchemaUtils as pm, ComponentRegistry as P0, rankWith as Ue, hasConst as q0, hasXRender as Zt, isStringType as B0, isNumberType as L0, isBooleanType as R0, isEnumType as E0, isDateFormat as I0, isTimeFormat as V0, isDateTimeFormat as F0, isRecordType as N0, isJsonType as H0, isObjectType as z0, isArrayType as dh, hasOneOf as j0, hasAnyOf as Q0, hasAllOf as W0 } from "@quickflo/quickforms";
2
2
  import { ComponentRegistry as lD, SchemaUtils as aD, and as uD, hasAllOf as cD, hasAnyOf as hD, hasConditional as dD, hasConst as fD, hasExtension as mD, hasFormat as gD, hasOneOf as pD, isArrayType as vD, isBooleanType as yD, isDateFormat as bD, isDateTimeFormat as xD, isDiscriminatedUnion as kD, isEmailFormat as wD, isEnumType as SD, isIntegerType as CD, isJsonType as MD, isNullType as AD, isNumberType as TD, isObjectType as OD, isRecordType as DD, isStringType as _D, isTimeFormat as PD, isUrlFormat as qD, not as BD, or as LD, rankWith as RD } from "@quickflo/quickforms";
3
- import { computed as x, markRaw as vm, defineComponent as Bt, reactive as ym, h as _, withDirectives as vn, getCurrentInstance as We, ref as te, onMounted as Ti, watch as ge, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ft, nextTick as st, onDeactivated as Qo, onActivated as cc, Transition as pi, onUnmounted as U0, Teleport as K0, unref as Y0, provide as xm, createElementBlock as se, openBlock as Z, normalizeStyle as mt, createVNode as Y, mergeProps as lt, createSlots as Ji, withCtx as W, createTextVNode as Ie, createElementVNode as le, toDisplayString as Se, createBlock as Ke, createCommentVNode as ee, toRaw as Un, onBeforeMount as G0, onUpdated as J0, normalizeProps as X0, guardReactiveProps as Z0, shallowReactive as $0, vShow as km, normalizeClass as Rl, Fragment as Ct, renderList as dn, renderSlot as Tn, withModifiers as iu, shallowRef as ua } from "vue";
3
+ import { computed as x, markRaw as vm, defineComponent as Lt, reactive as ym, h as _, withDirectives as vn, getCurrentInstance as We, ref as te, onMounted as Ti, watch as ge, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ft, nextTick as st, onDeactivated as Qo, onActivated as cc, Transition as pi, onUnmounted as U0, Teleport as K0, unref as Y0, provide as xm, createElementBlock as se, openBlock as Z, normalizeStyle as mt, createVNode as Y, mergeProps as lt, createSlots as Ji, withCtx as W, createTextVNode as Ie, createElementVNode as le, toDisplayString as Se, createBlock as Ke, createCommentVNode as ee, toRaw as Un, onBeforeMount as G0, onUpdated as J0, normalizeProps as X0, guardReactiveProps as Z0, shallowReactive as $0, vShow as km, normalizeClass as Rl, Fragment as Ct, renderList as dn, renderSlot as Tn, withModifiers as iu, shallowRef as ua } from "vue";
4
4
  import { useFormContext as ey, useFormField as ty, generateFieldId as iy, FieldRenderer as El, HiddenField as ny } from "@quickflo/quickforms-vue";
5
5
  import { useFormContext as ID, useWatchFormValue as VD, useWatchFormValues as FD } from "@quickflo/quickforms-vue";
6
6
  const nu = {
@@ -23,7 +23,7 @@ function Yr(i, e, t, n) {
23
23
  }), i;
24
24
  }
25
25
  function $e(i) {
26
- return vm(Bt(i));
26
+ return vm(Lt(i));
27
27
  }
28
28
  function hc(i) {
29
29
  return vm(i);
@@ -41,7 +41,7 @@ const ry = (i, e) => {
41
41
  );
42
42
  return e;
43
43
  };
44
- function qt(i, e) {
44
+ function Bt(i, e) {
45
45
  return i !== void 0 && i() || e;
46
46
  }
47
47
  function oy(i, e) {
@@ -169,7 +169,7 @@ const fh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, wm = {
169
169
  style: n.value,
170
170
  "aria-hidden": "true"
171
171
  };
172
- return o.value.none === !0 ? _(i.tag, s, qt(e.default)) : o.value.img === !0 ? _(i.tag, s, On(e.default, [
172
+ return o.value.none === !0 ? _(i.tag, s, Bt(e.default)) : o.value.img === !0 ? _(i.tag, s, On(e.default, [
173
173
  _("img", { src: o.value.src })
174
174
  ])) : o.value.svg === !0 ? _(i.tag, s, On(e.default, [
175
175
  _("svg", {
@@ -232,9 +232,9 @@ const Mm = $e({
232
232
  }
233
233
  });
234
234
  let da, ss = 0;
235
- const It = new Array(256);
235
+ const Vt = new Array(256);
236
236
  for (let i = 0; i < 256; i++)
237
- It[i] = (i + 256).toString(16).substring(1);
237
+ Vt[i] = (i + 256).toString(16).substring(1);
238
238
  const vy = (() => {
239
239
  const i = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
240
240
  if (i !== void 0) {
@@ -256,7 +256,7 @@ const vy = (() => {
256
256
  function el() {
257
257
  (da === void 0 || ss + 16 > gh) && (ss = 0, da = vy(gh));
258
258
  const i = Array.prototype.slice.call(da, ss, ss += 16);
259
- return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, It[i[0]] + It[i[1]] + It[i[2]] + It[i[3]] + "-" + It[i[4]] + It[i[5]] + "-" + It[i[6]] + It[i[7]] + "-" + It[i[8]] + It[i[9]] + "-" + It[i[10]] + It[i[11]] + It[i[12]] + It[i[13]] + It[i[14]] + It[i[15]];
259
+ return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Vt[i[0]] + Vt[i[1]] + Vt[i[2]] + Vt[i[3]] + "-" + Vt[i[4]] + Vt[i[5]] + "-" + Vt[i[6]] + Vt[i[7]] + "-" + Vt[i[8]] + Vt[i[9]] + "-" + Vt[i[10]] + Vt[i[11]] + Vt[i[12]] + Vt[i[13]] + Vt[i[14]] + Vt[i[15]];
260
260
  }
261
261
  const Ir = te(
262
262
  !1
@@ -336,7 +336,7 @@ const ph = navigator.userAgent || navigator.vendor || window.opera, ky = {
336
336
  webStorage: !1
337
337
  },
338
338
  within: { iframe: !1 }
339
- }, _t = {
339
+ }, Pt = {
340
340
  userAgent: ph,
341
341
  is: xy(ph),
342
342
  has: {
@@ -349,13 +349,13 @@ const ph = navigator.userAgent || navigator.vendor || window.opera, ky = {
349
349
  install(i) {
350
350
  const { $q: e } = i;
351
351
  Ir.value === !0 ? (i.onSSRHydrated.push(() => {
352
- Object.assign(e.platform, _t), Ir.value = !1;
352
+ Object.assign(e.platform, Pt), Ir.value = !1;
353
353
  }), e.platform = ym(this)) : e.platform = this;
354
354
  }
355
355
  };
356
356
  {
357
357
  let i;
358
- Yr(_t.has, "webStorage", () => {
358
+ Yr(Pt.has, "webStorage", () => {
359
359
  if (i !== void 0)
360
360
  return i;
361
361
  try {
@@ -364,7 +364,7 @@ const ph = navigator.userAgent || navigator.vendor || window.opera, ky = {
364
364
  } catch {
365
365
  }
366
366
  return i = !1, !1;
367
- }), Object.assign(ou, _t), Ir.value === !0 && (Object.assign(ou, ru, ky), ru = null);
367
+ }), Object.assign(ou, Pt), Ir.value === !0 && (Object.assign(ou, ru, ky), ru = null);
368
368
  }
369
369
  function wy(i) {
370
370
  return i ?? null;
@@ -536,7 +536,7 @@ function Dy(i, e) {
536
536
  resetValidation: m
537
537
  };
538
538
  }
539
- const Ot = {
539
+ const Dt = {
540
540
  hasPassive: !1,
541
541
  passiveCapture: !0,
542
542
  notPassiveCapture: !0
@@ -544,7 +544,7 @@ const Ot = {
544
544
  try {
545
545
  const i = Object.defineProperty({}, "passive", {
546
546
  get() {
547
- Object.assign(Ot, {
547
+ Object.assign(Dt, {
548
548
  hasPassive: !0,
549
549
  passive: { passive: !0 },
550
550
  notPassive: { passive: !1 },
@@ -583,7 +583,7 @@ function Py(i) {
583
583
  function gi(i) {
584
584
  i.stopPropagation();
585
585
  }
586
- function ti(i) {
586
+ function ii(i) {
587
587
  i.cancelable !== !1 && i.preventDefault();
588
588
  }
589
589
  function dt(i) {
@@ -593,22 +593,22 @@ function ga(i, e) {
593
593
  if (i === void 0 || e === !0 && i.__dragPrevented === !0)
594
594
  return;
595
595
  const t = e === !0 ? (n) => {
596
- n.__dragPrevented = !0, n.addEventListener("dragstart", ti, Ot.notPassiveCapture);
596
+ n.__dragPrevented = !0, n.addEventListener("dragstart", ii, Dt.notPassiveCapture);
597
597
  } : (n) => {
598
- delete n.__dragPrevented, n.removeEventListener("dragstart", ti, Ot.notPassiveCapture);
598
+ delete n.__dragPrevented, n.removeEventListener("dragstart", ii, Dt.notPassiveCapture);
599
599
  };
600
600
  i.querySelectorAll("a, img").forEach(t);
601
601
  }
602
602
  function an(i, e, t) {
603
603
  const n = `__q_${e}_evt`;
604
604
  i[n] = i[n] !== void 0 ? i[n].concat(t) : t, t.forEach((r) => {
605
- r[0].addEventListener(r[1], i[r[2]], Ot[r[3]]);
605
+ r[0].addEventListener(r[1], i[r[2]], Dt[r[3]]);
606
606
  });
607
607
  }
608
608
  function tr(i, e) {
609
609
  const t = `__q_${e}_evt`;
610
610
  i[t] !== void 0 && (i[t].forEach((n) => {
611
- n[0].removeEventListener(n[1], i[n[2]], Ot[n[3]]);
611
+ n[0].removeEventListener(n[1], i[n[2]], Dt[n[3]]);
612
612
  }), i[t] = void 0);
613
613
  }
614
614
  let Xn = [], So = [];
@@ -790,7 +790,7 @@ function gc(i) {
790
790
  _("div", {
791
791
  class: "q-field__prepend q-field__marginal row no-wrap items-center",
792
792
  key: "prepend",
793
- onClick: ti
793
+ onClick: ii
794
794
  }, n.prepend())
795
795
  ), N.push(
796
796
  _("div", {
@@ -822,7 +822,7 @@ function gc(i) {
822
822
  _("div", {
823
823
  class: "q-field__append q-field__marginal row no-wrap items-center",
824
824
  key: "append",
825
- onClick: ti
825
+ onClick: ii
826
826
  }, n.append())
827
827
  ), i.getInnerAppend !== void 0 && N.push(
828
828
  U("inner-append", i.getInnerAppend())
@@ -841,7 +841,7 @@ function gc(i) {
841
841
  ), C.value === !0 && N.push(
842
842
  _("div", {
843
843
  class: v.value
844
- }, qt(n.label, e.label))
844
+ }, Bt(n.label, e.label))
845
845
  ), i.getControl !== void 0 ? N.push(i.getControl()) : n.rawControl !== void 0 ? N.push(n.rawControl()) : n.control !== void 0 && N.push(
846
846
  _("div", {
847
847
  ref: i.targetRef,
@@ -854,11 +854,11 @@ function gc(i) {
854
854
  _("div", {
855
855
  class: "q-field__suffix no-pointer-events row items-center"
856
856
  }, e.suffix)
857
- ), N.concat(qt(n.default));
857
+ ), N.concat(Bt(n.default));
858
858
  }
859
859
  function F() {
860
860
  let N, $;
861
- c.value === !0 ? h.value !== null ? (N = [_("div", { role: "alert" }, h.value)], $ = `q--slot-error-${h.value}`) : (N = qt(n.error), $ = "q--slot-error") : (e.hideHint !== !0 || i.focused.value === !0) && (e.hint !== void 0 ? (N = [_("div", e.hint)], $ = `q--slot-hint-${e.hint}`) : (N = qt(n.hint), $ = "q--slot-hint"));
861
+ c.value === !0 ? h.value !== null ? (N = [_("div", { role: "alert" }, h.value)], $ = `q--slot-error-${h.value}`) : (N = Bt(n.error), $ = "q--slot-error") : (e.hideHint !== !0 || i.focused.value === !0) && (e.hint !== void 0 ? (N = [_("div", e.hint)], $ = `q--slot-hint-${e.hint}`) : (N = Bt(n.hint), $ = "q--slot-hint"));
862
862
  const be = e.counter === !0 || n.counter !== void 0;
863
863
  if (e.hideBottomSpace === !0 && be === !1 && N === void 0) return;
864
864
  const E = _("div", {
@@ -867,7 +867,7 @@ function gc(i) {
867
867
  }, N);
868
868
  return _("div", {
869
869
  class: "q-field__bottom row items-start q-field__bottom--" + (e.hideBottomSpace !== !0 ? "animated" : "stale"),
870
- onClick: ti
870
+ onClick: ii
871
871
  }, [
872
872
  e.hideBottomSpace === !0 ? E : _(pi, { name: "q-transition--field-message" }, () => E),
873
873
  be === !0 ? _("div", {
@@ -907,7 +907,7 @@ function gc(i) {
907
907
  }, [
908
908
  n.before !== void 0 ? _("div", {
909
909
  class: "q-field__before q-field__marginal row no-wrap items-center",
910
- onClick: ti
910
+ onClick: ii
911
911
  }, n.before()) : null,
912
912
  _("div", {
913
913
  class: "q-field__inner relative-position col self-stretch"
@@ -922,7 +922,7 @@ function gc(i) {
922
922
  ]),
923
923
  n.after !== void 0 ? _("div", {
924
924
  class: "q-field__after q-field__marginal row no-wrap items-center",
925
- onClick: ti
925
+ onClick: ii
926
926
  }, n.after()) : null
927
927
  ]);
928
928
  };
@@ -1268,7 +1268,7 @@ function Rm(i) {
1268
1268
  if (t.type === "compositionend" || t.type === "change") {
1269
1269
  if (t.target.qComposing !== !0) return;
1270
1270
  t.target.qComposing = !1, i(t);
1271
- } else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (_t.is.firefox === !0 ? jy.test(t.data) === !1 : Ny.test(t.data) === !0 || Hy.test(t.data) === !0 || zy.test(t.data) === !0) === !0 && (t.target.qComposing = !0);
1271
+ } else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (Pt.is.firefox === !0 ? jy.test(t.data) === !1 : Ny.test(t.data) === !0 || Hy.test(t.data) === !0 || zy.test(t.data) === !0) === !0 && (t.target.qComposing = !0);
1272
1272
  };
1273
1273
  }
1274
1274
  const dr = $e({
@@ -1512,11 +1512,11 @@ function vc({
1512
1512
  mn(f, 13) === !0 && u.toggle(f);
1513
1513
  },
1514
1514
  contextClick(f) {
1515
- r.hide(f), ti(f), st(() => {
1515
+ r.hide(f), ii(f), st(() => {
1516
1516
  r.show(f), f.qAnchorHandled = !0;
1517
1517
  });
1518
1518
  },
1519
- prevent: ti,
1519
+ prevent: ii,
1520
1520
  mobileTouch(f) {
1521
1521
  if (u.mobileCleanup(f), a(f) !== !0) return;
1522
1522
  r.hide(f), s.value.classList.add("non-selectable");
@@ -1591,7 +1591,7 @@ function Vm(i, e) {
1591
1591
  let n;
1592
1592
  function r(l, a) {
1593
1593
  const u = `${a !== void 0 ? "add" : "remove"}EventListener`, c = a !== void 0 ? a : n;
1594
- l !== window && l[u]("scroll", c, Ot.passive), window[u]("scroll", c, Ot.passive), n = a;
1594
+ l !== window && l[u]("scroll", c, Dt.passive), window[u]("scroll", c, Dt.passive), n = a;
1595
1595
  }
1596
1596
  function o() {
1597
1597
  t.value !== null && (r(t.value), t.value = null);
@@ -1898,7 +1898,7 @@ function ib() {
1898
1898
  function nb(i, e = !0) {
1899
1899
  return !i || i.nodeType !== Node.ELEMENT_NODE ? !1 : e ? i.scrollHeight > i.clientHeight && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-y"])) : i.scrollWidth > i.clientWidth && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-x"]));
1900
1900
  }
1901
- const { notPassiveCapture: il } = Ot, ir = [];
1901
+ const { notPassiveCapture: il } = Dt, ir = [];
1902
1902
  function nl(i) {
1903
1903
  const e = i.target;
1904
1904
  if (e === void 0 || e.nodeType === 8 || e.classList.contains("no-pointer-events") === !0) return;
@@ -2015,7 +2015,7 @@ function kc(i, e = 0) {
2015
2015
  maxHeight: c,
2016
2016
  maxWidth: h
2017
2017
  } = i;
2018
- if (_t.is.ios === !0 && window.visualViewport !== void 0) {
2018
+ if (Pt.is.ios === !0 && window.visualViewport !== void 0) {
2019
2019
  const T = document.body.style, { offsetLeft: B, offsetTop: L } = window.visualViewport;
2020
2020
  B !== Th && (T.setProperty("--q-pe-left", B + "px"), Th = B), L !== Oh && (T.setProperty("--q-pe-top", L + "px"), Oh = L);
2021
2021
  }
@@ -2088,7 +2088,7 @@ function pa(i, e, t, n, r) {
2088
2088
  n.horizontal === "middle" ? e.middle : n.horizontal === r.horizontal ? e.left : e.right
2089
2089
  ), i.maxWidth = Math.min(s, u - i.left);
2090
2090
  }
2091
- const si = $e({
2091
+ const li = $e({
2092
2092
  name: "QTooltip",
2093
2093
  inheritAttrs: !1,
2094
2094
  props: {
@@ -2248,7 +2248,7 @@ const si = $e({
2248
2248
  w.value
2249
2249
  ],
2250
2250
  role: "tooltip"
2251
- }, qt(e.default)) : null;
2251
+ }, Bt(e.default)) : null;
2252
2252
  }
2253
2253
  function b() {
2254
2254
  return _(pi, p.value, E);
@@ -2331,7 +2331,7 @@ function Kt(i, e, t = {}) {
2331
2331
  formContext: f
2332
2332
  };
2333
2333
  }
2334
- const cb = /* @__PURE__ */ Bt({
2334
+ const cb = /* @__PURE__ */ Lt({
2335
2335
  __name: "QuasarStringField",
2336
2336
  props: {
2337
2337
  schema: { type: Object, required: !0 },
@@ -2368,7 +2368,7 @@ const cb = /* @__PURE__ */ Bt({
2368
2368
  }, get QIcon() {
2369
2369
  return Qe;
2370
2370
  }, get QTooltip() {
2371
- return si;
2371
+ return li;
2372
2372
  } };
2373
2373
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
2374
2374
  }
@@ -2492,7 +2492,7 @@ function fb(i, e, t, n, r, o) {
2492
2492
  /* STYLE */
2493
2493
  );
2494
2494
  }
2495
- const _h = /* @__PURE__ */ Yt(cb, [["render", fb], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarStringField.vue"]]), mb = /* @__PURE__ */ Bt({
2495
+ const _h = /* @__PURE__ */ Yt(cb, [["render", fb], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarStringField.vue"]]), mb = /* @__PURE__ */ Lt({
2496
2496
  __name: "QuasarNumberField",
2497
2497
  props: {
2498
2498
  schema: { type: Object, required: !0 },
@@ -2523,7 +2523,7 @@ const _h = /* @__PURE__ */ Yt(cb, [["render", fb], ["__file", "/Users/zachsherbo
2523
2523
  }, get QIcon() {
2524
2524
  return Qe;
2525
2525
  }, get QTooltip() {
2526
- return si;
2526
+ return li;
2527
2527
  } };
2528
2528
  return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
2529
2529
  }
@@ -2749,7 +2749,7 @@ function wb(i, e) {
2749
2749
  }, P)
2750
2750
  ];
2751
2751
  u.value !== null && I.push(u.value);
2752
- const O = t.label !== void 0 ? On(n.default, [t.label]) : qt(n.default);
2752
+ const O = t.label !== void 0 ? On(n.default, [t.label]) : Bt(n.default);
2753
2753
  return O !== void 0 && I.push(
2754
2754
  _("div", {
2755
2755
  class: `q-${i}__label q-anchor--skip`
@@ -2806,7 +2806,7 @@ const Sb = () => _("div", {
2806
2806
  }
2807
2807
  return wb("checkbox", t);
2808
2808
  }
2809
- }), Mb = /* @__PURE__ */ Bt({
2809
+ }), Mb = /* @__PURE__ */ Lt({
2810
2810
  __name: "QuasarBooleanField",
2811
2811
  props: {
2812
2812
  schema: { type: Object, required: !0 },
@@ -2837,7 +2837,7 @@ const Sb = () => _("div", {
2837
2837
  }, get QIcon() {
2838
2838
  return Qe;
2839
2839
  }, get QTooltip() {
2840
- return si;
2840
+ return li;
2841
2841
  } };
2842
2842
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
2843
2843
  }
@@ -2935,7 +2935,7 @@ const qh = /* @__PURE__ */ Yt(Mb, [["render", _b], ["__file", "/Users/zachsherbo
2935
2935
  return () => _("div", {
2936
2936
  style: r.value,
2937
2937
  class: n.value
2938
- }, qt(e.default));
2938
+ }, Bt(e.default));
2939
2939
  }
2940
2940
  }), cn = $e({
2941
2941
  name: "QItemSection",
@@ -2950,7 +2950,7 @@ const qh = /* @__PURE__ */ Yt(Mb, [["render", _b], ["__file", "/Users/zachsherbo
2950
2950
  const t = x(
2951
2951
  () => `q-item__section column q-item__section--${i.avatar === !0 || i.side === !0 || i.thumbnail === !0 ? "side" : "main"}` + (i.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (i.avatar === !0 ? " q-item__section--avatar" : "") + (i.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (i.noWrap === !0 ? " q-item__section--nowrap" : "")
2952
2952
  );
2953
- return () => _("div", { class: t.value }, qt(e.default));
2953
+ return () => _("div", { class: t.value }, Bt(e.default));
2954
2954
  }
2955
2955
  });
2956
2956
  function Bh(i) {
@@ -3377,7 +3377,7 @@ function Xm(i) {
3377
3377
  window[i]("keydown", Ib), window[i]("blur", Vb), window[i]("keyup", Fb), Fr = !1;
3378
3378
  }
3379
3379
  function Zm(i) {
3380
- _t.is.desktop === !0 && (nr.push(i), nr.length === 1 && Xm("addEventListener"));
3380
+ Pt.is.desktop === !0 && (nr.push(i), nr.length === 1 && Xm("addEventListener"));
3381
3381
  }
3382
3382
  function ll(i) {
3383
3383
  const e = nr.indexOf(i);
@@ -3388,7 +3388,7 @@ function $m(i) {
3388
3388
  rr[rr.length - 1](i);
3389
3389
  }
3390
3390
  function eg(i) {
3391
- _t.is.desktop === !0 && (rr.push(i), rr.length === 1 && document.body.addEventListener("focusin", $m));
3391
+ Pt.is.desktop === !0 && (rr.push(i), rr.length === 1 && document.body.addEventListener("focusin", $m));
3392
3392
  }
3393
3393
  function au(i) {
3394
3394
  const e = rr.indexOf(i);
@@ -3548,7 +3548,7 @@ const tg = $e({
3548
3548
  v.value
3549
3549
  ],
3550
3550
  ...H.value
3551
- }, qt(e.default)) : null
3551
+ }, Bt(e.default)) : null
3552
3552
  );
3553
3553
  }
3554
3554
  return ft(b), Object.assign(u, { focus: $, updatePosition: ie }), P;
@@ -3594,9 +3594,9 @@ function zh(i) {
3594
3594
  const e = document.body, t = window.visualViewport !== void 0;
3595
3595
  if (i === "add") {
3596
3596
  const { overflowY: n, overflowX: r } = window.getComputedStyle(e);
3597
- va = tb(window), ya = eb(window), Vh = e.style.left, Fh = e.style.top, Nh = window.location.href, e.style.left = `-${va}px`, e.style.top = `-${ya}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, _t.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", cs, Ot.passiveCapture), window.visualViewport.addEventListener("scroll", cs, Ot.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Hh, Ot.passiveCapture));
3597
+ va = tb(window), ya = eb(window), Vh = e.style.left, Fh = e.style.top, Nh = window.location.href, e.style.left = `-${va}px`, e.style.top = `-${ya}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Pt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", cs, Dt.passiveCapture), window.visualViewport.addEventListener("scroll", cs, Dt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Hh, Dt.passiveCapture));
3598
3598
  }
3599
- _t.is.desktop === !0 && _t.is.mac === !0 && window[`${i}EventListener`]("wheel", Hb, Ot.notPassive), i === "remove" && (_t.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", cs, Ot.passiveCapture), window.visualViewport.removeEventListener("scroll", cs, Ot.passiveCapture)) : window.removeEventListener("scroll", Hh, Ot.passiveCapture)), e.classList.remove("q-body--prevent-scroll"), e.classList.remove("q-body--force-scrollbar-x"), e.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, e.style.left = Vh, e.style.top = Fh, window.location.href === Nh && window.scrollTo(va, ya), so = void 0);
3599
+ Pt.is.desktop === !0 && Pt.is.mac === !0 && window[`${i}EventListener`]("wheel", Hb, Dt.notPassive), i === "remove" && (Pt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", cs, Dt.passiveCapture), window.visualViewport.removeEventListener("scroll", cs, Dt.passiveCapture)) : window.removeEventListener("scroll", Hh, Dt.passiveCapture)), e.classList.remove("q-body--prevent-scroll"), e.classList.remove("q-body--force-scrollbar-x"), e.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, e.style.left = Vh, e.style.top = Fh, window.location.href === Nh && window.scrollTo(va, ya), so = void 0);
3600
3600
  }
3601
3601
  function jb(i) {
3602
3602
  let e = "add";
@@ -3608,7 +3608,7 @@ function jb(i) {
3608
3608
  if ($r > 1) return;
3609
3609
  } else {
3610
3610
  if ($r === 0 || ($r--, $r > 0)) return;
3611
- if (e = "remove", _t.is.ios === !0 && _t.is.nativeMobile === !0) {
3611
+ if (e = "remove", Pt.is.ios === !0 && Pt.is.nativeMobile === !0) {
3612
3612
  jn !== null && clearTimeout(jn), jn = setTimeout(() => {
3613
3613
  zh(e), jn = null;
3614
3614
  }, 100);
@@ -3804,7 +3804,7 @@ const Wb = {
3804
3804
  style: C.value,
3805
3805
  tabindex: -1,
3806
3806
  ...D.value
3807
- }, qt(e.default)) : null
3807
+ }, Bt(e.default)) : null
3808
3808
  )
3809
3809
  ]);
3810
3810
  }
@@ -4009,7 +4009,7 @@ function Gb({
4009
4009
  De === !0 && St !== null && St !== Ye && St.contains(Ye) === !0 && (St.addEventListener("focusout", O), setTimeout(() => {
4010
4010
  St == null || St.removeEventListener("focusout", O);
4011
4011
  })), Kb(St, S - ne);
4012
- const Lt = ie !== void 0 ? f.slice(ne, S).reduce(_r, 0) : 0;
4012
+ const Rt = ie !== void 0 ? f.slice(ne, S).reduce(_r, 0) : 0;
4013
4013
  if (De === !0) {
4014
4014
  const Jt = Fe >= y.value.from && ne <= y.value.to ? y.value.to : Fe;
4015
4015
  y.value = { from: ne, to: Jt }, m.value = eo(d, f, 0, ne), g.value = eo(d, f, Fe, i.value), requestAnimationFrame(() => {
@@ -4019,11 +4019,11 @@ function Gb({
4019
4019
  requestAnimationFrame(() => {
4020
4020
  if (u !== b.scrollStart) return;
4021
4021
  De === !0 && I(ne);
4022
- const Jt = f.slice(ne, S).reduce(_r, 0), Rt = Jt + b.offsetStart + m.value, pt = Rt + f[S];
4023
- let bi = Rt + A;
4022
+ const Jt = f.slice(ne, S).reduce(_r, 0), Et = Jt + b.offsetStart + m.value, pt = Et + f[S];
4023
+ let bi = Et + A;
4024
4024
  if (ie !== void 0) {
4025
- const Ii = Jt - Lt, Xt = b.scrollStart + Ii;
4026
- bi = j !== !0 && Xt < Rt && pt < Xt + b.scrollViewSize ? Xt : ie === "end" ? pt - b.scrollViewSize : Rt - (ie === "start" ? 0 : Math.round((b.scrollViewSize - f[S]) / 2));
4025
+ const Ii = Jt - Rt, Xt = b.scrollStart + Ii;
4026
+ bi = j !== !0 && Xt < Et && pt < Xt + b.scrollViewSize ? Xt : ie === "end" ? pt - b.scrollViewSize : Et - (ie === "start" ? 0 : Math.round((b.scrollViewSize - f[S]) / 2));
4027
4027
  }
4028
4028
  u = bi, Qh(
4029
4029
  E,
@@ -4402,7 +4402,7 @@ const Ko = $e({
4402
4402
  () => (i.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (i.popupContentClass ? " " + i.popupContentClass : "")
4403
4403
  ), Me = x(() => P.value === 0), ne = x(
4404
4404
  () => b.value.map((q) => re.value(q)).join(", ")
4405
- ), Fe = x(() => i.displayValue !== void 0 ? i.displayValue : ne.value), De = x(() => i.optionsHtml === !0 ? () => !0 : (q) => (q == null ? void 0 : q.html) === !0), Ye = x(() => i.displayValueHtml === !0 || i.displayValue === void 0 && (i.optionsHtml === !0 || b.value.some(De.value))), St = x(() => E.focused.value === !0 ? i.tabindex : -1), Lt = x(() => {
4405
+ ), Fe = x(() => i.displayValue !== void 0 ? i.displayValue : ne.value), De = x(() => i.optionsHtml === !0 ? () => !0 : (q) => (q == null ? void 0 : q.html) === !0), Ye = x(() => i.displayValueHtml === !0 || i.displayValue === void 0 && (i.optionsHtml === !0 || b.value.some(De.value))), St = x(() => E.focused.value === !0 ? i.tabindex : -1), Rt = x(() => {
4406
4406
  const q = {
4407
4407
  tabindex: i.tabindex,
4408
4408
  role: "combobox",
@@ -4417,7 +4417,7 @@ const Ko = $e({
4417
4417
  id: `${E.targetUid.value}_lb`,
4418
4418
  role: "listbox",
4419
4419
  "aria-multiselectable": i.multiple === !0 ? "true" : "false"
4420
- })), Rt = x(() => b.value.map((q, de) => ({
4420
+ })), Et = x(() => b.value.map((q, de) => ({
4421
4421
  index: de,
4422
4422
  opt: q,
4423
4423
  html: De.value(q),
@@ -4471,7 +4471,7 @@ const Ko = $e({
4471
4471
  // this also fixes the issue where some browsers e.g. iOS Chrome
4472
4472
  // fires "change" instead of "input" on autocomplete.
4473
4473
  onChange: D,
4474
- onKeydown: Et,
4474
+ onKeydown: It,
4475
4475
  onKeyup: Pe,
4476
4476
  onKeypress: nt,
4477
4477
  onFocus: Re,
@@ -4575,13 +4575,13 @@ const Ko = $e({
4575
4575
  function Re(q) {
4576
4576
  i.useInput === !0 && T.value !== null && (q === void 0 || T.value === q.target && q.target.value === ne.value) && T.value.select();
4577
4577
  }
4578
- function zt(q) {
4578
+ function jt(q) {
4579
4579
  mn(q, 27) === !0 && o.value === !0 && (gi(q), Ne(), xi()), t("keyup", q);
4580
4580
  }
4581
4581
  function Pe(q) {
4582
4582
  const { value: de } = q.target;
4583
4583
  if (q.keyCode !== void 0) {
4584
- zt(q);
4584
+ jt(q);
4585
4585
  return;
4586
4586
  }
4587
4587
  if (q.target.value = "", h !== null && (clearTimeout(h), h = null), d !== null && (clearTimeout(d), d = null), xi(), typeof de == "string" && de.length !== 0) {
@@ -4598,11 +4598,11 @@ const Ko = $e({
4598
4598
  function nt(q) {
4599
4599
  t("keypress", q);
4600
4600
  }
4601
- function Et(q) {
4601
+ function It(q) {
4602
4602
  if (t("keydown", q), Hl(q) === !0) return;
4603
4603
  const de = a.value.length !== 0 && (i.newValueMode !== void 0 || i.onNewValue !== void 0), pe = q.shiftKey !== !0 && i.disableTabSelection !== !0 && i.multiple !== !0 && (l.value !== -1 || de === !0);
4604
4604
  if (q.keyCode === 27) {
4605
- ti(q);
4605
+ ii(q);
4606
4606
  return;
4607
4607
  }
4608
4608
  if (q.keyCode === 9 && pe === !1) {
@@ -4668,7 +4668,7 @@ const Ko = $e({
4668
4668
  return Nn();
4669
4669
  }
4670
4670
  function os() {
4671
- return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Rt.value.map((q) => e["selected-item"](q)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Rt.value.map((q, de) => _(Jm, {
4671
+ return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Et.value.map((q) => e["selected-item"](q)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Et.value.map((q, de) => _(Jm, {
4672
4672
  key: "option-" + de,
4673
4673
  removable: E.editable.value === !0 && ye.value(q.opt) !== !0,
4674
4674
  dense: !0,
@@ -4706,7 +4706,7 @@ const Ko = $e({
4706
4706
  return e["before-options"] !== void 0 && (de = e["before-options"]().concat(de)), On(e["after-options"], de);
4707
4707
  }
4708
4708
  function Zr(q, de) {
4709
- const pe = de === !0 ? { ...Lt.value, ...E.splitAttrs.attributes.value } : void 0, Le = {
4709
+ const pe = de === !0 ? { ...Rt.value, ...E.splitAttrs.attributes.value } : void 0, Le = {
4710
4710
  ref: de === !0 ? T : void 0,
4711
4711
  key: "i_t",
4712
4712
  class: j.value,
@@ -4832,7 +4832,7 @@ const Ko = $e({
4832
4832
  class: ie.value + " scroll",
4833
4833
  style: i.popupContentStyle,
4834
4834
  ...Jt.value,
4835
- onClick: ti,
4835
+ onClick: ii,
4836
4836
  onScrollPassive: N
4837
4837
  }, tn())
4838
4838
  ), _(ig, {
@@ -4956,7 +4956,7 @@ const Ko = $e({
4956
4956
  },
4957
4957
  onClick(q) {
4958
4958
  var de;
4959
- if (ti(q), m !== !0 && o.value === !0) {
4959
+ if (ii(q), m !== !0 && o.value === !0) {
4960
4960
  ve(), (de = T.value) == null || de.focus();
4961
4961
  return;
4962
4962
  }
@@ -4968,7 +4968,7 @@ const Ko = $e({
4968
4968
  if (i.useInput === !0)
4969
4969
  de.push(Zr(q, pe));
4970
4970
  else if (E.editable.value === !0) {
4971
- const tt = pe === !0 ? Lt.value : void 0;
4971
+ const tt = pe === !0 ? Rt.value : void 0;
4972
4972
  de.push(
4973
4973
  _("input", {
4974
4974
  ref: pe === !0 ? T : void 0,
@@ -4979,8 +4979,8 @@ const Ko = $e({
4979
4979
  readonly: !0,
4980
4980
  "data-autofocus": q === !0 || i.autofocus === !0 || void 0,
4981
4981
  ...tt,
4982
- onKeydown: Et,
4983
- onKeyup: zt,
4982
+ onKeydown: It,
4983
+ onKeyup: jt,
4984
4984
  onKeypress: nt
4985
4985
  })
4986
4986
  ), pe === !0 && typeof i.autocomplete == "string" && i.autocomplete.length !== 0 && de.push(
@@ -5017,7 +5017,7 @@ const Ko = $e({
5017
5017
  ] : null
5018
5018
  }), gc(E);
5019
5019
  }
5020
- }), $b = /* @__PURE__ */ Bt({
5020
+ }), $b = /* @__PURE__ */ Lt({
5021
5021
  __name: "QuasarEnumField",
5022
5022
  props: {
5023
5023
  schema: { type: Object, required: !0 },
@@ -5103,7 +5103,7 @@ const Ko = $e({
5103
5103
  }, get QIcon() {
5104
5104
  return Qe;
5105
5105
  }, get QTooltip() {
5106
- return si;
5106
+ return li;
5107
5107
  } };
5108
5108
  return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
5109
5109
  }
@@ -5402,9 +5402,9 @@ function h1(i) {
5402
5402
  isActionable: c
5403
5403
  };
5404
5404
  }
5405
- const { passiveCapture: ki } = Ot;
5405
+ const { passiveCapture: ki } = Dt;
5406
5406
  let pr = null, vr = null, yr = null;
5407
- const Ft = $e({
5407
+ const Nt = $e({
5408
5408
  name: "QBtn",
5409
5409
  props: {
5410
5410
  ...c1,
@@ -5498,7 +5498,7 @@ const Ft = $e({
5498
5498
  if ((O == null ? void 0 : O.type) === "keyup") {
5499
5499
  if (vr === d.value && mn(O, [13, 32]) === !0) {
5500
5500
  const F = new MouseEvent("click", O);
5501
- F.qKeyEvent = !0, O.defaultPrevented === !0 && ti(F), O.cancelBubble === !0 && gi(F), d.value.dispatchEvent(F), dt(O), O.qKeyEvent = !0;
5501
+ F.qKeyEvent = !0, O.defaultPrevented === !0 && ii(F), O.cancelBubble === !0 && gi(F), d.value.dispatchEvent(F), dt(O), O.qKeyEvent = !0;
5502
5502
  }
5503
5503
  t("keyup", O);
5504
5504
  }
@@ -6543,7 +6543,7 @@ const pg = $e({
6543
6543
  year: { prev: !0, next: !0 }
6544
6544
  };
6545
6545
  return De.value !== null && De.value.year >= y.value.year && (M.year.prev = !1, De.value.year === y.value.year && De.value.month >= y.value.month && (M.month.prev = !1)), Ye.value !== null && Ye.value.year <= y.value.year && (M.year.next = !1, Ye.value.year === y.value.year && Ye.value.month <= y.value.month && (M.month.next = !1)), M;
6546
- }), Lt = x(() => {
6546
+ }), Rt = x(() => {
6547
6547
  const M = {};
6548
6548
  return H.value.forEach((R) => {
6549
6549
  const K = kn(R);
@@ -6568,7 +6568,7 @@ const pg = $e({
6568
6568
  }), Ce.month++, Ce.month > 12 && (Ce.year++, Ce.month = 1);
6569
6569
  }
6570
6570
  }), M;
6571
- }), Rt = x(() => {
6571
+ }), Et = x(() => {
6572
6572
  if (D.value === null) return;
6573
6573
  const { init: M, initHash: R, final: K, finalHash: ue } = D.value, [fe, _e] = R <= ue ? [M, K] : [K, M], ve = kn(fe), Ce = kn(_e);
6574
6574
  if (ve !== pt.value && Ce !== pt.value) return;
@@ -6625,7 +6625,7 @@ const pg = $e({
6625
6625
  const Ce = { i: ve, event: Ii.value[ve], classes: [] };
6626
6626
  bi.value[ve] === !0 && (Ce.in = !0, Ce.flat = !0), M.push(Ce);
6627
6627
  }
6628
- if (Lt.value[pt.value] !== void 0 && Lt.value[pt.value].forEach((ve) => {
6628
+ if (Rt.value[pt.value] !== void 0 && Rt.value[pt.value].forEach((ve) => {
6629
6629
  const Ce = fe + ve - 1;
6630
6630
  Object.assign(M[Ce], {
6631
6631
  selected: !0,
@@ -6674,11 +6674,11 @@ const pg = $e({
6674
6674
  textColor: O.value
6675
6675
  });
6676
6676
  }
6677
- }), Rt.value !== void 0) {
6678
- const ve = fe + Rt.value.from - 1, Ce = fe + Rt.value.to - 1;
6677
+ }), Et.value !== void 0) {
6678
+ const ve = fe + Et.value.from - 1, Ce = fe + Et.value.to - 1;
6679
6679
  for (let Ne = ve; Ne <= Ce; Ne++)
6680
6680
  M[Ne].color = I.value, M[Ne].editRange = !0;
6681
- Rt.value.includeFrom === !0 && (M[ve].editRangeFrom = !0), Rt.value.includeTo === !0 && (M[Ce].editRangeTo = !0);
6681
+ Et.value.includeFrom === !0 && (M[ve].editRangeFrom = !0), Et.value.includeTo === !0 && (M[Ce].editRangeTo = !0);
6682
6682
  }
6683
6683
  y.value.year === v.value.year && y.value.month === v.value.month && (M[fe + v.value.day - 1].today = !0);
6684
6684
  const _e = M.length % 7;
@@ -6697,7 +6697,7 @@ const pg = $e({
6697
6697
  h = 0;
6698
6698
  else {
6699
6699
  const R = J(g.value, p.value);
6700
- Et(R.year, R.month, R);
6700
+ It(R.year, R.month, R);
6701
6701
  }
6702
6702
  }), ge(k, () => {
6703
6703
  m.value !== null && n.$el.contains(document.activeElement) === !0 && m.value.focus();
@@ -6720,7 +6720,7 @@ const pg = $e({
6720
6720
  year: M,
6721
6721
  month: R,
6722
6722
  day: K
6723
- }, fe = Lt.value[kn(ue)];
6723
+ }, fe = Rt.value[kn(ue)];
6724
6724
  (fe === void 0 || fe.includes(ue.day) === !1) && Zr(ue), Oe(ue.year, ue.month);
6725
6725
  }
6726
6726
  function Ge(M) {
@@ -6730,7 +6730,7 @@ const pg = $e({
6730
6730
  ["month", "year"].includes(M) && (M === "month" ? xe : Ae)(R === !0 ? -1 : 1);
6731
6731
  }
6732
6732
  function Oe(M, R) {
6733
- k.value = "Calendar", Et(M, R);
6733
+ k.value = "Calendar", It(M, R);
6734
6734
  }
6735
6735
  function qe(M, R) {
6736
6736
  if (i.range === !1 || !M) {
@@ -6795,26 +6795,26 @@ const pg = $e({
6795
6795
  }
6796
6796
  function xe(M) {
6797
6797
  let R = y.value.year, K = Number(y.value.month) + M;
6798
- K === 13 ? (K = 1, R++) : K === 0 && (K = 12, R--), Et(R, K), F.value === !0 && xn("month");
6798
+ K === 13 ? (K = 1, R++) : K === 0 && (K = 12, R--), It(R, K), F.value === !0 && xn("month");
6799
6799
  }
6800
6800
  function Ae(M) {
6801
6801
  const R = Number(y.value.year) + M;
6802
- Et(R, y.value.month), F.value === !0 && xn("year");
6802
+ It(R, y.value.month), F.value === !0 && xn("year");
6803
6803
  }
6804
6804
  function Re(M) {
6805
- Et(M, y.value.month), k.value = i.defaultView === "Years" ? "Months" : "Calendar", F.value === !0 && xn("year");
6805
+ It(M, y.value.month), k.value = i.defaultView === "Years" ? "Months" : "Calendar", F.value === !0 && xn("year");
6806
6806
  }
6807
- function zt(M) {
6808
- Et(y.value.year, M), k.value = "Calendar", F.value === !0 && xn("month");
6807
+ function jt(M) {
6808
+ It(y.value.year, M), k.value = "Calendar", F.value === !0 && xn("month");
6809
6809
  }
6810
6810
  function Pe(M, R) {
6811
- const K = Lt.value[R];
6811
+ const K = Rt.value[R];
6812
6812
  ((K == null ? void 0 : K.includes(M.day)) === !0 ? mr : Zr)(M);
6813
6813
  }
6814
6814
  function nt(M) {
6815
6815
  return { year: M.year, month: M.month, day: M.day };
6816
6816
  }
6817
- function Et(M, R, K) {
6817
+ function It(M, R, K) {
6818
6818
  if (De.value !== null && M <= De.value.year && ((R < De.value.month || M < De.value.year) && (R = De.value.month), M = De.value.year), Ye.value !== null && M >= Ye.value.year && ((R > Ye.value.month || M > Ye.value.year) && (R = Ye.value.month), M = Ye.value.year), K !== void 0) {
6819
6819
  const { hour: fe, minute: _e, second: ve, millisecond: Ce, timezoneOffset: Ne, timeHash: xi } = K;
6820
6820
  Object.assign(y.value, { hour: fe, minute: _e, second: ve, millisecond: Ce, timezoneOffset: Ne, timeHash: xi });
@@ -6934,7 +6934,7 @@ const pg = $e({
6934
6934
  })
6935
6935
  }, [b.value]))
6936
6936
  ]),
6937
- i.todayBtn === !0 ? _(Ft, {
6937
+ i.todayBtn === !0 ? _(Nt, {
6938
6938
  class: "q-date__header-today self-start",
6939
6939
  icon: r.iconSet.datetime.today,
6940
6940
  "aria-label": r.lang.date.today,
@@ -6952,7 +6952,7 @@ const pg = $e({
6952
6952
  _("div", {
6953
6953
  class: "row items-center q-date__arrow"
6954
6954
  }, [
6955
- _(Ft, {
6955
+ _(Nt, {
6956
6956
  round: !0,
6957
6957
  dense: !0,
6958
6958
  size: "sm",
@@ -6972,7 +6972,7 @@ const pg = $e({
6972
6972
  _(pi, {
6973
6973
  name: "q-transition--jump-" + ue
6974
6974
  }, () => _("div", { key: K }, [
6975
- _(Ft, {
6975
+ _(Nt, {
6976
6976
  flat: !0,
6977
6977
  dense: !0,
6978
6978
  noCaps: !0,
@@ -6987,7 +6987,7 @@ const pg = $e({
6987
6987
  _("div", {
6988
6988
  class: "row items-center q-date__arrow"
6989
6989
  }, [
6990
- _(Ft, {
6990
+ _(Nt, {
6991
6991
  round: !0,
6992
6992
  dense: !0,
6993
6993
  size: "sm",
@@ -7041,7 +7041,7 @@ const pg = $e({
7041
7041
  class: "q-date__calendar-days fit"
7042
7042
  }, ct.value.map((M) => _("div", { class: M.classes }, [
7043
7043
  M.in === !0 ? _(
7044
- Ft,
7044
+ Nt,
7045
7045
  {
7046
7046
  class: M.today === !0 ? "q-date__today" : "",
7047
7047
  dense: !0,
@@ -7072,7 +7072,7 @@ const pg = $e({
7072
7072
  return _("div", {
7073
7073
  class: "q-date__months-item flex flex-center"
7074
7074
  }, [
7075
- _(Ft, {
7075
+ _(Nt, {
7076
7076
  class: M === !0 && v.value.month === fe + 1 ? "q-date__today" : null,
7077
7077
  flat: _e !== !0,
7078
7078
  label: ue,
@@ -7082,7 +7082,7 @@ const pg = $e({
7082
7082
  tabindex: l.value,
7083
7083
  disable: R(fe + 1),
7084
7084
  ...s("month#" + fe, { onClick: () => {
7085
- zt(fe + 1);
7085
+ jt(fe + 1);
7086
7086
  } })
7087
7087
  })
7088
7088
  ]);
@@ -7112,7 +7112,7 @@ const pg = $e({
7112
7112
  _("div", {
7113
7113
  class: "q-date__years-item flex flex-center"
7114
7114
  }, [
7115
- _(Ft, {
7115
+ _(Nt, {
7116
7116
  key: "yr" + fe,
7117
7117
  class: v.value.year === fe ? "q-date__today" : null,
7118
7118
  flat: !_e,
@@ -7136,7 +7136,7 @@ const pg = $e({
7136
7136
  _("div", {
7137
7137
  class: "col-auto"
7138
7138
  }, [
7139
- _(Ft, {
7139
+ _(Nt, {
7140
7140
  round: !0,
7141
7141
  dense: !0,
7142
7142
  flat: !0,
@@ -7155,7 +7155,7 @@ const pg = $e({
7155
7155
  _("div", {
7156
7156
  class: "col-auto"
7157
7157
  }, [
7158
- _(Ft, {
7158
+ _(Nt, {
7159
7159
  round: !0,
7160
7160
  dense: !0,
7161
7161
  flat: !0,
@@ -7226,7 +7226,7 @@ const pg = $e({
7226
7226
  name: "q-transition--fade"
7227
7227
  }, oa[k.value])
7228
7228
  ])
7229
- ], R = qt(e.default);
7229
+ ], R = Bt(e.default);
7230
7230
  return R !== void 0 && M.push(
7231
7231
  _("div", { class: "q-date__actions" }, R)
7232
7232
  ), i.name !== void 0 && i.disable !== !0 && f(M, "push"), _("div", {
@@ -7242,7 +7242,7 @@ const pg = $e({
7242
7242
  ]);
7243
7243
  };
7244
7244
  }
7245
- }), C1 = /* @__PURE__ */ Bt({
7245
+ }), C1 = /* @__PURE__ */ Lt({
7246
7246
  __name: "QuasarDateField",
7247
7247
  props: {
7248
7248
  schema: { type: Object, required: !0 },
@@ -7279,7 +7279,7 @@ const pg = $e({
7279
7279
  }, get QIcon() {
7280
7280
  return Qe;
7281
7281
  }, get QTooltip() {
7282
- return si;
7282
+ return li;
7283
7283
  } };
7284
7284
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
7285
7285
  }
@@ -7342,7 +7342,7 @@ function O1(i, e, t, n, r, o) {
7342
7342
  default: W(() => [
7343
7343
  le("div", A1, [
7344
7344
  vn(Y(
7345
- Ft,
7345
+ Nt,
7346
7346
  {
7347
7347
  label: "Close",
7348
7348
  color: "primary",
@@ -7480,9 +7480,9 @@ const q1 = hc(
7480
7480
  {
7481
7481
  name: "touch-pan",
7482
7482
  beforeMount(i, { value: e, modifiers: t }) {
7483
- if (t.mouse !== !0 && _t.has.touch !== !0) return;
7483
+ if (t.mouse !== !0 && Pt.has.touch !== !0) return;
7484
7484
  function n(o, s) {
7485
- t.mouse === !0 && s === !0 ? dt(o) : (t.stop === !0 && gi(o), t.prevent === !0 && ti(o));
7485
+ t.mouse === !0 && s === !0 ? dt(o) : (t.stop === !0 && gi(o), t.prevent === !0 && ii(o));
7486
7486
  }
7487
7487
  const r = {
7488
7488
  uid: "qvtp_" + P1++,
@@ -7507,10 +7507,10 @@ const q1 = hc(
7507
7507
  }
7508
7508
  },
7509
7509
  start(o, s) {
7510
- if (_t.is.firefox === !0 && ga(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7510
+ if (Pt.is.firefox === !0 && ga(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7511
7511
  if (r.direction.all !== !0 && (s !== !0 || r.modifiers.mouseAllDir !== !0 && r.modifiers.mousealldir !== !0)) {
7512
7512
  const u = o.type.indexOf("mouse") !== -1 ? new MouseEvent(o.type, o) : new TouchEvent(o.type, o);
7513
- o.defaultPrevented === !0 && ti(u), o.cancelBubble === !0 && gi(u), Object.assign(u, {
7513
+ o.defaultPrevented === !0 && ii(u), o.cancelBubble === !0 && gi(u), Object.assign(u, {
7514
7514
  qKeyEvent: o.qKeyEvent,
7515
7515
  qClickOutside: o.qClickOutside,
7516
7516
  qAnchorHandled: o.qAnchorHandled,
@@ -7570,7 +7570,7 @@ const q1 = hc(
7570
7570
  end(o, s) {
7571
7571
  var l;
7572
7572
  if (r.event !== void 0) {
7573
- if (tr(r, "temp"), _t.is.firefox === !0 && ga(i, !1), s === !0)
7573
+ if (tr(r, "temp"), Pt.is.firefox === !0 && ga(i, !1), s === !0)
7574
7574
  (l = r.styleCleanup) == null || l.call(r), r.event.detected !== !0 && r.initialEvent !== void 0 && r.initialEvent.target.dispatchEvent(r.initialEvent.event);
7575
7575
  else if (r.event.detected === !0) {
7576
7576
  r.event.isFirst === !0 && r.handler(Aa(o === void 0 ? r.lastEvt : o, r).payload);
@@ -7589,7 +7589,7 @@ const q1 = hc(
7589
7589
  [i, "mousedown", "mouseStart", `passive${o}`]
7590
7590
  ]);
7591
7591
  }
7592
- _t.has.touch === !0 && an(r, "main", [
7592
+ Pt.has.touch === !0 && an(r, "main", [
7593
7593
  [i, "touchstart", "touchStart", `passive${t.capture === !0 ? "Capture" : ""}`],
7594
7594
  [i, "touchmove", "noop", "notPassiveCapture"]
7595
7595
  // cannot be passive (ex: iOS scroll)
@@ -7602,7 +7602,7 @@ const q1 = hc(
7602
7602
  beforeUnmount(i) {
7603
7603
  var t;
7604
7604
  const e = i.__qtouchpan;
7605
- e !== void 0 && (e.event !== void 0 && e.end(), tr(e, "main"), tr(e, "temp"), _t.is.firefox === !0 && ga(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7605
+ e !== void 0 && (e.event !== void 0 && e.end(), tr(e, "main"), tr(e, "temp"), Pt.is.firefox === !0 && ga(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7606
7606
  }
7607
7607
  }
7608
7608
  );
@@ -7692,12 +7692,12 @@ const vg = $e({
7692
7692
  let J, oe, xe = 0, Ae = 1;
7693
7693
  const Re = N.value !== null ? N.value.values : void 0;
7694
7694
  v.value === "hour" ? L.value === !0 ? (J = 0, oe = 23) : (J = 0, oe = 11, k.value === !1 && (xe = 12)) : (J = 0, oe = 55, Ae = 5);
7695
- const zt = [];
7695
+ const jt = [];
7696
7696
  for (let Pe = J, nt = J; Pe <= oe; Pe += Ae, nt++) {
7697
- const Et = Pe + xe, Nn = (Re == null ? void 0 : Re.includes(Et)) === !1, xn = v.value === "hour" && Pe === 0 ? L.value === !0 ? "00" : "12" : Pe;
7698
- zt.push({ val: Et, index: nt, disable: Nn, label: xn });
7697
+ const It = Pe + xe, Nn = (Re == null ? void 0 : Re.includes(It)) === !1, xn = v.value === "hour" && Pe === 0 ? L.value === !0 ? "00" : "12" : Pe;
7698
+ jt.push({ val: It, index: nt, disable: Nn, label: xn });
7699
7699
  }
7700
- return zt;
7700
+ return jt;
7701
7701
  }), be = x(() => [[
7702
7702
  q1,
7703
7703
  ne,
@@ -7730,8 +7730,8 @@ const vg = $e({
7730
7730
  qe(J), Object.assign(y.value, J), v.value = "hour";
7731
7731
  }
7732
7732
  function b(J, oe, xe) {
7733
- const Ae = Array.apply(null, { length: oe + 1 }).map((Re, zt) => {
7734
- const Pe = zt + J;
7733
+ const Ae = Array.apply(null, { length: oe + 1 }).map((Re, jt) => {
7734
+ const Pe = jt + J;
7735
7735
  return {
7736
7736
  index: Pe,
7737
7737
  val: xe(Pe) === !0
@@ -7754,7 +7754,7 @@ const vg = $e({
7754
7754
  return oe;
7755
7755
  if (J < oe || J > xe)
7756
7756
  return S(J, oe, Re) <= S(J, xe, Re) ? oe : xe;
7757
- const zt = Ae.findIndex((Et) => J <= Et), Pe = Ae[zt - 1], nt = Ae[zt];
7757
+ const jt = Ae.findIndex((It) => J <= It), Pe = Ae[jt - 1], nt = Ae[jt];
7758
7758
  return J - Pe <= nt - J ? Pe : nt;
7759
7759
  }
7760
7760
  function z() {
@@ -7791,19 +7791,19 @@ const vg = $e({
7791
7791
  v.value === "hour" ? v.value = "minute" : i.withSeconds && v.value === "minute" && (v.value = "second");
7792
7792
  }
7793
7793
  function De(J, oe, xe) {
7794
- const Ae = Vr(J), Re = Math.abs(Ae.top - oe.top), zt = Math.sqrt(
7794
+ const Ae = Vr(J), Re = Math.abs(Ae.top - oe.top), jt = Math.sqrt(
7795
7795
  Math.pow(Math.abs(Ae.top - oe.top), 2) + Math.pow(Math.abs(Ae.left - oe.left), 2)
7796
7796
  );
7797
- let Pe, nt = Math.asin(Re / zt) * (180 / Math.PI);
7797
+ let Pe, nt = Math.asin(Re / jt) * (180 / Math.PI);
7798
7798
  if (Ae.top < oe.top ? nt = oe.left < Ae.left ? 90 - nt : 270 + nt : nt = oe.left < Ae.left ? nt + 90 : 270 - nt, v.value === "hour") {
7799
7799
  if (Pe = nt / 30, F.value !== null) {
7800
- const Et = L.value !== !0 ? k.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ? zt >= oe.dist : F.value.am.values.length !== 0;
7800
+ const It = L.value !== !0 ? k.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ? jt >= oe.dist : F.value.am.values.length !== 0;
7801
7801
  Pe = A(
7802
- Pe + (Et === !0 ? 0 : 12),
7803
- F.value[Et === !0 ? "am" : "pm"]
7802
+ Pe + (It === !0 ? 0 : 12),
7803
+ F.value[It === !0 ? "am" : "pm"]
7804
7804
  );
7805
7805
  } else
7806
- Pe = Math.round(Pe), L.value === !0 ? zt < oe.dist ? Pe < 12 && (Pe += 12) : Pe === 12 && (Pe = 0) : k.value === !0 && Pe === 12 ? Pe = 0 : k.value === !1 && Pe !== 12 && (Pe += 12);
7806
+ Pe = Math.round(Pe), L.value === !0 ? jt < oe.dist ? Pe < 12 && (Pe += 12) : Pe === 12 && (Pe = 0) : k.value === !0 && Pe === 12 ? Pe = 0 : k.value === !1 && Pe !== 12 && (Pe += 12);
7807
7807
  L.value === !0 && (k.value = Pe < 12);
7808
7808
  } else
7809
7809
  Pe = Math.round(nt / 6) % 60, v.value === "minute" && U.value !== null ? Pe = A(Pe, U.value) : v.value === "second" && H.value !== null && (Pe = A(Pe, H.value));
@@ -7823,13 +7823,13 @@ const vg = $e({
7823
7823
  function St(J) {
7824
7824
  J.keyCode === 13 && we();
7825
7825
  }
7826
- function Lt(J) {
7826
+ function Rt(J) {
7827
7827
  J.keyCode === 13 && Ge();
7828
7828
  }
7829
7829
  function Jt(J) {
7830
7830
  ie() !== !0 && (r.platform.is.desktop !== !0 && De(J, Me()), Fe());
7831
7831
  }
7832
- function Rt(J) {
7832
+ function Et(J) {
7833
7833
  ie() !== !0 && De(J, Me());
7834
7834
  }
7835
7835
  function pt(J) {
@@ -8002,7 +8002,7 @@ const vg = $e({
8002
8002
  class: "q-time__link " + (k.value !== !0 ? "q-time__link--active" : "cursor-pointer"),
8003
8003
  tabindex: s.value,
8004
8004
  onClick: Ge,
8005
- onKeyup: Lt
8005
+ onKeyup: Rt
8006
8006
  }, "PM")
8007
8007
  ])
8008
8008
  ), _("div", {
@@ -8028,7 +8028,7 @@ const vg = $e({
8028
8028
  _("div", {
8029
8029
  class: "q-time__clock cursor-pointer non-selectable",
8030
8030
  onClick: Jt,
8031
- onMousedown: Rt
8031
+ onMousedown: Et
8032
8032
  }, [
8033
8033
  _("div", { class: "q-time__clock-circle fit" }, [
8034
8034
  _("div", {
@@ -8044,7 +8044,7 @@ const vg = $e({
8044
8044
  )
8045
8045
  ])
8046
8046
  ])),
8047
- i.nowBtn === !0 ? _(Ft, {
8047
+ i.nowBtn === !0 ? _(Nt, {
8048
8048
  class: "q-time__now-button absolute",
8049
8049
  icon: r.iconSet.datetime.now,
8050
8050
  unelevated: !0,
@@ -8058,7 +8058,7 @@ const vg = $e({
8058
8058
  ]);
8059
8059
  }
8060
8060
  return n.proxy.setNow = E, () => {
8061
- const J = [ht()], oe = qt(e.default);
8061
+ const J = [ht()], oe = Bt(e.default);
8062
8062
  return oe !== void 0 && J.push(
8063
8063
  _("div", { class: "q-time__actions" }, oe)
8064
8064
  ), i.name !== void 0 && i.disable !== !0 && h(J, "push"), _("div", {
@@ -8070,7 +8070,7 @@ const vg = $e({
8070
8070
  ]);
8071
8071
  };
8072
8072
  }
8073
- }), R1 = /* @__PURE__ */ Bt({
8073
+ }), R1 = /* @__PURE__ */ Lt({
8074
8074
  __name: "QuasarTimeField",
8075
8075
  props: {
8076
8076
  schema: { type: Object, required: !0 },
@@ -8107,7 +8107,7 @@ const vg = $e({
8107
8107
  }, get QIcon() {
8108
8108
  return Qe;
8109
8109
  }, get QTooltip() {
8110
- return si;
8110
+ return li;
8111
8111
  } };
8112
8112
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
8113
8113
  }
@@ -8170,7 +8170,7 @@ function F1(i, e, t, n, r, o) {
8170
8170
  default: W(() => [
8171
8171
  le("div", I1, [
8172
8172
  vn(Y(
8173
- Ft,
8173
+ Nt,
8174
8174
  {
8175
8175
  label: "Close",
8176
8176
  color: "primary",
@@ -8263,7 +8263,7 @@ const od = /* @__PURE__ */ Yt(R1, [["render", F1], ["__file", "/Users/zachsherbo
8263
8263
  const { proxy: { $q: t } } = We(), n = en(i, t), r = x(
8264
8264
  () => "q-card" + (n.value === !0 ? " q-card--dark q-dark" : "") + (i.bordered === !0 ? " q-card--bordered" : "") + (i.square === !0 ? " q-card--square no-border-radius" : "") + (i.flat === !0 ? " q-card--flat no-shadow" : "")
8265
8265
  );
8266
- return () => _(i.tag, { class: r.value }, qt(e.default));
8266
+ return () => _(i.tag, { class: r.value }, Bt(e.default));
8267
8267
  }
8268
8268
  }), N1 = $e({
8269
8269
  name: "QCardActions",
@@ -8275,7 +8275,7 @@ const od = /* @__PURE__ */ Yt(R1, [["render", F1], ["__file", "/Users/zachsherbo
8275
8275
  const t = sg(i), n = x(
8276
8276
  () => `q-card__actions ${t.value} q-card__actions--${i.vertical === !0 ? "vert column" : "horiz row"}`
8277
8277
  );
8278
- return () => _("div", { class: n.value }, qt(e.default));
8278
+ return () => _("div", { class: n.value }, Bt(e.default));
8279
8279
  }
8280
8280
  }), H1 = {
8281
8281
  true: "inset",
@@ -8314,7 +8314,7 @@ const od = /* @__PURE__ */ Yt(R1, [["render", F1], ["__file", "/Users/zachsherbo
8314
8314
  "aria-orientation": n.value
8315
8315
  });
8316
8316
  }
8317
- }), z1 = /* @__PURE__ */ Bt({
8317
+ }), z1 = /* @__PURE__ */ Lt({
8318
8318
  __name: "QuasarDateTimeField",
8319
8319
  props: {
8320
8320
  schema: { type: Object, required: !0 },
@@ -8380,7 +8380,7 @@ const od = /* @__PURE__ */ Yt(R1, [["render", F1], ["__file", "/Users/zachsherbo
8380
8380
  }, get QIcon() {
8381
8381
  return Qe;
8382
8382
  }, get QTooltip() {
8383
- return si;
8383
+ return li;
8384
8384
  } };
8385
8385
  return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
8386
8386
  }
@@ -8466,7 +8466,7 @@ function U1(i, e, t, n, r, o) {
8466
8466
  class: "q-px-md"
8467
8467
  }, {
8468
8468
  default: W(() => [
8469
- Y(Ft, {
8469
+ Y(Nt, {
8470
8470
  label: "Now",
8471
8471
  color: "primary",
8472
8472
  flat: "",
@@ -8474,7 +8474,7 @@ function U1(i, e, t, n, r, o) {
8474
8474
  onClick: n.setNow
8475
8475
  }),
8476
8476
  vn(Y(
8477
- Ft,
8477
+ Nt,
8478
8478
  {
8479
8479
  label: "Done",
8480
8480
  color: "primary",
@@ -8770,7 +8770,7 @@ const sd = /* @__PURE__ */ Yt(z1, [["render", U1], ["__scopeId", "data-v-76abc7a
8770
8770
  class: "q-expansion-item__content relative-position",
8771
8771
  style: m.value,
8772
8772
  id: l.value
8773
- }, qt(e.default)),
8773
+ }, Bt(e.default)),
8774
8774
  [[
8775
8775
  km,
8776
8776
  o.value
@@ -8803,7 +8803,7 @@ const sd = /* @__PURE__ */ Yt(z1, [["render", U1], ["__scopeId", "data-v-76abc7a
8803
8803
  _("div", { class: "q-expansion-item__container relative-position" }, U())
8804
8804
  ]);
8805
8805
  }
8806
- }), J1 = /* @__PURE__ */ Bt({
8806
+ }), J1 = /* @__PURE__ */ Lt({
8807
8807
  __name: "QuasarObjectField",
8808
8808
  props: {
8809
8809
  hideLabel: { type: Boolean, required: !1, default: !1 },
@@ -8876,7 +8876,7 @@ const sd = /* @__PURE__ */ Yt(z1, [["render", U1], ["__scopeId", "data-v-76abc7a
8876
8876
  }, get QIcon() {
8877
8877
  return Qe;
8878
8878
  }, get QTooltip() {
8879
- return si;
8879
+ return li;
8880
8880
  }, get FieldRenderer() {
8881
8881
  return El;
8882
8882
  } };
@@ -9039,9 +9039,9 @@ const ld = /* @__PURE__ */ Yt(J1, [["render", ax], ["__scopeId", "data-v-813eef2
9039
9039
  const t = x(
9040
9040
  () => `q-card__section q-card__section--${i.horizontal === !0 ? "horiz row no-wrap" : "vert"}`
9041
9041
  );
9042
- return () => _(i.tag, { class: t.value }, qt(e.default));
9042
+ return () => _(i.tag, { class: t.value }, Bt(e.default));
9043
9043
  }
9044
- }), Hs = new pm(), ux = /* @__PURE__ */ Bt({
9044
+ }), Hs = new pm(), ux = /* @__PURE__ */ Lt({
9045
9045
  __name: "QuasarArrayField",
9046
9046
  props: {
9047
9047
  hideLabel: { type: Boolean, required: !1, default: !1 },
@@ -9197,11 +9197,11 @@ const ld = /* @__PURE__ */ Yt(J1, [["render", ax], ["__scopeId", "data-v-813eef2
9197
9197
  }, get QCardSection() {
9198
9198
  return yg;
9199
9199
  }, get QBtn() {
9200
- return Ft;
9200
+ return Nt;
9201
9201
  }, get QIcon() {
9202
9202
  return Qe;
9203
9203
  }, get QTooltip() {
9204
- return si;
9204
+ return li;
9205
9205
  }, get FieldRenderer() {
9206
9206
  return El;
9207
9207
  } };
@@ -9511,7 +9511,7 @@ function Ox(i) {
9511
9511
  function tD(i) {
9512
9512
  return i === null ? "null" : i === void 0 ? "" : String(i);
9513
9513
  }
9514
- const Dx = /* @__PURE__ */ Bt({
9514
+ const Dx = /* @__PURE__ */ Lt({
9515
9515
  __name: "QuasarKeyValueField",
9516
9516
  props: {
9517
9517
  schema: { type: Object, required: !0 },
@@ -9620,11 +9620,11 @@ const Dx = /* @__PURE__ */ Bt({
9620
9620
  }, pairs: v, isInternalUpdate: y, addPair: k, removePair: T, get QInput() {
9621
9621
  return dr;
9622
9622
  }, get QBtn() {
9623
- return Ft;
9623
+ return Nt;
9624
9624
  }, get QIcon() {
9625
9625
  return Qe;
9626
9626
  }, get QTooltip() {
9627
- return si;
9627
+ return li;
9628
9628
  } };
9629
9629
  return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
9630
9630
  }
@@ -10295,7 +10295,7 @@ class Ux {
10295
10295
  function Nr(i, e, t) {
10296
10296
  return e = Math.max(0, Math.min(i.length, e)), [e, Math.max(e, Math.min(i.length, t))];
10297
10297
  }
10298
- function Ht(i, e, t = !0, n = !0) {
10298
+ function zt(i, e, t = !0, n = !0) {
10299
10299
  return jx(i, e, t, n);
10300
10300
  }
10301
10301
  function Kx(i) {
@@ -10304,7 +10304,7 @@ function Kx(i) {
10304
10304
  function Yx(i) {
10305
10305
  return i >= 55296 && i < 56320;
10306
10306
  }
10307
- function li(i, e) {
10307
+ function ai(i, e) {
10308
10308
  let t = i.charCodeAt(e);
10309
10309
  if (!Yx(t) || e + 1 == i.length)
10310
10310
  return t;
@@ -10318,9 +10318,9 @@ function Qi(i) {
10318
10318
  return i < 65536 ? 1 : 2;
10319
10319
  }
10320
10320
  const fu = /\r\n?|\n/;
10321
- var ii = /* @__PURE__ */ function(i) {
10321
+ var ni = /* @__PURE__ */ function(i) {
10322
10322
  return i[i.Simple = 0] = "Simple", i[i.TrackDel = 1] = "TrackDel", i[i.TrackBefore = 2] = "TrackBefore", i[i.TrackAfter = 3] = "TrackAfter", i;
10323
- }(ii || (ii = {}));
10323
+ }(ni || (ni = {}));
10324
10324
  class Gi {
10325
10325
  // Sections are encoded as pairs of integers. The first is the
10326
10326
  // length in the current document, and the second is -1 for
@@ -10413,7 +10413,7 @@ class Gi {
10413
10413
  mapDesc(e, t = !1) {
10414
10414
  return e.empty ? this : gu(this, e, t);
10415
10415
  }
10416
- mapPos(e, t = -1, n = ii.Simple) {
10416
+ mapPos(e, t = -1, n = ni.Simple) {
10417
10417
  let r = 0, o = 0;
10418
10418
  for (let s = 0; s < this.sections.length; ) {
10419
10419
  let l = this.sections[s++], a = this.sections[s++], u = r + l;
@@ -10422,7 +10422,7 @@ class Gi {
10422
10422
  return o + (e - r);
10423
10423
  o += l;
10424
10424
  } else {
10425
- if (n != ii.Simple && u >= e && (n == ii.TrackDel && r < e && u > e || n == ii.TrackBefore && r < e || n == ii.TrackAfter && u > e))
10425
+ if (n != ni.Simple && u >= e && (n == ni.TrackDel && r < e && u > e || n == ni.TrackBefore && r < e || n == ni.TrackAfter && u > e))
10426
10426
  return null;
10427
10427
  if (u > e || u == e && t < 0 && !l)
10428
10428
  return e == r || t < 0 ? o : o + a;
@@ -11890,13 +11890,13 @@ class Ee {
11890
11890
  wordAt(e) {
11891
11891
  let { text: t, from: n, length: r } = this.doc.lineAt(e), o = this.charCategorizer(e), s = e - n, l = e - n;
11892
11892
  for (; s > 0; ) {
11893
- let a = Ht(t, s, !1);
11893
+ let a = zt(t, s, !1);
11894
11894
  if (o(t.slice(a, s)) != ut.Word)
11895
11895
  break;
11896
11896
  s = a;
11897
11897
  }
11898
11898
  for (; l < r; ) {
11899
- let a = Ht(t, l);
11899
+ let a = zt(t, l);
11900
11900
  if (o(t.slice(l, a)) != ut.Word)
11901
11901
  break;
11902
11902
  l = a;
@@ -11957,7 +11957,7 @@ class lr {
11957
11957
  }
11958
11958
  lr.prototype.startSide = lr.prototype.endSide = 0;
11959
11959
  lr.prototype.point = !1;
11960
- lr.prototype.mapMode = ii.TrackDel;
11960
+ lr.prototype.mapMode = ni.TrackDel;
11961
11961
  let ku = class Eg {
11962
11962
  constructor(e, t, n) {
11963
11963
  this.from = e, this.to = t, this.value = n;
@@ -12493,7 +12493,7 @@ function vd(i, e) {
12493
12493
  function Gr(i, e, t = i.length) {
12494
12494
  let n = 0;
12495
12495
  for (let r = 0; r < t && r < i.length; )
12496
- i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r = Ht(i, r));
12496
+ i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r = zt(i, r));
12497
12497
  return n;
12498
12498
  }
12499
12499
  function Cu(i, e, t, n) {
@@ -12502,7 +12502,7 @@ function Cu(i, e, t, n) {
12502
12502
  return r;
12503
12503
  if (r == i.length)
12504
12504
  break;
12505
- o += i.charCodeAt(r) == 9 ? t - o % t : 1, r = Ht(i, r);
12505
+ o += i.charCodeAt(r) == 9 ? t - o % t : 1, r = zt(i, r);
12506
12506
  }
12507
12507
  return n === !0 ? -1 : i.length;
12508
12508
  }
@@ -12691,10 +12691,10 @@ var Rn = {
12691
12691
  221: "}",
12692
12692
  222: '"'
12693
12693
  }, ak = typeof navigator < "u" && /Mac/.test(navigator.platform), uk = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
12694
- for (var Nt = 0; Nt < 10; Nt++) Rn[48 + Nt] = Rn[96 + Nt] = String(Nt);
12695
- for (var Nt = 1; Nt <= 24; Nt++) Rn[Nt + 111] = "F" + Nt;
12696
- for (var Nt = 65; Nt <= 90; Nt++)
12697
- Rn[Nt] = String.fromCharCode(Nt + 32), _o[Nt] = String.fromCharCode(Nt);
12694
+ for (var Ht = 0; Ht < 10; Ht++) Rn[48 + Ht] = Rn[96 + Ht] = String(Ht);
12695
+ for (var Ht = 1; Ht <= 24; Ht++) Rn[Ht + 111] = "F" + Ht;
12696
+ for (var Ht = 65; Ht <= 90; Ht++)
12697
+ Rn[Ht] = String.fromCharCode(Ht + 32), _o[Ht] = String.fromCharCode(Ht);
12698
12698
  for (var _a in Rn) _o.hasOwnProperty(_a) || (_o[_a] = Rn[_a]);
12699
12699
  function ck(i) {
12700
12700
  var e = ak && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || uk && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? _o : Rn)[i.keyCode] || i.key || "Unidentified";
@@ -12724,23 +12724,23 @@ function Vg(i, e) {
12724
12724
  else
12725
12725
  throw new RangeError("Unsupported child node: " + e);
12726
12726
  }
12727
- let $t = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Tu = typeof document < "u" ? document : { documentElement: { style: {} } };
12728
- const Ou = /* @__PURE__ */ /Edge\/(\d+)/.exec($t.userAgent), Fg = /* @__PURE__ */ /MSIE \d/.test($t.userAgent), Du = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($t.userAgent), Wl = !!(Fg || Du || Ou), kd = !Wl && /* @__PURE__ */ /gecko\/(\d+)/i.test($t.userAgent), Pa = !Wl && /* @__PURE__ */ /Chrome\/(\d+)/.exec($t.userAgent), hk = "webkitFontSmoothing" in Tu.documentElement.style, _u = !Wl && /* @__PURE__ */ /Apple Computer/.test($t.vendor), wd = _u && (/* @__PURE__ */ /Mobile\/\w+/.test($t.userAgent) || $t.maxTouchPoints > 2);
12727
+ let ei = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Tu = typeof document < "u" ? document : { documentElement: { style: {} } };
12728
+ const Ou = /* @__PURE__ */ /Edge\/(\d+)/.exec(ei.userAgent), Fg = /* @__PURE__ */ /MSIE \d/.test(ei.userAgent), Du = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ei.userAgent), Wl = !!(Fg || Du || Ou), kd = !Wl && /* @__PURE__ */ /gecko\/(\d+)/i.test(ei.userAgent), Pa = !Wl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(ei.userAgent), hk = "webkitFontSmoothing" in Tu.documentElement.style, _u = !Wl && /* @__PURE__ */ /Apple Computer/.test(ei.vendor), wd = _u && (/* @__PURE__ */ /Mobile\/\w+/.test(ei.userAgent) || ei.maxTouchPoints > 2);
12729
12729
  var ce = {
12730
- mac: wd || /* @__PURE__ */ /Mac/.test($t.platform),
12731
- windows: /* @__PURE__ */ /Win/.test($t.platform),
12732
- linux: /* @__PURE__ */ /Linux|X11/.test($t.platform),
12730
+ mac: wd || /* @__PURE__ */ /Mac/.test(ei.platform),
12731
+ windows: /* @__PURE__ */ /Win/.test(ei.platform),
12732
+ linux: /* @__PURE__ */ /Linux|X11/.test(ei.platform),
12733
12733
  ie: Wl,
12734
12734
  ie_version: Fg ? Tu.documentMode || 6 : Du ? +Du[1] : Ou ? +Ou[1] : 0,
12735
12735
  gecko: kd,
12736
- gecko_version: kd ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec($t.userAgent) || [0, 0])[1] : 0,
12736
+ gecko_version: kd ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(ei.userAgent) || [0, 0])[1] : 0,
12737
12737
  chrome: !!Pa,
12738
12738
  chrome_version: Pa ? +Pa[1] : 0,
12739
12739
  ios: wd,
12740
- android: /* @__PURE__ */ /Android\b/.test($t.userAgent),
12741
- webkit_version: hk ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec($t.userAgent) || [0, 0])[1] : 0,
12740
+ android: /* @__PURE__ */ /Android\b/.test(ei.userAgent),
12741
+ webkit_version: hk ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(ei.userAgent) || [0, 0])[1] : 0,
12742
12742
  safari: _u,
12743
- safari_version: _u ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec($t.userAgent) || [0, 0])[1] : 0,
12743
+ safari_version: _u ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(ei.userAgent) || [0, 0])[1] : 0,
12744
12744
  tabSize: Tu.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
12745
12745
  };
12746
12746
  function Po(i) {
@@ -13603,9 +13603,9 @@ class bn {
13603
13603
  destroy(e) {
13604
13604
  }
13605
13605
  }
13606
- var ri = /* @__PURE__ */ function(i) {
13606
+ var oi = /* @__PURE__ */ function(i) {
13607
13607
  return i[i.Text = 0] = "Text", i[i.WidgetBefore = 1] = "WidgetBefore", i[i.WidgetAfter = 2] = "WidgetAfter", i[i.WidgetRange = 3] = "WidgetRange", i;
13608
- }(ri || (ri = {}));
13608
+ }(oi || (oi = {}));
13609
13609
  class ke extends lr {
13610
13610
  constructor(e, t, n, r) {
13611
13611
  super(), this.startSide = e, this.endSide = t, this.widget = n, this.spec = r;
@@ -13702,15 +13702,15 @@ class Xo extends ke {
13702
13702
  return super.range(e, t);
13703
13703
  }
13704
13704
  }
13705
- Xo.prototype.mapMode = ii.TrackBefore;
13705
+ Xo.prototype.mapMode = ni.TrackBefore;
13706
13706
  Xo.prototype.point = !0;
13707
13707
  class En extends ke {
13708
13708
  constructor(e, t, n, r, o, s) {
13709
- super(t, n, o, e), this.block = r, this.isReplace = s, this.mapMode = r ? t <= 0 ? ii.TrackBefore : ii.TrackAfter : ii.TrackDel;
13709
+ super(t, n, o, e), this.block = r, this.isReplace = s, this.mapMode = r ? t <= 0 ? ni.TrackBefore : ni.TrackAfter : ni.TrackDel;
13710
13710
  }
13711
13711
  // Only relevant when this.block == true
13712
13712
  get type() {
13713
- return this.startSide != this.endSide ? ri.WidgetRange : this.startSide <= 0 ? ri.WidgetBefore : ri.WidgetAfter;
13713
+ return this.startSide != this.endSide ? oi.WidgetRange : this.startSide <= 0 ? oi.WidgetBefore : oi.WidgetAfter;
13714
13714
  }
13715
13715
  get heightRelevant() {
13716
13716
  return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
@@ -14283,7 +14283,7 @@ function Pk(i, e, t, n, r) {
14283
14283
  return null;
14284
14284
  a = e[l = d], s = a.side(!r, t), u = a.side(r, t);
14285
14285
  }
14286
- let c = Ht(i.text, s, a.forward(r, t));
14286
+ let c = zt(i.text, s, a.forward(r, t));
14287
14287
  (c < a.from || c > a.to) && (c = u), np = i.text.slice(Math.min(s, c), Math.max(s, c));
14288
14288
  let h = l == (r ? e.length - 1 : 0) ? null : e[l + (r ? 1 : -1)];
14289
14289
  return h && c == u && h.level + (r ? 0 : 1) < a.level ? X.cursor(h.side(!r, t) + i.from, h.forward(r, t) ? 1 : -1, h.level) : X.cursor(c + i.from, a.forward(r, t) ? -1 : 1, a.level);
@@ -14315,7 +14315,7 @@ class Br {
14315
14315
  }
14316
14316
  }
14317
14317
  const vs = /* @__PURE__ */ Te.define({ map: (i, e) => i.map(e) }), fp = /* @__PURE__ */ Te.define();
14318
- function ni(i, e, t) {
14318
+ function ri(i, e, t) {
14319
14319
  let n = i.facet(lp);
14320
14320
  n.length ? n[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
14321
14321
  }
@@ -14378,7 +14378,7 @@ class qa {
14378
14378
  try {
14379
14379
  this.value.update(t);
14380
14380
  } catch (n) {
14381
- if (ni(t.state, n, "CodeMirror plugin crashed"), this.value.destroy)
14381
+ if (ri(t.state, n, "CodeMirror plugin crashed"), this.value.destroy)
14382
14382
  try {
14383
14383
  this.value.destroy();
14384
14384
  } catch {
@@ -14390,7 +14390,7 @@ class qa {
14390
14390
  try {
14391
14391
  this.value = this.spec.plugin.create(e, this.spec.arg);
14392
14392
  } catch (t) {
14393
- ni(e.state, t, "CodeMirror plugin crashed"), this.deactivate();
14393
+ ri(e.state, t, "CodeMirror plugin crashed"), this.deactivate();
14394
14394
  }
14395
14395
  return this;
14396
14396
  }
@@ -14400,7 +14400,7 @@ class qa {
14400
14400
  try {
14401
14401
  this.value.destroy();
14402
14402
  } catch (n) {
14403
- ni(e.state, n, "CodeMirror plugin crashed");
14403
+ ri(e.state, n, "CodeMirror plugin crashed");
14404
14404
  }
14405
14405
  }
14406
14406
  deactivate() {
@@ -14775,7 +14775,7 @@ class Od extends Je {
14775
14775
  }
14776
14776
  if (!(r instanceof qi))
14777
14777
  return null;
14778
- let o = Ht(r.text, n);
14778
+ let o = zt(r.text, n);
14779
14779
  if (o == n)
14780
14780
  return null;
14781
14781
  let s = ur(r.dom, n, o).getClientRects();
@@ -14872,7 +14872,7 @@ class Od extends Je {
14872
14872
  if (u(this.view, e.range, e))
14873
14873
  return !0;
14874
14874
  } catch (c) {
14875
- ni(this.view.state, c, "scroll handler");
14875
+ ri(this.view.state, c, "scroll handler");
14876
14876
  }
14877
14877
  let { range: t } = e, n = this.coordsAt(t.head, t.empty ? t.assoc : t.head > t.anchor ? -1 : 1), r;
14878
14878
  if (!n)
@@ -14986,16 +14986,16 @@ function Hk(i, e, t = 1) {
14986
14986
  return X.cursor(e);
14987
14987
  o == 0 ? t = 1 : o == r.length && (t = -1);
14988
14988
  let s = o, l = o;
14989
- t < 0 ? s = Ht(r.text, o, !1) : l = Ht(r.text, o);
14989
+ t < 0 ? s = zt(r.text, o, !1) : l = zt(r.text, o);
14990
14990
  let a = n(r.text.slice(s, l));
14991
14991
  for (; s > 0; ) {
14992
- let u = Ht(r.text, s, !1);
14992
+ let u = zt(r.text, s, !1);
14993
14993
  if (n(r.text.slice(u, s)) != a)
14994
14994
  break;
14995
14995
  s = u;
14996
14996
  }
14997
14997
  for (; l < r.length; ) {
14998
- let u = Ht(r.text, l);
14998
+ let u = zt(r.text, l);
14999
14999
  if (n(r.text.slice(l, u)) != a)
15000
15000
  break;
15001
15001
  l = u;
@@ -15071,7 +15071,7 @@ function bp(i, e, t, n = -1) {
15071
15071
  return 0;
15072
15072
  if (d > u)
15073
15073
  return i.state.doc.length;
15074
- for (let y = i.viewState.heightOracle.textHeight / 2, k = !1; a = i.elementAtHeight(d), a.type != ri.Text; )
15074
+ for (let y = i.viewState.heightOracle.textHeight / 2, k = !1; a = i.elementAtHeight(d), a.type != oi.Text; )
15075
15075
  for (; d = n > 0 ? a.bottom + y : a.top - y, !(d >= 0 && d <= u); ) {
15076
15076
  if (k)
15077
15077
  return t ? null : 0;
@@ -15166,7 +15166,7 @@ function Nu(i, e, t) {
15166
15166
  if (!(o.to < e)) {
15167
15167
  if (o.from < e && o.to > e)
15168
15168
  return o;
15169
- (!r || o.type == ri.Text && (r.type != o.type || (t < 0 ? o.from < e : o.to > e))) && (r = o);
15169
+ (!r || o.type == oi.Text && (r.type != o.type || (t < 0 ? o.from < e : o.to > e))) && (r = o);
15170
15170
  }
15171
15171
  }
15172
15172
  return r || n;
@@ -15174,7 +15174,7 @@ function Nu(i, e, t) {
15174
15174
  return n;
15175
15175
  }
15176
15176
  function Uk(i, e, t, n) {
15177
- let r = Nu(i, e.head, e.assoc || -1), o = !n || r.type != ri.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
15177
+ let r = Nu(i, e.head, e.assoc || -1), o = !n || r.type != oi.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
15178
15178
  if (o) {
15179
15179
  let s = i.dom.getBoundingClientRect(), l = i.textDirectionAt(r.from), a = i.posAtCoords({
15180
15180
  x: t == (l == at.LTR) ? s.right - 1 : s.left + 1,
@@ -15569,7 +15569,7 @@ function Rd(i, e) {
15569
15569
  try {
15570
15570
  return e.call(i, n, t);
15571
15571
  } catch (r) {
15572
- ni(t.state, r);
15572
+ ri(t.state, r);
15573
15573
  }
15574
15574
  };
15575
15575
  }
@@ -16036,7 +16036,7 @@ class Wi {
16036
16036
  an array of all the blocks that make up the line.
16037
16037
  */
16038
16038
  get type() {
16039
- return typeof this._content == "number" ? ri.Text : Array.isArray(this._content) ? this._content : this._content.type;
16039
+ return typeof this._content == "number" ? oi.Text : Array.isArray(this._content) ? this._content : this._content.type;
16040
16040
  }
16041
16041
  /**
16042
16042
  The end of the element as a document position.
@@ -16076,7 +16076,7 @@ var rt = /* @__PURE__ */ function(i) {
16076
16076
  return i[i.ByPos = 0] = "ByPos", i[i.ByHeight = 1] = "ByHeight", i[i.ByPosNoHeight = 2] = "ByPosNoHeight", i;
16077
16077
  }(rt || (rt = {}));
16078
16078
  const Us = 1e-3;
16079
- class oi {
16079
+ class si {
16080
16080
  constructor(e, t, n = 2) {
16081
16081
  this.length = e, this.height = t, this.flags = n;
16082
16082
  }
@@ -16093,7 +16093,7 @@ class oi {
16093
16093
  // from the new nodes and returns that (HeightMapBranch and
16094
16094
  // HeightMapGap override this to actually use from/to)
16095
16095
  replace(e, t, n) {
16096
- return oi.of(n);
16096
+ return si.of(n);
16097
16097
  }
16098
16098
  // Again, these are base cases, and are overridden for branch and gap nodes.
16099
16099
  decomposeLeft(e, t) {
@@ -16115,7 +16115,7 @@ class oi {
16115
16115
  return o.updateHeight(n, 0);
16116
16116
  }
16117
16117
  static empty() {
16118
- return new fi(0, 0);
16118
+ return new mi(0, 0);
16119
16119
  }
16120
16120
  // nodes uses null values to indicate the position of line breaks.
16121
16121
  // There are never line breaks at the start or end of the array, or
@@ -16143,14 +16143,14 @@ class oi {
16143
16143
  l && (o += l.size);
16144
16144
  }
16145
16145
  let s = 0;
16146
- return e[t - 1] == null ? (s = 1, t--) : e[t] == null && (s = 1, n++), new kw(oi.of(e.slice(0, t)), s, oi.of(e.slice(n)));
16146
+ return e[t - 1] == null ? (s = 1, t--) : e[t] == null && (s = 1, n++), new kw(si.of(e.slice(0, t)), s, si.of(e.slice(n)));
16147
16147
  }
16148
16148
  }
16149
16149
  function ml(i, e) {
16150
16150
  return i == e ? i : (i.constructor != e.constructor && (Qr = !0), e);
16151
16151
  }
16152
- oi.prototype.size = 1;
16153
- class qp extends oi {
16152
+ si.prototype.size = 1;
16153
+ class qp extends si {
16154
16154
  constructor(e, t, n) {
16155
16155
  super(e, t), this.deco = n;
16156
16156
  }
@@ -16170,7 +16170,7 @@ class qp extends oi {
16170
16170
  return `block(${this.length})`;
16171
16171
  }
16172
16172
  }
16173
- class fi extends qp {
16173
+ class mi extends qp {
16174
16174
  constructor(e, t) {
16175
16175
  super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0;
16176
16176
  }
@@ -16179,7 +16179,7 @@ class fi extends qp {
16179
16179
  }
16180
16180
  replace(e, t, n) {
16181
16181
  let r = n[0];
16182
- return n.length == 1 && (r instanceof fi || r instanceof Vt && r.flags & 4) && Math.abs(this.length - r.length) < 10 ? (r instanceof Vt ? r = new fi(r.length, this.height) : r.height = this.height, this.outdated || (r.outdated = !1), r) : oi.of(n);
16182
+ return n.length == 1 && (r instanceof mi || r instanceof Ft && r.flags & 4) && Math.abs(this.length - r.length) < 10 ? (r instanceof Ft ? r = new mi(r.length, this.height) : r.height = this.height, this.outdated || (r.outdated = !1), r) : si.of(n);
16183
16183
  }
16184
16184
  updateHeight(e, t = 0, n = !1, r) {
16185
16185
  return r && r.from <= t && r.more ? this.setHeight(r.heights[r.index++]) : (n || this.outdated) && this.setHeight(Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this;
@@ -16188,7 +16188,7 @@ class fi extends qp {
16188
16188
  return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
16189
16189
  }
16190
16190
  }
16191
- class Vt extends oi {
16191
+ class Ft extends si {
16192
16192
  constructor(e) {
16193
16193
  super(e, 0);
16194
16194
  }
@@ -16238,34 +16238,34 @@ class Vt extends oi {
16238
16238
  let r = this.length - t;
16239
16239
  if (r > 0) {
16240
16240
  let o = n[n.length - 1];
16241
- o instanceof Vt ? n[n.length - 1] = new Vt(o.length + r) : n.push(null, new Vt(r - 1));
16241
+ o instanceof Ft ? n[n.length - 1] = new Ft(o.length + r) : n.push(null, new Ft(r - 1));
16242
16242
  }
16243
16243
  if (e > 0) {
16244
16244
  let o = n[0];
16245
- o instanceof Vt ? n[0] = new Vt(e + o.length) : n.unshift(new Vt(e - 1), null);
16245
+ o instanceof Ft ? n[0] = new Ft(e + o.length) : n.unshift(new Ft(e - 1), null);
16246
16246
  }
16247
- return oi.of(n);
16247
+ return si.of(n);
16248
16248
  }
16249
16249
  decomposeLeft(e, t) {
16250
- t.push(new Vt(e - 1), null);
16250
+ t.push(new Ft(e - 1), null);
16251
16251
  }
16252
16252
  decomposeRight(e, t) {
16253
- t.push(null, new Vt(this.length - e - 1));
16253
+ t.push(null, new Ft(this.length - e - 1));
16254
16254
  }
16255
16255
  updateHeight(e, t = 0, n = !1, r) {
16256
16256
  let o = t + this.length;
16257
16257
  if (r && r.from <= t + this.length && r.more) {
16258
16258
  let s = [], l = Math.max(t, r.from), a = -1;
16259
- for (r.from > t && s.push(new Vt(r.from - t - 1).updateHeight(e, t)); l <= o && r.more; ) {
16259
+ for (r.from > t && s.push(new Ft(r.from - t - 1).updateHeight(e, t)); l <= o && r.more; ) {
16260
16260
  let c = e.doc.lineAt(l).length;
16261
16261
  s.length && s.push(null);
16262
16262
  let h = r.heights[r.index++];
16263
16263
  a == -1 ? a = h : Math.abs(h - a) >= Us && (a = -2);
16264
- let d = new fi(c, h);
16264
+ let d = new mi(c, h);
16265
16265
  d.outdated = !1, s.push(d), l += c + 1;
16266
16266
  }
16267
- l <= o && s.push(null, new Vt(o - l).updateHeight(e, l));
16268
- let u = oi.of(s);
16267
+ l <= o && s.push(null, new Ft(o - l).updateHeight(e, l));
16268
+ let u = si.of(s);
16269
16269
  return (a < 0 || Math.abs(u.height - this.height) >= Us || Math.abs(a - this.heightMetrics(e, t).perLine) >= Us) && (Qr = !0), ml(this, u);
16270
16270
  } else (n || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
16271
16271
  return this;
@@ -16274,7 +16274,7 @@ class Vt extends oi {
16274
16274
  return `gap(${this.length})`;
16275
16275
  }
16276
16276
  }
16277
- class kw extends oi {
16277
+ class kw extends si {
16278
16278
  constructor(e, t, n) {
16279
16279
  super(e.length + t + n.length, e.height + n.height, t | (e.outdated || n.outdated ? 2 : 0)), this.left = e, this.right = n, this.size = e.size + n.size;
16280
16280
  }
@@ -16316,7 +16316,7 @@ class kw extends oi {
16316
16316
  let l = o.length;
16317
16317
  this.decomposeRight(t, o), Ud(o, l);
16318
16318
  }
16319
- return oi.of(o);
16319
+ return si.of(o);
16320
16320
  }
16321
16321
  decomposeLeft(e, t) {
16322
16322
  let n = this.left.length;
@@ -16331,7 +16331,7 @@ class kw extends oi {
16331
16331
  e < n && this.left.decomposeRight(e, t), this.break && e < r && t.push(null), t.push(this.right);
16332
16332
  }
16333
16333
  balanced(e, t) {
16334
- return e.size > 2 * t.size || t.size > 2 * e.size ? oi.of(this.break ? [e, null, t] : [e, t]) : (this.left = ml(this.left, e), this.right = ml(this.right, t), this.setHeight(e.height + t.height), this.outdated = e.outdated || t.outdated, this.size = e.size + t.size, this.length = e.length + this.break + t.length, this);
16334
+ return e.size > 2 * t.size || t.size > 2 * e.size ? si.of(this.break ? [e, null, t] : [e, t]) : (this.left = ml(this.left, e), this.right = ml(this.right, t), this.setHeight(e.height + t.height), this.outdated = e.outdated || t.outdated, this.size = e.size + t.size, this.length = e.length + this.break + t.length, this);
16335
16335
  }
16336
16336
  updateHeight(e, t = 0, n = !1, r) {
16337
16337
  let { left: o, right: s } = this, l = t + o.length + this.break, a = null;
@@ -16343,7 +16343,7 @@ class kw extends oi {
16343
16343
  }
16344
16344
  function Ud(i, e) {
16345
16345
  let t, n;
16346
- i[e] == null && (t = i[e - 1]) instanceof Vt && (n = i[e + 1]) instanceof Vt && i.splice(e - 1, 3, new Vt(t.length + 1 + n.length));
16346
+ i[e] == null && (t = i[e - 1]) instanceof Ft && (n = i[e + 1]) instanceof Ft && i.splice(e - 1, 3, new Ft(t.length + 1 + n.length));
16347
16347
  }
16348
16348
  const ww = 5;
16349
16349
  class Nc {
@@ -16356,7 +16356,7 @@ class Nc {
16356
16356
  span(e, t) {
16357
16357
  if (this.lineStart > -1) {
16358
16358
  let n = Math.min(t, this.lineEnd), r = this.nodes[this.nodes.length - 1];
16359
- r instanceof fi ? r.length += n - this.pos : (n > this.pos || !this.isCovered) && this.nodes.push(new fi(n - this.pos, -1)), this.writtenTo = n, t > n && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
16359
+ r instanceof mi ? r.length += n - this.pos : (n > this.pos || !this.isCovered) && this.nodes.push(new mi(n - this.pos, -1)), this.writtenTo = n, t > n && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
16360
16360
  }
16361
16361
  this.pos = t;
16362
16362
  }
@@ -16373,18 +16373,18 @@ class Nc {
16373
16373
  if (this.lineStart > -1)
16374
16374
  return;
16375
16375
  let { from: e, to: t } = this.oracle.doc.lineAt(this.pos);
16376
- this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new fi(this.pos - e, -1)), this.writtenTo = this.pos;
16376
+ this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new mi(this.pos - e, -1)), this.writtenTo = this.pos;
16377
16377
  }
16378
16378
  blankContent(e, t) {
16379
- let n = new Vt(t - e);
16379
+ let n = new Ft(t - e);
16380
16380
  return this.oracle.doc.lineAt(e).to == t && (n.flags |= 4), n;
16381
16381
  }
16382
16382
  ensureLine() {
16383
16383
  this.enterLine();
16384
16384
  let e = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
16385
- if (e instanceof fi)
16385
+ if (e instanceof mi)
16386
16386
  return e;
16387
- let t = new fi(0, -1);
16387
+ let t = new mi(0, -1);
16388
16388
  return this.nodes.push(t), t;
16389
16389
  }
16390
16390
  addBlock(e) {
@@ -16398,10 +16398,10 @@ class Nc {
16398
16398
  }
16399
16399
  finish(e) {
16400
16400
  let t = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
16401
- this.lineStart > -1 && !(t instanceof fi) && !this.isCovered ? this.nodes.push(new fi(0, -1)) : (this.writtenTo < this.pos || t == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
16401
+ this.lineStart > -1 && !(t instanceof mi) && !this.isCovered ? this.nodes.push(new mi(0, -1)) : (this.writtenTo < this.pos || t == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
16402
16402
  let n = e;
16403
16403
  for (let r of this.nodes)
16404
- r instanceof fi && r.updateHeight(this.oracle, n), n += r ? r.length : 1;
16404
+ r instanceof mi && r.updateHeight(this.oracle, n), n += r ? r.length : 1;
16405
16405
  return this.nodes;
16406
16406
  }
16407
16407
  // Always called with a region that on both sides either stretches
@@ -16501,7 +16501,7 @@ class Kd {
16501
16501
  constructor(e) {
16502
16502
  this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Yd, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = at.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
16503
16503
  let t = e.facet(Ic).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
16504
- this.heightOracle = new bw(t), this.stateDeco = e.facet(qo).filter((n) => typeof n != "function"), this.heightMap = oi.empty().applyChanges(this.stateDeco, ze.empty, this.heightOracle.setDoc(e.doc), [new Mi(0, 0, 0, e.doc.length)]);
16504
+ this.heightOracle = new bw(t), this.stateDeco = e.facet(qo).filter((n) => typeof n != "function"), this.heightMap = si.empty().applyChanges(this.stateDeco, ze.empty, this.heightOracle.setDoc(e.doc), [new Mi(0, 0, 0, e.doc.length)]);
16505
16505
  for (let n = 0; n < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); n++)
16506
16506
  ;
16507
16507
  this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = ke.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges();
@@ -16566,7 +16566,7 @@ class Kd {
16566
16566
  g > 0 && p > 0 ? c = Math.max(g, p) : g < 0 && p < 0 && (c = Math.min(g, p)), Wd();
16567
16567
  for (let k of this.viewports) {
16568
16568
  let T = k.from == this.viewport.from ? y : e.docView.measureVisibleLineHeights(k);
16569
- this.heightMap = (s ? oi.empty().applyChanges(this.stateDeco, ze.empty, this.heightOracle, [new Mi(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, s, new xw(k.from, T));
16569
+ this.heightMap = (s ? si.empty().applyChanges(this.stateDeco, ze.empty, this.heightOracle, [new Mi(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, s, new xw(k.from, T));
16570
16570
  }
16571
16571
  Qr && (u |= 2);
16572
16572
  }
@@ -16650,7 +16650,7 @@ class Kd {
16650
16650
  }
16651
16651
  l.push(p);
16652
16652
  }, u = (c) => {
16653
- if (c.length < s || c.type != ri.Text)
16653
+ if (c.length < s || c.type != oi.Text)
16654
16654
  return;
16655
16655
  let h = Dw(c.from, c.to, this.stateDeco);
16656
16656
  if (h.total < s)
@@ -17624,7 +17624,7 @@ class he {
17624
17624
  try {
17625
17625
  d(r);
17626
17626
  } catch (f) {
17627
- ni(this.state, f, "update listener");
17627
+ ri(this.state, f, "update listener");
17628
17628
  }
17629
17629
  (a || c) && Promise.resolve().then(() => {
17630
17630
  a && this.state == a.startState && this.dispatch(a), c && !wp(this, c) && u.force && qr(this.contentDOM, u.key, u.keyCode);
@@ -17688,7 +17688,7 @@ class he {
17688
17688
  try {
17689
17689
  t.docViewUpdate(this);
17690
17690
  } catch (n) {
17691
- ni(this.state, n, "doc view update listener");
17691
+ ri(this.state, n, "doc view update listener");
17692
17692
  }
17693
17693
  }
17694
17694
  }
@@ -17728,7 +17728,7 @@ class he {
17728
17728
  try {
17729
17729
  return f.read(this);
17730
17730
  } catch (m) {
17731
- return ni(this.state, m), Xd;
17731
+ return ri(this.state, m), Xd;
17732
17732
  }
17733
17733
  }), h = fl.create(this, this.state, []), d = !1;
17734
17734
  h.flags |= a, t ? t.flags |= a : t = h, this.updateState = 2, h.empty || (this.updatePlugins(h), this.inputState.update(h), this.updateAttrs(), d = this.docView.update(h), d && this.docViewUpdate());
@@ -17738,7 +17738,7 @@ class he {
17738
17738
  let m = u[f];
17739
17739
  m.write && m.write(c[f], this);
17740
17740
  } catch (m) {
17741
- ni(this.state, m);
17741
+ ri(this.state, m);
17742
17742
  }
17743
17743
  if (d && this.docView.updateSelection(!0), !h.viewportChanged && this.measureRequests.length == 0) {
17744
17744
  if (this.viewState.editorHeight)
@@ -18367,7 +18367,7 @@ function zw(i, e = Iw) {
18367
18367
  let Wu = null;
18368
18368
  function Ip(i, e, t, n) {
18369
18369
  Wu = e;
18370
- let r = ck(e), o = li(r, 0), s = Qi(o) == r.length && r != " ", l = "", a = !1, u = !1, c = !1;
18370
+ let r = ck(e), o = ai(r, 0), s = Qi(o) == r.length && r != " ", l = "", a = !1, u = !1, c = !1;
18371
18371
  An && An.view == t && An.scope == n && (l = An.prefix + " ", Mp.indexOf(e.keyCode) < 0 && (u = !0, An = null));
18372
18372
  let h = /* @__PURE__ */ new Set(), d = (p) => {
18373
18373
  if (p) {
@@ -18435,12 +18435,12 @@ function ef(i, e, t, n) {
18435
18435
  function jw(i, e, t) {
18436
18436
  if (t.to <= i.viewport.from || t.from >= i.viewport.to)
18437
18437
  return [];
18438
- let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == at.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Vp(i), u = s.querySelector(".cm-line"), c = u && window.getComputedStyle(u), h = l.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), d = l.right - (c ? parseInt(c.paddingRight) : 0), f = Nu(i, n, 1), m = Nu(i, r, -1), g = f.type == ri.Text ? f : null, p = m.type == ri.Text ? m : null;
18438
+ let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == at.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Vp(i), u = s.querySelector(".cm-line"), c = u && window.getComputedStyle(u), h = l.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), d = l.right - (c ? parseInt(c.paddingRight) : 0), f = Nu(i, n, 1), m = Nu(i, r, -1), g = f.type == oi.Text ? f : null, p = m.type == oi.Text ? m : null;
18439
18439
  if (g && (i.lineWrapping || f.widgetLineBreaks) && (g = ef(i, n, 1, g)), p && (i.lineWrapping || m.widgetLineBreaks) && (p = ef(i, r, -1, p)), g && p && g.from == p.from && g.to == p.to)
18440
18440
  return C(v(t.from, t.to, g));
18441
18441
  {
18442
18442
  let k = g ? v(t.from, null, g) : y(f, !1), T = p ? v(null, t.to, p) : y(m, !0), B = [];
18443
- return (g || f).to < (p || m).from - (g && p ? 1 : 0) || f.widgetLineBreaks > 1 && k.bottom + i.defaultLineHeight / 2 < T.top ? B.push(w(h, k.bottom, d, T.top)) : k.bottom < T.top && i.elementAtHeight((k.bottom + T.top) / 2).type == ri.Text && (k.bottom = T.top = (k.bottom + T.top) / 2), C(k).concat(B).concat(C(T));
18443
+ return (g || f).to < (p || m).from - (g && p ? 1 : 0) || f.widgetLineBreaks > 1 && k.bottom + i.defaultLineHeight / 2 < T.top ? B.push(w(h, k.bottom, d, T.top)) : k.bottom < T.top && i.elementAtHeight((k.bottom + T.top) / 2).type == oi.Text && (k.bottom = T.top = (k.bottom + T.top) / 2), C(k).concat(B).concat(C(T));
18444
18444
  }
18445
18445
  function w(k, T, B, L) {
18446
18446
  return new es(e, k - a.left, T - a.top, B - k, L - T);
@@ -18806,7 +18806,7 @@ function rS() {
18806
18806
  return new $w({
18807
18807
  regexp: i.specialChars,
18808
18808
  decoration: (e, t, n) => {
18809
- let { doc: r } = t.state, o = li(e[0], 0);
18809
+ let { doc: r } = t.state, o = ai(e[0], 0);
18810
18810
  if (o == 9) {
18811
18811
  let s = r.lineAt(n), l = t.state.tabSize, a = Gr(s.text, l, n - s.from);
18812
18812
  return ke.replace({
@@ -19372,7 +19372,7 @@ class MS {
19372
19372
  let l = this.pending = { pos: r };
19373
19373
  s.then((a) => {
19374
19374
  this.pending == l && (this.pending = null, a && !(Array.isArray(a) && !a.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(a) ? a : [a]) }));
19375
- }, (a) => ni(e.state, a, "hover tooltip"));
19375
+ }, (a) => ri(e.state, a, "hover tooltip"));
19376
19376
  } else s && !(Array.isArray(s) && !s.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(s) ? s : [s]) });
19377
19377
  }
19378
19378
  get tooltip() {
@@ -19431,7 +19431,7 @@ function OS(i, e = {}) {
19431
19431
  if (r.length && (e.hideOnChange && (o.docChanged || o.selection) ? r = [] : e.hideOn && (r = r.filter((s) => !e.hideOn(o, s))), o.docChanged)) {
19432
19432
  let s = [];
19433
19433
  for (let l of r) {
19434
- let a = o.changes.mapPos(l.pos, -1, ii.TrackDel);
19434
+ let a = o.changes.mapPos(l.pos, -1, ni.TrackDel);
19435
19435
  if (a != null) {
19436
19436
  let u = Object.assign(/* @__PURE__ */ Object.create(null), l);
19437
19437
  u.pos = a, u.end != null && (u.end = o.changes.mapPos(u.end)), s.push(u);
@@ -19585,7 +19585,7 @@ class Zi extends lr {
19585
19585
  }
19586
19586
  Zi.prototype.elementClass = "";
19587
19587
  Zi.prototype.toDOM = void 0;
19588
- Zi.prototype.mapMode = ii.TrackBefore;
19588
+ Zi.prototype.mapMode = ni.TrackBefore;
19589
19589
  Zi.prototype.startSide = Zi.prototype.endSide = -1;
19590
19590
  Zi.prototype.point = !0;
19591
19591
  const Gs = /* @__PURE__ */ me.define(), _S = /* @__PURE__ */ me.define(), PS = {
@@ -19641,7 +19641,7 @@ const qS = /* @__PURE__ */ gt.fromClass(class {
19641
19641
  if (n.length && (n = []), Array.isArray(o.type)) {
19642
19642
  let s = !0;
19643
19643
  for (let l of o.type)
19644
- if (l.type == ri.Text && s) {
19644
+ if (l.type == oi.Text && s) {
19645
19645
  Yu(t, n, l.from);
19646
19646
  for (let a of r)
19647
19647
  a.line(this.view, l, n);
@@ -19649,7 +19649,7 @@ const qS = /* @__PURE__ */ gt.fromClass(class {
19649
19649
  } else if (l.widget)
19650
19650
  for (let a of r)
19651
19651
  a.widget(this.view, l);
19652
- } else if (o.type == ri.Text) {
19652
+ } else if (o.type == oi.Text) {
19653
19653
  Yu(t, n, o.from);
19654
19654
  for (let s of r)
19655
19655
  s.line(this.view, o, n);
@@ -19929,7 +19929,7 @@ class Be {
19929
19929
  add(e) {
19930
19930
  if (this.perNode)
19931
19931
  throw new RangeError("Can't add per-node props to node types");
19932
- return typeof e != "function" && (e = ci.match(e)), (t) => {
19932
+ return typeof e != "function" && (e = hi.match(e)), (t) => {
19933
19933
  let n = e(t);
19934
19934
  return n === void 0 ? null : [this, n];
19935
19935
  };
@@ -19958,7 +19958,7 @@ class vl {
19958
19958
  }
19959
19959
  }
19960
19960
  const zS = /* @__PURE__ */ Object.create(null);
19961
- class ci {
19961
+ class hi {
19962
19962
  /**
19963
19963
  @internal
19964
19964
  */
@@ -19969,7 +19969,7 @@ class ci {
19969
19969
  Define a node type.
19970
19970
  */
19971
19971
  static define(e) {
19972
- let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : zS, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new ci(e.name || "", t, e.id, n);
19972
+ let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : zS, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new hi(e.name || "", t, e.id, n);
19973
19973
  if (e.props) {
19974
19974
  for (let o of e.props)
19975
19975
  if (Array.isArray(o) || (o = o(r)), o) {
@@ -20047,7 +20047,7 @@ class ci {
20047
20047
  };
20048
20048
  }
20049
20049
  }
20050
- ci.none = new ci(
20050
+ hi.none = new hi(
20051
20051
  "",
20052
20052
  /* @__PURE__ */ Object.create(null),
20053
20053
  0,
@@ -20082,16 +20082,16 @@ class jc {
20082
20082
  a.combine && a.id in r && (l = a.combine(r[a.id], l)), r[a.id] = l;
20083
20083
  }
20084
20084
  }
20085
- t.push(r ? new ci(n.name, r, n.id, n.flags) : n);
20085
+ t.push(r ? new hi(n.name, r, n.id, n.flags) : n);
20086
20086
  }
20087
20087
  return new jc(t);
20088
20088
  }
20089
20089
  }
20090
20090
  const Os = /* @__PURE__ */ new WeakMap(), mf = /* @__PURE__ */ new WeakMap();
20091
- var Dt;
20091
+ var _t;
20092
20092
  (function(i) {
20093
20093
  i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
20094
- })(Dt || (Dt = {}));
20094
+ })(_t || (_t = {}));
20095
20095
  class wt {
20096
20096
  /**
20097
20097
  Construct a new tree. See also [`Tree.build`](#common.Tree^build).
@@ -20185,8 +20185,8 @@ class wt {
20185
20185
  not have its children iterated over (or `leave` called).
20186
20186
  */
20187
20187
  iterate(e) {
20188
- let { enter: t, leave: n, from: r = 0, to: o = this.length } = e, s = e.mode || 0, l = (s & Dt.IncludeAnonymous) > 0;
20189
- for (let a = this.cursor(s | Dt.IncludeAnonymous); ; ) {
20188
+ let { enter: t, leave: n, from: r = 0, to: o = this.length } = e, s = e.mode || 0, l = (s & _t.IncludeAnonymous) > 0;
20189
+ for (let a = this.cursor(s | _t.IncludeAnonymous); ; ) {
20190
20190
  let u = !1;
20191
20191
  if (a.from <= o && a.to >= r && (!l && a.type.isAnonymous || t(a) !== !1)) {
20192
20192
  if (a.firstChild())
@@ -20225,7 +20225,7 @@ class wt {
20225
20225
  [`NodeType.none`](#common.NodeType^none).
20226
20226
  */
20227
20227
  balance(e = {}) {
20228
- return this.children.length <= 8 ? this : Uc(ci.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new wt(this.type, t, n, r, this.propValues), e.makeTree || ((t, n, r) => new wt(ci.none, t, n, r)));
20228
+ return this.children.length <= 8 ? this : Uc(hi.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new wt(this.type, t, n, r, this.propValues), e.makeTree || ((t, n, r) => new wt(hi.none, t, n, r)));
20229
20229
  }
20230
20230
  /**
20231
20231
  Build a tree from a postfix-ordered buffer of node information,
@@ -20235,7 +20235,7 @@ class wt {
20235
20235
  return US(e);
20236
20236
  }
20237
20237
  }
20238
- wt.empty = new wt(ci.none, [], [], 0);
20238
+ wt.empty = new wt(hi.none, [], [], 0);
20239
20239
  class Qc {
20240
20240
  constructor(e, t) {
20241
20241
  this.buffer = e, this.index = t;
@@ -20273,7 +20273,7 @@ class In {
20273
20273
  @internal
20274
20274
  */
20275
20275
  get type() {
20276
- return ci.none;
20276
+ return hi.none;
20277
20277
  }
20278
20278
  /**
20279
20279
  @internal
@@ -20341,7 +20341,7 @@ function Eo(i, e, t, n) {
20341
20341
  return i;
20342
20342
  i = s;
20343
20343
  }
20344
- let o = n ? 0 : Dt.IgnoreOverlays;
20344
+ let o = n ? 0 : _t.IgnoreOverlays;
20345
20345
  if (n)
20346
20346
  for (let s = i, l = s.parent; l; s = l, l = s.parent)
20347
20347
  s instanceof Ai && s.index < 0 && ((r = l.enter(e, t, o)) === null || r === void 0 ? void 0 : r.from) != s.from && (i = l);
@@ -20408,21 +20408,21 @@ class Ai extends Xp {
20408
20408
  let c = l[e], h = a[e] + s.from;
20409
20409
  if (Jp(r, n, h, h + c.length)) {
20410
20410
  if (c instanceof In) {
20411
- if (o & Dt.ExcludeBuffers)
20411
+ if (o & _t.ExcludeBuffers)
20412
20412
  continue;
20413
20413
  let d = c.findChild(0, c.buffer.length, t, n - h, r);
20414
20414
  if (d > -1)
20415
20415
  return new qn(new jS(s, c, e, h), null, d);
20416
- } else if (o & Dt.IncludeAnonymous || !c.type.isAnonymous || Wc(c)) {
20416
+ } else if (o & _t.IncludeAnonymous || !c.type.isAnonymous || Wc(c)) {
20417
20417
  let d;
20418
- if (!(o & Dt.IgnoreMounts) && (d = vl.get(c)) && !d.overlay)
20418
+ if (!(o & _t.IgnoreMounts) && (d = vl.get(c)) && !d.overlay)
20419
20419
  return new Ai(d.tree, h, e, s);
20420
20420
  let f = new Ai(c, h, e, s);
20421
- return o & Dt.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, r);
20421
+ return o & _t.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, r);
20422
20422
  }
20423
20423
  }
20424
20424
  }
20425
- if (o & Dt.IncludeAnonymous || !s.type.isAnonymous || (s.index >= 0 ? e = s.index + t : e = t < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s))
20425
+ if (o & _t.IncludeAnonymous || !s.type.isAnonymous || (s.index >= 0 ? e = s.index + t : e = t < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s))
20426
20426
  return null;
20427
20427
  }
20428
20428
  }
@@ -20464,7 +20464,7 @@ class Ai extends Xp {
20464
20464
  }
20465
20465
  enter(e, t, n = 0) {
20466
20466
  let r;
20467
- if (!(n & Dt.IgnoreOverlays) && (r = vl.get(this._tree)) && r.overlay) {
20467
+ if (!(n & _t.IgnoreOverlays) && (r = vl.get(this._tree)) && r.overlay) {
20468
20468
  let o = e - this.from;
20469
20469
  for (let { from: s, to: l } of r.overlay)
20470
20470
  if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
@@ -20595,7 +20595,7 @@ class qn extends Xp {
20595
20595
  );
20596
20596
  }
20597
20597
  enter(e, t, n = 0) {
20598
- if (n & Dt.ExcludeBuffers)
20598
+ if (n & _t.ExcludeBuffers)
20599
20599
  return null;
20600
20600
  let { buffer: r } = this.context, o = r.findChild(this.index + 4, r.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
20601
20601
  return o < 0 ? null : new qn(this.context, this, o);
@@ -20781,17 +20781,17 @@ class Ju {
20781
20781
  set to false.
20782
20782
  */
20783
20783
  enter(e, t, n = this.mode) {
20784
- return this.buffer ? n & Dt.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
20784
+ return this.buffer ? n & _t.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
20785
20785
  }
20786
20786
  /**
20787
20787
  Move to the node's parent node, if this isn't the top node.
20788
20788
  */
20789
20789
  parent() {
20790
20790
  if (!this.buffer)
20791
- return this.yieldNode(this.mode & Dt.IncludeAnonymous ? this._tree._parent : this._tree.parent);
20791
+ return this.yieldNode(this.mode & _t.IncludeAnonymous ? this._tree._parent : this._tree.parent);
20792
20792
  if (this.stack.length)
20793
20793
  return this.yieldBuf(this.stack.pop());
20794
- let e = this.mode & Dt.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
20794
+ let e = this.mode & _t.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
20795
20795
  return this.buffer = null, this.yieldNode(e);
20796
20796
  }
20797
20797
  /**
@@ -20848,7 +20848,7 @@ class Ju {
20848
20848
  if (t > -1)
20849
20849
  for (let o = t + e, s = e < 0 ? -1 : n._tree.children.length; o != s; o += e) {
20850
20850
  let l = n._tree.children[o];
20851
- if (this.mode & Dt.IncludeAnonymous || l instanceof In || !l.type.isAnonymous || Wc(l))
20851
+ if (this.mode & _t.IncludeAnonymous || l instanceof In || !l.type.isAnonymous || Wc(l))
20852
20852
  return !1;
20853
20853
  }
20854
20854
  return !0;
@@ -21995,7 +21995,7 @@ Pi.setState = /* @__PURE__ */ Te.define();
21995
21995
  function bf(i, e, t) {
21996
21996
  let n = i.facet(Vn), r = Ut(i).topNode;
21997
21997
  if (!n || n.allowsNesting)
21998
- for (let o = r; o; o = o.enter(e, t, Dt.ExcludeBuffers))
21998
+ for (let o = r; o; o = o.enter(e, t, _t.ExcludeBuffers))
21999
21999
  o.type.isTop && (r = o);
22000
22000
  return r;
22001
22001
  }
@@ -22178,7 +22178,7 @@ class xl {
22178
22178
  a.tempSkipped.push(u);
22179
22179
  e && (a.scheduleOn = a.scheduleOn ? Promise.all([a.scheduleOn, e]) : e);
22180
22180
  }
22181
- return this.parsedPos = s, new wt(ci.none, [], [], s - o);
22181
+ return this.parsedPos = s, new wt(hi.none, [], [], s - o);
22182
22182
  },
22183
22183
  stoppedAt: null,
22184
22184
  stopAt() {
@@ -22280,7 +22280,7 @@ const Qa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null ||
22280
22280
  this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (o.context.takeTree(), this.view.dispatch({ effects: Pi.setState.of(new Wr(o.context)) })), this.chunkBudget > 0 && !(a && !l) && this.scheduleWork(), this.checkAsyncSchedule(o.context);
22281
22281
  }
22282
22282
  checkAsyncSchedule(e) {
22283
- e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => ni(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
22283
+ e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => ri(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
22284
22284
  }
22285
22285
  destroy() {
22286
22286
  this.working && this.working();
@@ -23104,7 +23104,7 @@ function QC(i, e, t, n, r, o, s) {
23104
23104
  }
23105
23105
  return c.done ? { start: u, matched: !1 } : null;
23106
23106
  }
23107
- const WC = /* @__PURE__ */ Object.create(null), Cf = [ci.none], Mf = [], Af = /* @__PURE__ */ Object.create(null), UC = /* @__PURE__ */ Object.create(null);
23107
+ const WC = /* @__PURE__ */ Object.create(null), Cf = [hi.none], Mf = [], Af = /* @__PURE__ */ Object.create(null), UC = /* @__PURE__ */ Object.create(null);
23108
23108
  for (let [i, e] of [
23109
23109
  ["variable", "variableName"],
23110
23110
  ["variable-2", "variableName.special"],
@@ -23139,7 +23139,7 @@ function KC(i, e) {
23139
23139
  let n = e.replace(/ /g, "_"), r = n + " " + t.map((l) => l.id), o = Af[r];
23140
23140
  if (o)
23141
23141
  return o.id;
23142
- let s = Af[r] = ci.define({
23142
+ let s = Af[r] = hi.define({
23143
23143
  id: Cf.length,
23144
23144
  name: n,
23145
23145
  props: [ev({ [n]: t })]
@@ -23282,20 +23282,20 @@ const tc = /* @__PURE__ */ yn.define(), tM = /* @__PURE__ */ yn.define(), iM = /
23282
23282
  update(i, e) {
23283
23283
  let t = e.state.facet(xv), n = e.annotation(tc);
23284
23284
  if (n) {
23285
- let a = ui.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
23285
+ let a = ci.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
23286
23286
  return a ? c = Cl(c, c.length, t.minDepth, a) : c = Cv(c, e.startState.selection), new Ki(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
23287
23287
  }
23288
23288
  let r = e.annotation(tM);
23289
23289
  if ((r == "full" || r == "before") && (i = i.isolate()), e.annotation(At.addToHistory) === !1)
23290
23290
  return e.changes.empty ? i : i.addMapping(e.changes.desc);
23291
- let o = ui.fromTransaction(e), s = e.annotation(At.time), l = e.annotation(At.userEvent);
23291
+ let o = ci.fromTransaction(e), s = e.annotation(At.time), l = e.annotation(At.userEvent);
23292
23292
  return o ? i = i.addChanges(o, s, l, t, e) : e.selection && (i = i.addSelection(e.startState.selection, s, l, t.newGroupDelay)), (r == "full" || r == "after") && (i = i.isolate()), i;
23293
23293
  },
23294
23294
  toJSON(i) {
23295
23295
  return { done: i.done.map((e) => e.toJSON()), undone: i.undone.map((e) => e.toJSON()) };
23296
23296
  },
23297
23297
  fromJSON(i) {
23298
- return new Ki(i.done.map(ui.fromJSON), i.undone.map(ui.fromJSON));
23298
+ return new Ki(i.done.map(ci.fromJSON), i.undone.map(ci.fromJSON));
23299
23299
  }
23300
23300
  });
23301
23301
  function nM(i = {}) {
@@ -23322,12 +23322,12 @@ function Zl(i, e) {
23322
23322
  };
23323
23323
  }
23324
23324
  const wv = /* @__PURE__ */ Zl(0, !1), ic = /* @__PURE__ */ Zl(1, !1), rM = /* @__PURE__ */ Zl(0, !0), oM = /* @__PURE__ */ Zl(1, !0);
23325
- class ui {
23325
+ class ci {
23326
23326
  constructor(e, t, n, r, o) {
23327
23327
  this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = o;
23328
23328
  }
23329
23329
  setSelAfter(e) {
23330
- return new ui(this.changes, this.effects, this.mapped, this.startSelection, e);
23330
+ return new ci(this.changes, this.effects, this.mapped, this.startSelection, e);
23331
23331
  }
23332
23332
  toJSON() {
23333
23333
  var e, t, n;
@@ -23339,7 +23339,7 @@ class ui {
23339
23339
  };
23340
23340
  }
23341
23341
  static fromJSON(e) {
23342
- return new ui(e.changes && Mt.fromJSON(e.changes), [], e.mapped && Gi.fromJSON(e.mapped), e.startSelection && X.fromJSON(e.startSelection), e.selectionsAfter.map(X.fromJSON));
23342
+ return new ci(e.changes && Mt.fromJSON(e.changes), [], e.mapped && Gi.fromJSON(e.mapped), e.startSelection && X.fromJSON(e.startSelection), e.selectionsAfter.map(X.fromJSON));
23343
23343
  }
23344
23344
  // This does not check `addToHistory` and such, it assumes the
23345
23345
  // transaction needs to be converted to an item. Returns null when
@@ -23350,10 +23350,10 @@ class ui {
23350
23350
  let o = r(e);
23351
23351
  o.length && (n = n.concat(o));
23352
23352
  }
23353
- return !n.length && e.changes.empty ? null : new ui(e.changes.invert(e.startState.doc), n, void 0, t || e.startState.selection, Si);
23353
+ return !n.length && e.changes.empty ? null : new ci(e.changes.invert(e.startState.doc), n, void 0, t || e.startState.selection, Si);
23354
23354
  }
23355
23355
  static selection(e) {
23356
- return new ui(void 0, Si, void 0, void 0, e);
23356
+ return new ci(void 0, Si, void 0, void 0, e);
23357
23357
  }
23358
23358
  }
23359
23359
  function Cl(i, e, t, n) {
@@ -23381,7 +23381,7 @@ function Cv(i, e) {
23381
23381
  let t = i[i.length - 1], n = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - aM));
23382
23382
  return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), Cl(i, i.length - 1, 1e9, t.setSelAfter(n)));
23383
23383
  } else
23384
- return [ui.selection([e])];
23384
+ return [ci.selection([e])];
23385
23385
  }
23386
23386
  function uM(i) {
23387
23387
  let e = i[i.length - 1], t = i.slice();
@@ -23399,14 +23399,14 @@ function Ya(i, e) {
23399
23399
  } else
23400
23400
  e = r.mapped, t--, n = r.selectionsAfter;
23401
23401
  }
23402
- return n.length ? [ui.selection(n)] : Si;
23402
+ return n.length ? [ci.selection(n)] : Si;
23403
23403
  }
23404
23404
  function cM(i, e, t) {
23405
23405
  let n = Sv(i.selectionsAfter.length ? i.selectionsAfter.map((l) => l.map(e)) : Si, t);
23406
23406
  if (!i.changes)
23407
- return ui.selection(n);
23407
+ return ci.selection(n);
23408
23408
  let r = i.changes.map(e), o = e.mapDesc(i.changes, !0), s = i.mapped ? i.mapped.composeDesc(o) : o;
23409
- return new ui(r, Te.mapEffects(i.effects, e), s, i.startSelection.map(o), n);
23409
+ return new ci(r, Te.mapEffects(i.effects, e), s, i.startSelection.map(o), n);
23410
23410
  }
23411
23411
  const hM = /^(input\.type|delete)($|\.)/;
23412
23412
  class Ki {
@@ -23419,7 +23419,7 @@ class Ki {
23419
23419
  addChanges(e, t, n, r, o) {
23420
23420
  let s = this.done, l = s[s.length - 1];
23421
23421
  return l && l.changes && !l.changes.empty && e.changes && (!n || hM.test(n)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(o, sM(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
23422
- n == "input.type.compose") ? s = Cl(s, s.length - 1, r.minDepth, new ui(e.changes.compose(l.changes), Sv(Te.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, Si)) : s = Cl(s, s.length, r.minDepth, e), new Ki(s, Si, t, n);
23422
+ n == "input.type.compose") ? s = Cl(s, s.length - 1, r.minDepth, new ci(e.changes.compose(l.changes), Sv(Te.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, Si)) : s = Cl(s, s.length, r.minDepth, e), new Ki(s, Si, t, n);
23423
23423
  }
23424
23424
  addSelection(e, t, n, r) {
23425
23425
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Si;
@@ -23664,7 +23664,7 @@ const jv = (i, e, t) => ns(i, (n) => {
23664
23664
  r--;
23665
23665
  a = r;
23666
23666
  } else
23667
- a = Ht(s.text, r - s.from, e, e) + s.from, a == r && s.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(a - s.from, r - s.from)) && (a = Ht(s.text, a - s.from, !1, !1) + s.from);
23667
+ a = zt(s.text, r - s.from, e, e) + s.from, a == r && s.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(a - s.from, r - s.from)) && (a = zt(s.text, a - s.from, !1, !1) + s.from);
23668
23668
  return a;
23669
23669
  }), rc = (i) => jv(i, !1, !0), Qv = (i) => jv(i, !0, !1), Wv = (i, e) => ns(i, (t) => {
23670
23670
  let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
@@ -23673,7 +23673,7 @@ const jv = (i, e, t) => ns(i, (n) => {
23673
23673
  n == t.head && o.number != (e ? r.doc.lines : 1) && (n += e ? 1 : -1);
23674
23674
  break;
23675
23675
  }
23676
- let a = Ht(o.text, n - o.from, e) + o.from, u = o.text.slice(Math.min(n, a) - o.from, Math.max(n, a) - o.from), c = s(u);
23676
+ let a = zt(o.text, n - o.from, e) + o.from, u = o.text.slice(Math.min(n, a) - o.from, Math.max(n, a) - o.from), c = s(u);
23677
23677
  if (l != null && c != l)
23678
23678
  break;
23679
23679
  (u != " " || n != t.head) && (l = c), n = a;
@@ -23702,7 +23702,7 @@ const jv = (i, e, t) => ns(i, (n) => {
23702
23702
  let t = i.changeByRange((n) => {
23703
23703
  if (!n.empty || n.from == 0 || n.from == i.doc.length)
23704
23704
  return { range: n };
23705
- let r = n.from, o = i.doc.lineAt(r), s = r == o.from ? r - 1 : Ht(o.text, r - o.from, !1) + o.from, l = r == o.to ? r + 1 : Ht(o.text, r - o.from, !0) + o.from;
23705
+ let r = n.from, o = i.doc.lineAt(r), s = r == o.from ? r - 1 : zt(o.text, r - o.from, !1) + o.from, l = r == o.to ? r + 1 : zt(o.text, r - o.from, !0) + o.from;
23706
23706
  return {
23707
23707
  changes: { from: s, to: l, insert: i.doc.slice(r, l).append(i.doc.slice(s, r)) },
23708
23708
  range: X.cursor(l)
@@ -23923,7 +23923,7 @@ class Ur {
23923
23923
  return -1;
23924
23924
  this.bufferPos = 0, this.buffer = this.iter.value;
23925
23925
  }
23926
- return li(this.buffer, this.bufferPos);
23926
+ return ai(this.buffer, this.bufferPos);
23927
23927
  }
23928
23928
  /**
23929
23929
  Look for the next match. Updates the iterator's
@@ -24358,10 +24358,10 @@ function wr(i, e, t, n) {
24358
24358
  }, t, n);
24359
24359
  }
24360
24360
  function Al(i, e) {
24361
- return i.slice(Ht(i, e, !1), e);
24361
+ return i.slice(zt(i, e, !1), e);
24362
24362
  }
24363
24363
  function Tl(i, e) {
24364
- return i.slice(e, Ht(i, e));
24364
+ return i.slice(e, zt(i, e));
24365
24365
  }
24366
24366
  function SA(i) {
24367
24367
  return (e, t, n) => !n[0].length || (i(Al(n.input, n.index)) != ut.Word || i(Tl(n.input, n.index)) != ut.Word) && (i(Tl(n.input, n.index + n[0].length)) != ut.Word || i(Al(n.input, n.index + n[0].length)) != ut.Word);
@@ -24602,8 +24602,8 @@ class qA {
24602
24602
  let t = this.query = e.state.field(Bn).query.spec;
24603
24603
  this.commit = this.commit.bind(this), this.searchField = Xe("input", {
24604
24604
  value: t.search,
24605
- placeholder: hi(e, "Find"),
24606
- "aria-label": hi(e, "Find"),
24605
+ placeholder: di(e, "Find"),
24606
+ "aria-label": di(e, "Find"),
24607
24607
  class: "cm-textfield",
24608
24608
  name: "search",
24609
24609
  form: "",
@@ -24612,8 +24612,8 @@ class qA {
24612
24612
  onkeyup: this.commit
24613
24613
  }), this.replaceField = Xe("input", {
24614
24614
  value: t.replace,
24615
- placeholder: hi(e, "Replace"),
24616
- "aria-label": hi(e, "Replace"),
24615
+ placeholder: di(e, "Replace"),
24616
+ "aria-label": di(e, "Replace"),
24617
24617
  class: "cm-textfield",
24618
24618
  name: "replace",
24619
24619
  form: "",
@@ -24643,22 +24643,22 @@ class qA {
24643
24643
  }
24644
24644
  this.dom = Xe("div", { onkeydown: (r) => this.keydown(r), class: "cm-search" }, [
24645
24645
  this.searchField,
24646
- n("next", () => Ol(e), [hi(e, "next")]),
24647
- n("prev", () => Dl(e), [hi(e, "previous")]),
24648
- n("select", () => OA(e), [hi(e, "all")]),
24649
- Xe("label", null, [this.caseField, hi(e, "match case")]),
24650
- Xe("label", null, [this.reField, hi(e, "regexp")]),
24651
- Xe("label", null, [this.wordField, hi(e, "by word")]),
24646
+ n("next", () => Ol(e), [di(e, "next")]),
24647
+ n("prev", () => Dl(e), [di(e, "previous")]),
24648
+ n("select", () => OA(e), [di(e, "all")]),
24649
+ Xe("label", null, [this.caseField, di(e, "match case")]),
24650
+ Xe("label", null, [this.reField, di(e, "regexp")]),
24651
+ Xe("label", null, [this.wordField, di(e, "by word")]),
24652
24652
  ...e.state.readOnly ? [] : [
24653
24653
  Xe("br"),
24654
24654
  this.replaceField,
24655
- n("replace", () => Vf(e), [hi(e, "replace")]),
24656
- n("replaceAll", () => _A(e), [hi(e, "replace all")])
24655
+ n("replace", () => Vf(e), [di(e, "replace")]),
24656
+ n("replaceAll", () => _A(e), [di(e, "replace all")])
24657
24657
  ],
24658
24658
  Xe("button", {
24659
24659
  name: "close",
24660
24660
  onclick: () => s0(e),
24661
- "aria-label": hi(e, "close"),
24661
+ "aria-label": di(e, "close"),
24662
24662
  type: "button"
24663
24663
  }, ["×"])
24664
24664
  ]);
@@ -24694,7 +24694,7 @@ class qA {
24694
24694
  return this.view.state.facet(Xr).top;
24695
24695
  }
24696
24696
  }
24697
- function hi(i, e) {
24697
+ function di(i, e) {
24698
24698
  return i.state.phrase(e);
24699
24699
  }
24700
24700
  const Bs = 30, Ls = /[\s\.,:;?!]/;
@@ -24869,10 +24869,10 @@ class FA {
24869
24869
  constructor(e) {
24870
24870
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
24871
24871
  for (let t = 0; t < e.length; ) {
24872
- let n = li(e, t), r = Qi(n);
24872
+ let n = ai(e, t), r = Qi(n);
24873
24873
  this.chars.push(n);
24874
24874
  let o = e.slice(t, t + r), s = o.toUpperCase();
24875
- this.folded.push(li(s == o ? o.toLowerCase() : s, 0)), t += r;
24875
+ this.folded.push(ai(s == o ? o.toLowerCase() : s, 0)), t += r;
24876
24876
  }
24877
24877
  this.astral = e.length != this.chars.length;
24878
24878
  }
@@ -24893,7 +24893,7 @@ class FA {
24893
24893
  return null;
24894
24894
  let { chars: t, folded: n, any: r, precise: o, byWord: s } = this;
24895
24895
  if (t.length == 1) {
24896
- let C = li(e, 0), v = Qi(C), y = v == e.length ? 0 : -100;
24896
+ let C = ai(e, 0), v = Qi(C), y = v == e.length ? 0 : -100;
24897
24897
  if (C != t[0]) if (C == n[0])
24898
24898
  y += -200;
24899
24899
  else
@@ -24906,7 +24906,7 @@ class FA {
24906
24906
  let a = t.length, u = 0;
24907
24907
  if (l < 0) {
24908
24908
  for (let C = 0, v = Math.min(e.length, 200); C < v && u < a; ) {
24909
- let y = li(e, C);
24909
+ let y = ai(e, C);
24910
24910
  (y == t[u] || y == n[u]) && (r[u++] = C), C += Qi(y);
24911
24911
  }
24912
24912
  if (u < a)
@@ -24914,7 +24914,7 @@ class FA {
24914
24914
  }
24915
24915
  let c = 0, h = 0, d = !1, f = 0, m = -1, g = -1, p = /[a-z]/.test(e), w = !0;
24916
24916
  for (let C = 0, v = Math.min(e.length, 200), y = 0; C < v && h < a; ) {
24917
- let k = li(e, C);
24917
+ let k = ai(e, C);
24918
24918
  l < 0 && (c < a && k == t[c] && (o[c++] = C), f < a && (k == t[f] || k == n[f] ? (f == 0 && (m = C), g = C + 1, f++) : f = 0));
24919
24919
  let T, B = k < 255 ? k >= 48 && k <= 57 || k >= 97 && k <= 122 ? 2 : k >= 65 && k <= 90 ? 1 : 0 : (T = Dc(k)) != T.toLowerCase() ? 1 : T != T.toUpperCase() ? 2 : 0;
24920
24920
  (!C || B == 1 && p || y == 0 && B != 0) && (t[h] == k || n[h] == k && (d = !0) ? s[h++] = C : s.length && (w = !1)), y = B, C += Qi(k);
@@ -24924,7 +24924,7 @@ class FA {
24924
24924
  result(e, t, n) {
24925
24925
  let r = [], o = 0;
24926
24926
  for (let s of t) {
24927
- let l = s + (this.astral ? Qi(li(n, s)) : 1);
24927
+ let l = s + (this.astral ? Qi(ai(n, s)) : 1);
24928
24928
  o && r[o - 1] == s ? r[o - 1] = l : (r[o++] = s, r[o++] = l);
24929
24929
  }
24930
24930
  return this.ret(e - n.length, r);
@@ -24941,7 +24941,7 @@ class NA {
24941
24941
  return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
24942
24942
  }
24943
24943
  }
24944
- const Pt = /* @__PURE__ */ me.define({
24944
+ const qt = /* @__PURE__ */ me.define({
24945
24945
  combine(i) {
24946
24946
  return Li(i, {
24947
24947
  activateOnTyping: !0,
@@ -25044,7 +25044,7 @@ class jA {
25044
25044
  write: (a) => this.placeInfo(a),
25045
25045
  key: this
25046
25046
  }, this.space = null, this.currentClass = "";
25047
- let r = e.state.field(t), { options: o, selected: s } = r.open, l = e.state.facet(Pt);
25047
+ let r = e.state.field(t), { options: o, selected: s } = r.open, l = e.state.facet(qt);
25048
25048
  this.optionContent = zA(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Xa(o.length, s, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
25049
25049
  let { options: u } = e.state.field(t).open;
25050
25050
  for (let c = a.target, h; c && c != this.dom; c = c.parentNode)
@@ -25054,7 +25054,7 @@ class jA {
25054
25054
  }
25055
25055
  }), this.dom.addEventListener("focusout", (a) => {
25056
25056
  let u = e.state.field(this.stateField, !1);
25057
- u && u.tooltip && e.state.facet(Pt).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: No.of(null) });
25057
+ u && u.tooltip && e.state.facet(qt).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: No.of(null) });
25058
25058
  }), this.showOptions(o, r.id);
25059
25059
  }
25060
25060
  mount() {
@@ -25070,7 +25070,7 @@ class jA {
25070
25070
  let n = e.state.field(this.stateField), r = e.startState.field(this.stateField);
25071
25071
  if (this.updateTooltipClass(e.state), n != r) {
25072
25072
  let { options: o, selected: s, disabled: l } = n.open;
25073
- (!r.open || r.open.options != o) && (this.range = Xa(o.length, s, e.state.facet(Pt).maxRenderedOptions), this.showOptions(o, n.id)), this.updateSel(), l != ((t = r.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
25073
+ (!r.open || r.open.options != o) && (this.range = Xa(o.length, s, e.state.facet(qt).maxRenderedOptions), this.showOptions(o, n.id)), this.updateSel(), l != ((t = r.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
25074
25074
  }
25075
25075
  }
25076
25076
  updateTooltipClass(e) {
@@ -25088,7 +25088,7 @@ class jA {
25088
25088
  }
25089
25089
  updateSel() {
25090
25090
  let e = this.view.state.field(this.stateField), t = e.open;
25091
- (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Xa(t.options.length, t.selected, this.view.state.facet(Pt).maxRenderedOptions), this.showOptions(t.options, e.id));
25091
+ (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Xa(t.options.length, t.selected, this.view.state.facet(qt).maxRenderedOptions), this.showOptions(t.options, e.id));
25092
25092
  let n = this.updateSelectedOption(t.selected);
25093
25093
  if (n) {
25094
25094
  this.destroyInfo();
@@ -25100,7 +25100,7 @@ class jA {
25100
25100
  return;
25101
25101
  "then" in s ? s.then((l) => {
25102
25102
  l && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(l, r);
25103
- }).catch((l) => ni(this.view.state, l, "completion info")) : (this.addInfoPane(s, r), n.setAttribute("aria-describedby", this.info.id));
25103
+ }).catch((l) => ri(this.view.state, l, "completion info")) : (this.addInfoPane(s, r), n.setAttribute("aria-describedby", this.info.id));
25104
25104
  }
25105
25105
  }
25106
25106
  addInfoPane(e, t) {
@@ -25129,7 +25129,7 @@ class jA {
25129
25129
  let s = this.dom.ownerDocument.documentElement;
25130
25130
  o = { left: 0, top: 0, right: s.clientWidth, bottom: s.clientHeight };
25131
25131
  }
25132
- return r.top > Math.min(o.bottom, t.bottom) - 10 || r.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(Pt).positionInfo(this.view, t, r, n, o, this.dom);
25132
+ return r.top > Math.min(o.bottom, t.bottom) - 10 || r.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(qt).positionInfo(this.view, t, r, n, o, this.dom);
25133
25133
  }
25134
25134
  placeInfo(e) {
25135
25135
  this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
@@ -25189,7 +25189,7 @@ function UA(i, e) {
25189
25189
  let d = typeof h == "string" ? h : h.name;
25190
25190
  n.some((f) => f.name == d) || n.push(typeof h == "string" ? { name: d } : h);
25191
25191
  }
25192
- }, s = e.facet(Pt);
25192
+ }, s = e.facet(qt);
25193
25193
  for (let c of i)
25194
25194
  if (c.hasResult()) {
25195
25195
  let h = c.result.getMatch;
@@ -25237,7 +25237,7 @@ class Tr {
25237
25237
  let l = UA(e, t);
25238
25238
  if (!l.length)
25239
25239
  return r && e.some((u) => u.isPending) ? r.setDisabled() : null;
25240
- let a = t.facet(Pt).selectOnOpen ? 0 : -1;
25240
+ let a = t.facet(qt).selectOnOpen ? 0 : -1;
25241
25241
  if (r && r.selected != a && r.selected != -1) {
25242
25242
  let u = r.options[r.selected].completion;
25243
25243
  for (let c = 0; c < l.length; c++)
@@ -25267,7 +25267,7 @@ class Pl {
25267
25267
  return new Pl(JA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
25268
25268
  }
25269
25269
  update(e) {
25270
- let { state: t } = e, n = t.facet(Pt), o = (n.override || t.languageDataAt("autocomplete", sr(t)).map(VA)).map((a) => (this.active.find((c) => c.source == a) || new Ci(
25270
+ let { state: t } = e, n = t.facet(qt), o = (n.override || t.languageDataAt("autocomplete", sr(t)).map(VA)).map((a) => (this.active.find((c) => c.source == a) || new Ci(
25271
25271
  a,
25272
25272
  this.active.some(
25273
25273
  (c) => c.state != 0
@@ -25418,7 +25418,7 @@ const ih = /* @__PURE__ */ Te.define({
25418
25418
  map(i, e) {
25419
25419
  return i.map((t) => t.map(e));
25420
25420
  }
25421
- }), h0 = /* @__PURE__ */ Te.define(), ai = /* @__PURE__ */ Tt.define({
25421
+ }), h0 = /* @__PURE__ */ Te.define(), ui = /* @__PURE__ */ Tt.define({
25422
25422
  create() {
25423
25423
  return Pl.start();
25424
25424
  },
@@ -25432,17 +25432,17 @@ const ih = /* @__PURE__ */ Te.define({
25432
25432
  });
25433
25433
  function nh(i, e) {
25434
25434
  const t = e.completion.apply || e.completion.label;
25435
- let n = i.state.field(ai).active.find((r) => r.source == e.source);
25435
+ let n = i.state.field(ui).active.find((r) => r.source == e.source);
25436
25436
  return n instanceof Rr ? (typeof t == "string" ? i.dispatch({
25437
25437
  ...IA(i.state, t, n.from, n.to),
25438
25438
  annotations: u0.of(e.completion)
25439
25439
  }) : t(i, e.completion, n.from, n.to), !0) : !1;
25440
25440
  }
25441
- const ZA = /* @__PURE__ */ QA(ai, nh);
25441
+ const ZA = /* @__PURE__ */ QA(ui, nh);
25442
25442
  function Rs(i, e = "option") {
25443
25443
  return (t) => {
25444
- let n = t.state.field(ai, !1);
25445
- if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(Pt).interactionDelay)
25444
+ let n = t.state.field(ui, !1);
25445
+ if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(qt).interactionDelay)
25446
25446
  return !1;
25447
25447
  let r = 1, o;
25448
25448
  e == "page" && (o = jp(t, n.open.tooltip)) && (r = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
@@ -25451,10 +25451,10 @@ function Rs(i, e = "option") {
25451
25451
  };
25452
25452
  }
25453
25453
  const $A = (i) => {
25454
- let e = i.state.field(ai, !1);
25455
- return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(Pt).interactionDelay ? !1 : nh(i, e.open.options[e.open.selected]);
25456
- }, Za = (i) => i.state.field(ai, !1) ? (i.dispatch({ effects: _l.of(!0) }), !0) : !1, eT = (i) => {
25457
- let e = i.state.field(ai, !1);
25454
+ let e = i.state.field(ui, !1);
25455
+ return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(qt).interactionDelay ? !1 : nh(i, e.open.options[e.open.selected]);
25456
+ }, Za = (i) => i.state.field(ui, !1) ? (i.dispatch({ effects: _l.of(!0) }), !0) : !1, eT = (i) => {
25457
+ let e = i.state.field(ui, !1);
25458
25458
  return !e || !e.active.some(
25459
25459
  (t) => t.state != 0
25460
25460
  /* State.Inactive */
@@ -25468,12 +25468,12 @@ class tT {
25468
25468
  const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25469
25469
  constructor(i) {
25470
25470
  this.view = i, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
25471
- for (let e of i.state.field(ai).active)
25471
+ for (let e of i.state.field(ui).active)
25472
25472
  e.isPending && this.startQuery(e);
25473
25473
  }
25474
25474
  update(i) {
25475
- let e = i.state.field(ai), t = i.state.facet(Pt);
25476
- if (!i.selectionSet && !i.docChanged && i.startState.field(ai) == e)
25475
+ let e = i.state.field(ui), t = i.state.facet(qt);
25476
+ if (!i.selectionSet && !i.docChanged && i.startState.field(ui) == e)
25477
25477
  return;
25478
25478
  let n = i.transactions.some((o) => {
25479
25479
  let s = c0(o, t);
@@ -25486,7 +25486,7 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25486
25486
  try {
25487
25487
  l();
25488
25488
  } catch (a) {
25489
- ni(this.view.state, a);
25489
+ ri(this.view.state, a);
25490
25490
  }
25491
25491
  s.context.abortListeners = null, this.running.splice(o--, 1);
25492
25492
  } else
@@ -25500,28 +25500,28 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25500
25500
  }
25501
25501
  startUpdate() {
25502
25502
  this.debounceUpdate = -1, this.pendingStart = !1;
25503
- let { state: i } = this.view, e = i.field(ai);
25503
+ let { state: i } = this.view, e = i.field(ui);
25504
25504
  for (let t of e.active)
25505
25505
  t.isPending && !this.running.some((n) => n.active.source == t.source) && this.startQuery(t);
25506
- this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Pt).updateSyncTime));
25506
+ this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(qt).updateSyncTime));
25507
25507
  }
25508
25508
  startQuery(i) {
25509
25509
  let { state: e } = this.view, t = sr(e), n = new l0(e, t, i.explicit, this.view), r = new tT(i, n);
25510
25510
  this.running.push(r), Promise.resolve(i.source(n)).then((o) => {
25511
25511
  r.context.aborted || (r.done = o || null, this.scheduleAccept());
25512
25512
  }, (o) => {
25513
- this.view.dispatch({ effects: No.of(null) }), ni(this.view.state, o);
25513
+ this.view.dispatch({ effects: No.of(null) }), ri(this.view.state, o);
25514
25514
  });
25515
25515
  }
25516
25516
  scheduleAccept() {
25517
- this.running.every((i) => i.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Pt).updateSyncTime));
25517
+ this.running.every((i) => i.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(qt).updateSyncTime));
25518
25518
  }
25519
25519
  // For each finished query in this.running, try to create a result
25520
25520
  // or, if appropriate, restart the query.
25521
25521
  accept() {
25522
25522
  var i;
25523
25523
  this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
25524
- let e = [], t = this.view.state.facet(Pt), n = this.view.state.field(ai);
25524
+ let e = [], t = this.view.state.facet(qt), n = this.view.state.field(ui);
25525
25525
  for (let r = 0; r < this.running.length; r++) {
25526
25526
  let o = this.running[r];
25527
25527
  if (o.done === void 0)
@@ -25554,8 +25554,8 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25554
25554
  }, {
25555
25555
  eventHandlers: {
25556
25556
  blur(i) {
25557
- let e = this.view.state.field(ai, !1);
25558
- if (e && e.tooltip && this.view.state.facet(Pt).closeOnBlur) {
25557
+ let e = this.view.state.field(ui, !1);
25558
+ if (e && e.tooltip && this.view.state.facet(qt).closeOnBlur) {
25559
25559
  let t = e.open && jp(this.view, e.open.tooltip);
25560
25560
  (!t || !t.dom.contains(i.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: No.of(null) }), 10);
25561
25561
  }
@@ -25569,7 +25569,7 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25569
25569
  }
25570
25570
  }), oT = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), sT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ he.domEventHandlers({
25571
25571
  keydown(i, e) {
25572
- let t = e.state.field(ai, !1);
25572
+ let t = e.state.field(ui, !1);
25573
25573
  if (!t || !t.open || t.open.disabled || t.open.selected < 0 || i.key.length > 1 || i.ctrlKey && !(oT && i.altKey) || i.metaKey)
25574
25574
  return !1;
25575
25575
  let n = t.open.options[t.open.selected], r = t.active.find((s) => s.source == n.source), o = n.completion.commitCharacters || r.result.commitCharacters;
@@ -25704,7 +25704,7 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25704
25704
  stringPrefixes: []
25705
25705
  }, $n = /* @__PURE__ */ Te.define({
25706
25706
  map(i, e) {
25707
- let t = e.mapPos(i, -1, ii.TrackAfter);
25707
+ let t = e.mapPos(i, -1, ni.TrackAfter);
25708
25708
  return t ?? void 0;
25709
25709
  }
25710
25710
  }), rh = /* @__PURE__ */ new class extends lr {
@@ -25742,7 +25742,7 @@ const uT = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25742
25742
  if ((uT ? i.composing : i.compositionStarted) || i.state.readOnly)
25743
25743
  return !1;
25744
25744
  let r = i.state.selection.main;
25745
- if (n.length > 2 || n.length == 2 && Qi(li(n, 0)) == 1 || e != r.from || t != r.to)
25745
+ if (n.length > 2 || n.length == 2 && Qi(ai(n, 0)) == 1 || e != r.from || t != r.to)
25746
25746
  return !1;
25747
25747
  let o = fT(i.state, n);
25748
25748
  return o ? (i.dispatch(o), !0) : !1;
@@ -25753,7 +25753,7 @@ const uT = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25753
25753
  if (s.empty) {
25754
25754
  let l = mT(i.doc, s.head);
25755
25755
  for (let a of n)
25756
- if (a == l && ia(i.doc, s.head) == f0(li(a, 0)))
25756
+ if (a == l && ia(i.doc, s.head) == f0(ai(a, 0)))
25757
25757
  return {
25758
25758
  changes: { from: s.head - a.length, to: s.head + a.length },
25759
25759
  range: X.cursor(s.head - a.length)
@@ -25768,7 +25768,7 @@ const uT = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25768
25768
  function fT(i, e) {
25769
25769
  let t = m0(i, i.selection.main.head), n = t.brackets || Ho.brackets;
25770
25770
  for (let r of n) {
25771
- let o = f0(li(r, 0));
25771
+ let o = f0(ai(r, 0));
25772
25772
  if (e == r)
25773
25773
  return o == r ? vT(i, r, n.indexOf(r + r + r) > -1, t) : gT(i, r, o, t.before || Ho.before);
25774
25774
  if (e == o && g0(i, i.selection.main.from))
@@ -25784,11 +25784,11 @@ function g0(i, e) {
25784
25784
  }
25785
25785
  function ia(i, e) {
25786
25786
  let t = i.sliceString(e, e + 2);
25787
- return t.slice(0, Qi(li(t, 0)));
25787
+ return t.slice(0, Qi(ai(t, 0)));
25788
25788
  }
25789
25789
  function mT(i, e) {
25790
25790
  let t = i.sliceString(e - 2, e);
25791
- return Qi(li(t, 0)) == t.length ? t : t.slice(1);
25791
+ return Qi(ai(t, 0)) == t.length ? t : t.slice(1);
25792
25792
  }
25793
25793
  function gT(i, e, t, n) {
25794
25794
  let r = null, o = i.changeByRange((s) => {
@@ -25902,8 +25902,8 @@ function Uf(i, e, t) {
25902
25902
  function bT(i = {}) {
25903
25903
  return [
25904
25904
  sT,
25905
- ai,
25906
- Pt.of(i),
25905
+ ui,
25906
+ qt.of(i),
25907
25907
  rT,
25908
25908
  xT,
25909
25909
  lT
@@ -25919,7 +25919,7 @@ const p0 = [
25919
25919
  { key: "PageDown", run: /* @__PURE__ */ Rs(!0, "page") },
25920
25920
  { key: "PageUp", run: /* @__PURE__ */ Rs(!1, "page") },
25921
25921
  { key: "Enter", run: $A }
25922
- ], xT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ $o.computeN([Pt], (i) => i.facet(Pt).defaultKeymap ? [p0] : []));
25922
+ ], xT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ $o.computeN([qt], (i) => i.facet(qt).defaultKeymap ? [p0] : []));
25923
25923
  class Kf {
25924
25924
  constructor(e, t, n) {
25925
25925
  this.from = e, this.to = t, this.diagnostic = n;
@@ -26098,7 +26098,7 @@ const CT = (i) => {
26098
26098
  t.length && OT(t.map((n) => Promise.resolve(n(this.view))), (n) => {
26099
26099
  this.view.state.doc == e.doc && this.view.dispatch(kT(this.view.state, n.reduce((r, o) => r.concat(o))));
26100
26100
  }, (n) => {
26101
- ni(this.view.state, n);
26101
+ ri(this.view.state, n);
26102
26102
  });
26103
26103
  }
26104
26104
  }
@@ -26590,7 +26590,7 @@ const FT = [
26590
26590
  * Released under the MIT License.
26591
26591
  * Surmon
26592
26592
  */
26593
- var NT = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [FT] }), HT = Symbol("vue-codemirror-global-config"), ei, zT = function(i) {
26593
+ var NT = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [FT] }), HT = Symbol("vue-codemirror-global-config"), ti, zT = function(i) {
26594
26594
  var e = i.onUpdate, t = i.onChange, n = i.onFocus, r = i.onBlur, o = function(s, l) {
26595
26595
  var a = {};
26596
26596
  for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && l.indexOf(u) < 0 && (a[u] = s[u]);
@@ -26617,22 +26617,22 @@ var NT = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
26617
26617
  }, Is = { type: Boolean, default: void 0 }, jT = { autofocus: Is, disabled: Is, indentWithTab: Is, tabSize: Number, placeholder: String, style: Object, autoDestroy: Is, phrases: Object, root: Object, extensions: Array, selection: Object }, QT = { modelValue: { type: String, default: "" } }, WT = Object.assign(Object.assign({}, jT), QT);
26618
26618
  (function(i) {
26619
26619
  i.Change = "change", i.Update = "update", i.Focus = "focus", i.Blur = "blur", i.Ready = "ready", i.ModelUpdate = "update:modelValue";
26620
- })(ei || (ei = {}));
26620
+ })(ti || (ti = {}));
26621
26621
  var Jn = {};
26622
- Jn[ei.Change] = function(i, e) {
26622
+ Jn[ti.Change] = function(i, e) {
26623
26623
  return !0;
26624
- }, Jn[ei.Update] = function(i) {
26624
+ }, Jn[ti.Update] = function(i) {
26625
26625
  return !0;
26626
- }, Jn[ei.Focus] = function(i) {
26626
+ }, Jn[ti.Focus] = function(i) {
26627
26627
  return !0;
26628
- }, Jn[ei.Blur] = function(i) {
26628
+ }, Jn[ti.Blur] = function(i) {
26629
26629
  return !0;
26630
- }, Jn[ei.Ready] = function(i) {
26630
+ }, Jn[ti.Ready] = function(i) {
26631
26631
  return !0;
26632
26632
  };
26633
26633
  var T0 = {};
26634
- T0[ei.ModelUpdate] = Jn[ei.Change];
26635
- var UT = Object.assign(Object.assign({}, Jn), T0), KT = Bt({ name: "VueCodemirror", props: Object.assign({}, WT), emits: Object.assign({}, UT), setup: function(i, e) {
26634
+ T0[ti.ModelUpdate] = Jn[ti.Change];
26635
+ var UT = Object.assign(Object.assign({}, Jn), T0), KT = Lt({ name: "VueCodemirror", props: Object.assign({}, WT), emits: Object.assign({}, UT), setup: function(i, e) {
26636
26636
  var t = ua(), n = ua(), r = ua(), o = Object.assign(Object.assign({}, NT), jo(HT, {})), s = x(function() {
26637
26637
  var l = {};
26638
26638
  return Object.keys(Un(i)).forEach(function(a) {
@@ -26643,13 +26643,13 @@ var UT = Object.assign(Object.assign({}, Jn), T0), KT = Bt({ name: "VueCodemirro
26643
26643
  return Ti(function() {
26644
26644
  var l;
26645
26645
  n.value = zT({ doc: i.modelValue, selection: s.value.selection, extensions: (l = o.extensions) !== null && l !== void 0 ? l : [], onFocus: function(u) {
26646
- return e.emit(ei.Focus, u);
26646
+ return e.emit(ti.Focus, u);
26647
26647
  }, onBlur: function(u) {
26648
- return e.emit(ei.Blur, u);
26648
+ return e.emit(ti.Blur, u);
26649
26649
  }, onUpdate: function(u) {
26650
- return e.emit(ei.Update, u);
26650
+ return e.emit(ti.Update, u);
26651
26651
  }, onChange: function(u, c) {
26652
- u !== i.modelValue && (e.emit(ei.Change, u, c), e.emit(ei.ModelUpdate, u, c));
26652
+ u !== i.modelValue && (e.emit(ti.Change, u, c), e.emit(ti.ModelUpdate, u, c));
26653
26653
  } }), r.value = function(u) {
26654
26654
  return new he(Object.assign({}, u));
26655
26655
  }({ state: n.value, parent: t.value, root: s.value.root });
@@ -26703,7 +26703,7 @@ var UT = Object.assign(Object.assign({}, Jn), T0), KT = Bt({ name: "VueCodemirro
26703
26703
  return s.value.style;
26704
26704
  }, function(u) {
26705
26705
  return a.setStyle(u);
26706
- }, { immediate: !0 }), s.value.autofocus && a.focus(), e.emit(ei.Ready, { state: n.value, view: r.value, container: t.value });
26706
+ }, { immediate: !0 }), s.value.autofocus && a.focus(), e.emit(ti.Ready, { state: n.value, view: r.value, container: t.value });
26707
26707
  }), ft(function() {
26708
26708
  s.value.autoDestroy && r.value && function(l) {
26709
26709
  l.destroy();
@@ -27359,10 +27359,10 @@ function ZT(i, e, t, n) {
27359
27359
  let r = em(t, n, e);
27360
27360
  return r < 0 || em(t, n, i) < r;
27361
27361
  }
27362
- const di = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
27362
+ const fi = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
27363
27363
  let eu = null;
27364
27364
  function tm(i, e, t) {
27365
- let n = i.cursor(Dt.IncludeAnonymous);
27365
+ let n = i.cursor(_t.IncludeAnonymous);
27366
27366
  for (n.moveTo(e); ; )
27367
27367
  if (!(t < 0 ? n.childBefore(e) : n.childAfter(e)))
27368
27368
  for (; ; ) {
@@ -27546,15 +27546,15 @@ class tO {
27546
27546
  if (!n.length) {
27547
27547
  let s = r && nO(r);
27548
27548
  if (s)
27549
- return di && console.log("Finish with " + this.stackID(s)), this.stackToTree(s);
27549
+ return fi && console.log("Finish with " + this.stackID(s)), this.stackToTree(s);
27550
27550
  if (this.parser.strict)
27551
- throw di && r && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
27551
+ throw fi && r && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
27552
27552
  this.recovering || (this.recovering = 5);
27553
27553
  }
27554
27554
  if (this.recovering && r) {
27555
27555
  let s = this.stoppedAt != null && r[0].pos > this.stoppedAt ? r[0] : this.runRecovery(r, o, n);
27556
27556
  if (s)
27557
- return di && console.log("Force-finish " + this.stackID(s)), this.stackToTree(s.forceAll());
27557
+ return fi && console.log("Force-finish " + this.stackID(s)), this.stackToTree(s.forceAll());
27558
27558
  }
27559
27559
  if (this.recovering) {
27560
27560
  let s = this.recovering == 1 ? 1 : this.recovering * 3;
@@ -27597,7 +27597,7 @@ class tO {
27597
27597
  // given, stacks split off by ambiguous operations will be pushed to
27598
27598
  // `split`, or added to `stacks` if they move `pos` forward.
27599
27599
  advanceStack(e, t, n) {
27600
- let r = e.pos, { parser: o } = this, s = di ? this.stackID(e) + " -> " : "";
27600
+ let r = e.pos, { parser: o } = this, s = fi ? this.stackID(e) + " -> " : "";
27601
27601
  if (this.stoppedAt != null && r > this.stoppedAt)
27602
27602
  return e.forceReduce() ? e : null;
27603
27603
  if (this.fragments) {
@@ -27605,7 +27605,7 @@ class tO {
27605
27605
  for (let h = this.fragments.nodeAt(r); h; ) {
27606
27606
  let d = this.parser.nodeSet.types[h.type.id] == h.type ? o.getGoto(e.state, h.type.id) : -1;
27607
27607
  if (d > -1 && h.length && (!u || (h.prop(Be.contextHash) || 0) == c))
27608
- return e.useNode(h, d), di && console.log(s + this.stackID(e) + ` (via reuse of ${o.getName(h.type.id)})`), !0;
27608
+ return e.useNode(h, d), fi && console.log(s + this.stackID(e) + ` (via reuse of ${o.getName(h.type.id)})`), !0;
27609
27609
  if (!(h instanceof wt) || h.children.length == 0 || h.positions[0] > 0)
27610
27610
  break;
27611
27611
  let f = h.children[0];
@@ -27621,7 +27621,7 @@ class tO {
27621
27621
  /* ParseState.DefaultReduce */
27622
27622
  );
27623
27623
  if (l > 0)
27624
- return e.reduce(l), di && console.log(s + this.stackID(e) + ` (via always-reduce ${o.getName(
27624
+ return e.reduce(l), fi && console.log(s + this.stackID(e) + ` (via always-reduce ${o.getName(
27625
27625
  l & 65535
27626
27626
  /* Action.ValueMask */
27627
27627
  )})`), !0;
@@ -27631,7 +27631,7 @@ class tO {
27631
27631
  let a = this.tokens.getActions(e);
27632
27632
  for (let u = 0; u < a.length; ) {
27633
27633
  let c = a[u++], h = a[u++], d = a[u++], f = u == a.length || !n, m = f ? e : e.split(), g = this.tokens.mainToken;
27634
- if (m.apply(c, h, g ? g.start : m.pos, d), di && console.log(s + this.stackID(m) + ` (via ${c & 65536 ? `reduce of ${o.getName(
27634
+ if (m.apply(c, h, g ? g.start : m.pos, d), fi && console.log(s + this.stackID(m) + ` (via ${c & 65536 ? `reduce of ${o.getName(
27635
27635
  c & 65535
27636
27636
  /* Action.ValueMask */
27637
27637
  )}` : "shift"} for ${o.getName(h)} @ ${r}${m == e ? "" : ", split"})`), f)
@@ -27655,15 +27655,15 @@ class tO {
27655
27655
  runRecovery(e, t, n) {
27656
27656
  let r = null, o = !1;
27657
27657
  for (let s = 0; s < e.length; s++) {
27658
- let l = e[s], a = t[s << 1], u = t[(s << 1) + 1], c = di ? this.stackID(l) + " -> " : "";
27659
- if (l.deadEnd && (o || (o = !0, l.restart(), di && console.log(c + this.stackID(l) + " (restarted)"), this.advanceFully(l, n))))
27658
+ let l = e[s], a = t[s << 1], u = t[(s << 1) + 1], c = fi ? this.stackID(l) + " -> " : "";
27659
+ if (l.deadEnd && (o || (o = !0, l.restart(), fi && console.log(c + this.stackID(l) + " (restarted)"), this.advanceFully(l, n))))
27660
27660
  continue;
27661
27661
  let h = l.split(), d = c;
27662
- for (let f = 0; f < 10 && h.forceReduce() && (di && console.log(d + this.stackID(h) + " (via force-reduce)"), !this.advanceFully(h, n)); f++)
27663
- di && (d = this.stackID(h) + " -> ");
27662
+ for (let f = 0; f < 10 && h.forceReduce() && (fi && console.log(d + this.stackID(h) + " (via force-reduce)"), !this.advanceFully(h, n)); f++)
27663
+ fi && (d = this.stackID(h) + " -> ");
27664
27664
  for (let f of l.recoverByInsert(a))
27665
- di && console.log(c + this.stackID(f) + " (via recover-insert)"), this.advanceFully(f, n);
27666
- this.stream.end > l.pos ? (u == l.pos && (u++, a = 0), l.recoverByDelete(a, u), di && console.log(c + this.stackID(l) + ` (via recover-delete ${this.parser.getName(a)})`), im(l, n)) : (!r || r.score < l.score) && (r = l);
27665
+ fi && console.log(c + this.stackID(f) + " (via recover-insert)"), this.advanceFully(f, n);
27666
+ this.stream.end > l.pos ? (u == l.pos && (u++, a = 0), l.recoverByDelete(a, u), fi && console.log(c + this.stackID(l) + ` (via recover-delete ${this.parser.getName(a)})`), im(l, n)) : (!r || r.score < l.score) && (r = l);
27667
27667
  }
27668
27668
  return r;
27669
27669
  }
@@ -27736,7 +27736,7 @@ class Ll extends $p {
27736
27736
  }
27737
27737
  }
27738
27738
  }
27739
- this.nodeSet = new jc(t.map((l, a) => ci.define({
27739
+ this.nodeSet = new jc(t.map((l, a) => hi.define({
27740
27740
  name: a >= this.minRepeatTerm ? void 0 : l,
27741
27741
  id: a,
27742
27742
  props: r[a],
@@ -28165,7 +28165,7 @@ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb
28165
28165
  tag: Q.invalid,
28166
28166
  color: dO
28167
28167
  }
28168
- ]), xO = [yO, /* @__PURE__ */ gv(bO)], kO = /* @__PURE__ */ Bt({
28168
+ ]), xO = [yO, /* @__PURE__ */ gv(bO)], kO = /* @__PURE__ */ Lt({
28169
28169
  __name: "QuasarJsonField",
28170
28170
  props: {
28171
28171
  schema: { type: Object, required: !0 },
@@ -28351,7 +28351,7 @@ function _O(i, e, t, n, r, o) {
28351
28351
  class: "cursor-help q-ml-xs"
28352
28352
  }, {
28353
28353
  default: W(() => [
28354
- Y(si, null, {
28354
+ Y(li, null, {
28355
28355
  default: W(() => [
28356
28356
  le("span", { innerHTML: n.tooltip }, null, 8, MO)
28357
28357
  ]),
@@ -28422,7 +28422,7 @@ function _O(i, e, t, n, r, o) {
28422
28422
  /* STYLE */
28423
28423
  );
28424
28424
  }
28425
- const um = /* @__PURE__ */ Yt(kO, [["render", _O], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonField.vue"]]), PO = /* @__PURE__ */ Bt({
28425
+ const um = /* @__PURE__ */ Yt(kO, [["render", _O], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonField.vue"]]), PO = /* @__PURE__ */ Lt({
28426
28426
  __name: "QuasarMultiEnumField",
28427
28427
  props: {
28428
28428
  schema: { type: Object, required: !0 },
@@ -28507,7 +28507,7 @@ const um = /* @__PURE__ */ Yt(kO, [["render", _O], ["__file", "/Users/zachsherbo
28507
28507
  }, get QIcon() {
28508
28508
  return Qe;
28509
28509
  }, get QTooltip() {
28510
- return si;
28510
+ return li;
28511
28511
  } };
28512
28512
  return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
28513
28513
  }
@@ -28659,9 +28659,9 @@ const O0 = typeof ResizeObserver < "u", cm = O0 === !0 ? {} : {
28659
28659
  }), dc;
28660
28660
  } else {
28661
28661
  let a = function() {
28662
- t !== null && (clearTimeout(t), t = null), h !== void 0 && (h.removeEventListener !== void 0 && h.removeEventListener("resize", o, Ot.passive), h = void 0);
28662
+ t !== null && (clearTimeout(t), t = null), h !== void 0 && (h.removeEventListener !== void 0 && h.removeEventListener("resize", o, Dt.passive), h = void 0);
28663
28663
  }, u = function() {
28664
- a(), n != null && n.contentDocument && (h = n.contentDocument.defaultView, h.addEventListener("resize", o, Ot.passive), s());
28664
+ a(), n != null && n.contentDocument && (h = n.contentDocument.defaultView, h.addEventListener("resize", o, Dt.passive), s());
28665
28665
  };
28666
28666
  const { isHydrated: c } = EO();
28667
28667
  let h;
@@ -28905,36 +28905,36 @@ const FO = ["left", "center", "right", "justify"], NO = $e({
28905
28905
  k.value = !1;
28906
28906
  }, 30);
28907
28907
  }
28908
- function Lt() {
28908
+ function Rt() {
28909
28909
  bi.avoidRouteWatcher === !1 ? c(De) : h();
28910
28910
  }
28911
28911
  function Jt() {
28912
28912
  if (L === void 0) {
28913
- const re = ge(() => n.$route.fullPath, Lt);
28913
+ const re = ge(() => n.$route.fullPath, Rt);
28914
28914
  L = () => {
28915
28915
  re(), L = void 0;
28916
28916
  };
28917
28917
  }
28918
28918
  }
28919
- function Rt(re) {
28919
+ function Et(re) {
28920
28920
  v.push(re), y.value++, N(), re.routeData === void 0 || n.$route === void 0 ? c(() => {
28921
28921
  if (g.value === !0) {
28922
28922
  const ye = m.value, we = ye != null && ye !== "" ? v.find((Ge) => Ge.name.value === ye) : null;
28923
28923
  we && E(we.rootRef.value);
28924
28924
  }
28925
- }) : (Jt(), re.routeData.hasRouterLink.value === !0 && Lt());
28925
+ }) : (Jt(), re.routeData.hasRouterLink.value === !0 && Rt());
28926
28926
  }
28927
28927
  function pt(re) {
28928
- v.splice(v.indexOf(re), 1), y.value--, N(), L !== void 0 && re.routeData !== void 0 && (v.every((ye) => ye.routeData === void 0) === !0 && L(), Lt());
28928
+ v.splice(v.indexOf(re), 1), y.value--, N(), L !== void 0 && re.routeData !== void 0 && (v.every((ye) => ye.routeData === void 0) === !0 && L(), Rt());
28929
28929
  }
28930
28930
  const bi = {
28931
28931
  currentModel: m,
28932
28932
  tabProps: G,
28933
28933
  hasFocus: k,
28934
28934
  hasActiveTab: V,
28935
- registerTab: Rt,
28935
+ registerTab: Et,
28936
28936
  unregisterTab: pt,
28937
- verifyRouteModel: Lt,
28937
+ verifyRouteModel: Rt,
28938
28938
  updateModel: H,
28939
28939
  onKbdNavigate: ie,
28940
28940
  avoidRouteWatcher: !1
@@ -28948,7 +28948,7 @@ const FO = ["left", "center", "right", "justify"], NO = $e({
28948
28948
  return ft(Ii), Qo(() => {
28949
28949
  Xt = L !== void 0, Ii();
28950
28950
  }), cc(() => {
28951
- Xt === !0 && (Jt(), ct = !0, Lt()), N();
28951
+ Xt === !0 && (Jt(), ct = !0, Rt()), N();
28952
28952
  }), () => _("div", {
28953
28953
  ref: d,
28954
28954
  class: P.value,
@@ -28961,7 +28961,7 @@ const FO = ["left", "center", "right", "justify"], NO = $e({
28961
28961
  ref: f,
28962
28962
  class: I.value,
28963
28963
  onScroll: b
28964
- }, qt(e.default)),
28964
+ }, Bt(e.default)),
28965
28965
  _(Qe, {
28966
28966
  class: "q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon" + (p.value === !0 ? "" : " q-tabs__arrow--faded"),
28967
28967
  name: i.leftIcon || r.iconSet.tabs[i.vertical === !0 ? "up" : "left"],
@@ -29092,7 +29092,7 @@ const WO = $e({
29092
29092
  const { renderTab: n } = QO(i, e, t);
29093
29093
  return () => n("div");
29094
29094
  }
29095
- }), UO = /* @__PURE__ */ Bt({
29095
+ }), UO = /* @__PURE__ */ Lt({
29096
29096
  __name: "QuasarOneOfField",
29097
29097
  props: {
29098
29098
  schema: { type: Object, required: !0 },
@@ -29309,7 +29309,7 @@ const WO = $e({
29309
29309
  }, get QIcon() {
29310
29310
  return Qe;
29311
29311
  }, get QTooltip() {
29312
- return si;
29312
+ return li;
29313
29313
  }, get FieldRenderer() {
29314
29314
  return El;
29315
29315
  } };
@@ -29622,7 +29622,7 @@ function r2(i, e, t, n, r, o) {
29622
29622
  /* STYLE */
29623
29623
  );
29624
29624
  }
29625
- const hm = /* @__PURE__ */ Yt(UO, [["render", r2], ["__scopeId", "data-v-157e455c"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarOneOfField.vue"]]), o2 = /* @__PURE__ */ Bt({
29625
+ const hm = /* @__PURE__ */ Yt(UO, [["render", r2], ["__scopeId", "data-v-157e455c"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarOneOfField.vue"]]), o2 = /* @__PURE__ */ Lt({
29626
29626
  __name: "QuasarAllOfField",
29627
29627
  props: {
29628
29628
  schema: { type: Object, required: !0 },
@@ -29691,7 +29691,7 @@ function a2(i) {
29691
29691
  return D0.find((e) => e.value === i);
29692
29692
  }
29693
29693
  let u2 = 0;
29694
- function mi() {
29694
+ function $t() {
29695
29695
  return `cond-${++u2}-${Date.now()}`;
29696
29696
  }
29697
29697
  function dm(i, e = {}) {
@@ -29809,12 +29809,12 @@ function wo(i, e) {
29809
29809
  return er();
29810
29810
  const t = lh(i, e);
29811
29811
  return t || ("and" in i && Array.isArray(i.and) ? {
29812
- id: mi(),
29812
+ id: $t(),
29813
29813
  type: "group",
29814
29814
  logic: "and",
29815
29815
  conditions: i.and.map((n) => wo(n, e))
29816
29816
  } : "or" in i && Array.isArray(i.or) ? {
29817
- id: mi(),
29817
+ id: $t(),
29818
29818
  type: "group",
29819
29819
  logic: "or",
29820
29820
  conditions: i.or.map((n) => wo(n, e))
@@ -29829,9 +29829,9 @@ function lh(i, e) {
29829
29829
  const r = t["!="], o = n["!="];
29830
29830
  if (Array.isArray(r) && r[1] === "" && Array.isArray(o) && o[1] === null)
29831
29831
  return {
29832
- id: mi(),
29832
+ id: $t(),
29833
29833
  type: "condition",
29834
- left: jt(r[0], e.useTemplateSyntax),
29834
+ left: Ot(r[0], e.useTemplateSyntax),
29835
29835
  operator: "isNotEmpty",
29836
29836
  right: ""
29837
29837
  };
@@ -29843,9 +29843,9 @@ function lh(i, e) {
29843
29843
  const r = t["=="], o = n["=="];
29844
29844
  if (Array.isArray(r) && r[1] === "" && Array.isArray(o) && o[1] === null)
29845
29845
  return {
29846
- id: mi(),
29846
+ id: $t(),
29847
29847
  type: "condition",
29848
- left: jt(r[0], e.useTemplateSyntax),
29848
+ left: Ot(r[0], e.useTemplateSyntax),
29849
29849
  operator: "isEmpty",
29850
29850
  right: ""
29851
29851
  };
@@ -29863,54 +29863,76 @@ function d2(i, e) {
29863
29863
  if (n.length === 0)
29864
29864
  return er();
29865
29865
  const r = n[0], o = i[r];
29866
- if (r === "!" && typeof o == "object" && o !== null && "in" in o) {
29867
- const a = o.in;
29868
- if (Array.isArray(a) && a.length >= 2) {
29869
- const u = jt(a[0], e.useTemplateSyntax), c = jt(a[1], e.useTemplateSyntax);
29866
+ if (r === "!") {
29867
+ if (typeof o == "object" && o !== null && "in" in o) {
29868
+ const u = o.in;
29869
+ if (Array.isArray(u) && u.length >= 2) {
29870
+ const c = Ot(u[0], e.useTemplateSyntax), h = Ot(u[1], e.useTemplateSyntax);
29871
+ return {
29872
+ id: $t(),
29873
+ type: "condition",
29874
+ left: c,
29875
+ operator: "!in",
29876
+ right: h
29877
+ };
29878
+ }
29879
+ }
29880
+ const a = Array.isArray(o) ? o[0] : o;
29881
+ if (a !== void 0)
29870
29882
  return {
29871
- id: mi(),
29883
+ id: $t(),
29872
29884
  type: "condition",
29873
- left: u,
29874
- operator: "!in",
29875
- right: c
29885
+ left: Ot(a, e.useTemplateSyntax),
29886
+ operator: "isEmpty",
29887
+ right: ""
29888
+ };
29889
+ }
29890
+ if (r === "!!") {
29891
+ const a = Array.isArray(o) ? o[0] : o;
29892
+ if (a !== void 0)
29893
+ return {
29894
+ id: $t(),
29895
+ type: "condition",
29896
+ left: Ot(a, e.useTemplateSyntax),
29897
+ operator: "isNotEmpty",
29898
+ right: ""
29876
29899
  };
29877
- }
29878
29900
  }
29879
29901
  if (!Array.isArray(o))
29880
29902
  return er();
29881
29903
  if (r === "in" && o.length >= 2) {
29882
29904
  const a = o[0], u = o[1], c = Array.isArray(u), h = typeof u == "object" && u !== null && "var" in u, d = typeof a == "object" && a !== null && "var" in a;
29883
29905
  return c ? {
29884
- id: mi(),
29906
+ id: $t(),
29885
29907
  type: "condition",
29886
- left: jt(a, e.useTemplateSyntax),
29908
+ left: Ot(a, e.useTemplateSyntax),
29887
29909
  operator: "in",
29888
- right: jt(u, e.useTemplateSyntax)
29910
+ right: Ot(u, e.useTemplateSyntax)
29889
29911
  } : h && !d ? {
29890
- id: mi(),
29912
+ id: $t(),
29891
29913
  type: "condition",
29892
29914
  // For "contains", left is the string (second in JSONLogic), right is the substring (first in JSONLogic)
29893
- left: jt(u, e.useTemplateSyntax),
29915
+ left: Ot(u, e.useTemplateSyntax),
29894
29916
  operator: "contains",
29895
- right: jt(a, e.useTemplateSyntax)
29917
+ right: Ot(a, e.useTemplateSyntax)
29896
29918
  } : h && d ? {
29897
- id: mi(),
29919
+ id: $t(),
29898
29920
  type: "condition",
29899
- left: jt(u, e.useTemplateSyntax),
29921
+ left: Ot(u, e.useTemplateSyntax),
29900
29922
  operator: "contains",
29901
- right: jt(a, e.useTemplateSyntax)
29923
+ right: Ot(a, e.useTemplateSyntax)
29902
29924
  } : d && typeof u == "string" ? {
29903
- id: mi(),
29925
+ id: $t(),
29904
29926
  type: "condition",
29905
- left: jt(a, e.useTemplateSyntax),
29927
+ left: Ot(a, e.useTemplateSyntax),
29906
29928
  operator: "in",
29907
- right: jt(u, e.useTemplateSyntax)
29929
+ right: Ot(u, e.useTemplateSyntax)
29908
29930
  } : {
29909
- id: mi(),
29931
+ id: $t(),
29910
29932
  type: "condition",
29911
- left: jt(a, e.useTemplateSyntax),
29933
+ left: Ot(a, e.useTemplateSyntax),
29912
29934
  operator: "in",
29913
- right: jt(u, e.useTemplateSyntax)
29935
+ right: Ot(u, e.useTemplateSyntax)
29914
29936
  };
29915
29937
  }
29916
29938
  const l = {
@@ -29925,14 +29947,14 @@ function d2(i, e) {
29925
29947
  matches: "matches"
29926
29948
  }[r];
29927
29949
  return l ? {
29928
- id: mi(),
29950
+ id: $t(),
29929
29951
  type: "condition",
29930
- left: jt(o[0], e.useTemplateSyntax),
29952
+ left: Ot(o[0], e.useTemplateSyntax),
29931
29953
  operator: l,
29932
- right: jt(o[1], e.useTemplateSyntax)
29954
+ right: Ot(o[1], e.useTemplateSyntax)
29933
29955
  } : er();
29934
29956
  }
29935
- function jt(i, e = !1) {
29957
+ function Ot(i, e = !1) {
29936
29958
  if (i == null)
29937
29959
  return "";
29938
29960
  if (typeof i == "object" && i !== null && "var" in i) {
@@ -29951,7 +29973,7 @@ function jt(i, e = !1) {
29951
29973
  }
29952
29974
  function er() {
29953
29975
  return {
29954
- id: mi(),
29976
+ id: $t(),
29955
29977
  type: "condition",
29956
29978
  left: "",
29957
29979
  operator: "==",
@@ -29960,7 +29982,7 @@ function er() {
29960
29982
  }
29961
29983
  function f2(i = "and") {
29962
29984
  return {
29963
- id: mi(),
29985
+ id: $t(),
29964
29986
  type: "group",
29965
29987
  logic: i,
29966
29988
  conditions: [er()]
@@ -29972,7 +29994,7 @@ function gm() {
29972
29994
  conditions: []
29973
29995
  };
29974
29996
  }
29975
- const m2 = /* @__PURE__ */ Bt({
29997
+ const m2 = /* @__PURE__ */ Lt({
29976
29998
  __name: "QuasarJsonLogicBuilderField",
29977
29999
  props: {
29978
30000
  schema: { type: Object, required: !0 },
@@ -30141,7 +30163,7 @@ const m2 = /* @__PURE__ */ Bt({
30141
30163
  N.value.some((j) => j.value === A) && G(S, A);
30142
30164
  }
30143
30165
  const b = { props: t, value: n, setValue: r, label: o, hint: s, tooltip: l, errorMessage: a, required: u, fieldId: c, fieldGap: h, formContext: d, quickformsDefaults: f, useTemplateSyntax: m, conditionRoot: g, isAdvancedMode: p, jsonText: w, jsonParseError: C, isInternalUpdate: v, syncToValue: y, addCondition: k, addGroup: T, removeCondition: B, updateConditionLeft: L, updateConditionOperator: G, updateConditionRight: V, updateGroupLogic: D, toggleAdvancedMode: P, handleJsonChange: I, operatorDisplayMode: O, leftPlaceholder: F, rightPlaceholder: U, allowedOperators: H, operatorOptions: N, filteredOperatorOptions: $, filterOperators: be, handleOperatorInput: E, get QBtn() {
30144
- return Ft;
30166
+ return Nt;
30145
30167
  }, get QSelect() {
30146
30168
  return Ko;
30147
30169
  }, get QInput() {
@@ -30149,7 +30171,7 @@ const m2 = /* @__PURE__ */ Bt({
30149
30171
  }, get QIcon() {
30150
30172
  return Qe;
30151
30173
  }, get QTooltip() {
30152
- return si;
30174
+ return li;
30153
30175
  }, get getOperatorInfo() {
30154
30176
  return a2;
30155
30177
  } };
@@ -30904,7 +30926,7 @@ function Q2(i, e, t, n, r, o) {
30904
30926
  /* STYLE */
30905
30927
  );
30906
30928
  }
30907
- const W2 = /* @__PURE__ */ Yt(m2, [["render", Q2], ["__scopeId", "data-v-722c2e28"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonLogicBuilderField.vue"]]), U2 = /* @__PURE__ */ Bt({
30929
+ const W2 = /* @__PURE__ */ Yt(m2, [["render", Q2], ["__scopeId", "data-v-722c2e28"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonLogicBuilderField.vue"]]), U2 = /* @__PURE__ */ Lt({
30908
30930
  __name: "QuasarTagsField",
30909
30931
  props: {
30910
30932
  schema: { type: Object, required: !0 },
@@ -31028,7 +31050,7 @@ const W2 = /* @__PURE__ */ Yt(m2, [["render", Q2], ["__scopeId", "data-v-722c2e2
31028
31050
  }, get QIcon() {
31029
31051
  return Qe;
31030
31052
  }, get QTooltip() {
31031
- return si;
31053
+ return li;
31032
31054
  } };
31033
31055
  return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
31034
31056
  }
@@ -31315,7 +31337,7 @@ export {
31315
31337
  gm as createEmptyRoot,
31316
31338
  rD as createQuasarRegistry,
31317
31339
  mm as fromJsonLogic,
31318
- mi as generateConditionId,
31340
+ $t as generateConditionId,
31319
31341
  ab as getFieldGapStyle,
31320
31342
  a2 as getOperatorInfo,
31321
31343
  cD as hasAllOf,