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