@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/esm/index.js CHANGED
@@ -1,37 +1,37 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-7e9bebf9.js';
4
- import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-702eb224.js';
5
- import { m as main_39, a as main_16, b as main_38 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-2718dc16.js';
4
+ import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-93ab8f80.js';
5
+ import { m as main_36, a as main_16, b as main_35 } from './main-9ae8991d.js';
6
+ import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-ec38f5fe.js';
7
7
  import { _ as _extends$2, a as _Object$assign } from './extends-26d3b609.js';
8
- import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-4b85034c.js';
8
+ import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-424c89e9.js';
9
9
  import React__default, { useState, useRef, useEffect } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
12
12
  import Row from 'react-bootstrap/Row';
13
13
  import Col from 'react-bootstrap/Col';
14
14
  import 'react-bootstrap/Card';
15
- import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
15
+ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
16
16
  import Link from 'next/link';
17
17
  import Router, { useRouter } from 'next/router';
18
18
  import 'react-dom';
19
- import { i as imageUrlBuilder } from './index-51a80699.js';
19
+ import { i as imageUrlBuilder } from './index-73819142.js';
20
20
  import './index-5f9f807a.js';
21
21
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
22
22
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
23
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-8946358f.js';
24
- export { D as AdSlot, B as Beam } from './AdSlot-8946358f.js';
25
- import './promise-86cb8313.js';
26
- import './ADInfeed-aadcfc25.js';
23
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-4a85e252.js';
24
+ export { D as AdSlot, B as Beam } from './AdSlot-4a85e252.js';
25
+ import './promise-e4a5eb9f.js';
26
+ import './ADInfeed-c42432d8.js';
27
27
  export { default as DeckContent } from './DeckContent.js';
28
- import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
29
- export { A as AD, G as GridContent } from './GridContent-13be42a1.js';
28
+ import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
29
+ export { A as AD, G as GridContent } from './GridContent-55e6512a.js';
30
30
  export { default as DeckQueue } from './DeckQueue.js';
31
31
  import 'react-bootstrap/Media';
32
32
  export { default as ThumbnailCard } from './ThumbnailCard.js';
33
- import { B as BlockContent } from './TaxonomyCard-89325080.js';
34
- export { T as TaxonomyCard } from './TaxonomyCard-89325080.js';
33
+ import { B as BlockContent } from './TaxonomyCard-c036f1c3.js';
34
+ export { T as TaxonomyCard } from './TaxonomyCard-c036f1c3.js';
35
35
  import './react-social-icons-a7d5c5c7.js';
36
36
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
37
37
  import GroupDeck from './GroupDeck.js';
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf } from './Normal-cbddc3c0.js';
52
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-cbddc3c0.js';
51
+ import { M as MdPictureAsPdf } from './Normal-63478e2d.js';
52
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-63478e2d.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -71,6 +71,7 @@ export { U as Ustream } from './Ustream-d8cc3cbd.js';
71
71
  import useSWR from 'swr';
72
72
  import Local from 'passport-local';
73
73
  import mysql from 'mysql';
74
+ import md5 from 'md5';
74
75
 
75
76
  var momentTimezone = createCommonjsModule(function (module) {
76
77
  //! moment-timezone.js
@@ -2150,7 +2151,7 @@ var EventsDeck = function EventsDeck(_ref) {
2150
2151
  )
2151
2152
  )
2152
2153
  ),
2153
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2154
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2154
2155
  'div',
2155
2156
  { style: { margin: '0 auto' } },
2156
2157
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2541,7 +2542,7 @@ var CMEDeck = function CMEDeck(_ref) {
2541
2542
  )
2542
2543
  )
2543
2544
  ),
2544
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2545
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2545
2546
  'div',
2546
2547
  { style: { margin: '0 auto' } },
2547
2548
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2830,7 +2831,7 @@ var AD300x250 = function AD300x250(_ref) {
2830
2831
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2831
2832
 
2832
2833
  var mobileView = false;
2833
- if (main_39) {
2834
+ if (main_36) {
2834
2835
  pos = 'rect1-mobile';
2835
2836
  mobileView = true;
2836
2837
  }
@@ -2862,7 +2863,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2862
2863
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2863
2864
 
2864
2865
  var mobileView = false;
2865
- if (main_39) {
2866
+ if (main_36) {
2866
2867
  pos = 'rect2-mobile';
2867
2868
  mobileView = true;
2868
2869
  }
@@ -2960,14 +2961,14 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2960
2961
  publication_url: targeting.publication_url
2961
2962
  };
2962
2963
 
2963
- var _useState = useState(true),
2964
+ var _useState = useState(false),
2964
2965
  _useState2 = _slicedToArray(_useState, 2),
2965
2966
  widthFlag = _useState2[0],
2966
2967
  setWidthFlag = _useState2[1];
2967
2968
 
2968
2969
  useEffect(function () {
2969
- if (window && window.innerWidth < minScreenWidth) {
2970
- setWidthFlag(false);
2970
+ if (window && window.innerWidth > minScreenWidth) {
2971
+ setWidthFlag(true);
2971
2972
  }
2972
2973
  }, [minScreenWidth]);
2973
2974
 
@@ -3294,18 +3295,21 @@ var Slideshow = function Slideshow(_ref) {
3294
3295
  );
3295
3296
  };
3296
3297
 
3297
- // do not edit .js files directly - edit src/index.jst
3298
-
3299
-
3298
+ var isArray = Array.isArray;
3299
+ var keyList = Object.keys;
3300
+ var hasProp = Object.prototype.hasOwnProperty;
3300
3301
 
3301
3302
  var fastDeepEqual = function equal(a, b) {
3302
3303
  if (a === b) return true;
3303
3304
 
3304
3305
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3305
- if (a.constructor !== b.constructor) return false;
3306
+ var arrA = isArray(a)
3307
+ , arrB = isArray(b)
3308
+ , i
3309
+ , length
3310
+ , key;
3306
3311
 
3307
- var length, i, keys;
3308
- if (Array.isArray(a)) {
3312
+ if (arrA && arrB) {
3309
3313
  length = a.length;
3310
3314
  if (length != b.length) return false;
3311
3315
  for (i = length; i-- !== 0;)
@@ -3313,29 +3317,35 @@ var fastDeepEqual = function equal(a, b) {
3313
3317
  return true;
3314
3318
  }
3315
3319
 
3320
+ if (arrA != arrB) return false;
3316
3321
 
3322
+ var dateA = a instanceof Date
3323
+ , dateB = b instanceof Date;
3324
+ if (dateA != dateB) return false;
3325
+ if (dateA && dateB) return a.getTime() == b.getTime();
3317
3326
 
3318
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3319
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3320
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3327
+ var regexpA = a instanceof RegExp
3328
+ , regexpB = b instanceof RegExp;
3329
+ if (regexpA != regexpB) return false;
3330
+ if (regexpA && regexpB) return a.toString() == b.toString();
3321
3331
 
3322
- keys = Object.keys(a);
3332
+ var keys = keyList(a);
3323
3333
  length = keys.length;
3324
- if (length !== Object.keys(b).length) return false;
3334
+
3335
+ if (length !== keyList(b).length)
3336
+ return false;
3325
3337
 
3326
3338
  for (i = length; i-- !== 0;)
3327
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3339
+ if (!hasProp.call(b, keys[i])) return false;
3328
3340
 
3329
3341
  for (i = length; i-- !== 0;) {
3330
- var key = keys[i];
3331
-
3342
+ key = keys[i];
3332
3343
  if (!equal(a[key], b[key])) return false;
3333
3344
  }
3334
3345
 
3335
3346
  return true;
3336
3347
  }
3337
3348
 
3338
- // true if both NaN, false otherwise
3339
3349
  return a!==a && b!==b;
3340
3350
  };
3341
3351
 
@@ -4358,7 +4368,7 @@ function formatValue(ctx, value, recurseTimes) {
4358
4368
  var base = '', array = false, braces = ['{', '}'];
4359
4369
 
4360
4370
  // Make Array say that they are Array
4361
- if (isArray(value)) {
4371
+ if (isArray$1(value)) {
4362
4372
  array = true;
4363
4373
  braces = ['[', ']'];
4364
4374
  }
@@ -4537,7 +4547,7 @@ function reduceToSingleString(output, base, braces) {
4537
4547
 
4538
4548
  // NOTE: These type checking functions intentionally don't use `instanceof`
4539
4549
  // because it is fragile and can be easily faked with `Object.create()`.
4540
- function isArray(ar) {
4550
+ function isArray$1(ar) {
4541
4551
  return Array.isArray(ar);
4542
4552
  }
4543
4553
 
@@ -4664,7 +4674,7 @@ var util = {
4664
4674
  isNullOrUndefined: isNullOrUndefined,
4665
4675
  isNull: isNull,
4666
4676
  isBoolean: isBoolean,
4667
- isArray: isArray,
4677
+ isArray: isArray$1,
4668
4678
  inspect: inspect,
4669
4679
  deprecate: deprecate,
4670
4680
  format: format,
@@ -5331,235 +5341,199 @@ module.exports = exports['default'];
5331
5341
 
5332
5342
  var youTubePlayer = unwrapExports(dist);
5333
5343
 
5334
- 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); }
5335
-
5336
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5337
-
5338
- 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); } }
5339
-
5340
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5341
-
5342
- 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); }; }
5344
+ 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; }; }();
5343
5345
 
5344
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5345
-
5346
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5347
-
5348
- 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; } }
5349
-
5350
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5351
-
5352
- 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); }
5346
+ 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; };
5353
5347
 
5354
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5348
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5355
5349
 
5356
- 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; }
5350
+ 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; }
5357
5351
 
5358
- 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; }
5352
+ 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; }
5359
5353
 
5360
- 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; }
5361
- /**
5362
- * Check whether a `props` change should result in the video being updated.
5363
- *
5364
- * @param {Object} prevProps
5365
- * @param {Object} props
5354
+ /**
5355
+ * Check whether a `props` change should result in the video being updated.
5356
+ *
5357
+ * @param {Object} prevProps
5358
+ * @param {Object} props
5366
5359
  */
5367
-
5368
5360
  function shouldUpdateVideo(prevProps, props) {
5369
5361
  // A changing video should always trigger an update
5370
5362
  if (prevProps.videoId !== props.videoId) {
5371
5363
  return true;
5372
- } // Otherwise, a change in the start/end time playerVars also requires a player
5373
- // update.
5374
-
5364
+ }
5375
5365
 
5366
+ // Otherwise, a change in the start/end time playerVars also requires a player
5367
+ // update.
5376
5368
  var prevVars = prevProps.opts.playerVars || {};
5377
5369
  var vars = props.opts.playerVars || {};
5370
+
5378
5371
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5379
5372
  }
5380
- /**
5381
- * Neutralize API options that only require a video update, leaving only options
5382
- * that require a player reset. The results can then be compared to see if a
5383
- * player reset is necessary.
5384
- *
5385
- * @param {Object} opts
5386
- */
5387
-
5388
5373
 
5374
+ /**
5375
+ * Neutralise API options that only require a video update, leaving only options
5376
+ * that require a player reset. The results can then be compared to see if a
5377
+ * player reset is necessary.
5378
+ *
5379
+ * @param {Object} opts
5380
+ */
5389
5381
  function filterResetOptions(opts) {
5390
- return _objectSpread({}, opts, {
5391
- playerVars: _objectSpread({}, opts.playerVars, {
5382
+ return _extends({}, opts, {
5383
+ playerVars: _extends({}, opts.playerVars, {
5392
5384
  autoplay: 0,
5393
5385
  start: 0,
5394
5386
  end: 0
5395
5387
  })
5396
5388
  });
5397
5389
  }
5398
- /**
5399
- * Check whether a `props` change should result in the player being reset.
5400
- * The player is reset when the `props.opts` change, except if the only change
5401
- * is in the `start` and `end` playerVars, because a video update can deal with
5402
- * those.
5403
- *
5404
- * @param {Object} prevProps
5405
- * @param {Object} props
5406
- */
5407
-
5408
5390
 
5391
+ /**
5392
+ * Check whether a `props` change should result in the player being reset.
5393
+ * The player is reset when the `props.opts` change, except if the only change
5394
+ * is in the `start` and `end` playerVars, because a video update can deal with
5395
+ * those.
5396
+ *
5397
+ * @param {Object} prevProps
5398
+ * @param {Object} props
5399
+ */
5409
5400
  function shouldResetPlayer(prevProps, props) {
5410
5401
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5411
5402
  }
5412
- /**
5413
- * Check whether a props change should result in an id or className update.
5414
- *
5415
- * @param {Object} prevProps
5416
- * @param {Object} props
5417
- */
5418
-
5419
5403
 
5404
+ /**
5405
+ * Check whether a props change should result in an id or className update.
5406
+ *
5407
+ * @param {Object} prevProps
5408
+ * @param {Object} props
5409
+ */
5420
5410
  function shouldUpdatePlayer(prevProps, props) {
5421
5411
  return prevProps.id !== props.id || prevProps.className !== props.className;
5422
5412
  }
5423
5413
 
5424
- var YouTube = /*#__PURE__*/function (_React$Component) {
5414
+ var YouTube = function (_React$Component) {
5425
5415
  _inherits(YouTube, _React$Component);
5426
5416
 
5427
- var _super = _createSuper(YouTube);
5428
-
5429
- /**
5430
- * Expose PlayerState constants for convenience. These constants can also be
5431
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5432
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5433
- */
5434
5417
  function YouTube(props) {
5435
- var _this;
5436
-
5437
5418
  _classCallCheck(this, YouTube);
5438
5419
 
5439
- _this = _super.call(this, props);
5420
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5440
5421
 
5441
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5422
+ _this.onPlayerReady = function (event) {
5442
5423
  return _this.props.onReady(event);
5443
- });
5424
+ };
5444
5425
 
5445
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5426
+ _this.onPlayerError = function (event) {
5446
5427
  return _this.props.onError(event);
5447
- });
5428
+ };
5448
5429
 
5449
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5430
+ _this.onPlayerStateChange = function (event) {
5450
5431
  _this.props.onStateChange(event);
5451
-
5452
5432
  switch (event.data) {
5433
+
5453
5434
  case YouTube.PlayerState.ENDED:
5454
5435
  _this.props.onEnd(event);
5455
-
5456
5436
  break;
5457
5437
 
5458
5438
  case YouTube.PlayerState.PLAYING:
5459
5439
  _this.props.onPlay(event);
5460
-
5461
5440
  break;
5462
5441
 
5463
5442
  case YouTube.PlayerState.PAUSED:
5464
5443
  _this.props.onPause(event);
5465
-
5466
5444
  break;
5467
5445
  }
5468
- });
5446
+ };
5469
5447
 
5470
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5448
+ _this.onPlayerPlaybackRateChange = function (event) {
5471
5449
  return _this.props.onPlaybackRateChange(event);
5472
- });
5450
+ };
5473
5451
 
