@quickflo/quickforms-quasar 1.14.4 → 1.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { SchemaUtils as fm, 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 ah, hasOneOf as I0, hasAnyOf as V0, hasAllOf as F0 } from "@quickflo/quickforms";
1
+ import { SchemaUtils as fm, ComponentRegistry as A0, rankWith as Ke, hasConst as O0, hasXRender as ni, isStringType as T0, isNumberType as D0, isBooleanType as P0, isEnumType as q0, isDateFormat as B0, isTimeFormat as _0, isDateTimeFormat as R0, isRecordType as E0, isJsonType as L0, isObjectType as I0, isArrayType as ah, hasOneOf as V0, hasAnyOf as F0, hasAllOf as N0 } from "@quickflo/quickforms";
2
2
  import { ComponentRegistry as v2, SchemaUtils as y2, and as b2, hasAllOf as x2, hasAnyOf as k2, hasConditional as w2, hasConst as S2, hasExtension as C2, hasFormat as M2, hasOneOf as A2, isArrayType as O2, isBooleanType as T2, isDateFormat as D2, isDateTimeFormat as P2, isDiscriminatedUnion as q2, isEmailFormat as B2, isEnumType as _2, isIntegerType as R2, isJsonType as E2, isNullType as L2, isNumberType as I2, isObjectType as V2, isRecordType as F2, isStringType as N2, isTimeFormat as H2, isUrlFormat as z2, not as j2, or as W2, rankWith as Q2 } from "@quickflo/quickforms";
3
- import { computed as b, markRaw as dm, defineComponent as Ft, reactive as mm, h as A, withDirectives as Rn, getCurrentInstance as ze, ref as G, onMounted as Si, watch as ve, onBeforeUpdate as gm, inject as Fo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as No, onActivated as sc, Transition as fi, provide as pm, createElementBlock as fe, openBlock as te, normalizeStyle as xt, createVNode as ee, mergeProps as ut, createSlots as ln, withCtx as ye, 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 la, normalizeClass as U0, renderSlot as es } from "vue";
3
+ import { computed as b, markRaw as dm, defineComponent as Ft, reactive as mm, h as A, withDirectives as Rn, getCurrentInstance as ze, ref as G, onMounted as Si, watch as ve, onBeforeUpdate as gm, inject as Fo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as No, onActivated as sc, Transition as fi, provide as pm, createElementBlock as fe, openBlock as te, normalizeStyle as xt, createVNode as ee, mergeProps as ut, createSlots as ln, withCtx as ye, createTextVNode as je, createElementVNode as we, toDisplayString as De, toRaw as zn, createCommentVNode as he, unref as H0, onUnmounted as z0, Teleport as j0, onBeforeMount as W0, onUpdated as Q0, shallowReactive as K0, vShow as U0, normalizeClass as vm, Fragment as Ht, renderList as On, createBlock as on, shallowRef as la, renderSlot as es } from "vue";
4
4
  import { useFormContext as Y0, useFormField as G0, generateFieldId as $0, FieldRenderer as _l, HiddenField as J0 } from "@quickflo/quickforms-vue";
