@kmkf-fe-packages/basic-components 1.4.0 → 1.4.2

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/index.esm.js CHANGED
@@ -9,377 +9,363 @@ import { cloneDeep, difference, differenceWith } from 'lodash';
9
9
  import { useDebounceEffect } from 'ahooks';
10
10
  import pubsub from 'pubsub-js';
11
11
 
12
- function _iterableToArrayLimit(r, l) {
13
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14
- if (null != t) {
15
- var e,
16
- n,
17
- i,
18
- u,
19
- a = [],
20
- f = !0,
21
- o = !1;
12
+ function _iterableToArrayLimit(arr, i) {
13
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
14
+ if (null != _i) {
15
+ var _s,
16
+ _e,
17
+ _x,
18
+ _r,
19
+ _arr = [],
20
+ _n = !0,
21
+ _d = !1;
22
22
  try {
23
- if (i = (t = t.call(r)).next, 0 === l) {
24
- if (Object(t) !== t) return;
25
- f = !1;
26
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
27
- } catch (r) {
28
- o = !0, n = r;
23
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
24
+ if (Object(_i) !== _i) return;
25
+ _n = !1;
26
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
27
+ } catch (err) {
28
+ _d = !0, _e = err;
29
29
  } finally {
30
30
  try {
31
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
31
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
32
32
  } finally {
33
- if (o) throw n;
33
+ if (_d) throw _e;
34
34
  }
35
35
  }
36
- return a;
36
+ return _arr;
37
37
  }
38
38
  }
39
- function ownKeys(e, r) {
40
- var t = Object.keys(e);
39
+ function ownKeys(object, enumerableOnly) {
40
+ var keys = Object.keys(object);
41
41
  if (Object.getOwnPropertySymbols) {
42
- var o = Object.getOwnPropertySymbols(e);
43
- r && (o = o.filter(function (r) {
44
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
45
- })), t.push.apply(t, o);
42
+ var symbols = Object.getOwnPropertySymbols(object);
43
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
44
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
45
+ })), keys.push.apply(keys, symbols);
46
46
  }
47
- return t;
48
- }
49
- function _objectSpread2(e) {
50
- for (var r = 1; r < arguments.length; r++) {
51
- var t = null != arguments[r] ? arguments[r] : {};
52
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
53
- _defineProperty(e, r, t[r]);
54
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
55
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
47
+ return keys;
48
+ }
49
+ function _objectSpread2(target) {
50
+ for (var i = 1; i < arguments.length; i++) {
51
+ var source = null != arguments[i] ? arguments[i] : {};
52
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
53
+ _defineProperty(target, key, source[key]);
54
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
55
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
56
56
  });
57
57
  }
58
- return e;
58
+ return target;
59
59
  }
60
60
  function _regeneratorRuntime() {
61
61
  _regeneratorRuntime = function () {
62
- return e;
63
- };
64
- var t,
65
- e = {},
66
- r = Object.prototype,
67
- n = r.hasOwnProperty,
68
- o = Object.defineProperty || function (t, e, r) {
69
- t[e] = r.value;
62
+ return exports;
63
+ };
64
+ var exports = {},
65
+ Op = Object.prototype,
66
+ hasOwn = Op.hasOwnProperty,
67
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
68
+ obj[key] = desc.value;
70
69
  },
