@mjhls/mjh-framework 1.0.239 → 1.0.240

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 (65) hide show
  1. package/README.md +174 -174
  2. package/dist/cjs/AdSlot-c472fff6.js +1192 -0
  3. package/dist/cjs/DeckContent.js +15 -14
  4. package/dist/cjs/DeckQueue.js +6 -6
  5. package/dist/cjs/{Dfp-045b016b.js → Dfp-7a5533f9.js} +1 -1
  6. package/dist/cjs/{GridContent-21bc198f.js → GridContent-f9e3fff5.js} +8 -8
  7. package/dist/cjs/GridContent.js +9 -8
  8. package/dist/cjs/IssueContentDeck.js +1 -1
  9. package/dist/cjs/IssueDeck.js +1 -1
  10. package/dist/cjs/MasterDeck.js +332 -14
  11. package/dist/cjs/{Normal-c89b709d.js → Normal-0497eb61.js} +32 -32
  12. package/dist/cjs/PublicationDeck.js +1 -1
  13. package/dist/cjs/QueueDeckExpanded.js +3 -3
  14. package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
  15. package/dist/cjs/TaxonomyCard.js +2 -2
  16. package/dist/cjs/TemplateNormal.js +6 -5
  17. package/dist/cjs/ThumbnailCard.js +1 -1
  18. package/dist/cjs/VideoSeriesListing.js +3 -3
  19. package/dist/cjs/{YoutubeGroup-5f480446.js → YoutubeGroup-fd44f8a0.js} +4 -4
  20. package/dist/cjs/YoutubeGroup.js +1 -1
  21. package/dist/cjs/{debounce-bbca43c4.js → debounce-783eb233.js} +3 -0
  22. package/dist/cjs/{get-af2516a4.js → get-1f91592f.js} +1 -1
  23. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  24. package/dist/cjs/index.js +643 -1355
  25. package/dist/cjs/{inherits-5b5ca8db.js → inherits-9898af5a.js} +2 -4
  26. package/dist/cjs/{main-d9a1b014.js → main-0ea1b808.js} +51 -0
  27. package/dist/cjs/{MasterDeck-f8fbac3c.js → promise-b96c61f8.js} +7 -340
  28. package/dist/cjs/{toConsumableArray-7e4caf3c.js → toConsumableArray-f05a306f.js} +5 -52
  29. package/dist/esm/AdSlot-bdd7a629.js +1183 -0
  30. package/dist/esm/DeckContent.js +20 -19
  31. package/dist/esm/DeckQueue.js +10 -10
  32. package/dist/esm/{Dfp-01f14ae3.js → Dfp-71879c9d.js} +5 -5
  33. package/dist/esm/{GridContent-73c97039.js → GridContent-d4f5457e.js} +9 -9
  34. package/dist/esm/GridContent.js +14 -13
  35. package/dist/esm/IssueContentDeck.js +1 -1
  36. package/dist/esm/IssueDeck.js +1 -1
  37. package/dist/esm/MasterDeck.js +334 -16
  38. package/dist/esm/{Normal-fdd55386.js → Normal-e1855047.js} +33 -33
  39. package/dist/esm/PublicationDeck.js +1 -1
  40. package/dist/esm/QueueDeckExpanded.js +8 -8
  41. package/dist/esm/{TaxonomyCard-a7b7ded8.js → TaxonomyCard-ee1a22ae.js} +2 -2
  42. package/dist/esm/TaxonomyCard.js +4 -4
  43. package/dist/esm/TemplateNormal.js +10 -9
  44. package/dist/esm/ThumbnailCard.js +1 -1
  45. package/dist/esm/{Ustream-62a07a32.js → Ustream-d51b9b11.js} +1 -1
  46. package/dist/esm/Ustream.js +5 -5
  47. package/dist/esm/VideoSeriesListing.js +6 -6
  48. package/dist/esm/{YoutubeGroup-78d93d44.js → YoutubeGroup-1b3eca73.js} +4 -4
  49. package/dist/esm/YoutubeGroup.js +1 -1
  50. package/dist/esm/{_to-object-86553f76.js → _to-object-b9b796ec.js} +1 -1
  51. package/dist/esm/{core.get-iterator-method-709061dc.js → core.get-iterator-method-31c1fb1a.js} +2 -2
  52. package/dist/esm/{debounce-fa7fbf11.js → debounce-806f886b.js} +3 -1
  53. package/dist/esm/{extends-7f88fa22.js → extends-dbbe308d.js} +1 -1
  54. package/dist/esm/{get-8d382479.js → get-b2201dc8.js} +1 -1
  55. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  56. package/dist/esm/index.js +649 -1363
  57. package/dist/esm/{inherits-a82a4471.js → inherits-a75c8a1c.js} +5 -6
  58. package/dist/esm/{main-eecf7b27.js → main-155ec04f.js} +48 -1
  59. package/dist/esm/{MasterDeck-238f31d7.js → promise-683a9c54.js} +6 -335
  60. package/dist/esm/{slicedToArray-eb7eca9e.js → slicedToArray-d0a9593a.js} +3 -3
  61. package/dist/esm/{toConsumableArray-08d50169.js → toConsumableArray-eb308ede.js} +5 -49
  62. package/dist/esm/{web.dom.iterable-f05d2f57.js → web.dom.iterable-3be50d6c.js} +2 -2
  63. package/package.json +102 -101
  64. package/dist/cjs/AdSlot-1fe1c231.js +0 -69
  65. package/dist/esm/AdSlot-017b8051.js +0 -64
package/dist/cjs/index.js CHANGED
@@ -7,10 +7,12 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
7
7
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
8
8
  var _toObject = require('./_to-object-329a650b.js');
9
9
  require('./web.dom.iterable-0998bdc3.js');
10
- var inherits$2 = require('./inherits-5b5ca8db.js');
11
- var toConsumableArray = require('./toConsumableArray-7e4caf3c.js');
10
+ var debounce = require('./debounce-783eb233.js');
11
+ var main = require('./main-0ea1b808.js');
12
+ var toConsumableArray = require('./toConsumableArray-f05a306f.js');
12
13
  require('./core.get-iterator-method-e049ca4a.js');
13
14
  var _extends$2 = require('./extends-e94dbea5.js');
15
+ var inherits$2 = require('./inherits-9898af5a.js');
14
16
  var React = require('react');
15
17
  var React__default = _interopDefault(React);
16
18
  var index = require('./index-fa3cec70.js');
@@ -23,35 +25,34 @@ var visibilitySensor = require('./visibility-sensor-b72d9527.js');
23
25
  var Link = _interopDefault(require('next/link'));
24
26
  var Router = require('next/router');
25
27
  var Router__default = _interopDefault(Router);
26
- var debounce = require('./debounce-bbca43c4.js');
27
28
  require('react-dom');
28
- var index$1 = require('./index-be0c82be.js');
29
+ var index$1 = require('./index-39beccb3.js');
29
30
  require('./index-fa0fb52c.js');
30
- var main = require('./main-d9a1b014.js');
31
31
  var entities = require('./entities-310b46ee.js');
32
32
  var slicedToArray = require('./slicedToArray-e38fb29d.js');
33
- var AdSlot = require('./AdSlot-1fe1c231.js');
33
+ var AdSlot = require('./AdSlot-c472fff6.js');
34
+ require('./promise-b96c61f8.js');
34
35
  var DeckContent = require('./DeckContent.js');
35
- require('./get-af2516a4.js');
36
- var GridContent = require('./GridContent-21bc198f.js');
36
+ require('./get-1f91592f.js');
37
+ var GridContent = require('./GridContent-f9e3fff5.js');
37
38
  var DeckQueue = require('./DeckQueue.js');
38
39
  require('react-bootstrap/Media');
39
40
  var ThumbnailCard = require('./ThumbnailCard.js');
40
- var TaxonomyCard = require('./TaxonomyCard-e3566492.js');
41
+ var TaxonomyCard = require('./TaxonomyCard-b5074d6e.js');
41
42
  var GroupDeck = require('./GroupDeck.js');
42
- var YoutubeGroup = require('./YoutubeGroup-5f480446.js');
43
+ var YoutubeGroup = require('./YoutubeGroup-fd44f8a0.js');
43
44
  var reactBootstrap = require('react-bootstrap');
44
45
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
45
46
  var index_esm = require('./index.esm-340d3792.js');
46
47
  var VideoSeriesListing = require('./VideoSeriesListing.js');
47
- var MasterDeck = require('./MasterDeck-f8fbac3c.js');
48
+ var MasterDeck = require('./MasterDeck.js');
48
49
  var Button = _interopDefault(require('react-bootstrap/Button'));
49
50
  var PublicationDeck = require('./PublicationDeck.js');
50
51
  var IssueDeck = require('./IssueDeck.js');
51
52
  require('react-bootstrap/Badge');
52
53
  var IssueContentDeck = require('./IssueContentDeck.js');
53
54
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
54
- var TemplateNormal = require('./Normal-c89b709d.js');
55
+ var TemplateNormal = require('./Normal-0497eb61.js');
55
56
  require('react-bootstrap/ListGroup');
56
57
  var Head = _interopDefault(require('next/head'));
57
58
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -69,17 +70,6 @@ var DropdownButton = _interopDefault(require('react-bootstrap/DropdownButton'));
69
70
  var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
70
71
  var Ustream = require('./Ustream-85b14a8d.js');
71
72
 
72
- var $JSON = _toObject._core.JSON || (_toObject._core.JSON = { stringify: JSON.stringify });
73
- var stringify = function stringify(it) { // eslint-disable-line no-unused-vars
74
- return $JSON.stringify.apply($JSON, arguments);
75
- };
76
-
77
- var stringify$1 = _commonjsHelpers.createCommonjsModule(function (module) {
78
- module.exports = { "default": stringify, __esModule: true };
79
- });
80
-
81
- var _JSON$stringify = _commonjsHelpers.unwrapExports(stringify$1);
82
-
83
73
  var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
84
74
  //! moment-timezone.js
85
75
  //! version : 0.5.31
@@ -1631,12 +1621,12 @@ var latest = {
1631
1621
  };
1632
1622
 
1633
1623
  var latest$1 = /*#__PURE__*/Object.freeze({
1634
- __proto__: null,
1635
- version: version,
1636
- zones: zones,
1637
- links: links,
1638
- countries: countries,
1639
- 'default': latest
1624
+ __proto__: null,
1625
+ version: version,
1626
+ zones: zones,
1627
+ links: links,
1628
+ countries: countries,
1629
+ 'default': latest
1640
1630
  });
1641
1631
 
1642
1632
  var require$$1 = _commonjsHelpers.getCjsExportFromNamespace(latest$1);
@@ -1707,7 +1697,7 @@ var EventsDeck = function EventsDeck(_ref) {
1707
1697
  'x-api-key': clientId,
1708
1698
  Authorization: 'Bearer ' + accessToken
1709
1699
  },
1710
- body: _JSON$stringify({ filter: filter }),
1700
+ body: AdSlot._JSON$stringify({ filter: filter }),
1711
1701
  method: 'POST'
