@para-ui/core 3.0.28 → 3.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/AutoBox/index.js +48 -88
  2. package/AutoTips/index.js +25 -32
  3. package/Breadcrumbs/index.js +43 -63
  4. package/Button/SplitButton.d.ts +1 -1
  5. package/Button/index.d.ts +1 -1
  6. package/Button/index.js +88 -118
  7. package/ButtonGroup/index.js +27 -36
  8. package/Carousel/index.d.ts +2 -2
  9. package/Carousel/index.js +27 -28
  10. package/Cascader/index.js +52 -64
  11. package/Checkbox/index.js +23 -39
  12. package/CheckboxGroup/index.js +31 -48
  13. package/Collapse/collapsePanel.d.ts +1 -1
  14. package/Collapse/index.d.ts +1 -1
  15. package/Collapse/index.js +9 -29
  16. package/Collapse/util.d.ts +2 -2
  17. package/CollapseBox/index.js +45 -56
  18. package/CollapseLayout/index.js +35 -54
  19. package/ComboSelect/index.js +222 -349
  20. package/ComboSelect/interface.d.ts +3 -3
  21. package/Container/index.js +17 -20
  22. package/DatePicker/generatePicker/index.d.ts +17 -17
  23. package/DatePicker/index.d.ts +4 -4
  24. package/DatePicker/index.js +111 -167
  25. package/Desktop/index.js +62 -173
  26. package/Drawer/index.js +65 -58
  27. package/Drawer/interface.d.ts +7 -3
  28. package/Dropdown/index.d.ts +1 -1
  29. package/Dropdown/index.js +3 -3
  30. package/Empty/index.js +17 -22
  31. package/Form/index.d.ts +1 -1
  32. package/Form/index.js +38 -80
  33. package/FormItem/index.d.ts +1 -1
  34. package/FormItem/index.js +11 -11
  35. package/FormItem/validateFunction.d.ts +1 -1
  36. package/FunctionModal/index.js +11 -11
  37. package/GlobalContext/index.js +3 -3
  38. package/GlobalContext/usePopupContainer.d.ts +1 -1
  39. package/Help/index.js +11 -11
  40. package/HelperText/index.js +11 -12
  41. package/InputLang/index.js +47 -80
  42. package/InputNumber/index.js +65 -100
  43. package/Label/index.js +15 -16
  44. package/Loading/index.js +6 -7
  45. package/Menu/index.js +148 -328
  46. package/Menu/interface.d.ts +2 -2
  47. package/Menu/verticalMenuList.d.ts +1 -1
  48. package/Message/index.d.ts +1 -1
  49. package/Message/index.js +45 -64
  50. package/Modal/Confirm/index.d.ts +2 -2
  51. package/Modal/index.d.ts +1 -1
  52. package/Modal/index.js +119 -152
  53. package/MultiBox/index.js +44 -76
  54. package/Notification/index.d.ts +2 -2
  55. package/Notification/index.js +51 -72
  56. package/OperateBtn/index.js +42 -70
  57. package/PageHeader/index.js +120 -286
  58. package/PageHeader/interface.d.ts +1 -1
  59. package/Pagination/index.d.ts +2 -2
  60. package/Pagination/index.js +79 -131
  61. package/ParauiProvider/index.js +2 -3
  62. package/PasswordRules/index.js +12 -30
  63. package/PopConfirm/index.d.ts +1 -1
  64. package/PopConfirm/index.js +52 -59
  65. package/Popover/index.js +8 -9
  66. package/Progress/index.d.ts +6 -6
  67. package/Progress/index.js +50 -89
  68. package/Querying/index.js +14 -17
  69. package/README.md +813 -800
  70. package/Radio/index.js +21 -33
  71. package/RadioGroup/index.js +32 -47
  72. package/Search/index.js +44 -66
  73. package/Select/index.js +176 -343
  74. package/SelectInput/index.js +8 -9
  75. package/Selector/index.js +285 -681
  76. package/SelectorPicker/index.js +62 -97
  77. package/SingleBox/index.js +30 -55
  78. package/Slider/index.d.ts +1 -1
  79. package/Slider/index.js +29 -41
  80. package/Slider/interface.d.ts +2 -2
  81. package/Split/index.js +10 -23
  82. package/Status/index.js +8 -7
  83. package/Stepper/index.d.ts +1 -1
  84. package/Stepper/index.js +20 -25
  85. package/Styles/form.scss +5 -5
  86. package/Styles/index.scss +37 -37
  87. package/Styles/normalize.scss +348 -348
  88. package/Styles/scrollbar.scss +223 -223
  89. package/Styles/theme.scss +74 -74
  90. package/Switch/index.d.ts +2 -2
  91. package/Switch/index.js +19 -20
  92. package/Table/index.js +568 -1019
  93. package/Table/interface.d.ts +5 -5
  94. package/Tabs/index.d.ts +3 -3
  95. package/Tabs/index.js +47 -65
  96. package/Tag/TagGroup.d.ts +1 -1
  97. package/Tag/index.d.ts +2 -2
  98. package/Tag/index.js +72 -107
  99. package/TextEditor/index.d.ts +2 -2
  100. package/TextEditor/index.js +81 -105
  101. package/TextField/index.js +141 -220
  102. package/TimePicker/index.d.ts +1 -1
  103. package/TimePicker/index.js +12 -15
  104. package/Timeline/index.js +42 -52
  105. package/Title/index.js +10 -9
  106. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  107. package/ToggleButton/index.js +50 -70
  108. package/Tooltip/index.js +64 -98
  109. package/Tooltip/interface.d.ts +1 -1
  110. package/Transfer/index.d.ts +1 -1
  111. package/Transfer/index.js +114 -137
  112. package/Transfer/useClick.d.ts +1 -1
  113. package/Tree/index.js +10 -10
  114. package/Tree/interface.d.ts +6 -6
  115. package/Upload/Dragger/index.d.ts +1 -1
  116. package/Upload/ImageUpload/index.d.ts +1 -1
  117. package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
  118. package/Upload/index.d.ts +1 -1
  119. package/Upload/index.js +283 -475
  120. package/Upload/interface.d.ts +2 -2
  121. package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
  122. package/_verture/defineProperty-62acccfc.js +34 -0
  123. package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
  124. package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
  125. package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
  126. package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
  127. package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
  128. package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
  129. package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
  130. package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
  131. package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
  132. package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
  133. package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
  134. package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
  135. package/index.d.ts +2 -4
  136. package/index.js +15 -16
  137. package/package.json +167 -168
  138. package/Test/index.d.ts +0 -3
  139. package/Test/index.js +0 -9
  140. package/_verture/defineProperty-0590dc61.js +0 -16
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { RcFile as OriRcFile, Action, UploadRequestMethod, UploadRequestHeader, BeforeUploadFileType, UploadRequestOption } from 'rc-upload/lib/interface';
3
- declare type UploadType = 'drag' | 'select';
3
+ type UploadType = 'drag' | 'select';
4
4
  export type { BeforeUploadFileType };
