@quickflo/quickforms-quasar 1.14.1 → 1.14.2

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,17 +1,17 @@
1
1
  import { SchemaUtils as hm, ComponentRegistry as M0, rankWith as Ke, hasConst as A0, hasXRender as ni, isStringType as O0, isNumberType as T0, isBooleanType as D0, isEnumType as P0, isDateFormat as q0, isTimeFormat as B0, isDateTimeFormat as _0, isRecordType as R0, isJsonType as E0, isObjectType as L0, isArrayType as lh, hasOneOf as I0, hasAnyOf as V0, hasAllOf as F0 } from "@quickflo/quickforms";
2
2
  import { ComponentRegistry as g2, SchemaUtils as p2, and as v2, hasAllOf as b2, hasAnyOf as y2, hasConditional as x2, hasConst as k2, hasExtension as w2, hasFormat as S2, hasOneOf as C2, isArrayType as M2, isBooleanType as A2, isDateFormat as O2, isDateTimeFormat as T2, isDiscriminatedUnion as D2, isEmailFormat as P2, isEnumType as q2, isIntegerType as B2, isJsonType as _2, isNullType as R2, isNumberType as E2, isObjectType as L2, isRecordType as I2, isStringType as V2, isTimeFormat as F2, isUrlFormat as N2, not as H2, or as z2, rankWith as j2 } from "@quickflo/quickforms";
