zmp-sdk 2.19.0-rc.2 → 2.19.0-rc.3

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.
@@ -60,14 +60,14 @@
60
60
  * @param {*} value The value to check.
61
61
  * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
62
62
  */
63
- function isPrototype(value) {
63
+ function isPrototype$1(value) {
64
64
  var Ctor = value && value.constructor,
65
65
  proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$9;
66
66
 
67
67
  return value === proto;
68
68
  }
69
69
 
70
- var _isPrototype = isPrototype;
70
+ var _isPrototype = isPrototype$1;
71
71
 
72
72
  /**
73
73
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -77,18 +77,24 @@
77
77
  * @param {Function} transform The argument transform.
78
78
  * @returns {Function} Returns the new function.
79
79
  */
80
- function overArg(func, transform) {
80
+ function overArg$1(func, transform) {
81
81
  return function(arg) {
82
82
  return func(transform(arg));
83
83
  };
84
84
  }
85
85
 
86
- var _overArg = overArg;
86
+ var _overArg = overArg$1;
87
+
88
+ var overArg = _overArg;
87
89
 
88
90
  /* Built-in method references for those with the same name as other `lodash` methods. */
89
- var nativeKeys = _overArg(Object.keys, Object);
91
+ var nativeKeys$1 = overArg(Object.keys, Object);
92
+
93
+ var _nativeKeys = nativeKeys$1;
90
94
 
91
- var _nativeKeys = nativeKeys;
95
+ var isPrototype = _isPrototype;
96
+
97
+ var nativeKeys = _nativeKeys;
92
98
 
93
99
  /** Used for built-in method references. */
94
100
  var objectProto$8 = Object.prototype;
@@ -103,9 +109,9 @@
103
109
  * @param {Object} object The object to query.
104
110
  * @returns {Array} Returns the array of property names.
105
111
  */
106
- function baseKeys(object) {
107
- if (!_isPrototype(object)) {
108
- return _nativeKeys(object);
112
+ function baseKeys$1(object) {
113
+ if (!isPrototype(object)) {
114
+ return nativeKeys(object);
109
115
  }
110
116
  var result = [];
111
117
  for (var key in Object(object)) {
@@ -116,7 +122,7 @@
116
122
  return result;
117
123
  }
118
124
 
119
- var _baseKeys = baseKeys;
125
+ var _baseKeys = baseKeys$1;
120
126
 
121
127
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
122
128
 
@@ -125,22 +131,28 @@
125
131
  }
126
132
 
127
133
  /** Detect free variable `global` from Node.js. */
128
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
134
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
135
+
136
+ var _freeGlobal = freeGlobal$1;
129
137
 
130
- var _freeGlobal = freeGlobal;
138
+ var freeGlobal = _freeGlobal;
131
139
 
132
140
  /** Detect free variable `self`. */
133
141
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
134
142
 
135
143
  /** Used as a reference to the global object. */
136
- var root = _freeGlobal || freeSelf || Function('return this')();
144
+ var root$1 = freeGlobal || freeSelf || Function('return this')();
137
145
 
138
- var _root = root;
146
+ var _root = root$1;
147
+
148
+ var root = _root;
139
149
 
140
150
  /** Built-in value references. */
141
- var Symbol$1 = _root.Symbol;
151
+ var Symbol$2 = root.Symbol;
152
+
153
+ var _Symbol = Symbol$2;
142
154
 
143
- var _Symbol = Symbol$1;
155
+ var Symbol$1 = _Symbol;
144
156
 
145
157
  /** Used for built-in method references. */
146
158
  var objectProto$7 = Object.prototype;
@@ -156,7 +168,7 @@
156
168
  var nativeObjectToString$1 = objectProto$7.toString;
157
169
 
158
170
  /** Built-in value references. */
159
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
171
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
160
172
 
161
173
  /**
162
174
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -165,7 +177,7 @@
165
177
  * @param {*} value The value to query.
166
178
  * @returns {string} Returns the raw `toStringTag`.
167
179
  */
168
- function getRawTag(value) {
180
+ function getRawTag$1(value) {
169
181
  var isOwn = hasOwnProperty$6.call(value, symToStringTag$1),
170
182
  tag = value[symToStringTag$1];
171
183
 
@@ -185,7 +197,7 @@
185
197
  return result;
186
198
  }
187
199
 
188
- var _getRawTag = getRawTag;
200
+ var _getRawTag = getRawTag$1;
189
201
 
190
202
  /** Used for built-in method references. */
191
203
  var objectProto$6 = Object.prototype;
@@ -204,18 +216,22 @@
204
216
  * @param {*} value The value to convert.
205
217
  * @returns {string} Returns the converted string.
206
218
  */
207
- function objectToString(value) {
219
+ function objectToString$1(value) {
208
220
  return nativeObjectToString.call(value);
209
221
  }
210
222
 
211
- var _objectToString = objectToString;
223
+ var _objectToString = objectToString$1;
224
+
225
+ var getRawTag = _getRawTag;
226
+
227
+ var objectToString = _objectToString;
212
228
 
213
229
  /** `Object#toString` result references. */
214
230
  var nullTag = '[object Null]',
215
231
  undefinedTag = '[object Undefined]';
216
232
 
217
233
  /** Built-in value references. */
218
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
234
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
219
235
 
220
236
  /**
221
237
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -224,16 +240,16 @@
224
240
  * @param {*} value The value to query.
225
241
  * @returns {string} Returns the `toStringTag`.
226
242
  */
227
- function baseGetTag(value) {
243
+ function baseGetTag$1(value) {
228
244
  if (value == null) {
229
245
  return value === undefined ? undefinedTag : nullTag;
230
246
  }
231
247
  return (symToStringTag && symToStringTag in Object(value))
232
- ? _getRawTag(value)
233
- : _objectToString(value);
248
+ ? getRawTag(value)
249
+ : objectToString(value);
234
250
  }
235
251
 
236
- var _baseGetTag = baseGetTag;
252
+ var _baseGetTag = baseGetTag$1;
237
253
 
238
254
  /**
239
255
  * Checks if `value` is the
@@ -267,6 +283,10 @@
267
283
 
268
284
  var isObject_1 = isObject;
269
285
 
286
+ var isObject$1 = isObject_1;
287
+
288
+ var baseGetTag = _baseGetTag;
289
+
270
290
  /** `Object#toString` result references. */
271
291
  var asyncTag = '[object AsyncFunction]',
272
292
  funcTag$1 = '[object Function]',
@@ -296,20 +316,24 @@
296
316
  }
297
317
  // The use of `Object#toString` avoids issues with the `typeof` operator
298
318
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
299
- var tag = _baseGetTag(value);
319
+ var tag = baseGetTag(value);
300
320
  return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
301
321
  }
302
322
 
303
323
  var isFunction_1 = isFunction;
304
324
 
325
+ var isFunction$1 = isFunction_1;
326
+
305
327
  /** Used to detect overreaching core-js shims. */
306
- var coreJsData = _root['__core-js_shared__'];
328
+ var coreJsData$1 = root['__core-js_shared__'];
329
+
330
+ var _coreJsData = coreJsData$1;
307
331
 
308
- var _coreJsData = coreJsData;
332
+ var coreJsData = _coreJsData;
309
333
 
310
334
  /** Used to detect methods masquerading as native. */
311
335
  var maskSrcKey = (function() {
312
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
336
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
313
337
  return uid ? ('Symbol(src)_1.' + uid) : '';
314
338
  }());
315
339
 
@@ -320,11 +344,11 @@
320
344
  * @param {Function} func The function to check.
321
345
  * @returns {boolean} Returns `true` if `func` is masked, else `false`.
322
346
  */
323
- function isMasked(func) {
347
+ function isMasked$1(func) {
324
348
  return !!maskSrcKey && (maskSrcKey in func);
325
349
  }
326
350
 
327
- var _isMasked = isMasked;
351
+ var _isMasked = isMasked$1;
328
352
 
329
353
  /** Used for built-in method references. */
330
354
  var funcProto$1 = Function.prototype;
@@ -339,7 +363,7 @@
339
363
  * @param {Function} func The function to convert.
340
364
  * @returns {string} Returns the source code.
341
365
  */
342
- function toSource(func) {
366
+ function toSource$1(func) {
343
367
  if (func != null) {
344
368
  try {
345
369
  return funcToString$1.call(func);
@@ -351,7 +375,11 @@
351
375
  return '';
352
376
  }
353
377
 
354
- var _toSource = toSource;
378
+ var _toSource = toSource$1;
379
+
380
+ var isMasked = _isMasked;
381
+
382
+ var toSource = _toSource;
355
383
 
356
384
  /**
357
385
  * Used to match `RegExp`
@@ -386,15 +414,15 @@
386
414
  * @returns {boolean} Returns `true` if `value` is a native function,
387
415
  * else `false`.
388
416
  */
389
- function baseIsNative(value) {
390
- if (!isObject_1(value) || _isMasked(value)) {
417
+ function baseIsNative$1(value) {
418
+ if (!isObject_1(value) || isMasked(value)) {
391
419
  return false;
392
420
  }
393
421
  var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
394
- return pattern.test(_toSource(value));
422
+ return pattern.test(toSource(value));
395
423
  }
396
424
 
397
- var _baseIsNative = baseIsNative;
425
+ var _baseIsNative = baseIsNative$1;
398
426
 
399
427
  /**
400
428
  * Gets the value at `key` of `object`.
@@ -404,11 +432,15 @@
404
432
  * @param {string} key The key of the property to get.
405
433
  * @returns {*} Returns the property value.
406
434
  */
407
- function getValue(object, key) {
435
+ function getValue$1(object, key) {
408
436
  return object == null ? undefined : object[key];
409
437
  }
410
438
 
411
- var _getValue = getValue;
439
+ var _getValue = getValue$1;
440
+
441
+ var baseIsNative = _baseIsNative;
442
+
443
+ var getValue = _getValue;
412
444
 
413
445
  /**
414
446
  * Gets the native function at `key` of `object`.
@@ -418,37 +450,49 @@
418
450
  * @param {string} key The key of the method to get.
419
451
  * @returns {*} Returns the function if it's native, else `undefined`.
420
452
  */
421
- function getNative(object, key) {
422
- var value = _getValue(object, key);
423
- return _baseIsNative(value) ? value : undefined;
453
+ function getNative$1(object, key) {
454
+ var value = getValue(object, key);
455
+ return baseIsNative(value) ? value : undefined;
424
456
  }
425
457
 
426
- var _getNative = getNative;
458
+ var _getNative = getNative$1;
459
+
460
+ var getNative = _getNative;
427
461
 
428
462
  /* Built-in method references that are verified to be native. */
429
- var DataView = _getNative(_root, 'DataView');
463
+ var DataView$1 = getNative(root, 'DataView');
430
464
 
431
- var _DataView = DataView;
465
+ var _DataView = DataView$1;
432
466
 
433
467
  /* Built-in method references that are verified to be native. */
434
- var Map$1 = _getNative(_root, 'Map');
468
+ var Map$2 = getNative(root, 'Map');
435
469
 
436
- var _Map = Map$1;
470
+ var _Map = Map$2;
437
471
 
438
472
  /* Built-in method references that are verified to be native. */
439
- var Promise$1 = _getNative(_root, 'Promise');
473
+ var Promise$2 = getNative(root, 'Promise');
440
474
 
441
- var _Promise = Promise$1;
475
+ var _Promise = Promise$2;
442
476
 
443
477
  /* Built-in method references that are verified to be native. */
444
- var Set$1 = _getNative(_root, 'Set');
478
+ var Set$2 = getNative(root, 'Set');
445
479
 
446
- var _Set = Set$1;
480
+ var _Set = Set$2;
447
481
 
448
482
  /* Built-in method references that are verified to be native. */
449
- var WeakMap$1 = _getNative(_root, 'WeakMap');
483
+ var WeakMap$2 = getNative(root, 'WeakMap');
484
+
485
+ var _WeakMap = WeakMap$2;
486
+
487
+ var DataView = _DataView;
488
+
489
+ var Map$1 = _Map;
450
490
 
451
- var _WeakMap = WeakMap$1;
491
+ var Promise$1 = _Promise;
492
+
493
+ var Set$1 = _Set;
494
+
495
+ var WeakMap$1 = _WeakMap;
452
496
 
453
497
  /** `Object#toString` result references. */
454
498
  var mapTag$2 = '[object Map]',
@@ -460,11 +504,11 @@
460
504
  var dataViewTag$1 = '[object DataView]';
461
505
 
462
506
  /** Used to detect maps, sets, and weakmaps. */
463
- var dataViewCtorString = _toSource(_DataView),
464
- mapCtorString = _toSource(_Map),
465
- promiseCtorString = _toSource(_Promise),
466
- setCtorString = _toSource(_Set),
467
- weakMapCtorString = _toSource(_WeakMap);
507
+ var dataViewCtorString = toSource(DataView),
508
+ mapCtorString = toSource(Map$1),
509
+ promiseCtorString = toSource(Promise$1),
510
+ setCtorString = toSource(Set$1),
511
+ weakMapCtorString = toSource(WeakMap$1);
468
512
 
469
513
  /**
470
514
  * Gets the `toStringTag` of `value`.
@@ -473,18 +517,18 @@
473
517
  * @param {*} value The value to query.
474
518
  * @returns {string} Returns the `toStringTag`.
475
519
  */
476
- var getTag = _baseGetTag;
520
+ var getTag$1 = baseGetTag;
477
521
 
478
522
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
479
- if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
480
- (_Map && getTag(new _Map) != mapTag$2) ||
481
- (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
482
- (_Set && getTag(new _Set) != setTag$2) ||
483
- (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
484
- getTag = function(value) {
485
- var result = _baseGetTag(value),
523
+ if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
524
+ (Map$1 && getTag$1(new Map$1) != mapTag$2) ||
525
+ (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
526
+ (Set$1 && getTag$1(new Set$1) != setTag$2) ||
527
+ (WeakMap$1 && getTag$1(new WeakMap$1) != weakMapTag$1)) {
528
+ getTag$1 = function(value) {
529
+ var result = baseGetTag(value),
486
530
  Ctor = result == objectTag$1 ? value.constructor : undefined,
487
- ctorString = Ctor ? _toSource(Ctor) : '';
531
+ ctorString = Ctor ? toSource(Ctor) : '';
488
532
 
489
533
  if (ctorString) {
490
534
  switch (ctorString) {
@@ -499,7 +543,7 @@
499
543
  };
500
544
  }
501
545
 
502
- var _getTag = getTag;
546
+ var _getTag = getTag$1;
503
547
 
504
548
  /**
505
549
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -525,11 +569,13 @@
525
569
  * _.isObjectLike(null);
526
570
  * // => false
527
571
  */
528
- function isObjectLike(value) {
572
+ function isObjectLike$1(value) {
529
573
  return value != null && typeof value == 'object';
530
574
  }
531
575
 
532
- var isObjectLike_1 = isObjectLike;
576
+ var isObjectLike_1 = isObjectLike$1;
577
+
578
+ var isObjectLike = isObjectLike_1;
533
579
 
534
580
  /** `Object#toString` result references. */
535
581
  var argsTag$1 = '[object Arguments]';
@@ -541,11 +587,13 @@
541
587
  * @param {*} value The value to check.
542
588
  * @returns {boolean} Returns `true` if `value` is an `arguments` object,
543
589
  */
544
- function baseIsArguments(value) {
545
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag$1;
590
+ function baseIsArguments$1(value) {
591
+ return isObjectLike(value) && baseGetTag(value) == argsTag$1;
546
592
  }
547
593
 
548
- var _baseIsArguments = baseIsArguments;
594
+ var _baseIsArguments = baseIsArguments$1;
595
+
596
+ var baseIsArguments = _baseIsArguments;
549
597
 
550
598
  /** Used for built-in method references. */
551
599
  var objectProto$4 = Object.prototype;
@@ -574,12 +622,12 @@
574
622
  * _.isArguments([1, 2, 3]);
575
623
  * // => false
576
624
  */
577
- var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
578
- return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') &&
625
+ var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
626
+ return isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
579
627
  !propertyIsEnumerable.call(value, 'callee');
580
628
  };
581
629
 
582
- var isArguments_1 = isArguments;
630
+ var isArguments_1 = isArguments$1;
583
631
 
584
632
  /**
585
633
  * Checks if `value` is classified as an `Array` object.
@@ -608,6 +656,8 @@
608
656
 
609
657
  var isArray_1 = isArray$1;
610
658
 
659
+ var isArray$2 = isArray_1;
660
+
611
661
  /** Used as references for various `Number` constants. */
612
662
  var MAX_SAFE_INTEGER$1 = 9007199254740991;
613
663
 
@@ -637,12 +687,14 @@
637
687
  * _.isLength('3');
638
688
  * // => false
639
689
  */
640
- function isLength(value) {
690
+ function isLength$1(value) {
641
691
  return typeof value == 'number' &&
642
692
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
643
693
  }
644
694
 
645
- var isLength_1 = isLength;
695
+ var isLength_1 = isLength$1;
696
+
697
+ var isLength = isLength_1;
646
698
 
647
699
  /**
648
700
  * Checks if `value` is array-like. A value is considered array-like if it's
@@ -669,11 +721,11 @@
669
721
  * _.isArrayLike(_.noop);
670
722
  * // => false
671
723
  */
672
- function isArrayLike(value) {
673
- return value != null && isLength_1(value.length) && !isFunction_1(value);
724
+ function isArrayLike$1(value) {
725
+ return value != null && isLength(value.length) && !isFunction_1(value);
674
726
  }
675
727
 
676
- var isArrayLike_1 = isArrayLike;
728
+ var isArrayLike_1 = isArrayLike$1;
677
729
 
678
730
  /**
679
731
  * This method returns `false`.
@@ -688,11 +740,13 @@
688
740
  * _.times(2, _.stubFalse);
689
741
  * // => [false, false]
690
742
  */
691
- function stubFalse() {
743
+ function stubFalse$1() {
692
744
  return false;
693
745
  }
694
746
 
695
- var stubFalse_1 = stubFalse;
747
+ var stubFalse_1 = stubFalse$1;
748
+
749
+ var stubFalse = stubFalse_1;
696
750
 
697
751
  var isBuffer_1 = createCommonjsModule(function (module, exports) {
698
752
  /** Detect free variable `exports`. */
@@ -705,7 +759,7 @@
705
759
  var moduleExports = freeModule && freeModule.exports === freeExports;
706
760
 
707
761
  /** Built-in value references. */
708
- var Buffer = moduleExports ? _root.Buffer : undefined;
762
+ var Buffer = moduleExports ? root.Buffer : undefined;
709
763
 
710
764
  /* Built-in method references for those with the same name as other `lodash` methods. */
711
765
  var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
@@ -727,7 +781,7 @@
727
781
  * _.isBuffer(new Uint8Array(2));
728
782
  * // => false
729
783
  */
730
- var isBuffer = nativeIsBuffer || stubFalse_1;
784
+ var isBuffer = nativeIsBuffer || stubFalse;
731
785
 
732
786
  module.exports = isBuffer;
733
787
  });
@@ -782,12 +836,12 @@
782
836
  * @param {*} value The value to check.
783
837
  * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
784
838
  */
785
- function baseIsTypedArray(value) {
786
- return isObjectLike_1(value) &&
787
- isLength_1(value.length) && !!typedArrayTags[_baseGetTag(value)];
839
+ function baseIsTypedArray$1(value) {
840
+ return isObjectLike(value) &&
841
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
788
842
  }
789
843
 
790
- var _baseIsTypedArray = baseIsTypedArray;
844
+ var _baseIsTypedArray = baseIsTypedArray$1;
791
845
 
792
846
  /**
793
847
  * The base implementation of `_.unary` without support for storing metadata.
@@ -796,13 +850,13 @@
796
850
  * @param {Function} func The function to cap arguments for.
797
851
  * @returns {Function} Returns the new capped function.
798
852
  */
799
- function baseUnary(func) {
853
+ function baseUnary$1(func) {
800
854
  return function(value) {
801
855
  return func(value);
802
856
  };
803
857
  }
804
858
 
805
- var _baseUnary = baseUnary;
859
+ var _baseUnary = baseUnary$1;
806
860
 
807
861
  var _nodeUtil = createCommonjsModule(function (module, exports) {
808
862
  /** Detect free variable `exports`. */
@@ -815,7 +869,7 @@
815
869
  var moduleExports = freeModule && freeModule.exports === freeExports;
816
870
 
817
871
  /** Detect free variable `process` from Node.js. */
818
- var freeProcess = moduleExports && _freeGlobal.process;
872
+ var freeProcess = moduleExports && freeGlobal.process;
819
873
 
820
874
  /** Used to access faster Node.js helpers. */
821
875
  var nodeUtil = (function() {
@@ -835,8 +889,14 @@
835
889
  module.exports = nodeUtil;
836
890
  });
837
891
 
892
+ var baseIsTypedArray = _baseIsTypedArray;
893
+
894
+ var baseUnary = _baseUnary;
895
+
896
+ var nodeUtil = _nodeUtil;
897
+
838
898
  /* Node.js helper references. */
839
- var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
899
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
840
900
 
841
901
  /**
842
902
  * Checks if `value` is classified as a typed array.
@@ -855,9 +915,21 @@
855
915
  * _.isTypedArray([]);
856
916
  * // => false
857
917
  */
858
- var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
918
+ var isTypedArray$1 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
919
+
920
+ var isTypedArray_1 = isTypedArray$1;
921
+
922
+ var baseKeys = _baseKeys;
859
923
 
860
- var isTypedArray_1 = isTypedArray;
924
+ var getTag = _getTag;
925
+
926
+ var isArguments = isArguments_1;
927
+
928
+ var isArrayLike = isArrayLike_1;
929
+
930
+ var isBuffer = isBuffer_1;
931
+
932
+ var isTypedArray = isTypedArray_1;
861
933
 
862
934
  /** `Object#toString` result references. */
863
935
  var mapTag = '[object Map]',
@@ -906,17 +978,17 @@
906
978
  if (value == null) {
907
979
  return true;
908
980
  }
909
- if (isArrayLike_1(value) &&
981
+ if (isArrayLike(value) &&
910
982
  (isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
911
- isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
983
+ isBuffer(value) || isTypedArray(value) || isArguments(value))) {
912
984
  return !value.length;
913
985
  }
914
- var tag = _getTag(value);
986
+ var tag = getTag(value);
915
987
  if (tag == mapTag || tag == setTag) {
916
988
  return !value.size;
917
989
  }
918
- if (_isPrototype(value)) {
919
- return !_baseKeys(value).length;
990
+ if (isPrototype(value)) {
991
+ return !baseKeys(value).length;
920
992
  }
921
993
  for (var key in value) {
922
994
  if (hasOwnProperty$3.call(value, key)) {
@@ -928,6 +1000,8 @@
928
1000
 
929
1001
  var isEmpty_1 = isEmpty;
930
1002
 
1003
+ var isEmpty$1 = isEmpty_1;
1004
+
931
1005
  /**
932
1006
  * Checks if `value` is `undefined`.
933
1007
  *
@@ -951,6 +1025,8 @@
951
1025
 
952
1026
  var isUndefined_1 = isUndefined;
953
1027
 
1028
+ var isUndefined$1 = isUndefined_1;
1029
+
954
1030
  /**
955
1031
  * Checks if `value` is `null`.
956
1032
  *
@@ -974,6 +1050,8 @@
974
1050
 
975
1051
  var isNull_1 = isNull;
976
1052
 
1053
+ var isNull$1 = isNull_1;
1054
+
977
1055
  /** `Object#toString` result references. */
978
1056
  var stringTag = '[object String]';
979
1057
 
@@ -996,11 +1074,13 @@
996
1074
  */
997
1075
  function isString(value) {
998
1076
  return typeof value == 'string' ||
999
- (!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
1077
+ (!isArray_1(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
1000
1078
  }
1001
1079
 
1002
1080
  var isString_1 = isString;
1003
1081
 
1082
+ var isString$1 = isString_1;
1083
+
1004
1084
  /** `Object#toString` result references. */
1005
1085
  var numberTag = '[object Number]';
1006
1086
 
@@ -1032,11 +1112,13 @@
1032
1112
  */
1033
1113
  function isNumber(value) {
1034
1114
  return typeof value == 'number' ||
1035
- (isObjectLike_1(value) && _baseGetTag(value) == numberTag);
1115
+ (isObjectLike(value) && baseGetTag(value) == numberTag);
1036
1116
  }
1037
1117
 
1038
1118
  var isNumber_1 = isNumber;
1039
1119
 
1120
+ var isNumber$1 = isNumber_1;
1121
+
1040
1122
  /** `Object#toString` result references. */
1041
1123
  var regexpTag = '[object RegExp]';
1042
1124
 
@@ -1047,14 +1129,16 @@
1047
1129
  * @param {*} value The value to check.
1048
1130
  * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
1049
1131
  */
1050
- function baseIsRegExp(value) {
1051
- return isObjectLike_1(value) && _baseGetTag(value) == regexpTag;
1132
+ function baseIsRegExp$1(value) {
1133
+ return isObjectLike(value) && baseGetTag(value) == regexpTag;
1052
1134
  }
1053
1135
 
1054
- var _baseIsRegExp = baseIsRegExp;
1136
+ var _baseIsRegExp = baseIsRegExp$1;
1137
+
1138
+ var baseIsRegExp = _baseIsRegExp;
1055
1139
 
1056
1140
  /* Node.js helper references. */
1057
- var nodeIsRegExp = _nodeUtil && _nodeUtil.isRegExp;
1141
+ var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
1058
1142
 
1059
1143
  /**
1060
1144
  * Checks if `value` is classified as a `RegExp` object.
@@ -1073,10 +1157,12 @@
1073
1157
  * _.isRegExp('/abc/');
1074
1158
  * // => false
1075
1159
  */
1076
- var isRegExp = nodeIsRegExp ? _baseUnary(nodeIsRegExp) : _baseIsRegExp;
1160
+ var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
1077
1161
 
1078
1162
  var isRegExp_1 = isRegExp;
1079
1163
 
1164
+ var isRegExp$1 = isRegExp_1;
1165
+
1080
1166
  /** `Object#toString` result references. */
1081
1167
  var symbolTag = '[object Symbol]';
1082
1168
 
@@ -1097,12 +1183,14 @@
1097
1183
  * _.isSymbol('abc');
1098
1184
  * // => false
1099
1185
  */
1100
- function isSymbol(value) {
1186
+ function isSymbol$1(value) {
1101
1187
  return typeof value == 'symbol' ||
1102
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1188
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
1103
1189
  }
1104
1190
 
1105
- var isSymbol_1 = isSymbol;
1191
+ var isSymbol_1 = isSymbol$1;
1192
+
1193
+ var isSymbol = isSymbol_1;
1106
1194
 
1107
1195
  /** Used to match property names within property paths. */
1108
1196
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -1116,25 +1204,27 @@
1116
1204
  * @param {Object} [object] The object to query keys on.
1117
1205
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1118
1206
  */
1119
- function isKey(value, object) {
1207
+ function isKey$1(value, object) {
1120
1208
  if (isArray_1(value)) {
1121
1209
  return false;
1122
1210
  }
1123
1211
  var type = typeof value;
1124
1212
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1125
- value == null || isSymbol_1(value)) {
1213
+ value == null || isSymbol(value)) {
1126
1214
  return true;
1127
1215
  }
1128
1216
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1129
1217
  (object != null && value in Object(object));
1130
1218
  }
1131
1219
 
1132
- var _isKey = isKey;
1220
+ var _isKey = isKey$1;
1133
1221
 
1134
1222
  /* Built-in method references that are verified to be native. */
1135
- var nativeCreate = _getNative(Object, 'create');
1223
+ var nativeCreate$1 = getNative(Object, 'create');
1136
1224
 
1137
- var _nativeCreate = nativeCreate;
1225
+ var _nativeCreate = nativeCreate$1;
1226
+
1227
+ var nativeCreate = _nativeCreate;
1138
1228
 
1139
1229
  /**
1140
1230
  * Removes all key-value entries from the hash.
@@ -1143,12 +1233,12 @@
1143
1233
  * @name clear
1144
1234
  * @memberOf Hash
1145
1235
  */
1146
- function hashClear() {
1147
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1236
+ function hashClear$1() {
1237
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1148
1238
  this.size = 0;
1149
1239
  }
1150
1240
 
1151
- var _hashClear = hashClear;
1241
+ var _hashClear = hashClear$1;
1152
1242
 
1153
1243
  /**
1154
1244
  * Removes `key` and its value from the hash.
@@ -1160,13 +1250,13 @@
1160
1250
  * @param {string} key The key of the value to remove.
1161
1251
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1162
1252
  */
1163
- function hashDelete(key) {
1253
+ function hashDelete$1(key) {
1164
1254
  var result = this.has(key) && delete this.__data__[key];
1165
1255
  this.size -= result ? 1 : 0;
1166
1256
  return result;
1167
1257
  }
1168
1258
 
1169
- var _hashDelete = hashDelete;
1259
+ var _hashDelete = hashDelete$1;
1170
1260
 
1171
1261
  /** Used to stand-in for `undefined` hash values. */
1172
1262
  var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
@@ -1186,16 +1276,16 @@
1186
1276
  * @param {string} key The key of the value to get.
1187
1277
  * @returns {*} Returns the entry value.
1188
1278
  */
1189
- function hashGet(key) {
1279
+ function hashGet$1(key) {
1190
1280
  var data = this.__data__;
1191
- if (_nativeCreate) {
1281
+ if (nativeCreate) {
1192
1282
  var result = data[key];
1193
1283
  return result === HASH_UNDEFINED$1 ? undefined : result;
1194
1284
  }
1195
1285
  return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
1196
1286
  }
1197
1287
 
1198
- var _hashGet = hashGet;
1288
+ var _hashGet = hashGet$1;
1199
1289
 
1200
1290
  /** Used for built-in method references. */
1201
1291
  var objectProto$1 = Object.prototype;
@@ -1212,12 +1302,12 @@
1212
1302
  * @param {string} key The key of the entry to check.
1213
1303
  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1214
1304
  */
1215
- function hashHas(key) {
1305
+ function hashHas$1(key) {
1216
1306
  var data = this.__data__;
1217
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1307
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1218
1308
  }
1219
1309
 
1220
- var _hashHas = hashHas;
1310
+ var _hashHas = hashHas$1;
1221
1311
 
1222
1312
  /** Used to stand-in for `undefined` hash values. */
1223
1313
  var HASH_UNDEFINED = '__lodash_hash_undefined__';
@@ -1232,14 +1322,24 @@
1232
1322
  * @param {*} value The value to set.
1233
1323
  * @returns {Object} Returns the hash instance.
1234
1324
  */
1235
- function hashSet(key, value) {
1325
+ function hashSet$1(key, value) {
1236
1326
  var data = this.__data__;
1237
1327
  this.size += this.has(key) ? 0 : 1;
1238
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1328
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1239
1329
  return this;
1240
1330
  }
1241
1331
 
1242
- var _hashSet = hashSet;
1332
+ var _hashSet = hashSet$1;
1333
+
1334
+ var hashClear = _hashClear;
1335
+
1336
+ var hashDelete = _hashDelete;
1337
+
1338
+ var hashGet = _hashGet;
1339
+
1340
+ var hashHas = _hashHas;
1341
+
1342
+ var hashSet = _hashSet;
1243
1343
 
1244
1344
  /**
1245
1345
  * Creates a hash object.
@@ -1248,7 +1348,7 @@
1248
1348
  * @constructor
1249
1349
  * @param {Array} [entries] The key-value pairs to cache.
1250
1350
  */
1251
- function Hash(entries) {
1351
+ function Hash$1(entries) {
1252
1352
  var index = -1,
1253
1353
  length = entries == null ? 0 : entries.length;
1254
1354
 
@@ -1260,13 +1360,13 @@
1260
1360
  }
1261
1361
 
1262
1362
  // Add methods to `Hash`.
1263
- Hash.prototype.clear = _hashClear;
1264
- Hash.prototype['delete'] = _hashDelete;
1265
- Hash.prototype.get = _hashGet;
1266
- Hash.prototype.has = _hashHas;
1267
- Hash.prototype.set = _hashSet;
1363
+ Hash$1.prototype.clear = hashClear;
1364
+ Hash$1.prototype['delete'] = hashDelete;
1365
+ Hash$1.prototype.get = hashGet;
1366
+ Hash$1.prototype.has = hashHas;
1367
+ Hash$1.prototype.set = hashSet;
1268
1368
 
1269
- var _Hash = Hash;
1369
+ var _Hash = Hash$1;
1270
1370
 
1271
1371
  /**
1272
1372
  * Removes all key-value entries from the list cache.
@@ -1275,12 +1375,12 @@
1275
1375
  * @name clear
1276
1376
  * @memberOf ListCache
1277
1377
  */
1278
- function listCacheClear() {
1378
+ function listCacheClear$1() {
1279
1379
  this.__data__ = [];
1280
1380
  this.size = 0;
1281
1381
  }
1282
1382
 
1283
- var _listCacheClear = listCacheClear;
1383
+ var _listCacheClear = listCacheClear$1;
1284
1384
 
1285
1385
  /**
1286
1386
  * Performs a
@@ -1314,11 +1414,13 @@
1314
1414
  * _.eq(NaN, NaN);
1315
1415
  * // => true
1316
1416
  */
1317
- function eq(value, other) {
1417
+ function eq$1(value, other) {
1318
1418
  return value === other || (value !== value && other !== other);
1319
1419
  }
1320
1420
 
1321
- var eq_1 = eq;
1421
+ var eq_1 = eq$1;
1422
+
1423
+ var eq = eq_1;
1322
1424
 
1323
1425
  /**
1324
1426
  * Gets the index at which the `key` is found in `array` of key-value pairs.
@@ -1328,17 +1430,19 @@
1328
1430
  * @param {*} key The key to search for.
1329
1431
  * @returns {number} Returns the index of the matched value, else `-1`.
1330
1432
  */
1331
- function assocIndexOf(array, key) {
1433
+ function assocIndexOf$1(array, key) {
1332
1434
  var length = array.length;
1333
1435
  while (length--) {
1334
- if (eq_1(array[length][0], key)) {
1436
+ if (eq(array[length][0], key)) {
1335
1437
  return length;
1336
1438
  }
1337
1439
  }
1338
1440
  return -1;
1339
1441
  }
1340
1442
 
1341
- var _assocIndexOf = assocIndexOf;
1443
+ var _assocIndexOf = assocIndexOf$1;
1444
+
1445
+ var assocIndexOf = _assocIndexOf;
1342
1446
 
1343
1447
  /** Used for built-in method references. */
1344
1448
  var arrayProto = Array.prototype;
@@ -1355,9 +1459,9 @@
1355
1459
  * @param {string} key The key of the value to remove.
1356
1460
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1357
1461
  */
1358
- function listCacheDelete(key) {
1462
+ function listCacheDelete$1(key) {
1359
1463
  var data = this.__data__,
1360
- index = _assocIndexOf(data, key);
1464
+ index = assocIndexOf(data, key);
1361
1465
 
1362
1466
  if (index < 0) {
1363
1467
  return false;
@@ -1372,7 +1476,7 @@
1372
1476
  return true;
1373
1477
  }
1374
1478
 
1375
- var _listCacheDelete = listCacheDelete;
1479
+ var _listCacheDelete = listCacheDelete$1;
1376
1480
 
1377
1481
  /**
1378
1482
  * Gets the list cache value for `key`.
@@ -1383,14 +1487,14 @@
1383
1487
  * @param {string} key The key of the value to get.
1384
1488
  * @returns {*} Returns the entry value.
1385
1489
  */
1386
- function listCacheGet(key) {
1490
+ function listCacheGet$1(key) {
1387
1491
  var data = this.__data__,
1388
- index = _assocIndexOf(data, key);
1492
+ index = assocIndexOf(data, key);
1389
1493
 
1390
1494
  return index < 0 ? undefined : data[index][1];
1391
1495
  }
1392
1496
 
1393
- var _listCacheGet = listCacheGet;
1497
+ var _listCacheGet = listCacheGet$1;
1394
1498
 
1395
1499
  /**
1396
1500
  * Checks if a list cache value for `key` exists.
@@ -1401,11 +1505,11 @@
1401
1505
  * @param {string} key The key of the entry to check.
1402
1506
  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1403
1507
  */
1404
- function listCacheHas(key) {
1405
- return _assocIndexOf(this.__data__, key) > -1;
1508
+ function listCacheHas$1(key) {
1509
+ return assocIndexOf(this.__data__, key) > -1;
1406
1510
  }
1407
1511
 
1408
- var _listCacheHas = listCacheHas;
1512
+ var _listCacheHas = listCacheHas$1;
1409
1513
 
1410
1514
  /**
1411
1515
  * Sets the list cache `key` to `value`.
@@ -1417,9 +1521,9 @@
1417
1521
  * @param {*} value The value to set.
1418
1522
  * @returns {Object} Returns the list cache instance.
1419
1523
  */
1420
- function listCacheSet(key, value) {
1524
+ function listCacheSet$1(key, value) {
1421
1525
  var data = this.__data__,
1422
- index = _assocIndexOf(data, key);
1526
+ index = assocIndexOf(data, key);
1423
1527
 
1424
1528
  if (index < 0) {
1425
1529
  ++this.size;
@@ -1430,7 +1534,17 @@
1430
1534
  return this;
1431
1535
  }
1432
1536
 
1433
- var _listCacheSet = listCacheSet;
1537
+ var _listCacheSet = listCacheSet$1;
1538
+
1539
+ var listCacheClear = _listCacheClear;
1540
+
1541
+ var listCacheDelete = _listCacheDelete;
1542
+
1543
+ var listCacheGet = _listCacheGet;
1544
+
1545
+ var listCacheHas = _listCacheHas;
1546
+
1547
+ var listCacheSet = _listCacheSet;
1434
1548
 
1435
1549
  /**
1436
1550
  * Creates an list cache object.
@@ -1439,7 +1553,7 @@
1439
1553
  * @constructor
1440
1554
  * @param {Array} [entries] The key-value pairs to cache.
1441
1555
  */
1442
- function ListCache(entries) {
1556
+ function ListCache$1(entries) {
1443
1557
  var index = -1,
1444
1558
  length = entries == null ? 0 : entries.length;
1445
1559
 
@@ -1451,13 +1565,17 @@
1451
1565
  }
1452
1566
 
1453
1567
  // Add methods to `ListCache`.
1454
- ListCache.prototype.clear = _listCacheClear;
1455
- ListCache.prototype['delete'] = _listCacheDelete;
1456
- ListCache.prototype.get = _listCacheGet;
1457
- ListCache.prototype.has = _listCacheHas;
1458
- ListCache.prototype.set = _listCacheSet;
1568
+ ListCache$1.prototype.clear = listCacheClear;
1569
+ ListCache$1.prototype['delete'] = listCacheDelete;
1570
+ ListCache$1.prototype.get = listCacheGet;
1571
+ ListCache$1.prototype.has = listCacheHas;
1572
+ ListCache$1.prototype.set = listCacheSet;
1573
+
1574
+ var _ListCache = ListCache$1;
1459
1575
 
1460
- var _ListCache = ListCache;
1576
+ var Hash = _Hash;
1577
+
1578
+ var ListCache = _ListCache;
1461
1579
 
1462
1580
  /**
1463
1581
  * Removes all key-value entries from the map.
@@ -1466,16 +1584,16 @@
1466
1584
  * @name clear
1467
1585
  * @memberOf MapCache
1468
1586
  */
1469
- function mapCacheClear() {
1587
+ function mapCacheClear$1() {
1470
1588
  this.size = 0;
1471
1589
  this.__data__ = {
1472
- 'hash': new _Hash,
1473
- 'map': new (_Map || _ListCache),
1474
- 'string': new _Hash
1590
+ 'hash': new Hash,
1591
+ 'map': new (Map$1 || ListCache),
1592
+ 'string': new Hash
1475
1593
  };
1476
1594
  }
1477
1595
 
1478
- var _mapCacheClear = mapCacheClear;
1596
+ var _mapCacheClear = mapCacheClear$1;
1479
1597
 
1480
1598
  /**
1481
1599
  * Checks if `value` is suitable for use as unique object key.
@@ -1484,14 +1602,16 @@
1484
1602
  * @param {*} value The value to check.
1485
1603
  * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1486
1604
  */
1487
- function isKeyable(value) {
1605
+ function isKeyable$1(value) {
1488
1606
  var type = typeof value;
1489
1607
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1490
1608
  ? (value !== '__proto__')
1491
1609
  : (value === null);
1492
1610
  }
1493
1611
 
1494
- var _isKeyable = isKeyable;
1612
+ var _isKeyable = isKeyable$1;
1613
+
1614
+ var isKeyable = _isKeyable;
1495
1615
 
1496
1616
  /**
1497
1617
  * Gets the data for `map`.
@@ -1501,14 +1621,16 @@
1501
1621
  * @param {string} key The reference key.
1502
1622
  * @returns {*} Returns the map data.
1503
1623
  */
1504
- function getMapData(map, key) {
1624
+ function getMapData$1(map, key) {
1505
1625
  var data = map.__data__;
1506
- return _isKeyable(key)
1626
+ return isKeyable(key)
1507
1627
  ? data[typeof key == 'string' ? 'string' : 'hash']
1508
1628
  : data.map;
1509
1629
  }
1510
1630
 
1511
- var _getMapData = getMapData;
1631
+ var _getMapData = getMapData$1;
1632
+
1633
+ var getMapData = _getMapData;
1512
1634
 
1513
1635
  /**
1514
1636
  * Removes `key` and its value from the map.
@@ -1519,13 +1641,13 @@
1519
1641
  * @param {string} key The key of the value to remove.
1520
1642
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1521
1643
  */
1522
- function mapCacheDelete(key) {
1523
- var result = _getMapData(this, key)['delete'](key);
1644
+ function mapCacheDelete$1(key) {
1645
+ var result = getMapData(this, key)['delete'](key);
1524
1646
  this.size -= result ? 1 : 0;
1525
1647
  return result;
1526
1648
  }
1527
1649
 
1528
- var _mapCacheDelete = mapCacheDelete;
1650
+ var _mapCacheDelete = mapCacheDelete$1;
1529
1651
 
1530
1652
  /**
1531
1653
  * Gets the map value for `key`.
@@ -1536,11 +1658,11 @@
1536
1658
  * @param {string} key The key of the value to get.
1537
1659
  * @returns {*} Returns the entry value.
1538
1660
  */
1539
- function mapCacheGet(key) {
1540
- return _getMapData(this, key).get(key);
1661
+ function mapCacheGet$1(key) {
1662
+ return getMapData(this, key).get(key);
1541
1663
  }
1542
1664
 
1543
- var _mapCacheGet = mapCacheGet;
1665
+ var _mapCacheGet = mapCacheGet$1;
1544
1666
 
1545
1667
  /**
1546
1668
  * Checks if a map value for `key` exists.
@@ -1551,11 +1673,11 @@
1551
1673
  * @param {string} key The key of the entry to check.
1552
1674
  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1553
1675
  */
1554
- function mapCacheHas(key) {
1555
- return _getMapData(this, key).has(key);
1676
+ function mapCacheHas$1(key) {
1677
+ return getMapData(this, key).has(key);
1556
1678
  }
1557
1679
 
1558
- var _mapCacheHas = mapCacheHas;
1680
+ var _mapCacheHas = mapCacheHas$1;
1559
1681
 
1560
1682
  /**
1561
1683
  * Sets the map `key` to `value`.
@@ -1567,8 +1689,8 @@
1567
1689
  * @param {*} value The value to set.
1568
1690
  * @returns {Object} Returns the map cache instance.
1569
1691
  */
1570
- function mapCacheSet(key, value) {
1571
- var data = _getMapData(this, key),
1692
+ function mapCacheSet$1(key, value) {
1693
+ var data = getMapData(this, key),
1572
1694
  size = data.size;
1573
1695
 
1574
1696
  data.set(key, value);
@@ -1576,7 +1698,17 @@
1576
1698
  return this;
1577
1699
  }
1578
1700
 
1579
- var _mapCacheSet = mapCacheSet;
1701
+ var _mapCacheSet = mapCacheSet$1;
1702
+
1703
+ var mapCacheClear = _mapCacheClear;
1704
+
1705
+ var mapCacheDelete = _mapCacheDelete;
1706
+
1707
+ var mapCacheGet = _mapCacheGet;
1708
+
1709
+ var mapCacheHas = _mapCacheHas;
1710
+
1711
+ var mapCacheSet = _mapCacheSet;
1580
1712
 
1581
1713
  /**
1582
1714
  * Creates a map cache object to store key-value pairs.
@@ -1585,7 +1717,7 @@
1585
1717
  * @constructor
1586
1718
  * @param {Array} [entries] The key-value pairs to cache.
1587
1719
  */
1588
- function MapCache(entries) {
1720
+ function MapCache$1(entries) {
1589
1721
  var index = -1,
1590
1722
  length = entries == null ? 0 : entries.length;
1591
1723
 
@@ -1597,13 +1729,15 @@
1597
1729
  }
1598
1730
 
1599
1731
  // Add methods to `MapCache`.
1600
- MapCache.prototype.clear = _mapCacheClear;
1601
- MapCache.prototype['delete'] = _mapCacheDelete;
1602
- MapCache.prototype.get = _mapCacheGet;
1603
- MapCache.prototype.has = _mapCacheHas;
1604
- MapCache.prototype.set = _mapCacheSet;
1732
+ MapCache$1.prototype.clear = mapCacheClear;
1733
+ MapCache$1.prototype['delete'] = mapCacheDelete;
1734
+ MapCache$1.prototype.get = mapCacheGet;
1735
+ MapCache$1.prototype.has = mapCacheHas;
1736
+ MapCache$1.prototype.set = mapCacheSet;
1605
1737
 
1606
- var _MapCache = MapCache;
1738
+ var _MapCache = MapCache$1;
1739
+
1740
+ var MapCache = _MapCache;
1607
1741
 
1608
1742
  /** Error message constants. */
1609
1743
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -1652,7 +1786,7 @@
1652
1786
  * // Replace `_.memoize.Cache`.
1653
1787
  * _.memoize.Cache = WeakMap;
1654
1788
  */
1655
- function memoize(func, resolver) {
1789
+ function memoize$1(func, resolver) {
1656
1790
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1657
1791
  throw new TypeError(FUNC_ERROR_TEXT);
1658
1792
  }
@@ -1668,14 +1802,16 @@
1668
1802
  memoized.cache = cache.set(key, result) || cache;
1669
1803
  return result;
1670
1804
  };
1671
- memoized.cache = new (memoize.Cache || _MapCache);
1805
+ memoized.cache = new (memoize$1.Cache || MapCache);
1672
1806
  return memoized;
1673
1807
  }
1674
1808
 
1675
1809
  // Expose `MapCache`.
1676
- memoize.Cache = _MapCache;
1810
+ memoize$1.Cache = MapCache;
1811
+
1812
+ var memoize_1 = memoize$1;
1677
1813
 
1678
- var memoize_1 = memoize;
1814
+ var memoize = memoize_1;
1679
1815
 
1680
1816
  /** Used as the maximum memoize cache size. */
1681
1817
  var MAX_MEMOIZE_SIZE = 500;
@@ -1688,8 +1824,8 @@
1688
1824
  * @param {Function} func The function to have its output memoized.
1689
1825
  * @returns {Function} Returns the new memoized function.
1690
1826
  */
1691
- function memoizeCapped(func) {
1692
- var result = memoize_1(func, function(key) {
1827
+ function memoizeCapped$1(func) {
1828
+ var result = memoize(func, function(key) {
1693
1829
  if (cache.size === MAX_MEMOIZE_SIZE) {
1694
1830
  cache.clear();
1695
1831
  }
@@ -1700,7 +1836,9 @@
1700
1836
  return result;
1701
1837
  }
1702
1838
 
1703
- var _memoizeCapped = memoizeCapped;
1839
+ var _memoizeCapped = memoizeCapped$1;
1840
+
1841
+ var memoizeCapped = _memoizeCapped;
1704
1842
 
1705
1843
  /** Used to match property names within property paths. */
1706
1844
  var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
@@ -1715,7 +1853,7 @@
1715
1853
  * @param {string} string The string to convert.
1716
1854
  * @returns {Array} Returns the property path array.
1717
1855
  */
1718
- var stringToPath = _memoizeCapped(function(string) {
1856
+ var stringToPath$1 = memoizeCapped(function(string) {
1719
1857
  var result = [];
1720
1858
  if (string.charCodeAt(0) === 46 /* . */) {
1721
1859
  result.push('');
@@ -1726,7 +1864,7 @@
1726
1864
  return result;
1727
1865
  });
1728
1866
 
1729
- var _stringToPath = stringToPath;
1867
+ var _stringToPath = stringToPath$1;
1730
1868
 
1731
1869
  /**
1732
1870
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -1737,7 +1875,7 @@
1737
1875
  * @param {Function} iteratee The function invoked per iteration.
1738
1876
  * @returns {Array} Returns the new mapped array.
1739
1877
  */
1740
- function arrayMap(array, iteratee) {
1878
+ function arrayMap$1(array, iteratee) {
1741
1879
  var index = -1,
1742
1880
  length = array == null ? 0 : array.length,
1743
1881
  result = Array(length);
@@ -1748,13 +1886,15 @@
1748
1886
  return result;
1749
1887
  }
1750
1888
 
1751
- var _arrayMap = arrayMap;
1889
+ var _arrayMap = arrayMap$1;
1890
+
1891
+ var arrayMap = _arrayMap;
1752
1892
 
1753
1893
  /** Used as references for various `Number` constants. */
1754
1894
  var INFINITY$1 = 1 / 0;
1755
1895
 
1756
1896
  /** Used to convert symbols to primitives and strings. */
1757
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1897
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
1758
1898
  symbolToString = symbolProto ? symbolProto.toString : undefined;
1759
1899
 
1760
1900
  /**
@@ -1765,23 +1905,25 @@
1765
1905
  * @param {*} value The value to process.
1766
1906
  * @returns {string} Returns the string.
1767
1907
  */
1768
- function baseToString(value) {
1908
+ function baseToString$1(value) {
1769
1909
  // Exit early for strings to avoid a performance hit in some environments.
1770
1910
  if (typeof value == 'string') {
1771
1911
  return value;
1772
1912
  }
1773
1913
  if (isArray_1(value)) {
1774
1914
  // Recursively convert values (susceptible to call stack limits).
1775
- return _arrayMap(value, baseToString) + '';
1915
+ return arrayMap(value, baseToString$1) + '';
1776
1916
  }
1777
- if (isSymbol_1(value)) {
1917
+ if (isSymbol(value)) {
1778
1918
  return symbolToString ? symbolToString.call(value) : '';
1779
1919
  }
1780
1920
  var result = (value + '');
1781
1921
  return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1782
1922
  }
1783
1923
 
1784
- var _baseToString = baseToString;
1924
+ var _baseToString = baseToString$1;
1925
+
1926
+ var baseToString = _baseToString;
1785
1927
 
1786
1928
  /**
1787
1929
  * Converts `value` to a string. An empty string is returned for `null`
@@ -1804,11 +1946,17 @@
1804
1946
  * _.toString([1, 2, 3]);
1805
1947
  * // => '1,2,3'
1806
1948
  */
1807
- function toString(value) {
1808
- return value == null ? '' : _baseToString(value);
1949
+ function toString$1(value) {
1950
+ return value == null ? '' : baseToString(value);
1809
1951
  }
1810
1952
 
1811
- var toString_1 = toString;
1953
+ var toString_1 = toString$1;
1954
+
1955
+ var isKey = _isKey;
1956
+
1957
+ var stringToPath = _stringToPath;
1958
+
1959
+ var toString = toString_1;
1812
1960
 
1813
1961
  /**
1814
1962
  * Casts `value` to a path array if it's not one.
@@ -1818,14 +1966,14 @@
1818
1966
  * @param {Object} [object] The object to query keys on.
1819
1967
  * @returns {Array} Returns the cast property path array.
1820
1968
  */
1821
- function castPath(value, object) {
1969
+ function castPath$1(value, object) {
1822
1970
  if (isArray_1(value)) {
1823
1971
  return value;
1824
1972
  }
1825
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1973
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
1826
1974
  }
1827
1975
 
1828
- var _castPath = castPath;
1976
+ var _castPath = castPath$1;
1829
1977
 
1830
1978
  /** Used as references for various `Number` constants. */
1831
1979
  var INFINITY = 1 / 0;
@@ -1837,15 +1985,19 @@
1837
1985
  * @param {*} value The value to inspect.
1838
1986
  * @returns {string|symbol} Returns the key.
1839
1987
  */
1840
- function toKey(value) {
1841
- if (typeof value == 'string' || isSymbol_1(value)) {
1988
+ function toKey$1(value) {
1989
+ if (typeof value == 'string' || isSymbol(value)) {
1842
1990
  return value;
1843
1991
  }
1844
1992
  var result = (value + '');
1845
1993
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1846
1994
  }
1847
1995
 
1848
- var _toKey = toKey;
1996
+ var _toKey = toKey$1;
1997
+
1998
+ var castPath = _castPath;
1999
+
2000
+ var toKey = _toKey;
1849
2001
 
1850
2002
  /**
1851
2003
  * The base implementation of `_.get` without support for default values.
@@ -1855,19 +2007,21 @@
1855
2007
  * @param {Array|string} path The path of the property to get.
1856
2008
  * @returns {*} Returns the resolved value.
1857
2009
  */
1858
- function baseGet(object, path) {
1859
- path = _castPath(path, object);
2010
+ function baseGet$1(object, path) {
2011
+ path = castPath(path, object);
1860
2012
 
1861
2013
  var index = 0,
1862
2014
  length = path.length;
1863
2015
 
1864
2016
  while (object != null && index < length) {
1865
- object = object[_toKey(path[index++])];
2017
+ object = object[toKey(path[index++])];
1866
2018
  }
1867
2019
  return (index && index == length) ? object : undefined;
1868
2020
  }
1869
2021
 
1870
- var _baseGet = baseGet;
2022
+ var _baseGet = baseGet$1;
2023
+
2024
+ var baseGet = _baseGet;
1871
2025
 
1872
2026
  /**
1873
2027
  * Gets the value at `path` of `object`. If the resolved value is
@@ -1895,21 +2049,25 @@
1895
2049
  * // => 'default'
1896
2050
  */
1897
2051
  function get(object, path, defaultValue) {
1898
- var result = object == null ? undefined : _baseGet(object, path);
2052
+ var result = object == null ? undefined : baseGet(object, path);
1899
2053
  return result === undefined ? defaultValue : result;
1900
2054
  }
1901
2055
 
1902
2056
  var get_1 = get;
1903
2057
 
1904
- var defineProperty = (function() {
2058
+ var get$1 = get_1;
2059
+
2060
+ var defineProperty$1 = (function() {
1905
2061
  try {
1906
- var func = _getNative(Object, 'defineProperty');
2062
+ var func = getNative(Object, 'defineProperty');
1907
2063
  func({}, '', {});
1908
2064
  return func;
1909
2065
  } catch (e) {}
1910
2066
  }());
1911
2067
 
1912
- var _defineProperty = defineProperty;
2068
+ var _defineProperty = defineProperty$1;
2069
+
2070
+ var defineProperty = _defineProperty;
1913
2071
 
1914
2072
  /**
1915
2073
  * The base implementation of `assignValue` and `assignMergeValue` without
@@ -1920,9 +2078,9 @@
1920
2078
  * @param {string} key The key of the property to assign.
1921
2079
  * @param {*} value The value to assign.
1922
2080
  */
1923
- function baseAssignValue(object, key, value) {
1924
- if (key == '__proto__' && _defineProperty) {
1925
- _defineProperty(object, key, {
2081
+ function baseAssignValue$1(object, key, value) {
2082
+ if (key == '__proto__' && defineProperty) {
2083
+ defineProperty(object, key, {
1926
2084
  'configurable': true,
1927
2085
  'enumerable': true,
1928
2086
  'value': value,
@@ -1933,7 +2091,9 @@
1933
2091
  }
1934
2092
  }
1935
2093
 
1936
- var _baseAssignValue = baseAssignValue;
2094
+ var _baseAssignValue = baseAssignValue$1;
2095
+
2096
+ var baseAssignValue = _baseAssignValue;
1937
2097
 
1938
2098
  /** Used for built-in method references. */
1939
2099
  var objectProto = Object.prototype;
@@ -1951,15 +2111,15 @@
1951
2111
  * @param {string} key The key of the property to assign.
1952
2112
  * @param {*} value The value to assign.
1953
2113
  */
1954
- function assignValue(object, key, value) {
2114
+ function assignValue$1(object, key, value) {
1955
2115
  var objValue = object[key];
1956
- if (!(hasOwnProperty.call(object, key) && eq_1(objValue, value)) ||
2116
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
1957
2117
  (value === undefined && !(key in object))) {
1958
- _baseAssignValue(object, key, value);
2118
+ baseAssignValue(object, key, value);
1959
2119
  }
1960
2120
  }
1961
2121
 
1962
- var _assignValue = assignValue;
2122
+ var _assignValue = assignValue$1;
1963
2123
 
1964
2124
  /** Used as references for various `Number` constants. */
1965
2125
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -1975,7 +2135,7 @@
1975
2135
  * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1976
2136
  * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1977
2137
  */
1978
- function isIndex(value, length) {
2138
+ function isIndex$1(value, length) {
1979
2139
  var type = typeof value;
1980
2140
  length = length == null ? MAX_SAFE_INTEGER : length;
1981
2141
 
@@ -1985,7 +2145,11 @@
1985
2145
  (value > -1 && value % 1 == 0 && value < length);
1986
2146
  }
1987
2147
 
1988
- var _isIndex = isIndex;
2148
+ var _isIndex = isIndex$1;
2149
+
2150
+ var assignValue = _assignValue;
2151
+
2152
+ var isIndex = _isIndex;
1989
2153
 
1990
2154
  /**
1991
2155
  * The base implementation of `_.set`.
@@ -1997,11 +2161,11 @@
1997
2161
  * @param {Function} [customizer] The function to customize path creation.
1998
2162
  * @returns {Object} Returns `object`.
1999
2163
  */
2000
- function baseSet(object, path, value, customizer) {
2164
+ function baseSet$1(object, path, value, customizer) {
2001
2165
  if (!isObject_1(object)) {
2002
2166
  return object;
2003
2167
  }
2004
- path = _castPath(path, object);
2168
+ path = castPath(path, object);
2005
2169
 
2006
2170
  var index = -1,
2007
2171
  length = path.length,
@@ -2009,7 +2173,7 @@
2009
2173
  nested = object;
2010
2174
 
2011
2175
  while (nested != null && ++index < length) {
2012
- var key = _toKey(path[index]),
2176
+ var key = toKey(path[index]),
2013
2177
  newValue = value;
2014
2178
 
2015
2179
  if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
@@ -2022,16 +2186,18 @@
2022
2186
  if (newValue === undefined) {
2023
2187
  newValue = isObject_1(objValue)
2024
2188
  ? objValue
2025
- : (_isIndex(path[index + 1]) ? [] : {});
2189
+ : (isIndex(path[index + 1]) ? [] : {});
2026
2190
  }
2027
2191
  }
2028
- _assignValue(nested, key, newValue);
2192
+ assignValue(nested, key, newValue);
2029
2193
  nested = nested[key];
2030
2194
  }
2031
2195
  return object;
2032
2196
  }
2033
2197
 
2034
- var _baseSet = baseSet;
2198
+ var _baseSet = baseSet$1;
2199
+
2200
+ var baseSet = _baseSet;
2035
2201
 
2036
2202
  /**
2037
2203
  * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
@@ -2062,23 +2228,25 @@
2062
2228
  * // => 5
2063
2229
  */
2064
2230
  function set(object, path, value) {
2065
- return object == null ? object : _baseSet(object, path, value);
2231
+ return object == null ? object : baseSet(object, path, value);
2066
2232
  }
2067
2233
 
2068
2234
  var set_1 = set;
2069
2235
 
2236
+ var set$1 = set_1;
2237
+
2070
2238
  var _ = {
2071
- isEmpty: isEmpty_1,
2072
- isNull: isNull_1,
2073
- isUndefined: isUndefined_1,
2074
- isFunction: isFunction_1,
2075
- isObject: isObject_1,
2076
- isString: isString_1,
2077
- isNumber: isNumber_1,
2078
- isArray: isArray_1,
2079
- isRegExp: isRegExp_1,
2080
- get: get_1,
2081
- set: set_1
2239
+ isEmpty: isEmpty$1,
2240
+ isNull: isNull$1,
2241
+ isUndefined: isUndefined$1,
2242
+ isFunction: isFunction$1,
2243
+ isObject: isObject$1,
2244
+ isString: isString$1,
2245
+ isNumber: isNumber$1,
2246
+ isArray: isArray$2,
2247
+ isRegExp: isRegExp$1,
2248
+ get: get$1,
2249
+ set: set$1
2082
2250
  };
2083
2251
 
2084
2252
  function Debug(name) {
@@ -2086,9 +2254,7 @@
2086
2254
  return window.Debug(name);
2087
2255
  }
2088
2256
  return function (...args) {
2089
- if (process.env.NODE_ENV === 'development') {
2090
- console.log(name, ...args);
2091
- }
2257
+ if (process.env.NODE_ENV === 'development') ;
2092
2258
  };
2093
2259
  }
2094
2260
 
@@ -2140,7 +2306,7 @@
2140
2306
  ShareSheetType[ShareSheetType["video"] = 12] = "video";
2141
2307
  ShareSheetType[ShareSheetType["link"] = 4] = "link";
2142
2308
  ShareSheetType[ShareSheetType["oa"] = 5] = "oa";
2143
- ShareSheetType[ShareSheetType["zmp"] = 20] = "zmp";
2309
+ ShareSheetType[ShareSheetType["zmp"] = 22] = "zmp";
2144
2310
  })(ShareSheetType || (ShareSheetType = {}));
2145
2311
  var OrientationType;
2146
2312
  (function (OrientationType) {
@@ -2804,7 +2970,7 @@
2804
2970
  fail.call(null, errorParsed, this);
2805
2971
  }
2806
2972
  else {
2807
- console.error('Error:', errorParsed);
2973
+ reject(errorParsed);
2808
2974
  }
2809
2975
  }
2810
2976
  }));
@@ -2831,12 +2997,9 @@
2831
2997
  }
2832
2998
  }
2833
2999
  const { handler } = catchDecoratorStore;
2834
- if (!_.isNull(handler) && _.isFunction(handler)) {
2835
- handler.call(null, key, error, this);
2836
- }
2837
- else {
2838
- console.warn(error.message);
2839
- }
3000
+ const errorParsed = handler.call(null, key, error, this);
3001
+ window.zmpSentry && window.zmpSentry.throwError(errorParsed.toString());
3002
+ throw errorParsed;
2840
3003
  }
2841
3004
  };
2842
3005
  return descriptor;
@@ -2947,7 +3110,8 @@
2947
3110
  getParameterByName: getParameterByName,
2948
3111
  getParamsAsObject: getParamsAsObject,
2949
3112
  toQueryString: toQueryString,
2950
- };
3113
+ };
3114
+ var queryString = QueryString;
2951
3115
 
2952
3116
  const REGEXP_SPECIAL_UNICODE = new RegExp('[\\u0300-\\u036f]', 'g');
2953
3117
  const REGEXP_ACCENT_D = new RegExp('[đ|Đ]', 'g');
@@ -3269,7 +3433,7 @@
3269
3433
  if (!_.isUndefined(currentVersion)) {
3270
3434
  inputData.currentVersion = currentVersion;
3271
3435
  }
3272
- const api = QueryString.appendToUrl(`${API_DOMAIN}${H5_API.GET_APP_INFO}`, inputData);
3436
+ const api = queryString.appendToUrl(`${API_DOMAIN}${H5_API.GET_APP_INFO}`, inputData);
3273
3437
  const msgApi = yield fetch(api, {
3274
3438
  credentials: 'include'
3275
3439
  });
@@ -3629,7 +3793,9 @@
3629
3793
  }
3630
3794
  });
3631
3795
 
3632
- class ZMPEEmitter extends eventemitter3 {
3796
+ var EventEmitter = eventemitter3;
3797
+
3798
+ class ZMPEEmitter extends EventEmitter {
3633
3799
  constructor() {
3634
3800
  super();
3635
3801
  this.debug = Debug("zmp:event-emitter");
@@ -3741,9 +3907,9 @@
3741
3907
  }
3742
3908
  function execute(url, method, params, cb) {
3743
3909
  params.suppress_http_code = 1;
3744
- var data = QueryString.encode(params);
3910
+ var data = queryString.encode(params);
3745
3911
  if (method != 'post') {
3746
- url = QueryString.appendToUrl(url, data);
3912
+ url = queryString.appendToUrl(url, data);
3747
3913
  data = '';
3748
3914
  }
3749
3915
  var request = createCORSRequest(method, url);
@@ -3774,9 +3940,10 @@
3774
3940
  }
3775
3941
  var CORSRequest = {
3776
3942
  execute: execute
3777
- };
3943
+ };
3944
+ var CORSRequest$1 = CORSRequest;
3778
3945
 
3779
- class ZaloJSBridge extends eventemitter3 {
3946
+ class ZaloJSBridge extends EventEmitter {
3780
3947
  constructor() {
3781
3948
  super();
3782
3949
  this.debug = Debug('zmp:ZaloJSBridge');
@@ -3827,7 +3994,7 @@
3827
3994
  }
3828
3995
  sendLogData(data) {
3829
3996
  try {
3830
- CORSRequest.execute('https://h5.zalo.me/log/async', 'post', {
3997
+ CORSRequest$1.execute('https://h5.zalo.me/log/async', 'post', {
3831
3998
  appId: window.APP_ID,
3832
3999
  data: JSON.stringify(data)
3833
4000
  }, (response) => { });
@@ -4068,7 +4235,7 @@
4068
4235
  }
4069
4236
  _ZJSBridgeProvider_bridge = new WeakMap();
4070
4237
 
4071
- var version = "2.19.0-rc.2";
4238
+ var version = "2.19.0-rc.3";
4072
4239
 
4073
4240
  class Basics {
4074
4241
  /**
@@ -4422,7 +4589,8 @@
4422
4589
  }
4423
4590
  }
4424
4591
  _Logger_logLevel = new WeakMap(), _Logger_friendly = new WeakMap(), _Logger_content = new WeakMap(), _Logger_metric = new WeakMap(), _Logger_internalLog = new WeakMap();
4425
- const logger = new Logger();
4592
+ const logger = new Logger();
4593
+ var logger$1 = logger;
4426
4594
 
4427
4595
  class Device {
4428
4596
  /**
@@ -4521,7 +4689,7 @@
4521
4689
  callback(res);
4522
4690
  })
4523
4691
  .catch((error) => {
4524
- logger.error(error, 'onNetworkStatusChange');
4692
+ logger$1.error(error, 'onNetworkStatusChange');
4525
4693
  });
4526
4694
  });
4527
4695
  });
@@ -5058,7 +5226,7 @@
5058
5226
  }
5059
5227
  }
5060
5228
  catch (error) {
5061
- logger.error(error, 'LocalResourceStorage > findAllCurrentDataByApp');
5229
+ logger$1.error(error, 'LocalResourceStorage > findAllCurrentDataByApp');
5062
5230
  }
5063
5231
  }
5064
5232
  get(keys) {
@@ -5544,14 +5712,21 @@
5544
5712
  return [key, value].join('=');
5545
5713
  })
5546
5714
  .join('&');
5547
- const appInfo = yield getAppInfo(appId, 0);
5715
+ let appInfo;
5716
+ try {
5717
+ appInfo = yield getAppInfo(appId, 0);
5718
+ }
5719
+ catch (error) { }
5720
+ const mpInfo = {
5721
+ appId: appId
5722
+ };
5723
+ if (appInfo) {
5724
+ mpInfo.appName = appInfo.name;
5725
+ mpInfo.appAvtUrl = appInfo.logoUrl;
5726
+ }
5548
5727
  yield this.callNative(ACTION.OPEN_MP, {
5549
5728
  mpUrl: `${MINI_APP_INTERNAL_LINK}/${appId}/${queryParamString.length > 0 ? '?' + queryParamString : ''}`,
5550
- mpInfo: {
5551
- appId: appId,
5552
- appAvtUrl: appInfo.logoUrl || '',
5553
- appName: appInfo.name || '',
5554
- }
5729
+ mpInfo: mpInfo
5555
5730
  });
5556
5731
  });
5557
5732
  }
@@ -5902,11 +6077,11 @@
5902
6077
  data: {
5903
6078
  ZInstantAPIInfo: {
5904
6079
  url: `${zmpShareableInfo.zinstantApi}`,
5905
- zinstantdata_id: `templateId=11412&appId=${this.getAppId()}&shareId=${zmpShareableInfo.shareId}`
6080
+ zinstantdata_id: `templateId=${zmpShareableInfo.ztemplateId}&appId=${this.getAppId()}&shareId=${zmpShareableInfo.shareId}`
5906
6081
  },
5907
6082
  previewMsgText: {
5908
6083
  msg: {
5909
- en: 'Mini App',
6084
+ en: 'Zalo Mini Program',
5910
6085
  vi: 'Chương trình nhỏ'
5911
6086
  }
5912
6087
  },
@@ -6079,7 +6254,7 @@
6079
6254
  try {
6080
6255
  let searchString = new URL(url).searchParams.toString();
6081
6256
  if (searchString) {
6082
- result = QueryString.getParamsAsObject(searchString);
6257
+ result = queryString.getParamsAsObject(searchString);
6083
6258
  }
6084
6259
  }
6085
6260
  catch (err) {
@@ -6716,22 +6891,6 @@
6716
6891
  urls: []
6717
6892
  });
6718
6893
  }
6719
- createOrder(object) {
6720
- const result = { orderId: "" };
6721
- return Promise.resolve(result);
6722
- }
6723
- ;
6724
- checkTransaction(object) {
6725
- const result = {
6726
- msg: '',
6727
- appId: '',
6728
- orderId: '',
6729
- resultCode: 0,
6730
- transTime: 0,
6731
- createdAt: '',
6732
- };
6733
- return Promise.resolve(result);
6734
- }
6735
6894
  }
6736
6895
  _MockSDKService_appId = new WeakMap(), _MockSDKService_appConfig = new WeakMap(), _MockSDKService_zOAuth = new WeakMap(), _MockSDKService_accessToken = new WeakMap(), _MockSDKService_cache = new WeakMap(), _MockSDKService_loggedId = new WeakMap();
6737
6896
 
@@ -6846,196 +7005,6 @@
6846
7005
  return descriptor;
6847
7006
  };
6848
7007
 
6849
- var _PaymentService_appId;
6850
- class PaymentService {
6851
- constructor() {
6852
- _PaymentService_appId.set(this, APP_ID);
6853
- }
6854
- static getInstance() {
6855
- if (!PaymentService.instance) {
6856
- PaymentService.instance = new PaymentService();
6857
- }
6858
- return PaymentService.instance;
6859
- }
6860
- /**
6861
- * Tạo đơn hàng
6862
- *
6863
- * @async
6864
- * @function createOrder
6865
- * @category PaymentService
6866
- * @returns {Promise<CallbackDataType.CreateOrderCallBack>}
6867
- */
6868
- createOrder(sdk, object) {
6869
- return __awaiter(this, void 0, void 0, function* () {
6870
- const miniAppId = __classPrivateFieldGet(this, _PaymentService_appId, "f");
6871
- const inputData = new URLSearchParams();
6872
- inputData.append('amount', object.amount.toString());
6873
- inputData.append('item', encodeURIComponent(JSON.stringify(object.item)));
6874
- inputData.append('appId', miniAppId);
6875
- if (object.desc) {
6876
- inputData.append('desc', encodeURIComponent(object.desc));
6877
- }
6878
- if (object.extradata) {
6879
- inputData.append('extradata', encodeURIComponent(JSON.stringify(object.extradata)));
6880
- }
6881
- if (object.method) {
6882
- inputData.append('method', object.method);
6883
- }
6884
- const postConfig = {
6885
- headers: {
6886
- 'Content-Type': 'application/x-www-form-urlencoded',
6887
- 'authorization': `Bearer `
6888
- }
6889
- };
6890
- try {
6891
- const accessToken = yield sdk.getAccessToken({
6892
- fail: (error) => {
6893
- throw apiResponse.error.loginRequired;
6894
- }
6895
- });
6896
- postConfig.headers.authorization = `Bearer ${accessToken}`;
6897
- const res = yield fetch(PAYMENT_APIS.CREATE_ORDER, Object.assign(Object.assign({ method: 'POST' }, postConfig), { body: inputData }));
6898
- const resData = yield res.json();
6899
- if (!resData.data || resData.err !== 0) {
6900
- throw new Error(resData.msg);
6901
- }
6902
- const orderId = resData.data.id;
6903
- const version = window.APP_VERSION;
6904
- const env = window.APP_ENV;
6905
- const params = {
6906
- miniAppId,
6907
- accessToken: accessToken || '',
6908
- orderId,
6909
- };
6910
- if (version) {
6911
- params.version = version;
6912
- }
6913
- if (env) {
6914
- params.env = env;
6915
- }
6916
- if (object.method) {
6917
- params.method = object.method;
6918
- }
6919
- const buildURLQuery = QueryString.encode(params);
6920
- const h5Url = new URL(`?${buildURLQuery}`, PAYMENT_H5_URL).toString();
6921
- yield sdk.openWebview({
6922
- url: h5Url,
6923
- fail: (err) => {
6924
- throw err;
6925
- }
6926
- });
6927
- return { orderId };
6928
- }
6929
- catch (err) {
6930
- throw err;
6931
- }
6932
- });
6933
- }
6934
- /**
6935
- * Lấy thông tin transaction
6936
- *
6937
- * @async
6938
- * @function checkTransaction
6939
- * @category PaymentService
6940
- * @returns {Promise<CallbackDataType.CheckTransactionSuccessCallBack>}
6941
- */
6942
- checkTransaction(sdk, object) {
6943
- return __awaiter(this, void 0, void 0, function* () {
6944
- try {
6945
- let { data: inputData } = object;
6946
- let id;
6947
- if (!inputData) {
6948
- inputData = sdk.getRouteParams();
6949
- }
6950
- if (typeof inputData === 'object') {
6951
- id = inputData.appTransID || inputData.orderId || inputData.apptransid;
6952
- }
6953
- if (typeof inputData === 'string') {
6954
- const orderId = QueryString.getParameterByName("orderId", inputData);
6955
- const appTransID = QueryString.getParameterByName("appTransID", inputData) || QueryString.getParameterByName("apptransid", inputData);
6956
- id = orderId || appTransID;
6957
- }
6958
- const url = new URL(PAYMENT_APIS.GET_TRANSACTION);
6959
- const params = {
6960
- transId: id || "",
6961
- appId: __classPrivateFieldGet(this, _PaymentService_appId, "f")
6962
- };
6963
- url.search = new URLSearchParams(params).toString();
6964
- const res = yield fetch(url.toString());
6965
- const resData = yield res.json();
6966
- if (!resData.data || resData.err !== 0) {
6967
- throw new Error(resData.msg);
6968
- }
6969
- const data = resData.data || {};
6970
- const transaction = {
6971
- msg: data.resultMessage,
6972
- appId: data.appId,
6973
- orderId: data.orderId,
6974
- resultCode: data.resultCode,
6975
- transTime: data.transTime,
6976
- createdAt: data.createAt
6977
- };
6978
- return transaction;
6979
- }
6980
- catch (err) {
6981
- throw err;
6982
- }
6983
- });
6984
- }
6985
- }
6986
- _PaymentService_appId = new WeakMap();
6987
-
6988
- var _PaymentCreator_instance, _PaymentCreator_sdk;
6989
- class PaymentCreator {
6990
- constructor(sdk) {
6991
- _PaymentCreator_instance.set(this, void 0);
6992
- _PaymentCreator_sdk.set(this, void 0);
6993
- __classPrivateFieldSet(this, _PaymentCreator_instance, this.getInstance(), "f");
6994
- __classPrivateFieldSet(this, _PaymentCreator_sdk, sdk, "f");
6995
- }
6996
- /**
6997
- * Tạo đơn hàng
6998
- *
6999
- * @async
7000
- * @function createOrder
7001
- * @category Payment
7002
- * @returns {Promise<CallbackDataType.CreateOrderCallBack>}
7003
- */
7004
- createOrder(object) {
7005
- return __classPrivateFieldGet(this, _PaymentCreator_instance, "f").createOrder(__classPrivateFieldGet(this, _PaymentCreator_sdk, "f"), object);
7006
- }
7007
- /**
7008
- * Lấy thông tin transaction
7009
- *
7010
- * @async
7011
- * @function checkTransaction
7012
- * @category Payment
7013
- * @returns {Promise<CallbackDataType.CheckTransactionSuccessCallBack>}
7014
- */
7015
- checkTransaction(object) {
7016
- return __classPrivateFieldGet(this, _PaymentCreator_instance, "f").checkTransaction(__classPrivateFieldGet(this, _PaymentCreator_sdk, "f"), object);
7017
- }
7018
- }
7019
- _PaymentCreator_instance = new WeakMap(), _PaymentCreator_sdk = new WeakMap();
7020
- __decorate([
7021
- handleError,
7022
- validate,
7023
- __param(0, checkType('object', {
7024
- 'amount': checkData(['string', 'number']),
7025
- 'desc': checkData('string'),
7026
- 'method?': checkData('string', { values: ['MOMO', 'ZALOPAY', 'MOMO_SANDBOX', 'ZALOPAY_SANDBOX', 'CC', 'CC_SANDBOX', 'ATM', 'ATM_SANDBOX'] })
7027
- }))
7028
- ], PaymentCreator.prototype, "createOrder", null);
7029
- __decorate([
7030
- handleError,
7031
- validate
7032
- ], PaymentCreator.prototype, "checkTransaction", null);
7033
- class ZaloMiniAppPaymentCreator extends PaymentCreator {
7034
- getInstance() {
7035
- return PaymentService.getInstance();
7036
- }
7037
- }
7038
-
7039
7008
  var _SDKCreator_sdkService;
7040
7009
  class SDKCreator {
7041
7010
  constructor() {
@@ -7046,7 +7015,6 @@
7046
7015
  const stringifyEventName = event;
7047
7016
  return this.events.addListener(Events[stringifyEventName], fn, context);
7048
7017
  };
7049
- this.payment = new ZaloMiniAppPaymentCreator(this);
7050
7018
  }
7051
7019
  /**
7052
7020
  * Login to call more action.
@@ -7923,6 +7891,231 @@
7923
7891
  }
7924
7892
  }
7925
7893
 
7894
+ var _PaymentService_appId;
7895
+ class PaymentService {
7896
+ constructor() {
7897
+ _PaymentService_appId.set(this, APP_ID);
7898
+ }
7899
+ static getInstance() {
7900
+ if (!PaymentService.instance) {
7901
+ PaymentService.instance = new PaymentService();
7902
+ }
7903
+ return PaymentService.instance;
7904
+ }
7905
+ /**
7906
+ * Tạo đơn hàng
7907
+ *
7908
+ * @async
7909
+ * @function createOrder
7910
+ * @category PaymentService
7911
+ * @returns {Promise<CallbackDataType.CreateOrderCallBack>}
7912
+ */
7913
+ createOrder(sdk, object) {
7914
+ return __awaiter(this, void 0, void 0, function* () {
7915
+ const miniAppId = __classPrivateFieldGet(this, _PaymentService_appId, "f");
7916
+ const inputData = new URLSearchParams();
7917
+ inputData.append('amount', object.amount.toString());
7918
+ inputData.append('item', encodeURIComponent(JSON.stringify(object.item)));
7919
+ inputData.append('appId', miniAppId);
7920
+ if (object.desc) {
7921
+ inputData.append('desc', encodeURIComponent(object.desc));
7922
+ }
7923
+ if (object.extradata) {
7924
+ inputData.append('extradata', encodeURIComponent(JSON.stringify(object.extradata)));
7925
+ }
7926
+ if (object.method) {
7927
+ inputData.append('method', object.method);
7928
+ }
7929
+ const postConfig = {
7930
+ headers: {
7931
+ 'Content-Type': 'application/x-www-form-urlencoded',
7932
+ 'authorization': `Bearer `
7933
+ }
7934
+ };
7935
+ try {
7936
+ const accessToken = yield sdk.getAccessToken({
7937
+ fail: (error) => {
7938
+ throw apiResponse.error.loginRequired;
7939
+ }
7940
+ });
7941
+ postConfig.headers.authorization = `Bearer ${accessToken}`;
7942
+ const res = yield fetch(PAYMENT_APIS.CREATE_ORDER, Object.assign(Object.assign({ method: 'POST' }, postConfig), { body: inputData }));
7943
+ const resData = yield res.json();
7944
+ if (!resData.data || resData.err !== 0) {
7945
+ throw apiResponse.error.badRequest(resData.msg);
7946
+ }
7947
+ const orderId = resData.data.id;
7948
+ const version = window.APP_VERSION;
7949
+ const env = window.APP_ENV;
7950
+ const params = {
7951
+ miniAppId,
7952
+ accessToken: accessToken || '',
7953
+ orderId,
7954
+ };
7955
+ if (version) {
7956
+ params.version = version;
7957
+ }
7958
+ if (env) {
7959
+ params.env = env;
7960
+ }
7961
+ if (object.method) {
7962
+ params.method = object.method;
7963
+ }
7964
+ const buildURLQuery = queryString.encode(params);
7965
+ const h5Url = new URL(`?${buildURLQuery}`, PAYMENT_H5_URL).toString();
7966
+ yield sdk.openWebview({
7967
+ url: h5Url,
7968
+ fail: (err) => {
7969
+ throw err;
7970
+ }
7971
+ });
7972
+ return { orderId };
7973
+ }
7974
+ catch (err) {
7975
+ throw err;
7976
+ }
7977
+ });
7978
+ }
7979
+ /**
7980
+ * Lấy thông tin transaction
7981
+ *
7982
+ * @async
7983
+ * @function checkTransaction
7984
+ * @category PaymentService
7985
+ * @returns {Promise<CallbackDataType.CheckTransactionSuccessCallBack>}
7986
+ */
7987
+ checkTransaction(sdk, object) {
7988
+ return __awaiter(this, void 0, void 0, function* () {
7989
+ try {
7990
+ let { data: inputData } = object;
7991
+ let id;
7992
+ if (!inputData) {
7993
+ inputData = sdk.getRouteParams();
7994
+ }
7995
+ if (typeof inputData === 'object') {
7996
+ id = inputData.appTransID || inputData.orderId || inputData.apptransid;
7997
+ }
7998
+ if (typeof inputData === 'string') {
7999
+ const orderId = queryString.getParameterByName("orderId", inputData);
8000
+ const appTransID = queryString.getParameterByName("appTransID", inputData) || queryString.getParameterByName("apptransid", inputData);
8001
+ id = orderId || appTransID;
8002
+ }
8003
+ const url = new URL(PAYMENT_APIS.GET_TRANSACTION);
8004
+ const params = {
8005
+ transId: id || "",
8006
+ appId: __classPrivateFieldGet(this, _PaymentService_appId, "f")
8007
+ };
8008
+ url.search = new URLSearchParams(params).toString();
8009
+ const res = yield fetch(url.toString());
8010
+ const resData = yield res.json();
8011
+ if (!resData.data || resData.err !== 0) {
8012
+ throw apiResponse.error.badRequest(resData.msg);
8013
+ }
8014
+ const data = resData.data || {};
8015
+ const transaction = {
8016
+ msg: data.resultMessage,
8017
+ appId: data.appId,
8018
+ orderId: data.orderId,
8019
+ resultCode: data.resultCode,
8020
+ transTime: data.transTime,
8021
+ createdAt: data.createAt
8022
+ };
8023
+ return transaction;
8024
+ }
8025
+ catch (err) {
8026
+ throw err;
8027
+ }
8028
+ });
8029
+ }
8030
+ }
8031
+ _PaymentService_appId = new WeakMap();
8032
+
8033
+ var _MockPaymentService_appId;
8034
+ class MockPaymentService {
8035
+ constructor() {
8036
+ _MockPaymentService_appId.set(this, ZAPP_ID);
8037
+ }
8038
+ static getInstance() {
8039
+ if (!MockPaymentService.instance) {
8040
+ MockPaymentService.instance = new MockPaymentService();
8041
+ }
8042
+ return MockPaymentService.instance;
8043
+ }
8044
+ createOrder(sdk, object) {
8045
+ const result = { orderId: "" };
8046
+ return Promise.resolve(result);
8047
+ }
8048
+ ;
8049
+ checkTransaction(sdk, object) {
8050
+ const result = {
8051
+ msg: '',
8052
+ appId: '',
8053
+ orderId: '',
8054
+ resultCode: 0,
8055
+ transTime: 0,
8056
+ createdAt: '',
8057
+ };
8058
+ return Promise.resolve(result);
8059
+ }
8060
+ }
8061
+ _MockPaymentService_appId = new WeakMap();
8062
+
8063
+ var _PaymentCreator_instance, _PaymentCreator_sdk;
8064
+ class PaymentCreator {
8065
+ constructor(sdk) {
8066
+ _PaymentCreator_instance.set(this, void 0);
8067
+ _PaymentCreator_sdk.set(this, void 0);
8068
+ __classPrivateFieldSet(this, _PaymentCreator_instance, this.getInstance(), "f");
8069
+ __classPrivateFieldSet(this, _PaymentCreator_sdk, sdk, "f");
8070
+ }
8071
+ /**
8072
+ * Tạo đơn hàng
8073
+ *
8074
+ * @async
8075
+ * @function createOrder
8076
+ * @category Payment
8077
+ * @returns {Promise<CallbackDataType.CreateOrderCallBack>}
8078
+ */
8079
+ createOrder(object) {
8080
+ return __classPrivateFieldGet(this, _PaymentCreator_instance, "f").createOrder(__classPrivateFieldGet(this, _PaymentCreator_sdk, "f"), object);
8081
+ }
8082
+ /**
8083
+ * Lấy thông tin transaction
8084
+ *
8085
+ * @async
8086
+ * @function checkTransaction
8087
+ * @category Payment
8088
+ * @returns {Promise<CallbackDataType.CheckTransactionSuccessCallBack>}
8089
+ */
8090
+ checkTransaction(object) {
8091
+ return __classPrivateFieldGet(this, _PaymentCreator_instance, "f").checkTransaction(__classPrivateFieldGet(this, _PaymentCreator_sdk, "f"), object);
8092
+ }
8093
+ }
8094
+ _PaymentCreator_instance = new WeakMap(), _PaymentCreator_sdk = new WeakMap();
8095
+ __decorate([
8096
+ handleError,
8097
+ validate,
8098
+ __param(0, checkType('object', {
8099
+ 'amount': checkData(['string', 'number']),
8100
+ 'desc': checkData('string'),
8101
+ 'method?': checkData('string', { values: ['MOMO', 'ZALOPAY', 'MOMO_SANDBOX', 'ZALOPAY_SANDBOX', 'CC', 'CC_SANDBOX', 'ATM', 'ATM_SANDBOX'] })
8102
+ }))
8103
+ ], PaymentCreator.prototype, "createOrder", null);
8104
+ __decorate([
8105
+ handleError,
8106
+ validate
8107
+ ], PaymentCreator.prototype, "checkTransaction", null);
8108
+ class ZaloMiniAppPaymentCreator extends PaymentCreator {
8109
+ getInstance() {
8110
+ return PaymentService.getInstance();
8111
+ }
8112
+ }
8113
+ class MockZaloMiniAppPaymentCreator extends PaymentCreator {
8114
+ getInstance() {
8115
+ return MockPaymentService.getInstance();
8116
+ }
8117
+ }
8118
+
7926
8119
  // Zalo Mini App API
7927
8120
  const platform = checkPlatform();
7928
8121
  let app;
@@ -7943,11 +8136,12 @@
7943
8136
  };
7944
8137
  if (platform.isZalo) {
7945
8138
  app = new ZaloMiniAppSDKCreator();
8139
+ new ZaloMiniAppPaymentCreator(app);
7946
8140
  }
7947
8141
  else {
7948
8142
  app = new MockSDKCreator();
8143
+ new MockZaloMiniAppPaymentCreator(app);
7949
8144
  }
7950
- app.payment;
7951
8145
  window.ZaloMiniAppSDK = app;
7952
8146
 
7953
8147
  // @ts-ignore