@mjhls/mjh-framework 1.0.691-beta.9 → 1.0.691
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 +5 -8
- package/dist/cjs/{ADInfeed-59543270.js → ADInfeed-3410ab3c.js} +3 -6
- package/dist/cjs/ADSkyscraper.js +5 -8
- package/dist/cjs/ADSponsoredResources.js +5 -8
- package/dist/cjs/ADWebcast.js +5 -8
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/{ADlgInfeed-0a1546ae.js → ADlgInfeed-845aac15.js} +3 -6
- package/dist/cjs/AdSlot.js +4 -4
- package/dist/cjs/AdSlotsProvider.js +2 -23
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +4 -4
- package/dist/cjs/Auth.js +306 -455
- package/dist/cjs/{BlockContent-80b15fac.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 +8 -10
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-390337bf.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 +13 -17
- 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 +2 -2
- package/dist/cjs/MasterDeck.js +10 -14
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +4 -4
- 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 +12 -16
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-56d49a1a.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 +20 -22
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getRelatedArticle.js +416 -5
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
- package/dist/cjs/{index-bc377510.js → index-44c25825.js} +14 -14
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-03ffa84c.js → main-b6c96c8d.js} +67 -37
- 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 +5 -8
- package/dist/esm/{ADInfeed-a15fb981.js → ADInfeed-205cb7a9.js} +3 -6
- package/dist/esm/ADSkyscraper.js +5 -8
- package/dist/esm/ADSponsoredResources.js +5 -8
- package/dist/esm/ADWebcast.js +5 -8
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/{ADlgInfeed-33c8a066.js → ADlgInfeed-e538f17a.js} +3 -6
- package/dist/esm/AdSlot.js +4 -4
- package/dist/esm/AdSlotsProvider.js +3 -24
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +301 -450
- package/dist/esm/{BlockContent-c409aca5.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 +8 -10
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-741c01be.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 +13 -17
- 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 +2 -2
- package/dist/esm/MasterDeck.js +10 -14
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +4 -4
- 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 +12 -16
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-677ed3bd.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 +20 -22
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getRelatedArticle.js +416 -5
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/{index-d1920c2d.js → index-8a757d91.js} +14 -14
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +14 -14
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-35ff7b4f.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 +3 -3
package/dist/esm/Auth.js
CHANGED
|
@@ -15,6 +15,7 @@ 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';
|
|
18
19
|
import useSWR from 'swr';
|
|
19
20
|
import Local from 'passport-local';
|
|
20
21
|
import mysql from 'mysql';
|
|
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1203
|
);
|
|
1203
1204
|
};
|
|
1204
1205
|
|
|
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
|
-
|
|
1406
1206
|
var TOKEN_NAME = 'token';
|
|
1407
1207
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1408
1208
|
|
|
@@ -2043,9 +1843,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2043
1843
|
if (value != null) {
|
|
2044
1844
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
2045
1845
|
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
|
-
}
|
|
2049
1846
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2050
1847
|
} else {
|
|
2051
1848
|
value = value[parts[i]];
|
|
@@ -2078,16 +1875,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
2078
1875
|
return intrinsic;
|
|
2079
1876
|
};
|
|
2080
1877
|
|
|
2081
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
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
|
-
}
|
|
1878
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
2091
1879
|
|
|
2092
1880
|
|
|
2093
1881
|
|
|
@@ -2230,224 +2018,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2230
2018
|
return obj;
|
|
2231
2019
|
};
|
|
2232
2020
|
|
|
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
|
-
|
|
2451
2021
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2452
2022
|
|
|
2453
2023
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2481,10 +2051,16 @@ var IsExtensible = $preventExtensions
|
|
|
2481
2051
|
? function IsExtensible(obj) {
|
|
2482
2052
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2483
2053
|
}
|
|
2484
|
-
: function IsExtensible(obj) {
|
|
2485
|
-
return
|
|
2054
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2055
|
+
return true;
|
|
2486
2056
|
};
|
|
2487
2057
|
|
|
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
|
+
|
|
2488
2064
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2489
2065
|
return a !== a;
|
|
2490
2066
|
};
|
|
@@ -2499,8 +2075,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2499
2075
|
return _isNaN(x) && _isNaN(y);
|
|
2500
2076
|
};
|
|
2501
2077
|
|
|
2502
|
-
var $
|
|
2503
|
-
|
|
2078
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2079
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2504
2080
|
|
|
2505
2081
|
|
|
2506
2082
|
|
|
@@ -2515,14 +2091,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2515
2091
|
|
|
2516
2092
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2517
2093
|
if (Type$1(O) !== 'Object') {
|
|
2518
|
-
throw new $TypeError$
|
|
2094
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2519
2095
|
}
|
|
2520
2096
|
if (!IsPropertyKey(P)) {
|
|
2521
|
-
throw new $TypeError$
|
|
2097
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2522
2098
|
}
|
|
2523
|
-
var oldDesc =
|
|
2524
|
-
var extensible =
|
|
2525
|
-
var immutable = oldDesc && (!oldDesc
|
|
2099
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2100
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2101
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2526
2102
|
if (immutable || !extensible) {
|
|
2527
2103
|
return false;
|
|
2528
2104
|
}
|
|
@@ -2541,13 +2117,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2541
2117
|
);
|
|
2542
2118
|
};
|
|
2543
2119
|
|
|
2544
|
-
var
|
|
2120
|
+
var fnToStr = Function.prototype.toString;
|
|
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%');
|
|
2545
2161
|
|
|
2546
2162
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2547
2163
|
|
|
2548
2164
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2549
2165
|
if (value == null) {
|
|
2550
|
-
throw new $TypeError$
|
|
2166
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2551
2167
|
}
|
|
2552
2168
|
return value;
|
|
2553
2169
|
};
|
|
@@ -2618,6 +2234,241 @@ defineProperties_1(implementation$2, {
|
|
|
2618
2234
|
|
|
2619
2235
|
var object_getownpropertydescriptors = implementation$2;
|
|
2620
2236
|
|
|
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
|
+
|
|
2621
2472
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2622
2473
|
&& typeof Object.defineProperties === 'function';
|
|
2623
2474
|
|
|
@@ -2635,14 +2486,14 @@ if (typeof Promise !== 'function') {
|
|
|
2635
2486
|
|
|
2636
2487
|
|
|
2637
2488
|
|
|
2638
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2639
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2640
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2489
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2490
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2491
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2641
2492
|
|
|
2642
|
-
var hasSymbols$
|
|
2493
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2643
2494
|
|
|
2644
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2645
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2495
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
2496
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
2646
2497
|
|
|
2647
2498
|
var implementation$3 = function promisify(orig) {
|
|
2648
2499
|
if (typeof orig !== 'function') {
|
|
@@ -2652,7 +2503,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2652
2503
|
throw error;
|
|
2653
2504
|
}
|
|
2654
2505
|
|
|
2655
|
-
if (hasSymbols$
|
|
2506
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
2656
2507
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2657
2508
|
if (typeof customFunction !== 'function') {
|
|
2658
2509
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|