@hero-design/rn 8.131.3 → 8.131.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/es/index.js +360 -357
- package/lib/index.js +360 -357
- package/package.json +8 -8
package/es/index.js
CHANGED
|
@@ -3262,18 +3262,13 @@ var createCache = function createCache(options) {
|
|
|
3262
3262
|
};
|
|
3263
3263
|
|
|
3264
3264
|
function _extends() {
|
|
3265
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
3266
|
-
for (var
|
|
3267
|
-
var
|
|
3268
|
-
for (var
|
|
3269
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3270
|
-
target[key] = source[key];
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3265
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
3266
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3267
|
+
var t = arguments[e];
|
|
3268
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
3273
3269
|
}
|
|
3274
|
-
return
|
|
3275
|
-
};
|
|
3276
|
-
return _extends.apply(this, arguments);
|
|
3270
|
+
return n;
|
|
3271
|
+
}, _extends.apply(null, arguments);
|
|
3277
3272
|
}
|
|
3278
3273
|
|
|
3279
3274
|
var EmotionCacheContext = /* #__PURE__ */React.createContext(
|
|
@@ -16744,36 +16739,36 @@ function selection_dispatch (type, params) {
|
|
|
16744
16739
|
var _marked = /*#__PURE__*/_regeneratorRuntime().mark(_callee);
|
|
16745
16740
|
function _callee() {
|
|
16746
16741
|
var groups, j, m, group, i, n, node;
|
|
16747
|
-
return _regeneratorRuntime().wrap(function
|
|
16742
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
16748
16743
|
while (1) switch (_context.prev = _context.next) {
|
|
16749
16744
|
case 0:
|
|
16750
16745
|
groups = this._groups, j = 0, m = groups.length;
|
|
16751
16746
|
case 1:
|
|
16752
16747
|
if (!(j < m)) {
|
|
16753
|
-
_context.next =
|
|
16748
|
+
_context.next = 5;
|
|
16754
16749
|
break;
|
|
16755
16750
|
}
|
|
16756
16751
|
group = groups[j], i = 0, n = group.length;
|
|
16757
|
-
case
|
|
16752
|
+
case 2:
|
|
16758
16753
|
if (!(i < n)) {
|
|
16759
|
-
_context.next =
|
|
16754
|
+
_context.next = 4;
|
|
16760
16755
|
break;
|
|
16761
16756
|
}
|
|
16762
16757
|
if (!(node = group[i])) {
|
|
16763
|
-
_context.next =
|
|
16758
|
+
_context.next = 3;
|
|
16764
16759
|
break;
|
|
16765
16760
|
}
|
|
16766
|
-
_context.next =
|
|
16761
|
+
_context.next = 3;
|
|
16767
16762
|
return node;
|
|
16768
|
-
case
|
|
16763
|
+
case 3:
|
|
16769
16764
|
++i;
|
|
16770
|
-
_context.next =
|
|
16765
|
+
_context.next = 2;
|
|
16771
16766
|
break;
|
|
16772
|
-
case
|
|
16767
|
+
case 4:
|
|
16773
16768
|
++j;
|
|
16774
16769
|
_context.next = 1;
|
|
16775
16770
|
break;
|
|
16776
|
-
case
|
|
16771
|
+
case 5:
|
|
16777
16772
|
case "end":
|
|
16778
16773
|
return _context.stop();
|
|
16779
16774
|
}
|
|
@@ -31531,15 +31526,15 @@ function requireLib() {
|
|
|
31531
31526
|
return n(e) && Me.isPoint(e.anchor) && Me.isPoint(e.focus);
|
|
31532
31527
|
},
|
|
31533
31528
|
points: /*#__PURE__*/_regeneratorRuntime().mark(function points(e) {
|
|
31534
|
-
return _regeneratorRuntime().wrap(function
|
|
31529
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
31535
31530
|
while (1) switch (_context.prev = _context.next) {
|
|
31536
31531
|
case 0:
|
|
31537
|
-
_context.next =
|
|
31532
|
+
_context.next = 1;
|
|
31538
31533
|
return [e.anchor, "anchor"];
|
|
31539
|
-
case
|
|
31540
|
-
_context.next =
|
|
31534
|
+
case 1:
|
|
31535
|
+
_context.next = 2;
|
|
31541
31536
|
return [e.focus, "focus"];
|
|
31542
|
-
case
|
|
31537
|
+
case 2:
|
|
31543
31538
|
case "end":
|
|
31544
31539
|
return _context.stop();
|
|
31545
31540
|
}
|
|
@@ -31611,41 +31606,41 @@ function requireLib() {
|
|
|
31611
31606
|
ancestors: function ancestors(e, t) {
|
|
31612
31607
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
31613
31608
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31614
|
-
var _iterator9, _step9, n, o;
|
|
31615
|
-
return _regeneratorRuntime().wrap(function
|
|
31609
|
+
var _iterator9, _step9, n, o, _t7;
|
|
31610
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
31616
31611
|
while (1) switch (_context2.prev = _context2.next) {
|
|
31617
31612
|
case 0:
|
|
31618
31613
|
_iterator9 = _createForOfIteratorHelper(ie.ancestors(t, r));
|
|
31619
31614
|
_context2.prev = 1;
|
|
31620
31615
|
_iterator9.s();
|
|
31621
|
-
case
|
|
31616
|
+
case 2:
|
|
31622
31617
|
if ((_step9 = _iterator9.n()).done) {
|
|
31623
|
-
_context2.next =
|
|
31618
|
+
_context2.next = 4;
|
|
31624
31619
|
break;
|
|
31625
31620
|
}
|
|
31626
31621
|
n = _step9.value;
|
|
31627
31622
|
o = [Ae.ancestor(e, n), n];
|
|
31628
|
-
_context2.next = 8;
|
|
31629
|
-
return o;
|
|
31630
|
-
case 8:
|
|
31631
31623
|
_context2.next = 3;
|
|
31624
|
+
return o;
|
|
31625
|
+
case 3:
|
|
31626
|
+
_context2.next = 2;
|
|
31632
31627
|
break;
|
|
31633
|
-
case
|
|
31634
|
-
_context2.next =
|
|
31628
|
+
case 4:
|
|
31629
|
+
_context2.next = 6;
|
|
31635
31630
|
break;
|
|
31636
|
-
case
|
|
31637
|
-
_context2.prev =
|
|
31638
|
-
|
|
31639
|
-
_iterator9.e(
|
|
31640
|
-
case
|
|
31641
|
-
_context2.prev =
|
|
31631
|
+
case 5:
|
|
31632
|
+
_context2.prev = 5;
|
|
31633
|
+
_t7 = _context2["catch"](1);
|
|
31634
|
+
_iterator9.e(_t7);
|
|
31635
|
+
case 6:
|
|
31636
|
+
_context2.prev = 6;
|
|
31642
31637
|
_iterator9.f();
|
|
31643
|
-
return _context2.finish(
|
|
31644
|
-
case
|
|
31638
|
+
return _context2.finish(6);
|
|
31639
|
+
case 7:
|
|
31645
31640
|
case "end":
|
|
31646
31641
|
return _context2.stop();
|
|
31647
31642
|
}
|
|
31648
|
-
}, _callee, null, [[1,
|
|
31643
|
+
}, _callee, null, [[1, 5, 6, 7]]);
|
|
31649
31644
|
})();
|
|
31650
31645
|
},
|
|
31651
31646
|
child: function child(e, t) {
|
|
@@ -31658,24 +31653,24 @@ function requireLib() {
|
|
|
31658
31653
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
31659
31654
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
31660
31655
|
var _r$reverse, n, o, u, a, i, s;
|
|
31661
|
-
return _regeneratorRuntime().wrap(function
|
|
31656
|
+
return _regeneratorRuntime().wrap(function (_context3) {
|
|
31662
31657
|
while (1) switch (_context3.prev = _context3.next) {
|
|
31663
31658
|
case 0:
|
|
31664
31659
|
_r$reverse = r.reverse, n = _r$reverse === void 0 ? false : _r$reverse, o = Ae.ancestor(e, t), u = o.children, a = n ? u.length - 1 : 0;
|
|
31665
31660
|
case 1:
|
|
31666
31661
|
if (!(n ? a >= 0 : a < u.length)) {
|
|
31667
|
-
_context3.next =
|
|
31662
|
+
_context3.next = 4;
|
|
31668
31663
|
break;
|
|
31669
31664
|
}
|
|
31670
31665
|
i = Ae.child(o, a), s = t.concat(a);
|
|
31671
|
-
_context3.next =
|
|
31666
|
+
_context3.next = 2;
|
|
31672
31667
|
return [i, s];
|
|
31673
|
-
case
|
|
31668
|
+
case 2:
|
|
31674
31669
|
a = n ? a - 1 : a + 1;
|
|
31675
|
-
case
|
|
31670
|
+
case 3:
|
|
31676
31671
|
_context3.next = 1;
|
|
31677
31672
|
break;
|
|
31678
|
-
case
|
|
31673
|
+
case 4:
|
|
31679
31674
|
case "end":
|
|
31680
31675
|
return _context3.stop();
|
|
31681
31676
|
}
|
|
@@ -31694,89 +31689,89 @@ function requireLib() {
|
|
|
31694
31689
|
descendants: function descendants(e) {
|
|
31695
31690
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
31696
31691
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
31697
|
-
var _iterator10, _step10, _step10$value, r, n;
|
|
31698
|
-
return _regeneratorRuntime().wrap(function
|
|
31692
|
+
var _iterator10, _step10, _step10$value, r, n, _t8, _t9;
|
|
31693
|
+
return _regeneratorRuntime().wrap(function (_context4) {
|
|
31699
31694
|
while (1) switch (_context4.prev = _context4.next) {
|
|
31700
31695
|
case 0:
|
|
31701
31696
|
_iterator10 = _createForOfIteratorHelper(Ae.nodes(e, t));
|
|
31702
31697
|
_context4.prev = 1;
|
|
31703
31698
|
_iterator10.s();
|
|
31704
|
-
case
|
|
31699
|
+
case 2:
|
|
31705
31700
|
if ((_step10 = _iterator10.n()).done) {
|
|
31706
|
-
_context4.next =
|
|
31701
|
+
_context4.next = 4;
|
|
31707
31702
|
break;
|
|
31708
31703
|
}
|
|
31709
31704
|
_step10$value = _slicedToArray(_step10.value, 2), r = _step10$value[0], n = _step10$value[1];
|
|
31710
|
-
|
|
31711
|
-
if (!
|
|
31712
|
-
_context4.next =
|
|
31705
|
+
_t8 = 0 !== n.length;
|
|
31706
|
+
if (!_t8) {
|
|
31707
|
+
_context4.next = 3;
|
|
31713
31708
|
break;
|
|
31714
31709
|
}
|
|
31715
|
-
_context4.next = 9;
|
|
31716
|
-
return [r, n];
|
|
31717
|
-
case 9:
|
|
31718
31710
|
_context4.next = 3;
|
|
31711
|
+
return [r, n];
|
|
31712
|
+
case 3:
|
|
31713
|
+
_context4.next = 2;
|
|
31719
31714
|
break;
|
|
31720
|
-
case
|
|
31721
|
-
_context4.next =
|
|
31715
|
+
case 4:
|
|
31716
|
+
_context4.next = 6;
|
|
31722
31717
|
break;
|
|
31723
|
-
case
|
|
31724
|
-
_context4.prev =
|
|
31725
|
-
|
|
31726
|
-
_iterator10.e(
|
|
31727
|
-
case
|
|
31728
|
-
_context4.prev =
|
|
31718
|
+
case 5:
|
|
31719
|
+
_context4.prev = 5;
|
|
31720
|
+
_t9 = _context4["catch"](1);
|
|
31721
|
+
_iterator10.e(_t9);
|
|
31722
|
+
case 6:
|
|
31723
|
+
_context4.prev = 6;
|
|
31729
31724
|
_iterator10.f();
|
|
31730
|
-
return _context4.finish(
|
|
31731
|
-
case
|
|
31725
|
+
return _context4.finish(6);
|
|
31726
|
+
case 7:
|
|
31732
31727
|
case "end":
|
|
31733
31728
|
return _context4.stop();
|
|
31734
31729
|
}
|
|
31735
|
-
}, _callee3, null, [[1,
|
|
31730
|
+
}, _callee3, null, [[1, 5, 6, 7]]);
|
|
31736
31731
|
})();
|
|
31737
31732
|
},
|
|
31738
31733
|
elements: function elements(e) {
|
|
31739
31734
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
31740
31735
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31741
|
-
var _iterator11, _step11, _step11$value, r, n;
|
|
31742
|
-
return _regeneratorRuntime().wrap(function
|
|
31736
|
+
var _iterator11, _step11, _step11$value, r, n, _t10, _t11;
|
|
31737
|
+
return _regeneratorRuntime().wrap(function (_context5) {
|
|
31743
31738
|
while (1) switch (_context5.prev = _context5.next) {
|
|
31744
31739
|
case 0:
|
|
31745
31740
|
_iterator11 = _createForOfIteratorHelper(Ae.nodes(e, t));
|
|
31746
31741
|
_context5.prev = 1;
|
|
31747
31742
|
_iterator11.s();
|
|
31748
|
-
case
|
|
31743
|
+
case 2:
|
|
31749
31744
|
if ((_step11 = _iterator11.n()).done) {
|
|
31750
|
-
_context5.next =
|
|
31745
|
+
_context5.next = 4;
|
|
31751
31746
|
break;
|
|
31752
31747
|
}
|
|
31753
31748
|
_step11$value = _slicedToArray(_step11.value, 2), r = _step11$value[0], n = _step11$value[1];
|
|
31754
|
-
|
|
31755
|
-
if (!
|
|
31756
|
-
_context5.next =
|
|
31749
|
+
_t10 = Be.isElement(r);
|
|
31750
|
+
if (!_t10) {
|
|
31751
|
+
_context5.next = 3;
|
|
31757
31752
|
break;
|
|
31758
31753
|
}
|
|
31759
|
-
_context5.next = 9;
|
|
31760
|
-
return [r, n];
|
|
31761
|
-
case 9:
|
|
31762
31754
|
_context5.next = 3;
|
|
31755
|
+
return [r, n];
|
|
31756
|
+
case 3:
|
|
31757
|
+
_context5.next = 2;
|
|
31763
31758
|
break;
|
|
31764
|
-
case
|
|
31765
|
-
_context5.next =
|
|
31759
|
+
case 4:
|
|
31760
|
+
_context5.next = 6;
|
|
31766
31761
|
break;
|
|
31767
|
-
case
|
|
31768
|
-
_context5.prev =
|
|
31769
|
-
|
|
31770
|
-
_iterator11.e(
|
|
31771
|
-
case
|
|
31772
|
-
_context5.prev =
|
|
31762
|
+
case 5:
|
|
31763
|
+
_context5.prev = 5;
|
|
31764
|
+
_t11 = _context5["catch"](1);
|
|
31765
|
+
_iterator11.e(_t11);
|
|
31766
|
+
case 6:
|
|
31767
|
+
_context5.prev = 6;
|
|
31773
31768
|
_iterator11.f();
|
|
31774
|
-
return _context5.finish(
|
|
31775
|
-
case
|
|
31769
|
+
return _context5.finish(6);
|
|
31770
|
+
case 7:
|
|
31776
31771
|
case "end":
|
|
31777
31772
|
return _context5.stop();
|
|
31778
31773
|
}
|
|
31779
|
-
}, _callee4, null, [[1,
|
|
31774
|
+
}, _callee4, null, [[1, 5, 6, 7]]);
|
|
31780
31775
|
})();
|
|
31781
31776
|
},
|
|
31782
31777
|
extractProps: function extractProps(e) {
|
|
@@ -31879,41 +31874,41 @@ function requireLib() {
|
|
|
31879
31874
|
levels: function levels(e, t) {
|
|
31880
31875
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
31881
31876
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
31882
|
-
var _iterator13, _step13, n, o;
|
|
31883
|
-
return _regeneratorRuntime().wrap(function
|
|
31877
|
+
var _iterator13, _step13, n, o, _t12;
|
|
31878
|
+
return _regeneratorRuntime().wrap(function (_context6) {
|
|
31884
31879
|
while (1) switch (_context6.prev = _context6.next) {
|
|
31885
31880
|
case 0:
|
|
31886
31881
|
_iterator13 = _createForOfIteratorHelper(ie.levels(t, r));
|
|
31887
31882
|
_context6.prev = 1;
|
|
31888
31883
|
_iterator13.s();
|
|
31889
|
-
case
|
|
31884
|
+
case 2:
|
|
31890
31885
|
if ((_step13 = _iterator13.n()).done) {
|
|
31891
|
-
_context6.next =
|
|
31886
|
+
_context6.next = 4;
|
|
31892
31887
|
break;
|
|
31893
31888
|
}
|
|
31894
31889
|
n = _step13.value;
|
|
31895
31890
|
o = Ae.get(e, n);
|
|
31896
|
-
_context6.next = 8;
|
|
31897
|
-
return [o, n];
|
|
31898
|
-
case 8:
|
|
31899
31891
|
_context6.next = 3;
|
|
31892
|
+
return [o, n];
|
|
31893
|
+
case 3:
|
|
31894
|
+
_context6.next = 2;
|
|
31900
31895
|
break;
|
|
31901
|
-
case
|
|
31902
|
-
_context6.next =
|
|
31896
|
+
case 4:
|
|
31897
|
+
_context6.next = 6;
|
|
31903
31898
|
break;
|
|
31904
|
-
case
|
|
31905
|
-
_context6.prev =
|
|
31906
|
-
|
|
31907
|
-
_iterator13.e(
|
|
31908
|
-
case
|
|
31909
|
-
_context6.prev =
|
|
31899
|
+
case 5:
|
|
31900
|
+
_context6.prev = 5;
|
|
31901
|
+
_t12 = _context6["catch"](1);
|
|
31902
|
+
_iterator13.e(_t12);
|
|
31903
|
+
case 6:
|
|
31904
|
+
_context6.prev = 6;
|
|
31910
31905
|
_iterator13.f();
|
|
31911
|
-
return _context6.finish(
|
|
31912
|
-
case
|
|
31906
|
+
return _context6.finish(6);
|
|
31907
|
+
case 7:
|
|
31913
31908
|
case "end":
|
|
31914
31909
|
return _context6.stop();
|
|
31915
31910
|
}
|
|
31916
|
-
}, _callee5, null, [[1,
|
|
31911
|
+
}, _callee5, null, [[1, 5, 6, 7]]);
|
|
31917
31912
|
})();
|
|
31918
31913
|
},
|
|
31919
31914
|
matches: function matches(e, t) {
|
|
@@ -31922,57 +31917,57 @@ function requireLib() {
|
|
|
31922
31917
|
nodes: function nodes(e) {
|
|
31923
31918
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
31924
31919
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
31925
|
-
var r, _t$reverse4, n, _t$from, o, u, a, i, s, l, c;
|
|
31926
|
-
return _regeneratorRuntime().wrap(function
|
|
31920
|
+
var r, _t$reverse4, n, _t$from, o, u, a, i, s, l, c, _t13;
|
|
31921
|
+
return _regeneratorRuntime().wrap(function (_context7) {
|
|
31927
31922
|
while (1) switch (_context7.prev = _context7.next) {
|
|
31928
31923
|
case 0:
|
|
31929
31924
|
r = t.pass, _t$reverse4 = t.reverse, n = _t$reverse4 === void 0 ? false : _t$reverse4, _t$from = t.from, o = _t$from === void 0 ? [] : _t$from, u = t.to, a = new Set(), i = [], s = e;
|
|
31930
31925
|
case 1:
|
|
31931
31926
|
if (!(!u || !(n ? ie.isBefore(i, u) : ie.isAfter(i, u)))) {
|
|
31932
|
-
_context7.next =
|
|
31927
|
+
_context7.next = 7;
|
|
31933
31928
|
break;
|
|
31934
31929
|
}
|
|
31935
|
-
|
|
31936
|
-
if (
|
|
31937
|
-
_context7.next =
|
|
31930
|
+
_t13 = a.has(s);
|
|
31931
|
+
if (_t13) {
|
|
31932
|
+
_context7.next = 2;
|
|
31938
31933
|
break;
|
|
31939
31934
|
}
|
|
31940
|
-
_context7.next =
|
|
31935
|
+
_context7.next = 2;
|
|
31941
31936
|
return [s, i];
|
|
31942
|
-
case
|
|
31937
|
+
case 2:
|
|
31943
31938
|
if (!(a.has(s) || Ve.isText(s) || 0 === s.children.length || null != r && false !== r([s, i]))) {
|
|
31944
|
-
_context7.next =
|
|
31939
|
+
_context7.next = 5;
|
|
31945
31940
|
break;
|
|
31946
31941
|
}
|
|
31947
31942
|
if (!(0 === i.length)) {
|
|
31948
|
-
_context7.next =
|
|
31943
|
+
_context7.next = 3;
|
|
31949
31944
|
break;
|
|
31950
31945
|
}
|
|
31951
|
-
return _context7.abrupt("
|
|
31952
|
-
case
|
|
31946
|
+
return _context7.abrupt("continue", 7);
|
|
31947
|
+
case 3:
|
|
31953
31948
|
if (n) {
|
|
31954
|
-
_context7.next =
|
|
31949
|
+
_context7.next = 4;
|
|
31955
31950
|
break;
|
|
31956
31951
|
}
|
|
31957
31952
|
l = ie.next(i);
|
|
31958
31953
|
if (!Ae.has(e, l)) {
|
|
31959
|
-
_context7.next =
|
|
31954
|
+
_context7.next = 4;
|
|
31960
31955
|
break;
|
|
31961
31956
|
}
|
|
31962
31957
|
i = l, s = Ae.get(e, i);
|
|
31963
|
-
return _context7.abrupt("continue",
|
|
31964
|
-
case
|
|
31958
|
+
return _context7.abrupt("continue", 6);
|
|
31959
|
+
case 4:
|
|
31965
31960
|
n && 0 !== i[i.length - 1] ? (i = ie.previous(i), s = Ae.get(e, i)) : (i = ie.parent(i), s = Ae.get(e, i), a.add(s));
|
|
31966
|
-
_context7.next =
|
|
31961
|
+
_context7.next = 6;
|
|
31967
31962
|
break;
|
|
31968
|
-
case
|
|
31963
|
+
case 5:
|
|
31969
31964
|
a.add(s);
|
|
31970
31965
|
c = n ? s.children.length - 1 : 0;
|
|
31971
31966
|
ie.isAncestor(i, o) && (c = o[i.length]), i = i.concat(c), s = Ae.get(e, i);
|
|
31972
|
-
case
|
|
31967
|
+
case 6:
|
|
31973
31968
|
_context7.next = 1;
|
|
31974
31969
|
break;
|
|
31975
|
-
case
|
|
31970
|
+
case 7:
|
|
31976
31971
|
case "end":
|
|
31977
31972
|
return _context7.stop();
|
|
31978
31973
|
}
|
|
@@ -31991,45 +31986,45 @@ function requireLib() {
|
|
|
31991
31986
|
texts: function texts(e) {
|
|
31992
31987
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
31993
31988
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
31994
|
-
var _iterator14, _step14, _step14$value, r, n;
|
|
31995
|
-
return _regeneratorRuntime().wrap(function
|
|
31989
|
+
var _iterator14, _step14, _step14$value, r, n, _t14, _t15;
|
|
31990
|
+
return _regeneratorRuntime().wrap(function (_context8) {
|
|
31996
31991
|
while (1) switch (_context8.prev = _context8.next) {
|
|
31997
31992
|
case 0:
|
|
31998
31993
|
_iterator14 = _createForOfIteratorHelper(Ae.nodes(e, t));
|
|
31999
31994
|
_context8.prev = 1;
|
|
32000
31995
|
_iterator14.s();
|
|
32001
|
-
case
|
|
31996
|
+
case 2:
|
|
32002
31997
|
if ((_step14 = _iterator14.n()).done) {
|
|
32003
|
-
_context8.next =
|
|
31998
|
+
_context8.next = 4;
|
|
32004
31999
|
break;
|
|
32005
32000
|
}
|
|
32006
32001
|
_step14$value = _slicedToArray(_step14.value, 2), r = _step14$value[0], n = _step14$value[1];
|
|
32007
|
-
|
|
32008
|
-
if (!
|
|
32009
|
-
_context8.next =
|
|
32002
|
+
_t14 = Ve.isText(r);
|
|
32003
|
+
if (!_t14) {
|
|
32004
|
+
_context8.next = 3;
|
|
32010
32005
|
break;
|
|
32011
32006
|
}
|
|
32012
|
-
_context8.next = 9;
|
|
32013
|
-
return [r, n];
|
|
32014
|
-
case 9:
|
|
32015
32007
|
_context8.next = 3;
|
|
32008
|
+
return [r, n];
|
|
32009
|
+
case 3:
|
|
32010
|
+
_context8.next = 2;
|
|
32016
32011
|
break;
|
|
32017
|
-
case
|
|
32018
|
-
_context8.next =
|
|
32012
|
+
case 4:
|
|
32013
|
+
_context8.next = 6;
|
|
32019
32014
|
break;
|
|
32020
|
-
case
|
|
32021
|
-
_context8.prev =
|
|
32022
|
-
|
|
32023
|
-
_iterator14.e(
|
|
32024
|
-
case
|
|
32025
|
-
_context8.prev =
|
|
32015
|
+
case 5:
|
|
32016
|
+
_context8.prev = 5;
|
|
32017
|
+
_t15 = _context8["catch"](1);
|
|
32018
|
+
_iterator14.e(_t15);
|
|
32019
|
+
case 6:
|
|
32020
|
+
_context8.prev = 6;
|
|
32026
32021
|
_iterator14.f();
|
|
32027
|
-
return _context8.finish(
|
|
32028
|
-
case
|
|
32022
|
+
return _context8.finish(6);
|
|
32023
|
+
case 7:
|
|
32029
32024
|
case "end":
|
|
32030
32025
|
return _context8.stop();
|
|
32031
32026
|
}
|
|
32032
|
-
}, _callee7, null, [[1,
|
|
32027
|
+
}, _callee7, null, [[1, 5, 6, 7]]);
|
|
32033
32028
|
})();
|
|
32034
32029
|
}
|
|
32035
32030
|
};
|
|
@@ -32620,38 +32615,38 @@ function requireLib() {
|
|
|
32620
32615
|
},
|
|
32621
32616
|
Ye = /*#__PURE__*/_regeneratorRuntime().mark(function Ye(e) {
|
|
32622
32617
|
var t, r, n, o;
|
|
32623
|
-
return _regeneratorRuntime().wrap(function
|
|
32618
|
+
return _regeneratorRuntime().wrap(function (_context9) {
|
|
32624
32619
|
while (1) switch (_context9.prev = _context9.next) {
|
|
32625
32620
|
case 0:
|
|
32626
32621
|
t = e.length - 1, r = 0;
|
|
32627
32622
|
case 1:
|
|
32628
32623
|
if (!(r < e.length)) {
|
|
32629
|
-
_context9.next =
|
|
32624
|
+
_context9.next = 5;
|
|
32630
32625
|
break;
|
|
32631
32626
|
}
|
|
32632
32627
|
n = e.charAt(t - r);
|
|
32633
32628
|
if (!Qe(n.charCodeAt(0))) {
|
|
32634
|
-
_context9.next =
|
|
32629
|
+
_context9.next = 3;
|
|
32635
32630
|
break;
|
|
32636
32631
|
}
|
|
32637
32632
|
o = e.charAt(t - r - 1);
|
|
32638
32633
|
if (!Ge(o.charCodeAt(0))) {
|
|
32639
|
-
_context9.next =
|
|
32634
|
+
_context9.next = 3;
|
|
32640
32635
|
break;
|
|
32641
32636
|
}
|
|
32642
|
-
_context9.next =
|
|
32637
|
+
_context9.next = 2;
|
|
32643
32638
|
return o + n;
|
|
32644
|
-
case
|
|
32639
|
+
case 2:
|
|
32645
32640
|
r++;
|
|
32646
|
-
return _context9.abrupt("continue",
|
|
32647
|
-
case
|
|
32648
|
-
_context9.next =
|
|
32641
|
+
return _context9.abrupt("continue", 4);
|
|
32642
|
+
case 3:
|
|
32643
|
+
_context9.next = 4;
|
|
32649
32644
|
return n;
|
|
32650
|
-
case
|
|
32645
|
+
case 4:
|
|
32651
32646
|
r++;
|
|
32652
32647
|
_context9.next = 1;
|
|
32653
32648
|
break;
|
|
32654
|
-
case
|
|
32649
|
+
case 5:
|
|
32655
32650
|
case "end":
|
|
32656
32651
|
return _context9.stop();
|
|
32657
32652
|
}
|
|
@@ -33230,9 +33225,9 @@ function requireLib() {
|
|
|
33230
33225
|
C = _Ae$last2[1],
|
|
33231
33226
|
y = [],
|
|
33232
33227
|
B = function B(t) {
|
|
33233
|
-
var
|
|
33234
|
-
r =
|
|
33235
|
-
n =
|
|
33228
|
+
var _t16 = _slicedToArray(t, 2),
|
|
33229
|
+
r = _t16[0],
|
|
33230
|
+
n = _t16[1];
|
|
33236
33231
|
return !(0 === n.length || !p && (D && ie.isAncestor(n, m) && Be.isElement(r) && !e.isVoid(r) && !e.isInline(r) || g && ie.isAncestor(n, C) && Be.isElement(r) && !e.isVoid(r) && !e.isInline(r)));
|
|
33237
33232
|
};
|
|
33238
33233
|
var _iterator23 = _createForOfIteratorHelper(Ae.nodes({
|
|
@@ -33364,9 +33359,9 @@ function requireLib() {
|
|
|
33364
33359
|
normalizeNode: function normalizeNode() {
|
|
33365
33360
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
33366
33361
|
return function (e, t) {
|
|
33367
|
-
var
|
|
33368
|
-
r =
|
|
33369
|
-
n =
|
|
33362
|
+
var _t17 = _slicedToArray(t, 2),
|
|
33363
|
+
r = _t17[0],
|
|
33364
|
+
n = _t17[1];
|
|
33370
33365
|
if (!Ve.isText(r)) if (Be.isElement(r) && 0 === r.children.length) yt.insertNodes(e, {
|
|
33371
33366
|
text: ""
|
|
33372
33367
|
}, {
|
|
@@ -33779,8 +33774,8 @@ function requireLib() {
|
|
|
33779
33774
|
_iterator29.f();
|
|
33780
33775
|
}
|
|
33781
33776
|
var k = Array.from(O, function (t) {
|
|
33782
|
-
var
|
|
33783
|
-
r =
|
|
33777
|
+
var _t18 = _slicedToArray(t, 2),
|
|
33778
|
+
r = _t18[1];
|
|
33784
33779
|
return Se.pathRef(e, r);
|
|
33785
33780
|
}),
|
|
33786
33781
|
j = Se.pointRef(e, D),
|
|
@@ -34004,9 +33999,9 @@ function requireLib() {
|
|
|
34004
33999
|
s = r.match,
|
|
34005
34000
|
l = r.select;
|
|
34006
34001
|
if (Ae.isNode(t) && (t = [t]), 0 !== t.length) {
|
|
34007
|
-
var
|
|
34008
|
-
|
|
34009
|
-
c =
|
|
34002
|
+
var _t19 = t,
|
|
34003
|
+
_t20 = _slicedToArray(_t19, 1),
|
|
34004
|
+
c = _t20[0];
|
|
34010
34005
|
if (i || (i = qe(e), false !== l && (l = true)), null == l && (l = false), Ce.isRange(i)) if (n || (i = Se.unhangRange(e, i, {
|
|
34011
34006
|
voids: o
|
|
34012
34007
|
})), Ce.isCollapsed(i)) i = i.anchor;else {
|
|
@@ -34194,54 +34189,54 @@ function requireLib() {
|
|
|
34194
34189
|
return function (e) {
|
|
34195
34190
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
34196
34191
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
34197
|
-
var _t$at3, r, _t$reverse6, n, _t$voids3, o, u, a, i, _iterator32, _step32, _step32$value, s, l;
|
|
34198
|
-
return _regeneratorRuntime().wrap(function
|
|
34192
|
+
var _t$at3, r, _t$reverse6, n, _t$voids3, o, u, a, i, _iterator32, _step32, _step32$value, s, l, _t21;
|
|
34193
|
+
return _regeneratorRuntime().wrap(function (_context10) {
|
|
34199
34194
|
while (1) switch (_context10.prev = _context10.next) {
|
|
34200
34195
|
case 0:
|
|
34201
34196
|
_t$at3 = t.at, r = _t$at3 === void 0 ? e.selection : _t$at3, _t$reverse6 = t.reverse, n = _t$reverse6 === void 0 ? false : _t$reverse6, _t$voids3 = t.voids, o = _t$voids3 === void 0 ? false : _t$voids3, u = t.match;
|
|
34202
34197
|
if (!(null == u && (u = function u() {
|
|
34203
34198
|
return true;
|
|
34204
34199
|
}), r)) {
|
|
34205
|
-
_context10.next =
|
|
34200
|
+
_context10.next = 8;
|
|
34206
34201
|
break;
|
|
34207
34202
|
}
|
|
34208
34203
|
a = [], i = Se.path(e, r);
|
|
34209
34204
|
_iterator32 = _createForOfIteratorHelper(Ae.levels(e, i));
|
|
34210
|
-
_context10.prev =
|
|
34205
|
+
_context10.prev = 1;
|
|
34211
34206
|
_iterator32.s();
|
|
34212
|
-
case
|
|
34207
|
+
case 2:
|
|
34213
34208
|
if ((_step32 = _iterator32.n()).done) {
|
|
34214
|
-
_context10.next =
|
|
34209
|
+
_context10.next = 4;
|
|
34215
34210
|
break;
|
|
34216
34211
|
}
|
|
34217
34212
|
_step32$value = _slicedToArray(_step32.value, 2), s = _step32$value[0], l = _step32$value[1];
|
|
34218
34213
|
if (!(u(s, l) && (a.push([s, l]), !o && Be.isElement(s) && Se.isVoid(e, s)))) {
|
|
34219
|
-
_context10.next =
|
|
34214
|
+
_context10.next = 3;
|
|
34220
34215
|
break;
|
|
34221
34216
|
}
|
|
34222
|
-
return _context10.abrupt("
|
|
34223
|
-
case
|
|
34224
|
-
_context10.next =
|
|
34217
|
+
return _context10.abrupt("continue", 4);
|
|
34218
|
+
case 3:
|
|
34219
|
+
_context10.next = 2;
|
|
34225
34220
|
break;
|
|
34226
|
-
case
|
|
34227
|
-
_context10.next =
|
|
34221
|
+
case 4:
|
|
34222
|
+
_context10.next = 6;
|
|
34228
34223
|
break;
|
|
34229
|
-
case
|
|
34230
|
-
_context10.prev =
|
|
34231
|
-
|
|
34232
|
-
_iterator32.e(
|
|
34233
|
-
case
|
|
34234
|
-
_context10.prev =
|
|
34224
|
+
case 5:
|
|
34225
|
+
_context10.prev = 5;
|
|
34226
|
+
_t21 = _context10["catch"](1);
|
|
34227
|
+
_iterator32.e(_t21);
|
|
34228
|
+
case 6:
|
|
34229
|
+
_context10.prev = 6;
|
|
34235
34230
|
_iterator32.f();
|
|
34236
|
-
return _context10.finish(
|
|
34237
|
-
case
|
|
34231
|
+
return _context10.finish(6);
|
|
34232
|
+
case 7:
|
|
34238
34233
|
n && a.reverse();
|
|
34239
|
-
return _context10.delegateYield(a, "
|
|
34240
|
-
case
|
|
34234
|
+
return _context10.delegateYield(a, "t0", 8);
|
|
34235
|
+
case 8:
|
|
34241
34236
|
case "end":
|
|
34242
34237
|
return _context10.stop();
|
|
34243
34238
|
}
|
|
34244
|
-
}, _callee8, null, [[
|
|
34239
|
+
}, _callee8, null, [[1, 5, 6, 7]]);
|
|
34245
34240
|
})();
|
|
34246
34241
|
}.apply(void 0, [e].concat(r));
|
|
34247
34242
|
},
|
|
@@ -34267,8 +34262,8 @@ function requireLib() {
|
|
|
34267
34262
|
voids: o
|
|
34268
34263
|
}),
|
|
34269
34264
|
i = Array.from(a, function (t) {
|
|
34270
|
-
var
|
|
34271
|
-
r =
|
|
34265
|
+
var _t22 = _slicedToArray(t, 2),
|
|
34266
|
+
r = _t22[1];
|
|
34272
34267
|
return Se.pathRef(e, r);
|
|
34273
34268
|
});
|
|
34274
34269
|
for (var _i5 = 0, _i4 = i; _i5 < _i4.length; _i5++) {
|
|
@@ -34486,8 +34481,8 @@ function requireLib() {
|
|
|
34486
34481
|
voids: u
|
|
34487
34482
|
}),
|
|
34488
34483
|
l = Array.from(s, function (t) {
|
|
34489
|
-
var
|
|
34490
|
-
r =
|
|
34484
|
+
var _t23 = _slicedToArray(t, 2),
|
|
34485
|
+
r = _t23[1];
|
|
34491
34486
|
return Se.pathRef(e, r);
|
|
34492
34487
|
});
|
|
34493
34488
|
for (var _i6 = 0, _l2 = l; _i6 < _l2.length; _i6++) {
|
|
@@ -34562,15 +34557,15 @@ function requireLib() {
|
|
|
34562
34557
|
return function (e) {
|
|
34563
34558
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
34564
34559
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
34565
|
-
var _t$at8, r, _t$mode6, n, _t$universal, o, _t$reverse8, u, _t$voids8, a, _t$ignoreNonSelectabl, i, s, l, c, f, d, h, v, p, _iterator33, _step33, _step33$value, D, g, m, C;
|
|
34566
|
-
return _regeneratorRuntime().wrap(function
|
|
34560
|
+
var _t$at8, r, _t$mode6, n, _t$universal, o, _t$reverse8, u, _t$voids8, a, _t$ignoreNonSelectabl, i, s, l, c, f, d, h, v, p, _iterator33, _step33, _step33$value, D, g, m, C, _t25, _t26, _t27, _t28;
|
|
34561
|
+
return _regeneratorRuntime().wrap(function (_context11) {
|
|
34567
34562
|
while (1) switch (_context11.prev = _context11.next) {
|
|
34568
34563
|
case 0:
|
|
34569
34564
|
_t$at8 = t.at, r = _t$at8 === void 0 ? e.selection : _t$at8, _t$mode6 = t.mode, n = _t$mode6 === void 0 ? "all" : _t$mode6, _t$universal = t.universal, o = _t$universal === void 0 ? false : _t$universal, _t$reverse8 = t.reverse, u = _t$reverse8 === void 0 ? false : _t$reverse8, _t$voids8 = t.voids, a = _t$voids8 === void 0 ? false : _t$voids8, _t$ignoreNonSelectabl = t.ignoreNonSelectable, i = _t$ignoreNonSelectabl === void 0 ? false : _t$ignoreNonSelectabl, s = t.match;
|
|
34570
34565
|
if (!(s || (s = function s() {
|
|
34571
34566
|
return true;
|
|
34572
34567
|
}), r)) {
|
|
34573
|
-
_context11.next =
|
|
34568
|
+
_context11.next = 15;
|
|
34574
34569
|
break;
|
|
34575
34570
|
}
|
|
34576
34571
|
if (ke(r)) l = r[0], c = r[1];else {
|
|
@@ -34586,110 +34581,110 @@ function requireLib() {
|
|
|
34586
34581
|
from: l,
|
|
34587
34582
|
to: c,
|
|
34588
34583
|
pass: function pass(t) {
|
|
34589
|
-
var
|
|
34590
|
-
r =
|
|
34584
|
+
var _t24 = _slicedToArray(t, 1),
|
|
34585
|
+
r = _t24[0];
|
|
34591
34586
|
return !(!Be.isElement(r) || (a || !Se.isVoid(e, r) && !Se.isElementReadOnly(e, r)) && (!i || Se.isSelectable(e, r)));
|
|
34592
34587
|
}
|
|
34593
34588
|
}), p = [];
|
|
34594
34589
|
_iterator33 = _createForOfIteratorHelper(v);
|
|
34595
|
-
_context11.prev =
|
|
34590
|
+
_context11.prev = 1;
|
|
34596
34591
|
_iterator33.s();
|
|
34597
|
-
case
|
|
34592
|
+
case 2:
|
|
34598
34593
|
if ((_step33 = _iterator33.n()).done) {
|
|
34599
|
-
_context11.next =
|
|
34594
|
+
_context11.next = 9;
|
|
34600
34595
|
break;
|
|
34601
34596
|
}
|
|
34602
34597
|
_step33$value = _slicedToArray(_step33.value, 2), D = _step33$value[0], g = _step33$value[1];
|
|
34603
34598
|
if (!(!i || !Be.isElement(D) || Se.isSelectable(e, D))) {
|
|
34604
|
-
_context11.next =
|
|
34599
|
+
_context11.next = 8;
|
|
34605
34600
|
break;
|
|
34606
34601
|
}
|
|
34607
34602
|
m = h && 0 === ie.compare(g, h[1]);
|
|
34608
34603
|
if (!("highest" !== n || !m)) {
|
|
34609
|
-
_context11.next =
|
|
34604
|
+
_context11.next = 8;
|
|
34610
34605
|
break;
|
|
34611
34606
|
}
|
|
34612
34607
|
if (!s(D, g)) {
|
|
34613
|
-
_context11.next =
|
|
34608
|
+
_context11.next = 7;
|
|
34614
34609
|
break;
|
|
34615
34610
|
}
|
|
34616
34611
|
if (!("lowest" === n && m)) {
|
|
34617
|
-
_context11.next =
|
|
34612
|
+
_context11.next = 3;
|
|
34618
34613
|
break;
|
|
34619
34614
|
}
|
|
34620
34615
|
h = [D, g];
|
|
34621
|
-
_context11.next =
|
|
34616
|
+
_context11.next = 6;
|
|
34622
34617
|
break;
|
|
34623
|
-
case
|
|
34618
|
+
case 3:
|
|
34624
34619
|
C = "lowest" === n ? h : [D, g];
|
|
34625
|
-
|
|
34626
|
-
if (!
|
|
34627
|
-
_context11.next =
|
|
34620
|
+
_t25 = C;
|
|
34621
|
+
if (!_t25) {
|
|
34622
|
+
_context11.next = 5;
|
|
34628
34623
|
break;
|
|
34629
34624
|
}
|
|
34630
34625
|
if (!o) {
|
|
34631
|
-
_context11.next =
|
|
34626
|
+
_context11.next = 4;
|
|
34632
34627
|
break;
|
|
34633
34628
|
}
|
|
34634
34629
|
p.push(C);
|
|
34635
|
-
_context11.next =
|
|
34630
|
+
_context11.next = 5;
|
|
34636
34631
|
break;
|
|
34637
|
-
case
|
|
34638
|
-
_context11.next =
|
|
34632
|
+
case 4:
|
|
34633
|
+
_context11.next = 5;
|
|
34639
34634
|
return C;
|
|
34640
|
-
case
|
|
34635
|
+
case 5:
|
|
34641
34636
|
h = [D, g];
|
|
34642
|
-
case
|
|
34643
|
-
_context11.next =
|
|
34637
|
+
case 6:
|
|
34638
|
+
_context11.next = 8;
|
|
34644
34639
|
break;
|
|
34645
|
-
case
|
|
34640
|
+
case 7:
|
|
34646
34641
|
if (!(o && !m && Ve.isText(D))) {
|
|
34647
|
-
_context11.next =
|
|
34642
|
+
_context11.next = 8;
|
|
34648
34643
|
break;
|
|
34649
34644
|
}
|
|
34650
34645
|
return _context11.abrupt("return");
|
|
34651
|
-
case
|
|
34652
|
-
_context11.next =
|
|
34646
|
+
case 8:
|
|
34647
|
+
_context11.next = 2;
|
|
34653
34648
|
break;
|
|
34654
|
-
case
|
|
34655
|
-
_context11.next =
|
|
34649
|
+
case 9:
|
|
34650
|
+
_context11.next = 11;
|
|
34656
34651
|
break;
|
|
34657
|
-
case
|
|
34658
|
-
_context11.prev =
|
|
34659
|
-
|
|
34660
|
-
_iterator33.e(
|
|
34661
|
-
case
|
|
34662
|
-
_context11.prev =
|
|
34652
|
+
case 10:
|
|
34653
|
+
_context11.prev = 10;
|
|
34654
|
+
_t26 = _context11["catch"](1);
|
|
34655
|
+
_iterator33.e(_t26);
|
|
34656
|
+
case 11:
|
|
34657
|
+
_context11.prev = 11;
|
|
34663
34658
|
_iterator33.f();
|
|
34664
|
-
return _context11.finish(
|
|
34665
|
-
case
|
|
34666
|
-
|
|
34667
|
-
if (!
|
|
34668
|
-
_context11.next =
|
|
34659
|
+
return _context11.finish(11);
|
|
34660
|
+
case 12:
|
|
34661
|
+
_t27 = "lowest" === n && h;
|
|
34662
|
+
if (!_t27) {
|
|
34663
|
+
_context11.next = 14;
|
|
34669
34664
|
break;
|
|
34670
34665
|
}
|
|
34671
34666
|
if (!o) {
|
|
34672
|
-
_context11.next =
|
|
34667
|
+
_context11.next = 13;
|
|
34673
34668
|
break;
|
|
34674
34669
|
}
|
|
34675
34670
|
p.push(h);
|
|
34676
|
-
_context11.next =
|
|
34671
|
+
_context11.next = 14;
|
|
34677
34672
|
break;
|
|
34678
|
-
case
|
|
34679
|
-
_context11.next =
|
|
34673
|
+
case 13:
|
|
34674
|
+
_context11.next = 14;
|
|
34680
34675
|
return h;
|
|
34681
|
-
case
|
|
34682
|
-
|
|
34683
|
-
if (!
|
|
34684
|
-
_context11.next =
|
|
34676
|
+
case 14:
|
|
34677
|
+
_t28 = o;
|
|
34678
|
+
if (!_t28) {
|
|
34679
|
+
_context11.next = 15;
|
|
34685
34680
|
break;
|
|
34686
34681
|
}
|
|
34687
|
-
return _context11.delegateYield(p, "
|
|
34688
|
-
case
|
|
34682
|
+
return _context11.delegateYield(p, "t0", 15);
|
|
34683
|
+
case 15:
|
|
34689
34684
|
case "end":
|
|
34690
34685
|
return _context11.stop();
|
|
34691
34686
|
}
|
|
34692
|
-
}, _callee9, null, [[
|
|
34687
|
+
}, _callee9, null, [[1, 10, 11, 12]]);
|
|
34693
34688
|
})();
|
|
34694
34689
|
}.apply(void 0, [e].concat(r));
|
|
34695
34690
|
},
|
|
@@ -34882,8 +34877,8 @@ function requireLib() {
|
|
|
34882
34877
|
return function (e) {
|
|
34883
34878
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
34884
34879
|
return /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
34885
|
-
var _t$at9, r, _t$unit5, n, _t$reverse9, o, _t$voids9, u, _t$ignoreNonSelectabl2, a, i, _Ce$edges35, _Ce$edges36, s, l, c, f, d, h, v, p, _iterator35, _step35, _step35$value, D, g, m, C, y, B;
|
|
34886
|
-
return _regeneratorRuntime().wrap(function
|
|
34880
|
+
var _t$at9, r, _t$unit5, n, _t$reverse9, o, _t$voids9, u, _t$ignoreNonSelectabl2, a, i, _Ce$edges35, _Ce$edges36, s, l, c, f, d, h, v, p, _iterator35, _step35, _step35$value, D, g, m, C, y, B, _t29, _t30;
|
|
34881
|
+
return _regeneratorRuntime().wrap(function (_context12) {
|
|
34887
34882
|
while (1) switch (_context12.prev = _context12.next) {
|
|
34888
34883
|
case 0:
|
|
34889
34884
|
B = function _B(e, t, r) {
|
|
@@ -34905,7 +34900,7 @@ function requireLib() {
|
|
|
34905
34900
|
};
|
|
34906
34901
|
_t$at9 = t.at, r = _t$at9 === void 0 ? e.selection : _t$at9, _t$unit5 = t.unit, n = _t$unit5 === void 0 ? "offset" : _t$unit5, _t$reverse9 = t.reverse, o = _t$reverse9 === void 0 ? false : _t$reverse9, _t$voids9 = t.voids, u = _t$voids9 === void 0 ? false : _t$voids9, _t$ignoreNonSelectabl2 = t.ignoreNonSelectable, a = _t$ignoreNonSelectabl2 === void 0 ? false : _t$ignoreNonSelectabl2;
|
|
34907
34902
|
if (!r) {
|
|
34908
|
-
_context12.next =
|
|
34903
|
+
_context12.next = 17;
|
|
34909
34904
|
break;
|
|
34910
34905
|
}
|
|
34911
34906
|
i = Se.range(e, r), _Ce$edges35 = Ce.edges(i), _Ce$edges36 = _slicedToArray(_Ce$edges35, 2), s = _Ce$edges36[0], l = _Ce$edges36[1], c = o ? l : s, f = false, d = "", h = 0, v = 0, p = 0;
|
|
@@ -34915,33 +34910,33 @@ function requireLib() {
|
|
|
34915
34910
|
voids: u,
|
|
34916
34911
|
ignoreNonSelectable: a
|
|
34917
34912
|
}));
|
|
34918
|
-
_context12.prev =
|
|
34913
|
+
_context12.prev = 1;
|
|
34919
34914
|
_iterator35.s();
|
|
34920
|
-
case
|
|
34915
|
+
case 2:
|
|
34921
34916
|
if ((_step35 = _iterator35.n()).done) {
|
|
34922
|
-
_context12.next =
|
|
34917
|
+
_context12.next = 14;
|
|
34923
34918
|
break;
|
|
34924
34919
|
}
|
|
34925
34920
|
_step35$value = _slicedToArray(_step35.value, 2), D = _step35$value[0], g = _step35$value[1];
|
|
34926
34921
|
if (!Be.isElement(D)) {
|
|
34927
|
-
_context12.next =
|
|
34922
|
+
_context12.next = 6;
|
|
34928
34923
|
break;
|
|
34929
34924
|
}
|
|
34930
34925
|
if (!(!u && (e.isVoid(D) || e.isElementReadOnly(D)))) {
|
|
34931
|
-
_context12.next =
|
|
34926
|
+
_context12.next = 4;
|
|
34932
34927
|
break;
|
|
34933
34928
|
}
|
|
34934
|
-
_context12.next =
|
|
34929
|
+
_context12.next = 3;
|
|
34935
34930
|
return Se.start(e, g);
|
|
34936
|
-
case
|
|
34937
|
-
return _context12.abrupt("continue",
|
|
34938
|
-
case
|
|
34931
|
+
case 3:
|
|
34932
|
+
return _context12.abrupt("continue", 13);
|
|
34933
|
+
case 4:
|
|
34939
34934
|
if (!e.isInline(D)) {
|
|
34940
|
-
_context12.next =
|
|
34935
|
+
_context12.next = 5;
|
|
34941
34936
|
break;
|
|
34942
34937
|
}
|
|
34943
|
-
return _context12.abrupt("continue",
|
|
34944
|
-
case
|
|
34938
|
+
return _context12.abrupt("continue", 13);
|
|
34939
|
+
case 5:
|
|
34945
34940
|
if (Se.hasInlines(e, D)) {
|
|
34946
34941
|
m = ie.isAncestor(g, l.path) ? l : Se.end(e, g), C = ie.isAncestor(g, s.path) ? s : Se.start(e, g);
|
|
34947
34942
|
d = Se.string(e, {
|
|
@@ -34951,73 +34946,73 @@ function requireLib() {
|
|
|
34951
34946
|
voids: u
|
|
34952
34947
|
}), f = true;
|
|
34953
34948
|
}
|
|
34954
|
-
case
|
|
34949
|
+
case 6:
|
|
34955
34950
|
if (!Ve.isText(D)) {
|
|
34956
|
-
_context12.next =
|
|
34951
|
+
_context12.next = 13;
|
|
34957
34952
|
break;
|
|
34958
34953
|
}
|
|
34959
34954
|
y = ie.equals(g, c.path);
|
|
34960
34955
|
y ? (v = o ? c.offset : D.text.length - c.offset, p = c.offset) : (v = D.text.length, p = o ? v : 0);
|
|
34961
|
-
|
|
34962
|
-
if (!
|
|
34963
|
-
_context12.next =
|
|
34956
|
+
_t29 = y || f || "offset" === n;
|
|
34957
|
+
if (!_t29) {
|
|
34958
|
+
_context12.next = 8;
|
|
34964
34959
|
break;
|
|
34965
34960
|
}
|
|
34966
|
-
_context12.next =
|
|
34961
|
+
_context12.next = 7;
|
|
34967
34962
|
return {
|
|
34968
34963
|
path: g,
|
|
34969
34964
|
offset: p
|
|
34970
34965
|
};
|
|
34971
|
-
case
|
|
34966
|
+
case 7:
|
|
34972
34967
|
f = false;
|
|
34973
|
-
case
|
|
34968
|
+
case 8:
|
|
34974
34969
|
if (!(0 === h)) {
|
|
34975
|
-
_context12.next =
|
|
34970
|
+
_context12.next = 10;
|
|
34976
34971
|
break;
|
|
34977
34972
|
}
|
|
34978
34973
|
if (!("" === d)) {
|
|
34979
|
-
_context12.next =
|
|
34974
|
+
_context12.next = 9;
|
|
34980
34975
|
break;
|
|
34981
34976
|
}
|
|
34982
|
-
return _context12.abrupt("
|
|
34983
|
-
case
|
|
34977
|
+
return _context12.abrupt("continue", 13);
|
|
34978
|
+
case 9:
|
|
34984
34979
|
h = B(d, n, o), d = Je(d, h, o)[1];
|
|
34985
|
-
case
|
|
34980
|
+
case 10:
|
|
34986
34981
|
if (!(p = o ? p - h : p + h, (v -= h) < 0)) {
|
|
34987
|
-
_context12.next =
|
|
34982
|
+
_context12.next = 11;
|
|
34988
34983
|
break;
|
|
34989
34984
|
}
|
|
34990
34985
|
h = -v;
|
|
34991
|
-
return _context12.abrupt("
|
|
34992
|
-
case
|
|
34986
|
+
return _context12.abrupt("continue", 13);
|
|
34987
|
+
case 11:
|
|
34993
34988
|
h = 0;
|
|
34994
|
-
_context12.next =
|
|
34989
|
+
_context12.next = 12;
|
|
34995
34990
|
return {
|
|
34996
34991
|
path: g,
|
|
34997
34992
|
offset: p
|
|
34998
34993
|
};
|
|
34999
|
-
case
|
|
35000
|
-
_context12.next =
|
|
34994
|
+
case 12:
|
|
34995
|
+
_context12.next = 8;
|
|
35001
34996
|
break;
|
|
35002
|
-
case
|
|
35003
|
-
_context12.next =
|
|
34997
|
+
case 13:
|
|
34998
|
+
_context12.next = 2;
|
|
35004
34999
|
break;
|
|
35005
|
-
case
|
|
35006
|
-
_context12.next =
|
|
35000
|
+
case 14:
|
|
35001
|
+
_context12.next = 16;
|
|
35007
35002
|
break;
|
|
35008
|
-
case
|
|
35009
|
-
_context12.prev =
|
|
35010
|
-
|
|
35011
|
-
_iterator35.e(
|
|
35012
|
-
case
|
|
35013
|
-
_context12.prev =
|
|
35003
|
+
case 15:
|
|
35004
|
+
_context12.prev = 15;
|
|
35005
|
+
_t30 = _context12["catch"](1);
|
|
35006
|
+
_iterator35.e(_t30);
|
|
35007
|
+
case 16:
|
|
35008
|
+
_context12.prev = 16;
|
|
35014
35009
|
_iterator35.f();
|
|
35015
|
-
return _context12.finish(
|
|
35016
|
-
case
|
|
35010
|
+
return _context12.finish(16);
|
|
35011
|
+
case 17:
|
|
35017
35012
|
case "end":
|
|
35018
35013
|
return _context12.stop();
|
|
35019
35014
|
}
|
|
35020
|
-
}, _callee10, null, [[
|
|
35015
|
+
}, _callee10, null, [[1, 15, 16, 17]]);
|
|
35021
35016
|
})();
|
|
35022
35017
|
}.apply(void 0, [e].concat(r));
|
|
35023
35018
|
},
|
|
@@ -35126,8 +35121,8 @@ function requireLib() {
|
|
|
35126
35121
|
voids: n
|
|
35127
35122
|
}),
|
|
35128
35123
|
s = Array.from(i, function (t) {
|
|
35129
|
-
var
|
|
35130
|
-
r =
|
|
35124
|
+
var _t31 = _slicedToArray(t, 2),
|
|
35125
|
+
r = _t31[1];
|
|
35131
35126
|
return Se.pathRef(e, r);
|
|
35132
35127
|
});
|
|
35133
35128
|
for (var _i7 = 0, _s2 = s; _i7 < _s2.length; _i7++) {
|
|
@@ -35555,8 +35550,8 @@ function requireLib() {
|
|
|
35555
35550
|
voids: o
|
|
35556
35551
|
}),
|
|
35557
35552
|
l = Array.from(s, function (t) {
|
|
35558
|
-
var
|
|
35559
|
-
r =
|
|
35553
|
+
var _t32 = _slicedToArray(t, 2),
|
|
35554
|
+
r = _t32[1];
|
|
35560
35555
|
return Se.pathRef(e, r);
|
|
35561
35556
|
}).reverse(),
|
|
35562
35557
|
c = function c() {
|
|
@@ -35713,9 +35708,9 @@ function requireLib() {
|
|
|
35713
35708
|
shouldMergeNodesRemovePrevNode: function shouldMergeNodesRemovePrevNode() {
|
|
35714
35709
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
35715
35710
|
return function (e, t) {
|
|
35716
|
-
var
|
|
35717
|
-
r =
|
|
35718
|
-
n =
|
|
35711
|
+
var _t33 = _slicedToArray(t, 2),
|
|
35712
|
+
r = _t33[0],
|
|
35713
|
+
n = _t33[1];
|
|
35719
35714
|
return Be.isElement(r) && Se.isEmpty(e, r) || Ve.isText(r) && "" === r.text && 0 !== n[n.length - 1];
|
|
35720
35715
|
}.apply(void 0, [e].concat(r));
|
|
35721
35716
|
}
|
|
@@ -35736,8 +35731,8 @@ function requireLib() {
|
|
|
35736
35731
|
},
|
|
35737
35732
|
Qt = function Qt(e, t) {
|
|
35738
35733
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
35739
|
-
var
|
|
35740
|
-
return Gt(
|
|
35734
|
+
var r = getComputedStyle(e, null);
|
|
35735
|
+
return Gt(r.overflowY, t) || Gt(r.overflowX, t) || function (e) {
|
|
35741
35736
|
var t = function (e) {
|
|
35742
35737
|
if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
|
|
35743
35738
|
try {
|
|
@@ -35809,34 +35804,34 @@ function requireLib() {
|
|
|
35809
35804
|
S = "center" === s ? w + y / 2 - x + F : "end" === s ? b + F : w - x;
|
|
35810
35805
|
var k = [];
|
|
35811
35806
|
for (var _e8 = 0; _e8 < h.length; _e8++) {
|
|
35812
|
-
var
|
|
35813
|
-
_t$getBoundingClientR =
|
|
35814
|
-
|
|
35807
|
+
var _t34 = h[_e8],
|
|
35808
|
+
_t$getBoundingClientR = _t34.getBoundingClientRect(),
|
|
35809
|
+
_r6 = _t$getBoundingClientR.height,
|
|
35815
35810
|
_n7 = _t$getBoundingClientR.width,
|
|
35816
35811
|
_o7 = _t$getBoundingClientR.top,
|
|
35817
35812
|
_u5 = _t$getBoundingClientR.right,
|
|
35818
35813
|
_l4 = _t$getBoundingClientR.bottom,
|
|
35819
35814
|
_c5 = _t$getBoundingClientR.left;
|
|
35820
35815
|
if ("if-needed" === a && B >= 0 && w >= 0 && E <= D && b <= p && B >= _o7 && E <= _l4 && w >= _c5 && b <= _u5) return k;
|
|
35821
|
-
var _f5 = getComputedStyle(
|
|
35816
|
+
var _f5 = getComputedStyle(_t34),
|
|
35822
35817
|
_v2 = parseInt(_f5.borderLeftWidth, 10),
|
|
35823
35818
|
_A = parseInt(_f5.borderTopWidth, 10),
|
|
35824
35819
|
_F = parseInt(_f5.borderRightWidth, 10),
|
|
35825
35820
|
_O = parseInt(_f5.borderBottomWidth, 10);
|
|
35826
35821
|
var _x3 = 0,
|
|
35827
35822
|
_j = 0;
|
|
35828
|
-
var _T = "offsetWidth" in
|
|
35829
|
-
_M = "offsetHeight" in
|
|
35830
|
-
_R = "offsetWidth" in
|
|
35831
|
-
_N = "offsetHeight" in
|
|
35832
|
-
if (d ===
|
|
35833
|
-
_x3 = "start" === i ? P - _o7 - _A : "end" === i ? P - _l4 + _O + _M : "nearest" === i ? er(_o7, _l4,
|
|
35834
|
-
var _e9 =
|
|
35835
|
-
_a6 =
|
|
35836
|
-
_x3 = 0 === _N ? 0 : Math.max(0, Math.min(_a6 + _x3 / _N,
|
|
35823
|
+
var _T = "offsetWidth" in _t34 ? _t34.offsetWidth - _t34.clientWidth - _v2 - _F : 0,
|
|
35824
|
+
_M = "offsetHeight" in _t34 ? _t34.offsetHeight - _t34.clientHeight - _A - _O : 0,
|
|
35825
|
+
_R = "offsetWidth" in _t34 ? 0 === _t34.offsetWidth ? 0 : _n7 / _t34.offsetWidth : 0,
|
|
35826
|
+
_N = "offsetHeight" in _t34 ? 0 === _t34.offsetHeight ? 0 : _r6 / _t34.offsetHeight : 0;
|
|
35827
|
+
if (d === _t34) _x3 = "start" === i ? P : "end" === i ? P - D : "nearest" === i ? er(m, m + D, D, _A, _O, m + P, m + P + C, C) : P - D / 2, _j = "start" === s ? S : "center" === s ? S - p / 2 : "end" === s ? S - p : er(g, g + p, p, _v2, _F, g + S, g + S + y, y), _x3 = Math.max(0, _x3 + m), _j = Math.max(0, _j + g);else {
|
|
35828
|
+
_x3 = "start" === i ? P - _o7 - _A : "end" === i ? P - _l4 + _O + _M : "nearest" === i ? er(_o7, _l4, _r6, _A, _O + _M, P, P + C, C) : P - (_o7 + _r6 / 2) + _M / 2, _j = "start" === s ? S - _c5 - _v2 : "center" === s ? S - (_c5 + _n7 / 2) + _T / 2 : "end" === s ? S - _u5 + _F + _T : er(_c5, _u5, _n7, _v2, _F + _T, S, S + y, y);
|
|
35829
|
+
var _e9 = _t34.scrollLeft,
|
|
35830
|
+
_a6 = _t34.scrollTop;
|
|
35831
|
+
_x3 = 0 === _N ? 0 : Math.max(0, Math.min(_a6 + _x3 / _N, _t34.scrollHeight - _r6 / _N + _M)), _j = 0 === _R ? 0 : Math.max(0, Math.min(_e9 + _j / _R, _t34.scrollWidth - _n7 / _R + _T)), P += _a6 - _x3, S += _e9 - _j;
|
|
35837
35832
|
}
|
|
35838
35833
|
k.push({
|
|
35839
|
-
el:
|
|
35834
|
+
el: _t34,
|
|
35840
35835
|
top: _x3,
|
|
35841
35836
|
left: _j
|
|
35842
35837
|
});
|
|
@@ -36030,10 +36025,10 @@ function requireLib() {
|
|
|
36030
36025
|
},
|
|
36031
36026
|
findEventRange: function findEventRange(e, t) {
|
|
36032
36027
|
"nativeEvent" in t && (t = t.nativeEvent);
|
|
36033
|
-
var
|
|
36034
|
-
r =
|
|
36035
|
-
n =
|
|
36036
|
-
o =
|
|
36028
|
+
var _t35 = t,
|
|
36029
|
+
r = _t35.clientX,
|
|
36030
|
+
n = _t35.clientY,
|
|
36031
|
+
o = _t35.target;
|
|
36037
36032
|
if (null == r || null == n) throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));
|
|
36038
36033
|
var u,
|
|
36039
36034
|
a = ln.toSlateNode(e, t.target),
|
|
@@ -36346,13 +36341,13 @@ function requireLib() {
|
|
|
36346
36341
|
var f = t.getRangeAt(0),
|
|
36347
36342
|
d = t.getRangeAt(t.rangeCount - 1);
|
|
36348
36343
|
if (a instanceof HTMLTableRowElement && f.startContainer instanceof HTMLTableRowElement && d.startContainer instanceof HTMLTableRowElement) {
|
|
36349
|
-
var
|
|
36350
|
-
return e.childElementCount > 0 ?
|
|
36344
|
+
var _B3 = function _B2(e) {
|
|
36345
|
+
return e.childElementCount > 0 ? _B3(e.children[0]) : e;
|
|
36351
36346
|
};
|
|
36352
36347
|
var h = f.startContainer,
|
|
36353
36348
|
v = d.startContainer,
|
|
36354
|
-
p =
|
|
36355
|
-
D =
|
|
36349
|
+
p = _B3(h.children[f.startOffset]),
|
|
36350
|
+
D = _B3(v.children[d.startOffset]);
|
|
36356
36351
|
i = 0, o = D.childNodes.length > 0 ? D.childNodes[0] : D, a = p.childNodes.length > 0 ? p.childNodes[0] : p, u = D instanceof HTMLElement ? D.innerHTML.length : 0;
|
|
36357
36352
|
} else f.startContainer === a ? (o = d.endContainer, u = d.endOffset, i = f.startOffset) : (o = f.startContainer, u = f.endOffset, i = d.startOffset);
|
|
36358
36353
|
} else o = t.anchorNode, u = t.anchorOffset, a = t.focusNode, i = t.focusOffset;
|
|
@@ -37969,11 +37964,11 @@ function requireLib() {
|
|
|
37969
37964
|
return {
|
|
37970
37965
|
registerMutations: function registerMutations(n) {
|
|
37971
37966
|
if (t.current) {
|
|
37972
|
-
var
|
|
37967
|
+
var _r7;
|
|
37973
37968
|
var o = n.filter(function (t) {
|
|
37974
37969
|
return _mr(e, t, n);
|
|
37975
37970
|
});
|
|
37976
|
-
(
|
|
37971
|
+
(_r7 = r).push.apply(_r7, _toConsumableArray(o));
|
|
37977
37972
|
}
|
|
37978
37973
|
},
|
|
37979
37974
|
restoreDOM: function restoreDOM() {
|
|
@@ -38795,14 +38790,14 @@ function requireLib() {
|
|
|
38795
38790
|
try {
|
|
38796
38791
|
for (_iterator47.s(); !(_step47 = _iterator47.n()).done;) {
|
|
38797
38792
|
var _step47$value = _step47.value,
|
|
38798
|
-
|
|
38799
|
-
|
|
38800
|
-
|
|
38801
|
-
var _e12 =
|
|
38802
|
-
|
|
38803
|
-
|
|
38793
|
+
o = _step47$value.el,
|
|
38794
|
+
u = _step47$value.top,
|
|
38795
|
+
a = _step47$value.left;
|
|
38796
|
+
var _e12 = u - r.top + r.bottom,
|
|
38797
|
+
_t36 = a - r.left + r.right;
|
|
38798
|
+
o.scroll({
|
|
38804
38799
|
top: _e12,
|
|
38805
|
-
left:
|
|
38800
|
+
left: _t36,
|
|
38806
38801
|
behavior: n
|
|
38807
38802
|
});
|
|
38808
38803
|
}
|
|
@@ -38945,8 +38940,8 @@ function requireLib() {
|
|
|
38945
38940
|
at: r.selection
|
|
38946
38941
|
});
|
|
38947
38942
|
if (t) {
|
|
38948
|
-
var
|
|
38949
|
-
n =
|
|
38943
|
+
var _t37 = _slicedToArray(t, 2),
|
|
38944
|
+
n = _t37[1],
|
|
38950
38945
|
o = Se.range(r, n, r.selection.anchor),
|
|
38951
38946
|
a = function (e, t) {
|
|
38952
38947
|
var r = Se.range(e, Ce.end(t)),
|
|
@@ -39112,19 +39107,19 @@ function requireLib() {
|
|
|
39112
39107
|
case "set_selection":
|
|
39113
39108
|
zr.set(r, true);
|
|
39114
39109
|
}
|
|
39115
|
-
for (var _i10 = 0,
|
|
39116
|
-
var
|
|
39117
|
-
m =
|
|
39118
|
-
C =
|
|
39110
|
+
for (var _i10 = 0, _o10 = o; _i10 < _o10.length; _i10++) {
|
|
39111
|
+
var _o10$_i = _slicedToArray(_o10[_i10], 2),
|
|
39112
|
+
m = _o10$_i[0],
|
|
39113
|
+
C = _o10$_i[1];
|
|
39119
39114
|
var _Se$node13 = Se.node(r, m),
|
|
39120
39115
|
_Se$node14 = _slicedToArray(_Se$node13, 1),
|
|
39121
39116
|
y = _Se$node14[0];
|
|
39122
39117
|
$r.set(y, C);
|
|
39123
39118
|
}
|
|
39124
|
-
for (var _i11 = 0,
|
|
39125
|
-
var
|
|
39126
|
-
B =
|
|
39127
|
-
b =
|
|
39119
|
+
for (var _i11 = 0, _u6 = u; _i11 < _u6.length; _i11++) {
|
|
39120
|
+
var _u6$_i = _slicedToArray(_u6[_i11], 2),
|
|
39121
|
+
B = _u6$_i[0],
|
|
39122
|
+
b = _u6$_i[1];
|
|
39128
39123
|
if (B.current) {
|
|
39129
39124
|
var _Se$node15 = Se.node(r, B.current),
|
|
39130
39125
|
_Se$node16 = _slicedToArray(_Se$node15, 1),
|
|
@@ -39217,8 +39212,8 @@ function requireLib() {
|
|
|
39217
39212
|
t && t(e), o(e);
|
|
39218
39213
|
}, r;
|
|
39219
39214
|
}(t, arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "x-slate-fragment");
|
|
39220
|
-
var
|
|
39221
|
-
r =
|
|
39215
|
+
var _t38 = t,
|
|
39216
|
+
r = _t38.onChange;
|
|
39222
39217
|
return t.onChange = function (e) {
|
|
39223
39218
|
(bu < 18 ? mo().unstable_batchedUpdates : function (e) {
|
|
39224
39219
|
return e();
|
|
@@ -39744,12 +39739,20 @@ function requireLib() {
|
|
|
39744
39739
|
},
|
|
39745
39740
|
Ma = function Ma(e, t) {
|
|
39746
39741
|
return function (r) {
|
|
39747
|
-
var n = function
|
|
39748
|
-
|
|
39742
|
+
var n = function (_n8) {
|
|
39743
|
+
function n(_x4) {
|
|
39744
|
+
return _n8.apply(this, arguments);
|
|
39745
|
+
}
|
|
39746
|
+
n.toString = function () {
|
|
39747
|
+
return _n8.toString();
|
|
39748
|
+
};
|
|
39749
|
+
return n;
|
|
39750
|
+
}(function (n) {
|
|
39751
|
+
Ta(n) && n.data.type === ja(r.id, e) && t({
|
|
39749
39752
|
editor: r,
|
|
39750
|
-
data:
|
|
39753
|
+
data: n.data.data
|
|
39751
39754
|
});
|
|
39752
|
-
};
|
|
39755
|
+
});
|
|
39753
39756
|
return window.addEventListener("message", n), function () {
|
|
39754
39757
|
return window.removeEventListener("message", n);
|
|
39755
39758
|
};
|
|
@@ -41022,9 +41025,9 @@ function requireLib() {
|
|
|
41022
41025
|
}, t().createElement("code", null, JSON.stringify(r, null, 2)));
|
|
41023
41026
|
},
|
|
41024
41027
|
Fs = function Fs(e) {
|
|
41025
|
-
return t = function t(
|
|
41028
|
+
return t = function t(_t39) {
|
|
41026
41029
|
return function () {
|
|
41027
|
-
return e(
|
|
41030
|
+
return e(_t39(_t39)).apply(void 0, arguments);
|
|
41028
41031
|
};
|
|
41029
41032
|
}, function () {
|
|
41030
41033
|
return e(t(t)).apply(void 0, arguments);
|