3
- import { computed as x, markRaw as fm, defineComponent as Ft, reactive as dm, h as A, withDirectives as Rn, getCurrentInstance as ze, ref as Y, onMounted as Si, watch as ve, onBeforeUpdate as mm, inject as Fo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as No, onActivated as oc, Transition as fi, provide as gm, createElementBlock as fe, openBlock as te, normalizeStyle as xt, createVNode as ee, mergeProps as ut, createSlots as ln, withCtx as be, createTextVNode as je, createElementVNode as we, toDisplayString as De, toRaw as zn, createCommentVNode as he, unref as N0, onUnmounted as H0, Teleport as z0, onBeforeMount as j0, onUpdated as W0, shallowReactive as Q0, vShow as K0, Fragment as Ht, renderList as On, createBlock as on, shallowRef as oa, normalizeClass as U0, renderSlot as es } from "vue";
4
- import { useFormContext as Y0, useFormField as G0, generateFieldId as $0, FieldRenderer as ql, HiddenField as J0 } from "@quickflo/quickforms-vue";
5
- const Xa = {
3
+ import { computed as x, markRaw as fm, defineComponent as Ft, reactive as dm, h as A, withDirectives as Rn, getCurrentInstance as ze, ref as Y, onMounted as Si, watch as ve, onBeforeUpdate as mm, inject as Fo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as No, onActivated as oc, Transition as fi, provide as gm, createElementBlock as fe, openBlock as te, normalizeStyle as xt, createVNode as ee, mergeProps as ut, createSlots as ln, withCtx as be, createTextVNode as je, createElementVNode as we, toDisplayString as De, toRaw as zn, createCommentVNode as he, unref as N0, onUnmounted as H0, Teleport as z0, onBeforeMount as j0, onUpdated as W0, shallowReactive as Q0, vShow as K0, Fragment as Ht, renderList as On, createBlock as on, shallowRef as sa, normalizeClass as U0, renderSlot as es } from "vue";
4
+ import { useFormContext as Y0, useFormField as G0, generateFieldId as $0, FieldRenderer as Bl, HiddenField as J0 } from "@quickflo/quickforms-vue";
5
+ const Za = {
6
6
  xs: 18,
7
7
  sm: 24,
8
8
  md: 32,
9
9
  lg: 38,
10
10
  xl: 46
11
- }, Bl = {
11
+ }, _l = {
12
12
  size: String
13
13
  };
14
- function _l(i, e = Xa) {
14
+ function Rl(i, e = Za) {
15
15
  return x(() => i.size !== void 0 ? { fontSize: i.size in e ? `${e[i.size]}px` : i.size } : null);
16
16
  }
17
17
  function Wr(i, e, t, n) {
@@ -62,19 +62,19 @@ function tb(i, e, t, n, r, o) {
62
62
  const s = A(i, e, t);
63
63
  return r === !0 ? Rn(s, o()) : s;
64
64
  }
65
- const ah = "0 0 24 24", sa = (i) => i, la = (i) => `ionicons ${i}`, pm = {
65
+ const ah = "0 0 24 24", la = (i) => i, aa = (i) => `ionicons ${i}`, pm = {
66
66
  "mdi-": (i) => `mdi ${i}`,
67
- "icon-": sa,
67
+ "icon-": la,
68
68
  // fontawesome equiv
69
69
  "bt-": (i) => `bt ${i}`,
70
70
  "eva-": (i) => `eva ${i}`,
71
- "ion-md": la,
72
- "ion-ios": la,
73
- "ion-logo": la,
74
- "iconfont ": sa,
71
+ "ion-md": aa,
72
+ "ion-ios": aa,
73
+ "ion-logo": aa,
74
+ "iconfont ": la,
75
75
  "ti-": (i) => `themify-icon ${i}`,
76
76
  "bi-": (i) => `bootstrap-icons ${i}`,
77
- "i-": sa
77
+ "i-": la
78
78
  // UnoCSS pure icons
79
79
  }, vm = {
80
80
  o_: "-outlined",
@@ -87,7 +87,7 @@ const ah = "0 0 24 24", sa = (i) => i, la = (i) => `ionicons ${i}`, pm = {
87
87
  }, ib = new RegExp("^(" + Object.keys(pm).join("|") + ")"), nb = new RegExp("^(" + Object.keys(vm).join("|") + ")"), uh = new RegExp("^(" + Object.keys(bm).join("|") + ")"), rb = /^[Mm]\s?[-+]?\.?\d/, ob = /^img:/, sb = /^svguse:/, lb = /^ion-/, ab = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, kt = $e({
88
88
  name: "QIcon",
89
89
  props: {
90
- ...Bl,
90
+ ..._l,
91
91
  tag: {
92
92
  type: String,
93
93
  default: "i"
@@ -98,7 +98,7 @@ const ah = "0 0 24 24", sa = (i) => i, la = (i) => `ionicons ${i}`, pm = {
98
98
  right: Boolean
99
99
  },
100
100
  setup(i, { slots: e }) {
101
- const { proxy: { $q: t } } = ze(), n = _l(i), r = x(
101
+ const { proxy: { $q: t } } = ze(), n = Rl(i), r = x(
102
102
  () => "q-icon" + (i.left === !0 ? " on-left" : "") + (i.right === !0 ? " on-right" : "") + (i.color !== void 0 ? ` text-${i.color}` : "")
103
103
  ), o = x(() => {
104
104
  let s, l = i.name;
@@ -194,7 +194,7 @@ const ah = "0 0 24 24", sa = (i) => i, la = (i) => `ionicons ${i}`, pm = {
194
194
  };
195
195
  function cb(i) {
196
196
  return {
197
- cSize: x(() => i.size in Xa ? `${Xa[i.size]}px` : i.size),
197
+ cSize: x(() => i.size in Za ? `${Za[i.size]}px` : i.size),
198
198
  classes: x(
199
199
  () => "q-spinner" + (i.color ? ` text-${i.color}` : "")
200
200
  )
@@ -230,7 +230,7 @@ const ym = $e({
230
230
  ]);
231
231
  }
232
232
  });
233
- let aa, ts = 0;
233
+ let ua, ts = 0;
234
234
  const Rt = new Array(256);
235
235
  for (let i = 0; i < 256; i++)
236
236
  Rt[i] = (i + 256).toString(16).substring(1);
@@ -252,15 +252,15 @@ const hb = (() => {
252
252
  return t;
253
253
  };
254
254
  })(), ch = 4096;
255
- function Ys() {
256
- (aa === void 0 || ts + 16 > ch) && (ts = 0, aa = hb(ch));
257
- const i = Array.prototype.slice.call(aa, ts, ts += 16);
255
+ function Gs() {
256
+ (ua === void 0 || ts + 16 > ch) && (ts = 0, ua = hb(ch));
257
+ const i = Array.prototype.slice.call(ua, ts, ts += 16);
258
258
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Rt[i[0]] + Rt[i[1]] + Rt[i[2]] + Rt[i[3]] + "-" + Rt[i[4]] + Rt[i[5]] + "-" + Rt[i[6]] + Rt[i[7]] + "-" + Rt[i[8]] + Rt[i[9]] + "-" + Rt[i[10]] + Rt[i[11]] + Rt[i[12]] + Rt[i[13]] + Rt[i[14]] + Rt[i[15]];
259
259
  }
260
260
  const _r = Y(
261
261
  !1
262
262
  );
263
- let Za;
263
+ let eu;
264
264
  function fb(i, e) {
265
265
  const t = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(i) || /(opr)[\/]([\w.]+)/.exec(i) || /(vivaldi)[\/]([\w.]+)/.exec(i) || /(chrome|crios)[\/]([\w.]+)/.exec(i) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i) || /(firefox|fxios)[\/]([\w.]+)/.exec(i) || /(webkit)[\/]([\w.]+)/.exec(i) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(i) || [];
266
266
  return {
@@ -315,7 +315,7 @@ function mb(i) {
315
315
  else if (document.location.href.indexOf("-extension://") !== -1)
316
316
  r.bex = !0;
317
317
  else {
318
- if (window.Capacitor !== void 0 ? (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova"), _r.value === !0 && (Za = { is: { ...r } }), xm === !0 && r.mac === !0 && (r.desktop === !0 && r.safari === !0 || r.nativeMobile === !0 && r.android !== !0 && r.ios !== !0 && r.ipad !== !0)) {
318
+ if (window.Capacitor !== void 0 ? (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova"), _r.value === !0 && (eu = { is: { ...r } }), xm === !0 && r.mac === !0 && (r.desktop === !0 && r.safari === !0 || r.nativeMobile === !0 && r.android !== !0 && r.ios !== !0 && r.ipad !== !0)) {
319
319
  delete r.mac, delete r.desktop;
320
320
  const s = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
321
321
  Object.assign(r, {
@@ -344,7 +344,7 @@ const hh = navigator.userAgent || navigator.vendor || window.opera, gb = {
344
344
  within: {
345
345
  iframe: window.self !== window.top
346
346
  }
347
- }, eu = {
347
+ }, tu = {
348
348
  install(i) {
349
349
  const { $q: e } = i;
350
350
  _r.value === !0 ? (i.onSSRHydrated.push(() => {
@@ -363,24 +363,24 @@ const hh = navigator.userAgent || navigator.vendor || window.opera, gb = {
363
363
  } catch {
364
364
  }
365
365
  return i = !1, !1;
366
- }), Object.assign(eu, Tt), _r.value === !0 && (Object.assign(eu, Za, gb), Za = null);
366
+ }), Object.assign(tu, Tt), _r.value === !0 && (Object.assign(tu, eu, gb), eu = null);
367
367
  }
368
368
  function pb(i) {
369
369
  return i ?? null;
370
370
  }
371
371
  function fh(i, e) {
372
- return i ?? (e === !0 ? `f_${Ys()}` : null);
372
+ return i ?? (e === !0 ? `f_${Gs()}` : null);
373
373
  }
374
374
  function km({ getValue: i, required: e = !0 } = {}) {
375
375
  if (_r.value === !0) {
376
376
  const t = i !== void 0 ? Y(pb(i())) : Y(null);
377
377
  return e === !0 && t.value === null && Si(() => {
378
- t.value = `f_${Ys()}`;
378
+ t.value = `f_${Gs()}`;
379
379
  }), i !== void 0 && ve(i, (n) => {
380
380
  t.value = fh(n, e);
381
381
  }), t;
382
382
  }
383
- return i !== void 0 ? x(() => fh(i(), e)) : Y(`f_${Ys()}`);
383
+ return i !== void 0 ? x(() => fh(i(), e)) : Y(`f_${Gs()}`);
384
384
  }
385
385
  const dh = /^on[A-Z]/;
386
386
  function vb() {
@@ -408,7 +408,7 @@ function Gi(i, e) {
408
408
  return x(() => i.dark === null ? e.dark.isActive : i.dark);
409
409
  }
410
410
  const bb = "_q_", yb = "_q_fo_", wm = "_q_tabs_";
411
- function ua() {
411
+ function ca() {
412
412
  }
413
413
  function xb({ validate: i, resetValidation: e, requiresQForm: t }) {
414
414
  const n = Fo(yb, !1);
@@ -423,7 +423,7 @@ function xb({ validate: i, resetValidation: e, requiresQForm: t }) {
423
423
  });
424
424
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
425
425
  }
426
- const mh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, gh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, ph = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, is = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, ns = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, ca = {
426
+ const mh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, gh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, ph = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, is = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, ns = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, ha = {
427
427
  date: (i) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),
428
428
  time: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),
429
429
  fulltime: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),
@@ -509,7 +509,7 @@ function Sb(i, e) {
509
509
  for (let q = 0; q < t.rules.length; q++) {
510
510
  const C = t.rules[q];
511
511
  let L;
512
- if (typeof C == "function" ? L = C(b, ca) : typeof C == "string" && ca[C] !== void 0 && (L = ca[C](b)), L === !1 || typeof L == "string")
512
+ if (typeof C == "function" ? L = C(b, ha) : typeof C == "string" && ha[C] !== void 0 && (L = ha[C](b)), L === !1 || typeof L == "string")
513
513
  return y(!0, L), !1;
514
514
  L !== !0 && L !== void 0 && S.push(L);
515
515
  }
@@ -588,7 +588,7 @@ function $t(i) {
588
588
  function ct(i) {
589
589
  i.cancelable !== !1 && i.preventDefault(), i.stopPropagation();
590
590
  }
591
- function ha(i, e) {
591
+ function fa(i, e) {
592
592
  if (i === void 0 || e === !0 && i.__dragPrevented === !0)
593
593
  return;
594
594
  const t = e === !0 ? (n) => {
@@ -620,7 +620,7 @@ function Ab(i) {
620
620
  function vh(i) {
621
621
  Cm(i), yo.length === 0 && Un.length !== 0 && (Un[Un.length - 1](), Un = []);
622
622
  }
623
- function Rl(i) {
623
+ function El(i) {
624
624
  yo.length === 0 ? i() : Un.push(i);
625
625
  }
626
626
  function Ob(i) {
@@ -660,7 +660,7 @@ const Tb = {
660
660
  readonly: Boolean,
661
661
  autofocus: Boolean,
662
662
  for: String
663
- }, El = {
663
+ }, Ll = {
664
664
  ...Tb,
665
665
  maxlength: [Number, String]
666
666
  }, ac = ["update:modelValue", "clear", "focus", "blur"];
@@ -758,7 +758,7 @@ function cc(i) {
758
758
  $ && (F === null || F.id !== i.targetUid.value) && ($.hasAttribute("tabindex") === !0 || ($ = $.querySelector("[tabindex]")), $ !== F && ($ == null || $.focus({ preventScroll: !0 })));
759
759
  }
760
760
  function C() {
761
- Rl(q);
761
+ El(q);
762
762
  }
763
763
  function L() {
764
764
  Ob(q);
@@ -926,11 +926,11 @@ function cc(i) {
926
926
  ]);
927
927
  };
928
928
  }
929
- function Ll(i) {
929
+ function Il(i) {
930
930
  return i !== Object(i) || i.isComposing === !0 || i.qKeyEvent === !0;
931
931
  }
932
932
  function an(i, e) {
933
- return Ll(i) === !0 ? !1 : [].concat(e).includes(i.keyCode);
933
+ return Il(i) === !0 ? !1 : [].concat(e).includes(i.keyCode);
934
934
  }
935
935
  const bh = {
936
936
  date: "####/##/##",
@@ -1156,7 +1156,7 @@ function Bb(i, e, t, n) {
1156
1156
  e("click", E), u = void 0;
1157
1157
  }
1158
1158
  function S(E) {
1159
- if (e("keydown", E), Ll(E) === !0 || E.altKey === !0) return;
1159
+ if (e("keydown", E), Il(E) === !0 || E.altKey === !0) return;
1160
1160
  const D = n.value, _ = D.selectionStart, P = D.selectionEnd;
1161
1161
  if (E.shiftKey || (u = void 0), E.keyCode === 37 || E.keyCode === 39) {
1162
1162
  E.shiftKey && u === void 0 && (u = D.selectionDirection === "forward" ? _ : P);
@@ -1274,7 +1274,7 @@ const ar = $e({
1274
1274
  name: "QInput",
1275
1275
  inheritAttrs: !1,
1276
1276
  props: {
1277
- ...El,
1277
+ ...Ll,
1278
1278
  ...qb,
1279
1279
  ...Ho,
1280
1280
  // override of useFieldProps > modelValue
@@ -1358,7 +1358,7 @@ const ar = $e({
1358
1358
  i.autogrow === !0 && rt(V);
1359
1359
  });
1360
1360
  function D() {
1361
- Rl(() => {
1361
+ El(() => {
1362
1362
  const O = document.activeElement;
1363
1363
  h.value !== null && h.value !== O && (O === null || O.id !== q.targetUid.value) && h.value.focus({ preventScroll: !0 });
1364
1364
  });
@@ -1762,7 +1762,7 @@ const Kb = {
1762
1762
  xl: 60
1763
1763
  }, Ub = {
1764
1764
  ...Yi,
1765
- ...Bl,
1765
+ ..._l,
1766
1766
  ...Ho,
1767
1767
  modelValue: {
1768
1768
  required: !0,
@@ -1789,7 +1789,7 @@ const Kb = {
1789
1789
  tabindex: [String, Number]
1790
1790
  }, Yb = ["update:modelValue"];
1791
1791
  function Gb(i, e) {
1792
- const { props: t, slots: n, emit: r, proxy: o } = ze(), { $q: s } = o, l = Gi(t, s), a = Y(null), { refocusTargetEl: u, refocusTarget: c } = Qb(t, a), h = _l(t, Kb), f = x(
1792
+ const { props: t, slots: n, emit: r, proxy: o } = ze(), { $q: s } = o, l = Gi(t, s), a = Y(null), { refocusTargetEl: u, refocusTarget: c } = Qb(t, a), h = Rl(t, Kb), f = x(
1793
1793
  () => t.val !== void 0 && Array.isArray(t.modelValue)
1794
1794
  ), d = x(() => {
1795
1795
  const _ = zn(t.val);
@@ -2008,7 +2008,7 @@ const Sh = /* @__PURE__ */ ii(Xb, [["render", iy], ["__file", "/Users/zachsherbo
2008
2008
  name: "QField",
2009
2009
  inheritAttrs: !1,
2010
2010
  props: {
2011
- ...El,
2011
+ ...Ll,
2012
2012
  tag: {
2013
2013
  type: String,
2014
2014
  default: "label"
@@ -2021,7 +2021,7 @@ const Sh = /* @__PURE__ */ ii(Xb, [["render", iy], ["__file", "/Users/zachsherbo
2021
2021
  );
2022
2022
  }
2023
2023
  });
2024
- function tu(i, e) {
2024
+ function iu(i, e) {
2025
2025
  const t = i.style;
2026
2026
  for (const n in e)
2027
2027
  t[n] = e[n];
@@ -2061,7 +2061,7 @@ function Ch(i, e, t, n) {
2061
2061
  let o = t.modifiers.center;
2062
2062
  o = o === !0 || n === !0;
2063
2063
  const s = document.createElement("span"), l = document.createElement("span"), a = Rr(i), { left: u, top: c, width: h, height: f } = e.getBoundingClientRect(), d = Math.sqrt(h * h + f * f), m = d / 2, p = `${(h - d) / 2}px`, g = o ? p : `${a.left - u - m}px`, b = `${(f - d) / 2}px`, k = o ? b : `${a.top - c - m}px`;
2064
- l.className = "q-ripple__inner", tu(l, {
2064
+ l.className = "q-ripple__inner", iu(l, {
2065
2065
  height: `${d}px`,
2066
2066
  width: `${d}px`,
2067
2067
  transform: `translate3d(${g},${k},0) scale3d(.2,.2,1)`,
@@ -2137,7 +2137,7 @@ const dc = sc(
2137
2137
  name: "QChip",
2138
2138
  props: {
2139
2139
  ...Yi,
2140
- ...Bl,
2140
+ ..._l,
2141
2141
  dense: Boolean,
2142
2142
  icon: String,
2143
2143
  iconRight: String,
@@ -2168,7 +2168,7 @@ const dc = sc(
2168
2168
  },
2169
2169
  emits: ["update:modelValue", "update:selected", "remove", "click"],
2170
2170
  setup(i, { slots: e, emit: t }) {
2171
- const { proxy: { $q: n } } = ze(), r = Gi(i, n), o = _l(i, sy), s = x(() => i.selected === !0 || i.icon !== void 0), l = x(() => i.selected === !0 ? i.iconSelected || n.iconSet.chip.selected : i.icon), a = x(() => i.iconRemove || n.iconSet.chip.remove), u = x(
2171
+ const { proxy: { $q: n } } = ze(), r = Gi(i, n), o = Rl(i, sy), s = x(() => i.selected === !0 || i.icon !== void 0), l = x(() => i.selected === !0 ? i.iconSelected || n.iconSet.chip.selected : i.icon), a = x(() => i.iconRemove || n.iconSet.chip.remove), u = x(
2172
2172
  () => i.disable === !1 && (i.clickable === !0 || i.selected !== null)
2173
2173
  ), c = x(() => {
2174
2174
  const g = i.outline === !0 && i.color || i.textColor;
@@ -2392,7 +2392,7 @@ function Em({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
2392
2392
  navigateOnClick: y
2393
2393
  };
2394
2394
  }
2395
- const Gs = $e({
2395
+ const $s = $e({
2396
2396
  name: "QItem",
2397
2397
  props: {
2398
2398
  ...Yi,
@@ -2494,10 +2494,10 @@ const Gs = $e({
2494
2494
  }, Pt(e.default));
2495
2495
  }
2496
2496
  });
2497
- function $s() {
2497
+ function Js() {
2498
2498
  if (window.getSelection !== void 0) {
2499
2499
  const i = window.getSelection();
2500
- i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), eu.is.mobile !== !0 && i.addRange(document.createRange()));
2500
+ i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), tu.is.mobile !== !0 && i.addRange(document.createRange()));
2501
2501
  } else document.selection !== void 0 && document.selection.empty();
2502
2502
  }
2503
2503
  const Lm = {
@@ -2554,7 +2554,7 @@ function pc({
2554
2554
  }, 300);
2555
2555
  },
2556
2556
  mobileCleanup(d) {
2557
- s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && d !== void 0 && $s();
2557
+ s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && d !== void 0 && Js();
2558
2558
  }
2559
2559
  }), t = function(d = n.contextMenu) {
2560
2560
  if (n.noParentEvent === !0 || s.value === null) return;
@@ -2628,19 +2628,19 @@ function Vm(i, e) {
2628
2628
  changeScrollEvent: r
2629
2629
  };
2630
2630
  }
2631
- const Il = {
2631
+ const Vl = {
2632
2632
  modelValue: {
2633
2633
  type: Boolean,
2634
2634
  default: null
2635
2635
  },
2636
2636
  "onUpdate:modelValue": [Function, Array]
2637
- }, Vl = [
2637
+ }, Fl = [
2638
2638
  "beforeShow",
2639
2639
  "show",
2640
2640
  "beforeHide",
2641
2641
  "hide"
2642
2642
  ];
2643
- function Fl({
2643
+ function Nl({
2644
2644
  showing: i,
2645
2645
  canShow: e,
2646
2646
  // optional
@@ -2859,10 +2859,10 @@ function wy() {
2859
2859
  if (rs !== void 0)
2860
2860
  return rs;
2861
2861
  const i = document.createElement("p"), e = document.createElement("div");
2862
- tu(i, {
2862
+ iu(i, {
2863
2863
  width: "100%",
2864
2864
  height: "200px"
2865
- }), tu(e, {
2865
+ }), iu(e, {
2866
2866
  position: "absolute",
2867
2867
  top: "0px",
2868
2868
  left: "0px",
@@ -2896,7 +2896,7 @@ function zm(i) {
2896
2896
  function jm(i) {
2897
2897
  Tt.is.desktop === !0 && (Xn.push(i), Xn.length === 1 && zm("addEventListener"));
2898
2898
  }
2899
- function Js(i) {
2899
+ function Xs(i) {
2900
2900
  const e = Xn.indexOf(i);
2901
2901
  e !== -1 && (Xn.splice(e, 1), Xn.length === 0 && zm("removeEventListener"));
2902
2902
  }
@@ -2907,12 +2907,12 @@ function Wm(i) {
2907
2907
  function Qm(i) {
2908
2908
  Tt.is.desktop === !0 && (Zn.push(i), Zn.length === 1 && document.body.addEventListener("focusin", Wm));
2909
2909
  }
2910
- function iu(i) {
2910
+ function nu(i) {
2911
2911
  const e = Zn.indexOf(i);
2912
2912
  e !== -1 && (Zn.splice(e, 1), Zn.length === 0 && document.body.removeEventListener("focusin", Wm));
2913
2913
  }
2914
- const { notPassiveCapture: Xs } = At, er = [];
2915
- function Zs(i) {
2914
+ const { notPassiveCapture: Zs } = At, er = [];
2915
+ function el(i) {
2916
2916
  const e = i.target;
2917
2917
  if (e === void 0 || e.nodeType === 8 || e.classList.contains("no-pointer-events") === !0) return;
2918
2918
  let t = Cr.length - 1;
@@ -2936,34 +2936,34 @@ function Zs(i) {
2936
2936
  }
2937
2937
  }
2938
2938
  function Km(i) {
2939
- er.push(i), er.length === 1 && (document.addEventListener("mousedown", Zs, Xs), document.addEventListener("touchstart", Zs, Xs));
2939
+ er.push(i), er.length === 1 && (document.addEventListener("mousedown", el, Zs), document.addEventListener("touchstart", el, Zs));
2940
2940
  }
2941
- function el(i) {
2941
+ function tl(i) {
2942
2942
  const e = er.findIndex((t) => t === i);
2943
- e !== -1 && (er.splice(e, 1), er.length === 0 && (document.removeEventListener("mousedown", Zs, Xs), document.removeEventListener("touchstart", Zs, Xs)));
2943
+ e !== -1 && (er.splice(e, 1), er.length === 0 && (document.removeEventListener("mousedown", el, Zs), document.removeEventListener("touchstart", el, Zs)));
2944
2944
  }
2945
2945
  let Ph, qh;
2946
- function tl(i) {
2946
+ function il(i) {
2947
2947
  const e = i.split(" ");
2948
2948
  return e.length !== 2 ? !1 : ["top", "center", "bottom"].includes(e[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(e[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
2949
2949
  }
2950
2950
  function Um(i) {
2951
2951
  return i ? !(i.length !== 2 || typeof i[0] != "number" || typeof i[1] != "number") : !0;
2952
2952
  }
2953
- const nu = {
2953
+ const ru = {
2954
2954
  "start#ltr": "left",
2955
2955
  "start#rtl": "right",
2956
2956
  "end#ltr": "right",
2957
2957
  "end#rtl": "left"
2958
2958
  };
2959
2959
  ["left", "middle", "right"].forEach((i) => {
2960
- nu[`${i}#ltr`] = i, nu[`${i}#rtl`] = i;
2960
+ ru[`${i}#ltr`] = i, ru[`${i}#rtl`] = i;
2961
2961
  });
2962
- function il(i, e) {
2962
+ function nl(i, e) {
2963
2963
  const t = i.split(" ");
2964
2964
  return {
2965
2965
  vertical: t[0],
2966
- horizontal: nu[`${t[1]}#${e === !0 ? "rtl" : "ltr"}`]
2966
+ horizontal: ru[`${t[1]}#${e === !0 ? "rtl" : "ltr"}`]
2967
2967
  };
2968
2968
  }
2969
2969
  function Oy(i, e) {
@@ -3048,10 +3048,10 @@ function yc(i, e = 0) {
3048
3048
  const y = Dy(b, k);
3049
3049
  let S = Bh(m, y, o, s);
3050
3050
  if (l === void 0 || n === void 0)
3051
- fa(S, m, y, o, s);
3051
+ da(S, m, y, o, s);
3052
3052
  else {
3053
3053
  const { top: q, left: C } = S;
3054
- fa(S, m, y, o, s);
3054
+ da(S, m, y, o, s);
3055
3055
  let L = !1;
3056
3056
  if (S.top !== q) {
3057
3057
  L = !0;
@@ -3063,14 +3063,14 @@ function yc(i, e = 0) {
3063
3063
  const N = 2 * n[0];
3064
3064
  m.middle = m.left -= N, m.right -= N + 2;
3065
3065
  }
3066
- L === !0 && (S = Bh(m, y, o, s), fa(S, m, y, o, s));
3066
+ L === !0 && (S = Bh(m, y, o, s), da(S, m, y, o, s));
3067
3067
  }
3068
3068
  v = {
3069
3069
  top: S.top + "px",
3070
3070
  left: S.left + "px"
3071
3071
  }, S.maxHeight !== void 0 && (v.maxHeight = S.maxHeight + "px", m.height > S.maxHeight && (v.minHeight = v.maxHeight)), S.maxWidth !== void 0 && (v.maxWidth = S.maxWidth + "px", m.width > S.maxWidth && (v.minWidth = v.maxWidth)), Object.assign(t.style, v), t.scrollTop !== d && (t.scrollTop = d), t.scrollLeft !== f && (t.scrollLeft = f);
3072
3072
  }
3073
- function fa(i, e, t, n, r) {
3073
+ function da(i, e, t, n, r) {
3074
3074
  const o = t.bottom, s = t.right, l = wy(), a = window.innerHeight - l, u = document.body.clientWidth;
3075
3075
  if (i.top < 0 || i.top + o > a)
3076
3076
  if (r.vertical === "center")
@@ -3106,7 +3106,7 @@ const Ym = $e({
3106
3106
  inheritAttrs: !1,
3107
3107
  props: {
3108
3108
  ...Im,
3109
- ...Il,
3109
+ ...Vl,
3110
3110
  ...Yi,
3111
3111
  ...ao,
3112
3112
  persistent: Boolean,
@@ -3121,11 +3121,11 @@ const Ym = $e({
3121
3121
  square: Boolean,
3122
3122
  anchor: {
3123
3123
  type: String,
3124
- validator: tl
3124
+ validator: il
3125
3125
  },
3126
3126
  self: {
3127
3127
  type: String,
3128
- validator: tl
3128
+ validator: il
3129
3129
  },
3130
3130
  offset: {
3131
3131
  type: Array,
@@ -3143,7 +3143,7 @@ const Ym = $e({
3143
3143
  }
3144
3144
  },
3145
3145
  emits: [
3146
- ...Vl,
3146
+ ...Fl,
3147
3147
  "click",
3148
3148
  "escapeKey"
3149
3149
  ],
@@ -3151,7 +3151,7 @@ const Ym = $e({
3151
3151
  let r = null, o, s, l;
3152
3152
  const a = ze(), { proxy: u } = a, { $q: c } = u, h = Y(null), f = Y(!1), d = x(
3153
3153
  () => i.persistent !== !0 && i.noRouteDismiss !== !0
3154
- ), m = Gi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: b } = ko(), { transitionProps: k, transitionStyle: v } = bc(i), { localScrollTarget: y, changeScrollEvent: S, unconfigureScrollTarget: q } = Vm(i, z), { anchorEl: C, canShow: L } = pc({ showing: f }), { hide: N } = Fl({
3154
+ ), m = Gi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: b } = ko(), { transitionProps: k, transitionStyle: v } = bc(i), { localScrollTarget: y, changeScrollEvent: S, unconfigureScrollTarget: q } = Vm(i, z), { anchorEl: C, canShow: L } = pc({ showing: f }), { hide: N } = Nl({
3155
3155
  showing: f,
3156
3156
  canShow: L,
3157
3157
  handleShow: U,
@@ -3167,20 +3167,20 @@ const Ym = $e({
3167
3167
  (Z.type === "touchstart" || Z.target.classList.contains("q-dialog__backdrop")) && ct(Z), !0;
3168
3168
  }
3169
3169
  }, B = x(
3170
- () => il(
3170
+ () => nl(
3171
3171
  i.anchor || (i.cover === !0 ? "center middle" : "bottom start"),
3172
3172
  c.lang.rtl
3173
3173
  )
3174
- ), I = x(() => i.cover === !0 ? B.value : il(i.self || "top start", c.lang.rtl)), K = x(
3174
+ ), I = x(() => i.cover === !0 ? B.value : nl(i.self || "top start", c.lang.rtl)), K = x(
3175
3175
  () => (i.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
3176
3176
  ), V = x(() => i.autoClose === !0 ? { onClick: G } : {}), F = x(
3177
3177
  () => f.value === !0 && i.persistent !== !0
3178
3178
  );
3179
3179
  ve(F, (Z) => {
3180
- Z === !0 ? (jm(ae), Km(P)) : (Js(ae), el(P));
3180
+ Z === !0 ? (jm(ae), Km(P)) : (Xs(ae), tl(P));
3181
3181
  });
3182
3182
  function $() {
3183
- Rl(() => {
3183
+ El(() => {
3184
3184
  let Z = h.value;
3185
3185
  Z && Z.contains(document.activeElement) !== !0 && (Z = Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || Z.querySelector("[autofocus], [data-autofocus]") || Z, Z.focus({ preventScroll: !0 }));
3186
3186
  });
@@ -3209,7 +3209,7 @@ const Ym = $e({
3209
3209
  }, i.transitionDuration);
3210
3210
  }
3211
3211
  function O(Z) {
3212
- o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (iu(re), q(), el(P), Js(ae)), Z !== !0 && (r = null);
3212
+ o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (nu(re), q(), tl(P), Xs(ae)), Z !== !0 && (r = null);
3213
3213
  }
3214
3214
  function z() {
3215
3215
  (C.value !== null || i.scrollTarget !== void 0) && (y.value = Hm(C.value, i.scrollTarget), S(y.value, oe));
@@ -3272,7 +3272,7 @@ function Py(i, e, t) {
3272
3272
  }
3273
3273
  };
3274
3274
  }
3275
- let Gr = 0, da, ma, io, ga = !1, _h, Rh, Eh, Fn = null;
3275
+ let Gr = 0, ma, ga, io, pa = !1, _h, Rh, Eh, Fn = null;
3276
3276
  function qy(i) {
3277
3277
  By(i) && ct(i);
3278
3278
  }
@@ -3291,8 +3291,8 @@ function Lh(i) {
3291
3291
  i.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3292
3292
  }
3293
3293
  function os(i) {
3294
- ga !== !0 && (ga = !0, requestAnimationFrame(() => {
3295
- ga = !1;
3294
+ pa !== !0 && (pa = !0, requestAnimationFrame(() => {
3295
+ pa = !1;
3296
3296
  const { height: e } = i.target, { clientHeight: t, scrollTop: n } = document.scrollingElement;
3297
3297
  (io === void 0 || e !== window.innerHeight) && (io = t - e, document.scrollingElement.scrollTop = n), n > io && (document.scrollingElement.scrollTop -= Math.ceil((n - io) / 8));
3298
3298
  }));
@@ -3301,9 +3301,9 @@ function Ih(i) {
3301
3301
  const e = document.body, t = window.visualViewport !== void 0;
3302
3302
  if (i === "add") {
3303
3303
  const { overflowY: n, overflowX: r } = window.getComputedStyle(e);
3304
- da = ky(window), ma = xy(window), _h = e.style.left, Rh = e.style.top, Eh = window.location.href, e.style.left = `-${da}px`, e.style.top = `-${ma}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, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", os, At.passiveCapture), window.visualViewport.addEventListener("scroll", os, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Lh, At.passiveCapture));
3304
+ ma = ky(window), ga = xy(window), _h = e.style.left, Rh = e.style.top, Eh = window.location.href, e.style.left = `-${ma}px`, e.style.top = `-${ga}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, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", os, At.passiveCapture), window.visualViewport.addEventListener("scroll", os, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Lh, At.passiveCapture));
3305
3305
  }
3306
- Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", qy, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", os, At.passiveCapture), window.visualViewport.removeEventListener("scroll", os, At.passiveCapture)) : window.removeEventListener("scroll", Lh, At.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 = _h, e.style.top = Rh, window.location.href === Eh && window.scrollTo(da, ma), io = void 0);
3306
+ Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", qy, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", os, At.passiveCapture), window.visualViewport.removeEventListener("scroll", os, At.passiveCapture)) : window.removeEventListener("scroll", Lh, At.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 = _h, e.style.top = Rh, window.location.href === Eh && window.scrollTo(ma, ga), io = void 0);
3307
3307
  }
3308
3308
  function _y(i) {
3309
3309
  let e = "add";
@@ -3349,7 +3349,7 @@ const Ey = {
3349
3349
  name: "QDialog",
3350
3350
  inheritAttrs: !1,
3351
3351
  props: {
3352
- ...Il,
3352
+ ...Vl,
3353
3353
  ...ao,
3354
3354
  transitionShow: String,
3355
3355
  // override useTransitionProps
@@ -3377,7 +3377,7 @@ const Ey = {
3377
3377
  }
3378
3378
  },
3379
3379
  emits: [
3380
- ...Vl,
3380
+ ...Fl,
3381
3381
  "shake",
3382
3382
  "click",
3383
3383
  "escapeKey"
@@ -3396,7 +3396,7 @@ const Ey = {
3396
3396
  o,
3397
3397
  z,
3398
3398
  "dialog"
3399
- ), { hide: L } = Fl({
3399
+ ), { hide: L } = Nl({
3400
3400
  showing: s,
3401
3401
  hideOnRouteChange: f,
3402
3402
  handleShow: P,
@@ -3413,7 +3413,7 @@ const Ey = {
3413
3413
  ve(() => i.maximized, (G) => {
3414
3414
  s.value === !0 && $(G);
3415
3415
  }), ve(E, (G) => {
3416
- d(G), G === !0 ? (Qm(O), jm(V)) : (iu(O), Js(V));
3416
+ d(G), G === !0 ? (Qm(O), jm(V)) : (nu(O), Xs(V));
3417
3417
  });
3418
3418
  function P(G) {
3419
3419
  var re;
@@ -3437,7 +3437,7 @@ const Ey = {
3437
3437
  }, i.transitionDuration);
3438
3438
  }
3439
3439
  function I(G) {
3440
- Rl(() => {
3440
+ El(() => {
3441
3441
  let re = o.value;
3442
3442
  if (re !== null) {
3443
3443
  if (G !== void 0) {
@@ -3462,7 +3462,7 @@ const Ey = {
3462
3462
  i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && K() : (t("escapeKey"), L()));
3463
3463
  }
3464
3464
  function F(G) {
3465
- a !== null && (clearTimeout(a), a = null), (G === !0 || s.value === !0) && ($(!1), i.seamless !== !0 && (d(!1), iu(O), Js(V))), G !== !0 && (u = null);
3465
+ a !== null && (clearTimeout(a), a = null), (G === !0 || s.value === !0) && ($(!1), i.seamless !== !0 && (d(!1), nu(O), Xs(V))), G !== !0 && (u = null);
3466
3466
  }
3467
3467
  function $(G) {
3468
3468
  G === !0 ? c !== !0 && (ss < 1 && document.body.classList.add("q-body--dialog"), ss++, c = !0) : c === !0 && (ss < 2 && document.body.classList.remove("q-body--dialog"), ss--, c = !1);
@@ -3554,7 +3554,7 @@ const Ai = 1e3, Ly = [
3554
3554
  function Ar(i, e) {
3555
3555
  return i + e;
3556
3556
  }
3557
- function pa(i, e, t, n, r, o, s, l) {
3557
+ function va(i, e, t, n, r, o, s, l) {
3558
3558
  const a = i === window ? document.scrollingElement || document.documentElement : i, u = r === !0 ? "offsetWidth" : "offsetHeight", c = {
3559
3559
  scrollStart: 0,
3560
3560
  scrollViewSize: -s - l,
@@ -3641,7 +3641,7 @@ function Fy({
3641
3641
  function E(M, O) {
3642
3642
  const z = e();
3643
3643
  if (z == null || z.nodeType === 8) return;
3644
- const G = pa(
3644
+ const G = va(
3645
3645
  z,
3646
3646
  t(),
3647
3647
  b.value,
@@ -3662,7 +3662,7 @@ function Fy({
3662
3662
  function D() {
3663
3663
  const M = e();
3664
3664
  if (M == null || M.nodeType === 8) return;
3665
- const O = pa(
3665
+ const O = va(
3666
3666
  M,
3667
3667
  t(),
3668
3668
  b.value,
@@ -3782,7 +3782,7 @@ function Fy({
3782
3782
  function K(M) {
3783
3783
  if (M === void 0 && typeof window < "u") {
3784
3784
  const oe = e();
3785
- oe != null && oe.nodeType !== 8 && (M = pa(
3785
+ oe != null && oe.nodeType !== 8 && (M = va(
3786
3786
  oe,
3787
3787
  t(),
3788
3788
  b.value,
@@ -3981,19 +3981,19 @@ function Fe(i, e = 2, t = "0") {
3981
3981
  const n = "" + i;
3982
3982
  return n.length >= e ? n : new Array(e - n.length + 1).join(t) + n;
3983
3983
  }
3984
- const zh = (i) => ["add", "add-unique", "toggle"].includes(i), Hy = ".*+?^${}()|[]\\", zy = Object.keys(El);
3985
- function va(i, e) {
3984
+ const zh = (i) => ["add", "add-unique", "toggle"].includes(i), Hy = ".*+?^${}()|[]\\", zy = Object.keys(Ll);
3985
+ function ba(i, e) {
3986
3986
  if (typeof i == "function") return i;
3987
3987
  const t = i !== void 0 ? i : e;
3988
3988
  return (n) => n !== null && typeof n == "object" && t in n ? n[t] : n;
3989
3989
  }
3990
- const Nl = $e({
3990
+ const Hl = $e({
3991
3991
  name: "QSelect",
3992
3992
  inheritAttrs: !1,
3993
3993
  props: {
3994
3994
  ...Nh,
3995
3995
  ...Ho,
3996
- ...El,
3996
+ ...Ll,
3997
3997
  // override of useFieldProps > modelValue
3998
3998
  modelValue: {
3999
3999
  required: !0
@@ -4170,7 +4170,7 @@ const Nl = $e({
4170
4170
  });
4171
4171
  }), gi = x(() => i.dropdownIcon !== void 0 ? i.dropdownIcon : r.iconSet.arrow.dropdown), _i = x(
4172
4172
  () => i.optionsCover === !1 && i.outlined !== !0 && i.standout !== !0 && i.borderless !== !0 && i.rounded !== !0
4173
- ), Ut = x(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), lt = x(() => va(i.optionValue, "value")), J = x(() => va(i.optionLabel, "label")), pe = x(() => va(i.optionDisable, "disable")), ke = x(() => O.value.map(lt.value)), Qe = x(() => {
4173
+ ), Ut = x(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), lt = x(() => ba(i.optionValue, "value")), J = x(() => ba(i.optionLabel, "label")), pe = x(() => ba(i.optionDisable, "disable")), ke = x(() => O.value.map(lt.value)), Qe = x(() => {
4174
4174
  const T = {
4175
4175
  onInput: cr,
4176
4176
  // Safari < 10.2 & UIWebView doesn't fire compositionend when
@@ -4190,7 +4190,7 @@ const Nl = $e({
4190
4190
  });
4191
4191
  ve(O, (T) => {
4192
4192
  d = T, i.useInput === !0 && i.fillInput === !0 && i.multiple !== !0 && M.innerLoading.value !== !0 && (s.value !== !0 && o.value !== !0 || re.value !== !0) && (p !== !0 && pi(), (s.value === !0 || o.value === !0) && Ri(""));
4193
- }, { immediate: !0 }), ve(() => i.fillInput, pi), ve(o, ra), ve(_, C0);
4193
+ }, { immediate: !0 }), ve(() => i.fillInput, pi), ve(o, oa), ve(_, C0);
4194
4194
  function He(T) {
4195
4195
  return i.emitValue === !0 ? lt.value(T) : T;
4196
4196
  }
@@ -4306,7 +4306,7 @@ const Nl = $e({
4306
4306
  t("keypress", T);
4307
4307
  }
4308
4308
  function _t(T) {
4309
- if (t("keydown", T), Ll(T) === !0) return;
4309
+ if (t("keydown", T), Il(T) === !0) return;
4310
4310
  const ue = a.value.length !== 0 && (i.newValueMode !== void 0 || i.onNewValue !== void 0), me = T.shiftKey !== !0 && i.disableTabSelection !== !0 && i.multiple !== !0 && (l.value !== -1 || ue === !0);
4311
4311
  if (T.keyCode === 27) {
4312
4312
  $t(T);
@@ -4397,7 +4397,7 @@ const Nl = $e({
4397
4397
  function $i() {
4398
4398
  if (_e.value === !0)
4399
4399
  return e["no-option"] !== void 0 ? e["no-option"]({ inputValue: a.value }) : void 0;
4400
- const T = e.option !== void 0 ? e.option : (me) => A(Gs, {
4400
+ const T = e.option !== void 0 ? e.option : (me) => A($s, {
4401
4401
  key: me.index,
4402
4402
  ...me.itemProps
4403
4403
  }, () => A(
@@ -4456,7 +4456,7 @@ const Nl = $e({
4456
4456
  T,
4457
4457
  (Xe, mt) => {
4458
4458
  (ue === !0 || M.focused.value === !0) && g === Be && (clearTimeout(g), typeof Xe == "function" && Xe(), c.value = !1, rt(() => {
4459
- M.innerLoading.value = !1, M.editable.value === !0 && (ue === !0 ? o.value === !0 && Ve() : o.value === !0 ? ra(!0) : o.value = !0), typeof mt == "function" && rt(() => {
4459
+ M.innerLoading.value = !1, M.editable.value === !0 && (ue === !0 ? o.value === !0 && Ve() : o.value === !0 ? oa(!0) : o.value = !0), typeof mt == "function" && rt(() => {
4460
4460
  mt(n);
4461
4461
  }), typeof me == "function" && rt(() => {
4462
4462
  me(n);
@@ -4468,7 +4468,7 @@ const Nl = $e({
4468
4468
  }
4469
4469
  );
4470
4470
  }
4471
- function ta() {
4471
+ function ia() {
4472
4472
  return A(Ym, {
4473
4473
  ref: C,
4474
4474
  class: oe.value,
@@ -4492,14 +4492,14 @@ const Nl = $e({
4492
4492
  ...Kt.value,
4493
4493
  onScrollPassive: F,
4494
4494
  onBeforeShow: rh,
4495
- onBeforeHide: ia,
4496
- onShow: na
4495
+ onBeforeHide: na,
4496
+ onShow: ra
4497
4497
  }, $i);
4498
4498
  }
4499
- function ia(T) {
4499
+ function na(T) {
4500
4500
  oh(T), ge();
4501
4501
  }
4502
- function na() {
4502
+ function ra() {
4503
4503
  U();
4504
4504
  }
4505
4505
  function w(T) {
@@ -4588,7 +4588,7 @@ const Nl = $e({
4588
4588
  !0
4589
4589
  );
4590
4590
  }
4591
- function ra(T) {
4591
+ function oa(T) {
4592
4592
  let ue = -1;
4593
4593
  if (T === !0) {
4594
4594
  if (O.value.length !== 0) {
@@ -4601,7 +4601,7 @@ const Nl = $e({
4601
4601
  }
4602
4602
  function C0(T, ue) {
4603
4603
  o.value === !0 && M.innerLoading.value === !1 && (K(-1, !0), rt(() => {
4604
- o.value === !0 && M.innerLoading.value === !1 && (T > ue ? K() : ra(!0));
4604
+ o.value === !0 && M.innerLoading.value === !1 && (T > ue ? K() : oa(!0));
4605
4605
  }));
4606
4606
  }
4607
4607
  function nh() {
@@ -4649,7 +4649,7 @@ const Nl = $e({
4649
4649
  ),
4650
4650
  getControlChild: () => {
4651
4651
  if (M.editable.value !== !1 && (s.value === !0 || _e.value !== !0 || e["no-option"] !== void 0))
4652
- return m === !0 ? j() : ta();
4652
+ return m === !0 ? j() : ia();
4653
4653
  M.hasPopupOpen === !0 && (M.hasPopupOpen = !1);
4654
4654
  },
4655
4655
  controlEvents: {
@@ -4799,7 +4799,7 @@ const Nl = $e({
4799
4799
  }
4800
4800
  });
4801
4801
  }, get QSelect() {
4802
- return Nl;
4802
+ return Hl;
4803
4803
  } };
4804
4804
  return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
4805
4805
  }
@@ -4896,7 +4896,7 @@ function $y(i, e) {
4896
4896
  return i.flat === !0 ? "flat" : i.outline === !0 ? "outline" : i.push === !0 ? "push" : i.unelevated === !0 ? "unelevated" : e;
4897
4897
  }
4898
4898
  const Jy = {
4899
- ...Bl,
4899
+ ..._l,
4900
4900
  ...Rm,
4901
4901
  type: {
4902
4902
  type: String,
@@ -4942,7 +4942,7 @@ const Jy = {
4942
4942
  round: Boolean
4943
4943
  };
4944
4944
  function Zy(i) {
4945
- const e = _l(i, Ky), t = Zm(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Em({
4945
+ const e = Rl(i, Ky), t = Zm(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Em({
4946
4946
  fallbackTag: "button"
4947
4947
  }), a = x(() => {
4948
4948
  const g = i.fab === !1 && i.fabMini === !1 ? e.value : {};
@@ -5369,7 +5369,7 @@ function nt(i, e) {
5369
5369
  function di(i, e) {
5370
5370
  return i - ~~(i / e) * e;
5371
5371
  }
5372
- const s1 = ["gregorian", "persian"], nl = {
5372
+ const s1 = ["gregorian", "persian"], rl = {
5373
5373
  // should define modelValue in the target component
5374
5374
  mask: {
5375
5375
  type: String
@@ -5428,7 +5428,7 @@ function ng(i, e) {
5428
5428
  getCurrentDate: s
5429
5429
  };
5430
5430
  }
5431
- const ru = {
5431
+ const ou = {
5432
5432
  isoName: "en-US",
5433
5433
  nativeName: "English (US)",
5434
5434
  label: {
@@ -5542,7 +5542,7 @@ const gn = X0({
5542
5542
  // props: object
5543
5543
  // __langConfig: object
5544
5544
  getLocale: Uh,
5545
- set(i = ru, e) {
5545
+ set(i = ou, e) {
5546
5546
  const t = {
5547
5547
  ...i,
5548
5548
  rtl: i.rtl === !0,
@@ -5564,13 +5564,13 @@ const gn = X0({
5564
5564
  ownKeys(n) {
5565
5565
  return Reflect.ownKeys(n).filter((r) => r !== "set" && r !== "getLocale");
5566
5566
  }
5567
- }), this.set(e || ru));
5567
+ }), this.set(e || ou));
5568
5568
  }
5569
- }), rg = 864e5, l1 = 36e5, ou = 6e4, og = "YYYY-MM-DDTHH:mm:ss.SSSZ", a1 = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, u1 = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, ba = {};
5569
+ }), rg = 864e5, l1 = 36e5, su = 6e4, og = "YYYY-MM-DDTHH:mm:ss.SSSZ", a1 = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, u1 = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, ya = {};
5570
5570
  function c1(i, e) {
5571
5571
  const t = "(" + e.days.join("|") + ")", n = i + t;
5572
- if (ba[n] !== void 0)
5573
- return ba[n];
5572
+ if (ya[n] !== void 0)
5573
+ return ya[n];
5574
5574
  const r = "(" + e.daysShort.join("|") + ")", o = "(" + e.months.join("|") + ")", s = "(" + e.monthsShort.join("|") + ")", l = {};
5575
5575
  let a = 0;
5576
5576
  const u = i.replace(u1, (h) => {
@@ -5658,10 +5658,10 @@ function c1(i, e) {
5658
5658
  return a--, h[0] === "[" && (h = h.substring(1, h.length - 1)), h.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5659
5659
  }
5660
5660
  }), c = { map: l, regex: new RegExp("^" + u) };
5661
- return ba[n] = c, c;
5661
+ return ya[n] = c, c;
5662
5662
  }
5663
5663
  function sg(i, e) {
5664
- return i !== void 0 ? i : e !== void 0 ? e.date : ru.date;
5664
+ return i !== void 0 ? i : e !== void 0 ? e.date : ou.date;
5665
5665
  }
5666
5666
  function Yh(i, e = "") {
5667
5667
  const t = i > 0 ? "-" : "+", n = Math.abs(i), r = Math.floor(n / 60), o = n % 60;
@@ -5715,7 +5715,7 @@ function no(i, e, t, n, r) {
5715
5715
  }
5716
5716
  return o.dateHash = Fe(o.year, 4) + "/" + Fe(o.month) + "/" + Fe(o.day), o.timeHash = Fe(o.hour) + ":" + Fe(o.minute) + ":" + Fe(o.second) + f, o;
5717
5717
  }
5718
- function ya(i) {
5718
+ function xa(i) {
5719
5719
  const e = new Date(i.getFullYear(), i.getMonth(), i.getDate());
5720
5720
  e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
5721
5721
  const t = new Date(e.getFullYear(), 0, 4);
@@ -5751,7 +5751,7 @@ function Zi(i, e, t) {
5751
5751
  return n;
5752
5752
  }
5753
5753
  function ls(i, e, t) {
5754
- return (i.getTime() - i.getTimezoneOffset() * ou - (e.getTime() - e.getTimezoneOffset() * ou)) / t;
5754
+ return (i.getTime() - i.getTimezoneOffset() * su - (e.getTime() - e.getTimezoneOffset() * su)) / t;
5755
5755
  }
5756
5756
  function lg(i, e, t = "days") {
5757
5757
  const n = new Date(i), r = new Date(e);
@@ -5771,13 +5771,13 @@ function lg(i, e, t = "days") {
5771
5771
  return ls(Zi(n, "hour"), Zi(r, "hour"), l1);
5772
5772
  case "minutes":
5773
5773
  case "minute":
5774
- return ls(Zi(n, "minute"), Zi(r, "minute"), ou);
5774
+ return ls(Zi(n, "minute"), Zi(r, "minute"), su);
5775
5775
  case "seconds":
5776
5776
  case "second":
5777
5777
  return ls(Zi(n, "second"), Zi(r, "second"), 1e3);
5778
5778
  }
5779
5779
  }
5780
- function xa(i) {
5780
+ function ka(i) {
5781
5781
  return lg(i, Zi(i, "year"), "days") + 1;
5782
5782
  }
5783
5783
  function gr(i) {
@@ -5845,15 +5845,15 @@ const Gh = {
5845
5845
  },
5846
5846
  // Day of year: 1, 2, ..., 366
5847
5847
  DDD(i) {
5848
- return xa(i);
5848
+ return ka(i);
5849
5849
  },
5850
5850
  // Day of year: 1st, 2nd, ..., 366th
5851
5851
  DDDo(i) {
5852
- return gr(xa(i));
5852
+ return gr(ka(i));
5853
5853
  },
5854
5854
  // Day of year: 001, 002, ..., 366
5855
5855
  DDDD(i) {
5856
- return Fe(xa(i), 3);
5856
+ return Fe(ka(i), 3);
5857
5857
  },
5858
5858
  // Day of week: 0, 1, ..., 6
5859
5859
  d(i) {
@@ -5881,15 +5881,15 @@ const Gh = {
5881
5881
  },
5882
5882
  // Week of Year: 1 2 ... 52 53
5883
5883
  w(i) {
5884
- return ya(i);
5884
+ return xa(i);
5885
5885
  },
5886
5886
  // Week of Year: 1st 2nd ... 52nd 53rd
5887
5887
  wo(i) {
5888
- return gr(ya(i));
5888
+ return gr(xa(i));
5889
5889
  },
5890
5890
  // Week of Year: 01 02 ... 52 53
5891
5891
  ww(i) {
5892
- return Fe(ya(i));
5892
+ return Fe(xa(i));
5893
5893
  },
5894
5894
  // Hour: 0, 1, ... 23
5895
5895
  H(i) {
@@ -5978,14 +5978,14 @@ function ag(i, e, t, n, r) {
5978
5978
  (l, a) => l in Gh ? Gh[l](o, s, n, r) : a === void 0 ? l : a.split("\\]").join("]")
5979
5979
  );
5980
5980
  }
5981
- const Ji = 20, h1 = ["Calendar", "Years", "Months"], $h = (i) => h1.includes(i), ka = (i) => /^-?[\d]+\/[0-1]\d$/.test(i), pr = " — ";
5981
+ const Ji = 20, h1 = ["Calendar", "Years", "Months"], $h = (i) => h1.includes(i), wa = (i) => /^-?[\d]+\/[0-1]\d$/.test(i), pr = " — ";
5982
5982
  function mn(i) {
5983
5983
  return i.year + "/" + Fe(i.month);
5984
5984
  }
5985
5985
  const ug = $e({
5986
5986
  name: "QDate",
5987
5987
  props: {
5988
- ...nl,
5988
+ ...rl,
5989
5989
  ...Ho,
5990
5990
  ...Yi,
5991
5991
  modelValue: {
@@ -5997,14 +5997,14 @@ const ug = $e({
5997
5997
  title: String,
5998
5998
  subtitle: String,
5999
5999
  mask: {
6000
- ...nl.mask,
6000
+ ...rl.mask,
6001
6001
  // this mask is forced
6002
6002
  // when using persian calendar
6003
6003
  default: "YYYY/MM/DD"
6004
6004
  },
6005
6005
  defaultYearMonth: {
6006
6006
  type: String,
6007
- validator: ka
6007
+ validator: wa
6008
6008
  },
6009
6009
  yearsInMonthView: Boolean,
6010
6010
  events: [Array, Function],
@@ -6013,11 +6013,11 @@ const ug = $e({
6013
6013
  options: [Array, Function],
6014
6014
  navigationMinYearMonth: {
6015
6015
  type: String,
6016
- validator: ka
6016
+ validator: wa
6017
6017
  },
6018
6018
  navigationMaxYearMonth: {
6019
6019
  type: String,
6020
- validator: ka
6020
+ validator: wa
6021
6021
  },
6022
6022
  noUnset: Boolean,
6023
6023
  firstDayOfWeek: [String, Number],
@@ -6583,7 +6583,7 @@ const ug = $e({
6583
6583
  ])
6584
6584
  ];
6585
6585
  }
6586
- const ta = {
6586
+ const ia = {
6587
6587
  Calendar: () => [
6588
6588
  A("div", {
6589
6589
  key: "calendar-view",
@@ -6633,10 +6633,10 @@ const ug = $e({
6633
6633
  tabindex: l.value,
6634
6634
  ...s("day#" + w.i, {
6635
6635
  onClick: () => {
6636
- ia(w.i);
6636
+ na(w.i);
6637
6637
  },
6638
6638
  onMouseover: () => {
6639
- na(w.i);
6639
+ ra(w.i);
6640
6640
  }
6641
6641
  })
6642
6642
  },
@@ -6751,7 +6751,7 @@ const ug = $e({
6751
6751
  ]);
6752
6752
  }
6753
6753
  };
6754
- function ia(w) {
6754
+ function na(w) {
6755
6755
  const R = { ...y.value, day: w };
6756
6756
  if (i.range === !1) {
6757
6757
  Te(R, dt.value);
@@ -6782,7 +6782,7 @@ const ug = $e({
6782
6782
  });
6783
6783
  }
6784
6784
  }
6785
- function na(w) {
6785
+ function ra(w) {
6786
6786
  if (D.value !== null) {
6787
6787
  const R = { ...y.value, day: w };
6788
6788
  Object.assign(D.value, {
@@ -6804,7 +6804,7 @@ const ug = $e({
6804
6804
  }, [
6805
6805
  A(fi, {
6806
6806
  name: "q-transition--fade"
6807
- }, ta[S.value])
6807
+ }, ia[S.value])
6808
6808
  ])
6809
6809
  ], R = Pt(e.default);
6810
6810
  return R !== void 0 && w.push(
@@ -6969,7 +6969,7 @@ const p1 = ["INPUT", "TEXTAREA"];
6969
6969
  function Zh(i, e) {
6970
6970
  return e.event === void 0 && i.target !== void 0 && i.target.draggable !== !0 && typeof e.handler == "function" && p1.includes(i.target.nodeName.toUpperCase()) === !1 && (i.qClonedBy === void 0 || i.qClonedBy.indexOf(e.uid) === -1);
6971
6971
  }
6972
- function wa(i, e, t) {
6972
+ function Sa(i, e, t) {
6973
6973
  const n = Rr(i);
6974
6974
  let r, o = n.left - e.event.x, s = n.top - e.event.y, l = Math.abs(o), a = Math.abs(s);
6975
6975
  const u = e.direction;
@@ -7038,7 +7038,7 @@ const b1 = sc(
7038
7038
  }
7039
7039
  },
7040
7040
  start(o, s) {
7041
- if (Tt.is.firefox === !0 && ha(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7041
+ if (Tt.is.firefox === !0 && fa(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7042
7042
  if (r.direction.all !== !0 && (s !== !0 || r.modifiers.mouseAllDir !== !0 && r.modifiers.mousealldir !== !0)) {
7043
7043
  const u = o.type.indexOf("mouse") !== -1 ? new MouseEvent(o.type, o) : new TouchEvent(o.type, o);
7044
7044
  o.defaultPrevented === !0 && $t(u), o.cancelBubble === !0 && hi(u), Object.assign(u, {
@@ -7074,7 +7074,7 @@ const b1 = sc(
7074
7074
  const u = r.event.mouse === !0, c = () => {
7075
7075
  n(o, u);
7076
7076
  let d;
7077
- t.preserveCursor !== !0 && t.preservecursor !== !0 && (d = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), $s(), r.styleCleanup = (m) => {
7077
+ t.preserveCursor !== !0 && t.preservecursor !== !0 && (d = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), Js(), r.styleCleanup = (m) => {
7078
7078
  if (r.styleCleanup = void 0, d !== void 0 && (document.documentElement.style.cursor = d), document.body.classList.remove("non-selectable"), u === !0) {
7079
7079
  const p = () => {
7080
7080
  document.body.classList.remove("no-pointer-events--children");
@@ -7087,7 +7087,7 @@ const b1 = sc(
7087
7087
  };
7088
7088
  if (r.event.detected === !0) {
7089
7089
  r.event.isFirst !== !0 && n(o, r.event.mouse);
7090
- const { payload: d, synthetic: m } = wa(o, r, !1);
7090
+ const { payload: d, synthetic: m } = Sa(o, r, !1);
7091
7091
  d !== void 0 && (r.handler(d) === !1 ? r.end(o) : (r.styleCleanup === void 0 && r.event.isFirst === !0 && c(), r.event.lastX = d.position.left, r.event.lastY = d.position.top, r.event.lastDir = m === !0 ? void 0 : d.direction, r.event.isFirst = !1));
7092
7092
  return;
7093
7093
  }
@@ -7101,11 +7101,11 @@ const b1 = sc(
7101
7101
  end(o, s) {
7102
7102
  var l;
7103
7103
  if (r.event !== void 0) {
7104
- if (Jn(r, "temp"), Tt.is.firefox === !0 && ha(i, !1), s === !0)
7104
+ if (Jn(r, "temp"), Tt.is.firefox === !0 && fa(i, !1), s === !0)
7105
7105
  (l = r.styleCleanup) == null || l.call(r), r.event.detected !== !0 && r.initialEvent !== void 0 && r.initialEvent.target.dispatchEvent(r.initialEvent.event);
7106
7106
  else if (r.event.detected === !0) {
7107
- r.event.isFirst === !0 && r.handler(wa(o === void 0 ? r.lastEvt : o, r).payload);
7108
- const { payload: a } = wa(o === void 0 ? r.lastEvt : o, r, !0), u = () => {
7107
+ r.event.isFirst === !0 && r.handler(Sa(o === void 0 ? r.lastEvt : o, r).payload);
7108
+ const { payload: a } = Sa(o === void 0 ? r.lastEvt : o, r, !0), u = () => {
7109
7109
  r.handler(a);
7110
7110
  };
7111
7111
  r.styleCleanup !== void 0 ? r.styleCleanup(u) : u();
@@ -7133,7 +7133,7 @@ const b1 = sc(
7133
7133
  beforeUnmount(i) {
7134
7134
  var t;
7135
7135
  const e = i.__qtouchpan;
7136
- e !== void 0 && (e.event !== void 0 && e.end(), Jn(e, "main"), Jn(e, "temp"), Tt.is.firefox === !0 && ha(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7136
+ e !== void 0 && (e.event !== void 0 && e.end(), Jn(e, "main"), Jn(e, "temp"), Tt.is.firefox === !0 && fa(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7137
7137
  }
7138
7138
  }
7139
7139
  );
@@ -7154,13 +7154,13 @@ const cg = $e({
7154
7154
  props: {
7155
7155
  ...Yi,
7156
7156
  ...Ho,
7157
- ...nl,
7157
+ ...rl,
7158
7158
  modelValue: {
7159
7159
  required: !0,
7160
7160
  validator: (i) => typeof i == "string" || i === null
7161
7161
  },
7162
7162
  mask: {
7163
- ...nl.mask,
7163
+ ...rl.mask,
7164
7164
  default: null
7165
7165
  },
7166
7166
  format24h: {
@@ -7763,13 +7763,13 @@ const ef = /* @__PURE__ */ ii(k1, [["render", S1], ["__file", "/Users/zachsherbo
7763
7763
  true: "inset",
7764
7764
  item: "item-inset",
7765
7765
  "item-thumbnail": "item-thumbnail-inset"
7766
- }, Sa = {
7766
+ }, Ca = {
7767
7767
  xs: 2,
7768
7768
  sm: 4,
7769
7769
  md: 8,
7770
7770
  lg: 16,
7771
7771
  xl: 24
7772
- }, su = $e({
7772
+ }, lu = $e({
7773
7773
  name: "QSeparator",
7774
7774
  props: {
7775
7775
  ...Yi,
@@ -7785,7 +7785,7 @@ const ef = /* @__PURE__ */ ii(k1, [["render", S1], ["__file", "/Users/zachsherbo
7785
7785
  ), l = x(() => {
7786
7786
  const a = {};
7787
7787
  if (i.size !== void 0 && (a[i.vertical === !0 ? "width" : "height"] = i.size), i.spaced !== !1) {
7788
- const u = i.spaced === !0 ? `${Sa.md}px` : i.spaced in Sa ? `${Sa[i.spaced]}px` : i.spaced, c = i.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7788
+ const u = i.spaced === !0 ? `${Ca.md}px` : i.spaced in Ca ? `${Ca[i.spaced]}px` : i.spaced, c = i.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7789
7789
  a[`margin${c[0]}`] = a[`margin${c[1]}`] = u;
7790
7790
  }
7791
7791
  return a;
@@ -7856,7 +7856,7 @@ const ef = /* @__PURE__ */ ii(k1, [["render", S1], ["__file", "/Users/zachsherbo
7856
7856
  }, get QCardActions() {
7857
7857
  return C1;
7858
7858
  }, get QSeparator() {
7859
- return su;
7859
+ return lu;
7860
7860
  } };
7861
7861
  return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
7862
7862
  }
@@ -8038,7 +8038,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8038
8038
  name: "QExpansionItem",
8039
8039
  props: {
8040
8040
  ...gc,
8041
- ...Il,
8041
+ ...Vl,
8042
8042
  ...Yi,
8043
8043
  icon: String,
8044
8044
  label: String,
@@ -8065,7 +8065,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8065
8065
  headerClass: [Array, String, Object]
8066
8066
  },
8067
8067
  emits: [
8068
- ...Vl,
8068
+ ...Fl,
8069
8069
  "click",
8070
8070
  "afterShow",
8071
8071
  "afterHide"
@@ -8073,7 +8073,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8073
8073
  setup(i, { slots: e, emit: t }) {
8074
8074
  const { proxy: { $q: n } } = ze(), r = Gi(i, n), o = Y(
8075
8075
  i.modelValue !== null ? i.modelValue : i.defaultOpened
8076
- ), s = Y(null), l = km(), { show: a, hide: u, toggle: c } = Fl({ showing: o });
8076
+ ), s = Y(null), l = km(), { show: a, hide: u, toggle: c } = Nl({ showing: o });
8077
8077
  let h, f;
8078
8078
  const d = x(
8079
8079
  () => `q-expansion-item q-item-type q-expansion-item--${o.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${i.popup === !0 ? "popup" : "standard"}`
@@ -8125,7 +8125,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8125
8125
  t("afterHide");
8126
8126
  }
8127
8127
  function D() {
8128
- h === void 0 && (h = Ys()), o.value === !0 && (Nn[i.group] = h);
8128
+ h === void 0 && (h = Gs()), o.value === !0 && (Nn[i.group] = h);
8129
8129
  const V = ve(o, ($) => {
8130
8130
  $ === !0 ? Nn[i.group] = h : Nn[i.group] === h && delete Nn[i.group];
8131
8131
  }), F = ve(
@@ -8194,7 +8194,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8194
8194
  return b.value === !0 && (V.clickable = !0, V.onClick = q, Object.assign(
8195
8195
  V,
8196
8196
  p.value === !0 ? g.value : S.value
8197
- )), A(Gs, V, P);
8197
+ )), A($s, V, P);
8198
8198
  }
8199
8199
  function I() {
8200
8200
  return Rn(
@@ -8220,11 +8220,11 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8220
8220
  }, I)
8221
8221
  ];
8222
8222
  return i.expandSeparator === !0 && V.push(
8223
- A(su, {
8223
+ A(lu, {
8224
8224
  class: "q-expansion-item__border q-expansion-item__border--top absolute-top",
8225
8225
  dark: r.value
8226
8226
  }),
8227
- A(su, {
8227
+ A(lu, {
8228
8228
  class: "q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",
8229
8229
  dark: r.value
8230
8230
  })
@@ -8281,7 +8281,7 @@ const tf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8281
8281
  })) : []), m = { props: t, label: n, hint: r, errorMessage: o, required: s, fieldId: l, fieldGap: a, formContext: u, defaultOpened: c, showOptionalIndicator: h, quasarProps: f, properties: d, get QExpansionItem() {
8282
8282
  return q1;
8283
8283
  }, get FieldRenderer() {
8284
- return ql;
8284
+ return Bl;
8285
8285
  } };
8286
8286
  return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
8287
8287
  }
@@ -8356,7 +8356,7 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8356
8356
  inheritAttrs: !1,
8357
8357
  props: {
8358
8358
  ...Lm,
8359
- ...Il,
8359
+ ...Vl,
8360
8360
  ...ao,
8361
8361
  maxHeight: {
8362
8362
  type: String,
@@ -8377,12 +8377,12 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8377
8377
  anchor: {
8378
8378
  type: String,
8379
8379
  default: "bottom middle",
8380
- validator: tl
8380
+ validator: il
8381
8381
  },
8382
8382
  self: {
8383
8383
  type: String,
8384
8384
  default: "top middle",
8385
- validator: tl
8385
+ validator: il
8386
8386
  },
8387
8387
  offset: {
8388
8388
  type: Array,
@@ -8401,11 +8401,11 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8401
8401
  persistent: Boolean
8402
8402
  },
8403
8403
  emits: [
8404
- ...Vl
8404
+ ...Fl
8405
8405
  ],
8406
8406
  setup(i, { slots: e, emit: t, attrs: n }) {
8407
8407
  let r, o;
8408
- const s = ze(), { proxy: { $q: l } } = s, a = Y(null), u = Y(!1), c = x(() => il(i.anchor, l.lang.rtl)), h = x(() => il(i.self, l.lang.rtl)), f = x(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: b } = bc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: y } = Vm(i, U), { anchorEl: S, canShow: q, anchorEvents: C } = pc({ showing: u, configureAnchorEl: $ }), { show: L, hide: N } = Fl({
8408
+ const s = ze(), { proxy: { $q: l } } = s, a = Y(null), u = Y(!1), c = x(() => nl(i.anchor, l.lang.rtl)), h = x(() => nl(i.self, l.lang.rtl)), f = x(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: b } = bc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: y } = Vm(i, U), { anchorEl: S, canShow: q, anchorEvents: C } = pc({ showing: u, configureAnchorEl: $ }), { show: L, hide: N } = Nl({
8409
8409
  showing: u,
8410
8410
  canShow: q,
8411
8411
  handleShow: P,
@@ -8430,9 +8430,9 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8430
8430
  )
8431
8431
  );
8432
8432
  ve(G, (re) => {
8433
- (re === !0 ? Km : el)(z);
8433
+ (re === !0 ? Km : tl)(z);
8434
8434
  }), ht(() => {
8435
- el(z);
8435
+ tl(z);
8436
8436
  });
8437
8437
  }
8438
8438
  function P(z) {
@@ -8466,7 +8466,7 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8466
8466
  }
8467
8467
  function V(z) {
8468
8468
  if (l.platform.is.mobile === !0) {
8469
- $s(), document.body.classList.add("non-selectable");
8469
+ Js(), document.body.classList.add("non-selectable");
8470
8470
  const G = S.value, re = ["touchmove", "touchcancel", "touchend", "click"].map((ae) => [G, ae, "delayHide", "passiveCapture"]);
8471
8471
  nn(C, "tooltipTemp", re);
8472
8472
  }
@@ -8475,7 +8475,7 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8475
8475
  }, i.delay);
8476
8476
  }
8477
8477
  function F(z) {
8478
- l.platform.is.mobile === !0 && (Jn(C, "tooltipTemp"), $s(), setTimeout(() => {
8478
+ l.platform.is.mobile === !0 && (Jn(C, "tooltipTemp"), Js(), setTimeout(() => {
8479
8479
  document.body.classList.remove("non-selectable");
8480
8480
  }, 10)), p(() => {
8481
8481
  N(z);
@@ -8630,7 +8630,7 @@ const nf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8630
8630
  }, get QBtn() {
8631
8631
  return Lt;
8632
8632
  }, get FieldRenderer() {
8633
- return ql;
8633
+ return Bl;
8634
8634
  } };
8635
8635
  return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
8636
8636
  }
@@ -9149,17 +9149,17 @@ const of = /* @__PURE__ */ ii(X1, [["render", ax], ["__file", "/Users/zachsherbo
9149
9149
  function ux() {
9150
9150
  return Fo(bb);
9151
9151
  }
9152
- let lu = [], dg = [];
9152
+ let au = [], dg = [];
9153
9153
  (() => {
9154
9154
  let i = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
9155
9155
  for (let e = 0, t = 0; e < i.length; e++)
9156
- (e % 2 ? dg : lu).push(t = t + i[e]);
9156
+ (e % 2 ? dg : au).push(t = t + i[e]);
9157
9157
  })();
9158
9158
  function cx(i) {
9159
9159
  if (i < 768) return !1;
9160
- for (let e = 0, t = lu.length; ; ) {
9160
+ for (let e = 0, t = au.length; ; ) {
9161
9161
  let n = e + t >> 1;
9162
- if (i < lu[n]) t = n;
9162
+ if (i < au[n]) t = n;
9163
9163
  else if (i >= dg[n]) e = n + 1;
9164
9164
  else return !0;
9165
9165
  if (e == t) return !1;
@@ -9175,14 +9175,14 @@ function hx(i, e, t = !0, n = !0) {
9175
9175
  function mg(i, e, t) {
9176
9176
  if (e == i.length) return e;
9177
9177
  e && gg(i.charCodeAt(e)) && pg(i.charCodeAt(e - 1)) && e--;
9178
- let n = Ca(i, e);
9178
+ let n = Ma(i, e);
9179
9179
  for (e += af(n); e < i.length; ) {
9180
- let r = Ca(i, e);
9180
+ let r = Ma(i, e);
9181
9181
  if (n == lf || r == lf || t && cx(r))
9182
9182
  e += af(r), n = r;
9183
9183
  else if (sf(r)) {
9184
9184
  let o = 0, s = e - 2;
9185
- for (; s >= 0 && sf(Ca(i, s)); )
9185
+ for (; s >= 0 && sf(Ma(i, s)); )
9186
9186
  o++, s -= 2;
9187
9187
  if (o % 2 == 0) break;
9188
9188
  e += 2;
@@ -9199,7 +9199,7 @@ function fx(i, e, t) {
9199
9199
  }
9200
9200
  return 0;
9201
9201
  }
9202
- function Ca(i, e) {
9202
+ function Ma(i, e) {
9203
9203
  let t = i.charCodeAt(e);
9204
9204
  if (!pg(t) || e + 1 == i.length) return t;
9205
9205
  let n = i.charCodeAt(e + 1);
@@ -9632,7 +9632,7 @@ function Mc(i) {
9632
9632
  function Ni(i) {
9633
9633
  return i < 65536 ? 1 : 2;
9634
9634
  }
9635
- const au = /\r\n?|\n/;
9635
+ const uu = /\r\n?|\n/;
9636
9636
  var Jt = /* @__PURE__ */ function(i) {
9637
9637
  return i[i.Simple = 0] = "Simple", i[i.TrackDel = 1] = "TrackDel", i[i.TrackBefore = 2] = "TrackBefore", i[i.TrackAfter = 3] = "TrackAfter", i;
9638
9638
  }(Jt || (Jt = {}));
@@ -9698,7 +9698,7 @@ class Qi {
9698
9698
  reported separately.
9699
9699
  */
9700
9700
  iterChangedRanges(e, t = !1) {
9701
- uu(this, e, t);
9701
+ cu(this, e, t);
9702
9702
  }
9703
9703
  /**
9704
9704
  Get a description of the inverted form of these changes.
@@ -9726,7 +9726,7 @@ class Qi {
9726
9726
  in `this` happened before the ones in `other`.
9727
9727
  */
9728
9728
  mapDesc(e, t = !1) {
9729
- return e.empty ? this : cu(this, e, t);
9729
+ return e.empty ? this : hu(this, e, t);
9730
9730
  }
9731
9731
  mapPos(e, t = -1, n = Jt.Simple) {
9732
9732
  let r = 0, o = 0;
@@ -9807,10 +9807,10 @@ class St extends Qi {
9807
9807
  apply(e) {
9808
9808
  if (this.length != e.length)
9809
9809
  throw new RangeError("Applying change set to a document with the wrong length");
9810
- return uu(this, (t, n, r, o, s) => e = e.replace(r, r + (n - t), s), !1), e;
9810
+ return cu(this, (t, n, r, o, s) => e = e.replace(r, r + (n - t), s), !1), e;
9811
9811
  }
9812
9812
  mapDesc(e, t = !1) {
9813
- return cu(this, e, t, !0);
9813
+ return hu(this, e, t, !0);
9814
9814
  }
9815
9815
  /**
9816
9816
  Given the document as it existed _before_ the changes, return a
@@ -9856,7 +9856,7 @@ class St extends Qi {
9856
9856
  and can be used for collaborative editing.
9857
9857
  */
9858
9858
  map(e, t = !1) {
9859
- return e.empty ? this : cu(this, e, t, !0);
9859
+ return e.empty ? this : hu(this, e, t, !0);
9860
9860
  }
9861
9861
  /**
9862
9862
  Iterate over the changed ranges in the document, calling `f` for
@@ -9868,7 +9868,7 @@ class St extends Qi {
9868
9868
  separately.
9869
9869
  */
9870
9870
  iterChanges(e, t = !1) {
9871
- uu(this, e, t);
9871
+ cu(this, e, t);
9872
9872
  }
9873
9873
  /**
9874
9874
  Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
@@ -9941,7 +9941,7 @@ class St extends Qi {
9941
9941
  let { from: h, to: f = h, insert: d } = c;
9942
9942
  if (h > f || h < 0 || f > t)
9943
9943
  throw new RangeError(`Invalid change range ${h} to ${f} (in doc of length ${t})`);
9944
- let m = d ? typeof d == "string" ? Ne.of(d.split(n || au)) : d : Ne.empty, p = m.length;
9944
+ let m = d ? typeof d == "string" ? Ne.of(d.split(n || uu)) : d : Ne.empty, p = m.length;
9945
9945
  if (h == f && p == 0)
9946
9946
  return;
9947
9947
  h < s && a(), h > s && zt(r, h - s, -1), zt(r, f - h, p), Sn(o, r, m), s = f;
@@ -10006,7 +10006,7 @@ function Sn(i, e, t) {
10006
10006
  i.push(t);
10007
10007
  }
10008
10008
  }
10009
- function uu(i, e, t) {
10009
+ function cu(i, e, t) {
10010
10010
  let n = i.inserted;
10011
10011
  for (let r = 0, o = 0, s = 0; s < i.sections.length; ) {
10012
10012
  let l = i.sections[s++], a = i.sections[s++];
@@ -10020,7 +10020,7 @@ function uu(i, e, t) {
10020
10020
  }
10021
10021
  }
10022
10022
  }
10023
- function cu(i, e, t, n = !1) {
10023
+ function hu(i, e, t, n = !1) {
10024
10024
  let r = [], o = n ? [] : null, s = new So(i), l = new So(e);
10025
10025
  for (let a = -1; ; ) {
10026
10026
  if (s.done && l.len || l.done && s.len)
@@ -10394,7 +10394,7 @@ class Is {
10394
10394
  return h.values[s] = n(h), 1;
10395
10395
  },
10396
10396
  update(h, f) {
10397
- if (a && f.docChanged || u && (f.docChanged || f.selection) || hu(h, c)) {
10397
+ if (a && f.docChanged || u && (f.docChanged || f.selection) || fu(h, c)) {
10398
10398
  let d = n(h);
10399
10399
  if (l ? !cf(d, h.values[s], r) : !r(d, h.values[s]))
10400
10400
  return h.values[s] = d, 1;
@@ -10404,7 +10404,7 @@ class Is {
10404
10404
  reconfigure: (h, f) => {
10405
10405
  let d, m = f.config.address[o];
10406
10406
  if (m != null) {
10407
- let p = ol(f, m);
10407
+ let p = sl(f, m);
10408
10408
  if (this.dependencies.every((g) => g instanceof de ? f.facet(g) === h.facet(g) : g instanceof Mt ? f.field(g, !1) == h.field(g, !1) : !0) || (l ? cf(d = n(h), p, r) : r(d = n(h), p)))
10409
10409
  return h.values[s] = p, 0;
10410
10410
  } else
@@ -10422,7 +10422,7 @@ function cf(i, e, t) {
10422
10422
  return !1;
10423
10423
  return !0;
10424
10424
  }
10425
- function hu(i, e) {
10425
+ function fu(i, e) {
10426
10426
  let t = !1;
10427
10427
  for (let n of e)
10428
10428
  ho(i, n) & 1 && (t = !0);
@@ -10433,7 +10433,7 @@ function vx(i, e, t) {
10433
10433
  function l(a) {
10434
10434
  let u = [];
10435
10435
  for (let c = 0; c < n.length; c++) {
10436
- let h = ol(a, n[c]);
10436
+ let h = sl(a, n[c]);
10437
10437
  if (r[c] == 2)
10438
10438
  for (let f of h)
10439
10439
  u.push(f);
@@ -10449,13 +10449,13 @@ function vx(i, e, t) {
10449
10449
  return a.values[s] = l(a), 1;
10450
10450
  },
10451
10451
  update(a, u) {
10452
- if (!hu(a, o))
10452
+ if (!fu(a, o))
10453
10453
  return 0;
10454
10454
  let c = l(a);
10455
10455
  return e.compare(c, a.values[s]) ? 0 : (a.values[s] = c, 1);
10456
10456
  },
10457
10457
  reconfigure(a, u) {
10458
- let c = hu(a, n), h = u.config.facets[e.id], f = u.facet(e);
10458
+ let c = fu(a, n), h = u.config.facets[e.id], f = u.facet(e);
10459
10459
  if (h && !c && Oc(t, h))
10460
10460
  return a.values[s] = f, 0;
10461
10461
  let d = l(a);
@@ -10554,7 +10554,7 @@ class zo {
10554
10554
  configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
10555
10555
  */
10556
10556
  of(e) {
10557
- return new fu(this, e);
10557
+ return new du(this, e);
10558
10558
  }
10559
10559
  /**
10560
10560
  Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
@@ -10571,12 +10571,12 @@ class zo {
10571
10571
  return e.config.compartments.get(this);
10572
10572
  }
10573
10573
  }
10574
- class fu {
10574
+ class du {
10575
10575
  constructor(e, t) {
10576
10576
  this.compartment = e, this.inner = t;
10577
10577
  }
10578
10578
  }
10579
- class rl {
10579
+ class ol {
10580
10580
  constructor(e, t, n, r, o, s) {
10581
10581
  for (this.base = e, this.compartments = t, this.dynamicSlots = n, this.address = r, this.staticValues = o, this.facets = s, this.statusTemplate = []; this.statusTemplate.length < n.length; )
10582
10582
  this.statusTemplate.push(
@@ -10615,7 +10615,7 @@ class rl {
10615
10615
  }
10616
10616
  }
10617
10617
  let h = u.map((f) => f(l));
10618
- return new rl(e, s, h, l, a, o);
10618
+ return new ol(e, s, h, l, a, o);
10619
10619
  }
10620
10620
  }
10621
10621
  function bx(i, e, t) {
@@ -10626,12 +10626,12 @@ function bx(i, e, t) {
10626
10626
  if (a <= l)
10627
10627
  return;
10628
10628
  let u = n[a].indexOf(s);
10629
- u > -1 && n[a].splice(u, 1), s instanceof fu && t.delete(s.compartment);
10629
+ u > -1 && n[a].splice(u, 1), s instanceof du && t.delete(s.compartment);
10630
10630
  }
10631
10631
  if (r.set(s, l), Array.isArray(s))
10632
10632
  for (let u of s)
10633
10633
  o(u, l);
10634
- else if (s instanceof fu) {
10634
+ else if (s instanceof du) {
10635
10635
  if (t.has(s.compartment))
10636
10636
  throw new RangeError("Duplicate use of compartment in extensions");
10637
10637
  let u = e.get(s.compartment) || s.inner;
@@ -10663,10 +10663,10 @@ function ho(i, e) {
10663
10663
  let r = i.computeSlot(i, i.config.dynamicSlots[t]);
10664
10664
  return i.status[t] = 2 | r;
10665
10665
  }
10666
- function ol(i, e) {
10666
+ function sl(i, e) {
10667
10667
  return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
10668
10668
  }
10669
- const wg = /* @__PURE__ */ de.define(), du = /* @__PURE__ */ de.define({
10669
+ const wg = /* @__PURE__ */ de.define(), mu = /* @__PURE__ */ de.define({
10670
10670
  combine: (i) => i.some((e) => e),
10671
10671
  static: !0
10672
10672
  }), Sg = /* @__PURE__ */ de.define({
@@ -10862,7 +10862,7 @@ function Tg(i, e, t) {
10862
10862
  scrollIntoView: i.scrollIntoView || e.scrollIntoView
10863
10863
  };
10864
10864
  }
10865
- function mu(i, e, t) {
10865
+ function gu(i, e, t) {
10866
10866
  let n = e.selection, r = Or(e.annotations);
10867
10867
  return e.userEvent && (r = r.concat(Ct.userEvent.of(e.userEvent))), {
10868
10868
  changes: e.changes instanceof St ? e.changes : St.of(e.changes || [], t, i.facet(Sg)),
@@ -10873,12 +10873,12 @@ function mu(i, e, t) {
10873
10873
  };
10874
10874
  }
10875
10875
  function Dg(i, e, t) {
10876
- let n = mu(i, e.length ? e[0] : {}, i.doc.length);
10876
+ let n = gu(i, e.length ? e[0] : {}, i.doc.length);
10877
10877
  e.length && e[0].filter === !1 && (t = !1);
10878
10878
  for (let o = 1; o < e.length; o++) {
10879
10879
  e[o].filter === !1 && (t = !1);
10880
10880
  let s = !!e[o].sequential;
10881
- n = Tg(n, mu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10881
+ n = Tg(n, gu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10882
10882
  }
10883
10883
  let r = Ct.create(i, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
10884
10884
  return Sx(t ? wx(r) : r);
@@ -10914,7 +10914,7 @@ function Sx(i) {
10914
10914
  let e = i.startState, t = e.facet(Ag), n = i;
10915
10915
  for (let r = t.length - 1; r >= 0; r--) {
10916
10916
  let o = t[r](i);
10917
- o && Object.keys(o).length && (n = Tg(n, mu(e, o, i.changes.newLength), !0));
10917
+ o && Object.keys(o).length && (n = Tg(n, gu(e, o, i.changes.newLength), !0));
10918
10918
  }
10919
10919
  return n == i ? i : Ct.create(e, i.changes, i.selection, n.effects, n.annotations, n.scrollIntoView);
10920
10920
  }
@@ -10926,14 +10926,14 @@ var st = /* @__PURE__ */ function(i) {
10926
10926
  return i[i.Word = 0] = "Word", i[i.Space = 1] = "Space", i[i.Other = 2] = "Other", i;
10927
10927
  }(st || (st = {}));
10928
10928
  const Mx = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
10929
- let gu;
10929
+ let pu;
10930
10930
  try {
10931
- gu = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
10931
+ pu = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
10932
10932
  } catch {
10933
10933
  }
10934
10934
  function Ax(i) {
10935
- if (gu)
10936
- return gu.test(i);
10935
+ if (pu)
10936
+ return pu.test(i);
10937
10937
  for (let e = 0; e < i.length; e++) {
10938
10938
  let t = i[e];
10939
10939
  if (/\w/.test(t) || t > "€" && (t.toUpperCase() != t.toLowerCase() || Mx.test(t)))
@@ -10967,7 +10967,7 @@ class Ee {
10967
10967
  throw new RangeError("Field is not present in this state");
10968
10968
  return;
10969
10969
  }
10970
- return ho(this, n), ol(this, n);
10970
+ return ho(this, n), sl(this, n);
10971
10971
  }
10972
10972
  /**
10973
10973
  Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
@@ -10995,8 +10995,8 @@ class Ee {
10995
10995
  for (let l of e.effects)
10996
10996
  l.is(zo.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => r.set(u, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(Me.reconfigure) ? (t = null, n = l.value) : l.is(Me.appendConfig) && (t = null, n = Or(n).concat(l.value));
10997
10997
  let o;
10998
- t ? o = e.startState.values.slice() : (t = rl.resolve(n, r, this), o = new Ee(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
10999
- let s = e.startState.facet(du) ? e.newSelection : e.newSelection.asSingle();
10998
+ t ? o = e.startState.values.slice() : (t = ol.resolve(n, r, this), o = new Ee(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
10999
+ let s = e.startState.facet(mu) ? e.newSelection : e.newSelection.asSingle();
11000
11000
  new Ee(t, e.newDoc, s, o, (l, a) => a.update(l, e), e);
11001
11001
  }
11002
11002
  /**
@@ -11049,7 +11049,7 @@ class Ee {
11049
11049
  [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
11050
11050
  */
11051
11051
  toText(e) {
11052
- return Ne.of(e.split(this.facet(Ee.lineSeparator) || au));
11052
+ return Ne.of(e.split(this.facet(Ee.lineSeparator) || uu));
11053
11053
  }
11054
11054
  /**
11055
11055
  Return the given range of the document as a string.
@@ -11062,7 +11062,7 @@ class Ee {
11062
11062
  */
11063
11063
  facet(e) {
11064
11064
  let t = this.config.address[e.id];
11065
- return t == null ? e.default : (ho(this, t), ol(this, t));
11065
+ return t == null ? e.default : (ho(this, t), sl(this, t));
11066
11066
  }
11067
11067
  /**
11068
11068
  Convert this state to a JSON-serializable object. When custom
@@ -11111,8 +11111,8 @@ class Ee {
11111
11111
  transactions.
11112
11112
  */
11113
11113
  static create(e = {}) {
11114
- let t = rl.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || au)), r = e.selection ? e.selection instanceof Q ? e.selection : Q.single(e.selection.anchor, e.selection.head) : Q.single(0);
11115
- return xg(r, n.length), t.staticFacet(du) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11114
+ let t = ol.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || uu)), r = e.selection ? e.selection instanceof Q ? e.selection : Q.single(e.selection.anchor, e.selection.head) : Q.single(0);
11115
+ return xg(r, n.length), t.staticFacet(mu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11116
11116
  }
11117
11117
  /**
11118
11118
  The size (in columns) of a tab in the document, determined by
@@ -11219,7 +11219,7 @@ class Ee {
11219
11219
  return s == l ? null : Q.range(s + n, l + n);
11220
11220
  }
11221
11221
  }
11222
- Ee.allowMultipleSelections = du;
11222
+ Ee.allowMultipleSelections = mu;
11223
11223
  Ee.tabSize = /* @__PURE__ */ de.define({
11224
11224
  combine: (i) => i.length ? i[0] : 4
11225
11225
  });
@@ -11267,13 +11267,13 @@ class nr {
11267
11267
  Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
11268
11268
  */
11269
11269
  range(e, t = e) {
11270
- return pu.create(e, t, this);
11270
+ return vu.create(e, t, this);
11271
11271
  }
11272
11272
  }
11273
11273
  nr.prototype.startSide = nr.prototype.endSide = 0;
11274
11274
  nr.prototype.point = !1;
11275
11275
  nr.prototype.mapMode = Jt.TrackDel;
11276
- let pu = class Pg {
11276
+ let vu = class Pg {
11277
11277
  constructor(e, t, n) {
11278
11278
  this.from = e, this.to = t, this.value = n;
11279
11279
  }
@@ -11284,7 +11284,7 @@ let pu = class Pg {
11284
11284
  return new Pg(e, t, n);
11285
11285
  }
11286
11286
  };
11287
- function vu(i, e) {
11287
+ function bu(i, e) {
11288
11288
  return i.from - e.from || i.value.startSide - e.value.startSide;
11289
11289
  }
11290
11290
  class Tc {
@@ -11374,14 +11374,14 @@ class Le {
11374
11374
  let { add: t = [], sort: n = !1, filterFrom: r = 0, filterTo: o = this.length } = e, s = e.filter;
11375
11375
  if (t.length == 0 && !s)
11376
11376
  return this;
11377
- if (n && (t = t.slice().sort(vu)), this.isEmpty)
11377
+ if (n && (t = t.slice().sort(bu)), this.isEmpty)
11378
11378
  return t.length ? Le.of(t) : this;
11379
11379
  let l = new qg(this, null, -1).goto(0), a = 0, u = [], c = new un();
11380
11380
  for (; l.value || a < t.length; )
11381
11381
  if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
11382
11382
  let h = t[a++];
11383
11383
  c.addInner(h.from, h.to, h.value) || u.push(h);
11384
- } else l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(l.chunkIndex) < t[a].from) && (!s || r > this.chunkEnd(l.chunkIndex) || o < this.chunkPos[l.chunkIndex]) && c.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!s || r > l.to || o < l.from || s(l.from, l.to, l.value)) && (c.addInner(l.from, l.to, l.value) || u.push(pu.create(l.from, l.to, l.value))), l.next());
11384
+ } else l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(l.chunkIndex) < t[a].from) && (!s || r > this.chunkEnd(l.chunkIndex) || o < this.chunkPos[l.chunkIndex]) && c.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!s || r > l.to || o < l.from || s(l.from, l.to, l.value)) && (c.addInner(l.from, l.to, l.value) || u.push(vu.create(l.from, l.to, l.value))), l.next());
11385
11385
  return c.finishInner(this.nextLayer.isEmpty && !u.length ? Le.empty : this.nextLayer.update({ add: u, filter: s, filterFrom: r, filterTo: o }));
11386
11386
  }
11387
11387
  /**
@@ -11460,7 +11460,7 @@ class Le {
11460
11460
  return !0;
11461
11461
  let l = hf(o, s), a = new Xr(o, l, 0).goto(n), u = new Xr(s, l, 0).goto(n);
11462
11462
  for (; ; ) {
11463
- if (a.to != u.to || !bu(a.active, u.active) || a.point && (!u.point || !a.point.eq(u.point)))
11463
+ if (a.to != u.to || !yu(a.active, u.active) || a.point && (!u.point || !a.point.eq(u.point)))
11464
11464
  return !1;
11465
11465
  if (a.to > r)
11466
11466
  return !0;
@@ -11496,7 +11496,7 @@ class Le {
11496
11496
  */
11497
11497
  static of(e, t = !1) {
11498
11498
  let n = new un();
11499
- for (let r of e instanceof pu ? [e] : t ? Tx(e) : e)
11499
+ for (let r of e instanceof vu ? [e] : t ? Tx(e) : e)
11500
11500
  n.add(r.from, r.to, r.value);
11501
11501
  return n.finish();
11502
11502
  }
@@ -11518,8 +11518,8 @@ function Tx(i) {
11518
11518
  if (i.length > 1)
11519
11519
  for (let e = i[0], t = 1; t < i.length; t++) {
11520
11520
  let n = i[t];
11521
- if (vu(e, n) > 0)
11522
- return i.slice().sort(vu);
11521
+ if (bu(e, n) > 0)
11522
+ return i.slice().sort(bu);
11523
11523
  e = n;
11524
11524
  }
11525
11525
  return i;
@@ -11665,14 +11665,14 @@ class Co {
11665
11665
  for (let n of this.heap)
11666
11666
  n.goto(e, t);
11667
11667
  for (let n = this.heap.length >> 1; n >= 0; n--)
11668
- Ma(this.heap, n);
11668
+ Aa(this.heap, n);
11669
11669
  return this.next(), this;
11670
11670
  }
11671
11671
  forward(e, t) {
11672
11672
  for (let n of this.heap)
11673
11673
  n.forward(e, t);
11674
11674
  for (let n = this.heap.length >> 1; n >= 0; n--)
11675
- Ma(this.heap, n);
11675
+ Aa(this.heap, n);
11676
11676
  (this.to - e || this.value.endSide - t) < 0 && this.next();
11677
11677
  }
11678
11678
  next() {
@@ -11680,11 +11680,11 @@ class Co {
11680
11680
  this.from = this.to = 1e9, this.value = null, this.rank = -1;
11681
11681
  else {
11682
11682
  let e = this.heap[0];
11683
- this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), Ma(this.heap, 0);
11683
+ this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), Aa(this.heap, 0);
11684
11684
  }
11685
11685
  }
11686
11686
  }
11687
- function Ma(i, e) {
11687
+ function Aa(i, e) {
11688
11688
  for (let t = i[e]; ; ) {
11689
11689
  let n = (e << 1) + 1;
11690
11690
  if (n >= i.length)
@@ -11776,12 +11776,12 @@ function ff(i, e, t, n, r, o) {
11776
11776
  let s = n + r, l = n, a = n - e;
11777
11777
  for (; ; ) {
11778
11778
  let u = i.to + a - t.to, c = u || i.endSide - t.endSide, h = c < 0 ? i.to + a : t.to, f = Math.min(h, s);
11779
- if (i.point || t.point ? i.point && t.point && (i.point == t.point || i.point.eq(t.point)) && bu(i.activeForPoint(i.to), t.activeForPoint(t.to)) || o.comparePoint(l, f, i.point, t.point) : f > l && !bu(i.active, t.active) && o.compareRange(l, f, i.active, t.active), h > s)
11779
+ if (i.point || t.point ? i.point && t.point && (i.point == t.point || i.point.eq(t.point)) && yu(i.activeForPoint(i.to), t.activeForPoint(t.to)) || o.comparePoint(l, f, i.point, t.point) : f > l && !yu(i.active, t.active) && o.compareRange(l, f, i.active, t.active), h > s)
11780
11780
  break;
11781
11781
  (u || i.openEnd != t.openEnd) && o.boundChange && o.boundChange(h), l = h, c <= 0 && i.next(), c >= 0 && t.next();
11782
11782
  }
11783
11783
  }
11784
- function bu(i, e) {
11784
+ function yu(i, e) {
11785
11785
  if (i.length != e.length)
11786
11786
  return !1;
11787
11787
  for (let t = 0; t < i.length; t++)
@@ -11811,7 +11811,7 @@ function Qr(i, e, t = i.length) {
11811
11811
  i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r = Vt(i, r));
11812
11812
  return n;
11813
11813
  }
11814
- function yu(i, e, t, n) {
11814
+ function xu(i, e, t, n) {
11815
11815
  for (let r = 0, o = 0; ; ) {
11816
11816
  if (o >= e)
11817
11817
  return r;
@@ -11821,7 +11821,7 @@ function yu(i, e, t, n) {
11821
11821
  }
11822
11822
  return n === !0 ? -1 : i.length;
11823
11823
  }
11824
- const xu = "ͼ", mf = typeof Symbol > "u" ? "__" + xu : Symbol.for(xu), ku = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), gf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
11824
+ const ku = "ͼ", mf = typeof Symbol > "u" ? "__" + ku : Symbol.for(ku), wu = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), gf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
11825
11825
  class Dn {
11826
11826
  // :: (Object<Style>, ?{finish: ?(string) → string})
11827
11827
  // Create a style module from the given spec.
@@ -11864,7 +11864,7 @@ class Dn {
11864
11864
  // Generate a new unique CSS class name.
11865
11865
  static newName() {
11866
11866
  let e = gf[mf] || 1;
11867
- return gf[mf] = e + 1, xu + e.toString(36);
11867
+ return gf[mf] = e + 1, ku + e.toString(36);
11868
11868
  }
11869
11869
  // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
11870
11870
  //
@@ -11883,7 +11883,7 @@ class Dn {
11883
11883
  // If a Content Security Policy nonce is provided, it is added to
11884
11884
  // the `<style>` tag generated by the library.
11885
11885
  static mount(e, t, n) {
11886
- let r = e[ku], o = n && n.nonce;
11886
+ let r = e[wu], o = n && n.nonce;
11887
11887
  r ? o && r.setNonce(o) : r = new Dx(e, o), r.mount(Array.isArray(t) ? t : [t], e);
11888
11888
  }
11889
11889
  }
@@ -11893,11 +11893,11 @@ class Dx {
11893
11893
  let n = e.ownerDocument || e, r = n.defaultView;
11894
11894
  if (!e.head && e.adoptedStyleSheets && r.CSSStyleSheet) {
11895
11895
  let o = pf.get(n);
11896
- if (o) return e[ku] = o;
11896
+ if (o) return e[wu] = o;
11897
11897
  this.sheet = new r.CSSStyleSheet(), pf.set(n, this);
11898
11898
  } else
11899
11899
  this.styleTag = n.createElement("style"), t && this.styleTag.setAttribute("nonce", t);
11900
- this.modules = [], e[ku] = this;
11900
+ this.modules = [], e[wu] = this;
11901
11901
  }
11902
11902
  mount(e, t) {
11903
11903
  let n = this.sheet, r = 0, o = 0;
@@ -12010,7 +12010,7 @@ for (var It = 0; It < 10; It++) Pn[48 + It] = Pn[96 + It] = String(It);
12010
12010
  for (var It = 1; It <= 24; It++) Pn[It + 111] = "F" + It;
12011
12011
  for (var It = 65; It <= 90; It++)
12012
12012
  Pn[It] = String.fromCharCode(It + 32), Mo[It] = String.fromCharCode(It);
12013
- for (var Aa in Pn) Mo.hasOwnProperty(Aa) || (Mo[Aa] = Pn[Aa]);
12013
+ for (var Oa in Pn) Mo.hasOwnProperty(Oa) || (Mo[Oa] = Pn[Oa]);
12014
12014
  function Bx(i) {
12015
12015
  var e = Px && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || qx && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? Mo : Pn)[i.keyCode] || i.key || "Unidentified";
12016
12016
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
@@ -12039,37 +12039,37 @@ function Bg(i, e) {
12039
12039
  else
12040
12040
  throw new RangeError("Unsupported child node: " + e);
12041
12041
  }
12042
- let Yt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, wu = typeof document < "u" ? document : { documentElement: { style: {} } };
12043
- const Su = /* @__PURE__ */ /Edge\/(\d+)/.exec(Yt.userAgent), _g = /* @__PURE__ */ /MSIE \d/.test(Yt.userAgent), Cu = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt.userAgent), Hl = !!(_g || Cu || Su), vf = !Hl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Yt.userAgent), Oa = !Hl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Yt.userAgent), _x = "webkitFontSmoothing" in wu.documentElement.style, Mu = !Hl && /* @__PURE__ */ /Apple Computer/.test(Yt.vendor), bf = Mu && (/* @__PURE__ */ /Mobile\/\w+/.test(Yt.userAgent) || Yt.maxTouchPoints > 2);
12042
+ let Yt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Su = typeof document < "u" ? document : { documentElement: { style: {} } };
12043
+ const Cu = /* @__PURE__ */ /Edge\/(\d+)/.exec(Yt.userAgent), _g = /* @__PURE__ */ /MSIE \d/.test(Yt.userAgent), Mu = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt.userAgent), zl = !!(_g || Mu || Cu), vf = !zl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Yt.userAgent), Ta = !zl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Yt.userAgent), _x = "webkitFontSmoothing" in Su.documentElement.style, Au = !zl && /* @__PURE__ */ /Apple Computer/.test(Yt.vendor), bf = Au && (/* @__PURE__ */ /Mobile\/\w+/.test(Yt.userAgent) || Yt.maxTouchPoints > 2);
12044
12044
  var se = {
12045
12045
  mac: bf || /* @__PURE__ */ /Mac/.test(Yt.platform),
12046
12046
  windows: /* @__PURE__ */ /Win/.test(Yt.platform),
12047
12047
  linux: /* @__PURE__ */ /Linux|X11/.test(Yt.platform),
12048
- ie: Hl,
12049
- ie_version: _g ? wu.documentMode || 6 : Cu ? +Cu[1] : Su ? +Su[1] : 0,
12048
+ ie: zl,
12049
+ ie_version: _g ? Su.documentMode || 6 : Mu ? +Mu[1] : Cu ? +Cu[1] : 0,
12050
12050
  gecko: vf,
12051
12051
  gecko_version: vf ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Yt.userAgent) || [0, 0])[1] : 0,
12052
- chrome: !!Oa,
12053
- chrome_version: Oa ? +Oa[1] : 0,
12052
+ chrome: !!Ta,
12053
+ chrome_version: Ta ? +Ta[1] : 0,
12054
12054
  ios: bf,
12055
12055
  android: /* @__PURE__ */ /Android\b/.test(Yt.userAgent),
12056
12056
  webkit_version: _x ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(Yt.userAgent) || [0, 0])[1] : 0,
12057
- safari: Mu,
12058
- safari_version: Mu ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(Yt.userAgent) || [0, 0])[1] : 0,
12059
- tabSize: wu.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
12057
+ safari: Au,
12058
+ safari_version: Au ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(Yt.userAgent) || [0, 0])[1] : 0,
12059
+ tabSize: Su.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
12060
12060
  };
12061
12061
  function Ao(i) {
12062
12062
  let e;
12063
12063
  return i.nodeType == 11 ? e = i.getSelection ? i : i.ownerDocument : e = i, e.getSelection();
12064
12064
  }
12065
- function Au(i, e) {
12065
+ function Ou(i, e) {
12066
12066
  return e ? i == e || i.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
12067
12067
  }
12068
12068
  function Vs(i, e) {
12069
12069
  if (!e.anchorNode)
12070
12070
  return !1;
12071
12071
  try {
12072
- return Au(i, e.anchorNode);
12072
+ return Ou(i, e.anchorNode);
12073
12073
  } catch {
12074
12074
  return !1;
12075
12075
  }
@@ -12085,7 +12085,7 @@ function rr(i) {
12085
12085
  if (i = i.previousSibling, !i)
12086
12086
  return e;
12087
12087
  }
12088
- function sl(i) {
12088
+ function ll(i) {
12089
12089
  return i.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName);
12090
12090
  }
12091
12091
  function yf(i, e, t, n, r) {
@@ -12292,7 +12292,7 @@ function Vg(i, e) {
12292
12292
  if (t.contentEditable == "false")
12293
12293
  return null;
12294
12294
  t = t.childNodes[n - 1], n = Ki(t);
12295
- } else if (t.parentNode && !sl(t))
12295
+ } else if (t.parentNode && !ll(t))
12296
12296
  n = rr(t), t = t.parentNode;
12297
12297
  else
12298
12298
  return null;
@@ -12306,7 +12306,7 @@ function Fg(i, e) {
12306
12306
  if (t.contentEditable == "false")
12307
12307
  return null;
12308
12308
  t = t.childNodes[n], n = 0;
12309
- } else if (t.parentNode && !sl(t))
12309
+ } else if (t.parentNode && !ll(t))
12310
12310
  n = rr(t) + 1, t = t.parentNode;
12311
12311
  else
12312
12312
  return null;
@@ -12798,13 +12798,13 @@ function jx(i, e) {
12798
12798
  let t = i.coordsAt(0, 1), n = e.coordsAt(0, 1);
12799
12799
  return t && n && n.top < t.bottom;
12800
12800
  }
12801
- function Ou(i, e) {
12801
+ function Tu(i, e) {
12802
12802
  for (let t in i)
12803
12803
  t == "class" && e.class ? e.class += " " + i.class : t == "style" && e.style ? e.style += ";" + i.style : e[t] = i[t];
12804
12804
  return e;
12805
12805
  }
12806
12806
  const wf = /* @__PURE__ */ Object.create(null);
12807
- function ll(i, e, t) {
12807
+ function al(i, e, t) {
12808
12808
  if (i == e)
12809
12809
  return !0;
12810
12810
  i || (i = wf), e || (e = wf);
@@ -12816,7 +12816,7 @@ function ll(i, e, t) {
12816
12816
  return !1;
12817
12817
  return !0;
12818
12818
  }
12819
- function Tu(i, e, t) {
12819
+ function Du(i, e, t) {
12820
12820
  let n = !1;
12821
12821
  if (e)
12822
12822
  for (let r in e)
@@ -12995,7 +12995,7 @@ class Wo extends xe {
12995
12995
  }
12996
12996
  eq(e) {
12997
12997
  var t, n;
12998
- return this == e || e instanceof Wo && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && ll(this.attrs, e.attrs, "class");
12998
+ return this == e || e instanceof Wo && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && al(this.attrs, e.attrs, "class");
12999
12999
  }
13000
13000
  range(e, t = e) {
13001
13001
  if (e >= t)
@@ -13009,7 +13009,7 @@ class Qo extends xe {
13009
13009
  super(-2e8, -2e8, null, e);
13010
13010
  }
13011
13011
  eq(e) {
13012
- return e instanceof Qo && this.spec.class == e.spec.class && ll(this.spec.attributes, e.spec.attributes);
13012
+ return e instanceof Qo && this.spec.class == e.spec.class && al(this.spec.attributes, e.spec.attributes);
13013
13013
  }
13014
13014
  range(e, t = e) {
13015
13015
  if (t != e)
@@ -13082,7 +13082,7 @@ class bt extends Ue {
13082
13082
  this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
13083
13083
  }
13084
13084
  setDeco(e) {
13085
- ll(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
13085
+ al(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
13086
13086
  }
13087
13087
  append(e, t) {
13088
13088
  Wg(this, e, t);
@@ -13090,7 +13090,7 @@ class bt extends Ue {
13090
13090
  // Only called when building a line view in ContentBuilder
13091
13091
  addLineDeco(e) {
13092
13092
  let t = e.spec.attributes, n = e.spec.class;
13093
- t && (this.attrs = Ou(t, this.attrs || {})), n && (this.attrs = Ou({ class: n }, this.attrs || {}));
13093
+ t && (this.attrs = Tu(t, this.attrs || {})), n && (this.attrs = Tu({ class: n }, this.attrs || {}));
13094
13094
  }
13095
13095
  domAtPos(e) {
13096
13096
  return jg(this, e);
@@ -13100,7 +13100,7 @@ class bt extends Ue {
13100
13100
  }
13101
13101
  sync(e, t) {
13102
13102
  var n;
13103
- this.dom ? this.flags & 4 && (Lg(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (Tu(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13103
+ this.dom ? this.flags & 4 && (Lg(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (Du(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13104
13104
  let r = this.dom.lastChild;
13105
13105
  for (; r && Ue.get(r) instanceof cn; )
13106
13106
  r = r.lastChild;
@@ -13139,7 +13139,7 @@ class bt extends Ue {
13139
13139
  return n;
13140
13140
  }
13141
13141
  become(e) {
13142
- return e instanceof bt && this.children.length == 0 && e.children.length == 0 && ll(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
13142
+ return e instanceof bt && this.children.length == 0 && e.children.length == 0 && al(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
13143
13143
  }
13144
13144
  covers() {
13145
13145
  return !0;
@@ -13203,7 +13203,7 @@ class sn extends Ue {
13203
13203
  }
13204
13204
  coordsAt(e, t) {
13205
13205
  let n = this.widget.coordsAt(this.dom, e, t);
13206
- return n || (this.widget instanceof Du ? null : jo(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13206
+ return n || (this.widget instanceof Pu ? null : jo(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13207
13207
  }
13208
13208
  destroy() {
13209
13209
  super.destroy(), this.dom && this.widget.destroy(this.dom);
@@ -13213,7 +13213,7 @@ class sn extends Ue {
13213
13213
  return t == n ? !1 : e < 0 ? t < 0 : n > 0;
13214
13214
  }
13215
13215
  }
13216
- class Du extends fn {
13216
+ class Pu extends fn {
13217
13217
  constructor(e) {
13218
13218
  super(), this.height = e;
13219
13219
  }
@@ -13339,10 +13339,10 @@ function Ug(i) {
13339
13339
  e.push(1 << +i[t]);
13340
13340
  return e;
13341
13341
  }
13342
- const Kx = /* @__PURE__ */ Ug("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Ux = /* @__PURE__ */ Ug("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Pu = /* @__PURE__ */ Object.create(null), Ei = [];
13342
+ const Kx = /* @__PURE__ */ Ug("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Ux = /* @__PURE__ */ Ug("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), qu = /* @__PURE__ */ Object.create(null), Ei = [];
13343
13343
  for (let i of ["()", "[]", "{}"]) {
13344
13344
  let e = /* @__PURE__ */ i.charCodeAt(0), t = /* @__PURE__ */ i.charCodeAt(1);
13345
- Pu[e] = t, Pu[t] = -e;
13345
+ qu[e] = t, qu[t] = -e;
13346
13346
  }
13347
13347
  function Yg(i) {
13348
13348
  return i <= 247 ? Kx[i] : 1424 <= i && i <= 1524 ? 2 : 1536 <= i && i <= 1785 ? Ux[i - 1536] : 1774 <= i && i <= 2220 ? 4 : 8192 <= i && i <= 8204 ? 256 : 64336 <= i && i <= 65023 ? 4 : 1;
@@ -13431,7 +13431,7 @@ function $x(i, e, t, n, r) {
13431
13431
  for (let s = 0, l = 0, a = 0; s <= n.length; s++) {
13432
13432
  let u = s ? n[s - 1].to : e, c = s < n.length ? n[s].from : t;
13433
13433
  for (let h = u, f, d, m; h < c; h++)
13434
- if (d = Pu[f = i.charCodeAt(h)])
13434
+ if (d = qu[f = i.charCodeAt(h)])
13435
13435
  if (d < 0) {
13436
13436
  for (let p = l - 3; p >= 0; p -= 3)
13437
13437
  if (Ei[p + 1] == -d) {
@@ -13487,7 +13487,7 @@ function Jx(i, e, t, n) {
13487
13487
  }
13488
13488
  }
13489
13489
  }
13490
- function qu(i, e, t, n, r, o, s) {
13490
+ function Bu(i, e, t, n, r, o, s) {
13491
13491
  let l = n % 2 ? 2 : 1;
13492
13492
  if (n % 2 == r % 2)
13493
13493
  for (let a = e, u = 0; a < t; ) {
@@ -13519,7 +13519,7 @@ function qu(i, e, t, n, r, o, s) {
13519
13519
  else {
13520
13520
  p.from > a && s.push(new Cn(a, p.from, d));
13521
13521
  let g = p.direction == sr != !(d % 2);
13522
- Bu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.to;
13522
+ _u(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.to;
13523
13523
  }
13524
13524
  m = p.to;
13525
13525
  } else {
@@ -13527,7 +13527,7 @@ function qu(i, e, t, n, r, o, s) {
13527
13527
  break;
13528
13528
  m++;
13529
13529
  }
13530
- f ? qu(i, a, m, n + 1, r, f, s) : a < m && s.push(new Cn(a, m, d)), a = m;
13530
+ f ? Bu(i, a, m, n + 1, r, f, s) : a < m && s.push(new Cn(a, m, d)), a = m;
13531
13531
  }
13532
13532
  else
13533
13533
  for (let a = t, u = o.length; a > e; ) {
@@ -13559,7 +13559,7 @@ function qu(i, e, t, n, r, o, s) {
13559
13559
  else {
13560
13560
  p.to < a && s.push(new Cn(p.to, a, d));
13561
13561
  let g = p.direction == sr != !(d % 2);
13562
- Bu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.from;
13562
+ _u(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.from;
13563
13563
  }
13564
13564
  m = p.from;
13565
13565
  } else {
@@ -13567,12 +13567,12 @@ function qu(i, e, t, n, r, o, s) {
13567
13567
  break;
13568
13568
  m--;
13569
13569
  }
13570
- f ? qu(i, m, a, n + 1, r, f, s) : m < a && s.push(new Cn(m, a, d)), a = m;
13570
+ f ? Bu(i, m, a, n + 1, r, f, s) : m < a && s.push(new Cn(m, a, d)), a = m;
13571
13571
  }
13572
13572
  }
13573
- function Bu(i, e, t, n, r, o, s) {
13573
+ function _u(i, e, t, n, r, o, s) {
13574
13574
  let l = e % 2 ? 2 : 1;
13575
- Gx(i, r, o, n, l), $x(i, r, o, n, l), Jx(r, o, n, l), qu(i, r, o, e, t, n, s);
13575
+ Gx(i, r, o, n, l), $x(i, r, o, n, l), Jx(r, o, n, l), Bu(i, r, o, e, t, n, s);
13576
13576
  }
13577
13577
  function Xx(i, e, t) {
13578
13578
  if (!i)
@@ -13583,7 +13583,7 @@ function Xx(i, e, t) {
13583
13583
  for (; i.length > Ge.length; )
13584
13584
  Ge[Ge.length] = 256;
13585
13585
  let n = [], r = e == sr ? 0 : 1;
13586
- return Bu(i, r, r, t, 0, i.length, n), n;
13586
+ return _u(i, r, r, t, 0, i.length, n), n;
13587
13587
  }
13588
13588
  function $g(i) {
13589
13589
  return [new Cn(0, i, 0)];
@@ -13613,7 +13613,7 @@ function ek(i, e, t) {
13613
13613
  }
13614
13614
  return sr;
13615
13615
  }
13616
- const Xg = /* @__PURE__ */ de.define(), Zg = /* @__PURE__ */ de.define(), ep = /* @__PURE__ */ de.define(), tp = /* @__PURE__ */ de.define(), _u = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), qc = /* @__PURE__ */ de.define(), Bc = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define({
13616
+ const Xg = /* @__PURE__ */ de.define(), Zg = /* @__PURE__ */ de.define(), ep = /* @__PURE__ */ de.define(), tp = /* @__PURE__ */ de.define(), Ru = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), qc = /* @__PURE__ */ de.define(), Bc = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define({
13617
13617
  combine: (i) => i.some((e) => e)
13618
13618
  }), op = /* @__PURE__ */ de.define({
13619
13619
  combine: (i) => i.some((e) => e)
@@ -13678,7 +13678,7 @@ class ft {
13678
13678
  return ft.define((n, r) => new e(n, r), t);
13679
13679
  }
13680
13680
  }
13681
- class Ta {
13681
+ class Da {
13682
13682
  constructor(e) {
13683
13683
  this.spec = e, this.mustUpdate = null, this.value = null;
13684
13684
  }
@@ -13792,7 +13792,7 @@ class ki {
13792
13792
  }
13793
13793
  }
13794
13794
  }
13795
- class al {
13795
+ class ul {
13796
13796
  constructor(e, t, n) {
13797
13797
  this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = St.empty(this.startState.doc.length);
13798
13798
  for (let o of n)
@@ -13804,7 +13804,7 @@ class al {
13804
13804
  @internal
13805
13805
  */
13806
13806
  static create(e, t, n) {
13807
- return new al(e, t, n);
13807
+ return new ul(e, t, n);
13808
13808
  }
13809
13809
  /**
13810
13810
  Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or
@@ -13902,7 +13902,7 @@ class Cf extends Ue {
13902
13902
  let o = [];
13903
13903
  if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
13904
13904
  for (let s of this.children)
13905
- s instanceof sn && s.widget instanceof Du && o.push(s.dom);
13905
+ s instanceof sn && s.widget instanceof Pu && o.push(s.dom);
13906
13906
  r.updateGaps(o);
13907
13907
  }
13908
13908
  updateChildren(e, t, n) {
@@ -14150,7 +14150,7 @@ class Cf extends Ue {
14150
14150
  if (s > n) {
14151
14151
  let l = (t.lineBlockAt(s).bottom - t.lineBlockAt(n).top) / this.view.scaleY;
14152
14152
  e.push(xe.replace({
14153
- widget: new Du(l),
14153
+ widget: new Pu(l),
14154
14154
  block: !0,
14155
14155
  inclusive: !0,
14156
14156
  isBlockGap: !0
@@ -14323,7 +14323,7 @@ function ck(i, e) {
14323
14323
  function hk(i, e) {
14324
14324
  return e.top > i ? e.top - i : Math.max(0, i - e.bottom);
14325
14325
  }
14326
- function Da(i, e) {
14326
+ function Pa(i, e) {
14327
14327
  return i.top < e.bottom - 1 && i.bottom > e.top + 1;
14328
14328
  }
14329
14329
  function Mf(i, e) {
@@ -14332,17 +14332,17 @@ function Mf(i, e) {
14332
14332
  function Af(i, e) {
14333
14333
  return e > i.bottom ? { top: i.top, left: i.left, right: i.right, bottom: e } : i;
14334
14334
  }
14335
- function Ru(i, e, t) {
14335
+ function Eu(i, e, t) {
14336
14336
  let n, r, o, s, l = !1, a, u, c, h;
14337
14337
  for (let m = i.firstChild; m; m = m.nextSibling) {
14338
14338
  let p = Ir(m);
14339
14339
  for (let g = 0; g < p.length; g++) {
14340
14340
  let b = p[g];
14341
- r && Da(r, b) && (b = Mf(Af(b, r.bottom), r.top));
14341
+ r && Pa(r, b) && (b = Mf(Af(b, r.bottom), r.top));
14342
14342
  let k = ck(e, b), v = hk(t, b);
14343
14343
  if (k == 0 && v == 0)
14344
- return m.nodeType == 3 ? Of(m, e, t) : Ru(m, e, t);
14345
- (!n || s > v || s == v && o > k) && (n = m, r = b, o = k, s = v, l = k ? e < b.left ? g > 0 : g < p.length - 1 : !0), k == 0 ? t > b.bottom && (!c || c.bottom < b.bottom) ? (a = m, c = b) : t < b.top && (!h || h.top > b.top) && (u = m, h = b) : c && Da(c, b) ? c = Af(c, b.bottom) : h && Da(h, b) && (h = Mf(h, b.top));
14344
+ return m.nodeType == 3 ? Of(m, e, t) : Eu(m, e, t);
14345
+ (!n || s > v || s == v && o > k) && (n = m, r = b, o = k, s = v, l = k ? e < b.left ? g > 0 : g < p.length - 1 : !0), k == 0 ? t > b.bottom && (!c || c.bottom < b.bottom) ? (a = m, c = b) : t < b.top && (!h || h.top > b.top) && (u = m, h = b) : c && Pa(c, b) ? c = Af(c, b.bottom) : h && Pa(h, b) && (h = Mf(h, b.top));
14346
14346
  }
14347
14347
  }
14348
14348
  if (c && c.bottom >= t ? (n = a, r = c) : h && h.top <= t && (n = u, r = h), !n)
@@ -14351,7 +14351,7 @@ function Ru(i, e, t) {
14351
14351
  if (n.nodeType == 3)
14352
14352
  return Of(n, f, t);
14353
14353
  if (l && n.contentEditable != "false")
14354
- return Ru(n, f, t);
14354
+ return Eu(n, f, t);
14355
14355
  let d = Array.prototype.indexOf.call(i.childNodes, n) + (e >= (r.left + r.right) / 2 ? 1 : 0);
14356
14356
  return { node: i, offset: d };
14357
14357
  }
@@ -14415,7 +14415,7 @@ function dp(i, e, t, n = -1) {
14415
14415
  let y = bt.find(i.docView, d);
14416
14416
  if (!y)
14417
14417
  return f > a.top + a.height / 2 ? a.to : a.from;
14418
- ({ node: b, offset: k } = Ru(y.dom, c, h));
14418
+ ({ node: b, offset: k } = Eu(y.dom, c, h));
14419
14419
  }
14420
14420
  let v = i.docView.nearest(b);
14421
14421
  if (!v)
@@ -14433,7 +14433,7 @@ function Tf(i, e, t, n, r) {
14433
14433
  o += a * i.viewState.heightOracle.lineLength;
14434
14434
  }
14435
14435
  let s = i.state.sliceDoc(t.from, t.to);
14436
- return t.from + yu(s, o, i.state.tabSize);
14436
+ return t.from + xu(s, o, i.state.tabSize);
14437
14437
  }
14438
14438
  function mp(i, e, t) {
14439
14439
  let n, r = i;
@@ -14471,7 +14471,7 @@ function dk(i, e, t) {
14471
14471
  let n = i.nodeType == 1 ? i.getBoundingClientRect() : or(i, 0, Math.max(i.nodeValue.length, 1)).getBoundingClientRect();
14472
14472
  return t - n.left > 5;
14473
14473
  }
14474
- function Eu(i, e, t) {
14474
+ function Lu(i, e, t) {
14475
14475
  let n = i.lineBlockAt(e);
14476
14476
  if (Array.isArray(n.type)) {
14477
14477
  let r;
@@ -14489,7 +14489,7 @@ function Eu(i, e, t) {
14489
14489
  return n;
14490
14490
  }
14491
14491
  function mk(i, e, t, n) {
14492
- let r = Eu(i, e.head, e.assoc || -1), o = !n || r.type != Zt.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
14492
+ let r = Lu(i, e.head, e.assoc || -1), o = !n || r.type != Zt.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
14493
14493
  if (o) {
14494
14494
  let s = i.dom.getBoundingClientRect(), l = i.textDirectionAt(r.from), a = i.posAtCoords({
14495
14495
  x: t == (l == ot.LTR) ? s.right - 1 : s.left + 1,
@@ -14577,7 +14577,7 @@ function gp(i, e) {
14577
14577
  }
14578
14578
  return t ? Q.create(t, e.mainIndex) : e;
14579
14579
  }
14580
- function Pa(i, e, t) {
14580
+ function qa(i, e, t) {
14581
14581
  let n = go(i.state.facet(Ko).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
14582
14582
  return n == t.from ? t : Q.cursor(n, n < t.from ? 1 : -1);
14583
14583
  }
@@ -14604,7 +14604,7 @@ class vk {
14604
14604
  if (s == t)
14605
14605
  break;
14606
14606
  let l = Ue.get(r), a = Ue.get(s);
14607
- (l && a ? l.breakAfter : (l ? l.breakAfter : sl(r)) || sl(s) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > o) && !yk(s, t) && this.lineBreak(), r = s;
14607
+ (l && a ? l.breakAfter : (l ? l.breakAfter : ll(r)) || ll(s) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > o) && !yk(s, t) && this.lineBreak(), r = s;
14608
14608
  }
14609
14609
  return this.findPointBefore(n, t), this;
14610
14610
  }
@@ -14681,7 +14681,7 @@ class xk {
14681
14681
  let l = o || s ? [] : wk(e), a = new vk(l, e.state);
14682
14682
  a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = Sk(l, this.bounds.from);
14683
14683
  } else {
14684
- let l = e.observer.selectionRange, a = o && o.node == l.focusNode && o.offset == l.focusOffset || !Au(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), u = s && s.node == l.anchorNode && s.offset == l.anchorOffset || !Au(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset), c = e.viewport;
14684
+ let l = e.observer.selectionRange, a = o && o.node == l.focusNode && o.offset == l.focusOffset || !Ou(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), u = s && s.node == l.anchorNode && s.offset == l.anchorOffset || !Ou(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset), c = e.viewport;
14685
14685
  if ((se.ios || se.chrome) && e.state.selection.main.empty && a != u && (c.from > 0 || c.to < e.state.doc.length)) {
14686
14686
  let h = Math.min(a, u), f = Math.max(a, u), d = c.from - h, m = c.to - f;
14687
14687
  (d == 0 || d == 1 || h == 0) && (m == 0 || m == -1 || f == e.state.doc.length) && (a = 0, u = e.state.doc.length);
@@ -15013,15 +15013,15 @@ function _k(i) {
15013
15013
  i.focus(), t.remove(), kp(i, t.value);
15014
15014
  }, 50);
15015
15015
  }
15016
- function zl(i, e, t) {
15016
+ function jl(i, e, t) {
15017
15017
  for (let n of i.facet(e))
15018
15018
  t = n(t, i);
15019
15019
  return t;
15020
15020
  }
15021
15021
  function kp(i, e) {
15022
- e = zl(i.state, qc, e);
15022
+ e = jl(i.state, qc, e);
15023
15023
  let { state: t } = i, n, r = 1, o = t.toText(e), s = o.lines == t.selection.ranges.length;
15024
- if (Lu != null && t.selection.ranges.every((a) => a.empty) && Lu == o.toString()) {
15024
+ if (Iu != null && t.selection.ranges.every((a) => a.empty) && Iu == o.toString()) {
15025
15025
  let a = -1;
15026
15026
  n = t.changeByRange((u) => {
15027
15027
  let c = t.doc.lineAt(u.from);
@@ -15149,11 +15149,11 @@ Di.dragstart = (i, e) => {
15149
15149
  }
15150
15150
  }
15151
15151
  let { inputState: n } = i;
15152
- return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", zl(i.state, Bc, i.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
15152
+ return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", jl(i.state, Bc, i.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
15153
15153
  };
15154
15154
  Di.dragend = (i) => (i.inputState.draggedContent = null, !1);
15155
15155
  function Vf(i, e, t, n) {
15156
- if (t = zl(i.state, qc, t), !t)
15156
+ if (t = jl(i.state, qc, t), !t)
15157
15157
  return;
15158
15158
  let r = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: o } = i.inputState, s = n && o && Pk(i, e) ? { from: o.from, to: o.to } : null, l = { from: r, insert: t }, a = i.state.changes(s ? [s, l] : l);
15159
15159
  i.focus(), i.dispatch({
@@ -15214,14 +15214,14 @@ function Fk(i) {
15214
15214
  }
15215
15215
  n = !0;
15216
15216
  }
15217
- return { text: zl(i, Bc, e.join(i.lineBreak)), ranges: t, linewise: n };
15217
+ return { text: jl(i, Bc, e.join(i.lineBreak)), ranges: t, linewise: n };
15218
15218
  }
15219
- let Lu = null;
15219
+ let Iu = null;
15220
15220
  Di.copy = Di.cut = (i, e) => {
15221
15221
  let { text: t, ranges: n, linewise: r } = Fk(i.state);
15222
15222
  if (!t && !r)
15223
15223
  return !1;
15224
- Lu = r ? t : null, e.type == "cut" && !i.state.readOnly && i.dispatch({
15224
+ Iu = r ? t : null, e.type == "cut" && !i.state.readOnly && i.dispatch({
15225
15225
  changes: n,
15226
15226
  scrollIntoView: !0,
15227
15227
  userEvent: "delete.cut"
@@ -15425,7 +15425,7 @@ class ei {
15425
15425
  a = r[l - 1].fromA, c = r[l - 1].fromB, l--, a < f.from && (f = o.lineAt(a, it.ByPosNoHeight, n, 0, 0));
15426
15426
  c += f.from - a, a = f.from;
15427
15427
  let m = Lc.build(n.setDoc(s), e, c, h);
15428
- o = ul(o, o.replace(a, u, m));
15428
+ o = cl(o, o.replace(a, u, m));
15429
15429
  }
15430
15430
  return o.updateHeight(n, 0);
15431
15431
  }
@@ -15461,7 +15461,7 @@ class ei {
15461
15461
  return e[t - 1] == null ? (s = 1, t--) : e[t] == null && (s = 1, n++), new jk(ei.of(e.slice(0, t)), s, ei.of(e.slice(n)));
15462
15462
  }
15463
15463
  }
15464
- function ul(i, e) {
15464
+ function cl(i, e) {
15465
15465
  return i == e ? i : (i.constructor != e.constructor && (Nr = !0), e);
15466
15466
  }
15467
15467
  ei.prototype.size = 1;
@@ -15581,7 +15581,7 @@ class Et extends ei {
15581
15581
  }
15582
15582
  l <= o && s.push(null, new Et(o - l).updateHeight(e, l));
15583
15583
  let u = ei.of(s);
15584
- return (a < 0 || Math.abs(u.height - this.height) >= Ns || Math.abs(a - this.heightMetrics(e, t).perLine) >= Ns) && (Nr = !0), ul(this, u);
15584
+ return (a < 0 || Math.abs(u.height - this.height) >= Ns || Math.abs(a - this.heightMetrics(e, t).perLine) >= Ns) && (Nr = !0), cl(this, u);
15585
15585
  } else (n || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
15586
15586
  return this;
15587
15587
  }
@@ -15646,7 +15646,7 @@ class jk extends ei {
15646
15646
  e < n && this.left.decomposeRight(e, t), this.break && e < r && t.push(null), t.push(this.right);
15647
15647
  }
15648
15648
  balanced(e, t) {
15649
- return e.size > 2 * t.size || t.size > 2 * e.size ? ei.of(this.break ? [e, null, t] : [e, t]) : (this.left = ul(this.left, e), this.right = ul(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);
15649
+ return e.size > 2 * t.size || t.size > 2 * e.size ? ei.of(this.break ? [e, null, t] : [e, t]) : (this.left = cl(this.left, e), this.right = cl(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);
15650
15650
  }
15651
15651
  updateHeight(e, t = 0, n = !1, r) {
15652
15652
  let { left: o, right: s } = this, l = t + o.length + this.break, a = null;
@@ -15777,7 +15777,7 @@ function Gk(i, e) {
15777
15777
  bottom: t.bottom - (t.top + e)
15778
15778
  };
15779
15779
  }
15780
- class qa {
15780
+ class Ba {
15781
15781
  constructor(e, t, n, r) {
15782
15782
  this.from = e, this.to = t, this.size = n, this.displaySize = r;
15783
15783
  }
@@ -15930,7 +15930,7 @@ class jf {
15930
15930
  return e;
15931
15931
  let n = [];
15932
15932
  for (let r of e)
15933
- t.touchesRange(r.from, r.to) || n.push(new qa(t.mapPos(r.from), t.mapPos(r.to), r.size, r.displaySize));
15933
+ t.touchesRange(r.from, r.to) || n.push(new Ba(t.mapPos(r.from), t.mapPos(r.to), r.size, r.displaySize));
15934
15934
  return n;
15935
15935
  }
15936
15936
  // Computes positions in the viewport where the start or end of a
@@ -15961,7 +15961,7 @@ class jf {
15961
15961
  v > c && (h = v);
15962
15962
  }
15963
15963
  let b = this.gapSize(f, c, h, d), k = n || b < 2e6 ? b : 2e6;
15964
- g = new qa(c, h, b, k);
15964
+ g = new Ba(c, h, b, k);
15965
15965
  }
15966
15966
  l.push(g);
15967
15967
  }, u = (c) => {
@@ -16003,7 +16003,7 @@ class jf {
16003
16003
  return this.heightOracle.lineWrapping ? e.height * o : r.total * this.heightOracle.charWidth * o;
16004
16004
  }
16005
16005
  updateLineGaps(e) {
16006
- qa.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = xe.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
16006
+ Ba.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = xe.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
16007
16007
  }
16008
16008
  computeVisibleRanges(e) {
16009
16009
  let t = this.stateDeco;
@@ -16142,8 +16142,8 @@ function so(i, e) {
16142
16142
  let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
16143
16143
  return new Hi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => so(r, e)) : i._content);
16144
16144
  }
16145
- const bs = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Iu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Vu = /* @__PURE__ */ Dn.newName(), Op = /* @__PURE__ */ Dn.newName(), Tp = /* @__PURE__ */ Dn.newName(), Dp = { "&light": "." + Op, "&dark": "." + Tp };
16146
- function Fu(i, e, t) {
16145
+ const bs = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Vu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Fu = /* @__PURE__ */ Dn.newName(), Op = /* @__PURE__ */ Dn.newName(), Tp = /* @__PURE__ */ Dn.newName(), Dp = { "&light": "." + Op, "&dark": "." + Tp };
16146
+ function Nu(i, e, t) {
16147
16147
  return new Dn(e, {
16148
16148
  finish(n) {
16149
16149
  return /&/.test(n) ? n.replace(/&\w*/, (r) => {
@@ -16156,7 +16156,7 @@ function Fu(i, e, t) {
16156
16156
  }
16157
16157
  });
16158
16158
  }
16159
- const Zk = /* @__PURE__ */ Fu("." + Vu, {
16159
+ const Zk = /* @__PURE__ */ Nu("." + Fu, {
16160
16160
  "&": {
16161
16161
  position: "relative !important",
16162
16162
  boxSizing: "border-box",
@@ -16430,7 +16430,7 @@ const Zk = /* @__PURE__ */ Fu("." + Vu, {
16430
16430
  subtree: !0,
16431
16431
  attributes: !0,
16432
16432
  characterDataOldValue: !0
16433
- }, Ba = se.ie && se.ie_version <= 11;
16433
+ }, _a = se.ie && se.ie_version <= 11;
16434
16434
  class tw {
16435
16435
  constructor(e) {
16436
16436
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Ix(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
@@ -16438,7 +16438,7 @@ class tw {
16438
16438
  this.queue.push(n);
16439
16439
  (se.ie && se.ie_version <= 11 || se.ios && e.composing) && t.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
16440
16440
  }), window.EditContext && se.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
16441
- !(se.chrome && se.chrome_version < 126) && (this.editContext = new nw(e), e.state.facet(tn) && (e.contentDOM.editContext = this.editContext.editContext)), Ba && (this.onCharData = (t) => {
16441
+ !(se.chrome && se.chrome_version < 126) && (this.editContext = new nw(e), e.state.facet(tn) && (e.contentDOM.editContext = this.editContext.editContext)), _a && (this.onCharData = (t) => {
16442
16442
  this.queue.push({
16443
16443
  target: t.target,
16444
16444
  type: "characterData",
@@ -16535,10 +16535,10 @@ class tw {
16535
16535
  }
16536
16536
  }
16537
16537
  start() {
16538
- this.active || (this.observer.observe(this.dom, ew), Ba && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
16538
+ this.active || (this.observer.observe(this.dom, ew), _a && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
16539
16539
  }
16540
16540
  stop() {
16541
- this.active && (this.active = !1, this.observer.disconnect(), Ba && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
16541
+ this.active && (this.active = !1, this.observer.disconnect(), _a && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
16542
16542
  }
16543
16543
  // Throw away any pending changes
16544
16544
  clear() {
@@ -16883,7 +16883,7 @@ class le {
16883
16883
  var t;
16884
16884
  this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
16885
16885
  let { dispatch: n } = e;
16886
- this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Vx(e.parent) || document, this.viewState = new jf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(fs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xr).map((r) => new Ta(r));
16886
+ this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Vx(e.parent) || document, this.viewState = new jf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(fs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xr).map((r) => new Da(r));
16887
16887
  for (let r of this.plugins)
16888
16888
  r.update(this);
16889
16889
  this.observer = new tw(this), this.inputState = new Ck(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Cf(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
@@ -16918,7 +16918,7 @@ class le {
16918
16918
  let u = this.observer.delayedAndroidKey, c = null;
16919
16919
  if (u ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(Ee.phrases) != this.state.facet(Ee.phrases))
16920
16920
  return this.setState(o);
16921
- r = al.create(this, o, e), r.flags |= l;
16921
+ r = ul.create(this, o, e), r.flags |= l;
16922
16922
  let h = this.viewState.scrollTarget;
16923
16923
  try {
16924
16924
  this.updateState = 2;
@@ -16930,12 +16930,12 @@ class le {
16930
16930
  for (let d of f.effects)
16931
16931
  d.is(fs) && (h = d.value.clip(this.state));
16932
16932
  }
16933
- this.viewState.update(r, h), this.bidiCache = cl.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(ro) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
16933
+ this.viewState.update(r, h), this.bidiCache = hl.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(ro) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
16934
16934
  } finally {
16935
16935
  this.updateState = 0;
16936
16936
  }
16937
16937
  if (r.startState.facet(bs) != r.state.facet(bs) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), t && this.docViewUpdate(), !r.empty)
16938
- for (let f of this.state.facet(_u))
16938
+ for (let f of this.state.facet(Ru))
16939
16939
  try {
16940
16940
  f(r);
16941
16941
  } catch (d) {
@@ -16964,7 +16964,7 @@ class le {
16964
16964
  try {
16965
16965
  for (let n of this.plugins)
16966
16966
  n.destroy(this);
16967
- this.viewState = new jf(e), this.plugins = e.facet(xr).map((n) => new Ta(n)), this.pluginMap.clear();
16967
+ this.viewState = new jf(e), this.plugins = e.facet(xr).map((n) => new Da(n)), this.pluginMap.clear();
16968
16968
  for (let n of this.plugins)
16969
16969
  n.update(this);
16970
16970
  this.docView.destroy(), this.docView = new Cf(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
@@ -16980,7 +16980,7 @@ class le {
16980
16980
  for (let o of n) {
16981
16981
  let s = t.indexOf(o);
16982
16982
  if (s < 0)
16983
- r.push(new Ta(o));
16983
+ r.push(new Da(o));
16984
16984
  else {
16985
16985
  let l = this.plugins[s];
16986
16986
  l.mustUpdate = e, r.push(l);
@@ -17045,7 +17045,7 @@ class le {
17045
17045
  } catch (m) {
17046
17046
  return Xt(this.state, m), Uf;
17047
17047
  }
17048
- }), h = al.create(this, this.state, []), f = !1;
17048
+ }), h = ul.create(this, this.state, []), f = !1;
17049
17049
  h.flags |= a, t ? t.flags |= a : t = h, this.updateState = 2, h.empty || (this.updatePlugins(h), this.inputState.update(h), this.updateAttrs(), f = this.docView.update(h), f && this.docViewUpdate());
17050
17050
  for (let d = 0; d < u.length; d++)
17051
17051
  if (c[d] != Uf)
@@ -17074,14 +17074,14 @@ class le {
17074
17074
  this.updateState = 0, this.measureScheduled = -1;
17075
17075
  }
17076
17076
  if (t && !t.empty)
17077
- for (let l of this.state.facet(_u))
17077
+ for (let l of this.state.facet(Ru))
17078
17078
  l(t);
17079
17079
  }
17080
17080
  /**
17081
17081
  Get the CSS classes for the currently active editor themes.
17082
17082
  */
17083
17083
  get themeClasses() {
17084
- return Vu + " " + (this.state.facet(Iu) ? Tp : Op) + " " + this.state.facet(bs);
17084
+ return Fu + " " + (this.state.facet(Vu) ? Tp : Op) + " " + this.state.facet(bs);
17085
17085
  }
17086
17086
  updateAttrs() {
17087
17087
  let e = Yf(this, ap, {
@@ -17100,7 +17100,7 @@ class le {
17100
17100
  };
17101
17101
  this.state.readOnly && (t["aria-readonly"] = "true"), Yf(this, _c, t);
17102
17102
  let n = this.observer.ignore(() => {
17103
- let r = Tu(this.contentDOM, this.contentAttrs, t), o = Tu(this.dom, this.editorAttrs, e);
17103
+ let r = Du(this.contentDOM, this.contentAttrs, t), o = Du(this.dom, this.editorAttrs, e);
17104
17104
  return r || o;
17105
17105
  });
17106
17106
  return this.editorAttrs = e, this.contentAttrs = t, n;
@@ -17245,7 +17245,7 @@ class le {
17245
17245
  whether it should also be moved over.
17246
17246
  */
17247
17247
  moveByChar(e, t, n) {
17248
- return Pa(this, e, Df(this, e, t, n));
17248
+ return qa(this, e, Df(this, e, t, n));
17249
17249
  }
17250
17250
  /**
17251
17251
  Move a cursor position across the next group of either
@@ -17253,7 +17253,7 @@ class le {
17253
17253
  non-whitespace characters.
17254
17254
  */
17255
17255
  moveByGroup(e, t) {
17256
- return Pa(this, e, Df(this, e, t, (n) => gk(this, e.head, n)));
17256
+ return qa(this, e, Df(this, e, t, (n) => gk(this, e.head, n)));
17257
17257
  }
17258
17258
  /**
17259
17259
  Get the cursor position visually at the start or end of a line.
@@ -17289,7 +17289,7 @@ class le {
17289
17289
  used.
17290
17290
  */
17291
17291
  moveVertically(e, t, n) {
17292
- return Pa(this, e, pk(this, e, t, n));
17292
+ return qa(this, e, pk(this, e, t, n));
17293
17293
  }
17294
17294
  /**
17295
17295
  Find the DOM parent node and offset (child offset if `node` is
@@ -17401,7 +17401,7 @@ class le {
17401
17401
  return o.order;
17402
17402
  n || (n = Sf(this, e));
17403
17403
  let r = Xx(e.text, t, n);
17404
- return this.bidiCache.push(new cl(e.from, e.to, t, n, !0, r)), r;
17404
+ return this.bidiCache.push(new hl(e.from, e.to, t, n, !0, r)), r;
17405
17405
  }
17406
17406
  /**
17407
17407
  Check whether the editor has focus.
@@ -17520,8 +17520,8 @@ class le {
17520
17520
  `&light` when a light theme is active).
17521
17521
  */
17522
17522
  static theme(e, t) {
17523
- let n = Dn.newName(), r = [bs.of(n), ro.of(Fu(`.${n}`, e))];
17524
- return t && t.dark && r.push(Iu.of(!0)), r;
17523
+ let n = Dn.newName(), r = [bs.of(n), ro.of(Nu(`.${n}`, e))];
17524
+ return t && t.dark && r.push(Vu.of(!0)), r;
17525
17525
  }
17526
17526
  /**
17527
17527
  Create an extension that adds styles to the base theme. Like
@@ -17531,7 +17531,7 @@ class le {
17531
17531
  target editors with a dark or light theme.
17532
17532
  */
17533
17533
  static baseTheme(e) {
17534
- return ur.lowest(ro.of(Fu("." + Vu, e, Dp)));
17534
+ return ur.lowest(ro.of(Nu("." + Fu, e, Dp)));
17535
17535
  }
17536
17536
  /**
17537
17537
  Retrieve an editor view instance from the view's DOM
@@ -17551,7 +17551,7 @@ le.scrollHandler = sp;
17551
17551
  le.focusChangeEffect = np;
17552
17552
  le.perLineTextDirection = rp;
17553
17553
  le.exceptionSink = tp;
17554
- le.updateListener = _u;
17554
+ le.updateListener = Ru;
17555
17555
  le.editable = tn;
17556
17556
  le.mouseSelectionStyle = ep;
17557
17557
  le.dragMovesSelection = Zg;
@@ -17561,14 +17561,14 @@ le.outerDecorations = up;
17561
17561
  le.atomicRanges = Ko;
17562
17562
  le.bidiIsolatedRanges = cp;
17563
17563
  le.scrollMargins = hp;
17564
- le.darkTheme = Iu;
17564
+ le.darkTheme = Vu;
17565
17565
  le.cspNonce = /* @__PURE__ */ de.define({ combine: (i) => i.length ? i[0] : "" });
17566
17566
  le.contentAttributes = _c;
17567
17567
  le.editorAttributes = ap;
17568
17568
  le.lineWrapping = /* @__PURE__ */ le.contentAttributes.of({ class: "cm-lineWrapping" });
17569
17569
  le.announce = /* @__PURE__ */ Me.define();
17570
17570
  const rw = 4096, Uf = {};
17571
- class cl {
17571
+ class hl {
17572
17572
  constructor(e, t, n, r, o, s) {
17573
17573
  this.from = e, this.to = t, this.dir = n, this.isolates = r, this.fresh = o, this.order = s;
17574
17574
  }
@@ -17578,7 +17578,7 @@ class cl {
17578
17578
  let n = [], r = e.length ? e[e.length - 1].dir : ot.LTR;
17579
17579
  for (let o = Math.max(0, e.length - 10); o < e.length; o++) {
17580
17580
  let s = e[o];
17581
- s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new cl(t.mapPos(s.from, 1), t.mapPos(s.to, -1), s.dir, s.isolates, !1, s.order));
17581
+ s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new hl(t.mapPos(s.from, 1), t.mapPos(s.to, -1), s.dir, s.isolates, !1, s.order));
17582
17582
  }
17583
17583
  return n;
17584
17584
  }
@@ -17586,7 +17586,7 @@ class cl {
17586
17586
  function Yf(i, e, t) {
17587
17587
  for (let n = i.state.facet(e), r = n.length - 1; r >= 0; r--) {
17588
17588
  let o = n[r], s = typeof o == "function" ? o(i) : o;
17589
- s && Ou(s, t);
17589
+ s && Tu(s, t);
17590
17590
  }
17591
17591
  return t;
17592
17592
  }
@@ -17670,7 +17670,7 @@ function cw(i, e = ow) {
17670
17670
  c._any || (c._any = { preventDefault: !1, stopPropagation: !1, run: [] });
17671
17671
  let { any: h } = s;
17672
17672
  for (let f in c)
17673
- c[f].run.push((d) => h(d, Nu));
17673
+ c[f].run.push((d) => h(d, Hu));
17674
17674
  }
17675
17675
  let a = s[e] || s.key;
17676
17676
  if (a)
@@ -17679,9 +17679,9 @@ function cw(i, e = ow) {
17679
17679
  }
17680
17680
  return t;
17681
17681
  }
17682
- let Nu = null;
17682
+ let Hu = null;
17683
17683
  function qp(i, e, t, n) {
17684
- Nu = e;
17684
+ Hu = e;
17685
17685
  let r = Bx(e), o = ri(r, 0), s = Ni(o) == r.length && r != " ", l = "", a = !1, u = !1, c = !1;
17686
17686
  yn && yn.view == t && yn.scope == n && (l = yn.prefix + " ", yp.indexOf(e.keyCode) < 0 && (u = !0, yn = null));
17687
17687
  let h = /* @__PURE__ */ new Set(), f = (g) => {
@@ -17695,7 +17695,7 @@ function qp(i, e, t, n) {
17695
17695
  }, d = i[n], m, p;
17696
17696
  return d && (f(d[l + ys(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
17697
17697
  !(se.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
17698
- !(se.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = Pn[e.keyCode]) && m != r ? (f(d[l + ys(m, e, !0)]) || e.shiftKey && (p = Mo[e.keyCode]) != r && p != m && f(d[l + ys(p, e, !1)])) && (a = !0) : s && e.shiftKey && f(d[l + ys(r, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Nu = null, a;
17698
+ !(se.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = Pn[e.keyCode]) && m != r ? (f(d[l + ys(m, e, !0)]) || e.shiftKey && (p = Mo[e.keyCode]) != r && p != m && f(d[l + ys(p, e, !1)])) && (a = !0) : s && e.shiftKey && f(d[l + ys(r, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Hu = null, a;
17699
17699
  }
17700
17700
  class Yo {
17701
17701
  /**
@@ -17750,7 +17750,7 @@ function $f(i, e, t, n) {
17750
17750
  function hw(i, e, t) {
17751
17751
  if (t.to <= i.viewport.from || t.from >= i.viewport.to)
17752
17752
  return [];
17753
- let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == ot.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Bp(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), f = l.right - (c ? parseInt(c.paddingRight) : 0), d = Eu(i, n, 1), m = Eu(i, r, -1), p = d.type == Zt.Text ? d : null, g = m.type == Zt.Text ? m : null;
17753
+ let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == ot.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Bp(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), f = l.right - (c ? parseInt(c.paddingRight) : 0), d = Lu(i, n, 1), m = Lu(i, r, -1), p = d.type == Zt.Text ? d : null, g = m.type == Zt.Text ? m : null;
17754
17754
  if (p && (i.lineWrapping || d.widgetLineBreaks) && (p = $f(i, n, 1, p)), g && (i.lineWrapping || m.widgetLineBreaks) && (g = $f(i, r, -1, g)), p && g && p.from == g.from && p.to == g.to)
17755
17755
  return k(v(t.from, t.to, p));
17756
17756
  {
@@ -18065,8 +18065,8 @@ class kw {
18065
18065
  return t;
18066
18066
  }
18067
18067
  }
18068
- const Hu = /x/.unicode != null ? "gu" : "g", ww = /* @__PURE__ */ new RegExp(`[\0-\b
18069
- --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`, Hu), Sw = {
18068
+ const zu = /x/.unicode != null ? "gu" : "g", ww = /* @__PURE__ */ new RegExp(`[\0-\b
18069
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`, zu), Sw = {
18070
18070
  0: "null",
18071
18071
  7: "bell",
18072
18072
  8: "backspace",
@@ -18089,14 +18089,14 @@ const Hu = /x/.unicode != null ? "gu" : "g", ww = /* @__PURE__ */ new RegExp(`[\
18089
18089
  65279: "zero width no-break space",
18090
18090
  65532: "object replacement"
18091
18091
  };
18092
- let _a = null;
18092
+ let Ra = null;
18093
18093
  function Cw() {
18094
18094
  var i;
18095
- if (_a == null && typeof document < "u" && document.body) {
18095
+ if (Ra == null && typeof document < "u" && document.body) {
18096
18096
  let e = document.body.style;
18097
- _a = ((i = e.tabSize) !== null && i !== void 0 ? i : e.MozTabSize) != null;
18097
+ Ra = ((i = e.tabSize) !== null && i !== void 0 ? i : e.MozTabSize) != null;
18098
18098
  }
18099
- return _a || !1;
18099
+ return Ra || !1;
18100
18100
  }
18101
18101
  const zs = /* @__PURE__ */ de.define({
18102
18102
  combine(i) {
@@ -18105,7 +18105,7 @@ const zs = /* @__PURE__ */ de.define({
18105
18105
  specialChars: ww,
18106
18106
  addSpecialChars: null
18107
18107
  });
18108
- return (e.replaceTabs = !Cw()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, Hu)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, Hu)), e;
18108
+ return (e.replaceTabs = !Cw()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, zu)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, zu)), e;
18109
18109
  }
18110
18110
  });
18111
18111
  function Mw(i = {}) {
@@ -18232,10 +18232,10 @@ function Ew(i) {
18232
18232
  le.contentAttributes.of({ "aria-placeholder": i })
18233
18233
  ] : e;
18234
18234
  }
18235
- const zu = 2e3;
18235
+ const ju = 2e3;
18236
18236
  function Lw(i, e, t) {
18237
18237
  let n = Math.min(e.line, t.line), r = Math.max(e.line, t.line), o = [];
18238
- if (e.off > zu || t.off > zu || e.col < 0 || t.col < 0) {
18238
+ if (e.off > ju || t.off > ju || e.col < 0 || t.col < 0) {
18239
18239
  let s = Math.min(e.off, t.off), l = Math.max(e.off, t.off);
18240
18240
  for (let a = n; a <= r; a++) {
18241
18241
  let u = i.doc.line(a);
@@ -18244,11 +18244,11 @@ function Lw(i, e, t) {
18244
18244
  } else {
18245
18245
  let s = Math.min(e.col, t.col), l = Math.max(e.col, t.col);
18246
18246
  for (let a = n; a <= r; a++) {
18247
- let u = i.doc.line(a), c = yu(u.text, s, i.tabSize, !0);
18247
+ let u = i.doc.line(a), c = xu(u.text, s, i.tabSize, !0);
18248
18248
  if (c < 0)
18249
18249
  o.push(Q.cursor(u.to));
18250
18250
  else {
18251
- let h = yu(u.text, l, i.tabSize);
18251
+ let h = xu(u.text, l, i.tabSize);
18252
18252
  o.push(Q.range(u.from + c, u.from + h));
18253
18253
  }
18254
18254
  }
@@ -18260,7 +18260,7 @@ function Iw(i, e) {
18260
18260
  return t ? Math.round(Math.abs((t.left - e) / i.defaultCharacterWidth)) : -1;
18261
18261
  }
18262
18262
  function ed(i, e) {
18263
- let t = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = i.state.doc.lineAt(t), r = t - n.from, o = r > zu ? -1 : r == n.length ? Iw(i, e.clientX) : Qr(n.text, i.state.tabSize, t - n.from);
18263
+ let t = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = i.state.doc.lineAt(t), r = t - n.from, o = r > ju ? -1 : r == n.length ? Iw(i, e.clientX) : Qr(n.text, i.state.tabSize, t - n.from);
18264
18264
  return { line: n.number, col: o, off: r };
18265
18265
  }
18266
18266
  function Vw(i, e) {
@@ -18360,7 +18360,7 @@ function jw(i) {
18360
18360
  let e = i.dom.ownerDocument.documentElement;
18361
18361
  return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
18362
18362
  }
18363
- const Ra = /* @__PURE__ */ de.define({
18363
+ const Ea = /* @__PURE__ */ de.define({
18364
18364
  combine: (i) => {
18365
18365
  var e, t, n;
18366
18366
  return {
@@ -18372,8 +18372,8 @@ const Ra = /* @__PURE__ */ de.define({
18372
18372
  }), td = /* @__PURE__ */ new WeakMap(), Vc = /* @__PURE__ */ ft.fromClass(class {
18373
18373
  constructor(i) {
18374
18374
  this.view = i, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
18375
- let e = i.state.facet(Ra);
18376
- this.position = e.position, this.parent = e.parent, this.classes = i.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new Lp(i, jl, (t, n) => this.createTooltip(t, n), (t) => {
18375
+ let e = i.state.facet(Ea);
18376
+ this.position = e.position, this.parent = e.parent, this.classes = i.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new Lp(i, Wl, (t, n) => this.createTooltip(t, n), (t) => {
18377
18377
  this.resizeObserver && this.resizeObserver.unobserve(t.dom), t.dom.remove();
18378
18378
  }), this.above = this.manager.tooltips.map((t) => !!t.above), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((t) => {
18379
18379
  Date.now() > this.lastTransaction - 50 && t.length > 0 && t[t.length - 1].intersectionRatio < 1 && this.measureSoon();
@@ -18398,7 +18398,7 @@ const Ra = /* @__PURE__ */ de.define({
18398
18398
  i.transactions.length && (this.lastTransaction = Date.now());
18399
18399
  let e = this.manager.update(i, this.above);
18400
18400
  e && this.observeIntersection();
18401
- let t = e || i.geometryChanged, n = i.state.facet(Ra);
18401
+ let t = e || i.geometryChanged, n = i.state.facet(Ea);
18402
18402
  if (n.position != this.position && !this.madeAbsolute) {
18403
18403
  this.position = n.position;
18404
18404
  for (let r of this.manager.tooltipViews)
@@ -18458,7 +18458,7 @@ const Ra = /* @__PURE__ */ de.define({
18458
18458
  return l.getCoords ? l.getCoords(o.pos) : this.view.coordsAtPos(o.pos);
18459
18459
  }),
18460
18460
  size: this.manager.tooltipViews.map(({ dom: o }) => o.getBoundingClientRect()),
18461
- space: this.view.state.facet(Ra).tooltipSpace(this.view),
18461
+ space: this.view.state.facet(Ea).tooltipSpace(this.view),
18462
18462
  scaleX: i,
18463
18463
  scaleY: e,
18464
18464
  makeAbsolute: t
@@ -18576,18 +18576,18 @@ const Ww = /* @__PURE__ */ le.baseTheme({
18576
18576
  borderBottomColor: "transparent"
18577
18577
  }
18578
18578
  }
18579
- }), Qw = { x: 0, y: 0 }, jl = /* @__PURE__ */ de.define({
18579
+ }), Qw = { x: 0, y: 0 }, Wl = /* @__PURE__ */ de.define({
18580
18580
  enables: [Vc, Ww]
18581
- }), hl = /* @__PURE__ */ de.define({
18581
+ }), fl = /* @__PURE__ */ de.define({
18582
18582
  combine: (i) => i.reduce((e, t) => e.concat(t), [])
18583
18583
  });
18584
- class Wl {
18584
+ class Ql {
18585
18585
  // Needs to be static so that host tooltip instances always match
18586
18586
  static create(e) {
18587
- return new Wl(e);
18587
+ return new Ql(e);
18588
18588
  }
18589
18589
  constructor(e) {
18590
- this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Lp(e, hl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
18590
+ this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Lp(e, fl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
18591
18591
  }
18592
18592
  createHostedView(e, t) {
18593
18593
  let n = e.create(this.view);
@@ -18636,15 +18636,15 @@ class Wl {
18636
18636
  return this.passProp("resize");
18637
18637
  }
18638
18638
  }
18639
- const Kw = /* @__PURE__ */ jl.compute([hl], (i) => {
18640
- let e = i.facet(hl);
18639
+ const Kw = /* @__PURE__ */ Wl.compute([fl], (i) => {
18640
+ let e = i.facet(fl);
18641
18641
  return e.length === 0 ? null : {
18642
18642
  pos: Math.min(...e.map((t) => t.pos)),
18643
18643
  end: Math.max(...e.map((t) => {
18644
18644
  var n;
18645
18645
  return (n = t.end) !== null && n !== void 0 ? n : t.pos;
18646
18646
  })),
18647
- create: Wl.create,
18647
+ create: Ql.create,
18648
18648
  above: e[0].above,
18649
18649
  arrow: e.some((t) => t.arrow)
18650
18650
  };
@@ -18691,7 +18691,7 @@ class Uw {
18691
18691
  } else s && !(Array.isArray(s) && !s.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(s) ? s : [s]) });
18692
18692
  }
18693
18693
  get tooltip() {
18694
- let e = this.view.plugin(Vc), t = e ? e.manager.tooltips.findIndex((n) => n.create == Wl.create) : -1;
18694
+ let e = this.view.plugin(Vc), t = e ? e.manager.tooltips.findIndex((n) => n.create == Ql.create) : -1;
18695
18695
  return t > -1 ? e.manager.tooltipViews[t] : null;
18696
18696
  }
18697
18697
  mousemove(e) {
@@ -18758,7 +18758,7 @@ function $w(i, e = {}) {
18758
18758
  s.is(t) && (r = s.value), s.is(Jw) && (r = []);
18759
18759
  return r;
18760
18760
  },
18761
- provide: (r) => hl.from(r)
18761
+ provide: (r) => fl.from(r)
18762
18762
  });
18763
18763
  return {
18764
18764
  active: n,
@@ -18957,7 +18957,7 @@ const eS = /* @__PURE__ */ ft.fromClass(class {
18957
18957
  let s = !0;
18958
18958
  for (let l of o.type)
18959
18959
  if (l.type == Zt.Text && s) {
18960
- ju(t, n, l.from);
18960
+ Wu(t, n, l.from);
18961
18961
  for (let a of r)
18962
18962
  a.line(this.view, l, n);
18963
18963
  s = !1;
@@ -18965,7 +18965,7 @@ const eS = /* @__PURE__ */ ft.fromClass(class {
18965
18965
  for (let a of r)
18966
18966
  a.widget(this.view, l);
18967
18967
  } else if (o.type == Zt.Text) {
18968
- ju(t, n, o.from);
18968
+ Wu(t, n, o.from);
18969
18969
  for (let s of r)
18970
18970
  s.line(this.view, o, n);
18971
18971
  } else if (o.widget)
@@ -19012,7 +19012,7 @@ const eS = /* @__PURE__ */ ft.fromClass(class {
19012
19012
  function sd(i) {
19013
19013
  return Array.isArray(i) ? i : [i];
19014
19014
  }
19015
- function ju(i, e, t) {
19015
+ function Wu(i, e, t) {
19016
19016
  for (; i.value && i.from <= t; )
19017
19017
  i.from == t && e.push(i.value), i.next();
19018
19018
  }
@@ -19031,7 +19031,7 @@ class tS {
19031
19031
  }
19032
19032
  line(e, t, n) {
19033
19033
  let r = [];
19034
- ju(this.cursor, r, t.from), n.length && (r = r.concat(n));
19034
+ Wu(this.cursor, r, t.from), n.length && (r = r.concat(n));
19035
19035
  let o = this.gutter.config.lineMarker(e, t, r);
19036
19036
  o && r.unshift(o);
19037
19037
  let s = this.gutter;
@@ -19146,7 +19146,7 @@ const nS = /* @__PURE__ */ de.define(), rS = /* @__PURE__ */ de.define(), kr = /
19146
19146
  });
19147
19147
  }
19148
19148
  });
19149
- class Ea extends Ui {
19149
+ class La extends Ui {
19150
19150
  constructor(e) {
19151
19151
  super(), this.number = e;
19152
19152
  }
@@ -19157,7 +19157,7 @@ class Ea extends Ui {
19157
19157
  return document.createTextNode(this.number);
19158
19158
  }
19159
19159
  }
19160
- function La(i, e) {
19160
+ function Ia(i, e) {
19161
19161
  return i.state.facet(kr).formatNumber(e, i.state);
19162
19162
  }
19163
19163
  const oS = /* @__PURE__ */ po.compute([kr], (i) => ({
@@ -19167,7 +19167,7 @@ const oS = /* @__PURE__ */ po.compute([kr], (i) => ({
19167
19167
  return e.state.facet(nS);
19168
19168
  },
19169
19169
  lineMarker(e, t, n) {
19170
- return n.some((r) => r.toDOM) ? null : new Ea(La(e, e.state.doc.lineAt(t.from).number));
19170
+ return n.some((r) => r.toDOM) ? null : new La(Ia(e, e.state.doc.lineAt(t.from).number));
19171
19171
  },
19172
19172
  widgetMarker: (e, t, n) => {
19173
19173
  for (let r of e.state.facet(rS)) {
@@ -19179,11 +19179,11 @@ const oS = /* @__PURE__ */ po.compute([kr], (i) => ({
19179
19179
  },
19180
19180
  lineMarkerChange: (e) => e.startState.facet(kr) != e.state.facet(kr),
19181
19181
  initialSpacer(e) {
19182
- return new Ea(La(e, ad(e.state.doc.lines)));
19182
+ return new La(Ia(e, ad(e.state.doc.lines)));
19183
19183
  },
19184
19184
  updateSpacer(e, t) {
19185
- let n = La(t.view, ad(t.view.state.doc.lines));
19186
- return n == e.number ? e : new Ea(n);
19185
+ let n = Ia(t.view, ad(t.view.state.doc.lines));
19186
+ return n == e.number ? e : new La(n);
19187
19187
  },
19188
19188
  domEventHandlers: i.facet(kr).domEventHandlers,
19189
19189
  side: "before"
@@ -19218,7 +19218,7 @@ function aS() {
19218
19218
  }
19219
19219
  const jp = 1024;
19220
19220
  let uS = 0;
19221
- class Ia {
19221
+ class Va {
19222
19222
  constructor(e, t) {
19223
19223
  this.from = e, this.to = t;
19224
19224
  }
@@ -19261,7 +19261,7 @@ qe.isolate = new qe({ deserialize: (i) => {
19261
19261
  qe.contextHash = new qe({ perNode: !0 });
19262
19262
  qe.lookAhead = new qe({ perNode: !0 });
19263
19263
  qe.mounted = new qe({ perNode: !0 });
19264
- class fl {
19264
+ class dl {
19265
19265
  constructor(e, t, n) {
19266
19266
  this.tree = e, this.overlay = t, this.parser = n;
19267
19267
  }
@@ -19422,7 +19422,7 @@ class yt {
19422
19422
  @internal
19423
19423
  */
19424
19424
  toString() {
19425
- let e = fl.get(this);
19425
+ let e = dl.get(this);
19426
19426
  if (e && !e.overlay)
19427
19427
  return e.tree.toString();
19428
19428
  let t = "";
@@ -19438,7 +19438,7 @@ class yt {
19438
19438
  nodes the cursor visits.
19439
19439
  */
19440
19440
  cursor(e = 0) {
19441
- return new Qu(this.topNode, e);
19441
+ return new Ku(this.topNode, e);
19442
19442
  }
19443
19443
  /**
19444
19444
  Get a [tree cursor](#common.TreeCursor) pointing into this tree
@@ -19446,7 +19446,7 @@ class yt {
19446
19446
  [`moveTo`](#common.TreeCursor.moveTo).
19447
19447
  */
19448
19448
  cursorAt(e, t = 0, n = 0) {
19449
- let r = Ss.get(this) || this.topNode, o = new Qu(r);
19449
+ let r = Ss.get(this) || this.topNode, o = new Ku(r);
19450
19450
  return o.moveTo(e, t), Ss.set(this, o._tree), o;
19451
19451
  }
19452
19452
  /**
@@ -19669,7 +19669,7 @@ function qo(i, e, t, n) {
19669
19669
  }
19670
19670
  class Qp {
19671
19671
  cursor(e = 0) {
19672
- return new Qu(this, e);
19672
+ return new Ku(this, e);
19673
19673
  }
19674
19674
  getChild(e, t = null, n = null) {
19675
19675
  let r = cd(this, e, t, n);
@@ -19685,7 +19685,7 @@ class Qp {
19685
19685
  return qo(this, e, t, !0);
19686
19686
  }
19687
19687
  matchContext(e) {
19688
- return Wu(this.parent, e);
19688
+ return Qu(this.parent, e);
19689
19689
  }
19690
19690
  enterUnfinishedNodesBefore(e) {
19691
19691
  let t = this.childBefore(e), n = this;
@@ -19730,7 +19730,7 @@ class wi extends Qp {
19730
19730
  return new Mn(new hS(s, c, e, h), null, f);
19731
19731
  } else if (o & Ot.IncludeAnonymous || !c.type.isAnonymous || Hc(c)) {
19732
19732
  let f;
19733
- if (!(o & Ot.IgnoreMounts) && (f = fl.get(c)) && !f.overlay)
19733
+ if (!(o & Ot.IgnoreMounts) && (f = dl.get(c)) && !f.overlay)
19734
19734
  return new wi(f.tree, h, e, s);
19735
19735
  let d = new wi(c, h, e, s);
19736
19736
  return o & Ot.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, r);
@@ -19779,7 +19779,7 @@ class wi extends Qp {
19779
19779
  }
19780
19780
  enter(e, t, n = 0) {
19781
19781
  let r;
19782
- if (!(n & Ot.IgnoreOverlays) && (r = fl.get(this._tree)) && r.overlay) {
19782
+ if (!(n & Ot.IgnoreOverlays) && (r = dl.get(this._tree)) && r.overlay) {
19783
19783
  let o = e - this.from;
19784
19784
  for (let { from: s, to: l } of r.overlay)
19785
19785
  if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
@@ -19843,7 +19843,7 @@ function cd(i, e, t, n) {
19843
19843
  return n == null ? o : [];
19844
19844
  }
19845
19845
  }
19846
- function Wu(i, e, t = e.length - 1) {
19846
+ function Qu(i, e, t = e.length - 1) {
19847
19847
  for (let n = i; t >= 0; n = n.parent) {
19848
19848
  if (!n)
19849
19849
  return !1;
@@ -19986,7 +19986,7 @@ function dS(i, e, t) {
19986
19986
  let s = o.parent;
19987
19987
  (r || (r = [n])).push(s.resolve(e, t)), o = s;
19988
19988
  } else {
19989
- let s = fl.get(o.tree);
19989
+ let s = dl.get(o.tree);
19990
19990
  if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
19991
19991
  let l = new wi(s.tree, s.overlay[0].from + o.from, -1, o);
19992
19992
  (r || (r = [n])).push(qo(l, e, t, !1));
@@ -19994,7 +19994,7 @@ function dS(i, e, t) {
19994
19994
  }
19995
19995
  return r ? Kp(r) : n;
19996
19996
  }
19997
- class Qu {
19997
+ class Ku {
19998
19998
  /**
19999
19999
  Shorthand for `.type.name`.
20000
20000
  */
@@ -20277,11 +20277,11 @@ class Qu {
20277
20277
  */
20278
20278
  matchContext(e) {
20279
20279
  if (!this.buffer)
20280
- return Wu(this.node.parent, e);
20280
+ return Qu(this.node.parent, e);
20281
20281
  let { buffer: t } = this.buffer, { types: n } = t.set;
20282
20282
  for (let r = e.length - 1, o = this.stack.length - 1; r >= 0; o--) {
20283
20283
  if (o < 0)
20284
- return Wu(this._tree, e, r);
20284
+ return Qu(this._tree, e, r);
20285
20285
  let s = n[t.buffer[this.stack[o]]];
20286
20286
  if (!s.isAnonymous) {
20287
20287
  if (e[r] && e[r] != s.name)
@@ -20556,7 +20556,7 @@ class Up {
20556
20556
  case will start at `ranges[0].from`.
20557
20557
  */
20558
20558
  startParse(e, t, n) {
20559
- return typeof e == "string" && (e = new gS(e)), n = n ? n.length ? n.map((r) => new Ia(r.from, r.to)) : [new Ia(0, 0)] : [new Ia(0, e.length)], this.createParse(e, t || [], n);
20559
+ return typeof e == "string" && (e = new gS(e)), n = n ? n.length ? n.map((r) => new Va(r.from, r.to)) : [new Va(0, 0)] : [new Va(0, e.length)], this.createParse(e, t || [], n);
20560
20560
  }
20561
20561
  /**
20562
20562
  Run a full parse, returning the resulting tree.
@@ -20625,12 +20625,12 @@ class bi {
20625
20625
  `m1(m3(t1)`, and so on.
20626
20626
  */
20627
20627
  static defineModifier(e) {
20628
- let t = new dl(e);
20629
- return (n) => n.modified.indexOf(t) > -1 ? n : dl.get(n.base || n, n.modified.concat(t).sort((r, o) => r.id - o.id));
20628
+ let t = new ml(e);
20629
+ return (n) => n.modified.indexOf(t) > -1 ? n : ml.get(n.base || n, n.modified.concat(t).sort((r, o) => r.id - o.id));
20630
20630
  }
20631
20631
  }
20632
20632
  let vS = 0;
20633
- class dl {
20633
+ class ml {
20634
20634
  constructor(e) {
20635
20635
  this.name = e, this.instances = [], this.id = vS++;
20636
20636
  }
@@ -20647,7 +20647,7 @@ class dl {
20647
20647
  for (let l of e.set)
20648
20648
  if (!l.modified.length)
20649
20649
  for (let a of s)
20650
- r.push(dl.get(l, a));
20650
+ r.push(ml.get(l, a));
20651
20651
  return o;
20652
20652
  }
20653
20653
  }
@@ -20814,7 +20814,7 @@ function SS(i) {
20814
20814
  e = e.next;
20815
20815
  return e || null;
20816
20816
  }
20817
- const ie = bi.define, Cs = ie(), pn = ie(), fd = ie(pn), dd = ie(pn), vn = ie(), Ms = ie(vn), Va = ie(vn), Vi = ie(), Hn = ie(Vi), Li = ie(), Ii = ie(), Ku = ie(), Zr = ie(Ku), As = ie(), H = {
20817
+ const ie = bi.define, Cs = ie(), pn = ie(), fd = ie(pn), dd = ie(pn), vn = ie(), Ms = ie(vn), Fa = ie(vn), Vi = ie(), Hn = ie(Vi), Li = ie(), Ii = ie(), Uu = ie(), Zr = ie(Uu), As = ie(), H = {
20818
20818
  /**
20819
20819
  A comment.
20820
20820
  */
@@ -20894,15 +20894,15 @@ const ie = bi.define, Cs = ie(), pn = ie(), fd = ie(pn), dd = ie(pn), vn = ie(),
20894
20894
  /**
20895
20895
  A number [literal](#highlight.tags.literal).
20896
20896
  */
20897
- number: Va,
20897
+ number: Fa,
20898
20898
  /**
20899
20899
  An integer [number](#highlight.tags.number) literal.
20900
20900
  */
20901
- integer: ie(Va),
20901
+ integer: ie(Fa),
20902
20902
  /**
20903
20903
  A floating-point [number](#highlight.tags.number) literal.
20904
20904
  */
20905
- float: ie(Va),
20905
+ float: ie(Fa),
20906
20906
  /**
20907
20907
  A boolean [literal](#highlight.tags.literal).
20908
20908
  */
@@ -21009,12 +21009,12 @@ const ie = bi.define, Cs = ie(), pn = ie(), fd = ie(pn), dd = ie(pn), vn = ie(),
21009
21009
  /**
21010
21010
  Program or markup punctuation.
21011
21011
  */
21012
- punctuation: Ku,
21012
+ punctuation: Uu,
21013
21013
  /**
21014
21014
  [Punctuation](#highlight.tags.punctuation) that separates
21015
21015
  things.
21016
21016
  */
21017
- separator: ie(Ku),
21017
+ separator: ie(Uu),
21018
21018
  /**
21019
21019
  Bracket-style [punctuation](#highlight.tags.punctuation).
21020
21020
  */
@@ -21216,7 +21216,7 @@ $p([
21216
21216
  { tag: H.invalid, class: "tok-invalid" },
21217
21217
  { tag: H.punctuation, class: "tok-punctuation" }
21218
21218
  ]);
21219
- var Fa;
21219
+ var Na;
21220
21220
  const wr = /* @__PURE__ */ new qe();
21221
21221
  function CS(i) {
21222
21222
  return de.define({
@@ -21314,7 +21314,7 @@ function md(i, e, t) {
21314
21314
  o.type.isTop && (r = o);
21315
21315
  return r;
21316
21316
  }
21317
- class ml extends Oi {
21317
+ class gl extends Oi {
21318
21318
  constructor(e, t, n) {
21319
21319
  super(e, t, [], n), this.parser = t;
21320
21320
  }
@@ -21323,7 +21323,7 @@ class ml extends Oi {
21323
21323
  */
21324
21324
  static define(e) {
21325
21325
  let t = CS(e.languageData);
21326
- return new ml(t, e.parser.configure({
21326
+ return new gl(t, e.parser.configure({
21327
21327
  props: [wr.add((n) => n.isTop ? t : void 0)]
21328
21328
  }), e.name);
21329
21329
  }
@@ -21332,7 +21332,7 @@ class ml extends Oi {
21332
21332
  version of its parser and optionally a new name.
21333
21333
  */
21334
21334
  configure(e, t) {
21335
- return new ml(this.data, this.parser.configure(e), t || this.name);
21335
+ return new gl(this.data, this.parser.configure(e), t || this.name);
21336
21336
  }
21337
21337
  get allowsNesting() {
21338
21338
  return this.parser.hasWrappers();
@@ -21367,7 +21367,7 @@ class AS {
21367
21367
  }
21368
21368
  }
21369
21369
  let eo = null;
21370
- class gl {
21370
+ class pl {
21371
21371
  constructor(e, t, n = [], r, o, s, l, a) {
21372
21372
  this.parser = e, this.state = t, this.fragments = n, this.tree = r, this.treeLen = o, this.viewport = s, this.skipped = l, this.scheduleOn = a, this.parse = null, this.tempSkipped = [];
21373
21373
  }
@@ -21375,7 +21375,7 @@ class gl {
21375
21375
  @internal
21376
21376
  */
21377
21377
  static create(e, t, n) {
21378
- return new gl(e, t, [], yt.empty, 0, n, [], null);
21378
+ return new pl(e, t, [], yt.empty, 0, n, [], null);
21379
21379
  }
21380
21380
  startParse() {
21381
21381
  return this.parser.startParse(new AS(this.state.doc), this.fragments);
@@ -21441,7 +21441,7 @@ class gl {
21441
21441
  }
21442
21442
  }
21443
21443
  }
21444
- return new gl(this.parser, t, n, r, o, s, l, this.scheduleOn);
21444
+ return new pl(this.parser, t, n, r, o, s, l, this.scheduleOn);
21445
21445
  }
21446
21446
  /**
21447
21447
  @internal
@@ -21532,7 +21532,7 @@ class Hr {
21532
21532
  return t.work(20, n) || t.takeTree(), new Hr(t);
21533
21533
  }
21534
21534
  static init(e) {
21535
- let t = Math.min(3e3, e.doc.length), n = gl.create(e.facet(_n).parser, e, { from: 0, to: t });
21535
+ let t = Math.min(3e3, e.doc.length), n = pl.create(e.facet(_n).parser, e, { from: 0, to: t });
21536
21536
  return n.work(20, t) || n.takeTree(), new Hr(n);
21537
21537
  }
21538
21538
  }
@@ -21566,7 +21566,7 @@ typeof requestIdleCallback < "u" && (Jp = (i) => {
21566
21566
  );
21567
21567
  return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
21568
21568
  });
21569
- const Na = typeof navigator < "u" && (!((Fa = navigator.scheduling) === null || Fa === void 0) && Fa.isInputPending) ? () => navigator.scheduling.isInputPending() : null, OS = /* @__PURE__ */ ft.fromClass(class {
21569
+ const Ha = typeof navigator < "u" && (!((Na = navigator.scheduling) === null || Na === void 0) && Na.isInputPending) ? () => navigator.scheduling.isInputPending() : null, OS = /* @__PURE__ */ ft.fromClass(class {
21570
21570
  constructor(e) {
21571
21571
  this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
21572
21572
  }
@@ -21591,7 +21591,7 @@ const Na = typeof navigator < "u" && (!((Fa = navigator.scheduling) === null ||
21591
21591
  /* Work.MaxParseAhead */
21592
21592
  ))
21593
21593
  return;
21594
- let s = Date.now() + Math.min(this.chunkBudget, 100, e && !Na ? Math.max(25, e.timeRemaining() - 5) : 1e9), l = o.context.treeLen < r && n.doc.length > r + 1e3, a = o.context.work(() => Na && Na() || Date.now() > s, r + (l ? 0 : 1e5));
21594
+ let s = Date.now() + Math.min(this.chunkBudget, 100, e && !Ha ? Math.max(25, e.timeRemaining() - 5) : 1e9), l = o.context.treeLen < r && n.doc.length > r + 1e3, a = o.context.work(() => Ha && Ha() || Date.now() > s, r + (l ? 0 : 1e5));
21595
21595
  this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (o.context.takeTree(), this.view.dispatch({ effects: Oi.setState.of(new Hr(o.context)) })), this.chunkBudget > 0 && !(a && !l) && this.scheduleWork(), this.checkAsyncSchedule(o.context);
21596
21596
  }
21597
21597
  checkAsyncSchedule(e) {
@@ -21628,7 +21628,7 @@ class TS {
21628
21628
  this.language = e, this.support = t, this.extension = [e, t];
21629
21629
  }
21630
21630
  }
21631
- const DS = /* @__PURE__ */ de.define(), Ql = /* @__PURE__ */ de.define({
21631
+ const DS = /* @__PURE__ */ de.define(), Kl = /* @__PURE__ */ de.define({
21632
21632
  combine: (i) => {
21633
21633
  if (!i.length)
21634
21634
  return " ";
@@ -21638,12 +21638,12 @@ const DS = /* @__PURE__ */ de.define(), Ql = /* @__PURE__ */ de.define({
21638
21638
  return e;
21639
21639
  }
21640
21640
  });
21641
- function pl(i) {
21642
- let e = i.facet(Ql);
21641
+ function vl(i) {
21642
+ let e = i.facet(Kl);
21643
21643
  return e.charCodeAt(0) == 9 ? i.tabSize * e.length : e.length;
21644
21644
  }
21645
21645
  function _o(i, e) {
21646
- let t = "", n = i.tabSize, r = i.facet(Ql)[0];
21646
+ let t = "", n = i.tabSize, r = i.facet(Kl)[0];
21647
21647
  if (r == " ") {
21648
21648
  for (; e >= n; )
21649
21649
  t += " ", e -= n;
@@ -21654,7 +21654,7 @@ function _o(i, e) {
21654
21654
  return t;
21655
21655
  }
21656
21656
  function jc(i, e) {
21657
- i instanceof Ee && (i = new Kl(i));
21657
+ i instanceof Ee && (i = new Ul(i));
21658
21658
  for (let n of i.state.facet(DS)) {
21659
21659
  let r = n(i, e);
21660
21660
  if (r !== void 0)
@@ -21663,12 +21663,12 @@ function jc(i, e) {
21663
21663
  let t = Wt(i.state);
21664
21664
  return t.length >= e ? PS(i, t, e) : null;
21665
21665
  }
21666
- class Kl {
21666
+ class Ul {
21667
21667
  /**
21668
21668
  Create an indent context.
21669
21669
  */
21670
21670
  constructor(e, t = {}) {
21671
- this.state = e, this.options = t, this.unit = pl(e);
21671
+ this.state = e, this.options = t, this.unit = vl(e);
21672
21672
  }
21673
21673
  /**
21674
21674
  Get a description of the line at the given position, taking
@@ -21764,7 +21764,7 @@ function BS(i) {
21764
21764
  function _S() {
21765
21765
  return 0;
21766
21766
  }
21767
- class Wc extends Kl {
21767
+ class Wc extends Ul {
21768
21768
  constructor(e, t, n) {
21769
21769
  super(e.state, e.options), this.base = e, this.pos = t, this.context = n;
21770
21770
  }
@@ -21913,7 +21913,7 @@ function zS(i) {
21913
21913
  let e = i.lastChild;
21914
21914
  return e && e.to == i.to && e.type.isError;
21915
21915
  }
21916
- function vl(i, e, t) {
21916
+ function bl(i, e, t) {
21917
21917
  for (let n of i.facet(FS)) {
21918
21918
  let r = n(i, e, t);
21919
21919
  if (r)
@@ -21925,7 +21925,7 @@ function tv(i, e) {
21925
21925
  let t = e.mapPos(i.from, 1), n = e.mapPos(i.to, -1);
21926
21926
  return t >= n ? void 0 : { from: t, to: n };
21927
21927
  }
21928
- const Ul = /* @__PURE__ */ Me.define({ map: tv }), Go = /* @__PURE__ */ Me.define({ map: tv });
21928
+ const Yl = /* @__PURE__ */ Me.define({ map: tv }), Go = /* @__PURE__ */ Me.define({ map: tv });
21929
21929
  function iv(i) {
21930
21930
  let e = [];
21931
21931
  for (let { head: t } of i.state.selection.ranges)
@@ -21939,7 +21939,7 @@ const lr = /* @__PURE__ */ Mt.define({
21939
21939
  update(i, e) {
21940
21940
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, n) => i = vd(i, t, n)), i = i.map(e.changes);
21941
21941
  for (let t of e.effects)
21942
- if (t.is(Ul) && !jS(i, t.value.from, t.value.to)) {
21942
+ if (t.is(Yl) && !jS(i, t.value.from, t.value.to)) {
21943
21943
  let { preparePlaceholder: n } = e.state.facet(ov), r = n ? xe.replace({ widget: new $S(n(e.state, t.value)) }) : bd;
21944
21944
  i = i.update({ add: [r.range(t.value.from, t.value.to)] });
21945
21945
  } else t.is(Go) && (i = i.update({
@@ -21979,7 +21979,7 @@ function vd(i, e, t = e) {
21979
21979
  filter: (r, o) => r >= t || o <= e
21980
21980
  }) : i;
21981
21981
  }
21982
- function bl(i, e, t) {
21982
+ function yl(i, e, t) {
21983
21983
  var n;
21984
21984
  let r = null;
21985
21985
  return (n = i.field(lr, !1)) === null || n === void 0 || n.between(e, t, (o, s) => {
@@ -21997,9 +21997,9 @@ function nv(i, e) {
21997
21997
  }
21998
21998
  const WS = (i) => {
21999
21999
  for (let e of iv(i)) {
22000
- let t = vl(i.state, e.from, e.to);
22000
+ let t = bl(i.state, e.from, e.to);
22001
22001
  if (t)
22002
- return i.dispatch({ effects: nv(i.state, [Ul.of(t), rv(i, t)]) }), !0;
22002
+ return i.dispatch({ effects: nv(i.state, [Yl.of(t), rv(i, t)]) }), !0;
22003
22003
  }
22004
22004
  return !1;
22005
22005
  }, QS = (i) => {
@@ -22007,7 +22007,7 @@ const WS = (i) => {
22007
22007
  return !1;
22008
22008
  let e = [];
22009
22009
  for (let t of iv(i)) {
22010
- let n = bl(i.state, t.from, t.to);
22010
+ let n = yl(i.state, t.from, t.to);
22011
22011
  n && e.push(Go.of(n), rv(i, n, !1));
22012
22012
  }
22013
22013
  return e.length && i.dispatch({ effects: e }), e.length > 0;
@@ -22019,8 +22019,8 @@ function rv(i, e, t = !0) {
22019
22019
  const KS = (i) => {
22020
22020
  let { state: e } = i, t = [];
22021
22021
  for (let n = 0; n < e.doc.length; ) {
22022
- let r = i.lineBlockAt(n), o = vl(e, r.from, r.to);
22023
- o && t.push(Ul.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22022
+ let r = i.lineBlockAt(n), o = bl(e, r.from, r.to);
22023
+ o && t.push(Yl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22024
22024
  }
22025
22025
  return t.length && i.dispatch({ effects: nv(i.state, t) }), !!t.length;
22026
22026
  }, US = (i) => {
@@ -22050,7 +22050,7 @@ function sv(i) {
22050
22050
  }
22051
22051
  function lv(i, e) {
22052
22052
  let { state: t } = i, n = t.facet(ov), r = (s) => {
22053
- let l = i.lineBlockAt(i.posAtDOM(s.target)), a = bl(i.state, l.from, l.to);
22053
+ let l = i.lineBlockAt(i.posAtDOM(s.target)), a = yl(i.state, l.from, l.to);
22054
22054
  a && i.dispatch({ effects: Go.of(a) }), s.preventDefault();
22055
22055
  };
22056
22056
  if (n.placeholderDOM)
@@ -22081,7 +22081,7 @@ const JS = {
22081
22081
  domEventHandlers: {},
22082
22082
  foldingChanged: () => !1
22083
22083
  };
22084
- class Ha extends Ui {
22084
+ class za extends Ui {
22085
22085
  constructor(e, t) {
22086
22086
  super(), this.config = e, this.open = t;
22087
22087
  }
@@ -22096,7 +22096,7 @@ class Ha extends Ui {
22096
22096
  }
22097
22097
  }
22098
22098
  function XS(i = {}) {
22099
- let e = { ...JS, ...i }, t = new Ha(e, !0), n = new Ha(e, !1), r = ft.fromClass(class {
22099
+ let e = { ...JS, ...i }, t = new za(e, !0), n = new za(e, !1), r = ft.fromClass(class {
22100
22100
  constructor(s) {
22101
22101
  this.from = s.viewport.from, this.markers = this.buildMarkers(s);
22102
22102
  }
@@ -22106,7 +22106,7 @@ function XS(i = {}) {
22106
22106
  buildMarkers(s) {
22107
22107
  let l = new un();
22108
22108
  for (let a of s.viewportLineBlocks) {
22109
- let u = bl(s.state, a.from, a.to) ? n : vl(s.state, a.from, a.to) ? t : null;
22109
+ let u = yl(s.state, a.from, a.to) ? n : bl(s.state, a.from, a.to) ? t : null;
22110
22110
  u && l.add(a.from, a.from, u);
22111
22111
  }
22112
22112
  return l.finish();
@@ -22121,18 +22121,18 @@ function XS(i = {}) {
22121
22121
  return ((l = s.plugin(r)) === null || l === void 0 ? void 0 : l.markers) || Le.empty;
22122
22122
  },
22123
22123
  initialSpacer() {
22124
- return new Ha(e, !1);
22124
+ return new za(e, !1);
22125
22125
  },
22126
22126
  domEventHandlers: {
22127
22127
  ...o,
22128
22128
  click: (s, l, a) => {
22129
22129
  if (o.click && o.click(s, l, a))
22130
22130
  return !0;
22131
- let u = bl(s.state, l.from, l.to);
22131
+ let u = yl(s.state, l.from, l.to);
22132
22132
  if (u)
22133
22133
  return s.dispatch({ effects: Go.of(u) }), !0;
22134
- let c = vl(s.state, l.from, l.to);
22135
- return c ? (s.dispatch({ effects: Ul.of(c) }), !0) : !1;
22134
+ let c = bl(s.state, l.from, l.to);
22135
+ return c ? (s.dispatch({ effects: Yl.of(c) }), !0) : !1;
22136
22136
  }
22137
22137
  }
22138
22138
  }),
@@ -22189,25 +22189,25 @@ class $o {
22189
22189
  return new $o(e, t || {});
22190
22190
  }
22191
22191
  }
22192
- const Uu = /* @__PURE__ */ de.define(), av = /* @__PURE__ */ de.define({
22192
+ const Yu = /* @__PURE__ */ de.define(), av = /* @__PURE__ */ de.define({
22193
22193
  combine(i) {
22194
22194
  return i.length ? [i[0]] : null;
22195
22195
  }
22196
22196
  });
22197
- function za(i) {
22198
- let e = i.facet(Uu);
22197
+ function ja(i) {
22198
+ let e = i.facet(Yu);
22199
22199
  return e.length ? e : i.facet(av);
22200
22200
  }
22201
22201
  function uv(i, e) {
22202
22202
  let t = [tC], n;
22203
- return i instanceof $o && (i.module && t.push(le.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(av.of(i)) : n ? t.push(Uu.computeN([le.darkTheme], (r) => r.facet(le.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Uu.of(i)), t;
22203
+ return i instanceof $o && (i.module && t.push(le.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(av.of(i)) : n ? t.push(Yu.computeN([le.darkTheme], (r) => r.facet(le.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Yu.of(i)), t;
22204
22204
  }
22205
22205
  class eC {
22206
22206
  constructor(e) {
22207
- this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Wt(e.state), this.decorations = this.buildDeco(e, za(e.state)), this.decoratedTo = e.viewport.to;
22207
+ this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Wt(e.state), this.decorations = this.buildDeco(e, ja(e.state)), this.decoratedTo = e.viewport.to;
22208
22208
  }
22209
22209
  update(e) {
22210
- let t = Wt(e.state), n = za(e.state), r = n != za(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
22210
+ let t = Wt(e.state), n = ja(e.state), r = n != ja(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
22211
22211
  t.length < o.to && !r && t.type == this.tree.type && s >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = s) : (t != this.tree || e.viewportChanged || r) && (this.tree = t, this.decorations = this.buildDeco(e.view, n), this.decoratedTo = o.to);
22212
22212
  }
22213
22213
  buildDeco(e, t) {
@@ -22343,7 +22343,7 @@ function uC(i = {}) {
22343
22343
  return [fv.of(i), aC];
22344
22344
  }
22345
22345
  const cC = /* @__PURE__ */ new qe();
22346
- function Yu(i, e, t) {
22346
+ function Gu(i, e, t) {
22347
22347
  let n = i.prop(e < 0 ? qe.openedBy : qe.closedBy);
22348
22348
  if (n)
22349
22349
  return n;
@@ -22354,16 +22354,16 @@ function Yu(i, e, t) {
22354
22354
  }
22355
22355
  return null;
22356
22356
  }
22357
- function Gu(i) {
22357
+ function $u(i) {
22358
22358
  let e = i.type.prop(cC);
22359
22359
  return e ? e(i.node) : i;
22360
22360
  }
22361
22361
  function zi(i, e, t, n = {}) {
22362
22362
  let r = n.maxScanDistance || cv, o = n.brackets || hv, s = Wt(i), l = s.resolveInner(e, t);
22363
22363
  for (let a = l; a; a = a.parent) {
22364
- let u = Yu(a.type, t, o);
22364
+ let u = Gu(a.type, t, o);
22365
22365
  if (u && a.from < a.to) {
22366
- let c = Gu(a);
22366
+ let c = $u(a);
22367
22367
  if (c && (t > 0 ? e >= c.from && e < c.to : e > c.from && e <= c.to))
22368
22368
  return hC(i, e, t, a, c, u, o);
22369
22369
  }
@@ -22376,13 +22376,13 @@ function hC(i, e, t, n, r, o, s) {
22376
22376
  do
22377
22377
  if (t < 0 ? c.to <= n.from : c.from >= n.to) {
22378
22378
  if (u == 0 && o.indexOf(c.type.name) > -1 && c.from < c.to) {
22379
- let h = Gu(c);
22379
+ let h = $u(c);
22380
22380
  return { start: a, end: h ? { from: h.from, to: h.to } : void 0, matched: !0 };
22381
- } else if (Yu(c.type, t, s))
22381
+ } else if (Gu(c.type, t, s))
22382
22382
  u++;
22383
- else if (Yu(c.type, -t, s)) {
22383
+ else if (Gu(c.type, -t, s)) {
22384
22384
  if (u == 0) {
22385
- let h = Gu(c);
22385
+ let h = $u(c);
22386
22386
  return {
22387
22387
  start: a,
22388
22388
  end: h && h.from < h.to ? { from: h.from, to: h.to } : void 0,
@@ -22435,7 +22435,7 @@ for (let [i, e] of [
22435
22435
  ["property", "propertyName"]
22436
22436
  ])
22437
22437
  mC[i] = /* @__PURE__ */ gC(dC, e);
22438
- function ja(i, e) {
22438
+ function Wa(i, e) {
22439
22439
  xd.indexOf(i) > -1 || (xd.push(i), console.warn(e));
22440
22440
  }
22441
22441
  function gC(i, e) {
@@ -22444,7 +22444,7 @@ function gC(i, e) {
22444
22444
  let a = [];
22445
22445
  for (let u of l.split(".")) {
22446
22446
  let c = i[u] || H[u];
22447
- c ? typeof c == "function" ? a.length ? a = a.map(c) : ja(u, `Modifier ${u} used at start of tag`) : a.length ? ja(u, `Tag ${u} used as modifier`) : a = Array.isArray(c) ? c : [c] : ja(u, `Unknown highlighting tag ${u}`);
22447
+ c ? typeof c == "function" ? a.length ? a = a.map(c) : Wa(u, `Modifier ${u} used at start of tag`) : a.length ? Wa(u, `Tag ${u} used as modifier`) : a = Array.isArray(c) ? c : [c] : Wa(u, `Unknown highlighting tag ${u}`);
22448
22448
  }
22449
22449
  for (let u of a)
22450
22450
  t.push(u);
@@ -22578,7 +22578,7 @@ function wC(i, e, t = e.selection.ranges) {
22578
22578
  }
22579
22579
  return null;
22580
22580
  }
22581
- const $u = /* @__PURE__ */ hn.define(), SC = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ de.define(), mv = /* @__PURE__ */ de.define({
22581
+ const Ju = /* @__PURE__ */ hn.define(), SC = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ de.define(), mv = /* @__PURE__ */ de.define({
22582
22582
  combine(i) {
22583
22583
  return Pi(i, {
22584
22584
  minDepth: 100,
@@ -22595,10 +22595,10 @@ const $u = /* @__PURE__ */ hn.define(), SC = /* @__PURE__ */ hn.define(), CC = /
22595
22595
  return ji.empty;
22596
22596
  },
22597
22597
  update(i, e) {
22598
- let t = e.state.facet(mv), n = e.annotation($u);
22598
+ let t = e.state.facet(mv), n = e.annotation(Ju);
22599
22599
  if (n) {
22600
22600
  let a = si.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
22601
- return a ? c = yl(c, c.length, t.minDepth, a) : c = bv(c, e.startState.selection), new ji(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
22601
+ return a ? c = xl(c, c.length, t.minDepth, a) : c = bv(c, e.startState.selection), new ji(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
22602
22602
  }
22603
22603
  let r = e.annotation(SC);
22604
22604
  if ((r == "full" || r == "before") && (i = i.isolate()), e.annotation(Ct.addToHistory) === !1)
@@ -22619,13 +22619,13 @@ function MC(i = {}) {
22619
22619
  mv.of(i),
22620
22620
  le.domEventHandlers({
22621
22621
  beforeinput(e, t) {
22622
- let n = e.inputType == "historyUndo" ? pv : e.inputType == "historyRedo" ? Ju : null;
22622
+ let n = e.inputType == "historyUndo" ? pv : e.inputType == "historyRedo" ? Xu : null;
22623
22623
  return n ? (e.preventDefault(), n(t)) : !1;
22624
22624
  }
22625
22625
  })
22626
22626
  ];
22627
22627
  }
22628
- function Yl(i, e) {
22628
+ function Gl(i, e) {
22629
22629
  return function({ state: t, dispatch: n }) {
22630
22630
  if (!e && t.readOnly)
22631
22631
  return !1;
@@ -22636,7 +22636,7 @@ function Yl(i, e) {
22636
22636
  return o ? (n(o), !0) : !1;
22637
22637
  };
22638
22638
  }
22639
- const pv = /* @__PURE__ */ Yl(0, !1), Ju = /* @__PURE__ */ Yl(1, !1), AC = /* @__PURE__ */ Yl(0, !0), OC = /* @__PURE__ */ Yl(1, !0);
22639
+ const pv = /* @__PURE__ */ Gl(0, !1), Xu = /* @__PURE__ */ Gl(1, !1), AC = /* @__PURE__ */ Gl(0, !0), OC = /* @__PURE__ */ Gl(1, !0);
22640
22640
  class si {
22641
22641
  constructor(e, t, n, r, o) {
22642
22642
  this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = o;
@@ -22671,7 +22671,7 @@ class si {
22671
22671
  return new si(void 0, yi, void 0, void 0, e);
22672
22672
  }
22673
22673
  }
22674
- function yl(i, e, t, n) {
22674
+ function xl(i, e, t, n) {
22675
22675
  let r = e + 1 > t + 20 ? e - t - 1 : 0, o = i.slice(r, e);
22676
22676
  return o.push(n), o;
22677
22677
  }
@@ -22694,7 +22694,7 @@ const yi = [], PC = 200;
22694
22694
  function bv(i, e) {
22695
22695
  if (i.length) {
22696
22696
  let t = i[i.length - 1], n = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - PC));
22697
- return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), yl(i, i.length - 1, 1e9, t.setSelAfter(n)));
22697
+ return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), xl(i, i.length - 1, 1e9, t.setSelAfter(n)));
22698
22698
  } else
22699
22699
  return [si.selection([e])];
22700
22700
  }
@@ -22702,7 +22702,7 @@ function qC(i) {
22702
22702
  let e = i[i.length - 1], t = i.slice();
22703
22703
  return t[i.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), t;
22704
22704
  }
22705
- function Wa(i, e) {
22705
+ function Qa(i, e) {
22706
22706
  if (!i.length)
22707
22707
  return i;
22708
22708
  let t = i.length, n = yi;
@@ -22734,14 +22734,14 @@ class ji {
22734
22734
  addChanges(e, t, n, r, o) {
22735
22735
  let s = this.done, l = s[s.length - 1];
22736
22736
  return l && l.changes && !l.changes.empty && e.changes && (!n || _C.test(n)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(o, TC(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
22737
- n == "input.type.compose") ? s = yl(s, s.length - 1, r.minDepth, new si(e.changes.compose(l.changes), vv(Me.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, yi)) : s = yl(s, s.length, r.minDepth, e), new ji(s, yi, t, n);
22737
+ n == "input.type.compose") ? s = xl(s, s.length - 1, r.minDepth, new si(e.changes.compose(l.changes), vv(Me.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, yi)) : s = xl(s, s.length, r.minDepth, e), new ji(s, yi, t, n);
22738
22738
  }
22739
22739
  addSelection(e, t, n, r) {
22740
22740
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : yi;
22741
22741
  return o.length > 0 && t - this.prevTime < r && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && DC(o[o.length - 1], e) ? this : new ji(bv(this.done, e), this.undone, t, n);
22742
22742
  }
22743
22743
  addMapping(e) {
22744
- return new ji(Wa(this.done, e), Wa(this.undone, e), this.prevTime, this.prevUserEvent);
22744
+ return new ji(Qa(this.done, e), Qa(this.undone, e), this.prevTime, this.prevUserEvent);
22745
22745
  }
22746
22746
  pop(e, t, n) {
22747
22747
  let r = e == 0 ? this.done : this.undone;
@@ -22751,17 +22751,17 @@ class ji {
22751
22751
  if (n && o.selectionsAfter.length)
22752
22752
  return t.update({
22753
22753
  selection: o.selectionsAfter[o.selectionsAfter.length - 1],
22754
- annotations: $u.of({ side: e, rest: qC(r), selection: s }),
22754
+ annotations: Ju.of({ side: e, rest: qC(r), selection: s }),
22755
22755
  userEvent: e == 0 ? "select.undo" : "select.redo",
22756
22756
  scrollIntoView: !0
22757
22757
  });
22758
22758
  if (o.changes) {
22759
22759
  let l = r.length == 1 ? yi : r.slice(0, r.length - 1);
22760
- return o.mapped && (l = Wa(l, o.mapped)), t.update({
22760
+ return o.mapped && (l = Qa(l, o.mapped)), t.update({
22761
22761
  changes: o.changes,
22762
22762
  selection: o.startSelection,
22763
22763
  effects: o.effects,
22764
- annotations: $u.of({ side: e, rest: l, selection: s }),
22764
+ annotations: Ju.of({ side: e, rest: l, selection: s }),
22765
22765
  filter: !1,
22766
22766
  userEvent: e == 0 ? "undo" : "redo",
22767
22767
  scrollIntoView: !0
@@ -22773,8 +22773,8 @@ class ji {
22773
22773
  ji.empty = /* @__PURE__ */ new ji(yi, yi);
22774
22774
  const RC = [
22775
22775
  { key: "Mod-z", run: pv, preventDefault: !0 },
22776
- { key: "Mod-y", mac: "Mod-Shift-z", run: Ju, preventDefault: !0 },
22777
- { linux: "Ctrl-Shift-z", run: Ju, preventDefault: !0 },
22776
+ { key: "Mod-y", mac: "Mod-Shift-z", run: Xu, preventDefault: !0 },
22777
+ { linux: "Ctrl-Shift-z", run: Xu, preventDefault: !0 },
22778
22778
  { key: "Mod-u", run: AC, preventDefault: !0 },
22779
22779
  { key: "Alt-u", mac: "Mod-Shift-u", run: OC, preventDefault: !0 }
22780
22780
  ];
@@ -22788,18 +22788,18 @@ function Bi({ state: i, dispatch: e }, t) {
22788
22788
  let n = Kr(i.selection, t);
22789
22789
  return n.eq(i.selection, !0) ? !1 : (e(qi(i, n)), !0);
22790
22790
  }
22791
- function Gl(i, e) {
22791
+ function $l(i, e) {
22792
22792
  return Q.cursor(e ? i.to : i.from);
22793
22793
  }
22794
22794
  function yv(i, e) {
22795
- return Bi(i, (t) => t.empty ? i.moveByChar(t, e) : Gl(t, e));
22795
+ return Bi(i, (t) => t.empty ? i.moveByChar(t, e) : $l(t, e));
22796
22796
  }
22797
22797
  function Qt(i) {
22798
22798
  return i.textDirectionAt(i.state.selection.main.head) == ot.LTR;
22799
22799
  }
22800
22800
  const xv = (i) => yv(i, !Qt(i)), kv = (i) => yv(i, Qt(i));
22801
22801
  function wv(i, e) {
22802
- return Bi(i, (t) => t.empty ? i.moveByGroup(t, e) : Gl(t, e));
22802
+ return Bi(i, (t) => t.empty ? i.moveByGroup(t, e) : $l(t, e));
22803
22803
  }
22804
22804
  const EC = (i) => wv(i, !Qt(i)), LC = (i) => wv(i, Qt(i));
22805
22805
  function IC(i, e, t) {
@@ -22808,7 +22808,7 @@ function IC(i, e, t) {
22808
22808
  let n = e.to - e.from;
22809
22809
  return n && (n > 2 || /[^\s,.;:]/.test(i.sliceDoc(e.from, e.to))) || e.firstChild;
22810
22810
  }
22811
- function $l(i, e, t) {
22811
+ function Jl(i, e, t) {
22812
22812
  let n = Wt(i).resolveInner(e.head), r = t ? qe.closedBy : qe.openedBy;
22813
22813
  for (let a = e.head; ; ) {
22814
22814
  let u = t ? n.childAfter(a) : n.childBefore(a);
@@ -22819,11 +22819,11 @@ function $l(i, e, t) {
22819
22819
  let o = n.type.prop(r), s, l;
22820
22820
  return o && (s = t ? zi(i, n.from, 1) : zi(i, n.to, -1)) && s.matched ? l = t ? s.end.to : s.end.from : l = t ? n.to : n.from, Q.cursor(l, t ? -1 : 1);
22821
22821
  }
22822
- const VC = (i) => Bi(i, (e) => $l(i.state, e, !Qt(i))), FC = (i) => Bi(i, (e) => $l(i.state, e, Qt(i)));
22822
+ const VC = (i) => Bi(i, (e) => Jl(i.state, e, !Qt(i))), FC = (i) => Bi(i, (e) => Jl(i.state, e, Qt(i)));
22823
22823
  function Sv(i, e) {
22824
22824
  return Bi(i, (t) => {
22825
22825
  if (!t.empty)
22826
- return Gl(t, e);
22826
+ return $l(t, e);
22827
22827
  let n = i.moveVertically(t, e);
22828
22828
  return n.head != t.head ? n : i.moveToLineBoundary(t, e);
22829
22829
  });
@@ -22847,7 +22847,7 @@ function Av(i) {
22847
22847
  };
22848
22848
  }
22849
22849
  function Ov(i, e) {
22850
- let t = Av(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : Gl(s, e));
22850
+ let t = Av(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : $l(s, e));
22851
22851
  if (r.eq(n.selection))
22852
22852
  return !1;
22853
22853
  let o;
@@ -22857,7 +22857,7 @@ function Ov(i, e) {
22857
22857
  }
22858
22858
  return i.dispatch(qi(n, r), { effects: o }), !0;
22859
22859
  }
22860
- const wd = (i) => Ov(i, !1), Xu = (i) => Ov(i, !0);
22860
+ const wd = (i) => Ov(i, !1), Zu = (i) => Ov(i, !0);
22861
22861
  function En(i, e, t) {
22862
22862
  let n = i.lineBlockAt(e.head), r = i.moveToLineBoundary(e, t);
22863
22863
  if (r.head == e.head && r.head != (t ? n.to : n.from) && (r = i.moveToLineBoundary(e, t, !1)), !t && r.head == n.from && n.length) {
@@ -22893,7 +22893,7 @@ const Dv = (i) => Tv(i, !Qt(i)), Pv = (i) => Tv(i, Qt(i));
22893
22893
  function qv(i, e) {
22894
22894
  return Mi(i, (t) => i.moveByGroup(t, e));
22895
22895
  }
22896
- const YC = (i) => qv(i, !Qt(i)), GC = (i) => qv(i, Qt(i)), $C = (i) => Mi(i, (e) => $l(i.state, e, !Qt(i))), JC = (i) => Mi(i, (e) => $l(i.state, e, Qt(i)));
22896
+ const YC = (i) => qv(i, !Qt(i)), GC = (i) => qv(i, Qt(i)), $C = (i) => Mi(i, (e) => Jl(i.state, e, !Qt(i))), JC = (i) => Mi(i, (e) => Jl(i.state, e, Qt(i)));
22897
22897
  function Bv(i, e) {
22898
22898
  return Mi(i, (t) => i.moveVertically(t, e));
22899
22899
  }
@@ -22902,7 +22902,7 @@ function Ev(i, e) {
22902
22902
  return Mi(i, (t) => i.moveVertically(t, e, Av(i).height));
22903
22903
  }
22904
22904
  const Sd = (i) => Ev(i, !1), Cd = (i) => Ev(i, !0), XC = (i) => Mi(i, (e) => En(i, e, !0)), ZC = (i) => Mi(i, (e) => En(i, e, !1)), eM = (i) => Mi(i, (e) => En(i, e, !Qt(i))), tM = (i) => Mi(i, (e) => En(i, e, Qt(i))), iM = (i) => Mi(i, (e) => Q.cursor(i.lineBlockAt(e.head).from)), nM = (i) => Mi(i, (e) => Q.cursor(i.lineBlockAt(e.head).to)), Md = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: 0 })), !0), Ad = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.doc.length })), !0), Od = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: 0 })), !0), Td = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: i.doc.length })), !0), rM = ({ state: i, dispatch: e }) => (e(i.update({ selection: { anchor: 0, head: i.doc.length }, userEvent: "select" })), !0), oM = ({ state: i, dispatch: e }) => {
22905
- let t = Jl(i).map(({ from: n, to: r }) => Q.range(n, Math.min(r + 1, i.doc.length)));
22905
+ let t = Xl(i).map(({ from: n, to: r }) => Q.range(n, Math.min(r + 1, i.doc.length)));
22906
22906
  return e(i.update({ selection: Q.create(t), userEvent: "select" })), !0;
22907
22907
  }, sM = ({ state: i, dispatch: e }) => {
22908
22908
  let t = Kr(i.selection, (n) => {
@@ -22974,14 +22974,14 @@ const Iv = (i, e, t) => Jo(i, (n) => {
22974
22974
  if (t && !e && r > s.from && r < s.from + 200 && !/[^ \t]/.test(l = s.text.slice(0, r - s.from))) {
22975
22975
  if (l[l.length - 1] == " ")
22976
22976
  return r - 1;
22977
- let u = Qr(l, o.tabSize), c = u % pl(o) || pl(o);
22977
+ let u = Qr(l, o.tabSize), c = u % vl(o) || vl(o);
22978
22978
  for (let h = 0; h < c && l[l.length - 1 - h] == " "; h++)
22979
22979
  r--;
22980
22980
  a = r;
22981
22981
  } else
22982
22982
  a = Vt(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 = Vt(s.text, a - s.from, !1, !1) + s.from);
22983
22983
  return a;
22984
- }), Zu = (i) => Iv(i, !1, !0), Vv = (i) => Iv(i, !0, !1), Fv = (i, e) => Jo(i, (t) => {
22984
+ }), ec = (i) => Iv(i, !1, !0), Vv = (i) => Iv(i, !0, !1), Fv = (i, e) => Jo(i, (t) => {
22985
22985
  let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
22986
22986
  for (let l = null; ; ) {
22987
22987
  if (n == (e ? o.to : o.from)) {
@@ -23025,7 +23025,7 @@ const Iv = (i, e, t) => Jo(i, (n) => {
23025
23025
  });
23026
23026
  return t.changes.empty ? !1 : (e(i.update(t, { scrollIntoView: !0, userEvent: "move.character" })), !0);
23027
23027
  };
23028
- function Jl(i) {
23028
+ function Xl(i) {
23029
23029
  let e = [], t = -1;
23030
23030
  for (let n of i.selection.ranges) {
23031
23031
  let r = i.doc.lineAt(n.from), o = i.doc.lineAt(n.to);
@@ -23042,7 +23042,7 @@ function Hv(i, e, t) {
23042
23042
  if (i.readOnly)
23043
23043
  return !1;
23044
23044
  let n = [], r = [];
23045
- for (let o of Jl(i)) {
23045
+ for (let o of Xl(i)) {
23046
23046
  if (t ? o.to == i.doc.length : o.from == 0)
23047
23047
  continue;
23048
23048
  let s = i.doc.lineAt(t ? o.to + 1 : o.from - 1), l = s.length + 1;
@@ -23068,14 +23068,14 @@ function zv(i, e, t) {
23068
23068
  if (i.readOnly)
23069
23069
  return !1;
23070
23070
  let n = [];
23071
- for (let r of Jl(i))
23071
+ for (let r of Xl(i))
23072
23072
  t ? n.push({ from: r.from, insert: i.doc.slice(r.from, r.to) + i.lineBreak }) : n.push({ from: r.to, insert: i.lineBreak + i.doc.slice(r.from, r.to) });
23073
23073
  return e(i.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
23074
23074
  }
23075
23075
  const bM = ({ state: i, dispatch: e }) => zv(i, e, !1), yM = ({ state: i, dispatch: e }) => zv(i, e, !0), xM = (i) => {
23076
23076
  if (i.state.readOnly)
23077
23077
  return !1;
23078
- let { state: e } = i, t = e.changes(Jl(e).map(({ from: r, to: o }) => (r > 0 ? r-- : o < e.doc.length && o++, { from: r, to: o }))), n = Kr(e.selection, (r) => {
23078
+ let { state: e } = i, t = e.changes(Xl(e).map(({ from: r, to: o }) => (r > 0 ? r-- : o < e.doc.length && o++, { from: r, to: o }))), n = Kr(e.selection, (r) => {
23079
23079
  let o;
23080
23080
  if (i.lineWrapping) {
23081
23081
  let s = i.lineBlockAt(r.head), l = i.coordsAtPos(r.head, r.assoc || 1);
@@ -23099,7 +23099,7 @@ function jv(i) {
23099
23099
  let n = e.changeByRange((r) => {
23100
23100
  let { from: o, to: s } = r, l = e.doc.lineAt(o), a = !i && o == s && kM(e, o);
23101
23101
  i && (o = s = (s <= l.to ? l : e.doc.lineAt(s)).to);
23102
- let u = new Kl(e, { simulateBreak: o, simulateDoubleBreak: !!a }), c = jc(u, o);
23102
+ let u = new Ul(e, { simulateBreak: o, simulateDoubleBreak: !!a }), c = jc(u, o);
23103
23103
  for (c == null && (c = Qr(/^\s*/.exec(e.doc.lineAt(o).text)[0], e.tabSize)); s < l.to && /\s/.test(l.text[s - l.from]); )
23104
23104
  s++;
23105
23105
  a ? { from: o, to: s } = a : o > l.from && o < l.from + 100 && !/\S/.test(l.text.slice(0, o)) && (o = l.from);
@@ -23130,7 +23130,7 @@ function Uc(i, e) {
23130
23130
  const SM = ({ state: i, dispatch: e }) => {
23131
23131
  if (i.readOnly)
23132
23132
  return !1;
23133
- let t = /* @__PURE__ */ Object.create(null), n = new Kl(i, { overrideIndentation: (o) => {
23133
+ let t = /* @__PURE__ */ Object.create(null), n = new Ul(i, { overrideIndentation: (o) => {
23134
23134
  let s = t[o];
23135
23135
  return s ?? -1;
23136
23136
  } }), r = Uc(i, (o, s, l) => {
@@ -23143,12 +23143,12 @@ const SM = ({ state: i, dispatch: e }) => {
23143
23143
  });
23144
23144
  return r.changes.empty || e(i.update(r, { userEvent: "indent" })), !0;
23145
23145
  }, Wv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Uc(i, (t, n) => {
23146
- n.push({ from: t.from, insert: i.facet(Ql) });
23146
+ n.push({ from: t.from, insert: i.facet(Kl) });
23147
23147
  }), { userEvent: "input.indent" })), !0), Qv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Uc(i, (t, n) => {
23148
23148
  let r = /^\s*/.exec(t.text)[0];
23149
23149
  if (!r)
23150
23150
  return;
23151
- let o = Qr(r, i.tabSize), s = 0, l = _o(i, Math.max(0, o - pl(i)));
23151
+ let o = Qr(r, i.tabSize), s = 0, l = _o(i, Math.max(0, o - vl(i)));
23152
23152
  for (; s < r.length && s < l.length && r.charCodeAt(s) == l.charCodeAt(s); )
23153
23153
  s++;
23154
23154
  n.push({ from: t.from + s, to: t.from + r.length, insert: l.slice(s) });
@@ -23160,12 +23160,12 @@ const SM = ({ state: i, dispatch: e }) => {
23160
23160
  { key: "Ctrl-a", run: WC, shift: iM },
23161
23161
  { key: "Ctrl-e", run: QC, shift: nM },
23162
23162
  { key: "Ctrl-d", run: Vv },
23163
- { key: "Ctrl-h", run: Zu },
23163
+ { key: "Ctrl-h", run: ec },
23164
23164
  { key: "Ctrl-k", run: hM },
23165
23165
  { key: "Ctrl-Alt-h", run: Nv },
23166
23166
  { key: "Ctrl-o", run: mM },
23167
23167
  { key: "Ctrl-t", run: gM },
23168
- { key: "Ctrl-v", run: Xu }
23168
+ { key: "Ctrl-v", run: Zu }
23169
23169
  ], AM = /* @__PURE__ */ [
23170
23170
  { key: "ArrowLeft", run: xv, shift: Dv, preventDefault: !0 },
23171
23171
  { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: EC, shift: YC, preventDefault: !0 },
@@ -23178,16 +23178,16 @@ const SM = ({ state: i, dispatch: e }) => {
23178
23178
  { mac: "Ctrl-ArrowUp", run: wd, shift: Sd },
23179
23179
  { key: "ArrowDown", run: Mv, shift: Rv, preventDefault: !0 },
23180
23180
  { mac: "Cmd-ArrowDown", run: Ad, shift: Td },
23181
- { mac: "Ctrl-ArrowDown", run: Xu, shift: Cd },
23181
+ { mac: "Ctrl-ArrowDown", run: Zu, shift: Cd },
23182
23182
  { key: "PageUp", run: wd, shift: Sd },
23183
- { key: "PageDown", run: Xu, shift: Cd },
23183
+ { key: "PageDown", run: Zu, shift: Cd },
23184
23184
  { key: "Home", run: HC, shift: ZC, preventDefault: !0 },
23185
23185
  { key: "Mod-Home", run: Md, shift: Od },
23186
23186
  { key: "End", run: NC, shift: XC, preventDefault: !0 },
23187
23187
  { key: "Mod-End", run: Ad, shift: Td },
23188
23188
  { key: "Enter", run: Dd, shift: Dd },
23189
23189
  { key: "Mod-a", run: rM },
23190
- { key: "Backspace", run: Zu, shift: Zu, preventDefault: !0 },
23190
+ { key: "Backspace", run: ec, shift: ec, preventDefault: !0 },
23191
23191
  { key: "Delete", run: Vv, preventDefault: !0 },
23192
23192
  { key: "Mod-Backspace", mac: "Alt-Backspace", run: Nv, preventDefault: !0 },
23193
23193
  { key: "Mod-Delete", mac: "Alt-Delete", run: cM, preventDefault: !0 },
@@ -23300,7 +23300,7 @@ class Uv {
23300
23300
  return new Yv(e, t, n, r, o);
23301
23301
  this.re = new RegExp(t, Yc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter();
23302
23302
  let s = e.lineAt(r);
23303
- this.curLineStart = s.from, this.matchPos = xl(e, r), this.getLine(this.curLineStart);
23303
+ this.curLineStart = s.from, this.matchPos = kl(e, r), this.getLine(this.curLineStart);
23304
23304
  }
23305
23305
  getLine(e) {
23306
23306
  this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
@@ -23317,7 +23317,7 @@ class Uv {
23317
23317
  let t = this.matchPos <= this.to && this.re.exec(this.curLine);
23318
23318
  if (t) {
23319
23319
  let n = this.curLineStart + t.index, r = n + t[0].length;
23320
- if (this.matchPos = xl(this.text, r + (n == r ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t)))
23320
+ if (this.matchPos = kl(this.text, r + (n == r ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t)))
23321
23321
  return this.value = { from: n, to: r, match: t }, this;
23322
23322
  e = this.matchPos - this.curLineStart;
23323
23323
  } else if (this.curLineStart + this.curLine.length < this.to)
@@ -23327,7 +23327,7 @@ class Uv {
23327
23327
  }
23328
23328
  }
23329
23329
  }
23330
- const Qa = /* @__PURE__ */ new WeakMap();
23330
+ const Ka = /* @__PURE__ */ new WeakMap();
23331
23331
  class Pr {
23332
23332
  constructor(e, t) {
23333
23333
  this.from = e, this.text = t;
@@ -23336,20 +23336,20 @@ class Pr {
23336
23336
  return this.from + this.text.length;
23337
23337
  }
23338
23338
  static get(e, t, n) {
23339
- let r = Qa.get(e);
23339
+ let r = Ka.get(e);
23340
23340
  if (!r || r.from >= n || r.to <= t) {
23341
23341
  let l = new Pr(t, e.sliceString(t, n));
23342
- return Qa.set(e, l), l;
23342
+ return Ka.set(e, l), l;
23343
23343
  }
23344
23344
  if (r.from == t && r.to == n)
23345
23345
  return r;
23346
23346
  let { text: o, from: s } = r;
23347
- return s > t && (o = e.sliceString(t, s) + o, s = t), r.to < n && (o += e.sliceString(r.to, n)), Qa.set(e, new Pr(s, o)), new Pr(t, o.slice(t - s, n - s));
23347
+ return s > t && (o = e.sliceString(t, s) + o, s = t), r.to < n && (o += e.sliceString(r.to, n)), Ka.set(e, new Pr(s, o)), new Pr(t, o.slice(t - s, n - s));
23348
23348
  }
23349
23349
  }
23350
23350
  class Yv {
23351
23351
  constructor(e, t, n, r, o) {
23352
- this.text = e, this.to = o, this.done = !1, this.value = Kv, this.matchPos = xl(e, r), this.re = new RegExp(t, Yc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Pr.get(e, r, this.chunkEnd(
23352
+ this.text = e, this.to = o, this.done = !1, this.value = Kv, this.matchPos = kl(e, r), this.re = new RegExp(t, Yc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Pr.get(e, r, this.chunkEnd(
23353
23353
  r + 5e3
23354
23354
  /* Chunk.Base */
23355
23355
  ));
@@ -23363,7 +23363,7 @@ class Yv {
23363
23363
  if (t && !t[0] && t.index == e && (this.re.lastIndex = e + 1, t = this.re.exec(this.flat.text)), t) {
23364
23364
  let n = this.flat.from + t.index, r = n + t[0].length;
23365
23365
  if ((this.flat.to >= this.to || t.index + t[0].length <= this.flat.text.length - 10) && (!this.test || this.test(n, r, t)))
23366
- return this.value = { from: n, to: r, match: t }, this.matchPos = xl(this.text, r + (n == r ? 1 : 0)), this;
23366
+ return this.value = { from: n, to: r, match: t }, this.matchPos = kl(this.text, r + (n == r ? 1 : 0)), this;
23367
23367
  }
23368
23368
  if (this.flat.to == this.to)
23369
23369
  return this.done = !0, this;
@@ -23381,7 +23381,7 @@ function DM(i) {
23381
23381
  return !1;
23382
23382
  }
23383
23383
  }
23384
- function xl(i, e) {
23384
+ function kl(i, e) {
23385
23385
  if (e >= i.length)
23386
23386
  return e;
23387
23387
  let t = i.lineAt(e), n;
@@ -23389,7 +23389,7 @@ function xl(i, e) {
23389
23389
  e++;
23390
23390
  return e;
23391
23391
  }
23392
- function ec(i) {
23392
+ function tc(i) {
23393
23393
  let e = String(i.state.doc.lineAt(i.state.selection.main.head).number), t = Ye("input", { class: "cm-textfield", name: "line", value: e }), n = Ye("form", {
23394
23394
  class: "cm-gotoLine",
23395
23395
  onkeydown: (o) => {
@@ -23432,12 +23432,12 @@ const vo = /* @__PURE__ */ Me.define(), qd = /* @__PURE__ */ Mt.define({
23432
23432
  t.is(vo) && (i = t.value);
23433
23433
  return i;
23434
23434
  },
23435
- provide: (i) => Po.from(i, (e) => e ? ec : null)
23435
+ provide: (i) => Po.from(i, (e) => e ? tc : null)
23436
23436
  }), PM = (i) => {
23437
- let e = Do(i, ec);
23437
+ let e = Do(i, tc);
23438
23438
  if (!e) {
23439
23439
  let t = [vo.of(!0)];
23440
- i.state.field(qd, !1) == null && t.push(Me.appendConfig.of([qd, qM])), i.dispatch({ effects: t }), e = Do(i, ec);
23440
+ i.state.field(qd, !1) == null && t.push(Me.appendConfig.of([qd, qM])), i.dispatch({ effects: t }), e = Do(i, tc);
23441
23441
  }
23442
23442
  return e && e.dom.querySelector("input").select(), !0;
23443
23443
  }, qM = /* @__PURE__ */ le.baseTheme({
@@ -23616,7 +23616,7 @@ function vr(i, e, t, n) {
23616
23616
  return new zr(e.doc, i.unquoted, t, n, i.caseSensitive ? void 0 : (r) => r.toLowerCase(), i.wholeWord ? jM(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
23617
23617
  }
23618
23618
  function jM(i, e) {
23619
- return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(kl(r, t - o)) != st.Word || e(wl(r, t - o)) != st.Word) && (e(wl(r, n - o)) != st.Word || e(kl(r, n - o)) != st.Word));
23619
+ return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(wl(r, t - o)) != st.Word || e(Sl(r, t - o)) != st.Word) && (e(Sl(r, n - o)) != st.Word || e(wl(r, n - o)) != st.Word));
23620
23620
  }
23621
23621
  class WM extends $v {
23622
23622
  constructor(e) {
@@ -23672,14 +23672,14 @@ function br(i, e, t, n) {
23672
23672
  test: i.wholeWord ? QM(e.charCategorizer(e.selection.main.head)) : void 0
23673
23673
  }, t, n);
23674
23674
  }
23675
- function kl(i, e) {
23675
+ function wl(i, e) {
23676
23676
  return i.slice(Vt(i, e, !1), e);
23677
23677
  }
23678
- function wl(i, e) {
23678
+ function Sl(i, e) {
23679
23679
  return i.slice(e, Vt(i, e));
23680
23680
  }
23681
23681
  function QM(i) {
23682
- return (e, t, n) => !n[0].length || (i(kl(n.input, n.index)) != st.Word || i(wl(n.input, n.index)) != st.Word) && (i(wl(n.input, n.index + n[0].length)) != st.Word || i(kl(n.input, n.index + n[0].length)) != st.Word);
23682
+ return (e, t, n) => !n[0].length || (i(wl(n.input, n.index)) != st.Word || i(Sl(n.input, n.index)) != st.Word) && (i(Sl(n.input, n.index + n[0].length)) != st.Word || i(wl(n.input, n.index + n[0].length)) != st.Word);
23683
23683
  }
23684
23684
  class KM extends $v {
23685
23685
  nextMatch(e, t, n) {
@@ -23739,16 +23739,16 @@ class KM extends $v {
23739
23739
  }
23740
23740
  const Ro = /* @__PURE__ */ Me.define(), Gc = /* @__PURE__ */ Me.define(), Tn = /* @__PURE__ */ Mt.define({
23741
23741
  create(i) {
23742
- return new Ka(tc(i).create(), null);
23742
+ return new Ua(ic(i).create(), null);
23743
23743
  },
23744
23744
  update(i, e) {
23745
23745
  for (let t of e.effects)
23746
- t.is(Ro) ? i = new Ka(t.value.create(), i.panel) : t.is(Gc) && (i = new Ka(i.query, t.value ? $c : null));
23746
+ t.is(Ro) ? i = new Ua(t.value.create(), i.panel) : t.is(Gc) && (i = new Ua(i.query, t.value ? $c : null));
23747
23747
  return i;
23748
23748
  },
23749
23749
  provide: (i) => Po.from(i, (e) => e.panel)
23750
23750
  });
23751
- class Ka {
23751
+ class Ua {
23752
23752
  constructor(e, t) {
23753
23753
  this.query = e, this.panel = t;
23754
23754
  }
@@ -23785,7 +23785,7 @@ function Xo(i) {
23785
23785
  return t && t.query.spec.valid ? i(e, t) : Zv(e);
23786
23786
  };
23787
23787
  }
23788
- const Sl = /* @__PURE__ */ Xo((i, { query: e }) => {
23788
+ const Cl = /* @__PURE__ */ Xo((i, { query: e }) => {
23789
23789
  let { to: t } = i.state.selection.main, n = e.nextMatch(i.state, t, t);
23790
23790
  if (!n)
23791
23791
  return !1;
@@ -23795,7 +23795,7 @@ const Sl = /* @__PURE__ */ Xo((i, { query: e }) => {
23795
23795
  effects: [Jc(i, n), o.scrollToMatch(r.main, i)],
23796
23796
  userEvent: "select.search"
23797
23797
  }), Xv(i), !0;
23798
- }), Cl = /* @__PURE__ */ Xo((i, { query: e }) => {
23798
+ }), Ml = /* @__PURE__ */ Xo((i, { query: e }) => {
23799
23799
  let { state: t } = i, { from: n } = t.selection.main, r = e.prevMatch(t, n, n);
23800
23800
  if (!r)
23801
23801
  return !1;
@@ -23860,7 +23860,7 @@ const Sl = /* @__PURE__ */ Xo((i, { query: e }) => {
23860
23860
  function $c(i) {
23861
23861
  return i.state.facet(Ur).createPanel(i);
23862
23862
  }
23863
- function tc(i, e) {
23863
+ function ic(i, e) {
23864
23864
  var t, n, r, o, s;
23865
23865
  let l = i.selection.main, a = l.empty || l.to > l.from + 100 ? "" : i.sliceDoc(l.from, l.to);
23866
23866
  if (e && !a)
@@ -23887,13 +23887,13 @@ const Zv = (i) => {
23887
23887
  if (e && e.panel) {
23888
23888
  let t = Jv(i);
23889
23889
  if (t && t != i.root.activeElement) {
23890
- let n = tc(i.state, e.query.spec);
23890
+ let n = ic(i.state, e.query.spec);
23891
23891
  n.valid && i.dispatch({ effects: Ro.of(n) }), t.focus(), t.select();
23892
23892
  }
23893
23893
  } else
23894
23894
  i.dispatch({ effects: [
23895
23895
  Gc.of(!0),
23896
- e ? Ro.of(tc(i.state, e.query.spec)) : Me.appendConfig.of(iA)
23896
+ e ? Ro.of(ic(i.state, e.query.spec)) : Me.appendConfig.of(iA)
23897
23897
  ] });
23898
23898
  return !0;
23899
23899
  }, e0 = (i) => {
@@ -23904,8 +23904,8 @@ const Zv = (i) => {
23904
23904
  return t && t.dom.contains(i.root.activeElement) && i.focus(), i.dispatch({ effects: Gc.of(!1) }), !0;
23905
23905
  }, ZM = [
23906
23906
  { key: "Mod-f", run: Zv, scope: "editor search-panel" },
23907
- { key: "F3", run: Sl, shift: Cl, scope: "editor search-panel", preventDefault: !0 },
23908
- { key: "Mod-g", run: Sl, shift: Cl, scope: "editor search-panel", preventDefault: !0 },
23907
+ { key: "F3", run: Cl, shift: Ml, scope: "editor search-panel", preventDefault: !0 },
23908
+ { key: "Mod-g", run: Cl, shift: Ml, scope: "editor search-panel", preventDefault: !0 },
23909
23909
  { key: "Escape", run: e0, scope: "editor search-panel" },
23910
23910
  { key: "Mod-Shift-l", run: JM },
23911
23911
  { key: "Mod-Alt-g", run: PM },
@@ -23958,8 +23958,8 @@ class eA {
23958
23958
  }
23959
23959
  this.dom = Ye("div", { onkeydown: (r) => this.keydown(r), class: "cm-search" }, [
23960
23960
  this.searchField,
23961
- n("next", () => Sl(e), [ai(e, "next")]),
23962
- n("prev", () => Cl(e), [ai(e, "previous")]),
23961
+ n("next", () => Cl(e), [ai(e, "next")]),
23962
+ n("prev", () => Ml(e), [ai(e, "previous")]),
23963
23963
  n("select", () => $M(e), [ai(e, "all")]),
23964
23964
  Ye("label", null, [this.caseField, ai(e, "match case")]),
23965
23965
  Ye("label", null, [this.reField, ai(e, "regexp")]),
@@ -23989,7 +23989,7 @@ class eA {
23989
23989
  e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Ro.of(e) }));
23990
23990
  }
23991
23991
  keydown(e) {
23992
- aw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Cl : Sl)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), _d(this.view));
23992
+ aw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Ml : Cl)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), _d(this.view));
23993
23993
  }
23994
23994
  update(e) {
23995
23995
  for (let t of e.transactions)
@@ -24179,7 +24179,7 @@ function sA(i) {
24179
24179
  let e = Ld.get(i);
24180
24180
  return e || Ld.set(i, e = rA(i)), e;
24181
24181
  }
24182
- const Ml = /* @__PURE__ */ Me.define(), Eo = /* @__PURE__ */ Me.define();
24182
+ const Al = /* @__PURE__ */ Me.define(), Eo = /* @__PURE__ */ Me.define();
24183
24183
  class lA {
24184
24184
  constructor(e) {
24185
24185
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
@@ -24342,7 +24342,7 @@ function cA(i) {
24342
24342
  position: 80
24343
24343
  }), e.sort((t, n) => t.position - n.position).map((t) => t.render);
24344
24344
  }
24345
- function Ua(i, e, t) {
24345
+ function Ya(i, e, t) {
24346
24346
  if (i <= t)
24347
24347
  return { from: 0, to: i };
24348
24348
  if (e < 0 && (e = 0), e <= i >> 1) {
@@ -24360,7 +24360,7 @@ class hA {
24360
24360
  key: this
24361
24361
  }, this.space = null, this.currentClass = "";
24362
24362
  let r = e.state.field(t), { options: o, selected: s } = r.open, l = e.state.facet(Dt);
24363
- this.optionContent = cA(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Ua(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) => {
24363
+ this.optionContent = cA(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Ya(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) => {
24364
24364
  let { options: u } = e.state.field(t).open;
24365
24365
  for (let c = a.target, h; c && c != this.dom; c = c.parentNode)
24366
24366
  if (c.nodeName == "LI" && (h = /-(\d+)$/.exec(c.id)) && +h[1] < u.length) {
@@ -24385,7 +24385,7 @@ class hA {
24385
24385
  let n = e.state.field(this.stateField), r = e.startState.field(this.stateField);
24386
24386
  if (this.updateTooltipClass(e.state), n != r) {
24387
24387
  let { options: o, selected: s, disabled: l } = n.open;
24388
- (!r.open || r.open.options != o) && (this.range = Ua(o.length, s, e.state.facet(Dt).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);
24388
+ (!r.open || r.open.options != o) && (this.range = Ya(o.length, s, e.state.facet(Dt).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);
24389
24389
  }
24390
24390
  }
24391
24391
  updateTooltipClass(e) {
@@ -24403,7 +24403,7 @@ class hA {
24403
24403
  }
24404
24404
  updateSel() {
24405
24405
  let e = this.view.state.field(this.stateField), t = e.open;
24406
- (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Ua(t.options.length, t.selected, this.view.state.facet(Dt).maxRenderedOptions), this.showOptions(t.options, e.id));
24406
+ (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Ya(t.options.length, t.selected, this.view.state.facet(Dt).maxRenderedOptions), this.showOptions(t.options, e.id));
24407
24407
  let n = this.updateSelectedOption(t.selected);
24408
24408
  if (n) {
24409
24409
  this.destroyInfo();
@@ -24574,12 +24574,12 @@ class Sr {
24574
24574
  return new Sr(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
24575
24575
  }
24576
24576
  }
24577
- class Al {
24577
+ class Ol {
24578
24578
  constructor(e, t, n) {
24579
24579
  this.active = e, this.id = t, this.open = n;
24580
24580
  }
24581
24581
  static start() {
24582
- return new Al(bA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
24582
+ return new Ol(bA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
24583
24583
  }
24584
24584
  update(e) {
24585
24585
  let { state: t } = e, n = t.facet(Dt), o = (n.override || t.languageDataAt("autocomplete", ir(t)).map(sA)).map((a) => (this.active.find((c) => c.source == a) || new xi(
@@ -24599,7 +24599,7 @@ class Al {
24599
24599
  ) : a));
24600
24600
  for (let a of e.effects)
24601
24601
  a.is(o0) && (s = s && s.setSelected(a.value, this.id));
24602
- return o == this.active && s == this.open ? this : new Al(o, this.id, s);
24602
+ return o == this.active && s == this.open ? this : new Ol(o, this.id, s);
24603
24603
  }
24604
24604
  get tooltip() {
24605
24605
  return this.open ? this.open.tooltip : null;
@@ -24666,7 +24666,7 @@ class xi {
24666
24666
  /* State.Pending */
24667
24667
  )), r = r.updateFor(e, n);
24668
24668
  for (let o of e.effects)
24669
- if (o.is(Ml))
24669
+ if (o.is(Al))
24670
24670
  r = new xi(r.source, 1, o.value);
24671
24671
  else if (o.is(Eo))
24672
24672
  r = new xi(
@@ -24735,13 +24735,13 @@ const Xc = /* @__PURE__ */ Me.define({
24735
24735
  }
24736
24736
  }), o0 = /* @__PURE__ */ Me.define(), oi = /* @__PURE__ */ Mt.define({
24737
24737
  create() {
24738
- return Al.start();
24738
+ return Ol.start();
24739
24739
  },
24740
24740
  update(i, e) {
24741
24741
  return i.update(e);
24742
24742
  },
24743
24743
  provide: (i) => [
24744
- jl.from(i, (e) => e.tooltip),
24744
+ Wl.from(i, (e) => e.tooltip),
24745
24745
  le.contentAttributes.from(i, (e) => e.attrs)
24746
24746
  ]
24747
24747
  });
@@ -24768,7 +24768,7 @@ function Ps(i, e = "option") {
24768
24768
  const kA = (i) => {
24769
24769
  let e = i.state.field(oi, !1);
24770
24770
  return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(Dt).interactionDelay ? !1 : Zc(i, e.open.options[e.open.selected]);
24771
- }, Ya = (i) => i.state.field(oi, !1) ? (i.dispatch({ effects: Ml.of(!0) }), !0) : !1, wA = (i) => {
24771
+ }, Ga = (i) => i.state.field(oi, !1) ? (i.dispatch({ effects: Al.of(!0) }), !0) : !1, wA = (i) => {
24772
24772
  let e = i.state.field(oi, !1);
24773
24773
  return !e || !e.active.some(
24774
24774
  (t) => t.state != 0
@@ -24807,7 +24807,7 @@ const CA = 50, MA = 1e3, AA = /* @__PURE__ */ ft.fromClass(class {
24807
24807
  } else
24808
24808
  s.updates.push(...i.transactions);
24809
24809
  }
24810
- this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(Ml))) && (this.pendingStart = !0);
24810
+ this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(Al))) && (this.pendingStart = !0);
24811
24811
  let r = this.pendingStart ? 50 : t.activateOnTypingDelay;
24812
24812
  if (this.debounceUpdate = e.active.some((o) => o.isPending && !this.running.some((s) => s.active.source == o.source)) ? setTimeout(() => this.startUpdate(), r) : -1, this.composing != 0)
24813
24813
  for (let o of i.transactions)
@@ -24879,7 +24879,7 @@ const CA = 50, MA = 1e3, AA = /* @__PURE__ */ ft.fromClass(class {
24879
24879
  this.composing = 1;
24880
24880
  },
24881
24881
  compositionend() {
24882
- this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: Ml.of(!1) }), 20), this.composing = 0;
24882
+ this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: Al.of(!1) }), 20), this.composing = 0;
24883
24883
  }
24884
24884
  }
24885
24885
  }), OA = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), TA = /* @__PURE__ */ ur.highest(/* @__PURE__ */ le.domEventHandlers({
@@ -25043,11 +25043,11 @@ const s0 = /* @__PURE__ */ Mt.define({
25043
25043
  function PA() {
25044
25044
  return [BA, s0];
25045
25045
  }
25046
- const Ga = "()[]{}<>«»»«[]{}";
25046
+ const $a = "()[]{}<>«»»«[]{}";
25047
25047
  function l0(i) {
25048
- for (let e = 0; e < Ga.length; e += 2)
25049
- if (Ga.charCodeAt(e) == i)
25050
- return Ga.charAt(e + 1);
25048
+ for (let e = 0; e < $a.length; e += 2)
25049
+ if ($a.charCodeAt(e) == i)
25050
+ return $a.charAt(e + 1);
25051
25051
  return Mc(i < 128 ? i : i + 1);
25052
25052
  }
25053
25053
  function a0(i, e) {
@@ -25068,7 +25068,7 @@ const qA = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25068
25068
  if (s.empty) {
25069
25069
  let l = LA(i.doc, s.head);
25070
25070
  for (let a of n)
25071
- if (a == l && Xl(i.doc, s.head) == l0(ri(a, 0)))
25071
+ if (a == l && Zl(i.doc, s.head) == l0(ri(a, 0)))
25072
25072
  return {
25073
25073
  changes: { from: s.head - a.length, to: s.head + a.length },
25074
25074
  range: Q.cursor(s.head - a.length)
@@ -25097,7 +25097,7 @@ function u0(i, e) {
25097
25097
  n == e && (t = !0);
25098
25098
  }), t;
25099
25099
  }
25100
- function Xl(i, e) {
25100
+ function Zl(i, e) {
25101
25101
  let t = i.sliceString(e, e + 2);
25102
25102
  return t.slice(0, Ni(ri(t, 0)));
25103
25103
  }
@@ -25113,7 +25113,7 @@ function IA(i, e, t, n) {
25113
25113
  effects: $n.of(s.to + e.length),
25114
25114
  range: Q.range(s.anchor + e.length, s.head + e.length)
25115
25115
  };
25116
- let l = Xl(i.doc, s.head);
25116
+ let l = Zl(i.doc, s.head);
25117
25117
  return !l || /\s/.test(l) || n.indexOf(l) > -1 ? {
25118
25118
  changes: { insert: e + t, from: s.head },
25119
25119
  effects: $n.of(s.head + e.length),
@@ -25126,7 +25126,7 @@ function IA(i, e, t, n) {
25126
25126
  });
25127
25127
  }
25128
25128
  function VA(i, e, t) {
25129
- let n = null, r = i.changeByRange((o) => o.empty && Xl(i.doc, o.head) == t ? {
25129
+ let n = null, r = i.changeByRange((o) => o.empty && Zl(i.doc, o.head) == t ? {
25130
25130
  changes: { from: o.head, to: o.head + t.length, insert: t },
25131
25131
  range: Q.cursor(o.head + t.length)
25132
25132
  } : n = { range: o });
@@ -25143,7 +25143,7 @@ function FA(i, e, t, n) {
25143
25143
  effects: $n.of(l.to + e.length),
25144
25144
  range: Q.range(l.anchor + e.length, l.head + e.length)
25145
25145
  };
25146
- let a = l.head, u = Xl(i.doc, a), c;
25146
+ let a = l.head, u = Zl(i.doc, a), c;
25147
25147
  if (u == e) {
25148
25148
  if (Nd(i, a))
25149
25149
  return {
@@ -25225,9 +25225,9 @@ function HA(i = {}) {
25225
25225
  ];
25226
25226
  }
25227
25227
  const c0 = [
25228
- { key: "Ctrl-Space", run: Ya },
25229
- { mac: "Alt-`", run: Ya },
25230
- { mac: "Alt-i", run: Ya },
25228
+ { key: "Ctrl-Space", run: Ga },
25229
+ { mac: "Alt-`", run: Ga },
25230
+ { mac: "Alt-i", run: Ga },
25231
25231
  { key: "Escape", run: wA },
25232
25232
  { key: "ArrowDown", run: /* @__PURE__ */ Ps(!0) },
25233
25233
  { key: "ArrowUp", run: /* @__PURE__ */ Ps(!1) },
@@ -25325,17 +25325,17 @@ function h0(i, e) {
25325
25325
  if (r != null)
25326
25326
  return r;
25327
25327
  let o = i.startState.doc.lineAt(e.pos);
25328
- return !!(i.effects.some((s) => s.is(Zl)) || i.changes.touchesRange(o.from, Math.max(o.to, n)));
25328
+ return !!(i.effects.some((s) => s.is(ea)) || i.changes.touchesRange(o.from, Math.max(o.to, n)));
25329
25329
  }
25330
25330
  function f0(i, e) {
25331
25331
  return i.field(mi, !1) ? e : e.concat(Me.appendConfig.of(x0));
25332
25332
  }
25333
25333
  function jA(i, e) {
25334
25334
  return {
25335
- effects: f0(i, [Zl.of(e)])
25335
+ effects: f0(i, [ea.of(e)])
25336
25336
  };
25337
25337
  }
25338
- const Zl = /* @__PURE__ */ Me.define(), th = /* @__PURE__ */ Me.define(), d0 = /* @__PURE__ */ Me.define(), mi = /* @__PURE__ */ Mt.define({
25338
+ const ea = /* @__PURE__ */ Me.define(), th = /* @__PURE__ */ Me.define(), d0 = /* @__PURE__ */ Me.define(), mi = /* @__PURE__ */ Mt.define({
25339
25339
  create() {
25340
25340
  return new Qn(xe.none, null, null);
25341
25341
  },
@@ -25349,7 +25349,7 @@ const Zl = /* @__PURE__ */ Me.define(), th = /* @__PURE__ */ Me.define(), d0 = /
25349
25349
  !t.size && r && e.state.facet(Wi).autoPanel && (r = null), i = new Qn(t, r, n);
25350
25350
  }
25351
25351
  for (let t of e.effects)
25352
- if (t.is(Zl)) {
25352
+ if (t.is(ea)) {
25353
25353
  let n = e.state.facet(Wi).autoPanel ? t.value.length ? Io.open : null : i.panel;
25354
25354
  i = Qn.init(t.value, n, e.state);
25355
25355
  } else t.is(th) ? i = new Qn(i.diagnostics, t.value ? Io.open : null, i.selected) : t.is(d0) && (i = new Qn(i.diagnostics, i.panel, t.value));
@@ -25749,7 +25749,7 @@ class b0 extends Ui {
25749
25749
  toDOM(e) {
25750
25750
  let t = document.createElement("div");
25751
25751
  t.className = "cm-lint-marker cm-lint-marker-" + this.severity;
25752
- let n = this.diagnostics, r = e.state.facet(ea).tooltipFilter;
25752
+ let n = this.diagnostics, r = e.state.facet(ta).tooltipFilter;
25753
25753
  return r && (n = r(n, e.state)), n.length && (t.onmouseover = () => iO(e, t, n)), t;
25754
25754
  }
25755
25755
  }
@@ -25780,7 +25780,7 @@ function iO(i, e, t) {
25780
25780
  }
25781
25781
  }) }), e.onmouseout = e.onmousemove = null, tO(i, e);
25782
25782
  }
25783
- let { hoverTime: r } = i.state.facet(ea), o = setTimeout(n, r);
25783
+ let { hoverTime: r } = i.state.facet(ta), o = setTimeout(n, r);
25784
25784
  e.onmouseout = () => {
25785
25785
  clearTimeout(o), e.onmouseout = e.onmousemove = null;
25786
25786
  }, e.onmousemove = () => {
@@ -25800,22 +25800,22 @@ function nO(i, e) {
25800
25800
  }
25801
25801
  const rO = /* @__PURE__ */ Fp({
25802
25802
  class: "cm-gutter-lint",
25803
- markers: (i) => i.state.field(ic),
25803
+ markers: (i) => i.state.field(nc),
25804
25804
  widgetMarker: (i, e, t) => {
25805
25805
  let n = [];
25806
- return i.state.field(ic).between(t.from, t.to, (r, o, s) => {
25806
+ return i.state.field(nc).between(t.from, t.to, (r, o, s) => {
25807
25807
  r > t.from && r < t.to && n.push(...s.diagnostics);
25808
25808
  }), n.length ? new b0(n) : null;
25809
25809
  }
25810
- }), ic = /* @__PURE__ */ Mt.define({
25810
+ }), nc = /* @__PURE__ */ Mt.define({
25811
25811
  create() {
25812
25812
  return Le.empty;
25813
25813
  },
25814
25814
  update(i, e) {
25815
25815
  i = i.map(e.changes);
25816
- let t = e.state.facet(ea).markerFilter;
25816
+ let t = e.state.facet(ta).markerFilter;
25817
25817
  for (let n of e.effects)
25818
- if (n.is(Zl)) {
25818
+ if (n.is(ea)) {
25819
25819
  let r = n.value;
25820
25820
  t && (r = t(r || [], e.state)), i = nO(e.state.doc, r.slice(0));
25821
25821
  }
@@ -25828,7 +25828,7 @@ const rO = /* @__PURE__ */ Fp({
25828
25828
  update(i, e) {
25829
25829
  return i && e.docChanged && (i = h0(e, i) ? null : { ...i, pos: e.changes.mapPos(i.pos) }), e.effects.reduce((t, n) => n.is(ih) ? n.value : t, i);
25830
25830
  },
25831
- provide: (i) => jl.from(i)
25831
+ provide: (i) => Wl.from(i)
25832
25832
  }), oO = /* @__PURE__ */ le.baseTheme({
25833
25833
  ".cm-gutter-lint": {
25834
25834
  width: "1.4em",
@@ -25859,7 +25859,7 @@ const rO = /* @__PURE__ */ Fp({
25859
25859
  }),
25860
25860
  /* @__PURE__ */ $w(QA, { hideOn: h0 }),
25861
25861
  ZA
25862
- ], ea = /* @__PURE__ */ de.define({
25862
+ ], ta = /* @__PURE__ */ de.define({
25863
25863
  combine(i) {
25864
25864
  return Pi(i, {
25865
25865
  hoverTime: 300,
@@ -25869,7 +25869,7 @@ const rO = /* @__PURE__ */ Fp({
25869
25869
  }
25870
25870
  });
25871
25871
  function sO(i = {}) {
25872
- return [ea.of(i), ic, rO, oO, y0];
25872
+ return [ta.of(i), nc, rO, oO, y0];
25873
25873
  }
25874
25874
  const lO = [
25875
25875
  zp(),
@@ -25948,7 +25948,7 @@ Kn[Gt.Change] = function(i, e) {
25948
25948
  var k0 = {};
25949
25949
  k0[Gt.ModelUpdate] = Kn[Gt.Change];
25950
25950
  var mO = Object.assign(Object.assign({}, Kn), k0), gO = Ft({ name: "VueCodemirror", props: Object.assign({}, dO), emits: Object.assign({}, mO), setup: function(i, e) {
25951
- var t = oa(), n = oa(), r = oa(), o = Object.assign(Object.assign({}, aO), Fo(uO, {})), s = x(function() {
25951
+ var t = sa(), n = sa(), r = sa(), o = Object.assign(Object.assign({}, aO), Fo(uO, {})), s = x(function() {
25952
25952
  var l = {};
25953
25953
  return Object.keys(zn(i)).forEach(function(a) {
25954
25954
  var u;
@@ -25977,7 +25977,7 @@ var mO = Object.assign(Object.assign({}, Kn), k0), gO = Ft({ name: "VueCodemirro
25977
25977
  }, getDoc: c, setDoc: function(k) {
25978
25978
  k !== c() && u.dispatch({ changes: { from: 0, to: u.state.doc.length, insert: k } });
25979
25979
  }, reExtensions: h, toggleDisabled: f, toggleIndentWithTab: d, setTabSize: function(k) {
25980
- m([Ee.tabSize.of(k), Ql.of(" ".repeat(k))]);
25980
+ m([Ee.tabSize.of(k), Kl.of(" ".repeat(k))]);
25981
25981
  }, setPhrases: function(k) {
25982
25982
  p([Ee.phrases.of(k)]);
25983
25983
  }, setPlaceholder: function(k) {
@@ -26027,7 +26027,7 @@ var mO = Object.assign(Object.assign({}, Kn), k0), gO = Ft({ name: "VueCodemirro
26027
26027
  return A("div", { class: "v-codemirror", style: { display: "contents" }, ref: t });
26028
26028
  };
26029
26029
  } }), pO = gO;
26030
- class Ol {
26030
+ class Tl {
26031
26031
  /**
26032
26032
  @internal
26033
26033
  */
@@ -26046,7 +26046,7 @@ class Ol {
26046
26046
  */
26047
26047
  static start(e, t, n = 0) {
26048
26048
  let r = e.parser.context;
26049
- return new Ol(e, [], t, n, n, 0, [], 0, r ? new Ud(r, r.start) : null, 0, null);
26049
+ return new Tl(e, [], t, n, n, 0, [], 0, r ? new Ud(r, r.start) : null, 0, null);
26050
26050
  }
26051
26051
  /**
26052
26052
  The stack's current [context](#lr.ContextTracker) value, if
@@ -26187,7 +26187,7 @@ class Ol {
26187
26187
  let n = e.buffer.slice(t), r = e.bufferBase + t;
26188
26188
  for (; e && r == e.bufferBase; )
26189
26189
  e = e.parent;
26190
- return new Ol(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, n, r, this.curContext, this.lookAhead, e);
26190
+ return new Tl(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, n, r, this.curContext, this.lookAhead, e);
26191
26191
  }
26192
26192
  // Try to recover from an error by 'deleting' (ignoring) one token.
26193
26193
  /**
@@ -26418,12 +26418,12 @@ class vO {
26418
26418
  this.state = r;
26419
26419
  }
26420
26420
  }
26421
- class Tl {
26421
+ class Dl {
26422
26422
  constructor(e, t, n) {
26423
26423
  this.stack = e, this.pos = t, this.index = n, this.buffer = e.buffer, this.index == 0 && this.maybeNext();
26424
26424
  }
26425
26425
  static create(e, t = e.bufferBase + e.buffer.length) {
26426
- return new Tl(e, t, t - e.bufferBase);
26426
+ return new Dl(e, t, t - e.bufferBase);
26427
26427
  }
26428
26428
  maybeNext() {
26429
26429
  let e = this.stack.parent;
@@ -26445,7 +26445,7 @@ class Tl {
26445
26445
  this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
26446
26446
  }
26447
26447
  fork() {
26448
- return new Tl(this.stack, this.pos, this.index);
26448
+ return new Dl(this.stack, this.pos, this.index);
26449
26449
  }
26450
26450
  }
26451
26451
  function _s(i, e = Uint16Array) {
@@ -26675,7 +26675,7 @@ function xO(i, e, t, n) {
26675
26675
  return r < 0 || Gd(t, n, i) < r;
26676
26676
  }
26677
26677
  const ui = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
26678
- let $a = null;
26678
+ let Ja = null;
26679
26679
  function $d(i, e, t) {
26680
26680
  let n = i.cursor(Ot.IncludeAnonymous);
26681
26681
  for (n.moveTo(e); ; )
@@ -26822,7 +26822,7 @@ class SO {
26822
26822
  constructor(e, t, n, r) {
26823
26823
  this.parser = e, this.input = t, this.ranges = r, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new bO(t, r), this.tokens = new wO(e, this.stream), this.topTerm = e.top[1];
26824
26824
  let { from: o } = r[0];
26825
- this.stacks = [Ol.start(this, e.top[0], o)], this.fragments = n.length && this.stream.end - o > e.bufferLength * 4 ? new kO(n, e.nodeSet) : null;
26825
+ this.stacks = [Tl.start(this, e.top[0], o)], this.fragments = n.length && this.stream.end - o > e.bufferLength * 4 ? new kO(n, e.nodeSet) : null;
26826
26826
  }
26827
26827
  get parsedPos() {
26828
26828
  return this.minStackPos;
@@ -26985,7 +26985,7 @@ class SO {
26985
26985
  // Convert the stack's buffer to a syntax tree.
26986
26986
  stackToTree(e) {
26987
26987
  return e.close(), yt.build({
26988
- buffer: Tl.create(e),
26988
+ buffer: Dl.create(e),
26989
26989
  nodeSet: this.parser.nodeSet,
26990
26990
  topID: this.topTerm,
26991
26991
  maxBufferLength: this.parser.bufferLength,
@@ -26996,8 +26996,8 @@ class SO {
26996
26996
  });
26997
26997
  }
26998
26998
  stackID(e) {
26999
- let t = ($a || ($a = /* @__PURE__ */ new WeakMap())).get(e);
27000
- return t || $a.set(e, t = String.fromCodePoint(this.nextStackID++)), t + e;
26999
+ let t = (Ja || (Ja = /* @__PURE__ */ new WeakMap())).get(e);
27000
+ return t || Ja.set(e, t = String.fromCodePoint(this.nextStackID++)), t + e;
27001
27001
  }
27002
27002
  }
27003
27003
  function Jd(i, e) {
@@ -27018,7 +27018,7 @@ class CO {
27018
27018
  return !this.disabled || this.disabled[e] == 0;
27019
27019
  }
27020
27020
  }
27021
- class Dl extends Up {
27021
+ class Pl extends Up {
27022
27022
  /**
27023
27023
  @internal
27024
27024
  */
@@ -27187,7 +27187,7 @@ class Dl extends Up {
27187
27187
  kept from the original parser.
27188
27188
  */
27189
27189
  configure(e) {
27190
- let t = Object.assign(Object.create(Dl.prototype), this);
27190
+ let t = Object.assign(Object.create(Pl.prototype), this);
27191
27191
  if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
27192
27192
  let n = this.topRules[e.top];
27193
27193
  if (!n)
@@ -27263,7 +27263,7 @@ class Dl extends Up {
27263
27263
  user code. @hide
27264
27264
  */
27265
27265
  static deserialize(e) {
27266
- return new Dl(e);
27266
+ return new Pl(e);
27267
27267
  }
27268
27268
  }
27269
27269
  function en(i, e) {
@@ -27297,7 +27297,7 @@ const AO = Yp({
27297
27297
  ", :": H.separator,
27298
27298
  "[ ]": H.squareBracket,
27299
27299
  "{ }": H.brace
27300
- }), OO = Dl.deserialize({
27300
+ }), OO = Pl.deserialize({
27301
27301
  version: 14,
27302
27302
  states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
27303
27303
  stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
@@ -27336,7 +27336,7 @@ function DO(i, e) {
27336
27336
  let t;
27337
27337
  return (t = i.message.match(/at position (\d+)/)) ? Math.min(+t[1], e.length) : (t = i.message.match(/at line (\d+) column (\d+)/)) ? Math.min(e.line(+t[1]).from + +t[2] - 1, e.length) : 0;
27338
27338
  }
27339
- const PO = /* @__PURE__ */ ml.define({
27339
+ const PO = /* @__PURE__ */ gl.define({
27340
27340
  name: "json",
27341
27341
  parser: /* @__PURE__ */ OO.configure({
27342
27342
  props: [
@@ -27357,7 +27357,7 @@ const PO = /* @__PURE__ */ ml.define({
27357
27357
  function qO() {
27358
27358
  return new TS(PO);
27359
27359
  }
27360
- const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb2bf", nc = "#7d8799", EO = "#61afef", LO = "#98c379", em = "#d19a66", IO = "#c678dd", VO = "#21252b", tm = "#2c313a", im = "#282c34", Ja = "#353a42", FO = "#3E4451", nm = "#528bff", NO = /* @__PURE__ */ le.theme({
27360
+ const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb2bf", rc = "#7d8799", EO = "#61afef", LO = "#98c379", em = "#d19a66", IO = "#c678dd", VO = "#21252b", tm = "#2c313a", im = "#282c34", Xa = "#353a42", FO = "#3E4451", nm = "#528bff", NO = /* @__PURE__ */ le.theme({
27361
27361
  "&": {
27362
27362
  color: Us,
27363
27363
  backgroundColor: im
@@ -27384,7 +27384,7 @@ const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb
27384
27384
  },
27385
27385
  ".cm-gutters": {
27386
27386
  backgroundColor: im,
27387
- color: nc,
27387
+ color: rc,
27388
27388
  border: "none"
27389
27389
  },
27390
27390
  ".cm-activeLineGutter": {
@@ -27397,15 +27397,15 @@ const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb
27397
27397
  },
27398
27398
  ".cm-tooltip": {
27399
27399
  border: "none",
27400
- backgroundColor: Ja
27400
+ backgroundColor: Xa
27401
27401
  },
27402
27402
  ".cm-tooltip .cm-tooltip-arrow:before": {
27403
27403
  borderTopColor: "transparent",
27404
27404
  borderBottomColor: "transparent"
27405
27405
  },
27406
27406
  ".cm-tooltip .cm-tooltip-arrow:after": {
27407
- borderTopColor: Ja,
27408
- borderBottomColor: Ja
27407
+ borderTopColor: Xa,
27408
+ borderBottomColor: Xa
27409
27409
  },
27410
27410
  ".cm-tooltip-autocomplete": {
27411
27411
  "& > ul > li[aria-selected]": {
@@ -27444,7 +27444,7 @@ const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb
27444
27444
  },
27445
27445
  {
27446
27446
  tag: [H.meta, H.comment],
27447
- color: nc
27447
+ color: rc
27448
27448
  },
27449
27449
  {
27450
27450
  tag: H.strong,
@@ -27460,7 +27460,7 @@ const BO = "#e5c07b", Zd = "#e06c75", _O = "#56b6c2", RO = "#ffffff", Us = "#abb
27460
27460
  },
27461
27461
  {
27462
27462
  tag: H.link,
27463
- color: nc,
27463
+ color: rc,
27464
27464
  textDecoration: "underline"
27465
27465
  },
27466
27466
  {
@@ -27796,7 +27796,7 @@ const rm = /* @__PURE__ */ ii(jO, [["render", JO], ["__file", "/Users/zachsherbo
27796
27796
  }
27797
27797
  });
27798
27798
  }, get QSelect() {
27799
- return Nl;
27799
+ return Hl;
27800
27800
  } };
27801
27801
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
27802
27802
  }
@@ -28244,9 +28244,9 @@ const lT = ["click", "keydown"], aT = {
28244
28244
  }
28245
28245
  };
28246
28246
  function uT(i, e, t, n) {
28247
- const r = Fo(wm, ua);
28248
- if (r === ua)
28249
- return console.error("QTab/QRouteTab component needs to be child of QTabs"), ua;
28247
+ const r = Fo(wm, ca);
28248
+ if (r === ca)
28249
+ return console.error("QTab/QRouteTab component needs to be child of QTabs"), ca;
28250
28250
  const { proxy: o } = ze(), s = Y(null), l = Y(null), a = Y(null), u = x(() => i.disable === !0 || i.ripple === !1 ? !1 : Object.assign(
28251
28251
  { keyCodes: [13, 32], early: !0 },
28252
28252
  i.ripple === !0 ? {} : i.ripple
@@ -28263,7 +28263,7 @@ function uT(i, e, t, n) {
28263
28263
  }
28264
28264
  }
28265
28265
  function p(v) {
28266
- an(v, [13, 32]) ? m(v, !0) : Ll(v) !== !0 && v.keyCode >= 35 && v.keyCode <= 40 && v.altKey !== !0 && v.metaKey !== !0 && r.onKbdNavigate(v.keyCode, o.$el) === !0 && ct(v), t("keydown", v);
28266
+ an(v, [13, 32]) ? m(v, !0) : Il(v) !== !0 && v.keyCode >= 35 && v.keyCode <= 40 && v.altKey !== !0 && v.metaKey !== !0 && r.onKbdNavigate(v.keyCode, o.$el) === !0 && ct(v), t("keydown", v);
28267
28267
  }
28268
28268
  function g() {
28269
28269
  const v = r.tabProps.value.narrowIndicator, y = [], S = A("div", {
@@ -28424,13 +28424,13 @@ const cT = $e({
28424
28424
  }, get QCardSection() {
28425
28425
  return hg;
28426
28426
  }, get QSelect() {
28427
- return Nl;
28427
+ return Hl;
28428
28428
  }, get QTabs() {
28429
28429
  return oT;
28430
28430
  }, get QTab() {
28431
28431
  return cT;
28432
28432
  }, get FieldRenderer() {
28433
- return ql;
28433
+ return Bl;
28434
28434
  } };
28435
28435
  return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
28436
28436
  }
@@ -28642,7 +28642,7 @@ const sm = /* @__PURE__ */ ii(hT, [["render", bT], ["__file", "/Users/zachsherbo
28642
28642
  const a = { ...t.schema };
28643
28643
  return delete a.allOf, o.mergeSchemas(a, ...t.schema.allOf);
28644
28644
  }), l = { props: t, label: n, fieldGap: r, schemaUtils: o, mergedSchema: s, get FieldRenderer() {
28645
- return ql;
28645
+ return Bl;
28646
28646
  } };
28647
28647
  return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
28648
28648
  }
@@ -28691,17 +28691,17 @@ function Vo() {
28691
28691
  return `cond-${++ST}-${Date.now()}`;
28692
28692
  }
28693
28693
  function lm(i, e = {}) {
28694
- return i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? Pl(i.conditions[0], e) : {
28695
- [i.logic]: i.conditions.map((t) => Pl(t, e))
28694
+ return i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? ql(i.conditions[0], e) : {
28695
+ [i.logic]: i.conditions.map((t) => ql(t, e))
28696
28696
  };
28697
28697
  }
28698
- function Pl(i, e) {
28699
- return i.type === "group" ? i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? Pl(i.conditions[0], e) : {
28700
- [i.logic]: i.conditions.map((t) => Pl(t, e))
28698
+ function ql(i, e) {
28699
+ return i.type === "group" ? i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? ql(i.conditions[0], e) : {
28700
+ [i.logic]: i.conditions.map((t) => ql(t, e))
28701
28701
  } : CT(i, e);
28702
28702
  }
28703
28703
  function CT(i, e) {
28704
- const t = rc(i.left, e.useTemplateSyntax), n = rc(i.right, e.useTemplateSyntax);
28704
+ const t = Ys(i.left, e.useTemplateSyntax), n = Ys(i.right, e.useTemplateSyntax);
28705
28705
  switch (i.operator) {
28706
28706
  case "==":
28707
28707
  return { "==": [t, n] };
@@ -28716,7 +28716,12 @@ function CT(i, e) {
28716
28716
  case "<=":
28717
28717
  return { "<=": [t, n] };
28718
28718
  case "in":
28719
- return { in: [t, AT(i.right, e.useTemplateSyntax)] };
28719
+ return {
28720
+ in: [
28721
+ t,
28722
+ e.useTemplateSyntax ? Ys(i.right, !0) : AT(i.right, !1)
28723
+ ]
28724
+ };
28720
28725
  case "contains":
28721
28726
  return { in: [n, t] };
28722
28727
  case "startsWith":
@@ -28737,7 +28742,7 @@ function CT(i, e) {
28737
28742
  return { "==": [t, n] };
28738
28743
  }
28739
28744
  }
28740
- function rc(i, e = !1) {
28745
+ function Ys(i, e = !1) {
28741
28746
  if (!i)
28742
28747
  return "";
28743
28748
  if (e && i.includes("{{") && i.includes("}}"))
@@ -28761,7 +28766,7 @@ function AT(i, e = !1) {
28761
28766
  }
28762
28767
  return i.split(",").map((t) => {
28763
28768
  const n = t.trim();
28764
- return rc(n, e);
28769
+ return Ys(n, e);
28765
28770
  });
28766
28771
  }
28767
28772
  function am(i, e = {}) {
@@ -28832,7 +28837,15 @@ function um(i, e = !1) {
28832
28837
  const t = String(i.var);
28833
28838
  return e ? `{{ ${t} }}` : t;
28834
28839
  }
28835
- return Array.isArray(i) ? JSON.stringify(i) : String(i);
28840
+ if (Array.isArray(i)) {
28841
+ if (e && i.length === 1 && typeof i[0] == "string") {
28842
+ const t = i[0];
28843
+ if (t.startsWith("{{") && t.endsWith("}}"))
28844
+ return t;
28845
+ }
28846
+ return JSON.stringify(i);
28847
+ }
28848
+ return String(i);
28836
28849
  }
28837
28850
  function An() {
28838
28851
  return {
@@ -29027,7 +29040,7 @@ const DT = /* @__PURE__ */ Ft({
29027
29040
  const $ = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: b, isInternalUpdate: k, syncToValue: v, addCondition: y, addGroup: S, removeCondition: q, updateConditionLeft: C, updateConditionOperator: L, updateConditionRight: N, updateGroupLogic: E, toggleAdvancedMode: D, handleJsonChange: _, operatorDisplayMode: P, allowedOperators: B, operatorOptions: I, filteredOperatorOptions: K, filterOperators: V, handleOperatorInput: F, get QBtn() {
29028
29041
  return Lt;
29029
29042
  }, get QSelect() {
29030
- return Nl;
29043
+ return Hl;
29031
29044
  }, get QInput() {
29032
29045
  return ar;
29033
29046
  }, get QIcon() {
@@ -29271,7 +29284,7 @@ function r2(i, e, t, n, r, o) {
29271
29284
  name: "option",
29272
29285
  fn: be((u) => [
29273
29286
  ee(
29274
- Gs,
29287
+ $s,
29275
29288
  ut({ ref_for: !0 }, u.itemProps),
29276
29289
  {
29277
29290
  default: be(() => [
@@ -29540,7 +29553,7 @@ function r2(i, e, t, n, r, o) {
29540
29553
  name: "option",
29541
29554
  fn: be((h) => [
29542
29555
  ee(
29543
- Gs,
29556
+ $s,
29544
29557
  ut({ ref_for: !0 }, h.itemProps),
29545
29558
  {
29546
29559
  default: be(() => [