@wistia/wistia-player-react 0.0.104 → 0.0.105

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.
@@ -489,6 +489,25 @@ function _assertThisInitialized(e) {
489
489
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
490
490
  return e;
491
491
  }
492
+ function _superPropGet(t, o, e, r) {
493
+ var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
494
+ return 2 & r && "function" == typeof p ? function(t2) {
495
+ return p.apply(e, t2);
496
+ } : p;
497
+ }
498
+ function _get() {
499
+ return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
500
+ var p = _superPropBase(e, t);
501
+ if (p) {
502
+ var n = Object.getOwnPropertyDescriptor(p, t);
503
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
504
+ }
505
+ }, _get.apply(null, arguments);
506
+ }
507
+ function _superPropBase(t, o) {
508
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)); ) ;
509
+ return t;
510
+ }
492
511
  function _inherits(t, e) {
493
512
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
494
513
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: true, configurable: true } }), Object.defineProperty(t, "prototype", { writable: false }), e && _setPrototypeOf(t, e);
@@ -568,15 +587,29 @@ function _get_pageUrl(_this) {
568
587
  var _this$getAttribute3;
569
588
  return (_this$getAttribute3 = _this.getAttribute("page-url")) !== null && _this$getAttribute3 !== void 0 ? _this$getAttribute3 : (0, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__.H)();
570
589
  }
590
+ function _defaultLocalization() {
591
+ return {
592
+ alpha3Bibliographic: "eng",
593
+ alpha3Terminologic: "eng",
594
+ duration: 0,
595
+ hashedId: this.mediaId,
596
+ ietfLanguageTag: "eng",
597
+ iso6392LanguageCode: "eng",
598
+ name: "English",
599
+ nativeName: "English",
600
+ sourceLanguage: true,
601
+ timeMappings: []
602
+ };
603
+ }
571
604
  function _deferMediaDataFetchingToCarouselEmbed() {
572
605
  return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
573
606
  }
574
607
  function _findLocalizationByLanguage(language) {
575
- var _classPrivateFieldGet91;
608
+ var _classPrivateFieldGet93;
576
609
  if (language == null) {
577
610
  return void 0;
578
611
  }
579
- return (_classPrivateFieldGet91 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.find(function(localization) {
612
+ return (_classPrivateFieldGet93 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.find(function(localization) {
580
613
  return localization.ietfLanguageTag === language || localization.iso6392LanguageCode === language;
581
614
  });
582
615
  }
@@ -585,11 +618,11 @@ function _generateUniqueId(mediaId) {
585
618
  return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_15__.h)(prefix);
586
619
  }
587
620
  function _getSyncedEmbedOption(key) {
588
- var _ref16, _ref17;
621
+ var _ref20, _ref21;
589
622
  if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
590
623
  return _classPrivateFieldGet(_impl, this)._attrs[key];
591
624
  }
592
- return (_ref16 = (_ref17 = this.embedOptions[key]) !== null && _ref17 !== void 0 ? _ref17 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__.$)(key))) !== null && _ref16 !== void 0 ? _ref16 : defaultEmbedOptions[key];
625
+ return (_ref20 = (_ref21 = this.embedOptions[key]) !== null && _ref21 !== void 0 ? _ref21 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__.$)(key))) !== null && _ref20 !== void 0 ? _ref20 : defaultEmbedOptions[key];
593
626
  }
594
627
  function _getValueFromAttribute(name) {
595
628
  if (!this.hasAttribute(name)) {
@@ -607,8 +640,8 @@ function _getValueFromAttribute(name) {
607
640
  return this.getAttribute(name);
608
641
  }
609
642
  }
610
- function _initPlayerEmbed(_ref18) {
611
- var container = _ref18.container, mediaData = _ref18.mediaData;
643
+ function _initPlayerEmbed(_ref22) {
644
+ var container = _ref22.container, mediaData = _ref22.mediaData;
612
645
  if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
613
646
  return;
614
647
  }
@@ -621,8 +654,8 @@ function _initPlayerEmbed(_ref18) {
621
654
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
622
655
  }
623
656
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
624
- var _classPrivateFieldGet92;
625
- (_classPrivateFieldGet92 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.states.delete("--initializing");
657
+ var _classPrivateFieldGet94;
658
+ (_classPrivateFieldGet94 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.states.delete("--initializing");
626
659
  }
627
660
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
628
661
  container,
@@ -633,71 +666,71 @@ function _initPublicApi(_x22, _x23) {
633
666
  return _initPublicApi2.apply(this, arguments);
634
667
  }
635
668
  function _initPublicApi2() {
636
- _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee26(mediaId, options) {
637
- var _this17 = this;
669
+ _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee27(mediaId, options) {
670
+ var _this19 = this;
638
671
  var embeddedCallback;
639
- return _regeneratorRuntime().wrap(function _callee26$(_context26) {
640
- while (1) switch (_context26.prev = _context26.next) {
672
+ return _regeneratorRuntime().wrap(function _callee27$(_context27) {
673
+ while (1) switch (_context27.prev = _context27.next) {
641
674
  case 0:
642
- _context26.next = 2;
675
+ _context27.next = 2;
643
676
  return _classPrivateFieldGet(_publicApiScript, this);
644
677
  case 2:
645
678
  if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.PublicApi) {
646
- _context26.next = 5;
679
+ _context27.next = 5;
647
680
  break;
648
681
  }
649
682
  (0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_16__.WO)("player/failure/init-failed");
650
683
  throw new Error("Wistia.PublicApi is not defined");
651
684
  case 5:
652
685
  embeddedCallback = function embeddedCallback2() {
653
- var _classPrivateFieldGet99;
654
- void _assertClassBrand(_WistiaPlayer_brand, _this17, _maybeInitializeMux).call(_this17);
655
- _assertClassBrand(_WistiaPlayer_brand, _this17, _renderEmbedTemplate).call(_this17);
656
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_resizeObserver, _this17)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.disconnect();
657
- _classPrivateFieldSet(_resizeObserver, _this17, null);
658
- if (_classPrivateFieldGet(_playPending, _this17)) {
659
- void _this17.play();
686
+ var _classPrivateFieldGet101;
687
+ void _assertClassBrand(_WistiaPlayer_brand, _this19, _maybeInitializeMux).call(_this19);
688
+ _assertClassBrand(_WistiaPlayer_brand, _this19, _renderEmbedTemplate).call(_this19);
689
+ (_classPrivateFieldGet101 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : _classPrivateFieldGet101.disconnect();
690
+ _classPrivateFieldSet(_resizeObserver, _this19, null);
691
+ if (_classPrivateFieldGet(_playPending, _this19)) {
692
+ void _this19.play();
660
693
  }
661
694
  };
662
695
  this.addEventListener("embedded", embeddedCallback);
663
696
  _classPrivateFieldGet(_removeEventListeners, this).push(function() {
664
- _this17.removeEventListener("embedded", embeddedCallback);
697
+ _this19.removeEventListener("embedded", embeddedCallback);
665
698
  });
666
699
  _classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.PublicApi(mediaId, options));
667
700
  this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _classPrivateFieldGet(_handleBeforeReplace, this));
668
701
  this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, this));
669
702
  _classPrivateFieldGet(_removeEventListeners, this).push(function() {
670
- _this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _classPrivateFieldGet(_handleBeforeReplace, _this17));
671
- _this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, _this17));
703
+ _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _classPrivateFieldGet(_handleBeforeReplace, _this19));
704
+ _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
672
705
  });
673
706
  _classPrivateFieldGet(_api, this).ready(function() {
674
- var _classPrivateFieldGet100;
675
- (_classPrivateFieldGet100 = _classPrivateFieldGet(_preloadThumbnailRoot, _this17)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.remove();
676
- _this17.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this17));
677
- _this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, {
707
+ var _classPrivateFieldGet102;
708
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.remove();
709
+ _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
710
+ _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, {
678
711
  detail: {
679
712
  mediaId
680
713
  }
681
714
  }));
682
- _this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.iP, {
715
+ _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.iP, {
683
716
  detail: {
684
717
  mediaId,
685
- api: _classPrivateFieldGet(_api, _this17)
718
+ api: _classPrivateFieldGet(_api, _this19)
686
719
  }
687
720
  }));
688
- if (_classPrivateFieldGet(_impl, _this17)) {
689
- Object.entries(_classPrivateFieldGet(_impl, _this17)._attrs).forEach(function(_ref24) {
690
- var _ref25 = _slicedToArray(_ref24, 2), key = _ref25[0], value = _ref25[1];
691
- _classPrivateFieldGet(_playerData, _this17).updateEmbedOptionOverrides(_defineProperty({}, key, value));
721
+ if (_classPrivateFieldGet(_impl, _this19)) {
722
+ Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref28) {
723
+ var _ref29 = _slicedToArray(_ref28, 2), key = _ref29[0], value = _ref29[1];
724
+ _classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
692
725
  });
693
726
  }
694
- _assertClassBrand(_WistiaPlayer_brand, _this17, _renderPreloadThumbnail).call(_this17);
727
+ _assertClassBrand(_WistiaPlayer_brand, _this19, _renderPreloadThumbnail).call(_this19);
695
728
  });
696
729
  case 13:
697
730
  case "end":
698
- return _context26.stop();
731
+ return _context27.stop();
699
732
  }
700
- }, _callee26, this);
733
+ }, _callee27, this);
701
734
  }));
702
735
  return _initPublicApi2.apply(this, arguments);
703
736
  }
@@ -708,44 +741,44 @@ function _maybeInitializeMux() {
708
741
  return _maybeInitializeMux2.apply(this, arguments);
709
742
  }
710
743
  function _maybeInitializeMux2() {
711
- _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee27() {
712
- var _this18 = this;
744
+ _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee28() {
745
+ var _this20 = this;
713
746
  var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
714
- return _regeneratorRuntime().wrap(function _callee27$(_context27) {
715
- while (1) switch (_context27.prev = _context27.next) {
747
+ return _regeneratorRuntime().wrap(function _callee28$(_context28) {
748
+ while (1) switch (_context28.prev = _context28.next) {
716
749
  case 0:
717
750
  if (_classPrivateFieldGet(_api, this)) {
718
- _context27.next = 2;
751
+ _context28.next = 2;
719
752
  break;
720
753
  }
721
- return _context27.abrupt("return");
754
+ return _context28.abrupt("return");
722
755
  case 2:
723
756
  shouldRandomEnableMux = (0, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_33__.k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_34__._);
724
757
  shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_34__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_17__.D5)();
725
758
  embedType = this.useWebComponent ? "translated-web-component" : "web-component";
726
759
  if (!shouldEnableMuxForPlayer) {
727
- _context27.next = 11;
760
+ _context28.next = 11;
728
761
  break;
729
762
  }
730
- _context27.next = 8;
763
+ _context28.next = 8;
731
764
  return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__.$)("assets/external/wistia-mux.js");
732
765
  case 8:
733
- mux = _context27.sent;
766
+ mux = _context28.sent;
734
767
  mux.init(_classPrivateFieldGet(_api, this), {
735
768
  embedType
736
769
  });
737
770
  this.addEventListener("visitor-tracking-change", function(event) {
738
771
  var isTrackingEnabled = event.detail.isTrackingEnabled;
739
772
  if (!isTrackingEnabled) {
740
- var _classPrivateFieldGet102, _classPrivateFieldGet103;
741
- (_classPrivateFieldGet102 = _classPrivateFieldGet(_api, _this18)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : (_classPrivateFieldGet103 = _classPrivateFieldGet102.mux) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.destroy();
773
+ var _classPrivateFieldGet104, _classPrivateFieldGet105;
774
+ (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104.mux) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.destroy();
742
775
  }
743
776
  });
744
777
  case 11:
745
778
  case "end":
746
- return _context27.stop();
779
+ return _context28.stop();
747
780
  }
748
- }, _callee27, this);
781
+ }, _callee28, this);
749
782
  }));
750
783
  return _maybeInitializeMux2.apply(this, arguments);
751
784
  }
@@ -771,7 +804,7 @@ function _maybeSetupEmbedOptionsFromIframe() {
771
804
  _classPrivateFieldGet(_playerData, this).setIframeEmbedOptionSource(iframeEmbedOptions);
772
805
  }
773
806
  function _renderEmbedTemplate() {
774
- var _this$embedHost2, _this12 = this;
807
+ var _this$embedHost2, _this14 = this;
775
808
  if (!_classPrivateFieldGet(_preactRoot, this)) {
776
809
  return;
777
810
  }
@@ -821,8 +854,8 @@ function _renderEmbedTemplate() {
821
854
  alt: "",
822
855
  "aria-hidden": "true"
823
856
  })))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
824
- ref: function ref(_ref19) {
825
- _classPrivateFieldSet(_preloadThumbnailRoot, _this12, _ref19);
857
+ ref: function ref(_ref23) {
858
+ _classPrivateFieldSet(_preloadThumbnailRoot, _this14, _ref23);
826
859
  }
827
860
  })), _classPrivateFieldGet(_preactRoot, this));
