acud 0.0.74 → 0.0.75

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/dist/acud.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! acud v0.0.74 */
1
+ /*! acud v0.0.75 */
2
2
  (function webpackUniversalModuleDefinition(root, factory) {
3
3
  if(typeof exports === 'object' && typeof module === 'object')
4
4
  module.exports = factory(require("react"), require("react-dom"));
@@ -9585,7 +9585,6 @@ function PickerPanel(props) {
9585
9585
  var now = generateConfig.getNow();
9586
9586
  if (!date) return now; // When value is null and set showTime
9587
9587
 
9588
- // When value is null and set showTime
9589
9588
  if (!mergedValue && showTime) {
9590
9589
  if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(showTime) === 'object') {
9591
9590
  return Object(_utils_timeUtil__WEBPACK_IMPORTED_MODULE_23__["setDateTime"])(generateConfig, date, showTime.defaultValue || now);
@@ -10223,7 +10222,6 @@ function InnerRangePicker(props) {
10223
10222
  } // Fill disabled unit
10224
10223
 
10225
10224
 
10226
- // Fill disabled unit
10227
10225
  for (var i = 0; i < 2; i += 1) {
10228
10226
  if (mergedDisabled[i] && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(postValues, i) && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(allowEmpty, i)) {
10229
10227
  postValues = Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["updateValues"])(postValues, generateConfig.getNow(), i);
@@ -28258,6 +28256,8 @@ var OptionList = function OptionList(_ref, ref) {
28258
28256
  mode = _ref.mode,
28259
28257
  open = _ref.open,
28260
28258
  virtual = _ref.virtual,
28259
+ _ref$keepExpand = _ref.keepExpand,
28260
+ keepExpand = _ref$keepExpand === void 0 ? false : _ref$keepExpand,
28261
28261
  _ref$defaultExpandGro = _ref.defaultExpandGroupKey,
28262
28262
  defaultExpandGroupKey = _ref$defaultExpandGro === void 0 ? false : _ref$defaultExpandGro,
28263
28263
  renderEmpty = _ref.renderEmpty,
@@ -28596,6 +28596,8 @@ var OptionList = function OptionList(_ref, ref) {
28596
28596
  e.stopPropagation();
28597
28597
  };
28598
28598
 
28599
+ var isKeepExpand = !multiple && keepExpand;
28600
+
28599
28601
  var renderOption = function renderOption(data, values, groupOption, label, itemIndex, groupKey) {
28600
28602
  var _classNames;
28601
28603
 
@@ -28613,7 +28615,7 @@ var OptionList = function OptionList(_ref, ref) {
28613
28615
 
28614
28616
  var selected = values.has(value);
28615
28617
  var optionPrefixCls = "".concat(itemPrefixCls, "-option");
28616
- var optionClassName = classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
28618
+ var optionClassName = classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-grouped-keep-expand"), isKeepExpand), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
28617
28619
  var mergedLabel = childrenAsData ? children : label; // const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
28618
28620
 
28619
28621
  var content = mergedLabel || value;
@@ -28641,7 +28643,7 @@ var OptionList = function OptionList(_ref, ref) {
28641
28643
  }
28642
28644
  },
28643
28645
  style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({
28644
- display: groupOption && !expandGroupKey.includes(groupKey) ? 'none' : ''
28646
+ display: groupOption && !expandGroupKey.includes(groupKey) && !isKeepExpand ? 'none' : ''
28645
28647
  }, style)
28646
28648
  }), multiple && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_checkbox__WEBPACK_IMPORTED_MODULE_12__["default"], {
28647
28649
  checked: selected,
@@ -28698,8 +28700,12 @@ var OptionList = function OptionList(_ref, ref) {
28698
28700
 
28699
28701
  if (group) {
28700
28702
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
28701
- className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
28703
+ className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, "".concat(itemPrefixCls, "-group"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(itemPrefixCls, "-group-keep-expand"), isKeepExpand)),
28702
28704
  onClick: function onClick() {
28705
+ if (isKeepExpand) {
28706
+ return;
28707
+ }
28708
+
28703
28709
  var gIndex = expandGroupKey.indexOf(key);
28704
28710
 
28705
28711
  var newGroupKey = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(expandGroupKey);
@@ -28707,7 +28713,7 @@ var OptionList = function OptionList(_ref, ref) {
28707
28713
  gIndex !== -1 ? newGroupKey.splice(gIndex, 1) : newGroupKey.push(key);
28708
28714
  setExpandGroupKey(newGroupKey);
28709
28715
  }
28710
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
28716
+ }, !isKeepExpand && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
28711
28717
  className: "".concat(itemPrefixCls, "-group-arrow")
28712
28718
  }, expandGroupKey.includes(key) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](acud_icon__WEBPACK_IMPORTED_MODULE_9__["OutlinedDown"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](acud_icon__WEBPACK_IMPORTED_MODULE_9__["OutlinedRight"], null)), multiple && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_checkbox__WEBPACK_IMPORTED_MODULE_12__["default"], {
28713
28719
  className: "".concat(itemPrefixCls, "-group-checkbox"),
@@ -29863,6 +29869,7 @@ function generateSelector(config) {
29863
29869
  tokenSeparators = props.tokenSeparators,
29864
29870
  tagRender = props.tagRender,
29865
29871
  renderEmpty = props.renderEmpty,
29872
+ keepExpand = props.keepExpand,
29866
29873
  defaultExpandGroupKey = props.defaultExpandGroupKey,
29867
29874
  onPopupScroll = props.onPopupScroll,
29868
29875
  onDropdownVisibleChange = props.onDropdownVisibleChange,
@@ -29877,7 +29884,7 @@ function generateSelector(config) {
29877
29884
  onClear = props.onClear,
29878
29885
  _props$internalProps = props.internalProps,
29879
29886
  internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
29880
- restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "renderEmpty", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
29887
+ restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "renderEmpty", "keepExpand", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
29881
29888
 
29882
29889
  var useInternalProps = internalProps.mark === _interface_generator__WEBPACK_IMPORTED_MODULE_10__["INTERNAL_PROPS_MARK"];
29883
29890
  var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
@@ -30526,6 +30533,7 @@ function generateSelector(config) {
30526
30533
  defaultActiveFirstOption: mergedDefaultActiveFirstOption,
30527
30534
  notFoundContent: notFoundContent,
30528
30535
  renderEmpty: renderEmpty,
30536
+ keepExpand: keepExpand,
30529
30537
  defaultExpandGroupKey: defaultExpandGroupKey,
30530
30538
  onScroll: onPopupScroll,
30531
30539
  searchValue: mergedSearchValue,
@@ -46628,7 +46636,6 @@ function RawList(props, ref) {
46628
46636
  } // Always use virtual scroll bar in avoid shaking
46629
46637
 
46630
46638
 
46631
- // Always use virtual scroll bar in avoid shaking
46632
46639
  if (!inVirtual) {
46633
46640
  return {
46634
46641
  scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
@@ -46650,14 +46657,12 @@ function RawList(props, ref) {
46650
46657
  var cacheHeight = heights.get(key);
46651
46658
  var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
46652
46659
 
46653
- // Check item top in the range
46654
46660
  if (currentItemBottom >= scrollTop && startIndex === undefined) {
46655
46661
  startIndex = i;
46656
46662
  startOffset = itemTop;
46657
46663
  } // Check item bottom in the range. We will render additional one item for motion usage
46658
46664
 
46659
46665
 
46660
- // Check item bottom in the range. We will render additional one item for motion usage
46661
46666
  if (currentItemBottom > scrollTop + height && endIndex === undefined) {
46662
46667
  endIndex = i;
46663
46668
  }
@@ -46668,9 +46673,6 @@ function RawList(props, ref) {
46668
46673
  /* istanbul ignore next */
46669
46674
 
46670
46675
 
46671
- // Fallback to normal if not match. This code should never reach
46672
-
46673
- /* istanbul ignore next */
46674
46676
  if (startIndex === undefined) {
46675
46677
  startIndex = 0;
46676
46678
  startOffset = 0;
@@ -46681,7 +46683,6 @@ function RawList(props, ref) {
46681
46683
  } // Give cache to improve scroll experience
46682
46684
 
46683
46685
 
46684
- // Give cache to improve scroll experience
46685
46686
  endIndex = Math.min(endIndex + 1, mergedData.length);
46686
46687
  return {
46687
46688
  scrollHeight: itemTop,
@@ -48055,7 +48056,7 @@ function _defineProperty(obj, key, value) {
48055
48056
  __webpack_require__.r(__webpack_exports__);
48056
48057
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
48057
48058
  function _extends() {
48058
- _extends = Object.assign || function (target) {
48059
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
48059
48060
  for (var i = 1; i < arguments.length; i++) {
48060
48061
  var source = arguments[i];
48061
48062
 
@@ -48068,7 +48069,6 @@ function _extends() {
48068
48069
 
48069
48070
  return target;
48070
48071
  };
48071
-
48072
48072
  return _extends.apply(this, arguments);
48073
48073
  }
48074
48074
 
@@ -48088,7 +48088,7 @@ __webpack_require__.r(__webpack_exports__);
48088
48088
 
48089
48089
  function _get() {
48090
48090
  if (typeof Reflect !== "undefined" && Reflect.get) {
48091
- _get = Reflect.get;
48091
+ _get = Reflect.get.bind();
48092
48092
  } else {
48093
48093
  _get = function _get(target, property, receiver) {
48094
48094
  var base = Object(_superPropBase_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, property);
@@ -48119,7 +48119,7 @@ function _get() {
48119
48119
  __webpack_require__.r(__webpack_exports__);
48120
48120
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
48121
48121
  function _getPrototypeOf(o) {
48122
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
48122
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
48123
48123
  return o.__proto__ || Object.getPrototypeOf(o);
48124
48124
  };
48125
48125
  return _getPrototypeOf(o);
@@ -48401,6 +48401,372 @@ function _possibleConstructorReturn(self, call) {
48401
48401
 
48402
48402
  /***/ }),
48403
48403
 
48404
+ /***/ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":
48405
+ /*!***********************************************************************!*\
48406
+ !*** ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js ***!
48407
+ \***********************************************************************/
48408
+ /*! exports provided: default */
48409
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
48410
+
48411
+ "use strict";
48412
+ __webpack_require__.r(__webpack_exports__);
48413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _regeneratorRuntime; });
48414
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
48415
+
48416
+ function _regeneratorRuntime() {
48417
+ "use strict";
48418
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
48419
+
48420
+ _regeneratorRuntime = function _regeneratorRuntime() {
48421
+ return exports;
48422
+ };
48423
+
48424
+ var exports = {},
48425
+ Op = Object.prototype,
48426
+ hasOwn = Op.hasOwnProperty,
48427
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
48428
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
48429
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
48430
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
48431
+
48432
+ function define(obj, key, value) {
48433
+ return Object.defineProperty(obj, key, {
48434
+ value: value,
48435
+ enumerable: !0,
48436
+ configurable: !0,
48437
+ writable: !0
48438
+ }), obj[key];
48439
+ }
48440
+
48441
+ try {
48442
+ define({}, "");
48443
+ } catch (err) {
48444
+ define = function define(obj, key, value) {
48445
+ return obj[key] = value;
48446
+ };
48447
+ }
48448
+
48449
+ function wrap(innerFn, outerFn, self, tryLocsList) {
48450
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
48451
+ generator = Object.create(protoGenerator.prototype),
48452
+ context = new Context(tryLocsList || []);
48453
+ return generator._invoke = function (innerFn, self, context) {
48454
+ var state = "suspendedStart";
48455
+ return function (method, arg) {
48456
+ if ("executing" === state) throw new Error("Generator is already running");
48457
+
48458
+ if ("completed" === state) {
48459
+ if ("throw" === method) throw arg;
48460
+ return doneResult();
48461
+ }
48462
+
48463
+ for (context.method = method, context.arg = arg;;) {
48464
+ var delegate = context.delegate;
48465
+
48466
+ if (delegate) {
48467
+ var delegateResult = maybeInvokeDelegate(delegate, context);
48468
+
48469
+ if (delegateResult) {
48470
+ if (delegateResult === ContinueSentinel) continue;
48471
+ return delegateResult;
48472
+ }
48473
+ }
48474
+
48475
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
48476
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
48477
+ context.dispatchException(context.arg);
48478
+ } else "return" === context.method && context.abrupt("return", context.arg);
48479
+ state = "executing";
48480
+ var record = tryCatch(innerFn, self, context);
48481
+
48482
+ if ("normal" === record.type) {
48483
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
48484
+ return {
48485
+ value: record.arg,
48486
+ done: context.done
48487
+ };
48488
+ }
48489
+
48490
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
48491
+ }
48492
+ };
48493
+ }(innerFn, self, context), generator;
48494
+ }
48495
+
48496
+ function tryCatch(fn, obj, arg) {
48497
+ try {
48498
+ return {
48499
+ type: "normal",
48500
+ arg: fn.call(obj, arg)
48501
+ };
48502
+ } catch (err) {
48503
+ return {
48504
+ type: "throw",
48505
+ arg: err
48506
+ };
48507
+ }
48508
+ }
48509
+
48510
+ exports.wrap = wrap;
48511
+ var ContinueSentinel = {};
48512
+
48513
+ function Generator() {}
48514
+
48515
+ function GeneratorFunction() {}
48516
+
48517
+ function GeneratorFunctionPrototype() {}
48518
+
48519
+ var IteratorPrototype = {};
48520
+ define(IteratorPrototype, iteratorSymbol, function () {
48521
+ return this;
48522
+ });
48523
+ var getProto = Object.getPrototypeOf,
48524
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
48525
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
48526
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
48527
+
48528
+ function defineIteratorMethods(prototype) {
48529
+ ["next", "throw", "return"].forEach(function (method) {
48530
+ define(prototype, method, function (arg) {
48531
+ return this._invoke(method, arg);
48532
+ });
48533
+ });
48534
+ }
48535
+
48536
+ function AsyncIterator(generator, PromiseImpl) {
48537
+ function invoke(method, arg, resolve, reject) {
48538
+ var record = tryCatch(generator[method], generator, arg);
48539
+
48540
+ if ("throw" !== record.type) {
48541
+ var result = record.arg,
48542
+ value = result.value;
48543
+ return value && "object" == Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
48544
+ invoke("next", value, resolve, reject);
48545
+ }, function (err) {
48546
+ invoke("throw", err, resolve, reject);
48547
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
48548
+ result.value = unwrapped, resolve(result);
48549
+ }, function (error) {
48550
+ return invoke("throw", error, resolve, reject);
48551
+ });
48552
+ }
48553
+
48554
+ reject(record.arg);
48555
+ }
48556
+
48557
+ var previousPromise;
48558
+
48559
+ this._invoke = function (method, arg) {
48560
+ function callInvokeWithMethodAndArg() {
48561
+ return new PromiseImpl(function (resolve, reject) {
48562
+ invoke(method, arg, resolve, reject);
48563
+ });
48564
+ }
48565
+
48566
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
48567
+ };
48568
+ }
48569
+
48570
+ function maybeInvokeDelegate(delegate, context) {
48571
+ var method = delegate.iterator[context.method];
48572
+
48573
+ if (undefined === method) {
48574
+ if (context.delegate = null, "throw" === context.method) {
48575
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
48576
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
48577
+ }
48578
+
48579
+ return ContinueSentinel;
48580
+ }
48581
+
48582
+ var record = tryCatch(method, delegate.iterator, context.arg);
48583
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
48584
+ var info = record.arg;
48585
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
48586
+ }
48587
+
48588
+ function pushTryEntry(locs) {
48589
+ var entry = {
48590
+ tryLoc: locs[0]
48591
+ };
48592
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
48593
+ }
48594
+
48595
+ function resetTryEntry(entry) {
48596
+ var record = entry.completion || {};
48597
+ record.type = "normal", delete record.arg, entry.completion = record;
48598
+ }
48599
+
48600
+ function Context(tryLocsList) {
48601
+ this.tryEntries = [{
48602
+ tryLoc: "root"
48603
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
48604
+ }
48605
+
48606
+ function values(iterable) {
48607
+ if (iterable) {
48608
+ var iteratorMethod = iterable[iteratorSymbol];
48609
+ if (iteratorMethod) return iteratorMethod.call(iterable);
48610
+ if ("function" == typeof iterable.next) return iterable;
48611
+
48612
+ if (!isNaN(iterable.length)) {
48613
+ var i = -1,
48614
+ next = function next() {
48615
+ for (; ++i < iterable.length;) {
48616
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
48617
+ }
48618
+
48619
+ return next.value = undefined, next.done = !0, next;
48620
+ };
48621
+
48622
+ return next.next = next;
48623
+ }
48624
+ }
48625
+
48626
+ return {
48627
+ next: doneResult
48628
+ };
48629
+ }
48630
+
48631
+ function doneResult() {
48632
+ return {
48633
+ value: undefined,
48634
+ done: !0
48635
+ };
48636
+ }
48637
+
48638
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
48639
+ var ctor = "function" == typeof genFun && genFun.constructor;
48640
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
48641
+ }, exports.mark = function (genFun) {
48642
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
48643
+ }, exports.awrap = function (arg) {
48644
+ return {
48645
+ __await: arg
48646
+ };
48647
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
48648
+ return this;
48649
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
48650
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
48651
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
48652
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
48653
+ return result.done ? result.value : iter.next();
48654
+ });
48655
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
48656
+ return this;
48657
+ }), define(Gp, "toString", function () {
48658
+ return "[object Generator]";
48659
+ }), exports.keys = function (object) {
48660
+ var keys = [];
48661
+
48662
+ for (var key in object) {
48663
+ keys.push(key);
48664
+ }
48665
+
48666
+ return keys.reverse(), function next() {
48667
+ for (; keys.length;) {
48668
+ var key = keys.pop();
48669
+ if (key in object) return next.value = key, next.done = !1, next;
48670
+ }
48671
+
48672
+ return next.done = !0, next;
48673
+ };
48674
+ }, exports.values = values, Context.prototype = {
48675
+ constructor: Context,
48676
+ reset: function reset(skipTempReset) {
48677
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
48678
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
48679
+ }
48680
+ },
48681
+ stop: function stop() {
48682
+ this.done = !0;
48683
+ var rootRecord = this.tryEntries[0].completion;
48684
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
48685
+ return this.rval;
48686
+ },
48687
+ dispatchException: function dispatchException(exception) {
48688
+ if (this.done) throw exception;
48689
+ var context = this;
48690
+
48691
+ function handle(loc, caught) {
48692
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
48693
+ }
48694
+
48695
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48696
+ var entry = this.tryEntries[i],
48697
+ record = entry.completion;
48698
+ if ("root" === entry.tryLoc) return handle("end");
48699
+
48700
+ if (entry.tryLoc <= this.prev) {
48701
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
48702
+ hasFinally = hasOwn.call(entry, "finallyLoc");
48703
+
48704
+ if (hasCatch && hasFinally) {
48705
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
48706
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
48707
+ } else if (hasCatch) {
48708
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
48709
+ } else {
48710
+ if (!hasFinally) throw new Error("try statement without catch or finally");
48711
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
48712
+ }
48713
+ }
48714
+ }
48715
+ },
48716
+ abrupt: function abrupt(type, arg) {
48717
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48718
+ var entry = this.tryEntries[i];
48719
+
48720
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
48721
+ var finallyEntry = entry;
48722
+ break;
48723
+ }
48724
+ }
48725
+
48726
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
48727
+ var record = finallyEntry ? finallyEntry.completion : {};
48728
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
48729
+ },
48730
+ complete: function complete(record, afterLoc) {
48731
+ if ("throw" === record.type) throw record.arg;
48732
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
48733
+ },
48734
+ finish: function finish(finallyLoc) {
48735
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48736
+ var entry = this.tryEntries[i];
48737
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
48738
+ }
48739
+ },
48740
+ "catch": function _catch(tryLoc) {
48741
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
48742
+ var entry = this.tryEntries[i];
48743
+
48744
+ if (entry.tryLoc === tryLoc) {
48745
+ var record = entry.completion;
48746
+
48747
+ if ("throw" === record.type) {
48748
+ var thrown = record.arg;
48749
+ resetTryEntry(entry);
48750
+ }
48751
+
48752
+ return thrown;
48753
+ }
48754
+ }
48755
+
48756
+ throw new Error("illegal catch attempt");
48757
+ },
48758
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
48759
+ return this.delegate = {
48760
+ iterator: values(iterable),
48761
+ resultName: resultName,
48762
+ nextLoc: nextLoc
48763
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
48764
+ }
48765
+ }, exports;
48766
+ }
48767
+
48768
+ /***/ }),
48769
+
48404
48770
  /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
48405
48771
  /*!*******************************************************************!*\
48406
48772
  !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
@@ -48412,11 +48778,10 @@ function _possibleConstructorReturn(self, call) {
48412
48778
  __webpack_require__.r(__webpack_exports__);
48413
48779
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
48414
48780
  function _setPrototypeOf(o, p) {
48415
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
48781
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
48416
48782
  o.__proto__ = p;
48417
48783
  return o;
48418
48784
  };
48419
-
48420
48785
  return _setPrototypeOf(o, p);
48421
48786
  }
48422
48787
 
@@ -48562,6 +48927,391 @@ function _unsupportedIterableToArray(o, minLen) {
48562
48927
 
48563
48928
  /***/ }),
48564
48929
 
48930
+ /***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
48931
+ /*!*******************************************************************!*\
48932
+ !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
48933
+ \*******************************************************************/
48934
+ /*! no static exports found */
48935
+ /***/ (function(module, exports, __webpack_require__) {
48936
+
48937
+ var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
48938
+
48939
+ function _regeneratorRuntime() {
48940
+ "use strict";
48941
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
48942
+
48943
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
48944
+ return exports;
48945
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
48946
+ var exports = {},
48947
+ Op = Object.prototype,
48948
+ hasOwn = Op.hasOwnProperty,
48949
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
48950
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
48951
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
48952
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
48953
+
48954
+ function define(obj, key, value) {
48955
+ return Object.defineProperty(obj, key, {
48956
+ value: value,
48957
+ enumerable: !0,
48958
+ configurable: !0,
48959
+ writable: !0
48960
+ }), obj[key];
48961
+ }
48962
+
48963
+ try {
48964
+ define({}, "");
48965
+ } catch (err) {
48966
+ define = function define(obj, key, value) {
48967
+ return obj[key] = value;
48968
+ };
48969
+ }
48970
+
48971
+ function wrap(innerFn, outerFn, self, tryLocsList) {
48972
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
48973
+ generator = Object.create(protoGenerator.prototype),
48974
+ context = new Context(tryLocsList || []);
48975
+ return generator._invoke = function (innerFn, self, context) {
48976
+ var state = "suspendedStart";
48977
+ return function (method, arg) {
48978
+ if ("executing" === state) throw new Error("Generator is already running");
48979
+
48980
+ if ("completed" === state) {
48981
+ if ("throw" === method) throw arg;
48982
+ return doneResult();
48983
+ }
48984
+
48985
+ for (context.method = method, context.arg = arg;;) {
48986
+ var delegate = context.delegate;
48987
+
48988
+ if (delegate) {
48989
+ var delegateResult = maybeInvokeDelegate(delegate, context);
48990
+
48991
+ if (delegateResult) {
48992
+ if (delegateResult === ContinueSentinel) continue;
48993
+ return delegateResult;
48994
+ }
48995
+ }
48996
+
48997
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
48998
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
48999
+ context.dispatchException(context.arg);
49000
+ } else "return" === context.method && context.abrupt("return", context.arg);
49001
+ state = "executing";
49002
+ var record = tryCatch(innerFn, self, context);
49003
+
49004
+ if ("normal" === record.type) {
49005
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
49006
+ return {
49007
+ value: record.arg,
49008
+ done: context.done
49009
+ };
49010
+ }
49011
+
49012
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
49013
+ }
49014
+ };
49015
+ }(innerFn, self, context), generator;
49016
+ }
49017
+
49018
+ function tryCatch(fn, obj, arg) {
49019
+ try {
49020
+ return {
49021
+ type: "normal",
49022
+ arg: fn.call(obj, arg)
49023
+ };
49024
+ } catch (err) {
49025
+ return {
49026
+ type: "throw",
49027
+ arg: err
49028
+ };
49029
+ }
49030
+ }
49031
+
49032
+ exports.wrap = wrap;
49033
+ var ContinueSentinel = {};
49034
+
49035
+ function Generator() {}
49036
+
49037
+ function GeneratorFunction() {}
49038
+
49039
+ function GeneratorFunctionPrototype() {}
49040
+
49041
+ var IteratorPrototype = {};
49042
+ define(IteratorPrototype, iteratorSymbol, function () {
49043
+ return this;
49044
+ });
49045
+ var getProto = Object.getPrototypeOf,
49046
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
49047
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
49048
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
49049
+
49050
+ function defineIteratorMethods(prototype) {
49051
+ ["next", "throw", "return"].forEach(function (method) {
49052
+ define(prototype, method, function (arg) {
49053
+ return this._invoke(method, arg);
49054
+ });
49055
+ });
49056
+ }
49057
+
49058
+ function AsyncIterator(generator, PromiseImpl) {
49059
+ function invoke(method, arg, resolve, reject) {
49060
+ var record = tryCatch(generator[method], generator, arg);
49061
+
49062
+ if ("throw" !== record.type) {
49063
+ var result = record.arg,
49064
+ value = result.value;
49065
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
49066
+ invoke("next", value, resolve, reject);
49067
+ }, function (err) {
49068
+ invoke("throw", err, resolve, reject);
49069
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
49070
+ result.value = unwrapped, resolve(result);
49071
+ }, function (error) {
49072
+ return invoke("throw", error, resolve, reject);
49073
+ });
49074
+ }
49075
+
49076
+ reject(record.arg);
49077
+ }
49078
+
49079
+ var previousPromise;
49080
+
49081
+ this._invoke = function (method, arg) {
49082
+ function callInvokeWithMethodAndArg() {
49083
+ return new PromiseImpl(function (resolve, reject) {
49084
+ invoke(method, arg, resolve, reject);
49085
+ });
49086
+ }
49087
+
49088
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
49089
+ };
49090
+ }
49091
+
49092
+ function maybeInvokeDelegate(delegate, context) {
49093
+ var method = delegate.iterator[context.method];
49094
+
49095
+ if (undefined === method) {
49096
+ if (context.delegate = null, "throw" === context.method) {
49097
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
49098
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
49099
+ }
49100
+
49101
+ return ContinueSentinel;
49102
+ }
49103
+
49104
+ var record = tryCatch(method, delegate.iterator, context.arg);
49105
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
49106
+ var info = record.arg;
49107
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
49108
+ }
49109
+
49110
+ function pushTryEntry(locs) {
49111
+ var entry = {
49112
+ tryLoc: locs[0]
49113
+ };
49114
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
49115
+ }
49116
+
49117
+ function resetTryEntry(entry) {
49118
+ var record = entry.completion || {};
49119
+ record.type = "normal", delete record.arg, entry.completion = record;
49120
+ }
49121
+
49122
+ function Context(tryLocsList) {
49123
+ this.tryEntries = [{
49124
+ tryLoc: "root"
49125
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
49126
+ }
49127
+
49128
+ function values(iterable) {
49129
+ if (iterable) {
49130
+ var iteratorMethod = iterable[iteratorSymbol];
49131
+ if (iteratorMethod) return iteratorMethod.call(iterable);
49132
+ if ("function" == typeof iterable.next) return iterable;
49133
+
49134
+ if (!isNaN(iterable.length)) {
49135
+ var i = -1,
49136
+ next = function next() {
49137
+ for (; ++i < iterable.length;) {
49138
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
49139
+ }
49140
+
49141
+ return next.value = undefined, next.done = !0, next;
49142
+ };
49143
+
49144
+ return next.next = next;
49145
+ }
49146
+ }
49147
+
49148
+ return {
49149
+ next: doneResult
49150
+ };
49151
+ }
49152
+
49153
+ function doneResult() {
49154
+ return {
49155
+ value: undefined,
49156
+ done: !0
49157
+ };
49158
+ }
49159
+
49160
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
49161
+ var ctor = "function" == typeof genFun && genFun.constructor;
49162
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
49163
+ }, exports.mark = function (genFun) {
49164
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
49165
+ }, exports.awrap = function (arg) {
49166
+ return {
49167
+ __await: arg
49168
+ };
49169
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
49170
+ return this;
49171
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
49172
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
49173
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
49174
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
49175
+ return result.done ? result.value : iter.next();
49176
+ });
49177
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
49178
+ return this;
49179
+ }), define(Gp, "toString", function () {
49180
+ return "[object Generator]";
49181
+ }), exports.keys = function (object) {
49182
+ var keys = [];
49183
+
49184
+ for (var key in object) {
49185
+ keys.push(key);
49186
+ }
49187
+
49188
+ return keys.reverse(), function next() {
49189
+ for (; keys.length;) {
49190
+ var key = keys.pop();
49191
+ if (key in object) return next.value = key, next.done = !1, next;
49192
+ }
49193
+
49194
+ return next.done = !0, next;
49195
+ };
49196
+ }, exports.values = values, Context.prototype = {
49197
+ constructor: Context,
49198
+ reset: function reset(skipTempReset) {
49199
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
49200
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
49201
+ }
49202
+ },
49203
+ stop: function stop() {
49204
+ this.done = !0;
49205
+ var rootRecord = this.tryEntries[0].completion;
49206
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
49207
+ return this.rval;
49208
+ },
49209
+ dispatchException: function dispatchException(exception) {
49210
+ if (this.done) throw exception;
49211
+ var context = this;
49212
+
49213
+ function handle(loc, caught) {
49214
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
49215
+ }
49216
+
49217
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49218
+ var entry = this.tryEntries[i],
49219
+ record = entry.completion;
49220
+ if ("root" === entry.tryLoc) return handle("end");
49221
+
49222
+ if (entry.tryLoc <= this.prev) {
49223
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
49224
+ hasFinally = hasOwn.call(entry, "finallyLoc");
49225
+
49226
+ if (hasCatch && hasFinally) {
49227
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
49228
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
49229
+ } else if (hasCatch) {
49230
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
49231
+ } else {
49232
+ if (!hasFinally) throw new Error("try statement without catch or finally");
49233
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
49234
+ }
49235
+ }
49236
+ }
49237
+ },
49238
+ abrupt: function abrupt(type, arg) {
49239
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49240
+ var entry = this.tryEntries[i];
49241
+
49242
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
49243
+ var finallyEntry = entry;
49244
+ break;
49245
+ }
49246
+ }
49247
+
49248
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
49249
+ var record = finallyEntry ? finallyEntry.completion : {};
49250
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
49251
+ },
49252
+ complete: function complete(record, afterLoc) {
49253
+ if ("throw" === record.type) throw record.arg;
49254
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
49255
+ },
49256
+ finish: function finish(finallyLoc) {
49257
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49258
+ var entry = this.tryEntries[i];
49259
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
49260
+ }
49261
+ },
49262
+ "catch": function _catch(tryLoc) {
49263
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
49264
+ var entry = this.tryEntries[i];
49265
+
49266
+ if (entry.tryLoc === tryLoc) {
49267
+ var record = entry.completion;
49268
+
49269
+ if ("throw" === record.type) {
49270
+ var thrown = record.arg;
49271
+ resetTryEntry(entry);
49272
+ }
49273
+
49274
+ return thrown;
49275
+ }
49276
+ }
49277
+
49278
+ throw new Error("illegal catch attempt");
49279
+ },
49280
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
49281
+ return this.delegate = {
49282
+ iterator: values(iterable),
49283
+ resultName: resultName,
49284
+ nextLoc: nextLoc
49285
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
49286
+ }
49287
+ }, exports;
49288
+ }
49289
+
49290
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
49291
+
49292
+ /***/ }),
49293
+
49294
+ /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
49295
+ /*!*******************************************************!*\
49296
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
49297
+ \*******************************************************/
49298
+ /*! no static exports found */
49299
+ /***/ (function(module, exports) {
49300
+
49301
+ function _typeof(obj) {
49302
+ "@babel/helpers - typeof";
49303
+
49304
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
49305
+ return typeof obj;
49306
+ } : function (obj) {
49307
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
49308
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
49309
+ }
49310
+
49311
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
49312
+
49313
+ /***/ }),
49314
+
48565
49315
  /***/ "./node_modules/@babel/runtime/regenerator/index.js":