5
5
  export interface RcFile extends OriRcFile {
6
6
  readonly lastModifiedDate: Date;
@@ -31,7 +31,7 @@ export interface IShowUploadList {
31
31
  /** 删除图标 */
32
32
  removeIcon?: React.ReactNode;
33
33
  }
34
- declare type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
34
+ type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
35
35
  export interface UploadProps<T = any> {
36
36
  /**上传类型*/
37
37
  type?: UploadType;
@@ -3,7 +3,6 @@
3
3
  * @date 2022/8/12 5:27 PM
4
4
  * @description 全局变量
5
5
  */
6
-
7
6
  /** 组件全局class前缀 */
8
7
  var $prefixCls = 'paraui-v3';
9
8
  var $rcPrefixCls = 'component';
@@ -0,0 +1,34 @@
1
+ import { _ as _typeof } from './typeof-498dd2b1.js';
2
+
3
+ function _toPrimitive(input, hint) {
4
+ if (_typeof(input) !== "object" || input === null) return input;
5
+ var prim = input[Symbol.toPrimitive];
6
+ if (prim !== undefined) {
7
+ var res = prim.call(input, hint || "default");
8
+ if (_typeof(res) !== "object") return res;
9
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return (hint === "string" ? String : Number)(input);
12
+ }
13
+
14
+ function _toPropertyKey(arg) {
15
+ var key = _toPrimitive(arg, "string");
16
+ return _typeof(key) === "symbol" ? key : String(key);
17
+ }
18
+
19
+ function _defineProperty(obj, key, value) {
20
+ key = _toPropertyKey(key);
21
+ if (key in obj) {
22
+ Object.defineProperty(obj, key, {
23
+ value: value,
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true
27
+ });
28
+ } else {
29
+ obj[key] = value;
30
+ }
31
+ return obj;
32
+ }
33
+
34
+ export { _defineProperty as _, _toPropertyKey as a };
@@ -12,27 +12,25 @@ var _typeof = {exports: {}};
12
12
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
13
13
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
14
14
  }
15
-
16
15
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
17
16
  } (_typeof));