1712
1702
  }).then(function (response) {
1713
1703
  return response.json();
@@ -1787,7 +1777,7 @@ var EventsDeck = function EventsDeck(_ref) {
1787
1777
  'x-api-key': clientId,
1788
1778
  Authorization: 'Bearer ' + accessToken
1789
1779
  },
1790
- body: _JSON$stringify({ filter: filter }),
1780
+ body: AdSlot._JSON$stringify({ filter: filter }),
1791
1781
  method: 'POST'
1792
1782
  }).then(function (response) {
1793
1783
  return response.json();
@@ -2089,821 +2079,14 @@ var EventsDeck = function EventsDeck(_ref) {
2089
2079
  }
2090
2080
  };
2091
2081
 
2092
- var runtime = _commonjsHelpers.createCommonjsModule(function (module) {
2093
- /**
2094
- * Copyright (c) 2014-present, Facebook, Inc.
2095
- *
2096
- * This source code is licensed under the MIT license found in the
2097
- * LICENSE file in the root directory of this source tree.
2098
- */
2099
-
2100
- !(function(global) {
2101
-
2102
- var Op = Object.prototype;
2103
- var hasOwn = Op.hasOwnProperty;
2104
- var undefined$1; // More compressible than void 0.
2105
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
2106
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
2107
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
2108
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
2109
- var runtime = global.regeneratorRuntime;
2110
- if (runtime) {
2111
- {
2112
- // If regeneratorRuntime is defined globally and we're in a module,
2113
- // make the exports object identical to regeneratorRuntime.
2114
- module.exports = runtime;
2115
- }
2116
- // Don't bother evaluating the rest of this file if the runtime was
2117
- // already defined globally.
2118
- return;
2119
- }
2120
-
2121
- // Define the runtime globally (as expected by generated code) as either
2122
- // module.exports (if we're in a module) or a new, empty object.
2123
- runtime = global.regeneratorRuntime = module.exports ;
2124
-
2125
- function wrap(innerFn, outerFn, self, tryLocsList) {
2126
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
2127
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
2128
- var generator = Object.create(protoGenerator.prototype);
2129
- var context = new Context(tryLocsList || []);
2130
-
2131
- // The ._invoke method unifies the implementations of the .next,
2132
- // .throw, and .return methods.
2133
- generator._invoke = makeInvokeMethod(innerFn, self, context);
2134
-
2135
- return generator;
2136
- }
2137
- runtime.wrap = wrap;
2138
-
2139
- // Try/catch helper to minimize deoptimizations. Returns a completion
2140
- // record like context.tryEntries[i].completion. This interface could
2141
- // have been (and was previously) designed to take a closure to be
2142
- // invoked without arguments, but in all the cases we care about we
2143
- // already have an existing method we want to call, so there's no need
2144
- // to create a new function object. We can even get away with assuming
2145
- // the method takes exactly one argument, since that happens to be true
2146
- // in every case, so we don't have to touch the arguments object. The
2147
- // only additional allocation required is the completion record, which
2148
- // has a stable shape and so hopefully should be cheap to allocate.
2149
- function tryCatch(fn, obj, arg) {
2150
- try {
2151
- return { type: "normal", arg: fn.call(obj, arg) };
2152
- } catch (err) {
2153
- return { type: "throw", arg: err };
2154
- }
2155
- }
2156
-
2157
- var GenStateSuspendedStart = "suspendedStart";
2158
- var GenStateSuspendedYield = "suspendedYield";
2159
- var GenStateExecuting = "executing";
2160
- var GenStateCompleted = "completed";
2161
-
2162
- // Returning this object from the innerFn has the same effect as
2163
- // breaking out of the dispatch switch statement.
2164
- var ContinueSentinel = {};
2165
-
2166
- // Dummy constructor functions that we use as the .constructor and
2167
- // .constructor.prototype properties for functions that return Generator
2168
- // objects. For full spec compliance, you may wish to configure your
2169
- // minifier not to mangle the names of these two functions.
2170
- function Generator() {}
2171
- function GeneratorFunction() {}
2172
- function GeneratorFunctionPrototype() {}
2173
-
2174
- // This is a polyfill for %IteratorPrototype% for environments that
2175
- // don't natively support it.
2176
- var IteratorPrototype = {};
2177
- IteratorPrototype[iteratorSymbol] = function () {
2178
- return this;
2179
- };
2180
-
2181
- var getProto = Object.getPrototypeOf;
2182
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
2183
- if (NativeIteratorPrototype &&
2184
- NativeIteratorPrototype !== Op &&
2185
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
2186
- // This environment has a native %IteratorPrototype%; use it instead
2187
- // of the polyfill.
2188
- IteratorPrototype = NativeIteratorPrototype;
2189
- }
2190
-
2191
- var Gp = GeneratorFunctionPrototype.prototype =
2192
- Generator.prototype = Object.create(IteratorPrototype);
2193
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
2194
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
2195
- GeneratorFunctionPrototype[toStringTagSymbol] =
2196
- GeneratorFunction.displayName = "GeneratorFunction";
2197
-
2198
- // Helper for defining the .next, .throw, and .return methods of the
2199
- // Iterator interface in terms of a single ._invoke method.
2200
- function defineIteratorMethods(prototype) {
2201
- ["next", "throw", "return"].forEach(function(method) {
2202
- prototype[method] = function(arg) {
2203
- return this._invoke(method, arg);
2204
- };
2205
- });
2206
- }
2207
-
2208
- runtime.isGeneratorFunction = function(genFun) {
2209
- var ctor = typeof genFun === "function" && genFun.constructor;
2210
- return ctor
2211
- ? ctor === GeneratorFunction ||
2212
- // For the native GeneratorFunction constructor, the best we can
2213
- // do is to check its .name property.
2214
- (ctor.displayName || ctor.name) === "GeneratorFunction"
2215
- : false;
2216
- };
2217
-
2218
- runtime.mark = function(genFun) {
2219
- if (Object.setPrototypeOf) {
2220
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
2221
- } else {
2222
- genFun.__proto__ = GeneratorFunctionPrototype;
2223
- if (!(toStringTagSymbol in genFun)) {
2224
- genFun[toStringTagSymbol] = "GeneratorFunction";
2225
- }
2226
- }
2227
- genFun.prototype = Object.create(Gp);
2228
- return genFun;
2229
- };
2230
-
2231
- // Within the body of any async function, `await x` is transformed to
2232
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
2233
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
2234
- // meant to be awaited.
2235
- runtime.awrap = function(arg) {
2236
- return { __await: arg };
2237
- };
2238
-
2239
- function AsyncIterator(generator) {
2240
- function invoke(method, arg, resolve, reject) {
2241
- var record = tryCatch(generator[method], generator, arg);
2242
- if (record.type === "throw") {
2243
- reject(record.arg);
2244
- } else {
2245
- var result = record.arg;
2246
- var value = result.value;
2247
- if (value &&
2248
- typeof value === "object" &&
2249
- hasOwn.call(value, "__await")) {
2250
- return Promise.resolve(value.__await).then(function(value) {
2251
- invoke("next", value, resolve, reject);
2252
- }, function(err) {
2253
- invoke("throw", err, resolve, reject);
2254
- });
2255
- }
2256
-
2257
- return Promise.resolve(value).then(function(unwrapped) {
2258
- // When a yielded Promise is resolved, its final value becomes
2259
- // the .value of the Promise<{value,done}> result for the
2260
- // current iteration. If the Promise is rejected, however, the
2261
- // result for this iteration will be rejected with the same
2262
- // reason. Note that rejections of yielded Promises are not
2263
- // thrown back into the generator function, as is the case
2264
- // when an awaited Promise is rejected. This difference in
2265
- // behavior between yield and await is important, because it
2266
- // allows the consumer to decide what to do with the yielded
2267
- // rejection (swallow it and continue, manually .throw it back
2268
- // into the generator, abandon iteration, whatever). With
2269
- // await, by contrast, there is no opportunity to examine the
2270
- // rejection reason outside the generator function, so the
2271
- // only option is to throw it from the await expression, and
2272
- // let the generator function handle the exception.
2273
- result.value = unwrapped;
2274
- resolve(result);
2275
- }, reject);
2276
- }
2277
- }
2278
-
2279
- var previousPromise;
2280
-
2281
- function enqueue(method, arg) {
2282
- function callInvokeWithMethodAndArg() {
2283
- return new Promise(function(resolve, reject) {
2284
- invoke(method, arg, resolve, reject);
2285
- });
2286
- }
2287
-
2288
- return previousPromise =
2289
- // If enqueue has been called before, then we want to wait until
2290
- // all previous Promises have been resolved before calling invoke,
2291
- // so that results are always delivered in the correct order. If
2292
- // enqueue has not been called before, then it is important to
2293
- // call invoke immediately, without waiting on a callback to fire,
2294
- // so that the async generator function has the opportunity to do
2295
- // any necessary setup in a predictable way. This predictability
2296
- // is why the Promise constructor synchronously invokes its
2297
- // executor callback, and why async functions synchronously
2298
- // execute code before the first await. Since we implement simple
2299
- // async functions in terms of async generators, it is especially
2300
- // important to get this right, even though it requires care.
2301
- previousPromise ? previousPromise.then(
2302
- callInvokeWithMethodAndArg,
2303
- // Avoid propagating failures to Promises returned by later
2304
- // invocations of the iterator.
2305
- callInvokeWithMethodAndArg
2306
- ) : callInvokeWithMethodAndArg();
2307
- }
2308
-
2309
- // Define the unified helper method that is used to implement .next,
2310
- // .throw, and .return (see defineIteratorMethods).
2311
- this._invoke = enqueue;
2312
- }
2313
-
2314
- defineIteratorMethods(AsyncIterator.prototype);
2315
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
2316
- return this;
2317
- };
2318
- runtime.AsyncIterator = AsyncIterator;
2319
-
2320
- // Note that simple async functions are implemented on top of
2321
- // AsyncIterator objects; they just return a Promise for the value of
2322
- // the final result produced by the iterator.
2323
- runtime.async = function(innerFn, outerFn, self, tryLocsList) {
2324
- var iter = new AsyncIterator(
2325
- wrap(innerFn, outerFn, self, tryLocsList)
2326
- );
2327
-
2328
- return runtime.isGeneratorFunction(outerFn)
2329
- ? iter // If outerFn is a generator, return the full iterator.
2330
- : iter.next().then(function(result) {
2331
- return result.done ? result.value : iter.next();
2332
- });
2333
- };
2334
-
2335
- function makeInvokeMethod(innerFn, self, context) {
2336
- var state = GenStateSuspendedStart;
2337
-
2338
- return function invoke(method, arg) {
2339
- if (state === GenStateExecuting) {
2340
- throw new Error("Generator is already running");
2341
- }
2342
-
2343
- if (state === GenStateCompleted) {
2344
- if (method === "throw") {
2345
- throw arg;
2346
- }
2347
-
2348
- // Be forgiving, per 25.3.3.3.3 of the spec:
2349
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2350
- return doneResult();
2351
- }
2352
-
2353
- context.method = method;
2354
- context.arg = arg;
2355
-
2356
- while (true) {
2357
- var delegate = context.delegate;
2358
- if (delegate) {
2359
- var delegateResult = maybeInvokeDelegate(delegate, context);
2360
- if (delegateResult) {
2361
- if (delegateResult === ContinueSentinel) continue;
2362
- return delegateResult;
2363
- }
2364
- }
2365
-
2366
- if (context.method === "next") {
2367
- // Setting context._sent for legacy support of Babel's
2368
- // function.sent implementation.
2369
- context.sent = context._sent = context.arg;
2370
-
2371
- } else if (context.method === "throw") {
2372
- if (state === GenStateSuspendedStart) {
2373
- state = GenStateCompleted;
2374
- throw context.arg;
2375
- }
2376
-
2377
- context.dispatchException(context.arg);
2378
-
2379
- } else if (context.method === "return") {
2380
- context.abrupt("return", context.arg);
2381
- }
2382
-
2383
- state = GenStateExecuting;
2384
-
2385
- var record = tryCatch(innerFn, self, context);
2386
- if (record.type === "normal") {
2387
- // If an exception is thrown from innerFn, we leave state ===
2388
- // GenStateExecuting and loop back for another invocation.
2389
- state = context.done
2390
- ? GenStateCompleted
2391
- : GenStateSuspendedYield;
2392
-
2393
- if (record.arg === ContinueSentinel) {
2394
- continue;
2395
- }
2396
-
2397
- return {
2398
- value: record.arg,
2399
- done: context.done
2400
- };
2401
-
2402
- } else if (record.type === "throw") {
2403
- state = GenStateCompleted;
2404
- // Dispatch the exception by looping back around to the
2405
- // context.dispatchException(context.arg) call above.
2406
- context.method = "throw";
2407
- context.arg = record.arg;
2408
- }
2409
- }
2410
- };
2411
- }
2412
-
2413
- // Call delegate.iterator[context.method](context.arg) and handle the
2414
- // result, either by returning a { value, done } result from the
2415
- // delegate iterator, or by modifying context.method and context.arg,
2416
- // setting context.delegate to null, and returning the ContinueSentinel.
2417
- function maybeInvokeDelegate(delegate, context) {
2418
- var method = delegate.iterator[context.method];
2419
- if (method === undefined$1) {
2420
- // A .throw or .return when the delegate iterator has no .throw
2421
- // method always terminates the yield* loop.
2422
- context.delegate = null;
2423
-
2424
- if (context.method === "throw") {
2425
- if (delegate.iterator.return) {
2426
- // If the delegate iterator has a return method, give it a
2427
- // chance to clean up.
2428
- context.method = "return";
2429
- context.arg = undefined$1;
2430
- maybeInvokeDelegate(delegate, context);
2431
-
2432
- if (context.method === "throw") {
2433
- // If maybeInvokeDelegate(context) changed context.method from
2434
- // "return" to "throw", let that override the TypeError below.
2435
- return ContinueSentinel;
2436
- }
2437
- }
2438
-
2439
- context.method = "throw";
2440
- context.arg = new TypeError(
2441
- "The iterator does not provide a 'throw' method");
2442
- }
2443
-
2444
- return ContinueSentinel;
2445
- }
2446
-
2447
- var record = tryCatch(method, delegate.iterator, context.arg);
2448
-
2449
- if (record.type === "throw") {
2450
- context.method = "throw";
2451
- context.arg = record.arg;
2452
- context.delegate = null;
2453
- return ContinueSentinel;
2454
- }
2455
-
2456
- var info = record.arg;
2457
-
2458
- if (! info) {
2459
- context.method = "throw";
2460
- context.arg = new TypeError("iterator result is not an object");
2461
- context.delegate = null;
2462
- return ContinueSentinel;
2463
- }
2464
-
2465
- if (info.done) {
2466
- // Assign the result of the finished delegate to the temporary
2467
- // variable specified by delegate.resultName (see delegateYield).
2468
- context[delegate.resultName] = info.value;
2469
-
2470
- // Resume execution at the desired location (see delegateYield).
2471
- context.next = delegate.nextLoc;
2472
-
2473
- // If context.method was "throw" but the delegate handled the
2474
- // exception, let the outer generator proceed normally. If
2475
- // context.method was "next", forget context.arg since it has been
2476
- // "consumed" by the delegate iterator. If context.method was
2477
- // "return", allow the original .return call to continue in the
2478
- // outer generator.
2479
- if (context.method !== "return") {
2480
- context.method = "next";
2481
- context.arg = undefined$1;
2482
- }
2483
-
2484
- } else {
2485
- // Re-yield the result returned by the delegate method.
2486
- return info;
2487
- }
2488
-
2489
- // The delegate iterator is finished, so forget it and continue with
2490
- // the outer generator.
2491
- context.delegate = null;
2492
- return ContinueSentinel;
2493
- }
2494
-
2495
- // Define Generator.prototype.{next,throw,return} in terms of the
2496
- // unified ._invoke helper method.
2497
- defineIteratorMethods(Gp);
2498
-
2499
- Gp[toStringTagSymbol] = "Generator";
2500
-
2501
- // A Generator should always return itself as the iterator object when the
2502
- // @@iterator function is called on it. Some browsers' implementations of the
2503
- // iterator prototype chain incorrectly implement this, causing the Generator
2504
- // object to not be returned from this call. This ensures that doesn't happen.
2505
- // See https://github.com/facebook/regenerator/issues/274 for more details.
2506
- Gp[iteratorSymbol] = function() {
2507
- return this;
2508
- };
2509
-
2510
- Gp.toString = function() {
2511
- return "[object Generator]";
2512
- };
2513
-
2514
- function pushTryEntry(locs) {
2515
- var entry = { tryLoc: locs[0] };
2516
-
2517
- if (1 in locs) {
2518
- entry.catchLoc = locs[1];
2519
- }
2520
-
2521
- if (2 in locs) {
2522
- entry.finallyLoc = locs[2];
2523
- entry.afterLoc = locs[3];
2524
- }
2525
-
2526
- this.tryEntries.push(entry);
2527
- }
2528
-
2529
- function resetTryEntry(entry) {
2530
- var record = entry.completion || {};
2531
- record.type = "normal";
2532
- delete record.arg;
2533
- entry.completion = record;
2534
- }
2535
-
2536
- function Context(tryLocsList) {
2537
- // The root entry object (effectively a try statement without a catch
2538
- // or a finally block) gives us a place to store values thrown from
2539
- // locations where there is no enclosing try statement.
2540
- this.tryEntries = [{ tryLoc: "root" }];
2541
- tryLocsList.forEach(pushTryEntry, this);
2542
- this.reset(true);
2543
- }
2544
-
2545
- runtime.keys = function(object) {
2546
- var keys = [];
2547
- for (var key in object) {
2548
- keys.push(key);
2549
- }
2550
- keys.reverse();
2551
-
2552
- // Rather than returning an object with a next method, we keep
2553
- // things simple and return the next function itself.
2554
- return function next() {
2555
- while (keys.length) {
2556
- var key = keys.pop();
2557
- if (key in object) {
2558
- next.value = key;
2559
- next.done = false;
2560
- return next;
2561
- }
2562
- }
2563
-
2564
- // To avoid creating an additional object, we just hang the .value
2565
- // and .done properties off the next function object itself. This
2566
- // also ensures that the minifier will not anonymize the function.
2567
- next.done = true;
2568
- return next;
2569
- };
2570
- };
2571
-
2572
- function values(iterable) {
2573
- if (iterable) {
2574
- var iteratorMethod = iterable[iteratorSymbol];
2575
- if (iteratorMethod) {
2576
- return iteratorMethod.call(iterable);
2577
- }
2578
-
2579
- if (typeof iterable.next === "function") {
2580
- return iterable;
2581
- }
2582
-
2583
- if (!isNaN(iterable.length)) {
2584
- var i = -1, next = function next() {
2585
- while (++i < iterable.length) {
2586
- if (hasOwn.call(iterable, i)) {
2587
- next.value = iterable[i];
2588
- next.done = false;
2589
- return next;
2590
- }
2591
- }
2592
-
2593
- next.value = undefined$1;
2594
- next.done = true;
2595
-
2596
- return next;
2597
- };
2598
-
2599
- return next.next = next;
2600
- }
2601
- }
2602
-
2603
- // Return an iterator with no values.
2604
- return { next: doneResult };
2605
- }
2606
- runtime.values = values;
2607
-
2608
- function doneResult() {
2609
- return { value: undefined$1, done: true };
2610
- }
2611
-
2612
- Context.prototype = {
2613
- constructor: Context,
2614
-
2615
- reset: function(skipTempReset) {
2616
- this.prev = 0;
2617
- this.next = 0;
2618
- // Resetting context._sent for legacy support of Babel's
2619
- // function.sent implementation.
2620
- this.sent = this._sent = undefined$1;
2621
- this.done = false;
2622
- this.delegate = null;
2623
-
2624
- this.method = "next";
2625
- this.arg = undefined$1;
2626
-
2627
- this.tryEntries.forEach(resetTryEntry);
2628
-
2629
- if (!skipTempReset) {
2630
- for (var name in this) {
2631
- // Not sure about the optimal order of these conditions:
2632
- if (name.charAt(0) === "t" &&
2633
- hasOwn.call(this, name) &&
2634
- !isNaN(+name.slice(1))) {
2635
- this[name] = undefined$1;
2636
- }
2637
- }
2638
- }
2639
- },
2640
-
2641
- stop: function() {
2642
- this.done = true;
2643
-
2644
- var rootEntry = this.tryEntries[0];
2645
- var rootRecord = rootEntry.completion;
2646
- if (rootRecord.type === "throw") {
2647
- throw rootRecord.arg;
2648
- }
2649
-
2650
- return this.rval;
2651
- },
2652
-
2653
- dispatchException: function(exception) {
2654
- if (this.done) {
2655
- throw exception;
2656
- }
2657
-
2658
- var context = this;
2659
- function handle(loc, caught) {
2660
- record.type = "throw";
2661
- record.arg = exception;
2662
- context.next = loc;
2663
-
2664
- if (caught) {
2665
- // If the dispatched exception was caught by a catch block,
2666
- // then let that catch block handle the exception normally.
2667
- context.method = "next";
2668
- context.arg = undefined$1;
2669
- }
2670
-
2671
- return !! caught;
2672
- }
2673
-
2674
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2675
- var entry = this.tryEntries[i];
2676
- var record = entry.completion;
2677
-
2678
- if (entry.tryLoc === "root") {
2679
- // Exception thrown outside of any try block that could handle
2680
- // it, so set the completion value of the entire function to
2681
- // throw the exception.
2682
- return handle("end");
2683
- }
2684
-
2685
- if (entry.tryLoc <= this.prev) {
2686
- var hasCatch = hasOwn.call(entry, "catchLoc");
2687
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2688
-
2689
- if (hasCatch && hasFinally) {
2690
- if (this.prev < entry.catchLoc) {
2691
- return handle(entry.catchLoc, true);
2692
- } else if (this.prev < entry.finallyLoc) {
2693
- return handle(entry.finallyLoc);
2694
- }
2695
-
2696
- } else if (hasCatch) {
2697
- if (this.prev < entry.catchLoc) {
2698
- return handle(entry.catchLoc, true);
2699
- }
2700
-
2701
- } else if (hasFinally) {
2702
- if (this.prev < entry.finallyLoc) {
2703
- return handle(entry.finallyLoc);
2704
- }
2705
-
2706
- } else {
2707
- throw new Error("try statement without catch or finally");
2708
- }
2709
- }
2710
- }
2711
- },
2712
-
2713
- abrupt: function(type, arg) {
2714
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2715
- var entry = this.tryEntries[i];
2716
- if (entry.tryLoc <= this.prev &&
2717
- hasOwn.call(entry, "finallyLoc") &&
2718
- this.prev < entry.finallyLoc) {
2719
- var finallyEntry = entry;
2720
- break;
2721
- }
2722
- }
2723
-
2724
- if (finallyEntry &&
2725
- (type === "break" ||
2726
- type === "continue") &&
2727
- finallyEntry.tryLoc <= arg &&
2728
- arg <= finallyEntry.finallyLoc) {
2729
- // Ignore the finally entry if control is not jumping to a
2730
- // location outside the try/catch block.
2731
- finallyEntry = null;
2732
- }
2733
-
2734
- var record = finallyEntry ? finallyEntry.completion : {};
2735
- record.type = type;
2736
- record.arg = arg;
2737
-
2738
- if (finallyEntry) {
2739
- this.method = "next";
2740
- this.next = finallyEntry.finallyLoc;
2741
- return ContinueSentinel;
2742
- }
2743
-
2744
- return this.complete(record);
2745
- },
2746
-
2747
- complete: function(record, afterLoc) {
2748
- if (record.type === "throw") {
2749
- throw record.arg;
2750
- }
2751
-
2752
- if (record.type === "break" ||
2753
- record.type === "continue") {
2754
- this.next = record.arg;
2755
- } else if (record.type === "return") {
2756
- this.rval = this.arg = record.arg;
2757
- this.method = "return";
2758
- this.next = "end";
2759
- } else if (record.type === "normal" && afterLoc) {
2760
- this.next = afterLoc;
2761
- }
2762
-
2763
- return ContinueSentinel;
2764
- },
2765
-
2766
- finish: function(finallyLoc) {
2767
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2768
- var entry = this.tryEntries[i];
2769
- if (entry.finallyLoc === finallyLoc) {
2770
- this.complete(entry.completion, entry.afterLoc);
2771
- resetTryEntry(entry);
2772
- return ContinueSentinel;
2773
- }
2774
- }
2775
- },
2776
-
2777
- "catch": function(tryLoc) {
2778
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2779
- var entry = this.tryEntries[i];
2780
- if (entry.tryLoc === tryLoc) {
2781
- var record = entry.completion;
2782
- if (record.type === "throw") {
2783
- var thrown = record.arg;
2784
- resetTryEntry(entry);
2785
- }
2786
- return thrown;
2787
- }
2788
- }
2789
-
2790
- // The context.catch method must only be called with a location
2791
- // argument that corresponds to a known catch block.
2792
- throw new Error("illegal catch attempt");
2793
- },
2794
-
2795
- delegateYield: function(iterable, resultName, nextLoc) {
2796
- this.delegate = {
2797
- iterator: values(iterable),
2798
- resultName: resultName,
2799
- nextLoc: nextLoc
2800
- };
2801
-
2802
- if (this.method === "next") {
2803
- // Deliberately forget the last sent value so that we don't
2804
- // accidentally pass it on to the delegate.
2805
- this.arg = undefined$1;
2806
- }
2807
-
2808
- return ContinueSentinel;
2809
- }
2810
- };
2811
- })(
2812
- // In sloppy mode, unbound `this` refers to the global object, fallback to
2813
- // Function constructor if we're in global strict mode. That is sadly a form
2814
- // of indirect eval which violates Content Security Policy.
2815
- (function() { return this })() || Function("return this")()
2816
- );
2817
- });
2818
-
2819
- /**
2820
- * Copyright (c) 2014-present, Facebook, Inc.
2821
- *
2822
- * This source code is licensed under the MIT license found in the
2823
- * LICENSE file in the root directory of this source tree.
2824
- */
2825
-
2826
- // This method of obtaining a reference to the global object needs to be
2827
- // kept identical to the way it is obtained in runtime.js
2828
- var g = (function() { return this })() || Function("return this")();
2829
-
2830
- // Use `getOwnPropertyNames` because not all browsers support calling
2831
- // `hasOwnProperty` on the global `self` object in a worker. See #183.
2832
- var hadRuntime = g.regeneratorRuntime &&
2833
- Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
2834
-
2835
- // Save the old regeneratorRuntime in case it needs to be restored later.
2836
- var oldRuntime = hadRuntime && g.regeneratorRuntime;
2837
-
2838
- // Force reevalutation of runtime.js.
2839
- g.regeneratorRuntime = undefined;
2840
-
2841
- var runtimeModule = runtime;
2842
-
2843
- if (hadRuntime) {
2844
- // Restore the original runtime.
2845
- g.regeneratorRuntime = oldRuntime;
2846
- } else {
2847
- // Remove the global property added by runtime.js.
2848
- try {
2849
- delete g.regeneratorRuntime;
2850
- } catch(e) {
2851
- g.regeneratorRuntime = undefined;
2852
- }
2853
- }
2854
-
2855
- var regenerator = runtimeModule;
2856
-
2857
- var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module, exports) {
2858
-
2859
- exports.__esModule = true;
2860
-
2861
-
2862
-
2863
- var _promise2 = _interopRequireDefault(MasterDeck.promise);
2864
-
2865
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2866
-
2867
- exports.default = function (fn) {
2868
- return function () {
2869
- var gen = fn.apply(this, arguments);
2870
- return new _promise2.default(function (resolve, reject) {
2871
- function step(key, arg) {
2872
- try {
2873
- var info = gen[key](arg);
2874
- var value = info.value;
2875
- } catch (error) {
2876
- reject(error);
2877
- return;
2878
- }
2879
-
2880
- if (info.done) {
2881
- resolve(value);
2882
- } else {
2883
- return _promise2.default.resolve(value).then(function (value) {
2884
- step("next", value);
2885
- }, function (err) {
2886
- step("throw", err);
2887
- });
2888
- }
2889
- }
2890
-
2891
- return step("next");
2892
- });
2893
- };
2894
- };
2895
- });
2896
-
2897
- var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
2898
-
2899
2082
  var corsProxy$1 = 'https://cors-anywhere.herokuapp.com/';
