@digipair/skill-web-jsoneditor 0.8.36 → 0.8.40

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 (3) hide show
  1. package/index.cjs.js +252 -252
  2. package/index.esm.js +252 -252
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -41077,7 +41077,7 @@ function findNextOccurrence(state, query) {
41077
41077
  var _loop = function(cycled1, cursor1) {
41078
41078
  cursor1.next();
41079
41079
  if (cursor1.done) {
41080
- if (cycled1) return cursor = cursor1, cycled = cycled1, {
41080
+ if (cycled1) return cycled = cycled1, cursor = cursor1, {
41081
41081
  v: null
41082
41082
  };
41083
41083
  cursor1 = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
@@ -41085,16 +41085,16 @@ function findNextOccurrence(state, query) {
41085
41085
  } else {
41086
41086
  if (cycled1 && ranges.some(function(r) {
41087
41087
  return r.from == cursor1.value.from;
41088
- })) return cursor = cursor1, cycled = cycled1, "continue";
41088
+ })) return cycled = cycled1, cursor = cursor1, "continue";
41089
41089
  if (fullWord) {
41090
41090
  var word = state.wordAt(cursor1.value.from);
41091
- if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cursor = cursor1, cycled = cycled1, "continue";
41091
+ if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cycled = cycled1, cursor = cursor1, "continue";
41092
41092
  }
41093
- return cursor = cursor1, cycled = cycled1, {
41093
+ return cycled = cycled1, cursor = cursor1, {
41094
41094
  v: cursor1.value
41095
41095
  };
41096
41096
  }
41097
- cursor = cursor1, cycled = cycled1;
41097
+ cycled = cycled1, cursor = cursor1;
41098
41098
  };
41099
41099
  var _state_selection = state.selection, main = _state_selection.main, ranges = _state_selection.ranges;
41100
41100
  var word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
@@ -81453,10 +81453,10 @@ function by(e, n, t) {
81453
81453
  return pe && document.hasFocus() || Xi(_$y);
81454
81454
  },
81455
81455
  onFocus: function onFocus() {
81456
- Z && Z();
81456
+ me = !0, Z && Z();
81457
81457
  },
81458
81458
  onBlur: function onBlur() {
81459
- X && X();
81459
+ me = !1, X && X();
81460
81460
  }
81461
81461
  });
81462
81462
  var re, ie, ae = void 0, se = !1, le = !1;
@@ -81465,9 +81465,9 @@ function by(e, n, t) {
81465
81465
  return r().wrap(function(e) {
81466
81466
  for(;;)switch(e.prev = e.next){
81467
81467
  case 0:
81468
- return t(12, ye = g(g({}, ye), {}, {
81468
+ return t(12, xe = g(g({}, xe), {}, {
81469
81469
  selection: null
81470
- })), e.next = 3, Le(n);
81470
+ })), e.next = 3, Ue(n);
81471
81471
  case 3:
81472
81472
  case "end":
81473
81473
  return e.stop();
@@ -81475,44 +81475,44 @@ function by(e, n, t) {
81475
81475
  }, e);
81476
81476
  }))).apply(this, arguments);
81477
81477
  }