71
- i = "function" == typeof Symbol ? Symbol : {},
72
- a = i.iterator || "@@iterator",
73
- c = i.asyncIterator || "@@asyncIterator",
74
- u = i.toStringTag || "@@toStringTag";
75
- function define(t, e, r) {
76
- return Object.defineProperty(t, e, {
77
- value: r,
70
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
71
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
72
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
73
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
74
+ function define(obj, key, value) {
75
+ return Object.defineProperty(obj, key, {
76
+ value: value,
78
77
  enumerable: !0,
79
78
  configurable: !0,
80
79
  writable: !0
81
- }), t[e];
80
+ }), obj[key];
82
81
  }
83
82
  try {
84
83
  define({}, "");
85
- } catch (t) {
86
- define = function (t, e, r) {
87
- return t[e] = r;
84
+ } catch (err) {
85
+ define = function (obj, key, value) {
86
+ return obj[key] = value;
88
87
  };
89
88
  }
90
- function wrap(t, e, r, n) {
91
- var i = e && e.prototype instanceof Generator ? e : Generator,
92
- a = Object.create(i.prototype),
93
- c = new Context(n || []);
94
- return o(a, "_invoke", {
95
- value: makeInvokeMethod(t, r, c)
96
- }), a;
89
+ function wrap(innerFn, outerFn, self, tryLocsList) {
90
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
91
+ generator = Object.create(protoGenerator.prototype),
92
+ context = new Context(tryLocsList || []);
93
+ return defineProperty(generator, "_invoke", {
94
+ value: makeInvokeMethod(innerFn, self, context)
95
+ }), generator;
97
96
  }
98
- function tryCatch(t, e, r) {
97
+ function tryCatch(fn, obj, arg) {
99
98
  try {
100
99
  return {
101
100
  type: "normal",
102
- arg: t.call(e, r)
101
+ arg: fn.call(obj, arg)
103
102
  };
104
- } catch (t) {
103
+ } catch (err) {
105
104
  return {
106
105
  type: "throw",
107
- arg: t
106
+ arg: err
108
107
  };
109
108
  }
110
109
  }
111
- e.wrap = wrap;
112
- var h = "suspendedStart",
113
- l = "suspendedYield",
114
- f = "executing",
115
- s = "completed",
116
- y = {};
110
+ exports.wrap = wrap;
111
+ var ContinueSentinel = {};
117
112
  function Generator() {}
118
113
  function GeneratorFunction() {}
119
114
  function GeneratorFunctionPrototype() {}
120
- var p = {};
121
- define(p, a, function () {
115
+ var IteratorPrototype = {};
116
+ define(IteratorPrototype, iteratorSymbol, function () {
122
117
  return this;
123
118
  });
124
- var d = Object.getPrototypeOf,
125
- v = d && d(d(values([])));
126
- v && v !== r && n.call(v, a) && (p = v);
127
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
128
- function defineIteratorMethods(t) {
129
- ["next", "throw", "return"].forEach(function (e) {
130
- define(t, e, function (t) {
131
- return this._invoke(e, t);
119
+ var getProto = Object.getPrototypeOf,
120
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
121
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
122
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
123
+ function defineIteratorMethods(prototype) {
124
+ ["next", "throw", "return"].forEach(function (method) {
125
+ define(prototype, method, function (arg) {
126
+ return this._invoke(method, arg);
132
127
  });
133
128
  });
134
129
  }
135
- function AsyncIterator(t, e) {
136
- function invoke(r, o, i, a) {
137
- var c = tryCatch(t[r], t, o);
138
- if ("throw" !== c.type) {
139
- var u = c.arg,
140
- h = u.value;
141
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
142
- invoke("next", t, i, a);
143
- }, function (t) {
144
- invoke("throw", t, i, a);
145
- }) : e.resolve(h).then(function (t) {
146
- u.value = t, i(u);
147
- }, function (t) {
148
- return invoke("throw", t, i, a);
130
+ function AsyncIterator(generator, PromiseImpl) {
131
+ function invoke(method, arg, resolve, reject) {
132
+ var record = tryCatch(generator[method], generator, arg);
133
+ if ("throw" !== record.type) {
134
+ var result = record.arg,
135
+ value = result.value;
136
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
137
+ invoke("next", value, resolve, reject);
138
+ }, function (err) {
139
+ invoke("throw", err, resolve, reject);
140
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
141
+ result.value = unwrapped, resolve(result);
142
+ }, function (error) {
143
+ return invoke("throw", error, resolve, reject);
149
144
  });
150
145
  }
151
- a(c.arg);
146
+ reject(record.arg);
152
147
  }
153
- var r;
154
- o(this, "_invoke", {
155
- value: function (t, n) {
148
+ var previousPromise;
149
+ defineProperty(this, "_invoke", {
150
+ value: function (method, arg) {
156
151
  function callInvokeWithMethodAndArg() {
157
- return new e(function (e, r) {
158
- invoke(t, n, e, r);
152
+ return new PromiseImpl(function (resolve, reject) {
153
+ invoke(method, arg, resolve, reject);
159
154
  });
160
155
  }
161
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
156
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
157
  }
163
158
  });
164
159
  }
165
- function makeInvokeMethod(e, r, n) {
166
- var o = h;
167
- return function (i, a) {
168
- if (o === f) throw new Error("Generator is already running");
169
- if (o === s) {
170
- if ("throw" === i) throw a;
171
- return {
172
- value: t,
173
- done: !0
174
- };
160
+ function makeInvokeMethod(innerFn, self, context) {
161
+ var state = "suspendedStart";
162
+ return function (method, arg) {
163
+ if ("executing" === state) throw new Error("Generator is already running");
164
+ if ("completed" === state) {
165
+ if ("throw" === method) throw arg;
166
+ return doneResult();
175
167
  }
176
- for (n.method = i, n.arg = a;;) {
177
- var c = n.delegate;
178
- if (c) {
179
- var u = maybeInvokeDelegate(c, n);
180
- if (u) {
181
- if (u === y) continue;
182
- return u;
168
+ for (context.method = method, context.arg = arg;;) {
169
+ var delegate = context.delegate;
170
+ if (delegate) {
171
+ var delegateResult = maybeInvokeDelegate(delegate, context);
172
+ if (delegateResult) {
173
+ if (delegateResult === ContinueSentinel) continue;
174
+ return delegateResult;
183
175
  }
184
176
  }
185
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
186
- if (o === h) throw o = s, n.arg;
187
- n.dispatchException(n.arg);
188
- } else "return" === n.method && n.abrupt("return", n.arg);
189
- o = f;
190
- var p = tryCatch(e, r, n);
191
- if ("normal" === p.type) {
192
- if (o = n.done ? s : l, p.arg === y) continue;
177
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
178
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
179
+ context.dispatchException(context.arg);
180
+ } else "return" === context.method && context.abrupt("return", context.arg);
181
+ state = "executing";
182
+ var record = tryCatch(innerFn, self, context);
183
+ if ("normal" === record.type) {
184
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
193
185
  return {
194
- value: p.arg,
195
- done: n.done
186
+ value: record.arg,
187
+ done: context.done
196
188
  };
197
189
  }
198
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
190
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
199
191
  }
200
192
  };
201
193
  }
202
- function maybeInvokeDelegate(e, r) {
203
- var n = r.method,
204
- o = e.iterator[n];
205
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
206
- var i = tryCatch(o, e.iterator, r.arg);
207
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
208
- var a = i.arg;
209
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
194
+ function maybeInvokeDelegate(delegate, context) {
195
+ var methodName = context.method,
196
+ method = delegate.iterator[methodName];
197
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
198
+ var record = tryCatch(method, delegate.iterator, context.arg);
199
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
200
+ var info = record.arg;
201
+ 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);
210
202
  }
211
- function pushTryEntry(t) {
212
- var e = {
213
- tryLoc: t[0]
203
+ function pushTryEntry(locs) {
204
+ var entry = {
205
+ tryLoc: locs[0]
214
206
  };
215
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
207
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
216
208
  }
217
- function resetTryEntry(t) {
218
- var e = t.completion || {};
219
- e.type = "normal", delete e.arg, t.completion = e;
209
+ function resetTryEntry(entry) {
210
+ var record = entry.completion || {};
211
+ record.type = "normal", delete record.arg, entry.completion = record;
220
212
  }
221
- function Context(t) {
213
+ function Context(tryLocsList) {
222
214
  this.tryEntries = [{
223
215
  tryLoc: "root"
224
- }], t.forEach(pushTryEntry, this), this.reset(!0);
216
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
225
217
  }
226
- function values(e) {
227
- if (e || "" === e) {
228
- var r = e[a];
229
- if (r) return r.call(e);
230
- if ("function" == typeof e.next) return e;
231
- if (!isNaN(e.length)) {
232
- var o = -1,
233
- i = function next() {
234
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
235
- return next.value = t, next.done = !0, next;
218
+ function values(iterable) {
219
+ if (iterable) {
220
+ var iteratorMethod = iterable[iteratorSymbol];
221
+ if (iteratorMethod) return iteratorMethod.call(iterable);
222
+ if ("function" == typeof iterable.next) return iterable;
223
+ if (!isNaN(iterable.length)) {
224
+ var i = -1,
225
+ next = function next() {
226
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
227
+ return next.value = undefined, next.done = !0, next;
236
228
  };
237
- return i.next = i;
229
+ return next.next = next;
238
230
  }
239
231
  }
240
- throw new TypeError(typeof e + " is not iterable");
232
+ return {
233
+ next: doneResult
234
+ };
241
235
  }
242
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
236
+ function doneResult() {
237
+ return {
238
+ value: undefined,
239
+ done: !0
240
+ };
241
+ }
242
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
243
243
  value: GeneratorFunctionPrototype,
244
244
  configurable: !0
245
- }), o(GeneratorFunctionPrototype, "constructor", {
245
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
246
246
  value: GeneratorFunction,
247
247
  configurable: !0
248
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
249
- var e = "function" == typeof t && t.constructor;
250
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
251
- }, e.mark = function (t) {
252
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
253
- }, e.awrap = function (t) {
248
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
249
+ var ctor = "function" == typeof genFun && genFun.constructor;
250
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
251
+ }, exports.mark = function (genFun) {
252
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
253
+ }, exports.awrap = function (arg) {
254
254
  return {
255
- __await: t
255
+ __await: arg
256
256
  };
257
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
257
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
258
258
  return this;
259
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
260
- void 0 === i && (i = Promise);
261
- var a = new AsyncIterator(wrap(t, r, n, o), i);
262
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
263
- return t.done ? t.value : a.next();
259
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
260
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
261
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
262
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
263
+ return result.done ? result.value : iter.next();
264
264
  });
265
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
265
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
266
266
  return this;
267
- }), define(g, "toString", function () {
267
+ }), define(Gp, "toString", function () {
268
268
  return "[object Generator]";
269
- }), e.keys = function (t) {
270
- var e = Object(t),
271
- r = [];
272
- for (var n in e) r.push(n);
273
- return r.reverse(), function next() {
274
- for (; r.length;) {
275
- var t = r.pop();
276
- if (t in e) return next.value = t, next.done = !1, next;
269
+ }), exports.keys = function (val) {
270
+ var object = Object(val),
271
+ keys = [];
272
+ for (var key in object) keys.push(key);
273
+ return keys.reverse(), function next() {
274
+ for (; keys.length;) {
275
+ var key = keys.pop();
276
+ if (key in object) return next.value = key, next.done = !1, next;
277
277
  }
278
278
  return next.done = !0, next;
279
279
  };
280
- }, e.values = values, Context.prototype = {
280
+ }, exports.values = values, Context.prototype = {
281
281
  constructor: Context,
282
- reset: function (e) {
283
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
282
+ reset: function (skipTempReset) {
283
+ 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) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
284
284
  },
285
285
  stop: function () {
286
286
  this.done = !0;
287
- var t = this.tryEntries[0].completion;
288
- if ("throw" === t.type) throw t.arg;
287
+ var rootRecord = this.tryEntries[0].completion;
288
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
289
289
  return this.rval;
290
290
  },
291
- dispatchException: function (e) {
292
- if (this.done) throw e;
293
- var r = this;
294
- function handle(n, o) {
295
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
291
+ dispatchException: function (exception) {
292
+ if (this.done) throw exception;
293
+ var context = this;
294
+ function handle(loc, caught) {
295
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
296
296
  }
297
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
298
- var i = this.tryEntries[o],
299
- a = i.completion;
300
- if ("root" === i.tryLoc) return handle("end");
301
- if (i.tryLoc <= this.prev) {
302
- var c = n.call(i, "catchLoc"),
303
- u = n.call(i, "finallyLoc");
304
- if (c && u) {
305
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
306
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
307
- } else if (c) {
308
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
297
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
298
+ var entry = this.tryEntries[i],
299
+ record = entry.completion;
300
+ if ("root" === entry.tryLoc) return handle("end");
301
+ if (entry.tryLoc <= this.prev) {
302
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
303
+ hasFinally = hasOwn.call(entry, "finallyLoc");
304
+ if (hasCatch && hasFinally) {
305
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
306
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
307
+ } else if (hasCatch) {
308
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
309
309
  } else {
310
- if (!u) throw new Error("try statement without catch or finally");
311
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
310
+ if (!hasFinally) throw new Error("try statement without catch or finally");
311
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
312
312
  }
313
313
  }
314
314
  }
315
315
  },
316
- abrupt: function (t, e) {
317
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
318
- var o = this.tryEntries[r];
319
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
320
- var i = o;
316
+ abrupt: function (type, arg) {
317
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
318
+ var entry = this.tryEntries[i];
319
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
320
+ var finallyEntry = entry;
321
321
  break;
322
322
  }
323
323
  }
324
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
325
- var a = i ? i.completion : {};
326
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
324
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
325
+ var record = finallyEntry ? finallyEntry.completion : {};
326
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
327
327
  },
328
- complete: function (t, e) {
329
- if ("throw" === t.type) throw t.arg;
330
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
328
+ complete: function (record, afterLoc) {
329
+ if ("throw" === record.type) throw record.arg;
330
+ 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;
331
331
  },
332
- finish: function (t) {
333
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
334
- var r = this.tryEntries[e];
335
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
332
+ finish: function (finallyLoc) {
333
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
334
+ var entry = this.tryEntries[i];
335
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
336
336
  }
337
337
  },
338
- catch: function (t) {
339
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
340
- var r = this.tryEntries[e];
341
- if (r.tryLoc === t) {
342
- var n = r.completion;
343
- if ("throw" === n.type) {
344
- var o = n.arg;
345
- resetTryEntry(r);
338
+ catch: function (tryLoc) {
339
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
340
+ var entry = this.tryEntries[i];
341
+ if (entry.tryLoc === tryLoc) {
342
+ var record = entry.completion;
343
+ if ("throw" === record.type) {
344
+ var thrown = record.arg;
345
+ resetTryEntry(entry);
346
346
  }
347
- return o;
347
+ return thrown;
348
348
  }
349
349
  }
350
350
  throw new Error("illegal catch attempt");
351
351
  },
352
- delegateYield: function (e, r, n) {
352
+ delegateYield: function (iterable, resultName, nextLoc) {
353
353
  return this.delegate = {
354
- iterator: values(e),
355
- resultName: r,
356
- nextLoc: n
357
- }, "next" === this.method && (this.arg = t), y;
358
- }
359
- }, e;
360
- }
361
- function _toPrimitive(t, r) {
362
- if ("object" != typeof t || !t) return t;
363
- var e = t[Symbol.toPrimitive];
364
- if (void 0 !== e) {
365
- var i = e.call(t, r || "default");
366
- if ("object" != typeof i) return i;
367
- throw new TypeError("@@toPrimitive must return a primitive value.");
368
- }
369
- return ("string" === r ? String : Number)(t);
370
- }
371
- function _toPropertyKey(t) {
372
- var i = _toPrimitive(t, "string");
373
- return "symbol" == typeof i ? i : String(i);
354
+ iterator: values(iterable),
355
+ resultName: resultName,
356
+ nextLoc: nextLoc
357
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
358
+ }
359
+ }, exports;
374
360
  }
375
- function _typeof(o) {
361
+ function _typeof(obj) {
376
362
  "@babel/helpers - typeof";
377
363
 
378
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
379
- return typeof o;
380
- } : function (o) {
381
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
382
- }, _typeof(o);
364
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
365
+ return typeof obj;
366
+ } : function (obj) {
367
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
368
+ }, _typeof(obj);
383
369
  }
384
370
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
385
371
  try {
@@ -486,6 +472,20 @@ function _nonIterableSpread() {
486
472
  function _nonIterableRest() {
487
473
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
488
474
  }
475
+ function _toPrimitive(input, hint) {
476
+ if (typeof input !== "object" || input === null) return input;
477
+ var prim = input[Symbol.toPrimitive];
478
+ if (prim !== undefined) {
479
+ var res = prim.call(input, hint || "default");
480
+ if (typeof res !== "object") return res;
481
+ throw new TypeError("@@toPrimitive must return a primitive value.");
482
+ }
483
+ return (hint === "string" ? String : Number)(input);
484
+ }
485
+ function _toPropertyKey(arg) {
486
+ var key = _toPrimitive(arg, "string");
487
+ return typeof key === "symbol" ? key : String(key);
488
+ }
489
489
 
490
490
  function ApaasCascader(props) {
491
491
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({