bk-magic-vue 2.3.2-beta.4 → 2.3.2-beta.6

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 (111) hide show
  1. package/dist/bk-magic-vue.css +4 -4
  2. package/dist/bk-magic-vue.js +1507 -2471
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/alert.js +5 -11
  10. package/lib/animate-number.js +2 -9
  11. package/lib/badge.js +7 -25
  12. package/lib/big-tree.js +2549 -2788
  13. package/lib/breadcrumb-item.js +3 -10
  14. package/lib/breadcrumb.js +1 -9
  15. package/lib/button.js +1 -9
  16. package/lib/card.js +41 -70
  17. package/lib/cascade.js +442 -698
  18. package/lib/checkbox-group.js +2 -16
  19. package/lib/checkbox.js +972 -1179
  20. package/lib/col.js +9 -17
  21. package/lib/collapse-item.js +1 -10
  22. package/lib/collapse.js +1 -9
  23. package/lib/color-picker.js +38 -96
  24. package/lib/compose-form-item.js +1 -4
  25. package/lib/container.js +3 -11
  26. package/lib/date-picker.js +202 -330
  27. package/lib/dialog.js +2572 -2782
  28. package/lib/diff.js +2 -10
  29. package/lib/directives/clickoutside.js +2 -2
  30. package/lib/directives/overflow-tips.js +57 -73
  31. package/lib/directives/tooltips.js +65 -79
  32. package/lib/directives/transfer-dom.js +1 -4
  33. package/lib/divider.js +1 -9
  34. package/lib/dropdown-menu.js +7 -17
  35. package/lib/exception.js +5 -14
  36. package/lib/fixed-navbar.js +2 -13
  37. package/lib/form-item.js +253 -483
  38. package/lib/form.js +5 -22
  39. package/lib/icon.js +4 -5
  40. package/lib/image-viewer.js +22 -35
  41. package/lib/image.js +45 -72
  42. package/lib/info-box.js +2701 -2918
  43. package/lib/input.js +10 -33
  44. package/lib/link.js +1 -9
  45. package/lib/loading.js +9 -21
  46. package/lib/locale/index.js +5 -11
  47. package/lib/message.js +10 -22
  48. package/lib/navigation-menu-group.js +0 -4
  49. package/lib/navigation-menu-item.js +6 -19
  50. package/lib/navigation-menu.js +1046 -1252
  51. package/lib/navigation.js +34 -39
  52. package/lib/notify.js +20 -34
  53. package/lib/option-group.js +5 -10
  54. package/lib/option.js +15 -20
  55. package/lib/pagination.js +6706 -7013
  56. package/lib/popconfirm.js +66 -83
  57. package/lib/popover.js +55 -66
  58. package/lib/process.js +2 -17
  59. package/lib/progress.js +4 -10
  60. package/lib/radio-button.js +6 -13
  61. package/lib/radio-group.js +2 -9
  62. package/lib/radio.js +6 -13
  63. package/lib/rate.js +5 -21
  64. package/lib/resize-layout.js +11 -20
  65. package/lib/round-progress.js +1 -9
  66. package/lib/row.js +5 -18
  67. package/lib/search-select.js +409 -635
  68. package/lib/select.js +5989 -6261
  69. package/lib/sideslider.js +1560 -1769
  70. package/lib/slider.js +78 -127
  71. package/lib/star.js +3 -11
  72. package/lib/steps.js +1754 -1961
  73. package/lib/swiper.js +20 -33
  74. package/lib/switcher.js +3 -12
  75. package/lib/tab-panel.js +2 -9
  76. package/lib/tab.js +2330 -2536
  77. package/lib/table-column.js +328 -547
  78. package/lib/table-setting-content.js +321 -558
  79. package/lib/table.js +566 -917
  80. package/lib/tag-input.js +397 -649
  81. package/lib/tag.js +2 -10
  82. package/lib/time-picker.js +144 -219
  83. package/lib/timeline.js +23 -35
  84. package/lib/transfer.js +111 -161
  85. package/lib/transition.js +1 -9
  86. package/lib/tree.js +31 -75
  87. package/lib/ui/bk-magic-vue.css +4 -4
  88. package/lib/ui/bk-magic-vue.min.css +1 -1
  89. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  90. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  91. package/lib/ui/button.css +1 -1
  92. package/lib/ui/button.min.css +1 -1
  93. package/lib/ui/button.min.css.map +1 -1
  94. package/lib/ui/dialog.css +2 -2
  95. package/lib/ui/dialog.min.css +1 -1
  96. package/lib/ui/dialog.min.css.map +1 -1
  97. package/lib/ui/info-box.css +2 -2
  98. package/lib/ui/info-box.min.css +1 -1
  99. package/lib/ui/info-box.min.css.map +1 -1
  100. package/lib/ui/popconfirm.css +1 -1
  101. package/lib/ui/popconfirm.min.css +1 -1
  102. package/lib/ui/popconfirm.min.css.map +1 -1
  103. package/lib/upload.js +63 -87
  104. package/lib/utils/deepmerge.js +5 -11
  105. package/lib/utils/pinyin.js +5 -11
  106. package/lib/utils/pop-manager.js +2 -2
  107. package/lib/utils/tippy.js +48 -49
  108. package/lib/version-detail.js +5854 -6081
  109. package/lib/virtual-scroll.js +17 -23
  110. package/lib/zoom-image.js +3 -11
  111. package/package.json +1 -1