2900
2083
  var itemsPerPage = 10;
2901
2084
 
2902
2085
  var CMEDeck = function CMEDeck(_ref) {
2903
2086
  var getData = function () {
2904
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(params) {
2087
+ var _ref2 = AdSlot._asyncToGenerator( /*#__PURE__*/AdSlot.regenerator.mark(function _callee(params) {
2905
2088
  var form, response, result, regex, newData;
2906
- return regenerator.wrap(function _callee$(_context) {
2089
+ return AdSlot.regenerator.wrap(function _callee$(_context) {
2907
2090
  while (1) {
2908
2091
  switch (_context.prev = _context.next) {
2909
2092
  case 0:
@@ -3736,21 +2919,18 @@ var Slideshow = function Slideshow(_ref) {
3736
2919
  );
3737
2920
  };
3738
2921
 
3739
- var isArray = Array.isArray;
3740
- var keyList = Object.keys;
3741
- var hasProp = Object.prototype.hasOwnProperty;
2922
+ // do not edit .js files directly - edit src/index.jst
2923
+
2924
+
3742
2925
 
3743
2926
  var fastDeepEqual = function equal(a, b) {
3744
2927
  if (a === b) return true;
3745
2928
 
3746
2929
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3747
- var arrA = isArray(a)
3748
- , arrB = isArray(b)
3749
- , i
3750
- , length
3751
- , key;
2930
+ if (a.constructor !== b.constructor) return false;
3752
2931
 
3753
- if (arrA && arrB) {
2932
+ var length, i, keys;
2933
+ if (Array.isArray(a)) {
3754
2934
  length = a.length;
3755
2935
  if (length != b.length) return false;
3756
2936
  for (i = length; i-- !== 0;)
@@ -3758,35 +2938,29 @@ var fastDeepEqual = function equal(a, b) {
3758
2938
  return true;
3759
2939
  }
3760
2940
 
3761
- if (arrA != arrB) return false;
3762
2941
 
3763
- var dateA = a instanceof Date
3764
- , dateB = b instanceof Date;
3765
- if (dateA != dateB) return false;
3766
- if (dateA && dateB) return a.getTime() == b.getTime();
3767
2942
 
3768
- var regexpA = a instanceof RegExp
3769
- , regexpB = b instanceof RegExp;
3770
- if (regexpA != regexpB) return false;
3771
- if (regexpA && regexpB) return a.toString() == b.toString();
2943
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2944
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
2945
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3772
2946
 
3773
- var keys = keyList(a);
2947
+ keys = Object.keys(a);
3774
2948
  length = keys.length;
3775
-
3776
- if (length !== keyList(b).length)
3777
- return false;
2949
+ if (length !== Object.keys(b).length) return false;
3778
2950
 
3779
2951
  for (i = length; i-- !== 0;)
3780
- if (!hasProp.call(b, keys[i])) return false;
2952
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3781
2953
 
3782
2954
  for (i = length; i-- !== 0;) {
3783
- key = keys[i];
2955
+ var key = keys[i];
2956
+
3784
2957
  if (!equal(a[key], b[key])) return false;
3785
2958
  }
3786
2959
 
3787
2960
  return true;
3788
2961
  }
3789
2962
 
2963
+ // true if both NaN, false otherwise
3790
2964
  return a!==a && b!==b;
3791
2965
  };
3792
2966
 
@@ -4809,7 +3983,7 @@ function formatValue(ctx, value, recurseTimes) {
4809
3983
  var base = '', array = false, braces = ['{', '}'];
4810
3984
 
4811
3985
  // Make Array say that they are Array
4812
- if (isArray$1(value)) {
3986
+ if (isArray(value)) {
4813
3987
  array = true;
4814
3988
  braces = ['[', ']'];
4815
3989
  }
@@ -4988,7 +4162,7 @@ function reduceToSingleString(output, base, braces) {
4988
4162
 
4989
4163
  // NOTE: These type checking functions intentionally don't use `instanceof`
4990
4164
  // because it is fragile and can be easily faked with `Object.create()`.
4991
- function isArray$1(ar) {
4165
+ function isArray(ar) {
4992
4166
  return Array.isArray(ar);
4993
4167
  }
4994
4168
 
@@ -5115,7 +4289,7 @@ var util = {
5115
4289
  isNullOrUndefined: isNullOrUndefined,
5116
4290
  isNull: isNull,
5117
4291
  isBoolean: isBoolean,
5118
- isArray: isArray$1,
4292
+ isArray: isArray,
5119
4293
  inspect: inspect,
5120
4294
  deprecate: deprecate,
5121
4295
  format: format,
@@ -5782,199 +4956,235 @@ module.exports = exports['default'];
5782
4956
 
5783
4957
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5784
4958
 
5785
- 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; }; }();
5786
-
5787
- 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; };
4959
+ 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); }
5788
4960
 
5789
4961
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5790
4962
 
5791
- 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; }
4963
+ 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); } }
4964
+
4965
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4966
+
4967
+ 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); }; }
4968
+
4969
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4970
+
4971
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4972
+
4973
+ 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; } }
4974
+
4975
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5792
4976
 
5793
- 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; }
4977
+ 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); }
4978
+
4979
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5794
4980
 