48566
49316
  /*!**********************************************************!*\
48567
49317
  !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
@@ -48569,7 +49319,21 @@ function _unsupportedIterableToArray(o, minLen) {
48569
49319
  /*! no static exports found */
48570
49320
  /***/ (function(module, exports, __webpack_require__) {
48571
49321
 
48572
- module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
49322
+ // TODO(Babel 8): Remove this file.
49323
+
49324
+ var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
49325
+ module.exports = runtime;
49326
+
49327
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
49328
+ try {
49329
+ regeneratorRuntime = runtime;
49330
+ } catch (accidentalStrictMode) {
49331
+ if (typeof globalThis === "object") {
49332
+ globalThis.regeneratorRuntime = runtime;
49333
+ } else {
49334
+ Function("r", "regeneratorRuntime = r")(runtime);
49335
+ }
49336
+ }
48573
49337
 
48574
49338
 
48575
49339
  /***/ }),
@@ -117905,7 +118669,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117905
118669
 
117906
118670
  _this = _super.call.apply(_super, [this].concat(args));
117907
118671
 
117908
- _this.handleItemClick = function () {
118672
+ _this.onItemClick = function () {
117909
118673
  var _this$props = _this.props,
117910
118674
  onItemClick = _this$props.onItemClick,
117911
118675
  panelKey = _this$props.panelKey;
@@ -117917,10 +118681,41 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117917
118681
 
117918
118682
  _this.handleKeyPress = function (e) {
117919
118683
  if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
117920
- _this.handleItemClick();
118684
+ _this.onItemClick();
117921
118685
  }
117922
118686
  };
117923
118687
 
118688
+ _this.renderIcon = function () {
118689
+ var _this$props2 = _this.props,
118690
+ showArrow = _this$props2.showArrow,
118691
+ expandIcon = _this$props2.expandIcon,
118692
+ prefixCls = _this$props2.prefixCls,
118693
+ collapsible = _this$props2.collapsible;
118694
+
118695
+ if (!showArrow) {
118696
+ return null;
118697
+ }
118698
+
118699
+ var iconNode = typeof expandIcon === 'function' ? expandIcon(_this.props) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
118700
+ className: "arrow"
118701
+ });
118702
+ return iconNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
118703
+ className: "".concat(prefixCls, "-expand-icon"),
118704
+ onClick: collapsible === 'header' ? _this.onItemClick : null
118705
+ }, iconNode);
118706
+ };
118707
+
118708
+ _this.renderTitle = function () {
118709
+ var _this$props3 = _this.props,
118710
+ header = _this$props3.header,
118711
+ prefixCls = _this$props3.prefixCls,
118712
+ collapsible = _this$props3.collapsible;
118713
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
118714
+ className: "".concat(prefixCls, "-header-text"),
118715
+ onClick: collapsible === 'header' ? _this.onItemClick : null
118716
+ }, header);
118717
+ };
118718
+
117924
118719
  return _this;