5474
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5452
+ _this.onPlayerPlaybackQualityChange = function (event) {
5475
5453
  return _this.props.onPlaybackQualityChange(event);
5476
- });
5454
+ };
5477
5455
 
5478
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5456
+ _this.createPlayer = function () {
5479
5457
  // do not attempt to create a player server-side, it won't work
5480
- if (typeof document === 'undefined') return; // create player
5481
-
5482
- var playerOpts = _objectSpread({}, _this.props.opts, {
5458
+ if (typeof document === 'undefined') return;
5459
+ // create player
5460
+ var playerOpts = _extends({}, _this.props.opts, {
5483
5461
  // preload the `videoId` video if one is already given
5484
5462
  videoId: _this.props.videoId
5485
5463
  });
5486
-
5487
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5488
-
5464
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5465
+ // attach event handlers
5489
5466
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5490
-
5491
5467
  _this.internalPlayer.on('error', _this.onPlayerError);
5492
-
5493
5468
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5494
-
5495
5469
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5496
-
5497
5470
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5498
- });
5471
+ };
5499
5472
 
5500
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5473
+ _this.resetPlayer = function () {
5501
5474
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5502
- });
5475
+ };
5503
5476
 
5504
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5477
+ _this.updatePlayer = function () {
5505
5478
  _this.internalPlayer.getIframe().then(function (iframe) {
5506
5479
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5507
5480
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5508
5481
  });
5509
- });
5482
+ };
5510
5483
 
5511
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5484
+ _this.updateVideo = function () {
5512
5485
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5513
5486
  _this.internalPlayer.stopVideo();
5514
-
5515
5487
  return;
5516
- } // set queueing options
5517
-
5488
+ }
5518
5489
 
5490
+ // set queueing options
5519
5491
  var autoplay = false;
5520
5492
  var opts = {
5521
5493
  videoId: _this.props.videoId
5522
5494
  };
5523
-
5524
5495
  if ('playerVars' in _this.props.opts) {
5525
5496
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5526
-
5527
5497
  if ('start' in _this.props.opts.playerVars) {
5528
5498
  opts.startSeconds = _this.props.opts.playerVars.start;
5529
5499
  }
5530
-
5531
5500
  if ('end' in _this.props.opts.playerVars) {
5532
5501
  opts.endSeconds = _this.props.opts.playerVars.end;
5533
5502
  }
5534
- } // if autoplay is enabled loadVideoById
5535
-
5503
+ }
5536
5504
 
5505
+ // if autoplay is enabled loadVideoById
5537
5506
  if (autoplay) {
5538
5507
  _this.internalPlayer.loadVideoById(opts);
5539
-
5540
5508
  return;
5541
- } // default behaviour just cues the video
5542
-
5543
-
5509
+ }
5510
+ // default behaviour just cues the video
5544
5511
  _this.internalPlayer.cueVideoById(opts);
5545
- });
5512
+ };
5546
5513
 
5547
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5514
+ _this.refContainer = function (container) {
5548
5515
  _this.container = container;
5549
- });
5516
+ };
5550
5517
 
5551
5518
  _this.container = null;
5552
5519
  _this.internalPlayer = null;
5553
5520
  return _this;
5554
5521
  }
5555
5522
 
5523
+ /**
5524
+ * Expose PlayerState constants for convenience. These constants can also be
5525
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5526
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5527
+ */
5528
+
5529
+
5556
5530
  _createClass(YouTube, [{
5557
- key: "componentDidMount",
5531
+ key: 'componentDidMount',
5558
5532
  value: function componentDidMount() {
5559
5533
  this.createPlayer();
5560
5534
  }
5561
5535
  }, {
5562
- key: "componentDidUpdate",
5536
+ key: 'componentDidUpdate',
5563
5537
  value: function componentDidUpdate(prevProps) {
5564
5538
  if (shouldUpdatePlayer(prevProps, this.props)) {
5565
5539
  this.updatePlayer();
@@ -5574,58 +5548,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5574
5548
  }
5575
5549
  }
5576
5550
  }, {
5577
- key: "componentWillUnmount",
5551
+ key: 'componentWillUnmount',
5578
5552
  value: function componentWillUnmount() {
5579
- /**
5580
- * Note: The `youtube-player` package that is used promisifies all YouTube
5581
- * Player API calls, which introduces a delay of a tick before it actually
5582
- * gets destroyed. Since React attempts to remove the element instantly
5583
- * this method isn't quick enough to reset the container element.
5553
+ /**
5554
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5555
+ * Player API calls, which introduces a delay of a tick before it actually
5556
+ * gets destroyed. Since React attempts to remove the element instantly
5557
+ * this method isn't quick enough to reset the container element.
5584
5558
  */
5585
5559
  this.internalPlayer.destroy();
5586
5560
  }
5587
- /**
5588
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5589
- *
5590
- * @param {Object} event
5591
- * @param {Object} target - player object
5561
+
5562
+ /**
5563
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5564
+ *
5565
+ * @param {Object} event
5566
+ * @param {Object} target - player object
5567
+ */
5568
+
5569
+
5570
+ /**
5571
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5572
+ *
5573
+ * @param {Object} event
5574
+ * @param {Integer} data - error type
5575
+ * @param {Object} target - player object
5576
+ */
5577
+
5578
+
5579
+ /**
5580
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5581
+ *
5582
+ * @param {Object} event
5583
+ * @param {Integer} data - status change type
5584
+ * @param {Object} target - actual YT player
5585
+ */
5586
+
5587
+
5588
+ /**
5589
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5590
+ *
5591
+ * @param {Object} event
5592
+ * @param {Float} data - playback rate
5593
+ * @param {Object} target - actual YT player
5594
+ */
5595
+
5596
+
5597
+ /**
5598
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5599
+ *
5600
+ * @param {Object} event
5601
+ * @param {String} data - playback quality
5602
+ * @param {Object} target - actual YT player
5603
+ */
5604
+
5605
+
5606
+ /**
5607
+ * Initialize the Youtube Player API on the container and attach event handlers
5608
+ */
5609
+
5610
+
5611
+ /**
5612
+ * Shorthand for destroying and then re-creating the Youtube Player
5613
+ */
5614
+
5615
+
5616
+ /**
5617
+ * Method to update the id and class of the Youtube Player iframe.
5618
+ * React should update this automatically but since the Youtube Player API
5619
+ * replaced the DIV that is mounted by React we need to do this manually.
5620
+ */
5621
+
5622
+
5623
+ /**
5624
+ * Call Youtube Player API methods to update the currently playing video.
5625
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5626
+ * Youtube Player API methods to update the video.
5592
5627
  */
5593
5628
 
5594
5629
  }, {
5595
- key: "render",
5630
+ key: 'render',
5596
5631
  value: function render() {
5597
- return /*#__PURE__*/React__default.createElement("div", {
5598
- className: this.props.containerClassName
5599
- }, /*#__PURE__*/React__default.createElement("div", {
5600
- id: this.props.id,
5601
- className: this.props.className,
5602
- ref: this.refContainer
5603
- }));
5632
+ return React__default.createElement(
5633
+ 'div',
5634
+ { className: this.props.containerClassName },
5635
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5636
+ );
5604
5637
  }
5605
5638
  }]);
5606
5639
 
5607
5640
  return YouTube;
5608
5641
  }(React__default.Component);
5609
5642
 