5795
- /**
5796
- * Check whether a `props` change should result in the video being updated.
5797
- *
5798
- * @param {Object} prevProps
5799
- * @param {Object} props
4981
+ 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; }
4982
+
4983
+ 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; }
4984
+
4985
+ 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; }
4986
+ /**
4987
+ * Check whether a `props` change should result in the video being updated.
4988
+ *
4989
+ * @param {Object} prevProps
4990
+ * @param {Object} props
5800
4991
  */
4992
+
5801
4993
  function shouldUpdateVideo(prevProps, props) {
5802
4994
  // A changing video should always trigger an update
5803
4995
  if (prevProps.videoId !== props.videoId) {
5804
4996
  return true;
5805
- }
5806
-
5807
- // Otherwise, a change in the start/end time playerVars also requires a player
4997
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5808
4998
  // update.
4999
+
5000
+
5809
5001
  var prevVars = prevProps.opts.playerVars || {};
5810
5002
  var vars = props.opts.playerVars || {};
5811
-
5812
5003
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5813
5004
  }
5814
-
5815
- /**
5816
- * Neutralise API options that only require a video update, leaving only options
5817
- * that require a player reset. The results can then be compared to see if a
5818
- * player reset is necessary.
5819
- *
5820
- * @param {Object} opts
5005
+ /**
5006
+ * Neutralize API options that only require a video update, leaving only options
5007
+ * that require a player reset. The results can then be compared to see if a
5008
+ * player reset is necessary.
5009
+ *
5010
+ * @param {Object} opts
5821
5011
  */
5012
+
5013
+
5822
5014
  function filterResetOptions(opts) {
5823
- return _extends({}, opts, {
5824
- playerVars: _extends({}, opts.playerVars, {
5015
+ return _objectSpread({}, opts, {
5016
+ playerVars: _objectSpread({}, opts.playerVars, {
5825
5017
  autoplay: 0,
5826
5018
  start: 0,
5827
5019
  end: 0
5828
5020
  })
5829
5021
  });
5830
5022
  }
5831
-
5832
- /**
5833
- * Check whether a `props` change should result in the player being reset.
5834
- * The player is reset when the `props.opts` change, except if the only change
5835
- * is in the `start` and `end` playerVars, because a video update can deal with
5836
- * those.
5837
- *
5838
- * @param {Object} prevProps
5839
- * @param {Object} props
5023
+ /**
5024
+ * Check whether a `props` change should result in the player being reset.
5025
+ * The player is reset when the `props.opts` change, except if the only change
5026
+ * is in the `start` and `end` playerVars, because a video update can deal with
5027
+ * those.
5028
+ *
5029
+ * @param {Object} prevProps
5030
+ * @param {Object} props
5840
5031
  */
5032
+
5033
+
5841
5034
  function shouldResetPlayer(prevProps, props) {
5842
5035
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5843
5036
  }
5844
-
5845
- /**
5846
- * Check whether a props change should result in an id or className update.
5847
- *
5848
- * @param {Object} prevProps
5849
- * @param {Object} props
5037
+ /**
5038
+ * Check whether a props change should result in an id or className update.
5039
+ *
5040
+ * @param {Object} prevProps
5041
+ * @param {Object} props
5850
5042
  */
5043
+
5044
+
5851
5045
  function shouldUpdatePlayer(prevProps, props) {
5852
5046
  return prevProps.id !== props.id || prevProps.className !== props.className;
5853
5047
  }
5854
5048
 
5855
- var YouTube = function (_React$Component) {
5049
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5856
5050
  _inherits(YouTube, _React$Component);
5857
5051
 
5052
+ var _super = _createSuper(YouTube);
5053
+
5054
+ /**
5055
+ * Expose PlayerState constants for convenience. These constants can also be
5056
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5057
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5058
+ */
5858
5059
  function YouTube(props) {
5060
+ var _this;
5061
+
5859
5062
  _classCallCheck(this, YouTube);
5860
5063
 
5861
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5064
+ _this = _super.call(this, props);
5862
5065
 
5863
- _this.onPlayerReady = function (event) {
5066
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5864
5067
  return _this.props.onReady(event);
5865
- };
5068
+ });
5866
5069
 
5867
- _this.onPlayerError = function (event) {
5070
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5868
5071
  return _this.props.onError(event);
5869
- };
5072
+ });
5870
5073
 
5871
- _this.onPlayerStateChange = function (event) {
5074
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5872
5075
  _this.props.onStateChange(event);
5873
- switch (event.data) {
5874
5076
 
5077
+ switch (event.data) {
5875
5078
  case YouTube.PlayerState.ENDED:
5876
5079
  _this.props.onEnd(event);
5080
+
5877
5081
  break;
5878
5082
 
5879
5083
  case YouTube.PlayerState.PLAYING:
5880
5084
  _this.props.onPlay(event);
5085
+
5881
5086
  break;
5882
5087
 
5883
5088
  case YouTube.PlayerState.PAUSED:
5884
5089
  _this.props.onPause(event);
5090
+
5885
5091
  break;
5886
5092
  }
5887
- };
5093
+ });
5888
5094
 
5889
- _this.onPlayerPlaybackRateChange = function (event) {
5095
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5890
5096
  return _this.props.onPlaybackRateChange(event);
5891
- };
5097
+ });
5892
5098
 
5893
- _this.onPlayerPlaybackQualityChange = function (event) {
5099
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5894
5100
  return _this.props.onPlaybackQualityChange(event);
5895
- };
5101
+ });
5896
5102
 
5897
- _this.createPlayer = function () {
5103
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5898
5104
  // do not attempt to create a player server-side, it won't work
5899
- if (typeof document === 'undefined') return;
5900
- // create player
5901
- var playerOpts = _extends({}, _this.props.opts, {
5105
+ if (typeof document === 'undefined') return; // create player
5106
+
5107
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5902
5108
  // preload the `videoId` video if one is already given
5903
5109
  videoId: _this.props.videoId
5904
5110
  });
5905
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5906
- // attach event handlers
5111
+
5112
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5113
+
5907
5114
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5115
+
5908
5116
  _this.internalPlayer.on('error', _this.onPlayerError);
5117
+
5909
5118
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5119
+
5910
5120
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5121
+
5911
5122
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5912
- };
5123
+ });
5913
5124
 
5914
- _this.resetPlayer = function () {
5125
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5915
5126
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5916
- };
5127
+ });
5917
5128
 
5918
- _this.updatePlayer = function () {
5129
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5919
5130
  _this.internalPlayer.getIframe().then(function (iframe) {
5920
5131
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5921
5132
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5922
5133
  });
5923
- };
5134
+ });
5924
5135
 
5925
- _this.updateVideo = function () {
5136
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5926
5137
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5927
5138
  _this.internalPlayer.stopVideo();
5139
+
5928
5140
  return;
5929
- }
5141
+ } // set queueing options
5142
+
5930
5143
 
5931
- // set queueing options
5932
5144
  var autoplay = false;
5933
5145
  var opts = {
5934
5146
  videoId: _this.props.videoId
5935
5147
  };
5148
+
5936
5149
  if ('playerVars' in _this.props.opts) {
5937
5150
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5151
+
5938
5152
  if ('start' in _this.props.opts.playerVars) {
5939
5153
  opts.startSeconds = _this.props.opts.playerVars.start;
5940
5154
  }
5155
+
5941
5156
  if ('end' in _this.props.opts.playerVars) {
5942
5157
  opts.endSeconds = _this.props.opts.playerVars.end;
5943
5158
  }
5944
- }
5159
+ } // if autoplay is enabled loadVideoById
5160
+
5945
5161
 
5946
- // if autoplay is enabled loadVideoById
5947
5162
  if (autoplay) {
5948
5163
  _this.internalPlayer.loadVideoById(opts);
5164
+
5949
5165
  return;
5950
- }
5951
- // default behaviour just cues the video
5166
+ } // default behaviour just cues the video
5167
+
5168
+
5952
5169
  _this.internalPlayer.cueVideoById(opts);
5953
- };
5170
+ });
5954
5171
 
5955
- _this.refContainer = function (container) {
5172
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5956
5173
  _this.container = container;
5957
- };
5174
+ });
5958
5175
 
5959
5176
  _this.container = null;
5960
5177
  _this.internalPlayer = null;
5961
5178
  return _this;
5962
5179
  }
5963
5180
 
