share-light 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -4,6 +4,2521 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.shareLightSDK = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
+ var libExports = {};
8
+ var lib = {
9
+ get exports(){ return libExports; },
10
+ set exports(v){ libExports = v; },
11
+ };
12
+
13
+ var qqShareExports = {};
14
+ var qqShare = {
15
+ get exports(){ return qqShareExports; },
16
+ set exports(v){ qqShareExports = v; },
17
+ };
18
+
19
+ var regeneratorExports = {};
20
+ var regenerator = {
21
+ get exports(){ return regeneratorExports; },
22
+ set exports(v){ regeneratorExports = v; },
23
+ };
24
+
25
+ var runtimeModuleExports = {};
26
+ var runtimeModule = {
27
+ get exports(){ return runtimeModuleExports; },
28
+ set exports(v){ runtimeModuleExports = v; },
29
+ };
30
+
31
+ var runtimeExports = {};
32
+ var runtime = {
33
+ get exports(){ return runtimeExports; },
34
+ set exports(v){ runtimeExports = v; },
35
+ };
36
+
37
+ /**
38
+ * Copyright (c) 2014-present, Facebook, Inc.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */
43
+
44
+ (function (module) {
45
+ !(function(global) {
46
+
47
+ var Op = Object.prototype;
48
+ var hasOwn = Op.hasOwnProperty;
49
+ var undefined$1; // More compressible than void 0.
50
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
51
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
52
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
53
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
54
+ var runtime = global.regeneratorRuntime;
55
+ if (runtime) {
56
+ {
57
+ // If regeneratorRuntime is defined globally and we're in a module,
58
+ // make the exports object identical to regeneratorRuntime.
59
+ module.exports = runtime;
60
+ }
61
+ // Don't bother evaluating the rest of this file if the runtime was
62
+ // already defined globally.
63
+ return;
64
+ }
65
+
66
+ // Define the runtime globally (as expected by generated code) as either
67
+ // module.exports (if we're in a module) or a new, empty object.
68
+ runtime = global.regeneratorRuntime = module.exports ;
69
+
70
+ function wrap(innerFn, outerFn, self, tryLocsList) {
71
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
72
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
73
+ var generator = Object.create(protoGenerator.prototype);
74
+ var context = new Context(tryLocsList || []);
75
+
76
+ // The ._invoke method unifies the implementations of the .next,
77
+ // .throw, and .return methods.
78
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
79
+
80
+ return generator;
81
+ }
82
+ runtime.wrap = wrap;
83
+
84
+ // Try/catch helper to minimize deoptimizations. Returns a completion
85
+ // record like context.tryEntries[i].completion. This interface could
86
+ // have been (and was previously) designed to take a closure to be
87
+ // invoked without arguments, but in all the cases we care about we
88
+ // already have an existing method we want to call, so there's no need
89
+ // to create a new function object. We can even get away with assuming
90
+ // the method takes exactly one argument, since that happens to be true
91
+ // in every case, so we don't have to touch the arguments object. The
92
+ // only additional allocation required is the completion record, which
93
+ // has a stable shape and so hopefully should be cheap to allocate.
94
+ function tryCatch(fn, obj, arg) {
95
+ try {
96
+ return { type: "normal", arg: fn.call(obj, arg) };
97
+ } catch (err) {
98
+ return { type: "throw", arg: err };
99
+ }
100
+ }
101
+
102
+ var GenStateSuspendedStart = "suspendedStart";
103
+ var GenStateSuspendedYield = "suspendedYield";
104
+ var GenStateExecuting = "executing";
105
+ var GenStateCompleted = "completed";
106
+
107
+ // Returning this object from the innerFn has the same effect as
108
+ // breaking out of the dispatch switch statement.
109
+ var ContinueSentinel = {};
110
+
111
+ // Dummy constructor functions that we use as the .constructor and
112
+ // .constructor.prototype properties for functions that return Generator
113
+ // objects. For full spec compliance, you may wish to configure your
114
+ // minifier not to mangle the names of these two functions.
115
+ function Generator() {}
116
+ function GeneratorFunction() {}
117
+ function GeneratorFunctionPrototype() {}
118
+
119
+ // This is a polyfill for %IteratorPrototype% for environments that
120
+ // don't natively support it.
121
+ var IteratorPrototype = {};
122
+ IteratorPrototype[iteratorSymbol] = function () {
123
+ return this;
124
+ };
125
+
126
+ var getProto = Object.getPrototypeOf;
127
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
128
+ if (NativeIteratorPrototype &&
129
+ NativeIteratorPrototype !== Op &&
130
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
131
+ // This environment has a native %IteratorPrototype%; use it instead
132
+ // of the polyfill.
133
+ IteratorPrototype = NativeIteratorPrototype;
134
+ }
135
+
136
+ var Gp = GeneratorFunctionPrototype.prototype =
137
+ Generator.prototype = Object.create(IteratorPrototype);
138
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
139
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
140
+ GeneratorFunctionPrototype[toStringTagSymbol] =
141
+ GeneratorFunction.displayName = "GeneratorFunction";
142
+
143
+ // Helper for defining the .next, .throw, and .return methods of the
144
+ // Iterator interface in terms of a single ._invoke method.
145
+ function defineIteratorMethods(prototype) {
146
+ ["next", "throw", "return"].forEach(function(method) {
147
+ prototype[method] = function(arg) {
148
+ return this._invoke(method, arg);
149
+ };
150
+ });
151
+ }
152
+
153
+ runtime.isGeneratorFunction = function(genFun) {
154
+ var ctor = typeof genFun === "function" && genFun.constructor;
155
+ return ctor
156
+ ? ctor === GeneratorFunction ||
157
+ // For the native GeneratorFunction constructor, the best we can
158
+ // do is to check its .name property.
159
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
160
+ : false;
161
+ };
162
+
163
+ runtime.mark = function(genFun) {
164
+ if (Object.setPrototypeOf) {
165
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
166
+ } else {
167
+ genFun.__proto__ = GeneratorFunctionPrototype;
168
+ if (!(toStringTagSymbol in genFun)) {
169
+ genFun[toStringTagSymbol] = "GeneratorFunction";
170
+ }
171
+ }
172
+ genFun.prototype = Object.create(Gp);
173
+ return genFun;
174
+ };
175
+
176
+ // Within the body of any async function, `await x` is transformed to
177
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
178
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
179
+ // meant to be awaited.
180
+ runtime.awrap = function(arg) {
181
+ return { __await: arg };
182
+ };
183
+
184
+ function AsyncIterator(generator) {
185
+ function invoke(method, arg, resolve, reject) {
186
+ var record = tryCatch(generator[method], generator, arg);
187
+ if (record.type === "throw") {
188
+ reject(record.arg);
189
+ } else {
190
+ var result = record.arg;
191
+ var value = result.value;
192
+ if (value &&
193
+ typeof value === "object" &&
194
+ hasOwn.call(value, "__await")) {
195
+ return Promise.resolve(value.__await).then(function(value) {
196
+ invoke("next", value, resolve, reject);
197
+ }, function(err) {
198
+ invoke("throw", err, resolve, reject);
199
+ });
200
+ }
201
+
202
+ return Promise.resolve(value).then(function(unwrapped) {
203
+ // When a yielded Promise is resolved, its final value becomes
204
+ // the .value of the Promise<{value,done}> result for the
205
+ // current iteration. If the Promise is rejected, however, the
206
+ // result for this iteration will be rejected with the same
207
+ // reason. Note that rejections of yielded Promises are not
208
+ // thrown back into the generator function, as is the case
209
+ // when an awaited Promise is rejected. This difference in
210
+ // behavior between yield and await is important, because it
211
+ // allows the consumer to decide what to do with the yielded
212
+ // rejection (swallow it and continue, manually .throw it back
213
+ // into the generator, abandon iteration, whatever). With
214
+ // await, by contrast, there is no opportunity to examine the
215
+ // rejection reason outside the generator function, so the
216
+ // only option is to throw it from the await expression, and
217
+ // let the generator function handle the exception.
218
+ result.value = unwrapped;
219
+ resolve(result);
220
+ }, reject);
221
+ }
222
+ }
223
+
224
+ var previousPromise;
225
+
226
+ function enqueue(method, arg) {
227
+ function callInvokeWithMethodAndArg() {
228
+ return new Promise(function(resolve, reject) {
229
+ invoke(method, arg, resolve, reject);
230
+ });
231
+ }
232
+
233
+ return previousPromise =
234
+ // If enqueue has been called before, then we want to wait until
235
+ // all previous Promises have been resolved before calling invoke,
236
+ // so that results are always delivered in the correct order. If
237
+ // enqueue has not been called before, then it is important to
238
+ // call invoke immediately, without waiting on a callback to fire,
239
+ // so that the async generator function has the opportunity to do
240
+ // any necessary setup in a predictable way. This predictability
241
+ // is why the Promise constructor synchronously invokes its
242
+ // executor callback, and why async functions synchronously
243
+ // execute code before the first await. Since we implement simple
244
+ // async functions in terms of async generators, it is especially
245
+ // important to get this right, even though it requires care.
246
+ previousPromise ? previousPromise.then(
247
+ callInvokeWithMethodAndArg,
248
+ // Avoid propagating failures to Promises returned by later
249
+ // invocations of the iterator.
250
+ callInvokeWithMethodAndArg
251
+ ) : callInvokeWithMethodAndArg();
252
+ }
253
+
254
+ // Define the unified helper method that is used to implement .next,
255
+ // .throw, and .return (see defineIteratorMethods).
256
+ this._invoke = enqueue;
257
+ }
258
+
259
+ defineIteratorMethods(AsyncIterator.prototype);
260
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
261
+ return this;
262
+ };
263
+ runtime.AsyncIterator = AsyncIterator;
264
+
265
+ // Note that simple async functions are implemented on top of
266
+ // AsyncIterator objects; they just return a Promise for the value of
267
+ // the final result produced by the iterator.
268
+ runtime.async = function(innerFn, outerFn, self, tryLocsList) {
269
+ var iter = new AsyncIterator(
270
+ wrap(innerFn, outerFn, self, tryLocsList)
271
+ );
272
+
273
+ return runtime.isGeneratorFunction(outerFn)
274
+ ? iter // If outerFn is a generator, return the full iterator.
275
+ : iter.next().then(function(result) {
276
+ return result.done ? result.value : iter.next();
277
+ });
278
+ };
279
+
280
+ function makeInvokeMethod(innerFn, self, context) {
281
+ var state = GenStateSuspendedStart;
282
+
283
+ return function invoke(method, arg) {
284
+ if (state === GenStateExecuting) {
285
+ throw new Error("Generator is already running");
286
+ }
287
+
288
+ if (state === GenStateCompleted) {
289
+ if (method === "throw") {
290
+ throw arg;
291
+ }
292
+
293
+ // Be forgiving, per 25.3.3.3.3 of the spec:
294
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
295
+ return doneResult();
296
+ }
297
+
298
+ context.method = method;
299
+ context.arg = arg;
300
+
301
+ while (true) {
302
+ var delegate = context.delegate;
303
+ if (delegate) {
304
+ var delegateResult = maybeInvokeDelegate(delegate, context);
305
+ if (delegateResult) {
306
+ if (delegateResult === ContinueSentinel) continue;
307
+ return delegateResult;
308
+ }
309
+ }
310
+
311
+ if (context.method === "next") {
312
+ // Setting context._sent for legacy support of Babel's
313
+ // function.sent implementation.
314
+ context.sent = context._sent = context.arg;
315
+
316
+ } else if (context.method === "throw") {
317
+ if (state === GenStateSuspendedStart) {
318
+ state = GenStateCompleted;
319
+ throw context.arg;
320
+ }
321
+
322
+ context.dispatchException(context.arg);
323
+
324
+ } else if (context.method === "return") {
325
+ context.abrupt("return", context.arg);
326
+ }
327
+
328
+ state = GenStateExecuting;
329
+
330
+ var record = tryCatch(innerFn, self, context);
331
+ if (record.type === "normal") {
332
+ // If an exception is thrown from innerFn, we leave state ===
333
+ // GenStateExecuting and loop back for another invocation.
334
+ state = context.done
335
+ ? GenStateCompleted
336
+ : GenStateSuspendedYield;
337
+
338
+ if (record.arg === ContinueSentinel) {
339
+ continue;
340
+ }
341
+
342
+ return {
343
+ value: record.arg,
344
+ done: context.done
345
+ };
346
+
347
+ } else if (record.type === "throw") {
348
+ state = GenStateCompleted;
349
+ // Dispatch the exception by looping back around to the
350
+ // context.dispatchException(context.arg) call above.
351
+ context.method = "throw";
352
+ context.arg = record.arg;
353
+ }
354
+ }
355
+ };
356
+ }
357
+
358
+ // Call delegate.iterator[context.method](context.arg) and handle the
359
+ // result, either by returning a { value, done } result from the
360
+ // delegate iterator, or by modifying context.method and context.arg,
361
+ // setting context.delegate to null, and returning the ContinueSentinel.
362
+ function maybeInvokeDelegate(delegate, context) {
363
+ var method = delegate.iterator[context.method];
364
+ if (method === undefined$1) {
365
+ // A .throw or .return when the delegate iterator has no .throw
366
+ // method always terminates the yield* loop.
367
+ context.delegate = null;
368
+
369
+ if (context.method === "throw") {
370
+ if (delegate.iterator.return) {
371
+ // If the delegate iterator has a return method, give it a
372
+ // chance to clean up.
373
+ context.method = "return";
374
+ context.arg = undefined$1;
375
+ maybeInvokeDelegate(delegate, context);
376
+
377
+ if (context.method === "throw") {
378
+ // If maybeInvokeDelegate(context) changed context.method from
379
+ // "return" to "throw", let that override the TypeError below.
380
+ return ContinueSentinel;
381
+ }
382
+ }
383
+
384
+ context.method = "throw";
385
+ context.arg = new TypeError(
386
+ "The iterator does not provide a 'throw' method");
387
+ }
388
+
389
+ return ContinueSentinel;
390
+ }
391
+
392
+ var record = tryCatch(method, delegate.iterator, context.arg);
393
+
394
+ if (record.type === "throw") {
395
+ context.method = "throw";
396
+ context.arg = record.arg;
397
+ context.delegate = null;
398
+ return ContinueSentinel;
399
+ }
400
+
401
+ var info = record.arg;
402
+
403
+ if (! info) {
404
+ context.method = "throw";
405
+ context.arg = new TypeError("iterator result is not an object");
406
+ context.delegate = null;
407
+ return ContinueSentinel;
408
+ }
409
+
410
+ if (info.done) {
411
+ // Assign the result of the finished delegate to the temporary
412
+ // variable specified by delegate.resultName (see delegateYield).
413
+ context[delegate.resultName] = info.value;
414
+
415
+ // Resume execution at the desired location (see delegateYield).
416
+ context.next = delegate.nextLoc;
417
+
418
+ // If context.method was "throw" but the delegate handled the
419
+ // exception, let the outer generator proceed normally. If
420
+ // context.method was "next", forget context.arg since it has been
421
+ // "consumed" by the delegate iterator. If context.method was
422
+ // "return", allow the original .return call to continue in the
423
+ // outer generator.
424
+ if (context.method !== "return") {
425
+ context.method = "next";
426
+ context.arg = undefined$1;
427
+ }
428
+
429
+ } else {
430
+ // Re-yield the result returned by the delegate method.
431
+ return info;
432
+ }
433
+
434
+ // The delegate iterator is finished, so forget it and continue with
435
+ // the outer generator.
436
+ context.delegate = null;
437
+ return ContinueSentinel;
438
+ }
439
+
440
+ // Define Generator.prototype.{next,throw,return} in terms of the
441
+ // unified ._invoke helper method.
442
+ defineIteratorMethods(Gp);
443
+
444
+ Gp[toStringTagSymbol] = "Generator";
445
+
446
+ // A Generator should always return itself as the iterator object when the
447
+ // @@iterator function is called on it. Some browsers' implementations of the
448
+ // iterator prototype chain incorrectly implement this, causing the Generator
449
+ // object to not be returned from this call. This ensures that doesn't happen.
450
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
451
+ Gp[iteratorSymbol] = function() {
452
+ return this;
453
+ };
454
+
455
+ Gp.toString = function() {
456
+ return "[object Generator]";
457
+ };
458
+
459
+ function pushTryEntry(locs) {
460
+ var entry = { tryLoc: locs[0] };
461
+
462
+ if (1 in locs) {
463
+ entry.catchLoc = locs[1];
464
+ }
465
+
466
+ if (2 in locs) {
467
+ entry.finallyLoc = locs[2];
468
+ entry.afterLoc = locs[3];
469
+ }
470
+
471
+ this.tryEntries.push(entry);
472
+ }
473
+
474
+ function resetTryEntry(entry) {
475
+ var record = entry.completion || {};
476
+ record.type = "normal";
477
+ delete record.arg;
478
+ entry.completion = record;
479
+ }
480
+
481
+ function Context(tryLocsList) {
482
+ // The root entry object (effectively a try statement without a catch
483
+ // or a finally block) gives us a place to store values thrown from
484
+ // locations where there is no enclosing try statement.
485
+ this.tryEntries = [{ tryLoc: "root" }];
486
+ tryLocsList.forEach(pushTryEntry, this);
487
+ this.reset(true);
488
+ }
489
+
490
+ runtime.keys = function(object) {
491
+ var keys = [];
492
+ for (var key in object) {
493
+ keys.push(key);
494
+ }
495
+ keys.reverse();
496
+
497
+ // Rather than returning an object with a next method, we keep
498
+ // things simple and return the next function itself.
499
+ return function next() {
500
+ while (keys.length) {
501
+ var key = keys.pop();
502
+ if (key in object) {
503
+ next.value = key;
504
+ next.done = false;
505
+ return next;
506
+ }
507
+ }
508
+
509
+ // To avoid creating an additional object, we just hang the .value
510
+ // and .done properties off the next function object itself. This
511
+ // also ensures that the minifier will not anonymize the function.
512
+ next.done = true;
513
+ return next;
514
+ };
515
+ };
516
+
517
+ function values(iterable) {
518
+ if (iterable) {
519
+ var iteratorMethod = iterable[iteratorSymbol];
520
+ if (iteratorMethod) {
521
+ return iteratorMethod.call(iterable);
522
+ }
523
+
524
+ if (typeof iterable.next === "function") {
525
+ return iterable;
526
+ }
527
+
528
+ if (!isNaN(iterable.length)) {
529
+ var i = -1, next = function next() {
530
+ while (++i < iterable.length) {
531
+ if (hasOwn.call(iterable, i)) {
532
+ next.value = iterable[i];
533
+ next.done = false;
534
+ return next;
535
+ }
536
+ }
537
+
538
+ next.value = undefined$1;
539
+ next.done = true;
540
+
541
+ return next;
542
+ };
543
+
544
+ return next.next = next;
545
+ }
546
+ }
547
+
548
+ // Return an iterator with no values.
549
+ return { next: doneResult };
550
+ }
551
+ runtime.values = values;
552
+
553
+ function doneResult() {
554
+ return { value: undefined$1, done: true };
555
+ }
556
+
557
+ Context.prototype = {
558
+ constructor: Context,
559
+
560
+ reset: function(skipTempReset) {
561
+ this.prev = 0;
562
+ this.next = 0;
563
+ // Resetting context._sent for legacy support of Babel's
564
+ // function.sent implementation.
565
+ this.sent = this._sent = undefined$1;
566
+ this.done = false;
567
+ this.delegate = null;
568
+
569
+ this.method = "next";
570
+ this.arg = undefined$1;
571
+
572
+ this.tryEntries.forEach(resetTryEntry);
573
+
574
+ if (!skipTempReset) {
575
+ for (var name in this) {
576
+ // Not sure about the optimal order of these conditions:
577
+ if (name.charAt(0) === "t" &&
578
+ hasOwn.call(this, name) &&
579
+ !isNaN(+name.slice(1))) {
580
+ this[name] = undefined$1;
581
+ }
582
+ }
583
+ }
584
+ },
585
+
586
+ stop: function() {
587
+ this.done = true;
588
+
589
+ var rootEntry = this.tryEntries[0];
590
+ var rootRecord = rootEntry.completion;
591
+ if (rootRecord.type === "throw") {
592
+ throw rootRecord.arg;
593
+ }
594
+
595
+ return this.rval;
596
+ },
597
+
598
+ dispatchException: function(exception) {
599
+ if (this.done) {
600
+ throw exception;
601
+ }
602
+
603
+ var context = this;
604
+ function handle(loc, caught) {
605
+ record.type = "throw";
606
+ record.arg = exception;
607
+ context.next = loc;
608
+
609
+ if (caught) {
610
+ // If the dispatched exception was caught by a catch block,
611
+ // then let that catch block handle the exception normally.
612
+ context.method = "next";
613
+ context.arg = undefined$1;
614
+ }
615
+
616
+ return !! caught;
617
+ }
618
+
619
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
620
+ var entry = this.tryEntries[i];
621
+ var record = entry.completion;
622
+
623
+ if (entry.tryLoc === "root") {
624
+ // Exception thrown outside of any try block that could handle
625
+ // it, so set the completion value of the entire function to
626
+ // throw the exception.
627
+ return handle("end");
628
+ }
629
+
630
+ if (entry.tryLoc <= this.prev) {
631
+ var hasCatch = hasOwn.call(entry, "catchLoc");
632
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
633
+
634
+ if (hasCatch && hasFinally) {
635
+ if (this.prev < entry.catchLoc) {
636
+ return handle(entry.catchLoc, true);
637
+ } else if (this.prev < entry.finallyLoc) {
638
+ return handle(entry.finallyLoc);
639
+ }
640
+
641
+ } else if (hasCatch) {
642
+ if (this.prev < entry.catchLoc) {
643
+ return handle(entry.catchLoc, true);
644
+ }
645
+
646
+ } else if (hasFinally) {
647
+ if (this.prev < entry.finallyLoc) {
648
+ return handle(entry.finallyLoc);
649
+ }
650
+
651
+ } else {
652
+ throw new Error("try statement without catch or finally");
653
+ }
654
+ }
655
+ }
656
+ },
657
+
658
+ abrupt: function(type, arg) {
659
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
660
+ var entry = this.tryEntries[i];
661
+ if (entry.tryLoc <= this.prev &&
662
+ hasOwn.call(entry, "finallyLoc") &&
663
+ this.prev < entry.finallyLoc) {
664
+ var finallyEntry = entry;
665
+ break;
666
+ }
667
+ }
668
+
669
+ if (finallyEntry &&
670
+ (type === "break" ||
671
+ type === "continue") &&
672
+ finallyEntry.tryLoc <= arg &&
673
+ arg <= finallyEntry.finallyLoc) {
674
+ // Ignore the finally entry if control is not jumping to a
675
+ // location outside the try/catch block.
676
+ finallyEntry = null;
677
+ }
678
+
679
+ var record = finallyEntry ? finallyEntry.completion : {};
680
+ record.type = type;
681
+ record.arg = arg;
682
+
683
+ if (finallyEntry) {
684
+ this.method = "next";
685
+ this.next = finallyEntry.finallyLoc;
686
+ return ContinueSentinel;
687
+ }
688
+
689
+ return this.complete(record);
690
+ },
691
+
692
+ complete: function(record, afterLoc) {
693
+ if (record.type === "throw") {
694
+ throw record.arg;
695
+ }
696
+
697
+ if (record.type === "break" ||
698
+ record.type === "continue") {
699
+ this.next = record.arg;
700
+ } else if (record.type === "return") {
701
+ this.rval = this.arg = record.arg;
702
+ this.method = "return";
703
+ this.next = "end";
704
+ } else if (record.type === "normal" && afterLoc) {
705
+ this.next = afterLoc;
706
+ }
707
+
708
+ return ContinueSentinel;
709
+ },
710
+
711
+ finish: function(finallyLoc) {
712
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
713
+ var entry = this.tryEntries[i];
714
+ if (entry.finallyLoc === finallyLoc) {
715
+ this.complete(entry.completion, entry.afterLoc);
716
+ resetTryEntry(entry);
717
+ return ContinueSentinel;
718
+ }
719
+ }
720
+ },
721
+
722
+ "catch": function(tryLoc) {
723
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
724
+ var entry = this.tryEntries[i];
725
+ if (entry.tryLoc === tryLoc) {
726
+ var record = entry.completion;
727
+ if (record.type === "throw") {
728
+ var thrown = record.arg;
729
+ resetTryEntry(entry);
730
+ }
731
+ return thrown;
732
+ }
733
+ }
734
+
735
+ // The context.catch method must only be called with a location
736
+ // argument that corresponds to a known catch block.
737
+ throw new Error("illegal catch attempt");
738
+ },
739
+
740
+ delegateYield: function(iterable, resultName, nextLoc) {
741
+ this.delegate = {
742
+ iterator: values(iterable),
743
+ resultName: resultName,
744
+ nextLoc: nextLoc
745
+ };
746
+
747
+ if (this.method === "next") {
748
+ // Deliberately forget the last sent value so that we don't
749
+ // accidentally pass it on to the delegate.
750
+ this.arg = undefined$1;
751
+ }
752
+
753
+ return ContinueSentinel;
754
+ }
755
+ };
756
+ })(
757
+ // In sloppy mode, unbound `this` refers to the global object, fallback to
758
+ // Function constructor if we're in global strict mode. That is sadly a form
759
+ // of indirect eval which violates Content Security Policy.
760
+ (function() { return this })() || Function("return this")()
761
+ );
762
+ } (runtime));
763
+
764
+ /**
765
+ * Copyright (c) 2014-present, Facebook, Inc.
766
+ *
767
+ * This source code is licensed under the MIT license found in the
768
+ * LICENSE file in the root directory of this source tree.
769
+ */
770
+
771
+ (function (module) {
772
+ // This method of obtaining a reference to the global object needs to be
773
+ // kept identical to the way it is obtained in runtime.js
774
+ var g = (function() { return this })() || Function("return this")();
775
+
776
+ // Use `getOwnPropertyNames` because not all browsers support calling
777
+ // `hasOwnProperty` on the global `self` object in a worker. See #183.
778
+ var hadRuntime = g.regeneratorRuntime &&
779
+ Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
780
+
781
+ // Save the old regeneratorRuntime in case it needs to be restored later.
782
+ var oldRuntime = hadRuntime && g.regeneratorRuntime;
783
+
784
+ // Force reevalutation of runtime.js.
785
+ g.regeneratorRuntime = undefined;
786
+
787
+ module.exports = runtimeExports;
788
+
789
+ if (hadRuntime) {
790
+ // Restore the original runtime.
791
+ g.regeneratorRuntime = oldRuntime;
792
+ } else {
793
+ // Remove the global property added by runtime.js.
794
+ try {
795
+ delete g.regeneratorRuntime;
796
+ } catch(e) {
797
+ g.regeneratorRuntime = undefined;
798
+ }
799
+ }
800
+ } (runtimeModule));
801
+
802
+ (function (module) {
803
+ module.exports = runtimeModuleExports;
804
+ } (regenerator));
805
+
806
+ var _extends = {};
807
+
808
+ var assignExports = {};
809
+ var assign$1 = {
810
+ get exports(){ return assignExports; },
811
+ set exports(v){ assignExports = v; },
812
+ };
813
+
814
+ var _globalExports = {};
815
+ var _global = {
816
+ get exports(){ return _globalExports; },
817
+ set exports(v){ _globalExports = v; },
818
+ };
819
+
820
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
821
+ var global$8 = _global.exports = typeof window != 'undefined' && window.Math == Math
822
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
823
+ // eslint-disable-next-line no-new-func
824
+ : Function('return this')();
825
+ if (typeof __g == 'number') __g = global$8; // eslint-disable-line no-undef
826
+
827
+ var _coreExports = {};
828
+ var _core = {
829
+ get exports(){ return _coreExports; },
830
+ set exports(v){ _coreExports = v; },
831
+ };
832
+
833
+ var core$3 = _core.exports = { version: '2.6.12' };
834
+ if (typeof __e == 'number') __e = core$3; // eslint-disable-line no-undef
835
+
836
+ var _aFunction = function (it) {
837
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
838
+ return it;
839
+ };
840
+
841
+ // optional / simple context binding
842
+ var aFunction$3 = _aFunction;
843
+ var _ctx = function (fn, that, length) {
844
+ aFunction$3(fn);
845
+ if (that === undefined) return fn;
846
+ switch (length) {
847
+ case 1: return function (a) {
848
+ return fn.call(that, a);
849
+ };
850
+ case 2: return function (a, b) {
851
+ return fn.call(that, a, b);
852
+ };
853
+ case 3: return function (a, b, c) {
854
+ return fn.call(that, a, b, c);
855
+ };
856
+ }
857
+ return function (/* ...args */) {
858
+ return fn.apply(that, arguments);
859
+ };
860
+ };
861
+
862
+ var _objectDp = {};
863
+
864
+ var _isObject = function (it) {
865
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
866
+ };
867
+
868
+ var isObject$4 = _isObject;
869
+ var _anObject = function (it) {
870
+ if (!isObject$4(it)) throw TypeError(it + ' is not an object!');
871
+ return it;
872
+ };
873
+
874
+ var _fails;
875
+ var hasRequired_fails;
876
+
877
+ function require_fails () {
878
+ if (hasRequired_fails) return _fails;
879
+ hasRequired_fails = 1;
880
+ _fails = function (exec) {
881
+ try {
882
+ return !!exec();
883
+ } catch (e) {
884
+ return true;
885
+ }
886
+ };
887
+ return _fails;
888
+ }
889
+
890
+ // Thank's IE8 for his funny defineProperty
891
+ var _descriptors = !require_fails()(function () {
892
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
893
+ });
894
+
895
+ var isObject$3 = _isObject;
896
+ var document$2 = _globalExports.document;
897
+ // typeof document.createElement is 'object' in old IE
898
+ var is = isObject$3(document$2) && isObject$3(document$2.createElement);
899
+ var _domCreate = function (it) {
900
+ return is ? document$2.createElement(it) : {};
901
+ };
902
+
903
+ var _ie8DomDefine = !_descriptors && !require_fails()(function () {
904
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
905
+ });
906
+
907
+ // 7.1.1 ToPrimitive(input [, PreferredType])
908
+ var isObject$2 = _isObject;
909
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
910
+ // and the second argument - flag - preferred type is a string
911
+ var _toPrimitive = function (it, S) {
912
+ if (!isObject$2(it)) return it;
913
+ var fn, val;
914
+ if (S && typeof (fn = it.toString) == 'function' && !isObject$2(val = fn.call(it))) return val;
915
+ if (typeof (fn = it.valueOf) == 'function' && !isObject$2(val = fn.call(it))) return val;
916
+ if (!S && typeof (fn = it.toString) == 'function' && !isObject$2(val = fn.call(it))) return val;
917
+ throw TypeError("Can't convert object to primitive value");
918
+ };
919
+
920
+ var anObject$6 = _anObject;
921
+ var IE8_DOM_DEFINE = _ie8DomDefine;
922
+ var toPrimitive = _toPrimitive;
923
+ var dP$2 = Object.defineProperty;
924
+
925
+ _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
926
+ anObject$6(O);
927
+ P = toPrimitive(P, true);
928
+ anObject$6(Attributes);
929
+ if (IE8_DOM_DEFINE) try {
930
+ return dP$2(O, P, Attributes);
931
+ } catch (e) { /* empty */ }
932
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
933
+ if ('value' in Attributes) O[P] = Attributes.value;
934
+ return O;
935
+ };
936
+
937
+ var _propertyDesc = function (bitmap, value) {
938
+ return {
939
+ enumerable: !(bitmap & 1),
940
+ configurable: !(bitmap & 2),
941
+ writable: !(bitmap & 4),
942
+ value: value
943
+ };
944
+ };
945
+
946
+ var dP$1 = _objectDp;
947
+ var createDesc = _propertyDesc;
948
+ var _hide = _descriptors ? function (object, key, value) {
949
+ return dP$1.f(object, key, createDesc(1, value));
950
+ } : function (object, key, value) {
951
+ object[key] = value;
952
+ return object;
953
+ };
954
+
955
+ var hasOwnProperty = {}.hasOwnProperty;
956
+ var _has = function (it, key) {
957
+ return hasOwnProperty.call(it, key);
958
+ };
959
+
960
+ var global$7 = _globalExports;
961
+ var core$2 = _coreExports;
962
+ var ctx$3 = _ctx;
963
+ var hide$2 = _hide;
964
+ var has$1 = _has;
965
+ var PROTOTYPE$1 = 'prototype';
966
+
967
+ var $export$5 = function (type, name, source) {
968
+ var IS_FORCED = type & $export$5.F;
969
+ var IS_GLOBAL = type & $export$5.G;
970
+ var IS_STATIC = type & $export$5.S;
971
+ var IS_PROTO = type & $export$5.P;
972
+ var IS_BIND = type & $export$5.B;
973
+ var IS_WRAP = type & $export$5.W;
974
+ var exports = IS_GLOBAL ? core$2 : core$2[name] || (core$2[name] = {});
975
+ var expProto = exports[PROTOTYPE$1];
976
+ var target = IS_GLOBAL ? global$7 : IS_STATIC ? global$7[name] : (global$7[name] || {})[PROTOTYPE$1];
977
+ var key, own, out;
978
+ if (IS_GLOBAL) source = name;
979
+ for (key in source) {
980
+ // contains in native
981
+ own = !IS_FORCED && target && target[key] !== undefined;
982
+ if (own && has$1(exports, key)) continue;
983
+ // export native or passed
984
+ out = own ? target[key] : source[key];
985
+ // prevent global pollution for namespaces
986
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
987
+ // bind timers to global for call from export context
988
+ : IS_BIND && own ? ctx$3(out, global$7)
989
+ // wrap global constructors for prevent change them in library
990
+ : IS_WRAP && target[key] == out ? (function (C) {
991
+ var F = function (a, b, c) {
992
+ if (this instanceof C) {
993
+ switch (arguments.length) {
994
+ case 0: return new C();
995
+ case 1: return new C(a);
996
+ case 2: return new C(a, b);
997
+ } return new C(a, b, c);
998
+ } return C.apply(this, arguments);
999
+ };
1000
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
1001
+ return F;
1002
+ // make static versions for prototype methods
1003
+ })(out) : IS_PROTO && typeof out == 'function' ? ctx$3(Function.call, out) : out;
1004
+ // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
1005
+ if (IS_PROTO) {
1006
+ (exports.virtual || (exports.virtual = {}))[key] = out;
1007
+ // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
1008
+ if (type & $export$5.R && expProto && !expProto[key]) hide$2(expProto, key, out);
1009
+ }
1010
+ }
1011
+ };
1012
+ // type bitmap
1013
+ $export$5.F = 1; // forced
1014
+ $export$5.G = 2; // global
1015
+ $export$5.S = 4; // static
1016
+ $export$5.P = 8; // proto
1017
+ $export$5.B = 16; // bind
1018
+ $export$5.W = 32; // wrap
1019
+ $export$5.U = 64; // safe
1020
+ $export$5.R = 128; // real proto method for `library`
1021
+ var _export = $export$5;
1022
+
1023
+ var toString = {}.toString;
1024
+
1025
+ var _cof = function (it) {
1026
+ return toString.call(it).slice(8, -1);
1027
+ };
1028
+
1029
+ var _iobject;
1030
+ var hasRequired_iobject;
1031
+
1032
+ function require_iobject () {
1033
+ if (hasRequired_iobject) return _iobject;
1034
+ hasRequired_iobject = 1;
1035
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
1036
+ var cof = _cof;
1037
+ // eslint-disable-next-line no-prototype-builtins
1038
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
1039
+ return cof(it) == 'String' ? it.split('') : Object(it);
1040
+ };
1041
+ return _iobject;
1042
+ }
1043
+
1044
+ // 7.2.1 RequireObjectCoercible(argument)
1045
+ var _defined = function (it) {
1046
+ if (it == undefined) throw TypeError("Can't call method on " + it);
1047
+ return it;
1048
+ };
1049
+
1050
+ // to indexed object, toObject with fallback for non-array-like ES3 strings
1051
+ var IObject = require_iobject();
1052
+ var defined$1 = _defined;
1053
+ var _toIobject = function (it) {
1054
+ return IObject(defined$1(it));
1055
+ };
1056
+
1057
+ // 7.1.4 ToInteger
1058
+ var ceil = Math.ceil;
1059
+ var floor = Math.floor;
1060
+ var _toInteger = function (it) {
1061
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1062
+ };
1063
+
1064
+ // 7.1.15 ToLength
1065
+ var toInteger$1 = _toInteger;
1066
+ var min = Math.min;
1067
+ var _toLength = function (it) {
1068
+ return it > 0 ? min(toInteger$1(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1069
+ };
1070
+
1071
+ var _toAbsoluteIndex;
1072
+ var hasRequired_toAbsoluteIndex;
1073
+
1074
+ function require_toAbsoluteIndex () {
1075
+ if (hasRequired_toAbsoluteIndex) return _toAbsoluteIndex;
1076
+ hasRequired_toAbsoluteIndex = 1;
1077
+ var toInteger = _toInteger;
1078
+ var max = Math.max;
1079
+ var min = Math.min;
1080
+ _toAbsoluteIndex = function (index, length) {
1081
+ index = toInteger(index);
1082
+ return index < 0 ? max(index + length, 0) : min(index, length);
1083
+ };
1084
+ return _toAbsoluteIndex;
1085
+ }
1086
+
1087
+ var _arrayIncludes;
1088
+ var hasRequired_arrayIncludes;
1089
+
1090
+ function require_arrayIncludes () {
1091
+ if (hasRequired_arrayIncludes) return _arrayIncludes;
1092
+ hasRequired_arrayIncludes = 1;
1093
+ // false -> Array#indexOf
1094
+ // true -> Array#includes
1095
+ var toIObject = _toIobject;
1096
+ var toLength = _toLength;
1097
+ var toAbsoluteIndex = require_toAbsoluteIndex();
1098
+ _arrayIncludes = function (IS_INCLUDES) {
1099
+ return function ($this, el, fromIndex) {
1100
+ var O = toIObject($this);
1101
+ var length = toLength(O.length);
1102
+ var index = toAbsoluteIndex(fromIndex, length);
1103
+ var value;
1104
+ // Array#includes uses SameValueZero equality algorithm
1105
+ // eslint-disable-next-line no-self-compare
1106
+ if (IS_INCLUDES && el != el) while (length > index) {
1107
+ value = O[index++];
1108
+ // eslint-disable-next-line no-self-compare
1109
+ if (value != value) return true;
1110
+ // Array#indexOf ignores holes, Array#includes - not
1111
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
1112
+ if (O[index] === el) return IS_INCLUDES || index || 0;
1113
+ } return !IS_INCLUDES && -1;
1114
+ };
1115
+ };
1116
+ return _arrayIncludes;
1117
+ }
1118
+
1119
+ var _sharedExports = {};
1120
+ var _shared = {
1121
+ get exports(){ return _sharedExports; },
1122
+ set exports(v){ _sharedExports = v; },
1123
+ };
1124
+
1125
+ var _library = true;
1126
+
1127
+ var core$1 = _coreExports;
1128
+ var global$6 = _globalExports;
1129
+ var SHARED = '__core-js_shared__';
1130
+ var store$1 = global$6[SHARED] || (global$6[SHARED] = {});
1131
+
1132
+ (_shared.exports = function (key, value) {
1133
+ return store$1[key] || (store$1[key] = value !== undefined ? value : {});
1134
+ })('versions', []).push({
1135
+ version: core$1.version,
1136
+ mode: 'pure' ,
1137
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
1138
+ });
1139
+
1140
+ var id = 0;
1141
+ var px = Math.random();
1142
+ var _uid = function (key) {
1143
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1144
+ };
1145
+
1146
+ var shared = _sharedExports('keys');
1147
+ var uid$1 = _uid;
1148
+ var _sharedKey = function (key) {
1149
+ return shared[key] || (shared[key] = uid$1(key));
1150
+ };
1151
+
1152
+ var _objectKeysInternal;
1153
+ var hasRequired_objectKeysInternal;
1154
+
1155
+ function require_objectKeysInternal () {
1156
+ if (hasRequired_objectKeysInternal) return _objectKeysInternal;
1157
+ hasRequired_objectKeysInternal = 1;
1158
+ var has = _has;
1159
+ var toIObject = _toIobject;
1160
+ var arrayIndexOf = require_arrayIncludes()(false);
1161
+ var IE_PROTO = _sharedKey('IE_PROTO');
1162
+
1163
+ _objectKeysInternal = function (object, names) {
1164
+ var O = toIObject(object);
1165
+ var i = 0;
1166
+ var result = [];
1167
+ var key;
1168
+ for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
1169
+ // Don't enum bug & hidden keys
1170
+ while (names.length > i) if (has(O, key = names[i++])) {
1171
+ ~arrayIndexOf(result, key) || result.push(key);
1172
+ }
1173
+ return result;
1174
+ };
1175
+ return _objectKeysInternal;
1176
+ }
1177
+
1178
+ var _enumBugKeys;
1179
+ var hasRequired_enumBugKeys;
1180
+
1181
+ function require_enumBugKeys () {
1182
+ if (hasRequired_enumBugKeys) return _enumBugKeys;
1183
+ hasRequired_enumBugKeys = 1;
1184
+ // IE 8- don't enum bug keys
1185
+ _enumBugKeys = (
1186
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1187
+ ).split(',');
1188
+ return _enumBugKeys;
1189
+ }
1190
+
1191
+ var _objectKeys;
1192
+ var hasRequired_objectKeys;
1193
+
1194
+ function require_objectKeys () {
1195
+ if (hasRequired_objectKeys) return _objectKeys;
1196
+ hasRequired_objectKeys = 1;
1197
+ // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1198
+ var $keys = require_objectKeysInternal();
1199
+ var enumBugKeys = require_enumBugKeys();
1200
+
1201
+ _objectKeys = Object.keys || function keys(O) {
1202
+ return $keys(O, enumBugKeys);
1203
+ };
1204
+ return _objectKeys;
1205
+ }
1206
+
1207
+ var _objectGops = {};
1208
+
1209
+ var hasRequired_objectGops;
1210
+
1211
+ function require_objectGops () {
1212
+ if (hasRequired_objectGops) return _objectGops;
1213
+ hasRequired_objectGops = 1;
1214
+ _objectGops.f = Object.getOwnPropertySymbols;
1215
+ return _objectGops;
1216
+ }
1217
+
1218
+ var _objectPie = {};
1219
+
1220
+ var hasRequired_objectPie;
1221
+
1222
+ function require_objectPie () {
1223
+ if (hasRequired_objectPie) return _objectPie;
1224
+ hasRequired_objectPie = 1;
1225
+ _objectPie.f = {}.propertyIsEnumerable;
1226
+ return _objectPie;
1227
+ }
1228
+
1229
+ var _toObject;
1230
+ var hasRequired_toObject;
1231
+
1232
+ function require_toObject () {
1233
+ if (hasRequired_toObject) return _toObject;
1234
+ hasRequired_toObject = 1;
1235
+ // 7.1.13 ToObject(argument)
1236
+ var defined = _defined;
1237
+ _toObject = function (it) {
1238
+ return Object(defined(it));
1239
+ };
1240
+ return _toObject;
1241
+ }
1242
+
1243
+ var _objectAssign;
1244
+ var hasRequired_objectAssign;
1245
+
1246
+ function require_objectAssign () {
1247
+ if (hasRequired_objectAssign) return _objectAssign;
1248
+ hasRequired_objectAssign = 1;
1249
+ // 19.1.2.1 Object.assign(target, source, ...)
1250
+ var DESCRIPTORS = _descriptors;
1251
+ var getKeys = require_objectKeys();
1252
+ var gOPS = require_objectGops();
1253
+ var pIE = require_objectPie();
1254
+ var toObject = require_toObject();
1255
+ var IObject = require_iobject();
1256
+ var $assign = Object.assign;
1257
+
1258
+ // should work with symbols and should have deterministic property order (V8 bug)
1259
+ _objectAssign = !$assign || require_fails()(function () {
1260
+ var A = {};
1261
+ var B = {};
1262
+ // eslint-disable-next-line no-undef
1263
+ var S = Symbol();
1264
+ var K = 'abcdefghijklmnopqrst';
1265
+ A[S] = 7;
1266
+ K.split('').forEach(function (k) { B[k] = k; });
1267
+ return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
1268
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
1269
+ var T = toObject(target);
1270
+ var aLen = arguments.length;
1271
+ var index = 1;
1272
+ var getSymbols = gOPS.f;
1273
+ var isEnum = pIE.f;
1274
+ while (aLen > index) {
1275
+ var S = IObject(arguments[index++]);
1276
+ var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
1277
+ var length = keys.length;
1278
+ var j = 0;
1279
+ var key;
1280
+ while (length > j) {
1281
+ key = keys[j++];
1282
+ if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
1283
+ }
1284
+ } return T;
1285
+ } : $assign;
1286
+ return _objectAssign;
1287
+ }
1288
+
1289
+ // 19.1.3.1 Object.assign(target, source)
1290
+ var $export$4 = _export;
1291
+
1292
+ $export$4($export$4.S + $export$4.F, 'Object', { assign: require_objectAssign() });
1293
+
1294
+ var assign = _coreExports.Object.assign;
1295
+
1296
+ (function (module) {
1297
+ module.exports = { "default": assign, __esModule: true };
1298
+ } (assign$1));
1299
+
1300
+ _extends.__esModule = true;
1301
+
1302
+ var _assign = assignExports;
1303
+
1304
+ var _assign2 = _interopRequireDefault$1(_assign);
1305
+
1306
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1307
+
1308
+ _extends.default = _assign2.default || function (target) {
1309
+ for (var i = 1; i < arguments.length; i++) {
1310
+ var source = arguments[i];
1311
+
1312
+ for (var key in source) {
1313
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1314
+ target[key] = source[key];
1315
+ }
1316
+ }
1317
+ }
1318
+
1319
+ return target;
1320
+ };
1321
+
1322
+ var asyncToGenerator = {};
1323
+
1324
+ var promiseExports = {};
1325
+ var promise$1 = {
1326
+ get exports(){ return promiseExports; },
1327
+ set exports(v){ promiseExports = v; },
1328
+ };
1329
+
1330
+ var toInteger = _toInteger;
1331
+ var defined = _defined;
1332
+ // true -> String#at
1333
+ // false -> String#codePointAt
1334
+ var _stringAt = function (TO_STRING) {
1335
+ return function (that, pos) {
1336
+ var s = String(defined(that));
1337
+ var i = toInteger(pos);
1338
+ var l = s.length;
1339
+ var a, b;
1340
+ if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
1341
+ a = s.charCodeAt(i);
1342
+ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
1343
+ ? TO_STRING ? s.charAt(i) : a
1344
+ : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
1345
+ };
1346
+ };
1347
+
1348
+ var _redefineExports = {};
1349
+ var _redefine = {
1350
+ get exports(){ return _redefineExports; },
1351
+ set exports(v){ _redefineExports = v; },
1352
+ };
1353
+
1354
+ (function (module) {
1355
+ module.exports = _hide;
1356
+ } (_redefine));
1357
+
1358
+ var _iterators = {};
1359
+
1360
+ var dP = _objectDp;
1361
+ var anObject$5 = _anObject;
1362
+ var getKeys = require_objectKeys();
1363
+
1364
+ var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1365
+ anObject$5(O);
1366
+ var keys = getKeys(Properties);
1367
+ var length = keys.length;
1368
+ var i = 0;
1369
+ var P;
1370
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
1371
+ return O;
1372
+ };
1373
+
1374
+ var document$1 = _globalExports.document;
1375
+ var _html = document$1 && document$1.documentElement;
1376
+
1377
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1378
+ var anObject$4 = _anObject;
1379
+ var dPs = _objectDps;
1380
+ var enumBugKeys = require_enumBugKeys();
1381
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
1382
+ var Empty = function () { /* empty */ };
1383
+ var PROTOTYPE = 'prototype';
1384
+
1385
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1386
+ var createDict = function () {
1387
+ // Thrash, waste and sodomy: IE GC bug
1388
+ var iframe = _domCreate('iframe');
1389
+ var i = enumBugKeys.length;
1390
+ var lt = '<';
1391
+ var gt = '>';
1392
+ var iframeDocument;
1393
+ iframe.style.display = 'none';
1394
+ _html.appendChild(iframe);
1395
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1396
+ // createDict = iframe.contentWindow.Object;
1397
+ // html.removeChild(iframe);
1398
+ iframeDocument = iframe.contentWindow.document;
1399
+ iframeDocument.open();
1400
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1401
+ iframeDocument.close();
1402
+ createDict = iframeDocument.F;
1403
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1404
+ return createDict();
1405
+ };
1406
+
1407
+ var _objectCreate = Object.create || function create(O, Properties) {
1408
+ var result;
1409
+ if (O !== null) {
1410
+ Empty[PROTOTYPE] = anObject$4(O);
1411
+ result = new Empty();
1412
+ Empty[PROTOTYPE] = null;
1413
+ // add "__proto__" for Object.getPrototypeOf polyfill
1414
+ result[IE_PROTO$1] = O;
1415
+ } else result = createDict();
1416
+ return Properties === undefined ? result : dPs(result, Properties);
1417
+ };
1418
+
1419
+ var _wksExports = {};
1420
+ var _wks = {
1421
+ get exports(){ return _wksExports; },
1422
+ set exports(v){ _wksExports = v; },
1423
+ };
1424
+
1425
+ var store = _sharedExports('wks');
1426
+ var uid = _uid;
1427
+ var Symbol$1 = _globalExports.Symbol;
1428
+ var USE_SYMBOL = typeof Symbol$1 == 'function';
1429
+
1430
+ var $exports = _wks.exports = function (name) {
1431
+ return store[name] || (store[name] =
1432
+ USE_SYMBOL && Symbol$1[name] || (USE_SYMBOL ? Symbol$1 : uid)('Symbol.' + name));
1433
+ };
1434
+
1435
+ $exports.store = store;
1436
+
1437
+ var _setToStringTag;
1438
+ var hasRequired_setToStringTag;
1439
+
1440
+ function require_setToStringTag () {
1441
+ if (hasRequired_setToStringTag) return _setToStringTag;
1442
+ hasRequired_setToStringTag = 1;
1443
+ var def = _objectDp.f;
1444
+ var has = _has;
1445
+ var TAG = _wksExports('toStringTag');
1446
+
1447
+ _setToStringTag = function (it, tag, stat) {
1448
+ if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1449
+ };
1450
+ return _setToStringTag;
1451
+ }
1452
+
1453
+ var create = _objectCreate;
1454
+ var descriptor = _propertyDesc;
1455
+ var setToStringTag$1 = require_setToStringTag();
1456
+ var IteratorPrototype = {};
1457
+
1458
+ // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1459
+ _hide(IteratorPrototype, _wksExports('iterator'), function () { return this; });
1460
+
1461
+ var _iterCreate = function (Constructor, NAME, next) {
1462
+ Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
1463
+ setToStringTag$1(Constructor, NAME + ' Iterator');
1464
+ };
1465
+
1466
+ // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1467
+ var has = _has;
1468
+ var toObject = require_toObject();
1469
+ var IE_PROTO = _sharedKey('IE_PROTO');
1470
+ var ObjectProto = Object.prototype;
1471
+
1472
+ var _objectGpo = Object.getPrototypeOf || function (O) {
1473
+ O = toObject(O);
1474
+ if (has(O, IE_PROTO)) return O[IE_PROTO];
1475
+ if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1476
+ return O.constructor.prototype;
1477
+ } return O instanceof Object ? ObjectProto : null;
1478
+ };
1479
+
1480
+ var $export$3 = _export;
1481
+ var redefine = _redefineExports;
1482
+ var hide$1 = _hide;
1483
+ var Iterators$4 = _iterators;
1484
+ var $iterCreate = _iterCreate;
1485
+ var setToStringTag = require_setToStringTag();
1486
+ var getPrototypeOf = _objectGpo;
1487
+ var ITERATOR$2 = _wksExports('iterator');
1488
+ var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
1489
+ var FF_ITERATOR = '@@iterator';
1490
+ var KEYS = 'keys';
1491
+ var VALUES = 'values';
1492
+
1493
+ var returnThis = function () { return this; };
1494
+
1495
+ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
1496
+ $iterCreate(Constructor, NAME, next);
1497
+ var getMethod = function (kind) {
1498
+ if (!BUGGY && kind in proto) return proto[kind];
1499
+ switch (kind) {
1500
+ case KEYS: return function keys() { return new Constructor(this, kind); };
1501
+ case VALUES: return function values() { return new Constructor(this, kind); };
1502
+ } return function entries() { return new Constructor(this, kind); };
1503
+ };
1504
+ var TAG = NAME + ' Iterator';
1505
+ var DEF_VALUES = DEFAULT == VALUES;
1506
+ var VALUES_BUG = false;
1507
+ var proto = Base.prototype;
1508
+ var $native = proto[ITERATOR$2] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
1509
+ var $default = $native || getMethod(DEFAULT);
1510
+ var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
1511
+ var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
1512
+ var methods, key, IteratorPrototype;
1513
+ // Fix native
1514
+ if ($anyNative) {
1515
+ IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
1516
+ if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
1517
+ // Set @@toStringTag to native iterators
1518
+ setToStringTag(IteratorPrototype, TAG, true);
1519
+ }
1520
+ }
1521
+ // fix Array#{values, @@iterator}.name in V8 / FF
1522
+ if (DEF_VALUES && $native && $native.name !== VALUES) {
1523
+ VALUES_BUG = true;
1524
+ $default = function values() { return $native.call(this); };
1525
+ }
1526
+ // Define iterator
1527
+ if ((FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR$2])) {
1528
+ hide$1(proto, ITERATOR$2, $default);
1529
+ }
1530
+ // Plug for library
1531
+ Iterators$4[NAME] = $default;
1532
+ Iterators$4[TAG] = returnThis;
1533
+ if (DEFAULT) {
1534
+ methods = {
1535
+ values: DEF_VALUES ? $default : getMethod(VALUES),
1536
+ keys: IS_SET ? $default : getMethod(KEYS),
1537
+ entries: $entries
1538
+ };
1539
+ if (FORCED) for (key in methods) {
1540
+ if (!(key in proto)) redefine(proto, key, methods[key]);
1541
+ } else $export$3($export$3.P + $export$3.F * (BUGGY || VALUES_BUG), NAME, methods);
1542
+ }
1543
+ return methods;
1544
+ };
1545
+
1546
+ var $at = _stringAt(true);
1547
+
1548
+ // 21.1.3.27 String.prototype[@@iterator]()
1549
+ _iterDefine(String, 'String', function (iterated) {
1550
+ this._t = String(iterated); // target
1551
+ this._i = 0; // next index
1552
+ // 21.1.5.2.1 %StringIteratorPrototype%.next()
1553
+ }, function () {
1554
+ var O = this._t;
1555
+ var index = this._i;
1556
+ var point;
1557
+ if (index >= O.length) return { value: undefined, done: true };
1558
+ point = $at(O, index);
1559
+ this._i += point.length;
1560
+ return { value: point, done: false };
1561
+ });
1562
+
1563
+ var _iterStep = function (done, value) {
1564
+ return { value: value, done: !!done };
1565
+ };
1566
+
1567
+ var step = _iterStep;
1568
+ var Iterators$3 = _iterators;
1569
+ var toIObject = _toIobject;
1570
+
1571
+ // 22.1.3.4 Array.prototype.entries()
1572
+ // 22.1.3.13 Array.prototype.keys()
1573
+ // 22.1.3.29 Array.prototype.values()
1574
+ // 22.1.3.30 Array.prototype[@@iterator]()
1575
+ _iterDefine(Array, 'Array', function (iterated, kind) {
1576
+ this._t = toIObject(iterated); // target
1577
+ this._i = 0; // next index
1578
+ this._k = kind; // kind
1579
+ // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
1580
+ }, function () {
1581
+ var O = this._t;
1582
+ var kind = this._k;
1583
+ var index = this._i++;
1584
+ if (!O || index >= O.length) {
1585
+ this._t = undefined;
1586
+ return step(1);
1587
+ }
1588
+ if (kind == 'keys') return step(0, index);
1589
+ if (kind == 'values') return step(0, O[index]);
1590
+ return step(0, [index, O[index]]);
1591
+ }, 'values');
1592
+
1593
+ // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
1594
+ Iterators$3.Arguments = Iterators$3.Array;
1595
+
1596
+ var global$5 = _globalExports;
1597
+ var hide = _hide;
1598
+ var Iterators$2 = _iterators;
1599
+ var TO_STRING_TAG = _wksExports('toStringTag');
1600
+
1601
+ var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1602
+ 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1603
+ 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1604
+ 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1605
+ 'TextTrackList,TouchList').split(',');
1606
+
1607
+ for (var i = 0; i < DOMIterables.length; i++) {
1608
+ var NAME = DOMIterables[i];
1609
+ var Collection = global$5[NAME];
1610
+ var proto = Collection && Collection.prototype;
1611
+ if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1612
+ Iterators$2[NAME] = Iterators$2.Array;
1613
+ }
1614
+
1615
+ // getting tag from 19.1.3.6 Object.prototype.toString()
1616
+ var cof = _cof;
1617
+ var TAG = _wksExports('toStringTag');
1618
+ // ES3 wrong here
1619
+ var ARG = cof(function () { return arguments; }()) == 'Arguments';
1620
+
1621
+ // fallback for IE11 Script Access Denied error
1622
+ var tryGet = function (it, key) {
1623
+ try {
1624
+ return it[key];
1625
+ } catch (e) { /* empty */ }
1626
+ };
1627
+
1628
+ var _classof = function (it) {
1629
+ var O, T, B;
1630
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1631
+ // @@toStringTag case
1632
+ : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
1633
+ // builtinTag case
1634
+ : ARG ? cof(O)
1635
+ // ES3 arguments fallback
1636
+ : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
1637
+ };
1638
+
1639
+ var _anInstance = function (it, Constructor, name, forbiddenField) {
1640
+ if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
1641
+ throw TypeError(name + ': incorrect invocation!');
1642
+ } return it;
1643
+ };
1644
+
1645
+ var _forOfExports = {};
1646
+ var _forOf = {
1647
+ get exports(){ return _forOfExports; },
1648
+ set exports(v){ _forOfExports = v; },
1649
+ };
1650
+
1651
+ // call something on iterator step with safe closing on error
1652
+ var anObject$3 = _anObject;
1653
+ var _iterCall = function (iterator, fn, value, entries) {
1654
+ try {
1655
+ return entries ? fn(anObject$3(value)[0], value[1]) : fn(value);
1656
+ // 7.4.6 IteratorClose(iterator, completion)
1657
+ } catch (e) {
1658
+ var ret = iterator['return'];
1659
+ if (ret !== undefined) anObject$3(ret.call(iterator));
1660
+ throw e;
1661
+ }
1662
+ };
1663
+
1664
+ // check on default Array iterator
1665
+ var Iterators$1 = _iterators;
1666
+ var ITERATOR$1 = _wksExports('iterator');
1667
+ var ArrayProto = Array.prototype;
1668
+
1669
+ var _isArrayIter = function (it) {
1670
+ return it !== undefined && (Iterators$1.Array === it || ArrayProto[ITERATOR$1] === it);
1671
+ };
1672
+
1673
+ var classof$1 = _classof;
1674
+ var ITERATOR = _wksExports('iterator');
1675
+ var Iterators = _iterators;
1676
+ var core_getIteratorMethod = _coreExports.getIteratorMethod = function (it) {
1677
+ if (it != undefined) return it[ITERATOR]
1678
+ || it['@@iterator']
1679
+ || Iterators[classof$1(it)];
1680
+ };
1681
+
1682
+ var ctx$2 = _ctx;
1683
+ var call = _iterCall;
1684
+ var isArrayIter = _isArrayIter;
1685
+ var anObject$2 = _anObject;
1686
+ var toLength = _toLength;
1687
+ var getIterFn = core_getIteratorMethod;
1688
+ var BREAK = {};
1689
+ var RETURN = {};
1690
+ var exports$1 = _forOf.exports = function (iterable, entries, fn, that, ITERATOR) {
1691
+ var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
1692
+ var f = ctx$2(fn, that, entries ? 2 : 1);
1693
+ var index = 0;
1694
+ var length, step, iterator, result;
1695
+ if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1696
+ // fast case for arrays with default iterator
1697
+ if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
1698
+ result = entries ? f(anObject$2(step = iterable[index])[0], step[1]) : f(iterable[index]);
1699
+ if (result === BREAK || result === RETURN) return result;
1700
+ } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1701
+ result = call(iterator, f, step.value, entries);
1702
+ if (result === BREAK || result === RETURN) return result;
1703
+ }
1704
+ };
1705
+ exports$1.BREAK = BREAK;
1706
+ exports$1.RETURN = RETURN;
1707
+
1708
+ // 7.3.20 SpeciesConstructor(O, defaultConstructor)
1709
+ var anObject$1 = _anObject;
1710
+ var aFunction$2 = _aFunction;
1711
+ var SPECIES = _wksExports('species');
1712
+ var _speciesConstructor = function (O, D) {
1713
+ var C = anObject$1(O).constructor;
1714
+ var S;
1715
+ return C === undefined || (S = anObject$1(C)[SPECIES]) == undefined ? D : aFunction$2(S);
1716
+ };
1717
+
1718
+ // fast apply, http://jsperf.lnkit.com/fast-apply/5
1719
+ var _invoke = function (fn, args, that) {
1720
+ var un = that === undefined;
1721
+ switch (args.length) {
1722
+ case 0: return un ? fn()
1723
+ : fn.call(that);
1724
+ case 1: return un ? fn(args[0])
1725
+ : fn.call(that, args[0]);
1726
+ case 2: return un ? fn(args[0], args[1])
1727
+ : fn.call(that, args[0], args[1]);
1728
+ case 3: return un ? fn(args[0], args[1], args[2])
1729
+ : fn.call(that, args[0], args[1], args[2]);
1730
+ case 4: return un ? fn(args[0], args[1], args[2], args[3])
1731
+ : fn.call(that, args[0], args[1], args[2], args[3]);
1732
+ } return fn.apply(that, args);
1733
+ };
1734
+
1735
+ var ctx$1 = _ctx;
1736
+ var invoke = _invoke;
1737
+ var html = _html;
1738
+ var cel = _domCreate;
1739
+ var global$4 = _globalExports;
1740
+ var process$2 = global$4.process;
1741
+ var setTask = global$4.setImmediate;
1742
+ var clearTask = global$4.clearImmediate;
1743
+ var MessageChannel = global$4.MessageChannel;
1744
+ var Dispatch = global$4.Dispatch;
1745
+ var counter = 0;
1746
+ var queue = {};
1747
+ var ONREADYSTATECHANGE = 'onreadystatechange';
1748
+ var defer, channel, port;
1749
+ var run = function () {
1750
+ var id = +this;
1751
+ // eslint-disable-next-line no-prototype-builtins
1752
+ if (queue.hasOwnProperty(id)) {
1753
+ var fn = queue[id];
1754
+ delete queue[id];
1755
+ fn();
1756
+ }
1757
+ };
1758
+ var listener = function (event) {
1759
+ run.call(event.data);
1760
+ };
1761
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1762
+ if (!setTask || !clearTask) {
1763
+ setTask = function setImmediate(fn) {
1764
+ var args = [];
1765
+ var i = 1;
1766
+ while (arguments.length > i) args.push(arguments[i++]);
1767
+ queue[++counter] = function () {
1768
+ // eslint-disable-next-line no-new-func
1769
+ invoke(typeof fn == 'function' ? fn : Function(fn), args);
1770
+ };
1771
+ defer(counter);
1772
+ return counter;
1773
+ };
1774
+ clearTask = function clearImmediate(id) {
1775
+ delete queue[id];
1776
+ };
1777
+ // Node.js 0.8-
1778
+ if (_cof(process$2) == 'process') {
1779
+ defer = function (id) {
1780
+ process$2.nextTick(ctx$1(run, id, 1));
1781
+ };
1782
+ // Sphere (JS game engine) Dispatch API
1783
+ } else if (Dispatch && Dispatch.now) {
1784
+ defer = function (id) {
1785
+ Dispatch.now(ctx$1(run, id, 1));
1786
+ };
1787
+ // Browsers with MessageChannel, includes WebWorkers
1788
+ } else if (MessageChannel) {
1789
+ channel = new MessageChannel();
1790
+ port = channel.port2;
1791
+ channel.port1.onmessage = listener;
1792
+ defer = ctx$1(port.postMessage, port, 1);
1793
+ // Browsers with postMessage, skip WebWorkers
1794
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1795
+ } else if (global$4.addEventListener && typeof postMessage == 'function' && !global$4.importScripts) {
1796
+ defer = function (id) {
1797
+ global$4.postMessage(id + '', '*');
1798
+ };
1799
+ global$4.addEventListener('message', listener, false);
1800
+ // IE8-
1801
+ } else if (ONREADYSTATECHANGE in cel('script')) {
1802
+ defer = function (id) {
1803
+ html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
1804
+ html.removeChild(this);
1805
+ run.call(id);
1806
+ };
1807
+ };
1808
+ // Rest old browsers
1809
+ } else {
1810
+ defer = function (id) {
1811
+ setTimeout(ctx$1(run, id, 1), 0);
1812
+ };
1813
+ }
1814
+ }
1815
+ var _task = {
1816
+ set: setTask,
1817
+ clear: clearTask
1818
+ };
1819
+
1820
+ var global$3 = _globalExports;
1821
+ var macrotask = _task.set;
1822
+ var Observer = global$3.MutationObserver || global$3.WebKitMutationObserver;
1823
+ var process$1 = global$3.process;
1824
+ var Promise$1 = global$3.Promise;
1825
+ var isNode$1 = _cof(process$1) == 'process';
1826
+
1827
+ var _microtask = function () {
1828
+ var head, last, notify;
1829
+
1830
+ var flush = function () {
1831
+ var parent, fn;
1832
+ if (isNode$1 && (parent = process$1.domain)) parent.exit();
1833
+ while (head) {
1834
+ fn = head.fn;
1835
+ head = head.next;
1836
+ try {
1837
+ fn();
1838
+ } catch (e) {
1839
+ if (head) notify();
1840
+ else last = undefined;
1841
+ throw e;
1842
+ }
1843
+ } last = undefined;
1844
+ if (parent) parent.enter();
1845
+ };
1846
+
1847
+ // Node.js
1848
+ if (isNode$1) {
1849
+ notify = function () {
1850
+ process$1.nextTick(flush);
1851
+ };
1852
+ // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
1853
+ } else if (Observer && !(global$3.navigator && global$3.navigator.standalone)) {
1854
+ var toggle = true;
1855
+ var node = document.createTextNode('');
1856
+ new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
1857
+ notify = function () {
1858
+ node.data = toggle = !toggle;
1859
+ };
1860
+ // environments with maybe non-completely correct, but existent Promise
1861
+ } else if (Promise$1 && Promise$1.resolve) {
1862
+ // Promise.resolve without an argument throws an error in LG WebOS 2
1863
+ var promise = Promise$1.resolve(undefined);
1864
+ notify = function () {
1865
+ promise.then(flush);
1866
+ };
1867
+ // for other environments - macrotask based on:
1868
+ // - setImmediate
1869
+ // - MessageChannel
1870
+ // - window.postMessag
1871
+ // - onreadystatechange
1872
+ // - setTimeout
1873
+ } else {
1874
+ notify = function () {
1875
+ // strange IE + webpack dev server bug - use .call(global)
1876
+ macrotask.call(global$3, flush);
1877
+ };
1878
+ }
1879
+
1880
+ return function (fn) {
1881
+ var task = { fn: fn, next: undefined };
1882
+ if (last) last.next = task;
1883
+ if (!head) {
1884
+ head = task;
1885
+ notify();
1886
+ } last = task;
1887
+ };
1888
+ };
1889
+
1890
+ var _newPromiseCapability = {};
1891
+
1892
+ // 25.4.1.5 NewPromiseCapability(C)
1893
+ var aFunction$1 = _aFunction;
1894
+
1895
+ function PromiseCapability(C) {
1896
+ var resolve, reject;
1897
+ this.promise = new C(function ($$resolve, $$reject) {
1898
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1899
+ resolve = $$resolve;
1900
+ reject = $$reject;
1901
+ });
1902
+ this.resolve = aFunction$1(resolve);
1903
+ this.reject = aFunction$1(reject);
1904
+ }
1905
+
1906
+ _newPromiseCapability.f = function (C) {
1907
+ return new PromiseCapability(C);
1908
+ };
1909
+
1910
+ var _perform = function (exec) {
1911
+ try {
1912
+ return { e: false, v: exec() };
1913
+ } catch (e) {
1914
+ return { e: true, v: e };
1915
+ }
1916
+ };
1917
+
1918
+ var global$2 = _globalExports;
1919
+ var navigator$1 = global$2.navigator;
1920
+
1921
+ var _userAgent = navigator$1 && navigator$1.userAgent || '';
1922
+
1923
+ var anObject = _anObject;
1924
+ var isObject$1 = _isObject;
1925
+ var newPromiseCapability$2 = _newPromiseCapability;
1926
+
1927
+ var _promiseResolve = function (C, x) {
1928
+ anObject(C);
1929
+ if (isObject$1(x) && x.constructor === C) return x;
1930
+ var promiseCapability = newPromiseCapability$2.f(C);
1931
+ var resolve = promiseCapability.resolve;
1932
+ resolve(x);
1933
+ return promiseCapability.promise;
1934
+ };
1935
+
1936
+ var _redefineAll;
1937
+ var hasRequired_redefineAll;
1938
+
1939
+ function require_redefineAll () {
1940
+ if (hasRequired_redefineAll) return _redefineAll;
1941
+ hasRequired_redefineAll = 1;
1942
+ var hide = _hide;
1943
+ _redefineAll = function (target, src, safe) {
1944
+ for (var key in src) {
1945
+ if (safe && target[key]) target[key] = src[key];
1946
+ else hide(target, key, src[key]);
1947
+ } return target;
1948
+ };
1949
+ return _redefineAll;
1950
+ }
1951
+
1952
+ var _setSpecies;
1953
+ var hasRequired_setSpecies;
1954
+
1955
+ function require_setSpecies () {
1956
+ if (hasRequired_setSpecies) return _setSpecies;
1957
+ hasRequired_setSpecies = 1;
1958
+ var global = _globalExports;
1959
+ var core = _coreExports;
1960
+ var dP = _objectDp;
1961
+ var DESCRIPTORS = _descriptors;
1962
+ var SPECIES = _wksExports('species');
1963
+
1964
+ _setSpecies = function (KEY) {
1965
+ var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
1966
+ if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
1967
+ configurable: true,
1968
+ get: function () { return this; }
1969
+ });
1970
+ };
1971
+ return _setSpecies;
1972
+ }
1973
+
1974
+ var _iterDetect;
1975
+ var hasRequired_iterDetect;
1976
+
1977
+ function require_iterDetect () {
1978
+ if (hasRequired_iterDetect) return _iterDetect;
1979
+ hasRequired_iterDetect = 1;
1980
+ var ITERATOR = _wksExports('iterator');
1981
+ var SAFE_CLOSING = false;
1982
+
1983
+ try {
1984
+ var riter = [7][ITERATOR]();
1985
+ riter['return'] = function () { SAFE_CLOSING = true; };
1986
+ // eslint-disable-next-line no-throw-literal
1987
+ Array.from(riter, function () { throw 2; });
1988
+ } catch (e) { /* empty */ }
1989
+
1990
+ _iterDetect = function (exec, skipClosing) {
1991
+ if (!skipClosing && !SAFE_CLOSING) return false;
1992
+ var safe = false;
1993
+ try {
1994
+ var arr = [7];
1995
+ var iter = arr[ITERATOR]();
1996
+ iter.next = function () { return { done: safe = true }; };
1997
+ arr[ITERATOR] = function () { return iter; };
1998
+ exec(arr);
1999
+ } catch (e) { /* empty */ }
2000
+ return safe;
2001
+ };
2002
+ return _iterDetect;
2003
+ }
2004
+
2005
+ var LIBRARY = _library;
2006
+ var global$1 = _globalExports;
2007
+ var ctx = _ctx;
2008
+ var classof = _classof;
2009
+ var $export$2 = _export;
2010
+ var isObject = _isObject;
2011
+ var aFunction = _aFunction;
2012
+ var anInstance = _anInstance;
2013
+ var forOf = _forOfExports;
2014
+ var speciesConstructor$1 = _speciesConstructor;
2015
+ var task = _task.set;
2016
+ var microtask = _microtask();
2017
+ var newPromiseCapabilityModule = _newPromiseCapability;
2018
+ var perform$1 = _perform;
2019
+ var userAgent = _userAgent;
2020
+ var promiseResolve$1 = _promiseResolve;
2021
+ var PROMISE = 'Promise';
2022
+ var TypeError$1 = global$1.TypeError;
2023
+ var process = global$1.process;
2024
+ var versions = process && process.versions;
2025
+ var v8 = versions && versions.v8 || '';
2026
+ var $Promise = global$1[PROMISE];
2027
+ var isNode = classof(process) == 'process';
2028
+ var empty = function () { /* empty */ };
2029
+ var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
2030
+ var newPromiseCapability$1 = newGenericPromiseCapability = newPromiseCapabilityModule.f;
2031
+
2032
+ var USE_NATIVE = !!function () {
2033
+ try {
2034
+ // correct subclassing with @@species support
2035
+ var promise = $Promise.resolve(1);
2036
+ var FakePromise = (promise.constructor = {})[_wksExports('species')] = function (exec) {
2037
+ exec(empty, empty);
2038
+ };
2039
+ // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2040
+ return (isNode || typeof PromiseRejectionEvent == 'function')
2041
+ && promise.then(empty) instanceof FakePromise
2042
+ // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2043
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2044
+ // we can't detect it synchronously, so just check versions
2045
+ && v8.indexOf('6.6') !== 0
2046
+ && userAgent.indexOf('Chrome/66') === -1;
2047
+ } catch (e) { /* empty */ }
2048
+ }();
2049
+
2050
+ // helpers
2051
+ var isThenable = function (it) {
2052
+ var then;
2053
+ return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
2054
+ };
2055
+ var notify = function (promise, isReject) {
2056
+ if (promise._n) return;
2057
+ promise._n = true;
2058
+ var chain = promise._c;
2059
+ microtask(function () {
2060
+ var value = promise._v;
2061
+ var ok = promise._s == 1;
2062
+ var i = 0;
2063
+ var run = function (reaction) {
2064
+ var handler = ok ? reaction.ok : reaction.fail;
2065
+ var resolve = reaction.resolve;
2066
+ var reject = reaction.reject;
2067
+ var domain = reaction.domain;
2068
+ var result, then, exited;
2069
+ try {
2070
+ if (handler) {
2071
+ if (!ok) {
2072
+ if (promise._h == 2) onHandleUnhandled(promise);
2073
+ promise._h = 1;
2074
+ }
2075
+ if (handler === true) result = value;
2076
+ else {
2077
+ if (domain) domain.enter();
2078
+ result = handler(value); // may throw
2079
+ if (domain) {
2080
+ domain.exit();
2081
+ exited = true;
2082
+ }
2083
+ }
2084
+ if (result === reaction.promise) {
2085
+ reject(TypeError$1('Promise-chain cycle'));
2086
+ } else if (then = isThenable(result)) {
2087
+ then.call(result, resolve, reject);
2088
+ } else resolve(result);
2089
+ } else reject(value);
2090
+ } catch (e) {
2091
+ if (domain && !exited) domain.exit();
2092
+ reject(e);
2093
+ }
2094
+ };
2095
+ while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
2096
+ promise._c = [];
2097
+ promise._n = false;
2098
+ if (isReject && !promise._h) onUnhandled(promise);
2099
+ });
2100
+ };
2101
+ var onUnhandled = function (promise) {
2102
+ task.call(global$1, function () {
2103
+ var value = promise._v;
2104
+ var unhandled = isUnhandled(promise);
2105
+ var result, handler, console;
2106
+ if (unhandled) {
2107
+ result = perform$1(function () {
2108
+ if (isNode) {
2109
+ process.emit('unhandledRejection', value, promise);
2110
+ } else if (handler = global$1.onunhandledrejection) {
2111
+ handler({ promise: promise, reason: value });
2112
+ } else if ((console = global$1.console) && console.error) {
2113
+ console.error('Unhandled promise rejection', value);
2114
+ }
2115
+ });
2116
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2117
+ promise._h = isNode || isUnhandled(promise) ? 2 : 1;
2118
+ } promise._a = undefined;
2119
+ if (unhandled && result.e) throw result.v;
2120
+ });
2121
+ };
2122
+ var isUnhandled = function (promise) {
2123
+ return promise._h !== 1 && (promise._a || promise._c).length === 0;
2124
+ };
2125
+ var onHandleUnhandled = function (promise) {
2126
+ task.call(global$1, function () {
2127
+ var handler;
2128
+ if (isNode) {
2129
+ process.emit('rejectionHandled', promise);
2130
+ } else if (handler = global$1.onrejectionhandled) {
2131
+ handler({ promise: promise, reason: promise._v });
2132
+ }
2133
+ });
2134
+ };
2135
+ var $reject = function (value) {
2136
+ var promise = this;
2137
+ if (promise._d) return;
2138
+ promise._d = true;
2139
+ promise = promise._w || promise; // unwrap
2140
+ promise._v = value;
2141
+ promise._s = 2;
2142
+ if (!promise._a) promise._a = promise._c.slice();
2143
+ notify(promise, true);
2144
+ };
2145
+ var $resolve = function (value) {
2146
+ var promise = this;
2147
+ var then;
2148
+ if (promise._d) return;
2149
+ promise._d = true;
2150
+ promise = promise._w || promise; // unwrap
2151
+ try {
2152
+ if (promise === value) throw TypeError$1("Promise can't be resolved itself");
2153
+ if (then = isThenable(value)) {
2154
+ microtask(function () {
2155
+ var wrapper = { _w: promise, _d: false }; // wrap
2156
+ try {
2157
+ then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
2158
+ } catch (e) {
2159
+ $reject.call(wrapper, e);
2160
+ }
2161
+ });
2162
+ } else {
2163
+ promise._v = value;
2164
+ promise._s = 1;
2165
+ notify(promise, false);
2166
+ }
2167
+ } catch (e) {
2168
+ $reject.call({ _w: promise, _d: false }, e); // wrap
2169
+ }
2170
+ };
2171
+
2172
+ // constructor polyfill
2173
+ if (!USE_NATIVE) {
2174
+ // 25.4.3.1 Promise(executor)
2175
+ $Promise = function Promise(executor) {
2176
+ anInstance(this, $Promise, PROMISE, '_h');
2177
+ aFunction(executor);
2178
+ Internal.call(this);
2179
+ try {
2180
+ executor(ctx($resolve, this, 1), ctx($reject, this, 1));
2181
+ } catch (err) {
2182
+ $reject.call(this, err);
2183
+ }
2184
+ };
2185
+ // eslint-disable-next-line no-unused-vars
2186
+ Internal = function Promise(executor) {
2187
+ this._c = []; // <- awaiting reactions
2188
+ this._a = undefined; // <- checked in isUnhandled reactions
2189
+ this._s = 0; // <- state
2190
+ this._d = false; // <- done
2191
+ this._v = undefined; // <- value
2192
+ this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
2193
+ this._n = false; // <- notify
2194
+ };
2195
+ Internal.prototype = require_redefineAll()($Promise.prototype, {
2196
+ // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
2197
+ then: function then(onFulfilled, onRejected) {
2198
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, $Promise));
2199
+ reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
2200
+ reaction.fail = typeof onRejected == 'function' && onRejected;
2201
+ reaction.domain = isNode ? process.domain : undefined;
2202
+ this._c.push(reaction);
2203
+ if (this._a) this._a.push(reaction);
2204
+ if (this._s) notify(this, false);
2205
+ return reaction.promise;
2206
+ },
2207
+ // 25.4.5.1 Promise.prototype.catch(onRejected)
2208
+ 'catch': function (onRejected) {
2209
+ return this.then(undefined, onRejected);
2210
+ }
2211
+ });
2212
+ OwnPromiseCapability = function () {
2213
+ var promise = new Internal();
2214
+ this.promise = promise;
2215
+ this.resolve = ctx($resolve, promise, 1);
2216
+ this.reject = ctx($reject, promise, 1);
2217
+ };
2218
+ newPromiseCapabilityModule.f = newPromiseCapability$1 = function (C) {
2219
+ return C === $Promise || C === Wrapper
2220
+ ? new OwnPromiseCapability(C)
2221
+ : newGenericPromiseCapability(C);
2222
+ };
2223
+ }
2224
+
2225
+ $export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Promise: $Promise });
2226
+ require_setToStringTag()($Promise, PROMISE);
2227
+ require_setSpecies()(PROMISE);
2228
+ Wrapper = _coreExports[PROMISE];
2229
+
2230
+ // statics
2231
+ $export$2($export$2.S + $export$2.F * !USE_NATIVE, PROMISE, {
2232
+ // 25.4.4.5 Promise.reject(r)
2233
+ reject: function reject(r) {
2234
+ var capability = newPromiseCapability$1(this);
2235
+ var $$reject = capability.reject;
2236
+ $$reject(r);
2237
+ return capability.promise;
2238
+ }
2239
+ });
2240
+ $export$2($export$2.S + $export$2.F * (LIBRARY ), PROMISE, {
2241
+ // 25.4.4.6 Promise.resolve(x)
2242
+ resolve: function resolve(x) {
2243
+ return promiseResolve$1(this === Wrapper ? $Promise : this, x);
2244
+ }
2245
+ });
2246
+ $export$2($export$2.S + $export$2.F * !(USE_NATIVE && require_iterDetect()(function (iter) {
2247
+ $Promise.all(iter)['catch'](empty);
2248
+ })), PROMISE, {
2249
+ // 25.4.4.1 Promise.all(iterable)
2250
+ all: function all(iterable) {
2251
+ var C = this;
2252
+ var capability = newPromiseCapability$1(C);
2253
+ var resolve = capability.resolve;
2254
+ var reject = capability.reject;
2255
+ var result = perform$1(function () {
2256
+ var values = [];
2257
+ var index = 0;
2258
+ var remaining = 1;
2259
+ forOf(iterable, false, function (promise) {
2260
+ var $index = index++;
2261
+ var alreadyCalled = false;
2262
+ values.push(undefined);
2263
+ remaining++;
2264
+ C.resolve(promise).then(function (value) {
2265
+ if (alreadyCalled) return;
2266
+ alreadyCalled = true;
2267
+ values[$index] = value;
2268
+ --remaining || resolve(values);
2269
+ }, reject);
2270
+ });
2271
+ --remaining || resolve(values);
2272
+ });
2273
+ if (result.e) reject(result.v);
2274
+ return capability.promise;
2275
+ },
2276
+ // 25.4.4.4 Promise.race(iterable)
2277
+ race: function race(iterable) {
2278
+ var C = this;
2279
+ var capability = newPromiseCapability$1(C);
2280
+ var reject = capability.reject;
2281
+ var result = perform$1(function () {
2282
+ forOf(iterable, false, function (promise) {
2283
+ C.resolve(promise).then(capability.resolve, reject);
2284
+ });
2285
+ });
2286
+ if (result.e) reject(result.v);
2287
+ return capability.promise;
2288
+ }
2289
+ });
2290
+
2291
+ var $export$1 = _export;
2292
+ var core = _coreExports;
2293
+ var global = _globalExports;
2294
+ var speciesConstructor = _speciesConstructor;
2295
+ var promiseResolve = _promiseResolve;
2296
+
2297
+ $export$1($export$1.P + $export$1.R, 'Promise', { 'finally': function (onFinally) {
2298
+ var C = speciesConstructor(this, core.Promise || global.Promise);
2299
+ var isFunction = typeof onFinally == 'function';
2300
+ return this.then(
2301
+ isFunction ? function (x) {
2302
+ return promiseResolve(C, onFinally()).then(function () { return x; });
2303
+ } : onFinally,
2304
+ isFunction ? function (e) {
2305
+ return promiseResolve(C, onFinally()).then(function () { throw e; });
2306
+ } : onFinally
2307
+ );
2308
+ } });
2309
+
2310
+ // https://github.com/tc39/proposal-promise-try
2311
+ var $export = _export;
2312
+ var newPromiseCapability = _newPromiseCapability;
2313
+ var perform = _perform;
2314
+
2315
+ $export($export.S, 'Promise', { 'try': function (callbackfn) {
2316
+ var promiseCapability = newPromiseCapability.f(this);
2317
+ var result = perform(callbackfn);
2318
+ (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
2319
+ return promiseCapability.promise;
2320
+ } });
2321
+
2322
+ var promise = _coreExports.Promise;
2323
+
2324
+ (function (module) {
2325
+ module.exports = { "default": promise, __esModule: true };
2326
+ } (promise$1));
2327
+
2328
+ asyncToGenerator.__esModule = true;
2329
+
2330
+ var _promise = promiseExports;
2331
+
2332
+ var _promise2 = _interopRequireDefault(_promise);
2333
+
2334
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2335
+
2336
+ asyncToGenerator.default = function (fn) {
2337
+ return function () {
2338
+ var gen = fn.apply(this, arguments);
2339
+ return new _promise2.default(function (resolve, reject) {
2340
+ function step(key, arg) {
2341
+ try {
2342
+ var info = gen[key](arg);
2343
+ var value = info.value;
2344
+ } catch (error) {
2345
+ reject(error);
2346
+ return;
2347
+ }
2348
+
2349
+ if (info.done) {
2350
+ resolve(value);
2351
+ } else {
2352
+ return _promise2.default.resolve(value).then(function (value) {
2353
+ step("next", value);
2354
+ }, function (err) {
2355
+ step("throw", err);
2356
+ });
2357
+ }
2358
+ }
2359
+
2360
+ return step("next");
2361
+ });
2362
+ };
2363
+ };
2364
+
2365
+ var browserExports = {};
2366
+ var browser = {
2367
+ get exports(){ return browserExports; },
2368
+ set exports(v){ browserExports = v; },
2369
+ };
2370
+
2371
+ (function (module, exports) {
2372
+
2373
+ exports.__esModule = true;
2374
+ var userAgent = navigator.userAgent.toLowerCase();
2375
+ var browser = {};
2376
+ var uaMatch = void 0;
2377
+ // 判断页面是否被iframe引用
2378
+ if (top.location == location) {
2379
+ if (uaMatch = userAgent.match(/micromessenger\/([\S]+)/)) {
2380
+ browser['name'] = 'wechat';
2381
+ browser['version'] = uaMatch[1];
2382
+ } else if (uaMatch = userAgent.match(/qq\/([\S]+)/i)) {
2383
+ browser['name'] = 'qq';
2384
+ browser['version'] = uaMatch[1];
2385
+ }
2386
+ }
2387
+
2388
+ exports['default'] = browser;
2389
+ module.exports = exports['default'];
2390
+ } (browser, browserExports));
2391
+
2392
+ var requireJsExports = {};
2393
+ var requireJs = {
2394
+ get exports(){ return requireJsExports; },
2395
+ set exports(v){ requireJsExports = v; },
2396
+ };
2397
+
2398
+ (function (module, exports) {
2399
+
2400
+ exports.__esModule = true;
2401
+
2402
+ exports['default'] = function (url, onload) {
2403
+ var doc = document;
2404
+ var head = doc.head || doc.getElementsByTagName('head')[0] || doc.documentElement;
2405
+ var node = doc.createElement('script');
2406
+ node.onload = onload;
2407
+ node.onerror = function () {};
2408
+ node.async = true;
2409
+ node.src = url;
2410
+ head.appendChild(node);
2411
+ };
2412
+
2413
+ module.exports = exports['default'];
2414
+ } (requireJs, requireJsExports));
2415
+
2416
+ (function (module, exports) {
2417
+
2418
+ exports.__esModule = true;
2419
+
2420
+ var _regenerator = regeneratorExports;
2421
+
2422
+ var _regenerator2 = _interopRequireDefault(_regenerator);
2423
+
2424
+ var _extends2 = _extends;
2425
+
2426
+ var _extends3 = _interopRequireDefault(_extends2);
2427
+
2428
+ var _asyncToGenerator2 = asyncToGenerator;
2429
+
2430
+ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
2431
+
2432
+ var share = function () {
2433
+ var _ref = (0, _asyncToGenerator3["default"])( /*#__PURE__*/_regenerator2["default"].mark(function _callee(option) {
2434
+ var defaultOption;
2435
+ return _regenerator2["default"].wrap(function _callee$(_context) {
2436
+ while (1) {
2437
+ switch (_context.prev = _context.next) {
2438
+ case 0:
2439
+ if (!(_browser2["default"].name !== "qq")) {
2440
+ _context.next = 2;
2441
+ break;
2442
+ }
2443
+
2444
+ return _context.abrupt("return");
2445
+
2446
+ case 2:
2447
+ if (window.mqq) {
2448
+ _context.next = 5;
2449
+ break;
2450
+ }
2451
+
2452
+ _context.next = 5;
2453
+ return loadQQSDK();
2454
+
2455
+ case 5:
2456
+ defaultOption = {
2457
+ link: location.href,
2458
+ title: "",
2459
+ desc: "",
2460
+ imgUrl: ""
2461
+ };
2462
+
2463
+
2464
+ setShareInfo((0, _extends3["default"])({}, defaultOption, option));
2465
+
2466
+ case 7:
2467
+ case "end":
2468
+ return _context.stop();
2469
+ }
2470
+ }
2471
+ }, _callee, this);
2472
+ }));
2473
+
2474
+ return function share(_x) {
2475
+ return _ref.apply(this, arguments);
2476
+ };
2477
+ }();
2478
+
2479
+ var _browser = browserExports;
2480
+
2481
+ var _browser2 = _interopRequireDefault(_browser);
2482
+
2483
+ var _requireJs = requireJsExports;
2484
+
2485
+ var _requireJs2 = _interopRequireDefault(_requireJs);
2486
+
2487
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2488
+
2489
+ function loadQQSDK() {
2490
+ return new Promise(function (resolve) {
2491
+ (0, _requireJs2["default"])("//open.mobile.qq.com/sdk/qqapi.js?_bid=152", function () {
2492
+ resolve();
2493
+ });
2494
+ });
2495
+ }
2496
+ var setShareInfo = function setShareInfo(opt) {
2497
+ window.mqq.invoke("data", "setShareInfo", {
2498
+ share_url: opt.link,
2499
+ title: opt.title,
2500
+ desc: opt.desc,
2501
+ image_url: opt.imgUrl
2502
+ });
2503
+ };
2504
+ exports["default"] = share;
2505
+ module.exports = exports['default'];
2506
+ } (qqShare, qqShareExports));
2507
+
2508
+ (function (module, exports) {
2509
+
2510
+ exports.__esModule = true;
2511
+
2512
+ var _qqShare = qqShareExports;
2513
+
2514
+ var _qqShare2 = _interopRequireDefault(_qqShare);
2515
+
2516
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2517
+
2518
+ exports["default"] = _qqShare2["default"];
2519
+ module.exports = exports['default'];
2520
+ } (lib, libExports));
2521
+
7
2522
  /**
8
2523
  * 复制到剪切板
9
2524
  *
@@ -543,7 +3058,8 @@
543
3058
  return formatUrlParams(url, keepParamsObj, forceHistoryMode);
544
3059
  }
545
3060
 
546
- const DEFAULT_SHARE_ICON = 'http://ossweb-img.qq.com/images/pmd/igameapp/logo/log_igame_3.0.png';
3061
+ const MQQ_SOURCE = 'igame_source';
3062
+ const DEFAULT_SHARE_ICON = '';
547
3063
  const DEFAULT_TIP_MAP = {
548
3064
  copyTextSuccess: '复制链接成功,快去粘贴吧!',
549
3065
  copyTextFail: '该浏览器不支持自动复制',
@@ -558,6 +3074,12 @@
558
3074
  QQ: 3,
559
3075
  QZone: 4,
560
3076
  };
3077
+ const FEATURE_IDS = {
3078
+ /** 默认:结构化消息 */
3079
+ DEFAULT: 'webview_default',
3080
+ /** 图片 */
3081
+ IMAGE: 'webview_image',
3082
+ };
561
3083
 