5610
- _defineProperty(YouTube, "PlayerState", {
5611
- UNSTARTED: -1,
5612
- ENDED: 0,
5613
- PLAYING: 1,
5614
- PAUSED: 2,
5615
- BUFFERING: 3,
5616
- CUED: 5
5617
- });
5618
-
5619
5643
  YouTube.propTypes = {
5620
5644
  videoId: PropTypes.string,
5645
+
5621
5646
  // custom ID for player element
5622
5647
  id: PropTypes.string,
5648
+
5623
5649
  // custom class name for player element
5624
5650
  className: PropTypes.string,
5625
5651
  // custom class name for player container element
5626
5652
  containerClassName: PropTypes.string,
5653
+
5627
5654
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5628
5655
  opts: PropTypes.objectOf(PropTypes.any),
5656
+
5629
5657
  // event subscriptions
5630
5658
  onReady: PropTypes.func,
5631
5659
  onError: PropTypes.func,
@@ -5637,7 +5665,6 @@ YouTube.propTypes = {
5637
5665
  onPlaybackQualityChange: PropTypes.func
5638
5666
  };
5639
5667
  YouTube.defaultProps = {
5640
- videoId: null,
5641
5668
  id: null,
5642
5669
  className: null,
5643
5670
  opts: {},
@@ -5651,6 +5678,14 @@ YouTube.defaultProps = {
5651
5678
  onPlaybackRateChange: function onPlaybackRateChange() {},
5652
5679
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5653
5680
  };
5681
+ YouTube.PlayerState = {
5682
+ UNSTARTED: -1,
5683
+ ENDED: 0,
5684
+ PLAYING: 1,
5685
+ PAUSED: 2,
5686
+ BUFFERING: 3,
5687
+ CUED: 5
5688
+ };
5654
5689
 
5655
5690
  var YouTubePlayer = function YouTubePlayer(_ref) {
5656
5691
  var url = _ref.url;
@@ -6674,8 +6709,8 @@ var window_1 = win;
6674
6709
 
6675
6710
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6676
6711
 
6677
- function _extends() {
6678
- _extends = Object.assign || function (target) {
6712
+ function _extends$1() {
6713
+ _extends$1 = Object.assign || function (target) {
6679
6714
  for (var i = 1; i < arguments.length; i++) {
6680
6715
  var source = arguments[i];
6681
6716
 
@@ -6689,7 +6724,7 @@ function _extends() {
6689
6724
  return target;
6690
6725
  };
6691
6726
 
6692
- return _extends.apply(this, arguments);
6727
+ return _extends$1.apply(this, arguments);
6693
6728
  }
6694
6729
 
6695
6730
  function _inheritsLoose(subClass, superClass) {
@@ -6698,7 +6733,7 @@ function _inheritsLoose(subClass, superClass) {
6698
6733
  subClass.__proto__ = superClass;
6699
6734
  }
6700
6735
 
6701
- function _assertThisInitialized$1(self) {
6736
+ function _assertThisInitialized(self) {
6702
6737
  if (self === void 0) {
6703
6738
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6704
6739
  }
@@ -6708,8 +6743,8 @@ function _assertThisInitialized$1(self) {
6708
6743
 
6709
6744
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6710
6745
 
6711
- function _extends$1() {
6712
- _extends$1 = Object.assign || function (target) {
6746
+ function _extends$1$1() {
6747
+ _extends$1$1 = Object.assign || function (target) {
6713
6748
  for (var i = 1; i < arguments.length; i++) {
6714
6749
  var source = arguments[i];
6715
6750
 
@@ -6723,7 +6758,7 @@ function _extends$1() {
6723
6758
  return target;
6724
6759
  };
6725
6760
 
6726
- return _extends$1.apply(this, arguments);
6761
+ return _extends$1$1.apply(this, arguments);
6727
6762
  }
6728
6763
 
6729
6764
  var version$1 = "1.7.1";
@@ -6731,7 +6766,7 @@ var version$1 = "1.7.1";
6731
6766
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6732
6767
  var version$1$1 = "1.2.0";
6733
6768
 
6734
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6769
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6735
6770
  return typeof obj;
6736
6771
  } : function (obj) {
6737
6772
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6866,7 +6901,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6866
6901
 
6867
6902
  var qs = '';
6868
6903
 
6869
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6904
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6870
6905
  qs = getQueryString(queryParams);
6871
6906
  }
6872
6907
 
@@ -7100,7 +7135,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7100
7135
  el.style.width = '100%';
7101
7136
  el.style.height = '100%';
7102
7137
 
7103
- var responsive = _extends$1({
7138
+ var responsive = _extends$1$1({
7104
7139
  aspectRatio: DEFAULT_ASPECT_RATIO,
7105
7140
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7106
7141
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7785,7 +7820,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7785
7820
 
7786
7821
 
7787
7822
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7788
- var params = _extends$1({}, DEFAULTS, parameters);
7823
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7789
7824
 
7790
7825
  var Promise = params.Promise,
7791
7826
  onSuccess = params.onSuccess,
@@ -7927,7 +7962,7 @@ function (_React$Component) {
7927
7962
  _this.refNode = ref;
7928
7963
  };
7929
7964
 
7930
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7965
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7931
7966
  return _this;
7932
7967
  }
7933
7968
  /**
@@ -7948,7 +7983,7 @@ function (_React$Component) {
7948
7983
  var userSuccess = this.props.onSuccess;
7949
7984
  var userFailure = this.props.onFailure;
7950
7985
 
7951
- var options = _extends({}, this.props, {
7986
+ var options = _extends$1({}, this.props, {
7952
7987
  refNode: this.refNode,
7953
7988
  refNodeInsert: 'append',
7954
7989
  onSuccess: function onSuccess(_ref) {
@@ -8257,7 +8292,7 @@ function (_React$Component) {
8257
8292
  ;
8258
8293
 
8259
8294
  _proto.render = function render() {
8260
- var props = _extends({
8295
+ var props = _extends$1({
8261
8296
  className: 'brightcove-react-player-loader'
8262
8297
  }, this.props.attrs, {
8263
8298
  ref: this.setRefNode
@@ -8673,17 +8708,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8673
8708
 
8674
8709
  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; }
8675
8710
 
8676
- 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; } } }; }
8677
-
8678
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8679
-
8680
- 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."); }
8681
-
8682
- 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); }
8711
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8683
8712
 
8684
- 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; }
8713
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8685
8714
 
8686
- 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; }
8715
+ 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; }
8687
8716
 
8688
8717
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8689
8718
 
@@ -8813,12 +8842,12 @@ function getSDK(url, sdkGlobal) {
8813
8842
 
8814
8843
  function getConfig(props$1, defaultProps, showWarning) {
8815
8844
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8816
-
8817
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8818
- _step;
8845
+ var _iteratorNormalCompletion = true;
8846
+ var _didIteratorError = false;
8847
+ var _iteratorError = undefined;
8819
8848
 
8820
8849
  try {
8821
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8850
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8822
8851
  var p = _step.value;
8823
8852
 
8824
8853
  if (props$1[p]) {
@@ -8833,9 +8862,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8833
8862
  }
8834
8863
  }
8835
8864
  } catch (err) {
8836
- _iterator.e(err);
8865
+ _didIteratorError = true;
8866
+ _iteratorError = err;
8837
8867
  } finally {
8838
- _iterator.f();
8868
+ try {
8869
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8870
+ _iterator["return"]();
8871
+ }
8872
+ } finally {
8873
+ if (_didIteratorError) {
8874
+ throw _iteratorError;
8875
+ }
8876
+ }
8839
8877
  }
8840
8878
 
8841
8879
  return config;
@@ -8982,16 +9020,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8982
9020
 
8983
9021
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8984
9022
 
8985
- 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); }; }
8986
-
8987
9023
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8988
9024
 
8989
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8990
-
8991
- 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; } }
8992
-
8993
9025
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8994
9026
 
9027
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9028
+
8995
9029
  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); }
8996
9030
 
8997
9031
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9000,12 +9034,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9000
9034
 
9001
9035
  var SEEK_ON_PLAY_EXPIRY = 5000;
9002
9036
 
9003
- var Player = /*#__PURE__*/function (_Component) {
9037
+ var Player =
9038
+ /*#__PURE__*/
9039
+ function (_Component) {
9004
9040
  _inherits(Player, _Component);
9005
9041
 
9006
- var _super = _createSuper(Player);
9007
-
9008
9042
  function Player() {
9043
+ var _getPrototypeOf2;
9044
+
9009
9045
  var _this;
9010
9046
 
9011
9047
  _classCallCheck(this, Player);
@@ -9014,7 +9050,7 @@ var Player = /*#__PURE__*/function (_Component) {
9014
9050
  _args[_key] = arguments[_key];
9015
9051
  }
9016
9052
 
9017
- _this = _super.call.apply(_super, [this].concat(_args));
9053
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
9018
9054
 
9019
9055
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9020
9056
 
@@ -9339,7 +9375,7 @@ var Player = /*#__PURE__*/function (_Component) {
9339
9375
  return null;
9340
9376
  }
9341
9377
 
9342
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9378
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9343
9379
  ref: this.ref,
9344
9380
  onReady: this.handleReady,
9345
9381
  onPlay: this.handlePlay,
@@ -9400,16 +9436,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9400
9436
 
9401
9437
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9402
9438
 
9403
- 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); }; }
9404
-
9405
9439
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9406
9440
 
9407
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9408
-
9409
- 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; } }
9410
-
9411
9441
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9412
9442
 
9443
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9444
+
9413
9445
  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); }
9414
9446
 
9415
9447
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9421,12 +9453,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9421
9453
  function createSinglePlayer(activePlayer) {
9422
9454
  var _class, _temp;
9423
9455
 
9424
- return _temp = _class = /*#__PURE__*/function (_Component) {
9456
+ return _temp = _class =
9457
+ /*#__PURE__*/
9458
+ function (_Component) {
9425
9459
  _inherits(SinglePlayer, _Component);
9426
9460
 
9427
- var _super = _createSuper(SinglePlayer);
9428
-
9429
9461
  function SinglePlayer() {
9462
+ var _getPrototypeOf2;
9463
+
9430
9464
  var _this;
9431
9465
 
9432
9466
  _classCallCheck(this, SinglePlayer);
@@ -9435,7 +9469,7 @@ function createSinglePlayer(activePlayer) {
9435
9469
  args[_key] = arguments[_key];
9436
9470
  }
9437
9471
 
9438
- _this = _super.call.apply(_super, [this].concat(args));
9472
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9439
9473
 
9440
9474
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9441
9475
 
@@ -9503,12 +9537,12 @@ function createSinglePlayer(activePlayer) {
9503
9537
  height = _this$props.height,
9504
9538
  Wrapper = _this$props.wrapper;
9505
9539
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9506
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9540
+ return _react["default"].createElement(Wrapper, _extends({
9507
9541
  style: _objectSpread({}, style, {
9508
9542
  width: width,
9509
9543
  height: height
9510
9544
  })
9511
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9545
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9512
9546
  ref: this.ref,
9513
9547
  activePlayer: activePlayer,
9514
9548
  config: this.config
@@ -9554,31 +9588,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9554
9588
 
9555
9589
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9556
9590
 
9557
- 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); }; }
9558
-
9559
9591
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9560
9592
 
9561
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9562
-
9563
- 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; } }
9564
-
9565
9593
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9566
9594
 
9595
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9596
+
9567
9597
  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); }
9568
9598
 
9569
9599
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9570
9600
 
9571
9601
  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; }
9572
9602
 
9573
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9603
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9574
9604
 
9575
- 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."); }
9605
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9576
9606
 
9577
- 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); }
9578
-
9579
- 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; }
9580
-
9581
- 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; }
9607
+ 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; }
9582
9608
 
9583
9609
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9584
9610
 
@@ -9603,12 +9629,14 @@ function parsePlaylist(url) {
9603
9629
  return {};
9604
9630
  }
9605
9631
 
9606
- var YouTube = /*#__PURE__*/function (_Component) {
9632
+ var YouTube =
9633
+ /*#__PURE__*/
9634
+ function (_Component) {
9607
9635
  _inherits(YouTube, _Component);
9608
9636
 
9609
- var _super = _createSuper(YouTube);
9610
-
9611
9637
  function YouTube() {
9638
+ var _getPrototypeOf2;
9639
+
9612
9640
  var _this;
9613
9641
 
9614
9642
  _classCallCheck(this, YouTube);
@@ -9617,7 +9645,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9617
9645
  args[_key] = arguments[_key];
9618
9646
  }
9619
9647
 
9620
- _this = _super.call.apply(_super, [this].concat(args));
9648
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9621
9649
 
9622
9650
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9623
9651
 
@@ -9805,9 +9833,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9805
9833
  height: '100%',
9806
9834
  display: display
9807
9835
  };
9808
- return /*#__PURE__*/_react["default"].createElement("div", {
9836
+ return _react["default"].createElement("div", {
9809
9837
  style: style
9810
- }, /*#__PURE__*/_react["default"].createElement("div", {
9838
+ }, _react["default"].createElement("div", {
9811
9839
  ref: this.ref
9812
9840
  }));
9813
9841
  }
@@ -9863,16 +9891,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9863
9891
 
9864
9892
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9865
9893
 
9866
- 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); }; }
9867
-
9868
9894
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9869
9895
 
9870
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9871
-
9872
- 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; } }
9873
-
9874
9896
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9875
9897
 
9898
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9899
+
9876
9900
  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); }
9877
9901
 
9878
9902
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9881,14 +9905,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9881
9905
 
9882
9906
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9883
9907
  var SDK_GLOBAL = 'SC';
9884
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9908
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9885
9909
 
9886
- var SoundCloud = /*#__PURE__*/function (_Component) {
9910
+ var SoundCloud =
9911
+ /*#__PURE__*/
9912
+ function (_Component) {
9887
9913
  _inherits(SoundCloud, _Component);
9888
9914
 
9889
- var _super = _createSuper(SoundCloud);
9890
-
9891
9915
  function SoundCloud() {
9916
+ var _getPrototypeOf2;
9917
+
9892
9918
  var _this;
9893
9919
 
9894
9920
  _classCallCheck(this, SoundCloud);
@@ -9897,7 +9923,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9897
9923
  args[_key] = arguments[_key];
9898
9924
  }
9899
9925
 
9900
- _this = _super.call.apply(_super, [this].concat(args));
9926
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9901
9927
 
9902
9928
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9903
9929
 
@@ -10018,7 +10044,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
10018
10044
  height: '100%',
10019
10045
  display: display
10020
10046
  };
10021
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10047
+ return _react["default"].createElement("iframe", {
10022
10048
  ref: this.ref,
10023
10049
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10024
10050
  style: style,
@@ -10080,16 +10106,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10080
10106
 
10081
10107
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10082
10108
 
10083
- 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); }; }
10084
-
10085
10109
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10086
10110
 
10087
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10088
-
10089
- 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; } }
10090
-
10091
10111
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10092
10112
 
10113
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10114
+
10093
10115
  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); }
10094
10116
 
10095
10117
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10101,12 +10123,14 @@ var SDK_GLOBAL = 'Vimeo';
10101
10123
  var MATCH_URL = /vimeo\.com\/.+/;
10102
10124
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10103
10125
 
10104
- var Vimeo = /*#__PURE__*/function (_Component) {
10126
+ var Vimeo =
10127
+ /*#__PURE__*/
10128
+ function (_Component) {
10105
10129
  _inherits(Vimeo, _Component);
10106
10130
 
10107
- var _super = _createSuper(Vimeo);
10108
-
10109
10131
  function Vimeo() {
10132
+ var _getPrototypeOf2;
10133
+
10110
10134
  var _this;
10111
10135
 
10112
10136
  _classCallCheck(this, Vimeo);
@@ -10115,7 +10139,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10115
10139
  args[_key] = arguments[_key];
10116
10140
  }
10117
10141
 
10118
- _this = _super.call.apply(_super, [this].concat(args));
10142
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10119
10143
 
10120
10144
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10121
10145
 
@@ -10272,7 +10296,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10272
10296
  overflow: 'hidden',
10273
10297
  display: display
10274
10298
  };
10275
- return /*#__PURE__*/_react["default"].createElement("div", {
10299
+ return _react["default"].createElement("div", {
10276
10300
  key: this.props.url,
10277
10301
  ref: this.ref,
10278
10302
  style: style
@@ -10332,16 +10356,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10332
10356
 
10333
10357
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10334
10358
 
10335
- 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); }; }
10336
-
10337
10359
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10338
10360
 
10339
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10340
-
10341
- 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; } }
10342
-
10343
10361
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10344
10362
 