5964
- /**
5965
- * Expose PlayerState constants for convenience. These constants can also be
5966
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5967
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5968
- */
5969
-
5970
-
5971
5181
  _createClass(YouTube, [{
5972
- key: 'componentDidMount',
5182
+ key: "componentDidMount",
5973
5183
  value: function componentDidMount() {
5974
5184
  this.createPlayer();
5975
5185
  }
5976
5186
  }, {
5977
- key: 'componentDidUpdate',
5187
+ key: "componentDidUpdate",
5978
5188
  value: function componentDidUpdate(prevProps) {
5979
5189
  if (shouldUpdatePlayer(prevProps, this.props)) {
5980
5190
  this.updatePlayer();
@@ -5989,112 +5199,58 @@ var YouTube = function (_React$Component) {
5989
5199
  }
5990
5200
  }
5991
5201
  }, {
5992
- key: 'componentWillUnmount',
5202
+ key: "componentWillUnmount",
5993
5203
  value: function componentWillUnmount() {
5994
- /**
5995
- * Note: The `youtube-player` package that is used promisifies all Youtube
5996
- * Player API calls, which introduces a delay of a tick before it actually
5997
- * gets destroyed. Since React attempts to remove the element instantly
5998
- * this method isn't quick enough to reset the container element.
5204
+ /**
5205
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5206
+ * Player API calls, which introduces a delay of a tick before it actually
5207
+ * gets destroyed. Since React attempts to remove the element instantly
5208
+ * this method isn't quick enough to reset the container element.
5999
5209
  */
6000
5210
  this.internalPlayer.destroy();
6001
5211
  }
6002
-
6003
- /**
6004
- * https://developers.google.com/youtube/iframe_api_reference#onReady
6005
- *
6006
- * @param {Object} event
6007
- * @param {Object} target - player object
6008
- */
6009
-
6010
-
6011
- /**
6012
- * https://developers.google.com/youtube/iframe_api_reference#onError
6013
- *
6014
- * @param {Object} event
6015
- * @param {Integer} data - error type
6016
- * @param {Object} target - player object
6017
- */
6018
-
6019
-
6020
- /**
6021
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
6022
- *
6023
- * @param {Object} event
6024
- * @param {Integer} data - status change type
6025
- * @param {Object} target - actual YT player
6026
- */
6027
-
6028
-
6029
- /**
6030
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
6031
- *
6032
- * @param {Object} event
6033
- * @param {Float} data - playback rate
6034
- * @param {Object} target - actual YT player
6035
- */
6036
-
6037
-
6038
- /**
6039
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
6040
- *
6041
- * @param {Object} event
6042
- * @param {String} data - playback quality
6043
- * @param {Object} target - actual YT player
6044
- */
6045
-
6046
-
6047
- /**
6048
- * Initialize the Youtube Player API on the container and attach event handlers
6049
- */
6050
-
6051
-
6052
- /**
6053
- * Shorthand for destroying and then re-creating the Youtube Player
6054
- */
6055
-
6056
-
6057
- /**
6058
- * Method to update the id and class of the Youtube Player iframe.
6059
- * React should update this automatically but since the Youtube Player API
6060
- * replaced the DIV that is mounted by React we need to do this manually.
6061
- */
6062
-
6063
-
6064
- /**
6065
- * Call Youtube Player API methods to update the currently playing video.
6066
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
6067
- * Youtube Player API methods to update the video.
5212
+ /**
5213
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5214
+ *
5215
+ * @param {Object} event
5216
+ * @param {Object} target - player object
6068
5217
  */
6069
5218
 
6070
5219
  }, {
6071
- key: 'render',
5220
+ key: "render",
6072
5221
  value: function render() {
6073
- return React__default.createElement(
6074
- 'div',
6075
- { className: this.props.containerClassName },
6076
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
6077
- );
5222
+ return /*#__PURE__*/React__default.createElement("div", {
5223
+ className: this.props.containerClassName
5224
+ }, /*#__PURE__*/React__default.createElement("div", {
5225
+ id: this.props.id,
5226
+ className: this.props.className,
5227
+ ref: this.refContainer
5228
+ }));
6078
5229
  }
6079
5230
  }]);
6080
5231
 
6081
5232
  return YouTube;
6082
5233
  }(React__default.Component);
6083
5234
 