5
5
  const eu = {
6
6
  xs: 18,
@@ -62,7 +62,7 @@ function ty(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 uh = "0 0 24 24", aa = (i) => i, ua = (i) => `ionicons ${i}`, vm = {
65
+ const uh = "0 0 24 24", aa = (i) => i, ua = (i) => `ionicons ${i}`, ym = {
66
66
  "mdi-": (i) => `mdi ${i}`,
67
67
  "icon-": aa,
68
68
  // fontawesome equiv
@@ -76,15 +76,15 @@ const uh = "0 0 24 24", aa = (i) => i, ua = (i) => `ionicons ${i}`, vm = {
76
76
  "bi-": (i) => `bootstrap-icons ${i}`,
77
77
  "i-": aa
78
78
  // UnoCSS pure icons
79
- }, ym = {
79
+ }, bm = {
80
80
  o_: "-outlined",
81
81
  r_: "-round",
82
82
  s_: "-sharp"
83
- }, bm = {
83
+ }, xm = {
84
84
  sym_o_: "-outlined",
85
85
  sym_r_: "-rounded",
86
86
  sym_s_: "-sharp"
87
- }, iy = new RegExp("^(" + Object.keys(vm).join("|") + ")"), ny = new RegExp("^(" + Object.keys(ym).join("|") + ")"), ch = new RegExp("^(" + Object.keys(bm).join("|") + ")"), ry = /^[Mm]\s?[-+]?\.?\d/, oy = /^img:/, sy = /^svguse:/, ly = /^ion-/, ay = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, kt = $e({
87
+ }, iy = new RegExp("^(" + Object.keys(ym).join("|") + ")"), ny = new RegExp("^(" + Object.keys(bm).join("|") + ")"), ch = new RegExp("^(" + Object.keys(xm).join("|") + ")"), ry = /^[Mm]\s?[-+]?\.?\d/, oy = /^img:/, sy = /^svguse:/, ly = /^ion-/, ay = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, kt = $e({
88
88
  name: "QIcon",
89
89
  props: {
90
90
  ...Rl,
@@ -143,7 +143,7 @@ const uh = "0 0 24 24", aa = (i) => i, ua = (i) => `ionicons ${i}`, vm = {
143
143
  let a = " ";
144
144
  const u = l.match(iy);
145
145
  if (u !== null)
146
- s = vm[u[1]](l);
146
+ s = ym[u[1]](l);
147
147
  else if (ay.test(l) === !0)
148
148
  s = l;
149
149
  else if (ly.test(l) === !0)
@@ -151,11 +151,11 @@ const uh = "0 0 24 24", aa = (i) => i, ua = (i) => `ionicons ${i}`, vm = {
151
151
  else if (ch.test(l) === !0) {
152
152
  s = "notranslate material-symbols";
153
153
  const c = l.match(ch);
154
- c !== null && (l = l.substring(6), s += bm[c[1]]), a = l;
154
+ c !== null && (l = l.substring(6), s += xm[c[1]]), a = l;
155
155
  } else {
156
156
  s = "notranslate material-icons";
157
157
  const c = l.match(ny);
158
- c !== null && (l = l.substring(2), s += ym[c[1]]), a = l;
158
+ c !== null && (l = l.substring(2), s += bm[c[1]]), a = l;
159
159
  }
160
160
  return {
161
161
  cls: s,
@@ -200,7 +200,7 @@ function cy(i) {
200
200
  )
201
201
  };
202
202
  }
203
- const xm = $e({
203
+ const km = $e({
204
204
  name: "QSpinner",
205
205
  props: {
206
206
  ...uy,
@@ -272,7 +272,7 @@ function fy(i, e) {
272
272
  function dy(i) {
273
273
  return /(ipad)/.exec(i) || /(ipod)/.exec(i) || /(windows phone)/.exec(i) || /(iphone)/.exec(i) || /(kindle)/.exec(i) || /(silk)/.exec(i) || /(android)/.exec(i) || /(win)/.exec(i) || /(mac)/.exec(i) || /(linux)/.exec(i) || /(cros)/.exec(i) || /(playbook)/.exec(i) || /(bb)/.exec(i) || /(blackberry)/.exec(i) || [];
274
274
  }
275
- const km = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
275
+ const wm = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
276
276
  function my(i) {
277
277
  const e = i.toLowerCase(), t = dy(e), n = fy(e, t), r = {
278
278
  mobile: !1,
@@ -315,7 +315,7 @@ function my(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 && (tu = { is: { ...r } }), km === !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 && (tu = { is: { ...r } }), wm === !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, {
@@ -339,7 +339,7 @@ const fh = navigator.userAgent || navigator.vendor || window.opera, gy = {
339
339
  userAgent: fh,
340
340
  is: my(fh),
341
341
  has: {
342
- touch: km
342
+ touch: wm
343
343
  },
344
344
  within: {
345
345
  iframe: window.self !== window.top
@@ -371,7 +371,7 @@ function py(i) {
371
371
  function dh(i, e) {
372
372
  return i ?? (e === !0 ? `f_${$s()}` : null);
373
373
  }
374
- function wm({ getValue: i, required: e = !0 } = {}) {
374
+ function Sm({ getValue: i, required: e = !0 } = {}) {
375
375
  if (_r.value === !0) {
376
376
  const t = i !== void 0 ? G(py(i())) : G(null);
377
377
  return e === !0 && t.value === null && Si(() => {
@@ -407,7 +407,7 @@ const Yi = {
407
407
  function Gi(i, e) {
408
408
  return b(() => i.dark === null ? e.dark.isActive : i.dark);
409
409
  }
410
- const yy = "_q_", by = "_q_fo_", Sm = "_q_tabs_";
410
+ const yy = "_q_", by = "_q_fo_", Cm = "_q_tabs_";
411
411
  function ha() {
412
412
  }
413
413
  function xy({ validate: i, resetValidation: e, requiresQForm: t }) {
@@ -445,7 +445,7 @@ const gh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, ph = /^#[0-9a-fA-F]{4}([0-9a-fA
445
445
  hexaOrRgbaColor: (i) => ph.test(i) || ns.test(i),
446
446
  anyColor: (i) => vh.test(i) || is.test(i) || ns.test(i)
447
447
  };
448
- function Cm(i, e = 250, t) {
448
+ function Mm(i, e = 250, t) {
449
449
  let n = null;
450
450
  function r() {
451
451
  const o = arguments, s = () => {
@@ -523,7 +523,7 @@ function Sy(i, e) {
523
523
  (R) => (k === l && (console.error(R), x(!0)), !1)
524
524
  ));
525
525
  }
526
- const g = Cm(p, 0);
526
+ const g = Mm(p, 0);
527
527
  return ht(() => {
528
528
  a == null || a(), g.cancel();
529
529
  }), Object.assign(n, { resetValidation: m, validate: p }), Wr(n, "hasError", () => h.value), {
@@ -611,14 +611,14 @@ function Jn(i, e) {
611
611
  }), i[t] = void 0);
612
612
  }
613
613
  let Un = [], bo = [];
614
- function Mm(i) {
614
+ function Am(i) {
615
615
  bo = bo.filter((e) => e !== i);
616
616
  }
617
617
  function Ay(i) {
618
- Mm(i), bo.push(i);
618
+ Am(i), bo.push(i);
619
619
  }
620
620
  function yh(i) {
621
- Mm(i), bo.length === 0 && Un.length !== 0 && (Un[Un.length - 1](), Un = []);
621
+ Am(i), bo.length === 0 && Un.length !== 0 && (Un[Un.length - 1](), Un = []);
622
622
  }
623
623
  function Ll(i) {
624
624
  bo.length === 0 ? i() : Un.push(i);
@@ -665,7 +665,7 @@ const Ty = {
665
665
  maxlength: [Number, String]
666
666
  }, uc = ["update:modelValue", "clear", "focus", "blur"];
667
667
  function cc({ requiredForAttr: i = !0, tagProp: e, changeEvent: t = !1 } = {}) {
668
- const { props: n, proxy: r } = ze(), o = Gi(n, r.$q), s = wm({
668
+ const { props: n, proxy: r } = ze(), o = Gi(n, r.$q), s = Sm({
669
669
  required: i,
670
670
  getValue: () => n.for
671
671
  });
@@ -802,7 +802,7 @@ function hc(i) {
802
802
  ), e.loading === !0 || i.innerLoading.value === !0 ? F.push(
803
803
  Q(
804
804
  "inner-loading-append",
805
- n.loading !== void 0 ? n.loading() : [A(xm, { color: e.color })]
805
+ n.loading !== void 0 ? n.loading() : [A(km, { color: e.color })]
806
806
  )
807
807
  ) : e.clearable === !0 && i.hasValue.value === !0 && i.editable.value === !0 && F.push(
808
808
  Q("inner-clearable-append", [
@@ -939,7 +939,7 @@ const bh = {
939
939
  fulltime: "##:##:##",
940
940
  phone: "(###) ### - ####",
941
941
  card: "#### #### #### ####"
942
- }, { tokenMap: xh, tokenKeys: Dy } = Am({
942
+ }, { tokenMap: xh, tokenKeys: Dy } = Om({
943
943
  "#": { pattern: "[\\d]", negate: "[^\\d]" },
944
944
  S: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]" },
945
945
  N: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]" },
@@ -948,7 +948,7 @@ const bh = {
948
948
  X: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (i) => i.toLocaleUpperCase() },
949
949
  x: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (i) => i.toLocaleLowerCase() }
950
950
  });
951
- function Am(i) {
951
+ function Om(i) {
952
952
  const e = Object.keys(i), t = {};
953
953
  return e.forEach((n) => {
954
954
  const r = i[n];
@@ -958,10 +958,10 @@ function Am(i) {
958
958
  };
959
959
  }), { tokenMap: t, tokenKeys: e };
960
960
  }
961
- function Om(i) {
961
+ function Tm(i) {
962
962
  return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + i.join("") + "])|(.)", "g");
963
963
  }
964
- const kh = /[.*+?^${}()|[\]\\]/g, Py = Om(Dy), vt = "", qy = {
964
+ const kh = /[.*+?^${}()|[\]\\]/g, Py = Tm(Dy), vt = "", qy = {
965
965
  mask: String,
966
966
  reverseFillMask: Boolean,
967
967
  fillMask: [Boolean, String],
@@ -976,13 +976,13 @@ function By(i, e, t, n) {
976
976
  tokenMap: xh,
977
977
  tokenRegexMask: Py
978
978
  };
979
- const { tokenMap: _ } = Am(i.maskTokens), O = {
979
+ const { tokenMap: _ } = Om(i.maskTokens), O = {
980
980
  ...xh,
981
981
  ..._
982
982
  };
983
983
  return {
984
984
  tokenMap: O,
985
- tokenRegexMask: Om(Object.keys(O))
985
+ tokenRegexMask: Tm(Object.keys(O))
986
986
  };
987
987
  }), h = G(null), f = G(m());
988
988
  function d() {
@@ -1220,7 +1220,7 @@ function By(i, e, t, n) {
1220
1220
  const Ho = {
1221
1221
  name: String
1222
1222
  };
1223
- function Tm(i) {
1223
+ function Dm(i) {
1224
1224
  return b(() => ({
1225
1225
  type: "hidden",
1226
1226
  name: i.name,
@@ -1237,7 +1237,7 @@ function fc(i = {}) {
1237
1237
  );
1238
1238
  };
1239
1239
  }
1240
- function Dm(i) {
1240
+ function Pm(i) {
1241
1241
  return b(() => i.name || i.for);
1242
1242
  }
1243
1243
  function _y(i, e) {
@@ -1262,7 +1262,7 @@ function _y(i, e) {
1262
1262
  });
1263
1263
  }
1264
1264
  const Ry = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, Ey = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, Ly = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, Iy = /[a-z0-9_ -]$/i;
1265
- function Pm(i) {
1265
+ function qm(i) {
1266
1266
  return function(t) {
1267
1267
  if (t.type === "compositionend" || t.type === "change") {
1268
1268
  if (t.target.qComposing !== !0) return;
@@ -1301,7 +1301,7 @@ const ar = $e({
1301
1301
  setup(i, { emit: e, attrs: t }) {
1302
1302
  const { proxy: n } = ze(), { $q: r } = n, o = {};
1303
1303
  let s = NaN, l, a, u = null, c;
1304
- const h = G(null), f = Dm(i), {
1304
+ const h = G(null), f = Pm(i), {
1305
1305
  innerValue: d,
1306
1306
  hasMask: m,
1307
1307
  moveCursorForPaste: p,
@@ -1310,7 +1310,7 @@ const ar = $e({
1310
1310
  onMaskedClick: k
1311
1311
  } = By(i, e, Q, h), v = _y(
1312
1312
  i
1313
- ), x = b(() => xo(d.value)), S = Pm(B), R = cc({ changeEvent: !0 }), C = b(
1313
+ ), x = b(() => xo(d.value)), S = qm(B), R = cc({ changeEvent: !0 }), C = b(
1314
1314
  () => i.type === "textarea" || i.autogrow === !0
1315
1315
  ), L = b(
1316
1316
  () => C.value === !0 || ["text", "search", "url", "tel", "password"].includes(i.type)
@@ -1469,12 +1469,12 @@ const ar = $e({
1469
1469
  // deprecated
1470
1470
  }), Wr(n, "nativeEl", () => h.value), M;
1471
1471
  }
1472
- }), qm = Symbol("quickforms-quasar-context");
1472
+ }), Bm = Symbol("quickforms-quasar-context");
1473
1473
  function c2(i) {
1474
- pm(qm, i);
1474
+ pm(Bm, i);
1475
1475
  }
1476
- function Bm() {
1477
- const i = Fo(qm, void 0);
1476
+ function _m() {
1477
+ const i = Fo(Bm, void 0);
1478
1478
  return i || Y0();
1479
1479
  }
1480
1480
  const Vy = {
@@ -1511,7 +1511,7 @@ function ti(i, e, t = {}) {
1511
1511
  i,
1512
1512
  e,
1513
1513
  { label: n }
1514
- ), f = Bm(), d = $0(i), m = b(() => dc(
1514
+ ), f = _m(), d = $0(i), m = b(() => dc(
1515
1515
  e,
1516
1516
  f == null ? void 0 : f.componentDefaults,
1517
1517
  r
@@ -2035,11 +2035,11 @@ function rb(i) {
2035
2035
  } catch {
2036
2036
  return;
2037
2037
  }
2038
- const e = N0(i);
2038
+ const e = H0(i);
2039
2039
  if (e)
2040
2040
  return e.$el || e;
2041
2041
  }
2042
- function _m(i, e) {
2042
+ function Rm(i, e) {
2043
2043
  if (i == null || i.contains(e) === !0)
2044
2044
  return !0;
2045
2045
  for (let t = i.nextElementSibling; t !== null; t = t.nextElementSibling)
@@ -2252,7 +2252,7 @@ function Rs(i) {
2252
2252
  e = e.parent;
2253
2253
  }
2254
2254
  }
2255
- function Rm(i) {
2255
+ function Em(i) {
2256
2256
  return i.appContext.config.globalProperties.$router !== void 0;
2257
2257
  }
2258
2258
  function gc(i) {
@@ -2289,7 +2289,7 @@ function cb(i, e) {
2289
2289
  return !1;
2290
2290
  return !0;
2291
2291
  }
2292
- const Em = {
2292
+ const Lm = {
2293
2293
  // router-link
2294
2294
  to: [String, Object],
2295
2295
  replace: Boolean,
@@ -2299,7 +2299,7 @@ const Em = {
2299
2299
  // state
2300
2300
  disable: Boolean
2301
2301
  }, pc = {
2302
- ...Em,
2302
+ ...Lm,
2303
2303
  // router-link
2304
2304
  exact: Boolean,
2305
2305
  activeClass: {
@@ -2311,8 +2311,8 @@ const Em = {
2311
2311
  default: "q-router-link--exact-active"
2312
2312
  }
2313
2313
  };
2314
- function Lm({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
2315
- const t = ze(), { props: n, proxy: r, emit: o } = t, s = Rm(t), l = b(() => n.disable !== !0 && n.href !== void 0), a = e === !0 ? b(
2314
+ function Im({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
2315
+ const t = ze(), { props: n, proxy: r, emit: o } = t, s = Em(t), l = b(() => n.disable !== !0 && n.href !== void 0), a = e === !0 ? b(
2316
2316
  () => s === !0 && n.disable !== !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
2317
2317
  ) : b(
2318
2318
  () => s === !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
@@ -2414,7 +2414,7 @@ const Js = $e({
2414
2414
  },
2415
2415
  emits: ["click", "keyup"],
2416
2416
  setup(i, { slots: e, emit: t }) {
2417
- const { proxy: { $q: n } } = ze(), r = Gi(i, n), { hasLink: o, linkAttrs: s, linkClass: l, linkTag: a, navigateOnClick: u } = Lm(), c = G(null), h = G(null), f = b(
2417
+ const { proxy: { $q: n } } = ze(), r = Gi(i, n), { hasLink: o, linkAttrs: s, linkClass: l, linkTag: a, navigateOnClick: u } = Im(), c = G(null), h = G(null), f = b(
2418
2418
  () => i.clickable === !0 || o.value === !0 || i.tag === "label"
2419
2419
  ), d = b(
2420
2420
  () => i.disable !== !0 && f.value === !0
@@ -2500,15 +2500,15 @@ function Xs() {
2500
2500
  i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), iu.is.mobile !== !0 && i.addRange(document.createRange()));
2501
2501
  } else document.selection !== void 0 && document.selection.empty();
2502
2502
  }
2503
- const Im = {
2503
+ const Vm = {
2504
2504
  /* SSR does not know about Element */
2505
2505
  target: {
2506
2506
  type: [Boolean, String, Element],
2507
2507
  default: !0
2508
2508
  },
2509
2509
  noParentEvent: Boolean
2510
- }, Vm = {
2511
- ...Im,
2510
+ }, Fm = {
2511
+ ...Vm,
2512
2512
  contextMenu: Boolean
2513
2513
  };
2514
2514
  function vc({
@@ -2609,7 +2609,7 @@ function vc({
2609
2609
  anchorEvents: u
2610
2610
  };
2611
2611
  }
2612
- function Fm(i, e) {
2612
+ function Nm(i, e) {
2613
2613
  const t = G(null);
2614
2614
  let n;
2615
2615
  function r(l, a) {
@@ -2681,7 +2681,7 @@ function Hl({
2681
2681
  function g(k) {
2682
2682
  l.disable === !0 && k === !0 ? l["onUpdate:modelValue"] !== void 0 && a("update:modelValue", !1) : k === !0 !== i.value && (k === !0 ? d : p)(c);
2683
2683
  }
2684
- ve(() => l.modelValue, g), t !== void 0 && Rm(s) === !0 && ve(() => u.$route.fullPath, () => {
2684
+ ve(() => l.modelValue, g), t !== void 0 && Em(s) === !0 && ve(() => u.$route.fullPath, () => {
2685
2685
  t.value === !0 && i.value === !0 && m();
2686
2686
  }), o === !0 && Si(() => {
2687
2687
  g(l.modelValue);
@@ -2708,7 +2708,7 @@ function gb(i) {
2708
2708
  (e) => e.contentEl !== null && e.contentEl.contains(i)
2709
2709
  );
2710
2710
  }
2711
- function Nm(i, e) {
2711
+ function Hm(i, e) {
2712
2712
  do {
2713
2713
  if (i.$options.name === "QMenu") {
2714
2714
  if (i.hide(e), i.$props.separateClosePopup === !0)
@@ -2724,7 +2724,7 @@ function pb(i, e, t) {
2724
2724
  for (; t !== 0 && i !== void 0 && i !== null; ) {
2725
2725
  if (i.__qPortal === !0) {
2726
2726
  if (t--, i.$options.name === "QMenu") {
2727
- i = Nm(i, e);
2727
+ i = Hm(i, e);
2728
2728
  continue;
2729
2729
  }
2730
2730
  i.hide(e);
@@ -2765,14 +2765,14 @@ function yc(i, e, t, n) {
2765
2765
  const f = Cr.indexOf(i.proxy);
2766
2766
  f !== -1 && Cr.splice(f, 1), s !== null && (mb(s), s = null);
2767
2767
  }
2768
- return H0(() => {
2768
+ return z0(() => {
2769
2769
  c(!0);
2770
2770
  }), i.proxy.__qPortal = !0, Wr(i.proxy, "contentEl", () => e.value), {
2771
2771
  showPortal: u,
2772
2772
  hidePortal: c,
2773
2773
  portalIsActive: r,
2774
2774
  portalIsAccessible: o,
2775
- renderPortal: () => a === !0 ? t() : r.value === !0 ? [A(z0, { to: s }, A(vb, t))] : void 0
2775
+ renderPortal: () => a === !0 ? t() : r.value === !0 ? [A(j0, { to: s }, A(vb, t))] : void 0
2776
2776
  };
2777
2777
  }
2778
2778
  const ao = {
@@ -2838,8 +2838,8 @@ function ko() {
2838
2838
  }
2839
2839
  };
2840
2840
  }
2841
- const Hm = [Element, String], bb = [null, document, document.body, document.scrollingElement, document.documentElement];
2842
- function zm(i, e) {
2841
+ const zm = [Element, String], bb = [null, document, document.body, document.scrollingElement, document.documentElement];
2842
+ function jm(i, e) {
2843
2843
  let t = rb(e);
2844
2844
  if (t === void 0) {
2845
2845
  if (i == null)
@@ -2890,26 +2890,26 @@ function Mb() {
2890
2890
  function Ab(i) {
2891
2891
  Er === !0 && (Er = !1, an(i, 27) === !0 && Xn[Xn.length - 1](i));
2892
2892
  }
2893
- function jm(i) {
2893
+ function Wm(i) {
2894
2894
  window[i]("keydown", Cb), window[i]("blur", Mb), window[i]("keyup", Ab), Er = !1;
2895
2895
  }
2896
- function Wm(i) {
2897
- Tt.is.desktop === !0 && (Xn.push(i), Xn.length === 1 && jm("addEventListener"));
2896
+ function Qm(i) {
2897
+ Tt.is.desktop === !0 && (Xn.push(i), Xn.length === 1 && Wm("addEventListener"));
2898
2898
  }
2899
2899
  function Zs(i) {
2900
2900
  const e = Xn.indexOf(i);
2901
- e !== -1 && (Xn.splice(e, 1), Xn.length === 0 && jm("removeEventListener"));
2901
+ e !== -1 && (Xn.splice(e, 1), Xn.length === 0 && Wm("removeEventListener"));
2902
2902
  }
2903
2903
  const Zn = [];
2904
- function Qm(i) {
2904
+ function Km(i) {
2905
2905
  Zn[Zn.length - 1](i);
2906
2906
  }
2907
- function Km(i) {
2908
- Tt.is.desktop === !0 && (Zn.push(i), Zn.length === 1 && document.body.addEventListener("focusin", Qm));
2907
+ function Um(i) {
2908
+ Tt.is.desktop === !0 && (Zn.push(i), Zn.length === 1 && document.body.addEventListener("focusin", Km));
2909
2909
  }
2910
2910
  function ru(i) {
2911
2911
  const e = Zn.indexOf(i);
2912
- e !== -1 && (Zn.splice(e, 1), Zn.length === 0 && document.body.removeEventListener("focusin", Qm));
2912
+ e !== -1 && (Zn.splice(e, 1), Zn.length === 0 && document.body.removeEventListener("focusin", Km));
2913
2913
  }
2914
2914
  const { notPassiveCapture: el } = At, er = [];
2915
2915
  function tl(i) {
@@ -2935,7 +2935,7 @@ function tl(i) {
2935
2935
  return;
2936
2936
  }
2937
2937
  }
2938
- function Um(i) {
2938
+ function Ym(i) {
2939
2939
  er.push(i), er.length === 1 && (document.addEventListener("mousedown", tl, el), document.addEventListener("touchstart", tl, el));
2940
2940
  }
2941
2941
  function il(i) {
@@ -2947,7 +2947,7 @@ function nl(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
- function Ym(i) {
2950
+ function Gm(i) {
2951
2951
  return i ? !(i.length !== 2 || typeof i[0] != "number" || typeof i[1] != "number") : !0;
2952
2952
  }
2953
2953
  const ou = {
@@ -3101,11 +3101,11 @@ function ma(i, e, t, n, r) {
3101
3101
  n.horizontal === "middle" ? e.middle : n.horizontal === r.horizontal ? e.left : e.right
3102
3102
  ), i.maxWidth = Math.min(s, u - i.left);
3103
3103
  }
3104
- const Gm = $e({
3104
+ const $m = $e({
3105
3105
  name: "QMenu",
3106
3106
  inheritAttrs: !1,
3107
3107
  props: {
3108
- ...Vm,
3108
+ ...Fm,
3109
3109
  ...Fl,
3110
3110
  ...Yi,
3111
3111
  ...ao,
@@ -3129,9 +3129,9 @@ const Gm = $e({
3129
3129
  },
3130
3130
  offset: {
3131
3131
  type: Array,
3132
- validator: Ym
3132
+ validator: Gm
3133
3133
  },
3134
- scrollTarget: Hm,
3134
+ scrollTarget: zm,
3135
3135
  touchPosition: Boolean,
3136
3136
  maxHeight: {
3137
3137
  type: String,
@@ -3151,7 +3151,7 @@ const Gm = $e({
3151
3151
  let r = null, o, s, l;
3152
3152
  const a = ze(), { proxy: u } = a, { $q: c } = u, h = G(null), f = G(!1), d = b(
3153
3153
  () => i.persistent !== !0 && i.noRouteDismiss !== !0
3154
- ), m = Gi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: y } = ko(), { transitionProps: k, transitionStyle: v } = bc(i), { localScrollTarget: x, changeScrollEvent: S, unconfigureScrollTarget: R } = Fm(i, H), { anchorEl: C, canShow: L } = vc({ showing: f }), { hide: K } = Hl({
3154
+ ), m = Gi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: y } = ko(), { transitionProps: k, transitionStyle: v } = bc(i), { localScrollTarget: x, changeScrollEvent: S, unconfigureScrollTarget: R } = Nm(i, H), { anchorEl: C, canShow: L } = vc({ showing: f }), { hide: K } = Hl({
3155
3155
  showing: f,
3156
3156
  canShow: L,
3157
3157
  handleShow: U,
@@ -3177,7 +3177,7 @@ const Gm = $e({
3177
3177
  () => f.value === !0 && i.persistent !== !0
3178
3178
  );
3179
3179
  ve(F, (Z) => {
3180
- Z === !0 ? (Wm(ae), Um(T)) : (Zs(ae), il(T));
3180
+ Z === !0 ? (Qm(ae), Ym(T)) : (Zs(ae), il(T));
3181
3181
  });
3182
3182
  function Y() {
3183
3183
  Ll(() => {
@@ -3186,7 +3186,7 @@ const Gm = $e({
3186
3186
  });
3187
3187
  }
3188
3188
  function U(Z) {
3189
- if (r = i.noRefocus === !1 ? document.activeElement : null, Km(re), _(), H(), o = void 0, Z !== void 0 && (i.touchPosition || i.contextMenu)) {
3189
+ if (r = i.noRefocus === !1 ? document.activeElement : null, Um(re), _(), H(), o = void 0, Z !== void 0 && (i.touchPosition || i.contextMenu)) {
3190
3190
  const et = Rr(Z);
3191
3191
  if (et.left !== void 0) {
3192
3192
  const { top: Ie, left: We } = C.value.getBoundingClientRect();
@@ -3212,13 +3212,13 @@ const Gm = $e({
3212
3212
  o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (ru(re), R(), il(T), Zs(ae)), Z !== !0 && (r = null);
3213
3213
  }
3214
3214
  function H() {
3215
- (C.value !== null || i.scrollTarget !== void 0) && (x.value = zm(C.value, i.scrollTarget), S(x.value, oe));
3215
+ (C.value !== null || i.scrollTarget !== void 0) && (x.value = jm(C.value, i.scrollTarget), S(x.value, oe));
3216
3216
  }
3217
3217
  function $(Z) {
3218
- l !== !0 ? (Nm(u, Z), t("click", Z)) : l = !1;
3218
+ l !== !0 ? (Hm(u, Z), t("click", Z)) : l = !1;
3219
3219
  }
3220
3220
  function re(Z) {
3221
- F.value === !0 && i.noFocus !== !0 && _m(h.value, Z.target) !== !0 && Y();
3221
+ F.value === !0 && i.noFocus !== !0 && Rm(h.value, Z.target) !== !0 && Y();
3222
3222
  }
3223
3223
  function ae(Z) {
3224
3224
  i.noEscDismiss !== !0 && (t("escapeKey"), K(Z));
@@ -3345,7 +3345,7 @@ const Eb = {
3345
3345
  bottom: ["slide-up", "slide-down"],
3346
3346
  right: ["slide-left", "slide-right"],
3347
3347
  left: ["slide-right", "slide-left"]
3348
- }, $m = $e({
3348
+ }, Jm = $e({
3349
3349
  name: "QDialog",
3350
3350
  inheritAttrs: !1,
3351
3351
  props: {
@@ -3413,7 +3413,7 @@ const Eb = {
3413
3413
  ve(() => i.maximized, ($) => {
3414
3414
  s.value === !0 && Y($);
3415
3415
  }), ve(_, ($) => {
3416
- d($), $ === !0 ? (Km(D), Wm(V)) : (ru(D), Zs(V));
3416
+ d($), $ === !0 ? (Um(D), Qm(V)) : (ru(D), Zs(V));
3417
3417
  });
3418
3418
  function T($) {
3419
3419
  var re;
@@ -3474,7 +3474,7 @@ const Eb = {
3474
3474
  i.persistent !== !0 && i.noBackdropDismiss !== !0 ? L($) : i.noShake !== !0 && Q();
3475
3475
  }
3476
3476
  function D($) {
3477
- i.allowFocusOutside !== !0 && R.value === !0 && _m(o.value, $.target) !== !0 && I('[tabindex]:not([tabindex="-1"])');
3477
+ i.allowFocusOutside !== !0 && R.value === !0 && Rm(o.value, $.target) !== !0 && I('[tabindex]:not([tabindex="-1"])');
3478
3478
  }
3479
3479
  Object.assign(r.proxy, {
3480
3480
  // expose public methods
@@ -3539,12 +3539,12 @@ const Ai = 1e3, Lb = [
3539
3539
  "start-force",
3540
3540
  "center-force",
3541
3541
  "end-force"
3542
- ], Jm = Array.prototype.filter, Ib = window.getComputedStyle(document.body).overflowAnchor === void 0 ? ac : function(i, e) {
3542
+ ], Xm = Array.prototype.filter, Ib = window.getComputedStyle(document.body).overflowAnchor === void 0 ? ac : function(i, e) {
3543
3543
  i !== null && (i._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(i._qOverflowAnimationFrame), i._qOverflowAnimationFrame = requestAnimationFrame(() => {
3544
3544
  if (i === null) return;
3545
3545
  i._qOverflowAnimationFrame = void 0;
3546
3546
  const t = i.children || [];
3547
- Jm.call(t, (r) => r.dataset && r.dataset.qVsAnchor !== void 0).forEach((r) => {
3547
+ Xm.call(t, (r) => r.dataset && r.dataset.qVsAnchor !== void 0).forEach((r) => {
3548
3548
  delete r.dataset.qVsAnchor;
3549
3549
  });
3550
3550
  const n = t[e];
@@ -3743,7 +3743,7 @@ function Fb({
3743
3743
  function T(M) {
3744
3744
  const D = v.value;
3745
3745
  if (D) {
3746
- const H = Jm.call(
3746
+ const H = Xm.call(
3747
3747
  D.children,
3748
3748
  (Z) => Z.classList && Z.classList.contains("q-virtual-scroll--skip") === !1
3749
3749
  ), $ = H.length, re = o.virtualScrollHorizontal === !0 ? (Z) => Z.getBoundingClientRect().width : (Z) => Z.offsetHeight;
@@ -3864,11 +3864,11 @@ function Fb({
3864
3864
  }), c = M);
3865
3865
  }
3866
3866
  Q();
3867
- const Y = Cm(
3867
+ const Y = Mm(
3868
3868
  O,
3869
3869
  a.platform.is.ios === !0 ? 120 : 35
3870
3870
  );
3871
- j0(() => {
3871
+ W0(() => {
3872
3872
  Q();
3873
3873
  });
3874
3874
  let U = !1;
@@ -4076,7 +4076,7 @@ const zl = $e({
4076
4076
  setup(i, { slots: e, emit: t }) {
4077
4077
  const { proxy: n } = ze(), { $q: r } = n, o = G(!1), s = G(!1), l = G(-1), a = G(""), u = G(!1), c = G(!1);
4078
4078
  let h = null, f = null, d, m, p, g = null, y, k, v, x;
4079
- const S = G(null), R = G(null), C = G(null), L = G(null), K = G(null), _ = Dm(i), O = Pm(cr), P = b(() => Array.isArray(i.options) ? i.options.length : 0), T = b(() => i.virtualScrollItemSize === void 0 ? i.optionsDense === !0 ? 24 : 48 : i.virtualScrollItemSize), {
4079
+ const S = G(null), R = G(null), C = G(null), L = G(null), K = G(null), _ = Pm(i), O = qm(cr), P = b(() => Array.isArray(i.options) ? i.options.length : 0), T = b(() => i.virtualScrollItemSize === void 0 ? i.optionsDense === !0 ? 24 : 48 : i.virtualScrollItemSize), {
4080
4080
  virtualScrollSliceRange: B,
4081
4081
  virtualScrollSliceSizeComputed: I,
4082
4082
  localResetVirtualScroll: Q,
@@ -4190,7 +4190,7 @@ const zl = $e({
4190
4190
  });
4191
4191
  ve(D, (q) => {
4192
4192
  d = q, 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, sa), ve(P, C0);
4193
+ }, { immediate: !0 }), ve(() => i.fillInput, pi), ve(o, sa), ve(P, M0);
4194
4194
  function He(q) {
4195
4195
  return i.emitValue === !0 ? lt.value(q) : q;
4196
4196
  }
@@ -4469,7 +4469,7 @@ const zl = $e({
4469
4469
  );
4470
4470
  }
4471
4471
  function na() {
4472
- return A(Gm, {
4472
+ return A($m, {
4473
4473
  ref: C,
4474
4474
  class: oe.value,
4475
4475
  style: i.popupContentStyle,
@@ -4542,7 +4542,7 @@ const zl = $e({
4542
4542
  onClick: $t,
4543
4543
  onScrollPassive: F
4544
4544
  }, $i())
4545
- ), A($m, {
4545
+ ), A(Jm, {
4546
4546
  ref: L,
4547
4547
  modelValue: s.value,
4548
4548
  position: i.useInput === !0 ? "top" : void 0,
@@ -4599,7 +4599,7 @@ const zl = $e({
4599
4599
  }
4600
4600
  j(ue);
4601
4601
  }
4602
- function C0(q, ue) {
4602
+ function M0(q, ue) {
4603
4603
  o.value === !0 && M.innerLoading.value === !1 && (Q(-1, !0), rt(() => {
4604
4604
  o.value === !0 && M.innerLoading.value === !1 && (q > ue ? Q() : sa(!0));
4605
4605
  }));
@@ -4616,7 +4616,7 @@ const zl = $e({
4616
4616
  function lh() {
4617
4617
  m = r.platform.is.mobile !== !0 && i.behavior !== "dialog" ? !1 : i.behavior !== "menu" && (i.useInput === !0 ? e["no-option"] !== void 0 || i.onFilter !== void 0 || _e.value === !1 : !0), k = r.platform.is.ios === !0 && m === !0 && i.useInput === !0 ? "fade" : i.transitionShow;
4618
4618
  }
4619
- return gm(lh), W0(rh), lh(), ht(() => {
4619
+ return gm(lh), Q0(rh), lh(), ht(() => {
4620
4620
  h !== null && clearTimeout(h), f !== null && clearTimeout(f);
4621
4621
  }), Object.assign(n, {
4622
4622
  showPopup: Se,
@@ -4858,7 +4858,7 @@ function Wb(i, e, t, n, r, o) {
4858
4858
  /* STYLE */
4859
4859
  );
4860
4860
  }
4861
- const Wh = /* @__PURE__ */ ii(jb, [["render", Wb], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarEnumField.vue"]]), Xm = {
4861
+ const Wh = /* @__PURE__ */ ii(jb, [["render", Wb], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarEnumField.vue"]]), Zm = {
4862
4862
  left: "start",
4863
4863
  center: "center",
4864
4864
  right: "end",
@@ -4866,16 +4866,16 @@ const Wh = /* @__PURE__ */ ii(jb, [["render", Wb], ["__file", "/Users/zachsherbo
4866
4866
  around: "around",
4867
4867
  evenly: "evenly",
4868
4868
  stretch: "stretch"
4869
- }, Qb = Object.keys(Xm), Zm = {
4869
+ }, Qb = Object.keys(Zm), eg = {
4870
4870
  align: {
4871
4871
  type: String,
4872
4872
  validator: (i) => Qb.includes(i)
4873
4873
  }
4874
4874
  };
4875
- function eg(i) {
4875
+ function tg(i) {
4876
4876
  return b(() => {
4877
4877
  const e = i.align === void 0 ? i.vertical === !0 ? "stretch" : "left" : i.align;
4878
- return `${i.vertical === !0 ? "items" : "justify"}-${Xm[e]}`;
4878
+ return `${i.vertical === !0 ? "items" : "justify"}-${Zm[e]}`;
4879
4879
  });
4880
4880
  }
4881
4881
  const Qh = {
@@ -4897,7 +4897,7 @@ function $b(i, e) {
4897
4897
  }
4898
4898
  const Jb = {
4899
4899
  ...Rl,
4900
- ...Em,
4900
+ ...Lm,
4901
4901
  type: {
4902
4902
  type: String,
4903
4903
  default: "button"
@@ -4927,7 +4927,7 @@ const Jb = {
4927
4927
  default: !0
4928
4928
  },
4929
4929
  align: {
4930
- ...Zm.align,
4930
+ ...eg.align,
4931
4931
  default: "center"
4932
4932
  },
4933
4933
  stack: Boolean,
@@ -4942,7 +4942,7 @@ const Jb = {
4942
4942
  round: Boolean
4943
4943
  };
4944
4944
  function Zb(i) {
4945
- const e = El(i, Kb), t = eg(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Lm({
4945
+ const e = El(i, Kb), t = tg(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Im({
4946
4946
  fallbackTag: "button"
4947
4947
  }), a = b(() => {
4948
4948
  const g = i.fab === !1 && i.fabMini === !1 ? e.value : {};
@@ -5142,7 +5142,7 @@ const Lt = $e({
5142
5142
  A("span", {
5143
5143
  key: "loading",
5144
5144
  class: "absolute-full flex flex-center"
5145
- }, e.loading !== void 0 ? e.loading() : [A(xm)])
5145
+ }, e.loading !== void 0 ? e.loading() : [A(km)])
5146
5146
  ] : null)
5147
5147
  ), Rn(
5148
5148
  A(
@@ -5197,7 +5197,7 @@ const kc = lc(
5197
5197
  ), wc = $e({
5198
5198
  name: "QPopupProxy",
5199
5199
  props: {
5200
- ...Vm,
5200
+ ...Fm,
5201
5201
  breakpoint: {
5202
5202
  type: [String, Number],
5203
5203
  default: 450
@@ -5243,7 +5243,7 @@ const kc = lc(
5243
5243
  onHide: m
5244
5244
  };
5245
5245
  let g;
5246
- return h.value === "dialog" ? g = $m : (g = Gm, Object.assign(p, {
5246
+ return h.value === "dialog" ? g = Jm : (g = $m, Object.assign(p, {
5247
5247
  target: i.target,
5248
5248
  contextMenu: i.contextMenu,
5249
5249
  noParentEvent: !0,
@@ -5293,7 +5293,7 @@ function t1(i, e, t) {
5293
5293
  return Object.prototype.toString.call(i) === "[object Date]" && (t = i.getDate(), e = i.getMonth() + 1, i = i.getFullYear()), o1(Sc(i, e, t));
5294
5294
  }
5295
5295
  function Uh(i, e, t) {
5296
- return ig(r1(i, e, t));
5296
+ return ng(r1(i, e, t));
5297
5297
  }
5298
5298
  function i1(i) {
5299
5299
  return n1(i) === 0;
@@ -5310,7 +5310,7 @@ function n1(i) {
5310
5310
  t = n;
5311
5311
  return s = i - t, r - s < 6 && (s = s - r + nt(r + 4, 33) * 33), o = di(di(s + 1, 33) - 1, 4), o === -1 && (o = 4), o;
5312
5312
  }
5313
- function tg(i, e) {
5313
+ function ig(i, e) {
5314
5314
  const t = wn.length, n = i + 621;
5315
5315
  let r = -14, o = wn[0], s, l, a, u, c;
5316
5316
  if (i < o || i >= wn[t - 1])
@@ -5326,13 +5326,13 @@ function tg(i, e) {
5326
5326
  };
5327
5327
  }
5328
5328
  function r1(i, e, t) {
5329
- const n = tg(i, !0);
5329
+ const n = ig(i, !0);
5330
5330
  return Sc(n.gy, 3, n.march) + (e - 1) * 31 - nt(e, 7) * (e - 7) + t - 1;
5331
5331
  }
5332
5332
  function o1(i) {
5333
- const e = ig(i).gy;
5333
+ const e = ng(i).gy;
5334
5334
  let t = e - 621, n, r, o;
5335
- const s = tg(t, !1), l = Sc(e, 3, s.march);
5335
+ const s = ig(t, !1), l = Sc(e, 3, s.march);
5336
5336
  if (o = i - l, o >= 0) {
5337
5337
  if (o <= 185)
5338
5338
  return r = 1 + nt(o, 31), n = di(o, 31) + 1, {
@@ -5353,7 +5353,7 @@ function Sc(i, e, t) {
5353
5353
  let n = nt((i + nt(e - 8, 6) + 100100) * 1461, 4) + nt(153 * di(e + 9, 12) + 2, 5) + t - 34840408;
5354
5354
  return n = n - nt(nt(i + 100100 + nt(e - 8, 6), 100) * 3, 4) + 752, n;
5355
5355
  }
5356
- function ig(i) {
5356
+ function ng(i) {
5357
5357
  let e = 4 * i + 139361631;
5358
5358
  e = e + nt(nt(4 * i + 183187720, 146097) * 3, 4) * 4 - 3908;
5359
5359
  const t = nt(di(e, 1461), 4) * 5 + 308, n = nt(di(t, 153), 5) + 1, r = di(nt(t, 153), 12) + 1;
@@ -5388,11 +5388,11 @@ const s1 = ["gregorian", "persian"], ol = {
5388
5388
  bordered: Boolean,
5389
5389
  readonly: Boolean,
5390
5390
  disable: Boolean
5391
- }, ng = ["update:modelValue"];
5391
+ }, rg = ["update:modelValue"];
5392
5392
  function Xi(i) {
5393
5393
  return i.year + "/" + Fe(i.month) + "/" + Fe(i.day);
5394
5394
  }
5395
- function rg(i, e) {
5395
+ function og(i, e) {
5396
5396
  const t = b(() => i.disable !== !0 && i.readonly !== !0), n = b(() => t.value === !0 ? 0 : -1), r = b(() => {
5397
5397
  const l = [];
5398
5398
  return i.color !== void 0 && l.push(`bg-${i.color}`), i.textColor !== void 0 && l.push(`text-${i.textColor}`), l.join(" ");
@@ -5566,7 +5566,7 @@ const gn = X0({
5566
5566
  }
5567
5567
  }), this.set(e || su));
5568
5568
  }
5569
- }), og = 864e5, l1 = 36e5, lu = 6e4, sg = "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, xa = {};
5569
+ }), sg = 864e5, l1 = 36e5, lu = 6e4, lg = "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, xa = {};
5570
5570
  function c1(i, e) {
5571
5571
  const t = "(" + e.days.join("|") + ")", n = i + t;
5572
5572
  if (xa[n] !== void 0)
@@ -5660,7 +5660,7 @@ function c1(i, e) {
5660
5660
  }), c = { map: l, regex: new RegExp("^" + u) };
5661
5661
  return xa[n] = c, c;
5662
5662
  }
5663
- function lg(i, e) {
5663
+ function ag(i, e) {
5664
5664
  return i !== void 0 ? i : e !== void 0 ? e.date : su.date;
5665
5665
  }
5666
5666
  function Gh(i, e = "") {
@@ -5682,8 +5682,8 @@ function no(i, e, t, n, r) {
5682
5682
  };
5683
5683
  if (r !== void 0 && Object.assign(o, r), i == null || i === "" || typeof i != "string")
5684
5684
  return o;
5685
- e === void 0 && (e = sg);
5686
- const s = lg(t, gn.props), l = s.months, a = s.monthsShort, { regex: u, map: c } = c1(e, s), h = i.match(u);
5685
+ e === void 0 && (e = lg);
5686
+ const s = ag(t, gn.props), l = s.months, a = s.monthsShort, { regex: u, map: c } = c1(e, s), h = i.match(u);
5687
5687
  if (h === null)
5688
5688
  return o;
5689
5689
  let f = "";
@@ -5722,7 +5722,7 @@ function ka(i) {
5722
5722
  t.setDate(t.getDate() - (t.getDay() + 6) % 7 + 3);
5723
5723
  const n = e.getTimezoneOffset() - t.getTimezoneOffset();
5724
5724
  e.setHours(e.getHours() - n);
5725
- const r = (e - t) / (og * 7);
5725
+ const r = (e - t) / (sg * 7);
5726
5726
  return 1 + Math.floor(r);
5727
5727
  }
5728
5728
  function Zi(i, e, t) {
@@ -5753,7 +5753,7 @@ function Zi(i, e, t) {
5753
5753
  function ls(i, e, t) {
5754
5754
  return (i.getTime() - i.getTimezoneOffset() * lu - (e.getTime() - e.getTimezoneOffset() * lu)) / t;
5755
5755
  }
5756
- function ag(i, e, t = "days") {
5756
+ function ug(i, e, t = "days") {
5757
5757
  const n = new Date(i), r = new Date(e);
5758
5758
  switch (t) {
5759
5759
  case "years":
@@ -5765,7 +5765,7 @@ function ag(i, e, t = "days") {
5765
5765
  case "days":
5766
5766
  case "day":
5767
5767
  case "date":
5768
- return ls(Zi(n, "day"), Zi(r, "day"), og);
5768
+ return ls(Zi(n, "day"), Zi(r, "day"), sg);
5769
5769
  case "hours":
5770
5770
  case "hour":
5771
5771
  return ls(Zi(n, "hour"), Zi(r, "hour"), l1);
@@ -5778,7 +5778,7 @@ function ag(i, e, t = "days") {
5778
5778
  }
5779
5779
  }
5780
5780
  function wa(i) {
5781
- return ag(i, Zi(i, "year"), "days") + 1;
5781
+ return ug(i, Zi(i, "year"), "days") + 1;
5782
5782
  }
5783
5783
  function gr(i) {
5784
5784
  if (i >= 11 && i <= 13)
@@ -5967,12 +5967,12 @@ const $h = {
5967
5967
  return i.getTime();
5968
5968
  }
5969
5969
  };
5970
- function ug(i, e, t, n, r) {
5970
+ function cg(i, e, t, n, r) {
5971
5971
  if (i !== 0 && !i || i === 1 / 0 || i === -1 / 0) return;
5972
5972
  const o = new Date(i);
5973
5973
  if (isNaN(o)) return;
5974
- e === void 0 && (e = sg);
5975
- const s = lg(t, gn.props);
5974
+ e === void 0 && (e = lg);
5975
+ const s = ag(t, gn.props);
5976
5976
  return e.replace(
5977
5977
  a1,
5978
5978
  (l, a) => l in $h ? $h[l](o, s, n, r) : a === void 0 ? l : a.split("\\]").join("]")
@@ -5982,7 +5982,7 @@ const Ji = 20, h1 = ["Calendar", "Years", "Months"], Jh = (i) => h1.includes(i),
5982
5982
  function mn(i) {
5983
5983
  return i.year + "/" + Fe(i.month);
5984
5984
  }
5985
- const cg = $e({
5985
+ const hg = $e({
5986
5986
  name: "QDate",
5987
5987
  props: {
5988
5988
  ...ol,
@@ -6030,15 +6030,15 @@ const cg = $e({
6030
6030
  }
6031
6031
  },
6032
6032
  emits: [
6033
- ...ng,
6033
+ ...rg,
6034
6034
  "rangeStart",
6035
6035
  "rangeEnd",
6036
6036
  "navigation"
6037
6037
  ],
6038
6038
  setup(i, { slots: e, emit: t }) {
6039
- const { proxy: n } = ze(), { $q: r } = n, o = Gi(i, r), { getCache: s } = e1(), { tabindex: l, headerClass: a, getLocale: u, getCurrentDate: c } = rg(i, r);
6039
+ const { proxy: n } = ze(), { $q: r } = n, o = Gi(i, r), { getCache: s } = e1(), { tabindex: l, headerClass: a, getLocale: u, getCurrentDate: c } = og(i, r);
6040
6040
  let h;
6041
- const f = Tm(i), d = fc(f), m = G(null), p = G(Je()), g = G(u()), y = b(() => Je()), k = b(() => u()), v = b(() => c()), x = G(j(p.value, g.value)), S = G(i.defaultView), R = b(() => r.lang.rtl === !0 ? "right" : "left"), C = G(R.value), L = G(R.value), K = x.value.year, _ = G(K - K % Ji - (K < 0 ? Ji : 0)), O = G(null), P = b(() => {
6041
+ const f = Dm(i), d = fc(f), m = G(null), p = G(Je()), g = G(u()), y = b(() => Je()), k = b(() => u()), v = b(() => c()), x = G(j(p.value, g.value)), S = G(i.defaultView), R = b(() => r.lang.rtl === !0 ? "right" : "left"), C = G(R.value), L = G(R.value), K = x.value.year, _ = G(K - K % Ji - (K < 0 ? Ji : 0)), O = G(null), P = b(() => {
6042
6042
  const w = i.landscape === !0 ? "landscape" : "portrait";
6043
6043
  return `q-date q-date--${w} q-date--${w}-${i.minimal === !0 ? "minimal" : "standard"}` + (o.value === !0 ? " q-date--dark q-dark" : "") + (i.bordered === !0 ? " q-date--bordered" : "") + (i.square === !0 ? " q-date--square no-border-radius" : "") + (i.flat === !0 ? " q-date--flat no-shadow" : "") + (i.disable === !0 ? " disabled" : i.readonly === !0 ? " q-date--readonly" : "");
6044
6044
  }), T = b(() => i.color || "primary"), B = b(() => i.textColor || "white"), I = b(
@@ -6053,7 +6053,7 @@ const cg = $e({
6053
6053
  }), Y = b(() => i.calendar !== "persian" ? (w) => new Date(w.year, w.month - 1, w.day) : (w) => {
6054
6054
  const E = Uh(w.year, w.month, w.day);
6055
6055
  return new Date(E.gy, E.gm - 1, E.gd);
6056
- }), U = b(() => i.calendar === "persian" ? Xi : (w, E, z) => ug(
6056
+ }), U = b(() => i.calendar === "persian" ? Xi : (w, E, z) => cg(
6057
6057
  new Date(
6058
6058
  w.year,
6059
6059
  w.month - 1,
@@ -6069,7 +6069,7 @@ const cg = $e({
6069
6069
  w.timezoneOffset
6070
6070
  )), M = b(
6071
6071
  () => V.value.length + F.value.reduce(
6072
- (w, E) => w + 1 + ag(
6072
+ (w, E) => w + 1 + ug(
6073
6073
  Y.value(E.to),
6074
6074
  Y.value(E.from)
6075
6075
  ),
@@ -6853,7 +6853,7 @@ const cg = $e({
6853
6853
  }, get QPopupProxy() {
6854
6854
  return wc;
6855
6855
  }, get QDate() {
6856
- return cg;
6856
+ return hg;
6857
6857
  } };
6858
6858
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
6859
6859
  }
@@ -7149,7 +7149,7 @@ function x1() {
7149
7149
  millisecond: i.getMilliseconds()
7150
7150
  };
7151
7151
  }
7152
- const hg = $e({
7152
+ const fg = $e({
7153
7153
  name: "QTime",
7154
7154
  props: {
7155
7155
  ...Yi,
@@ -7178,9 +7178,9 @@ const hg = $e({
7178
7178
  withSeconds: Boolean,
7179
7179
  nowBtn: Boolean
7180
7180
  },
7181
- emits: ng,
7181
+ emits: rg,
7182
7182
  setup(i, { slots: e, emit: t }) {
7183
- const n = ze(), { $q: r } = n.proxy, o = Gi(i, r), { tabindex: s, headerClass: l, getLocale: a, getCurrentDate: u } = rg(i, r), c = Tm(i), h = fc(c);
7183
+ const n = ze(), { $q: r } = n.proxy, o = Gi(i, r), { tabindex: s, headerClass: l, getLocale: a, getCurrentDate: u } = og(i, r), c = Dm(i), h = fc(c);
7184
7184
  let f, d;
7185
7185
  const m = G(null), p = b(() => re()), g = b(() => a()), y = b(() => ae()), k = no(
7186
7186
  i.modelValue,
@@ -7463,7 +7463,7 @@ const hg = $e({
7463
7463
  x.value.hour === null || x.value.minute === null || i.withSeconds === !0 && x.value.second === null || Pe();
7464
7464
  }
7465
7465
  function Pe(j) {
7466
- const X = Object.assign({ ...x.value }, j), be = i.calendar === "persian" ? Fe(X.hour) + ":" + Fe(X.minute) + (i.withSeconds === !0 ? ":" + Fe(X.second) : "") : ug(
7466
+ const X = Object.assign({ ...x.value }, j), be = i.calendar === "persian" ? Fe(X.hour) + ":" + Fe(X.minute) + (i.withSeconds === !0 ? ":" + Fe(X.second) : "") : cg(
7467
7467
  new Date(
7468
7468
  X.year,
7469
7469
  X.month === null ? null : X.month - 1,
@@ -7632,7 +7632,7 @@ const hg = $e({
7632
7632
  }, get QPopupProxy() {
7633
7633
  return wc;
7634
7634
  }, get QTime() {
7635
- return hg;
7635
+ return fg;
7636
7636
  } };
7637
7637
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
7638
7638
  }
@@ -7750,11 +7750,11 @@ const tf = /* @__PURE__ */ ii(k1, [["render", S1], ["__file", "/Users/zachsherbo
7750
7750
  }), C1 = $e({
7751
7751
  name: "QCardActions",
7752
7752
  props: {
7753
- ...Zm,
7753
+ ...eg,
7754
7754
  vertical: Boolean
7755
7755
  },
7756
7756
  setup(i, { slots: e }) {
7757
- const t = eg(i), n = b(
7757
+ const t = tg(i), n = b(
7758
7758
  () => `q-card__actions ${t.value} q-card__actions--${i.vertical === !0 ? "vert column" : "horiz row"}`
7759
7759
  );
7760
7760
  return () => A("div", { class: n.value }, Pt(e.default));
@@ -7848,9 +7848,9 @@ const tf = /* @__PURE__ */ ii(k1, [["render", S1], ["__file", "/Users/zachsherbo
7848
7848
  }, get QPopupProxy() {
7849
7849
  return wc;
7850
7850
  }, get QDate() {
7851
- return cg;
7852
- }, get QTime() {
7853
7851
  return hg;
7852
+ }, get QTime() {
7853
+ return fg;
7854
7854
  }, get QCard() {
7855
7855
  return Mc;
7856
7856
  }, get QCardActions() {
@@ -8034,7 +8034,7 @@ const nf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8034
8034
  onLeave: m
8035
8035
  }, e.default);
8036
8036
  }
8037
- }), Nn = Q0({}), P1 = Object.keys(pc), q1 = $e({
8037
+ }), Nn = K0({}), P1 = Object.keys(pc), q1 = $e({
8038
8038
  name: "QExpansionItem",
8039
8039
  props: {
8040
8040
  ...pc,
@@ -8073,7 +8073,7 @@ const nf = /* @__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 = G(
8075
8075
  i.modelValue !== null ? i.modelValue : i.defaultOpened
8076
- ), s = G(null), l = wm(), { show: a, hide: u, toggle: c } = Hl({ showing: o });
8076
+ ), s = G(null), l = Sm(), { show: a, hide: u, toggle: c } = Hl({ showing: o });
8077
8077
  let h, f;
8078
8078
  const d = b(
8079
8079
  () => `q-expansion-item q-item-type q-expansion-item--${o.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${i.popup === !0 ? "popup" : "standard"}`
@@ -8205,7 +8205,7 @@ const nf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8205
8205
  id: l.value
8206
8206
  }, Pt(e.default)),
8207
8207
  [[
8208
- K0,
8208
+ U0,
8209
8209
  o.value
8210
8210
  ]]
8211
8211
  );
@@ -8261,52 +8261,59 @@ const nf = /* @__PURE__ */ ii(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
8261
8261
  label: t.label,
8262
8262
  componentType: "expansion"
8263
8263
  }), c = b(() => {
8264
- var k;
8265
- const p = t.schema["x-default-expanded"];
8266
- if (p !== void 0)
8267
- return p;
8268
- const g = (k = u == null ? void 0 : u.componentDefaults) == null ? void 0 : k.object, y = (g == null ? void 0 : g.defaultExpanded) ?? "required-only";
8269
- return y === "all" ? !0 : y === "none" ? !1 : s.value;
8264
+ var x;
8265
+ const y = t.schema["x-default-expanded"];
8266
+ if (y !== void 0)
8267
+ return y;
8268
+ const k = (x = u == null ? void 0 : u.componentDefaults) == null ? void 0 : x.object, v = (k == null ? void 0 : k.defaultExpanded) ?? "required-only";
8269
+ return v === "all" ? !0 : v === "none" ? !1 : s.value;
8270
8270
  }), h = b(() => {
8271
- var g;
8272
- const p = (g = u == null ? void 0 : u.componentDefaults) == null ? void 0 : g.object;
8273
- return (p == null ? void 0 : p.showOptionalIndicator) ?? !0;
8271
+ var k;
8272
+ const y = (k = u == null ? void 0 : u.componentDefaults) == null ? void 0 : k.object;
8273
+ return (y == null ? void 0 : y.showOptionalIndicator) ?? !0;
8274
8274
  }), f = b(() => {
8275
- const p = t.schema["x-quasar-props"] || {};
8276
- return { ...t.schema["x-component-props"] || {}, ...p };
8277
- }), d = b(() => t.schema.properties ? Object.entries(t.schema.properties).map(([p, g]) => ({
8278
- key: p,
8279
- schema: g,
8280
- path: t.path ? `${t.path}.${p}` : p
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() {
8275
+ var k;
8276
+ const y = (k = u == null ? void 0 : u.componentDefaults) == null ? void 0 : k.object;
8277
+ return (y == null ? void 0 : y.sectionStyle) ?? "solid";
8278
+ }), d = b(() => `quickform-section-${f.value}`), m = b(() => {
8279
+ const y = t.schema["x-quasar-props"] || {};
8280
+ return { ...t.schema["x-component-props"] || {}, ...y };
8281
+ }), p = b(() => t.schema.properties ? Object.entries(t.schema.properties).map(([y, k]) => ({
8282
+ key: y,
8283
+ schema: k,
8284
+ path: t.path ? `${t.path}.${y}` : y
8285
+ })) : []), g = { props: t, label: n, hint: r, errorMessage: o, required: s, fieldId: l, fieldGap: a, formContext: u, defaultOpened: c, showOptionalIndicator: h, sectionStyle: f, sectionStyleClass: d, quasarProps: m, properties: p, get QExpansionItem() {
8282
8286
  return q1;
8283
8287
  }, get FieldRenderer() {
8284
8288
  return _l;
8285
8289
  } };
8286
- return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
8290
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
8287
8291
  }
8288
- }), _1 = { class: "text-subtitle1" }, R1 = {
8292
+ }), _1 = { class: "quickform-object-header-content" }, R1 = {
8289
8293
  key: 0,
8290
- style: { color: "red", "margin-left": "0.25rem" }
8294
+ class: "quickform-required-indicator"
8291
8295
  }, E1 = {
8292
8296
  key: 1,
8293
- style: { color: "#888", "font-size": "0.75rem", "margin-left": "0.5rem" }
8294
- }, L1 = { style: { padding: "1rem" } }, I1 = {
8297
+ class: "quickform-optional-indicator"
8298
+ }, L1 = { class: "quickform-object-content" }, I1 = {
8295
8299
  key: 0,
8296
- style: { color: "red", "font-size": "0.875rem", "margin-top": "0.5rem" }
8300
+ class: "quickform-error-message"
8297
8301
  };
8298
8302
  function V1(i, e, t, n, r, o) {
8299
8303
  return te(), fe(
8300
8304
  "div",
8301
8305
  {
8302
- style: xt({ marginBottom: n.fieldGap })
8306
+ style: xt({ marginBottom: n.fieldGap }),
8307
+ class: vm(["quickform-object-field", n.sectionStyleClass])
8303
8308
  },
8304
8309
  [
8305
8310
  ee(n.QExpansionItem, ut({
8306
8311
  id: n.fieldId,
8307
8312
  label: n.label,
8308
8313
  caption: n.hint,
8309
- "default-opened": n.defaultOpened
8314
+ "default-opened": n.defaultOpened,
8315
+ "header-class": "quickform-object-header",
8316
+ "expand-icon-class": "text-grey-7"
8310
8317
  }, n.quasarProps), {
8311
8318
  header: ye(() => [
8312
8319
  we("div", _1, [
@@ -8316,7 +8323,7 @@ function V1(i, e, t, n, r, o) {
8316
8323
  /* TEXT */
8317
8324
  ),
8318
8325
  n.required ? (te(), fe("span", R1, "*")) : he("v-if", !0),
8319
- !n.required && n.showOptionalIndicator ? (te(), fe("span", E1, "(optional)")) : he("v-if", !0)
8326
+ !n.required && n.showOptionalIndicator ? (te(), fe("span", E1, " (optional) ")) : he("v-if", !0)
8320
8327
  ])
8321
8328
  ]),
8322
8329
  default: ye(() => [
@@ -8347,15 +8354,15 @@ function V1(i, e, t, n, r, o) {
8347
8354
  /* STABLE */
8348
8355
  }, 16, ["id", "label", "caption", "default-opened"])
8349
8356
  ],
8350
- 4
8351
- /* STYLE */
8357
+ 6
8358
+ /* CLASS, STYLE */
8352
8359
  );
8353
8360
  }
8354
- const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarObjectField.vue"]]), uo = $e({
8361
+ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__scopeId", "data-v-813eef2a"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarObjectField.vue"]]), uo = $e({
8355
8362
  name: "QTooltip",
8356
8363
  inheritAttrs: !1,
8357
8364
  props: {
8358
- ...Im,
8365
+ ...Vm,
8359
8366
  ...Fl,
8360
8367
  ...ao,
8361
8368
  maxHeight: {
@@ -8387,9 +8394,9 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8387
8394
  offset: {
8388
8395
  type: Array,
8389
8396
  default: () => [14, 14],
8390
- validator: Ym
8397
+ validator: Gm
8391
8398
  },
8392
- scrollTarget: Hm,
8399
+ scrollTarget: zm,
8393
8400
  delay: {
8394
8401
  type: Number,
8395
8402
  default: 0
@@ -8405,7 +8412,7 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8405
8412
  ],
8406
8413
  setup(i, { slots: e, emit: t, attrs: n }) {
8407
8414
  let r, o;
8408
- const s = ze(), { proxy: { $q: l } } = s, a = G(null), u = G(!1), c = b(() => rl(i.anchor, l.lang.rtl)), h = b(() => rl(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: y } = bc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: x } = Fm(i, U), { anchorEl: S, canShow: R, anchorEvents: C } = vc({ showing: u, configureAnchorEl: Y }), { show: L, hide: K } = Hl({
8415
+ const s = ze(), { proxy: { $q: l } } = s, a = G(null), u = G(!1), c = b(() => rl(i.anchor, l.lang.rtl)), h = b(() => rl(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: y } = bc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: x } = Nm(i, U), { anchorEl: S, canShow: R, anchorEvents: C } = vc({ showing: u, configureAnchorEl: Y }), { show: L, hide: K } = Hl({
8409
8416
  showing: u,
8410
8417
  canShow: R,
8411
8418
  handleShow: T,
@@ -8430,7 +8437,7 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8430
8437
  )
8431
8438
  );
8432
8439
  ve($, (re) => {
8433
- (re === !0 ? Um : il)(H);
8440
+ (re === !0 ? Ym : il)(H);
8434
8441
  }), ht(() => {
8435
8442
  il(H);
8436
8443
  });
@@ -8493,7 +8500,7 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8493
8500
  }
8494
8501
  function U() {
8495
8502
  if (S.value !== null || i.scrollTarget !== void 0) {
8496
- k.value = zm(S.value, i.scrollTarget);
8503
+ k.value = jm(S.value, i.scrollTarget);
8497
8504
  const H = i.noParentEvent === !0 ? Q : K;
8498
8505
  v(k.value, H);
8499
8506
  }
@@ -8518,7 +8525,7 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8518
8525
  }
8519
8526
  return ht(I), Object.assign(s.proxy, { updatePosition: Q }), P;
8520
8527
  }
8521
- }), fg = $e({
8528
+ }), dg = $e({
8522
8529
  name: "QCardSection",
8523
8530
  props: {
8524
8531
  tag: {
@@ -8626,7 +8633,7 @@ const rf = /* @__PURE__ */ ii(B1, [["render", V1], ["__file", "/Users/zachsherbo
8626
8633
  }, get QCard() {
8627
8634
  return Mc;
8628
8635
  }, get QCardSection() {
8629
- return fg;
8636
+ return dg;
8630
8637
  }, get QBtn() {
8631
8638
  return Lt;
8632
8639
  }, get FieldRenderer() {
@@ -9174,18 +9181,18 @@ const sf = /* @__PURE__ */ ii(Z1, [["render", ux], ["__file", "/Users/zachsherbo
9174
9181
  function cx() {
9175
9182
  return Fo(yy);
9176
9183
  }
9177
- let uu = [], dg = [];
9184
+ let uu = [], mg = [];
9178
9185
  (() => {
9179
9186
  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);
9180
9187
  for (let e = 0, t = 0; e < i.length; e++)
9181
- (e % 2 ? dg : uu).push(t = t + i[e]);
9188
+ (e % 2 ? mg : uu).push(t = t + i[e]);
9182
9189
  })();
9183
9190
  function hx(i) {
9184
9191
  if (i < 768) return !1;
9185
9192
  for (let e = 0, t = uu.length; ; ) {
9186
9193
  let n = e + t >> 1;
9187
9194
  if (i < uu[n]) t = n;
9188
- else if (i >= dg[n]) e = n + 1;
9195
+ else if (i >= mg[n]) e = n + 1;
9189
9196
  else return !0;
9190
9197
  if (e == t) return !1;
9191
9198
  }
@@ -9195,11 +9202,11 @@ function lf(i) {
9195
9202
  }
9196
9203
  const af = 8205;
9197
9204
  function fx(i, e, t = !0, n = !0) {
9198
- return (t ? mg : dx)(i, e, n);
9205
+ return (t ? gg : dx)(i, e, n);
9199
9206
  }
9200
- function mg(i, e, t) {
9207
+ function gg(i, e, t) {
9201
9208
  if (e == i.length) return e;
9202
- e && gg(i.charCodeAt(e)) && pg(i.charCodeAt(e - 1)) && e--;
9209
+ e && pg(i.charCodeAt(e)) && vg(i.charCodeAt(e - 1)) && e--;
9203
9210
  let n = Aa(i, e);
9204
9211
  for (e += uf(n); e < i.length; ) {
9205
9212
  let r = Aa(i, e);
@@ -9218,7 +9225,7 @@ function mg(i, e, t) {
9218
9225
  }
9219
9226
  function dx(i, e, t) {
9220
9227
  for (; e > 0; ) {
9221
- let n = mg(i, e - 2, t);
9228
+ let n = gg(i, e - 2, t);
9222
9229
  if (n < e) return n;
9223
9230
  e--;
9224
9231
  }
@@ -9226,14 +9233,14 @@ function dx(i, e, t) {
9226
9233
  }
9227
9234
  function Aa(i, e) {
9228
9235
  let t = i.charCodeAt(e);
9229
- if (!pg(t) || e + 1 == i.length) return t;
9236
+ if (!vg(t) || e + 1 == i.length) return t;
9230
9237
  let n = i.charCodeAt(e + 1);
9231
- return gg(n) ? (t - 55296 << 10) + (n - 56320) + 65536 : t;
9238
+ return pg(n) ? (t - 55296 << 10) + (n - 56320) + 65536 : t;
9232
9239
  }
9233
- function gg(i) {
9240
+ function pg(i) {
9234
9241
  return i >= 56320 && i < 57344;
9235
9242
  }
9236
- function pg(i) {
9243
+ function vg(i) {
9237
9244
  return i >= 55296 && i < 56320;
9238
9245
  }
9239
9246
  function uf(i) {
@@ -9325,7 +9332,7 @@ class Ne {
9325
9332
  iterator will run in reverse.
9326
9333
  */
9327
9334
  iterRange(e, t = this.length) {
9328
- return new vg(this, e, t);
9335
+ return new yg(this, e, t);
9329
9336
  }
9330
9337
  /**
9331
9338
  Return a cursor that iterates over the given range of lines,
@@ -9343,7 +9350,7 @@ class Ne {
9343
9350
  let r = this.line(e).from;
9344
9351
  n = this.iterRange(r, Math.max(r, t == this.lines + 1 ? this.length : t <= 1 ? 0 : this.line(t - 1).to));
9345
9352
  }
9346
- return new yg(n);
9353
+ return new bg(n);
9347
9354
  }
9348
9355
  /**
9349
9356
  Return the document as a string, using newline characters to
@@ -9581,7 +9588,7 @@ class co {
9581
9588
  return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir);
9582
9589
  }
9583
9590
  }
9584
- class vg {
9591
+ class yg {
9585
9592
  constructor(e, t, n) {
9586
9593
  this.value = "", this.done = !1, this.cursor = new co(e, t > n ? -1 : 1), this.pos = t > n ? e.length : 0, this.from = Math.min(t, n), this.to = Math.max(t, n);
9587
9594
  }
@@ -9601,7 +9608,7 @@ class vg {
9601
9608
  return this.cursor.lineBreak && this.value != "";
9602
9609
  }
9603
9610
  }
9604
- class yg {
9611
+ class bg {
9605
9612
  constructor(e) {
9606
9613
  this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1;
9607
9614
  }
@@ -9615,7 +9622,7 @@ class yg {
9615
9622
  }
9616
9623
  typeof Symbol < "u" && (Ne.prototype[Symbol.iterator] = function() {
9617
9624
  return this.iter();
9618
- }, co.prototype[Symbol.iterator] = vg.prototype[Symbol.iterator] = yg.prototype[Symbol.iterator] = function() {
9625
+ }, co.prototype[Symbol.iterator] = yg.prototype[Symbol.iterator] = bg.prototype[Symbol.iterator] = function() {
9619
9626
  return this;
9620
9627
  });
9621
9628
  class gx {
@@ -9742,7 +9749,7 @@ class Qi {
9742
9749
  match the length before `other`.
9743
9750
  */
9744
9751
  composeDesc(e) {
9745
- return this.empty ? e : e.empty ? this : bg(this, e);
9752
+ return this.empty ? e : e.empty ? this : xg(this, e);
9746
9753
  }
9747
9754
  /**
9748
9755
  Map this description, which should start with the same document
@@ -9865,7 +9872,7 @@ class St extends Qi {
9865
9872
  returned value will represent the change `docA` → `docC`.
9866
9873
  */
9867
9874
  compose(e) {
9868
- return this.empty ? e : e.empty ? this : bg(this, e, !0);
9875
+ return this.empty ? e : e.empty ? this : xg(this, e, !0);
9869
9876
  }
9870
9877
  /**
9871
9878
  Given another change set starting in the same document, maps this
@@ -10078,7 +10085,7 @@ function fu(i, e, t, n = !1) {
10078
10085
  }
10079
10086
  }
10080
10087
  }
10081
- function bg(i, e, t = !1) {
10088
+ function xg(i, e, t = !1) {
10082
10089
  let n = [], r = t ? [] : null, o = new So(i), s = new So(e);
10083
10090
  for (let l = !1; ; ) {
10084
10091
  if (o.done && s.done)
@@ -10346,7 +10353,7 @@ class W {
10346
10353
  return new W(e, t);
10347
10354
  }
10348
10355
  }
10349
- function xg(i, e) {
10356
+ function kg(i, e) {
10350
10357
  for (let t of i.ranges)
10351
10358
  if (t.to > e)
10352
10359
  throw new RangeError("Selection points outside of document");
@@ -10540,7 +10547,7 @@ class Mt {
10540
10547
  }
10541
10548
  const Wn = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
10542
10549
  function Jr(i) {
10543
- return (e) => new kg(e, i);
10550
+ return (e) => new wg(e, i);
10544
10551
  }
10545
10552
  const ur = {
10546
10553
  /**
@@ -10568,7 +10575,7 @@ const ur = {
10568
10575
  */
10569
10576
  lowest: /* @__PURE__ */ Jr(Wn.lowest)
10570
10577
  };
10571
- class kg {
10578
+ class wg {
10572
10579
  constructor(e, t) {
10573
10580
  this.inner = e, this.prec = t;
10574
10581
  }
@@ -10661,7 +10668,7 @@ function bx(i, e, t) {
10661
10668
  throw new RangeError("Duplicate use of compartment in extensions");
10662
10669
  let u = e.get(s.compartment) || s.inner;
10663
10670
  t.set(s.compartment, u), o(u, l);
10664
- } else if (s instanceof kg)
10671
+ } else if (s instanceof wg)
10665
10672
  o(s.inner, s.prec);
10666
10673
  else if (s instanceof Mt)
10667
10674
  n[l].push(s), s.provides && o(s.provides, l);
@@ -10691,13 +10698,13 @@ function ho(i, e) {
10691
10698
  function ll(i, e) {
10692
10699
  return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
10693
10700
  }
10694
- const wg = /* @__PURE__ */ de.define(), gu = /* @__PURE__ */ de.define({
10701
+ const Sg = /* @__PURE__ */ de.define(), gu = /* @__PURE__ */ de.define({
10695
10702
  combine: (i) => i.some((e) => e),
10696
10703
  static: !0
10697
- }), Sg = /* @__PURE__ */ de.define({
10704
+ }), Cg = /* @__PURE__ */ de.define({
10698
10705
  combine: (i) => i.length ? i[0] : void 0,
10699
10706
  static: !0
10700
- }), Cg = /* @__PURE__ */ de.define(), Mg = /* @__PURE__ */ de.define(), Ag = /* @__PURE__ */ de.define(), Og = /* @__PURE__ */ de.define({
10707
+ }), Mg = /* @__PURE__ */ de.define(), Ag = /* @__PURE__ */ de.define(), Og = /* @__PURE__ */ de.define(), Tg = /* @__PURE__ */ de.define({
10701
10708
  combine: (i) => i.length ? i[0] : !1
10702
10709
  });
10703
10710
  class hn {
@@ -10787,7 +10794,7 @@ Me.reconfigure = /* @__PURE__ */ Me.define();
10787
10794
  Me.appendConfig = /* @__PURE__ */ Me.define();
10788
10795
  class Ct {
10789
10796
  constructor(e, t, n, r, o, s) {
10790
- this.startState = e, this.changes = t, this.selection = n, this.effects = r, this.annotations = o, this.scrollIntoView = s, this._doc = null, this._state = null, n && xg(n, t.newLength), o.some((l) => l.type == Ct.time) || (this.annotations = o.concat(Ct.time.of(Date.now())));
10797
+ this.startState = e, this.changes = t, this.selection = n, this.effects = r, this.annotations = o, this.scrollIntoView = s, this._doc = null, this._state = null, n && kg(n, t.newLength), o.some((l) => l.type == Ct.time) || (this.annotations = o.concat(Ct.time.of(Date.now())));
10791
10798
  }
10792
10799
  /**
10793
10800
  @internal
@@ -10876,7 +10883,7 @@ function wx(i, e) {
10876
10883
  !t.length || t[t.length - 1] < o ? t.push(o, s) : t[t.length - 1] < s && (t[t.length - 1] = s);
10877
10884
  }
10878
10885
  }
10879
- function Tg(i, e, t) {
10886
+ function Dg(i, e, t) {
10880
10887
  var n;
10881
10888
  let r, o, s;
10882
10889
  return t ? (r = e.changes, o = St.empty(e.changes.length), s = i.changes.compose(e.changes)) : (r = e.changes.map(i.changes), o = i.changes.mapDesc(e.changes, !0), s = i.changes.compose(r)), {
@@ -10890,27 +10897,27 @@ function Tg(i, e, t) {
10890
10897
  function pu(i, e, t) {
10891
10898
  let n = e.selection, r = Or(e.annotations);
10892
10899
  return e.userEvent && (r = r.concat(Ct.userEvent.of(e.userEvent))), {
10893
- changes: e.changes instanceof St ? e.changes : St.of(e.changes || [], t, i.facet(Sg)),
10900
+ changes: e.changes instanceof St ? e.changes : St.of(e.changes || [], t, i.facet(Cg)),
10894
10901
  selection: n && (n instanceof W ? n : W.single(n.anchor, n.head)),
10895
10902
  effects: Or(e.effects),
10896
10903
  annotations: r,
10897
10904
  scrollIntoView: !!e.scrollIntoView
10898
10905
  };
10899
10906
  }
10900
- function Dg(i, e, t) {
10907
+ function Pg(i, e, t) {
10901
10908
  let n = pu(i, e.length ? e[0] : {}, i.doc.length);
10902
10909
  e.length && e[0].filter === !1 && (t = !1);
10903
10910
  for (let o = 1; o < e.length; o++) {
10904
10911
  e[o].filter === !1 && (t = !1);
10905
10912
  let s = !!e[o].sequential;
10906
- n = Tg(n, pu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10913
+ n = Dg(n, pu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10907
10914
  }
10908
10915
  let r = Ct.create(i, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
10909
10916
  return Cx(t ? Sx(r) : r);
10910
10917
  }
10911
10918
  function Sx(i) {
10912
10919
  let e = i.startState, t = !0;
10913
- for (let r of e.facet(Cg)) {
10920
+ for (let r of e.facet(Mg)) {
10914
10921
  let o = r(i);
10915
10922
  if (o === !1) {
10916
10923
  t = !1;
@@ -10928,18 +10935,18 @@ function Sx(i) {
10928
10935
  }
10929
10936
  i = Ct.create(e, r, i.selection && i.selection.map(o), Me.mapEffects(i.effects, o), i.annotations, i.scrollIntoView);
10930
10937
  }
10931
- let n = e.facet(Mg);
10938
+ let n = e.facet(Ag);
10932
10939
  for (let r = n.length - 1; r >= 0; r--) {
10933
10940
  let o = n[r](i);
10934
- o instanceof Ct ? i = o : Array.isArray(o) && o.length == 1 && o[0] instanceof Ct ? i = o[0] : i = Dg(e, Or(o), !1);
10941
+ o instanceof Ct ? i = o : Array.isArray(o) && o.length == 1 && o[0] instanceof Ct ? i = o[0] : i = Pg(e, Or(o), !1);
10935
10942
  }
10936
10943
  return i;
10937
10944
  }
10938
10945
  function Cx(i) {
10939
- let e = i.startState, t = e.facet(Ag), n = i;
10946
+ let e = i.startState, t = e.facet(Og), n = i;
10940
10947
  for (let r = t.length - 1; r >= 0; r--) {
10941
10948
  let o = t[r](i);
10942
- o && Object.keys(o).length && (n = Tg(n, pu(e, o, i.changes.newLength), !0));
10949
+ o && Object.keys(o).length && (n = Dg(n, pu(e, o, i.changes.newLength), !0));
10943
10950
  }
10944
10951
  return n == i ? i : Ct.create(e, i.changes, i.selection, n.effects, n.annotations, n.scrollIntoView);
10945
10952
  }
@@ -11010,7 +11017,7 @@ class Ee {
11010
11017
  specs take precedence over earlier ones.
11011
11018
  */
11012
11019
  update(...e) {
11013
- return Dg(this, e, !0);
11020
+ return Pg(this, e, !0);
11014
11021
  }
11015
11022
  /**
11016
11023
  @internal
@@ -11137,7 +11144,7 @@ class Ee {
11137
11144
  */
11138
11145
  static create(e = {}) {
11139
11146
  let t = sl.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || cu)), r = e.selection ? e.selection instanceof W ? e.selection : W.single(e.selection.anchor, e.selection.head) : W.single(0);
11140
- return xg(r, n.length), t.staticFacet(gu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11147
+ return kg(r, n.length), t.staticFacet(gu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11141
11148
  }
11142
11149
  /**
11143
11150
  The size (in columns) of a tab in the document, determined by
@@ -11159,7 +11166,7 @@ class Ee {
11159
11166
  [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
11160
11167
  */
11161
11168
  get readOnly() {
11162
- return this.facet(Og);
11169
+ return this.facet(Tg);
11163
11170
  }
11164
11171
  /**
11165
11172
  Look up a translation for the given phrase (via the
@@ -11202,7 +11209,7 @@ class Ee {
11202
11209
  */
11203
11210
  languageDataAt(e, t, n = -1) {
11204
11211
  let r = [];
11205
- for (let o of this.facet(wg))
11212
+ for (let o of this.facet(Sg))
11206
11213
  for (let s of o(this, t, n))
11207
11214
  Object.prototype.hasOwnProperty.call(s, e) && r.push(s[e]);
11208
11215
  return r;
@@ -11248,18 +11255,18 @@ Ee.allowMultipleSelections = gu;
11248
11255
  Ee.tabSize = /* @__PURE__ */ de.define({
11249
11256
  combine: (i) => i.length ? i[0] : 4
11250
11257
  });
11251
- Ee.lineSeparator = Sg;
11252
- Ee.readOnly = Og;
11258
+ Ee.lineSeparator = Cg;
11259
+ Ee.readOnly = Tg;
11253
11260
  Ee.phrases = /* @__PURE__ */ de.define({
11254
11261
  compare(i, e) {
11255
11262
  let t = Object.keys(i), n = Object.keys(e);
11256
11263
  return t.length == n.length && t.every((r) => i[r] == e[r]);
11257
11264
  }
11258
11265
  });
11259
- Ee.languageData = wg;
11260
- Ee.changeFilter = Cg;
11261
- Ee.transactionFilter = Mg;
11262
- Ee.transactionExtender = Ag;
11266
+ Ee.languageData = Sg;
11267
+ Ee.changeFilter = Mg;
11268
+ Ee.transactionFilter = Ag;
11269
+ Ee.transactionExtender = Og;
11263
11270
  zo.reconfigure = /* @__PURE__ */ Me.define();
11264
11271
  function Pi(i, e, t = {}) {
11265
11272
  let n = {};
@@ -11298,7 +11305,7 @@ class nr {
11298
11305
  nr.prototype.startSide = nr.prototype.endSide = 0;
11299
11306
  nr.prototype.point = !1;
11300
11307
  nr.prototype.mapMode = Jt.TrackDel;
11301
- let yu = class Pg {
11308
+ let yu = class qg {
11302
11309
  constructor(e, t, n) {
11303
11310
  this.from = e, this.to = t, this.value = n;
11304
11311
  }
@@ -11306,7 +11313,7 @@ let yu = class Pg {
11306
11313
  @internal
11307
11314
  */
11308
11315
  static create(e, t, n) {
11309
- return new Pg(e, t, n);
11316
+ return new qg(e, t, n);
11310
11317
  }
11311
11318
  };
11312
11319
  function bu(i, e) {
@@ -11401,7 +11408,7 @@ class Le {
11401
11408
  return this;
11402
11409
  if (n && (t = t.slice().sort(bu)), this.isEmpty)
11403
11410
  return t.length ? Le.of(t) : this;
11404
- let l = new qg(this, null, -1).goto(0), a = 0, u = [], c = new un();
11411
+ let l = new Bg(this, null, -1).goto(0), a = 0, u = [], c = new un();
11405
11412
  for (; l.value || a < t.length; )
11406
11413
  if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
11407
11414
  let h = t[a++];
@@ -11616,7 +11623,7 @@ function ff(i, e, t) {
11616
11623
  }
11617
11624
  return r;
11618
11625
  }
11619
- class qg {
11626
+ class Bg {
11620
11627
  constructor(e, t, n, r = 0) {
11621
11628
  this.layer = e, this.skip = t, this.minPoint = n, this.rank = r;
11622
11629
  }
@@ -11680,7 +11687,7 @@ class Co {
11680
11687
  let r = [];
11681
11688
  for (let o = 0; o < e.length; o++)
11682
11689
  for (let s = e[o]; !s.isEmpty; s = s.nextLayer)
11683
- s.maxPoint >= n && r.push(new qg(s, t, n, o));
11690
+ s.maxPoint >= n && r.push(new Bg(s, t, n, o));
11684
11691
  return r.length == 1 ? r[0] : new Co(r);
11685
11692
  }
11686
11693
  get startSide() {
@@ -12051,27 +12058,27 @@ function Ye() {
12051
12058
  }
12052
12059
  e++;
12053
12060
  }
12054
- for (; e < arguments.length; e++) Bg(i, arguments[e]);
12061
+ for (; e < arguments.length; e++) _g(i, arguments[e]);
12055
12062
  return i;
12056
12063
  }
12057
- function Bg(i, e) {
12064
+ function _g(i, e) {
12058
12065
  if (typeof e == "string")
12059
12066
  i.appendChild(document.createTextNode(e));
12060
12067
  else if (e != null) if (e.nodeType != null)
12061
12068
  i.appendChild(e);
12062
12069
  else if (Array.isArray(e))
12063
- for (var t = 0; t < e.length; t++) Bg(i, e[t]);
12070
+ for (var t = 0; t < e.length; t++) _g(i, e[t]);
12064
12071
  else
12065
12072
  throw new RangeError("Unsupported child node: " + e);
12066
12073
  }
12067
12074
  let Yt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Cu = typeof document < "u" ? document : { documentElement: { style: {} } };
12068
- const Mu = /* @__PURE__ */ /Edge\/(\d+)/.exec(Yt.userAgent), _g = /* @__PURE__ */ /MSIE \d/.test(Yt.userAgent), Au = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt.userAgent), jl = !!(_g || Au || Mu), yf = !jl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Yt.userAgent), Da = !jl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Yt.userAgent), Rx = "webkitFontSmoothing" in Cu.documentElement.style, Ou = !jl && /* @__PURE__ */ /Apple Computer/.test(Yt.vendor), bf = Ou && (/* @__PURE__ */ /Mobile\/\w+/.test(Yt.userAgent) || Yt.maxTouchPoints > 2);
12075
+ const Mu = /* @__PURE__ */ /Edge\/(\d+)/.exec(Yt.userAgent), Rg = /* @__PURE__ */ /MSIE \d/.test(Yt.userAgent), Au = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt.userAgent), jl = !!(Rg || Au || Mu), yf = !jl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Yt.userAgent), Da = !jl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Yt.userAgent), Rx = "webkitFontSmoothing" in Cu.documentElement.style, Ou = !jl && /* @__PURE__ */ /Apple Computer/.test(Yt.vendor), bf = Ou && (/* @__PURE__ */ /Mobile\/\w+/.test(Yt.userAgent) || Yt.maxTouchPoints > 2);
12069
12076
  var se = {
12070
12077
  mac: bf || /* @__PURE__ */ /Mac/.test(Yt.platform),
12071
12078
  windows: /* @__PURE__ */ /Win/.test(Yt.platform),
12072
12079
  linux: /* @__PURE__ */ /Linux|X11/.test(Yt.platform),
12073
12080
  ie: jl,
12074
- ie_version: _g ? Cu.documentMode || 6 : Au ? +Au[1] : Mu ? +Mu[1] : 0,
12081
+ ie_version: Rg ? Cu.documentMode || 6 : Au ? +Au[1] : Mu ? +Mu[1] : 0,
12075
12082
  gecko: yf,
12076
12083
  gecko_version: yf ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Yt.userAgent) || [0, 0])[1] : 0,
12077
12084
  chrome: !!Da,
@@ -12153,7 +12160,7 @@ function Ex(i) {
12153
12160
  bottom: i.innerHeight
12154
12161
  };
12155
12162
  }
12156
- function Rg(i, e) {
12163
+ function Eg(i, e) {
12157
12164
  let t = e.width / i.offsetWidth, n = e.height / i.offsetHeight;
12158
12165
  return (t > 0.995 && t < 1.005 || !isFinite(t) || Math.abs(e.width - i.offsetWidth) < 1) && (t = 1), (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.height - i.offsetHeight) < 1) && (n = 1), { scaleX: t, scaleY: n };
12159
12166
  }
@@ -12170,7 +12177,7 @@ function Lx(i, e, t, n, r, o, s, l) {
12170
12177
  continue;
12171
12178
  }
12172
12179
  let k = c.getBoundingClientRect();
12173
- ({ scaleX: m, scaleY: p } = Rg(c, k)), f = {
12180
+ ({ scaleX: m, scaleY: p } = Eg(c, k)), f = {
12174
12181
  left: k.left,
12175
12182
  right: k.left + c.clientWidth * m,
12176
12183
  top: k.top,
@@ -12245,7 +12252,7 @@ class Vx {
12245
12252
  }
12246
12253
  let jn = null;
12247
12254
  se.safari && se.safari_version >= 26 && (jn = !1);
12248
- function Eg(i) {
12255
+ function Lg(i) {
12249
12256
  if (i.setActive)
12250
12257
  return i.setActive();
12251
12258
  if (jn)
@@ -12286,7 +12293,7 @@ function Fx(i) {
12286
12293
  }
12287
12294
  return null;
12288
12295
  }
12289
- function Lg(i) {
12296
+ function Ig(i) {
12290
12297
  for (; i.attributes.length; )
12291
12298
  i.removeAttributeNode(i.attributes[0]);
12292
12299
  }
@@ -12306,10 +12313,10 @@ function Nx(i, e) {
12306
12313
  n = rr(t), t = t.parentNode;
12307
12314
  }
12308
12315
  }
12309
- function Ig(i) {
12316
+ function Vg(i) {
12310
12317
  return i.scrollTop > Math.max(1, i.scrollHeight - i.clientHeight - 4);
12311
12318
  }
12312
- function Vg(i, e) {
12319
+ function Fg(i, e) {
12313
12320
  for (let t = i, n = e; ; ) {
12314
12321
  if (t.nodeType == 3 && n > 0)
12315
12322
  return { node: t, offset: n };
@@ -12323,7 +12330,7 @@ function Vg(i, e) {
12323
12330
  return null;
12324
12331
  }
12325
12332
  }
12326
- function Fg(i, e) {
12333
+ function Ng(i, e) {
12327
12334
  for (let t = i, n = e; ; ) {
12328
12335
  if (t.nodeType == 3 && n < t.nodeValue.length)
12329
12336
  return { node: t, offset: n };
@@ -12487,7 +12494,7 @@ class Ue {
12487
12494
  return !1;
12488
12495
  }
12489
12496
  childCursor(e = this.length) {
12490
- return new Ng(this.children, e, this.children.length);
12497
+ return new Hg(this.children, e, this.children.length);
12491
12498
  }
12492
12499
  childPos(e, t = 1) {
12493
12500
  return this.childCursor().findPos(e, t);
@@ -12534,7 +12541,7 @@ function wf(i) {
12534
12541
  let e = i.nextSibling;
12535
12542
  return i.parentNode.removeChild(i), e;
12536
12543
  }
12537
- class Ng {
12544
+ class Hg {
12538
12545
  constructor(e, t, n) {
12539
12546
  this.children = e, this.pos = t, this.i = n, this.off = 0;
12540
12547
  }
@@ -12547,7 +12554,7 @@ class Ng {
12547
12554
  }
12548
12555
  }
12549
12556
  }
12550
- function Hg(i, e, t, n, r, o, s, l, a) {
12557
+ function zg(i, e, t, n, r, o, s, l, a) {
12551
12558
  let { children: u } = i, c = u.length ? u[e] : null, h = o.length ? o[o.length - 1] : null, f = h ? h.breakAfter : s;
12552
12559
  if (!(e == n && c && !s && !f && o.length < 2 && c.merge(t, r, o.length ? h : null, t == 0, l, a))) {
12553
12560
  if (n < u.length) {
@@ -12564,11 +12571,11 @@ function Hg(i, e, t, n, r, o, s, l, a) {
12564
12571
  !o.length && e && n < u.length && !u[e - 1].breakAfter && u[n].merge(0, 0, u[e - 1], !1, l, a) && e--, (e < n || o.length) && i.replaceChildren(e, n, o);
12565
12572
  }
12566
12573
  }
12567
- function zg(i, e, t, n, r, o) {
12574
+ function jg(i, e, t, n, r, o) {
12568
12575
  let s = i.childCursor(), { i: l, off: a } = s.findPos(t, 1), { i: u, off: c } = s.findPos(e, -1), h = e - t;
12569
12576
  for (let f of n)
12570
12577
  h += f.length;
12571
- i.length += h, Hg(i, u, c, l, a, n, 0, r, o);
12578
+ i.length += h, zg(i, u, c, l, a, n, 0, r, o);
12572
12579
  }
12573
12580
  const Hx = 256;
12574
12581
  class Ti extends Ue {
@@ -12614,7 +12621,7 @@ class cn extends Ue {
12614
12621
  r.setParent(this);
12615
12622
  }
12616
12623
  setAttrs(e) {
12617
- if (Lg(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs)
12624
+ if (Ig(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs)
12618
12625
  for (let t in this.mark.attrs)
12619
12626
  e.setAttribute(t, this.mark.attrs[t]);
12620
12627
  return e;
@@ -12629,7 +12636,7 @@ class cn extends Ue {
12629
12636
  this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, t);
12630
12637
  }
12631
12638
  merge(e, t, n, r, o, s) {
12632
- return n && (!(n instanceof cn && n.mark.eq(this.mark)) || e && o <= 0 || t < this.length && s <= 0) ? !1 : (zg(this, e, t, n ? n.children.slice() : [], o - 1, s - 1), this.markDirty(), !0);
12639
+ return n && (!(n instanceof cn && n.mark.eq(this.mark)) || e && o <= 0 || t < this.length && s <= 0) ? !1 : (jg(this, e, t, n ? n.children.slice() : [], o - 1, s - 1), this.markDirty(), !0);
12633
12640
  }
12634
12641
  split(e) {
12635
12642
  let t = [], n = 0, r = -1, o = 0;
@@ -12641,10 +12648,10 @@ class cn extends Ue {
12641
12648
  return this.length = e, r > -1 && (this.children.length = r, this.markDirty()), new cn(this.mark, t, s);
12642
12649
  }
12643
12650
  domAtPos(e) {
12644
- return jg(this, e);
12651
+ return Wg(this, e);
12645
12652
  }
12646
12653
  coordsAt(e, t) {
12647
- return Qg(this, e, t);
12654
+ return Kg(this, e, t);
12648
12655
  }
12649
12656
  }
12650
12657
  function zx(i, e, t) {
@@ -12772,7 +12779,7 @@ class Vr extends Ue {
12772
12779
  }
12773
12780
  }
12774
12781
  Ti.prototype.children = rn.prototype.children = Vr.prototype.children = Pc;
12775
- function jg(i, e) {
12782
+ function Wg(i, e) {
12776
12783
  let t = i.dom, { children: n } = i, r = 0;
12777
12784
  for (let o = 0; r < n.length; r++) {
12778
12785
  let s = n[r], l = o + s.length;
@@ -12796,11 +12803,11 @@ function jg(i, e) {
12796
12803
  }
12797
12804
  return new jt(t, 0);
12798
12805
  }
12799
- function Wg(i, e, t) {
12806
+ function Qg(i, e, t) {
12800
12807
  let n, { children: r } = i;
12801
- t > 0 && e instanceof cn && r.length && (n = r[r.length - 1]) instanceof cn && n.mark.eq(e.mark) ? Wg(n, e.children[0], t - 1) : (r.push(e), e.setParent(i)), i.length += e.length;
12808
+ t > 0 && e instanceof cn && r.length && (n = r[r.length - 1]) instanceof cn && n.mark.eq(e.mark) ? Qg(n, e.children[0], t - 1) : (r.push(e), e.setParent(i)), i.length += e.length;
12802
12809
  }
12803
- function Qg(i, e, t) {
12810
+ function Kg(i, e, t) {
12804
12811
  let n = null, r = -1, o = null, s = -1;
12805
12812
  function l(u, c) {
12806
12813
  for (let h = 0, f = 0; h < u.children.length && f <= c; h++) {
@@ -12985,7 +12992,7 @@ class xe extends nr {
12985
12992
  if (e.isBlockGap)
12986
12993
  n = -5e8, r = 4e8;
12987
12994
  else {
12988
- let { start: o, end: s } = Kg(e, t);
12995
+ let { start: o, end: s } = Ug(e, t);
12989
12996
  n = (o ? t ? -3e8 : -1 : 5e8) - 1, r = (s ? t ? 2e8 : 1 : -6e8) + 1;
12990
12997
  }
12991
12998
  return new qn(e, n, r, t, e.widget || null, !0);
@@ -13015,7 +13022,7 @@ class xe extends nr {
13015
13022
  xe.none = Le.empty;
13016
13023
  class Wo extends xe {
13017
13024
  constructor(e) {
13018
- let { start: t, end: n } = Kg(e);
13025
+ let { start: t, end: n } = Ug(e);
13019
13026
  super(t ? -1 : 5e8, n ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
13020
13027
  }
13021
13028
  eq(e) {
@@ -13067,7 +13074,7 @@ class qn extends xe {
13067
13074
  }
13068
13075
  }
13069
13076
  qn.prototype.point = !0;
13070
- function Kg(i, e = !1) {
13077
+ function Ug(i, e = !1) {
13071
13078
  let { inclusiveStart: t, inclusiveEnd: n } = i;
13072
13079
  return t == null && (t = i.inclusive), n == null && (n = i.inclusive), { start: t ?? e, end: n ?? e };
13073
13080
  }
@@ -13089,7 +13096,7 @@ class yt extends Ue {
13089
13096
  return !1;
13090
13097
  this.dom || n.transferDOM(this);
13091
13098
  }
13092
- return r && this.setDeco(n ? n.attrs : null), zg(this, e, t, n ? n.children.slice() : [], o, s), !0;
13099
+ return r && this.setDeco(n ? n.attrs : null), jg(this, e, t, n ? n.children.slice() : [], o, s), !0;
13093
13100
  }
13094
13101
  split(e) {
13095
13102
  let t = new yt();
@@ -13110,7 +13117,7 @@ class yt extends Ue {
13110
13117
  ul(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
13111
13118
  }
13112
13119
  append(e, t) {
13113
- Wg(this, e, t);
13120
+ Qg(this, e, t);
13114
13121
  }
13115
13122
  // Only called when building a line view in ContentBuilder
13116
13123
  addLineDeco(e) {
@@ -13118,14 +13125,14 @@ class yt extends Ue {
13118
13125
  t && (this.attrs = Du(t, this.attrs || {})), n && (this.attrs = Du({ class: n }, this.attrs || {}));
13119
13126
  }
13120
13127
  domAtPos(e) {
13121
- return jg(this, e);
13128
+ return Wg(this, e);
13122
13129
  }
13123
13130
  reuseDOM(e) {
13124
13131
  e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6);
13125
13132
  }
13126
13133
  sync(e, t) {
13127
13134
  var n;
13128
- 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 && (Pu(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13135
+ this.dom ? this.flags & 4 && (Ig(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 && (Pu(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13129
13136
  let r = this.dom.lastChild;
13130
13137
  for (; r && Ue.get(r) instanceof cn; )
13131
13138
  r = r.lastChild;
@@ -13153,7 +13160,7 @@ class yt extends Ue {
13153
13160
  } : null;
13154
13161
  }
13155
13162
  coordsAt(e, t) {
13156
- let n = Qg(this, e, t);
13163
+ let n = Kg(this, e, t);
13157
13164
  if (!this.children.length && n && this.parent) {
13158
13165
  let { heightOracle: r } = this.parent.view.viewState, o = n.bottom - n.top;
13159
13166
  if (Math.abs(o - r.lineHeight) < 2 && r.textHeight < o) {
@@ -13358,18 +13365,18 @@ var ot = /* @__PURE__ */ function(i) {
13358
13365
  return i[i.LTR = 0] = "LTR", i[i.RTL = 1] = "RTL", i;
13359
13366
  }(ot || (ot = {}));
13360
13367
  const sr = ot.LTR, qc = ot.RTL;
13361
- function Ug(i) {
13368
+ function Yg(i) {
13362
13369
  let e = [];
13363
13370
  for (let t = 0; t < i.length; t++)
13364
13371
  e.push(1 << +i[t]);
13365
13372
  return e;
13366
13373
  }
13367
- const Ux = /* @__PURE__ */ Ug("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Yx = /* @__PURE__ */ Ug("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Bu = /* @__PURE__ */ Object.create(null), Ei = [];
13374
+ const Ux = /* @__PURE__ */ Yg("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Yx = /* @__PURE__ */ Yg("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Bu = /* @__PURE__ */ Object.create(null), Ei = [];
13368
13375
  for (let i of ["()", "[]", "{}"]) {
13369
13376
  let e = /* @__PURE__ */ i.charCodeAt(0), t = /* @__PURE__ */ i.charCodeAt(1);
13370
13377
  Bu[e] = t, Bu[t] = -e;
13371
13378
  }
13372
- function Yg(i) {
13379
+ function Gg(i) {
13373
13380
  return i <= 247 ? Ux[i] : 1424 <= i && i <= 1524 ? 2 : 1536 <= i && i <= 1785 ? Yx[i - 1536] : 1774 <= i && i <= 2220 ? 4 : 8192 <= i && i <= 8204 ? 256 : 64336 <= i && i <= 65023 ? 4 : 1;
13374
13381
  }
13375
13382
  const Gx = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
@@ -13416,12 +13423,12 @@ class Cn {
13416
13423
  return o;
13417
13424
  }
13418
13425
  }
13419
- function Gg(i, e) {
13426
+ function $g(i, e) {
13420
13427
  if (i.length != e.length)
13421
13428
  return !1;
13422
13429
  for (let t = 0; t < i.length; t++) {
13423
13430
  let n = i[t], r = e[t];
13424
- if (n.from != r.from || n.to != r.to || n.direction != r.direction || !Gg(n.inner, r.inner))
13431
+ if (n.from != r.from || n.to != r.to || n.direction != r.direction || !$g(n.inner, r.inner))
13425
13432
  return !1;
13426
13433
  }
13427
13434
  return !0;
@@ -13431,7 +13438,7 @@ function $x(i, e, t, n, r) {
13431
13438
  for (let o = 0; o <= n.length; o++) {
13432
13439
  let s = o ? n[o - 1].to : e, l = o < n.length ? n[o].from : t, a = o ? 256 : r;
13433
13440
  for (let u = s, c = a, h = a; u < l; u++) {
13434
- let f = Yg(i.charCodeAt(u));
13441
+ let f = Gg(i.charCodeAt(u));
13435
13442
  f == 512 ? f = c : f == 8 && h == 4 && (f = 16), Ge[u] = f == 4 ? 2 : f, f & 7 && (h = f), c = f;
13436
13443
  }
13437
13444
  for (let u = s, c = a, h = a; u < l; u++) {
@@ -13603,17 +13610,17 @@ function Zx(i, e, t) {
13603
13610
  if (!i)
13604
13611
  return [new Cn(0, 0, e == qc ? 1 : 0)];
13605
13612
  if (e == sr && !t.length && !Gx.test(i))
13606
- return $g(i.length);
13613
+ return Jg(i.length);
13607
13614
  if (t.length)
13608
13615
  for (; i.length > Ge.length; )
13609
13616
  Ge[Ge.length] = 256;
13610
13617
  let n = [], r = e == sr ? 0 : 1;
13611
13618
  return Ru(i, r, r, t, 0, i.length, n), n;
13612
13619
  }
13613
- function $g(i) {
13620
+ function Jg(i) {
13614
13621
  return [new Cn(0, i, 0)];
13615
13622
  }
13616
- let Jg = "";
13623
+ let Xg = "";
13617
13624
  function ek(i, e, t, n, r) {
13618
13625
  var o;
13619
13626
  let s = n.head - i.from, l = Cn.find(e, s, (o = n.bidiLevel) !== null && o !== void 0 ? o : -1, n.assoc), a = e[l], u = a.side(r, t);
@@ -13624,13 +13631,13 @@ function ek(i, e, t, n, r) {
13624
13631
  a = e[l = f], s = a.side(!r, t), u = a.side(r, t);
13625
13632
  }
13626
13633
  let c = Vt(i.text, s, a.forward(r, t));
13627
- (c < a.from || c > a.to) && (c = u), Jg = i.text.slice(Math.min(s, c), Math.max(s, c));
13634
+ (c < a.from || c > a.to) && (c = u), Xg = i.text.slice(Math.min(s, c), Math.max(s, c));
13628
13635
  let h = l == (r ? e.length - 1 : 0) ? null : e[l + (r ? 1 : -1)];
13629
13636
  return h && c == u && h.level + (r ? 0 : 1) < a.level ? W.cursor(h.side(!r, t) + i.from, h.forward(r, t) ? 1 : -1, h.level) : W.cursor(c + i.from, a.forward(r, t) ? -1 : 1, a.level);
13630
13637
  }
13631
13638
  function tk(i, e, t) {
13632
13639
  for (let n = e; n < t; n++) {
13633
- let r = Yg(i.charCodeAt(n));
13640
+ let r = Gg(i.charCodeAt(n));
13634
13641
  if (r == 1)
13635
13642
  return sr;
13636
13643
  if (r == 2 || r == 4)
@@ -13638,11 +13645,11 @@ function tk(i, e, t) {
13638
13645
  }
13639
13646
  return sr;
13640
13647
  }
13641
- const Xg = /* @__PURE__ */ de.define(), Zg = /* @__PURE__ */ de.define(), ep = /* @__PURE__ */ de.define(), tp = /* @__PURE__ */ de.define(), Eu = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), Bc = /* @__PURE__ */ de.define(), _c = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define({
13648
+ const Zg = /* @__PURE__ */ de.define(), ep = /* @__PURE__ */ de.define(), tp = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), Eu = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define(), Bc = /* @__PURE__ */ de.define(), _c = /* @__PURE__ */ de.define(), op = /* @__PURE__ */ de.define({
13642
13649
  combine: (i) => i.some((e) => e)
13643
- }), op = /* @__PURE__ */ de.define({
13650
+ }), sp = /* @__PURE__ */ de.define({
13644
13651
  combine: (i) => i.some((e) => e)
13645
- }), sp = /* @__PURE__ */ de.define();
13652
+ }), lp = /* @__PURE__ */ de.define();
13646
13653
  class Dr {
13647
13654
  constructor(e, t = "nearest", n = "nearest", r = 5, o = 5, s = !1) {
13648
13655
  this.range = e, this.y = t, this.x = n, this.yMargin = r, this.xMargin = o, this.isSnapshot = s;
@@ -13654,9 +13661,9 @@ class Dr {
13654
13661
  return this.range.to <= e.doc.length ? this : new Dr(W.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
13655
13662
  }
13656
13663
  }
13657
- const fs = /* @__PURE__ */ Me.define({ map: (i, e) => i.map(e) }), lp = /* @__PURE__ */ Me.define();
13664
+ const fs = /* @__PURE__ */ Me.define({ map: (i, e) => i.map(e) }), ap = /* @__PURE__ */ Me.define();
13658
13665
  function Xt(i, e, t) {
13659
- let n = i.facet(tp);
13666
+ let n = i.facet(ip);
13660
13667
  n.length ? n[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
13661
13668
  }
13662
13669
  const tn = /* @__PURE__ */ de.define({ combine: (i) => i.length ? i[0] : !0 });
@@ -13747,9 +13754,9 @@ class Pa {
13747
13754
  this.spec = this.value = null;
13748
13755
  }
13749
13756
  }
13750
- const ap = /* @__PURE__ */ de.define(), Rc = /* @__PURE__ */ de.define(), Oo = /* @__PURE__ */ de.define(), up = /* @__PURE__ */ de.define(), Ko = /* @__PURE__ */ de.define(), cp = /* @__PURE__ */ de.define();
13757
+ const up = /* @__PURE__ */ de.define(), Rc = /* @__PURE__ */ de.define(), Oo = /* @__PURE__ */ de.define(), cp = /* @__PURE__ */ de.define(), Ko = /* @__PURE__ */ de.define(), hp = /* @__PURE__ */ de.define();
13751
13758
  function Cf(i, e) {
13752
- let t = i.state.facet(cp);
13759
+ let t = i.state.facet(hp);
13753
13760
  if (!t.length)
13754
13761
  return t;
13755
13762
  let n = t.map((o) => o instanceof Function ? o(i) : o), r = [];
@@ -13770,10 +13777,10 @@ function Cf(i, e) {
13770
13777
  }
13771
13778
  }), r;
13772
13779
  }
13773
- const hp = /* @__PURE__ */ de.define();
13780
+ const fp = /* @__PURE__ */ de.define();
13774
13781
  function Ec(i) {
13775
13782
  let e = 0, t = 0, n = 0, r = 0;
13776
- for (let o of i.state.facet(hp)) {
13783
+ for (let o of i.state.facet(fp)) {
13777
13784
  let s = o(i);
13778
13785
  s && (s.left != null && (e = Math.max(e, s.left)), s.right != null && (t = Math.max(t, s.right)), s.top != null && (n = Math.max(n, s.top)), s.bottom != null && (r = Math.max(r, s.bottom)));
13779
13786
  }
@@ -13945,7 +13952,7 @@ class Mf extends Ue {
13945
13952
  } else
13946
13953
  ({ content: f, breakAtStart: d, openStart: m, openEnd: p } = mo.build(this.view.state.doc, c, h, this.decorations, this.dynamicDecorationMap));
13947
13954
  let { i: g, off: y } = o.findPos(u, 1), { i: k, off: v } = o.findPos(a, -1);
13948
- Hg(this, k, v, g, y, f, d, m, p);
13955
+ zg(this, k, v, g, y, f, d, m, p);
13949
13956
  }
13950
13957
  n && this.fixCompositionDOM(n);
13951
13958
  }
@@ -13953,7 +13960,7 @@ class Mf extends Ue {
13953
13960
  this.editContextFormatting = this.editContextFormatting.map(e.changes);
13954
13961
  for (let t of e.transactions)
13955
13962
  for (let n of t.effects)
13956
- n.is(lp) && (this.editContextFormatting = n.value);
13963
+ n.is(ap) && (this.editContextFormatting = n.value);
13957
13964
  }
13958
13965
  compositionView(e) {
13959
13966
  let t = new Ti(e.text.nodeValue);
@@ -13997,7 +14004,7 @@ class Mf extends Ue {
13997
14004
  if (se.gecko) {
13998
14005
  let f = ok(a.node, a.offset);
13999
14006
  if (f && f != 3) {
14000
- let d = (f == 1 ? Vg : Fg)(a.node, a.offset);
14007
+ let d = (f == 1 ? Fg : Ng)(a.node, a.offset);
14001
14008
  d && (a = new jt(d.node, d.offset));
14002
14009
  }
14003
14010
  }
@@ -14166,7 +14173,7 @@ class Mf extends Ue {
14166
14173
  }
14167
14174
  childCursor(e = this.length) {
14168
14175
  let t = this.children.length;
14169
- return t && (e -= this.children[--t].length), new Ng(this.children, e, t);
14176
+ return t && (e -= this.children[--t].length), new Hg(this.children, e, t);
14170
14177
  }
14171
14178
  computeBlockGapDeco() {
14172
14179
  let e = [], t = this.view.viewState;
@@ -14188,7 +14195,7 @@ class Mf extends Ue {
14188
14195
  return xe.set(e);
14189
14196
  }
14190
14197
  updateDeco() {
14191
- let e = 1, t = this.view.state.facet(Oo).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), n = !1, r = this.view.state.facet(up).map((o, s) => {
14198
+ let e = 1, t = this.view.state.facet(Oo).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), n = !1, r = this.view.state.facet(cp).map((o, s) => {
14192
14199
  let l = typeof o == "function";
14193
14200
  return l && (n = !0), l ? o(this.view) : o;
14194
14201
  });
@@ -14207,7 +14214,7 @@ class Mf extends Ue {
14207
14214
  this.view.scrollDOM.scrollTop = u.top - e.yMargin, this.view.scrollDOM.scrollLeft = e.xMargin;
14208
14215
  return;
14209
14216
  }
14210
- for (let u of this.view.state.facet(sp))
14217
+ for (let u of this.view.state.facet(lp))
14211
14218
  try {
14212
14219
  if (u(this.view, e.range, e))
14213
14220
  return !0;
@@ -14242,11 +14249,11 @@ class Mf extends Ue {
14242
14249
  function nk(i) {
14243
14250
  return i.node.nodeType == 1 && i.node.firstChild && (i.offset == 0 || i.node.childNodes[i.offset - 1].contentEditable == "false") && (i.offset == i.node.childNodes.length || i.node.childNodes[i.offset].contentEditable == "false");
14244
14251
  }
14245
- function fp(i, e) {
14252
+ function dp(i, e) {
14246
14253
  let t = i.observer.selectionRange;
14247
14254
  if (!t.focusNode)
14248
14255
  return null;
14249
- let n = Vg(t.focusNode, t.focusOffset), r = Fg(t.focusNode, t.focusOffset), o = n || r;
14256
+ let n = Fg(t.focusNode, t.focusOffset), r = Ng(t.focusNode, t.focusOffset), o = n || r;
14250
14257
  if (r && n && r.node != n.node) {
14251
14258
  let l = Ue.get(r.node);
14252
14259
  if (!l || l instanceof Ti && l.text != r.node.nodeValue)
@@ -14262,7 +14269,7 @@ function fp(i, e) {
14262
14269
  return { from: s, to: s + o.node.nodeValue.length, node: o.node };
14263
14270
  }
14264
14271
  function rk(i, e, t) {
14265
- let n = fp(i, t);
14272
+ let n = dp(i, t);
14266
14273
  if (!n)
14267
14274
  return null;
14268
14275
  let { node: r, from: o, to: s } = n, l = r.nodeValue;
@@ -14404,7 +14411,7 @@ function Tf(i, e, t) {
14404
14411
  }
14405
14412
  return { node: i, offset: r > -1 ? r : s > 0 ? i.nodeValue.length : 0 };
14406
14413
  }
14407
- function dp(i, e, t, n = -1) {
14414
+ function mp(i, e, t, n = -1) {
14408
14415
  var r, o;
14409
14416
  let s = i.contentDOM.getBoundingClientRect(), l = s.top + i.viewState.paddingTop, a, { docHeight: u } = i.viewState, { x: c, y: h } = e, f = h - l;
14410
14417
  if (f < 0)
@@ -14460,7 +14467,7 @@ function Df(i, e, t, n, r) {
14460
14467
  let s = i.state.sliceDoc(t.from, t.to);
14461
14468
  return t.from + ku(s, o, i.state.tabSize);
14462
14469
  }
14463
- function mp(i, e, t) {
14470
+ function gp(i, e, t) {
14464
14471
  let n, r = i;
14465
14472
  if (i.nodeType != 3 || e != (n = i.nodeValue.length))
14466
14473
  return !1;
@@ -14480,11 +14487,11 @@ function mp(i, e, t) {
14480
14487
  return or(i, n - 1, n).getBoundingClientRect().right > t;
14481
14488
  }
14482
14489
  function dk(i, e, t) {
14483
- return mp(i, e, t);
14490
+ return gp(i, e, t);
14484
14491
  }
14485
14492
  function mk(i, e, t) {
14486
14493
  if (e != 0)
14487
- return mp(i, e, t);
14494
+ return gp(i, e, t);
14488
14495
  for (let r = i; ; ) {
14489
14496
  let o = r.parentNode;
14490
14497
  if (!o || o.nodeType != 1 || o.firstChild != r)
@@ -14528,7 +14535,7 @@ function gk(i, e, t, n) {
14528
14535
  function Pf(i, e, t, n) {
14529
14536
  let r = i.state.doc.lineAt(e.head), o = i.bidiSpans(r), s = i.textDirectionAt(r.from);
14530
14537
  for (let l = e, a = null; ; ) {
14531
- let u = ek(r, o, s, l, t), c = Jg;
14538
+ let u = ek(r, o, s, l, t), c = Xg;
14532
14539
  if (!u) {
14533
14540
  if (r.number == (t ? i.state.doc.lines : 1))
14534
14541
  return l;
@@ -14566,7 +14573,7 @@ function vk(i, e, t, n) {
14566
14573
  }
14567
14574
  let h = a.left + s, f = n ?? i.viewState.heightOracle.textHeight >> 1;
14568
14575
  for (let d = 0; ; d += 10) {
14569
- let m = l + (f + d) * o, p = dp(i, { x: h, y: m }, !1, o);
14576
+ let m = l + (f + d) * o, p = mp(i, { x: h, y: m }, !1, o);
14570
14577
  if (m < a.top || m > a.bottom || (o < 0 ? p < r : p > r)) {
14571
14578
  let g = i.docView.coordsForChar(p), y = !g || m < g.top ? -1 : 1;
14572
14579
  return W.cursor(p, y, void 0, s);
@@ -14587,7 +14594,7 @@ function go(i, e, t) {
14587
14594
  return e;
14588
14595
  }
14589
14596
  }
14590
- function gp(i, e) {
14597
+ function pp(i, e) {
14591
14598
  let t = null;
14592
14599
  for (let n = 0; n < e.ranges.length; n++) {
14593
14600
  let r = e.ranges[n], o = null;
@@ -14715,12 +14722,12 @@ class kk {
14715
14722
  }
14716
14723
  }
14717
14724
  }
14718
- function pp(i, e) {
14725
+ function vp(i, e) {
14719
14726
  let t, { newSel: n } = e, r = i.state.selection.main, o = i.inputState.lastKeyTime > Date.now() - 100 ? i.inputState.lastKeyCode : -1;
14720
14727
  if (e.bounds) {
14721
14728
  let { from: s, to: l } = e.bounds, a = r.from, u = null;
14722
14729
  (o === 8 || se.android && e.text.length < l - s) && (a = r.to, u = "end");
14723
- let c = vp(i.state.doc.sliceString(s, l, oo), e.text, a - s, u);
14730
+ let c = yp(i.state.doc.sliceString(s, l, oo), e.text, a - s, u);
14724
14731
  c && (se.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == oo + oo && c.toB--, t = {
14725
14732
  from: s + c.from,
14726
14733
  to: s + c.toA,
@@ -14742,7 +14749,7 @@ function pp(i, e) {
14742
14749
  return Lc(i, t, n, o);
14743
14750
  if (n && !n.main.eq(r)) {
14744
14751
  let s = !1, l = "select";
14745
- return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = gp(i.state.facet(Ko).map((a) => a(i)), n))), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
14752
+ return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = pp(i.state.facet(Ko).map((a) => a(i)), n))), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
14746
14753
  } else
14747
14754
  return !1;
14748
14755
  }
@@ -14757,7 +14764,7 @@ function Lc(i, e, t, n = -1) {
14757
14764
  let o = e.insert.toString();
14758
14765
  i.inputState.composing >= 0 && i.inputState.composing++;
14759
14766
  let s, l = () => s || (s = wk(i, e, t));
14760
- return i.state.facet(ip).some((a) => a(i, e.from, e.to, o, l)) || i.dispatch(l()), !0;
14767
+ return i.state.facet(np).some((a) => a(i, e.from, e.to, o, l)) || i.dispatch(l()), !0;
14761
14768
  }
14762
14769
  function wk(i, e, t) {
14763
14770
  let n, r = i.state, o = r.selection.main, s = -1;
@@ -14776,7 +14783,7 @@ function wk(i, e, t) {
14776
14783
  } else {
14777
14784
  let a = r.changes(e), u = t && t.main.to <= a.newLength ? t.main : void 0;
14778
14785
  if (r.selection.ranges.length > 1 && (i.inputState.composing >= 0 || i.inputState.compositionPendingChange) && e.to <= o.to + 10 && e.to >= o.to - 10) {
14779
- let c = i.state.sliceDoc(e.from, e.to), h, f = t && fp(i, t.main.head);
14786
+ let c = i.state.sliceDoc(e.from, e.to), h, f = t && dp(i, t.main.head);
14780
14787
  if (f) {
14781
14788
  let m = e.insert.length - (e.to - e.from);
14782
14789
  h = { from: f.from, to: f.to - m };
@@ -14808,7 +14815,7 @@ function wk(i, e, t) {
14808
14815
  let l = "input.type";
14809
14816
  return (i.composing || i.inputState.compositionPendingChange && i.inputState.compositionEndedAt > Date.now() - 50) && (i.inputState.compositionPendingChange = !1, l += ".compose", i.inputState.compositionFirstChange && (l += ".start", i.inputState.compositionFirstChange = !1)), r.update(n, { userEvent: l, scrollIntoView: !0 });
14810
14817
  }
14811
- function vp(i, e, t, n) {
14818
+ function yp(i, e, t, n) {
14812
14819
  let r = Math.min(i.length, e.length), o = 0;
14813
14820
  for (; o < r && i.charCodeAt(o) == e.charCodeAt(o); )
14814
14821
  o++;
@@ -14882,10 +14889,10 @@ class Mk {
14882
14889
  keydown(e) {
14883
14890
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
14884
14891
  return !0;
14885
- if (this.tabFocusMode > 0 && e.keyCode != 27 && bp.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), se.android && se.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
14892
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && xp.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), se.android && se.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
14886
14893
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
14887
14894
  let t;
14888
- return se.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = yp.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || Ok.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
14895
+ return se.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = bp.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || Ok.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
14889
14896
  }
14890
14897
  flushIOSKey(e) {
14891
14898
  let t = this.pendingIOSKey;
@@ -14937,12 +14944,12 @@ function Ak(i) {
14937
14944
  t(n).observers.push(Ci[n]);
14938
14945
  return e;
14939
14946
  }
14940
- const yp = [
14947
+ const bp = [
14941
14948
  { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" },
14942
14949
  { key: "Enter", keyCode: 13, inputType: "insertParagraph" },
14943
14950
  { key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
14944
14951
  { key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
14945
- ], Ok = "dthko", bp = [16, 17, 18, 20, 91, 92, 224, 225], ds = 6;
14952
+ ], Ok = "dthko", xp = [16, 17, 18, 20, 91, 92, 224, 225], ds = 6;
14946
14953
  function ms(i) {
14947
14954
  return Math.max(0, i) * 0.7 + 8;
14948
14955
  }
@@ -14953,7 +14960,7 @@ class Dk {
14953
14960
  constructor(e, t, n, r) {
14954
14961
  this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = Ix(e.contentDOM), this.atoms = e.state.facet(Ko).map((s) => s(e));
14955
14962
  let o = e.contentDOM.ownerDocument;
14956
- o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(Ee.allowMultipleSelections) && Pk(e, t), this.dragging = Bk(e, t) && wp(t) == 1 ? null : !1;
14963
+ o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(Ee.allowMultipleSelections) && Pk(e, t), this.dragging = Bk(e, t) && Sp(t) == 1 ? null : !1;
14957
14964
  }
14958
14965
  start(e) {
14959
14966
  this.dragging === !1 && this.select(e);
@@ -14985,7 +14992,7 @@ class Dk {
14985
14992
  e && this.scrollParents.x && (this.scrollParents.x.scrollLeft += e, e = 0), t && this.scrollParents.y && (this.scrollParents.y.scrollTop += t, t = 0), (e || t) && this.view.win.scrollBy(e, t), this.dragging === !1 && this.select(this.lastEvent);
14986
14993
  }
14987
14994
  select(e) {
14988
- let { view: t } = this, n = gp(this.atoms, this.style.get(e, this.extend, this.multiple));
14995
+ let { view: t } = this, n = pp(this.atoms, this.style.get(e, this.extend, this.multiple));
14989
14996
  (this.mustSelect || !n.eq(t.state.selection, this.dragging === !1)) && this.view.dispatch({
14990
14997
  selection: n,
14991
14998
  userEvent: "select.pointer"
@@ -14996,11 +15003,11 @@ class Dk {
14996
15003
  }
14997
15004
  }
14998
15005
  function Pk(i, e) {
14999
- let t = i.state.facet(Xg);
15006
+ let t = i.state.facet(Zg);
15000
15007
  return t.length ? t[0](e) : se.mac ? e.metaKey : e.ctrlKey;
15001
15008
  }
15002
15009
  function qk(i, e) {
15003
- let t = i.state.facet(Zg);
15010
+ let t = i.state.facet(ep);
15004
15011
  return t.length ? t[0](e) : se.mac ? !e.altKey : !e.ctrlKey;
15005
15012
  }
15006
15013
  function Bk(i, e) {
@@ -15028,14 +15035,14 @@ function _k(i, e) {
15028
15035
  return !1;
15029
15036
  return !0;
15030
15037
  }
15031
- const Di = /* @__PURE__ */ Object.create(null), Ci = /* @__PURE__ */ Object.create(null), xp = se.ie && se.ie_version < 15 || se.ios && se.webkit_version < 604;
15038
+ const Di = /* @__PURE__ */ Object.create(null), Ci = /* @__PURE__ */ Object.create(null), kp = se.ie && se.ie_version < 15 || se.ios && se.webkit_version < 604;
15032
15039
  function Rk(i) {
15033
15040
  let e = i.dom.parentNode;
15034
15041
  if (!e)
15035
15042
  return;
15036
15043
  let t = e.appendChild(document.createElement("textarea"));
15037
15044
  t.style.cssText = "position: fixed; left: -10000px; top: 10px", t.focus(), setTimeout(() => {
15038
- i.focus(), t.remove(), kp(i, t.value);
15045
+ i.focus(), t.remove(), wp(i, t.value);
15039
15046
  }, 50);
15040
15047
  }
15041
15048
  function Wl(i, e, t) {
@@ -15043,7 +15050,7 @@ function Wl(i, e, t) {
15043
15050
  t = n(t, i);
15044
15051
  return t;
15045
15052
  }
15046
- function kp(i, e) {
15053
+ function wp(i, e) {
15047
15054
  e = Wl(i.state, Bc, e);
15048
15055
  let { state: t } = i, n, r = 1, o = t.toText(e), s = o.lines == t.selection.ranges.length;
15049
15056
  if (Vu != null && t.selection.ranges.every((a) => a.empty) && Vu == o.toString()) {
@@ -15085,13 +15092,13 @@ Di.mousedown = (i, e) => {
15085
15092
  if (i.observer.flush(), i.inputState.lastTouchTime > Date.now() - 2e3)
15086
15093
  return !1;
15087
15094
  let t = null;
15088
- for (let n of i.state.facet(ep))
15095
+ for (let n of i.state.facet(tp))
15089
15096
  if (t = n(i, e), t)
15090
15097
  break;
15091
15098
  if (!t && e.button == 0 && (t = Ik(i, e)), t) {
15092
15099
  let n = !i.hasFocus;
15093
15100
  i.inputState.startMouseSelection(new Dk(i, e, t, n)), n && i.observer.ignore(() => {
15094
- Eg(i.contentDOM);
15101
+ Lg(i.contentDOM);
15095
15102
  let o = i.root.activeElement;
15096
15103
  o && !o.contains(i.contentDOM) && o.blur();
15097
15104
  });
@@ -15134,14 +15141,14 @@ function Ef(i, e) {
15134
15141
  }
15135
15142
  const Lk = se.ie && se.ie_version <= 11;
15136
15143
  let Lf = null, If = 0, Vf = 0;
15137
- function wp(i) {
15144
+ function Sp(i) {
15138
15145
  if (!Lk)
15139
15146
  return i.detail;
15140
15147
  let e = Lf, t = Vf;
15141
15148
  return Lf = i, Vf = Date.now(), If = !e || t > Date.now() - 400 && Math.abs(e.clientX - i.clientX) < 2 && Math.abs(e.clientY - i.clientY) < 2 ? (If + 1) % 3 : 1;
15142
15149
  }
15143
15150
  function Ik(i, e) {
15144
- let t = Ef(i, e), n = wp(e), r = i.state.selection;
15151
+ let t = Ef(i, e), n = Sp(e), r = i.state.selection;
15145
15152
  return {
15146
15153
  update(o) {
15147
15154
  o.docChanged && (t.pos = o.changes.mapPos(t.pos), r = r.map(o.changes));
@@ -15215,8 +15222,8 @@ Di.paste = (i, e) => {
15215
15222
  if (i.state.readOnly)
15216
15223
  return !0;
15217
15224
  i.observer.flush();
15218
- let t = xp ? null : e.clipboardData;
15219
- return t ? (kp(i, t.getData("text/plain") || t.getData("text/uri-list")), !0) : (Rk(i), !1);
15225
+ let t = kp ? null : e.clipboardData;
15226
+ return t ? (wp(i, t.getData("text/plain") || t.getData("text/uri-list")), !0) : (Rk(i), !1);
15220
15227
  };
15221
15228
  function Fk(i, e) {
15222
15229
  let t = i.dom.parentNode;
@@ -15251,32 +15258,32 @@ Di.copy = Di.cut = (i, e) => {
15251
15258
  scrollIntoView: !0,
15252
15259
  userEvent: "delete.cut"
15253
15260
  });
15254
- let o = xp ? null : e.clipboardData;
15261
+ let o = kp ? null : e.clipboardData;
15255
15262
  return o ? (o.clearData(), o.setData("text/plain", t), !0) : (Fk(i, t), !1);
15256
15263
  };
15257
- const Sp = /* @__PURE__ */ hn.define();
15258
- function Cp(i, e) {
15264
+ const Cp = /* @__PURE__ */ hn.define();
15265
+ function Mp(i, e) {
15259
15266
  let t = [];
15260
- for (let n of i.facet(np)) {
15267
+ for (let n of i.facet(rp)) {
15261
15268
  let r = n(i, e);
15262
15269
  r && t.push(r);
15263
15270
  }
15264
- return t.length ? i.update({ effects: t, annotations: Sp.of(!0) }) : null;
15271
+ return t.length ? i.update({ effects: t, annotations: Cp.of(!0) }) : null;
15265
15272
  }
15266
- function Mp(i) {
15273
+ function Ap(i) {
15267
15274
  setTimeout(() => {
15268
15275
  let e = i.hasFocus;
15269
15276
  if (e != i.inputState.notifiedFocused) {
15270
- let t = Cp(i.state, e);
15277
+ let t = Mp(i.state, e);
15271
15278
  t ? i.dispatch(t) : i.update([]);
15272
15279
  }
15273
15280
  }, 10);
15274
15281
  }
15275
15282
  Ci.focus = (i) => {
15276
- i.inputState.lastFocusTime = Date.now(), !i.scrollDOM.scrollTop && (i.inputState.lastScrollTop || i.inputState.lastScrollLeft) && (i.scrollDOM.scrollTop = i.inputState.lastScrollTop, i.scrollDOM.scrollLeft = i.inputState.lastScrollLeft), Mp(i);
15283
+ i.inputState.lastFocusTime = Date.now(), !i.scrollDOM.scrollTop && (i.inputState.lastScrollTop || i.inputState.lastScrollLeft) && (i.scrollDOM.scrollTop = i.inputState.lastScrollTop, i.scrollDOM.scrollLeft = i.inputState.lastScrollLeft), Ap(i);
15277
15284
  };
15278
15285
  Ci.blur = (i) => {
15279
- i.observer.clearSelectionRange(), Mp(i);
15286
+ i.observer.clearSelectionRange(), Ap(i);
15280
15287
  };
15281
15288
  Ci.compositionstart = Ci.compositionupdate = (i) => {
15282
15289
  i.observer.editContext || (i.inputState.compositionFirstChange == null && (i.inputState.compositionFirstChange = !0), i.inputState.composing < 0 && (i.inputState.composing = 0));
@@ -15299,7 +15306,7 @@ Di.beforeinput = (i, e) => {
15299
15306
  }
15300
15307
  }
15301
15308
  let r;
15302
- if (se.chrome && se.android && (r = yp.find((o) => o.inputType == e.inputType)) && (i.observer.delayAndroidKey(r.key, r.keyCode), r.key == "Backspace" || r.key == "Delete")) {
15309
+ if (se.chrome && se.android && (r = bp.find((o) => o.inputType == e.inputType)) && (i.observer.delayAndroidKey(r.key, r.keyCode), r.key == "Backspace" || r.key == "Delete")) {
15303
15310
  let o = ((n = window.visualViewport) === null || n === void 0 ? void 0 : n.height) || 0;
15304
15311
  setTimeout(() => {
15305
15312
  var s;
@@ -15490,7 +15497,7 @@ function hl(i, e) {
15490
15497
  return i == e ? i : (i.constructor != e.constructor && (Nr = !0), e);
15491
15498
  }
15492
15499
  ei.prototype.size = 1;
15493
- class Ap extends ei {
15500
+ class Op extends ei {
15494
15501
  constructor(e, t, n) {
15495
15502
  super(e, t), this.deco = n;
15496
15503
  }
@@ -15510,7 +15517,7 @@ class Ap extends ei {
15510
15517
  return `block(${this.length})`;
15511
15518
  }
15512
15519
  }
15513
- class ci extends Ap {
15520
+ class ci extends Op {
15514
15521
  constructor(e, t) {
15515
15522
  super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0;
15516
15523
  }
@@ -15705,7 +15712,7 @@ class Ic {
15705
15712
  let r = n.widget ? n.widget.estimatedHeight : 0, o = n.widget ? n.widget.lineBreaks : 0;
15706
15713
  r < 0 && (r = this.oracle.lineHeight);
15707
15714
  let s = t - e;
15708
- n.block ? this.addBlock(new Ap(s, r, n)) : (s || o || r >= Qk) && this.addLineDeco(r, o, s);
15715
+ n.block ? this.addBlock(new Op(s, r, n)) : (s || o || r >= Qk) && this.addLineDeco(r, o, s);
15709
15716
  } else t > e && this.span(e, t);
15710
15717
  this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to);
15711
15718
  }
@@ -15875,7 +15882,7 @@ class Wf {
15875
15882
  let a = o.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
15876
15883
  (t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
15877
15884
  let u = a.from != this.viewport.from || a.to != this.viewport.to;
15878
- this.viewport = a, e.flags |= this.updateForViewport(), (u || !e.changes.empty || e.flags & 2) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(e.changes), t && (this.scrollTarget = t), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(op) && (this.mustEnforceCursorAssoc = !0);
15885
+ this.viewport = a, e.flags |= this.updateForViewport(), (u || !e.changes.empty || e.flags & 2) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(e.changes), t && (this.scrollTarget = t), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(sp) && (this.mustEnforceCursorAssoc = !0);
15879
15886
  }
15880
15887
  measure(e) {
15881
15888
  let t = e.contentDOM, n = window.getComputedStyle(t), r = this.heightOracle, o = n.whiteSpace;
@@ -15884,13 +15891,13 @@ class Wf {
15884
15891
  this.contentDOMHeight = l.height, this.mustMeasureContent = !1;
15885
15892
  let u = 0, c = 0;
15886
15893
  if (l.width && l.height) {
15887
- let { scaleX: x, scaleY: S } = Rg(t, l);
15894
+ let { scaleX: x, scaleY: S } = Eg(t, l);
15888
15895
  (x > 5e-3 && Math.abs(this.scaleX - x) > 5e-3 || S > 5e-3 && Math.abs(this.scaleY - S) > 5e-3) && (this.scaleX = x, this.scaleY = S, u |= 16, s = a = !0);
15889
15896
  }
15890
15897
  let h = (parseInt(n.paddingTop) || 0) * this.scaleY, f = (parseInt(n.paddingBottom) || 0) * this.scaleY;
15891
15898
  (this.paddingTop != h || this.paddingBottom != f) && (this.paddingTop = h, this.paddingBottom = f, u |= 18), this.editorWidth != e.scrollDOM.clientWidth && (r.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 16);
15892
15899
  let d = e.scrollDOM.scrollTop * this.scaleY;
15893
- this.scrollTop != d && (this.scrollAnchorHeight = -1, this.scrollTop = d), this.scrolledToBottom = Ig(e.scrollDOM);
15900
+ this.scrollTop != d && (this.scrollAnchorHeight = -1, this.scrollTop = d), this.scrolledToBottom = Vg(e.scrollDOM);
15894
15901
  let m = (this.printing ? $k : Yk)(t, this.paddingTop), p = m.top - this.pixelViewport.top, g = m.bottom - this.pixelViewport.bottom;
15895
15902
  this.pixelViewport = m;
15896
15903
  let y = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
@@ -16167,7 +16174,7 @@ function so(i, e) {
16167
16174
  let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
16168
16175
  return new Hi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => so(r, e)) : i._content);
16169
16176
  }
16170
- const ys = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Fu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Nu = /* @__PURE__ */ Dn.newName(), Op = /* @__PURE__ */ Dn.newName(), Tp = /* @__PURE__ */ Dn.newName(), Dp = { "&light": "." + Op, "&dark": "." + Tp };
16177
+ const ys = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Fu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Nu = /* @__PURE__ */ Dn.newName(), Tp = /* @__PURE__ */ Dn.newName(), Dp = /* @__PURE__ */ Dn.newName(), Pp = { "&light": "." + Tp, "&dark": "." + Dp };
16171
16178
  function Hu(i, e, t) {
16172
16179
  return new Dn(e, {
16173
16180
  finish(n) {
@@ -16449,7 +16456,7 @@ const ew = /* @__PURE__ */ Hu("." + Nu, {
16449
16456
  border: "1px solid #555",
16450
16457
  backgroundColor: "inherit"
16451
16458
  }
16452
- }, Dp), tw = {
16459
+ }, Pp), tw = {
16453
16460
  childList: !0,
16454
16461
  characterData: !0,
16455
16462
  subtree: !0,
@@ -16638,7 +16645,7 @@ class iw {
16638
16645
  let t = this.readChange();
16639
16646
  if (!t)
16640
16647
  return this.view.requestMeasure(), !1;
16641
- let n = this.view.state, r = pp(this.view, t);
16648
+ let n = this.view.state, r = vp(this.view, t);
16642
16649
  return this.view.state == n && (t.domChanged || t.newSel && !t.newSel.main.eq(this.view.state.selection.main)) && this.view.update([]), r;
16643
16650
  }
16644
16651
  readMutation(e) {
@@ -16713,7 +16720,7 @@ class rw {
16713
16720
  e.inputState.composing >= 0 && !this.composing && (this.composing = { contextBase: n.updateRangeStart, editorBase: l, drifted: !1 });
16714
16721
  let u = a - l > n.text.length;
16715
16722
  l == this.from && o < this.from ? l = o : a == this.to && o > this.to && (a = o);
16716
- let c = vp(e.state.sliceDoc(l, a), n.text, (u ? r.from : r.to) - l, u ? "end" : null);
16723
+ let c = yp(e.state.sliceDoc(l, a), n.text, (u ? r.from : r.to) - l, u ? "end" : null);
16717
16724
  if (!c) {
16718
16725
  let f = W.single(this.toEditorPos(n.selectionStart), this.toEditorPos(n.selectionEnd));
16719
16726
  f.main.eq(r) || e.dispatch({ selection: f, userEvent: "select" });
@@ -16749,7 +16756,7 @@ class rw {
16749
16756
  }
16750
16757
  }
16751
16758
  }
16752
- e.dispatch({ effects: lp.of(xe.set(r)) });
16759
+ e.dispatch({ effects: ap.of(xe.set(r)) });
16753
16760
  }, this.handlers.compositionstart = () => {
16754
16761
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
16755
16762
  }, this.handlers.compositionend = () => {
@@ -16939,7 +16946,7 @@ class le {
16939
16946
  return;
16940
16947
  }
16941
16948
  let s = this.hasFocus, l = 0, a = null;
16942
- e.some((f) => f.annotation(Sp)) ? (this.inputState.notifiedFocused = s, l = 1) : s != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = s, a = Cp(o, s), a || (l = 1));
16949
+ e.some((f) => f.annotation(Cp)) ? (this.inputState.notifiedFocused = s, l = 1) : s != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = s, a = Mp(o, s), a || (l = 1));
16943
16950
  let u = this.observer.delayedAndroidKey, c = null;
16944
16951
  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))
16945
16952
  return this.setState(o);
@@ -16967,7 +16974,7 @@ class le {
16967
16974
  Xt(this.state, d, "update listener");
16968
16975
  }
16969
16976
  (a || c) && Promise.resolve().then(() => {
16970
- a && this.state == a.startState && this.dispatch(a), c && !pp(this, c) && u.force && Tr(this.contentDOM, u.key, u.keyCode);
16977
+ a && this.state == a.startState && this.dispatch(a), c && !vp(this, c) && u.force && Tr(this.contentDOM, u.key, u.keyCode);
16971
16978
  });
16972
16979
  }
16973
16980
  /**
@@ -17048,7 +17055,7 @@ class le {
17048
17055
  try {
17049
17056
  for (let l = 0; ; l++) {
17050
17057
  if (s < 0)
17051
- if (Ig(n))
17058
+ if (Vg(n))
17052
17059
  o = -1, s = this.viewState.heightMap.height;
17053
17060
  else {
17054
17061
  let d = this.viewState.scrollAnchorAt(r);
@@ -17106,10 +17113,10 @@ class le {
17106
17113
  Get the CSS classes for the currently active editor themes.
17107
17114
  */
17108
17115
  get themeClasses() {
17109
- return Nu + " " + (this.state.facet(Fu) ? Tp : Op) + " " + this.state.facet(ys);
17116
+ return Nu + " " + (this.state.facet(Fu) ? Dp : Tp) + " " + this.state.facet(ys);
17110
17117
  }
17111
17118
  updateAttrs() {
17112
- let e = Gf(this, ap, {
17119
+ let e = Gf(this, up, {
17113
17120
  class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses
17114
17121
  }), t = {
17115
17122
  spellcheck: "false",
@@ -17338,7 +17345,7 @@ class le {
17338
17345
  return this.docView.posFromDOM(e, t);
17339
17346
  }
17340
17347
  posAtCoords(e, t = !0) {
17341
- return this.readMeasured(), dp(this, e, t);
17348
+ return this.readMeasured(), mp(this, e, t);
17342
17349
  }
17343
17350
  /**
17344
17351
  Get the screen coordinates at the given document position.
@@ -17398,7 +17405,7 @@ class le {
17398
17405
  this may trigger a DOM layout.
17399
17406
  */
17400
17407
  textDirectionAt(e) {
17401
- return !this.state.facet(rp) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e));
17408
+ return !this.state.facet(op) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e));
17402
17409
  }
17403
17410
  /**
17404
17411
  Whether this editor [wraps lines](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping)
@@ -17419,10 +17426,10 @@ class le {
17419
17426
  */
17420
17427
  bidiSpans(e) {
17421
17428
  if (e.length > ow)
17422
- return $g(e.length);
17429
+ return Jg(e.length);
17423
17430
  let t = this.textDirectionAt(e.from), n;
17424
17431
  for (let o of this.bidiCache)
17425
- if (o.from == e.from && o.dir == t && (o.fresh || Gg(o.isolates, n = Cf(this, e))))
17432
+ if (o.from == e.from && o.dir == t && (o.fresh || $g(o.isolates, n = Cf(this, e))))
17426
17433
  return o.order;
17427
17434
  n || (n = Cf(this, e));
17428
17435
  let r = Zx(e.text, t, n);
@@ -17440,7 +17447,7 @@ class le {
17440
17447
  */
17441
17448
  focus() {
17442
17449
  this.observer.ignore(() => {
17443
- Eg(this.contentDOM), this.docView.updateSelection();
17450
+ Lg(this.contentDOM), this.docView.updateSelection();
17444
17451
  });
17445
17452
  }
17446
17453
  /**
@@ -17556,7 +17563,7 @@ class le {
17556
17563
  target editors with a dark or light theme.
17557
17564
  */
17558
17565
  static baseTheme(e) {
17559
- return ur.lowest(ro.of(Hu("." + Nu, e, Dp)));
17566
+ return ur.lowest(ro.of(Hu("." + Nu, e, Pp)));
17560
17567
  }
17561
17568
  /**
17562
17569
  Retrieve an editor view instance from the view's DOM
@@ -17569,27 +17576,27 @@ class le {
17569
17576
  }
17570
17577
  }
17571
17578
  le.styleModule = ro;
17572
- le.inputHandler = ip;
17579
+ le.inputHandler = np;
17573
17580
  le.clipboardInputFilter = Bc;
17574
17581
  le.clipboardOutputFilter = _c;
17575
- le.scrollHandler = sp;
17576
- le.focusChangeEffect = np;
17577
- le.perLineTextDirection = rp;
17578
- le.exceptionSink = tp;
17582
+ le.scrollHandler = lp;
17583
+ le.focusChangeEffect = rp;
17584
+ le.perLineTextDirection = op;
17585
+ le.exceptionSink = ip;
17579
17586
  le.updateListener = Eu;
17580
17587
  le.editable = tn;
17581
- le.mouseSelectionStyle = ep;
17582
- le.dragMovesSelection = Zg;
17583
- le.clickAddsSelectionRange = Xg;
17588
+ le.mouseSelectionStyle = tp;
17589
+ le.dragMovesSelection = ep;
17590
+ le.clickAddsSelectionRange = Zg;
17584
17591
  le.decorations = Oo;
17585
- le.outerDecorations = up;
17592
+ le.outerDecorations = cp;
17586
17593
  le.atomicRanges = Ko;
17587
- le.bidiIsolatedRanges = cp;
17588
- le.scrollMargins = hp;
17594
+ le.bidiIsolatedRanges = hp;
17595
+ le.scrollMargins = fp;
17589
17596
  le.darkTheme = Fu;
17590
17597
  le.cspNonce = /* @__PURE__ */ de.define({ combine: (i) => i.length ? i[0] : "" });
17591
17598
  le.contentAttributes = Rc;
17592
- le.editorAttributes = ap;
17599
+ le.editorAttributes = up;
17593
17600
  le.lineWrapping = /* @__PURE__ */ le.contentAttributes.of({ class: "cm-lineWrapping" });
17594
17601
  le.announce = /* @__PURE__ */ Me.define();
17595
17602
  const ow = 4096, Yf = {};
@@ -17643,15 +17650,15 @@ function bs(i, e, t) {
17643
17650
  }
17644
17651
  const aw = /* @__PURE__ */ ur.default(/* @__PURE__ */ le.domEventHandlers({
17645
17652
  keydown(i, e) {
17646
- return qp(Pp(e.state), i, e, "editor");
17653
+ return Bp(qp(e.state), i, e, "editor");
17647
17654
  }
17648
17655
  })), Uo = /* @__PURE__ */ de.define({ enables: aw }), $f = /* @__PURE__ */ new WeakMap();
17649
- function Pp(i) {
17656
+ function qp(i) {
17650
17657
  let e = i.facet(Uo), t = $f.get(e);
17651
17658
  return t || $f.set(e, t = hw(e.reduce((n, r) => n.concat(r), []))), t;
17652
17659
  }
17653
17660
  function uw(i, e, t) {
17654
- return qp(Pp(i.state), e, i, t);
17661
+ return Bp(qp(i.state), e, i, t);
17655
17662
  }
17656
17663
  let bn = null;
17657
17664
  const cw = 4e3;
@@ -17705,10 +17712,10 @@ function hw(i, e = sw) {
17705
17712
  return t;
17706
17713
  }
17707
17714
  let zu = null;
17708
- function qp(i, e, t, n) {
17715
+ function Bp(i, e, t, n) {
17709
17716
  zu = e;
17710
17717
  let r = _x(e), o = ri(r, 0), s = Ni(o) == r.length && r != " ", l = "", a = !1, u = !1, c = !1;
17711
- bn && bn.view == t && bn.scope == n && (l = bn.prefix + " ", bp.indexOf(e.keyCode) < 0 && (u = !0, bn = null));
17718
+ bn && bn.view == t && bn.scope == n && (l = bn.prefix + " ", xp.indexOf(e.keyCode) < 0 && (u = !0, bn = null));
17712
17719
  let h = /* @__PURE__ */ new Set(), f = (g) => {
17713
17720
  if (g) {
17714
17721
  for (let y of g.run)
@@ -17755,13 +17762,13 @@ class Yo {
17755
17762
  let r = e.coordsAtPos(n.head, n.assoc || 1);
17756
17763
  if (!r)
17757
17764
  return [];
17758
- let o = Bp(e);
17765
+ let o = _p(e);
17759
17766
  return [new Yo(t, r.left - o.left, r.top - o.top, null, r.bottom - r.top)];
17760
17767
  } else
17761
17768
  return fw(e, t, n);
17762
17769
  }
17763
17770
  }
17764
- function Bp(i) {
17771
+ function _p(i) {
17765
17772
  let e = i.scrollDOM.getBoundingClientRect();
17766
17773
  return { left: (i.textDirection == ot.LTR ? e.left : e.right - i.scrollDOM.clientWidth * i.scaleX) - i.scrollDOM.scrollLeft * i.scaleX, top: e.top - i.scrollDOM.scrollTop * i.scaleY };
17767
17774
  }
@@ -17775,7 +17782,7 @@ function Jf(i, e, t, n) {
17775
17782
  function fw(i, e, t) {
17776
17783
  if (t.to <= i.viewport.from || t.from >= i.viewport.to)
17777
17784
  return [];
17778
- 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 = Iu(i, n, 1), m = Iu(i, r, -1), p = d.type == Zt.Text ? d : null, g = m.type == Zt.Text ? m : null;
17785
+ 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 = _p(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 = Iu(i, n, 1), m = Iu(i, r, -1), p = d.type == Zt.Text ? d : null, g = m.type == Zt.Text ? m : null;
17779
17786
  if (p && (i.lineWrapping || d.widgetLineBreaks) && (p = Jf(i, n, 1, p)), g && (i.lineWrapping || m.widgetLineBreaks) && (g = Jf(i, r, -1, g)), p && g && p.from == g.from && p.to == g.to)
17780
17787
  return k(v(t.from, t.to, p));
17781
17788
  {
@@ -17861,7 +17868,7 @@ class mw {
17861
17868
  }
17862
17869
  }
17863
17870
  const zs = /* @__PURE__ */ de.define();
17864
- function _p(i) {
17871
+ function Rp(i) {
17865
17872
  return [
17866
17873
  ft.define((e) => new mw(e, i)),
17867
17874
  zs.of(i)
@@ -17884,13 +17891,13 @@ function gw(i = {}) {
17884
17891
  pw,
17885
17892
  vw,
17886
17893
  yw,
17887
- op.of(!0)
17894
+ sp.of(!0)
17888
17895
  ];
17889
17896
  }
17890
- function Rp(i) {
17897
+ function Ep(i) {
17891
17898
  return i.startState.facet(To) != i.state.facet(To);
17892
17899
  }
17893
- const pw = /* @__PURE__ */ _p({
17900
+ const pw = /* @__PURE__ */ Rp({
17894
17901
  above: !0,
17895
17902
  markers(i) {
17896
17903
  let { state: e } = i, t = e.facet(To), n = [];
@@ -17906,7 +17913,7 @@ const pw = /* @__PURE__ */ _p({
17906
17913
  },
17907
17914
  update(i, e) {
17908
17915
  i.transactions.some((n) => n.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink");
17909
- let t = Rp(i);
17916
+ let t = Ep(i);
17910
17917
  return t && Xf(i.state, e), i.docChanged || i.selectionSet || t;
17911
17918
  },
17912
17919
  mount(i, e) {
@@ -17917,13 +17924,13 @@ const pw = /* @__PURE__ */ _p({
17917
17924
  function Xf(i, e) {
17918
17925
  e.style.animationDuration = i.facet(To).cursorBlinkRate + "ms";
17919
17926
  }
17920
- const vw = /* @__PURE__ */ _p({
17927
+ const vw = /* @__PURE__ */ Rp({
17921
17928
  above: !1,
17922
17929
  markers(i) {
17923
17930
  return i.state.selection.ranges.map((e) => e.empty ? [] : Yo.forRange(i, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
17924
17931
  },
17925
17932
  update(i, e) {
17926
- return i.docChanged || i.selectionSet || i.viewportChanged || Rp(i);
17933
+ return i.docChanged || i.selectionSet || i.viewportChanged || Ep(i);
17927
17934
  },
17928
17935
  class: "cm-selectionLayer"
17929
17936
  }), yw = /* @__PURE__ */ ur.highest(/* @__PURE__ */ le.theme({
@@ -17940,7 +17947,7 @@ const vw = /* @__PURE__ */ _p({
17940
17947
  }
17941
17948
  }
17942
17949
  }
17943
- })), Ep = /* @__PURE__ */ Me.define({
17950
+ })), Lp = /* @__PURE__ */ Me.define({
17944
17951
  map(i, e) {
17945
17952
  return i == null ? null : e.mapPos(i);
17946
17953
  }
@@ -17949,7 +17956,7 @@ const vw = /* @__PURE__ */ _p({
17949
17956
  return null;
17950
17957
  },
17951
17958
  update(i, e) {
17952
- return i != null && (i = e.changes.mapPos(i)), e.effects.reduce((t, n) => n.is(Ep) ? n.value : t, i);
17959
+ return i != null && (i = e.changes.mapPos(i)), e.effects.reduce((t, n) => n.is(Lp) ? n.value : t, i);
17953
17960
  }
17954
17961
  }), bw = /* @__PURE__ */ ft.fromClass(class {
17955
17962
  constructor(i) {
@@ -17981,7 +17988,7 @@ const vw = /* @__PURE__ */ _p({
17981
17988
  this.cursor && this.cursor.remove();
17982
17989
  }
17983
17990
  setDropPos(i) {
17984
- this.view.state.field(lo) != i && this.view.dispatch({ effects: Ep.of(i) });
17991
+ this.view.state.field(lo) != i && this.view.dispatch({ effects: Lp.of(i) });
17985
17992
  }
17986
17993
  }, {
17987
17994
  eventObservers: {
@@ -18346,7 +18353,7 @@ function jw(i = {}) {
18346
18353
  ];
18347
18354
  }
18348
18355
  const xs = "-10000px";
18349
- class Lp {
18356
+ class Ip {
18350
18357
  constructor(e, t, n, r) {
18351
18358
  this.facet = t, this.createTooltipView = n, this.removeTooltipView = r, this.input = e.state.facet(t), this.tooltips = this.input.filter((s) => s);
18352
18359
  let o = null;
@@ -18398,7 +18405,7 @@ const La = /* @__PURE__ */ de.define({
18398
18405
  constructor(i) {
18399
18406
  this.view = i, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
18400
18407
  let e = i.state.facet(La);
18401
- 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, Ql, (t, n) => this.createTooltip(t, n), (t) => {
18408
+ 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 Ip(i, Ql, (t, n) => this.createTooltip(t, n), (t) => {
18402
18409
  this.resizeObserver && this.resizeObserver.unobserve(t.dom), t.dom.remove();
18403
18410
  }), this.above = this.manager.tooltips.map((t) => !!t.above), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((t) => {
18404
18411
  Date.now() > this.lastTransaction - 50 && t.length > 0 && t[t.length - 1].intersectionRatio < 1 && this.measureSoon();
@@ -18612,7 +18619,7 @@ class Kl {
18612
18619
  return new Kl(e);
18613
18620
  }
18614
18621
  constructor(e) {
18615
- this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Lp(e, dl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
18622
+ this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Ip(e, dl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
18616
18623
  }
18617
18624
  createHostedView(e, t) {
18618
18625
  let n = e.create(this.view);
@@ -18801,7 +18808,7 @@ function Jw(i, e = {}) {
18801
18808
  ]
18802
18809
  };
18803
18810
  }
18804
- function Ip(i, e) {
18811
+ function Vp(i, e) {
18805
18812
  let t = i.plugin(Fc);
18806
18813
  if (!t)
18807
18814
  return null;
@@ -18817,10 +18824,10 @@ const Xw = /* @__PURE__ */ Me.define(), rd = /* @__PURE__ */ de.define({
18817
18824
  }
18818
18825
  });
18819
18826
  function Do(i, e) {
18820
- let t = i.plugin(Vp), n = t ? t.specs.indexOf(e) : -1;
18827
+ let t = i.plugin(Fp), n = t ? t.specs.indexOf(e) : -1;
18821
18828
  return n > -1 ? t.panels[n] : null;
18822
18829
  }
18823
- const Vp = /* @__PURE__ */ ft.fromClass(class {
18830
+ const Fp = /* @__PURE__ */ ft.fromClass(class {
18824
18831
  constructor(i) {
18825
18832
  this.input = i.state.facet(Po), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(i));
18826
18833
  let e = i.state.facet(rd);
@@ -18901,7 +18908,7 @@ function od(i) {
18901
18908
  return i.remove(), e;
18902
18909
  }
18903
18910
  const Po = /* @__PURE__ */ de.define({
18904
- enables: Vp
18911
+ enables: Fp
18905
18912
  });
18906
18913
  class Ui extends nr {
18907
18914
  /**
@@ -18941,13 +18948,13 @@ const Ws = /* @__PURE__ */ de.define(), Zw = /* @__PURE__ */ de.define(), eS = {
18941
18948
  domEventHandlers: {},
18942
18949
  side: "before"
18943
18950
  }, po = /* @__PURE__ */ de.define();
18944
- function Fp(i) {
18945
- return [Np(), po.of({ ...eS, ...i })];
18951
+ function Np(i) {
18952
+ return [Hp(), po.of({ ...eS, ...i })];
18946
18953
  }
18947
18954
  const sd = /* @__PURE__ */ de.define({
18948
18955
  combine: (i) => i.some((e) => e)
18949
18956
  });
18950
- function Np(i) {
18957
+ function Hp(i) {
18951
18958
  return [
18952
18959
  tS
18953
18960
  ];
@@ -19048,7 +19055,7 @@ class iS {
19048
19055
  addElement(e, t, n) {
19049
19056
  let { gutter: r } = this, o = (t.top - this.height) / e.scaleY, s = t.height / e.scaleY;
19050
19057
  if (this.i == r.elements.length) {
19051
- let l = new Hp(e, s, o, n);
19058
+ let l = new zp(e, s, o, n);
19052
19059
  r.elements.push(l), r.dom.appendChild(l.dom);
19053
19060
  } else
19054
19061
  r.elements[this.i].update(e, s, o, n);
@@ -19094,7 +19101,7 @@ class ad {
19094
19101
  let l = e.lineBlockAtHeight(s - e.documentTop);
19095
19102
  t.domEventHandlers[n](e, l, r) && r.preventDefault();
19096
19103
  });
19097
- this.markers = ld(t.markers(e)), t.initialSpacer && (this.spacer = new Hp(e, 0, 0, [t.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none");
19104
+ this.markers = ld(t.markers(e)), t.initialSpacer && (this.spacer = new zp(e, 0, 0, [t.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none");
19098
19105
  }
19099
19106
  update(e) {
19100
19107
  let t = this.markers;
@@ -19110,7 +19117,7 @@ class ad {
19110
19117
  e.destroy();
19111
19118
  }
19112
19119
  }
19113
- class Hp {
19120
+ class zp {
19114
19121
  constructor(e, t, n, r) {
19115
19122
  this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, t, n, r);
19116
19123
  }
@@ -19213,10 +19220,10 @@ const sS = /* @__PURE__ */ po.compute([kr], (i) => ({
19213
19220
  domEventHandlers: i.facet(kr).domEventHandlers,
19214
19221
  side: "before"
19215
19222
  }));
19216
- function zp(i = {}) {
19223
+ function jp(i = {}) {
19217
19224
  return [
19218
19225
  kr.of(i),
19219
- Np(),
19226
+ Hp(),
19220
19227
  sS
19221
19228
  ];
19222
19229
  }
@@ -19241,7 +19248,7 @@ const lS = /* @__PURE__ */ new class extends Ui {
19241
19248
  function uS() {
19242
19249
  return aS;
19243
19250
  }
19244
- const jp = 1024;
19251
+ const Wp = 1024;
19245
19252
  let cS = 0;
19246
19253
  class Fa {
19247
19254
  constructor(e, t) {
@@ -19641,7 +19648,7 @@ class Bn {
19641
19648
  */
19642
19649
  findChild(e, t, n, r, o) {
19643
19650
  let { buffer: s } = this, l = -1;
19644
- for (let a = e; a != t && !(Wp(o, r, s[a + 1], s[a + 2]) && (l = a, n > 0)); a = s[a + 3])
19651
+ for (let a = e; a != t && !(Qp(o, r, s[a + 1], s[a + 2]) && (l = a, n > 0)); a = s[a + 3])
19645
19652
  ;
19646
19653
  return l;
19647
19654
  }
@@ -19658,7 +19665,7 @@ class Bn {
19658
19665
  return new Bn(o, s, this.set);
19659
19666
  }
19660
19667
  }
19661
- function Wp(i, e, t, n) {
19668
+ function Qp(i, e, t, n) {
19662
19669
  switch (i) {
19663
19670
  case -2:
19664
19671
  return t < e;
@@ -19692,7 +19699,7 @@ function qo(i, e, t, n) {
19692
19699
  i = s;
19693
19700
  }
19694
19701
  }
19695
- class Qp {
19702
+ class Kp {
19696
19703
  cursor(e = 0) {
19697
19704
  return new Uu(this, e);
19698
19705
  }
@@ -19729,7 +19736,7 @@ class Qp {
19729
19736
  return this.parent;
19730
19737
  }
19731
19738
  }
19732
- class wi extends Qp {
19739
+ class wi extends Kp {
19733
19740
  constructor(e, t, n, r) {
19734
19741
  super(), this._tree = e, this.from = t, this.index = n, this._parent = r;
19735
19742
  }
@@ -19746,7 +19753,7 @@ class wi extends Qp {
19746
19753
  for (let s = this; ; ) {
19747
19754
  for (let { children: l, positions: a } = s._tree, u = t > 0 ? l.length : -1; e != u; e += t) {
19748
19755
  let c = l[e], h = a[e] + s.from;
19749
- if (Wp(r, n, h, h + c.length)) {
19756
+ if (Qp(r, n, h, h + c.length)) {
19750
19757
  if (c instanceof Bn) {
19751
19758
  if (o & Ot.ExcludeBuffers)
19752
19759
  continue;
@@ -19885,7 +19892,7 @@ class fS {
19885
19892
  this.parent = e, this.buffer = t, this.index = n, this.start = r;
19886
19893
  }
19887
19894
  }
19888
- class Mn extends Qp {
19895
+ class Mn extends Kp {
19889
19896
  get name() {
19890
19897
  return this.type.name;
19891
19898
  }
@@ -19985,7 +19992,7 @@ class Mn extends Qp {
19985
19992
  return this.context.buffer.childString(this.index);
19986
19993
  }
19987
19994
  }
19988
- function Kp(i) {
19995
+ function Up(i) {
19989
19996
  if (!i.length)
19990
19997
  return null;
19991
19998
  let e = 0, t = i[0];
@@ -20001,7 +20008,7 @@ class dS {
20001
20008
  this.heads = e, this.node = t;
20002
20009
  }
20003
20010
  get next() {
20004
- return Kp(this.heads);
20011
+ return Up(this.heads);
20005
20012
  }
20006
20013
  }
20007
20014
  function mS(i, e, t) {
@@ -20017,7 +20024,7 @@ function mS(i, e, t) {
20017
20024
  (r || (r = [n])).push(qo(l, e, t, !1));
20018
20025
  }
20019
20026
  }
20020
- return r ? Kp(r) : n;
20027
+ return r ? Up(r) : n;
20021
20028
  }
20022
20029
  class Uu {
20023
20030
  /**
@@ -20322,7 +20329,7 @@ function zc(i) {
20322
20329
  }
20323
20330
  function gS(i) {
20324
20331
  var e;
20325
- let { buffer: t, nodeSet: n, maxBufferLength: r = jp, reused: o = [], minRepeatType: s = n.types.length } = i, l = Array.isArray(t) ? new Hc(t, t.length) : t, a = n.types, u = 0, c = 0;
20332
+ let { buffer: t, nodeSet: n, maxBufferLength: r = Wp, reused: o = [], minRepeatType: s = n.types.length } = i, l = Array.isArray(t) ? new Hc(t, t.length) : t, a = n.types, u = 0, c = 0;
20326
20333
  function h(S, R, C, L, K, _) {
20327
20334
  let { id: O, start: P, end: T, size: B } = l, I = c, Q = u;
20328
20335
  if (B < 0)
@@ -20569,7 +20576,7 @@ class tr {
20569
20576
  return r;
20570
20577
  }
20571
20578
  }
20572
- class Up {
20579
+ class Yp {
20573
20580
  /**
20574
20581
  Start a parse, returning a [partial parse](#common.PartialParse)
20575
20582
  object. [`fragments`](#common.TreeFragment) can be passed in to
@@ -20686,7 +20693,7 @@ function xS(i) {
20686
20693
  e.push(e[n].concat(i[t]));
20687
20694
  return e.sort((t, n) => n.length - t.length);
20688
20695
  }
20689
- function Yp(i) {
20696
+ function Gp(i) {
20690
20697
  let e = /* @__PURE__ */ Object.create(null);
20691
20698
  for (let t in i) {
20692
20699
  let n = i[t];
@@ -20720,9 +20727,9 @@ function Yp(i) {
20720
20727
  e[u] = c.sort(e[u]);
20721
20728
  }
20722
20729
  }
20723
- return Gp.add(e);
20730
+ return $p.add(e);
20724
20731
  }
20725
- const Gp = new qe({
20732
+ const $p = new qe({
20726
20733
  combine(i, e) {
20727
20734
  let t, n, r;
20728
20735
  for (; i || e; ) {
@@ -20752,7 +20759,7 @@ class Bo {
20752
20759
  }
20753
20760
  }
20754
20761
  Bo.empty = new Bo([], 2, null);
20755
- function $p(i, e) {
20762
+ function Jp(i, e) {
20756
20763
  let t = /* @__PURE__ */ Object.create(null);
20757
20764
  for (let o of i)
20758
20765
  if (!Array.isArray(o.tag))
@@ -20834,7 +20841,7 @@ class SS {
20834
20841
  }
20835
20842
  }
20836
20843
  function CS(i) {
20837
- let e = i.type.prop(Gp);
20844
+ let e = i.type.prop($p);
20838
20845
  for (; e && e.context && !i.matchContext(e.context); )
20839
20846
  e = e.next;
20840
20847
  return e || null;
@@ -21209,7 +21216,7 @@ for (let i in N) {
21209
21216
  let e = N[i];
21210
21217
  e instanceof yi && (e.name = i);
21211
21218
  }
21212
- $p([
21219
+ Jp([
21213
21220
  { tag: N.link, class: "tok-link" },
21214
21221
  { tag: N.heading, class: "tok-heading" },
21215
21222
  { tag: N.emphasis, class: "tok-emphasis" },
@@ -21506,7 +21513,7 @@ class vl {
21506
21513
  promise resolves.
21507
21514
  */
21508
21515
  static getSkippingParser(e) {
21509
- return new class extends Up {
21516
+ return new class extends Yp {
21510
21517
  createParse(t, n, r) {
21511
21518
  let o = r[0].from, s = r[r.length - 1].to;
21512
21519
  return {
@@ -21570,7 +21577,7 @@ Oi.state = /* @__PURE__ */ Mt.define({
21570
21577
  return e.startState.facet(_n) != e.state.facet(_n) ? Hr.init(e.state) : i.apply(e);
21571
21578
  }
21572
21579
  });
21573
- let Jp = (i) => {
21580
+ let Xp = (i) => {
21574
21581
  let e = setTimeout(
21575
21582
  () => i(),
21576
21583
  500
@@ -21578,7 +21585,7 @@ let Jp = (i) => {
21578
21585
  );
21579
21586
  return () => clearTimeout(e);
21580
21587
  };
21581
- typeof requestIdleCallback < "u" && (Jp = (i) => {
21588
+ typeof requestIdleCallback < "u" && (Xp = (i) => {
21582
21589
  let e = -1, t = setTimeout(
21583
21590
  () => {
21584
21591
  e = requestIdleCallback(i, {
@@ -21603,7 +21610,7 @@ const za = typeof navigator < "u" && (!((Ha = navigator.scheduling) === null ||
21603
21610
  if (this.working)
21604
21611
  return;
21605
21612
  let { state: e } = this.view, t = e.field(Oi.state);
21606
- (t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = Jp(this.work));
21613
+ (t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = Xp(this.work));
21607
21614
  }
21608
21615
  work(e) {
21609
21616
  this.working = null;
@@ -21752,7 +21759,7 @@ class Yl {
21752
21759
  return this.options.simulateBreak || null;
21753
21760
  }
21754
21761
  }
21755
- const Xp = /* @__PURE__ */ new qe();
21762
+ const Zp = /* @__PURE__ */ new qe();
21756
21763
  function qS(i, e, t) {
21757
21764
  let n = e.resolveStack(t), r = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
21758
21765
  if (r != n.node) {
@@ -21762,9 +21769,9 @@ function qS(i, e, t) {
21762
21769
  for (let s = o.length - 1; s >= 0; s--)
21763
21770
  n = { node: o[s], next: n };
21764
21771
  }
21765
- return Zp(n, i, t);
21772
+ return ev(n, i, t);
21766
21773
  }
21767
- function Zp(i, e, t) {
21774
+ function ev(i, e, t) {
21768
21775
  for (let n = i; n; n = n.next) {
21769
21776
  let r = _S(n.node);
21770
21777
  if (r)
@@ -21776,7 +21783,7 @@ function BS(i) {
21776
21783
  return i.pos == i.options.simulateBreak && i.options.simulateDoubleBreak;
21777
21784
  }
21778
21785
  function _S(i) {
21779
- let e = i.type.prop(Xp);
21786
+ let e = i.type.prop(Zp);
21780
21787
  if (e)
21781
21788
  return e;
21782
21789
  let t = i.firstChild, n;
@@ -21844,7 +21851,7 @@ class Qc extends Yl {
21844
21851
  and return the result of that.
21845
21852
  */
21846
21853
  continue() {
21847
- return Zp(this.context.next, this.base, this.pos);
21854
+ return ev(this.context.next, this.base, this.pos);
21848
21855
  }
21849
21856
  }
21850
21857
  function ES(i, e) {
@@ -21910,7 +21917,7 @@ function FS() {
21910
21917
  return a.length ? [i, { changes: a, sequential: !0 }] : i;
21911
21918
  });
21912
21919
  }
21913
- const NS = /* @__PURE__ */ de.define(), ev = /* @__PURE__ */ new qe();
21920
+ const NS = /* @__PURE__ */ de.define(), tv = /* @__PURE__ */ new qe();
21914
21921
  function HS(i) {
21915
21922
  let e = i.firstChild, t = i.lastChild;
21916
21923
  return e && e.to < t.from ? { from: e.to, to: t.type.isError ? i.to : t.from } : null;
@@ -21926,7 +21933,7 @@ function zS(i, e, t) {
21926
21933
  continue;
21927
21934
  if (o && l.from < e)
21928
21935
  break;
21929
- let a = l.type.prop(ev);
21936
+ let a = l.type.prop(tv);
21930
21937
  if (a && (l.to < n.length - 50 || n.length == i.doc.length || !jS(l))) {
21931
21938
  let u = a(l, i);
21932
21939
  u && u.from <= t && u.from >= e && u.to > t && (o = u);
@@ -21946,12 +21953,12 @@ function bl(i, e, t) {
21946
21953
  }
21947
21954
  return zS(i, e, t);
21948
21955
  }
21949
- function tv(i, e) {
21956
+ function iv(i, e) {
21950
21957
  let t = e.mapPos(i.from, 1), n = e.mapPos(i.to, -1);
21951
21958
  return t >= n ? void 0 : { from: t, to: n };
21952
21959
  }
21953
- const Gl = /* @__PURE__ */ Me.define({ map: tv }), Go = /* @__PURE__ */ Me.define({ map: tv });
21954
- function iv(i) {
21960
+ const Gl = /* @__PURE__ */ Me.define({ map: iv }), Go = /* @__PURE__ */ Me.define({ map: iv });
21961
+ function nv(i) {
21955
21962
  let e = [];
21956
21963
  for (let { head: t } of i.state.selection.ranges)
21957
21964
  e.some((n) => n.from <= t && n.to >= t) || e.push(i.lineBlockAt(t));
@@ -21965,7 +21972,7 @@ const lr = /* @__PURE__ */ Mt.define({
21965
21972
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, n) => i = yd(i, t, n)), i = i.map(e.changes);
21966
21973
  for (let t of e.effects)
21967
21974
  if (t.is(Gl) && !WS(i, t.value.from, t.value.to)) {
21968
- let { preparePlaceholder: n } = e.state.facet(ov), r = n ? xe.replace({ widget: new JS(n(e.state, t.value)) }) : bd;
21975
+ let { preparePlaceholder: n } = e.state.facet(sv), r = n ? xe.replace({ widget: new JS(n(e.state, t.value)) }) : bd;
21969
21976
  i = i.update({ add: [r.range(t.value.from, t.value.to)] });
21970
21977
  } else t.is(Go) && (i = i.update({
21971
21978
  filter: (n, r) => t.value.from != n || t.value.to != r,
@@ -22017,27 +22024,27 @@ function WS(i, e, t) {
22017
22024
  r == e && o == t && (n = !0);
22018
22025
  }), n;
22019
22026
  }
22020
- function nv(i, e) {
22021
- return i.field(lr, !1) ? e : e.concat(Me.appendConfig.of(sv()));
22027
+ function rv(i, e) {
22028
+ return i.field(lr, !1) ? e : e.concat(Me.appendConfig.of(lv()));
22022
22029
  }
22023
22030
  const QS = (i) => {
22024
- for (let e of iv(i)) {
22031
+ for (let e of nv(i)) {
22025
22032
  let t = bl(i.state, e.from, e.to);
22026
22033
  if (t)
22027
- return i.dispatch({ effects: nv(i.state, [Gl.of(t), rv(i, t)]) }), !0;
22034
+ return i.dispatch({ effects: rv(i.state, [Gl.of(t), ov(i, t)]) }), !0;
22028
22035
  }
22029
22036
  return !1;
22030
22037
  }, KS = (i) => {
22031
22038
  if (!i.state.field(lr, !1))
22032
22039
  return !1;
22033
22040
  let e = [];
22034
- for (let t of iv(i)) {
22041
+ for (let t of nv(i)) {
22035
22042
  let n = xl(i.state, t.from, t.to);
22036
- n && e.push(Go.of(n), rv(i, n, !1));
22043
+ n && e.push(Go.of(n), ov(i, n, !1));
22037
22044
  }
22038
22045
  return e.length && i.dispatch({ effects: e }), e.length > 0;
22039
22046
  };
22040
- function rv(i, e, t = !0) {
22047
+ function ov(i, e, t = !0) {
22041
22048
  let n = i.state.doc.lineAt(e.from).number, r = i.state.doc.lineAt(e.to).number;
22042
22049
  return le.announce.of(`${i.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${n} ${i.state.phrase("to")} ${r}.`);
22043
22050
  }
@@ -22047,7 +22054,7 @@ const US = (i) => {
22047
22054
  let r = i.lineBlockAt(n), o = bl(e, r.from, r.to);
22048
22055
  o && t.push(Gl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22049
22056
  }
22050
- return t.length && i.dispatch({ effects: nv(i.state, t) }), !!t.length;
22057
+ return t.length && i.dispatch({ effects: rv(i.state, t) }), !!t.length;
22051
22058
  }, YS = (i) => {
22052
22059
  let e = i.state.field(lr, !1);
22053
22060
  if (!e || !e.size)
@@ -22065,16 +22072,16 @@ const US = (i) => {
22065
22072
  placeholderDOM: null,
22066
22073
  preparePlaceholder: null,
22067
22074
  placeholderText: "…"
22068
- }, ov = /* @__PURE__ */ de.define({
22075
+ }, sv = /* @__PURE__ */ de.define({
22069
22076
  combine(i) {
22070
22077
  return Pi(i, $S);
22071
22078
  }
22072
22079
  });
22073
- function sv(i) {
22080
+ function lv(i) {
22074
22081
  return [lr, eC];
22075
22082
  }
22076
- function lv(i, e) {
22077
- let { state: t } = i, n = t.facet(ov), r = (s) => {
22083
+ function av(i, e) {
22084
+ let { state: t } = i, n = t.facet(sv), r = (s) => {
22078
22085
  let l = i.lineBlockAt(i.posAtDOM(s.target)), a = xl(i.state, l.from, l.to);
22079
22086
  a && i.dispatch({ effects: Go.of(a) }), s.preventDefault();
22080
22087
  };
@@ -22085,7 +22092,7 @@ function lv(i, e) {
22085
22092
  }
22086
22093
  const bd = /* @__PURE__ */ xe.replace({ widget: /* @__PURE__ */ new class extends fn {
22087
22094
  toDOM(i) {
22088
- return lv(i, null);
22095
+ return av(i, null);
22089
22096
  }
22090
22097
  }() });
22091
22098
  class JS extends fn {
@@ -22096,7 +22103,7 @@ class JS extends fn {
22096
22103
  return this.value == e.value;
22097
22104
  }
22098
22105
  toDOM(e) {
22099
- return lv(e, this.value);
22106
+ return av(e, this.value);
22100
22107
  }
22101
22108
  }
22102
22109
  const XS = {
@@ -22139,7 +22146,7 @@ function ZS(i = {}) {
22139
22146
  }), { domEventHandlers: o } = e;
22140
22147
  return [
22141
22148
  r,
22142
- Fp({
22149
+ Np({
22143
22150
  class: "cm-foldGutter",
22144
22151
  markers(s) {
22145
22152
  var l;
@@ -22161,7 +22168,7 @@ function ZS(i = {}) {
22161
22168
  }
22162
22169
  }
22163
22170
  }),
22164
- sv()
22171
+ lv()
22165
22172
  ];
22166
22173
  }
22167
22174
  const eC = /* @__PURE__ */ le.baseTheme({
@@ -22188,7 +22195,7 @@ class $o {
22188
22195
  return (n || (n = /* @__PURE__ */ Object.create(null)))["." + a] = l, a;
22189
22196
  }
22190
22197
  const o = typeof t.all == "string" ? t.all : t.all ? r(t.all) : void 0, s = t.scope;
22191
- this.scope = s instanceof Oi ? (l) => l.prop(wr) == s.data : s ? (l) => l == s : void 0, this.style = $p(e.map((l) => ({
22198
+ this.scope = s instanceof Oi ? (l) => l.prop(wr) == s.data : s ? (l) => l == s : void 0, this.style = Jp(e.map((l) => ({
22192
22199
  tag: l.tag,
22193
22200
  class: l.class || r(Object.assign({}, l, { tag: null }))
22194
22201
  })), {
@@ -22214,18 +22221,18 @@ class $o {
22214
22221
  return new $o(e, t || {});
22215
22222
  }
22216
22223
  }
22217
- const Gu = /* @__PURE__ */ de.define(), av = /* @__PURE__ */ de.define({
22224
+ const Gu = /* @__PURE__ */ de.define(), uv = /* @__PURE__ */ de.define({
22218
22225
  combine(i) {
22219
22226
  return i.length ? [i[0]] : null;
22220
22227
  }
22221
22228
  });
22222
22229
  function Wa(i) {
22223
22230
  let e = i.facet(Gu);
22224
- return e.length ? e : i.facet(av);
22231
+ return e.length ? e : i.facet(uv);
22225
22232
  }
22226
- function uv(i, e) {
22233
+ function cv(i, e) {
22227
22234
  let t = [iC], n;
22228
- 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(Gu.computeN([le.darkTheme], (r) => r.facet(le.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Gu.of(i)), t;
22235
+ return i instanceof $o && (i.module && t.push(le.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(uv.of(i)) : n ? t.push(Gu.computeN([le.darkTheme], (r) => r.facet(le.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Gu.of(i)), t;
22229
22236
  }
22230
22237
  class tC {
22231
22238
  constructor(e) {
@@ -22329,12 +22336,12 @@ const iC = /* @__PURE__ */ ur.high(/* @__PURE__ */ ft.fromClass(tC, {
22329
22336
  ]), rC = /* @__PURE__ */ le.baseTheme({
22330
22337
  "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
22331
22338
  "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
22332
- }), cv = 1e4, hv = "()[]{}", fv = /* @__PURE__ */ de.define({
22339
+ }), hv = 1e4, fv = "()[]{}", dv = /* @__PURE__ */ de.define({
22333
22340
  combine(i) {
22334
22341
  return Pi(i, {
22335
22342
  afterCursor: !0,
22336
- brackets: hv,
22337
- maxScanDistance: cv,
22343
+ brackets: fv,
22344
+ maxScanDistance: hv,
22338
22345
  renderMatch: lC
22339
22346
  });
22340
22347
  }
@@ -22350,7 +22357,7 @@ const aC = /* @__PURE__ */ Mt.define({
22350
22357
  update(i, e) {
22351
22358
  if (!e.docChanged && !e.selection)
22352
22359
  return i;
22353
- let t = [], n = e.state.facet(fv);
22360
+ let t = [], n = e.state.facet(dv);
22354
22361
  for (let r of e.state.selection.ranges) {
22355
22362
  if (!r.empty)
22356
22363
  continue;
@@ -22365,7 +22372,7 @@ const aC = /* @__PURE__ */ Mt.define({
22365
22372
  rC
22366
22373
  ];
22367
22374
  function cC(i = {}) {
22368
- return [fv.of(i), uC];
22375
+ return [dv.of(i), uC];
22369
22376
  }
22370
22377
  const hC = /* @__PURE__ */ new qe();
22371
22378
  function $u(i, e, t) {
@@ -22384,7 +22391,7 @@ function Ju(i) {
22384
22391
  return e ? e(i.node) : i;
22385
22392
  }
22386
22393
  function zi(i, e, t, n = {}) {
22387
- let r = n.maxScanDistance || cv, o = n.brackets || hv, s = Wt(i), l = s.resolveInner(e, t);
22394
+ let r = n.maxScanDistance || hv, o = n.brackets || fv, s = Wt(i), l = s.resolveInner(e, t);
22388
22395
  for (let a = l; a; a = a.parent) {
22389
22396
  let u = $u(a.type, t, o);
22390
22397
  if (u && a.from < a.to) {
@@ -22482,7 +22489,7 @@ function pC(i, e) {
22482
22489
  let s = wd[r] = li.define({
22483
22490
  id: xd.length,
22484
22491
  name: n,
22485
- props: [Yp({ [n]: t })]
22492
+ props: [Gp({ [n]: t })]
22486
22493
  });
22487
22494
  return xd.push(s), s.id;
22488
22495
  }
@@ -22504,11 +22511,11 @@ const yC = /* @__PURE__ */ Kc(
22504
22511
  0
22505
22512
  /* CommentOption.Toggle */
22506
22513
  ), bC = /* @__PURE__ */ Kc(
22507
- dv,
22514
+ mv,
22508
22515
  0
22509
22516
  /* CommentOption.Toggle */
22510
22517
  ), xC = /* @__PURE__ */ Kc(
22511
- (i, e) => dv(i, e, wC(e)),
22518
+ (i, e) => mv(i, e, wC(e)),
22512
22519
  0
22513
22520
  /* CommentOption.Toggle */
22514
22521
  );
@@ -22548,7 +22555,7 @@ function wC(i) {
22548
22555
  }
22549
22556
  return e;
22550
22557
  }
22551
- function dv(i, e, t = e.selection.ranges) {
22558
+ function mv(i, e, t = e.selection.ranges) {
22552
22559
  let n = t.map((o) => Uc(e, o.from).block);
22553
22560
  if (!n.every((o) => o))
22554
22561
  return null;
@@ -22603,7 +22610,7 @@ function SC(i, e, t = e.selection.ranges) {
22603
22610
  }
22604
22611
  return null;
22605
22612
  }
22606
- const Xu = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ hn.define(), MC = /* @__PURE__ */ de.define(), mv = /* @__PURE__ */ de.define({
22613
+ const Xu = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ hn.define(), MC = /* @__PURE__ */ de.define(), gv = /* @__PURE__ */ de.define({
22607
22614
  combine(i) {
22608
22615
  return Pi(i, {
22609
22616
  minDepth: 100,
@@ -22615,15 +22622,15 @@ const Xu = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ hn.define(), MC = /
22615
22622
  joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
22616
22623
  });
22617
22624
  }
22618
- }), gv = /* @__PURE__ */ Mt.define({
22625
+ }), pv = /* @__PURE__ */ Mt.define({
22619
22626
  create() {
22620
22627
  return ji.empty;
22621
22628
  },
22622
22629
  update(i, e) {
22623
- let t = e.state.facet(mv), n = e.annotation(Xu);
22630
+ let t = e.state.facet(gv), n = e.annotation(Xu);
22624
22631
  if (n) {
22625
22632
  let a = si.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
22626
- return a ? c = kl(c, c.length, t.minDepth, a) : c = yv(c, e.startState.selection), new ji(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
22633
+ return a ? c = kl(c, c.length, t.minDepth, a) : c = bv(c, e.startState.selection), new ji(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
22627
22634
  }
22628
22635
  let r = e.annotation(CC);
22629
22636
  if ((r == "full" || r == "before") && (i = i.isolate()), e.annotation(Ct.addToHistory) === !1)
@@ -22640,11 +22647,11 @@ const Xu = /* @__PURE__ */ hn.define(), CC = /* @__PURE__ */ hn.define(), MC = /
22640
22647
  });
22641
22648
  function AC(i = {}) {
22642
22649
  return [
22643
- gv,
22644
- mv.of(i),
22650
+ pv,
22651
+ gv.of(i),
22645
22652
  le.domEventHandlers({
22646
22653
  beforeinput(e, t) {
22647
- let n = e.inputType == "historyUndo" ? pv : e.inputType == "historyRedo" ? Zu : null;
22654
+ let n = e.inputType == "historyUndo" ? vv : e.inputType == "historyRedo" ? Zu : null;
22648
22655
  return n ? (e.preventDefault(), n(t)) : !1;
22649
22656
  }
22650
22657
  })
@@ -22654,14 +22661,14 @@ function $l(i, e) {
22654
22661
  return function({ state: t, dispatch: n }) {
22655
22662
  if (!e && t.readOnly)
22656
22663
  return !1;
22657
- let r = t.field(gv, !1);
22664
+ let r = t.field(pv, !1);
22658
22665
  if (!r)
22659
22666
  return !1;
22660
22667
  let o = r.pop(i, t, e);
22661
22668
  return o ? (n(o), !0) : !1;
22662
22669
  };
22663
22670
  }
22664
- const pv = /* @__PURE__ */ $l(0, !1), Zu = /* @__PURE__ */ $l(1, !1), OC = /* @__PURE__ */ $l(0, !0), TC = /* @__PURE__ */ $l(1, !0);
22671
+ const vv = /* @__PURE__ */ $l(0, !1), Zu = /* @__PURE__ */ $l(1, !1), OC = /* @__PURE__ */ $l(0, !0), TC = /* @__PURE__ */ $l(1, !0);
22665
22672
  class si {
22666
22673
  constructor(e, t, n, r, o) {
22667
22674
  this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = o;
@@ -22712,11 +22719,11 @@ function DC(i, e) {
22712
22719
  function PC(i, e) {
22713
22720
  return i.ranges.length == e.ranges.length && i.ranges.filter((t, n) => t.empty != e.ranges[n].empty).length === 0;
22714
22721
  }
22715
- function vv(i, e) {
22722
+ function yv(i, e) {
22716
22723
  return i.length ? e.length ? i.concat(e) : i : e;
22717
22724
  }
22718
22725
  const bi = [], qC = 200;
22719
- function yv(i, e) {
22726
+ function bv(i, e) {
22720
22727
  if (i.length) {
22721
22728
  let t = i[i.length - 1], n = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - qC));
22722
22729
  return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), kl(i, i.length - 1, 1e9, t.setSelAfter(n)));
@@ -22742,7 +22749,7 @@ function Ka(i, e) {
22742
22749
  return n.length ? [si.selection(n)] : bi;
22743
22750
  }
22744
22751
  function _C(i, e, t) {
22745
- let n = vv(i.selectionsAfter.length ? i.selectionsAfter.map((l) => l.map(e)) : bi, t);
22752
+ let n = yv(i.selectionsAfter.length ? i.selectionsAfter.map((l) => l.map(e)) : bi, t);
22746
22753
  if (!i.changes)
22747
22754
  return si.selection(n);
22748
22755
  let r = i.changes.map(e), o = e.mapDesc(i.changes, !0), s = i.mapped ? i.mapped.composeDesc(o) : o;
@@ -22759,11 +22766,11 @@ class ji {
22759
22766
  addChanges(e, t, n, r, o) {
22760
22767
  let s = this.done, l = s[s.length - 1];
22761
22768
  return l && l.changes && !l.changes.empty && e.changes && (!n || RC.test(n)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(o, DC(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
22762
- n == "input.type.compose") ? s = kl(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, bi)) : s = kl(s, s.length, r.minDepth, e), new ji(s, bi, t, n);
22769
+ n == "input.type.compose") ? s = kl(s, s.length - 1, r.minDepth, new si(e.changes.compose(l.changes), yv(Me.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, bi)) : s = kl(s, s.length, r.minDepth, e), new ji(s, bi, t, n);
22763
22770
  }
22764
22771
  addSelection(e, t, n, r) {
22765
22772
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : bi;
22766
- return o.length > 0 && t - this.prevTime < r && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && PC(o[o.length - 1], e) ? this : new ji(yv(this.done, e), this.undone, t, n);
22773
+ return o.length > 0 && t - this.prevTime < r && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && PC(o[o.length - 1], e) ? this : new ji(bv(this.done, e), this.undone, t, n);
22767
22774
  }
22768
22775
  addMapping(e) {
22769
22776
  return new ji(Ka(this.done, e), Ka(this.undone, e), this.prevTime, this.prevUserEvent);
@@ -22797,7 +22804,7 @@ class ji {
22797
22804
  }
22798
22805
  ji.empty = /* @__PURE__ */ new ji(bi, bi);
22799
22806
  const EC = [
22800
- { key: "Mod-z", run: pv, preventDefault: !0 },
22807
+ { key: "Mod-z", run: vv, preventDefault: !0 },
22801
22808
  { key: "Mod-y", mac: "Mod-Shift-z", run: Zu, preventDefault: !0 },
22802
22809
  { linux: "Ctrl-Shift-z", run: Zu, preventDefault: !0 },
22803
22810
  { key: "Mod-u", run: OC, preventDefault: !0 },
@@ -22816,17 +22823,17 @@ function Bi({ state: i, dispatch: e }, t) {
22816
22823
  function Jl(i, e) {
22817
22824
  return W.cursor(e ? i.to : i.from);
22818
22825
  }
22819
- function bv(i, e) {
22826
+ function xv(i, e) {
22820
22827
  return Bi(i, (t) => t.empty ? i.moveByChar(t, e) : Jl(t, e));
22821
22828
  }
22822
22829
  function Qt(i) {
22823
22830
  return i.textDirectionAt(i.state.selection.main.head) == ot.LTR;
22824
22831
  }
22825
- const xv = (i) => bv(i, !Qt(i)), kv = (i) => bv(i, Qt(i));
22826
- function wv(i, e) {
22832
+ const kv = (i) => xv(i, !Qt(i)), wv = (i) => xv(i, Qt(i));
22833
+ function Sv(i, e) {
22827
22834
  return Bi(i, (t) => t.empty ? i.moveByGroup(t, e) : Jl(t, e));
22828
22835
  }
22829
- const LC = (i) => wv(i, !Qt(i)), IC = (i) => wv(i, Qt(i));
22836
+ const LC = (i) => Sv(i, !Qt(i)), IC = (i) => Sv(i, Qt(i));
22830
22837
  function VC(i, e, t) {
22831
22838
  if (e.type.prop(t))
22832
22839
  return !0;
@@ -22845,7 +22852,7 @@ function Xl(i, e, t) {
22845
22852
  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, W.cursor(l, t ? -1 : 1);
22846
22853
  }
22847
22854
  const FC = (i) => Bi(i, (e) => Xl(i.state, e, !Qt(i))), NC = (i) => Bi(i, (e) => Xl(i.state, e, Qt(i)));
22848
- function Sv(i, e) {
22855
+ function Cv(i, e) {
22849
22856
  return Bi(i, (t) => {
22850
22857
  if (!t.empty)
22851
22858
  return Jl(t, e);
@@ -22853,8 +22860,8 @@ function Sv(i, e) {
22853
22860
  return n.head != t.head ? n : i.moveToLineBoundary(t, e);
22854
22861
  });
22855
22862
  }
22856
- const Cv = (i) => Sv(i, !1), Mv = (i) => Sv(i, !0);
22857
- function Av(i) {
22863
+ const Mv = (i) => Cv(i, !1), Av = (i) => Cv(i, !0);
22864
+ function Ov(i) {
22858
22865
  let e = i.scrollDOM.clientHeight < i.scrollDOM.scrollHeight - 2, t = 0, n = 0, r;
22859
22866
  if (e) {
22860
22867
  for (let o of i.state.facet(le.scrollMargins)) {
@@ -22871,8 +22878,8 @@ function Av(i) {
22871
22878
  height: Math.max(i.defaultLineHeight, r - 5)
22872
22879
  };
22873
22880
  }
22874
- function Ov(i, e) {
22875
- let t = Av(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : Jl(s, e));
22881
+ function Tv(i, e) {
22882
+ let t = Ov(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : Jl(s, e));
22876
22883
  if (r.eq(n.selection))
22877
22884
  return !1;
22878
22885
  let o;
@@ -22882,7 +22889,7 @@ function Ov(i, e) {
22882
22889
  }
22883
22890
  return i.dispatch(qi(n, r), { effects: o }), !0;
22884
22891
  }
22885
- const Sd = (i) => Ov(i, !1), ec = (i) => Ov(i, !0);
22892
+ const Sd = (i) => Tv(i, !1), ec = (i) => Tv(i, !0);
22886
22893
  function En(i, e, t) {
22887
22894
  let n = i.lineBlockAt(e.head), r = i.moveToLineBoundary(e, t);
22888
22895
  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) {
@@ -22911,22 +22918,22 @@ function Mi(i, e) {
22911
22918
  });
22912
22919
  return t.eq(i.state.selection) ? !1 : (i.dispatch(qi(i.state, t)), !0);
22913
22920
  }
22914
- function Tv(i, e) {
22921
+ function Dv(i, e) {
22915
22922
  return Mi(i, (t) => i.moveByChar(t, e));
22916
22923
  }
22917
- const Dv = (i) => Tv(i, !Qt(i)), Pv = (i) => Tv(i, Qt(i));
22918
- function qv(i, e) {
22924
+ const Pv = (i) => Dv(i, !Qt(i)), qv = (i) => Dv(i, Qt(i));
22925
+ function Bv(i, e) {
22919
22926
  return Mi(i, (t) => i.moveByGroup(t, e));
22920
22927
  }
22921
- const GC = (i) => qv(i, !Qt(i)), $C = (i) => qv(i, Qt(i)), JC = (i) => Mi(i, (e) => Xl(i.state, e, !Qt(i))), XC = (i) => Mi(i, (e) => Xl(i.state, e, Qt(i)));
22922
- function Bv(i, e) {
22928
+ const GC = (i) => Bv(i, !Qt(i)), $C = (i) => Bv(i, Qt(i)), JC = (i) => Mi(i, (e) => Xl(i.state, e, !Qt(i))), XC = (i) => Mi(i, (e) => Xl(i.state, e, Qt(i)));
22929
+ function _v(i, e) {
22923
22930
  return Mi(i, (t) => i.moveVertically(t, e));
22924
22931
  }
22925
- const _v = (i) => Bv(i, !1), Rv = (i) => Bv(i, !0);
22926
- function Ev(i, e) {
22927
- return Mi(i, (t) => i.moveVertically(t, e, Av(i).height));
22932
+ const Rv = (i) => _v(i, !1), Ev = (i) => _v(i, !0);
22933
+ function Lv(i, e) {
22934
+ return Mi(i, (t) => i.moveVertically(t, e, Ov(i).height));
22928
22935
  }
22929
- const Cd = (i) => Ev(i, !1), Md = (i) => Ev(i, !0), ZC = (i) => Mi(i, (e) => En(i, e, !0)), eM = (i) => Mi(i, (e) => En(i, e, !1)), tM = (i) => Mi(i, (e) => En(i, e, !Qt(i))), iM = (i) => Mi(i, (e) => En(i, e, Qt(i))), nM = (i) => Mi(i, (e) => W.cursor(i.lineBlockAt(e.head).from)), rM = (i) => Mi(i, (e) => W.cursor(i.lineBlockAt(e.head).to)), Ad = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: 0 })), !0), Od = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.doc.length })), !0), Td = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: 0 })), !0), Dd = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: i.doc.length })), !0), oM = ({ state: i, dispatch: e }) => (e(i.update({ selection: { anchor: 0, head: i.doc.length }, userEvent: "select" })), !0), sM = ({ state: i, dispatch: e }) => {
22936
+ const Cd = (i) => Lv(i, !1), Md = (i) => Lv(i, !0), ZC = (i) => Mi(i, (e) => En(i, e, !0)), eM = (i) => Mi(i, (e) => En(i, e, !1)), tM = (i) => Mi(i, (e) => En(i, e, !Qt(i))), iM = (i) => Mi(i, (e) => En(i, e, Qt(i))), nM = (i) => Mi(i, (e) => W.cursor(i.lineBlockAt(e.head).from)), rM = (i) => Mi(i, (e) => W.cursor(i.lineBlockAt(e.head).to)), Ad = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: 0 })), !0), Od = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.doc.length })), !0), Td = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: 0 })), !0), Dd = ({ state: i, dispatch: e }) => (e(qi(i, { anchor: i.selection.main.anchor, head: i.doc.length })), !0), oM = ({ state: i, dispatch: e }) => (e(i.update({ selection: { anchor: 0, head: i.doc.length }, userEvent: "select" })), !0), sM = ({ state: i, dispatch: e }) => {
22930
22937
  let t = Zl(i).map(({ from: n, to: r }) => W.range(n, Math.min(r + 1, i.doc.length)));
22931
22938
  return e(i.update({ selection: W.create(t), userEvent: "select" })), !0;
22932
22939
  }, lM = ({ state: i, dispatch: e }) => {
@@ -22945,7 +22952,7 @@ const Cd = (i) => Ev(i, !1), Md = (i) => Ev(i, !0), ZC = (i) => Mi(i, (e) => En(
22945
22952
  });
22946
22953
  return t.eq(i.selection) ? !1 : (e(qi(i, t)), !0);
22947
22954
  };
22948
- function Lv(i, e) {
22955
+ function Iv(i, e) {
22949
22956
  let { state: t } = i, n = t.selection, r = t.selection.ranges.slice();
22950
22957
  for (let o of t.selection.ranges) {
22951
22958
  let s = t.doc.lineAt(o.head);
@@ -22964,7 +22971,7 @@ function Lv(i, e) {
22964
22971
  }
22965
22972
  return r.length == n.ranges.length ? !1 : (i.dispatch(qi(t, W.create(r, r.length - 1))), !0);
22966
22973
  }
22967
- const aM = (i) => Lv(i, !1), uM = (i) => Lv(i, !0), cM = ({ state: i, dispatch: e }) => {
22974
+ const aM = (i) => Iv(i, !1), uM = (i) => Iv(i, !0), cM = ({ state: i, dispatch: e }) => {
22968
22975
  let t = i.selection, n = null;
22969
22976
  return t.ranges.length > 1 ? n = W.create([t.main]) : t.main.empty || (n = W.create([W.cursor(t.main.head)])), n ? (e(qi(i, n)), !0) : !1;
22970
22977
  };
@@ -22994,7 +23001,7 @@ function Os(i, e, t) {
22994
23001
  });
22995
23002
  return e;
22996
23003
  }
22997
- const Iv = (i, e, t) => Jo(i, (n) => {
23004
+ const Vv = (i, e, t) => Jo(i, (n) => {
22998
23005
  let r = n.from, { state: o } = i, s = o.doc.lineAt(r), l, a;
22999
23006
  if (t && !e && r > s.from && r < s.from + 200 && !/[^ \t]/.test(l = s.text.slice(0, r - s.from))) {
23000
23007
  if (l[l.length - 1] == " ")
@@ -23006,7 +23013,7 @@ const Iv = (i, e, t) => Jo(i, (n) => {
23006
23013
  } else
23007
23014
  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);
23008
23015
  return a;
23009
- }), tc = (i) => Iv(i, !1, !0), Vv = (i) => Iv(i, !0, !1), Fv = (i, e) => Jo(i, (t) => {
23016
+ }), tc = (i) => Vv(i, !1, !0), Fv = (i) => Vv(i, !0, !1), Nv = (i, e) => Jo(i, (t) => {
23010
23017
  let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
23011
23018
  for (let l = null; ; ) {
23012
23019
  if (n == (e ? o.to : o.from)) {
@@ -23019,7 +23026,7 @@ const Iv = (i, e, t) => Jo(i, (n) => {
23019
23026
  (u != " " || n != t.head) && (l = c), n = a;
23020
23027
  }
23021
23028
  return n;
23022
- }), Nv = (i) => Fv(i, !1), hM = (i) => Fv(i, !0), fM = (i) => Jo(i, (e) => {
23029
+ }), Hv = (i) => Nv(i, !1), hM = (i) => Nv(i, !0), fM = (i) => Jo(i, (e) => {
23023
23030
  let t = i.lineBlockAt(e.head).to;
23024
23031
  return e.head < t ? t : Math.min(i.state.doc.length, e.head + 1);
23025
23032
  }), dM = (i) => Jo(i, (e) => {
@@ -23063,7 +23070,7 @@ function Zl(i) {
23063
23070
  }
23064
23071
  return e;
23065
23072
  }
23066
- function Hv(i, e, t) {
23073
+ function zv(i, e, t) {
23067
23074
  if (i.readOnly)
23068
23075
  return !1;
23069
23076
  let n = [], r = [];
@@ -23088,8 +23095,8 @@ function Hv(i, e, t) {
23088
23095
  userEvent: "move.line"
23089
23096
  })), !0) : !1;
23090
23097
  }
23091
- const vM = ({ state: i, dispatch: e }) => Hv(i, e, !1), yM = ({ state: i, dispatch: e }) => Hv(i, e, !0);
23092
- function zv(i, e, t) {
23098
+ const vM = ({ state: i, dispatch: e }) => zv(i, e, !1), yM = ({ state: i, dispatch: e }) => zv(i, e, !0);
23099
+ function jv(i, e, t) {
23093
23100
  if (i.readOnly)
23094
23101
  return !1;
23095
23102
  let n = [];
@@ -23097,7 +23104,7 @@ function zv(i, e, t) {
23097
23104
  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) });
23098
23105
  return e(i.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
23099
23106
  }
23100
- const bM = ({ state: i, dispatch: e }) => zv(i, e, !1), xM = ({ state: i, dispatch: e }) => zv(i, e, !0), kM = (i) => {
23107
+ const bM = ({ state: i, dispatch: e }) => jv(i, e, !1), xM = ({ state: i, dispatch: e }) => jv(i, e, !0), kM = (i) => {
23101
23108
  if (i.state.readOnly)
23102
23109
  return !1;
23103
23110
  let { state: e } = i, t = e.changes(Zl(e).map(({ from: r, to: o }) => (r > 0 ? r-- : o < e.doc.length && o++, { from: r, to: o }))), n = Kr(e.selection, (r) => {
@@ -23116,8 +23123,8 @@ function wM(i, e) {
23116
23123
  let t = Wt(i).resolveInner(e), n = t.childBefore(e), r = t.childAfter(e), o;
23117
23124
  return n && r && n.to <= e && r.from >= e && (o = n.type.prop(qe.closedBy)) && o.indexOf(r.name) > -1 && i.doc.lineAt(n.to).from == i.doc.lineAt(r.from).from && !/\S/.test(i.sliceDoc(n.to, r.from)) ? { from: n.to, to: r.from } : null;
23118
23125
  }
23119
- const Pd = /* @__PURE__ */ jv(!1), SM = /* @__PURE__ */ jv(!0);
23120
- function jv(i) {
23126
+ const Pd = /* @__PURE__ */ Wv(!1), SM = /* @__PURE__ */ Wv(!0);
23127
+ function Wv(i) {
23121
23128
  return ({ state: e, dispatch: t }) => {
23122
23129
  if (e.readOnly)
23123
23130
  return !1;
@@ -23167,9 +23174,9 @@ const CM = ({ state: i, dispatch: e }) => {
23167
23174
  (u != c || l.from < o.from + u.length) && (t[o.from] = a, s.push({ from: o.from, to: o.from + u.length, insert: c }));
23168
23175
  });
23169
23176
  return r.changes.empty || e(i.update(r, { userEvent: "indent" })), !0;
23170
- }, Wv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Yc(i, (t, n) => {
23177
+ }, Qv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Yc(i, (t, n) => {
23171
23178
  n.push({ from: t.from, insert: i.facet(Ul) });
23172
- }), { userEvent: "input.indent" })), !0), Qv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Yc(i, (t, n) => {
23179
+ }), { userEvent: "input.indent" })), !0), Kv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Yc(i, (t, n) => {
23173
23180
  let r = /^\s*/.exec(t.text)[0];
23174
23181
  if (!r)
23175
23182
  return;
@@ -23178,30 +23185,30 @@ const CM = ({ state: i, dispatch: e }) => {
23178
23185
  s++;
23179
23186
  n.push({ from: t.from + s, to: t.from + r.length, insert: l.slice(s) });
23180
23187
  }), { userEvent: "delete.dedent" })), !0), MM = (i) => (i.setTabFocusMode(), !0), AM = [
23181
- { key: "Ctrl-b", run: xv, shift: Dv, preventDefault: !0 },
23182
- { key: "Ctrl-f", run: kv, shift: Pv },
23183
- { key: "Ctrl-p", run: Cv, shift: _v },
23184
- { key: "Ctrl-n", run: Mv, shift: Rv },
23188
+ { key: "Ctrl-b", run: kv, shift: Pv, preventDefault: !0 },
23189
+ { key: "Ctrl-f", run: wv, shift: qv },
23190
+ { key: "Ctrl-p", run: Mv, shift: Rv },
23191
+ { key: "Ctrl-n", run: Av, shift: Ev },
23185
23192
  { key: "Ctrl-a", run: QC, shift: nM },
23186
23193
  { key: "Ctrl-e", run: KC, shift: rM },
23187
- { key: "Ctrl-d", run: Vv },
23194
+ { key: "Ctrl-d", run: Fv },
23188
23195
  { key: "Ctrl-h", run: tc },
23189
23196
  { key: "Ctrl-k", run: fM },
23190
- { key: "Ctrl-Alt-h", run: Nv },
23197
+ { key: "Ctrl-Alt-h", run: Hv },
23191
23198
  { key: "Ctrl-o", run: gM },
23192
23199
  { key: "Ctrl-t", run: pM },
23193
23200
  { key: "Ctrl-v", run: ec }
23194
23201
  ], OM = /* @__PURE__ */ [
23195
- { key: "ArrowLeft", run: xv, shift: Dv, preventDefault: !0 },
23202
+ { key: "ArrowLeft", run: kv, shift: Pv, preventDefault: !0 },
23196
23203
  { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: LC, shift: GC, preventDefault: !0 },
23197
23204
  { mac: "Cmd-ArrowLeft", run: jC, shift: tM, preventDefault: !0 },
23198
- { key: "ArrowRight", run: kv, shift: Pv, preventDefault: !0 },
23205
+ { key: "ArrowRight", run: wv, shift: qv, preventDefault: !0 },
23199
23206
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: IC, shift: $C, preventDefault: !0 },
23200
23207
  { mac: "Cmd-ArrowRight", run: WC, shift: iM, preventDefault: !0 },
23201
- { key: "ArrowUp", run: Cv, shift: _v, preventDefault: !0 },
23208
+ { key: "ArrowUp", run: Mv, shift: Rv, preventDefault: !0 },
23202
23209
  { mac: "Cmd-ArrowUp", run: Ad, shift: Td },
23203
23210
  { mac: "Ctrl-ArrowUp", run: Sd, shift: Cd },
23204
- { key: "ArrowDown", run: Mv, shift: Rv, preventDefault: !0 },
23211
+ { key: "ArrowDown", run: Av, shift: Ev, preventDefault: !0 },
23205
23212
  { mac: "Cmd-ArrowDown", run: Od, shift: Dd },
23206
23213
  { mac: "Ctrl-ArrowDown", run: ec, shift: Md },
23207
23214
  { key: "PageUp", run: Sd, shift: Cd },
@@ -23213,8 +23220,8 @@ const CM = ({ state: i, dispatch: e }) => {
23213
23220
  { key: "Enter", run: Pd, shift: Pd },
23214
23221
  { key: "Mod-a", run: oM },
23215
23222
  { key: "Backspace", run: tc, shift: tc, preventDefault: !0 },
23216
- { key: "Delete", run: Vv, preventDefault: !0 },
23217
- { key: "Mod-Backspace", mac: "Alt-Backspace", run: Nv, preventDefault: !0 },
23223
+ { key: "Delete", run: Fv, preventDefault: !0 },
23224
+ { key: "Mod-Backspace", mac: "Alt-Backspace", run: Hv, preventDefault: !0 },
23218
23225
  { key: "Mod-Delete", mac: "Alt-Delete", run: hM, preventDefault: !0 },
23219
23226
  { mac: "Mod-Backspace", run: dM, preventDefault: !0 },
23220
23227
  { mac: "Mod-Delete", run: mM, preventDefault: !0 }
@@ -23231,15 +23238,15 @@ const CM = ({ state: i, dispatch: e }) => {
23231
23238
  { key: "Mod-Enter", run: SM },
23232
23239
  { key: "Alt-l", mac: "Ctrl-l", run: sM },
23233
23240
  { key: "Mod-i", run: lM, preventDefault: !0 },
23234
- { key: "Mod-[", run: Qv },
23235
- { key: "Mod-]", run: Wv },
23241
+ { key: "Mod-[", run: Kv },
23242
+ { key: "Mod-]", run: Qv },
23236
23243
  { key: "Mod-Alt-\\", run: CM },
23237
23244
  { key: "Shift-Mod-k", run: kM },
23238
23245
  { key: "Shift-Mod-\\", run: YC },
23239
23246
  { key: "Mod-/", run: vC },
23240
23247
  { key: "Alt-A", run: bC },
23241
23248
  { key: "Ctrl-m", mac: "Shift-Alt-m", run: MM }
23242
- ].concat(OM), DM = { key: "Tab", run: Wv, shift: Qv }, qd = typeof String.prototype.normalize == "function" ? (i) => i.normalize("NFKD") : (i) => i;
23249
+ ].concat(OM), DM = { key: "Tab", run: Qv, shift: Kv }, qd = typeof String.prototype.normalize == "function" ? (i) => i.normalize("NFKD") : (i) => i;
23243
23250
  class zr {
23244
23251
  /**
23245
23252
  Create a text cursor. The query is the search string, `from` to
@@ -23313,16 +23320,16 @@ class zr {
23313
23320
  typeof Symbol < "u" && (zr.prototype[Symbol.iterator] = function() {
23314
23321
  return this;
23315
23322
  });
23316
- const Kv = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, Gc = "gm" + (/x/.unicode == null ? "" : "u");
23317
- class Uv {
23323
+ const Uv = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, Gc = "gm" + (/x/.unicode == null ? "" : "u");
23324
+ class Yv {
23318
23325
  /**
23319
23326
  Create a cursor that will search the given range in the given
23320
23327
  document. `query` should be the raw pattern (as you'd pass it to
23321
23328
  `new RegExp`).
23322
23329
  */
23323
23330
  constructor(e, t, n, r = 0, o = e.length) {
23324
- if (this.text = e, this.to = o, this.curLine = "", this.done = !1, this.value = Kv, /\\[sWDnr]|\n|\r|\[\^/.test(t))
23325
- return new Yv(e, t, n, r, o);
23331
+ if (this.text = e, this.to = o, this.curLine = "", this.done = !1, this.value = Uv, /\\[sWDnr]|\n|\r|\[\^/.test(t))
23332
+ return new Gv(e, t, n, r, o);
23326
23333
  this.re = new RegExp(t, Gc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter();
23327
23334
  let s = e.lineAt(r);
23328
23335
  this.curLineStart = s.from, this.matchPos = wl(e, r), this.getLine(this.curLineStart);
@@ -23372,9 +23379,9 @@ class Pr {
23372
23379
  return s > t && (o = e.sliceString(t, s) + o, s = t), r.to < n && (o += e.sliceString(r.to, n)), Ua.set(e, new Pr(s, o)), new Pr(t, o.slice(t - s, n - s));
23373
23380
  }
23374
23381
  }
23375
- class Yv {
23382
+ class Gv {
23376
23383
  constructor(e, t, n, r, o) {
23377
- this.text = e, this.to = o, this.done = !1, this.value = Kv, this.matchPos = wl(e, r), this.re = new RegExp(t, Gc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Pr.get(e, r, this.chunkEnd(
23384
+ this.text = e, this.to = o, this.done = !1, this.value = Uv, this.matchPos = wl(e, r), this.re = new RegExp(t, Gc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Pr.get(e, r, this.chunkEnd(
23378
23385
  r + 5e3
23379
23386
  /* Chunk.Base */
23380
23387
  ));
@@ -23396,7 +23403,7 @@ class Yv {
23396
23403
  }
23397
23404
  }
23398
23405
  }
23399
- typeof Symbol < "u" && (Uv.prototype[Symbol.iterator] = Yv.prototype[Symbol.iterator] = function() {
23406
+ typeof Symbol < "u" && (Yv.prototype[Symbol.iterator] = Gv.prototype[Symbol.iterator] = function() {
23400
23407
  return this;
23401
23408
  });
23402
23409
  function PM(i) {
@@ -23597,7 +23604,7 @@ const jM = ({ state: i, dispatch: e }) => {
23597
23604
  });
23598
23605
  }
23599
23606
  });
23600
- class Gv {
23607
+ class $v {
23601
23608
  /**
23602
23609
  Create a query object.
23603
23610
  */
@@ -23632,7 +23639,7 @@ class Gv {
23632
23639
  return n == null && (n = r.doc.length), this.regexp ? yr(this, r, t, n) : vr(this, r, t, n);
23633
23640
  }
23634
23641
  }
23635
- class $v {
23642
+ class Jv {
23636
23643
  constructor(e) {
23637
23644
  this.spec = e;
23638
23645
  }
@@ -23643,7 +23650,7 @@ function vr(i, e, t, n) {
23643
23650
  function WM(i, e) {
23644
23651
  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(Sl(r, t - o)) != st.Word || e(Cl(r, t - o)) != st.Word) && (e(Cl(r, n - o)) != st.Word || e(Sl(r, n - o)) != st.Word));
23645
23652
  }
23646
- class QM extends $v {
23653
+ class QM extends Jv {
23647
23654
  constructor(e) {
23648
23655
  super(e);
23649
23656
  }
@@ -23692,7 +23699,7 @@ class QM extends $v {
23692
23699
  }
23693
23700
  }
23694
23701
  function yr(i, e, t, n) {
23695
- return new Uv(e.doc, i.search, {
23702
+ return new Yv(e.doc, i.search, {
23696
23703
  ignoreCase: !i.caseSensitive,
23697
23704
  test: i.wholeWord ? KM(e.charCategorizer(e.selection.main.head)) : void 0
23698
23705
  }, t, n);
@@ -23706,7 +23713,7 @@ function Cl(i, e) {
23706
23713
  function KM(i) {
23707
23714
  return (e, t, n) => !n[0].length || (i(Sl(n.input, n.index)) != st.Word || i(Cl(n.input, n.index)) != st.Word) && (i(Cl(n.input, n.index + n[0].length)) != st.Word || i(Sl(n.input, n.index + n[0].length)) != st.Word);
23708
23715
  }
23709
- class UM extends $v {
23716
+ class UM extends Jv {
23710
23717
  nextMatch(e, t, n) {
23711
23718
  let r = yr(this.spec, e, n, e.doc.length).next();
23712
23719
  return r.done && (r = yr(this.spec, e, 0, t).next()), r.done ? null : r.value;
@@ -23807,7 +23814,7 @@ const YM = /* @__PURE__ */ xe.mark({ class: "cm-searchMatch" }), GM = /* @__PURE
23807
23814
  function Xo(i) {
23808
23815
  return (e) => {
23809
23816
  let t = e.state.field(Tn, !1);
23810
- return t && t.query.spec.valid ? i(e, t) : Zv(e);
23817
+ return t && t.query.spec.valid ? i(e, t) : e0(e);
23811
23818
  };
23812
23819
  }
23813
23820
  const Ml = /* @__PURE__ */ Xo((i, { query: e }) => {
@@ -23819,7 +23826,7 @@ const Ml = /* @__PURE__ */ Xo((i, { query: e }) => {
23819
23826
  selection: r,
23820
23827
  effects: [Xc(i, n), o.scrollToMatch(r.main, i)],
23821
23828
  userEvent: "select.search"
23822
- }), Xv(i), !0;
23829
+ }), Zv(i), !0;
23823
23830
  }), Al = /* @__PURE__ */ Xo((i, { query: e }) => {
23824
23831
  let { state: t } = i, { from: n } = t.selection.main, r = e.prevMatch(t, n, n);
23825
23832
  if (!r)
@@ -23829,7 +23836,7 @@ const Ml = /* @__PURE__ */ Xo((i, { query: e }) => {
23829
23836
  selection: o,
23830
23837
  effects: [Xc(i, r), s.scrollToMatch(o.main, i)],
23831
23838
  userEvent: "select.search"
23832
- }), Xv(i), !0;
23839
+ }), Zv(i), !0;
23833
23840
  }), JM = /* @__PURE__ */ Xo((i, { query: e }) => {
23834
23841
  let t = e.matchAll(i.state, 1e3);
23835
23842
  return !t || !t.length ? !1 : (i.dispatch({
@@ -23891,7 +23898,7 @@ function nc(i, e) {
23891
23898
  if (e && !a)
23892
23899
  return e;
23893
23900
  let u = i.facet(Ur);
23894
- return new Gv({
23901
+ return new $v({
23895
23902
  search: ((t = e == null ? void 0 : e.literal) !== null && t !== void 0 ? t : u.literal) ? a : a.replace(/\n/g, "\\n"),
23896
23903
  caseSensitive: (n = e == null ? void 0 : e.caseSensitive) !== null && n !== void 0 ? n : u.caseSensitive,
23897
23904
  literal: (r = e == null ? void 0 : e.literal) !== null && r !== void 0 ? r : u.literal,
@@ -23899,18 +23906,18 @@ function nc(i, e) {
23899
23906
  wholeWord: (s = e == null ? void 0 : e.wholeWord) !== null && s !== void 0 ? s : u.wholeWord
23900
23907
  });
23901
23908
  }
23902
- function Jv(i) {
23909
+ function Xv(i) {
23903
23910
  let e = Do(i, Jc);
23904
23911
  return e && e.dom.querySelector("[main-field]");
23905
23912
  }
23906
- function Xv(i) {
23907
- let e = Jv(i);
23913
+ function Zv(i) {
23914
+ let e = Xv(i);
23908
23915
  e && e == i.root.activeElement && e.select();
23909
23916
  }
23910
- const Zv = (i) => {
23917
+ const e0 = (i) => {
23911
23918
  let e = i.state.field(Tn, !1);
23912
23919
  if (e && e.panel) {
23913
- let t = Jv(i);
23920
+ let t = Xv(i);
23914
23921
  if (t && t != i.root.activeElement) {
23915
23922
  let n = nc(i.state, e.query.spec);
23916
23923
  n.valid && i.dispatch({ effects: Ro.of(n) }), t.focus(), t.select();
@@ -23921,17 +23928,17 @@ const Zv = (i) => {
23921
23928
  e ? Ro.of(nc(i.state, e.query.spec)) : Me.appendConfig.of(nA)
23922
23929
  ] });
23923
23930
  return !0;
23924
- }, e0 = (i) => {
23931
+ }, t0 = (i) => {
23925
23932
  let e = i.state.field(Tn, !1);
23926
23933
  if (!e || !e.panel)
23927
23934
  return !1;
23928
23935
  let t = Do(i, Jc);
23929
23936
  return t && t.dom.contains(i.root.activeElement) && i.focus(), i.dispatch({ effects: $c.of(!1) }), !0;
23930
23937
  }, eA = [
23931
- { key: "Mod-f", run: Zv, scope: "editor search-panel" },
23938
+ { key: "Mod-f", run: e0, scope: "editor search-panel" },
23932
23939
  { key: "F3", run: Ml, shift: Al, scope: "editor search-panel", preventDefault: !0 },
23933
23940
  { key: "Mod-g", run: Ml, shift: Al, scope: "editor search-panel", preventDefault: !0 },
23934
- { key: "Escape", run: e0, scope: "editor search-panel" },
23941
+ { key: "Escape", run: t0, scope: "editor search-panel" },
23935
23942
  { key: "Mod-Shift-l", run: XM },
23936
23943
  { key: "Mod-Alt-g", run: qM },
23937
23944
  { key: "Mod-d", run: jM, preventDefault: !0 }
@@ -23997,14 +24004,14 @@ class tA {
23997
24004
  ],
23998
24005
  Ye("button", {
23999
24006
  name: "close",
24000
- onclick: () => e0(e),
24007
+ onclick: () => t0(e),
24001
24008
  "aria-label": ai(e, "close"),
24002
24009
  type: "button"
24003
24010
  }, ["×"])
24004
24011
  ]);
24005
24012
  }
24006
24013
  commit() {
24007
- let e = new Gv({
24014
+ let e = new $v({
24008
24015
  search: this.searchField.value,
24009
24016
  caseSensitive: this.caseField.checked,
24010
24017
  regexp: this.reField.checked,
@@ -24090,7 +24097,7 @@ const iA = /* @__PURE__ */ le.baseTheme({
24090
24097
  /* @__PURE__ */ ur.low($M),
24091
24098
  iA
24092
24099
  ];
24093
- class t0 {
24100
+ class i0 {
24094
24101
  /**
24095
24102
  Create a new completion context. (Mostly useful for testing
24096
24103
  completion sources—in the editor, the extension will create
@@ -24119,7 +24126,7 @@ class t0 {
24119
24126
  cursor.
24120
24127
  */
24121
24128
  matchBefore(e) {
24122
- let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), o = r.search(i0(e, !1));
24129
+ let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), o = r.search(n0(e, !1));
24123
24130
  return o < 0 ? null : { from: n + o, to: this.pos, text: r.slice(o) };
24124
24131
  }
24125
24132
  /**
@@ -24175,12 +24182,12 @@ class Ld {
24175
24182
  function ir(i) {
24176
24183
  return i.selection.main.from;
24177
24184
  }
24178
- function i0(i, e) {
24185
+ function n0(i, e) {
24179
24186
  var t;
24180
24187
  let { source: n } = i, r = e && n[0] != "^", o = n[n.length - 1] != "$";
24181
24188
  return !r && !o ? i : new RegExp(`${r ? "^" : ""}(?:${n})${o ? "$" : ""}`, (t = i.flags) !== null && t !== void 0 ? t : i.ignoreCase ? "i" : "");
24182
24189
  }
24183
- const n0 = /* @__PURE__ */ hn.define();
24190
+ const r0 = /* @__PURE__ */ hn.define();
24184
24191
  function sA(i, e, t, n) {
24185
24192
  let { main: r } = i.selection, o = t - r.from, s = n - r.from;
24186
24193
  return {
@@ -24623,7 +24630,7 @@ class Tl {
24623
24630
  /* State.Inactive */
24624
24631
  ) : a));
24625
24632
  for (let a of e.effects)
24626
- a.is(o0) && (s = s && s.setSelected(a.value, this.id));
24633
+ a.is(s0) && (s = s && s.setSelected(a.value, this.id));
24627
24634
  return o == this.active && s == this.open ? this : new Tl(o, this.id, s);
24628
24635
  }
24629
24636
  get tooltip() {
@@ -24660,9 +24667,9 @@ function Nd(i, e) {
24660
24667
  return e > -1 && (t["aria-activedescendant"] = i + "-" + e), t;
24661
24668
  }
24662
24669
  const bA = [];
24663
- function r0(i, e) {
24670
+ function o0(i, e) {
24664
24671
  if (i.isUserEvent("input.complete")) {
24665
- let n = i.annotation(n0);
24672
+ let n = i.annotation(r0);
24666
24673
  if (n && e.activateOnCompletion(n))
24667
24674
  return 12;
24668
24675
  }
@@ -24680,7 +24687,7 @@ class xi {
24680
24687
  return this.state == 1;
24681
24688
  }
24682
24689
  update(e, t) {
24683
- let n = r0(e, t), r = this;
24690
+ let n = o0(e, t), r = this;
24684
24691
  (n & 8 || n & 16 && this.touches(e)) && (r = new xi(
24685
24692
  r.source,
24686
24693
  0
@@ -24735,7 +24742,7 @@ class qr extends xi {
24735
24742
  /* State.Inactive */
24736
24743
  );
24737
24744
  let a = e.changes.mapPos(this.limit);
24738
- return xA(r.validFor, e.state, o, s) ? new qr(this.source, this.explicit, a, r, o, s) : r.update && (r = r.update(r, o, s, new t0(e.state, l, !1))) ? new qr(this.source, this.explicit, a, r, r.from, (n = r.to) !== null && n !== void 0 ? n : ir(e.state)) : new xi(this.source, 1, this.explicit);
24745
+ return xA(r.validFor, e.state, o, s) ? new qr(this.source, this.explicit, a, r, o, s) : r.update && (r = r.update(r, o, s, new i0(e.state, l, !1))) ? new qr(this.source, this.explicit, a, r, r.from, (n = r.to) !== null && n !== void 0 ? n : ir(e.state)) : new xi(this.source, 1, this.explicit);
24739
24746
  }
24740
24747
  map(e) {
24741
24748
  return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new qr(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new xi(
@@ -24752,13 +24759,13 @@ function xA(i, e, t, n) {
24752
24759
  if (!i)
24753
24760
  return !1;
24754
24761
  let r = e.sliceDoc(t, n);
24755
- return typeof i == "function" ? i(r, t, n, e) : i0(i, !0).test(r);
24762
+ return typeof i == "function" ? i(r, t, n, e) : n0(i, !0).test(r);
24756
24763
  }
24757
24764
  const Zc = /* @__PURE__ */ Me.define({
24758
24765
  map(i, e) {
24759
24766
  return i.map((t) => t.map(e));
24760
24767
  }
24761
- }), o0 = /* @__PURE__ */ Me.define(), oi = /* @__PURE__ */ Mt.define({
24768
+ }), s0 = /* @__PURE__ */ Me.define(), oi = /* @__PURE__ */ Mt.define({
24762
24769
  create() {
24763
24770
  return Tl.start();
24764
24771
  },
@@ -24775,7 +24782,7 @@ function eh(i, e) {
24775
24782
  let n = i.state.field(oi).active.find((r) => r.source == e.source);
24776
24783
  return n instanceof qr ? (typeof t == "string" ? i.dispatch({
24777
24784
  ...sA(i.state, t, n.from, n.to),
24778
- annotations: n0.of(e.completion)
24785
+ annotations: r0.of(e.completion)
24779
24786
  }) : t(i, e.completion, n.from, n.to), !0) : !1;
24780
24787
  }
24781
24788
  const kA = /* @__PURE__ */ dA(oi, eh);
@@ -24785,9 +24792,9 @@ function Ps(i, e = "option") {
24785
24792
  if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(Dt).interactionDelay)
24786
24793
  return !1;
24787
24794
  let r = 1, o;
24788
- e == "page" && (o = Ip(t, n.open.tooltip)) && (r = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
24795
+ e == "page" && (o = Vp(t, n.open.tooltip)) && (r = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
24789
24796
  let { length: s } = n.open.options, l = n.open.selected > -1 ? n.open.selected + r * (i ? 1 : -1) : i ? 0 : s - 1;
24790
- return l < 0 ? l = e == "page" ? 0 : s - 1 : l >= s && (l = e == "page" ? s - 1 : 0), t.dispatch({ effects: o0.of(l) }), !0;
24797
+ return l < 0 ? l = e == "page" ? 0 : s - 1 : l >= s && (l = e == "page" ? s - 1 : 0), t.dispatch({ effects: s0.of(l) }), !0;
24791
24798
  };
24792
24799
  }
24793
24800
  const wA = (i) => {
@@ -24816,7 +24823,7 @@ const MA = 50, AA = 1e3, OA = /* @__PURE__ */ ft.fromClass(class {
24816
24823
  if (!i.selectionSet && !i.docChanged && i.startState.field(oi) == e)
24817
24824
  return;
24818
24825
  let n = i.transactions.some((o) => {
24819
- let s = r0(o, t);
24826
+ let s = o0(o, t);
24820
24827
  return s & 8 || (o.selection || o.docChanged) && !(s & 3);
24821
24828
  });
24822
24829
  for (let o = 0; o < this.running.length; o++) {
@@ -24846,7 +24853,7 @@ const MA = 50, AA = 1e3, OA = /* @__PURE__ */ ft.fromClass(class {
24846
24853
  this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Dt).updateSyncTime));
24847
24854
  }
24848
24855
  startQuery(i) {
24849
- let { state: e } = this.view, t = ir(e), n = new t0(e, t, i.explicit, this.view), r = new CA(i, n);
24856
+ let { state: e } = this.view, t = ir(e), n = new i0(e, t, i.explicit, this.view), r = new CA(i, n);
24850
24857
  this.running.push(r), Promise.resolve(i.source(n)).then((o) => {
24851
24858
  r.context.aborted || (r.done = o || null, this.scheduleAccept());
24852
24859
  }, (o) => {
@@ -24896,7 +24903,7 @@ const MA = 50, AA = 1e3, OA = /* @__PURE__ */ ft.fromClass(class {
24896
24903
  blur(i) {
24897
24904
  let e = this.view.state.field(oi, !1);
24898
24905
  if (e && e.tooltip && this.view.state.facet(Dt).closeOnBlur) {
24899
- let t = e.open && Ip(this.view, e.open.tooltip);
24906
+ let t = e.open && Vp(this.view, e.open.tooltip);
24900
24907
  (!t || !t.dom.contains(i.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: Eo.of(null) }), 10);
24901
24908
  }
24902
24909
  },
@@ -25051,7 +25058,7 @@ const MA = 50, AA = 1e3, OA = /* @__PURE__ */ ft.fromClass(class {
25051
25058
  }();
25052
25059
  th.startSide = 1;
25053
25060
  th.endSide = -1;
25054
- const s0 = /* @__PURE__ */ Mt.define({
25061
+ const l0 = /* @__PURE__ */ Mt.define({
25055
25062
  create() {
25056
25063
  return Le.empty;
25057
25064
  },
@@ -25066,16 +25073,16 @@ const s0 = /* @__PURE__ */ Mt.define({
25066
25073
  }
25067
25074
  });
25068
25075
  function qA() {
25069
- return [_A, s0];
25076
+ return [_A, l0];
25070
25077
  }
25071
25078
  const Ja = "()[]{}<>«»»«[]{}";
25072
- function l0(i) {
25079
+ function a0(i) {
25073
25080
  for (let e = 0; e < Ja.length; e += 2)
25074
25081
  if (Ja.charCodeAt(e) == i)
25075
25082
  return Ja.charAt(e + 1);
25076
25083
  return Ac(i < 128 ? i : i + 1);
25077
25084
  }
25078
- function a0(i, e) {
25085
+ function u0(i, e) {
25079
25086
  return i.languageDataAt("closeBrackets", e)[0] || Lo;
25080
25087
  }
25081
25088
  const BA = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), _A = /* @__PURE__ */ le.inputHandler.of((i, e, t, n) => {
@@ -25089,11 +25096,11 @@ const BA = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25089
25096
  }), RA = ({ state: i, dispatch: e }) => {
25090
25097
  if (i.readOnly)
25091
25098
  return !1;
25092
- let n = a0(i, i.selection.main.head).brackets || Lo.brackets, r = null, o = i.changeByRange((s) => {
25099
+ let n = u0(i, i.selection.main.head).brackets || Lo.brackets, r = null, o = i.changeByRange((s) => {
25093
25100
  if (s.empty) {
25094
25101
  let l = IA(i.doc, s.head);
25095
25102
  for (let a of n)
25096
- if (a == l && ea(i.doc, s.head) == l0(ri(a, 0)))
25103
+ if (a == l && ea(i.doc, s.head) == a0(ri(a, 0)))
25097
25104
  return {
25098
25105
  changes: { from: s.head - a.length, to: s.head + a.length },
25099
25106
  range: W.cursor(s.head - a.length)
@@ -25106,19 +25113,19 @@ const BA = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25106
25113
  { key: "Backspace", run: RA }
25107
25114
  ];
25108
25115
  function LA(i, e) {
25109
- let t = a0(i, i.selection.main.head), n = t.brackets || Lo.brackets;
25116
+ let t = u0(i, i.selection.main.head), n = t.brackets || Lo.brackets;
25110
25117
  for (let r of n) {
25111
- let o = l0(ri(r, 0));
25118
+ let o = a0(ri(r, 0));
25112
25119
  if (e == r)
25113
25120
  return o == r ? NA(i, r, n.indexOf(r + r + r) > -1, t) : VA(i, r, o, t.before || Lo.before);
25114
- if (e == o && u0(i, i.selection.main.from))
25121
+ if (e == o && c0(i, i.selection.main.from))
25115
25122
  return FA(i, r, o);
25116
25123
  }
25117
25124
  return null;
25118
25125
  }
25119
- function u0(i, e) {
25126
+ function c0(i, e) {
25120
25127
  let t = !1;
25121
- return i.field(s0).between(0, i.doc.length, (n) => {
25128
+ return i.field(l0).between(0, i.doc.length, (n) => {
25122
25129
  n == e && (t = !0);
25123
25130
  }), t;
25124
25131
  }
@@ -25176,7 +25183,7 @@ function NA(i, e, t, n) {
25176
25183
  effects: $n.of(a + e.length),
25177
25184
  range: W.cursor(a + e.length)
25178
25185
  };
25179
- if (u0(i, a)) {
25186
+ if (c0(i, a)) {
25180
25187
  let f = t && i.sliceDoc(a, a + e.length * 3) == e + e + e ? e + e + e : e;
25181
25188
  return {
25182
25189
  changes: { from: a, to: a + f.length, insert: f },
@@ -25249,7 +25256,7 @@ function zA(i = {}) {
25249
25256
  PA
25250
25257
  ];
25251
25258
  }
25252
- const c0 = [
25259
+ const h0 = [
25253
25260
  { key: "Ctrl-Space", run: $a },
25254
25261
  { mac: "Alt-`", run: $a },
25255
25262
  { mac: "Alt-i", run: $a },
@@ -25259,7 +25266,7 @@ const c0 = [
25259
25266
  { key: "PageDown", run: /* @__PURE__ */ Ps(!0, "page") },
25260
25267
  { key: "PageUp", run: /* @__PURE__ */ Ps(!1, "page") },
25261
25268
  { key: "Enter", run: wA }
25262
- ], jA = /* @__PURE__ */ ur.highest(/* @__PURE__ */ Uo.computeN([Dt], (i) => i.facet(Dt).defaultKeymap ? [c0] : []));
25269
+ ], jA = /* @__PURE__ */ ur.highest(/* @__PURE__ */ Uo.computeN([Dt], (i) => i.facet(Dt).defaultKeymap ? [h0] : []));
25263
25270
  class jd {
25264
25271
  constructor(e, t, n) {
25265
25272
  this.from = e, this.to = t, this.diagnostic = n;
@@ -25309,7 +25316,7 @@ class Qn {
25309
25316
  x = c + u.value.length, c += u.value.length, u.next();
25310
25317
  }
25311
25318
  }
25312
- let k = v0(l);
25319
+ let k = y0(l);
25313
25320
  if (y)
25314
25321
  s.add(p, p, xe.widget({
25315
25322
  widget: new ZA(k),
@@ -25345,22 +25352,22 @@ function jr(i, e = null, t = 0) {
25345
25352
  }
25346
25353
  }), n;
25347
25354
  }
25348
- function h0(i, e) {
25355
+ function f0(i, e) {
25349
25356
  let t = e.pos, n = e.end || t, r = i.state.facet(Wi).hideOn(i, t, n);
25350
25357
  if (r != null)
25351
25358
  return r;
25352
25359
  let o = i.startState.doc.lineAt(e.pos);
25353
25360
  return !!(i.effects.some((s) => s.is(ta)) || i.changes.touchesRange(o.from, Math.max(o.to, n)));
25354
25361
  }
25355
- function f0(i, e) {
25356
- return i.field(mi, !1) ? e : e.concat(Me.appendConfig.of(x0));
25362
+ function d0(i, e) {
25363
+ return i.field(mi, !1) ? e : e.concat(Me.appendConfig.of(k0));
25357
25364
  }
25358
25365
  function WA(i, e) {
25359
25366
  return {
25360
- effects: f0(i, [ta.of(e)])
25367
+ effects: d0(i, [ta.of(e)])
25361
25368
  };
25362
25369
  }
25363
- const ta = /* @__PURE__ */ Me.define(), ih = /* @__PURE__ */ Me.define(), d0 = /* @__PURE__ */ Me.define(), mi = /* @__PURE__ */ Mt.define({
25370
+ const ta = /* @__PURE__ */ Me.define(), ih = /* @__PURE__ */ Me.define(), m0 = /* @__PURE__ */ Me.define(), mi = /* @__PURE__ */ Mt.define({
25364
25371
  create() {
25365
25372
  return new Qn(xe.none, null, null);
25366
25373
  },
@@ -25377,7 +25384,7 @@ const ta = /* @__PURE__ */ Me.define(), ih = /* @__PURE__ */ Me.define(), d0 = /
25377
25384
  if (t.is(ta)) {
25378
25385
  let n = e.state.facet(Wi).autoPanel ? t.value.length ? Io.open : null : i.panel;
25379
25386
  i = Qn.init(t.value, n, e.state);
25380
- } else t.is(ih) ? i = new Qn(i.diagnostics, t.value ? Io.open : null, i.selected) : t.is(d0) && (i = new Qn(i.diagnostics, i.panel, t.value));
25387
+ } else t.is(ih) ? i = new Qn(i.diagnostics, t.value ? Io.open : null, i.selected) : t.is(m0) && (i = new Qn(i.diagnostics, i.panel, t.value));
25381
25388
  return i;
25382
25389
  },
25383
25390
  provide: (i) => [
@@ -25397,16 +25404,16 @@ function KA(i, e, t) {
25397
25404
  end: s,
25398
25405
  above: i.state.doc.lineAt(o).to < s,
25399
25406
  create() {
25400
- return { dom: m0(i, r) };
25407
+ return { dom: g0(i, r) };
25401
25408
  }
25402
25409
  } : null;
25403
25410
  }
25404
- function m0(i, e) {
25405
- return Ye("ul", { class: "cm-tooltip-lint" }, e.map((t) => p0(i, t, !1)));
25411
+ function g0(i, e) {
25412
+ return Ye("ul", { class: "cm-tooltip-lint" }, e.map((t) => v0(i, t, !1)));
25406
25413
  }
25407
25414
  const UA = (i) => {
25408
25415
  let e = i.state.field(mi, !1);
25409
- (!e || !e.panel) && i.dispatch({ effects: f0(i.state, [ih.of(!0)]) });
25416
+ (!e || !e.panel) && i.dispatch({ effects: d0(i.state, [ih.of(!0)]) });
25410
25417
  let t = Do(i, Io.open);
25411
25418
  return t && t.dom.querySelector(".cm-panel-lint ul").focus(), !0;
25412
25419
  }, Wd = (i) => {
@@ -25488,10 +25495,10 @@ function XA(i, e = {}) {
25488
25495
  return [
25489
25496
  Wi.of({ source: i, config: e }),
25490
25497
  $A,
25491
- x0
25498
+ k0
25492
25499
  ];
25493
25500
  }
25494
- function g0(i) {
25501
+ function p0(i) {
25495
25502
  let e = [];
25496
25503
  if (i)
25497
25504
  e: for (let { name: t } of i) {
@@ -25506,9 +25513,9 @@ function g0(i) {
25506
25513
  }
25507
25514
  return e;
25508
25515
  }
25509
- function p0(i, e, t) {
25516
+ function v0(i, e, t) {
25510
25517
  var n;
25511
- let r = t ? g0(e.actions) : [];
25518
+ let r = t ? p0(e.actions) : [];
25512
25519
  return Ye("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, Ye("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(i) : e.message), (n = e.actions) === null || n === void 0 ? void 0 : n.map((o, s) => {
25513
25520
  let l = !1, a = (d) => {
25514
25521
  if (d.preventDefault(), l)
@@ -25543,7 +25550,7 @@ class ZA extends fn {
25543
25550
  }
25544
25551
  class Kd {
25545
25552
  constructor(e, t) {
25546
- this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = p0(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
25553
+ this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = v0(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
25547
25554
  }
25548
25555
  }
25549
25556
  class Io {
@@ -25563,7 +25570,7 @@ class Io {
25563
25570
  else if (r.keyCode == 13)
25564
25571
  this.view.focus();
25565
25572
  else if (r.keyCode >= 65 && r.keyCode <= 90 && this.selectedIndex >= 0) {
25566
- let { diagnostic: o } = this.items[this.selectedIndex], s = g0(o.actions);
25573
+ let { diagnostic: o } = this.items[this.selectedIndex], s = p0(o.actions);
25567
25574
  for (let l = 0; l < s.length; l++)
25568
25575
  if (s[l].toUpperCase().charCodeAt(0) == r.keyCode) {
25569
25576
  let a = jr(this.view.state.field(mi).diagnostics, o);
@@ -25652,7 +25659,7 @@ class Io {
25652
25659
  n && this.view.dispatch({
25653
25660
  selection: { anchor: n.from, head: n.to },
25654
25661
  scrollIntoView: !0,
25655
- effects: d0.of(n)
25662
+ effects: m0.of(n)
25656
25663
  });
25657
25664
  }
25658
25665
  static open(e) {
@@ -25759,7 +25766,7 @@ const eO = /* @__PURE__ */ le.baseTheme({
25759
25766
  function tO(i) {
25760
25767
  return i == "error" ? 4 : i == "warning" ? 3 : i == "info" ? 2 : 1;
25761
25768
  }
25762
- function v0(i) {
25769
+ function y0(i) {
25763
25770
  let e = "hint", t = 1;
25764
25771
  for (let n of i) {
25765
25772
  let r = tO(n.severity);
@@ -25767,9 +25774,9 @@ function v0(i) {
25767
25774
  }
25768
25775
  return e;
25769
25776
  }
25770
- class y0 extends Ui {
25777
+ class b0 extends Ui {
25771
25778
  constructor(e) {
25772
- super(), this.diagnostics = e, this.severity = v0(e);
25779
+ super(), this.diagnostics = e, this.severity = y0(e);
25773
25780
  }
25774
25781
  toDOM(e) {
25775
25782
  let t = document.createElement("div");
@@ -25785,7 +25792,7 @@ function iO(i, e) {
25785
25792
  for (let o = n.target; o; o = o.parentNode)
25786
25793
  if (o.nodeType == 1 && o.classList.contains("cm-tooltip-lint"))
25787
25794
  return;
25788
- window.removeEventListener("mousemove", t), i.state.field(b0) && i.dispatch({ effects: nh.of(null) });
25795
+ window.removeEventListener("mousemove", t), i.state.field(x0) && i.dispatch({ effects: nh.of(null) });
25789
25796
  }
25790
25797
  };
25791
25798
  window.addEventListener("mousemove", t);
@@ -25799,7 +25806,7 @@ function nO(i, e, t) {
25799
25806
  clip: !1,
25800
25807
  create() {
25801
25808
  return {
25802
- dom: m0(i, t),
25809
+ dom: g0(i, t),
25803
25810
  getCoords: () => e.getBoundingClientRect()
25804
25811
  };
25805
25812
  }
@@ -25820,17 +25827,17 @@ function rO(i, e) {
25820
25827
  }
25821
25828
  let n = [];
25822
25829
  for (let r in t)
25823
- n.push(new y0(t[r]).range(+r));
25830
+ n.push(new b0(t[r]).range(+r));
25824
25831
  return Le.of(n, !0);
25825
25832
  }
25826
- const oO = /* @__PURE__ */ Fp({
25833
+ const oO = /* @__PURE__ */ Np({
25827
25834
  class: "cm-gutter-lint",
25828
25835
  markers: (i) => i.state.field(rc),
25829
25836
  widgetMarker: (i, e, t) => {
25830
25837
  let n = [];
25831
25838
  return i.state.field(rc).between(t.from, t.to, (r, o, s) => {
25832
25839
  r > t.from && r < t.to && n.push(...s.diagnostics);
25833
- }), n.length ? new y0(n) : null;
25840
+ }), n.length ? new b0(n) : null;
25834
25841
  }
25835
25842
  }), rc = /* @__PURE__ */ Mt.define({
25836
25843
  create() {
@@ -25846,12 +25853,12 @@ const oO = /* @__PURE__ */ Fp({
25846
25853
  }
25847
25854
  return i;
25848
25855
  }
25849
- }), nh = /* @__PURE__ */ Me.define(), b0 = /* @__PURE__ */ Mt.define({
25856
+ }), nh = /* @__PURE__ */ Me.define(), x0 = /* @__PURE__ */ Mt.define({
25850
25857
  create() {
25851
25858
  return null;
25852
25859
  },
25853
25860
  update(i, e) {
25854
- return i && e.docChanged && (i = h0(e, i) ? null : { ...i, pos: e.changes.mapPos(i.pos) }), e.effects.reduce((t, n) => n.is(nh) ? n.value : t, i);
25861
+ return i && e.docChanged && (i = f0(e, i) ? null : { ...i, pos: e.changes.mapPos(i.pos) }), e.effects.reduce((t, n) => n.is(nh) ? n.value : t, i);
25855
25862
  },
25856
25863
  provide: (i) => Ql.from(i)
25857
25864
  }), sO = /* @__PURE__ */ le.baseTheme({
@@ -25874,7 +25881,7 @@ const oO = /* @__PURE__ */ Fp({
25874
25881
  ".cm-lint-marker-error": {
25875
25882
  content: /* @__PURE__ */ Ks('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')
25876
25883
  }
25877
- }), x0 = [
25884
+ }), k0 = [
25878
25885
  mi,
25879
25886
  /* @__PURE__ */ le.decorations.compute([mi], (i) => {
25880
25887
  let { selected: e, panel: t } = i.field(mi);
@@ -25882,7 +25889,7 @@ const oO = /* @__PURE__ */ Fp({
25882
25889
  QA.range(e.from, e.to)
25883
25890
  ]);
25884
25891
  }),
25885
- /* @__PURE__ */ Jw(KA, { hideOn: h0 }),
25892
+ /* @__PURE__ */ Jw(KA, { hideOn: f0 }),
25886
25893
  eO
25887
25894
  ], ia = /* @__PURE__ */ de.define({
25888
25895
  combine(i) {
@@ -25894,10 +25901,10 @@ const oO = /* @__PURE__ */ Fp({
25894
25901
  }
25895
25902
  });
25896
25903
  function lO(i = {}) {
25897
- return [ia.of(i), rc, oO, sO, b0];
25904
+ return [ia.of(i), rc, oO, sO, x0];
25898
25905
  }
25899
25906
  const aO = [
25900
- zp(),
25907
+ jp(),
25901
25908
  uS(),
25902
25909
  Aw(),
25903
25910
  AC(),
@@ -25906,7 +25913,7 @@ const aO = [
25906
25913
  xw(),
25907
25914
  Ee.allowMultipleSelections.of(!0),
25908
25915
  FS(),
25909
- uv(nC, { fallback: !0 }),
25916
+ cv(nC, { fallback: !0 }),
25910
25917
  cC(),
25911
25918
  qA(),
25912
25919
  zA(),
@@ -25920,7 +25927,7 @@ const aO = [
25920
25927
  ...eA,
25921
25928
  ...EC,
25922
25929
  ...GS,
25923
- ...c0,
25930
+ ...h0,
25924
25931
  ...GA
25925
25932
  ])
25926
25933
  ];
@@ -25970,9 +25977,9 @@ Kn[Gt.Change] = function(i, e) {
25970
25977
  }, Kn[Gt.Ready] = function(i) {
25971
25978
  return !0;
25972
25979
  };
25973
- var k0 = {};
25974
- k0[Gt.ModelUpdate] = Kn[Gt.Change];
25975
- var gO = Object.assign(Object.assign({}, Kn), k0), pO = Ft({ name: "VueCodemirror", props: Object.assign({}, mO), emits: Object.assign({}, gO), setup: function(i, e) {
25980
+ var w0 = {};
25981
+ w0[Gt.ModelUpdate] = Kn[Gt.Change];
25982
+ var gO = Object.assign(Object.assign({}, Kn), w0), pO = Ft({ name: "VueCodemirror", props: Object.assign({}, mO), emits: Object.assign({}, gO), setup: function(i, e) {
25976
25983
  var t = la(), n = la(), r = la(), o = Object.assign(Object.assign({}, uO), Fo(cO, {})), s = b(function() {
25977
25984
  var l = {};
25978
25985
  return Object.keys(zn(i)).forEach(function(a) {
@@ -27043,7 +27050,7 @@ class MO {
27043
27050
  return !this.disabled || this.disabled[e] == 0;
27044
27051
  }
27045
27052
  }
27046
- class ql extends Up {
27053
+ class ql extends Yp {
27047
27054
  /**
27048
27055
  @internal
27049
27056
  */
@@ -27083,7 +27090,7 @@ class ql extends Up {
27083
27090
  top: n.indexOf(a) > -1,
27084
27091
  error: a == 0,
27085
27092
  skipped: e.skippedNodes && e.skippedNodes.indexOf(a) > -1
27086
- }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = jp;
27093
+ }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = Wp;
27087
27094
  let s = _s(e.tokenData);
27088
27095
  this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
27089
27096
  for (let l = 0; l < this.specializerSpecs.length; l++)
@@ -27313,7 +27320,7 @@ function Zd(i) {
27313
27320
  }
27314
27321
  return i.get;
27315
27322
  }
27316
- const OO = Yp({
27323
+ const OO = Gp({
27317
27324
  String: N.string,
27318
27325
  Number: N.number,
27319
27326
  "True False": N.bool,
@@ -27365,11 +27372,11 @@ const qO = /* @__PURE__ */ pl.define({
27365
27372
  name: "json",
27366
27373
  parser: /* @__PURE__ */ TO.configure({
27367
27374
  props: [
27368
- /* @__PURE__ */ Xp.add({
27375
+ /* @__PURE__ */ Zp.add({
27369
27376
  Object: /* @__PURE__ */ vd({ except: /^\s*\}/ }),
27370
27377
  Array: /* @__PURE__ */ vd({ except: /^\s*\]/ })
27371
27378
  }),
27372
- /* @__PURE__ */ ev.add({
27379
+ /* @__PURE__ */ tv.add({
27373
27380
  "Object Array": HS
27374
27381
  })
27375
27382
  ]
@@ -27505,7 +27512,7 @@ const _O = "#e5c07b", em = "#e06c75", RO = "#56b6c2", EO = "#ffffff", Ys = "#abb
27505
27512
  tag: N.invalid,
27506
27513
  color: EO
27507
27514
  }
27508
- ]), jO = [HO, /* @__PURE__ */ uv(zO)], WO = /* @__PURE__ */ Ft({
27515
+ ]), jO = [HO, /* @__PURE__ */ cv(zO)], WO = /* @__PURE__ */ Ft({
27509
27516
  __name: "QuasarJsonField",
27510
27517
  props: {
27511
27518
  schema: { type: Object, required: !0 },
@@ -27621,7 +27628,7 @@ const _O = "#e5c07b", em = "#e06c75", RO = "#56b6c2", EO = "#ffffff", Ys = "#abb
27621
27628
  }
27622
27629
  ])
27623
27630
  ];
27624
- return v.value ? (console.log("[JSON Editor] Adding lineNumbers extension"), T.push(zp())) : (console.log("[JSON Editor] Hiding gutters and line numbers"), T.push(
27631
+ return v.value ? (console.log("[JSON Editor] Adding lineNumbers extension"), T.push(jp())) : (console.log("[JSON Editor] Hiding gutters and line numbers"), T.push(
27625
27632
  le.theme({
27626
27633
  ".cm-gutters": {
27627
27634
  display: "none !important"
@@ -27708,7 +27715,7 @@ function XO(i, e, t, n, r, o) {
27708
27715
  we(
27709
27716
  "div",
27710
27717
  {
27711
- class: U0(["quickform-json-editor-container", { "quickform-json-editor-dark": n.useDarkTheme }])
27718
+ class: vm(["quickform-json-editor-container", { "quickform-json-editor-dark": n.useDarkTheme }])
27712
27719
  },
27713
27720
  [
27714
27721
  (te(), on(n.Codemirror, {
@@ -27887,7 +27894,7 @@ function iT() {
27887
27894
  i.value = !0;
27888
27895
  }), { isHydrated: i };
27889
27896
  }
27890
- const w0 = typeof ResizeObserver < "u", sm = w0 === !0 ? {} : {
27897
+ const S0 = typeof ResizeObserver < "u", sm = S0 === !0 ? {} : {
27891
27898
  style: "display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",
27892
27899
  url: "about:blank"
27893
27900
  }, nT = $e({
@@ -27911,7 +27918,7 @@ const w0 = typeof ResizeObserver < "u", sm = w0 === !0 ? {} : {
27911
27918
  }
27912
27919
  }
27913
27920
  const { proxy: l } = ze();
27914
- if (l.trigger = o, w0 === !0) {
27921
+ if (l.trigger = o, S0 === !0) {
27915
27922
  let a;
27916
27923
  const u = (c) => {
27917
27924
  n = l.$el.parentNode, n ? (a = new ResizeObserver(o), a.observe(n), s()) : c !== !0 && rt(() => {
@@ -28206,7 +28213,7 @@ const oT = ["left", "center", "right", "justify"], sT = $e({
28206
28213
  avoidRouteWatcher: !1
28207
28214
  // false | string (uid)
28208
28215
  };
28209
- pm(Sm, gi);
28216
+ pm(Cm, gi);
28210
28217
  function _i() {
28211
28218
  R !== null && clearTimeout(R), ae(), L == null || L();
28212
28219
  }
@@ -28269,7 +28276,7 @@ const aT = ["click", "keydown"], uT = {
28269
28276
  }
28270
28277
  };
28271
28278
  function cT(i, e, t, n) {
28272
- const r = Fo(Sm, ha);
28279
+ const r = Fo(Cm, ha);
28273
28280
  if (r === ha)
28274
28281
  return console.error("QTab/QRouteTab component needs to be child of QTabs"), ha;
28275
28282
  const { proxy: o } = ze(), s = G(null), l = G(null), a = G(null), u = b(() => i.disable === !0 || i.ripple === !1 ? !1 : Object.assign(
@@ -28466,7 +28473,7 @@ const hT = $e({
28466
28473
  }, get QCard() {
28467
28474
  return Mc;
28468
28475
  }, get QCardSection() {
28469
- return fg;
28476
+ return dg;
28470
28477
  }, get QSelect() {
28471
28478
  return zl;
28472
28479
  }, get QTabs() {
@@ -28710,7 +28717,7 @@ function kT(i, e, t, n, r, o) {
28710
28717
  /* STYLE */
28711
28718
  );
28712
28719
  }
28713
- const wT = /* @__PURE__ */ ii(xT, [["render", kT], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarAllOfField.vue"]]), S0 = [
28720
+ const wT = /* @__PURE__ */ ii(xT, [["render", kT], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarAllOfField.vue"]]), C0 = [
28714
28721
  { value: "==", label: "equals", symbol: "=", shortLabel: "equals", icon: "drag_handle", searchTerms: ["==", "=", "eq", "equal"], rightRequired: !0, rightType: "text" },
28715
28722
  { value: "!=", label: "not equals", symbol: "≠", shortLabel: "not equals", icon: "not_equal", searchTerms: ["!=", "!", "neq", "not"], rightRequired: !0, rightType: "text" },
28716
28723
  { value: ">", label: "greater than", symbol: ">", shortLabel: "greater than", icon: "chevron_right", searchTerms: [">", "gt", "greater"], rightRequired: !0, rightType: "number" },
@@ -28728,7 +28735,7 @@ const wT = /* @__PURE__ */ ii(xT, [["render", kT], ["__file", "/Users/zachsherbo
28728
28735
  { value: "isNotEmpty", label: "is not empty", shortLabel: "is not empty", icon: "radio_button_checked", searchTerms: ["not empty", "filled", "exists"], rightRequired: !1 }
28729
28736
  ];
28730
28737
  function ST(i) {
28731
- return S0.find((e) => e.value === i);
28738
+ return C0.find((e) => e.value === i);
28732
28739
  }
28733
28740
  let CT = 0;
28734
28741
  function Vo() {
@@ -28938,7 +28945,7 @@ const PT = /* @__PURE__ */ Ft({
28938
28945
  fieldGap: c
28939
28946
  } = ti(t.path, t.schema, {
28940
28947
  label: t.label
28941
- }), h = Bm(), f = b(() => h == null ? void 0 : h.quickformsDefaults), d = b(() => {
28948
+ }), h = _m(), f = b(() => h == null ? void 0 : h.quickformsDefaults), d = b(() => {
28942
28949
  var D, H;
28943
28950
  const U = t.schema["x-use-template-syntax"], M = (H = (D = f.value) == null ? void 0 : D.jsonlogicbuilder) == null ? void 0 : H.useTemplateSyntax;
28944
28951
  return U ?? M ?? !1;
@@ -29020,7 +29027,7 @@ const PT = /* @__PURE__ */ Ft({
29020
29027
  const U = t.schema["x-allowed-operators"], M = (H = (D = f.value) == null ? void 0 : D.jsonlogicbuilder) == null ? void 0 : H.allowedOperators;
29021
29028
  return U || M || null;
29022
29029
  }), I = b(() => {
29023
- let U = S0;
29030
+ let U = C0;
29024
29031
  return B.value && (U = U.filter(
29025
29032
  (M) => B.value.includes(M.value)
29026
29033
  )), U.map((M) => {
@@ -29827,11 +29834,11 @@ function o2(i, e, t, n, r, o) {
29827
29834
  }
29828
29835
  const s2 = /* @__PURE__ */ ii(PT, [["render", o2], ["__scopeId", "data-v-722c2e28"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonLogicBuilderField.vue"]]);
29829
29836
  function m2() {
29830
- const i = new M0();
29837
+ const i = new A0();
29831
29838
  return i.register(
29832
29839
  "hidden",
29833
29840
  J0,
29834
- (e) => Ke(100, A0(e))
29841
+ (e) => Ke(100, O0(e))
29835
29842
  ), i.register(
29836
29843
  "string-override",
29837
29844
  wh,
@@ -29883,43 +29890,43 @@ function m2() {
29883
29890
  ), i.register(
29884
29891
  "string",
29885
29892
  wh,
29886
- (e) => Ke(1, O0(e))
29893
+ (e) => Ke(1, T0(e))
29887
29894
  ), i.register(
29888
29895
  "number",
29889
29896
  Sh,
29890
- (e) => Ke(1, T0(e))
29897
+ (e) => Ke(1, D0(e))
29891
29898
  ), i.register(
29892
29899
  "boolean",
29893
29900
  Ch,
29894
- (e) => Ke(1, D0(e))
29901
+ (e) => Ke(1, P0(e))
29895
29902
  ), i.register(
29896
29903
  "enum",
29897
29904
  Wh,
29898
- (e) => Ke(2, P0(e))
29905
+ (e) => Ke(2, q0(e))
29899
29906
  ), i.register(
29900
29907
  "date",
29901
29908
  Xh,
29902
- (e) => Ke(2, q0(e))
29909
+ (e) => Ke(2, B0(e))
29903
29910
  ), i.register(
29904
29911
  "time",
29905
29912
  tf,
29906
- (e) => Ke(2, B0(e))
29913
+ (e) => Ke(2, _0(e))
29907
29914
  ), i.register(
29908
29915
  "datetime",
29909
29916
  nf,
29910
- (e) => Ke(3, _0(e))
29917
+ (e) => Ke(3, R0(e))
29911
29918
  ), i.register(
29912
29919
  "keyvalue",
29913
29920
  sf,
29914
- (e) => Ke(6, R0(e))
29921
+ (e) => Ke(6, E0(e))
29915
29922
  ), i.register(
29916
29923
  "json",
29917
29924
  om,
29918
- (e) => Ke(5, E0(e))
29925
+ (e) => Ke(5, L0(e))
29919
29926
  ), i.register(
29920
29927
  "object",
29921
29928
  rf,
29922
- (e) => Ke(1, L0(e))
29929
+ (e) => Ke(1, I0(e))
29923
29930
  ), i.register("multiEnum", tT, (e) => {
29924
29931
  if (!ah(e)) return -1;
29925
29932
  const t = e.items;
@@ -29935,20 +29942,20 @@ function m2() {
29935
29942
  ), i.register(
29936
29943
  "oneOf",
29937
29944
  lm,
29938
- (e) => Ke(10, I0(e))
29945
+ (e) => Ke(10, V0(e))
29939
29946
  ), i.register(
29940
29947
  "anyOf",
29941
29948
  lm,
29942
- (e) => Ke(10, V0(e))
29949
+ (e) => Ke(10, F0(e))
29943
29950
  ), i.register(
29944
29951
  "allOf",
29945
29952
  wT,
29946
- (e) => Ke(10, F0(e))
29953
+ (e) => Ke(10, N0(e))
29947
29954
  ), i;
29948
29955
  }
29949
29956
  export {
29950
29957
  v2 as ComponentRegistry,
29951
- S0 as OPERATORS,
29958
+ C0 as OPERATORS,
29952
29959
  wT as QuasarAllOfField,
29953
29960
  of as QuasarArrayField,
29954
29961
  Ch as QuasarBooleanField,
@@ -30006,6 +30013,6 @@ export {
30006
30013
  Q2 as rankWith,
30007
30014
  h2 as toDisplayString,
30008
30015
  am as toJsonLogic,
30009
- Bm as useQuasarFormContext,
30016
+ _m as useQuasarFormContext,
30010
30017
  ti as useQuasarFormField
30011
30018
  };