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.js
CHANGED
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
var fails$o = function (exec) {
|
|
9
|
+
var fails$n = function (exec) {
|
|
14
10
|
try {
|
|
15
11
|
return !!exec();
|
|
16
12
|
} catch (error) {
|
|
@@ -18,17 +14,17 @@
|
|
|
18
14
|
}
|
|
19
15
|
};
|
|
20
16
|
|
|
21
|
-
var fails$
|
|
17
|
+
var fails$m = fails$n;
|
|
22
18
|
|
|
23
19
|
// Detect IE8's incomplete defineProperty implementation
|
|
24
|
-
var descriptors = !fails$
|
|
20
|
+
var descriptors = !fails$m(function () {
|
|
25
21
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
26
22
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
27
23
|
});
|
|
28
24
|
|
|
29
|
-
var fails$
|
|
25
|
+
var fails$l = fails$n;
|
|
30
26
|
|
|
31
|
-
var functionBindNative = !fails$
|
|
27
|
+
var functionBindNative = !fails$l(function () {
|
|
32
28
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
33
29
|
var test = (function () { /* empty */ }).bind();
|
|
34
30
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -70,12 +66,12 @@
|
|
|
70
66
|
|
|
71
67
|
// `ToObject` abstract operation
|
|
72
68
|
// https://tc39.es/ecma262/#sec-toobject
|
|
73
|
-
var toObject$
|
|
69
|
+
var toObject$6 = function (argument) {
|
|
74
70
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
75
71
|
};
|
|
76
72
|
|
|
77
73
|
var uncurryThis$q = functionUncurryThis;
|
|
78
|
-
var toObject$
|
|
74
|
+
var toObject$5 = toObject$6;
|
|
79
75
|
|
|
80
76
|
var hasOwnProperty = uncurryThis$q({}.hasOwnProperty);
|
|
81
77
|
|
|
@@ -83,7 +79,7 @@
|
|
|
83
79
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
84
80
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
85
81
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
86
|
-
return hasOwnProperty(toObject$
|
|
82
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
87
83
|
};
|
|
88
84
|
|
|
89
85
|
var DESCRIPTORS$c = descriptors;
|
|
@@ -104,7 +100,11 @@
|
|
|
104
100
|
CONFIGURABLE: CONFIGURABLE$1
|
|
105
101
|
};
|
|
106
102
|
|
|
107
|
-
var
|
|
103
|
+
var makeBuiltInExports = {};
|
|
104
|
+
var makeBuiltIn$3 = {
|
|
105
|
+
get exports(){ return makeBuiltInExports; },
|
|
106
|
+
set exports(v){ makeBuiltInExports = v; },
|
|
107
|
+
};
|
|
108
108
|
|
|
109
109
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
110
110
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
137
|
-
var global$
|
|
137
|
+
var global$m =
|
|
138
138
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
139
139
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
140
140
|
check(typeof window == 'object' && window) ||
|
|
@@ -142,26 +142,26 @@
|
|
|
142
142
|
check(typeof self == 'object' && self) ||
|
|
143
143
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
144
144
|
// eslint-disable-next-line no-new-func -- fallback
|
|
145
|
-
(function () { return this; })() ||
|
|
145
|
+
(function () { return this; })() || Function('return this')();
|
|
146
146
|
|
|
147
|
-
var global$
|
|
147
|
+
var global$l = global$m;
|
|
148
148
|
|
|
149
149
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
150
150
|
var defineProperty$7 = Object.defineProperty;
|
|
151
151
|
|
|
152
152
|
var defineGlobalProperty$3 = function (key, value) {
|
|
153
153
|
try {
|
|
154
|
-
defineProperty$7(global$
|
|
154
|
+
defineProperty$7(global$l, key, { value: value, configurable: true, writable: true });
|
|
155
155
|
} catch (error) {
|
|
156
|
-
global$
|
|
156
|
+
global$l[key] = value;
|
|
157
157
|
} return value;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
var global$
|
|
160
|
+
var global$k = global$m;
|
|
161
161
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
162
162
|
|
|
163
163
|
var SHARED = '__core-js_shared__';
|
|
164
|
-
var store$3 = global$
|
|
164
|
+
var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
165
165
|
|
|
166
166
|
var sharedStore = store$3;
|
|
167
167
|
|
|
@@ -180,10 +180,10 @@
|
|
|
180
180
|
|
|
181
181
|
var inspectSource$3 = store$2.inspectSource;
|
|
182
182
|
|
|
183
|
-
var global$
|
|
183
|
+
var global$j = global$m;
|
|
184
184
|
var isCallable$i = isCallable$k;
|
|
185
185
|
|
|
186
|
-
var WeakMap$1 = global$
|
|
186
|
+
var WeakMap$1 = global$j.WeakMap;
|
|
187
187
|
|
|
188
188
|
var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
189
189
|
|
|
@@ -200,10 +200,10 @@
|
|
|
200
200
|
|
|
201
201
|
var objectDefineProperty = {};
|
|
202
202
|
|
|
203
|
-
var global$
|
|
203
|
+
var global$i = global$m;
|
|
204
204
|
var isObject$9 = isObject$a;
|
|
205
205
|
|
|
206
|
-
var document$3 = global$
|
|
206
|
+
var document$3 = global$i.document;
|
|
207
207
|
// typeof document.createElement is 'object' in old IE
|
|
208
208
|
var EXISTS = isObject$9(document$3) && isObject$9(document$3.createElement);
|
|
209
209
|
|
|
@@ -212,11 +212,11 @@
|
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
var DESCRIPTORS$b = descriptors;
|
|
215
|
-
var fails$
|
|
215
|
+
var fails$k = fails$n;
|
|
216
216
|
var createElement$1 = documentCreateElement$2;
|
|
217
217
|
|
|
218
218
|
// Thanks to IE8 for its funny defineProperty
|
|
219
|
-
var ie8DomDefine = !DESCRIPTORS$b && !fails$
|
|
219
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$k(function () {
|
|
220
220
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
221
221
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
222
222
|
get: function () { return 7; }
|
|
@@ -224,11 +224,11 @@
|
|
|
224
224
|
});
|
|
225
225
|
|
|
226
226
|
var DESCRIPTORS$a = descriptors;
|
|
227
|
-
var fails$
|
|
227
|
+
var fails$j = fails$n;
|
|
228
228
|
|
|
229
229
|
// V8 ~ Chrome 36-
|
|
230
230
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
231
|
-
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$
|
|
231
|
+
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$j(function () {
|
|
232
232
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
233
233
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
234
234
|
value: 42,
|
|
@@ -238,13 +238,13 @@
|
|
|
238
238
|
|
|
239
239
|
var isObject$8 = isObject$a;
|
|
240
240
|
|
|
241
|
-
var $String$
|
|
241
|
+
var $String$4 = String;
|
|
242
242
|
var $TypeError$e = TypeError;
|
|
243
243
|
|
|
244
244
|
// `Assert: Type(argument) is Object`
|
|
245
245
|
var anObject$f = function (argument) {
|
|
246
246
|
if (isObject$8(argument)) return argument;
|
|
247
|
-
throw $TypeError$e($String$
|
|
247
|
+
throw $TypeError$e($String$4(argument) + ' is not an object');
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
var NATIVE_BIND$2 = functionBindNative;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
return call$h.apply(call$h, arguments);
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
var global$
|
|
258
|
+
var global$h = global$m;
|
|
259
259
|
var isCallable$g = isCallable$k;
|
|
260
260
|
|
|
261
261
|
var aFunction = function (argument) {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
var getBuiltIn$7 = function (namespace, method) {
|
|
266
|
-
return arguments.length < 2 ? aFunction(global$
|
|
266
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
var uncurryThis$o = functionUncurryThis;
|
|
@@ -272,50 +272,45 @@
|
|
|
272
272
|
|
|
273
273
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
274
274
|
|
|
275
|
-
var global$
|
|
275
|
+
var global$g = global$m;
|
|
276
276
|
var userAgent$3 = engineUserAgent;
|
|
277
277
|
|
|
278
|
-
var process$4 = global$
|
|
279
|
-
var Deno$1 = global$
|
|
278
|
+
var process$4 = global$g.process;
|
|
279
|
+
var Deno$1 = global$g.Deno;
|
|
280
280
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
281
281
|
var v8 = versions && versions.v8;
|
|
282
|
-
var match, version$
|
|
282
|
+
var match, version$1;
|
|
283
283
|
|
|
284
284
|
if (v8) {
|
|
285
285
|
match = v8.split('.');
|
|
286
286
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
287
287
|
// but their correct versions are not interesting for us
|
|
288
|
-
version$
|
|
288
|
+
version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
292
292
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
293
|
-
if (!version$
|
|
293
|
+
if (!version$1 && userAgent$3) {
|
|
294
294
|
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
295
295
|
if (!match || match[1] >= 74) {
|
|
296
296
|
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
297
|
-
if (match) version$
|
|
297
|
+
if (match) version$1 = +match[1];
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
var engineV8Version = version$
|
|
301
|
+
var engineV8Version = version$1;
|
|
302
302
|
|
|
303
303
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
304
304
|
|
|
305
305
|
var V8_VERSION$3 = engineV8Version;
|
|
306
|
-
var fails$
|
|
307
|
-
var global$g = global$n;
|
|
308
|
-
|
|
309
|
-
var $String$4 = global$g.String;
|
|
306
|
+
var fails$i = fails$n;
|
|
310
307
|
|
|
311
308
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
312
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
309
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
313
310
|
var symbol = Symbol();
|
|
314
311
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
315
312
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
316
|
-
|
|
317
|
-
// of course, fail.
|
|
318
|
-
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
313
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
319
314
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
320
315
|
!Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;
|
|
321
316
|
});
|
|
@@ -389,7 +384,11 @@
|
|
|
389
384
|
throw $TypeError$c("Can't convert object to primitive value");
|
|
390
385
|
};
|
|
391
386
|
|
|
392
|
-
var
|
|
387
|
+
var sharedExports = {};
|
|
388
|
+
var shared$4 = {
|
|
389
|
+
get exports(){ return sharedExports; },
|
|
390
|
+
set exports(v){ sharedExports = v; },
|
|
391
|
+
};
|
|
393
392
|
|
|
394
393
|
var isPure = false;
|
|
395
394
|
|
|
@@ -398,15 +397,13 @@
|
|
|
398
397
|
(shared$4.exports = function (key, value) {
|
|
399
398
|
return store$1[key] || (store$1[key] = value !== undefined ? value : {});
|
|
400
399
|
})('versions', []).push({
|
|
401
|
-
version: '3.
|
|
400
|
+
version: '3.30.1',
|
|
402
401
|
mode: 'global',
|
|
403
402
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
404
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
403
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
|
|
405
404
|
source: 'https://github.com/zloirock/core-js'
|
|
406
405
|
});
|
|
407
406
|
|
|
408
|
-
var sharedExports = shared$4.exports;
|
|
409
|
-
|
|
410
407
|
var uncurryThis$n = functionUncurryThis;
|
|
411
408
|
|
|
412
409
|
var id = 0;
|
|
@@ -417,7 +414,7 @@
|
|
|
417
414
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
|
|
418
415
|
};
|
|
419
416
|
|
|
420
|
-
var global$f = global$
|
|
417
|
+
var global$f = global$m;
|
|
421
418
|
var shared$3 = sharedExports;
|
|
422
419
|
var hasOwn$9 = hasOwnProperty_1;
|
|
423
420
|
var uid$1 = uid$2;
|
|
@@ -548,7 +545,7 @@
|
|
|
548
545
|
var hiddenKeys$4 = {};
|
|
549
546
|
|
|
550
547
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
551
|
-
var global$e = global$
|
|
548
|
+
var global$e = global$m;
|
|
552
549
|
var isObject$5 = isObject$a;
|
|
553
550
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
554
551
|
var hasOwn$8 = hasOwnProperty_1;
|
|
@@ -619,7 +616,7 @@
|
|
|
619
616
|
};
|
|
620
617
|
|
|
621
618
|
var uncurryThis$m = functionUncurryThis;
|
|
622
|
-
var fails$
|
|
619
|
+
var fails$h = fails$n;
|
|
623
620
|
var isCallable$c = isCallable$k;
|
|
624
621
|
var hasOwn$7 = hasOwnProperty_1;
|
|
625
622
|
var DESCRIPTORS$7 = descriptors;
|
|
@@ -636,7 +633,7 @@
|
|
|
636
633
|
var replace$3 = uncurryThis$m(''.replace);
|
|
637
634
|
var join = uncurryThis$m([].join);
|
|
638
635
|
|
|
639
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$
|
|
636
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$h(function () {
|
|
640
637
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
641
638
|
});
|
|
642
639
|
|
|
@@ -673,8 +670,6 @@
|
|
|
673
670
|
return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
674
671
|
}, 'toString');
|
|
675
672
|
|
|
676
|
-
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
677
|
-
|
|
678
673
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
679
674
|
var defineProperty$5 = objectDefineProperty;
|
|
680
675
|
|
|
@@ -802,14 +797,14 @@
|
|
|
802
797
|
};
|
|
803
798
|
|
|
804
799
|
var uncurryThis$j = functionUncurryThis;
|
|
805
|
-
var fails$
|
|
800
|
+
var fails$g = fails$n;
|
|
806
801
|
var classof$8 = classofRaw$2;
|
|
807
802
|
|
|
808
803
|
var $Object$1 = Object;
|
|
809
804
|
var split = uncurryThis$j(''.split);
|
|
810
805
|
|
|
811
806
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
812
|
-
var indexedObject = fails$
|
|
807
|
+
var indexedObject = fails$g(function () {
|
|
813
808
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
814
809
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
815
810
|
return !$Object$1('z').propertyIsEnumerable(0);
|
|
@@ -1044,7 +1039,7 @@
|
|
|
1044
1039
|
}
|
|
1045
1040
|
};
|
|
1046
1041
|
|
|
1047
|
-
var fails$
|
|
1042
|
+
var fails$f = fails$n;
|
|
1048
1043
|
var isCallable$a = isCallable$k;
|
|
1049
1044
|
|
|
1050
1045
|
var replacement = /#|\.prototype\./;
|
|
@@ -1053,7 +1048,7 @@
|
|
|
1053
1048
|
var value = data[normalize(feature)];
|
|
1054
1049
|
return value == POLYFILL ? true
|
|
1055
1050
|
: value == NATIVE ? false
|
|
1056
|
-
: isCallable$a(detection) ? fails$
|
|
1051
|
+
: isCallable$a(detection) ? fails$f(detection)
|
|
1057
1052
|
: !!detection;
|
|
1058
1053
|
};
|
|
1059
1054
|
|
|
@@ -1067,7 +1062,7 @@
|
|
|
1067
1062
|
|
|
1068
1063
|
var isForced_1 = isForced$3;
|
|
1069
1064
|
|
|
1070
|
-
var global$d = global$
|
|
1065
|
+
var global$d = global$m;
|
|
1071
1066
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1072
1067
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1073
1068
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -1195,7 +1190,7 @@
|
|
|
1195
1190
|
};
|
|
1196
1191
|
|
|
1197
1192
|
var uncurryThis$e = functionUncurryThis;
|
|
1198
|
-
var fails$
|
|
1193
|
+
var fails$e = fails$n;
|
|
1199
1194
|
var isCallable$8 = isCallable$k;
|
|
1200
1195
|
var classof$5 = classof$6;
|
|
1201
1196
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
@@ -1239,7 +1234,7 @@
|
|
|
1239
1234
|
|
|
1240
1235
|
// `IsConstructor` abstract operation
|
|
1241
1236
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1242
|
-
var isConstructor$2 = !construct || fails$
|
|
1237
|
+
var isConstructor$2 = !construct || fails$e(function () {
|
|
1243
1238
|
var called;
|
|
1244
1239
|
return isConstructorModern(isConstructorModern.call)
|
|
1245
1240
|
|| !isConstructorModern(Object)
|
|
@@ -1281,7 +1276,7 @@
|
|
|
1281
1276
|
var bind$4 = functionBindContext;
|
|
1282
1277
|
var uncurryThis$d = functionUncurryThis;
|
|
1283
1278
|
var IndexedObject$2 = indexedObject;
|
|
1284
|
-
var toObject$
|
|
1279
|
+
var toObject$4 = toObject$6;
|
|
1285
1280
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1286
1281
|
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1287
1282
|
|
|
@@ -1297,7 +1292,7 @@
|
|
|
1297
1292
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
1298
1293
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1299
1294
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1300
|
-
var O = toObject$
|
|
1295
|
+
var O = toObject$4($this);
|
|
1301
1296
|
var self = IndexedObject$2(O);
|
|
1302
1297
|
var boundFunction = bind$4(callbackfn, that);
|
|
1303
1298
|
var length = lengthOfArrayLike$3(self);
|
|
@@ -1352,7 +1347,7 @@
|
|
|
1352
1347
|
filterReject: createMethod$3(7)
|
|
1353
1348
|
};
|
|
1354
1349
|
|
|
1355
|
-
var fails$
|
|
1350
|
+
var fails$d = fails$n;
|
|
1356
1351
|
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1357
1352
|
var V8_VERSION$2 = engineV8Version;
|
|
1358
1353
|
|
|
@@ -1362,7 +1357,7 @@
|
|
|
1362
1357
|
// We can't use this feature detection in V8 since it causes
|
|
1363
1358
|
// deoptimization and serious performance degradation
|
|
1364
1359
|
// https://github.com/zloirock/core-js/issues/677
|
|
1365
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
1360
|
+
return V8_VERSION$2 >= 51 || !fails$d(function () {
|
|
1366
1361
|
var array = [];
|
|
1367
1362
|
var constructor = array.constructor = {};
|
|
1368
1363
|
constructor[SPECIES$4] = function () {
|
|
@@ -1372,7 +1367,7 @@
|
|
|
1372
1367
|
});
|
|
1373
1368
|
};
|
|
1374
1369
|
|
|
1375
|
-
var $$
|
|
1370
|
+
var $$j = _export;
|
|
1376
1371
|
var $map = arrayIteration.map;
|
|
1377
1372
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
1378
1373
|
|
|
@@ -1381,7 +1376,7 @@
|
|
|
1381
1376
|
// `Array.prototype.map` method
|
|
1382
1377
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1383
1378
|
// with adding support of @@species
|
|
1384
|
-
$$
|
|
1379
|
+
$$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1385
1380
|
map: function map(callbackfn /* , thisArg */) {
|
|
1386
1381
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1387
1382
|
}
|
|
@@ -1431,8 +1426,8 @@
|
|
|
1431
1426
|
trim: createMethod$2(3)
|
|
1432
1427
|
};
|
|
1433
1428
|
|
|
1434
|
-
var global$c = global$
|
|
1435
|
-
var fails$
|
|
1429
|
+
var global$c = global$m;
|
|
1430
|
+
var fails$c = fails$n;
|
|
1436
1431
|
var uncurryThis$b = functionUncurryThis;
|
|
1437
1432
|
var toString$5 = toString$7;
|
|
1438
1433
|
var trim$1 = stringTrim.trim;
|
|
@@ -1445,7 +1440,7 @@
|
|
|
1445
1440
|
var exec$1 = uncurryThis$b(hex.exec);
|
|
1446
1441
|
var FORCED$4 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
1447
1442
|
// MS Edge 18- broken with boxed symbols
|
|
1448
|
-
|| (ITERATOR$3 && !fails$
|
|
1443
|
+
|| (ITERATOR$3 && !fails$c(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1449
1444
|
|
|
1450
1445
|
// `parseInt` method
|
|
1451
1446
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
@@ -1454,20 +1449,20 @@
|
|
|
1454
1449
|
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1455
1450
|
} : $parseInt$1;
|
|
1456
1451
|
|
|
1457
|
-
var $$
|
|
1452
|
+
var $$i = _export;
|
|
1458
1453
|
var $parseInt = numberParseInt;
|
|
1459
1454
|
|
|
1460
1455
|
// `parseInt` method
|
|
1461
1456
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1462
|
-
$$
|
|
1457
|
+
$$i({ global: true, forced: parseInt != $parseInt }, {
|
|
1463
1458
|
parseInt: $parseInt
|
|
1464
1459
|
});
|
|
1465
1460
|
|
|
1466
|
-
var fails$
|
|
1461
|
+
var fails$b = fails$n;
|
|
1467
1462
|
|
|
1468
1463
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
1469
1464
|
var method = [][METHOD_NAME];
|
|
1470
|
-
return !!method && fails$
|
|
1465
|
+
return !!method && fails$b(function () {
|
|
1471
1466
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1472
1467
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1473
1468
|
});
|
|
@@ -1485,13 +1480,13 @@
|
|
|
1485
1480
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1486
1481
|
} : [].forEach;
|
|
1487
1482
|
|
|
1488
|
-
var $$
|
|
1483
|
+
var $$h = _export;
|
|
1489
1484
|
var forEach$1 = arrayForEach;
|
|
1490
1485
|
|
|
1491
1486
|
// `Array.prototype.forEach` method
|
|
1492
1487
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1493
1488
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1494
|
-
$$
|
|
1489
|
+
$$h({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1495
1490
|
forEach: forEach$1
|
|
1496
1491
|
});
|
|
1497
1492
|
|
|
@@ -1558,7 +1553,7 @@
|
|
|
1558
1553
|
|
|
1559
1554
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1560
1555
|
|
|
1561
|
-
var global$b = global$
|
|
1556
|
+
var global$b = global$m;
|
|
1562
1557
|
var DOMIterables = domIterables;
|
|
1563
1558
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1564
1559
|
var forEach = arrayForEach;
|
|
@@ -1730,12 +1725,12 @@
|
|
|
1730
1725
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1731
1726
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1732
1727
|
|
|
1733
|
-
var global$a = global$
|
|
1728
|
+
var global$a = global$m;
|
|
1734
1729
|
var apply$1 = functionApply;
|
|
1735
1730
|
var bind$3 = functionBindContext;
|
|
1736
1731
|
var isCallable$6 = isCallable$k;
|
|
1737
1732
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1738
|
-
var fails$
|
|
1733
|
+
var fails$a = fails$n;
|
|
1739
1734
|
var html$1 = html$2;
|
|
1740
1735
|
var arraySlice = arraySlice$1;
|
|
1741
1736
|
var createElement = documentCreateElement$2;
|
|
@@ -1753,9 +1748,9 @@
|
|
|
1753
1748
|
var counter = 0;
|
|
1754
1749
|
var queue$2 = {};
|
|
1755
1750
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1756
|
-
var $location, defer, channel
|
|
1751
|
+
var $location, defer, channel, port;
|
|
1757
1752
|
|
|
1758
|
-
fails$
|
|
1753
|
+
fails$a(function () {
|
|
1759
1754
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1760
1755
|
$location = global$a.location;
|
|
1761
1756
|
});
|
|
@@ -1811,9 +1806,9 @@
|
|
|
1811
1806
|
// Browsers with MessageChannel, includes WebWorkers
|
|
1812
1807
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1813
1808
|
} else if (MessageChannel && !IS_IOS$1) {
|
|
1814
|
-
channel
|
|
1815
|
-
port = channel
|
|
1816
|
-
channel
|
|
1809
|
+
channel = new MessageChannel();
|
|
1810
|
+
port = channel.port2;
|
|
1811
|
+
channel.port1.onmessage = eventListener;
|
|
1817
1812
|
defer = bind$3(port.postMessage, port);
|
|
1818
1813
|
// Browsers with postMessage, skip WebWorkers
|
|
1819
1814
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
@@ -1822,7 +1817,7 @@
|
|
|
1822
1817
|
isCallable$6(global$a.postMessage) &&
|
|
1823
1818
|
!global$a.importScripts &&
|
|
1824
1819
|
$location && $location.protocol !== 'file:' &&
|
|
1825
|
-
!fails$
|
|
1820
|
+
!fails$a(globalPostMessageDefer)
|
|
1826
1821
|
) {
|
|
1827
1822
|
defer = globalPostMessageDefer;
|
|
1828
1823
|
global$a.addEventListener('message', eventListener, false);
|
|
@@ -1880,7 +1875,7 @@
|
|
|
1880
1875
|
|
|
1881
1876
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1882
1877
|
|
|
1883
|
-
var global$9 = global$
|
|
1878
|
+
var global$9 = global$m;
|
|
1884
1879
|
var bind$2 = functionBindContext;
|
|
1885
1880
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1886
1881
|
var macrotask = task$1.set;
|
|
@@ -1976,7 +1971,7 @@
|
|
|
1976
1971
|
}
|
|
1977
1972
|
};
|
|
1978
1973
|
|
|
1979
|
-
var global$8 = global$
|
|
1974
|
+
var global$8 = global$m;
|
|
1980
1975
|
|
|
1981
1976
|
var promiseNativeConstructor = global$8.Promise;
|
|
1982
1977
|
|
|
@@ -1991,7 +1986,7 @@
|
|
|
1991
1986
|
&& typeof window == 'object'
|
|
1992
1987
|
&& typeof document == 'object';
|
|
1993
1988
|
|
|
1994
|
-
var global$7 = global$
|
|
1989
|
+
var global$7 = global$m;
|
|
1995
1990
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1996
1991
|
var isCallable$5 = isCallable$k;
|
|
1997
1992
|
var isForced$1 = isForced_1;
|
|
@@ -2059,9 +2054,9 @@
|
|
|
2059
2054
|
return new PromiseCapability(C);
|
|
2060
2055
|
};
|
|
2061
2056
|
|
|
2062
|
-
var $$
|
|
2057
|
+
var $$g = _export;
|
|
2063
2058
|
var IS_NODE$1 = engineIsNode;
|
|
2064
|
-
var global$6 = global$
|
|
2059
|
+
var global$6 = global$m;
|
|
2065
2060
|
var call$c = functionCall;
|
|
2066
2061
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
2067
2062
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
@@ -2339,7 +2334,7 @@
|
|
|
2339
2334
|
}
|
|
2340
2335
|
}
|
|
2341
2336
|
|
|
2342
|
-
$$
|
|
2337
|
+
$$g({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2343
2338
|
Promise: PromiseConstructor
|
|
2344
2339
|
});
|
|
2345
2340
|
|
|
@@ -2527,7 +2522,7 @@
|
|
|
2527
2522
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2528
2523
|
});
|
|
2529
2524
|
|
|
2530
|
-
var $$
|
|
2525
|
+
var $$f = _export;
|
|
2531
2526
|
var call$8 = functionCall;
|
|
2532
2527
|
var aCallable$2 = aCallable$9;
|
|
2533
2528
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -2537,7 +2532,7 @@
|
|
|
2537
2532
|
|
|
2538
2533
|
// `Promise.all` method
|
|
2539
2534
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2540
|
-
$$
|
|
2535
|
+
$$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2541
2536
|
all: function all(iterable) {
|
|
2542
2537
|
var C = this;
|
|
2543
2538
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -2566,7 +2561,7 @@
|
|
|
2566
2561
|
}
|
|
2567
2562
|
});
|
|
2568
2563
|
|
|
2569
|
-
var $$
|
|
2564
|
+
var $$e = _export;
|
|
2570
2565
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2571
2566
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2572
2567
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
@@ -2577,7 +2572,7 @@
|
|
|
2577
2572
|
|
|
2578
2573
|
// `Promise.prototype.catch` method
|
|
2579
2574
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2580
|
-
$$
|
|
2575
|
+
$$e({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2581
2576
|
'catch': function (onRejected) {
|
|
2582
2577
|
return this.then(undefined, onRejected);
|
|
2583
2578
|
}
|
|
@@ -2591,7 +2586,7 @@
|
|
|
2591
2586
|
}
|
|
2592
2587
|
}
|
|
2593
2588
|
|
|
2594
|
-
var $$
|
|
2589
|
+
var $$d = _export;
|
|
2595
2590
|
var call$7 = functionCall;
|
|
2596
2591
|
var aCallable$1 = aCallable$9;
|
|
2597
2592
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -2601,7 +2596,7 @@
|
|
|
2601
2596
|
|
|
2602
2597
|
// `Promise.race` method
|
|
2603
2598
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2604
|
-
$$
|
|
2599
|
+
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2605
2600
|
race: function race(iterable) {
|
|
2606
2601
|
var C = this;
|
|
2607
2602
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -2617,14 +2612,14 @@
|
|
|
2617
2612
|
}
|
|
2618
2613
|
});
|
|
2619
2614
|
|
|
2620
|
-
var $$
|
|
2615
|
+
var $$c = _export;
|
|
2621
2616
|
var call$6 = functionCall;
|
|
2622
2617
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2623
2618
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2624
2619
|
|
|
2625
2620
|
// `Promise.reject` method
|
|
2626
2621
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2627
|
-
$$
|
|
2622
|
+
$$c({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2628
2623
|
reject: function reject(r) {
|
|
2629
2624
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2630
2625
|
call$6(capability.reject, undefined, r);
|
|
@@ -2645,7 +2640,7 @@
|
|
|
2645
2640
|
return promiseCapability.promise;
|
|
2646
2641
|
};
|
|
2647
2642
|
|
|
2648
|
-
var $$
|
|
2643
|
+
var $$b = _export;
|
|
2649
2644
|
var getBuiltIn = getBuiltIn$7;
|
|
2650
2645
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2651
2646
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2654,7 +2649,7 @@
|
|
|
2654
2649
|
|
|
2655
2650
|
// `Promise.resolve` method
|
|
2656
2651
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2657
|
-
$$
|
|
2652
|
+
$$b({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2658
2653
|
resolve: function resolve(x) {
|
|
2659
2654
|
return promiseResolve(this, x);
|
|
2660
2655
|
}
|
|
@@ -2678,11 +2673,11 @@
|
|
|
2678
2673
|
else object[propertyKey] = value;
|
|
2679
2674
|
};
|
|
2680
2675
|
|
|
2681
|
-
var $$
|
|
2682
|
-
var fails$
|
|
2676
|
+
var $$a = _export;
|
|
2677
|
+
var fails$9 = fails$n;
|
|
2683
2678
|
var isArray$1 = isArray$3;
|
|
2684
2679
|
var isObject$1 = isObject$a;
|
|
2685
|
-
var toObject$
|
|
2680
|
+
var toObject$3 = toObject$6;
|
|
2686
2681
|
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
2687
2682
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2688
2683
|
var createProperty = createProperty$1;
|
|
@@ -2696,7 +2691,7 @@
|
|
|
2696
2691
|
// We can't use this feature detection in V8 since it causes
|
|
2697
2692
|
// deoptimization and serious performance degradation
|
|
2698
2693
|
// https://github.com/zloirock/core-js/issues/679
|
|
2699
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
2694
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$9(function () {
|
|
2700
2695
|
var array = [];
|
|
2701
2696
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2702
2697
|
return array.concat()[0] !== array;
|
|
@@ -2713,10 +2708,10 @@
|
|
|
2713
2708
|
// `Array.prototype.concat` method
|
|
2714
2709
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2715
2710
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2716
|
-
$$
|
|
2711
|
+
$$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
2717
2712
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2718
2713
|
concat: function concat(arg) {
|
|
2719
|
-
var O = toObject$
|
|
2714
|
+
var O = toObject$3(this);
|
|
2720
2715
|
var A = arraySpeciesCreate(O, 0);
|
|
2721
2716
|
var n = 0;
|
|
2722
2717
|
var i, k, length, len, E;
|
|
@@ -2822,14 +2817,14 @@
|
|
|
2822
2817
|
});
|
|
2823
2818
|
}
|
|
2824
2819
|
|
|
2825
|
-
var $$
|
|
2820
|
+
var $$9 = _export;
|
|
2826
2821
|
var DESCRIPTORS$3 = descriptors;
|
|
2827
2822
|
var defineProperty$3 = objectDefineProperty.f;
|
|
2828
2823
|
|
|
2829
2824
|
// `Object.defineProperty` method
|
|
2830
2825
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2831
2826
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2832
|
-
$$
|
|
2827
|
+
$$9({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$3, sham: !DESCRIPTORS$3 }, {
|
|
2833
2828
|
defineProperty: defineProperty$3
|
|
2834
2829
|
});
|
|
2835
2830
|
|
|
@@ -2846,11 +2841,11 @@
|
|
|
2846
2841
|
var DESCRIPTORS$2 = descriptors;
|
|
2847
2842
|
var uncurryThis$8 = functionUncurryThis;
|
|
2848
2843
|
var call$5 = functionCall;
|
|
2849
|
-
var fails$
|
|
2844
|
+
var fails$8 = fails$n;
|
|
2850
2845
|
var objectKeys$1 = objectKeys$2;
|
|
2851
2846
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2852
2847
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2853
|
-
var toObject$
|
|
2848
|
+
var toObject$2 = toObject$6;
|
|
2854
2849
|
var IndexedObject$1 = indexedObject;
|
|
2855
2850
|
|
|
2856
2851
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
@@ -2861,7 +2856,7 @@
|
|
|
2861
2856
|
|
|
2862
2857
|
// `Object.assign` method
|
|
2863
2858
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2864
|
-
var objectAssign = !$assign || fails$
|
|
2859
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
2865
2860
|
// should have correct order of operations (Edge bug)
|
|
2866
2861
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
2867
2862
|
enumerable: true,
|
|
@@ -2882,7 +2877,7 @@
|
|
|
2882
2877
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2883
2878
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
2884
2879
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2885
|
-
var T = toObject$
|
|
2880
|
+
var T = toObject$2(target);
|
|
2886
2881
|
var argumentsLength = arguments.length;
|
|
2887
2882
|
var index = 1;
|
|
2888
2883
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -2900,31 +2895,16 @@
|
|
|
2900
2895
|
} return T;
|
|
2901
2896
|
} : $assign;
|
|
2902
2897
|
|
|
2903
|
-
var $$
|
|
2898
|
+
var $$8 = _export;
|
|
2904
2899
|
var assign = objectAssign;
|
|
2905
2900
|
|
|
2906
2901
|
// `Object.assign` method
|
|
2907
2902
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2908
2903
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2909
|
-
$$
|
|
2904
|
+
$$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2910
2905
|
assign: assign
|
|
2911
2906
|
});
|
|
2912
2907
|
|
|
2913
|
-
var $$8 = _export;
|
|
2914
|
-
var toObject$2 = toObject$7;
|
|
2915
|
-
var nativeKeys = objectKeys$2;
|
|
2916
|
-
var fails$8 = fails$o;
|
|
2917
|
-
|
|
2918
|
-
var FAILS_ON_PRIMITIVES = fails$8(function () { nativeKeys(1); });
|
|
2919
|
-
|
|
2920
|
-
// `Object.keys` method
|
|
2921
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
2922
|
-
$$8({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
2923
|
-
keys: function keys(it) {
|
|
2924
|
-
return nativeKeys(toObject$2(it));
|
|
2925
|
-
}
|
|
2926
|
-
});
|
|
2927
|
-
|
|
2928
2908
|
/*
|
|
2929
2909
|
* @Author: Lanrri
|
|
2930
2910
|
* @Email: lanrri@163.com
|
|
@@ -3249,8 +3229,6 @@
|
|
|
3249
3229
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3250
3230
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3251
3231
|
***************************************************************************** */
|
|
3252
|
-
/* global Reflect, Promise */
|
|
3253
|
-
|
|
3254
3232
|
|
|
3255
3233
|
var __assign = function() {
|
|
3256
3234
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -3291,8 +3269,8 @@
|
|
|
3291
3269
|
return result;
|
|
3292
3270
|
};
|
|
3293
3271
|
|
|
3294
|
-
var fails$7 = fails$
|
|
3295
|
-
var global$5 = global$
|
|
3272
|
+
var fails$7 = fails$n;
|
|
3273
|
+
var global$5 = global$m;
|
|
3296
3274
|
|
|
3297
3275
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3298
3276
|
var $RegExp$2 = global$5.RegExp;
|
|
@@ -3322,8 +3300,8 @@
|
|
|
3322
3300
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3323
3301
|
};
|
|
3324
3302
|
|
|
3325
|
-
var fails$6 = fails$
|
|
3326
|
-
var global$4 = global$
|
|
3303
|
+
var fails$6 = fails$n;
|
|
3304
|
+
var global$4 = global$m;
|
|
3327
3305
|
|
|
3328
3306
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3329
3307
|
var $RegExp$1 = global$4.RegExp;
|
|
@@ -3333,8 +3311,8 @@
|
|
|
3333
3311
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3334
3312
|
});
|
|
3335
3313
|
|
|
3336
|
-
var fails$5 = fails$
|
|
3337
|
-
var global$3 = global$
|
|
3314
|
+
var fails$5 = fails$n;
|
|
3315
|
+
var global$3 = global$m;
|
|
3338
3316
|
|
|
3339
3317
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3340
3318
|
var $RegExp = global$3.RegExp;
|
|
@@ -3476,7 +3454,7 @@
|
|
|
3476
3454
|
var uncurryThis$5 = functionUncurryThisClause;
|
|
3477
3455
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
3478
3456
|
var regexpExec$1 = regexpExec$2;
|
|
3479
|
-
var fails$4 = fails$
|
|
3457
|
+
var fails$4 = fails$n;
|
|
3480
3458
|
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3481
3459
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3482
3460
|
|
|
@@ -3591,7 +3569,7 @@
|
|
|
3591
3569
|
};
|
|
3592
3570
|
|
|
3593
3571
|
var uncurryThis$3 = functionUncurryThis;
|
|
3594
|
-
var toObject$1 = toObject$
|
|
3572
|
+
var toObject$1 = toObject$6;
|
|
3595
3573
|
|
|
3596
3574
|
var floor = Math.floor;
|
|
3597
3575
|
var charAt = uncurryThis$3(''.charAt);
|
|
@@ -3661,7 +3639,7 @@
|
|
|
3661
3639
|
var call$2 = functionCall;
|
|
3662
3640
|
var uncurryThis$2 = functionUncurryThis;
|
|
3663
3641
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3664
|
-
var fails$3 = fails$
|
|
3642
|
+
var fails$3 = fails$n;
|
|
3665
3643
|
var anObject$2 = anObject$f;
|
|
3666
3644
|
var isCallable$1 = isCallable$k;
|
|
3667
3645
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
@@ -3811,7 +3789,7 @@
|
|
|
3811
3789
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3812
3790
|
var anObject$1 = anObject$f;
|
|
3813
3791
|
var $toString = toString$7;
|
|
3814
|
-
var fails$2 = fails$
|
|
3792
|
+
var fails$2 = fails$n;
|
|
3815
3793
|
var getRegExpFlags = regexpGetFlags;
|
|
3816
3794
|
|
|
3817
3795
|
var TO_STRING = 'toString';
|
|
@@ -4128,7 +4106,7 @@
|
|
|
4128
4106
|
});
|
|
4129
4107
|
|
|
4130
4108
|
var aCallable = aCallable$9;
|
|
4131
|
-
var toObject = toObject$
|
|
4109
|
+
var toObject = toObject$6;
|
|
4132
4110
|
var IndexedObject = indexedObject;
|
|
4133
4111
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
4134
4112
|
|
|
@@ -4190,7 +4168,7 @@
|
|
|
4190
4168
|
}
|
|
4191
4169
|
});
|
|
4192
4170
|
|
|
4193
|
-
var global$2 = global$
|
|
4171
|
+
var global$2 = global$m;
|
|
4194
4172
|
|
|
4195
4173
|
var path$1 = global$2;
|
|
4196
4174
|
|
|
@@ -4222,7 +4200,7 @@
|
|
|
4222
4200
|
var $$1 = _export;
|
|
4223
4201
|
var IS_PURE = isPure;
|
|
4224
4202
|
var DESCRIPTORS = descriptors;
|
|
4225
|
-
var global$1 = global$
|
|
4203
|
+
var global$1 = global$m;
|
|
4226
4204
|
var path = path$1;
|
|
4227
4205
|
var uncurryThis = functionUncurryThis;
|
|
4228
4206
|
var isForced = isForced_1;
|
|
@@ -4231,7 +4209,7 @@
|
|
|
4231
4209
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
4232
4210
|
var isSymbol = isSymbol$3;
|
|
4233
4211
|
var toPrimitive = toPrimitive$2;
|
|
4234
|
-
var fails$1 = fails$
|
|
4212
|
+
var fails$1 = fails$n;
|
|
4235
4213
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4236
4214
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
4237
4215
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -4322,7 +4300,7 @@
|
|
|
4322
4300
|
if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
|
|
4323
4301
|
|
|
4324
4302
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4325
|
-
var fails = fails$
|
|
4303
|
+
var fails = fails$n;
|
|
4326
4304
|
var whitespaces = whitespaces$3;
|
|
4327
4305
|
|
|
4328
4306
|
var non = '\u200B\u0085\u180E';
|
|
@@ -4623,7 +4601,11 @@
|
|
|
4623
4601
|
}
|
|
4624
4602
|
};
|
|
4625
4603
|
|
|
4626
|
-
var
|
|
4604
|
+
var weixinJsSdkExports = {};
|
|
4605
|
+
var weixinJsSdk = {
|
|
4606
|
+
get exports(){ return weixinJsSdkExports; },
|
|
4607
|
+
set exports(v){ weixinJsSdkExports = v; },
|
|
4608
|
+
};
|
|
4627
4609
|
|
|
4628
4610
|
!(function(e, n) {
|
|
4629
4611
|
weixinJsSdk.exports = n(e);
|
|
@@ -5524,9 +5506,6 @@
|
|
|
5524
5506
|
}
|
|
5525
5507
|
});
|
|
5526
5508
|
|
|
5527
|
-
var weixinJsSdkExports = weixinJsSdk.exports;
|
|
5528
|
-
var wx$1 = /*@__PURE__*/getDefaultExportFromCjs(weixinJsSdkExports);
|
|
5529
|
-
|
|
5530
5509
|
var bridge = {
|
|
5531
5510
|
default:commonjsGlobal,// for typescript
|
|
5532
5511
|
call: function (method, args, cb) {
|
|
@@ -5660,13 +5639,7 @@
|
|
|
5660
5639
|
|
|
5661
5640
|
var dsbridge = bridge;
|
|
5662
5641
|
|
|
5663
|
-
var dsBridge = /*@__PURE__*/getDefaultExportFromCjs(dsbridge);
|
|
5664
|
-
|
|
5665
5642
|
var APP_HOME$1 = 'ojb://ip_home';
|
|
5666
|
-
var device$2 = ls.get('device') || '';
|
|
5667
|
-
var isfull$2 = ls.get('isfull') || '';
|
|
5668
|
-
var version$2 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
5669
|
-
var channel$1 = ls.get('channel') || browserType.getShell('channel') || '';
|
|
5670
5643
|
var OldJuboSdk = /** @class */function () {
|
|
5671
5644
|
function OldJuboSdk(options) {
|
|
5672
5645
|
Object.defineProperty(this, "options", {
|
|
@@ -5722,20 +5695,20 @@
|
|
|
5722
5695
|
enumerable: true,
|
|
5723
5696
|
configurable: true,
|
|
5724
5697
|
writable: true,
|
|
5725
|
-
value:
|
|
5698
|
+
value: void 0
|
|
5726
5699
|
});
|
|
5727
5700
|
/** 渠道 */
|
|
5728
5701
|
Object.defineProperty(this, "channel", {
|
|
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, "isfull", {
|
|
5735
5708
|
enumerable: true,
|
|
5736
5709
|
configurable: true,
|
|
5737
5710
|
writable: true,
|
|
5738
|
-
value:
|
|
5711
|
+
value: void 0
|
|
5739
5712
|
});
|
|
5740
5713
|
Object.defineProperty(this, "isOldApp", {
|
|
5741
5714
|
enumerable: true,
|
|
@@ -5743,13 +5716,20 @@
|
|
|
5743
5716
|
writable: true,
|
|
5744
5717
|
value: true
|
|
5745
5718
|
});
|
|
5719
|
+
var device = ls.get('device') || '';
|
|
5720
|
+
var isfull = ls.get('isfull') || '';
|
|
5721
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
5722
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
5746
5723
|
this.options = options;
|
|
5747
5724
|
this.name = options.name;
|
|
5748
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
5749
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
5750
|
-
this.isIos = browserType.system === 'ios' || device
|
|
5725
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
5726
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
5727
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
5751
5728
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
5752
|
-
this.isCanShowNav = this.isApp && compareVersions(version
|
|
5729
|
+
this.isCanShowNav = this.isApp && compareVersions(version, '2.5.0') >= 0 && isfull;
|
|
5730
|
+
this.version = version;
|
|
5731
|
+
this.channel = channel;
|
|
5732
|
+
this.isfull = isfull;
|
|
5753
5733
|
return this;
|
|
5754
5734
|
}
|
|
5755
5735
|
Object.defineProperty(OldJuboSdk.prototype, "detection", {
|
|
@@ -5818,7 +5798,7 @@
|
|
|
5818
5798
|
});
|
|
5819
5799
|
break;
|
|
5820
5800
|
case 'wx':
|
|
5821
|
-
|
|
5801
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5822
5802
|
url: '/pages/login/index'
|
|
5823
5803
|
});
|
|
5824
5804
|
break;
|
|
@@ -5865,16 +5845,16 @@
|
|
|
5865
5845
|
return url_1.indexOf(e) !== -1;
|
|
5866
5846
|
});
|
|
5867
5847
|
if (flag) {
|
|
5868
|
-
|
|
5848
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
5869
5849
|
url: url_1
|
|
5870
5850
|
});
|
|
5871
5851
|
} else {
|
|
5872
5852
|
if (isRedirect) {
|
|
5873
|
-
|
|
5853
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
5874
5854
|
url: url_1
|
|
5875
5855
|
});
|
|
5876
5856
|
} else {
|
|
5877
|
-
|
|
5857
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5878
5858
|
url: url_1
|
|
5879
5859
|
});
|
|
5880
5860
|
}
|
|
@@ -5924,7 +5904,7 @@
|
|
|
5924
5904
|
}));
|
|
5925
5905
|
break;
|
|
5926
5906
|
case 'wx':
|
|
5927
|
-
|
|
5907
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
5928
5908
|
data: {
|
|
5929
5909
|
shareData: {
|
|
5930
5910
|
title: options.title,
|
|
@@ -6111,7 +6091,7 @@
|
|
|
6111
6091
|
window.webkit.messageHandlers.juboOnPay.postMessage(options);
|
|
6112
6092
|
break;
|
|
6113
6093
|
case 'wx':
|
|
6114
|
-
|
|
6094
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6115
6095
|
url: "/pages/webPay/index?activity_id=".concat(activityId, "&price=").concat(amount, "&success=").concat(success, "&fail=").concat(fail)
|
|
6116
6096
|
});
|
|
6117
6097
|
break;
|
|
@@ -6269,18 +6249,19 @@
|
|
|
6269
6249
|
return new Promise(function (resolve, reject) {
|
|
6270
6250
|
var _a, _b;
|
|
6271
6251
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6252
|
+
var device = _this.device;
|
|
6272
6253
|
try {
|
|
6273
6254
|
var isNetworkConnected = false;
|
|
6274
|
-
if (device
|
|
6255
|
+
if (device === 'android') {
|
|
6275
6256
|
isNetworkConnected = window.jubo.isNetworkConnected();
|
|
6276
|
-
} else if (device
|
|
6257
|
+
} else if (device === 'ios') {
|
|
6277
6258
|
isNetworkConnected = ((_a = window.isNetworkConnected) === null || _a === void 0 ? void 0 : _a.call(window)) || false;
|
|
6278
6259
|
}
|
|
6279
6260
|
if (isNetworkConnected) {
|
|
6280
6261
|
var isWifiConnected = false;
|
|
6281
|
-
if (device
|
|
6262
|
+
if (device === 'android') {
|
|
6282
6263
|
isWifiConnected = window.jubo.isWifiConnected();
|
|
6283
|
-
} else if (device
|
|
6264
|
+
} else if (device === 'ios') {
|
|
6284
6265
|
isWifiConnected = ((_b = window.isWifiConnected) === null || _b === void 0 ? void 0 : _b.call(window)) || false;
|
|
6285
6266
|
}
|
|
6286
6267
|
resolve(isWifiConnected ? 2 : 1);
|
|
@@ -6375,10 +6356,6 @@
|
|
|
6375
6356
|
|
|
6376
6357
|
var APP_HOME = 'ojb://ip_home';
|
|
6377
6358
|
var MINI_PROGRAM_LOGIN = '/pages/login/index';
|
|
6378
|
-
var device$1 = ls.get('device') || '';
|
|
6379
|
-
var isfull$1 = ls.get('isfull') || '';
|
|
6380
|
-
var version$1 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
6381
|
-
var channel = ls.get('channel') || browserType.getShell('channel') || '';
|
|
6382
6359
|
var JuboSdk = /** @class */function () {
|
|
6383
6360
|
function JuboSdk(options) {
|
|
6384
6361
|
Object.defineProperty(this, "options", {
|
|
@@ -6434,20 +6411,20 @@
|
|
|
6434
6411
|
enumerable: true,
|
|
6435
6412
|
configurable: true,
|
|
6436
6413
|
writable: true,
|
|
6437
|
-
value:
|
|
6414
|
+
value: void 0
|
|
6438
6415
|
});
|
|
6439
6416
|
/** 渠道 */
|
|
6440
6417
|
Object.defineProperty(this, "channel", {
|
|
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, "isfull", {
|
|
6447
6424
|
enumerable: true,
|
|
6448
6425
|
configurable: true,
|
|
6449
6426
|
writable: true,
|
|
6450
|
-
value:
|
|
6427
|
+
value: void 0
|
|
6451
6428
|
});
|
|
6452
6429
|
Object.defineProperty(this, "isOldApp", {
|
|
6453
6430
|
enumerable: true,
|
|
@@ -6455,14 +6432,21 @@
|
|
|
6455
6432
|
writable: true,
|
|
6456
6433
|
value: false
|
|
6457
6434
|
});
|
|
6435
|
+
var device = ls.get('device') || '';
|
|
6436
|
+
var isfull = ls.get('isfull') || '';
|
|
6437
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
6438
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
6458
6439
|
this.options = options;
|
|
6459
6440
|
this.name = options.name;
|
|
6460
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
6461
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
6462
|
-
this.isIos = browserType.system === 'ios' || device
|
|
6441
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
6442
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
6443
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
6463
6444
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
6464
6445
|
this.isCanShowNav = this.isApp && true;
|
|
6465
|
-
this.
|
|
6446
|
+
this.version = version;
|
|
6447
|
+
this.channel = channel;
|
|
6448
|
+
this.isfull = isfull;
|
|
6449
|
+
this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
|
|
6466
6450
|
if (this.isOldApp) {
|
|
6467
6451
|
return new OldJuboSdk(options);
|
|
6468
6452
|
}
|
|
@@ -6494,7 +6478,7 @@
|
|
|
6494
6478
|
console.log('juboSDK.getToken');
|
|
6495
6479
|
if (!this.detection && this.isMiniProgram) return '';
|
|
6496
6480
|
try {
|
|
6497
|
-
var res =
|
|
6481
|
+
var res = dsbridge.call('getToken', {});
|
|
6498
6482
|
return res === null || res === void 0 ? void 0 : res.token;
|
|
6499
6483
|
} catch (error) {
|
|
6500
6484
|
console.error('juboSDK.getToken error', error);
|
|
@@ -6518,12 +6502,12 @@
|
|
|
6518
6502
|
if (!_this.detection) return reject();
|
|
6519
6503
|
try {
|
|
6520
6504
|
if (_this.isMiniProgram) {
|
|
6521
|
-
|
|
6505
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6522
6506
|
url: _this.options.miniProgramLogin || MINI_PROGRAM_LOGIN
|
|
6523
6507
|
});
|
|
6524
6508
|
resolve('');
|
|
6525
6509
|
} else {
|
|
6526
|
-
|
|
6510
|
+
dsbridge.call('toLogin', {}, function (res) {
|
|
6527
6511
|
var resData = JSON.parse(res);
|
|
6528
6512
|
resolve(resData === null || resData === void 0 ? void 0 : resData.token);
|
|
6529
6513
|
});
|
|
@@ -6557,23 +6541,23 @@
|
|
|
6557
6541
|
return url_1.indexOf(e) !== -1;
|
|
6558
6542
|
});
|
|
6559
6543
|
if (flag) {
|
|
6560
|
-
|
|
6544
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
6561
6545
|
url: url_1
|
|
6562
6546
|
});
|
|
6563
6547
|
} else {
|
|
6564
6548
|
if (isRedirect) {
|
|
6565
|
-
|
|
6549
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
6566
6550
|
url: url_1
|
|
6567
6551
|
});
|
|
6568
6552
|
} else {
|
|
6569
|
-
|
|
6553
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6570
6554
|
url: url_1
|
|
6571
6555
|
});
|
|
6572
6556
|
}
|
|
6573
6557
|
}
|
|
6574
6558
|
}
|
|
6575
6559
|
} else {
|
|
6576
|
-
|
|
6560
|
+
dsbridge.call('goRoute', {
|
|
6577
6561
|
url: route
|
|
6578
6562
|
});
|
|
6579
6563
|
}
|
|
@@ -6609,7 +6593,7 @@
|
|
|
6609
6593
|
};
|
|
6610
6594
|
try {
|
|
6611
6595
|
if (this.isMiniProgram) {
|
|
6612
|
-
|
|
6596
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
6613
6597
|
data: {
|
|
6614
6598
|
shareData: {
|
|
6615
6599
|
title: options.title,
|
|
@@ -6623,7 +6607,7 @@
|
|
|
6623
6607
|
}
|
|
6624
6608
|
});
|
|
6625
6609
|
} else {
|
|
6626
|
-
|
|
6610
|
+
dsbridge.call('shareMiniProgram', {
|
|
6627
6611
|
imgUrl: options.thumbImage,
|
|
6628
6612
|
title: options.title,
|
|
6629
6613
|
base64: options.base64,
|
|
@@ -6659,7 +6643,7 @@
|
|
|
6659
6643
|
console.log('juboSDK.postReport', keyName, data);
|
|
6660
6644
|
if (!this.detection && this.isMiniProgram) return;
|
|
6661
6645
|
try {
|
|
6662
|
-
|
|
6646
|
+
dsbridge.call('postReport', {
|
|
6663
6647
|
keyName: keyName,
|
|
6664
6648
|
data: data
|
|
6665
6649
|
});
|
|
@@ -6682,7 +6666,7 @@
|
|
|
6682
6666
|
console.log('juboSDK.sensorsReport', keyName, data);
|
|
6683
6667
|
if (!this.detection && this.isMiniProgram) return;
|
|
6684
6668
|
try {
|
|
6685
|
-
|
|
6669
|
+
dsbridge.call('sensorsReport', {
|
|
6686
6670
|
keyName: keyName,
|
|
6687
6671
|
data: data
|
|
6688
6672
|
});
|
|
@@ -6706,7 +6690,7 @@
|
|
|
6706
6690
|
console.log('juboSDK.shareWXImg', data);
|
|
6707
6691
|
if (!this.detection && this.isMiniProgram) return;
|
|
6708
6692
|
try {
|
|
6709
|
-
|
|
6693
|
+
dsbridge.call('shareWXImg', data);
|
|
6710
6694
|
} catch (error) {
|
|
6711
6695
|
console.log('🚀 ~ juboSDK.shareWXImg', error);
|
|
6712
6696
|
}
|
|
@@ -6725,7 +6709,7 @@
|
|
|
6725
6709
|
console.log('juboSDK.setNavTitle', title);
|
|
6726
6710
|
if (!this.detection && this.isMiniProgram) return;
|
|
6727
6711
|
try {
|
|
6728
|
-
|
|
6712
|
+
dsbridge.call('setNavTitle', {
|
|
6729
6713
|
title: title
|
|
6730
6714
|
});
|
|
6731
6715
|
} catch (error) {
|
|
@@ -6746,7 +6730,7 @@
|
|
|
6746
6730
|
console.log('juboSDK.hideNavBar');
|
|
6747
6731
|
if (!this.detection && this.isMiniProgram) return;
|
|
6748
6732
|
try {
|
|
6749
|
-
|
|
6733
|
+
dsbridge.call('hideNavBar', {
|
|
6750
6734
|
isHide: isHide
|
|
6751
6735
|
});
|
|
6752
6736
|
} catch (error) {
|
|
@@ -6767,7 +6751,7 @@
|
|
|
6767
6751
|
console.log('juboSDK.setOrientation');
|
|
6768
6752
|
if (!this.detection && this.isMiniProgram) return;
|
|
6769
6753
|
try {
|
|
6770
|
-
|
|
6754
|
+
dsbridge.call('setOrientation', {
|
|
6771
6755
|
isLandscape: isLandscape
|
|
6772
6756
|
});
|
|
6773
6757
|
} catch (error) {
|
|
@@ -6790,12 +6774,12 @@
|
|
|
6790
6774
|
if (!_this.detection) return reject();
|
|
6791
6775
|
try {
|
|
6792
6776
|
if (_this.isMiniProgram) {
|
|
6793
|
-
|
|
6777
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6794
6778
|
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)
|
|
6795
6779
|
});
|
|
6796
6780
|
resolve('');
|
|
6797
6781
|
} else {
|
|
6798
|
-
|
|
6782
|
+
dsbridge.call('toPayPage', options, function (res) {
|
|
6799
6783
|
var resData = JSON.parse(res);
|
|
6800
6784
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isSuccess);
|
|
6801
6785
|
});
|
|
@@ -6820,7 +6804,7 @@
|
|
|
6820
6804
|
console.log('juboSDK.hideStatusBar');
|
|
6821
6805
|
if (!this.detection && this.isMiniProgram) return;
|
|
6822
6806
|
try {
|
|
6823
|
-
|
|
6807
|
+
dsbridge.call('hideStatusBar', {
|
|
6824
6808
|
isHide: isHide
|
|
6825
6809
|
});
|
|
6826
6810
|
} catch (error) {
|
|
@@ -6840,7 +6824,7 @@
|
|
|
6840
6824
|
console.log('juboSDK.quit');
|
|
6841
6825
|
if (!this.detection && this.isMiniProgram) return;
|
|
6842
6826
|
try {
|
|
6843
|
-
|
|
6827
|
+
dsbridge.call('quit', {});
|
|
6844
6828
|
} catch (error) {
|
|
6845
6829
|
console.log('🚀 ~ juboSDK.quit', error);
|
|
6846
6830
|
}
|
|
@@ -6858,7 +6842,7 @@
|
|
|
6858
6842
|
console.log('juboSDK.goBack');
|
|
6859
6843
|
if (!this.detection && this.isMiniProgram) return;
|
|
6860
6844
|
try {
|
|
6861
|
-
|
|
6845
|
+
dsbridge.call('goBack', {});
|
|
6862
6846
|
} catch (error) {
|
|
6863
6847
|
console.log('🚀 ~ juboSDK.goBack', error);
|
|
6864
6848
|
}
|
|
@@ -6879,7 +6863,7 @@
|
|
|
6879
6863
|
var data = __assign({
|
|
6880
6864
|
type: 0
|
|
6881
6865
|
}, options);
|
|
6882
|
-
|
|
6866
|
+
dsbridge.call('shareHtml', data);
|
|
6883
6867
|
} catch (error) {
|
|
6884
6868
|
console.log('🚀 ~ juboSDK.shareHtml', error);
|
|
6885
6869
|
}
|
|
@@ -6899,7 +6883,7 @@
|
|
|
6899
6883
|
return new Promise(function (resolve, reject) {
|
|
6900
6884
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6901
6885
|
try {
|
|
6902
|
-
|
|
6886
|
+
dsbridge.call('checkAppNotice', {}, function (res) {
|
|
6903
6887
|
var resData = JSON.parse(res);
|
|
6904
6888
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isOpen);
|
|
6905
6889
|
});
|
|
@@ -6925,7 +6909,7 @@
|
|
|
6925
6909
|
return new Promise(function (resolve, reject) {
|
|
6926
6910
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6927
6911
|
try {
|
|
6928
|
-
|
|
6912
|
+
dsbridge.call('checkNetStatus', {}, function (res) {
|
|
6929
6913
|
var resData = JSON.parse(res);
|
|
6930
6914
|
resolve(resData === null || resData === void 0 ? void 0 : resData.status);
|
|
6931
6915
|
});
|
|
@@ -6950,7 +6934,7 @@
|
|
|
6950
6934
|
return new Promise(function (resolve, reject) {
|
|
6951
6935
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6952
6936
|
try {
|
|
6953
|
-
|
|
6937
|
+
dsbridge.call('hcAuthorization', options, function (res) {
|
|
6954
6938
|
var resData = JSON.parse(res);
|
|
6955
6939
|
resolve(resData);
|
|
6956
6940
|
});
|
|
@@ -6978,7 +6962,7 @@
|
|
|
6978
6962
|
if (this.isIos) {
|
|
6979
6963
|
return window.screen.height >= 812 && window.devicePixelRatio >= 2 ? 44 : 20;
|
|
6980
6964
|
} else {
|
|
6981
|
-
var res =
|
|
6965
|
+
var res = dsbridge.call('getStatusBarHeight', {});
|
|
6982
6966
|
return res === null || res === void 0 ? void 0 : res.height;
|
|
6983
6967
|
}
|
|
6984
6968
|
} catch (error) {
|
|
@@ -7009,6 +6993,9 @@
|
|
|
7009
6993
|
var urlData = urlToParams(url);
|
|
7010
6994
|
var device = urlData.device || ls.get('device') || '';
|
|
7011
6995
|
var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
6996
|
+
setTimeout(function () {
|
|
6997
|
+
console.log('🚀 ~ file: index.ts:20 ~ urlData.isfull || ls.get(\'isfull\'):', isfull, urlData.isfull);
|
|
6998
|
+
}, 1000);
|
|
7012
6999
|
var version = urlData.version || ls.get('version') || '';
|
|
7013
7000
|
ls.set('device', device);
|
|
7014
7001
|
ls.set('isfull', isfull);
|
|
@@ -7025,6 +7012,6 @@
|
|
|
7025
7012
|
}));
|
|
7026
7013
|
|
|
7027
7014
|
if(typeof window !== 'undefined') {
|
|
7028
|
-
window._juboSDK_VERSION_ = '1.0.
|
|
7015
|
+
window._juboSDK_VERSION_ = '1.0.2'
|
|
7029
7016
|
}
|
|
7030
7017
|
//# sourceMappingURL=index.js.map
|