5235
+ _defineProperty(YouTube, "PlayerState", {
5236
+ UNSTARTED: -1,
5237
+ ENDED: 0,
5238
+ PLAYING: 1,
5239
+ PAUSED: 2,
5240
+ BUFFERING: 3,
5241
+ CUED: 5
5242
+ });
5243
+
6084
5244
  YouTube.propTypes = {
6085
5245
  videoId: PropTypes.string,
6086
-
6087
5246
  // custom ID for player element
6088
5247
  id: PropTypes.string,
6089
-
6090
5248
  // custom class name for player element
6091
5249
  className: PropTypes.string,
6092
5250
  // custom class name for player container element
6093
5251
  containerClassName: PropTypes.string,
6094
-
6095
5252
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
6096
5253
  opts: PropTypes.objectOf(PropTypes.any),
6097
-
6098
5254
  // event subscriptions
6099
5255
  onReady: PropTypes.func,
6100
5256
  onError: PropTypes.func,
@@ -6106,6 +5262,7 @@ YouTube.propTypes = {
6106
5262
  onPlaybackQualityChange: PropTypes.func
6107
5263
  };
6108
5264
  YouTube.defaultProps = {
5265
+ videoId: null,
6109
5266
  id: null,
6110
5267
  className: null,
6111
5268
  opts: {},
@@ -6119,19 +5276,33 @@ YouTube.defaultProps = {
6119
5276
  onPlaybackRateChange: function onPlaybackRateChange() {},
6120
5277
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
6121
5278
  };
6122
- YouTube.PlayerState = {
6123
- UNSTARTED: -1,
6124
- ENDED: 0,
6125
- PLAYING: 1,
6126
- PAUSED: 2,
6127
- BUFFERING: 3,
6128
- CUED: 5
6129
- };
6130
5279
 
6131
5280
  var YouTubePlayer = function YouTubePlayer(_ref) {
6132
5281
  var url = _ref.url;
6133
5282
 
6134
- var id = YoutubeGroup.getYoutubeId(url);
5283
+ var id = YoutubeGroup.getYoutubeId(url);
5284
+
5285
+ var _useState = React.useState(false),
5286
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
5287
+ playReported = _useState2[0],
5288
+ setPlayReported = _useState2[1];
5289
+
5290
+ var _useState3 = React.useState(false),
5291
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
5292
+ endReported = _useState4[0],
5293
+ setEndReported = _useState4[1];
5294
+
5295
+ var _useState5 = React.useState(null),
5296
+ _useState6 = slicedToArray._slicedToArray(_useState5, 2),
5297
+ intervalID = _useState6[0],
5298
+ setIntervalID = _useState6[1];
5299
+
5300
+ var _useState7 = React.useState(null),
5301
+ _useState8 = slicedToArray._slicedToArray(_useState7, 2),
5302
+ segmentData = _useState8[0],
5303
+ setSegemntData = _useState8[1];
5304
+
5305
+ var queueProgress = [];
6135
5306
 
6136
5307
  var opts = {
6137
5308
  width: '100%',
@@ -6140,7 +5311,77 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6140
5311
  }
6141
5312
  };
6142
5313
 
6143
- return React__default.createElement(YouTube, { videoId: id, opts: opts });
5314
+ React.useEffect(function () {
5315
+ if (segmentData) {
5316
+ console.log('Video Segment', segmentData);
5317
+ AdSlot.Beam.report_beam_video('Segment', main.main_16, segmentData.duration, segmentData.current, segmentData.segment);
5318
+ }
5319
+ }, [segmentData]);
5320
+
5321
+ var handlePlayPercent = function handlePlayPercent(player) {
5322
+ var current = player.getCurrentTime();
5323
+ var duration = player.getDuration();
5324
+ var queue = Math.floor(duration / 10);
5325
+ var segment = Math.floor(current / queue);
5326
+
5327
+ if (!queueProgress.includes(segment)) {
5328
+ setSegemntData({
5329
+ current: current,
5330
+ duration: duration,
5331
+ queue: queue,
5332
+ segment: segment
5333
+ });
5334
+ queueProgress.push(segment);
5335
+ }
5336
+ };
5337
+
5338
+ var handleOnPlay = function handleOnPlay(event) {
5339
+ // report play
5340
+ if (!playReported) {
5341
+ console.log('Video Play', event);
5342
+
5343
+ var player = event.target;
5344
+ var current = player.getCurrentTime();
5345
+ var duration = player.getDuration();
5346
+ var queue = Math.floor(duration / 10);
5347
+ var segment = Math.floor(current / queue);
5348
+
5349
+ AdSlot.Beam.report_beam_video('Play', main.main_16, duration, current, segment);
5350
+ setPlayReported(true);
5351
+ var _intervalID = setInterval(function () {
5352
+ handlePlayPercent(event.target);
5353
+ }, 1000);
5354
+ setIntervalID(_intervalID);
5355
+ }
5356
+ };
5357
+
5358
+ var handleOnEnd = function handleOnEnd(event) {
5359
+ if (!endReported) {
5360
+ console.log('Video End', event);
5361
+ var player = event.target;
5362
+ var current = player.getCurrentTime();
5363
+ var duration = player.getDuration();
5364
+ var queue = Math.floor(duration / 10);
5365
+ var segment = Math.floor(current / queue);
5366
+
5367
+ AdSlot.Beam.report_beam_video('End', main.main_16, duration, current, segment);
5368
+ setEndReported(true);
5369
+ clearInterval(intervalID);
5370
+ }
5371
+ };
5372
+
5373
+ var handleOnPause = function handleOnPause(event) {
5374
+ console.log('Video Pause');
5375
+ var player = event.target;
5376
+ var current = player.getCurrentTime();
5377
+ var duration = player.getDuration();
5378
+ var queue = Math.floor(duration / 10);
5379
+ var segment = Math.floor(current / queue);
5380
+
5381
+ AdSlot.Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
5382
+ };
5383
+
5384
+ return React__default.createElement(YouTube, { videoId: id, opts: opts, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd });
6144
5385
  };
6145
5386
 
6146
5387
  var Sidebar = function Sidebar(_ref) {
@@ -6665,10 +5906,10 @@ function datasetify(elem) {
6665
5906
  props.push({ name: "data-" + key, value: ds[key] });
6666
5907
  }
6667
5908
 
6668
- return props.length ? stringify$2(props) : ""
5909
+ return props.length ? stringify(props) : ""
6669
5910
  }
6670
5911
 
6671
- function stringify$2(list) {
5912
+ function stringify(list) {
6672
5913
  var attributes = [];
6673
5914
  list.forEach(function (tuple) {
6674
5915
  var name = tuple.name;
@@ -6704,7 +5945,7 @@ function properties(elem) {
6704
5945
  props.push({ name: "class", value: elem.className });
6705
5946
  }
6706
5947
 
6707
- return props.length ? stringify$2(props) : ""
5948
+ return props.length ? stringify(props) : ""
6708
5949
  }
6709
5950
 
6710
5951
  function escapeText(s) {
@@ -7069,8 +6310,8 @@ var window_1 = win;
7069
6310
 
7070
6311
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
7071
6312
 
7072
- function _extends$1() {
7073
- _extends$1 = Object.assign || function (target) {
6313
+ function _extends() {
6314
+ _extends = Object.assign || function (target) {
7074
6315
  for (var i = 1; i < arguments.length; i++) {
7075
6316
  var source = arguments[i];
7076
6317
 
@@ -7084,7 +6325,7 @@ function _extends$1() {
7084
6325
  return target;
7085
6326
  };
7086
6327
 
7087
- return _extends$1.apply(this, arguments);
6328
+ return _extends.apply(this, arguments);
7088
6329
  }
7089
6330
 
7090
6331
  function _inheritsLoose(subClass, superClass) {
@@ -7093,7 +6334,7 @@ function _inheritsLoose(subClass, superClass) {
7093
6334
  subClass.__proto__ = superClass;
7094
6335
  }
7095
6336
 
7096
- function _assertThisInitialized(self) {
6337
+ function _assertThisInitialized$1(self) {
7097
6338
  if (self === void 0) {
7098
6339
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7099
6340
  }
@@ -7103,8 +6344,8 @@ function _assertThisInitialized(self) {
7103
6344
 
7104
6345
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
7105
6346
 
7106
- function _extends$1$1() {
7107
- _extends$1$1 = Object.assign || function (target) {
6347
+ function _extends$1() {
6348
+ _extends$1 = Object.assign || function (target) {
7108
6349
  for (var i = 1; i < arguments.length; i++) {
7109
6350
  var source = arguments[i];
7110
6351
 
@@ -7118,7 +6359,7 @@ function _extends$1$1() {
7118
6359
  return target;
7119
6360
  };
7120
6361
 
7121
- return _extends$1$1.apply(this, arguments);
6362
+ return _extends$1.apply(this, arguments);
7122
6363
  }
7123
6364
 
7124
6365
  var version$1 = "1.7.1";
@@ -7126,7 +6367,7 @@ var version$1 = "1.7.1";
7126
6367
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
7127
6368
  var version$1$1 = "1.2.0";
7128
6369
 
7129
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6370
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
7130
6371
  return typeof obj;
7131
6372
  } : function (obj) {
7132
6373
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -7261,7 +6502,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
7261
6502
 
7262
6503
  var qs = '';
7263
6504
 
7264
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6505
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
7265
6506
  qs = getQueryString(queryParams);
7266
6507
  }
7267
6508
 
@@ -7495,7 +6736,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7495
6736
  el.style.width = '100%';
7496
6737
  el.style.height = '100%';
7497
6738
 
7498
- var responsive = _extends$1$1({
6739
+ var responsive = _extends$1({
7499
6740
  aspectRatio: DEFAULT_ASPECT_RATIO,
7500
6741
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7501
6742
  maxWidth: DEFAULT_MAX_WIDTH
@@ -8180,7 +7421,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
8180
7421
 
8181
7422
 
8182
7423
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
8183
- var params = _extends$1$1({}, DEFAULTS, parameters);
7424
+ var params = _extends$1({}, DEFAULTS, parameters);
8184
7425
 
8185
7426
  var Promise = params.Promise,
8186
7427
  onSuccess = params.onSuccess,
@@ -8322,7 +7563,7 @@ function (_React$Component) {
8322
7563
  _this.refNode = ref;
8323
7564
  };
8324
7565
 
8325
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7566
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
8326
7567
  return _this;
8327
7568
  }
8328
7569
  /**
@@ -8343,7 +7584,7 @@ function (_React$Component) {
8343
7584
  var userSuccess = this.props.onSuccess;
8344
7585
  var userFailure = this.props.onFailure;
8345
7586
 
8346
- var options = _extends$1({}, this.props, {
7587
+ var options = _extends({}, this.props, {
8347
7588
  refNode: this.refNode,
8348
7589
  refNodeInsert: 'append',
8349
7590
  onSuccess: function onSuccess(_ref) {
@@ -8652,7 +7893,7 @@ function (_React$Component) {
8652
7893
  ;
8653
7894
 
8654
7895
  _proto.render = function render() {
8655
- var props = _extends$1({
7896
+ var props = _extends({
8656
7897
  className: 'brightcove-react-player-loader'
8657
7898
  }, this.props.attrs, {
8658
7899
  ref: this.setRefNode
@@ -9066,11 +8307,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
9066
8307
 
9067
8308
  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; }
9068
8309
 
9069
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8310
+ 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; } } }; }
8311
+
8312
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9070
8313
 
9071
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8314
+ 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."); }
9072
8315
 
9073
- 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; }
8316
+ 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); }
8317
+
8318
+ 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; }
8319
+
8320
+ 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; }
9074
8321
 
9075
8322
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9076
8323
 
@@ -9200,12 +8447,12 @@ function getSDK(url, sdkGlobal) {
9200
8447
 
9201
8448
  function getConfig(props$1, defaultProps, showWarning) {
9202
8449
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
9203
- var _iteratorNormalCompletion = true;
9204
- var _didIteratorError = false;
9205
- var _iteratorError = undefined;
8450
+
8451
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8452
+ _step;
9206
8453
 
9207
8454
  try {
9208
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8455
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9209
8456
  var p = _step.value;
9210
8457
 
9211
8458
  if (props$1[p]) {
@@ -9220,18 +8467,9 @@ function getConfig(props$1, defaultProps, showWarning) {
9220
8467
  }
9221
8468
  }
9222
8469
  } catch (err) {
9223
- _didIteratorError = true;
9224
- _iteratorError = err;
8470
+ _iterator.e(err);
9225
8471
  } finally {
9226
- try {
9227
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
9228
- _iterator["return"]();
9229
- }
9230
- } finally {
9231
- if (_didIteratorError) {
9232
- throw _iteratorError;
9233
- }
9234
- }
8472
+ _iterator.f();
9235
8473
  }
9236
8474
 
9237
8475
  return config;
@@ -9378,12 +8616,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9378
8616
 
9379
8617
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9380
8618
 
9381
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8619
+ 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); }; }
9382
8620
 
9383
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8621
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9384
8622
 
9385
8623
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9386
8624
 
8625
+ 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; } }
8626
+
8627
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8628
+
9387
8629
  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); }
9388
8630
 
9389
8631
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9392,14 +8634,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9392
8634
 
9393
8635
  var SEEK_ON_PLAY_EXPIRY = 5000;
9394
8636
 
9395
- var Player =
9396
- /*#__PURE__*/
9397
- function (_Component) {
8637
+ var Player = /*#__PURE__*/function (_Component) {
9398
8638
  _inherits(Player, _Component);
9399
8639
 
9400
- function Player() {
9401
- var _getPrototypeOf2;
8640
+ var _super = _createSuper(Player);
9402
8641
 
8642
+ function Player() {
9403
8643
  var _this;
9404
8644
 
9405
8645
  _classCallCheck(this, Player);
@@ -9408,7 +8648,7 @@ function (_Component) {
9408
8648
  _args[_key] = arguments[_key];
9409
8649
  }
9410
8650
 
9411
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8651
+ _this = _super.call.apply(_super, [this].concat(_args));
9412
8652
 
9413
8653
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9414
8654
 
@@ -9733,7 +8973,7 @@ function (_Component) {
9733
8973
  return null;
9734
8974
  }
9735
8975
 
9736
- return _react["default"].createElement(Player, _extends({}, this.props, {
8976
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9737
8977
  ref: this.ref,
9738
8978
  onReady: this.handleReady,
9739
8979
  onPlay: this.handlePlay,
@@ -9794,12 +9034,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9794
9034
 
9795
9035
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9796
9036
 
9797
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9037
+ 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); }; }
9798
9038
 
9799
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9039
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9800
9040
 
9801
9041
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9802
9042
 
9043
+ 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; } }
9044
+
9045
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9046
+
9803
9047
  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); }
9804
9048
 
9805
9049
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9811,14 +9055,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9811
9055
  function createSinglePlayer(activePlayer) {
9812
9056
  var _class, _temp;
9813
9057
 
9814
- return _temp = _class =
9815
- /*#__PURE__*/
9816
- function (_Component) {
9058
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9817
9059
  _inherits(SinglePlayer, _Component);
9818
9060
 
9819
- function SinglePlayer() {
9820
- var _getPrototypeOf2;
9061
+ var _super = _createSuper(SinglePlayer);
9821
9062
 
9063
+ function SinglePlayer() {
9822
9064
  var _this;
9823
9065
 
9824
9066
  _classCallCheck(this, SinglePlayer);
@@ -9827,7 +9069,7 @@ function createSinglePlayer(activePlayer) {
9827
9069
  args[_key] = arguments[_key];
9828
9070
  }
9829
9071
 
9830
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9072
+ _this = _super.call.apply(_super, [this].concat(args));
9831
9073
 
9832
9074
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9833
9075
 
@@ -9895,12 +9137,12 @@ function createSinglePlayer(activePlayer) {
9895
9137
  height = _this$props.height,
9896
9138
  Wrapper = _this$props.wrapper;
9897
9139
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9898
- return _react["default"].createElement(Wrapper, _extends({
9140
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9899
9141
  style: _objectSpread({}, style, {
9900
9142
  width: width,
9901
9143
  height: height
9902
9144
  })
9903
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9145
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9904
9146
  ref: this.ref,
9905
9147
  activePlayer: activePlayer,
9906
9148
  config: this.config
@@ -9946,23 +9188,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9946
9188
 
9947
9189
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9948
9190
 
9949
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9191
+ 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); }; }
9950
9192
 
9951
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9193
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9952
9194
 
9953
9195
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9954
9196
 
9197
+ 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; } }
9198
+
9199
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9200
+
9955
9201
  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); }
9956
9202
 
9957
9203
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9958
9204
 
9959
9205
  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; }
9960
9206
 
9961
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9207
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9208
+
9209
+ 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."); }
9210
+
9211
+ 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); }
9962
9212
 
9963
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9213
+ 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; }
9964
9214
 
9965
- 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; }
9215
+ 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; }
9966
9216
 
9967
9217
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9968
9218
 
@@ -9987,14 +9237,12 @@ function parsePlaylist(url) {
9987
9237
  return {};
9988
9238
  }
9989
9239
 
9990
- var YouTube =
9991
- /*#__PURE__*/
9992
- function (_Component) {
9240
+ var YouTube = /*#__PURE__*/function (_Component) {
9993
9241
  _inherits(YouTube, _Component);
9994
9242
 
9995
- function YouTube() {
9996
- var _getPrototypeOf2;
9243
+ var _super = _createSuper(YouTube);
9997
9244
 
9245
+ function YouTube() {
9998
9246
  var _this;
9999
9247
 
10000
9248
  _classCallCheck(this, YouTube);
@@ -10003,7 +9251,7 @@ function (_Component) {
10003
9251
  args[_key] = arguments[_key];
10004
9252
  }
10005
9253
 
10006
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9254
+ _this = _super.call.apply(_super, [this].concat(args));
10007
9255
 
10008
9256
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10009
9257
 
@@ -10191,9 +9439,9 @@ function (_Component) {
10191
9439
  height: '100%',
10192
9440
  display: display
10193
9441
  };
10194
- return _react["default"].createElement("div", {
9442
+ return /*#__PURE__*/_react["default"].createElement("div", {
10195
9443
  style: style
10196
- }, _react["default"].createElement("div", {
9444
+ }, /*#__PURE__*/_react["default"].createElement("div", {
10197
9445
  ref: this.ref
10198
9446
  }));
10199
9447
  }
@@ -10249,12 +9497,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10249
9497
 
10250
9498
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10251
9499
 
10252
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9500
+ 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); }; }
10253
9501
 
10254
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9502
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10255
9503
 
10256
9504
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10257
9505
 
9506
+ 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; } }
9507
+
9508
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9509
+
10258
9510
  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); }
10259
9511
 
10260
9512
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10263,16 +9515,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
10263
9515
 
10264
9516
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
10265
9517
  var SDK_GLOBAL = 'SC';
10266
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9518
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
10267
9519
 
10268
- var SoundCloud =
10269
- /*#__PURE__*/
10270
- function (_Component) {
9520
+ var SoundCloud = /*#__PURE__*/function (_Component) {
10271
9521
  _inherits(SoundCloud, _Component);
10272
9522
 
10273
- function SoundCloud() {
10274
- var _getPrototypeOf2;
9523
+ var _super = _createSuper(SoundCloud);
10275
9524
 
9525
+ function SoundCloud() {
10276
9526
  var _this;
10277
9527
 
10278
9528
  _classCallCheck(this, SoundCloud);
@@ -10281,7 +9531,7 @@ function (_Component) {
10281
9531
  args[_key] = arguments[_key];
10282
9532
  }
10283
9533
 
10284
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9534
+ _this = _super.call.apply(_super, [this].concat(args));
10285
9535
 
10286
9536
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10287
9537
 
@@ -10402,7 +9652,7 @@ function (_Component) {
10402
9652
  height: '100%',
10403
9653
  display: display
10404
9654
  };
10405
- return _react["default"].createElement("iframe", {
9655
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10406
9656
  ref: this.ref,
10407
9657
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10408
9658
  style: style,
@@ -10464,12 +9714,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10464
9714
 
10465
9715
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10466
9716
 
10467
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9717
+ 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); }; }
10468
9718
 
10469
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9719
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10470
9720
 
10471
9721
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10472
9722
 
9723
+ 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; } }
9724
+
9725
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9726
+
10473
9727
  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); }
10474
9728
 
10475
9729
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10481,14 +9735,12 @@ var SDK_GLOBAL = 'Vimeo';
10481
9735
  var MATCH_URL = /vimeo\.com\/.+/;
10482
9736
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10483
9737
 
10484
- var Vimeo =
10485
- /*#__PURE__*/
10486
- function (_Component) {
9738
+ var Vimeo = /*#__PURE__*/function (_Component) {
10487
9739
  _inherits(Vimeo, _Component);
10488
9740
 
10489
- function Vimeo() {
10490
- var _getPrototypeOf2;
9741
+ var _super = _createSuper(Vimeo);
10491
9742
 
9743
+ function Vimeo() {
10492
9744
  var _this;
10493
9745
 
10494
9746
  _classCallCheck(this, Vimeo);
@@ -10497,7 +9749,7 @@ function (_Component) {
10497
9749
  args[_key] = arguments[_key];
10498
9750
  }
10499
9751
 
10500
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9752
+ _this = _super.call.apply(_super, [this].concat(args));
10501
9753
 
10502
9754
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10503
9755
 
@@ -10654,7 +9906,7 @@ function (_Component) {
10654
9906
  overflow: 'hidden',
10655
9907
  display: display
10656
9908
  };
10657
- return _react["default"].createElement("div", {
9909
+ return /*#__PURE__*/_react["default"].createElement("div", {
10658
9910
  key: this.props.url,
10659
9911
  ref: this.ref,
10660
9912
  style: style
@@ -10714,12 +9966,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10714
9966
 
10715
9967
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10716
9968
 
10717
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9969
+ 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); }; }
10718
9970
 
10719
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9971
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10720
9972
 
10721
9973
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10722
9974
 
9975
+ 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; } }
9976
+
9977
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9978
+
10723
9979
  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); }
10724
9980
 
10725
9981
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10732,14 +9988,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10732
9988
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10733
9989
  var PLAYER_ID_PREFIX = 'facebook-player-';
10734
9990
 
10735
- var Facebook =
10736
- /*#__PURE__*/
10737
- function (_Component) {
9991
+ var Facebook = /*#__PURE__*/function (_Component) {
10738
9992
  _inherits(Facebook, _Component);
10739
9993
 
10740
- function Facebook() {
10741
- var _getPrototypeOf2;
9994
+ var _super = _createSuper(Facebook);
10742
9995
 
9996
+ function Facebook() {
10743
9997
  var _this;
10744
9998
 
10745
9999
  _classCallCheck(this, Facebook);
@@ -10748,7 +10002,7 @@ function (_Component) {
10748
10002
  args[_key] = arguments[_key];
10749
10003
  }
10750
10004
 
10751
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10005
+ _this = _super.call.apply(_super, [this].concat(args));
10752
10006
 
10753
10007
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10754
10008
 
@@ -10864,7 +10118,7 @@ function (_Component) {
10864
10118
  width: '100%',
10865
10119
  height: '100%'
10866
10120
  };
10867
- return _react["default"].createElement("div", {
10121
+ return /*#__PURE__*/_react["default"].createElement("div", {
10868
10122
  style: style,
10869
10123
  id: this.playerID,
10870
10124
  className: "fb-video",
@@ -10924,12 +10178,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10924
10178
 
10925
10179
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10926
10180
 
10927
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10181
+ 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); }; }
10928
10182
 
10929
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10183
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10930
10184
 
10931
10185
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10932
10186
 
10187
+ 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; } }
10188
+
10189
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10190
+
10933
10191
  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); }
10934
10192
 
10935
10193
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10940,14 +10198,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10940
10198
  var SDK_GLOBAL = 'playerjs';
10941
10199
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10942
10200
 
10943
- var Streamable =
10944
- /*#__PURE__*/
10945
- function (_Component) {
10201
+ var Streamable = /*#__PURE__*/function (_Component) {
10946
10202
  _inherits(Streamable, _Component);
10947
10203
 
10948
- function Streamable() {
10949
- var _getPrototypeOf2;
10204
+ var _super = _createSuper(Streamable);
10950
10205
 
10206
+ function Streamable() {
10951
10207
  var _this;
10952
10208
 
10953
10209
  _classCallCheck(this, Streamable);
@@ -10956,7 +10212,7 @@ function (_Component) {
10956
10212
  args[_key] = arguments[_key];
10957
10213
  }
10958
10214
 
10959
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10215
+ _this = _super.call.apply(_super, [this].concat(args));
10960
10216
 
10961
10217
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10962
10218
 
@@ -11076,7 +10332,7 @@ function (_Component) {
11076
10332
  width: '100%',
11077
10333
  height: '100%'
11078
10334
  };
11079
- return _react["default"].createElement("iframe", {
10335
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11080
10336
  ref: this.ref,
11081
10337
  src: "https://streamable.com/o/".concat(id),
11082
10338
  frameBorder: "0",
@@ -11137,12 +10393,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11137
10393
 
11138
10394
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11139
10395
 
11140
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10396
+ 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); }; }
11141
10397
 
11142
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10398
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11143
10399
 
11144
10400
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11145
10401
 
10402
+ 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; } }
10403
+
10404
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10405
+
11146
10406
  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); }
11147
10407
 
11148
10408
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11153,26 +10413,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
11153
10413
  var SDK_GLOBAL = 'Wistia';
11154
10414
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
11155
10415
 
11156
- var Wistia =
11157
- /*#__PURE__*/
11158
- function (_Component) {
10416
+ var Wistia = /*#__PURE__*/function (_Component) {
11159
10417
  _inherits(Wistia, _Component);
11160
10418
 
11161
- function Wistia() {
11162
- var _getPrototypeOf2;
10419
+ var _super = _createSuper(Wistia);
11163
10420
 
10421
+ function Wistia() {
11164
10422
  var _this;
11165
10423
 
11166
10424
  _classCallCheck(this, Wistia);
11167
10425
 
11168
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11169
- args[_key] = arguments[_key];
10426
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10427
+ _args[_key] = arguments[_key];
11170
10428
  }
11171
10429
 
11172
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10430
+ _this = _super.call.apply(_super, [this].concat(_args));
11173
10431
 
11174
10432
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11175
10433
 
10434
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10435
+ var _this$props;
10436
+
10437
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10438
+ });
10439
+
10440
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10441
+ var _this$props2;
10442
+
10443
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10444
+ });
10445
+
10446
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10447
+ var _this$props3;
10448
+
10449
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10450
+ });
10451
+
10452
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10453
+ var _this$props4;
10454
+
10455
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10456
+ });
10457
+
11176
10458
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
11177
10459
  _this.callPlayer('mute');
11178
10460
  });
@@ -11194,17 +10476,13 @@ function (_Component) {
11194
10476
  value: function load(url) {
11195
10477
  var _this2 = this;
11196
10478
 
11197
- var _this$props = this.props,
11198
- playing = _this$props.playing,
11199
- muted = _this$props.muted,
11200
- controls = _this$props.controls,
11201
- _onReady = _this$props.onReady,
11202
- onPlay = _this$props.onPlay,
11203
- onPause = _this$props.onPause,
11204
- onSeek = _this$props.onSeek,
11205
- onEnded = _this$props.onEnded,
11206
- config = _this$props.config,
11207
- onError = _this$props.onError;
10479
+ var _this$props5 = this.props,
10480
+ playing = _this$props5.playing,
10481
+ muted = _this$props5.muted,
10482
+ controls = _this$props5.controls,
10483
+ _onReady = _this$props5.onReady,
10484
+ config = _this$props5.config,
10485
+ onError = _this$props5.onError;
11208
10486
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
11209
10487
  window._wq = window._wq || [];
11210
10488
 
@@ -11221,19 +10499,28 @@ function (_Component) {
11221
10499
 
11222
10500
  _this2.unbind();
11223
10501
 
11224
- _this2.player.bind('play', onPlay);
10502
+ _this2.player.bind('play', _this2.onPlay);
11225
10503
 
11226
- _this2.player.bind('pause', onPause);
10504
+ _this2.player.bind('pause', _this2.onPause);
11227
10505
 
11228
- _this2.player.bind('seek', onSeek);
10506
+ _this2.player.bind('seek', _this2.onSeek);
11229
10507
 
11230
- _this2.player.bind('end', onEnded);
10508
+ _this2.player.bind('end', _this2.onEnded);
11231
10509
 
11232
10510
  _onReady();
11233
10511
  }
11234
10512
  });
11235
10513
  }, onError);
11236
10514
  }
10515
+ }, {
10516
+ key: "unbind",
10517
+ value: function unbind() {
10518
+ this.player.unbind('play', this.onPlay);
10519
+ this.player.unbind('pause', this.onPause);
10520
+ this.player.unbind('seek', this.onSeek);
10521
+ this.player.unbind('end', this.onEnded);
10522
+ } // Proxy methods to prevent listener leaks
10523
+
11237
10524
  }, {
11238
10525
  key: "play",
11239
10526
  value: function play() {
@@ -11244,19 +10531,6 @@ function (_Component) {
11244
10531
  value: function pause() {
11245
10532
  this.callPlayer('pause');
11246
10533
  }
11247
- }, {
11248
- key: "unbind",
11249
- value: function unbind() {
11250
- var _this$props2 = this.props,
11251
- onPlay = _this$props2.onPlay,
11252
- onPause = _this$props2.onPause,
11253
- onSeek = _this$props2.onSeek,
11254
- onEnded = _this$props2.onEnded;
11255
- this.player.unbind('play', onPlay);
11256
- this.player.unbind('pause', onPause);
11257
- this.player.unbind('seek', onSeek);
11258
- this.player.unbind('end', onEnded);
11259
- }
11260
10534
  }, {
11261
10535
  key: "stop",
11262
10536
  value: function stop() {
@@ -11302,7 +10576,7 @@ function (_Component) {
11302
10576
  width: '100%',
11303
10577
  height: '100%'
11304
10578
  };
11305
- return _react["default"].createElement("div", {
10579
+ return /*#__PURE__*/_react["default"].createElement("div", {
11306
10580
  key: id,
11307
10581
  className: className,
11308
10582
  style: style
@@ -11362,12 +10636,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11362
10636
 
11363
10637
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11364
10638
 
11365
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10639
+ 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); }; }
11366
10640
 
11367
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10641
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11368
10642
 
11369
10643
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11370
10644
 
10645
+ 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; } }
10646
+
10647
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10648
+
11371
10649
  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); }
11372
10650
 
11373
10651
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11380,14 +10658,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11380
10658
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11381
10659
  var PLAYER_ID_PREFIX = 'twitch-player-';
11382
10660
 
11383
- var Twitch =
11384
- /*#__PURE__*/
11385
- function (_Component) {
10661
+ var Twitch = /*#__PURE__*/function (_Component) {
11386
10662
  _inherits(Twitch, _Component);
11387
10663
 
11388
- function Twitch() {
11389
- var _getPrototypeOf2;
10664
+ var _super = _createSuper(Twitch);
11390
10665
 
10666
+ function Twitch() {
11391
10667
  var _this;
11392
10668
 
11393
10669
  _classCallCheck(this, Twitch);
@@ -11396,7 +10672,7 @@ function (_Component) {
11396
10672
  args[_key] = arguments[_key];
11397
10673
  }
11398
10674
 
11399
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10675
+ _this = _super.call.apply(_super, [this].concat(args));
11400
10676
 
11401
10677
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11402
10678
 
@@ -11517,7 +10793,7 @@ function (_Component) {
11517
10793
  width: '100%',
11518
10794
  height: '100%'
11519
10795
  };
11520
- return _react["default"].createElement("div", {
10796
+ return /*#__PURE__*/_react["default"].createElement("div", {
11521
10797
  style: style,
11522
10798
  id: this.playerID
11523
10799
  });
@@ -11570,11 +10846,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11570
10846
 
11571
10847
  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; }
11572
10848
 
11573
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
10849
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10850
+
10851
+ 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."); }
11574
10852
 
11575
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
10853
+ 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); }
11576
10854
 
11577
- 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; }
10855
+ 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; }
10856
+
10857
+ 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; }
11578
10858
 
11579
10859
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11580
10860
 
@@ -11584,12 +10864,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11584
10864
 
11585
10865
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11586
10866
 
11587
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10867
+ 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); }; }
11588
10868
 
