@paystack/checkout-js 1.57.0-beta.5 → 1.57.0-beta.7
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/dist/checkout.js +1186 -681
- package/es/checkout.js +1186 -681
- package/lib/checkout.js +1186 -681
- package/package.json +1 -1
package/lib/checkout.js
CHANGED
|
@@ -1039,7 +1039,7 @@ var check = function (it) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
|
|
1041
1041
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1042
|
-
var global$
|
|
1042
|
+
var global$U =
|
|
1043
1043
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
1044
1044
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1045
1045
|
check(typeof window == 'object' && window) ||
|
|
@@ -1051,7 +1051,7 @@ var global$T =
|
|
|
1051
1051
|
|
|
1052
1052
|
var objectGetOwnPropertyDescriptor = {};
|
|
1053
1053
|
|
|
1054
|
-
var fails$
|
|
1054
|
+
var fails$x = function (exec) {
|
|
1055
1055
|
try {
|
|
1056
1056
|
return !!exec();
|
|
1057
1057
|
} catch (error) {
|
|
@@ -1059,17 +1059,17 @@ var fails$v = function (exec) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
1061
|
|
|
1062
|
-
var fails$
|
|
1062
|
+
var fails$w = fails$x;
|
|
1063
1063
|
|
|
1064
1064
|
// Detect IE8's incomplete defineProperty implementation
|
|
1065
|
-
var descriptors$1 = !fails$
|
|
1065
|
+
var descriptors$1 = !fails$w(function () {
|
|
1066
1066
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1067
1067
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1068
1068
|
});
|
|
1069
1069
|
|
|
1070
|
-
var fails$
|
|
1070
|
+
var fails$v = fails$x;
|
|
1071
1071
|
|
|
1072
|
-
var functionBindNative = !fails$
|
|
1072
|
+
var functionBindNative = !fails$v(function () {
|
|
1073
1073
|
var test = (function () { /* empty */ }).bind();
|
|
1074
1074
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1075
1075
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -1113,35 +1113,35 @@ var NATIVE_BIND$2 = functionBindNative;
|
|
|
1113
1113
|
var FunctionPrototype$3 = Function.prototype;
|
|
1114
1114
|
var bind$c = FunctionPrototype$3.bind;
|
|
1115
1115
|
var call$e = FunctionPrototype$3.call;
|
|
1116
|
-
var uncurryThis$
|
|
1116
|
+
var uncurryThis$z = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
|
|
1117
1117
|
|
|
1118
1118
|
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
1119
|
-
return fn && uncurryThis$
|
|
1119
|
+
return fn && uncurryThis$z(fn);
|
|
1120
1120
|
} : function (fn) {
|
|
1121
1121
|
return fn && function () {
|
|
1122
1122
|
return call$e.apply(fn, arguments);
|
|
1123
1123
|
};
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
1126
|
-
var uncurryThis$
|
|
1126
|
+
var uncurryThis$y = functionUncurryThis;
|
|
1127
1127
|
|
|
1128
|
-
var toString$b = uncurryThis$
|
|
1129
|
-
var stringSlice$4 = uncurryThis$
|
|
1128
|
+
var toString$b = uncurryThis$y({}.toString);
|
|
1129
|
+
var stringSlice$4 = uncurryThis$y(''.slice);
|
|
1130
1130
|
|
|
1131
1131
|
var classofRaw$1 = function (it) {
|
|
1132
1132
|
return stringSlice$4(toString$b(it), 8, -1);
|
|
1133
1133
|
};
|
|
1134
1134
|
|
|
1135
|
-
var global$
|
|
1136
|
-
var uncurryThis$
|
|
1137
|
-
var fails$
|
|
1135
|
+
var global$T = global$U;
|
|
1136
|
+
var uncurryThis$x = functionUncurryThis;
|
|
1137
|
+
var fails$u = fails$x;
|
|
1138
1138
|
var classof$a = classofRaw$1;
|
|
1139
1139
|
|
|
1140
|
-
var Object$5 = global$
|
|
1141
|
-
var split$4 = uncurryThis$
|
|
1140
|
+
var Object$5 = global$T.Object;
|
|
1141
|
+
var split$4 = uncurryThis$x(''.split);
|
|
1142
1142
|
|
|
1143
1143
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1144
|
-
var indexedObject = fails$
|
|
1144
|
+
var indexedObject = fails$u(function () {
|
|
1145
1145
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1146
1146
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1147
1147
|
return !Object$5('z').propertyIsEnumerable(0);
|
|
@@ -1149,9 +1149,9 @@ var indexedObject = fails$s(function () {
|
|
|
1149
1149
|
return classof$a(it) == 'String' ? split$4(it, '') : Object$5(it);
|
|
1150
1150
|
} : Object$5;
|
|
1151
1151
|
|
|
1152
|
-
var global$
|
|
1152
|
+
var global$S = global$U;
|
|
1153
1153
|
|
|
1154
|
-
var TypeError$j = global$
|
|
1154
|
+
var TypeError$j = global$S.TypeError;
|
|
1155
1155
|
|
|
1156
1156
|
// `RequireObjectCoercible` abstract operation
|
|
1157
1157
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
@@ -1170,40 +1170,40 @@ var toIndexedObject$8 = function (it) {
|
|
|
1170
1170
|
|
|
1171
1171
|
// `IsCallable` abstract operation
|
|
1172
1172
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
1173
|
-
var isCallable$
|
|
1173
|
+
var isCallable$l = function (argument) {
|
|
1174
1174
|
return typeof argument == 'function';
|
|
1175
1175
|
};
|
|
1176
1176
|
|
|
1177
|
-
var isCallable$
|
|
1177
|
+
var isCallable$k = isCallable$l;
|
|
1178
1178
|
|
|
1179
|
-
var isObject$
|
|
1180
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
1179
|
+
var isObject$k = function (it) {
|
|
1180
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
|
-
var global$
|
|
1184
|
-
var isCallable$
|
|
1183
|
+
var global$R = global$U;
|
|
1184
|
+
var isCallable$j = isCallable$l;
|
|
1185
1185
|
|
|
1186
1186
|
var aFunction = function (argument) {
|
|
1187
|
-
return isCallable$
|
|
1187
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
1188
1188
|
};
|
|
1189
1189
|
|
|
1190
1190
|
var getBuiltIn$a = function (namespace, method) {
|
|
1191
|
-
return arguments.length < 2 ? aFunction(global$
|
|
1191
|
+
return arguments.length < 2 ? aFunction(global$R[namespace]) : global$R[namespace] && global$R[namespace][method];
|
|
1192
1192
|
};
|
|
1193
1193
|
|
|
1194
|
-
var uncurryThis$
|
|
1194
|
+
var uncurryThis$w = functionUncurryThis;
|
|
1195
1195
|
|
|
1196
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
1196
|
+
var objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf);
|
|
1197
1197
|
|
|
1198
1198
|
var getBuiltIn$9 = getBuiltIn$a;
|
|
1199
1199
|
|
|
1200
1200
|
var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || '';
|
|
1201
1201
|
|
|
1202
|
-
var global$
|
|
1202
|
+
var global$Q = global$U;
|
|
1203
1203
|
var userAgent$5 = engineUserAgent;
|
|
1204
1204
|
|
|
1205
|
-
var process$4 = global$
|
|
1206
|
-
var Deno = global$
|
|
1205
|
+
var process$4 = global$Q.process;
|
|
1206
|
+
var Deno = global$Q.Deno;
|
|
1207
1207
|
var versions = process$4 && process$4.versions || Deno && Deno.version;
|
|
1208
1208
|
var v8 = versions && versions.v8;
|
|
1209
1209
|
var match, version;
|
|
@@ -1230,10 +1230,10 @@ var engineV8Version = version;
|
|
|
1230
1230
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1231
1231
|
|
|
1232
1232
|
var V8_VERSION$3 = engineV8Version;
|
|
1233
|
-
var fails$
|
|
1233
|
+
var fails$t = fails$x;
|
|
1234
1234
|
|
|
1235
1235
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1236
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
1236
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$t(function () {
|
|
1237
1237
|
var symbol = Symbol();
|
|
1238
1238
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1239
1239
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -1250,24 +1250,24 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
1250
1250
|
&& !Symbol.sham
|
|
1251
1251
|
&& typeof Symbol.iterator == 'symbol';
|
|
1252
1252
|
|
|
1253
|
-
var global$
|
|
1253
|
+
var global$P = global$U;
|
|
1254
1254
|
var getBuiltIn$8 = getBuiltIn$a;
|
|
1255
|
-
var isCallable$
|
|
1255
|
+
var isCallable$i = isCallable$l;
|
|
1256
1256
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
1257
1257
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
1258
1258
|
|
|
1259
|
-
var Object$4 = global$
|
|
1259
|
+
var Object$4 = global$P.Object;
|
|
1260
1260
|
|
|
1261
1261
|
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
1262
1262
|
return typeof it == 'symbol';
|
|
1263
1263
|
} : function (it) {
|
|
1264
1264
|
var $Symbol = getBuiltIn$8('Symbol');
|
|
1265
|
-
return isCallable$
|
|
1265
|
+
return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
-
var global$
|
|
1268
|
+
var global$O = global$U;
|
|
1269
1269
|
|
|
1270
|
-
var String$5 = global$
|
|
1270
|
+
var String$5 = global$O.String;
|
|
1271
1271
|
|
|
1272
1272
|
var tryToString$4 = function (argument) {
|
|
1273
1273
|
try {
|
|
@@ -1277,15 +1277,15 @@ var tryToString$4 = function (argument) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
1279
|
|
|
1280
|
-
var global$
|
|
1281
|
-
var isCallable$
|
|
1280
|
+
var global$N = global$U;
|
|
1281
|
+
var isCallable$h = isCallable$l;
|
|
1282
1282
|
var tryToString$3 = tryToString$4;
|
|
1283
1283
|
|
|
1284
|
-
var TypeError$i = global$
|
|
1284
|
+
var TypeError$i = global$N.TypeError;
|
|
1285
1285
|
|
|
1286
1286
|
// `Assert: IsCallable(argument) is true`
|
|
1287
1287
|
var aCallable$7 = function (argument) {
|
|
1288
|
-
if (isCallable$
|
|
1288
|
+
if (isCallable$h(argument)) return argument;
|
|
1289
1289
|
throw TypeError$i(tryToString$3(argument) + ' is not a function');
|
|
1290
1290
|
};
|
|
1291
1291
|
|
|
@@ -1298,20 +1298,20 @@ var getMethod$3 = function (V, P) {
|
|
|
1298
1298
|
return func == null ? undefined : aCallable$6(func);
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
|
-
var global$
|
|
1301
|
+
var global$M = global$U;
|
|
1302
1302
|
var call$d = functionCall;
|
|
1303
|
-
var isCallable$
|
|
1304
|
-
var isObject$
|
|
1303
|
+
var isCallable$g = isCallable$l;
|
|
1304
|
+
var isObject$j = isObject$k;
|
|
1305
1305
|
|
|
1306
|
-
var TypeError$h = global$
|
|
1306
|
+
var TypeError$h = global$M.TypeError;
|
|
1307
1307
|
|
|
1308
1308
|
// `OrdinaryToPrimitive` abstract operation
|
|
1309
1309
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1310
1310
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
1311
1311
|
var fn, val;
|
|
1312
|
-
if (pref === 'string' && isCallable$
|
|
1313
|
-
if (isCallable$
|
|
1314
|
-
if (pref !== 'string' && isCallable$
|
|
1312
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
|
|
1313
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$j(val = call$d(fn, input))) return val;
|
|
1314
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
|
|
1315
1315
|
throw TypeError$h("Can't convert object to primitive value");
|
|
1316
1316
|
};
|
|
1317
1317
|
|
|
@@ -1319,24 +1319,24 @@ var shared$4 = {exports: {}};
|
|
|
1319
1319
|
|
|
1320
1320
|
var isPure = false;
|
|
1321
1321
|
|
|
1322
|
-
var global$
|
|
1322
|
+
var global$L = global$U;
|
|
1323
1323
|
|
|
1324
1324
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1325
1325
|
var defineProperty$6 = Object.defineProperty;
|
|
1326
1326
|
|
|
1327
1327
|
var setGlobal$3 = function (key, value) {
|
|
1328
1328
|
try {
|
|
1329
|
-
defineProperty$6(global$
|
|
1329
|
+
defineProperty$6(global$L, key, { value: value, configurable: true, writable: true });
|
|
1330
1330
|
} catch (error) {
|
|
1331
|
-
global$
|
|
1331
|
+
global$L[key] = value;
|
|
1332
1332
|
} return value;
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
|
-
var global$
|
|
1335
|
+
var global$K = global$U;
|
|
1336
1336
|
var setGlobal$2 = setGlobal$3;
|
|
1337
1337
|
|
|
1338
1338
|
var SHARED = '__core-js_shared__';
|
|
1339
|
-
var store$3 = global$
|
|
1339
|
+
var store$3 = global$K[SHARED] || setGlobal$2(SHARED, {});
|
|
1340
1340
|
|
|
1341
1341
|
var sharedStore = store$3;
|
|
1342
1342
|
|
|
@@ -1352,10 +1352,10 @@ var store$2 = sharedStore;
|
|
|
1352
1352
|
source: 'https://github.com/zloirock/core-js'
|
|
1353
1353
|
});
|
|
1354
1354
|
|
|
1355
|
-
var global$
|
|
1355
|
+
var global$J = global$U;
|
|
1356
1356
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
1357
1357
|
|
|
1358
|
-
var Object$3 = global$
|
|
1358
|
+
var Object$3 = global$J.Object;
|
|
1359
1359
|
|
|
1360
1360
|
// `ToObject` abstract operation
|
|
1361
1361
|
// https://tc39.es/ecma262/#sec-toobject
|
|
@@ -1363,10 +1363,10 @@ var toObject$9 = function (argument) {
|
|
|
1363
1363
|
return Object$3(requireObjectCoercible$2(argument));
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
|
-
var uncurryThis$
|
|
1366
|
+
var uncurryThis$v = functionUncurryThis;
|
|
1367
1367
|
var toObject$8 = toObject$9;
|
|
1368
1368
|
|
|
1369
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
1369
|
+
var hasOwnProperty$1 = uncurryThis$v({}.hasOwnProperty);
|
|
1370
1370
|
|
|
1371
1371
|
// `HasOwnProperty` abstract operation
|
|
1372
1372
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -1374,32 +1374,32 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
1374
1374
|
return hasOwnProperty$1(toObject$8(it), key);
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
1377
|
-
var uncurryThis$
|
|
1377
|
+
var uncurryThis$u = functionUncurryThis;
|
|
1378
1378
|
|
|
1379
|
-
var id$
|
|
1379
|
+
var id$2 = 0;
|
|
1380
1380
|
var postfix = Math.random();
|
|
1381
|
-
var toString$a = uncurryThis$
|
|
1381
|
+
var toString$a = uncurryThis$u(1.0.toString);
|
|
1382
1382
|
|
|
1383
1383
|
var uid$3 = function (key) {
|
|
1384
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$
|
|
1384
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
|
|
1385
1385
|
};
|
|
1386
1386
|
|
|
1387
|
-
var global$
|
|
1387
|
+
var global$I = global$U;
|
|
1388
1388
|
var shared$3 = shared$4.exports;
|
|
1389
|
-
var hasOwn$
|
|
1389
|
+
var hasOwn$f = hasOwnProperty_1;
|
|
1390
1390
|
var uid$2 = uid$3;
|
|
1391
1391
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
1392
1392
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
1393
1393
|
|
|
1394
1394
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
1395
|
-
var Symbol$2 = global$
|
|
1395
|
+
var Symbol$2 = global$I.Symbol;
|
|
1396
1396
|
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
1397
1397
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$2;
|
|
1398
1398
|
|
|
1399
1399
|
var wellKnownSymbol$j = function (name) {
|
|
1400
|
-
if (!hasOwn$
|
|
1400
|
+
if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
1401
1401
|
var description = 'Symbol.' + name;
|
|
1402
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
1402
|
+
if (NATIVE_SYMBOL && hasOwn$f(Symbol$2, name)) {
|
|
1403
1403
|
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
1404
1404
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
1405
1405
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -1409,27 +1409,27 @@ var wellKnownSymbol$j = function (name) {
|
|
|
1409
1409
|
} return WellKnownSymbolsStore[name];
|
|
1410
1410
|
};
|
|
1411
1411
|
|
|
1412
|
-
var global$
|
|
1412
|
+
var global$H = global$U;
|
|
1413
1413
|
var call$c = functionCall;
|
|
1414
|
-
var isObject$
|
|
1414
|
+
var isObject$i = isObject$k;
|
|
1415
1415
|
var isSymbol$2 = isSymbol$3;
|
|
1416
1416
|
var getMethod$2 = getMethod$3;
|
|
1417
1417
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
1418
1418
|
var wellKnownSymbol$i = wellKnownSymbol$j;
|
|
1419
1419
|
|
|
1420
|
-
var TypeError$g = global$
|
|
1420
|
+
var TypeError$g = global$H.TypeError;
|
|
1421
1421
|
var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
|
|
1422
1422
|
|
|
1423
1423
|
// `ToPrimitive` abstract operation
|
|
1424
1424
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
1425
1425
|
var toPrimitive$2 = function (input, pref) {
|
|
1426
|
-
if (!isObject$
|
|
1426
|
+
if (!isObject$i(input) || isSymbol$2(input)) return input;
|
|
1427
1427
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
1428
1428
|
var result;
|
|
1429
1429
|
if (exoticToPrim) {
|
|
1430
1430
|
if (pref === undefined) pref = 'default';
|
|
1431
1431
|
result = call$c(exoticToPrim, input, pref);
|
|
1432
|
-
if (!isObject$
|
|
1432
|
+
if (!isObject$i(result) || isSymbol$2(result)) return result;
|
|
1433
1433
|
throw TypeError$g("Can't convert object to primitive value");
|
|
1434
1434
|
}
|
|
1435
1435
|
if (pref === undefined) pref = 'number';
|
|
@@ -1446,23 +1446,23 @@ var toPropertyKey$3 = function (argument) {
|
|
|
1446
1446
|
return isSymbol$1(key) ? key : key + '';
|
|
1447
1447
|
};
|
|
1448
1448
|
|
|
1449
|
-
var global$
|
|
1450
|
-
var isObject$
|
|
1449
|
+
var global$G = global$U;
|
|
1450
|
+
var isObject$h = isObject$k;
|
|
1451
1451
|
|
|
1452
|
-
var document$3 = global$
|
|
1452
|
+
var document$3 = global$G.document;
|
|
1453
1453
|
// typeof document.createElement is 'object' in old IE
|
|
1454
|
-
var EXISTS$1 = isObject$
|
|
1454
|
+
var EXISTS$1 = isObject$h(document$3) && isObject$h(document$3.createElement);
|
|
1455
1455
|
|
|
1456
1456
|
var documentCreateElement$2 = function (it) {
|
|
1457
1457
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
1458
1458
|
};
|
|
1459
1459
|
|
|
1460
1460
|
var DESCRIPTORS$d = descriptors$1;
|
|
1461
|
-
var fails$
|
|
1461
|
+
var fails$s = fails$x;
|
|
1462
1462
|
var createElement$1 = documentCreateElement$2;
|
|
1463
1463
|
|
|
1464
1464
|
// Thanks to IE8 for its funny defineProperty
|
|
1465
|
-
var ie8DomDefine = !DESCRIPTORS$d && !fails$
|
|
1465
|
+
var ie8DomDefine = !DESCRIPTORS$d && !fails$s(function () {
|
|
1466
1466
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1467
1467
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
1468
1468
|
get: function () { return 7; }
|
|
@@ -1475,7 +1475,7 @@ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
|
1475
1475
|
var createPropertyDescriptor$5 = createPropertyDescriptor$6;
|
|
1476
1476
|
var toIndexedObject$7 = toIndexedObject$8;
|
|
1477
1477
|
var toPropertyKey$2 = toPropertyKey$3;
|
|
1478
|
-
var hasOwn$
|
|
1478
|
+
var hasOwn$e = hasOwnProperty_1;
|
|
1479
1479
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
1480
1480
|
|
|
1481
1481
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -1489,17 +1489,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 :
|
|
|
1489
1489
|
if (IE8_DOM_DEFINE$1) try {
|
|
1490
1490
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
1491
1491
|
} catch (error) { /* empty */ }
|
|
1492
|
-
if (hasOwn$
|
|
1492
|
+
if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
1493
1493
|
};
|
|
1494
1494
|
|
|
1495
1495
|
var objectDefineProperty = {};
|
|
1496
1496
|
|
|
1497
1497
|
var DESCRIPTORS$b = descriptors$1;
|
|
1498
|
-
var fails$
|
|
1498
|
+
var fails$r = fails$x;
|
|
1499
1499
|
|
|
1500
1500
|
// V8 ~ Chrome 36-
|
|
1501
1501
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1502
|
-
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$
|
|
1502
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$r(function () {
|
|
1503
1503
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1504
1504
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1505
1505
|
value: 42,
|
|
@@ -1507,26 +1507,26 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
|
|
|
1507
1507
|
}).prototype != 42;
|
|
1508
1508
|
});
|
|
1509
1509
|
|
|
1510
|
-
var global$
|
|
1511
|
-
var isObject$
|
|
1510
|
+
var global$F = global$U;
|
|
1511
|
+
var isObject$g = isObject$k;
|
|
1512
1512
|
|
|
1513
|
-
var String$4 = global$
|
|
1514
|
-
var TypeError$f = global$
|
|
1513
|
+
var String$4 = global$F.String;
|
|
1514
|
+
var TypeError$f = global$F.TypeError;
|
|
1515
1515
|
|
|
1516
1516
|
// `Assert: Type(argument) is Object`
|
|
1517
|
-
var anObject$
|
|
1518
|
-
if (isObject$
|
|
1517
|
+
var anObject$f = function (argument) {
|
|
1518
|
+
if (isObject$g(argument)) return argument;
|
|
1519
1519
|
throw TypeError$f(String$4(argument) + ' is not an object');
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
var global$
|
|
1522
|
+
var global$E = global$U;
|
|
1523
1523
|
var DESCRIPTORS$a = descriptors$1;
|
|
1524
1524
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1525
1525
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
1526
|
-
var anObject$
|
|
1526
|
+
var anObject$e = anObject$f;
|
|
1527
1527
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
1528
1528
|
|
|
1529
|
-
var TypeError$e = global$
|
|
1529
|
+
var TypeError$e = global$E.TypeError;
|
|
1530
1530
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1531
1531
|
var $defineProperty = Object.defineProperty;
|
|
1532
1532
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -1538,9 +1538,9 @@ var WRITABLE = 'writable';
|
|
|
1538
1538
|
// `Object.defineProperty` method
|
|
1539
1539
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
1540
1540
|
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
1541
|
-
anObject$
|
|
1541
|
+
anObject$e(O);
|
|
1542
1542
|
P = toPropertyKey$1(P);
|
|
1543
|
-
anObject$
|
|
1543
|
+
anObject$e(Attributes);
|
|
1544
1544
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
1545
1545
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
1546
1546
|
if (current && current[WRITABLE]) {
|
|
@@ -1553,9 +1553,9 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
1553
1553
|
}
|
|
1554
1554
|
} return $defineProperty(O, P, Attributes);
|
|
1555
1555
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
1556
|
-
anObject$
|
|
1556
|
+
anObject$e(O);
|
|
1557
1557
|
P = toPropertyKey$1(P);
|
|
1558
|
-
anObject$
|
|
1558
|
+
anObject$e(Attributes);
|
|
1559
1559
|
if (IE8_DOM_DEFINE) try {
|
|
1560
1560
|
return $defineProperty(O, P, Attributes);
|
|
1561
1561
|
} catch (error) { /* empty */ }
|
|
@@ -1575,16 +1575,16 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value
|
|
|
1575
1575
|
return object;
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
|
-
var redefine$
|
|
1578
|
+
var redefine$b = {exports: {}};
|
|
1579
1579
|
|
|
1580
|
-
var uncurryThis$
|
|
1581
|
-
var isCallable$
|
|
1580
|
+
var uncurryThis$t = functionUncurryThis;
|
|
1581
|
+
var isCallable$f = isCallable$l;
|
|
1582
1582
|
var store$1 = sharedStore;
|
|
1583
1583
|
|
|
1584
|
-
var functionToString$1 = uncurryThis$
|
|
1584
|
+
var functionToString$1 = uncurryThis$t(Function.toString);
|
|
1585
1585
|
|
|
1586
1586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1587
|
-
if (!isCallable$
|
|
1587
|
+
if (!isCallable$f(store$1.inspectSource)) {
|
|
1588
1588
|
store$1.inspectSource = function (it) {
|
|
1589
1589
|
return functionToString$1(it);
|
|
1590
1590
|
};
|
|
@@ -1592,13 +1592,13 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
1592
1592
|
|
|
1593
1593
|
var inspectSource$4 = store$1.inspectSource;
|
|
1594
1594
|
|
|
1595
|
-
var global$
|
|
1596
|
-
var isCallable$
|
|
1595
|
+
var global$D = global$U;
|
|
1596
|
+
var isCallable$e = isCallable$l;
|
|
1597
1597
|
var inspectSource$3 = inspectSource$4;
|
|
1598
1598
|
|
|
1599
|
-
var WeakMap$1 = global$
|
|
1599
|
+
var WeakMap$1 = global$D.WeakMap;
|
|
1600
1600
|
|
|
1601
|
-
var nativeWeakMap = isCallable$
|
|
1601
|
+
var nativeWeakMap = isCallable$e(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
1602
1602
|
|
|
1603
1603
|
var shared$2 = shared$4.exports;
|
|
1604
1604
|
var uid$1 = uid$3;
|
|
@@ -1612,18 +1612,18 @@ var sharedKey$3 = function (key) {
|
|
|
1612
1612
|
var hiddenKeys$5 = {};
|
|
1613
1613
|
|
|
1614
1614
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1615
|
-
var global$
|
|
1616
|
-
var uncurryThis$
|
|
1617
|
-
var isObject$
|
|
1615
|
+
var global$C = global$U;
|
|
1616
|
+
var uncurryThis$s = functionUncurryThis;
|
|
1617
|
+
var isObject$f = isObject$k;
|
|
1618
1618
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
1619
|
-
var hasOwn$
|
|
1619
|
+
var hasOwn$d = hasOwnProperty_1;
|
|
1620
1620
|
var shared$1 = sharedStore;
|
|
1621
1621
|
var sharedKey$2 = sharedKey$3;
|
|
1622
1622
|
var hiddenKeys$4 = hiddenKeys$5;
|
|
1623
1623
|
|
|
1624
1624
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1625
|
-
var TypeError$d = global$
|
|
1626
|
-
var WeakMap = global$
|
|
1625
|
+
var TypeError$d = global$C.TypeError;
|
|
1626
|
+
var WeakMap = global$C.WeakMap;
|
|
1627
1627
|
var set$1, get, has$3;
|
|
1628
1628
|
|
|
1629
1629
|
var enforce = function (it) {
|
|
@@ -1633,7 +1633,7 @@ var enforce = function (it) {
|
|
|
1633
1633
|
var getterFor = function (TYPE) {
|
|
1634
1634
|
return function (it) {
|
|
1635
1635
|
var state;
|
|
1636
|
-
if (!isObject$
|
|
1636
|
+
if (!isObject$f(it) || (state = get(it)).type !== TYPE) {
|
|
1637
1637
|
throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
|
|
1638
1638
|
} return state;
|
|
1639
1639
|
};
|
|
@@ -1641,9 +1641,9 @@ var getterFor = function (TYPE) {
|
|
|
1641
1641
|
|
|
1642
1642
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
1643
1643
|
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
1644
|
-
var wmget = uncurryThis$
|
|
1645
|
-
var wmhas = uncurryThis$
|
|
1646
|
-
var wmset = uncurryThis$
|
|
1644
|
+
var wmget = uncurryThis$s(store.get);
|
|
1645
|
+
var wmhas = uncurryThis$s(store.has);
|
|
1646
|
+
var wmset = uncurryThis$s(store.set);
|
|
1647
1647
|
set$1 = function (it, metadata) {
|
|
1648
1648
|
if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
1649
1649
|
metadata.facade = it;
|
|
@@ -1660,16 +1660,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
1660
1660
|
var STATE = sharedKey$2('state');
|
|
1661
1661
|
hiddenKeys$4[STATE] = true;
|
|
1662
1662
|
set$1 = function (it, metadata) {
|
|
1663
|
-
if (hasOwn$
|
|
1663
|
+
if (hasOwn$d(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
1664
1664
|
metadata.facade = it;
|
|
1665
1665
|
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
1666
1666
|
return metadata;
|
|
1667
1667
|
};
|
|
1668
1668
|
get = function (it) {
|
|
1669
|
-
return hasOwn$
|
|
1669
|
+
return hasOwn$d(it, STATE) ? it[STATE] : {};
|
|
1670
1670
|
};
|
|
1671
1671
|
has$3 = function (it) {
|
|
1672
|
-
return hasOwn$
|
|
1672
|
+
return hasOwn$d(it, STATE);
|
|
1673
1673
|
};
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
@@ -1682,13 +1682,13 @@ var internalState = {
|
|
|
1682
1682
|
};
|
|
1683
1683
|
|
|
1684
1684
|
var DESCRIPTORS$8 = descriptors$1;
|
|
1685
|
-
var hasOwn$
|
|
1685
|
+
var hasOwn$c = hasOwnProperty_1;
|
|
1686
1686
|
|
|
1687
1687
|
var FunctionPrototype$2 = Function.prototype;
|
|
1688
1688
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1689
1689
|
var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
|
|
1690
1690
|
|
|
1691
|
-
var EXISTS = hasOwn$
|
|
1691
|
+
var EXISTS = hasOwn$c(FunctionPrototype$2, 'name');
|
|
1692
1692
|
// additional protection from minified / mangled / dropped function names
|
|
1693
1693
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1694
1694
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
@@ -1699,30 +1699,30 @@ var functionName = {
|
|
|
1699
1699
|
CONFIGURABLE: CONFIGURABLE
|
|
1700
1700
|
};
|
|
1701
1701
|
|
|
1702
|
-
var global$
|
|
1703
|
-
var isCallable$
|
|
1704
|
-
var hasOwn$
|
|
1702
|
+
var global$B = global$U;
|
|
1703
|
+
var isCallable$d = isCallable$l;
|
|
1704
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
1705
1705
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1706
1706
|
var setGlobal$1 = setGlobal$3;
|
|
1707
1707
|
var inspectSource$2 = inspectSource$4;
|
|
1708
|
-
var InternalStateModule$
|
|
1708
|
+
var InternalStateModule$6 = internalState;
|
|
1709
1709
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1710
1710
|
|
|
1711
|
-
var getInternalState$4 = InternalStateModule$
|
|
1712
|
-
var enforceInternalState = InternalStateModule$
|
|
1711
|
+
var getInternalState$4 = InternalStateModule$6.get;
|
|
1712
|
+
var enforceInternalState = InternalStateModule$6.enforce;
|
|
1713
1713
|
var TEMPLATE = String(String).split('String');
|
|
1714
1714
|
|
|
1715
|
-
(redefine$
|
|
1715
|
+
(redefine$b.exports = function (O, key, value, options) {
|
|
1716
1716
|
var unsafe = options ? !!options.unsafe : false;
|
|
1717
1717
|
var simple = options ? !!options.enumerable : false;
|
|
1718
1718
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
1719
1719
|
var name = options && options.name !== undefined ? options.name : key;
|
|
1720
1720
|
var state;
|
|
1721
|
-
if (isCallable$
|
|
1721
|
+
if (isCallable$d(value)) {
|
|
1722
1722
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
1723
1723
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
1724
1724
|
}
|
|
1725
|
-
if (!hasOwn$
|
|
1725
|
+
if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1726
1726
|
createNonEnumerableProperty$6(value, 'name', name);
|
|
1727
1727
|
}
|
|
1728
1728
|
state = enforceInternalState(value);
|
|
@@ -1730,7 +1730,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
1730
1730
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
if (O === global$
|
|
1733
|
+
if (O === global$B) {
|
|
1734
1734
|
if (simple) O[key] = value;
|
|
1735
1735
|
else setGlobal$1(key, value);
|
|
1736
1736
|
return;
|
|
@@ -1743,7 +1743,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
1743
1743
|
else createNonEnumerableProperty$6(O, key, value);
|
|
1744
1744
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1745
1745
|
})(Function.prototype, 'toString', function toString() {
|
|
1746
|
-
return isCallable$
|
|
1746
|
+
return isCallable$d(this) && getInternalState$4(this).source || inspectSource$2(this);
|
|
1747
1747
|
});
|
|
1748
1748
|
|
|
1749
1749
|
var objectGetOwnPropertyNames = {};
|
|
@@ -1823,22 +1823,22 @@ var arrayIncludes = {
|
|
|
1823
1823
|
indexOf: createMethod$5(false)
|
|
1824
1824
|
};
|
|
1825
1825
|
|
|
1826
|
-
var uncurryThis$
|
|
1827
|
-
var hasOwn$
|
|
1826
|
+
var uncurryThis$r = functionUncurryThis;
|
|
1827
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
1828
1828
|
var toIndexedObject$5 = toIndexedObject$8;
|
|
1829
1829
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1830
1830
|
var hiddenKeys$3 = hiddenKeys$5;
|
|
1831
1831
|
|
|
1832
|
-
var push$7 = uncurryThis$
|
|
1832
|
+
var push$7 = uncurryThis$r([].push);
|
|
1833
1833
|
|
|
1834
1834
|
var objectKeysInternal = function (object, names) {
|
|
1835
1835
|
var O = toIndexedObject$5(object);
|
|
1836
1836
|
var i = 0;
|
|
1837
1837
|
var result = [];
|
|
1838
1838
|
var key;
|
|
1839
|
-
for (key in O) !hasOwn$
|
|
1839
|
+
for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$7(result, key);
|
|
1840
1840
|
// Don't enum bug & hidden keys
|
|
1841
|
-
while (names.length > i) if (hasOwn$
|
|
1841
|
+
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
1842
1842
|
~indexOf$1(result, key) || push$7(result, key);
|
|
1843
1843
|
}
|
|
1844
1844
|
return result;
|
|
@@ -1873,21 +1873,21 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1873
1873
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1874
1874
|
|
|
1875
1875
|
var getBuiltIn$7 = getBuiltIn$a;
|
|
1876
|
-
var uncurryThis$
|
|
1876
|
+
var uncurryThis$q = functionUncurryThis;
|
|
1877
1877
|
var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
|
|
1878
1878
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1879
|
-
var anObject$
|
|
1879
|
+
var anObject$d = anObject$f;
|
|
1880
1880
|
|
|
1881
|
-
var concat$1 = uncurryThis$
|
|
1881
|
+
var concat$1 = uncurryThis$q([].concat);
|
|
1882
1882
|
|
|
1883
1883
|
// all object keys, includes non-enumerable and symbols
|
|
1884
1884
|
var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1885
|
-
var keys = getOwnPropertyNamesModule$1.f(anObject$
|
|
1885
|
+
var keys = getOwnPropertyNamesModule$1.f(anObject$d(it));
|
|
1886
1886
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1887
1887
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1888
1888
|
};
|
|
1889
1889
|
|
|
1890
|
-
var hasOwn$
|
|
1890
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
1891
1891
|
var ownKeys = ownKeys$1;
|
|
1892
1892
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1893
1893
|
var definePropertyModule$4 = objectDefineProperty;
|
|
@@ -1898,42 +1898,42 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
1898
1898
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1899
1899
|
for (var i = 0; i < keys.length; i++) {
|
|
1900
1900
|
var key = keys[i];
|
|
1901
|
-
if (!hasOwn$
|
|
1901
|
+
if (!hasOwn$9(target, key) && !(exceptions && hasOwn$9(exceptions, key))) {
|
|
1902
1902
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
1906
|
|
|
1907
|
-
var fails$
|
|
1908
|
-
var isCallable$
|
|
1907
|
+
var fails$q = fails$x;
|
|
1908
|
+
var isCallable$c = isCallable$l;
|
|
1909
1909
|
|
|
1910
1910
|
var replacement = /#|\.prototype\./;
|
|
1911
1911
|
|
|
1912
|
-
var isForced$
|
|
1912
|
+
var isForced$4 = function (feature, detection) {
|
|
1913
1913
|
var value = data$1[normalize(feature)];
|
|
1914
1914
|
return value == POLYFILL ? true
|
|
1915
1915
|
: value == NATIVE ? false
|
|
1916
|
-
: isCallable$
|
|
1916
|
+
: isCallable$c(detection) ? fails$q(detection)
|
|
1917
1917
|
: !!detection;
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
-
var normalize = isForced$
|
|
1920
|
+
var normalize = isForced$4.normalize = function (string) {
|
|
1921
1921
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
1922
1922
|
};
|
|
1923
1923
|
|
|
1924
|
-
var data$1 = isForced$
|
|
1925
|
-
var NATIVE = isForced$
|
|
1926
|
-
var POLYFILL = isForced$
|
|
1924
|
+
var data$1 = isForced$4.data = {};
|
|
1925
|
+
var NATIVE = isForced$4.NATIVE = 'N';
|
|
1926
|
+
var POLYFILL = isForced$4.POLYFILL = 'P';
|
|
1927
1927
|
|
|
1928
|
-
var isForced_1 = isForced$
|
|
1928
|
+
var isForced_1 = isForced$4;
|
|
1929
1929
|
|
|
1930
|
-
var global$
|
|
1930
|
+
var global$A = global$U;
|
|
1931
1931
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1932
1932
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1933
|
-
var redefine$
|
|
1933
|
+
var redefine$a = redefine$b.exports;
|
|
1934
1934
|
var setGlobal = setGlobal$3;
|
|
1935
1935
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1936
|
-
var isForced$
|
|
1936
|
+
var isForced$3 = isForced_1;
|
|
1937
1937
|
|
|
1938
1938
|
/*
|
|
1939
1939
|
options.target - name of the target object
|
|
@@ -1956,11 +1956,11 @@ var _export = function (options, source) {
|
|
|
1956
1956
|
var STATIC = options.stat;
|
|
1957
1957
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1958
1958
|
if (GLOBAL) {
|
|
1959
|
-
target = global$
|
|
1959
|
+
target = global$A;
|
|
1960
1960
|
} else if (STATIC) {
|
|
1961
|
-
target = global$
|
|
1961
|
+
target = global$A[TARGET] || setGlobal(TARGET, {});
|
|
1962
1962
|
} else {
|
|
1963
|
-
target = (global$
|
|
1963
|
+
target = (global$A[TARGET] || {}).prototype;
|
|
1964
1964
|
}
|
|
1965
1965
|
if (target) for (key in source) {
|
|
1966
1966
|
sourceProperty = source[key];
|
|
@@ -1968,7 +1968,7 @@ var _export = function (options, source) {
|
|
|
1968
1968
|
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
1969
1969
|
targetProperty = descriptor && descriptor.value;
|
|
1970
1970
|
} else targetProperty = target[key];
|
|
1971
|
-
FORCED = isForced$
|
|
1971
|
+
FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1972
1972
|
// contained in target
|
|
1973
1973
|
if (!FORCED && targetProperty !== undefined) {
|
|
1974
1974
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1979,7 +1979,7 @@ var _export = function (options, source) {
|
|
|
1979
1979
|
createNonEnumerableProperty$5(sourceProperty, 'sham', true);
|
|
1980
1980
|
}
|
|
1981
1981
|
// extend global
|
|
1982
|
-
redefine$
|
|
1982
|
+
redefine$a(target, key, sourceProperty, options);
|
|
1983
1983
|
}
|
|
1984
1984
|
};
|
|
1985
1985
|
|
|
@@ -1997,12 +1997,12 @@ var createProperty$3 = function (object, key, value) {
|
|
|
1997
1997
|
else object[propertyKey] = value;
|
|
1998
1998
|
};
|
|
1999
1999
|
|
|
2000
|
-
var global$
|
|
2000
|
+
var global$z = global$U;
|
|
2001
2001
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
2002
2002
|
var lengthOfArrayLike$6 = lengthOfArrayLike$8;
|
|
2003
2003
|
var createProperty$2 = createProperty$3;
|
|
2004
2004
|
|
|
2005
|
-
var Array$4 = global$
|
|
2005
|
+
var Array$4 = global$z.Array;
|
|
2006
2006
|
var max$1 = Math.max;
|
|
2007
2007
|
|
|
2008
2008
|
var arraySliceSimple = function (O, start, end) {
|
|
@@ -2041,9 +2041,9 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
|
|
|
2041
2041
|
};
|
|
2042
2042
|
|
|
2043
2043
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
2044
|
-
var fails$
|
|
2044
|
+
var fails$p = fails$x;
|
|
2045
2045
|
|
|
2046
|
-
var arrayBufferNonExtensible = fails$
|
|
2046
|
+
var arrayBufferNonExtensible = fails$p(function () {
|
|
2047
2047
|
if (typeof ArrayBuffer == 'function') {
|
|
2048
2048
|
var buffer = new ArrayBuffer(8);
|
|
2049
2049
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
|
@@ -2051,57 +2051,57 @@ var arrayBufferNonExtensible = fails$n(function () {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
2053
|
|
|
2054
|
-
var fails$
|
|
2055
|
-
var isObject$
|
|
2054
|
+
var fails$o = fails$x;
|
|
2055
|
+
var isObject$e = isObject$k;
|
|
2056
2056
|
var classof$8 = classofRaw$1;
|
|
2057
2057
|
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
2058
2058
|
|
|
2059
2059
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
2060
2060
|
var $isExtensible = Object.isExtensible;
|
|
2061
|
-
var FAILS_ON_PRIMITIVES$
|
|
2061
|
+
var FAILS_ON_PRIMITIVES$3 = fails$o(function () { $isExtensible(1); });
|
|
2062
2062
|
|
|
2063
2063
|
// `Object.isExtensible` method
|
|
2064
2064
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
2065
|
-
var objectIsExtensible = (FAILS_ON_PRIMITIVES$
|
|
2066
|
-
if (!isObject$
|
|
2065
|
+
var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
2066
|
+
if (!isObject$e(it)) return false;
|
|
2067
2067
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$8(it) == 'ArrayBuffer') return false;
|
|
2068
2068
|
return $isExtensible ? $isExtensible(it) : true;
|
|
2069
2069
|
} : $isExtensible;
|
|
2070
2070
|
|
|
2071
|
-
var fails$
|
|
2071
|
+
var fails$n = fails$x;
|
|
2072
2072
|
|
|
2073
|
-
var freezing = !fails$
|
|
2073
|
+
var freezing = !fails$n(function () {
|
|
2074
2074
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
2075
2075
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
2076
2076
|
});
|
|
2077
2077
|
|
|
2078
|
-
var $$
|
|
2079
|
-
var uncurryThis$
|
|
2078
|
+
var $$o = _export;
|
|
2079
|
+
var uncurryThis$p = functionUncurryThis;
|
|
2080
2080
|
var hiddenKeys$1 = hiddenKeys$5;
|
|
2081
|
-
var isObject$
|
|
2082
|
-
var hasOwn$
|
|
2081
|
+
var isObject$d = isObject$k;
|
|
2082
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
2083
2083
|
var defineProperty$5 = objectDefineProperty.f;
|
|
2084
2084
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2085
2085
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
2086
2086
|
var isExtensible = objectIsExtensible;
|
|
2087
2087
|
var uid = uid$3;
|
|
2088
|
-
var FREEZING$
|
|
2088
|
+
var FREEZING$2 = freezing;
|
|
2089
2089
|
|
|
2090
2090
|
var REQUIRED = false;
|
|
2091
2091
|
var METADATA = uid('meta');
|
|
2092
|
-
var id = 0;
|
|
2092
|
+
var id$1 = 0;
|
|
2093
2093
|
|
|
2094
2094
|
var setMetadata = function (it) {
|
|
2095
2095
|
defineProperty$5(it, METADATA, { value: {
|
|
2096
|
-
objectID: 'O' + id++, // object ID
|
|
2096
|
+
objectID: 'O' + id$1++, // object ID
|
|
2097
2097
|
weakData: {} // weak collections IDs
|
|
2098
2098
|
} });
|
|
2099
2099
|
};
|
|
2100
2100
|
|
|
2101
2101
|
var fastKey = function (it, create) {
|
|
2102
2102
|
// return a primitive with prefix
|
|
2103
|
-
if (!isObject$
|
|
2104
|
-
if (!hasOwn$
|
|
2103
|
+
if (!isObject$d(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
2104
|
+
if (!hasOwn$8(it, METADATA)) {
|
|
2105
2105
|
// can't set metadata to uncaught frozen object
|
|
2106
2106
|
if (!isExtensible(it)) return 'F';
|
|
2107
2107
|
// not necessary to add metadata
|
|
@@ -2112,8 +2112,8 @@ var fastKey = function (it, create) {
|
|
|
2112
2112
|
} return it[METADATA].objectID;
|
|
2113
2113
|
};
|
|
2114
2114
|
|
|
2115
|
-
var getWeakData = function (it, create) {
|
|
2116
|
-
if (!hasOwn$
|
|
2115
|
+
var getWeakData$1 = function (it, create) {
|
|
2116
|
+
if (!hasOwn$8(it, METADATA)) {
|
|
2117
2117
|
// can't set metadata to uncaught frozen object
|
|
2118
2118
|
if (!isExtensible(it)) return true;
|
|
2119
2119
|
// not necessary to add metadata
|
|
@@ -2125,8 +2125,8 @@ var getWeakData = function (it, create) {
|
|
|
2125
2125
|
};
|
|
2126
2126
|
|
|
2127
2127
|
// add metadata on freeze-family methods calling
|
|
2128
|
-
var onFreeze$
|
|
2129
|
-
if (FREEZING$
|
|
2128
|
+
var onFreeze$2 = function (it) {
|
|
2129
|
+
if (FREEZING$2 && REQUIRED && isExtensible(it) && !hasOwn$8(it, METADATA)) setMetadata(it);
|
|
2130
2130
|
return it;
|
|
2131
2131
|
};
|
|
2132
2132
|
|
|
@@ -2134,7 +2134,7 @@ var enable = function () {
|
|
|
2134
2134
|
meta.enable = function () { /* empty */ };
|
|
2135
2135
|
REQUIRED = true;
|
|
2136
2136
|
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
|
|
2137
|
-
var splice = uncurryThis$
|
|
2137
|
+
var splice = uncurryThis$p([].splice);
|
|
2138
2138
|
var test = {};
|
|
2139
2139
|
test[METADATA] = 1;
|
|
2140
2140
|
|
|
@@ -2150,7 +2150,7 @@ var enable = function () {
|
|
|
2150
2150
|
} return result;
|
|
2151
2151
|
};
|
|
2152
2152
|
|
|
2153
|
-
$$
|
|
2153
|
+
$$o({ target: 'Object', stat: true, forced: true }, {
|
|
2154
2154
|
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
@@ -2159,27 +2159,27 @@ var enable = function () {
|
|
|
2159
2159
|
var meta = internalMetadata.exports = {
|
|
2160
2160
|
enable: enable,
|
|
2161
2161
|
fastKey: fastKey,
|
|
2162
|
-
getWeakData: getWeakData,
|
|
2163
|
-
onFreeze: onFreeze$
|
|
2162
|
+
getWeakData: getWeakData$1,
|
|
2163
|
+
onFreeze: onFreeze$2
|
|
2164
2164
|
};
|
|
2165
2165
|
|
|
2166
2166
|
hiddenKeys$1[METADATA] = true;
|
|
2167
2167
|
|
|
2168
|
-
var $$
|
|
2169
|
-
var isObject$
|
|
2170
|
-
var onFreeze = internalMetadata.exports.onFreeze;
|
|
2171
|
-
var FREEZING = freezing;
|
|
2172
|
-
var fails$
|
|
2168
|
+
var $$n = _export;
|
|
2169
|
+
var isObject$c = isObject$k;
|
|
2170
|
+
var onFreeze$1 = internalMetadata.exports.onFreeze;
|
|
2171
|
+
var FREEZING$1 = freezing;
|
|
2172
|
+
var fails$m = fails$x;
|
|
2173
2173
|
|
|
2174
2174
|
// eslint-disable-next-line es/no-object-seal -- safe
|
|
2175
2175
|
var $seal = Object.seal;
|
|
2176
|
-
var FAILS_ON_PRIMITIVES$
|
|
2176
|
+
var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $seal(1); });
|
|
2177
2177
|
|
|
2178
2178
|
// `Object.seal` method
|
|
2179
2179
|
// https://tc39.es/ecma262/#sec-object.seal
|
|
2180
|
-
$$
|
|
2180
|
+
$$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
|
|
2181
2181
|
seal: function seal(it) {
|
|
2182
|
-
return $seal && isObject$
|
|
2182
|
+
return $seal && isObject$c(it) ? $seal(onFreeze$1(it)) : it;
|
|
2183
2183
|
}
|
|
2184
2184
|
});
|
|
2185
2185
|
|
|
@@ -2194,21 +2194,21 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
|
|
|
2194
2194
|
return call$a.apply(apply$3, arguments);
|
|
2195
2195
|
});
|
|
2196
2196
|
|
|
2197
|
-
var global$
|
|
2198
|
-
var isCallable$
|
|
2197
|
+
var global$y = global$U;
|
|
2198
|
+
var isCallable$b = isCallable$l;
|
|
2199
2199
|
|
|
2200
|
-
var String$3 = global$
|
|
2201
|
-
var TypeError$c = global$
|
|
2200
|
+
var String$3 = global$y.String;
|
|
2201
|
+
var TypeError$c = global$y.TypeError;
|
|
2202
2202
|
|
|
2203
2203
|
var aPossiblePrototype$1 = function (argument) {
|
|
2204
|
-
if (typeof argument == 'object' || isCallable$
|
|
2204
|
+
if (typeof argument == 'object' || isCallable$b(argument)) return argument;
|
|
2205
2205
|
throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
|
|
2206
2206
|
};
|
|
2207
2207
|
|
|
2208
2208
|
/* eslint-disable no-proto -- safe */
|
|
2209
2209
|
|
|
2210
|
-
var uncurryThis$
|
|
2211
|
-
var anObject$
|
|
2210
|
+
var uncurryThis$o = functionUncurryThis;
|
|
2211
|
+
var anObject$c = anObject$f;
|
|
2212
2212
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2213
2213
|
|
|
2214
2214
|
// `Object.setPrototypeOf` method
|
|
@@ -2221,12 +2221,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2221
2221
|
var setter;
|
|
2222
2222
|
try {
|
|
2223
2223
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2224
|
-
setter = uncurryThis$
|
|
2224
|
+
setter = uncurryThis$o(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
2225
2225
|
setter(test, []);
|
|
2226
2226
|
CORRECT_SETTER = test instanceof Array;
|
|
2227
2227
|
} catch (error) { /* empty */ }
|
|
2228
2228
|
return function setPrototypeOf(O, proto) {
|
|
2229
|
-
anObject$
|
|
2229
|
+
anObject$c(O);
|
|
2230
2230
|
aPossiblePrototype(proto);
|
|
2231
2231
|
if (CORRECT_SETTER) setter(O, proto);
|
|
2232
2232
|
else O.__proto__ = proto;
|
|
@@ -2234,20 +2234,20 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2234
2234
|
};
|
|
2235
2235
|
}() : undefined);
|
|
2236
2236
|
|
|
2237
|
-
var isCallable$
|
|
2238
|
-
var isObject$
|
|
2237
|
+
var isCallable$a = isCallable$l;
|
|
2238
|
+
var isObject$b = isObject$k;
|
|
2239
2239
|
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
2240
2240
|
|
|
2241
2241
|
// makes subclassing work correct for wrapped built-ins
|
|
2242
|
-
var inheritIfRequired$
|
|
2242
|
+
var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
|
|
2243
2243
|
var NewTarget, NewTargetPrototype;
|
|
2244
2244
|
if (
|
|
2245
2245
|
// it can work only with native `setPrototypeOf`
|
|
2246
2246
|
setPrototypeOf$3 &&
|
|
2247
2247
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2248
|
-
isCallable$
|
|
2248
|
+
isCallable$a(NewTarget = dummy.constructor) &&
|
|
2249
2249
|
NewTarget !== Wrapper &&
|
|
2250
|
-
isObject$
|
|
2250
|
+
isObject$b(NewTargetPrototype = NewTarget.prototype) &&
|
|
2251
2251
|
NewTargetPrototype !== Wrapper.prototype
|
|
2252
2252
|
) setPrototypeOf$3($this, NewTargetPrototype);
|
|
2253
2253
|
return $this;
|
|
@@ -2262,14 +2262,14 @@ test$1[TO_STRING_TAG$3] = 'z';
|
|
|
2262
2262
|
|
|
2263
2263
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
2264
2264
|
|
|
2265
|
-
var global$
|
|
2265
|
+
var global$x = global$U;
|
|
2266
2266
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2267
|
-
var isCallable$
|
|
2267
|
+
var isCallable$9 = isCallable$l;
|
|
2268
2268
|
var classofRaw = classofRaw$1;
|
|
2269
2269
|
var wellKnownSymbol$g = wellKnownSymbol$j;
|
|
2270
2270
|
|
|
2271
2271
|
var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
|
|
2272
|
-
var Object$2 = global$
|
|
2272
|
+
var Object$2 = global$x.Object;
|
|
2273
2273
|
|
|
2274
2274
|
// ES3 wrong here
|
|
2275
2275
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -2290,13 +2290,13 @@ var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
2290
2290
|
// builtinTag case
|
|
2291
2291
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2292
2292
|
// ES3 arguments fallback
|
|
2293
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
2293
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
2294
2294
|
};
|
|
2295
2295
|
|
|
2296
|
-
var global$
|
|
2296
|
+
var global$w = global$U;
|
|
2297
2297
|
var classof$6 = classof$7;
|
|
2298
2298
|
|
|
2299
|
-
var String$2 = global$
|
|
2299
|
+
var String$2 = global$w.String;
|
|
2300
2300
|
|
|
2301
2301
|
var toString$9 = function (argument) {
|
|
2302
2302
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
@@ -2309,20 +2309,20 @@ var normalizeStringArgument$1 = function (argument, $default) {
|
|
|
2309
2309
|
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
|
|
2310
2310
|
};
|
|
2311
2311
|
|
|
2312
|
-
var isObject$
|
|
2312
|
+
var isObject$a = isObject$k;
|
|
2313
2313
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
2314
2314
|
|
|
2315
2315
|
// `InstallErrorCause` abstract operation
|
|
2316
2316
|
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
2317
2317
|
var installErrorCause$1 = function (O, options) {
|
|
2318
|
-
if (isObject$
|
|
2318
|
+
if (isObject$a(options) && 'cause' in options) {
|
|
2319
2319
|
createNonEnumerableProperty$4(O, 'cause', options.cause);
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
var uncurryThis$
|
|
2323
|
+
var uncurryThis$n = functionUncurryThis;
|
|
2324
2324
|
|
|
2325
|
-
var replace$7 = uncurryThis$
|
|
2325
|
+
var replace$7 = uncurryThis$n(''.replace);
|
|
2326
2326
|
|
|
2327
2327
|
var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
|
|
2328
2328
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
@@ -2334,10 +2334,10 @@ var clearErrorStack$1 = function (stack, dropEntries) {
|
|
|
2334
2334
|
} return stack;
|
|
2335
2335
|
};
|
|
2336
2336
|
|
|
2337
|
-
var fails$
|
|
2337
|
+
var fails$l = fails$x;
|
|
2338
2338
|
var createPropertyDescriptor$2 = createPropertyDescriptor$6;
|
|
2339
2339
|
|
|
2340
|
-
var errorStackInstallable = !fails$
|
|
2340
|
+
var errorStackInstallable = !fails$l(function () {
|
|
2341
2341
|
var error = Error('a');
|
|
2342
2342
|
if (!('stack' in error)) return true;
|
|
2343
2343
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -2346,12 +2346,12 @@ var errorStackInstallable = !fails$j(function () {
|
|
|
2346
2346
|
});
|
|
2347
2347
|
|
|
2348
2348
|
var getBuiltIn$6 = getBuiltIn$a;
|
|
2349
|
-
var hasOwn$
|
|
2349
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
2350
2350
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2351
2351
|
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
2352
2352
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
2353
2353
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2354
|
-
var inheritIfRequired$
|
|
2354
|
+
var inheritIfRequired$2 = inheritIfRequired$3;
|
|
2355
2355
|
var normalizeStringArgument = normalizeStringArgument$1;
|
|
2356
2356
|
var installErrorCause = installErrorCause$1;
|
|
2357
2357
|
var clearErrorStack = clearErrorStack$1;
|
|
@@ -2368,7 +2368,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2368
2368
|
var OriginalErrorPrototype = OriginalError.prototype;
|
|
2369
2369
|
|
|
2370
2370
|
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
2371
|
-
if (hasOwn$
|
|
2371
|
+
if (hasOwn$7(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
2372
2372
|
|
|
2373
2373
|
if (!FORCED) return OriginalError;
|
|
2374
2374
|
|
|
@@ -2379,7 +2379,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2379
2379
|
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
2380
2380
|
if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
|
|
2381
2381
|
if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$3(result, 'stack', clearErrorStack(result.stack, 2));
|
|
2382
|
-
if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$
|
|
2382
|
+
if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$2(result, this, WrappedError);
|
|
2383
2383
|
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
2384
2384
|
return result;
|
|
2385
2385
|
});
|
|
@@ -2406,27 +2406,27 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2406
2406
|
|
|
2407
2407
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2408
2408
|
|
|
2409
|
-
var $$
|
|
2410
|
-
var global$
|
|
2409
|
+
var $$m = _export;
|
|
2410
|
+
var global$v = global$U;
|
|
2411
2411
|
var apply$2 = functionApply;
|
|
2412
2412
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2413
2413
|
|
|
2414
2414
|
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2415
|
-
var WebAssembly = global$
|
|
2415
|
+
var WebAssembly = global$v[WEB_ASSEMBLY];
|
|
2416
2416
|
|
|
2417
2417
|
var FORCED$5 = Error('e', { cause: 7 }).cause !== 7;
|
|
2418
2418
|
|
|
2419
2419
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2420
2420
|
var O = {};
|
|
2421
2421
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
|
|
2422
|
-
$$
|
|
2422
|
+
$$m({ global: true, forced: FORCED$5 }, O);
|
|
2423
2423
|
};
|
|
2424
2424
|
|
|
2425
2425
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2426
2426
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
2427
2427
|
var O = {};
|
|
2428
2428
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
|
|
2429
|
-
$$
|
|
2429
|
+
$$m({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
|
|
2430
2430
|
}
|
|
2431
2431
|
};
|
|
2432
2432
|
|
|
@@ -2471,9 +2471,9 @@ var isArray$9 = Array.isArray || function isArray(argument) {
|
|
|
2471
2471
|
return classof$5(argument) == 'Array';
|
|
2472
2472
|
};
|
|
2473
2473
|
|
|
2474
|
-
var uncurryThis$
|
|
2475
|
-
var fails$
|
|
2476
|
-
var isCallable$
|
|
2474
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2475
|
+
var fails$k = fails$x;
|
|
2476
|
+
var isCallable$8 = isCallable$l;
|
|
2477
2477
|
var classof$4 = classof$7;
|
|
2478
2478
|
var getBuiltIn$5 = getBuiltIn$a;
|
|
2479
2479
|
var inspectSource$1 = inspectSource$4;
|
|
@@ -2482,11 +2482,11 @@ var noop = function () { /* empty */ };
|
|
|
2482
2482
|
var empty = [];
|
|
2483
2483
|
var construct = getBuiltIn$5('Reflect', 'construct');
|
|
2484
2484
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2485
|
-
var exec$5 = uncurryThis$
|
|
2485
|
+
var exec$5 = uncurryThis$m(constructorRegExp.exec);
|
|
2486
2486
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2487
2487
|
|
|
2488
2488
|
var isConstructorModern = function isConstructor(argument) {
|
|
2489
|
-
if (!isCallable$
|
|
2489
|
+
if (!isCallable$8(argument)) return false;
|
|
2490
2490
|
try {
|
|
2491
2491
|
construct(noop, empty, argument);
|
|
2492
2492
|
return true;
|
|
@@ -2496,7 +2496,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
2496
2496
|
};
|
|
2497
2497
|
|
|
2498
2498
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
2499
|
-
if (!isCallable$
|
|
2499
|
+
if (!isCallable$8(argument)) return false;
|
|
2500
2500
|
switch (classof$4(argument)) {
|
|
2501
2501
|
case 'AsyncFunction':
|
|
2502
2502
|
case 'GeneratorFunction':
|
|
@@ -2516,7 +2516,7 @@ isConstructorLegacy.sham = true;
|
|
|
2516
2516
|
|
|
2517
2517
|
// `IsConstructor` abstract operation
|
|
2518
2518
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2519
|
-
var isConstructor$3 = !construct || fails$
|
|
2519
|
+
var isConstructor$3 = !construct || fails$k(function () {
|
|
2520
2520
|
var called;
|
|
2521
2521
|
return isConstructorModern(isConstructorModern.call)
|
|
2522
2522
|
|| !isConstructorModern(Object)
|
|
@@ -2524,14 +2524,14 @@ var isConstructor$3 = !construct || fails$i(function () {
|
|
|
2524
2524
|
|| called;
|
|
2525
2525
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
2526
2526
|
|
|
2527
|
-
var global$
|
|
2527
|
+
var global$u = global$U;
|
|
2528
2528
|
var isArray$8 = isArray$9;
|
|
2529
2529
|
var isConstructor$2 = isConstructor$3;
|
|
2530
|
-
var isObject$
|
|
2530
|
+
var isObject$9 = isObject$k;
|
|
2531
2531
|
var wellKnownSymbol$f = wellKnownSymbol$j;
|
|
2532
2532
|
|
|
2533
2533
|
var SPECIES$4 = wellKnownSymbol$f('species');
|
|
2534
|
-
var Array$3 = global$
|
|
2534
|
+
var Array$3 = global$u.Array;
|
|
2535
2535
|
|
|
2536
2536
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
2537
2537
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -2541,7 +2541,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
2541
2541
|
C = originalArray.constructor;
|
|
2542
2542
|
// cross-realm fallback
|
|
2543
2543
|
if (isConstructor$2(C) && (C === Array$3 || isArray$8(C.prototype))) C = undefined;
|
|
2544
|
-
else if (isObject$
|
|
2544
|
+
else if (isObject$9(C)) {
|
|
2545
2545
|
C = C[SPECIES$4];
|
|
2546
2546
|
if (C === null) C = undefined;
|
|
2547
2547
|
}
|
|
@@ -2556,7 +2556,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
|
2556
2556
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
2557
2557
|
};
|
|
2558
2558
|
|
|
2559
|
-
var fails$
|
|
2559
|
+
var fails$j = fails$x;
|
|
2560
2560
|
var wellKnownSymbol$e = wellKnownSymbol$j;
|
|
2561
2561
|
var V8_VERSION$2 = engineV8Version;
|
|
2562
2562
|
|
|
@@ -2566,7 +2566,7 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
|
2566
2566
|
// We can't use this feature detection in V8 since it causes
|
|
2567
2567
|
// deoptimization and serious performance degradation
|
|
2568
2568
|
// https://github.com/zloirock/core-js/issues/677
|
|
2569
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
2569
|
+
return V8_VERSION$2 >= 51 || !fails$j(function () {
|
|
2570
2570
|
var array = [];
|
|
2571
2571
|
var constructor = array.constructor = {};
|
|
2572
2572
|
constructor[SPECIES$3] = function () {
|
|
@@ -2576,11 +2576,11 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
|
2576
2576
|
});
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
-
var $$
|
|
2580
|
-
var global$
|
|
2581
|
-
var fails$
|
|
2579
|
+
var $$l = _export;
|
|
2580
|
+
var global$t = global$U;
|
|
2581
|
+
var fails$i = fails$x;
|
|
2582
2582
|
var isArray$7 = isArray$9;
|
|
2583
|
-
var isObject$
|
|
2583
|
+
var isObject$8 = isObject$k;
|
|
2584
2584
|
var toObject$7 = toObject$9;
|
|
2585
2585
|
var lengthOfArrayLike$5 = lengthOfArrayLike$8;
|
|
2586
2586
|
var createProperty$1 = createProperty$3;
|
|
@@ -2592,12 +2592,12 @@ var V8_VERSION$1 = engineV8Version;
|
|
|
2592
2592
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol$d('isConcatSpreadable');
|
|
2593
2593
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
2594
2594
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2595
|
-
var TypeError$b = global$
|
|
2595
|
+
var TypeError$b = global$t.TypeError;
|
|
2596
2596
|
|
|
2597
2597
|
// We can't use this feature detection in V8 since it causes
|
|
2598
2598
|
// deoptimization and serious performance degradation
|
|
2599
2599
|
// https://github.com/zloirock/core-js/issues/679
|
|
2600
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$
|
|
2600
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {
|
|
2601
2601
|
var array = [];
|
|
2602
2602
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2603
2603
|
return array.concat()[0] !== array;
|
|
@@ -2606,7 +2606,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
|
|
|
2606
2606
|
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
|
|
2607
2607
|
|
|
2608
2608
|
var isConcatSpreadable = function (O) {
|
|
2609
|
-
if (!isObject$
|
|
2609
|
+
if (!isObject$8(O)) return false;
|
|
2610
2610
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2611
2611
|
return spreadable !== undefined ? !!spreadable : isArray$7(O);
|
|
2612
2612
|
};
|
|
@@ -2616,7 +2616,7 @@ var FORCED$4 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
|
2616
2616
|
// `Array.prototype.concat` method
|
|
2617
2617
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2618
2618
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2619
|
-
$$
|
|
2619
|
+
$$l({ target: 'Array', proto: true, forced: FORCED$4 }, {
|
|
2620
2620
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2621
2621
|
concat: function concat(arg) {
|
|
2622
2622
|
var O = toObject$7(this);
|
|
@@ -2673,13 +2673,13 @@ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString()
|
|
|
2673
2673
|
};
|
|
2674
2674
|
|
|
2675
2675
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2676
|
-
var redefine$
|
|
2676
|
+
var redefine$9 = redefine$b.exports;
|
|
2677
2677
|
var toString$7 = objectToString;
|
|
2678
2678
|
|
|
2679
2679
|
// `Object.prototype.toString` method
|
|
2680
2680
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
2681
2681
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
2682
|
-
redefine$
|
|
2682
|
+
redefine$9(Object.prototype, 'toString', toString$7, { unsafe: true });
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
// iterable DOM collections
|
|
@@ -2726,11 +2726,11 @@ var DOMTokenListPrototype$2 = classList && classList.constructor && classList.co
|
|
|
2726
2726
|
|
|
2727
2727
|
var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
|
|
2728
2728
|
|
|
2729
|
-
var uncurryThis$
|
|
2729
|
+
var uncurryThis$l = functionUncurryThis;
|
|
2730
2730
|
var aCallable$5 = aCallable$7;
|
|
2731
2731
|
var NATIVE_BIND = functionBindNative;
|
|
2732
2732
|
|
|
2733
|
-
var bind$b = uncurryThis$
|
|
2733
|
+
var bind$b = uncurryThis$l(uncurryThis$l.bind);
|
|
2734
2734
|
|
|
2735
2735
|
// optional / simple context binding
|
|
2736
2736
|
var functionBindContext = function (fn, that) {
|
|
@@ -2741,13 +2741,13 @@ var functionBindContext = function (fn, that) {
|
|
|
2741
2741
|
};
|
|
2742
2742
|
|
|
2743
2743
|
var bind$a = functionBindContext;
|
|
2744
|
-
var uncurryThis$
|
|
2744
|
+
var uncurryThis$k = functionUncurryThis;
|
|
2745
2745
|
var IndexedObject$3 = indexedObject;
|
|
2746
2746
|
var toObject$6 = toObject$9;
|
|
2747
2747
|
var lengthOfArrayLike$4 = lengthOfArrayLike$8;
|
|
2748
2748
|
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2749
2749
|
|
|
2750
|
-
var push$6 = uncurryThis$
|
|
2750
|
+
var push$6 = uncurryThis$k([].push);
|
|
2751
2751
|
|
|
2752
2752
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2753
2753
|
var createMethod$4 = function (TYPE) {
|
|
@@ -2814,11 +2814,11 @@ var arrayIteration = {
|
|
|
2814
2814
|
filterReject: createMethod$4(7)
|
|
2815
2815
|
};
|
|
2816
2816
|
|
|
2817
|
-
var fails$
|
|
2817
|
+
var fails$h = fails$x;
|
|
2818
2818
|
|
|
2819
2819
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
2820
2820
|
var method = [][METHOD_NAME];
|
|
2821
|
-
return !!method && fails$
|
|
2821
|
+
return !!method && fails$h(function () {
|
|
2822
2822
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2823
2823
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2824
2824
|
});
|
|
@@ -2836,7 +2836,7 @@ var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg *
|
|
|
2836
2836
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
2837
2837
|
} : [].forEach;
|
|
2838
2838
|
|
|
2839
|
-
var global$
|
|
2839
|
+
var global$s = global$U;
|
|
2840
2840
|
var DOMIterables$1 = domIterables;
|
|
2841
2841
|
var DOMTokenListPrototype$1 = domTokenListPrototype;
|
|
2842
2842
|
var forEach$1 = arrayForEach;
|
|
@@ -2853,7 +2853,7 @@ var handlePrototype$1 = function (CollectionPrototype) {
|
|
|
2853
2853
|
|
|
2854
2854
|
for (var COLLECTION_NAME$1 in DOMIterables$1) {
|
|
2855
2855
|
if (DOMIterables$1[COLLECTION_NAME$1]) {
|
|
2856
|
-
handlePrototype$1(global$
|
|
2856
|
+
handlePrototype$1(global$s[COLLECTION_NAME$1] && global$s[COLLECTION_NAME$1].prototype);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
2859
|
|
|
@@ -2869,27 +2869,27 @@ var objectKeys$3 = Object.keys || function keys(O) {
|
|
|
2869
2869
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
2870
2870
|
};
|
|
2871
2871
|
|
|
2872
|
-
var $$
|
|
2872
|
+
var $$k = _export;
|
|
2873
2873
|
var toObject$5 = toObject$9;
|
|
2874
2874
|
var nativeKeys = objectKeys$3;
|
|
2875
|
-
var fails$
|
|
2875
|
+
var fails$g = fails$x;
|
|
2876
2876
|
|
|
2877
|
-
var FAILS_ON_PRIMITIVES = fails$
|
|
2877
|
+
var FAILS_ON_PRIMITIVES$1 = fails$g(function () { nativeKeys(1); });
|
|
2878
2878
|
|
|
2879
2879
|
// `Object.keys` method
|
|
2880
2880
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
2881
|
-
$$
|
|
2881
|
+
$$k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
|
|
2882
2882
|
keys: function keys(it) {
|
|
2883
2883
|
return nativeKeys(toObject$5(it));
|
|
2884
2884
|
}
|
|
2885
2885
|
});
|
|
2886
2886
|
|
|
2887
|
-
var anObject$
|
|
2887
|
+
var anObject$b = anObject$f;
|
|
2888
2888
|
|
|
2889
2889
|
// `RegExp.prototype.flags` getter implementation
|
|
2890
2890
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2891
2891
|
var regexpFlags$1 = function () {
|
|
2892
|
-
var that = anObject$
|
|
2892
|
+
var that = anObject$b(this);
|
|
2893
2893
|
var result = '';
|
|
2894
2894
|
if (that.global) result += 'g';
|
|
2895
2895
|
if (that.ignoreCase) result += 'i';
|
|
@@ -2900,13 +2900,13 @@ var regexpFlags$1 = function () {
|
|
|
2900
2900
|
return result;
|
|
2901
2901
|
};
|
|
2902
2902
|
|
|
2903
|
-
var fails$
|
|
2904
|
-
var global$
|
|
2903
|
+
var fails$f = fails$x;
|
|
2904
|
+
var global$r = global$U;
|
|
2905
2905
|
|
|
2906
2906
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2907
|
-
var $RegExp$2 = global$
|
|
2907
|
+
var $RegExp$2 = global$r.RegExp;
|
|
2908
2908
|
|
|
2909
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
2909
|
+
var UNSUPPORTED_Y$1 = fails$f(function () {
|
|
2910
2910
|
var re = $RegExp$2('a', 'y');
|
|
2911
2911
|
re.lastIndex = 2;
|
|
2912
2912
|
return re.exec('abcd') != null;
|
|
@@ -2914,11 +2914,11 @@ var UNSUPPORTED_Y$1 = fails$d(function () {
|
|
|
2914
2914
|
|
|
2915
2915
|
// UC Browser bug
|
|
2916
2916
|
// https://github.com/zloirock/core-js/issues/1008
|
|
2917
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
2917
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$f(function () {
|
|
2918
2918
|
return !$RegExp$2('a', 'y').sticky;
|
|
2919
2919
|
});
|
|
2920
2920
|
|
|
2921
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
2921
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$f(function () {
|
|
2922
2922
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2923
2923
|
var re = $RegExp$2('^r', 'gy');
|
|
2924
2924
|
re.lastIndex = 2;
|
|
@@ -2936,7 +2936,7 @@ var objectDefineProperties = {};
|
|
|
2936
2936
|
var DESCRIPTORS$7 = descriptors$1;
|
|
2937
2937
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
2938
2938
|
var definePropertyModule$2 = objectDefineProperty;
|
|
2939
|
-
var anObject$
|
|
2939
|
+
var anObject$a = anObject$f;
|
|
2940
2940
|
var toIndexedObject$3 = toIndexedObject$8;
|
|
2941
2941
|
var objectKeys$2 = objectKeys$3;
|
|
2942
2942
|
|
|
@@ -2944,7 +2944,7 @@ var objectKeys$2 = objectKeys$3;
|
|
|
2944
2944
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2945
2945
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2946
2946
|
objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2947
|
-
anObject$
|
|
2947
|
+
anObject$a(O);
|
|
2948
2948
|
var props = toIndexedObject$3(Properties);
|
|
2949
2949
|
var keys = objectKeys$2(Properties);
|
|
2950
2950
|
var length = keys.length;
|
|
@@ -2960,7 +2960,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
|
2960
2960
|
|
|
2961
2961
|
/* global ActiveXObject -- old IE, WSH */
|
|
2962
2962
|
|
|
2963
|
-
var anObject$
|
|
2963
|
+
var anObject$9 = anObject$f;
|
|
2964
2964
|
var definePropertiesModule = objectDefineProperties;
|
|
2965
2965
|
var enumBugKeys = enumBugKeys$3;
|
|
2966
2966
|
var hiddenKeys = hiddenKeys$5;
|
|
@@ -3033,7 +3033,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
3033
3033
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
3034
3034
|
var result;
|
|
3035
3035
|
if (O !== null) {
|
|
3036
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
3036
|
+
EmptyConstructor[PROTOTYPE] = anObject$9(O);
|
|
3037
3037
|
result = new EmptyConstructor();
|
|
3038
3038
|
EmptyConstructor[PROTOTYPE] = null;
|
|
3039
3039
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -3042,24 +3042,24 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
3042
3042
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
3043
3043
|
};
|
|
3044
3044
|
|
|
3045
|
-
var fails$
|
|
3046
|
-
var global$
|
|
3045
|
+
var fails$e = fails$x;
|
|
3046
|
+
var global$q = global$U;
|
|
3047
3047
|
|
|
3048
3048
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3049
|
-
var $RegExp$1 = global$
|
|
3049
|
+
var $RegExp$1 = global$q.RegExp;
|
|
3050
3050
|
|
|
3051
|
-
var regexpUnsupportedDotAll = fails$
|
|
3051
|
+
var regexpUnsupportedDotAll = fails$e(function () {
|
|
3052
3052
|
var re = $RegExp$1('.', 's');
|
|
3053
3053
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3054
3054
|
});
|
|
3055
3055
|
|
|
3056
|
-
var fails$
|
|
3057
|
-
var global$
|
|
3056
|
+
var fails$d = fails$x;
|
|
3057
|
+
var global$p = global$U;
|
|
3058
3058
|
|
|
3059
3059
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3060
|
-
var $RegExp = global$
|
|
3060
|
+
var $RegExp = global$p.RegExp;
|
|
3061
3061
|
|
|
3062
|
-
var regexpUnsupportedNcg = fails$
|
|
3062
|
+
var regexpUnsupportedNcg = fails$d(function () {
|
|
3063
3063
|
var re = $RegExp('(?<a>b)', 'g');
|
|
3064
3064
|
return re.exec('b').groups.a !== 'b' ||
|
|
3065
3065
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -3068,7 +3068,7 @@ var regexpUnsupportedNcg = fails$b(function () {
|
|
|
3068
3068
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3069
3069
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3070
3070
|
var call$9 = functionCall;
|
|
3071
|
-
var uncurryThis$
|
|
3071
|
+
var uncurryThis$j = functionUncurryThis;
|
|
3072
3072
|
var toString$6 = toString$9;
|
|
3073
3073
|
var regexpFlags = regexpFlags$1;
|
|
3074
3074
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -3081,10 +3081,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
3081
3081
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3082
3082
|
var nativeExec = RegExp.prototype.exec;
|
|
3083
3083
|
var patchedExec = nativeExec;
|
|
3084
|
-
var charAt$5 = uncurryThis$
|
|
3085
|
-
var indexOf = uncurryThis$
|
|
3086
|
-
var replace$6 = uncurryThis$
|
|
3087
|
-
var stringSlice$3 = uncurryThis$
|
|
3084
|
+
var charAt$5 = uncurryThis$j(''.charAt);
|
|
3085
|
+
var indexOf = uncurryThis$j(''.indexOf);
|
|
3086
|
+
var replace$6 = uncurryThis$j(''.replace);
|
|
3087
|
+
var stringSlice$3 = uncurryThis$j(''.slice);
|
|
3088
3088
|
|
|
3089
3089
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3090
3090
|
var re1 = /a/;
|
|
@@ -3182,23 +3182,23 @@ if (PATCH) {
|
|
|
3182
3182
|
|
|
3183
3183
|
var regexpExec = patchedExec;
|
|
3184
3184
|
|
|
3185
|
-
var $$
|
|
3185
|
+
var $$j = _export;
|
|
3186
3186
|
var exec$4 = regexpExec;
|
|
3187
3187
|
|
|
3188
3188
|
// `RegExp.prototype.exec` method
|
|
3189
3189
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3190
|
-
$$
|
|
3190
|
+
$$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
|
|
3191
3191
|
exec: exec$4
|
|
3192
3192
|
});
|
|
3193
3193
|
|
|
3194
3194
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3195
3195
|
|
|
3196
|
-
var $$
|
|
3197
|
-
var global$
|
|
3196
|
+
var $$i = _export;
|
|
3197
|
+
var global$o = global$U;
|
|
3198
3198
|
var call$8 = functionCall;
|
|
3199
|
-
var uncurryThis$
|
|
3200
|
-
var isCallable$
|
|
3201
|
-
var isObject$
|
|
3199
|
+
var uncurryThis$i = functionUncurryThis;
|
|
3200
|
+
var isCallable$7 = isCallable$l;
|
|
3201
|
+
var isObject$7 = isObject$k;
|
|
3202
3202
|
|
|
3203
3203
|
var DELEGATES_TO_EXEC = function () {
|
|
3204
3204
|
var execCalled = false;
|
|
@@ -3210,17 +3210,17 @@ var DELEGATES_TO_EXEC = function () {
|
|
|
3210
3210
|
return re.test('abc') === true && execCalled;
|
|
3211
3211
|
}();
|
|
3212
3212
|
|
|
3213
|
-
var Error$1 = global$
|
|
3214
|
-
var un$Test = uncurryThis$
|
|
3213
|
+
var Error$1 = global$o.Error;
|
|
3214
|
+
var un$Test = uncurryThis$i(/./.test);
|
|
3215
3215
|
|
|
3216
3216
|
// `RegExp.prototype.test` method
|
|
3217
3217
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
3218
|
-
$$
|
|
3218
|
+
$$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
3219
3219
|
test: function (str) {
|
|
3220
3220
|
var exec = this.exec;
|
|
3221
|
-
if (!isCallable$
|
|
3221
|
+
if (!isCallable$7(exec)) return un$Test(this, str);
|
|
3222
3222
|
var result = call$8(exec, this, str);
|
|
3223
|
-
if (result !== null && !isObject$
|
|
3223
|
+
if (result !== null && !isObject$7(result)) {
|
|
3224
3224
|
throw new Error$1('RegExp exec method returned something other than an Object or null');
|
|
3225
3225
|
}
|
|
3226
3226
|
return !!result;
|
|
@@ -3231,12 +3231,12 @@ $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
|
3231
3231
|
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3232
3232
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
3233
3233
|
|
|
3234
|
-
var uncurryThis$
|
|
3234
|
+
var uncurryThis$h = functionUncurryThis;
|
|
3235
3235
|
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
3236
3236
|
var toString$5 = toString$9;
|
|
3237
3237
|
var whitespaces$2 = whitespaces$3;
|
|
3238
3238
|
|
|
3239
|
-
var replace$5 = uncurryThis$
|
|
3239
|
+
var replace$5 = uncurryThis$h(''.replace);
|
|
3240
3240
|
var whitespace = '[' + whitespaces$2 + ']';
|
|
3241
3241
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
3242
3242
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -3263,21 +3263,21 @@ var stringTrim = {
|
|
|
3263
3263
|
trim: createMethod$3(3)
|
|
3264
3264
|
};
|
|
3265
3265
|
|
|
3266
|
-
var global$
|
|
3267
|
-
var fails$
|
|
3268
|
-
var uncurryThis$
|
|
3266
|
+
var global$n = global$U;
|
|
3267
|
+
var fails$c = fails$x;
|
|
3268
|
+
var uncurryThis$g = functionUncurryThis;
|
|
3269
3269
|
var toString$4 = toString$9;
|
|
3270
3270
|
var trim$2 = stringTrim.trim;
|
|
3271
3271
|
var whitespaces$1 = whitespaces$3;
|
|
3272
3272
|
|
|
3273
|
-
var $parseInt$1 = global$
|
|
3274
|
-
var Symbol$1 = global$
|
|
3273
|
+
var $parseInt$1 = global$n.parseInt;
|
|
3274
|
+
var Symbol$1 = global$n.Symbol;
|
|
3275
3275
|
var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
|
|
3276
3276
|
var hex = /^[+-]?0x/i;
|
|
3277
|
-
var exec$3 = uncurryThis$
|
|
3277
|
+
var exec$3 = uncurryThis$g(hex.exec);
|
|
3278
3278
|
var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
3279
3279
|
// MS Edge 18- broken with boxed symbols
|
|
3280
|
-
|| (ITERATOR$8 && !fails$
|
|
3280
|
+
|| (ITERATOR$8 && !fails$c(function () { $parseInt$1(Object(ITERATOR$8)); }));
|
|
3281
3281
|
|
|
3282
3282
|
// `parseInt` method
|
|
3283
3283
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
@@ -3286,32 +3286,32 @@ var numberParseInt = FORCED$3 ? function parseInt(string, radix) {
|
|
|
3286
3286
|
return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
|
|
3287
3287
|
} : $parseInt$1;
|
|
3288
3288
|
|
|
3289
|
-
var $$
|
|
3289
|
+
var $$h = _export;
|
|
3290
3290
|
var $parseInt = numberParseInt;
|
|
3291
3291
|
|
|
3292
3292
|
// `parseInt` method
|
|
3293
3293
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
3294
|
-
$$
|
|
3294
|
+
$$h({ global: true, forced: parseInt != $parseInt }, {
|
|
3295
3295
|
parseInt: $parseInt
|
|
3296
3296
|
});
|
|
3297
3297
|
|
|
3298
|
-
var uncurryThis$
|
|
3298
|
+
var uncurryThis$f = functionUncurryThis;
|
|
3299
3299
|
|
|
3300
3300
|
// `thisNumberValue` abstract operation
|
|
3301
3301
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
3302
|
-
var thisNumberValue$1 = uncurryThis$
|
|
3302
|
+
var thisNumberValue$1 = uncurryThis$f(1.0.valueOf);
|
|
3303
3303
|
|
|
3304
3304
|
var DESCRIPTORS$6 = descriptors$1;
|
|
3305
|
-
var global$
|
|
3306
|
-
var uncurryThis$
|
|
3307
|
-
var isForced$
|
|
3308
|
-
var redefine$
|
|
3309
|
-
var hasOwn$
|
|
3310
|
-
var inheritIfRequired = inheritIfRequired$
|
|
3305
|
+
var global$m = global$U;
|
|
3306
|
+
var uncurryThis$e = functionUncurryThis;
|
|
3307
|
+
var isForced$2 = isForced_1;
|
|
3308
|
+
var redefine$8 = redefine$b.exports;
|
|
3309
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
3310
|
+
var inheritIfRequired$1 = inheritIfRequired$3;
|
|
3311
3311
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
3312
3312
|
var isSymbol = isSymbol$3;
|
|
3313
3313
|
var toPrimitive = toPrimitive$2;
|
|
3314
|
-
var fails$
|
|
3314
|
+
var fails$b = fails$x;
|
|
3315
3315
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
3316
3316
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
3317
3317
|
var defineProperty$4 = objectDefineProperty.f;
|
|
@@ -3319,11 +3319,11 @@ var thisNumberValue = thisNumberValue$1;
|
|
|
3319
3319
|
var trim$1 = stringTrim.trim;
|
|
3320
3320
|
|
|
3321
3321
|
var NUMBER = 'Number';
|
|
3322
|
-
var NativeNumber = global$
|
|
3322
|
+
var NativeNumber = global$m[NUMBER];
|
|
3323
3323
|
var NumberPrototype = NativeNumber.prototype;
|
|
3324
|
-
var TypeError$a = global$
|
|
3325
|
-
var arraySlice$4 = uncurryThis$
|
|
3326
|
-
var charCodeAt$3 = uncurryThis$
|
|
3324
|
+
var TypeError$a = global$m.TypeError;
|
|
3325
|
+
var arraySlice$4 = uncurryThis$e(''.slice);
|
|
3326
|
+
var charCodeAt$3 = uncurryThis$e(''.charCodeAt);
|
|
3327
3327
|
|
|
3328
3328
|
// `ToNumeric` abstract operation
|
|
3329
3329
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
@@ -3364,13 +3364,13 @@ var toNumber = function (argument) {
|
|
|
3364
3364
|
|
|
3365
3365
|
// `Number` constructor
|
|
3366
3366
|
// https://tc39.es/ecma262/#sec-number-constructor
|
|
3367
|
-
if (isForced$
|
|
3367
|
+
if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
3368
3368
|
var NumberWrapper = function Number(value) {
|
|
3369
3369
|
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
3370
3370
|
var dummy = this;
|
|
3371
3371
|
// check on 1..constructor(foo) case
|
|
3372
|
-
return isPrototypeOf$3(NumberPrototype, dummy) && fails$
|
|
3373
|
-
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
3372
|
+
return isPrototypeOf$3(NumberPrototype, dummy) && fails$b(function () { thisNumberValue(dummy); })
|
|
3373
|
+
? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n;
|
|
3374
3374
|
};
|
|
3375
3375
|
for (var keys = DESCRIPTORS$6 ? getOwnPropertyNames(NativeNumber) : (
|
|
3376
3376
|
// ES3:
|
|
@@ -3380,13 +3380,13 @@ if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNu
|
|
|
3380
3380
|
// ESNext
|
|
3381
3381
|
'fromString,range'
|
|
3382
3382
|
).split(','), j = 0, key; keys.length > j; j++) {
|
|
3383
|
-
if (hasOwn$
|
|
3383
|
+
if (hasOwn$6(NativeNumber, key = keys[j]) && !hasOwn$6(NumberWrapper, key)) {
|
|
3384
3384
|
defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
NumberWrapper.prototype = NumberPrototype;
|
|
3388
3388
|
NumberPrototype.constructor = NumberWrapper;
|
|
3389
|
-
redefine$
|
|
3389
|
+
redefine$8(global$m, NUMBER, NumberWrapper);
|
|
3390
3390
|
}
|
|
3391
3391
|
|
|
3392
3392
|
function isPublicKey(value) {
|
|
@@ -3542,7 +3542,7 @@ function ValidateTransactionParameters(data) {
|
|
|
3542
3542
|
return errors;
|
|
3543
3543
|
}
|
|
3544
3544
|
|
|
3545
|
-
var $$
|
|
3545
|
+
var $$g = _export;
|
|
3546
3546
|
var $map = arrayIteration.map;
|
|
3547
3547
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
|
|
3548
3548
|
|
|
@@ -3551,7 +3551,7 @@ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('map');
|
|
|
3551
3551
|
// `Array.prototype.map` method
|
|
3552
3552
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3553
3553
|
// with adding support of @@species
|
|
3554
|
-
$$
|
|
3554
|
+
$$g({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
3555
3555
|
map: function map(callbackfn /* , thisArg */) {
|
|
3556
3556
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3557
3557
|
}
|
|
@@ -3618,13 +3618,13 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
|
|
|
3618
3618
|
|
|
3619
3619
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3620
3620
|
|
|
3621
|
-
var $$
|
|
3622
|
-
var uncurryThis$
|
|
3621
|
+
var $$f = _export;
|
|
3622
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3623
3623
|
var aCallable$4 = aCallable$7;
|
|
3624
3624
|
var toObject$4 = toObject$9;
|
|
3625
3625
|
var lengthOfArrayLike$3 = lengthOfArrayLike$8;
|
|
3626
3626
|
var toString$3 = toString$9;
|
|
3627
|
-
var fails$
|
|
3627
|
+
var fails$a = fails$x;
|
|
3628
3628
|
var internalSort = arraySort$1;
|
|
3629
3629
|
var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
|
|
3630
3630
|
var FF = engineFfVersion;
|
|
@@ -3633,21 +3633,21 @@ var V8 = engineV8Version;
|
|
|
3633
3633
|
var WEBKIT = engineWebkitVersion;
|
|
3634
3634
|
|
|
3635
3635
|
var test = [];
|
|
3636
|
-
var un$Sort = uncurryThis$
|
|
3637
|
-
var push$5 = uncurryThis$
|
|
3636
|
+
var un$Sort = uncurryThis$d(test.sort);
|
|
3637
|
+
var push$5 = uncurryThis$d(test.push);
|
|
3638
3638
|
|
|
3639
3639
|
// IE8-
|
|
3640
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
3640
|
+
var FAILS_ON_UNDEFINED = fails$a(function () {
|
|
3641
3641
|
test.sort(undefined);
|
|
3642
3642
|
});
|
|
3643
3643
|
// V8 bug
|
|
3644
|
-
var FAILS_ON_NULL = fails$
|
|
3644
|
+
var FAILS_ON_NULL = fails$a(function () {
|
|
3645
3645
|
test.sort(null);
|
|
3646
3646
|
});
|
|
3647
3647
|
// Old WebKit
|
|
3648
3648
|
var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort');
|
|
3649
3649
|
|
|
3650
|
-
var STABLE_SORT = !fails$
|
|
3650
|
+
var STABLE_SORT = !fails$a(function () {
|
|
3651
3651
|
// feature detection can be too slow, so check engines versions
|
|
3652
3652
|
if (V8) return V8 < 70;
|
|
3653
3653
|
if (FF && FF > 3) return;
|
|
@@ -3695,7 +3695,7 @@ var getSortCompare = function (comparefn) {
|
|
|
3695
3695
|
|
|
3696
3696
|
// `Array.prototype.sort` method
|
|
3697
3697
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3698
|
-
$$
|
|
3698
|
+
$$f({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
3699
3699
|
sort: function sort(comparefn) {
|
|
3700
3700
|
if (comparefn !== undefined) aCallable$4(comparefn);
|
|
3701
3701
|
|
|
@@ -3723,7 +3723,7 @@ $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
});
|
|
3725
3725
|
|
|
3726
|
-
var $$
|
|
3726
|
+
var $$e = _export;
|
|
3727
3727
|
var $filter = arrayIteration.filter;
|
|
3728
3728
|
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
|
|
3729
3729
|
|
|
@@ -3732,26 +3732,26 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
|
3732
3732
|
// `Array.prototype.filter` method
|
|
3733
3733
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
3734
3734
|
// with adding support of @@species
|
|
3735
|
-
$$
|
|
3735
|
+
$$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
3736
3736
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
3737
3737
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3738
3738
|
}
|
|
3739
3739
|
});
|
|
3740
3740
|
|
|
3741
|
-
var $$
|
|
3742
|
-
var uncurryThis$
|
|
3741
|
+
var $$d = _export;
|
|
3742
|
+
var uncurryThis$c = functionUncurryThis;
|
|
3743
3743
|
var IndexedObject$2 = indexedObject;
|
|
3744
3744
|
var toIndexedObject$2 = toIndexedObject$8;
|
|
3745
3745
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
|
|
3746
3746
|
|
|
3747
|
-
var un$Join = uncurryThis$
|
|
3747
|
+
var un$Join = uncurryThis$c([].join);
|
|
3748
3748
|
|
|
3749
3749
|
var ES3_STRINGS = IndexedObject$2 != Object;
|
|
3750
3750
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
|
|
3751
3751
|
|
|
3752
3752
|
// `Array.prototype.join` method
|
|
3753
3753
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
3754
|
-
$$
|
|
3754
|
+
$$d({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
3755
3755
|
join: function join(separator) {
|
|
3756
3756
|
return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
|
|
3757
3757
|
}
|
|
@@ -5174,26 +5174,26 @@ var fingerprint2 = {exports: {}};
|
|
|
5174
5174
|
|
|
5175
5175
|
var Fingerprint2 = fingerprint2.exports;
|
|
5176
5176
|
|
|
5177
|
-
var global$
|
|
5177
|
+
var global$l = global$U;
|
|
5178
5178
|
|
|
5179
|
-
var nativePromiseConstructor = global$
|
|
5179
|
+
var nativePromiseConstructor = global$l.Promise;
|
|
5180
5180
|
|
|
5181
|
-
var redefine$
|
|
5181
|
+
var redefine$7 = redefine$b.exports;
|
|
5182
5182
|
|
|
5183
|
-
var redefineAll$
|
|
5184
|
-
for (var key in src) redefine$
|
|
5183
|
+
var redefineAll$3 = function (target, src, options) {
|
|
5184
|
+
for (var key in src) redefine$7(target, key, src[key], options);
|
|
5185
5185
|
return target;
|
|
5186
5186
|
};
|
|
5187
5187
|
|
|
5188
5188
|
var defineProperty$3 = objectDefineProperty.f;
|
|
5189
|
-
var hasOwn$
|
|
5189
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
5190
5190
|
var wellKnownSymbol$c = wellKnownSymbol$j;
|
|
5191
5191
|
|
|
5192
5192
|
var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
|
|
5193
5193
|
|
|
5194
|
-
var setToStringTag$
|
|
5194
|
+
var setToStringTag$6 = function (target, TAG, STATIC) {
|
|
5195
5195
|
if (target && !STATIC) target = target.prototype;
|
|
5196
|
-
if (target && !hasOwn$
|
|
5196
|
+
if (target && !hasOwn$5(target, TO_STRING_TAG$1)) {
|
|
5197
5197
|
defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
5198
5198
|
}
|
|
5199
5199
|
};
|
|
@@ -5217,12 +5217,12 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
};
|
|
5219
5219
|
|
|
5220
|
-
var global$
|
|
5220
|
+
var global$k = global$U;
|
|
5221
5221
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
5222
5222
|
|
|
5223
|
-
var TypeError$9 = global$
|
|
5223
|
+
var TypeError$9 = global$k.TypeError;
|
|
5224
5224
|
|
|
5225
|
-
var anInstance$
|
|
5225
|
+
var anInstance$5 = function (it, Prototype) {
|
|
5226
5226
|
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
5227
5227
|
throw TypeError$9('Incorrect invocation');
|
|
5228
5228
|
};
|
|
@@ -5253,28 +5253,28 @@ var getIteratorMethod$4 = function (it) {
|
|
|
5253
5253
|
|| Iterators$3[classof$2(it)];
|
|
5254
5254
|
};
|
|
5255
5255
|
|
|
5256
|
-
var global$
|
|
5256
|
+
var global$j = global$U;
|
|
5257
5257
|
var call$7 = functionCall;
|
|
5258
5258
|
var aCallable$3 = aCallable$7;
|
|
5259
|
-
var anObject$
|
|
5259
|
+
var anObject$8 = anObject$f;
|
|
5260
5260
|
var tryToString$2 = tryToString$4;
|
|
5261
5261
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
5262
5262
|
|
|
5263
|
-
var TypeError$8 = global$
|
|
5263
|
+
var TypeError$8 = global$j.TypeError;
|
|
5264
5264
|
|
|
5265
5265
|
var getIterator$3 = function (argument, usingIterator) {
|
|
5266
5266
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
5267
|
-
if (aCallable$3(iteratorMethod)) return anObject$
|
|
5267
|
+
if (aCallable$3(iteratorMethod)) return anObject$8(call$7(iteratorMethod, argument));
|
|
5268
5268
|
throw TypeError$8(tryToString$2(argument) + ' is not iterable');
|
|
5269
5269
|
};
|
|
5270
5270
|
|
|
5271
5271
|
var call$6 = functionCall;
|
|
5272
|
-
var anObject$
|
|
5272
|
+
var anObject$7 = anObject$f;
|
|
5273
5273
|
var getMethod = getMethod$3;
|
|
5274
5274
|
|
|
5275
5275
|
var iteratorClose$2 = function (iterator, kind, value) {
|
|
5276
5276
|
var innerResult, innerError;
|
|
5277
|
-
anObject$
|
|
5277
|
+
anObject$7(iterator);
|
|
5278
5278
|
try {
|
|
5279
5279
|
innerResult = getMethod(iterator, 'return');
|
|
5280
5280
|
if (!innerResult) {
|
|
@@ -5288,14 +5288,14 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
5288
5288
|
}
|
|
5289
5289
|
if (kind === 'throw') throw value;
|
|
5290
5290
|
if (innerError) throw innerResult;
|
|
5291
|
-
anObject$
|
|
5291
|
+
anObject$7(innerResult);
|
|
5292
5292
|
return value;
|
|
5293
5293
|
};
|
|
5294
5294
|
|
|
5295
|
-
var global$
|
|
5295
|
+
var global$i = global$U;
|
|
5296
5296
|
var bind$9 = functionBindContext;
|
|
5297
5297
|
var call$5 = functionCall;
|
|
5298
|
-
var anObject$
|
|
5298
|
+
var anObject$6 = anObject$f;
|
|
5299
5299
|
var tryToString$1 = tryToString$4;
|
|
5300
5300
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
5301
5301
|
var lengthOfArrayLike$2 = lengthOfArrayLike$8;
|
|
@@ -5304,7 +5304,7 @@ var getIterator$2 = getIterator$3;
|
|
|
5304
5304
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
5305
5305
|
var iteratorClose$1 = iteratorClose$2;
|
|
5306
5306
|
|
|
5307
|
-
var TypeError$7 = global$
|
|
5307
|
+
var TypeError$7 = global$i.TypeError;
|
|
5308
5308
|
|
|
5309
5309
|
var Result = function (stopped, result) {
|
|
5310
5310
|
this.stopped = stopped;
|
|
@@ -5313,7 +5313,7 @@ var Result = function (stopped, result) {
|
|
|
5313
5313
|
|
|
5314
5314
|
var ResultPrototype = Result.prototype;
|
|
5315
5315
|
|
|
5316
|
-
var iterate$
|
|
5316
|
+
var iterate$3 = function (iterable, unboundFunction, options) {
|
|
5317
5317
|
var that = options && options.that;
|
|
5318
5318
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
5319
5319
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
@@ -5328,7 +5328,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
5328
5328
|
|
|
5329
5329
|
var callFn = function (value) {
|
|
5330
5330
|
if (AS_ENTRIES) {
|
|
5331
|
-
anObject$
|
|
5331
|
+
anObject$6(value);
|
|
5332
5332
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
5333
5333
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
5334
5334
|
};
|
|
@@ -5381,7 +5381,7 @@ try {
|
|
|
5381
5381
|
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
5382
5382
|
} catch (error) { /* empty */ }
|
|
5383
5383
|
|
|
5384
|
-
var checkCorrectnessOfIteration$
|
|
5384
|
+
var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
|
|
5385
5385
|
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
5386
5386
|
var ITERATION_SUPPORT = false;
|
|
5387
5387
|
try {
|
|
@@ -5398,11 +5398,11 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
5398
5398
|
return ITERATION_SUPPORT;
|
|
5399
5399
|
};
|
|
5400
5400
|
|
|
5401
|
-
var global$
|
|
5401
|
+
var global$h = global$U;
|
|
5402
5402
|
var isConstructor$1 = isConstructor$3;
|
|
5403
5403
|
var tryToString = tryToString$4;
|
|
5404
5404
|
|
|
5405
|
-
var TypeError$6 = global$
|
|
5405
|
+
var TypeError$6 = global$h.TypeError;
|
|
5406
5406
|
|
|
5407
5407
|
// `Assert: IsConstructor(argument) is true`
|
|
5408
5408
|
var aConstructor$1 = function (argument) {
|
|
@@ -5410,7 +5410,7 @@ var aConstructor$1 = function (argument) {
|
|
|
5410
5410
|
throw TypeError$6(tryToString(argument) + ' is not a constructor');
|
|
5411
5411
|
};
|
|
5412
5412
|
|
|
5413
|
-
var anObject$
|
|
5413
|
+
var anObject$5 = anObject$f;
|
|
5414
5414
|
var aConstructor = aConstructor$1;
|
|
5415
5415
|
var wellKnownSymbol$7 = wellKnownSymbol$j;
|
|
5416
5416
|
|
|
@@ -5419,18 +5419,18 @@ var SPECIES$1 = wellKnownSymbol$7('species');
|
|
|
5419
5419
|
// `SpeciesConstructor` abstract operation
|
|
5420
5420
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
5421
5421
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
5422
|
-
var C = anObject$
|
|
5422
|
+
var C = anObject$5(O).constructor;
|
|
5423
5423
|
var S;
|
|
5424
|
-
return C === undefined || (S = anObject$
|
|
5424
|
+
return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
|
|
5425
5425
|
};
|
|
5426
5426
|
|
|
5427
|
-
var uncurryThis$
|
|
5427
|
+
var uncurryThis$b = functionUncurryThis;
|
|
5428
5428
|
|
|
5429
|
-
var arraySlice$2 = uncurryThis$
|
|
5429
|
+
var arraySlice$2 = uncurryThis$b([].slice);
|
|
5430
5430
|
|
|
5431
|
-
var global$
|
|
5431
|
+
var global$g = global$U;
|
|
5432
5432
|
|
|
5433
|
-
var TypeError$5 = global$
|
|
5433
|
+
var TypeError$5 = global$g.TypeError;
|
|
5434
5434
|
|
|
5435
5435
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
5436
5436
|
if (passed < required) throw TypeError$5('Not enough arguments');
|
|
@@ -5442,16 +5442,16 @@ var userAgent$2 = engineUserAgent;
|
|
|
5442
5442
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
5443
5443
|
|
|
5444
5444
|
var classof$1 = classofRaw$1;
|
|
5445
|
-
var global$
|
|
5445
|
+
var global$f = global$U;
|
|
5446
5446
|
|
|
5447
|
-
var engineIsNode = classof$1(global$
|
|
5447
|
+
var engineIsNode = classof$1(global$f.process) == 'process';
|
|
5448
5448
|
|
|
5449
|
-
var global$
|
|
5449
|
+
var global$e = global$U;
|
|
5450
5450
|
var apply$1 = functionApply;
|
|
5451
5451
|
var bind$8 = functionBindContext;
|
|
5452
|
-
var isCallable$
|
|
5453
|
-
var hasOwn$
|
|
5454
|
-
var fails$
|
|
5452
|
+
var isCallable$6 = isCallable$l;
|
|
5453
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
5454
|
+
var fails$9 = fails$x;
|
|
5455
5455
|
var html = html$2;
|
|
5456
5456
|
var arraySlice$1 = arraySlice$2;
|
|
5457
5457
|
var createElement = documentCreateElement$2;
|
|
@@ -5459,13 +5459,13 @@ var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
|
5459
5459
|
var IS_IOS$1 = engineIsIos;
|
|
5460
5460
|
var IS_NODE$3 = engineIsNode;
|
|
5461
5461
|
|
|
5462
|
-
var set = global$
|
|
5463
|
-
var clear = global$
|
|
5464
|
-
var process$3 = global$
|
|
5465
|
-
var Dispatch = global$
|
|
5466
|
-
var Function$1 = global$
|
|
5467
|
-
var MessageChannel = global$
|
|
5468
|
-
var String$1 = global$
|
|
5462
|
+
var set = global$e.setImmediate;
|
|
5463
|
+
var clear = global$e.clearImmediate;
|
|
5464
|
+
var process$3 = global$e.process;
|
|
5465
|
+
var Dispatch = global$e.Dispatch;
|
|
5466
|
+
var Function$1 = global$e.Function;
|
|
5467
|
+
var MessageChannel = global$e.MessageChannel;
|
|
5468
|
+
var String$1 = global$e.String;
|
|
5469
5469
|
var counter = 0;
|
|
5470
5470
|
var queue$1 = {};
|
|
5471
5471
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -5473,11 +5473,11 @@ var location, defer, channel, port;
|
|
|
5473
5473
|
|
|
5474
5474
|
try {
|
|
5475
5475
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
5476
|
-
location = global$
|
|
5476
|
+
location = global$e.location;
|
|
5477
5477
|
} catch (error) { /* empty */ }
|
|
5478
5478
|
|
|
5479
5479
|
var run = function (id) {
|
|
5480
|
-
if (hasOwn$
|
|
5480
|
+
if (hasOwn$4(queue$1, id)) {
|
|
5481
5481
|
var fn = queue$1[id];
|
|
5482
5482
|
delete queue$1[id];
|
|
5483
5483
|
fn();
|
|
@@ -5496,14 +5496,14 @@ var listener = function (event) {
|
|
|
5496
5496
|
|
|
5497
5497
|
var post = function (id) {
|
|
5498
5498
|
// old engines have not location.origin
|
|
5499
|
-
global$
|
|
5499
|
+
global$e.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
5500
5500
|
};
|
|
5501
5501
|
|
|
5502
5502
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5503
5503
|
if (!set || !clear) {
|
|
5504
5504
|
set = function setImmediate(handler) {
|
|
5505
5505
|
validateArgumentsLength$2(arguments.length, 1);
|
|
5506
|
-
var fn = isCallable$
|
|
5506
|
+
var fn = isCallable$6(handler) ? handler : Function$1(handler);
|
|
5507
5507
|
var args = arraySlice$1(arguments, 1);
|
|
5508
5508
|
queue$1[++counter] = function () {
|
|
5509
5509
|
apply$1(fn, undefined, args);
|
|
@@ -5534,14 +5534,14 @@ if (!set || !clear) {
|
|
|
5534
5534
|
// Browsers with postMessage, skip WebWorkers
|
|
5535
5535
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5536
5536
|
} else if (
|
|
5537
|
-
global$
|
|
5538
|
-
isCallable$
|
|
5539
|
-
!global$
|
|
5537
|
+
global$e.addEventListener &&
|
|
5538
|
+
isCallable$6(global$e.postMessage) &&
|
|
5539
|
+
!global$e.importScripts &&
|
|
5540
5540
|
location && location.protocol !== 'file:' &&
|
|
5541
|
-
!fails$
|
|
5541
|
+
!fails$9(post)
|
|
5542
5542
|
) {
|
|
5543
5543
|
defer = post;
|
|
5544
|
-
global$
|
|
5544
|
+
global$e.addEventListener('message', listener, false);
|
|
5545
5545
|
// IE8-
|
|
5546
5546
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5547
5547
|
defer = function (id) {
|
|
@@ -5564,15 +5564,15 @@ var task$1 = {
|
|
|
5564
5564
|
};
|
|
5565
5565
|
|
|
5566
5566
|
var userAgent$1 = engineUserAgent;
|
|
5567
|
-
var global$
|
|
5567
|
+
var global$d = global$U;
|
|
5568
5568
|
|
|
5569
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
5569
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$d.Pebble !== undefined;
|
|
5570
5570
|
|
|
5571
5571
|
var userAgent = engineUserAgent;
|
|
5572
5572
|
|
|
5573
5573
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
5574
5574
|
|
|
5575
|
-
var global$
|
|
5575
|
+
var global$c = global$U;
|
|
5576
5576
|
var bind$7 = functionBindContext;
|
|
5577
5577
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5578
5578
|
var macrotask = task$1.set;
|
|
@@ -5581,12 +5581,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
5581
5581
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
5582
5582
|
var IS_NODE$2 = engineIsNode;
|
|
5583
5583
|
|
|
5584
|
-
var MutationObserver = global$
|
|
5585
|
-
var document$2 = global$
|
|
5586
|
-
var process$2 = global$
|
|
5587
|
-
var Promise$1 = global$
|
|
5584
|
+
var MutationObserver = global$c.MutationObserver || global$c.WebKitMutationObserver;
|
|
5585
|
+
var document$2 = global$c.document;
|
|
5586
|
+
var process$2 = global$c.process;
|
|
5587
|
+
var Promise$1 = global$c.Promise;
|
|
5588
5588
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
5589
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
5589
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$c, 'queueMicrotask');
|
|
5590
5590
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
5591
5591
|
|
|
5592
5592
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -5642,7 +5642,7 @@ if (!queueMicrotask) {
|
|
|
5642
5642
|
// - setTimeout
|
|
5643
5643
|
} else {
|
|
5644
5644
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
5645
|
-
macrotask = bind$7(macrotask, global$
|
|
5645
|
+
macrotask = bind$7(macrotask, global$c);
|
|
5646
5646
|
notify$1 = function () {
|
|
5647
5647
|
macrotask(flush);
|
|
5648
5648
|
};
|
|
@@ -5679,23 +5679,23 @@ newPromiseCapability$2.f = function (C) {
|
|
|
5679
5679
|
return new PromiseCapability(C);
|
|
5680
5680
|
};
|
|
5681
5681
|
|
|
5682
|
-
var anObject$
|
|
5683
|
-
var isObject$
|
|
5682
|
+
var anObject$4 = anObject$f;
|
|
5683
|
+
var isObject$6 = isObject$k;
|
|
5684
5684
|
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
5685
5685
|
|
|
5686
5686
|
var promiseResolve$1 = function (C, x) {
|
|
5687
|
-
anObject$
|
|
5688
|
-
if (isObject$
|
|
5687
|
+
anObject$4(C);
|
|
5688
|
+
if (isObject$6(x) && x.constructor === C) return x;
|
|
5689
5689
|
var promiseCapability = newPromiseCapability$1.f(C);
|
|
5690
5690
|
var resolve = promiseCapability.resolve;
|
|
5691
5691
|
resolve(x);
|
|
5692
5692
|
return promiseCapability.promise;
|
|
5693
5693
|
};
|
|
5694
5694
|
|
|
5695
|
-
var global$
|
|
5695
|
+
var global$b = global$U;
|
|
5696
5696
|
|
|
5697
5697
|
var hostReportErrors$1 = function (a, b) {
|
|
5698
|
-
var console = global$
|
|
5698
|
+
var console = global$b.console;
|
|
5699
5699
|
if (console && console.error) {
|
|
5700
5700
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
5701
5701
|
}
|
|
@@ -5735,23 +5735,23 @@ var queue = Queue$1;
|
|
|
5735
5735
|
|
|
5736
5736
|
var engineIsBrowser = typeof window == 'object';
|
|
5737
5737
|
|
|
5738
|
-
var $$
|
|
5739
|
-
var global$
|
|
5738
|
+
var $$c = _export;
|
|
5739
|
+
var global$a = global$U;
|
|
5740
5740
|
var getBuiltIn$2 = getBuiltIn$a;
|
|
5741
5741
|
var call$4 = functionCall;
|
|
5742
5742
|
var NativePromise = nativePromiseConstructor;
|
|
5743
|
-
var redefine$
|
|
5744
|
-
var redefineAll$
|
|
5743
|
+
var redefine$6 = redefine$b.exports;
|
|
5744
|
+
var redefineAll$2 = redefineAll$3;
|
|
5745
5745
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
5746
|
-
var setToStringTag$
|
|
5746
|
+
var setToStringTag$5 = setToStringTag$6;
|
|
5747
5747
|
var setSpecies = setSpecies$1;
|
|
5748
5748
|
var aCallable$1 = aCallable$7;
|
|
5749
|
-
var isCallable$
|
|
5750
|
-
var isObject$
|
|
5751
|
-
var anInstance$
|
|
5749
|
+
var isCallable$5 = isCallable$l;
|
|
5750
|
+
var isObject$5 = isObject$k;
|
|
5751
|
+
var anInstance$4 = anInstance$5;
|
|
5752
5752
|
var inspectSource = inspectSource$4;
|
|
5753
|
-
var iterate = iterate$
|
|
5754
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$
|
|
5753
|
+
var iterate$2 = iterate$3;
|
|
5754
|
+
var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
|
|
5755
5755
|
var speciesConstructor = speciesConstructor$1;
|
|
5756
5756
|
var task = task$1.set;
|
|
5757
5757
|
var microtask = microtask$1;
|
|
@@ -5760,8 +5760,8 @@ var hostReportErrors = hostReportErrors$1;
|
|
|
5760
5760
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
5761
5761
|
var perform = perform$1;
|
|
5762
5762
|
var Queue = queue;
|
|
5763
|
-
var InternalStateModule$
|
|
5764
|
-
var isForced = isForced_1;
|
|
5763
|
+
var InternalStateModule$5 = internalState;
|
|
5764
|
+
var isForced$1 = isForced_1;
|
|
5765
5765
|
var wellKnownSymbol$6 = wellKnownSymbol$j;
|
|
5766
5766
|
var IS_BROWSER = engineIsBrowser;
|
|
5767
5767
|
var IS_NODE$1 = engineIsNode;
|
|
@@ -5770,20 +5770,20 @@ var V8_VERSION = engineV8Version;
|
|
|
5770
5770
|
var SPECIES = wellKnownSymbol$6('species');
|
|
5771
5771
|
var PROMISE = 'Promise';
|
|
5772
5772
|
|
|
5773
|
-
var getInternalState$2 = InternalStateModule$
|
|
5774
|
-
var setInternalState$
|
|
5775
|
-
var getInternalPromiseState = InternalStateModule$
|
|
5773
|
+
var getInternalState$2 = InternalStateModule$5.getterFor(PROMISE);
|
|
5774
|
+
var setInternalState$5 = InternalStateModule$5.set;
|
|
5775
|
+
var getInternalPromiseState = InternalStateModule$5.getterFor(PROMISE);
|
|
5776
5776
|
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
5777
5777
|
var PromiseConstructor = NativePromise;
|
|
5778
5778
|
var PromisePrototype = NativePromisePrototype;
|
|
5779
|
-
var TypeError$4 = global$
|
|
5780
|
-
var document$1 = global$
|
|
5781
|
-
var process$1 = global$
|
|
5779
|
+
var TypeError$4 = global$a.TypeError;
|
|
5780
|
+
var document$1 = global$a.document;
|
|
5781
|
+
var process$1 = global$a.process;
|
|
5782
5782
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5783
5783
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
5784
5784
|
|
|
5785
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
5786
|
-
var NATIVE_REJECTION_EVENT = isCallable$
|
|
5785
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$a.dispatchEvent);
|
|
5786
|
+
var NATIVE_REJECTION_EVENT = isCallable$5(global$a.PromiseRejectionEvent);
|
|
5787
5787
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5788
5788
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5789
5789
|
var PENDING = 0;
|
|
@@ -5795,7 +5795,7 @@ var SUBCLASSING = false;
|
|
|
5795
5795
|
|
|
5796
5796
|
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
5797
5797
|
|
|
5798
|
-
var FORCED$1 = isForced(PROMISE, function () {
|
|
5798
|
+
var FORCED$1 = isForced$1(PROMISE, function () {
|
|
5799
5799
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
5800
5800
|
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
5801
5801
|
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
@@ -5819,14 +5819,14 @@ var FORCED$1 = isForced(PROMISE, function () {
|
|
|
5819
5819
|
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
5820
5820
|
});
|
|
5821
5821
|
|
|
5822
|
-
var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
|
|
5822
|
+
var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration$1(function (iterable) {
|
|
5823
5823
|
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
5824
5824
|
});
|
|
5825
5825
|
|
|
5826
5826
|
// helpers
|
|
5827
5827
|
var isThenable = function (it) {
|
|
5828
5828
|
var then;
|
|
5829
|
-
return isObject$
|
|
5829
|
+
return isObject$5(it) && isCallable$5(then = it.then) ? then : false;
|
|
5830
5830
|
};
|
|
5831
5831
|
|
|
5832
5832
|
var callReaction = function (reaction, state) {
|
|
@@ -5885,14 +5885,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
5885
5885
|
event.promise = promise;
|
|
5886
5886
|
event.reason = reason;
|
|
5887
5887
|
event.initEvent(name, false, true);
|
|
5888
|
-
global$
|
|
5888
|
+
global$a.dispatchEvent(event);
|
|
5889
5889
|
} else event = { promise: promise, reason: reason };
|
|
5890
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$
|
|
5890
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$a['on' + name])) handler(event);
|
|
5891
5891
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
5892
5892
|
};
|
|
5893
5893
|
|
|
5894
5894
|
var onUnhandled = function (state) {
|
|
5895
|
-
call$4(task, global$
|
|
5895
|
+
call$4(task, global$a, function () {
|
|
5896
5896
|
var promise = state.facade;
|
|
5897
5897
|
var value = state.value;
|
|
5898
5898
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -5915,7 +5915,7 @@ var isUnhandled = function (state) {
|
|
|
5915
5915
|
};
|
|
5916
5916
|
|
|
5917
5917
|
var onHandleUnhandled = function (state) {
|
|
5918
|
-
call$4(task, global$
|
|
5918
|
+
call$4(task, global$a, function () {
|
|
5919
5919
|
var promise = state.facade;
|
|
5920
5920
|
if (IS_NODE$1) {
|
|
5921
5921
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -5971,7 +5971,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
5971
5971
|
if (FORCED$1) {
|
|
5972
5972
|
// 25.4.3.1 Promise(executor)
|
|
5973
5973
|
PromiseConstructor = function Promise(executor) {
|
|
5974
|
-
anInstance$
|
|
5974
|
+
anInstance$4(this, PromisePrototype);
|
|
5975
5975
|
aCallable$1(executor);
|
|
5976
5976
|
call$4(Internal, this);
|
|
5977
5977
|
var state = getInternalState$2(this);
|
|
@@ -5984,7 +5984,7 @@ if (FORCED$1) {
|
|
|
5984
5984
|
PromisePrototype = PromiseConstructor.prototype;
|
|
5985
5985
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5986
5986
|
Internal = function Promise(executor) {
|
|
5987
|
-
setInternalState$
|
|
5987
|
+
setInternalState$5(this, {
|
|
5988
5988
|
type: PROMISE,
|
|
5989
5989
|
done: false,
|
|
5990
5990
|
notified: false,
|
|
@@ -5995,7 +5995,7 @@ if (FORCED$1) {
|
|
|
5995
5995
|
value: undefined
|
|
5996
5996
|
});
|
|
5997
5997
|
};
|
|
5998
|
-
Internal.prototype = redefineAll$
|
|
5998
|
+
Internal.prototype = redefineAll$2(PromisePrototype, {
|
|
5999
5999
|
// `Promise.prototype.then` method
|
|
6000
6000
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
6001
6001
|
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
@@ -6003,8 +6003,8 @@ if (FORCED$1) {
|
|
|
6003
6003
|
var state = getInternalPromiseState(this);
|
|
6004
6004
|
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
6005
6005
|
state.parent = true;
|
|
6006
|
-
reaction.ok = isCallable$
|
|
6007
|
-
reaction.fail = isCallable$
|
|
6006
|
+
reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
|
|
6007
|
+
reaction.fail = isCallable$5(onRejected) && onRejected;
|
|
6008
6008
|
reaction.domain = IS_NODE$1 ? process$1.domain : undefined;
|
|
6009
6009
|
if (state.state == PENDING) state.reactions.add(reaction);
|
|
6010
6010
|
else microtask(function () {
|
|
@@ -6031,12 +6031,12 @@ if (FORCED$1) {
|
|
|
6031
6031
|
: newGenericPromiseCapability(C);
|
|
6032
6032
|
};
|
|
6033
6033
|
|
|
6034
|
-
if (isCallable$
|
|
6034
|
+
if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
6035
6035
|
nativeThen = NativePromisePrototype.then;
|
|
6036
6036
|
|
|
6037
6037
|
if (!SUBCLASSING) {
|
|
6038
6038
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
6039
|
-
redefine$
|
|
6039
|
+
redefine$6(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
6040
6040
|
var that = this;
|
|
6041
6041
|
return new PromiseConstructor(function (resolve, reject) {
|
|
6042
6042
|
call$4(nativeThen, that, resolve, reject);
|
|
@@ -6045,7 +6045,7 @@ if (FORCED$1) {
|
|
|
6045
6045
|
}, { unsafe: true });
|
|
6046
6046
|
|
|
6047
6047
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
6048
|
-
redefine$
|
|
6048
|
+
redefine$6(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
6049
6049
|
}
|
|
6050
6050
|
|
|
6051
6051
|
// make `.constructor === Promise` work for native promise-based APIs
|
|
@@ -6060,17 +6060,17 @@ if (FORCED$1) {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
}
|
|
6062
6062
|
|
|
6063
|
-
$$
|
|
6063
|
+
$$c({ global: true, wrap: true, forced: FORCED$1 }, {
|
|
6064
6064
|
Promise: PromiseConstructor
|
|
6065
6065
|
});
|
|
6066
6066
|
|
|
6067
|
-
setToStringTag$
|
|
6067
|
+
setToStringTag$5(PromiseConstructor, PROMISE, false);
|
|
6068
6068
|
setSpecies(PROMISE);
|
|
6069
6069
|
|
|
6070
6070
|
PromiseWrapper = getBuiltIn$2(PROMISE);
|
|
6071
6071
|
|
|
6072
6072
|
// statics
|
|
6073
|
-
$$
|
|
6073
|
+
$$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
6074
6074
|
// `Promise.reject` method
|
|
6075
6075
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
6076
6076
|
reject: function reject(r) {
|
|
@@ -6080,7 +6080,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
});
|
|
6082
6082
|
|
|
6083
|
-
$$
|
|
6083
|
+
$$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
6084
6084
|
// `Promise.resolve` method
|
|
6085
6085
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
6086
6086
|
resolve: function resolve(x) {
|
|
@@ -6088,7 +6088,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
|
6088
6088
|
}
|
|
6089
6089
|
});
|
|
6090
6090
|
|
|
6091
|
-
$$
|
|
6091
|
+
$$c({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
6092
6092
|
// `Promise.all` method
|
|
6093
6093
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
6094
6094
|
all: function all(iterable) {
|
|
@@ -6101,7 +6101,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
6101
6101
|
var values = [];
|
|
6102
6102
|
var counter = 0;
|
|
6103
6103
|
var remaining = 1;
|
|
6104
|
-
iterate(iterable, function (promise) {
|
|
6104
|
+
iterate$2(iterable, function (promise) {
|
|
6105
6105
|
var index = counter++;
|
|
6106
6106
|
var alreadyCalled = false;
|
|
6107
6107
|
remaining++;
|
|
@@ -6125,7 +6125,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
6125
6125
|
var reject = capability.reject;
|
|
6126
6126
|
var result = perform(function () {
|
|
6127
6127
|
var $promiseResolve = aCallable$1(C.resolve);
|
|
6128
|
-
iterate(iterable, function (promise) {
|
|
6128
|
+
iterate$2(iterable, function (promise) {
|
|
6129
6129
|
call$4($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
6130
6130
|
});
|
|
6131
6131
|
});
|
|
@@ -6244,9 +6244,9 @@ var getDeviceFingerprint = /*#__PURE__*/function () {
|
|
|
6244
6244
|
}();
|
|
6245
6245
|
|
|
6246
6246
|
var DESCRIPTORS$4 = descriptors$1;
|
|
6247
|
-
var uncurryThis$
|
|
6247
|
+
var uncurryThis$a = functionUncurryThis;
|
|
6248
6248
|
var call$3 = functionCall;
|
|
6249
|
-
var fails$
|
|
6249
|
+
var fails$8 = fails$x;
|
|
6250
6250
|
var objectKeys$1 = objectKeys$3;
|
|
6251
6251
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
6252
6252
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -6257,11 +6257,11 @@ var IndexedObject$1 = indexedObject;
|
|
|
6257
6257
|
var $assign = Object.assign;
|
|
6258
6258
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
6259
6259
|
var defineProperty$2 = Object.defineProperty;
|
|
6260
|
-
var concat = uncurryThis$
|
|
6260
|
+
var concat = uncurryThis$a([].concat);
|
|
6261
6261
|
|
|
6262
6262
|
// `Object.assign` method
|
|
6263
6263
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
6264
|
-
var objectAssign = !$assign || fails$
|
|
6264
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
6265
6265
|
// should have correct order of operations (Edge bug)
|
|
6266
6266
|
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
6267
6267
|
enumerable: true,
|
|
@@ -6300,16 +6300,34 @@ var objectAssign = !$assign || fails$6(function () {
|
|
|
6300
6300
|
} return T;
|
|
6301
6301
|
} : $assign;
|
|
6302
6302
|
|
|
6303
|
-
var $$
|
|
6303
|
+
var $$b = _export;
|
|
6304
6304
|
var assign$2 = objectAssign;
|
|
6305
6305
|
|
|
6306
6306
|
// `Object.assign` method
|
|
6307
6307
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
6308
6308
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
6309
|
-
$$
|
|
6309
|
+
$$b({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
|
|
6310
6310
|
assign: assign$2
|
|
6311
6311
|
});
|
|
6312
6312
|
|
|
6313
|
+
var $$a = _export;
|
|
6314
|
+
var FREEZING = freezing;
|
|
6315
|
+
var fails$7 = fails$x;
|
|
6316
|
+
var isObject$4 = isObject$k;
|
|
6317
|
+
var onFreeze = internalMetadata.exports.onFreeze;
|
|
6318
|
+
|
|
6319
|
+
// eslint-disable-next-line es/no-object-freeze -- safe
|
|
6320
|
+
var $freeze = Object.freeze;
|
|
6321
|
+
var FAILS_ON_PRIMITIVES = fails$7(function () { $freeze(1); });
|
|
6322
|
+
|
|
6323
|
+
// `Object.freeze` method
|
|
6324
|
+
// https://tc39.es/ecma262/#sec-object.freeze
|
|
6325
|
+
$$a({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
|
|
6326
|
+
freeze: function freeze(it) {
|
|
6327
|
+
return $freeze && isObject$4(it) ? $freeze(onFreeze(it)) : it;
|
|
6328
|
+
}
|
|
6329
|
+
});
|
|
6330
|
+
|
|
6313
6331
|
var config = {
|
|
6314
6332
|
cookieTestUrl: 'https://legacy-staging.paystack.co/test-iframe/start.html',
|
|
6315
6333
|
publishableKey: 'uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==',
|
|
@@ -6367,13 +6385,13 @@ var addToUnscopables$3 = function (key) {
|
|
|
6367
6385
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
6368
6386
|
};
|
|
6369
6387
|
|
|
6370
|
-
var $$
|
|
6388
|
+
var $$9 = _export;
|
|
6371
6389
|
var $includes = arrayIncludes.includes;
|
|
6372
6390
|
var addToUnscopables$2 = addToUnscopables$3;
|
|
6373
6391
|
|
|
6374
6392
|
// `Array.prototype.includes` method
|
|
6375
6393
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
6376
|
-
$$
|
|
6394
|
+
$$9({ target: 'Array', proto: true }, {
|
|
6377
6395
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
6378
6396
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
6379
6397
|
}
|
|
@@ -6483,7 +6501,7 @@ var ChargeResponses = {
|
|
|
6483
6501
|
return error;
|
|
6484
6502
|
},
|
|
6485
6503
|
parse: function parse(apiResponse) {
|
|
6486
|
-
var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6504
|
+
var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6487
6505
|
if (response.data && _typeof$1(response.data) === 'object') {
|
|
6488
6506
|
Object.assign(response, response.data);
|
|
6489
6507
|
delete response.data;
|
|
@@ -6515,77 +6533,146 @@ var ChargeResponses = {
|
|
|
6515
6533
|
if (response.auth && response.auth !== 'none') {
|
|
6516
6534
|
return this.auth(response);
|
|
6517
6535
|
}
|
|
6536
|
+
// Below the auth check and gated on `url`: an open_url hand-off is only actionable with an
|
|
6537
|
+
// address, and anything still carrying `auth` is an authentication response first.
|
|
6538
|
+
if (response.status === 'open_url' && response.url) {
|
|
6539
|
+
return this.getCleanResponse(response, 'Continue at the payment provider');
|
|
6540
|
+
}
|
|
6518
6541
|
return this.error(response);
|
|
6519
6542
|
}
|
|
6520
6543
|
};
|
|
6521
6544
|
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
//
|
|
6525
|
-
//
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
var channel = options.channel,
|
|
6529
|
-
paymentMethod = options.paymentMethod;
|
|
6530
|
-
var pusher;
|
|
6531
|
-
if (window && window.Pusher) {
|
|
6532
|
-
pusher = new window.Pusher(configToUse.pusherKey, {
|
|
6533
|
-
cluster: 'eu',
|
|
6534
|
-
disableStats: true
|
|
6535
|
-
});
|
|
6536
|
-
}
|
|
6537
|
-
var pusherUndefinedError = {
|
|
6545
|
+
// Module-scope singletons rather than per-call objects, and frozen so a consumer
|
|
6546
|
+
// that mutates what it was handed cannot corrupt the next call -- throwing under
|
|
6547
|
+
// the strict mode an ES module gets, silently ignored otherwise. Nothing in this
|
|
6548
|
+
// repo or in checkout-ui-vue3 mutates them today.
|
|
6549
|
+
var LISTEN_ERRORS = {
|
|
6550
|
+
unavailable: Object.freeze({
|
|
6538
6551
|
status: 'error',
|
|
6539
6552
|
message: 'We could not listen for charge response.'
|
|
6540
|
-
}
|
|
6541
|
-
|
|
6553
|
+
}),
|
|
6554
|
+
subscriptionFailed: Object.freeze({
|
|
6542
6555
|
status: 'error',
|
|
6543
6556
|
message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
|
|
6557
|
+
})
|
|
6558
|
+
};
|
|
6559
|
+
|
|
6560
|
+
// Returns null rather than throwing when Pusher is not on the page, so each
|
|
6561
|
+
// listener can choose what to hand its caller back. The `!window` half only
|
|
6562
|
+
// guards against window being declared and assigned undefined; with window
|
|
6563
|
+
// genuinely absent this throws, which is what both paths already did.
|
|
6564
|
+
var createPusherClient = function createPusherClient() {
|
|
6565
|
+
if (!window || !window.Pusher) {
|
|
6566
|
+
return null;
|
|
6567
|
+
}
|
|
6568
|
+
return new window.Pusher(configToUse.pusherKey, {
|
|
6569
|
+
cluster: 'eu',
|
|
6570
|
+
disableStats: true
|
|
6571
|
+
});
|
|
6572
|
+
};
|
|
6573
|
+
|
|
6574
|
+
// Analytics are logged before the consumer callback runs, so a throwing
|
|
6575
|
+
// callback cannot lose the event.
|
|
6576
|
+
var buildResponseHandler = function buildResponseHandler(_ref) {
|
|
6577
|
+
var context = _ref.context,
|
|
6578
|
+
paymentMethod = _ref.paymentMethod,
|
|
6579
|
+
callback = _ref.callback,
|
|
6580
|
+
teardown = _ref.teardown;
|
|
6581
|
+
return function (response) {
|
|
6582
|
+
var formattedResponse = ChargeResponses.parse(response);
|
|
6583
|
+
context.logAPIResponse(formattedResponse, paymentMethod);
|
|
6584
|
+
callback(formattedResponse, teardown);
|
|
6544
6585
|
};
|
|
6586
|
+
};
|
|
6587
|
+
|
|
6588
|
+
// The shared listening path for every channel and market. `context` carries the
|
|
6589
|
+
// logAPIResponse analytics function and the isListening flag this path owns.
|
|
6590
|
+
// eslint-disable-next-line consistent-return
|
|
6591
|
+
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6592
|
+
var channel = options.channel,
|
|
6593
|
+
paymentMethod = options.paymentMethod;
|
|
6594
|
+
var pusher = createPusherClient();
|
|
6595
|
+
if (!pusher) {
|
|
6596
|
+
return callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6597
|
+
}
|
|
6545
6598
|
var unsubscribeFromPusher = function unsubscribeFromPusher() {
|
|
6546
6599
|
pusher.unsubscribe(channel);
|
|
6547
6600
|
};
|
|
6548
|
-
if (!pusher) {
|
|
6549
|
-
return callback(pusherUndefinedError, noOp);
|
|
6550
|
-
}
|
|
6551
6601
|
var pusherSubscription = pusher.subscribe(channel);
|
|
6552
6602
|
pusherSubscription.bind('pusher:subscription_succeeded', function () {
|
|
6553
6603
|
context.isListening = true;
|
|
6554
6604
|
});
|
|
6555
6605
|
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6556
6606
|
context.isListening = false;
|
|
6557
|
-
callback(
|
|
6607
|
+
callback(LISTEN_ERRORS.subscriptionFailed, noOp);
|
|
6558
6608
|
});
|
|
6559
|
-
pusherSubscription.bind('response',
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
callback
|
|
6609
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6610
|
+
context: context,
|
|
6611
|
+
paymentMethod: paymentMethod,
|
|
6612
|
+
callback: callback,
|
|
6613
|
+
teardown: unsubscribeFromPusher
|
|
6614
|
+
}));
|
|
6615
|
+
};
|
|
6616
|
+
|
|
6617
|
+
// Dedicated listener for the Ghana mobile money USSD confirmation channel.
|
|
6618
|
+
// Separate from the shared path because this flow needs an unsubscribe before
|
|
6619
|
+
// any event arrives, and because it must not write context.isListening: it runs
|
|
6620
|
+
// alongside the main charge subscription and the two would fight over one flag
|
|
6621
|
+
// on the same transaction.
|
|
6622
|
+
var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
|
|
6623
|
+
var channel = options.channel,
|
|
6624
|
+
paymentMethod = options.paymentMethod;
|
|
6625
|
+
var pusher = createPusherClient();
|
|
6626
|
+
if (!pusher) {
|
|
6627
|
+
callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6628
|
+
return noOp;
|
|
6629
|
+
}
|
|
6630
|
+
var hasUnsubscribed = false;
|
|
6631
|
+
var unsubscribe = function unsubscribe() {
|
|
6632
|
+
if (hasUnsubscribed) {
|
|
6633
|
+
return;
|
|
6634
|
+
}
|
|
6635
|
+
hasUnsubscribed = true;
|
|
6636
|
+
pusher.unsubscribe(channel);
|
|
6637
|
+
pusher.disconnect();
|
|
6638
|
+
};
|
|
6639
|
+
var pusherSubscription = pusher.subscribe(channel);
|
|
6640
|
+
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6641
|
+
unsubscribe();
|
|
6642
|
+
callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
|
|
6563
6643
|
});
|
|
6644
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6645
|
+
context: context,
|
|
6646
|
+
paymentMethod: paymentMethod,
|
|
6647
|
+
callback: callback,
|
|
6648
|
+
teardown: unsubscribe
|
|
6649
|
+
}));
|
|
6650
|
+
return unsubscribe;
|
|
6564
6651
|
};
|
|
6565
6652
|
|
|
6566
|
-
var uncurryThis$
|
|
6653
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
6567
6654
|
var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
|
|
6568
|
-
var redefine$
|
|
6569
|
-
var anObject$
|
|
6655
|
+
var redefine$5 = redefine$b.exports;
|
|
6656
|
+
var anObject$3 = anObject$f;
|
|
6570
6657
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
6571
6658
|
var $toString$2 = toString$9;
|
|
6572
|
-
var fails$
|
|
6659
|
+
var fails$6 = fails$x;
|
|
6573
6660
|
var regExpFlags = regexpFlags$1;
|
|
6574
6661
|
|
|
6575
6662
|
var TO_STRING = 'toString';
|
|
6576
6663
|
var RegExpPrototype = RegExp.prototype;
|
|
6577
6664
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
6578
|
-
var getFlags = uncurryThis$
|
|
6665
|
+
var getFlags = uncurryThis$9(regExpFlags);
|
|
6579
6666
|
|
|
6580
|
-
var NOT_GENERIC = fails$
|
|
6667
|
+
var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
6581
6668
|
// FF44- RegExp#toString has a wrong name
|
|
6582
6669
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
|
|
6583
6670
|
|
|
6584
6671
|
// `RegExp.prototype.toString` method
|
|
6585
6672
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
6586
6673
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
6587
|
-
redefine$
|
|
6588
|
-
var R = anObject$
|
|
6674
|
+
redefine$5(RegExp.prototype, TO_STRING, function toString() {
|
|
6675
|
+
var R = anObject$3(this);
|
|
6589
6676
|
var p = $toString$2(R.source);
|
|
6590
6677
|
var rf = R.flags;
|
|
6591
6678
|
var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
|
|
@@ -6593,41 +6680,41 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
6593
6680
|
}, { unsafe: true });
|
|
6594
6681
|
}
|
|
6595
6682
|
|
|
6596
|
-
var fails$
|
|
6683
|
+
var fails$5 = fails$x;
|
|
6597
6684
|
|
|
6598
|
-
var correctPrototypeGetter = !fails$
|
|
6685
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
6599
6686
|
function F() { /* empty */ }
|
|
6600
6687
|
F.prototype.constructor = null;
|
|
6601
6688
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
6602
6689
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
6603
6690
|
});
|
|
6604
6691
|
|
|
6605
|
-
var global$
|
|
6606
|
-
var hasOwn$
|
|
6607
|
-
var isCallable$
|
|
6692
|
+
var global$9 = global$U;
|
|
6693
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
6694
|
+
var isCallable$4 = isCallable$l;
|
|
6608
6695
|
var toObject$2 = toObject$9;
|
|
6609
6696
|
var sharedKey = sharedKey$3;
|
|
6610
6697
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
6611
6698
|
|
|
6612
6699
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
6613
|
-
var Object$1 = global$
|
|
6700
|
+
var Object$1 = global$9.Object;
|
|
6614
6701
|
var ObjectPrototype = Object$1.prototype;
|
|
6615
6702
|
|
|
6616
6703
|
// `Object.getPrototypeOf` method
|
|
6617
6704
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
6618
6705
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
6619
6706
|
var object = toObject$2(O);
|
|
6620
|
-
if (hasOwn$
|
|
6707
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
6621
6708
|
var constructor = object.constructor;
|
|
6622
|
-
if (isCallable$
|
|
6709
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
6623
6710
|
return constructor.prototype;
|
|
6624
6711
|
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
6625
6712
|
};
|
|
6626
6713
|
|
|
6627
|
-
var fails$
|
|
6628
|
-
var isCallable$
|
|
6714
|
+
var fails$4 = fails$x;
|
|
6715
|
+
var isCallable$3 = isCallable$l;
|
|
6629
6716
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
6630
|
-
var redefine$
|
|
6717
|
+
var redefine$4 = redefine$b.exports;
|
|
6631
6718
|
var wellKnownSymbol$4 = wellKnownSymbol$j;
|
|
6632
6719
|
|
|
6633
6720
|
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
@@ -6648,7 +6735,7 @@ if ([].keys) {
|
|
|
6648
6735
|
}
|
|
6649
6736
|
}
|
|
6650
6737
|
|
|
6651
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
6738
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
|
|
6652
6739
|
var test = {};
|
|
6653
6740
|
// FF44- legacy iterators case
|
|
6654
6741
|
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
@@ -6658,8 +6745,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
6658
6745
|
|
|
6659
6746
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
6660
6747
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
6661
|
-
if (!isCallable$
|
|
6662
|
-
redefine$
|
|
6748
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
|
|
6749
|
+
redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
|
|
6663
6750
|
return this;
|
|
6664
6751
|
});
|
|
6665
6752
|
}
|
|
@@ -6672,7 +6759,7 @@ var iteratorsCore = {
|
|
|
6672
6759
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
6673
6760
|
var create$1 = objectCreate;
|
|
6674
6761
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
6675
|
-
var setToStringTag$
|
|
6762
|
+
var setToStringTag$4 = setToStringTag$6;
|
|
6676
6763
|
var Iterators$2 = iterators;
|
|
6677
6764
|
|
|
6678
6765
|
var returnThis$1 = function () { return this; };
|
|
@@ -6680,21 +6767,21 @@ var returnThis$1 = function () { return this; };
|
|
|
6680
6767
|
var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
6681
6768
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
6682
6769
|
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
6683
|
-
setToStringTag$
|
|
6770
|
+
setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
|
|
6684
6771
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
6685
6772
|
return IteratorConstructor;
|
|
6686
6773
|
};
|
|
6687
6774
|
|
|
6688
|
-
var $$
|
|
6775
|
+
var $$8 = _export;
|
|
6689
6776
|
var call$2 = functionCall;
|
|
6690
6777
|
var FunctionName = functionName;
|
|
6691
|
-
var isCallable$
|
|
6778
|
+
var isCallable$2 = isCallable$l;
|
|
6692
6779
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
6693
6780
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
6694
6781
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6695
|
-
var setToStringTag$
|
|
6782
|
+
var setToStringTag$3 = setToStringTag$6;
|
|
6696
6783
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6697
|
-
var redefine$
|
|
6784
|
+
var redefine$3 = redefine$b.exports;
|
|
6698
6785
|
var wellKnownSymbol$3 = wellKnownSymbol$j;
|
|
6699
6786
|
var Iterators$1 = iterators;
|
|
6700
6787
|
var IteratorsCore = iteratorsCore;
|
|
@@ -6740,12 +6827,12 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6740
6827
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
6741
6828
|
if (setPrototypeOf) {
|
|
6742
6829
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
6743
|
-
} else if (!isCallable$
|
|
6744
|
-
redefine$
|
|
6830
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
6831
|
+
redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
6745
6832
|
}
|
|
6746
6833
|
}
|
|
6747
6834
|
// Set @@toStringTag to native iterators
|
|
6748
|
-
setToStringTag$
|
|
6835
|
+
setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
6749
6836
|
}
|
|
6750
6837
|
}
|
|
6751
6838
|
|
|
@@ -6768,14 +6855,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6768
6855
|
};
|
|
6769
6856
|
if (FORCED) for (KEY in methods) {
|
|
6770
6857
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
6771
|
-
redefine$
|
|
6858
|
+
redefine$3(IterablePrototype, KEY, methods[KEY]);
|
|
6772
6859
|
}
|
|
6773
|
-
} else $$
|
|
6860
|
+
} else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
6774
6861
|
}
|
|
6775
6862
|
|
|
6776
6863
|
// define iterator
|
|
6777
6864
|
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
6778
|
-
redefine$
|
|
6865
|
+
redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
6779
6866
|
}
|
|
6780
6867
|
Iterators$1[NAME] = defaultIterator;
|
|
6781
6868
|
|
|
@@ -6785,14 +6872,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6785
6872
|
var toIndexedObject$1 = toIndexedObject$8;
|
|
6786
6873
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
6787
6874
|
var Iterators = iterators;
|
|
6788
|
-
var InternalStateModule$
|
|
6875
|
+
var InternalStateModule$4 = internalState;
|
|
6789
6876
|
var defineProperty$1 = objectDefineProperty.f;
|
|
6790
6877
|
var defineIterator$1 = defineIterator$2;
|
|
6791
6878
|
var DESCRIPTORS$3 = descriptors$1;
|
|
6792
6879
|
|
|
6793
6880
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
6794
|
-
var setInternalState$
|
|
6795
|
-
var getInternalState$1 = InternalStateModule$
|
|
6881
|
+
var setInternalState$4 = InternalStateModule$4.set;
|
|
6882
|
+
var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
|
|
6796
6883
|
|
|
6797
6884
|
// `Array.prototype.entries` method
|
|
6798
6885
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -6805,7 +6892,7 @@ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
|
|
|
6805
6892
|
// `CreateArrayIterator` internal method
|
|
6806
6893
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
6807
6894
|
var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
|
|
6808
|
-
setInternalState$
|
|
6895
|
+
setInternalState$4(this, {
|
|
6809
6896
|
type: ARRAY_ITERATOR,
|
|
6810
6897
|
target: toIndexedObject$1(iterated), // target
|
|
6811
6898
|
index: 0, // next index
|
|
@@ -6842,14 +6929,14 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
|
6842
6929
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
6843
6930
|
} catch (error) { /* empty */ }
|
|
6844
6931
|
|
|
6845
|
-
var uncurryThis$
|
|
6932
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
6846
6933
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
6847
6934
|
var toString$2 = toString$9;
|
|
6848
6935
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
6849
6936
|
|
|
6850
|
-
var charAt$4 = uncurryThis$
|
|
6851
|
-
var charCodeAt$2 = uncurryThis$
|
|
6852
|
-
var stringSlice$2 = uncurryThis$
|
|
6937
|
+
var charAt$4 = uncurryThis$8(''.charAt);
|
|
6938
|
+
var charCodeAt$2 = uncurryThis$8(''.charCodeAt);
|
|
6939
|
+
var stringSlice$2 = uncurryThis$8(''.slice);
|
|
6853
6940
|
|
|
6854
6941
|
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
6855
6942
|
return function ($this, pos) {
|
|
@@ -6881,17 +6968,17 @@ var stringMultibyte = {
|
|
|
6881
6968
|
|
|
6882
6969
|
var charAt$3 = stringMultibyte.charAt;
|
|
6883
6970
|
var toString$1 = toString$9;
|
|
6884
|
-
var InternalStateModule$
|
|
6971
|
+
var InternalStateModule$3 = internalState;
|
|
6885
6972
|
var defineIterator = defineIterator$2;
|
|
6886
6973
|
|
|
6887
6974
|
var STRING_ITERATOR = 'String Iterator';
|
|
6888
|
-
var setInternalState$
|
|
6889
|
-
var getInternalState = InternalStateModule$
|
|
6975
|
+
var setInternalState$3 = InternalStateModule$3.set;
|
|
6976
|
+
var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
|
|
6890
6977
|
|
|
6891
6978
|
// `String.prototype[@@iterator]` method
|
|
6892
6979
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
6893
6980
|
defineIterator(String, 'String', function (iterated) {
|
|
6894
|
-
setInternalState$
|
|
6981
|
+
setInternalState$3(this, {
|
|
6895
6982
|
type: STRING_ITERATOR,
|
|
6896
6983
|
string: toString$1(iterated),
|
|
6897
6984
|
index: 0
|
|
@@ -6909,7 +6996,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6909
6996
|
return { value: point, done: false };
|
|
6910
6997
|
});
|
|
6911
6998
|
|
|
6912
|
-
var global$
|
|
6999
|
+
var global$8 = global$U;
|
|
6913
7000
|
var DOMIterables = domIterables;
|
|
6914
7001
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
6915
7002
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -6943,18 +7030,18 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
6943
7030
|
};
|
|
6944
7031
|
|
|
6945
7032
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
6946
|
-
handlePrototype(global$
|
|
7033
|
+
handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
6947
7034
|
}
|
|
6948
7035
|
|
|
6949
7036
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
6950
7037
|
|
|
6951
|
-
var fails$
|
|
7038
|
+
var fails$3 = fails$x;
|
|
6952
7039
|
var wellKnownSymbol$1 = wellKnownSymbol$j;
|
|
6953
7040
|
var IS_PURE = isPure;
|
|
6954
7041
|
|
|
6955
7042
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
6956
7043
|
|
|
6957
|
-
var nativeUrl = !fails$
|
|
7044
|
+
var nativeUrl = !fails$3(function () {
|
|
6958
7045
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
6959
7046
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
6960
7047
|
var searchParams = url.searchParams;
|
|
@@ -6983,19 +7070,19 @@ var nativeUrl = !fails$2(function () {
|
|
|
6983
7070
|
|| new URL('http://x', undefined).host !== 'x';
|
|
6984
7071
|
});
|
|
6985
7072
|
|
|
6986
|
-
var anObject$
|
|
7073
|
+
var anObject$2 = anObject$f;
|
|
6987
7074
|
var iteratorClose = iteratorClose$2;
|
|
6988
7075
|
|
|
6989
7076
|
// call something on iterator step with safe closing on error
|
|
6990
7077
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
6991
7078
|
try {
|
|
6992
|
-
return ENTRIES ? fn(anObject$
|
|
7079
|
+
return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
|
|
6993
7080
|
} catch (error) {
|
|
6994
7081
|
iteratorClose(iterator, 'throw', error);
|
|
6995
7082
|
}
|
|
6996
7083
|
};
|
|
6997
7084
|
|
|
6998
|
-
var global$
|
|
7085
|
+
var global$7 = global$U;
|
|
6999
7086
|
var bind$5 = functionBindContext;
|
|
7000
7087
|
var call$1 = functionCall;
|
|
7001
7088
|
var toObject$1 = toObject$9;
|
|
@@ -7007,7 +7094,7 @@ var createProperty = createProperty$3;
|
|
|
7007
7094
|
var getIterator$1 = getIterator$3;
|
|
7008
7095
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
7009
7096
|
|
|
7010
|
-
var Array$2 = global$
|
|
7097
|
+
var Array$2 = global$7.Array;
|
|
7011
7098
|
|
|
7012
7099
|
// `Array.from` method implementation
|
|
7013
7100
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -7043,8 +7130,8 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
7043
7130
|
};
|
|
7044
7131
|
|
|
7045
7132
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
7046
|
-
var global$
|
|
7047
|
-
var uncurryThis$
|
|
7133
|
+
var global$6 = global$U;
|
|
7134
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
7048
7135
|
|
|
7049
7136
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
7050
7137
|
var base = 36;
|
|
@@ -7060,16 +7147,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
7060
7147
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
7061
7148
|
var baseMinusTMin = base - tMin;
|
|
7062
7149
|
|
|
7063
|
-
var RangeError = global$
|
|
7064
|
-
var exec$2 = uncurryThis$
|
|
7150
|
+
var RangeError = global$6.RangeError;
|
|
7151
|
+
var exec$2 = uncurryThis$7(regexSeparators.exec);
|
|
7065
7152
|
var floor$1 = Math.floor;
|
|
7066
7153
|
var fromCharCode = String.fromCharCode;
|
|
7067
|
-
var charCodeAt$1 = uncurryThis$
|
|
7068
|
-
var join$2 = uncurryThis$
|
|
7069
|
-
var push$4 = uncurryThis$
|
|
7070
|
-
var replace$4 = uncurryThis$
|
|
7071
|
-
var split$3 = uncurryThis$
|
|
7072
|
-
var toLowerCase$1 = uncurryThis$
|
|
7154
|
+
var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
|
|
7155
|
+
var join$2 = uncurryThis$7([].join);
|
|
7156
|
+
var push$4 = uncurryThis$7([].push);
|
|
7157
|
+
var replace$4 = uncurryThis$7(''.replace);
|
|
7158
|
+
var split$3 = uncurryThis$7(''.split);
|
|
7159
|
+
var toLowerCase$1 = uncurryThis$7(''.toLowerCase);
|
|
7073
7160
|
|
|
7074
7161
|
/**
|
|
7075
7162
|
* Creates an array containing the numeric code points of each Unicode
|
|
@@ -7226,24 +7313,24 @@ var stringPunycodeToAscii = function (input) {
|
|
|
7226
7313
|
|
|
7227
7314
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7228
7315
|
|
|
7229
|
-
var $$
|
|
7230
|
-
var global$
|
|
7316
|
+
var $$7 = _export;
|
|
7317
|
+
var global$5 = global$U;
|
|
7231
7318
|
var getBuiltIn$1 = getBuiltIn$a;
|
|
7232
7319
|
var call = functionCall;
|
|
7233
|
-
var uncurryThis$
|
|
7320
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7234
7321
|
var USE_NATIVE_URL$1 = nativeUrl;
|
|
7235
|
-
var redefine$
|
|
7236
|
-
var redefineAll = redefineAll$
|
|
7237
|
-
var setToStringTag$
|
|
7322
|
+
var redefine$2 = redefine$b.exports;
|
|
7323
|
+
var redefineAll$1 = redefineAll$3;
|
|
7324
|
+
var setToStringTag$2 = setToStringTag$6;
|
|
7238
7325
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
7239
|
-
var InternalStateModule$
|
|
7240
|
-
var anInstance$
|
|
7241
|
-
var isCallable = isCallable$
|
|
7242
|
-
var hasOwn$
|
|
7326
|
+
var InternalStateModule$2 = internalState;
|
|
7327
|
+
var anInstance$3 = anInstance$5;
|
|
7328
|
+
var isCallable$1 = isCallable$l;
|
|
7329
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
7243
7330
|
var bind$4 = functionBindContext;
|
|
7244
7331
|
var classof = classof$7;
|
|
7245
|
-
var anObject = anObject$
|
|
7246
|
-
var isObject$
|
|
7332
|
+
var anObject$1 = anObject$f;
|
|
7333
|
+
var isObject$3 = isObject$k;
|
|
7247
7334
|
var $toString$1 = toString$9;
|
|
7248
7335
|
var create = objectCreate;
|
|
7249
7336
|
var createPropertyDescriptor = createPropertyDescriptor$6;
|
|
@@ -7256,27 +7343,27 @@ var arraySort = arraySort$1;
|
|
|
7256
7343
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
7257
7344
|
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
7258
7345
|
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
7259
|
-
var setInternalState$
|
|
7260
|
-
var getInternalParamsState = InternalStateModule$
|
|
7261
|
-
var getInternalIteratorState = InternalStateModule$
|
|
7346
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
7347
|
+
var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
|
|
7348
|
+
var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
7262
7349
|
|
|
7263
7350
|
var n$Fetch = getBuiltIn$1('fetch');
|
|
7264
7351
|
var N$Request = getBuiltIn$1('Request');
|
|
7265
7352
|
var Headers = getBuiltIn$1('Headers');
|
|
7266
7353
|
var RequestPrototype = N$Request && N$Request.prototype;
|
|
7267
7354
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
7268
|
-
var RegExp$1 = global$
|
|
7269
|
-
var TypeError$3 = global$
|
|
7270
|
-
var decodeURIComponent$1 = global$
|
|
7271
|
-
var encodeURIComponent$1 = global$
|
|
7272
|
-
var charAt$2 = uncurryThis$
|
|
7273
|
-
var join$1 = uncurryThis$
|
|
7274
|
-
var push$3 = uncurryThis$
|
|
7275
|
-
var replace$3 = uncurryThis$
|
|
7276
|
-
var shift$1 = uncurryThis$
|
|
7277
|
-
var splice = uncurryThis$
|
|
7278
|
-
var split$2 = uncurryThis$
|
|
7279
|
-
var stringSlice$1 = uncurryThis$
|
|
7355
|
+
var RegExp$1 = global$5.RegExp;
|
|
7356
|
+
var TypeError$3 = global$5.TypeError;
|
|
7357
|
+
var decodeURIComponent$1 = global$5.decodeURIComponent;
|
|
7358
|
+
var encodeURIComponent$1 = global$5.encodeURIComponent;
|
|
7359
|
+
var charAt$2 = uncurryThis$6(''.charAt);
|
|
7360
|
+
var join$1 = uncurryThis$6([].join);
|
|
7361
|
+
var push$3 = uncurryThis$6([].push);
|
|
7362
|
+
var replace$3 = uncurryThis$6(''.replace);
|
|
7363
|
+
var shift$1 = uncurryThis$6([].shift);
|
|
7364
|
+
var splice$1 = uncurryThis$6([].splice);
|
|
7365
|
+
var split$2 = uncurryThis$6(''.split);
|
|
7366
|
+
var stringSlice$1 = uncurryThis$6(''.slice);
|
|
7280
7367
|
|
|
7281
7368
|
var plus = /\+/g;
|
|
7282
7369
|
var sequences = Array(4);
|
|
@@ -7306,7 +7393,7 @@ var deserialize = function (it) {
|
|
|
7306
7393
|
}
|
|
7307
7394
|
};
|
|
7308
7395
|
|
|
7309
|
-
var find = /[!'()~]|%20/g;
|
|
7396
|
+
var find$1 = /[!'()~]|%20/g;
|
|
7310
7397
|
|
|
7311
7398
|
var replacements = {
|
|
7312
7399
|
'!': '%21',
|
|
@@ -7322,11 +7409,11 @@ var replacer = function (match) {
|
|
|
7322
7409
|
};
|
|
7323
7410
|
|
|
7324
7411
|
var serialize = function (it) {
|
|
7325
|
-
return replace$3(encodeURIComponent$1(it), find, replacer);
|
|
7412
|
+
return replace$3(encodeURIComponent$1(it), find$1, replacer);
|
|
7326
7413
|
};
|
|
7327
7414
|
|
|
7328
7415
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
7329
|
-
setInternalState$
|
|
7416
|
+
setInternalState$2(this, {
|
|
7330
7417
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
7331
7418
|
iterator: getIterator(getInternalParamsState(params).entries),
|
|
7332
7419
|
kind: kind
|
|
@@ -7346,7 +7433,7 @@ var URLSearchParamsState = function (init) {
|
|
|
7346
7433
|
this.url = null;
|
|
7347
7434
|
|
|
7348
7435
|
if (init !== undefined) {
|
|
7349
|
-
if (isObject$
|
|
7436
|
+
if (isObject$3(init)) this.parseObject(init);
|
|
7350
7437
|
else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
|
|
7351
7438
|
}
|
|
7352
7439
|
};
|
|
@@ -7365,7 +7452,7 @@ URLSearchParamsState.prototype = {
|
|
|
7365
7452
|
iterator = getIterator(object, iteratorMethod);
|
|
7366
7453
|
next = iterator.next;
|
|
7367
7454
|
while (!(step = call(next, iterator)).done) {
|
|
7368
|
-
entryIterator = getIterator(anObject(step.value));
|
|
7455
|
+
entryIterator = getIterator(anObject$1(step.value));
|
|
7369
7456
|
entryNext = entryIterator.next;
|
|
7370
7457
|
if (
|
|
7371
7458
|
(first = call(entryNext, entryIterator)).done ||
|
|
@@ -7374,7 +7461,7 @@ URLSearchParamsState.prototype = {
|
|
|
7374
7461
|
) throw TypeError$3('Expected sequence with length 2');
|
|
7375
7462
|
push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
|
|
7376
7463
|
}
|
|
7377
|
-
} else for (var key in object) if (hasOwn$
|
|
7464
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
7378
7465
|
push$3(this.entries, { key: key, value: $toString$1(object[key]) });
|
|
7379
7466
|
}
|
|
7380
7467
|
},
|
|
@@ -7417,14 +7504,14 @@ URLSearchParamsState.prototype = {
|
|
|
7417
7504
|
// `URLSearchParams` constructor
|
|
7418
7505
|
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
7419
7506
|
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
7420
|
-
anInstance$
|
|
7507
|
+
anInstance$3(this, URLSearchParamsPrototype);
|
|
7421
7508
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
7422
|
-
setInternalState$
|
|
7509
|
+
setInternalState$2(this, new URLSearchParamsState(init));
|
|
7423
7510
|
};
|
|
7424
7511
|
|
|
7425
7512
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
7426
7513
|
|
|
7427
|
-
redefineAll(URLSearchParamsPrototype, {
|
|
7514
|
+
redefineAll$1(URLSearchParamsPrototype, {
|
|
7428
7515
|
// `URLSearchParams.prototype.append` method
|
|
7429
7516
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
7430
7517
|
append: function append(name, value) {
|
|
@@ -7442,7 +7529,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7442
7529
|
var key = $toString$1(name);
|
|
7443
7530
|
var index = 0;
|
|
7444
7531
|
while (index < entries.length) {
|
|
7445
|
-
if (entries[index].key === key) splice(entries, index, 1);
|
|
7532
|
+
if (entries[index].key === key) splice$1(entries, index, 1);
|
|
7446
7533
|
else index++;
|
|
7447
7534
|
}
|
|
7448
7535
|
state.updateURL();
|
|
@@ -7498,7 +7585,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7498
7585
|
for (; index < entries.length; index++) {
|
|
7499
7586
|
entry = entries[index];
|
|
7500
7587
|
if (entry.key === key) {
|
|
7501
|
-
if (found) splice(entries, index--, 1);
|
|
7588
|
+
if (found) splice$1(entries, index--, 1);
|
|
7502
7589
|
else {
|
|
7503
7590
|
found = true;
|
|
7504
7591
|
entry.value = val;
|
|
@@ -7543,27 +7630,27 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7543
7630
|
}, { enumerable: true });
|
|
7544
7631
|
|
|
7545
7632
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
7546
|
-
redefine$
|
|
7633
|
+
redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
7547
7634
|
|
|
7548
7635
|
// `URLSearchParams.prototype.toString` method
|
|
7549
7636
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
7550
|
-
redefine$
|
|
7637
|
+
redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
7551
7638
|
return getInternalParamsState(this).serialize();
|
|
7552
7639
|
}, { enumerable: true });
|
|
7553
7640
|
|
|
7554
|
-
setToStringTag$
|
|
7641
|
+
setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
7555
7642
|
|
|
7556
|
-
$$
|
|
7643
|
+
$$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
7557
7644
|
URLSearchParams: URLSearchParamsConstructor
|
|
7558
7645
|
});
|
|
7559
7646
|
|
|
7560
7647
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
7561
|
-
if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
7562
|
-
var headersHas = uncurryThis$
|
|
7563
|
-
var headersSet = uncurryThis$
|
|
7648
|
+
if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
|
|
7649
|
+
var headersHas = uncurryThis$6(HeadersPrototype.has);
|
|
7650
|
+
var headersSet = uncurryThis$6(HeadersPrototype.set);
|
|
7564
7651
|
|
|
7565
7652
|
var wrapRequestOptions = function (init) {
|
|
7566
|
-
if (isObject$
|
|
7653
|
+
if (isObject$3(init)) {
|
|
7567
7654
|
var body = init.body;
|
|
7568
7655
|
var headers;
|
|
7569
7656
|
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
@@ -7579,24 +7666,24 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
7579
7666
|
} return init;
|
|
7580
7667
|
};
|
|
7581
7668
|
|
|
7582
|
-
if (isCallable(n$Fetch)) {
|
|
7583
|
-
$$
|
|
7669
|
+
if (isCallable$1(n$Fetch)) {
|
|
7670
|
+
$$7({ global: true, enumerable: true, forced: true }, {
|
|
7584
7671
|
fetch: function fetch(input /* , init */) {
|
|
7585
7672
|
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7586
7673
|
}
|
|
7587
7674
|
});
|
|
7588
7675
|
}
|
|
7589
7676
|
|
|
7590
|
-
if (isCallable(N$Request)) {
|
|
7677
|
+
if (isCallable$1(N$Request)) {
|
|
7591
7678
|
var RequestConstructor = function Request(input /* , init */) {
|
|
7592
|
-
anInstance$
|
|
7679
|
+
anInstance$3(this, RequestPrototype);
|
|
7593
7680
|
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7594
7681
|
};
|
|
7595
7682
|
|
|
7596
7683
|
RequestPrototype.constructor = RequestConstructor;
|
|
7597
7684
|
RequestConstructor.prototype = RequestPrototype;
|
|
7598
7685
|
|
|
7599
|
-
$$
|
|
7686
|
+
$$7({ global: true, forced: true }, {
|
|
7600
7687
|
Request: RequestConstructor
|
|
7601
7688
|
});
|
|
7602
7689
|
}
|
|
@@ -7609,49 +7696,49 @@ var web_urlSearchParams = {
|
|
|
7609
7696
|
|
|
7610
7697
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7611
7698
|
|
|
7612
|
-
var $$
|
|
7699
|
+
var $$6 = _export;
|
|
7613
7700
|
var DESCRIPTORS$2 = descriptors$1;
|
|
7614
7701
|
var USE_NATIVE_URL = nativeUrl;
|
|
7615
|
-
var global$
|
|
7702
|
+
var global$4 = global$U;
|
|
7616
7703
|
var bind$3 = functionBindContext;
|
|
7617
|
-
var uncurryThis$
|
|
7704
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
7618
7705
|
var defineProperties = objectDefineProperties.f;
|
|
7619
|
-
var redefine = redefine$
|
|
7620
|
-
var anInstance = anInstance$
|
|
7621
|
-
var hasOwn = hasOwnProperty_1;
|
|
7706
|
+
var redefine$1 = redefine$b.exports;
|
|
7707
|
+
var anInstance$2 = anInstance$5;
|
|
7708
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
7622
7709
|
var assign$1 = objectAssign;
|
|
7623
7710
|
var arrayFrom = arrayFrom$1;
|
|
7624
7711
|
var arraySlice = arraySliceSimple;
|
|
7625
7712
|
var codeAt = stringMultibyte.codeAt;
|
|
7626
7713
|
var toASCII = stringPunycodeToAscii;
|
|
7627
7714
|
var $toString = toString$9;
|
|
7628
|
-
var setToStringTag = setToStringTag$
|
|
7715
|
+
var setToStringTag$1 = setToStringTag$6;
|
|
7629
7716
|
var validateArgumentsLength = validateArgumentsLength$3;
|
|
7630
7717
|
var URLSearchParamsModule = web_urlSearchParams;
|
|
7631
|
-
var InternalStateModule = internalState;
|
|
7718
|
+
var InternalStateModule$1 = internalState;
|
|
7632
7719
|
|
|
7633
|
-
var setInternalState = InternalStateModule.set;
|
|
7634
|
-
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
7720
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
7721
|
+
var getInternalURLState = InternalStateModule$1.getterFor('URL');
|
|
7635
7722
|
var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
|
|
7636
7723
|
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
7637
7724
|
|
|
7638
|
-
var NativeURL = global$
|
|
7639
|
-
var TypeError$2 = global$
|
|
7640
|
-
var parseInt$1 = global$
|
|
7725
|
+
var NativeURL = global$4.URL;
|
|
7726
|
+
var TypeError$2 = global$4.TypeError;
|
|
7727
|
+
var parseInt$1 = global$4.parseInt;
|
|
7641
7728
|
var floor = Math.floor;
|
|
7642
7729
|
var pow = Math.pow;
|
|
7643
|
-
var charAt$1 = uncurryThis$
|
|
7644
|
-
var exec$1 = uncurryThis$
|
|
7645
|
-
var join = uncurryThis$
|
|
7646
|
-
var numberToString$1 = uncurryThis$
|
|
7647
|
-
var pop = uncurryThis$
|
|
7648
|
-
var push$2 = uncurryThis$
|
|
7649
|
-
var replace$2 = uncurryThis$
|
|
7650
|
-
var shift = uncurryThis$
|
|
7651
|
-
var split$1 = uncurryThis$
|
|
7652
|
-
var stringSlice = uncurryThis$
|
|
7653
|
-
var toLowerCase = uncurryThis$
|
|
7654
|
-
var unshift = uncurryThis$
|
|
7730
|
+
var charAt$1 = uncurryThis$5(''.charAt);
|
|
7731
|
+
var exec$1 = uncurryThis$5(/./.exec);
|
|
7732
|
+
var join = uncurryThis$5([].join);
|
|
7733
|
+
var numberToString$1 = uncurryThis$5(1.0.toString);
|
|
7734
|
+
var pop = uncurryThis$5([].pop);
|
|
7735
|
+
var push$2 = uncurryThis$5([].push);
|
|
7736
|
+
var replace$2 = uncurryThis$5(''.replace);
|
|
7737
|
+
var shift = uncurryThis$5([].shift);
|
|
7738
|
+
var split$1 = uncurryThis$5(''.split);
|
|
7739
|
+
var stringSlice = uncurryThis$5(''.slice);
|
|
7740
|
+
var toLowerCase = uncurryThis$5(''.toLowerCase);
|
|
7741
|
+
var unshift = uncurryThis$5([].unshift);
|
|
7655
7742
|
|
|
7656
7743
|
var INVALID_AUTHORITY = 'Invalid authority';
|
|
7657
7744
|
var INVALID_SCHEME = 'Invalid scheme';
|
|
@@ -7859,7 +7946,7 @@ var userinfoPercentEncodeSet = assign$1({}, pathPercentEncodeSet, {
|
|
|
7859
7946
|
|
|
7860
7947
|
var percentEncode = function (chr, set) {
|
|
7861
7948
|
var code = codeAt(chr, 0);
|
|
7862
|
-
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
7949
|
+
return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
|
|
7863
7950
|
};
|
|
7864
7951
|
|
|
7865
7952
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -7990,7 +8077,7 @@ URLState.prototype = {
|
|
|
7990
8077
|
buffer += toLowerCase(chr);
|
|
7991
8078
|
} else if (chr == ':') {
|
|
7992
8079
|
if (stateOverride && (
|
|
7993
|
-
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
8080
|
+
(url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
|
|
7994
8081
|
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
7995
8082
|
(url.scheme == 'file' && !url.host)
|
|
7996
8083
|
)) return;
|
|
@@ -8378,7 +8465,7 @@ URLState.prototype = {
|
|
|
8378
8465
|
},
|
|
8379
8466
|
// https://url.spec.whatwg.org/#is-special
|
|
8380
8467
|
isSpecial: function () {
|
|
8381
|
-
return hasOwn(specialSchemes, this.scheme);
|
|
8468
|
+
return hasOwn$1(specialSchemes, this.scheme);
|
|
8382
8469
|
},
|
|
8383
8470
|
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
8384
8471
|
shortenPath: function () {
|
|
@@ -8547,9 +8634,9 @@ URLState.prototype = {
|
|
|
8547
8634
|
// `URL` constructor
|
|
8548
8635
|
// https://url.spec.whatwg.org/#url-class
|
|
8549
8636
|
var URLConstructor = function URL(url /* , base */) {
|
|
8550
|
-
var that = anInstance(this, URLPrototype);
|
|
8637
|
+
var that = anInstance$2(this, URLPrototype);
|
|
8551
8638
|
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
8552
|
-
var state = setInternalState(that, new URLState(url, false, base));
|
|
8639
|
+
var state = setInternalState$1(that, new URLState(url, false, base));
|
|
8553
8640
|
if (!DESCRIPTORS$2) {
|
|
8554
8641
|
that.href = state.serialize();
|
|
8555
8642
|
that.origin = state.getOrigin();
|
|
@@ -8624,13 +8711,13 @@ if (DESCRIPTORS$2) {
|
|
|
8624
8711
|
|
|
8625
8712
|
// `URL.prototype.toJSON` method
|
|
8626
8713
|
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
8627
|
-
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
8714
|
+
redefine$1(URLPrototype, 'toJSON', function toJSON() {
|
|
8628
8715
|
return getInternalURLState(this).serialize();
|
|
8629
8716
|
}, { enumerable: true });
|
|
8630
8717
|
|
|
8631
8718
|
// `URL.prototype.toString` method
|
|
8632
8719
|
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
8633
|
-
redefine(URLPrototype, 'toString', function toString() {
|
|
8720
|
+
redefine$1(URLPrototype, 'toString', function toString() {
|
|
8634
8721
|
return getInternalURLState(this).serialize();
|
|
8635
8722
|
}, { enumerable: true });
|
|
8636
8723
|
|
|
@@ -8639,15 +8726,15 @@ if (NativeURL) {
|
|
|
8639
8726
|
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
8640
8727
|
// `URL.createObjectURL` method
|
|
8641
8728
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
8642
|
-
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8729
|
+
if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8643
8730
|
// `URL.revokeObjectURL` method
|
|
8644
8731
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
8645
|
-
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8732
|
+
if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8646
8733
|
}
|
|
8647
8734
|
|
|
8648
|
-
setToStringTag(URLConstructor, 'URL');
|
|
8735
|
+
setToStringTag$1(URLConstructor, 'URL');
|
|
8649
8736
|
|
|
8650
|
-
$$
|
|
8737
|
+
$$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
|
|
8651
8738
|
URL: URLConstructor
|
|
8652
8739
|
});
|
|
8653
8740
|
|
|
@@ -8764,7 +8851,7 @@ function isNumber(val) {
|
|
|
8764
8851
|
* @param {Object} val The value to test
|
|
8765
8852
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
8766
8853
|
*/
|
|
8767
|
-
function isObject(val) {
|
|
8854
|
+
function isObject$2(val) {
|
|
8768
8855
|
return val !== null && typeof val === 'object';
|
|
8769
8856
|
}
|
|
8770
8857
|
|
|
@@ -8846,7 +8933,7 @@ function isFunction(val) {
|
|
|
8846
8933
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
8847
8934
|
*/
|
|
8848
8935
|
function isStream(val) {
|
|
8849
|
-
return isObject(val) && isFunction(val.pipe);
|
|
8936
|
+
return isObject$2(val) && isFunction(val.pipe);
|
|
8850
8937
|
}
|
|
8851
8938
|
|
|
8852
8939
|
/**
|
|
@@ -9150,7 +9237,7 @@ var utils$m = {
|
|
|
9150
9237
|
isArrayBufferView: isArrayBufferView,
|
|
9151
9238
|
isString: isString,
|
|
9152
9239
|
isNumber: isNumber,
|
|
9153
|
-
isObject: isObject,
|
|
9240
|
+
isObject: isObject$2,
|
|
9154
9241
|
isPlainObject: isPlainObject,
|
|
9155
9242
|
isEmptyObject: isEmptyObject,
|
|
9156
9243
|
isUndefined: isUndefined,
|
|
@@ -11933,13 +12020,13 @@ var lib = {
|
|
|
11933
12020
|
stringify: stringify
|
|
11934
12021
|
};
|
|
11935
12022
|
|
|
11936
|
-
var global$
|
|
12023
|
+
var global$3 = global$U;
|
|
11937
12024
|
var aCallable = aCallable$7;
|
|
11938
12025
|
var toObject = toObject$9;
|
|
11939
12026
|
var IndexedObject = indexedObject;
|
|
11940
12027
|
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
11941
12028
|
|
|
11942
|
-
var TypeError$1 = global$
|
|
12029
|
+
var TypeError$1 = global$3.TypeError;
|
|
11943
12030
|
|
|
11944
12031
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
11945
12032
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -11977,7 +12064,7 @@ var arrayReduce = {
|
|
|
11977
12064
|
right: createMethod$1(true)
|
|
11978
12065
|
};
|
|
11979
12066
|
|
|
11980
|
-
var $$
|
|
12067
|
+
var $$5 = _export;
|
|
11981
12068
|
var $reduce = arrayReduce.left;
|
|
11982
12069
|
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
11983
12070
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -11990,7 +12077,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
11990
12077
|
|
|
11991
12078
|
// `Array.prototype.reduce` method
|
|
11992
12079
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
11993
|
-
$$
|
|
12080
|
+
$$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
11994
12081
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
11995
12082
|
var length = arguments.length;
|
|
11996
12083
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -12494,13 +12581,13 @@ var PayPalCharge = {
|
|
|
12494
12581
|
|
|
12495
12582
|
var DESCRIPTORS$1 = descriptors$1;
|
|
12496
12583
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
12497
|
-
var uncurryThis$
|
|
12584
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
12498
12585
|
var defineProperty = objectDefineProperty.f;
|
|
12499
12586
|
|
|
12500
12587
|
var FunctionPrototype = Function.prototype;
|
|
12501
|
-
var functionToString = uncurryThis$
|
|
12588
|
+
var functionToString = uncurryThis$4(FunctionPrototype.toString);
|
|
12502
12589
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
12503
|
-
var regExpExec = uncurryThis$
|
|
12590
|
+
var regExpExec = uncurryThis$4(nameRE.exec);
|
|
12504
12591
|
var NAME = 'name';
|
|
12505
12592
|
|
|
12506
12593
|
// Function instances `.name` property
|
|
@@ -17894,13 +17981,13 @@ function encrypt(toEncrypt) {
|
|
|
17894
17981
|
}
|
|
17895
17982
|
|
|
17896
17983
|
var DESCRIPTORS = descriptors$1;
|
|
17897
|
-
var uncurryThis$
|
|
17984
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
17898
17985
|
var objectKeys = objectKeys$3;
|
|
17899
17986
|
var toIndexedObject = toIndexedObject$8;
|
|
17900
17987
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
17901
17988
|
|
|
17902
|
-
var propertyIsEnumerable = uncurryThis$
|
|
17903
|
-
var push = uncurryThis$
|
|
17989
|
+
var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
|
|
17990
|
+
var push = uncurryThis$3([].push);
|
|
17904
17991
|
|
|
17905
17992
|
// `Object.{ entries, values }` methods implementation
|
|
17906
17993
|
var createMethod = function (TO_ENTRIES) {
|
|
@@ -17930,18 +18017,18 @@ var objectToArray = {
|
|
|
17930
18017
|
values: createMethod(false)
|
|
17931
18018
|
};
|
|
17932
18019
|
|
|
17933
|
-
var $$
|
|
18020
|
+
var $$4 = _export;
|
|
17934
18021
|
var $values = objectToArray.values;
|
|
17935
18022
|
|
|
17936
18023
|
// `Object.values` method
|
|
17937
18024
|
// https://tc39.es/ecma262/#sec-object.values
|
|
17938
|
-
$$
|
|
18025
|
+
$$4({ target: 'Object', stat: true }, {
|
|
17939
18026
|
values: function values(O) {
|
|
17940
18027
|
return $values(O);
|
|
17941
18028
|
}
|
|
17942
18029
|
});
|
|
17943
18030
|
|
|
17944
|
-
var $$
|
|
18031
|
+
var $$3 = _export;
|
|
17945
18032
|
var $find = arrayIteration.find;
|
|
17946
18033
|
var addToUnscopables = addToUnscopables$3;
|
|
17947
18034
|
|
|
@@ -17953,7 +18040,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
17953
18040
|
|
|
17954
18041
|
// `Array.prototype.find` method
|
|
17955
18042
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
17956
|
-
$$
|
|
18043
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
17957
18044
|
find: function find(callbackfn /* , that = undefined */) {
|
|
17958
18045
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
17959
18046
|
}
|
|
@@ -20387,6 +20474,10 @@ var MobileMoneyAPI = {
|
|
|
20387
20474
|
}
|
|
20388
20475
|
};
|
|
20389
20476
|
|
|
20477
|
+
// Charge statuses that leave the transaction with a Pusher channel worth listening on.
|
|
20478
|
+
// `awaiting_ussd_confirmation` is mid-flight, not settled, but it still carries the
|
|
20479
|
+
// `channel_name` the outcome will arrive on.
|
|
20480
|
+
var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
|
|
20390
20481
|
function validate$1(phoneNumber) {
|
|
20391
20482
|
return new Promise(function (resolve, reject) {
|
|
20392
20483
|
var validation = PhoneNumber.validate(phoneNumber);
|
|
@@ -20426,9 +20517,9 @@ var MobileMoneyCharge = {
|
|
|
20426
20517
|
mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
|
|
20427
20518
|
var _this = this;
|
|
20428
20519
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20429
|
-
if (response.status
|
|
20520
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20430
20521
|
_this.mobileMoney = response;
|
|
20431
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20522
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20432
20523
|
_this.logTokenRequest('mobile money');
|
|
20433
20524
|
}
|
|
20434
20525
|
}
|
|
@@ -20478,9 +20569,9 @@ var MobileMoneyCharge = {
|
|
|
20478
20569
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20479
20570
|
});
|
|
20480
20571
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20481
|
-
if (response.status
|
|
20572
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20482
20573
|
_this3.mobileMoney = response;
|
|
20483
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20574
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20484
20575
|
_this3.logTokenRequest('mobile money');
|
|
20485
20576
|
}
|
|
20486
20577
|
} else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
|
|
@@ -20503,17 +20594,33 @@ var MobileMoneyCharge = {
|
|
|
20503
20594
|
});
|
|
20504
20595
|
},
|
|
20505
20596
|
listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
|
|
20506
|
-
|
|
20597
|
+
var _ref2 = this.mobileMoney.data || {},
|
|
20598
|
+
channel = _ref2.channel,
|
|
20599
|
+
channelName = _ref2.channel_name;
|
|
20600
|
+
var listenerChannel = channel || channelName;
|
|
20601
|
+
if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
|
|
20507
20602
|
return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
|
|
20508
20603
|
}
|
|
20509
|
-
var _this$mobileMoney$dat = this.mobileMoney.data,
|
|
20510
|
-
channel = _this$mobileMoney$dat.channel,
|
|
20511
|
-
channelName = _this$mobileMoney$dat.channel_name;
|
|
20512
20604
|
var listenerOptions = {
|
|
20513
|
-
channel:
|
|
20605
|
+
channel: listenerChannel,
|
|
20514
20606
|
paymentMethod: 'mobile_money'
|
|
20515
20607
|
};
|
|
20516
20608
|
return this.listenForCharge(listenerOptions, callback);
|
|
20609
|
+
},
|
|
20610
|
+
// Unlike every sibling listener, this returns a teardown function rather than a
|
|
20611
|
+
// promise, so it throws synchronously instead of rejecting. A caller in a
|
|
20612
|
+
// non-async event handler gets an uncaught throw, not an unhandled rejection.
|
|
20613
|
+
listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
|
|
20614
|
+
var data = this.mobileMoney.data;
|
|
20615
|
+
var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
|
|
20616
|
+
if (!confirmationChannel) {
|
|
20617
|
+
throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
|
|
20618
|
+
}
|
|
20619
|
+
var listenerOptions = {
|
|
20620
|
+
channel: confirmationChannel,
|
|
20621
|
+
paymentMethod: 'mobile_money'
|
|
20622
|
+
};
|
|
20623
|
+
return subscribeToConfirmationEvents(listenerOptions, this, callback);
|
|
20517
20624
|
}
|
|
20518
20625
|
};
|
|
20519
20626
|
|
|
@@ -20674,7 +20781,7 @@ var DirectDebitCharge = {
|
|
|
20674
20781
|
};
|
|
20675
20782
|
|
|
20676
20783
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
20677
|
-
var fails$
|
|
20784
|
+
var fails$2 = fails$x;
|
|
20678
20785
|
var whitespaces = whitespaces$3;
|
|
20679
20786
|
|
|
20680
20787
|
var non = '\u200B\u0085\u180E';
|
|
@@ -20682,20 +20789,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
20682
20789
|
// check that a method works with the correct list
|
|
20683
20790
|
// of whitespaces and has a correct name
|
|
20684
20791
|
var stringTrimForced = function (METHOD_NAME) {
|
|
20685
|
-
return fails$
|
|
20792
|
+
return fails$2(function () {
|
|
20686
20793
|
return !!whitespaces[METHOD_NAME]()
|
|
20687
20794
|
|| non[METHOD_NAME]() !== non
|
|
20688
20795
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
20689
20796
|
});
|
|
20690
20797
|
};
|
|
20691
20798
|
|
|
20692
|
-
var $$
|
|
20799
|
+
var $$2 = _export;
|
|
20693
20800
|
var $trim = stringTrim.trim;
|
|
20694
20801
|
var forcedStringTrimMethod = stringTrimForced;
|
|
20695
20802
|
|
|
20696
20803
|
// `String.prototype.trim` method
|
|
20697
20804
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
20698
|
-
$$
|
|
20805
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
20699
20806
|
trim: function trim() {
|
|
20700
20807
|
return $trim(this);
|
|
20701
20808
|
}
|
|
@@ -20934,6 +21041,374 @@ var InstalmentsCharge = {
|
|
|
20934
21041
|
}
|
|
20935
21042
|
};
|
|
20936
21043
|
|
|
21044
|
+
var $$1 = _export;
|
|
21045
|
+
var global$2 = global$U;
|
|
21046
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
21047
|
+
var isForced = isForced_1;
|
|
21048
|
+
var redefine = redefine$b.exports;
|
|
21049
|
+
var InternalMetadataModule = internalMetadata.exports;
|
|
21050
|
+
var iterate$1 = iterate$3;
|
|
21051
|
+
var anInstance$1 = anInstance$5;
|
|
21052
|
+
var isCallable = isCallable$l;
|
|
21053
|
+
var isObject$1 = isObject$k;
|
|
21054
|
+
var fails$1 = fails$x;
|
|
21055
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
21056
|
+
var setToStringTag = setToStringTag$6;
|
|
21057
|
+
var inheritIfRequired = inheritIfRequired$3;
|
|
21058
|
+
|
|
21059
|
+
var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
21060
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
21061
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
21062
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
21063
|
+
var NativeConstructor = global$2[CONSTRUCTOR_NAME];
|
|
21064
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
21065
|
+
var Constructor = NativeConstructor;
|
|
21066
|
+
var exported = {};
|
|
21067
|
+
|
|
21068
|
+
var fixMethod = function (KEY) {
|
|
21069
|
+
var uncurriedNativeMethod = uncurryThis$2(NativePrototype[KEY]);
|
|
21070
|
+
redefine(NativePrototype, KEY,
|
|
21071
|
+
KEY == 'add' ? function add(value) {
|
|
21072
|
+
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
21073
|
+
return this;
|
|
21074
|
+
} : KEY == 'delete' ? function (key) {
|
|
21075
|
+
return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21076
|
+
} : KEY == 'get' ? function get(key) {
|
|
21077
|
+
return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21078
|
+
} : KEY == 'has' ? function has(key) {
|
|
21079
|
+
return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21080
|
+
} : function set(key, value) {
|
|
21081
|
+
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
21082
|
+
return this;
|
|
21083
|
+
}
|
|
21084
|
+
);
|
|
21085
|
+
};
|
|
21086
|
+
|
|
21087
|
+
var REPLACE = isForced(
|
|
21088
|
+
CONSTRUCTOR_NAME,
|
|
21089
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
|
|
21090
|
+
new NativeConstructor().entries().next();
|
|
21091
|
+
}))
|
|
21092
|
+
);
|
|
21093
|
+
|
|
21094
|
+
if (REPLACE) {
|
|
21095
|
+
// create collection constructor
|
|
21096
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
21097
|
+
InternalMetadataModule.enable();
|
|
21098
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
21099
|
+
var instance = new Constructor();
|
|
21100
|
+
// early implementations not supports chaining
|
|
21101
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
21102
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
21103
|
+
var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
|
|
21104
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
21105
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
21106
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
21107
|
+
// for early implementations -0 and +0 not the same
|
|
21108
|
+
var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
|
|
21109
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
21110
|
+
var $instance = new NativeConstructor();
|
|
21111
|
+
var index = 5;
|
|
21112
|
+
while (index--) $instance[ADDER](index, index);
|
|
21113
|
+
return !$instance.has(-0);
|
|
21114
|
+
});
|
|
21115
|
+
|
|
21116
|
+
if (!ACCEPT_ITERABLES) {
|
|
21117
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
21118
|
+
anInstance$1(dummy, NativePrototype);
|
|
21119
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
21120
|
+
if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21121
|
+
return that;
|
|
21122
|
+
});
|
|
21123
|
+
Constructor.prototype = NativePrototype;
|
|
21124
|
+
NativePrototype.constructor = Constructor;
|
|
21125
|
+
}
|
|
21126
|
+
|
|
21127
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
21128
|
+
fixMethod('delete');
|
|
21129
|
+
fixMethod('has');
|
|
21130
|
+
IS_MAP && fixMethod('get');
|
|
21131
|
+
}
|
|
21132
|
+
|
|
21133
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
21134
|
+
|
|
21135
|
+
// weak collections should not contains .clear method
|
|
21136
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
21137
|
+
}
|
|
21138
|
+
|
|
21139
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
21140
|
+
$$1({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
21141
|
+
|
|
21142
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
21143
|
+
|
|
21144
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
21145
|
+
|
|
21146
|
+
return Constructor;
|
|
21147
|
+
};
|
|
21148
|
+
|
|
21149
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
21150
|
+
var redefineAll = redefineAll$3;
|
|
21151
|
+
var getWeakData = internalMetadata.exports.getWeakData;
|
|
21152
|
+
var anObject = anObject$f;
|
|
21153
|
+
var isObject = isObject$k;
|
|
21154
|
+
var anInstance = anInstance$5;
|
|
21155
|
+
var iterate = iterate$3;
|
|
21156
|
+
var ArrayIterationModule = arrayIteration;
|
|
21157
|
+
var hasOwn = hasOwnProperty_1;
|
|
21158
|
+
var InternalStateModule = internalState;
|
|
21159
|
+
|
|
21160
|
+
var setInternalState = InternalStateModule.set;
|
|
21161
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
21162
|
+
var find = ArrayIterationModule.find;
|
|
21163
|
+
var findIndex = ArrayIterationModule.findIndex;
|
|
21164
|
+
var splice = uncurryThis$1([].splice);
|
|
21165
|
+
var id = 0;
|
|
21166
|
+
|
|
21167
|
+
// fallback for uncaught frozen keys
|
|
21168
|
+
var uncaughtFrozenStore = function (store) {
|
|
21169
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
21170
|
+
};
|
|
21171
|
+
|
|
21172
|
+
var UncaughtFrozenStore = function () {
|
|
21173
|
+
this.entries = [];
|
|
21174
|
+
};
|
|
21175
|
+
|
|
21176
|
+
var findUncaughtFrozen = function (store, key) {
|
|
21177
|
+
return find(store.entries, function (it) {
|
|
21178
|
+
return it[0] === key;
|
|
21179
|
+
});
|
|
21180
|
+
};
|
|
21181
|
+
|
|
21182
|
+
UncaughtFrozenStore.prototype = {
|
|
21183
|
+
get: function (key) {
|
|
21184
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21185
|
+
if (entry) return entry[1];
|
|
21186
|
+
},
|
|
21187
|
+
has: function (key) {
|
|
21188
|
+
return !!findUncaughtFrozen(this, key);
|
|
21189
|
+
},
|
|
21190
|
+
set: function (key, value) {
|
|
21191
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21192
|
+
if (entry) entry[1] = value;
|
|
21193
|
+
else this.entries.push([key, value]);
|
|
21194
|
+
},
|
|
21195
|
+
'delete': function (key) {
|
|
21196
|
+
var index = findIndex(this.entries, function (it) {
|
|
21197
|
+
return it[0] === key;
|
|
21198
|
+
});
|
|
21199
|
+
if (~index) splice(this.entries, index, 1);
|
|
21200
|
+
return !!~index;
|
|
21201
|
+
}
|
|
21202
|
+
};
|
|
21203
|
+
|
|
21204
|
+
var collectionWeak$1 = {
|
|
21205
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
21206
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
21207
|
+
anInstance(that, Prototype);
|
|
21208
|
+
setInternalState(that, {
|
|
21209
|
+
type: CONSTRUCTOR_NAME,
|
|
21210
|
+
id: id++,
|
|
21211
|
+
frozen: undefined
|
|
21212
|
+
});
|
|
21213
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21214
|
+
});
|
|
21215
|
+
|
|
21216
|
+
var Prototype = Constructor.prototype;
|
|
21217
|
+
|
|
21218
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
21219
|
+
|
|
21220
|
+
var define = function (that, key, value) {
|
|
21221
|
+
var state = getInternalState(that);
|
|
21222
|
+
var data = getWeakData(anObject(key), true);
|
|
21223
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
21224
|
+
else data[state.id] = value;
|
|
21225
|
+
return that;
|
|
21226
|
+
};
|
|
21227
|
+
|
|
21228
|
+
redefineAll(Prototype, {
|
|
21229
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
21230
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
21231
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
21232
|
+
'delete': function (key) {
|
|
21233
|
+
var state = getInternalState(this);
|
|
21234
|
+
if (!isObject(key)) return false;
|
|
21235
|
+
var data = getWeakData(key);
|
|
21236
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
21237
|
+
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
21238
|
+
},
|
|
21239
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
21240
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
21241
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
21242
|
+
has: function has(key) {
|
|
21243
|
+
var state = getInternalState(this);
|
|
21244
|
+
if (!isObject(key)) return false;
|
|
21245
|
+
var data = getWeakData(key);
|
|
21246
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
21247
|
+
return data && hasOwn(data, state.id);
|
|
21248
|
+
}
|
|
21249
|
+
});
|
|
21250
|
+
|
|
21251
|
+
redefineAll(Prototype, IS_MAP ? {
|
|
21252
|
+
// `WeakMap.prototype.get(key)` method
|
|
21253
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
21254
|
+
get: function get(key) {
|
|
21255
|
+
var state = getInternalState(this);
|
|
21256
|
+
if (isObject(key)) {
|
|
21257
|
+
var data = getWeakData(key);
|
|
21258
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
21259
|
+
return data ? data[state.id] : undefined;
|
|
21260
|
+
}
|
|
21261
|
+
},
|
|
21262
|
+
// `WeakMap.prototype.set(key, value)` method
|
|
21263
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
21264
|
+
set: function set(key, value) {
|
|
21265
|
+
return define(this, key, value);
|
|
21266
|
+
}
|
|
21267
|
+
} : {
|
|
21268
|
+
// `WeakSet.prototype.add(value)` method
|
|
21269
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
21270
|
+
add: function add(value) {
|
|
21271
|
+
return define(this, value, true);
|
|
21272
|
+
}
|
|
21273
|
+
});
|
|
21274
|
+
|
|
21275
|
+
return Constructor;
|
|
21276
|
+
}
|
|
21277
|
+
};
|
|
21278
|
+
|
|
21279
|
+
var collection = collection$1;
|
|
21280
|
+
var collectionWeak = collectionWeak$1;
|
|
21281
|
+
|
|
21282
|
+
// `WeakSet` constructor
|
|
21283
|
+
// https://tc39.es/ecma262/#sec-weakset-constructor
|
|
21284
|
+
collection('WeakSet', function (init) {
|
|
21285
|
+
return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
21286
|
+
}, collectionWeak);
|
|
21287
|
+
|
|
21288
|
+
// The server refuses a charge with a 4xx carrying the merchant-safe reason, which axios rejects
|
|
21289
|
+
// on. Parse it so the reason reaches the customer. Charge-only: a refusal here means no order was
|
|
21290
|
+
// created, whereas a transport failure on the status poll says nothing about the payment.
|
|
21291
|
+
var parseChargeRefusal = function parseChargeRefusal(error) {
|
|
21292
|
+
if (!error.response) throw error;
|
|
21293
|
+
return ChargeResponses.parse(error.response.data);
|
|
21294
|
+
};
|
|
21295
|
+
var PayflexAPI = {
|
|
21296
|
+
charge: function charge(_ref) {
|
|
21297
|
+
var accessCode = _ref.accessCode,
|
|
21298
|
+
publicKey = _ref.publicKey,
|
|
21299
|
+
deviceFingerprint = _ref.deviceFingerprint,
|
|
21300
|
+
checkoutMode = _ref.checkoutMode,
|
|
21301
|
+
successUrl = _ref.successUrl,
|
|
21302
|
+
cancelUrl = _ref.cancelUrl;
|
|
21303
|
+
var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
|
|
21304
|
+
var language = getLanguage();
|
|
21305
|
+
var headers = _objectSpread2({
|
|
21306
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21307
|
+
}, language && {
|
|
21308
|
+
'Accept-Language': language
|
|
21309
|
+
});
|
|
21310
|
+
var params = _objectSpread2(_objectSpread2({
|
|
21311
|
+
access_code: accessCode
|
|
21312
|
+
}, deviceFingerprint && {
|
|
21313
|
+
device_id: deviceFingerprint
|
|
21314
|
+
}), {}, {
|
|
21315
|
+
payflex: _objectSpread2(_objectSpread2(_objectSpread2({}, checkoutMode && {
|
|
21316
|
+
checkout_mode: checkoutMode
|
|
21317
|
+
}), successUrl && {
|
|
21318
|
+
success_url: successUrl
|
|
21319
|
+
}), cancelUrl && {
|
|
21320
|
+
cancel_url: cancelUrl
|
|
21321
|
+
})
|
|
21322
|
+
});
|
|
21323
|
+
return axiosInstance.post(url, params, {
|
|
21324
|
+
headers: headers
|
|
21325
|
+
}).then(function (response) {
|
|
21326
|
+
return ChargeResponses.parse(response.data);
|
|
21327
|
+
}).catch(parseChargeRefusal);
|
|
21328
|
+
},
|
|
21329
|
+
// Deliberately has no error branch. Only a 2xx body is an answer about the payment; a 404, a
|
|
21330
|
+
// proxy 5xx or an expired key is the poll failing to reach a verdict, and resolving those to
|
|
21331
|
+
// `failed` would have checkout conclude an outcome the server never gave it.
|
|
21332
|
+
requery: function requery(_ref2) {
|
|
21333
|
+
var transactionReference = _ref2.transactionReference,
|
|
21334
|
+
publicKey = _ref2.publicKey;
|
|
21335
|
+
var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
|
|
21336
|
+
var language = getLanguage();
|
|
21337
|
+
var headers = _objectSpread2({
|
|
21338
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21339
|
+
}, language && {
|
|
21340
|
+
'Accept-Language': language
|
|
21341
|
+
});
|
|
21342
|
+
return axiosInstance.get(url, {
|
|
21343
|
+
headers: headers
|
|
21344
|
+
}).then(function (response) {
|
|
21345
|
+
return ChargeResponses.parse(response.data);
|
|
21346
|
+
});
|
|
21347
|
+
}
|
|
21348
|
+
};
|
|
21349
|
+
|
|
21350
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
21351
|
+
var PAYFLEX_CHANNEL = 'payflex';
|
|
21352
|
+
|
|
21353
|
+
// Checkout may never conclude failure on a timer, so the poll runs long, and saveLog() re-POSTs the
|
|
21354
|
+
// whole history on every entry. One pending entry per run of non-terminal polls; a terminal answer
|
|
21355
|
+
// clears it so a retried hand-off logs its own.
|
|
21356
|
+
var pendingLogged = new WeakSet();
|
|
21357
|
+
var PayflexCharge = {
|
|
21358
|
+
chargePayflex: function chargePayflex() {
|
|
21359
|
+
var _this = this;
|
|
21360
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21361
|
+
checkoutMode = _ref.checkoutMode,
|
|
21362
|
+
successUrl = _ref.successUrl,
|
|
21363
|
+
cancelUrl = _ref.cancelUrl;
|
|
21364
|
+
this.logAttempt(PAYFLEX_CHANNEL);
|
|
21365
|
+
if (checkoutMode) {
|
|
21366
|
+
this.logPayflexPresentationMode(checkoutMode);
|
|
21367
|
+
}
|
|
21368
|
+
return PayflexAPI.charge({
|
|
21369
|
+
accessCode: this.accessCode,
|
|
21370
|
+
publicKey: this.merchant.key,
|
|
21371
|
+
deviceFingerprint: this.deviceFingerprint,
|
|
21372
|
+
checkoutMode: checkoutMode,
|
|
21373
|
+
successUrl: successUrl,
|
|
21374
|
+
cancelUrl: cancelUrl
|
|
21375
|
+
}).then(function (response) {
|
|
21376
|
+
var usedMode = response.data && response.data.checkout_mode;
|
|
21377
|
+
if (checkoutMode && usedMode && usedMode !== checkoutMode) {
|
|
21378
|
+
_this.logPayflexPresentationModeMismatch({
|
|
21379
|
+
requested: checkoutMode,
|
|
21380
|
+
used: usedMode
|
|
21381
|
+
});
|
|
21382
|
+
}
|
|
21383
|
+
_this.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21384
|
+
return response;
|
|
21385
|
+
});
|
|
21386
|
+
},
|
|
21387
|
+
requeryPayflex: function requeryPayflex() {
|
|
21388
|
+
var _this2 = this;
|
|
21389
|
+
return PayflexAPI.requery({
|
|
21390
|
+
transactionReference: this.reference,
|
|
21391
|
+
publicKey: this.merchant.key
|
|
21392
|
+
}).then(function (response) {
|
|
21393
|
+
if (response.status !== 'pending') {
|
|
21394
|
+
pendingLogged.delete(_this2);
|
|
21395
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21396
|
+
} else if (!pendingLogged.has(_this2)) {
|
|
21397
|
+
pendingLogged.add(_this2);
|
|
21398
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21399
|
+
}
|
|
21400
|
+
return response;
|
|
21401
|
+
});
|
|
21402
|
+
},
|
|
21403
|
+
listenForPayflexCharge: function listenForPayflexCharge(callback) {
|
|
21404
|
+
var listenerOptions = {
|
|
21405
|
+
paymentMethod: PAYFLEX_CHANNEL,
|
|
21406
|
+
channel: "PAYFLEX_".concat(this.id)
|
|
21407
|
+
};
|
|
21408
|
+
return this.listenForCharge(listenerOptions, callback);
|
|
21409
|
+
}
|
|
21410
|
+
};
|
|
21411
|
+
|
|
20937
21412
|
var ChargeFunctions = {
|
|
20938
21413
|
get: function get(channel) {
|
|
20939
21414
|
var chargeFunctions = {
|
|
@@ -20951,7 +21426,8 @@ var ChargeFunctions = {
|
|
|
20951
21426
|
paypal: PayPalCharge,
|
|
20952
21427
|
capitec_pay: CapitecPayCharge,
|
|
20953
21428
|
union_pay: ChinaUnionPayCharge,
|
|
20954
|
-
instalments: InstalmentsCharge
|
|
21429
|
+
instalments: InstalmentsCharge,
|
|
21430
|
+
payflex: PayflexCharge
|
|
20955
21431
|
};
|
|
20956
21432
|
return chargeFunctions[channel];
|
|
20957
21433
|
}
|
|
@@ -20995,11 +21471,11 @@ var AnalyticsUtils = {
|
|
|
20995
21471
|
};
|
|
20996
21472
|
|
|
20997
21473
|
var $ = _export;
|
|
20998
|
-
var global$1 = global$
|
|
21474
|
+
var global$1 = global$U;
|
|
20999
21475
|
var getBuiltIn = getBuiltIn$a;
|
|
21000
21476
|
var apply = functionApply;
|
|
21001
21477
|
var uncurryThis = functionUncurryThis;
|
|
21002
|
-
var fails = fails$
|
|
21478
|
+
var fails = fails$x;
|
|
21003
21479
|
|
|
21004
21480
|
var Array$1 = global$1.Array;
|
|
21005
21481
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -21164,7 +21640,36 @@ var CapitecPayAnalytics = {
|
|
|
21164
21640
|
}
|
|
21165
21641
|
};
|
|
21166
21642
|
|
|
21167
|
-
var
|
|
21643
|
+
var PayflexAnalytics = {
|
|
21644
|
+
logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
|
|
21645
|
+
return this.logHistoryEntry({
|
|
21646
|
+
type: 'action',
|
|
21647
|
+
message: "Opening Payflex as: ".concat(checkoutMode),
|
|
21648
|
+
channel: PAYFLEX_CHANNEL,
|
|
21649
|
+
time: this.getTimeSpent()
|
|
21650
|
+
});
|
|
21651
|
+
},
|
|
21652
|
+
logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
|
|
21653
|
+
var requested = _ref.requested,
|
|
21654
|
+
used = _ref.used;
|
|
21655
|
+
return this.logHistoryEntry({
|
|
21656
|
+
type: 'action',
|
|
21657
|
+
message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
|
|
21658
|
+
channel: PAYFLEX_CHANNEL,
|
|
21659
|
+
time: this.getTimeSpent()
|
|
21660
|
+
});
|
|
21661
|
+
},
|
|
21662
|
+
logPayflexStatusRecheck: function logPayflexStatusRecheck() {
|
|
21663
|
+
return this.logHistoryEntry({
|
|
21664
|
+
type: 'action',
|
|
21665
|
+
message: 'Selected check payment status again',
|
|
21666
|
+
channel: PAYFLEX_CHANNEL,
|
|
21667
|
+
time: this.getTimeSpent()
|
|
21668
|
+
});
|
|
21669
|
+
}
|
|
21670
|
+
};
|
|
21671
|
+
|
|
21672
|
+
var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
|
|
21168
21673
|
initializeLog: function initializeLog(log) {
|
|
21169
21674
|
this.log = AnalyticsUtils.initializeLog(log);
|
|
21170
21675
|
},
|