@mjhls/mjh-framework 1.0.684-beta.1 → 1.0.684
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/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +4 -4
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +7 -7
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-b2bc3b97.js} +1 -1
- package/dist/cjs/EventsDeck.js +4 -4
- package/dist/cjs/ExternalResources.js +7 -7
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +4 -4
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +7 -7
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +7 -7
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +15 -1212
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-9cd24578.js → SocialSearchComponent-6b5e5b47.js} +5 -5
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +137 -532
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa8ed292.js → index-2d0a4911.js} +34 -27
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-c49c3b5e.js → index-8c9e8ca7.js} +462 -450
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +16 -15
- package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +7 -7
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-96b49def.js → Dfp-8a8fca18.js} +1 -1
- package/dist/esm/EventsDeck.js +4 -4
- package/dist/esm/ExternalResources.js +7 -7
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +7 -7
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +7 -7
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +3 -3
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +13 -1209
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-93233334.js → SocialSearchComponent-7f14e0f3.js} +5 -5
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +117 -512
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-85783f24.js → index-5505d4f9.js} +462 -450
- package/dist/esm/{index-0e45a0b2.js → index-93ec3c59.js} +34 -27
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +14 -13
- package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-f27bc4b5.js → ADInfeed-c676389b.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8decfd9e.js → ADlgInfeed-57d63c87.js} +0 -0
- /package/dist/esm/{ADInfeed-1e0ca5e0.js → ADInfeed-97b8cea7.js} +0 -0
- /package/dist/esm/{ADlgInfeed-979cf0d5.js → ADlgInfeed-3ab91c75.js} +0 -0
package/dist/cjs/Auth.js
CHANGED
|
@@ -11,7 +11,7 @@ require('./_library-dd23b178.js');
|
|
|
11
11
|
require('./_iter-detect-60b2f026.js');
|
|
12
12
|
require('./core.get-iterator-method-f62321d4.js');
|
|
13
13
|
require('./_object-pie-68c5bcbc.js');
|
|
14
|
-
var _extends
|
|
14
|
+
var _extends = require('./extends-60837c34.js');
|
|
15
15
|
require('./web.dom.iterable-a0e279c1.js');
|
|
16
16
|
var React = require('react');
|
|
17
17
|
var React__default = _interopDefault(React);
|
|
@@ -23,7 +23,6 @@ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
|
23
23
|
require('./_set-species-f92c67c5.js');
|
|
24
24
|
var reactBootstrap = require('react-bootstrap');
|
|
25
25
|
var util = require('./util-f2c1b65b.js');
|
|
26
|
-
var index$4 = require('./index-bd6c9f56.js');
|
|
27
26
|
var useSWR = _interopDefault(require('swr'));
|
|
28
27
|
var Local = _interopDefault(require('passport-local'));
|
|
29
28
|
var mysql = _interopDefault(require('mysql'));
|
|
@@ -67,7 +66,7 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
67
66
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
68
67
|
return React__default.createElement(
|
|
69
68
|
reactBootstrap.Form.Group,
|
|
70
|
-
_extends
|
|
69
|
+
_extends._extends({}, opts, { controlId: name }),
|
|
71
70
|
React__default.createElement(
|
|
72
71
|
reactBootstrap.Form.Label,
|
|
73
72
|
{ kye: name + '_label' },
|
|
@@ -89,7 +88,7 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
89
88
|
if (type == 'select') {
|
|
90
89
|
return React__default.createElement(
|
|
91
90
|
reactBootstrap.Form.Group,
|
|
92
|
-
_extends
|
|
91
|
+
_extends._extends({}, opts, { key: name, controlId: name }),
|
|
93
92
|
React__default.createElement(
|
|
94
93
|
reactBootstrap.Form.Label,
|
|
95
94
|
{ key: name + '_' + label },
|
|
@@ -1211,12 +1210,213 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1211
1210
|
);
|
|
1212
1211
|
};
|
|
1213
1212
|
|
|
1213
|
+
/*!
|
|
1214
|
+
* cookie
|
|
1215
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1216
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1217
|
+
* MIT Licensed
|
|
1218
|
+
*/
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Module exports.
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
var parse_1 = parse;
|
|
1226
|
+
var serialize_1 = serialize;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Module variables.
|
|
1230
|
+
* @private
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
1233
|
+
var decode = decodeURIComponent;
|
|
1234
|
+
var encode = encodeURIComponent;
|
|
1235
|
+
var pairSplitRegExp = /; */;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1239
|
+
*
|
|
1240
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1241
|
+
* field-vchar = VCHAR / obs-text
|
|
1242
|
+
* obs-text = %x80-FF
|
|
1243
|
+
*/
|
|
1244
|
+
|
|
1245
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Parse a cookie header.
|
|
1249
|
+
*
|
|
1250
|
+
* Parse the given cookie header string into an object
|
|
1251
|
+
* The object has the various cookies as keys(names) => values
|
|
1252
|
+
*
|
|
1253
|
+
* @param {string} str
|
|
1254
|
+
* @param {object} [options]
|
|
1255
|
+
* @return {object}
|
|
1256
|
+
* @public
|
|
1257
|
+
*/
|
|
1258
|
+
|
|
1259
|
+
function parse(str, options) {
|
|
1260
|
+
if (typeof str !== 'string') {
|
|
1261
|
+
throw new TypeError('argument str must be a string');
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
var obj = {};
|
|
1265
|
+
var opt = options || {};
|
|
1266
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1267
|
+
var dec = opt.decode || decode;
|
|
1268
|
+
|
|
1269
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1270
|
+
var pair = pairs[i];
|
|
1271
|
+
var eq_idx = pair.indexOf('=');
|
|
1272
|
+
|
|
1273
|
+
// skip things that don't look like key=value
|
|
1274
|
+
if (eq_idx < 0) {
|
|
1275
|
+
continue;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1279
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1280
|
+
|
|
1281
|
+
// quoted values
|
|
1282
|
+
if ('"' == val[0]) {
|
|
1283
|
+
val = val.slice(1, -1);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
// only assign once
|
|
1287
|
+
if (undefined == obj[key]) {
|
|
1288
|
+
obj[key] = tryDecode(val, dec);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
return obj;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Serialize data into a cookie header.
|
|
1297
|
+
*
|
|
1298
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1299
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1300
|
+
*
|
|
1301
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1302
|
+
* => "foo=bar; httpOnly"
|
|
1303
|
+
*
|
|
1304
|
+
* @param {string} name
|
|
1305
|
+
* @param {string} val
|
|
1306
|
+
* @param {object} [options]
|
|
1307
|
+
* @return {string}
|
|
1308
|
+
* @public
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
1311
|
+
function serialize(name, val, options) {
|
|
1312
|
+
var opt = options || {};
|
|
1313
|
+
var enc = opt.encode || encode;
|
|
1314
|
+
|
|
1315
|
+
if (typeof enc !== 'function') {
|
|
1316
|
+
throw new TypeError('option encode is invalid');
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1320
|
+
throw new TypeError('argument name is invalid');
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
var value = enc(val);
|
|
1324
|
+
|
|
1325
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1326
|
+
throw new TypeError('argument val is invalid');
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
var str = name + '=' + value;
|
|
1330
|
+
|
|
1331
|
+
if (null != opt.maxAge) {
|
|
1332
|
+
var maxAge = opt.maxAge - 0;
|
|
1333
|
+
|
|
1334
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1335
|
+
throw new TypeError('option maxAge is invalid')
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (opt.domain) {
|
|
1342
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1343
|
+
throw new TypeError('option domain is invalid');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
str += '; Domain=' + opt.domain;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (opt.path) {
|
|
1350
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1351
|
+
throw new TypeError('option path is invalid');
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
str += '; Path=' + opt.path;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (opt.expires) {
|
|
1358
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1359
|
+
throw new TypeError('option expires is invalid');
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (opt.httpOnly) {
|
|
1366
|
+
str += '; HttpOnly';
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
if (opt.secure) {
|
|
1370
|
+
str += '; Secure';
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
if (opt.sameSite) {
|
|
1374
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1375
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1376
|
+
|
|
1377
|
+
switch (sameSite) {
|
|
1378
|
+
case true:
|
|
1379
|
+
str += '; SameSite=Strict';
|
|
1380
|
+
break;
|
|
1381
|
+
case 'lax':
|
|
1382
|
+
str += '; SameSite=Lax';
|
|
1383
|
+
break;
|
|
1384
|
+
case 'strict':
|
|
1385
|
+
str += '; SameSite=Strict';
|
|
1386
|
+
break;
|
|
1387
|
+
case 'none':
|
|
1388
|
+
str += '; SameSite=None';
|
|
1389
|
+
break;
|
|
1390
|
+
default:
|
|
1391
|
+
throw new TypeError('option sameSite is invalid');
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
return str;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* Try decoding a string using a decoding function.
|
|
1400
|
+
*
|
|
1401
|
+
* @param {string} str
|
|
1402
|
+
* @param {function} decode
|
|
1403
|
+
* @private
|
|
1404
|
+
*/
|
|
1405
|
+
|
|
1406
|
+
function tryDecode(str, decode) {
|
|
1407
|
+
try {
|
|
1408
|
+
return decode(str);
|
|
1409
|
+
} catch (e) {
|
|
1410
|
+
return str;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1214
1414
|
var TOKEN_NAME = 'token';
|
|
1215
1415
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1216
1416
|
|
|
1217
1417
|
function setTokenCookie(res, token, eKey) {
|
|
1218
1418
|
var cookies_serailized = [];
|
|
1219
|
-
cookies_serailized.push(
|
|
1419
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
|
|
1220
1420
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1221
1421
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1222
1422
|
//httpOnly: true,
|
|
@@ -1225,7 +1425,7 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1225
1425
|
//sameSite: 'lax',
|
|
1226
1426
|
}));
|
|
1227
1427
|
|
|
1228
|
-
cookies_serailized.push(
|
|
1428
|
+
cookies_serailized.push(serialize_1('eKey', eKey, {
|
|
1229
1429
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1230
1430
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1231
1431
|
//httpOnly: true,
|
|
@@ -1239,12 +1439,12 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1239
1439
|
|
|
1240
1440
|
function removeTokenCookie(res) {
|
|
1241
1441
|
var cookies_serailized = [];
|
|
1242
|
-
cookies_serailized.push(
|
|
1442
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
|
|
1243
1443
|
maxAge: -1,
|
|
1244
1444
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1245
1445
|
path: '/'
|
|
1246
1446
|
}));
|
|
1247
|
-
cookies_serailized.push(
|
|
1447
|
+
cookies_serailized.push(serialize_1('eKey', '', {
|
|
1248
1448
|
maxAge: -1,
|
|
1249
1449
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1250
1450
|
path: '/'
|
|
@@ -1259,7 +1459,7 @@ function parseCookies(req) {
|
|
|
1259
1459
|
|
|
1260
1460
|
// For pages we do need to parse the cookies.
|
|
1261
1461
|
var cookie = req.headers ? req.headers.cookie : null;
|
|
1262
|
-
return
|
|
1462
|
+
return parse_1(cookie || '');
|
|
1263
1463
|
}
|
|
1264
1464
|
|
|
1265
1465
|
function getTokenCookie(req) {
|
|
@@ -1851,9 +2051,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1851
2051
|
if (value != null) {
|
|
1852
2052
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1853
2053
|
var desc = $gOPD(value, parts[i]);
|
|
1854
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
1855
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1856
|
-
}
|
|
1857
2054
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1858
2055
|
} else {
|
|
1859
2056
|
value = value[parts[i]];
|
|
@@ -1886,16 +2083,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1886
2083
|
return intrinsic;
|
|
1887
2084
|
};
|
|
1888
2085
|
|
|
1889
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1890
|
-
|
|
1891
|
-
if ($defineProperty) {
|
|
1892
|
-
try {
|
|
1893
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1894
|
-
} catch (e) {
|
|
1895
|
-
// IE 8 has a broken defineProperty
|
|
1896
|
-
$defineProperty = null;
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
2086
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1899
2087
|
|
|
1900
2088
|
|
|
1901
2089
|
|
|
@@ -2038,224 +2226,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2038
2226
|
return obj;
|
|
2039
2227
|
};
|
|
2040
2228
|
|
|
2041
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2042
|
-
if ($gOPD$1) {
|
|
2043
|
-
try {
|
|
2044
|
-
$gOPD$1([], 'length');
|
|
2045
|
-
} catch (e) {
|
|
2046
|
-
// IE 8 has a broken gOPD
|
|
2047
|
-
$gOPD$1 = null;
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2052
|
-
|
|
2053
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2054
|
-
|
|
2055
|
-
// eslint-disable-next-line global-require
|
|
2056
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2057
|
-
|
|
2058
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2059
|
-
|
|
2060
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2061
|
-
return toStr$4(argument) === '[object Array]';
|
|
2062
|
-
};
|
|
2063
|
-
|
|
2064
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2065
|
-
|
|
2066
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2067
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2068
|
-
};
|
|
2069
|
-
|
|
2070
|
-
var regexExec = RegExp.prototype.exec;
|
|
2071
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2072
|
-
|
|
2073
|
-
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2074
|
-
try {
|
|
2075
|
-
var lastIndex = value.lastIndex;
|
|
2076
|
-
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2077
|
-
|
|
2078
|
-
regexExec.call(value);
|
|
2079
|
-
return true;
|
|
2080
|
-
} catch (e) {
|
|
2081
|
-
return false;
|
|
2082
|
-
} finally {
|
|
2083
|
-
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
var toStr$5 = Object.prototype.toString;
|
|
2087
|
-
var regexClass = '[object RegExp]';
|
|
2088
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2089
|
-
|
|
2090
|
-
var isRegex = function isRegex(value) {
|
|
2091
|
-
if (!value || typeof value !== 'object') {
|
|
2092
|
-
return false;
|
|
2093
|
-
}
|
|
2094
|
-
if (!hasToStringTag) {
|
|
2095
|
-
return toStr$5.call(value) === regexClass;
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2099
|
-
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2100
|
-
if (!hasLastIndexDataProperty) {
|
|
2101
|
-
return false;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
return tryRegexExecCall(value);
|
|
2105
|
-
};
|
|
2106
|
-
|
|
2107
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2108
|
-
|
|
2109
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2110
|
-
|
|
2111
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2118
|
-
|
|
2119
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2120
|
-
if (!argument || typeof argument !== 'object') {
|
|
2121
|
-
return false;
|
|
2122
|
-
}
|
|
2123
|
-
if ($match) {
|
|
2124
|
-
var isRegExp = argument[$match];
|
|
2125
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2126
|
-
return ToBoolean(isRegExp);
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
return isRegex(argument);
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
var fnToStr = Function.prototype.toString;
|
|
2133
|
-
|
|
2134
|
-
var constructorRegex = /^\s*class\b/;
|
|
2135
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2136
|
-
try {
|
|
2137
|
-
var fnStr = fnToStr.call(value);
|
|
2138
|
-
return constructorRegex.test(fnStr);
|
|
2139
|
-
} catch (e) {
|
|
2140
|
-
return false; // not a function
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
|
-
|
|
2144
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2145
|
-
try {
|
|
2146
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2147
|
-
fnToStr.call(value);
|
|
2148
|
-
return true;
|
|
2149
|
-
} catch (e) {
|
|
2150
|
-
return false;
|
|
2151
|
-
}
|
|
2152
|
-
};
|
|
2153
|
-
var toStr$6 = Object.prototype.toString;
|
|
2154
|
-
var fnClass = '[object Function]';
|
|
2155
|
-
var genClass = '[object GeneratorFunction]';
|
|
2156
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2157
|
-
|
|
2158
|
-
var isCallable = function isCallable(value) {
|
|
2159
|
-
if (!value) { return false; }
|
|
2160
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2161
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2162
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2163
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2164
|
-
var strClass = toStr$6.call(value);
|
|
2165
|
-
return strClass === fnClass || strClass === genClass;
|
|
2166
|
-
};
|
|
2167
|
-
|
|
2168
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2169
|
-
|
|
2170
|
-
var IsCallable = isCallable;
|
|
2171
|
-
|
|
2172
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2179
|
-
|
|
2180
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2181
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2182
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
var desc = {};
|
|
2186
|
-
if (src(Obj, 'enumerable')) {
|
|
2187
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2188
|
-
}
|
|
2189
|
-
if (src(Obj, 'configurable')) {
|
|
2190
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2191
|
-
}
|
|
2192
|
-
if (src(Obj, 'value')) {
|
|
2193
|
-
desc['[[Value]]'] = Obj.value;
|
|
2194
|
-
}
|
|
2195
|
-
if (src(Obj, 'writable')) {
|
|
2196
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2197
|
-
}
|
|
2198
|
-
if (src(Obj, 'get')) {
|
|
2199
|
-
var getter = Obj.get;
|
|
2200
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2201
|
-
throw new TypeError('getter must be a function');
|
|
2202
|
-
}
|
|
2203
|
-
desc['[[Get]]'] = getter;
|
|
2204
|
-
}
|
|
2205
|
-
if (src(Obj, 'set')) {
|
|
2206
|
-
var setter = Obj.set;
|
|
2207
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2208
|
-
throw new $TypeError$2('setter must be a function');
|
|
2209
|
-
}
|
|
2210
|
-
desc['[[Set]]'] = setter;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2214
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2215
|
-
}
|
|
2216
|
-
return desc;
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2234
|
-
|
|
2235
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2236
|
-
if (Type$1(O) !== 'Object') {
|
|
2237
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2238
|
-
}
|
|
2239
|
-
if (!IsPropertyKey(P)) {
|
|
2240
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2241
|
-
}
|
|
2242
|
-
if (!src(O, P)) {
|
|
2243
|
-
return void 0;
|
|
2244
|
-
}
|
|
2245
|
-
if (!getOwnPropertyDescriptor) {
|
|
2246
|
-
// ES3 / IE 8 fallback
|
|
2247
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2248
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2249
|
-
return {
|
|
2250
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2251
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2252
|
-
'[[Value]]': O[P],
|
|
2253
|
-
'[[Writable]]': true
|
|
2254
|
-
};
|
|
2255
|
-
}
|
|
2256
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2257
|
-
};
|
|
2258
|
-
|
|
2259
2229
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2260
2230
|
|
|
2261
2231
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2289,10 +2259,16 @@ var IsExtensible = $preventExtensions
|
|
|
2289
2259
|
? function IsExtensible(obj) {
|
|
2290
2260
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2291
2261
|
}
|
|
2292
|
-
: function IsExtensible(obj) {
|
|
2293
|
-
return
|
|
2262
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2263
|
+
return true;
|
|
2294
2264
|
};
|
|
2295
2265
|
|
|
2266
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2267
|
+
|
|
2268
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2269
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2296
2272
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2297
2273
|
return a !== a;
|
|
2298
2274
|
};
|
|
@@ -2307,8 +2283,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2307
2283
|
return _isNaN(x) && _isNaN(y);
|
|
2308
2284
|
};
|
|
2309
2285
|
|
|
2310
|
-
var $
|
|
2311
|
-
|
|
2286
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2287
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2312
2288
|
|
|
2313
2289
|
|
|
2314
2290
|
|
|
@@ -2323,12 +2299,12 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2323
2299
|
|
|
2324
2300
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2325
2301
|
if (Type$1(O) !== 'Object') {
|
|
2326
|
-
throw new $TypeError$
|
|
2302
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2327
2303
|
}
|
|
2328
2304
|
if (!IsPropertyKey(P)) {
|
|
2329
|
-
throw new $TypeError$
|
|
2305
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2330
2306
|
}
|
|
2331
|
-
var oldDesc =
|
|
2307
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2332
2308
|
var extensible = oldDesc || IsExtensible(O);
|
|
2333
2309
|
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2334
2310
|
if (immutable || !extensible) {
|
|
@@ -2349,13 +2325,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2349
2325
|
);
|
|
2350
2326
|
};
|
|
2351
2327
|
|
|
2352
|
-
var
|
|
2328
|
+
var fnToStr = Function.prototype.toString;
|
|
2329
|
+
|
|
2330
|
+
var constructorRegex = /^\s*class\b/;
|
|
2331
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2332
|
+
try {
|
|
2333
|
+
var fnStr = fnToStr.call(value);
|
|
2334
|
+
return constructorRegex.test(fnStr);
|
|
2335
|
+
} catch (e) {
|
|
2336
|
+
return false; // not a function
|
|
2337
|
+
}
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2341
|
+
try {
|
|
2342
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2343
|
+
fnToStr.call(value);
|
|
2344
|
+
return true;
|
|
2345
|
+
} catch (e) {
|
|
2346
|
+
return false;
|
|
2347
|
+
}
|
|
2348
|
+
};
|
|
2349
|
+
var toStr$4 = Object.prototype.toString;
|
|
2350
|
+
var fnClass = '[object Function]';
|
|
2351
|
+
var genClass = '[object GeneratorFunction]';
|
|
2352
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2353
|
+
|
|
2354
|
+
var isCallable = function isCallable(value) {
|
|
2355
|
+
if (!value) { return false; }
|
|
2356
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2357
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2358
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2359
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2360
|
+
var strClass = toStr$4.call(value);
|
|
2361
|
+
return strClass === fnClass || strClass === genClass;
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2365
|
+
|
|
2366
|
+
var IsCallable = isCallable;
|
|
2367
|
+
|
|
2368
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2353
2369
|
|
|
2354
2370
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2355
2371
|
|
|
2356
2372
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2357
2373
|
if (value == null) {
|
|
2358
|
-
throw new $TypeError$
|
|
2374
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2359
2375
|
}
|
|
2360
2376
|
return value;
|
|
2361
2377
|
};
|
|
@@ -2426,6 +2442,241 @@ defineProperties_1(implementation$2, {
|
|
|
2426
2442
|
|
|
2427
2443
|
var object_getownpropertydescriptors = implementation$2;
|
|
2428
2444
|
|
|
2445
|
+
/* globals
|
|
2446
|
+
Atomics,
|
|
2447
|
+
SharedArrayBuffer,
|
|
2448
|
+
*/
|
|
2449
|
+
|
|
2450
|
+
var undefined$2;
|
|
2451
|
+
|
|
2452
|
+
var $TypeError$4 = TypeError;
|
|
2453
|
+
|
|
2454
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2455
|
+
if ($gOPD$3) {
|
|
2456
|
+
try {
|
|
2457
|
+
$gOPD$3({}, '');
|
|
2458
|
+
} catch (e) {
|
|
2459
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2464
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2465
|
+
? (function () {
|
|
2466
|
+
try {
|
|
2467
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2468
|
+
arguments.callee; // IE 8 does not throw here
|
|
2469
|
+
return throwTypeError$1;
|
|
2470
|
+
} catch (calleeThrows) {
|
|
2471
|
+
try {
|
|
2472
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2473
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2474
|
+
} catch (gOPDthrows) {
|
|
2475
|
+
return throwTypeError$1;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}())
|
|
2479
|
+
: throwTypeError$1;
|
|
2480
|
+
|
|
2481
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2482
|
+
|
|
2483
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2484
|
+
var generatorFunction$1 = undefined$2;
|
|
2485
|
+
var asyncFunction$1 = undefined$2;
|
|
2486
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2487
|
+
|
|
2488
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2489
|
+
|
|
2490
|
+
var INTRINSICS$1 = {
|
|
2491
|
+
'%Array%': Array,
|
|
2492
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2493
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2494
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2495
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2496
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2497
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2498
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2499
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2500
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2501
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2502
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2503
|
+
'%AsyncGenerator%': undefined$2,
|
|
2504
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2505
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2506
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2507
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2508
|
+
'%Boolean%': Boolean,
|
|
2509
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2510
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2511
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2512
|
+
'%Date%': Date,
|
|
2513
|
+
'%DatePrototype%': Date.prototype,
|
|
2514
|
+
'%decodeURI%': decodeURI,
|
|
2515
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2516
|
+
'%encodeURI%': encodeURI,
|
|
2517
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2518
|
+
'%Error%': Error,
|
|
2519
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2520
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2521
|
+
'%EvalError%': EvalError,
|
|
2522
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2523
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2524
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2525
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2526
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2527
|
+
'%Function%': Function,
|
|
2528
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2529
|
+
'%Generator%': undefined$2,
|
|
2530
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2531
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2532
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2533
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2534
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2535
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2536
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2537
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2538
|
+
'%isFinite%': isFinite,
|
|
2539
|
+
'%isNaN%': isNaN,
|
|
2540
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2541
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2542
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2543
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2544
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2545
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2546
|
+
'%Math%': Math,
|
|
2547
|
+
'%Number%': Number,
|
|
2548
|
+
'%NumberPrototype%': Number.prototype,
|
|
2549
|
+
'%Object%': Object,
|
|
2550
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2551
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2552
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2553
|
+
'%parseFloat%': parseFloat,
|
|
2554
|
+
'%parseInt%': parseInt,
|
|
2555
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2556
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2557
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2558
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2559
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2560
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2561
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2562
|
+
'%RangeError%': RangeError,
|
|
2563
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2564
|
+
'%ReferenceError%': ReferenceError,
|
|
2565
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2566
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2567
|
+
'%RegExp%': RegExp,
|
|
2568
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2569
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2570
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2571
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2572
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2573
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2574
|
+
'%String%': String,
|
|
2575
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2576
|
+
'%StringPrototype%': String.prototype,
|
|
2577
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2578
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2579
|
+
'%SyntaxError%': SyntaxError,
|
|
2580
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2581
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2582
|
+
'%TypedArray%': TypedArray$1,
|
|
2583
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2584
|
+
'%TypeError%': $TypeError$4,
|
|
2585
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2586
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2587
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2588
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2589
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2590
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2591
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2592
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2593
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2594
|
+
'%URIError%': URIError,
|
|
2595
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2596
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2597
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2598
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2599
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2604
|
+
|
|
2605
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2606
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2607
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2608
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2609
|
+
var result = [];
|
|
2610
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2611
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2612
|
+
});
|
|
2613
|
+
return result;
|
|
2614
|
+
};
|
|
2615
|
+
/* end adaptation */
|
|
2616
|
+
|
|
2617
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2618
|
+
if (!(name in INTRINSICS$1)) {
|
|
2619
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2623
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2624
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
return INTRINSICS$1[name];
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2631
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2632
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2633
|
+
}
|
|
2634
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2635
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
var parts = stringToPath$1(name);
|
|
2639
|
+
|
|
2640
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2641
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2642
|
+
if (value != null) {
|
|
2643
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2644
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2645
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2646
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2647
|
+
}
|
|
2648
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2649
|
+
} else {
|
|
2650
|
+
value = value[parts[i]];
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return value;
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2658
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2659
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2660
|
+
|
|
2661
|
+
var callBind$1 = function callBind() {
|
|
2662
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
var apply$1 = function applyBind() {
|
|
2666
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2667
|
+
};
|
|
2668
|
+
callBind$1.apply = apply$1;
|
|
2669
|
+
|
|
2670
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2671
|
+
|
|
2672
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2673
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2674
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2675
|
+
return callBind$1(intrinsic);
|
|
2676
|
+
}
|
|
2677
|
+
return intrinsic;
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2429
2680
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2430
2681
|
&& typeof Object.defineProperties === 'function';
|
|
2431
2682
|
|
|
@@ -2443,14 +2694,14 @@ if (typeof Promise !== 'function') {
|
|
|
2443
2694
|
|
|
2444
2695
|
|
|
2445
2696
|
|
|
2446
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2447
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2448
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2697
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2698
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2699
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2449
2700
|
|
|
2450
|
-
var hasSymbols$
|
|
2701
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2451
2702
|
|
|
2452
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2453
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2703
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
2704
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
2454
2705
|
|
|
2455
2706
|
var implementation$3 = function promisify(orig) {
|
|
2456
2707
|
if (typeof orig !== 'function') {
|
|
@@ -2460,7 +2711,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2460
2711
|
throw error;
|
|
2461
2712
|
}
|
|
2462
2713
|
|
|
2463
|
-
if (hasSymbols$
|
|
2714
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
2464
2715
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2465
2716
|
if (typeof customFunction !== 'function') {
|
|
2466
2717
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|