10363
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10364
+
10345
10365
  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); }
10346
10366
 
10347
10367
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10354,12 +10374,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10354
10374
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10355
10375
  var PLAYER_ID_PREFIX = 'facebook-player-';
10356
10376
 
10357
- var Facebook = /*#__PURE__*/function (_Component) {
10377
+ var Facebook =
10378
+ /*#__PURE__*/
10379
+ function (_Component) {
10358
10380
  _inherits(Facebook, _Component);
10359
10381
 
10360
- var _super = _createSuper(Facebook);
10361
-
10362
10382
  function Facebook() {
10383
+ var _getPrototypeOf2;
10384
+
10363
10385
  var _this;
10364
10386
 
10365
10387
  _classCallCheck(this, Facebook);
@@ -10368,7 +10390,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10368
10390
  args[_key] = arguments[_key];
10369
10391
  }
10370
10392
 
10371
- _this = _super.call.apply(_super, [this].concat(args));
10393
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10372
10394
 
10373
10395
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10374
10396
 
@@ -10484,7 +10506,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10484
10506
  width: '100%',
10485
10507
  height: '100%'
10486
10508
  };
10487
- return /*#__PURE__*/_react["default"].createElement("div", {
10509
+ return _react["default"].createElement("div", {
10488
10510
  style: style,
10489
10511
  id: this.playerID,
10490
10512
  className: "fb-video",
@@ -10544,16 +10566,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10544
10566
 
10545
10567
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10546
10568
 
10547
- 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); }; }
10548
-
10549
10569
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10550
10570
 
10551
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10552
-
10553
- 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; } }
10554
-
10555
10571
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10556
10572
 
10573
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10574
+
10557
10575
  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); }
10558
10576
 
10559
10577
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10564,12 +10582,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10564
10582
  var SDK_GLOBAL = 'playerjs';
10565
10583
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10566
10584
 
10567
- var Streamable = /*#__PURE__*/function (_Component) {
10585
+ var Streamable =
10586
+ /*#__PURE__*/
10587
+ function (_Component) {
10568
10588
  _inherits(Streamable, _Component);
10569
10589
 
10570
- var _super = _createSuper(Streamable);
10571
-
10572
10590
  function Streamable() {
10591
+ var _getPrototypeOf2;
10592
+
10573
10593
  var _this;
10574
10594
 
10575
10595
  _classCallCheck(this, Streamable);
@@ -10578,7 +10598,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10578
10598
  args[_key] = arguments[_key];
10579
10599
  }
10580
10600
 
10581
- _this = _super.call.apply(_super, [this].concat(args));
10601
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10582
10602
 
10583
10603
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10584
10604
 
@@ -10698,7 +10718,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10698
10718
  width: '100%',
10699
10719
  height: '100%'
10700
10720
  };
10701
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10721
+ return _react["default"].createElement("iframe", {
10702
10722
  ref: this.ref,
10703
10723
  src: "https://streamable.com/o/".concat(id),
10704
10724
  frameBorder: "0",
@@ -10759,16 +10779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10759
10779
 
10760
10780
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10761
10781
 
10762
- 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); }; }
10763
-
10764
10782
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10765
10783
 
10766
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10767
-
10768
- 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; } }
10769
-
10770
10784
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10771
10785
 
10786
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10787
+
10772
10788
  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); }
10773
10789
 
10774
10790
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10779,48 +10795,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10779
10795
  var SDK_GLOBAL = 'Wistia';
10780
10796
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10781
10797
 
10782
- var Wistia = /*#__PURE__*/function (_Component) {
10798
+ var Wistia =
10799
+ /*#__PURE__*/
10800
+ function (_Component) {
10783
10801
  _inherits(Wistia, _Component);
10784
10802
 
10785
- var _super = _createSuper(Wistia);
10786
-
10787
10803
  function Wistia() {
10804
+ var _getPrototypeOf2;
10805
+
10788
10806
  var _this;
10789
10807
 
10790
10808
  _classCallCheck(this, Wistia);
10791
10809
 
10792
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10793
- _args[_key] = arguments[_key];
10810
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10811
+ args[_key] = arguments[_key];
10794
10812
  }
10795
10813
 
10796
- _this = _super.call.apply(_super, [this].concat(_args));
10814
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10797
10815
 
10798
10816
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10799
10817
 
10800
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10801
- var _this$props;
10802
-
10803
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10804
- });
10805
-
10806
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10807
- var _this$props2;
10808
-
10809
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10810
- });
10811
-
10812
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10813
- var _this$props3;
10814
-
10815
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10816
- });
10817
-
10818
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10819
- var _this$props4;
10820
-
10821
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10822
- });
10823
-
10824
10818
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10825
10819
  _this.callPlayer('mute');
10826
10820
  });
@@ -10842,13 +10836,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10842
10836
  value: function load(url) {
10843
10837
  var _this2 = this;
10844
10838
 
10845
- var _this$props5 = this.props,
10846
- playing = _this$props5.playing,
10847
- muted = _this$props5.muted,
10848
- controls = _this$props5.controls,
10849
- _onReady = _this$props5.onReady,
10850
- config = _this$props5.config,
10851
- onError = _this$props5.onError;
10839
+ var _this$props = this.props,
10840
+ playing = _this$props.playing,
10841
+ muted = _this$props.muted,
10842
+ controls = _this$props.controls,
10843
+ _onReady = _this$props.onReady,
10844
+ onPlay = _this$props.onPlay,
10845
+ onPause = _this$props.onPause,
10846
+ onSeek = _this$props.onSeek,
10847
+ onEnded = _this$props.onEnded,
10848
+ config = _this$props.config,
10849
+ onError = _this$props.onError;
10852
10850
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10853
10851
  window._wq = window._wq || [];
10854
10852
 
@@ -10865,28 +10863,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10865
10863
 
10866
10864
  _this2.unbind();
10867
10865
 
10868
- _this2.player.bind('play', _this2.onPlay);
10866
+ _this2.player.bind('play', onPlay);
10869
10867
 
10870
- _this2.player.bind('pause', _this2.onPause);
10868
+ _this2.player.bind('pause', onPause);
10871
10869
 
10872
- _this2.player.bind('seek', _this2.onSeek);
10870
+ _this2.player.bind('seek', onSeek);
10873
10871
 
10874
- _this2.player.bind('end', _this2.onEnded);
10872
+ _this2.player.bind('end', onEnded);
10875
10873
 
10876
10874
  _onReady();
10877
10875
  }
10878
10876
  });
10879
10877
  }, onError);
10880
10878
  }
10881
- }, {
10882
- key: "unbind",
10883
- value: function unbind() {
10884
- this.player.unbind('play', this.onPlay);
10885
- this.player.unbind('pause', this.onPause);
10886
- this.player.unbind('seek', this.onSeek);
10887
- this.player.unbind('end', this.onEnded);
10888
- } // Proxy methods to prevent listener leaks
10889
-
10890
10879
  }, {
10891
10880
  key: "play",
10892
10881
  value: function play() {
@@ -10897,6 +10886,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10897
10886
  value: function pause() {
10898
10887
  this.callPlayer('pause');
10899
10888
  }
10889
+ }, {
10890
+ key: "unbind",
10891
+ value: function unbind() {
10892
+ var _this$props2 = this.props,
10893
+ onPlay = _this$props2.onPlay,
10894
+ onPause = _this$props2.onPause,
10895
+ onSeek = _this$props2.onSeek,
10896
+ onEnded = _this$props2.onEnded;
10897
+ this.player.unbind('play', onPlay);
10898
+ this.player.unbind('pause', onPause);
10899
+ this.player.unbind('seek', onSeek);
10900
+ this.player.unbind('end', onEnded);
10901
+ }
10900
10902
  }, {
10901
10903
  key: "stop",
10902
10904
  value: function stop() {
@@ -10942,7 +10944,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10942
10944
  width: '100%',
10943
10945
  height: '100%'
10944
10946
  };
10945
- return /*#__PURE__*/_react["default"].createElement("div", {
10947
+ return _react["default"].createElement("div", {
10946
10948
  key: id,
10947
10949
  className: className,
10948
10950
  style: style
@@ -11002,16 +11004,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11002
11004
 
11003
11005
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11004
11006
 
11005
- 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); }; }
11006
-
11007
11007
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11008
11008
 
11009
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11010
-
11011
- 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; } }
11012
-
11013
11009
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11014
11010
 
11011
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11012
+
11015
11013
  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); }
11016
11014
 
11017
11015
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11024,12 +11022,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11024
11022
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11025
11023
  var PLAYER_ID_PREFIX = 'twitch-player-';
11026
11024
 
11027
- var Twitch = /*#__PURE__*/function (_Component) {
11025
+ var Twitch =
11026
+ /*#__PURE__*/
11027
+ function (_Component) {
11028
11028
  _inherits(Twitch, _Component);
11029
11029
 
11030
- var _super = _createSuper(Twitch);
11031
-
11032
11030
  function Twitch() {
11031
+ var _getPrototypeOf2;
11032
+
11033
11033
  var _this;
11034
11034
 
11035
11035
  _classCallCheck(this, Twitch);
@@ -11038,7 +11038,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11038
11038
  args[_key] = arguments[_key];
11039
11039
  }
11040
11040
 
11041
- _this = _super.call.apply(_super, [this].concat(args));
11041
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
11042
11042
 
11043
11043
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11044
11044
 
@@ -11159,7 +11159,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11159
11159
  width: '100%',
11160
11160
  height: '100%'
11161
11161
  };
11162
- return /*#__PURE__*/_react["default"].createElement("div", {
11162
+ return _react["default"].createElement("div", {
11163
11163
  style: style,
11164
11164
  id: this.playerID
11165
11165
  });
@@ -11212,15 +11212,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11212
11212
 
11213
11213
  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; }
11214
11214
 
11215
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11216
-
11217
- 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."); }
11215
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11218
11216
 
11219
- 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); }
11217
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11220
11218
 
11221
- 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; }
11222
-
11223
- 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; }
11219
+ 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; }
11224
11220
 
11225
11221
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11226
11222
 
@@ -11230,16 +11226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11230
11226
 
11231
11227
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11232
11228
 
11233
- 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); }; }
11234
-
11235
11229
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11236
11230
 
11237
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11238
-
11239
- 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; } }
11240
-
11241
11231
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11242
11232
 
11233
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11234
+
11243
11235
  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); }
11244
11236
 
11245
11237
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11251,12 +11243,14 @@ var SDK_GLOBAL = 'DM';
11251
11243
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11252
11244
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11253
11245
 
11254
- var DailyMotion = /*#__PURE__*/function (_Component) {
11246
+ var DailyMotion =
11247
+ /*#__PURE__*/
11248
+ function (_Component) {
11255
11249
  _inherits(DailyMotion, _Component);
11256
11250
 
11257
- var _super = _createSuper(DailyMotion);
11258
-
11259
11251
  function DailyMotion() {
11252
+ var _getPrototypeOf2;
11253
+
11260
11254
  var _this;
11261
11255
 
11262
11256
  _classCallCheck(this, DailyMotion);
@@ -11265,7 +11259,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11265
11259
  args[_key] = arguments[_key];
11266
11260
  }
11267
11261
 
11268
- _this = _super.call.apply(_super, [this].concat(args));
11262
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11269
11263
 
11270
11264
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11271
11265
 
@@ -11394,9 +11388,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11394
11388
  height: '100%',
11395
11389
  display: display
11396
11390
  };
11397
- return /*#__PURE__*/_react["default"].createElement("div", {
11391
+ return _react["default"].createElement("div", {
11398
11392
  style: style
11399
- }, /*#__PURE__*/_react["default"].createElement("div", {
11393
+ }, _react["default"].createElement("div", {
11400
11394
  ref: this.ref
11401
11395
  }));
11402
11396
  }
@@ -11454,16 +11448,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11454
11448
 
11455
11449
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11456
11450
 
11457
- 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); }; }
11458
-
11459
11451
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11460
11452
 
11461
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11462
-
11463
- 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; } }
11464
-
11465
11453
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11466
11454
 
11455
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11456
+
11467
11457
  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); }
11468
11458
 
11469
11459
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11474,12 +11464,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11474
11464
  var SDK_GLOBAL = 'Mixcloud';
11475
11465
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11476
11466
 
11477
- var Mixcloud = /*#__PURE__*/function (_Component) {
11467
+ var Mixcloud =
11468
+ /*#__PURE__*/
11469
+ function (_Component) {
11478
11470
  _inherits(Mixcloud, _Component);
11479
11471
 
11480
- var _super = _createSuper(Mixcloud);
11481
-
11482
11472
  function Mixcloud() {
11473
+ var _getPrototypeOf2;
11474
+
11483
11475
  var _this;
11484
11476
 
11485
11477
  _classCallCheck(this, Mixcloud);
@@ -11488,7 +11480,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11488
11480
  args[_key] = arguments[_key];
11489
11481
  }
11490
11482
 
11491
- _this = _super.call.apply(_super, [this].concat(args));
11483
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11492
11484
 
11493
11485
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11494
11486
 
@@ -11591,7 +11583,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11591
11583
  })); // We have to give the iframe a key here to prevent a
