acud 0.0.69 → 0.0.72
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.css +58 -3
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +1444 -1281
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +9 -6
- package/dist/acud.min.js.map +1 -1
- package/es/cascader/index.js +7 -6
- package/es/date-picker/generatePicker/generateSinglePicker.js +7 -5
- package/es/date-picker/src/PickerPanel.js +0 -1
- package/es/date-picker/src/RangePicker.js +0 -1
- package/es/input/AutoComplete.d.ts +12 -0
- package/es/input/AutoComplete.js +53 -0
- package/es/input/TextArea.d.ts +1 -1
- package/es/input/TextArea.js +4 -4
- package/es/input/index.d.ts +2 -0
- package/es/input/index.js +2 -0
- package/es/input/style/index.css +56 -1
- package/es/input/style/index.less +66 -1
- package/es/input-number/src/hooks/useFrame.d.ts +1 -1
- package/es/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
- package/es/locale/en_US.js +2 -0
- package/es/locale/zh_CN.js +2 -0
- package/es/select/index.d.ts +1 -1
- package/es/toast/index.js +2 -2
- package/es/upload/Upload.js +2 -0
- package/es/upload/UploadList/ListItem.d.ts +1 -0
- package/es/upload/UploadList/ListItem.js +3 -1
- package/es/upload/UploadList/index.js +6 -2
- package/es/upload/interface.d.ts +2 -0
- package/es/upload/style/index.css +1 -1
- package/es/upload/style/index.less +1 -1
- package/es/virtual-list/List.js +0 -7
- package/lib/cascader/index.js +7 -6
- package/lib/date-picker/generatePicker/generateSinglePicker.js +7 -5
- package/lib/date-picker/src/PickerPanel.js +0 -1
- package/lib/date-picker/src/RangePicker.js +0 -1
- package/lib/input/AutoComplete.d.ts +12 -0
- package/lib/input/AutoComplete.js +72 -0
- package/lib/input/TextArea.d.ts +1 -1
- package/lib/input/TextArea.js +4 -2
- package/lib/input/index.d.ts +2 -0
- package/lib/input/index.js +3 -0
- package/lib/input/style/index.css +56 -1
- package/lib/input/style/index.less +66 -1
- package/lib/input-number/src/hooks/useFrame.d.ts +1 -1
- package/lib/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
- package/lib/locale/en_US.js +5 -0
- package/lib/locale/zh_CN.js +5 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/toast/index.js +2 -2
- package/lib/upload/Upload.js +2 -0
- package/lib/upload/UploadList/ListItem.d.ts +1 -0
- package/lib/upload/UploadList/ListItem.js +3 -1
- package/lib/upload/UploadList/index.js +6 -2
- package/lib/upload/interface.d.ts +2 -0
- package/lib/upload/style/index.css +1 -1
- package/lib/upload/style/index.less +1 -1
- package/lib/virtual-list/List.js +0 -7
- package/package.json +1 -1
- package/CHANGELOG.md +0 -4
package/dist/acud.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! acud v0.0.
|
|
1
|
+
/*! acud v0.0.72 */
|
|
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"));
|
|
@@ -5921,7 +5921,8 @@ var flattenTree = function flattenTree(options, props) {
|
|
|
5921
5921
|
return flattenOptions;
|
|
5922
5922
|
};
|
|
5923
5923
|
|
|
5924
|
-
var defaultDisplayRender = function defaultDisplayRender(
|
|
5924
|
+
var defaultDisplayRender = function defaultDisplayRender() {
|
|
5925
|
+
var label = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5925
5926
|
return label.join('>');
|
|
5926
5927
|
};
|
|
5927
5928
|
|
|
@@ -5978,7 +5979,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
5978
5979
|
var pickerLabelRef = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])();
|
|
5979
5980
|
var tagsRef = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])();
|
|
5980
5981
|
|
|
5981
|
-
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(props.value || props.defaultValue
|
|
5982
|
+
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(props.value || props.defaultValue),
|
|
5982
5983
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
5983
5984
|
value = _useState2[0],
|
|
5984
5985
|
setValue = _useState2[1];
|
|
@@ -6154,7 +6155,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
6154
6155
|
var selectedOptionFirst = isMulti ? {} : selectedOptions[0];
|
|
6155
6156
|
|
|
6156
6157
|
if (selectedOptionFirst === null || selectedOptionFirst === void 0 ? void 0 : selectedOptionFirst.__IS_FILTERED_OPTION) {
|
|
6157
|
-
var unwrappedValue = selectedOptionFirst[keepFilteredValueField] === undefined ? value
|
|
6158
|
+
var unwrappedValue = selectedOptionFirst[keepFilteredValueField] === undefined ? lodash_first__WEBPACK_IMPORTED_MODULE_5___default()(value) : selectedOptionFirst[keepFilteredValueField];
|
|
6158
6159
|
var unwrappedSelectedOptions = selectedOptionFirst.path;
|
|
6159
6160
|
updateValue(unwrappedValue, unwrappedSelectedOptions);
|
|
6160
6161
|
return;
|
|
@@ -6261,9 +6262,9 @@ var Cascader = function Cascader(props, ref) {
|
|
|
6261
6262
|
});
|
|
6262
6263
|
}
|
|
6263
6264
|
|
|
6264
|
-
var unwrappedValue = Array.isArray(value
|
|
6265
|
+
var unwrappedValue = Array.isArray(lodash_first__WEBPACK_IMPORTED_MODULE_5___default()(value)) ? lodash_first__WEBPACK_IMPORTED_MODULE_5___default()(value) : value;
|
|
6265
6266
|
var selectedOptions = array_tree_filter__WEBPACK_IMPORTED_MODULE_11___default()(options, function (o, level) {
|
|
6266
|
-
return o[names.value] === unwrappedValue
|
|
6267
|
+
return o[names.value] === lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(unwrappedValue, level);
|
|
6267
6268
|
}, {
|
|
6268
6269
|
childrenKeyName: names.children
|
|
6269
6270
|
});
|
|
@@ -6338,7 +6339,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
6338
6339
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(acud_icon_es_icons_OutlinedLoading__WEBPACK_IMPORTED_MODULE_14__["default"], {
|
|
6339
6340
|
animation: "spin"
|
|
6340
6341
|
}));
|
|
6341
|
-
var clearIcon = allowClear && !disabled && value
|
|
6342
|
+
var clearIcon = allowClear && !disabled && lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(value, 'length') > 0 || inputValue ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_clear__WEBPACK_IMPORTED_MODULE_19__["default"], {
|
|
6342
6343
|
className: "".concat(prefixCls, "-picker-clear"),
|
|
6343
6344
|
onClick: handleSelectionClear
|
|
6344
6345
|
}) : null;
|
|
@@ -8570,11 +8571,13 @@ function generatePicker(generateConfig) {
|
|
|
8570
8571
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Picker);
|
|
8571
8572
|
|
|
8572
8573
|
_this = _super.call(this, props);
|
|
8573
|
-
_this.pickerRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createRef"]();
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8574
|
+
_this.pickerRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createRef"]();
|
|
8575
|
+
|
|
8576
|
+
_this.focus = function () {
|
|
8577
|
+
if (_this.pickerRef.current) {
|
|
8578
|
+
_this.pickerRef.current.focus();
|
|
8579
|
+
}
|
|
8580
|
+
};
|
|
8578
8581
|
|
|
8579
8582
|
_this.blur = function () {
|
|
8580
8583
|
if (_this.pickerRef.current) {
|
|
@@ -8851,6 +8854,43 @@ var locale = {
|
|
|
8851
8854
|
|
|
8852
8855
|
/***/ }),
|
|
8853
8856
|
|
|
8857
|
+
/***/ "./components/date-picker/locale/zh_CN.tsx":
|
|
8858
|
+
/*!*************************************************!*\
|
|
8859
|
+
!*** ./components/date-picker/locale/zh_CN.tsx ***!
|
|
8860
|
+
\*************************************************/
|
|
8861
|
+
/*! exports provided: default */
|
|
8862
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8863
|
+
|
|
8864
|
+
"use strict";
|
|
8865
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8866
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
8867
|
+
/* harmony import */ var _src_locale_zh_CN__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/locale/zh_CN */ "./components/date-picker/src/locale/zh_CN.ts");
|
|
8868
|
+
/* harmony import */ var _time_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../time-picker/locale/zh_CN */ "./components/time-picker/locale/zh_CN.tsx");
|
|
8869
|
+
|
|
8870
|
+
|
|
8871
|
+
|
|
8872
|
+
var timePickerLocale = _time_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_2__["default"].timePickerLocale; // 统一合并为完整的 Locale
|
|
8873
|
+
|
|
8874
|
+
var locale = {
|
|
8875
|
+
lang: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
8876
|
+
placeholder: '请选择日期',
|
|
8877
|
+
yearPlaceholder: '请选择年份',
|
|
8878
|
+
quarterPlaceholder: '请选择季度',
|
|
8879
|
+
monthPlaceholder: '请选择月份',
|
|
8880
|
+
weekPlaceholder: '请选择周',
|
|
8881
|
+
rangePlaceholder: ['开始日期', '结束日期'],
|
|
8882
|
+
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
|
8883
|
+
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
8884
|
+
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
8885
|
+
}, _src_locale_zh_CN__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
8886
|
+
timePickerLocale: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, timePickerLocale)
|
|
8887
|
+
}; // should add whitespace between char in Button
|
|
8888
|
+
|
|
8889
|
+
locale.lang.ok = '确 定';
|
|
8890
|
+
/* harmony default export */ __webpack_exports__["default"] = (locale);
|
|
8891
|
+
|
|
8892
|
+
/***/ }),
|
|
8893
|
+
|
|
8854
8894
|
/***/ "./components/date-picker/src/PanelContext.tsx":
|
|
8855
8895
|
/*!*****************************************************!*\
|
|
8856
8896
|
!*** ./components/date-picker/src/PanelContext.tsx ***!
|
|
@@ -9532,7 +9572,6 @@ function PickerPanel(props) {
|
|
|
9532
9572
|
var now = generateConfig.getNow();
|
|
9533
9573
|
if (!date) return now; // When value is null and set showTime
|
|
9534
9574
|
|
|
9535
|
-
// When value is null and set showTime
|
|
9536
9575
|
if (!mergedValue && showTime) {
|
|
9537
9576
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(showTime) === 'object') {
|
|
9538
9577
|
return Object(_utils_timeUtil__WEBPACK_IMPORTED_MODULE_23__["setDateTime"])(generateConfig, date, showTime.defaultValue || now);
|
|
@@ -10170,7 +10209,6 @@ function InnerRangePicker(props) {
|
|
|
10170
10209
|
} // Fill disabled unit
|
|
10171
10210
|
|
|
10172
10211
|
|
|
10173
|
-
// Fill disabled unit
|
|
10174
10212
|
for (var i = 0; i < 2; i += 1) {
|
|
10175
10213
|
if (mergedDisabled[i] && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(postValues, i) && !Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["getValue"])(allowEmpty, i)) {
|
|
10176
10214
|
postValues = Object(_utils_miscUtil__WEBPACK_IMPORTED_MODULE_15__["updateValues"])(postValues, generateConfig.getNow(), i);
|
|
@@ -11922,6 +11960,47 @@ var locale = {
|
|
|
11922
11960
|
|
|
11923
11961
|
/***/ }),
|
|
11924
11962
|
|
|
11963
|
+
/***/ "./components/date-picker/src/locale/zh_CN.ts":
|
|
11964
|
+
/*!****************************************************!*\
|
|
11965
|
+
!*** ./components/date-picker/src/locale/zh_CN.ts ***!
|
|
11966
|
+
\****************************************************/
|
|
11967
|
+
/*! exports provided: default */
|
|
11968
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11969
|
+
|
|
11970
|
+
"use strict";
|
|
11971
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11972
|
+
var locale = {
|
|
11973
|
+
locale: 'zh_CN',
|
|
11974
|
+
today: '今天',
|
|
11975
|
+
now: '此刻',
|
|
11976
|
+
backToToday: '返回今天',
|
|
11977
|
+
ok: '确定',
|
|
11978
|
+
timeSelect: '选择时间',
|
|
11979
|
+
dateSelect: '选择日期',
|
|
11980
|
+
weekSelect: '选择周',
|
|
11981
|
+
clear: '清除',
|
|
11982
|
+
month: '月',
|
|
11983
|
+
year: '年',
|
|
11984
|
+
previousMonth: '上个月 (翻页上键)',
|
|
11985
|
+
nextMonth: '下个月 (翻页下键)',
|
|
11986
|
+
monthSelect: '选择月份',
|
|
11987
|
+
yearSelect: '选择年份',
|
|
11988
|
+
decadeSelect: '选择年代',
|
|
11989
|
+
yearFormat: 'YYYY年',
|
|
11990
|
+
dayFormat: 'D日',
|
|
11991
|
+
dateFormat: 'YYYY年M月D日',
|
|
11992
|
+
dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
|
|
11993
|
+
previousYear: '上一年 (Control键加左方向键)',
|
|
11994
|
+
nextYear: '下一年 (Control键加右方向键)',
|
|
11995
|
+
previousDecade: '上一年代',
|
|
11996
|
+
nextDecade: '下一年代',
|
|
11997
|
+
previousCentury: '上一世纪',
|
|
11998
|
+
nextCentury: '下一世纪'
|
|
11999
|
+
};
|
|
12000
|
+
/* harmony default export */ __webpack_exports__["default"] = (locale);
|
|
12001
|
+
|
|
12002
|
+
/***/ }),
|
|
12003
|
+
|
|
11925
12004
|
/***/ "./components/date-picker/src/panels/DatePanel/DateBody.tsx":
|
|
11926
12005
|
/*!******************************************************************!*\
|
|
11927
12006
|
!*** ./components/date-picker/src/panels/DatePanel/DateBody.tsx ***!
|
|
@@ -19640,6 +19719,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19640
19719
|
|
|
19641
19720
|
|
|
19642
19721
|
|
|
19722
|
+
/***/ }),
|
|
19723
|
+
|
|
19724
|
+
/***/ "./components/input/AutoComplete.tsx":
|
|
19725
|
+
/*!*******************************************!*\
|
|
19726
|
+
!*** ./components/input/AutoComplete.tsx ***!
|
|
19727
|
+
\*******************************************/
|
|
19728
|
+
/*! exports provided: default */
|
|
19729
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19730
|
+
|
|
19731
|
+
"use strict";
|
|
19732
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19733
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
19734
|
+
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
19735
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
19736
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
19737
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
19738
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
|
|
19739
|
+
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../select */ "./components/select/index.tsx");
|
|
19740
|
+
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/reactNode */ "./components/_util/reactNode.ts");
|
|
19741
|
+
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
19742
|
+
|
|
19743
|
+
|
|
19744
|
+
|
|
19745
|
+
|
|
19746
|
+
|
|
19747
|
+
|
|
19748
|
+
|
|
19749
|
+
var Option = _select__WEBPACK_IMPORTED_MODULE_4__["default"].Option;
|
|
19750
|
+
|
|
19751
|
+
function isSelectOptionOrSelectOptGroup(child) {
|
|
19752
|
+
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
|
|
19753
|
+
}
|
|
19754
|
+
|
|
19755
|
+
var AutoComplete = function AutoComplete(props, ref) {
|
|
19756
|
+
var _props$prefixCls = props.prefixCls,
|
|
19757
|
+
prefixCls = _props$prefixCls === void 0 ? 'acud-select' : _props$prefixCls,
|
|
19758
|
+
className = props.className,
|
|
19759
|
+
children = props.children;
|
|
19760
|
+
var childNodes = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__["default"])(children); // ============================= Input =============================
|
|
19761
|
+
|
|
19762
|
+
var customizeInput;
|
|
19763
|
+
|
|
19764
|
+
if (childNodes.length === 1 && Object(_util_reactNode__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
|
19765
|
+
var _childNodes = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(childNodes, 1);
|
|
19766
|
+
|
|
19767
|
+
customizeInput = _childNodes[0];
|
|
19768
|
+
}
|
|
19769
|
+
|
|
19770
|
+
var getInputElement = customizeInput ? function () {
|
|
19771
|
+
return customizeInput;
|
|
19772
|
+
} : undefined; // ============================ Options ============================
|
|
19773
|
+
|
|
19774
|
+
var optionChildren;
|
|
19775
|
+
|
|
19776
|
+
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
|
19777
|
+
optionChildren = children;
|
|
19778
|
+
} else {
|
|
19779
|
+
optionChildren = [];
|
|
19780
|
+
}
|
|
19781
|
+
|
|
19782
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_select__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
19783
|
+
ref: ref
|
|
19784
|
+
}, props, {
|
|
19785
|
+
prefixCls: prefixCls,
|
|
19786
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-auto-complete"), className),
|
|
19787
|
+
mode: _select__WEBPACK_IMPORTED_MODULE_4__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
|
|
19788
|
+
getInputElement: getInputElement
|
|
19789
|
+
}), optionChildren);
|
|
19790
|
+
};
|
|
19791
|
+
|
|
19792
|
+
var RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(AutoComplete);
|
|
19793
|
+
RefAutoComplete.Option = Option;
|
|
19794
|
+
/* harmony default export */ __webpack_exports__["default"] = (RefAutoComplete); // export default AutoComplete;
|
|
19795
|
+
|
|
19643
19796
|
/***/ }),
|
|
19644
19797
|
|
|
19645
19798
|
/***/ "./components/input/Input.tsx":
|
|
@@ -20387,9 +20540,9 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
20387
20540
|
|
|
20388
20541
|
|
|
20389
20542
|
|
|
20543
|
+
// const TextArea:React.FC<TextAreaProps> = props => {
|
|
20390
20544
|
|
|
20391
|
-
|
|
20392
|
-
var TextArea = function TextArea(props) {
|
|
20545
|
+
var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.forwardRef(function (props, ref) {
|
|
20393
20546
|
var _classNames;
|
|
20394
20547
|
|
|
20395
20548
|
var _props$prefixCls = props.prefixCls,
|
|
@@ -20497,6 +20650,7 @@ var TextArea = function TextArea(props) {
|
|
|
20497
20650
|
className: "".concat(prefixCls, "-outer"),
|
|
20498
20651
|
style: style
|
|
20499
20652
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rc_textarea__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rest, {
|
|
20653
|
+
ref: ref,
|
|
20500
20654
|
placeholder: placeholder,
|
|
20501
20655
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(classes),
|
|
20502
20656
|
onChange: handleOnChange,
|
|
@@ -20518,8 +20672,7 @@ var TextArea = function TextArea(props) {
|
|
|
20518
20672
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", {
|
|
20519
20673
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(limitClassName, 'limit')
|
|
20520
20674
|
}, currentLength, "/", limitLength)));
|
|
20521
|
-
};
|
|
20522
|
-
|
|
20675
|
+
});
|
|
20523
20676
|
/* harmony default export */ __webpack_exports__["default"] = (TextArea);
|
|
20524
20677
|
|
|
20525
20678
|
/***/ }),
|
|
@@ -20538,6 +20691,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20538
20691
|
/* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.tsx");
|
|
20539
20692
|
/* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Password */ "./components/input/Password.tsx");
|
|
20540
20693
|
/* harmony import */ var _MultiSelectInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MultiSelectInput */ "./components/input/MultiSelectInput.tsx");
|
|
20694
|
+
/* harmony import */ var _AutoComplete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AutoComplete */ "./components/input/AutoComplete.tsx");
|
|
20695
|
+
|
|
20541
20696
|
|
|
20542
20697
|
|
|
20543
20698
|
|
|
@@ -20548,6 +20703,7 @@ Input.Label = _Label__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
|
20548
20703
|
Input.TextArea = _TextArea__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
20549
20704
|
Input.Password = _Password__WEBPACK_IMPORTED_MODULE_3__["default"];
|
|
20550
20705
|
Input.MultiSelectInput = _MultiSelectInput__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
20706
|
+
Input.AutoComplete = _AutoComplete__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
20551
20707
|
/* harmony default export */ __webpack_exports__["default"] = (Input);
|
|
20552
20708
|
|
|
20553
20709
|
/***/ }),
|
|
@@ -21102,8 +21258,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21102
21258
|
|
|
21103
21259
|
"use strict";
|
|
21104
21260
|
__webpack_require__.r(__webpack_exports__);
|
|
21261
|
+
/* harmony import */ var _date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../date-picker/locale/zh_CN */ "./components/date-picker/locale/zh_CN.tsx");
|
|
21105
21262
|
/* eslint-disable no-template-curly-in-string */
|
|
21106
21263
|
// import {Locale} from '../locale-provider';
|
|
21264
|
+
|
|
21107
21265
|
var typeTemplate = '${label}不是一个有效的${type}'; // const localeValues: Locale = {
|
|
21108
21266
|
|
|
21109
21267
|
var localeValues = {
|
|
@@ -21112,6 +21270,7 @@ var localeValues = {
|
|
|
21112
21270
|
global: {
|
|
21113
21271
|
placeholder: '请选择'
|
|
21114
21272
|
},
|
|
21273
|
+
DatePicker: _date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
21115
21274
|
Table: {
|
|
21116
21275
|
filterTitle: '筛选',
|
|
21117
21276
|
filterConfirm: '确定',
|
|
@@ -40809,6 +40968,32 @@ var locale = {
|
|
|
40809
40968
|
|
|
40810
40969
|
/***/ }),
|
|
40811
40970
|
|
|
40971
|
+
/***/ "./components/time-picker/locale/zh_CN.tsx":
|
|
40972
|
+
/*!*************************************************!*\
|
|
40973
|
+
!*** ./components/time-picker/locale/zh_CN.tsx ***!
|
|
40974
|
+
\*************************************************/
|
|
40975
|
+
/*! exports provided: default */
|
|
40976
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
40977
|
+
|
|
40978
|
+
"use strict";
|
|
40979
|
+
__webpack_require__.r(__webpack_exports__);
|
|
40980
|
+
var locale = {
|
|
40981
|
+
lang: {
|
|
40982
|
+
locale: 'zh_CN',
|
|
40983
|
+
now: '此刻',
|
|
40984
|
+
ok: '确定',
|
|
40985
|
+
timeSelect: '选择时间',
|
|
40986
|
+
clear: '清除'
|
|
40987
|
+
},
|
|
40988
|
+
timePickerLocale: {
|
|
40989
|
+
placeholder: '请选择时间',
|
|
40990
|
+
rangePlaceholder: ['开始时间', '结束时间']
|
|
40991
|
+
}
|
|
40992
|
+
};
|
|
40993
|
+
/* harmony default export */ __webpack_exports__["default"] = (locale);
|
|
40994
|
+
|
|
40995
|
+
/***/ }),
|
|
40996
|
+
|
|
40812
40997
|
/***/ "./components/time-picker/style/index.less":
|
|
40813
40998
|
/*!*************************************************!*\
|
|
40814
40999
|
!*** ./components/time-picker/style/index.less ***!
|
|
@@ -41615,8 +41800,8 @@ function ToastDom(props) {
|
|
|
41615
41800
|
onClose = _props$onClose === void 0 ? null : _props$onClose;
|
|
41616
41801
|
|
|
41617
41802
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(null),
|
|
41618
|
-
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState,
|
|
41619
|
-
setTimerID = _useState2[
|
|
41803
|
+
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
41804
|
+
setTimerID = _useState2[1];
|
|
41620
41805
|
|
|
41621
41806
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(countdown),
|
|
41622
41807
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2),
|
|
@@ -44876,6 +45061,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
44876
45061
|
type = props.type,
|
|
44877
45062
|
children = props.children,
|
|
44878
45063
|
style = props.style,
|
|
45064
|
+
motionDeadline = props.motionDeadline,
|
|
44879
45065
|
itemRender = props.itemRender,
|
|
44880
45066
|
maxCount = props.maxCount,
|
|
44881
45067
|
description = props.description,
|
|
@@ -45220,6 +45406,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
45220
45406
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_UploadList__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
45221
45407
|
listType: listType,
|
|
45222
45408
|
items: mergedFileList,
|
|
45409
|
+
motionDeadline: motionDeadline,
|
|
45223
45410
|
previewFile: previewFile,
|
|
45224
45411
|
onPreview: onPreview,
|
|
45225
45412
|
onDownload: onDownload,
|
|
@@ -45369,6 +45556,8 @@ var ListItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](fun
|
|
|
45369
45556
|
actionIconRender = _ref.actionIconRender,
|
|
45370
45557
|
itemRender = _ref.itemRender,
|
|
45371
45558
|
isImgUrl = _ref.isImgUrl,
|
|
45559
|
+
_ref$motionDeadline = _ref.motionDeadline,
|
|
45560
|
+
motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
|
|
45372
45561
|
showPreviewIcon = _ref.showPreviewIcon,
|
|
45373
45562
|
showRemoveIcon = _ref.showRemoveIcon,
|
|
45374
45563
|
showDownloadIcon = _ref.showDownloadIcon,
|
|
@@ -45523,7 +45712,7 @@ var ListItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](fun
|
|
|
45523
45712
|
}, iconAndPreview), actions, showProgress && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
45524
45713
|
motionName: "".concat(rootPrefixCls, "-fade"),
|
|
45525
45714
|
visible: file.status === 'uploading',
|
|
45526
|
-
motionDeadline:
|
|
45715
|
+
motionDeadline: motionDeadline
|
|
45527
45716
|
}, function (_ref2) {
|
|
45528
45717
|
var motionClassName = _ref2.className;
|
|
45529
45718
|
// show loading icon if upload progress listener is disabled
|
|
@@ -45682,6 +45871,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
45682
45871
|
downloadIcon = _ref.downloadIcon,
|
|
45683
45872
|
uploadIcon = _ref.uploadIcon,
|
|
45684
45873
|
progress = _ref.progress,
|
|
45874
|
+
_ref$motionDeadline = _ref.motionDeadline,
|
|
45875
|
+
motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
|
|
45685
45876
|
appendAction = _ref.appendAction,
|
|
45686
45877
|
itemRender = _ref.itemRender;
|
|
45687
45878
|
var forceUpdate = Object(_util_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_20__["default"])();
|
|
@@ -45818,7 +46009,7 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
45818
46009
|
var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate'; // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;
|
|
45819
46010
|
|
|
45820
46011
|
var motionConfig = {
|
|
45821
|
-
motionDeadline:
|
|
46012
|
+
motionDeadline: motionDeadline,
|
|
45822
46013
|
motionName: "".concat(prefixCls, "-").concat(animationDirection),
|
|
45823
46014
|
keys: motionKeyList,
|
|
45824
46015
|
motionAppear: motionAppear
|
|
@@ -45871,7 +46062,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
45871
46062
|
onPreview: onInternalPreview,
|
|
45872
46063
|
onDownload: onInternalDownload,
|
|
45873
46064
|
onClose: onInternalClose,
|
|
45874
|
-
onUpload: onInternalUpload
|
|
46065
|
+
onUpload: onInternalUpload,
|
|
46066
|
+
motionDeadline: motionDeadline
|
|
45875
46067
|
});
|
|
45876
46068
|
}));
|
|
45877
46069
|
};
|
|
@@ -45884,6 +46076,7 @@ UploadList.defaultProps = {
|
|
|
45884
46076
|
// showInfo: false
|
|
45885
46077
|
},
|
|
45886
46078
|
showUploadIcon: true,
|
|
46079
|
+
motionDeadline: 2000,
|
|
45887
46080
|
showRemoveIcon: true,
|
|
45888
46081
|
showDownloadIcon: false,
|
|
45889
46082
|
showPreviewIcon: true,
|
|
@@ -46407,7 +46600,6 @@ function RawList(props, ref) {
|
|
|
46407
46600
|
} // Always use virtual scroll bar in avoid shaking
|
|
46408
46601
|
|
|
46409
46602
|
|
|
46410
|
-
// Always use virtual scroll bar in avoid shaking
|
|
46411
46603
|
if (!inVirtual) {
|
|
46412
46604
|
return {
|
|
46413
46605
|
scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
|
|
@@ -46429,14 +46621,12 @@ function RawList(props, ref) {
|
|
|
46429
46621
|
var cacheHeight = heights.get(key);
|
|
46430
46622
|
var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
|
|
46431
46623
|
|
|
46432
|
-
// Check item top in the range
|
|
46433
46624
|
if (currentItemBottom >= scrollTop && startIndex === undefined) {
|
|
46434
46625
|
startIndex = i;
|
|
46435
46626
|
startOffset = itemTop;
|
|
46436
46627
|
} // Check item bottom in the range. We will render additional one item for motion usage
|
|
46437
46628
|
|
|
46438
46629
|
|
|
46439
|
-
// Check item bottom in the range. We will render additional one item for motion usage
|
|
46440
46630
|
if (currentItemBottom > scrollTop + height && endIndex === undefined) {
|
|
46441
46631
|
endIndex = i;
|
|
46442
46632
|
}
|
|
@@ -46447,9 +46637,6 @@ function RawList(props, ref) {
|
|
|
46447
46637
|
/* istanbul ignore next */
|
|
46448
46638
|
|
|
46449
46639
|
|
|
46450
|
-
// Fallback to normal if not match. This code should never reach
|
|
46451
|
-
|
|
46452
|
-
/* istanbul ignore next */
|
|
46453
46640
|
if (startIndex === undefined) {
|
|
46454
46641
|
startIndex = 0;
|
|
46455
46642
|
startOffset = 0;
|
|
@@ -46460,7 +46647,6 @@ function RawList(props, ref) {
|
|
|
46460
46647
|
} // Give cache to improve scroll experience
|
|
46461
46648
|
|
|
46462
46649
|
|
|
46463
|
-
// Give cache to improve scroll experience
|
|
46464
46650
|
endIndex = Math.min(endIndex + 1, mergedData.length);
|
|
46465
46651
|
return {
|
|
46466
46652
|
scrollHeight: itemTop,
|
|
@@ -47834,7 +48020,7 @@ function _defineProperty(obj, key, value) {
|
|
|
47834
48020
|
__webpack_require__.r(__webpack_exports__);
|
|
47835
48021
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
|
|
47836
48022
|
function _extends() {
|
|
47837
|
-
_extends = Object.assign
|
|
48023
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
47838
48024
|
for (var i = 1; i < arguments.length; i++) {
|
|
47839
48025
|
var source = arguments[i];
|
|
47840
48026
|
|
|
@@ -47847,7 +48033,6 @@ function _extends() {
|
|
|
47847
48033
|
|
|
47848
48034
|
return target;
|
|
47849
48035
|
};
|
|
47850
|
-
|
|
47851
48036
|
return _extends.apply(this, arguments);
|
|
47852
48037
|
}
|
|
47853
48038
|
|
|
@@ -47867,7 +48052,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47867
48052
|
|
|
47868
48053
|
function _get() {
|
|
47869
48054
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
47870
|
-
_get = Reflect.get;
|
|
48055
|
+
_get = Reflect.get.bind();
|
|
47871
48056
|
} else {
|
|
47872
48057
|
_get = function _get(target, property, receiver) {
|
|
47873
48058
|
var base = Object(_superPropBase_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, property);
|
|
@@ -47898,7 +48083,7 @@ function _get() {
|
|
|
47898
48083
|
__webpack_require__.r(__webpack_exports__);
|
|
47899
48084
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
|
|
47900
48085
|
function _getPrototypeOf(o) {
|
|
47901
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
48086
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
47902
48087
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
47903
48088
|
};
|
|
47904
48089
|
return _getPrototypeOf(o);
|
|
@@ -48180,6 +48365,372 @@ function _possibleConstructorReturn(self, call) {
|
|
|
48180
48365
|
|
|
48181
48366
|
/***/ }),
|
|
48182
48367
|
|
|
48368
|
+
/***/ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":
|
|
48369
|
+
/*!***********************************************************************!*\
|
|
48370
|
+
!*** ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js ***!
|
|
48371
|
+
\***********************************************************************/
|
|
48372
|
+
/*! exports provided: default */
|
|
48373
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
48374
|
+
|
|
48375
|
+
"use strict";
|
|
48376
|
+
__webpack_require__.r(__webpack_exports__);
|
|
48377
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _regeneratorRuntime; });
|
|
48378
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
48379
|
+
|
|
48380
|
+
function _regeneratorRuntime() {
|
|
48381
|
+
"use strict";
|
|
48382
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
48383
|
+
|
|
48384
|
+
_regeneratorRuntime = function _regeneratorRuntime() {
|
|
48385
|
+
return exports;
|
|
48386
|
+
};
|
|
48387
|
+
|
|
48388
|
+
var exports = {},
|
|
48389
|
+
Op = Object.prototype,
|
|
48390
|
+
hasOwn = Op.hasOwnProperty,
|
|
48391
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
48392
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
48393
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
48394
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
48395
|
+
|
|
48396
|
+
function define(obj, key, value) {
|
|
48397
|
+
return Object.defineProperty(obj, key, {
|
|
48398
|
+
value: value,
|
|
48399
|
+
enumerable: !0,
|
|
48400
|
+
configurable: !0,
|
|
48401
|
+
writable: !0
|
|
48402
|
+
}), obj[key];
|
|
48403
|
+
}
|
|
48404
|
+
|
|
48405
|
+
try {
|
|
48406
|
+
define({}, "");
|
|
48407
|
+
} catch (err) {
|
|
48408
|
+
define = function define(obj, key, value) {
|
|
48409
|
+
return obj[key] = value;
|
|
48410
|
+
};
|
|
48411
|
+
}
|
|
48412
|
+
|
|
48413
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
48414
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
48415
|
+
generator = Object.create(protoGenerator.prototype),
|
|
48416
|
+
context = new Context(tryLocsList || []);
|
|
48417
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
48418
|
+
var state = "suspendedStart";
|
|
48419
|
+
return function (method, arg) {
|
|
48420
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
48421
|
+
|
|
48422
|
+
if ("completed" === state) {
|
|
48423
|
+
if ("throw" === method) throw arg;
|
|
48424
|
+
return doneResult();
|
|
48425
|
+
}
|
|
48426
|
+
|
|
48427
|
+
for (context.method = method, context.arg = arg;;) {
|
|
48428
|
+
var delegate = context.delegate;
|
|
48429
|
+
|
|
48430
|
+
if (delegate) {
|
|
48431
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
48432
|
+
|
|
48433
|
+
if (delegateResult) {
|
|
48434
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
48435
|
+
return delegateResult;
|
|
48436
|
+
}
|
|
48437
|
+
}
|
|
48438
|
+
|
|
48439
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
48440
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
48441
|
+
context.dispatchException(context.arg);
|
|
48442
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
48443
|
+
state = "executing";
|
|
48444
|
+
var record = tryCatch(innerFn, self, context);
|
|
48445
|
+
|
|
48446
|
+
if ("normal" === record.type) {
|
|
48447
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
48448
|
+
return {
|
|
48449
|
+
value: record.arg,
|
|
48450
|
+
done: context.done
|
|
48451
|
+
};
|
|
48452
|
+
}
|
|
48453
|
+
|
|
48454
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
48455
|
+
}
|
|
48456
|
+
};
|
|
48457
|
+
}(innerFn, self, context), generator;
|
|
48458
|
+
}
|
|
48459
|
+
|
|
48460
|
+
function tryCatch(fn, obj, arg) {
|
|
48461
|
+
try {
|
|
48462
|
+
return {
|
|
48463
|
+
type: "normal",
|
|
48464
|
+
arg: fn.call(obj, arg)
|
|
48465
|
+
};
|
|
48466
|
+
} catch (err) {
|
|
48467
|
+
return {
|
|
48468
|
+
type: "throw",
|
|
48469
|
+
arg: err
|
|
48470
|
+
};
|
|
48471
|
+
}
|
|
48472
|
+
}
|
|
48473
|
+
|
|
48474
|
+
exports.wrap = wrap;
|
|
48475
|
+
var ContinueSentinel = {};
|
|
48476
|
+
|
|
48477
|
+
function Generator() {}
|
|
48478
|
+
|
|
48479
|
+
function GeneratorFunction() {}
|
|
48480
|
+
|
|
48481
|
+
function GeneratorFunctionPrototype() {}
|
|
48482
|
+
|
|
48483
|
+
var IteratorPrototype = {};
|
|
48484
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
48485
|
+
return this;
|
|
48486
|
+
});
|
|
48487
|
+
var getProto = Object.getPrototypeOf,
|
|
48488
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
48489
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
48490
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
48491
|
+
|
|
48492
|
+
function defineIteratorMethods(prototype) {
|
|
48493
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
48494
|
+
define(prototype, method, function (arg) {
|
|
48495
|
+
return this._invoke(method, arg);
|
|
48496
|
+
});
|
|
48497
|
+
});
|
|
48498
|
+
}
|
|
48499
|
+
|
|
48500
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
48501
|
+
function invoke(method, arg, resolve, reject) {
|
|
48502
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
48503
|
+
|
|
48504
|
+
if ("throw" !== record.type) {
|
|
48505
|
+
var result = record.arg,
|
|
48506
|
+
value = result.value;
|
|
48507
|
+
return value && "object" == Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
48508
|
+
invoke("next", value, resolve, reject);
|
|
48509
|
+
}, function (err) {
|
|
48510
|
+
invoke("throw", err, resolve, reject);
|
|
48511
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
48512
|
+
result.value = unwrapped, resolve(result);
|
|
48513
|
+
}, function (error) {
|
|
48514
|
+
return invoke("throw", error, resolve, reject);
|
|
48515
|
+
});
|
|
48516
|
+
}
|
|
48517
|
+
|
|
48518
|
+
reject(record.arg);
|
|
48519
|
+
}
|
|
48520
|
+
|
|
48521
|
+
var previousPromise;
|
|
48522
|
+
|
|
48523
|
+
this._invoke = function (method, arg) {
|
|
48524
|
+
function callInvokeWithMethodAndArg() {
|
|
48525
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
48526
|
+
invoke(method, arg, resolve, reject);
|
|
48527
|
+
});
|
|
48528
|
+
}
|
|
48529
|
+
|
|
48530
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
48531
|
+
};
|
|
48532
|
+
}
|
|
48533
|
+
|
|
48534
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
48535
|
+
var method = delegate.iterator[context.method];
|
|
48536
|
+
|
|
48537
|
+
if (undefined === method) {
|
|
48538
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
48539
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
48540
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
48541
|
+
}
|
|
48542
|
+
|
|
48543
|
+
return ContinueSentinel;
|
|
48544
|
+
}
|
|
48545
|
+
|
|
48546
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
48547
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
48548
|
+
var info = record.arg;
|
|
48549
|
+
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);
|
|
48550
|
+
}
|
|
48551
|
+
|
|
48552
|
+
function pushTryEntry(locs) {
|
|
48553
|
+
var entry = {
|
|
48554
|
+
tryLoc: locs[0]
|
|
48555
|
+
};
|
|
48556
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
48557
|
+
}
|
|
48558
|
+
|
|
48559
|
+
function resetTryEntry(entry) {
|
|
48560
|
+
var record = entry.completion || {};
|
|
48561
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
48562
|
+
}
|
|
48563
|
+
|
|
48564
|
+
function Context(tryLocsList) {
|
|
48565
|
+
this.tryEntries = [{
|
|
48566
|
+
tryLoc: "root"
|
|
48567
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
48568
|
+
}
|
|
48569
|
+
|
|
48570
|
+
function values(iterable) {
|
|
48571
|
+
if (iterable) {
|
|
48572
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
48573
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
48574
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
48575
|
+
|
|
48576
|
+
if (!isNaN(iterable.length)) {
|
|
48577
|
+
var i = -1,
|
|
48578
|
+
next = function next() {
|
|
48579
|
+
for (; ++i < iterable.length;) {
|
|
48580
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
48581
|
+
}
|
|
48582
|
+
|
|
48583
|
+
return next.value = undefined, next.done = !0, next;
|
|
48584
|
+
};
|
|
48585
|
+
|
|
48586
|
+
return next.next = next;
|
|
48587
|
+
}
|
|
48588
|
+
}
|
|
48589
|
+
|
|
48590
|
+
return {
|
|
48591
|
+
next: doneResult
|
|
48592
|
+
};
|
|
48593
|
+
}
|
|
48594
|
+
|
|
48595
|
+
function doneResult() {
|
|
48596
|
+
return {
|
|
48597
|
+
value: undefined,
|
|
48598
|
+
done: !0
|
|
48599
|
+
};
|
|
48600
|
+
}
|
|
48601
|
+
|
|
48602
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
48603
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
48604
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
48605
|
+
}, exports.mark = function (genFun) {
|
|
48606
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
48607
|
+
}, exports.awrap = function (arg) {
|
|
48608
|
+
return {
|
|
48609
|
+
__await: arg
|
|
48610
|
+
};
|
|
48611
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
48612
|
+
return this;
|
|
48613
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
48614
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
48615
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
48616
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
48617
|
+
return result.done ? result.value : iter.next();
|
|
48618
|
+
});
|
|
48619
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
48620
|
+
return this;
|
|
48621
|
+
}), define(Gp, "toString", function () {
|
|
48622
|
+
return "[object Generator]";
|
|
48623
|
+
}), exports.keys = function (object) {
|
|
48624
|
+
var keys = [];
|
|
48625
|
+
|
|
48626
|
+
for (var key in object) {
|
|
48627
|
+
keys.push(key);
|
|
48628
|
+
}
|
|
48629
|
+
|
|
48630
|
+
return keys.reverse(), function next() {
|
|
48631
|
+
for (; keys.length;) {
|
|
48632
|
+
var key = keys.pop();
|
|
48633
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
48634
|
+
}
|
|
48635
|
+
|
|
48636
|
+
return next.done = !0, next;
|
|
48637
|
+
};
|
|
48638
|
+
}, exports.values = values, Context.prototype = {
|
|
48639
|
+
constructor: Context,
|
|
48640
|
+
reset: function reset(skipTempReset) {
|
|
48641
|
+
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) {
|
|
48642
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
48643
|
+
}
|
|
48644
|
+
},
|
|
48645
|
+
stop: function stop() {
|
|
48646
|
+
this.done = !0;
|
|
48647
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
48648
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
48649
|
+
return this.rval;
|
|
48650
|
+
},
|
|
48651
|
+
dispatchException: function dispatchException(exception) {
|
|
48652
|
+
if (this.done) throw exception;
|
|
48653
|
+
var context = this;
|
|
48654
|
+
|
|
48655
|
+
function handle(loc, caught) {
|
|
48656
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
48657
|
+
}
|
|
48658
|
+
|
|
48659
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
48660
|
+
var entry = this.tryEntries[i],
|
|
48661
|
+
record = entry.completion;
|
|
48662
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
48663
|
+
|
|
48664
|
+
if (entry.tryLoc <= this.prev) {
|
|
48665
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
48666
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
48667
|
+
|
|
48668
|
+
if (hasCatch && hasFinally) {
|
|
48669
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
48670
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
48671
|
+
} else if (hasCatch) {
|
|
48672
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
48673
|
+
} else {
|
|
48674
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
48675
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
48676
|
+
}
|
|
48677
|
+
}
|
|
48678
|
+
}
|
|
48679
|
+
},
|
|
48680
|
+
abrupt: function abrupt(type, arg) {
|
|
48681
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
48682
|
+
var entry = this.tryEntries[i];
|
|
48683
|
+
|
|
48684
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
48685
|
+
var finallyEntry = entry;
|
|
48686
|
+
break;
|
|
48687
|
+
}
|
|
48688
|
+
}
|
|
48689
|
+
|
|
48690
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
48691
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
48692
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
48693
|
+
},
|
|
48694
|
+
complete: function complete(record, afterLoc) {
|
|
48695
|
+
if ("throw" === record.type) throw record.arg;
|
|
48696
|
+
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;
|
|
48697
|
+
},
|
|
48698
|
+
finish: function finish(finallyLoc) {
|
|
48699
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
48700
|
+
var entry = this.tryEntries[i];
|
|
48701
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
48702
|
+
}
|
|
48703
|
+
},
|
|
48704
|
+
"catch": function _catch(tryLoc) {
|
|
48705
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
48706
|
+
var entry = this.tryEntries[i];
|
|
48707
|
+
|
|
48708
|
+
if (entry.tryLoc === tryLoc) {
|
|
48709
|
+
var record = entry.completion;
|
|
48710
|
+
|
|
48711
|
+
if ("throw" === record.type) {
|
|
48712
|
+
var thrown = record.arg;
|
|
48713
|
+
resetTryEntry(entry);
|
|
48714
|
+
}
|
|
48715
|
+
|
|
48716
|
+
return thrown;
|
|
48717
|
+
}
|
|
48718
|
+
}
|
|
48719
|
+
|
|
48720
|
+
throw new Error("illegal catch attempt");
|
|
48721
|
+
},
|
|
48722
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
48723
|
+
return this.delegate = {
|
|
48724
|
+
iterator: values(iterable),
|
|
48725
|
+
resultName: resultName,
|
|
48726
|
+
nextLoc: nextLoc
|
|
48727
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
48728
|
+
}
|
|
48729
|
+
}, exports;
|
|
48730
|
+
}
|
|
48731
|
+
|
|
48732
|
+
/***/ }),
|
|
48733
|
+
|
|
48183
48734
|
/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
48184
48735
|
/*!*******************************************************************!*\
|
|
48185
48736
|
!*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
@@ -48191,11 +48742,10 @@ function _possibleConstructorReturn(self, call) {
|
|
|
48191
48742
|
__webpack_require__.r(__webpack_exports__);
|
|
48192
48743
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
|
|
48193
48744
|
function _setPrototypeOf(o, p) {
|
|
48194
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
48745
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
48195
48746
|
o.__proto__ = p;
|
|
48196
48747
|
return o;
|
|
48197
48748
|
};
|
|
48198
|
-
|
|
48199
48749
|
return _setPrototypeOf(o, p);
|
|
48200
48750
|
}
|
|
48201
48751
|
|
|
@@ -48341,6 +48891,391 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
48341
48891
|
|
|
48342
48892
|
/***/ }),
|
|
48343
48893
|
|
|
48894
|
+
/***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
|
|
48895
|
+
/*!*******************************************************************!*\
|
|
48896
|
+
!*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
|
|
48897
|
+
\*******************************************************************/
|
|
48898
|
+
/*! no static exports found */
|
|
48899
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48900
|
+
|
|
48901
|
+
var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
|
|
48902
|
+
|
|
48903
|
+
function _regeneratorRuntime() {
|
|
48904
|
+
"use strict";
|
|
48905
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
48906
|
+
|
|
48907
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
48908
|
+
return exports;
|
|
48909
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
48910
|
+
var exports = {},
|
|
48911
|
+
Op = Object.prototype,
|
|
48912
|
+
hasOwn = Op.hasOwnProperty,
|
|
48913
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
48914
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
48915
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
48916
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
48917
|
+
|
|
48918
|
+
function define(obj, key, value) {
|
|
48919
|
+
return Object.defineProperty(obj, key, {
|
|
48920
|
+
value: value,
|
|
48921
|
+
enumerable: !0,
|
|
48922
|
+
configurable: !0,
|
|
48923
|
+
writable: !0
|
|
48924
|
+
}), obj[key];
|
|
48925
|
+
}
|
|
48926
|
+
|
|
48927
|
+
try {
|
|
48928
|
+
define({}, "");
|
|
48929
|
+
} catch (err) {
|
|
48930
|
+
define = function define(obj, key, value) {
|
|
48931
|
+
return obj[key] = value;
|
|
48932
|
+
};
|
|
48933
|
+
}
|
|
48934
|
+
|
|
48935
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
48936
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
48937
|
+
generator = Object.create(protoGenerator.prototype),
|
|
48938
|
+
context = new Context(tryLocsList || []);
|
|
48939
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
48940
|
+
var state = "suspendedStart";
|
|
48941
|
+
return function (method, arg) {
|
|
48942
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
48943
|
+
|
|
48944
|
+
if ("completed" === state) {
|
|
48945
|
+
if ("throw" === method) throw arg;
|
|
48946
|
+
return doneResult();
|
|
48947
|
+
}
|
|
48948
|
+
|
|
48949
|
+
for (context.method = method, context.arg = arg;;) {
|
|
48950
|
+
var delegate = context.delegate;
|
|
48951
|
+
|
|
48952
|
+
if (delegate) {
|
|
48953
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
48954
|
+
|
|
48955
|
+
if (delegateResult) {
|
|
48956
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
48957
|
+
return delegateResult;
|
|
48958
|
+
}
|
|
48959
|
+
}
|
|
48960
|
+
|
|
48961
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
48962
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
48963
|
+
context.dispatchException(context.arg);
|
|
48964
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
48965
|
+
state = "executing";
|
|
48966
|
+
var record = tryCatch(innerFn, self, context);
|
|
48967
|
+
|
|
48968
|
+
if ("normal" === record.type) {
|
|
48969
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
48970
|
+
return {
|
|
48971
|
+
value: record.arg,
|
|
48972
|
+
done: context.done
|
|
48973
|
+
};
|
|
48974
|
+
}
|
|
48975
|
+
|
|
48976
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
48977
|
+
}
|
|
48978
|
+
};
|
|
48979
|
+
}(innerFn, self, context), generator;
|
|
48980
|
+
}
|
|
48981
|
+
|
|
48982
|
+
function tryCatch(fn, obj, arg) {
|
|
48983
|
+
try {
|
|
48984
|
+
return {
|
|
48985
|
+
type: "normal",
|
|
48986
|
+
arg: fn.call(obj, arg)
|
|
48987
|
+
};
|
|
48988
|
+
} catch (err) {
|
|
48989
|
+
return {
|
|
48990
|
+
type: "throw",
|
|
48991
|
+
arg: err
|
|
48992
|
+
};
|
|
48993
|
+
}
|
|
48994
|
+
}
|
|
48995
|
+
|
|
48996
|
+
exports.wrap = wrap;
|
|
48997
|
+
var ContinueSentinel = {};
|
|
48998
|
+
|
|
48999
|
+
function Generator() {}
|
|
49000
|
+
|
|
49001
|
+
function GeneratorFunction() {}
|
|
49002
|
+
|
|
49003
|
+
function GeneratorFunctionPrototype() {}
|
|
49004
|
+
|
|
49005
|
+
var IteratorPrototype = {};
|
|
49006
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
49007
|
+
return this;
|
|
49008
|
+
});
|
|
49009
|
+
var getProto = Object.getPrototypeOf,
|
|
49010
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
49011
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
49012
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
49013
|
+
|
|
49014
|
+
function defineIteratorMethods(prototype) {
|
|
49015
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
49016
|
+
define(prototype, method, function (arg) {
|
|
49017
|
+
return this._invoke(method, arg);
|
|
49018
|
+
});
|
|
49019
|
+
});
|
|
49020
|
+
}
|
|
49021
|
+
|
|
49022
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
49023
|
+
function invoke(method, arg, resolve, reject) {
|
|
49024
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
49025
|
+
|
|
49026
|
+
if ("throw" !== record.type) {
|
|
49027
|
+
var result = record.arg,
|
|
49028
|
+
value = result.value;
|
|
49029
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
49030
|
+
invoke("next", value, resolve, reject);
|
|
49031
|
+
}, function (err) {
|
|
49032
|
+
invoke("throw", err, resolve, reject);
|
|
49033
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
49034
|
+
result.value = unwrapped, resolve(result);
|
|
49035
|
+
}, function (error) {
|
|
49036
|
+
return invoke("throw", error, resolve, reject);
|
|
49037
|
+
});
|
|
49038
|
+
}
|
|
49039
|
+
|
|
49040
|
+
reject(record.arg);
|
|
49041
|
+
}
|
|
49042
|
+
|
|
49043
|
+
var previousPromise;
|
|
49044
|
+
|
|
49045
|
+
this._invoke = function (method, arg) {
|
|
49046
|
+
function callInvokeWithMethodAndArg() {
|
|
49047
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
49048
|
+
invoke(method, arg, resolve, reject);
|
|
49049
|
+
});
|
|
49050
|
+
}
|
|
49051
|
+
|
|
49052
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
49053
|
+
};
|
|
49054
|
+
}
|
|
49055
|
+
|
|
49056
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
49057
|
+
var method = delegate.iterator[context.method];
|
|
49058
|
+
|
|
49059
|
+
if (undefined === method) {
|
|
49060
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
49061
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
49062
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
49063
|
+
}
|
|
49064
|
+
|
|
49065
|
+
return ContinueSentinel;
|
|
49066
|
+
}
|
|
49067
|
+
|
|
49068
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
49069
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
49070
|
+
var info = record.arg;
|
|
49071
|
+
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);
|
|
49072
|
+
}
|
|
49073
|
+
|
|
49074
|
+
function pushTryEntry(locs) {
|
|
49075
|
+
var entry = {
|
|
49076
|
+
tryLoc: locs[0]
|
|
49077
|
+
};
|
|
49078
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
49079
|
+
}
|
|
49080
|
+
|
|
49081
|
+
function resetTryEntry(entry) {
|
|
49082
|
+
var record = entry.completion || {};
|
|
49083
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
49084
|
+
}
|
|
49085
|
+
|
|
49086
|
+
function Context(tryLocsList) {
|
|
49087
|
+
this.tryEntries = [{
|
|
49088
|
+
tryLoc: "root"
|
|
49089
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
49090
|
+
}
|
|
49091
|
+
|
|
49092
|
+
function values(iterable) {
|
|
49093
|
+
if (iterable) {
|
|
49094
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
49095
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
49096
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
49097
|
+
|
|
49098
|
+
if (!isNaN(iterable.length)) {
|
|
49099
|
+
var i = -1,
|
|
49100
|
+
next = function next() {
|
|
49101
|
+
for (; ++i < iterable.length;) {
|
|
49102
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
49103
|
+
}
|
|
49104
|
+
|
|
49105
|
+
return next.value = undefined, next.done = !0, next;
|
|
49106
|
+
};
|
|
49107
|
+
|
|
49108
|
+
return next.next = next;
|
|
49109
|
+
}
|
|
49110
|
+
}
|
|
49111
|
+
|
|
49112
|
+
return {
|
|
49113
|
+
next: doneResult
|
|
49114
|
+
};
|
|
49115
|
+
}
|
|
49116
|
+
|
|
49117
|
+
function doneResult() {
|
|
49118
|
+
return {
|
|
49119
|
+
value: undefined,
|
|
49120
|
+
done: !0
|
|
49121
|
+
};
|
|
49122
|
+
}
|
|
49123
|
+
|
|
49124
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
49125
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
49126
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
49127
|
+
}, exports.mark = function (genFun) {
|
|
49128
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
49129
|
+
}, exports.awrap = function (arg) {
|
|
49130
|
+
return {
|
|
49131
|
+
__await: arg
|
|
49132
|
+
};
|
|
49133
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
49134
|
+
return this;
|
|
49135
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
49136
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
49137
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
49138
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
49139
|
+
return result.done ? result.value : iter.next();
|
|
49140
|
+
});
|
|
49141
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
49142
|
+
return this;
|
|
49143
|
+
}), define(Gp, "toString", function () {
|
|
49144
|
+
return "[object Generator]";
|
|
49145
|
+
}), exports.keys = function (object) {
|
|
49146
|
+
var keys = [];
|
|
49147
|
+
|
|
49148
|
+
for (var key in object) {
|
|
49149
|
+
keys.push(key);
|
|
49150
|
+
}
|
|
49151
|
+
|
|
49152
|
+
return keys.reverse(), function next() {
|
|
49153
|
+
for (; keys.length;) {
|
|
49154
|
+
var key = keys.pop();
|
|
49155
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
49156
|
+
}
|
|
49157
|
+
|
|
49158
|
+
return next.done = !0, next;
|
|
49159
|
+
};
|
|
49160
|
+
}, exports.values = values, Context.prototype = {
|
|
49161
|
+
constructor: Context,
|
|
49162
|
+
reset: function reset(skipTempReset) {
|
|
49163
|
+
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) {
|
|
49164
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
49165
|
+
}
|
|
49166
|
+
},
|
|
49167
|
+
stop: function stop() {
|
|
49168
|
+
this.done = !0;
|
|
49169
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
49170
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
49171
|
+
return this.rval;
|
|
49172
|
+
},
|
|
49173
|
+
dispatchException: function dispatchException(exception) {
|
|
49174
|
+
if (this.done) throw exception;
|
|
49175
|
+
var context = this;
|
|
49176
|
+
|
|
49177
|
+
function handle(loc, caught) {
|
|
49178
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
49179
|
+
}
|
|
49180
|
+
|
|
49181
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
49182
|
+
var entry = this.tryEntries[i],
|
|
49183
|
+
record = entry.completion;
|
|
49184
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
49185
|
+
|
|
49186
|
+
if (entry.tryLoc <= this.prev) {
|
|
49187
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
49188
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
49189
|
+
|
|
49190
|
+
if (hasCatch && hasFinally) {
|
|
49191
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
49192
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
49193
|
+
} else if (hasCatch) {
|
|
49194
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
49195
|
+
} else {
|
|
49196
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
49197
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
49198
|
+
}
|
|
49199
|
+
}
|
|
49200
|
+
}
|
|
49201
|
+
},
|
|
49202
|
+
abrupt: function abrupt(type, arg) {
|
|
49203
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
49204
|
+
var entry = this.tryEntries[i];
|
|
49205
|
+
|
|
49206
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
49207
|
+
var finallyEntry = entry;
|
|
49208
|
+
break;
|
|
49209
|
+
}
|
|
49210
|
+
}
|
|
49211
|
+
|
|
49212
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
49213
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
49214
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
49215
|
+
},
|
|
49216
|
+
complete: function complete(record, afterLoc) {
|
|
49217
|
+
if ("throw" === record.type) throw record.arg;
|
|
49218
|
+
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;
|
|
49219
|
+
},
|
|
49220
|
+
finish: function finish(finallyLoc) {
|
|
49221
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
49222
|
+
var entry = this.tryEntries[i];
|
|
49223
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
49224
|
+
}
|
|
49225
|
+
},
|
|
49226
|
+
"catch": function _catch(tryLoc) {
|
|
49227
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
49228
|
+
var entry = this.tryEntries[i];
|
|
49229
|
+
|
|
49230
|
+
if (entry.tryLoc === tryLoc) {
|
|
49231
|
+
var record = entry.completion;
|
|
49232
|
+
|
|
49233
|
+
if ("throw" === record.type) {
|
|
49234
|
+
var thrown = record.arg;
|
|
49235
|
+
resetTryEntry(entry);
|
|
49236
|
+
}
|
|
49237
|
+
|
|
49238
|
+
return thrown;
|
|
49239
|
+
}
|
|
49240
|
+
}
|
|
49241
|
+
|
|
49242
|
+
throw new Error("illegal catch attempt");
|
|
49243
|
+
},
|
|
49244
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
49245
|
+
return this.delegate = {
|
|
49246
|
+
iterator: values(iterable),
|
|
49247
|
+
resultName: resultName,
|
|
49248
|
+
nextLoc: nextLoc
|
|
49249
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
49250
|
+
}
|
|
49251
|
+
}, exports;
|
|
49252
|
+
}
|
|
49253
|
+
|
|
49254
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49255
|
+
|
|
49256
|
+
/***/ }),
|
|
49257
|
+
|
|
49258
|
+
/***/ "./node_modules/@babel/runtime/helpers/typeof.js":
|
|
49259
|
+
/*!*******************************************************!*\
|
|
49260
|
+
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
49261
|
+
\*******************************************************/
|
|
49262
|
+
/*! no static exports found */
|
|
49263
|
+
/***/ (function(module, exports) {
|
|
49264
|
+
|
|
49265
|
+
function _typeof(obj) {
|
|
49266
|
+
"@babel/helpers - typeof";
|
|
49267
|
+
|
|
49268
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
49269
|
+
return typeof obj;
|
|
49270
|
+
} : function (obj) {
|
|
49271
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
49272
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
49273
|
+
}
|
|
49274
|
+
|
|
49275
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49276
|
+
|
|
49277
|
+
/***/ }),
|
|
49278
|
+
|
|
48344
49279
|
/***/ "./node_modules/@babel/runtime/regenerator/index.js":
|
|
48345
49280
|
/*!**********************************************************!*\
|
|
48346
49281
|
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
|
|
@@ -48348,7 +49283,21 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
48348
49283
|
/*! no static exports found */
|
|
48349
49284
|
/***/ (function(module, exports, __webpack_require__) {
|
|
48350
49285
|
|
|
48351
|
-
|
|
49286
|
+
// TODO(Babel 8): Remove this file.
|
|
49287
|
+
|
|
49288
|
+
var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
|
|
49289
|
+
module.exports = runtime;
|
|
49290
|
+
|
|
49291
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
49292
|
+
try {
|
|
49293
|
+
regeneratorRuntime = runtime;
|
|
49294
|
+
} catch (accidentalStrictMode) {
|
|
49295
|
+
if (typeof globalThis === "object") {
|
|
49296
|
+
globalThis.regeneratorRuntime = runtime;
|
|
49297
|
+
} else {
|
|
49298
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
49299
|
+
}
|
|
49300
|
+
}
|
|
48352
49301
|
|
|
48353
49302
|
|
|
48354
49303
|
/***/ }),
|
|
@@ -117684,7 +118633,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
|
|
|
117684
118633
|
|
|
117685
118634
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
117686
118635
|
|
|
117687
|
-
_this.
|
|
118636
|
+
_this.onItemClick = function () {
|
|
117688
118637
|
var _this$props = _this.props,
|
|
117689
118638
|
onItemClick = _this$props.onItemClick,
|
|
117690
118639
|
panelKey = _this$props.panelKey;
|
|
@@ -117696,10 +118645,41 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
|
|
|
117696
118645
|
|
|
117697
118646
|
_this.handleKeyPress = function (e) {
|
|
117698
118647
|
if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
|
|
117699
|
-
_this.
|
|
118648
|
+
_this.onItemClick();
|
|
117700
118649
|
}
|
|
117701
118650
|
};
|
|
117702
118651
|
|
|
118652
|
+
_this.renderIcon = function () {
|
|
118653
|
+
var _this$props2 = _this.props,
|
|
118654
|
+
showArrow = _this$props2.showArrow,
|
|
118655
|
+
expandIcon = _this$props2.expandIcon,
|
|
118656
|
+
prefixCls = _this$props2.prefixCls,
|
|
118657
|
+
collapsible = _this$props2.collapsible;
|
|
118658
|
+
|
|
118659
|
+
if (!showArrow) {
|
|
118660
|
+
return null;
|
|
118661
|
+
}
|
|
118662
|
+
|
|
118663
|
+
var iconNode = typeof expandIcon === 'function' ? expandIcon(_this.props) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
|
|
118664
|
+
className: "arrow"
|
|
118665
|
+
});
|
|
118666
|
+
return iconNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
118667
|
+
className: "".concat(prefixCls, "-expand-icon"),
|
|
118668
|
+
onClick: collapsible === 'header' ? _this.onItemClick : null
|
|
118669
|
+
}, iconNode);
|
|
118670
|
+
};
|
|
118671
|
+
|
|
118672
|
+
_this.renderTitle = function () {
|
|
118673
|
+
var _this$props3 = _this.props,
|
|
118674
|
+
header = _this$props3.header,
|
|
118675
|
+
prefixCls = _this$props3.prefixCls,
|
|
118676
|
+
collapsible = _this$props3.collapsible;
|
|
118677
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
|
|
118678
|
+
className: "".concat(prefixCls, "-header-text"),
|
|
118679
|
+
onClick: collapsible === 'header' ? _this.onItemClick : null
|
|
118680
|
+
}, header);
|
|
118681
|
+
};
|
|
118682
|
+
|
|
117703
118683
|
return _this;
|
|
117704
118684
|
}
|
|
117705
118685
|
|
|
@@ -117711,34 +118691,26 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
|
|
|
117711
118691
|
}, {
|
|
117712
118692
|
key: "render",
|
|
117713
118693
|
value: function render() {
|
|
117714
|
-
var _classNames,
|
|
117715
|
-
_classNames2,
|
|
117716
|
-
_this2 = this;
|
|
118694
|
+
var _classNames, _classNames2;
|
|
117717
118695
|
|
|
117718
|
-
var _this$
|
|
117719
|
-
className = _this$
|
|
117720
|
-
id = _this$
|
|
117721
|
-
style = _this$
|
|
117722
|
-
prefixCls = _this$
|
|
117723
|
-
|
|
117724
|
-
|
|
117725
|
-
|
|
117726
|
-
|
|
117727
|
-
|
|
117728
|
-
|
|
117729
|
-
|
|
117730
|
-
|
|
117731
|
-
|
|
117732
|
-
expandIcon = _this$props2.expandIcon,
|
|
117733
|
-
extra = _this$props2.extra,
|
|
117734
|
-
collapsible = _this$props2.collapsible;
|
|
118696
|
+
var _this$props4 = this.props,
|
|
118697
|
+
className = _this$props4.className,
|
|
118698
|
+
id = _this$props4.id,
|
|
118699
|
+
style = _this$props4.style,
|
|
118700
|
+
prefixCls = _this$props4.prefixCls,
|
|
118701
|
+
headerClass = _this$props4.headerClass,
|
|
118702
|
+
children = _this$props4.children,
|
|
118703
|
+
isActive = _this$props4.isActive,
|
|
118704
|
+
destroyInactivePanel = _this$props4.destroyInactivePanel,
|
|
118705
|
+
accordion = _this$props4.accordion,
|
|
118706
|
+
forceRender = _this$props4.forceRender,
|
|
118707
|
+
openMotion = _this$props4.openMotion,
|
|
118708
|
+
extra = _this$props4.extra,
|
|
118709
|
+
collapsible = _this$props4.collapsible;
|
|
117735
118710
|
var disabled = collapsible === 'disabled';
|
|
117736
118711
|
var collapsibleHeader = collapsible === 'header';
|
|
117737
|
-
var
|
|
117738
|
-
var
|
|
117739
|
-
var icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("i", {
|
|
117740
|
-
className: "arrow"
|
|
117741
|
-
});
|
|
118712
|
+
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);
|
|
118713
|
+
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));
|
|
117742
118714
|
/** header 节点属性 */
|
|
117743
118715
|
|
|
117744
118716
|
var headerProps = {
|
|
@@ -117747,21 +118719,8 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
|
|
|
117747
118719
|
onKeyPress: this.handleKeyPress
|
|
117748
118720
|
};
|
|
117749
118721
|
|
|
117750
|
-
if (
|
|
117751
|
-
|
|
117752
|
-
}
|
|
117753
|
-
|
|
117754
|
-
if (collapsibleHeader) {
|
|
117755
|
-
icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
|
|
117756
|
-
style: {
|
|
117757
|
-
cursor: 'pointer'
|
|
117758
|
-
},
|
|
117759
|
-
onClick: function onClick() {
|
|
117760
|
-
return _this2.handleItemClick();
|
|
117761
|
-
}
|
|
117762
|
-
}, icon);
|
|
117763
|
-
} else {
|
|
117764
|
-
headerProps.onClick = this.handleItemClick;
|
|
118722
|
+
if (!collapsibleHeader) {
|
|
118723
|
+
headerProps.onClick = this.onItemClick;
|
|
117765
118724
|
headerProps.role = accordion ? 'tab' : 'button';
|
|
117766
118725
|
headerProps.tabIndex = disabled ? -1 : 0;
|
|
117767
118726
|
}
|
|
@@ -117771,10 +118730,7 @@ var CollapsePanel = /*#__PURE__*/function (_React$Component) {
|
|
|
117771
118730
|
className: itemCls,
|
|
117772
118731
|
style: style,
|
|
117773
118732
|
id: id
|
|
117774
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps,
|
|
117775
|
-
onClick: this.handleItemClick,
|
|
117776
|
-
className: "".concat(prefixCls, "-header-text")
|
|
117777
|
-
}, header) : header, ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
118733
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", headerProps, this.renderIcon(), this.renderTitle(), ifExtraExist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
117778
118734
|
className: "".concat(prefixCls, "-extra")
|
|
117779
118735
|
}, 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"])({
|
|
117780
118736
|
visible: isActive,
|
|
@@ -120721,15 +121677,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
120721
121677
|
/* 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");
|
|
120722
121678
|
/* 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");
|
|
120723
121679
|
/* 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");
|
|
120724
|
-
/* harmony import */ var
|
|
120725
|
-
/* harmony import */ var
|
|
120726
|
-
/* harmony import */ var
|
|
121680
|
+
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
121681
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
|
|
121682
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
120727
121683
|
/* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
|
|
120728
121684
|
/* harmony import */ var _utils_asyncUtil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/asyncUtil */ "./node_modules/rc-field-form/es/utils/asyncUtil.js");
|
|
120729
|
-
/* harmony import */ var
|
|
121685
|
+
/* harmony import */ var _utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/cloneDeep */ "./node_modules/rc-field-form/es/utils/cloneDeep.js");
|
|
120730
121686
|
/* harmony import */ var _utils_messages__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/messages */ "./node_modules/rc-field-form/es/utils/messages.js");
|
|
120731
|
-
/* harmony import */ var
|
|
120732
|
-
/* harmony import */ var
|
|
121687
|
+
/* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
|
|
121688
|
+
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
120733
121689
|
|
|
120734
121690
|
|
|
120735
121691
|
|
|
@@ -120801,7 +121757,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120801
121757
|
};
|
|
120802
121758
|
}
|
|
120803
121759
|
|
|
120804
|
-
Object(
|
|
121760
|
+
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
|
|
120805
121761
|
return null;
|
|
120806
121762
|
};
|
|
120807
121763
|
|
|
@@ -120817,13 +121773,13 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120817
121773
|
if (init) {
|
|
120818
121774
|
var _this$prevWithoutPres;
|
|
120819
121775
|
|
|
120820
|
-
var nextStore = Object(
|
|
121776
|
+
var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, initialValues, _this.store); // We will take consider prev form unmount fields.
|
|
120821
121777
|
// When the field is not `preserve`, we need fill this with initialValues instead of store.
|
|
120822
121778
|
// eslint-disable-next-line array-callback-return
|
|
120823
121779
|
|
|
120824
121780
|
(_this$prevWithoutPres = _this.prevWithoutPreserves) === null || _this$prevWithoutPres === void 0 ? void 0 : _this$prevWithoutPres.map(function (_ref) {
|
|
120825
121781
|
var namePath = _ref.key;
|
|
120826
|
-
nextStore = Object(
|
|
121782
|
+
nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(nextStore, namePath, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(initialValues, namePath));
|
|
120827
121783
|
});
|
|
120828
121784
|
_this.prevWithoutPreserves = null;
|
|
120829
121785
|
|
|
@@ -120832,10 +121788,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120832
121788
|
};
|
|
120833
121789
|
|
|
120834
121790
|
this.destroyForm = function () {
|
|
120835
|
-
var prevWithoutPreserves = new
|
|
121791
|
+
var prevWithoutPreserves = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
120836
121792
|
|
|
120837
121793
|
_this.getFieldEntities(true).forEach(function (entity) {
|
|
120838
|
-
if (!entity.isPreserve()) {
|
|
121794
|
+
if (!_this.isMergedPreserve(entity.isPreserve())) {
|
|
120839
121795
|
prevWithoutPreserves.set(entity.getNamePath(), true);
|
|
120840
121796
|
}
|
|
120841
121797
|
});
|
|
@@ -120844,9 +121800,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120844
121800
|
};
|
|
120845
121801
|
|
|
120846
121802
|
this.getInitialValue = function (namePath) {
|
|
120847
|
-
var initValue = Object(
|
|
121803
|
+
var initValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.initialValues, namePath); // Not cloneDeep when without `namePath`
|
|
120848
121804
|
|
|
120849
|
-
return namePath.length ? Object(
|
|
121805
|
+
return namePath.length ? Object(_utils_cloneDeep__WEBPACK_IMPORTED_MODULE_10__["default"])(initValue) : initValue;
|
|
120850
121806
|
};
|
|
120851
121807
|
|
|
120852
121808
|
this.setCallbacks = function (callbacks) {
|
|
@@ -120894,7 +121850,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120894
121850
|
_this.timeoutId = null;
|
|
120895
121851
|
|
|
120896
121852
|
if (!_this.formHooked) {
|
|
120897
|
-
Object(
|
|
121853
|
+
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?');
|
|
120898
121854
|
}
|
|
120899
121855
|
});
|
|
120900
121856
|
}
|
|
@@ -120918,7 +121874,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120918
121874
|
|
|
120919
121875
|
this.getFieldsMap = function () {
|
|
120920
121876
|
var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
120921
|
-
var cache = new
|
|
121877
|
+
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
120922
121878
|
|
|
120923
121879
|
_this.getFieldEntities(pure).forEach(function (field) {
|
|
120924
121880
|
var namePath = field.getNamePath();
|
|
@@ -120936,9 +121892,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120936
121892
|
var cache = _this.getFieldsMap(true);
|
|
120937
121893
|
|
|
120938
121894
|
return nameList.map(function (name) {
|
|
120939
|
-
var namePath = Object(
|
|
121895
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
120940
121896
|
return cache.get(namePath) || {
|
|
120941
|
-
INVALIDATE_NAME_PATH: Object(
|
|
121897
|
+
INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name)
|
|
120942
121898
|
};
|
|
120943
121899
|
});
|
|
120944
121900
|
};
|
|
@@ -120973,14 +121929,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120973
121929
|
}
|
|
120974
121930
|
}
|
|
120975
121931
|
});
|
|
120976
|
-
return Object(
|
|
121932
|
+
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]));
|
|
120977
121933
|
};
|
|
120978
121934
|
|
|
120979
121935
|
this.getFieldValue = function (name) {
|
|
120980
121936
|
_this.warningUnhooked();
|
|
120981
121937
|
|
|
120982
|
-
var namePath = Object(
|
|
120983
|
-
return Object(
|
|
121938
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
121939
|
+
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
|
|
120984
121940
|
};
|
|
120985
121941
|
|
|
120986
121942
|
this.getFieldsError = function (nameList) {
|
|
@@ -120998,7 +121954,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
120998
121954
|
}
|
|
120999
121955
|
|
|
121000
121956
|
return {
|
|
121001
|
-
name: Object(
|
|
121957
|
+
name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(nameList[index]),
|
|
121002
121958
|
errors: [],
|
|
121003
121959
|
warnings: []
|
|
121004
121960
|
};
|
|
@@ -121008,7 +121964,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121008
121964
|
this.getFieldError = function (name) {
|
|
121009
121965
|
_this.warningUnhooked();
|
|
121010
121966
|
|
|
121011
|
-
var namePath = Object(
|
|
121967
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
121012
121968
|
|
|
121013
121969
|
var fieldError = _this.getFieldsError([namePath])[0];
|
|
121014
121970
|
|
|
@@ -121018,7 +121974,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121018
121974
|
this.getFieldWarning = function (name) {
|
|
121019
121975
|
_this.warningUnhooked();
|
|
121020
121976
|
|
|
121021
|
-
var namePath = Object(
|
|
121977
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
121022
121978
|
|
|
121023
121979
|
var fieldError = _this.getFieldsError([namePath])[0];
|
|
121024
121980
|
|
|
@@ -121041,14 +121997,14 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121041
121997
|
namePathList = null;
|
|
121042
121998
|
} else if (args.length === 1) {
|
|
121043
121999
|
if (Array.isArray(arg0)) {
|
|
121044
|
-
namePathList = arg0.map(
|
|
122000
|
+
namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
|
|
121045
122001
|
isAllFieldsTouched = false;
|
|
121046
122002
|
} else {
|
|
121047
122003
|
namePathList = null;
|
|
121048
122004
|
isAllFieldsTouched = arg0;
|
|
121049
122005
|
}
|
|
121050
122006
|
} else {
|
|
121051
|
-
namePathList = arg0.map(
|
|
122007
|
+
namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
|
|
121052
122008
|
isAllFieldsTouched = arg1;
|
|
121053
122009
|
}
|
|
121054
122010
|
|
|
@@ -121064,7 +122020,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121064
122020
|
} // Generate a nest tree for validate
|
|
121065
122021
|
|
|
121066
122022
|
|
|
121067
|
-
var map = new
|
|
122023
|
+
var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
121068
122024
|
namePathList.forEach(function (shortNamePath) {
|
|
121069
122025
|
map.set(shortNamePath, []);
|
|
121070
122026
|
});
|
|
@@ -121110,10 +122066,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121110
122066
|
});
|
|
121111
122067
|
}
|
|
121112
122068
|
|
|
121113
|
-
var namePathList = nameList.map(
|
|
122069
|
+
var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
|
|
121114
122070
|
return fieldEntities.some(function (testField) {
|
|
121115
122071
|
var fieldNamePath = testField.getNamePath();
|
|
121116
|
-
return Object(
|
|
122072
|
+
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
|
|
121117
122073
|
});
|
|
121118
122074
|
};
|
|
121119
122075
|
|
|
@@ -121126,7 +122082,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121126
122082
|
this.resetWithFieldInitialValue = function () {
|
|
121127
122083
|
var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
121128
122084
|
// Create cache
|
|
121129
|
-
var cache = new
|
|
122085
|
+
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
121130
122086
|
|
|
121131
122087
|
var fieldEntities = _this.getFieldEntities(true);
|
|
121132
122088
|
|
|
@@ -121155,19 +122111,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121155
122111
|
|
|
121156
122112
|
if (formInitialValue !== undefined) {
|
|
121157
122113
|
// Warning if conflict with form initialValues and do not modify value
|
|
121158
|
-
Object(
|
|
122114
|
+
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."));
|
|
121159
122115
|
} else {
|
|
121160
122116
|
var records = cache.get(namePath);
|
|
121161
122117
|
|
|
121162
122118
|
if (records && records.size > 1) {
|
|
121163
122119
|
// Warning if multiple field set `initialValue`and do not modify value
|
|
121164
|
-
Object(
|
|
122120
|
+
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."));
|
|
121165
122121
|
} else if (records) {
|
|
121166
122122
|
var originValue = _this.getFieldValue(namePath); // Set `initialValue`
|
|
121167
122123
|
|
|
121168
122124
|
|
|
121169
122125
|
if (!info.skipExist || originValue === undefined) {
|
|
121170
|
-
_this.updateStore(Object(
|
|
122126
|
+
_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));
|
|
121171
122127
|
}
|
|
121172
122128
|
}
|
|
121173
122129
|
}
|
|
@@ -121205,7 +122161,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121205
122161
|
var prevStore = _this.store;
|
|
121206
122162
|
|
|
121207
122163
|
if (!nameList) {
|
|
121208
|
-
_this.updateStore(Object(
|
|
122164
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])({}, _this.initialValues));
|
|
121209
122165
|
|
|
121210
122166
|
_this.resetWithFieldInitialValue();
|
|
121211
122167
|
|
|
@@ -121219,11 +122175,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121219
122175
|
} // Reset by `nameList`
|
|
121220
122176
|
|
|
121221
122177
|
|
|
121222
|
-
var namePathList = nameList.map(
|
|
122178
|
+
var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]);
|
|
121223
122179
|
namePathList.forEach(function (namePath) {
|
|
121224
122180
|
var initialValue = _this.getInitialValue(namePath);
|
|
121225
122181
|
|
|
121226
|
-
_this.updateStore(Object(
|
|
122182
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
|
|
121227
122183
|
});
|
|
121228
122184
|
|
|
121229
122185
|
_this.resetWithFieldInitialValue({
|
|
@@ -121247,11 +122203,11 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121247
122203
|
errors = fieldData.errors,
|
|
121248
122204
|
data = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(fieldData, _excluded);
|
|
121249
122205
|
|
|
121250
|
-
var namePath = Object(
|
|
122206
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
121251
122207
|
namePathList.push(namePath); // Value
|
|
121252
122208
|
|
|
121253
122209
|
if ('value' in data) {
|
|
121254
|
-
_this.updateStore(Object(
|
|
122210
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, data.value));
|
|
121255
122211
|
}
|
|
121256
122212
|
|
|
121257
122213
|
_this.notifyObservers(prevStore, [namePath], {
|
|
@@ -121288,14 +122244,19 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121288
122244
|
|
|
121289
122245
|
if (initialValue !== undefined) {
|
|
121290
122246
|
var namePath = entity.getNamePath();
|
|
121291
|
-
var prevValue = Object(
|
|
122247
|
+
var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getValue"])(_this.store, namePath);
|
|
121292
122248
|
|
|
121293
122249
|
if (prevValue === undefined) {
|
|
121294
|
-
_this.updateStore(Object(
|
|
122250
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, initialValue));
|
|
121295
122251
|
}
|
|
121296
122252
|
}
|
|
121297
122253
|
};
|
|
121298
122254
|
|
|
122255
|
+
this.isMergedPreserve = function (fieldPreserve) {
|
|
122256
|
+
var mergedPreserve = fieldPreserve !== undefined ? fieldPreserve : _this.preserve;
|
|
122257
|
+
return mergedPreserve !== null && mergedPreserve !== void 0 ? mergedPreserve : true;
|
|
122258
|
+
};
|
|
122259
|
+
|
|
121299
122260
|
this.registerField = function (entity) {
|
|
121300
122261
|
_this.fieldEntities.push(entity);
|
|
121301
122262
|
|
|
@@ -121325,19 +122286,17 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121325
122286
|
return item !== entity;
|
|
121326
122287
|
}); // Clean up store value if not preserve
|
|
121327
122288
|
|
|
121328
|
-
|
|
121329
|
-
|
|
121330
|
-
if (mergedPreserve === false && (!isListField || subNamePath.length > 1)) {
|
|
122289
|
+
if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
|
|
121331
122290
|
var defaultValue = isListField ? undefined : _this.getInitialValue(namePath);
|
|
121332
122291
|
|
|
121333
122292
|
if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function (field) {
|
|
121334
122293
|
return (// Only reset when no namePath exist
|
|
121335
|
-
!Object(
|
|
122294
|
+
!Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["matchNamePath"])(field.getNamePath(), namePath)
|
|
121336
122295
|
);
|
|
121337
122296
|
})) {
|
|
121338
122297
|
var _prevStore = _this.store;
|
|
121339
122298
|
|
|
121340
|
-
_this.updateStore(Object(
|
|
122299
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_prevStore, namePath, defaultValue, true)); // Notify that field is unmount
|
|
121341
122300
|
|
|
121342
122301
|
|
|
121343
122302
|
_this.notifyObservers(_prevStore, [namePath], {
|
|
@@ -121413,10 +122372,10 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121413
122372
|
};
|
|
121414
122373
|
|
|
121415
122374
|
this.updateValue = function (name, value) {
|
|
121416
|
-
var namePath = Object(
|
|
122375
|
+
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(name);
|
|
121417
122376
|
var prevStore = _this.store;
|
|
121418
122377
|
|
|
121419
|
-
_this.updateStore(Object(
|
|
122378
|
+
_this.updateStore(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValue"])(_this.store, namePath, value));
|
|
121420
122379
|
|
|
121421
122380
|
_this.notifyObservers(prevStore, [namePath], {
|
|
121422
122381
|
type: 'valueUpdate',
|
|
@@ -121432,7 +122391,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121432
122391
|
var onValuesChange = _this.callbacks.onValuesChange;
|
|
121433
122392
|
|
|
121434
122393
|
if (onValuesChange) {
|
|
121435
|
-
var changedValues = Object(
|
|
122394
|
+
var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["cloneByNamePathList"])(_this.store, [namePath]);
|
|
121436
122395
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
121437
122396
|
}
|
|
121438
122397
|
|
|
@@ -121445,7 +122404,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121445
122404
|
var prevStore = _this.store;
|
|
121446
122405
|
|
|
121447
122406
|
if (store) {
|
|
121448
|
-
var nextStore = Object(
|
|
122407
|
+
var nextStore = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["setValues"])(_this.store, store);
|
|
121449
122408
|
|
|
121450
122409
|
_this.updateStore(nextStore);
|
|
121451
122410
|
}
|
|
@@ -121461,7 +122420,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121461
122420
|
this.getDependencyChildrenFields = function (rootNamePath) {
|
|
121462
122421
|
var children = new Set();
|
|
121463
122422
|
var childrenFields = [];
|
|
121464
|
-
var dependencies2fields = new
|
|
122423
|
+
var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
121465
122424
|
/**
|
|
121466
122425
|
* Generate maps
|
|
121467
122426
|
* Can use cache to save perf if user report performance issue with this
|
|
@@ -121470,7 +122429,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121470
122429
|
_this.getFieldEntities().forEach(function (field) {
|
|
121471
122430
|
var dependencies = field.props.dependencies;
|
|
121472
122431
|
(dependencies || []).forEach(function (dependency) {
|
|
121473
|
-
var dependencyNamePath = Object(
|
|
122432
|
+
var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"])(dependency);
|
|
121474
122433
|
dependencies2fields.update(dependencyNamePath, function () {
|
|
121475
122434
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
|
|
121476
122435
|
fields.add(field);
|
|
@@ -121509,7 +122468,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121509
122468
|
|
|
121510
122469
|
|
|
121511
122470
|
if (filedErrors) {
|
|
121512
|
-
var cache = new
|
|
122471
|
+
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_12__["default"]();
|
|
121513
122472
|
filedErrors.forEach(function (_ref4) {
|
|
121514
122473
|
var name = _ref4.name,
|
|
121515
122474
|
errors = _ref4.errors;
|
|
@@ -121523,7 +122482,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121523
122482
|
|
|
121524
122483
|
var changedFields = fields.filter(function (_ref5) {
|
|
121525
122484
|
var fieldName = _ref5.name;
|
|
121526
|
-
return Object(
|
|
122485
|
+
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldName);
|
|
121527
122486
|
});
|
|
121528
122487
|
onFieldsChange(changedFields, fields);
|
|
121529
122488
|
}
|
|
@@ -121533,7 +122492,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121533
122492
|
_this.warningUnhooked();
|
|
121534
122493
|
|
|
121535
122494
|
var provideNameList = !!nameList;
|
|
121536
|
-
var namePathList = provideNameList ? nameList.map(
|
|
122495
|
+
var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["getNamePath"]) : []; // Collect result in promise list
|
|
121537
122496
|
|
|
121538
122497
|
var promiseList = [];
|
|
121539
122498
|
|
|
@@ -121567,7 +122526,7 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121567
122526
|
|
|
121568
122527
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
121569
122528
|
|
|
121570
|
-
if (!provideNameList || Object(
|
|
122529
|
+
if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_13__["containsNamePath"])(namePathList, fieldNamePath)) {
|
|
121571
122530
|
var promise = field.validateRules(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
121572
122531
|
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)
|
|
121573
122532
|
}, options)); // Wrap promise with field
|
|
@@ -121676,9 +122635,9 @@ var FormStore = /*#__PURE__*/Object(_babel_runtime_helpers_esm_createClass__WEBP
|
|
|
121676
122635
|
});
|
|
121677
122636
|
|
|
121678
122637
|
function useForm(form) {
|
|
121679
|
-
var formRef =
|
|
122638
|
+
var formRef = react__WEBPACK_IMPORTED_MODULE_7__["useRef"]();
|
|
121680
122639
|
|
|
121681
|
-
var _React$useState =
|
|
122640
|
+
var _React$useState = react__WEBPACK_IMPORTED_MODULE_7__["useState"]({}),
|
|
121682
122641
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
121683
122642
|
forceUpdate = _React$useState2[1];
|
|
121684
122643
|
|
|
@@ -122089,8 +123048,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
122089
123048
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateRules", function() { return validateRules; });
|
|
122090
123049
|
/* 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");
|
|
122091
123050
|
/* 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");
|
|
122092
|
-
/* harmony import */ var
|
|
122093
|
-
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);
|
|
123051
|
+
/* 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");
|
|
122094
123052
|
/* 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");
|
|
122095
123053
|
/* 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");
|
|
122096
123054
|
/* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
|
|
@@ -122135,9 +123093,9 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
122135
123093
|
|
|
122136
123094
|
|
|
122137
123095
|
function _validateRule() {
|
|
122138
|
-
_validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/
|
|
123096
|
+
_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) {
|
|
122139
123097
|
var cloneRule, originValidator, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
122140
|
-
return
|
|
123098
|
+
return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee2$(_context2) {
|
|
122141
123099
|
while (1) {
|
|
122142
123100
|
switch (_context2.prev = _context2.next) {
|
|
122143
123101
|
case 0:
|
|
@@ -122313,9 +123271,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
122313
123271
|
if (validateFirst === true) {
|
|
122314
123272
|
// >>>>> Validate by serialization
|
|
122315
123273
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
122316
|
-
var _ref3 = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/
|
|
123274
|
+
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) {
|
|
122317
123275
|
var i, rule, errors;
|
|
122318
|
-
return
|
|
123276
|
+
return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee$(_context) {
|
|
122319
123277
|
while (1) {
|
|
122320
123278
|
switch (_context.prev = _context.next) {
|
|
122321
123279
|
case 0:
|
|
@@ -122394,8 +123352,8 @@ function finishOnAllFailed(_x8) {
|
|
|
122394
123352
|
}
|
|
122395
123353
|
|
|
122396
123354
|
function _finishOnAllFailed() {
|
|
122397
|
-
_finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/
|
|
122398
|
-
return
|
|
123355
|
+
_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) {
|
|
123356
|
+
return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee3$(_context3) {
|
|
122399
123357
|
while (1) {
|
|
122400
123358
|
switch (_context3.prev = _context3.next) {
|
|
122401
123359
|
case 0:
|
|
@@ -122422,9 +123380,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
122422
123380
|
}
|
|
122423
123381
|
|
|
122424
123382
|
function _finishOnFirstFailed() {
|
|
122425
|
-
_finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/
|
|
123383
|
+
_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) {
|
|
122426
123384
|
var count;
|
|
122427
|
-
return
|
|
123385
|
+
return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_2__["default"])().wrap(function _callee4$(_context4) {
|
|
122428
123386
|
while (1) {
|
|
122429
123387
|
switch (_context4.prev = _context4.next) {
|
|
122430
123388
|
case 0:
|
|
@@ -124356,7 +125314,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
124356
125314
|
|
|
124357
125315
|
|
|
124358
125316
|
|
|
124359
|
-
var _excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
|
|
125317
|
+
var _excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
|
|
124360
125318
|
|
|
124361
125319
|
|
|
124362
125320
|
// Use shared variable to save bundle size
|
|
@@ -124369,6 +125327,7 @@ function InternalItem(props, ref) {
|
|
|
124369
125327
|
item = props.item,
|
|
124370
125328
|
renderItem = props.renderItem,
|
|
124371
125329
|
responsive = props.responsive,
|
|
125330
|
+
responsiveDisabled = props.responsiveDisabled,
|
|
124372
125331
|
registerSize = props.registerSize,
|
|
124373
125332
|
itemKey = props.itemKey,
|
|
124374
125333
|
className = props.className,
|
|
@@ -124424,7 +125383,8 @@ function InternalItem(props, ref) {
|
|
|
124424
125383
|
onResize: function onResize(_ref) {
|
|
124425
125384
|
var offsetWidth = _ref.offsetWidth;
|
|
124426
125385
|
internalRegisterSize(offsetWidth);
|
|
124427
|
-
}
|
|
125386
|
+
},
|
|
125387
|
+
disabled: responsiveDisabled
|
|
124428
125388
|
}, itemNode);
|
|
124429
125389
|
}
|
|
124430
125390
|
|
|
@@ -124561,17 +125521,18 @@ function Overflow(props, ref) {
|
|
|
124561
125521
|
|
|
124562
125522
|
var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
|
|
124563
125523
|
|
|
124564
|
-
var isResponsive =
|
|
125524
|
+
var isResponsive = maxCount === RESPONSIVE;
|
|
125525
|
+
var shouldResponsive = data.length && isResponsive;
|
|
124565
125526
|
var invalidate = maxCount === INVALIDATE;
|
|
124566
125527
|
/**
|
|
124567
125528
|
* When is `responsive`, we will always render rest node to get the real width of it for calculation
|
|
124568
125529
|
*/
|
|
124569
125530
|
|
|
124570
|
-
var showRest =
|
|
125531
|
+
var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
|
|
124571
125532
|
var mergedData = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
|
|
124572
125533
|
var items = data;
|
|
124573
125534
|
|
|
124574
|
-
if (
|
|
125535
|
+
if (shouldResponsive) {
|
|
124575
125536
|
if (containerWidth === null && fullySSR) {
|
|
124576
125537
|
items = data;
|
|
124577
125538
|
} else {
|
|
@@ -124582,14 +125543,14 @@ function Overflow(props, ref) {
|
|
|
124582
125543
|
}
|
|
124583
125544
|
|
|
124584
125545
|
return items;
|
|
124585
|
-
}, [data, itemWidth, containerWidth, maxCount,
|
|
125546
|
+
}, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
|
|
124586
125547
|
var omittedItems = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
|
|
124587
|
-
if (
|
|
125548
|
+
if (shouldResponsive) {
|
|
124588
125549
|
return data.slice(mergedDisplayCount + 1);
|
|
124589
125550
|
}
|
|
124590
125551
|
|
|
124591
125552
|
return data.slice(mergedData.length);
|
|
124592
|
-
}, [data, mergedData,
|
|
125553
|
+
}, [data, mergedData, shouldResponsive, mergedDisplayCount]); // ================================= Item =================================
|
|
124593
125554
|
|
|
124594
125555
|
var getKey = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (item, index) {
|
|
124595
125556
|
var _ref;
|
|
@@ -124698,7 +125659,7 @@ function Overflow(props, ref) {
|
|
|
124698
125659
|
var displayRest = restReady && !!omittedItems.length;
|
|
124699
125660
|
var suffixStyle = {};
|
|
124700
125661
|
|
|
124701
|
-
if (suffixFixedStart !== null &&
|
|
125662
|
+
if (suffixFixedStart !== null && shouldResponsive) {
|
|
124702
125663
|
suffixStyle = {
|
|
124703
125664
|
position: 'absolute',
|
|
124704
125665
|
left: suffixFixedStart,
|
|
@@ -124708,7 +125669,7 @@ function Overflow(props, ref) {
|
|
|
124708
125669
|
|
|
124709
125670
|
var itemSharedProps = {
|
|
124710
125671
|
prefixCls: itemPrefixCls,
|
|
124711
|
-
responsive:
|
|
125672
|
+
responsive: shouldResponsive,
|
|
124712
125673
|
component: itemComponent,
|
|
124713
125674
|
invalidate: invalidate
|
|
124714
125675
|
}; // >>>>> Choice render fun by `renderRawItem`
|
|
@@ -124760,6 +125721,8 @@ function Overflow(props, ref) {
|
|
|
124760
125721
|
style: style,
|
|
124761
125722
|
ref: ref
|
|
124762
125723
|
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, itemSharedProps, {
|
|
125724
|
+
responsive: isResponsive,
|
|
125725
|
+
responsiveDisabled: !shouldResponsive,
|
|
124763
125726
|
order: mergedDisplayCount,
|
|
124764
125727
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
124765
125728
|
registerSize: registerSuffixSize,
|
|
@@ -124769,7 +125732,8 @@ function Overflow(props, ref) {
|
|
|
124769
125732
|
|
|
124770
125733
|
if (isResponsive) {
|
|
124771
125734
|
overflowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
124772
|
-
onResize: onOverflowResize
|
|
125735
|
+
onResize: onOverflowResize,
|
|
125736
|
+
disabled: !shouldResponsive
|
|
124773
125737
|
}, overflowNode);
|
|
124774
125738
|
}
|
|
124775
125739
|
|
|
@@ -128611,16 +129575,11 @@ var RefNodeList = function RefNodeList(props, ref) {
|
|
|
128611
129575
|
var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__["useState"](null),
|
|
128612
129576
|
_React$useState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState9, 2),
|
|
128613
129577
|
motionType = _React$useState10[0],
|
|
128614
|
-
setMotionType = _React$useState10[1];
|
|
128615
|
-
|
|
128616
|
-
|
|
128617
|
-
var dataRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](data);
|
|
128618
|
-
dataRef.current = data;
|
|
129578
|
+
setMotionType = _React$useState10[1];
|
|
128619
129579
|
|
|
128620
129580
|
function onMotionEnd() {
|
|
128621
|
-
|
|
128622
|
-
|
|
128623
|
-
setTransitionData(latestData);
|
|
129581
|
+
setPrevData(data);
|
|
129582
|
+
setTransitionData(data);
|
|
128624
129583
|
setTransitionRange([]);
|
|
128625
129584
|
setMotionType(null);
|
|
128626
129585
|
onListChangeEnd();
|
|
@@ -129181,56 +130140,24 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129181
130140
|
_this.currentMouseOverDroppableNodeKey = null;
|
|
129182
130141
|
};
|
|
129183
130142
|
|
|
129184
|
-
_this.triggerExpandActionExpand = function (e, treeNode) {
|
|
129185
|
-
var _this$state5 = _this.state,
|
|
129186
|
-
expandedKeys = _this$state5.expandedKeys,
|
|
129187
|
-
flattenNodes = _this$state5.flattenNodes;
|
|
129188
|
-
var expanded = treeNode.expanded,
|
|
129189
|
-
key = treeNode.key;
|
|
129190
|
-
var node = flattenNodes.filter(function (nodeItem) {
|
|
129191
|
-
return nodeItem.key === key;
|
|
129192
|
-
})[0];
|
|
129193
|
-
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())), {}, {
|
|
129194
|
-
data: node.data
|
|
129195
|
-
}));
|
|
129196
|
-
|
|
129197
|
-
_this.setExpandedKeys(expanded ? Object(_util__WEBPACK_IMPORTED_MODULE_16__["arrDel"])(expandedKeys, key) : Object(_util__WEBPACK_IMPORTED_MODULE_16__["arrAdd"])(expandedKeys, key));
|
|
129198
|
-
|
|
129199
|
-
_this.onNodeExpand(e, eventNode);
|
|
129200
|
-
};
|
|
129201
|
-
|
|
129202
130143
|
_this.onNodeClick = function (e, treeNode) {
|
|
129203
|
-
var
|
|
129204
|
-
onClick = _this$props3.onClick,
|
|
129205
|
-
expandAction = _this$props3.expandAction;
|
|
129206
|
-
|
|
129207
|
-
if (expandAction === 'click') {
|
|
129208
|
-
_this.triggerExpandActionExpand(e, treeNode);
|
|
129209
|
-
}
|
|
129210
|
-
|
|
130144
|
+
var onClick = _this.props.onClick;
|
|
129211
130145
|
onClick === null || onClick === void 0 ? void 0 : onClick(e, treeNode);
|
|
129212
130146
|
};
|
|
129213
130147
|
|
|
129214
130148
|
_this.onNodeDoubleClick = function (e, treeNode) {
|
|
129215
|
-
var
|
|
129216
|
-
onDoubleClick = _this$props4.onDoubleClick,
|
|
129217
|
-
expandAction = _this$props4.expandAction;
|
|
129218
|
-
|
|
129219
|
-
if (expandAction === 'doubleClick') {
|
|
129220
|
-
_this.triggerExpandActionExpand(e, treeNode);
|
|
129221
|
-
}
|
|
129222
|
-
|
|
130149
|
+
var onDoubleClick = _this.props.onDoubleClick;
|
|
129223
130150
|
onDoubleClick === null || onDoubleClick === void 0 ? void 0 : onDoubleClick(e, treeNode);
|
|
129224
130151
|
};
|
|
129225
130152
|
|
|
129226
130153
|
_this.onNodeSelect = function (e, treeNode) {
|
|
129227
130154
|
var selectedKeys = _this.state.selectedKeys;
|
|
129228
|
-
var _this$
|
|
129229
|
-
keyEntities = _this$
|
|
129230
|
-
fieldNames = _this$
|
|
129231
|
-
var _this$
|
|
129232
|
-
onSelect = _this$
|
|
129233
|
-
multiple = _this$
|
|
130155
|
+
var _this$state5 = _this.state,
|
|
130156
|
+
keyEntities = _this$state5.keyEntities,
|
|
130157
|
+
fieldNames = _this$state5.fieldNames;
|
|
130158
|
+
var _this$props3 = _this.props,
|
|
130159
|
+
onSelect = _this$props3.onSelect,
|
|
130160
|
+
multiple = _this$props3.multiple;
|
|
129234
130161
|
var selected = treeNode.selected;
|
|
129235
130162
|
var key = treeNode[fieldNames.key];
|
|
129236
130163
|
var targetSelected = !selected; // Update selected keys
|
|
@@ -129266,13 +130193,13 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129266
130193
|
};
|
|
129267
130194
|
|
|
129268
130195
|
_this.onNodeCheck = function (e, treeNode, checked) {
|
|
129269
|
-
var _this$
|
|
129270
|
-
keyEntities = _this$
|
|
129271
|
-
oriCheckedKeys = _this$
|
|
129272
|
-
oriHalfCheckedKeys = _this$
|
|
129273
|
-
var _this$
|
|
129274
|
-
checkStrictly = _this$
|
|
129275
|
-
onCheck = _this$
|
|
130196
|
+
var _this$state6 = _this.state,
|
|
130197
|
+
keyEntities = _this$state6.keyEntities,
|
|
130198
|
+
oriCheckedKeys = _this$state6.checkedKeys,
|
|
130199
|
+
oriHalfCheckedKeys = _this$state6.halfCheckedKeys;
|
|
130200
|
+
var _this$props4 = _this.props,
|
|
130201
|
+
checkStrictly = _this$props4.checkStrictly,
|
|
130202
|
+
onCheck = _this$props4.onCheck;
|
|
129276
130203
|
var key = treeNode.key; // Prepare trigger arguments
|
|
129277
130204
|
|
|
129278
130205
|
var checkedObj;
|
|
@@ -129358,9 +130285,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129358
130285
|
loadedKeys = _ref$loadedKeys === void 0 ? [] : _ref$loadedKeys,
|
|
129359
130286
|
_ref$loadingKeys = _ref.loadingKeys,
|
|
129360
130287
|
loadingKeys = _ref$loadingKeys === void 0 ? [] : _ref$loadingKeys;
|
|
129361
|
-
var _this$
|
|
129362
|
-
loadData = _this$
|
|
129363
|
-
onLoad = _this$
|
|
130288
|
+
var _this$props5 = _this.props,
|
|
130289
|
+
loadData = _this$props5.loadData,
|
|
130290
|
+
onLoad = _this$props5.onLoad;
|
|
129364
130291
|
|
|
129365
130292
|
if (!loadData || loadedKeys.indexOf(key) !== -1 || loadingKeys.indexOf(key) !== -1) {
|
|
129366
130293
|
return null;
|
|
@@ -129481,16 +130408,16 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129481
130408
|
};
|
|
129482
130409
|
|
|
129483
130410
|
_this.getTreeNodeRequiredProps = function () {
|
|
129484
|
-
var _this$
|
|
129485
|
-
expandedKeys = _this$
|
|
129486
|
-
selectedKeys = _this$
|
|
129487
|
-
loadedKeys = _this$
|
|
129488
|
-
loadingKeys = _this$
|
|
129489
|
-
checkedKeys = _this$
|
|
129490
|
-
halfCheckedKeys = _this$
|
|
129491
|
-
dragOverNodeKey = _this$
|
|
129492
|
-
dropPosition = _this$
|
|
129493
|
-
keyEntities = _this$
|
|
130411
|
+
var _this$state7 = _this.state,
|
|
130412
|
+
expandedKeys = _this$state7.expandedKeys,
|
|
130413
|
+
selectedKeys = _this$state7.selectedKeys,
|
|
130414
|
+
loadedKeys = _this$state7.loadedKeys,
|
|
130415
|
+
loadingKeys = _this$state7.loadingKeys,
|
|
130416
|
+
checkedKeys = _this$state7.checkedKeys,
|
|
130417
|
+
halfCheckedKeys = _this$state7.halfCheckedKeys,
|
|
130418
|
+
dragOverNodeKey = _this$state7.dragOverNodeKey,
|
|
130419
|
+
dropPosition = _this$state7.dropPosition,
|
|
130420
|
+
keyEntities = _this$state7.keyEntities;
|
|
129494
130421
|
return {
|
|
129495
130422
|
expandedKeys: expandedKeys || [],
|
|
129496
130423
|
selectedKeys: selectedKeys || [],
|
|
@@ -129505,9 +130432,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129505
130432
|
};
|
|
129506
130433
|
|
|
129507
130434
|
_this.setExpandedKeys = function (expandedKeys) {
|
|
129508
|
-
var _this$
|
|
129509
|
-
treeData = _this$
|
|
129510
|
-
fieldNames = _this$
|
|
130435
|
+
var _this$state8 = _this.state,
|
|
130436
|
+
treeData = _this$state8.treeData,
|
|
130437
|
+
fieldNames = _this$state8.fieldNames;
|
|
129511
130438
|
var flattenNodes = Object(_utils_treeUtil__WEBPACK_IMPORTED_MODULE_17__["flattenTreeData"])(treeData, expandedKeys, fieldNames);
|
|
129512
130439
|
|
|
129513
130440
|
_this.setUncontrolledState({
|
|
@@ -129518,12 +130445,12 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129518
130445
|
|
|
129519
130446
|
_this.onNodeExpand = function (e, treeNode) {
|
|
129520
130447
|
var expandedKeys = _this.state.expandedKeys;
|
|
129521
|
-
var _this$
|
|
129522
|
-
listChanging = _this$
|
|
129523
|
-
fieldNames = _this$
|
|
129524
|
-
var _this$
|
|
129525
|
-
onExpand = _this$
|
|
129526
|
-
loadData = _this$
|
|
130448
|
+
var _this$state9 = _this.state,
|
|
130449
|
+
listChanging = _this$state9.listChanging,
|
|
130450
|
+
fieldNames = _this$state9.fieldNames;
|
|
130451
|
+
var _this$props6 = _this.props,
|
|
130452
|
+
onExpand = _this$props6.onExpand,
|
|
130453
|
+
loadData = _this$props6.loadData;
|
|
129527
130454
|
var expanded = treeNode.expanded;
|
|
129528
130455
|
var key = treeNode[fieldNames.key]; // Do nothing when motion is in progress
|
|
129529
130456
|
|
|
@@ -129607,9 +130534,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129607
130534
|
};
|
|
129608
130535
|
|
|
129609
130536
|
_this.getActiveItem = function () {
|
|
129610
|
-
var _this$
|
|
129611
|
-
activeKey = _this$
|
|
129612
|
-
flattenNodes = _this$
|
|
130537
|
+
var _this$state10 = _this.state,
|
|
130538
|
+
activeKey = _this$state10.activeKey,
|
|
130539
|
+
flattenNodes = _this$state10.flattenNodes;
|
|
129613
130540
|
|
|
129614
130541
|
if (activeKey === null) {
|
|
129615
130542
|
return null;
|
|
@@ -129622,9 +130549,9 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129622
130549
|
};
|
|
129623
130550
|
|
|
129624
130551
|
_this.offsetActiveKey = function (offset) {
|
|
129625
|
-
var _this$
|
|
129626
|
-
flattenNodes = _this$
|
|
129627
|
-
activeKey = _this$
|
|
130552
|
+
var _this$state11 = _this.state,
|
|
130553
|
+
flattenNodes = _this$state11.flattenNodes,
|
|
130554
|
+
activeKey = _this$state11.activeKey;
|
|
129628
130555
|
var index = flattenNodes.findIndex(function (_ref3) {
|
|
129629
130556
|
var key = _ref3.key;
|
|
129630
130557
|
return key === activeKey;
|
|
@@ -129647,14 +130574,14 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129647
130574
|
};
|
|
129648
130575
|
|
|
129649
130576
|
_this.onKeyDown = function (event) {
|
|
129650
|
-
var _this$
|
|
129651
|
-
activeKey = _this$
|
|
129652
|
-
expandedKeys = _this$
|
|
129653
|
-
checkedKeys = _this$
|
|
129654
|
-
var _this$
|
|
129655
|
-
onKeyDown = _this$
|
|
129656
|
-
checkable = _this$
|
|
129657
|
-
selectable = _this$
|
|
130577
|
+
var _this$state12 = _this.state,
|
|
130578
|
+
activeKey = _this$state12.activeKey,
|
|
130579
|
+
expandedKeys = _this$state12.expandedKeys,
|
|
130580
|
+
checkedKeys = _this$state12.checkedKeys;
|
|
130581
|
+
var _this$props7 = _this.props,
|
|
130582
|
+
onKeyDown = _this$props7.onKeyDown,
|
|
130583
|
+
checkable = _this$props7.checkable,
|
|
130584
|
+
selectable = _this$props7.selectable; // >>>>>>>>>> Direction
|
|
129658
130585
|
|
|
129659
130586
|
switch (event.which) {
|
|
129660
130587
|
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].UP:
|
|
@@ -129814,47 +130741,45 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129814
130741
|
value: function render() {
|
|
129815
130742
|
var _classNames;
|
|
129816
130743
|
|
|
129817
|
-
var _this$
|
|
129818
|
-
focused = _this$
|
|
129819
|
-
flattenNodes = _this$
|
|
129820
|
-
keyEntities = _this$
|
|
129821
|
-
draggingNodeKey = _this$
|
|
129822
|
-
activeKey = _this$
|
|
129823
|
-
dropLevelOffset = _this$
|
|
129824
|
-
dropContainerKey = _this$
|
|
129825
|
-
dropTargetKey = _this$
|
|
129826
|
-
dropPosition = _this$
|
|
129827
|
-
dragOverNodeKey = _this$
|
|
129828
|
-
indent = _this$
|
|
129829
|
-
var _this$
|
|
129830
|
-
prefixCls = _this$
|
|
129831
|
-
className = _this$
|
|
129832
|
-
style = _this$
|
|
129833
|
-
showLine = _this$
|
|
129834
|
-
focusable = _this$
|
|
129835
|
-
_this$
|
|
129836
|
-
tabIndex = _this$
|
|
129837
|
-
selectable = _this$
|
|
129838
|
-
showIcon = _this$
|
|
129839
|
-
icon = _this$
|
|
129840
|
-
switcherIcon = _this$
|
|
129841
|
-
draggable = _this$
|
|
129842
|
-
checkable = _this$
|
|
129843
|
-
checkStrictly = _this$
|
|
129844
|
-
disabled = _this$
|
|
129845
|
-
motion = _this$
|
|
129846
|
-
loadData = _this$
|
|
129847
|
-
filterTreeNode = _this$
|
|
129848
|
-
height = _this$
|
|
129849
|
-
itemHeight = _this$
|
|
129850
|
-
virtual = _this$
|
|
129851
|
-
titleRender = _this$
|
|
129852
|
-
dropIndicatorRender = _this$
|
|
129853
|
-
onContextMenu = _this$
|
|
129854
|
-
onScroll = _this$
|
|
129855
|
-
direction = _this$
|
|
129856
|
-
rootClassName = _this$props10.rootClassName,
|
|
129857
|
-
rootStyle = _this$props10.rootStyle;
|
|
130744
|
+
var _this$state13 = this.state,
|
|
130745
|
+
focused = _this$state13.focused,
|
|
130746
|
+
flattenNodes = _this$state13.flattenNodes,
|
|
130747
|
+
keyEntities = _this$state13.keyEntities,
|
|
130748
|
+
draggingNodeKey = _this$state13.draggingNodeKey,
|
|
130749
|
+
activeKey = _this$state13.activeKey,
|
|
130750
|
+
dropLevelOffset = _this$state13.dropLevelOffset,
|
|
130751
|
+
dropContainerKey = _this$state13.dropContainerKey,
|
|
130752
|
+
dropTargetKey = _this$state13.dropTargetKey,
|
|
130753
|
+
dropPosition = _this$state13.dropPosition,
|
|
130754
|
+
dragOverNodeKey = _this$state13.dragOverNodeKey,
|
|
130755
|
+
indent = _this$state13.indent;
|
|
130756
|
+
var _this$props8 = this.props,
|
|
130757
|
+
prefixCls = _this$props8.prefixCls,
|
|
130758
|
+
className = _this$props8.className,
|
|
130759
|
+
style = _this$props8.style,
|
|
130760
|
+
showLine = _this$props8.showLine,
|
|
130761
|
+
focusable = _this$props8.focusable,
|
|
130762
|
+
_this$props8$tabIndex = _this$props8.tabIndex,
|
|
130763
|
+
tabIndex = _this$props8$tabIndex === void 0 ? 0 : _this$props8$tabIndex,
|
|
130764
|
+
selectable = _this$props8.selectable,
|
|
130765
|
+
showIcon = _this$props8.showIcon,
|
|
130766
|
+
icon = _this$props8.icon,
|
|
130767
|
+
switcherIcon = _this$props8.switcherIcon,
|
|
130768
|
+
draggable = _this$props8.draggable,
|
|
130769
|
+
checkable = _this$props8.checkable,
|
|
130770
|
+
checkStrictly = _this$props8.checkStrictly,
|
|
130771
|
+
disabled = _this$props8.disabled,
|
|
130772
|
+
motion = _this$props8.motion,
|
|
130773
|
+
loadData = _this$props8.loadData,
|
|
130774
|
+
filterTreeNode = _this$props8.filterTreeNode,
|
|
130775
|
+
height = _this$props8.height,
|
|
130776
|
+
itemHeight = _this$props8.itemHeight,
|
|
130777
|
+
virtual = _this$props8.virtual,
|
|
130778
|
+
titleRender = _this$props8.titleRender,
|
|
130779
|
+
dropIndicatorRender = _this$props8.dropIndicatorRender,
|
|
130780
|
+
onContextMenu = _this$props8.onContextMenu,
|
|
130781
|
+
onScroll = _this$props8.onScroll,
|
|
130782
|
+
direction = _this$props8.direction;
|
|
129858
130783
|
var domProps = Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_13__["default"])(this.props, {
|
|
129859
130784
|
aria: true,
|
|
129860
130785
|
data: true
|
|
@@ -129916,8 +130841,7 @@ var Tree = /*#__PURE__*/function (_React$Component) {
|
|
|
129916
130841
|
}
|
|
129917
130842
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
|
|
129918
130843
|
role: "tree",
|
|
129919
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, className,
|
|
129920
|
-
style: rootStyle
|
|
130844
|
+
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))
|
|
129921
130845
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_NodeList__WEBPACK_IMPORTED_MODULE_18__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
129922
130846
|
ref: this.listRef,
|
|
129923
130847
|
prefixCls: prefixCls,
|
|
@@ -130087,8 +131011,7 @@ Tree.defaultProps = {
|
|
|
130087
131011
|
dropIndicatorRender: _DropIndicator__WEBPACK_IMPORTED_MODULE_21__["default"],
|
|
130088
131012
|
allowDrop: function allowDrop() {
|
|
130089
131013
|
return true;
|
|
130090
|
-
}
|
|
130091
|
-
expandAction: false
|
|
131014
|
+
}
|
|
130092
131015
|
};
|
|
130093
131016
|
Tree.TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_19__["default"];
|
|
130094
131017
|
/* harmony default export */ __webpack_exports__["default"] = (Tree);
|
|
@@ -131846,7 +132769,8 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
|
|
|
131846
132769
|
popupStyle = _props$mobile.popupStyle,
|
|
131847
132770
|
_props$mobile$popupMo = _props$mobile.popupMotion,
|
|
131848
132771
|
popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
|
|
131849
|
-
popupRender = _props$mobile.popupRender
|
|
132772
|
+
popupRender = _props$mobile.popupRender,
|
|
132773
|
+
onClick = props.onClick;
|
|
131850
132774
|
var elementRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](); // ========================= Refs =========================
|
|
131851
132775
|
|
|
131852
132776
|
react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
|
|
@@ -131886,6 +132810,7 @@ var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardR
|
|
|
131886
132810
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
131887
132811
|
ref: motionRef,
|
|
131888
132812
|
className: mergedClassName,
|
|
132813
|
+
onClick: onClick,
|
|
131889
132814
|
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)
|
|
131890
132815
|
}, childNode);
|
|
131891
132816
|
});
|
|
@@ -131947,7 +132872,8 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
|
|
|
131947
132872
|
onMouseEnter = props.onMouseEnter,
|
|
131948
132873
|
onMouseLeave = props.onMouseLeave,
|
|
131949
132874
|
onMouseDown = props.onMouseDown,
|
|
131950
|
-
onTouchStart = props.onTouchStart
|
|
132875
|
+
onTouchStart = props.onTouchStart,
|
|
132876
|
+
onClick = props.onClick;
|
|
131951
132877
|
var alignRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
|
|
131952
132878
|
var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
|
|
131953
132879
|
|
|
@@ -132128,6 +133054,7 @@ var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](f
|
|
|
132128
133054
|
onMouseLeave: onMouseLeave,
|
|
132129
133055
|
onMouseDownCapture: onMouseDown,
|
|
132130
133056
|
onTouchStartCapture: onTouchStart,
|
|
133057
|
+
onClick: onClick,
|
|
132131
133058
|
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)
|
|
132132
133059
|
}, childNode));
|
|
132133
133060
|
});
|
|
@@ -132276,8 +133203,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132276
133203
|
|
|
132277
133204
|
"use strict";
|
|
132278
133205
|
__webpack_require__.r(__webpack_exports__);
|
|
132279
|
-
/* harmony import */ var
|
|
132280
|
-
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
133206
|
+
/* 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");
|
|
132281
133207
|
/* 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");
|
|
132282
133208
|
/* 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");
|
|
132283
133209
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
@@ -132343,9 +133269,9 @@ var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
|
|
|
132343
133269
|
}
|
|
132344
133270
|
|
|
132345
133271
|
if (status) {
|
|
132346
|
-
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__*/
|
|
133272
|
+
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() {
|
|
132347
133273
|
var index, nextStatus;
|
|
132348
|
-
return
|
|
133274
|
+
return Object(_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {
|
|
132349
133275
|
while (1) {
|
|
132350
133276
|
switch (_context.prev = _context.next) {
|
|
132351
133277
|
case 0:
|
|
@@ -132704,7 +133630,8 @@ function generateTrigger(PortalComponent) {
|
|
|
132704
133630
|
stretch = _this$props2.stretch,
|
|
132705
133631
|
alignPoint = _this$props2.alignPoint,
|
|
132706
133632
|
mobile = _this$props2.mobile,
|
|
132707
|
-
forceRender = _this$props2.forceRender
|
|
133633
|
+
forceRender = _this$props2.forceRender,
|
|
133634
|
+
onPopupClick = _this$props2.onPopupClick;
|
|
132708
133635
|
var _this$state = _this.state,
|
|
132709
133636
|
popupVisible = _this$state.popupVisible,
|
|
132710
133637
|
point = _this$state.point;
|
|
@@ -132746,7 +133673,8 @@ function generateTrigger(PortalComponent) {
|
|
|
132746
133673
|
ref: _this.popupRef,
|
|
132747
133674
|
motion: popupMotion,
|
|
132748
133675
|
mobile: mobile,
|
|
132749
|
-
forceRender: forceRender
|
|
133676
|
+
forceRender: forceRender,
|
|
133677
|
+
onClick: onPopupClick
|
|
132750
133678
|
}), typeof popup === 'function' ? popup() : popup);
|
|
132751
133679
|
};
|
|
132752
133680
|
|
|
@@ -133334,7 +134262,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133334
134262
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toArray; });
|
|
133335
134263
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
133336
134264
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
133337
|
-
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
134265
|
+
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
|
|
133338
134266
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
|
|
133339
134267
|
|
|
133340
134268
|
|
|
@@ -135350,7 +136278,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
135350
136278
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useComposeRef", function() { return useComposeRef; });
|
|
135351
136279
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportRef", function() { return supportRef; });
|
|
135352
136280
|
/* 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");
|
|
135353
|
-
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
136281
|
+
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/rc-util/node_modules/react-is/index.js");
|
|
135354
136282
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
|
|
135355
136283
|
/* harmony import */ var _hooks_useMemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/useMemo */ "./node_modules/rc-util/es/hooks/useMemo.js");
|
|
135356
136284
|
|
|
@@ -135647,6 +136575,216 @@ function noteOnce(valid, message) {
|
|
|
135647
136575
|
/* harmony default export */ __webpack_exports__["default"] = (warningOnce);
|
|
135648
136576
|
/* eslint-enable */
|
|
135649
136577
|
|
|
136578
|
+
/***/ }),
|
|
136579
|
+
|
|
136580
|
+
/***/ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js":
|
|
136581
|
+
/*!********************************************************************************!*\
|
|
136582
|
+
!*** ./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js ***!
|
|
136583
|
+
\********************************************************************************/
|
|
136584
|
+
/*! no static exports found */
|
|
136585
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
136586
|
+
|
|
136587
|
+
"use strict";
|
|
136588
|
+
/** @license React v16.13.1
|
|
136589
|
+
* react-is.development.js
|
|
136590
|
+
*
|
|
136591
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
136592
|
+
*
|
|
136593
|
+
* This source code is licensed under the MIT license found in the
|
|
136594
|
+
* LICENSE file in the root directory of this source tree.
|
|
136595
|
+
*/
|
|
136596
|
+
|
|
136597
|
+
|
|
136598
|
+
|
|
136599
|
+
|
|
136600
|
+
|
|
136601
|
+
if (true) {
|
|
136602
|
+
(function() {
|
|
136603
|
+
'use strict';
|
|
136604
|
+
|
|
136605
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
136606
|
+
// nor polyfill, then a plain number is used for performance.
|
|
136607
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
136608
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
136609
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
136610
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
136611
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
136612
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
136613
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
136614
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
136615
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
136616
|
+
|
|
136617
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
136618
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
136619
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
136620
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
136621
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
136622
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
136623
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
136624
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
136625
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
136626
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
136627
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
136628
|
+
|
|
136629
|
+
function isValidElementType(type) {
|
|
136630
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
136631
|
+
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);
|
|
136632
|
+
}
|
|
136633
|
+
|
|
136634
|
+
function typeOf(object) {
|
|
136635
|
+
if (typeof object === 'object' && object !== null) {
|
|
136636
|
+
var $$typeof = object.$$typeof;
|
|
136637
|
+
|
|
136638
|
+
switch ($$typeof) {
|
|
136639
|
+
case REACT_ELEMENT_TYPE:
|
|
136640
|
+
var type = object.type;
|
|
136641
|
+
|
|
136642
|
+
switch (type) {
|
|
136643
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
136644
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
136645
|
+
case REACT_FRAGMENT_TYPE:
|
|
136646
|
+
case REACT_PROFILER_TYPE:
|
|
136647
|
+
case REACT_STRICT_MODE_TYPE:
|
|
136648
|
+
case REACT_SUSPENSE_TYPE:
|
|
136649
|
+
return type;
|
|
136650
|
+
|
|
136651
|
+
default:
|
|
136652
|
+
var $$typeofType = type && type.$$typeof;
|
|
136653
|
+
|
|
136654
|
+
switch ($$typeofType) {
|
|
136655
|
+
case REACT_CONTEXT_TYPE:
|
|
136656
|
+
case REACT_FORWARD_REF_TYPE:
|
|
136657
|
+
case REACT_LAZY_TYPE:
|
|
136658
|
+
case REACT_MEMO_TYPE:
|
|
136659
|
+
case REACT_PROVIDER_TYPE:
|
|
136660
|
+
return $$typeofType;
|
|
136661
|
+
|
|
136662
|
+
default:
|
|
136663
|
+
return $$typeof;
|
|
136664
|
+
}
|
|
136665
|
+
|
|
136666
|
+
}
|
|
136667
|
+
|
|
136668
|
+
case REACT_PORTAL_TYPE:
|
|
136669
|
+
return $$typeof;
|
|
136670
|
+
}
|
|
136671
|
+
}
|
|
136672
|
+
|
|
136673
|
+
return undefined;
|
|
136674
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
136675
|
+
|
|
136676
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
136677
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
136678
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
136679
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
136680
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
136681
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
136682
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
136683
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
136684
|
+
var Memo = REACT_MEMO_TYPE;
|
|
136685
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
136686
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
136687
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
136688
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
136689
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
136690
|
+
|
|
136691
|
+
function isAsyncMode(object) {
|
|
136692
|
+
{
|
|
136693
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
136694
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
136695
|
+
|
|
136696
|
+
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.');
|
|
136697
|
+
}
|
|
136698
|
+
}
|
|
136699
|
+
|
|
136700
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
136701
|
+
}
|
|
136702
|
+
function isConcurrentMode(object) {
|
|
136703
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
136704
|
+
}
|
|
136705
|
+
function isContextConsumer(object) {
|
|
136706
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
136707
|
+
}
|
|
136708
|
+
function isContextProvider(object) {
|
|
136709
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
136710
|
+
}
|
|
136711
|
+
function isElement(object) {
|
|
136712
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
136713
|
+
}
|
|
136714
|
+
function isForwardRef(object) {
|
|
136715
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
136716
|
+
}
|
|
136717
|
+
function isFragment(object) {
|
|
136718
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
136719
|
+
}
|
|
136720
|
+
function isLazy(object) {
|
|
136721
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
136722
|
+
}
|
|
136723
|
+
function isMemo(object) {
|
|
136724
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
136725
|
+
}
|
|
136726
|
+
function isPortal(object) {
|
|
136727
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
136728
|
+
}
|
|
136729
|
+
function isProfiler(object) {
|
|
136730
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
136731
|
+
}
|
|
136732
|
+
function isStrictMode(object) {
|
|
136733
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
136734
|
+
}
|
|
136735
|
+
function isSuspense(object) {
|
|
136736
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
136737
|
+
}
|
|
136738
|
+
|
|
136739
|
+
exports.AsyncMode = AsyncMode;
|
|
136740
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
136741
|
+
exports.ContextConsumer = ContextConsumer;
|
|
136742
|
+
exports.ContextProvider = ContextProvider;
|
|
136743
|
+
exports.Element = Element;
|
|
136744
|
+
exports.ForwardRef = ForwardRef;
|
|
136745
|
+
exports.Fragment = Fragment;
|
|
136746
|
+
exports.Lazy = Lazy;
|
|
136747
|
+
exports.Memo = Memo;
|
|
136748
|
+
exports.Portal = Portal;
|
|
136749
|
+
exports.Profiler = Profiler;
|
|
136750
|
+
exports.StrictMode = StrictMode;
|
|
136751
|
+
exports.Suspense = Suspense;
|
|
136752
|
+
exports.isAsyncMode = isAsyncMode;
|
|
136753
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
136754
|
+
exports.isContextConsumer = isContextConsumer;
|
|
136755
|
+
exports.isContextProvider = isContextProvider;
|
|
136756
|
+
exports.isElement = isElement;
|
|
136757
|
+
exports.isForwardRef = isForwardRef;
|
|
136758
|
+
exports.isFragment = isFragment;
|
|
136759
|
+
exports.isLazy = isLazy;
|
|
136760
|
+
exports.isMemo = isMemo;
|
|
136761
|
+
exports.isPortal = isPortal;
|
|
136762
|
+
exports.isProfiler = isProfiler;
|
|
136763
|
+
exports.isStrictMode = isStrictMode;
|
|
136764
|
+
exports.isSuspense = isSuspense;
|
|
136765
|
+
exports.isValidElementType = isValidElementType;
|
|
136766
|
+
exports.typeOf = typeOf;
|
|
136767
|
+
})();
|
|
136768
|
+
}
|
|
136769
|
+
|
|
136770
|
+
|
|
136771
|
+
/***/ }),
|
|
136772
|
+
|
|
136773
|
+
/***/ "./node_modules/rc-util/node_modules/react-is/index.js":
|
|
136774
|
+
/*!*************************************************************!*\
|
|
136775
|
+
!*** ./node_modules/rc-util/node_modules/react-is/index.js ***!
|
|
136776
|
+
\*************************************************************/
|
|
136777
|
+
/*! no static exports found */
|
|
136778
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
136779
|
+
|
|
136780
|
+
"use strict";
|
|
136781
|
+
|
|
136782
|
+
|
|
136783
|
+
if (false) {} else {
|
|
136784
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js");
|
|
136785
|
+
}
|
|
136786
|
+
|
|
136787
|
+
|
|
135650
136788
|
/***/ }),
|
|
135651
136789
|
|
|
135652
136790
|
/***/ "./node_modules/rc-virtual-list/es/Filler.js":
|
|
@@ -137118,981 +138256,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
137118
138256
|
var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
137119
138257
|
/* harmony default export */ __webpack_exports__["default"] = (isFF);
|
|
137120
138258
|
|
|
137121
|
-
/***/ }),
|
|
137122
|
-
|
|
137123
|
-
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
137124
|
-
/*!***********************************************************!*\
|
|
137125
|
-
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
137126
|
-
\***********************************************************/
|
|
137127
|
-
/*! no static exports found */
|
|
137128
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
137129
|
-
|
|
137130
|
-
"use strict";
|
|
137131
|
-
/** @license React v16.13.1
|
|
137132
|
-
* react-is.development.js
|
|
137133
|
-
*
|
|
137134
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
137135
|
-
*
|
|
137136
|
-
* This source code is licensed under the MIT license found in the
|
|
137137
|
-
* LICENSE file in the root directory of this source tree.
|
|
137138
|
-
*/
|
|
137139
|
-
|
|
137140
|
-
|
|
137141
|
-
|
|
137142
|
-
|
|
137143
|
-
|
|
137144
|
-
if (true) {
|
|
137145
|
-
(function() {
|
|
137146
|
-
'use strict';
|
|
137147
|
-
|
|
137148
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
137149
|
-
// nor polyfill, then a plain number is used for performance.
|
|
137150
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
137151
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
137152
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
137153
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
137154
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
137155
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
137156
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
137157
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
137158
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
137159
|
-
|
|
137160
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
137161
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
137162
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
137163
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
137164
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
137165
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
137166
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
137167
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
137168
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
137169
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
137170
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
137171
|
-
|
|
137172
|
-
function isValidElementType(type) {
|
|
137173
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
137174
|
-
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);
|
|
137175
|
-
}
|
|
137176
|
-
|
|
137177
|
-
function typeOf(object) {
|
|
137178
|
-
if (typeof object === 'object' && object !== null) {
|
|
137179
|
-
var $$typeof = object.$$typeof;
|
|
137180
|
-
|
|
137181
|
-
switch ($$typeof) {
|
|
137182
|
-
case REACT_ELEMENT_TYPE:
|
|
137183
|
-
var type = object.type;
|
|
137184
|
-
|
|
137185
|
-
switch (type) {
|
|
137186
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
137187
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
137188
|
-
case REACT_FRAGMENT_TYPE:
|
|
137189
|
-
case REACT_PROFILER_TYPE:
|
|
137190
|
-
case REACT_STRICT_MODE_TYPE:
|
|
137191
|
-
case REACT_SUSPENSE_TYPE:
|
|
137192
|
-
return type;
|
|
137193
|
-
|
|
137194
|
-
default:
|
|
137195
|
-
var $$typeofType = type && type.$$typeof;
|
|
137196
|
-
|
|
137197
|
-
switch ($$typeofType) {
|
|
137198
|
-
case REACT_CONTEXT_TYPE:
|
|
137199
|
-
case REACT_FORWARD_REF_TYPE:
|
|
137200
|
-
case REACT_LAZY_TYPE:
|
|
137201
|
-
case REACT_MEMO_TYPE:
|
|
137202
|
-
case REACT_PROVIDER_TYPE:
|
|
137203
|
-
return $$typeofType;
|
|
137204
|
-
|
|
137205
|
-
default:
|
|
137206
|
-
return $$typeof;
|
|
137207
|
-
}
|
|
137208
|
-
|
|
137209
|
-
}
|
|
137210
|
-
|
|
137211
|
-
case REACT_PORTAL_TYPE:
|
|
137212
|
-
return $$typeof;
|
|
137213
|
-
}
|
|
137214
|
-
}
|
|
137215
|
-
|
|
137216
|
-
return undefined;
|
|
137217
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
137218
|
-
|
|
137219
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
137220
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
137221
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
137222
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
137223
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
137224
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
137225
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
137226
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
137227
|
-
var Memo = REACT_MEMO_TYPE;
|
|
137228
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
137229
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
137230
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
137231
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
137232
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
137233
|
-
|
|
137234
|
-
function isAsyncMode(object) {
|
|
137235
|
-
{
|
|
137236
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
137237
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
137238
|
-
|
|
137239
|
-
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.');
|
|
137240
|
-
}
|
|
137241
|
-
}
|
|
137242
|
-
|
|
137243
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
137244
|
-
}
|
|
137245
|
-
function isConcurrentMode(object) {
|
|
137246
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
137247
|
-
}
|
|
137248
|
-
function isContextConsumer(object) {
|
|
137249
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
137250
|
-
}
|
|
137251
|
-
function isContextProvider(object) {
|
|
137252
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
137253
|
-
}
|
|
137254
|
-
function isElement(object) {
|
|
137255
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
137256
|
-
}
|
|
137257
|
-
function isForwardRef(object) {
|
|
137258
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
137259
|
-
}
|
|
137260
|
-
function isFragment(object) {
|
|
137261
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
137262
|
-
}
|
|
137263
|
-
function isLazy(object) {
|
|
137264
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
137265
|
-
}
|
|
137266
|
-
function isMemo(object) {
|
|
137267
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
137268
|
-
}
|
|
137269
|
-
function isPortal(object) {
|
|
137270
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
137271
|
-
}
|
|
137272
|
-
function isProfiler(object) {
|
|
137273
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
137274
|
-
}
|
|
137275
|
-
function isStrictMode(object) {
|
|
137276
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
137277
|
-
}
|
|
137278
|
-
function isSuspense(object) {
|
|
137279
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
137280
|
-
}
|
|
137281
|
-
|
|
137282
|
-
exports.AsyncMode = AsyncMode;
|
|
137283
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
137284
|
-
exports.ContextConsumer = ContextConsumer;
|
|
137285
|
-
exports.ContextProvider = ContextProvider;
|
|
137286
|
-
exports.Element = Element;
|
|
137287
|
-
exports.ForwardRef = ForwardRef;
|
|
137288
|
-
exports.Fragment = Fragment;
|
|
137289
|
-
exports.Lazy = Lazy;
|
|
137290
|
-
exports.Memo = Memo;
|
|
137291
|
-
exports.Portal = Portal;
|
|
137292
|
-
exports.Profiler = Profiler;
|
|
137293
|
-
exports.StrictMode = StrictMode;
|
|
137294
|
-
exports.Suspense = Suspense;
|
|
137295
|
-
exports.isAsyncMode = isAsyncMode;
|
|
137296
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
137297
|
-
exports.isContextConsumer = isContextConsumer;
|
|
137298
|
-
exports.isContextProvider = isContextProvider;
|
|
137299
|
-
exports.isElement = isElement;
|
|
137300
|
-
exports.isForwardRef = isForwardRef;
|
|
137301
|
-
exports.isFragment = isFragment;
|
|
137302
|
-
exports.isLazy = isLazy;
|
|
137303
|
-
exports.isMemo = isMemo;
|
|
137304
|
-
exports.isPortal = isPortal;
|
|
137305
|
-
exports.isProfiler = isProfiler;
|
|
137306
|
-
exports.isStrictMode = isStrictMode;
|
|
137307
|
-
exports.isSuspense = isSuspense;
|
|
137308
|
-
exports.isValidElementType = isValidElementType;
|
|
137309
|
-
exports.typeOf = typeOf;
|
|
137310
|
-
})();
|
|
137311
|
-
}
|
|
137312
|
-
|
|
137313
|
-
|
|
137314
|
-
/***/ }),
|
|
137315
|
-
|
|
137316
|
-
/***/ "./node_modules/react-is/index.js":
|
|
137317
|
-
/*!****************************************!*\
|
|
137318
|
-
!*** ./node_modules/react-is/index.js ***!
|
|
137319
|
-
\****************************************/
|
|
137320
|
-
/*! no static exports found */
|
|
137321
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
137322
|
-
|
|
137323
|
-
"use strict";
|
|
137324
|
-
|
|
137325
|
-
|
|
137326
|
-
if (false) {} else {
|
|
137327
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
|
137328
|
-
}
|
|
137329
|
-
|
|
137330
|
-
|
|
137331
|
-
/***/ }),
|
|
137332
|
-
|
|
137333
|
-
/***/ "./node_modules/regenerator-runtime/runtime.js":
|
|
137334
|
-
/*!*****************************************************!*\
|
|
137335
|
-
!*** ./node_modules/regenerator-runtime/runtime.js ***!
|
|
137336
|
-
\*****************************************************/
|
|
137337
|
-
/*! no static exports found */
|
|
137338
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
137339
|
-
|
|
137340
|
-
/**
|
|
137341
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
137342
|
-
*
|
|
137343
|
-
* This source code is licensed under the MIT license found in the
|
|
137344
|
-
* LICENSE file in the root directory of this source tree.
|
|
137345
|
-
*/
|
|
137346
|
-
|
|
137347
|
-
var runtime = (function (exports) {
|
|
137348
|
-
"use strict";
|
|
137349
|
-
|
|
137350
|
-
var Op = Object.prototype;
|
|
137351
|
-
var hasOwn = Op.hasOwnProperty;
|
|
137352
|
-
var undefined; // More compressible than void 0.
|
|
137353
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
137354
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
137355
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
137356
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
137357
|
-
|
|
137358
|
-
function define(obj, key, value) {
|
|
137359
|
-
Object.defineProperty(obj, key, {
|
|
137360
|
-
value: value,
|
|
137361
|
-
enumerable: true,
|
|
137362
|
-
configurable: true,
|
|
137363
|
-
writable: true
|
|
137364
|
-
});
|
|
137365
|
-
return obj[key];
|
|
137366
|
-
}
|
|
137367
|
-
try {
|
|
137368
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
137369
|
-
define({}, "");
|
|
137370
|
-
} catch (err) {
|
|
137371
|
-
define = function(obj, key, value) {
|
|
137372
|
-
return obj[key] = value;
|
|
137373
|
-
};
|
|
137374
|
-
}
|
|
137375
|
-
|
|
137376
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
137377
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
137378
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
137379
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
137380
|
-
var context = new Context(tryLocsList || []);
|
|
137381
|
-
|
|
137382
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
137383
|
-
// .throw, and .return methods.
|
|
137384
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
137385
|
-
|
|
137386
|
-
return generator;
|
|
137387
|
-
}
|
|
137388
|
-
exports.wrap = wrap;
|
|
137389
|
-
|
|
137390
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
137391
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
137392
|
-
// have been (and was previously) designed to take a closure to be
|
|
137393
|
-
// invoked without arguments, but in all the cases we care about we
|
|
137394
|
-
// already have an existing method we want to call, so there's no need
|
|
137395
|
-
// to create a new function object. We can even get away with assuming
|
|
137396
|
-
// the method takes exactly one argument, since that happens to be true
|
|
137397
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
137398
|
-
// only additional allocation required is the completion record, which
|
|
137399
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
137400
|
-
function tryCatch(fn, obj, arg) {
|
|
137401
|
-
try {
|
|
137402
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
137403
|
-
} catch (err) {
|
|
137404
|
-
return { type: "throw", arg: err };
|
|
137405
|
-
}
|
|
137406
|
-
}
|
|
137407
|
-
|
|
137408
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
137409
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
137410
|
-
var GenStateExecuting = "executing";
|
|
137411
|
-
var GenStateCompleted = "completed";
|
|
137412
|
-
|
|
137413
|
-
// Returning this object from the innerFn has the same effect as
|
|
137414
|
-
// breaking out of the dispatch switch statement.
|
|
137415
|
-
var ContinueSentinel = {};
|
|
137416
|
-
|
|
137417
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
137418
|
-
// .constructor.prototype properties for functions that return Generator
|
|
137419
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
137420
|
-
// minifier not to mangle the names of these two functions.
|
|
137421
|
-
function Generator() {}
|
|
137422
|
-
function GeneratorFunction() {}
|
|
137423
|
-
function GeneratorFunctionPrototype() {}
|
|
137424
|
-
|
|
137425
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
137426
|
-
// don't natively support it.
|
|
137427
|
-
var IteratorPrototype = {};
|
|
137428
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
137429
|
-
return this;
|
|
137430
|
-
});
|
|
137431
|
-
|
|
137432
|
-
var getProto = Object.getPrototypeOf;
|
|
137433
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
137434
|
-
if (NativeIteratorPrototype &&
|
|
137435
|
-
NativeIteratorPrototype !== Op &&
|
|
137436
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
137437
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
137438
|
-
// of the polyfill.
|
|
137439
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
137440
|
-
}
|
|
137441
|
-
|
|
137442
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
137443
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
137444
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
137445
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
137446
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
137447
|
-
GeneratorFunction.displayName = define(
|
|
137448
|
-
GeneratorFunctionPrototype,
|
|
137449
|
-
toStringTagSymbol,
|
|
137450
|
-
"GeneratorFunction"
|
|
137451
|
-
);
|
|
137452
|
-
|
|
137453
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
137454
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
137455
|
-
function defineIteratorMethods(prototype) {
|
|
137456
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
137457
|
-
define(prototype, method, function(arg) {
|
|
137458
|
-
return this._invoke(method, arg);
|
|
137459
|
-
});
|
|
137460
|
-
});
|
|
137461
|
-
}
|
|
137462
|
-
|
|
137463
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
137464
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
137465
|
-
return ctor
|
|
137466
|
-
? ctor === GeneratorFunction ||
|
|
137467
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
137468
|
-
// do is to check its .name property.
|
|
137469
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
137470
|
-
: false;
|
|
137471
|
-
};
|
|
137472
|
-
|
|
137473
|
-
exports.mark = function(genFun) {
|
|
137474
|
-
if (Object.setPrototypeOf) {
|
|
137475
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
137476
|
-
} else {
|
|
137477
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
137478
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
137479
|
-
}
|
|
137480
|
-
genFun.prototype = Object.create(Gp);
|
|
137481
|
-
return genFun;
|
|
137482
|
-
};
|
|
137483
|
-
|
|
137484
|
-
// Within the body of any async function, `await x` is transformed to
|
|
137485
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
137486
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
137487
|
-
// meant to be awaited.
|
|
137488
|
-
exports.awrap = function(arg) {
|
|
137489
|
-
return { __await: arg };
|
|
137490
|
-
};
|
|
137491
|
-
|
|
137492
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
137493
|
-
function invoke(method, arg, resolve, reject) {
|
|
137494
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
137495
|
-
if (record.type === "throw") {
|
|
137496
|
-
reject(record.arg);
|
|
137497
|
-
} else {
|
|
137498
|
-
var result = record.arg;
|
|
137499
|
-
var value = result.value;
|
|
137500
|
-
if (value &&
|
|
137501
|
-
typeof value === "object" &&
|
|
137502
|
-
hasOwn.call(value, "__await")) {
|
|
137503
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
137504
|
-
invoke("next", value, resolve, reject);
|
|
137505
|
-
}, function(err) {
|
|
137506
|
-
invoke("throw", err, resolve, reject);
|
|
137507
|
-
});
|
|
137508
|
-
}
|
|
137509
|
-
|
|
137510
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
137511
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
137512
|
-
// the .value of the Promise<{value,done}> result for the
|
|
137513
|
-
// current iteration.
|
|
137514
|
-
result.value = unwrapped;
|
|
137515
|
-
resolve(result);
|
|
137516
|
-
}, function(error) {
|
|
137517
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
137518
|
-
// into the async generator function so it can be handled there.
|
|
137519
|
-
return invoke("throw", error, resolve, reject);
|
|
137520
|
-
});
|
|
137521
|
-
}
|
|
137522
|
-
}
|
|
137523
|
-
|
|
137524
|
-
var previousPromise;
|
|
137525
|
-
|
|
137526
|
-
function enqueue(method, arg) {
|
|
137527
|
-
function callInvokeWithMethodAndArg() {
|
|
137528
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
137529
|
-
invoke(method, arg, resolve, reject);
|
|
137530
|
-
});
|
|
137531
|
-
}
|
|
137532
|
-
|
|
137533
|
-
return previousPromise =
|
|
137534
|
-
// If enqueue has been called before, then we want to wait until
|
|
137535
|
-
// all previous Promises have been resolved before calling invoke,
|
|
137536
|
-
// so that results are always delivered in the correct order. If
|
|
137537
|
-
// enqueue has not been called before, then it is important to
|
|
137538
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
137539
|
-
// so that the async generator function has the opportunity to do
|
|
137540
|
-
// any necessary setup in a predictable way. This predictability
|
|
137541
|
-
// is why the Promise constructor synchronously invokes its
|
|
137542
|
-
// executor callback, and why async functions synchronously
|
|
137543
|
-
// execute code before the first await. Since we implement simple
|
|
137544
|
-
// async functions in terms of async generators, it is especially
|
|
137545
|
-
// important to get this right, even though it requires care.
|
|
137546
|
-
previousPromise ? previousPromise.then(
|
|
137547
|
-
callInvokeWithMethodAndArg,
|
|
137548
|
-
// Avoid propagating failures to Promises returned by later
|
|
137549
|
-
// invocations of the iterator.
|
|
137550
|
-
callInvokeWithMethodAndArg
|
|
137551
|
-
) : callInvokeWithMethodAndArg();
|
|
137552
|
-
}
|
|
137553
|
-
|
|
137554
|
-
// Define the unified helper method that is used to implement .next,
|
|
137555
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
137556
|
-
this._invoke = enqueue;
|
|
137557
|
-
}
|
|
137558
|
-
|
|
137559
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
137560
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
137561
|
-
return this;
|
|
137562
|
-
});
|
|
137563
|
-
exports.AsyncIterator = AsyncIterator;
|
|
137564
|
-
|
|
137565
|
-
// Note that simple async functions are implemented on top of
|
|
137566
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
137567
|
-
// the final result produced by the iterator.
|
|
137568
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
137569
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
137570
|
-
|
|
137571
|
-
var iter = new AsyncIterator(
|
|
137572
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
137573
|
-
PromiseImpl
|
|
137574
|
-
);
|
|
137575
|
-
|
|
137576
|
-
return exports.isGeneratorFunction(outerFn)
|
|
137577
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
137578
|
-
: iter.next().then(function(result) {
|
|
137579
|
-
return result.done ? result.value : iter.next();
|
|
137580
|
-
});
|
|
137581
|
-
};
|
|
137582
|
-
|
|
137583
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
137584
|
-
var state = GenStateSuspendedStart;
|
|
137585
|
-
|
|
137586
|
-
return function invoke(method, arg) {
|
|
137587
|
-
if (state === GenStateExecuting) {
|
|
137588
|
-
throw new Error("Generator is already running");
|
|
137589
|
-
}
|
|
137590
|
-
|
|
137591
|
-
if (state === GenStateCompleted) {
|
|
137592
|
-
if (method === "throw") {
|
|
137593
|
-
throw arg;
|
|
137594
|
-
}
|
|
137595
|
-
|
|
137596
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
137597
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
137598
|
-
return doneResult();
|
|
137599
|
-
}
|
|
137600
|
-
|
|
137601
|
-
context.method = method;
|
|
137602
|
-
context.arg = arg;
|
|
137603
|
-
|
|
137604
|
-
while (true) {
|
|
137605
|
-
var delegate = context.delegate;
|
|
137606
|
-
if (delegate) {
|
|
137607
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
137608
|
-
if (delegateResult) {
|
|
137609
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
137610
|
-
return delegateResult;
|
|
137611
|
-
}
|
|
137612
|
-
}
|
|
137613
|
-
|
|
137614
|
-
if (context.method === "next") {
|
|
137615
|
-
// Setting context._sent for legacy support of Babel's
|
|
137616
|
-
// function.sent implementation.
|
|
137617
|
-
context.sent = context._sent = context.arg;
|
|
137618
|
-
|
|
137619
|
-
} else if (context.method === "throw") {
|
|
137620
|
-
if (state === GenStateSuspendedStart) {
|
|
137621
|
-
state = GenStateCompleted;
|
|
137622
|
-
throw context.arg;
|
|
137623
|
-
}
|
|
137624
|
-
|
|
137625
|
-
context.dispatchException(context.arg);
|
|
137626
|
-
|
|
137627
|
-
} else if (context.method === "return") {
|
|
137628
|
-
context.abrupt("return", context.arg);
|
|
137629
|
-
}
|
|
137630
|
-
|
|
137631
|
-
state = GenStateExecuting;
|
|
137632
|
-
|
|
137633
|
-
var record = tryCatch(innerFn, self, context);
|
|
137634
|
-
if (record.type === "normal") {
|
|
137635
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
137636
|
-
// GenStateExecuting and loop back for another invocation.
|
|
137637
|
-
state = context.done
|
|
137638
|
-
? GenStateCompleted
|
|
137639
|
-
: GenStateSuspendedYield;
|
|
137640
|
-
|
|
137641
|
-
if (record.arg === ContinueSentinel) {
|
|
137642
|
-
continue;
|
|
137643
|
-
}
|
|
137644
|
-
|
|
137645
|
-
return {
|
|
137646
|
-
value: record.arg,
|
|
137647
|
-
done: context.done
|
|
137648
|
-
};
|
|
137649
|
-
|
|
137650
|
-
} else if (record.type === "throw") {
|
|
137651
|
-
state = GenStateCompleted;
|
|
137652
|
-
// Dispatch the exception by looping back around to the
|
|
137653
|
-
// context.dispatchException(context.arg) call above.
|
|
137654
|
-
context.method = "throw";
|
|
137655
|
-
context.arg = record.arg;
|
|
137656
|
-
}
|
|
137657
|
-
}
|
|
137658
|
-
};
|
|
137659
|
-
}
|
|
137660
|
-
|
|
137661
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
137662
|
-
// result, either by returning a { value, done } result from the
|
|
137663
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
137664
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
137665
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
137666
|
-
var method = delegate.iterator[context.method];
|
|
137667
|
-
if (method === undefined) {
|
|
137668
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
137669
|
-
// method always terminates the yield* loop.
|
|
137670
|
-
context.delegate = null;
|
|
137671
|
-
|
|
137672
|
-
if (context.method === "throw") {
|
|
137673
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
137674
|
-
if (delegate.iterator["return"]) {
|
|
137675
|
-
// If the delegate iterator has a return method, give it a
|
|
137676
|
-
// chance to clean up.
|
|
137677
|
-
context.method = "return";
|
|
137678
|
-
context.arg = undefined;
|
|
137679
|
-
maybeInvokeDelegate(delegate, context);
|
|
137680
|
-
|
|
137681
|
-
if (context.method === "throw") {
|
|
137682
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
137683
|
-
// "return" to "throw", let that override the TypeError below.
|
|
137684
|
-
return ContinueSentinel;
|
|
137685
|
-
}
|
|
137686
|
-
}
|
|
137687
|
-
|
|
137688
|
-
context.method = "throw";
|
|
137689
|
-
context.arg = new TypeError(
|
|
137690
|
-
"The iterator does not provide a 'throw' method");
|
|
137691
|
-
}
|
|
137692
|
-
|
|
137693
|
-
return ContinueSentinel;
|
|
137694
|
-
}
|
|
137695
|
-
|
|
137696
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
137697
|
-
|
|
137698
|
-
if (record.type === "throw") {
|
|
137699
|
-
context.method = "throw";
|
|
137700
|
-
context.arg = record.arg;
|
|
137701
|
-
context.delegate = null;
|
|
137702
|
-
return ContinueSentinel;
|
|
137703
|
-
}
|
|
137704
|
-
|
|
137705
|
-
var info = record.arg;
|
|
137706
|
-
|
|
137707
|
-
if (! info) {
|
|
137708
|
-
context.method = "throw";
|
|
137709
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
137710
|
-
context.delegate = null;
|
|
137711
|
-
return ContinueSentinel;
|
|
137712
|
-
}
|
|
137713
|
-
|
|
137714
|
-
if (info.done) {
|
|
137715
|
-
// Assign the result of the finished delegate to the temporary
|
|
137716
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
137717
|
-
context[delegate.resultName] = info.value;
|
|
137718
|
-
|
|
137719
|
-
// Resume execution at the desired location (see delegateYield).
|
|
137720
|
-
context.next = delegate.nextLoc;
|
|
137721
|
-
|
|
137722
|
-
// If context.method was "throw" but the delegate handled the
|
|
137723
|
-
// exception, let the outer generator proceed normally. If
|
|
137724
|
-
// context.method was "next", forget context.arg since it has been
|
|
137725
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
137726
|
-
// "return", allow the original .return call to continue in the
|
|
137727
|
-
// outer generator.
|
|
137728
|
-
if (context.method !== "return") {
|
|
137729
|
-
context.method = "next";
|
|
137730
|
-
context.arg = undefined;
|
|
137731
|
-
}
|
|
137732
|
-
|
|
137733
|
-
} else {
|
|
137734
|
-
// Re-yield the result returned by the delegate method.
|
|
137735
|
-
return info;
|
|
137736
|
-
}
|
|
137737
|
-
|
|
137738
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
137739
|
-
// the outer generator.
|
|
137740
|
-
context.delegate = null;
|
|
137741
|
-
return ContinueSentinel;
|
|
137742
|
-
}
|
|
137743
|
-
|
|
137744
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
137745
|
-
// unified ._invoke helper method.
|
|
137746
|
-
defineIteratorMethods(Gp);
|
|
137747
|
-
|
|
137748
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
137749
|
-
|
|
137750
|
-
// A Generator should always return itself as the iterator object when the
|
|
137751
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
137752
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
137753
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
137754
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
137755
|
-
define(Gp, iteratorSymbol, function() {
|
|
137756
|
-
return this;
|
|
137757
|
-
});
|
|
137758
|
-
|
|
137759
|
-
define(Gp, "toString", function() {
|
|
137760
|
-
return "[object Generator]";
|
|
137761
|
-
});
|
|
137762
|
-
|
|
137763
|
-
function pushTryEntry(locs) {
|
|
137764
|
-
var entry = { tryLoc: locs[0] };
|
|
137765
|
-
|
|
137766
|
-
if (1 in locs) {
|
|
137767
|
-
entry.catchLoc = locs[1];
|
|
137768
|
-
}
|
|
137769
|
-
|
|
137770
|
-
if (2 in locs) {
|
|
137771
|
-
entry.finallyLoc = locs[2];
|
|
137772
|
-
entry.afterLoc = locs[3];
|
|
137773
|
-
}
|
|
137774
|
-
|
|
137775
|
-
this.tryEntries.push(entry);
|
|
137776
|
-
}
|
|
137777
|
-
|
|
137778
|
-
function resetTryEntry(entry) {
|
|
137779
|
-
var record = entry.completion || {};
|
|
137780
|
-
record.type = "normal";
|
|
137781
|
-
delete record.arg;
|
|
137782
|
-
entry.completion = record;
|
|
137783
|
-
}
|
|
137784
|
-
|
|
137785
|
-
function Context(tryLocsList) {
|
|
137786
|
-
// The root entry object (effectively a try statement without a catch
|
|
137787
|
-
// or a finally block) gives us a place to store values thrown from
|
|
137788
|
-
// locations where there is no enclosing try statement.
|
|
137789
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
137790
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
137791
|
-
this.reset(true);
|
|
137792
|
-
}
|
|
137793
|
-
|
|
137794
|
-
exports.keys = function(object) {
|
|
137795
|
-
var keys = [];
|
|
137796
|
-
for (var key in object) {
|
|
137797
|
-
keys.push(key);
|
|
137798
|
-
}
|
|
137799
|
-
keys.reverse();
|
|
137800
|
-
|
|
137801
|
-
// Rather than returning an object with a next method, we keep
|
|
137802
|
-
// things simple and return the next function itself.
|
|
137803
|
-
return function next() {
|
|
137804
|
-
while (keys.length) {
|
|
137805
|
-
var key = keys.pop();
|
|
137806
|
-
if (key in object) {
|
|
137807
|
-
next.value = key;
|
|
137808
|
-
next.done = false;
|
|
137809
|
-
return next;
|
|
137810
|
-
}
|
|
137811
|
-
}
|
|
137812
|
-
|
|
137813
|
-
// To avoid creating an additional object, we just hang the .value
|
|
137814
|
-
// and .done properties off the next function object itself. This
|
|
137815
|
-
// also ensures that the minifier will not anonymize the function.
|
|
137816
|
-
next.done = true;
|
|
137817
|
-
return next;
|
|
137818
|
-
};
|
|
137819
|
-
};
|
|
137820
|
-
|
|
137821
|
-
function values(iterable) {
|
|
137822
|
-
if (iterable) {
|
|
137823
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
137824
|
-
if (iteratorMethod) {
|
|
137825
|
-
return iteratorMethod.call(iterable);
|
|
137826
|
-
}
|
|
137827
|
-
|
|
137828
|
-
if (typeof iterable.next === "function") {
|
|
137829
|
-
return iterable;
|
|
137830
|
-
}
|
|
137831
|
-
|
|
137832
|
-
if (!isNaN(iterable.length)) {
|
|
137833
|
-
var i = -1, next = function next() {
|
|
137834
|
-
while (++i < iterable.length) {
|
|
137835
|
-
if (hasOwn.call(iterable, i)) {
|
|
137836
|
-
next.value = iterable[i];
|
|
137837
|
-
next.done = false;
|
|
137838
|
-
return next;
|
|
137839
|
-
}
|
|
137840
|
-
}
|
|
137841
|
-
|
|
137842
|
-
next.value = undefined;
|
|
137843
|
-
next.done = true;
|
|
137844
|
-
|
|
137845
|
-
return next;
|
|
137846
|
-
};
|
|
137847
|
-
|
|
137848
|
-
return next.next = next;
|
|
137849
|
-
}
|
|
137850
|
-
}
|
|
137851
|
-
|
|
137852
|
-
// Return an iterator with no values.
|
|
137853
|
-
return { next: doneResult };
|
|
137854
|
-
}
|
|
137855
|
-
exports.values = values;
|
|
137856
|
-
|
|
137857
|
-
function doneResult() {
|
|
137858
|
-
return { value: undefined, done: true };
|
|
137859
|
-
}
|
|
137860
|
-
|
|
137861
|
-
Context.prototype = {
|
|
137862
|
-
constructor: Context,
|
|
137863
|
-
|
|
137864
|
-
reset: function(skipTempReset) {
|
|
137865
|
-
this.prev = 0;
|
|
137866
|
-
this.next = 0;
|
|
137867
|
-
// Resetting context._sent for legacy support of Babel's
|
|
137868
|
-
// function.sent implementation.
|
|
137869
|
-
this.sent = this._sent = undefined;
|
|
137870
|
-
this.done = false;
|
|
137871
|
-
this.delegate = null;
|
|
137872
|
-
|
|
137873
|
-
this.method = "next";
|
|
137874
|
-
this.arg = undefined;
|
|
137875
|
-
|
|
137876
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
137877
|
-
|
|
137878
|
-
if (!skipTempReset) {
|
|
137879
|
-
for (var name in this) {
|
|
137880
|
-
// Not sure about the optimal order of these conditions:
|
|
137881
|
-
if (name.charAt(0) === "t" &&
|
|
137882
|
-
hasOwn.call(this, name) &&
|
|
137883
|
-
!isNaN(+name.slice(1))) {
|
|
137884
|
-
this[name] = undefined;
|
|
137885
|
-
}
|
|
137886
|
-
}
|
|
137887
|
-
}
|
|
137888
|
-
},
|
|
137889
|
-
|
|
137890
|
-
stop: function() {
|
|
137891
|
-
this.done = true;
|
|
137892
|
-
|
|
137893
|
-
var rootEntry = this.tryEntries[0];
|
|
137894
|
-
var rootRecord = rootEntry.completion;
|
|
137895
|
-
if (rootRecord.type === "throw") {
|
|
137896
|
-
throw rootRecord.arg;
|
|
137897
|
-
}
|
|
137898
|
-
|
|
137899
|
-
return this.rval;
|
|
137900
|
-
},
|
|
137901
|
-
|
|
137902
|
-
dispatchException: function(exception) {
|
|
137903
|
-
if (this.done) {
|
|
137904
|
-
throw exception;
|
|
137905
|
-
}
|
|
137906
|
-
|
|
137907
|
-
var context = this;
|
|
137908
|
-
function handle(loc, caught) {
|
|
137909
|
-
record.type = "throw";
|
|
137910
|
-
record.arg = exception;
|
|
137911
|
-
context.next = loc;
|
|
137912
|
-
|
|
137913
|
-
if (caught) {
|
|
137914
|
-
// If the dispatched exception was caught by a catch block,
|
|
137915
|
-
// then let that catch block handle the exception normally.
|
|
137916
|
-
context.method = "next";
|
|
137917
|
-
context.arg = undefined;
|
|
137918
|
-
}
|
|
137919
|
-
|
|
137920
|
-
return !! caught;
|
|
137921
|
-
}
|
|
137922
|
-
|
|
137923
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
137924
|
-
var entry = this.tryEntries[i];
|
|
137925
|
-
var record = entry.completion;
|
|
137926
|
-
|
|
137927
|
-
if (entry.tryLoc === "root") {
|
|
137928
|
-
// Exception thrown outside of any try block that could handle
|
|
137929
|
-
// it, so set the completion value of the entire function to
|
|
137930
|
-
// throw the exception.
|
|
137931
|
-
return handle("end");
|
|
137932
|
-
}
|
|
137933
|
-
|
|
137934
|
-
if (entry.tryLoc <= this.prev) {
|
|
137935
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
137936
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
137937
|
-
|
|
137938
|
-
if (hasCatch && hasFinally) {
|
|
137939
|
-
if (this.prev < entry.catchLoc) {
|
|
137940
|
-
return handle(entry.catchLoc, true);
|
|
137941
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
137942
|
-
return handle(entry.finallyLoc);
|
|
137943
|
-
}
|
|
137944
|
-
|
|
137945
|
-
} else if (hasCatch) {
|
|
137946
|
-
if (this.prev < entry.catchLoc) {
|
|
137947
|
-
return handle(entry.catchLoc, true);
|
|
137948
|
-
}
|
|
137949
|
-
|
|
137950
|
-
} else if (hasFinally) {
|
|
137951
|
-
if (this.prev < entry.finallyLoc) {
|
|
137952
|
-
return handle(entry.finallyLoc);
|
|
137953
|
-
}
|
|
137954
|
-
|
|
137955
|
-
} else {
|
|
137956
|
-
throw new Error("try statement without catch or finally");
|
|
137957
|
-
}
|
|
137958
|
-
}
|
|
137959
|
-
}
|
|
137960
|
-
},
|
|
137961
|
-
|
|
137962
|
-
abrupt: function(type, arg) {
|
|
137963
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
137964
|
-
var entry = this.tryEntries[i];
|
|
137965
|
-
if (entry.tryLoc <= this.prev &&
|
|
137966
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
137967
|
-
this.prev < entry.finallyLoc) {
|
|
137968
|
-
var finallyEntry = entry;
|
|
137969
|
-
break;
|
|
137970
|
-
}
|
|
137971
|
-
}
|
|
137972
|
-
|
|
137973
|
-
if (finallyEntry &&
|
|
137974
|
-
(type === "break" ||
|
|
137975
|
-
type === "continue") &&
|
|
137976
|
-
finallyEntry.tryLoc <= arg &&
|
|
137977
|
-
arg <= finallyEntry.finallyLoc) {
|
|
137978
|
-
// Ignore the finally entry if control is not jumping to a
|
|
137979
|
-
// location outside the try/catch block.
|
|
137980
|
-
finallyEntry = null;
|
|
137981
|
-
}
|
|
137982
|
-
|
|
137983
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
137984
|
-
record.type = type;
|
|
137985
|
-
record.arg = arg;
|
|
137986
|
-
|
|
137987
|
-
if (finallyEntry) {
|
|
137988
|
-
this.method = "next";
|
|
137989
|
-
this.next = finallyEntry.finallyLoc;
|
|
137990
|
-
return ContinueSentinel;
|
|
137991
|
-
}
|
|
137992
|
-
|
|
137993
|
-
return this.complete(record);
|
|
137994
|
-
},
|
|
137995
|
-
|
|
137996
|
-
complete: function(record, afterLoc) {
|
|
137997
|
-
if (record.type === "throw") {
|
|
137998
|
-
throw record.arg;
|
|
137999
|
-
}
|
|
138000
|
-
|
|
138001
|
-
if (record.type === "break" ||
|
|
138002
|
-
record.type === "continue") {
|
|
138003
|
-
this.next = record.arg;
|
|
138004
|
-
} else if (record.type === "return") {
|
|
138005
|
-
this.rval = this.arg = record.arg;
|
|
138006
|
-
this.method = "return";
|
|
138007
|
-
this.next = "end";
|
|
138008
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
138009
|
-
this.next = afterLoc;
|
|
138010
|
-
}
|
|
138011
|
-
|
|
138012
|
-
return ContinueSentinel;
|
|
138013
|
-
},
|
|
138014
|
-
|
|
138015
|
-
finish: function(finallyLoc) {
|
|
138016
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
138017
|
-
var entry = this.tryEntries[i];
|
|
138018
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
138019
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
138020
|
-
resetTryEntry(entry);
|
|
138021
|
-
return ContinueSentinel;
|
|
138022
|
-
}
|
|
138023
|
-
}
|
|
138024
|
-
},
|
|
138025
|
-
|
|
138026
|
-
"catch": function(tryLoc) {
|
|
138027
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
138028
|
-
var entry = this.tryEntries[i];
|
|
138029
|
-
if (entry.tryLoc === tryLoc) {
|
|
138030
|
-
var record = entry.completion;
|
|
138031
|
-
if (record.type === "throw") {
|
|
138032
|
-
var thrown = record.arg;
|
|
138033
|
-
resetTryEntry(entry);
|
|
138034
|
-
}
|
|
138035
|
-
return thrown;
|
|
138036
|
-
}
|
|
138037
|
-
}
|
|
138038
|
-
|
|
138039
|
-
// The context.catch method must only be called with a location
|
|
138040
|
-
// argument that corresponds to a known catch block.
|
|
138041
|
-
throw new Error("illegal catch attempt");
|
|
138042
|
-
},
|
|
138043
|
-
|
|
138044
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
138045
|
-
this.delegate = {
|
|
138046
|
-
iterator: values(iterable),
|
|
138047
|
-
resultName: resultName,
|
|
138048
|
-
nextLoc: nextLoc
|
|
138049
|
-
};
|
|
138050
|
-
|
|
138051
|
-
if (this.method === "next") {
|
|
138052
|
-
// Deliberately forget the last sent value so that we don't
|
|
138053
|
-
// accidentally pass it on to the delegate.
|
|
138054
|
-
this.arg = undefined;
|
|
138055
|
-
}
|
|
138056
|
-
|
|
138057
|
-
return ContinueSentinel;
|
|
138058
|
-
}
|
|
138059
|
-
};
|
|
138060
|
-
|
|
138061
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
138062
|
-
// or not, return the runtime object so that we can declare the variable
|
|
138063
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
138064
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
138065
|
-
return exports;
|
|
138066
|
-
|
|
138067
|
-
}(
|
|
138068
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
138069
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
138070
|
-
// object. Either way, the resulting object will be used to initialize
|
|
138071
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
138072
|
-
true ? module.exports : undefined
|
|
138073
|
-
));
|
|
138074
|
-
|
|
138075
|
-
try {
|
|
138076
|
-
regeneratorRuntime = runtime;
|
|
138077
|
-
} catch (accidentalStrictMode) {
|
|
138078
|
-
// This module should not be running in strict mode, so the above
|
|
138079
|
-
// assignment should always work unless something is misconfigured. Just
|
|
138080
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
138081
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
138082
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
138083
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
138084
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
138085
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
138086
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
138087
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
138088
|
-
if (typeof globalThis === "object") {
|
|
138089
|
-
globalThis.regeneratorRuntime = runtime;
|
|
138090
|
-
} else {
|
|
138091
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
138092
|
-
}
|
|
138093
|
-
}
|
|
138094
|
-
|
|
138095
|
-
|
|
138096
138259
|
/***/ }),
|
|
138097
138260
|
|
|
138098
138261
|
/***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
|