@mjhls/mjh-framework 1.0.326 → 1.0.327

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.
Files changed (62) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/{ADInfeed-b042a194.js → ADInfeed-d58f7a88.js} +1 -1
  3. package/dist/cjs/{AdSlot-c5bff604.js → AdSlot-c8f07bcf.js} +3 -3
  4. package/dist/cjs/DeckContent.js +18 -18
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-9ede68c7.js → Dfp-fc16f64b.js} +2 -2
  7. package/dist/cjs/{Figure-a47ec3a7.js → Figure-6805ef02.js} +1 -1
  8. package/dist/cjs/{GridContent-9f212ec5.js → GridContent-70d80f27.js} +12 -12
  9. package/dist/cjs/GridContent.js +11 -11
  10. package/dist/cjs/GroupDeck.js +4 -4
  11. package/dist/cjs/IssueContentDeck.js +1 -1
  12. package/dist/cjs/IssueDeck.js +1 -1
  13. package/dist/cjs/MasterDeck.js +16 -16
  14. package/dist/cjs/{Normal-c85aee96.js → Normal-cc2f9b2f.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +11 -11
  17. package/dist/cjs/{TaxonomyCard-e36602e8.js → TaxonomyCard-0b6bc8db.js} +1 -1
  18. package/dist/cjs/TaxonomyCard.js +2 -2
  19. package/dist/cjs/TemplateNormal.js +6 -6
  20. package/dist/cjs/ThumbnailCard.js +1 -1
  21. package/dist/cjs/VideoSeriesListing.js +3 -3
  22. package/dist/cjs/YoutubeGroup.js +4 -4
  23. package/dist/cjs/{debounce-528ad412.js → debounce-ba3eaee2.js} +6 -4
  24. package/dist/cjs/{get-3b23d857.js → get-de2660c3.js} +1 -1
  25. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  26. package/dist/cjs/index.js +805 -1185
  27. package/dist/cjs/{inherits-7548e3e8.js → inherits-d1613ef1.js} +1 -1
  28. package/dist/cjs/{main-987c23c6.js → main-6a82a5d2.js} +35 -66
  29. package/dist/cjs/{promise-3b44b2a3.js → promise-60431c75.js} +2 -2
  30. package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-82ec1016.js} +1 -1
  31. package/dist/cjs/{visibility-sensor-c2ccc22d.js → visibility-sensor-b72d9527.js} +2 -4
  32. package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-c42432d8.js} +1 -1
  33. package/dist/esm/{AdSlot-8946358f.js → AdSlot-4a85e252.js} +3 -3
  34. package/dist/esm/DeckContent.js +18 -18
  35. package/dist/esm/DeckQueue.js +8 -8
  36. package/dist/esm/{Dfp-9293acfb.js → Dfp-1cde9792.js} +2 -2
  37. package/dist/esm/{Figure-584ac0c8.js → Figure-ddfa279d.js} +1 -1
  38. package/dist/esm/{GridContent-13be42a1.js → GridContent-55e6512a.js} +12 -12
  39. package/dist/esm/GridContent.js +11 -11
  40. package/dist/esm/GroupDeck.js +4 -4
  41. package/dist/esm/IssueContentDeck.js +1 -1
  42. package/dist/esm/IssueDeck.js +1 -1
  43. package/dist/esm/MasterDeck.js +16 -16
  44. package/dist/esm/{Normal-cbddc3c0.js → Normal-63478e2d.js} +39 -39
  45. package/dist/esm/PublicationDeck.js +1 -1
  46. package/dist/esm/QueueDeckExpanded.js +11 -11
  47. package/dist/esm/{TaxonomyCard-89325080.js → TaxonomyCard-c036f1c3.js} +1 -1
  48. package/dist/esm/TaxonomyCard.js +2 -2
  49. package/dist/esm/TemplateNormal.js +6 -6
  50. package/dist/esm/ThumbnailCard.js +1 -1
  51. package/dist/esm/VideoSeriesListing.js +3 -3
  52. package/dist/esm/YoutubeGroup.js +4 -4
  53. package/dist/esm/{debounce-702eb224.js → debounce-93ab8f80.js} +6 -4
  54. package/dist/esm/{get-36d03764.js → get-9c285a85.js} +1 -1
  55. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  56. package/dist/esm/index.js +808 -1188
  57. package/dist/esm/{inherits-4b85034c.js → inherits-424c89e9.js} +1 -1
  58. package/dist/esm/{main-cb86f95d.js → main-9ae8991d.js} +34 -65
  59. package/dist/esm/{promise-86cb8313.js → promise-e4a5eb9f.js} +2 -2
  60. package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-ec38f5fe.js} +1 -1
  61. package/dist/esm/{visibility-sensor-3cea5efb.js → visibility-sensor-336093e1.js} +2 -4
  62. 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-528ad412.js');
11
- var main = require('./main-987c23c6.js');
12
- var toConsumableArray = require('./toConsumableArray-34b5e9a7.js');
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-7548e3e8.js');
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-c2ccc22d.js');
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-b5eb3ff8.js');
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-c5bff604.js');
32
- require('./promise-3b44b2a3.js');
33
- require('./ADInfeed-b042a194.js');
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-3b23d857.js');
36
- var GridContent = require('./GridContent-9f212ec5.js');
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-e36602e8.js');
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-c85aee96.js');
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.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
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.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
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.main_39) {
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.main_39) {
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(true),
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 < minScreenWidth) {
2973
- setWidthFlag(false);
2973
+ if (window && window.innerWidth > minScreenWidth) {
2974
+ setWidthFlag(true);
2974
2975
  }
2975
2976
  }, [minScreenWidth]);
2976
2977
 
@@ -3297,18 +3298,21 @@ var Slideshow = function Slideshow(_ref) {
3297
3298
  );
3298
3299
  };
3299
3300
 
3300
- // do not edit .js files directly - edit src/index.jst
3301
-
3302
-
3301
+ var isArray = Array.isArray;
3302
+ var keyList = Object.keys;
3303
+ var hasProp = Object.prototype.hasOwnProperty;
3303
3304
 
3304
3305
  var fastDeepEqual = function equal(a, b) {
3305
3306
  if (a === b) return true;
3306
3307
 
3307
3308
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3308
- if (a.constructor !== b.constructor) return false;
3309
+ var arrA = isArray(a)
3310
+ , arrB = isArray(b)
3311
+ , i
3312
+ , length
3313
+ , key;
3309
3314
 
3310
- var length, i, keys;
3311
- if (Array.isArray(a)) {
3315
+ if (arrA && arrB) {
3312
3316
  length = a.length;
3313
3317
  if (length != b.length) return false;
3314
3318
  for (i = length; i-- !== 0;)
@@ -3316,29 +3320,35 @@ var fastDeepEqual = function equal(a, b) {
3316
3320
  return true;
3317
3321
  }
3318
3322
 
3323
+ if (arrA != arrB) return false;
3319
3324
 
3325
+ var dateA = a instanceof Date
3326
+ , dateB = b instanceof Date;
3327
+ if (dateA != dateB) return false;
3328
+ if (dateA && dateB) return a.getTime() == b.getTime();
3320
3329
 
3321
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3322
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3323
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3330
+ var regexpA = a instanceof RegExp
3331
+ , regexpB = b instanceof RegExp;
3332
+ if (regexpA != regexpB) return false;
3333
+ if (regexpA && regexpB) return a.toString() == b.toString();
3324
3334
 
3325
- keys = Object.keys(a);
3335
+ var keys = keyList(a);
3326
3336
  length = keys.length;
3327
- if (length !== Object.keys(b).length) return false;
3337
+
3338
+ if (length !== keyList(b).length)
3339
+ return false;
3328
3340
 
3329
3341
  for (i = length; i-- !== 0;)
3330
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3342
+ if (!hasProp.call(b, keys[i])) return false;
3331
3343
 
3332
3344
  for (i = length; i-- !== 0;) {
3333
- var key = keys[i];
3334
-
3345
+ key = keys[i];
3335
3346
  if (!equal(a[key], b[key])) return false;
3336
3347
  }
3337
3348
 
3338
3349
  return true;
3339
3350
  }
3340
3351
 
3341
- // true if both NaN, false otherwise
3342
3352
  return a!==a && b!==b;
3343
3353
  };
3344
3354
 
@@ -4361,7 +4371,7 @@ function formatValue(ctx, value, recurseTimes) {
4361
4371
  var base = '', array = false, braces = ['{', '}'];
4362
4372
 
4363
4373
  // Make Array say that they are Array
4364
- if (isArray(value)) {
4374
+ if (isArray$1(value)) {
4365
4375
  array = true;
4366
4376
  braces = ['[', ']'];
4367
4377
  }
@@ -4540,7 +4550,7 @@ function reduceToSingleString(output, base, braces) {
4540
4550
 
4541
4551
  // NOTE: These type checking functions intentionally don't use `instanceof`
4542
4552
  // because it is fragile and can be easily faked with `Object.create()`.
4543
- function isArray(ar) {
4553
+ function isArray$1(ar) {
4544
4554
  return Array.isArray(ar);
4545
4555
  }
4546
4556
 
@@ -4667,7 +4677,7 @@ var util = {
4667
4677
  isNullOrUndefined: isNullOrUndefined,
4668
4678
  isNull: isNull,
4669
4679
  isBoolean: isBoolean,
4670
- isArray: isArray,
4680
+ isArray: isArray$1,
4671
4681
  inspect: inspect,
4672
4682
  deprecate: deprecate,
4673
4683
  format: format,
@@ -5334,235 +5344,199 @@ module.exports = exports['default'];
5334
5344
 
5335
5345
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5336
5346
 
5337
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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); }; }
5347
+ 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; }; }();
5346
5348
 
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; } }
5352
-
5353
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
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); }
5349
+ 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
5350
 
5357
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5351
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5358
5352
 
5359
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5353
+ 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
5354
 
5361
- 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; }
5355
+ 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
5356
 