18
17
 
19
18
  (function (module) {
20
19
  var _typeof$1 = _typeof.exports["default"];
21
-
22
20
  function _regeneratorRuntime() {
23
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
24
-
25
21
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
26
22
  return exports;
27
23
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
28
24
  var exports = {},
29
- Op = Object.prototype,
30
- hasOwn = Op.hasOwnProperty,
31
- $Symbol = "function" == typeof Symbol ? Symbol : {},
32
- iteratorSymbol = $Symbol.iterator || "@@iterator",
33
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
34
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
35
-
25
+ Op = Object.prototype,
26
+ hasOwn = Op.hasOwnProperty,
27
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
28
+ obj[key] = desc.value;
29
+ },
30
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
31
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
32
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
33
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
36
34
  function define(obj, key, value) {
37
35
  return Object.defineProperty(obj, key, {
38
36
  value: value,
@@ -41,7 +39,6 @@ var _typeof = {exports: {}};
41
39
  writable: !0
42
40
  }), obj[key];
43
41
  }
44
-
45
42
  try {
46
43
  define({}, "");
47
44
  } catch (err) {
@@ -49,54 +46,14 @@ var _typeof = {exports: {}};
49
46
  return obj[key] = value;
50
47
  };
51
48
  }
52
-
53
49
  function wrap(innerFn, outerFn, self, tryLocsList) {
54
50
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
55
- generator = Object.create(protoGenerator.prototype),
56
- context = new Context(tryLocsList || []);
57
- return generator._invoke = function (innerFn, self, context) {
58
- var state = "suspendedStart";
59
- return function (method, arg) {
60
- if ("executing" === state) throw new Error("Generator is already running");
61
-
62
- if ("completed" === state) {
63
- if ("throw" === method) throw arg;
64
- return doneResult();
65
- }
66
-
67
- for (context.method = method, context.arg = arg;;) {
68
- var delegate = context.delegate;
69
-
70
- if (delegate) {
71
- var delegateResult = maybeInvokeDelegate(delegate, context);
72
-
73
- if (delegateResult) {
74
- if (delegateResult === ContinueSentinel) continue;
75
- return delegateResult;
76
- }
77
- }
78
-
79
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
80
- if ("suspendedStart" === state) throw state = "completed", context.arg;
81
- context.dispatchException(context.arg);
82
- } else "return" === context.method && context.abrupt("return", context.arg);
83
- state = "executing";
84
- var record = tryCatch(innerFn, self, context);
85
-
86
- if ("normal" === record.type) {
87
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
88
- return {
89
- value: record.arg,
90
- done: context.done
91
- };
92
- }
93
-
94
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
95
- }
96
- };
97
- }(innerFn, self, context), generator;
51
+ generator = Object.create(protoGenerator.prototype),
52
+ context = new Context(tryLocsList || []);
53
+ return defineProperty(generator, "_invoke", {
54
+ value: makeInvokeMethod(innerFn, self, context)
55
+ }), generator;
98
56
  }
99
-
100
57
  function tryCatch(fn, obj, arg) {
101
58
  try {
102
59
  return {
@@ -110,25 +67,19 @@ var _typeof = {exports: {}};
110
67
  };
111
68
  }
112
69
  }
113
-
114
70
  exports.wrap = wrap;
115
71
  var ContinueSentinel = {};
116
-
117
72
  function Generator() {}
118
-
119
73
  function GeneratorFunction() {}
120
-
121
74
  function GeneratorFunctionPrototype() {}
122
-
123
75
  var IteratorPrototype = {};
124
76
  define(IteratorPrototype, iteratorSymbol, function () {
125
77
  return this;
126
78
  });
