@blackglory/match 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/es2015/index.min.mjs +1 -1
  2. package/dist/es2015/index.min.mjs.map +1 -1
  3. package/dist/es2015/index.mjs +272 -145
  4. package/dist/es2015/index.mjs.map +1 -1
  5. package/dist/es2015/index.umd.js +272 -145
  6. package/dist/es2015/index.umd.js.map +1 -1
  7. package/dist/es2015/index.umd.min.js +1 -1
  8. package/dist/es2015/index.umd.min.js.map +1 -1
  9. package/dist/es2018/index.min.mjs +1 -1
  10. package/dist/es2018/index.min.mjs.map +1 -1
  11. package/dist/es2018/index.mjs +272 -145
  12. package/dist/es2018/index.mjs.map +1 -1
  13. package/dist/es2018/index.umd.js +272 -145
  14. package/dist/es2018/index.umd.js.map +1 -1
  15. package/dist/es2018/index.umd.min.js +1 -1
  16. package/dist/es2018/index.umd.min.js.map +1 -1
  17. package/lib/es2015/matchers/child-nodes.js +2 -2
  18. package/lib/es2015/matchers/child-nodes.js.map +1 -1
  19. package/lib/es2015/matchers/children.js +2 -2
  20. package/lib/es2015/matchers/children.js.map +1 -1
  21. package/lib/es2015/matchers/element.js +2 -2
  22. package/lib/es2015/matchers/element.js.map +1 -1
  23. package/lib/es2015/matchers/node.js +2 -2
  24. package/lib/es2015/matchers/node.js.map +1 -1
  25. package/lib/es2015/matchers/text-node.js +2 -2
  26. package/lib/es2015/matchers/text-node.js.map +1 -1
  27. package/lib/{es2018/utils/merge.d.ts → es2015/utils/merge-in-place.d.ts} +1 -1
  28. package/lib/{es2018/utils/merge.js → es2015/utils/merge-in-place.js} +4 -4
  29. package/lib/es2015/utils/merge-in-place.js.map +1 -0
  30. package/lib/es2018/matchers/child-nodes.js +2 -2
  31. package/lib/es2018/matchers/child-nodes.js.map +1 -1
  32. package/lib/es2018/matchers/children.js +2 -2
  33. package/lib/es2018/matchers/children.js.map +1 -1
  34. package/lib/es2018/matchers/element.js +2 -2
  35. package/lib/es2018/matchers/element.js.map +1 -1
  36. package/lib/es2018/matchers/node.js +2 -2
  37. package/lib/es2018/matchers/node.js.map +1 -1
  38. package/lib/es2018/matchers/text-node.js +2 -2
  39. package/lib/es2018/matchers/text-node.js.map +1 -1
  40. package/lib/{es2015/utils/merge.d.ts → es2018/utils/merge-in-place.d.ts} +1 -1
  41. package/lib/{es2015/utils/merge.js → es2018/utils/merge-in-place.js} +4 -4
  42. package/lib/es2018/utils/merge-in-place.js.map +1 -0
  43. package/package.json +3 -2
  44. package/CHANGELOG.md +0 -64
  45. package/lib/es2015/utils/merge.js.map +0 -1
  46. package/lib/es2018/utils/merge.js.map +0 -1
@@ -6,7 +6,7 @@
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
- var es2018$8 = {};
9
+ var es2018$7 = {};
10
10
 
11
11
  var flatMap$1 = {};
12
12
 
@@ -87,21 +87,21 @@
87
87
 
88
88
  var unwrap$1 = {};
89
89
 
90
- var es2018$7 = {};
90
+ var es2018$6 = {};
91
91
 
92
92
  var middleware = {};
93
93
 
94
94
  var chunkAsync$1 = {};
95
95
 
96
- var es2018$6 = {};
96
+ var es2018$5 = {};
97
97
 
98
- var go$3 = {};
98
+ var go$1 = {};
99
99
 
100
- go$3.go = void 0;
101
- function go$2(fn) {
100
+ go$1.go = void 0;
101
+ function go(fn) {
102
102
  return fn();
103
103
  }
104
- go$3.go = go$2;
104
+ go$1.go = go;
105
105
 
106
106
  (function (exports) {
107
107
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -113,11 +113,11 @@
113
113
  }));
114
114
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
115
115
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
116
- };__exportStar(go$3, exports);
116
+ };__exportStar(go$1, exports);
117
117
 
118
- }(es2018$6));
118
+ }(es2018$5));
119
119
 
120
- var es2018$5 = {};
120
+ var es2018$4 = {};
121
121
 
122
122
  var customError = {};
123
123
 
@@ -195,11 +195,11 @@
195
195
  __exportStar(refute$1, exports);
196
196
  __exportStar(assert$1, exports);
197
197
 
198
- }(es2018$5));
198
+ }(es2018$4));
199
199
 
200
200
  chunkAsync$1.chunkAsync = void 0;
201
- const go_1$g = es2018$6;
202
- const errors_1$m = es2018$5;
201
+ const go_1$g = es2018$5;
202
+ const errors_1$m = es2018$4;
203
203
  function chunkAsync(iterable, size) {
204
204
  (0, errors_1$m.assert)(Number.isInteger(size), 'The parameter size must be an integer');
205
205
  (0, errors_1$m.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -220,7 +220,7 @@
220
220
 
221
221
  var chunkByAsync$1 = {};
222
222
 
223
- var es2018$4 = {};
223
+ var es2018$3 = {};
224
224
 
225
225
  var array$1 = {};
226
226
 
@@ -417,10 +417,10 @@
417
417
  return !isObject$2(val);
418
418
  }
419
419
  object$1.isntObject = isntObject$1;
420
- function isRecord$1(val) {
420
+ function isRecord(val) {
421
421
  return isObject$2(val);
422
422
  }
423
- object$1.isRecord = isRecord$1;
423
+ object$1.isRecord = isRecord;
424
424
  function isEmptyObject$1(val) {
425
425
  return Object.keys(val).length === 0;
426
426
  }
@@ -482,7 +482,7 @@
482
482
  return (0, object_1$1.isRecord)(val)
483
483
  && (0, string_1$2.isString)(val.jsonrpc)
484
484
  && (0, string_1$2.isString)(val.id)
485
- && (0, undefined_1$3.isntUndefined)(val.result);
485
+ && 'result' in val;
486
486
  }
487
487
  jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
488
488
  function isntJsonRpcSuccess$1(val) {
@@ -569,10 +569,10 @@
569
569
  __exportStar(_undefined$1, exports);
570
570
  __exportStar(url$1, exports);
571
571
 
572
- }(es2018$4));
572
+ }(es2018$3));
573
573
 