5363
- 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; }
5364
- /**
5365
- * Check whether a `props` change should result in the video being updated.
5366
- *
5367
- * @param {Object} prevProps
5368
- * @param {Object} props
5357
+ /**
5358
+ * Check whether a `props` change should result in the video being updated.
5359
+ *
5360
+ * @param {Object} prevProps
5361
+ * @param {Object} props
5369
5362
  */
5370
-
5371
5363
  function shouldUpdateVideo(prevProps, props) {
5372
5364
  // A changing video should always trigger an update
5373
5365
  if (prevProps.videoId !== props.videoId) {
5374
5366
  return true;
5375
- } // Otherwise, a change in the start/end time playerVars also requires a player
5376
- // update.
5377
-
5367
+ }
5378
5368
 
5369
+ // Otherwise, a change in the start/end time playerVars also requires a player
5370
+ // update.
5379
5371
  var prevVars = prevProps.opts.playerVars || {};
5380
5372
  var vars = props.opts.playerVars || {};
5373
+
5381
5374
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5382
5375
  }
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
5376
 
5377
+ /**
5378
+ * Neutralise API options that only require a video update, leaving only options
5379
+ * that require a player reset. The results can then be compared to see if a
5380
+ * player reset is necessary.
5381
+ *
5382
+ * @param {Object} opts
5383
+ */
5392
5384
  function filterResetOptions(opts) {
5393
- return _objectSpread({}, opts, {
5394
- playerVars: _objectSpread({}, opts.playerVars, {
5385
+ return _extends({}, opts, {
5386
+ playerVars: _extends({}, opts.playerVars, {
5395
5387
  autoplay: 0,
5396
5388
  start: 0,
5397
5389
  end: 0
5398
5390
  })
5399
5391
  });
5400
5392
  }
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
5393
 
5394
+ /**
5395
+ * Check whether a `props` change should result in the player being reset.
5396
+ * The player is reset when the `props.opts` change, except if the only change
5397
+ * is in the `start` and `end` playerVars, because a video update can deal with
5398
+ * those.
5399
+ *
5400
+ * @param {Object} prevProps
5401
+ * @param {Object} props
5402
+ */
5412
5403
  function shouldResetPlayer(prevProps, props) {
5413
5404
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5414
5405
  }
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
5406
 
5407
+ /**
5408
+ * Check whether a props change should result in an id or className update.
5409
+ *
5410
+ * @param {Object} prevProps
5411
+ * @param {Object} props
5412
+ */
5423
5413
  function shouldUpdatePlayer(prevProps, props) {
5424
5414
  return prevProps.id !== props.id || prevProps.className !== props.className;
5425
5415
  }
5426
5416
 
5427
- var YouTube = /*#__PURE__*/function (_React$Component) {
5417
+ var YouTube = function (_React$Component) {
5428
5418
  _inherits(YouTube, _React$Component);
5429
5419
 
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
5420
  function YouTube(props) {
5438
- var _this;
5439
-
5440
5421
  _classCallCheck(this, YouTube);
5441
5422
 
5442
- _this = _super.call(this, props);
5423
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5443
5424
 
5444
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5425
+ _this.onPlayerReady = function (event) {
5445
5426
  return _this.props.onReady(event);
5446
- });
5427
+ };
5447
5428
 
5448
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5429
+ _this.onPlayerError = function (event) {
5449
5430
  return _this.props.onError(event);
5450
- });
5431
+ };
5451
5432
 
5452
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5433
+ _this.onPlayerStateChange = function (event) {
5453
5434
  _this.props.onStateChange(event);
5454
-
5455
5435
  switch (event.data) {
5436
+
5456
5437
  case YouTube.PlayerState.ENDED:
5457
5438
  _this.props.onEnd(event);
5458
-
5459
5439
  break;
5460
5440
 
5461
5441
  case YouTube.PlayerState.PLAYING:
5462
5442
  _this.props.onPlay(event);
5463
-
5464
5443
  break;
5465
5444
 
5466
5445
  case YouTube.PlayerState.PAUSED:
5467
5446
  _this.props.onPause(event);
5468
-
5469
5447
  break;
5470
5448
  }
5471
- });
5449
+ };
5472
5450
 
5473
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5451
+ _this.onPlayerPlaybackRateChange = function (event) {
5474
5452
  return _this.props.onPlaybackRateChange(event);
5475
- });
5453
+ };
5476
5454
 
5477
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5455
+ _this.onPlayerPlaybackQualityChange = function (event) {
5478
5456
  return _this.props.onPlaybackQualityChange(event);
5479
- });
5457
+ };
5480
5458
 
5481
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5459
+ _this.createPlayer = function () {
5482
5460
  // do not attempt to create a player server-side, it won't work
5483
- if (typeof document === 'undefined') return; // create player
5484
-
5485
- var playerOpts = _objectSpread({}, _this.props.opts, {
5461
+ if (typeof document === 'undefined') return;
5462
+ // create player
5463
+ var playerOpts = _extends({}, _this.props.opts, {
5486
5464
  // preload the `videoId` video if one is already given
5487
5465
  videoId: _this.props.videoId
5488
5466
  });
5489
-
5490
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5491
-
5467
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5468
+ // attach event handlers
5492
5469
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5493
-
5494
5470
  _this.internalPlayer.on('error', _this.onPlayerError);
5495
-
5496
5471
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5497
-
5498
5472
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5499
-
5500
5473
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5501
- });
5474
+ };
5502
5475
 
5503
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5476
+ _this.resetPlayer = function () {
5504
5477
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5505
- });
5478
+ };
5506
5479
 
5507
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5480
+ _this.updatePlayer = function () {
5508
5481
  _this.internalPlayer.getIframe().then(function (iframe) {
5509
5482
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5510
5483
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5511
5484
  });
5512
- });
5485
+ };
5513
5486
 
5514
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5487
+ _this.updateVideo = function () {
5515
5488
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5516
5489
  _this.internalPlayer.stopVideo();
5517
-
5518
5490
  return;
5519
- } // set queueing options
5520
-
5491
+ }
5521
5492
 
5493
+ // set queueing options
5522
5494
  var autoplay = false;
5523
5495
  var opts = {
5524
5496
  videoId: _this.props.videoId
5525
5497
  };
5526
-
5527
5498
  if ('playerVars' in _this.props.opts) {
5528
5499
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5529
-
5530
5500
  if ('start' in _this.props.opts.playerVars) {
5531
5501
  opts.startSeconds = _this.props.opts.playerVars.start;
5532
5502
  }
5533
-
5534
5503
  if ('end' in _this.props.opts.playerVars) {
5535
5504
  opts.endSeconds = _this.props.opts.playerVars.end;
5536
5505
  }
5537
- } // if autoplay is enabled loadVideoById
5538
-
5506
+ }
5539
5507
 
5508
+ // if autoplay is enabled loadVideoById
5540
5509
  if (autoplay) {
5541
5510
  _this.internalPlayer.loadVideoById(opts);
5542
-
5543
5511
  return;
5544
- } // default behaviour just cues the video
5545
-
5546
-
5512
+ }
5513
+ // default behaviour just cues the video
5547
5514
  _this.internalPlayer.cueVideoById(opts);
5548
- });
5515
+ };
5549
5516
 
5550
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5517
+ _this.refContainer = function (container) {
5551
5518
  _this.container = container;
5552
- });
5519
+ };
5553
5520
 
5554
5521
  _this.container = null;
5555
5522
  _this.internalPlayer = null;
5556
5523
  return _this;
5557
5524
  }
5558
5525
 
5526
+ /**
5527
+ * Expose PlayerState constants for convenience. These constants can also be
5528
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5529
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5530
+ */
5531
+
5532
+
5559
5533
  _createClass(YouTube, [{
5560
- key: "componentDidMount",
5534
+ key: 'componentDidMount',
5561
5535
  value: function componentDidMount() {
5562
5536
  this.createPlayer();
5563
5537
  }
5564
5538
  }, {
5565
- key: "componentDidUpdate",
5539
+ key: 'componentDidUpdate',
5566
5540
  value: function componentDidUpdate(prevProps) {
5567
5541
  if (shouldUpdatePlayer(prevProps, this.props)) {
5568
5542
  this.updatePlayer();
@@ -5577,58 +5551,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5577
5551
  }
5578
5552
  }
5579
5553
  }, {
5580
- key: "componentWillUnmount",
5554
+ key: 'componentWillUnmount',
5581
5555
  value: function componentWillUnmount() {
5582
- /**
5583
- * Note: The `youtube-player` package that is used promisifies all YouTube
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.
5556
+ /**
5557
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5558
+ * Player API calls, which introduces a delay of a tick before it actually
5559
+ * gets destroyed. Since React attempts to remove the element instantly
5560
+ * this method isn't quick enough to reset the container element.
5587
5561
  */
5588
5562
  this.internalPlayer.destroy();
5589
5563
  }
5590
- /**
5591
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5592
- *
5593
- * @param {Object} event
5594
- * @param {Object} target - player object
5564
+
5565
+ /**
5566
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5567
+ *
5568
+ * @param {Object} event
5569
+ * @param {Object} target - player object
5570
+ */
5571
+
5572
+
5573
+ /**
5574
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5575
+ *
5576
+ * @param {Object} event
5577
+ * @param {Integer} data - error type
5578
+ * @param {Object} target - player object
5579
+ */
5580
+
5581
+
5582
+ /**
5583
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5584
+ *
5585
+ * @param {Object} event
5586
+ * @param {Integer} data - status change type
5587
+ * @param {Object} target - actual YT player
5588
+ */
5589
+
5590
+
5591
+ /**
5592
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5593
+ *
5594
+ * @param {Object} event
5595
+ * @param {Float} data - playback rate
5596
+ * @param {Object} target - actual YT player
5597
+ */
5598
+
5599
+
5600
+ /**
5601
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5602
+ *
5603
+ * @param {Object} event
5604
+ * @param {String} data - playback quality
5605
+ * @param {Object} target - actual YT player
5606
+ */
5607
+
5608
+
5609
+ /**
5610
+ * Initialize the Youtube Player API on the container and attach event handlers
5611
+ */
5612
+
5613
+
5614
+ /**
5615
+ * Shorthand for destroying and then re-creating the Youtube Player
5616
+ */
5617
+
5618
+
5619
+ /**
5620
+ * Method to update the id and class of the Youtube Player iframe.
5621
+ * React should update this automatically but since the Youtube Player API
5622
+ * replaced the DIV that is mounted by React we need to do this manually.
5623
+ */
5624
+
5625
+
5626
+ /**
5627
+ * Call Youtube Player API methods to update the currently playing video.
5628
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5629
+ * Youtube Player API methods to update the video.
5595
5630
  */
5596
5631
 
5597
5632
  }, {
5598
- key: "render",
5633
+ key: 'render',
5599
5634
  value: function render() {
5600
- return /*#__PURE__*/React__default.createElement("div", {
5601
- className: this.props.containerClassName
5602
- }, /*#__PURE__*/React__default.createElement("div", {
5603
- id: this.props.id,
5604
- className: this.props.className,
5605
- ref: this.refContainer
5606
- }));
5635
+ return React__default.createElement(
5636
+ 'div',
5637
+ { className: this.props.containerClassName },
5638
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5639
+ );
5607
5640
  }
5608
5641
  }]);
