@paystack/checkout-js 1.57.0-beta.1 → 1.57.0-beta.10
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 +1288 -705
- package/es/checkout.js +1288 -705
- package/lib/checkout.js +1288 -705
- 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$V =
|
|
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$A = 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$A(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$z = functionUncurryThis;
|
|
1127
1127
|
|
|
1128
|
-
var toString$b = uncurryThis$
|
|
1129
|
-
var stringSlice$4 = uncurryThis$
|
|
1128
|
+
var toString$b = uncurryThis$z({}.toString);
|
|
1129
|
+
var stringSlice$4 = uncurryThis$z(''.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$U = global$V;
|
|
1136
|
+
var uncurryThis$y = 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$U.Object;
|
|
1141
|
+
var split$4 = uncurryThis$y(''.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$T = global$V;
|
|
1153
1153
|
|
|
1154
|
-
var TypeError$j = global$
|
|
1154
|
+
var TypeError$j = global$T.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$l = 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$S = global$V;
|
|
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$S[namespace]) : global$S[namespace] && global$S[namespace][method];
|
|
1192
1192
|
};
|
|
1193
1193
|
|
|
1194
|
-
var uncurryThis$
|
|
1194
|
+
var uncurryThis$x = functionUncurryThis;
|
|
1195
1195
|
|
|
1196
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
1196
|
+
var objectIsPrototypeOf = uncurryThis$x({}.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$R = global$V;
|
|
1203
1203
|
var userAgent$5 = engineUserAgent;
|
|
1204
1204
|
|
|
1205
|
-
var process$4 = global$
|
|
1206
|
-
var Deno = global$
|
|
1205
|
+
var process$4 = global$R.process;
|
|
1206
|
+
var Deno = global$R.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$Q = global$V;
|
|
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$Q.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$P = global$V;
|
|
1269
1269
|
|
|
1270
|
-
var String$5 = global$
|
|
1270
|
+
var String$5 = global$P.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$O = global$V;
|
|
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$O.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$N = global$V;
|
|
1302
1302
|
var call$d = functionCall;
|
|
1303
|
-
var isCallable$
|
|
1304
|
-
var isObject$
|
|
1303
|
+
var isCallable$g = isCallable$l;
|
|
1304
|
+
var isObject$k = isObject$l;
|
|
1305
1305
|
|
|
1306
|
-
var TypeError$h = global$
|
|
1306
|
+
var TypeError$h = global$N.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$k(val = call$d(fn, input))) return val;
|
|
1313
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1314
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$k(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$M = global$V;
|
|
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$M, key, { value: value, configurable: true, writable: true });
|
|
1330
1330
|
} catch (error) {
|
|
1331
|
-
global$
|
|
1331
|
+
global$M[key] = value;
|
|
1332
1332
|
} return value;
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
|
-
var global$
|
|
1335
|
+
var global$L = global$V;
|
|
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$L[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$K = global$V;
|
|
1356
1356
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
1357
1357
|
|
|
1358
|
-
var Object$3 = global$
|
|
1358
|
+
var Object$3 = global$K.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$w = functionUncurryThis;
|
|
1367
1367
|
var toObject$8 = toObject$9;
|
|
1368
1368
|
|
|
1369
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
1369
|
+
var hasOwnProperty$1 = uncurryThis$w({}.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$v = 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$v(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$J = global$V;
|
|
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$J.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$I = global$V;
|
|
1413
1413
|
var call$c = functionCall;
|
|
1414
|
-
var isObject$
|
|
1414
|
+
var isObject$j = isObject$l;
|
|
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$I.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$j(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$j(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$H = global$V;
|
|
1450
|
+
var isObject$i = isObject$l;
|
|
1451
1451
|
|
|
1452
|
-
var document$3 = global$
|
|
1452
|
+
var document$3 = global$H.document;
|
|
1453
1453
|
// typeof document.createElement is 'object' in old IE
|
|
1454
|
-
var EXISTS$1 = isObject$
|
|
1454
|
+
var EXISTS$1 = isObject$i(document$3) && isObject$i(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$G = global$V;
|
|
1511
|
+
var isObject$h = isObject$l;
|
|
1512
1512
|
|
|
1513
|
-
var String$4 = global$
|
|
1514
|
-
var TypeError$f = global$
|
|
1513
|
+
var String$4 = global$G.String;
|
|
1514
|
+
var TypeError$f = global$G.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$h(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$F = global$V;
|
|
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$F.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$u = 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$u(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$E = global$V;
|
|
1596
|
+
var isCallable$e = isCallable$l;
|
|
1597
1597
|
var inspectSource$3 = inspectSource$4;
|
|
1598
1598
|
|
|
1599
|
-
var WeakMap$
|
|
1599
|
+
var WeakMap$2 = global$E.WeakMap;
|
|
1600
1600
|
|
|
1601
|
-
var nativeWeakMap = isCallable$
|
|
1601
|
+
var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$3(WeakMap$2));
|
|
1602
1602
|
|
|
1603
1603
|
var shared$2 = shared$4.exports;
|
|
1604
1604
|
var uid$1 = uid$3;
|
|
@@ -1611,19 +1611,19 @@ var sharedKey$3 = function (key) {
|
|
|
1611
1611
|
|
|
1612
1612
|
var hiddenKeys$5 = {};
|
|
1613
1613
|
|
|
1614
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1615
|
-
var global$
|
|
1616
|
-
var uncurryThis$
|
|
1617
|
-
var isObject$
|
|
1614
|
+
var NATIVE_WEAK_MAP$1 = nativeWeakMap;
|
|
1615
|
+
var global$D = global$V;
|
|
1616
|
+
var uncurryThis$t = functionUncurryThis;
|
|
1617
|
+
var isObject$g = isObject$l;
|
|
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$D.TypeError;
|
|
1626
|
+
var WeakMap$1 = global$D.WeakMap;
|
|
1627
1627
|
var set$1, get, has$3;
|
|
1628
1628
|
|
|
1629
1629
|
var enforce = function (it) {
|
|
@@ -1633,17 +1633,17 @@ 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$g(it) || (state = get(it)).type !== TYPE) {
|
|
1637
1637
|
throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
|
|
1638
1638
|
} return state;
|
|
1639
1639
|
};
|
|
1640
1640
|
};
|
|
1641
1641
|
|
|
1642
|
-
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
1643
|
-
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
1644
|
-
var wmget = uncurryThis$
|
|
1645
|
-
var wmhas = uncurryThis$
|
|
1646
|
-
var wmset = uncurryThis$
|
|
1642
|
+
if (NATIVE_WEAK_MAP$1 || shared$1.state) {
|
|
1643
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
1644
|
+
var wmget = uncurryThis$t(store.get);
|
|
1645
|
+
var wmhas = uncurryThis$t(store.has);
|
|
1646
|
+
var wmset = uncurryThis$t(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,38 +1699,38 @@ var functionName = {
|
|
|
1699
1699
|
CONFIGURABLE: CONFIGURABLE
|
|
1700
1700
|
};
|
|
1701
1701
|
|
|
1702
|
-
var global$
|
|
1703
|
-
var isCallable$
|
|
1704
|
-
var hasOwn$
|
|
1702
|
+
var global$C = global$V;
|
|
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$1 = 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
|
-
state = enforceInternalState(value);
|
|
1728
|
+
state = enforceInternalState$1(value);
|
|
1729
1729
|
if (!state.source) {
|
|
1730
1730
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
if (O === global$
|
|
1733
|
+
if (O === global$C) {
|
|
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$s = 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$s([].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$r = 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$r([].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$B = global$V;
|
|
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$B;
|
|
1960
1960
|
} else if (STATIC) {
|
|
1961
|
-
target = global$
|
|
1961
|
+
target = global$B[TARGET] || setGlobal(TARGET, {});
|
|
1962
1962
|
} else {
|
|
1963
|
-
target = (global$
|
|
1963
|
+
target = (global$B[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$A = global$V;
|
|
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$A.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,59 +2051,59 @@ 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$f = isObject$l;
|
|
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$f(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$q = functionUncurryThis;
|
|
2080
2080
|
var hiddenKeys$1 = hiddenKeys$5;
|
|
2081
|
-
var isObject$
|
|
2082
|
-
var hasOwn$
|
|
2081
|
+
var isObject$e = isObject$l;
|
|
2082
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
2083
2083
|
var defineProperty$5 = objectDefineProperty.f;
|
|
2084
2084
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2085
2085
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
2086
|
-
var isExtensible = objectIsExtensible;
|
|
2086
|
+
var isExtensible$1 = 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$e(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
|
-
if (!isExtensible(it)) return 'F';
|
|
2106
|
+
if (!isExtensible$1(it)) return 'F';
|
|
2107
2107
|
// not necessary to add metadata
|
|
2108
2108
|
if (!create) return 'E';
|
|
2109
2109
|
// add missing metadata
|
|
@@ -2112,10 +2112,10 @@ 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
|
-
if (!isExtensible(it)) return true;
|
|
2118
|
+
if (!isExtensible$1(it)) return true;
|
|
2119
2119
|
// not necessary to add metadata
|
|
2120
2120
|
if (!create) return false;
|
|
2121
2121
|
// add missing 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$1(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$q([].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$d = isObject$l;
|
|
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$d(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$z = global$V;
|
|
2198
|
+
var isCallable$b = isCallable$l;
|
|
2199
2199
|
|
|
2200
|
-
var String$3 = global$
|
|
2201
|
-
var TypeError$c = global$
|
|
2200
|
+
var String$3 = global$z.String;
|
|
2201
|
+
var TypeError$c = global$z.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$p = 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$p(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$c = isObject$l;
|
|
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$c(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$y = global$V;
|
|
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$y.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$x = global$V;
|
|
2297
2297
|
var classof$6 = classof$7;
|
|
2298
2298
|
|
|
2299
|
-
var String$2 = global$
|
|
2299
|
+
var String$2 = global$x.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$b = isObject$l;
|
|
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$b(options) && 'cause' in options) {
|
|
2319
2319
|
createNonEnumerableProperty$4(O, 'cause', options.cause);
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
var uncurryThis$
|
|
2323
|
+
var uncurryThis$o = functionUncurryThis;
|
|
2324
2324
|
|
|
2325
|
-
var replace$7 = uncurryThis$
|
|
2325
|
+
var replace$7 = uncurryThis$o(''.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$w = global$V;
|
|
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$w[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$n = 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$n(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$v = global$V;
|
|
2528
2528
|
var isArray$8 = isArray$9;
|
|
2529
2529
|
var isConstructor$2 = isConstructor$3;
|
|
2530
|
-
var isObject$
|
|
2530
|
+
var isObject$a = isObject$l;
|
|
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$v.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$a(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$u = global$V;
|
|
2581
|
+
var fails$i = fails$x;
|
|
2582
2582
|
var isArray$7 = isArray$9;
|
|
2583
|
-
var isObject$
|
|
2583
|
+
var isObject$9 = isObject$l;
|
|
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$u.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$9(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$m = 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$m(uncurryThis$m.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$l = 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$l([].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$t = global$V;
|
|
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$t[COLLECTION_NAME$1] && global$t[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$s = global$V;
|
|
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$s.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$r = global$V;
|
|
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$r.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$q = global$V;
|
|
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$q.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$k = 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$k(''.charAt);
|
|
3085
|
+
var indexOf = uncurryThis$k(''.indexOf);
|
|
3086
|
+
var replace$6 = uncurryThis$k(''.replace);
|
|
3087
|
+
var stringSlice$3 = uncurryThis$k(''.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$p = global$V;
|
|
3198
3198
|
var call$8 = functionCall;
|
|
3199
|
-
var uncurryThis$
|
|
3200
|
-
var isCallable$
|
|
3201
|
-
var isObject$
|
|
3199
|
+
var uncurryThis$j = functionUncurryThis;
|
|
3200
|
+
var isCallable$7 = isCallable$l;
|
|
3201
|
+
var isObject$8 = isObject$l;
|
|
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$p.Error;
|
|
3214
|
+
var un$Test = uncurryThis$j(/./.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$8(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$i = 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$i(''.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$o = global$V;
|
|
3267
|
+
var fails$c = fails$x;
|
|
3268
|
+
var uncurryThis$h = 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$o.parseInt;
|
|
3274
|
+
var Symbol$1 = global$o.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$h(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$g = 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$g(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$n = global$V;
|
|
3306
|
+
var uncurryThis$f = 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$n[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$n.TypeError;
|
|
3325
|
+
var arraySlice$4 = uncurryThis$f(''.slice);
|
|
3326
|
+
var charCodeAt$3 = uncurryThis$f(''.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$n, 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$e = 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$e(test.sort);
|
|
3637
|
+
var push$5 = uncurryThis$e(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$d = 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$d([].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$m = global$V;
|
|
5178
5178
|
|
|
5179
|
-
var nativePromiseConstructor = global$
|
|
5179
|
+
var nativePromiseConstructor = global$m.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$4 = 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$l = global$V;
|
|
5221
5221
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
5222
5222
|
|
|
5223
|
-
var TypeError$9 = global$
|
|
5223
|
+
var TypeError$9 = global$l.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$k = global$V;
|
|
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$k.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$j = global$V;
|
|
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$j.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$i = global$V;
|
|
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$i.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$c = functionUncurryThis;
|
|
5428
5428
|
|
|
5429
|
-
var arraySlice$2 = uncurryThis$
|
|
5429
|
+
var arraySlice$2 = uncurryThis$c([].slice);
|
|
5430
5430
|
|
|
5431
|
-
var global$
|
|
5431
|
+
var global$h = global$V;
|
|
5432
5432
|
|
|
5433
|
-
var TypeError$5 = global$
|
|
5433
|
+
var TypeError$5 = global$h.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$g = global$V;
|
|
5446
5446
|
|
|
5447
|
-
var engineIsNode = classof$1(global$
|
|
5447
|
+
var engineIsNode = classof$1(global$g.process) == 'process';
|
|
5448
5448
|
|
|
5449
|
-
var global$
|
|
5449
|
+
var global$f = global$V;
|
|
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$f.setImmediate;
|
|
5463
|
+
var clear = global$f.clearImmediate;
|
|
5464
|
+
var process$3 = global$f.process;
|
|
5465
|
+
var Dispatch = global$f.Dispatch;
|
|
5466
|
+
var Function$1 = global$f.Function;
|
|
5467
|
+
var MessageChannel = global$f.MessageChannel;
|
|
5468
|
+
var String$1 = global$f.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$f.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$f.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$f.addEventListener &&
|
|
5538
|
+
isCallable$6(global$f.postMessage) &&
|
|
5539
|
+
!global$f.importScripts &&
|
|
5540
5540
|
location && location.protocol !== 'file:' &&
|
|
5541
|
-
!fails$
|
|
5541
|
+
!fails$9(post)
|
|
5542
5542
|
) {
|
|
5543
5543
|
defer = post;
|
|
5544
|
-
global$
|
|
5544
|
+
global$f.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$e = global$V;
|
|
5568
5568
|
|
|
5569
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
5569
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$e.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$d = global$V;
|
|
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$d.MutationObserver || global$d.WebKitMutationObserver;
|
|
5585
|
+
var document$2 = global$d.document;
|
|
5586
|
+
var process$2 = global$d.process;
|
|
5587
|
+
var Promise$1 = global$d.Promise;
|
|
5588
5588
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
5589
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
5589
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$d, '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$d);
|
|
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$7 = isObject$l;
|
|
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$7(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$c = global$V;
|
|
5696
5696
|
|
|
5697
5697
|
var hostReportErrors$1 = function (a, b) {
|
|
5698
|
-
var console = global$
|
|
5698
|
+
var console = global$c.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$b = global$V;
|
|
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$3 = redefineAll$4;
|
|
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$6 = isObject$l;
|
|
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$b.TypeError;
|
|
5780
|
+
var document$1 = global$b.document;
|
|
5781
|
+
var process$1 = global$b.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$b.dispatchEvent);
|
|
5786
|
+
var NATIVE_REJECTION_EVENT = isCallable$5(global$b.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$6(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$b.dispatchEvent(event);
|
|
5889
5889
|
} else event = { promise: promise, reason: reason };
|
|
5890
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$
|
|
5890
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$b['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$b, 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$b, 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$3(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$b = 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$b([].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$5 = isObject$l;
|
|
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$5(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
|
}
|
|
@@ -6386,7 +6404,7 @@ var _excluded = ["message", "status", "errors"],
|
|
|
6386
6404
|
_excluded2 = ["message", "status", "errors"],
|
|
6387
6405
|
_excluded3 = ["message", "status", "errors"],
|
|
6388
6406
|
_excluded4 = ["message", "status", "errors"],
|
|
6389
|
-
_excluded5 = ["status", "message", "otpmessage"];
|
|
6407
|
+
_excluded5 = ["status", "message", "otpmessage", "redirectUrl"];
|
|
6390
6408
|
var PREAUTHORIZATION_STATE_AUTHORIZED = 'authorized';
|
|
6391
6409
|
var ChargeResponses = {
|
|
6392
6410
|
authorized: function authorized(response) {
|
|
@@ -6437,8 +6455,9 @@ var ChargeResponses = {
|
|
|
6437
6455
|
response.status;
|
|
6438
6456
|
var message = response.message,
|
|
6439
6457
|
otpmessage = response.otpmessage,
|
|
6458
|
+
redirectUrl = response.redirectUrl,
|
|
6440
6459
|
cleanResponse = _objectWithoutProperties(response, _excluded5);
|
|
6441
|
-
var authMessage = otpmessage || message;
|
|
6460
|
+
var authMessage = redirectUrl || otpmessage || message;
|
|
6442
6461
|
return {
|
|
6443
6462
|
status: 'auth',
|
|
6444
6463
|
message: authMessage || 'Authentication required',
|
|
@@ -6482,7 +6501,7 @@ var ChargeResponses = {
|
|
|
6482
6501
|
return error;
|
|
6483
6502
|
},
|
|
6484
6503
|
parse: function parse(apiResponse) {
|
|
6485
|
-
var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6504
|
+
var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6486
6505
|
if (response.data && _typeof$1(response.data) === 'object') {
|
|
6487
6506
|
Object.assign(response, response.data);
|
|
6488
6507
|
delete response.data;
|
|
@@ -6508,83 +6527,150 @@ var ChargeResponses = {
|
|
|
6508
6527
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6509
6528
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6510
6529
|
}
|
|
6511
|
-
if (response.status
|
|
6530
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6512
6531
|
return this.getCleanResponse(response);
|
|
6513
6532
|
}
|
|
6514
6533
|
if (response.auth && response.auth !== 'none') {
|
|
6515
6534
|
return this.auth(response);
|
|
6516
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
|
+
}
|
|
6517
6541
|
return this.error(response);
|
|
6518
6542
|
}
|
|
6519
6543
|
};
|
|
6520
6544
|
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
// eslint-disable-next-line consistent-return, import/prefer-default-export
|
|
6526
|
-
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6527
|
-
var channel = options.channel,
|
|
6528
|
-
paymentMethod = options.paymentMethod;
|
|
6529
|
-
var pusher;
|
|
6530
|
-
if (window && window.Pusher) {
|
|
6531
|
-
pusher = new window.Pusher(configToUse.pusherKey, {
|
|
6532
|
-
cluster: 'eu',
|
|
6533
|
-
disableStats: true
|
|
6534
|
-
});
|
|
6535
|
-
}
|
|
6536
|
-
var pusherUndefinedError = {
|
|
6545
|
+
// Frozen singletons: a consumer that mutates what it was handed cannot corrupt
|
|
6546
|
+
// the next call.
|
|
6547
|
+
var LISTEN_ERRORS = {
|
|
6548
|
+
unavailable: Object.freeze({
|
|
6537
6549
|
status: 'error',
|
|
6538
6550
|
message: 'We could not listen for charge response.'
|
|
6539
|
-
}
|
|
6540
|
-
|
|
6551
|
+
}),
|
|
6552
|
+
subscriptionFailed: Object.freeze({
|
|
6541
6553
|
status: 'error',
|
|
6542
6554
|
message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
|
|
6555
|
+
})
|
|
6556
|
+
};
|
|
6557
|
+
|
|
6558
|
+
// Returns null so each listener can choose what to hand its caller back. The
|
|
6559
|
+
// `!window` half only guards window being declared and assigned undefined; with
|
|
6560
|
+
// window genuinely absent this throws, as it always has.
|
|
6561
|
+
var createPusherClient = function createPusherClient() {
|
|
6562
|
+
if (!window || !window.Pusher) {
|
|
6563
|
+
return null;
|
|
6564
|
+
}
|
|
6565
|
+
return new window.Pusher(configToUse.pusherKey, {
|
|
6566
|
+
cluster: 'eu',
|
|
6567
|
+
disableStats: true
|
|
6568
|
+
});
|
|
6569
|
+
};
|
|
6570
|
+
|
|
6571
|
+
// Analytics are logged before the consumer callback runs, so a throwing
|
|
6572
|
+
// callback cannot lose the event.
|
|
6573
|
+
var buildResponseHandler = function buildResponseHandler(_ref) {
|
|
6574
|
+
var context = _ref.context,
|
|
6575
|
+
paymentMethod = _ref.paymentMethod,
|
|
6576
|
+
callback = _ref.callback,
|
|
6577
|
+
teardown = _ref.teardown;
|
|
6578
|
+
return function (response) {
|
|
6579
|
+
var formattedResponse = ChargeResponses.parse(response);
|
|
6580
|
+
context.logAPIResponse(formattedResponse, paymentMethod);
|
|
6581
|
+
callback(formattedResponse, teardown);
|
|
6543
6582
|
};
|
|
6583
|
+
};
|
|
6584
|
+
|
|
6585
|
+
// The shared listening path for every channel and market. `context` carries
|
|
6586
|
+
// logAPIResponse and the isListening flag this path owns.
|
|
6587
|
+
// eslint-disable-next-line consistent-return
|
|
6588
|
+
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6589
|
+
var channel = options.channel,
|
|
6590
|
+
paymentMethod = options.paymentMethod;
|
|
6591
|
+
var pusher = createPusherClient();
|
|
6592
|
+
if (!pusher) {
|
|
6593
|
+
return callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6594
|
+
}
|
|
6544
6595
|
var unsubscribeFromPusher = function unsubscribeFromPusher() {
|
|
6545
6596
|
pusher.unsubscribe(channel);
|
|
6546
6597
|
};
|
|
6547
|
-
if (!pusher) {
|
|
6548
|
-
return callback(pusherUndefinedError, noOp);
|
|
6549
|
-
}
|
|
6550
6598
|
var pusherSubscription = pusher.subscribe(channel);
|
|
6551
6599
|
pusherSubscription.bind('pusher:subscription_succeeded', function () {
|
|
6552
6600
|
context.isListening = true;
|
|
6553
6601
|
});
|
|
6554
6602
|
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6555
6603
|
context.isListening = false;
|
|
6556
|
-
callback(
|
|
6604
|
+
callback(LISTEN_ERRORS.subscriptionFailed, noOp);
|
|
6557
6605
|
});
|
|
6558
|
-
pusherSubscription.bind('response',
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
callback
|
|
6606
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6607
|
+
context: context,
|
|
6608
|
+
paymentMethod: paymentMethod,
|
|
6609
|
+
callback: callback,
|
|
6610
|
+
teardown: unsubscribeFromPusher
|
|
6611
|
+
}));
|
|
6612
|
+
};
|
|
6613
|
+
|
|
6614
|
+
// Dedicated listener for the Ghana mobile money USSD confirmation channel. Kept
|
|
6615
|
+
// separate because this flow needs an unsubscribe before any event arrives, and
|
|
6616
|
+
// must not write context.isListening: it runs alongside the main charge
|
|
6617
|
+
// subscription and the two would fight over one flag.
|
|
6618
|
+
var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
|
|
6619
|
+
var channel = options.channel,
|
|
6620
|
+
paymentMethod = options.paymentMethod;
|
|
6621
|
+
var pusher = createPusherClient();
|
|
6622
|
+
if (!pusher) {
|
|
6623
|
+
callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6624
|
+
return noOp;
|
|
6625
|
+
}
|
|
6626
|
+
var hasUnsubscribed = false;
|
|
6627
|
+
var unsubscribe = function unsubscribe() {
|
|
6628
|
+
if (hasUnsubscribed) {
|
|
6629
|
+
return;
|
|
6630
|
+
}
|
|
6631
|
+
hasUnsubscribed = true;
|
|
6632
|
+
pusher.unsubscribe(channel);
|
|
6633
|
+
pusher.disconnect();
|
|
6634
|
+
};
|
|
6635
|
+
var pusherSubscription = pusher.subscribe(channel);
|
|
6636
|
+
// Deliberately does not tear down: a subscription_error can be transient, and
|
|
6637
|
+
// disconnecting stops pusher-js re-subscribing on recovery. The teardown handed
|
|
6638
|
+
// over stays live for a consumer that would rather give up.
|
|
6639
|
+
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6640
|
+
callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
|
|
6562
6641
|
});
|
|
6642
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6643
|
+
context: context,
|
|
6644
|
+
paymentMethod: paymentMethod,
|
|
6645
|
+
callback: callback,
|
|
6646
|
+
teardown: unsubscribe
|
|
6647
|
+
}));
|
|
6648
|
+
return unsubscribe;
|
|
6563
6649
|
};
|
|
6564
6650
|
|
|
6565
|
-
var uncurryThis$
|
|
6651
|
+
var uncurryThis$a = functionUncurryThis;
|
|
6566
6652
|
var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
|
|
6567
|
-
var redefine$
|
|
6568
|
-
var anObject$
|
|
6653
|
+
var redefine$5 = redefine$b.exports;
|
|
6654
|
+
var anObject$3 = anObject$f;
|
|
6569
6655
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
6570
6656
|
var $toString$2 = toString$9;
|
|
6571
|
-
var fails$
|
|
6657
|
+
var fails$6 = fails$x;
|
|
6572
6658
|
var regExpFlags = regexpFlags$1;
|
|
6573
6659
|
|
|
6574
6660
|
var TO_STRING = 'toString';
|
|
6575
6661
|
var RegExpPrototype = RegExp.prototype;
|
|
6576
6662
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
6577
|
-
var getFlags = uncurryThis$
|
|
6663
|
+
var getFlags = uncurryThis$a(regExpFlags);
|
|
6578
6664
|
|
|
6579
|
-
var NOT_GENERIC = fails$
|
|
6665
|
+
var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
6580
6666
|
// FF44- RegExp#toString has a wrong name
|
|
6581
6667
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
|
|
6582
6668
|
|
|
6583
6669
|
// `RegExp.prototype.toString` method
|
|
6584
6670
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
6585
6671
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
6586
|
-
redefine$
|
|
6587
|
-
var R = anObject$
|
|
6672
|
+
redefine$5(RegExp.prototype, TO_STRING, function toString() {
|
|
6673
|
+
var R = anObject$3(this);
|
|
6588
6674
|
var p = $toString$2(R.source);
|
|
6589
6675
|
var rf = R.flags;
|
|
6590
6676
|
var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
|
|
@@ -6592,41 +6678,41 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
6592
6678
|
}, { unsafe: true });
|
|
6593
6679
|
}
|
|
6594
6680
|
|
|
6595
|
-
var fails$
|
|
6681
|
+
var fails$5 = fails$x;
|
|
6596
6682
|
|
|
6597
|
-
var correctPrototypeGetter = !fails$
|
|
6683
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
6598
6684
|
function F() { /* empty */ }
|
|
6599
6685
|
F.prototype.constructor = null;
|
|
6600
6686
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
6601
6687
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
6602
6688
|
});
|
|
6603
6689
|
|
|
6604
|
-
var global$
|
|
6605
|
-
var hasOwn$
|
|
6606
|
-
var isCallable$
|
|
6690
|
+
var global$a = global$V;
|
|
6691
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
6692
|
+
var isCallable$4 = isCallable$l;
|
|
6607
6693
|
var toObject$2 = toObject$9;
|
|
6608
6694
|
var sharedKey = sharedKey$3;
|
|
6609
6695
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
6610
6696
|
|
|
6611
6697
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
6612
|
-
var Object$1 = global$
|
|
6698
|
+
var Object$1 = global$a.Object;
|
|
6613
6699
|
var ObjectPrototype = Object$1.prototype;
|
|
6614
6700
|
|
|
6615
6701
|
// `Object.getPrototypeOf` method
|
|
6616
6702
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
6617
6703
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
6618
6704
|
var object = toObject$2(O);
|
|
6619
|
-
if (hasOwn$
|
|
6705
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
6620
6706
|
var constructor = object.constructor;
|
|
6621
|
-
if (isCallable$
|
|
6707
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
6622
6708
|
return constructor.prototype;
|
|
6623
6709
|
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
6624
6710
|
};
|
|
6625
6711
|
|
|
6626
|
-
var fails$
|
|
6627
|
-
var isCallable$
|
|
6712
|
+
var fails$4 = fails$x;
|
|
6713
|
+
var isCallable$3 = isCallable$l;
|
|
6628
6714
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
6629
|
-
var redefine$
|
|
6715
|
+
var redefine$4 = redefine$b.exports;
|
|
6630
6716
|
var wellKnownSymbol$4 = wellKnownSymbol$j;
|
|
6631
6717
|
|
|
6632
6718
|
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
@@ -6647,7 +6733,7 @@ if ([].keys) {
|
|
|
6647
6733
|
}
|
|
6648
6734
|
}
|
|
6649
6735
|
|
|
6650
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
6736
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
|
|
6651
6737
|
var test = {};
|
|
6652
6738
|
// FF44- legacy iterators case
|
|
6653
6739
|
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
@@ -6657,8 +6743,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
6657
6743
|
|
|
6658
6744
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
6659
6745
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
6660
|
-
if (!isCallable$
|
|
6661
|
-
redefine$
|
|
6746
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
|
|
6747
|
+
redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
|
|
6662
6748
|
return this;
|
|
6663
6749
|
});
|
|
6664
6750
|
}
|
|
@@ -6671,7 +6757,7 @@ var iteratorsCore = {
|
|
|
6671
6757
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
6672
6758
|
var create$1 = objectCreate;
|
|
6673
6759
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
6674
|
-
var setToStringTag$
|
|
6760
|
+
var setToStringTag$4 = setToStringTag$6;
|
|
6675
6761
|
var Iterators$2 = iterators;
|
|
6676
6762
|
|
|
6677
6763
|
var returnThis$1 = function () { return this; };
|
|
@@ -6679,21 +6765,21 @@ var returnThis$1 = function () { return this; };
|
|
|
6679
6765
|
var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
6680
6766
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
6681
6767
|
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
6682
|
-
setToStringTag$
|
|
6768
|
+
setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
|
|
6683
6769
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
6684
6770
|
return IteratorConstructor;
|
|
6685
6771
|
};
|
|
6686
6772
|
|
|
6687
|
-
var $$
|
|
6773
|
+
var $$8 = _export;
|
|
6688
6774
|
var call$2 = functionCall;
|
|
6689
6775
|
var FunctionName = functionName;
|
|
6690
|
-
var isCallable$
|
|
6776
|
+
var isCallable$2 = isCallable$l;
|
|
6691
6777
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
6692
6778
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
6693
6779
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6694
|
-
var setToStringTag$
|
|
6780
|
+
var setToStringTag$3 = setToStringTag$6;
|
|
6695
6781
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6696
|
-
var redefine$
|
|
6782
|
+
var redefine$3 = redefine$b.exports;
|
|
6697
6783
|
var wellKnownSymbol$3 = wellKnownSymbol$j;
|
|
6698
6784
|
var Iterators$1 = iterators;
|
|
6699
6785
|
var IteratorsCore = iteratorsCore;
|
|
@@ -6739,12 +6825,12 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6739
6825
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
6740
6826
|
if (setPrototypeOf) {
|
|
6741
6827
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
6742
|
-
} else if (!isCallable$
|
|
6743
|
-
redefine$
|
|
6828
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
6829
|
+
redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
6744
6830
|
}
|
|
6745
6831
|
}
|
|
6746
6832
|
// Set @@toStringTag to native iterators
|
|
6747
|
-
setToStringTag$
|
|
6833
|
+
setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
6748
6834
|
}
|
|
6749
6835
|
}
|
|
6750
6836
|
|
|
@@ -6767,14 +6853,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6767
6853
|
};
|
|
6768
6854
|
if (FORCED) for (KEY in methods) {
|
|
6769
6855
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
6770
|
-
redefine$
|
|
6856
|
+
redefine$3(IterablePrototype, KEY, methods[KEY]);
|
|
6771
6857
|
}
|
|
6772
|
-
} else $$
|
|
6858
|
+
} else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
6773
6859
|
}
|
|
6774
6860
|
|
|
6775
6861
|
// define iterator
|
|
6776
6862
|
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
6777
|
-
redefine$
|
|
6863
|
+
redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
6778
6864
|
}
|
|
6779
6865
|
Iterators$1[NAME] = defaultIterator;
|
|
6780
6866
|
|
|
@@ -6784,14 +6870,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6784
6870
|
var toIndexedObject$1 = toIndexedObject$8;
|
|
6785
6871
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
6786
6872
|
var Iterators = iterators;
|
|
6787
|
-
var InternalStateModule$
|
|
6873
|
+
var InternalStateModule$4 = internalState;
|
|
6788
6874
|
var defineProperty$1 = objectDefineProperty.f;
|
|
6789
6875
|
var defineIterator$1 = defineIterator$2;
|
|
6790
6876
|
var DESCRIPTORS$3 = descriptors$1;
|
|
6791
6877
|
|
|
6792
6878
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
6793
|
-
var setInternalState$
|
|
6794
|
-
var getInternalState$1 = InternalStateModule$
|
|
6879
|
+
var setInternalState$4 = InternalStateModule$4.set;
|
|
6880
|
+
var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
|
|
6795
6881
|
|
|
6796
6882
|
// `Array.prototype.entries` method
|
|
6797
6883
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -6804,7 +6890,7 @@ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
|
|
|
6804
6890
|
// `CreateArrayIterator` internal method
|
|
6805
6891
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
6806
6892
|
var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
|
|
6807
|
-
setInternalState$
|
|
6893
|
+
setInternalState$4(this, {
|
|
6808
6894
|
type: ARRAY_ITERATOR,
|
|
6809
6895
|
target: toIndexedObject$1(iterated), // target
|
|
6810
6896
|
index: 0, // next index
|
|
@@ -6841,14 +6927,14 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
|
6841
6927
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
6842
6928
|
} catch (error) { /* empty */ }
|
|
6843
6929
|
|
|
6844
|
-
var uncurryThis$
|
|
6930
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
6845
6931
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
6846
6932
|
var toString$2 = toString$9;
|
|
6847
6933
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
6848
6934
|
|
|
6849
|
-
var charAt$4 = uncurryThis$
|
|
6850
|
-
var charCodeAt$2 = uncurryThis$
|
|
6851
|
-
var stringSlice$2 = uncurryThis$
|
|
6935
|
+
var charAt$4 = uncurryThis$9(''.charAt);
|
|
6936
|
+
var charCodeAt$2 = uncurryThis$9(''.charCodeAt);
|
|
6937
|
+
var stringSlice$2 = uncurryThis$9(''.slice);
|
|
6852
6938
|
|
|
6853
6939
|
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
6854
6940
|
return function ($this, pos) {
|
|
@@ -6880,17 +6966,17 @@ var stringMultibyte = {
|
|
|
6880
6966
|
|
|
6881
6967
|
var charAt$3 = stringMultibyte.charAt;
|
|
6882
6968
|
var toString$1 = toString$9;
|
|
6883
|
-
var InternalStateModule$
|
|
6969
|
+
var InternalStateModule$3 = internalState;
|
|
6884
6970
|
var defineIterator = defineIterator$2;
|
|
6885
6971
|
|
|
6886
6972
|
var STRING_ITERATOR = 'String Iterator';
|
|
6887
|
-
var setInternalState$
|
|
6888
|
-
var getInternalState = InternalStateModule$
|
|
6973
|
+
var setInternalState$3 = InternalStateModule$3.set;
|
|
6974
|
+
var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
|
|
6889
6975
|
|
|
6890
6976
|
// `String.prototype[@@iterator]` method
|
|
6891
6977
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
6892
6978
|
defineIterator(String, 'String', function (iterated) {
|
|
6893
|
-
setInternalState$
|
|
6979
|
+
setInternalState$3(this, {
|
|
6894
6980
|
type: STRING_ITERATOR,
|
|
6895
6981
|
string: toString$1(iterated),
|
|
6896
6982
|
index: 0
|
|
@@ -6908,7 +6994,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6908
6994
|
return { value: point, done: false };
|
|
6909
6995
|
});
|
|
6910
6996
|
|
|
6911
|
-
var global$
|
|
6997
|
+
var global$9 = global$V;
|
|
6912
6998
|
var DOMIterables = domIterables;
|
|
6913
6999
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
6914
7000
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -6942,18 +7028,18 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
6942
7028
|
};
|
|
6943
7029
|
|
|
6944
7030
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
6945
|
-
handlePrototype(global$
|
|
7031
|
+
handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
6946
7032
|
}
|
|
6947
7033
|
|
|
6948
7034
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
6949
7035
|
|
|
6950
|
-
var fails$
|
|
7036
|
+
var fails$3 = fails$x;
|
|
6951
7037
|
var wellKnownSymbol$1 = wellKnownSymbol$j;
|
|
6952
7038
|
var IS_PURE = isPure;
|
|
6953
7039
|
|
|
6954
7040
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
6955
7041
|
|
|
6956
|
-
var nativeUrl = !fails$
|
|
7042
|
+
var nativeUrl = !fails$3(function () {
|
|
6957
7043
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
6958
7044
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
6959
7045
|
var searchParams = url.searchParams;
|
|
@@ -6982,19 +7068,19 @@ var nativeUrl = !fails$2(function () {
|
|
|
6982
7068
|
|| new URL('http://x', undefined).host !== 'x';
|
|
6983
7069
|
});
|
|
6984
7070
|
|
|
6985
|
-
var anObject$
|
|
7071
|
+
var anObject$2 = anObject$f;
|
|
6986
7072
|
var iteratorClose = iteratorClose$2;
|
|
6987
7073
|
|
|
6988
7074
|
// call something on iterator step with safe closing on error
|
|
6989
7075
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
6990
7076
|
try {
|
|
6991
|
-
return ENTRIES ? fn(anObject$
|
|
7077
|
+
return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
|
|
6992
7078
|
} catch (error) {
|
|
6993
7079
|
iteratorClose(iterator, 'throw', error);
|
|
6994
7080
|
}
|
|
6995
7081
|
};
|
|
6996
7082
|
|
|
6997
|
-
var global$
|
|
7083
|
+
var global$8 = global$V;
|
|
6998
7084
|
var bind$5 = functionBindContext;
|
|
6999
7085
|
var call$1 = functionCall;
|
|
7000
7086
|
var toObject$1 = toObject$9;
|
|
@@ -7006,7 +7092,7 @@ var createProperty = createProperty$3;
|
|
|
7006
7092
|
var getIterator$1 = getIterator$3;
|
|
7007
7093
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
7008
7094
|
|
|
7009
|
-
var Array$2 = global$
|
|
7095
|
+
var Array$2 = global$8.Array;
|
|
7010
7096
|
|
|
7011
7097
|
// `Array.from` method implementation
|
|
7012
7098
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -7042,8 +7128,8 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
7042
7128
|
};
|
|
7043
7129
|
|
|
7044
7130
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
7045
|
-
var global$
|
|
7046
|
-
var uncurryThis$
|
|
7131
|
+
var global$7 = global$V;
|
|
7132
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
7047
7133
|
|
|
7048
7134
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
7049
7135
|
var base = 36;
|
|
@@ -7059,16 +7145,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
7059
7145
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
7060
7146
|
var baseMinusTMin = base - tMin;
|
|
7061
7147
|
|
|
7062
|
-
var RangeError = global$
|
|
7063
|
-
var exec$2 = uncurryThis$
|
|
7148
|
+
var RangeError = global$7.RangeError;
|
|
7149
|
+
var exec$2 = uncurryThis$8(regexSeparators.exec);
|
|
7064
7150
|
var floor$1 = Math.floor;
|
|
7065
7151
|
var fromCharCode = String.fromCharCode;
|
|
7066
|
-
var charCodeAt$1 = uncurryThis$
|
|
7067
|
-
var join$2 = uncurryThis$
|
|
7068
|
-
var push$4 = uncurryThis$
|
|
7069
|
-
var replace$4 = uncurryThis$
|
|
7070
|
-
var split$3 = uncurryThis$
|
|
7071
|
-
var toLowerCase$1 = uncurryThis$
|
|
7152
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
7153
|
+
var join$2 = uncurryThis$8([].join);
|
|
7154
|
+
var push$4 = uncurryThis$8([].push);
|
|
7155
|
+
var replace$4 = uncurryThis$8(''.replace);
|
|
7156
|
+
var split$3 = uncurryThis$8(''.split);
|
|
7157
|
+
var toLowerCase$1 = uncurryThis$8(''.toLowerCase);
|
|
7072
7158
|
|
|
7073
7159
|
/**
|
|
7074
7160
|
* Creates an array containing the numeric code points of each Unicode
|
|
@@ -7225,24 +7311,24 @@ var stringPunycodeToAscii = function (input) {
|
|
|
7225
7311
|
|
|
7226
7312
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7227
7313
|
|
|
7228
|
-
var $$
|
|
7229
|
-
var global$
|
|
7314
|
+
var $$7 = _export;
|
|
7315
|
+
var global$6 = global$V;
|
|
7230
7316
|
var getBuiltIn$1 = getBuiltIn$a;
|
|
7231
7317
|
var call = functionCall;
|
|
7232
|
-
var uncurryThis$
|
|
7318
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
7233
7319
|
var USE_NATIVE_URL$1 = nativeUrl;
|
|
7234
|
-
var redefine$
|
|
7235
|
-
var redefineAll = redefineAll$
|
|
7236
|
-
var setToStringTag$
|
|
7320
|
+
var redefine$2 = redefine$b.exports;
|
|
7321
|
+
var redefineAll$2 = redefineAll$4;
|
|
7322
|
+
var setToStringTag$2 = setToStringTag$6;
|
|
7237
7323
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
7238
|
-
var InternalStateModule$
|
|
7239
|
-
var anInstance$
|
|
7240
|
-
var isCallable = isCallable$
|
|
7241
|
-
var hasOwn$
|
|
7324
|
+
var InternalStateModule$2 = internalState;
|
|
7325
|
+
var anInstance$3 = anInstance$5;
|
|
7326
|
+
var isCallable$1 = isCallable$l;
|
|
7327
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
7242
7328
|
var bind$4 = functionBindContext;
|
|
7243
7329
|
var classof = classof$7;
|
|
7244
|
-
var anObject = anObject$
|
|
7245
|
-
var isObject$
|
|
7330
|
+
var anObject$1 = anObject$f;
|
|
7331
|
+
var isObject$4 = isObject$l;
|
|
7246
7332
|
var $toString$1 = toString$9;
|
|
7247
7333
|
var create = objectCreate;
|
|
7248
7334
|
var createPropertyDescriptor = createPropertyDescriptor$6;
|
|
@@ -7255,27 +7341,27 @@ var arraySort = arraySort$1;
|
|
|
7255
7341
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
7256
7342
|
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
7257
7343
|
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
7258
|
-
var setInternalState$
|
|
7259
|
-
var getInternalParamsState = InternalStateModule$
|
|
7260
|
-
var getInternalIteratorState = InternalStateModule$
|
|
7344
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
7345
|
+
var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
|
|
7346
|
+
var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
7261
7347
|
|
|
7262
7348
|
var n$Fetch = getBuiltIn$1('fetch');
|
|
7263
7349
|
var N$Request = getBuiltIn$1('Request');
|
|
7264
7350
|
var Headers = getBuiltIn$1('Headers');
|
|
7265
7351
|
var RequestPrototype = N$Request && N$Request.prototype;
|
|
7266
7352
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
7267
|
-
var RegExp$1 = global$
|
|
7268
|
-
var TypeError$3 = global$
|
|
7269
|
-
var decodeURIComponent$1 = global$
|
|
7270
|
-
var encodeURIComponent$1 = global$
|
|
7271
|
-
var charAt$2 = uncurryThis$
|
|
7272
|
-
var join$1 = uncurryThis$
|
|
7273
|
-
var push$3 = uncurryThis$
|
|
7274
|
-
var replace$3 = uncurryThis$
|
|
7275
|
-
var shift$1 = uncurryThis$
|
|
7276
|
-
var splice = uncurryThis$
|
|
7277
|
-
var split$2 = uncurryThis$
|
|
7278
|
-
var stringSlice$1 = uncurryThis$
|
|
7353
|
+
var RegExp$1 = global$6.RegExp;
|
|
7354
|
+
var TypeError$3 = global$6.TypeError;
|
|
7355
|
+
var decodeURIComponent$1 = global$6.decodeURIComponent;
|
|
7356
|
+
var encodeURIComponent$1 = global$6.encodeURIComponent;
|
|
7357
|
+
var charAt$2 = uncurryThis$7(''.charAt);
|
|
7358
|
+
var join$1 = uncurryThis$7([].join);
|
|
7359
|
+
var push$3 = uncurryThis$7([].push);
|
|
7360
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
7361
|
+
var shift$1 = uncurryThis$7([].shift);
|
|
7362
|
+
var splice$1 = uncurryThis$7([].splice);
|
|
7363
|
+
var split$2 = uncurryThis$7(''.split);
|
|
7364
|
+
var stringSlice$1 = uncurryThis$7(''.slice);
|
|
7279
7365
|
|
|
7280
7366
|
var plus = /\+/g;
|
|
7281
7367
|
var sequences = Array(4);
|
|
@@ -7305,7 +7391,7 @@ var deserialize = function (it) {
|
|
|
7305
7391
|
}
|
|
7306
7392
|
};
|
|
7307
7393
|
|
|
7308
|
-
var find = /[!'()~]|%20/g;
|
|
7394
|
+
var find$1 = /[!'()~]|%20/g;
|
|
7309
7395
|
|
|
7310
7396
|
var replacements = {
|
|
7311
7397
|
'!': '%21',
|
|
@@ -7321,11 +7407,11 @@ var replacer = function (match) {
|
|
|
7321
7407
|
};
|
|
7322
7408
|
|
|
7323
7409
|
var serialize = function (it) {
|
|
7324
|
-
return replace$3(encodeURIComponent$1(it), find, replacer);
|
|
7410
|
+
return replace$3(encodeURIComponent$1(it), find$1, replacer);
|
|
7325
7411
|
};
|
|
7326
7412
|
|
|
7327
7413
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
7328
|
-
setInternalState$
|
|
7414
|
+
setInternalState$2(this, {
|
|
7329
7415
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
7330
7416
|
iterator: getIterator(getInternalParamsState(params).entries),
|
|
7331
7417
|
kind: kind
|
|
@@ -7345,7 +7431,7 @@ var URLSearchParamsState = function (init) {
|
|
|
7345
7431
|
this.url = null;
|
|
7346
7432
|
|
|
7347
7433
|
if (init !== undefined) {
|
|
7348
|
-
if (isObject$
|
|
7434
|
+
if (isObject$4(init)) this.parseObject(init);
|
|
7349
7435
|
else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
|
|
7350
7436
|
}
|
|
7351
7437
|
};
|
|
@@ -7364,7 +7450,7 @@ URLSearchParamsState.prototype = {
|
|
|
7364
7450
|
iterator = getIterator(object, iteratorMethod);
|
|
7365
7451
|
next = iterator.next;
|
|
7366
7452
|
while (!(step = call(next, iterator)).done) {
|
|
7367
|
-
entryIterator = getIterator(anObject(step.value));
|
|
7453
|
+
entryIterator = getIterator(anObject$1(step.value));
|
|
7368
7454
|
entryNext = entryIterator.next;
|
|
7369
7455
|
if (
|
|
7370
7456
|
(first = call(entryNext, entryIterator)).done ||
|
|
@@ -7373,7 +7459,7 @@ URLSearchParamsState.prototype = {
|
|
|
7373
7459
|
) throw TypeError$3('Expected sequence with length 2');
|
|
7374
7460
|
push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
|
|
7375
7461
|
}
|
|
7376
|
-
} else for (var key in object) if (hasOwn$
|
|
7462
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
7377
7463
|
push$3(this.entries, { key: key, value: $toString$1(object[key]) });
|
|
7378
7464
|
}
|
|
7379
7465
|
},
|
|
@@ -7416,14 +7502,14 @@ URLSearchParamsState.prototype = {
|
|
|
7416
7502
|
// `URLSearchParams` constructor
|
|
7417
7503
|
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
7418
7504
|
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
7419
|
-
anInstance$
|
|
7505
|
+
anInstance$3(this, URLSearchParamsPrototype);
|
|
7420
7506
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
7421
|
-
setInternalState$
|
|
7507
|
+
setInternalState$2(this, new URLSearchParamsState(init));
|
|
7422
7508
|
};
|
|
7423
7509
|
|
|
7424
7510
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
7425
7511
|
|
|
7426
|
-
redefineAll(URLSearchParamsPrototype, {
|
|
7512
|
+
redefineAll$2(URLSearchParamsPrototype, {
|
|
7427
7513
|
// `URLSearchParams.prototype.append` method
|
|
7428
7514
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
7429
7515
|
append: function append(name, value) {
|
|
@@ -7441,7 +7527,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7441
7527
|
var key = $toString$1(name);
|
|
7442
7528
|
var index = 0;
|
|
7443
7529
|
while (index < entries.length) {
|
|
7444
|
-
if (entries[index].key === key) splice(entries, index, 1);
|
|
7530
|
+
if (entries[index].key === key) splice$1(entries, index, 1);
|
|
7445
7531
|
else index++;
|
|
7446
7532
|
}
|
|
7447
7533
|
state.updateURL();
|
|
@@ -7497,7 +7583,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7497
7583
|
for (; index < entries.length; index++) {
|
|
7498
7584
|
entry = entries[index];
|
|
7499
7585
|
if (entry.key === key) {
|
|
7500
|
-
if (found) splice(entries, index--, 1);
|
|
7586
|
+
if (found) splice$1(entries, index--, 1);
|
|
7501
7587
|
else {
|
|
7502
7588
|
found = true;
|
|
7503
7589
|
entry.value = val;
|
|
@@ -7542,27 +7628,27 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7542
7628
|
}, { enumerable: true });
|
|
7543
7629
|
|
|
7544
7630
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
7545
|
-
redefine$
|
|
7631
|
+
redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
7546
7632
|
|
|
7547
7633
|
// `URLSearchParams.prototype.toString` method
|
|
7548
7634
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
7549
|
-
redefine$
|
|
7635
|
+
redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
7550
7636
|
return getInternalParamsState(this).serialize();
|
|
7551
7637
|
}, { enumerable: true });
|
|
7552
7638
|
|
|
7553
|
-
setToStringTag$
|
|
7639
|
+
setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
7554
7640
|
|
|
7555
|
-
$$
|
|
7641
|
+
$$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
7556
7642
|
URLSearchParams: URLSearchParamsConstructor
|
|
7557
7643
|
});
|
|
7558
7644
|
|
|
7559
7645
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
7560
|
-
if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
7561
|
-
var headersHas = uncurryThis$
|
|
7562
|
-
var headersSet = uncurryThis$
|
|
7646
|
+
if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
|
|
7647
|
+
var headersHas = uncurryThis$7(HeadersPrototype.has);
|
|
7648
|
+
var headersSet = uncurryThis$7(HeadersPrototype.set);
|
|
7563
7649
|
|
|
7564
7650
|
var wrapRequestOptions = function (init) {
|
|
7565
|
-
if (isObject$
|
|
7651
|
+
if (isObject$4(init)) {
|
|
7566
7652
|
var body = init.body;
|
|
7567
7653
|
var headers;
|
|
7568
7654
|
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
@@ -7578,24 +7664,24 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
7578
7664
|
} return init;
|
|
7579
7665
|
};
|
|
7580
7666
|
|
|
7581
|
-
if (isCallable(n$Fetch)) {
|
|
7582
|
-
$$
|
|
7667
|
+
if (isCallable$1(n$Fetch)) {
|
|
7668
|
+
$$7({ global: true, enumerable: true, forced: true }, {
|
|
7583
7669
|
fetch: function fetch(input /* , init */) {
|
|
7584
7670
|
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7585
7671
|
}
|
|
7586
7672
|
});
|
|
7587
7673
|
}
|
|
7588
7674
|
|
|
7589
|
-
if (isCallable(N$Request)) {
|
|
7675
|
+
if (isCallable$1(N$Request)) {
|
|
7590
7676
|
var RequestConstructor = function Request(input /* , init */) {
|
|
7591
|
-
anInstance$
|
|
7677
|
+
anInstance$3(this, RequestPrototype);
|
|
7592
7678
|
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7593
7679
|
};
|
|
7594
7680
|
|
|
7595
7681
|
RequestPrototype.constructor = RequestConstructor;
|
|
7596
7682
|
RequestConstructor.prototype = RequestPrototype;
|
|
7597
7683
|
|
|
7598
|
-
$$
|
|
7684
|
+
$$7({ global: true, forced: true }, {
|
|
7599
7685
|
Request: RequestConstructor
|
|
7600
7686
|
});
|
|
7601
7687
|
}
|
|
@@ -7608,49 +7694,49 @@ var web_urlSearchParams = {
|
|
|
7608
7694
|
|
|
7609
7695
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7610
7696
|
|
|
7611
|
-
var $$
|
|
7697
|
+
var $$6 = _export;
|
|
7612
7698
|
var DESCRIPTORS$2 = descriptors$1;
|
|
7613
7699
|
var USE_NATIVE_URL = nativeUrl;
|
|
7614
|
-
var global$
|
|
7700
|
+
var global$5 = global$V;
|
|
7615
7701
|
var bind$3 = functionBindContext;
|
|
7616
|
-
var uncurryThis$
|
|
7702
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7617
7703
|
var defineProperties = objectDefineProperties.f;
|
|
7618
|
-
var redefine = redefine$
|
|
7619
|
-
var anInstance = anInstance$
|
|
7620
|
-
var hasOwn = hasOwnProperty_1;
|
|
7704
|
+
var redefine$1 = redefine$b.exports;
|
|
7705
|
+
var anInstance$2 = anInstance$5;
|
|
7706
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
7621
7707
|
var assign$1 = objectAssign;
|
|
7622
7708
|
var arrayFrom = arrayFrom$1;
|
|
7623
7709
|
var arraySlice = arraySliceSimple;
|
|
7624
7710
|
var codeAt = stringMultibyte.codeAt;
|
|
7625
7711
|
var toASCII = stringPunycodeToAscii;
|
|
7626
7712
|
var $toString = toString$9;
|
|
7627
|
-
var setToStringTag = setToStringTag$
|
|
7713
|
+
var setToStringTag$1 = setToStringTag$6;
|
|
7628
7714
|
var validateArgumentsLength = validateArgumentsLength$3;
|
|
7629
7715
|
var URLSearchParamsModule = web_urlSearchParams;
|
|
7630
|
-
var InternalStateModule = internalState;
|
|
7716
|
+
var InternalStateModule$1 = internalState;
|
|
7631
7717
|
|
|
7632
|
-
var setInternalState = InternalStateModule.set;
|
|
7633
|
-
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
7718
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
7719
|
+
var getInternalURLState = InternalStateModule$1.getterFor('URL');
|
|
7634
7720
|
var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
|
|
7635
7721
|
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
7636
7722
|
|
|
7637
|
-
var NativeURL = global$
|
|
7638
|
-
var TypeError$2 = global$
|
|
7639
|
-
var parseInt$1 = global$
|
|
7723
|
+
var NativeURL = global$5.URL;
|
|
7724
|
+
var TypeError$2 = global$5.TypeError;
|
|
7725
|
+
var parseInt$1 = global$5.parseInt;
|
|
7640
7726
|
var floor = Math.floor;
|
|
7641
7727
|
var pow = Math.pow;
|
|
7642
|
-
var charAt$1 = uncurryThis$
|
|
7643
|
-
var exec$1 = uncurryThis$
|
|
7644
|
-
var join = uncurryThis$
|
|
7645
|
-
var numberToString$1 = uncurryThis$
|
|
7646
|
-
var pop = uncurryThis$
|
|
7647
|
-
var push$2 = uncurryThis$
|
|
7648
|
-
var replace$2 = uncurryThis$
|
|
7649
|
-
var shift = uncurryThis$
|
|
7650
|
-
var split$1 = uncurryThis$
|
|
7651
|
-
var stringSlice = uncurryThis$
|
|
7652
|
-
var toLowerCase = uncurryThis$
|
|
7653
|
-
var unshift = uncurryThis$
|
|
7728
|
+
var charAt$1 = uncurryThis$6(''.charAt);
|
|
7729
|
+
var exec$1 = uncurryThis$6(/./.exec);
|
|
7730
|
+
var join = uncurryThis$6([].join);
|
|
7731
|
+
var numberToString$1 = uncurryThis$6(1.0.toString);
|
|
7732
|
+
var pop = uncurryThis$6([].pop);
|
|
7733
|
+
var push$2 = uncurryThis$6([].push);
|
|
7734
|
+
var replace$2 = uncurryThis$6(''.replace);
|
|
7735
|
+
var shift = uncurryThis$6([].shift);
|
|
7736
|
+
var split$1 = uncurryThis$6(''.split);
|
|
7737
|
+
var stringSlice = uncurryThis$6(''.slice);
|
|
7738
|
+
var toLowerCase = uncurryThis$6(''.toLowerCase);
|
|
7739
|
+
var unshift = uncurryThis$6([].unshift);
|
|
7654
7740
|
|
|
7655
7741
|
var INVALID_AUTHORITY = 'Invalid authority';
|
|
7656
7742
|
var INVALID_SCHEME = 'Invalid scheme';
|
|
@@ -7858,7 +7944,7 @@ var userinfoPercentEncodeSet = assign$1({}, pathPercentEncodeSet, {
|
|
|
7858
7944
|
|
|
7859
7945
|
var percentEncode = function (chr, set) {
|
|
7860
7946
|
var code = codeAt(chr, 0);
|
|
7861
|
-
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
7947
|
+
return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
|
|
7862
7948
|
};
|
|
7863
7949
|
|
|
7864
7950
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -7989,7 +8075,7 @@ URLState.prototype = {
|
|
|
7989
8075
|
buffer += toLowerCase(chr);
|
|
7990
8076
|
} else if (chr == ':') {
|
|
7991
8077
|
if (stateOverride && (
|
|
7992
|
-
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
8078
|
+
(url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
|
|
7993
8079
|
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
7994
8080
|
(url.scheme == 'file' && !url.host)
|
|
7995
8081
|
)) return;
|
|
@@ -8377,7 +8463,7 @@ URLState.prototype = {
|
|
|
8377
8463
|
},
|
|
8378
8464
|
// https://url.spec.whatwg.org/#is-special
|
|
8379
8465
|
isSpecial: function () {
|
|
8380
|
-
return hasOwn(specialSchemes, this.scheme);
|
|
8466
|
+
return hasOwn$1(specialSchemes, this.scheme);
|
|
8381
8467
|
},
|
|
8382
8468
|
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
8383
8469
|
shortenPath: function () {
|
|
@@ -8546,9 +8632,9 @@ URLState.prototype = {
|
|
|
8546
8632
|
// `URL` constructor
|
|
8547
8633
|
// https://url.spec.whatwg.org/#url-class
|
|
8548
8634
|
var URLConstructor = function URL(url /* , base */) {
|
|
8549
|
-
var that = anInstance(this, URLPrototype);
|
|
8635
|
+
var that = anInstance$2(this, URLPrototype);
|
|
8550
8636
|
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
8551
|
-
var state = setInternalState(that, new URLState(url, false, base));
|
|
8637
|
+
var state = setInternalState$1(that, new URLState(url, false, base));
|
|
8552
8638
|
if (!DESCRIPTORS$2) {
|
|
8553
8639
|
that.href = state.serialize();
|
|
8554
8640
|
that.origin = state.getOrigin();
|
|
@@ -8623,13 +8709,13 @@ if (DESCRIPTORS$2) {
|
|
|
8623
8709
|
|
|
8624
8710
|
// `URL.prototype.toJSON` method
|
|
8625
8711
|
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
8626
|
-
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
8712
|
+
redefine$1(URLPrototype, 'toJSON', function toJSON() {
|
|
8627
8713
|
return getInternalURLState(this).serialize();
|
|
8628
8714
|
}, { enumerable: true });
|
|
8629
8715
|
|
|
8630
8716
|
// `URL.prototype.toString` method
|
|
8631
8717
|
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
8632
|
-
redefine(URLPrototype, 'toString', function toString() {
|
|
8718
|
+
redefine$1(URLPrototype, 'toString', function toString() {
|
|
8633
8719
|
return getInternalURLState(this).serialize();
|
|
8634
8720
|
}, { enumerable: true });
|
|
8635
8721
|
|
|
@@ -8638,15 +8724,15 @@ if (NativeURL) {
|
|
|
8638
8724
|
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
8639
8725
|
// `URL.createObjectURL` method
|
|
8640
8726
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
8641
|
-
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8727
|
+
if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8642
8728
|
// `URL.revokeObjectURL` method
|
|
8643
8729
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
8644
|
-
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8730
|
+
if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8645
8731
|
}
|
|
8646
8732
|
|
|
8647
|
-
setToStringTag(URLConstructor, 'URL');
|
|
8733
|
+
setToStringTag$1(URLConstructor, 'URL');
|
|
8648
8734
|
|
|
8649
|
-
$$
|
|
8735
|
+
$$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
|
|
8650
8736
|
URL: URLConstructor
|
|
8651
8737
|
});
|
|
8652
8738
|
|
|
@@ -8763,7 +8849,7 @@ function isNumber(val) {
|
|
|
8763
8849
|
* @param {Object} val The value to test
|
|
8764
8850
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
8765
8851
|
*/
|
|
8766
|
-
function isObject(val) {
|
|
8852
|
+
function isObject$3(val) {
|
|
8767
8853
|
return val !== null && typeof val === 'object';
|
|
8768
8854
|
}
|
|
8769
8855
|
|
|
@@ -8845,7 +8931,7 @@ function isFunction(val) {
|
|
|
8845
8931
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
8846
8932
|
*/
|
|
8847
8933
|
function isStream(val) {
|
|
8848
|
-
return isObject(val) && isFunction(val.pipe);
|
|
8934
|
+
return isObject$3(val) && isFunction(val.pipe);
|
|
8849
8935
|
}
|
|
8850
8936
|
|
|
8851
8937
|
/**
|
|
@@ -9149,7 +9235,7 @@ var utils$m = {
|
|
|
9149
9235
|
isArrayBufferView: isArrayBufferView,
|
|
9150
9236
|
isString: isString,
|
|
9151
9237
|
isNumber: isNumber,
|
|
9152
|
-
isObject: isObject,
|
|
9238
|
+
isObject: isObject$3,
|
|
9153
9239
|
isPlainObject: isPlainObject,
|
|
9154
9240
|
isEmptyObject: isEmptyObject,
|
|
9155
9241
|
isUndefined: isUndefined,
|
|
@@ -11932,13 +12018,13 @@ var lib = {
|
|
|
11932
12018
|
stringify: stringify
|
|
11933
12019
|
};
|
|
11934
12020
|
|
|
11935
|
-
var global$
|
|
12021
|
+
var global$4 = global$V;
|
|
11936
12022
|
var aCallable = aCallable$7;
|
|
11937
12023
|
var toObject = toObject$9;
|
|
11938
12024
|
var IndexedObject = indexedObject;
|
|
11939
12025
|
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
11940
12026
|
|
|
11941
|
-
var TypeError$1 = global$
|
|
12027
|
+
var TypeError$1 = global$4.TypeError;
|
|
11942
12028
|
|
|
11943
12029
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
11944
12030
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -11976,7 +12062,7 @@ var arrayReduce = {
|
|
|
11976
12062
|
right: createMethod$1(true)
|
|
11977
12063
|
};
|
|
11978
12064
|
|
|
11979
|
-
var $$
|
|
12065
|
+
var $$5 = _export;
|
|
11980
12066
|
var $reduce = arrayReduce.left;
|
|
11981
12067
|
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
11982
12068
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -11989,7 +12075,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
11989
12075
|
|
|
11990
12076
|
// `Array.prototype.reduce` method
|
|
11991
12077
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
11992
|
-
$$
|
|
12078
|
+
$$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
11993
12079
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
11994
12080
|
var length = arguments.length;
|
|
11995
12081
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -12394,20 +12480,7 @@ var GooglePayAPI = {
|
|
|
12394
12480
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12395
12481
|
headers: headers
|
|
12396
12482
|
}).then(function (response) {
|
|
12397
|
-
|
|
12398
|
-
var raw = response.data;
|
|
12399
|
-
/*
|
|
12400
|
-
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12401
|
-
* the `auth` field the shared parser routes on — without it an auth
|
|
12402
|
-
* response falls through to error(). Default it so the response
|
|
12403
|
-
* normalizes through auth() exactly like card's.
|
|
12404
|
-
*/
|
|
12405
|
-
if ((raw === null || raw === void 0 ? void 0 : raw.status) === 'auth' && !raw.auth && !((_raw$data = raw.data) !== null && _raw$data !== void 0 && _raw$data.auth)) {
|
|
12406
|
-
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12407
|
-
auth: '3DS'
|
|
12408
|
-
}));
|
|
12409
|
-
}
|
|
12410
|
-
return ChargeResponses.parse(raw);
|
|
12483
|
+
return ChargeResponses.parse(response.data);
|
|
12411
12484
|
});
|
|
12412
12485
|
}
|
|
12413
12486
|
};
|
|
@@ -12506,13 +12579,13 @@ var PayPalCharge = {
|
|
|
12506
12579
|
|
|
12507
12580
|
var DESCRIPTORS$1 = descriptors$1;
|
|
12508
12581
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
12509
|
-
var uncurryThis$
|
|
12582
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
12510
12583
|
var defineProperty = objectDefineProperty.f;
|
|
12511
12584
|
|
|
12512
12585
|
var FunctionPrototype = Function.prototype;
|
|
12513
|
-
var functionToString = uncurryThis$
|
|
12586
|
+
var functionToString = uncurryThis$5(FunctionPrototype.toString);
|
|
12514
12587
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
12515
|
-
var regExpExec = uncurryThis$
|
|
12588
|
+
var regExpExec = uncurryThis$5(nameRE.exec);
|
|
12516
12589
|
var NAME = 'name';
|
|
12517
12590
|
|
|
12518
12591
|
// Function instances `.name` property
|
|
@@ -17906,13 +17979,13 @@ function encrypt(toEncrypt) {
|
|
|
17906
17979
|
}
|
|
17907
17980
|
|
|
17908
17981
|
var DESCRIPTORS = descriptors$1;
|
|
17909
|
-
var uncurryThis$
|
|
17982
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
17910
17983
|
var objectKeys = objectKeys$3;
|
|
17911
17984
|
var toIndexedObject = toIndexedObject$8;
|
|
17912
17985
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
17913
17986
|
|
|
17914
|
-
var propertyIsEnumerable = uncurryThis$
|
|
17915
|
-
var push = uncurryThis$
|
|
17987
|
+
var propertyIsEnumerable = uncurryThis$4($propertyIsEnumerable);
|
|
17988
|
+
var push = uncurryThis$4([].push);
|
|
17916
17989
|
|
|
17917
17990
|
// `Object.{ entries, values }` methods implementation
|
|
17918
17991
|
var createMethod = function (TO_ENTRIES) {
|
|
@@ -17942,18 +18015,18 @@ var objectToArray = {
|
|
|
17942
18015
|
values: createMethod(false)
|
|
17943
18016
|
};
|
|
17944
18017
|
|
|
17945
|
-
var $$
|
|
18018
|
+
var $$4 = _export;
|
|
17946
18019
|
var $values = objectToArray.values;
|
|
17947
18020
|
|
|
17948
18021
|
// `Object.values` method
|
|
17949
18022
|
// https://tc39.es/ecma262/#sec-object.values
|
|
17950
|
-
$$
|
|
18023
|
+
$$4({ target: 'Object', stat: true }, {
|
|
17951
18024
|
values: function values(O) {
|
|
17952
18025
|
return $values(O);
|
|
17953
18026
|
}
|
|
17954
18027
|
});
|
|
17955
18028
|
|
|
17956
|
-
var $$
|
|
18029
|
+
var $$3 = _export;
|
|
17957
18030
|
var $find = arrayIteration.find;
|
|
17958
18031
|
var addToUnscopables = addToUnscopables$3;
|
|
17959
18032
|
|
|
@@ -17965,7 +18038,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
17965
18038
|
|
|
17966
18039
|
// `Array.prototype.find` method
|
|
17967
18040
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
17968
|
-
$$
|
|
18041
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
17969
18042
|
find: function find(callbackfn /* , that = undefined */) {
|
|
17970
18043
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
17971
18044
|
}
|
|
@@ -20399,6 +20472,10 @@ var MobileMoneyAPI = {
|
|
|
20399
20472
|
}
|
|
20400
20473
|
};
|
|
20401
20474
|
|
|
20475
|
+
// Statuses that leave the transaction with a Pusher channel worth listening on.
|
|
20476
|
+
// `awaiting_ussd_confirmation` is mid-flight, not settled, but still carries the
|
|
20477
|
+
// `channel_name` the outcome arrives on.
|
|
20478
|
+
var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
|
|
20402
20479
|
function validate$1(phoneNumber) {
|
|
20403
20480
|
return new Promise(function (resolve, reject) {
|
|
20404
20481
|
var validation = PhoneNumber.validate(phoneNumber);
|
|
@@ -20437,10 +20514,14 @@ function buildMobileMoneyParams(payload) {
|
|
|
20437
20514
|
var MobileMoneyCharge = {
|
|
20438
20515
|
mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
|
|
20439
20516
|
var _this = this;
|
|
20517
|
+
// Cleared before the request, not in the handler: the API layer's .catch
|
|
20518
|
+
// destructures `response`, which a network error lacks, so it throws and no
|
|
20519
|
+
// handler runs.
|
|
20520
|
+
this.mobileMoney = {};
|
|
20440
20521
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20441
|
-
if (response.status
|
|
20522
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20442
20523
|
_this.mobileMoney = response;
|
|
20443
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20524
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20444
20525
|
_this.logTokenRequest('mobile money');
|
|
20445
20526
|
}
|
|
20446
20527
|
}
|
|
@@ -20489,10 +20570,13 @@ var MobileMoneyCharge = {
|
|
|
20489
20570
|
id: _this3.id,
|
|
20490
20571
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20491
20572
|
});
|
|
20573
|
+
|
|
20574
|
+
// Cleared before the request, as in mobileMoneyChargeAPI above.
|
|
20575
|
+
_this3.mobileMoney = {};
|
|
20492
20576
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20493
|
-
if (response.status
|
|
20577
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20494
20578
|
_this3.mobileMoney = response;
|
|
20495
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20579
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20496
20580
|
_this3.logTokenRequest('mobile money');
|
|
20497
20581
|
}
|
|
20498
20582
|
} else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
|
|
@@ -20515,17 +20599,33 @@ var MobileMoneyCharge = {
|
|
|
20515
20599
|
});
|
|
20516
20600
|
},
|
|
20517
20601
|
listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
|
|
20518
|
-
|
|
20602
|
+
var _ref2 = this.mobileMoney.data || {},
|
|
20603
|
+
channel = _ref2.channel,
|
|
20604
|
+
channelName = _ref2.channel_name;
|
|
20605
|
+
var listenerChannel = channel || channelName;
|
|
20606
|
+
if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
|
|
20519
20607
|
return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
|
|
20520
20608
|
}
|
|
20521
|
-
var _this$mobileMoney$dat = this.mobileMoney.data,
|
|
20522
|
-
channel = _this$mobileMoney$dat.channel,
|
|
20523
|
-
channelName = _this$mobileMoney$dat.channel_name;
|
|
20524
20609
|
var listenerOptions = {
|
|
20525
|
-
channel:
|
|
20610
|
+
channel: listenerChannel,
|
|
20526
20611
|
paymentMethod: 'mobile_money'
|
|
20527
20612
|
};
|
|
20528
20613
|
return this.listenForCharge(listenerOptions, callback);
|
|
20614
|
+
},
|
|
20615
|
+
// Unlike every sibling listener, this returns a teardown function rather than a
|
|
20616
|
+
// promise, so it throws synchronously instead of rejecting. A caller in a
|
|
20617
|
+
// non-async event handler gets an uncaught throw, not an unhandled rejection.
|
|
20618
|
+
listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
|
|
20619
|
+
var data = this.mobileMoney.data;
|
|
20620
|
+
var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
|
|
20621
|
+
if (!confirmationChannel) {
|
|
20622
|
+
throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
|
|
20623
|
+
}
|
|
20624
|
+
var listenerOptions = {
|
|
20625
|
+
channel: confirmationChannel,
|
|
20626
|
+
paymentMethod: 'mobile_money'
|
|
20627
|
+
};
|
|
20628
|
+
return subscribeToConfirmationEvents(listenerOptions, this, callback);
|
|
20529
20629
|
}
|
|
20530
20630
|
};
|
|
20531
20631
|
|
|
@@ -20686,7 +20786,7 @@ var DirectDebitCharge = {
|
|
|
20686
20786
|
};
|
|
20687
20787
|
|
|
20688
20788
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
20689
|
-
var fails$
|
|
20789
|
+
var fails$2 = fails$x;
|
|
20690
20790
|
var whitespaces = whitespaces$3;
|
|
20691
20791
|
|
|
20692
20792
|
var non = '\u200B\u0085\u180E';
|
|
@@ -20694,20 +20794,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
20694
20794
|
// check that a method works with the correct list
|
|
20695
20795
|
// of whitespaces and has a correct name
|
|
20696
20796
|
var stringTrimForced = function (METHOD_NAME) {
|
|
20697
|
-
return fails$
|
|
20797
|
+
return fails$2(function () {
|
|
20698
20798
|
return !!whitespaces[METHOD_NAME]()
|
|
20699
20799
|
|| non[METHOD_NAME]() !== non
|
|
20700
20800
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
20701
20801
|
});
|
|
20702
20802
|
};
|
|
20703
20803
|
|
|
20704
|
-
var $$
|
|
20804
|
+
var $$2 = _export;
|
|
20705
20805
|
var $trim = stringTrim.trim;
|
|
20706
20806
|
var forcedStringTrimMethod = stringTrimForced;
|
|
20707
20807
|
|
|
20708
20808
|
// `String.prototype.trim` method
|
|
20709
20809
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
20710
|
-
$$
|
|
20810
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
20711
20811
|
trim: function trim() {
|
|
20712
20812
|
return $trim(this);
|
|
20713
20813
|
}
|
|
@@ -20946,6 +21046,454 @@ var InstalmentsCharge = {
|
|
|
20946
21046
|
}
|
|
20947
21047
|
};
|
|
20948
21048
|
|
|
21049
|
+
var $$1 = _export;
|
|
21050
|
+
var global$3 = global$V;
|
|
21051
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
21052
|
+
var isForced = isForced_1;
|
|
21053
|
+
var redefine = redefine$b.exports;
|
|
21054
|
+
var InternalMetadataModule$1 = internalMetadata.exports;
|
|
21055
|
+
var iterate$1 = iterate$3;
|
|
21056
|
+
var anInstance$1 = anInstance$5;
|
|
21057
|
+
var isCallable = isCallable$l;
|
|
21058
|
+
var isObject$2 = isObject$l;
|
|
21059
|
+
var fails$1 = fails$x;
|
|
21060
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
21061
|
+
var setToStringTag = setToStringTag$6;
|
|
21062
|
+
var inheritIfRequired = inheritIfRequired$3;
|
|
21063
|
+
|
|
21064
|
+
var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
21065
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
21066
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
21067
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
21068
|
+
var NativeConstructor = global$3[CONSTRUCTOR_NAME];
|
|
21069
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
21070
|
+
var Constructor = NativeConstructor;
|
|
21071
|
+
var exported = {};
|
|
21072
|
+
|
|
21073
|
+
var fixMethod = function (KEY) {
|
|
21074
|
+
var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]);
|
|
21075
|
+
redefine(NativePrototype, KEY,
|
|
21076
|
+
KEY == 'add' ? function add(value) {
|
|
21077
|
+
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
21078
|
+
return this;
|
|
21079
|
+
} : KEY == 'delete' ? function (key) {
|
|
21080
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21081
|
+
} : KEY == 'get' ? function get(key) {
|
|
21082
|
+
return IS_WEAK && !isObject$2(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21083
|
+
} : KEY == 'has' ? function has(key) {
|
|
21084
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21085
|
+
} : function set(key, value) {
|
|
21086
|
+
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
21087
|
+
return this;
|
|
21088
|
+
}
|
|
21089
|
+
);
|
|
21090
|
+
};
|
|
21091
|
+
|
|
21092
|
+
var REPLACE = isForced(
|
|
21093
|
+
CONSTRUCTOR_NAME,
|
|
21094
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
|
|
21095
|
+
new NativeConstructor().entries().next();
|
|
21096
|
+
}))
|
|
21097
|
+
);
|
|
21098
|
+
|
|
21099
|
+
if (REPLACE) {
|
|
21100
|
+
// create collection constructor
|
|
21101
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
21102
|
+
InternalMetadataModule$1.enable();
|
|
21103
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
21104
|
+
var instance = new Constructor();
|
|
21105
|
+
// early implementations not supports chaining
|
|
21106
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
21107
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
21108
|
+
var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
|
|
21109
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
21110
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
21111
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
21112
|
+
// for early implementations -0 and +0 not the same
|
|
21113
|
+
var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
|
|
21114
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
21115
|
+
var $instance = new NativeConstructor();
|
|
21116
|
+
var index = 5;
|
|
21117
|
+
while (index--) $instance[ADDER](index, index);
|
|
21118
|
+
return !$instance.has(-0);
|
|
21119
|
+
});
|
|
21120
|
+
|
|
21121
|
+
if (!ACCEPT_ITERABLES) {
|
|
21122
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
21123
|
+
anInstance$1(dummy, NativePrototype);
|
|
21124
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
21125
|
+
if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21126
|
+
return that;
|
|
21127
|
+
});
|
|
21128
|
+
Constructor.prototype = NativePrototype;
|
|
21129
|
+
NativePrototype.constructor = Constructor;
|
|
21130
|
+
}
|
|
21131
|
+
|
|
21132
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
21133
|
+
fixMethod('delete');
|
|
21134
|
+
fixMethod('has');
|
|
21135
|
+
IS_MAP && fixMethod('get');
|
|
21136
|
+
}
|
|
21137
|
+
|
|
21138
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
21139
|
+
|
|
21140
|
+
// weak collections should not contains .clear method
|
|
21141
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
21142
|
+
}
|
|
21143
|
+
|
|
21144
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
21145
|
+
$$1({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
21146
|
+
|
|
21147
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
21148
|
+
|
|
21149
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
21150
|
+
|
|
21151
|
+
return Constructor;
|
|
21152
|
+
};
|
|
21153
|
+
|
|
21154
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
21155
|
+
var redefineAll$1 = redefineAll$4;
|
|
21156
|
+
var getWeakData = internalMetadata.exports.getWeakData;
|
|
21157
|
+
var anObject = anObject$f;
|
|
21158
|
+
var isObject$1 = isObject$l;
|
|
21159
|
+
var anInstance = anInstance$5;
|
|
21160
|
+
var iterate = iterate$3;
|
|
21161
|
+
var ArrayIterationModule = arrayIteration;
|
|
21162
|
+
var hasOwn = hasOwnProperty_1;
|
|
21163
|
+
var InternalStateModule = internalState;
|
|
21164
|
+
|
|
21165
|
+
var setInternalState = InternalStateModule.set;
|
|
21166
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
21167
|
+
var find = ArrayIterationModule.find;
|
|
21168
|
+
var findIndex = ArrayIterationModule.findIndex;
|
|
21169
|
+
var splice = uncurryThis$2([].splice);
|
|
21170
|
+
var id = 0;
|
|
21171
|
+
|
|
21172
|
+
// fallback for uncaught frozen keys
|
|
21173
|
+
var uncaughtFrozenStore = function (store) {
|
|
21174
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
21175
|
+
};
|
|
21176
|
+
|
|
21177
|
+
var UncaughtFrozenStore = function () {
|
|
21178
|
+
this.entries = [];
|
|
21179
|
+
};
|
|
21180
|
+
|
|
21181
|
+
var findUncaughtFrozen = function (store, key) {
|
|
21182
|
+
return find(store.entries, function (it) {
|
|
21183
|
+
return it[0] === key;
|
|
21184
|
+
});
|
|
21185
|
+
};
|
|
21186
|
+
|
|
21187
|
+
UncaughtFrozenStore.prototype = {
|
|
21188
|
+
get: function (key) {
|
|
21189
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21190
|
+
if (entry) return entry[1];
|
|
21191
|
+
},
|
|
21192
|
+
has: function (key) {
|
|
21193
|
+
return !!findUncaughtFrozen(this, key);
|
|
21194
|
+
},
|
|
21195
|
+
set: function (key, value) {
|
|
21196
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21197
|
+
if (entry) entry[1] = value;
|
|
21198
|
+
else this.entries.push([key, value]);
|
|
21199
|
+
},
|
|
21200
|
+
'delete': function (key) {
|
|
21201
|
+
var index = findIndex(this.entries, function (it) {
|
|
21202
|
+
return it[0] === key;
|
|
21203
|
+
});
|
|
21204
|
+
if (~index) splice(this.entries, index, 1);
|
|
21205
|
+
return !!~index;
|
|
21206
|
+
}
|
|
21207
|
+
};
|
|
21208
|
+
|
|
21209
|
+
var collectionWeak$1 = {
|
|
21210
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
21211
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
21212
|
+
anInstance(that, Prototype);
|
|
21213
|
+
setInternalState(that, {
|
|
21214
|
+
type: CONSTRUCTOR_NAME,
|
|
21215
|
+
id: id++,
|
|
21216
|
+
frozen: undefined
|
|
21217
|
+
});
|
|
21218
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21219
|
+
});
|
|
21220
|
+
|
|
21221
|
+
var Prototype = Constructor.prototype;
|
|
21222
|
+
|
|
21223
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
21224
|
+
|
|
21225
|
+
var define = function (that, key, value) {
|
|
21226
|
+
var state = getInternalState(that);
|
|
21227
|
+
var data = getWeakData(anObject(key), true);
|
|
21228
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
21229
|
+
else data[state.id] = value;
|
|
21230
|
+
return that;
|
|
21231
|
+
};
|
|
21232
|
+
|
|
21233
|
+
redefineAll$1(Prototype, {
|
|
21234
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
21235
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
21236
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
21237
|
+
'delete': function (key) {
|
|
21238
|
+
var state = getInternalState(this);
|
|
21239
|
+
if (!isObject$1(key)) return false;
|
|
21240
|
+
var data = getWeakData(key);
|
|
21241
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
21242
|
+
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
21243
|
+
},
|
|
21244
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
21245
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
21246
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
21247
|
+
has: function has(key) {
|
|
21248
|
+
var state = getInternalState(this);
|
|
21249
|
+
if (!isObject$1(key)) return false;
|
|
21250
|
+
var data = getWeakData(key);
|
|
21251
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
21252
|
+
return data && hasOwn(data, state.id);
|
|
21253
|
+
}
|
|
21254
|
+
});
|
|
21255
|
+
|
|
21256
|
+
redefineAll$1(Prototype, IS_MAP ? {
|
|
21257
|
+
// `WeakMap.prototype.get(key)` method
|
|
21258
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
21259
|
+
get: function get(key) {
|
|
21260
|
+
var state = getInternalState(this);
|
|
21261
|
+
if (isObject$1(key)) {
|
|
21262
|
+
var data = getWeakData(key);
|
|
21263
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
21264
|
+
return data ? data[state.id] : undefined;
|
|
21265
|
+
}
|
|
21266
|
+
},
|
|
21267
|
+
// `WeakMap.prototype.set(key, value)` method
|
|
21268
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
21269
|
+
set: function set(key, value) {
|
|
21270
|
+
return define(this, key, value);
|
|
21271
|
+
}
|
|
21272
|
+
} : {
|
|
21273
|
+
// `WeakSet.prototype.add(value)` method
|
|
21274
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
21275
|
+
add: function add(value) {
|
|
21276
|
+
return define(this, value, true);
|
|
21277
|
+
}
|
|
21278
|
+
});
|
|
21279
|
+
|
|
21280
|
+
return Constructor;
|
|
21281
|
+
}
|
|
21282
|
+
};
|
|
21283
|
+
|
|
21284
|
+
var global$2 = global$V;
|
|
21285
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
21286
|
+
var redefineAll = redefineAll$4;
|
|
21287
|
+
var InternalMetadataModule = internalMetadata.exports;
|
|
21288
|
+
var collection = collection$1;
|
|
21289
|
+
var collectionWeak = collectionWeak$1;
|
|
21290
|
+
var isObject = isObject$l;
|
|
21291
|
+
var isExtensible = objectIsExtensible;
|
|
21292
|
+
var enforceInternalState = internalState.enforce;
|
|
21293
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
21294
|
+
|
|
21295
|
+
var IS_IE11 = !global$2.ActiveXObject && 'ActiveXObject' in global$2;
|
|
21296
|
+
var InternalWeakMap;
|
|
21297
|
+
|
|
21298
|
+
var wrapper = function (init) {
|
|
21299
|
+
return function WeakMap() {
|
|
21300
|
+
return init(this, arguments.length ? arguments[0] : undefined);
|
|
21301
|
+
};
|
|
21302
|
+
};
|
|
21303
|
+
|
|
21304
|
+
// `WeakMap` constructor
|
|
21305
|
+
// https://tc39.es/ecma262/#sec-weakmap-constructor
|
|
21306
|
+
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
|
|
21307
|
+
|
|
21308
|
+
// IE11 WeakMap frozen keys fix
|
|
21309
|
+
// We can't use feature detection because it crash some old IE builds
|
|
21310
|
+
// https://github.com/zloirock/core-js/issues/485
|
|
21311
|
+
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
21312
|
+
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
|
|
21313
|
+
InternalMetadataModule.enable();
|
|
21314
|
+
var WeakMapPrototype = $WeakMap.prototype;
|
|
21315
|
+
var nativeDelete = uncurryThis$1(WeakMapPrototype['delete']);
|
|
21316
|
+
var nativeHas = uncurryThis$1(WeakMapPrototype.has);
|
|
21317
|
+
var nativeGet = uncurryThis$1(WeakMapPrototype.get);
|
|
21318
|
+
var nativeSet = uncurryThis$1(WeakMapPrototype.set);
|
|
21319
|
+
redefineAll(WeakMapPrototype, {
|
|
21320
|
+
'delete': function (key) {
|
|
21321
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21322
|
+
var state = enforceInternalState(this);
|
|
21323
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21324
|
+
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
21325
|
+
} return nativeDelete(this, key);
|
|
21326
|
+
},
|
|
21327
|
+
has: function has(key) {
|
|
21328
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21329
|
+
var state = enforceInternalState(this);
|
|
21330
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21331
|
+
return nativeHas(this, key) || state.frozen.has(key);
|
|
21332
|
+
} return nativeHas(this, key);
|
|
21333
|
+
},
|
|
21334
|
+
get: function get(key) {
|
|
21335
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21336
|
+
var state = enforceInternalState(this);
|
|
21337
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21338
|
+
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
21339
|
+
} return nativeGet(this, key);
|
|
21340
|
+
},
|
|
21341
|
+
set: function set(key, value) {
|
|
21342
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21343
|
+
var state = enforceInternalState(this);
|
|
21344
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21345
|
+
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
21346
|
+
} else nativeSet(this, key, value);
|
|
21347
|
+
return this;
|
|
21348
|
+
}
|
|
21349
|
+
});
|
|
21350
|
+
}
|
|
21351
|
+
|
|
21352
|
+
// A 4xx is the server refusing the charge, and its body carries the merchant-safe reason, so parse
|
|
21353
|
+
// it rather than let axios discard it. A 5xx is not a refusal — it answers "try again later" and
|
|
21354
|
+
// may even land after the order was created — so it rethrows, same as the status poll below.
|
|
21355
|
+
var parseChargeRefusal = function parseChargeRefusal(error) {
|
|
21356
|
+
if (!error.response || error.response.status >= 500) throw error;
|
|
21357
|
+
return ChargeResponses.parse(error.response.data);
|
|
21358
|
+
};
|
|
21359
|
+
var PayflexAPI = {
|
|
21360
|
+
charge: function charge(_ref) {
|
|
21361
|
+
var accessCode = _ref.accessCode,
|
|
21362
|
+
publicKey = _ref.publicKey,
|
|
21363
|
+
deviceFingerprint = _ref.deviceFingerprint,
|
|
21364
|
+
returnUrl = _ref.returnUrl,
|
|
21365
|
+
checkoutMode = _ref.checkoutMode,
|
|
21366
|
+
successUrl = _ref.successUrl,
|
|
21367
|
+
cancelUrl = _ref.cancelUrl;
|
|
21368
|
+
var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
|
|
21369
|
+
var language = getLanguage();
|
|
21370
|
+
var headers = _objectSpread2({
|
|
21371
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21372
|
+
}, language && {
|
|
21373
|
+
'Accept-Language': language
|
|
21374
|
+
});
|
|
21375
|
+
var params = _objectSpread2(_objectSpread2({
|
|
21376
|
+
access_code: accessCode
|
|
21377
|
+
}, deviceFingerprint && {
|
|
21378
|
+
device_id: deviceFingerprint
|
|
21379
|
+
}), {}, {
|
|
21380
|
+
payflex: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, returnUrl && {
|
|
21381
|
+
return_url: returnUrl
|
|
21382
|
+
}), checkoutMode && {
|
|
21383
|
+
checkout_mode: checkoutMode
|
|
21384
|
+
}), successUrl && {
|
|
21385
|
+
success_url: successUrl
|
|
21386
|
+
}), cancelUrl && {
|
|
21387
|
+
cancel_url: cancelUrl
|
|
21388
|
+
})
|
|
21389
|
+
});
|
|
21390
|
+
return axiosInstance.post(url, params, {
|
|
21391
|
+
headers: headers
|
|
21392
|
+
}).then(function (response) {
|
|
21393
|
+
return ChargeResponses.parse(response.data);
|
|
21394
|
+
}).catch(parseChargeRefusal);
|
|
21395
|
+
},
|
|
21396
|
+
// Deliberately has no error branch. Only a 2xx body is an answer about the payment; a 404, a
|
|
21397
|
+
// proxy 5xx or an expired key is the poll failing to reach a verdict, and resolving those to
|
|
21398
|
+
// `failed` would have checkout conclude an outcome the server never gave it.
|
|
21399
|
+
requery: function requery(_ref2) {
|
|
21400
|
+
var transactionReference = _ref2.transactionReference,
|
|
21401
|
+
publicKey = _ref2.publicKey;
|
|
21402
|
+
var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
|
|
21403
|
+
var language = getLanguage();
|
|
21404
|
+
var headers = _objectSpread2({
|
|
21405
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21406
|
+
}, language && {
|
|
21407
|
+
'Accept-Language': language
|
|
21408
|
+
});
|
|
21409
|
+
return axiosInstance.get(url, {
|
|
21410
|
+
headers: headers
|
|
21411
|
+
}).then(function (response) {
|
|
21412
|
+
return ChargeResponses.parse(response.data);
|
|
21413
|
+
});
|
|
21414
|
+
}
|
|
21415
|
+
};
|
|
21416
|
+
|
|
21417
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
21418
|
+
var PAYFLEX_CHANNEL = 'payflex';
|
|
21419
|
+
|
|
21420
|
+
// Checkout may never conclude failure on a timer, so the poll runs long and overlaps: a timer, a
|
|
21421
|
+
// window-focus re-check and a Pusher event can all be in flight together. saveLog() re-POSTs the
|
|
21422
|
+
// whole history per entry, so a run gets one pending entry. A hand-off starts a run; success or
|
|
21423
|
+
// failure ends it; a straggler resolving after either is dropped. The hand-off has to reset on its
|
|
21424
|
+
// own because a Pusher outcome concludes without passing through requeryPayflex.
|
|
21425
|
+
var pollRuns = new WeakMap();
|
|
21426
|
+
var runFor = function runFor(transaction) {
|
|
21427
|
+
if (!pollRuns.has(transaction)) {
|
|
21428
|
+
pollRuns.set(transaction, {
|
|
21429
|
+
pendingLogged: false,
|
|
21430
|
+
concluded: false
|
|
21431
|
+
});
|
|
21432
|
+
}
|
|
21433
|
+
return pollRuns.get(transaction);
|
|
21434
|
+
};
|
|
21435
|
+
var PayflexCharge = {
|
|
21436
|
+
chargePayflex: function chargePayflex() {
|
|
21437
|
+
var _this = this;
|
|
21438
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21439
|
+
returnUrl = _ref.returnUrl,
|
|
21440
|
+
checkoutMode = _ref.checkoutMode,
|
|
21441
|
+
successUrl = _ref.successUrl,
|
|
21442
|
+
cancelUrl = _ref.cancelUrl;
|
|
21443
|
+
pollRuns.delete(this);
|
|
21444
|
+
this.logAttempt(PAYFLEX_CHANNEL);
|
|
21445
|
+
if (checkoutMode) {
|
|
21446
|
+
this.logPayflexPresentationMode(checkoutMode);
|
|
21447
|
+
}
|
|
21448
|
+
return PayflexAPI.charge({
|
|
21449
|
+
accessCode: this.accessCode,
|
|
21450
|
+
publicKey: this.merchant.key,
|
|
21451
|
+
deviceFingerprint: this.deviceFingerprint,
|
|
21452
|
+
returnUrl: returnUrl,
|
|
21453
|
+
checkoutMode: checkoutMode,
|
|
21454
|
+
successUrl: successUrl,
|
|
21455
|
+
cancelUrl: cancelUrl
|
|
21456
|
+
}).then(function (response) {
|
|
21457
|
+
var usedMode = response.data && response.data.checkout_mode;
|
|
21458
|
+
if (checkoutMode && usedMode && usedMode !== checkoutMode) {
|
|
21459
|
+
_this.logPayflexPresentationModeMismatch({
|
|
21460
|
+
requested: checkoutMode,
|
|
21461
|
+
used: usedMode
|
|
21462
|
+
});
|
|
21463
|
+
}
|
|
21464
|
+
_this.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21465
|
+
return response;
|
|
21466
|
+
});
|
|
21467
|
+
},
|
|
21468
|
+
requeryPayflex: function requeryPayflex() {
|
|
21469
|
+
var _this2 = this;
|
|
21470
|
+
return PayflexAPI.requery({
|
|
21471
|
+
transactionReference: this.reference,
|
|
21472
|
+
publicKey: this.merchant.key
|
|
21473
|
+
}).then(function (response) {
|
|
21474
|
+
var run = runFor(_this2);
|
|
21475
|
+
if (response.status === 'success' || response.status === 'failed') {
|
|
21476
|
+
run.concluded = true;
|
|
21477
|
+
run.pendingLogged = false;
|
|
21478
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21479
|
+
} else if (response.status !== 'pending') {
|
|
21480
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21481
|
+
} else if (!run.pendingLogged && !run.concluded) {
|
|
21482
|
+
run.pendingLogged = true;
|
|
21483
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21484
|
+
}
|
|
21485
|
+
return response;
|
|
21486
|
+
});
|
|
21487
|
+
},
|
|
21488
|
+
listenForPayflexCharge: function listenForPayflexCharge(callback) {
|
|
21489
|
+
var listenerOptions = {
|
|
21490
|
+
paymentMethod: PAYFLEX_CHANNEL,
|
|
21491
|
+
channel: "PAYFLEX_".concat(this.id)
|
|
21492
|
+
};
|
|
21493
|
+
return this.listenForCharge(listenerOptions, callback);
|
|
21494
|
+
}
|
|
21495
|
+
};
|
|
21496
|
+
|
|
20949
21497
|
var ChargeFunctions = {
|
|
20950
21498
|
get: function get(channel) {
|
|
20951
21499
|
var chargeFunctions = {
|
|
@@ -20963,7 +21511,8 @@ var ChargeFunctions = {
|
|
|
20963
21511
|
paypal: PayPalCharge,
|
|
20964
21512
|
capitec_pay: CapitecPayCharge,
|
|
20965
21513
|
union_pay: ChinaUnionPayCharge,
|
|
20966
|
-
instalments: InstalmentsCharge
|
|
21514
|
+
instalments: InstalmentsCharge,
|
|
21515
|
+
payflex: PayflexCharge
|
|
20967
21516
|
};
|
|
20968
21517
|
return chargeFunctions[channel];
|
|
20969
21518
|
}
|
|
@@ -21007,11 +21556,11 @@ var AnalyticsUtils = {
|
|
|
21007
21556
|
};
|
|
21008
21557
|
|
|
21009
21558
|
var $ = _export;
|
|
21010
|
-
var global$1 = global$
|
|
21559
|
+
var global$1 = global$V;
|
|
21011
21560
|
var getBuiltIn = getBuiltIn$a;
|
|
21012
21561
|
var apply = functionApply;
|
|
21013
21562
|
var uncurryThis = functionUncurryThis;
|
|
21014
|
-
var fails = fails$
|
|
21563
|
+
var fails = fails$x;
|
|
21015
21564
|
|
|
21016
21565
|
var Array$1 = global$1.Array;
|
|
21017
21566
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -21176,7 +21725,36 @@ var CapitecPayAnalytics = {
|
|
|
21176
21725
|
}
|
|
21177
21726
|
};
|
|
21178
21727
|
|
|
21179
|
-
var
|
|
21728
|
+
var PayflexAnalytics = {
|
|
21729
|
+
logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
|
|
21730
|
+
return this.logHistoryEntry({
|
|
21731
|
+
type: 'action',
|
|
21732
|
+
message: "Opening Payflex as: ".concat(checkoutMode),
|
|
21733
|
+
channel: PAYFLEX_CHANNEL,
|
|
21734
|
+
time: this.getTimeSpent()
|
|
21735
|
+
});
|
|
21736
|
+
},
|
|
21737
|
+
logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
|
|
21738
|
+
var requested = _ref.requested,
|
|
21739
|
+
used = _ref.used;
|
|
21740
|
+
return this.logHistoryEntry({
|
|
21741
|
+
type: 'action',
|
|
21742
|
+
message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
|
|
21743
|
+
channel: PAYFLEX_CHANNEL,
|
|
21744
|
+
time: this.getTimeSpent()
|
|
21745
|
+
});
|
|
21746
|
+
},
|
|
21747
|
+
logPayflexStatusRecheck: function logPayflexStatusRecheck() {
|
|
21748
|
+
return this.logHistoryEntry({
|
|
21749
|
+
type: 'action',
|
|
21750
|
+
message: 'Selected check payment status again',
|
|
21751
|
+
channel: PAYFLEX_CHANNEL,
|
|
21752
|
+
time: this.getTimeSpent()
|
|
21753
|
+
});
|
|
21754
|
+
}
|
|
21755
|
+
};
|
|
21756
|
+
|
|
21757
|
+
var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
|
|
21180
21758
|
initializeLog: function initializeLog(log) {
|
|
21181
21759
|
this.log = AnalyticsUtils.initializeLog(log);
|
|
21182
21760
|
},
|
|
@@ -21268,6 +21846,11 @@ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics
|
|
|
21268
21846
|
return this.logError(response.message);
|
|
21269
21847
|
case 'auth':
|
|
21270
21848
|
return this.logAuth(response.data.auth);
|
|
21849
|
+
case 'awaiting_ussd_confirmation':
|
|
21850
|
+
// The customer has been shown the USSD prompt but has not paid yet. Recording
|
|
21851
|
+
// it keeps the step in the transaction log instead of dropping through to
|
|
21852
|
+
// `default`, which is what tells us how many customers reach the prompt.
|
|
21853
|
+
return this.logAPIResponseMessage(response.message);
|
|
21271
21854
|
default:
|
|
21272
21855
|
return false;
|
|
21273
21856
|
}
|