@gsc-basic/components 1.0.2 → 1.0.4

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.
Files changed (116) hide show
  1. package/dist/es/index.js +43 -29
  2. package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +15 -15
  3. package/dist/es/node_modules/@codemirror/commands/dist/index.js +5 -5
  4. package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +3 -3
  5. package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +8 -8
  6. package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +1 -1
  7. package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +1 -1
  8. package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +6 -6
  9. package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +3 -3
  10. package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +1 -1
  11. package/dist/es/node_modules/@codemirror/language/dist/index.js +1 -1
  12. package/dist/es/node_modules/@codemirror/lint/dist/index.js +7 -7
  13. package/dist/es/node_modules/@codemirror/search/dist/index.js +9 -9
  14. package/dist/es/node_modules/@codemirror/view/dist/index.js +7 -7
  15. package/dist/es/node_modules/@lezer/lr/dist/index.js +4 -2
  16. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +146 -142
  17. package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +7 -7
  18. package/dist/es/node_modules/@vueuse/core/dist/index.js +1 -1
  19. package/dist/es/node_modules/codemirror/dist/index.js +3 -3
  20. package/dist/es/src/Button/index.js +6 -0
  21. package/dist/es/src/Button/src/Button.css +1 -0
  22. package/dist/es/src/Button/src/Button.vue.js +41 -0
  23. package/dist/es/src/Button/src/Button2.css +1 -0
  24. package/dist/es/src/CodeEditor/src/index.css +1 -1
  25. package/dist/es/src/CodeEditor/src/index.vue.js +54 -51
  26. package/dist/es/src/CodeEditor/src/index2.css +1 -1
  27. package/dist/es/src/ConfigProvider/index.js +1 -2
  28. package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +9 -9
  29. package/dist/es/src/Form/index.js +6 -0
  30. package/dist/es/src/Form/src/Form.css +1 -0
  31. package/dist/es/src/Form/src/Form.vue.js +208 -0
  32. package/dist/es/src/Form/src/styles/form.css +1 -0
  33. package/dist/es/src/Grid/src/Grid.css +1 -1
  34. package/dist/es/src/Grid/src/Grid.vue.js +77 -83
  35. package/dist/es/src/Grid/src/components/ActionBar.css +1 -1
  36. package/dist/es/src/Grid/src/components/ActionBar.vue.js +43 -36
  37. package/dist/es/src/Grid/src/components/CellEditor.css +1 -1
  38. package/dist/es/src/Grid/src/components/CellEditor.vue.js +80 -69
  39. package/dist/es/src/Grid/src/components/CellEditor2.css +1 -1
  40. package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -1
  41. package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +45 -34
  42. package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -1
  43. package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +72 -49
  44. package/dist/es/src/Grid/src/components/DataTable.css +1 -1
  45. package/dist/es/src/Grid/src/components/DataTable.vue.js +251 -228
  46. package/dist/es/src/Grid/src/components/Pager.css +1 -1
  47. package/dist/es/src/Grid/src/components/Pager.vue.js +40 -31
  48. package/dist/es/src/Grid/src/components/QueryBar.css +1 -1
  49. package/dist/es/src/Grid/src/components/QueryBar.vue.js +119 -147
  50. package/dist/es/src/Grid/src/composables/useGridTable.js +45 -44
  51. package/dist/es/src/Grid/src/styles/table.css +1 -0
  52. package/dist/es/src/Overlay/index.js +61 -0
  53. package/dist/es/src/Overlay/src/Message.css +1 -0
  54. package/dist/es/src/Overlay/src/Message.vue.js +36 -0
  55. package/dist/es/src/Overlay/src/Message2.css +1 -0
  56. package/dist/es/src/Overlay/src/Modal.css +1 -0
  57. package/dist/es/src/Overlay/src/Modal.vue.js +67 -0
  58. package/dist/es/src/Overlay/src/Modal2.css +1 -0
  59. package/dist/es/src/Overlay/src/Notice.css +1 -0
  60. package/dist/es/src/Overlay/src/Notice.vue.js +37 -0
  61. package/dist/es/src/Overlay/src/Notice2.css +1 -0
  62. package/dist/es/src/ScaleScreen/src/index.vue.js +2 -2
  63. package/dist/es/src/VideoBackground/src/index.vue.js +8 -8
  64. package/dist/es/src/index.js +39 -25
  65. package/dist/es/src/styles/tokens.css +1 -1
  66. package/dist/lib/index.js +1 -1
  67. package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
  68. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -1
  69. package/dist/lib/src/Button/index.js +1 -0
  70. package/dist/lib/src/Button/src/Button.css +1 -0
  71. package/dist/lib/src/Button/src/Button.vue.js +1 -0
  72. package/dist/lib/src/Button/src/Button2.css +1 -0
  73. package/dist/lib/src/CodeEditor/src/index.css +1 -1
  74. package/dist/lib/src/CodeEditor/src/index.vue.js +1 -1
  75. package/dist/lib/src/CodeEditor/src/index2.css +1 -1
  76. package/dist/lib/src/ConfigProvider/index.js +1 -1
  77. package/dist/lib/src/Form/index.js +1 -0
  78. package/dist/lib/src/Form/src/Form.css +1 -0
  79. package/dist/lib/src/Form/src/Form.vue.js +1 -0
  80. package/dist/lib/src/Form/src/styles/form.css +1 -0
  81. package/dist/lib/src/Grid/src/Grid.css +1 -1
  82. package/dist/lib/src/Grid/src/Grid.vue.js +1 -1
  83. package/dist/lib/src/Grid/src/components/ActionBar.css +1 -1
  84. package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -1
  85. package/dist/lib/src/Grid/src/components/CellEditor.css +1 -1
  86. package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -1
  87. package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -1
  88. package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -1
  89. package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -1
  90. package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -1
  91. package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -1
  92. package/dist/lib/src/Grid/src/components/DataTable.css +1 -1
  93. package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -1
  94. package/dist/lib/src/Grid/src/components/Pager.css +1 -1
  95. package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -1
  96. package/dist/lib/src/Grid/src/components/QueryBar.css +1 -1
  97. package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -1
  98. package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -1
  99. package/dist/lib/src/Grid/src/styles/table.css +1 -0
  100. package/dist/lib/src/Overlay/index.js +1 -0
  101. package/dist/lib/src/Overlay/src/Message.css +1 -0
  102. package/dist/lib/src/Overlay/src/Message.vue.js +1 -0
  103. package/dist/lib/src/Overlay/src/Message2.css +1 -0
  104. package/dist/lib/src/Overlay/src/Modal.css +1 -0
  105. package/dist/lib/src/Overlay/src/Modal.vue.js +1 -0
  106. package/dist/lib/src/Overlay/src/Modal2.css +1 -0
  107. package/dist/lib/src/Overlay/src/Notice.css +1 -0
  108. package/dist/lib/src/Overlay/src/Notice.vue.js +1 -0
  109. package/dist/lib/src/Overlay/src/Notice2.css +1 -0
  110. package/dist/lib/src/index.js +1 -1
  111. package/dist/lib/src/styles/tokens.css +1 -1
  112. package/package.json +12 -11
  113. package/dist/es/src/Grid/src/styles/antd.css +0 -1
  114. package/dist/es/src/Grid/src/utils/exportCsv.js +0 -15
  115. package/dist/lib/src/Grid/src/styles/antd.css +0 -1
  116. package/dist/lib/src/Grid/src/utils/exportCsv.js +0 -3