127
79
  var getProto = Object.getPrototypeOf,
128
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
80
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
129
81
  NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
130
82
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
131
-
132
83
  function defineIteratorMethods(prototype) {
133
84
  ["next", "throw", "return"].forEach(function (method) {
134
85
  define(prototype, method, function (arg) {
@@ -136,14 +87,12 @@ var _typeof = {exports: {}};
136
87
  });
137
88
  });
138
89
  }
139
-
140
90
  function AsyncIterator(generator, PromiseImpl) {
141
91
  function invoke(method, arg, resolve, reject) {
142
92
  var record = tryCatch(generator[method], generator, arg);
143
-
144
93
  if ("throw" !== record.type) {
145
94
  var result = record.arg,
146
- value = result.value;
95
+ value = result.value;
147
96
  return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
148
97
  invoke("next", value, resolve, reject);
149
98
  }, function (err) {
@@ -154,92 +103,111 @@ var _typeof = {exports: {}};
154
103
  return invoke("throw", error, resolve, reject);
155
104
  });
156
105
  }
157
-
158
106
  reject(record.arg);
159
107
  }
160
-
161
108
  var previousPromise;
162
-
163
- this._invoke = function (method, arg) {
164
- function callInvokeWithMethodAndArg() {
165
- return new PromiseImpl(function (resolve, reject) {
166
- invoke(method, arg, resolve, reject);
167
- });
109
+ defineProperty(this, "_invoke", {
110
+ value: function value(method, arg) {
111
+ function callInvokeWithMethodAndArg() {
112
+ return new PromiseImpl(function (resolve, reject) {
113
+ invoke(method, arg, resolve, reject);
114
+ });
115
+ }
116
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
117
+ }
118
+ });
119
+ }
120
+ function makeInvokeMethod(innerFn, self, context) {
121
+ var state = "suspendedStart";
122
+ return function (method, arg) {
123
+ if ("executing" === state) throw new Error("Generator is already running");
124
+ if ("completed" === state) {
125
+ if ("throw" === method) throw arg;
126
+ return doneResult();
127
+ }
128
+ for (context.method = method, context.arg = arg;;) {
129
+ var delegate = context.delegate;
130
+ if (delegate) {
131
+ var delegateResult = maybeInvokeDelegate(delegate, context);
132
+ if (delegateResult) {
133
+ if (delegateResult === ContinueSentinel) continue;
134
+ return delegateResult;
135
+ }
136
+ }
137
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
138
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
139
+ context.dispatchException(context.arg);
140
+ } else "return" === context.method && context.abrupt("return", context.arg);
141
+ state = "executing";
142
+ var record = tryCatch(innerFn, self, context);
143
+ if ("normal" === record.type) {
144
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
145
+ return {
146
+ value: record.arg,
147
+ done: context.done
148
+ };
149
+ }
150
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
168
151
  }
169
-
170
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
171
152
  };
172
153
  }
173
-
174
154
  function maybeInvokeDelegate(delegate, context) {
175
- var method = delegate.iterator[context.method];
176
-
177
- if (undefined === method) {
178
- if (context.delegate = null, "throw" === context.method) {
179
- if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
180
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
181
- }
182
-
183
- return ContinueSentinel;
184
- }
185
-
155
+ var methodName = context.method,
156
+ method = delegate.iterator[methodName];
157
+ 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;
186
158
  var record = tryCatch(method, delegate.iterator, context.arg);
187
159
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
188
160
  var info = record.arg;
189
161
  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);
190
162
  }
191
-
192
163
  function pushTryEntry(locs) {
193
164
  var entry = {
194
165
  tryLoc: locs[0]
195
166
  };
196
167
  1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
197
168
  }
198
-
199
169
  function resetTryEntry(entry) {
200
170
  var record = entry.completion || {};
201
171
  record.type = "normal", delete record.arg, entry.completion = record;
202
172
  }