828
861
  }
@@ -831,8 +864,8 @@ function _renderPreloadThumbnail() {
831
864
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
832
865
  return;
833
866
  }
834
- var _classPrivateFieldGet93 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet93.assets, mediaType = _classPrivateFieldGet93.mediaType, carouselHardWall = _classPrivateFieldGet93.carouselHardWall;
835
- var _classPrivateFieldGet94 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet94.autoPlay, plugin = _classPrivateFieldGet94.plugin;
867
+ var _classPrivateFieldGet95 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet95.assets, mediaType = _classPrivateFieldGet95.mediaType, carouselHardWall = _classPrivateFieldGet95.carouselHardWall;
868
+ var _classPrivateFieldGet96 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet96.autoPlay, plugin = _classPrivateFieldGet96.plugin;
836
869
  if (carouselHardWall) {
837
870
  return;
838
871
  }
@@ -854,18 +887,18 @@ function _renderPreloadThumbnail() {
854
887
  })), _classPrivateFieldGet(_preloadThumbnailRoot, this));
855
888
  }
856
889
  function _runMethodsFromAttributes() {
857
- var _this13 = this;
890
+ var _this15 = this;
858
891
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
859
892
  this.whenApiReady().then(function() {
860
- var _ref20, _classPrivateFieldGet95, _classPrivateFieldGet96;
861
- var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "current-time"));
862
- var isClosedPopover = (_ref20 = ((_classPrivateFieldGet95 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.popover) && !_classPrivateFieldGet(_api, _this13).popover.isVisible()) !== null && _ref20 !== void 0 ? _ref20 : false;
893
+ var _ref24, _classPrivateFieldGet97, _classPrivateFieldGet98;
894
+ var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, "current-time"));
895
+ var isClosedPopover = (_ref24 = ((_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this15)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.popover) && !_classPrivateFieldGet(_api, _this15).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
863
896
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__.GS)();
864
- var shouldDelayUntilPlay = _this13.state !== "playing" && (isMobile || isClosedPopover);
865
- void ((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, _this13)) === null || _classPrivateFieldGet96 === void 0 ? void 0 : _classPrivateFieldGet96.time(newTime, {
897
+ var shouldDelayUntilPlay = _this15.state !== "playing" && (isMobile || isClosedPopover);
898
+ void ((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, _this15)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.time(newTime, {
866
899
  lazy: shouldDelayUntilPlay
867
900
  }));
868
- _assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "currentTime", newTime);
901
+ _assertClassBrand(_WistiaPlayer_brand, _this15, _setSyncedEmbedOption).call(_this15, "currentTime", newTime);
869
902
  }).catch(function(_error) {
870
903
  });
871
904
  }
@@ -874,19 +907,19 @@ function _runMethodsFromAttributes() {
874
907
  }
875
908
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
876
909
  this.whenApiReady().then(function() {
877
- var _classPrivateFieldGet97;
878
- var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "video-quality");
879
- (_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, _this13)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.setVideoQuality(newQuality);
880
- _assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "videoQuality", newQuality);
910
+ var _classPrivateFieldGet99;
911
+ var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, "video-quality");
912
+ (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this15)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.setVideoQuality(newQuality);
913
+ _assertClassBrand(_WistiaPlayer_brand, _this15, _setSyncedEmbedOption).call(_this15, "videoQuality", newQuality);
881
914
  }).catch(function(_error) {
882
915
  });
883
916
  }
884
917
  }
885
918
  function _saveInitialAttributesFromDomOptions() {
886
- var _this14 = this;
887
- var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref21) {
888
- var _ref22 = _slicedToArray(_ref21, 2), value = _ref22[1];
889
- return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, value.name)];
919
+ var _this16 = this;
920
+ var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
921
+ var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
922
+ return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this16, _getValueFromAttribute).call(_this16, value.name)];
890
923
  }));
891
924
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
892
925
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.gY)("__".concat(this.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, this).embedOptions);
@@ -900,20 +933,20 @@ function _setSyncedEmbedOption(key, value) {
900
933
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
901
934
  }
902
935
  function _setupEventListeners() {
903
- var _this15 = this;
936
+ var _this17 = this;
904
937
  var loadedMediaDataCallback = function loadedMediaDataCallback2(event) {
905
- var _ref23 = event.detail, mediaData = _ref23.mediaData;
906
- _assertClassBrand(_WistiaPlayer_brand, _this15, _updateMediaData).call(_this15, mediaData);
938
+ var _ref27 = event.detail, mediaData = _ref27.mediaData;
939
+ _assertClassBrand(_WistiaPlayer_brand, _this17, _updateMediaData).call(_this17, mediaData);
907
940
  };
908
941
  var implCreatedCallback = function implCreatedCallback2(event) {
909
- _classPrivateFieldSet(_impl, _this15, event.detail.impl);
942
+ _classPrivateFieldSet(_impl, _this17, event.detail.impl);
910
943
  };
911
944
  this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, loadedMediaDataCallback);
912
945
  this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.dp, implCreatedCallback);
913
946
  _classPrivateFieldGet(_removeEventListeners, this).push(function() {
914
- _this15.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, loadedMediaDataCallback);
947
+ _this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, loadedMediaDataCallback);
915
948
  }, function() {
916
- _this15.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.dp, implCreatedCallback);
949
+ _this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.dp, implCreatedCallback);
917
950
  });
918
951
  this.addEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, this), {
919
952
  once: true
@@ -923,9 +956,9 @@ function _shouldDisplaySwatch() {
923
956
  return this.swatch !== false && (!this.wistiaPopover || _assertClassBrand(_WistiaPlayer_brand, this, _isPopoverWithThumbnail).call(this));
924
957
  }
925
958
  function _updateEmail(email) {
926
- var _this16 = this;
959
+ var _this18 = this;
927
960
  (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_19__.$B)(function(localStorage2) {
928
- localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)]), {}, {
961
+ localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this18, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this18, _get_pageUrl)]), {}, {
929
962
  trackEmail: email
930
963
  });
931
964
  });
@@ -940,7 +973,7 @@ function _updateMediaData(mediaData) {
940
973
  _classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
941
974
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
942
975
  }
