@newview/ui 1.1.17 → 1.1.18

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.
@@ -18181,20 +18181,6 @@ var ace$1 = { exports: {} };
18181
18181
  }, i3.isPending = function() {
18182
18182
  return n2;
18183
18183
  }, i3;
18184
- }, t.supportsLookbehind = function() {
18185
- try {
18186
- new RegExp("(?<=.)");
18187
- } catch (e2) {
18188
- return false;
18189
- }
18190
- return true;
18191
- }, t.supportsUnicodeFlag = function() {
18192
- try {
18193
- new RegExp("^.$", "u");
18194
- } catch (e2) {
18195
- return false;
18196
- }
18197
- return true;
18198
18184
  };
18199
18185
  }), ace.define("ace/lib/useragent", ["require", "exports", "module"], function(e, t, n) {
18200
18186
  t.OS = { LINUX: "LINUX", MAC: "MAC", WINDOWS: "WINDOWS" }, t.getOS = function() {
@@ -18609,7 +18595,7 @@ var ace$1 = { exports: {} };
18609
18595
  !u.basePath && !u.workerPath && !u.modePath && !u.themePath && !Object.keys(u.$moduleUrls).length && (console.error("Unable to infer path to ace from script src,", "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", "or with webpack use ace/webpack-resolver"), l = function() {
18610
18596
  });
18611
18597
  };
18612
- t.version = "1.24.2";
18598
+ t.version = "1.23.1";
18613
18599
  }), ace.define("ace/loader_build", ["require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/config"], function(e, t, n) {
18614
18600
  function s(t2) {
18615
18601
  if (!i2 || !i2.document)
@@ -18931,18 +18917,30 @@ var ace$1 = { exports: {} };
18931
18917
  } };
18932
18918
  }), ace.define("ace/keyboard/textinput", ["require", "exports", "module", "ace/lib/event", "ace/config", "ace/lib/useragent", "ace/lib/dom", "ace/lib/lang", "ace/clipboard", "ace/lib/keys"], function(e, t, n) {
18933
18919
  var r2 = e("../lib/event"), i2 = e("../config").nls, s = e("../lib/useragent"), o = e("../lib/dom"), u = e("../lib/lang"), a = e("../clipboard"), f2 = s.isChrome < 18, l = s.isIE, c2 = s.isChrome > 63, h2 = 400, p = e("../lib/keys"), d = p.KEY_MODS, v = s.isIOS, m = v ? /\s/ : /\n/, g = s.isMobile, y = function(e2, t2) {
18934
- function Q() {
18920
+ function P(e3) {
18921
+ (!n2 || !n2.parentNode) && document.removeEventListener("selectionchange", P);
18922
+ if (w)
18923
+ return;
18924
+ if (n2.selectionStart !== n2.selectionEnd)
18925
+ return;
18926
+ var r3 = n2.selectionStart - C, i3 = k - C;
18927
+ r3 > 0 ? r3 = Math.max(r3 - i3, 1) : r3 === 0 && i3 && (r3 = -1);
18928
+ var s2 = Math.abs(r3), o2 = r3 > 0 ? p.right : p.left;
18929
+ for (var u2 = 0; u2 < s2; u2++)
18930
+ t2.onCommandKey({}, 0, o2);
18931
+ }
18932
+ function $2() {
18935
18933
  T2 = true, n2.blur(), n2.focus(), T2 = false;
18936
18934
  }
18937
- function Y(e3) {
18938
- e3.keyCode == 27 && n2.value.length < n2.selectionStart && (w || (N2 = n2.value), C = k = -1, H()), G();
18935
+ function K(e3) {
18936
+ e3.keyCode == 27 && n2.value.length < n2.selectionStart && (w || (N2 = n2.value), C = k = -1, M()), J();
18939
18937
  }
18940
- function et() {
18941
- clearTimeout(Z), Z = setTimeout(function() {
18938
+ function G() {
18939
+ clearTimeout(Q), Q = setTimeout(function() {
18942
18940
  S && (n2.style.cssText = S, S = ""), t2.renderer.$isMousePressed = false, t2.renderer.$keepTextAreaAtCursor && t2.renderer.$moveTextAreaToCursor();
18943
18941
  }, 0);
18944
18942
  }
18945
- function nt(e3, t3, n3) {
18943
+ function Z(e3, t3, n3) {
18946
18944
  var r3 = null, i3 = false;
18947
18945
  n3.addEventListener("keydown", function(e4) {
18948
18946
  r3 && clearTimeout(r3), i3 = true;
@@ -18983,7 +18981,7 @@ var ace$1 = { exports: {} };
18983
18981
  var f3 = t3.commands.findKeyCommand(u2, o2);
18984
18982
  f3 && t3.execCommand(f3);
18985
18983
  }
18986
- C = r4, k = s3, H("");
18984
+ C = r4, k = s3, M("");
18987
18985
  }
18988
18986
  };
18989
18987
  document.addEventListener("selectionchange", s2), t3.on("destroy", function() {
@@ -18994,60 +18992,52 @@ var ace$1 = { exports: {} };
18994
18992
  n2.className = "ace_text-input", n2.setAttribute("wrap", "off"), n2.setAttribute("autocorrect", "off"), n2.setAttribute("autocapitalize", "off"), n2.setAttribute("spellcheck", false), n2.style.opacity = "0", e2.insertBefore(n2, e2.firstChild);
18995
18993
  var y2 = false, b = false, w = false, E = false, S = "";
18996
18994
  g || (n2.style.fontSize = "1px");
18997
- var x = false, T2 = false, N2 = "", C = 0, k = 0, L = 0, A = Number.MAX_SAFE_INTEGER, O = Number.MIN_SAFE_INTEGER, M = 0;
18995
+ var x = false, T2 = false, N2 = "", C = 0, k = 0, L = 0;
18998
18996
  try {
18999
- var _ = document.activeElement === n2;
19000
- } catch (D) {
18997
+ var A = document.activeElement === n2;
18998
+ } catch (O) {
19001
18999
  }
19002
- this.setNumberOfExtraLines = function(e3) {
19003
- A = Number.MAX_SAFE_INTEGER, O = Number.MIN_SAFE_INTEGER;
19004
- if (e3 < 0) {
19005
- M = 0;
19006
- return;
19007
- }
19008
- M = e3;
19009
- }, this.setAriaOptions = function(e3) {
19000
+ this.setAriaOptions = function(e3) {
19010
19001
  e3.activeDescendant ? (n2.setAttribute("aria-haspopup", "true"), n2.setAttribute("aria-autocomplete", e3.inline ? "both" : "list"), n2.setAttribute("aria-activedescendant", e3.activeDescendant)) : (n2.setAttribute("aria-haspopup", "false"), n2.setAttribute("aria-autocomplete", "both"), n2.removeAttribute("aria-activedescendant")), e3.role && n2.setAttribute("role", e3.role);
19011
- if (e3.setLabel) {
19012
- n2.setAttribute("aria-roledescription", i2("editor"));
19013
- if (t2.session) {
19014
- var r3 = t2.session.selection.cursor.row;
19015
- n2.setAttribute("aria-label", i2("Cursor at row $0", [r3 + 1]));
19016
- }
19017
- }
19018
- }, this.setAriaOptions({ role: "textbox" }), r2.addListener(n2, "blur", function(e3) {
19002
+ }, this.setAriaLabel = function() {
19003
+ if (t2.session && t2.renderer.enableKeyboardAccessibility) {
19004
+ var e3 = t2.session.selection.cursor.row;
19005
+ n2.setAttribute("aria-roledescription", i2("editor")), n2.setAttribute("aria-label", i2("Cursor at row $0", [e3 + 1]));
19006
+ } else
19007
+ n2.removeAttribute("aria-roledescription"), n2.removeAttribute("aria-label");
19008
+ }, this.setAriaOptions({ role: "textbox" }), this.setAriaLabel(), r2.addListener(n2, "blur", function(e3) {
19019
19009
  if (T2)
19020
19010
  return;
19021
- t2.onBlur(e3), _ = false;
19011
+ t2.onBlur(e3), A = false, g && !v && document.removeEventListener("selectionchange", P);
19022
19012
  }, t2), r2.addListener(n2, "focus", function(e3) {
19023
19013
  if (T2)
19024
19014
  return;
19025
- _ = true;
19015
+ A = true;
19026
19016
  if (s.isEdge)
19027
19017
  try {
19028
19018
  if (!document.hasFocus())
19029
19019
  return;
19030
19020
  } catch (e4) {
19031
19021
  }
19032
- t2.onFocus(e3), s.isEdge ? setTimeout(H) : H();
19022
+ t2.onFocus(e3), s.isEdge ? setTimeout(M) : M(), g && !v && document.addEventListener("selectionchange", P);
19033
19023
  }, t2), this.$focusScroll = false, this.focus = function() {
19034
- this.setAriaOptions({ setLabel: t2.renderer.enableKeyboardAccessibility });
19024
+ this.setAriaLabel();
19035
19025
  if (S || c2 || this.$focusScroll == "browser")
19036
19026
  return n2.focus({ preventScroll: true });
19037
19027
  var e3 = n2.style.top;
19038
19028
  n2.style.position = "fixed", n2.style.top = "0px";
19039
19029
  try {
19040
- var r3 = n2.getBoundingClientRect().top != 0;
19041
- } catch (i3) {
19030
+ var t3 = n2.getBoundingClientRect().top != 0;
19031
+ } catch (r3) {
19042
19032
  return;
19043
19033
  }
19044
- var s2 = [];
19045
- if (r3) {
19046
- var o2 = n2.parentElement;
19047
- while (o2 && o2.nodeType == 1)
19048
- s2.push(o2), o2.setAttribute("ace_nocontext", true), !o2.parentElement && o2.getRootNode ? o2 = o2.getRootNode().host : o2 = o2.parentElement;
19034
+ var i3 = [];
19035
+ if (t3) {
19036
+ var s2 = n2.parentElement;
19037
+ while (s2 && s2.nodeType == 1)
19038
+ i3.push(s2), s2.setAttribute("ace_nocontext", true), !s2.parentElement && s2.getRootNode ? s2 = s2.getRootNode().host : s2 = s2.parentElement;
19049
19039
  }
19050
- n2.focus({ preventScroll: true }), r3 && s2.forEach(function(e4) {
19040
+ n2.focus({ preventScroll: true }), t3 && i3.forEach(function(e4) {
19051
19041
  e4.removeAttribute("ace_nocontext");
19052
19042
  }), setTimeout(function() {
19053
19043
  n2.style.position = "", n2.style.top == "0px" && (n2.style.top = e3);
@@ -19055,21 +19045,16 @@ var ace$1 = { exports: {} };
19055
19045
  }, this.blur = function() {
19056
19046
  n2.blur();
19057
19047
  }, this.isFocused = function() {
19058
- return _;
19048
+ return A;
19059
19049
  }, t2.on("beforeEndOperation", function() {
19060
19050
  var e3 = t2.curOp, r3 = e3 && e3.command && e3.command.name;
19061
19051
  if (r3 == "insertstring")
19062
19052
  return;
19063
19053
  var i3 = r3 && (e3.docChanged || e3.selectionChanged);
19064
- w && i3 && (N2 = n2.value = "", K()), H();
19054
+ w && i3 && (N2 = n2.value = "", V()), M();
19065
19055
  });
19066
- var P = function(e3, n3) {
19067
- var r3 = n3;
19068
- for (var i3 = 1; i3 <= e3 - A && i3 < 2 * M + 1; i3++)
19069
- r3 += t2.session.getLine(e3 - i3).length + 1;
19070
- return r3;
19071
- }, H = v ? function(e3) {
19072
- if (!_ || y2 && !e3 || E)
19056
+ var M = v ? function(e3) {
19057
+ if (!A || y2 && !e3 || E)
19073
19058
  return;
19074
19059
  e3 || (e3 = "");
19075
19060
  var r3 = "\n ab" + e3 + "cde fg\n";
@@ -19079,59 +19064,49 @@ var ace$1 = { exports: {} };
19079
19064
  } : function() {
19080
19065
  if (w || E)
19081
19066
  return;
19082
- if (!_ && !I)
19067
+ if (!A && !B)
19083
19068
  return;
19084
19069
  w = true;
19085
19070
  var e3 = 0, r3 = 0, i3 = "";
19086
19071
  if (t2.session) {
19087
19072
  var s2 = t2.selection, o2 = s2.getRange(), u2 = s2.cursor.row;
19088
- if (u2 === O + 1)
19089
- A = O + 1, O = A + 2 * M;
19090
- else if (u2 === A - 1)
19091
- O = A - 1, A = O - 2 * M;
19092
- else if (u2 < A - 1 || u2 > O + 1)
19093
- A = u2 > M ? u2 - M : 0, O = u2 > M ? u2 + M : 2 * M;
19094
- var a2 = [];
19095
- for (var f3 = A; f3 <= O; f3++)
19096
- a2.push(t2.session.getLine(f3));
19097
- i3 = a2.join("\n"), e3 = P(o2.start.row, o2.start.column), r3 = P(o2.end.row, o2.end.column);
19098
- if (o2.start.row < A) {
19099
- var l2 = t2.session.getLine(A - 1);
19100
- e3 = o2.start.row < A - 1 ? 0 : e3, r3 += l2.length + 1, i3 = l2 + "\n" + i3;
19101
- } else if (o2.end.row > O) {
19102
- var c3 = t2.session.getLine(O + 1);
19103
- r3 = o2.end.row > O + 1 ? c3.length : o2.end.column, r3 += i3.length + 1, i3 = i3 + "\n" + c3;
19073
+ e3 = o2.start.column, r3 = o2.end.column, i3 = t2.session.getLine(u2);
19074
+ if (o2.start.row != u2) {
19075
+ var a2 = t2.session.getLine(u2 - 1);
19076
+ e3 = o2.start.row < u2 - 1 ? 0 : e3, r3 += a2.length + 1, i3 = a2 + "\n" + i3;
19077
+ } else if (o2.end.row != u2) {
19078
+ var f3 = t2.session.getLine(u2 + 1);
19079
+ r3 = o2.end.row > u2 + 1 ? f3.length : r3, r3 += i3.length + 1, i3 = i3 + "\n" + f3;
19104
19080
  } else
19105
19081
  g && u2 > 0 && (i3 = "\n" + i3, r3 += 1, e3 += 1);
19106
19082
  i3.length > h2 && (e3 < h2 && r3 < h2 ? i3 = i3.slice(0, h2) : (i3 = "\n", e3 == r3 ? e3 = r3 = 0 : (e3 = 0, r3 = 1)));
19107
- var p2 = i3 + "\n\n";
19108
- p2 != N2 && (n2.value = N2 = p2, C = k = p2.length);
19109
19083
  }
19110
- I && (C = n2.selectionStart, k = n2.selectionEnd);
19084
+ var l2 = i3 + "\n\n";
19085
+ l2 != N2 && (n2.value = N2 = l2, C = k = l2.length), B && (C = n2.selectionStart, k = n2.selectionEnd);
19111
19086
  if (k != r3 || C != e3 || n2.selectionEnd != k)
19112
19087
  try {
19113
19088
  n2.setSelectionRange(e3, r3), C = e3, k = r3;
19114
- } catch (d2) {
19089
+ } catch (c3) {
19115
19090
  }
19116
19091
  w = false;
19117
19092
  };
19118
- this.resetSelection = H, _ && t2.onFocus();
19119
- var B = function(e3) {
19093
+ this.resetSelection = M, A && t2.onFocus();
19094
+ var _ = function(e3) {
19120
19095
  return e3.selectionStart === 0 && e3.selectionEnd >= N2.length && e3.value === N2 && N2 && e3.selectionEnd !== k;
19121
- }, j2 = function(e3) {
19096
+ }, D = function(e3) {
19122
19097
  if (w)
19123
19098
  return;
19124
- y2 ? y2 = false : B(n2) ? (t2.selectAll(), H()) : g && n2.selectionStart != C && H();
19125
- }, F = null;
19099
+ y2 ? y2 = false : _(n2) ? (t2.selectAll(), M()) : g && n2.selectionStart != C && M();
19100
+ }, H = null;
19126
19101
  this.setInputHandler = function(e3) {
19127
- F = e3;
19102
+ H = e3;
19128
19103
  }, this.getInputHandler = function() {
19129
- return F;
19104
+ return H;
19130
19105
  };
19131
- var I = false, q2 = function(e3, r3) {
19132
- I && (I = false);
19106
+ var B = false, j2 = function(e3, r3) {
19107
+ B && (B = false);
19133
19108
  if (b)
19134
- return H(), e3 && t2.onPaste(e3), b = false, "";
19109
+ return M(), e3 && t2.onPaste(e3), b = false, "";
19135
19110
  var i3 = n2.selectionStart, o2 = n2.selectionEnd, u2 = C, a2 = N2.length - k, f3 = e3, l2 = e3.length - i3, c3 = e3.length - o2, h3 = 0;
19136
19111
  while (u2 > 0 && N2[h3] == e3[h3])
19137
19112
  h3++, u2--;
@@ -19146,18 +19121,18 @@ var ace$1 = { exports: {} };
19146
19121
  E = true;
19147
19122
  var d2 = false;
19148
19123
  return s.isAndroid && f3 == ". " && (f3 = " ", d2 = true), f3 && !u2 && !a2 && !l2 && !c3 || x ? t2.onTextInput(f3) : t2.onTextInput(f3, { extendLeft: u2, extendRight: a2, restoreStart: l2, restoreEnd: c3 }), E = false, N2 = e3, C = i3, k = o2, L = c3, d2 ? "\n" : f3;
19149
- }, R2 = function(e3) {
19124
+ }, F = function(e3) {
19150
19125
  if (w)
19151
- return J();
19126
+ return X();
19152
19127
  if (e3 && e3.inputType) {
19153
19128
  if (e3.inputType == "historyUndo")
19154
19129
  return t2.execCommand("undo");
19155
19130
  if (e3.inputType == "historyRedo")
19156
19131
  return t2.execCommand("redo");
19157
19132
  }
19158
- var r3 = n2.value, i3 = q2(r3, true);
19159
- (r3.length > h2 + 100 || m.test(i3) || g && C < 1 && C == k) && H();
19160
- }, U = function(e3, t3, n3) {
19133
+ var r3 = n2.value, i3 = j2(r3, true);
19134
+ (r3.length > h2 + 100 || m.test(i3) || g && C < 1 && C == k) && M();
19135
+ }, I = function(e3, t3, n3) {
19161
19136
  var r3 = e3.clipboardData || window.clipboardData;
19162
19137
  if (!r3 || f2)
19163
19138
  return;
@@ -19166,67 +19141,67 @@ var ace$1 = { exports: {} };
19166
19141
  return t3 ? r3.setData(i3, t3) !== false : r3.getData(i3);
19167
19142
  } catch (e4) {
19168
19143
  if (!n3)
19169
- return U(e4, t3, true);
19144
+ return I(e4, t3, true);
19170
19145
  }
19171
- }, z = function(e3, i3) {
19146
+ }, q2 = function(e3, i3) {
19172
19147
  var s2 = t2.getCopyText();
19173
19148
  if (!s2)
19174
19149
  return r2.preventDefault(e3);
19175
- U(e3, s2) ? (v && (H(s2), y2 = s2, setTimeout(function() {
19150
+ I(e3, s2) ? (v && (M(s2), y2 = s2, setTimeout(function() {
19176
19151
  y2 = false;
19177
19152
  }, 10)), i3 ? t2.onCut() : t2.onCopy(), r2.preventDefault(e3)) : (y2 = true, n2.value = s2, n2.select(), setTimeout(function() {
19178
- y2 = false, H(), i3 ? t2.onCut() : t2.onCopy();
19153
+ y2 = false, M(), i3 ? t2.onCut() : t2.onCopy();
19179
19154
  }));
19180
- }, W = function(e3) {
19181
- z(e3, true);
19182
- }, X = function(e3) {
19183
- z(e3, false);
19184
- }, V = function(e3) {
19185
- var i3 = U(e3);
19155
+ }, R2 = function(e3) {
19156
+ q2(e3, true);
19157
+ }, U = function(e3) {
19158
+ q2(e3, false);
19159
+ }, z = function(e3) {
19160
+ var i3 = I(e3);
19186
19161
  if (a.pasteCancelled())
19187
19162
  return;
19188
- typeof i3 == "string" ? (i3 && t2.onPaste(i3, e3), s.isIE && setTimeout(H), r2.preventDefault(e3)) : (n2.value = "", b = true);
19163
+ typeof i3 == "string" ? (i3 && t2.onPaste(i3, e3), s.isIE && setTimeout(M), r2.preventDefault(e3)) : (n2.value = "", b = true);
19189
19164
  };
19190
- r2.addCommandKeyListener(n2, t2.onCommandKey.bind(t2), t2), r2.addListener(n2, "select", j2, t2), r2.addListener(n2, "input", R2, t2), r2.addListener(n2, "cut", W, t2), r2.addListener(n2, "copy", X, t2), r2.addListener(n2, "paste", V, t2), (!("oncut" in n2) || !("oncopy" in n2) || !("onpaste" in n2)) && r2.addListener(e2, "keydown", function(e3) {
19165
+ r2.addCommandKeyListener(n2, t2.onCommandKey.bind(t2), t2), r2.addListener(n2, "select", D, t2), r2.addListener(n2, "input", F, t2), r2.addListener(n2, "cut", R2, t2), r2.addListener(n2, "copy", U, t2), r2.addListener(n2, "paste", z, t2), (!("oncut" in n2) || !("oncopy" in n2) || !("onpaste" in n2)) && r2.addListener(e2, "keydown", function(e3) {
19191
19166
  if (s.isMac && !e3.metaKey || !e3.ctrlKey)
19192
19167
  return;
19193
19168
  switch (e3.keyCode) {
19194
19169
  case 67:
19195
- X(e3);
19170
+ U(e3);
19196
19171
  break;
19197
19172
  case 86:
19198
- V(e3);
19173
+ z(e3);
19199
19174
  break;
19200
19175
  case 88:
19201
- W(e3);
19176
+ R2(e3);
19202
19177
  }
19203
19178
  }, t2);
19204
- var $2 = function(e3) {
19179
+ var W = function(e3) {
19205
19180
  if (w || !t2.onCompositionStart || t2.$readOnly)
19206
19181
  return;
19207
19182
  w = {};
19208
19183
  if (x)
19209
19184
  return;
19210
- e3.data && (w.useTextareaForIME = false), setTimeout(J, 0), t2._signal("compositionStart"), t2.on("mousedown", Q);
19185
+ e3.data && (w.useTextareaForIME = false), setTimeout(X, 0), t2._signal("compositionStart"), t2.on("mousedown", $2);
19211
19186
  var r3 = t2.getSelectionRange();
19212
19187
  r3.end.row = r3.start.row, r3.end.column = r3.start.column, w.markerRange = r3, w.selectionStart = C, t2.onCompositionStart(w), w.useTextareaForIME ? (N2 = n2.value = "", C = 0, k = 0) : (n2.msGetInputContext && (w.context = n2.msGetInputContext()), n2.getInputContext && (w.context = n2.getInputContext()));
19213
- }, J = function() {
19188
+ }, X = function() {
19214
19189
  if (!w || !t2.onCompositionUpdate || t2.$readOnly)
19215
19190
  return;
19216
19191
  if (x)
19217
- return Q();
19192
+ return $2();
19218
19193
  if (w.useTextareaForIME)
19219
19194
  t2.onCompositionUpdate(n2.value);
19220
19195
  else {
19221
19196
  var e3 = n2.value;
19222
- q2(e3), w.markerRange && (w.context && (w.markerRange.start.column = w.selectionStart = w.context.compositionStartOffset), w.markerRange.end.column = w.markerRange.start.column + k - w.selectionStart + L);
19197
+ j2(e3), w.markerRange && (w.context && (w.markerRange.start.column = w.selectionStart = w.context.compositionStartOffset), w.markerRange.end.column = w.markerRange.start.column + k - w.selectionStart + L);
19223
19198
  }
19224
- }, K = function(e3) {
19199
+ }, V = function(e3) {
19225
19200
  if (!t2.onCompositionEnd || t2.$readOnly)
19226
19201
  return;
19227
- w = false, t2.onCompositionEnd(), t2.off("mousedown", Q), e3 && R2();
19228
- }, G = u.delayedCall(J, 50).schedule.bind(null, null);
19229
- r2.addListener(n2, "compositionstart", $2, t2), r2.addListener(n2, "compositionupdate", J, t2), r2.addListener(n2, "keyup", Y, t2), r2.addListener(n2, "keydown", G, t2), r2.addListener(n2, "compositionend", K, t2), this.getElement = function() {
19202
+ w = false, t2.onCompositionEnd(), t2.off("mousedown", $2), e3 && F();
19203
+ }, J = u.delayedCall(X, 50).schedule.bind(null, null);
19204
+ r2.addListener(n2, "compositionstart", W, t2), r2.addListener(n2, "compositionupdate", X, t2), r2.addListener(n2, "keyup", K, t2), r2.addListener(n2, "keydown", J, t2), r2.addListener(n2, "compositionend", V, t2), this.getElement = function() {
19230
19205
  return n2;
19231
19206
  }, this.setCommandMode = function(e3) {
19232
19207
  x = e3, n2.readOnly = false;
@@ -19234,7 +19209,7 @@ var ace$1 = { exports: {} };
19234
19209
  x || (n2.readOnly = e3);
19235
19210
  }, this.setCopyWithEmptySelection = function(e3) {
19236
19211
  }, this.onContextMenu = function(e3) {
19237
- I = true, H(), t2._emit("nativecontextmenu", { target: t2, domEvent: e3 }), this.moveToMouse(e3, true);
19212
+ B = true, M(), t2._emit("nativecontextmenu", { target: t2, domEvent: e3 }), this.moveToMouse(e3, true);
19238
19213
  }, this.moveToMouse = function(e3, i3) {
19239
19214
  S || (S = n2.style.cssText), n2.style.cssText = (i3 ? "z-index:100000;" : "") + (s.isIE ? "opacity:0.1;" : "") + "text-indent: -" + (C + k) * t2.renderer.characterWidth * 0.5 + "px;";
19240
19215
  var u2 = t2.container.getBoundingClientRect(), a2 = o.computedStyle(t2.container), f3 = u2.top + (parseInt(a2.borderTopWidth) || 0), l2 = u2.left + (parseInt(u2.borderLeftWidth) || 0), c3 = u2.bottom - f3 - n2.clientHeight - 2, h3 = function(e4) {
@@ -19243,14 +19218,14 @@ var ace$1 = { exports: {} };
19243
19218
  h3(e3);
19244
19219
  if (e3.type != "mousedown")
19245
19220
  return;
19246
- t2.renderer.$isMousePressed = true, clearTimeout(Z), s.isWin && r2.capture(t2.container, h3, et);
19247
- }, this.onContextMenuClose = et;
19248
- var Z, tt = function(e3) {
19249
- t2.textInput.onContextMenu(e3), et();
19221
+ t2.renderer.$isMousePressed = true, clearTimeout(Q), s.isWin && r2.capture(t2.container, h3, G);
19222
+ }, this.onContextMenuClose = G;
19223
+ var Q, Y = function(e3) {
19224
+ t2.textInput.onContextMenu(e3), G();
19250
19225
  };
19251
- r2.addListener(n2, "mouseup", tt, t2), r2.addListener(n2, "mousedown", function(e3) {
19252
- e3.preventDefault(), et();
19253
- }, t2), r2.addListener(t2.renderer.scroller, "contextmenu", tt, t2), r2.addListener(n2, "contextmenu", tt, t2), v && nt(e2, t2, n2), this.destroy = function() {
19226
+ r2.addListener(n2, "mouseup", Y, t2), r2.addListener(n2, "mousedown", function(e3) {
19227
+ e3.preventDefault(), G();
19228
+ }, t2), r2.addListener(t2.renderer.scroller, "contextmenu", Y, t2), r2.addListener(n2, "contextmenu", Y, t2), v && Z(e2, t2, n2), this.destroy = function() {
19254
19229
  n2.parentElement && n2.parentElement.removeChild(n2);
19255
19230
  };
19256
19231
  };
@@ -19581,12 +19556,8 @@ var ace$1 = { exports: {} };
19581
19556
  if (e2.$tooltipFollowsMouse)
19582
19557
  c2(u2);
19583
19558
  else {
19584
- var l2 = u2.getGutterRow(), h2 = n2.$lines.get(l2);
19585
- if (h2) {
19586
- var p = h2.element.querySelector(".ace_gutter_annotation"), d = p.getBoundingClientRect(), v = r3.getElement().style;
19587
- v.left = d.right + "px", v.top = d.bottom + "px";
19588
- } else
19589
- c2(u2);
19559
+ var l2 = n2.$lines.cells[i4].element.querySelector("[class*=ace_icon]"), h2 = l2.getBoundingClientRect(), p = r3.getElement().style;
19560
+ p.left = h2.right + "px", p.top = h2.bottom + "px";
19590
19561
  }
19591
19562
  }
19592
19563
  function f3() {
@@ -19745,9 +19716,6 @@ var ace$1 = { exports: {} };
19745
19716
  this.stopPropagation(), this.preventDefault();
19746
19717
  }, e2.prototype.getDocumentPosition = function() {
19747
19718
  return this.$pos ? this.$pos : (this.$pos = this.editor.renderer.screenToTextCoordinates(this.clientX, this.clientY), this.$pos);
19748
- }, e2.prototype.getGutterRow = function() {
19749
- var e3 = this.getDocumentPosition().row, t2 = this.editor.session.documentToScreenRow(e3, 0), n2 = this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row, 0);
19750
- return t2 - n2;
19751
19719
  }, e2.prototype.inSelection = function() {
19752
19720
  if (this.$inSelection !== null)
19753
19721
  return this.$inSelection;
@@ -20440,129 +20408,129 @@ var ace$1 = { exports: {} };
20440
20408
  }();
20441
20409
  t.BidiHandler = o;
20442
20410
  }), ace.define("ace/selection", ["require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter", "ace/range"], function(e, t, n) {
20443
- var r2 = e("./lib/oop"), i2 = e("./lib/lang"), s = e("./lib/event_emitter").EventEmitter, o = e("./range").Range, u = function() {
20444
- function e2(e3) {
20445
- this.session = e3, this.doc = e3.getDocument(), this.clearSelection(), this.cursor = this.lead = this.doc.createAnchor(0, 0), this.anchor = this.doc.createAnchor(0, 0), this.$silent = false;
20446
- var t2 = this;
20447
- this.cursor.on("change", function(e4) {
20448
- t2.$cursorChanged = true, t2.$silent || t2._emit("changeCursor"), !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection"), !t2.$keepDesiredColumnOnChange && e4.old.column != e4.value.column && (t2.$desiredColumn = null);
20449
- }), this.anchor.on("change", function() {
20450
- t2.$anchorChanged = true, !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection");
20451
- });
20452
- }
20453
- return e2.prototype.isEmpty = function() {
20411
+ var r2 = e("./lib/oop"), i2 = e("./lib/lang"), s = e("./lib/event_emitter").EventEmitter, o = e("./range").Range, u = function(e2) {
20412
+ this.session = e2, this.doc = e2.getDocument(), this.clearSelection(), this.cursor = this.lead = this.doc.createAnchor(0, 0), this.anchor = this.doc.createAnchor(0, 0), this.$silent = false;
20413
+ var t2 = this;
20414
+ this.cursor.on("change", function(e3) {
20415
+ t2.$cursorChanged = true, t2.$silent || t2._emit("changeCursor"), !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection"), !t2.$keepDesiredColumnOnChange && e3.old.column != e3.value.column && (t2.$desiredColumn = null);
20416
+ }), this.anchor.on("change", function() {
20417
+ t2.$anchorChanged = true, !t2.$isEmpty && !t2.$silent && t2._emit("changeSelection");
20418
+ });
20419
+ };
20420
+ (function() {
20421
+ r2.implement(this, s), this.isEmpty = function() {
20454
20422
  return this.$isEmpty || this.anchor.row == this.lead.row && this.anchor.column == this.lead.column;
20455
- }, e2.prototype.isMultiLine = function() {
20423
+ }, this.isMultiLine = function() {
20456
20424
  return !this.$isEmpty && this.anchor.row != this.cursor.row;
20457
- }, e2.prototype.getCursor = function() {
20425
+ }, this.getCursor = function() {
20458
20426
  return this.lead.getPosition();
20459
- }, e2.prototype.setAnchor = function(e3, t2) {
20460
- this.$isEmpty = false, this.anchor.setPosition(e3, t2);
20461
- }, e2.prototype.getAnchor = function() {
20427
+ }, this.setAnchor = function(e2, t2) {
20428
+ this.$isEmpty = false, this.anchor.setPosition(e2, t2);
20429
+ }, this.setSelectionAnchor = this.setAnchor, this.getAnchor = function() {
20462
20430
  return this.$isEmpty ? this.getSelectionLead() : this.anchor.getPosition();
20463
- }, e2.prototype.getSelectionLead = function() {
20431
+ }, this.getSelectionAnchor = this.getAnchor, this.getSelectionLead = function() {
20464
20432
  return this.lead.getPosition();
20465
- }, e2.prototype.isBackwards = function() {
20466
- var e3 = this.anchor, t2 = this.lead;
20467
- return e3.row > t2.row || e3.row == t2.row && e3.column > t2.column;
20468
- }, e2.prototype.getRange = function() {
20469
- var e3 = this.anchor, t2 = this.lead;
20470
- return this.$isEmpty ? o.fromPoints(t2, t2) : this.isBackwards() ? o.fromPoints(t2, e3) : o.fromPoints(e3, t2);
20471
- }, e2.prototype.clearSelection = function() {
20433
+ }, this.isBackwards = function() {
20434
+ var e2 = this.anchor, t2 = this.lead;
20435
+ return e2.row > t2.row || e2.row == t2.row && e2.column > t2.column;
20436
+ }, this.getRange = function() {
20437
+ var e2 = this.anchor, t2 = this.lead;
20438
+ return this.$isEmpty ? o.fromPoints(t2, t2) : this.isBackwards() ? o.fromPoints(t2, e2) : o.fromPoints(e2, t2);
20439
+ }, this.clearSelection = function() {
20472
20440
  this.$isEmpty || (this.$isEmpty = true, this._emit("changeSelection"));
20473
- }, e2.prototype.selectAll = function() {
20441
+ }, this.selectAll = function() {
20474
20442
  this.$setSelection(0, 0, Number.MAX_VALUE, Number.MAX_VALUE);
20475
- }, e2.prototype.setRange = function(e3, t2) {
20476
- var n2 = t2 ? e3.end : e3.start, r3 = t2 ? e3.start : e3.end;
20443
+ }, this.setRange = this.setSelectionRange = function(e2, t2) {
20444
+ var n2 = t2 ? e2.end : e2.start, r3 = t2 ? e2.start : e2.end;
20477
20445
  this.$setSelection(n2.row, n2.column, r3.row, r3.column);
20478
- }, e2.prototype.$setSelection = function(e3, t2, n2, r3) {
20446
+ }, this.$setSelection = function(e2, t2, n2, r3) {
20479
20447
  if (this.$silent)
20480
20448
  return;
20481
20449
  var i3 = this.$isEmpty, s2 = this.inMultiSelectMode;
20482
- this.$silent = true, this.$cursorChanged = this.$anchorChanged = false, this.anchor.setPosition(e3, t2), this.cursor.setPosition(n2, r3), this.$isEmpty = !o.comparePoints(this.anchor, this.cursor), this.$silent = false, this.$cursorChanged && this._emit("changeCursor"), (this.$cursorChanged || this.$anchorChanged || i3 != this.$isEmpty || s2) && this._emit("changeSelection");
20483
- }, e2.prototype.$moveSelection = function(e3) {
20450
+ this.$silent = true, this.$cursorChanged = this.$anchorChanged = false, this.anchor.setPosition(e2, t2), this.cursor.setPosition(n2, r3), this.$isEmpty = !o.comparePoints(this.anchor, this.cursor), this.$silent = false, this.$cursorChanged && this._emit("changeCursor"), (this.$cursorChanged || this.$anchorChanged || i3 != this.$isEmpty || s2) && this._emit("changeSelection");
20451
+ }, this.$moveSelection = function(e2) {
20484
20452
  var t2 = this.lead;
20485
- this.$isEmpty && this.setSelectionAnchor(t2.row, t2.column), e3.call(this);
20486
- }, e2.prototype.selectTo = function(e3, t2) {
20453
+ this.$isEmpty && this.setSelectionAnchor(t2.row, t2.column), e2.call(this);
20454
+ }, this.selectTo = function(e2, t2) {
20487
20455
  this.$moveSelection(function() {
20488
- this.moveCursorTo(e3, t2);
20456
+ this.moveCursorTo(e2, t2);
20489
20457
  });
20490
- }, e2.prototype.selectToPosition = function(e3) {
20458
+ }, this.selectToPosition = function(e2) {
20491
20459
  this.$moveSelection(function() {
20492
- this.moveCursorToPosition(e3);
20460
+ this.moveCursorToPosition(e2);
20493
20461
  });
20494
- }, e2.prototype.moveTo = function(e3, t2) {
20495
- this.clearSelection(), this.moveCursorTo(e3, t2);
20496
- }, e2.prototype.moveToPosition = function(e3) {
20497
- this.clearSelection(), this.moveCursorToPosition(e3);
20498
- }, e2.prototype.selectUp = function() {
20462
+ }, this.moveTo = function(e2, t2) {
20463
+ this.clearSelection(), this.moveCursorTo(e2, t2);
20464
+ }, this.moveToPosition = function(e2) {
20465
+ this.clearSelection(), this.moveCursorToPosition(e2);
20466
+ }, this.selectUp = function() {
20499
20467
  this.$moveSelection(this.moveCursorUp);
20500
- }, e2.prototype.selectDown = function() {
20468
+ }, this.selectDown = function() {
20501
20469
  this.$moveSelection(this.moveCursorDown);
20502
- }, e2.prototype.selectRight = function() {
20470
+ }, this.selectRight = function() {
20503
20471
  this.$moveSelection(this.moveCursorRight);
20504
- }, e2.prototype.selectLeft = function() {
20472
+ }, this.selectLeft = function() {
20505
20473
  this.$moveSelection(this.moveCursorLeft);
20506
- }, e2.prototype.selectLineStart = function() {
20474
+ }, this.selectLineStart = function() {
20507
20475
  this.$moveSelection(this.moveCursorLineStart);
20508
- }, e2.prototype.selectLineEnd = function() {
20476
+ }, this.selectLineEnd = function() {
20509
20477
  this.$moveSelection(this.moveCursorLineEnd);
20510
- }, e2.prototype.selectFileEnd = function() {
20478
+ }, this.selectFileEnd = function() {
20511
20479
  this.$moveSelection(this.moveCursorFileEnd);
20512
- }, e2.prototype.selectFileStart = function() {
20480
+ }, this.selectFileStart = function() {
20513
20481
  this.$moveSelection(this.moveCursorFileStart);
20514
- }, e2.prototype.selectWordRight = function() {
20482
+ }, this.selectWordRight = function() {
20515
20483
  this.$moveSelection(this.moveCursorWordRight);
20516
- }, e2.prototype.selectWordLeft = function() {
20484
+ }, this.selectWordLeft = function() {
20517
20485
  this.$moveSelection(this.moveCursorWordLeft);
20518
- }, e2.prototype.getWordRange = function(e3, t2) {
20486
+ }, this.getWordRange = function(e2, t2) {
20519
20487
  if (typeof t2 == "undefined") {
20520
- var n2 = e3 || this.lead;
20521
- e3 = n2.row, t2 = n2.column;
20488
+ var n2 = e2 || this.lead;
20489
+ e2 = n2.row, t2 = n2.column;
20522
20490
  }
20523
- return this.session.getWordRange(e3, t2);
20524
- }, e2.prototype.selectWord = function() {
20491
+ return this.session.getWordRange(e2, t2);
20492
+ }, this.selectWord = function() {
20525
20493
  this.setSelectionRange(this.getWordRange());
20526
- }, e2.prototype.selectAWord = function() {
20527
- var e3 = this.getCursor(), t2 = this.session.getAWordRange(e3.row, e3.column);
20494
+ }, this.selectAWord = function() {
20495
+ var e2 = this.getCursor(), t2 = this.session.getAWordRange(e2.row, e2.column);
20528
20496
  this.setSelectionRange(t2);
20529
- }, e2.prototype.getLineRange = function(e3, t2) {
20530
- var n2 = typeof e3 == "number" ? e3 : this.lead.row, r3, i3 = this.session.getFoldLine(n2);
20497
+ }, this.getLineRange = function(e2, t2) {
20498
+ var n2 = typeof e2 == "number" ? e2 : this.lead.row, r3, i3 = this.session.getFoldLine(n2);
20531
20499
  return i3 ? (n2 = i3.start.row, r3 = i3.end.row) : r3 = n2, t2 === true ? new o(n2, 0, r3, this.session.getLine(r3).length) : new o(n2, 0, r3 + 1, 0);
20532
- }, e2.prototype.selectLine = function() {
20500
+ }, this.selectLine = function() {
20533
20501
  this.setSelectionRange(this.getLineRange());
20534
- }, e2.prototype.moveCursorUp = function() {
20502
+ }, this.moveCursorUp = function() {
20535
20503
  this.moveCursorBy(-1, 0);
20536
- }, e2.prototype.moveCursorDown = function() {
20504
+ }, this.moveCursorDown = function() {
20537
20505
  this.moveCursorBy(1, 0);
20538
- }, e2.prototype.wouldMoveIntoSoftTab = function(e3, t2, n2) {
20539
- var r3 = e3.column, i3 = e3.column + t2;
20540
- return n2 < 0 && (r3 = e3.column - t2, i3 = e3.column), this.session.isTabStop(e3) && this.doc.getLine(e3.row).slice(r3, i3).split(" ").length - 1 == t2;
20541
- }, e2.prototype.moveCursorLeft = function() {
20542
- var e3 = this.lead.getPosition(), t2;
20543
- if (t2 = this.session.getFoldAt(e3.row, e3.column, -1))
20506
+ }, this.wouldMoveIntoSoftTab = function(e2, t2, n2) {
20507
+ var r3 = e2.column, i3 = e2.column + t2;
20508
+ return n2 < 0 && (r3 = e2.column - t2, i3 = e2.column), this.session.isTabStop(e2) && this.doc.getLine(e2.row).slice(r3, i3).split(" ").length - 1 == t2;
20509
+ }, this.moveCursorLeft = function() {
20510
+ var e2 = this.lead.getPosition(), t2;
20511
+ if (t2 = this.session.getFoldAt(e2.row, e2.column, -1))
20544
20512
  this.moveCursorTo(t2.start.row, t2.start.column);
20545
- else if (e3.column === 0)
20546
- e3.row > 0 && this.moveCursorTo(e3.row - 1, this.doc.getLine(e3.row - 1).length);
20513
+ else if (e2.column === 0)
20514
+ e2.row > 0 && this.moveCursorTo(e2.row - 1, this.doc.getLine(e2.row - 1).length);
20547
20515
  else {
20548
20516
  var n2 = this.session.getTabSize();
20549
- this.wouldMoveIntoSoftTab(e3, n2, -1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, -n2) : this.moveCursorBy(0, -1);
20517
+ this.wouldMoveIntoSoftTab(e2, n2, -1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, -n2) : this.moveCursorBy(0, -1);
20550
20518
  }
20551
- }, e2.prototype.moveCursorRight = function() {
20552
- var e3 = this.lead.getPosition(), t2;
20553
- if (t2 = this.session.getFoldAt(e3.row, e3.column, 1))
20519
+ }, this.moveCursorRight = function() {
20520
+ var e2 = this.lead.getPosition(), t2;
20521
+ if (t2 = this.session.getFoldAt(e2.row, e2.column, 1))
20554
20522
  this.moveCursorTo(t2.end.row, t2.end.column);
20555
20523
  else if (this.lead.column == this.doc.getLine(this.lead.row).length)
20556
20524
  this.lead.row < this.doc.getLength() - 1 && this.moveCursorTo(this.lead.row + 1, 0);
20557
20525
  else {
20558
- var n2 = this.session.getTabSize(), e3 = this.lead;
20559
- this.wouldMoveIntoSoftTab(e3, n2, 1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, n2) : this.moveCursorBy(0, 1);
20526
+ var n2 = this.session.getTabSize(), e2 = this.lead;
20527
+ this.wouldMoveIntoSoftTab(e2, n2, 1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, n2) : this.moveCursorBy(0, 1);
20560
20528
  }
20561
- }, e2.prototype.moveCursorLineStart = function() {
20562
- var e3 = this.lead.row, t2 = this.lead.column, n2 = this.session.documentToScreenRow(e3, t2), r3 = this.session.screenToDocumentPosition(n2, 0), i3 = this.session.getDisplayLine(e3, null, r3.row, r3.column), s2 = i3.match(/^\s*/);
20529
+ }, this.moveCursorLineStart = function() {
20530
+ var e2 = this.lead.row, t2 = this.lead.column, n2 = this.session.documentToScreenRow(e2, t2), r3 = this.session.screenToDocumentPosition(n2, 0), i3 = this.session.getDisplayLine(e2, null, r3.row, r3.column), s2 = i3.match(/^\s*/);
20563
20531
  s2[0].length != t2 && !this.session.$useEmacsStyleLineStart && (r3.column += s2[0].length), this.moveCursorToPosition(r3);
20564
- }, e2.prototype.moveCursorLineEnd = function() {
20565
- var e3 = this.lead, t2 = this.session.getDocumentLastRowColumnPosition(e3.row, e3.column);
20532
+ }, this.moveCursorLineEnd = function() {
20533
+ var e2 = this.lead, t2 = this.session.getDocumentLastRowColumnPosition(e2.row, e2.column);
20566
20534
  if (this.lead.column == t2.column) {
20567
20535
  var n2 = this.session.getLine(t2.row);
20568
20536
  if (t2.column == n2.length) {
@@ -20571,58 +20539,58 @@ var ace$1 = { exports: {} };
20571
20539
  }
20572
20540
  }
20573
20541
  this.moveCursorTo(t2.row, t2.column);
20574
- }, e2.prototype.moveCursorFileEnd = function() {
20575
- var e3 = this.doc.getLength() - 1, t2 = this.doc.getLine(e3).length;
20576
- this.moveCursorTo(e3, t2);
20577
- }, e2.prototype.moveCursorFileStart = function() {
20542
+ }, this.moveCursorFileEnd = function() {
20543
+ var e2 = this.doc.getLength() - 1, t2 = this.doc.getLine(e2).length;
20544
+ this.moveCursorTo(e2, t2);
20545
+ }, this.moveCursorFileStart = function() {
20578
20546
  this.moveCursorTo(0, 0);
20579
- }, e2.prototype.moveCursorLongWordRight = function() {
20580
- var e3 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e3), r3 = n2.substring(t2);
20547
+ }, this.moveCursorLongWordRight = function() {
20548
+ var e2 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e2), r3 = n2.substring(t2);
20581
20549
  this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0;
20582
- var i3 = this.session.getFoldAt(e3, t2, 1);
20550
+ var i3 = this.session.getFoldAt(e2, t2, 1);
20583
20551
  if (i3) {
20584
20552
  this.moveCursorTo(i3.end.row, i3.end.column);
20585
20553
  return;
20586
20554
  }
20587
20555
  this.session.nonTokenRe.exec(r3) && (t2 += this.session.nonTokenRe.lastIndex, this.session.nonTokenRe.lastIndex = 0, r3 = n2.substring(t2));
20588
20556
  if (t2 >= n2.length) {
20589
- this.moveCursorTo(e3, n2.length), this.moveCursorRight(), e3 < this.doc.getLength() - 1 && this.moveCursorWordRight();
20557
+ this.moveCursorTo(e2, n2.length), this.moveCursorRight(), e2 < this.doc.getLength() - 1 && this.moveCursorWordRight();
20590
20558
  return;
20591
20559
  }
20592
- this.session.tokenRe.exec(r3) && (t2 += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e3, t2);
20593
- }, e2.prototype.moveCursorLongWordLeft = function() {
20594
- var e3 = this.lead.row, t2 = this.lead.column, n2;
20595
- if (n2 = this.session.getFoldAt(e3, t2, -1)) {
20560
+ this.session.tokenRe.exec(r3) && (t2 += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e2, t2);
20561
+ }, this.moveCursorLongWordLeft = function() {
20562
+ var e2 = this.lead.row, t2 = this.lead.column, n2;
20563
+ if (n2 = this.session.getFoldAt(e2, t2, -1)) {
20596
20564
  this.moveCursorTo(n2.start.row, n2.start.column);
20597
20565
  return;
20598
20566
  }
20599
- var r3 = this.session.getFoldStringAt(e3, t2, -1);
20600
- r3 == null && (r3 = this.doc.getLine(e3).substring(0, t2));
20567
+ var r3 = this.session.getFoldStringAt(e2, t2, -1);
20568
+ r3 == null && (r3 = this.doc.getLine(e2).substring(0, t2));
20601
20569
  var s2 = i2.stringReverse(r3);
20602
20570
  this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0, this.session.nonTokenRe.exec(s2) && (t2 -= this.session.nonTokenRe.lastIndex, s2 = s2.slice(this.session.nonTokenRe.lastIndex), this.session.nonTokenRe.lastIndex = 0);
20603
20571
  if (t2 <= 0) {
20604
- this.moveCursorTo(e3, 0), this.moveCursorLeft(), e3 > 0 && this.moveCursorWordLeft();
20572
+ this.moveCursorTo(e2, 0), this.moveCursorLeft(), e2 > 0 && this.moveCursorWordLeft();
20605
20573
  return;
20606
20574
  }
20607
- this.session.tokenRe.exec(s2) && (t2 -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e3, t2);
20608
- }, e2.prototype.$shortWordEndIndex = function(e3) {
20575
+ this.session.tokenRe.exec(s2) && (t2 -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(e2, t2);
20576
+ }, this.$shortWordEndIndex = function(e2) {
20609
20577
  var t2 = 0, n2, r3 = /\s/, i3 = this.session.tokenRe;
20610
20578
  i3.lastIndex = 0;
20611
- if (this.session.tokenRe.exec(e3))
20579
+ if (this.session.tokenRe.exec(e2))
20612
20580
  t2 = this.session.tokenRe.lastIndex;
20613
20581
  else {
20614
- while ((n2 = e3[t2]) && r3.test(n2))
20582
+ while ((n2 = e2[t2]) && r3.test(n2))
20615
20583
  t2++;
20616
20584
  if (t2 < 1) {
20617
20585
  i3.lastIndex = 0;
20618
- while ((n2 = e3[t2]) && !i3.test(n2)) {
20586
+ while ((n2 = e2[t2]) && !i3.test(n2)) {
20619
20587
  i3.lastIndex = 0, t2++;
20620
20588
  if (r3.test(n2)) {
20621
20589
  if (t2 > 2) {
20622
20590
  t2--;
20623
20591
  break;
20624
20592
  }
20625
- while ((n2 = e3[t2]) && r3.test(n2))
20593
+ while ((n2 = e2[t2]) && r3.test(n2))
20626
20594
  t2++;
20627
20595
  if (t2 > 2)
20628
20596
  break;
@@ -20631,66 +20599,66 @@ var ace$1 = { exports: {} };
20631
20599
  }
20632
20600
  }
20633
20601
  return i3.lastIndex = 0, t2;
20634
- }, e2.prototype.moveCursorShortWordRight = function() {
20635
- var e3 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e3), r3 = n2.substring(t2), i3 = this.session.getFoldAt(e3, t2, 1);
20602
+ }, this.moveCursorShortWordRight = function() {
20603
+ var e2 = this.lead.row, t2 = this.lead.column, n2 = this.doc.getLine(e2), r3 = n2.substring(t2), i3 = this.session.getFoldAt(e2, t2, 1);
20636
20604
  if (i3)
20637
20605
  return this.moveCursorTo(i3.end.row, i3.end.column);
20638
20606
  if (t2 == n2.length) {
20639
20607
  var s2 = this.doc.getLength();
20640
20608
  do
20641
- e3++, r3 = this.doc.getLine(e3);
20642
- while (e3 < s2 && /^\s*$/.test(r3));
20609
+ e2++, r3 = this.doc.getLine(e2);
20610
+ while (e2 < s2 && /^\s*$/.test(r3));
20643
20611
  /^\s+/.test(r3) || (r3 = ""), t2 = 0;
20644
20612
  }
20645
20613
  var o2 = this.$shortWordEndIndex(r3);
20646
- this.moveCursorTo(e3, t2 + o2);
20647
- }, e2.prototype.moveCursorShortWordLeft = function() {
20648
- var e3 = this.lead.row, t2 = this.lead.column, n2;
20649
- if (n2 = this.session.getFoldAt(e3, t2, -1))
20614
+ this.moveCursorTo(e2, t2 + o2);
20615
+ }, this.moveCursorShortWordLeft = function() {
20616
+ var e2 = this.lead.row, t2 = this.lead.column, n2;
20617
+ if (n2 = this.session.getFoldAt(e2, t2, -1))
20650
20618
  return this.moveCursorTo(n2.start.row, n2.start.column);
20651
- var r3 = this.session.getLine(e3).substring(0, t2);
20619
+ var r3 = this.session.getLine(e2).substring(0, t2);
20652
20620
  if (t2 === 0) {
20653
20621
  do
20654
- e3--, r3 = this.doc.getLine(e3);
20655
- while (e3 > 0 && /^\s*$/.test(r3));
20622
+ e2--, r3 = this.doc.getLine(e2);
20623
+ while (e2 > 0 && /^\s*$/.test(r3));
20656
20624
  t2 = r3.length, /\s+$/.test(r3) || (r3 = "");
20657
20625
  }
20658
20626
  var s2 = i2.stringReverse(r3), o2 = this.$shortWordEndIndex(s2);
20659
- return this.moveCursorTo(e3, t2 - o2);
20660
- }, e2.prototype.moveCursorWordRight = function() {
20627
+ return this.moveCursorTo(e2, t2 - o2);
20628
+ }, this.moveCursorWordRight = function() {
20661
20629
  this.session.$selectLongWords ? this.moveCursorLongWordRight() : this.moveCursorShortWordRight();
20662
- }, e2.prototype.moveCursorWordLeft = function() {
20630
+ }, this.moveCursorWordLeft = function() {
20663
20631
  this.session.$selectLongWords ? this.moveCursorLongWordLeft() : this.moveCursorShortWordLeft();
20664
- }, e2.prototype.moveCursorBy = function(e3, t2) {
20632
+ }, this.moveCursorBy = function(e2, t2) {
20665
20633
  var n2 = this.session.documentToScreenPosition(this.lead.row, this.lead.column), r3;
20666
- t2 === 0 && (e3 !== 0 && (this.session.$bidiHandler.isBidiRow(n2.row, this.lead.row) ? (r3 = this.session.$bidiHandler.getPosLeft(n2.column), n2.column = Math.round(r3 / this.session.$bidiHandler.charWidths[0])) : r3 = n2.column * this.session.$bidiHandler.charWidths[0]), this.$desiredColumn ? n2.column = this.$desiredColumn : this.$desiredColumn = n2.column);
20667
- if (e3 != 0 && this.session.lineWidgets && this.session.lineWidgets[this.lead.row]) {
20634
+ t2 === 0 && (e2 !== 0 && (this.session.$bidiHandler.isBidiRow(n2.row, this.lead.row) ? (r3 = this.session.$bidiHandler.getPosLeft(n2.column), n2.column = Math.round(r3 / this.session.$bidiHandler.charWidths[0])) : r3 = n2.column * this.session.$bidiHandler.charWidths[0]), this.$desiredColumn ? n2.column = this.$desiredColumn : this.$desiredColumn = n2.column);
20635
+ if (e2 != 0 && this.session.lineWidgets && this.session.lineWidgets[this.lead.row]) {
20668
20636
  var i3 = this.session.lineWidgets[this.lead.row];
20669
- e3 < 0 ? e3 -= i3.rowsAbove || 0 : e3 > 0 && (e3 += i3.rowCount - (i3.rowsAbove || 0));
20670
- }
20671
- var s2 = this.session.screenToDocumentPosition(n2.row + e3, n2.column, r3);
20672
- e3 !== 0 && t2 === 0 && s2.row === this.lead.row && s2.column === this.lead.column, this.moveCursorTo(s2.row, s2.column + t2, t2 === 0);
20673
- }, e2.prototype.moveCursorToPosition = function(e3) {
20674
- this.moveCursorTo(e3.row, e3.column);
20675
- }, e2.prototype.moveCursorTo = function(e3, t2, n2) {
20676
- var r3 = this.session.getFoldAt(e3, t2, 1);
20677
- r3 && (e3 = r3.start.row, t2 = r3.start.column), this.$keepDesiredColumnOnChange = true;
20678
- var i3 = this.session.getLine(e3);
20679
- /[\uDC00-\uDFFF]/.test(i3.charAt(t2)) && i3.charAt(t2 - 1) && (this.lead.row == e3 && this.lead.column == t2 + 1 ? t2 -= 1 : t2 += 1), this.lead.setPosition(e3, t2), this.$keepDesiredColumnOnChange = false, n2 || (this.$desiredColumn = null);
20680
- }, e2.prototype.moveCursorToScreen = function(e3, t2, n2) {
20681
- var r3 = this.session.screenToDocumentPosition(e3, t2);
20637
+ e2 < 0 ? e2 -= i3.rowsAbove || 0 : e2 > 0 && (e2 += i3.rowCount - (i3.rowsAbove || 0));
20638
+ }
20639
+ var s2 = this.session.screenToDocumentPosition(n2.row + e2, n2.column, r3);
20640
+ e2 !== 0 && t2 === 0 && s2.row === this.lead.row && s2.column === this.lead.column, this.moveCursorTo(s2.row, s2.column + t2, t2 === 0);
20641
+ }, this.moveCursorToPosition = function(e2) {
20642
+ this.moveCursorTo(e2.row, e2.column);
20643
+ }, this.moveCursorTo = function(e2, t2, n2) {
20644
+ var r3 = this.session.getFoldAt(e2, t2, 1);
20645
+ r3 && (e2 = r3.start.row, t2 = r3.start.column), this.$keepDesiredColumnOnChange = true;
20646
+ var i3 = this.session.getLine(e2);
20647
+ /[\uDC00-\uDFFF]/.test(i3.charAt(t2)) && i3.charAt(t2 - 1) && (this.lead.row == e2 && this.lead.column == t2 + 1 ? t2 -= 1 : t2 += 1), this.lead.setPosition(e2, t2), this.$keepDesiredColumnOnChange = false, n2 || (this.$desiredColumn = null);
20648
+ }, this.moveCursorToScreen = function(e2, t2, n2) {
20649
+ var r3 = this.session.screenToDocumentPosition(e2, t2);
20682
20650
  this.moveCursorTo(r3.row, r3.column, n2);
20683
- }, e2.prototype.detach = function() {
20651
+ }, this.detach = function() {
20684
20652
  this.lead.detach(), this.anchor.detach();
20685
- }, e2.prototype.fromOrientedRange = function(e3) {
20686
- this.setSelectionRange(e3, e3.cursor == e3.start), this.$desiredColumn = e3.desiredColumn || this.$desiredColumn;
20687
- }, e2.prototype.toOrientedRange = function(e3) {
20653
+ }, this.fromOrientedRange = function(e2) {
20654
+ this.setSelectionRange(e2, e2.cursor == e2.start), this.$desiredColumn = e2.desiredColumn || this.$desiredColumn;
20655
+ }, this.toOrientedRange = function(e2) {
20688
20656
  var t2 = this.getRange();
20689
- return e3 ? (e3.start.column = t2.start.column, e3.start.row = t2.start.row, e3.end.column = t2.end.column, e3.end.row = t2.end.row) : e3 = t2, e3.cursor = this.isBackwards() ? e3.start : e3.end, e3.desiredColumn = this.$desiredColumn, e3;
20690
- }, e2.prototype.getRangeOfMovements = function(e3) {
20657
+ return e2 ? (e2.start.column = t2.start.column, e2.start.row = t2.start.row, e2.end.column = t2.end.column, e2.end.row = t2.end.row) : e2 = t2, e2.cursor = this.isBackwards() ? e2.start : e2.end, e2.desiredColumn = this.$desiredColumn, e2;
20658
+ }, this.getRangeOfMovements = function(e2) {
20691
20659
  var t2 = this.getCursor();
20692
20660
  try {
20693
- e3(this);
20661
+ e2(this);
20694
20662
  var n2 = this.getCursor();
20695
20663
  return o.fromPoints(t2, n2);
20696
20664
  } catch (r3) {
@@ -20698,42 +20666,41 @@ var ace$1 = { exports: {} };
20698
20666
  } finally {
20699
20667
  this.moveCursorToPosition(t2);
20700
20668
  }
20701
- }, e2.prototype.toJSON = function() {
20669
+ }, this.toJSON = function() {
20702
20670
  if (this.rangeCount)
20703
- var e3 = this.ranges.map(function(e4) {
20704
- var t2 = e4.clone();
20705
- return t2.isBackwards = e4.cursor == e4.start, t2;
20671
+ var e2 = this.ranges.map(function(e3) {
20672
+ var t2 = e3.clone();
20673
+ return t2.isBackwards = e3.cursor == e3.start, t2;
20706
20674
  });
20707
20675
  else {
20708
- var e3 = this.getRange();
20709
- e3.isBackwards = this.isBackwards();
20676
+ var e2 = this.getRange();
20677
+ e2.isBackwards = this.isBackwards();
20710
20678
  }
20711
- return e3;
20712
- }, e2.prototype.fromJSON = function(e3) {
20713
- if (e3.start == void 0) {
20714
- if (this.rangeList && e3.length > 1) {
20715
- this.toSingleRange(e3[0]);
20716
- for (var t2 = e3.length; t2--; ) {
20717
- var n2 = o.fromPoints(e3[t2].start, e3[t2].end);
20718
- e3[t2].isBackwards && (n2.cursor = n2.start), this.addRange(n2, true);
20679
+ return e2;
20680
+ }, this.fromJSON = function(e2) {
20681
+ if (e2.start == void 0) {
20682
+ if (this.rangeList && e2.length > 1) {
20683
+ this.toSingleRange(e2[0]);
20684
+ for (var t2 = e2.length; t2--; ) {
20685
+ var n2 = o.fromPoints(e2[t2].start, e2[t2].end);
20686
+ e2[t2].isBackwards && (n2.cursor = n2.start), this.addRange(n2, true);
20719
20687
  }
20720
20688
  return;
20721
20689
  }
20722
- e3 = e3[0];
20690
+ e2 = e2[0];
20723
20691
  }
20724
- this.rangeList && this.toSingleRange(e3), this.setSelectionRange(e3, e3.isBackwards);
20725
- }, e2.prototype.isEqual = function(e3) {
20726
- if ((e3.length || this.rangeCount) && e3.length != this.rangeCount)
20692
+ this.rangeList && this.toSingleRange(e2), this.setSelectionRange(e2, e2.isBackwards);
20693
+ }, this.isEqual = function(e2) {
20694
+ if ((e2.length || this.rangeCount) && e2.length != this.rangeCount)
20727
20695
  return false;
20728
- if (!e3.length || !this.ranges)
20729
- return this.getRange().isEqual(e3);
20696
+ if (!e2.length || !this.ranges)
20697
+ return this.getRange().isEqual(e2);
20730
20698
  for (var t2 = this.ranges.length; t2--; )
20731
- if (!this.ranges[t2].isEqual(e3[t2]))
20699
+ if (!this.ranges[t2].isEqual(e2[t2]))
20732
20700
  return false;
20733
20701
  return true;
20734
- }, e2;
20735
- }();
20736
- u.prototype.setSelectionAnchor = u.prototype.setAnchor, u.prototype.getSelectionAnchor = u.prototype.getAnchor, u.prototype.setSelectionRange = u.prototype.setRange, r2.implement(u.prototype, s), t.Selection = u;
20702
+ };
20703
+ }).call(u.prototype), t.Selection = u;
20737
20704
  }), ace.define("ace/tokenizer", ["require", "exports", "module", "ace/config"], function(e, t, n) {
20738
20705
  var r2 = e("./config"), i2 = 2e3, s = function() {
20739
20706
  function e2(e3) {
@@ -23361,15 +23328,10 @@ var ace$1 = { exports: {} };
23361
23328
  }, handlesSet: true } }), t.EditSession = d;
23362
23329
  }), ace.define("ace/search", ["require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range"], function(e, t, n) {
23363
23330
  function u(e2, t2) {
23364
- function i3(e3, r3) {
23365
- r3 === void 0 && (r3 = true);
23366
- var i4 = n2 && t2.$supportsUnicodeFlag ? new RegExp("[\\p{L}\\p{N}_]", "u") : new RegExp("\\w");
23367
- if (i4.test(e3) || t2.regExp)
23368
- return n2 && t2.$supportsUnicodeFlag ? r3 ? "(?<=^|[^\\p{L}\\p{N}_])" : "(?=[^\\p{L}\\p{N}_]|$)" : "\\b";
23369
- return "";
23331
+ function n2(e3) {
23332
+ return /\w/.test(e3) || t2.regExp ? "\\b" : "";
23370
23333
  }
23371
- var n2 = r2.supportsLookbehind(), s2 = Array.from(e2), o2 = s2[0], u2 = s2[s2.length - 1];
23372
- return i3(o2) + e2 + i3(u2, false);
23334
+ return n2(e2[0]) + e2 + n2(e2[e2.length - 1]);
23373
23335
  }
23374
23336
  var r2 = e("./lib/lang"), i2 = e("./lib/oop"), s = e("./range").Range, o = function() {
23375
23337
  function e2() {
@@ -23452,23 +23414,17 @@ var ace$1 = { exports: {} };
23452
23414
  var n2 = e3.needle;
23453
23415
  if (!e3.needle)
23454
23416
  return e3.re = false;
23455
- e3.$supportsUnicodeFlag === void 0 && (e3.$supportsUnicodeFlag = r2.supportsUnicodeFlag());
23456
- try {
23457
- new RegExp(n2, "u");
23458
- } catch (i3) {
23459
- e3.$supportsUnicodeFlag = false;
23460
- }
23461
23417
  e3.regExp || (n2 = r2.escapeRegExp(n2)), e3.wholeWord && (n2 = u(n2, e3));
23462
- var s2 = e3.caseSensitive ? "gm" : "gmi";
23463
- e3.$supportsUnicodeFlag && (s2 += "u"), e3.$isMultiLine = !t2 && /[\n\r]/.test(n2);
23418
+ var i3 = e3.caseSensitive ? "gm" : "gmi";
23419
+ e3.$isMultiLine = !t2 && /[\n\r]/.test(n2);
23464
23420
  if (e3.$isMultiLine)
23465
- return e3.re = this.$assembleMultilineRegExp(n2, s2);
23421
+ return e3.re = this.$assembleMultilineRegExp(n2, i3);
23466
23422
  try {
23467
- var o2 = new RegExp(n2, s2);
23468
- } catch (i3) {
23469
- o2 = false;
23423
+ var s2 = new RegExp(n2, i3);
23424
+ } catch (o2) {
23425
+ s2 = false;
23470
23426
  }
23471
- return e3.re = o2;
23427
+ return e3.re = s2;
23472
23428
  }, e2.prototype.$assembleMultilineRegExp = function(e3, t2) {
23473
23429
  var n2 = e3.replace(/\r\n|\r|\n/g, "$\n^").split("\n"), r3 = [];
23474
23430
  for (var i3 = 0; i3 < n2.length; i3++)
@@ -25359,7 +25315,7 @@ var ace$1 = { exports: {} };
25359
25315
  this.isRowVisible(t3) || this.scrollToLine(t3, true, true), this.focus();
25360
25316
  }
25361
25317
  }, r3;
25362
- e2 ? (this.renderer.enableKeyboardAccessibility = true, this.renderer.keyboardFocusClassName = "ace_keyboard-focus", this.textInput.getElement().setAttribute("tabindex", -1), this.textInput.setNumberOfExtraLines(u.isWin ? 3 : 0), this.renderer.scroller.setAttribute("tabindex", 0), this.renderer.scroller.setAttribute("role", "group"), this.renderer.scroller.setAttribute("aria-roledescription", S("editor")), this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName), this.renderer.scroller.setAttribute("aria-label", S("Editor content, press Enter to start editing, press Escape to exit")), this.renderer.scroller.addEventListener("keyup", n2.bind(this)), this.commands.addCommand(t2), this.renderer.$gutter.setAttribute("tabindex", 0), this.renderer.$gutter.setAttribute("aria-hidden", false), this.renderer.$gutter.setAttribute("role", "group"), this.renderer.$gutter.setAttribute("aria-roledescription", S("editor")), this.renderer.$gutter.setAttribute("aria-label", S("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")), this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName), this.renderer.content.setAttribute("aria-hidden", true), r3 || (r3 = new E(this)), r3.addListener()) : (this.renderer.enableKeyboardAccessibility = false, this.textInput.getElement().setAttribute("tabindex", 0), this.textInput.setNumberOfExtraLines(0), this.renderer.scroller.setAttribute("tabindex", -1), this.renderer.scroller.removeAttribute("role"), this.renderer.scroller.removeAttribute("aria-roledescription"), this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName), this.renderer.scroller.removeAttribute("aria-label"), this.renderer.scroller.removeEventListener("keyup", n2.bind(this)), this.commands.removeCommand(t2), this.renderer.content.removeAttribute("aria-hidden"), this.renderer.$gutter.setAttribute("tabindex", -1), this.renderer.$gutter.setAttribute("aria-hidden", true), this.renderer.$gutter.removeAttribute("role"), this.renderer.$gutter.removeAttribute("aria-roledescription"), this.renderer.$gutter.removeAttribute("aria-label"), this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName), r3 && r3.removeListener());
25318
+ e2 ? (this.renderer.enableKeyboardAccessibility = true, this.renderer.keyboardFocusClassName = "ace_keyboard-focus", this.textInput.getElement().setAttribute("tabindex", -1), this.renderer.scroller.setAttribute("tabindex", 0), this.renderer.scroller.setAttribute("role", "group"), this.renderer.scroller.setAttribute("aria-roledescription", S("editor")), this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName), this.renderer.scroller.setAttribute("aria-label", S("Editor content, press Enter to start editing, press Escape to exit")), this.renderer.scroller.addEventListener("keyup", n2.bind(this)), this.commands.addCommand(t2), this.renderer.$gutter.setAttribute("tabindex", 0), this.renderer.$gutter.setAttribute("aria-hidden", false), this.renderer.$gutter.setAttribute("role", "group"), this.renderer.$gutter.setAttribute("aria-roledescription", S("editor")), this.renderer.$gutter.setAttribute("aria-label", S("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")), this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName), this.renderer.content.setAttribute("aria-hidden", true), r3 || (r3 = new E(this)), r3.addListener()) : (this.renderer.enableKeyboardAccessibility = false, this.textInput.getElement().setAttribute("tabindex", 0), this.renderer.scroller.setAttribute("tabindex", -1), this.renderer.scroller.removeAttribute("role"), this.renderer.scroller.removeAttribute("aria-roledescription"), this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName), this.renderer.scroller.removeAttribute("aria-label"), this.renderer.scroller.removeEventListener("keyup", n2.bind(this)), this.commands.removeCommand(t2), this.renderer.content.removeAttribute("aria-hidden"), this.renderer.$gutter.setAttribute("tabindex", -1), this.renderer.$gutter.setAttribute("aria-hidden", true), this.renderer.$gutter.removeAttribute("role"), this.renderer.$gutter.removeAttribute("aria-roledescription"), this.renderer.$gutter.removeAttribute("aria-label"), this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName), r3 && r3.removeListener());
25363
25319
  }, initialValue: false }, customScrollbar: "renderer", hScrollBarAlwaysVisible: "renderer", vScrollBarAlwaysVisible: "renderer", highlightGutterLine: "renderer", animatedScroll: "renderer", showInvisibles: "renderer", showPrintMargin: "renderer", printMarginColumn: "renderer", printMargin: "renderer", fadeFoldWidgets: "renderer", showFoldWidgets: "renderer", displayIndentGuides: "renderer", highlightIndentGuides: "renderer", showGutter: "renderer", fontSize: "renderer", fontFamily: "renderer", maxLines: "renderer", minLines: "renderer", scrollPastEnd: "renderer", fixedWidthGutter: "renderer", theme: "renderer", hasCssTransforms: "renderer", maxPixelHeight: "renderer", useTextareaForIME: "renderer", useResizeObserver: "renderer", useSvgGutterIcons: "renderer", showFoldedAnnotations: "renderer", scrollSpeed: "$mouseHandler", dragDelay: "$mouseHandler", dragEnabled: "$mouseHandler", focusTimeout: "$mouseHandler", tooltipFollowsMouse: "$mouseHandler", firstLineNumber: "session", overwrite: "session", newLineMode: "session", useWorker: "session", useSoftTabs: "session", navigateWithinSoftTabs: "session", tabSize: "session", wrap: "session", indentedSoftWrap: "session", foldStyle: "session", mode: "session" });
25364
25320
  var C = { getText: function(e2, t2) {
25365
25321
  return (Math.abs(e2.selection.lead.row - t2) || t2 + 1 + (t2 < 9 ? "·" : "")) + "";
@@ -27437,7 +27393,7 @@ var ace$1 = { exports: {} };
27437
27393
  this.setOption("showInvisibles", e3), this.session.$bidiHandler.setShowInvisibles(e3);
27438
27394
  }, e2.prototype.getShowInvisibles = function() {
27439
27395
  return this.getOption("showInvisibles");
27440
- }, e2.prototype.getDisplayIndentGuides = function() {
27396
+ }, e2.prototype.getDisplayIndentGuide = function() {
27441
27397
  return this.getOption("displayIndentGuides");
27442
27398
  }, e2.prototype.setDisplayIndentGuides = function(e3) {
27443
27399
  this.setOption("displayIndentGuides", e3);
@@ -28704,21 +28660,14 @@ var ace$1 = { exports: {} };
28704
28660
  a.config.init(true);
28705
28661
  a.define = ace.define;
28706
28662
  }
28707
- var global2 = function() {
28708
- return this;
28709
- }();
28710
- if (!global2 && typeof window != "undefined")
28711
- global2 = window;
28712
- if (!global2 && typeof self != "undefined")
28713
- global2 = self;
28714
- if (!global2.ace)
28715
- global2.ace = a;
28663
+ if (!window.ace)
28664
+ window.ace = a;
28716
28665
  for (var key2 in a)
28717
28666
  if (a.hasOwnProperty(key2))
28718
- global2.ace[key2] = a[key2];
28719
- global2.ace["default"] = global2.ace;
28667
+ window.ace[key2] = a[key2];
28668
+ window.ace["default"] = window.ace;
28720
28669
  if (module) {
28721
- module.exports = global2.ace;
28670
+ module.exports = window.ace;
28722
28671
  }
28723
28672
  });
28724
28673
  })();
@@ -28971,11 +28920,14 @@ var extLanguage_tools = { exports: {} };
28971
28920
  return n2.text;
28972
28921
  }, e2.prototype.insertSnippetForSelection = function(e3, t2, n2) {
28973
28922
  n2 === void 0 && (n2 = {});
28974
- var r3 = v.call(this, e3, t2, n2), i3 = e3.getSelectionRange(), s2 = e3.session.replace(i3, r3.text), o2 = new m(e3), u2 = e3.inVirtualSelectionMode && e3.selection.index;
28923
+ var r3 = v.call(this, e3, t2, n2), i3 = e3.getSelectionRange();
28924
+ n2.range && n2.range.compareRange(i3) === 0 && (i3 = n2.range);
28925
+ var s2 = e3.session.replace(i3, r3.text), o2 = new m(e3), u2 = e3.inVirtualSelectionMode && e3.selection.index;
28975
28926
  o2.addTabstops(r3.tabstops, i3.start, s2, u2);
28976
28927
  }, e2.prototype.insertSnippet = function(e3, t2, n2) {
28977
28928
  n2 === void 0 && (n2 = {});
28978
28929
  var r3 = this;
28930
+ n2.range && !(n2.range instanceof u) && (n2.range = u.fromPoints(n2.range.start, n2.range.end));
28979
28931
  if (e3.inVirtualSelectionMode)
28980
28932
  return r3.insertSnippetForSelection(e3, t2, n2);
28981
28933
  e3.forEachSelection(function() {
@@ -29291,7 +29243,7 @@ var extLanguage_tools = { exports: {} };
29291
29243
  }, h2 = function() {
29292
29244
  function e2(e3) {
29293
29245
  var t2 = a.createElement("div"), n2 = new c2(t2);
29294
- e3 && e3.appendChild(t2), t2.style.display = "none", n2.renderer.content.style.cursor = "default", n2.renderer.setStyle("ace_autocomplete"), n2.renderer.$textLayer.element.setAttribute("role", "listbox"), n2.renderer.$textLayer.element.setAttribute("aria-label", f2("Autocomplete suggestions")), n2.renderer.textarea.setAttribute("aria-hidden", "true"), n2.setOption("displayIndentGuides", false), n2.setOption("dragDelay", 150);
29246
+ e3 && e3.appendChild(t2), t2.style.display = "none", n2.renderer.content.style.cursor = "default", n2.renderer.setStyle("ace_autocomplete"), n2.renderer.container.setAttribute("role", "listbox"), n2.renderer.container.setAttribute("aria-label", f2("Autocomplete suggestions")), n2.setOption("displayIndentGuides", false), n2.setOption("dragDelay", 150);
29295
29247
  var r3 = function() {
29296
29248
  };
29297
29249
  n2.focus = r3, n2.$isFocused = true, n2.renderer.$cursorLayer.restartTimer = r3, n2.renderer.$cursorLayer.element.style.opacity = 0, n2.renderer.$maxLines = 8, n2.renderer.$keepTextAreaAtCursor = false, n2.setHighlightActiveLine(false), n2.session.highlight(""), n2.session.$searchHighlight.clazz = "ace_highlight-marker", n2.on("mousedown", function(e4) {
@@ -29323,7 +29275,7 @@ var extLanguage_tools = { exports: {} };
29323
29275
  if (r4) {
29324
29276
  a.addCssClass(r4, "ace_selected");
29325
29277
  var s2 = l(e4);
29326
- r4.id = s2, t3.element.setAttribute("aria-activedescendant", s2), i4.setAttribute("aria-activedescendant", s2), r4.setAttribute("role", "option"), r4.setAttribute("aria-label", n2.getData(e4).value), r4.setAttribute("aria-setsize", n2.data.length), r4.setAttribute("aria-posinset", e4 + 1), r4.setAttribute("aria-describedby", "doc-tooltip");
29278
+ r4.id = s2, n2.renderer.container.setAttribute("aria-activedescendant", s2), i4.setAttribute("aria-activedescendant", s2), r4.setAttribute("role", "option"), r4.setAttribute("aria-label", n2.getData(e4).value), r4.setAttribute("aria-setsize", n2.data.length), r4.setAttribute("aria-posinset", e4), r4.setAttribute("aria-describedby", "doc-tooltip");
29327
29279
  }
29328
29280
  });
29329
29281
  var d = function() {
@@ -29553,8 +29505,8 @@ var extLanguage_tools = { exports: {} };
29553
29505
  return this.completions == n2 && this.detach(), r3;
29554
29506
  }, e2.prototype.showPopup = function(e3, t2) {
29555
29507
  this.editor && this.detach(), this.activated = true, this.editor = e3, e3.completer != this && (e3.completer && e3.completer.detach(), e3.completer = this), e3.on("changeSelection", this.changeListener), e3.on("blur", this.blurListener), e3.on("mousedown", this.mousedownListener), e3.on("mousewheel", this.mousewheelListener), this.updateCompletions(false, t2);
29556
- }, e2.prototype.getCompletionProvider = function(e3) {
29557
- return this.completionProvider || (this.completionProvider = new d(e3)), this.completionProvider;
29508
+ }, e2.prototype.getCompletionProvider = function() {
29509
+ return this.completionProvider || (this.completionProvider = new d()), this.completionProvider;
29558
29510
  }, e2.prototype.gatherCompletions = function(e3, t2) {
29559
29511
  return this.getCompletionProvider().gatherCompletions(e3, t2);
29560
29512
  }, e2.prototype.updateCompletions = function(e3, t2) {
@@ -29577,7 +29529,7 @@ var extLanguage_tools = { exports: {} };
29577
29529
  var i3 = this.editor.getSession(), n2 = this.editor.getCursorPosition(), r3 = u.getCompletionPrefix(this.editor);
29578
29530
  this.base = i3.doc.createAnchor(n2.row, n2.column - r3.length), this.base.$insertRight = true;
29579
29531
  var s2 = { exactMatch: this.exactMatch };
29580
- this.getCompletionProvider({ prefix: r3, pos: n2 }).provideCompletions(this.editor, s2, function(t3, n3, r4) {
29532
+ this.getCompletionProvider().provideCompletions(this.editor, s2, function(t3, n3, r4) {
29581
29533
  var i4 = n3.filtered, s3 = u.getCompletionPrefix(this.editor);
29582
29534
  if (r4) {
29583
29535
  if (!i4.length) {
@@ -29678,8 +29630,8 @@ var extLanguage_tools = { exports: {} };
29678
29630
  n2.autoInsert = false, n2.autoSelect = true, n2.autoShown = false, n2.showPopup(e2, t2), n2.cancelContextMenu();
29679
29631
  }, bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space" };
29680
29632
  var d = function() {
29681
- function e2(e3) {
29682
- this.initialPosition = e3, this.active = true;
29633
+ function e2() {
29634
+ this.active = true;
29683
29635
  }
29684
29636
  return e2.prototype.insertByIndex = function(e3, t2, n2) {
29685
29637
  return !this.completions || !this.completions.filtered ? false : this.insertMatch(e3, this.completions.filtered[t2], n2);
@@ -29692,20 +29644,26 @@ var extLanguage_tools = { exports: {} };
29692
29644
  else {
29693
29645
  if (!this.completions)
29694
29646
  return false;
29695
- var r3 = this.completions.filterText.length, i3 = 0;
29696
- t2.range && t2.range.start.row === t2.range.end.row && (r3 -= this.initialPosition.prefix.length, r3 += this.initialPosition.pos.column - t2.range.start.column, i3 += t2.range.end.column - this.initialPosition.pos.column);
29697
- if (r3 || i3) {
29698
- var s2;
29699
- e3.selection.getAllRanges ? s2 = e3.selection.getAllRanges() : s2 = [e3.getSelectionRange()];
29700
- for (var o2 = 0, u2; u2 = s2[o2]; o2++)
29701
- u2.start.column -= r3, u2.end.column += i3, e3.session.remove(u2);
29647
+ if (this.completions.filterText) {
29648
+ var r3;
29649
+ e3.selection.getAllRanges ? r3 = e3.selection.getAllRanges() : r3 = [e3.getSelectionRange()];
29650
+ for (var i3 = 0, s2; s2 = r3[i3]; i3++)
29651
+ s2.start.column -= this.completions.filterText.length, e3.session.remove(s2);
29702
29652
  }
29703
- t2.snippet ? l.insertSnippet(e3, t2.snippet) : this.$insertString(e3, t2), t2.command && t2.command === "startAutocomplete" && e3.execCommand(t2.command);
29653
+ t2.snippet ? l.insertSnippet(e3, t2.snippet, { range: t2.range }) : this.$insertString(e3, t2), t2.command && t2.command === "startAutocomplete" && e3.execCommand(t2.command);
29704
29654
  }
29705
29655
  return e3.endOperation(), true;
29706
29656
  }, e2.prototype.$insertString = function(e3, t2) {
29707
29657
  var n2 = t2.value || t2;
29708
- e3.execCommand("insertstring", n2);
29658
+ if (t2.range) {
29659
+ if (e3.inVirtualSelectionMode)
29660
+ return e3.session.replace(t2.range, n2);
29661
+ e3.forEachSelection(function() {
29662
+ var r3 = e3.getSelectionRange();
29663
+ t2.range.compareRange(r3) === 0 ? e3.session.replace(t2.range, n2) : e3.insert(n2);
29664
+ }, null, { keepOrder: true });
29665
+ } else
29666
+ e3.execCommand("insertstring", n2);
29709
29667
  }, e2.prototype.gatherCompletions = function(e3, t2) {
29710
29668
  var n2 = e3.getSession(), r3 = e3.getCursorPosition(), i3 = u.getCompletionPrefix(e3), s2 = [];
29711
29669
  this.completers = e3.completers;
@@ -29878,7 +29836,7 @@ var extLanguage_tools = { exports: {} };
29878
29836
  w(y);
29879
29837
  }, 0), w = function(e2) {
29880
29838
  var t2 = e2.editor, n2 = u.getCompletionPrefix(t2), r3 = u.triggerAutocomplete(t2);
29881
- if (n2 && n2.length >= t2.$liveAutocompletionThreshold || r3) {
29839
+ if ((n2 || r3) && n2.length >= t2.$liveAutocompletionThreshold) {
29882
29840
  var s2 = i2.for(t2);
29883
29841
  s2.autoShown = true, s2.showPopup(t2);
29884
29842
  }
@@ -32466,7 +32424,14 @@ const GridCellContent = defineComponent({
32466
32424
  }
32467
32425
  },
32468
32426
  render() {
32427
+ var _a;
32469
32428
  if (utilities.isNull(this.$props.column.format)) {
32429
+ if (this.$props.column.colType === "date") {
32430
+ if ((_a = this.$props.column.datePicker) == null ? void 0 : _a.format) {
32431
+ return utilities.format(new Date(this.$props.row[this.$props.column.field]), this.$props.column.datePicker.format);
32432
+ }
32433
+ return utilities.format(new Date(this.$props.row[this.$props.column.field]), "yyyy-MM-DD");
32434
+ }
32470
32435
  return utilities.isNull(this.$props.column.field) ? "" : this.$props.row[this.$props.column.field];
32471
32436
  }
32472
32437
  return this.$props.column.format(h, { row: this.$props.row, column: this.$props.column });
@@ -34842,7 +34807,7 @@ let BoxInstance$1 = class BoxInstance2 extends BaseInstance {
34842
34807
  }
34843
34808
  //#endregion Box END
34844
34809
  };
34845
- const Box_vue_vue_type_style_index_0_scoped_46073643_lang = "";
34810
+ const Box_vue_vue_type_style_index_0_scoped_1277c62b_lang = "";
34846
34811
  const _hoisted_1$6 = ["title"];
34847
34812
  const _hoisted_2$5 = {
34848
34813
  key: 0,
@@ -34862,7 +34827,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
34862
34827
  const _component_Divider = resolveComponent("Divider");
34863
34828
  const _component_Col = resolveComponent("Col");
34864
34829
  return openBlock(), createBlock(_component_Col, {
34865
- style: normalizeStyle({ width: _ctx.currentWidth, height: "100%" })
34830
+ style: normalizeStyle({ width: _ctx.currentWidth, height: "100%", "min-width": 0, flex: _ctx.currentWidth == "100%" ? 1 : "initial" })
34866
34831
  }, {
34867
34832
  default: withCtx(() => [
34868
34833
  createElementVNode("div", {
@@ -34927,7 +34892,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
34927
34892
  _: 3
34928
34893
  }, 8, ["style"]);
34929
34894
  }
34930
- const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-46073643"]]);
34895
+ const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-1277c62b"]]);
34931
34896
  const propDefine$j = {
34932
34897
  gutter: {
34933
34898
  // 栅格间的间距