jubo-sdk 1.0.2 → 1.0.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.
- package/README.md +383 -383
- package/dist/index.cjs.js +203 -216
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +203 -216
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +203 -216
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -0
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var fails$o = function (exec) {
|
|
3
|
+
var fails$n = function (exec) {
|
|
8
4
|
try {
|
|
9
5
|
return !!exec();
|
|
10
6
|
} catch (error) {
|
|
@@ -12,17 +8,17 @@ var fails$o = function (exec) {
|
|
|
12
8
|
}
|
|
13
9
|
};
|
|
14
10
|
|
|
15
|
-
var fails$
|
|
11
|
+
var fails$m = fails$n;
|
|
16
12
|
|
|
17
13
|
// Detect IE8's incomplete defineProperty implementation
|
|
18
|
-
var descriptors = !fails$
|
|
14
|
+
var descriptors = !fails$m(function () {
|
|
19
15
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
20
16
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21
17
|
});
|
|
22
18
|
|
|
23
|
-
var fails$
|
|
19
|
+
var fails$l = fails$n;
|
|
24
20
|
|
|
25
|
-
var functionBindNative = !fails$
|
|
21
|
+
var functionBindNative = !fails$l(function () {
|
|
26
22
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
27
23
|
var test = (function () { /* empty */ }).bind();
|
|
28
24
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -64,12 +60,12 @@ var $Object$3 = Object;
|
|
|
64
60
|
|
|
65
61
|
// `ToObject` abstract operation
|
|
66
62
|
// https://tc39.es/ecma262/#sec-toobject
|
|
67
|
-
var toObject$
|
|
63
|
+
var toObject$6 = function (argument) {
|
|
68
64
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
69
65
|
};
|
|
70
66
|
|
|
71
67
|
var uncurryThis$q = functionUncurryThis;
|
|
72
|
-
var toObject$
|
|
68
|
+
var toObject$5 = toObject$6;
|
|
73
69
|
|
|
74
70
|
var hasOwnProperty = uncurryThis$q({}.hasOwnProperty);
|
|
75
71
|
|
|
@@ -77,7 +73,7 @@ var hasOwnProperty = uncurryThis$q({}.hasOwnProperty);
|
|
|
77
73
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
78
74
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
79
75
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
80
|
-
return hasOwnProperty(toObject$
|
|
76
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
81
77
|
};
|
|
82
78
|
|
|
83
79
|
var DESCRIPTORS$c = descriptors;
|
|
@@ -98,7 +94,11 @@ var functionName = {
|
|
|
98
94
|
CONFIGURABLE: CONFIGURABLE$1
|
|
99
95
|
};
|
|
100
96
|
|
|
101
|
-
var
|
|
97
|
+
var makeBuiltInExports = {};
|
|
98
|
+
var makeBuiltIn$3 = {
|
|
99
|
+
get exports(){ return makeBuiltInExports; },
|
|
100
|
+
set exports(v){ makeBuiltInExports = v; },
|
|
101
|
+
};
|
|
102
102
|
|
|
103
103
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
104
104
|
|
|
@@ -128,7 +128,7 @@ var check = function (it) {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
131
|
-
var global$
|
|
131
|
+
var global$m =
|
|
132
132
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
133
133
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
134
134
|
check(typeof window == 'object' && window) ||
|
|
@@ -136,26 +136,26 @@ var global$n =
|
|
|
136
136
|
check(typeof self == 'object' && self) ||
|
|
137
137
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
138
138
|
// eslint-disable-next-line no-new-func -- fallback
|
|
139
|
-
(function () { return this; })() ||
|
|
139
|
+
(function () { return this; })() || Function('return this')();
|
|
140
140
|
|
|
141
|
-
var global$
|
|
141
|
+
var global$l = global$m;
|
|
142
142
|
|
|
143
143
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
144
144
|
var defineProperty$7 = Object.defineProperty;
|
|
145
145
|
|
|
146
146
|
var defineGlobalProperty$3 = function (key, value) {
|
|
147
147
|
try {
|
|
148
|
-
defineProperty$7(global$
|
|
148
|
+
defineProperty$7(global$l, key, { value: value, configurable: true, writable: true });
|
|
149
149
|
} catch (error) {
|
|
150
|
-
global$
|
|
150
|
+
global$l[key] = value;
|
|
151
151
|
} return value;
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
var global$
|
|
154
|
+
var global$k = global$m;
|
|
155
155
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
156
156
|
|
|
157
157
|
var SHARED = '__core-js_shared__';
|
|
158
|
-
var store$3 = global$
|
|
158
|
+
var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
159
159
|
|
|
160
160
|
var sharedStore = store$3;
|
|
161
161
|
|
|
@@ -174,10 +174,10 @@ if (!isCallable$j(store$2.inspectSource)) {
|
|
|
174
174
|
|
|
175
175
|
var inspectSource$3 = store$2.inspectSource;
|
|
176
176
|
|
|
177
|
-
var global$
|
|
177
|
+
var global$j = global$m;
|
|
178
178
|
var isCallable$i = isCallable$k;
|
|
179
179
|
|
|
180
|
-
var WeakMap$1 = global$
|
|
180
|
+
var WeakMap$1 = global$j.WeakMap;
|
|
181
181
|
|
|
182
182
|
var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
183
183
|
|
|
@@ -194,10 +194,10 @@ var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
194
194
|
|
|
195
195
|
var objectDefineProperty = {};
|
|
196
196
|
|
|
197
|
-
var global$
|
|
197
|
+
var global$i = global$m;
|
|
198
198
|
var isObject$9 = isObject$a;
|
|
199
199
|
|
|
200
|
-
var document$3 = global$
|
|
200
|
+
var document$3 = global$i.document;
|
|
201
201
|
// typeof document.createElement is 'object' in old IE
|
|
202
202
|
var EXISTS = isObject$9(document$3) && isObject$9(document$3.createElement);
|
|
203
203
|
|
|
@@ -206,11 +206,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
var DESCRIPTORS$b = descriptors;
|
|
209
|
-
var fails$
|
|
209
|
+
var fails$k = fails$n;
|
|
210
210
|
var createElement$1 = documentCreateElement$2;
|
|
211
211
|
|
|
212
212
|
// Thanks to IE8 for its funny defineProperty
|
|
213
|
-
var ie8DomDefine = !DESCRIPTORS$b && !fails$
|
|
213
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$k(function () {
|
|
214
214
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
215
215
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
216
216
|
get: function () { return 7; }
|
|
@@ -218,11 +218,11 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$l(function () {
|
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
var DESCRIPTORS$a = descriptors;
|
|
221
|
-
var fails$
|
|
221
|
+
var fails$j = fails$n;
|
|
222
222
|
|
|
223
223
|
// V8 ~ Chrome 36-
|
|
224
224
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
225
|
-
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$
|
|
225
|
+
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$j(function () {
|
|
226
226
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
227
227
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
228
228
|
value: 42,
|
|
@@ -232,13 +232,13 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$k(function () {
|
|
|
232
232
|
|
|
233
233
|
var isObject$8 = isObject$a;
|
|
234
234
|
|
|
235
|
-
var $String$
|
|
235
|
+
var $String$4 = String;
|
|
236
236
|
var $TypeError$e = TypeError;
|
|
237
237
|
|
|
238
238
|
// `Assert: Type(argument) is Object`
|
|
239
239
|
var anObject$f = function (argument) {
|
|
240
240
|
if (isObject$8(argument)) return argument;
|
|
241
|
-
throw $TypeError$e($String$
|
|
241
|
+
throw $TypeError$e($String$4(argument) + ' is not an object');
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
var NATIVE_BIND$2 = functionBindNative;
|
|
@@ -249,7 +249,7 @@ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
|
|
|
249
249
|
return call$h.apply(call$h, arguments);
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
var global$
|
|
252
|
+
var global$h = global$m;
|
|
253
253
|
var isCallable$g = isCallable$k;
|
|
254
254
|
|
|
255
255
|
var aFunction = function (argument) {
|
|
@@ -257,7 +257,7 @@ var aFunction = function (argument) {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
var getBuiltIn$7 = function (namespace, method) {
|
|
260
|
-
return arguments.length < 2 ? aFunction(global$
|
|
260
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
var uncurryThis$o = functionUncurryThis;
|
|
@@ -266,50 +266,45 @@ var objectIsPrototypeOf = uncurryThis$o({}.isPrototypeOf);
|
|
|
266
266
|
|
|
267
267
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
268
268
|
|
|
269
|
-
var global$
|
|
269
|
+
var global$g = global$m;
|
|
270
270
|
var userAgent$3 = engineUserAgent;
|
|
271
271
|
|
|
272
|
-
var process$4 = global$
|
|
273
|
-
var Deno$1 = global$
|
|
272
|
+
var process$4 = global$g.process;
|
|
273
|
+
var Deno$1 = global$g.Deno;
|
|
274
274
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
275
275
|
var v8 = versions && versions.v8;
|
|
276
|
-
var match, version$
|
|
276
|
+
var match, version$1;
|
|
277
277
|
|
|
278
278
|
if (v8) {
|
|
279
279
|
match = v8.split('.');
|
|
280
280
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
281
281
|
// but their correct versions are not interesting for us
|
|
282
|
-
version$
|
|
282
|
+
version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
286
286
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
287
|
-
if (!version$
|
|
287
|
+
if (!version$1 && userAgent$3) {
|
|
288
288
|
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
289
289
|
if (!match || match[1] >= 74) {
|
|
290
290
|
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
291
|
-
if (match) version$
|
|
291
|
+
if (match) version$1 = +match[1];
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
var engineV8Version = version$
|
|
295
|
+
var engineV8Version = version$1;
|
|
296
296
|
|
|
297
297
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
298
298
|
|
|
299
299
|
var V8_VERSION$3 = engineV8Version;
|
|
300
|
-
var fails$
|
|
301
|
-
var global$g = global$n;
|
|
302
|
-
|
|
303
|
-
var $String$4 = global$g.String;
|
|
300
|
+
var fails$i = fails$n;
|
|
304
301
|
|
|
305
302
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
306
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
303
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
307
304
|
var symbol = Symbol();
|
|
308
305
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
309
306
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
310
|
-
|
|
311
|
-
// of course, fail.
|
|
312
|
-
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
307
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
313
308
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
314
309
|
!Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;
|
|
315
310
|
});
|
|
@@ -383,7 +378,11 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
383
378
|
throw $TypeError$c("Can't convert object to primitive value");
|
|
384
379
|
};
|
|
385
380
|
|
|
386
|
-
var
|
|
381
|
+
var sharedExports = {};
|
|
382
|
+
var shared$4 = {
|
|
383
|
+
get exports(){ return sharedExports; },
|
|
384
|
+
set exports(v){ sharedExports = v; },
|
|
385
|
+
};
|
|
387
386
|
|
|
388
387
|
var isPure = false;
|
|
389
388
|
|
|
@@ -392,15 +391,13 @@ var store$1 = sharedStore;
|
|
|
392
391
|
(shared$4.exports = function (key, value) {
|
|
393
392
|
return store$1[key] || (store$1[key] = value !== undefined ? value : {});
|
|
394
393
|
})('versions', []).push({
|
|
395
|
-
version: '3.
|
|
394
|
+
version: '3.30.1',
|
|
396
395
|
mode: 'global',
|
|
397
396
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
398
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
397
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
|
|
399
398
|
source: 'https://github.com/zloirock/core-js'
|
|
400
399
|
});
|
|
401
400
|
|
|
402
|
-
var sharedExports = shared$4.exports;
|
|
403
|
-
|
|
404
401
|
var uncurryThis$n = functionUncurryThis;
|
|
405
402
|
|
|
406
403
|
var id = 0;
|
|
@@ -411,7 +408,7 @@ var uid$2 = function (key) {
|
|
|
411
408
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
|
|
412
409
|
};
|
|
413
410
|
|
|
414
|
-
var global$f = global$
|
|
411
|
+
var global$f = global$m;
|
|
415
412
|
var shared$3 = sharedExports;
|
|
416
413
|
var hasOwn$9 = hasOwnProperty_1;
|
|
417
414
|
var uid$1 = uid$2;
|
|
@@ -542,7 +539,7 @@ var sharedKey$2 = function (key) {
|
|
|
542
539
|
var hiddenKeys$4 = {};
|
|
543
540
|
|
|
544
541
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
545
|
-
var global$e = global$
|
|
542
|
+
var global$e = global$m;
|
|
546
543
|
var isObject$5 = isObject$a;
|
|
547
544
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
548
545
|
var hasOwn$8 = hasOwnProperty_1;
|
|
@@ -613,7 +610,7 @@ var internalState = {
|
|
|
613
610
|
};
|
|
614
611
|
|
|
615
612
|
var uncurryThis$m = functionUncurryThis;
|
|
616
|
-
var fails$
|
|
613
|
+
var fails$h = fails$n;
|
|
617
614
|
var isCallable$c = isCallable$k;
|
|
618
615
|
var hasOwn$7 = hasOwnProperty_1;
|
|
619
616
|
var DESCRIPTORS$7 = descriptors;
|
|
@@ -630,7 +627,7 @@ var stringSlice$6 = uncurryThis$m(''.slice);
|
|
|
630
627
|
var replace$3 = uncurryThis$m(''.replace);
|
|
631
628
|
var join = uncurryThis$m([].join);
|
|
632
629
|
|
|
633
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$
|
|
630
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$h(function () {
|
|
634
631
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
635
632
|
});
|
|
636
633
|
|
|
@@ -667,8 +664,6 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
667
664
|
return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
668
665
|
}, 'toString');
|
|
669
666
|
|
|
670
|
-
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
671
|
-
|
|
672
667
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
673
668
|
var defineProperty$5 = objectDefineProperty;
|
|
674
669
|
|
|
@@ -796,14 +791,14 @@ var classofRaw$2 = function (it) {
|
|
|
796
791
|
};
|
|
797
792
|
|
|
798
793
|
var uncurryThis$j = functionUncurryThis;
|
|
799
|
-
var fails$
|
|
794
|
+
var fails$g = fails$n;
|
|
800
795
|
var classof$8 = classofRaw$2;
|
|
801
796
|
|
|
802
797
|
var $Object$1 = Object;
|
|
803
798
|
var split = uncurryThis$j(''.split);
|
|
804
799
|
|
|
805
800
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
806
|
-
var indexedObject = fails$
|
|
801
|
+
var indexedObject = fails$g(function () {
|
|
807
802
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
808
803
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
809
804
|
return !$Object$1('z').propertyIsEnumerable(0);
|
|
@@ -1038,7 +1033,7 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
1038
1033
|
}
|
|
1039
1034
|
};
|
|
1040
1035
|
|
|
1041
|
-
var fails$
|
|
1036
|
+
var fails$f = fails$n;
|
|
1042
1037
|
var isCallable$a = isCallable$k;
|
|
1043
1038
|
|
|
1044
1039
|
var replacement = /#|\.prototype\./;
|
|
@@ -1047,7 +1042,7 @@ var isForced$3 = function (feature, detection) {
|
|
|
1047
1042
|
var value = data[normalize(feature)];
|
|
1048
1043
|
return value == POLYFILL ? true
|
|
1049
1044
|
: value == NATIVE ? false
|
|
1050
|
-
: isCallable$a(detection) ? fails$
|
|
1045
|
+
: isCallable$a(detection) ? fails$f(detection)
|
|
1051
1046
|
: !!detection;
|
|
1052
1047
|
};
|
|
1053
1048
|
|
|
@@ -1061,7 +1056,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
1061
1056
|
|
|
1062
1057
|
var isForced_1 = isForced$3;
|
|
1063
1058
|
|
|
1064
|
-
var global$d = global$
|
|
1059
|
+
var global$d = global$m;
|
|
1065
1060
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1066
1061
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1067
1062
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -1189,7 +1184,7 @@ var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
1189
1184
|
};
|
|
1190
1185
|
|
|
1191
1186
|
var uncurryThis$e = functionUncurryThis;
|
|
1192
|
-
var fails$
|
|
1187
|
+
var fails$e = fails$n;
|
|
1193
1188
|
var isCallable$8 = isCallable$k;
|
|
1194
1189
|
var classof$5 = classof$6;
|
|
1195
1190
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
@@ -1233,7 +1228,7 @@ isConstructorLegacy.sham = true;
|
|
|
1233
1228
|
|
|
1234
1229
|
// `IsConstructor` abstract operation
|
|
1235
1230
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1236
|
-
var isConstructor$2 = !construct || fails$
|
|
1231
|
+
var isConstructor$2 = !construct || fails$e(function () {
|
|
1237
1232
|
var called;
|
|
1238
1233
|
return isConstructorModern(isConstructorModern.call)
|
|
1239
1234
|
|| !isConstructorModern(Object)
|
|
@@ -1275,7 +1270,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
|
1275
1270
|
var bind$4 = functionBindContext;
|
|
1276
1271
|
var uncurryThis$d = functionUncurryThis;
|
|
1277
1272
|
var IndexedObject$2 = indexedObject;
|
|
1278
|
-
var toObject$
|
|
1273
|
+
var toObject$4 = toObject$6;
|
|
1279
1274
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1280
1275
|
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1281
1276
|
|
|
@@ -1291,7 +1286,7 @@ var createMethod$3 = function (TYPE) {
|
|
|
1291
1286
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
1292
1287
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1293
1288
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1294
|
-
var O = toObject$
|
|
1289
|
+
var O = toObject$4($this);
|
|
1295
1290
|
var self = IndexedObject$2(O);
|
|
1296
1291
|
var boundFunction = bind$4(callbackfn, that);
|
|
1297
1292
|
var length = lengthOfArrayLike$3(self);
|
|
@@ -1346,7 +1341,7 @@ var arrayIteration = {
|
|
|
1346
1341
|
filterReject: createMethod$3(7)
|
|
1347
1342
|
};
|
|
1348
1343
|
|
|
1349
|
-
var fails$
|
|
1344
|
+
var fails$d = fails$n;
|
|
1350
1345
|
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1351
1346
|
var V8_VERSION$2 = engineV8Version;
|
|
1352
1347
|
|
|
@@ -1356,7 +1351,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1356
1351
|
// We can't use this feature detection in V8 since it causes
|
|
1357
1352
|
// deoptimization and serious performance degradation
|
|
1358
1353
|
// https://github.com/zloirock/core-js/issues/677
|
|
1359
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
1354
|
+
return V8_VERSION$2 >= 51 || !fails$d(function () {
|
|
1360
1355
|
var array = [];
|
|
1361
1356
|
var constructor = array.constructor = {};
|
|
1362
1357
|
constructor[SPECIES$4] = function () {
|
|
@@ -1366,7 +1361,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1366
1361
|
});
|
|
1367
1362
|
};
|
|
1368
1363
|
|
|
1369
|
-
var $$
|
|
1364
|
+
var $$j = _export;
|
|
1370
1365
|
var $map = arrayIteration.map;
|
|
1371
1366
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
1372
1367
|
|
|
@@ -1375,7 +1370,7 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
|
|
|
1375
1370
|
// `Array.prototype.map` method
|
|
1376
1371
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1377
1372
|
// with adding support of @@species
|
|
1378
|
-
$$
|
|
1373
|
+
$$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1379
1374
|
map: function map(callbackfn /* , thisArg */) {
|
|
1380
1375
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1381
1376
|
}
|
|
@@ -1425,8 +1420,8 @@ var stringTrim = {
|
|
|
1425
1420
|
trim: createMethod$2(3)
|
|
1426
1421
|
};
|
|
1427
1422
|
|
|
1428
|
-
var global$c = global$
|
|
1429
|
-
var fails$
|
|
1423
|
+
var global$c = global$m;
|
|
1424
|
+
var fails$c = fails$n;
|
|
1430
1425
|
var uncurryThis$b = functionUncurryThis;
|
|
1431
1426
|
var toString$5 = toString$7;
|
|
1432
1427
|
var trim$1 = stringTrim.trim;
|
|
@@ -1439,7 +1434,7 @@ var hex = /^[+-]?0x/i;
|
|
|
1439
1434
|
var exec$1 = uncurryThis$b(hex.exec);
|
|
1440
1435
|
var FORCED$4 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
1441
1436
|
// MS Edge 18- broken with boxed symbols
|
|
1442
|
-
|| (ITERATOR$3 && !fails$
|
|
1437
|
+
|| (ITERATOR$3 && !fails$c(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1443
1438
|
|
|
1444
1439
|
// `parseInt` method
|
|
1445
1440
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
@@ -1448,20 +1443,20 @@ var numberParseInt = FORCED$4 ? function parseInt(string, radix) {
|
|
|
1448
1443
|
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1449
1444
|
} : $parseInt$1;
|
|
1450
1445
|
|
|
1451
|
-
var $$
|
|
1446
|
+
var $$i = _export;
|
|
1452
1447
|
var $parseInt = numberParseInt;
|
|
1453
1448
|
|
|
1454
1449
|
// `parseInt` method
|
|
1455
1450
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1456
|
-
$$
|
|
1451
|
+
$$i({ global: true, forced: parseInt != $parseInt }, {
|
|
1457
1452
|
parseInt: $parseInt
|
|
1458
1453
|
});
|
|
1459
1454
|
|
|
1460
|
-
var fails$
|
|
1455
|
+
var fails$b = fails$n;
|
|
1461
1456
|
|
|
1462
1457
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
1463
1458
|
var method = [][METHOD_NAME];
|
|
1464
|
-
return !!method && fails$
|
|
1459
|
+
return !!method && fails$b(function () {
|
|
1465
1460
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1466
1461
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1467
1462
|
});
|
|
@@ -1479,13 +1474,13 @@ var arrayForEach = !STRICT_METHOD$1 ? function forEach(callbackfn /* , thisArg *
|
|
|
1479
1474
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1480
1475
|
} : [].forEach;
|
|
1481
1476
|
|
|
1482
|
-
var $$
|
|
1477
|
+
var $$h = _export;
|
|
1483
1478
|
var forEach$1 = arrayForEach;
|
|
1484
1479
|
|
|
1485
1480
|
// `Array.prototype.forEach` method
|
|
1486
1481
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1487
1482
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1488
|
-
$$
|
|
1483
|
+
$$h({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1489
1484
|
forEach: forEach$1
|
|
1490
1485
|
});
|
|
1491
1486
|
|
|
@@ -1552,7 +1547,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1552
1547
|
|
|
1553
1548
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1554
1549
|
|
|
1555
|
-
var global$b = global$
|
|
1550
|
+
var global$b = global$m;
|
|
1556
1551
|
var DOMIterables = domIterables;
|
|
1557
1552
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1558
1553
|
var forEach = arrayForEach;
|
|
@@ -1724,12 +1719,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
1724
1719
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1725
1720
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1726
1721
|
|
|
1727
|
-
var global$a = global$
|
|
1722
|
+
var global$a = global$m;
|
|
1728
1723
|
var apply$1 = functionApply;
|
|
1729
1724
|
var bind$3 = functionBindContext;
|
|
1730
1725
|
var isCallable$6 = isCallable$k;
|
|
1731
1726
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1732
|
-
var fails$
|
|
1727
|
+
var fails$a = fails$n;
|
|
1733
1728
|
var html$1 = html$2;
|
|
1734
1729
|
var arraySlice = arraySlice$1;
|
|
1735
1730
|
var createElement = documentCreateElement$2;
|
|
@@ -1747,9 +1742,9 @@ var String$1 = global$a.String;
|
|
|
1747
1742
|
var counter = 0;
|
|
1748
1743
|
var queue$2 = {};
|
|
1749
1744
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1750
|
-
var $location, defer, channel
|
|
1745
|
+
var $location, defer, channel, port;
|
|
1751
1746
|
|
|
1752
|
-
fails$
|
|
1747
|
+
fails$a(function () {
|
|
1753
1748
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1754
1749
|
$location = global$a.location;
|
|
1755
1750
|
});
|
|
@@ -1805,9 +1800,9 @@ if (!set || !clear) {
|
|
|
1805
1800
|
// Browsers with MessageChannel, includes WebWorkers
|
|
1806
1801
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1807
1802
|
} else if (MessageChannel && !IS_IOS$1) {
|
|
1808
|
-
channel
|
|
1809
|
-
port = channel
|
|
1810
|
-
channel
|
|
1803
|
+
channel = new MessageChannel();
|
|
1804
|
+
port = channel.port2;
|
|
1805
|
+
channel.port1.onmessage = eventListener;
|
|
1811
1806
|
defer = bind$3(port.postMessage, port);
|
|
1812
1807
|
// Browsers with postMessage, skip WebWorkers
|
|
1813
1808
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
@@ -1816,7 +1811,7 @@ if (!set || !clear) {
|
|
|
1816
1811
|
isCallable$6(global$a.postMessage) &&
|
|
1817
1812
|
!global$a.importScripts &&
|
|
1818
1813
|
$location && $location.protocol !== 'file:' &&
|
|
1819
|
-
!fails$
|
|
1814
|
+
!fails$a(globalPostMessageDefer)
|
|
1820
1815
|
) {
|
|
1821
1816
|
defer = globalPostMessageDefer;
|
|
1822
1817
|
global$a.addEventListener('message', eventListener, false);
|
|
@@ -1874,7 +1869,7 @@ var userAgent = engineUserAgent;
|
|
|
1874
1869
|
|
|
1875
1870
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1876
1871
|
|
|
1877
|
-
var global$9 = global$
|
|
1872
|
+
var global$9 = global$m;
|
|
1878
1873
|
var bind$2 = functionBindContext;
|
|
1879
1874
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1880
1875
|
var macrotask = task$1.set;
|
|
@@ -1970,7 +1965,7 @@ var perform$3 = function (exec) {
|
|
|
1970
1965
|
}
|
|
1971
1966
|
};
|
|
1972
1967
|
|
|
1973
|
-
var global$8 = global$
|
|
1968
|
+
var global$8 = global$m;
|
|
1974
1969
|
|
|
1975
1970
|
var promiseNativeConstructor = global$8.Promise;
|
|
1976
1971
|
|
|
@@ -1985,7 +1980,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
|
|
|
1985
1980
|
&& typeof window == 'object'
|
|
1986
1981
|
&& typeof document == 'object';
|
|
1987
1982
|
|
|
1988
|
-
var global$7 = global$
|
|
1983
|
+
var global$7 = global$m;
|
|
1989
1984
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1990
1985
|
var isCallable$5 = isCallable$k;
|
|
1991
1986
|
var isForced$1 = isForced_1;
|
|
@@ -2053,9 +2048,9 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2053
2048
|
return new PromiseCapability(C);
|
|
2054
2049
|
};
|
|
2055
2050
|
|
|
2056
|
-
var $$
|
|
2051
|
+
var $$g = _export;
|
|
2057
2052
|
var IS_NODE$1 = engineIsNode;
|
|
2058
|
-
var global$6 = global$
|
|
2053
|
+
var global$6 = global$m;
|
|
2059
2054
|
var call$c = functionCall;
|
|
2060
2055
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
2061
2056
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
@@ -2333,7 +2328,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2333
2328
|
}
|
|
2334
2329
|
}
|
|
2335
2330
|
|
|
2336
|
-
$$
|
|
2331
|
+
$$g({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2337
2332
|
Promise: PromiseConstructor
|
|
2338
2333
|
});
|
|
2339
2334
|
|
|
@@ -2521,7 +2516,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2521
2516
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2522
2517
|
});
|
|
2523
2518
|
|
|
2524
|
-
var $$
|
|
2519
|
+
var $$f = _export;
|
|
2525
2520
|
var call$8 = functionCall;
|
|
2526
2521
|
var aCallable$2 = aCallable$9;
|
|
2527
2522
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -2531,7 +2526,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2531
2526
|
|
|
2532
2527
|
// `Promise.all` method
|
|
2533
2528
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2534
|
-
$$
|
|
2529
|
+
$$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2535
2530
|
all: function all(iterable) {
|
|
2536
2531
|
var C = this;
|
|
2537
2532
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -2560,7 +2555,7 @@ $$g({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2560
2555
|
}
|
|
2561
2556
|
});
|
|
2562
2557
|
|
|
2563
|
-
var $$
|
|
2558
|
+
var $$e = _export;
|
|
2564
2559
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2565
2560
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2566
2561
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
@@ -2571,7 +2566,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
2571
2566
|
|
|
2572
2567
|
// `Promise.prototype.catch` method
|
|
2573
2568
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2574
|
-
$$
|
|
2569
|
+
$$e({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2575
2570
|
'catch': function (onRejected) {
|
|
2576
2571
|
return this.then(undefined, onRejected);
|
|
2577
2572
|
}
|
|
@@ -2585,7 +2580,7 @@ if (isCallable$3(NativePromiseConstructor)) {
|
|
|
2585
2580
|
}
|
|
2586
2581
|
}
|
|
2587
2582
|
|
|
2588
|
-
var $$
|
|
2583
|
+
var $$d = _export;
|
|
2589
2584
|
var call$7 = functionCall;
|
|
2590
2585
|
var aCallable$1 = aCallable$9;
|
|
2591
2586
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -2595,7 +2590,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2595
2590
|
|
|
2596
2591
|
// `Promise.race` method
|
|
2597
2592
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2598
|
-
$$
|
|
2593
|
+
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2599
2594
|
race: function race(iterable) {
|
|
2600
2595
|
var C = this;
|
|
2601
2596
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -2611,14 +2606,14 @@ $$e({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2611
2606
|
}
|
|
2612
2607
|
});
|
|
2613
2608
|
|
|
2614
|
-
var $$
|
|
2609
|
+
var $$c = _export;
|
|
2615
2610
|
var call$6 = functionCall;
|
|
2616
2611
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2617
2612
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2618
2613
|
|
|
2619
2614
|
// `Promise.reject` method
|
|
2620
2615
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2621
|
-
$$
|
|
2616
|
+
$$c({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2622
2617
|
reject: function reject(r) {
|
|
2623
2618
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2624
2619
|
call$6(capability.reject, undefined, r);
|
|
@@ -2639,7 +2634,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
2639
2634
|
return promiseCapability.promise;
|
|
2640
2635
|
};
|
|
2641
2636
|
|
|
2642
|
-
var $$
|
|
2637
|
+
var $$b = _export;
|
|
2643
2638
|
var getBuiltIn = getBuiltIn$7;
|
|
2644
2639
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2645
2640
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2648,7 +2643,7 @@ getBuiltIn('Promise');
|
|
|
2648
2643
|
|
|
2649
2644
|
// `Promise.resolve` method
|
|
2650
2645
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2651
|
-
$$
|
|
2646
|
+
$$b({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2652
2647
|
resolve: function resolve(x) {
|
|
2653
2648
|
return promiseResolve(this, x);
|
|
2654
2649
|
}
|
|
@@ -2672,11 +2667,11 @@ var createProperty$1 = function (object, key, value) {
|
|
|
2672
2667
|
else object[propertyKey] = value;
|
|
2673
2668
|
};
|
|
2674
2669
|
|
|
2675
|
-
var $$
|
|
2676
|
-
var fails$
|
|
2670
|
+
var $$a = _export;
|
|
2671
|
+
var fails$9 = fails$n;
|
|
2677
2672
|
var isArray$1 = isArray$3;
|
|
2678
2673
|
var isObject$1 = isObject$a;
|
|
2679
|
-
var toObject$
|
|
2674
|
+
var toObject$3 = toObject$6;
|
|
2680
2675
|
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
2681
2676
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2682
2677
|
var createProperty = createProperty$1;
|
|
@@ -2690,7 +2685,7 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable');
|
|
|
2690
2685
|
// We can't use this feature detection in V8 since it causes
|
|
2691
2686
|
// deoptimization and serious performance degradation
|
|
2692
2687
|
// https://github.com/zloirock/core-js/issues/679
|
|
2693
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
2688
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$9(function () {
|
|
2694
2689
|
var array = [];
|
|
2695
2690
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2696
2691
|
return array.concat()[0] !== array;
|
|
@@ -2707,10 +2702,10 @@ var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('c
|
|
|
2707
2702
|
// `Array.prototype.concat` method
|
|
2708
2703
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2709
2704
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2710
|
-
$$
|
|
2705
|
+
$$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
2711
2706
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2712
2707
|
concat: function concat(arg) {
|
|
2713
|
-
var O = toObject$
|
|
2708
|
+
var O = toObject$3(this);
|
|
2714
2709
|
var A = arraySpeciesCreate(O, 0);
|
|
2715
2710
|
var n = 0;
|
|
2716
2711
|
var i, k, length, len, E;
|
|
@@ -2816,14 +2811,14 @@ function updateNotifier(name, version) {
|
|
|
2816
2811
|
});
|
|
2817
2812
|
}
|
|
2818
2813
|
|
|
2819
|
-
var $$
|
|
2814
|
+
var $$9 = _export;
|
|
2820
2815
|
var DESCRIPTORS$3 = descriptors;
|
|
2821
2816
|
var defineProperty$3 = objectDefineProperty.f;
|
|
2822
2817
|
|
|
2823
2818
|
// `Object.defineProperty` method
|
|
2824
2819
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2825
2820
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2826
|
-
$$
|
|
2821
|
+
$$9({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$3, sham: !DESCRIPTORS$3 }, {
|
|
2827
2822
|
defineProperty: defineProperty$3
|
|
2828
2823
|
});
|
|
2829
2824
|
|
|
@@ -2840,11 +2835,11 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2840
2835
|
var DESCRIPTORS$2 = descriptors;
|
|
2841
2836
|
var uncurryThis$8 = functionUncurryThis;
|
|
2842
2837
|
var call$5 = functionCall;
|
|
2843
|
-
var fails$
|
|
2838
|
+
var fails$8 = fails$n;
|
|
2844
2839
|
var objectKeys$1 = objectKeys$2;
|
|
2845
2840
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2846
2841
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2847
|
-
var toObject$
|
|
2842
|
+
var toObject$2 = toObject$6;
|
|
2848
2843
|
var IndexedObject$1 = indexedObject;
|
|
2849
2844
|
|
|
2850
2845
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
@@ -2855,7 +2850,7 @@ var concat$1 = uncurryThis$8([].concat);
|
|
|
2855
2850
|
|
|
2856
2851
|
// `Object.assign` method
|
|
2857
2852
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2858
|
-
var objectAssign = !$assign || fails$
|
|
2853
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
2859
2854
|
// should have correct order of operations (Edge bug)
|
|
2860
2855
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
2861
2856
|
enumerable: true,
|
|
@@ -2876,7 +2871,7 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2876
2871
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2877
2872
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
2878
2873
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2879
|
-
var T = toObject$
|
|
2874
|
+
var T = toObject$2(target);
|
|
2880
2875
|
var argumentsLength = arguments.length;
|
|
2881
2876
|
var index = 1;
|
|
2882
2877
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -2894,31 +2889,16 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2894
2889
|
} return T;
|
|
2895
2890
|
} : $assign;
|
|
2896
2891
|
|
|
2897
|
-
var $$
|
|
2892
|
+
var $$8 = _export;
|
|
2898
2893
|
var assign = objectAssign;
|
|
2899
2894
|
|
|
2900
2895
|
// `Object.assign` method
|
|
2901
2896
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2902
2897
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2903
|
-
$$
|
|
2898
|
+
$$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2904
2899
|
assign: assign
|
|
2905
2900
|
});
|
|
2906
2901
|
|
|
2907
|
-
var $$8 = _export;
|
|
2908
|
-
var toObject$2 = toObject$7;
|
|
2909
|
-
var nativeKeys = objectKeys$2;
|
|
2910
|
-
var fails$8 = fails$o;
|
|
2911
|
-
|
|
2912
|
-
var FAILS_ON_PRIMITIVES = fails$8(function () { nativeKeys(1); });
|
|
2913
|
-
|
|
2914
|
-
// `Object.keys` method
|
|
2915
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
2916
|
-
$$8({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
2917
|
-
keys: function keys(it) {
|
|
2918
|
-
return nativeKeys(toObject$2(it));
|
|
2919
|
-
}
|
|
2920
|
-
});
|
|
2921
|
-
|
|
2922
2902
|
/*
|
|
2923
2903
|
* @Author: Lanrri
|
|
2924
2904
|
* @Email: lanrri@163.com
|
|
@@ -3243,8 +3223,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3243
3223
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3244
3224
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3245
3225
|
***************************************************************************** */
|
|
3246
|
-
/* global Reflect, Promise */
|
|
3247
|
-
|
|
3248
3226
|
|
|
3249
3227
|
var __assign = function() {
|
|
3250
3228
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -3285,8 +3263,8 @@ var regexpFlags$1 = function () {
|
|
|
3285
3263
|
return result;
|
|
3286
3264
|
};
|
|
3287
3265
|
|
|
3288
|
-
var fails$7 = fails$
|
|
3289
|
-
var global$5 = global$
|
|
3266
|
+
var fails$7 = fails$n;
|
|
3267
|
+
var global$5 = global$m;
|
|
3290
3268
|
|
|
3291
3269
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3292
3270
|
var $RegExp$2 = global$5.RegExp;
|
|
@@ -3316,8 +3294,8 @@ var regexpStickyHelpers = {
|
|
|
3316
3294
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3317
3295
|
};
|
|
3318
3296
|
|
|
3319
|
-
var fails$6 = fails$
|
|
3320
|
-
var global$4 = global$
|
|
3297
|
+
var fails$6 = fails$n;
|
|
3298
|
+
var global$4 = global$m;
|
|
3321
3299
|
|
|
3322
3300
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3323
3301
|
var $RegExp$1 = global$4.RegExp;
|
|
@@ -3327,8 +3305,8 @@ var regexpUnsupportedDotAll = fails$6(function () {
|
|
|
3327
3305
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3328
3306
|
});
|
|
3329
3307
|
|
|
3330
|
-
var fails$5 = fails$
|
|
3331
|
-
var global$3 = global$
|
|
3308
|
+
var fails$5 = fails$n;
|
|
3309
|
+
var global$3 = global$m;
|
|
3332
3310
|
|
|
3333
3311
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3334
3312
|
var $RegExp = global$3.RegExp;
|
|
@@ -3470,7 +3448,7 @@ $$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
|
3470
3448
|
var uncurryThis$5 = functionUncurryThisClause;
|
|
3471
3449
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
3472
3450
|
var regexpExec$1 = regexpExec$2;
|
|
3473
|
-
var fails$4 = fails$
|
|
3451
|
+
var fails$4 = fails$n;
|
|
3474
3452
|
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3475
3453
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3476
3454
|
|
|
@@ -3585,7 +3563,7 @@ var advanceStringIndex$2 = function (S, index, unicode) {
|
|
|
3585
3563
|
};
|
|
3586
3564
|
|
|
3587
3565
|
var uncurryThis$3 = functionUncurryThis;
|
|
3588
|
-
var toObject$1 = toObject$
|
|
3566
|
+
var toObject$1 = toObject$6;
|
|
3589
3567
|
|
|
3590
3568
|
var floor = Math.floor;
|
|
3591
3569
|
var charAt = uncurryThis$3(''.charAt);
|
|
@@ -3655,7 +3633,7 @@ var apply = functionApply;
|
|
|
3655
3633
|
var call$2 = functionCall;
|
|
3656
3634
|
var uncurryThis$2 = functionUncurryThis;
|
|
3657
3635
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3658
|
-
var fails$3 = fails$
|
|
3636
|
+
var fails$3 = fails$n;
|
|
3659
3637
|
var anObject$2 = anObject$f;
|
|
3660
3638
|
var isCallable$1 = isCallable$k;
|
|
3661
3639
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
@@ -3805,7 +3783,7 @@ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
|
3805
3783
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3806
3784
|
var anObject$1 = anObject$f;
|
|
3807
3785
|
var $toString = toString$7;
|
|
3808
|
-
var fails$2 = fails$
|
|
3786
|
+
var fails$2 = fails$n;
|
|
3809
3787
|
var getRegExpFlags = regexpGetFlags;
|
|
3810
3788
|
|
|
3811
3789
|
var TO_STRING = 'toString';
|
|
@@ -4122,7 +4100,7 @@ var browserType = BrowserType({
|
|
|
4122
4100
|
});
|
|
4123
4101
|
|
|
4124
4102
|
var aCallable = aCallable$9;
|
|
4125
|
-
var toObject = toObject$
|
|
4103
|
+
var toObject = toObject$6;
|
|
4126
4104
|
var IndexedObject = indexedObject;
|
|
4127
4105
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
4128
4106
|
|
|
@@ -4184,7 +4162,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
|
4184
4162
|
}
|
|
4185
4163
|
});
|
|
4186
4164
|
|
|
4187
|
-
var global$2 = global$
|
|
4165
|
+
var global$2 = global$m;
|
|
4188
4166
|
|
|
4189
4167
|
var path$1 = global$2;
|
|
4190
4168
|
|
|
@@ -4216,7 +4194,7 @@ var thisNumberValue$1 = uncurryThis$1(1.0.valueOf);
|
|
|
4216
4194
|
var $$1 = _export;
|
|
4217
4195
|
var IS_PURE = isPure;
|
|
4218
4196
|
var DESCRIPTORS = descriptors;
|
|
4219
|
-
var global$1 = global$
|
|
4197
|
+
var global$1 = global$m;
|
|
4220
4198
|
var path = path$1;
|
|
4221
4199
|
var uncurryThis = functionUncurryThis;
|
|
4222
4200
|
var isForced = isForced_1;
|
|
@@ -4225,7 +4203,7 @@ var inheritIfRequired = inheritIfRequired$1;
|
|
|
4225
4203
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
4226
4204
|
var isSymbol = isSymbol$3;
|
|
4227
4205
|
var toPrimitive = toPrimitive$2;
|
|
4228
|
-
var fails$1 = fails$
|
|
4206
|
+
var fails$1 = fails$n;
|
|
4229
4207
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4230
4208
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
4231
4209
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -4316,7 +4294,7 @@ var copyConstructorProperties = function (target, source) {
|
|
|
4316
4294
|
if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
|
|
4317
4295
|
|
|
4318
4296
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4319
|
-
var fails = fails$
|
|
4297
|
+
var fails = fails$n;
|
|
4320
4298
|
var whitespaces = whitespaces$3;
|
|
4321
4299
|
|
|
4322
4300
|
var non = '\u200B\u0085\u180E';
|
|
@@ -4617,7 +4595,11 @@ var getOjbUrlFn = function getOjbUrlFn(url, newOjbRouterArr) {
|
|
|
4617
4595
|
}
|
|
4618
4596
|
};
|
|
4619
4597
|
|
|
4620
|
-
var
|
|
4598
|
+
var weixinJsSdkExports = {};
|
|
4599
|
+
var weixinJsSdk = {
|
|
4600
|
+
get exports(){ return weixinJsSdkExports; },
|
|
4601
|
+
set exports(v){ weixinJsSdkExports = v; },
|
|
4602
|
+
};
|
|
4621
4603
|
|
|
4622
4604
|
!(function(e, n) {
|
|
4623
4605
|
weixinJsSdk.exports = n(e);
|
|
@@ -5518,9 +5500,6 @@ var weixinJsSdk = {exports: {}};
|
|
|
5518
5500
|
}
|
|
5519
5501
|
});
|
|
5520
5502
|
|
|
5521
|
-
var weixinJsSdkExports = weixinJsSdk.exports;
|
|
5522
|
-
var wx$1 = /*@__PURE__*/getDefaultExportFromCjs(weixinJsSdkExports);
|
|
5523
|
-
|
|
5524
5503
|
var bridge = {
|
|
5525
5504
|
default:commonjsGlobal,// for typescript
|
|
5526
5505
|
call: function (method, args, cb) {
|
|
@@ -5654,13 +5633,7 @@ var bridge = {
|
|
|
5654
5633
|
|
|
5655
5634
|
var dsbridge = bridge;
|
|
5656
5635
|
|
|
5657
|
-
var dsBridge = /*@__PURE__*/getDefaultExportFromCjs(dsbridge);
|
|
5658
|
-
|
|
5659
5636
|
var APP_HOME$1 = 'ojb://ip_home';
|
|
5660
|
-
var device$2 = ls.get('device') || '';
|
|
5661
|
-
var isfull$2 = ls.get('isfull') || '';
|
|
5662
|
-
var version$2 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
5663
|
-
var channel$1 = ls.get('channel') || browserType.getShell('channel') || '';
|
|
5664
5637
|
var OldJuboSdk = /** @class */function () {
|
|
5665
5638
|
function OldJuboSdk(options) {
|
|
5666
5639
|
Object.defineProperty(this, "options", {
|
|
@@ -5716,20 +5689,20 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5716
5689
|
enumerable: true,
|
|
5717
5690
|
configurable: true,
|
|
5718
5691
|
writable: true,
|
|
5719
|
-
value:
|
|
5692
|
+
value: void 0
|
|
5720
5693
|
});
|
|
5721
5694
|
/** 渠道 */
|
|
5722
5695
|
Object.defineProperty(this, "channel", {
|
|
5723
5696
|
enumerable: true,
|
|
5724
5697
|
configurable: true,
|
|
5725
5698
|
writable: true,
|
|
5726
|
-
value:
|
|
5699
|
+
value: void 0
|
|
5727
5700
|
});
|
|
5728
5701
|
Object.defineProperty(this, "isfull", {
|
|
5729
5702
|
enumerable: true,
|
|
5730
5703
|
configurable: true,
|
|
5731
5704
|
writable: true,
|
|
5732
|
-
value:
|
|
5705
|
+
value: void 0
|
|
5733
5706
|
});
|
|
5734
5707
|
Object.defineProperty(this, "isOldApp", {
|
|
5735
5708
|
enumerable: true,
|
|
@@ -5737,13 +5710,20 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5737
5710
|
writable: true,
|
|
5738
5711
|
value: true
|
|
5739
5712
|
});
|
|
5713
|
+
var device = ls.get('device') || '';
|
|
5714
|
+
var isfull = ls.get('isfull') || '';
|
|
5715
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
5716
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
5740
5717
|
this.options = options;
|
|
5741
5718
|
this.name = options.name;
|
|
5742
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
5743
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
5744
|
-
this.isIos = browserType.system === 'ios' || device
|
|
5719
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
5720
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
5721
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
5745
5722
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
5746
|
-
this.isCanShowNav = this.isApp && compareVersions(version
|
|
5723
|
+
this.isCanShowNav = this.isApp && compareVersions(version, '2.5.0') >= 0 && isfull;
|
|
5724
|
+
this.version = version;
|
|
5725
|
+
this.channel = channel;
|
|
5726
|
+
this.isfull = isfull;
|
|
5747
5727
|
return this;
|
|
5748
5728
|
}
|
|
5749
5729
|
Object.defineProperty(OldJuboSdk.prototype, "detection", {
|
|
@@ -5812,7 +5792,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5812
5792
|
});
|
|
5813
5793
|
break;
|
|
5814
5794
|
case 'wx':
|
|
5815
|
-
|
|
5795
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5816
5796
|
url: '/pages/login/index'
|
|
5817
5797
|
});
|
|
5818
5798
|
break;
|
|
@@ -5859,16 +5839,16 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5859
5839
|
return url_1.indexOf(e) !== -1;
|
|
5860
5840
|
});
|
|
5861
5841
|
if (flag) {
|
|
5862
|
-
|
|
5842
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
5863
5843
|
url: url_1
|
|
5864
5844
|
});
|
|
5865
5845
|
} else {
|
|
5866
5846
|
if (isRedirect) {
|
|
5867
|
-
|
|
5847
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
5868
5848
|
url: url_1
|
|
5869
5849
|
});
|
|
5870
5850
|
} else {
|
|
5871
|
-
|
|
5851
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5872
5852
|
url: url_1
|
|
5873
5853
|
});
|
|
5874
5854
|
}
|
|
@@ -5918,7 +5898,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5918
5898
|
}));
|
|
5919
5899
|
break;
|
|
5920
5900
|
case 'wx':
|
|
5921
|
-
|
|
5901
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
5922
5902
|
data: {
|
|
5923
5903
|
shareData: {
|
|
5924
5904
|
title: options.title,
|
|
@@ -6105,7 +6085,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6105
6085
|
window.webkit.messageHandlers.juboOnPay.postMessage(options);
|
|
6106
6086
|
break;
|
|
6107
6087
|
case 'wx':
|
|
6108
|
-
|
|
6088
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6109
6089
|
url: "/pages/webPay/index?activity_id=".concat(activityId, "&price=").concat(amount, "&success=").concat(success, "&fail=").concat(fail)
|
|
6110
6090
|
});
|
|
6111
6091
|
break;
|
|
@@ -6263,18 +6243,19 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6263
6243
|
return new Promise(function (resolve, reject) {
|
|
6264
6244
|
var _a, _b;
|
|
6265
6245
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6246
|
+
var device = _this.device;
|
|
6266
6247
|
try {
|
|
6267
6248
|
var isNetworkConnected = false;
|
|
6268
|
-
if (device
|
|
6249
|
+
if (device === 'android') {
|
|
6269
6250
|
isNetworkConnected = window.jubo.isNetworkConnected();
|
|
6270
|
-
} else if (device
|
|
6251
|
+
} else if (device === 'ios') {
|
|
6271
6252
|
isNetworkConnected = ((_a = window.isNetworkConnected) === null || _a === void 0 ? void 0 : _a.call(window)) || false;
|
|
6272
6253
|
}
|
|
6273
6254
|
if (isNetworkConnected) {
|
|
6274
6255
|
var isWifiConnected = false;
|
|
6275
|
-
if (device
|
|
6256
|
+
if (device === 'android') {
|
|
6276
6257
|
isWifiConnected = window.jubo.isWifiConnected();
|
|
6277
|
-
} else if (device
|
|
6258
|
+
} else if (device === 'ios') {
|
|
6278
6259
|
isWifiConnected = ((_b = window.isWifiConnected) === null || _b === void 0 ? void 0 : _b.call(window)) || false;
|
|
6279
6260
|
}
|
|
6280
6261
|
resolve(isWifiConnected ? 2 : 1);
|
|
@@ -6369,10 +6350,6 @@ window.JuboSdk = OldJuboSdk;
|
|
|
6369
6350
|
|
|
6370
6351
|
var APP_HOME = 'ojb://ip_home';
|
|
6371
6352
|
var MINI_PROGRAM_LOGIN = '/pages/login/index';
|
|
6372
|
-
var device$1 = ls.get('device') || '';
|
|
6373
|
-
var isfull$1 = ls.get('isfull') || '';
|
|
6374
|
-
var version$1 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
6375
|
-
var channel = ls.get('channel') || browserType.getShell('channel') || '';
|
|
6376
6353
|
var JuboSdk = /** @class */function () {
|
|
6377
6354
|
function JuboSdk(options) {
|
|
6378
6355
|
Object.defineProperty(this, "options", {
|
|
@@ -6428,20 +6405,20 @@ var JuboSdk = /** @class */function () {
|
|
|
6428
6405
|
enumerable: true,
|
|
6429
6406
|
configurable: true,
|
|
6430
6407
|
writable: true,
|
|
6431
|
-
value:
|
|
6408
|
+
value: void 0
|
|
6432
6409
|
});
|
|
6433
6410
|
/** 渠道 */
|
|
6434
6411
|
Object.defineProperty(this, "channel", {
|
|
6435
6412
|
enumerable: true,
|
|
6436
6413
|
configurable: true,
|
|
6437
6414
|
writable: true,
|
|
6438
|
-
value:
|
|
6415
|
+
value: void 0
|
|
6439
6416
|
});
|
|
6440
6417
|
Object.defineProperty(this, "isfull", {
|
|
6441
6418
|
enumerable: true,
|
|
6442
6419
|
configurable: true,
|
|
6443
6420
|
writable: true,
|
|
6444
|
-
value:
|
|
6421
|
+
value: void 0
|
|
6445
6422
|
});
|
|
6446
6423
|
Object.defineProperty(this, "isOldApp", {
|
|
6447
6424
|
enumerable: true,
|
|
@@ -6449,14 +6426,21 @@ var JuboSdk = /** @class */function () {
|
|
|
6449
6426
|
writable: true,
|
|
6450
6427
|
value: false
|
|
6451
6428
|
});
|
|
6429
|
+
var device = ls.get('device') || '';
|
|
6430
|
+
var isfull = ls.get('isfull') || '';
|
|
6431
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
6432
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
6452
6433
|
this.options = options;
|
|
6453
6434
|
this.name = options.name;
|
|
6454
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
6455
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
6456
|
-
this.isIos = browserType.system === 'ios' || device
|
|
6435
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
6436
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
6437
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
6457
6438
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
6458
6439
|
this.isCanShowNav = this.isApp && true;
|
|
6459
|
-
this.
|
|
6440
|
+
this.version = version;
|
|
6441
|
+
this.channel = channel;
|
|
6442
|
+
this.isfull = isfull;
|
|
6443
|
+
this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
|
|
6460
6444
|
if (this.isOldApp) {
|
|
6461
6445
|
return new OldJuboSdk(options);
|
|
6462
6446
|
}
|
|
@@ -6488,7 +6472,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6488
6472
|
console.log('juboSDK.getToken');
|
|
6489
6473
|
if (!this.detection && this.isMiniProgram) return '';
|
|
6490
6474
|
try {
|
|
6491
|
-
var res =
|
|
6475
|
+
var res = dsbridge.call('getToken', {});
|
|
6492
6476
|
return res === null || res === void 0 ? void 0 : res.token;
|
|
6493
6477
|
} catch (error) {
|
|
6494
6478
|
console.error('juboSDK.getToken error', error);
|
|
@@ -6512,12 +6496,12 @@ var JuboSdk = /** @class */function () {
|
|
|
6512
6496
|
if (!_this.detection) return reject();
|
|
6513
6497
|
try {
|
|
6514
6498
|
if (_this.isMiniProgram) {
|
|
6515
|
-
|
|
6499
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6516
6500
|
url: _this.options.miniProgramLogin || MINI_PROGRAM_LOGIN
|
|
6517
6501
|
});
|
|
6518
6502
|
resolve('');
|
|
6519
6503
|
} else {
|
|
6520
|
-
|
|
6504
|
+
dsbridge.call('toLogin', {}, function (res) {
|
|
6521
6505
|
var resData = JSON.parse(res);
|
|
6522
6506
|
resolve(resData === null || resData === void 0 ? void 0 : resData.token);
|
|
6523
6507
|
});
|
|
@@ -6551,23 +6535,23 @@ var JuboSdk = /** @class */function () {
|
|
|
6551
6535
|
return url_1.indexOf(e) !== -1;
|
|
6552
6536
|
});
|
|
6553
6537
|
if (flag) {
|
|
6554
|
-
|
|
6538
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
6555
6539
|
url: url_1
|
|
6556
6540
|
});
|
|
6557
6541
|
} else {
|
|
6558
6542
|
if (isRedirect) {
|
|
6559
|
-
|
|
6543
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
6560
6544
|
url: url_1
|
|
6561
6545
|
});
|
|
6562
6546
|
} else {
|
|
6563
|
-
|
|
6547
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6564
6548
|
url: url_1
|
|
6565
6549
|
});
|
|
6566
6550
|
}
|
|
6567
6551
|
}
|
|
6568
6552
|
}
|
|
6569
6553
|
} else {
|
|
6570
|
-
|
|
6554
|
+
dsbridge.call('goRoute', {
|
|
6571
6555
|
url: route
|
|
6572
6556
|
});
|
|
6573
6557
|
}
|
|
@@ -6603,7 +6587,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6603
6587
|
};
|
|
6604
6588
|
try {
|
|
6605
6589
|
if (this.isMiniProgram) {
|
|
6606
|
-
|
|
6590
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
6607
6591
|
data: {
|
|
6608
6592
|
shareData: {
|
|
6609
6593
|
title: options.title,
|
|
@@ -6617,7 +6601,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6617
6601
|
}
|
|
6618
6602
|
});
|
|
6619
6603
|
} else {
|
|
6620
|
-
|
|
6604
|
+
dsbridge.call('shareMiniProgram', {
|
|
6621
6605
|
imgUrl: options.thumbImage,
|
|
6622
6606
|
title: options.title,
|
|
6623
6607
|
base64: options.base64,
|
|
@@ -6653,7 +6637,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6653
6637
|
console.log('juboSDK.postReport', keyName, data);
|
|
6654
6638
|
if (!this.detection && this.isMiniProgram) return;
|
|
6655
6639
|
try {
|
|
6656
|
-
|
|
6640
|
+
dsbridge.call('postReport', {
|
|
6657
6641
|
keyName: keyName,
|
|
6658
6642
|
data: data
|
|
6659
6643
|
});
|
|
@@ -6676,7 +6660,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6676
6660
|
console.log('juboSDK.sensorsReport', keyName, data);
|
|
6677
6661
|
if (!this.detection && this.isMiniProgram) return;
|
|
6678
6662
|
try {
|
|
6679
|
-
|
|
6663
|
+
dsbridge.call('sensorsReport', {
|
|
6680
6664
|
keyName: keyName,
|
|
6681
6665
|
data: data
|
|
6682
6666
|
});
|
|
@@ -6700,7 +6684,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6700
6684
|
console.log('juboSDK.shareWXImg', data);
|
|
6701
6685
|
if (!this.detection && this.isMiniProgram) return;
|
|
6702
6686
|
try {
|
|
6703
|
-
|
|
6687
|
+
dsbridge.call('shareWXImg', data);
|
|
6704
6688
|
} catch (error) {
|
|
6705
6689
|
console.log('🚀 ~ juboSDK.shareWXImg', error);
|
|
6706
6690
|
}
|
|
@@ -6719,7 +6703,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6719
6703
|
console.log('juboSDK.setNavTitle', title);
|
|
6720
6704
|
if (!this.detection && this.isMiniProgram) return;
|
|
6721
6705
|
try {
|
|
6722
|
-
|
|
6706
|
+
dsbridge.call('setNavTitle', {
|
|
6723
6707
|
title: title
|
|
6724
6708
|
});
|
|
6725
6709
|
} catch (error) {
|
|
@@ -6740,7 +6724,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6740
6724
|
console.log('juboSDK.hideNavBar');
|
|
6741
6725
|
if (!this.detection && this.isMiniProgram) return;
|
|
6742
6726
|
try {
|
|
6743
|
-
|
|
6727
|
+
dsbridge.call('hideNavBar', {
|
|
6744
6728
|
isHide: isHide
|
|
6745
6729
|
});
|
|
6746
6730
|
} catch (error) {
|
|
@@ -6761,7 +6745,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6761
6745
|
console.log('juboSDK.setOrientation');
|
|
6762
6746
|
if (!this.detection && this.isMiniProgram) return;
|
|
6763
6747
|
try {
|
|
6764
|
-
|
|
6748
|
+
dsbridge.call('setOrientation', {
|
|
6765
6749
|
isLandscape: isLandscape
|
|
6766
6750
|
});
|
|
6767
6751
|
} catch (error) {
|
|
@@ -6784,12 +6768,12 @@ var JuboSdk = /** @class */function () {
|
|
|
6784
6768
|
if (!_this.detection) return reject();
|
|
6785
6769
|
try {
|
|
6786
6770
|
if (_this.isMiniProgram) {
|
|
6787
|
-
|
|
6771
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6788
6772
|
url: "".concat(_this.options.miniProgramPayPage || '/pages/webPay/index', "?activity_id=").concat(options.activityId, "&price=").concat(options.amount, "&success=").concat(options.success, "&fail=").concat(options.fail)
|
|
6789
6773
|
});
|
|
6790
6774
|
resolve('');
|
|
6791
6775
|
} else {
|
|
6792
|
-
|
|
6776
|
+
dsbridge.call('toPayPage', options, function (res) {
|
|
6793
6777
|
var resData = JSON.parse(res);
|
|
6794
6778
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isSuccess);
|
|
6795
6779
|
});
|
|
@@ -6814,7 +6798,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6814
6798
|
console.log('juboSDK.hideStatusBar');
|
|
6815
6799
|
if (!this.detection && this.isMiniProgram) return;
|
|
6816
6800
|
try {
|
|
6817
|
-
|
|
6801
|
+
dsbridge.call('hideStatusBar', {
|
|
6818
6802
|
isHide: isHide
|
|
6819
6803
|
});
|
|
6820
6804
|
} catch (error) {
|
|
@@ -6834,7 +6818,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6834
6818
|
console.log('juboSDK.quit');
|
|
6835
6819
|
if (!this.detection && this.isMiniProgram) return;
|
|
6836
6820
|
try {
|
|
6837
|
-
|
|
6821
|
+
dsbridge.call('quit', {});
|
|
6838
6822
|
} catch (error) {
|
|
6839
6823
|
console.log('🚀 ~ juboSDK.quit', error);
|
|
6840
6824
|
}
|
|
@@ -6852,7 +6836,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6852
6836
|
console.log('juboSDK.goBack');
|
|
6853
6837
|
if (!this.detection && this.isMiniProgram) return;
|
|
6854
6838
|
try {
|
|
6855
|
-
|
|
6839
|
+
dsbridge.call('goBack', {});
|
|
6856
6840
|
} catch (error) {
|
|
6857
6841
|
console.log('🚀 ~ juboSDK.goBack', error);
|
|
6858
6842
|
}
|
|
@@ -6873,7 +6857,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6873
6857
|
var data = __assign({
|
|
6874
6858
|
type: 0
|
|
6875
6859
|
}, options);
|
|
6876
|
-
|
|
6860
|
+
dsbridge.call('shareHtml', data);
|
|
6877
6861
|
} catch (error) {
|
|
6878
6862
|
console.log('🚀 ~ juboSDK.shareHtml', error);
|
|
6879
6863
|
}
|
|
@@ -6893,7 +6877,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6893
6877
|
return new Promise(function (resolve, reject) {
|
|
6894
6878
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6895
6879
|
try {
|
|
6896
|
-
|
|
6880
|
+
dsbridge.call('checkAppNotice', {}, function (res) {
|
|
6897
6881
|
var resData = JSON.parse(res);
|
|
6898
6882
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isOpen);
|
|
6899
6883
|
});
|
|
@@ -6919,7 +6903,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6919
6903
|
return new Promise(function (resolve, reject) {
|
|
6920
6904
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6921
6905
|
try {
|
|
6922
|
-
|
|
6906
|
+
dsbridge.call('checkNetStatus', {}, function (res) {
|
|
6923
6907
|
var resData = JSON.parse(res);
|
|
6924
6908
|
resolve(resData === null || resData === void 0 ? void 0 : resData.status);
|
|
6925
6909
|
});
|
|
@@ -6944,7 +6928,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6944
6928
|
return new Promise(function (resolve, reject) {
|
|
6945
6929
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6946
6930
|
try {
|
|
6947
|
-
|
|
6931
|
+
dsbridge.call('hcAuthorization', options, function (res) {
|
|
6948
6932
|
var resData = JSON.parse(res);
|
|
6949
6933
|
resolve(resData);
|
|
6950
6934
|
});
|
|
@@ -6972,7 +6956,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6972
6956
|
if (this.isIos) {
|
|
6973
6957
|
return window.screen.height >= 812 && window.devicePixelRatio >= 2 ? 44 : 20;
|
|
6974
6958
|
} else {
|
|
6975
|
-
var res =
|
|
6959
|
+
var res = dsbridge.call('getStatusBarHeight', {});
|
|
6976
6960
|
return res === null || res === void 0 ? void 0 : res.height;
|
|
6977
6961
|
}
|
|
6978
6962
|
} catch (error) {
|
|
@@ -7003,6 +6987,9 @@ var url = location.href;
|
|
|
7003
6987
|
var urlData = urlToParams(url);
|
|
7004
6988
|
var device = urlData.device || ls.get('device') || '';
|
|
7005
6989
|
var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
6990
|
+
setTimeout(function () {
|
|
6991
|
+
console.log('🚀 ~ file: index.ts:20 ~ urlData.isfull || ls.get(\'isfull\'):', isfull, urlData.isfull);
|
|
6992
|
+
}, 1000);
|
|
7006
6993
|
var version = urlData.version || ls.get('version') || '';
|
|
7007
6994
|
ls.set('device', device);
|
|
7008
6995
|
ls.set('isfull', isfull);
|
|
@@ -7014,6 +7001,6 @@ if (process.env.NODE_ENV === 'development') {
|
|
|
7014
7001
|
export { AppNameEnum, JuboSdk as default, ls, shellTypeEnum, supporterTypeEnum, systemTypeEnum };
|
|
7015
7002
|
|
|
7016
7003
|
if(typeof window !== 'undefined') {
|
|
7017
|
-
window._juboSDK_VERSION_ = '1.0.
|
|
7004
|
+
window._juboSDK_VERSION_ = '1.0.2'
|
|
7018
7005
|
}
|
|
7019
7006
|
//# sourceMappingURL=index.esm.js.map
|