5609
5642
 
5610
5643
  return YouTube;
5611
5644
  }(React__default.Component);
5612
5645
 
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
5646
  YouTube.propTypes = {
5623
5647
  videoId: PropTypes.string,
5648
+
5624
5649
  // custom ID for player element
5625
5650
  id: PropTypes.string,
5651
+
5626
5652
  // custom class name for player element
5627
5653
  className: PropTypes.string,
5628
5654
  // custom class name for player container element
5629
5655
  containerClassName: PropTypes.string,
5656
+
5630
5657
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5631
5658
  opts: PropTypes.objectOf(PropTypes.any),
5659
+
5632
5660
  // event subscriptions
5633
5661
  onReady: PropTypes.func,
5634
5662
  onError: PropTypes.func,
@@ -5640,7 +5668,6 @@ YouTube.propTypes = {
5640
5668
  onPlaybackQualityChange: PropTypes.func
5641
5669
  };
5642
5670
  YouTube.defaultProps = {
5643
- videoId: null,
5644
5671
  id: null,
5645
5672
  className: null,
5646
5673
  opts: {},
@@ -5654,6 +5681,14 @@ YouTube.defaultProps = {
5654
5681
  onPlaybackRateChange: function onPlaybackRateChange() {},
5655
5682
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5656
5683
  };
5684
+ YouTube.PlayerState = {
5685
+ UNSTARTED: -1,
5686
+ ENDED: 0,
5687
+ PLAYING: 1,
5688
+ PAUSED: 2,
5689
+ BUFFERING: 3,
5690
+ CUED: 5
5691
+ };
5657
5692
 
5658
5693
  var YouTubePlayer = function YouTubePlayer(_ref) {
5659
5694
  var url = _ref.url;
@@ -6677,8 +6712,8 @@ var window_1 = win;
6677
6712
 
6678
6713
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6679
6714
 
6680
- function _extends() {
6681
- _extends = Object.assign || function (target) {
6715
+ function _extends$1() {
6716
+ _extends$1 = Object.assign || function (target) {
6682
6717
  for (var i = 1; i < arguments.length; i++) {
6683
6718
  var source = arguments[i];
6684
6719
 
@@ -6692,7 +6727,7 @@ function _extends() {
6692
6727
  return target;
6693
6728
  };
6694
6729
 
6695
- return _extends.apply(this, arguments);
6730
+ return _extends$1.apply(this, arguments);
6696
6731
  }
6697
6732
 
6698
6733
  function _inheritsLoose(subClass, superClass) {
@@ -6701,7 +6736,7 @@ function _inheritsLoose(subClass, superClass) {
6701
6736
  subClass.__proto__ = superClass;
6702
6737
  }
6703
6738
 
6704
- function _assertThisInitialized$1(self) {
6739
+ function _assertThisInitialized(self) {
6705
6740
  if (self === void 0) {
6706
6741
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6707
6742
  }
@@ -6711,8 +6746,8 @@ function _assertThisInitialized$1(self) {
6711
6746
 
6712
6747
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6713
6748
 
6714
- function _extends$1() {
6715
- _extends$1 = Object.assign || function (target) {
6749
+ function _extends$1$1() {
6750
+ _extends$1$1 = Object.assign || function (target) {
6716
6751
  for (var i = 1; i < arguments.length; i++) {
6717
6752
  var source = arguments[i];
6718
6753
 
@@ -6726,7 +6761,7 @@ function _extends$1() {
6726
6761
  return target;
6727
6762
  };
6728
6763
 
6729
- return _extends$1.apply(this, arguments);
6764
+ return _extends$1$1.apply(this, arguments);
6730
6765
  }
6731
6766
 
6732
6767
  var version$1 = "1.7.1";
@@ -6734,7 +6769,7 @@ var version$1 = "1.7.1";
6734
6769
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6735
6770
  var version$1$1 = "1.2.0";
6736
6771
 
6737
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6772
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6738
6773
  return typeof obj;
6739
6774
  } : function (obj) {
6740
6775
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6869,7 +6904,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6869
6904
 
6870
6905
  var qs = '';
6871
6906
 
6872
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6907
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6873
6908
  qs = getQueryString(queryParams);
6874
6909
  }
6875
6910
 
@@ -7103,7 +7138,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7103
7138
  el.style.width = '100%';
7104
7139
  el.style.height = '100%';
7105
7140
 
7106
- var responsive = _extends$1({
7141
+ var responsive = _extends$1$1({
7107
7142
  aspectRatio: DEFAULT_ASPECT_RATIO,
7108
7143
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7109
7144
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7788,7 +7823,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7788
7823
 
7789
7824
 
7790
7825
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7791
- var params = _extends$1({}, DEFAULTS, parameters);
7826
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7792
7827
 
7793
7828
  var Promise = params.Promise,
7794
7829
  onSuccess = params.onSuccess,
@@ -7930,7 +7965,7 @@ function (_React$Component) {
7930
7965
  _this.refNode = ref;
7931
7966
  };
7932
7967
 
7933
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7968
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7934
7969
  return _this;
7935
7970
  }
7936
7971
  /**
@@ -7951,7 +7986,7 @@ function (_React$Component) {
7951
7986
  var userSuccess = this.props.onSuccess;
7952
7987
  var userFailure = this.props.onFailure;
7953
7988
 
7954
- var options = _extends({}, this.props, {
7989
+ var options = _extends$1({}, this.props, {
7955
7990
  refNode: this.refNode,
7956
7991
  refNodeInsert: 'append',
7957
7992
  onSuccess: function onSuccess(_ref) {
@@ -8260,7 +8295,7 @@ function (_React$Component) {
8260
8295
  ;
8261
8296
 
8262
8297
  _proto.render = function render() {
8263
- var props = _extends({
8298
+ var props = _extends$1({
8264
8299
  className: 'brightcove-react-player-loader'
8265
8300
  }, this.props.attrs, {
8266
8301
  ref: this.setRefNode
@@ -8676,17 +8711,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8676
8711
 
8677
8712
  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
8713
 
8679
- 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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
8680
-
8681
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8682
-
8683
- 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."); }
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); }
8714
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8686
8715
 
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; }
8716
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8688
8717
 
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; }
8718
+ 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
8719
 
8691
8720
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8692
8721
 
@@ -8816,12 +8845,12 @@ function getSDK(url, sdkGlobal) {
8816
8845
 
8817
8846
  function getConfig(props$1, defaultProps, showWarning) {
8818
8847
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8819
-
8820
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8821
- _step;
8848
+ var _iteratorNormalCompletion = true;
8849
+ var _didIteratorError = false;
8850
+ var _iteratorError = undefined;
8822
8851
 
8823
8852
  try {
8824
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8853
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8825
8854
  var p = _step.value;
8826
8855
 
8827
8856
  if (props$1[p]) {
@@ -8836,9 +8865,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8836
8865
  }
8837
8866
  }
8838
8867
  } catch (err) {
8839
- _iterator.e(err);
8868
+ _didIteratorError = true;
8869
+ _iteratorError = err;
8840
8870
  } finally {
8841
- _iterator.f();
8871
+ try {
8872
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8873
+ _iterator["return"]();
8874
+ }
8875
+ } finally {
8876
+ if (_didIteratorError) {
8877
+ throw _iteratorError;
8878
+ }
8879
+ }
8842
8880
  }
8843
8881
 
8844
8882
  return config;
@@ -8985,16 +9023,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8985
9023
 
8986
9024
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8987
9025
 
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
9026
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8991
9027
 
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
9028
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8997
9029
 
9030
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9031
+
8998
9032
  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
9033
 
9000
9034
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9003,12 +9037,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9003
9037
 
9004
9038
  var SEEK_ON_PLAY_EXPIRY = 5000;
9005
9039
 
9006
- var Player = /*#__PURE__*/function (_Component) {
9040
+ var Player =
9041
+ /*#__PURE__*/
9042
+ function (_Component) {
9007
9043
  _inherits(Player, _Component);
9008
9044
 
9009
- var _super = _createSuper(Player);
9010
-
9011
9045
  function Player() {
9046
+ var _getPrototypeOf2;
9047
+
9012
9048
  var _this;
9013
9049
 
9014
9050
  _classCallCheck(this, Player);
@@ -9017,7 +9053,7 @@ var Player = /*#__PURE__*/function (_Component) {
9017
9053
  _args[_key] = arguments[_key];
9018
9054
  }
9019
9055
 
9020
- _this = _super.call.apply(_super, [this].concat(_args));
9056
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
9021
9057
 
9022
9058
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9023
9059
 
@@ -9342,7 +9378,7 @@ var Player = /*#__PURE__*/function (_Component) {
9342
9378
  return null;
9343
9379
  }
9344
9380
 
9345
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9381
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9346
9382
  ref: this.ref,
9347
9383
  onReady: this.handleReady,
9348
9384
  onPlay: this.handlePlay,
@@ -9403,16 +9439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9403
9439
 
9404
9440
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9405
9441
 
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
9442
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9409
9443
 
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
9444
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9415
9445
 
9446
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9447
+
9416
9448
  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
9449
 
9418
9450
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9424,12 +9456,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9424
9456
  function createSinglePlayer(activePlayer) {
9425
9457
  var _class, _temp;
9426
9458
 
9427
- return _temp = _class = /*#__PURE__*/function (_Component) {
9459
+ return _temp = _class =
9460
+ /*#__PURE__*/
9461
+ function (_Component) {
9428
9462
  _inherits(SinglePlayer, _Component);
9429
9463
 
9430
- var _super = _createSuper(SinglePlayer);
9431
-
9432
9464
  function SinglePlayer() {
9465
+ var _getPrototypeOf2;
9466
+
9433
9467
  var _this;
9434
9468
 
9435
9469
  _classCallCheck(this, SinglePlayer);
@@ -9438,7 +9472,7 @@ function createSinglePlayer(activePlayer) {
9438
9472
  args[_key] = arguments[_key];
9439
9473
  }
9440
9474
 
9441
- _this = _super.call.apply(_super, [this].concat(args));
9475
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9442
9476
 
9443
9477
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9444
9478
 
@@ -9506,12 +9540,12 @@ function createSinglePlayer(activePlayer) {
9506
9540
  height = _this$props.height,
9507
9541
  Wrapper = _this$props.wrapper;
9508
9542
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9509
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9543
+ return _react["default"].createElement(Wrapper, _extends({
9510
9544
  style: _objectSpread({}, style, {
9511
9545
  width: width,
9512
9546
  height: height
9513
9547
  })
9514
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9548
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9515
9549
  ref: this.ref,
9516
9550
  activePlayer: activePlayer,
9517
9551
  config: this.config
@@ -9557,31 +9591,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9557
9591
 
9558
9592
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9559
9593
 
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
9594
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9563
9595
 
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
9596
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9569
9597
 
9598
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9599
+
9570
9600
  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
9601
 
9572
9602
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9573
9603
 
9574
9604
  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
9605
 
9576
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9606
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9577
9607
 
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."); }
9608
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9579
9609
 
9580
- 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); }
9581
-
9582
- 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; }
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; }
9610
+ 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
9611
 
9586
9612
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9587
9613
 
@@ -9606,12 +9632,14 @@ function parsePlaylist(url) {
9606
9632
  return {};
9607
9633
  }
9608
9634
 
9609
- var YouTube = /*#__PURE__*/function (_Component) {
9635
+ var YouTube =
9636
+ /*#__PURE__*/
9637
+ function (_Component) {
9610
9638
  _inherits(YouTube, _Component);
9611
9639
 
9612
- var _super = _createSuper(YouTube);
9613
-
9614
9640
  function YouTube() {
9641
+ var _getPrototypeOf2;
9642
+
9615
9643
  var _this;
9616
9644
 
9617
9645
  _classCallCheck(this, YouTube);
@@ -9620,7 +9648,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9620
9648
  args[_key] = arguments[_key];
9621
9649
  }
9622
9650
 
9623
- _this = _super.call.apply(_super, [this].concat(args));
9651
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9624
9652
 
9625
9653
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9626
9654
 
@@ -9808,9 +9836,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9808
9836
  height: '100%',
9809
9837
  display: display
9810
9838
  };
9811
- return /*#__PURE__*/_react["default"].createElement("div", {
9839
+ return _react["default"].createElement("div", {
9812
9840
  style: style
9813
- }, /*#__PURE__*/_react["default"].createElement("div", {
9841
+ }, _react["default"].createElement("div", {
9814
9842
  ref: this.ref
9815
9843
  }));
9816
9844
  }
@@ -9866,16 +9894,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9866
9894
 
9867
9895
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9868
9896
 
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
9897
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9872
9898
 
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
9899
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9878
9900
 
9901
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9902
+
9879
9903
  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
9904
 
9881
9905
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9884,14 +9908,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9884
9908
 
9885
9909
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9886
9910
  var SDK_GLOBAL = 'SC';
9887
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9911
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9888
9912
 
9889
- var SoundCloud = /*#__PURE__*/function (_Component) {
9913
+ var SoundCloud =
9914
+ /*#__PURE__*/
9915
+ function (_Component) {
9890
9916
  _inherits(SoundCloud, _Component);
9891
9917
 
9892
- var _super = _createSuper(SoundCloud);
9893
-
9894
9918
  function SoundCloud() {
9919
+ var _getPrototypeOf2;
9920
+
9895
9921
  var _this;
9896
9922
 
9897
9923
  _classCallCheck(this, SoundCloud);
@@ -9900,7 +9926,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9900
9926
  args[_key] = arguments[_key];
9901
9927
  }
9902
9928
 
9903
- _this = _super.call.apply(_super, [this].concat(args));
9929
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9904
9930
 
9905
9931
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9906
9932
 
@@ -10021,7 +10047,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
10021
10047
  height: '100%',
10022
10048
  display: display
10023
10049
  };
10024
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10050
+ return _react["default"].createElement("iframe", {
10025
10051
  ref: this.ref,
10026
10052
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10027
10053
  style: style,
@@ -10083,16 +10109,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10083
10109
 
10084
10110
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10085
10111
 
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
10112
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10089
10113
 
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
10114
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10095
10115
 
10116
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10117
+
10096
10118
  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
10119
 
10098
10120
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10104,12 +10126,14 @@ var SDK_GLOBAL = 'Vimeo';
10104
10126
  var MATCH_URL = /vimeo\.com\/.+/;
10105
10127
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10106
10128
 
10107
- var Vimeo = /*#__PURE__*/function (_Component) {
10129
+ var Vimeo =
10130
+ /*#__PURE__*/
10131
+ function (_Component) {
10108
10132
  _inherits(Vimeo, _Component);
10109
10133
 
10110
- var _super = _createSuper(Vimeo);
10111
-
10112
10134
  function Vimeo() {
10135
+ var _getPrototypeOf2;
10136
+
10113
10137
  var _this;
10114
10138
 
10115
10139
  _classCallCheck(this, Vimeo);
@@ -10118,7 +10142,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10118
10142
  args[_key] = arguments[_key];
10119
10143
  }
10120
10144
 
10121
- _this = _super.call.apply(_super, [this].concat(args));
10145
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10122
10146
 
10123
10147
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10124
10148
 
@@ -10275,7 +10299,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10275
10299
  overflow: 'hidden',
10276
10300
  display: display
10277
10301
  };
10278
- return /*#__PURE__*/_react["default"].createElement("div", {
10302
+ return _react["default"].createElement("div", {
10279
10303
  key: this.props.url,
10280
10304
  ref: this.ref,
10281
10305
  style: style
@@ -10335,16 +10359,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10335
10359
 
10336
10360
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10337
10361
 
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
10362
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10341
10363
 
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
10364
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10347
10365
 
10366
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10367
+
10348
10368
  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
10369
 
10350
10370
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10357,12 +10377,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10357
10377
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10358
10378
  var PLAYER_ID_PREFIX = 'facebook-player-';
10359
10379
 
10360
- var Facebook = /*#__PURE__*/function (_Component) {
10380
+ var Facebook =
10381
+ /*#__PURE__*/
10382
+ function (_Component) {
10361
10383
  _inherits(Facebook, _Component);
10362
10384
 
10363
- var _super = _createSuper(Facebook);
10364
-
10365
10385
  function Facebook() {
10386
+ var _getPrototypeOf2;
10387
+
10366
10388
  var _this;
10367
10389
 
10368
10390
  _classCallCheck(this, Facebook);
@@ -10371,7 +10393,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10371
10393
  args[_key] = arguments[_key];
10372
10394
  }
10373
10395
 
10374
- _this = _super.call.apply(_super, [this].concat(args));
10396
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10375
10397
 
10376
10398
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10377
10399
 
@@ -10487,7 +10509,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10487
10509
  width: '100%',
10488
10510
  height: '100%'
10489
10511
  };
10490
- return /*#__PURE__*/_react["default"].createElement("div", {
10512
+ return _react["default"].createElement("div", {
10491
10513
  style: style,
10492
10514
  id: this.playerID,
10493
10515
  className: "fb-video",
@@ -10547,16 +10569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10547
10569
 
10548
10570
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10549
10571
 
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
10572
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10553
10573
 
10554
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10555
-
10556
- 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; } }
10557
-
10558
10574
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10559
10575
 
10576
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10577
+
10560
10578
  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
10579
 
10562
10580
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10567,12 +10585,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10567
10585
  var SDK_GLOBAL = 'playerjs';
10568
10586
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10569
10587
 
10570
- var Streamable = /*#__PURE__*/function (_Component) {
10588
+ var Streamable =
10589
+ /*#__PURE__*/
10590
+ function (_Component) {
10571
10591
  _inherits(Streamable, _Component);
10572
10592
 
10573
- var _super = _createSuper(Streamable);
10574
-
10575
10593
  function Streamable() {
10594
+ var _getPrototypeOf2;
10595
+
10576
10596
  var _this;
10577
10597
 
10578
10598
  _classCallCheck(this, Streamable);
@@ -10581,7 +10601,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10581
10601
  args[_key] = arguments[_key];
10582
10602
  }
10583
10603
 
10584
- _this = _super.call.apply(_super, [this].concat(args));
10604
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10585
10605
 
10586
10606
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10587
10607
 
@@ -10701,7 +10721,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10701
10721
  width: '100%',
10702
10722
  height: '100%'
10703
10723
  };
10704
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10724
+ return _react["default"].createElement("iframe", {
10705
10725
  ref: this.ref,
10706
10726
  src: "https://streamable.com/o/".concat(id),
10707
10727
  frameBorder: "0",
@@ -10762,16 +10782,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10762
10782
 
10763
10783
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10764
10784
 
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
10785
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10768
10786
 
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
10787
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10774
10788
 
10789
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10790
+
10775
10791
  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
10792
 
10777
10793
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10782,48 +10798,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10782
10798
  var SDK_GLOBAL = 'Wistia';
10783
10799
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10784
10800
 
10785
- var Wistia = /*#__PURE__*/function (_Component) {
10801
+ var Wistia =
10802
+ /*#__PURE__*/
10803
+ function (_Component) {
10786
10804
  _inherits(Wistia, _Component);
10787
10805
 
10788
- var _super = _createSuper(Wistia);
10789
-
10790
10806
  function Wistia() {
10807
+ var _getPrototypeOf2;
10808
+
10791
10809
  var _this;
10792
10810
 
10793
10811
  _classCallCheck(this, Wistia);
10794
10812
 
10795
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10796
- _args[_key] = arguments[_key];
10813
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10814
+ args[_key] = arguments[_key];
10797
10815
  }
10798
10816
 
10799
- _this = _super.call.apply(_super, [this].concat(_args));
10817
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10800
10818
 
10801
10819
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10802
10820
 
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
10821
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10828
10822
  _this.callPlayer('mute');
10829
10823
  });
@@ -10845,13 +10839,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10845
10839
  value: function load(url) {
10846
10840
  var _this2 = this;
10847
10841
 
10848
- var _this$props5 = this.props,
10849
- playing = _this$props5.playing,
10850
- muted = _this$props5.muted,
10851
- controls = _this$props5.controls,
10852
- _onReady = _this$props5.onReady,
10853
- config = _this$props5.config,
10854
- onError = _this$props5.onError;
10842
+ var _this$props = this.props,
10843
+ playing = _this$props.playing,
10844
+ muted = _this$props.muted,
10845
+ controls = _this$props.controls,
10846
+ _onReady = _this$props.onReady,
10847
+ onPlay = _this$props.onPlay,
10848
+ onPause = _this$props.onPause,
10849
+ onSeek = _this$props.onSeek,
10850
+ onEnded = _this$props.onEnded,
10851
+ config = _this$props.config,
10852
+ onError = _this$props.onError;
10855
10853
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10856
10854
  window._wq = window._wq || [];
10857
10855
 
@@ -10868,28 +10866,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10868
10866
 
10869
10867
  _this2.unbind();
10870
10868
 
10871
- _this2.player.bind('play', _this2.onPlay);
10869
+ _this2.player.bind('play', onPlay);
10872
10870
 
10873
- _this2.player.bind('pause', _this2.onPause);
10871
+ _this2.player.bind('pause', onPause);
10874
10872
 
10875
- _this2.player.bind('seek', _this2.onSeek);
10873
+ _this2.player.bind('seek', onSeek);
10876
10874
 
10877
- _this2.player.bind('end', _this2.onEnded);
10875
+ _this2.player.bind('end', onEnded);
10878
10876
 
10879
10877
  _onReady();
10880
10878
  }
10881
10879
  });
10882
10880
  }, onError);
10883
10881
  }
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
10882
  }, {
10894
10883
  key: "play",
10895
10884
  value: function play() {
@@ -10900,6 +10889,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10900
10889
  value: function pause() {
10901
10890
  this.callPlayer('pause');
10902
10891
  }
10892
+ }, {
10893
+ key: "unbind",
10894
+ value: function unbind() {
10895
+ var _this$props2 = this.props,
10896
+ onPlay = _this$props2.onPlay,
10897
+ onPause = _this$props2.onPause,
10898
+ onSeek = _this$props2.onSeek,
10899
+ onEnded = _this$props2.onEnded;
10900
+ this.player.unbind('play', onPlay);
10901
+ this.player.unbind('pause', onPause);
10902
+ this.player.unbind('seek', onSeek);
10903
+ this.player.unbind('end', onEnded);
10904
+ }
10903
10905
  }, {
10904
10906
  key: "stop",
10905
10907
  value: function stop() {
@@ -10945,7 +10947,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10945
10947
  width: '100%',
10946
10948
  height: '100%'
10947
10949
  };
10948
- return /*#__PURE__*/_react["default"].createElement("div", {
10950
+ return _react["default"].createElement("div", {
10949
10951
  key: id,
10950
10952
  className: className,
10951
10953
  style: style
@@ -11005,16 +11007,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11005
11007
 
11006
11008
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11007
11009
 
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
11010
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11011
11011
 
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
11012
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11017
11013
 
11014
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11015
+
11018
11016
  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
11017
 
11020
11018
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11027,12 +11025,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11027
11025
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11028
11026
  var PLAYER_ID_PREFIX = 'twitch-player-';
11029
11027
 
11030
- var Twitch = /*#__PURE__*/function (_Component) {
11028
+ var Twitch =
11029
+ /*#__PURE__*/
11030
+ function (_Component) {
11031
11031
  _inherits(Twitch, _Component);
11032
11032
 
11033
- var _super = _createSuper(Twitch);
11034
-
11035
11033
  function Twitch() {
11034
+ var _getPrototypeOf2;
11035
+
11036
11036
  var _this;
11037
11037
 
11038
11038
  _classCallCheck(this, Twitch);
@@ -11041,7 +11041,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11041
11041
  args[_key] = arguments[_key];
11042
11042
  }
11043
11043
 
11044
- _this = _super.call.apply(_super, [this].concat(args));
11044
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
11045
11045
 
11046
11046
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11047
11047
 
@@ -11162,7 +11162,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11162
11162
  width: '100%',
11163
11163
  height: '100%'
11164
11164
  };
11165
- return /*#__PURE__*/_react["default"].createElement("div", {
11165
+ return _react["default"].createElement("div", {
11166
11166
  style: style,
11167
11167
  id: this.playerID
11168
11168
  });
@@ -11215,15 +11215,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11215
11215
 
11216
11216
  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
11217
 
11218
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11219
-
11220
- 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."); }
11218
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11221
11219
 
11222
- 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); }
11220
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11223
11221
 
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; }
11222
+ 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
11223
 
11228
11224
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11229
11225
 
@@ -11233,16 +11229,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11233
11229
 
11234
11230
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11235
11231
 
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
11232
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11239
11233
 
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
11234
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11245
11235
 
11236
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11237
+
11246
11238
  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
11239
 
11248
11240
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11254,12 +11246,14 @@ var SDK_GLOBAL = 'DM';
11254
11246
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11255
11247
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11256
11248
 
11257
- var DailyMotion = /*#__PURE__*/function (_Component) {
11249
+ var DailyMotion =
11250
+ /*#__PURE__*/
11251
+ function (_Component) {
11258
11252
  _inherits(DailyMotion, _Component);
11259
11253
 
11260
- var _super = _createSuper(DailyMotion);
11261
-
11262
11254
  function DailyMotion() {
11255
+ var _getPrototypeOf2;
11256
+
11263
11257
  var _this;
11264
11258
 
11265
11259
  _classCallCheck(this, DailyMotion);
@@ -11268,7 +11262,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11268
11262
  args[_key] = arguments[_key];
11269
11263
  }
11270
11264
 
11271
- _this = _super.call.apply(_super, [this].concat(args));
11265
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11272
11266
 
11273
11267
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11274
11268
 
@@ -11397,9 +11391,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11397
11391
  height: '100%',
11398
11392
  display: display
11399
11393
  };
11400
- return /*#__PURE__*/_react["default"].createElement("div", {
11394
+ return _react["default"].createElement("div", {
11401
11395
  style: style
11402
- }, /*#__PURE__*/_react["default"].createElement("div", {
11396
+ }, _react["default"].createElement("div", {
11403
11397
  ref: this.ref
11404
11398
  }));
11405
11399
  }
@@ -11457,16 +11451,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11457
11451
 
11458
11452
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11459
11453
 
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
11454
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11463
11455
 
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
11456
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11469
11457
 
11458
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11459
+
11470
11460
  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
11461
 
11472
11462
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11477,12 +11467,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11477
11467
  var SDK_GLOBAL = 'Mixcloud';
11478
11468
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11479
11469
 
11480
- var Mixcloud = /*#__PURE__*/function (_Component) {
11470
+ var Mixcloud =
11471
+ /*#__PURE__*/
11472
+ function (_Component) {
11481
11473
  _inherits(Mixcloud, _Component);
11482
11474
 
11483
- var _super = _createSuper(Mixcloud);
11484
-
11485
11475
  function Mixcloud() {
11476
+ var _getPrototypeOf2;
11477
+
11486
11478
  var _this;
11487
11479
 
11488
11480
  _classCallCheck(this, Mixcloud);
@@ -11491,7 +11483,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11491
11483
  args[_key] = arguments[_key];
11492
11484
  }
11493
11485
 
11494
- _this = _super.call.apply(_super, [this].concat(args));
11486
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11495
11487
 
11496
11488
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11497
11489
 
@@ -11594,7 +11586,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11594
11586
  })); // We have to give the iframe a key here to prevent a
11595
11587
  // weird dialog appearing when loading a new track
11596
11588
 
11597
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11589
+ return _react["default"].createElement("iframe", {
11598
11590
  key: id,
11599
11591
  ref: this.ref,
11600
11592
  style: style,
@@ -11654,33 +11646,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11654
11646
 
11655
11647
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11656
11648
 
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
11649
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11660
11650
 
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
11651
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11666
11652
 
11653
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11654
+
11667
11655
  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
11656
 
11669
11657
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11670
11658
 
11671
11659
  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
11660
 
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
11661
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11680
11662
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11681
11663
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11682
11664
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11683
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11665
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11684
11666
  var HLS_GLOBAL = 'Hls';
11685
11667
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11686
11668
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11689,11 +11671,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11689
11671
 
11690
11672
  function canPlay(url) {
11691
11673
  if (url instanceof Array) {
11692
- var _iterator = _createForOfIteratorHelper(url),
11693
- _step;
11674
+ var _iteratorNormalCompletion = true;
11675
+ var _didIteratorError = false;
11676
+ var _iteratorError = undefined;
11694
11677
 
11695
11678
  try {
11696
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11679
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11697
11680
  var item = _step.value;
11698
11681
 
11699
11682
  if (typeof item === 'string' && canPlay(item)) {
@@ -11705,9 +11688,18 @@ function canPlay(url) {
11705
11688
  }
11706
11689
  }
11707
11690
  } catch (err) {
11708
- _iterator.e(err);
11691
+ _didIteratorError = true;
11692
+ _iteratorError = err;
11709
11693
  } finally {
11710
- _iterator.f();
11694
+ try {
11695
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11696
+ _iterator["return"]();
11697
+ }
11698
+ } finally {
11699
+ if (_didIteratorError) {
11700
+ throw _iteratorError;
11701
+ }
11702
+ }
11711
11703
  }
11712
11704
 
11713
11705
  return false;
@@ -11731,12 +11723,14 @@ function canEnablePIP(url) {
11731
11723
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11732
11724
  }
11733
11725
 
11734
- var FilePlayer = /*#__PURE__*/function (_Component) {
11726
+ var FilePlayer =
11727
+ /*#__PURE__*/
11728
+ function (_Component) {
11735
11729
  _inherits(FilePlayer, _Component);
11736
11730
 
11737
- var _super = _createSuper(FilePlayer);
11738
-
11739
11731
  function FilePlayer() {
11732
+ var _getPrototypeOf2;
11733
+
11740
11734
  var _this;
11741
11735
 
11742
11736
  _classCallCheck(this, FilePlayer);
@@ -11745,7 +11739,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11745
11739
  _args[_key] = arguments[_key];
11746
11740
  }
11747
11741
 
11748
- _this = _super.call.apply(_super, [this].concat(_args));
11742
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11749
11743
 
11750
11744
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11751
11745
  var _this$props;
@@ -11832,19 +11826,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11832
11826
 
11833
11827
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11834
11828
  if (typeof source === 'string') {
11835
- return /*#__PURE__*/_react["default"].createElement("source", {
11829
+ return _react["default"].createElement("source", {
11836
11830
  key: index,
11837
11831
  src: source
11838
11832
  });
11839
11833
  }
11840
11834
 
11841
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11835
+ return _react["default"].createElement("source", _extends({
11842
11836
  key: index
11843
11837
  }, source));
11844
11838
  });
11845
11839
 
11846
11840
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11847
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11841
+ return _react["default"].createElement("track", _extends({
11848
11842
  key: index
11849
11843
  }, track));
11850
11844
  });
@@ -11882,10 +11876,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11882
11876
  key: "componentWillUnmount",
11883
11877
  value: function componentWillUnmount() {
11884
11878
  this.removeListeners(this.player);
11885
-
11886
- if (this.hls) {
11887
- this.hls.destroy();
11888
- }
11889
11879
  }
11890
11880
  }, {
11891
11881
  key: "addListeners",
@@ -12016,6 +12006,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12016
12006
  value: function stop() {
12017
12007
  this.player.removeAttribute('src');
12018
12008
 
12009
+ if (this.hls) {
12010
+ this.hls.destroy();
12011
+ }
12012
+
12019
12013
  if (this.dash) {
12020
12014
  this.dash.reset();
12021
12015
  }
@@ -12127,7 +12121,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12127
12121
  width: width === 'auto' ? width : '100%',
12128
12122
  height: height === 'auto' ? height : '100%'
12129
12123
  };
12130
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12124
+ return _react["default"].createElement(Element, _extends({
12131
12125
  ref: this.ref,
12132
12126
  src: this.getSource(url),
12133
12127
  style: style,
@@ -12217,16 +12211,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12217
12211
 
12218
12212
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12219
12213
 
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
12214
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12223
12215
 
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
12216
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12229
12217
 
12218
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12219
+
12230
12220
  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
12221
 
12232
12222
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12235,12 +12225,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12235
12225
 
12236
12226
  var ICON_SIZE = '64px';
12237
12227
 
12238
- var Preview = /*#__PURE__*/function (_Component) {
12228
+ var Preview =
12229
+ /*#__PURE__*/
12230
+ function (_Component) {
12239
12231
  _inherits(Preview, _Component);
12240
12232
 
12241
- var _super = _createSuper(Preview);
12242
-
12243
12233
  function Preview() {
12234
+ var _getPrototypeOf2;
12235
+
12244
12236
  var _this;
12245
12237
 
12246
12238
  _classCallCheck(this, Preview);
@@ -12249,7 +12241,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12249
12241
  args[_key] = arguments[_key];
12250
12242
  }
12251
12243
 
12252
- _this = _super.call.apply(_super, [this].concat(args));
12244
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12253
12245
 
12254
12246
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12255
12247
 
@@ -12347,15 +12339,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12347
12339
  }
12348
12340
  };
12349
12341
 
12350
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12342
+ var defaultPlayIcon = _react["default"].createElement("div", {
12351
12343
  style: styles.shadow,
12352
12344
  className: "react-player__shadow"
12353
- }, /*#__PURE__*/_react["default"].createElement("div", {
12345
+ }, _react["default"].createElement("div", {
12354
12346
  style: styles.playIcon,
12355
12347
  className: "react-player__play-icon"
12356
12348
  }));
12357
12349
 
12358
- return /*#__PURE__*/_react["default"].createElement("div", {
12350
+ return _react["default"].createElement("div", {
12359
12351
  style: styles.preview,
12360
12352
  className: "react-player__preview",
12361
12353
  onClick: onClick
@@ -12392,12 +12384,6 @@ var _Player = _interopRequireDefault(Player_1);
12392
12384
 
12393
12385
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12394
12386
 
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
12387
  var PRELOAD_PLAYERS = [{
12402
12388
  Player: YouTube_1.YouTube,
12403
12389
  configKey: 'youtube',
@@ -12418,16 +12404,16 @@ var PRELOAD_PLAYERS = [{
12418
12404
 
12419
12405
  function renderPreloadPlayers(url, controls, config) {
12420
12406
  var players = [];
12421
-
12422
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12423
- _step;
12407
+ var _iteratorNormalCompletion = true;
12408
+ var _didIteratorError = false;
12409
+ var _iteratorError = undefined;
12424
12410
 
12425
12411
  try {
12426
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12412
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12427
12413
  var player = _step.value;
12428
12414
 
12429
12415
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12430
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12416
+ players.push(_react["default"].createElement(_Player["default"], {
12431
12417
  key: player.Player.displayName,
12432
12418
  activePlayer: player.Player,
12433
12419
  url: player.url,
@@ -12439,9 +12425,18 @@ function renderPreloadPlayers(url, controls, config) {
12439
12425
  }
12440
12426
  }
12441
12427
  } catch (err) {
12442
- _iterator.e(err);
12428
+ _didIteratorError = true;
12429
+ _iteratorError = err;
12443
12430
  } finally {
12444
- _iterator.f();
12431
+ try {
12432
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12433
+ _iterator["return"]();
12434
+ }
12435
+ } finally {
12436
+ if (_didIteratorError) {
12437
+ throw _iteratorError;
12438
+ }
12439
+ }
12445
12440
  }
12446
12441
 
12447
12442
  return players;
@@ -12565,17 +12560,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12565
12560
 
12566
12561
  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
12562
 
12568
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
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."); }
12563
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12571
12564
 
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); }
12565
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12573
12566
 
12574
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12567
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12575
12568
 
12576
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12577
-
12578
- 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; }
12569
+ 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
12570
 
12580
12571
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12581
12572
 
@@ -12583,16 +12574,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12583
12574
 
12584
12575
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12585
12576
 
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
12577
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12589
12578
 
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
12579
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12595
12580
 
12581
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12582
+
12596
12583
  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
12584
 
12598
12585
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12602,12 +12589,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12602
12589
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12603
12590
  var customPlayers = [];
12604
12591
 
12605
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12592
+ var ReactPlayer =
12593
+ /*#__PURE__*/
12594
+ function (_Component) {
12606
12595
  _inherits(ReactPlayer, _Component);
12607
12596
 
12608
- var _super = _createSuper(ReactPlayer);
12609
-
12610
12597
  function ReactPlayer() {
12598
+ var _getPrototypeOf2;
12599
+
12611
12600
  var _this;
12612
12601
 
12613
12602
  _classCallCheck(this, ReactPlayer);
@@ -12616,7 +12605,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12616
12605
  args[_key] = arguments[_key];
12617
12606
  }
12618
12607
 
12619
- _this = _super.call.apply(_super, [this].concat(args));
12608
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12620
12609
 
12621
12610
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12622
12611
 
@@ -12727,7 +12716,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12727
12716
  key: "renderActivePlayer",
12728
12717
  value: function renderActivePlayer(url, activePlayer) {
12729
12718
  if (!url) return null;
12730
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12719
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12731
12720
  key: activePlayer.displayName,
12732
12721
  ref: this.activePlayerRef,
12733
12722
  config: this.config,
@@ -12764,14 +12753,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12764
12753
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12765
12754
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12766
12755
 
12767
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12756
+ var preview = _react["default"].createElement(_Preview["default"], {
12768
12757
  url: url,
12769
12758
  light: light,
12770
12759
  playIcon: playIcon,
12771
12760
  onClick: this.handleClickPreview
12772
12761
  });
12773
12762
 
12774
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12763
+ return _react["default"].createElement(Wrapper, _extends({
12775
12764
  ref: this.wrapperRef,
12776
12765
  style: _objectSpread({}, style, {
12777
12766
  width: width,
@@ -13376,7 +13365,7 @@ var Poll = function Poll(_ref) {
13376
13365
  );
13377
13366
  };
13378
13367
 
13379
- var numberOfPaginations = main.main_38 ? 4 : 10;
13368
+ var numberOfPaginations = main.main_35 ? 4 : 10;
13380
13369
 
13381
13370
  var Quiz = function Quiz(_ref) {
13382
13371
  var quizzes = _ref.quizzes,
@@ -13466,7 +13455,7 @@ var Quiz = function Quiz(_ref) {
13466
13455
  var renderPagination = function renderPagination() {
13467
13456
  return React__default.createElement(
13468
13457
  Pagination,
13469
- { className: 'p-0 m-0', size: main.main_38 && 'sm' },
13458
+ { className: 'p-0 m-0', size: main.main_35 && 'sm' },
13470
13459
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13471
13460
  return changePage('first');
13472
13461
  }, disabled: currentPage === 1 }),
@@ -13630,7 +13619,7 @@ var NativeAd = function NativeAd(props) {
13630
13619
  };
13631
13620
 
13632
13621
  var Figure = dynamic(function () {
13633
- return Promise.resolve().then(function () { return require('./Figure-a47ec3a7.js'); });
13622
+ return Promise.resolve().then(function () { return require('./Figure-6805ef02.js'); });
13634
13623
  }, { ssr: false });
13635
13624
 
13636
13625
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -13852,7 +13841,7 @@ var Feature = function Feature(props) {
13852
13841
  };
13853
13842
  //image width
13854
13843
  var imageWidth = 900;
13855
- if (main.main_39) {
13844
+ if (main.main_36) {
13856
13845
  imageWidth = 450;
13857
13846
  }
13858
13847
 
@@ -14204,16 +14193,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14204
14193
  _ref$className = _ref.className,
14205
14194
  className = _ref$className === undefined ? '' : _ref$className;
14206
14195
 
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
- />
14196
+ /*
14197
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14198
+ example:
14199
+ <RelatedTopicDropdown
14200
+ page='/clinical'
14201
+ exclude="clinical"
14202
+ className='mb-3'
14203
+ parentTaxonomy={props.parentTaxonomy}
14204
+ subTaxonomies={props.subTaxonomies}
14205
+ />
14217
14206
  */
14218
14207
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14219
14208
  if (parentTaxonomy.identifier == exclude) {
@@ -14251,25 +14240,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14251
14240
  }
14252
14241
  };
14253
14242
 
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
- }
14243
+ /*
14244
+ This dropdown is used inside Article body to display related content placement and document group pages
14245
+ sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14246
+
14247
+ - accepts any normal html arrtibute (style, id, class)
14248
+
14249
+ - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14250
+
14251
+ 'content_placement': taxonomyMapping[]-> {
14252
+ ...,
14253
+ 'ancestor': parent->parent->identifier,
14254
+ 'parent': parent->identifier,
14255
+ 'path': identifier
14256
+ },
14257
+ 'document_group': documentGroup-> {
14258
+ name,
14259
+ 'parent': parent->identifier,
14260
+ 'path': identifier.current
14261
+ }
14273
14262
  */
14274
14263
 
14275
14264
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15177,34 +15166,34 @@ var GridHero = function GridHero(props) {
15177
15166
  );
15178
15167
  };
15179
15168
 
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
-
15169
+ /*
15170
+ Sample query
15171
+ let references = ''
15172
+ if(article.taxonomyMapping.length > 0){
15173
+ article.taxonomyMapping.forEach((ref, index) => {
15174
+ references = references + `references('${ref._ref}') `
15175
+ if(index+1 !== article.taxonomyMapping.length){
15176
+ references = references + ` && `
15177
+ }
15178
+ })
15179
+ }
15180
+
15181
+ 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] {
15182
+ ...,
15183
+ title,
15184
+ summary,
15185
+ thumbnail,
15186
+ url,
15187
+ published,
15188
+ authorMapping[]->,
15189
+ contentCategory->
15190
+ }`
15191
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15192
+
15193
+ Sample usage
15194
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15195
+
15196
+
15208
15197
  */
15209
15198
  var RelatedContent = function RelatedContent(props) {
15210
15199
  var client = props.client,
@@ -15271,21 +15260,21 @@ var RelatedContent = function RelatedContent(props) {
15271
15260
  );
15272
15261
  };
15273
15262
 
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)
15263
+ /*
15264
+ Example usage - targetedonc.com/latest-conference
15265
+ 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] {
15266
+ ...,
15267
+ title,
15268
+ summary,
15269
+ thumbnail,
15270
+ url,
15271
+ published,
15272
+ documentGroup->,
15273
+ contentCategory->,
15274
+ 'pageNumber': ${currentPage}
15275
+ }`
15276
+
15277
+ const posts = await client.fetch(query, params)
15289
15278
  */
15290
15279
 
15291
15280
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16551,7 +16540,7 @@ var Article = function Article(props) {
16551
16540
  React__default.createElement('br', null),
16552
16541
  React__default.createElement('br', null)
16553
16542
  ),
16554
- main.main_39 && props.article.Ads.map(function (ad, index) {
16543
+ main.main_36 && props.article.Ads.map(function (ad, index) {
16555
16544
  if (index === 0) {
16556
16545
  return React__default.createElement(
16557
16546
  'div',
@@ -16576,7 +16565,7 @@ var Article = function Article(props) {
16576
16565
  renderIsiContent(props.article)
16577
16566
  )
16578
16567
  ),
16579
- main.main_39 && props.article.Ads.map(function (ad, index) {
16568
+ main.main_36 && props.article.Ads.map(function (ad, index) {
16580
16569
  if (index > 0) {
16581
16570
  return React__default.createElement(
16582
16571
  'div',
@@ -16683,7 +16672,7 @@ var ArticleQueue = function ArticleQueue(props) {
16683
16672
  setQueueData = _useState2[1];
16684
16673
 
16685
16674
  var refreshAD = function refreshAD(path) {
16686
- if (!main.main_39) {
16675
+ if (!main.main_36) {
16687
16676
  var activeArticle = queueData.find(function (item) {
16688
16677
  return item.url.current === path;
16689
16678
  });
@@ -16793,27 +16782,27 @@ var ArticleQueue = function ArticleQueue(props) {
16793
16782
  };
16794
16783
 
16795
16784
  var KMTracker = function KMTracker(props) {
16796
- var id = props.id;
16785
+ var id = props.id;
16797
16786
 
16798
- if (document && id) {
16787
+ if (document && id) {
16799
16788
  (function () {
16800
- var ecnJquery = document.createElement('script');
16789
+ var ecnJquery = document.createElement('script');
16801
16790
 
16802
- ecnJquery.type = 'text/javascript';
16803
- ecnJquery.async = true;
16804
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16791
+ ecnJquery.type = 'text/javascript';
16792
+ ecnJquery.async = true;
16793
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16805
16794
 
16806
- var ecnScript = document.createElement('script');
16795
+ var ecnScript = document.createElement('script');
16807
16796
 
16808
- ecnScript.type = 'text/javascript';
16809
- ecnScript.async = true;
16810
- ecnScript.id = 'km-tracker';
16811
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16797
+ ecnScript.type = 'text/javascript';
16798
+ ecnScript.async = true;
16799
+ ecnScript.id = 'km-tracker';
16800
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16812
16801
 
16813
- document.head.appendChild(ecnJquery);
16814
- document.head.appendChild(ecnScript);
16815
- })();
16816
- }
16802
+ document.head.appendChild(ecnJquery);
16803
+ document.head.appendChild(ecnScript);
16804
+ })();
16805
+ }
16817
16806
  };
16818
16807
 
16819
16808
  var returnFormField = function returnFormField(_ref) {
@@ -18840,6 +18829,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
18840
18829
  if (value != null) {
18841
18830
  if ($gOPD && (i + 1) >= parts.length) {
18842
18831
  var desc = $gOPD(value, parts[i]);
18832
+ if (!allowMissing && !(parts[i] in value)) {
18833
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
18834
+ }
18843
18835
  value = desc ? (desc.get || desc.value) : value[parts[i]];
18844
18836
  } else {
18845
18837
  value = value[parts[i]];
@@ -18872,7 +18864,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
18872
18864
  return intrinsic;
18873
18865
  };
18874
18866
 
18875
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
18867
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
18868
+
18869
+ if ($defineProperty) {
18870
+ try {
18871
+ $defineProperty({}, 'a', { value: 1 });
18872
+ } catch (e) {
18873
+ // IE 8 has a broken defineProperty
18874
+ $defineProperty = null;
18875
+ }
18876
+ }
18876
18877
 
18877
18878
 
18878
18879
 
@@ -19015,6 +19016,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19015
19016
  return obj;
19016
19017
  };
19017
19018
 
19019
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19020
+ if ($gOPD$1) {
19021
+ try {
19022
+ $gOPD$1([], 'length');
19023
+ } catch (e) {
19024
+ // IE 8 has a broken gOPD
19025
+ $gOPD$1 = null;
19026
+ }
19027
+ }
19028
+
19029
+ var getOwnPropertyDescriptor = $gOPD$1;
19030
+
19031
+ var $Array = GetIntrinsic('%Array%');
19032
+
19033
+ // eslint-disable-next-line global-require
19034
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19035
+
19036
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19037
+
19038
+ var IsArray = $Array.isArray || function IsArray(argument) {
19039
+ return toStr$4(argument) === '[object Array]';
19040
+ };
19041
+
19042
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19043
+
19044
+ var IsPropertyKey = function IsPropertyKey(argument) {
19045
+ return typeof argument === 'string' || typeof argument === 'symbol';
19046
+ };
19047
+
19048
+ var regexExec = RegExp.prototype.exec;
19049
+ var gOPD = Object.getOwnPropertyDescriptor;
19050
+
19051
+ var tryRegexExecCall = function tryRegexExec(value) {
19052
+ try {
19053
+ var lastIndex = value.lastIndex;
19054
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19055
+
19056
+ regexExec.call(value);
19057
+ return true;
19058
+ } catch (e) {
19059
+ return false;
19060
+ } finally {
19061
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19062
+ }
19063
+ };
19064
+ var toStr$5 = Object.prototype.toString;
19065
+ var regexClass = '[object RegExp]';
19066
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19067
+
19068
+ var isRegex = function isRegex(value) {
19069
+ if (!value || typeof value !== 'object') {
19070
+ return false;
19071
+ }
19072
+ if (!hasToStringTag) {
19073
+ return toStr$5.call(value) === regexClass;
19074
+ }
19075
+
19076
+ var descriptor = gOPD(value, 'lastIndex');
19077
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19078
+ if (!hasLastIndexDataProperty) {
19079
+ return false;
19080
+ }
19081
+
19082
+ return tryRegexExecCall(value);
19083
+ };
19084
+
19085
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19086
+
19087
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19088
+
19089
+ var $match = GetIntrinsic('%Symbol.match%', true);
19090
+
19091
+
19092
+
19093
+
19094
+
19095
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19096
+
19097
+ var IsRegExp = function IsRegExp(argument) {
19098
+ if (!argument || typeof argument !== 'object') {
19099
+ return false;
19100
+ }
19101
+ if ($match) {
19102
+ var isRegExp = argument[$match];
19103
+ if (typeof isRegExp !== 'undefined') {
19104
+ return ToBoolean(isRegExp);
19105
+ }
19106
+ }
19107
+ return isRegex(argument);
19108
+ };
19109
+
19110
+ var fnToStr = Function.prototype.toString;
19111
+
19112
+ var constructorRegex = /^\s*class\b/;
19113
+ var isES6ClassFn = function isES6ClassFunction(value) {
19114
+ try {
19115
+ var fnStr = fnToStr.call(value);
19116
+ return constructorRegex.test(fnStr);
19117
+ } catch (e) {
19118
+ return false; // not a function
19119
+ }
19120
+ };
19121
+
19122
+ var tryFunctionObject = function tryFunctionToStr(value) {
19123
+ try {
19124
+ if (isES6ClassFn(value)) { return false; }
19125
+ fnToStr.call(value);
19126
+ return true;
19127
+ } catch (e) {
19128
+ return false;
19129
+ }
19130
+ };
19131
+ var toStr$6 = Object.prototype.toString;
19132
+ var fnClass = '[object Function]';
19133
+ var genClass = '[object GeneratorFunction]';
19134
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19135
+
19136
+ var isCallable = function isCallable(value) {
19137
+ if (!value) { return false; }
19138
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19139
+ if (typeof value === 'function' && !value.prototype) { return true; }
19140
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19141
+ if (isES6ClassFn(value)) { return false; }
19142
+ var strClass = toStr$6.call(value);
19143
+ return strClass === fnClass || strClass === genClass;
19144
+ };
19145
+
19146
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19147
+
19148
+ var IsCallable = isCallable;
19149
+
19150
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19151
+
19152
+
19153
+
19154
+
19155
+
19156
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19157
+
19158
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19159
+ if (Type$1(Obj) !== 'Object') {
19160
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19161
+ }
19162
+
19163
+ var desc = {};
19164
+ if (src$1(Obj, 'enumerable')) {
19165
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19166
+ }
19167
+ if (src$1(Obj, 'configurable')) {
19168
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19169
+ }
19170
+ if (src$1(Obj, 'value')) {
19171
+ desc['[[Value]]'] = Obj.value;
19172
+ }
19173
+ if (src$1(Obj, 'writable')) {
19174
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
19175
+ }
19176
+ if (src$1(Obj, 'get')) {
19177
+ var getter = Obj.get;
19178
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
19179
+ throw new TypeError('getter must be a function');
19180
+ }
19181
+ desc['[[Get]]'] = getter;
19182
+ }
19183
+ if (src$1(Obj, 'set')) {
19184
+ var setter = Obj.set;
19185
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
19186
+ throw new $TypeError$2('setter must be a function');
19187
+ }
19188
+ desc['[[Set]]'] = setter;
19189
+ }
19190
+
19191
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
19192
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
19193
+ }
19194
+ return desc;
19195
+ };
19196
+
19197
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
19198
+
19199
+
19200
+
19201
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
19202
+
19203
+
19204
+
19205
+
19206
+
19207
+
19208
+
19209
+
19210
+
19211
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
19212
+
19213
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
19214
+ if (Type$1(O) !== 'Object') {
19215
+ throw new $TypeError$3('Assertion failed: O must be an Object');
19216
+ }
19217
+ if (!IsPropertyKey(P)) {
19218
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
19219
+ }
19220
+ if (!src$1(O, P)) {
19221
+ return void 0;
19222
+ }
19223
+ if (!getOwnPropertyDescriptor) {
19224
+ // ES3 / IE 8 fallback
19225
+ var arrayLength = IsArray(O) && P === 'length';
19226
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
19227
+ return {
19228
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
19229
+ '[[Enumerable]]': $isEnumerable$1(O, P),
19230
+ '[[Value]]': O[P],
19231
+ '[[Writable]]': true
19232
+ };
19233
+ }
19234
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
19235
+ };
19236
+
19018
19237
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19019
19238
 
19020
19239
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -19048,16 +19267,10 @@ var IsExtensible = $preventExtensions
19048
19267
  ? function IsExtensible(obj) {
19049
19268
  return !isPrimitive$1(obj) && $isExtensible(obj);
19050
19269
  }
19051
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19052
- return true;
19270
+ : function IsExtensible(obj) {
19271
+ return !isPrimitive$1(obj);
19053
19272
  };
19054
19273
 
19055
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19056
-
19057
- var IsPropertyKey = function IsPropertyKey(argument) {
19058
- return typeof argument === 'string' || typeof argument === 'symbol';
19059
- };
19060
-
19061
19274
  var _isNaN = Number.isNaN || function isNaN(a) {
19062
19275
  return a !== a;
19063
19276
  };
@@ -19072,8 +19285,8 @@ var SameValue = function SameValue(x, y) {
19072
19285
  return _isNaN(x) && _isNaN(y);
19073
19286
  };
19074
19287
 
19075
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19076
- var $TypeError$2 = GetIntrinsic('%TypeError%');
19288
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
19289
+
19077
19290
 
19078
19291
 
19079
19292
 
@@ -19088,12 +19301,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
19088
19301
 
19089
19302
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
19090
19303
  if (Type$1(O) !== 'Object') {
19091
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
19304
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19092
19305
  }
19093
19306
  if (!IsPropertyKey(P)) {
19094
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
19307
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19095
19308
  }
19096
- var oldDesc = $gOPD$1(O, P);
19309
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19097
19310
  var extensible = oldDesc || IsExtensible(O);
19098
19311
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19099
19312
  if (immutable || !extensible) {
@@ -19114,53 +19327,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19114
19327
  );
19115
19328
  };
19116
19329
 
19117
- var fnToStr = Function.prototype.toString;
19118
-
19119
- var constructorRegex = /^\s*class\b/;
19120
- var isES6ClassFn = function isES6ClassFunction(value) {
19121
- try {
19122
- var fnStr = fnToStr.call(value);
19123
- return constructorRegex.test(fnStr);
19124
- } catch (e) {
19125
- return false; // not a function
19126
- }
19127
- };
19128
-
19129
- var tryFunctionObject = function tryFunctionToStr(value) {
19130
- try {
19131
- if (isES6ClassFn(value)) { return false; }
19132
- fnToStr.call(value);
19133
- return true;
19134
- } catch (e) {
19135
- return false;
19136
- }
19137
- };
19138
- var toStr$4 = Object.prototype.toString;
19139
- var fnClass = '[object Function]';
19140
- var genClass = '[object GeneratorFunction]';
19141
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19142
-
19143
- var isCallable = function isCallable(value) {
19144
- if (!value) { return false; }
19145
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19146
- if (typeof value === 'function' && !value.prototype) { return true; }
19147
- if (hasToStringTag) { return tryFunctionObject(value); }
19148
- if (isES6ClassFn(value)) { return false; }
19149
- var strClass = toStr$4.call(value);
19150
- return strClass === fnClass || strClass === genClass;
19151
- };
19152
-
19153
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19154
-
19155
- var IsCallable = isCallable;
19156
-
19157
- var $TypeError$3 = GetIntrinsic('%TypeError%');
19330
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19158
19331
 
19159
19332
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19160
19333
 
19161
19334
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19162
19335
  if (value == null) {
19163
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
19336
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19164
19337
  }
19165
19338
  return value;
19166
19339
  };
@@ -19231,241 +19404,6 @@ defineProperties_1(implementation$2, {
19231
19404
 
19232
19405
  var object_getownpropertydescriptors = implementation$2;
19233
19406
 
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
19407
  var isES5$1 = typeof Object.defineProperty === 'function'
19470
19408
  && typeof Object.defineProperties === 'function';
19471
19409
 
@@ -19483,14 +19421,14 @@ if (typeof Promise !== 'function') {
19483
19421
 
19484
19422
 
19485
19423
 
19486
- var $slice = callBound$1('Array.prototype.slice');
19487
- var $concat$1 = callBound$1('Array.prototype.concat');
19488
- var $forEach = callBound$1('Array.prototype.forEach');
19424
+ var $slice = callBound('Array.prototype.slice');
19425
+ var $concat$1 = callBound('Array.prototype.concat');
19426
+ var $forEach = callBound('Array.prototype.forEach');
19489
19427
 
19490
- var hasSymbols$4 = hasSymbols$1();
19428
+ var hasSymbols$3 = hasSymbols$1();
19491
19429
 
19492
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
19493
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
19430
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
19431
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
19494
19432
 
19495
19433
  var implementation$3 = function promisify(orig) {
19496
19434
  if (typeof orig !== 'function') {
@@ -19500,7 +19438,7 @@ var implementation$3 = function promisify(orig) {
19500
19438
  throw error;
19501
19439
  }
19502
19440
 
19503
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
19441
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
19504
19442
  var customFunction = orig[kCustomPromisifiedSymbol];
19505
19443
  if (typeof customFunction !== 'function') {
19506
19444
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -19629,324 +19567,6 @@ function connect() {
19629
19567
 
19630
19568
  var db = connect;
19631
19569
 
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
19570
  var _this$3 = undefined;
19951
19571
 
19952
19572
  var config = {