@paystack/checkout-js 1.57.0-beta.1 → 1.57.0-beta.11

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 CHANGED
@@ -1038,7 +1038,7 @@ var Paystack = (function (exports) {
1038
1038
  };
1039
1039
 
1040
1040
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1041
- var global$T =
1041
+ var global$V =
1042
1042
  // eslint-disable-next-line es/no-global-this -- safe
1043
1043
  check(typeof globalThis == 'object' && globalThis) ||
1044
1044
  check(typeof window == 'object' && window) ||
@@ -1050,7 +1050,7 @@ var Paystack = (function (exports) {
1050
1050
 
1051
1051
  var objectGetOwnPropertyDescriptor = {};
1052
1052
 
1053
- var fails$v = function (exec) {
1053
+ var fails$x = function (exec) {
1054
1054
  try {
1055
1055
  return !!exec();
1056
1056
  } catch (error) {
@@ -1058,17 +1058,17 @@ var Paystack = (function (exports) {
1058
1058
  }
1059
1059
  };
1060
1060
 
1061
- var fails$u = fails$v;
1061
+ var fails$w = fails$x;
1062
1062
 
1063
1063
  // Detect IE8's incomplete defineProperty implementation
1064
- var descriptors$1 = !fails$u(function () {
1064
+ var descriptors$1 = !fails$w(function () {
1065
1065
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1066
1066
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1067
1067
  });
1068
1068
 
1069
- var fails$t = fails$v;
1069
+ var fails$v = fails$x;
1070
1070
 
1071
- var functionBindNative = !fails$t(function () {
1071
+ var functionBindNative = !fails$v(function () {
1072
1072
  var test = (function () { /* empty */ }).bind();
1073
1073
  // eslint-disable-next-line no-prototype-builtins -- safe
1074
1074
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -1112,35 +1112,35 @@ var Paystack = (function (exports) {
1112
1112
  var FunctionPrototype$3 = Function.prototype;
1113
1113
  var bind$c = FunctionPrototype$3.bind;
1114
1114
  var call$e = FunctionPrototype$3.call;
1115
- var uncurryThis$x = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1115
+ var uncurryThis$A = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1116
1116
 
1117
1117
  var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
1118
- return fn && uncurryThis$x(fn);
1118
+ return fn && uncurryThis$A(fn);
1119
1119
  } : function (fn) {
1120
1120
  return fn && function () {
1121
1121
  return call$e.apply(fn, arguments);
1122
1122
  };
1123
1123
  };
1124
1124
 
1125
- var uncurryThis$w = functionUncurryThis;
1125
+ var uncurryThis$z = functionUncurryThis;
1126
1126
 
1127
- var toString$b = uncurryThis$w({}.toString);
1128
- var stringSlice$4 = uncurryThis$w(''.slice);
1127
+ var toString$b = uncurryThis$z({}.toString);
1128
+ var stringSlice$4 = uncurryThis$z(''.slice);
1129
1129
 
1130
1130
  var classofRaw$1 = function (it) {
1131
1131
  return stringSlice$4(toString$b(it), 8, -1);
1132
1132
  };
1133
1133
 
1134
- var global$S = global$T;
1135
- var uncurryThis$v = functionUncurryThis;
1136
- var fails$s = fails$v;
1134
+ var global$U = global$V;
1135
+ var uncurryThis$y = functionUncurryThis;
1136
+ var fails$u = fails$x;
1137
1137
  var classof$a = classofRaw$1;
1138
1138
 
1139
- var Object$5 = global$S.Object;
1140
- var split$4 = uncurryThis$v(''.split);
1139
+ var Object$5 = global$U.Object;
1140
+ var split$4 = uncurryThis$y(''.split);
1141
1141
 
1142
1142
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
1143
- var indexedObject = fails$s(function () {
1143
+ var indexedObject = fails$u(function () {
1144
1144
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1145
1145
  // eslint-disable-next-line no-prototype-builtins -- safe
1146
1146
  return !Object$5('z').propertyIsEnumerable(0);
@@ -1148,9 +1148,9 @@ var Paystack = (function (exports) {
1148
1148
  return classof$a(it) == 'String' ? split$4(it, '') : Object$5(it);
1149
1149
  } : Object$5;
1150
1150
 
1151
- var global$R = global$T;
1151
+ var global$T = global$V;
1152
1152
 
1153
- var TypeError$j = global$R.TypeError;
1153
+ var TypeError$j = global$T.TypeError;
1154
1154
 
1155
1155
  // `RequireObjectCoercible` abstract operation
1156
1156
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
@@ -1169,40 +1169,40 @@ var Paystack = (function (exports) {
1169
1169
 
1170
1170
  // `IsCallable` abstract operation
1171
1171
  // https://tc39.es/ecma262/#sec-iscallable
1172
- var isCallable$k = function (argument) {
1172
+ var isCallable$l = function (argument) {
1173
1173
  return typeof argument == 'function';
1174
1174
  };
1175
1175
 
1176
- var isCallable$j = isCallable$k;
1176
+ var isCallable$k = isCallable$l;
1177
1177
 
1178
- var isObject$h = function (it) {
1179
- return typeof it == 'object' ? it !== null : isCallable$j(it);
1178
+ var isObject$l = function (it) {
1179
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
1180
1180
  };
1181
1181
 
1182
- var global$Q = global$T;
1183
- var isCallable$i = isCallable$k;
1182
+ var global$S = global$V;
1183
+ var isCallable$j = isCallable$l;
1184
1184
 
1185
1185
  var aFunction = function (argument) {
1186
- return isCallable$i(argument) ? argument : undefined;
1186
+ return isCallable$j(argument) ? argument : undefined;
1187
1187
  };
1188
1188
 
1189
1189
  var getBuiltIn$a = function (namespace, method) {
1190
- return arguments.length < 2 ? aFunction(global$Q[namespace]) : global$Q[namespace] && global$Q[namespace][method];
1190
+ return arguments.length < 2 ? aFunction(global$S[namespace]) : global$S[namespace] && global$S[namespace][method];
1191
1191
  };
1192
1192
 
1193
- var uncurryThis$u = functionUncurryThis;
1193
+ var uncurryThis$x = functionUncurryThis;
1194
1194
 
1195
- var objectIsPrototypeOf = uncurryThis$u({}.isPrototypeOf);
1195
+ var objectIsPrototypeOf = uncurryThis$x({}.isPrototypeOf);
1196
1196
 
1197
1197
  var getBuiltIn$9 = getBuiltIn$a;
1198
1198
 
1199
1199
  var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || '';
1200
1200
 
1201
- var global$P = global$T;
1201
+ var global$R = global$V;
1202
1202
  var userAgent$5 = engineUserAgent;
1203
1203
 
1204
- var process$4 = global$P.process;
1205
- var Deno = global$P.Deno;
1204
+ var process$4 = global$R.process;
1205
+ var Deno = global$R.Deno;
1206
1206
  var versions = process$4 && process$4.versions || Deno && Deno.version;
1207
1207
  var v8 = versions && versions.v8;
1208
1208
  var match, version;
@@ -1229,10 +1229,10 @@ var Paystack = (function (exports) {
1229
1229
  /* eslint-disable es/no-symbol -- required for testing */
1230
1230
 
1231
1231
  var V8_VERSION$3 = engineV8Version;
1232
- var fails$r = fails$v;
1232
+ var fails$t = fails$x;
1233
1233
 
1234
1234
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1235
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$r(function () {
1235
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$t(function () {
1236
1236
  var symbol = Symbol();
1237
1237
  // Chrome 38 Symbol has incorrect toString conversion
1238
1238
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -1249,24 +1249,24 @@ var Paystack = (function (exports) {
1249
1249
  && !Symbol.sham
1250
1250
  && typeof Symbol.iterator == 'symbol';
1251
1251
 
1252
- var global$O = global$T;
1252
+ var global$Q = global$V;
1253
1253
  var getBuiltIn$8 = getBuiltIn$a;
1254
- var isCallable$h = isCallable$k;
1254
+ var isCallable$i = isCallable$l;
1255
1255
  var isPrototypeOf$5 = objectIsPrototypeOf;
1256
1256
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1257
1257
 
1258
- var Object$4 = global$O.Object;
1258
+ var Object$4 = global$Q.Object;
1259
1259
 
1260
1260
  var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
1261
1261
  return typeof it == 'symbol';
1262
1262
  } : function (it) {
1263
1263
  var $Symbol = getBuiltIn$8('Symbol');
1264
- return isCallable$h($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1264
+ return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1265
1265
  };
1266
1266
 
1267
- var global$N = global$T;
1267
+ var global$P = global$V;
1268
1268
 
1269
- var String$5 = global$N.String;
1269
+ var String$5 = global$P.String;
1270
1270
 
1271
1271
  var tryToString$4 = function (argument) {
1272
1272
  try {
@@ -1276,15 +1276,15 @@ var Paystack = (function (exports) {
1276
1276
  }
1277
1277
  };
1278
1278
 
1279
- var global$M = global$T;
1280
- var isCallable$g = isCallable$k;
1279
+ var global$O = global$V;
1280
+ var isCallable$h = isCallable$l;
1281
1281
  var tryToString$3 = tryToString$4;
1282
1282
 
1283
- var TypeError$i = global$M.TypeError;
1283
+ var TypeError$i = global$O.TypeError;
1284
1284
 
1285
1285
  // `Assert: IsCallable(argument) is true`
1286
1286
  var aCallable$7 = function (argument) {
1287
- if (isCallable$g(argument)) return argument;
1287
+ if (isCallable$h(argument)) return argument;
1288
1288
  throw TypeError$i(tryToString$3(argument) + ' is not a function');
1289
1289
  };
1290
1290
 
@@ -1297,20 +1297,20 @@ var Paystack = (function (exports) {
1297
1297
  return func == null ? undefined : aCallable$6(func);
1298
1298
  };
1299
1299
 
1300
- var global$L = global$T;
1300
+ var global$N = global$V;
1301
1301
  var call$d = functionCall;
1302
- var isCallable$f = isCallable$k;
1303
- var isObject$g = isObject$h;
1302
+ var isCallable$g = isCallable$l;
1303
+ var isObject$k = isObject$l;
1304
1304
 
1305
- var TypeError$h = global$L.TypeError;
1305
+ var TypeError$h = global$N.TypeError;
1306
1306
 
1307
1307
  // `OrdinaryToPrimitive` abstract operation
1308
1308
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1309
1309
  var ordinaryToPrimitive$1 = function (input, pref) {
1310
1310
  var fn, val;
1311
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1312
- if (isCallable$f(fn = input.valueOf) && !isObject$g(val = call$d(fn, input))) return val;
1313
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1311
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$k(val = call$d(fn, input))) return val;
1312
+ if (isCallable$g(fn = input.valueOf) && !isObject$k(val = call$d(fn, input))) return val;
1313
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$k(val = call$d(fn, input))) return val;
1314
1314
  throw TypeError$h("Can't convert object to primitive value");
1315
1315
  };
1316
1316
 
@@ -1318,24 +1318,24 @@ var Paystack = (function (exports) {
1318
1318
 
1319
1319
  var isPure = false;
1320
1320
 
1321
- var global$K = global$T;
1321
+ var global$M = global$V;
1322
1322
 
1323
1323
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1324
1324
  var defineProperty$6 = Object.defineProperty;
1325
1325
 
1326
1326
  var setGlobal$3 = function (key, value) {
1327
1327
  try {
1328
- defineProperty$6(global$K, key, { value: value, configurable: true, writable: true });
1328
+ defineProperty$6(global$M, key, { value: value, configurable: true, writable: true });
1329
1329
  } catch (error) {
1330
- global$K[key] = value;
1330
+ global$M[key] = value;
1331
1331
  } return value;
1332
1332
  };
1333
1333
 
1334
- var global$J = global$T;
1334
+ var global$L = global$V;
1335
1335
  var setGlobal$2 = setGlobal$3;
1336
1336
 
1337
1337
  var SHARED = '__core-js_shared__';
1338
- var store$3 = global$J[SHARED] || setGlobal$2(SHARED, {});
1338
+ var store$3 = global$L[SHARED] || setGlobal$2(SHARED, {});
1339
1339
 
1340
1340
  var sharedStore = store$3;
1341
1341
 
@@ -1351,10 +1351,10 @@ var Paystack = (function (exports) {
1351
1351
  source: 'https://github.com/zloirock/core-js'
1352
1352
  });
1353
1353
 
1354
- var global$I = global$T;
1354
+ var global$K = global$V;
1355
1355
  var requireObjectCoercible$2 = requireObjectCoercible$4;
1356
1356
 
1357
- var Object$3 = global$I.Object;
1357
+ var Object$3 = global$K.Object;
1358
1358
 
1359
1359
  // `ToObject` abstract operation
1360
1360
  // https://tc39.es/ecma262/#sec-toobject
@@ -1362,10 +1362,10 @@ var Paystack = (function (exports) {
1362
1362
  return Object$3(requireObjectCoercible$2(argument));
1363
1363
  };
1364
1364
 
1365
- var uncurryThis$t = functionUncurryThis;
1365
+ var uncurryThis$w = functionUncurryThis;
1366
1366
  var toObject$8 = toObject$9;
1367
1367
 
1368
- var hasOwnProperty$1 = uncurryThis$t({}.hasOwnProperty);
1368
+ var hasOwnProperty$1 = uncurryThis$w({}.hasOwnProperty);
1369
1369
 
1370
1370
  // `HasOwnProperty` abstract operation
1371
1371
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -1373,32 +1373,32 @@ var Paystack = (function (exports) {
1373
1373
  return hasOwnProperty$1(toObject$8(it), key);
1374
1374
  };
1375
1375
 
1376
- var uncurryThis$s = functionUncurryThis;
1376
+ var uncurryThis$v = functionUncurryThis;
1377
1377
 
1378
- var id$1 = 0;
1378
+ var id$2 = 0;
1379
1379
  var postfix = Math.random();
1380
- var toString$a = uncurryThis$s(1.0.toString);
1380
+ var toString$a = uncurryThis$v(1.0.toString);
1381
1381
 
1382
1382
  var uid$3 = function (key) {
1383
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$1 + postfix, 36);
1383
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
1384
1384
  };
1385
1385
 
1386
- var global$H = global$T;
1386
+ var global$J = global$V;
1387
1387
  var shared$3 = shared$4.exports;
1388
- var hasOwn$e = hasOwnProperty_1;
1388
+ var hasOwn$f = hasOwnProperty_1;
1389
1389
  var uid$2 = uid$3;
1390
1390
  var NATIVE_SYMBOL = nativeSymbol;
1391
1391
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
1392
1392
 
1393
1393
  var WellKnownSymbolsStore = shared$3('wks');
1394
- var Symbol$2 = global$H.Symbol;
1394
+ var Symbol$2 = global$J.Symbol;
1395
1395
  var symbolFor = Symbol$2 && Symbol$2['for'];
1396
1396
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$2;
1397
1397
 
1398
1398
  var wellKnownSymbol$j = function (name) {
1399
- if (!hasOwn$e(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1399
+ if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1400
1400
  var description = 'Symbol.' + name;
1401
- if (NATIVE_SYMBOL && hasOwn$e(Symbol$2, name)) {
1401
+ if (NATIVE_SYMBOL && hasOwn$f(Symbol$2, name)) {
1402
1402
  WellKnownSymbolsStore[name] = Symbol$2[name];
1403
1403
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
1404
1404
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -1408,27 +1408,27 @@ var Paystack = (function (exports) {
1408
1408
  } return WellKnownSymbolsStore[name];
1409
1409
  };
1410
1410
 
1411
- var global$G = global$T;
1411
+ var global$I = global$V;
1412
1412
  var call$c = functionCall;
1413
- var isObject$f = isObject$h;
1413
+ var isObject$j = isObject$l;
1414
1414
  var isSymbol$2 = isSymbol$3;
1415
1415
  var getMethod$2 = getMethod$3;
1416
1416
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
1417
1417
  var wellKnownSymbol$i = wellKnownSymbol$j;
1418
1418
 
1419
- var TypeError$g = global$G.TypeError;
1419
+ var TypeError$g = global$I.TypeError;
1420
1420
  var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
1421
1421
 
1422
1422
  // `ToPrimitive` abstract operation
1423
1423
  // https://tc39.es/ecma262/#sec-toprimitive
1424
1424
  var toPrimitive$2 = function (input, pref) {
1425
- if (!isObject$f(input) || isSymbol$2(input)) return input;
1425
+ if (!isObject$j(input) || isSymbol$2(input)) return input;
1426
1426
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
1427
1427
  var result;
1428
1428
  if (exoticToPrim) {
1429
1429
  if (pref === undefined) pref = 'default';
1430
1430
  result = call$c(exoticToPrim, input, pref);
1431
- if (!isObject$f(result) || isSymbol$2(result)) return result;
1431
+ if (!isObject$j(result) || isSymbol$2(result)) return result;
1432
1432
  throw TypeError$g("Can't convert object to primitive value");
1433
1433
  }
1434
1434
  if (pref === undefined) pref = 'number';
@@ -1445,23 +1445,23 @@ var Paystack = (function (exports) {
1445
1445
  return isSymbol$1(key) ? key : key + '';
1446
1446
  };
1447
1447
 
1448
- var global$F = global$T;
1449
- var isObject$e = isObject$h;
1448
+ var global$H = global$V;
1449
+ var isObject$i = isObject$l;
1450
1450
 
1451
- var document$3 = global$F.document;
1451
+ var document$3 = global$H.document;
1452
1452
  // typeof document.createElement is 'object' in old IE
1453
- var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement);
1453
+ var EXISTS$1 = isObject$i(document$3) && isObject$i(document$3.createElement);
1454
1454
 
1455
1455
  var documentCreateElement$2 = function (it) {
1456
1456
  return EXISTS$1 ? document$3.createElement(it) : {};
1457
1457
  };
1458
1458
 
1459
1459
  var DESCRIPTORS$d = descriptors$1;
1460
- var fails$q = fails$v;
1460
+ var fails$s = fails$x;
1461
1461
  var createElement$1 = documentCreateElement$2;
1462
1462
 
1463
1463
  // Thanks to IE8 for its funny defineProperty
1464
- var ie8DomDefine = !DESCRIPTORS$d && !fails$q(function () {
1464
+ var ie8DomDefine = !DESCRIPTORS$d && !fails$s(function () {
1465
1465
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1466
1466
  return Object.defineProperty(createElement$1('div'), 'a', {
1467
1467
  get: function () { return 7; }
@@ -1474,7 +1474,7 @@ var Paystack = (function (exports) {
1474
1474
  var createPropertyDescriptor$5 = createPropertyDescriptor$6;
1475
1475
  var toIndexedObject$7 = toIndexedObject$8;
1476
1476
  var toPropertyKey$2 = toPropertyKey$3;
1477
- var hasOwn$d = hasOwnProperty_1;
1477
+ var hasOwn$e = hasOwnProperty_1;
1478
1478
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
1479
1479
 
1480
1480
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1488,17 +1488,17 @@ var Paystack = (function (exports) {
1488
1488
  if (IE8_DOM_DEFINE$1) try {
1489
1489
  return $getOwnPropertyDescriptor$1(O, P);
1490
1490
  } catch (error) { /* empty */ }
1491
- if (hasOwn$d(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1491
+ if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1492
1492
  };
1493
1493
 
1494
1494
  var objectDefineProperty = {};
1495
1495
 
1496
1496
  var DESCRIPTORS$b = descriptors$1;
1497
- var fails$p = fails$v;
1497
+ var fails$r = fails$x;
1498
1498
 
1499
1499
  // V8 ~ Chrome 36-
1500
1500
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1501
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
1501
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$r(function () {
1502
1502
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1503
1503
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1504
1504
  value: 42,
@@ -1506,26 +1506,26 @@ var Paystack = (function (exports) {
1506
1506
  }).prototype != 42;
1507
1507
  });
1508
1508
 
1509
- var global$E = global$T;
1510
- var isObject$d = isObject$h;
1509
+ var global$G = global$V;
1510
+ var isObject$h = isObject$l;
1511
1511
 
1512
- var String$4 = global$E.String;
1513
- var TypeError$f = global$E.TypeError;
1512
+ var String$4 = global$G.String;
1513
+ var TypeError$f = global$G.TypeError;
1514
1514
 
1515
1515
  // `Assert: Type(argument) is Object`
1516
- var anObject$e = function (argument) {
1517
- if (isObject$d(argument)) return argument;
1516
+ var anObject$f = function (argument) {
1517
+ if (isObject$h(argument)) return argument;
1518
1518
  throw TypeError$f(String$4(argument) + ' is not an object');
1519
1519
  };
1520
1520
 
1521
- var global$D = global$T;
1521
+ var global$F = global$V;
1522
1522
  var DESCRIPTORS$a = descriptors$1;
1523
1523
  var IE8_DOM_DEFINE = ie8DomDefine;
1524
1524
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
1525
- var anObject$d = anObject$e;
1525
+ var anObject$e = anObject$f;
1526
1526
  var toPropertyKey$1 = toPropertyKey$3;
1527
1527
 
1528
- var TypeError$e = global$D.TypeError;
1528
+ var TypeError$e = global$F.TypeError;
1529
1529
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1530
1530
  var $defineProperty = Object.defineProperty;
1531
1531
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1537,9 +1537,9 @@ var Paystack = (function (exports) {
1537
1537
  // `Object.defineProperty` method
1538
1538
  // https://tc39.es/ecma262/#sec-object.defineproperty
1539
1539
  objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
1540
- anObject$d(O);
1540
+ anObject$e(O);
1541
1541
  P = toPropertyKey$1(P);
1542
- anObject$d(Attributes);
1542
+ anObject$e(Attributes);
1543
1543
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1544
1544
  var current = $getOwnPropertyDescriptor(O, P);
1545
1545
  if (current && current[WRITABLE]) {
@@ -1552,9 +1552,9 @@ var Paystack = (function (exports) {
1552
1552
  }
1553
1553
  } return $defineProperty(O, P, Attributes);
1554
1554
  } : $defineProperty : function defineProperty(O, P, Attributes) {
1555
- anObject$d(O);
1555
+ anObject$e(O);
1556
1556
  P = toPropertyKey$1(P);
1557
- anObject$d(Attributes);
1557
+ anObject$e(Attributes);
1558
1558
  if (IE8_DOM_DEFINE) try {
1559
1559
  return $defineProperty(O, P, Attributes);
1560
1560
  } catch (error) { /* empty */ }
@@ -1574,16 +1574,16 @@ var Paystack = (function (exports) {
1574
1574
  return object;
1575
1575
  };
1576
1576
 
1577
- var redefine$a = {exports: {}};
1577
+ var redefine$b = {exports: {}};
1578
1578
 
1579
- var uncurryThis$r = functionUncurryThis;
1580
- var isCallable$e = isCallable$k;
1579
+ var uncurryThis$u = functionUncurryThis;
1580
+ var isCallable$f = isCallable$l;
1581
1581
  var store$1 = sharedStore;
1582
1582
 
1583
- var functionToString$1 = uncurryThis$r(Function.toString);
1583
+ var functionToString$1 = uncurryThis$u(Function.toString);
1584
1584
 
1585
1585
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1586
- if (!isCallable$e(store$1.inspectSource)) {
1586
+ if (!isCallable$f(store$1.inspectSource)) {
1587
1587
  store$1.inspectSource = function (it) {
1588
1588
  return functionToString$1(it);
1589
1589
  };
@@ -1591,13 +1591,13 @@ var Paystack = (function (exports) {
1591
1591
 
1592
1592
  var inspectSource$4 = store$1.inspectSource;
1593
1593
 
1594
- var global$C = global$T;
1595
- var isCallable$d = isCallable$k;
1594
+ var global$E = global$V;
1595
+ var isCallable$e = isCallable$l;
1596
1596
  var inspectSource$3 = inspectSource$4;
1597
1597
 
1598
- var WeakMap$1 = global$C.WeakMap;
1598
+ var WeakMap$2 = global$E.WeakMap;
1599
1599
 
1600
- var nativeWeakMap = isCallable$d(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
1600
+ var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$3(WeakMap$2));
1601
1601
 
1602
1602
  var shared$2 = shared$4.exports;
1603
1603
  var uid$1 = uid$3;
@@ -1610,19 +1610,19 @@ var Paystack = (function (exports) {
1610
1610
 
1611
1611
  var hiddenKeys$5 = {};
1612
1612
 
1613
- var NATIVE_WEAK_MAP = nativeWeakMap;
1614
- var global$B = global$T;
1615
- var uncurryThis$q = functionUncurryThis;
1616
- var isObject$c = isObject$h;
1613
+ var NATIVE_WEAK_MAP$1 = nativeWeakMap;
1614
+ var global$D = global$V;
1615
+ var uncurryThis$t = functionUncurryThis;
1616
+ var isObject$g = isObject$l;
1617
1617
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
1618
- var hasOwn$c = hasOwnProperty_1;
1618
+ var hasOwn$d = hasOwnProperty_1;
1619
1619
  var shared$1 = sharedStore;
1620
1620
  var sharedKey$2 = sharedKey$3;
1621
1621
  var hiddenKeys$4 = hiddenKeys$5;
1622
1622
 
1623
1623
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1624
- var TypeError$d = global$B.TypeError;
1625
- var WeakMap = global$B.WeakMap;
1624
+ var TypeError$d = global$D.TypeError;
1625
+ var WeakMap$1 = global$D.WeakMap;
1626
1626
  var set$1, get, has$3;
1627
1627
 
1628
1628
  var enforce = function (it) {
@@ -1632,17 +1632,17 @@ var Paystack = (function (exports) {
1632
1632
  var getterFor = function (TYPE) {
1633
1633
  return function (it) {
1634
1634
  var state;
1635
- if (!isObject$c(it) || (state = get(it)).type !== TYPE) {
1635
+ if (!isObject$g(it) || (state = get(it)).type !== TYPE) {
1636
1636
  throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
1637
1637
  } return state;
1638
1638
  };
1639
1639
  };
1640
1640
 
1641
- if (NATIVE_WEAK_MAP || shared$1.state) {
1642
- var store = shared$1.state || (shared$1.state = new WeakMap());
1643
- var wmget = uncurryThis$q(store.get);
1644
- var wmhas = uncurryThis$q(store.has);
1645
- var wmset = uncurryThis$q(store.set);
1641
+ if (NATIVE_WEAK_MAP$1 || shared$1.state) {
1642
+ var store = shared$1.state || (shared$1.state = new WeakMap$1());
1643
+ var wmget = uncurryThis$t(store.get);
1644
+ var wmhas = uncurryThis$t(store.has);
1645
+ var wmset = uncurryThis$t(store.set);
1646
1646
  set$1 = function (it, metadata) {
1647
1647
  if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1648
1648
  metadata.facade = it;
@@ -1659,16 +1659,16 @@ var Paystack = (function (exports) {
1659
1659
  var STATE = sharedKey$2('state');
1660
1660
  hiddenKeys$4[STATE] = true;
1661
1661
  set$1 = function (it, metadata) {
1662
- if (hasOwn$c(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1662
+ if (hasOwn$d(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1663
1663
  metadata.facade = it;
1664
1664
  createNonEnumerableProperty$7(it, STATE, metadata);
1665
1665
  return metadata;
1666
1666
  };
1667
1667
  get = function (it) {
1668
- return hasOwn$c(it, STATE) ? it[STATE] : {};
1668
+ return hasOwn$d(it, STATE) ? it[STATE] : {};
1669
1669
  };
1670
1670
  has$3 = function (it) {
1671
- return hasOwn$c(it, STATE);
1671
+ return hasOwn$d(it, STATE);
1672
1672
  };
1673
1673
  }
1674
1674
 
@@ -1681,13 +1681,13 @@ var Paystack = (function (exports) {
1681
1681
  };
1682
1682
 
1683
1683
  var DESCRIPTORS$8 = descriptors$1;
1684
- var hasOwn$b = hasOwnProperty_1;
1684
+ var hasOwn$c = hasOwnProperty_1;
1685
1685
 
1686
1686
  var FunctionPrototype$2 = Function.prototype;
1687
1687
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1688
1688
  var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
1689
1689
 
1690
- var EXISTS = hasOwn$b(FunctionPrototype$2, 'name');
1690
+ var EXISTS = hasOwn$c(FunctionPrototype$2, 'name');
1691
1691
  // additional protection from minified / mangled / dropped function names
1692
1692
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1693
1693
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$2, 'name').configurable));
@@ -1698,38 +1698,38 @@ var Paystack = (function (exports) {
1698
1698
  CONFIGURABLE: CONFIGURABLE
1699
1699
  };
1700
1700
 
1701
- var global$A = global$T;
1702
- var isCallable$c = isCallable$k;
1703
- var hasOwn$a = hasOwnProperty_1;
1701
+ var global$C = global$V;
1702
+ var isCallable$d = isCallable$l;
1703
+ var hasOwn$b = hasOwnProperty_1;
1704
1704
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
1705
1705
  var setGlobal$1 = setGlobal$3;
1706
1706
  var inspectSource$2 = inspectSource$4;
1707
- var InternalStateModule$5 = internalState;
1707
+ var InternalStateModule$6 = internalState;
1708
1708
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1709
1709
 
1710
- var getInternalState$4 = InternalStateModule$5.get;
1711
- var enforceInternalState = InternalStateModule$5.enforce;
1710
+ var getInternalState$4 = InternalStateModule$6.get;
1711
+ var enforceInternalState$1 = InternalStateModule$6.enforce;
1712
1712
  var TEMPLATE = String(String).split('String');
1713
1713
 
1714
- (redefine$a.exports = function (O, key, value, options) {
1714
+ (redefine$b.exports = function (O, key, value, options) {
1715
1715
  var unsafe = options ? !!options.unsafe : false;
1716
1716
  var simple = options ? !!options.enumerable : false;
1717
1717
  var noTargetGet = options ? !!options.noTargetGet : false;
1718
1718
  var name = options && options.name !== undefined ? options.name : key;
1719
1719
  var state;
1720
- if (isCallable$c(value)) {
1720
+ if (isCallable$d(value)) {
1721
1721
  if (String(name).slice(0, 7) === 'Symbol(') {
1722
1722
  name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1723
1723
  }
1724
- if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1724
+ if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1725
1725
  createNonEnumerableProperty$6(value, 'name', name);
1726
1726
  }
1727
- state = enforceInternalState(value);
1727
+ state = enforceInternalState$1(value);
1728
1728
  if (!state.source) {
1729
1729
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1730
1730
  }
1731
1731
  }
1732
- if (O === global$A) {
1732
+ if (O === global$C) {
1733
1733
  if (simple) O[key] = value;
1734
1734
  else setGlobal$1(key, value);
1735
1735
  return;
@@ -1742,7 +1742,7 @@ var Paystack = (function (exports) {
1742
1742
  else createNonEnumerableProperty$6(O, key, value);
1743
1743
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1744
1744
  })(Function.prototype, 'toString', function toString() {
1745
- return isCallable$c(this) && getInternalState$4(this).source || inspectSource$2(this);
1745
+ return isCallable$d(this) && getInternalState$4(this).source || inspectSource$2(this);
1746
1746
  });
1747
1747
 
1748
1748
  var objectGetOwnPropertyNames = {};
@@ -1822,22 +1822,22 @@ var Paystack = (function (exports) {
1822
1822
  indexOf: createMethod$5(false)
1823
1823
  };
1824
1824
 
1825
- var uncurryThis$p = functionUncurryThis;
1826
- var hasOwn$9 = hasOwnProperty_1;
1825
+ var uncurryThis$s = functionUncurryThis;
1826
+ var hasOwn$a = hasOwnProperty_1;
1827
1827
  var toIndexedObject$5 = toIndexedObject$8;
1828
1828
  var indexOf$1 = arrayIncludes.indexOf;
1829
1829
  var hiddenKeys$3 = hiddenKeys$5;
1830
1830
 
1831
- var push$7 = uncurryThis$p([].push);
1831
+ var push$7 = uncurryThis$s([].push);
1832
1832
 
1833
1833
  var objectKeysInternal = function (object, names) {
1834
1834
  var O = toIndexedObject$5(object);
1835
1835
  var i = 0;
1836
1836
  var result = [];
1837
1837
  var key;
1838
- for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$7(result, key);
1838
+ for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$7(result, key);
1839
1839
  // Don't enum bug & hidden keys
1840
- while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
1840
+ while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
1841
1841
  ~indexOf$1(result, key) || push$7(result, key);
1842
1842
  }
1843
1843
  return result;
@@ -1872,21 +1872,21 @@ var Paystack = (function (exports) {
1872
1872
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1873
1873
 
1874
1874
  var getBuiltIn$7 = getBuiltIn$a;
1875
- var uncurryThis$o = functionUncurryThis;
1875
+ var uncurryThis$r = functionUncurryThis;
1876
1876
  var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
1877
1877
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1878
- var anObject$c = anObject$e;
1878
+ var anObject$d = anObject$f;
1879
1879
 
1880
- var concat$1 = uncurryThis$o([].concat);
1880
+ var concat$1 = uncurryThis$r([].concat);
1881
1881
 
1882
1882
  // all object keys, includes non-enumerable and symbols
1883
1883
  var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
1884
- var keys = getOwnPropertyNamesModule$1.f(anObject$c(it));
1884
+ var keys = getOwnPropertyNamesModule$1.f(anObject$d(it));
1885
1885
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1886
1886
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1887
1887
  };
1888
1888
 
1889
- var hasOwn$8 = hasOwnProperty_1;
1889
+ var hasOwn$9 = hasOwnProperty_1;
1890
1890
  var ownKeys = ownKeys$1;
1891
1891
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1892
1892
  var definePropertyModule$4 = objectDefineProperty;
@@ -1897,42 +1897,42 @@ var Paystack = (function (exports) {
1897
1897
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1898
1898
  for (var i = 0; i < keys.length; i++) {
1899
1899
  var key = keys[i];
1900
- if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) {
1900
+ if (!hasOwn$9(target, key) && !(exceptions && hasOwn$9(exceptions, key))) {
1901
1901
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1902
1902
  }
1903
1903
  }
1904
1904
  };
1905
1905
 
1906
- var fails$o = fails$v;
1907
- var isCallable$b = isCallable$k;
1906
+ var fails$q = fails$x;
1907
+ var isCallable$c = isCallable$l;
1908
1908
 
1909
1909
  var replacement = /#|\.prototype\./;
1910
1910
 
1911
- var isForced$3 = function (feature, detection) {
1911
+ var isForced$4 = function (feature, detection) {
1912
1912
  var value = data$1[normalize(feature)];
1913
1913
  return value == POLYFILL ? true
1914
1914
  : value == NATIVE ? false
1915
- : isCallable$b(detection) ? fails$o(detection)
1915
+ : isCallable$c(detection) ? fails$q(detection)
1916
1916
  : !!detection;
1917
1917
  };
1918
1918
 
1919
- var normalize = isForced$3.normalize = function (string) {
1919
+ var normalize = isForced$4.normalize = function (string) {
1920
1920
  return String(string).replace(replacement, '.').toLowerCase();
1921
1921
  };
1922
1922
 
1923
- var data$1 = isForced$3.data = {};
1924
- var NATIVE = isForced$3.NATIVE = 'N';
1925
- var POLYFILL = isForced$3.POLYFILL = 'P';
1923
+ var data$1 = isForced$4.data = {};
1924
+ var NATIVE = isForced$4.NATIVE = 'N';
1925
+ var POLYFILL = isForced$4.POLYFILL = 'P';
1926
1926
 
1927
- var isForced_1 = isForced$3;
1927
+ var isForced_1 = isForced$4;
1928
1928
 
1929
- var global$z = global$T;
1929
+ var global$B = global$V;
1930
1930
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1931
1931
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1932
- var redefine$9 = redefine$a.exports;
1932
+ var redefine$a = redefine$b.exports;
1933
1933
  var setGlobal = setGlobal$3;
1934
1934
  var copyConstructorProperties$1 = copyConstructorProperties$2;
1935
- var isForced$2 = isForced_1;
1935
+ var isForced$3 = isForced_1;
1936
1936
 
1937
1937
  /*
1938
1938
  options.target - name of the target object
@@ -1955,11 +1955,11 @@ var Paystack = (function (exports) {
1955
1955
  var STATIC = options.stat;
1956
1956
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1957
1957
  if (GLOBAL) {
1958
- target = global$z;
1958
+ target = global$B;
1959
1959
  } else if (STATIC) {
1960
- target = global$z[TARGET] || setGlobal(TARGET, {});
1960
+ target = global$B[TARGET] || setGlobal(TARGET, {});
1961
1961
  } else {
1962
- target = (global$z[TARGET] || {}).prototype;
1962
+ target = (global$B[TARGET] || {}).prototype;
1963
1963
  }
1964
1964
  if (target) for (key in source) {
1965
1965
  sourceProperty = source[key];
@@ -1967,7 +1967,7 @@ var Paystack = (function (exports) {
1967
1967
  descriptor = getOwnPropertyDescriptor$2(target, key);
1968
1968
  targetProperty = descriptor && descriptor.value;
1969
1969
  } else targetProperty = target[key];
1970
- FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1970
+ FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1971
1971
  // contained in target
1972
1972
  if (!FORCED && targetProperty !== undefined) {
1973
1973
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1978,7 +1978,7 @@ var Paystack = (function (exports) {
1978
1978
  createNonEnumerableProperty$5(sourceProperty, 'sham', true);
1979
1979
  }
1980
1980
  // extend global
1981
- redefine$9(target, key, sourceProperty, options);
1981
+ redefine$a(target, key, sourceProperty, options);
1982
1982
  }
1983
1983
  };
1984
1984
 
@@ -1996,12 +1996,12 @@ var Paystack = (function (exports) {
1996
1996
  else object[propertyKey] = value;
1997
1997
  };
1998
1998
 
1999
- var global$y = global$T;
1999
+ var global$A = global$V;
2000
2000
  var toAbsoluteIndex = toAbsoluteIndex$2;
2001
2001
  var lengthOfArrayLike$6 = lengthOfArrayLike$8;
2002
2002
  var createProperty$2 = createProperty$3;
2003
2003
 
2004
- var Array$4 = global$y.Array;
2004
+ var Array$4 = global$A.Array;
2005
2005
  var max$1 = Math.max;
2006
2006
 
2007
2007
  var arraySliceSimple = function (O, start, end) {
@@ -2040,9 +2040,9 @@ var Paystack = (function (exports) {
2040
2040
  };
2041
2041
 
2042
2042
  // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
2043
- var fails$n = fails$v;
2043
+ var fails$p = fails$x;
2044
2044
 
2045
- var arrayBufferNonExtensible = fails$n(function () {
2045
+ var arrayBufferNonExtensible = fails$p(function () {
2046
2046
  if (typeof ArrayBuffer == 'function') {
2047
2047
  var buffer = new ArrayBuffer(8);
2048
2048
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
@@ -2050,59 +2050,59 @@ var Paystack = (function (exports) {
2050
2050
  }
2051
2051
  });
2052
2052
 
2053
- var fails$m = fails$v;
2054
- var isObject$b = isObject$h;
2053
+ var fails$o = fails$x;
2054
+ var isObject$f = isObject$l;
2055
2055
  var classof$8 = classofRaw$1;
2056
2056
  var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
2057
2057
 
2058
2058
  // eslint-disable-next-line es/no-object-isextensible -- safe
2059
2059
  var $isExtensible = Object.isExtensible;
2060
- var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $isExtensible(1); });
2060
+ var FAILS_ON_PRIMITIVES$3 = fails$o(function () { $isExtensible(1); });
2061
2061
 
2062
2062
  // `Object.isExtensible` method
2063
2063
  // https://tc39.es/ecma262/#sec-object.isextensible
2064
- var objectIsExtensible = (FAILS_ON_PRIMITIVES$2 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2065
- if (!isObject$b(it)) return false;
2064
+ var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2065
+ if (!isObject$f(it)) return false;
2066
2066
  if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$8(it) == 'ArrayBuffer') return false;
2067
2067
  return $isExtensible ? $isExtensible(it) : true;
2068
2068
  } : $isExtensible;
2069
2069
 
2070
- var fails$l = fails$v;
2070
+ var fails$n = fails$x;
2071
2071
 
2072
- var freezing = !fails$l(function () {
2072
+ var freezing = !fails$n(function () {
2073
2073
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
2074
2074
  return Object.isExtensible(Object.preventExtensions({}));
2075
2075
  });
2076
2076
 
2077
- var $$m = _export;
2078
- var uncurryThis$n = functionUncurryThis;
2077
+ var $$o = _export;
2078
+ var uncurryThis$q = functionUncurryThis;
2079
2079
  var hiddenKeys$1 = hiddenKeys$5;
2080
- var isObject$a = isObject$h;
2081
- var hasOwn$7 = hasOwnProperty_1;
2080
+ var isObject$e = isObject$l;
2081
+ var hasOwn$8 = hasOwnProperty_1;
2082
2082
  var defineProperty$5 = objectDefineProperty.f;
2083
2083
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
2084
2084
  var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
2085
- var isExtensible = objectIsExtensible;
2085
+ var isExtensible$1 = objectIsExtensible;
2086
2086
  var uid = uid$3;
2087
- var FREEZING$1 = freezing;
2087
+ var FREEZING$2 = freezing;
2088
2088
 
2089
2089
  var REQUIRED = false;
2090
2090
  var METADATA = uid('meta');
2091
- var id = 0;
2091
+ var id$1 = 0;
2092
2092
 
2093
2093
  var setMetadata = function (it) {
2094
2094
  defineProperty$5(it, METADATA, { value: {
2095
- objectID: 'O' + id++, // object ID
2095
+ objectID: 'O' + id$1++, // object ID
2096
2096
  weakData: {} // weak collections IDs
2097
2097
  } });
2098
2098
  };
2099
2099
 
2100
2100
  var fastKey = function (it, create) {
2101
2101
  // return a primitive with prefix
2102
- if (!isObject$a(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2103
- if (!hasOwn$7(it, METADATA)) {
2102
+ if (!isObject$e(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2103
+ if (!hasOwn$8(it, METADATA)) {
2104
2104
  // can't set metadata to uncaught frozen object
2105
- if (!isExtensible(it)) return 'F';
2105
+ if (!isExtensible$1(it)) return 'F';
2106
2106
  // not necessary to add metadata
2107
2107
  if (!create) return 'E';
2108
2108
  // add missing metadata
@@ -2111,10 +2111,10 @@ var Paystack = (function (exports) {
2111
2111
  } return it[METADATA].objectID;
2112
2112
  };
2113
2113
 
2114
- var getWeakData = function (it, create) {
2115
- if (!hasOwn$7(it, METADATA)) {
2114
+ var getWeakData$1 = function (it, create) {
2115
+ if (!hasOwn$8(it, METADATA)) {
2116
2116
  // can't set metadata to uncaught frozen object
2117
- if (!isExtensible(it)) return true;
2117
+ if (!isExtensible$1(it)) return true;
2118
2118
  // not necessary to add metadata
2119
2119
  if (!create) return false;
2120
2120
  // add missing metadata
@@ -2124,8 +2124,8 @@ var Paystack = (function (exports) {
2124
2124
  };
2125
2125
 
2126
2126
  // add metadata on freeze-family methods calling
2127
- var onFreeze$1 = function (it) {
2128
- if (FREEZING$1 && REQUIRED && isExtensible(it) && !hasOwn$7(it, METADATA)) setMetadata(it);
2127
+ var onFreeze$2 = function (it) {
2128
+ if (FREEZING$2 && REQUIRED && isExtensible$1(it) && !hasOwn$8(it, METADATA)) setMetadata(it);
2129
2129
  return it;
2130
2130
  };
2131
2131
 
@@ -2133,7 +2133,7 @@ var Paystack = (function (exports) {
2133
2133
  meta.enable = function () { /* empty */ };
2134
2134
  REQUIRED = true;
2135
2135
  var getOwnPropertyNames = getOwnPropertyNamesModule.f;
2136
- var splice = uncurryThis$n([].splice);
2136
+ var splice = uncurryThis$q([].splice);
2137
2137
  var test = {};
2138
2138
  test[METADATA] = 1;
2139
2139
 
@@ -2149,7 +2149,7 @@ var Paystack = (function (exports) {
2149
2149
  } return result;
2150
2150
  };
2151
2151
 
2152
- $$m({ target: 'Object', stat: true, forced: true }, {
2152
+ $$o({ target: 'Object', stat: true, forced: true }, {
2153
2153
  getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
2154
2154
  });
2155
2155
  }
@@ -2158,27 +2158,27 @@ var Paystack = (function (exports) {
2158
2158
  var meta = internalMetadata.exports = {
2159
2159
  enable: enable,
2160
2160
  fastKey: fastKey,
2161
- getWeakData: getWeakData,
2162
- onFreeze: onFreeze$1
2161
+ getWeakData: getWeakData$1,
2162
+ onFreeze: onFreeze$2
2163
2163
  };
2164
2164
 
2165
2165
  hiddenKeys$1[METADATA] = true;
2166
2166
 
2167
- var $$l = _export;
2168
- var isObject$9 = isObject$h;
2169
- var onFreeze = internalMetadata.exports.onFreeze;
2170
- var FREEZING = freezing;
2171
- var fails$k = fails$v;
2167
+ var $$n = _export;
2168
+ var isObject$d = isObject$l;
2169
+ var onFreeze$1 = internalMetadata.exports.onFreeze;
2170
+ var FREEZING$1 = freezing;
2171
+ var fails$m = fails$x;
2172
2172
 
2173
2173
  // eslint-disable-next-line es/no-object-seal -- safe
2174
2174
  var $seal = Object.seal;
2175
- var FAILS_ON_PRIMITIVES$1 = fails$k(function () { $seal(1); });
2175
+ var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $seal(1); });
2176
2176
 
2177
2177
  // `Object.seal` method
2178
2178
  // https://tc39.es/ecma262/#sec-object.seal
2179
- $$l({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING }, {
2179
+ $$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
2180
2180
  seal: function seal(it) {
2181
- return $seal && isObject$9(it) ? $seal(onFreeze(it)) : it;
2181
+ return $seal && isObject$d(it) ? $seal(onFreeze$1(it)) : it;
2182
2182
  }
2183
2183
  });
2184
2184
 
@@ -2193,21 +2193,21 @@ var Paystack = (function (exports) {
2193
2193
  return call$a.apply(apply$3, arguments);
2194
2194
  });
2195
2195
 
2196
- var global$x = global$T;
2197
- var isCallable$a = isCallable$k;
2196
+ var global$z = global$V;
2197
+ var isCallable$b = isCallable$l;
2198
2198
 
2199
- var String$3 = global$x.String;
2200
- var TypeError$c = global$x.TypeError;
2199
+ var String$3 = global$z.String;
2200
+ var TypeError$c = global$z.TypeError;
2201
2201
 
2202
2202
  var aPossiblePrototype$1 = function (argument) {
2203
- if (typeof argument == 'object' || isCallable$a(argument)) return argument;
2203
+ if (typeof argument == 'object' || isCallable$b(argument)) return argument;
2204
2204
  throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
2205
2205
  };
2206
2206
 
2207
2207
  /* eslint-disable no-proto -- safe */
2208
2208
 
2209
- var uncurryThis$m = functionUncurryThis;
2210
- var anObject$b = anObject$e;
2209
+ var uncurryThis$p = functionUncurryThis;
2210
+ var anObject$c = anObject$f;
2211
2211
  var aPossiblePrototype = aPossiblePrototype$1;
2212
2212
 
2213
2213
  // `Object.setPrototypeOf` method
@@ -2220,12 +2220,12 @@ var Paystack = (function (exports) {
2220
2220
  var setter;
2221
2221
  try {
2222
2222
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2223
- setter = uncurryThis$m(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2223
+ setter = uncurryThis$p(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2224
2224
  setter(test, []);
2225
2225
  CORRECT_SETTER = test instanceof Array;
2226
2226
  } catch (error) { /* empty */ }
2227
2227
  return function setPrototypeOf(O, proto) {
2228
- anObject$b(O);
2228
+ anObject$c(O);
2229
2229
  aPossiblePrototype(proto);
2230
2230
  if (CORRECT_SETTER) setter(O, proto);
2231
2231
  else O.__proto__ = proto;
@@ -2233,20 +2233,20 @@ var Paystack = (function (exports) {
2233
2233
  };
2234
2234
  }() : undefined);
2235
2235
 
2236
- var isCallable$9 = isCallable$k;
2237
- var isObject$8 = isObject$h;
2236
+ var isCallable$a = isCallable$l;
2237
+ var isObject$c = isObject$l;
2238
2238
  var setPrototypeOf$3 = objectSetPrototypeOf;
2239
2239
 
2240
2240
  // makes subclassing work correct for wrapped built-ins
2241
- var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
2241
+ var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
2242
2242
  var NewTarget, NewTargetPrototype;
2243
2243
  if (
2244
2244
  // it can work only with native `setPrototypeOf`
2245
2245
  setPrototypeOf$3 &&
2246
2246
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2247
- isCallable$9(NewTarget = dummy.constructor) &&
2247
+ isCallable$a(NewTarget = dummy.constructor) &&
2248
2248
  NewTarget !== Wrapper &&
2249
- isObject$8(NewTargetPrototype = NewTarget.prototype) &&
2249
+ isObject$c(NewTargetPrototype = NewTarget.prototype) &&
2250
2250
  NewTargetPrototype !== Wrapper.prototype
2251
2251
  ) setPrototypeOf$3($this, NewTargetPrototype);
2252
2252
  return $this;
@@ -2261,14 +2261,14 @@ var Paystack = (function (exports) {
2261
2261
 
2262
2262
  var toStringTagSupport = String(test$1) === '[object z]';
2263
2263
 
2264
- var global$w = global$T;
2264
+ var global$y = global$V;
2265
2265
  var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
2266
- var isCallable$8 = isCallable$k;
2266
+ var isCallable$9 = isCallable$l;
2267
2267
  var classofRaw = classofRaw$1;
2268
2268
  var wellKnownSymbol$g = wellKnownSymbol$j;
2269
2269
 
2270
2270
  var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
2271
- var Object$2 = global$w.Object;
2271
+ var Object$2 = global$y.Object;
2272
2272
 
2273
2273
  // ES3 wrong here
2274
2274
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -2289,13 +2289,13 @@ var Paystack = (function (exports) {
2289
2289
  // builtinTag case
2290
2290
  : CORRECT_ARGUMENTS ? classofRaw(O)
2291
2291
  // ES3 arguments fallback
2292
- : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
2292
+ : (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
2293
2293
  };
2294
2294
 
2295
- var global$v = global$T;
2295
+ var global$x = global$V;
2296
2296
  var classof$6 = classof$7;
2297
2297
 
2298
- var String$2 = global$v.String;
2298
+ var String$2 = global$x.String;
2299
2299
 
2300
2300
  var toString$9 = function (argument) {
2301
2301
  if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
@@ -2308,20 +2308,20 @@ var Paystack = (function (exports) {
2308
2308
  return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
2309
2309
  };
2310
2310
 
2311
- var isObject$7 = isObject$h;
2311
+ var isObject$b = isObject$l;
2312
2312
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
2313
2313
 
2314
2314
  // `InstallErrorCause` abstract operation
2315
2315
  // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
2316
2316
  var installErrorCause$1 = function (O, options) {
2317
- if (isObject$7(options) && 'cause' in options) {
2317
+ if (isObject$b(options) && 'cause' in options) {
2318
2318
  createNonEnumerableProperty$4(O, 'cause', options.cause);
2319
2319
  }
2320
2320
  };
2321
2321
 
2322
- var uncurryThis$l = functionUncurryThis;
2322
+ var uncurryThis$o = functionUncurryThis;
2323
2323
 
2324
- var replace$7 = uncurryThis$l(''.replace);
2324
+ var replace$7 = uncurryThis$o(''.replace);
2325
2325
 
2326
2326
  var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
2327
2327
  var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
@@ -2333,10 +2333,10 @@ var Paystack = (function (exports) {
2333
2333
  } return stack;
2334
2334
  };
2335
2335
 
2336
- var fails$j = fails$v;
2336
+ var fails$l = fails$x;
2337
2337
  var createPropertyDescriptor$2 = createPropertyDescriptor$6;
2338
2338
 
2339
- var errorStackInstallable = !fails$j(function () {
2339
+ var errorStackInstallable = !fails$l(function () {
2340
2340
  var error = Error('a');
2341
2341
  if (!('stack' in error)) return true;
2342
2342
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -2345,12 +2345,12 @@ var Paystack = (function (exports) {
2345
2345
  });
2346
2346
 
2347
2347
  var getBuiltIn$6 = getBuiltIn$a;
2348
- var hasOwn$6 = hasOwnProperty_1;
2348
+ var hasOwn$7 = hasOwnProperty_1;
2349
2349
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
2350
2350
  var isPrototypeOf$4 = objectIsPrototypeOf;
2351
2351
  var setPrototypeOf$2 = objectSetPrototypeOf;
2352
2352
  var copyConstructorProperties = copyConstructorProperties$2;
2353
- var inheritIfRequired$1 = inheritIfRequired$2;
2353
+ var inheritIfRequired$2 = inheritIfRequired$3;
2354
2354
  var normalizeStringArgument = normalizeStringArgument$1;
2355
2355
  var installErrorCause = installErrorCause$1;
2356
2356
  var clearErrorStack = clearErrorStack$1;
@@ -2367,7 +2367,7 @@ var Paystack = (function (exports) {
2367
2367
  var OriginalErrorPrototype = OriginalError.prototype;
2368
2368
 
2369
2369
  // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
2370
- if (hasOwn$6(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2370
+ if (hasOwn$7(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2371
2371
 
2372
2372
  if (!FORCED) return OriginalError;
2373
2373
 
@@ -2378,7 +2378,7 @@ var Paystack = (function (exports) {
2378
2378
  var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
2379
2379
  if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
2380
2380
  if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$3(result, 'stack', clearErrorStack(result.stack, 2));
2381
- if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$1(result, this, WrappedError);
2381
+ if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$2(result, this, WrappedError);
2382
2382
  if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
2383
2383
  return result;
2384
2384
  });
@@ -2405,27 +2405,27 @@ var Paystack = (function (exports) {
2405
2405
 
2406
2406
  /* eslint-disable no-unused-vars -- required for functions `.length` */
2407
2407
 
2408
- var $$k = _export;
2409
- var global$u = global$T;
2408
+ var $$m = _export;
2409
+ var global$w = global$V;
2410
2410
  var apply$2 = functionApply;
2411
2411
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
2412
2412
 
2413
2413
  var WEB_ASSEMBLY = 'WebAssembly';
2414
- var WebAssembly = global$u[WEB_ASSEMBLY];
2414
+ var WebAssembly = global$w[WEB_ASSEMBLY];
2415
2415
 
2416
2416
  var FORCED$5 = Error('e', { cause: 7 }).cause !== 7;
2417
2417
 
2418
2418
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2419
2419
  var O = {};
2420
2420
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
2421
- $$k({ global: true, forced: FORCED$5 }, O);
2421
+ $$m({ global: true, forced: FORCED$5 }, O);
2422
2422
  };
2423
2423
 
2424
2424
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2425
2425
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
2426
2426
  var O = {};
2427
2427
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
2428
- $$k({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2428
+ $$m({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2429
2429
  }
2430
2430
  };
2431
2431
 
@@ -2470,9 +2470,9 @@ var Paystack = (function (exports) {
2470
2470
  return classof$5(argument) == 'Array';
2471
2471
  };
2472
2472
 
2473
- var uncurryThis$k = functionUncurryThis;
2474
- var fails$i = fails$v;
2475
- var isCallable$7 = isCallable$k;
2473
+ var uncurryThis$n = functionUncurryThis;
2474
+ var fails$k = fails$x;
2475
+ var isCallable$8 = isCallable$l;
2476
2476
  var classof$4 = classof$7;
2477
2477
  var getBuiltIn$5 = getBuiltIn$a;
2478
2478
  var inspectSource$1 = inspectSource$4;
@@ -2481,11 +2481,11 @@ var Paystack = (function (exports) {
2481
2481
  var empty = [];
2482
2482
  var construct = getBuiltIn$5('Reflect', 'construct');
2483
2483
  var constructorRegExp = /^\s*(?:class|function)\b/;
2484
- var exec$5 = uncurryThis$k(constructorRegExp.exec);
2484
+ var exec$5 = uncurryThis$n(constructorRegExp.exec);
2485
2485
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
2486
2486
 
2487
2487
  var isConstructorModern = function isConstructor(argument) {
2488
- if (!isCallable$7(argument)) return false;
2488
+ if (!isCallable$8(argument)) return false;
2489
2489
  try {
2490
2490
  construct(noop, empty, argument);
2491
2491
  return true;
@@ -2495,7 +2495,7 @@ var Paystack = (function (exports) {
2495
2495
  };
2496
2496
 
2497
2497
  var isConstructorLegacy = function isConstructor(argument) {
2498
- if (!isCallable$7(argument)) return false;
2498
+ if (!isCallable$8(argument)) return false;
2499
2499
  switch (classof$4(argument)) {
2500
2500
  case 'AsyncFunction':
2501
2501
  case 'GeneratorFunction':
@@ -2515,7 +2515,7 @@ var Paystack = (function (exports) {
2515
2515
 
2516
2516
  // `IsConstructor` abstract operation
2517
2517
  // https://tc39.es/ecma262/#sec-isconstructor
2518
- var isConstructor$3 = !construct || fails$i(function () {
2518
+ var isConstructor$3 = !construct || fails$k(function () {
2519
2519
  var called;
2520
2520
  return isConstructorModern(isConstructorModern.call)
2521
2521
  || !isConstructorModern(Object)
@@ -2523,14 +2523,14 @@ var Paystack = (function (exports) {
2523
2523
  || called;
2524
2524
  }) ? isConstructorLegacy : isConstructorModern;
2525
2525
 
2526
- var global$t = global$T;
2526
+ var global$v = global$V;
2527
2527
  var isArray$8 = isArray$9;
2528
2528
  var isConstructor$2 = isConstructor$3;
2529
- var isObject$6 = isObject$h;
2529
+ var isObject$a = isObject$l;
2530
2530
  var wellKnownSymbol$f = wellKnownSymbol$j;
2531
2531
 
2532
2532
  var SPECIES$4 = wellKnownSymbol$f('species');
2533
- var Array$3 = global$t.Array;
2533
+ var Array$3 = global$v.Array;
2534
2534
 
2535
2535
  // a part of `ArraySpeciesCreate` abstract operation
2536
2536
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -2540,7 +2540,7 @@ var Paystack = (function (exports) {
2540
2540
  C = originalArray.constructor;
2541
2541
  // cross-realm fallback
2542
2542
  if (isConstructor$2(C) && (C === Array$3 || isArray$8(C.prototype))) C = undefined;
2543
- else if (isObject$6(C)) {
2543
+ else if (isObject$a(C)) {
2544
2544
  C = C[SPECIES$4];
2545
2545
  if (C === null) C = undefined;
2546
2546
  }
@@ -2555,7 +2555,7 @@ var Paystack = (function (exports) {
2555
2555
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2556
2556
  };
2557
2557
 
2558
- var fails$h = fails$v;
2558
+ var fails$j = fails$x;
2559
2559
  var wellKnownSymbol$e = wellKnownSymbol$j;
2560
2560
  var V8_VERSION$2 = engineV8Version;
2561
2561
 
@@ -2565,7 +2565,7 @@ var Paystack = (function (exports) {
2565
2565
  // We can't use this feature detection in V8 since it causes
2566
2566
  // deoptimization and serious performance degradation
2567
2567
  // https://github.com/zloirock/core-js/issues/677
2568
- return V8_VERSION$2 >= 51 || !fails$h(function () {
2568
+ return V8_VERSION$2 >= 51 || !fails$j(function () {
2569
2569
  var array = [];
2570
2570
  var constructor = array.constructor = {};
2571
2571
  constructor[SPECIES$3] = function () {
@@ -2575,11 +2575,11 @@ var Paystack = (function (exports) {
2575
2575
  });
2576
2576
  };
2577
2577
 
2578
- var $$j = _export;
2579
- var global$s = global$T;
2580
- var fails$g = fails$v;
2578
+ var $$l = _export;
2579
+ var global$u = global$V;
2580
+ var fails$i = fails$x;
2581
2581
  var isArray$7 = isArray$9;
2582
- var isObject$5 = isObject$h;
2582
+ var isObject$9 = isObject$l;
2583
2583
  var toObject$7 = toObject$9;
2584
2584
  var lengthOfArrayLike$5 = lengthOfArrayLike$8;
2585
2585
  var createProperty$1 = createProperty$3;
@@ -2591,12 +2591,12 @@ var Paystack = (function (exports) {
2591
2591
  var IS_CONCAT_SPREADABLE = wellKnownSymbol$d('isConcatSpreadable');
2592
2592
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2593
2593
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2594
- var TypeError$b = global$s.TypeError;
2594
+ var TypeError$b = global$u.TypeError;
2595
2595
 
2596
2596
  // We can't use this feature detection in V8 since it causes
2597
2597
  // deoptimization and serious performance degradation
2598
2598
  // https://github.com/zloirock/core-js/issues/679
2599
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
2599
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {
2600
2600
  var array = [];
2601
2601
  array[IS_CONCAT_SPREADABLE] = false;
2602
2602
  return array.concat()[0] !== array;
@@ -2605,7 +2605,7 @@ var Paystack = (function (exports) {
2605
2605
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
2606
2606
 
2607
2607
  var isConcatSpreadable = function (O) {
2608
- if (!isObject$5(O)) return false;
2608
+ if (!isObject$9(O)) return false;
2609
2609
  var spreadable = O[IS_CONCAT_SPREADABLE];
2610
2610
  return spreadable !== undefined ? !!spreadable : isArray$7(O);
2611
2611
  };
@@ -2615,7 +2615,7 @@ var Paystack = (function (exports) {
2615
2615
  // `Array.prototype.concat` method
2616
2616
  // https://tc39.es/ecma262/#sec-array.prototype.concat
2617
2617
  // with adding support of @@isConcatSpreadable and @@species
2618
- $$j({ target: 'Array', proto: true, forced: FORCED$4 }, {
2618
+ $$l({ target: 'Array', proto: true, forced: FORCED$4 }, {
2619
2619
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2620
2620
  concat: function concat(arg) {
2621
2621
  var O = toObject$7(this);
@@ -2672,13 +2672,13 @@ var Paystack = (function (exports) {
2672
2672
  };
2673
2673
 
2674
2674
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2675
- var redefine$8 = redefine$a.exports;
2675
+ var redefine$9 = redefine$b.exports;
2676
2676
  var toString$7 = objectToString;
2677
2677
 
2678
2678
  // `Object.prototype.toString` method
2679
2679
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
2680
2680
  if (!TO_STRING_TAG_SUPPORT) {
2681
- redefine$8(Object.prototype, 'toString', toString$7, { unsafe: true });
2681
+ redefine$9(Object.prototype, 'toString', toString$7, { unsafe: true });
2682
2682
  }
2683
2683
 
2684
2684
  // iterable DOM collections
@@ -2725,11 +2725,11 @@ var Paystack = (function (exports) {
2725
2725
 
2726
2726
  var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
2727
2727
 
2728
- var uncurryThis$j = functionUncurryThis;
2728
+ var uncurryThis$m = functionUncurryThis;
2729
2729
  var aCallable$5 = aCallable$7;
2730
2730
  var NATIVE_BIND = functionBindNative;
2731
2731
 
2732
- var bind$b = uncurryThis$j(uncurryThis$j.bind);
2732
+ var bind$b = uncurryThis$m(uncurryThis$m.bind);
2733
2733
 
2734
2734
  // optional / simple context binding
2735
2735
  var functionBindContext = function (fn, that) {
@@ -2740,13 +2740,13 @@ var Paystack = (function (exports) {
2740
2740
  };
2741
2741
 
2742
2742
  var bind$a = functionBindContext;
2743
- var uncurryThis$i = functionUncurryThis;
2743
+ var uncurryThis$l = functionUncurryThis;
2744
2744
  var IndexedObject$3 = indexedObject;
2745
2745
  var toObject$6 = toObject$9;
2746
2746
  var lengthOfArrayLike$4 = lengthOfArrayLike$8;
2747
2747
  var arraySpeciesCreate = arraySpeciesCreate$2;
2748
2748
 
2749
- var push$6 = uncurryThis$i([].push);
2749
+ var push$6 = uncurryThis$l([].push);
2750
2750
 
2751
2751
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2752
2752
  var createMethod$4 = function (TYPE) {
@@ -2813,11 +2813,11 @@ var Paystack = (function (exports) {
2813
2813
  filterReject: createMethod$4(7)
2814
2814
  };
2815
2815
 
2816
- var fails$f = fails$v;
2816
+ var fails$h = fails$x;
2817
2817
 
2818
2818
  var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
2819
2819
  var method = [][METHOD_NAME];
2820
- return !!method && fails$f(function () {
2820
+ return !!method && fails$h(function () {
2821
2821
  // eslint-disable-next-line no-useless-call -- required for testing
2822
2822
  method.call(null, argument || function () { return 1; }, 1);
2823
2823
  });
@@ -2835,7 +2835,7 @@ var Paystack = (function (exports) {
2835
2835
  // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2836
2836
  } : [].forEach;
2837
2837
 
2838
- var global$r = global$T;
2838
+ var global$t = global$V;
2839
2839
  var DOMIterables$1 = domIterables;
2840
2840
  var DOMTokenListPrototype$1 = domTokenListPrototype;
2841
2841
  var forEach$1 = arrayForEach;
@@ -2852,7 +2852,7 @@ var Paystack = (function (exports) {
2852
2852
 
2853
2853
  for (var COLLECTION_NAME$1 in DOMIterables$1) {
2854
2854
  if (DOMIterables$1[COLLECTION_NAME$1]) {
2855
- handlePrototype$1(global$r[COLLECTION_NAME$1] && global$r[COLLECTION_NAME$1].prototype);
2855
+ handlePrototype$1(global$t[COLLECTION_NAME$1] && global$t[COLLECTION_NAME$1].prototype);
2856
2856
  }
2857
2857
  }
2858
2858
 
@@ -2868,27 +2868,27 @@ var Paystack = (function (exports) {
2868
2868
  return internalObjectKeys(O, enumBugKeys$1);
2869
2869
  };
2870
2870
 
2871
- var $$i = _export;
2871
+ var $$k = _export;
2872
2872
  var toObject$5 = toObject$9;
2873
2873
  var nativeKeys = objectKeys$3;
2874
- var fails$e = fails$v;
2874
+ var fails$g = fails$x;
2875
2875
 
2876
- var FAILS_ON_PRIMITIVES = fails$e(function () { nativeKeys(1); });
2876
+ var FAILS_ON_PRIMITIVES$1 = fails$g(function () { nativeKeys(1); });
2877
2877
 
2878
2878
  // `Object.keys` method
2879
2879
  // https://tc39.es/ecma262/#sec-object.keys
2880
- $$i({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
2880
+ $$k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
2881
2881
  keys: function keys(it) {
2882
2882
  return nativeKeys(toObject$5(it));
2883
2883
  }
2884
2884
  });
2885
2885
 
2886
- var anObject$a = anObject$e;
2886
+ var anObject$b = anObject$f;
2887
2887
 
2888
2888
  // `RegExp.prototype.flags` getter implementation
2889
2889
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2890
2890
  var regexpFlags$1 = function () {
2891
- var that = anObject$a(this);
2891
+ var that = anObject$b(this);
2892
2892
  var result = '';
2893
2893
  if (that.global) result += 'g';
2894
2894
  if (that.ignoreCase) result += 'i';
@@ -2899,13 +2899,13 @@ var Paystack = (function (exports) {
2899
2899
  return result;
2900
2900
  };
2901
2901
 
2902
- var fails$d = fails$v;
2903
- var global$q = global$T;
2902
+ var fails$f = fails$x;
2903
+ var global$s = global$V;
2904
2904
 
2905
2905
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2906
- var $RegExp$2 = global$q.RegExp;
2906
+ var $RegExp$2 = global$s.RegExp;
2907
2907
 
2908
- var UNSUPPORTED_Y$1 = fails$d(function () {
2908
+ var UNSUPPORTED_Y$1 = fails$f(function () {
2909
2909
  var re = $RegExp$2('a', 'y');
2910
2910
  re.lastIndex = 2;
2911
2911
  return re.exec('abcd') != null;
@@ -2913,11 +2913,11 @@ var Paystack = (function (exports) {
2913
2913
 
2914
2914
  // UC Browser bug
2915
2915
  // https://github.com/zloirock/core-js/issues/1008
2916
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$d(function () {
2916
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$f(function () {
2917
2917
  return !$RegExp$2('a', 'y').sticky;
2918
2918
  });
2919
2919
 
2920
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
2920
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$f(function () {
2921
2921
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2922
2922
  var re = $RegExp$2('^r', 'gy');
2923
2923
  re.lastIndex = 2;
@@ -2935,7 +2935,7 @@ var Paystack = (function (exports) {
2935
2935
  var DESCRIPTORS$7 = descriptors$1;
2936
2936
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2937
2937
  var definePropertyModule$2 = objectDefineProperty;
2938
- var anObject$9 = anObject$e;
2938
+ var anObject$a = anObject$f;
2939
2939
  var toIndexedObject$3 = toIndexedObject$8;
2940
2940
  var objectKeys$2 = objectKeys$3;
2941
2941
 
@@ -2943,7 +2943,7 @@ var Paystack = (function (exports) {
2943
2943
  // https://tc39.es/ecma262/#sec-object.defineproperties
2944
2944
  // eslint-disable-next-line es/no-object-defineproperties -- safe
2945
2945
  objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2946
- anObject$9(O);
2946
+ anObject$a(O);
2947
2947
  var props = toIndexedObject$3(Properties);
2948
2948
  var keys = objectKeys$2(Properties);
2949
2949
  var length = keys.length;
@@ -2959,7 +2959,7 @@ var Paystack = (function (exports) {
2959
2959
 
2960
2960
  /* global ActiveXObject -- old IE, WSH */
2961
2961
 
2962
- var anObject$8 = anObject$e;
2962
+ var anObject$9 = anObject$f;
2963
2963
  var definePropertiesModule = objectDefineProperties;
2964
2964
  var enumBugKeys = enumBugKeys$3;
2965
2965
  var hiddenKeys = hiddenKeys$5;
@@ -3032,7 +3032,7 @@ var Paystack = (function (exports) {
3032
3032
  var objectCreate = Object.create || function create(O, Properties) {
3033
3033
  var result;
3034
3034
  if (O !== null) {
3035
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
3035
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
3036
3036
  result = new EmptyConstructor();
3037
3037
  EmptyConstructor[PROTOTYPE] = null;
3038
3038
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -3041,24 +3041,24 @@ var Paystack = (function (exports) {
3041
3041
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
3042
3042
  };
3043
3043
 
3044
- var fails$c = fails$v;
3045
- var global$p = global$T;
3044
+ var fails$e = fails$x;
3045
+ var global$r = global$V;
3046
3046
 
3047
3047
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3048
- var $RegExp$1 = global$p.RegExp;
3048
+ var $RegExp$1 = global$r.RegExp;
3049
3049
 
3050
- var regexpUnsupportedDotAll = fails$c(function () {
3050
+ var regexpUnsupportedDotAll = fails$e(function () {
3051
3051
  var re = $RegExp$1('.', 's');
3052
3052
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
3053
3053
  });
3054
3054
 
3055
- var fails$b = fails$v;
3056
- var global$o = global$T;
3055
+ var fails$d = fails$x;
3056
+ var global$q = global$V;
3057
3057
 
3058
3058
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3059
- var $RegExp = global$o.RegExp;
3059
+ var $RegExp = global$q.RegExp;
3060
3060
 
3061
- var regexpUnsupportedNcg = fails$b(function () {
3061
+ var regexpUnsupportedNcg = fails$d(function () {
3062
3062
  var re = $RegExp('(?<a>b)', 'g');
3063
3063
  return re.exec('b').groups.a !== 'b' ||
3064
3064
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -3067,7 +3067,7 @@ var Paystack = (function (exports) {
3067
3067
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
3068
3068
  /* eslint-disable regexp/no-useless-quantifier -- testing */
3069
3069
  var call$9 = functionCall;
3070
- var uncurryThis$h = functionUncurryThis;
3070
+ var uncurryThis$k = functionUncurryThis;
3071
3071
  var toString$6 = toString$9;
3072
3072
  var regexpFlags = regexpFlags$1;
3073
3073
  var stickyHelpers = regexpStickyHelpers;
@@ -3080,10 +3080,10 @@ var Paystack = (function (exports) {
3080
3080
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
3081
3081
  var nativeExec = RegExp.prototype.exec;
3082
3082
  var patchedExec = nativeExec;
3083
- var charAt$5 = uncurryThis$h(''.charAt);
3084
- var indexOf = uncurryThis$h(''.indexOf);
3085
- var replace$6 = uncurryThis$h(''.replace);
3086
- var stringSlice$3 = uncurryThis$h(''.slice);
3083
+ var charAt$5 = uncurryThis$k(''.charAt);
3084
+ var indexOf = uncurryThis$k(''.indexOf);
3085
+ var replace$6 = uncurryThis$k(''.replace);
3086
+ var stringSlice$3 = uncurryThis$k(''.slice);
3087
3087
 
3088
3088
  var UPDATES_LAST_INDEX_WRONG = (function () {
3089
3089
  var re1 = /a/;
@@ -3181,23 +3181,23 @@ var Paystack = (function (exports) {
3181
3181
 
3182
3182
  var regexpExec = patchedExec;
3183
3183
 
3184
- var $$h = _export;
3184
+ var $$j = _export;
3185
3185
  var exec$4 = regexpExec;
3186
3186
 
3187
3187
  // `RegExp.prototype.exec` method
3188
3188
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
3189
- $$h({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3189
+ $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3190
3190
  exec: exec$4
3191
3191
  });
3192
3192
 
3193
3193
  // TODO: Remove from `core-js@4` since it's moved to entry points
3194
3194
 
3195
- var $$g = _export;
3196
- var global$n = global$T;
3195
+ var $$i = _export;
3196
+ var global$p = global$V;
3197
3197
  var call$8 = functionCall;
3198
- var uncurryThis$g = functionUncurryThis;
3199
- var isCallable$6 = isCallable$k;
3200
- var isObject$4 = isObject$h;
3198
+ var uncurryThis$j = functionUncurryThis;
3199
+ var isCallable$7 = isCallable$l;
3200
+ var isObject$8 = isObject$l;
3201
3201
 
3202
3202
  var DELEGATES_TO_EXEC = function () {
3203
3203
  var execCalled = false;
@@ -3209,17 +3209,17 @@ var Paystack = (function (exports) {
3209
3209
  return re.test('abc') === true && execCalled;
3210
3210
  }();
3211
3211
 
3212
- var Error$1 = global$n.Error;
3213
- var un$Test = uncurryThis$g(/./.test);
3212
+ var Error$1 = global$p.Error;
3213
+ var un$Test = uncurryThis$j(/./.test);
3214
3214
 
3215
3215
  // `RegExp.prototype.test` method
3216
3216
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
3217
- $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3217
+ $$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3218
3218
  test: function (str) {
3219
3219
  var exec = this.exec;
3220
- if (!isCallable$6(exec)) return un$Test(this, str);
3220
+ if (!isCallable$7(exec)) return un$Test(this, str);
3221
3221
  var result = call$8(exec, this, str);
3222
- if (result !== null && !isObject$4(result)) {
3222
+ if (result !== null && !isObject$8(result)) {
3223
3223
  throw new Error$1('RegExp exec method returned something other than an Object or null');
3224
3224
  }
3225
3225
  return !!result;
@@ -3230,12 +3230,12 @@ var Paystack = (function (exports) {
3230
3230
  var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3231
3231
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3232
3232
 
3233
- var uncurryThis$f = functionUncurryThis;
3233
+ var uncurryThis$i = functionUncurryThis;
3234
3234
  var requireObjectCoercible$1 = requireObjectCoercible$4;
3235
3235
  var toString$5 = toString$9;
3236
3236
  var whitespaces$2 = whitespaces$3;
3237
3237
 
3238
- var replace$5 = uncurryThis$f(''.replace);
3238
+ var replace$5 = uncurryThis$i(''.replace);
3239
3239
  var whitespace = '[' + whitespaces$2 + ']';
3240
3240
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
3241
3241
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -3262,21 +3262,21 @@ var Paystack = (function (exports) {
3262
3262
  trim: createMethod$3(3)
3263
3263
  };
3264
3264
 
3265
- var global$m = global$T;
3266
- var fails$a = fails$v;
3267
- var uncurryThis$e = functionUncurryThis;
3265
+ var global$o = global$V;
3266
+ var fails$c = fails$x;
3267
+ var uncurryThis$h = functionUncurryThis;
3268
3268
  var toString$4 = toString$9;
3269
3269
  var trim$2 = stringTrim.trim;
3270
3270
  var whitespaces$1 = whitespaces$3;
3271
3271
 
3272
- var $parseInt$1 = global$m.parseInt;
3273
- var Symbol$1 = global$m.Symbol;
3272
+ var $parseInt$1 = global$o.parseInt;
3273
+ var Symbol$1 = global$o.Symbol;
3274
3274
  var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
3275
3275
  var hex = /^[+-]?0x/i;
3276
- var exec$3 = uncurryThis$e(hex.exec);
3276
+ var exec$3 = uncurryThis$h(hex.exec);
3277
3277
  var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
3278
3278
  // MS Edge 18- broken with boxed symbols
3279
- || (ITERATOR$8 && !fails$a(function () { $parseInt$1(Object(ITERATOR$8)); }));
3279
+ || (ITERATOR$8 && !fails$c(function () { $parseInt$1(Object(ITERATOR$8)); }));
3280
3280
 
3281
3281
  // `parseInt` method
3282
3282
  // https://tc39.es/ecma262/#sec-parseint-string-radix
@@ -3285,32 +3285,32 @@ var Paystack = (function (exports) {
3285
3285
  return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
3286
3286
  } : $parseInt$1;
3287
3287
 
3288
- var $$f = _export;
3288
+ var $$h = _export;
3289
3289
  var $parseInt = numberParseInt;
3290
3290
 
3291
3291
  // `parseInt` method
3292
3292
  // https://tc39.es/ecma262/#sec-parseint-string-radix
3293
- $$f({ global: true, forced: parseInt != $parseInt }, {
3293
+ $$h({ global: true, forced: parseInt != $parseInt }, {
3294
3294
  parseInt: $parseInt
3295
3295
  });
3296
3296
 
3297
- var uncurryThis$d = functionUncurryThis;
3297
+ var uncurryThis$g = functionUncurryThis;
3298
3298
 
3299
3299
  // `thisNumberValue` abstract operation
3300
3300
  // https://tc39.es/ecma262/#sec-thisnumbervalue
3301
- var thisNumberValue$1 = uncurryThis$d(1.0.valueOf);
3301
+ var thisNumberValue$1 = uncurryThis$g(1.0.valueOf);
3302
3302
 
3303
3303
  var DESCRIPTORS$6 = descriptors$1;
3304
- var global$l = global$T;
3305
- var uncurryThis$c = functionUncurryThis;
3306
- var isForced$1 = isForced_1;
3307
- var redefine$7 = redefine$a.exports;
3308
- var hasOwn$5 = hasOwnProperty_1;
3309
- var inheritIfRequired = inheritIfRequired$2;
3304
+ var global$n = global$V;
3305
+ var uncurryThis$f = functionUncurryThis;
3306
+ var isForced$2 = isForced_1;
3307
+ var redefine$8 = redefine$b.exports;
3308
+ var hasOwn$6 = hasOwnProperty_1;
3309
+ var inheritIfRequired$1 = inheritIfRequired$3;
3310
3310
  var isPrototypeOf$3 = objectIsPrototypeOf;
3311
3311
  var isSymbol = isSymbol$3;
3312
3312
  var toPrimitive = toPrimitive$2;
3313
- var fails$9 = fails$v;
3313
+ var fails$b = fails$x;
3314
3314
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
3315
3315
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
3316
3316
  var defineProperty$4 = objectDefineProperty.f;
@@ -3318,11 +3318,11 @@ var Paystack = (function (exports) {
3318
3318
  var trim$1 = stringTrim.trim;
3319
3319
 
3320
3320
  var NUMBER = 'Number';
3321
- var NativeNumber = global$l[NUMBER];
3321
+ var NativeNumber = global$n[NUMBER];
3322
3322
  var NumberPrototype = NativeNumber.prototype;
3323
- var TypeError$a = global$l.TypeError;
3324
- var arraySlice$4 = uncurryThis$c(''.slice);
3325
- var charCodeAt$3 = uncurryThis$c(''.charCodeAt);
3323
+ var TypeError$a = global$n.TypeError;
3324
+ var arraySlice$4 = uncurryThis$f(''.slice);
3325
+ var charCodeAt$3 = uncurryThis$f(''.charCodeAt);
3326
3326
 
3327
3327
  // `ToNumeric` abstract operation
3328
3328
  // https://tc39.es/ecma262/#sec-tonumeric
@@ -3363,13 +3363,13 @@ var Paystack = (function (exports) {
3363
3363
 
3364
3364
  // `Number` constructor
3365
3365
  // https://tc39.es/ecma262/#sec-number-constructor
3366
- if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3366
+ if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3367
3367
  var NumberWrapper = function Number(value) {
3368
3368
  var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
3369
3369
  var dummy = this;
3370
3370
  // check on 1..constructor(foo) case
3371
- return isPrototypeOf$3(NumberPrototype, dummy) && fails$9(function () { thisNumberValue(dummy); })
3372
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
3371
+ return isPrototypeOf$3(NumberPrototype, dummy) && fails$b(function () { thisNumberValue(dummy); })
3372
+ ? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n;
3373
3373
  };
3374
3374
  for (var keys = DESCRIPTORS$6 ? getOwnPropertyNames(NativeNumber) : (
3375
3375
  // ES3:
@@ -3379,13 +3379,13 @@ var Paystack = (function (exports) {
3379
3379
  // ESNext
3380
3380
  'fromString,range'
3381
3381
  ).split(','), j = 0, key; keys.length > j; j++) {
3382
- if (hasOwn$5(NativeNumber, key = keys[j]) && !hasOwn$5(NumberWrapper, key)) {
3382
+ if (hasOwn$6(NativeNumber, key = keys[j]) && !hasOwn$6(NumberWrapper, key)) {
3383
3383
  defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
3384
3384
  }
3385
3385
  }
3386
3386
  NumberWrapper.prototype = NumberPrototype;
3387
3387
  NumberPrototype.constructor = NumberWrapper;
3388
- redefine$7(global$l, NUMBER, NumberWrapper);
3388
+ redefine$8(global$n, NUMBER, NumberWrapper);
3389
3389
  }
3390
3390
 
3391
3391
  function isPublicKey(value) {
@@ -3541,7 +3541,7 @@ var Paystack = (function (exports) {
3541
3541
  return errors;
3542
3542
  }
3543
3543
 
3544
- var $$e = _export;
3544
+ var $$g = _export;
3545
3545
  var $map = arrayIteration.map;
3546
3546
  var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
3547
3547
 
@@ -3550,7 +3550,7 @@ var Paystack = (function (exports) {
3550
3550
  // `Array.prototype.map` method
3551
3551
  // https://tc39.es/ecma262/#sec-array.prototype.map
3552
3552
  // with adding support of @@species
3553
- $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3553
+ $$g({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3554
3554
  map: function map(callbackfn /* , thisArg */) {
3555
3555
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3556
3556
  }
@@ -3617,13 +3617,13 @@ var Paystack = (function (exports) {
3617
3617
 
3618
3618
  var engineWebkitVersion = !!webkit && +webkit[1];
3619
3619
 
3620
- var $$d = _export;
3621
- var uncurryThis$b = functionUncurryThis;
3620
+ var $$f = _export;
3621
+ var uncurryThis$e = functionUncurryThis;
3622
3622
  var aCallable$4 = aCallable$7;
3623
3623
  var toObject$4 = toObject$9;
3624
3624
  var lengthOfArrayLike$3 = lengthOfArrayLike$8;
3625
3625
  var toString$3 = toString$9;
3626
- var fails$8 = fails$v;
3626
+ var fails$a = fails$x;
3627
3627
  var internalSort = arraySort$1;
3628
3628
  var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
3629
3629
  var FF = engineFfVersion;
@@ -3632,21 +3632,21 @@ var Paystack = (function (exports) {
3632
3632
  var WEBKIT = engineWebkitVersion;
3633
3633
 
3634
3634
  var test = [];
3635
- var un$Sort = uncurryThis$b(test.sort);
3636
- var push$5 = uncurryThis$b(test.push);
3635
+ var un$Sort = uncurryThis$e(test.sort);
3636
+ var push$5 = uncurryThis$e(test.push);
3637
3637
 
3638
3638
  // IE8-
3639
- var FAILS_ON_UNDEFINED = fails$8(function () {
3639
+ var FAILS_ON_UNDEFINED = fails$a(function () {
3640
3640
  test.sort(undefined);
3641
3641
  });
3642
3642
  // V8 bug
3643
- var FAILS_ON_NULL = fails$8(function () {
3643
+ var FAILS_ON_NULL = fails$a(function () {
3644
3644
  test.sort(null);
3645
3645
  });
3646
3646
  // Old WebKit
3647
3647
  var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort');
3648
3648
 
3649
- var STABLE_SORT = !fails$8(function () {
3649
+ var STABLE_SORT = !fails$a(function () {
3650
3650
  // feature detection can be too slow, so check engines versions
3651
3651
  if (V8) return V8 < 70;
3652
3652
  if (FF && FF > 3) return;
@@ -3694,7 +3694,7 @@ var Paystack = (function (exports) {
3694
3694
 
3695
3695
  // `Array.prototype.sort` method
3696
3696
  // https://tc39.es/ecma262/#sec-array.prototype.sort
3697
- $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
3697
+ $$f({ target: 'Array', proto: true, forced: FORCED$2 }, {
3698
3698
  sort: function sort(comparefn) {
3699
3699
  if (comparefn !== undefined) aCallable$4(comparefn);
3700
3700
 
@@ -3722,7 +3722,7 @@ var Paystack = (function (exports) {
3722
3722
  }
3723
3723
  });
3724
3724
 
3725
- var $$c = _export;
3725
+ var $$e = _export;
3726
3726
  var $filter = arrayIteration.filter;
3727
3727
  var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
3728
3728
 
@@ -3731,26 +3731,26 @@ var Paystack = (function (exports) {
3731
3731
  // `Array.prototype.filter` method
3732
3732
  // https://tc39.es/ecma262/#sec-array.prototype.filter
3733
3733
  // with adding support of @@species
3734
- $$c({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3734
+ $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3735
3735
  filter: function filter(callbackfn /* , thisArg */) {
3736
3736
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3737
3737
  }
3738
3738
  });
3739
3739
 
3740
- var $$b = _export;
3741
- var uncurryThis$a = functionUncurryThis;
3740
+ var $$d = _export;
3741
+ var uncurryThis$d = functionUncurryThis;
3742
3742
  var IndexedObject$2 = indexedObject;
3743
3743
  var toIndexedObject$2 = toIndexedObject$8;
3744
3744
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
3745
3745
 
3746
- var un$Join = uncurryThis$a([].join);
3746
+ var un$Join = uncurryThis$d([].join);
3747
3747
 
3748
3748
  var ES3_STRINGS = IndexedObject$2 != Object;
3749
3749
  var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
3750
3750
 
3751
3751
  // `Array.prototype.join` method
3752
3752
  // https://tc39.es/ecma262/#sec-array.prototype.join
3753
- $$b({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3753
+ $$d({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3754
3754
  join: function join(separator) {
3755
3755
  return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
3756
3756
  }
@@ -5173,26 +5173,26 @@ var Paystack = (function (exports) {
5173
5173
 
5174
5174
  var Fingerprint2 = fingerprint2.exports;
5175
5175
 
5176
- var global$k = global$T;
5176
+ var global$m = global$V;
5177
5177
 
5178
- var nativePromiseConstructor = global$k.Promise;
5178
+ var nativePromiseConstructor = global$m.Promise;
5179
5179
 
5180
- var redefine$6 = redefine$a.exports;
5180
+ var redefine$7 = redefine$b.exports;
5181
5181
 
5182
- var redefineAll$2 = function (target, src, options) {
5183
- for (var key in src) redefine$6(target, key, src[key], options);
5182
+ var redefineAll$4 = function (target, src, options) {
5183
+ for (var key in src) redefine$7(target, key, src[key], options);
5184
5184
  return target;
5185
5185
  };
5186
5186
 
5187
5187
  var defineProperty$3 = objectDefineProperty.f;
5188
- var hasOwn$4 = hasOwnProperty_1;
5188
+ var hasOwn$5 = hasOwnProperty_1;
5189
5189
  var wellKnownSymbol$c = wellKnownSymbol$j;
5190
5190
 
5191
5191
  var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
5192
5192
 
5193
- var setToStringTag$5 = function (target, TAG, STATIC) {
5193
+ var setToStringTag$6 = function (target, TAG, STATIC) {
5194
5194
  if (target && !STATIC) target = target.prototype;
5195
- if (target && !hasOwn$4(target, TO_STRING_TAG$1)) {
5195
+ if (target && !hasOwn$5(target, TO_STRING_TAG$1)) {
5196
5196
  defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
5197
5197
  }
5198
5198
  };
@@ -5216,12 +5216,12 @@ var Paystack = (function (exports) {
5216
5216
  }
5217
5217
  };
5218
5218
 
5219
- var global$j = global$T;
5219
+ var global$l = global$V;
5220
5220
  var isPrototypeOf$2 = objectIsPrototypeOf;
5221
5221
 
5222
- var TypeError$9 = global$j.TypeError;
5222
+ var TypeError$9 = global$l.TypeError;
5223
5223
 
5224
- var anInstance$3 = function (it, Prototype) {
5224
+ var anInstance$5 = function (it, Prototype) {
5225
5225
  if (isPrototypeOf$2(Prototype, it)) return it;
5226
5226
  throw TypeError$9('Incorrect invocation');
5227
5227
  };
@@ -5252,28 +5252,28 @@ var Paystack = (function (exports) {
5252
5252
  || Iterators$3[classof$2(it)];
5253
5253
  };
5254
5254
 
5255
- var global$i = global$T;
5255
+ var global$k = global$V;
5256
5256
  var call$7 = functionCall;
5257
5257
  var aCallable$3 = aCallable$7;
5258
- var anObject$7 = anObject$e;
5258
+ var anObject$8 = anObject$f;
5259
5259
  var tryToString$2 = tryToString$4;
5260
5260
  var getIteratorMethod$3 = getIteratorMethod$4;
5261
5261
 
5262
- var TypeError$8 = global$i.TypeError;
5262
+ var TypeError$8 = global$k.TypeError;
5263
5263
 
5264
5264
  var getIterator$3 = function (argument, usingIterator) {
5265
5265
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
5266
- if (aCallable$3(iteratorMethod)) return anObject$7(call$7(iteratorMethod, argument));
5266
+ if (aCallable$3(iteratorMethod)) return anObject$8(call$7(iteratorMethod, argument));
5267
5267
  throw TypeError$8(tryToString$2(argument) + ' is not iterable');
5268
5268
  };
5269
5269
 
5270
5270
  var call$6 = functionCall;
5271
- var anObject$6 = anObject$e;
5271
+ var anObject$7 = anObject$f;
5272
5272
  var getMethod = getMethod$3;
5273
5273
 
5274
5274
  var iteratorClose$2 = function (iterator, kind, value) {
5275
5275
  var innerResult, innerError;
5276
- anObject$6(iterator);
5276
+ anObject$7(iterator);
5277
5277
  try {
5278
5278
  innerResult = getMethod(iterator, 'return');
5279
5279
  if (!innerResult) {
@@ -5287,14 +5287,14 @@ var Paystack = (function (exports) {
5287
5287
  }
5288
5288
  if (kind === 'throw') throw value;
5289
5289
  if (innerError) throw innerResult;
5290
- anObject$6(innerResult);
5290
+ anObject$7(innerResult);
5291
5291
  return value;
5292
5292
  };
5293
5293
 
5294
- var global$h = global$T;
5294
+ var global$j = global$V;
5295
5295
  var bind$9 = functionBindContext;
5296
5296
  var call$5 = functionCall;
5297
- var anObject$5 = anObject$e;
5297
+ var anObject$6 = anObject$f;
5298
5298
  var tryToString$1 = tryToString$4;
5299
5299
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
5300
5300
  var lengthOfArrayLike$2 = lengthOfArrayLike$8;
@@ -5303,7 +5303,7 @@ var Paystack = (function (exports) {
5303
5303
  var getIteratorMethod$2 = getIteratorMethod$4;
5304
5304
  var iteratorClose$1 = iteratorClose$2;
5305
5305
 
5306
- var TypeError$7 = global$h.TypeError;
5306
+ var TypeError$7 = global$j.TypeError;
5307
5307
 
5308
5308
  var Result = function (stopped, result) {
5309
5309
  this.stopped = stopped;
@@ -5312,7 +5312,7 @@ var Paystack = (function (exports) {
5312
5312
 
5313
5313
  var ResultPrototype = Result.prototype;
5314
5314
 
5315
- var iterate$1 = function (iterable, unboundFunction, options) {
5315
+ var iterate$3 = function (iterable, unboundFunction, options) {
5316
5316
  var that = options && options.that;
5317
5317
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
5318
5318
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
@@ -5327,7 +5327,7 @@ var Paystack = (function (exports) {
5327
5327
 
5328
5328
  var callFn = function (value) {
5329
5329
  if (AS_ENTRIES) {
5330
- anObject$5(value);
5330
+ anObject$6(value);
5331
5331
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
5332
5332
  } return INTERRUPTED ? fn(value, stop) : fn(value);
5333
5333
  };
@@ -5380,7 +5380,7 @@ var Paystack = (function (exports) {
5380
5380
  Array.from(iteratorWithReturn, function () { throw 2; });
5381
5381
  } catch (error) { /* empty */ }
5382
5382
 
5383
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5383
+ var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
5384
5384
  if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
5385
5385
  var ITERATION_SUPPORT = false;
5386
5386
  try {
@@ -5397,11 +5397,11 @@ var Paystack = (function (exports) {
5397
5397
  return ITERATION_SUPPORT;
5398
5398
  };
5399
5399
 
5400
- var global$g = global$T;
5400
+ var global$i = global$V;
5401
5401
  var isConstructor$1 = isConstructor$3;
5402
5402
  var tryToString = tryToString$4;
5403
5403
 
5404
- var TypeError$6 = global$g.TypeError;
5404
+ var TypeError$6 = global$i.TypeError;
5405
5405
 
5406
5406
  // `Assert: IsConstructor(argument) is true`
5407
5407
  var aConstructor$1 = function (argument) {
@@ -5409,7 +5409,7 @@ var Paystack = (function (exports) {
5409
5409
  throw TypeError$6(tryToString(argument) + ' is not a constructor');
5410
5410
  };
5411
5411
 
5412
- var anObject$4 = anObject$e;
5412
+ var anObject$5 = anObject$f;
5413
5413
  var aConstructor = aConstructor$1;
5414
5414
  var wellKnownSymbol$7 = wellKnownSymbol$j;
5415
5415
 
@@ -5418,18 +5418,18 @@ var Paystack = (function (exports) {
5418
5418
  // `SpeciesConstructor` abstract operation
5419
5419
  // https://tc39.es/ecma262/#sec-speciesconstructor
5420
5420
  var speciesConstructor$1 = function (O, defaultConstructor) {
5421
- var C = anObject$4(O).constructor;
5421
+ var C = anObject$5(O).constructor;
5422
5422
  var S;
5423
- return C === undefined || (S = anObject$4(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5423
+ return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5424
5424
  };
5425
5425
 
5426
- var uncurryThis$9 = functionUncurryThis;
5426
+ var uncurryThis$c = functionUncurryThis;
5427
5427
 
5428
- var arraySlice$2 = uncurryThis$9([].slice);
5428
+ var arraySlice$2 = uncurryThis$c([].slice);
5429
5429
 
5430
- var global$f = global$T;
5430
+ var global$h = global$V;
5431
5431
 
5432
- var TypeError$5 = global$f.TypeError;
5432
+ var TypeError$5 = global$h.TypeError;
5433
5433
 
5434
5434
  var validateArgumentsLength$3 = function (passed, required) {
5435
5435
  if (passed < required) throw TypeError$5('Not enough arguments');
@@ -5441,16 +5441,16 @@ var Paystack = (function (exports) {
5441
5441
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5442
5442
 
5443
5443
  var classof$1 = classofRaw$1;
5444
- var global$e = global$T;
5444
+ var global$g = global$V;
5445
5445
 
5446
- var engineIsNode = classof$1(global$e.process) == 'process';
5446
+ var engineIsNode = classof$1(global$g.process) == 'process';
5447
5447
 
5448
- var global$d = global$T;
5448
+ var global$f = global$V;
5449
5449
  var apply$1 = functionApply;
5450
5450
  var bind$8 = functionBindContext;
5451
- var isCallable$5 = isCallable$k;
5452
- var hasOwn$3 = hasOwnProperty_1;
5453
- var fails$7 = fails$v;
5451
+ var isCallable$6 = isCallable$l;
5452
+ var hasOwn$4 = hasOwnProperty_1;
5453
+ var fails$9 = fails$x;
5454
5454
  var html = html$2;
5455
5455
  var arraySlice$1 = arraySlice$2;
5456
5456
  var createElement = documentCreateElement$2;
@@ -5458,13 +5458,13 @@ var Paystack = (function (exports) {
5458
5458
  var IS_IOS$1 = engineIsIos;
5459
5459
  var IS_NODE$3 = engineIsNode;
5460
5460
 
5461
- var set = global$d.setImmediate;
5462
- var clear = global$d.clearImmediate;
5463
- var process$3 = global$d.process;
5464
- var Dispatch = global$d.Dispatch;
5465
- var Function$1 = global$d.Function;
5466
- var MessageChannel = global$d.MessageChannel;
5467
- var String$1 = global$d.String;
5461
+ var set = global$f.setImmediate;
5462
+ var clear = global$f.clearImmediate;
5463
+ var process$3 = global$f.process;
5464
+ var Dispatch = global$f.Dispatch;
5465
+ var Function$1 = global$f.Function;
5466
+ var MessageChannel = global$f.MessageChannel;
5467
+ var String$1 = global$f.String;
5468
5468
  var counter = 0;
5469
5469
  var queue$1 = {};
5470
5470
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -5472,11 +5472,11 @@ var Paystack = (function (exports) {
5472
5472
 
5473
5473
  try {
5474
5474
  // Deno throws a ReferenceError on `location` access without `--location` flag
5475
- location = global$d.location;
5475
+ location = global$f.location;
5476
5476
  } catch (error) { /* empty */ }
5477
5477
 
5478
5478
  var run = function (id) {
5479
- if (hasOwn$3(queue$1, id)) {
5479
+ if (hasOwn$4(queue$1, id)) {
5480
5480
  var fn = queue$1[id];
5481
5481
  delete queue$1[id];
5482
5482
  fn();
@@ -5495,14 +5495,14 @@ var Paystack = (function (exports) {
5495
5495
 
5496
5496
  var post = function (id) {
5497
5497
  // old engines have not location.origin
5498
- global$d.postMessage(String$1(id), location.protocol + '//' + location.host);
5498
+ global$f.postMessage(String$1(id), location.protocol + '//' + location.host);
5499
5499
  };
5500
5500
 
5501
5501
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5502
5502
  if (!set || !clear) {
5503
5503
  set = function setImmediate(handler) {
5504
5504
  validateArgumentsLength$2(arguments.length, 1);
5505
- var fn = isCallable$5(handler) ? handler : Function$1(handler);
5505
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
5506
5506
  var args = arraySlice$1(arguments, 1);
5507
5507
  queue$1[++counter] = function () {
5508
5508
  apply$1(fn, undefined, args);
@@ -5533,14 +5533,14 @@ var Paystack = (function (exports) {
5533
5533
  // Browsers with postMessage, skip WebWorkers
5534
5534
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5535
5535
  } else if (
5536
- global$d.addEventListener &&
5537
- isCallable$5(global$d.postMessage) &&
5538
- !global$d.importScripts &&
5536
+ global$f.addEventListener &&
5537
+ isCallable$6(global$f.postMessage) &&
5538
+ !global$f.importScripts &&
5539
5539
  location && location.protocol !== 'file:' &&
5540
- !fails$7(post)
5540
+ !fails$9(post)
5541
5541
  ) {
5542
5542
  defer = post;
5543
- global$d.addEventListener('message', listener, false);
5543
+ global$f.addEventListener('message', listener, false);
5544
5544
  // IE8-
5545
5545
  } else if (ONREADYSTATECHANGE in createElement('script')) {
5546
5546
  defer = function (id) {
@@ -5563,15 +5563,15 @@ var Paystack = (function (exports) {
5563
5563
  };
5564
5564
 
5565
5565
  var userAgent$1 = engineUserAgent;
5566
- var global$c = global$T;
5566
+ var global$e = global$V;
5567
5567
 
5568
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$c.Pebble !== undefined;
5568
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$e.Pebble !== undefined;
5569
5569
 
5570
5570
  var userAgent = engineUserAgent;
5571
5571
 
5572
5572
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
5573
5573
 
5574
- var global$b = global$T;
5574
+ var global$d = global$V;
5575
5575
  var bind$7 = functionBindContext;
5576
5576
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
5577
5577
  var macrotask = task$1.set;
@@ -5580,12 +5580,12 @@ var Paystack = (function (exports) {
5580
5580
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
5581
5581
  var IS_NODE$2 = engineIsNode;
5582
5582
 
5583
- var MutationObserver = global$b.MutationObserver || global$b.WebKitMutationObserver;
5584
- var document$2 = global$b.document;
5585
- var process$2 = global$b.process;
5586
- var Promise$1 = global$b.Promise;
5583
+ var MutationObserver = global$d.MutationObserver || global$d.WebKitMutationObserver;
5584
+ var document$2 = global$d.document;
5585
+ var process$2 = global$d.process;
5586
+ var Promise$1 = global$d.Promise;
5587
5587
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
5588
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$b, 'queueMicrotask');
5588
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$d, 'queueMicrotask');
5589
5589
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
5590
5590
 
5591
5591
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -5641,7 +5641,7 @@ var Paystack = (function (exports) {
5641
5641
  // - setTimeout
5642
5642
  } else {
5643
5643
  // strange IE + webpack dev server bug - use .bind(global)
5644
- macrotask = bind$7(macrotask, global$b);
5644
+ macrotask = bind$7(macrotask, global$d);
5645
5645
  notify$1 = function () {
5646
5646
  macrotask(flush);
5647
5647
  };
@@ -5678,23 +5678,23 @@ var Paystack = (function (exports) {
5678
5678
  return new PromiseCapability(C);
5679
5679
  };
5680
5680
 
5681
- var anObject$3 = anObject$e;
5682
- var isObject$3 = isObject$h;
5681
+ var anObject$4 = anObject$f;
5682
+ var isObject$7 = isObject$l;
5683
5683
  var newPromiseCapability$1 = newPromiseCapability$2;
5684
5684
 
5685
5685
  var promiseResolve$1 = function (C, x) {
5686
- anObject$3(C);
5687
- if (isObject$3(x) && x.constructor === C) return x;
5686
+ anObject$4(C);
5687
+ if (isObject$7(x) && x.constructor === C) return x;
5688
5688
  var promiseCapability = newPromiseCapability$1.f(C);
5689
5689
  var resolve = promiseCapability.resolve;
5690
5690
  resolve(x);
5691
5691
  return promiseCapability.promise;
5692
5692
  };
5693
5693
 
5694
- var global$a = global$T;
5694
+ var global$c = global$V;
5695
5695
 
5696
5696
  var hostReportErrors$1 = function (a, b) {
5697
- var console = global$a.console;
5697
+ var console = global$c.console;
5698
5698
  if (console && console.error) {
5699
5699
  arguments.length == 1 ? console.error(a) : console.error(a, b);
5700
5700
  }
@@ -5734,23 +5734,23 @@ var Paystack = (function (exports) {
5734
5734
 
5735
5735
  var engineIsBrowser = typeof window == 'object';
5736
5736
 
5737
- var $$a = _export;
5738
- var global$9 = global$T;
5737
+ var $$c = _export;
5738
+ var global$b = global$V;
5739
5739
  var getBuiltIn$2 = getBuiltIn$a;
5740
5740
  var call$4 = functionCall;
5741
5741
  var NativePromise = nativePromiseConstructor;
5742
- var redefine$5 = redefine$a.exports;
5743
- var redefineAll$1 = redefineAll$2;
5742
+ var redefine$6 = redefine$b.exports;
5743
+ var redefineAll$3 = redefineAll$4;
5744
5744
  var setPrototypeOf$1 = objectSetPrototypeOf;
5745
- var setToStringTag$4 = setToStringTag$5;
5745
+ var setToStringTag$5 = setToStringTag$6;
5746
5746
  var setSpecies = setSpecies$1;
5747
5747
  var aCallable$1 = aCallable$7;
5748
- var isCallable$4 = isCallable$k;
5749
- var isObject$2 = isObject$h;
5750
- var anInstance$2 = anInstance$3;
5748
+ var isCallable$5 = isCallable$l;
5749
+ var isObject$6 = isObject$l;
5750
+ var anInstance$4 = anInstance$5;
5751
5751
  var inspectSource = inspectSource$4;
5752
- var iterate = iterate$1;
5753
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
5752
+ var iterate$2 = iterate$3;
5753
+ var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
5754
5754
  var speciesConstructor = speciesConstructor$1;
5755
5755
  var task = task$1.set;
5756
5756
  var microtask = microtask$1;
@@ -5759,8 +5759,8 @@ var Paystack = (function (exports) {
5759
5759
  var newPromiseCapabilityModule = newPromiseCapability$2;
5760
5760
  var perform = perform$1;
5761
5761
  var Queue = queue;
5762
- var InternalStateModule$4 = internalState;
5763
- var isForced = isForced_1;
5762
+ var InternalStateModule$5 = internalState;
5763
+ var isForced$1 = isForced_1;
5764
5764
  var wellKnownSymbol$6 = wellKnownSymbol$j;
5765
5765
  var IS_BROWSER = engineIsBrowser;
5766
5766
  var IS_NODE$1 = engineIsNode;
@@ -5769,20 +5769,20 @@ var Paystack = (function (exports) {
5769
5769
  var SPECIES = wellKnownSymbol$6('species');
5770
5770
  var PROMISE = 'Promise';
5771
5771
 
5772
- var getInternalState$2 = InternalStateModule$4.getterFor(PROMISE);
5773
- var setInternalState$4 = InternalStateModule$4.set;
5774
- var getInternalPromiseState = InternalStateModule$4.getterFor(PROMISE);
5772
+ var getInternalState$2 = InternalStateModule$5.getterFor(PROMISE);
5773
+ var setInternalState$5 = InternalStateModule$5.set;
5774
+ var getInternalPromiseState = InternalStateModule$5.getterFor(PROMISE);
5775
5775
  var NativePromisePrototype = NativePromise && NativePromise.prototype;
5776
5776
  var PromiseConstructor = NativePromise;
5777
5777
  var PromisePrototype = NativePromisePrototype;
5778
- var TypeError$4 = global$9.TypeError;
5779
- var document$1 = global$9.document;
5780
- var process$1 = global$9.process;
5778
+ var TypeError$4 = global$b.TypeError;
5779
+ var document$1 = global$b.document;
5780
+ var process$1 = global$b.process;
5781
5781
  var newPromiseCapability = newPromiseCapabilityModule.f;
5782
5782
  var newGenericPromiseCapability = newPromiseCapability;
5783
5783
 
5784
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$9.dispatchEvent);
5785
- var NATIVE_REJECTION_EVENT = isCallable$4(global$9.PromiseRejectionEvent);
5784
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$b.dispatchEvent);
5785
+ var NATIVE_REJECTION_EVENT = isCallable$5(global$b.PromiseRejectionEvent);
5786
5786
  var UNHANDLED_REJECTION = 'unhandledrejection';
5787
5787
  var REJECTION_HANDLED = 'rejectionhandled';
5788
5788
  var PENDING = 0;
@@ -5794,7 +5794,7 @@ var Paystack = (function (exports) {
5794
5794
 
5795
5795
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
5796
5796
 
5797
- var FORCED$1 = isForced(PROMISE, function () {
5797
+ var FORCED$1 = isForced$1(PROMISE, function () {
5798
5798
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
5799
5799
  var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
5800
5800
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
@@ -5818,14 +5818,14 @@ var Paystack = (function (exports) {
5818
5818
  return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
5819
5819
  });
5820
5820
 
5821
- var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
5821
+ var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration$1(function (iterable) {
5822
5822
  PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
5823
5823
  });
5824
5824
 
5825
5825
  // helpers
5826
5826
  var isThenable = function (it) {
5827
5827
  var then;
5828
- return isObject$2(it) && isCallable$4(then = it.then) ? then : false;
5828
+ return isObject$6(it) && isCallable$5(then = it.then) ? then : false;
5829
5829
  };
5830
5830
 
5831
5831
  var callReaction = function (reaction, state) {
@@ -5884,14 +5884,14 @@ var Paystack = (function (exports) {
5884
5884
  event.promise = promise;
5885
5885
  event.reason = reason;
5886
5886
  event.initEvent(name, false, true);
5887
- global$9.dispatchEvent(event);
5887
+ global$b.dispatchEvent(event);
5888
5888
  } else event = { promise: promise, reason: reason };
5889
- if (!NATIVE_REJECTION_EVENT && (handler = global$9['on' + name])) handler(event);
5889
+ if (!NATIVE_REJECTION_EVENT && (handler = global$b['on' + name])) handler(event);
5890
5890
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
5891
5891
  };
5892
5892
 
5893
5893
  var onUnhandled = function (state) {
5894
- call$4(task, global$9, function () {
5894
+ call$4(task, global$b, function () {
5895
5895
  var promise = state.facade;
5896
5896
  var value = state.value;
5897
5897
  var IS_UNHANDLED = isUnhandled(state);
@@ -5914,7 +5914,7 @@ var Paystack = (function (exports) {
5914
5914
  };
5915
5915
 
5916
5916
  var onHandleUnhandled = function (state) {
5917
- call$4(task, global$9, function () {
5917
+ call$4(task, global$b, function () {
5918
5918
  var promise = state.facade;
5919
5919
  if (IS_NODE$1) {
5920
5920
  process$1.emit('rejectionHandled', promise);
@@ -5970,7 +5970,7 @@ var Paystack = (function (exports) {
5970
5970
  if (FORCED$1) {
5971
5971
  // 25.4.3.1 Promise(executor)
5972
5972
  PromiseConstructor = function Promise(executor) {
5973
- anInstance$2(this, PromisePrototype);
5973
+ anInstance$4(this, PromisePrototype);
5974
5974
  aCallable$1(executor);
5975
5975
  call$4(Internal, this);
5976
5976
  var state = getInternalState$2(this);
@@ -5983,7 +5983,7 @@ var Paystack = (function (exports) {
5983
5983
  PromisePrototype = PromiseConstructor.prototype;
5984
5984
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5985
5985
  Internal = function Promise(executor) {
5986
- setInternalState$4(this, {
5986
+ setInternalState$5(this, {
5987
5987
  type: PROMISE,
5988
5988
  done: false,
5989
5989
  notified: false,
@@ -5994,7 +5994,7 @@ var Paystack = (function (exports) {
5994
5994
  value: undefined
5995
5995
  });
5996
5996
  };
5997
- Internal.prototype = redefineAll$1(PromisePrototype, {
5997
+ Internal.prototype = redefineAll$3(PromisePrototype, {
5998
5998
  // `Promise.prototype.then` method
5999
5999
  // https://tc39.es/ecma262/#sec-promise.prototype.then
6000
6000
  // eslint-disable-next-line unicorn/no-thenable -- safe
@@ -6002,8 +6002,8 @@ var Paystack = (function (exports) {
6002
6002
  var state = getInternalPromiseState(this);
6003
6003
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
6004
6004
  state.parent = true;
6005
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
6006
- reaction.fail = isCallable$4(onRejected) && onRejected;
6005
+ reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
6006
+ reaction.fail = isCallable$5(onRejected) && onRejected;
6007
6007
  reaction.domain = IS_NODE$1 ? process$1.domain : undefined;
6008
6008
  if (state.state == PENDING) state.reactions.add(reaction);
6009
6009
  else microtask(function () {
@@ -6030,12 +6030,12 @@ var Paystack = (function (exports) {
6030
6030
  : newGenericPromiseCapability(C);
6031
6031
  };
6032
6032
 
6033
- if (isCallable$4(NativePromise) && NativePromisePrototype !== Object.prototype) {
6033
+ if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
6034
6034
  nativeThen = NativePromisePrototype.then;
6035
6035
 
6036
6036
  if (!SUBCLASSING) {
6037
6037
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
6038
- redefine$5(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6038
+ redefine$6(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6039
6039
  var that = this;
6040
6040
  return new PromiseConstructor(function (resolve, reject) {
6041
6041
  call$4(nativeThen, that, resolve, reject);
@@ -6044,7 +6044,7 @@ var Paystack = (function (exports) {
6044
6044
  }, { unsafe: true });
6045
6045
 
6046
6046
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
6047
- redefine$5(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6047
+ redefine$6(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6048
6048
  }
6049
6049
 
6050
6050
  // make `.constructor === Promise` work for native promise-based APIs
@@ -6059,17 +6059,17 @@ var Paystack = (function (exports) {
6059
6059
  }
6060
6060
  }
6061
6061
 
6062
- $$a({ global: true, wrap: true, forced: FORCED$1 }, {
6062
+ $$c({ global: true, wrap: true, forced: FORCED$1 }, {
6063
6063
  Promise: PromiseConstructor
6064
6064
  });
6065
6065
 
6066
- setToStringTag$4(PromiseConstructor, PROMISE, false);
6066
+ setToStringTag$5(PromiseConstructor, PROMISE, false);
6067
6067
  setSpecies(PROMISE);
6068
6068
 
6069
6069
  PromiseWrapper = getBuiltIn$2(PROMISE);
6070
6070
 
6071
6071
  // statics
6072
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6072
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6073
6073
  // `Promise.reject` method
6074
6074
  // https://tc39.es/ecma262/#sec-promise.reject
6075
6075
  reject: function reject(r) {
@@ -6079,7 +6079,7 @@ var Paystack = (function (exports) {
6079
6079
  }
6080
6080
  });
6081
6081
 
6082
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6082
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6083
6083
  // `Promise.resolve` method
6084
6084
  // https://tc39.es/ecma262/#sec-promise.resolve
6085
6085
  resolve: function resolve(x) {
@@ -6087,7 +6087,7 @@ var Paystack = (function (exports) {
6087
6087
  }
6088
6088
  });
6089
6089
 
6090
- $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6090
+ $$c({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6091
6091
  // `Promise.all` method
6092
6092
  // https://tc39.es/ecma262/#sec-promise.all
6093
6093
  all: function all(iterable) {
@@ -6100,7 +6100,7 @@ var Paystack = (function (exports) {
6100
6100
  var values = [];
6101
6101
  var counter = 0;
6102
6102
  var remaining = 1;
6103
- iterate(iterable, function (promise) {
6103
+ iterate$2(iterable, function (promise) {
6104
6104
  var index = counter++;
6105
6105
  var alreadyCalled = false;
6106
6106
  remaining++;
@@ -6124,7 +6124,7 @@ var Paystack = (function (exports) {
6124
6124
  var reject = capability.reject;
6125
6125
  var result = perform(function () {
6126
6126
  var $promiseResolve = aCallable$1(C.resolve);
6127
- iterate(iterable, function (promise) {
6127
+ iterate$2(iterable, function (promise) {
6128
6128
  call$4($promiseResolve, C, promise).then(capability.resolve, reject);
6129
6129
  });
6130
6130
  });
@@ -6243,9 +6243,9 @@ var Paystack = (function (exports) {
6243
6243
  }();
6244
6244
 
6245
6245
  var DESCRIPTORS$4 = descriptors$1;
6246
- var uncurryThis$8 = functionUncurryThis;
6246
+ var uncurryThis$b = functionUncurryThis;
6247
6247
  var call$3 = functionCall;
6248
- var fails$6 = fails$v;
6248
+ var fails$8 = fails$x;
6249
6249
  var objectKeys$1 = objectKeys$3;
6250
6250
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
6251
6251
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -6256,11 +6256,11 @@ var Paystack = (function (exports) {
6256
6256
  var $assign = Object.assign;
6257
6257
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
6258
6258
  var defineProperty$2 = Object.defineProperty;
6259
- var concat = uncurryThis$8([].concat);
6259
+ var concat = uncurryThis$b([].concat);
6260
6260
 
6261
6261
  // `Object.assign` method
6262
6262
  // https://tc39.es/ecma262/#sec-object.assign
6263
- var objectAssign = !$assign || fails$6(function () {
6263
+ var objectAssign = !$assign || fails$8(function () {
6264
6264
  // should have correct order of operations (Edge bug)
6265
6265
  if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
6266
6266
  enumerable: true,
@@ -6299,16 +6299,34 @@ var Paystack = (function (exports) {
6299
6299
  } return T;
6300
6300
  } : $assign;
6301
6301
 
6302
- var $$9 = _export;
6302
+ var $$b = _export;
6303
6303
  var assign$2 = objectAssign;
6304
6304
 
6305
6305
  // `Object.assign` method
6306
6306
  // https://tc39.es/ecma262/#sec-object.assign
6307
6307
  // eslint-disable-next-line es/no-object-assign -- required for testing
6308
- $$9({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6308
+ $$b({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6309
6309
  assign: assign$2
6310
6310
  });
6311
6311
 
6312
+ var $$a = _export;
6313
+ var FREEZING = freezing;
6314
+ var fails$7 = fails$x;
6315
+ var isObject$5 = isObject$l;
6316
+ var onFreeze = internalMetadata.exports.onFreeze;
6317
+
6318
+ // eslint-disable-next-line es/no-object-freeze -- safe
6319
+ var $freeze = Object.freeze;
6320
+ var FAILS_ON_PRIMITIVES = fails$7(function () { $freeze(1); });
6321
+
6322
+ // `Object.freeze` method
6323
+ // https://tc39.es/ecma262/#sec-object.freeze
6324
+ $$a({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
6325
+ freeze: function freeze(it) {
6326
+ return $freeze && isObject$5(it) ? $freeze(onFreeze(it)) : it;
6327
+ }
6328
+ });
6329
+
6312
6330
  var config = {
6313
6331
  cookieTestUrl: 'https://legacy-staging.paystack.co/test-iframe/start.html',
6314
6332
  publishableKey: 'uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==',
@@ -6366,13 +6384,13 @@ var Paystack = (function (exports) {
6366
6384
  ArrayPrototype[UNSCOPABLES][key] = true;
6367
6385
  };
6368
6386
 
6369
- var $$8 = _export;
6387
+ var $$9 = _export;
6370
6388
  var $includes = arrayIncludes.includes;
6371
6389
  var addToUnscopables$2 = addToUnscopables$3;
6372
6390
 
6373
6391
  // `Array.prototype.includes` method
6374
6392
  // https://tc39.es/ecma262/#sec-array.prototype.includes
6375
- $$8({ target: 'Array', proto: true }, {
6393
+ $$9({ target: 'Array', proto: true }, {
6376
6394
  includes: function includes(el /* , fromIndex = 0 */) {
6377
6395
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
6378
6396
  }
@@ -6385,7 +6403,7 @@ var Paystack = (function (exports) {
6385
6403
  _excluded2 = ["message", "status", "errors"],
6386
6404
  _excluded3 = ["message", "status", "errors"],
6387
6405
  _excluded4 = ["message", "status", "errors"],
6388
- _excluded5 = ["status", "message", "otpmessage"];
6406
+ _excluded5 = ["status", "message", "otpmessage", "redirectUrl"];
6389
6407
  var PREAUTHORIZATION_STATE_AUTHORIZED = 'authorized';
6390
6408
  var ChargeResponses = {
6391
6409
  authorized: function authorized(response) {
@@ -6436,8 +6454,9 @@ var Paystack = (function (exports) {
6436
6454
  response.status;
6437
6455
  var message = response.message,
6438
6456
  otpmessage = response.otpmessage,
6457
+ redirectUrl = response.redirectUrl,
6439
6458
  cleanResponse = _objectWithoutProperties(response, _excluded5);
6440
- var authMessage = otpmessage || message;
6459
+ var authMessage = redirectUrl || otpmessage || message;
6441
6460
  return {
6442
6461
  status: 'auth',
6443
6462
  message: authMessage || 'Authentication required',
@@ -6481,7 +6500,7 @@ var Paystack = (function (exports) {
6481
6500
  return error;
6482
6501
  },
6483
6502
  parse: function parse(apiResponse) {
6484
- var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6503
+ var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6485
6504
  if (response.data && _typeof$1(response.data) === 'object') {
6486
6505
  Object.assign(response, response.data);
6487
6506
  delete response.data;
@@ -6507,83 +6526,148 @@ var Paystack = (function (exports) {
6507
6526
  if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
6508
6527
  return this.getCleanResponse(response, 'Incorrect amount sent');
6509
6528
  }
6510
- if (response.status === 'awaiting_registration_token') {
6529
+ if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
6511
6530
  return this.getCleanResponse(response);
6512
6531
  }
6513
6532
  if (response.auth && response.auth !== 'none') {
6514
6533
  return this.auth(response);
6515
6534
  }
6535
+ if (response.status === 'open_url' && response.url) {
6536
+ return this.getCleanResponse(response, 'Continue at the payment provider');
6537
+ }
6516
6538
  return this.error(response);
6517
6539
  }
6518
6540
  };
6519
6541
 
6520
- /* eslint-env browser */
6521
-
6522
- // `context` is passed through to set the class property of `isListening` to true/false
6523
- // and provide the logAPIResponse analytics function
6524
- // eslint-disable-next-line consistent-return, import/prefer-default-export
6525
- var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6526
- var channel = options.channel,
6527
- paymentMethod = options.paymentMethod;
6528
- var pusher;
6529
- if (window && window.Pusher) {
6530
- pusher = new window.Pusher(configToUse.pusherKey, {
6531
- cluster: 'eu',
6532
- disableStats: true
6533
- });
6534
- }
6535
- var pusherUndefinedError = {
6542
+ // Frozen singletons: a consumer that mutates what it was handed cannot corrupt
6543
+ // the next call.
6544
+ var LISTEN_ERRORS = {
6545
+ unavailable: Object.freeze({
6536
6546
  status: 'error',
6537
6547
  message: 'We could not listen for charge response.'
6538
- };
6539
- var pusherSubscriptionError = {
6548
+ }),
6549
+ subscriptionFailed: Object.freeze({
6540
6550
  status: 'error',
6541
6551
  message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
6552
+ })
6553
+ };
6554
+
6555
+ // Returns null so each listener can choose what to hand its caller back. The
6556
+ // `!window` half only guards window being declared and assigned undefined; with
6557
+ // window genuinely absent this throws, as it always has.
6558
+ var createPusherClient = function createPusherClient() {
6559
+ if (!window || !window.Pusher) {
6560
+ return null;
6561
+ }
6562
+ return new window.Pusher(configToUse.pusherKey, {
6563
+ cluster: 'eu',
6564
+ disableStats: true
6565
+ });
6566
+ };
6567
+
6568
+ // Analytics are logged before the consumer callback runs, so a throwing
6569
+ // callback cannot lose the event.
6570
+ var buildResponseHandler = function buildResponseHandler(_ref) {
6571
+ var context = _ref.context,
6572
+ paymentMethod = _ref.paymentMethod,
6573
+ callback = _ref.callback,
6574
+ teardown = _ref.teardown;
6575
+ return function (response) {
6576
+ var formattedResponse = ChargeResponses.parse(response);
6577
+ context.logAPIResponse(formattedResponse, paymentMethod);
6578
+ callback(formattedResponse, teardown);
6542
6579
  };
6580
+ };
6581
+
6582
+ // The shared listening path for every channel and market. `context` carries
6583
+ // logAPIResponse and the isListening flag this path owns.
6584
+ // eslint-disable-next-line consistent-return
6585
+ var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6586
+ var channel = options.channel,
6587
+ paymentMethod = options.paymentMethod;
6588
+ var pusher = createPusherClient();
6589
+ if (!pusher) {
6590
+ return callback(LISTEN_ERRORS.unavailable, noOp);
6591
+ }
6543
6592
  var unsubscribeFromPusher = function unsubscribeFromPusher() {
6544
6593
  pusher.unsubscribe(channel);
6545
6594
  };
6546
- if (!pusher) {
6547
- return callback(pusherUndefinedError, noOp);
6548
- }
6549
6595
  var pusherSubscription = pusher.subscribe(channel);
6550
6596
  pusherSubscription.bind('pusher:subscription_succeeded', function () {
6551
6597
  context.isListening = true;
6552
6598
  });
6553
6599
  pusherSubscription.bind('pusher:subscription_error', function () {
6554
6600
  context.isListening = false;
6555
- callback(pusherSubscriptionError, noOp);
6601
+ callback(LISTEN_ERRORS.subscriptionFailed, noOp);
6556
6602
  });
6557
- pusherSubscription.bind('response', function (response) {
6558
- var formattedResponse = ChargeResponses.parse(response);
6559
- context.logAPIResponse(formattedResponse, paymentMethod);
6560
- callback(formattedResponse, unsubscribeFromPusher);
6603
+ pusherSubscription.bind('response', buildResponseHandler({
6604
+ context: context,
6605
+ paymentMethod: paymentMethod,
6606
+ callback: callback,
6607
+ teardown: unsubscribeFromPusher
6608
+ }));
6609
+ };
6610
+
6611
+ // Dedicated listener for the Ghana mobile money USSD confirmation channel. Kept
6612
+ // separate because this flow needs an unsubscribe before any event arrives, and
6613
+ // must not write context.isListening: it runs alongside the main charge
6614
+ // subscription and the two would fight over one flag.
6615
+ var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
6616
+ var channel = options.channel,
6617
+ paymentMethod = options.paymentMethod;
6618
+ var pusher = createPusherClient();
6619
+ if (!pusher) {
6620
+ callback(LISTEN_ERRORS.unavailable, noOp);
6621
+ return noOp;
6622
+ }
6623
+ var hasUnsubscribed = false;
6624
+ var unsubscribe = function unsubscribe() {
6625
+ if (hasUnsubscribed) {
6626
+ return;
6627
+ }
6628
+ hasUnsubscribed = true;
6629
+ pusher.unsubscribe(channel);
6630
+ pusher.disconnect();
6631
+ };
6632
+ var pusherSubscription = pusher.subscribe(channel);
6633
+ // Deliberately does not tear down: a subscription_error can be transient, and
6634
+ // disconnecting stops pusher-js re-subscribing on recovery. The teardown handed
6635
+ // over stays live for a consumer that would rather give up.
6636
+ pusherSubscription.bind('pusher:subscription_error', function () {
6637
+ callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
6561
6638
  });
6639
+ pusherSubscription.bind('response', buildResponseHandler({
6640
+ context: context,
6641
+ paymentMethod: paymentMethod,
6642
+ callback: callback,
6643
+ teardown: unsubscribe
6644
+ }));
6645
+ return unsubscribe;
6562
6646
  };
6563
6647
 
6564
- var uncurryThis$7 = functionUncurryThis;
6648
+ var uncurryThis$a = functionUncurryThis;
6565
6649
  var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
6566
- var redefine$4 = redefine$a.exports;
6567
- var anObject$2 = anObject$e;
6650
+ var redefine$5 = redefine$b.exports;
6651
+ var anObject$3 = anObject$f;
6568
6652
  var isPrototypeOf = objectIsPrototypeOf;
6569
6653
  var $toString$2 = toString$9;
6570
- var fails$5 = fails$v;
6654
+ var fails$6 = fails$x;
6571
6655
  var regExpFlags = regexpFlags$1;
6572
6656
 
6573
6657
  var TO_STRING = 'toString';
6574
6658
  var RegExpPrototype = RegExp.prototype;
6575
6659
  var n$ToString = RegExpPrototype[TO_STRING];
6576
- var getFlags = uncurryThis$7(regExpFlags);
6660
+ var getFlags = uncurryThis$a(regExpFlags);
6577
6661
 
6578
- var NOT_GENERIC = fails$5(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6662
+ var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6579
6663
  // FF44- RegExp#toString has a wrong name
6580
6664
  var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
6581
6665
 
6582
6666
  // `RegExp.prototype.toString` method
6583
6667
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
6584
6668
  if (NOT_GENERIC || INCORRECT_NAME) {
6585
- redefine$4(RegExp.prototype, TO_STRING, function toString() {
6586
- var R = anObject$2(this);
6669
+ redefine$5(RegExp.prototype, TO_STRING, function toString() {
6670
+ var R = anObject$3(this);
6587
6671
  var p = $toString$2(R.source);
6588
6672
  var rf = R.flags;
6589
6673
  var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
@@ -6591,41 +6675,41 @@ var Paystack = (function (exports) {
6591
6675
  }, { unsafe: true });
6592
6676
  }
6593
6677
 
6594
- var fails$4 = fails$v;
6678
+ var fails$5 = fails$x;
6595
6679
 
6596
- var correctPrototypeGetter = !fails$4(function () {
6680
+ var correctPrototypeGetter = !fails$5(function () {
6597
6681
  function F() { /* empty */ }
6598
6682
  F.prototype.constructor = null;
6599
6683
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
6600
6684
  return Object.getPrototypeOf(new F()) !== F.prototype;
6601
6685
  });
6602
6686
 
6603
- var global$8 = global$T;
6604
- var hasOwn$2 = hasOwnProperty_1;
6605
- var isCallable$3 = isCallable$k;
6687
+ var global$a = global$V;
6688
+ var hasOwn$3 = hasOwnProperty_1;
6689
+ var isCallable$4 = isCallable$l;
6606
6690
  var toObject$2 = toObject$9;
6607
6691
  var sharedKey = sharedKey$3;
6608
6692
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
6609
6693
 
6610
6694
  var IE_PROTO = sharedKey('IE_PROTO');
6611
- var Object$1 = global$8.Object;
6695
+ var Object$1 = global$a.Object;
6612
6696
  var ObjectPrototype = Object$1.prototype;
6613
6697
 
6614
6698
  // `Object.getPrototypeOf` method
6615
6699
  // https://tc39.es/ecma262/#sec-object.getprototypeof
6616
6700
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
6617
6701
  var object = toObject$2(O);
6618
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
6702
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
6619
6703
  var constructor = object.constructor;
6620
- if (isCallable$3(constructor) && object instanceof constructor) {
6704
+ if (isCallable$4(constructor) && object instanceof constructor) {
6621
6705
  return constructor.prototype;
6622
6706
  } return object instanceof Object$1 ? ObjectPrototype : null;
6623
6707
  };
6624
6708
 
6625
- var fails$3 = fails$v;
6626
- var isCallable$2 = isCallable$k;
6709
+ var fails$4 = fails$x;
6710
+ var isCallable$3 = isCallable$l;
6627
6711
  var getPrototypeOf$1 = objectGetPrototypeOf;
6628
- var redefine$3 = redefine$a.exports;
6712
+ var redefine$4 = redefine$b.exports;
6629
6713
  var wellKnownSymbol$4 = wellKnownSymbol$j;
6630
6714
 
6631
6715
  var ITERATOR$4 = wellKnownSymbol$4('iterator');
@@ -6646,7 +6730,7 @@ var Paystack = (function (exports) {
6646
6730
  }
6647
6731
  }
6648
6732
 
6649
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$3(function () {
6733
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
6650
6734
  var test = {};
6651
6735
  // FF44- legacy iterators case
6652
6736
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
@@ -6656,8 +6740,8 @@ var Paystack = (function (exports) {
6656
6740
 
6657
6741
  // `%IteratorPrototype%[@@iterator]()` method
6658
6742
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
6659
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$4])) {
6660
- redefine$3(IteratorPrototype$2, ITERATOR$4, function () {
6743
+ if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
6744
+ redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
6661
6745
  return this;
6662
6746
  });
6663
6747
  }
@@ -6670,7 +6754,7 @@ var Paystack = (function (exports) {
6670
6754
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
6671
6755
  var create$1 = objectCreate;
6672
6756
  var createPropertyDescriptor$1 = createPropertyDescriptor$6;
6673
- var setToStringTag$3 = setToStringTag$5;
6757
+ var setToStringTag$4 = setToStringTag$6;
6674
6758
  var Iterators$2 = iterators;
6675
6759
 
6676
6760
  var returnThis$1 = function () { return this; };
@@ -6678,21 +6762,21 @@ var Paystack = (function (exports) {
6678
6762
  var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
6679
6763
  var TO_STRING_TAG = NAME + ' Iterator';
6680
6764
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
6681
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
6765
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
6682
6766
  Iterators$2[TO_STRING_TAG] = returnThis$1;
6683
6767
  return IteratorConstructor;
6684
6768
  };
6685
6769
 
6686
- var $$7 = _export;
6770
+ var $$8 = _export;
6687
6771
  var call$2 = functionCall;
6688
6772
  var FunctionName = functionName;
6689
- var isCallable$1 = isCallable$k;
6773
+ var isCallable$2 = isCallable$l;
6690
6774
  var createIteratorConstructor$1 = createIteratorConstructor$2;
6691
6775
  var getPrototypeOf = objectGetPrototypeOf;
6692
6776
  var setPrototypeOf = objectSetPrototypeOf;
6693
- var setToStringTag$2 = setToStringTag$5;
6777
+ var setToStringTag$3 = setToStringTag$6;
6694
6778
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
6695
- var redefine$2 = redefine$a.exports;
6779
+ var redefine$3 = redefine$b.exports;
6696
6780
  var wellKnownSymbol$3 = wellKnownSymbol$j;
6697
6781
  var Iterators$1 = iterators;
6698
6782
  var IteratorsCore = iteratorsCore;
@@ -6738,12 +6822,12 @@ var Paystack = (function (exports) {
6738
6822
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
6739
6823
  if (setPrototypeOf) {
6740
6824
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
6741
- } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$3])) {
6742
- redefine$2(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6825
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
6826
+ redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6743
6827
  }
6744
6828
  }
6745
6829
  // Set @@toStringTag to native iterators
6746
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
6830
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
6747
6831
  }
6748
6832
  }
6749
6833
 
@@ -6766,14 +6850,14 @@ var Paystack = (function (exports) {
6766
6850
  };
6767
6851
  if (FORCED) for (KEY in methods) {
6768
6852
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
6769
- redefine$2(IterablePrototype, KEY, methods[KEY]);
6853
+ redefine$3(IterablePrototype, KEY, methods[KEY]);
6770
6854
  }
6771
- } else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6855
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6772
6856
  }
6773
6857
 
6774
6858
  // define iterator
6775
6859
  if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
6776
- redefine$2(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6860
+ redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6777
6861
  }
6778
6862
  Iterators$1[NAME] = defaultIterator;
6779
6863
 
@@ -6783,14 +6867,14 @@ var Paystack = (function (exports) {
6783
6867
  var toIndexedObject$1 = toIndexedObject$8;
6784
6868
  var addToUnscopables$1 = addToUnscopables$3;
6785
6869
  var Iterators = iterators;
6786
- var InternalStateModule$3 = internalState;
6870
+ var InternalStateModule$4 = internalState;
6787
6871
  var defineProperty$1 = objectDefineProperty.f;
6788
6872
  var defineIterator$1 = defineIterator$2;
6789
6873
  var DESCRIPTORS$3 = descriptors$1;
6790
6874
 
6791
6875
  var ARRAY_ITERATOR = 'Array Iterator';
6792
- var setInternalState$3 = InternalStateModule$3.set;
6793
- var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
6876
+ var setInternalState$4 = InternalStateModule$4.set;
6877
+ var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
6794
6878
 
6795
6879
  // `Array.prototype.entries` method
6796
6880
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -6803,7 +6887,7 @@ var Paystack = (function (exports) {
6803
6887
  // `CreateArrayIterator` internal method
6804
6888
  // https://tc39.es/ecma262/#sec-createarrayiterator
6805
6889
  var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
6806
- setInternalState$3(this, {
6890
+ setInternalState$4(this, {
6807
6891
  type: ARRAY_ITERATOR,
6808
6892
  target: toIndexedObject$1(iterated), // target
6809
6893
  index: 0, // next index
@@ -6840,14 +6924,14 @@ var Paystack = (function (exports) {
6840
6924
  defineProperty$1(values, 'name', { value: 'values' });
6841
6925
  } catch (error) { /* empty */ }
6842
6926
 
6843
- var uncurryThis$6 = functionUncurryThis;
6927
+ var uncurryThis$9 = functionUncurryThis;
6844
6928
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
6845
6929
  var toString$2 = toString$9;
6846
6930
  var requireObjectCoercible = requireObjectCoercible$4;
6847
6931
 
6848
- var charAt$4 = uncurryThis$6(''.charAt);
6849
- var charCodeAt$2 = uncurryThis$6(''.charCodeAt);
6850
- var stringSlice$2 = uncurryThis$6(''.slice);
6932
+ var charAt$4 = uncurryThis$9(''.charAt);
6933
+ var charCodeAt$2 = uncurryThis$9(''.charCodeAt);
6934
+ var stringSlice$2 = uncurryThis$9(''.slice);
6851
6935
 
6852
6936
  var createMethod$2 = function (CONVERT_TO_STRING) {
6853
6937
  return function ($this, pos) {
@@ -6879,17 +6963,17 @@ var Paystack = (function (exports) {
6879
6963
 
6880
6964
  var charAt$3 = stringMultibyte.charAt;
6881
6965
  var toString$1 = toString$9;
6882
- var InternalStateModule$2 = internalState;
6966
+ var InternalStateModule$3 = internalState;
6883
6967
  var defineIterator = defineIterator$2;
6884
6968
 
6885
6969
  var STRING_ITERATOR = 'String Iterator';
6886
- var setInternalState$2 = InternalStateModule$2.set;
6887
- var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
6970
+ var setInternalState$3 = InternalStateModule$3.set;
6971
+ var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
6888
6972
 
6889
6973
  // `String.prototype[@@iterator]` method
6890
6974
  // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
6891
6975
  defineIterator(String, 'String', function (iterated) {
6892
- setInternalState$2(this, {
6976
+ setInternalState$3(this, {
6893
6977
  type: STRING_ITERATOR,
6894
6978
  string: toString$1(iterated),
6895
6979
  index: 0
@@ -6907,7 +6991,7 @@ var Paystack = (function (exports) {
6907
6991
  return { value: point, done: false };
6908
6992
  });
6909
6993
 
6910
- var global$7 = global$T;
6994
+ var global$9 = global$V;
6911
6995
  var DOMIterables = domIterables;
6912
6996
  var DOMTokenListPrototype = domTokenListPrototype;
6913
6997
  var ArrayIteratorMethods = es_array_iterator;
@@ -6941,18 +7025,18 @@ var Paystack = (function (exports) {
6941
7025
  };
6942
7026
 
6943
7027
  for (var COLLECTION_NAME in DOMIterables) {
6944
- handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
7028
+ handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
6945
7029
  }
6946
7030
 
6947
7031
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
6948
7032
 
6949
- var fails$2 = fails$v;
7033
+ var fails$3 = fails$x;
6950
7034
  var wellKnownSymbol$1 = wellKnownSymbol$j;
6951
7035
  var IS_PURE = isPure;
6952
7036
 
6953
7037
  var ITERATOR$1 = wellKnownSymbol$1('iterator');
6954
7038
 
6955
- var nativeUrl = !fails$2(function () {
7039
+ var nativeUrl = !fails$3(function () {
6956
7040
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
6957
7041
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
6958
7042
  var searchParams = url.searchParams;
@@ -6981,19 +7065,19 @@ var Paystack = (function (exports) {
6981
7065
  || new URL('http://x', undefined).host !== 'x';
6982
7066
  });
6983
7067
 
6984
- var anObject$1 = anObject$e;
7068
+ var anObject$2 = anObject$f;
6985
7069
  var iteratorClose = iteratorClose$2;
6986
7070
 
6987
7071
  // call something on iterator step with safe closing on error
6988
7072
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
6989
7073
  try {
6990
- return ENTRIES ? fn(anObject$1(value)[0], value[1]) : fn(value);
7074
+ return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
6991
7075
  } catch (error) {
6992
7076
  iteratorClose(iterator, 'throw', error);
6993
7077
  }
6994
7078
  };
6995
7079
 
6996
- var global$6 = global$T;
7080
+ var global$8 = global$V;
6997
7081
  var bind$5 = functionBindContext;
6998
7082
  var call$1 = functionCall;
6999
7083
  var toObject$1 = toObject$9;
@@ -7005,7 +7089,7 @@ var Paystack = (function (exports) {
7005
7089
  var getIterator$1 = getIterator$3;
7006
7090
  var getIteratorMethod$1 = getIteratorMethod$4;
7007
7091
 
7008
- var Array$2 = global$6.Array;
7092
+ var Array$2 = global$8.Array;
7009
7093
 
7010
7094
  // `Array.from` method implementation
7011
7095
  // https://tc39.es/ecma262/#sec-array.from
@@ -7041,8 +7125,8 @@ var Paystack = (function (exports) {
7041
7125
  };
7042
7126
 
7043
7127
  // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
7044
- var global$5 = global$T;
7045
- var uncurryThis$5 = functionUncurryThis;
7128
+ var global$7 = global$V;
7129
+ var uncurryThis$8 = functionUncurryThis;
7046
7130
 
7047
7131
  var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
7048
7132
  var base = 36;
@@ -7058,16 +7142,16 @@ var Paystack = (function (exports) {
7058
7142
  var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
7059
7143
  var baseMinusTMin = base - tMin;
7060
7144
 
7061
- var RangeError = global$5.RangeError;
7062
- var exec$2 = uncurryThis$5(regexSeparators.exec);
7145
+ var RangeError = global$7.RangeError;
7146
+ var exec$2 = uncurryThis$8(regexSeparators.exec);
7063
7147
  var floor$1 = Math.floor;
7064
7148
  var fromCharCode = String.fromCharCode;
7065
- var charCodeAt$1 = uncurryThis$5(''.charCodeAt);
7066
- var join$2 = uncurryThis$5([].join);
7067
- var push$4 = uncurryThis$5([].push);
7068
- var replace$4 = uncurryThis$5(''.replace);
7069
- var split$3 = uncurryThis$5(''.split);
7070
- var toLowerCase$1 = uncurryThis$5(''.toLowerCase);
7149
+ var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
7150
+ var join$2 = uncurryThis$8([].join);
7151
+ var push$4 = uncurryThis$8([].push);
7152
+ var replace$4 = uncurryThis$8(''.replace);
7153
+ var split$3 = uncurryThis$8(''.split);
7154
+ var toLowerCase$1 = uncurryThis$8(''.toLowerCase);
7071
7155
 
7072
7156
  /**
7073
7157
  * Creates an array containing the numeric code points of each Unicode
@@ -7224,24 +7308,24 @@ var Paystack = (function (exports) {
7224
7308
 
7225
7309
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7226
7310
 
7227
- var $$6 = _export;
7228
- var global$4 = global$T;
7311
+ var $$7 = _export;
7312
+ var global$6 = global$V;
7229
7313
  var getBuiltIn$1 = getBuiltIn$a;
7230
7314
  var call = functionCall;
7231
- var uncurryThis$4 = functionUncurryThis;
7315
+ var uncurryThis$7 = functionUncurryThis;
7232
7316
  var USE_NATIVE_URL$1 = nativeUrl;
7233
- var redefine$1 = redefine$a.exports;
7234
- var redefineAll = redefineAll$2;
7235
- var setToStringTag$1 = setToStringTag$5;
7317
+ var redefine$2 = redefine$b.exports;
7318
+ var redefineAll$2 = redefineAll$4;
7319
+ var setToStringTag$2 = setToStringTag$6;
7236
7320
  var createIteratorConstructor = createIteratorConstructor$2;
7237
- var InternalStateModule$1 = internalState;
7238
- var anInstance$1 = anInstance$3;
7239
- var isCallable = isCallable$k;
7240
- var hasOwn$1 = hasOwnProperty_1;
7321
+ var InternalStateModule$2 = internalState;
7322
+ var anInstance$3 = anInstance$5;
7323
+ var isCallable$1 = isCallable$l;
7324
+ var hasOwn$2 = hasOwnProperty_1;
7241
7325
  var bind$4 = functionBindContext;
7242
7326
  var classof = classof$7;
7243
- var anObject = anObject$e;
7244
- var isObject$1 = isObject$h;
7327
+ var anObject$1 = anObject$f;
7328
+ var isObject$4 = isObject$l;
7245
7329
  var $toString$1 = toString$9;
7246
7330
  var create = objectCreate;
7247
7331
  var createPropertyDescriptor = createPropertyDescriptor$6;
@@ -7254,27 +7338,27 @@ var Paystack = (function (exports) {
7254
7338
  var ITERATOR = wellKnownSymbol('iterator');
7255
7339
  var URL_SEARCH_PARAMS = 'URLSearchParams';
7256
7340
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
7257
- var setInternalState$1 = InternalStateModule$1.set;
7258
- var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
7259
- var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7341
+ var setInternalState$2 = InternalStateModule$2.set;
7342
+ var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
7343
+ var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7260
7344
 
7261
7345
  var n$Fetch = getBuiltIn$1('fetch');
7262
7346
  var N$Request = getBuiltIn$1('Request');
7263
7347
  var Headers = getBuiltIn$1('Headers');
7264
7348
  var RequestPrototype = N$Request && N$Request.prototype;
7265
7349
  var HeadersPrototype = Headers && Headers.prototype;
7266
- var RegExp$1 = global$4.RegExp;
7267
- var TypeError$3 = global$4.TypeError;
7268
- var decodeURIComponent$1 = global$4.decodeURIComponent;
7269
- var encodeURIComponent$1 = global$4.encodeURIComponent;
7270
- var charAt$2 = uncurryThis$4(''.charAt);
7271
- var join$1 = uncurryThis$4([].join);
7272
- var push$3 = uncurryThis$4([].push);
7273
- var replace$3 = uncurryThis$4(''.replace);
7274
- var shift$1 = uncurryThis$4([].shift);
7275
- var splice = uncurryThis$4([].splice);
7276
- var split$2 = uncurryThis$4(''.split);
7277
- var stringSlice$1 = uncurryThis$4(''.slice);
7350
+ var RegExp$1 = global$6.RegExp;
7351
+ var TypeError$3 = global$6.TypeError;
7352
+ var decodeURIComponent$1 = global$6.decodeURIComponent;
7353
+ var encodeURIComponent$1 = global$6.encodeURIComponent;
7354
+ var charAt$2 = uncurryThis$7(''.charAt);
7355
+ var join$1 = uncurryThis$7([].join);
7356
+ var push$3 = uncurryThis$7([].push);
7357
+ var replace$3 = uncurryThis$7(''.replace);
7358
+ var shift$1 = uncurryThis$7([].shift);
7359
+ var splice$1 = uncurryThis$7([].splice);
7360
+ var split$2 = uncurryThis$7(''.split);
7361
+ var stringSlice$1 = uncurryThis$7(''.slice);
7278
7362
 
7279
7363
  var plus = /\+/g;
7280
7364
  var sequences = Array(4);
@@ -7304,7 +7388,7 @@ var Paystack = (function (exports) {
7304
7388
  }
7305
7389
  };
7306
7390
 
7307
- var find = /[!'()~]|%20/g;
7391
+ var find$1 = /[!'()~]|%20/g;
7308
7392
 
7309
7393
  var replacements = {
7310
7394
  '!': '%21',
@@ -7320,11 +7404,11 @@ var Paystack = (function (exports) {
7320
7404
  };
7321
7405
 
7322
7406
  var serialize = function (it) {
7323
- return replace$3(encodeURIComponent$1(it), find, replacer);
7407
+ return replace$3(encodeURIComponent$1(it), find$1, replacer);
7324
7408
  };
7325
7409
 
7326
7410
  var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
7327
- setInternalState$1(this, {
7411
+ setInternalState$2(this, {
7328
7412
  type: URL_SEARCH_PARAMS_ITERATOR,
7329
7413
  iterator: getIterator(getInternalParamsState(params).entries),
7330
7414
  kind: kind
@@ -7344,7 +7428,7 @@ var Paystack = (function (exports) {
7344
7428
  this.url = null;
7345
7429
 
7346
7430
  if (init !== undefined) {
7347
- if (isObject$1(init)) this.parseObject(init);
7431
+ if (isObject$4(init)) this.parseObject(init);
7348
7432
  else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
7349
7433
  }
7350
7434
  };
@@ -7363,7 +7447,7 @@ var Paystack = (function (exports) {
7363
7447
  iterator = getIterator(object, iteratorMethod);
7364
7448
  next = iterator.next;
7365
7449
  while (!(step = call(next, iterator)).done) {
7366
- entryIterator = getIterator(anObject(step.value));
7450
+ entryIterator = getIterator(anObject$1(step.value));
7367
7451
  entryNext = entryIterator.next;
7368
7452
  if (
7369
7453
  (first = call(entryNext, entryIterator)).done ||
@@ -7372,7 +7456,7 @@ var Paystack = (function (exports) {
7372
7456
  ) throw TypeError$3('Expected sequence with length 2');
7373
7457
  push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
7374
7458
  }
7375
- } else for (var key in object) if (hasOwn$1(object, key)) {
7459
+ } else for (var key in object) if (hasOwn$2(object, key)) {
7376
7460
  push$3(this.entries, { key: key, value: $toString$1(object[key]) });
7377
7461
  }
7378
7462
  },
@@ -7415,14 +7499,14 @@ var Paystack = (function (exports) {
7415
7499
  // `URLSearchParams` constructor
7416
7500
  // https://url.spec.whatwg.org/#interface-urlsearchparams
7417
7501
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
7418
- anInstance$1(this, URLSearchParamsPrototype);
7502
+ anInstance$3(this, URLSearchParamsPrototype);
7419
7503
  var init = arguments.length > 0 ? arguments[0] : undefined;
7420
- setInternalState$1(this, new URLSearchParamsState(init));
7504
+ setInternalState$2(this, new URLSearchParamsState(init));
7421
7505
  };
7422
7506
 
7423
7507
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
7424
7508
 
7425
- redefineAll(URLSearchParamsPrototype, {
7509
+ redefineAll$2(URLSearchParamsPrototype, {
7426
7510
  // `URLSearchParams.prototype.append` method
7427
7511
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
7428
7512
  append: function append(name, value) {
@@ -7440,7 +7524,7 @@ var Paystack = (function (exports) {
7440
7524
  var key = $toString$1(name);
7441
7525
  var index = 0;
7442
7526
  while (index < entries.length) {
7443
- if (entries[index].key === key) splice(entries, index, 1);
7527
+ if (entries[index].key === key) splice$1(entries, index, 1);
7444
7528
  else index++;
7445
7529
  }
7446
7530
  state.updateURL();
@@ -7496,7 +7580,7 @@ var Paystack = (function (exports) {
7496
7580
  for (; index < entries.length; index++) {
7497
7581
  entry = entries[index];
7498
7582
  if (entry.key === key) {
7499
- if (found) splice(entries, index--, 1);
7583
+ if (found) splice$1(entries, index--, 1);
7500
7584
  else {
7501
7585
  found = true;
7502
7586
  entry.value = val;
@@ -7541,27 +7625,27 @@ var Paystack = (function (exports) {
7541
7625
  }, { enumerable: true });
7542
7626
 
7543
7627
  // `URLSearchParams.prototype[@@iterator]` method
7544
- redefine$1(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7628
+ redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7545
7629
 
7546
7630
  // `URLSearchParams.prototype.toString` method
7547
7631
  // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
7548
- redefine$1(URLSearchParamsPrototype, 'toString', function toString() {
7632
+ redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
7549
7633
  return getInternalParamsState(this).serialize();
7550
7634
  }, { enumerable: true });
7551
7635
 
7552
- setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7636
+ setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7553
7637
 
7554
- $$6({ global: true, forced: !USE_NATIVE_URL$1 }, {
7638
+ $$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
7555
7639
  URLSearchParams: URLSearchParamsConstructor
7556
7640
  });
7557
7641
 
7558
7642
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
7559
- if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
7560
- var headersHas = uncurryThis$4(HeadersPrototype.has);
7561
- var headersSet = uncurryThis$4(HeadersPrototype.set);
7643
+ if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
7644
+ var headersHas = uncurryThis$7(HeadersPrototype.has);
7645
+ var headersSet = uncurryThis$7(HeadersPrototype.set);
7562
7646
 
7563
7647
  var wrapRequestOptions = function (init) {
7564
- if (isObject$1(init)) {
7648
+ if (isObject$4(init)) {
7565
7649
  var body = init.body;
7566
7650
  var headers;
7567
7651
  if (classof(body) === URL_SEARCH_PARAMS) {
@@ -7577,24 +7661,24 @@ var Paystack = (function (exports) {
7577
7661
  } return init;
7578
7662
  };
7579
7663
 
7580
- if (isCallable(n$Fetch)) {
7581
- $$6({ global: true, enumerable: true, forced: true }, {
7664
+ if (isCallable$1(n$Fetch)) {
7665
+ $$7({ global: true, enumerable: true, forced: true }, {
7582
7666
  fetch: function fetch(input /* , init */) {
7583
7667
  return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7584
7668
  }
7585
7669
  });
7586
7670
  }
7587
7671
 
7588
- if (isCallable(N$Request)) {
7672
+ if (isCallable$1(N$Request)) {
7589
7673
  var RequestConstructor = function Request(input /* , init */) {
7590
- anInstance$1(this, RequestPrototype);
7674
+ anInstance$3(this, RequestPrototype);
7591
7675
  return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7592
7676
  };
7593
7677
 
7594
7678
  RequestPrototype.constructor = RequestConstructor;
7595
7679
  RequestConstructor.prototype = RequestPrototype;
7596
7680
 
7597
- $$6({ global: true, forced: true }, {
7681
+ $$7({ global: true, forced: true }, {
7598
7682
  Request: RequestConstructor
7599
7683
  });
7600
7684
  }
@@ -7607,49 +7691,49 @@ var Paystack = (function (exports) {
7607
7691
 
7608
7692
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7609
7693
 
7610
- var $$5 = _export;
7694
+ var $$6 = _export;
7611
7695
  var DESCRIPTORS$2 = descriptors$1;
7612
7696
  var USE_NATIVE_URL = nativeUrl;
7613
- var global$3 = global$T;
7697
+ var global$5 = global$V;
7614
7698
  var bind$3 = functionBindContext;
7615
- var uncurryThis$3 = functionUncurryThis;
7699
+ var uncurryThis$6 = functionUncurryThis;
7616
7700
  var defineProperties = objectDefineProperties.f;
7617
- var redefine = redefine$a.exports;
7618
- var anInstance = anInstance$3;
7619
- var hasOwn = hasOwnProperty_1;
7701
+ var redefine$1 = redefine$b.exports;
7702
+ var anInstance$2 = anInstance$5;
7703
+ var hasOwn$1 = hasOwnProperty_1;
7620
7704
  var assign$1 = objectAssign;
7621
7705
  var arrayFrom = arrayFrom$1;
7622
7706
  var arraySlice = arraySliceSimple;
7623
7707
  var codeAt = stringMultibyte.codeAt;
7624
7708
  var toASCII = stringPunycodeToAscii;
7625
7709
  var $toString = toString$9;
7626
- var setToStringTag = setToStringTag$5;
7710
+ var setToStringTag$1 = setToStringTag$6;
7627
7711
  var validateArgumentsLength = validateArgumentsLength$3;
7628
7712
  var URLSearchParamsModule = web_urlSearchParams;
7629
- var InternalStateModule = internalState;
7713
+ var InternalStateModule$1 = internalState;
7630
7714
 
7631
- var setInternalState = InternalStateModule.set;
7632
- var getInternalURLState = InternalStateModule.getterFor('URL');
7715
+ var setInternalState$1 = InternalStateModule$1.set;
7716
+ var getInternalURLState = InternalStateModule$1.getterFor('URL');
7633
7717
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
7634
7718
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
7635
7719
 
7636
- var NativeURL = global$3.URL;
7637
- var TypeError$2 = global$3.TypeError;
7638
- var parseInt$1 = global$3.parseInt;
7720
+ var NativeURL = global$5.URL;
7721
+ var TypeError$2 = global$5.TypeError;
7722
+ var parseInt$1 = global$5.parseInt;
7639
7723
  var floor = Math.floor;
7640
7724
  var pow = Math.pow;
7641
- var charAt$1 = uncurryThis$3(''.charAt);
7642
- var exec$1 = uncurryThis$3(/./.exec);
7643
- var join = uncurryThis$3([].join);
7644
- var numberToString$1 = uncurryThis$3(1.0.toString);
7645
- var pop = uncurryThis$3([].pop);
7646
- var push$2 = uncurryThis$3([].push);
7647
- var replace$2 = uncurryThis$3(''.replace);
7648
- var shift = uncurryThis$3([].shift);
7649
- var split$1 = uncurryThis$3(''.split);
7650
- var stringSlice = uncurryThis$3(''.slice);
7651
- var toLowerCase = uncurryThis$3(''.toLowerCase);
7652
- var unshift = uncurryThis$3([].unshift);
7725
+ var charAt$1 = uncurryThis$6(''.charAt);
7726
+ var exec$1 = uncurryThis$6(/./.exec);
7727
+ var join = uncurryThis$6([].join);
7728
+ var numberToString$1 = uncurryThis$6(1.0.toString);
7729
+ var pop = uncurryThis$6([].pop);
7730
+ var push$2 = uncurryThis$6([].push);
7731
+ var replace$2 = uncurryThis$6(''.replace);
7732
+ var shift = uncurryThis$6([].shift);
7733
+ var split$1 = uncurryThis$6(''.split);
7734
+ var stringSlice = uncurryThis$6(''.slice);
7735
+ var toLowerCase = uncurryThis$6(''.toLowerCase);
7736
+ var unshift = uncurryThis$6([].unshift);
7653
7737
 
7654
7738
  var INVALID_AUTHORITY = 'Invalid authority';
7655
7739
  var INVALID_SCHEME = 'Invalid scheme';
@@ -7857,7 +7941,7 @@ var Paystack = (function (exports) {
7857
7941
 
7858
7942
  var percentEncode = function (chr, set) {
7859
7943
  var code = codeAt(chr, 0);
7860
- return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
7944
+ return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
7861
7945
  };
7862
7946
 
7863
7947
  // https://url.spec.whatwg.org/#special-scheme
@@ -7988,7 +8072,7 @@ var Paystack = (function (exports) {
7988
8072
  buffer += toLowerCase(chr);
7989
8073
  } else if (chr == ':') {
7990
8074
  if (stateOverride && (
7991
- (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
8075
+ (url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
7992
8076
  (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
7993
8077
  (url.scheme == 'file' && !url.host)
7994
8078
  )) return;
@@ -8376,7 +8460,7 @@ var Paystack = (function (exports) {
8376
8460
  },
8377
8461
  // https://url.spec.whatwg.org/#is-special
8378
8462
  isSpecial: function () {
8379
- return hasOwn(specialSchemes, this.scheme);
8463
+ return hasOwn$1(specialSchemes, this.scheme);
8380
8464
  },
8381
8465
  // https://url.spec.whatwg.org/#shorten-a-urls-path
8382
8466
  shortenPath: function () {
@@ -8545,9 +8629,9 @@ var Paystack = (function (exports) {
8545
8629
  // `URL` constructor
8546
8630
  // https://url.spec.whatwg.org/#url-class
8547
8631
  var URLConstructor = function URL(url /* , base */) {
8548
- var that = anInstance(this, URLPrototype);
8632
+ var that = anInstance$2(this, URLPrototype);
8549
8633
  var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
8550
- var state = setInternalState(that, new URLState(url, false, base));
8634
+ var state = setInternalState$1(that, new URLState(url, false, base));
8551
8635
  if (!DESCRIPTORS$2) {
8552
8636
  that.href = state.serialize();
8553
8637
  that.origin = state.getOrigin();
@@ -8622,13 +8706,13 @@ var Paystack = (function (exports) {
8622
8706
 
8623
8707
  // `URL.prototype.toJSON` method
8624
8708
  // https://url.spec.whatwg.org/#dom-url-tojson
8625
- redefine(URLPrototype, 'toJSON', function toJSON() {
8709
+ redefine$1(URLPrototype, 'toJSON', function toJSON() {
8626
8710
  return getInternalURLState(this).serialize();
8627
8711
  }, { enumerable: true });
8628
8712
 
8629
8713
  // `URL.prototype.toString` method
8630
8714
  // https://url.spec.whatwg.org/#URL-stringification-behavior
8631
- redefine(URLPrototype, 'toString', function toString() {
8715
+ redefine$1(URLPrototype, 'toString', function toString() {
8632
8716
  return getInternalURLState(this).serialize();
8633
8717
  }, { enumerable: true });
8634
8718
 
@@ -8637,15 +8721,15 @@ var Paystack = (function (exports) {
8637
8721
  var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
8638
8722
  // `URL.createObjectURL` method
8639
8723
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
8640
- if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8724
+ if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8641
8725
  // `URL.revokeObjectURL` method
8642
8726
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
8643
- if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8727
+ if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8644
8728
  }
8645
8729
 
8646
- setToStringTag(URLConstructor, 'URL');
8730
+ setToStringTag$1(URLConstructor, 'URL');
8647
8731
 
8648
- $$5({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8732
+ $$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8649
8733
  URL: URLConstructor
8650
8734
  });
8651
8735
 
@@ -8762,7 +8846,7 @@ var Paystack = (function (exports) {
8762
8846
  * @param {Object} val The value to test
8763
8847
  * @returns {boolean} True if value is an Object, otherwise false
8764
8848
  */
8765
- function isObject(val) {
8849
+ function isObject$3(val) {
8766
8850
  return val !== null && typeof val === 'object';
8767
8851
  }
8768
8852
 
@@ -8844,7 +8928,7 @@ var Paystack = (function (exports) {
8844
8928
  * @returns {boolean} True if value is a Stream, otherwise false
8845
8929
  */
8846
8930
  function isStream(val) {
8847
- return isObject(val) && isFunction(val.pipe);
8931
+ return isObject$3(val) && isFunction(val.pipe);
8848
8932
  }
8849
8933
 
8850
8934
  /**
@@ -9148,7 +9232,7 @@ var Paystack = (function (exports) {
9148
9232
  isArrayBufferView: isArrayBufferView,
9149
9233
  isString: isString,
9150
9234
  isNumber: isNumber,
9151
- isObject: isObject,
9235
+ isObject: isObject$3,
9152
9236
  isPlainObject: isPlainObject,
9153
9237
  isEmptyObject: isEmptyObject,
9154
9238
  isUndefined: isUndefined,
@@ -11931,13 +12015,13 @@ var Paystack = (function (exports) {
11931
12015
  stringify: stringify
11932
12016
  };
11933
12017
 
11934
- var global$2 = global$T;
12018
+ var global$4 = global$V;
11935
12019
  var aCallable = aCallable$7;
11936
12020
  var toObject = toObject$9;
11937
12021
  var IndexedObject = indexedObject;
11938
12022
  var lengthOfArrayLike = lengthOfArrayLike$8;
11939
12023
 
11940
- var TypeError$1 = global$2.TypeError;
12024
+ var TypeError$1 = global$4.TypeError;
11941
12025
 
11942
12026
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
11943
12027
  var createMethod$1 = function (IS_RIGHT) {
@@ -11975,7 +12059,7 @@ var Paystack = (function (exports) {
11975
12059
  right: createMethod$1(true)
11976
12060
  };
11977
12061
 
11978
- var $$4 = _export;
12062
+ var $$5 = _export;
11979
12063
  var $reduce = arrayReduce.left;
11980
12064
  var arrayMethodIsStrict = arrayMethodIsStrict$4;
11981
12065
  var CHROME_VERSION = engineV8Version;
@@ -11988,7 +12072,7 @@ var Paystack = (function (exports) {
11988
12072
 
11989
12073
  // `Array.prototype.reduce` method
11990
12074
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
11991
- $$4({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
12075
+ $$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
11992
12076
  reduce: function reduce(callbackfn /* , initialValue */) {
11993
12077
  var length = arguments.length;
11994
12078
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -12393,20 +12477,7 @@ var Paystack = (function (exports) {
12393
12477
  return axiosInstance.post(url, urlEncodedParams, {
12394
12478
  headers: headers
12395
12479
  }).then(function (response) {
12396
- var _raw$data;
12397
- var raw = response.data;
12398
- /*
12399
- * A googlepay step-up is always 3DS, but the charge response can omit
12400
- * the `auth` field the shared parser routes on — without it an auth
12401
- * response falls through to error(). Default it so the response
12402
- * normalizes through auth() exactly like card's.
12403
- */
12404
- 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)) {
12405
- return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
12406
- auth: '3DS'
12407
- }));
12408
- }
12409
- return ChargeResponses.parse(raw);
12480
+ return ChargeResponses.parse(response.data);
12410
12481
  });
12411
12482
  }
12412
12483
  };
@@ -12505,13 +12576,13 @@ var Paystack = (function (exports) {
12505
12576
 
12506
12577
  var DESCRIPTORS$1 = descriptors$1;
12507
12578
  var FUNCTION_NAME_EXISTS = functionName.EXISTS;
12508
- var uncurryThis$2 = functionUncurryThis;
12579
+ var uncurryThis$5 = functionUncurryThis;
12509
12580
  var defineProperty = objectDefineProperty.f;
12510
12581
 
12511
12582
  var FunctionPrototype = Function.prototype;
12512
- var functionToString = uncurryThis$2(FunctionPrototype.toString);
12583
+ var functionToString = uncurryThis$5(FunctionPrototype.toString);
12513
12584
  var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
12514
- var regExpExec = uncurryThis$2(nameRE.exec);
12585
+ var regExpExec = uncurryThis$5(nameRE.exec);
12515
12586
  var NAME = 'name';
12516
12587
 
12517
12588
  // Function instances `.name` property
@@ -17905,13 +17976,13 @@ var Paystack = (function (exports) {
17905
17976
  }
17906
17977
 
17907
17978
  var DESCRIPTORS = descriptors$1;
17908
- var uncurryThis$1 = functionUncurryThis;
17979
+ var uncurryThis$4 = functionUncurryThis;
17909
17980
  var objectKeys = objectKeys$3;
17910
17981
  var toIndexedObject = toIndexedObject$8;
17911
17982
  var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
17912
17983
 
17913
- var propertyIsEnumerable = uncurryThis$1($propertyIsEnumerable);
17914
- var push = uncurryThis$1([].push);
17984
+ var propertyIsEnumerable = uncurryThis$4($propertyIsEnumerable);
17985
+ var push = uncurryThis$4([].push);
17915
17986
 
17916
17987
  // `Object.{ entries, values }` methods implementation
17917
17988
  var createMethod = function (TO_ENTRIES) {
@@ -17941,18 +18012,18 @@ var Paystack = (function (exports) {
17941
18012
  values: createMethod(false)
17942
18013
  };
17943
18014
 
17944
- var $$3 = _export;
18015
+ var $$4 = _export;
17945
18016
  var $values = objectToArray.values;
17946
18017
 
17947
18018
  // `Object.values` method
17948
18019
  // https://tc39.es/ecma262/#sec-object.values
17949
- $$3({ target: 'Object', stat: true }, {
18020
+ $$4({ target: 'Object', stat: true }, {
17950
18021
  values: function values(O) {
17951
18022
  return $values(O);
17952
18023
  }
17953
18024
  });
17954
18025
 
17955
- var $$2 = _export;
18026
+ var $$3 = _export;
17956
18027
  var $find = arrayIteration.find;
17957
18028
  var addToUnscopables = addToUnscopables$3;
17958
18029
 
@@ -17964,7 +18035,7 @@ var Paystack = (function (exports) {
17964
18035
 
17965
18036
  // `Array.prototype.find` method
17966
18037
  // https://tc39.es/ecma262/#sec-array.prototype.find
17967
- $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
18038
+ $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
17968
18039
  find: function find(callbackfn /* , that = undefined */) {
17969
18040
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
17970
18041
  }
@@ -20398,6 +20469,10 @@ var Paystack = (function (exports) {
20398
20469
  }
20399
20470
  };
20400
20471
 
20472
+ // Statuses that leave the transaction with a Pusher channel worth listening on.
20473
+ // `awaiting_ussd_confirmation` is mid-flight, not settled, but still carries the
20474
+ // `channel_name` the outcome arrives on.
20475
+ var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
20401
20476
  function validate$1(phoneNumber) {
20402
20477
  return new Promise(function (resolve, reject) {
20403
20478
  var validation = PhoneNumber.validate(phoneNumber);
@@ -20436,10 +20511,14 @@ var Paystack = (function (exports) {
20436
20511
  var MobileMoneyCharge = {
20437
20512
  mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
20438
20513
  var _this = this;
20514
+ // Cleared before the request, not in the handler: the API layer's .catch
20515
+ // destructures `response`, which a network error lacks, so it throws and no
20516
+ // handler runs.
20517
+ this.mobileMoney = {};
20439
20518
  return MobileMoneyAPI.charge(params).then(function (response) {
20440
- if (response.status === 'success') {
20519
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20441
20520
  _this.mobileMoney = response;
20442
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20521
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20443
20522
  _this.logTokenRequest('mobile money');
20444
20523
  }
20445
20524
  }
@@ -20488,10 +20567,13 @@ var Paystack = (function (exports) {
20488
20567
  id: _this3.id,
20489
20568
  deviceFingerprint: _this3.deviceFingerprint
20490
20569
  });
20570
+
20571
+ // Cleared before the request, as in mobileMoneyChargeAPI above.
20572
+ _this3.mobileMoney = {};
20491
20573
  return MobileMoneyAPI.charge(params).then(function (response) {
20492
- if (response.status === 'success') {
20574
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20493
20575
  _this3.mobileMoney = response;
20494
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20576
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20495
20577
  _this3.logTokenRequest('mobile money');
20496
20578
  }
20497
20579
  } else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
@@ -20514,17 +20596,33 @@ var Paystack = (function (exports) {
20514
20596
  });
20515
20597
  },
20516
20598
  listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
20517
- if (this.mobileMoney.status !== 'success') {
20599
+ var _ref2 = this.mobileMoney.data || {},
20600
+ channel = _ref2.channel,
20601
+ channelName = _ref2.channel_name;
20602
+ var listenerChannel = channel || channelName;
20603
+ if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
20518
20604
  return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
20519
20605
  }
20520
- var _this$mobileMoney$dat = this.mobileMoney.data,
20521
- channel = _this$mobileMoney$dat.channel,
20522
- channelName = _this$mobileMoney$dat.channel_name;
20523
20606
  var listenerOptions = {
20524
- channel: channel || channelName,
20607
+ channel: listenerChannel,
20525
20608
  paymentMethod: 'mobile_money'
20526
20609
  };
20527
20610
  return this.listenForCharge(listenerOptions, callback);
20611
+ },
20612
+ // Unlike every sibling listener, this returns a teardown function rather than a
20613
+ // promise, so it throws synchronously instead of rejecting. A caller in a
20614
+ // non-async event handler gets an uncaught throw, not an unhandled rejection.
20615
+ listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
20616
+ var data = this.mobileMoney.data;
20617
+ var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
20618
+ if (!confirmationChannel) {
20619
+ throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
20620
+ }
20621
+ var listenerOptions = {
20622
+ channel: confirmationChannel,
20623
+ paymentMethod: 'mobile_money'
20624
+ };
20625
+ return subscribeToConfirmationEvents(listenerOptions, this, callback);
20528
20626
  }
20529
20627
  };
20530
20628
 
@@ -20685,7 +20783,7 @@ var Paystack = (function (exports) {
20685
20783
  };
20686
20784
 
20687
20785
  var PROPER_FUNCTION_NAME = functionName.PROPER;
20688
- var fails$1 = fails$v;
20786
+ var fails$2 = fails$x;
20689
20787
  var whitespaces = whitespaces$3;
20690
20788
 
20691
20789
  var non = '\u200B\u0085\u180E';
@@ -20693,20 +20791,20 @@ var Paystack = (function (exports) {
20693
20791
  // check that a method works with the correct list
20694
20792
  // of whitespaces and has a correct name
20695
20793
  var stringTrimForced = function (METHOD_NAME) {
20696
- return fails$1(function () {
20794
+ return fails$2(function () {
20697
20795
  return !!whitespaces[METHOD_NAME]()
20698
20796
  || non[METHOD_NAME]() !== non
20699
20797
  || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
20700
20798
  });
20701
20799
  };
20702
20800
 
20703
- var $$1 = _export;
20801
+ var $$2 = _export;
20704
20802
  var $trim = stringTrim.trim;
20705
20803
  var forcedStringTrimMethod = stringTrimForced;
20706
20804
 
20707
20805
  // `String.prototype.trim` method
20708
20806
  // https://tc39.es/ecma262/#sec-string.prototype.trim
20709
- $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20807
+ $$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20710
20808
  trim: function trim() {
20711
20809
  return $trim(this);
20712
20810
  }
@@ -20945,6 +21043,456 @@ var Paystack = (function (exports) {
20945
21043
  }
20946
21044
  };
20947
21045
 
21046
+ var $$1 = _export;
21047
+ var global$3 = global$V;
21048
+ var uncurryThis$3 = functionUncurryThis;
21049
+ var isForced = isForced_1;
21050
+ var redefine = redefine$b.exports;
21051
+ var InternalMetadataModule$1 = internalMetadata.exports;
21052
+ var iterate$1 = iterate$3;
21053
+ var anInstance$1 = anInstance$5;
21054
+ var isCallable = isCallable$l;
21055
+ var isObject$2 = isObject$l;
21056
+ var fails$1 = fails$x;
21057
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
21058
+ var setToStringTag = setToStringTag$6;
21059
+ var inheritIfRequired = inheritIfRequired$3;
21060
+
21061
+ var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
21062
+ var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
21063
+ var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
21064
+ var ADDER = IS_MAP ? 'set' : 'add';
21065
+ var NativeConstructor = global$3[CONSTRUCTOR_NAME];
21066
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
21067
+ var Constructor = NativeConstructor;
21068
+ var exported = {};
21069
+
21070
+ var fixMethod = function (KEY) {
21071
+ var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]);
21072
+ redefine(NativePrototype, KEY,
21073
+ KEY == 'add' ? function add(value) {
21074
+ uncurriedNativeMethod(this, value === 0 ? 0 : value);
21075
+ return this;
21076
+ } : KEY == 'delete' ? function (key) {
21077
+ return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21078
+ } : KEY == 'get' ? function get(key) {
21079
+ return IS_WEAK && !isObject$2(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21080
+ } : KEY == 'has' ? function has(key) {
21081
+ return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21082
+ } : function set(key, value) {
21083
+ uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
21084
+ return this;
21085
+ }
21086
+ );
21087
+ };
21088
+
21089
+ var REPLACE = isForced(
21090
+ CONSTRUCTOR_NAME,
21091
+ !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
21092
+ new NativeConstructor().entries().next();
21093
+ }))
21094
+ );
21095
+
21096
+ if (REPLACE) {
21097
+ // create collection constructor
21098
+ Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
21099
+ InternalMetadataModule$1.enable();
21100
+ } else if (isForced(CONSTRUCTOR_NAME, true)) {
21101
+ var instance = new Constructor();
21102
+ // early implementations not supports chaining
21103
+ var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
21104
+ // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
21105
+ var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
21106
+ // most early implementations doesn't supports iterables, most modern - not close it correctly
21107
+ // eslint-disable-next-line no-new -- required for testing
21108
+ var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
21109
+ // for early implementations -0 and +0 not the same
21110
+ var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
21111
+ // V8 ~ Chromium 42- fails only with 5+ elements
21112
+ var $instance = new NativeConstructor();
21113
+ var index = 5;
21114
+ while (index--) $instance[ADDER](index, index);
21115
+ return !$instance.has(-0);
21116
+ });
21117
+
21118
+ if (!ACCEPT_ITERABLES) {
21119
+ Constructor = wrapper(function (dummy, iterable) {
21120
+ anInstance$1(dummy, NativePrototype);
21121
+ var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
21122
+ if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21123
+ return that;
21124
+ });
21125
+ Constructor.prototype = NativePrototype;
21126
+ NativePrototype.constructor = Constructor;
21127
+ }
21128
+
21129
+ if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
21130
+ fixMethod('delete');
21131
+ fixMethod('has');
21132
+ IS_MAP && fixMethod('get');
21133
+ }
21134
+
21135
+ if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
21136
+
21137
+ // weak collections should not contains .clear method
21138
+ if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
21139
+ }
21140
+
21141
+ exported[CONSTRUCTOR_NAME] = Constructor;
21142
+ $$1({ global: true, forced: Constructor != NativeConstructor }, exported);
21143
+
21144
+ setToStringTag(Constructor, CONSTRUCTOR_NAME);
21145
+
21146
+ if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
21147
+
21148
+ return Constructor;
21149
+ };
21150
+
21151
+ var uncurryThis$2 = functionUncurryThis;
21152
+ var redefineAll$1 = redefineAll$4;
21153
+ var getWeakData = internalMetadata.exports.getWeakData;
21154
+ var anObject = anObject$f;
21155
+ var isObject$1 = isObject$l;
21156
+ var anInstance = anInstance$5;
21157
+ var iterate = iterate$3;
21158
+ var ArrayIterationModule = arrayIteration;
21159
+ var hasOwn = hasOwnProperty_1;
21160
+ var InternalStateModule = internalState;
21161
+
21162
+ var setInternalState = InternalStateModule.set;
21163
+ var internalStateGetterFor = InternalStateModule.getterFor;
21164
+ var find = ArrayIterationModule.find;
21165
+ var findIndex = ArrayIterationModule.findIndex;
21166
+ var splice = uncurryThis$2([].splice);
21167
+ var id = 0;
21168
+
21169
+ // fallback for uncaught frozen keys
21170
+ var uncaughtFrozenStore = function (store) {
21171
+ return store.frozen || (store.frozen = new UncaughtFrozenStore());
21172
+ };
21173
+
21174
+ var UncaughtFrozenStore = function () {
21175
+ this.entries = [];
21176
+ };
21177
+
21178
+ var findUncaughtFrozen = function (store, key) {
21179
+ return find(store.entries, function (it) {
21180
+ return it[0] === key;
21181
+ });
21182
+ };
21183
+
21184
+ UncaughtFrozenStore.prototype = {
21185
+ get: function (key) {
21186
+ var entry = findUncaughtFrozen(this, key);
21187
+ if (entry) return entry[1];
21188
+ },
21189
+ has: function (key) {
21190
+ return !!findUncaughtFrozen(this, key);
21191
+ },
21192
+ set: function (key, value) {
21193
+ var entry = findUncaughtFrozen(this, key);
21194
+ if (entry) entry[1] = value;
21195
+ else this.entries.push([key, value]);
21196
+ },
21197
+ 'delete': function (key) {
21198
+ var index = findIndex(this.entries, function (it) {
21199
+ return it[0] === key;
21200
+ });
21201
+ if (~index) splice(this.entries, index, 1);
21202
+ return !!~index;
21203
+ }
21204
+ };
21205
+
21206
+ var collectionWeak$1 = {
21207
+ getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
21208
+ var Constructor = wrapper(function (that, iterable) {
21209
+ anInstance(that, Prototype);
21210
+ setInternalState(that, {
21211
+ type: CONSTRUCTOR_NAME,
21212
+ id: id++,
21213
+ frozen: undefined
21214
+ });
21215
+ if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21216
+ });
21217
+
21218
+ var Prototype = Constructor.prototype;
21219
+
21220
+ var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
21221
+
21222
+ var define = function (that, key, value) {
21223
+ var state = getInternalState(that);
21224
+ var data = getWeakData(anObject(key), true);
21225
+ if (data === true) uncaughtFrozenStore(state).set(key, value);
21226
+ else data[state.id] = value;
21227
+ return that;
21228
+ };
21229
+
21230
+ redefineAll$1(Prototype, {
21231
+ // `{ WeakMap, WeakSet }.prototype.delete(key)` methods
21232
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.delete
21233
+ // https://tc39.es/ecma262/#sec-weakset.prototype.delete
21234
+ 'delete': function (key) {
21235
+ var state = getInternalState(this);
21236
+ if (!isObject$1(key)) return false;
21237
+ var data = getWeakData(key);
21238
+ if (data === true) return uncaughtFrozenStore(state)['delete'](key);
21239
+ return data && hasOwn(data, state.id) && delete data[state.id];
21240
+ },
21241
+ // `{ WeakMap, WeakSet }.prototype.has(key)` methods
21242
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.has
21243
+ // https://tc39.es/ecma262/#sec-weakset.prototype.has
21244
+ has: function has(key) {
21245
+ var state = getInternalState(this);
21246
+ if (!isObject$1(key)) return false;
21247
+ var data = getWeakData(key);
21248
+ if (data === true) return uncaughtFrozenStore(state).has(key);
21249
+ return data && hasOwn(data, state.id);
21250
+ }
21251
+ });
21252
+
21253
+ redefineAll$1(Prototype, IS_MAP ? {
21254
+ // `WeakMap.prototype.get(key)` method
21255
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.get
21256
+ get: function get(key) {
21257
+ var state = getInternalState(this);
21258
+ if (isObject$1(key)) {
21259
+ var data = getWeakData(key);
21260
+ if (data === true) return uncaughtFrozenStore(state).get(key);
21261
+ return data ? data[state.id] : undefined;
21262
+ }
21263
+ },
21264
+ // `WeakMap.prototype.set(key, value)` method
21265
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.set
21266
+ set: function set(key, value) {
21267
+ return define(this, key, value);
21268
+ }
21269
+ } : {
21270
+ // `WeakSet.prototype.add(value)` method
21271
+ // https://tc39.es/ecma262/#sec-weakset.prototype.add
21272
+ add: function add(value) {
21273
+ return define(this, value, true);
21274
+ }
21275
+ });
21276
+
21277
+ return Constructor;
21278
+ }
21279
+ };
21280
+
21281
+ var global$2 = global$V;
21282
+ var uncurryThis$1 = functionUncurryThis;
21283
+ var redefineAll = redefineAll$4;
21284
+ var InternalMetadataModule = internalMetadata.exports;
21285
+ var collection = collection$1;
21286
+ var collectionWeak = collectionWeak$1;
21287
+ var isObject = isObject$l;
21288
+ var isExtensible = objectIsExtensible;
21289
+ var enforceInternalState = internalState.enforce;
21290
+ var NATIVE_WEAK_MAP = nativeWeakMap;
21291
+
21292
+ var IS_IE11 = !global$2.ActiveXObject && 'ActiveXObject' in global$2;
21293
+ var InternalWeakMap;
21294
+
21295
+ var wrapper = function (init) {
21296
+ return function WeakMap() {
21297
+ return init(this, arguments.length ? arguments[0] : undefined);
21298
+ };
21299
+ };
21300
+
21301
+ // `WeakMap` constructor
21302
+ // https://tc39.es/ecma262/#sec-weakmap-constructor
21303
+ var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
21304
+
21305
+ // IE11 WeakMap frozen keys fix
21306
+ // We can't use feature detection because it crash some old IE builds
21307
+ // https://github.com/zloirock/core-js/issues/485
21308
+ if (NATIVE_WEAK_MAP && IS_IE11) {
21309
+ InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
21310
+ InternalMetadataModule.enable();
21311
+ var WeakMapPrototype = $WeakMap.prototype;
21312
+ var nativeDelete = uncurryThis$1(WeakMapPrototype['delete']);
21313
+ var nativeHas = uncurryThis$1(WeakMapPrototype.has);
21314
+ var nativeGet = uncurryThis$1(WeakMapPrototype.get);
21315
+ var nativeSet = uncurryThis$1(WeakMapPrototype.set);
21316
+ redefineAll(WeakMapPrototype, {
21317
+ 'delete': function (key) {
21318
+ if (isObject(key) && !isExtensible(key)) {
21319
+ var state = enforceInternalState(this);
21320
+ if (!state.frozen) state.frozen = new InternalWeakMap();
21321
+ return nativeDelete(this, key) || state.frozen['delete'](key);
21322
+ } return nativeDelete(this, key);
21323
+ },
21324
+ has: function has(key) {
21325
+ if (isObject(key) && !isExtensible(key)) {
21326
+ var state = enforceInternalState(this);
21327
+ if (!state.frozen) state.frozen = new InternalWeakMap();
21328
+ return nativeHas(this, key) || state.frozen.has(key);
21329
+ } return nativeHas(this, key);
21330
+ },
21331
+ get: function get(key) {
21332
+ if (isObject(key) && !isExtensible(key)) {
21333
+ var state = enforceInternalState(this);
21334
+ if (!state.frozen) state.frozen = new InternalWeakMap();
21335
+ return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
21336
+ } return nativeGet(this, key);
21337
+ },
21338
+ set: function set(key, value) {
21339
+ if (isObject(key) && !isExtensible(key)) {
21340
+ var state = enforceInternalState(this);
21341
+ if (!state.frozen) state.frozen = new InternalWeakMap();
21342
+ nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
21343
+ } else nativeSet(this, key, value);
21344
+ return this;
21345
+ }
21346
+ });
21347
+ }
21348
+
21349
+ var parseChargeRefusal = function parseChargeRefusal(error) {
21350
+ if (!error.response || error.response.status >= 500) throw error;
21351
+ return ChargeResponses.parse(error.response.data);
21352
+ };
21353
+ var PayflexAPI = {
21354
+ charge: function charge(_ref) {
21355
+ var accessCode = _ref.accessCode,
21356
+ publicKey = _ref.publicKey,
21357
+ deviceFingerprint = _ref.deviceFingerprint,
21358
+ returnUrl = _ref.returnUrl,
21359
+ checkoutMode = _ref.checkoutMode,
21360
+ successUrl = _ref.successUrl,
21361
+ cancelUrl = _ref.cancelUrl;
21362
+ var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
21363
+ var language = getLanguage();
21364
+ var headers = _objectSpread2({
21365
+ Authorization: "Bearer ".concat(publicKey)
21366
+ }, language && {
21367
+ 'Accept-Language': language
21368
+ });
21369
+ var params = _objectSpread2(_objectSpread2({
21370
+ access_code: accessCode
21371
+ }, deviceFingerprint && {
21372
+ device_id: deviceFingerprint
21373
+ }), {}, {
21374
+ payflex: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, returnUrl && {
21375
+ return_url: returnUrl
21376
+ }), checkoutMode && {
21377
+ checkout_mode: checkoutMode
21378
+ }), successUrl && {
21379
+ success_url: successUrl
21380
+ }), cancelUrl && {
21381
+ cancel_url: cancelUrl
21382
+ })
21383
+ });
21384
+ return axiosInstance.post(url, params, {
21385
+ headers: headers
21386
+ }).then(function (response) {
21387
+ return ChargeResponses.parse(response.data);
21388
+ }).catch(parseChargeRefusal);
21389
+ },
21390
+ requery: function requery(_ref2) {
21391
+ var transactionReference = _ref2.transactionReference,
21392
+ publicKey = _ref2.publicKey;
21393
+ var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
21394
+ var language = getLanguage();
21395
+ var headers = _objectSpread2({
21396
+ Authorization: "Bearer ".concat(publicKey)
21397
+ }, language && {
21398
+ 'Accept-Language': language
21399
+ });
21400
+ return axiosInstance.get(url, {
21401
+ headers: headers
21402
+ }).then(function (response) {
21403
+ return ChargeResponses.parse(response.data);
21404
+ });
21405
+ }
21406
+ };
21407
+
21408
+ var PAYFLEX_CHANNEL = 'payflex';
21409
+
21410
+ var pollRuns = new WeakMap();
21411
+ var runFor = function runFor(transaction) {
21412
+ if (!pollRuns.has(transaction)) {
21413
+ pollRuns.set(transaction, {
21414
+ pendingLogged: false,
21415
+ concluded: false,
21416
+ lastOutcome: null
21417
+ });
21418
+ }
21419
+ return pollRuns.get(transaction);
21420
+ };
21421
+ var isTerminal = function isTerminal(status) {
21422
+ return status === 'success' || status === 'failed';
21423
+ };
21424
+ var recordOutcome = function recordOutcome(transaction, response) {
21425
+ var run = runFor(transaction);
21426
+ if (isTerminal(response.status)) {
21427
+ if (run.lastOutcome === response.status) return false;
21428
+ run.concluded = true;
21429
+ run.pendingLogged = false;
21430
+ run.lastOutcome = response.status;
21431
+ return true;
21432
+ }
21433
+ if (response.status !== 'pending') return true;
21434
+ if (run.pendingLogged || run.concluded) return false;
21435
+ run.pendingLogged = true;
21436
+ return true;
21437
+ };
21438
+ var PayflexCharge = {
21439
+ chargePayflex: function chargePayflex() {
21440
+ var _this = this;
21441
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
21442
+ returnUrl = _ref.returnUrl,
21443
+ checkoutMode = _ref.checkoutMode,
21444
+ successUrl = _ref.successUrl,
21445
+ cancelUrl = _ref.cancelUrl;
21446
+ pollRuns.delete(this);
21447
+ this.logAttempt(PAYFLEX_CHANNEL);
21448
+ if (checkoutMode) {
21449
+ this.logPayflexPresentationMode(checkoutMode);
21450
+ }
21451
+ return PayflexAPI.charge({
21452
+ accessCode: this.accessCode,
21453
+ publicKey: this.merchant.key,
21454
+ deviceFingerprint: this.deviceFingerprint,
21455
+ returnUrl: returnUrl,
21456
+ checkoutMode: checkoutMode,
21457
+ successUrl: successUrl,
21458
+ cancelUrl: cancelUrl
21459
+ }).then(function (response) {
21460
+ var usedMode = response.data && response.data.checkout_mode;
21461
+ if (checkoutMode && usedMode && usedMode !== checkoutMode) {
21462
+ _this.logPayflexPresentationModeMismatch({
21463
+ requested: checkoutMode,
21464
+ used: usedMode
21465
+ });
21466
+ }
21467
+ _this.logAPIResponse(response, PAYFLEX_CHANNEL);
21468
+ return response;
21469
+ });
21470
+ },
21471
+ requeryPayflex: function requeryPayflex() {
21472
+ var _this2 = this;
21473
+ return PayflexAPI.requery({
21474
+ transactionReference: this.reference,
21475
+ publicKey: this.merchant.key
21476
+ }).then(function (response) {
21477
+ if (recordOutcome(_this2, response)) {
21478
+ _this2.logAPIResponse(response, PAYFLEX_CHANNEL);
21479
+ }
21480
+ return response;
21481
+ });
21482
+ },
21483
+ listenForPayflexCharge: function listenForPayflexCharge(callback) {
21484
+ var _this3 = this;
21485
+ var listenerOptions = {
21486
+ paymentMethod: PAYFLEX_CHANNEL,
21487
+ channel: "PAYFLEX_".concat(this.id)
21488
+ };
21489
+ return this.listenForCharge(listenerOptions, function (response, unsubscribe) {
21490
+ recordOutcome(_this3, response);
21491
+ callback(response, unsubscribe);
21492
+ });
21493
+ }
21494
+ };
21495
+
20948
21496
  var ChargeFunctions = {
20949
21497
  get: function get(channel) {
20950
21498
  var chargeFunctions = {
@@ -20962,7 +21510,8 @@ var Paystack = (function (exports) {
20962
21510
  paypal: PayPalCharge,
20963
21511
  capitec_pay: CapitecPayCharge,
20964
21512
  union_pay: ChinaUnionPayCharge,
20965
- instalments: InstalmentsCharge
21513
+ instalments: InstalmentsCharge,
21514
+ payflex: PayflexCharge
20966
21515
  };
20967
21516
  return chargeFunctions[channel];
20968
21517
  }
@@ -21006,11 +21555,11 @@ var Paystack = (function (exports) {
21006
21555
  };
21007
21556
 
21008
21557
  var $ = _export;
21009
- var global$1 = global$T;
21558
+ var global$1 = global$V;
21010
21559
  var getBuiltIn = getBuiltIn$a;
21011
21560
  var apply = functionApply;
21012
21561
  var uncurryThis = functionUncurryThis;
21013
- var fails = fails$v;
21562
+ var fails = fails$x;
21014
21563
 
21015
21564
  var Array$1 = global$1.Array;
21016
21565
  var $stringify = getBuiltIn('JSON', 'stringify');
@@ -21175,7 +21724,36 @@ var Paystack = (function (exports) {
21175
21724
  }
21176
21725
  };
21177
21726
 
21178
- var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics), {}, {
21727
+ var PayflexAnalytics = {
21728
+ logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
21729
+ return this.logHistoryEntry({
21730
+ type: 'action',
21731
+ message: "Opening Payflex as: ".concat(checkoutMode),
21732
+ channel: PAYFLEX_CHANNEL,
21733
+ time: this.getTimeSpent()
21734
+ });
21735
+ },
21736
+ logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
21737
+ var requested = _ref.requested,
21738
+ used = _ref.used;
21739
+ return this.logHistoryEntry({
21740
+ type: 'action',
21741
+ message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
21742
+ channel: PAYFLEX_CHANNEL,
21743
+ time: this.getTimeSpent()
21744
+ });
21745
+ },
21746
+ logPayflexStatusRecheck: function logPayflexStatusRecheck() {
21747
+ return this.logHistoryEntry({
21748
+ type: 'action',
21749
+ message: 'Selected check payment status again',
21750
+ channel: PAYFLEX_CHANNEL,
21751
+ time: this.getTimeSpent()
21752
+ });
21753
+ }
21754
+ };
21755
+
21756
+ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
21179
21757
  initializeLog: function initializeLog(log) {
21180
21758
  this.log = AnalyticsUtils.initializeLog(log);
21181
21759
  },
@@ -21267,6 +21845,11 @@ var Paystack = (function (exports) {
21267
21845
  return this.logError(response.message);
21268
21846
  case 'auth':
21269
21847
  return this.logAuth(response.data.auth);
21848
+ case 'awaiting_ussd_confirmation':
21849
+ // The customer has been shown the USSD prompt but has not paid yet. Recording
21850
+ // it keeps the step in the transaction log instead of dropping through to
21851
+ // `default`, which is what tells us how many customers reach the prompt.
21852
+ return this.logAPIResponseMessage(response.message);
21270
21853
  default:
21271
21854
  return false;
21272
21855
  }