@mjhls/mjh-framework 1.0.700 → 1.0.702-beta-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +5 -3
- package/dist/cjs/AD300x250x600.js +5 -3
- package/dist/cjs/AD728x90.js +6 -4
- package/dist/cjs/ADFloatingFooter.js +4 -2
- package/dist/cjs/ADGutter.js +4 -2
- package/dist/cjs/ADSkyscraper.js +4 -2
- package/dist/cjs/ADSponsoredResources.js +4 -2
- package/dist/cjs/ADWebcast.js +4 -2
- package/dist/cjs/ADWelcome.js +4 -2
- package/dist/cjs/AdSlot.js +14 -3
- package/dist/cjs/AdSlotsProvider.js +2 -2
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +4 -4
- package/dist/cjs/Auth.js +455 -306
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-80b15fac.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +6 -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-b2bc3b97.js → Dfp-390337bf.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 +11 -11
- 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 +8 -8
- package/dist/cjs/LeftNav.js +4 -2
- package/dist/cjs/MasterDeck.js +8 -8
- 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 +10 -10
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +10 -10
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-75c51b47.js → SocialSearchComponent-56d49a1a.js} +5 -5
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +5 -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 +4 -4
- package/dist/cjs/View.js +155 -190
- 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 +65 -447
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/{index-2d0a4911.js → index-099d45ae.js} +6 -4
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
- package/dist/cjs/{index-ec02006c.js → index-58dae365.js} +12 -12
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-99536bdc.js → main-03ffa84c.js} +36 -67
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.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 +5 -3
- package/dist/esm/AD300x250x600.js +5 -3
- package/dist/esm/AD728x90.js +6 -4
- package/dist/esm/ADFloatingFooter.js +4 -2
- package/dist/esm/ADGutter.js +4 -2
- package/dist/esm/ADSkyscraper.js +4 -2
- package/dist/esm/ADSponsoredResources.js +4 -2
- package/dist/esm/ADWebcast.js +4 -2
- package/dist/esm/ADWelcome.js +4 -2
- package/dist/esm/AdSlot.js +15 -4
- package/dist/esm/AdSlotsProvider.js +2 -2
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +450 -301
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +6 -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-8a8fca18.js → Dfp-741c01be.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 +11 -11
- 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 +8 -8
- package/dist/esm/LeftNav.js +4 -2
- package/dist/esm/MasterDeck.js +8 -8
- 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 +10 -10
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +10 -10
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-5a9c4628.js → SocialSearchComponent-677ed3bd.js} +5 -5
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +5 -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 +4 -4
- package/dist/esm/View.js +155 -190
- 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 +65 -447
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
- package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
- package/dist/esm/{index-50d0fbc7.js → index-7779a6df.js} +12 -12
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +14 -14
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e2627831.js → main-35ff7b4f.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-f60d8625.js → ADInfeed-38066a36.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-a08f8a4b.js → ADlgInfeed-d95c9027.js} +0 -0
- /package/dist/esm/{ADInfeed-c7e745f1.js → ADInfeed-7b1b2fcb.js} +0 -0
- /package/dist/esm/{ADlgInfeed-6fedd79b.js → ADlgInfeed-2afe92e6.js} +0 -0
package/dist/esm/Auth.js
CHANGED
|
@@ -15,7 +15,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
|
|
|
15
15
|
import './_set-species-cede29f8.js';
|
|
16
16
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
17
17
|
import { u as util } from './util-7700fc59.js';
|
|
18
|
-
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
19
18
|
import useSWR from 'swr';
|
|
20
19
|
import Local from 'passport-local';
|
|
21
20
|
import mysql from 'mysql';
|
|
@@ -1203,6 +1202,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1203
1202
|
);
|
|
1204
1203
|
};
|
|
1205
1204
|
|
|
1205
|
+
/*!
|
|
1206
|
+
* cookie
|
|
1207
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1208
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1209
|
+
* MIT Licensed
|
|
1210
|
+
*/
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Module exports.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
|
|
1217
|
+
var parse_1 = parse;
|
|
1218
|
+
var serialize_1 = serialize;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Module variables.
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
var decode = decodeURIComponent;
|
|
1226
|
+
var encode = encodeURIComponent;
|
|
1227
|
+
var pairSplitRegExp = /; */;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1231
|
+
*
|
|
1232
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1233
|
+
* field-vchar = VCHAR / obs-text
|
|
1234
|
+
* obs-text = %x80-FF
|
|
1235
|
+
*/
|
|
1236
|
+
|
|
1237
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Parse a cookie header.
|
|
1241
|
+
*
|
|
1242
|
+
* Parse the given cookie header string into an object
|
|
1243
|
+
* The object has the various cookies as keys(names) => values
|
|
1244
|
+
*
|
|
1245
|
+
* @param {string} str
|
|
1246
|
+
* @param {object} [options]
|
|
1247
|
+
* @return {object}
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
|
|
1251
|
+
function parse(str, options) {
|
|
1252
|
+
if (typeof str !== 'string') {
|
|
1253
|
+
throw new TypeError('argument str must be a string');
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
var obj = {};
|
|
1257
|
+
var opt = options || {};
|
|
1258
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1259
|
+
var dec = opt.decode || decode;
|
|
1260
|
+
|
|
1261
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1262
|
+
var pair = pairs[i];
|
|
1263
|
+
var eq_idx = pair.indexOf('=');
|
|
1264
|
+
|
|
1265
|
+
// skip things that don't look like key=value
|
|
1266
|
+
if (eq_idx < 0) {
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1271
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1272
|
+
|
|
1273
|
+
// quoted values
|
|
1274
|
+
if ('"' == val[0]) {
|
|
1275
|
+
val = val.slice(1, -1);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
// only assign once
|
|
1279
|
+
if (undefined == obj[key]) {
|
|
1280
|
+
obj[key] = tryDecode(val, dec);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
return obj;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Serialize data into a cookie header.
|
|
1289
|
+
*
|
|
1290
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1291
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1292
|
+
*
|
|
1293
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1294
|
+
* => "foo=bar; httpOnly"
|
|
1295
|
+
*
|
|
1296
|
+
* @param {string} name
|
|
1297
|
+
* @param {string} val
|
|
1298
|
+
* @param {object} [options]
|
|
1299
|
+
* @return {string}
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
|
|
1303
|
+
function serialize(name, val, options) {
|
|
1304
|
+
var opt = options || {};
|
|
1305
|
+
var enc = opt.encode || encode;
|
|
1306
|
+
|
|
1307
|
+
if (typeof enc !== 'function') {
|
|
1308
|
+
throw new TypeError('option encode is invalid');
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1312
|
+
throw new TypeError('argument name is invalid');
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
var value = enc(val);
|
|
1316
|
+
|
|
1317
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1318
|
+
throw new TypeError('argument val is invalid');
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
var str = name + '=' + value;
|
|
1322
|
+
|
|
1323
|
+
if (null != opt.maxAge) {
|
|
1324
|
+
var maxAge = opt.maxAge - 0;
|
|
1325
|
+
|
|
1326
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1327
|
+
throw new TypeError('option maxAge is invalid')
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if (opt.domain) {
|
|
1334
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1335
|
+
throw new TypeError('option domain is invalid');
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
str += '; Domain=' + opt.domain;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (opt.path) {
|
|
1342
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1343
|
+
throw new TypeError('option path is invalid');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
str += '; Path=' + opt.path;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (opt.expires) {
|
|
1350
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1351
|
+
throw new TypeError('option expires is invalid');
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (opt.httpOnly) {
|
|
1358
|
+
str += '; HttpOnly';
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
if (opt.secure) {
|
|
1362
|
+
str += '; Secure';
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (opt.sameSite) {
|
|
1366
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1367
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1368
|
+
|
|
1369
|
+
switch (sameSite) {
|
|
1370
|
+
case true:
|
|
1371
|
+
str += '; SameSite=Strict';
|
|
1372
|
+
break;
|
|
1373
|
+
case 'lax':
|
|
1374
|
+
str += '; SameSite=Lax';
|
|
1375
|
+
break;
|
|
1376
|
+
case 'strict':
|
|
1377
|
+
str += '; SameSite=Strict';
|
|
1378
|
+
break;
|
|
1379
|
+
case 'none':
|
|
1380
|
+
str += '; SameSite=None';
|
|
1381
|
+
break;
|
|
1382
|
+
default:
|
|
1383
|
+
throw new TypeError('option sameSite is invalid');
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
return str;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Try decoding a string using a decoding function.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {string} str
|
|
1394
|
+
* @param {function} decode
|
|
1395
|
+
* @private
|
|
1396
|
+
*/
|
|
1397
|
+
|
|
1398
|
+
function tryDecode(str, decode) {
|
|
1399
|
+
try {
|
|
1400
|
+
return decode(str);
|
|
1401
|
+
} catch (e) {
|
|
1402
|
+
return str;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1206
1406
|
var TOKEN_NAME = 'token';
|
|
1207
1407
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1208
1408
|
|
|
@@ -1843,6 +2043,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1843
2043
|
if (value != null) {
|
|
1844
2044
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1845
2045
|
var desc = $gOPD(value, parts[i]);
|
|
2046
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2047
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2048
|
+
}
|
|
1846
2049
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1847
2050
|
} else {
|
|
1848
2051
|
value = value[parts[i]];
|
|
@@ -1875,7 +2078,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1875
2078
|
return intrinsic;
|
|
1876
2079
|
};
|
|
1877
2080
|
|
|
1878
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
2081
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2082
|
+
|
|
2083
|
+
if ($defineProperty) {
|
|
2084
|
+
try {
|
|
2085
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
2086
|
+
} catch (e) {
|
|
2087
|
+
// IE 8 has a broken defineProperty
|
|
2088
|
+
$defineProperty = null;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
1879
2091
|
|
|
1880
2092
|
|
|
1881
2093
|
|
|
@@ -2018,6 +2230,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2018
2230
|
return obj;
|
|
2019
2231
|
};
|
|
2020
2232
|
|
|
2233
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2234
|
+
if ($gOPD$1) {
|
|
2235
|
+
try {
|
|
2236
|
+
$gOPD$1([], 'length');
|
|
2237
|
+
} catch (e) {
|
|
2238
|
+
// IE 8 has a broken gOPD
|
|
2239
|
+
$gOPD$1 = null;
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2244
|
+
|
|
2245
|
+
var $Array = GetIntrinsic('%Array%');
|
|
2246
|
+
|
|
2247
|
+
// eslint-disable-next-line global-require
|
|
2248
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2249
|
+
|
|
2250
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2251
|
+
|
|
2252
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2253
|
+
return toStr$4(argument) === '[object Array]';
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2257
|
+
|
|
2258
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2259
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
var regexExec = RegExp.prototype.exec;
|
|
2263
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2264
|
+
|
|
2265
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2266
|
+
try {
|
|
2267
|
+
var lastIndex = value.lastIndex;
|
|
2268
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2269
|
+
|
|
2270
|
+
regexExec.call(value);
|
|
2271
|
+
return true;
|
|
2272
|
+
} catch (e) {
|
|
2273
|
+
return false;
|
|
2274
|
+
} finally {
|
|
2275
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2276
|
+
}
|
|
2277
|
+
};
|
|
2278
|
+
var toStr$5 = Object.prototype.toString;
|
|
2279
|
+
var regexClass = '[object RegExp]';
|
|
2280
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2281
|
+
|
|
2282
|
+
var isRegex = function isRegex(value) {
|
|
2283
|
+
if (!value || typeof value !== 'object') {
|
|
2284
|
+
return false;
|
|
2285
|
+
}
|
|
2286
|
+
if (!hasToStringTag) {
|
|
2287
|
+
return toStr$5.call(value) === regexClass;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2291
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2292
|
+
if (!hasLastIndexDataProperty) {
|
|
2293
|
+
return false;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
return tryRegexExecCall(value);
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2300
|
+
|
|
2301
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2302
|
+
|
|
2303
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2310
|
+
|
|
2311
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
2312
|
+
if (!argument || typeof argument !== 'object') {
|
|
2313
|
+
return false;
|
|
2314
|
+
}
|
|
2315
|
+
if ($match) {
|
|
2316
|
+
var isRegExp = argument[$match];
|
|
2317
|
+
if (typeof isRegExp !== 'undefined') {
|
|
2318
|
+
return ToBoolean(isRegExp);
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
return isRegex(argument);
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
var fnToStr = Function.prototype.toString;
|
|
2325
|
+
|
|
2326
|
+
var constructorRegex = /^\s*class\b/;
|
|
2327
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2328
|
+
try {
|
|
2329
|
+
var fnStr = fnToStr.call(value);
|
|
2330
|
+
return constructorRegex.test(fnStr);
|
|
2331
|
+
} catch (e) {
|
|
2332
|
+
return false; // not a function
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2337
|
+
try {
|
|
2338
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2339
|
+
fnToStr.call(value);
|
|
2340
|
+
return true;
|
|
2341
|
+
} catch (e) {
|
|
2342
|
+
return false;
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
var toStr$6 = Object.prototype.toString;
|
|
2346
|
+
var fnClass = '[object Function]';
|
|
2347
|
+
var genClass = '[object GeneratorFunction]';
|
|
2348
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2349
|
+
|
|
2350
|
+
var isCallable = function isCallable(value) {
|
|
2351
|
+
if (!value) { return false; }
|
|
2352
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2353
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2354
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2355
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2356
|
+
var strClass = toStr$6.call(value);
|
|
2357
|
+
return strClass === fnClass || strClass === genClass;
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2361
|
+
|
|
2362
|
+
var IsCallable = isCallable;
|
|
2363
|
+
|
|
2364
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2371
|
+
|
|
2372
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2373
|
+
if (Type$1(Obj) !== 'Object') {
|
|
2374
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
var desc = {};
|
|
2378
|
+
if (src(Obj, 'enumerable')) {
|
|
2379
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2380
|
+
}
|
|
2381
|
+
if (src(Obj, 'configurable')) {
|
|
2382
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2383
|
+
}
|
|
2384
|
+
if (src(Obj, 'value')) {
|
|
2385
|
+
desc['[[Value]]'] = Obj.value;
|
|
2386
|
+
}
|
|
2387
|
+
if (src(Obj, 'writable')) {
|
|
2388
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2389
|
+
}
|
|
2390
|
+
if (src(Obj, 'get')) {
|
|
2391
|
+
var getter = Obj.get;
|
|
2392
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2393
|
+
throw new TypeError('getter must be a function');
|
|
2394
|
+
}
|
|
2395
|
+
desc['[[Get]]'] = getter;
|
|
2396
|
+
}
|
|
2397
|
+
if (src(Obj, 'set')) {
|
|
2398
|
+
var setter = Obj.set;
|
|
2399
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2400
|
+
throw new $TypeError$2('setter must be a function');
|
|
2401
|
+
}
|
|
2402
|
+
desc['[[Set]]'] = setter;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2406
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2407
|
+
}
|
|
2408
|
+
return desc;
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2426
|
+
|
|
2427
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2428
|
+
if (Type$1(O) !== 'Object') {
|
|
2429
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2430
|
+
}
|
|
2431
|
+
if (!IsPropertyKey(P)) {
|
|
2432
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2433
|
+
}
|
|
2434
|
+
if (!src(O, P)) {
|
|
2435
|
+
return void 0;
|
|
2436
|
+
}
|
|
2437
|
+
if (!getOwnPropertyDescriptor) {
|
|
2438
|
+
// ES3 / IE 8 fallback
|
|
2439
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
2440
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2441
|
+
return {
|
|
2442
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2443
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2444
|
+
'[[Value]]': O[P],
|
|
2445
|
+
'[[Writable]]': true
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2449
|
+
};
|
|
2450
|
+
|
|
2021
2451
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2022
2452
|
|
|
2023
2453
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2051,16 +2481,10 @@ var IsExtensible = $preventExtensions
|
|
|
2051
2481
|
? function IsExtensible(obj) {
|
|
2052
2482
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2053
2483
|
}
|
|
2054
|
-
: function IsExtensible(obj) {
|
|
2055
|
-
return
|
|
2484
|
+
: function IsExtensible(obj) {
|
|
2485
|
+
return !isPrimitive(obj);
|
|
2056
2486
|
};
|
|
2057
2487
|
|
|
2058
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2059
|
-
|
|
2060
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2061
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2062
|
-
};
|
|
2063
|
-
|
|
2064
2488
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2065
2489
|
return a !== a;
|
|
2066
2490
|
};
|
|
@@ -2075,8 +2499,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2075
2499
|
return _isNaN(x) && _isNaN(y);
|
|
2076
2500
|
};
|
|
2077
2501
|
|
|
2078
|
-
var $
|
|
2079
|
-
|
|
2502
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2503
|
+
|
|
2080
2504
|
|
|
2081
2505
|
|
|
2082
2506
|
|
|
@@ -2091,14 +2515,14 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
2091
2515
|
|
|
2092
2516
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2093
2517
|
if (Type$1(O) !== 'Object') {
|
|
2094
|
-
throw new $TypeError$
|
|
2518
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2095
2519
|
}
|
|
2096
2520
|
if (!IsPropertyKey(P)) {
|
|
2097
|
-
throw new $TypeError$
|
|
2521
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2098
2522
|
}
|
|
2099
|
-
var oldDesc =
|
|
2100
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
2101
|
-
var immutable = oldDesc && (!oldDesc
|
|
2523
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2524
|
+
var extensible = !oldDesc || IsExtensible(O);
|
|
2525
|
+
var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
|
|
2102
2526
|
if (immutable || !extensible) {
|
|
2103
2527
|
return false;
|
|
2104
2528
|
}
|
|
@@ -2117,53 +2541,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2117
2541
|
);
|
|
2118
2542
|
};
|
|
2119
2543
|
|
|
2120
|
-
var
|
|
2121
|
-
|
|
2122
|
-
var constructorRegex = /^\s*class\b/;
|
|
2123
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2124
|
-
try {
|
|
2125
|
-
var fnStr = fnToStr.call(value);
|
|
2126
|
-
return constructorRegex.test(fnStr);
|
|
2127
|
-
} catch (e) {
|
|
2128
|
-
return false; // not a function
|
|
2129
|
-
}
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2133
|
-
try {
|
|
2134
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2135
|
-
fnToStr.call(value);
|
|
2136
|
-
return true;
|
|
2137
|
-
} catch (e) {
|
|
2138
|
-
return false;
|
|
2139
|
-
}
|
|
2140
|
-
};
|
|
2141
|
-
var toStr$4 = Object.prototype.toString;
|
|
2142
|
-
var fnClass = '[object Function]';
|
|
2143
|
-
var genClass = '[object GeneratorFunction]';
|
|
2144
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2145
|
-
|
|
2146
|
-
var isCallable = function isCallable(value) {
|
|
2147
|
-
if (!value) { return false; }
|
|
2148
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2149
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2150
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2151
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2152
|
-
var strClass = toStr$4.call(value);
|
|
2153
|
-
return strClass === fnClass || strClass === genClass;
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2157
|
-
|
|
2158
|
-
var IsCallable = isCallable;
|
|
2159
|
-
|
|
2160
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2544
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2161
2545
|
|
|
2162
2546
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2163
2547
|
|
|
2164
2548
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2165
2549
|
if (value == null) {
|
|
2166
|
-
throw new $TypeError$
|
|
2550
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2167
2551
|
}
|
|
2168
2552
|
return value;
|
|
2169
2553
|
};
|
|
@@ -2234,241 +2618,6 @@ defineProperties_1(implementation$2, {
|
|
|
2234
2618
|
|
|
2235
2619
|
var object_getownpropertydescriptors = implementation$2;
|
|
2236
2620
|
|
|
2237
|
-
/* globals
|
|
2238
|
-
Atomics,
|
|
2239
|
-
SharedArrayBuffer,
|
|
2240
|
-
*/
|
|
2241
|
-
|
|
2242
|
-
var undefined$2;
|
|
2243
|
-
|
|
2244
|
-
var $TypeError$4 = TypeError;
|
|
2245
|
-
|
|
2246
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2247
|
-
if ($gOPD$3) {
|
|
2248
|
-
try {
|
|
2249
|
-
$gOPD$3({}, '');
|
|
2250
|
-
} catch (e) {
|
|
2251
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2256
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
2257
|
-
? (function () {
|
|
2258
|
-
try {
|
|
2259
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2260
|
-
arguments.callee; // IE 8 does not throw here
|
|
2261
|
-
return throwTypeError$1;
|
|
2262
|
-
} catch (calleeThrows) {
|
|
2263
|
-
try {
|
|
2264
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2265
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
2266
|
-
} catch (gOPDthrows) {
|
|
2267
|
-
return throwTypeError$1;
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
}())
|
|
2271
|
-
: throwTypeError$1;
|
|
2272
|
-
|
|
2273
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2274
|
-
|
|
2275
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2276
|
-
var generatorFunction$1 = undefined$2;
|
|
2277
|
-
var asyncFunction$1 = undefined$2;
|
|
2278
|
-
var asyncGenFunction$1 = undefined$2;
|
|
2279
|
-
|
|
2280
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2281
|
-
|
|
2282
|
-
var INTRINSICS$1 = {
|
|
2283
|
-
'%Array%': Array,
|
|
2284
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2285
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2286
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2287
|
-
'%ArrayPrototype%': Array.prototype,
|
|
2288
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2289
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2290
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2291
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
2292
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2293
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
2294
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
2295
|
-
'%AsyncGenerator%': undefined$2,
|
|
2296
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2297
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2298
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
2299
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2300
|
-
'%Boolean%': Boolean,
|
|
2301
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
2302
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2303
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2304
|
-
'%Date%': Date,
|
|
2305
|
-
'%DatePrototype%': Date.prototype,
|
|
2306
|
-
'%decodeURI%': decodeURI,
|
|
2307
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2308
|
-
'%encodeURI%': encodeURI,
|
|
2309
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2310
|
-
'%Error%': Error,
|
|
2311
|
-
'%ErrorPrototype%': Error.prototype,
|
|
2312
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2313
|
-
'%EvalError%': EvalError,
|
|
2314
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2315
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2316
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2317
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2318
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2319
|
-
'%Function%': Function,
|
|
2320
|
-
'%FunctionPrototype%': Function.prototype,
|
|
2321
|
-
'%Generator%': undefined$2,
|
|
2322
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
2323
|
-
'%GeneratorPrototype%': undefined$2,
|
|
2324
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2325
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2326
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2327
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2328
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2329
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2330
|
-
'%isFinite%': isFinite,
|
|
2331
|
-
'%isNaN%': isNaN,
|
|
2332
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2333
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2334
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2335
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2336
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2337
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2338
|
-
'%Math%': Math,
|
|
2339
|
-
'%Number%': Number,
|
|
2340
|
-
'%NumberPrototype%': Number.prototype,
|
|
2341
|
-
'%Object%': Object,
|
|
2342
|
-
'%ObjectPrototype%': Object.prototype,
|
|
2343
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
2344
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2345
|
-
'%parseFloat%': parseFloat,
|
|
2346
|
-
'%parseInt%': parseInt,
|
|
2347
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2348
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2349
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2350
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2351
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2352
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2353
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2354
|
-
'%RangeError%': RangeError,
|
|
2355
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2356
|
-
'%ReferenceError%': ReferenceError,
|
|
2357
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2358
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2359
|
-
'%RegExp%': RegExp,
|
|
2360
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
2361
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2362
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2363
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2364
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2365
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2366
|
-
'%String%': String,
|
|
2367
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2368
|
-
'%StringPrototype%': String.prototype,
|
|
2369
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2370
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2371
|
-
'%SyntaxError%': SyntaxError,
|
|
2372
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2373
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2374
|
-
'%TypedArray%': TypedArray$1,
|
|
2375
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2376
|
-
'%TypeError%': $TypeError$4,
|
|
2377
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2378
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2379
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2380
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2381
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2382
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2383
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2384
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2385
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2386
|
-
'%URIError%': URIError,
|
|
2387
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
2388
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2389
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2390
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2391
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2392
|
-
};
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2396
|
-
|
|
2397
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2398
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2399
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2400
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
2401
|
-
var result = [];
|
|
2402
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2403
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2404
|
-
});
|
|
2405
|
-
return result;
|
|
2406
|
-
};
|
|
2407
|
-
/* end adaptation */
|
|
2408
|
-
|
|
2409
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2410
|
-
if (!(name in INTRINSICS$1)) {
|
|
2411
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2415
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2416
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
return INTRINSICS$1[name];
|
|
2420
|
-
};
|
|
2421
|
-
|
|
2422
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2423
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2424
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2425
|
-
}
|
|
2426
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2427
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
var parts = stringToPath$1(name);
|
|
2431
|
-
|
|
2432
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2433
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
2434
|
-
if (value != null) {
|
|
2435
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2436
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
2437
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
2438
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2439
|
-
}
|
|
2440
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2441
|
-
} else {
|
|
2442
|
-
value = value[parts[i]];
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
|
-
return value;
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2450
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2451
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2452
|
-
|
|
2453
|
-
var callBind$1 = function callBind() {
|
|
2454
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
2455
|
-
};
|
|
2456
|
-
|
|
2457
|
-
var apply$1 = function applyBind() {
|
|
2458
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2459
|
-
};
|
|
2460
|
-
callBind$1.apply = apply$1;
|
|
2461
|
-
|
|
2462
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2463
|
-
|
|
2464
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2465
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2466
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2467
|
-
return callBind$1(intrinsic);
|
|
2468
|
-
}
|
|
2469
|
-
return intrinsic;
|
|
2470
|
-
};
|
|
2471
|
-
|
|
2472
2621
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2473
2622
|
&& typeof Object.defineProperties === 'function';
|
|
2474
2623
|
|
|
@@ -2486,14 +2635,14 @@ if (typeof Promise !== 'function') {
|
|
|
2486
2635
|
|
|
2487
2636
|
|
|
2488
2637
|
|
|
2489
|
-
var $slice = callBound
|
|
2490
|
-
var $concat$1 = callBound
|
|
2491
|
-
var $forEach = callBound
|
|
2638
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2639
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2640
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2492
2641
|
|
|
2493
|
-
var hasSymbols$
|
|
2642
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2494
2643
|
|
|
2495
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2496
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2644
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2645
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2497
2646
|
|
|
2498
2647
|
var implementation$3 = function promisify(orig) {
|
|
2499
2648
|
if (typeof orig !== 'function') {
|
|
@@ -2503,7 +2652,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2503
2652
|
throw error;
|
|
2504
2653
|
}
|
|
2505
2654
|
|
|
2506
|
-
if (hasSymbols$
|
|
2655
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2507
2656
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2508
2657
|
if (typeof customFunction !== 'function') {
|
|
2509
2658
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|