81478
- var ue, de = 1e4, ve = [], pe = !1, me = {}, ge = 600, he = 0;
81479
- function je(e) {
81478
+ var ue, de = 1e4, ve = [], pe = !1, me = !1, ge = {}, he = 600, je = 0;
81479
+ function be(e) {
81480
81480
  c("updateSelection", e);
81481
- var _$n = "function" == typeof e ? e(ye.selection) || null : e;
81482
- isEqual$1(_$n, ye.selection) || (t(12, ye = g(g({}, ye), {}, {
81481
+ var _$n = "function" == typeof e ? e(xe.selection) || null : e;
81482
+ isEqual$1(_$n, xe.selection) || (t(12, xe = g(g({}, xe), {}, {
81483
81483
  selection: _$n
81484
81484
  })), W(_$n));
81485
81485
  }
81486
- function be(e) {
81487
- ye.selection && void 0 !== e && (existsIn(e, yl(ye.selection)) && existsIn(e, bl(ye.selection)) || (c("clearing selection: path does not exist anymore", ye.selection), t(12, ye = g(g({}, ye), {}, {
81486
+ function ye(e) {
81487
+ xe.selection && void 0 !== e && (existsIn(e, yl(xe.selection)) && existsIn(e, bl(xe.selection)) || (c("clearing selection: path does not exist anymore", xe.selection), t(12, xe = g(g({}, xe), {}, {
81488
81488
  selection: null
81489
81489
  }))));
81490
81490
  }
81491
- var ye = fs(), xe = !1;
81492
- var we, $e = $f({
81491
+ var xe = fs(), we = !1;
81492
+ var $e, ke = $f({
81493
81493
  onChange: function onChange(e) {
81494
- t(24, ke = e);
81494
+ t(24, Ce = e);
81495
81495
  }
81496
- }), ke = $e.getState();
81497
- function Ce(e) {
81496
+ }), Ce = ke.getState();
81497
+ function Se(e) {
81498
81498
  var _$n = k, o = xi(e) ? e.text !== C : !isEqual$1(_$n, e.json);
81499
81499
  if (c("update external content", {
81500
81500
  isChanged: o
81501
81501
  }), o) {
81502
- var r = k, i = ye, a = C, s = xe;
81502
+ var r = k, i = xe, a = C, s = we;
81503
81503
  if (xi(e)) try {
81504
- t(8, k = F(e.text)), t(17, C = e.text), t(23, xe = !1), t(18, ae = void 0);
81504
+ t(8, k = F(e.text)), t(17, C = e.text), t(23, we = !1), t(18, ae = void 0);
81505
81505
  } catch (n) {
81506
81506
  try {
81507
- t(8, k = F(jsonrepair(e.text))), t(17, C = e.text), t(23, xe = !0), t(18, ae = void 0);
81507
+ t(8, k = F(jsonrepair(e.text))), t(17, C = e.text), t(23, we = !0), t(18, ae = void 0);
81508
81508
  } catch (o) {
81509
- t(8, k = void 0), t(17, C = e.text), t(23, xe = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
81509
+ t(8, k = void 0), t(17, C = e.text), t(23, we = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
81510
81510
  }
81511
81511
  }
81512
- else t(8, k = e.json), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0);
81513
- be(k), ye.sortedColumn && t(12, ye = g(g({}, ye), {}, {
81512
+ else t(8, k = e.json), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0);
81513
+ ye(k), xe.sortedColumn && t(12, xe = g(g({}, xe), {}, {
81514
81514
  sortedColumn: null
81515
- })), Se({
81515
+ })), Me({
81516
81516
  previousJson: r,
81517
81517
  previousState: i,
81518
81518
  previousText: a,
@@ -81520,9 +81520,9 @@ function by(e, n, t) {
81520
81520
  });
81521
81521
  }
81522
81522
  }
81523
- function Se(e) {
81523
+ function Me(e) {
81524
81524
  var _$n = e.previousJson, t = e.previousState, o = e.previousText, r = e.previousTextIsRepaired;
81525
- void 0 === _$n && void 0 === o || (void 0 !== k ? void 0 !== _$n ? $e.add({
81525
+ void 0 === _$n && void 0 === o || (void 0 !== k ? void 0 !== _$n ? ke.add({
81526
81526
  undo: {
81527
81527
  patch: [
81528
81528
  {
@@ -81544,12 +81544,12 @@ function by(e, n, t) {
81544
81544
  value: k
81545
81545
  }
81546
81546
  ],
81547
- state: rl(ye),
81547
+ state: rl(xe),
81548
81548
  json: void 0,
81549
81549
  text: C,
81550
- textIsRepaired: xe
81550
+ textIsRepaired: we
81551
81551
  }
81552
- }) : $e.add({
81552
+ }) : ke.add({
81553
81553
  undo: {
81554
81554
  patch: void 0,
81555
81555
  json: void 0,
@@ -81560,11 +81560,11 @@ function by(e, n, t) {
81560
81560
  redo: {
81561
81561
  patch: void 0,
81562
81562
  json: k,
81563
- state: rl(ye),
81563
+ state: rl(xe),
81564
81564
  text: C,
81565
- textIsRepaired: xe
81565
+ textIsRepaired: we
81566
81566
  }
81567
- }) : void 0 !== _$n && $e.add({
81567
+ }) : void 0 !== _$n && ke.add({
81568
81568
  undo: {
81569
81569
  patch: void 0,
81570
81570
  json: _$n,
@@ -81576,17 +81576,17 @@ function by(e, n, t) {
81576
81576
  patch: void 0,
81577
81577
  json: void 0,
81578
81578
  text: C,
81579
- textIsRepaired: xe,
81580
- state: rl(ye)
81579
+ textIsRepaired: we,
81580
+ state: rl(xe)
81581
81581
  }
81582
81582
  }));
81583
81583
  }
81584
- var Me = [], Oe = memoizeOne(Sf);
81585
- function ze(e, n, o, r) {
81584
+ var Oe = [], ze = memoizeOne(Sf);
81585
+ function Re(e, n, o, r) {
81586
81586
  kf(function() {
81587
81587
  var i;
81588
81588
  try {
81589
- i = Oe(e, n, o, r);
81589
+ i = ze(e, n, o, r);
81590
81590
  } catch (e) {
81591
81591
  i = [
81592
81592
  {
@@ -81596,25 +81596,25 @@ function by(e, n, t) {
81596
81596
  }
81597
81597
  ];
81598
81598
  }
81599
- isEqual$1(i, Me) || (c("validationErrors changed:", i), t(13, Me = i));
81599
+ isEqual$1(i, Oe) || (c("validationErrors changed:", i), t(13, Oe = i));
81600
81600
  }, function(e) {
81601
81601
  return c("validationErrors updated in ".concat(e, " ms"));
81602
81602
  });
81603
81603
  }
81604
- function Re() {
81604
+ function Ee() {
81605
81605
  return c("validate"), ae ? {
81606
81606
  parseError: ae,
81607
81607
  isRepairable: !1
81608
- } : (ze(k, U, B, D), isEmpty(Me) ? null : {
81609
- validationErrors: Me
81608
+ } : (Re(k, U, B, D), isEmpty(Oe) ? null : {
81609
+ validationErrors: Oe
81610
81610
  });
81611
81611
  }
81612
- function Ee(e, n) {
81612
+ function qe(e, n) {
81613
81613
  if (c("patch", e, n), void 0 === k) throw new Error("Cannot apply patch: no JSON");
81614
- var o = k, r = ye, i = xe, a = Fl(k, e), s = bs(k, ye, e).json, l = Pg(ye, e, ve), u = "function" == typeof n ? n(s, l) : void 0;
81614
+ var o = k, r = xe, i = we, a = Fl(k, e), s = bs(k, xe, e).json, l = Pg(xe, e, ve), u = "function" == typeof n ? n(s, l) : void 0;
81615
81615
  t(8, k = u && void 0 !== u.json ? u.json : s);
81616
81616
  var d = u && void 0 !== u.state ? u.state : l;
81617
- return t(12, ye = d), t(17, C = void 0), t(23, xe = !1), t(19, re = void 0), t(18, ae = void 0), $e.add({
81617
+ return t(12, xe = d), t(17, C = void 0), t(23, we = !1), t(19, re = void 0), t(18, ae = void 0), ke.add({
81618
81618
  undo: {
81619
81619
  patch: a,
81620
81620
  json: void 0,
@@ -81627,7 +81627,7 @@ function by(e, n, t) {
81627
81627
  json: void 0,
81628
81628
  state: rl(d),
81629
81629
  text: void 0,
81630
- textIsRepaired: xe
81630
+ textIsRepaired: we
81631
81631
  }
81632
81632
  }), {
81633
81633
  json: k,
@@ -81636,21 +81636,21 @@ function by(e, n, t) {
81636
81636
  redo: e
81637
81637
  };
81638
81638
  }
81639
- function qe(e, n) {
81639
+ function Pe(e, n) {
81640
81640
  c("handlePatch", e, n);
81641
81641
  var t = {
81642
81642
  json: k,
81643
81643
  text: C
81644
- }, o = Ee(e, n);
81645
- return Pe(t, o), o;
81644
+ }, o = qe(e, n);
81645
+ return Ie(t, o), o;
81646
81646
  }
81647
- function Pe(e, n) {
81647
+ function Ie(e, n) {
81648
81648
  if ((void 0 !== e.json || void 0 !== (null == e ? void 0 : e.text)) && V) {
81649
81649
  if (void 0 !== C) V({
81650
81650
  text: C,
81651
81651
  json: void 0
81652
81652
  }, e, {
81653
- contentErrors: Re(),
81653
+ contentErrors: Ee(),
81654
81654
  patchResult: n
81655
81655
  });
81656
81656
  else if (void 0 !== k) {
@@ -81658,38 +81658,38 @@ function by(e, n, t) {
81658
81658
  text: void 0,
81659
81659
  json: k
81660
81660
  }, e, {
81661
- contentErrors: Re(),
81661
+ contentErrors: Ee(),
81662
81662
  patchResult: n
81663
81663
  });
81664
81664
  }
81665
81665
  }
81666
81666
  }
81667
- function Ie(e) {
81667
+ function Te(e) {
81668
81668
  c("handleFind", e);
81669
81669
  }
81670
- function Te(e) {
81670
+ function Ne(e) {
81671
81671
  c("pasted json as text", e), t(19, re = e);
81672
81672
  }
81673
- function Ne(e) {
81673
+ function Be(e) {
81674
81674
  var _$n = parseInt(e[0], 10), t = [
81675
81675
  String(_$n + 1)
81676
81676
  ].concat(w(e.slice(1)));
81677
81677
  return existsIn(k, t) ? al(t, !1) : al(e, !1);
81678
81678
  }
81679
- function Be() {
81679
+ function Fe() {
81680
81680
  c("focus"), $ && ($.focus(), $.select());
81681
81681
  }
81682
- function Fe() {
81683
- ye.selection || je(!isJSONArray(k) || isEmpty(k) || isEmpty(ve) ? null : al([
81682
+ function Le() {
81683
+ xe.selection || be(!isJSONArray(k) || isEmpty(k) || isEmpty(ve) ? null : al([
81684
81684
  "0"
81685
81685
  ].concat(w(ve[0])), !1));
81686
81686
  }
81687
- function Le(e) {
81688
- var _$n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], t = se ? Ur : 0, o = Mg(e, ve, me, jy), i = o - he + t + jy, s = Ge(e);
81687
+ function Ue(e) {
81688
+ var _$n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], t = se ? Ur : 0, o = Mg(e, ve, ge, jy), i = o - je + t + jy, s = Ze(e);
81689
81689
  if (c("scrollTo", {
81690
81690
  path: e,
81691
81691
  top: o,
81692
- scrollTop: he,
81692
+ scrollTop: je,
81693
81693
  elem: s
81694
81694
  }), !x) return Promise.resolve();
81695
81695
  var l = x.getBoundingClientRect();
@@ -81704,7 +81704,7 @@ function by(e, n, t) {
81704
81704
  offset: d,
81705
81705
  duration: 300,
81706
81706
  callback: function callback() {
81707
- Ue(e), n();
81707
+ Qe(e), n();
81708
81708
  }
81709
81709
  });
81710
81710
  } : function(n) {
@@ -81719,7 +81719,7 @@ function by(e, n, t) {
81719
81719
  case 0:
81720
81720
  return t.next = 2, bo();
81721
81721
  case 2:
81722
- Ue(e), n();
81722
+ Qe(e), n();
81723
81723
  case 4:
81724
81724
  case "end":
81725
81725
  return t.stop();
@@ -81731,8 +81731,8 @@ function by(e, n, t) {
81731
81731
  });
81732
81732
  });
81733
81733
  }
81734
- function Ue(e) {
81735
- var _$n = Ge(e);
81734
+ function Qe(e) {
81735
+ var _$n = Ze(e);
81736
81736
  if (_$n && x) {
81737
81737
  var o = x.getBoundingClientRect(), r = _$n.getBoundingClientRect();
81738
81738
  if (r.right > o.right) {
@@ -81745,10 +81745,10 @@ function by(e, n, t) {
81745
81745
  }
81746
81746
  }
81747
81747
  }
81748
- function Qe(e) {
81748
+ function Ge(e) {
81749
81749
  !function(e) {
81750
81750
  if (x) {
81751
- var _$n = Og(e, ve).rowIndex, o = Mg(e, ve, me, jy), r = o + (me[_$n] || jy), i = x.getBoundingClientRect(), a = he, s = he + i.height - 18;
81751
+ var _$n = Og(e, ve).rowIndex, o = Mg(e, ve, ge, jy), r = o + (ge[_$n] || jy), i = x.getBoundingClientRect(), a = je, s = je + i.height - 18;
81752
81752
  if (r > s) {
81753
81753
  var l = r - s;
81754
81754
  t(15, x.scrollTop += l, x);
@@ -81758,15 +81758,15 @@ function by(e, n, t) {
81758
81758
  t(15, x.scrollTop -= c, x);
81759
81759
  }
81760
81760
  }
81761
- }(e), Ue(e);
81761
+ }(e), Qe(e);
81762
81762
  }
81763
- function Ge(e) {
81763
+ function Ze(e) {
81764
81764
  var _$n = ve.find(function(n) {
81765
81765
  return ol(e.slice(1), n);
81766
81766
  }), t = _$n ? e.slice(0, 1).concat(_$n) : e;
81767
81767
  return x ? x.querySelector('td[data-path="'.concat(ta(t), '"]')) : null;
81768
81768
  }
81769
- function Ze(e) {
81769
+ function Xe(e) {
81770
81770
  var _$n = e.anchor, t = e.left, o = e.top, r = e.width, i = e.height, a = e.offsetTop, s = e.offsetLeft, l = e.showTip, c = function(e) {
81771
81771
  var _$n = e.json, t = e.documentState, o = e.readOnly, r = e.parser, i = e.onEditValue, a = e.onEditRow, s = e.onToggleEnforceString, l = e.onCut, c = e.onCopy, u = e.onPaste, d = e.onRemove, f = e.onDuplicateRow, v = e.onInsertBeforeRow, p = e.onInsertAfterRow, m = e.onRemoveRow, _$g = t.selection, h = void 0 !== _$n, j = !!_$g, b = void 0 !== _$n && _$g ? getIn(_$n, bl(_$g)) : void 0, _$y = h && (Ds(_$g) || Ls(_$g) || Us(_$g)), x = !o && h && null != _$g && nl(_$g), w = x && !Yr(b), $ = !o && _$y, k = null != _$g && void 0 !== b && Rs(b, t.enforceStringMap, compileJSONPointer(bl(_$g)), r);
81772
81772
  return [
@@ -81977,20 +81977,20 @@ function by(e, n, t) {
81977
81977
  ];
81978
81978
  }({
81979
81979
  json: k,
81980
- documentState: ye,
81980
+ documentState: xe,
81981
81981
  readOnly: S,
81982
81982
  parser: B,
81983
- onEditValue: en,
81984
- onEditRow: nn,
81985
- onToggleEnforceString: tn,
81986
- onCut: an,
81987
- onCopy: cn,
81988
- onPaste: rn,
81989
- onRemove: dn,
81990
- onDuplicateRow: fn,
81991
- onInsertBeforeRow: vn,
81992
- onInsertAfterRow: pn,
81993
- onRemoveRow: mn
81983
+ onEditValue: nn,
81984
+ onEditRow: tn,
81985
+ onToggleEnforceString: on,
81986
+ onCut: ln,
81987
+ onCopy: un,
81988
+ onPaste: an,
81989
+ onRemove: fn,
81990
+ onDuplicateRow: vn,
81991
+ onInsertBeforeRow: pn,
81992
+ onInsertAfterRow: mn,
81993
+ onRemoveRow: gn
81994
81994
  }), u = K(c);
81995
81995
  if (!1 !== u) {
81996
81996
  var d = {
@@ -82003,7 +82003,7 @@ function by(e, n, t) {
82003
82003
  anchor: _$n,
82004
82004
  closeOnOuterClick: !0,
82005
82005
  onClose: function onClose() {
82006
- pe = !1, Be();
82006
+ pe = !1, Fe();
82007
82007
  }
82008
82008
  };
82009
82009
  pe = !0;
@@ -82011,14 +82011,14 @@ function by(e, n, t) {
82011
82011
  tip: l ? "Tip: you can open this context menu via right-click or with Ctrl+Q" : void 0,
82012
82012
  items: u,
82013
82013
  onRequestClose: function onRequestClose() {
82014
- v(p), Be();
82014
+ v(p), Fe();
82015
82015
  }
82016
82016
  }, d);
82017
82017
  }
82018
82018
  }
82019
- function Xe(e) {
82020
- if (!dl(ye.selection)) {
82021
- if (e && (e.stopPropagation(), e.preventDefault()), e && "contextmenu" === e.type && e.target !== $) Ze({
82019
+ function en(e) {
82020
+ if (!dl(xe.selection)) {
82021
+ if (e && (e.stopPropagation(), e.preventDefault()), e && "contextmenu" === e.type && e.target !== $) Xe({
82022
82022
  left: e.clientX,
82023
82023
  top: e.clientY,
82024
82024
  width: Lr,
@@ -82027,7 +82027,7 @@ function by(e, n, t) {
82027
82027
  });
82028
82028
  else {
82029
82029
  var _$n, t = null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-table-cell.jse-selected-value");
82030
- if (t) Ze({
82030
+ if (t) Xe({
82031
82031
  anchor: t,
82032
82032
  offsetTop: 2,
82033
82033
  width: Lr,
@@ -82036,7 +82036,7 @@ function by(e, n, t) {
82036
82036
  });
82037
82037
  else {
82038
82038
  var o, r = null === (o = x) || void 0 === o ? void 0 : o.getBoundingClientRect();
82039
- r && Ze({
82039
+ r && Xe({
82040
82040
  top: r.top + 2,
82041
82041
  left: r.left + 2,
82042
82042
  width: Lr,
@@ -82048,23 +82048,23 @@ function by(e, n, t) {
82048
82048
  return !1;
82049
82049
  }
82050
82050
  }
82051
- function en() {
82052
- if (!S && ye.selection) {
82053
- var _$e = bl(ye.selection);
82054
- Yr(getIn(k, _$e)) ? yn(_$e) : je(al(_$e, !0));
82055
- }
82056
- }
82057
82051
  function nn() {
82058
- !S && ye.selection && yn(bl(ye.selection).slice(0, 1));
82052
+ if (!S && xe.selection) {
82053
+ var _$e = bl(xe.selection);
82054
+ Yr(getIn(k, _$e)) ? xn(_$e) : be(al(_$e, !0));
82055
+ }
82059
82056
  }
82060
82057
  function tn() {
82061
- if (!S && Us(ye.selection)) {
82062
- var _$e = ye.selection.path, _$n = compileJSONPointer(_$e), t = getIn(k, _$e), o = !Rs(t, ye.enforceStringMap, _$n, B), r = o ? String(t) : ti(String(t), B);
82058
+ !S && xe.selection && xn(bl(xe.selection).slice(0, 1));
82059
+ }
82060
+ function on() {
82061
+ if (!S && Us(xe.selection)) {
82062
+ var _$e = xe.selection.path, _$n = compileJSONPointer(_$e), t = getIn(k, _$e), o = !Rs(t, xe.enforceStringMap, _$n, B), r = o ? String(t) : ti(String(t), B);
82063
82063
  c("handleToggleEnforceString", {
82064
82064
  enforceString: o,
82065
82065
  value: t,
82066
82066
  updatedValue: r
82067
- }), qe([
82067
+ }), Pe([
82068
82068
  {
82069
82069
  op: "replace",
82070
82070
  path: _$n,
@@ -82077,8 +82077,8 @@ function by(e, n, t) {
82077
82077
  });
82078
82078
  }
82079
82079
  }
82080
- function on() {
82081
- return (on = a(r().mark(function e() {
82080
+ function rn() {
82081
+ return (rn = a(r().mark(function e() {
82082
82082
  var _$n, t, o, i, _$a;
82083
82083
  return r().wrap(function(e) {
82084
82084
  for(;;)switch(e.prev = e.next){
@@ -82089,13 +82089,13 @@ function by(e, n, t) {
82089
82089
  }
82090
82090
  return e.abrupt("return");
82091
82091
  case 3:
82092
- o = (t = re).path, i = t.contents, ia(_$a = (null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-editable-div")) || null) && _$a.cancel(), qe([
82092
+ o = (t = re).path, i = t.contents, ia(_$a = (null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-editable-div")) || null) && _$a.cancel(), Pe([
82093
82093
  {
82094
82094
  op: "replace",
82095
82095
  path: compileJSONPointer(o),
82096
82096
  value: i
82097
82097
  }
82098
- ]), setTimeout(Be);
82098
+ ]), setTimeout(Fe);
82099
82099
  case 9:
82100
82100
  case "end":
82101
82101
  return e.stop();
@@ -82103,32 +82103,32 @@ function by(e, n, t) {
82103
82103
  }, e);
82104
82104
  }))).apply(this, arguments);
82105
82105
  }
82106
- function rn() {
82106
+ function an() {
82107
82107
  u(nv, {}, g(g({}, Or), {}, {
82108
82108
  styleWindow: {
82109
82109
  width: "450px"
82110
82110
  }
82111
82111
  }), {
82112
82112
  onClose: function onClose() {
82113
- return Be();
82113
+ return Fe();
82114
82114
  }
82115
82115
  });
82116
82116
  }
82117
- function an(e) {
82118
- return ln.apply(this, arguments);
82117
+ function ln(e) {
82118
+ return cn.apply(this, arguments);
82119
82119
  }
82120
- function ln() {
82121
- return (ln = a(r().mark(function e(n) {
82120
+ function cn() {
82121
+ return (cn = a(r().mark(function e(n) {
82122
82122
  return r().wrap(function(e) {
82123
82123
  for(;;)switch(e.prev = e.next){
82124
82124
  case 0:
82125
82125
  return e.next = 2, Tg({
82126
82126
  json: k,
82127
- documentState: ye,
82127
+ documentState: xe,
82128
82128
  indentation: n ? J : void 0,
82129
82129
  readOnly: S,
82130
82130
  parser: B,
82131
- onPatch: qe
82131
+ onPatch: Pe
82132
82132
  });
82133
82133
  case 2:
82134
82134
  case "end":
@@ -82137,11 +82137,11 @@ function by(e, n, t) {
82137
82137
  }, e);
82138
82138
  }))).apply(this, arguments);
82139
82139
  }
82140
- function cn() {
82141
- return un.apply(this, arguments);
82142
- }
82143
82140
  function un() {
82144
- return un = a(r().mark(function e() {
82141
+ return dn.apply(this, arguments);
82142
+ }
82143
+ function dn() {
82144
+ return dn = a(r().mark(function e() {
82145
82145
  var _$n, t = arguments;
82146
82146
  return r().wrap(function(e) {
82147
82147
  for(;;)switch(e.prev = e.next){
@@ -82154,7 +82154,7 @@ function by(e, n, t) {
82154
82154
  case 3:
82155
82155
  return e.next = 5, Ng({
82156
82156
  json: k,
82157
- documentState: ye,
82157
+ documentState: xe,
82158
82158
  indentation: _$n ? J : void 0,
82159
82159
  parser: B
82160
82160
  });
@@ -82163,57 +82163,57 @@ function by(e, n, t) {
82163
82163
  return e.stop();
82164
82164
  }
82165
82165
  }, e);
82166
- })), un.apply(this, arguments);
82166
+ })), dn.apply(this, arguments);
82167
82167
  }
82168
- function dn() {
82168
+ function fn() {
82169
82169
  Lg({
82170
82170
  json: k,
82171
82171
  text: C,
82172
- documentState: ye,
82172
+ documentState: xe,
82173
82173
  keepSelection: !0,
82174
82174
  readOnly: S,
82175
82175
  onChange: V,
82176
- onPatch: qe
82176
+ onPatch: Pe
82177
82177
  });
82178
82178
  }
82179
- function fn() {
82179
+ function vn() {
82180
82180
  Ug({
82181
82181
  json: k,
82182
- documentState: ye,
82182
+ documentState: xe,
82183
82183
  columns: ve,
82184
82184
  readOnly: S,
82185
- onPatch: qe
82185
+ onPatch: Pe
82186
82186
  });
82187
82187
  }
82188
- function vn() {
82188
+ function pn() {
82189
82189
  Dg({
82190
82190
  json: k,
82191
- documentState: ye,
82191
+ documentState: xe,
82192
82192
  columns: ve,
82193
82193
  readOnly: S,
82194
- onPatch: qe
82194
+ onPatch: Pe
82195
82195
  });
82196
82196
  }
82197
- function pn() {
82197
+ function mn() {
82198
82198
  Jg({
82199
82199
  json: k,
82200
- documentState: ye,
82200
+ documentState: xe,
82201
82201
  columns: ve,
82202
82202
  readOnly: S,
82203
- onPatch: qe
82203
+ onPatch: Pe
82204
82204
  });
82205
82205
  }
82206
- function mn() {
82206
+ function gn() {
82207
82207
  Vg({
82208
82208
  json: k,
82209
- documentState: ye,
82209
+ documentState: xe,
82210
82210
  columns: ve,
82211
82211
  readOnly: S,
82212
- onPatch: qe
82212
+ onPatch: Pe
82213
82213
  });
82214
82214
  }
82215
- function gn() {
82216
- return (gn = a(r().mark(function e(n) {
82215
+ function hn() {
82216
+ return (hn = a(r().mark(function e(n) {
82217
82217
  return r().wrap(function(e) {
82218
82218
  for(;;)switch(e.prev = e.next){
82219
82219
  case 0:
@@ -82222,12 +82222,12 @@ function by(e, n, t) {
82222
82222
  selectInside: !1,
82223
82223
  refJsonEditor: _$y,
82224
82224
  json: k,
82225
- selection: ye.selection,
82225
+ selection: xe.selection,
82226
82226
  readOnly: S,
82227
82227
  parser: B,
82228
- onPatch: qe,
82229
- onReplaceJson: hn,
82230
- onSelect: je
82228
+ onPatch: Pe,
82229
+ onReplaceJson: jn,
82230
+ onSelect: be
82231
82231
  });
82232
82232
  case 2:
82233
82233
  case "end":
@@ -82236,50 +82236,50 @@ function by(e, n, t) {
82236
82236
  }, e);
82237
82237
  }))).apply(this, arguments);
82238
82238
  }
82239
- function hn(e, n) {
82240
- var o = ye, r = k, i = C, a = {
82239
+ function jn(e, n) {
82240
+ var o = xe, r = k, i = C, a = {
82241
82241
  json: k,
82242
82242
  text: C
82243
- }, s = xe, l = gs(k, ye, [], As), c = "function" == typeof n ? n(e, l) : void 0;
82244
- t(8, k = c && void 0 !== c.json ? c.json : e), t(12, ye = c && void 0 !== c.state ? c.state : l), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0), be(k), Se({
82243
+ }, s = we, l = gs(k, xe, [], As), c = "function" == typeof n ? n(e, l) : void 0;
82244
+ t(8, k = c && void 0 !== c.json ? c.json : e), t(12, xe = c && void 0 !== c.state ? c.state : l), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0), ye(k), Me({
82245
82245
  previousJson: r,
82246
82246
  previousState: o,
82247
82247
  previousText: i,
82248
82248
  previousTextIsRepaired: s
82249
82249
  });
82250
- Pe(a, null);
82250
+ Ie(a, null);
82251
82251
  }
82252
- function jn(e, n) {
82252
+ function bn(e, n) {
82253
82253
  c("handleChangeText");
82254
- var o = ye, r = k, i = C, a = {
82254
+ var o = xe, r = k, i = C, a = {
82255
82255
  json: k,
82256
82256
  text: C
82257
- }, s = xe;
82257
+ }, s = we;
82258
82258
  try {
82259
- t(8, k = F(e)), t(12, ye = gs(k, ye, [], As)), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0);
82259
+ t(8, k = F(e)), t(12, xe = gs(k, xe, [], As)), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0);
82260
82260
  } catch (n) {
82261
82261
  try {
82262
- t(8, k = F(jsonrepair(e))), t(12, ye = gs(k, ye, [], As)), t(17, C = e), t(23, xe = !0), t(18, ae = void 0);
82262
+ t(8, k = F(jsonrepair(e))), t(12, xe = gs(k, xe, [], As)), t(17, C = e), t(23, we = !0), t(18, ae = void 0);
82263
82263
  } catch (o) {
82264
- t(8, k = void 0), t(12, ye = fs({
82264
+ t(8, k = void 0), t(12, xe = fs({
82265
82265
  json: k,
82266
82266
  expand: As
82267
- })), t(17, C = e), t(23, xe = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
82267
+ })), t(17, C = e), t(23, we = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
82268
82268
  }
82269
82269
  }
82270
82270
  if ("function" == typeof n) {
82271
- var l = n(k, ye);
82272
- t(8, k = l && l.json ? l.json : k), t(12, ye = l && l.state ? l.state : ye);
82271
+ var l = n(k, xe);
82272
+ t(8, k = l && l.json ? l.json : k), t(12, xe = l && l.state ? l.state : xe);
82273
82273
  }
82274
- be(k), Se({
82274
+ ye(k), Me({
82275
82275
  previousJson: r,
82276
82276
  previousState: o,
82277
82277
  previousText: i,
82278
82278
  previousTextIsRepaired: s
82279
82279
  });
82280
- Pe(a, null);
82280
+ Ie(a, null);
82281
82281
  }
82282
- function bn(e) {
82282
+ function yn(e) {
82283
82283
  if (void 0 !== k) {
82284
82284
  var _$n = e.id, t = e.onTransform, o = e.onClose, r = e.rootPath || [];
82285
82285
  pe = !0, te({
@@ -82291,15 +82291,15 @@ function by(e, n, t) {
82291
82291
  operations: e,
82292
82292
  json: k,
82293
82293
  transformedJson: immutableJSONPatch(k, e)
82294
- }) : (c("onTransform", r, e), qe(e));
82294
+ }) : (c("onTransform", r, e), Pe(e));
82295
82295
  },
82296
82296
  onClose: function onClose() {
82297
- pe = !1, Be(), o && o();
82297
+ pe = !1, Fe(), o && o();
82298
82298
  }
82299
82299
  });
82300
82300
  }
82301
82301
  }
82302
- function yn(e) {
82302
+ function xn(e) {
82303
82303
  c("openJSONEditorModal", {
82304
82304
  path: e
82305
82305
  }), pe = !0, oe({
@@ -82307,13 +82307,13 @@ function by(e, n, t) {
82307
82307
  json: getIn(k, e)
82308
82308
  },
82309
82309
  path: e,
82310
- onPatch: we.onPatch,
82310
+ onPatch: $e.onPatch,
82311
82311
  onClose: function onClose() {
82312
- pe = !1, Be();
82312
+ pe = !1, Fe();
82313
82313
  }
82314
82314
  });
82315
82315
  }
82316
- function xn(e, n) {
82316
+ function wn(e, n) {
82317
82317
  u(Dv, {
82318
82318
  text: e,
82319
82319
  onParse: function onParse(e) {
@@ -82334,59 +82334,59 @@ function by(e, n, t) {
82334
82334
  }
82335
82335
  }), {
82336
82336
  onClose: function onClose() {
82337
- return Be();
82337
+ return Fe();
82338
82338
  }
82339
82339
  });
82340
82340
  }
82341
- function wn(e) {
82341
+ function $n(e) {
82342
82342
  c("openFind", {
82343
82343
  findAndReplace: e
82344
82344
  }), t(9, se = !1), t(21, le = !1), bo().then(function() {
82345
82345
  t(9, se = !0), t(21, le = e);
82346
82346
  });
82347
82347
  }
82348
- function $n() {
82349
- if (!S && $e.getState().canUndo) {
82350
- var _$e = $e.undo();
82348
+ function kn() {
82349
+ if (!S && ke.getState().canUndo) {
82350
+ var _$e = ke.undo();
82351
82351
  if (_$e) {
82352
82352
  var _$n = {
82353
82353
  json: k,
82354
82354
  text: C
82355
82355
  };
82356
- t(8, k = _$e.undo.patch ? immutableJSONPatch(k, _$e.undo.patch) : _$e.undo.json), t(12, ye = _$e.undo.state), t(17, C = _$e.undo.text), t(23, xe = _$e.undo.textIsRepaired), t(18, ae = void 0), c("undo", {
82356
+ t(8, k = _$e.undo.patch ? immutableJSONPatch(k, _$e.undo.patch) : _$e.undo.json), t(12, xe = _$e.undo.state), t(17, C = _$e.undo.text), t(23, we = _$e.undo.textIsRepaired), t(18, ae = void 0), c("undo", {
82357
82357
  item: _$e,
82358
82358
  json: k
82359
- }), Pe(_$n, _$e.undo.patch && _$e.redo.patch ? {
82359
+ }), Ie(_$n, _$e.undo.patch && _$e.redo.patch ? {
82360
82360
  json: k,
82361
82361
  previousJson: _$n.json,
82362
82362
  redo: _$e.undo.patch,
82363
82363
  undo: _$e.redo.patch
82364
- } : null), Be(), ye.selection && Le(bl(ye.selection), !1);
82364
+ } : null), Fe(), xe.selection && Ue(bl(xe.selection), !1);
82365
82365
  }
82366
82366
  }
82367
82367
  }
82368
- function kn() {
82369
- if (!S && $e.getState().canRedo) {
82370
- var _$e = $e.redo();
82368
+ function Cn() {
82369
+ if (!S && ke.getState().canRedo) {
82370
+ var _$e = ke.redo();
82371
82371
  if (_$e) {
82372
82372
  var _$n = {
82373
82373
  json: k,
82374
82374
  text: C
82375
82375
  };
82376
- t(8, k = _$e.redo.patch ? immutableJSONPatch(k, _$e.redo.patch) : _$e.redo.json), t(12, ye = _$e.redo.state), t(17, C = _$e.redo.text), t(23, xe = _$e.redo.textIsRepaired), t(18, ae = void 0), c("redo", {
82376
+ t(8, k = _$e.redo.patch ? immutableJSONPatch(k, _$e.redo.patch) : _$e.redo.json), t(12, xe = _$e.redo.state), t(17, C = _$e.redo.text), t(23, we = _$e.redo.textIsRepaired), t(18, ae = void 0), c("redo", {
82377
82377
  item: _$e,
82378
82378
  json: k
82379
- }), Pe(_$n, _$e.undo.patch && _$e.redo.patch ? {
82379
+ }), Ie(_$n, _$e.undo.patch && _$e.redo.patch ? {
82380
82380
  json: k,
82381
82381
  previousJson: _$n.json,
82382
82382
  redo: _$e.redo.patch,
82383
82383
  undo: _$e.undo.patch
82384
- } : null), Be(), ye.selection && Le(bl(ye.selection), !1);
82384
+ } : null), Fe(), xe.selection && Ue(bl(xe.selection), !1);
82385
82385
  }
82386
82386
  }
82387
82387
  }
82388
- function Cn(e, n) {
82389
- t(76, me[n] = e.getBoundingClientRect().height, me);
82388
+ function Sn(e, n) {
82389
+ t(76, ge[n] = e.getBoundingClientRect().height, ge);
82390
82390
  }
82391
82391
  return e.$$set = function(e) {
82392
82392
  "readOnly" in e && t(0, S = e.readOnly), "externalContent" in e && t(53, E = e.externalContent), "externalSelection" in e && t(54, q = e.externalSelection), "mainMenuBar" in e && t(1, P = e.mainMenuBar), "escapeControlCharacters" in e && t(55, I = e.escapeControlCharacters), "escapeUnicodeCharacters" in e && t(56, T = e.escapeUnicodeCharacters), "flattenColumns" in e && t(57, A = e.flattenColumns), "parser" in e && t(2, B = e.parser), "parseMemoizeOne" in e && t(58, F = e.parseMemoizeOne), "validator" in e && t(59, U = e.validator), "validationParser" in e && t(60, D = e.validationParser), "indentation" in e && t(3, J = e.indentation), "onChange" in e && t(61, V = e.onChange), "onChangeMode" in e && t(4, H = e.onChangeMode), "onSelect" in e && t(62, W = e.onSelect), "onRenderValue" in e && t(63, Q = e.onRenderValue), "onRenderMenu" in e && t(5, Y = e.onRenderMenu), "onRenderContextMenu" in e && t(64, K = e.onRenderContextMenu), "onFocus" in e && t(65, Z = e.onFocus), "onBlur" in e && t(66, X = e.onBlur), "onSortModal" in e && t(67, ee = e.onSortModal), "onTransformModal" in e && t(68, te = e.onTransformModal), "onJSONEditorModal" in e && t(69, oe = e.onJSONEditorModal);
@@ -82402,8 +82402,8 @@ function by(e, n, t) {
82402
82402
  left: x.scrollLeft
82403
82403
  });
82404
82404
  }
82405
- }(se), 4194304 & e.$$.dirty[1] && Ce(E), 8388608 & e.$$.dirty[1] && function(e) {
82406
- isEqual$1(ye.selection, e) || (c("applyExternalSelection", e), (Vs(e) || null === e) && je(e));
82405
+ }(se), 4194304 & e.$$.dirty[1] && Se(E), 8388608 & e.$$.dirty[1] && function(e) {
82406
+ isEqual$1(xe.selection, e) || (c("applyExternalSelection", e), (Vs(e) || null === e) && be(e));
82407
82407
  }(q), 3328 & e.$$.dirty[0] | 67108864 & e.$$.dirty[1] && t(11, ve = isJSONArray(k) ? function(e, n) {
82408
82408
  var _$t, r = new Set(n.map(compileJSONPointer)), i = new Set(e.map(compileJSONPointer)), a = o(r);
82409
82409
  try {
@@ -82428,10 +82428,10 @@ function by(e, n, t) {
82428
82428
  c.f();
82429
82429
  }
82430
82430
  return w(r).map(parseJSONPointer);
82431
- }($g(k, A, de), ve) : []), 2304 & e.$$.dirty[0] && t(22, ue = !(!k || isEmpty(ve))), 1280 & e.$$.dirty[0] && t(28, i = Array.isArray(k) && k.length > de), 768 & e.$$.dirty[0] | 114688 & e.$$.dirty[2] && t(27, s = Sg(he, ge, k, me, jy, se ? Ur : 0)), 256 & e.$$.dirty[0] && x && x.scrollTo({
82431
+ }($g(k, A, de), ve) : []), 2304 & e.$$.dirty[0] && t(22, ue = !(!k || isEmpty(ve))), 1280 & e.$$.dirty[0] && t(28, i = Array.isArray(k) && k.length > de), 768 & e.$$.dirty[0] | 114688 & e.$$.dirty[2] && t(27, s = Sg(je, he, k, ge, jy, se ? Ur : 0)), 256 & e.$$.dirty[0] && x && x.scrollTo({
82432
82432
  top: x.scrollTop,
82433
82433
  left: x.scrollLeft
82434
- }), 4357 & e.$$.dirty[0] | 8194 & e.$$.dirty[2] && t(25, we = {
82434
+ }), 4357 & e.$$.dirty[0] | 8194 & e.$$.dirty[2] && t(25, $e = {
82435
82435
  readOnly: S,
82436
82436
  parser: B,
82437
82437
  normalization: b,
@@ -82439,17 +82439,17 @@ function by(e, n, t) {
82439
82439
  return k;
82440
82440
  },
82441
82441
  getDocumentState: function getDocumentState() {
82442
- return ye;
82442
+ return xe;
82443
82443
  },
82444
- findElement: Ge,
82445
- findNextInside: Ne,
82446
- focus: Be,
82447
- onPatch: qe,
82448
- onSelect: je,
82449
- onFind: Ie,
82450
- onPasteJson: Te,
82444
+ findElement: Ze,
82445
+ findNextInside: Be,
82446
+ focus: Fe,
82447
+ onPatch: Pe,
82448
+ onSelect: be,
82449
+ onFind: Te,
82450
+ onPasteJson: Ne,
82451
82451
  onRenderValue: Q
82452
- }), 260 & e.$$.dirty[0] | 805306368 & e.$$.dirty[1] && ze(k, U, B, D), 10240 & e.$$.dirty[0] && t(26, l = Rg(Me, ve));
82452
+ }), 260 & e.$$.dirty[0] | 805306368 & e.$$.dirty[1] && Re(k, U, B, D), 10240 & e.$$.dirty[0] && t(26, l = Rg(Oe, ve));
82453
82453
  }, [
82454
82454
  S,
82455
82455
  P,
@@ -82457,20 +82457,20 @@ function by(e, n, t) {
82457
82457
  J,
82458
82458
  H,
82459
82459
  Y,
82460
- Be,
82460
+ Fe,
82461
82461
  function() {
82462
- if (xe && void 0 !== k) {
82463
- var _$e = ye, _$n = k, o = C, r = {
82462
+ if (we && void 0 !== k) {
82463
+ var _$e = xe, _$n = k, o = C, r = {
82464
82464
  json: k,
82465
82465
  text: C
82466
- }, i = xe;
82467
- t(17, C = void 0), t(23, xe = !1), be(k), Se({
82466
+ }, i = we;
82467
+ t(17, C = void 0), t(23, we = !1), ye(k), Me({
82468
82468
  previousJson: _$n,
82469
82469
  previousState: _$e,
82470
82470
  previousText: o,
82471
82471
  previousTextIsRepaired: i
82472
82472
  });
82473
- Pe(r, null);
82473
+ Ie(r, null);
82474
82474
  }
82475
82475
  return {
82476
82476
  json: k,
@@ -82481,8 +82481,8 @@ function by(e, n, t) {
82481
82481
  se,
82482
82482
  de,
82483
82483
  ve,
82484
- ye,
82485
- Me,
82484
+ xe,
82485
+ Oe,
82486
82486
  _$y,
82487
82487
  x,
82488
82488
  $,
@@ -82492,9 +82492,9 @@ function by(e, n, t) {
82492
82492
  ie,
82493
82493
  le,
82494
82494
  ue,
82495
- xe,
82496
- ke,
82497
82495
  we,
82496
+ Ce,
82497
+ $e,
82498
82498
  l,
82499
82499
  s,
82500
82500
  i,
@@ -82506,13 +82506,13 @@ function by(e, n, t) {
82506
82506
  return ce.apply(this, arguments);
82507
82507
  },
82508
82508
  function() {
82509
- t(9, se = !1), t(21, le = !1), Be();
82509
+ t(9, se = !1), t(21, le = !1), Fe();
82510
82510
  },
82511
82511
  function(e) {
82512
82512
  if (!S) {
82513
82513
  c("onSortByHeader", e);
82514
82514
  var _$n = e.sortDirection === fr.desc ? -1 : 1;
82515
- qe(Tm(k, [], e.path, _$n), function(n, t) {
82515
+ Pe(Tm(k, [], e.path, _$n), function(n, t) {
82516
82516
  return {
82517
82517
  state: g(g({}, t), {}, {
82518
82518
  sortedColumn: e
@@ -82521,24 +82521,24 @@ function by(e, n, t) {
82521
82521
  });
82522
82522
  }
82523
82523
  },
82524
- qe,
82524
+ Pe,
82525
82525
  function(e) {
82526
- t(78, he = e.target.scrollTop);
82526
+ t(78, je = e.target.scrollTop);
82527
82527
  },
82528
82528
  function(e) {
82529
82529
  if (1 === e.buttons || 2 === e.buttons) {
82530
82530
  var _$n = e.target, t = oa(_$n);
82531
82531
  if (t) {
82532
- if (dl(ye.selection) && hl(k, ye.selection, t)) return;
82533
- je(al(t, !1)), e.preventDefault();
82532
+ if (dl(xe.selection) && hl(k, xe.selection, t)) return;
82533
+ be(al(t, !1)), e.preventDefault();
82534
82534
  }
82535
- _$n.isContentEditable || setTimeout(Be);
82535
+ _$n.isContentEditable || me || setTimeout(Fe);
82536
82536
  }
82537
82537
  },
82538
- Ze,
82539
82538
  Xe,
82539
+ en,
82540
82540
  function(e) {
82541
- Ze({
82541
+ Xe({
82542
82542
  anchor: ea(e.target, "BUTTON"),
82543
82543
  offsetTop: 0,
82544
82544
  width: Lr,
@@ -82547,10 +82547,10 @@ function by(e, n, t) {
82547
82547
  });
82548
82548
  },
82549
82549
  function() {
82550
- return on.apply(this, arguments);
82550
+ return rn.apply(this, arguments);
82551
82551
  },
82552
82552
  function() {
82553
- c("clear pasted json"), t(19, re = void 0), Be();
82553
+ c("clear pasted json"), t(19, re = void 0), Fe();
82554
82554
  },
82555
82555
  function() {
82556
82556
  H(sr.text);
@@ -82560,61 +82560,61 @@ function by(e, n, t) {
82560
82560
  if (c("keydown", {
82561
82561
  combo: _$n,
82562
82562
  key: e.key
82563
- }), "Ctrl+X" === _$n && (e.preventDefault(), an(!0)), "Ctrl+Shift+X" === _$n && (e.preventDefault(), an(!1)), "Ctrl+C" === _$n && (e.preventDefault(), cn(!0)), "Ctrl+Shift+C" === _$n && (e.preventDefault(), cn(!1)), "Ctrl+D" === _$n && e.preventDefault(), "Delete" !== _$n && "Backspace" !== _$n || (e.preventDefault(), dn()), "Insert" === _$n && e.preventDefault(), "Ctrl+A" === _$n && e.preventDefault(), "Ctrl+Q" === _$n && Xe(e), "ArrowLeft" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82563
+ }), "Ctrl+X" === _$n && (e.preventDefault(), ln(!0)), "Ctrl+Shift+X" === _$n && (e.preventDefault(), ln(!1)), "Ctrl+C" === _$n && (e.preventDefault(), un(!0)), "Ctrl+Shift+C" === _$n && (e.preventDefault(), un(!1)), "Ctrl+D" === _$n && e.preventDefault(), "Delete" !== _$n && "Backspace" !== _$n || (e.preventDefault(), fn()), "Insert" === _$n && e.preventDefault(), "Ctrl+A" === _$n && e.preventDefault(), "Ctrl+Q" === _$n && en(e), "ArrowLeft" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82564
82564
  var t = function(e, n) {
82565
82565
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82566
82566
  return r > 0 ? al(zg({
82567
82567
  rowIndex: o,
82568
82568
  columnIndex: r - 1
82569
82569
  }, e), !1) : n;
82570
- }(ve, ye.selection);
82571
- je(t), Qe(bl(t));
82570
+ }(ve, xe.selection);
82571
+ be(t), Ge(bl(t));
82572
82572
  }
82573
- if ("ArrowRight" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82573
+ if ("ArrowRight" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82574
82574
  var o = function(e, n) {
82575
82575
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82576
82576
  return r < e.length - 1 ? al(zg({
82577
82577
  rowIndex: o,
82578
82578
  columnIndex: r + 1
82579
82579
  }, e), !1) : n;
82580
- }(ve, ye.selection);
82581
- je(o), Qe(bl(o));
82580
+ }(ve, xe.selection);
82581
+ be(o), Ge(bl(o));
82582
82582
  }
82583
- if ("ArrowUp" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82583
+ if ("ArrowUp" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82584
82584
  var r = function(e, n) {
82585
82585
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82586
82586
  return o > 0 ? al(zg({
82587
82587
  rowIndex: o - 1,
82588
82588
  columnIndex: r
82589
82589
  }, e), !1) : n;
82590
- }(ve, ye.selection);
82591
- je(r), Qe(bl(r));
82590
+ }(ve, xe.selection);
82591
+ be(r), Ge(bl(r));
82592
82592
  }
82593
- if ("ArrowDown" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82593
+ if ("ArrowDown" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82594
82594
  var i = function(e, n, t) {
82595
82595
  var o = Og(bl(t), n), r = o.rowIndex, i = o.columnIndex;
82596
82596
  return r < e.length - 1 ? al(zg({
82597
82597
  rowIndex: r + 1,
82598
82598
  columnIndex: i
82599
82599
  }, n), !1) : t;
82600
- }(k, ve, ye.selection);
82601
- je(i), Qe(bl(i));
82600
+ }(k, ve, xe.selection);
82601
+ be(i), Ge(bl(i));
82602
82602
  }
82603
- if ("Enter" === _$n && ye.selection && Us(ye.selection)) {
82603
+ if ("Enter" === _$n && xe.selection && Us(xe.selection)) {
82604
82604
  e.preventDefault();
82605
- var a = ye.selection.path;
82606
- Yr(getIn(k, a)) ? yn(a) : S || je(g(g({}, ye.selection), {}, {
82605
+ var a = xe.selection.path;
82606
+ Yr(getIn(k, a)) ? xn(a) : S || be(g(g({}, xe.selection), {}, {
82607
82607
  edit: !0
82608
82608
  }));
82609
82609
  }
82610
- if (1 === _$n.replace(/^Shift\+/, "").length && ye.selection) return e.preventDefault(), void function(e) {
82611
- gn.apply(this, arguments);
82610
+ if (1 === _$n.replace(/^Shift\+/, "").length && xe.selection) return e.preventDefault(), void function(e) {
82611
+ hn.apply(this, arguments);
82612
82612
  }(e.key);
82613
- if ("Ctrl+Enter" === _$n && Us(ye.selection)) {
82614
- var s = getIn(k, ye.selection.path);
82613
+ if ("Ctrl+Enter" === _$n && Us(xe.selection)) {
82614
+ var s = getIn(k, xe.selection.path);
82615
82615
  ni(s) && window.open(String(s), "_blank");
82616
82616
  }
82617
- "Escape" === _$n && ye.selection && (e.preventDefault(), je(null)), "Ctrl+F" === _$n && (e.preventDefault(), wn(!1)), "Ctrl+H" === _$n && (e.preventDefault(), wn(!0)), "Ctrl+Z" === _$n && (e.preventDefault(), $n()), "Ctrl+Shift+Z" === _$n && (e.preventDefault(), kn());
82617
+ "Escape" === _$n && xe.selection && (e.preventDefault(), be(null)), "Ctrl+F" === _$n && (e.preventDefault(), $n(!1)), "Ctrl+H" === _$n && (e.preventDefault(), $n(!0)), "Ctrl+Z" === _$n && (e.preventDefault(), kn()), "Ctrl+Shift+Z" === _$n && (e.preventDefault(), Cn());
82618
82618
  },
82619
82619
  function(e) {
82620
82620
  var _$n;
@@ -82623,18 +82623,18 @@ function by(e, n, t) {
82623
82623
  void 0 !== t && Fg({
82624
82624
  clipboardText: t,
82625
82625
  json: k,
82626
- selection: ye.selection,
82626
+ selection: xe.selection,
82627
82627
  readOnly: S,
82628
82628
  parser: B,
82629
- onPatch: qe,
82630
- onChangeText: jn,
82631
- openRepairModal: xn
82629
+ onPatch: Pe,
82630
+ onChangeText: bn,
82631
+ openRepairModal: wn
82632
82632
  });
82633
82633
  },
82634
82634
  function(e) {
82635
- c("select validation error", e), je(al(e.path, !1)), Le(e.path);
82635
+ c("select validation error", e), be(al(e.path, !1)), Ue(e.path);
82636
82636
  },
82637
- yn,
82637
+ xn,
82638
82638
  function() {
82639
82639
  !function(e) {
82640
82640
  S || void 0 === k || (pe = !0, ee({
@@ -82643,7 +82643,7 @@ function by(e, n, t) {
82643
82643
  rootPath: e,
82644
82644
  onSort: function onSort(n) {
82645
82645
  var t = n.operations, o = n.itemPath, r = n.direction;
82646
- c("onSort", t, e, o, r), qe(t, function(e, n) {
82646
+ c("onSort", t, e, o, r), Pe(t, function(e, n) {
82647
82647
  return {
82648
82648
  state: g(g({}, n), {}, {
82649
82649
  sortedColumn: {
@@ -82655,22 +82655,22 @@ function by(e, n, t) {
82655
82655
  });
82656
82656
  },
82657
82657
  onClose: function onClose() {
82658
- pe = !1, Be();
82658
+ pe = !1, Fe();
82659
82659
  }
82660
82660
  }));
82661
82661
  }([]);
82662
82662
  },
82663
82663
  function() {
82664
- bn({
82664
+ yn({
82665
82665
  rootPath: []
82666
82666
  });
82667
82667
  },
82668
- $n,
82669
82668
  kn,
82669
+ Cn,
82670
82670
  function(e) {
82671
- t(77, ge = e.getBoundingClientRect().height);
82671
+ t(77, he = e.getBoundingClientRect().height);
82672
82672
  },
82673
- Cn,
82673
+ Sn,
82674
82674
  E,
82675
82675
  q,
82676
82676
  I,
@@ -82688,15 +82688,15 @@ function by(e, n, t) {
82688
82688
  ee,
82689
82689
  te,
82690
82690
  oe,
82691
- Re,
82692
82691
  Ee,
82693
- Le,
82694
- Ge,
82695
- bn,
82692
+ qe,
82693
+ Ue,
82694
+ Ze,
82695
+ yn,
82696
82696
  b,
82697
- me,
82698
82697
  ge,
82699
82698
  he,
82699
+ je,
82700
82700
  function(e) {
82701
82701
  t(9, se = e);
82702
82702
  },
@@ -82709,7 +82709,7 @@ function by(e, n, t) {
82709
82709
  return t(10, de = 1 / 0);
82710
82710
  },
82711
82711
  function(e, n) {
82712
- return Cn(n, e);
82712
+ return Sn(n, e);
82713
82713
  },
82714
82714
  function(e) {
82715
82715
  vo[e ? "unshift" : "push"](function() {
@@ -82717,7 +82717,7 @@ function by(e, n, t) {
82717
82717
  });
82718
82718
  },
82719
82719
  function() {
82720
- Be();
82720
+ Fe();
82721
82721
  },
82722
82722
  function(e) {
82723
82723
  vo[e ? "unshift" : "push"](function() {