11592
11584
  // weird dialog appearing when loading a new track
11593
11585
 
11594
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11586
+ return _react["default"].createElement("iframe", {
11595
11587
  key: id,
11596
11588
  ref: this.ref,
11597
11589
  style: style,
@@ -11651,33 +11643,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11651
11643
 
11652
11644
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11653
11645
 
11654
- 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); }; }
11655
-
11656
11646
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11657
11647
 
11658
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11659
-
11660
- 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; } }
11661
-
11662
11648
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11663
11649
 
11650
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11651
+
11664
11652
  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); }
11665
11653
 
11666
11654
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11667
11655
 
11668
11656
  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; }
11669
11657
 
11670
- 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; } } }; }
11671
-
11672
- 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); }
11673
-
11674
- 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; }
11675
-
11676
11658
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11677
11659
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11678
11660
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11679
11661
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11680
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11662
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11681
11663
  var HLS_GLOBAL = 'Hls';
11682
11664
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11683
11665
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11686,11 +11668,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11686
11668
 
11687
11669
  function canPlay(url) {
11688
11670
  if (url instanceof Array) {
11689
- var _iterator = _createForOfIteratorHelper(url),
11690
- _step;
11671
+ var _iteratorNormalCompletion = true;
11672
+ var _didIteratorError = false;
11673
+ var _iteratorError = undefined;
11691
11674
 
11692
11675
  try {
11693
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11676
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11694
11677
  var item = _step.value;
11695
11678
 
11696
11679
  if (typeof item === 'string' && canPlay(item)) {
@@ -11702,9 +11685,18 @@ function canPlay(url) {
11702
11685
  }
11703
11686
  }
11704
11687
  } catch (err) {
11705
- _iterator.e(err);
11688
+ _didIteratorError = true;
11689
+ _iteratorError = err;
11706
11690
  } finally {
11707
- _iterator.f();
11691
+ try {
11692
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11693
+ _iterator["return"]();
11694
+ }
11695
+ } finally {
11696
+ if (_didIteratorError) {
11697
+ throw _iteratorError;
11698
+ }
11699
+ }
11708
11700
  }
11709
11701
 
11710
11702
  return false;
@@ -11728,12 +11720,14 @@ function canEnablePIP(url) {
11728
11720
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11729
11721
  }
11730
11722
 
11731
- var FilePlayer = /*#__PURE__*/function (_Component) {
11723
+ var FilePlayer =
11724
+ /*#__PURE__*/
11725
+ function (_Component) {
11732
11726
  _inherits(FilePlayer, _Component);
11733
11727
 
11734
- var _super = _createSuper(FilePlayer);
11735
-
11736
11728
  function FilePlayer() {
11729
+ var _getPrototypeOf2;
11730
+
11737
11731
  var _this;
11738
11732
 
11739
11733
  _classCallCheck(this, FilePlayer);
@@ -11742,7 +11736,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11742
11736
  _args[_key] = arguments[_key];
11743
11737
  }
11744
11738
 
11745
- _this = _super.call.apply(_super, [this].concat(_args));
11739
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11746
11740
 
11747
11741
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11748
11742
  var _this$props;
@@ -11829,19 +11823,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11829
11823
 
11830
11824
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11831
11825
  if (typeof source === 'string') {
11832
- return /*#__PURE__*/_react["default"].createElement("source", {
11826
+ return _react["default"].createElement("source", {
11833
11827
  key: index,
11834
11828
  src: source
11835
11829
  });
11836
11830
  }
11837
11831
 
11838
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11832
+ return _react["default"].createElement("source", _extends({
11839
11833
  key: index
11840
11834
  }, source));
11841
11835
  });
11842
11836
 
11843
11837
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11844
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11838
+ return _react["default"].createElement("track", _extends({
11845
11839
  key: index
11846
11840
  }, track));
11847
11841
  });
@@ -11879,10 +11873,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11879
11873
  key: "componentWillUnmount",
11880
11874
  value: function componentWillUnmount() {
11881
11875
  this.removeListeners(this.player);
11882
-
11883
- if (this.hls) {
11884
- this.hls.destroy();
11885
- }
11886
11876
  }
11887
11877
  }, {
11888
11878
  key: "addListeners",
@@ -12013,6 +12003,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12013
12003
  value: function stop() {
12014
12004
  this.player.removeAttribute('src');
12015
12005
 
12006
+ if (this.hls) {
12007
+ this.hls.destroy();
12008
+ }
12009
+
12016
12010
  if (this.dash) {
12017
12011
  this.dash.reset();
12018
12012
  }
@@ -12124,7 +12118,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12124
12118
  width: width === 'auto' ? width : '100%',
12125
12119
  height: height === 'auto' ? height : '100%'
12126
12120
  };
12127
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12121
+ return _react["default"].createElement(Element, _extends({
12128
12122
  ref: this.ref,
12129
12123
  src: this.getSource(url),
12130
12124
  style: style,
@@ -12214,16 +12208,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12214
12208
 
12215
12209
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12216
12210
 
12217
- 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); }; }
12218
-
12219
12211
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12220
12212
 
12221
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12222
-
12223
- 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; } }
12224
-
12225
12213
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12226
12214
 
12215
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12216
+
12227
12217
  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); }
12228
12218
 
12229
12219
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12232,12 +12222,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12232
12222
 
12233
12223
  var ICON_SIZE = '64px';
12234
12224
 
12235
- var Preview = /*#__PURE__*/function (_Component) {
12225
+ var Preview =
12226
+ /*#__PURE__*/
12227
+ function (_Component) {
12236
12228
  _inherits(Preview, _Component);
12237
12229
 
12238
- var _super = _createSuper(Preview);
12239
-
12240
12230
  function Preview() {
12231
+ var _getPrototypeOf2;
12232
+
12241
12233
  var _this;
12242
12234
 
12243
12235
  _classCallCheck(this, Preview);
@@ -12246,7 +12238,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12246
12238
  args[_key] = arguments[_key];
12247
12239
  }
12248
12240
 
12249
- _this = _super.call.apply(_super, [this].concat(args));
12241
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12250
12242
 
12251
12243
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12252
12244
 
@@ -12344,15 +12336,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12344
12336
  }
12345
12337
  };
12346
12338
 
12347
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12339
+ var defaultPlayIcon = _react["default"].createElement("div", {
12348
12340
  style: styles.shadow,
12349
12341
  className: "react-player__shadow"
12350
- }, /*#__PURE__*/_react["default"].createElement("div", {
12342
+ }, _react["default"].createElement("div", {
12351
12343
  style: styles.playIcon,
12352
12344
  className: "react-player__play-icon"
12353
12345
  }));
12354
12346
 
12355
- return /*#__PURE__*/_react["default"].createElement("div", {
12347
+ return _react["default"].createElement("div", {
12356
12348
  style: styles.preview,
12357
12349
  className: "react-player__preview",
12358
12350
  onClick: onClick
@@ -12389,12 +12381,6 @@ var _Player = _interopRequireDefault(Player_1);
12389
12381
 
12390
12382
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12391
12383
 
12392
- 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; } } }; }
12393
-
12394
- 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); }
12395
-
12396
- 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; }
12397
-
12398
12384
  var PRELOAD_PLAYERS = [{
12399
12385
  Player: YouTube_1.YouTube,
12400
12386
  configKey: 'youtube',
@@ -12415,16 +12401,16 @@ var PRELOAD_PLAYERS = [{
12415
12401
 
12416
12402
  function renderPreloadPlayers(url, controls, config) {
12417
12403
  var players = [];
12418
-
12419
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12420
- _step;
12404
+ var _iteratorNormalCompletion = true;
12405
+ var _didIteratorError = false;
12406
+ var _iteratorError = undefined;
12421
12407
 
12422
12408
  try {
12423
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12409
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12424
12410
  var player = _step.value;
12425
12411
 
12426
12412
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12427
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12413
+ players.push(_react["default"].createElement(_Player["default"], {
12428
12414
  key: player.Player.displayName,
12429
12415
  activePlayer: player.Player,
12430
12416
  url: player.url,
@@ -12436,9 +12422,18 @@ function renderPreloadPlayers(url, controls, config) {
12436
12422
  }
12437
12423
  }
12438
12424
  } catch (err) {
12439
- _iterator.e(err);
12425
+ _didIteratorError = true;
12426
+ _iteratorError = err;
12440
12427
  } finally {
12441
- _iterator.f();
12428
+ try {
12429
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12430
+ _iterator["return"]();
12431
+ }
12432
+ } finally {
12433
+ if (_didIteratorError) {
12434
+ throw _iteratorError;
12435
+ }
12436
+ }
12442
12437
  }
12443
12438
 
12444
12439
  return players;
@@ -12562,17 +12557,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12562
12557
 
12563
12558
  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); }
12564
12559
 
12565
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12566
-
12567
- 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."); }
12560
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12568
12561
 
12569
- 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); }
12562
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12570
12563
 
12571
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12564
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12572
12565
 
12573
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12574
-
12575
- 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; }
12566
+ 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; } }
12576
12567
 
12577
12568
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12578
12569
 
@@ -12580,16 +12571,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12580
12571
 
12581
12572
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12582
12573
 
12583
- 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); }; }
12584
-
12585
12574
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12586
12575
 
12587
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12588
-
12589
- 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; } }
12590
-
12591
12576
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12592
12577
 
12578
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12579
+
12593
12580
  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); }
12594
12581
 
12595
12582
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12599,12 +12586,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12599
12586
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12600
12587
  var customPlayers = [];
12601
12588
 