117925
118720
  }
117926
118721
 
@@ -117932,34 +118727,26 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117932
118727
  }, {
117933
118728
  key: "render",
117934
118729
  value: function render() {
117935
- var _classNames,
117936
- _classNames2,
117937
- _this2 = this;
118730
+ var _classNames, _classNames2;
117938
118731
 
117939
- var _this$props2 = this.props,
117940
- className = _this$props2.className,
117941
- id = _this$props2.id,
117942
- style = _this$props2.style,
117943
- prefixCls = _this$props2.prefixCls,
117944
- header = _this$props2.header,
117945
- headerClass = _this$props2.headerClass,
117946
- children = _this$props2.children,
117947
- isActive = _this$props2.isActive,
117948
- showArrow = _this$props2.showArrow,
117949
- destroyInactivePanel = _this$props2.destroyInactivePanel,
117950
- accordion = _this$props2.accordion,
117951
- forceRender = _this$props2.forceRender,
117952
- openMotion = _this$props2.openMotion,
117953
- expandIcon = _this$props2.expandIcon,
117954
- extra = _this$props2.extra,
117955
- collapsible = _this$props2.collapsible;
118732
+ var _this$props4 = this.props,
118733
+ className = _this$props4.className,
118734
+ id = _this$props4.id,
118735
+ style = _this$props4.style,
118736
+ prefixCls = _this$props4.prefixCls,
118737
+ headerClass = _this$props4.headerClass,
118738
+ children = _this$props4.children,
118739
+ isActive = _this$props4.isActive,
118740
+ destroyInactivePanel = _this$props4.destroyInactivePanel,
118741
+ accordion = _this$props4.accordion,
118742
+ forceRender = _this$props4.forceRender,
118743
+ openMotion = _this$props4.openMotion,
118744
+ extra = _this$props4.extra,
118745
+ collapsible = _this$props4.collapsible;
117956
118746
  var disabled = collapsible === 'disabled';
117957
118747
  var collapsibleHeader = collapsible === 'header';
117958
- var headerCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()("".concat(prefixCls, "-header"), (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, headerClass, headerClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-header-collapsible-only"), collapsibleHeader), _classNames));
117959
- var itemCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item"), true), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item-active"), isActive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-item-disabled"), disabled), _classNames2), className);
117960
- var icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
117961
- className: "arrow"
117962
- });
118748
+ var itemCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item"), true), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item-active"), isActive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-item-disabled"), disabled), _classNames), className);
118749
+ var headerCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()("".concat(prefixCls, "-header"), (_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, headerClass, headerClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-header-collapsible-only"), collapsibleHeader), _classNames2));
117963
118750
  /** header 节点属性 */
117964
118751
 
117965
118752
  var headerProps = {
@@ -117968,21 +118755,8 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117968
118755
  onKeyPress: this.handleKeyPress
117969
118756
  };
117970
118757
 
117971
- if (showArrow && typeof expandIcon === 'function') {
117972
- icon = expandIcon(this.props);
117973
- }
117974
-
117975
- if (collapsibleHeader) {
117976
- icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
117977
- style: {
117978
- cursor: 'pointer'
117979
- },
117980
- onClick: function onClick() {
117981
- return _this2.handleItemClick();
117982
- }
117983
- }, icon);
117984
- } else {
117985
- headerProps.onClick = this.handleItemClick;
118758
+ if (!collapsibleHeader) {
118759
+ headerProps.onClick = this.onItemClick;
117986
118760
  headerProps.role = accordion ? 'tab' : 'button';
117987
118761
  headerProps.tabIndex = disabled ? -1 : 0;
117988
118762
  }
@@ -117992,10 +118766,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
117992
118766
  className: itemCls,
117993
118767
  style: style,
117994
118768
  id: id
117995
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps, showArrow && icon, collapsibleHeader ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
117996
- onClick: this.handleItemClick,
117997
- className: "".concat(prefixCls, "-header-text")
117998
- }, header) : header, ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
118769
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps, this.renderIcon(), this.renderTitle(), ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
117999
118770
  className: "".concat(prefixCls, "-extra")
118000
118771
  }, extra)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
118001
118772
  visible: isActive,
@@ -120942,15 +121713,15 @@ __webpack_require__.r(__webpack_exports__);
120942
121713
  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
120943
121714
  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
120944
121715
  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
120945
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
120946
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
120947
- /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
121716
+ /* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
121717
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
121718
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
120948
121719
  /* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
120949
121720
  /* harmony import */ var _utils_asyncUtil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/asyncUtil */ "./node_modules/rc-field-form/es/utils/asyncUtil.js");
120950
- /* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
121721
+ /* harmony import */ var _utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/cloneDeep */ "./node_modules/rc-field-form/es/utils/cloneDeep.js");
120951
121722
  /* harmony import */ var _utils_messages__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/messages */ "./node_modules/rc-field-form/es/utils/messages.js");