574
574
  chunkByAsync$1.chunkByAsync = void 0;
575
- const types_1$l = es2018$4;
575
+ const types_1$l = es2018$3;
576
576
  function chunkByAsync(iterable, predicate) {
577
577
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
578
578
  return chunkByAsyncIterable(iterable);
@@ -633,8 +633,8 @@
633
633
  var chunk$1 = {};
634
634
 
635
635
  chunk$1.chunk = void 0;
636
- const go_1$f = es2018$6;
637
- const errors_1$l = es2018$5;
636
+ const go_1$f = es2018$5;
637
+ const errors_1$l = es2018$4;
638
638
  function chunk(iterable, size) {
639
639
  (0, errors_1$l.assert)(Number.isInteger(size), 'The parameter size must be an integer');
640
640
  (0, errors_1$l.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -656,8 +656,8 @@
656
656
  var concatAsync$1 = {};
657
657
 
658
658
  concatAsync$1.concatAsync = void 0;
659
- const types_1$k = es2018$4;
660
- const go_1$e = es2018$6;
659
+ const types_1$k = es2018$3;
660
+ const go_1$e = es2018$5;
661
661
  function concatAsync(iterable, ...otherIterables) {
662
662
  return (0, go_1$e.go)(async function* () {
663
663
  for (const iter of [iterable, ...otherIterables]) {
@@ -679,7 +679,7 @@
679
679
  var concat$2 = {};
680
680
 
681
681
  concat$2.concat = void 0;
682
- const go_1$d = es2018$6;
682
+ const go_1$d = es2018$5;
683
683
  function concat$1(iterable, ...otherIterables) {
684
684
  return (0, go_1$d.go)(function* () {
685
685
  for (const iter of [iterable, ...otherIterables]) {
@@ -708,9 +708,9 @@
708
708
  utils.copyIterable = copyIterable;
709
709
 
710
710
  dropAsync$1.dropAsync = void 0;
711
- const go_1$c = es2018$6;
711
+ const go_1$c = es2018$5;
712
712
  const utils_1$3 = utils;
713
- const errors_1$k = es2018$5;
713
+ const errors_1$k = es2018$4;
714
714
  function dropAsync(iterable, count) {
715
715
  (0, errors_1$k.assert)(Number.isInteger(count), 'The parameter count must be an integer');
716
716
  (0, errors_1$k.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -743,9 +743,9 @@
743
743
  var dropRightAsync$1 = {};
744
744
 
745
745
  dropRightAsync$1.dropRightAsync = void 0;
746
- const go_1$b = es2018$6;
746
+ const go_1$b = es2018$5;
747
747
  const utils_1$2 = utils;
748
- const errors_1$j = es2018$5;
748
+ const errors_1$j = es2018$4;
749
749
  function dropRightAsync(iterable, count) {
750
750
  (0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
751
751
  (0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -771,9 +771,9 @@
771
771
  var dropRight$1 = {};
772
772
 
773
773
  dropRight$1.dropRight = void 0;
774
- const go_1$a = es2018$6;
774
+ const go_1$a = es2018$5;
775
775
  const utils_1$1 = utils;
776
- const errors_1$i = es2018$5;
776
+ const errors_1$i = es2018$4;
777
777
  function dropRight(iterable, count) {
778
778
  (0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
779
779
  (0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -789,7 +789,7 @@
789
789
  var dropUntilAsync$1 = {};
790
790
 
791
791
  dropUntilAsync$1.dropUntilAsync = void 0;
792
- const types_1$j = es2018$4;
792
+ const types_1$j = es2018$3;
793
793
  function dropUntilAsync(iterable, predicate) {
794
794
  if ((0, types_1$j.isAsyncIterable)(iterable)) {
795
795
  return dropUntilAsyncIterable(iterable);
@@ -871,9 +871,9 @@
871
871
  var drop$1 = {};
872
872
 
873
873
  drop$1.drop = void 0;
874
- const go_1$9 = es2018$6;
874
+ const go_1$9 = es2018$5;
875
875
  const utils_1 = utils;
876
- const errors_1$h = es2018$5;
876
+ const errors_1$h = es2018$4;
877
877
  function drop(iterable, count) {
878
878
  (0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
879
879
  (0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -906,7 +906,7 @@
906
906
  var filterAsync$1 = {};
907
907
 
908
908
  filterAsync$1.filterAsync = void 0;
909
- const types_1$i = es2018$4;
909
+ const types_1$i = es2018$3;
910
910
  function filterAsync(iterable, predicate) {
911
911
  if ((0, types_1$i.isAsyncIterable)(iterable)) {
912
912
  return filterAsyncIterable(iterable);
@@ -953,7 +953,7 @@
953
953
  var flattenByAsync$1 = {};
954
954
 
955
955
  flattenByAsync$1.flattenByAsync = void 0;
956
- const types_1$h = es2018$4;
956
+ const types_1$h = es2018$3;
957
957
  function flattenByAsync(iterable, predicate) {
958
958
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
959
959
  return flattenByAsyncIterable(iterable);
@@ -993,7 +993,7 @@
993
993
 
994
994
  flattenDeepAsync$1.flattenDeepAsync = void 0;
995
995
  const flatten_by_async_1 = flattenByAsync$1;
996
- const errors_1$g = es2018$5;
996
+ const errors_1$g = es2018$4;
997
997
  function flattenDeepAsync(iterable, depth = Infinity) {
998
998
  (0, errors_1$g.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
999
999
  (0, errors_1$g.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1011,7 +1011,7 @@
1011
1011
  var flattenBy$1 = {};
1012
1012
 
1013
1013
  flattenBy$1.flattenBy = void 0;
1014
- const types_1$g = es2018$4;
1014
+ const types_1$g = es2018$3;
1015
1015
  function flattenBy(iterable, predicate) {
1016
1016
  return flatten(iterable, 1);
1017
1017
  function* flatten(iterable, level) {
@@ -1034,7 +1034,7 @@
1034
1034
 
1035
1035
  flattenDeep$1.flattenDeep = void 0;
1036
1036
  const flatten_by_1 = flattenBy$1;
1037
- const errors_1$f = es2018$5;
1037
+ const errors_1$f = es2018$4;
1038
1038
  function flattenDeep(iterable, depth = Infinity) {
1039
1039
  (0, errors_1$f.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1040
1040
  (0, errors_1$f.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1054,7 +1054,7 @@
1054
1054
  var mapAsync$1 = {};
1055
1055
 
1056
1056
  mapAsync$1.mapAsync = void 0;
1057
- const types_1$f = es2018$4;
1057
+ const types_1$f = es2018$3;
1058
1058
  function mapAsync(iterable, fn) {
1059
1059
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
1060
1060
  return mapAsyncIterable(iterable);
@@ -1094,8 +1094,8 @@
1094
1094
  var repeatAsync$1 = {};
1095
1095
 
1096
1096
  repeatAsync$1.repeatAsync = void 0;
1097
- const go_1$8 = es2018$6;
1098
- const errors_1$e = es2018$5;
1097
+ const go_1$8 = es2018$5;
1098
+ const errors_1$e = es2018$4;
1099
1099
  function repeatAsync(iterable, times) {
1100
1100
  (0, errors_1$e.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1101
1101
  (0, errors_1$e.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1129,8 +1129,8 @@
1129
1129
  var repeat$4 = {};
1130
1130
 
1131
1131
  repeat$4.repeat = void 0;
1132
- const go_1$7 = es2018$6;
1133
- const errors_1$d = es2018$5;
1132
+ const go_1$7 = es2018$5;
1133
+ const errors_1$d = es2018$4;
1134
1134
  function repeat$3(iterable, times) {
1135
1135
  (0, errors_1$d.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1136
1136
  (0, errors_1$d.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1164,8 +1164,8 @@
1164
1164
  var sliceAsync$1 = {};
1165
1165
 
1166
1166
  sliceAsync$1.sliceAsync = void 0;
1167
- const go_1$6 = es2018$6;
1168
- const errors_1$c = es2018$5;
1167
+ const go_1$6 = es2018$5;
1168
+ const errors_1$c = es2018$4;
1169
1169
  function sliceAsync(iterable, start, end = Infinity) {
1170
1170
  (0, errors_1$c.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1171
1171
  (0, errors_1$c.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1187,8 +1187,8 @@
1187
1187
  var slice$1 = {};
1188
1188
 
1189
1189
  slice$1.slice = void 0;
1190
- const go_1$5 = es2018$6;
1191
- const errors_1$b = es2018$5;
1190
+ const go_1$5 = es2018$5;
1191
+ const errors_1$b = es2018$4;
1192
1192
  function slice(iterable, start, end = Infinity) {
1193
1193
  (0, errors_1$b.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1194
1194
  (0, errors_1$b.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1228,7 +1228,7 @@
1228
1228
  var splitByAsync$1 = {};
1229
1229
 
1230
1230
  splitByAsync$1.splitByAsync = void 0;
1231
- const types_1$e = es2018$4;
1231
+ const types_1$e = es2018$3;
1232
1232
  function splitByAsync(iterable, predicate) {
1233
1233
  if ((0, types_1$e.isAsyncIterable)(iterable)) {
1234
1234
  return splitByAsyncIterable(iterable);
@@ -1310,8 +1310,8 @@
1310
1310
  var takeAsync$1 = {};
1311
1311
 
1312
1312
  takeAsync$1.takeAsync = void 0;
1313
- const go_1$4 = es2018$6;
1314
- const errors_1$a = es2018$5;
1313
+ const go_1$4 = es2018$5;
1314
+ const errors_1$a = es2018$4;
1315
1315
  function takeAsync(iterable, count) {
1316
1316
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1317
1317
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1331,8 +1331,8 @@
1331
1331
  var takeRightAsync$1 = {};
1332
1332
 
1333
1333
  takeRightAsync$1.takeRightAsync = void 0;
1334
- const go_1$3 = es2018$6;
1335
- const errors_1$9 = es2018$5;
1334
+ const go_1$3 = es2018$5;
1335
+ const errors_1$9 = es2018$4;
1336
1336
  function takeRightAsync(iterable, count) {
1337
1337
  (0, errors_1$9.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1338
1338
  (0, errors_1$9.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1361,8 +1361,8 @@
1361
1361
  var takeRight$1 = {};
1362
1362
 
1363
1363
  takeRight$1.takeRight = void 0;
1364
- const go_1$2 = es2018$6;
1365
- const errors_1$8 = es2018$5;
1364
+ const go_1$2 = es2018$5;
1365
+ const errors_1$8 = es2018$4;
1366
1366
  function takeRight(iterable, count) {
1367
1367
  (0, errors_1$8.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1368
1368
  (0, errors_1$8.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1391,7 +1391,7 @@
1391
1391
  var takeUntilAsync$1 = {};
1392
1392
 
1393
1393
  takeUntilAsync$1.takeUntilAsync = void 0;
1394
- const types_1$d = es2018$4;
1394
+ const types_1$d = es2018$3;
1395
1395
  function takeUntilAsync(iterable, predicate) {
1396
1396
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
1397
1397
  return takeUntilAsyncIterable(iterable);
@@ -1437,8 +1437,8 @@
1437
1437
  var take$1 = {};
1438
1438
 
1439
1439
  take$1.take = void 0;
1440
- const go_1$1 = es2018$6;
1441
- const errors_1$7 = es2018$5;
1440
+ const go_1$1 = es2018$5;
1441
+ const errors_1$7 = es2018$4;
1442
1442
  function take(iterable, count) {
1443
1443
  (0, errors_1$7.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1444
1444
  (0, errors_1$7.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1458,7 +1458,7 @@
1458
1458
  var tapAsync$1 = {};
1459
1459
 
1460
1460
  tapAsync$1.tapAsync = void 0;
1461
- const types_1$c = es2018$4;
1461
+ const types_1$c = es2018$3;
1462
1462
  function tapAsync(iterable, fn) {
1463
1463
  if ((0, types_1$c.isAsyncIterable)(iterable)) {
1464
1464
  return tapAsyncIterable(iterable);
@@ -1541,7 +1541,7 @@
1541
1541
  var uniqByAsync$1 = {};
1542
1542
 
1543
1543
  uniqByAsync$1.uniqByAsync = void 0;
1544
- const types_1$b = es2018$4;
1544
+ const types_1$b = es2018$3;
1545
1545
  function uniqByAsync(iterable, fn) {
1546
1546
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
1547
1547
  return uniqByAsyncIterable(iterable);
@@ -1610,7 +1610,7 @@
1610
1610
  var zipAsync$1 = {};
1611
1611
 
1612
1612
  zipAsync$1.zipAsync = void 0;
1613
- const types_1$a = es2018$4;
1613
+ const types_1$a = es2018$3;
1614
1614
  var Kind;
1615
1615
  (function (Kind) {
1616
1616
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1770,7 +1770,7 @@
1770
1770
  var eachAsync$1 = {};
1771
1771
 
1772
1772
  eachAsync$1.eachAsync = void 0;
1773
- const types_1$9 = es2018$4;
1773
+ const types_1$9 = es2018$3;
1774
1774
  function eachAsync(iterable, fn) {
1775
1775
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
1776
1776
  return eachAsyncIterable(iterable);
@@ -1810,7 +1810,7 @@
1810
1810
  var everyAsync$1 = {};
1811
1811
 
1812
1812
  everyAsync$1.everyAsync = void 0;
1813
- const types_1$8 = es2018$4;
1813
+ const types_1$8 = es2018$3;
1814
1814
  function everyAsync(iterable, predicate) {
1815
1815
  if ((0, types_1$8.isAsyncIterable)(iterable)) {
1816
1816
  return everyAsyncIterable(iterable);
@@ -1856,7 +1856,7 @@
1856
1856
  var findAsync$1 = {};
1857
1857
 
1858
1858
  findAsync$1.findAsync = void 0;
1859
- const types_1$7 = es2018$4;
1859
+ const types_1$7 = es2018$3;
1860
1860
  function findAsync(iterable, predicate) {
1861
1861
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
1862
1862
  return findAsyncIterable(iterable);
@@ -1980,7 +1980,7 @@
1980
1980
  var reduceAsync$1 = {};
1981
1981
 
1982
1982
  reduceAsync$1.reduceAsync = void 0;
1983
- const types_1$6 = es2018$4;
1983
+ const types_1$6 = es2018$3;
1984
1984
  function reduceAsync(iterable, fn, initialValue) {
1985
1985
  if ((0, types_1$6.isUndefined)(initialValue)) {
1986
1986
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -2076,7 +2076,7 @@
2076
2076
  var reduce$1 = {};
2077
2077
 
2078
2078
  reduce$1.reduce = void 0;
2079
- const types_1$5 = es2018$4;
2079
+ const types_1$5 = es2018$3;
2080
2080
  function reduce(iterable, fn, initialValue) {
2081
2081
  if ((0, types_1$5.isUndefined)(initialValue)) {
2082
2082
  return reduceWithoutInitialValue(iterable, fn);
@@ -2123,7 +2123,7 @@
2123
2123
  var someAsync$1 = {};
2124
2124
 
2125
2125
  someAsync$1.someAsync = void 0;
2126
- const types_1$4 = es2018$4;
2126
+ const types_1$4 = es2018$3;
2127
2127
  function someAsync(iterable, predicate) {
2128
2128
  if ((0, types_1$4.isAsyncIterable)(iterable)) {
2129
2129
  return someAsyncIterable(iterable);
@@ -2307,11 +2307,11 @@
2307
2307
  };__exportStar(middleware, exports);
2308
2308
  __exportStar(output, exports);
2309
2309
 
2310
- }(es2018$7));
2310
+ }(es2018$6));
2311
2311
 
2312
2312
  unwrap$1.unwrap = void 0;
2313
2313
  const flat_map_1 = flatMap$1;
2314
- const iterable_operator_1$2 = es2018$7;
2314
+ const iterable_operator_1$2 = es2018$6;
2315
2315
  function unwrap(node, predicate) {
2316
2316
  return (0, flat_map_1.flatMap)(node, node => {
2317
2317
  if (predicate(node)) {
@@ -2341,7 +2341,7 @@
2341
2341
 
2342
2342
  findInDescendantNodes$1.findInDescendantNodes = void 0;
2343
2343
  const traverse_descendant_nodes_1 = traverseDescendantNodes$1;
2344
- const iterable_operator_1$1 = es2018$7;
2344
+ const iterable_operator_1$1 = es2018$6;
2345
2345
  function findInDescendantNodes(node, predicate) {
2346
2346
  return (0, iterable_operator_1$1.find)((0, traverse_descendant_nodes_1.traverseDescendantNodes)(node), node => predicate(node));
2347
2347
  }
@@ -2451,7 +2451,7 @@
2451
2451
 
2452
2452
  }(nodeType));
2453
2453
 
2454
- var es2018$3 = {};
2454
+ var es2018$2 = {};
2455
2455
 
2456
2456
  var array = {};
2457
2457
 
@@ -2639,19 +2639,167 @@
2639
2639
 
2640
2640
  var object = {};
2641
2641
 
2642
- object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
2642
+ /**
2643
+ * lodash (Custom Build) <https://lodash.com/>
2644
+ * Build: `lodash modularize exports="npm" -o ./`
2645
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2646
+ * Released under MIT license <https://lodash.com/license>
2647
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2648
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2649
+ */
2650
+
2651
+ /** `Object#toString` result references. */
2652
+ var objectTag = '[object Object]';
2653
+
2654
+ /**
2655
+ * Checks if `value` is a host object in IE < 9.
2656
+ *
2657
+ * @private
2658
+ * @param {*} value The value to check.
2659
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
2660
+ */
2661
+ function isHostObject(value) {
2662
+ // Many host objects are `Object` objects that can coerce to strings
2663
+ // despite having improperly defined `toString` methods.
2664
+ var result = false;
2665
+ if (value != null && typeof value.toString != 'function') {
2666
+ try {
2667
+ result = !!(value + '');
2668
+ } catch (e) {}
2669
+ }
2670
+ return result;
2671
+ }
2672
+
2673
+ /**
2674
+ * Creates a unary function that invokes `func` with its argument transformed.
2675
+ *
2676
+ * @private
2677
+ * @param {Function} func The function to wrap.
2678
+ * @param {Function} transform The argument transform.
2679
+ * @returns {Function} Returns the new function.
2680
+ */
2681
+ function overArg(func, transform) {
2682
+ return function(arg) {
2683
+ return func(transform(arg));
2684
+ };
2685
+ }
2686
+
2687
+ /** Used for built-in method references. */
2688
+ var funcProto = Function.prototype,
2689
+ objectProto$1 = Object.prototype;
2690
+
2691
+ /** Used to resolve the decompiled source of functions. */
2692
+ var funcToString = funcProto.toString;
2693
+
2694
+ /** Used to check objects for own properties. */
2695
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
2696
+
2697
+ /** Used to infer the `Object` constructor. */
2698
+ var objectCtorString = funcToString.call(Object);
2699
+
2700
+ /**
2701
+ * Used to resolve the
2702
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2703
+ * of values.
2704
+ */
2705
+ var objectToString$1 = objectProto$1.toString;
2706
+
2707
+ /** Built-in value references. */
2708
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
2709
+
2710
+ /**
2711
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2712
+ * and has a `typeof` result of "object".
2713
+ *
2714
+ * @static
2715
+ * @memberOf _
2716
+ * @since 4.0.0
2717
+ * @category Lang
2718
+ * @param {*} value The value to check.
2719
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2720
+ * @example
2721
+ *
2722
+ * _.isObjectLike({});
2723
+ * // => true
2724
+ *
2725
+ * _.isObjectLike([1, 2, 3]);
2726
+ * // => true
2727
+ *
2728
+ * _.isObjectLike(_.noop);
2729
+ * // => false
2730
+ *
2731
+ * _.isObjectLike(null);
2732
+ * // => false
2733
+ */
2734
+ function isObjectLike$1(value) {
2735
+ return !!value && typeof value == 'object';
2736
+ }
2737
+
2738
+ /**
2739
+ * Checks if `value` is a plain object, that is, an object created by the
2740
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
2741
+ *
2742
+ * @static
2743
+ * @memberOf _
2744
+ * @since 0.8.0
2745
+ * @category Lang
2746
+ * @param {*} value The value to check.
2747
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
2748
+ * @example
2749
+ *
2750
+ * function Foo() {
2751
+ * this.a = 1;
2752
+ * }
2753
+ *
2754
+ * _.isPlainObject(new Foo);
2755
+ * // => false
2756
+ *
2757
+ * _.isPlainObject([1, 2, 3]);
2758
+ * // => false
2759
+ *
2760
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
2761
+ * // => true
2762
+ *
2763
+ * _.isPlainObject(Object.create(null));
2764
+ * // => true
2765
+ */
2766
+ function isPlainObject$1(value) {
2767
+ if (!isObjectLike$1(value) ||
2768
+ objectToString$1.call(value) != objectTag || isHostObject(value)) {
2769
+ return false;
2770
+ }
2771
+ var proto = getPrototype(value);
2772
+ if (proto === null) {
2773
+ return true;
2774
+ }
2775
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
2776
+ return (typeof Ctor == 'function' &&
2777
+ Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
2778
+ }
2779
+
2780
+ var lodash_isplainobject = isPlainObject$1;
2781
+
2782
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
2783
+ return (mod && mod.__esModule) ? mod : { "default": mod };
2784
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
2785
+ const lodash_isplainobject_1 = __importDefault$1(lodash_isplainobject);
2643
2786
  function isObject$1(val) {
2644
- return val !== null && typeof val === 'object';
2787
+ return val !== null
2788
+ && typeof val === 'object';
2645
2789
  }
2646
2790
  object.isObject = isObject$1;
2647
2791
  function isntObject(val) {
2648
2792
  return !isObject$1(val);
2649
2793
  }
2650
2794
  object.isntObject = isntObject;
2651
- function isRecord(val) {
2652
- return isObject$1(val);
2795
+ function isPlainObject(val) {
2796
+ return (0, lodash_isplainobject_1.default)(val);
2653
2797
  }
2654
- object.isRecord = isRecord;
2798
+ object.isPlainObject = isPlainObject;
2799
+ function isntPlainObject(val) {
2800
+ return !isPlainObject(val);
2801
+ }
2802
+ object.isntPlainObject = isntPlainObject;
2655
2803
  function isEmptyObject(val) {
2656
2804
  return Object.keys(val).length === 0;
2657
2805
  }
@@ -2686,7 +2834,7 @@
2686
2834
  return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
2687
2835
  }
2688
2836
  function isJsonRpcNotification(val) {
2689
- return (0, object_1.isRecord)(val)
2837
+ return (0, object_1.isPlainObject)(val)
2690
2838
  && (0, string_1.isString)(val.jsonrpc)
2691
2839
  && (0, string_1.isString)(val.method)
2692
2840
  && (0, undefined_1.isUndefined)(val.id)
@@ -2698,7 +2846,7 @@
2698
2846
  }
2699
2847
  jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
2700
2848
  function isJsonRpcRequest(val) {
2701
- return (0, object_1.isRecord)(val)
2849
+ return (0, object_1.isPlainObject)(val)
2702
2850
  && (0, string_1.isString)(val.jsonrpc)
2703
2851
  && (0, string_1.isString)(val.method)
2704
2852
  && isJsonRpcId(val.id)
@@ -2710,7 +2858,7 @@
2710
2858
  }
2711
2859
  jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
2712
2860
  function isJsonRpcSuccess(val) {
2713
- return (0, object_1.isRecord)(val)
2861
+ return (0, object_1.isPlainObject)(val)
2714
2862
  && (0, string_1.isString)(val.jsonrpc)
2715
2863
  && (0, string_1.isString)(val.id)
2716
2864
  && 'result' in val;
@@ -2721,7 +2869,7 @@
2721
2869
  }
2722
2870
  jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
2723
2871
  function isJsonRpcError(val) {
2724
- return (0, object_1.isRecord)(val)
2872
+ return (0, object_1.isPlainObject)(val)
2725
2873
  && (0, string_1.isString)(val.jsonrpc)
2726
2874
  && isJsonRpcId(val.id)
2727
2875
  && isJsonRpcErrorObject(val.error);
@@ -2732,7 +2880,7 @@
2732
2880
  }
2733
2881
  jsonRpc.isntJsonRpcError = isntJsonRpcError;
2734
2882
  function isJsonRpcErrorObject(val) {
2735
- return (0, object_1.isRecord)(val)
2883
+ return (0, object_1.isPlainObject)(val)
2736
2884
  && (0, number_1.isNumber)(val.code)
2737
2885
  && (0, string_1.isString)(val.message)
2738
2886
  && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
@@ -2800,15 +2948,16 @@
2800
2948
  __exportStar(_undefined, exports);
2801
2949
  __exportStar(url, exports);
2802
2950
 
2803
- }(es2018$3));
2951
+ }(es2018$2));
2804
2952
 
2805
2953
  isDocument$1.isDocument = void 0;
2806
2954
  const node_type_1$2 = nodeType;
2807
- const types_1$3 = es2018$3;
2955
+ const types_1$3 = es2018$2;
2808
2956
  function isDocument(val) {
2809
2957
  if ('HTMLDocument' in globalThis && val instanceof HTMLDocument)
2810
2958
  return true;
2811
- return (0, types_1$3.isRecord)(val) && val.nodeType === node_type_1$2.NodeType.DOCUMENT_NODE;
2959
+ return (0, types_1$3.isObject)(val)
2960
+ && val.nodeType === node_type_1$2.NodeType.DOCUMENT_NODE;
2812
2961
  }
2813
2962
  isDocument$1.isDocument = isDocument;
2814
2963
 
@@ -2816,11 +2965,12 @@
2816
2965
 
2817
2966
  isElement$1.isElement = void 0;
2818
2967
  const node_type_1$1 = nodeType;
2819
- const types_1$2 = es2018$3;
2968
+ const types_1$2 = es2018$2;
2820
2969
  function isElement(val) {
2821
2970
  if ('HTMLElement' in globalThis && val instanceof HTMLElement)
2822
2971
  return true;
2823
- return (0, types_1$2.isRecord)(val) && val.nodeType === node_type_1$1.NodeType.ELEMENT_NODE;
2972
+ return (0, types_1$2.isObject)(val)
2973
+ && val.nodeType === node_type_1$1.NodeType.ELEMENT_NODE;
2824
2974
  }
2825
2975
  isElement$1.isElement = isElement;
2826
2976
 
@@ -2876,7 +3026,7 @@
2876
3026
 
2877
3027
  findInAncestorNodes$1.findInAncestorNodes = void 0;
2878
3028
  const traverse_ancestor_nodes_1 = traverseAncestorNodes$1;
2879
- const iterable_operator_1 = es2018$7;
3029
+ const iterable_operator_1 = es2018$6;
2880
3030
  function findInAncestorNodes(node, predicate) {
2881
3031
  return (0, iterable_operator_1.find)((0, traverse_ancestor_nodes_1.traverseAncestorNodes)(node), node => predicate(node));
2882
3032
  }
@@ -2917,7 +3067,7 @@
2917
3067
  var parentNode$1 = {};
2918
3068
 
2919
3069
  parentNode$1.parentNode = void 0;
2920
- const errors_1$6 = es2018$5;
3070
+ const errors_1$6 = es2018$4;
2921
3071
  function parentNode(node, distance = 1) {
2922
3072
  (0, errors_1$6.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2923
3073
  (0, errors_1$6.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2939,7 +3089,7 @@
2939
3089
  var nextSibling$2 = {};
2940
3090
 
2941
3091
  nextSibling$2.nextSibling = void 0;
2942
- const errors_1$5 = es2018$5;
3092
+ const errors_1$5 = es2018$4;
2943
3093
  function nextSibling$1(node, distance = 1) {
2944
3094
  (0, errors_1$5.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2945
3095
  (0, errors_1$5.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2961,7 +3111,7 @@
2961
3111
  var previousSibling$1 = {};
2962
3112
 
2963
3113
  previousSibling$1.previousSibling = void 0;
2964
- const errors_1$4 = es2018$5;
3114
+ const errors_1$4 = es2018$4;
2965
3115
  function previousSibling(node, distance = 1) {
2966
3116
  (0, errors_1$4.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2967
3117
  (0, errors_1$4.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -2984,7 +3134,7 @@
2984
3134
 
2985
3135
  nextElementSibling$2.nextElementSibling = void 0;
2986
3136
  const is_element_1$2 = isElement$1;
2987
- const errors_1$3 = es2018$5;
3137
+ const errors_1$3 = es2018$4;
2988
3138
  function nextElementSibling$1(node, distance = 1) {
2989
3139
  (0, errors_1$3.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
2990
3140
  (0, errors_1$3.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -3012,7 +3162,7 @@
3012
3162
 
3013
3163
  previousElementSibling$1.previousElementSibling = void 0;
3014
3164
  const is_element_1$1 = isElement$1;
3015
- const errors_1$2 = es2018$5;
3165
+ const errors_1$2 = es2018$4;
3016
3166
  function previousElementSibling(node, distance = 1) {
3017
3167
  (0, errors_1$2.assert)(Number.isInteger(distance), 'parameter distance must be an integer');
3018
3168
  (0, errors_1$2.assert)(distance >= 1, 'parameter distance must be greater than or equal to 1');
@@ -3057,7 +3207,7 @@
3057
3207
  var isNode$1 = {};
3058
3208
 
3059
3209
  isNode$1.isNode = void 0;
3060
- const types_1$1 = es2018$3;
3210
+ const types_1$1 = es2018$2;
3061
3211
  function isNode(val) {
3062
3212
  if ('Node' in globalThis && val instanceof Node)
3063
3213
  return true;
@@ -3078,11 +3228,12 @@
3078
3228
 
3079
3229
  isTextNode$1.isTextNode = void 0;
3080
3230
  const node_type_1 = nodeType;
3081
- const types_1 = es2018$3;
3231
+ const types_1 = es2018$2;
3082
3232
  function isTextNode(val) {
3083
3233
  if ('Text' in globalThis && val instanceof Text)
3084
3234
  return true;
3085
- return (0, types_1.isRecord)(val) && val.nodeType === node_type_1.NodeType.TEXT_NODE;
3235
+ return (0, types_1.isObject)(val)
3236
+ && val.nodeType === node_type_1.NodeType.TEXT_NODE;
3086
3237
  }
3087
3238
  isTextNode$1.isTextNode = isTextNode;
3088
3239
 
@@ -3244,7 +3395,7 @@
3244
3395
  __exportStar(isBefore$1, exports);
3245
3396
  __exportStar(isAfter$1, exports);
3246
3397
 
3247
- }(es2018$8));
3398
+ }(es2018$7));
3248
3399
 
3249
3400
  function matchOneByOne(context, source, ...matchers) {
3250
3401
  if (matchers.length === 0)
@@ -3286,11 +3437,11 @@
3286
3437
  function nextSibling(node, distance = 1) {
3287
3438
  if (distance === 0)
3288
3439
  return node;
3289
- return es2018$8.nextSibling(node, distance);
3440
+ return es2018$7.nextSibling(node, distance);
3290
3441
  }
3291
3442
 
3292
3443
  function match(node, ...matchers) {
3293
- const document = es2018$8.isDocument(this) ? this : globalThis.document;
3444
+ const document = es2018$7.isDocument(this) ? this : globalThis.document;
3294
3445
  const context = {
3295
3446
  document,
3296
3447
  collection: {},
@@ -3307,11 +3458,11 @@
3307
3458
  function nextElementSibling(node, distance = 1) {
3308
3459
  if (distance === 0)
3309
3460
  return node;
3310
- return es2018$8.nextElementSibling(node, distance);
3461
+ return es2018$7.nextElementSibling(node, distance);
3311
3462
  }
3312
3463
 
3313
3464
  function matchElement(element, ...matchers) {
3314
- const document = es2018$8.isDocument(this) ? this : globalThis.document;
3465
+ const document = es2018$7.isDocument(this) ? this : globalThis.document;
3315
3466
  const context = {
3316
3467
  document,
3317
3468
  collection: {},
@@ -3331,7 +3482,7 @@
3331
3482
  };
3332
3483
  }
3333
3484
 
3334
- function merge(target, source) {
3485
+ function mergeInPlace(target, source) {
3335
3486
  for (const [key, value] of Object.entries(source)) {
3336
3487
  if (target[key]) {
3337
3488
  if (es2018$3.isArray(target[key])) {
@@ -3372,7 +3523,7 @@
3372
3523
  };
3373
3524
  const result = matchOneByOne(context, node.childNodes[0], ...matchers);
3374
3525
  if (result) {
3375
- merge(this.collection, context.collection);
3526
+ mergeInPlace(this.collection, context.collection);
3376
3527
  }
3377
3528
  return result;
3378
3529
  };
@@ -3393,7 +3544,7 @@
3393
3544
  };
3394
3545
  const result = matchOneByOne(context, element.children[0], ...matchers);
3395
3546
  if (result) {
3396
- merge(this.collection, context.collection);
3547
+ mergeInPlace(this.collection, context.collection);
3397
3548
  }
3398
3549
  return result;
3399
3550
  };
@@ -3432,14 +3583,14 @@
3432
3583
  return function (_element) {
3433
3584
  const result = element(...matchers).call(this, _element);
3434
3585
  if (result) {
3435
- merge(this.collection, { [name]: _element });
3586
+ mergeInPlace(this.collection, { [name]: _element });
3436
3587
  }
3437
3588
  return result;
3438
3589
  };
3439
3590
  }
3440
3591
  const [...matchers] = args;
3441
3592
  return function (element) {
3442
- if (es2018$8.isntElement(element))
3593
+ if (es2018$7.isntElement(element))
3443
3594
  return false;
3444
3595
  if (matchers.length === 0)
3445
3596
  return true;
@@ -3447,7 +3598,7 @@
3447
3598
  };
3448
3599
  }
3449
3600
 
3450
- var es2018$2 = {};
3601
+ var es2018$1 = {};
3451
3602
 
3452
3603
  var of$1 = {};
3453
3604
 
@@ -3459,33 +3610,9 @@
3459
3610
 
3460
3611
  var repeat$2 = {};
3461
3612
 
3462
- var es2018$1 = {};
3463
-
3464
- var go$1 = {};
3465
-
3466
- go$1.go = void 0;
3467
- function go(fn) {
3468
- return fn();
3469
- }
3470
- go$1.go = go;
3471
-
3472
- (function (exports) {
3473
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3474
- if (k2 === undefined) k2 = k;
3475
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3476
- }) : (function(o, m, k, k2) {
3477
- if (k2 === undefined) k2 = k;
3478
- o[k2] = m[k];
3479
- }));
3480
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3481
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3482
- };__exportStar(go$1, exports);
3483
-
3484
- }(es2018$1));
3485
-
3486
3613
  repeat$2.repeat = void 0;
3487
- const errors_1$1 = es2018$5;
3488
- const go_1 = es2018$1;
3614
+ const errors_1$1 = es2018$4;
3615
+ const go_1 = es2018$5;
3489
3616
  function repeat$1(val, times = Infinity) {
3490
3617
  (0, errors_1$1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3491
3618
  return (0, go_1.go)(function* () {
@@ -3523,7 +3650,7 @@
3523
3650
  var range$1 = {};
3524
3651
 
3525
3652
  range$1.range = void 0;
3526
- const errors_1 = es2018$5;
3653
+ const errors_1 = es2018$4;
3527
3654
  function range(start, end, step = 1) {
3528
3655
  (0, errors_1.assert)(step > 0, 'step parameter must be greater than 0');
3529
3656
  return rangeByUnsignedStep(start, end, step);
@@ -4127,14 +4254,14 @@
4127
4254
  __exportStar(reusableAsyncIterable, exports);
4128
4255
  __exportStar(timestampBasedId$1, exports);
4129
4256
 
4130
- }(es2018$2));
4257
+ }(es2018$1));
4131
4258
 
4132
4259
  /**
4133
4260
  * @returns {number} 返回值为成功匹配的元素个数, 当此值等于ubound时, 代表匹配成功.
4134
4261
  */
4135
4262
  function matchMultiple(node, ubound, matcher) {
4136
4263
  let currentNode = node;
4137
- for (const round of es2018$2.countup(1, ubound)) {
4264
+ for (const round of es2018$1.countup(1, ubound)) {
4138
4265
  if (!currentNode)
4139
4266
  return round - 1;
4140
4267
  const result = matcher.call(this, currentNode);
@@ -4154,10 +4281,10 @@
4154
4281
  Range[Range["Max"] = 1] = "Max";
4155
4282
  })(Range || (Range = {}));
4156
4283
  function multiple([min, max], matcher, options = { greedy: true }) {
4157
- es2018$5.assert(Number.isInteger(min), 'parameter min must be an integer');
4158
- es2018$5.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
4159
- es2018$5.assert(min >= 0, 'parameter min must be greater than or equal to 0');
4160
- es2018$5.assert(min <= max, 'parameter max must be greater than or equal to min');
4284
+ es2018$4.assert(Number.isInteger(min), 'parameter min must be an integer');
4285
+ es2018$4.assert(Number.isInteger(max) || max === Infinity, 'parameter max must be an integer or Infinity');
4286
+ es2018$4.assert(min >= 0, 'parameter min must be greater than or equal to 0');
4287
+ es2018$4.assert(min <= max, 'parameter max must be greater than or equal to min');
4161
4288
  return function* (node) {
4162
4289
  if (options.greedy) {
4163
4290
  let ubound = max;
@@ -4172,7 +4299,7 @@
4172
4299
  }
4173
4300
  }
4174
4301
  else {
4175
- for (const ubound of es2018$2.countup(min, max)) {
4302
+ for (const ubound of es2018$1.countup(min, max)) {
4176
4303
  const result = matchMultiple.call(this, node, ubound, matcher);
4177
4304
  // 如果匹配的节点数量少于ubound, 说明匹配失败, 即使尝试更长的匹配也不会成功.
4178
4305
  if (result < ubound)
@@ -4195,7 +4322,7 @@
4195
4322
  return function (_node) {
4196
4323
  const result = node(...matchers).call(this, _node);
4197
4324
  if (result) {
4198
- merge(this.collection, { [name]: _node });
4325
+ mergeInPlace(this.collection, { [name]: _node });
4199
4326
  }
4200
4327
  return result;
4201
4328
  };
@@ -4213,8 +4340,8 @@
4213
4340
  }
4214
4341
 
4215
4342
  function repeat(times, matcher) {
4216
- es2018$5.assert(Number.isInteger(times), 'parameter times must be an integer');
4217
- es2018$5.assert(times >= 0, 'parameter number must be greater than or equal to 0');
4343
+ es2018$4.assert(Number.isInteger(times), 'parameter times must be an integer');
4344
+ es2018$4.assert(times >= 0, 'parameter number must be greater than or equal to 0');
4218
4345
  return function (node) {
4219
4346
  const result = matchMultiple.call(this, node, times, matcher);
4220
4347
  if (result === times) {
@@ -4286,14 +4413,14 @@
4286
4413
  return function (node) {
4287
4414
  const result = textNode(...matchers).call(this, node);
4288
4415
  if (result) {
4289
- merge(this.collection, { [name]: node });
4416
+ mergeInPlace(this.collection, { [name]: node });
4290
4417
  }
4291
4418
  return result;
4292
4419
  };
4293
4420
  }
4294
4421
  const [...matchers] = args;
4295
4422
  return function (node) {
4296
- if (es2018$8.isntTextNode(node))
4423
+ if (es2018$7.isntTextNode(node))
4297
4424
  return false;
4298
4425
  if (matchers.length === 0)
4299
4426
  return true;
@@ -4307,7 +4434,7 @@
4307
4434
  function xpath(...args) {
4308
4435
  if (es2018$3.isString(args[0])) {
4309
4436
  const [expression] = args;
4310
- es2018$5.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4437
+ es2018$4.assert(expression.startsWith('//*'), 'XPath expressions must start with "//*"');
4311
4438
  return function (node) {
4312
4439
  return xpathMatches(this.document, expression, node);
4313
4440
  };