12602
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12589
+ var ReactPlayer =
12590
+ /*#__PURE__*/
12591
+ function (_Component) {
12603
12592
  _inherits(ReactPlayer, _Component);
12604
12593
 
12605
- var _super = _createSuper(ReactPlayer);
12606
-
12607
12594
  function ReactPlayer() {
12595
+ var _getPrototypeOf2;
12596
+
12608
12597
  var _this;
12609
12598
 
12610
12599
  _classCallCheck(this, ReactPlayer);
@@ -12613,7 +12602,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12613
12602
  args[_key] = arguments[_key];
12614
12603
  }
12615
12604
 
12616
- _this = _super.call.apply(_super, [this].concat(args));
12605
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12617
12606
 
12618
12607
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12619
12608
 
@@ -12724,7 +12713,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12724
12713
  key: "renderActivePlayer",
12725
12714
  value: function renderActivePlayer(url, activePlayer) {
12726
12715
  if (!url) return null;
12727
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12716
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12728
12717
  key: activePlayer.displayName,
12729
12718
  ref: this.activePlayerRef,
12730
12719
  config: this.config,
@@ -12761,14 +12750,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12761
12750
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12762
12751
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12763
12752
 
12764
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12753
+ var preview = _react["default"].createElement(_Preview["default"], {
12765
12754
  url: url,
12766
12755
  light: light,
12767
12756
  playIcon: playIcon,
12768
12757
  onClick: this.handleClickPreview
12769
12758
  });
12770
12759
 
12771
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12760
+ return _react["default"].createElement(Wrapper, _extends({
12772
12761
  ref: this.wrapperRef,
12773
12762
  style: _objectSpread({}, style, {
12774
12763
  width: width,
@@ -13373,7 +13362,7 @@ var Poll = function Poll(_ref) {
13373
13362
  );
13374
13363
  };
13375
13364
 
13376
- var numberOfPaginations = main_38 ? 4 : 10;
13365
+ var numberOfPaginations = main_35 ? 4 : 10;
13377
13366
 
13378
13367
  var Quiz = function Quiz(_ref) {
13379
13368
  var quizzes = _ref.quizzes,
@@ -13463,7 +13452,7 @@ var Quiz = function Quiz(_ref) {
13463
13452
  var renderPagination = function renderPagination() {
13464
13453
  return React__default.createElement(
13465
13454
  Pagination,
13466
- { className: 'p-0 m-0', size: main_38 && 'sm' },
13455
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
13467
13456
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13468
13457
  return changePage('first');
13469
13458
  }, disabled: currentPage === 1 }),
@@ -13627,7 +13616,7 @@ var NativeAd = function NativeAd(props) {
13627
13616
  };
13628
13617
 
13629
13618
  var Figure = dynamic(function () {
13630
- return import('./Figure-584ac0c8.js');
13619
+ return import('./Figure-ddfa279d.js');
13631
13620
  }, { ssr: false });
13632
13621
 
13633
13622
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -13849,7 +13838,7 @@ var Feature = function Feature(props) {
13849
13838
  };
13850
13839
  //image width
13851
13840
  var imageWidth = 900;
13852
- if (main_39) {
13841
+ if (main_36) {
13853
13842
  imageWidth = 450;
13854
13843
  }
13855
13844
 
@@ -14201,16 +14190,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14201
14190
  _ref$className = _ref.className,
14202
14191
  className = _ref$className === undefined ? '' : _ref$className;
14203
14192
 
14204
- /*
14205
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14206
- example:
14207
- <RelatedTopicDropdown
14208
- page='/clinical'
14209
- exclude="clinical"
14210
- className='mb-3'
14211
- parentTaxonomy={props.parentTaxonomy}
14212
- subTaxonomies={props.subTaxonomies}
14213
- />
14193
+ /*
14194
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14195
+ example:
14196
+ <RelatedTopicDropdown
14197
+ page='/clinical'
14198
+ exclude="clinical"
14199
+ className='mb-3'
14200
+ parentTaxonomy={props.parentTaxonomy}
14201
+ subTaxonomies={props.subTaxonomies}
14202
+ />
14214
14203
  */
14215
14204
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14216
14205
  if (parentTaxonomy.identifier == exclude) {
@@ -14248,25 +14237,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14248
14237
  }
14249
14238
  };
14250
14239
 
14251
- /*
14252
- This dropdown is used inside Article body to display related content placement and document group pages
14253
- sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14254
-
14255
- - accepts any normal html arrtibute (style, id, class)
14256
-
14257
- - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14258
-
14259
- 'content_placement': taxonomyMapping[]-> {
14260
- ...,
14261
- 'ancestor': parent->parent->identifier,
14262
- 'parent': parent->identifier,
14263
- 'path': identifier
14264
- },
14265
- 'document_group': documentGroup-> {
14266
- name,
14267
- 'parent': parent->identifier,
14268
- 'path': identifier.current
14269
- }
14240
+ /*
14241
+ This dropdown is used inside Article body to display related content placement and document group pages
14242
+ sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14243
+
14244
+ - accepts any normal html arrtibute (style, id, class)
14245
+
14246
+ - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14247
+
14248
+ 'content_placement': taxonomyMapping[]-> {
14249
+ ...,
14250
+ 'ancestor': parent->parent->identifier,
14251
+ 'parent': parent->identifier,
14252
+ 'path': identifier
14253
+ },
14254
+ 'document_group': documentGroup-> {
14255
+ name,
14256
+ 'parent': parent->identifier,
14257
+ 'path': identifier.current
14258
+ }
14270
14259
  */
14271
14260
 
14272
14261
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15174,34 +15163,34 @@ var GridHero = function GridHero(props) {
15174
15163
  );
15175
15164
  };
15176
15165
 
15177
- /*
15178
- Sample query
15179
- let references = ''
15180
- if(article.taxonomyMapping.length > 0){
15181
- article.taxonomyMapping.forEach((ref, index) => {
15182
- references = references + `references('${ref._ref}') `
15183
- if(index+1 !== article.taxonomyMapping.length){
15184
- references = references + ` && `
15185
- }
15186
- })
15187
- }
15188
-
15189
- 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] {
15190
- ...,
15191
- title,
15192
- summary,
15193
- thumbnail,
15194
- url,
15195
- published,
15196
- authorMapping[]->,
15197
- contentCategory->
15198
- }`
15199
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15200
-
15201
- Sample usage
15202
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15203
-
15204
-
15166
+ /*
15167
+ Sample query
15168
+ let references = ''
15169
+ if(article.taxonomyMapping.length > 0){
15170
+ article.taxonomyMapping.forEach((ref, index) => {
15171
+ references = references + `references('${ref._ref}') `
15172
+ if(index+1 !== article.taxonomyMapping.length){
15173
+ references = references + ` && `
15174
+ }
15175
+ })
15176
+ }
15177
+
15178
+ 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] {
15179
+ ...,
15180
+ title,
15181
+ summary,
15182
+ thumbnail,
15183
+ url,
15184
+ published,
15185
+ authorMapping[]->,
15186
+ contentCategory->
15187
+ }`
15188
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15189
+
15190
+ Sample usage
15191
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15192
+
15193
+
15205
15194
  */
15206
15195
  var RelatedContent = function RelatedContent(props) {
15207
15196
  var client = props.client,
@@ -15268,21 +15257,21 @@ var RelatedContent = function RelatedContent(props) {
15268
15257
  );
15269
15258
  };
15270
15259
 
15271
- /*
15272
- Example usage - targetedonc.com/latest-conference
15273
- 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] {
15274
- ...,
15275
- title,
15276
- summary,
15277
- thumbnail,
15278
- url,
15279
- published,
15280
- documentGroup->,
15281
- contentCategory->,
15282
- 'pageNumber': ${currentPage}
15283
- }`
15284
-
15285
- const posts = await client.fetch(query, params)
15260
+ /*
15261
+ Example usage - targetedonc.com/latest-conference
15262
+ 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] {
15263
+ ...,
15264
+ title,
15265
+ summary,
15266
+ thumbnail,
15267
+ url,
15268
+ published,
15269
+ documentGroup->,
15270
+ contentCategory->,
15271
+ 'pageNumber': ${currentPage}
15272
+ }`
15273
+
15274
+ const posts = await client.fetch(query, params)
15286
15275
  */
15287
15276
 
15288
15277
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16548,7 +16537,7 @@ var Article = function Article(props) {
16548
16537
  React__default.createElement('br', null),
16549
16538
  React__default.createElement('br', null)
16550
16539
  ),
16551
- main_39 && props.article.Ads.map(function (ad, index) {
16540
+ main_36 && props.article.Ads.map(function (ad, index) {
16552
16541
  if (index === 0) {
16553
16542
  return React__default.createElement(
16554
16543
  'div',
@@ -16573,7 +16562,7 @@ var Article = function Article(props) {
16573
16562
  renderIsiContent(props.article)
16574
16563
  )
16575
16564
  ),
16576
- main_39 && props.article.Ads.map(function (ad, index) {
16565
+ main_36 && props.article.Ads.map(function (ad, index) {
16577
16566
  if (index > 0) {
16578
16567
  return React__default.createElement(
16579
16568
  'div',
@@ -16680,7 +16669,7 @@ var ArticleQueue = function ArticleQueue(props) {
16680
16669
  setQueueData = _useState2[1];
16681
16670
 
16682
16671
  var refreshAD = function refreshAD(path) {
16683
- if (!main_39) {
16672
+ if (!main_36) {
16684
16673
  var activeArticle = queueData.find(function (item) {
16685
16674
  return item.url.current === path;
16686
16675
  });
@@ -16790,27 +16779,27 @@ var ArticleQueue = function ArticleQueue(props) {
16790
16779
  };
16791
16780
 
16792
16781
  var KMTracker = function KMTracker(props) {
16793
- var id = props.id;
16782
+ var id = props.id;
16794
16783
 
16795
- if (document && id) {
16784
+ if (document && id) {
16796
16785
  (function () {
16797
- var ecnJquery = document.createElement('script');
16786
+ var ecnJquery = document.createElement('script');
16798
16787
 
16799
- ecnJquery.type = 'text/javascript';
16800
- ecnJquery.async = true;
16801
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16788
+ ecnJquery.type = 'text/javascript';
16789
+ ecnJquery.async = true;
16790
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16802
16791
 
16803
- var ecnScript = document.createElement('script');
16792
+ var ecnScript = document.createElement('script');
16804
16793
 
16805
- ecnScript.type = 'text/javascript';
16806
- ecnScript.async = true;
16807
- ecnScript.id = 'km-tracker';
16808
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16794
+ ecnScript.type = 'text/javascript';
16795
+ ecnScript.async = true;
16796
+ ecnScript.id = 'km-tracker';
16797
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16809
16798
 
16810
- document.head.appendChild(ecnJquery);
16811
- document.head.appendChild(ecnScript);
16812
- })();
16813
- }
16799
+ document.head.appendChild(ecnJquery);
16800
+ document.head.appendChild(ecnScript);
16801
+ })();
16802
+ }
16814
16803
  };
16815
16804
 
16816
16805
  var returnFormField = function returnFormField(_ref) {
@@ -18837,6 +18826,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
18837
18826
  if (value != null) {
18838
18827
  if ($gOPD && (i + 1) >= parts.length) {
18839
18828
  var desc = $gOPD(value, parts[i]);
18829
+ if (!allowMissing && !(parts[i] in value)) {
18830
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
18831
+ }
18840
18832
  value = desc ? (desc.get || desc.value) : value[parts[i]];
18841
18833
  } else {
18842
18834
  value = value[parts[i]];
@@ -18869,7 +18861,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
18869
18861
  return intrinsic;
18870
18862
  };
18871
18863
 
18872
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
18864
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
18865
+
18866
+ if ($defineProperty) {
18867
+ try {
18868
+ $defineProperty({}, 'a', { value: 1 });
18869
+ } catch (e) {
18870
+ // IE 8 has a broken defineProperty
18871
+ $defineProperty = null;
18872
+ }
18873
+ }
18873
18874
 
18874
18875
 
18875
18876
 
@@ -19012,6 +19013,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19012
19013
  return obj;
19013
19014
  };
19014
19015
 
19016
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19017
+ if ($gOPD$1) {
19018
+ try {
19019
+ $gOPD$1([], 'length');
19020
+ } catch (e) {
19021
+ // IE 8 has a broken gOPD
19022
+ $gOPD$1 = null;
19023
+ }
19024
+ }
19025
+
19026
+ var getOwnPropertyDescriptor = $gOPD$1;
19027
+
19028
+ var $Array = GetIntrinsic('%Array%');
19029
+
19030
+ // eslint-disable-next-line global-require
19031
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19032
+
19033
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19034
+
19035
+ var IsArray = $Array.isArray || function IsArray(argument) {
19036
+ return toStr$4(argument) === '[object Array]';
19037
+ };
19038
+
19039
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19040
+
19041
+ var IsPropertyKey = function IsPropertyKey(argument) {
19042
+ return typeof argument === 'string' || typeof argument === 'symbol';
19043
+ };
19044
+
19045
+ var regexExec = RegExp.prototype.exec;
19046
+ var gOPD = Object.getOwnPropertyDescriptor;
19047
+
19048
+ var tryRegexExecCall = function tryRegexExec(value) {
19049
+ try {
19050
+ var lastIndex = value.lastIndex;
19051
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19052
+
19053
+ regexExec.call(value);
19054
+ return true;
19055
+ } catch (e) {
19056
+ return false;
19057
+ } finally {
19058
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19059
+ }
19060
+ };
19061
+ var toStr$5 = Object.prototype.toString;
19062
+ var regexClass = '[object RegExp]';
19063
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19064
+
19065
+ var isRegex = function isRegex(value) {
19066
+ if (!value || typeof value !== 'object') {
19067
+ return false;
19068
+ }
19069
+ if (!hasToStringTag) {
19070
+ return toStr$5.call(value) === regexClass;
19071
+ }
19072
+
19073
+ var descriptor = gOPD(value, 'lastIndex');
19074
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19075
+ if (!hasLastIndexDataProperty) {
19076
+ return false;
19077
+ }
19078
+
19079
+ return tryRegexExecCall(value);
19080
+ };
19081
+
19082
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19083
+
19084
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19085
+
19086
+ var $match = GetIntrinsic('%Symbol.match%', true);
19087
+
19088
+
19089
+
19090
+
19091
+
19092
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19093
+
19094
+ var IsRegExp = function IsRegExp(argument) {
19095
+ if (!argument || typeof argument !== 'object') {
19096
+ return false;
19097
+ }
19098
+ if ($match) {
19099
+ var isRegExp = argument[$match];
19100
+ if (typeof isRegExp !== 'undefined') {
19101
+ return ToBoolean(isRegExp);
19102
+ }
19103
+ }
19104
+ return isRegex(argument);
19105
+ };
19106
+
19107
+ var fnToStr = Function.prototype.toString;
19108
+
19109
+ var constructorRegex = /^\s*class\b/;
19110
+ var isES6ClassFn = function isES6ClassFunction(value) {
19111
+ try {
19112
+ var fnStr = fnToStr.call(value);
19113
+ return constructorRegex.test(fnStr);
19114
+ } catch (e) {
19115
+ return false; // not a function
19116
+ }
19117
+ };
19118
+
19119
+ var tryFunctionObject = function tryFunctionToStr(value) {
19120
+ try {
19121
+ if (isES6ClassFn(value)) { return false; }
19122
+ fnToStr.call(value);
19123
+ return true;
19124
+ } catch (e) {
19125
+ return false;
19126
+ }
19127
+ };
19128
+ var toStr$6 = Object.prototype.toString;
19129
+ var fnClass = '[object Function]';
19130
+ var genClass = '[object GeneratorFunction]';
19131
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19132
+
19133
+ var isCallable = function isCallable(value) {
19134
+ if (!value) { return false; }
19135
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19136
+ if (typeof value === 'function' && !value.prototype) { return true; }
19137
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19138
+ if (isES6ClassFn(value)) { return false; }
19139
+ var strClass = toStr$6.call(value);
19140
+ return strClass === fnClass || strClass === genClass;
19141
+ };
19142
+
19143
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19144
+
19145
+ var IsCallable = isCallable;
19146
+
19147
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19148
+
19149
+
19150
+
19151
+
19152
+
19153
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19154
+
19155
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19156
+ if (Type$1(Obj) !== 'Object') {
19157
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19158
+ }
19159
+
19160
+ var desc = {};
19161
+ if (src$1(Obj, 'enumerable')) {
19162
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19163
+ }
19164
+ if (src$1(Obj, 'configurable')) {
19165
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19166
+ }
19167
+ if (src$1(Obj, 'value')) {
19168
+ desc['[[Value]]'] = Obj.value;
19169
+ }
19170
+ if (src$1(Obj, 'writable')) {
19171
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
19172
+ }
19173
+ if (src$1(Obj, 'get')) {
19174
+ var getter = Obj.get;
19175
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
19176
+ throw new TypeError('getter must be a function');
19177
+ }
19178
+ desc['[[Get]]'] = getter;
19179
+ }
19180
+ if (src$1(Obj, 'set')) {
19181
+ var setter = Obj.set;
19182
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
19183
+ throw new $TypeError$2('setter must be a function');
19184
+ }
19185
+ desc['[[Set]]'] = setter;
19186
+ }
19187
+
19188
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
19189
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
19190
+ }
19191
+ return desc;
19192
+ };
19193
+
19194
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
19195
+
19196
+
19197
+
19198
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
19199
+
19200
+
19201
+
19202
+
19203
+
19204
+
19205
+
19206
+
19207
+
19208
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
19209
+
19210
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
19211
+ if (Type$1(O) !== 'Object') {
19212
+ throw new $TypeError$3('Assertion failed: O must be an Object');
19213
+ }
19214
+ if (!IsPropertyKey(P)) {
19215
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
19216
+ }
19217
+ if (!src$1(O, P)) {
19218
+ return void 0;
19219
+ }
19220
+ if (!getOwnPropertyDescriptor) {
19221
+ // ES3 / IE 8 fallback
19222
+ var arrayLength = IsArray(O) && P === 'length';
19223
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
19224
+ return {
19225
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
19226
+ '[[Enumerable]]': $isEnumerable$1(O, P),
19227
+ '[[Value]]': O[P],
19228
+ '[[Writable]]': true
19229
+ };
19230
+ }
19231
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
19232
+ };
19233
+
19015
19234
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19016
19235
 
19017
19236
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -19045,16 +19264,10 @@ var IsExtensible = $preventExtensions
19045
19264
  ? function IsExtensible(obj) {
19046
19265
  return !isPrimitive$1(obj) && $isExtensible(obj);
19047
19266
  }
19048
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19049
- return true;
19267
+ : function IsExtensible(obj) {
19268
+ return !isPrimitive$1(obj);
19050
19269
  };
19051
19270
 
19052
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19053
-
19054
- var IsPropertyKey = function IsPropertyKey(argument) {
19055
- return typeof argument === 'string' || typeof argument === 'symbol';
19056
- };
19057
-
19058
19271
  var _isNaN = Number.isNaN || function isNaN(a) {
19059
19272
  return a !== a;
19060
19273
  };
@@ -19069,8 +19282,8 @@ var SameValue = function SameValue(x, y) {
19069
19282
  return _isNaN(x) && _isNaN(y);
19070
19283
  };
19071
19284
 
19072
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19073
- var $TypeError$2 = GetIntrinsic('%TypeError%');
19285
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
19286
+
19074
19287
 
19075
19288
 
19076
19289
 
@@ -19085,12 +19298,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
19085
19298
 
19086
19299
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
19087
19300
  if (Type$1(O) !== 'Object') {
19088
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
19301
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19089
19302
  }
19090
19303
  if (!IsPropertyKey(P)) {
19091
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
19304
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19092
19305
  }
19093
- var oldDesc = $gOPD$1(O, P);
19306
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19094
19307
  var extensible = oldDesc || IsExtensible(O);
19095
19308
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19096
19309
  if (immutable || !extensible) {
@@ -19111,53 +19324,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19111
19324
  );
19112
19325
  };
19113
19326
 
19114
- var fnToStr = Function.prototype.toString;
19115
-
19116
- var constructorRegex = /^\s*class\b/;
19117
- var isES6ClassFn = function isES6ClassFunction(value) {
19118
- try {
19119
- var fnStr = fnToStr.call(value);
19120
- return constructorRegex.test(fnStr);
19121
- } catch (e) {
19122
- return false; // not a function
19123
- }
19124
- };
19125
-
19126
- var tryFunctionObject = function tryFunctionToStr(value) {
19127
- try {
19128
- if (isES6ClassFn(value)) { return false; }
19129
- fnToStr.call(value);
19130
- return true;
19131
- } catch (e) {
19132
- return false;
19133
- }
19134
- };
19135
- var toStr$4 = Object.prototype.toString;
19136
- var fnClass = '[object Function]';
19137
- var genClass = '[object GeneratorFunction]';
19138
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19139
-
19140
- var isCallable = function isCallable(value) {
19141
- if (!value) { return false; }
19142
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19143
- if (typeof value === 'function' && !value.prototype) { return true; }
19144
- if (hasToStringTag) { return tryFunctionObject(value); }
19145
- if (isES6ClassFn(value)) { return false; }
19146
- var strClass = toStr$4.call(value);
19147
- return strClass === fnClass || strClass === genClass;
19148
- };
19149
-
19150
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19151
-
19152
- var IsCallable = isCallable;
19153
-
19154
- var $TypeError$3 = GetIntrinsic('%TypeError%');
19327
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19155
19328
 
19156
19329
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19157
19330
 
19158
19331
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19159
19332
  if (value == null) {
19160
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
19333
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19161
19334
  }
19162
19335
  return value;
19163
19336
  };
@@ -19228,241 +19401,6 @@ defineProperties_1(implementation$2, {
19228
19401
 
19229
19402
  var object_getownpropertydescriptors = implementation$2;
19230
19403
 
19231
- /* globals
19232
- Atomics,
19233
- SharedArrayBuffer,
19234
- */
19235
-
19236
- var undefined$2;
19237
-
19238
- var $TypeError$4 = TypeError;
19239
-
19240
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
19241
- if ($gOPD$3) {
19242
- try {
19243
- $gOPD$3({}, '');
19244
- } catch (e) {
19245
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
19246
- }
19247
- }
19248
-
19249
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
19250
- var ThrowTypeError$1 = $gOPD$3
19251
- ? (function () {
19252
- try {
19253
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
19254
- arguments.callee; // IE 8 does not throw here
19255
- return throwTypeError$1;
19256
- } catch (calleeThrows) {
19257
- try {
19258
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
19259
- return $gOPD$3(arguments, 'callee').get;
19260
- } catch (gOPDthrows) {
19261
- return throwTypeError$1;
19262
- }
19263
- }
19264
- }())
19265
- : throwTypeError$1;
19266
-
19267
- var hasSymbols$3 = hasSymbols$1();
19268
-
19269
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
19270
- var generatorFunction$1 = undefined$2;
19271
- var asyncFunction$1 = undefined$2;
19272
- var asyncGenFunction$1 = undefined$2;
19273
-
19274
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
19275
-
19276
- var INTRINSICS$1 = {
19277
- '%Array%': Array,
19278
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
19279
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
19280
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
19281
- '%ArrayPrototype%': Array.prototype,
19282
- '%ArrayProto_entries%': Array.prototype.entries,
19283
- '%ArrayProto_forEach%': Array.prototype.forEach,
19284
- '%ArrayProto_keys%': Array.prototype.keys,
19285
- '%ArrayProto_values%': Array.prototype.values,
19286
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
19287
- '%AsyncFunction%': asyncFunction$1,
19288
- '%AsyncFunctionPrototype%': undefined$2,
19289
- '%AsyncGenerator%': undefined$2,
19290
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
19291
- '%AsyncGeneratorPrototype%': undefined$2,
19292
- '%AsyncIteratorPrototype%': undefined$2,
19293
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
19294
- '%Boolean%': Boolean,
19295
- '%BooleanPrototype%': Boolean.prototype,
19296
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
19297
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
19298
- '%Date%': Date,
19299
- '%DatePrototype%': Date.prototype,
19300
- '%decodeURI%': decodeURI,
19301
- '%decodeURIComponent%': decodeURIComponent,
19302
- '%encodeURI%': encodeURI,
19303
- '%encodeURIComponent%': encodeURIComponent,
19304
- '%Error%': Error,
19305
- '%ErrorPrototype%': Error.prototype,
19306
- '%eval%': eval, // eslint-disable-line no-eval
19307
- '%EvalError%': EvalError,
19308
- '%EvalErrorPrototype%': EvalError.prototype,
19309
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
19310
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
19311
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
19312
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
19313
- '%Function%': Function,
19314
- '%FunctionPrototype%': Function.prototype,
19315
- '%Generator%': undefined$2,
19316
- '%GeneratorFunction%': generatorFunction$1,
19317
- '%GeneratorPrototype%': undefined$2,
19318
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
19319
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
19320
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
19321
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
19322
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
19323
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
19324
- '%isFinite%': isFinite,
19325
- '%isNaN%': isNaN,
19326
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
19327
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
19328
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
19329
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
19330
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
19331
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
19332
- '%Math%': Math,
19333
- '%Number%': Number,
19334
- '%NumberPrototype%': Number.prototype,
19335
- '%Object%': Object,
19336
- '%ObjectPrototype%': Object.prototype,
19337
- '%ObjProto_toString%': Object.prototype.toString,
19338
- '%ObjProto_valueOf%': Object.prototype.valueOf,
19339
- '%parseFloat%': parseFloat,
19340
- '%parseInt%': parseInt,
19341
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
19342
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
19343
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
19344
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
19345
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
19346
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
19347
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
19348
- '%RangeError%': RangeError,
19349
- '%RangeErrorPrototype%': RangeError.prototype,
19350
- '%ReferenceError%': ReferenceError,
19351
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
19352
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
19353
- '%RegExp%': RegExp,
19354
- '%RegExpPrototype%': RegExp.prototype,
19355
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
19356
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
19357
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
19358
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
19359
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
19360
- '%String%': String,
19361
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
19362
- '%StringPrototype%': String.prototype,
19363
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
19364
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
19365
- '%SyntaxError%': SyntaxError,
19366
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
19367
- '%ThrowTypeError%': ThrowTypeError$1,
19368
- '%TypedArray%': TypedArray$1,
19369
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
19370
- '%TypeError%': $TypeError$4,
19371
- '%TypeErrorPrototype%': $TypeError$4.prototype,
19372
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
19373
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
19374
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
19375
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
19376
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
19377
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
19378
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
19379
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
19380
- '%URIError%': URIError,
19381
- '%URIErrorPrototype%': URIError.prototype,
19382
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
19383
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
19384
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
19385
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
19386
- };
19387
-
19388
-
19389
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
19390
-
19391
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
19392
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
19393
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
19394
- var stringToPath$1 = function stringToPath(string) {
19395
- var result = [];
19396
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
19397
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
19398
- });
19399
- return result;
19400
- };
19401
- /* end adaptation */
19402
-
19403
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
19404
- if (!(name in INTRINSICS$1)) {
19405
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
19406
- }
19407
-
19408
- // istanbul ignore if // hopefully this is impossible to test :-)
19409
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
19410
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
19411
- }
19412
-
19413
- return INTRINSICS$1[name];
19414
- };
19415
-
19416
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
19417
- if (typeof name !== 'string' || name.length === 0) {
19418
- throw new TypeError('intrinsic name must be a non-empty string');
19419
- }
19420
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
19421
- throw new TypeError('"allowMissing" argument must be a boolean');
19422
- }
19423
-
19424
- var parts = stringToPath$1(name);
19425
-
19426
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
19427
- for (var i = 1; i < parts.length; i += 1) {
19428
- if (value != null) {
19429
- if ($gOPD$3 && (i + 1) >= parts.length) {
19430
- var desc = $gOPD$3(value, parts[i]);
19431
- if (!allowMissing && !(parts[i] in value)) {
19432
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
19433
- }
19434
- value = desc ? (desc.get || desc.value) : value[parts[i]];
19435
- } else {
19436
- value = value[parts[i]];
19437
- }
19438
- }
19439
- }
19440
- return value;
19441
- };
19442
-
19443
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
19444
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
19445
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
19446
-
19447
- var callBind$1 = function callBind() {
19448
- return $reflectApply(functionBind, $call$1, arguments);
19449
- };
19450
-
19451
- var apply$1 = function applyBind() {
19452
- return $reflectApply(functionBind, $apply$1, arguments);
19453
- };
19454
- callBind$1.apply = apply$1;
19455
-
19456
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
19457
-
19458
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
19459
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
19460
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
19461
- return callBind$1(intrinsic);
19462
- }
19463
- return intrinsic;
19464
- };
19465
-
19466
19404
  var isES5$1 = typeof Object.defineProperty === 'function'
19467
19405
  && typeof Object.defineProperties === 'function';
19468
19406
 
@@ -19480,14 +19418,14 @@ if (typeof Promise !== 'function') {
19480
19418
 
19481
19419
 
19482
19420
 
19483
- var $slice = callBound$1('Array.prototype.slice');
19484
- var $concat$1 = callBound$1('Array.prototype.concat');
19485
- var $forEach = callBound$1('Array.prototype.forEach');
19421
+ var $slice = callBound('Array.prototype.slice');
19422
+ var $concat$1 = callBound('Array.prototype.concat');
19423
+ var $forEach = callBound('Array.prototype.forEach');
19486
19424
 
19487
- var hasSymbols$4 = hasSymbols$1();
19425
+ var hasSymbols$3 = hasSymbols$1();
19488
19426
 
19489
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
19490
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
19427
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
19428
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
19491
19429
 
19492
19430
  var implementation$3 = function promisify(orig) {
19493
19431
  if (typeof orig !== 'function') {
@@ -19497,7 +19435,7 @@ var implementation$3 = function promisify(orig) {
19497
19435
  throw error;
19498
19436
  }
19499
19437
 
19500
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
19438
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
19501
19439
  var customFunction = orig[kCustomPromisifiedSymbol];
19502
19440
  if (typeof customFunction !== 'function') {
19503
19441
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -19626,324 +19564,6 @@ function connect() {
19626
19564
 
19627
19565
  var db = connect;
19628
19566
 
19629
- var crypt = createCommonjsModule(function (module) {
19630
- (function() {
19631
- var base64map
19632
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
19633
-
19634
- crypt = {
19635
- // Bit-wise rotation left
19636
- rotl: function(n, b) {
19637
- return (n << b) | (n >>> (32 - b));
19638
- },
19639
-
19640
- // Bit-wise rotation right
19641
- rotr: function(n, b) {
19642
- return (n << (32 - b)) | (n >>> b);
19643
- },
19644
-
19645
- // Swap big-endian to little-endian and vice versa
19646
- endian: function(n) {
19647
- // If number given, swap endian
19648
- if (n.constructor == Number) {
19649
- return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
19650
- }
19651
-
19652
- // Else, assume array and swap all items
19653
- for (var i = 0; i < n.length; i++)
19654
- n[i] = crypt.endian(n[i]);
19655
- return n;
19656
- },
19657
-
19658
- // Generate an array of any length of random bytes
19659
- randomBytes: function(n) {
19660
- for (var bytes = []; n > 0; n--)
19661
- bytes.push(Math.floor(Math.random() * 256));
19662
- return bytes;
19663
- },
19664
-
19665
- // Convert a byte array to big-endian 32-bit words
19666
- bytesToWords: function(bytes) {
19667
- for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
19668
- words[b >>> 5] |= bytes[i] << (24 - b % 32);
19669
- return words;
19670
- },
19671
-
19672
- // Convert big-endian 32-bit words to a byte array
19673
- wordsToBytes: function(words) {
19674
- for (var bytes = [], b = 0; b < words.length * 32; b += 8)
19675
- bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
19676
- return bytes;
19677
- },
19678
-
19679
- // Convert a byte array to a hex string
19680
- bytesToHex: function(bytes) {
19681
- for (var hex = [], i = 0; i < bytes.length; i++) {
19682
- hex.push((bytes[i] >>> 4).toString(16));
19683
- hex.push((bytes[i] & 0xF).toString(16));
19684
- }
19685
- return hex.join('');
19686
- },
19687
-
19688
- // Convert a hex string to a byte array
19689
- hexToBytes: function(hex) {
19690
- for (var bytes = [], c = 0; c < hex.length; c += 2)
19691
- bytes.push(parseInt(hex.substr(c, 2), 16));
19692
- return bytes;
19693
- },
19694
-
19695
- // Convert a byte array to a base-64 string
19696
- bytesToBase64: function(bytes) {
19697
- for (var base64 = [], i = 0; i < bytes.length; i += 3) {
19698
- var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
19699
- for (var j = 0; j < 4; j++)
19700
- if (i * 8 + j * 6 <= bytes.length * 8)
19701
- base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
19702
- else
19703
- base64.push('=');
19704
- }
19705
- return base64.join('');
19706
- },
19707
-
19708
- // Convert a base-64 string to a byte array
19709
- base64ToBytes: function(base64) {
19710
- // Remove non-base-64 characters
19711
- base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
19712
-
19713
- for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
19714
- imod4 = ++i % 4) {
19715
- if (imod4 == 0) continue;
19716
- bytes.push(((base64map.indexOf(base64.charAt(i - 1))
19717
- & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
19718
- | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
19719
- }
19720
- return bytes;
19721
- }
19722
- };
19723
-
19724
- module.exports = crypt;
19725
- })();
19726
- });
19727
-
19728
- var charenc = {
19729
- // UTF-8 encoding
19730
- utf8: {
19731
- // Convert a string to a byte array
19732
- stringToBytes: function(str) {
19733
- return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
19734
- },
19735
-
19736
- // Convert a byte array to a string
19737
- bytesToString: function(bytes) {
19738
- return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
19739
- }
19740
- },
19741
-
19742
- // Binary encoding
19743
- bin: {
19744
- // Convert a string to a byte array
19745
- stringToBytes: function(str) {
19746
- for (var bytes = [], i = 0; i < str.length; i++)
19747
- bytes.push(str.charCodeAt(i) & 0xFF);
19748
- return bytes;
19749
- },
19750
-
19751
- // Convert a byte array to a string
19752
- bytesToString: function(bytes) {
19753
- for (var str = [], i = 0; i < bytes.length; i++)
19754
- str.push(String.fromCharCode(bytes[i]));
19755
- return str.join('');
19756
- }
19757
- }
19758
- };
19759
-
19760
- var charenc_1 = charenc;
19761
-
19762
- /*!
19763
- * Determine if an object is a Buffer
19764
- *
19765
- * @author Feross Aboukhadijeh <https://feross.org>
19766
- * @license MIT
19767
- */
19768
-
19769
- // The _isBuffer check is for Safari 5-7 support, because it's missing
19770
- // Object.prototype.constructor. Remove this eventually
19771
- var isBuffer_1$1 = function (obj) {
19772
- return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
19773
- };
19774
-
19775
- function isBuffer$1 (obj) {
19776
- return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
19777
- }
19778
-
19779
- // For Node v0.10 support. Remove this eventually.
19780
- function isSlowBuffer (obj) {
19781
- return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
19782
- }
19783
-
19784
- var md5 = createCommonjsModule(function (module) {
19785
- (function(){
19786
- var crypt$1 = crypt,
19787
- utf8 = charenc_1.utf8,
19788
- isBuffer = isBuffer_1$1,
19789
- bin = charenc_1.bin,
19790
-
19791
- // The core
19792
- md5 = function (message, options) {
19793
- // Convert to byte array
19794
- if (message.constructor == String)
19795
- if (options && options.encoding === 'binary')
19796
- message = bin.stringToBytes(message);
19797
- else
19798
- message = utf8.stringToBytes(message);
19799
- else if (isBuffer(message))
19800
- message = Array.prototype.slice.call(message, 0);
19801
- else if (!Array.isArray(message))
19802
- message = message.toString();
19803
- // else, assume byte array already
19804
-
19805
- var m = crypt$1.bytesToWords(message),
19806
- l = message.length * 8,
19807
- a = 1732584193,
19808
- b = -271733879,
19809
- c = -1732584194,
19810
- d = 271733878;
19811
-
19812
- // Swap endian
19813
- for (var i = 0; i < m.length; i++) {
19814
- m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
19815
- ((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
19816
- }
19817
-
19818
- // Padding
19819
- m[l >>> 5] |= 0x80 << (l % 32);
19820
- m[(((l + 64) >>> 9) << 4) + 14] = l;
19821
-
19822
- // Method shortcuts
19823
- var FF = md5._ff,
19824
- GG = md5._gg,
19825
- HH = md5._hh,
19826
- II = md5._ii;
19827
-
19828
- for (var i = 0; i < m.length; i += 16) {
19829
-
19830
- var aa = a,
19831
- bb = b,
19832
- cc = c,
19833
- dd = d;
19834
-
19835
- a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
19836
- d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
19837
- c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
19838
- b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
19839
- a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
19840
- d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
19841
- c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
19842
- b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
19843
- a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
19844
- d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
19845
- c = FF(c, d, a, b, m[i+10], 17, -42063);
19846
- b = FF(b, c, d, a, m[i+11], 22, -1990404162);
19847
- a = FF(a, b, c, d, m[i+12], 7, 1804603682);
19848
- d = FF(d, a, b, c, m[i+13], 12, -40341101);
19849
- c = FF(c, d, a, b, m[i+14], 17, -1502002290);
19850
- b = FF(b, c, d, a, m[i+15], 22, 1236535329);
19851
-
19852
- a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
19853
- d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
19854
- c = GG(c, d, a, b, m[i+11], 14, 643717713);
19855
- b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
19856
- a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
19857
- d = GG(d, a, b, c, m[i+10], 9, 38016083);
19858
- c = GG(c, d, a, b, m[i+15], 14, -660478335);
19859
- b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
19860
- a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
19861
- d = GG(d, a, b, c, m[i+14], 9, -1019803690);
19862
- c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
19863
- b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
19864
- a = GG(a, b, c, d, m[i+13], 5, -1444681467);
19865
- d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
19866
- c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
19867
- b = GG(b, c, d, a, m[i+12], 20, -1926607734);
19868
-
19869
- a = HH(a, b, c, d, m[i+ 5], 4, -378558);
19870
- d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
19871
- c = HH(c, d, a, b, m[i+11], 16, 1839030562);
19872
- b = HH(b, c, d, a, m[i+14], 23, -35309556);
19873
- a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
19874
- d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
19875
- c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
19876
- b = HH(b, c, d, a, m[i+10], 23, -1094730640);
19877
- a = HH(a, b, c, d, m[i+13], 4, 681279174);
19878
- d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
19879
- c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
19880
- b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
19881
- a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
19882
- d = HH(d, a, b, c, m[i+12], 11, -421815835);
19883
- c = HH(c, d, a, b, m[i+15], 16, 530742520);
19884
- b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
19885
-
19886
- a = II(a, b, c, d, m[i+ 0], 6, -198630844);
19887
- d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
19888
- c = II(c, d, a, b, m[i+14], 15, -1416354905);
19889
- b = II(b, c, d, a, m[i+ 5], 21, -57434055);
19890
- a = II(a, b, c, d, m[i+12], 6, 1700485571);
19891
- d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
19892
- c = II(c, d, a, b, m[i+10], 15, -1051523);
19893
- b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
19894
- a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
19895
- d = II(d, a, b, c, m[i+15], 10, -30611744);
19896
- c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
19897
- b = II(b, c, d, a, m[i+13], 21, 1309151649);
19898
- a = II(a, b, c, d, m[i+ 4], 6, -145523070);
19899
- d = II(d, a, b, c, m[i+11], 10, -1120210379);
19900
- c = II(c, d, a, b, m[i+ 2], 15, 718787259);
19901
- b = II(b, c, d, a, m[i+ 9], 21, -343485551);
19902
-
19903
- a = (a + aa) >>> 0;
19904
- b = (b + bb) >>> 0;
19905
- c = (c + cc) >>> 0;
19906
- d = (d + dd) >>> 0;
19907
- }
19908
-
19909
- return crypt$1.endian([a, b, c, d]);
19910
- };
19911
-
19912
- // Auxiliary functions
19913
- md5._ff = function (a, b, c, d, x, s, t) {
19914
- var n = a + (b & c | ~b & d) + (x >>> 0) + t;
19915
- return ((n << s) | (n >>> (32 - s))) + b;
19916
- };
19917
- md5._gg = function (a, b, c, d, x, s, t) {
19918
- var n = a + (b & d | c & ~d) + (x >>> 0) + t;
19919
- return ((n << s) | (n >>> (32 - s))) + b;
19920
- };
19921
- md5._hh = function (a, b, c, d, x, s, t) {
19922
- var n = a + (b ^ c ^ d) + (x >>> 0) + t;
19923
- return ((n << s) | (n >>> (32 - s))) + b;
19924
- };
19925
- md5._ii = function (a, b, c, d, x, s, t) {
19926
- var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
19927
- return ((n << s) | (n >>> (32 - s))) + b;
19928
- };
19929
-
19930
- // Package private blocksize
19931
- md5._blocksize = 16;
19932
- md5._digestsize = 16;
19933
-
19934
- module.exports = function (message, options) {
19935
- if (message === undefined || message === null)
19936
- throw new Error('Illegal argument ' + message);
19937
-
19938
- var digestbytes = crypt$1.wordsToBytes(md5(message, options));
19939
- return options && options.asBytes ? digestbytes :
19940
- options && options.asString ? bin.bytesToString(digestbytes) :
19941
- crypt$1.bytesToHex(digestbytes);
19942
- };
19943
-
19944
- })();
19945
- });
19946
-
19947
19567
  var _this$3 = undefined;
19948
19568
 
19949
19569
  var config = {