package/lib/steps.js CHANGED
@@ -1,1966 +1,1759 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('bk-magic-vue/lib/locale')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'bk-magic-vue/lib/locale'], factory) :
4
- (global = global || self, factory(global.library = {}, global.locale));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('bk-magic-vue/lib/locale')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'bk-magic-vue/lib/locale'], factory) :
4
+ (global = global || self, factory(global.library = {}, global.locale));
5
5
  }(this, function (exports, locale) { 'use strict';
6
6
 
7
- locale = locale && locale.hasOwnProperty('default') ? locale['default'] : locale;
8
-
9
- function createCommonjsModule(fn, module) {
10
- return module = { exports: {} }, fn(module, module.exports), module.exports;
11
- }
12
-
13
- var runtime_1 = createCommonjsModule(function (module) {
14
- var runtime = (function (exports) {
15
- var Op = Object.prototype;
16
- var hasOwn = Op.hasOwnProperty;
17
- var undefined$1;
18
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
19
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
20
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
21
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
22
- function define(obj, key, value) {
23
- Object.defineProperty(obj, key, {
24
- value: value,
25
- enumerable: true,
26
- configurable: true,
27
- writable: true
28
- });
29
- return obj[key];
30
- }
31
- try {
32
- define({}, "");
33
- } catch (err) {
34
- define = function(obj, key, value) {
35
- return obj[key] = value;
36
- };
37
- }
38
- function wrap(innerFn, outerFn, self, tryLocsList) {
39
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
40
- var generator = Object.create(protoGenerator.prototype);
41
- var context = new Context(tryLocsList || []);
42
- generator._invoke = makeInvokeMethod(innerFn, self, context);
43
- return generator;
44
- }
45
- exports.wrap = wrap;
46
- function tryCatch(fn, obj, arg) {
47
- try {
48
- return { type: "normal", arg: fn.call(obj, arg) };
49
- } catch (err) {
50
- return { type: "throw", arg: err };
51
- }
52
- }
53
- var GenStateSuspendedStart = "suspendedStart";
54
- var GenStateSuspendedYield = "suspendedYield";
55
- var GenStateExecuting = "executing";
56
- var GenStateCompleted = "completed";
57
- var ContinueSentinel = {};
58
- function Generator() {}
59
- function GeneratorFunction() {}
60
- function GeneratorFunctionPrototype() {}
61
- var IteratorPrototype = {};
62
- IteratorPrototype[iteratorSymbol] = function () {
63
- return this;
64
- };
65
- var getProto = Object.getPrototypeOf;
66
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
67
- if (NativeIteratorPrototype &&
68
- NativeIteratorPrototype !== Op &&
69
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
70
- IteratorPrototype = NativeIteratorPrototype;
71
- }
72
- var Gp = GeneratorFunctionPrototype.prototype =
73
- Generator.prototype = Object.create(IteratorPrototype);
74
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
75
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
76
- GeneratorFunction.displayName = define(
77
- GeneratorFunctionPrototype,
78
- toStringTagSymbol,
79
- "GeneratorFunction"
80
- );
81
- function defineIteratorMethods(prototype) {
82
- ["next", "throw", "return"].forEach(function(method) {
83
- define(prototype, method, function(arg) {
84
- return this._invoke(method, arg);
85
- });
86
- });
87
- }
88
- exports.isGeneratorFunction = function(genFun) {
89
- var ctor = typeof genFun === "function" && genFun.constructor;
90
- return ctor
91
- ? ctor === GeneratorFunction ||
92
- (ctor.displayName || ctor.name) === "GeneratorFunction"
93
- : false;
94
- };
95
- exports.mark = function(genFun) {
96
- if (Object.setPrototypeOf) {
97
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
98
- } else {
99
- genFun.__proto__ = GeneratorFunctionPrototype;
100
- define(genFun, toStringTagSymbol, "GeneratorFunction");
101
- }
102
- genFun.prototype = Object.create(Gp);
103
- return genFun;
104
- };
105
- exports.awrap = function(arg) {
106
- return { __await: arg };
107
- };
108
- function AsyncIterator(generator, PromiseImpl) {
109
- function invoke(method, arg, resolve, reject) {
110
- var record = tryCatch(generator[method], generator, arg);
111
- if (record.type === "throw") {
112
- reject(record.arg);
113
- } else {
114
- var result = record.arg;
115
- var value = result.value;
116
- if (value &&
117
- typeof value === "object" &&
118
- hasOwn.call(value, "__await")) {
119
- return PromiseImpl.resolve(value.__await).then(function(value) {
120
- invoke("next", value, resolve, reject);
121
- }, function(err) {
122
- invoke("throw", err, resolve, reject);
123
- });
124
- }
125
- return PromiseImpl.resolve(value).then(function(unwrapped) {
126
- result.value = unwrapped;
127
- resolve(result);
128
- }, function(error) {
129
- return invoke("throw", error, resolve, reject);
130
- });
131
- }
132
- }
133
- var previousPromise;
134
- function enqueue(method, arg) {
135
- function callInvokeWithMethodAndArg() {
136
- return new PromiseImpl(function(resolve, reject) {
137
- invoke(method, arg, resolve, reject);
138
- });
139
- }
140
- return previousPromise =
141
- previousPromise ? previousPromise.then(
142
- callInvokeWithMethodAndArg,
143
- callInvokeWithMethodAndArg
144
- ) : callInvokeWithMethodAndArg();
145
- }
146
- this._invoke = enqueue;
147
- }
148
- defineIteratorMethods(AsyncIterator.prototype);
149
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
150
- return this;
151
- };
152
- exports.AsyncIterator = AsyncIterator;
153
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
154
- if (PromiseImpl === void 0) PromiseImpl = Promise;
155
- var iter = new AsyncIterator(
156
- wrap(innerFn, outerFn, self, tryLocsList),
157
- PromiseImpl
158
- );
159
- return exports.isGeneratorFunction(outerFn)
160
- ? iter
161
- : iter.next().then(function(result) {
162
- return result.done ? result.value : iter.next();
163
- });
164
- };
165
- function makeInvokeMethod(innerFn, self, context) {
166
- var state = GenStateSuspendedStart;
167
- return function invoke(method, arg) {
168
- if (state === GenStateExecuting) {
169
- throw new Error("Generator is already running");
170
- }
171
- if (state === GenStateCompleted) {
172
- if (method === "throw") {
173
- throw arg;
174
- }
175
- return doneResult();
176
- }
177
- context.method = method;
178
- context.arg = arg;
179
- while (true) {
180
- var delegate = context.delegate;
181
- if (delegate) {
182
- var delegateResult = maybeInvokeDelegate(delegate, context);
183
- if (delegateResult) {
184
- if (delegateResult === ContinueSentinel) continue;
185
- return delegateResult;
186
- }
187
- }
188
- if (context.method === "next") {
189
- context.sent = context._sent = context.arg;
190
- } else if (context.method === "throw") {
191
- if (state === GenStateSuspendedStart) {
192
- state = GenStateCompleted;
193
- throw context.arg;
194
- }
195
- context.dispatchException(context.arg);
196
- } else if (context.method === "return") {
197
- context.abrupt("return", context.arg);
198
- }
199
- state = GenStateExecuting;
200
- var record = tryCatch(innerFn, self, context);
201
- if (record.type === "normal") {
202
- state = context.done
203
- ? GenStateCompleted
204
- : GenStateSuspendedYield;
205
- if (record.arg === ContinueSentinel) {
206
- continue;
207
- }
208
- return {
209
- value: record.arg,
210
- done: context.done
211
- };
212
- } else if (record.type === "throw") {
213
- state = GenStateCompleted;
214
- context.method = "throw";
215
- context.arg = record.arg;
216
- }
217
- }
218
- };
219
- }
220
- function maybeInvokeDelegate(delegate, context) {
221
- var method = delegate.iterator[context.method];
222
- if (method === undefined$1) {
223
- context.delegate = null;
224
- if (context.method === "throw") {
225
- if (delegate.iterator["return"]) {
226
- context.method = "return";
227
- context.arg = undefined$1;
228
- maybeInvokeDelegate(delegate, context);
229
- if (context.method === "throw") {
230
- return ContinueSentinel;
231
- }
232
- }
233
- context.method = "throw";
234
- context.arg = new TypeError(
235
- "The iterator does not provide a 'throw' method");
236
- }
237
- return ContinueSentinel;
238
- }
239
- var record = tryCatch(method, delegate.iterator, context.arg);
240
- if (record.type === "throw") {
241
- context.method = "throw";
242
- context.arg = record.arg;
243
- context.delegate = null;
244
- return ContinueSentinel;
245
- }
246
- var info = record.arg;
247
- if (! info) {
248
- context.method = "throw";
249
- context.arg = new TypeError("iterator result is not an object");
250
- context.delegate = null;
251
- return ContinueSentinel;
252
- }
253
- if (info.done) {
254
- context[delegate.resultName] = info.value;
255
- context.next = delegate.nextLoc;
256
- if (context.method !== "return") {
257
- context.method = "next";
258
- context.arg = undefined$1;
259
- }
260
- } else {
261
- return info;
262
- }
263
- context.delegate = null;
264
- return ContinueSentinel;
265
- }
266
- defineIteratorMethods(Gp);
267
- define(Gp, toStringTagSymbol, "Generator");
268
- Gp[iteratorSymbol] = function() {
269
- return this;
270
- };
271
- Gp.toString = function() {
272
- return "[object Generator]";
273
- };
274
- function pushTryEntry(locs) {
275
- var entry = { tryLoc: locs[0] };
276
- if (1 in locs) {
277
- entry.catchLoc = locs[1];
278
- }
279
- if (2 in locs) {
280
- entry.finallyLoc = locs[2];
281
- entry.afterLoc = locs[3];
282
- }
283
- this.tryEntries.push(entry);
284
- }
285
- function resetTryEntry(entry) {
286
- var record = entry.completion || {};
287
- record.type = "normal";
288
- delete record.arg;
289
- entry.completion = record;
290
- }
291
- function Context(tryLocsList) {
292
- this.tryEntries = [{ tryLoc: "root" }];
293
- tryLocsList.forEach(pushTryEntry, this);
294
- this.reset(true);
295
- }
296
- exports.keys = function(object) {
297
- var keys = [];
298
- for (var key in object) {
299
- keys.push(key);
300
- }
301
- keys.reverse();
302
- return function next() {
303
- while (keys.length) {
304
- var key = keys.pop();
305
- if (key in object) {
306
- next.value = key;
307
- next.done = false;
308
- return next;
309
- }
310
- }
311
- next.done = true;
312
- return next;
313
- };
314
- };
315
- function values(iterable) {
316
- if (iterable) {
317
- var iteratorMethod = iterable[iteratorSymbol];
318
- if (iteratorMethod) {
319
- return iteratorMethod.call(iterable);
320
- }
321
- if (typeof iterable.next === "function") {
322
- return iterable;
323
- }
324
- if (!isNaN(iterable.length)) {
325
- var i = -1, next = function next() {
326
- while (++i < iterable.length) {
327
- if (hasOwn.call(iterable, i)) {
328
- next.value = iterable[i];
329
- next.done = false;
330
- return next;
331
- }
332
- }
333
- next.value = undefined$1;
334
- next.done = true;
335
- return next;
336
- };
337
- return next.next = next;
338
- }
339
- }
340
- return { next: doneResult };
341
- }
342
- exports.values = values;
343
- function doneResult() {
344
- return { value: undefined$1, done: true };
345
- }
346
- Context.prototype = {
347
- constructor: Context,
348
- reset: function(skipTempReset) {
349
- this.prev = 0;
350
- this.next = 0;
351
- this.sent = this._sent = undefined$1;
352
- this.done = false;
353
- this.delegate = null;
354
- this.method = "next";
355
- this.arg = undefined$1;
356
- this.tryEntries.forEach(resetTryEntry);
357
- if (!skipTempReset) {
358
- for (var name in this) {
359
- if (name.charAt(0) === "t" &&
360
- hasOwn.call(this, name) &&
361
- !isNaN(+name.slice(1))) {
362
- this[name] = undefined$1;
363
- }
364
- }
365
- }
366
- },
367
- stop: function() {
368
- this.done = true;
369
- var rootEntry = this.tryEntries[0];
370
- var rootRecord = rootEntry.completion;
371
- if (rootRecord.type === "throw") {
372
- throw rootRecord.arg;
373
- }
374
- return this.rval;
375
- },
376
- dispatchException: function(exception) {
377
- if (this.done) {
378
- throw exception;
379
- }
380
- var context = this;
381
- function handle(loc, caught) {
382
- record.type = "throw";
383
- record.arg = exception;
384
- context.next = loc;
385
- if (caught) {
386
- context.method = "next";
387
- context.arg = undefined$1;
388
- }
389
- return !! caught;
390
- }
391
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
392
- var entry = this.tryEntries[i];
393
- var record = entry.completion;
394
- if (entry.tryLoc === "root") {
395
- return handle("end");
396
- }
397
- if (entry.tryLoc <= this.prev) {
398
- var hasCatch = hasOwn.call(entry, "catchLoc");
399
- var hasFinally = hasOwn.call(entry, "finallyLoc");
400
- if (hasCatch && hasFinally) {
401
- if (this.prev < entry.catchLoc) {
402
- return handle(entry.catchLoc, true);
403
- } else if (this.prev < entry.finallyLoc) {
404
- return handle(entry.finallyLoc);
405
- }
406
- } else if (hasCatch) {
407
- if (this.prev < entry.catchLoc) {
408
- return handle(entry.catchLoc, true);
409
- }
410
- } else if (hasFinally) {
411
- if (this.prev < entry.finallyLoc) {
412
- return handle(entry.finallyLoc);
413
- }
414
- } else {
415
- throw new Error("try statement without catch or finally");
416
- }
417
- }
418
- }
419
- },
420
- abrupt: function(type, arg) {
421
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
422
- var entry = this.tryEntries[i];
423
- if (entry.tryLoc <= this.prev &&
424
- hasOwn.call(entry, "finallyLoc") &&
425
- this.prev < entry.finallyLoc) {
426
- var finallyEntry = entry;
427
- break;
428
- }
429
- }
430
- if (finallyEntry &&
431
- (type === "break" ||
432
- type === "continue") &&
433
- finallyEntry.tryLoc <= arg &&
434
- arg <= finallyEntry.finallyLoc) {
435
- finallyEntry = null;
436
- }
437
- var record = finallyEntry ? finallyEntry.completion : {};
438
- record.type = type;
439
- record.arg = arg;
440
- if (finallyEntry) {
441
- this.method = "next";
442
- this.next = finallyEntry.finallyLoc;
443
- return ContinueSentinel;
444
- }
445
- return this.complete(record);
446
- },
447
- complete: function(record, afterLoc) {
448
- if (record.type === "throw") {
449
- throw record.arg;
450
- }
451
- if (record.type === "break" ||
452
- record.type === "continue") {
453
- this.next = record.arg;
454
- } else if (record.type === "return") {
455
- this.rval = this.arg = record.arg;
456
- this.method = "return";
457
- this.next = "end";
458
- } else if (record.type === "normal" && afterLoc) {
459
- this.next = afterLoc;
460
- }
461
- return ContinueSentinel;
462
- },
463
- finish: function(finallyLoc) {
464
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
465
- var entry = this.tryEntries[i];
466
- if (entry.finallyLoc === finallyLoc) {
467
- this.complete(entry.completion, entry.afterLoc);
468
- resetTryEntry(entry);
469
- return ContinueSentinel;
470
- }
471
- }
472
- },
473
- "catch": function(tryLoc) {
474
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
475
- var entry = this.tryEntries[i];
476
- if (entry.tryLoc === tryLoc) {
477
- var record = entry.completion;
478
- if (record.type === "throw") {
479
- var thrown = record.arg;
480
- resetTryEntry(entry);
481
- }
482
- return thrown;
483
- }
484
- }
485
- throw new Error("illegal catch attempt");
486
- },
487
- delegateYield: function(iterable, resultName, nextLoc) {
488
- this.delegate = {
489
- iterator: values(iterable),
490
- resultName: resultName,
491
- nextLoc: nextLoc
492
- };
493
- if (this.method === "next") {
494
- this.arg = undefined$1;
495
- }
496
- return ContinueSentinel;
497
- }
498
- };
499
- return exports;
500
- }(
501
- module.exports
502
- ));
503
- try {
504
- regeneratorRuntime = runtime;
505
- } catch (accidentalStrictMode) {
506
- Function("r", "regeneratorRuntime = r")(runtime);
507
- }
508
- });
509
-
510
- var regenerator = runtime_1;
511
-
512
- var ceil = Math.ceil;
513
- var floor = Math.floor;
514
- var _toInteger = function (it) {
515
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
516
- };
517
-
518
- var _defined = function (it) {
519
- if (it == undefined) throw TypeError("Can't call method on " + it);
520
- return it;
521
- };
522
-
523
- var _stringAt = function (TO_STRING) {
524
- return function (that, pos) {
525
- var s = String(_defined(that));
526
- var i = _toInteger(pos);
527
- var l = s.length;
528
- var a, b;
529
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
530
- a = s.charCodeAt(i);
531
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
532
- ? TO_STRING ? s.charAt(i) : a
533
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
534
- };
535
- };
536
-
537
- var _library = true;
538
-
539
- var _global = createCommonjsModule(function (module) {
540
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
541
- ? window : typeof self != 'undefined' && self.Math == Math ? self
542
- : Function('return this')();
543
- if (typeof __g == 'number') __g = global;
544
- });
545
-
546
- var _core = createCommonjsModule(function (module) {
547
- var core = module.exports = { version: '2.6.12' };
548
- if (typeof __e == 'number') __e = core;
549
- });
550
- var _core_1 = _core.version;
551
-
552
- var _aFunction = function (it) {
553
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
554
- return it;
555
- };
556
-
557
- var _ctx = function (fn, that, length) {
558
- _aFunction(fn);
559
- if (that === undefined) return fn;
560
- switch (length) {
561
- case 1: return function (a) {
562
- return fn.call(that, a);
563
- };
564
- case 2: return function (a, b) {
565
- return fn.call(that, a, b);
566
- };
567
- case 3: return function (a, b, c) {
568
- return fn.call(that, a, b, c);
569
- };
570
- }
571
- return function () {
572
- return fn.apply(that, arguments);
573
- };
574
- };
575
-
576
- var _isObject = function (it) {
577
- return typeof it === 'object' ? it !== null : typeof it === 'function';
578
- };
579
-
580
- var _anObject = function (it) {
581
- if (!_isObject(it)) throw TypeError(it + ' is not an object!');
582
- return it;
583
- };
584
-
585
- var _fails = function (exec) {
586
- try {
587
- return !!exec();
588
- } catch (e) {
589
- return true;
590
- }
591
- };
592
-
593
- var _descriptors = !_fails(function () {
594
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
595
- });
596
-
597
- var document$1 = _global.document;
598
- var is = _isObject(document$1) && _isObject(document$1.createElement);
599
- var _domCreate = function (it) {
600
- return is ? document$1.createElement(it) : {};
601
- };
602
-
603
- var _ie8DomDefine = !_descriptors && !_fails(function () {
604
- return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
605
- });
606
-
607
- var _toPrimitive = function (it, S) {
608
- if (!_isObject(it)) return it;
609
- var fn, val;
610
- if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
611
- if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
612
- if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
613
- throw TypeError("Can't convert object to primitive value");
614
- };
615
-
616
- var dP = Object.defineProperty;
617
- var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
618
- _anObject(O);
619
- P = _toPrimitive(P, true);
620
- _anObject(Attributes);
621
- if (_ie8DomDefine) try {
622
- return dP(O, P, Attributes);
623
- } catch (e) { }
624
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
625
- if ('value' in Attributes) O[P] = Attributes.value;
626
- return O;
627
- };
628
- var _objectDp = {
629
- f: f
630
- };
631
-
632
- var _propertyDesc = function (bitmap, value) {
633
- return {
634
- enumerable: !(bitmap & 1),
635
- configurable: !(bitmap & 2),
636
- writable: !(bitmap & 4),
637
- value: value
638
- };
639
- };
640
-
641
- var _hide = _descriptors ? function (object, key, value) {
642
- return _objectDp.f(object, key, _propertyDesc(1, value));
643
- } : function (object, key, value) {
644
- object[key] = value;
645
- return object;
646
- };
647
-
648
- var hasOwnProperty = {}.hasOwnProperty;
649
- var _has = function (it, key) {
650
- return hasOwnProperty.call(it, key);
651
- };
652
-
653
- var PROTOTYPE = 'prototype';
654
- var $export = function (type, name, source) {
655
- var IS_FORCED = type & $export.F;
656
- var IS_GLOBAL = type & $export.G;
657
- var IS_STATIC = type & $export.S;
658
- var IS_PROTO = type & $export.P;
659
- var IS_BIND = type & $export.B;
660
- var IS_WRAP = type & $export.W;
661
- var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
662
- var expProto = exports[PROTOTYPE];
663
- var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
664
- var key, own, out;
665
- if (IS_GLOBAL) source = name;
666
- for (key in source) {
667
- own = !IS_FORCED && target && target[key] !== undefined;
668
- if (own && _has(exports, key)) continue;
669
- out = own ? target[key] : source[key];
670
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
671
- : IS_BIND && own ? _ctx(out, _global)
672
- : IS_WRAP && target[key] == out ? (function (C) {
673
- var F = function (a, b, c) {
674
- if (this instanceof C) {
675
- switch (arguments.length) {
676
- case 0: return new C();
677
- case 1: return new C(a);
678
- case 2: return new C(a, b);
679
- } return new C(a, b, c);
680
- } return C.apply(this, arguments);
681
- };
682
- F[PROTOTYPE] = C[PROTOTYPE];
683
- return F;
684
- })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
685
- if (IS_PROTO) {
686
- (exports.virtual || (exports.virtual = {}))[key] = out;
687
- if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
688
- }
689
- }
690
- };
691
- $export.F = 1;
692
- $export.G = 2;
693
- $export.S = 4;
694
- $export.P = 8;
695
- $export.B = 16;
696
- $export.W = 32;
697
- $export.U = 64;
698
- $export.R = 128;
699
- var _export = $export;
700
-
701
- var _redefine = _hide;
702
-
703
- var _iterators = {};
704
-
705
- var toString = {}.toString;
706
- var _cof = function (it) {
707
- return toString.call(it).slice(8, -1);
708
- };
709
-
710
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
711
- return _cof(it) == 'String' ? it.split('') : Object(it);
712
- };
713
-
714
- var _toIobject = function (it) {
715
- return _iobject(_defined(it));
716
- };
717
-
718
- var min = Math.min;
719
- var _toLength = function (it) {
720
- return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
721
- };
722
-
723
- var max = Math.max;
724
- var min$1 = Math.min;
725
- var _toAbsoluteIndex = function (index, length) {
726
- index = _toInteger(index);
727
- return index < 0 ? max(index + length, 0) : min$1(index, length);
728
- };
729
-
730
- var _arrayIncludes = function (IS_INCLUDES) {
731
- return function ($this, el, fromIndex) {
732
- var O = _toIobject($this);
733
- var length = _toLength(O.length);
734
- var index = _toAbsoluteIndex(fromIndex, length);
735
- var value;
736
- if (IS_INCLUDES && el != el) while (length > index) {
737
- value = O[index++];
738
- if (value != value) return true;
739
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
740
- if (O[index] === el) return IS_INCLUDES || index || 0;
741
- } return !IS_INCLUDES && -1;
742
- };
743
- };
744
-
745
- var _shared = createCommonjsModule(function (module) {
746
- var SHARED = '__core-js_shared__';
747
- var store = _global[SHARED] || (_global[SHARED] = {});
748
- (module.exports = function (key, value) {
749
- return store[key] || (store[key] = value !== undefined ? value : {});
750
- })('versions', []).push({
751
- version: _core.version,
752
- mode: 'pure' ,
753
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
754
- });
755
- });
756
-
757
- var id = 0;
758
- var px = Math.random();
759
- var _uid = function (key) {
760
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
761
- };
762
-
763
- var shared = _shared('keys');
764
- var _sharedKey = function (key) {
765
- return shared[key] || (shared[key] = _uid(key));
766
- };
767
-
768
- var arrayIndexOf = _arrayIncludes(false);
769
- var IE_PROTO = _sharedKey('IE_PROTO');
770
- var _objectKeysInternal = function (object, names) {
771
- var O = _toIobject(object);
772
- var i = 0;
773
- var result = [];
774
- var key;
775
- for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
776
- while (names.length > i) if (_has(O, key = names[i++])) {
777
- ~arrayIndexOf(result, key) || result.push(key);
778
- }
779
- return result;
780
- };
781
-
782
- var _enumBugKeys = (
783
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
784
- ).split(',');
785
-
786
- var _objectKeys = Object.keys || function keys(O) {
787
- return _objectKeysInternal(O, _enumBugKeys);
788
- };
789
-
790
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
791
- _anObject(O);
792
- var keys = _objectKeys(Properties);
793
- var length = keys.length;
794
- var i = 0;
795
- var P;
796
- while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]);
797
- return O;
798
- };
799
-
800
- var document$2 = _global.document;
801
- var _html = document$2 && document$2.documentElement;
802
-
803
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
804
- var Empty = function () { };
805
- var PROTOTYPE$1 = 'prototype';
806
- var createDict = function () {
807
- var iframe = _domCreate('iframe');
808
- var i = _enumBugKeys.length;
809
- var lt = '<';
810
- var gt = '>';
811
- var iframeDocument;
812
- iframe.style.display = 'none';
813
- _html.appendChild(iframe);
814
- iframe.src = 'javascript:';
815
- iframeDocument = iframe.contentWindow.document;
816
- iframeDocument.open();
817
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
818
- iframeDocument.close();
819
- createDict = iframeDocument.F;
820
- while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]];
821
- return createDict();
822
- };
823
- var _objectCreate = Object.create || function create(O, Properties) {
824
- var result;
825
- if (O !== null) {
826
- Empty[PROTOTYPE$1] = _anObject(O);
827
- result = new Empty();
828
- Empty[PROTOTYPE$1] = null;
829
- result[IE_PROTO$1] = O;
830
- } else result = createDict();
831
- return Properties === undefined ? result : _objectDps(result, Properties);
832
- };
833
-
834
- var _wks = createCommonjsModule(function (module) {
835
- var store = _shared('wks');
836
- var Symbol = _global.Symbol;
837
- var USE_SYMBOL = typeof Symbol == 'function';
838
- var $exports = module.exports = function (name) {
839
- return store[name] || (store[name] =
840
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));
841
- };
842
- $exports.store = store;
843
- });
844
-
845
- var def = _objectDp.f;
846
- var TAG = _wks('toStringTag');
847
- var _setToStringTag = function (it, tag, stat) {
848
- if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
849
- };
850
-
851
- var IteratorPrototype = {};
852
- _hide(IteratorPrototype, _wks('iterator'), function () { return this; });
853
- var _iterCreate = function (Constructor, NAME, next) {
854
- Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) });
855
- _setToStringTag(Constructor, NAME + ' Iterator');
856
- };
857
-
858
- var _toObject = function (it) {
859
- return Object(_defined(it));
860
- };
861
-
862
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
863
- var ObjectProto = Object.prototype;
864
- var _objectGpo = Object.getPrototypeOf || function (O) {
865
- O = _toObject(O);
866
- if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];
867
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
868
- return O.constructor.prototype;
869
- } return O instanceof Object ? ObjectProto : null;
870
- };
871
-
872
- var ITERATOR = _wks('iterator');
873
- var BUGGY = !([].keys && 'next' in [].keys());
874
- var FF_ITERATOR = '@@iterator';
875
- var KEYS = 'keys';
876
- var VALUES = 'values';
877
- var returnThis = function () { return this; };
878
- var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
879
- _iterCreate(Constructor, NAME, next);
880
- var getMethod = function (kind) {
881
- if (!BUGGY && kind in proto) return proto[kind];
882
- switch (kind) {
883
- case KEYS: return function keys() { return new Constructor(this, kind); };
884
- case VALUES: return function values() { return new Constructor(this, kind); };
885
- } return function entries() { return new Constructor(this, kind); };
886
- };
887
- var TAG = NAME + ' Iterator';
888
- var DEF_VALUES = DEFAULT == VALUES;
889
- var VALUES_BUG = false;
890
- var proto = Base.prototype;
891
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
892
- var $default = $native || getMethod(DEFAULT);
893
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
894
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
895
- var methods, key, IteratorPrototype;
896
- if ($anyNative) {
897
- IteratorPrototype = _objectGpo($anyNative.call(new Base()));
898
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
899
- _setToStringTag(IteratorPrototype, TAG, true);
900
- }
901
- }
902
- if (DEF_VALUES && $native && $native.name !== VALUES) {
903
- VALUES_BUG = true;
904
- $default = function values() { return $native.call(this); };
905
- }
906
- if (( FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
907
- _hide(proto, ITERATOR, $default);
908
- }
909
- _iterators[NAME] = $default;
910
- _iterators[TAG] = returnThis;
911
- if (DEFAULT) {
912
- methods = {
913
- values: DEF_VALUES ? $default : getMethod(VALUES),
914
- keys: IS_SET ? $default : getMethod(KEYS),
915
- entries: $entries
916
- };
917
- if (FORCED) for (key in methods) {
918
- if (!(key in proto)) _redefine(proto, key, methods[key]);
919
- } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
920
- }
921
- return methods;
922
- };
923
-
924
- var $at = _stringAt(true);
925
- _iterDefine(String, 'String', function (iterated) {
926
- this._t = String(iterated);
927
- this._i = 0;
928
- }, function () {
929
- var O = this._t;
930
- var index = this._i;
931
- var point;
932
- if (index >= O.length) return { value: undefined, done: true };
933
- point = $at(O, index);
934
- this._i += point.length;
935
- return { value: point, done: false };
936
- });
937
-
938
- var _iterStep = function (done, value) {
939
- return { value: value, done: !!done };
940
- };
941
-
942
- var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
943
- this._t = _toIobject(iterated);
944
- this._i = 0;
945
- this._k = kind;
946
- }, function () {
947
- var O = this._t;
948
- var kind = this._k;
949
- var index = this._i++;
950
- if (!O || index >= O.length) {
951
- this._t = undefined;
952
- return _iterStep(1);
953
- }
954
- if (kind == 'keys') return _iterStep(0, index);
955
- if (kind == 'values') return _iterStep(0, O[index]);
956
- return _iterStep(0, [index, O[index]]);
957
- }, 'values');
958
- _iterators.Arguments = _iterators.Array;
959
-
960
- var TO_STRING_TAG = _wks('toStringTag');
961
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
962
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
963
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
964
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
965
- 'TextTrackList,TouchList').split(',');
966
- for (var i = 0; i < DOMIterables.length; i++) {
967
- var NAME = DOMIterables[i];
968
- var Collection = _global[NAME];
969
- var proto = Collection && Collection.prototype;
970
- if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
971
- _iterators[NAME] = _iterators.Array;
972
- }
973
-
974
- var TAG$1 = _wks('toStringTag');
975
- var ARG = _cof(function () { return arguments; }()) == 'Arguments';
976
- var tryGet = function (it, key) {
977
- try {
978
- return it[key];
979
- } catch (e) { }
980
- };
981
- var _classof = function (it) {
982
- var O, T, B;
983
- return it === undefined ? 'Undefined' : it === null ? 'Null'
984
- : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
985
- : ARG ? _cof(O)
986
- : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
987
- };
988
-
989
- var _anInstance = function (it, Constructor, name, forbiddenField) {
990
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
991
- throw TypeError(name + ': incorrect invocation!');
992
- } return it;
993
- };
994
-
995
- var _iterCall = function (iterator, fn, value, entries) {
996
- try {
997
- return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
998
- } catch (e) {
999
- var ret = iterator['return'];
1000
- if (ret !== undefined) _anObject(ret.call(iterator));
1001
- throw e;
1002
- }
1003
- };
1004
-
1005
- var ITERATOR$1 = _wks('iterator');
1006
- var ArrayProto = Array.prototype;
1007
- var _isArrayIter = function (it) {
1008
- return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR$1] === it);
1009
- };
1010
-
1011
- var ITERATOR$2 = _wks('iterator');
1012
- var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
1013
- if (it != undefined) return it[ITERATOR$2]
1014
- || it['@@iterator']
1015
- || _iterators[_classof(it)];
1016
- };
1017
-
1018
- var _forOf = createCommonjsModule(function (module) {
1019
- var BREAK = {};
1020
- var RETURN = {};
1021
- var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
1022
- var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
1023
- var f = _ctx(fn, that, entries ? 2 : 1);
1024
- var index = 0;
1025
- var length, step, iterator, result;
1026
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1027
- if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
1028
- result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
1029
- if (result === BREAK || result === RETURN) return result;
1030
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1031
- result = _iterCall(iterator, f, step.value, entries);
1032
- if (result === BREAK || result === RETURN) return result;
1033
- }
1034
- };
1035
- exports.BREAK = BREAK;
1036
- exports.RETURN = RETURN;
1037
- });
1038
-
1039
- var SPECIES = _wks('species');
1040
- var _speciesConstructor = function (O, D) {
1041
- var C = _anObject(O).constructor;
1042
- var S;
1043
- return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
1044
- };
1045
-
1046
- var _invoke = function (fn, args, that) {
1047
- var un = that === undefined;
1048
- switch (args.length) {
1049
- case 0: return un ? fn()
1050
- : fn.call(that);
1051
- case 1: return un ? fn(args[0])
1052
- : fn.call(that, args[0]);
1053
- case 2: return un ? fn(args[0], args[1])
1054
- : fn.call(that, args[0], args[1]);
1055
- case 3: return un ? fn(args[0], args[1], args[2])
1056
- : fn.call(that, args[0], args[1], args[2]);
1057
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
1058
- : fn.call(that, args[0], args[1], args[2], args[3]);
1059
- } return fn.apply(that, args);
1060
- };
1061
-
1062
- var process = _global.process;
1063
- var setTask = _global.setImmediate;
1064
- var clearTask = _global.clearImmediate;
1065
- var MessageChannel = _global.MessageChannel;
1066
- var Dispatch = _global.Dispatch;
1067
- var counter = 0;
1068
- var queue = {};
1069
- var ONREADYSTATECHANGE = 'onreadystatechange';
1070
- var defer, channel, port;
1071
- var run = function () {
1072
- var id = +this;
1073
- if (queue.hasOwnProperty(id)) {
1074
- var fn = queue[id];
1075
- delete queue[id];
1076
- fn();
1077
- }
1078
- };
1079
- var listener = function (event) {
1080
- run.call(event.data);
1081
- };
1082
- if (!setTask || !clearTask) {
1083
- setTask = function setImmediate(fn) {
1084
- var args = [];
1085
- var i = 1;
1086
- while (arguments.length > i) args.push(arguments[i++]);
1087
- queue[++counter] = function () {
1088
- _invoke(typeof fn == 'function' ? fn : Function(fn), args);
1089
- };
1090
- defer(counter);
1091
- return counter;
1092
- };
1093
- clearTask = function clearImmediate(id) {
1094
- delete queue[id];
1095
- };
1096
- if (_cof(process) == 'process') {
1097
- defer = function (id) {
1098
- process.nextTick(_ctx(run, id, 1));
1099
- };
1100
- } else if (Dispatch && Dispatch.now) {
1101
- defer = function (id) {
1102
- Dispatch.now(_ctx(run, id, 1));
1103
- };
1104
- } else if (MessageChannel) {
1105
- channel = new MessageChannel();
1106
- port = channel.port2;
1107
- channel.port1.onmessage = listener;
1108
- defer = _ctx(port.postMessage, port, 1);
1109
- } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
1110
- defer = function (id) {
1111
- _global.postMessage(id + '', '*');
1112
- };
1113
- _global.addEventListener('message', listener, false);
1114
- } else if (ONREADYSTATECHANGE in _domCreate('script')) {
1115
- defer = function (id) {
1116
- _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
1117
- _html.removeChild(this);
1118
- run.call(id);
1119
- };
1120
- };
1121
- } else {
1122
- defer = function (id) {
1123
- setTimeout(_ctx(run, id, 1), 0);
1124
- };
1125
- }
1126
- }
1127
- var _task = {
1128
- set: setTask,
1129
- clear: clearTask
1130
- };
1131
-
1132
- var macrotask = _task.set;
1133
- var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
1134
- var process$1 = _global.process;
1135
- var Promise$1 = _global.Promise;
1136
- var isNode = _cof(process$1) == 'process';
1137
- var _microtask = function () {
1138
- var head, last, notify;
1139
- var flush = function () {
1140
- var parent, fn;
1141
- if (isNode && (parent = process$1.domain)) parent.exit();
1142
- while (head) {
1143
- fn = head.fn;
1144
- head = head.next;
1145
- try {
1146
- fn();
1147
- } catch (e) {
1148
- if (head) notify();
1149
- else last = undefined;
1150
- throw e;
1151
- }
1152
- } last = undefined;
1153
- if (parent) parent.enter();
1154
- };
1155
- if (isNode) {
1156
- notify = function () {
1157
- process$1.nextTick(flush);
1158
- };
1159
- } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
1160
- var toggle = true;
1161
- var node = document.createTextNode('');
1162
- new Observer(flush).observe(node, { characterData: true });
1163
- notify = function () {
1164
- node.data = toggle = !toggle;
1165
- };
1166
- } else if (Promise$1 && Promise$1.resolve) {
1167
- var promise = Promise$1.resolve(undefined);
1168
- notify = function () {
1169
- promise.then(flush);
1170
- };
1171
- } else {
1172
- notify = function () {
1173
- macrotask.call(_global, flush);
1174
- };
1175
- }
1176
- return function (fn) {
1177
- var task = { fn: fn, next: undefined };
1178
- if (last) last.next = task;
1179
- if (!head) {
1180
- head = task;
1181
- notify();
1182
- } last = task;
1183
- };
1184
- };
1185
-
1186
- function PromiseCapability(C) {
1187
- var resolve, reject;
1188
- this.promise = new C(function ($$resolve, $$reject) {
1189
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1190
- resolve = $$resolve;
1191
- reject = $$reject;
1192
- });
1193
- this.resolve = _aFunction(resolve);
1194
- this.reject = _aFunction(reject);
1195
- }
1196
- var f$1 = function (C) {
1197
- return new PromiseCapability(C);
1198
- };
1199
- var _newPromiseCapability = {
1200
- f: f$1
1201
- };
1202
-
1203
- var _perform = function (exec) {
1204
- try {
1205
- return { e: false, v: exec() };
1206
- } catch (e) {
1207
- return { e: true, v: e };
1208
- }
1209
- };
1210
-
1211
- var navigator = _global.navigator;
1212
- var _userAgent = navigator && navigator.userAgent || '';
1213
-
1214
- var _promiseResolve = function (C, x) {
1215
- _anObject(C);
1216
- if (_isObject(x) && x.constructor === C) return x;
1217
- var promiseCapability = _newPromiseCapability.f(C);
1218
- var resolve = promiseCapability.resolve;
1219
- resolve(x);
1220
- return promiseCapability.promise;
1221
- };
1222
-
1223
- var _redefineAll = function (target, src, safe) {
1224
- for (var key in src) {
1225
- if (safe && target[key]) target[key] = src[key];
1226
- else _hide(target, key, src[key]);
1227
- } return target;
1228
- };
1229
-
1230
- var SPECIES$1 = _wks('species');
1231
- var _setSpecies = function (KEY) {
1232
- var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
1233
- if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
1234
- configurable: true,
1235
- get: function () { return this; }
1236
- });
1237
- };
1238
-
1239
- var ITERATOR$3 = _wks('iterator');
1240
- var SAFE_CLOSING = false;
1241
- try {
1242
- var riter = [7][ITERATOR$3]();
1243
- riter['return'] = function () { SAFE_CLOSING = true; };
1244
- Array.from(riter, function () { throw 2; });
1245
- } catch (e) { }
1246
- var _iterDetect = function (exec, skipClosing) {
1247
- if (!skipClosing && !SAFE_CLOSING) return false;
1248
- var safe = false;
1249
- try {
1250
- var arr = [7];
1251
- var iter = arr[ITERATOR$3]();
1252
- iter.next = function () { return { done: safe = true }; };
1253
- arr[ITERATOR$3] = function () { return iter; };
1254
- exec(arr);
1255
- } catch (e) { }
1256
- return safe;
1257
- };
1258
-
1259
- var task = _task.set;
1260
- var microtask = _microtask();
1261
- var PROMISE = 'Promise';
1262
- var TypeError$1 = _global.TypeError;
1263
- var process$2 = _global.process;
1264
- var versions = process$2 && process$2.versions;
1265
- var v8 = versions && versions.v8 || '';
1266
- var $Promise = _global[PROMISE];
1267
- var isNode$1 = _classof(process$2) == 'process';
1268
- var empty = function () { };
1269
- var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
1270
- var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
1271
- var USE_NATIVE = !!function () {
1272
- try {
1273
- var promise = $Promise.resolve(1);
1274
- var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
1275
- exec(empty, empty);
1276
- };
1277
- return (isNode$1 || typeof PromiseRejectionEvent == 'function')
1278
- && promise.then(empty) instanceof FakePromise
1279
- && v8.indexOf('6.6') !== 0
1280
- && _userAgent.indexOf('Chrome/66') === -1;
1281
- } catch (e) { }
1282
- }();
1283
- var isThenable = function (it) {
1284
- var then;
1285
- return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
1286
- };
1287
- var notify = function (promise, isReject) {
1288
- if (promise._n) return;
1289
- promise._n = true;
1290
- var chain = promise._c;
1291
- microtask(function () {
1292
- var value = promise._v;
1293
- var ok = promise._s == 1;
1294
- var i = 0;
1295
- var run = function (reaction) {
1296
- var handler = ok ? reaction.ok : reaction.fail;
1297
- var resolve = reaction.resolve;
1298
- var reject = reaction.reject;
1299
- var domain = reaction.domain;
1300
- var result, then, exited;
1301
- try {
1302
- if (handler) {
1303
- if (!ok) {
1304
- if (promise._h == 2) onHandleUnhandled(promise);
1305
- promise._h = 1;
1306
- }
1307
- if (handler === true) result = value;
1308
- else {
1309
- if (domain) domain.enter();
1310
- result = handler(value);
1311
- if (domain) {
1312
- domain.exit();
1313
- exited = true;
1314
- }
1315
- }
1316
- if (result === reaction.promise) {
1317
- reject(TypeError$1('Promise-chain cycle'));
1318
- } else if (then = isThenable(result)) {
1319
- then.call(result, resolve, reject);
1320
- } else resolve(result);
1321
- } else reject(value);
1322
- } catch (e) {
1323
- if (domain && !exited) domain.exit();
1324
- reject(e);
1325
- }
1326
- };
1327
- while (chain.length > i) run(chain[i++]);
1328
- promise._c = [];
1329
- promise._n = false;
1330
- if (isReject && !promise._h) onUnhandled(promise);
1331
- });
1332
- };
1333
- var onUnhandled = function (promise) {
1334
- task.call(_global, function () {
1335
- var value = promise._v;
1336
- var unhandled = isUnhandled(promise);
1337
- var result, handler, console;
1338
- if (unhandled) {
1339
- result = _perform(function () {
1340
- if (isNode$1) {
1341
- process$2.emit('unhandledRejection', value, promise);
1342
- } else if (handler = _global.onunhandledrejection) {
1343
- handler({ promise: promise, reason: value });
1344
- } else if ((console = _global.console) && console.error) {
1345
- console.error('Unhandled promise rejection', value);
1346
- }
1347
- });
1348
- promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1;
1349
- } promise._a = undefined;
1350
- if (unhandled && result.e) throw result.v;
1351
- });
1352
- };
1353
- var isUnhandled = function (promise) {
1354
- return promise._h !== 1 && (promise._a || promise._c).length === 0;
1355
- };
1356
- var onHandleUnhandled = function (promise) {
1357
- task.call(_global, function () {
1358
- var handler;
1359
- if (isNode$1) {
1360
- process$2.emit('rejectionHandled', promise);
1361
- } else if (handler = _global.onrejectionhandled) {
1362
- handler({ promise: promise, reason: promise._v });
1363
- }
1364
- });
1365
- };
1366
- var $reject = function (value) {
1367
- var promise = this;
1368
- if (promise._d) return;
1369
- promise._d = true;
1370
- promise = promise._w || promise;
1371
- promise._v = value;
1372
- promise._s = 2;
1373
- if (!promise._a) promise._a = promise._c.slice();
1374
- notify(promise, true);
1375
- };
1376
- var $resolve = function (value) {
1377
- var promise = this;
1378
- var then;
1379
- if (promise._d) return;
1380
- promise._d = true;
1381
- promise = promise._w || promise;
1382
- try {
1383
- if (promise === value) throw TypeError$1("Promise can't be resolved itself");
1384
- if (then = isThenable(value)) {
1385
- microtask(function () {
1386
- var wrapper = { _w: promise, _d: false };
1387
- try {
1388
- then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
1389
- } catch (e) {
1390
- $reject.call(wrapper, e);
1391
- }
1392
- });
1393
- } else {
1394
- promise._v = value;
1395
- promise._s = 1;
1396
- notify(promise, false);
1397
- }
1398
- } catch (e) {
1399
- $reject.call({ _w: promise, _d: false }, e);
1400
- }
1401
- };
1402
- if (!USE_NATIVE) {
1403
- $Promise = function Promise(executor) {
1404
- _anInstance(this, $Promise, PROMISE, '_h');
1405
- _aFunction(executor);
1406
- Internal.call(this);
1407
- try {
1408
- executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
1409
- } catch (err) {
1410
- $reject.call(this, err);
1411
- }
1412
- };
1413
- Internal = function Promise(executor) {
1414
- this._c = [];
1415
- this._a = undefined;
1416
- this._s = 0;
1417
- this._d = false;
1418
- this._v = undefined;
1419
- this._h = 0;
1420
- this._n = false;
1421
- };
1422
- Internal.prototype = _redefineAll($Promise.prototype, {
1423
- then: function then(onFulfilled, onRejected) {
1424
- var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
1425
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
1426
- reaction.fail = typeof onRejected == 'function' && onRejected;
1427
- reaction.domain = isNode$1 ? process$2.domain : undefined;
1428
- this._c.push(reaction);
1429
- if (this._a) this._a.push(reaction);
1430
- if (this._s) notify(this, false);
1431
- return reaction.promise;
1432
- },
1433
- 'catch': function (onRejected) {
1434
- return this.then(undefined, onRejected);
1435
- }
1436
- });
1437
- OwnPromiseCapability = function () {
1438
- var promise = new Internal();
1439
- this.promise = promise;
1440
- this.resolve = _ctx($resolve, promise, 1);
1441
- this.reject = _ctx($reject, promise, 1);
1442
- };
1443
- _newPromiseCapability.f = newPromiseCapability = function (C) {
1444
- return C === $Promise || C === Wrapper
1445
- ? new OwnPromiseCapability(C)
1446
- : newGenericPromiseCapability(C);
1447
- };
1448
- }
1449
- _export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
1450
- _setToStringTag($Promise, PROMISE);
1451
- _setSpecies(PROMISE);
1452
- Wrapper = _core[PROMISE];
1453
- _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
1454
- reject: function reject(r) {
1455
- var capability = newPromiseCapability(this);
1456
- var $$reject = capability.reject;
1457
- $$reject(r);
1458
- return capability.promise;
1459
- }
1460
- });
1461
- _export(_export.S + _export.F * (_library ), PROMISE, {
1462
- resolve: function resolve(x) {
1463
- return _promiseResolve( this === Wrapper ? $Promise : this, x);
1464
- }
1465
- });
1466
- _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
1467
- $Promise.all(iter)['catch'](empty);
1468
- })), PROMISE, {
1469
- all: function all(iterable) {
1470
- var C = this;
1471
- var capability = newPromiseCapability(C);
1472
- var resolve = capability.resolve;
1473
- var reject = capability.reject;
1474
- var result = _perform(function () {
1475
- var values = [];
1476
- var index = 0;
1477
- var remaining = 1;
1478
- _forOf(iterable, false, function (promise) {
1479
- var $index = index++;
1480
- var alreadyCalled = false;
1481
- values.push(undefined);
1482
- remaining++;
1483
- C.resolve(promise).then(function (value) {
1484
- if (alreadyCalled) return;
1485
- alreadyCalled = true;
1486
- values[$index] = value;
1487
- --remaining || resolve(values);
1488
- }, reject);
1489
- });
1490
- --remaining || resolve(values);
1491
- });
1492
- if (result.e) reject(result.v);
1493
- return capability.promise;
1494
- },
1495
- race: function race(iterable) {
1496
- var C = this;
1497
- var capability = newPromiseCapability(C);
1498
- var reject = capability.reject;
1499
- var result = _perform(function () {
1500
- _forOf(iterable, false, function (promise) {
1501
- C.resolve(promise).then(capability.resolve, reject);
1502
- });
1503
- });
1504
- if (result.e) reject(result.v);
1505
- return capability.promise;
1506
- }
1507
- });
1508
-
1509
- _export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) {
1510
- var C = _speciesConstructor(this, _core.Promise || _global.Promise);
1511
- var isFunction = typeof onFinally == 'function';
1512
- return this.then(
1513
- isFunction ? function (x) {
1514
- return _promiseResolve(C, onFinally()).then(function () { return x; });
1515
- } : onFinally,
1516
- isFunction ? function (e) {
1517
- return _promiseResolve(C, onFinally()).then(function () { throw e; });
1518
- } : onFinally
1519
- );
1520
- } });
1521
-
1522
- _export(_export.S, 'Promise', { 'try': function (callbackfn) {
1523
- var promiseCapability = _newPromiseCapability.f(this);
1524
- var result = _perform(callbackfn);
1525
- (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
1526
- return promiseCapability.promise;
1527
- } });
1528
-
1529
- var promise = _core.Promise;
1530
-
1531
- var promise$1 = promise;
1532
-
1533
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1534
- try {
1535
- var info = gen[key](arg);
1536
- var value = info.value;
1537
- } catch (error) {
1538
- reject(error);
1539
- return;
1540
- }
1541
-
1542
- if (info.done) {
1543
- resolve(value);
1544
- } else {
1545
- Promise.resolve(value).then(_next, _throw);
1546
- }
1547
- }
1548
-
1549
- function _asyncToGenerator(fn) {
1550
- return function () {
1551
- var self = this,
1552
- args = arguments;
1553
- return new Promise(function (resolve, reject) {
1554
- var gen = fn.apply(self, args);
1555
-
1556
- function _next(value) {
1557
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1558
- }
1559
-
1560
- function _throw(err) {
1561
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1562
- }
1563
-
1564
- _next(undefined);
1565
- });
1566
- };
1567
- }
1568
-
1569
- var script = {
1570
- name: 'bk-steps',
1571
- mixins: [locale.mixin],
1572
- props: {
1573
- steps: {
1574
- type: Array,
1575
- default: function _default() {
1576
- return [];
1577
- }
1578
- },
1579
- curStep: {
1580
- type: Number,
1581
- default: 1
1582
- },
1583
- controllable: {
1584
- type: Boolean,
1585
- default: false
1586
- },
1587
- direction: {
1588
- type: String,
1589
- default: 'horizontal',
1590
- validator: function validator(val) {
1591
- return ['horizontal', 'vertical'].includes(val);
1592
- }
1593
- },
1594
- status: {
1595
- type: String,
1596
- default: '',
1597
- validator: function validator(val) {
1598
- return ['', 'error', 'loading'].includes(val);
1599
- }
1600
- },
1601
- lineType: {
1602
- type: String,
1603
- default: 'dashed',
1604
- validator: function validator(val) {
1605
- return ['dashed', 'solid'].includes(val);
1606
- }
1607
- },
1608
- size: {
1609
- type: String,
1610
- default: '',
1611
- validator: function validator(val) {
1612
- return ['', 'small'].includes(val);
1613
- }
1614
- },
1615
- theme: {
1616
- type: String,
1617
- default: 'primary'
1618
- },
1619
- extCls: {
1620
- type: String,
1621
- default: ''
1622
- },
1623
- beforeChange: {
1624
- type: Function,
1625
- default: null
1626
- }
1627
- },
1628
- data: function data() {
1629
- return {
1630
- defaultSteps: [],
1631
- currentStatus: this.status
1632
- };
1633
- },
1634
- computed: {
1635
- wrapperCls: function wrapperCls() {
1636
- var wrapperCls = ['bk-steps', "bk-steps-".concat(this.direction), "bk-steps-".concat(this.lineType), "bk-steps-".concat(this.theme)];
1637
- if (this.size) {
1638
- wrapperCls.push("bk-steps-".concat(this.size));
1639
- }
1640
- return wrapperCls;
1641
- }
1642
- },
1643
- watch: {
1644
- status: function status(val) {
1645
- this.currentStatus = val;
1646
- },
1647
- steps: {
1648
- handler: function handler(val) {
1649
- this.updateSteps(val);
1650
- },
1651
- deep: true
1652
- }
1653
- },
1654
- created: function created() {
1655
- var _this$defaultSteps;
1656
- (_this$defaultSteps = this.defaultSteps).splice.apply(_this$defaultSteps, [0, this.defaultSteps.length].concat([{
1657
- title: this.t('bk.steps.step1'),
1658
- icon: 1
1659
- }, {
1660
- title: this.t('bk.steps.step2'),
1661
- icon: 2
1662
- }, {
1663
- title: this.t('bk.steps.step3'),
1664
- icon: 3
1665
- }]));
1666
- if (this.steps && this.steps.length) {
1667
- this.updateSteps(this.steps);
1668
- }
1669
- },
1670
- methods: {
1671
- updateSteps: function updateSteps(steps) {
1672
- var _this$defaultSteps2;
1673
- var defaultSteps = [];
1674
- steps.forEach(function (step) {
1675
- if (typeof step === 'string') {
1676
- defaultSteps.push(step);
1677
- } else {
1678
- defaultSteps.push({
1679
- title: step.title,
1680
- icon: step.icon,
1681
- description: step.description,
1682
- status: step.status
1683
- });
1684
- }
1685
- });
1686
- (_this$defaultSteps2 = this.defaultSteps).splice.apply(_this$defaultSteps2, [0, this.defaultSteps.length].concat(defaultSteps));
1687
- },
1688
- iconType: function iconType(step) {
1689
- var icon = step.icon;
1690
- if (icon) {
1691
- return typeof icon === 'string';
1692
- }
1693
- return typeof step === 'string';
1694
- },
1695
- isIcon: function isIcon(step) {
1696
- return step.icon ? step.icon : step;
1697
- },
1698
- isCurrent: function isCurrent(index) {
1699
- return this.curStep === index + 1;
1700
- },
1701
- isDone: function isDone(index) {
1702
- return this.curStep > index + 1 || this.defaultSteps[index].status === 'done';
1703
- },
1704
- isLoadingStatus: function isLoadingStatus(step) {
1705
- return step.status === 'loading';
1706
- },
1707
- isErrorStatus: function isErrorStatus(step) {
1708
- return step.status === 'error';
1709
- },
1710
- jumpTo: function jumpTo(index) {
1711
- var _this = this;
1712
- return _asyncToGenerator( regenerator.mark(function _callee2() {
1713
- return regenerator.wrap(function _callee2$(_context2) {
1714
- while (1) {
1715
- switch (_context2.prev = _context2.next) {
1716
- case 0:
1717
- _context2.prev = 0;
1718
- if (!(_this.controllable && index !== _this.curStep)) {
1719
- _context2.next = 7;
1720
- break;
1721
- }
1722
- if (!(typeof _this.beforeChange === 'function')) {
1723
- _context2.next = 5;
1724
- break;
1725
- }
1726
- _context2.next = 5;
1727
- return new promise$1( function () {
1728
- var _ref = _asyncToGenerator( regenerator.mark(function _callee(resolve, reject) {
1729
- var confirmed;
1730
- return regenerator.wrap(function _callee$(_context) {
1731
- while (1) {
1732
- switch (_context.prev = _context.next) {
1733
- case 0:
1734
- _context.next = 2;
1735
- return _this.beforeChange(index);
1736
- case 2:
1737
- confirmed = _context.sent;
1738
- confirmed ? resolve(confirmed) : reject(confirmed);
1739
- case 4:
1740
- case "end":
1741
- return _context.stop();
1742
- }
1743
- }
1744
- }, _callee);
1745
- }));
1746
- return function (_x, _x2) {
1747
- return _ref.apply(this, arguments);
1748
- };
1749
- }());
1750
- case 5:
1751
- _this.$emit('update:curStep', index);
1752
- _this.$emit('step-changed', index);
1753
- case 7:
1754
- _context2.next = 12;
1755
- break;
1756
- case 9:
1757
- _context2.prev = 9;
1758
- _context2.t0 = _context2["catch"](0);
1759
- console.warn(_context2.t0);
1760
- case 12:
1761
- case "end":
1762
- return _context2.stop();
1763
- }
1764
- }
1765
- }, _callee2, null, [[0, 9]]);
1766
- }))();
1767
- }
1768
- }
1769
- };
1770
-
1771
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1772
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1773
- if (typeof shadowMode !== 'boolean') {
1774
- createInjectorSSR = createInjector;
1775
- createInjector = shadowMode;
1776
- shadowMode = false;
1777
- }
1778
- var options = typeof script === 'function' ? script.options : script;
1779
- if (template && template.render) {
1780
- options.render = template.render;
1781
- options.staticRenderFns = template.staticRenderFns;
1782
- options._compiled = true;
1783
- if (isFunctionalTemplate) {
1784
- options.functional = true;
1785
- }
1786
- }
1787
- if (scopeId) {
1788
- options._scopeId = scopeId;
1789
- }
1790
- var hook;
1791
- if (moduleIdentifier) {
1792
- hook = function hook(context) {
1793
- context = context ||
1794
- this.$vnode && this.$vnode.ssrContext ||
1795
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1796
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1797
- context = __VUE_SSR_CONTEXT__;
1798
- }
1799
- if (style) {
1800
- style.call(this, createInjectorSSR(context));
1801
- }
1802
- if (context && context._registeredComponents) {
1803
- context._registeredComponents.add(moduleIdentifier);
1804
- }
1805
- };
1806
- options._ssrRegister = hook;
1807
- } else if (style) {
1808
- hook = shadowMode ? function () {
1809
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1810
- } : function (context) {
1811
- style.call(this, createInjector(context));
1812
- };
1813
- }
1814
- if (hook) {
1815
- if (options.functional) {
1816
- var originalRender = options.render;
1817
- options.render = function renderWithStyleInjection(h, context) {
1818
- hook.call(context);
1819
- return originalRender(h, context);
1820
- };
1821
- } else {
1822
- var existing = options.beforeCreate;
1823
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1824
- }
1825
- }
1826
- return script;
1827
- }
1828
- var normalizeComponent_1 = normalizeComponent;
1829
-
1830
- /* script */
1831
- var __vue_script__ = script;
1832
- /* template */
1833
-
1834
- var __vue_render__ = function __vue_render__() {
1835
- var _vm = this;
1836
-
1837
- var _h = _vm.$createElement;
1838
-
1839
- var _c = _vm._self._c || _h;
1840
-
1841
- return _c('div', {
1842
- class: [_vm.wrapperCls, _vm.extCls]
1843
- }, _vm._l(_vm.defaultSteps, function (step, index) {
1844
- var _obj;
1845
-
1846
- return _c('div', {
1847
- key: index,
1848
- staticClass: "bk-step",
1849
- class: (_obj = {
1850
- 'bk-step-no-content': !step.title,
1851
- done: _vm.isDone(index),
1852
- current: _vm.isCurrent(index)
1853
- }, _obj["bk-step-" + _vm.currentStatus] = _vm.currentStatus && _vm.isCurrent(index), _obj)
1854
- }, [_c('span', {
1855
- staticClass: "bk-step-indicator",
1856
- class: 'bk-step-' + (_vm.iconType(step) ? 'icon' : 'number'),
1857
- style: {
1858
- cursor: _vm.controllable ? 'pointer' : ''
1859
- },
1860
- on: {
1861
- "click": function click($event) {
1862
- _vm.jumpTo(index + 1);
1863
- }
1864
- }
1865
- }, [_vm.isCurrent(index) && _vm.currentStatus === 'loading' || _vm.isLoadingStatus(step) ? _c('i', {
1866
- staticClass: "bk-icon icon-circle-4-1 icon-loading"
1867
- }) : _vm.iconType(step) ? _c('i', {
1868
- staticClass: "bk-icon",
1869
- class: 'icon-' + _vm.isIcon(step)
1870
- }) : _vm.isCurrent(index) && _vm.currentStatus === 'error' || _vm.isErrorStatus(step) ? _c('i', {
1871
- staticClass: "bk-icon icon-close icon-error"
1872
- }) : _vm.isDone(index) ? _c('i', {
1873
- staticClass: "bk-icon icon-check-1 icon-finish"
1874
- }) : _c('span', {
1875
- staticClass: "number"
1876
- }, [_vm._v("\n " + _vm._s(_vm.isIcon(step)) + "\n ")])]), step.title ? _c('div', {
1877
- staticClass: "bk-step-content"
1878
- }, [_c('div', {
1879
- staticClass: "bk-step-title",
1880
- style: {
1881
- cursor: _vm.controllable ? 'pointer' : ''
1882
- },
1883
- on: {
1884
- "click": function click($event) {
1885
- _vm.jumpTo(index + 1);
1886
- }
1887
- }
1888
- }, [_vm._v("\n " + _vm._s(step.title) + "\n ")]), step.description ? _c('div', {
1889
- staticClass: "bk-step-description",
1890
- attrs: {
1891
- "title": step.description
1892
- }
1893
- }, [_vm._v("\n " + _vm._s(step.description) + "\n ")]) : _vm._e()]) : _vm._e()]);
1894
- }), 0);
1895
- };
1896
-
1897
- var __vue_staticRenderFns__ = [];
1898
- /* style */
1899
-
1900
- var __vue_inject_styles__ = undefined;
1901
- /* scoped */
1902
-
1903
- var __vue_scope_id__ = undefined;
1904
- /* module identifier */
1905
-
1906
- var __vue_module_identifier__ = undefined;
1907
- /* functional template */
1908
-
1909
- var __vue_is_functional_template__ = false;
1910
- /* style inject */
1911
-
1912
- /* style inject SSR */
1913
-
1914
- /* style inject shadow dom */
1915
-
1916
- var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
1917
- render: __vue_render__,
1918
- staticRenderFns: __vue_staticRenderFns__
1919
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
1920
-
1921
- var _objectSap = function (KEY, exec) {
1922
- var fn = (_core.Object || {})[KEY] || Object[KEY];
1923
- var exp = {};
1924
- exp[KEY] = exec(fn);
1925
- _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
1926
- };
1927
-
1928
- _objectSap('keys', function () {
1929
- return function keys(it) {
1930
- return _objectKeys(_toObject(it));
1931
- };
1932
- });
1933
-
1934
- var keys = _core.Object.keys;
1935
-
1936
- var keys$1 = keys;
1937
-
1938
- function setInstaller (component, afterInstall) {
1939
- component.install = function (Vue) {
1940
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1941
- var props = component.props || {};
1942
- keys$1(options).forEach(function (key) {
1943
- if (props.hasOwnProperty(key)) {
1944
- if (typeof props[key] === 'function' || props[key] instanceof Array) {
1945
- props[key] = {
1946
- type: props[key],
1947
- default: options[key]
1948
- };
1949
- } else {
1950
- props[key].default = options[key];
1951
- }
1952
- }
1953
- });
1954
- component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
1955
- Vue.component(component.name, component);
1956
- typeof afterInstall === 'function' && afterInstall(Vue, options);
1957
- };
1958
- }
1959
-
1960
- setInstaller(__vue_component__);
1961
-
1962
- exports.default = __vue_component__;
1963
-
1964
- Object.defineProperty(exports, '__esModule', { value: true });
7
+ locale = locale && locale.hasOwnProperty('default') ? locale['default'] : locale;
8
+
9
+ function _regeneratorRuntime() {
10
+ _regeneratorRuntime = function () {
11
+ return exports;
12
+ };
13
+ var exports = {},
14
+ Op = Object.prototype,
15
+ hasOwn = Op.hasOwnProperty,
16
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
17
+ obj[key] = desc.value;
18
+ },
19
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
20
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
21
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
22
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
23
+ function define(obj, key, value) {
24
+ return Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: !0,
27
+ configurable: !0,
28
+ writable: !0
29
+ }), obj[key];
30
+ }
31
+ try {
32
+ define({}, "");
33
+ } catch (err) {
34
+ define = function (obj, key, value) {
35
+ return obj[key] = value;
36
+ };
37
+ }
38
+ function wrap(innerFn, outerFn, self, tryLocsList) {
39
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
40
+ generator = Object.create(protoGenerator.prototype),
41
+ context = new Context(tryLocsList || []);
42
+ return defineProperty(generator, "_invoke", {
43
+ value: makeInvokeMethod(innerFn, self, context)
44
+ }), generator;
45
+ }
46
+ function tryCatch(fn, obj, arg) {
47
+ try {
48
+ return {
49
+ type: "normal",
50
+ arg: fn.call(obj, arg)
51
+ };
52
+ } catch (err) {
53
+ return {
54
+ type: "throw",
55
+ arg: err
56
+ };
57
+ }
58
+ }
59
+ exports.wrap = wrap;
60
+ var ContinueSentinel = {};
61
+ function Generator() {}
62
+ function GeneratorFunction() {}
63
+ function GeneratorFunctionPrototype() {}
64
+ var IteratorPrototype = {};
65
+ define(IteratorPrototype, iteratorSymbol, function () {
66
+ return this;
67
+ });
68
+ var getProto = Object.getPrototypeOf,
69
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
70
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
71
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
72
+ function defineIteratorMethods(prototype) {
73
+ ["next", "throw", "return"].forEach(function (method) {
74
+ define(prototype, method, function (arg) {
75
+ return this._invoke(method, arg);
76
+ });
77
+ });
78
+ }
79
+ function AsyncIterator(generator, PromiseImpl) {
80
+ function invoke(method, arg, resolve, reject) {
81
+ var record = tryCatch(generator[method], generator, arg);
82
+ if ("throw" !== record.type) {
83
+ var result = record.arg,
84
+ value = result.value;
85
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
86
+ invoke("next", value, resolve, reject);
87
+ }, function (err) {
88
+ invoke("throw", err, resolve, reject);
89
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
90
+ result.value = unwrapped, resolve(result);
91
+ }, function (error) {
92
+ return invoke("throw", error, resolve, reject);
93
+ });
94
+ }
95
+ reject(record.arg);
96
+ }
97
+ var previousPromise;
98
+ defineProperty(this, "_invoke", {
99
+ value: function (method, arg) {
100
+ function callInvokeWithMethodAndArg() {
101
+ return new PromiseImpl(function (resolve, reject) {
102
+ invoke(method, arg, resolve, reject);
103
+ });
104
+ }
105
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
106
+ }
107
+ });
108
+ }
109
+ function makeInvokeMethod(innerFn, self, context) {
110
+ var state = "suspendedStart";
111
+ return function (method, arg) {
112
+ if ("executing" === state) throw new Error("Generator is already running");
113
+ if ("completed" === state) {
114
+ if ("throw" === method) throw arg;
115
+ return doneResult();
116
+ }
117
+ for (context.method = method, context.arg = arg;;) {
118
+ var delegate = context.delegate;
119
+ if (delegate) {
120
+ var delegateResult = maybeInvokeDelegate(delegate, context);
121
+ if (delegateResult) {
122
+ if (delegateResult === ContinueSentinel) continue;
123
+ return delegateResult;
124
+ }
125
+ }
126
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
127
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
128
+ context.dispatchException(context.arg);
129
+ } else "return" === context.method && context.abrupt("return", context.arg);
130
+ state = "executing";
131
+ var record = tryCatch(innerFn, self, context);
132
+ if ("normal" === record.type) {
133
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
134
+ return {
135
+ value: record.arg,
136
+ done: context.done
137
+ };
138
+ }
139
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
140
+ }
141
+ };
142
+ }
143
+ function maybeInvokeDelegate(delegate, context) {
144
+ var method = delegate.iterator[context.method];
145
+ if (undefined === method) {
146
+ if (context.delegate = null, "throw" === context.method) {
147
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
148
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
149
+ }
150
+ return ContinueSentinel;
151
+ }
152
+ var record = tryCatch(method, delegate.iterator, context.arg);
153
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
154
+ var info = record.arg;
155
+ 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);
156
+ }
157
+ function pushTryEntry(locs) {
158
+ var entry = {
159
+ tryLoc: locs[0]
160
+ };
161
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
162
+ }
163
+ function resetTryEntry(entry) {
164
+ var record = entry.completion || {};
165
+ record.type = "normal", delete record.arg, entry.completion = record;
166
+ }
167
+ function Context(tryLocsList) {
168
+ this.tryEntries = [{
169
+ tryLoc: "root"
170
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
171
+ }
172
+ function values(iterable) {
173
+ if (iterable) {
174
+ var iteratorMethod = iterable[iteratorSymbol];
175
+ if (iteratorMethod) return iteratorMethod.call(iterable);
176
+ if ("function" == typeof iterable.next) return iterable;
177
+ if (!isNaN(iterable.length)) {
178
+ var i = -1,
179
+ next = function next() {
180
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
181
+ return next.value = undefined, next.done = !0, next;
182
+ };
183
+ return next.next = next;
184
+ }
185
+ }
186
+ return {
187
+ next: doneResult
188
+ };
189
+ }
190
+ function doneResult() {
191
+ return {
192
+ value: undefined,
193
+ done: !0
194
+ };
195
+ }
196
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
197
+ value: GeneratorFunctionPrototype,
198
+ configurable: !0
199
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
200
+ value: GeneratorFunction,
201
+ configurable: !0
202
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
203
+ var ctor = "function" == typeof genFun && genFun.constructor;
204
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
205
+ }, exports.mark = function (genFun) {
206
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
207
+ }, exports.awrap = function (arg) {
208
+ return {
209
+ __await: arg
210
+ };
211
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
212
+ return this;
213
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
214
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
215
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
216
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
217
+ return result.done ? result.value : iter.next();
218
+ });
219
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
220
+ return this;
221
+ }), define(Gp, "toString", function () {
222
+ return "[object Generator]";
223
+ }), exports.keys = function (val) {
224
+ var object = Object(val),
225
+ keys = [];
226
+ for (var key in object) keys.push(key);
227
+ return keys.reverse(), function next() {
228
+ for (; keys.length;) {
229
+ var key = keys.pop();
230
+ if (key in object) return next.value = key, next.done = !1, next;
231
+ }
232
+ return next.done = !0, next;
233
+ };
234
+ }, exports.values = values, Context.prototype = {
235
+ constructor: Context,
236
+ reset: function (skipTempReset) {
237
+ 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);
238
+ },
239
+ stop: function () {
240
+ this.done = !0;
241
+ var rootRecord = this.tryEntries[0].completion;
242
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
243
+ return this.rval;
244
+ },
245
+ dispatchException: function (exception) {
246
+ if (this.done) throw exception;
247
+ var context = this;
248
+ function handle(loc, caught) {
249
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
250
+ }
251
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
252
+ var entry = this.tryEntries[i],
253
+ record = entry.completion;
254
+ if ("root" === entry.tryLoc) return handle("end");
255
+ if (entry.tryLoc <= this.prev) {
256
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
257
+ hasFinally = hasOwn.call(entry, "finallyLoc");
258
+ if (hasCatch && hasFinally) {
259
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
260
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
261
+ } else if (hasCatch) {
262
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
263
+ } else {
264
+ if (!hasFinally) throw new Error("try statement without catch or finally");
265
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
266
+ }
267
+ }
268
+ }
269
+ },
270
+ abrupt: function (type, arg) {
271
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
272
+ var entry = this.tryEntries[i];
273
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
274
+ var finallyEntry = entry;
275
+ break;
276
+ }
277
+ }
278
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
279
+ var record = finallyEntry ? finallyEntry.completion : {};
280
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
281
+ },
282
+ complete: function (record, afterLoc) {
283
+ if ("throw" === record.type) throw record.arg;
284
+ 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;
285
+ },
286
+ finish: function (finallyLoc) {
287
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
288
+ var entry = this.tryEntries[i];
289
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
290
+ }
291
+ },
292
+ catch: function (tryLoc) {
293
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
294
+ var entry = this.tryEntries[i];
295
+ if (entry.tryLoc === tryLoc) {
296
+ var record = entry.completion;
297
+ if ("throw" === record.type) {
298
+ var thrown = record.arg;
299
+ resetTryEntry(entry);
300
+ }
301
+ return thrown;
302
+ }
303
+ }
304
+ throw new Error("illegal catch attempt");
305
+ },
306
+ delegateYield: function (iterable, resultName, nextLoc) {
307
+ return this.delegate = {
308
+ iterator: values(iterable),
309
+ resultName: resultName,
310
+ nextLoc: nextLoc
311
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
312
+ }
313
+ }, exports;
314
+ }
315
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
316
+ try {
317
+ var info = gen[key](arg);
318
+ var value = info.value;
319
+ } catch (error) {
320
+ reject(error);
321
+ return;
322
+ }
323
+ if (info.done) {
324
+ resolve(value);
325
+ } else {
326
+ Promise.resolve(value).then(_next, _throw);
327
+ }
328
+ }
329
+ function _asyncToGenerator(fn) {
330
+ return function () {
331
+ var self = this,
332
+ args = arguments;
333
+ return new Promise(function (resolve, reject) {
334
+ var gen = fn.apply(self, args);
335
+ function _next(value) {
336
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
337
+ }
338
+ function _throw(err) {
339
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
340
+ }
341
+ _next(undefined);
342
+ });
343
+ };
344
+ }
345
+
346
+ var ceil = Math.ceil;
347
+ var floor = Math.floor;
348
+ var _toInteger = function (it) {
349
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
350
+ };
351
+
352
+ var _defined = function (it) {
353
+ if (it == undefined) throw TypeError("Can't call method on " + it);
354
+ return it;
355
+ };
356
+
357
+ var _stringAt = function (TO_STRING) {
358
+ return function (that, pos) {
359
+ var s = String(_defined(that));
360
+ var i = _toInteger(pos);
361
+ var l = s.length;
362
+ var a, b;
363
+ if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
364
+ a = s.charCodeAt(i);
365
+ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
366
+ ? TO_STRING ? s.charAt(i) : a
367
+ : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
368
+ };
369
+ };
370
+
371
+ var _library = true;
372
+
373
+ function createCommonjsModule(fn, module) {
374
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
375
+ }
376
+
377
+ var _global = createCommonjsModule(function (module) {
378
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math
379
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
380
+ : Function('return this')();
381
+ if (typeof __g == 'number') __g = global;
382
+ });
383
+
384
+ var _core = createCommonjsModule(function (module) {
385
+ var core = module.exports = { version: '2.6.12' };
386
+ if (typeof __e == 'number') __e = core;
387
+ });
388
+ var _core_1 = _core.version;
389
+
390
+ var _aFunction = function (it) {
391
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
392
+ return it;
393
+ };
394
+
395
+ var _ctx = function (fn, that, length) {
396
+ _aFunction(fn);
397
+ if (that === undefined) return fn;
398
+ switch (length) {
399
+ case 1: return function (a) {
400
+ return fn.call(that, a);
401
+ };
402
+ case 2: return function (a, b) {
403
+ return fn.call(that, a, b);
404
+ };
405
+ case 3: return function (a, b, c) {
406
+ return fn.call(that, a, b, c);
407
+ };
408
+ }
409
+ return function () {
410
+ return fn.apply(that, arguments);
411
+ };
412
+ };
413
+
414
+ var _isObject = function (it) {
415
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
416
+ };
417
+
418
+ var _anObject = function (it) {
419
+ if (!_isObject(it)) throw TypeError(it + ' is not an object!');
420
+ return it;
421
+ };
422
+
423
+ var _fails = function (exec) {
424
+ try {
425
+ return !!exec();
426
+ } catch (e) {
427
+ return true;
428
+ }
429
+ };
430
+
431
+ var _descriptors = !_fails(function () {
432
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
433
+ });
434
+
435
+ var document$1 = _global.document;
436
+ var is = _isObject(document$1) && _isObject(document$1.createElement);
437
+ var _domCreate = function (it) {
438
+ return is ? document$1.createElement(it) : {};
439
+ };
440
+
441
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
442
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
443
+ });
444
+
445
+ var _toPrimitive = function (it, S) {
446
+ if (!_isObject(it)) return it;
447
+ var fn, val;
448
+ if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
449
+ if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
450
+ if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
451
+ throw TypeError("Can't convert object to primitive value");
452
+ };
453
+
454
+ var dP = Object.defineProperty;
455
+ var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
456
+ _anObject(O);
457
+ P = _toPrimitive(P, true);
458
+ _anObject(Attributes);
459
+ if (_ie8DomDefine) try {
460
+ return dP(O, P, Attributes);
461
+ } catch (e) { }
462
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
463
+ if ('value' in Attributes) O[P] = Attributes.value;
464
+ return O;
465
+ };
466
+ var _objectDp = {
467
+ f: f
468
+ };
469
+
470
+ var _propertyDesc = function (bitmap, value) {
471
+ return {
472
+ enumerable: !(bitmap & 1),
473
+ configurable: !(bitmap & 2),
474
+ writable: !(bitmap & 4),
475
+ value: value
476
+ };
477
+ };
478
+
479
+ var _hide = _descriptors ? function (object, key, value) {
480
+ return _objectDp.f(object, key, _propertyDesc(1, value));
481
+ } : function (object, key, value) {
482
+ object[key] = value;
483
+ return object;
484
+ };
485
+
486
+ var hasOwnProperty = {}.hasOwnProperty;
487
+ var _has = function (it, key) {
488
+ return hasOwnProperty.call(it, key);
489
+ };
490
+
491
+ var PROTOTYPE = 'prototype';
492
+ var $export = function (type, name, source) {
493
+ var IS_FORCED = type & $export.F;
494
+ var IS_GLOBAL = type & $export.G;
495
+ var IS_STATIC = type & $export.S;
496
+ var IS_PROTO = type & $export.P;
497
+ var IS_BIND = type & $export.B;
498
+ var IS_WRAP = type & $export.W;
499
+ var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
500
+ var expProto = exports[PROTOTYPE];
501
+ var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
502
+ var key, own, out;
503
+ if (IS_GLOBAL) source = name;
504
+ for (key in source) {
505
+ own = !IS_FORCED && target && target[key] !== undefined;
506
+ if (own && _has(exports, key)) continue;
507
+ out = own ? target[key] : source[key];
508
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
509
+ : IS_BIND && own ? _ctx(out, _global)
510
+ : IS_WRAP && target[key] == out ? (function (C) {
511
+ var F = function (a, b, c) {
512
+ if (this instanceof C) {
513
+ switch (arguments.length) {
514
+ case 0: return new C();
515
+ case 1: return new C(a);
516
+ case 2: return new C(a, b);
517
+ } return new C(a, b, c);
518
+ } return C.apply(this, arguments);
519
+ };
520
+ F[PROTOTYPE] = C[PROTOTYPE];
521
+ return F;
522
+ })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
523
+ if (IS_PROTO) {
524
+ (exports.virtual || (exports.virtual = {}))[key] = out;
525
+ if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
526
+ }
527
+ }
528
+ };
529
+ $export.F = 1;
530
+ $export.G = 2;
531
+ $export.S = 4;
532
+ $export.P = 8;
533
+ $export.B = 16;
534
+ $export.W = 32;
535
+ $export.U = 64;
536
+ $export.R = 128;
537
+ var _export = $export;
538
+
539
+ var _redefine = _hide;
540
+
541
+ var _iterators = {};
542
+
543
+ var toString = {}.toString;
544
+ var _cof = function (it) {
545
+ return toString.call(it).slice(8, -1);
546
+ };
547
+
548
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
549
+ return _cof(it) == 'String' ? it.split('') : Object(it);
550
+ };
551
+
552
+ var _toIobject = function (it) {
553
+ return _iobject(_defined(it));
554
+ };
555
+
556
+ var min = Math.min;
557
+ var _toLength = function (it) {
558
+ return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
559
+ };
560
+
561
+ var max = Math.max;
562
+ var min$1 = Math.min;
563
+ var _toAbsoluteIndex = function (index, length) {
564
+ index = _toInteger(index);
565
+ return index < 0 ? max(index + length, 0) : min$1(index, length);
566
+ };
567
+
568
+ var _arrayIncludes = function (IS_INCLUDES) {
569
+ return function ($this, el, fromIndex) {
570
+ var O = _toIobject($this);
571
+ var length = _toLength(O.length);
572
+ var index = _toAbsoluteIndex(fromIndex, length);
573
+ var value;
574
+ if (IS_INCLUDES && el != el) while (length > index) {
575
+ value = O[index++];
576
+ if (value != value) return true;
577
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
578
+ if (O[index] === el) return IS_INCLUDES || index || 0;
579
+ } return !IS_INCLUDES && -1;
580
+ };
581
+ };
582
+
583
+ var _shared = createCommonjsModule(function (module) {
584
+ var SHARED = '__core-js_shared__';
585
+ var store = _global[SHARED] || (_global[SHARED] = {});
586
+ (module.exports = function (key, value) {
587
+ return store[key] || (store[key] = value !== undefined ? value : {});
588
+ })('versions', []).push({
589
+ version: _core.version,
590
+ mode: 'pure' ,
591
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
592
+ });
593
+ });
594
+
595
+ var id = 0;
596
+ var px = Math.random();
597
+ var _uid = function (key) {
598
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
599
+ };
600
+
601
+ var shared = _shared('keys');
602
+ var _sharedKey = function (key) {
603
+ return shared[key] || (shared[key] = _uid(key));
604
+ };
605
+
606
+ var arrayIndexOf = _arrayIncludes(false);
607
+ var IE_PROTO = _sharedKey('IE_PROTO');
608
+ var _objectKeysInternal = function (object, names) {
609
+ var O = _toIobject(object);
610
+ var i = 0;
611
+ var result = [];
612
+ var key;
613
+ for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
614
+ while (names.length > i) if (_has(O, key = names[i++])) {
615
+ ~arrayIndexOf(result, key) || result.push(key);
616
+ }
617
+ return result;
618
+ };
619
+
620
+ var _enumBugKeys = (
621
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
622
+ ).split(',');
623
+
624
+ var _objectKeys = Object.keys || function keys(O) {
625
+ return _objectKeysInternal(O, _enumBugKeys);
626
+ };
627
+
628
+ var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
629
+ _anObject(O);
630
+ var keys = _objectKeys(Properties);
631
+ var length = keys.length;
632
+ var i = 0;
633
+ var P;
634
+ while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]);
635
+ return O;
636
+ };
637
+
638
+ var document$2 = _global.document;
639
+ var _html = document$2 && document$2.documentElement;
640
+
641
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
642
+ var Empty = function () { };
643
+ var PROTOTYPE$1 = 'prototype';
644
+ var createDict = function () {
645
+ var iframe = _domCreate('iframe');
646
+ var i = _enumBugKeys.length;
647
+ var lt = '<';
648
+ var gt = '>';
649
+ var iframeDocument;
650
+ iframe.style.display = 'none';
651
+ _html.appendChild(iframe);
652
+ iframe.src = 'javascript:';
653
+ iframeDocument = iframe.contentWindow.document;
654
+ iframeDocument.open();
655
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
656
+ iframeDocument.close();
657
+ createDict = iframeDocument.F;
658
+ while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]];
659
+ return createDict();
660
+ };
661
+ var _objectCreate = Object.create || function create(O, Properties) {
662
+ var result;
663
+ if (O !== null) {
664
+ Empty[PROTOTYPE$1] = _anObject(O);
665
+ result = new Empty();
666
+ Empty[PROTOTYPE$1] = null;
667
+ result[IE_PROTO$1] = O;
668
+ } else result = createDict();
669
+ return Properties === undefined ? result : _objectDps(result, Properties);
670
+ };
671
+
672
+ var _wks = createCommonjsModule(function (module) {
673
+ var store = _shared('wks');
674
+ var Symbol = _global.Symbol;
675
+ var USE_SYMBOL = typeof Symbol == 'function';
676
+ var $exports = module.exports = function (name) {
677
+ return store[name] || (store[name] =
678
+ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));
679
+ };
680
+ $exports.store = store;
681
+ });
682
+
683
+ var def = _objectDp.f;
684
+ var TAG = _wks('toStringTag');
685
+ var _setToStringTag = function (it, tag, stat) {
686
+ if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
687
+ };
688
+
689
+ var IteratorPrototype = {};
690
+ _hide(IteratorPrototype, _wks('iterator'), function () { return this; });
691
+ var _iterCreate = function (Constructor, NAME, next) {
692
+ Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) });
693
+ _setToStringTag(Constructor, NAME + ' Iterator');
694
+ };
695
+
696
+ var _toObject = function (it) {
697
+ return Object(_defined(it));
698
+ };
699
+
700
+ var IE_PROTO$2 = _sharedKey('IE_PROTO');
701
+ var ObjectProto = Object.prototype;
702
+ var _objectGpo = Object.getPrototypeOf || function (O) {
703
+ O = _toObject(O);
704
+ if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];
705
+ if (typeof O.constructor == 'function' && O instanceof O.constructor) {
706
+ return O.constructor.prototype;
707
+ } return O instanceof Object ? ObjectProto : null;
708
+ };
709
+
710
+ var ITERATOR = _wks('iterator');
711
+ var BUGGY = !([].keys && 'next' in [].keys());
712
+ var FF_ITERATOR = '@@iterator';
713
+ var KEYS = 'keys';
714
+ var VALUES = 'values';
715
+ var returnThis = function () { return this; };
716
+ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
717
+ _iterCreate(Constructor, NAME, next);
718
+ var getMethod = function (kind) {
719
+ if (!BUGGY && kind in proto) return proto[kind];
720
+ switch (kind) {
721
+ case KEYS: return function keys() { return new Constructor(this, kind); };
722
+ case VALUES: return function values() { return new Constructor(this, kind); };
723
+ } return function entries() { return new Constructor(this, kind); };
724
+ };
725
+ var TAG = NAME + ' Iterator';
726
+ var DEF_VALUES = DEFAULT == VALUES;
727
+ var VALUES_BUG = false;
728
+ var proto = Base.prototype;
729
+ var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
730
+ var $default = $native || getMethod(DEFAULT);
731
+ var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
732
+ var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
733
+ var methods, key, IteratorPrototype;
734
+ if ($anyNative) {
735
+ IteratorPrototype = _objectGpo($anyNative.call(new Base()));
736
+ if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
737
+ _setToStringTag(IteratorPrototype, TAG, true);
738
+ }
739
+ }
740
+ if (DEF_VALUES && $native && $native.name !== VALUES) {
741
+ VALUES_BUG = true;
742
+ $default = function values() { return $native.call(this); };
743
+ }
744
+ if (( FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
745
+ _hide(proto, ITERATOR, $default);
746
+ }
747
+ _iterators[NAME] = $default;
748
+ _iterators[TAG] = returnThis;
749
+ if (DEFAULT) {
750
+ methods = {
751
+ values: DEF_VALUES ? $default : getMethod(VALUES),
752
+ keys: IS_SET ? $default : getMethod(KEYS),
753
+ entries: $entries
754
+ };
755
+ if (FORCED) for (key in methods) {
756
+ if (!(key in proto)) _redefine(proto, key, methods[key]);
757
+ } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
758
+ }
759
+ return methods;
760
+ };
761
+
762
+ var $at = _stringAt(true);
763
+ _iterDefine(String, 'String', function (iterated) {
764
+ this._t = String(iterated);
765
+ this._i = 0;
766
+ }, function () {
767
+ var O = this._t;
768
+ var index = this._i;
769
+ var point;
770
+ if (index >= O.length) return { value: undefined, done: true };
771
+ point = $at(O, index);
772
+ this._i += point.length;
773
+ return { value: point, done: false };
774
+ });
775
+
776
+ var _iterStep = function (done, value) {
777
+ return { value: value, done: !!done };
778
+ };
779
+
780
+ var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
781
+ this._t = _toIobject(iterated);
782
+ this._i = 0;
783
+ this._k = kind;
784
+ }, function () {
785
+ var O = this._t;
786
+ var kind = this._k;
787
+ var index = this._i++;
788
+ if (!O || index >= O.length) {
789
+ this._t = undefined;
790
+ return _iterStep(1);
791
+ }
792
+ if (kind == 'keys') return _iterStep(0, index);
793
+ if (kind == 'values') return _iterStep(0, O[index]);
794
+ return _iterStep(0, [index, O[index]]);
795
+ }, 'values');
796
+ _iterators.Arguments = _iterators.Array;
797
+
798
+ var TO_STRING_TAG = _wks('toStringTag');
799
+ var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
800
+ 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
801
+ 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
802
+ 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
803
+ 'TextTrackList,TouchList').split(',');
804
+ for (var i = 0; i < DOMIterables.length; i++) {
805
+ var NAME = DOMIterables[i];
806
+ var Collection = _global[NAME];
807
+ var proto = Collection && Collection.prototype;
808
+ if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
809
+ _iterators[NAME] = _iterators.Array;
810
+ }
811
+
812
+ var TAG$1 = _wks('toStringTag');
813
+ var ARG = _cof(function () { return arguments; }()) == 'Arguments';
814
+ var tryGet = function (it, key) {
815
+ try {
816
+ return it[key];
817
+ } catch (e) { }
818
+ };
819
+ var _classof = function (it) {
820
+ var O, T, B;
821
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
822
+ : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
823
+ : ARG ? _cof(O)
824
+ : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
825
+ };
826
+
827
+ var _anInstance = function (it, Constructor, name, forbiddenField) {
828
+ if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
829
+ throw TypeError(name + ': incorrect invocation!');
830
+ } return it;
831
+ };
832
+
833
+ var _iterCall = function (iterator, fn, value, entries) {
834
+ try {
835
+ return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
836
+ } catch (e) {
837
+ var ret = iterator['return'];
838
+ if (ret !== undefined) _anObject(ret.call(iterator));
839
+ throw e;
840
+ }
841
+ };
842
+
843
+ var ITERATOR$1 = _wks('iterator');
844
+ var ArrayProto = Array.prototype;
845
+ var _isArrayIter = function (it) {
846
+ return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR$1] === it);
847
+ };
848
+
849
+ var ITERATOR$2 = _wks('iterator');
850
+ var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
851
+ if (it != undefined) return it[ITERATOR$2]
852
+ || it['@@iterator']
853
+ || _iterators[_classof(it)];
854
+ };
855
+
856
+ var _forOf = createCommonjsModule(function (module) {
857
+ var BREAK = {};
858
+ var RETURN = {};
859
+ var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
860
+ var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
861
+ var f = _ctx(fn, that, entries ? 2 : 1);
862
+ var index = 0;
863
+ var length, step, iterator, result;
864
+ if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
865
+ if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
866
+ result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
867
+ if (result === BREAK || result === RETURN) return result;
868
+ } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
869
+ result = _iterCall(iterator, f, step.value, entries);
870
+ if (result === BREAK || result === RETURN) return result;
871
+ }
872
+ };
873
+ exports.BREAK = BREAK;
874
+ exports.RETURN = RETURN;
875
+ });
876
+
877
+ var SPECIES = _wks('species');
878
+ var _speciesConstructor = function (O, D) {
879
+ var C = _anObject(O).constructor;
880
+ var S;
881
+ return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
882
+ };
883
+
884
+ var _invoke = function (fn, args, that) {
885
+ var un = that === undefined;
886
+ switch (args.length) {
887
+ case 0: return un ? fn()
888
+ : fn.call(that);
889
+ case 1: return un ? fn(args[0])
890
+ : fn.call(that, args[0]);
891
+ case 2: return un ? fn(args[0], args[1])
892
+ : fn.call(that, args[0], args[1]);
893
+ case 3: return un ? fn(args[0], args[1], args[2])
894
+ : fn.call(that, args[0], args[1], args[2]);
895
+ case 4: return un ? fn(args[0], args[1], args[2], args[3])
896
+ : fn.call(that, args[0], args[1], args[2], args[3]);
897
+ } return fn.apply(that, args);
898
+ };
899
+
900
+ var process = _global.process;
901
+ var setTask = _global.setImmediate;
902
+ var clearTask = _global.clearImmediate;
903
+ var MessageChannel = _global.MessageChannel;
904
+ var Dispatch = _global.Dispatch;
905
+ var counter = 0;
906
+ var queue = {};
907
+ var ONREADYSTATECHANGE = 'onreadystatechange';
908
+ var defer, channel, port;
909
+ var run = function () {
910
+ var id = +this;
911
+ if (queue.hasOwnProperty(id)) {
912
+ var fn = queue[id];
913
+ delete queue[id];
914
+ fn();
915
+ }
916
+ };
917
+ var listener = function (event) {
918
+ run.call(event.data);
919
+ };
920
+ if (!setTask || !clearTask) {
921
+ setTask = function setImmediate(fn) {
922
+ var args = [];
923
+ var i = 1;
924
+ while (arguments.length > i) args.push(arguments[i++]);
925
+ queue[++counter] = function () {
926
+ _invoke(typeof fn == 'function' ? fn : Function(fn), args);
927
+ };
928
+ defer(counter);
929
+ return counter;
930
+ };
931
+ clearTask = function clearImmediate(id) {
932
+ delete queue[id];
933
+ };
934
+ if (_cof(process) == 'process') {
935
+ defer = function (id) {
936
+ process.nextTick(_ctx(run, id, 1));
937
+ };
938
+ } else if (Dispatch && Dispatch.now) {
939
+ defer = function (id) {
940
+ Dispatch.now(_ctx(run, id, 1));
941
+ };
942
+ } else if (MessageChannel) {
943
+ channel = new MessageChannel();
944
+ port = channel.port2;
945
+ channel.port1.onmessage = listener;
946
+ defer = _ctx(port.postMessage, port, 1);
947
+ } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
948
+ defer = function (id) {
949
+ _global.postMessage(id + '', '*');
950
+ };
951
+ _global.addEventListener('message', listener, false);
952
+ } else if (ONREADYSTATECHANGE in _domCreate('script')) {
953
+ defer = function (id) {
954
+ _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
955
+ _html.removeChild(this);
956
+ run.call(id);
957
+ };
958
+ };
959
+ } else {
960
+ defer = function (id) {
961
+ setTimeout(_ctx(run, id, 1), 0);
962
+ };
963
+ }
964
+ }
965
+ var _task = {
966
+ set: setTask,
967
+ clear: clearTask
968
+ };
969
+
970
+ var macrotask = _task.set;
971
+ var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
972
+ var process$1 = _global.process;
973
+ var Promise$1 = _global.Promise;
974
+ var isNode = _cof(process$1) == 'process';
975
+ var _microtask = function () {
976
+ var head, last, notify;
977
+ var flush = function () {
978
+ var parent, fn;
979
+ if (isNode && (parent = process$1.domain)) parent.exit();
980
+ while (head) {
981
+ fn = head.fn;
982
+ head = head.next;
983
+ try {
984
+ fn();
985
+ } catch (e) {
986
+ if (head) notify();
987
+ else last = undefined;
988
+ throw e;
989
+ }
990
+ } last = undefined;
991
+ if (parent) parent.enter();
992
+ };
993
+ if (isNode) {
994
+ notify = function () {
995
+ process$1.nextTick(flush);
996
+ };
997
+ } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
998
+ var toggle = true;
999
+ var node = document.createTextNode('');
1000
+ new Observer(flush).observe(node, { characterData: true });
1001
+ notify = function () {
1002
+ node.data = toggle = !toggle;
1003
+ };
1004
+ } else if (Promise$1 && Promise$1.resolve) {
1005
+ var promise = Promise$1.resolve(undefined);
1006
+ notify = function () {
1007
+ promise.then(flush);
1008
+ };
1009
+ } else {
1010
+ notify = function () {
1011
+ macrotask.call(_global, flush);
1012
+ };
1013
+ }
1014
+ return function (fn) {
1015
+ var task = { fn: fn, next: undefined };
1016
+ if (last) last.next = task;
1017
+ if (!head) {
1018
+ head = task;
1019
+ notify();
1020
+ } last = task;
1021
+ };
1022
+ };
1023
+
1024
+ function PromiseCapability(C) {
1025
+ var resolve, reject;
1026
+ this.promise = new C(function ($$resolve, $$reject) {
1027
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1028
+ resolve = $$resolve;
1029
+ reject = $$reject;
1030
+ });
1031
+ this.resolve = _aFunction(resolve);
1032
+ this.reject = _aFunction(reject);
1033
+ }
1034
+ var f$1 = function (C) {
1035
+ return new PromiseCapability(C);
1036
+ };
1037
+ var _newPromiseCapability = {
1038
+ f: f$1
1039
+ };
1040
+
1041
+ var _perform = function (exec) {
1042
+ try {
1043
+ return { e: false, v: exec() };
1044
+ } catch (e) {
1045
+ return { e: true, v: e };
1046
+ }
1047
+ };
1048
+
1049
+ var navigator = _global.navigator;
1050
+ var _userAgent = navigator && navigator.userAgent || '';
1051
+
1052
+ var _promiseResolve = function (C, x) {
1053
+ _anObject(C);
1054
+ if (_isObject(x) && x.constructor === C) return x;
1055
+ var promiseCapability = _newPromiseCapability.f(C);
1056
+ var resolve = promiseCapability.resolve;
1057
+ resolve(x);
1058
+ return promiseCapability.promise;
1059
+ };
1060
+
1061
+ var _redefineAll = function (target, src, safe) {
1062
+ for (var key in src) {
1063
+ if (safe && target[key]) target[key] = src[key];
1064
+ else _hide(target, key, src[key]);
1065
+ } return target;
1066
+ };
1067
+
1068
+ var SPECIES$1 = _wks('species');
1069
+ var _setSpecies = function (KEY) {
1070
+ var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
1071
+ if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
1072
+ configurable: true,
1073
+ get: function () { return this; }
1074
+ });
1075
+ };
1076
+
1077
+ var ITERATOR$3 = _wks('iterator');
1078
+ var SAFE_CLOSING = false;
1079
+ try {
1080
+ var riter = [7][ITERATOR$3]();
1081
+ riter['return'] = function () { SAFE_CLOSING = true; };
1082
+ Array.from(riter, function () { throw 2; });
1083
+ } catch (e) { }
1084
+ var _iterDetect = function (exec, skipClosing) {
1085
+ if (!skipClosing && !SAFE_CLOSING) return false;
1086
+ var safe = false;
1087
+ try {
1088
+ var arr = [7];
1089
+ var iter = arr[ITERATOR$3]();
1090
+ iter.next = function () { return { done: safe = true }; };
1091
+ arr[ITERATOR$3] = function () { return iter; };
1092
+ exec(arr);
1093
+ } catch (e) { }
1094
+ return safe;
1095
+ };
1096
+
1097
+ var task = _task.set;
1098
+ var microtask = _microtask();
1099
+ var PROMISE = 'Promise';
1100
+ var TypeError$1 = _global.TypeError;
1101
+ var process$2 = _global.process;
1102
+ var versions = process$2 && process$2.versions;
1103
+ var v8 = versions && versions.v8 || '';
1104
+ var $Promise = _global[PROMISE];
1105
+ var isNode$1 = _classof(process$2) == 'process';
1106
+ var empty = function () { };
1107
+ var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
1108
+ var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
1109
+ var USE_NATIVE = !!function () {
1110
+ try {
1111
+ var promise = $Promise.resolve(1);
1112
+ var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
1113
+ exec(empty, empty);
1114
+ };
1115
+ return (isNode$1 || typeof PromiseRejectionEvent == 'function')
1116
+ && promise.then(empty) instanceof FakePromise
1117
+ && v8.indexOf('6.6') !== 0
1118
+ && _userAgent.indexOf('Chrome/66') === -1;
1119
+ } catch (e) { }
1120
+ }();
1121
+ var isThenable = function (it) {
1122
+ var then;
1123
+ return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
1124
+ };
1125
+ var notify = function (promise, isReject) {
1126
+ if (promise._n) return;
1127
+ promise._n = true;
1128
+ var chain = promise._c;
1129
+ microtask(function () {
1130
+ var value = promise._v;
1131
+ var ok = promise._s == 1;
1132
+ var i = 0;
1133
+ var run = function (reaction) {
1134
+ var handler = ok ? reaction.ok : reaction.fail;
1135
+ var resolve = reaction.resolve;
1136
+ var reject = reaction.reject;
1137
+ var domain = reaction.domain;
1138
+ var result, then, exited;
1139
+ try {
1140
+ if (handler) {
1141
+ if (!ok) {
1142
+ if (promise._h == 2) onHandleUnhandled(promise);
1143
+ promise._h = 1;
1144
+ }
1145
+ if (handler === true) result = value;
1146
+ else {
1147
+ if (domain) domain.enter();
1148
+ result = handler(value);
1149
+ if (domain) {
1150
+ domain.exit();
1151
+ exited = true;
1152
+ }
1153
+ }
1154
+ if (result === reaction.promise) {
1155
+ reject(TypeError$1('Promise-chain cycle'));
1156
+ } else if (then = isThenable(result)) {
1157
+ then.call(result, resolve, reject);
1158
+ } else resolve(result);
1159
+ } else reject(value);
1160
+ } catch (e) {
1161
+ if (domain && !exited) domain.exit();
1162
+ reject(e);
1163
+ }
1164
+ };
1165
+ while (chain.length > i) run(chain[i++]);
1166
+ promise._c = [];
1167
+ promise._n = false;
1168
+ if (isReject && !promise._h) onUnhandled(promise);
1169
+ });
1170
+ };
1171
+ var onUnhandled = function (promise) {
1172
+ task.call(_global, function () {
1173
+ var value = promise._v;
1174
+ var unhandled = isUnhandled(promise);
1175
+ var result, handler, console;
1176
+ if (unhandled) {
1177
+ result = _perform(function () {
1178
+ if (isNode$1) {
1179
+ process$2.emit('unhandledRejection', value, promise);
1180
+ } else if (handler = _global.onunhandledrejection) {
1181
+ handler({ promise: promise, reason: value });
1182
+ } else if ((console = _global.console) && console.error) {
1183
+ console.error('Unhandled promise rejection', value);
1184
+ }
1185
+ });
1186
+ promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1;
1187
+ } promise._a = undefined;
1188
+ if (unhandled && result.e) throw result.v;
1189
+ });
1190
+ };
1191
+ var isUnhandled = function (promise) {
1192
+ return promise._h !== 1 && (promise._a || promise._c).length === 0;
1193
+ };
1194
+ var onHandleUnhandled = function (promise) {
1195
+ task.call(_global, function () {
1196
+ var handler;
1197
+ if (isNode$1) {
1198
+ process$2.emit('rejectionHandled', promise);
1199
+ } else if (handler = _global.onrejectionhandled) {
1200
+ handler({ promise: promise, reason: promise._v });
1201
+ }
1202
+ });
1203
+ };
1204
+ var $reject = function (value) {
1205
+ var promise = this;
1206
+ if (promise._d) return;
1207
+ promise._d = true;
1208
+ promise = promise._w || promise;
1209
+ promise._v = value;
1210
+ promise._s = 2;
1211
+ if (!promise._a) promise._a = promise._c.slice();
1212
+ notify(promise, true);
1213
+ };
1214
+ var $resolve = function (value) {
1215
+ var promise = this;
1216
+ var then;
1217
+ if (promise._d) return;
1218
+ promise._d = true;
1219
+ promise = promise._w || promise;
1220
+ try {
1221
+ if (promise === value) throw TypeError$1("Promise can't be resolved itself");
1222
+ if (then = isThenable(value)) {
1223
+ microtask(function () {
1224
+ var wrapper = { _w: promise, _d: false };
1225
+ try {
1226
+ then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
1227
+ } catch (e) {
1228
+ $reject.call(wrapper, e);
1229
+ }
1230
+ });
1231
+ } else {
1232
+ promise._v = value;
1233
+ promise._s = 1;
1234
+ notify(promise, false);
1235
+ }
1236
+ } catch (e) {
1237
+ $reject.call({ _w: promise, _d: false }, e);
1238
+ }
1239
+ };
1240
+ if (!USE_NATIVE) {
1241
+ $Promise = function Promise(executor) {
1242
+ _anInstance(this, $Promise, PROMISE, '_h');
1243
+ _aFunction(executor);
1244
+ Internal.call(this);
1245
+ try {
1246
+ executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
1247
+ } catch (err) {
1248
+ $reject.call(this, err);
1249
+ }
1250
+ };
1251
+ Internal = function Promise(executor) {
1252
+ this._c = [];
1253
+ this._a = undefined;
1254
+ this._s = 0;
1255
+ this._d = false;
1256
+ this._v = undefined;
1257
+ this._h = 0;
1258
+ this._n = false;
1259
+ };
1260
+ Internal.prototype = _redefineAll($Promise.prototype, {
1261
+ then: function then(onFulfilled, onRejected) {
1262
+ var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
1263
+ reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
1264
+ reaction.fail = typeof onRejected == 'function' && onRejected;
1265
+ reaction.domain = isNode$1 ? process$2.domain : undefined;
1266
+ this._c.push(reaction);
1267
+ if (this._a) this._a.push(reaction);
1268
+ if (this._s) notify(this, false);
1269
+ return reaction.promise;
1270
+ },
1271
+ 'catch': function (onRejected) {
1272
+ return this.then(undefined, onRejected);
1273
+ }
1274
+ });
1275
+ OwnPromiseCapability = function () {
1276
+ var promise = new Internal();
1277
+ this.promise = promise;
1278
+ this.resolve = _ctx($resolve, promise, 1);
1279
+ this.reject = _ctx($reject, promise, 1);
1280
+ };
1281
+ _newPromiseCapability.f = newPromiseCapability = function (C) {
1282
+ return C === $Promise || C === Wrapper
1283
+ ? new OwnPromiseCapability(C)
1284
+ : newGenericPromiseCapability(C);
1285
+ };
1286
+ }
1287
+ _export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
1288
+ _setToStringTag($Promise, PROMISE);
1289
+ _setSpecies(PROMISE);
1290
+ Wrapper = _core[PROMISE];
1291
+ _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
1292
+ reject: function reject(r) {
1293
+ var capability = newPromiseCapability(this);
1294
+ var $$reject = capability.reject;
1295
+ $$reject(r);
1296
+ return capability.promise;
1297
+ }
1298
+ });
1299
+ _export(_export.S + _export.F * (_library ), PROMISE, {
1300
+ resolve: function resolve(x) {
1301
+ return _promiseResolve( this === Wrapper ? $Promise : this, x);
1302
+ }
1303
+ });
1304
+ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
1305
+ $Promise.all(iter)['catch'](empty);
1306
+ })), PROMISE, {
1307
+ all: function all(iterable) {
1308
+ var C = this;
1309
+ var capability = newPromiseCapability(C);
1310
+ var resolve = capability.resolve;
1311
+ var reject = capability.reject;
1312
+ var result = _perform(function () {
1313
+ var values = [];
1314
+ var index = 0;
1315
+ var remaining = 1;
1316
+ _forOf(iterable, false, function (promise) {
1317
+ var $index = index++;
1318
+ var alreadyCalled = false;
1319
+ values.push(undefined);
1320
+ remaining++;
1321
+ C.resolve(promise).then(function (value) {
1322
+ if (alreadyCalled) return;
1323
+ alreadyCalled = true;
1324
+ values[$index] = value;
1325
+ --remaining || resolve(values);
1326
+ }, reject);
1327
+ });
1328
+ --remaining || resolve(values);
1329
+ });
1330
+ if (result.e) reject(result.v);
1331
+ return capability.promise;
1332
+ },
1333
+ race: function race(iterable) {
1334
+ var C = this;
1335
+ var capability = newPromiseCapability(C);
1336
+ var reject = capability.reject;
1337
+ var result = _perform(function () {
1338
+ _forOf(iterable, false, function (promise) {
1339
+ C.resolve(promise).then(capability.resolve, reject);
1340
+ });
1341
+ });
1342
+ if (result.e) reject(result.v);
1343
+ return capability.promise;
1344
+ }
1345
+ });
1346
+
1347
+ _export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) {
1348
+ var C = _speciesConstructor(this, _core.Promise || _global.Promise);
1349
+ var isFunction = typeof onFinally == 'function';
1350
+ return this.then(
1351
+ isFunction ? function (x) {
1352
+ return _promiseResolve(C, onFinally()).then(function () { return x; });
1353
+ } : onFinally,
1354
+ isFunction ? function (e) {
1355
+ return _promiseResolve(C, onFinally()).then(function () { throw e; });
1356
+ } : onFinally
1357
+ );
1358
+ } });
1359
+
1360
+ _export(_export.S, 'Promise', { 'try': function (callbackfn) {
1361
+ var promiseCapability = _newPromiseCapability.f(this);
1362
+ var result = _perform(callbackfn);
1363
+ (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
1364
+ return promiseCapability.promise;
1365
+ } });
1366
+
1367
+ var promise = _core.Promise;
1368
+
1369
+ var promise$1 = promise;
1370
+
1371
+ var script = {
1372
+ name: 'bk-steps',
1373
+ mixins: [locale.mixin],
1374
+ props: {
1375
+ steps: {
1376
+ type: Array,
1377
+ default: function _default() {
1378
+ return [];
1379
+ }
1380
+ },
1381
+ curStep: {
1382
+ type: Number,
1383
+ default: 1
1384
+ },
1385
+ controllable: {
1386
+ type: Boolean,
1387
+ default: false
1388
+ },
1389
+ direction: {
1390
+ type: String,
1391
+ default: 'horizontal',
1392
+ validator: function validator(val) {
1393
+ return ['horizontal', 'vertical'].includes(val);
1394
+ }
1395
+ },
1396
+ status: {
1397
+ type: String,
1398
+ default: '',
1399
+ validator: function validator(val) {
1400
+ return ['', 'error', 'loading'].includes(val);
1401
+ }
1402
+ },
1403
+ lineType: {
1404
+ type: String,
1405
+ default: 'dashed',
1406
+ validator: function validator(val) {
1407
+ return ['dashed', 'solid'].includes(val);
1408
+ }
1409
+ },
1410
+ size: {
1411
+ type: String,
1412
+ default: '',
1413
+ validator: function validator(val) {
1414
+ return ['', 'small'].includes(val);
1415
+ }
1416
+ },
1417
+ theme: {
1418
+ type: String,
1419
+ default: 'primary'
1420
+ },
1421
+ extCls: {
1422
+ type: String,
1423
+ default: ''
1424
+ },
1425
+ beforeChange: {
1426
+ type: Function,
1427
+ default: null
1428
+ }
1429
+ },
1430
+ data: function data() {
1431
+ return {
1432
+ defaultSteps: [],
1433
+ currentStatus: this.status
1434
+ };
1435
+ },
1436
+ computed: {
1437
+ wrapperCls: function wrapperCls() {
1438
+ var wrapperCls = ['bk-steps', "bk-steps-".concat(this.direction), "bk-steps-".concat(this.lineType), "bk-steps-".concat(this.theme)];
1439
+ if (this.size) {
1440
+ wrapperCls.push("bk-steps-".concat(this.size));
1441
+ }
1442
+ return wrapperCls;
1443
+ }
1444
+ },
1445
+ watch: {
1446
+ status: function status(val) {
1447
+ this.currentStatus = val;
1448
+ },
1449
+ steps: {
1450
+ handler: function handler(val) {
1451
+ this.updateSteps(val);
1452
+ },
1453
+ deep: true
1454
+ }
1455
+ },
1456
+ created: function created() {
1457
+ var _this$defaultSteps;
1458
+ (_this$defaultSteps = this.defaultSteps).splice.apply(_this$defaultSteps, [0, this.defaultSteps.length].concat([{
1459
+ title: this.t('bk.steps.step1'),
1460
+ icon: 1
1461
+ }, {
1462
+ title: this.t('bk.steps.step2'),
1463
+ icon: 2
1464
+ }, {
1465
+ title: this.t('bk.steps.step3'),
1466
+ icon: 3
1467
+ }]));
1468
+ if (this.steps && this.steps.length) {
1469
+ this.updateSteps(this.steps);
1470
+ }
1471
+ },
1472
+ methods: {
1473
+ updateSteps: function updateSteps(steps) {
1474
+ var _this$defaultSteps2;
1475
+ var defaultSteps = [];
1476
+ steps.forEach(function (step) {
1477
+ if (typeof step === 'string') {
1478
+ defaultSteps.push(step);
1479
+ } else {
1480
+ defaultSteps.push({
1481
+ title: step.title,
1482
+ icon: step.icon,
1483
+ description: step.description,
1484
+ status: step.status
1485
+ });
1486
+ }
1487
+ });
1488
+ (_this$defaultSteps2 = this.defaultSteps).splice.apply(_this$defaultSteps2, [0, this.defaultSteps.length].concat(defaultSteps));
1489
+ },
1490
+ iconType: function iconType(step) {
1491
+ var icon = step.icon;
1492
+ if (icon) {
1493
+ return typeof icon === 'string';
1494
+ }
1495
+ return typeof step === 'string';
1496
+ },
1497
+ isIcon: function isIcon(step) {
1498
+ return step.icon ? step.icon : step;
1499
+ },
1500
+ isCurrent: function isCurrent(index) {
1501
+ return this.curStep === index + 1;
1502
+ },
1503
+ isDone: function isDone(index) {
1504
+ return this.curStep > index + 1 || this.defaultSteps[index].status === 'done';
1505
+ },
1506
+ isLoadingStatus: function isLoadingStatus(step) {
1507
+ return step.status === 'loading';
1508
+ },
1509
+ isErrorStatus: function isErrorStatus(step) {
1510
+ return step.status === 'error';
1511
+ },
1512
+ jumpTo: function jumpTo(index) {
1513
+ var _this = this;
1514
+ return _asyncToGenerator( _regeneratorRuntime().mark(function _callee2() {
1515
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1516
+ while (1) {
1517
+ switch (_context2.prev = _context2.next) {
1518
+ case 0:
1519
+ _context2.prev = 0;
1520
+ if (!(_this.controllable && index !== _this.curStep)) {
1521
+ _context2.next = 7;
1522
+ break;
1523
+ }
1524
+ if (!(typeof _this.beforeChange === 'function')) {
1525
+ _context2.next = 5;
1526
+ break;
1527
+ }
1528
+ _context2.next = 5;
1529
+ return new promise$1( function () {
1530
+ var _ref = _asyncToGenerator( _regeneratorRuntime().mark(function _callee(resolve, reject) {
1531
+ var confirmed;
1532
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1533
+ while (1) {
1534
+ switch (_context.prev = _context.next) {
1535
+ case 0:
1536
+ _context.next = 2;
1537
+ return _this.beforeChange(index);
1538
+ case 2:
1539
+ confirmed = _context.sent;
1540
+ confirmed ? resolve(confirmed) : reject(confirmed);
1541
+ case 4:
1542
+ case "end":
1543
+ return _context.stop();
1544
+ }
1545
+ }
1546
+ }, _callee);
1547
+ }));
1548
+ return function (_x, _x2) {
1549
+ return _ref.apply(this, arguments);
1550
+ };
1551
+ }());
1552
+ case 5:
1553
+ _this.$emit('update:curStep', index);
1554
+ _this.$emit('step-changed', index);
1555
+ case 7:
1556
+ _context2.next = 12;
1557
+ break;
1558
+ case 9:
1559
+ _context2.prev = 9;
1560
+ _context2.t0 = _context2["catch"](0);
1561
+ console.warn(_context2.t0);
1562
+ case 12:
1563
+ case "end":
1564
+ return _context2.stop();
1565
+ }
1566
+ }
1567
+ }, _callee2, null, [[0, 9]]);
1568
+ }))();
1569
+ }
1570
+ }
1571
+ };
1572
+
1573
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1574
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1575
+ if (typeof shadowMode !== 'boolean') {
1576
+ createInjectorSSR = createInjector;
1577
+ createInjector = shadowMode;
1578
+ shadowMode = false;
1579
+ }
1580
+ var options = typeof script === 'function' ? script.options : script;
1581
+ if (template && template.render) {
1582
+ options.render = template.render;
1583
+ options.staticRenderFns = template.staticRenderFns;
1584
+ options._compiled = true;
1585
+ if (isFunctionalTemplate) {
1586
+ options.functional = true;
1587
+ }
1588
+ }
1589
+ if (scopeId) {
1590
+ options._scopeId = scopeId;
1591
+ }
1592
+ var hook;
1593
+ if (moduleIdentifier) {
1594
+ hook = function hook(context) {
1595
+ context = context ||
1596
+ this.$vnode && this.$vnode.ssrContext ||
1597
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1598
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1599
+ context = __VUE_SSR_CONTEXT__;
1600
+ }
1601
+ if (style) {
1602
+ style.call(this, createInjectorSSR(context));
1603
+ }
1604
+ if (context && context._registeredComponents) {
1605
+ context._registeredComponents.add(moduleIdentifier);
1606
+ }
1607
+ };
1608
+ options._ssrRegister = hook;
1609
+ } else if (style) {
1610
+ hook = shadowMode ? function () {
1611
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1612
+ } : function (context) {
1613
+ style.call(this, createInjector(context));
1614
+ };
1615
+ }
1616
+ if (hook) {
1617
+ if (options.functional) {
1618
+ var originalRender = options.render;
1619
+ options.render = function renderWithStyleInjection(h, context) {
1620
+ hook.call(context);
1621
+ return originalRender(h, context);
1622
+ };
1623
+ } else {
1624
+ var existing = options.beforeCreate;
1625
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1626
+ }
1627
+ }
1628
+ return script;
1629
+ }
1630
+ var normalizeComponent_1 = normalizeComponent;
1631
+
1632
+ /* script */
1633
+ var __vue_script__ = script;
1634
+ /* template */
1635
+ var __vue_render__ = function __vue_render__() {
1636
+ var _vm = this;
1637
+ var _h = _vm.$createElement;
1638
+ var _c = _vm._self._c || _h;
1639
+ return _c('div', {
1640
+ class: [_vm.wrapperCls, _vm.extCls]
1641
+ }, _vm._l(_vm.defaultSteps, function (step, index) {
1642
+ var _obj;
1643
+ return _c('div', {
1644
+ key: index,
1645
+ staticClass: "bk-step",
1646
+ class: (_obj = {
1647
+ 'bk-step-no-content': !step.title,
1648
+ done: _vm.isDone(index),
1649
+ current: _vm.isCurrent(index)
1650
+ }, _obj["bk-step-" + _vm.currentStatus] = _vm.currentStatus && _vm.isCurrent(index), _obj)
1651
+ }, [_c('span', {
1652
+ staticClass: "bk-step-indicator",
1653
+ class: 'bk-step-' + (_vm.iconType(step) ? 'icon' : 'number'),
1654
+ style: {
1655
+ cursor: _vm.controllable ? 'pointer' : ''
1656
+ },
1657
+ on: {
1658
+ "click": function click($event) {
1659
+ return _vm.jumpTo(index + 1);
1660
+ }
1661
+ }
1662
+ }, [_vm.isCurrent(index) && _vm.currentStatus === 'loading' || _vm.isLoadingStatus(step) ? _c('i', {
1663
+ staticClass: "bk-icon icon-circle-4-1 icon-loading"
1664
+ }) : _vm.iconType(step) ? _c('i', {
1665
+ staticClass: "bk-icon",
1666
+ class: 'icon-' + _vm.isIcon(step)
1667
+ }) : _vm.isCurrent(index) && _vm.currentStatus === 'error' || _vm.isErrorStatus(step) ? _c('i', {
1668
+ staticClass: "bk-icon icon-close icon-error"
1669
+ }) : _vm.isDone(index) ? _c('i', {
1670
+ staticClass: "bk-icon icon-check-1 icon-finish"
1671
+ }) : _c('span', {
1672
+ staticClass: "number"
1673
+ }, [_vm._v("\n " + _vm._s(_vm.isIcon(step)) + "\n ")])]), step.title ? _c('div', {
1674
+ staticClass: "bk-step-content"
1675
+ }, [_c('div', {
1676
+ staticClass: "bk-step-title",
1677
+ style: {
1678
+ cursor: _vm.controllable ? 'pointer' : ''
1679
+ },
1680
+ on: {
1681
+ "click": function click($event) {
1682
+ return _vm.jumpTo(index + 1);
1683
+ }
1684
+ }
1685
+ }, [_vm._v("\n " + _vm._s(step.title) + "\n ")]), step.description ? _c('div', {
1686
+ staticClass: "bk-step-description",
1687
+ attrs: {
1688
+ "title": step.description
1689
+ }
1690
+ }, [_vm._v("\n " + _vm._s(step.description) + "\n ")]) : _vm._e()]) : _vm._e()]);
1691
+ }), 0);
1692
+ };
1693
+ var __vue_staticRenderFns__ = [];
1694
+
1695
+ /* style */
1696
+ var __vue_inject_styles__ = undefined;
1697
+ /* scoped */
1698
+ var __vue_scope_id__ = undefined;
1699
+ /* module identifier */
1700
+ var __vue_module_identifier__ = undefined;
1701
+ /* functional template */
1702
+ var __vue_is_functional_template__ = false;
1703
+ /* style inject */
1704
+
1705
+ /* style inject SSR */
1706
+
1707
+ /* style inject shadow dom */
1708
+
1709
+ var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
1710
+ render: __vue_render__,
1711
+ staticRenderFns: __vue_staticRenderFns__
1712
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
1713
+
1714
+ var _objectSap = function (KEY, exec) {
1715
+ var fn = (_core.Object || {})[KEY] || Object[KEY];
1716
+ var exp = {};
1717
+ exp[KEY] = exec(fn);
1718
+ _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
1719
+ };
1720
+
1721
+ _objectSap('keys', function () {
1722
+ return function keys(it) {
1723
+ return _objectKeys(_toObject(it));
1724
+ };
1725
+ });
1726
+
1727
+ var keys = _core.Object.keys;
1728
+
1729
+ var keys$1 = keys;
1730
+
1731
+ function setInstaller (component, afterInstall) {
1732
+ component.install = function (Vue) {
1733
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1734
+ var props = component.props || {};
1735
+ keys$1(options).forEach(function (key) {
1736
+ if (props.hasOwnProperty(key)) {
1737
+ if (typeof props[key] === 'function' || props[key] instanceof Array) {
1738
+ props[key] = {
1739
+ type: props[key],
1740
+ default: options[key]
1741
+ };
1742
+ } else {
1743
+ props[key].default = options[key];
1744
+ }
1745
+ }
1746
+ });
1747
+ component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
1748
+ Vue.component(component.name, component);
1749
+ typeof afterInstall === 'function' && afterInstall(Vue, options);
1750
+ };
1751
+ }
1752
+
1753
+ setInstaller(__vue_component__);
1754
+
1755
+ exports.default = __vue_component__;
1756
+
1757
+ Object.defineProperty(exports, '__esModule', { value: true });
1965
1758
 
1966
1759
  }));