943
- var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_3__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_4__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_27__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_5__, _appHostname_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_6__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_12__, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__, _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_35__, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_14__, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_15__, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_34__, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_16__, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_17__, _utilities_url_js__WEBPACK_IMPORTED_MODULE_18__, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_19__, _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_20__, _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_21__, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_22__, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_24__, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_28__, _WistiaPlayer, requiredAttributes, optionalPublicAttributes, optionalPrivateAttributes, defaultEmbedOptions, getSwatchUrl, _api, _fullscreenState, _impl, _internals, _jsonLdId, _judyContext, _logger, _oldEngine, _playerData, _playerType, _removeEventListeners, _hasElementConnectedToDOM, _paddingTop, _playPending, _preactRoot, _preloadThumbnailRoot, _publicApiScript, _resizeObserver, _WistiaPlayer_brand, _handleAfterReplace, _handleBeforeReplace, _handlePreloadThumbnailClick, WistiaPlayer, getSwatchMetaData2, wistiaSwatchElement, __webpack_exports__WistiaPlayer, __webpack_exports__wistiaSwatchElement;
976
+ var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_3__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_4__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_27__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_5__, _appHostname_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_6__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_12__, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__, _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_35__, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_14__, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_15__, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_34__, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_16__, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_17__, _utilities_url_js__WEBPACK_IMPORTED_MODULE_18__, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_19__, _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_20__, _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_21__, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_22__, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_24__, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_28__, _WistiaPlayer, requiredAttributes, optionalPublicAttributes, optionalPrivateAttributes, defaultEmbedOptions, getSwatchUrl, _api, _eventListeners, _fullscreenState, _impl, _internals, _jsonLdId, _judyContext, _logger, _oldEngine, _playerData, _playerType, _removeEventListeners, _cachedRemapTime, _hasElementConnectedToDOM, _paddingTop, _playPending, _preactRoot, _preloadThumbnailRoot, _publicApiScript, _resizeObserver, _WistiaPlayer_brand, _handleAfterReplace, _handleBeforeReplace, _handlePreloadThumbnailClick, WistiaPlayer, getSwatchMetaData2, wistiaSwatchElement, __webpack_exports__WistiaPlayer, __webpack_exports__wistiaSwatchElement;
944
977
  var init_wistia_player = __esm({
945
978
  "../wistia-player/dist/wistia-player.js"() {
946
979
  __webpack_modules__ = {
@@ -3783,7 +3816,6 @@ var init_wistia_player = __esm({
3783
3816
  }
3784
3817
  };
3785
3818
  construct();
3786
- return self2;
3787
3819
  };
3788
3820
  var uproto = Url2.prototype;
3789
3821
  uproto.fromOptions = function(options) {
@@ -5403,7 +5435,7 @@ var init_wistia_player = __esm({
5403
5435
  /* harmony export */
5404
5436
  J0: () => (
5405
5437
  /* binding */
5406
- h
5438
+ d
5407
5439
  ),
5408
5440
  /* harmony export */
5409
5441
  NT: () => (
@@ -5424,20 +5456,20 @@ var init_wistia_player = __esm({
5424
5456
  });
5425
5457
  var preact__WEBPACK_IMPORTED_MODULE_0__2 = __webpack_require__3(5181);
5426
5458
  var t, r, u, i2, o = 0, f = [], c = preact__WEBPACK_IMPORTED_MODULE_0__2.fF, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
5427
- function d(n, t2) {
5459
+ function p(n, t2) {
5428
5460
  c.__h && c.__h(r, n, o || t2), o = 0;
5429
5461
  var u2 = r.__H || (r.__H = { __: [], __h: [] });
5430
5462
  return n >= u2.__.length && u2.__.push({}), u2.__[n];
5431
5463
  }
5432
- function h(n) {
5433
- return o = 1, p(D, n);
5464
+ function d(n) {
5465
+ return o = 1, h(D, n);
5434
5466
  }
5435
- function p(n, u2, i3) {
5436
- var o2 = d(t++, 2);
5467
+ function h(n, u2, i3) {
5468
+ var o2 = p(t++, 2);
5437
5469
  if (o2.t = n, !o2.__c && (o2.__ = [i3 ? i3(u2) : D(void 0, u2), function(n2) {
5438
5470
  var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n2);
5439
5471
  t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
5440
- }], o2.__c = r, !r.u)) {
5472
+ }], o2.__c = r, !r.__f)) {
5441
5473
  var f2 = function(n2, t2, r2) {
5442
5474
  if (!o2.__c.__H) return true;
5443
5475
  var u3 = o2.__c.__H.__.filter(function(n3) {
@@ -5454,7 +5486,7 @@ var init_wistia_player = __esm({
5454
5486
  }
5455
5487
  }), c2 && c2.call(this, n2, t2, r2) || i4;
5456
5488
  };
5457
- r.u = true;
5489
+ r.__f = true;
5458
5490
  var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
5459
5491
  r.componentWillUpdate = function(n2, t2, r2) {
5460
5492
  if (this.__e) {
@@ -5467,12 +5499,12 @@ var init_wistia_player = __esm({
5467
5499
  return o2.__N || o2.__;
5468
5500
  }
5469
5501
  function y(n, u2) {
5470
- var i3 = d(t++, 3);
5471
- !c.__s && C(i3.__H, u2) && (i3.__ = n, i3.i = u2, r.__H.__h.push(i3));
5502
+ var i3 = p(t++, 3);
5503
+ !c.__s && C(i3.__H, u2) && (i3.__ = n, i3.u = u2, r.__H.__h.push(i3));
5472
5504
  }
5473
5505
  function _(n, u2) {
5474
- var i3 = d(t++, 4);
5475
- !c.__s && C(i3.__H, u2) && (i3.__ = n, i3.i = u2, r.__h.push(i3));
5506
+ var i3 = p(t++, 4);
5507
+ !c.__s && C(i3.__H, u2) && (i3.__ = n, i3.u = u2, r.__h.push(i3));
5476
5508
  }
5477
5509
  function A(n) {
5478
5510
  return o = 5, T(function() {
@@ -5481,15 +5513,19 @@ var init_wistia_player = __esm({
5481
5513
  }
5482
5514
  function F(n, t2, r2) {
5483
5515
  o = 6, _(function() {
5484
- return "function" == typeof n ? (n(t2()), function() {
5485
- return n(null);
5486
- }) : n ? (n.current = t2(), function() {
5516
+ if ("function" == typeof n) {
5517
+ var r3 = n(t2());
5518
+ return function() {
5519
+ n(null), r3 && "function" == typeof r3 && r3();
5520
+ };
5521
+ }
5522
+ if (n) return n.current = t2(), function() {
5487
5523
  return n.current = null;
5488
- }) : void 0;
5524
+ };
5489
5525
  }, null == r2 ? r2 : r2.concat(n));
5490
5526
  }
5491
5527
  function T(n, r2) {
5492
- var u2 = d(t++, 7);
5528
+ var u2 = p(t++, 7);
5493
5529
  return C(u2.__H, r2) && (u2.__ = n(), u2.__H = r2, u2.__h = n), u2.__;
5494
5530
  }
5495
5531
  function q(n, t2) {
@@ -5498,14 +5534,14 @@ var init_wistia_player = __esm({
5498
5534
  }, t2);
5499
5535
  }
5500
5536
  function x(n) {
5501
- var u2 = r.context[n.__c], i3 = d(t++, 9);
5537
+ var u2 = r.context[n.__c], i3 = p(t++, 9);
5502
5538
  return i3.c = n, u2 ? (null == i3.__ && (i3.__ = true, u2.sub(r)), u2.props.value) : n.__;
5503
5539
  }
5504
5540
  function P(n, t2) {
5505
5541
  c.useDebugValue && c.useDebugValue(t2 ? t2(n) : n);
5506
5542
  }
5507
5543
  function b(n) {
5508
- var u2 = d(t++, 10), i3 = h();
5544
+ var u2 = p(t++, 10), i3 = d();
5509
5545
  return u2.__ = n, r.componentDidCatch || (r.componentDidCatch = function(n2, t2) {
5510
5546
  u2.__ && u2.__(n2, t2), i3[1](n2);
5511
5547
  }), [i3[0], function() {
@@ -5513,7 +5549,7 @@ var init_wistia_player = __esm({
5513
5549
  }];
5514
5550
  }
5515
5551
  function g() {
5516
- var n = d(t++, 11);
5552
+ var n = p(t++, 11);
5517
5553
  if (!n.__) {
5518
5554
  for (var u2 = r.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
5519
5555
  var i3 = u2.__m || (u2.__m = [0, 0]);
@@ -5536,13 +5572,13 @@ var init_wistia_player = __esm({
5536
5572
  a && a(n), t = 0;
5537
5573
  var i3 = (r = n.__c).__H;
5538
5574
  i3 && (u === r ? (i3.__h = [], r.__h = [], i3.__.forEach(function(n2) {
5539
- n2.__N && (n2.__ = n2.__N), n2.i = n2.__N = void 0;
5575
+ n2.__N && (n2.__ = n2.__N), n2.u = n2.__N = void 0;
5540
5576
  })) : (i3.__h.forEach(z), i3.__h.forEach(B), i3.__h = [], t = 0)), u = r;
5541
5577
  }, c.diffed = function(n) {
5542
5578
  v && v(n);
5543
5579
  var t2 = n.__c;
5544
5580
  t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i2 === c.requestAnimationFrame || ((i2 = c.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n2) {
5545
- n2.i && (n2.__H = n2.i), n2.i = void 0;
5581
+ n2.u && (n2.__H = n2.u), n2.u = void 0;
5546
5582
  })), u = r = null;
5547
5583
  }, c.__c = function(n, t2) {
5548
5584
  t2.some(function(n2) {
@@ -6776,7 +6812,7 @@ var init_wistia_player = __esm({
6776
6812
  /* harmony export */
6777
6813
  XX: () => (
6778
6814
  /* binding */
6779
- D
6815
+ E
6780
6816
  ),
6781
6817
  /* harmony export */
6782
6818
  fF: () => (
@@ -6786,12 +6822,12 @@ var init_wistia_player = __esm({
6786
6822
  /* harmony export */
6787
6823
  h: () => (
6788
6824
  /* binding */
6789
- g
6825
+ _
6790
6826
  ),
6791
6827
  /* harmony export */
6792
6828
  q6: () => (
6793
6829
  /* binding */
6794
- J
6830
+ K
6795
6831
  ),
6796
6832
  /* harmony export */
6797
6833
  uA: () => (
@@ -6800,18 +6836,18 @@ var init_wistia_player = __esm({
6800
6836
  )
6801
6837
  /* harmony export */
6802
6838
  });
6803
- var n, l, u, t, i2, r, o, e, f, c, s, a, h, p = {}, v = [], y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, d = Array.isArray;
6804
- function w(n2, l2) {
6839
+ var n, l, u, t, i2, r, o, e, f, c, s, a, h, p = {}, y = [], v = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w = Array.isArray;
6840
+ function d(n2, l2) {
6805
6841
  for (var u2 in l2) n2[u2] = l2[u2];
6806
6842
  return n2;
6807
6843
  }
6808
- function _(n2) {
6844
+ function g(n2) {
6809
6845
  n2 && n2.parentNode && n2.parentNode.removeChild(n2);
6810
6846
  }
6811
- function g(l2, u2, t2) {
6847
+ function _(l2, u2, t2) {
6812
6848
  var i3, r2, o2, e2 = {};
6813
6849
  for (o2 in u2) "key" == o2 ? i3 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
6814
- if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
6850
+ if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) null == e2[o2] && (e2[o2] = l2.defaultProps[o2]);
6815
6851
  return m(l2, e2, i3, r2, null);
6816
6852
  }
6817
6853
  function m(n2, t2, i3, r2, o2) {
@@ -6827,38 +6863,37 @@ var init_wistia_player = __esm({
6827
6863
  function x(n2, l2) {
6828
6864
  this.props = n2, this.context = l2;
6829
6865
  }
6830
- function C(n2, l2) {
6831
- if (null == l2) return n2.__ ? C(n2.__, n2.__i + 1) : null;
6866
+ function S(n2, l2) {
6867
+ if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
6832
6868
  for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
6833
- return "function" == typeof n2.type ? C(n2) : null;
6869
+ return "function" == typeof n2.type ? S(n2) : null;
6834
6870
  }
6835
- function S(n2) {
6871
+ function C(n2) {
6836
6872
  var l2, u2;
6837
6873
  if (null != (n2 = n2.__) && null != n2.__c) {
6838
6874
  for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
6839
6875
  n2.__e = n2.__c.base = u2.__e;
6840
6876
  break;
6841
6877
  }
6842
- return S(n2);
6878
+ return C(n2);
6843
6879
  }
6844
6880
  }
6845
6881
  function M(n2) {
6846
- (!n2.__d && (n2.__d = true) && i2.push(n2) && !P.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)(P);
6882
+ (!n2.__d && (n2.__d = true) && i2.push(n2) && !$.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)($);
6847
6883
  }
6848
- function P() {
6849
- var n2, u2, t2, r2, o2, f2, c2, s2;
6850
- for (i2.sort(e); n2 = i2.shift(); ) n2.__d && (u2 = i2.length, r2 = void 0, f2 = (o2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((r2 = w({}, o2)).__v = o2.__v + 1, l.vnode && l.vnode(r2), j(t2.__P, r2, o2, t2.__n, t2.__P.namespaceURI, 32 & o2.__u ? [f2] : null, c2, null == f2 ? C(o2) : f2, !!(32 & o2.__u), s2), r2.__v = o2.__v, r2.__.__k[r2.__i] = r2, z(c2, r2, s2), r2.__e != f2 && S(r2)), i2.length > u2 && i2.sort(e));
6851
- P.__r = 0;
6884
+ function $() {
6885
+ for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i2.length; ) i2.length > s2 && i2.sort(e), n2 = i2.shift(), s2 = i2.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d({}, r2)).__v = r2.__v + 1, l.vnode && l.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z(f2, t2, c2), t2.__e != o2 && C(t2)));
6886
+ $.__r = 0;
6852
6887
  }
6853
- function $(n2, l2, u2, t2, i3, r2, o2, e2, f2, c2, s2) {
6854
- var a2, h2, y2, d2, w2, _2, g2 = t2 && t2.__k || v, m2 = l2.length;
6855
- for (f2 = I(u2, l2, g2, f2, m2), a2 = 0; a2 < m2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 === y2.__i ? p : g2[y2.__i] || p, y2.__i = a2, _2 = j(n2, y2, h2, i3, r2, o2, e2, f2, c2, s2), d2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && V(h2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A(y2, f2, n2) : "function" == typeof y2.type && void 0 !== _2 ? f2 = _2 : d2 && (f2 = d2.nextSibling), y2.__u &= -7);
6856
- return u2.__e = w2, f2;
6888
+ function I(n2, l2, u2, t2, i3, r2, o2, e2, f2, c2, s2) {
6889
+ var a2, h2, v2, w2, d2, g2, _2 = t2 && t2.__k || y, m2 = l2.length;
6890
+ for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) null != (v2 = u2.__k[a2]) && (h2 = -1 == v2.__i ? p : _2[v2.__i] || p, v2.__i = a2, g2 = O(n2, v2, h2, i3, r2, o2, e2, f2, c2, s2), w2 = v2.__e, v2.ref && h2.ref != v2.ref && (h2.ref && q(h2.ref, null, v2), s2.push(v2.ref, v2.__c || w2, v2)), null == d2 && null != w2 && (d2 = w2), 4 & v2.__u || h2.__k === v2.__k ? f2 = A(v2, f2, n2) : "function" == typeof v2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), v2.__u &= -7);
6891
+ return u2.__e = d2, f2;
6857
6892
  }
6858
- function I(n2, l2, u2, t2, i3) {
6893
+ function P(n2, l2, u2, t2, i3) {
6859
6894
  var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
6860
- for (n2.__k = new Array(i3), r2 = 0; r2 < i3; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m(null, o2, null, null, null) : d(o2) ? m(k, { children: o2 }, null, null, null) : void 0 === o2.constructor && o2.__b > 0 ? m(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 !== (c2 = o2.__i = L(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null === e2.__v ? (-1 == c2 && h2--, "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
6861
- if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = C(e2)), q(e2, e2));
6895
+ for (n2.__k = new Array(i3), r2 = 0; r2 < i3; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m(null, o2, null, null, null) : w(o2) ? m(k, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i3 > s2 ? h2-- : i3 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
6896
+ if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B(e2, e2));
6862
6897
  return t2;
6863
6898
  }
6864
6899
  function A(n2, l2, u2) {
@@ -6867,41 +6902,41 @@ var init_wistia_player = __esm({
6867
6902
  for (t2 = n2.__k, i3 = 0; t2 && i3 < t2.length; i3++) t2[i3] && (t2[i3].__ = n2, l2 = A(t2[i3], l2, u2));
6868
6903
  return l2;
6869
6904
  }
6870
- n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = C(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
6905
+ n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
6871
6906
  do {
6872
6907
  l2 = l2 && l2.nextSibling;
6873
6908
  } while (null != l2 && 8 == l2.nodeType);
6874
6909
  return l2;
6875
6910
  }
6876
6911
  function H(n2, l2) {
6877
- return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (d(n2) ? n2.some(function(n3) {
6912
+ return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (w(n2) ? n2.some(function(n3) {
6878
6913
  H(n3, l2);
6879
6914
  }) : l2.push(n2)), l2;
6880
6915
  }
6881
6916
  function L(n2, l2, u2, t2) {
6882
6917
  var i3, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
6883
- if (null === f2 || f2 && o2 == f2.key && e2 === f2.type && 0 == (2 & f2.__u)) return u2;
6918
+ if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u)) return u2;
6884
6919
  if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0)) for (i3 = u2 - 1, r2 = u2 + 1; i3 >= 0 || r2 < l2.length; ) {
6885
6920
  if (i3 >= 0) {
6886
- if ((f2 = l2[i3]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 === f2.type) return i3;
6921
+ if ((f2 = l2[i3]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i3;
6887
6922
  i3--;
6888
6923
  }
6889
6924
  if (r2 < l2.length) {
6890
- if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 === f2.type) return r2;
6925
+ if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
6891
6926
  r2++;
6892
6927
  }
6893
6928
  }
6894
6929
  return -1;
6895
6930
  }
6896
6931
  function T(n2, l2, u2) {
6897
- "-" == l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || y.test(l2) ? u2 : u2 + "px";
6932
+ "-" == l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || v.test(l2) ? u2 : u2 + "px";
6898
6933
  }
6899
- function F(n2, l2, u2, t2, i3) {
6934
+ function j(n2, l2, u2, t2, i3) {
6900
6935
  var r2;
6901
6936
  n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
6902
6937
  else {
6903
6938
  if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T(n2.style, l2, "");
6904
- if (u2) for (l2 in u2) t2 && u2[l2] === t2[l2] || T(n2.style, l2, u2[l2]);
6939
+ if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T(n2.style, l2, u2[l2]);
6905
6940
  }
6906
6941
  else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f, "$1")), l2 = l2.toLowerCase() in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c, n2.addEventListener(l2, r2 ? a : s, r2)) : n2.removeEventListener(l2, r2 ? a : s, r2);
6907
6942
  else {
@@ -6914,7 +6949,7 @@ var init_wistia_player = __esm({
6914
6949
  "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
6915
6950
  }
6916
6951
  }
6917
- function O(n2) {
6952
+ function F(n2) {
6918
6953
  return function(u2) {
6919
6954
  if (this.l) {
6920
6955
  var t2 = this.l[u2.type + n2];
@@ -6924,44 +6959,44 @@ var init_wistia_player = __esm({
6924
6959
  }
6925
6960
  };
6926
6961
  }
6927
- function j(n2, u2, t2, i3, r2, o2, e2, f2, c2, s2) {
6928
- var a2, h2, p2, v2, y2, g2, m2, b2, C2, S2, M2, P2, I2, A2, H2, L2, T2, F2 = u2.type;
6929
- if (void 0 !== u2.constructor) return null;
6962
+ function O(n2, u2, t2, i3, r2, o2, e2, f2, c2, s2) {
6963
+ var a2, h2, p2, y2, v2, _2, m2, b2, S2, C2, M2, $2, P2, A2, H2, L2, T2, j2 = u2.type;
6964
+ if (null != u2.constructor) return null;
6930
6965
  128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l.__b) && a2(u2);
6931
- n: if ("function" == typeof F2) try {
6932
- if (b2 = u2.props, C2 = "prototype" in F2 && F2.prototype.render, S2 = (a2 = F2.contextType) && i3[a2.__c], M2 = a2 ? S2 ? S2.props.value : a2.__ : i3, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (C2 ? u2.__c = h2 = new F2(b2, M2) : (u2.__c = h2 = new x(b2, M2), h2.constructor = F2, h2.render = B), S2 && S2.sub(h2), h2.props = b2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i3, p2 = h2.__d = true, h2.__h = [], h2._sb = []), C2 && null == h2.__s && (h2.__s = h2.state), C2 && null != F2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = w({}, h2.__s)), w(h2.__s, F2.getDerivedStateFromProps(b2, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2) C2 && null == F2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), C2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
6966
+ n: if ("function" == typeof j2) try {
6967
+ if (b2 = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i3[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i3, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b2, M2) : (u2.__c = h2 = new x(b2, M2), h2.constructor = j2, h2.render = D), C2 && C2.sub(h2), h2.props = b2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i3, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, j2.getDerivedStateFromProps(b2, h2.__s))), y2 = h2.props, v2 = h2.state, h2.__v = u2, p2) S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
6933
6968
  else {
6934
- if (C2 && null == F2.getDerivedStateFromProps && b2 !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b2, M2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b2, h2.__s, M2) || u2.__v == t2.__v)) {
6969
+ if (S2 && null == j2.getDerivedStateFromProps && b2 !== y2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b2, M2), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b2, h2.__s, M2) || u2.__v == t2.__v) {
6935
6970
  for (u2.__v != t2.__v && (h2.props = b2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
6936
6971
  n3 && (n3.__ = u2);
6937
- }), P2 = 0; P2 < h2._sb.length; P2++) h2.__h.push(h2._sb[P2]);
6972
+ }), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
6938
6973
  h2._sb = [], h2.__h.length && e2.push(h2);
6939
6974
  break n;
6940
6975
  }
6941
- null != h2.componentWillUpdate && h2.componentWillUpdate(b2, h2.__s, M2), C2 && null != h2.componentDidUpdate && h2.__h.push(function() {
6942
- h2.componentDidUpdate(v2, y2, g2);
6976
+ null != h2.componentWillUpdate && h2.componentWillUpdate(b2, h2.__s, M2), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
6977
+ h2.componentDidUpdate(y2, v2, _2);
6943
6978
  });
6944
6979
  }
6945
- if (h2.context = M2, h2.props = b2, h2.__P = n2, h2.__e = false, I2 = l.__r, A2 = 0, C2) {
6946
- for (h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
6980
+ if (h2.context = M2, h2.props = b2, h2.__P = n2, h2.__e = false, P2 = l.__r, A2 = 0, S2) {
6981
+ for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
6947
6982
  h2._sb = [];
6948
6983
  } else do {
6949
- h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
6984
+ h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
6950
6985
  } while (h2.__d && ++A2 < 25);
6951
- h2.state = h2.__s, null != h2.getChildContext && (i3 = w(w({}, i3), h2.getChildContext())), C2 && !p2 && null != h2.getSnapshotBeforeUpdate && (g2 = h2.getSnapshotBeforeUpdate(v2, y2)), f2 = $(n2, d(L2 = null != a2 && a2.type === k && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i3, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
6986
+ h2.state = h2.__s, null != h2.getChildContext && (i3 = d(d({}, i3), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(y2, v2)), L2 = a2, null != a2 && a2.type === k && null == a2.key && (L2 = N(a2.props.children)), f2 = I(n2, w(L2) ? L2 : [L2], u2, t2, i3, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
6952
6987
  } catch (n3) {
6953
6988
  if (u2.__v = null, c2 || null != o2) if (n3.then) {
6954
6989
  for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
6955
6990
  o2[o2.indexOf(f2)] = null, u2.__e = f2;
6956
- } else for (T2 = o2.length; T2--; ) _(o2[T2]);
6991
+ } else for (T2 = o2.length; T2--; ) g(o2[T2]);
6957
6992
  else u2.__e = t2.__e, u2.__k = t2.__k;
6958
6993
  l.__e(n3, u2, t2);
6959
6994
  }
6960
- else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = N(t2.__e, u2, t2, i3, r2, o2, e2, c2, s2);
6995
+ else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V(t2.__e, u2, t2, i3, r2, o2, e2, c2, s2);
6961
6996
  return (a2 = l.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
6962
6997
  }
6963
6998
  function z(n2, u2, t2) {
6964
- for (var i3 = 0; i3 < t2.length; i3++) V(t2[i3], t2[++i3], t2[++i3]);
6999
+ for (var i3 = 0; i3 < t2.length; i3++) q(t2[i3], t2[++i3], t2[++i3]);
6965
7000
  l.__c && l.__c(u2, n2), n2.some(function(u3) {
6966
7001
  try {
6967
7002
  n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
@@ -6972,11 +7007,14 @@ var init_wistia_player = __esm({
6972
7007
  }
6973
7008
  });
6974
7009
  }
6975
- function N(u2, t2, i3, r2, o2, e2, f2, c2, s2) {
6976
- var a2, h2, v2, y2, w2, g2, m2, b2 = i3.props, k2 = t2.props, x2 = t2.type;
7010
+ function N(n2) {
7011
+ return "object" != typeof n2 || null == n2 || n2.__b && n2.__b > 0 ? n2 : w(n2) ? n2.map(N) : d({}, n2);
7012
+ }
7013
+ function V(u2, t2, i3, r2, o2, e2, f2, c2, s2) {
7014
+ var a2, h2, y2, v2, d2, _2, m2, b2 = i3.props, k2 = t2.props, x2 = t2.type;
6977
7015
  if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
6978
- for (a2 = 0; a2 < e2.length; a2++) if ((w2 = e2[a2]) && "setAttribute" in w2 == !!x2 && (x2 ? w2.localName == x2 : 3 == w2.nodeType)) {
6979
- u2 = w2, e2[a2] = null;
7016
+ for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
7017
+ u2 = d2, e2[a2] = null;
6980
7018
  break;
6981
7019
  }
6982
7020
  }
@@ -6984,23 +7022,23 @@ var init_wistia_player = __esm({
6984
7022
  if (null == x2) return document.createTextNode(k2);
6985
7023
  u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l.__m && l.__m(t2, e2), c2 = false), e2 = null;
6986
7024
  }
6987
- if (null === x2) b2 === k2 || c2 && u2.data === k2 || (u2.data = k2);
7025
+ if (null == x2) b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
6988
7026
  else {
6989
- if (e2 = e2 && n.call(u2.childNodes), b2 = i3.props || p, !c2 && null != e2) for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++) b2[(w2 = u2.attributes[a2]).name] = w2.value;
6990
- for (a2 in b2) if (w2 = b2[a2], "children" == a2) ;
6991
- else if ("dangerouslySetInnerHTML" == a2) v2 = w2;
7027
+ if (e2 = e2 && n.call(u2.childNodes), b2 = i3.props || p, !c2 && null != e2) for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++) b2[(d2 = u2.attributes[a2]).name] = d2.value;
7028
+ for (a2 in b2) if (d2 = b2[a2], "children" == a2) ;
7029
+ else if ("dangerouslySetInnerHTML" == a2) y2 = d2;
6992
7030
  else if (!(a2 in k2)) {
6993
7031
  if ("value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2) continue;
6994
- F(u2, a2, null, w2, o2);
7032
+ j(u2, a2, null, d2, o2);
6995
7033
  }
6996
- for (a2 in k2) w2 = k2[a2], "children" == a2 ? y2 = w2 : "dangerouslySetInnerHTML" == a2 ? h2 = w2 : "value" == a2 ? g2 = w2 : "checked" == a2 ? m2 = w2 : c2 && "function" != typeof w2 || b2[a2] === w2 || F(u2, a2, w2, b2[a2], o2);
6997
- if (h2) c2 || v2 && (h2.__html === v2.__html || h2.__html === u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
6998
- else if (v2 && (u2.innerHTML = ""), $(u2, d(y2) ? y2 : [y2], t2, i3, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i3.__k && C(i3, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) _(e2[a2]);
6999
- c2 || (a2 = "value", "progress" == x2 && null == g2 ? u2.removeAttribute("value") : void 0 !== g2 && (g2 !== u2[a2] || "progress" == x2 && !g2 || "option" == x2 && g2 !== b2[a2]) && F(u2, a2, g2, b2[a2], o2), a2 = "checked", void 0 !== m2 && m2 !== u2[a2] && F(u2, a2, m2, b2[a2], o2));
7034
+ for (a2 in k2) d2 = k2[a2], "children" == a2 ? v2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b2[a2] === d2 || j(u2, a2, d2, b2[a2], o2);
7035
+ if (h2) c2 || y2 && (h2.__html == y2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
7036
+ else if (y2 && (u2.innerHTML = ""), I("template" == t2.type ? u2.content : u2, w(v2) ? v2 : [v2], t2, i3, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i3.__k && S(i3, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g(e2[a2]);
7037
+ c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b2[a2]) && j(u2, a2, _2, b2[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j(u2, a2, m2, b2[a2], o2));
7000
7038
  }
7001
7039
  return u2;
7002
7040
  }
7003
- function V(n2, u2, t2) {
7041
+ function q(n2, u2, t2) {
7004
7042
  try {
7005
7043
  if ("function" == typeof n2) {
7006
7044
  var i3 = "function" == typeof n2.__u;
@@ -7010,9 +7048,9 @@ var init_wistia_player = __esm({
7010
7048
  l.__e(n3, t2);
7011
7049
  }
7012
7050
  }
7013
- function q(n2, u2, t2) {
7051
+ function B(n2, u2, t2) {
7014
7052
  var i3, r2;
7015
- if (l.unmount && l.unmount(n2), (i3 = n2.ref) && (i3.current && i3.current !== n2.__e || V(i3, null, u2)), null != (i3 = n2.__c)) {
7053
+ if (l.unmount && l.unmount(n2), (i3 = n2.ref) && (i3.current && i3.current != n2.__e || q(i3, null, u2)), null != (i3 = n2.__c)) {
7016
7054
  if (i3.componentWillUnmount) try {
7017
7055
  i3.componentWillUnmount();
7018
7056
  } catch (n3) {
@@ -7020,48 +7058,48 @@ var init_wistia_player = __esm({
7020
7058
  }
7021
7059
  i3.base = i3.__P = null;
7022
7060
  }
7023
- if (i3 = n2.__k) for (r2 = 0; r2 < i3.length; r2++) i3[r2] && q(i3[r2], u2, t2 || "function" != typeof n2.type);
7024
- t2 || _(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
7061
+ if (i3 = n2.__k) for (r2 = 0; r2 < i3.length; r2++) i3[r2] && B(i3[r2], u2, t2 || "function" != typeof n2.type);
7062
+ t2 || g(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
7025
7063
  }
7026
- function B(n2, l2, u2) {
7064
+ function D(n2, l2, u2) {
7027
7065
  return this.constructor(n2, u2);
7028
7066
  }
7029
- function D(u2, t2, i3) {
7067
+ function E(u2, t2, i3) {
7030
7068
  var r2, o2, e2, f2;
7031
- t2 == document && (t2 = document.documentElement), l.__ && l.__(u2, t2), o2 = (r2 = "function" == typeof i3) ? null : i3 && i3.__k || t2.__k, e2 = [], f2 = [], j(t2, u2 = (!r2 && i3 || t2).__k = g(k, null, [u2]), o2 || p, p, t2.namespaceURI, !r2 && i3 ? [i3] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i3 ? i3 : o2 ? o2.__e : t2.firstChild, r2, f2), z(e2, u2, f2);
7069
+ t2 == document && (t2 = document.documentElement), l.__ && l.__(u2, t2), o2 = (r2 = "function" == typeof i3) ? null : i3 && i3.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i3 || t2).__k = _(k, null, [u2]), o2 || p, p, t2.namespaceURI, !r2 && i3 ? [i3] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i3 ? i3 : o2 ? o2.__e : t2.firstChild, r2, f2), z(e2, u2, f2);
7032
7070
  }
7033
- function E(n2, l2) {
7034
- D(n2, l2, E);
7071
+ function G(n2, l2) {
7072
+ E(n2, l2, G);
7035
7073
  }
7036
- function G(l2, u2, t2) {
7037
- var i3, r2, o2, e2, f2 = w({}, l2.props);
7038
- for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2) "key" == o2 ? i3 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && void 0 !== e2 ? e2[o2] : u2[o2];
7074
+ function J(l2, u2, t2) {
7075
+ var i3, r2, o2, e2, f2 = d({}, l2.props);
7076
+ for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2) "key" == o2 ? i3 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = null == u2[o2] && null != e2 ? e2[o2] : u2[o2];
7039
7077
  return arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), m(l2.type, f2, i3 || l2.key, r2 || l2.ref, null);
7040
7078
  }
7041
- function J(n2, l2) {
7042
- var u2 = { __c: l2 = "__cC" + h++, __: n2, Consumer: function(n3, l3) {
7043
- return n3.children(l3);
7044
- }, Provider: function(n3) {
7045
- var u3, t2;
7046
- return this.getChildContext || (u3 = /* @__PURE__ */ new Set(), (t2 = {})[l2] = this, this.getChildContext = function() {
7079
+ function K(n2) {
7080
+ function l2(n3) {
7081
+ var u2, t2;
7082
+ return this.getChildContext || (u2 = /* @__PURE__ */ new Set(), (t2 = {})[l2.__c] = this, this.getChildContext = function() {
7047
7083
  return t2;
7048
7084
  }, this.componentWillUnmount = function() {
7049
- u3 = null;
7085
+ u2 = null;
7050
7086
  }, this.shouldComponentUpdate = function(n4) {
7051
- this.props.value !== n4.value && u3.forEach(function(n5) {
7087
+ this.props.value != n4.value && u2.forEach(function(n5) {
7052
7088
  n5.__e = true, M(n5);
7053
7089
  });
7054
7090
  }, this.sub = function(n4) {
7055
- u3.add(n4);
7091
+ u2.add(n4);
7056
7092
  var l3 = n4.componentWillUnmount;
7057
7093
  n4.componentWillUnmount = function() {
7058
- u3 && u3.delete(n4), l3 && l3.call(n4);
7094
+ u2 && u2.delete(n4), l3 && l3.call(n4);
7059
7095
  };
7060
7096
  }), n3.children;
7061
- } };
7062
- return u2.Provider.__ = u2.Consumer.contextType = u2;
7097
+ }
7098
+ return l2.__c = "__cC" + h++, l2.__ = n2, l2.Provider = l2.__l = (l2.Consumer = function(n3, l3) {
7099
+ return n3.children(l3);
7100
+ }).contextType = l2, l2;
7063
7101
  }
7064
- n = v.slice, l = { __e: function(n2, l2, u2, t2) {
7102
+ n = y.slice, l = { __e: function(n2, l2, u2, t2) {
7065
7103
  for (var i3, r2, o2; l2 = l2.__; ) if ((i3 = l2.__c) && !i3.__) try {
7066
7104
  if ((r2 = i3.constructor) && null != r2.getDerivedStateFromError && (i3.setState(r2.getDerivedStateFromError(n2)), o2 = i3.__d), null != i3.componentDidCatch && (i3.componentDidCatch(n2, t2 || {}), o2 = i3.__d), o2) return i3.__E = i3;
7067
7105
  } catch (l3) {
@@ -7072,12 +7110,12 @@ var init_wistia_player = __esm({
7072
7110
  return null != n2 && null == n2.constructor;
7073
7111
  }, x.prototype.setState = function(n2, l2) {
7074
7112
  var u2;
7075
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = w({}, this.state), "function" == typeof n2 && (n2 = n2(w({}, u2), this.props)), n2 && w(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
7113
+ u2 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
7076
7114
  }, x.prototype.forceUpdate = function(n2) {
7077
7115
  this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
7078
7116
  }, x.prototype.render = k, i2 = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n2, l2) {
7079
7117
  return n2.__v.__b - l2.__v.__b;
7080
- }, P.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = O(false), a = O(true), h = 0;
7118
+ }, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(false), a = F(true), h = 0;
7081
7119
  }
7082
7120
  ),
7083
7121
  /***/
@@ -8690,7 +8728,7 @@ var init_wistia_player = __esm({
8690
8728
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8691
8729
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8692
8730
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8693
- var TAGGED_VERSION2 = "0.0.104";
8731
+ var TAGGED_VERSION2 = "0.0.105";
8694
8732
  var CURRENT_SHA2 = (
8695
8733
  /* unused pure expression or super */
8696
8734
  null
@@ -8711,7 +8749,8 @@ var init_wistia_player = __esm({
8711
8749
  var appHost = function appHost2() {
8712
8750
  return APP_WISTIA_COM;
8713
8751
  };
8714
- var cdnFastWistiaComHost = function cdnFastWistiaComHost2(embedHost) {
8752
+ var cdnFastWistiaComHost = function cdnFastWistiaComHost2() {
8753
+ var embedHost = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
8715
8754
  if (embedHost) {
8716
8755
  return embedHost;
8717
8756
  }
@@ -14064,6 +14103,7 @@ var init_wistia_player = __esm({
14064
14103
  return "https://".concat(fastHost, "/embed/medias/").concat(mediaId, "/swatch");
14065
14104
  };
14066
14105
  _api = /* @__PURE__ */ new WeakMap();
14106
+ _eventListeners = /* @__PURE__ */ new WeakMap();
14067
14107
  _fullscreenState = /* @__PURE__ */ new WeakMap();
14068
14108
  _impl = /* @__PURE__ */ new WeakMap();
14069
14109
  _internals = /* @__PURE__ */ new WeakMap();
@@ -14074,6 +14114,7 @@ var init_wistia_player = __esm({
14074
14114
  _playerData = /* @__PURE__ */ new WeakMap();
14075
14115
  _playerType = /* @__PURE__ */ new WeakMap();
14076
14116
  _removeEventListeners = /* @__PURE__ */ new WeakMap();
14117
+ _cachedRemapTime = /* @__PURE__ */ new WeakMap();
14077
14118
  _hasElementConnectedToDOM = /* @__PURE__ */ new WeakMap();
14078
14119
  _paddingTop = /* @__PURE__ */ new WeakMap();
14079
14120
  _playPending = /* @__PURE__ */ new WeakMap();
@@ -14092,6 +14133,7 @@ var init_wistia_player = __esm({
14092
14133
  _this2 = _callSuper(this, WistiaPlayer3);
14093
14134
  _classPrivateMethodInitSpec(_this2, _WistiaPlayer_brand);
14094
14135
  _classPrivateFieldInitSpec(_this2, _api, void 0);
14136
+ _classPrivateFieldInitSpec(_this2, _eventListeners, {});
14095
14137
  _classPrivateFieldInitSpec(_this2, _fullscreenState, {
14096
14138
  heightBeforeFullscreen: void 0,
14097
14139
  inFullscreen: false,
@@ -14107,6 +14149,7 @@ var init_wistia_player = __esm({
14107
14149
  _classPrivateFieldInitSpec(_this2, _playerData, void 0);
14108
14150
  _classPrivateFieldInitSpec(_this2, _playerType, void 0);
14109
14151
  _classPrivateFieldInitSpec(_this2, _removeEventListeners, []);
14152
+ _classPrivateFieldInitSpec(_this2, _cachedRemapTime, void 0);
14110
14153
  _classPrivateFieldInitSpec(_this2, _hasElementConnectedToDOM, false);
14111
14154
  _classPrivateFieldInitSpec(_this2, _paddingTop, "0px");
14112
14155
  _classPrivateFieldInitSpec(_this2, _playPending, false);
@@ -14121,6 +14164,7 @@ var init_wistia_player = __esm({
14121
14164
  _classPrivateFieldInitSpec(_this2, _handleBeforeReplace, function(event) {
14122
14165
  _this2.mediaId = event.detail.mediaId;
14123
14166
  _this2.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this2, _generateUniqueId).call(_this2, event.detail.mediaId);
14167
+ _classPrivateFieldSet(_cachedRemapTime, _this2, void 0);
14124
14168
  });
14125
14169
  _classPrivateFieldInitSpec(_this2, _handlePreloadThumbnailClick, function() {
14126
14170
  if (_classPrivateFieldGet(_playerType, _this2) !== "carouselHardWall" && _classPrivateFieldGet(_playerType, _this2) !== "notplayable" && _classPrivateFieldGet(_playerType, _this2) !== "passwordprotected") {
@@ -14539,7 +14583,11 @@ var init_wistia_player = __esm({
14539
14583
  }, {
14540
14584
  key: "language",
14541
14585
  get: function get() {
14542
- return _assertClassBrand(_WistiaPlayer_brand, this, _findLocalizationByLanguage).call(this, _classPrivateFieldGet(_playerData, this).mediaData.ietfLanguageTag);
14586
+ var _assertClassBrand$cal;
14587
+ if (_classPrivateFieldGet(_playerData, this).mediaData.ietfLanguageTag == null) {
14588
+ return _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
14589
+ }
14590
+ return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _findLocalizationByLanguage).call(this, _classPrivateFieldGet(_playerData, this).mediaData.ietfLanguageTag)) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
14543
14591
  },
14544
14592
  set: function set(language) {
14545
14593
  var localization = _assertClassBrand(_WistiaPlayer_brand, this, _findLocalizationByLanguage).call(this, language);
@@ -14567,7 +14615,11 @@ var init_wistia_player = __esm({
14567
14615
  key: "languages",
14568
14616
  get: function get() {
14569
14617
  var _classPrivateFieldGet27;
14570
- return (_classPrivateFieldGet27 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : [];
14618
+ var result = (_classPrivateFieldGet27 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : [];
14619
+ if (result.length === 0) {
14620
+ result.push(_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this));
14621
+ }
14622
+ return result;
14571
14623
  }
14572
14624
  /**
14573
14625
  * Returns all the mediaData set on the WistiaPlayer
@@ -15190,6 +15242,14 @@ var init_wistia_player = __esm({
15190
15242
  set: function set(silentAutoplayValue) {
15191
15243
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "silentAutoplay", silentAutoplayValue);
15192
15244
  }
15245
+ }, {
15246
+ key: "sourceLanguage",
15247
+ get: function get() {
15248
+ var _classPrivateFieldGet60;
15249
+ return (_classPrivateFieldGet60 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.find(function(loc) {
15250
+ return loc.sourceLanguage;
15251
+ });
15252
+ }
15193
15253
  /**
15194
15254
  * Returns the source media id for the player. If a player has different localized versions,
15195
15255
  * each will have a different mediaId, but the same sourceMediaId.
@@ -15208,8 +15268,8 @@ var init_wistia_player = __esm({
15208
15268
  }, {
15209
15269
  key: "state",
15210
15270
  get: function get() {
15211
- var _classPrivateFieldGet60, _classPrivateFieldGet61;
15212
- return (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.state()) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : defaultEmbedOptions.state;
15271
+ var _classPrivateFieldGet61, _classPrivateFieldGet62;
15272
+ return (_classPrivateFieldGet61 = (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.state()) !== null && _classPrivateFieldGet61 !== void 0 ? _classPrivateFieldGet61 : defaultEmbedOptions.state;
15213
15273
  }
15214
15274
  /**
15215
15275
  * Returns the stats url for the player.
@@ -15287,12 +15347,12 @@ var init_wistia_player = __esm({
15287
15347
  }, {
15288
15348
  key: "videoQuality",
15289
15349
  get: function get() {
15290
- var _ref12, _classPrivateFieldGet62, _classPrivateFieldGet63;
15291
- return (_ref12 = (_classPrivateFieldGet62 = (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.getVideoQuality()) !== null && _classPrivateFieldGet62 !== void 0 ? _classPrivateFieldGet62 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
15350
+ var _ref12, _classPrivateFieldGet63, _classPrivateFieldGet64;
15351
+ return (_ref12 = (_classPrivateFieldGet63 = (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.getVideoQuality()) !== null && _classPrivateFieldGet63 !== void 0 ? _classPrivateFieldGet63 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
15292
15352
  },
15293
15353
  set: function set(quality) {
15294
- var _classPrivateFieldGet64;
15295
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.setVideoQuality(quality);
15354
+ var _classPrivateFieldGet65;
15355
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setVideoQuality(quality);
15296
15356
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15297
15357
  }
15298
15358
  /**
@@ -15315,8 +15375,8 @@ var init_wistia_player = __esm({
15315
15375
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15316
15376
  },
15317
15377
  set: function set(level) {
15318
- var _classPrivateFieldGet65;
15319
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.volume(level);
15378
+ var _classPrivateFieldGet66;
15379
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.volume(level);
15320
15380
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15321
15381
  }
15322
15382
  /**
@@ -15331,8 +15391,8 @@ var init_wistia_player = __esm({
15331
15391
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15332
15392
  },
15333
15393
  set: function set(shouldDisplay) {
15334
- var _classPrivateFieldGet66;
15335
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.volumeControlEnabled(shouldDisplay);
15394
+ var _classPrivateFieldGet67;
15395
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.volumeControlEnabled(shouldDisplay);
15336
15396
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15337
15397
  }
15338
15398
  /**
@@ -15348,52 +15408,64 @@ var init_wistia_player = __esm({
15348
15408
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "wistiaPopover", shouldBePopover);
15349
15409
  }
15350
15410
  }, {
15351
- key: "cancelFullscreen",
15411
+ key: "addEventListener",
15352
15412
  value: (
15353
15413
  // --------------------------------------------------
15354
15414
  // Public api methods
15355
15415
  // --------------------------------------------------
15356
15416
  /**
15357
- * Attempt to enter fullscreen mode.
15358
- * @returns {Promise<void>}
15417
+ * Adds an event listener to the player.
15418
+ * @param {string} eventName - The name of the event to listen for.
15419
+ * @param {EventListenerOrEventListenerObject} listener - The function to call when the event occurs.
15420
+ * @param {AddEventListenerOptions | boolean} options - Additional options for the event listener.
15359
15421
  */
15360
- function() {
15361
- var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
15362
- var _classPrivateFieldGet67, _this3 = this;
15363
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15364
- while (1) switch (_context.prev = _context.next) {
15365
- case 0:
15366
- return _context.abrupt("return", (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.cancelFullscreen().then(function() {
15367
- _this3._fullscreenState.heightBeforeFullscreen = void 0;
15368
- _this3._fullscreenState.widthBeforeFullscreen = void 0;
15369
- }));
15370
- case 1:
15371
- case "end":
15372
- return _context.stop();
15373
- }
15374
- }, _callee, this);
15375
- }));
15376
- function cancelFullscreen() {
15377
- return _cancelFullscreen.apply(this, arguments);
15422
+ function addEventListener(eventName, listener, options) {
15423
+ if (!Array.isArray(_classPrivateFieldGet(_eventListeners, this)[eventName])) {
15424
+ _classPrivateFieldGet(_eventListeners, this)[eventName] = [];
15378
15425
  }
15379
- return cancelFullscreen;
15380
- }()
15426
+ _classPrivateFieldGet(_eventListeners, this)[eventName].push({
15427
+ listener,
15428
+ options
15429
+ });
15430
+ _superPropGet(WistiaPlayer3, "addEventListener", this, 3)([eventName, listener, options]);
15431
+ }
15381
15432
  )
15382
15433
  /**
15383
- * Creates an overlay with the specified name and options.
15384
- * @param {string} name - The name of the overlay.
15385
- * @param {OverlayOptions} options - The options for the overlay.
15386
- * @returns A promise that resolves when the overlay is created successfully, or rejects with an error if the overlay cannot be defined at this time.
15434
+ * Attempt to enter fullscreen mode.
15435
+ * @returns {Promise<void>}
15387
15436
  */
15437
+ }, {
15438
+ key: "cancelFullscreen",
15439
+ value: function() {
15440
+ var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
15441
+ var _classPrivateFieldGet68, _this3 = this;
15442
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
15443
+ while (1) switch (_context.prev = _context.next) {
15444
+ case 0:
15445
+ return _context.abrupt("return", (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.cancelFullscreen().then(function() {
15446
+ _this3._fullscreenState.heightBeforeFullscreen = void 0;
15447
+ _this3._fullscreenState.widthBeforeFullscreen = void 0;
15448
+ }));
15449
+ case 1:
15450
+ case "end":
15451
+ return _context.stop();
15452
+ }
15453
+ }, _callee, this);
15454
+ }));
15455
+ function cancelFullscreen() {
15456
+ return _cancelFullscreen.apply(this, arguments);
15457
+ }
15458
+ return cancelFullscreen;
15459
+ }()
15388
15460
  }, {
15389
15461
  key: "createOverlay",
15390
15462
  value: function() {
15391
15463
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
15392
- var _classPrivateFieldGet68;
15464
+ var _classPrivateFieldGet69;
15393
15465
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
15394
15466
  while (1) switch (_context2.prev = _context2.next) {
15395
15467
  case 0:
15396
- if (!((_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet68 !== void 0 && _classPrivateFieldGet68.defineOverlay)) {
15468
+ if (!((_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet69 !== void 0 && _classPrivateFieldGet69.defineOverlay)) {
15397
15469
  _context2.next = 2;
15398
15470
  break;
15399
15471
  }
@@ -15422,11 +15494,11 @@ var init_wistia_player = __esm({
15422
15494
  case 0:
15423
15495
  addPlugin = /* @__PURE__ */ function() {
15424
15496
  var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
15425
- var _classPrivateFieldGet69, _classPrivateFieldGet70;
15497
+ var _classPrivateFieldGet70, _classPrivateFieldGet71;
15426
15498
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
15427
15499
  while (1) switch (_context3.prev = _context3.next) {
15428
15500
  case 0:
15429
- return _context3.abrupt("return", (_classPrivateFieldGet69 = (_classPrivateFieldGet70 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.addPlugin(name, options)) !== null && _classPrivateFieldGet69 !== void 0 ? _classPrivateFieldGet69 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15501
+ return _context3.abrupt("return", (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.addPlugin(name, options)) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15430
15502
  case 1:
15431
15503
  case "end":
15432
15504
  return _context3.stop();
@@ -15472,11 +15544,11 @@ var init_wistia_player = __esm({
15472
15544
  key: "deleteOverlay",
15473
15545
  value: function() {
15474
15546
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
15475
- var _classPrivateFieldGet71;
15547
+ var _classPrivateFieldGet72;
15476
15548
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
15477
15549
  while (1) switch (_context5.prev = _context5.next) {
15478
15550
  case 0:
15479
- if (!((_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet71 !== void 0 && _classPrivateFieldGet71.undefineOverlay)) {
15551
+ if (!((_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet72 !== void 0 && _classPrivateFieldGet72.undefineOverlay)) {
15480
15552
  _context5.next = 2;
15481
15553
  break;
15482
15554
  }
@@ -15498,11 +15570,11 @@ var init_wistia_player = __esm({
15498
15570
  key: "disableControl",
15499
15571
  value: function() {
15500
15572
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
15501
- var _classPrivateFieldGet72;
15573
+ var _classPrivateFieldGet73;
15502
15574
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
15503
15575
  while (1) switch (_context6.prev = _context6.next) {
15504
15576
  case 0:
15505
- if (!((_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet72 !== void 0 && _classPrivateFieldGet72.setControlEnabled)) {
15577
+ if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.setControlEnabled)) {
15506
15578
  _context6.next = 2;
15507
15579
  break;
15508
15580
  }
@@ -15524,11 +15596,11 @@ var init_wistia_player = __esm({
15524
15596
  key: "enableControl",
15525
15597
  value: function() {
15526
15598
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
15527
- var _classPrivateFieldGet73;
15599
+ var _classPrivateFieldGet74;
15528
15600
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
15529
15601
  while (1) switch (_context7.prev = _context7.next) {
15530
15602
  case 0:
15531
- if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.setControlEnabled)) {
15603
+ if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.setControlEnabled)) {
15532
15604
  _context7.next = 2;
15533
15605
  break;
15534
15606
  }
@@ -15550,16 +15622,16 @@ var init_wistia_player = __esm({
15550
15622
  key: "enterInputContext",
15551
15623
  value: function() {
15552
15624
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(context) {
15553
- var _classPrivateFieldGet74, _this5 = this;
15625
+ var _classPrivateFieldGet75, _this5 = this;
15554
15626
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
15555
15627
  while (1) switch (_context8.prev = _context8.next) {
15556
15628
  case 0:
15557
- if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.enterInputContext)) {
15629
+ if (!((_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet75 !== void 0 && _classPrivateFieldGet75.enterInputContext)) {
15558
15630
  _context8.next = 2;
15559
15631
  break;
15560
15632
  }
15561
15633
  return _context8.abrupt("return", new Promise(function(resolve) {
15562
- var _classPrivateFieldGet75;
15634
+ var _classPrivateFieldGet76;
15563
15635
  var _handler = function handler(event) {
15564
15636
  var detail = event.detail;
15565
15637
  if (detail.context === context) {
@@ -15568,7 +15640,7 @@ var init_wistia_player = __esm({
15568
15640
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15569
15641
  };
15570
15642
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15571
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.enterInputContext(context);
15643
+ (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.enterInputContext(context);
15572
15644
  }));
15573
15645
  case 2:
15574
15646
  return _context8.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15587,11 +15659,11 @@ var init_wistia_player = __esm({
15587
15659
  key: "exitInputContext",
15588
15660
  value: function() {
15589
15661
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
15590
- var _classPrivateFieldGet76;
15662
+ var _classPrivateFieldGet77;
15591
15663
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
15592
15664
  while (1) switch (_context9.prev = _context9.next) {
15593
15665
  case 0:
15594
- if (!((_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76.exitInputContext)) {
15666
+ if (!((_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet77 !== void 0 && _classPrivateFieldGet77.exitInputContext)) {
15595
15667
  _context9.next = 2;
15596
15668
  break;
15597
15669
  }
@@ -15644,8 +15716,8 @@ var init_wistia_player = __esm({
15644
15716
  while (1) switch (_context11.prev = _context11.next) {
15645
15717
  case 0:
15646
15718
  return _context11.abrupt("return", new Promise(function(resolve, reject) {
15647
- var _classPrivateFieldGet77;
15648
- if ((_classPrivateFieldGet77 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet77 !== void 0 && _classPrivateFieldGet77.plugin(name)) {
15719
+ var _classPrivateFieldGet78;
15720
+ if ((_classPrivateFieldGet78 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.plugin(name)) {
15649
15721
  resolve(_classPrivateFieldGet(_api, _this6).plugin(name));
15650
15722
  }
15651
15723
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15662,26 +15734,84 @@ var init_wistia_player = __esm({
15662
15734
  return getPlugin;
15663
15735
  }()
15664
15736
  }, {
15665
- key: "hideOverlay",
15737
+ key: "getRemapTime",
15666
15738
  value: function() {
15667
- var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12(name) {
15668
- var _classPrivateFieldGet78;
15739
+ var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
15740
+ var _classPrivateFieldGet79, _this7 = this;
15669
15741
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
15670
15742
  while (1) switch (_context12.prev = _context12.next) {
15671
15743
  case 0:
15672
- if (!((_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.cancelOverlay)) {
15673
- _context12.next = 2;
15744
+ if (!(this.languages.length <= 1)) {
15745
+ _context12.next = 3;
15674
15746
  break;
15675
15747
  }
15676
- return _context12.abrupt("return", _classPrivateFieldGet(_impl, this).cancelOverlay(name));
15677
- case 2:
15678
- return _context12.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
15748
+ _classPrivateFieldSet(_cachedRemapTime, this, function(_fromLanguage, _toLanguage, fromTime) {
15749
+ return fromTime;
15750
+ });
15751
+ return _context12.abrupt("return", _classPrivateFieldGet(_cachedRemapTime, this));
15679
15752
  case 3:
15753
+ if (!((_classPrivateFieldGet79 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet79 !== void 0)) {
15754
+ _context12.next = 7;
15755
+ break;
15756
+ }
15757
+ _classPrivateFieldGet79;
15758
+ _context12.next = 14;
15759
+ break;
15760
+ case 7:
15761
+ _context12.t0 = _classPrivateFieldSet;
15762
+ _context12.t1 = _cachedRemapTime;
15763
+ _context12.t2 = this;
15764
+ _context12.next = 12;
15765
+ return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__.$)("assets/external/timeMapping.js").then(function(_ref14) {
15766
+ var remapTime = _ref14.remapTime;
15767
+ return function(fromLanguage, toLanguage, fromTime) {
15768
+ var fromTimeInMilliseconds = fromTime * 1e3;
15769
+ var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
15770
+ var sourceLocalization = _this7.sourceLanguage;
15771
+ var toLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, toLanguage);
15772
+ if (fromLocalization == null || toLocalization == null || sourceLocalization == null) {
15773
+ return fromTime;
15774
+ }
15775
+ return remapTime(sourceLocalization, fromLocalization, toLocalization, fromTimeInMilliseconds) / 1e3;
15776
+ };
15777
+ });
15778
+ case 12:
15779
+ _context12.t3 = _context12.sent;
15780
+ (0, _context12.t0)(_context12.t1, _context12.t2, _context12.t3);
15781
+ case 14:
15782
+ return _context12.abrupt("return", _classPrivateFieldGet(_cachedRemapTime, this));
15783
+ case 15:
15680
15784
  case "end":
15681
15785
  return _context12.stop();
15682
15786
  }
15683
15787
  }, _callee12, this);
15684
15788
  }));
15789
+ function getRemapTime() {
15790
+ return _getRemapTime.apply(this, arguments);
15791
+ }
15792
+ return getRemapTime;
15793
+ }()
15794
+ }, {
15795
+ key: "hideOverlay",
15796
+ value: function() {
15797
+ var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13(name) {
15798
+ var _classPrivateFieldGet80;
15799
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
15800
+ while (1) switch (_context13.prev = _context13.next) {
15801
+ case 0:
15802
+ if (!((_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet80 !== void 0 && _classPrivateFieldGet80.cancelOverlay)) {
15803
+ _context13.next = 2;
15804
+ break;
15805
+ }
15806
+ return _context13.abrupt("return", _classPrivateFieldGet(_impl, this).cancelOverlay(name));
15807
+ case 2:
15808
+ return _context13.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
15809
+ case 3:
15810
+ case "end":
15811
+ return _context13.stop();
15812
+ }
15813
+ }, _callee13, this);
15814
+ }));
15685
15815
  function hideOverlay(_x13) {
15686
15816
  return _hideOverlay.apply(this, arguments);
15687
15817
  }
@@ -15690,24 +15820,24 @@ var init_wistia_player = __esm({
15690
15820
  }, {
15691
15821
  key: "hidePopover",
15692
15822
  value: function() {
15693
- var _hidePopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13() {
15694
- var _this7 = this;
15695
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
15696
- while (1) switch (_context13.prev = _context13.next) {
15823
+ var _hidePopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14() {
15824
+ var _this8 = this;
15825
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
15826
+ while (1) switch (_context14.prev = _context14.next) {
15697
15827
  case 0:
15698
- return _context13.abrupt("return", new Promise(function(resolve, reject) {
15699
- var _classPrivateFieldGet79;
15700
- if ((_classPrivateFieldGet79 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet79 !== void 0 && _classPrivateFieldGet79.popover) {
15701
- _classPrivateFieldGet(_api, _this7).popover.hide();
15828
+ return _context14.abrupt("return", new Promise(function(resolve, reject) {
15829
+ var _classPrivateFieldGet81;
15830
+ if ((_classPrivateFieldGet81 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet81 !== void 0 && _classPrivateFieldGet81.popover) {
15831
+ _classPrivateFieldGet(_api, _this8).popover.hide();
15702
15832
  resolve();
15703
15833
  }
15704
15834
  reject(new Error("Popover cannot be accessed"));
15705
15835
  }));
15706
15836
  case 1:
15707
15837
  case "end":
15708
- return _context13.stop();
15838
+ return _context14.stop();
15709
15839
  }
15710
- }, _callee13);
15840
+ }, _callee14);
15711
15841
  }));
15712
15842
  function hidePopover() {
15713
15843
  return _hidePopover.apply(this, arguments);
@@ -15717,17 +15847,17 @@ var init_wistia_player = __esm({
15717
15847
  }, {
15718
15848
  key: "pause",
15719
15849
  value: function() {
15720
- var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14() {
15721
- var _classPrivateFieldGet80;
15722
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
15723
- while (1) switch (_context14.prev = _context14.next) {
15850
+ var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15() {
15851
+ var _classPrivateFieldGet82;
15852
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
15853
+ while (1) switch (_context15.prev = _context15.next) {
15724
15854
  case 0:
15725
- return _context14.abrupt("return", (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.pause());
15855
+ return _context15.abrupt("return", (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.pause());
15726
15856
  case 1:
15727
15857
  case "end":
15728
- return _context14.stop();
15858
+ return _context15.stop();
15729
15859
  }
15730
- }, _callee14, this);
15860
+ }, _callee15, this);
15731
15861
  }));
15732
15862
  function pause() {
15733
15863
  return _pause.apply(this, arguments);
@@ -15737,17 +15867,17 @@ var init_wistia_player = __esm({
15737
15867
  }, {
15738
15868
  key: "play",
15739
15869
  value: function() {
15740
- var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15() {
15741
- var _classPrivateFieldGet81;
15742
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
15743
- while (1) switch (_context15.prev = _context15.next) {
15870
+ var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
15871
+ var _classPrivateFieldGet83;
15872
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
15873
+ while (1) switch (_context16.prev = _context16.next) {
15744
15874
  case 0:
15745
- return _context15.abrupt("return", (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.play());
15875
+ return _context16.abrupt("return", (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.play());
15746
15876
  case 1:
15747
15877
  case "end":
15748
- return _context15.stop();
15878
+ return _context16.stop();
15749
15879
  }
15750
- }, _callee15, this);
15880
+ }, _callee16, this);
15751
15881
  }));
15752
15882
  function play() {
15753
15883
  return _play.apply(this, arguments);
@@ -15757,51 +15887,92 @@ var init_wistia_player = __esm({
15757
15887
  }, {
15758
15888
  key: "releaseControls",
15759
15889
  value: function() {
15760
- var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16(name) {
15761
- var _classPrivateFieldGet82;
15762
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
15763
- while (1) switch (_context16.prev = _context16.next) {
15890
+ var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
15891
+ var _classPrivateFieldGet84;
15892
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
15893
+ while (1) switch (_context17.prev = _context17.next) {
15764
15894
  case 0:
15765
- return _context16.abrupt("return", (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.releaseControls(name));
15895
+ return _context17.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.releaseControls(name));
15766
15896
  case 1:
15767
15897
  case "end":
15768
- return _context16.stop();
15898
+ return _context17.stop();
15769
15899
  }
15770
- }, _callee16, this);
15900
+ }, _callee17, this);
15771
15901
  }));
15772
15902
  function releaseControls(_x14) {
15773
15903
  return _releaseControls.apply(this, arguments);
15774
15904
  }
15775
15905
  return releaseControls;
15776
15906
  }()
15907
+ }, {
15908
+ key: "removeAllEventListeners",
15909
+ value: function removeAllEventListeners() {
15910
+ var _this9 = this;
15911
+ Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
15912
+ var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
15913
+ listeners.forEach(function(_ref17) {
15914
+ var listener = _ref17.listener, options = _ref17.options;
15915
+ _this9.removeEventListener(type, listener, options);
15916
+ });
15917
+ });
15918
+ }
15919
+ /**
15920
+ * Removes an event listener from the player.
15921
+ * @param {string} type - The type of event to remove.
15922
+ * @param {EventListenerOrEventListenerObject} listener - The function to remove.
15923
+ * @param {EventListenerOptions | boolean} options
15924
+ * @returns {void}
15925
+ */
15926
+ }, {
15927
+ key: "removeEventListener",
15928
+ value: function removeEventListener(type, listener, options) {
15929
+ var listeners = _classPrivateFieldGet(_eventListeners, this)[type];
15930
+ if (!Array.isArray(listeners)) return;
15931
+ var index = listeners.findIndex(function(entry) {
15932
+ return entry.listener === listener && JSON.stringify(entry.options) === JSON.stringify(options);
15933
+ });
15934
+ if (index !== -1) {
15935
+ _superPropGet(WistiaPlayer3, "removeEventListener", this, 3)([type, listener, options]);
15936
+ listeners.splice(index, 1);
15937
+ if (listeners.length === 0) {
15938
+ _classPrivateFieldGet(_eventListeners, this)[type] = [];
15939
+ }
15940
+ }
15941
+ }
15942
+ /**
15943
+ * Replaces the media and then resolves when the new media is ready to play
15944
+ * @param {string} mediaId
15945
+ * @param {EmbedOptions} options
15946
+ * @returns {Promise<void>}
15947
+ */
15777
15948
  }, {
15778
15949
  key: "replaceWithMedia",
15779
15950
  value: function() {
15780
- var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(mediaId) {
15781
- var _this8 = this;
15782
- var options, _args17 = arguments;
15783
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
15784
- while (1) switch (_context17.prev = _context17.next) {
15951
+ var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18(mediaId) {
15952
+ var _this10 = this;
15953
+ var options, _args18 = arguments;
15954
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
15955
+ while (1) switch (_context18.prev = _context18.next) {
15785
15956
  case 0:
15786
- options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
15787
- return _context17.abrupt("return", new Promise(function(resolve, reject) {
15788
- var _classPrivateFieldGet83;
15789
- if (!_classPrivateFieldGet(_api, _this8)) {
15957
+ options = _args18.length > 1 && _args18[1] !== void 0 ? _args18[1] : {};
15958
+ return _context18.abrupt("return", new Promise(function(resolve, reject) {
15959
+ var _classPrivateFieldGet85;
15960
+ if (!_classPrivateFieldGet(_api, _this10)) {
15790
15961
  reject(new Error("api not ready to replace"));
15791
15962
  }
15792
- (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, _this8));
15963
+ (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, _this10));
15793
15964
  var _handleAfterReplace2 = function handleAfterReplace() {
15794
- _this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15965
+ _this10.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15795
15966
  resolve();
15796
15967
  };
15797
- _this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15798
- (_classPrivateFieldGet83 = _classPrivateFieldGet(_api, _this8)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.replaceWith(mediaId, options);
15968
+ _this10.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15969
+ (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, _this10)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.replaceWith(mediaId, options);
15799
15970
  }));
15800
15971
  case 2:
15801
15972
  case "end":
15802
- return _context17.stop();
15973
+ return _context18.stop();
15803
15974
  }
15804
- }, _callee17);
15975
+ }, _callee18);
15805
15976
  }));
15806
15977
  function replaceWithMedia(_x15) {
15807
15978
  return _replaceWithMedia.apply(this, arguments);
@@ -15811,17 +15982,17 @@ var init_wistia_player = __esm({
15811
15982
  }, {
15812
15983
  key: "requestControls",
15813
15984
  value: function() {
15814
- var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18(name) {
15815
- var _classPrivateFieldGet84;
15816
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
15817
- while (1) switch (_context18.prev = _context18.next) {
15985
+ var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19(name) {
15986
+ var _classPrivateFieldGet86;
15987
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
15988
+ while (1) switch (_context19.prev = _context19.next) {
15818
15989
  case 0:
15819
- return _context18.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.requestControls(name));
15990
+ return _context19.abrupt("return", (_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.requestControls(name));
15820
15991
  case 1:
15821
15992
  case "end":
15822
- return _context18.stop();
15993
+ return _context19.stop();
15823
15994
  }
15824
- }, _callee18, this);
15995
+ }, _callee19, this);
15825
15996
  }));
15826
15997
  function requestControls(_x16) {
15827
15998
  return _requestControls.apply(this, arguments);
@@ -15831,23 +16002,23 @@ var init_wistia_player = __esm({
15831
16002
  }, {
15832
16003
  key: "requestFullscreen",
15833
16004
  value: function() {
15834
- var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19() {
15835
- var _classPrivateFieldGet85;
15836
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
15837
- while (1) switch (_context19.prev = _context19.next) {
16005
+ var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20() {
16006
+ var _classPrivateFieldGet87;
16007
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
16008
+ while (1) switch (_context20.prev = _context20.next) {
15838
16009
  case 0:
15839
- if (!((_classPrivateFieldGet85 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet85 !== void 0 && _classPrivateFieldGet85.requestFullscreen)) {
15840
- _context19.next = 2;
16010
+ if (!((_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet87 !== void 0 && _classPrivateFieldGet87.requestFullscreen)) {
16011
+ _context20.next = 2;
15841
16012
  break;
15842
16013
  }
15843
- return _context19.abrupt("return", _classPrivateFieldGet(_impl, this).requestFullscreen());
16014
+ return _context20.abrupt("return", _classPrivateFieldGet(_impl, this).requestFullscreen());
15844
16015
  case 2:
15845
- return _context19.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
16016
+ return _context20.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
15846
16017
  case 3:
15847
16018
  case "end":
15848
- return _context19.stop();
16019
+ return _context20.stop();
15849
16020
  }
15850
- }, _callee19, this);
16021
+ }, _callee20, this);
15851
16022
  }));
15852
16023
  function requestFullscreen() {
15853
16024
  return _requestFullscreen.apply(this, arguments);
@@ -15857,23 +16028,23 @@ var init_wistia_player = __esm({
15857
16028
  }, {
15858
16029
  key: "showOverlay",
15859
16030
  value: function() {
15860
- var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(name) {
15861
- var _classPrivateFieldGet86;
15862
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
15863
- while (1) switch (_context20.prev = _context20.next) {
16031
+ var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21(name) {
16032
+ var _classPrivateFieldGet88;
16033
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
16034
+ while (1) switch (_context21.prev = _context21.next) {
15864
16035
  case 0:
15865
- if (!((_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet86 !== void 0 && _classPrivateFieldGet86.requestOverlay)) {
15866
- _context20.next = 2;
16036
+ if (!((_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet88 !== void 0 && _classPrivateFieldGet88.requestOverlay)) {
16037
+ _context21.next = 2;
15867
16038
  break;
15868
16039
  }
15869
- return _context20.abrupt("return", _classPrivateFieldGet(_impl, this).requestOverlay(name));
16040
+ return _context21.abrupt("return", _classPrivateFieldGet(_impl, this).requestOverlay(name));
15870
16041
  case 2:
15871
- return _context20.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
16042
+ return _context21.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
15872
16043
  case 3:
15873
16044
  case "end":
15874
- return _context20.stop();
16045
+ return _context21.stop();
15875
16046
  }
15876
- }, _callee20, this);
16047
+ }, _callee21, this);
15877
16048
  }));
15878
16049
  function showOverlay(_x17) {
15879
16050
  return _showOverlay.apply(this, arguments);
@@ -15883,24 +16054,24 @@ var init_wistia_player = __esm({
15883
16054
  }, {
15884
16055
  key: "showPopover",
15885
16056
  value: function() {
15886
- var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21() {
15887
- var _this9 = this;
15888
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15889
- while (1) switch (_context21.prev = _context21.next) {
16057
+ var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22() {
16058
+ var _this11 = this;
16059
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
16060
+ while (1) switch (_context22.prev = _context22.next) {
15890
16061
  case 0:
15891
- return _context21.abrupt("return", new Promise(function(resolve, reject) {
15892
- var _classPrivateFieldGet87;
15893
- if ((_classPrivateFieldGet87 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet87 !== void 0 && _classPrivateFieldGet87.popover) {
15894
- _classPrivateFieldGet(_api, _this9).popover.show();
16062
+ return _context22.abrupt("return", new Promise(function(resolve, reject) {
16063
+ var _classPrivateFieldGet89;
16064
+ if ((_classPrivateFieldGet89 = _classPrivateFieldGet(_api, _this11)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.popover) {
16065
+ _classPrivateFieldGet(_api, _this11).popover.show();
15895
16066
  resolve();
15896
16067
  }
15897
16068
  reject(new Error("Popover cannot be accessed"));
15898
16069
  }));
15899
16070
  case 1:
15900
16071
  case "end":
15901
- return _context21.stop();
16072
+ return _context22.stop();
15902
16073
  }
15903
- }, _callee21);
16074
+ }, _callee22);
15904
16075
  }));
15905
16076
  function showPopover() {
15906
16077
  return _showPopover.apply(this, arguments);
@@ -15910,28 +16081,28 @@ var init_wistia_player = __esm({
15910
16081
  }, {
15911
16082
  key: "whenApiReady",
15912
16083
  value: function() {
15913
- var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22() {
15914
- var _this10 = this;
15915
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
15916
- while (1) switch (_context22.prev = _context22.next) {
16084
+ var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23() {
16085
+ var _this12 = this;
16086
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
16087
+ while (1) switch (_context23.prev = _context23.next) {
15917
16088
  case 0:
15918
- return _context22.abrupt("return", new Promise(function(resolve) {
15919
- if (_classPrivateFieldGet(_api, _this10)) {
15920
- _classPrivateFieldGet(_api, _this10).ready(function() {
16089
+ return _context23.abrupt("return", new Promise(function(resolve) {
16090
+ if (_classPrivateFieldGet(_api, _this12)) {
16091
+ _classPrivateFieldGet(_api, _this12).ready(function() {
15921
16092
  resolve();
15922
16093
  });
15923
16094
  }
15924
16095
  var _handler2 = function handler() {
15925
- _this10.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, _handler2);
16096
+ _this12.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, _handler2);
15926
16097
  resolve();
15927
16098
  };
15928
- _this10.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, _handler2);
16099
+ _this12.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, _handler2);
15929
16100
  }));
15930
16101
  case 1:
15931
16102
  case "end":
15932
- return _context22.stop();
16103
+ return _context23.stop();
15933
16104
  }
15934
- }, _callee22);
16105
+ }, _callee23);
15935
16106
  }));
15936
16107
  function whenApiReady() {
15937
16108
  return _whenApiReady.apply(this, arguments);
@@ -15941,31 +16112,31 @@ var init_wistia_player = __esm({
15941
16112
  }, {
15942
16113
  key: "whenControlMounted",
15943
16114
  value: function() {
15944
- var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(handle) {
15945
- var _classPrivateFieldGet88;
16115
+ var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24(handle) {
16116
+ var _classPrivateFieldGet90;
15946
16117
  var control;
15947
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
15948
- while (1) switch (_context23.prev = _context23.next) {
16118
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
16119
+ while (1) switch (_context24.prev = _context24.next) {
15949
16120
  case 0:
15950
- _context23.next = 2;
16121
+ _context24.next = 2;
15951
16122
  return this.whenApiReady();
15952
16123
  case 2:
15953
- _context23.next = 4;
15954
- return (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.whenControlMounted(handle);
16124
+ _context24.next = 4;
16125
+ return (_classPrivateFieldGet90 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.whenControlMounted(handle);
15955
16126
  case 4:
15956
- control = _context23.sent;
16127
+ control = _context24.sent;
15957
16128
  if (control) {
15958
- _context23.next = 7;
16129
+ _context24.next = 7;
15959
16130
  break;
15960
16131
  }
15961
16132
  throw new Error("Control not found");
15962
16133
  case 7:
15963
- return _context23.abrupt("return", control);
16134
+ return _context24.abrupt("return", control);
15964
16135
  case 8:
15965
16136
  case "end":
15966
- return _context23.stop();
16137
+ return _context24.stop();
15967
16138
  }
15968
- }, _callee23, this);
16139
+ }, _callee24, this);
15969
16140
  }));
15970
16141
  function whenControlMounted(_x18) {
15971
16142
  return _whenControlMounted.apply(this, arguments);
@@ -16012,7 +16183,7 @@ var init_wistia_player = __esm({
16012
16183
  }, {
16013
16184
  key: "connectedCallback",
16014
16185
  value: function connectedCallback() {
16015
- var _window$wistiaOptions, _this11 = this, _this$embedHost;
16186
+ var _window$wistiaOptions, _this13 = this, _this$embedHost;
16016
16187
  if (_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
16017
16188
  return;
16018
16189
  }
@@ -16040,7 +16211,7 @@ var init_wistia_player = __esm({
16040
16211
  _assertClassBrand(_WistiaPlayer_brand, this, _runMethodsFromAttributes).call(this);
16041
16212
  _assertClassBrand(_WistiaPlayer_brand, this, _saveInitialAttributesFromDomOptions).call(this);
16042
16213
  var resizeCallback = function resizeCallback2() {
16043
- _assertClassBrand(_WistiaPlayer_brand, _this11, _renderPreloadThumbnail).call(_this11);
16214
+ _assertClassBrand(_WistiaPlayer_brand, _this13, _renderPreloadThumbnail).call(_this13);
16044
16215
  };
16045
16216
  _classPrivateFieldSet(_resizeObserver, this, new ResizeObserver(resizeCallback));
16046
16217
  _classPrivateFieldGet(_resizeObserver, this).observe(this);
@@ -16055,16 +16226,16 @@ var init_wistia_player = __esm({
16055
16226
  return;
16056
16227
  }
16057
16228
  var mediaData = mediaDataOrError;
16058
- _this11.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId : "";
16059
- _classPrivateFieldGet(_playerData, _this11).setMediaDataSource(mediaData);
16060
- _this11.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, {
16229
+ _this13.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId : "";
16230
+ _classPrivateFieldGet(_playerData, _this13).setMediaDataSource(mediaData);
16231
+ _this13.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, {
16061
16232
  detail: {
16062
- mediaData: _classPrivateFieldGet(_playerData, _this11).mediaData
16233
+ mediaData: _classPrivateFieldGet(_playerData, _this13).mediaData
16063
16234
  }
16064
16235
  }));
16065
- _assertClassBrand(_WistiaPlayer_brand, _this11, _initPlayerEmbed).call(_this11, {
16066
- container: _this11.uniqueId,
16067
- mediaData: _classPrivateFieldGet(_playerData, _this11).mediaData
16236
+ _assertClassBrand(_WistiaPlayer_brand, _this13, _initPlayerEmbed).call(_this13, {
16237
+ container: _this13.uniqueId,
16238
+ mediaData: _classPrivateFieldGet(_playerData, _this13).mediaData
16068
16239
  });
16069
16240
  }).catch(function(error) {
16070
16241
  (0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_16__.WO)("player/failure/init-failed");
@@ -16084,16 +16255,18 @@ var init_wistia_player = __esm({
16084
16255
  }, {
16085
16256
  key: "disconnectedCallback",
16086
16257
  value: function disconnectedCallback() {
16087
- var _classPrivateFieldGet89, _classPrivateFieldGet90, _this$shadowRoot;
16258
+ var _classPrivateFieldGet91, _classPrivateFieldGet92, _this$shadowRoot;
16088
16259
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16089
16260
  return removeListener();
16090
16261
  });
16262
+ this.removeAllEventListeners();
16263
+ _classPrivateFieldSet(_eventListeners, this, {});
16091
16264
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16092
16265
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__.s3)(this.mediaId);
16093
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.disconnect();
16266
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.disconnect();
16094
16267
  _classPrivateFieldSet(_resizeObserver, this, null);
16095
16268
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16096
- (_classPrivateFieldGet90 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.remove();
16269
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.remove();
16097
16270
  _classPrivateFieldSet(_api, this, null);
16098
16271
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16099
16272
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16103,12 +16276,6 @@ var init_wistia_player = __esm({
16103
16276
  // --------------------------------------------------
16104
16277
  // Private methods
16105
16278
  // --------------------------------------------------
16106
- /**
16107
- * Should the player defer fetching media data to a carousel embed?
16108
- * Look for a connected carousel embed that is not inside a playlist embed.
16109
- * If one is found, return true.
16110
- * @returns {boolean}
16111
- */
16112
16279
  }], [{
16113
16280
  key: "observedAttributes",
16114
16281
  get: function get() {
@@ -16118,51 +16285,51 @@ var init_wistia_player = __esm({
16118
16285
  }(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
16119
16286
  _WistiaPlayer = WistiaPlayer;
16120
16287
  getSwatchMetaData2 = /* @__PURE__ */ function() {
16121
- var _ref14 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24(url) {
16288
+ var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(url) {
16122
16289
  var swatch;
16123
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
16124
- while (1) switch (_context24.prev = _context24.next) {
16290
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
16291
+ while (1) switch (_context25.prev = _context25.next) {
16125
16292
  case 0:
16126
16293
  swatch = new Image();
16127
16294
  swatch.src = url;
16128
- _context24.next = 4;
16295
+ _context25.next = 4;
16129
16296
  return swatch.decode();
16130
16297
  case 4:
16131
- return _context24.abrupt("return", swatch);
16298
+ return _context25.abrupt("return", swatch);
16132
16299
  case 5:
16133
16300
  case "end":
16134
- return _context24.stop();
16301
+ return _context25.stop();
16135
16302
  }
16136
- }, _callee24);
16303
+ }, _callee25);
16137
16304
  }));
16138
16305
  return function getSwatchMetaData3(_x19) {
16139
- return _ref14.apply(this, arguments);
16306
+ return _ref18.apply(this, arguments);
16140
16307
  };
16141
16308
  }();
16142
16309
  wistiaSwatchElement = /* @__PURE__ */ function() {
16143
- var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(mediaId, embedHost) {
16310
+ var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee26(mediaId, embedHost) {
16144
16311
  var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
16145
- return _regeneratorRuntime().wrap(function _callee25$(_context25) {
16146
- while (1) switch (_context25.prev = _context25.next) {
16312
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
16313
+ while (1) switch (_context26.prev = _context26.next) {
16147
16314
  case 0:
16148
16315
  swatchUrl2 = getSwatchUrl(mediaId, embedHost);
16149
- _context25.next = 3;
16316
+ _context26.next = 3;
16150
16317
  return getSwatchMetaData2(swatchUrl2);
16151
16318
  case 3:
16152
- swatchImg = _context25.sent;
16319
+ swatchImg = _context26.sent;
16153
16320
  naturalHeight = swatchImg.naturalHeight, naturalWidth = swatchImg.naturalWidth;
16154
16321
  ratio = naturalHeight / naturalWidth * 100;
16155
16322
  style = document.createElement("style");
16156
16323
  style.innerHTML = "\n wistia-player[media-id='".concat(mediaId, "']:not(:defined) {\n padding: ").concat(ratio, "% 0 0 0;\n background: url(").concat(swatchUrl2, ");\n background-size: contain;\n filter: blur(5px);\n display: block;\n }\n ");
16157
- return _context25.abrupt("return", style);
16324
+ return _context26.abrupt("return", style);
16158
16325
  case 9:
16159
16326
  case "end":
16160
- return _context25.stop();
16327
+ return _context26.stop();
16161
16328
  }
16162
- }, _callee25);
16329
+ }, _callee26);
16163
16330
  }));
16164
16331
  return function wistiaSwatchElement2(_x20, _x21) {
16165
- return _ref15.apply(this, arguments);
16332
+ return _ref19.apply(this, arguments);
16166
16333
  };
16167
16334
  }();
16168
16335
  if (customElements.get("wistia-player") === void 0) {