@mjhls/mjh-framework 1.0.326 → 1.0.328
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 +171 -171
- package/dist/cjs/{ADInfeed-b042a194.js → ADInfeed-d58f7a88.js} +1 -1
- package/dist/cjs/{AdSlot-c5bff604.js → AdSlot-c8f07bcf.js} +3 -3
- package/dist/cjs/DeckContent.js +18 -18
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-9ede68c7.js → Dfp-fc16f64b.js} +2 -2
- package/dist/cjs/{Figure-a47ec3a7.js → Figure-6805ef02.js} +1 -1
- package/dist/cjs/{GridContent-9f212ec5.js → GridContent-70d80f27.js} +12 -12
- package/dist/cjs/GridContent.js +11 -11
- package/dist/cjs/GroupDeck.js +4 -4
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +16 -16
- package/dist/cjs/{Normal-c85aee96.js → Normal-cc2f9b2f.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/{TaxonomyCard-e36602e8.js → TaxonomyCard-0b6bc8db.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{debounce-528ad412.js → debounce-ba3eaee2.js} +6 -4
- package/dist/cjs/{get-3b23d857.js → get-de2660c3.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index.js +858 -1213
- package/dist/cjs/{inherits-7548e3e8.js → inherits-d1613ef1.js} +1 -1
- package/dist/cjs/{main-987c23c6.js → main-6a82a5d2.js} +35 -66
- package/dist/cjs/{promise-3b44b2a3.js → promise-60431c75.js} +2 -2
- package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-82ec1016.js} +1 -1
- package/dist/cjs/{visibility-sensor-c2ccc22d.js → visibility-sensor-b72d9527.js} +2 -4
- package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-c42432d8.js} +1 -1
- package/dist/esm/{AdSlot-8946358f.js → AdSlot-4a85e252.js} +3 -3
- package/dist/esm/DeckContent.js +18 -18
- package/dist/esm/DeckQueue.js +8 -8
- package/dist/esm/{Dfp-9293acfb.js → Dfp-1cde9792.js} +2 -2
- package/dist/esm/{Figure-584ac0c8.js → Figure-ddfa279d.js} +1 -1
- package/dist/esm/{GridContent-13be42a1.js → GridContent-55e6512a.js} +12 -12
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/GroupDeck.js +4 -4
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/{Normal-cbddc3c0.js → Normal-63478e2d.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/{TaxonomyCard-89325080.js → TaxonomyCard-c036f1c3.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +6 -6
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{debounce-702eb224.js → debounce-93ab8f80.js} +6 -4
- package/dist/esm/{get-36d03764.js → get-9c285a85.js} +1 -1
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index.js +861 -1216
- package/dist/esm/{inherits-4b85034c.js → inherits-424c89e9.js} +1 -1
- package/dist/esm/{main-cb86f95d.js → main-9ae8991d.js} +34 -65
- package/dist/esm/{promise-86cb8313.js → promise-e4a5eb9f.js} +2 -2
- package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-ec38f5fe.js} +1 -1
- package/dist/esm/{visibility-sensor-3cea5efb.js → visibility-sensor-336093e1.js} +2 -4
- package/package.json +104 -104
package/dist/cjs/index.js
CHANGED
|
@@ -7,11 +7,11 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
8
8
|
var _toObject = require('./_to-object-329a650b.js');
|
|
9
9
|
require('./web.dom.iterable-8b02d65e.js');
|
|
10
|
-
var debounce = require('./debounce-
|
|
11
|
-
var main = require('./main-
|
|
12
|
-
var toConsumableArray = require('./toConsumableArray-
|
|
10
|
+
var debounce = require('./debounce-ba3eaee2.js');
|
|
11
|
+
var main = require('./main-6a82a5d2.js');
|
|
12
|
+
var toConsumableArray = require('./toConsumableArray-82ec1016.js');
|
|
13
13
|
var _extends$2 = require('./extends-4c2285ff.js');
|
|
14
|
-
var inherits$2 = require('./inherits-
|
|
14
|
+
var inherits$2 = require('./inherits-d1613ef1.js');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var React__default = _interopDefault(React);
|
|
17
17
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
@@ -19,25 +19,25 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
19
19
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
20
20
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
21
21
|
require('react-bootstrap/Card');
|
|
22
|
-
var visibilitySensor = require('./visibility-sensor-
|
|
22
|
+
var visibilitySensor = require('./visibility-sensor-b72d9527.js');
|
|
23
23
|
var Link = _interopDefault(require('next/link'));
|
|
24
24
|
var Router = require('next/router');
|
|
25
25
|
var Router__default = _interopDefault(Router);
|
|
26
26
|
require('react-dom');
|
|
27
|
-
var index = require('./index-
|
|
27
|
+
var index = require('./index-be0c82be.js');
|
|
28
28
|
require('./index-fa0fb52c.js');
|
|
29
29
|
var entities = require('./entities-310b46ee.js');
|
|
30
30
|
var slicedToArray = require('./slicedToArray-879ab2fb.js');
|
|
31
|
-
var AdSlot = require('./AdSlot-
|
|
32
|
-
require('./promise-
|
|
33
|
-
require('./ADInfeed-
|
|
31
|
+
var AdSlot = require('./AdSlot-c8f07bcf.js');
|
|
32
|
+
require('./promise-60431c75.js');
|
|
33
|
+
require('./ADInfeed-d58f7a88.js');
|
|
34
34
|
var DeckContent = require('./DeckContent.js');
|
|
35
|
-
var get$1 = require('./get-
|
|
36
|
-
var GridContent = require('./GridContent-
|
|
35
|
+
var get$1 = require('./get-de2660c3.js');
|
|
36
|
+
var GridContent = require('./GridContent-70d80f27.js');
|
|
37
37
|
var DeckQueue = require('./DeckQueue.js');
|
|
38
38
|
require('react-bootstrap/Media');
|
|
39
39
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
40
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
40
|
+
var TaxonomyCard = require('./TaxonomyCard-0b6bc8db.js');
|
|
41
41
|
require('./react-social-icons-cd0d9d3b.js');
|
|
42
42
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
43
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
@@ -53,7 +53,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
53
53
|
require('react-bootstrap/Badge');
|
|
54
54
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
55
55
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
56
|
-
var TemplateNormal = require('./Normal-
|
|
56
|
+
var TemplateNormal = require('./Normal-cc2f9b2f.js');
|
|
57
57
|
require('react-bootstrap/ListGroup');
|
|
58
58
|
var Head = _interopDefault(require('next/head'));
|
|
59
59
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -74,6 +74,7 @@ var Ustream = require('./Ustream-f5f53782.js');
|
|
|
74
74
|
var useSWR = _interopDefault(require('swr'));
|
|
75
75
|
var Local = _interopDefault(require('passport-local'));
|
|
76
76
|
var mysql = _interopDefault(require('mysql'));
|
|
77
|
+
var md5 = _interopDefault(require('md5'));
|
|
77
78
|
|
|
78
79
|
var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
79
80
|
//! moment-timezone.js
|
|
@@ -2153,7 +2154,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2153
2154
|
)
|
|
2154
2155
|
)
|
|
2155
2156
|
),
|
|
2156
|
-
main.
|
|
2157
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2157
2158
|
'div',
|
|
2158
2159
|
{ style: { margin: '0 auto' } },
|
|
2159
2160
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2544,7 +2545,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2544
2545
|
)
|
|
2545
2546
|
)
|
|
2546
2547
|
),
|
|
2547
|
-
main.
|
|
2548
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2548
2549
|
'div',
|
|
2549
2550
|
{ style: { margin: '0 auto' } },
|
|
2550
2551
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2833,7 +2834,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2833
2834
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2834
2835
|
|
|
2835
2836
|
var mobileView = false;
|
|
2836
|
-
if (main.
|
|
2837
|
+
if (main.main_36) {
|
|
2837
2838
|
pos = 'rect1-mobile';
|
|
2838
2839
|
mobileView = true;
|
|
2839
2840
|
}
|
|
@@ -2865,7 +2866,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2865
2866
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2866
2867
|
|
|
2867
2868
|
var mobileView = false;
|
|
2868
|
-
if (main.
|
|
2869
|
+
if (main.main_36) {
|
|
2869
2870
|
pos = 'rect2-mobile';
|
|
2870
2871
|
mobileView = true;
|
|
2871
2872
|
}
|
|
@@ -2963,14 +2964,14 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2963
2964
|
publication_url: targeting.publication_url
|
|
2964
2965
|
};
|
|
2965
2966
|
|
|
2966
|
-
var _useState = React.useState(
|
|
2967
|
+
var _useState = React.useState(false),
|
|
2967
2968
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2968
2969
|
widthFlag = _useState2[0],
|
|
2969
2970
|
setWidthFlag = _useState2[1];
|
|
2970
2971
|
|
|
2971
2972
|
React.useEffect(function () {
|
|
2972
|
-
if (window && window.innerWidth
|
|
2973
|
-
setWidthFlag(
|
|
2973
|
+
if (window && window.innerWidth > minScreenWidth) {
|
|
2974
|
+
setWidthFlag(true);
|
|
2974
2975
|
}
|
|
2975
2976
|
}, [minScreenWidth]);
|
|
2976
2977
|
|
|
@@ -3219,16 +3220,41 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
3219
3220
|
publication_url: targeting.publication_url
|
|
3220
3221
|
};
|
|
3221
3222
|
|
|
3223
|
+
var collapseAd = function collapseAd() {
|
|
3224
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3225
|
+
parent.style.height = '0%';
|
|
3226
|
+
parent.style.width = '0%';
|
|
3227
|
+
parent.style.display = 'none';
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
3231
|
+
if (isFound) {
|
|
3232
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3233
|
+
parent.style.display = 'block';
|
|
3234
|
+
} else {
|
|
3235
|
+
collapseAd();
|
|
3236
|
+
}
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3222
3239
|
return React__default.createElement(
|
|
3223
3240
|
React__default.Fragment,
|
|
3224
3241
|
null,
|
|
3225
3242
|
React__default.createElement(
|
|
3226
3243
|
'div',
|
|
3227
|
-
{ className: 'sponsored-ad-wrapper' },
|
|
3244
|
+
{ id: 'sponsored-ad-wrapper', className: 'sponsored-ad-wrapper' },
|
|
3228
3245
|
React__default.createElement(
|
|
3229
3246
|
'div',
|
|
3230
3247
|
{ className: 'sponsored-ad' },
|
|
3231
|
-
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
3248
|
+
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
3249
|
+
className: className,
|
|
3250
|
+
slotId: slotId,
|
|
3251
|
+
networkID: networkID,
|
|
3252
|
+
sizes: sizes,
|
|
3253
|
+
adUnit: adUnit,
|
|
3254
|
+
targeting: adTargeting,
|
|
3255
|
+
refreshFlag: false,
|
|
3256
|
+
checkIsAdFound: checkIsAdFound
|
|
3257
|
+
})
|
|
3232
3258
|
)
|
|
3233
3259
|
)
|
|
3234
3260
|
);
|
|
@@ -3297,18 +3323,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3297
3323
|
);
|
|
3298
3324
|
};
|
|
3299
3325
|
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3326
|
+
var isArray = Array.isArray;
|
|
3327
|
+
var keyList = Object.keys;
|
|
3328
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3303
3329
|
|
|
3304
3330
|
var fastDeepEqual = function equal(a, b) {
|
|
3305
3331
|
if (a === b) return true;
|
|
3306
3332
|
|
|
3307
3333
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3308
|
-
|
|
3334
|
+
var arrA = isArray(a)
|
|
3335
|
+
, arrB = isArray(b)
|
|
3336
|
+
, i
|
|
3337
|
+
, length
|
|
3338
|
+
, key;
|
|
3309
3339
|
|
|
3310
|
-
|
|
3311
|
-
if (Array.isArray(a)) {
|
|
3340
|
+
if (arrA && arrB) {
|
|
3312
3341
|
length = a.length;
|
|
3313
3342
|
if (length != b.length) return false;
|
|
3314
3343
|
for (i = length; i-- !== 0;)
|
|
@@ -3316,29 +3345,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3316
3345
|
return true;
|
|
3317
3346
|
}
|
|
3318
3347
|
|
|
3348
|
+
if (arrA != arrB) return false;
|
|
3319
3349
|
|
|
3350
|
+
var dateA = a instanceof Date
|
|
3351
|
+
, dateB = b instanceof Date;
|
|
3352
|
+
if (dateA != dateB) return false;
|
|
3353
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3320
3354
|
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
if (
|
|
3355
|
+
var regexpA = a instanceof RegExp
|
|
3356
|
+
, regexpB = b instanceof RegExp;
|
|
3357
|
+
if (regexpA != regexpB) return false;
|
|
3358
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3324
3359
|
|
|
3325
|
-
keys =
|
|
3360
|
+
var keys = keyList(a);
|
|
3326
3361
|
length = keys.length;
|
|
3327
|
-
|
|
3362
|
+
|
|
3363
|
+
if (length !== keyList(b).length)
|
|
3364
|
+
return false;
|
|
3328
3365
|
|
|
3329
3366
|
for (i = length; i-- !== 0;)
|
|
3330
|
-
if (!
|
|
3367
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3331
3368
|
|
|
3332
3369
|
for (i = length; i-- !== 0;) {
|
|
3333
|
-
|
|
3334
|
-
|
|
3370
|
+
key = keys[i];
|
|
3335
3371
|
if (!equal(a[key], b[key])) return false;
|
|
3336
3372
|
}
|
|
3337
3373
|
|
|
3338
3374
|
return true;
|
|
3339
3375
|
}
|
|
3340
3376
|
|
|
3341
|
-
// true if both NaN, false otherwise
|
|
3342
3377
|
return a!==a && b!==b;
|
|
3343
3378
|
};
|
|
3344
3379
|
|
|
@@ -4361,7 +4396,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4361
4396
|
var base = '', array = false, braces = ['{', '}'];
|
|
4362
4397
|
|
|
4363
4398
|
// Make Array say that they are Array
|
|
4364
|
-
if (isArray(value)) {
|
|
4399
|
+
if (isArray$1(value)) {
|
|
4365
4400
|
array = true;
|
|
4366
4401
|
braces = ['[', ']'];
|
|
4367
4402
|
}
|
|
@@ -4540,7 +4575,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4540
4575
|
|
|
4541
4576
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4542
4577
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4543
|
-
function isArray(ar) {
|
|
4578
|
+
function isArray$1(ar) {
|
|
4544
4579
|
return Array.isArray(ar);
|
|
4545
4580
|
}
|
|
4546
4581
|
|
|
@@ -4667,7 +4702,7 @@ var util = {
|
|
|
4667
4702
|
isNullOrUndefined: isNullOrUndefined,
|
|
4668
4703
|
isNull: isNull,
|
|
4669
4704
|
isBoolean: isBoolean,
|
|
4670
|
-
isArray: isArray,
|
|
4705
|
+
isArray: isArray$1,
|
|
4671
4706
|
inspect: inspect,
|
|
4672
4707
|
deprecate: deprecate,
|
|
4673
4708
|
format: format,
|
|
@@ -5334,235 +5369,199 @@ module.exports = exports['default'];
|
|
|
5334
5369
|
|
|
5335
5370
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5336
5371
|
|
|
5337
|
-
function
|
|
5338
|
-
|
|
5339
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5340
|
-
|
|
5341
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5342
|
-
|
|
5343
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5344
|
-
|
|
5345
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5346
|
-
|
|
5347
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5348
|
-
|
|
5349
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5350
|
-
|
|
5351
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5372
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5352
5373
|
|
|
5353
|
-
function
|
|
5354
|
-
|
|
5355
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5374
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5356
5375
|
|
|
5357
|
-
function
|
|
5376
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5358
5377
|
|
|
5359
|
-
function
|
|
5378
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5360
5379
|
|
|
5361
|
-
function
|
|
5380
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5362
5381
|
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
*
|
|
5366
|
-
*
|
|
5367
|
-
* @param {Object}
|
|
5368
|
-
* @param {Object} props
|
|
5382
|
+
/**
|
|
5383
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5384
|
+
*
|
|
5385
|
+
* @param {Object} prevProps
|
|
5386
|
+
* @param {Object} props
|
|
5369
5387
|
*/
|
|
5370
|
-
|
|
5371
5388
|
function shouldUpdateVideo(prevProps, props) {
|
|
5372
5389
|
// A changing video should always trigger an update
|
|
5373
5390
|
if (prevProps.videoId !== props.videoId) {
|
|
5374
5391
|
return true;
|
|
5375
|
-
}
|
|
5376
|
-
// update.
|
|
5377
|
-
|
|
5392
|
+
}
|
|
5378
5393
|
|
|
5394
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5395
|
+
// update.
|
|
5379
5396
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5380
5397
|
var vars = props.opts.playerVars || {};
|
|
5398
|
+
|
|
5381
5399
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5382
5400
|
}
|
|
5383
|
-
/**
|
|
5384
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5385
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5386
|
-
* player reset is necessary.
|
|
5387
|
-
*
|
|
5388
|
-
* @param {Object} opts
|
|
5389
|
-
*/
|
|
5390
|
-
|
|
5391
5401
|
|
|
5402
|
+
/**
|
|
5403
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5404
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5405
|
+
* player reset is necessary.
|
|
5406
|
+
*
|
|
5407
|
+
* @param {Object} opts
|
|
5408
|
+
*/
|
|
5392
5409
|
function filterResetOptions(opts) {
|
|
5393
|
-
return
|
|
5394
|
-
playerVars:
|
|
5410
|
+
return _extends({}, opts, {
|
|
5411
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5395
5412
|
autoplay: 0,
|
|
5396
5413
|
start: 0,
|
|
5397
5414
|
end: 0
|
|
5398
5415
|
})
|
|
5399
5416
|
});
|
|
5400
5417
|
}
|
|
5401
|
-
/**
|
|
5402
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5403
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5404
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5405
|
-
* those.
|
|
5406
|
-
*
|
|
5407
|
-
* @param {Object} prevProps
|
|
5408
|
-
* @param {Object} props
|
|
5409
|
-
*/
|
|
5410
|
-
|
|
5411
5418
|
|
|
5419
|
+
/**
|
|
5420
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5421
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5422
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5423
|
+
* those.
|
|
5424
|
+
*
|
|
5425
|
+
* @param {Object} prevProps
|
|
5426
|
+
* @param {Object} props
|
|
5427
|
+
*/
|
|
5412
5428
|
function shouldResetPlayer(prevProps, props) {
|
|
5413
5429
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5414
5430
|
}
|
|
5415
|
-
/**
|
|
5416
|
-
* Check whether a props change should result in an id or className update.
|
|
5417
|
-
*
|
|
5418
|
-
* @param {Object} prevProps
|
|
5419
|
-
* @param {Object} props
|
|
5420
|
-
*/
|
|
5421
|
-
|
|
5422
5431
|
|
|
5432
|
+
/**
|
|
5433
|
+
* Check whether a props change should result in an id or className update.
|
|
5434
|
+
*
|
|
5435
|
+
* @param {Object} prevProps
|
|
5436
|
+
* @param {Object} props
|
|
5437
|
+
*/
|
|
5423
5438
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5424
5439
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5425
5440
|
}
|
|
5426
5441
|
|
|
5427
|
-
var YouTube =
|
|
5442
|
+
var YouTube = function (_React$Component) {
|
|
5428
5443
|
_inherits(YouTube, _React$Component);
|
|
5429
5444
|
|
|
5430
|
-
var _super = _createSuper(YouTube);
|
|
5431
|
-
|
|
5432
|
-
/**
|
|
5433
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5434
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5435
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5436
|
-
*/
|
|
5437
5445
|
function YouTube(props) {
|
|
5438
|
-
var _this;
|
|
5439
|
-
|
|
5440
5446
|
_classCallCheck(this, YouTube);
|
|
5441
5447
|
|
|
5442
|
-
_this =
|
|
5448
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5443
5449
|
|
|
5444
|
-
|
|
5450
|
+
_this.onPlayerReady = function (event) {
|
|
5445
5451
|
return _this.props.onReady(event);
|
|
5446
|
-
}
|
|
5452
|
+
};
|
|
5447
5453
|
|
|
5448
|
-
|
|
5454
|
+
_this.onPlayerError = function (event) {
|
|
5449
5455
|
return _this.props.onError(event);
|
|
5450
|
-
}
|
|
5456
|
+
};
|
|
5451
5457
|
|
|
5452
|
-
|
|
5458
|
+
_this.onPlayerStateChange = function (event) {
|
|
5453
5459
|
_this.props.onStateChange(event);
|
|
5454
|
-
|
|
5455
5460
|
switch (event.data) {
|
|
5461
|
+
|
|
5456
5462
|
case YouTube.PlayerState.ENDED:
|
|
5457
5463
|
_this.props.onEnd(event);
|
|
5458
|
-
|
|
5459
5464
|
break;
|
|
5460
5465
|
|
|
5461
5466
|
case YouTube.PlayerState.PLAYING:
|
|
5462
5467
|
_this.props.onPlay(event);
|
|
5463
|
-
|
|
5464
5468
|
break;
|
|
5465
5469
|
|
|
5466
5470
|
case YouTube.PlayerState.PAUSED:
|
|
5467
5471
|
_this.props.onPause(event);
|
|
5468
|
-
|
|
5469
5472
|
break;
|
|
5470
5473
|
}
|
|
5471
|
-
}
|
|
5474
|
+
};
|
|
5472
5475
|
|
|
5473
|
-
|
|
5476
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5474
5477
|
return _this.props.onPlaybackRateChange(event);
|
|
5475
|
-
}
|
|
5478
|
+
};
|
|
5476
5479
|
|
|
5477
|
-
|
|
5480
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5478
5481
|
return _this.props.onPlaybackQualityChange(event);
|
|
5479
|
-
}
|
|
5482
|
+
};
|
|
5480
5483
|
|
|
5481
|
-
|
|
5484
|
+
_this.createPlayer = function () {
|
|
5482
5485
|
// do not attempt to create a player server-side, it won't work
|
|
5483
|
-
if (typeof document === 'undefined') return;
|
|
5484
|
-
|
|
5485
|
-
var playerOpts =
|
|
5486
|
+
if (typeof document === 'undefined') return;
|
|
5487
|
+
// create player
|
|
5488
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5486
5489
|
// preload the `videoId` video if one is already given
|
|
5487
5490
|
videoId: _this.props.videoId
|
|
5488
5491
|
});
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5493
|
+
// attach event handlers
|
|
5492
5494
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5493
|
-
|
|
5494
5495
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5495
|
-
|
|
5496
5496
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5497
|
-
|
|
5498
5497
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5499
|
-
|
|
5500
5498
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5501
|
-
}
|
|
5499
|
+
};
|
|
5502
5500
|
|
|
5503
|
-
|
|
5501
|
+
_this.resetPlayer = function () {
|
|
5504
5502
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5505
|
-
}
|
|
5503
|
+
};
|
|
5506
5504
|
|
|
5507
|
-
|
|
5505
|
+
_this.updatePlayer = function () {
|
|
5508
5506
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5509
5507
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5510
5508
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5511
5509
|
});
|
|
5512
|
-
}
|
|
5510
|
+
};
|
|
5513
5511
|
|
|
5514
|
-
|
|
5512
|
+
_this.updateVideo = function () {
|
|
5515
5513
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5516
5514
|
_this.internalPlayer.stopVideo();
|
|
5517
|
-
|
|
5518
5515
|
return;
|
|
5519
|
-
}
|
|
5520
|
-
|
|
5516
|
+
}
|
|
5521
5517
|
|
|
5518
|
+
// set queueing options
|
|
5522
5519
|
var autoplay = false;
|
|
5523
5520
|
var opts = {
|
|
5524
5521
|
videoId: _this.props.videoId
|
|
5525
5522
|
};
|
|
5526
|
-
|
|
5527
5523
|
if ('playerVars' in _this.props.opts) {
|
|
5528
5524
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5529
|
-
|
|
5530
5525
|
if ('start' in _this.props.opts.playerVars) {
|
|
5531
5526
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5532
5527
|
}
|
|
5533
|
-
|
|
5534
5528
|
if ('end' in _this.props.opts.playerVars) {
|
|
5535
5529
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5536
5530
|
}
|
|
5537
|
-
}
|
|
5538
|
-
|
|
5531
|
+
}
|
|
5539
5532
|
|
|
5533
|
+
// if autoplay is enabled loadVideoById
|
|
5540
5534
|
if (autoplay) {
|
|
5541
5535
|
_this.internalPlayer.loadVideoById(opts);
|
|
5542
|
-
|
|
5543
5536
|
return;
|
|
5544
|
-
}
|
|
5545
|
-
|
|
5546
|
-
|
|
5537
|
+
}
|
|
5538
|
+
// default behaviour just cues the video
|
|
5547
5539
|
_this.internalPlayer.cueVideoById(opts);
|
|
5548
|
-
}
|
|
5540
|
+
};
|
|
5549
5541
|
|
|
5550
|
-
|
|
5542
|
+
_this.refContainer = function (container) {
|
|
5551
5543
|
_this.container = container;
|
|
5552
|
-
}
|
|
5544
|
+
};
|
|
5553
5545
|
|
|
5554
5546
|
_this.container = null;
|
|
5555
5547
|
_this.internalPlayer = null;
|
|
5556
5548
|
return _this;
|
|
5557
5549
|
}
|
|
5558
5550
|
|
|
5551
|
+
/**
|
|
5552
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5553
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5554
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5555
|
+
*/
|
|
5556
|
+
|
|
5557
|
+
|
|
5559
5558
|
_createClass(YouTube, [{
|
|
5560
|
-
key:
|
|
5559
|
+
key: 'componentDidMount',
|
|
5561
5560
|
value: function componentDidMount() {
|
|
5562
5561
|
this.createPlayer();
|
|
5563
5562
|
}
|
|
5564
5563
|
}, {
|
|
5565
|
-
key:
|
|
5564
|
+
key: 'componentDidUpdate',
|
|
5566
5565
|
value: function componentDidUpdate(prevProps) {
|
|
5567
5566
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5568
5567
|
this.updatePlayer();
|
|
@@ -5577,58 +5576,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5577
5576
|
}
|
|
5578
5577
|
}
|
|
5579
5578
|
}, {
|
|
5580
|
-
key:
|
|
5579
|
+
key: 'componentWillUnmount',
|
|
5581
5580
|
value: function componentWillUnmount() {
|
|
5582
|
-
/**
|
|
5583
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5584
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5585
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5586
|
-
* this method isn't quick enough to reset the container element.
|
|
5581
|
+
/**
|
|
5582
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5583
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5584
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5585
|
+
* this method isn't quick enough to reset the container element.
|
|
5587
5586
|
*/
|
|
5588
5587
|
this.internalPlayer.destroy();
|
|
5589
5588
|
}
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
*
|
|
5593
|
-
*
|
|
5594
|
-
*
|
|
5589
|
+
|
|
5590
|
+
/**
|
|
5591
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5592
|
+
*
|
|
5593
|
+
* @param {Object} event
|
|
5594
|
+
* @param {Object} target - player object
|
|
5595
|
+
*/
|
|
5596
|
+
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5600
|
+
*
|
|
5601
|
+
* @param {Object} event
|
|
5602
|
+
* @param {Integer} data - error type
|
|
5603
|
+
* @param {Object} target - player object
|
|
5604
|
+
*/
|
|
5605
|
+
|
|
5606
|
+
|
|
5607
|
+
/**
|
|
5608
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5609
|
+
*
|
|
5610
|
+
* @param {Object} event
|
|
5611
|
+
* @param {Integer} data - status change type
|
|
5612
|
+
* @param {Object} target - actual YT player
|
|
5613
|
+
*/
|
|
5614
|
+
|
|
5615
|
+
|
|
5616
|
+
/**
|
|
5617
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5618
|
+
*
|
|
5619
|
+
* @param {Object} event
|
|
5620
|
+
* @param {Float} data - playback rate
|
|
5621
|
+
* @param {Object} target - actual YT player
|
|
5622
|
+
*/
|
|
5623
|
+
|
|
5624
|
+
|
|
5625
|
+
/**
|
|
5626
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5627
|
+
*
|
|
5628
|
+
* @param {Object} event
|
|
5629
|
+
* @param {String} data - playback quality
|
|
5630
|
+
* @param {Object} target - actual YT player
|
|
5631
|
+
*/
|
|
5632
|
+
|
|
5633
|
+
|
|
5634
|
+
/**
|
|
5635
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5636
|
+
*/
|
|
5637
|
+
|
|
5638
|
+
|
|
5639
|
+
/**
|
|
5640
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5641
|
+
*/
|
|
5642
|
+
|
|
5643
|
+
|
|
5644
|
+
/**
|
|
5645
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5646
|
+
* React should update this automatically but since the Youtube Player API
|
|
5647
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5648
|
+
*/
|
|
5649
|
+
|
|
5650
|
+
|
|
5651
|
+
/**
|
|
5652
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5653
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5654
|
+
* Youtube Player API methods to update the video.
|
|
5595
5655
|
*/
|
|
5596
5656
|
|
|
5597
5657
|
}, {
|
|
5598
|
-
key:
|
|
5658
|
+
key: 'render',
|
|
5599
5659
|
value: function render() {
|
|
5600
|
-
return
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
id: this.props.id,
|
|
5604
|
-
|
|
5605
|
-
ref: this.refContainer
|
|
5606
|
-
}));
|
|
5660
|
+
return React__default.createElement(
|
|
5661
|
+
'div',
|
|
5662
|
+
{ className: this.props.containerClassName },
|
|
5663
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5664
|
+
);
|
|
5607
5665
|
}
|
|
5608
5666
|
}]);
|
|
5609
5667
|
|
|
5610
5668
|
return YouTube;
|
|
5611
5669
|
}(React__default.Component);
|
|
5612
5670
|
|
|
5613
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5614
|
-
UNSTARTED: -1,
|
|
5615
|
-
ENDED: 0,
|
|
5616
|
-
PLAYING: 1,
|
|
5617
|
-
PAUSED: 2,
|
|
5618
|
-
BUFFERING: 3,
|
|
5619
|
-
CUED: 5
|
|
5620
|
-
});
|
|
5621
|
-
|
|
5622
5671
|
YouTube.propTypes = {
|
|
5623
5672
|
videoId: PropTypes.string,
|
|
5673
|
+
|
|
5624
5674
|
// custom ID for player element
|
|
5625
5675
|
id: PropTypes.string,
|
|
5676
|
+
|
|
5626
5677
|
// custom class name for player element
|
|
5627
5678
|
className: PropTypes.string,
|
|
5628
5679
|
// custom class name for player container element
|
|
5629
5680
|
containerClassName: PropTypes.string,
|
|
5681
|
+
|
|
5630
5682
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5631
5683
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5684
|
+
|
|
5632
5685
|
// event subscriptions
|
|
5633
5686
|
onReady: PropTypes.func,
|
|
5634
5687
|
onError: PropTypes.func,
|
|
@@ -5640,7 +5693,6 @@ YouTube.propTypes = {
|
|
|
5640
5693
|
onPlaybackQualityChange: PropTypes.func
|
|
5641
5694
|
};
|
|
5642
5695
|
YouTube.defaultProps = {
|
|
5643
|
-
videoId: null,
|
|
5644
5696
|
id: null,
|
|
5645
5697
|
className: null,
|
|
5646
5698
|
opts: {},
|
|
@@ -5654,6 +5706,14 @@ YouTube.defaultProps = {
|
|
|
5654
5706
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5655
5707
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5656
5708
|
};
|
|
5709
|
+
YouTube.PlayerState = {
|
|
5710
|
+
UNSTARTED: -1,
|
|
5711
|
+
ENDED: 0,
|
|
5712
|
+
PLAYING: 1,
|
|
5713
|
+
PAUSED: 2,
|
|
5714
|
+
BUFFERING: 3,
|
|
5715
|
+
CUED: 5
|
|
5716
|
+
};
|
|
5657
5717
|
|
|
5658
5718
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5659
5719
|
var url = _ref.url;
|
|
@@ -6677,8 +6737,8 @@ var window_1 = win;
|
|
|
6677
6737
|
|
|
6678
6738
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6679
6739
|
|
|
6680
|
-
function _extends() {
|
|
6681
|
-
_extends = Object.assign || function (target) {
|
|
6740
|
+
function _extends$1() {
|
|
6741
|
+
_extends$1 = Object.assign || function (target) {
|
|
6682
6742
|
for (var i = 1; i < arguments.length; i++) {
|
|
6683
6743
|
var source = arguments[i];
|
|
6684
6744
|
|
|
@@ -6692,7 +6752,7 @@ function _extends() {
|
|
|
6692
6752
|
return target;
|
|
6693
6753
|
};
|
|
6694
6754
|
|
|
6695
|
-
return _extends.apply(this, arguments);
|
|
6755
|
+
return _extends$1.apply(this, arguments);
|
|
6696
6756
|
}
|
|
6697
6757
|
|
|
6698
6758
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6701,7 +6761,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6701
6761
|
subClass.__proto__ = superClass;
|
|
6702
6762
|
}
|
|
6703
6763
|
|
|
6704
|
-
function _assertThisInitialized
|
|
6764
|
+
function _assertThisInitialized(self) {
|
|
6705
6765
|
if (self === void 0) {
|
|
6706
6766
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6707
6767
|
}
|
|
@@ -6711,8 +6771,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6711
6771
|
|
|
6712
6772
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6713
6773
|
|
|
6714
|
-
function _extends$1() {
|
|
6715
|
-
_extends$1 = Object.assign || function (target) {
|
|
6774
|
+
function _extends$1$1() {
|
|
6775
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6716
6776
|
for (var i = 1; i < arguments.length; i++) {
|
|
6717
6777
|
var source = arguments[i];
|
|
6718
6778
|
|
|
@@ -6726,7 +6786,7 @@ function _extends$1() {
|
|
|
6726
6786
|
return target;
|
|
6727
6787
|
};
|
|
6728
6788
|
|
|
6729
|
-
return _extends$1.apply(this, arguments);
|
|
6789
|
+
return _extends$1$1.apply(this, arguments);
|
|
6730
6790
|
}
|
|
6731
6791
|
|
|
6732
6792
|
var version$1 = "1.7.1";
|
|
@@ -6734,7 +6794,7 @@ var version$1 = "1.7.1";
|
|
|
6734
6794
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6735
6795
|
var version$1$1 = "1.2.0";
|
|
6736
6796
|
|
|
6737
|
-
var _typeof
|
|
6797
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6738
6798
|
return typeof obj;
|
|
6739
6799
|
} : function (obj) {
|
|
6740
6800
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6869,7 +6929,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6869
6929
|
|
|
6870
6930
|
var qs = '';
|
|
6871
6931
|
|
|
6872
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6932
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6873
6933
|
qs = getQueryString(queryParams);
|
|
6874
6934
|
}
|
|
6875
6935
|
|
|
@@ -7103,7 +7163,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7103
7163
|
el.style.width = '100%';
|
|
7104
7164
|
el.style.height = '100%';
|
|
7105
7165
|
|
|
7106
|
-
var responsive = _extends$1({
|
|
7166
|
+
var responsive = _extends$1$1({
|
|
7107
7167
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7108
7168
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7109
7169
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7788,7 +7848,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7788
7848
|
|
|
7789
7849
|
|
|
7790
7850
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7791
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7851
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7792
7852
|
|
|
7793
7853
|
var Promise = params.Promise,
|
|
7794
7854
|
onSuccess = params.onSuccess,
|
|
@@ -7930,7 +7990,7 @@ function (_React$Component) {
|
|
|
7930
7990
|
_this.refNode = ref;
|
|
7931
7991
|
};
|
|
7932
7992
|
|
|
7933
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7993
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7934
7994
|
return _this;
|
|
7935
7995
|
}
|
|
7936
7996
|
/**
|
|
@@ -7951,7 +8011,7 @@ function (_React$Component) {
|
|
|
7951
8011
|
var userSuccess = this.props.onSuccess;
|
|
7952
8012
|
var userFailure = this.props.onFailure;
|
|
7953
8013
|
|
|
7954
|
-
var options = _extends({}, this.props, {
|
|
8014
|
+
var options = _extends$1({}, this.props, {
|
|
7955
8015
|
refNode: this.refNode,
|
|
7956
8016
|
refNodeInsert: 'append',
|
|
7957
8017
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8260,7 +8320,7 @@ function (_React$Component) {
|
|
|
8260
8320
|
;
|
|
8261
8321
|
|
|
8262
8322
|
_proto.render = function render() {
|
|
8263
|
-
var props = _extends({
|
|
8323
|
+
var props = _extends$1({
|
|
8264
8324
|
className: 'brightcove-react-player-loader'
|
|
8265
8325
|
}, this.props.attrs, {
|
|
8266
8326
|
ref: this.setRefNode
|
|
@@ -8676,17 +8736,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8676
8736
|
|
|
8677
8737
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8678
8738
|
|
|
8679
|
-
function
|
|
8739
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8680
8740
|
|
|
8681
|
-
function
|
|
8741
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8682
8742
|
|
|
8683
|
-
function
|
|
8684
|
-
|
|
8685
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8686
|
-
|
|
8687
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8688
|
-
|
|
8689
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8743
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8690
8744
|
|
|
8691
8745
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8692
8746
|
|
|
@@ -8816,12 +8870,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8816
8870
|
|
|
8817
8871
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8818
8872
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8819
|
-
|
|
8820
|
-
var
|
|
8821
|
-
|
|
8873
|
+
var _iteratorNormalCompletion = true;
|
|
8874
|
+
var _didIteratorError = false;
|
|
8875
|
+
var _iteratorError = undefined;
|
|
8822
8876
|
|
|
8823
8877
|
try {
|
|
8824
|
-
for (_iterator.
|
|
8878
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8825
8879
|
var p = _step.value;
|
|
8826
8880
|
|
|
8827
8881
|
if (props$1[p]) {
|
|
@@ -8836,9 +8890,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8836
8890
|
}
|
|
8837
8891
|
}
|
|
8838
8892
|
} catch (err) {
|
|
8839
|
-
|
|
8893
|
+
_didIteratorError = true;
|
|
8894
|
+
_iteratorError = err;
|
|
8840
8895
|
} finally {
|
|
8841
|
-
|
|
8896
|
+
try {
|
|
8897
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8898
|
+
_iterator["return"]();
|
|
8899
|
+
}
|
|
8900
|
+
} finally {
|
|
8901
|
+
if (_didIteratorError) {
|
|
8902
|
+
throw _iteratorError;
|
|
8903
|
+
}
|
|
8904
|
+
}
|
|
8842
8905
|
}
|
|
8843
8906
|
|
|
8844
8907
|
return config;
|
|
@@ -8985,16 +9048,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8985
9048
|
|
|
8986
9049
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8987
9050
|
|
|
8988
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8989
|
-
|
|
8990
9051
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8991
9052
|
|
|
8992
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8993
|
-
|
|
8994
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
8995
|
-
|
|
8996
9053
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8997
9054
|
|
|
9055
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9056
|
+
|
|
8998
9057
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8999
9058
|
|
|
9000
9059
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9003,12 +9062,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9003
9062
|
|
|
9004
9063
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9005
9064
|
|
|
9006
|
-
var Player =
|
|
9065
|
+
var Player =
|
|
9066
|
+
/*#__PURE__*/
|
|
9067
|
+
function (_Component) {
|
|
9007
9068
|
_inherits(Player, _Component);
|
|
9008
9069
|
|
|
9009
|
-
var _super = _createSuper(Player);
|
|
9010
|
-
|
|
9011
9070
|
function Player() {
|
|
9071
|
+
var _getPrototypeOf2;
|
|
9072
|
+
|
|
9012
9073
|
var _this;
|
|
9013
9074
|
|
|
9014
9075
|
_classCallCheck(this, Player);
|
|
@@ -9017,7 +9078,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9017
9078
|
_args[_key] = arguments[_key];
|
|
9018
9079
|
}
|
|
9019
9080
|
|
|
9020
|
-
_this =
|
|
9081
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
9021
9082
|
|
|
9022
9083
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9023
9084
|
|
|
@@ -9342,7 +9403,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9342
9403
|
return null;
|
|
9343
9404
|
}
|
|
9344
9405
|
|
|
9345
|
-
return
|
|
9406
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9346
9407
|
ref: this.ref,
|
|
9347
9408
|
onReady: this.handleReady,
|
|
9348
9409
|
onPlay: this.handlePlay,
|
|
@@ -9403,16 +9464,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9403
9464
|
|
|
9404
9465
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9405
9466
|
|
|
9406
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9407
|
-
|
|
9408
9467
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9409
9468
|
|
|
9410
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9411
|
-
|
|
9412
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9413
|
-
|
|
9414
9469
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9415
9470
|
|
|
9471
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9472
|
+
|
|
9416
9473
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9417
9474
|
|
|
9418
9475
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9424,12 +9481,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9424
9481
|
function createSinglePlayer(activePlayer) {
|
|
9425
9482
|
var _class, _temp;
|
|
9426
9483
|
|
|
9427
|
-
return _temp = _class =
|
|
9484
|
+
return _temp = _class =
|
|
9485
|
+
/*#__PURE__*/
|
|
9486
|
+
function (_Component) {
|
|
9428
9487
|
_inherits(SinglePlayer, _Component);
|
|
9429
9488
|
|
|
9430
|
-
var _super = _createSuper(SinglePlayer);
|
|
9431
|
-
|
|
9432
9489
|
function SinglePlayer() {
|
|
9490
|
+
var _getPrototypeOf2;
|
|
9491
|
+
|
|
9433
9492
|
var _this;
|
|
9434
9493
|
|
|
9435
9494
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9438,7 +9497,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9438
9497
|
args[_key] = arguments[_key];
|
|
9439
9498
|
}
|
|
9440
9499
|
|
|
9441
|
-
_this =
|
|
9500
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9442
9501
|
|
|
9443
9502
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9444
9503
|
|
|
@@ -9506,12 +9565,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9506
9565
|
height = _this$props.height,
|
|
9507
9566
|
Wrapper = _this$props.wrapper;
|
|
9508
9567
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9509
|
-
return
|
|
9568
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9510
9569
|
style: _objectSpread({}, style, {
|
|
9511
9570
|
width: width,
|
|
9512
9571
|
height: height
|
|
9513
9572
|
})
|
|
9514
|
-
}, otherProps),
|
|
9573
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9515
9574
|
ref: this.ref,
|
|
9516
9575
|
activePlayer: activePlayer,
|
|
9517
9576
|
config: this.config
|
|
@@ -9557,31 +9616,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9557
9616
|
|
|
9558
9617
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9559
9618
|
|
|
9560
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9561
|
-
|
|
9562
9619
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9563
9620
|
|
|
9564
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9565
|
-
|
|
9566
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9567
|
-
|
|
9568
9621
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9569
9622
|
|
|
9623
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9624
|
+
|
|
9570
9625
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9571
9626
|
|
|
9572
9627
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9573
9628
|
|
|
9574
9629
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9575
9630
|
|
|
9576
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9577
|
-
|
|
9578
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9631
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9579
9632
|
|
|
9580
|
-
function
|
|
9633
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9581
9634
|
|
|
9582
|
-
function
|
|
9583
|
-
|
|
9584
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9635
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9585
9636
|
|
|
9586
9637
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9587
9638
|
|
|
@@ -9606,12 +9657,14 @@ function parsePlaylist(url) {
|
|
|
9606
9657
|
return {};
|
|
9607
9658
|
}
|
|
9608
9659
|
|
|
9609
|
-
var YouTube =
|
|
9660
|
+
var YouTube =
|
|
9661
|
+
/*#__PURE__*/
|
|
9662
|
+
function (_Component) {
|
|
9610
9663
|
_inherits(YouTube, _Component);
|
|
9611
9664
|
|
|
9612
|
-
var _super = _createSuper(YouTube);
|
|
9613
|
-
|
|
9614
9665
|
function YouTube() {
|
|
9666
|
+
var _getPrototypeOf2;
|
|
9667
|
+
|
|
9615
9668
|
var _this;
|
|
9616
9669
|
|
|
9617
9670
|
_classCallCheck(this, YouTube);
|
|
@@ -9620,7 +9673,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9620
9673
|
args[_key] = arguments[_key];
|
|
9621
9674
|
}
|
|
9622
9675
|
|
|
9623
|
-
_this =
|
|
9676
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9624
9677
|
|
|
9625
9678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9626
9679
|
|
|
@@ -9808,9 +9861,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9808
9861
|
height: '100%',
|
|
9809
9862
|
display: display
|
|
9810
9863
|
};
|
|
9811
|
-
return
|
|
9864
|
+
return _react["default"].createElement("div", {
|
|
9812
9865
|
style: style
|
|
9813
|
-
},
|
|
9866
|
+
}, _react["default"].createElement("div", {
|
|
9814
9867
|
ref: this.ref
|
|
9815
9868
|
}));
|
|
9816
9869
|
}
|
|
@@ -9866,16 +9919,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9866
9919
|
|
|
9867
9920
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9868
9921
|
|
|
9869
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9870
|
-
|
|
9871
9922
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9872
9923
|
|
|
9873
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9874
|
-
|
|
9875
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9876
|
-
|
|
9877
9924
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9878
9925
|
|
|
9926
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9927
|
+
|
|
9879
9928
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9880
9929
|
|
|
9881
9930
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9884,14 +9933,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9884
9933
|
|
|
9885
9934
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9886
9935
|
var SDK_GLOBAL = 'SC';
|
|
9887
|
-
var MATCH_URL = /(
|
|
9936
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9888
9937
|
|
|
9889
|
-
var SoundCloud =
|
|
9938
|
+
var SoundCloud =
|
|
9939
|
+
/*#__PURE__*/
|
|
9940
|
+
function (_Component) {
|
|
9890
9941
|
_inherits(SoundCloud, _Component);
|
|
9891
9942
|
|
|
9892
|
-
var _super = _createSuper(SoundCloud);
|
|
9893
|
-
|
|
9894
9943
|
function SoundCloud() {
|
|
9944
|
+
var _getPrototypeOf2;
|
|
9945
|
+
|
|
9895
9946
|
var _this;
|
|
9896
9947
|
|
|
9897
9948
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9900,7 +9951,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9900
9951
|
args[_key] = arguments[_key];
|
|
9901
9952
|
}
|
|
9902
9953
|
|
|
9903
|
-
_this =
|
|
9954
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9904
9955
|
|
|
9905
9956
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9906
9957
|
|
|
@@ -10021,7 +10072,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
10021
10072
|
height: '100%',
|
|
10022
10073
|
display: display
|
|
10023
10074
|
};
|
|
10024
|
-
return
|
|
10075
|
+
return _react["default"].createElement("iframe", {
|
|
10025
10076
|
ref: this.ref,
|
|
10026
10077
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10027
10078
|
style: style,
|
|
@@ -10083,16 +10134,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10083
10134
|
|
|
10084
10135
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10085
10136
|
|
|
10086
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10087
|
-
|
|
10088
10137
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10089
10138
|
|
|
10090
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10091
|
-
|
|
10092
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10093
|
-
|
|
10094
10139
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10095
10140
|
|
|
10141
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10142
|
+
|
|
10096
10143
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10097
10144
|
|
|
10098
10145
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10104,12 +10151,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10104
10151
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10105
10152
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10106
10153
|
|
|
10107
|
-
var Vimeo =
|
|
10154
|
+
var Vimeo =
|
|
10155
|
+
/*#__PURE__*/
|
|
10156
|
+
function (_Component) {
|
|
10108
10157
|
_inherits(Vimeo, _Component);
|
|
10109
10158
|
|
|
10110
|
-
var _super = _createSuper(Vimeo);
|
|
10111
|
-
|
|
10112
10159
|
function Vimeo() {
|
|
10160
|
+
var _getPrototypeOf2;
|
|
10161
|
+
|
|
10113
10162
|
var _this;
|
|
10114
10163
|
|
|
10115
10164
|
_classCallCheck(this, Vimeo);
|
|
@@ -10118,7 +10167,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10118
10167
|
args[_key] = arguments[_key];
|
|
10119
10168
|
}
|
|
10120
10169
|
|
|
10121
|
-
_this =
|
|
10170
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10122
10171
|
|
|
10123
10172
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10124
10173
|
|
|
@@ -10275,7 +10324,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10275
10324
|
overflow: 'hidden',
|
|
10276
10325
|
display: display
|
|
10277
10326
|
};
|
|
10278
|
-
return
|
|
10327
|
+
return _react["default"].createElement("div", {
|
|
10279
10328
|
key: this.props.url,
|
|
10280
10329
|
ref: this.ref,
|
|
10281
10330
|
style: style
|
|
@@ -10335,16 +10384,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10335
10384
|
|
|
10336
10385
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10337
10386
|
|
|
10338
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10339
|
-
|
|
10340
10387
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10341
10388
|
|
|
10342
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10343
|
-
|
|
10344
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10345
|
-
|
|
10346
10389
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10347
10390
|
|
|
10391
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10392
|
+
|
|
10348
10393
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10349
10394
|
|
|
10350
10395
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10357,12 +10402,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10357
10402
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10358
10403
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10359
10404
|
|
|
10360
|
-
var Facebook =
|
|
10405
|
+
var Facebook =
|
|
10406
|
+
/*#__PURE__*/
|
|
10407
|
+
function (_Component) {
|
|
10361
10408
|
_inherits(Facebook, _Component);
|
|
10362
10409
|
|
|
10363
|
-
var _super = _createSuper(Facebook);
|
|
10364
|
-
|
|
10365
10410
|
function Facebook() {
|
|
10411
|
+
var _getPrototypeOf2;
|
|
10412
|
+
|
|
10366
10413
|
var _this;
|
|
10367
10414
|
|
|
10368
10415
|
_classCallCheck(this, Facebook);
|
|
@@ -10371,7 +10418,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10371
10418
|
args[_key] = arguments[_key];
|
|
10372
10419
|
}
|
|
10373
10420
|
|
|
10374
|
-
_this =
|
|
10421
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10375
10422
|
|
|
10376
10423
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10377
10424
|
|
|
@@ -10487,7 +10534,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10487
10534
|
width: '100%',
|
|
10488
10535
|
height: '100%'
|
|
10489
10536
|
};
|
|
10490
|
-
return
|
|
10537
|
+
return _react["default"].createElement("div", {
|
|
10491
10538
|
style: style,
|
|
10492
10539
|
id: this.playerID,
|
|
10493
10540
|
className: "fb-video",
|
|
@@ -10547,17 +10594,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10547
10594
|
|
|
10548
10595
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10549
10596
|
|
|
10550
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10551
|
-
|
|
10552
10597
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10553
10598
|
|
|
10599
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10600
|
+
|
|
10554
10601
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10555
10602
|
|
|
10556
|
-
function
|
|
10557
|
-
|
|
10558
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10559
|
-
|
|
10560
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10603
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10561
10604
|
|
|
10562
10605
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10563
10606
|
|
|
@@ -10567,12 +10610,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10567
10610
|
var SDK_GLOBAL = 'playerjs';
|
|
10568
10611
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10569
10612
|
|
|
10570
|
-
var Streamable =
|
|
10613
|
+
var Streamable =
|
|
10614
|
+
/*#__PURE__*/
|
|
10615
|
+
function (_Component) {
|
|
10571
10616
|
_inherits(Streamable, _Component);
|
|
10572
10617
|
|
|
10573
|
-
var _super = _createSuper(Streamable);
|
|
10574
|
-
|
|
10575
10618
|
function Streamable() {
|
|
10619
|
+
var _getPrototypeOf2;
|
|
10620
|
+
|
|
10576
10621
|
var _this;
|
|
10577
10622
|
|
|
10578
10623
|
_classCallCheck(this, Streamable);
|
|
@@ -10581,7 +10626,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10581
10626
|
args[_key] = arguments[_key];
|
|
10582
10627
|
}
|
|
10583
10628
|
|
|
10584
|
-
_this =
|
|
10629
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10585
10630
|
|
|
10586
10631
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10587
10632
|
|
|
@@ -10701,7 +10746,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10701
10746
|
width: '100%',
|
|
10702
10747
|
height: '100%'
|
|
10703
10748
|
};
|
|
10704
|
-
return
|
|
10749
|
+
return _react["default"].createElement("iframe", {
|
|
10705
10750
|
ref: this.ref,
|
|
10706
10751
|
src: "https://streamable.com/o/".concat(id),
|
|
10707
10752
|
frameBorder: "0",
|
|
@@ -10762,16 +10807,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10762
10807
|
|
|
10763
10808
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10764
10809
|
|
|
10765
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10766
|
-
|
|
10767
10810
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10768
10811
|
|
|
10769
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10770
|
-
|
|
10771
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10772
|
-
|
|
10773
10812
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10774
10813
|
|
|
10814
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10815
|
+
|
|
10775
10816
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10776
10817
|
|
|
10777
10818
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10782,48 +10823,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10782
10823
|
var SDK_GLOBAL = 'Wistia';
|
|
10783
10824
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10784
10825
|
|
|
10785
|
-
var Wistia =
|
|
10826
|
+
var Wistia =
|
|
10827
|
+
/*#__PURE__*/
|
|
10828
|
+
function (_Component) {
|
|
10786
10829
|
_inherits(Wistia, _Component);
|
|
10787
10830
|
|
|
10788
|
-
var _super = _createSuper(Wistia);
|
|
10789
|
-
|
|
10790
10831
|
function Wistia() {
|
|
10832
|
+
var _getPrototypeOf2;
|
|
10833
|
+
|
|
10791
10834
|
var _this;
|
|
10792
10835
|
|
|
10793
10836
|
_classCallCheck(this, Wistia);
|
|
10794
10837
|
|
|
10795
|
-
for (var _len = arguments.length,
|
|
10796
|
-
|
|
10838
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10839
|
+
args[_key] = arguments[_key];
|
|
10797
10840
|
}
|
|
10798
10841
|
|
|
10799
|
-
_this =
|
|
10842
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10800
10843
|
|
|
10801
10844
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10802
10845
|
|
|
10803
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10804
|
-
var _this$props;
|
|
10805
|
-
|
|
10806
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10807
|
-
});
|
|
10808
|
-
|
|
10809
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10810
|
-
var _this$props2;
|
|
10811
|
-
|
|
10812
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10813
|
-
});
|
|
10814
|
-
|
|
10815
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10816
|
-
var _this$props3;
|
|
10817
|
-
|
|
10818
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10819
|
-
});
|
|
10820
|
-
|
|
10821
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10822
|
-
var _this$props4;
|
|
10823
|
-
|
|
10824
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10825
|
-
});
|
|
10826
|
-
|
|
10827
10846
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10828
10847
|
_this.callPlayer('mute');
|
|
10829
10848
|
});
|
|
@@ -10845,13 +10864,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10845
10864
|
value: function load(url) {
|
|
10846
10865
|
var _this2 = this;
|
|
10847
10866
|
|
|
10848
|
-
var _this$
|
|
10849
|
-
playing = _this$
|
|
10850
|
-
muted = _this$
|
|
10851
|
-
controls = _this$
|
|
10852
|
-
_onReady = _this$
|
|
10853
|
-
|
|
10854
|
-
|
|
10867
|
+
var _this$props = this.props,
|
|
10868
|
+
playing = _this$props.playing,
|
|
10869
|
+
muted = _this$props.muted,
|
|
10870
|
+
controls = _this$props.controls,
|
|
10871
|
+
_onReady = _this$props.onReady,
|
|
10872
|
+
onPlay = _this$props.onPlay,
|
|
10873
|
+
onPause = _this$props.onPause,
|
|
10874
|
+
onSeek = _this$props.onSeek,
|
|
10875
|
+
onEnded = _this$props.onEnded,
|
|
10876
|
+
config = _this$props.config,
|
|
10877
|
+
onError = _this$props.onError;
|
|
10855
10878
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10856
10879
|
window._wq = window._wq || [];
|
|
10857
10880
|
|
|
@@ -10868,28 +10891,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10868
10891
|
|
|
10869
10892
|
_this2.unbind();
|
|
10870
10893
|
|
|
10871
|
-
_this2.player.bind('play',
|
|
10894
|
+
_this2.player.bind('play', onPlay);
|
|
10872
10895
|
|
|
10873
|
-
_this2.player.bind('pause',
|
|
10896
|
+
_this2.player.bind('pause', onPause);
|
|
10874
10897
|
|
|
10875
|
-
_this2.player.bind('seek',
|
|
10898
|
+
_this2.player.bind('seek', onSeek);
|
|
10876
10899
|
|
|
10877
|
-
_this2.player.bind('end',
|
|
10900
|
+
_this2.player.bind('end', onEnded);
|
|
10878
10901
|
|
|
10879
10902
|
_onReady();
|
|
10880
10903
|
}
|
|
10881
10904
|
});
|
|
10882
10905
|
}, onError);
|
|
10883
10906
|
}
|
|
10884
|
-
}, {
|
|
10885
|
-
key: "unbind",
|
|
10886
|
-
value: function unbind() {
|
|
10887
|
-
this.player.unbind('play', this.onPlay);
|
|
10888
|
-
this.player.unbind('pause', this.onPause);
|
|
10889
|
-
this.player.unbind('seek', this.onSeek);
|
|
10890
|
-
this.player.unbind('end', this.onEnded);
|
|
10891
|
-
} // Proxy methods to prevent listener leaks
|
|
10892
|
-
|
|
10893
10907
|
}, {
|
|
10894
10908
|
key: "play",
|
|
10895
10909
|
value: function play() {
|
|
@@ -10900,6 +10914,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10900
10914
|
value: function pause() {
|
|
10901
10915
|
this.callPlayer('pause');
|
|
10902
10916
|
}
|
|
10917
|
+
}, {
|
|
10918
|
+
key: "unbind",
|
|
10919
|
+
value: function unbind() {
|
|
10920
|
+
var _this$props2 = this.props,
|
|
10921
|
+
onPlay = _this$props2.onPlay,
|
|
10922
|
+
onPause = _this$props2.onPause,
|
|
10923
|
+
onSeek = _this$props2.onSeek,
|
|
10924
|
+
onEnded = _this$props2.onEnded;
|
|
10925
|
+
this.player.unbind('play', onPlay);
|
|
10926
|
+
this.player.unbind('pause', onPause);
|
|
10927
|
+
this.player.unbind('seek', onSeek);
|
|
10928
|
+
this.player.unbind('end', onEnded);
|
|
10929
|
+
}
|
|
10903
10930
|
}, {
|
|
10904
10931
|
key: "stop",
|
|
10905
10932
|
value: function stop() {
|
|
@@ -10945,7 +10972,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10945
10972
|
width: '100%',
|
|
10946
10973
|
height: '100%'
|
|
10947
10974
|
};
|
|
10948
|
-
return
|
|
10975
|
+
return _react["default"].createElement("div", {
|
|
10949
10976
|
key: id,
|
|
10950
10977
|
className: className,
|
|
10951
10978
|
style: style
|
|
@@ -11005,16 +11032,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11005
11032
|
|
|
11006
11033
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11007
11034
|
|
|
11008
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11009
|
-
|
|
11010
11035
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11011
11036
|
|
|
11012
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11013
|
-
|
|
11014
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11015
|
-
|
|
11016
11037
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11017
11038
|
|
|
11039
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11040
|
+
|
|
11018
11041
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11019
11042
|
|
|
11020
11043
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11027,12 +11050,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11027
11050
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11028
11051
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11029
11052
|
|
|
11030
|
-
var Twitch =
|
|
11053
|
+
var Twitch =
|
|
11054
|
+
/*#__PURE__*/
|
|
11055
|
+
function (_Component) {
|
|
11031
11056
|
_inherits(Twitch, _Component);
|
|
11032
11057
|
|
|
11033
|
-
var _super = _createSuper(Twitch);
|
|
11034
|
-
|
|
11035
11058
|
function Twitch() {
|
|
11059
|
+
var _getPrototypeOf2;
|
|
11060
|
+
|
|
11036
11061
|
var _this;
|
|
11037
11062
|
|
|
11038
11063
|
_classCallCheck(this, Twitch);
|
|
@@ -11041,7 +11066,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11041
11066
|
args[_key] = arguments[_key];
|
|
11042
11067
|
}
|
|
11043
11068
|
|
|
11044
|
-
_this =
|
|
11069
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11045
11070
|
|
|
11046
11071
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11047
11072
|
|
|
@@ -11162,7 +11187,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11162
11187
|
width: '100%',
|
|
11163
11188
|
height: '100%'
|
|
11164
11189
|
};
|
|
11165
|
-
return
|
|
11190
|
+
return _react["default"].createElement("div", {
|
|
11166
11191
|
style: style,
|
|
11167
11192
|
id: this.playerID
|
|
11168
11193
|
});
|
|
@@ -11215,15 +11240,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11215
11240
|
|
|
11216
11241
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11217
11242
|
|
|
11218
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11243
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11219
11244
|
|
|
11220
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
11245
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11221
11246
|
|
|
11222
|
-
function
|
|
11223
|
-
|
|
11224
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11225
|
-
|
|
11226
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11247
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11227
11248
|
|
|
11228
11249
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11229
11250
|
|
|
@@ -11233,16 +11254,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11233
11254
|
|
|
11234
11255
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11235
11256
|
|
|
11236
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11237
|
-
|
|
11238
11257
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11239
11258
|
|
|
11240
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11241
|
-
|
|
11242
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11243
|
-
|
|
11244
11259
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11245
11260
|
|
|
11261
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11262
|
+
|
|
11246
11263
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11247
11264
|
|
|
11248
11265
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11254,12 +11271,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11254
11271
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11255
11272
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11256
11273
|
|
|
11257
|
-
var DailyMotion =
|
|
11274
|
+
var DailyMotion =
|
|
11275
|
+
/*#__PURE__*/
|
|
11276
|
+
function (_Component) {
|
|
11258
11277
|
_inherits(DailyMotion, _Component);
|
|
11259
11278
|
|
|
11260
|
-
var _super = _createSuper(DailyMotion);
|
|
11261
|
-
|
|
11262
11279
|
function DailyMotion() {
|
|
11280
|
+
var _getPrototypeOf2;
|
|
11281
|
+
|
|
11263
11282
|
var _this;
|
|
11264
11283
|
|
|
11265
11284
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11268,7 +11287,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11268
11287
|
args[_key] = arguments[_key];
|
|
11269
11288
|
}
|
|
11270
11289
|
|
|
11271
|
-
_this =
|
|
11290
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11272
11291
|
|
|
11273
11292
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11274
11293
|
|
|
@@ -11397,9 +11416,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11397
11416
|
height: '100%',
|
|
11398
11417
|
display: display
|
|
11399
11418
|
};
|
|
11400
|
-
return
|
|
11419
|
+
return _react["default"].createElement("div", {
|
|
11401
11420
|
style: style
|
|
11402
|
-
},
|
|
11421
|
+
}, _react["default"].createElement("div", {
|
|
11403
11422
|
ref: this.ref
|
|
11404
11423
|
}));
|
|
11405
11424
|
}
|
|
@@ -11457,16 +11476,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11457
11476
|
|
|
11458
11477
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11459
11478
|
|
|
11460
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11461
|
-
|
|
11462
11479
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11463
11480
|
|
|
11464
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11465
|
-
|
|
11466
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11467
|
-
|
|
11468
11481
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11469
11482
|
|
|
11483
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11484
|
+
|
|
11470
11485
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11471
11486
|
|
|
11472
11487
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11477,12 +11492,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11477
11492
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11478
11493
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11479
11494
|
|
|
11480
|
-
var Mixcloud =
|
|
11495
|
+
var Mixcloud =
|
|
11496
|
+
/*#__PURE__*/
|
|
11497
|
+
function (_Component) {
|
|
11481
11498
|
_inherits(Mixcloud, _Component);
|
|
11482
11499
|
|
|
11483
|
-
var _super = _createSuper(Mixcloud);
|
|
11484
|
-
|
|
11485
11500
|
function Mixcloud() {
|
|
11501
|
+
var _getPrototypeOf2;
|
|
11502
|
+
|
|
11486
11503
|
var _this;
|
|
11487
11504
|
|
|
11488
11505
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11491,7 +11508,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11491
11508
|
args[_key] = arguments[_key];
|
|
11492
11509
|
}
|
|
11493
11510
|
|
|
11494
|
-
_this =
|
|
11511
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11495
11512
|
|
|
11496
11513
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11497
11514
|
|
|
@@ -11594,7 +11611,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11594
11611
|
})); // We have to give the iframe a key here to prevent a
|
|
11595
11612
|
// weird dialog appearing when loading a new track
|
|
11596
11613
|
|
|
11597
|
-
return
|
|
11614
|
+
return _react["default"].createElement("iframe", {
|
|
11598
11615
|
key: id,
|
|
11599
11616
|
ref: this.ref,
|
|
11600
11617
|
style: style,
|
|
@@ -11654,33 +11671,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11654
11671
|
|
|
11655
11672
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11656
11673
|
|
|
11657
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11658
|
-
|
|
11659
11674
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11660
11675
|
|
|
11661
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11662
|
-
|
|
11663
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11664
|
-
|
|
11665
11676
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11666
11677
|
|
|
11678
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11679
|
+
|
|
11667
11680
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11668
11681
|
|
|
11669
11682
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11670
11683
|
|
|
11671
11684
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11672
11685
|
|
|
11673
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11674
|
-
|
|
11675
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11676
|
-
|
|
11677
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11678
|
-
|
|
11679
11686
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11680
11687
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11681
11688
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11682
11689
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11683
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11690
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11684
11691
|
var HLS_GLOBAL = 'Hls';
|
|
11685
11692
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11686
11693
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11689,11 +11696,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11689
11696
|
|
|
11690
11697
|
function canPlay(url) {
|
|
11691
11698
|
if (url instanceof Array) {
|
|
11692
|
-
var
|
|
11693
|
-
|
|
11699
|
+
var _iteratorNormalCompletion = true;
|
|
11700
|
+
var _didIteratorError = false;
|
|
11701
|
+
var _iteratorError = undefined;
|
|
11694
11702
|
|
|
11695
11703
|
try {
|
|
11696
|
-
for (_iterator.
|
|
11704
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11697
11705
|
var item = _step.value;
|
|
11698
11706
|
|
|
11699
11707
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11705,9 +11713,18 @@ function canPlay(url) {
|
|
|
11705
11713
|
}
|
|
11706
11714
|
}
|
|
11707
11715
|
} catch (err) {
|
|
11708
|
-
|
|
11716
|
+
_didIteratorError = true;
|
|
11717
|
+
_iteratorError = err;
|
|
11709
11718
|
} finally {
|
|
11710
|
-
|
|
11719
|
+
try {
|
|
11720
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11721
|
+
_iterator["return"]();
|
|
11722
|
+
}
|
|
11723
|
+
} finally {
|
|
11724
|
+
if (_didIteratorError) {
|
|
11725
|
+
throw _iteratorError;
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11711
11728
|
}
|
|
11712
11729
|
|
|
11713
11730
|
return false;
|
|
@@ -11731,12 +11748,14 @@ function canEnablePIP(url) {
|
|
|
11731
11748
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11732
11749
|
}
|
|
11733
11750
|
|
|
11734
|
-
var FilePlayer =
|
|
11751
|
+
var FilePlayer =
|
|
11752
|
+
/*#__PURE__*/
|
|
11753
|
+
function (_Component) {
|
|
11735
11754
|
_inherits(FilePlayer, _Component);
|
|
11736
11755
|
|
|
11737
|
-
var _super = _createSuper(FilePlayer);
|
|
11738
|
-
|
|
11739
11756
|
function FilePlayer() {
|
|
11757
|
+
var _getPrototypeOf2;
|
|
11758
|
+
|
|
11740
11759
|
var _this;
|
|
11741
11760
|
|
|
11742
11761
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11745,7 +11764,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11745
11764
|
_args[_key] = arguments[_key];
|
|
11746
11765
|
}
|
|
11747
11766
|
|
|
11748
|
-
_this =
|
|
11767
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11749
11768
|
|
|
11750
11769
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11751
11770
|
var _this$props;
|
|
@@ -11832,19 +11851,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11832
11851
|
|
|
11833
11852
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11834
11853
|
if (typeof source === 'string') {
|
|
11835
|
-
return
|
|
11854
|
+
return _react["default"].createElement("source", {
|
|
11836
11855
|
key: index,
|
|
11837
11856
|
src: source
|
|
11838
11857
|
});
|
|
11839
11858
|
}
|
|
11840
11859
|
|
|
11841
|
-
return
|
|
11860
|
+
return _react["default"].createElement("source", _extends({
|
|
11842
11861
|
key: index
|
|
11843
11862
|
}, source));
|
|
11844
11863
|
});
|
|
11845
11864
|
|
|
11846
11865
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11847
|
-
return
|
|
11866
|
+
return _react["default"].createElement("track", _extends({
|
|
11848
11867
|
key: index
|
|
11849
11868
|
}, track));
|
|
11850
11869
|
});
|
|
@@ -11882,10 +11901,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11882
11901
|
key: "componentWillUnmount",
|
|
11883
11902
|
value: function componentWillUnmount() {
|
|
11884
11903
|
this.removeListeners(this.player);
|
|
11885
|
-
|
|
11886
|
-
if (this.hls) {
|
|
11887
|
-
this.hls.destroy();
|
|
11888
|
-
}
|
|
11889
11904
|
}
|
|
11890
11905
|
}, {
|
|
11891
11906
|
key: "addListeners",
|
|
@@ -12016,6 +12031,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12016
12031
|
value: function stop() {
|
|
12017
12032
|
this.player.removeAttribute('src');
|
|
12018
12033
|
|
|
12034
|
+
if (this.hls) {
|
|
12035
|
+
this.hls.destroy();
|
|
12036
|
+
}
|
|
12037
|
+
|
|
12019
12038
|
if (this.dash) {
|
|
12020
12039
|
this.dash.reset();
|
|
12021
12040
|
}
|
|
@@ -12127,7 +12146,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12127
12146
|
width: width === 'auto' ? width : '100%',
|
|
12128
12147
|
height: height === 'auto' ? height : '100%'
|
|
12129
12148
|
};
|
|
12130
|
-
return
|
|
12149
|
+
return _react["default"].createElement(Element, _extends({
|
|
12131
12150
|
ref: this.ref,
|
|
12132
12151
|
src: this.getSource(url),
|
|
12133
12152
|
style: style,
|
|
@@ -12217,16 +12236,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12217
12236
|
|
|
12218
12237
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12219
12238
|
|
|
12220
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12221
|
-
|
|
12222
12239
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12223
12240
|
|
|
12224
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12225
|
-
|
|
12226
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12227
|
-
|
|
12228
12241
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12229
12242
|
|
|
12243
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12244
|
+
|
|
12230
12245
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12231
12246
|
|
|
12232
12247
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12235,12 +12250,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12235
12250
|
|
|
12236
12251
|
var ICON_SIZE = '64px';
|
|
12237
12252
|
|
|
12238
|
-
var Preview =
|
|
12253
|
+
var Preview =
|
|
12254
|
+
/*#__PURE__*/
|
|
12255
|
+
function (_Component) {
|
|
12239
12256
|
_inherits(Preview, _Component);
|
|
12240
12257
|
|
|
12241
|
-
var _super = _createSuper(Preview);
|
|
12242
|
-
|
|
12243
12258
|
function Preview() {
|
|
12259
|
+
var _getPrototypeOf2;
|
|
12260
|
+
|
|
12244
12261
|
var _this;
|
|
12245
12262
|
|
|
12246
12263
|
_classCallCheck(this, Preview);
|
|
@@ -12249,7 +12266,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12249
12266
|
args[_key] = arguments[_key];
|
|
12250
12267
|
}
|
|
12251
12268
|
|
|
12252
|
-
_this =
|
|
12269
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12253
12270
|
|
|
12254
12271
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12255
12272
|
|
|
@@ -12347,15 +12364,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12347
12364
|
}
|
|
12348
12365
|
};
|
|
12349
12366
|
|
|
12350
|
-
var defaultPlayIcon =
|
|
12367
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12351
12368
|
style: styles.shadow,
|
|
12352
12369
|
className: "react-player__shadow"
|
|
12353
|
-
},
|
|
12370
|
+
}, _react["default"].createElement("div", {
|
|
12354
12371
|
style: styles.playIcon,
|
|
12355
12372
|
className: "react-player__play-icon"
|
|
12356
12373
|
}));
|
|
12357
12374
|
|
|
12358
|
-
return
|
|
12375
|
+
return _react["default"].createElement("div", {
|
|
12359
12376
|
style: styles.preview,
|
|
12360
12377
|
className: "react-player__preview",
|
|
12361
12378
|
onClick: onClick
|
|
@@ -12392,12 +12409,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12392
12409
|
|
|
12393
12410
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12394
12411
|
|
|
12395
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12396
|
-
|
|
12397
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12398
|
-
|
|
12399
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12400
|
-
|
|
12401
12412
|
var PRELOAD_PLAYERS = [{
|
|
12402
12413
|
Player: YouTube_1.YouTube,
|
|
12403
12414
|
configKey: 'youtube',
|
|
@@ -12418,16 +12429,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12418
12429
|
|
|
12419
12430
|
function renderPreloadPlayers(url, controls, config) {
|
|
12420
12431
|
var players = [];
|
|
12421
|
-
|
|
12422
|
-
var
|
|
12423
|
-
|
|
12432
|
+
var _iteratorNormalCompletion = true;
|
|
12433
|
+
var _didIteratorError = false;
|
|
12434
|
+
var _iteratorError = undefined;
|
|
12424
12435
|
|
|
12425
12436
|
try {
|
|
12426
|
-
for (_iterator.
|
|
12437
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12427
12438
|
var player = _step.value;
|
|
12428
12439
|
|
|
12429
12440
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12430
|
-
players.push(
|
|
12441
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12431
12442
|
key: player.Player.displayName,
|
|
12432
12443
|
activePlayer: player.Player,
|
|
12433
12444
|
url: player.url,
|
|
@@ -12439,9 +12450,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12439
12450
|
}
|
|
12440
12451
|
}
|
|
12441
12452
|
} catch (err) {
|
|
12442
|
-
|
|
12453
|
+
_didIteratorError = true;
|
|
12454
|
+
_iteratorError = err;
|
|
12443
12455
|
} finally {
|
|
12444
|
-
|
|
12456
|
+
try {
|
|
12457
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12458
|
+
_iterator["return"]();
|
|
12459
|
+
}
|
|
12460
|
+
} finally {
|
|
12461
|
+
if (_didIteratorError) {
|
|
12462
|
+
throw _iteratorError;
|
|
12463
|
+
}
|
|
12464
|
+
}
|
|
12445
12465
|
}
|
|
12446
12466
|
|
|
12447
12467
|
return players;
|
|
@@ -12565,17 +12585,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12565
12585
|
|
|
12566
12586
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12567
12587
|
|
|
12568
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12569
|
-
|
|
12570
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12571
|
-
|
|
12572
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12588
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12573
12589
|
|
|
12574
|
-
function
|
|
12590
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12575
12591
|
|
|
12576
|
-
function
|
|
12592
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12577
12593
|
|
|
12578
|
-
function
|
|
12594
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12579
12595
|
|
|
12580
12596
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12581
12597
|
|
|
@@ -12583,16 +12599,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12583
12599
|
|
|
12584
12600
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12585
12601
|
|
|
12586
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12587
|
-
|
|
12588
12602
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12589
12603
|
|
|
12590
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12591
|
-
|
|
12592
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12593
|
-
|
|
12594
12604
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12595
12605
|
|
|
12606
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12607
|
+
|
|
12596
12608
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12597
12609
|
|
|
12598
12610
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12602,12 +12614,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12602
12614
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12603
12615
|
var customPlayers = [];
|
|
12604
12616
|
|
|
12605
|
-
var ReactPlayer =
|
|
12617
|
+
var ReactPlayer =
|
|
12618
|
+
/*#__PURE__*/
|
|
12619
|
+
function (_Component) {
|
|
12606
12620
|
_inherits(ReactPlayer, _Component);
|
|
12607
12621
|
|
|
12608
|
-
var _super = _createSuper(ReactPlayer);
|
|
12609
|
-
|
|
12610
12622
|
function ReactPlayer() {
|
|
12623
|
+
var _getPrototypeOf2;
|
|
12624
|
+
|
|
12611
12625
|
var _this;
|
|
12612
12626
|
|
|
12613
12627
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12616,7 +12630,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12616
12630
|
args[_key] = arguments[_key];
|
|
12617
12631
|
}
|
|
12618
12632
|
|
|
12619
|
-
_this =
|
|
12633
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12620
12634
|
|
|
12621
12635
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12622
12636
|
|
|
@@ -12727,7 +12741,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12727
12741
|
key: "renderActivePlayer",
|
|
12728
12742
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12729
12743
|
if (!url) return null;
|
|
12730
|
-
return
|
|
12744
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12731
12745
|
key: activePlayer.displayName,
|
|
12732
12746
|
ref: this.activePlayerRef,
|
|
12733
12747
|
config: this.config,
|
|
@@ -12764,14 +12778,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12764
12778
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12765
12779
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12766
12780
|
|
|
12767
|
-
var preview =
|
|
12781
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12768
12782
|
url: url,
|
|
12769
12783
|
light: light,
|
|
12770
12784
|
playIcon: playIcon,
|
|
12771
12785
|
onClick: this.handleClickPreview
|
|
12772
12786
|
});
|
|
12773
12787
|
|
|
12774
|
-
return
|
|
12788
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12775
12789
|
ref: this.wrapperRef,
|
|
12776
12790
|
style: _objectSpread({}, style, {
|
|
12777
12791
|
width: width,
|
|
@@ -13376,7 +13390,7 @@ var Poll = function Poll(_ref) {
|
|
|
13376
13390
|
);
|
|
13377
13391
|
};
|
|
13378
13392
|
|
|
13379
|
-
var numberOfPaginations = main.
|
|
13393
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
13380
13394
|
|
|
13381
13395
|
var Quiz = function Quiz(_ref) {
|
|
13382
13396
|
var quizzes = _ref.quizzes,
|
|
@@ -13466,7 +13480,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13466
13480
|
var renderPagination = function renderPagination() {
|
|
13467
13481
|
return React__default.createElement(
|
|
13468
13482
|
Pagination,
|
|
13469
|
-
{ className: 'p-0 m-0', size: main.
|
|
13483
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
13470
13484
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13471
13485
|
return changePage('first');
|
|
13472
13486
|
}, disabled: currentPage === 1 }),
|
|
@@ -13630,7 +13644,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13630
13644
|
};
|
|
13631
13645
|
|
|
13632
13646
|
var Figure = dynamic(function () {
|
|
13633
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
13647
|
+
return Promise.resolve().then(function () { return require('./Figure-6805ef02.js'); });
|
|
13634
13648
|
}, { ssr: false });
|
|
13635
13649
|
|
|
13636
13650
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13852,7 +13866,7 @@ var Feature = function Feature(props) {
|
|
|
13852
13866
|
};
|
|
13853
13867
|
//image width
|
|
13854
13868
|
var imageWidth = 900;
|
|
13855
|
-
if (main.
|
|
13869
|
+
if (main.main_36) {
|
|
13856
13870
|
imageWidth = 450;
|
|
13857
13871
|
}
|
|
13858
13872
|
|
|
@@ -14204,16 +14218,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14204
14218
|
_ref$className = _ref.className,
|
|
14205
14219
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14206
14220
|
|
|
14207
|
-
/*
|
|
14208
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14209
|
-
example:
|
|
14210
|
-
<RelatedTopicDropdown
|
|
14211
|
-
page='/clinical'
|
|
14212
|
-
exclude="clinical"
|
|
14213
|
-
className='mb-3'
|
|
14214
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14215
|
-
subTaxonomies={props.subTaxonomies}
|
|
14216
|
-
/>
|
|
14221
|
+
/*
|
|
14222
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14223
|
+
example:
|
|
14224
|
+
<RelatedTopicDropdown
|
|
14225
|
+
page='/clinical'
|
|
14226
|
+
exclude="clinical"
|
|
14227
|
+
className='mb-3'
|
|
14228
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14229
|
+
subTaxonomies={props.subTaxonomies}
|
|
14230
|
+
/>
|
|
14217
14231
|
*/
|
|
14218
14232
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14219
14233
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14251,25 +14265,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14251
14265
|
}
|
|
14252
14266
|
};
|
|
14253
14267
|
|
|
14254
|
-
/*
|
|
14255
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14256
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14257
|
-
|
|
14258
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14259
|
-
|
|
14260
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14261
|
-
|
|
14262
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14263
|
-
...,
|
|
14264
|
-
'ancestor': parent->parent->identifier,
|
|
14265
|
-
'parent': parent->identifier,
|
|
14266
|
-
'path': identifier
|
|
14267
|
-
},
|
|
14268
|
-
'document_group': documentGroup-> {
|
|
14269
|
-
name,
|
|
14270
|
-
'parent': parent->identifier,
|
|
14271
|
-
'path': identifier.current
|
|
14272
|
-
}
|
|
14268
|
+
/*
|
|
14269
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14270
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14271
|
+
|
|
14272
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14273
|
+
|
|
14274
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14275
|
+
|
|
14276
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14277
|
+
...,
|
|
14278
|
+
'ancestor': parent->parent->identifier,
|
|
14279
|
+
'parent': parent->identifier,
|
|
14280
|
+
'path': identifier
|
|
14281
|
+
},
|
|
14282
|
+
'document_group': documentGroup-> {
|
|
14283
|
+
name,
|
|
14284
|
+
'parent': parent->identifier,
|
|
14285
|
+
'path': identifier.current
|
|
14286
|
+
}
|
|
14273
14287
|
*/
|
|
14274
14288
|
|
|
14275
14289
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15177,34 +15191,34 @@ var GridHero = function GridHero(props) {
|
|
|
15177
15191
|
);
|
|
15178
15192
|
};
|
|
15179
15193
|
|
|
15180
|
-
/*
|
|
15181
|
-
Sample query
|
|
15182
|
-
let references = ''
|
|
15183
|
-
if(article.taxonomyMapping.length > 0){
|
|
15184
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15185
|
-
references = references + `references('${ref._ref}') `
|
|
15186
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15187
|
-
references = references + ` && `
|
|
15188
|
-
}
|
|
15189
|
-
})
|
|
15190
|
-
}
|
|
15191
|
-
|
|
15192
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15193
|
-
...,
|
|
15194
|
-
title,
|
|
15195
|
-
summary,
|
|
15196
|
-
thumbnail,
|
|
15197
|
-
url,
|
|
15198
|
-
published,
|
|
15199
|
-
authorMapping[]->,
|
|
15200
|
-
contentCategory->
|
|
15201
|
-
}`
|
|
15202
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15203
|
-
|
|
15204
|
-
Sample usage
|
|
15205
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15206
|
-
|
|
15207
|
-
|
|
15194
|
+
/*
|
|
15195
|
+
Sample query
|
|
15196
|
+
let references = ''
|
|
15197
|
+
if(article.taxonomyMapping.length > 0){
|
|
15198
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15199
|
+
references = references + `references('${ref._ref}') `
|
|
15200
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15201
|
+
references = references + ` && `
|
|
15202
|
+
}
|
|
15203
|
+
})
|
|
15204
|
+
}
|
|
15205
|
+
|
|
15206
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15207
|
+
...,
|
|
15208
|
+
title,
|
|
15209
|
+
summary,
|
|
15210
|
+
thumbnail,
|
|
15211
|
+
url,
|
|
15212
|
+
published,
|
|
15213
|
+
authorMapping[]->,
|
|
15214
|
+
contentCategory->
|
|
15215
|
+
}`
|
|
15216
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15217
|
+
|
|
15218
|
+
Sample usage
|
|
15219
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15220
|
+
|
|
15221
|
+
|
|
15208
15222
|
*/
|
|
15209
15223
|
var RelatedContent = function RelatedContent(props) {
|
|
15210
15224
|
var client = props.client,
|
|
@@ -15271,21 +15285,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15271
15285
|
);
|
|
15272
15286
|
};
|
|
15273
15287
|
|
|
15274
|
-
/*
|
|
15275
|
-
Example usage - targetedonc.com/latest-conference
|
|
15276
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15277
|
-
...,
|
|
15278
|
-
title,
|
|
15279
|
-
summary,
|
|
15280
|
-
thumbnail,
|
|
15281
|
-
url,
|
|
15282
|
-
published,
|
|
15283
|
-
documentGroup->,
|
|
15284
|
-
contentCategory->,
|
|
15285
|
-
'pageNumber': ${currentPage}
|
|
15286
|
-
}`
|
|
15287
|
-
|
|
15288
|
-
const posts = await client.fetch(query, params)
|
|
15288
|
+
/*
|
|
15289
|
+
Example usage - targetedonc.com/latest-conference
|
|
15290
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15291
|
+
...,
|
|
15292
|
+
title,
|
|
15293
|
+
summary,
|
|
15294
|
+
thumbnail,
|
|
15295
|
+
url,
|
|
15296
|
+
published,
|
|
15297
|
+
documentGroup->,
|
|
15298
|
+
contentCategory->,
|
|
15299
|
+
'pageNumber': ${currentPage}
|
|
15300
|
+
}`
|
|
15301
|
+
|
|
15302
|
+
const posts = await client.fetch(query, params)
|
|
15289
15303
|
*/
|
|
15290
15304
|
|
|
15291
15305
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16551,7 +16565,7 @@ var Article = function Article(props) {
|
|
|
16551
16565
|
React__default.createElement('br', null),
|
|
16552
16566
|
React__default.createElement('br', null)
|
|
16553
16567
|
),
|
|
16554
|
-
main.
|
|
16568
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
16555
16569
|
if (index === 0) {
|
|
16556
16570
|
return React__default.createElement(
|
|
16557
16571
|
'div',
|
|
@@ -16576,7 +16590,7 @@ var Article = function Article(props) {
|
|
|
16576
16590
|
renderIsiContent(props.article)
|
|
16577
16591
|
)
|
|
16578
16592
|
),
|
|
16579
|
-
main.
|
|
16593
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
16580
16594
|
if (index > 0) {
|
|
16581
16595
|
return React__default.createElement(
|
|
16582
16596
|
'div',
|
|
@@ -16683,7 +16697,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16683
16697
|
setQueueData = _useState2[1];
|
|
16684
16698
|
|
|
16685
16699
|
var refreshAD = function refreshAD(path) {
|
|
16686
|
-
if (!main.
|
|
16700
|
+
if (!main.main_36) {
|
|
16687
16701
|
var activeArticle = queueData.find(function (item) {
|
|
16688
16702
|
return item.url.current === path;
|
|
16689
16703
|
});
|
|
@@ -16793,27 +16807,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16793
16807
|
};
|
|
16794
16808
|
|
|
16795
16809
|
var KMTracker = function KMTracker(props) {
|
|
16796
|
-
|
|
16810
|
+
var id = props.id;
|
|
16797
16811
|
|
|
16798
|
-
|
|
16812
|
+
if (document && id) {
|
|
16799
16813
|
(function () {
|
|
16800
|
-
|
|
16814
|
+
var ecnJquery = document.createElement('script');
|
|
16801
16815
|
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16816
|
+
ecnJquery.type = 'text/javascript';
|
|
16817
|
+
ecnJquery.async = true;
|
|
16818
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16805
16819
|
|
|
16806
|
-
|
|
16820
|
+
var ecnScript = document.createElement('script');
|
|
16807
16821
|
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16822
|
+
ecnScript.type = 'text/javascript';
|
|
16823
|
+
ecnScript.async = true;
|
|
16824
|
+
ecnScript.id = 'km-tracker';
|
|
16825
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16812
16826
|
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16816
|
-
|
|
16827
|
+
document.head.appendChild(ecnJquery);
|
|
16828
|
+
document.head.appendChild(ecnScript);
|
|
16829
|
+
})();
|
|
16830
|
+
}
|
|
16817
16831
|
};
|
|
16818
16832
|
|
|
16819
16833
|
var returnFormField = function returnFormField(_ref) {
|
|
@@ -18840,6 +18854,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
18840
18854
|
if (value != null) {
|
|
18841
18855
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
18842
18856
|
var desc = $gOPD(value, parts[i]);
|
|
18857
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
18858
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
18859
|
+
}
|
|
18843
18860
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
18844
18861
|
} else {
|
|
18845
18862
|
value = value[parts[i]];
|
|
@@ -18872,7 +18889,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
18872
18889
|
return intrinsic;
|
|
18873
18890
|
};
|
|
18874
18891
|
|
|
18875
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
18892
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
18893
|
+
|
|
18894
|
+
if ($defineProperty) {
|
|
18895
|
+
try {
|
|
18896
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
18897
|
+
} catch (e) {
|
|
18898
|
+
// IE 8 has a broken defineProperty
|
|
18899
|
+
$defineProperty = null;
|
|
18900
|
+
}
|
|
18901
|
+
}
|
|
18876
18902
|
|
|
18877
18903
|
|
|
18878
18904
|
|
|
@@ -19015,42 +19041,28 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19015
19041
|
return obj;
|
|
19016
19042
|
};
|
|
19017
19043
|
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19026
|
-
|
|
19027
|
-
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19028
|
-
return false;
|
|
19044
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19045
|
+
if ($gOPD$1) {
|
|
19046
|
+
try {
|
|
19047
|
+
$gOPD$1([], 'length');
|
|
19048
|
+
} catch (e) {
|
|
19049
|
+
// IE 8 has a broken gOPD
|
|
19050
|
+
$gOPD$1 = null;
|
|
19029
19051
|
}
|
|
19052
|
+
}
|
|
19030
19053
|
|
|
19031
|
-
|
|
19032
|
-
};
|
|
19033
|
-
|
|
19034
|
-
var isPrimitive$1 = function isPrimitive(value) {
|
|
19035
|
-
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19036
|
-
};
|
|
19037
|
-
|
|
19038
|
-
var $Object = GetIntrinsic('%Object%');
|
|
19039
|
-
|
|
19054
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19040
19055
|
|
|
19056
|
+
var $Array = GetIntrinsic('%Array%');
|
|
19041
19057
|
|
|
19042
|
-
|
|
19043
|
-
var $
|
|
19058
|
+
// eslint-disable-next-line global-require
|
|
19059
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19044
19060
|
|
|
19045
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-
|
|
19061
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19046
19062
|
|
|
19047
|
-
var
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
}
|
|
19051
|
-
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
19052
|
-
return true;
|
|
19053
|
-
};
|
|
19063
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19064
|
+
return toStr$4(argument) === '[object Array]';
|
|
19065
|
+
};
|
|
19054
19066
|
|
|
19055
19067
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19056
19068
|
|
|
@@ -19058,60 +19070,66 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
19058
19070
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19059
19071
|
};
|
|
19060
19072
|
|
|
19061
|
-
var
|
|
19062
|
-
|
|
19063
|
-
};
|
|
19073
|
+
var regexExec = RegExp.prototype.exec;
|
|
19074
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19064
19075
|
|
|
19065
|
-
|
|
19076
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19077
|
+
try {
|
|
19078
|
+
var lastIndex = value.lastIndex;
|
|
19079
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19066
19080
|
|
|
19067
|
-
|
|
19068
|
-
if (x === y) { // 0 === -0, but they are not identical.
|
|
19069
|
-
if (x === 0) { return 1 / x === 1 / y; }
|
|
19081
|
+
regexExec.call(value);
|
|
19070
19082
|
return true;
|
|
19083
|
+
} catch (e) {
|
|
19084
|
+
return false;
|
|
19085
|
+
} finally {
|
|
19086
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19071
19087
|
}
|
|
19072
|
-
return _isNaN(x) && _isNaN(y);
|
|
19073
19088
|
};
|
|
19089
|
+
var toStr$5 = Object.prototype.toString;
|
|
19090
|
+
var regexClass = '[object RegExp]';
|
|
19091
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19074
19092
|
|
|
19075
|
-
var
|
|
19076
|
-
|
|
19093
|
+
var isRegex = function isRegex(value) {
|
|
19094
|
+
if (!value || typeof value !== 'object') {
|
|
19095
|
+
return false;
|
|
19096
|
+
}
|
|
19097
|
+
if (!hasToStringTag) {
|
|
19098
|
+
return toStr$5.call(value) === regexClass;
|
|
19099
|
+
}
|
|
19077
19100
|
|
|
19101
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
19102
|
+
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19103
|
+
if (!hasLastIndexDataProperty) {
|
|
19104
|
+
return false;
|
|
19105
|
+
}
|
|
19078
19106
|
|
|
19107
|
+
return tryRegexExecCall(value);
|
|
19108
|
+
};
|
|
19079
19109
|
|
|
19110
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19080
19111
|
|
|
19112
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19081
19113
|
|
|
19114
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19082
19115
|
|
|
19083
19116
|
|
|
19084
19117
|
|
|
19085
19118
|
|
|
19086
19119
|
|
|
19087
|
-
// https://
|
|
19120
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
19088
19121
|
|
|
19089
|
-
var
|
|
19090
|
-
if (
|
|
19091
|
-
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
19092
|
-
}
|
|
19093
|
-
if (!IsPropertyKey(P)) {
|
|
19094
|
-
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
19095
|
-
}
|
|
19096
|
-
var oldDesc = $gOPD$1(O, P);
|
|
19097
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
19098
|
-
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19099
|
-
if (immutable || !extensible) {
|
|
19122
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
19123
|
+
if (!argument || typeof argument !== 'object') {
|
|
19100
19124
|
return false;
|
|
19101
19125
|
}
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
O,
|
|
19107
|
-
P,
|
|
19108
|
-
{
|
|
19109
|
-
'[[Configurable]]': true,
|
|
19110
|
-
'[[Enumerable]]': true,
|
|
19111
|
-
'[[Value]]': V,
|
|
19112
|
-
'[[Writable]]': true
|
|
19126
|
+
if ($match) {
|
|
19127
|
+
var isRegExp = argument[$match];
|
|
19128
|
+
if (typeof isRegExp !== 'undefined') {
|
|
19129
|
+
return ToBoolean(isRegExp);
|
|
19113
19130
|
}
|
|
19114
|
-
|
|
19131
|
+
}
|
|
19132
|
+
return isRegex(argument);
|
|
19115
19133
|
};
|
|
19116
19134
|
|
|
19117
19135
|
var fnToStr = Function.prototype.toString;
|
|
@@ -19135,18 +19153,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
19135
19153
|
return false;
|
|
19136
19154
|
}
|
|
19137
19155
|
};
|
|
19138
|
-
var toStr$
|
|
19156
|
+
var toStr$6 = Object.prototype.toString;
|
|
19139
19157
|
var fnClass = '[object Function]';
|
|
19140
19158
|
var genClass = '[object GeneratorFunction]';
|
|
19141
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19159
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19142
19160
|
|
|
19143
19161
|
var isCallable = function isCallable(value) {
|
|
19144
19162
|
if (!value) { return false; }
|
|
19145
19163
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19146
19164
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19147
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19165
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
19148
19166
|
if (isES6ClassFn(value)) { return false; }
|
|
19149
|
-
var strClass = toStr$
|
|
19167
|
+
var strClass = toStr$6.call(value);
|
|
19150
19168
|
return strClass === fnClass || strClass === genClass;
|
|
19151
19169
|
};
|
|
19152
19170
|
|
|
@@ -19154,24 +19172,204 @@ var isCallable = function isCallable(value) {
|
|
|
19154
19172
|
|
|
19155
19173
|
var IsCallable = isCallable;
|
|
19156
19174
|
|
|
19157
|
-
var $TypeError$
|
|
19158
|
-
|
|
19159
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19175
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19160
19176
|
|
|
19161
|
-
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19162
|
-
if (value == null) {
|
|
19163
|
-
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
19164
|
-
}
|
|
19165
|
-
return value;
|
|
19166
|
-
};
|
|
19167
19177
|
|
|
19168
|
-
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19169
19178
|
|
|
19170
|
-
var $Object$1 = GetIntrinsic('%Object%');
|
|
19171
19179
|
|
|
19172
19180
|
|
|
19181
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19173
19182
|
|
|
19174
|
-
|
|
19183
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19184
|
+
if (Type$1(Obj) !== 'Object') {
|
|
19185
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19186
|
+
}
|
|
19187
|
+
|
|
19188
|
+
var desc = {};
|
|
19189
|
+
if (src$1(Obj, 'enumerable')) {
|
|
19190
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19191
|
+
}
|
|
19192
|
+
if (src$1(Obj, 'configurable')) {
|
|
19193
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19194
|
+
}
|
|
19195
|
+
if (src$1(Obj, 'value')) {
|
|
19196
|
+
desc['[[Value]]'] = Obj.value;
|
|
19197
|
+
}
|
|
19198
|
+
if (src$1(Obj, 'writable')) {
|
|
19199
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19200
|
+
}
|
|
19201
|
+
if (src$1(Obj, 'get')) {
|
|
19202
|
+
var getter = Obj.get;
|
|
19203
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19204
|
+
throw new TypeError('getter must be a function');
|
|
19205
|
+
}
|
|
19206
|
+
desc['[[Get]]'] = getter;
|
|
19207
|
+
}
|
|
19208
|
+
if (src$1(Obj, 'set')) {
|
|
19209
|
+
var setter = Obj.set;
|
|
19210
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19211
|
+
throw new $TypeError$2('setter must be a function');
|
|
19212
|
+
}
|
|
19213
|
+
desc['[[Set]]'] = setter;
|
|
19214
|
+
}
|
|
19215
|
+
|
|
19216
|
+
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
19217
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
19218
|
+
}
|
|
19219
|
+
return desc;
|
|
19220
|
+
};
|
|
19221
|
+
|
|
19222
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19223
|
+
|
|
19224
|
+
|
|
19225
|
+
|
|
19226
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
19227
|
+
|
|
19228
|
+
|
|
19229
|
+
|
|
19230
|
+
|
|
19231
|
+
|
|
19232
|
+
|
|
19233
|
+
|
|
19234
|
+
|
|
19235
|
+
|
|
19236
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
19237
|
+
|
|
19238
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
19239
|
+
if (Type$1(O) !== 'Object') {
|
|
19240
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
19241
|
+
}
|
|
19242
|
+
if (!IsPropertyKey(P)) {
|
|
19243
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
19244
|
+
}
|
|
19245
|
+
if (!src$1(O, P)) {
|
|
19246
|
+
return void 0;
|
|
19247
|
+
}
|
|
19248
|
+
if (!getOwnPropertyDescriptor) {
|
|
19249
|
+
// ES3 / IE 8 fallback
|
|
19250
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
19251
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
19252
|
+
return {
|
|
19253
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
19254
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
19255
|
+
'[[Value]]': O[P],
|
|
19256
|
+
'[[Writable]]': true
|
|
19257
|
+
};
|
|
19258
|
+
}
|
|
19259
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
19260
|
+
};
|
|
19261
|
+
|
|
19262
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19263
|
+
|
|
19264
|
+
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
19265
|
+
if (typeof Desc === 'undefined') {
|
|
19266
|
+
return false;
|
|
19267
|
+
}
|
|
19268
|
+
|
|
19269
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19270
|
+
|
|
19271
|
+
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19272
|
+
return false;
|
|
19273
|
+
}
|
|
19274
|
+
|
|
19275
|
+
return true;
|
|
19276
|
+
};
|
|
19277
|
+
|
|
19278
|
+
var isPrimitive$1 = function isPrimitive(value) {
|
|
19279
|
+
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19280
|
+
};
|
|
19281
|
+
|
|
19282
|
+
var $Object = GetIntrinsic('%Object%');
|
|
19283
|
+
|
|
19284
|
+
|
|
19285
|
+
|
|
19286
|
+
var $preventExtensions = $Object.preventExtensions;
|
|
19287
|
+
var $isExtensible = $Object.isExtensible;
|
|
19288
|
+
|
|
19289
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
19290
|
+
|
|
19291
|
+
var IsExtensible = $preventExtensions
|
|
19292
|
+
? function IsExtensible(obj) {
|
|
19293
|
+
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19294
|
+
}
|
|
19295
|
+
: function IsExtensible(obj) {
|
|
19296
|
+
return !isPrimitive$1(obj);
|
|
19297
|
+
};
|
|
19298
|
+
|
|
19299
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19300
|
+
return a !== a;
|
|
19301
|
+
};
|
|
19302
|
+
|
|
19303
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
19304
|
+
|
|
19305
|
+
var SameValue = function SameValue(x, y) {
|
|
19306
|
+
if (x === y) { // 0 === -0, but they are not identical.
|
|
19307
|
+
if (x === 0) { return 1 / x === 1 / y; }
|
|
19308
|
+
return true;
|
|
19309
|
+
}
|
|
19310
|
+
return _isNaN(x) && _isNaN(y);
|
|
19311
|
+
};
|
|
19312
|
+
|
|
19313
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
19314
|
+
|
|
19315
|
+
|
|
19316
|
+
|
|
19317
|
+
|
|
19318
|
+
|
|
19319
|
+
|
|
19320
|
+
|
|
19321
|
+
|
|
19322
|
+
|
|
19323
|
+
|
|
19324
|
+
|
|
19325
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
19326
|
+
|
|
19327
|
+
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19328
|
+
if (Type$1(O) !== 'Object') {
|
|
19329
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
19330
|
+
}
|
|
19331
|
+
if (!IsPropertyKey(P)) {
|
|
19332
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
19333
|
+
}
|
|
19334
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
19335
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
19336
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19337
|
+
if (immutable || !extensible) {
|
|
19338
|
+
return false;
|
|
19339
|
+
}
|
|
19340
|
+
return DefineOwnProperty(
|
|
19341
|
+
IsDataDescriptor,
|
|
19342
|
+
SameValue,
|
|
19343
|
+
FromPropertyDescriptor,
|
|
19344
|
+
O,
|
|
19345
|
+
P,
|
|
19346
|
+
{
|
|
19347
|
+
'[[Configurable]]': true,
|
|
19348
|
+
'[[Enumerable]]': true,
|
|
19349
|
+
'[[Value]]': V,
|
|
19350
|
+
'[[Writable]]': true
|
|
19351
|
+
}
|
|
19352
|
+
);
|
|
19353
|
+
};
|
|
19354
|
+
|
|
19355
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
19356
|
+
|
|
19357
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19358
|
+
|
|
19359
|
+
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19360
|
+
if (value == null) {
|
|
19361
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
19362
|
+
}
|
|
19363
|
+
return value;
|
|
19364
|
+
};
|
|
19365
|
+
|
|
19366
|
+
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19367
|
+
|
|
19368
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
19369
|
+
|
|
19370
|
+
|
|
19371
|
+
|
|
19372
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
19175
19373
|
|
|
19176
19374
|
var ToObject = function ToObject(value) {
|
|
19177
19375
|
RequireObjectCoercible(value);
|
|
@@ -19231,241 +19429,6 @@ defineProperties_1(implementation$2, {
|
|
|
19231
19429
|
|
|
19232
19430
|
var object_getownpropertydescriptors = implementation$2;
|
|
19233
19431
|
|
|
19234
|
-
/* globals
|
|
19235
|
-
Atomics,
|
|
19236
|
-
SharedArrayBuffer,
|
|
19237
|
-
*/
|
|
19238
|
-
|
|
19239
|
-
var undefined$2;
|
|
19240
|
-
|
|
19241
|
-
var $TypeError$4 = TypeError;
|
|
19242
|
-
|
|
19243
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
19244
|
-
if ($gOPD$3) {
|
|
19245
|
-
try {
|
|
19246
|
-
$gOPD$3({}, '');
|
|
19247
|
-
} catch (e) {
|
|
19248
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
19249
|
-
}
|
|
19250
|
-
}
|
|
19251
|
-
|
|
19252
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
19253
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
19254
|
-
? (function () {
|
|
19255
|
-
try {
|
|
19256
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
19257
|
-
arguments.callee; // IE 8 does not throw here
|
|
19258
|
-
return throwTypeError$1;
|
|
19259
|
-
} catch (calleeThrows) {
|
|
19260
|
-
try {
|
|
19261
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
19262
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
19263
|
-
} catch (gOPDthrows) {
|
|
19264
|
-
return throwTypeError$1;
|
|
19265
|
-
}
|
|
19266
|
-
}
|
|
19267
|
-
}())
|
|
19268
|
-
: throwTypeError$1;
|
|
19269
|
-
|
|
19270
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
19271
|
-
|
|
19272
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
19273
|
-
var generatorFunction$1 = undefined$2;
|
|
19274
|
-
var asyncFunction$1 = undefined$2;
|
|
19275
|
-
var asyncGenFunction$1 = undefined$2;
|
|
19276
|
-
|
|
19277
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
19278
|
-
|
|
19279
|
-
var INTRINSICS$1 = {
|
|
19280
|
-
'%Array%': Array,
|
|
19281
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
19282
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
19283
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
19284
|
-
'%ArrayPrototype%': Array.prototype,
|
|
19285
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
19286
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
19287
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
19288
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
19289
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
19290
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
19291
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
19292
|
-
'%AsyncGenerator%': undefined$2,
|
|
19293
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
19294
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
19295
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
19296
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
19297
|
-
'%Boolean%': Boolean,
|
|
19298
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
19299
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
19300
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
19301
|
-
'%Date%': Date,
|
|
19302
|
-
'%DatePrototype%': Date.prototype,
|
|
19303
|
-
'%decodeURI%': decodeURI,
|
|
19304
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
19305
|
-
'%encodeURI%': encodeURI,
|
|
19306
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
19307
|
-
'%Error%': Error,
|
|
19308
|
-
'%ErrorPrototype%': Error.prototype,
|
|
19309
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
19310
|
-
'%EvalError%': EvalError,
|
|
19311
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
19312
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
19313
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
19314
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
19315
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
19316
|
-
'%Function%': Function,
|
|
19317
|
-
'%FunctionPrototype%': Function.prototype,
|
|
19318
|
-
'%Generator%': undefined$2,
|
|
19319
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
19320
|
-
'%GeneratorPrototype%': undefined$2,
|
|
19321
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
19322
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19323
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
19324
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19325
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
19326
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
19327
|
-
'%isFinite%': isFinite,
|
|
19328
|
-
'%isNaN%': isNaN,
|
|
19329
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
19330
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
19331
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
19332
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
19333
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
19334
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
19335
|
-
'%Math%': Math,
|
|
19336
|
-
'%Number%': Number,
|
|
19337
|
-
'%NumberPrototype%': Number.prototype,
|
|
19338
|
-
'%Object%': Object,
|
|
19339
|
-
'%ObjectPrototype%': Object.prototype,
|
|
19340
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
19341
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
19342
|
-
'%parseFloat%': parseFloat,
|
|
19343
|
-
'%parseInt%': parseInt,
|
|
19344
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
19345
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
19346
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
19347
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
19348
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
19349
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
19350
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
19351
|
-
'%RangeError%': RangeError,
|
|
19352
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
19353
|
-
'%ReferenceError%': ReferenceError,
|
|
19354
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
19355
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
19356
|
-
'%RegExp%': RegExp,
|
|
19357
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
19358
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
19359
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
19360
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
19361
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
19362
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
19363
|
-
'%String%': String,
|
|
19364
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
19365
|
-
'%StringPrototype%': String.prototype,
|
|
19366
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
19367
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
19368
|
-
'%SyntaxError%': SyntaxError,
|
|
19369
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
19370
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
19371
|
-
'%TypedArray%': TypedArray$1,
|
|
19372
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
19373
|
-
'%TypeError%': $TypeError$4,
|
|
19374
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
19375
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
19376
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
19377
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
19378
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
19379
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
19380
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
19381
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
19382
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
19383
|
-
'%URIError%': URIError,
|
|
19384
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
19385
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
19386
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
19387
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
19388
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
19389
|
-
};
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
19393
|
-
|
|
19394
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19395
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19396
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19397
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
19398
|
-
var result = [];
|
|
19399
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
19400
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
19401
|
-
});
|
|
19402
|
-
return result;
|
|
19403
|
-
};
|
|
19404
|
-
/* end adaptation */
|
|
19405
|
-
|
|
19406
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
19407
|
-
if (!(name in INTRINSICS$1)) {
|
|
19408
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19409
|
-
}
|
|
19410
|
-
|
|
19411
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
19412
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
19413
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19414
|
-
}
|
|
19415
|
-
|
|
19416
|
-
return INTRINSICS$1[name];
|
|
19417
|
-
};
|
|
19418
|
-
|
|
19419
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
19420
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
19421
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
19422
|
-
}
|
|
19423
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19424
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
19425
|
-
}
|
|
19426
|
-
|
|
19427
|
-
var parts = stringToPath$1(name);
|
|
19428
|
-
|
|
19429
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
19430
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
19431
|
-
if (value != null) {
|
|
19432
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
19433
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
19434
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
19435
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19436
|
-
}
|
|
19437
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19438
|
-
} else {
|
|
19439
|
-
value = value[parts[i]];
|
|
19440
|
-
}
|
|
19441
|
-
}
|
|
19442
|
-
}
|
|
19443
|
-
return value;
|
|
19444
|
-
};
|
|
19445
|
-
|
|
19446
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
19447
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
19448
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
19449
|
-
|
|
19450
|
-
var callBind$1 = function callBind() {
|
|
19451
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
19452
|
-
};
|
|
19453
|
-
|
|
19454
|
-
var apply$1 = function applyBind() {
|
|
19455
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
19456
|
-
};
|
|
19457
|
-
callBind$1.apply = apply$1;
|
|
19458
|
-
|
|
19459
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
19460
|
-
|
|
19461
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
19462
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
19463
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
19464
|
-
return callBind$1(intrinsic);
|
|
19465
|
-
}
|
|
19466
|
-
return intrinsic;
|
|
19467
|
-
};
|
|
19468
|
-
|
|
19469
19432
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
19470
19433
|
&& typeof Object.defineProperties === 'function';
|
|
19471
19434
|
|
|
@@ -19483,14 +19446,14 @@ if (typeof Promise !== 'function') {
|
|
|
19483
19446
|
|
|
19484
19447
|
|
|
19485
19448
|
|
|
19486
|
-
var $slice = callBound
|
|
19487
|
-
var $concat$1 = callBound
|
|
19488
|
-
var $forEach = callBound
|
|
19449
|
+
var $slice = callBound('Array.prototype.slice');
|
|
19450
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
19451
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
19489
19452
|
|
|
19490
|
-
var hasSymbols$
|
|
19453
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
19491
19454
|
|
|
19492
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
19493
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
19455
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
19456
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
19494
19457
|
|
|
19495
19458
|
var implementation$3 = function promisify(orig) {
|
|
19496
19459
|
if (typeof orig !== 'function') {
|
|
@@ -19500,7 +19463,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
19500
19463
|
throw error;
|
|
19501
19464
|
}
|
|
19502
19465
|
|
|
19503
|
-
if (hasSymbols$
|
|
19466
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
19504
19467
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
19505
19468
|
if (typeof customFunction !== 'function') {
|
|
19506
19469
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -19629,324 +19592,6 @@ function connect() {
|
|
|
19629
19592
|
|
|
19630
19593
|
var db = connect;
|
|
19631
19594
|
|
|
19632
|
-
var crypt = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19633
|
-
(function() {
|
|
19634
|
-
var base64map
|
|
19635
|
-
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
19636
|
-
|
|
19637
|
-
crypt = {
|
|
19638
|
-
// Bit-wise rotation left
|
|
19639
|
-
rotl: function(n, b) {
|
|
19640
|
-
return (n << b) | (n >>> (32 - b));
|
|
19641
|
-
},
|
|
19642
|
-
|
|
19643
|
-
// Bit-wise rotation right
|
|
19644
|
-
rotr: function(n, b) {
|
|
19645
|
-
return (n << (32 - b)) | (n >>> b);
|
|
19646
|
-
},
|
|
19647
|
-
|
|
19648
|
-
// Swap big-endian to little-endian and vice versa
|
|
19649
|
-
endian: function(n) {
|
|
19650
|
-
// If number given, swap endian
|
|
19651
|
-
if (n.constructor == Number) {
|
|
19652
|
-
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
19653
|
-
}
|
|
19654
|
-
|
|
19655
|
-
// Else, assume array and swap all items
|
|
19656
|
-
for (var i = 0; i < n.length; i++)
|
|
19657
|
-
n[i] = crypt.endian(n[i]);
|
|
19658
|
-
return n;
|
|
19659
|
-
},
|
|
19660
|
-
|
|
19661
|
-
// Generate an array of any length of random bytes
|
|
19662
|
-
randomBytes: function(n) {
|
|
19663
|
-
for (var bytes = []; n > 0; n--)
|
|
19664
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
19665
|
-
return bytes;
|
|
19666
|
-
},
|
|
19667
|
-
|
|
19668
|
-
// Convert a byte array to big-endian 32-bit words
|
|
19669
|
-
bytesToWords: function(bytes) {
|
|
19670
|
-
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
19671
|
-
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
19672
|
-
return words;
|
|
19673
|
-
},
|
|
19674
|
-
|
|
19675
|
-
// Convert big-endian 32-bit words to a byte array
|
|
19676
|
-
wordsToBytes: function(words) {
|
|
19677
|
-
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
19678
|
-
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
19679
|
-
return bytes;
|
|
19680
|
-
},
|
|
19681
|
-
|
|
19682
|
-
// Convert a byte array to a hex string
|
|
19683
|
-
bytesToHex: function(bytes) {
|
|
19684
|
-
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
19685
|
-
hex.push((bytes[i] >>> 4).toString(16));
|
|
19686
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
|
19687
|
-
}
|
|
19688
|
-
return hex.join('');
|
|
19689
|
-
},
|
|
19690
|
-
|
|
19691
|
-
// Convert a hex string to a byte array
|
|
19692
|
-
hexToBytes: function(hex) {
|
|
19693
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
19694
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
19695
|
-
return bytes;
|
|
19696
|
-
},
|
|
19697
|
-
|
|
19698
|
-
// Convert a byte array to a base-64 string
|
|
19699
|
-
bytesToBase64: function(bytes) {
|
|
19700
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
19701
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
19702
|
-
for (var j = 0; j < 4; j++)
|
|
19703
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
19704
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
19705
|
-
else
|
|
19706
|
-
base64.push('=');
|
|
19707
|
-
}
|
|
19708
|
-
return base64.join('');
|
|
19709
|
-
},
|
|
19710
|
-
|
|
19711
|
-
// Convert a base-64 string to a byte array
|
|
19712
|
-
base64ToBytes: function(base64) {
|
|
19713
|
-
// Remove non-base-64 characters
|
|
19714
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
19715
|
-
|
|
19716
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
19717
|
-
imod4 = ++i % 4) {
|
|
19718
|
-
if (imod4 == 0) continue;
|
|
19719
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
19720
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
19721
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
19722
|
-
}
|
|
19723
|
-
return bytes;
|
|
19724
|
-
}
|
|
19725
|
-
};
|
|
19726
|
-
|
|
19727
|
-
module.exports = crypt;
|
|
19728
|
-
})();
|
|
19729
|
-
});
|
|
19730
|
-
|
|
19731
|
-
var charenc = {
|
|
19732
|
-
// UTF-8 encoding
|
|
19733
|
-
utf8: {
|
|
19734
|
-
// Convert a string to a byte array
|
|
19735
|
-
stringToBytes: function(str) {
|
|
19736
|
-
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
19737
|
-
},
|
|
19738
|
-
|
|
19739
|
-
// Convert a byte array to a string
|
|
19740
|
-
bytesToString: function(bytes) {
|
|
19741
|
-
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
19742
|
-
}
|
|
19743
|
-
},
|
|
19744
|
-
|
|
19745
|
-
// Binary encoding
|
|
19746
|
-
bin: {
|
|
19747
|
-
// Convert a string to a byte array
|
|
19748
|
-
stringToBytes: function(str) {
|
|
19749
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
|
19750
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
19751
|
-
return bytes;
|
|
19752
|
-
},
|
|
19753
|
-
|
|
19754
|
-
// Convert a byte array to a string
|
|
19755
|
-
bytesToString: function(bytes) {
|
|
19756
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
|
19757
|
-
str.push(String.fromCharCode(bytes[i]));
|
|
19758
|
-
return str.join('');
|
|
19759
|
-
}
|
|
19760
|
-
}
|
|
19761
|
-
};
|
|
19762
|
-
|
|
19763
|
-
var charenc_1 = charenc;
|
|
19764
|
-
|
|
19765
|
-
/*!
|
|
19766
|
-
* Determine if an object is a Buffer
|
|
19767
|
-
*
|
|
19768
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19769
|
-
* @license MIT
|
|
19770
|
-
*/
|
|
19771
|
-
|
|
19772
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
19773
|
-
// Object.prototype.constructor. Remove this eventually
|
|
19774
|
-
var isBuffer_1$1 = function (obj) {
|
|
19775
|
-
return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
19776
|
-
};
|
|
19777
|
-
|
|
19778
|
-
function isBuffer$1 (obj) {
|
|
19779
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
19780
|
-
}
|
|
19781
|
-
|
|
19782
|
-
// For Node v0.10 support. Remove this eventually.
|
|
19783
|
-
function isSlowBuffer (obj) {
|
|
19784
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
|
|
19785
|
-
}
|
|
19786
|
-
|
|
19787
|
-
var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19788
|
-
(function(){
|
|
19789
|
-
var crypt$1 = crypt,
|
|
19790
|
-
utf8 = charenc_1.utf8,
|
|
19791
|
-
isBuffer = isBuffer_1$1,
|
|
19792
|
-
bin = charenc_1.bin,
|
|
19793
|
-
|
|
19794
|
-
// The core
|
|
19795
|
-
md5 = function (message, options) {
|
|
19796
|
-
// Convert to byte array
|
|
19797
|
-
if (message.constructor == String)
|
|
19798
|
-
if (options && options.encoding === 'binary')
|
|
19799
|
-
message = bin.stringToBytes(message);
|
|
19800
|
-
else
|
|
19801
|
-
message = utf8.stringToBytes(message);
|
|
19802
|
-
else if (isBuffer(message))
|
|
19803
|
-
message = Array.prototype.slice.call(message, 0);
|
|
19804
|
-
else if (!Array.isArray(message))
|
|
19805
|
-
message = message.toString();
|
|
19806
|
-
// else, assume byte array already
|
|
19807
|
-
|
|
19808
|
-
var m = crypt$1.bytesToWords(message),
|
|
19809
|
-
l = message.length * 8,
|
|
19810
|
-
a = 1732584193,
|
|
19811
|
-
b = -271733879,
|
|
19812
|
-
c = -1732584194,
|
|
19813
|
-
d = 271733878;
|
|
19814
|
-
|
|
19815
|
-
// Swap endian
|
|
19816
|
-
for (var i = 0; i < m.length; i++) {
|
|
19817
|
-
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
19818
|
-
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
19819
|
-
}
|
|
19820
|
-
|
|
19821
|
-
// Padding
|
|
19822
|
-
m[l >>> 5] |= 0x80 << (l % 32);
|
|
19823
|
-
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
19824
|
-
|
|
19825
|
-
// Method shortcuts
|
|
19826
|
-
var FF = md5._ff,
|
|
19827
|
-
GG = md5._gg,
|
|
19828
|
-
HH = md5._hh,
|
|
19829
|
-
II = md5._ii;
|
|
19830
|
-
|
|
19831
|
-
for (var i = 0; i < m.length; i += 16) {
|
|
19832
|
-
|
|
19833
|
-
var aa = a,
|
|
19834
|
-
bb = b,
|
|
19835
|
-
cc = c,
|
|
19836
|
-
dd = d;
|
|
19837
|
-
|
|
19838
|
-
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
19839
|
-
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
19840
|
-
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
19841
|
-
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
19842
|
-
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
19843
|
-
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
19844
|
-
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
19845
|
-
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
19846
|
-
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
19847
|
-
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
19848
|
-
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
19849
|
-
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
19850
|
-
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
19851
|
-
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
19852
|
-
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
19853
|
-
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
19854
|
-
|
|
19855
|
-
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
19856
|
-
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
19857
|
-
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
19858
|
-
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
19859
|
-
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
19860
|
-
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
19861
|
-
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
19862
|
-
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
19863
|
-
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
19864
|
-
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
19865
|
-
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
19866
|
-
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
19867
|
-
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
19868
|
-
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
19869
|
-
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
19870
|
-
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
19871
|
-
|
|
19872
|
-
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
19873
|
-
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
19874
|
-
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
19875
|
-
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
19876
|
-
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
19877
|
-
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
19878
|
-
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
19879
|
-
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
19880
|
-
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
19881
|
-
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
19882
|
-
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
19883
|
-
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
19884
|
-
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
19885
|
-
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
19886
|
-
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
19887
|
-
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
19888
|
-
|
|
19889
|
-
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
19890
|
-
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
19891
|
-
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
19892
|
-
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
19893
|
-
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
19894
|
-
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
19895
|
-
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
19896
|
-
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
19897
|
-
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
19898
|
-
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
19899
|
-
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
19900
|
-
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
19901
|
-
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
19902
|
-
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
19903
|
-
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
19904
|
-
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
19905
|
-
|
|
19906
|
-
a = (a + aa) >>> 0;
|
|
19907
|
-
b = (b + bb) >>> 0;
|
|
19908
|
-
c = (c + cc) >>> 0;
|
|
19909
|
-
d = (d + dd) >>> 0;
|
|
19910
|
-
}
|
|
19911
|
-
|
|
19912
|
-
return crypt$1.endian([a, b, c, d]);
|
|
19913
|
-
};
|
|
19914
|
-
|
|
19915
|
-
// Auxiliary functions
|
|
19916
|
-
md5._ff = function (a, b, c, d, x, s, t) {
|
|
19917
|
-
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
19918
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19919
|
-
};
|
|
19920
|
-
md5._gg = function (a, b, c, d, x, s, t) {
|
|
19921
|
-
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
19922
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19923
|
-
};
|
|
19924
|
-
md5._hh = function (a, b, c, d, x, s, t) {
|
|
19925
|
-
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
19926
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19927
|
-
};
|
|
19928
|
-
md5._ii = function (a, b, c, d, x, s, t) {
|
|
19929
|
-
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
19930
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19931
|
-
};
|
|
19932
|
-
|
|
19933
|
-
// Package private blocksize
|
|
19934
|
-
md5._blocksize = 16;
|
|
19935
|
-
md5._digestsize = 16;
|
|
19936
|
-
|
|
19937
|
-
module.exports = function (message, options) {
|
|
19938
|
-
if (message === undefined || message === null)
|
|
19939
|
-
throw new Error('Illegal argument ' + message);
|
|
19940
|
-
|
|
19941
|
-
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
19942
|
-
return options && options.asBytes ? digestbytes :
|
|
19943
|
-
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
19944
|
-
crypt$1.bytesToHex(digestbytes);
|
|
19945
|
-
};
|
|
19946
|
-
|
|
19947
|
-
})();
|
|
19948
|
-
});
|
|
19949
|
-
|
|
19950
19595
|
var _this$3 = undefined;
|
|
19951
19596
|
|
|
19952
19597
|
var config = {
|