203
-
204
173
  function Context(tryLocsList) {
205
174
  this.tryEntries = [{
206
175
  tryLoc: "root"
207
176
  }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
208
177
  }
209
-
210
178
  function values(iterable) {
211
179
  if (iterable) {
212
180
  var iteratorMethod = iterable[iteratorSymbol];
213
181
  if (iteratorMethod) return iteratorMethod.call(iterable);
214
182
  if ("function" == typeof iterable.next) return iterable;
215
-
216
183
  if (!isNaN(iterable.length)) {
217
184
  var i = -1,
218
- next = function next() {
219
- for (; ++i < iterable.length;) {
220
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
221
- }
222
-
223
- return next.value = undefined, next.done = !0, next;
224
- };
225
-
185
+ next = function next() {
186
+ for (; ++i < iterable.length;) {
187
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
188
+ }
189
+ return next.value = undefined, next.done = !0, next;
190
+ };
226
191
  return next.next = next;
227
192
  }
228
193
  }
229
-
230
194
  return {
231
195
  next: doneResult
232
196
  };
233
197
  }
234
-
235
198
  function doneResult() {
236
199
  return {
237
200
  value: undefined,
238
201
  done: !0
239
202
  };
240
203
  }
241
-
242
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
204
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
205
+ value: GeneratorFunctionPrototype,
206
+ configurable: !0
207
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
208
+ value: GeneratorFunction,
209
+ configurable: !0
210
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
243
211
  var ctor = "function" == typeof genFun && genFun.constructor;
244
212
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
245
213
  }, exports.mark = function (genFun) {
@@ -260,19 +228,17 @@ var _typeof = {exports: {}};
260
228
  return this;
261
229
  }), define(Gp, "toString", function () {
262
230
  return "[object Generator]";
263
- }), exports.keys = function (object) {
264
- var keys = [];
265
-
231
+ }), exports.keys = function (val) {
232
+ var object = Object(val),
233
+ keys = [];
266
234
  for (var key in object) {
267
235
  keys.push(key);
268
236
  }
269
-
270
237
  return keys.reverse(), function next() {
271
238
  for (; keys.length;) {
272
239
  var key = keys.pop();
273
240
  if (key in object) return next.value = key, next.done = !1, next;
274
241
  }
275
-
276
242
  return next.done = !0, next;
277
243
  };
278
244
  }, exports.values = values, Context.prototype = {
@@ -291,20 +257,16 @@ var _typeof = {exports: {}};
291
257
  dispatchException: function dispatchException(exception) {
292
258
  if (this.done) throw exception;
293
259
  var context = this;
294
-
295
260
  function handle(loc, caught) {
296
261
  return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
297
262
  }
298
-
299
263
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
300
264
  var entry = this.tryEntries[i],
301
- record = entry.completion;
265
+ record = entry.completion;
302
266
  if ("root" === entry.tryLoc) return handle("end");
303
-
304
267
  if (entry.tryLoc <= this.prev) {
305
268
  var hasCatch = hasOwn.call(entry, "catchLoc"),
306
- hasFinally = hasOwn.call(entry, "finallyLoc");
307
-
269
+ hasFinally = hasOwn.call(entry, "finallyLoc");
308
270
  if (hasCatch && hasFinally) {
309
271
  if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
310
272
  if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
@@ -320,13 +282,11 @@ var _typeof = {exports: {}};
320
282
  abrupt: function abrupt(type, arg) {
321
283
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
322
284
  var entry = this.tryEntries[i];
323
-
324
285
  if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
325
286
  var finallyEntry = entry;
326
287
  break;
327
288
  }
328
289
  }
329
-
330
290
  finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
331
291
  var record = finallyEntry ? finallyEntry.completion : {};
332
292
  return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
@@ -344,19 +304,15 @@ var _typeof = {exports: {}};
344
304
  "catch": function _catch(tryLoc) {
345
305
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
346
306
  var entry = this.tryEntries[i];
347
-
348
307
  if (entry.tryLoc === tryLoc) {
349
308
  var record = entry.completion;
350
-
351
309
  if ("throw" === record.type) {
352
310
  var thrown = record.arg;
353
311
  resetTryEntry(entry);
354
312
  }
355
-
356
313
  return thrown;
357
314
  }
358
315
  }
359
-
360
316
  throw new Error("illegal catch attempt");
361
317
  },
362
318
  delegateYield: function delegateYield(iterable, resultName, nextLoc) {
@@ -368,7 +324,6 @@ var _typeof = {exports: {}};
368
324
  }
369
325
  }, exports;
370
326
  }
371
-
372
327
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
373
328
  } (regeneratorRuntime$1));
374
329