11589
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10869
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11590
10870
 
11591
10871
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11592
10872
 
10873
+ 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; } }
10874
+
10875
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10876
+
11593
10877
  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); }
11594
10878
 
11595
10879
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11601,14 +10885,12 @@ var SDK_GLOBAL = 'DM';
11601
10885
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11602
10886
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11603
10887
 
11604
- var DailyMotion =
11605
- /*#__PURE__*/
11606
- function (_Component) {
10888
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11607
10889
  _inherits(DailyMotion, _Component);
11608
10890
 
11609
- function DailyMotion() {
11610
- var _getPrototypeOf2;
10891
+ var _super = _createSuper(DailyMotion);
11611
10892
 
10893
+ function DailyMotion() {
11612
10894
  var _this;
11613
10895
 
11614
10896
  _classCallCheck(this, DailyMotion);
@@ -11617,7 +10899,7 @@ function (_Component) {
11617
10899
  args[_key] = arguments[_key];
11618
10900
  }
11619
10901
 
11620
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
10902
+ _this = _super.call.apply(_super, [this].concat(args));
11621
10903
 
11622
10904
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11623
10905
 
@@ -11746,9 +11028,9 @@ function (_Component) {
11746
11028
  height: '100%',
11747
11029
  display: display
11748
11030
  };
11749
- return _react["default"].createElement("div", {
11031
+ return /*#__PURE__*/_react["default"].createElement("div", {
11750
11032
  style: style
11751
- }, _react["default"].createElement("div", {
11033
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11752
11034
  ref: this.ref
11753
11035
  }));
11754
11036
  }
@@ -11806,12 +11088,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11806
11088
 
11807
11089
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11808
11090
 
11809
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11091
+ 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); }; }
11810
11092
 
11811
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11093
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11812
11094
 
11813
11095
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11814
11096
 
11097
+ 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; } }
11098
+
11099
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11100
+
11815
11101
  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); }
11816
11102
 
11817
11103
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11822,14 +11108,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11822
11108
  var SDK_GLOBAL = 'Mixcloud';
11823
11109
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11824
11110
 
11825
- var Mixcloud =
11826
- /*#__PURE__*/
11827
- function (_Component) {
11111
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11828
11112
  _inherits(Mixcloud, _Component);
11829
11113
 
11830
- function Mixcloud() {
11831
- var _getPrototypeOf2;
11114
+ var _super = _createSuper(Mixcloud);
11832
11115
 
11116
+ function Mixcloud() {
11833
11117
  var _this;
11834
11118
 
11835
11119
  _classCallCheck(this, Mixcloud);
@@ -11838,7 +11122,7 @@ function (_Component) {
11838
11122
  args[_key] = arguments[_key];
11839
11123
  }
11840
11124
 
11841
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11125
+ _this = _super.call.apply(_super, [this].concat(args));
11842
11126
 
11843
11127
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11844
11128
 
@@ -11941,7 +11225,7 @@ function (_Component) {
11941
11225
  })); // We have to give the iframe a key here to prevent a
11942
11226
  // weird dialog appearing when loading a new track
11943
11227
 
11944
- return _react["default"].createElement("iframe", {
11228
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11945
11229
  key: id,
11946
11230
  ref: this.ref,
11947
11231
  style: style,
@@ -12001,23 +11285,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12001
11285
 
12002
11286
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12003
11287
 
12004
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11288
+ 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); }; }
12005
11289
 
12006
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11290
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12007
11291
 
12008
11292
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12009
11293
 
11294
+ 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; } }
11295
+
11296
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11297
+
12010
11298
  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); }
12011
11299
 
12012
11300
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12013
11301
 
12014
11302
  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; }
12015
11303
 
11304
+ 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; } } }; }
11305
+
11306
+ 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); }
11307
+
11308
+ 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; }
11309
+
12016
11310
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
12017
11311
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
12018
11312
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
12019
11313
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
12020
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11314
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
12021
11315
  var HLS_GLOBAL = 'Hls';
12022
11316
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
12023
11317
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -12026,12 +11320,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
12026
11320
 