120952
- /* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
120953
- /* harmony import */ var _utils_cloneDeep__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/cloneDeep */ "./node_modules/rc-field-form/es/utils/cloneDeep.js");
121723
+ /* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
121724
+ /* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
120954
121725
 
120955
121726
 
120956
121727
 
@@ -121022,7 +121793,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121022
121793
  };
121023
121794
  }
121024
121795
 
121025
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
121796
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
121026
121797
  return null;
121027
121798
  };
121028
121799
 
@@ -121038,13 +121809,13 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121038
121809
  if (init) {
121039
121810
  var _this$prevWithoutPres;
121040
121811
 
121041
- var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])({}, initialValues, _this.store); // We will take consider prev form unmount fields.
121812
+ var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, initialValues, _this.store); // We will take consider prev form unmount fields.
121042
121813
  // When the field is not `preserve`, we need fill this with initialValues instead of store.
121043
121814
  // eslint-disable-next-line array-callback-return
121044
121815
 
121045
121816
  (_this$prevWithoutPres = _this.prevWithoutPreserves) === null || _this$prevWithoutPres === void 0 ? void 0 : _this$prevWithoutPres.map(function (_ref) {
121046
121817
  var namePath = _ref.key;
121047
- nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(nextStore, namePath, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(initialValues, namePath));
121818
+ nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(nextStore, namePath, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(initialValues, namePath));
121048
121819
  });
121049
121820
  _this.prevWithoutPreserves = null;
121050
121821
 
@@ -121053,10 +121824,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121053
121824
  };
121054
121825
 
121055
121826
  this.destroyForm = function () {
121056
- var prevWithoutPreserves = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
121827
+ var prevWithoutPreserves = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121057
121828
 
121058
121829
  _this.getFieldEntities(true).forEach(function (entity) {
121059
- if (!entity.isPreserve()) {
121830
+ if (!_this.isMergedPreserve(entity.isPreserve())) {
121060
121831
  prevWithoutPreserves.set(entity.getNamePath(), true);
121061
121832
  }
121062
121833
  });
@@ -121065,9 +121836,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121065
121836
  };
121066
121837
 
121067
121838
  this.getInitialValue = function (namePath) {
121068
- var initValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.initialValues, namePath); // Not cloneDeep when without `namePath`
121839
+ var initValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.initialValues, namePath); // Not cloneDeep when without `namePath`
121069
121840
 
121070
- return namePath.length ? Object(_utils_cloneDeep__WEBPACK_IMPORTED_MODULE_13__["default"])(initValue) : initValue;
121841
+ return namePath.length ? Object(_utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__["default"])(initValue) : initValue;
121071
121842
  };
121072
121843
 
121073
121844
  this.setCallbacks = function (callbacks) {
@@ -121115,7 +121886,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121115
121886
  _this.timeoutId = null;
121116
121887
 
121117
121888
  if (!_this.formHooked) {
121118
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');
121889
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');
121119
121890
  }
121120
121891
  });
121121
121892
  }
@@ -121139,7 +121910,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121139
121910
 
121140
121911
  this.getFieldsMap = function () {
121141
121912
  var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
121142
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
121913
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121143
121914
 
121144
121915
  _this.getFieldEntities(pure).forEach(function (field) {
121145
121916
  var namePath = field.getNamePath();
@@ -121157,9 +121928,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121157
121928
  var cache = _this.getFieldsMap(true);
121158
121929
 
121159
121930
  return nameList.map(function (name) {
121160
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121931
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121161
121932
  return cache.get(namePath) || {
121162
- INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name)
121933
+ INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name)
121163
121934
  };
121164
121935
  });
121165
121936
  };
@@ -121194,14 +121965,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121194
121965
  }
121195
121966
  }
121196
121967
  });
121197
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]));
121968
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]));
121198
121969
  };
121199
121970
 
121200
121971
  this.getFieldValue = function (name) {
121201
121972
  _this.warningUnhooked();
121202
121973
 
121203
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
121204
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.store, namePath);
121974
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121975
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
121205
121976
  };
121206
121977
 
121207
121978
  this.getFieldsError = function (nameList) {
@@ -121219,7 +121990,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121219
121990
  }
121220
121991
 
121221
121992
  return {
121222
- name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(nameList[index]),
121993
+ name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(nameList[index]),
121223
121994
  errors: [],
121224
121995
  warnings: []
121225
121996
  };
@@ -121229,7 +122000,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121229
122000
  this.getFieldError = function (name) {
121230
122001
  _this.warningUnhooked();
121231
122002
 
121232
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122003
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121233
122004
 
121234
122005
  var fieldError = _this.getFieldsError([namePath])[0];
121235
122006
 
@@ -121239,7 +122010,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121239
122010
  this.getFieldWarning = function (name) {
121240
122011
  _this.warningUnhooked();
121241
122012
 
121242
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122013
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121243
122014
 
121244
122015
  var fieldError = _this.getFieldsError([namePath])[0];
121245
122016
 
@@ -121262,14 +122033,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121262
122033
  namePathList = null;
121263
122034
  } else if (args.length === 1) {
121264
122035
  if (Array.isArray(arg0)) {
121265
- namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122036
+ namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121266
122037
  isAllFieldsTouched = false;
121267
122038
  } else {
121268
122039
  namePathList = null;
121269
122040
  isAllFieldsTouched = arg0;
121270
122041
  }
121271
122042
  } else {
121272
- namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122043
+ namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121273
122044
  isAllFieldsTouched = arg1;
121274
122045
  }
121275
122046
 
@@ -121285,7 +122056,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121285
122056
  } // Generate a nest tree for validate
121286
122057
 
121287
122058
 
121288
- var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122059
+ var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121289
122060
  namePathList.forEach(function (shortNamePath) {
121290
122061
  map.set(shortNamePath, []);
121291
122062
  });
@@ -121331,10 +122102,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121331
122102
  });
121332
122103
  }
121333
122104
 
121334
- var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122105
+ var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121335
122106
  return fieldEntities.some(function (testField) {
121336
122107
  var fieldNamePath = testField.getNamePath();
121337
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
122108
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
121338
122109
  });
121339
122110
  };
121340
122111
 
@@ -121347,7 +122118,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121347
122118
  this.resetWithFieldInitialValue = function () {
121348
122119
  var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
121349
122120
  // Create cache
121350
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122121
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121351
122122
 
121352
122123
  var fieldEntities = _this.getFieldEntities(true);
121353
122124
 
@@ -121376,19 +122147,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121376
122147
 
121377
122148
  if (formInitialValue !== undefined) {
121378
122149
  // Warning if conflict with form initialValues and do not modify value
121379
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
122150
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
121380
122151
  } else {
121381
122152
  var records = cache.get(namePath);
121382
122153
 
121383
122154
  if (records && records.size > 1) {
121384
122155
  // Warning if multiple field set `initialValue`and do not modify value
121385
- Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
122156
+ Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
121386
122157
  } else if (records) {
121387
122158
  var originValue = _this.getFieldValue(namePath); // Set `initialValue`
121388
122159
 
121389
122160
 
121390
122161
  if (!info.skipExist || originValue === undefined) {
121391
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records)[0].value));
122162
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records)[0].value));
121392
122163
  }
121393
122164
  }
121394
122165
  }
@@ -121426,7 +122197,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121426
122197
  var prevStore = _this.store;
121427
122198
 
121428
122199
  if (!nameList) {
121429
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])({}, _this.initialValues));
122200
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, _this.initialValues));
121430
122201
 
121431
122202
  _this.resetWithFieldInitialValue();
121432
122203
 
@@ -121440,11 +122211,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121440
122211
  } // Reset by `nameList`
121441
122212
 
121442
122213
 
121443
- var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]);
122214
+ var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
121444
122215
  namePathList.forEach(function (namePath) {
121445
122216
  var initialValue = _this.getInitialValue(namePath);
121446
122217
 
121447
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, initialValue));
122218
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
121448
122219
  });
121449
122220
 
121450
122221
  _this.resetWithFieldInitialValue({
@@ -121468,11 +122239,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121468
122239
  errors = fieldData.errors,
121469
122240
  data = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(fieldData, _excluded);
121470
122241
 
121471
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122242
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121472
122243
  namePathList.push(namePath); // Value
121473
122244
 
121474
122245
  if ('value' in data) {
121475
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, data.value));
122246
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, data.value));
121476
122247
  }
121477
122248
 
121478
122249
  _this.notifyObservers(prevStore, [namePath], {
@@ -121509,14 +122280,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121509
122280
 
121510
122281
  if (initialValue !== undefined) {
121511
122282
  var namePath = entity.getNamePath();
121512
- var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getValue"])(_this.store, namePath);
122283
+ var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
121513
122284
 
121514
122285
  if (prevValue === undefined) {
121515
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, initialValue));
122286
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
121516
122287
  }
121517
122288
  }
121518
122289
  };
121519
122290
 
122291
+ this.isMergedPreserve = function (fieldPreserve) {
122292
+ var mergedPreserve = fieldPreserve !== undefined ? fieldPreserve : _this.preserve;
122293
+ return mergedPreserve !== null && mergedPreserve !== void 0 ? mergedPreserve : true;
122294
+ };
122295
+
121520
122296
  this.registerField = function (entity) {
121521
122297
  _this.fieldEntities.push(entity);
121522
122298
 
@@ -121546,19 +122322,17 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121546
122322
  return item !== entity;
121547
122323
  }); // Clean up store value if not preserve
121548
122324
 
121549
- var mergedPreserve = preserve !== undefined ? preserve : _this.preserve;
121550
-
121551
- if (mergedPreserve === false && (!isListField || subNamePath.length > 1)) {
122325
+ if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
121552
122326
  var defaultValue = isListField ? undefined : _this.getInitialValue(namePath);
121553
122327
 
121554
122328
  if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function (field) {
121555
122329
  return (// Only reset when no namePath exist
121556
- !Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["matchNamePath"])(field.getNamePath(), namePath)
122330
+ !Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["matchNamePath"])(field.getNamePath(), namePath)
121557
122331
  );
121558
122332
  })) {
121559
122333
  var _prevStore = _this.store;
121560
122334
 
121561
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_prevStore, namePath, defaultValue, true)); // Notify that field is unmount
122335
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_prevStore, namePath, defaultValue, true)); // Notify that field is unmount
121562
122336
 
121563
122337
 
121564
122338
  _this.notifyObservers(_prevStore, [namePath], {
@@ -121634,10 +122408,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121634
122408
  };
121635
122409
 
121636
122410
  this.updateValue = function (name, value) {
121637
- var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(name);
122411
+ var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
121638
122412
  var prevStore = _this.store;
121639
122413
 
121640
- _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValue"])(_this.store, namePath, value));
122414
+ _this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, value));
121641
122415
 
121642
122416
  _this.notifyObservers(prevStore, [namePath], {
121643
122417
  type: 'valueUpdate',
@@ -121653,7 +122427,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121653
122427
  var onValuesChange = _this.callbacks.onValuesChange;
121654
122428
 
121655
122429
  if (onValuesChange) {
121656
- var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["cloneByNamePathList"])(_this.store, [namePath]);
122430
+ var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, [namePath]);
121657
122431
  onValuesChange(changedValues, _this.getFieldsValue());
121658
122432
  }
121659
122433
 
@@ -121666,7 +122440,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121666
122440
  var prevStore = _this.store;
121667
122441
 
121668
122442
  if (store) {
121669
- var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["setValues"])(_this.store, store);
122443
+ var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])(_this.store, store);
121670
122444
 
121671
122445
  _this.updateStore(nextStore);
121672
122446
  }
@@ -121682,7 +122456,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121682
122456
  this.getDependencyChildrenFields = function (rootNamePath) {
121683
122457
  var children = new Set();
121684
122458
  var childrenFields = [];
121685
- var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122459
+ var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121686
122460
  /**
121687
122461
  * Generate maps
121688
122462
  * Can use cache to save perf if user report performance issue with this
@@ -121691,7 +122465,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121691
122465
  _this.getFieldEntities().forEach(function (field) {
121692
122466
  var dependencies = field.props.dependencies;
121693
122467
  (dependencies || []).forEach(function (dependency) {
121694
- var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"])(dependency);
122468
+ var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(dependency);
121695
122469
  dependencies2fields.update(dependencyNamePath, function () {
121696
122470
  var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
121697
122471
  fields.add(field);
@@ -121730,7 +122504,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121730
122504
 
121731
122505
 
121732
122506
  if (filedErrors) {
121733
- var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_10__["default"]();
122507
+ var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
121734
122508
  filedErrors.forEach(function (_ref4) {
121735
122509
  var name = _ref4.name,
121736
122510
  errors = _ref4.errors;
@@ -121744,7 +122518,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121744
122518
 
121745
122519
  var changedFields = fields.filter(function (_ref5) {
121746
122520
  var fieldName = _ref5.name;
121747
- return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldName);
122521
+ return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldName);
121748
122522
  });
121749
122523
  onFieldsChange(changedFields, fields);
121750
122524
  }
@@ -121754,7 +122528,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121754
122528
  _this.warningUnhooked();
121755
122529
 
121756
122530
  var provideNameList = !!nameList;
121757
- var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["getNamePath"]) : []; // Collect result in promise list
122531
+ var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]) : []; // Collect result in promise list
121758
122532
 
121759
122533
  var promiseList = [];
121760
122534
 
@@ -121788,7 +122562,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121788
122562
 
121789
122563
  var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
121790
122564
 
121791
- if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_12__["containsNamePath"])(namePathList, fieldNamePath)) {
122565
+ if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath)) {
121792
122566
  var promise = field.validateRules(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
121793
122567
  validateMessages: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _utils_messages__WEBPACK_IMPORTED_MODULE_11__["defaultValidateMessages"]), _this.validateMessages)
121794
122568
  }, options)); // Wrap promise with field
@@ -121897,9 +122671,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
121897
122671
  });
121898
122672
 
121899
122673
  function useForm(form) {
121900
- var formRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
122674
+ var formRef = react__WEBPACK_IMPORTED_MODULE_7__["useRef"]();
121901
122675
 
121902
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_6__["useState"]({}),
122676
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_7__["useState"]({}),
121903
122677
  _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
121904
122678
  forceUpdate = _React$useState2[1];
121905
122679
 
@@ -122310,8 +123084,7 @@ __webpack_require__.r(__webpack_exports__);
122310
123084
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateRules", function() { return validateRules; });
122311
123085
  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
122312
123086
  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
122313
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
122314
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);
123087
+ /* harmony import */ var _babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");
122315
123088
  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