562
3084
  let shareObject = {
563
3085
  title: '',
@@ -572,6 +3094,7 @@
572
3094
  };
573
3095
  let isWzydShare = false; // 显示王者营地样式的分享提示浮层
574
3096
  let wzydShareText = '点击“...”分享链接';
3097
+ let hasInitQQShare = false; // 是否已初始化过QQ分享
575
3098
  function getEnv() {
576
3099
  const ua = navigator.userAgent.toLowerCase();
577
3100
  const env = Object.assign({ ua }, getEnvUAType());
@@ -1183,27 +3706,32 @@
1183
3706
  var _a;
1184
3707
  (_a = shareUiObj.initCommShareTip) === null || _a === void 0 ? void 0 : _a.call(shareUiObj);
1185
3708
  loader('https://pub.idqqimg.com/qqmobile/qqapi.js?_bid=2538', () => {
1186
- var _a, _b;
1187
- (_b = (_a = window === null || window === void 0 ? void 0 : window.mqq) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.setOnShareHandler(
1188
- // http://mqq.oa.com/api.html#js-mqq-core
1189
- (type) => {
1190
- if (type == 0 || type == 1 || type == 2 || type == 3 || type == 11) {
1191
- const param = {
1192
- title: shareObject.title,
1193
- desc: shareObject.desc,
1194
- share_type: type,
1195
- share_url: shareObject.link,
1196
- image_url: shareObject.icon,
1197
- back: true,
1198
- uinType: 0,
1199
- };
1200
- const callback = function () {
1201
- var _a;
1202
- (_a = shareObject.callback) === null || _a === void 0 ? void 0 : _a.call(shareObject); // alert(result.retCode);
1203
- };
1204
- // eslint-disable-next-line no-undef
1205
- window.mqq.ui.shareMessage(param, callback);
1206
- }
3709
+ const source = MQQ_SOURCE;
3710
+ const featureId = FEATURE_IDS.DEFAULT;
3711
+ const shareDataType = libExports.ShareDataType.ark;
3712
+ const commonMsg = {
3713
+ title: shareObject.title || '',
3714
+ desc: shareObject.desc || '',
3715
+ shareUrl: shareObject.link || window.location.href,
3716
+ imageUrl: shareObject.icon || '',
3717
+ };
3718
+ const shareData = {
3719
+ source,
3720
+ featureId,
3721
+ shareDataType,
3722
+ commonMsg,
3723
+ };
3724
+ // 已 init 过
3725
+ if (hasInitQQShare) {
3726
+ libExports.setCustomizeData(shareData);
3727
+ return;
3728
+ }
3729
+ // 初次 init
3730
+ hasInitQQShare = true;
3731
+ libExports.init({
3732
+ source,
3733
+ featureId,
3734
+ shareData,
1207
3735
  });
1208
3736
  });
1209
3737
  }