12027
11321
  function canPlay(url) {
12028
11322
  if (url instanceof Array) {
12029
- var _iteratorNormalCompletion = true;
12030
- var _didIteratorError = false;
12031
- var _iteratorError = undefined;
11323
+ var _iterator = _createForOfIteratorHelper(url),
11324
+ _step;
12032
11325
 
12033
11326
  try {
12034
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11327
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12035
11328
  var item = _step.value;
12036
11329
 
12037
11330
  if (typeof item === 'string' && canPlay(item)) {
@@ -12043,18 +11336,9 @@ function canPlay(url) {
12043
11336
  }
12044
11337
  }
12045
11338
  } catch (err) {
12046
- _didIteratorError = true;
12047
- _iteratorError = err;
11339
+ _iterator.e(err);
12048
11340
  } finally {
12049
- try {
12050
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12051
- _iterator["return"]();
12052
- }
12053
- } finally {
12054
- if (_didIteratorError) {
12055
- throw _iteratorError;
12056
- }
12057
- }
11341
+ _iterator.f();
12058
11342
  }
12059
11343
 
12060
11344
  return false;
@@ -12078,14 +11362,12 @@ function canEnablePIP(url) {
12078
11362
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
12079
11363
  }
12080
11364
 
12081
- var FilePlayer =
12082
- /*#__PURE__*/
12083
- function (_Component) {
11365
+ var FilePlayer = /*#__PURE__*/function (_Component) {
12084
11366
  _inherits(FilePlayer, _Component);
12085
11367
 
12086
- function FilePlayer() {
12087
- var _getPrototypeOf2;
11368
+ var _super = _createSuper(FilePlayer);
12088
11369
 
11370
+ function FilePlayer() {
12089
11371
  var _this;
12090
11372
 
12091
11373
  _classCallCheck(this, FilePlayer);
@@ -12094,7 +11376,7 @@ function (_Component) {
12094
11376
  _args[_key] = arguments[_key];
12095
11377
  }
12096
11378
 
12097
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11379
+ _this = _super.call.apply(_super, [this].concat(_args));
12098
11380
 
12099
11381
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
12100
11382
  var _this$props;
@@ -12181,19 +11463,19 @@ function (_Component) {
12181
11463
 
12182
11464
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
12183
11465
  if (typeof source === 'string') {
12184
- return _react["default"].createElement("source", {
11466
+ return /*#__PURE__*/_react["default"].createElement("source", {
12185
11467
  key: index,
12186
11468
  src: source
12187
11469
  });
12188
11470
  }
12189
11471
 
12190
- return _react["default"].createElement("source", _extends({
11472
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
12191
11473
  key: index
12192
11474
  }, source));
12193
11475
  });
12194
11476
 
12195
11477
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
12196
- return _react["default"].createElement("track", _extends({
11478
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
12197
11479
  key: index
12198
11480
  }, track));
12199
11481
  });
@@ -12231,6 +11513,10 @@ function (_Component) {
12231
11513
  key: "componentWillUnmount",
12232
11514
  value: function componentWillUnmount() {
12233
11515
  this.removeListeners(this.player);
11516
+
11517
+ if (this.hls) {
11518
+ this.hls.destroy();
11519
+ }
12234
11520
  }
12235
11521
  }, {
12236
11522
  key: "addListeners",
@@ -12361,10 +11647,6 @@ function (_Component) {
12361
11647
  value: function stop() {
12362
11648
  this.player.removeAttribute('src');
12363
11649
 
12364
- if (this.hls) {
12365
- this.hls.destroy();
12366
- }
12367
-
12368
11650
  if (this.dash) {
12369
11651
  this.dash.reset();
12370
11652
  }
@@ -12476,7 +11758,7 @@ function (_Component) {
12476
11758
  width: width === 'auto' ? width : '100%',
12477
11759
  height: height === 'auto' ? height : '100%'
12478
11760
  };
12479
- return _react["default"].createElement(Element, _extends({
11761
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12480
11762
  ref: this.ref,
12481
11763
  src: this.getSource(url),
12482
11764
  style: style,
@@ -12566,12 +11848,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12566
11848
 
12567
11849
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12568
11850
 
12569
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11851
+ 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); }; }
12570
11852
 
12571
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11853
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12572
11854
 
12573
11855
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12574
11856
 
11857
+ 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; } }
11858
+
11859
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11860
+
12575
11861
  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); }
12576
11862
 
12577
11863
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12580,14 +11866,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12580
11866
 
12581
11867
  var ICON_SIZE = '64px';
12582
11868
 
12583
- var Preview =
12584
- /*#__PURE__*/
12585
- function (_Component) {
11869
+ var Preview = /*#__PURE__*/function (_Component) {
12586
11870
  _inherits(Preview, _Component);
12587
11871
 
12588
- function Preview() {
12589
- var _getPrototypeOf2;
11872
+ var _super = _createSuper(Preview);
12590
11873
 
11874
+ function Preview() {
12591
11875
  var _this;
12592
11876
 
12593
11877
  _classCallCheck(this, Preview);
@@ -12596,7 +11880,7 @@ function (_Component) {
12596
11880
  args[_key] = arguments[_key];
12597
11881
  }
12598
11882
 
12599
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
11883
+ _this = _super.call.apply(_super, [this].concat(args));
12600
11884
 
12601
11885
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12602
11886
 
@@ -12694,15 +11978,15 @@ function (_Component) {
12694
11978
  }
12695
11979
  };
12696
11980
 
12697
- var defaultPlayIcon = _react["default"].createElement("div", {
11981
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12698
11982
  style: styles.shadow,
12699
11983
  className: "react-player__shadow"
12700
- }, _react["default"].createElement("div", {
11984
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12701
11985
  style: styles.playIcon,
12702
11986
  className: "react-player__play-icon"
12703
11987
  }));
12704
11988
 
12705
- return _react["default"].createElement("div", {
11989
+ return /*#__PURE__*/_react["default"].createElement("div", {
12706
11990
  style: styles.preview,
12707
11991
  className: "react-player__preview",
12708
11992
  onClick: onClick
@@ -12739,6 +12023,12 @@ var _Player = _interopRequireDefault(Player_1);
12739
12023
 
12740
12024
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12741
12025
 
12026
+ 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; } } }; }
12027
+
12028
+ 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); }
12029
+
12030
+ 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; }
12031
+
12742
12032
  var PRELOAD_PLAYERS = [{
12743
12033
  Player: YouTube_1.YouTube,
12744
12034
  configKey: 'youtube',
@@ -12759,16 +12049,16 @@ var PRELOAD_PLAYERS = [{
12759
12049
 
12760
12050
  function renderPreloadPlayers(url, controls, config) {
12761
12051
  var players = [];
12762
- var _iteratorNormalCompletion = true;
12763
- var _didIteratorError = false;
12764
- var _iteratorError = undefined;
12052
+
12053
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12054
+ _step;
12765
12055
 
12766
12056
  try {
12767
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12057
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12768
12058
  var player = _step.value;
12769
12059
 
12770
12060
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12771
- players.push(_react["default"].createElement(_Player["default"], {
12061
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12772
12062
  key: player.Player.displayName,
12773
12063
  activePlayer: player.Player,
12774
12064
  url: player.url,
@@ -12780,18 +12070,9 @@ function renderPreloadPlayers(url, controls, config) {
12780
12070
  }
12781
12071
  }
12782
12072
  } catch (err) {
12783
- _didIteratorError = true;
12784
- _iteratorError = err;
12073
+ _iterator.e(err);
12785
12074
  } finally {
12786
- try {
12787
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12788
- _iterator["return"]();
12789
- }
12790
- } finally {
12791
- if (_didIteratorError) {
12792
- throw _iteratorError;
12793
- }
12794
- }
12075
+ _iterator.f();
12795
12076
  }
12796
12077
 
12797
12078
  return players;
@@ -12915,13 +12196,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12915
12196
 
12916
12197
  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); }
12917
12198
 
12918
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12199
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12200
+
12201
+ 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."); }
12202
+
12203
+ 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); }
12919
12204
 
12920
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12205
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12921
12206
 
12922
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12207
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12923
12208
 
12924
- 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; } }
12209
+ 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; }
12925
12210
 
12926
12211
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12927
12212
 
@@ -12929,12 +12214,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12929
12214
 
12930
12215
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12931
12216
 
12932
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
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); }; }
12933
12218
 
12934
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12219
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12935
12220
 
12936
12221
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12937
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
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12226
+
12938
12227
  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); }
12939
12228
 
12940
12229
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12944,14 +12233,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12944
12233
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12945
12234
  var customPlayers = [];
12946
12235
 
12947
- var ReactPlayer =
12948
- /*#__PURE__*/
12949
- function (_Component) {
12236
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12950
12237
  _inherits(ReactPlayer, _Component);
12951
12238
 
12952
- function ReactPlayer() {
12953
- var _getPrototypeOf2;
12239
+ var _super = _createSuper(ReactPlayer);
12954
12240
 
12241
+ function ReactPlayer() {
12955
12242
  var _this;
12956
12243
 
12957
12244
  _classCallCheck(this, ReactPlayer);
@@ -12960,7 +12247,7 @@ function (_Component) {
12960
12247
  args[_key] = arguments[_key];
12961
12248
  }
12962
12249
 
12963
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12250
+ _this = _super.call.apply(_super, [this].concat(args));
12964
12251
 
12965
12252
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12966
12253
 
@@ -13071,7 +12358,7 @@ function (_Component) {
13071
12358
  key: "renderActivePlayer",
13072
12359
  value: function renderActivePlayer(url, activePlayer) {
13073
12360
  if (!url) return null;
13074
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12361
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
13075
12362
  key: activePlayer.displayName,
13076
12363
  ref: this.activePlayerRef,
13077
12364
  config: this.config,
@@ -13108,14 +12395,14 @@ function (_Component) {
13108
12395
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
13109
12396
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
13110
12397
 
13111
- var preview = _react["default"].createElement(_Preview["default"], {
12398
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
13112
12399
  url: url,
13113
12400
  light: light,
13114
12401
  playIcon: playIcon,
13115
12402
  onClick: this.handleClickPreview
13116
12403
  });
13117
12404
 
13118
- return _react["default"].createElement(Wrapper, _extends({
12405
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
13119
12406
  ref: this.wrapperRef,
13120
12407
  style: _objectSpread({}, style, {
13121
12408
  width: width,
@@ -14463,16 +13750,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14463
13750
  _ref$className = _ref.className,
14464
13751
  className = _ref$className === undefined ? '' : _ref$className;
14465
13752
 
14466
- /*
14467
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14468
- example:
14469
- <RelatedTopicDropdown
14470
- page='/clinical'
14471
- exclude="clinical"
14472
- className='mb-3'
14473
- parentTaxonomy={props.parentTaxonomy}
14474
- subTaxonomies={props.subTaxonomies}
14475
- />
13753
+ /*
13754
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
13755
+ example:
13756
+ <RelatedTopicDropdown
13757
+ page='/clinical'
13758
+ exclude="clinical"
13759
+ className='mb-3'
13760
+ parentTaxonomy={props.parentTaxonomy}
13761
+ subTaxonomies={props.subTaxonomies}
13762
+ />
14476
13763
  */
14477
13764
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14478
13765
  if (parentTaxonomy.identifier == exclude) {
@@ -14510,19 +13797,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14510
13797
  }
14511
13798
  };
14512
13799
 
14513
- /*
14514
- This dropdown is used inside Article body to display related content placement pages
14515
- sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14516
-
14517
- in article query, need to add '...' to content_placement to retreive additional info needed
14518
-
14519
- 'content_placement': taxonomyMapping[]-> {
14520
- ...,
14521
- 'ancestor': parent->parent->identifier,
14522
- 'parent': parent->identifier,
14523
- 'path': identifier
14524
- }
14525
-
13800
+ /*
13801
+ This dropdown is used inside Article body to display related content placement pages
13802
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
13803
+
13804
+ in article query, need to add '...' to content_placement to retreive additional info needed
13805
+
13806
+ 'content_placement': taxonomyMapping[]-> {
13807
+ ...,
13808
+ 'ancestor': parent->parent->identifier,
13809
+ 'parent': parent->identifier,
13810
+ 'path': identifier
13811
+ }
13812
+
14526
13813
  */
14527
13814
 
14528
13815
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15193,34 +14480,34 @@ var YahooHero = function YahooHero(props) {
15193
14480
  );
15194
14481
  };
15195
14482
 
15196
- /*
15197
- Sample query
15198
- let references = ''
15199
- if(article.taxonomyMapping.length > 0){
15200
- article.taxonomyMapping.forEach((ref, index) => {
15201
- references = references + `references('${ref._ref}') `
15202
- if(index+1 !== article.taxonomyMapping.length){
15203
- references = references + ` && `
15204
- }
15205
- })
15206
- }
15207
-
15208
- 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] {
15209
- ...,
15210
- title,
15211
- summary,
15212
- thumbnail,
15213
- url,
15214
- published,
15215
- authorMapping[]->,
15216
- contentCategory->
15217
- }`
15218
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15219
-
15220
- Sample usage
15221
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15222
-
15223
-
14483
+ /*
14484
+ Sample query
14485
+ let references = ''
14486
+ if(article.taxonomyMapping.length > 0){
14487
+ article.taxonomyMapping.forEach((ref, index) => {
14488
+ references = references + `references('${ref._ref}') `
14489
+ if(index+1 !== article.taxonomyMapping.length){
14490
+ references = references + ` && `
14491
+ }
14492
+ })
14493
+ }
14494
+
14495
+ 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] {
14496
+ ...,
14497
+ title,
14498
+ summary,
14499
+ thumbnail,
14500
+ url,
14501
+ published,
14502
+ authorMapping[]->,
14503
+ contentCategory->
14504
+ }`
14505
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
14506
+
14507
+ Sample usage
14508
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14509
+
14510
+
15224
14511
  */
15225
14512
  var RelatedContent = function RelatedContent(props) {
15226
14513
  var client = props.client,
@@ -15287,21 +14574,21 @@ var RelatedContent = function RelatedContent(props) {
15287
14574
  );
15288
14575
  };
15289
14576
 
15290
- /*
15291
- Example usage - targetedonc.com/latest-conference
15292
- 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] {
15293
- ...,
15294
- title,
15295
- summary,
15296
- thumbnail,
15297
- url,
15298
- published,
15299
- documentGroup->,
15300
- contentCategory->,
15301
- 'pageNumber': ${currentPage}
15302
- }`
15303
-
15304
- const posts = await client.fetch(query, params)
14577
+ /*
14578
+ Example usage - targetedonc.com/latest-conference
14579
+ 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] {
14580
+ ...,
14581
+ title,
14582
+ summary,
14583
+ thumbnail,
14584
+ url,
14585
+ published,
14586
+ documentGroup->,
14587
+ contentCategory->,
14588
+ 'pageNumber': ${currentPage}
14589
+ }`
14590
+
14591
+ const posts = await client.fetch(query, params)
15305
14592
  */
15306
14593
 
15307
14594
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15928,6 +15215,7 @@ var _initialiseProps = function _initialiseProps() {
15928
15215
  };
15929
15216
 
15930
15217
  exports.AdSlot = AdSlot.DFPAdSlot;
15218
+ exports.Beam = AdSlot.Beam;
15931
15219
  exports.DeckContent = DeckContent;
15932
15220
  exports.AD = GridContent.AD;
15933
15221
  exports.GridContent = GridContent.GridContent;
@@ -15938,7 +15226,7 @@ exports.GroupDeck = GroupDeck;
15938
15226
  exports.YoutubeGroup = YoutubeGroup.YoutubeGroup;
15939
15227
  exports.QueueDeckExpanded = QueueDeckExpanded;
15940
15228
  exports.VideoSeriesListing = VideoSeriesListing;
15941
- exports.MasterDeck = MasterDeck.MasterDeck;
15229
+ exports.MasterDeck = MasterDeck;
15942
15230
  exports.PublicationDeck = PublicationDeck;
15943
15231
  exports.IssueDeck = IssueDeck;
15944
15232
  exports.IssueContentDeck = IssueContentDeck;