package/dist/es/index.js CHANGED
@@ -1,15 +1,21 @@
1
1
  import * as e from "./src/index.js";
2
- import { default as a } from "./src/locale/lang/zh-CN.js";
3
- import { default as s } from "./src/locale/lang/en-US.js";
4
- import { default as d } from "./src/locale/lang/ja-JP.js";
5
- import { configProviderContextKey as p, defaultInitialZIndex as m, defaultNamespace as u, localeContextKey as C, sizeInjectionKey as G, zIndexContextKey as g } from "./src/ConfigProvider/src/constants.js";
6
- import { provideGlobalConfig as b, useGlobalComponentSettings as I, useGlobalConfig as K } from "./src/ConfigProvider/src/useGlobalConfig.js";
7
- import { GscConfigProvider as S } from "./src/ConfigProvider/index.js";
8
- import { GscCodeEditor as v } from "./src/CodeEditor/index.js";
9
- import { GscScaleScreen as N } from "./src/ScaleScreen/index.js";
10
- import { GscVideoBackground as k } from "./src/VideoBackground/index.js";
11
- import { GscGrid as E } from "./src/Grid/index.js";
12
- const n = {
2
+ import { GscButton as s } from "./src/Button/index.js";
3
+ import { GscCodeEditor as l } from "./src/CodeEditor/index.js";
4
+ import { GscConfigProvider as x } from "./src/ConfigProvider/index.js";
5
+ import { GscForm as c } from "./src/Form/index.js";
6
+ import { GscGrid as u } from "./src/Grid/index.js";
7
+ import { GscScaleScreen as g } from "./src/ScaleScreen/index.js";
8
+ import { GscVideoBackground as y } from "./src/VideoBackground/index.js";
9
+ import { default as I } from "./src/Overlay/src/Message.vue.js";
10
+ import { default as M } from "./src/Overlay/src/Modal.vue.js";
11
+ import { default as P } from "./src/Overlay/src/Notice.vue.js";
12
+ import { configProviderContextKey as h, defaultInitialZIndex as j, defaultNamespace as v, localeContextKey as z, sizeInjectionKey as w, zIndexContextKey as B } from "./src/ConfigProvider/src/constants.js";
13
+ import { default as E } from "./src/locale/lang/en-US.js";
14
+ import { default as J } from "./src/locale/lang/ja-JP.js";
15
+ import { openModal as V, showMessage as Z, showNotice as $ } from "./src/Overlay/index.js";
16
+ import { provideGlobalConfig as A, useGlobalComponentSettings as D, useGlobalConfig as H } from "./src/ConfigProvider/src/useGlobalConfig.js";
17
+ import { default as O } from "./src/locale/lang/zh-CN.js";
18
+ const f = {
13
19
  install: (t) => {
14
20
  for (const r in e) {
15
21
  const o = e[r];
@@ -18,22 +24,30 @@ const n = {
18
24
  }
19
25
  };
20
26
  export {
21
- v as GscCodeEditor,
22
- S as GscConfigProvider,
23
- E as GscGrid,
24
- N as GscScaleScreen,
25
- k as GscVideoBackground,
26
- p as configProviderContextKey,
27
- n as default,
28
- m as defaultInitialZIndex,
29
- u as defaultNamespace,
30
- s as enUS,
31
- d as jaJP,
32
- C as localeContextKey,
33
- b as provideGlobalConfig,
34
- G as sizeInjectionKey,
35
- I as useGlobalComponentSettings,
36
- K as useGlobalConfig,
37
- g as zIndexContextKey,
38
- a as zhCN
27
+ s as GscButton,
28
+ l as GscCodeEditor,
29
+ x as GscConfigProvider,
30
+ c as GscForm,
31
+ u as GscGrid,
32
+ g as GscScaleScreen,
33
+ y as GscVideoBackground,
34
+ I as Message,
35
+ M as Modal,
36
+ P as Notice,
37
+ h as configProviderContextKey,
38
+ f as default,
39
+ j as defaultInitialZIndex,
40
+ v as defaultNamespace,
41
+ E as enUS,
42
+ J as jaJP,
43
+ z as localeContextKey,
44
+ V as openModal,
45
+ A as provideGlobalConfig,
46
+ Z as showMessage,
47
+ $ as showNotice,
48
+ w as sizeInjectionKey,
49
+ D as useGlobalComponentSettings,
50
+ H as useGlobalConfig,
51
+ B as zIndexContextKey,
52
+ O as zhCN
39
53
  };
@@ -1,5 +1,5 @@
1
- import { Annotation as Re, Transaction as Me, Text as Le, StateEffect as O, StateField as _, Prec as ee, Facet as ye, EditorSelection as w, codePointAt as v, codePointSize as T, RangeSet as ke, combineConfig as Be, MapMode as G, fromCodePoint as be, RangeValue as Fe, CharCategory as J } from "../../state/dist/index.js";
2
- import { EditorView as M, ViewPlugin as $e, Decoration as V, keymap as xe, getTooltip as we, showTooltip as Ne, logException as Z, WidgetType as Ue, Direction as We } from "../../view/dist/index.js";
1
+ import { codePointAt as v, EditorSelection as w, Transaction as Re, Text as Me, StateEffect as O, codePointSize as T, StateField as _, RangeSet as Le, Prec as ee, Facet as ye, combineConfig as ke, fromCodePoint as be, Annotation as Be, MapMode as G, RangeValue as Fe, CharCategory as J } from "../../state/dist/index.js";
2
+ import { EditorView as M, showTooltip as $e, ViewPlugin as Ne, logException as Z, getTooltip as xe, keymap as we, Decoration as V, Direction as Ue, WidgetType as We } from "../../view/dist/index.js";
3
3
  import { syntaxTree as q, indentUnit as je } from "../../language/dist/index.js";
4
4
  class Ce {
5
5
  /**
@@ -102,7 +102,7 @@ function ve(i, e) {
102
102
  let { source: n } = i, o = e && n[0] != "^", s = n[n.length - 1] != "$";
103
103
  return !o && !s ? i : new RegExp(`${o ? "^" : ""}(?:${n})${s ? "$" : ""}`, (t = i.flags) !== null && t !== void 0 ? t : i.ignoreCase ? "i" : "");
104
104
  }
105
- const te = /* @__PURE__ */ Re.define();
105
+ const te = /* @__PURE__ */ Be.define();
106
106
  function qe(i, e, t, n) {
107
107
  let { main: o } = i.selection, s = t - o.from, l = n - o.from;
108
108
  return {
@@ -205,7 +205,7 @@ class Qe {
205
205
  }
206
206
  const g = /* @__PURE__ */ ye.define({
207
207
  combine(i) {
208
- return Be(i, {
208
+ return ke(i, {
209
209
  activateOnTyping: !0,
210
210
  activateOnCompletion: () => !1,
211
211
  activateOnTypingDelay: 100,
@@ -239,7 +239,7 @@ function he(i, e) {
239
239
  return i ? e ? i + " " + e : i : e;
240
240
  }
241
241
  function Xe(i, e, t, n, o, s) {
242
- let l = i.textDirection == We.RTL, a = l, r = !1, h = "top", c, f, p = e.left - o.left, u = o.right - e.right, m = n.right - n.left, y = n.bottom - n.top;
242
+ let l = i.textDirection == Ue.RTL, a = l, r = !1, h = "top", c, f, p = e.left - o.left, u = o.right - e.right, m = n.right - n.left, y = n.bottom - n.top;
243
243
  if (a && p < Math.min(m, u) ? a = !1 : !a && u < Math.min(m, p) && (a = !0), m <= (a ? p : u))
244
244
  c = Math.max(o.top, Math.min(t.top, o.bottom - y)) - e.top, f = Math.min(400, a ? p : u);
245
245
  else {
@@ -688,7 +688,7 @@ const ie = /* @__PURE__ */ O.define({
688
688
  return i.update(e);
689
689
  },
690
690
  provide: (i) => [
691
- Ne.from(i, (e) => e.tooltip),
691
+ $e.from(i, (e) => e.tooltip),
692
692
  M.contentAttributes.from(i, (e) => e.attrs)
693
693
  ]
694
694
  });
@@ -707,7 +707,7 @@ function W(i, e = "option") {
707
707
  if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(g).interactionDelay)
708
708
  return !1;
709
709
  let o = 1, s;
710
- e == "page" && (s = we(t, n.open.tooltip)) && (o = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1));
710
+ e == "page" && (s = xe(t, n.open.tooltip)) && (o = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1));
711
711
  let { length: l } = n.open.options, a = n.open.selected > -1 ? n.open.selected + o * (i ? 1 : -1) : i ? 0 : l - 1;
712
712
  return a < 0 ? a = e == "page" ? 0 : l - 1 : a >= l && (a = e == "page" ? l - 1 : 0), t.dispatch({ effects: Ie.of(a) }), !0;
713
713
  };
@@ -727,7 +727,7 @@ class at {
727
727
  this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
728
728
  }
729
729
  }
730
- const ct = 50, ft = 1e3, ht = /* @__PURE__ */ $e.fromClass(class {
730
+ const ct = 50, ft = 1e3, ht = /* @__PURE__ */ Ne.fromClass(class {
731
731
  constructor(i) {
732
732
  this.view = i, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
733
733
  for (let e of i.state.field(x).active)
@@ -818,7 +818,7 @@ const ct = 50, ft = 1e3, ht = /* @__PURE__ */ $e.fromClass(class {
818
818
  blur(i) {
819
819
  let e = this.view.state.field(x, !1);
820
820
  if (e && e.tooltip && this.view.state.facet(g).closeOnBlur) {
821
- let t = e.open && we(this.view, e.open.tooltip);
821
+ let t = e.open && xe(this.view, e.open.tooltip);
822
822
  (!t || !t.dom.contains(i.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: B.of(null) }), 10);
823
823
  }
824
824
  },
@@ -1024,7 +1024,7 @@ class se {
1024
1024
  return new se(n, o);
1025
1025
  }
1026
1026
  }
1027
- let mt = /* @__PURE__ */ V.widget({ widget: /* @__PURE__ */ new class extends Ue {
1027
+ let mt = /* @__PURE__ */ V.widget({ widget: /* @__PURE__ */ new class extends We {
1028
1028
  toDOM() {
1029
1029
  let i = document.createElement("span");
1030
1030
  return i.className = "cm-snippetFieldPosition", i;
@@ -1077,9 +1077,9 @@ function bt(i) {
1077
1077
  let e = se.parse(i);
1078
1078
  return (t, n, o, s) => {
1079
1079
  let { text: l, ranges: a } = e.instantiate(t.state, o), { main: r } = t.state.selection, h = {
1080
- changes: { from: o, to: s == r.from ? r.to : s, insert: Le.of(l) },
1080
+ changes: { from: o, to: s == r.from ? r.to : s, insert: Me.of(l) },
1081
1081
  scrollIntoView: !0,
1082
- annotations: n ? [te.of(n), Me.userEvent.of("input.complete")] : void 0
1082
+ annotations: n ? [te.of(n), Re.userEvent.of("input.complete")] : void 0
1083
1083
  };
1084
1084
  if (a.length && (h.selection = le(a, 0)), a.some((c) => c.field > 0)) {
1085
1085
  let c = new L(a, 0), f = h.effects = [N.of(c)];
@@ -1108,7 +1108,7 @@ const xt = ({ state: i, dispatch: e }) => i.field(F, !1) ? (e(i.update({ effects
1108
1108
  combine(i) {
1109
1109
  return i.length ? i[0] : vt;
1110
1110
  }
1111
- }), St = /* @__PURE__ */ ee.highest(/* @__PURE__ */ xe.compute([de], (i) => i.facet(de)));
1111
+ }), St = /* @__PURE__ */ ee.highest(/* @__PURE__ */ we.compute([de], (i) => i.facet(de)));
1112
1112
  function Wt(i, e) {
1113
1113
  return { ...e, apply: bt(i) };
1114
1114
  }
@@ -1139,7 +1139,7 @@ re.startSide = 1;
1139
1139
  re.endSide = -1;
1140
1140
  const Ae = /* @__PURE__ */ _.define({
1141
1141
  create() {
1142
- return ke.empty;
1142
+ return Le.empty;
1143
1143
  },
1144
1144
  update(i, e) {
1145
1145
  if (i = i.map(e.changes), e.selection) {
@@ -1345,7 +1345,7 @@ const kt = [
1345
1345
  { key: "PageDown", run: /* @__PURE__ */ W(!0, "page") },
1346
1346
  { key: "PageUp", run: /* @__PURE__ */ W(!1, "page") },
1347
1347
  { key: "Enter", run: lt }
1348
- ], Bt = /* @__PURE__ */ ee.highest(/* @__PURE__ */ xe.computeN([g], (i) => i.facet(g).defaultKeymap ? [kt] : []));
1348
+ ], Bt = /* @__PURE__ */ ee.highest(/* @__PURE__ */ we.computeN([g], (i) => i.facet(g).defaultKeymap ? [kt] : []));
1349
1349
  export {
1350
1350
  Ce as CompletionContext,
1351
1351
  lt as acceptCompletion,
@@ -1,4 +1,4 @@
1
- import { StateField as qe, Facet as oe, EditorSelection as a, countColumn as $, Text as le, Annotation as ce, Transaction as P, combineConfig as Ke, findClusterBreak as E, StateEffect as se, ChangeSet as $e, ChangeDesc as We } from "../../state/dist/index.js";
1
+ import { EditorSelection as a, StateField as qe, Transaction as P, Facet as oe, combineConfig as Ke, StateEffect as le, ChangeSet as $e, ChangeDesc as We, Annotation as ce, countColumn as $, Text as se, findClusterBreak as E } from "../../state/dist/index.js";
2
2
  import { EditorView as x, Direction as Qe } from "../../view/dist/index.js";
3
3
  import { IndentContext as ie, getIndentation as ue, indentString as R, syntaxTree as W, matchBrackets as D, getIndentUnit as G, indentUnit as Xe } from "../../language/dist/index.js";
4
4
  import { NodeProp as F } from "../../../@lezer/common/dist/index.js";
@@ -261,7 +261,7 @@ function ft(e, t, r) {
261
261
  if (!e.changes)
262
262
  return m.selection(n);
263
263
  let l = e.changes.map(t), o = t.mapDesc(e.changes, !0), c = e.mapped ? e.mapped.composeDesc(o) : o;
264
- return new m(l, se.mapEffects(e.effects, t), c, e.startSelection.map(o), n);
264
+ return new m(l, le.mapEffects(e.effects, t), c, e.startSelection.map(o), n);
265
265
  }
266
266
  const at = /^(input\.type|delete)($|\.)/;
267
267
  class B {
@@ -274,7 +274,7 @@ class B {
274
274
  addChanges(t, r, n, l, o) {
275
275
  let c = this.done, s = c[c.length - 1];
276
276
  return s && s.changes && !s.changes.empty && t.changes && (!n || at.test(n)) && (!s.selectionsAfter.length && r - this.prevTime < l.newGroupDelay && l.joinToEvent(o, ct(s.changes, t.changes)) || // For compose (but not compose.start) events, always join with previous event
277
- n == "input.type.compose") ? c = v(c, c.length - 1, l.minDepth, new m(t.changes.compose(s.changes), me(se.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, g)) : c = v(c, c.length, l.minDepth, t), new B(c, g, r, n);
277
+ n == "input.type.compose") ? c = v(c, c.length - 1, l.minDepth, new m(t.changes.compose(s.changes), me(le.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, g)) : c = v(c, c.length, l.minDepth, t), new B(c, g, r, n);
278
278
  }
279
279
  addSelection(t, r, n, l) {
280
280
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : g;
@@ -547,7 +547,7 @@ const Ue = (e, t, r) => O(e, (n) => {
547
547
  if (e.readOnly)
548
548
  return !1;
549
549
  let r = e.changeByRange((n) => ({
550
- changes: { from: n.from, to: n.to, insert: le.of(["", ""]) },
550
+ changes: { from: n.from, to: n.to, insert: se.of(["", ""]) },
551
551
  range: a.cursor(n.from)
552
552
  }));
553
553
  return t(e.update(r, { scrollIntoView: !0, userEvent: "input" })), !0;
@@ -651,7 +651,7 @@ function Fe(e) {
651
651
  i ? { from: o, to: c } = i : o > s.from && o < s.from + 100 && !/\S/.test(s.text.slice(0, o)) && (o = s.from);
652
652
  let h = ["", R(t, u)];
653
653
  return i && h.push(R(t, f.lineIndent(s.from, -1))), {
654
- changes: { from: o, to: c, insert: le.of(h) },
654
+ changes: { from: o, to: c, insert: se.of(h) },
655
655
  range: a.cursor(o + 1 + h[1].length)
656
656
  };
657
657
  });
@@ -1,5 +1,5 @@
1
1
  import { parser as r } from "../../../@lezer/java/dist/index.js";
2
- import { LanguageSupport as l, LRLanguage as d, indentNodeProp as s, foldNodeProp as c, continuedIndent as t, delimitedIndent as i, flatIndent as m, foldInside as u } from "../../language/dist/index.js";
2
+ import { LanguageSupport as l, LRLanguage as d, indentNodeProp as s, flatIndent as c, continuedIndent as t, delimitedIndent as i, foldNodeProp as m, foldInside as u } from "../../language/dist/index.js";
3
3
  const f = /* @__PURE__ */ d.define({
4
4
  name: "java",
5
5
  parser: /* @__PURE__ */ r.configure({
@@ -7,7 +7,7 @@ const f = /* @__PURE__ */ d.define({
7
7
  /* @__PURE__ */ s.add({
8
8
  IfStatement: /* @__PURE__ */ t({ except: /^\s*({|else\b)/ }),
9
9
  TryStatement: /* @__PURE__ */ t({ except: /^\s*({|catch|finally)\b/ }),
10
- LabeledStatement: m,
10
+ LabeledStatement: c,
11
11
  SwitchBlock: (e) => {
12
12
  let n = e.textAfter, a = /^\s*\}/.test(n), o = /^\s*(case|default)\b/.test(n);
13
13
  return e.baseIndent + (a ? 0 : o ? 1 : 2) * e.unit;
@@ -16,7 +16,7 @@ const f = /* @__PURE__ */ d.define({
16
16
  BlockComment: () => null,
17
17
  Statement: /* @__PURE__ */ t({ except: /^{/ })
18
18
  }),
19
- /* @__PURE__ */ c.add({
19
+ /* @__PURE__ */ m.add({
20
20
  "Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer": u,
21
21
  BlockComment(e) {
22
22
  return { from: e.from + 2, to: e.to - 2 };
@@ -1,8 +1,8 @@
1
1
  import { parser as x } from "../../../@lezer/javascript/dist/index.js";
2
- import { LanguageSupport as B, LRLanguage as F, sublanguageProp as T, defineLanguageFacet as j, indentNodeProp as L, foldNodeProp as N, continuedIndent as b, delimitedIndent as O, flatIndent as P, foldInside as V, syntaxTree as C } from "../../language/dist/index.js";
2
+ import { LanguageSupport as B, sublanguageProp as T, LRLanguage as F, indentNodeProp as j, flatIndent as L, continuedIndent as b, delimitedIndent as N, foldNodeProp as O, foldInside as P, syntaxTree as C, defineLanguageFacet as V } from "../../language/dist/index.js";
3
3
  import { EditorSelection as M } from "../../state/dist/index.js";
4
4
  import { EditorView as _ } from "../../view/dist/index.js";
5
- import { snippetCompletion as r, ifNotIn as R, completeFromList as W } from "../../autocomplete/dist/index.js";
5
+ import { ifNotIn as R, completeFromList as W, snippetCompletion as r } from "../../autocomplete/dist/index.js";
6
6
  import { NodeWeakMap as H, IterMode as K } from "../../../@lezer/common/dist/index.js";
7
7
  const J = [
8
8
  /* @__PURE__ */ r("function ${name}(${params}) {\n ${}\n}", {
@@ -182,15 +182,15 @@ const c = /* @__PURE__ */ F.define({
182
182
  name: "javascript",
183
183
  parser: /* @__PURE__ */ x.configure({
184
184
  props: [
185
- /* @__PURE__ */ L.add({
185
+ /* @__PURE__ */ j.add({
186
186
  IfStatement: /* @__PURE__ */ b({ except: /^\s*({|else\b)/ }),
187
187
  TryStatement: /* @__PURE__ */ b({ except: /^\s*({|catch\b|finally\b)/ }),
188
- LabeledStatement: P,
188
+ LabeledStatement: L,
189
189
  SwitchBody: (e) => {
190
190
  let t = e.textAfter, o = /^\s*\}/.test(t), n = /^\s*(case|default)\b/.test(t);
191
191
  return e.baseIndent + (o ? 0 : n ? 1 : 2) * e.unit;
192
192
  },
193
- Block: /* @__PURE__ */ O({ closing: "}" }),
193
+ Block: /* @__PURE__ */ N({ closing: "}" }),
194
194
  ArrowFunction: (e) => e.baseIndent + e.unit,
195
195
  "TemplateString BlockComment": () => null,
196
196
  "Statement Property": /* @__PURE__ */ b({ except: /^\s*{/ }),
@@ -206,8 +206,8 @@ const c = /* @__PURE__ */ F.define({
206
206
  return e.column(e.node.from) + e.unit;
207
207
  }
208
208
  }),
209
- /* @__PURE__ */ N.add({
210
- "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": V,
209
+ /* @__PURE__ */ O.add({
210
+ "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": P,
211
211
  BlockComment(e) {
212
212
  return { from: e.from + 2, to: e.to - 2 };
213
213
  }
@@ -222,7 +222,7 @@ const c = /* @__PURE__ */ F.define({
222
222
  }
223
223
  }), v = {
224
224
  test: (e) => /^JSX/.test(e.name),
225
- facet: /* @__PURE__ */ j({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
225
+ facet: /* @__PURE__ */ V({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
226
226
  }, U = /* @__PURE__ */ c.configure({ dialect: "ts" }, "typescript"), Y = /* @__PURE__ */ c.configure({
227
227
  dialect: "jsx",
228
228
  props: [/* @__PURE__ */ T.add((e) => e.isTop ? [v] : void 0)]
@@ -1,5 +1,5 @@
1
1
  import { parser as o } from "../../../@lezer/json/dist/index.js";
2
- import { LanguageSupport as a, LRLanguage as s, indentNodeProp as i, foldNodeProp as c, continuedIndent as r, foldInside as d } from "../../language/dist/index.js";
2
+ import { LanguageSupport as a, LRLanguage as s, indentNodeProp as i, continuedIndent as r, foldNodeProp as c, foldInside as d } from "../../language/dist/index.js";
3
3
  const f = () => (n) => {
4
4
  try {
5
5
  JSON.parse(n.state.doc.toString());
@@ -1,5 +1,5 @@
1
1
  import { parser as h } from "../../../@lezer/python/dist/index.js";
2
- import { LanguageSupport as S, LRLanguage as I, indentNodeProp as v, foldNodeProp as C, delimitedIndent as m, foldInside as k, syntaxTree as $ } from "../../language/dist/index.js";
2
+ import { LanguageSupport as S, LRLanguage as I, indentNodeProp as v, delimitedIndent as m, foldNodeProp as C, foldInside as k, syntaxTree as $ } from "../../language/dist/index.js";
3
3
  import { NodeWeakMap as A, IterMode as F } from "../../../@lezer/common/dist/index.js";
4
4
  import { ifNotIn as w, completeFromList as N, snippetCompletion as l } from "../../autocomplete/dist/index.js";
5
5
  const c = /* @__PURE__ */ new A(), E = /* @__PURE__ */ new Set([
@@ -1,6 +1,6 @@
1
- import { LanguageSupport as M, LRLanguage as H, indentNodeProp as J, foldNodeProp as ee, continuedIndent as te, syntaxTree as ae } from "../../language/dist/index.js";
1
+ import { LanguageSupport as M, LRLanguage as H, indentNodeProp as J, continuedIndent as ee, foldNodeProp as te, syntaxTree as ae } from "../../language/dist/index.js";
2
2
  import { styleTags as re, tags as o } from "../../../@lezer/highlight/dist/index.js";
3
- import { LRParser as ne, ExternalTokenizer as oe } from "../../../@lezer/lr/dist/index.js";
3
+ import { ExternalTokenizer as ne, LRParser as oe } from "../../../@lezer/lr/dist/index.js";
4
4
  import { ifNotIn as le, completeFromList as se } from "../../autocomplete/dist/index.js";
5
5
  const ie = 36, R = 1, ce = 2, k = 3, S = 4, fe = 5, de = 6, Oe = 7, me = 8, ue = 9, he = 10, ke = 11, Qe = 12, ge = 13, ve = 14, xe = 15, be = 16, pe = 17, q = 18, Ce = 19, E = 20, A = 21, L = 22, Se = 23, Pe = 24;
6
6
  function y(t) {
@@ -129,7 +129,7 @@ function Ie(t, e, r, a) {
129
129
  return e && (n.words = V(e, r || "", a)), n;
130
130
  }
131
131
  function W(t) {
132
- return new oe((e) => {
132
+ return new ne((e) => {
133
133
  var r;
134
134
  let { next: a } = e;
135
135
  if (e.advance(), u(a, P)) {
@@ -221,7 +221,7 @@ function W(t) {
221
221
  }
222
222
  });
223
223
  }
224
- const F = /* @__PURE__ */ W(T), _e = /* @__PURE__ */ ne.deserialize({
224
+ const F = /* @__PURE__ */ W(T), _e = /* @__PURE__ */ oe.deserialize({
225
225
  version: 14,
226
226
  states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
227
227
  stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
@@ -397,9 +397,9 @@ function Ee(t, e, r) {
397
397
  let Ae = /* @__PURE__ */ _e.configure({
398
398
  props: [
399
399
  /* @__PURE__ */ J.add({
400
- Statement: /* @__PURE__ */ te()
400
+ Statement: /* @__PURE__ */ ee()
401
401
  }),
402
- /* @__PURE__ */ ee.add({
402
+ /* @__PURE__ */ te.add({
403
403
  Statement(t, e) {
404
404
  return { from: Math.min(t.from + 100, e.doc.lineAt(t.from).to), to: t.to };
405
405
  },
@@ -1,5 +1,5 @@
1
1
  import { parser as I } from "../../../@lezer/xml/dist/index.js";
2
- import { LRLanguage as F, LanguageSupport as L, indentNodeProp as _, foldNodeProp as w, bracketMatchingHandle as x, syntaxTree as $ } from "../../language/dist/index.js";
2
+ import { LanguageSupport as F, LRLanguage as L, indentNodeProp as _, foldNodeProp as w, bracketMatchingHandle as x, syntaxTree as $ } from "../../language/dist/index.js";
3
3
  import { EditorSelection as M } from "../../state/dist/index.js";
4
4
  import { EditorView as k } from "../../view/dist/index.js";
5
5
  function v(e, t) {
@@ -135,7 +135,7 @@ function H(e, t) {
135
135
  return null;
136
136
  };
137
137
  }
138
- const j = /* @__PURE__ */ F.define({
138
+ const j = /* @__PURE__ */ L.define({
139
139
  name: "xml",
140
140
  parser: /* @__PURE__ */ I.configure({
141
141
  props: [
@@ -168,7 +168,7 @@ function K(e = {}) {
168
168
  let t = [j.data.of({
169
169
  autocomplete: H(e.elements || [], e.attributes || [])
170
170
  })];
171
- return e.autoCloseTags !== !1 && t.push(R), new L(j, t);
171
+ return e.autoCloseTags !== !1 && t.push(R), new F(j, t);
172
172
  }
173
173
  function V(e, t, i = e.length) {
174
174
  if (!t)
@@ -1,5 +1,5 @@
1
1
  import { parser as t } from "../../../@lezer/yaml/dist/index.js";
2
- import { LanguageSupport as l, LRLanguage as a, indentNodeProp as i, foldNodeProp as m, delimitedIndent as r, foldInside as u } from "../../language/dist/index.js";
2
+ import { LanguageSupport as l, LRLanguage as a, indentNodeProp as i, delimitedIndent as r, foldNodeProp as m, foldInside as u } from "../../language/dist/index.js";
3
3
  import "../../../@lezer/common/dist/index.js";
4
4
  import "../../../@lezer/highlight/dist/index.js";
5
5
  import "../../../@lezer/lr/dist/index.js";
@@ -1,5 +1,5 @@
1
1
  import { NodeProp as y, Tree as C, IterMode as _, TreeFragment as M, Parser as Be, NodeType as Q } from "../../../@lezer/common/dist/index.js";
2
- import { Prec as Ie, Facet as w, EditorState as B, RangeSetBuilder as fe, StateField as X, StateEffect as L, RangeSet as Oe, combineConfig as ce, countColumn as Me } from "../../state/dist/index.js";
2
+ import { Facet as w, Prec as Ie, EditorState as B, RangeSetBuilder as fe, RangeSet as Oe, StateField as X, StateEffect as L, combineConfig as ce, countColumn as Me } from "../../state/dist/index.js";
3
3
  import { EditorView as b, ViewPlugin as Y, Decoration as p, gutter as Ne, GutterMarker as Ee, logException as Fe, WidgetType as ue, Direction as ee } from "../../view/dist/index.js";
4
4
  import { tagHighlighter as Le, highlightTree as He, tags as u, styleTags as We } from "../../../@lezer/highlight/dist/index.js";
5
5
  import { StyleModule as te } from "../../../style-mod/src/style-mod.js";
@@ -1,5 +1,5 @@
1
- import { ViewPlugin as ie, EditorView as D, hoverTooltip as ne, gutter as se, Decoration as C, showPanel as oe, showTooltip as le, WidgetType as re, GutterMarker as ae, getPanel as ce, logException as de } from "../../view/dist/index.js";
2
- import { Facet as V, StateField as B, combineConfig as Y, StateEffect as S, RangeSet as _, RangeSetBuilder as fe } from "../../state/dist/index.js";
1
+ import { ViewPlugin as ie, EditorView as D, Decoration as C, hoverTooltip as ne, showPanel as se, gutter as oe, showTooltip as le, getPanel as re, WidgetType as ae, GutterMarker as ce, logException as de } from "../../view/dist/index.js";
2
+ import { StateField as B, Facet as V, combineConfig as Y, RangeSet as _, RangeSetBuilder as fe, StateEffect as S } from "../../state/dist/index.js";
3
3
  import x from "../../../crelt/index.js";
4
4
  class $ {
5
5
  constructor(e, n, i) {
@@ -122,7 +122,7 @@ const F = /* @__PURE__ */ S.define(), E = /* @__PURE__ */ S.define(), Z = /* @__
122
122
  return t;
123
123
  },
124
124
  provide: (t) => [
125
- oe.from(t, (e) => e.panel),
125
+ se.from(t, (e) => e.panel),
126
126
  D.decorations.from(t, (e) => e.diagnostics)
127
127
  ]
128
128
  }), me = /* @__PURE__ */ C.mark({ class: "cm-lintRange cm-lintRange-active" });
@@ -148,7 +148,7 @@ function K(t, e) {
148
148
  const ge = (t) => {
149
149
  let e = t.state.field(w, !1);
150
150
  (!e || !e.panel) && t.dispatch({ effects: W(t.state, [E.of(!0)]) });
151
- let n = ce(t, P.open);
151
+ let n = re(t, P.open);
152
152
  return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0;
153
153
  }, j = (t) => {
154
154
  let e = t.state.field(w, !1);
@@ -271,7 +271,7 @@ function X(t, e, n) {
271
271
  }, b);
272
272
  }), e.source && x("div", { class: "cm-diagnosticSource" }, e.source));
273
273
  }
274
- class ke extends re {
274
+ class ke extends ae {
275
275
  constructor(e) {
276
276
  super(), this.sev = e;
277
277
  }
@@ -508,7 +508,7 @@ function J(t) {
508
508
  }
509
509
  return e;
510
510
  }
511
- class Q extends ae {
511
+ class Q extends ce {
512
512
  constructor(e) {
513
513
  super(), this.diagnostics = e, this.severity = J(e);
514
514
  }
@@ -564,7 +564,7 @@ function Te(t, e) {
564
564
  i.push(new Q(n[s]).range(+s));
565
565
  return _.of(i, !0);
566
566
  }
567
- const Pe = /* @__PURE__ */ se({
567
+ const Pe = /* @__PURE__ */ oe({
568
568
  class: "cm-gutter-lint",
569
569
  markers: (t) => t.state.field(A),
570
570
  widgetMarker: (t, e, n) => {
@@ -1,5 +1,5 @@
1
- import { EditorView as S, ViewPlugin as J, getPanel as U, showDialog as he, Decoration as f, showPanel as ae, runScopeHandlers as ue } from "../../view/dist/index.js";
2
- import { StateField as fe, StateEffect as Q, Prec as de, EditorSelection as p, Facet as X, combineConfig as Y, codePointAt as me, codePointSize as ge, fromCodePoint as pe, CharCategory as g, EditorState as xe, RangeSetBuilder as Se, findClusterBreak as Z } from "../../state/dist/index.js";
1
+ import { getPanel as J, showDialog as he, EditorView as S, ViewPlugin as U, Decoration as f, showPanel as ae, runScopeHandlers as ue } from "../../view/dist/index.js";
2
+ import { StateEffect as Q, EditorSelection as p, StateField as fe, Prec as de, codePointAt as me, codePointSize as ge, Facet as X, combineConfig as Y, CharCategory as g, EditorState as pe, RangeSetBuilder as xe, fromCodePoint as Se, findClusterBreak as Z } from "../../state/dist/index.js";
3
3
  import m from "../../../crelt/index.js";
4
4
  const K = typeof String.prototype.normalize == "function" ? (r) => r.normalize("NFKD") : (r) => r;
5
5
  class C {
@@ -48,7 +48,7 @@ class C {
48
48
  let e = this.peek();
49
49
  if (e < 0)
50
50
  return this.done = !0, this;
51
- let t = pe(e), n = this.bufferStart + this.bufferPos;
51
+ let t = Se(e), n = this.bufferStart + this.bufferPos;
52
52
  this.bufferPos += ge(e);
53
53
  let i = this.normalize(t);
54
54
  if (i.length)
@@ -224,7 +224,7 @@ function G(r, e, t, n) {
224
224
  function Le(r, e, t, n) {
225
225
  return r(e.sliceDoc(t, t + 1)) == g.Word && r(e.sliceDoc(n - 1, n)) == g.Word;
226
226
  }
227
- const We = /* @__PURE__ */ J.fromClass(class {
227
+ const We = /* @__PURE__ */ U.fromClass(class {
228
228
  constructor(r) {
229
229
  this.decorations = this.getDeco(r);
230
230
  }
@@ -347,7 +347,7 @@ class ne {
347
347
  range in the given state.
348
348
  */
349
349
  getCursor(e, t = 0, n) {
350
- let i = e.doc ? e : xe.create({ doc: e });
350
+ let i = e.doc ? e : pe.create({ doc: e });
351
351
  return n == null && (n = i.doc.length), this.regexp ? y(this, i, t, n) : M(this, i, t, n);
352
352
  }
353
353
  }
@@ -507,7 +507,7 @@ class O {
507
507
  this.query = e, this.panel = t;
508
508
  }
509
509
  }
510
- const Oe = /* @__PURE__ */ f.mark({ class: "cm-searchMatch" }), $e = /* @__PURE__ */ f.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Qe = /* @__PURE__ */ J.fromClass(class {
510
+ const Oe = /* @__PURE__ */ f.mark({ class: "cm-searchMatch" }), $e = /* @__PURE__ */ f.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Qe = /* @__PURE__ */ U.fromClass(class {
511
511
  constructor(r) {
512
512
  this.view = r, this.decorations = this.highlight(r.state.field(x));
513
513
  }
@@ -518,7 +518,7 @@ const Oe = /* @__PURE__ */ f.mark({ class: "cm-searchMatch" }), $e = /* @__PURE_
518
518
  highlight({ query: r, panel: e }) {
519
519
  if (!e || !r.spec.valid)
520
520
  return f.none;
521
- let { view: t } = this, n = new Se();
521
+ let { view: t } = this, n = new xe();
522
522
  for (let i = 0, s = t.visibleRanges, l = s.length; i < l; i++) {
523
523
  let { from: c, to: o } = s[i];
524
524
  for (; i < l - 1 && o > s[i + 1].from - 500; )
@@ -629,7 +629,7 @@ function $(r, e) {
629
629
  });
630
630
  }
631
631
  function se(r) {
632
- let e = U(r, B);
632
+ let e = J(r, B);
633
633
  return e && e.dom.querySelector("[main-field]");
634
634
  }
635
635
  function le(r) {
@@ -654,7 +654,7 @@ const ce = (r) => {
654
654
  let e = r.state.field(x, !1);
655
655
  if (!e || !e.panel)
656
656
  return !1;
657
- let t = U(r, B);
657
+ let t = J(r, B);
658
658
  return t && t.dom.contains(r.root.activeElement) && r.focus(), r.dispatch({ effects: z.of(!1) }), !0;
659
659
  }, Ue = [
660
660
  { key: "Mod-f", run: ce, scope: "editor search-panel" },
@@ -1,4 +1,4 @@
1
- import { EditorState as Wt, StateEffect as it, Facet as C, Transaction as Mn, Annotation as kn, EditorSelection as S, Prec as ci, StateField as fi, MapMode as St, RangeSet as E, Text as Y, ChangeSet as ms, RangeValue as di, findClusterBreak as ot, findColumn as Ke, combineConfig as ui, codePointAt as bs, countColumn as ys, codePointSize as An, RangeSetBuilder as Tn, CharCategory as Dn } from "../../state/dist/index.js";
1
+ import { EditorState as Wt, Transaction as Mn, EditorSelection as S, Prec as ci, Facet as C, Text as Y, ChangeSet as ms, RangeSet as E, StateEffect as it, Annotation as kn, RangeValue as fi, StateField as di, MapMode as St, findClusterBreak as ot, findColumn as Ke, codePointAt as bs, codePointSize as An, combineConfig as ui, countColumn as ys, RangeSetBuilder as Tn, CharCategory as Dn } from "../../state/dist/index.js";
2
2
  import { StyleModule as At } from "../../../style-mod/src/style-mod.js";
3
3
  import { keyName as On, base as Ln, shift as Bn } from "../../../w3c-keyname/index.js";
4
4
  import wt from "../../../crelt/index.js";
@@ -154,7 +154,7 @@ class bt {
154
154
  var W = /* @__PURE__ */ (function(n) {
155
155
  return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
156
156
  })(W || (W = {}));
157
- class L extends di {
157
+ class L extends fi {
158
158
  constructor(t, e, i, s) {
159
159
  super(), this.startSide = t, this.endSide = e, this.widget = i, this.spec = s;
160
160
  }
@@ -285,7 +285,7 @@ function Ct(n, t, e, i = 0) {
285
285
  let s = e.length - 1;
286
286
  s >= 0 && e[s] + i >= n ? e[s] = Math.max(e[s], t) : e.push(n, t);
287
287
  }
288
- class Kt extends di {
288
+ class Kt extends fi {
289
289
  constructor(t, e) {
290
290
  super(), this.tagName = t, this.attributes = e;
291
291
  }
@@ -5967,7 +5967,7 @@ const Co = /* @__PURE__ */ pn({
5967
5967
  map(n, t) {
5968
5968
  return n == null ? null : t.mapPos(n);
5969
5969
  }
5970
- }), Pt = /* @__PURE__ */ fi.define({
5970
+ }), Pt = /* @__PURE__ */ di.define({
5971
5971
  create() {
5972
5972
  return null;
5973
5973
  },
@@ -6786,7 +6786,7 @@ function Uo(n, t, e, i, s, r) {
6786
6786
  return a >= t && a <= e;
6787
6787
  }
6788
6788
  function Sl(n, t = {}) {
6789
- let e = it.define(), i = fi.define({
6789
+ let e = it.define(), i = di.define({
6790
6790
  create() {
6791
6791
  return [];
6792
6792
  },
@@ -6934,7 +6934,7 @@ function kl(n, t) {
6934
6934
  n.state.field(Fe).indexOf(s) > -1 && n.dispatch({ effects: r });
6935
6935
  }), o)) };
6936
6936
  }
6937
- const Fe = /* @__PURE__ */ fi.define({
6937
+ const Fe = /* @__PURE__ */ di.define({
6938
6938
  create() {
6939
6939
  return [];
6940
6940
  },
@@ -6985,7 +6985,7 @@ function Jo(n, t, e) {
6985
6985
  }
6986
6986
  };
6987
6987
  }
6988
- class ht extends di {
6988
+ class ht extends fi {
6989
6989
  /**
6990
6990
  @internal
6991
6991
  */
@@ -112,11 +112,13 @@ class v {
112
112
  this.pushState(t & 65535, this.pos);
113
113
  else if ((t & 262144) == 0) {
114
114
  let h = t, { parser: r } = this.p;
115
- this.pos = i, !r.stateFlag(
115
+ this.pos = i;
116
+ let n = r.stateFlag(
116
117
  h,
117
118
  1
118
119
  /* StateFlag.Skipped */
119
- ) && (i > s || e <= r.maxNode) && (this.reducePos = i), this.pushState(h, Math.min(s, this.reducePos)), this.shiftContext(e, s), e <= r.maxNode && this.buffer.push(e, s, i, 4);
120
+ );
121
+ !n && (i > s || e <= r.maxNode) && (this.reducePos = i), this.pushState(h, n ? s : Math.min(s, this.reducePos)), this.shiftContext(e, s), e <= r.maxNode && this.buffer.push(e, s, i, 4);
120
122
  } else
121
123
  this.pos = i, this.shiftContext(e, s), e <= this.p.parser.maxNode && this.buffer.push(e, s, i, 4);
122
124
  }