122316
123089
  /* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
122317
123090
  /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
@@ -122356,9 +123129,9 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
122356
123129
 
122357
123130
 
122358
123131
  function _validateRule() {
122359
- _validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(name, value, rule, options, messageVariables) {
123132
+ _validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee2(name, value, rule, options, messageVariables) {
122360
123133
  var cloneRule, originValidator, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
122361
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) {
123134
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee2$(_context2) {
122362
123135
  while (1) {
122363
123136
  switch (_context2.prev = _context2.next) {
122364
123137
  case 0:
@@ -122534,9 +123307,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
122534
123307
  if (validateFirst === true) {
122535
123308
  // >>>>> Validate by serialization
122536
123309
  summaryPromise = new Promise( /*#__PURE__*/function () {
122537
- var _ref3 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(resolve, reject) {
123310
+ var _ref3 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee(resolve, reject) {
122538
123311
  var i, rule, errors;
122539
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {
123312
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee$(_context) {
122540
123313
  while (1) {
122541
123314
  switch (_context.prev = _context.next) {
122542
123315
  case 0:
@@ -122615,8 +123388,8 @@ function finishOnAllFailed(_x8) {
122615
123388
  }
122616
123389
 
122617
123390
  function _finishOnAllFailed() {
122618
- _finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3(rulePromises) {
122619
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) {
123391
+ _finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee3(rulePromises) {
123392
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee3$(_context3) {
122620
123393
  while (1) {
122621
123394
  switch (_context3.prev = _context3.next) {
122622
123395
  case 0:
@@ -122643,9 +123416,9 @@ function finishOnFirstFailed(_x9) {
122643
123416
  }
122644
123417
 
122645
123418
  function _finishOnFirstFailed() {
122646
- _finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4(rulePromises) {
123419
+ _finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().mark(function _callee4(rulePromises) {
122647
123420
  var count;
122648
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) {
123421
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee4$(_context4) {
122649
123422
  while (1) {
122650
123423
  switch (_context4.prev = _context4.next) {
122651
123424
  case 0:
@@ -128769,7 +129542,7 @@ function getAccessibilityPath(item) {
128769
129542
  return path;
128770
129543
  }
128771
129544
 
128772
- var NodeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](function (props, ref) {
129545
+ var RefNodeList = function RefNodeList(props, ref) {
128773
129546
  var prefixCls = props.prefixCls,
128774
129547
  data = props.data,
128775
129548
  selectable = props.selectable,
@@ -128838,16 +129611,11 @@ var NodeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](fun
128838
129611
  var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__["useState"](null),
128839
129612
  _React$useState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState9, 2),
128840
129613
  motionType = _React$useState10[0],
128841
- setMotionType = _React$useState10[1]; // When motion end but data change, this will makes data back to previous one
128842
-
128843
-
128844
- var dataRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](data);
128845
- dataRef.current = data;
129614
+ setMotionType = _React$useState10[1];
128846
129615
 
128847
129616
  function onMotionEnd() {
128848
- var latestData = dataRef.current;
128849
- setPrevData(latestData);
128850
- setTransitionData(latestData);
129617
+ setPrevData(data);
129618
+ setTransitionData(data);
128851
129619
  setTransitionRange([]);
128852
129620
  setMotionType(null);
128853
129621
  onListChangeEnd();
@@ -128989,7 +129757,9 @@ var NodeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](fun
128989
129757
  }
128990
129758
  }));
128991
129759
  }));
128992
- });
129760
+ };
129761
+
129762
+ var NodeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](RefNodeList);
128993
129763
  NodeList.displayName = 'NodeList';
128994
129764
  /* harmony default export */ __webpack_exports__["default"] = (NodeList);
128995
129765
 
@@ -129406,56 +130176,24 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129406
130176
  _this.currentMouseOverDroppableNodeKey = null;
129407
130177
  };
129408
130178
 
129409
- _this.triggerExpandActionExpand = function (e, treeNode) {
129410
- var _this$state5 = _this.state,
129411
- expandedKeys = _this$state5.expandedKeys,
129412
- flattenNodes = _this$state5.flattenNodes;
129413
- var expanded = treeNode.expanded,
129414
- key = treeNode.key;
129415
- var node = flattenNodes.filter(function (nodeItem) {
129416
- return nodeItem.key === key;
129417
- })[0];
129418
- var eventNode = Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_17__["convertNodePropsToEventData"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_17__["getTreeNodeProps"])(key, _this.getTreeNodeRequiredProps())), {}, {
129419
- data: node.data
129420
- }));
129421
-
129422
- _this.setExpandedKeys(expanded ? Object(_util__WEBPACK_IMPORTED_MODULE_16__["arrDel"])(expandedKeys, key) : Object(_util__WEBPACK_IMPORTED_MODULE_16__["arrAdd"])(expandedKeys, key));
129423
-
129424
- _this.onNodeExpand(e, eventNode);
129425
- };
129426
-
129427
130179
  _this.onNodeClick = function (e, treeNode) {
129428
- var _this$props3 = _this.props,
129429
- onClick = _this$props3.onClick,
129430
- expandAction = _this$props3.expandAction;
129431
-
129432
- if (expandAction === 'click') {
129433
- _this.triggerExpandActionExpand(e, treeNode);
129434
- }
129435
-
130180
+ var onClick = _this.props.onClick;
129436
130181
  onClick === null || onClick === void 0 ? void 0 : onClick(e, treeNode);
129437
130182
  };
129438
130183
 
129439
130184
  _this.onNodeDoubleClick = function (e, treeNode) {
129440
- var _this$props4 = _this.props,
129441
- onDoubleClick = _this$props4.onDoubleClick,
129442
- expandAction = _this$props4.expandAction;
129443
-
129444
- if (expandAction === 'doubleClick') {
129445
- _this.triggerExpandActionExpand(e, treeNode);
129446
- }
129447
-
130185
+ var onDoubleClick = _this.props.onDoubleClick;
129448
130186
  onDoubleClick === null || onDoubleClick === void 0 ? void 0 : onDoubleClick(e, treeNode);
129449
130187
  };
129450
130188
 
129451
130189
  _this.onNodeSelect = function (e, treeNode) {
129452
130190
  var selectedKeys = _this.state.selectedKeys;
129453
- var _this$state6 = _this.state,
129454
- keyEntities = _this$state6.keyEntities,
129455
- fieldNames = _this$state6.fieldNames;
129456
- var _this$props5 = _this.props,
129457
- onSelect = _this$props5.onSelect,
129458
- multiple = _this$props5.multiple;
130191
+ var _this$state5 = _this.state,
130192
+ keyEntities = _this$state5.keyEntities,
130193
+ fieldNames = _this$state5.fieldNames;
130194
+ var _this$props3 = _this.props,
130195
+ onSelect = _this$props3.onSelect,
130196
+ multiple = _this$props3.multiple;
129459
130197
  var selected = treeNode.selected;
129460
130198
  var key = treeNode[fieldNames.key];
129461
130199
  var targetSelected = !selected; // Update selected keys
@@ -129491,13 +130229,13 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129491
130229
  };
129492
130230
 
129493
130231
  _this.onNodeCheck = function (e, treeNode, checked) {
129494
- var _this$state7 = _this.state,
129495
- keyEntities = _this$state7.keyEntities,
129496
- oriCheckedKeys = _this$state7.checkedKeys,
129497
- oriHalfCheckedKeys = _this$state7.halfCheckedKeys;
129498
- var _this$props6 = _this.props,
129499
- checkStrictly = _this$props6.checkStrictly,
129500
- onCheck = _this$props6.onCheck;
130232
+ var _this$state6 = _this.state,
130233
+ keyEntities = _this$state6.keyEntities,
130234
+ oriCheckedKeys = _this$state6.checkedKeys,
130235
+ oriHalfCheckedKeys = _this$state6.halfCheckedKeys;
130236
+ var _this$props4 = _this.props,
130237
+ checkStrictly = _this$props4.checkStrictly,
130238
+ onCheck = _this$props4.onCheck;
129501
130239
  var key = treeNode.key; // Prepare trigger arguments
129502
130240
 
129503
130241
  var checkedObj;
@@ -129583,9 +130321,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129583
130321
  loadedKeys = _ref$loadedKeys === void 0 ? [] : _ref$loadedKeys,
129584
130322
  _ref$loadingKeys = _ref.loadingKeys,
129585
130323
  loadingKeys = _ref$loadingKeys === void 0 ? [] : _ref$loadingKeys;
129586
- var _this$props7 = _this.props,
129587
- loadData = _this$props7.loadData,
129588
- onLoad = _this$props7.onLoad;
130324
+ var _this$props5 = _this.props,
130325
+ loadData = _this$props5.loadData,
130326
+ onLoad = _this$props5.onLoad;
129589
130327
 
129590
130328
  if (!loadData || loadedKeys.indexOf(key) !== -1 || loadingKeys.indexOf(key) !== -1) {
129591
130329
  return null;
@@ -129706,16 +130444,16 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129706
130444
  };
129707
130445
 
129708
130446
  _this.getTreeNodeRequiredProps = function () {
129709
- var _this$state8 = _this.state,
129710
- expandedKeys = _this$state8.expandedKeys,
129711
- selectedKeys = _this$state8.selectedKeys,
129712
- loadedKeys = _this$state8.loadedKeys,
129713
- loadingKeys = _this$state8.loadingKeys,
129714
- checkedKeys = _this$state8.checkedKeys,
129715
- halfCheckedKeys = _this$state8.halfCheckedKeys,
129716
- dragOverNodeKey = _this$state8.dragOverNodeKey,
129717
- dropPosition = _this$state8.dropPosition,
129718
- keyEntities = _this$state8.keyEntities;
130447
+ var _this$state7 = _this.state,
130448
+ expandedKeys = _this$state7.expandedKeys,
130449
+ selectedKeys = _this$state7.selectedKeys,
130450
+ loadedKeys = _this$state7.loadedKeys,
130451
+ loadingKeys = _this$state7.loadingKeys,
130452
+ checkedKeys = _this$state7.checkedKeys,
130453
+ halfCheckedKeys = _this$state7.halfCheckedKeys,
130454
+ dragOverNodeKey = _this$state7.dragOverNodeKey,
130455
+ dropPosition = _this$state7.dropPosition,
130456
+ keyEntities = _this$state7.keyEntities;
129719
130457
  return {
129720
130458
  expandedKeys: expandedKeys || [],
129721
130459
  selectedKeys: selectedKeys || [],
@@ -129730,9 +130468,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129730
130468
  };
129731
130469
 
129732
130470
  _this.setExpandedKeys = function (expandedKeys) {
129733
- var _this$state9 = _this.state,
129734
- treeData = _this$state9.treeData,
129735
- fieldNames = _this$state9.fieldNames;
130471
+ var _this$state8 = _this.state,
130472
+ treeData = _this$state8.treeData,
130473
+ fieldNames = _this$state8.fieldNames;
129736
130474
  var flattenNodes = Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_17__["flattenTreeData"])(treeData, expandedKeys, fieldNames);
129737
130475
 
129738
130476
  _this.setUncontrolledState({
@@ -129743,12 +130481,12 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129743
130481
 
129744
130482
  _this.onNodeExpand = function (e, treeNode) {
129745
130483
  var expandedKeys = _this.state.expandedKeys;
129746
- var _this$state10 = _this.state,
129747
- listChanging = _this$state10.listChanging,
129748
- fieldNames = _this$state10.fieldNames;
129749
- var _this$props8 = _this.props,
129750
- onExpand = _this$props8.onExpand,
129751
- loadData = _this$props8.loadData;
130484
+ var _this$state9 = _this.state,
130485
+ listChanging = _this$state9.listChanging,
130486
+ fieldNames = _this$state9.fieldNames;
130487
+ var _this$props6 = _this.props,
130488
+ onExpand = _this$props6.onExpand,
130489
+ loadData = _this$props6.loadData;
129752
130490
  var expanded = treeNode.expanded;
129753
130491
  var key = treeNode[fieldNames.key]; // Do nothing when motion is in progress
129754
130492
 
@@ -129832,9 +130570,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129832
130570
  };
129833
130571
 
129834
130572
  _this.getActiveItem = function () {
129835
- var _this$state11 = _this.state,
129836
- activeKey = _this$state11.activeKey,
129837
- flattenNodes = _this$state11.flattenNodes;
130573
+ var _this$state10 = _this.state,
130574
+ activeKey = _this$state10.activeKey,
130575
+ flattenNodes = _this$state10.flattenNodes;
129838
130576
 
129839
130577
  if (activeKey === null) {
129840
130578
  return null;
@@ -129847,9 +130585,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129847
130585
  };
129848
130586
 
129849
130587
  _this.offsetActiveKey = function (offset) {
129850
- var _this$state12 = _this.state,
129851
- flattenNodes = _this$state12.flattenNodes,
129852
- activeKey = _this$state12.activeKey;
130588
+ var _this$state11 = _this.state,
130589
+ flattenNodes = _this$state11.flattenNodes,
130590
+ activeKey = _this$state11.activeKey;
129853
130591
  var index = flattenNodes.findIndex(function (_ref3) {
129854
130592
  var key = _ref3.key;
129855
130593
  return key === activeKey;
@@ -129872,14 +130610,14 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129872
130610
  };
129873
130611
 
129874
130612
  _this.onKeyDown = function (event) {
129875
- var _this$state13 = _this.state,
129876
- activeKey = _this$state13.activeKey,
129877
- expandedKeys = _this$state13.expandedKeys,
129878
- checkedKeys = _this$state13.checkedKeys;
129879
- var _this$props9 = _this.props,
129880
- onKeyDown = _this$props9.onKeyDown,
129881
- checkable = _this$props9.checkable,
129882
- selectable = _this$props9.selectable; // >>>>>>>>>> Direction
130613
+ var _this$state12 = _this.state,
130614
+ activeKey = _this$state12.activeKey,
130615
+ expandedKeys = _this$state12.expandedKeys,
130616
+ checkedKeys = _this$state12.checkedKeys;
130617
+ var _this$props7 = _this.props,
130618
+ onKeyDown = _this$props7.onKeyDown,
130619
+ checkable = _this$props7.checkable,
130620
+ selectable = _this$props7.selectable; // >>>>>>>>>> Direction
129883
130621
 
129884
130622
  switch (event.which) {
129885
130623
  case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].UP:
@@ -129991,7 +130729,6 @@ var Tree = /*#__PURE__*/function (_React$Component) {
129991
130729
  Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__["default"])(Tree, [{
129992
130730
  key: "componentDidMount",
129993
130731
  value: function componentDidMount() {
129994
- this.destroyed = false;
129995
130732
  this.onUpdated();
129996
130733
  }
129997
130734
  }, {
@@ -130040,47 +130777,45 @@ var Tree = /*#__PURE__*/function (_React$Component) {
130040
130777
  value: function render() {
130041
130778
  var _classNames;
130042
130779
 
130043
- var _this$state14 = this.state,
130044
- focused = _this$state14.focused,
130045
- flattenNodes = _this$state14.flattenNodes,
130046
- keyEntities = _this$state14.keyEntities,
130047
- draggingNodeKey = _this$state14.draggingNodeKey,
130048
- activeKey = _this$state14.activeKey,
130049
- dropLevelOffset = _this$state14.dropLevelOffset,
130050
- dropContainerKey = _this$state14.dropContainerKey,
130051
- dropTargetKey = _this$state14.dropTargetKey,
130052
- dropPosition = _this$state14.dropPosition,
130053
- dragOverNodeKey = _this$state14.dragOverNodeKey,
130054
- indent = _this$state14.indent;
130055
- var _this$props10 = this.props,
130056
- prefixCls = _this$props10.prefixCls,
130057
- className = _this$props10.className,
130058
- style = _this$props10.style,
130059
- showLine = _this$props10.showLine,
130060
- focusable = _this$props10.focusable,
130061
- _this$props10$tabInde = _this$props10.tabIndex,
130062
- tabIndex = _this$props10$tabInde === void 0 ? 0 : _this$props10$tabInde,
130063
- selectable = _this$props10.selectable,
130064
- showIcon = _this$props10.showIcon,
130065
- icon = _this$props10.icon,
130066
- switcherIcon = _this$props10.switcherIcon,
130067
- draggable = _this$props10.draggable,
130068
- checkable = _this$props10.checkable,
130069
- checkStrictly = _this$props10.checkStrictly,
130070
- disabled = _this$props10.disabled,
130071
- motion = _this$props10.motion,
130072
- loadData = _this$props10.loadData,
130073
- filterTreeNode = _this$props10.filterTreeNode,
130074
- height = _this$props10.height,
130075
- itemHeight = _this$props10.itemHeight,
130076
- virtual = _this$props10.virtual,
130077
- titleRender = _this$props10.titleRender,
130078
- dropIndicatorRender = _this$props10.dropIndicatorRender,
130079
- onContextMenu = _this$props10.onContextMenu,
130080
- onScroll = _this$props10.onScroll,
130081
- direction = _this$props10.direction,
130082
- rootClassName = _this$props10.rootClassName,
130083
- rootStyle = _this$props10.rootStyle;
130780
+ var _this$state13 = this.state,
130781
+ focused = _this$state13.focused,
130782
+ flattenNodes = _this$state13.flattenNodes,
130783
+ keyEntities = _this$state13.keyEntities,
130784
+ draggingNodeKey = _this$state13.draggingNodeKey,
130785
+ activeKey = _this$state13.activeKey,
130786
+ dropLevelOffset = _this$state13.dropLevelOffset,
130787
+ dropContainerKey = _this$state13.dropContainerKey,
130788
+ dropTargetKey = _this$state13.dropTargetKey,
130789
+ dropPosition = _this$state13.dropPosition,
130790
+ dragOverNodeKey = _this$state13.dragOverNodeKey,
130791
+ indent = _this$state13.indent;
130792
+ var _this$props8 = this.props,
130793
+ prefixCls = _this$props8.prefixCls,
130794
+ className = _this$props8.className,
130795
+ style = _this$props8.style,
130796
+ showLine = _this$props8.showLine,
130797
+ focusable = _this$props8.focusable,
130798
+ _this$props8$tabIndex = _this$props8.tabIndex,
130799
+ tabIndex = _this$props8$tabIndex === void 0 ? 0 : _this$props8$tabIndex,
130800
+ selectable = _this$props8.selectable,
130801
+ showIcon = _this$props8.showIcon,
130802
+ icon = _this$props8.icon,
130803
+ switcherIcon = _this$props8.switcherIcon,
130804
+ draggable = _this$props8.draggable,
130805
+ checkable = _this$props8.checkable,
130806
+ checkStrictly = _this$props8.checkStrictly,
130807
+ disabled = _this$props8.disabled,
130808
+ motion = _this$props8.motion,
130809
+ loadData = _this$props8.loadData,
130810
+ filterTreeNode = _this$props8.filterTreeNode,
130811
+ height = _this$props8.height,
130812
+ itemHeight = _this$props8.itemHeight,
130813
+ virtual = _this$props8.virtual,
130814
+ titleRender = _this$props8.titleRender,
130815
+ dropIndicatorRender = _this$props8.dropIndicatorRender,
130816
+ onContextMenu = _this$props8.onContextMenu,
130817
+ onScroll = _this$props8.onScroll,
130818
+ direction = _this$props8.direction;
130084
130819
  var domProps = Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_13__["default"])(this.props, {
130085
130820
  aria: true,
130086
130821
  data: true
@@ -130142,8 +130877,7 @@ var Tree = /*#__PURE__*/function (_React$Component) {
130142
130877
  }
130143
130878
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
130144
130879
  role: "tree",
130145
- className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, className, rootClassName, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-show-line"), showLine), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-focused"), focused), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-active-focused"), activeKey !== null), _classNames)),
130146
- style: rootStyle
130880
+ className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-show-line"), showLine), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-focused"), focused), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-active-focused"), activeKey !== null), _classNames))
130147
130881
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_NodeList__WEBPACK_IMPORTED_MODULE_18__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
130148
130882
  ref: this.listRef,
130149
130883
  prefixCls: prefixCls,
@@ -130313,8 +131047,7 @@ Tree.defaultProps = {
130313
131047
  dropIndicatorRender: _DropIndicator__WEBPACK_IMPORTED_MODULE_21__["default"],
130314
131048
  allowDrop: function allowDrop() {
130315
131049
  return true;
130316
- },
130317
- expandAction: false
131050
+ }
130318
131051
  };
130319
131052
  Tree.TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_19__["default"];
130320
131053
  /* harmony default export */ __webpack_exports__["default"] = (Tree);
@@ -132072,7 +132805,8 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
132072
132805
  popupStyle = _props$mobile.popupStyle,
132073
132806
  _props$mobile$popupMo = _props$mobile.popupMotion,
132074
132807
  popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
132075
- popupRender = _props$mobile.popupRender;
132808
+ popupRender = _props$mobile.popupRender,
132809
+ onClick = props.onClick;
132076
132810
  var elementRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](); // ========================= Refs =========================
132077
132811
 
132078
132812
  react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
@@ -132112,6 +132846,7 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
132112
132846
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
132113
132847
  ref: motionRef,
132114
132848
  className: mergedClassName,
132849
+ onClick: onClick,
132115
132850
  style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
132116
132851
  }, childNode);
132117
132852
  });
@@ -132173,7 +132908,8 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132173
132908
  onMouseEnter = props.onMouseEnter,
132174
132909
  onMouseLeave = props.onMouseLeave,
132175
132910
  onMouseDown = props.onMouseDown,
132176
- onTouchStart = props.onTouchStart;
132911
+ onTouchStart = props.onTouchStart,
132912
+ onClick = props.onClick;
132177
132913
  var alignRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
132178
132914
  var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
132179
132915
 
@@ -132354,6 +133090,7 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
132354
133090
  onMouseLeave: onMouseLeave,
132355
133091
  onMouseDownCapture: onMouseDown,
132356
133092
  onTouchStartCapture: onTouchStart,
133093
+ onClick: onClick,
132357
133094
  style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
132358
133095
  }, childNode));
132359
133096
  });
@@ -132502,8 +133239,7 @@ __webpack_require__.r(__webpack_exports__);
132502
133239
 
132503
133240
  "use strict";
132504
133241
  __webpack_require__.r(__webpack_exports__);
132505
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
132506
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
133242
+ /* harmony import */ var _babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");
132507
133243
  /* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
132508
133244
  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
132509
133245
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
@@ -132569,9 +133305,9 @@ var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
132569
133305
  }
132570
133306
 
132571
133307
  if (status) {
132572
- rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
133308
+ rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {
132573
133309
  var index, nextStatus;
132574
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
133310
+ return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {
132575
133311
  while (1) {
132576
133312
  switch (_context.prev = _context.next) {
132577
133313
  case 0:
@@ -132930,7 +133666,8 @@ function generateTrigger(PortalComponent) {
132930
133666
  stretch = _this$props2.stretch,
132931
133667
  alignPoint = _this$props2.alignPoint,
132932
133668
  mobile = _this$props2.mobile,
132933
- forceRender = _this$props2.forceRender;
133669
+ forceRender = _this$props2.forceRender,
133670
+ onPopupClick = _this$props2.onPopupClick;
132934
133671
  var _this$state = _this.state,
132935
133672
  popupVisible = _this$state.popupVisible,
132936
133673
  point = _this$state.point;
@@ -132972,7 +133709,8 @@ function generateTrigger(PortalComponent) {
132972
133709
  ref: _this.popupRef,
132973
133710
  motion: popupMotion,
132974
133711
  mobile: mobile,
132975
- forceRender: forceRender
133712
+ forceRender: forceRender,
133713
+ onClick: onPopupClick
132976
133714
  }), typeof popup === 'function' ? popup() : popup);
132977
133715
  };
132978
133716
 
@@ -133560,7 +134298,7 @@ __webpack_require__.r(__webpack_exports__);
133560
134298
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toArray; });
133561
134299
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
133562
134300
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
133563
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
134301
+ /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
133564
134302
  /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
133565
134303
 
133566
134304
 
@@ -135576,7 +136314,7 @@ __webpack_require__.r(__webpack_exports__);
135576
136314
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useComposeRef", function() { return useComposeRef; });
135577
136315
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportRef", function() { return supportRef; });
135578
136316
  /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
135579
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
136317
+ /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
135580
136318
  /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
135581
136319
  /* harmony import */ var _hooks_useMemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/useMemo */ "./node_modules/rc-util/es/hooks/useMemo.js");
135582
136320
 
@@ -135873,6 +136611,216 @@ function noteOnce(valid, message) {
135873
136611
  /* harmony default export */ __webpack_exports__["default"] = (warningOnce);
135874
136612
  /* eslint-enable */
135875
136613
 
136614
+ /***/ }),
136615
+
136616
+ /***/ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js":
136617
+ /*!********************************************************************************!*\
136618
+ !*** ./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js ***!
136619
+ \********************************************************************************/
136620
+ /*! no static exports found */
136621
+ /***/ (function(module, exports, __webpack_require__) {
136622
+
136623
+ "use strict";
136624
+ /** @license React v16.13.1
136625
+ * react-is.development.js
136626
+ *
136627
+ * Copyright (c) Facebook, Inc. and its affiliates.
136628
+ *
136629
+ * This source code is licensed under the MIT license found in the
136630
+ * LICENSE file in the root directory of this source tree.
136631
+ */
136632
+
136633
+
136634
+
136635
+
136636
+
136637
+ if (true) {
136638
+ (function() {
136639
+ 'use strict';
136640
+
136641
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
136642
+ // nor polyfill, then a plain number is used for performance.
136643
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
136644
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
136645
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
136646
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
136647
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
136648
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
136649
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
136650
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
136651
+ // (unstable) APIs that have been removed. Can we remove the symbols?
136652
+
136653
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
136654
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
136655
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
136656
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
136657
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
136658
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
136659
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
136660
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
136661
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
136662
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
136663
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
136664
+
136665
+ function isValidElementType(type) {
136666
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
136667
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
136668
+ }
136669
+
136670
+ function typeOf(object) {
136671
+ if (typeof object === 'object' && object !== null) {
136672
+ var $$typeof = object.$$typeof;
136673
+
136674
+ switch ($$typeof) {
136675
+ case REACT_ELEMENT_TYPE:
136676
+ var type = object.type;
136677
+
136678
+ switch (type) {
136679
+ case REACT_ASYNC_MODE_TYPE:
136680
+ case REACT_CONCURRENT_MODE_TYPE:
136681
+ case REACT_FRAGMENT_TYPE:
136682
+ case REACT_PROFILER_TYPE:
136683
+ case REACT_STRICT_MODE_TYPE:
136684
+ case REACT_SUSPENSE_TYPE:
136685
+ return type;
136686
+
136687
+ default:
136688
+ var $$typeofType = type && type.$$typeof;
136689
+
136690
+ switch ($$typeofType) {
136691
+ case REACT_CONTEXT_TYPE:
136692
+ case REACT_FORWARD_REF_TYPE:
136693
+ case REACT_LAZY_TYPE:
136694
+ case REACT_MEMO_TYPE:
136695
+ case REACT_PROVIDER_TYPE:
136696
+ return $$typeofType;
136697
+
136698
+ default:
136699
+ return $$typeof;
136700
+ }
136701
+
136702
+ }
136703
+
136704
+ case REACT_PORTAL_TYPE:
136705
+ return $$typeof;
136706
+ }
136707
+ }
136708
+
136709
+ return undefined;
136710
+ } // AsyncMode is deprecated along with isAsyncMode
136711
+
136712
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
136713
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
136714
+ var ContextConsumer = REACT_CONTEXT_TYPE;
136715
+ var ContextProvider = REACT_PROVIDER_TYPE;
136716
+ var Element = REACT_ELEMENT_TYPE;
136717
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
136718
+ var Fragment = REACT_FRAGMENT_TYPE;
136719
+ var Lazy = REACT_LAZY_TYPE;
136720
+ var Memo = REACT_MEMO_TYPE;
136721
+ var Portal = REACT_PORTAL_TYPE;
136722
+ var Profiler = REACT_PROFILER_TYPE;
136723
+ var StrictMode = REACT_STRICT_MODE_TYPE;
136724
+ var Suspense = REACT_SUSPENSE_TYPE;
136725
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
136726
+
136727
+ function isAsyncMode(object) {
136728
+ {
136729
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
136730
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
136731
+
136732
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
136733
+ }
136734
+ }
136735
+
136736
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
136737
+ }
136738
+ function isConcurrentMode(object) {
136739
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
136740
+ }
136741
+ function isContextConsumer(object) {
136742
+ return typeOf(object) === REACT_CONTEXT_TYPE;
136743
+ }
136744
+ function isContextProvider(object) {
136745
+ return typeOf(object) === REACT_PROVIDER_TYPE;
136746
+ }
136747
+ function isElement(object) {
136748
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
136749
+ }
136750
+ function isForwardRef(object) {
136751
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
136752
+ }
136753
+ function isFragment(object) {
136754
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
136755
+ }
136756
+ function isLazy(object) {
136757
+ return typeOf(object) === REACT_LAZY_TYPE;
136758
+ }
136759
+ function isMemo(object) {
136760
+ return typeOf(object) === REACT_MEMO_TYPE;
136761
+ }
136762
+ function isPortal(object) {
136763
+ return typeOf(object) === REACT_PORTAL_TYPE;
136764
+ }
136765
+ function isProfiler(object) {
136766
+ return typeOf(object) === REACT_PROFILER_TYPE;
136767
+ }
136768
+ function isStrictMode(object) {
136769
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
136770
+ }
136771
+ function isSuspense(object) {
136772
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
136773
+ }
136774
+
136775
+ exports.AsyncMode = AsyncMode;
136776
+ exports.ConcurrentMode = ConcurrentMode;
136777
+ exports.ContextConsumer = ContextConsumer;
136778
+ exports.ContextProvider = ContextProvider;
136779
+ exports.Element = Element;
136780
+ exports.ForwardRef = ForwardRef;
136781
+ exports.Fragment = Fragment;
136782
+ exports.Lazy = Lazy;
136783
+ exports.Memo = Memo;
136784
+ exports.Portal = Portal;
136785
+ exports.Profiler = Profiler;
136786
+ exports.StrictMode = StrictMode;
136787
+ exports.Suspense = Suspense;
136788
+ exports.isAsyncMode = isAsyncMode;
136789
+ exports.isConcurrentMode = isConcurrentMode;
136790
+ exports.isContextConsumer = isContextConsumer;
136791
+ exports.isContextProvider = isContextProvider;
136792
+ exports.isElement = isElement;
136793
+ exports.isForwardRef = isForwardRef;
136794
+ exports.isFragment = isFragment;
136795
+ exports.isLazy = isLazy;
136796
+ exports.isMemo = isMemo;
136797
+ exports.isPortal = isPortal;
136798
+ exports.isProfiler = isProfiler;
136799
+ exports.isStrictMode = isStrictMode;
136800
+ exports.isSuspense = isSuspense;
136801
+ exports.isValidElementType = isValidElementType;
136802
+ exports.typeOf = typeOf;
136803
+ })();
136804
+ }
136805
+
136806
+
136807
+ /***/ }),
136808
+
136809
+ /***/ "./node_modules/rc-util/node_modules/react-is/index.js":
136810
+ /*!*************************************************************!*\
136811
+ !*** ./node_modules/rc-util/node_modules/react-is/index.js ***!
136812
+ \*************************************************************/
136813
+ /*! no static exports found */
136814
+ /***/ (function(module, exports, __webpack_require__) {
136815
+
136816
+ "use strict";
136817
+
136818
+
136819
+ if (false) {} else {
136820
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js");
136821
+ }
136822
+
136823
+
135876
136824
  /***/ }),
135877
136825
 
135878
136826
  /***/ "./node_modules/rc-virtual-list/es/Filler.js":
@@ -137344,981 +138292,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
137344
138292
  var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
137345
138293
  /* harmony default export */ __webpack_exports__["default"] = (isFF);
137346
138294
 
137347
- /***/ }),
137348
-
137349
- /***/ "./node_modules/react-is/cjs/react-is.development.js":
137350
- /*!***********************************************************!*\
137351
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
137352
- \***********************************************************/
137353
- /*! no static exports found */
137354
- /***/ (function(module, exports, __webpack_require__) {
137355
-
137356
- "use strict";
137357
- /** @license React v16.13.1
137358
- * react-is.development.js
137359
- *
137360
- * Copyright (c) Facebook, Inc. and its affiliates.
137361
- *
137362
- * This source code is licensed under the MIT license found in the
137363
- * LICENSE file in the root directory of this source tree.
137364
- */
137365
-
137366
-
137367
-
137368
-
137369
-
137370
- if (true) {
137371
- (function() {
137372
- 'use strict';
137373
-
137374
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
137375
- // nor polyfill, then a plain number is used for performance.
137376
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
137377
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
137378
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
137379
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
137380
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
137381
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
137382
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
137383
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
137384
- // (unstable) APIs that have been removed. Can we remove the symbols?
137385
-
137386
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
137387
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
137388
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
137389
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
137390
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
137391
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
137392
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
137393
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
137394
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
137395
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
137396
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
137397
-
137398
- function isValidElementType(type) {
137399
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137400
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
137401
- }
137402
-
137403
- function typeOf(object) {
137404
- if (typeof object === 'object' && object !== null) {
137405
- var $$typeof = object.$$typeof;
137406
-
137407
- switch ($$typeof) {
137408
- case REACT_ELEMENT_TYPE:
137409
- var type = object.type;
137410
-
137411
- switch (type) {
137412
- case REACT_ASYNC_MODE_TYPE:
137413
- case REACT_CONCURRENT_MODE_TYPE:
137414
- case REACT_FRAGMENT_TYPE:
137415
- case REACT_PROFILER_TYPE:
137416
- case REACT_STRICT_MODE_TYPE:
137417
- case REACT_SUSPENSE_TYPE:
137418
- return type;
137419
-
137420
- default:
137421
- var $$typeofType = type && type.$$typeof;
137422
-
137423
- switch ($$typeofType) {
137424
- case REACT_CONTEXT_TYPE:
137425
- case REACT_FORWARD_REF_TYPE:
137426
- case REACT_LAZY_TYPE:
137427
- case REACT_MEMO_TYPE:
137428
- case REACT_PROVIDER_TYPE:
137429
- return $$typeofType;
137430
-
137431
- default:
137432
- return $$typeof;
137433
- }
137434
-
137435
- }
137436
-
137437
- case REACT_PORTAL_TYPE:
137438
- return $$typeof;
137439
- }
137440
- }
137441
-
137442
- return undefined;
137443
- } // AsyncMode is deprecated along with isAsyncMode
137444
-
137445
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
137446
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
137447
- var ContextConsumer = REACT_CONTEXT_TYPE;
137448
- var ContextProvider = REACT_PROVIDER_TYPE;
137449
- var Element = REACT_ELEMENT_TYPE;
137450
- var ForwardRef = REACT_FORWARD_REF_TYPE;
137451
- var Fragment = REACT_FRAGMENT_TYPE;
137452
- var Lazy = REACT_LAZY_TYPE;
137453
- var Memo = REACT_MEMO_TYPE;
137454
- var Portal = REACT_PORTAL_TYPE;
137455
- var Profiler = REACT_PROFILER_TYPE;
137456
- var StrictMode = REACT_STRICT_MODE_TYPE;
137457
- var Suspense = REACT_SUSPENSE_TYPE;
137458
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
137459
-
137460
- function isAsyncMode(object) {
137461
- {
137462
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
137463
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
137464
-
137465
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
137466
- }
137467
- }
137468
-
137469
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
137470
- }
137471
- function isConcurrentMode(object) {
137472
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
137473
- }
137474
- function isContextConsumer(object) {
137475
- return typeOf(object) === REACT_CONTEXT_TYPE;
137476
- }
137477
- function isContextProvider(object) {
137478
- return typeOf(object) === REACT_PROVIDER_TYPE;
137479
- }
137480
- function isElement(object) {
137481
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
137482
- }
137483
- function isForwardRef(object) {
137484
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
137485
- }
137486
- function isFragment(object) {
137487
- return typeOf(object) === REACT_FRAGMENT_TYPE;
137488
- }
137489
- function isLazy(object) {
137490
- return typeOf(object) === REACT_LAZY_TYPE;
137491
- }
137492
- function isMemo(object) {
137493
- return typeOf(object) === REACT_MEMO_TYPE;
137494
- }
137495
- function isPortal(object) {
137496
- return typeOf(object) === REACT_PORTAL_TYPE;
137497
- }
137498
- function isProfiler(object) {
137499
- return typeOf(object) === REACT_PROFILER_TYPE;
137500
- }
137501
- function isStrictMode(object) {
137502
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
137503
- }
137504
- function isSuspense(object) {
137505
- return typeOf(object) === REACT_SUSPENSE_TYPE;
137506
- }
137507
-
137508
- exports.AsyncMode = AsyncMode;
137509
- exports.ConcurrentMode = ConcurrentMode;
137510
- exports.ContextConsumer = ContextConsumer;
137511
- exports.ContextProvider = ContextProvider;
137512
- exports.Element = Element;
137513
- exports.ForwardRef = ForwardRef;
137514
- exports.Fragment = Fragment;
137515
- exports.Lazy = Lazy;
137516
- exports.Memo = Memo;
137517
- exports.Portal = Portal;
137518
- exports.Profiler = Profiler;
137519
- exports.StrictMode = StrictMode;
137520
- exports.Suspense = Suspense;
137521
- exports.isAsyncMode = isAsyncMode;
137522
- exports.isConcurrentMode = isConcurrentMode;
137523
- exports.isContextConsumer = isContextConsumer;
137524
- exports.isContextProvider = isContextProvider;
137525
- exports.isElement = isElement;
137526
- exports.isForwardRef = isForwardRef;
137527
- exports.isFragment = isFragment;
137528
- exports.isLazy = isLazy;
137529
- exports.isMemo = isMemo;
137530
- exports.isPortal = isPortal;
137531
- exports.isProfiler = isProfiler;
137532
- exports.isStrictMode = isStrictMode;
137533
- exports.isSuspense = isSuspense;
137534
- exports.isValidElementType = isValidElementType;
137535
- exports.typeOf = typeOf;
137536
- })();
137537
- }
137538
-
137539
-
137540
- /***/ }),
137541
-
137542
- /***/ "./node_modules/react-is/index.js":
137543
- /*!****************************************!*\
137544
- !*** ./node_modules/react-is/index.js ***!
137545
- \****************************************/
137546
- /*! no static exports found */
137547
- /***/ (function(module, exports, __webpack_require__) {
137548
-
137549
- "use strict";
137550
-
137551
-
137552
- if (false) {} else {
137553
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
137554
- }
137555
-
137556
-
137557
- /***/ }),
137558
-
137559
- /***/ "./node_modules/regenerator-runtime/runtime.js":
137560
- /*!*****************************************************!*\
137561
- !*** ./node_modules/regenerator-runtime/runtime.js ***!
137562
- \*****************************************************/
137563
- /*! no static exports found */
137564
- /***/ (function(module, exports, __webpack_require__) {
137565
-
137566
- /**
137567
- * Copyright (c) 2014-present, Facebook, Inc.
137568
- *
137569
- * This source code is licensed under the MIT license found in the
137570
- * LICENSE file in the root directory of this source tree.
137571
- */
137572
-
137573
- var runtime = (function (exports) {
137574
- "use strict";
137575
-
137576
- var Op = Object.prototype;
137577
- var hasOwn = Op.hasOwnProperty;
137578
- var undefined; // More compressible than void 0.
137579
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
137580
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
137581
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
137582
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
137583
-
137584
- function define(obj, key, value) {
137585
- Object.defineProperty(obj, key, {
137586
- value: value,
137587
- enumerable: true,
137588
- configurable: true,
137589
- writable: true
137590
- });
137591
- return obj[key];
137592
- }
137593
- try {
137594
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
137595
- define({}, "");
137596
- } catch (err) {
137597
- define = function(obj, key, value) {
137598
- return obj[key] = value;
137599
- };
137600
- }
137601
-
137602
- function wrap(innerFn, outerFn, self, tryLocsList) {
137603
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
137604
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
137605
- var generator = Object.create(protoGenerator.prototype);
137606
- var context = new Context(tryLocsList || []);
137607
-
137608
- // The ._invoke method unifies the implementations of the .next,
137609
- // .throw, and .return methods.
137610
- generator._invoke = makeInvokeMethod(innerFn, self, context);
137611
-
137612
- return generator;
137613
- }
137614
- exports.wrap = wrap;
137615
-
137616
- // Try/catch helper to minimize deoptimizations. Returns a completion
137617
- // record like context.tryEntries[i].completion. This interface could
137618
- // have been (and was previously) designed to take a closure to be
137619
- // invoked without arguments, but in all the cases we care about we
137620
- // already have an existing method we want to call, so there's no need
137621
- // to create a new function object. We can even get away with assuming
137622
- // the method takes exactly one argument, since that happens to be true
137623
- // in every case, so we don't have to touch the arguments object. The
137624
- // only additional allocation required is the completion record, which
137625
- // has a stable shape and so hopefully should be cheap to allocate.
137626
- function tryCatch(fn, obj, arg) {
137627
- try {
137628
- return { type: "normal", arg: fn.call(obj, arg) };
137629
- } catch (err) {
137630
- return { type: "throw", arg: err };
137631
- }
137632
- }
137633
-
137634
- var GenStateSuspendedStart = "suspendedStart";
137635
- var GenStateSuspendedYield = "suspendedYield";
137636
- var GenStateExecuting = "executing";
137637
- var GenStateCompleted = "completed";
137638
-
137639
- // Returning this object from the innerFn has the same effect as
137640
- // breaking out of the dispatch switch statement.
137641
- var ContinueSentinel = {};
137642
-
137643
- // Dummy constructor functions that we use as the .constructor and
137644
- // .constructor.prototype properties for functions that return Generator
137645
- // objects. For full spec compliance, you may wish to configure your
137646
- // minifier not to mangle the names of these two functions.
137647
- function Generator() {}
137648
- function GeneratorFunction() {}
137649
- function GeneratorFunctionPrototype() {}
137650
-
137651
- // This is a polyfill for %IteratorPrototype% for environments that
137652
- // don't natively support it.
137653
- var IteratorPrototype = {};
137654
- define(IteratorPrototype, iteratorSymbol, function () {
137655
- return this;
137656
- });
137657
-
137658
- var getProto = Object.getPrototypeOf;
137659
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
137660
- if (NativeIteratorPrototype &&
137661
- NativeIteratorPrototype !== Op &&
137662
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
137663
- // This environment has a native %IteratorPrototype%; use it instead
137664
- // of the polyfill.
137665
- IteratorPrototype = NativeIteratorPrototype;
137666
- }
137667
-
137668
- var Gp = GeneratorFunctionPrototype.prototype =
137669
- Generator.prototype = Object.create(IteratorPrototype);
137670
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
137671
- define(Gp, "constructor", GeneratorFunctionPrototype);
137672
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
137673
- GeneratorFunction.displayName = define(
137674
- GeneratorFunctionPrototype,
137675
- toStringTagSymbol,
137676
- "GeneratorFunction"
137677
- );
137678
-
137679
- // Helper for defining the .next, .throw, and .return methods of the
137680
- // Iterator interface in terms of a single ._invoke method.
137681
- function defineIteratorMethods(prototype) {
137682
- ["next", "throw", "return"].forEach(function(method) {
137683
- define(prototype, method, function(arg) {
137684
- return this._invoke(method, arg);
137685
- });
137686
- });
137687
- }
137688
-
137689
- exports.isGeneratorFunction = function(genFun) {
137690
- var ctor = typeof genFun === "function" && genFun.constructor;
137691
- return ctor
137692
- ? ctor === GeneratorFunction ||
137693
- // For the native GeneratorFunction constructor, the best we can
137694
- // do is to check its .name property.
137695
- (ctor.displayName || ctor.name) === "GeneratorFunction"
137696
- : false;
137697
- };
137698
-
137699
- exports.mark = function(genFun) {
137700
- if (Object.setPrototypeOf) {
137701
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
137702
- } else {
137703
- genFun.__proto__ = GeneratorFunctionPrototype;
137704
- define(genFun, toStringTagSymbol, "GeneratorFunction");
137705
- }
137706
- genFun.prototype = Object.create(Gp);
137707
- return genFun;
137708
- };
137709
-
137710
- // Within the body of any async function, `await x` is transformed to
137711
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
137712
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
137713
- // meant to be awaited.
137714
- exports.awrap = function(arg) {
137715
- return { __await: arg };
137716
- };
137717
-
137718
- function AsyncIterator(generator, PromiseImpl) {
137719
- function invoke(method, arg, resolve, reject) {
137720
- var record = tryCatch(generator[method], generator, arg);
137721
- if (record.type === "throw") {
137722
- reject(record.arg);
137723
- } else {
137724
- var result = record.arg;
137725
- var value = result.value;
137726
- if (value &&
137727
- typeof value === "object" &&
137728
- hasOwn.call(value, "__await")) {
137729
- return PromiseImpl.resolve(value.__await).then(function(value) {
137730
- invoke("next", value, resolve, reject);
137731
- }, function(err) {
137732
- invoke("throw", err, resolve, reject);
137733
- });
137734
- }
137735
-
137736
- return PromiseImpl.resolve(value).then(function(unwrapped) {
137737
- // When a yielded Promise is resolved, its final value becomes
137738
- // the .value of the Promise<{value,done}> result for the
137739
- // current iteration.
137740
- result.value = unwrapped;
137741
- resolve(result);
137742
- }, function(error) {
137743
- // If a rejected Promise was yielded, throw the rejection back
137744
- // into the async generator function so it can be handled there.
137745
- return invoke("throw", error, resolve, reject);
137746
- });
137747
- }
137748
- }
137749
-
137750
- var previousPromise;
137751
-
137752
- function enqueue(method, arg) {
137753
- function callInvokeWithMethodAndArg() {
137754
- return new PromiseImpl(function(resolve, reject) {
137755
- invoke(method, arg, resolve, reject);
137756
- });
137757
- }
137758
-
137759
- return previousPromise =
137760
- // If enqueue has been called before, then we want to wait until
137761
- // all previous Promises have been resolved before calling invoke,
137762
- // so that results are always delivered in the correct order. If
137763
- // enqueue has not been called before, then it is important to
137764
- // call invoke immediately, without waiting on a callback to fire,
137765
- // so that the async generator function has the opportunity to do
137766
- // any necessary setup in a predictable way. This predictability
137767
- // is why the Promise constructor synchronously invokes its
137768
- // executor callback, and why async functions synchronously
137769
- // execute code before the first await. Since we implement simple
137770
- // async functions in terms of async generators, it is especially
137771
- // important to get this right, even though it requires care.
137772
- previousPromise ? previousPromise.then(
137773
- callInvokeWithMethodAndArg,
137774
- // Avoid propagating failures to Promises returned by later
137775
- // invocations of the iterator.
137776
- callInvokeWithMethodAndArg
137777
- ) : callInvokeWithMethodAndArg();
137778
- }
137779
-
137780
- // Define the unified helper method that is used to implement .next,
137781
- // .throw, and .return (see defineIteratorMethods).
137782
- this._invoke = enqueue;
137783
- }
137784
-
137785
- defineIteratorMethods(AsyncIterator.prototype);
137786
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
137787
- return this;
137788
- });
137789
- exports.AsyncIterator = AsyncIterator;
137790
-
137791
- // Note that simple async functions are implemented on top of
137792
- // AsyncIterator objects; they just return a Promise for the value of
137793
- // the final result produced by the iterator.
137794
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
137795
- if (PromiseImpl === void 0) PromiseImpl = Promise;
137796
-
137797
- var iter = new AsyncIterator(
137798
- wrap(innerFn, outerFn, self, tryLocsList),
137799
- PromiseImpl
137800
- );
137801
-
137802
- return exports.isGeneratorFunction(outerFn)
137803
- ? iter // If outerFn is a generator, return the full iterator.
137804
- : iter.next().then(function(result) {
137805
- return result.done ? result.value : iter.next();
137806
- });
137807
- };
137808
-
137809
- function makeInvokeMethod(innerFn, self, context) {
137810
- var state = GenStateSuspendedStart;
137811
-
137812
- return function invoke(method, arg) {
137813
- if (state === GenStateExecuting) {
137814
- throw new Error("Generator is already running");
137815
- }
137816
-
137817
- if (state === GenStateCompleted) {
137818
- if (method === "throw") {
137819
- throw arg;
137820
- }
137821
-
137822
- // Be forgiving, per 25.3.3.3.3 of the spec:
137823
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
137824
- return doneResult();
137825
- }
137826
-
137827
- context.method = method;
137828
- context.arg = arg;
137829
-
137830
- while (true) {
137831
- var delegate = context.delegate;
137832
- if (delegate) {
137833
- var delegateResult = maybeInvokeDelegate(delegate, context);
137834
- if (delegateResult) {
137835
- if (delegateResult === ContinueSentinel) continue;
137836
- return delegateResult;
137837
- }
137838
- }
137839
-
137840
- if (context.method === "next") {
137841
- // Setting context._sent for legacy support of Babel's
137842
- // function.sent implementation.
137843
- context.sent = context._sent = context.arg;
137844
-
137845
- } else if (context.method === "throw") {
137846
- if (state === GenStateSuspendedStart) {
137847
- state = GenStateCompleted;
137848
- throw context.arg;
137849
- }
137850
-
137851
- context.dispatchException(context.arg);
137852
-
137853
- } else if (context.method === "return") {
137854
- context.abrupt("return", context.arg);
137855
- }
137856
-
137857
- state = GenStateExecuting;
137858
-
137859
- var record = tryCatch(innerFn, self, context);
137860
- if (record.type === "normal") {
137861
- // If an exception is thrown from innerFn, we leave state ===
137862
- // GenStateExecuting and loop back for another invocation.
137863
- state = context.done
137864
- ? GenStateCompleted
137865
- : GenStateSuspendedYield;
137866
-
137867
- if (record.arg === ContinueSentinel) {
137868
- continue;
137869
- }
137870
-
137871
- return {
137872
- value: record.arg,
137873
- done: context.done
137874
- };
137875
-
137876
- } else if (record.type === "throw") {
137877
- state = GenStateCompleted;
137878
- // Dispatch the exception by looping back around to the
137879
- // context.dispatchException(context.arg) call above.
137880
- context.method = "throw";
137881
- context.arg = record.arg;
137882
- }
137883
- }
137884
- };
137885
- }
137886
-
137887
- // Call delegate.iterator[context.method](context.arg) and handle the
137888
- // result, either by returning a { value, done } result from the
137889
- // delegate iterator, or by modifying context.method and context.arg,
137890
- // setting context.delegate to null, and returning the ContinueSentinel.
137891
- function maybeInvokeDelegate(delegate, context) {
137892
- var method = delegate.iterator[context.method];
137893
- if (method === undefined) {
137894
- // A .throw or .return when the delegate iterator has no .throw
137895
- // method always terminates the yield* loop.
137896
- context.delegate = null;
137897
-
137898
- if (context.method === "throw") {
137899
- // Note: ["return"] must be used for ES3 parsing compatibility.
137900
- if (delegate.iterator["return"]) {
137901
- // If the delegate iterator has a return method, give it a
137902
- // chance to clean up.
137903
- context.method = "return";
137904
- context.arg = undefined;
137905
- maybeInvokeDelegate(delegate, context);
137906
-
137907
- if (context.method === "throw") {
137908
- // If maybeInvokeDelegate(context) changed context.method from
137909
- // "return" to "throw", let that override the TypeError below.
137910
- return ContinueSentinel;
137911
- }
137912
- }
137913
-
137914
- context.method = "throw";
137915
- context.arg = new TypeError(
137916
- "The iterator does not provide a 'throw' method");
137917
- }
137918
-
137919
- return ContinueSentinel;
137920
- }
137921
-
137922
- var record = tryCatch(method, delegate.iterator, context.arg);
137923
-
137924
- if (record.type === "throw") {
137925
- context.method = "throw";
137926
- context.arg = record.arg;
137927
- context.delegate = null;
137928
- return ContinueSentinel;
137929
- }
137930
-
137931
- var info = record.arg;
137932
-
137933
- if (! info) {
137934
- context.method = "throw";
137935
- context.arg = new TypeError("iterator result is not an object");
137936
- context.delegate = null;
137937
- return ContinueSentinel;
137938
- }
137939
-
137940
- if (info.done) {
137941
- // Assign the result of the finished delegate to the temporary
137942
- // variable specified by delegate.resultName (see delegateYield).
137943
- context[delegate.resultName] = info.value;
137944
-
137945
- // Resume execution at the desired location (see delegateYield).
137946
- context.next = delegate.nextLoc;
137947
-
137948
- // If context.method was "throw" but the delegate handled the
137949
- // exception, let the outer generator proceed normally. If
137950
- // context.method was "next", forget context.arg since it has been
137951
- // "consumed" by the delegate iterator. If context.method was
137952
- // "return", allow the original .return call to continue in the
137953
- // outer generator.
137954
- if (context.method !== "return") {
137955
- context.method = "next";
137956
- context.arg = undefined;
137957
- }
137958
-
137959
- } else {
137960
- // Re-yield the result returned by the delegate method.
137961
- return info;
137962
- }
137963
-
137964
- // The delegate iterator is finished, so forget it and continue with
137965
- // the outer generator.
137966
- context.delegate = null;
137967
- return ContinueSentinel;
137968
- }
137969
-
137970
- // Define Generator.prototype.{next,throw,return} in terms of the
137971
- // unified ._invoke helper method.
137972
- defineIteratorMethods(Gp);
137973
-
137974
- define(Gp, toStringTagSymbol, "Generator");
137975
-
137976
- // A Generator should always return itself as the iterator object when the
137977
- // @@iterator function is called on it. Some browsers' implementations of the
137978
- // iterator prototype chain incorrectly implement this, causing the Generator
137979
- // object to not be returned from this call. This ensures that doesn't happen.
137980
- // See https://github.com/facebook/regenerator/issues/274 for more details.
137981
- define(Gp, iteratorSymbol, function() {
137982
- return this;
137983
- });
137984
-
137985
- define(Gp, "toString", function() {
137986
- return "[object Generator]";
137987
- });
137988
-
137989
- function pushTryEntry(locs) {
137990
- var entry = { tryLoc: locs[0] };
137991
-
137992
- if (1 in locs) {
137993
- entry.catchLoc = locs[1];
137994
- }
137995
-
137996
- if (2 in locs) {
137997
- entry.finallyLoc = locs[2];
137998
- entry.afterLoc = locs[3];
137999
- }
138000
-
138001
- this.tryEntries.push(entry);
138002
- }
138003
-
138004
- function resetTryEntry(entry) {
138005
- var record = entry.completion || {};
138006
- record.type = "normal";
138007
- delete record.arg;
138008
- entry.completion = record;
138009
- }
138010
-
138011
- function Context(tryLocsList) {
138012
- // The root entry object (effectively a try statement without a catch
138013
- // or a finally block) gives us a place to store values thrown from
138014
- // locations where there is no enclosing try statement.
138015
- this.tryEntries = [{ tryLoc: "root" }];
138016
- tryLocsList.forEach(pushTryEntry, this);
138017
- this.reset(true);
138018
- }
138019
-
138020
- exports.keys = function(object) {
138021
- var keys = [];
138022
- for (var key in object) {
138023
- keys.push(key);
138024
- }
138025
- keys.reverse();
138026
-
138027
- // Rather than returning an object with a next method, we keep
138028
- // things simple and return the next function itself.
138029
- return function next() {
138030
- while (keys.length) {
138031
- var key = keys.pop();
138032
- if (key in object) {
138033
- next.value = key;
138034
- next.done = false;
138035
- return next;
138036
- }
138037
- }
138038
-
138039
- // To avoid creating an additional object, we just hang the .value
138040
- // and .done properties off the next function object itself. This
138041
- // also ensures that the minifier will not anonymize the function.
138042
- next.done = true;
138043
- return next;
138044
- };
138045
- };
138046
-
138047
- function values(iterable) {
138048
- if (iterable) {
138049
- var iteratorMethod = iterable[iteratorSymbol];
138050
- if (iteratorMethod) {
138051
- return iteratorMethod.call(iterable);
138052
- }
138053
-
138054
- if (typeof iterable.next === "function") {
138055
- return iterable;
138056
- }
138057
-
138058
- if (!isNaN(iterable.length)) {
138059
- var i = -1, next = function next() {
138060
- while (++i < iterable.length) {
138061
- if (hasOwn.call(iterable, i)) {
138062
- next.value = iterable[i];
138063
- next.done = false;
138064
- return next;
138065
- }
138066
- }
138067
-
138068
- next.value = undefined;
138069
- next.done = true;
138070
-
138071
- return next;
138072
- };
138073
-
138074
- return next.next = next;
138075
- }
138076
- }
138077
-
138078
- // Return an iterator with no values.
138079
- return { next: doneResult };
138080
- }
138081
- exports.values = values;
138082
-
138083
- function doneResult() {
138084
- return { value: undefined, done: true };
138085
- }
138086
-
138087
- Context.prototype = {
138088
- constructor: Context,
138089
-
138090
- reset: function(skipTempReset) {
138091
- this.prev = 0;
138092
- this.next = 0;
138093
- // Resetting context._sent for legacy support of Babel's
138094
- // function.sent implementation.
138095
- this.sent = this._sent = undefined;
138096
- this.done = false;
138097
- this.delegate = null;
138098
-
138099
- this.method = "next";
138100
- this.arg = undefined;
138101
-
138102
- this.tryEntries.forEach(resetTryEntry);
138103
-
138104
- if (!skipTempReset) {
138105
- for (var name in this) {
138106
- // Not sure about the optimal order of these conditions:
138107
- if (name.charAt(0) === "t" &&
138108
- hasOwn.call(this, name) &&
138109
- !isNaN(+name.slice(1))) {
138110
- this[name] = undefined;
138111
- }
138112
- }
138113
- }
138114
- },
138115
-
138116
- stop: function() {
138117
- this.done = true;
138118
-
138119
- var rootEntry = this.tryEntries[0];
138120
- var rootRecord = rootEntry.completion;
138121
- if (rootRecord.type === "throw") {
138122
- throw rootRecord.arg;
138123
- }
138124
-
138125
- return this.rval;
138126
- },
138127
-
138128
- dispatchException: function(exception) {
138129
- if (this.done) {
138130
- throw exception;
138131
- }
138132
-
138133
- var context = this;
138134
- function handle(loc, caught) {
138135
- record.type = "throw";
138136
- record.arg = exception;
138137
- context.next = loc;
138138
-
138139
- if (caught) {
138140
- // If the dispatched exception was caught by a catch block,
138141
- // then let that catch block handle the exception normally.
138142
- context.method = "next";
138143
- context.arg = undefined;
138144
- }
138145
-
138146
- return !! caught;
138147
- }
138148
-
138149
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138150
- var entry = this.tryEntries[i];
138151
- var record = entry.completion;
138152
-
138153
- if (entry.tryLoc === "root") {
138154
- // Exception thrown outside of any try block that could handle
138155
- // it, so set the completion value of the entire function to
138156
- // throw the exception.
138157
- return handle("end");
138158
- }
138159
-
138160
- if (entry.tryLoc <= this.prev) {
138161
- var hasCatch = hasOwn.call(entry, "catchLoc");
138162
- var hasFinally = hasOwn.call(entry, "finallyLoc");
138163
-
138164
- if (hasCatch && hasFinally) {
138165
- if (this.prev < entry.catchLoc) {
138166
- return handle(entry.catchLoc, true);
138167
- } else if (this.prev < entry.finallyLoc) {
138168
- return handle(entry.finallyLoc);
138169
- }
138170
-
138171
- } else if (hasCatch) {
138172
- if (this.prev < entry.catchLoc) {
138173
- return handle(entry.catchLoc, true);
138174
- }
138175
-
138176
- } else if (hasFinally) {
138177
- if (this.prev < entry.finallyLoc) {
138178
- return handle(entry.finallyLoc);
138179
- }
138180
-
138181
- } else {
138182
- throw new Error("try statement without catch or finally");
138183
- }
138184
- }
138185
- }
138186
- },
138187
-
138188
- abrupt: function(type, arg) {
138189
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138190
- var entry = this.tryEntries[i];
138191
- if (entry.tryLoc <= this.prev &&
138192
- hasOwn.call(entry, "finallyLoc") &&
138193
- this.prev < entry.finallyLoc) {
138194
- var finallyEntry = entry;
138195
- break;
138196
- }
138197
- }
138198
-
138199
- if (finallyEntry &&
138200
- (type === "break" ||
138201
- type === "continue") &&
138202
- finallyEntry.tryLoc <= arg &&
138203
- arg <= finallyEntry.finallyLoc) {
138204
- // Ignore the finally entry if control is not jumping to a
138205
- // location outside the try/catch block.
138206
- finallyEntry = null;
138207
- }
138208
-
138209
- var record = finallyEntry ? finallyEntry.completion : {};
138210
- record.type = type;
138211
- record.arg = arg;
138212
-
138213
- if (finallyEntry) {
138214
- this.method = "next";
138215
- this.next = finallyEntry.finallyLoc;
138216
- return ContinueSentinel;
138217
- }
138218
-
138219
- return this.complete(record);
138220
- },
138221
-
138222
- complete: function(record, afterLoc) {
138223
- if (record.type === "throw") {
138224
- throw record.arg;
138225
- }
138226
-
138227
- if (record.type === "break" ||
138228
- record.type === "continue") {
138229
- this.next = record.arg;
138230
- } else if (record.type === "return") {
138231
- this.rval = this.arg = record.arg;
138232
- this.method = "return";
138233
- this.next = "end";
138234
- } else if (record.type === "normal" && afterLoc) {
138235
- this.next = afterLoc;
138236
- }
138237
-
138238
- return ContinueSentinel;
138239
- },
138240
-
138241
- finish: function(finallyLoc) {
138242
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138243
- var entry = this.tryEntries[i];
138244
- if (entry.finallyLoc === finallyLoc) {
138245
- this.complete(entry.completion, entry.afterLoc);
138246
- resetTryEntry(entry);
138247
- return ContinueSentinel;
138248
- }
138249
- }
138250
- },
138251
-
138252
- "catch": function(tryLoc) {
138253
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
138254
- var entry = this.tryEntries[i];
138255
- if (entry.tryLoc === tryLoc) {
138256
- var record = entry.completion;
138257
- if (record.type === "throw") {
138258
- var thrown = record.arg;
138259
- resetTryEntry(entry);
138260
- }
138261
- return thrown;
138262
- }
138263
- }
138264
-
138265
- // The context.catch method must only be called with a location
138266
- // argument that corresponds to a known catch block.
138267
- throw new Error("illegal catch attempt");
138268
- },
138269
-
138270
- delegateYield: function(iterable, resultName, nextLoc) {
138271
- this.delegate = {
138272
- iterator: values(iterable),
138273
- resultName: resultName,
138274
- nextLoc: nextLoc
138275
- };
138276
-
138277
- if (this.method === "next") {
138278
- // Deliberately forget the last sent value so that we don't
138279
- // accidentally pass it on to the delegate.
138280
- this.arg = undefined;
138281
- }
138282
-
138283
- return ContinueSentinel;
138284
- }
138285
- };
138286
-
138287
- // Regardless of whether this script is executing as a CommonJS module
138288
- // or not, return the runtime object so that we can declare the variable
138289
- // regeneratorRuntime in the outer scope, which allows this module to be
138290
- // injected easily by `bin/regenerator --include-runtime script.js`.
138291
- return exports;
138292
-
138293
- }(
138294
- // If this script is executing as a CommonJS module, use module.exports
138295
- // as the regeneratorRuntime namespace. Otherwise create a new empty
138296
- // object. Either way, the resulting object will be used to initialize
138297
- // the regeneratorRuntime variable at the top of this file.
138298
- true ? module.exports : undefined
138299
- ));
138300
-
138301
- try {
138302
- regeneratorRuntime = runtime;
138303
- } catch (accidentalStrictMode) {
138304
- // This module should not be running in strict mode, so the above
138305
- // assignment should always work unless something is misconfigured. Just
138306
- // in case runtime.js accidentally runs in strict mode, in modern engines
138307
- // we can explicitly access globalThis. In older engines we can escape
138308
- // strict mode using a global Function call. This could conceivably fail
138309
- // if a Content Security Policy forbids using Function, but in that case
138310
- // the proper solution is to fix the accidental strict mode problem. If
138311
- // you've misconfigured your bundler to force strict mode and applied a
138312
- // CSP to forbid Function, and you're not willing to fix either of those
138313
- // problems, please detail your unique predicament in a GitHub issue.
138314
- if (typeof globalThis === "object") {
138315
- globalThis.regeneratorRuntime = runtime;
138316
- } else {
138317
- Function("r", "regeneratorRuntime = r")(runtime);
138318
- }
138319
- }
138320
-
138321
-
138322
138295
  /***/ }),
138323
138296
 
138324
138297
  /***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":