@beyondwords/player 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es.js CHANGED
@@ -45,7 +45,7 @@ var Ri = (t, e, i) => new Promise((n, o) => {
45
45
  }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(s, l);
46
46
  a((i = i.apply(t, e)).next());
47
47
  });
48
- /*! version:"0.2.7" */
48
+ /*! version:"0.2.9" */
49
49
  function Q() {
50
50
  }
51
51
  const Zu = (t) => t;
@@ -60,7 +60,7 @@ function Ku(t, e) {
60
60
  function cr(t) {
61
61
  return t();
62
62
  }
63
- function jl() {
63
+ function zl() {
64
64
  return /* @__PURE__ */ Object.create(null);
65
65
  }
66
66
  function ft(t) {
@@ -118,7 +118,7 @@ function $n(t) {
118
118
  }
119
119
  return -1;
120
120
  }
121
- function zl(t) {
121
+ function jl(t) {
122
122
  return t == null ? "" : t;
123
123
  }
124
124
  function Ll(t) {
@@ -314,21 +314,21 @@ function ve(t) {
314
314
  el.push(t);
315
315
  }
316
316
  const Fs = /* @__PURE__ */ new Set();
317
- let zn = 0;
317
+ let jn = 0;
318
318
  function d() {
319
- if (zn !== 0)
319
+ if (jn !== 0)
320
320
  return;
321
321
  const t = mo;
322
322
  do {
323
323
  try {
324
- for (; zn < Nn.length; ) {
325
- const e = Nn[zn];
326
- zn++, uo(e), rc(e.$$);
324
+ for (; jn < Nn.length; ) {
325
+ const e = Nn[jn];
326
+ jn++, uo(e), rc(e.$$);
327
327
  }
328
328
  } catch (e) {
329
- throw Nn.length = 0, zn = 0, e;
329
+ throw Nn.length = 0, jn = 0, e;
330
330
  }
331
- for (uo(null), Nn.length = 0, zn = 0; oe.length; )
331
+ for (uo(null), Nn.length = 0, jn = 0; oe.length; )
332
332
  oe.pop()();
333
333
  for (let e = 0; e < Yn.length; e += 1) {
334
334
  const i = Yn[e];
@@ -376,7 +376,7 @@ function Ue() {
376
376
  function I(t, e) {
377
377
  t && t.i && (is.delete(t), t.i(e));
378
378
  }
379
- function z(t, e, i, n) {
379
+ function j(t, e, i, n) {
380
380
  if (t && t.o) {
381
381
  if (is.has(t))
382
382
  return;
@@ -454,7 +454,7 @@ function $t(t) {
454
454
  return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
455
455
  }
456
456
  function gc(t, e) {
457
- z(t, 1, 1, () => {
457
+ j(t, 1, 1, () => {
458
458
  e.delete(t.key);
459
459
  });
460
460
  }
@@ -516,7 +516,7 @@ function we(t, e, i, n, o, s, l = null, a = [-1]) {
516
516
  props: s,
517
517
  update: Q,
518
518
  not_equal: o,
519
- bound: jl(),
519
+ bound: zl(),
520
520
  // lifecycle
521
521
  on_mount: [],
522
522
  on_destroy: [],
@@ -525,7 +525,7 @@ function we(t, e, i, n, o, s, l = null, a = [-1]) {
525
525
  after_update: [],
526
526
  context: new Map(e.context || (r ? r.$$.context : [])),
527
527
  // everything else
528
- callbacks: jl(),
528
+ callbacks: zl(),
529
529
  dirty: a,
530
530
  skip_bound: !1,
531
531
  root: e.target || r.$$.root
@@ -593,7 +593,7 @@ class Te {
593
593
  }
594
594
  const hc = "4";
595
595
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hc);
596
- const _c = "@beyondwords/player", co = "0.2.7", wi = (t, e) => {
596
+ const _c = "@beyondwords/player", co = "0.2.9", wi = (t, e) => {
597
597
  t = [t].flat().join(`
598
598
  `);
599
599
  let i = `${_c}:
@@ -713,15 +713,15 @@ const Tl = ["user", "media", "browser", "media-session-api", "google-ima-sdk"],
713
713
  r: 2,
714
714
  l: 1
715
715
  }, Rl = {
716
- nonPersonalizedDaisybit: "CP-p84AP-p84AAAAAAENDgCAAEIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE",
717
- personalizedDaisybit: "CP-p84AP-p84AAAAAAENDgCAAHIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE"
716
+ nonPersonalizedDaisybit: "CP_UzEAP_UzEAAAAAAENDgCAAEIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE",
717
+ personalizedDaisybit: "CP_UzEAP_UzEAAAAAAENDgCAAHIAAAAAAAAAg1NX_H__bW9r8X7_aft0eY1P9_j77sQxBhfJE-4F3LvW_JwXx2E5NF36tqoKmRoEu3ZBIUNlHJHUTVmwaogVryHsakWcoTNKJ6BkkFMRM2dYCF5vm4tjeQKY5_p_d3fx2D-t_dv839zzz8VHn3e5fue0-PCdU5-9Dfn9fRfb-9IP9_78v8v8_l_rk2_eT13_pcvr_D--f_87_XW-9_cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA.Ig1NX_H__bX9v-X7_6ft0eY1f9_j77sQxBhfJs-4F3LvW_JwX32E7NF36tq4KmRoEu3ZBIUNtHJnUTVmxaogVrzHsakWcoTNKJ-BkkHMRe2dYCF5vm4tjeQKZ5_p_d3f52T_9_dv-39zz39Vnv3e9fuf1-Pjde5_9H_v_fRfb-_If9_7-_8v8_t_rk2_eT1__9evv__--________9_8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAE"
718
718
  }, Mc = (t, e, i, n, o, s, l, a, r, u, c, g) => {
719
719
  const f = window.location.hostname === "localhost";
720
- return Ec(t) ? jc(f, i, g) : br(t) ? zc(f, t, e, i, n, o, s, l, a, r, u, c) : {};
721
- }, Ec = (t) => t == null ? void 0 : t.includes("pubads.g.doubleclick.net"), br = (t) => t == null ? void 0 : t.includes("geo.ads.audio.thisisdax.com"), jc = (t, e, i) => {
720
+ return Ec(t) ? zc(f, i, g) : br(t) ? jc(f, t, e, i, n, o, s, l, a, r, u, c) : {};
721
+ }, Ec = (t) => t == null ? void 0 : t.includes("pubads.g.doubleclick.net"), br = (t) => t == null ? void 0 : t.includes("geo.ads.audio.thisisdax.com"), zc = (t, e, i) => {
722
722
  const n = {};
723
723
  return n.vad_type = "linear", n.npa = e !== "personalized" ? 1 : 0, n.tfua = e === "under-the-age-of-consent" ? 1 : 0, n.ad_type = i ? "audio_video" : "audio", t && (n.url || (n.url = "https://googleads.github.io")), t && (n.description_url || (n.description_url = "https://googleads.github.io")), t || (n.description_url = window.location.href), n;
724
- }, zc = (t, e, i, n, o, s, l, a, r, u, c, g) => {
724
+ }, jc = (t, e, i, n, o, s, l, a, r, u, c, g) => {
725
725
  var _, k;
726
726
  const f = {};
727
727
  e != null && e.includes("cid=") || console.warn("BeyondWords.Player: The DAX VAST URL does not contain the 'cid' parameter."), window.daxListenerId && (f.dax_listenerid = window.daxListenerId), n === "personalized" ? f.gdpr_consent = Rl.personalizedDaisybit : f.gdpr_consent = Rl.nonPersonalizedDaisybit, f.att = 0, c && (f.idfv = c);
@@ -772,29 +772,29 @@ function Fc(t, e, i) {
772
772
  let n, o, { vastUrl: s } = e, { preloading: l } = e, { placement: a } = e, { advertConsent: r } = e, { maxImageSize: u } = e, { projectId: c } = e, { playlistId: g } = e, { contentId: f } = e, { contentLanguage: A } = e, { platform: _ } = e, { vendorIdentifier: k } = e, { bundleIdentifier: w } = e, { video: T } = e, { playbackState: v } = e, { duration: p } = e, { currentTime: L } = e, { onEvent: D = () => {
773
773
  } } = e, S, P, Y, q, N, X, te;
774
774
  const se = () => {
775
- P = new google.ima.AdDisplayContainer(S, T), Y = new google.ima.AdsLoader(P), Y.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, $, !1), Y.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C, !1), q = new google.ima.AdsRequest(), q.adTagUrl = o, q.linearAdSlotWidth = T.clientWidth, q.linearAdSlotHeight = T.clientHeight, Y.requestAds(q);
776
- }, $ = (j) => {
775
+ google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0), P = new google.ima.AdDisplayContainer(S, T), Y = new google.ima.AdsLoader(P), Y.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, $, !1), Y.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C, !1), q = new google.ima.AdsRequest(), q.adTagUrl = o, q.linearAdSlotWidth = T.clientWidth, q.linearAdSlotHeight = T.clientHeight, Y.requestAds(q);
776
+ }, $ = (z) => {
777
777
  const Ae = new google.ima.AdsRenderingSettings();
778
- Ae.enablePreloading = !0, i(20, N = j.getAdsManager(T, Ae)), N.addEventListener(google.ima.AdEvent.Type.STARTED, de), N.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS, he), N.addEventListener(google.ima.AdEvent.Type.CLICK, _e), N.addEventListener(google.ima.AdEvent.Type.PAUSED, ae), N.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, b), N.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C);
778
+ Ae.enablePreloading = !0, i(20, N = z.getAdsManager(T, Ae)), N.addEventListener(google.ima.AdEvent.Type.STARTED, de), N.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS, he), N.addEventListener(google.ima.AdEvent.Type.CLICK, _e), N.addEventListener(google.ima.AdEvent.Type.PAUSED, ae), N.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, b), N.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, C);
779
779
  }, ee = () => {
780
780
  if (!X) {
781
781
  X = !0, T.pause(), T.load(), P.initialize();
782
782
  try {
783
783
  N.init(T.clientWidth, T.clientHeight, google.ima.ViewMode.NORMAL), N.start(), x(), We();
784
- } catch (j) {
785
- C(null, j);
784
+ } catch (z) {
785
+ C(null, z);
786
786
  }
787
787
  }
788
- }, de = (j) => {
788
+ }, de = (z) => {
789
789
  var Pe, qe;
790
790
  const Ae = new google.ima.CompanionAdSelectionSettings();
791
791
  Ae.resourceType = google.ima.CompanionAdSelectionSettings.ResourceType.STATIC, Ae.creativeType = google.ima.CompanionAdSelectionSettings.CreativeType.IMAGE, Ae.sizeCriteria = google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE;
792
- const Ye = (Pe = j.getAd().getCompanionAds(0, 0, Ae)[0]) == null ? void 0 : Pe.data;
792
+ const Ye = (Pe = z.getAd().getCompanionAds(0, 0, Ae)[0]) == null ? void 0 : Pe.data;
793
793
  if (!Ye)
794
794
  return;
795
- const je = document.createElement("div");
796
- je.innerHTML = Ye.content;
797
- const Ze = (qe = je.firstChild) == null ? void 0 : qe.getAttribute("href"), Ge = Ye.resourceValue;
795
+ const ze = document.createElement("div");
796
+ ze.innerHTML = Ye.content;
797
+ const Ze = (qe = ze.firstChild) == null ? void 0 : qe.getAttribute("href"), Ge = Ye.resourceValue;
798
798
  D(ye({
799
799
  type: "CompanionAdvertChanged",
800
800
  description: "The companion advert associated with the VAST advert changed.",
@@ -802,8 +802,8 @@ function Fc(t, e, i) {
802
802
  clickThroughUrl: Ze,
803
803
  imageUrl: Ge
804
804
  }));
805
- }, he = (j) => {
806
- te = j.getAdData(), te.updatedAt = Date.now(), te.minDuration = re(te), D(ye({
805
+ }, he = (z) => {
806
+ te = z.getAdData(), te.updatedAt = Date.now(), te.minDuration = re(te), D(ye({
807
807
  type: "CurrentTimeUpdated",
808
808
  description: "The media's current time was updated.",
809
809
  initiatedBy: "media"
@@ -812,8 +812,8 @@ function Fc(t, e, i) {
812
812
  description: "The media's duration was updated.",
813
813
  initiatedBy: "google-ima-sdk"
814
814
  })));
815
- }, re = ({ duration: j, adBreakDuration: Ae }) => {
816
- const Oe = Math.min(j || 1 / 0, Ae || 1 / 0);
815
+ }, re = ({ duration: z, adBreakDuration: Ae }) => {
816
+ const Oe = Math.min(z || 1 / 0, Ae || 1 / 0);
817
817
  return Oe === 1 / 0 ? 0 : Oe;
818
818
  }, _e = () => {
819
819
  D(ye({
@@ -839,8 +839,8 @@ function Fc(t, e, i) {
839
839
  clickThroughUrl: null,
840
840
  imageUrl: null
841
841
  }));
842
- }, C = (j, Ae) => {
843
- Ae = Ae || j.getError(), N == null || N.destroy(), D(ye({
842
+ }, C = (z, Ae) => {
843
+ Ae = Ae || z.getError(), N == null || N.destroy(), D(ye({
844
844
  type: "PlaybackErrored",
845
845
  description: "The media failed to play.",
846
846
  initiatedBy: "google-ima-sdk",
@@ -860,11 +860,11 @@ function Fc(t, e, i) {
860
860
  errorMessage: "The ima3.js script was blocked."
861
861
  }));
862
862
  }, x = () => {
863
- const j = document.createTreeWalker(S);
863
+ const z = document.createTreeWalker(S);
864
864
  let Ae;
865
- for (; Ae = j.nextNode(); ) {
866
- const Oe = /;(?!([^()]*\([^()]*\))*[^()]*\))/, je = Ae.style.cssText.split(Oe).filter((Ze) => Ze).map((Ze) => Ze.includes("!important") ? Ze : `${Ze} !important`);
867
- Ae.style.cssText = je.join(";");
865
+ for (; Ae = z.nextNode(); ) {
866
+ const Oe = /;(?!([^()]*\([^()]*\))*[^()]*\))/, ze = Ae.style.cssText.split(Oe).filter((Ze) => Ze).map((Ze) => Ze.includes("!important") ? Ze : `${Ze} !important`);
867
+ Ae.style.cssText = ze.join(";");
868
868
  }
869
869
  }, We = () => {
870
870
  S && (i(5, L = Ee()), N.resize(T.clientWidth, T.clientHeight, google.ima.ViewMode.NORMAL), requestAnimationFrame(We));
@@ -872,18 +872,18 @@ function Fc(t, e, i) {
872
872
  if (!te)
873
873
  return 0;
874
874
  if (v === "playing") {
875
- const j = (Date.now() - te.updatedAt) / 1e3;
876
- return te.currentTime + j;
875
+ const z = (Date.now() - te.updatedAt) / 1e3;
876
+ return te.currentTime + z;
877
877
  } else
878
878
  return te.updatedAt = Date.now(), L;
879
879
  };
880
- function Je(j) {
881
- oe[j ? "unshift" : "push"](() => {
882
- S = j, i(0, S);
880
+ function Je(z) {
881
+ oe[z ? "unshift" : "push"](() => {
882
+ S = z, i(0, S);
883
883
  });
884
884
  }
885
- return t.$$set = (j) => {
886
- "vastUrl" in j && i(6, s = j.vastUrl), "preloading" in j && i(7, l = j.preloading), "placement" in j && i(8, a = j.placement), "advertConsent" in j && i(9, r = j.advertConsent), "maxImageSize" in j && i(10, u = j.maxImageSize), "projectId" in j && i(11, c = j.projectId), "playlistId" in j && i(12, g = j.playlistId), "contentId" in j && i(13, f = j.contentId), "contentLanguage" in j && i(14, A = j.contentLanguage), "platform" in j && i(15, _ = j.platform), "vendorIdentifier" in j && i(16, k = j.vendorIdentifier), "bundleIdentifier" in j && i(17, w = j.bundleIdentifier), "video" in j && i(18, T = j.video), "playbackState" in j && i(3, v = j.playbackState), "duration" in j && i(4, p = j.duration), "currentTime" in j && i(5, L = j.currentTime), "onEvent" in j && i(19, D = j.onEvent);
885
+ return t.$$set = (z) => {
886
+ "vastUrl" in z && i(6, s = z.vastUrl), "preloading" in z && i(7, l = z.preloading), "placement" in z && i(8, a = z.placement), "advertConsent" in z && i(9, r = z.advertConsent), "maxImageSize" in z && i(10, u = z.maxImageSize), "projectId" in z && i(11, c = z.projectId), "playlistId" in z && i(12, g = z.playlistId), "contentId" in z && i(13, f = z.contentId), "contentLanguage" in z && i(14, A = z.contentLanguage), "platform" in z && i(15, _ = z.platform), "vendorIdentifier" in z && i(16, k = z.vendorIdentifier), "bundleIdentifier" in z && i(17, w = z.bundleIdentifier), "video" in z && i(18, T = z.video), "playbackState" in z && i(3, v = z.playbackState), "duration" in z && i(4, p = z.duration), "currentTime" in z && i(5, L = z.currentTime), "onEvent" in z && i(19, D = z.onEvent);
887
887
  }, t.$$.update = () => {
888
888
  t.$$.dirty[0] & /*vastUrl, placement, advertConsent, maxImageSize, projectId, playlistId, contentId, contentLanguage, platform, vendorIdentifier, bundleIdentifier, video*/
889
889
  524096 && i(21, n = Mc(s, a, r, u, c, g, f, A, _, k, w, Lc(T))), t.$$.dirty[0] & /*vastUrl, adParams*/
@@ -1082,7 +1082,15 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1082
1082
  return kr(t, e) && (yield Kc()), Zn;
1083
1083
  }), kr = (t, e) => !(!(t && e) || !((t == null ? void 0 : t.contentType) === "application/x-mpegURL") || (e == null ? void 0 : e.canPlayType("application/vnd.apple.mpegurl")) || !(Zn ? Zn.isSupported() : !0)), Kc = () => Ri(void 0, null, function* () {
1084
1084
  Zn || (Zn || (Zn = (yield import("././././././hls.light.min.js")).default), Zn || (Zn = window.Hls));
1085
- }), Gc = () => {
1085
+ }), pr = (t) => {
1086
+ let e;
1087
+ try {
1088
+ e = new URL(t);
1089
+ } catch (i) {
1090
+ return t;
1091
+ }
1092
+ return e.hash ? t == null ? void 0 : t.slice(0, -e.hash.length) : t;
1093
+ }, Gc = () => {
1086
1094
  const t = {
1087
1095
  maxNumRetry: 1 / 0,
1088
1096
  retryDelayMs: 10,
@@ -1108,7 +1116,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1108
1116
  var c, g;
1109
1117
  if (window.disableMediaLoad || ((c = n == null ? void 0 : n.detachMedia) == null || c.call(n), (g = n == null ? void 0 : n.destroy) == null || g.call(n), n = null, !e || !t))
1110
1118
  return;
1111
- const a = e.paused, r = e.playbackRate, u = e.sourceUrl && e.sourceUrl !== t.url;
1119
+ const a = e.paused, r = e.playbackRate, u = e.currentSrc && pr(e.currentSrc) !== t.url;
1112
1120
  if (kr(t, e)) {
1113
1121
  if (!i)
1114
1122
  return "pending";
@@ -1122,12 +1130,12 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1122
1130
  n.manifestLoaded = !0, s();
1123
1131
  }), n.loadSource(t.url), n.attachMedia(e);
1124
1132
  } else
1125
- u ? (e.removeAttribute("src"), e.load()) : e.sourceUrl && s();
1126
- return a || l(), e.playbackRate = r, e.sourceUrl = t.url, n || "not-used";
1127
- }, pr = (t, e, i = 10) => {
1133
+ u ? (e.removeAttribute("src"), e.load()) : e.currentSrc && s();
1134
+ return a || l(), e.playbackRate = r, n || "not-used";
1135
+ }, Sr = (t, e, i = 10) => {
1128
1136
  if (!(!t || t === "not-used" || t.loadMediaCalled)) {
1129
1137
  if (!t.manifestLoaded) {
1130
- setTimeout(() => pr(t, e, i * 2), i);
1138
+ setTimeout(() => Sr(t, e, i * 2), i);
1131
1139
  return;
1132
1140
  }
1133
1141
  t.startLoad(e), t.loadMediaCalled = !0;
@@ -1136,7 +1144,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1136
1144
  var e, i;
1137
1145
  const t = ((i = (e = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : e.toLowerCase) == null ? void 0 : i.call(e)) || "";
1138
1146
  return t.includes("safari") && !t.includes("chrome");
1139
- }, Sr = (t) => {
1147
+ }, wr = (t) => {
1140
1148
  const e = t == null ? void 0 : t.split(" ");
1141
1149
  if (e.length === 1)
1142
1150
  return { top: e[0], right: e[0], bottom: e[0], left: e[0] };
@@ -1714,10 +1722,10 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1714
1722
  maximizeVideo: "Maximize video",
1715
1723
  changePlaybackRate: "Change playback rate",
1716
1724
  downloadAudio: "Download audio"
1717
- }, jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1725
+ }, zd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1718
1726
  __proto__: null,
1719
1727
  default: Ed
1720
- }, Symbol.toStringTag, { value: "Module" })), zd = {
1728
+ }, Symbol.toStringTag, { value: "Module" })), jd = {
1721
1729
  isDefaultForLanguage: !0,
1722
1730
  listenToThisArticle: "Listen to this article",
1723
1731
  videoInWidget: "Video is playing in widget",
@@ -1746,7 +1754,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
1746
1754
  downloadAudio: "Download audio"
1747
1755
  }, Ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1748
1756
  __proto__: null,
1749
- default: zd
1757
+ default: jd
1750
1758
  }, Symbol.toStringTag, { value: "Module" })), xd = {
1751
1759
  isDefaultForLanguage: !0,
1752
1760
  listenToThisArticle: "Aŭskultu ĉi tiun artikolon",
@@ -2524,10 +2532,10 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
2524
2532
  maximizeVideo: "Maximize video",
2525
2533
  changePlaybackRate: "Change playback rate",
2526
2534
  downloadAudio: "Download audio"
2527
- }, jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2535
+ }, zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2528
2536
  __proto__: null,
2529
2537
  default: Eg
2530
- }, Symbol.toStringTag, { value: "Module" })), zg = {
2538
+ }, Symbol.toStringTag, { value: "Module" })), jg = {
2531
2539
  isDefaultForLanguage: !0,
2532
2540
  listenToThisArticle: "Бұл мақаланы тыңдаңыз",
2533
2541
  videoInWidget: "Video is playing in widget",
@@ -2556,7 +2564,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
2556
2564
  downloadAudio: "Download audio"
2557
2565
  }, Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2558
2566
  __proto__: null,
2559
- default: zg
2567
+ default: jg
2560
2568
  }, Symbol.toStringTag, { value: "Module" })), xg = {
2561
2569
  isDefaultForLanguage: !0,
2562
2570
  listenToThisArticle: "សូមស្តាប់អត្ថបទនេះ។",
@@ -3307,7 +3315,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
3307
3315
  }, Ef = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3308
3316
  __proto__: null,
3309
3317
  default: Mf
3310
- }, Symbol.toStringTag, { value: "Module" })), jf = {
3318
+ }, Symbol.toStringTag, { value: "Module" })), zf = {
3311
3319
  isDefaultForLanguage: !0,
3312
3320
  listenToThisArticle: "ਇਸ ਲੇਖ ਨੂੰ ਸੁਣੋ",
3313
3321
  videoInWidget: "Video is playing in widget",
@@ -3334,9 +3342,9 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
3334
3342
  maximizeVideo: "Maximize video",
3335
3343
  changePlaybackRate: "Change playback rate",
3336
3344
  downloadAudio: "Download audio"
3337
- }, zf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3345
+ }, jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3338
3346
  __proto__: null,
3339
- default: jf
3347
+ default: zf
3340
3348
  }, Symbol.toStringTag, { value: "Module" })), Lf = {
3341
3349
  isDefaultForLanguage: !0,
3342
3350
  listenToThisArticle: "Posłuchaj tego artykułu",
@@ -4117,7 +4125,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
4117
4125
  }, E1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4118
4126
  __proto__: null,
4119
4127
  default: M1
4120
- }, Symbol.toStringTag, { value: "Module" })), j1 = {
4128
+ }, Symbol.toStringTag, { value: "Module" })), z1 = {
4121
4129
  isDefaultForLanguage: !0,
4122
4130
  listenToThisArticle: "Ushbu maqolani tinglang",
4123
4131
  videoInWidget: "Video is playing in widget",
@@ -4144,9 +4152,9 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
4144
4152
  maximizeVideo: "Maximize video",
4145
4153
  changePlaybackRate: "Change playback rate",
4146
4154
  downloadAudio: "Download audio"
4147
- }, z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4155
+ }, j1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4148
4156
  __proto__: null,
4149
- default: j1
4157
+ default: z1
4150
4158
  }, Symbol.toStringTag, { value: "Module" })), L1 = {
4151
4159
  isDefaultForLanguage: !0,
4152
4160
  listenToThisArticle: "Nghe bài viết này",
@@ -4413,7 +4421,7 @@ const Zc = (t, e) => Ri(void 0, null, function* () {
4413
4421
  `The locale '${n}' is missing the translation key '${s}'.`,
4414
4422
  `Please set '${s}: "something"' in src/translations/${n}.ts`
4415
4423
  ]);
4416
- }, om = /* @__PURE__ */ Object.assign({ "../translations/af.ts": $c, "../translations/ak.ts": td, "../translations/am.ts": nd, "../translations/ar.ts": sd, "../translations/as.ts": ad, "../translations/az.ts": ud, "../translations/be.ts": dd, "../translations/bg.ts": fd, "../translations/bm.ts": hd, "../translations/bn.ts": Ad, "../translations/bs.ts": vd, "../translations/ca.ts": kd, "../translations/ckb.ts": Sd, "../translations/cs.ts": Td, "../translations/cy.ts": Cd, "../translations/da.ts": Vd, "../translations/de.ts": Wd, "../translations/ee.ts": Md, "../translations/el.ts": jd, "../translations/en.ts": Ld, "../translations/eo.ts": Dd, "../translations/es.ts": Rd, "../translations/et.ts": Ud, "../translations/eu.ts": qd, "../translations/fa.ts": Zd, "../translations/fi.ts": Gd, "../translations/fil.ts": Xd, "../translations/fr.ts": $d, "../translations/ga.ts": tg, "../translations/gd.ts": ng, "../translations/gl.ts": sg, "../translations/gu.ts": ag, "../translations/ha.ts": ug, "../translations/haw.ts": dg, "../translations/he.ts": fg, "../translations/hi.ts": hg, "../translations/hr.ts": Ag, "../translations/hu.ts": vg, "../translations/hy.ts": kg, "../translations/id.ts": Sg, "../translations/ig.ts": Tg, "../translations/is.ts": Cg, "../translations/it.ts": Vg, "../translations/iw.ts": Wg, "../translations/ja.ts": Mg, "../translations/ka.ts": jg, "../translations/kk.ts": Lg, "../translations/km.ts": Dg, "../translations/kn.ts": Rg, "../translations/ko.ts": Ug, "../translations/ky.ts": qg, "../translations/lb.ts": Zg, "../translations/lg.ts": Gg, "../translations/ln.ts": Xg, "../translations/lo.ts": $g, "../translations/lt.ts": tf, "../translations/lv.ts": of, "../translations/mg.ts": lf, "../translations/mk.ts": rf, "../translations/ml.ts": cf, "../translations/mn.ts": gf, "../translations/mr.ts": mf, "../translations/ms.ts": _f, "../translations/mt.ts": yf, "../translations/my.ts": bf, "../translations/nb.ts": pf, "../translations/ne.ts": wf, "../translations/nl.ts": Pf, "../translations/nn.ts": If, "../translations/no.ts": Bf, "../translations/om.ts": Of, "../translations/or.ts": Ef, "../translations/pa.ts": zf, "../translations/pl.ts": xf, "../translations/ps.ts": Nf, "../translations/pt.ts": Ff, "../translations/qu.ts": Hf, "../translations/ro.ts": Yf, "../translations/ru.ts": Kf, "../translations/rw.ts": Jf, "../translations/si.ts": Qf, "../translations/sk.ts": e1, "../translations/sl.ts": i1, "../translations/sn.ts": o1, "../translations/so.ts": l1, "../translations/sq.ts": r1, "../translations/sr.ts": c1, "../translations/sv.ts": g1, "../translations/sw.ts": m1, "../translations/ta.ts": _1, "../translations/te.ts": y1, "../translations/tg.ts": b1, "../translations/th.ts": p1, "../translations/ti.ts": w1, "../translations/tr.ts": P1, "../translations/tt.ts": I1, "../translations/ug.ts": B1, "../translations/uk.ts": O1, "../translations/ur.ts": E1, "../translations/uz.ts": z1, "../translations/vi.ts": x1, "../translations/yi.ts": N1, "../translations/yo.ts": F1, "../translations/zh-HK.ts": H1, "../translations/zh-MO.ts": Y1, "../translations/zh-TW.ts": K1, "../translations/zh.ts": J1, "../translations/zu.ts": Q1 }), wr = Object.entries(om).map(([t, e]) => [$1(t), e.default]), ol = Object.fromEntries(wr.filter(([t, e]) => t.includes("-"))), sl = Object.fromEntries(wr.filter(([t, e]) => e.isDefaultForLanguage).map(([t, e]) => [t.split("-")[0], e]));
4424
+ }, om = /* @__PURE__ */ Object.assign({ "../translations/af.ts": $c, "../translations/ak.ts": td, "../translations/am.ts": nd, "../translations/ar.ts": sd, "../translations/as.ts": ad, "../translations/az.ts": ud, "../translations/be.ts": dd, "../translations/bg.ts": fd, "../translations/bm.ts": hd, "../translations/bn.ts": Ad, "../translations/bs.ts": vd, "../translations/ca.ts": kd, "../translations/ckb.ts": Sd, "../translations/cs.ts": Td, "../translations/cy.ts": Cd, "../translations/da.ts": Vd, "../translations/de.ts": Wd, "../translations/ee.ts": Md, "../translations/el.ts": zd, "../translations/en.ts": Ld, "../translations/eo.ts": Dd, "../translations/es.ts": Rd, "../translations/et.ts": Ud, "../translations/eu.ts": qd, "../translations/fa.ts": Zd, "../translations/fi.ts": Gd, "../translations/fil.ts": Xd, "../translations/fr.ts": $d, "../translations/ga.ts": tg, "../translations/gd.ts": ng, "../translations/gl.ts": sg, "../translations/gu.ts": ag, "../translations/ha.ts": ug, "../translations/haw.ts": dg, "../translations/he.ts": fg, "../translations/hi.ts": hg, "../translations/hr.ts": Ag, "../translations/hu.ts": vg, "../translations/hy.ts": kg, "../translations/id.ts": Sg, "../translations/ig.ts": Tg, "../translations/is.ts": Cg, "../translations/it.ts": Vg, "../translations/iw.ts": Wg, "../translations/ja.ts": Mg, "../translations/ka.ts": zg, "../translations/kk.ts": Lg, "../translations/km.ts": Dg, "../translations/kn.ts": Rg, "../translations/ko.ts": Ug, "../translations/ky.ts": qg, "../translations/lb.ts": Zg, "../translations/lg.ts": Gg, "../translations/ln.ts": Xg, "../translations/lo.ts": $g, "../translations/lt.ts": tf, "../translations/lv.ts": of, "../translations/mg.ts": lf, "../translations/mk.ts": rf, "../translations/ml.ts": cf, "../translations/mn.ts": gf, "../translations/mr.ts": mf, "../translations/ms.ts": _f, "../translations/mt.ts": yf, "../translations/my.ts": bf, "../translations/nb.ts": pf, "../translations/ne.ts": wf, "../translations/nl.ts": Pf, "../translations/nn.ts": If, "../translations/no.ts": Bf, "../translations/om.ts": Of, "../translations/or.ts": Ef, "../translations/pa.ts": jf, "../translations/pl.ts": xf, "../translations/ps.ts": Nf, "../translations/pt.ts": Ff, "../translations/qu.ts": Hf, "../translations/ro.ts": Yf, "../translations/ru.ts": Kf, "../translations/rw.ts": Jf, "../translations/si.ts": Qf, "../translations/sk.ts": e1, "../translations/sl.ts": i1, "../translations/sn.ts": o1, "../translations/so.ts": l1, "../translations/sq.ts": r1, "../translations/sr.ts": c1, "../translations/sv.ts": g1, "../translations/sw.ts": m1, "../translations/ta.ts": _1, "../translations/te.ts": y1, "../translations/tg.ts": b1, "../translations/th.ts": p1, "../translations/ti.ts": w1, "../translations/tr.ts": P1, "../translations/tt.ts": I1, "../translations/ug.ts": B1, "../translations/uk.ts": O1, "../translations/ur.ts": E1, "../translations/uz.ts": j1, "../translations/vi.ts": x1, "../translations/yi.ts": N1, "../translations/yo.ts": F1, "../translations/zh-HK.ts": H1, "../translations/zh-MO.ts": Y1, "../translations/zh-TW.ts": K1, "../translations/zh.ts": J1, "../translations/zu.ts": Q1 }), Tr = Object.entries(om).map(([t, e]) => [$1(t), e.default]), ol = Object.fromEntries(Tr.filter(([t, e]) => t.includes("-"))), sl = Object.fromEntries(Tr.filter(([t, e]) => e.isDefaultForLanguage).map(([t, e]) => [t.split("-")[0], e]));
4417
4425
  em(ol, sl);
4418
4426
  const Pt = (t, { locale: e } = {}) => {
4419
4427
  const i = sm(e);
@@ -4432,29 +4440,21 @@ const Pt = (t, { locale: e } = {}) => {
4432
4440
  }
4433
4441
  }, li = (t) => {
4434
4442
  t.detail !== 0 && t.currentTarget.blur();
4435
- }, Tr = () => {
4443
+ }, lm = () => {
4436
4444
  var n, o;
4437
4445
  const t = ((o = (n = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : n.toLowerCase) == null ? void 0 : o.call(n)) || "", e = t.match(/iphone|ipad|ipod/i) && (navigator == null ? void 0 : navigator.maxTouchPoints), i = t.match(/safari|applewebkit/i);
4438
4446
  return e && i;
4439
- }, lm = ["article", "summary"], am = (t) => lm.indexOf(t) !== -1, Pr = (t, e) => t === "article" && (e === "title" || e === "body") || t === "summary" && e === "summary", Cl = (t, e, i) => {
4447
+ }, am = ["article", "summary"], rm = (t) => am.indexOf(t) !== -1, Pr = (t, e) => t === "article" && (e === "title" || e === "body") || t === "summary" && e === "summary", Cl = (t, e, i) => {
4440
4448
  const n = t.filter((u) => Pr(i, u.section)), o = n.findIndex((u) => u.startTime > e), s = o === -1, l = o - 1, a = l === -1;
4441
4449
  let r;
4442
4450
  return a ? r = 0 : s ? r = n.length - 1 : r = l, t.indexOf(n[r]);
4443
4451
  }, Yl = (t, e) => {
4444
- const i = rm(e == null ? void 0 : e.currentSrc), n = t.find((o) => {
4452
+ const i = pr(e == null ? void 0 : e.currentSrc), n = t.find((o) => {
4445
4453
  var a;
4446
4454
  const s = o.url && i === um(o.url), l = ((a = o.url) == null ? void 0 : a.endsWith(".m3u8")) && (i == null ? void 0 : i.startsWith("blob:"));
4447
4455
  return s || l;
4448
4456
  });
4449
4457
  return t.length > 0 && !n && console.warn("BeyondWords.Player: media was loaded but failed to set loadedMedia"), n;
4450
- }, rm = (t) => {
4451
- let e;
4452
- try {
4453
- e = new URL(t);
4454
- } catch (i) {
4455
- return t;
4456
- }
4457
- return e.hash ? t == null ? void 0 : t.slice(0, -e.hash.length) : t;
4458
4458
  }, um = (t) => {
4459
4459
  const e = document.createElement("a");
4460
4460
  return e.href = t, e.href;
@@ -5100,7 +5100,7 @@ const ym = /* @__PURE__ */ cm(Am), vm = (t, e) => {
5100
5100
  let r = !1, u = -1 / 0;
5101
5101
  for (const [c, g] of i[l].content.entries())
5102
5102
  for (const [f, A] of g.segments.entries())
5103
- if (am(i[l].contentVariant) && Pr(i[l].contentVariant, A.section) && s(A)) {
5103
+ if (rm(i[l].contentVariant) && Pr(i[l].contentVariant, A.section) && s(A)) {
5104
5104
  const _ = i[l].contentIndex === c ? 1 : 0;
5105
5105
  if (_ < u || _ === u && n[l].segment)
5106
5106
  continue;
@@ -5192,7 +5192,8 @@ function Gl(t, e, i) {
5192
5192
  }
5193
5193
  function Jl(t) {
5194
5194
  let e, i, n = (
5195
- /*sources*/
5195
+ /*platform*/
5196
+ t[12] === "ios" && /*sources*/
5196
5197
  t[20].map(na).join("")
5197
5198
  ), o, s, l, a, r = $l(t), u = (
5198
5199
  /*vastUrl*/
@@ -5233,12 +5234,13 @@ function Jl(t) {
5233
5234
  E(g, e, f), m(e, i), r.m(i, null), m(i, o), u && u.m(i, null), m(i, s), c && c.m(i, null), a = !0;
5234
5235
  },
5235
5236
  p(g, f) {
5236
- f[0] & /*sources*/
5237
- 1048576 && pe(n, n = /*sources*/
5237
+ f[0] & /*platform, sources*/
5238
+ 1052672 && pe(n, n = /*platform*/
5239
+ g[12] === "ios" && /*sources*/
5238
5240
  g[20].map(na).join("")) ? (r.d(1), r = $l(g), r.c(), r.m(i, o)) : r.p(g, f), /*vastUrl*/
5239
5241
  g[21] || /*preloadVastUrl*/
5240
5242
  g[28] ? u ? (u.p(g, f), f[0] & /*vastUrl, preloadVastUrl*/
5241
- 270532608 && I(u, 1)) : (u = ea(g), u.c(), I(u, 1), u.m(i, s)) : u && (Fe(), z(u, 1, 1, () => {
5243
+ 270532608 && I(u, 1)) : (u = ea(g), u.c(), I(u, 1), u.m(i, s)) : u && (Fe(), j(u, 1, 1, () => {
5242
5244
  u = null;
5243
5245
  }), Ue()), /*customUrl*/
5244
5246
  g[29] ? c ? c.p(g, f) : (c = ia(g), c.c(), c.m(i, null)) : c && (c.d(1), c = null), (!a || f[0] & /*position*/
@@ -5276,7 +5278,7 @@ function Jl(t) {
5276
5278
  a || (I(u), a = !0);
5277
5279
  },
5278
5280
  o(g) {
5279
- z(u), a = !1;
5281
+ j(u), a = !1;
5280
5282
  },
5281
5283
  d(g) {
5282
5284
  g && O(e), r.d(g), u && u.d(), c && c.d();
@@ -5502,13 +5504,13 @@ function ea(t) {
5502
5504
  l[0] & /*vastUrl, preloadVastUrl*/
5503
5505
  270532608 && pe(e, e = /*vastUrl*/
5504
5506
  s[21] || /*preloadVastUrl*/
5505
- s[28]) ? (Fe(), z(o, 1, 1, Q), Ue(), o = ta(s), o.c(), I(o, 1), o.m(i.parentNode, i)) : o.p(s, l);
5507
+ s[28]) ? (Fe(), j(o, 1, 1, Q), Ue(), o = ta(s), o.c(), I(o, 1), o.m(i.parentNode, i)) : o.p(s, l);
5506
5508
  },
5507
5509
  i(s) {
5508
5510
  n || (I(o), n = !0);
5509
5511
  },
5510
5512
  o(s) {
5511
- z(o), n = !1;
5513
+ j(o), n = !1;
5512
5514
  },
5513
5515
  d(s) {
5514
5516
  s && O(i), o.d(s);
@@ -5642,7 +5644,7 @@ function ta(t) {
5642
5644
  s || (I(e.$$.fragment, c), s = !0);
5643
5645
  },
5644
5646
  o(c) {
5645
- z(e.$$.fragment, c), s = !1;
5647
+ j(e.$$.fragment, c), s = !1;
5646
5648
  },
5647
5649
  d(c) {
5648
5650
  ce(e, c);
@@ -5693,7 +5695,7 @@ function Wm(t) {
5693
5695
  p(o, s) {
5694
5696
  /*content*/
5695
5697
  o[5].length > 0 ? n ? (n.p(o, s), s[0] & /*content*/
5696
- 32 && I(n, 1)) : (n = Jl(o), n.c(), I(n, 1), n.m(e.parentNode, e)) : n && (Fe(), z(n, 1, 1, () => {
5698
+ 32 && I(n, 1)) : (n = Jl(o), n.c(), I(n, 1), n.m(e.parentNode, e)) : n && (Fe(), j(n, 1, 1, () => {
5697
5699
  n = null;
5698
5700
  }), Ue());
5699
5701
  },
@@ -5701,7 +5703,7 @@ function Wm(t) {
5701
5703
  i || (I(n), i = !0);
5702
5704
  },
5703
5705
  o(o) {
5704
- z(n), i = !1;
5706
+ j(n), i = !1;
5705
5707
  },
5706
5708
  d(o) {
5707
5709
  o && O(e), n && n.d(o);
@@ -5710,12 +5712,12 @@ function Wm(t) {
5710
5712
  }
5711
5713
  const na = ({ url: t }) => t;
5712
5714
  function Om(t, e, i) {
5713
- let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, { content: P } = e, { contentIndex: Y } = e, { contentVariant: q } = e, { introOrOutro: N } = e, { activeAdvert: X } = e, { preloadAdvert: te } = e, { advertConsent: se } = e, { maxImageSize: $ } = e, { projectId: ee } = e, { playlistId: de } = e, { contentId: he } = e, { contentLanguage: re } = e, { platform: _e } = e, { vendorIdentifier: ae } = e, { bundleIdentifier: b } = e, { playbackState: C } = e, { duration: F } = e, { currentTime: x } = e, { playbackRate: We } = e, { prevPercentage: Ee } = e, { showUserInterface: Je } = e, { videoBehindWidget: j } = e, { videoBehindStatic: Ae } = e, { videoMightBeShown: Oe } = e, { widgetPosition: Ye } = e, { widgetWidth: je } = e, { widgetMargin: Ze } = e, { widgetTarget: Ge } = e, { onEvent: Pe = () => {
5715
+ let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, { content: P } = e, { contentIndex: Y } = e, { contentVariant: q } = e, { introOrOutro: N } = e, { activeAdvert: X } = e, { preloadAdvert: te } = e, { advertConsent: se } = e, { maxImageSize: $ } = e, { projectId: ee } = e, { playlistId: de } = e, { contentId: he } = e, { contentLanguage: re } = e, { platform: _e } = e, { vendorIdentifier: ae } = e, { bundleIdentifier: b } = e, { playbackState: C } = e, { duration: F } = e, { currentTime: x } = e, { playbackRate: We } = e, { prevPercentage: Ee } = e, { showUserInterface: Je } = e, { videoBehindWidget: z } = e, { videoBehindStatic: Ae } = e, { videoMightBeShown: Oe } = e, { widgetPosition: Ye } = e, { widgetWidth: ze } = e, { widgetMargin: Ze } = e, { widgetTarget: Ge } = e, { onEvent: Pe = () => {
5714
5716
  } } = e, { metadataLoaded: qe } = e, { video: Ie = void 0 } = e, Lt, ke, Ke, Ne = 0, tt = 0, Rt = x, Re, mt;
5715
5717
  const xe = (W) => i(19, Ne = W), ht = () => Oe, it = () => u.some((W) => W.format === "video"), Me = () => {
5716
5718
  var W;
5717
5719
  return (Ie == null ? void 0 : Ie.paused) && ((W = Ie == null ? void 0 : Ie.play()) == null ? void 0 : W.catch(ot));
5718
- }, ze = () => !(Ie != null && Ie.paused) && (Ie == null ? void 0 : Ie.pause()), _t = () => {
5720
+ }, je = () => !(Ie != null && Ie.paused) && (Ie == null ? void 0 : Ie.pause()), _t = () => {
5719
5721
  Ke && clearTimeout(Ke), i(24, Ke = setTimeout(() => i(24, Ke = null), 500));
5720
5722
  }, At = () => {
5721
5723
  Pe(ye({
@@ -5869,11 +5871,11 @@ function Om(t, e, i) {
5869
5871
  x = W, i(1, x), i(19, Ne);
5870
5872
  }
5871
5873
  return t.$$set = (W) => {
5872
- "content" in W && i(5, P = W.content), "contentIndex" in W && i(45, Y = W.contentIndex), "contentVariant" in W && i(46, q = W.contentVariant), "introOrOutro" in W && i(47, N = W.introOrOutro), "activeAdvert" in W && i(48, X = W.activeAdvert), "preloadAdvert" in W && i(49, te = W.preloadAdvert), "advertConsent" in W && i(6, se = W.advertConsent), "maxImageSize" in W && i(7, $ = W.maxImageSize), "projectId" in W && i(8, ee = W.projectId), "playlistId" in W && i(9, de = W.playlistId), "contentId" in W && i(10, he = W.contentId), "contentLanguage" in W && i(11, re = W.contentLanguage), "platform" in W && i(12, _e = W.platform), "vendorIdentifier" in W && i(13, ae = W.vendorIdentifier), "bundleIdentifier" in W && i(14, b = W.bundleIdentifier), "playbackState" in W && i(0, C = W.playbackState), "duration" in W && i(3, F = W.duration), "currentTime" in W && i(1, x = W.currentTime), "playbackRate" in W && i(4, We = W.playbackRate), "prevPercentage" in W && i(44, Ee = W.prevPercentage), "showUserInterface" in W && i(15, Je = W.showUserInterface), "videoBehindWidget" in W && i(50, j = W.videoBehindWidget), "videoBehindStatic" in W && i(16, Ae = W.videoBehindStatic), "videoMightBeShown" in W && i(51, Oe = W.videoMightBeShown), "widgetPosition" in W && i(52, Ye = W.widgetPosition), "widgetWidth" in W && i(53, je = W.widgetWidth), "widgetMargin" in W && i(54, Ze = W.widgetMargin), "widgetTarget" in W && i(55, Ge = W.widgetTarget), "onEvent" in W && i(17, Pe = W.onEvent), "metadataLoaded" in W && i(43, qe = W.metadataLoaded), "video" in W && i(2, Ie = W.video);
5874
+ "content" in W && i(5, P = W.content), "contentIndex" in W && i(45, Y = W.contentIndex), "contentVariant" in W && i(46, q = W.contentVariant), "introOrOutro" in W && i(47, N = W.introOrOutro), "activeAdvert" in W && i(48, X = W.activeAdvert), "preloadAdvert" in W && i(49, te = W.preloadAdvert), "advertConsent" in W && i(6, se = W.advertConsent), "maxImageSize" in W && i(7, $ = W.maxImageSize), "projectId" in W && i(8, ee = W.projectId), "playlistId" in W && i(9, de = W.playlistId), "contentId" in W && i(10, he = W.contentId), "contentLanguage" in W && i(11, re = W.contentLanguage), "platform" in W && i(12, _e = W.platform), "vendorIdentifier" in W && i(13, ae = W.vendorIdentifier), "bundleIdentifier" in W && i(14, b = W.bundleIdentifier), "playbackState" in W && i(0, C = W.playbackState), "duration" in W && i(3, F = W.duration), "currentTime" in W && i(1, x = W.currentTime), "playbackRate" in W && i(4, We = W.playbackRate), "prevPercentage" in W && i(44, Ee = W.prevPercentage), "showUserInterface" in W && i(15, Je = W.showUserInterface), "videoBehindWidget" in W && i(50, z = W.videoBehindWidget), "videoBehindStatic" in W && i(16, Ae = W.videoBehindStatic), "videoMightBeShown" in W && i(51, Oe = W.videoMightBeShown), "widgetPosition" in W && i(52, Ye = W.widgetPosition), "widgetWidth" in W && i(53, ze = W.widgetWidth), "widgetMargin" in W && i(54, Ze = W.widgetMargin), "widgetTarget" in W && i(55, Ge = W.widgetTarget), "onEvent" in W && i(17, Pe = W.onEvent), "metadataLoaded" in W && i(43, qe = W.metadataLoaded), "video" in W && i(2, Ie = W.video);
5873
5875
  }, t.$$.update = () => {
5874
5876
  t.$$.dirty[0] & /*content, videoBehindStatic*/
5875
5877
  65568 | t.$$.dirty[1] & /*videoBehindWidget*/
5876
- 524288 && i(68, n = P.length > 0 && (Ae || j)), t.$$.dirty[2] & /*stylesNeeded*/
5878
+ 524288 && i(68, n = P.length > 0 && (Ae || z)), t.$$.dirty[2] & /*stylesNeeded*/
5877
5879
  64 && n && import("./././././././././style.js"), t.$$.dirty[0] & /*time*/
5878
5880
  524288 && i(1, x = Ne), t.$$.dirty[0] & /*currentTime*/
5879
5881
  2 | t.$$.dirty[1] & /*activeAdvert*/
@@ -5901,24 +5903,24 @@ function Om(t, e, i) {
5901
5903
  1310724 | t.$$.dirty[1] & /*Hls*/
5902
5904
  33554432 && i(18, ke = Jc(u[0], Ie, Lt, ke, kt, at, Me)), t.$$.dirty[0] & /*playbackState, hls*/
5903
5905
  262145 | t.$$.dirty[2] & /*startPosition*/
5904
- 16 && (C === "playing" || ht()) && pr(ke, a), t.$$.dirty[1] & /*activeAdvert*/
5906
+ 16 && (C === "playing" || ht()) && Sr(ke, a), t.$$.dirty[1] & /*activeAdvert*/
5905
5907
  131072 && i(21, c = X == null ? void 0 : X.vastUrl), t.$$.dirty[1] & /*activeAdvert*/
5906
5908
  131072 && i(30, g = X == null ? void 0 : X.placement), t.$$.dirty[1] & /*activeAdvert*/
5907
5909
  131072 && i(29, f = X == null ? void 0 : X.clickThroughUrl), t.$$.dirty[1] & /*preloadAdvert*/
5908
5910
  262144 && i(28, A = te == null ? void 0 : te.vastUrl), t.$$.dirty[0] & /*vastUrl*/
5909
5911
  2097152 | t.$$.dirty[1] & /*metadataLoaded*/
5910
- 4096 && i(65, _ = !c && (qe || Tr())), t.$$.dirty[0] & /*playbackState*/
5912
+ 4096 && i(65, _ = !c && (qe || lm())), t.$$.dirty[0] & /*playbackState*/
5911
5913
  1 | t.$$.dirty[2] & /*controlPlayback*/
5912
- 8 && _ && (C === "playing" ? Me() : ze()), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
5913
- 17301504 && i(27, k = j && Ge), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
5914
- 17301504 && i(22, w = j && !Ge), t.$$.dirty[1] & /*widgetMargin*/
5915
- 8388608 && i(64, T = Sr(Ze)), t.$$.dirty[2] & /*margin*/
5914
+ 8 && _ && (C === "playing" ? Me() : je()), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
5915
+ 17301504 && i(27, k = z && Ge), t.$$.dirty[1] & /*videoBehindWidget, widgetTarget*/
5916
+ 17301504 && i(22, w = z && !Ge), t.$$.dirty[1] & /*widgetMargin*/
5917
+ 8388608 && i(64, T = wr(Ze)), t.$$.dirty[2] & /*margin*/
5916
5918
  4 && i(63, v = `calc(${T.left} + ${T.right})`), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
5917
5919
  4194304 | t.$$.dirty[1] & /*widgetPosition*/
5918
5920
  2097152 && i(26, p = w && Ye !== "auto" ? `fixed-${Ye}` : ""), t.$$.dirty[0] & /*videoBehindSlidingWidget*/
5919
5921
  4194304 | t.$$.dirty[1] & /*widgetWidth, widgetMargin*/
5920
5922
  12582912 | t.$$.dirty[2] & /*marginWidth*/
5921
- 2 && i(25, L = w ? `width: ${je}; --margin: ${Ze}; --margin-width: ${v}` : ""), t.$$.dirty[0] & /*currentTime*/
5923
+ 2 && i(25, L = w ? `width: ${ze}; --margin: ${Ze}; --margin-width: ${v}` : ""), t.$$.dirty[0] & /*currentTime*/
5922
5924
  2 | t.$$.dirty[1] & /*introOrOutro, activeAdvert, segments, contentVariant*/
5923
5925
  537100288 | t.$$.dirty[2] & /*atTheStart*/
5924
5926
  1 && i(59, S = N || X || D ? -1 : Cl(s, x, q)), t.$$.dirty[1] & /*segmentIndex*/
@@ -5977,10 +5979,10 @@ function Om(t, e, i) {
5977
5979
  N,
5978
5980
  X,
5979
5981
  te,
5980
- j,
5982
+ z,
5981
5983
  Oe,
5982
5984
  Ye,
5983
- je,
5985
+ ze,
5984
5986
  Ze,
5985
5987
  Ge,
5986
5988
  Lt,
@@ -6241,7 +6243,7 @@ function Em(t) {
6241
6243
  const e = t - 1;
6242
6244
  return e * e * e + 1;
6243
6245
  }
6244
- function jm(t, { delay: e = 0, duration: i = 400, easing: n = Em, x: o = 0, y: s = 0, opacity: l = 0 } = {}) {
6246
+ function zm(t, { delay: e = 0, duration: i = 400, easing: n = Em, x: o = 0, y: s = 0, opacity: l = 0 } = {}) {
6245
6247
  const a = getComputedStyle(t), r = +a.opacity, u = a.transform === "none" ? "" : a.transform, c = r * (1 - l), [g, f] = Ll(o), [A, _] = Ll(s);
6246
6248
  return {
6247
6249
  delay: e,
@@ -6300,7 +6302,7 @@ var Vr = function() {
6300
6302
  );
6301
6303
  }(), ul = typeof window != "undefined" && typeof document != "undefined" && window.document === document, as = function() {
6302
6304
  return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")();
6303
- }(), zm = function() {
6305
+ }(), jm = function() {
6304
6306
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(as) : function(t) {
6305
6307
  return setTimeout(function() {
6306
6308
  return t(Date.now());
@@ -6313,7 +6315,7 @@ function xm(t, e) {
6313
6315
  i && (i = !1, t()), n && a();
6314
6316
  }
6315
6317
  function l() {
6316
- zm(s);
6318
+ jm(s);
6317
6319
  }
6318
6320
  function a() {
6319
6321
  var r = Date.now();
@@ -6380,7 +6382,7 @@ var Dm = 20, Nm = ["top", "right", "bottom", "left", "width", "height", "size",
6380
6382
  }, Kn = function(t) {
6381
6383
  var e = t && t.ownerDocument && t.ownerDocument.defaultView;
6382
6384
  return e || as;
6383
- }, Wr = js(0, 0, 0, 0);
6385
+ }, Wr = zs(0, 0, 0, 0);
6384
6386
  function rs(t) {
6385
6387
  return parseFloat(t) || 0;
6386
6388
  }
@@ -6401,7 +6403,7 @@ function Um(t) {
6401
6403
  }
6402
6404
  function Hm(t) {
6403
6405
  var e = t.getBBox();
6404
- return js(0, 0, e.width, e.height);
6406
+ return zs(0, 0, e.width, e.height);
6405
6407
  }
6406
6408
  function qm(t) {
6407
6409
  var e = t.clientWidth, i = t.clientHeight;
@@ -6412,7 +6414,7 @@ function qm(t) {
6412
6414
  var u = Math.round(a + s) - e, c = Math.round(r + l) - i;
6413
6415
  Math.abs(u) !== 1 && (a -= u), Math.abs(c) !== 1 && (r -= c);
6414
6416
  }
6415
- return js(o.left, o.top, a, r);
6417
+ return zs(o.left, o.top, a, r);
6416
6418
  }
6417
6419
  var Ym = /* @__PURE__ */ function() {
6418
6420
  return typeof SVGGraphicsElement != "undefined" ? function(t) {
@@ -6440,14 +6442,14 @@ function Gm(t) {
6440
6442
  left: e
6441
6443
  }), l;
6442
6444
  }
6443
- function js(t, e, i, n) {
6445
+ function zs(t, e, i, n) {
6444
6446
  return { x: t, y: e, width: i, height: n };
6445
6447
  }
6446
6448
  var Jm = (
6447
6449
  /** @class */
6448
6450
  function() {
6449
6451
  function t(e) {
6450
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = js(0, 0, 0, 0), this.target = e;
6452
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = zs(0, 0, 0, 0), this.target = e;
6451
6453
  }
6452
6454
  return t.prototype.isActive = function() {
6453
6455
  var e = Km(this.target);
@@ -6692,7 +6694,7 @@ function gh(t) {
6692
6694
  i || (I(e.$$.fragment, n), i = !0);
6693
6695
  },
6694
6696
  o(n) {
6695
- z(e.$$.fragment, n), i = !1;
6697
+ j(e.$$.fragment, n), i = !1;
6696
6698
  },
6697
6699
  d(n) {
6698
6700
  ce(e, n);
@@ -6731,7 +6733,7 @@ function fh(t) {
6731
6733
  i || (I(e.$$.fragment, n), i = !0);
6732
6734
  },
6733
6735
  o(n) {
6734
- z(e.$$.fragment, n), i = !1;
6736
+ j(e.$$.fragment, n), i = !1;
6735
6737
  },
6736
6738
  d(n) {
6737
6739
  ce(e, n);
@@ -6775,7 +6777,7 @@ function mh(t) {
6775
6777
  },
6776
6778
  p(c, [g]) {
6777
6779
  let f = i;
6778
- i = u(c), i === f ? r[i].p(c, g) : (Fe(), z(r[f], 1, 1, () => {
6780
+ i = u(c), i === f ? r[i].p(c, g) : (Fe(), j(r[f], 1, 1, () => {
6779
6781
  r[f] = null;
6780
6782
  }), Ue(), n = r[i], n ? n.p(c, g) : (n = r[i] = a[i](c), n.c()), I(n, 1), n.m(e, null)), (!o || g & /*tabindex*/
6781
6783
  2) && Ln(
@@ -6797,7 +6799,7 @@ function mh(t) {
6797
6799
  o || (I(n), o = !0);
6798
6800
  },
6799
6801
  o(c) {
6800
- z(n), o = !1;
6802
+ j(n), o = !1;
6801
6803
  },
6802
6804
  d(c) {
6803
6805
  c && O(e), r[i].d(), s = !1, ft(l);
@@ -7259,15 +7261,15 @@ function Eh(t) {
7259
7261
  }
7260
7262
  };
7261
7263
  }
7262
- function jh(t, e, i) {
7264
+ function zh(t, e, i) {
7263
7265
  let { scale: n = 1 } = e, { color: o = "#323232" } = e;
7264
7266
  return t.$$set = (s) => {
7265
7267
  "scale" in s && i(0, n = s.scale), "color" in s && i(1, o = s.color);
7266
7268
  }, [n, o];
7267
7269
  }
7268
- class zh extends Te {
7270
+ class jh extends Te {
7269
7271
  constructor(e) {
7270
- super(), we(this, e, jh, Eh, pe, { scale: 0, color: 1 });
7272
+ super(), we(this, e, zh, Eh, pe, { scale: 0, color: 1 });
7271
7273
  }
7272
7274
  get scale() {
7273
7275
  return this.$$.ctx[0];
@@ -7285,7 +7287,7 @@ class zh extends Te {
7285
7287
  const Uo = (t, e, i) => Ce(t, e, e === "style" ? xh(i) : i), Lh = /;(?!([^()]*\([^()]*\))*[^()]*\))/, xh = (t) => t.split(Lh).filter((e) => e).map((e) => e + " !important").join(";");
7286
7288
  function Dh(t) {
7287
7289
  let e, i;
7288
- return e = new zh({
7290
+ return e = new jh({
7289
7291
  props: {
7290
7292
  scale: (
7291
7293
  /*scale*/
@@ -7315,7 +7317,7 @@ function Dh(t) {
7315
7317
  i || (I(e.$$.fragment, n), i = !0);
7316
7318
  },
7317
7319
  o(n) {
7318
- z(e.$$.fragment, n), i = !1;
7320
+ j(e.$$.fragment, n), i = !1;
7319
7321
  },
7320
7322
  d(n) {
7321
7323
  ce(e, n);
@@ -7354,7 +7356,7 @@ function Nh(t) {
7354
7356
  i || (I(e.$$.fragment, n), i = !0);
7355
7357
  },
7356
7358
  o(n) {
7357
- z(e.$$.fragment, n), i = !1;
7359
+ j(e.$$.fragment, n), i = !1;
7358
7360
  },
7359
7361
  d(n) {
7360
7362
  ce(e, n);
@@ -7399,7 +7401,7 @@ function Rh(t) {
7399
7401
  i || (I(e.$$.fragment, n), i = !0);
7400
7402
  },
7401
7403
  o(n) {
7402
- z(e.$$.fragment, n), i = !1;
7404
+ j(e.$$.fragment, n), i = !1;
7403
7405
  },
7404
7406
  d(n) {
7405
7407
  ce(e, n);
@@ -7443,7 +7445,7 @@ function Fh(t) {
7443
7445
  },
7444
7446
  p(c, [g]) {
7445
7447
  let f = i;
7446
- i = u(c), i === f ? ~i && r[i].p(c, g) : (n && (Fe(), z(r[f], 1, 1, () => {
7448
+ i = u(c), i === f ? ~i && r[i].p(c, g) : (n && (Fe(), j(r[f], 1, 1, () => {
7447
7449
  r[f] = null;
7448
7450
  }), Ue()), ~i ? (n = r[i], n ? n.p(c, g) : (n = r[i] = a[i](c), n.c()), I(n, 1), n.m(e, null)) : n = null), (!o || g & /*ariaLabel*/
7449
7451
  32) && Uo(
@@ -7457,7 +7459,7 @@ function Fh(t) {
7457
7459
  o || (I(n), o = !0);
7458
7460
  },
7459
7461
  o(c) {
7460
- z(n), o = !1;
7462
+ j(n), o = !1;
7461
7463
  },
7462
7464
  d(c) {
7463
7465
  c && O(e), ~i && r[i].d(), s = !1, ft(l);
@@ -7775,7 +7777,7 @@ function r0(t) {
7775
7777
  i || (I(e.$$.fragment, n), i = !0);
7776
7778
  },
7777
7779
  o(n) {
7778
- z(e.$$.fragment, n), i = !1;
7780
+ j(e.$$.fragment, n), i = !1;
7779
7781
  },
7780
7782
  d(n) {
7781
7783
  ce(e, n);
@@ -7814,7 +7816,7 @@ function u0(t) {
7814
7816
  i || (I(e.$$.fragment, n), i = !0);
7815
7817
  },
7816
7818
  o(n) {
7817
- z(e.$$.fragment, n), i = !1;
7819
+ j(e.$$.fragment, n), i = !1;
7818
7820
  },
7819
7821
  d(n) {
7820
7822
  ce(e, n);
@@ -7859,7 +7861,7 @@ function c0(t) {
7859
7861
  i || (I(e.$$.fragment, n), i = !0);
7860
7862
  },
7861
7863
  o(n) {
7862
- z(e.$$.fragment, n), i = !1;
7864
+ j(e.$$.fragment, n), i = !1;
7863
7865
  },
7864
7866
  d(n) {
7865
7867
  ce(e, n);
@@ -7903,7 +7905,7 @@ function d0(t) {
7903
7905
  },
7904
7906
  p(c, [g]) {
7905
7907
  let f = i;
7906
- i = u(c), i === f ? ~i && r[i].p(c, g) : (n && (Fe(), z(r[f], 1, 1, () => {
7908
+ i = u(c), i === f ? ~i && r[i].p(c, g) : (n && (Fe(), j(r[f], 1, 1, () => {
7907
7909
  r[f] = null;
7908
7910
  }), Ue()), ~i ? (n = r[i], n ? n.p(c, g) : (n = r[i] = a[i](c), n.c()), I(n, 1), n.m(e, null)) : n = null), (!o || g & /*ariaLabel*/
7909
7911
  32) && Ho(
@@ -7917,7 +7919,7 @@ function d0(t) {
7917
7919
  o || (I(n), o = !0);
7918
7920
  },
7919
7921
  o(c) {
7920
- z(n), o = !1;
7922
+ j(n), o = !1;
7921
7923
  },
7922
7924
  d(c) {
7923
7925
  c && O(e), ~i && r[i].d(), s = !1, ft(l);
@@ -8163,7 +8165,7 @@ function P0(t) {
8163
8165
  i || (I(e.$$.fragment, n), i = !0);
8164
8166
  },
8165
8167
  o(n) {
8166
- z(e.$$.fragment, n), i = !1;
8168
+ j(e.$$.fragment, n), i = !1;
8167
8169
  },
8168
8170
  d(n) {
8169
8171
  ce(e, n);
@@ -8202,7 +8204,7 @@ function C0(t) {
8202
8204
  i || (I(e.$$.fragment, n), i = !0);
8203
8205
  },
8204
8206
  o(n) {
8205
- z(e.$$.fragment, n), i = !1;
8207
+ j(e.$$.fragment, n), i = !1;
8206
8208
  },
8207
8209
  d(n) {
8208
8210
  ce(e, n);
@@ -8237,7 +8239,7 @@ function I0(t) {
8237
8239
  },
8238
8240
  p(g, [f]) {
8239
8241
  let A = i;
8240
- i = c(g), i === A ? u[i].p(g, f) : (Fe(), z(u[A], 1, 1, () => {
8242
+ i = c(g), i === A ? u[i].p(g, f) : (Fe(), j(u[A], 1, 1, () => {
8241
8243
  u[A] = null;
8242
8244
  }), Ue(), n = u[i], n ? n.p(g, f) : (n = u[i] = r[i](g), n.c()), I(n, 1), n.m(e, null)), (!s || f & /*playerStyle*/
8243
8245
  2 && o !== (o = "playlist-button " + /*playerStyle*/
@@ -8249,7 +8251,7 @@ function I0(t) {
8249
8251
  s || (I(n), s = !0);
8250
8252
  },
8251
8253
  o(g) {
8252
- z(n), s = !1;
8254
+ j(n), s = !1;
8253
8255
  },
8254
8256
  d(g) {
8255
8257
  g && O(e), u[i].d(), l = !1, ft(a);
@@ -8405,7 +8407,7 @@ function M0(t) {
8405
8407
  n || (I(s, l), n = !0);
8406
8408
  },
8407
8409
  o(l) {
8408
- z(s, l), n = !1;
8410
+ j(s, l), n = !1;
8409
8411
  },
8410
8412
  d(l) {
8411
8413
  l && O(e), s && s.d(l);
@@ -8427,7 +8429,7 @@ function E0(t, e, i) {
8427
8429
  n
8428
8430
  ];
8429
8431
  }
8430
- class j0 extends Te {
8432
+ class z0 extends Te {
8431
8433
  constructor(e) {
8432
8434
  super(), we(this, e, E0, M0, pe, {
8433
8435
  playerStyle: 0,
@@ -8475,7 +8477,7 @@ class j0 extends Te {
8475
8477
  this.$$set({ controlsOrder: e }), d();
8476
8478
  }
8477
8479
  }
8478
- const Yi = (t, e, i) => Ce(t, e, e === "style" ? L0(i) : i), z0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, L0 = (t) => t.split(z0).filter((e) => e).map((e) => e + " !important").join(";");
8480
+ const Yi = (t, e, i) => Ce(t, e, e === "style" ? L0(i) : i), j0 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, L0 = (t) => t.split(j0).filter((e) => e).map((e) => e + " !important").join(";");
8479
8481
  function x0(t) {
8480
8482
  let e, i, n, o;
8481
8483
  return {
@@ -8590,7 +8592,7 @@ function ua(t) {
8590
8592
  n || (I(i.$$.fragment, l), n = !0);
8591
8593
  },
8592
8594
  o(l) {
8593
- z(i.$$.fragment, l), n = !1;
8595
+ j(i.$$.fragment, l), n = !1;
8594
8596
  },
8595
8597
  d(l) {
8596
8598
  l && O(e), ce(i), o = !1, ft(s);
@@ -8614,7 +8616,7 @@ function U0(t) {
8614
8616
  /*audioIndex*/
8615
8617
  o[3] !== -1 || /*videoIndex*/
8616
8618
  o[4] !== -1 ? n ? (n.p(o, s), s & /*audioIndex, videoIndex*/
8617
- 24 && I(n, 1)) : (n = ua(o), n.c(), I(n, 1), n.m(e.parentNode, e)) : n && (Fe(), z(n, 1, 1, () => {
8619
+ 24 && I(n, 1)) : (n = ua(o), n.c(), I(n, 1), n.m(e.parentNode, e)) : n && (Fe(), j(n, 1, 1, () => {
8618
8620
  n = null;
8619
8621
  }), Ue());
8620
8622
  },
@@ -8622,7 +8624,7 @@ function U0(t) {
8622
8624
  i || (I(n), i = !0);
8623
8625
  },
8624
8626
  o(o) {
8625
- z(n), i = !1;
8627
+ j(n), i = !1;
8626
8628
  },
8627
8629
  d(o) {
8628
8630
  o && O(e), n && n.d(o);
@@ -8849,7 +8851,7 @@ function Q0(t) {
8849
8851
  n || (I(i.$$.fragment, l), n = !0);
8850
8852
  },
8851
8853
  o(l) {
8852
- z(i.$$.fragment, l), n = !1;
8854
+ j(i.$$.fragment, l), n = !1;
8853
8855
  },
8854
8856
  d(l) {
8855
8857
  l && O(e), ce(i), o = !1, ft(s);
@@ -9008,7 +9010,7 @@ function r2(t) {
9008
9010
  n || (I(i.$$.fragment, l), n = !0);
9009
9011
  },
9010
9012
  o(l) {
9011
- z(i.$$.fragment, l), n = !1;
9013
+ j(i.$$.fragment, l), n = !1;
9012
9014
  },
9013
9015
  d(l) {
9014
9016
  l && O(e), ce(i), o = !1, ft(s);
@@ -9123,7 +9125,7 @@ class h2 extends Te {
9123
9125
  this.$$set({ color: e }), d();
9124
9126
  }
9125
9127
  }
9126
- const jr = (t) => !t || t != null && t.startsWith("http") ? t : `https://${t}`, Vn = (t, e, i) => Ce(t, e, e === "style" ? A2(i) : i), _2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, A2 = (t) => t.split(_2).filter((e) => e).map((e) => e + " !important").join(";");
9128
+ const zr = (t) => !t || t != null && t.startsWith("http") ? t : `https://${t}`, Vn = (t, e, i) => Ce(t, e, e === "style" ? A2(i) : i), _2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, A2 = (t) => t.split(_2).filter((e) => e).map((e) => e + " !important").join(";");
9127
9129
  function y2(t) {
9128
9130
  let e, i, n, o, s;
9129
9131
  return {
@@ -9217,7 +9219,7 @@ function v2(t, e, i) {
9217
9219
  "href" in w && i(9, l = w.href), "scale" in w && i(10, a = w.scale), "color" in w && i(11, r = w.color), "playerStyle" in w && i(0, u = w.playerStyle), "controlsOrder" in w && i(1, c = w.controlsOrder), "largeImage" in w && i(2, g = w.largeImage), "isMobile" in w && i(3, f = w.isMobile), "endVisible" in w && i(4, A = w.endVisible), "onEvent" in w && i(12, _ = w.onEvent);
9218
9220
  }, t.$$.update = () => {
9219
9221
  t.$$.dirty & /*href*/
9220
- 512 && i(5, n = jr(l)), t.$$.dirty & /*hrefWithProtocol*/
9222
+ 512 && i(5, n = zr(l)), t.$$.dirty & /*hrefWithProtocol*/
9221
9223
  32 && i(7, o = Wc(n)), t.$$.dirty & /*scale, color*/
9222
9224
  3072 && i(6, s = `font-size: ${12 * a}px; color: ${r}; border-color: ${r}`);
9223
9225
  }, [
@@ -9406,7 +9408,7 @@ function P2(t, e, i) {
9406
9408
  "scale" in l && i(0, n = l.scale), "color" in l && i(1, o = l.color), "circular" in l && i(2, s = l.circular);
9407
9409
  }, [n, o, s];
9408
9410
  }
9409
- class zr extends Te {
9411
+ class jr extends Te {
9410
9412
  constructor(e) {
9411
9413
  super(), we(this, e, P2, T2, pe, { scale: 0, color: 1, circular: 2 });
9412
9414
  }
@@ -9449,7 +9451,7 @@ function V2(t) {
9449
9451
  }
9450
9452
  function B2(t) {
9451
9453
  let e, i, n, o, s, l;
9452
- return i = new zr({
9454
+ return i = new jr({
9453
9455
  props: {
9454
9456
  color: (
9455
9457
  /*color*/
@@ -9506,7 +9508,7 @@ function B2(t) {
9506
9508
  o || (I(i.$$.fragment, a), o = !0);
9507
9509
  },
9508
9510
  o(a) {
9509
- z(i.$$.fragment, a), o = !1;
9511
+ j(i.$$.fragment, a), o = !1;
9510
9512
  },
9511
9513
  d(a) {
9512
9514
  a && O(e), ce(i), s = !1, ft(l);
@@ -9531,7 +9533,7 @@ function W2(t) {
9531
9533
  },
9532
9534
  p(r, [u]) {
9533
9535
  let c = e;
9534
- e = a(r), e === c ? l[e].p(r, u) : (Fe(), z(l[c], 1, 1, () => {
9536
+ e = a(r), e === c ? l[e].p(r, u) : (Fe(), j(l[c], 1, 1, () => {
9535
9537
  l[c] = null;
9536
9538
  }), Ue(), i = l[e], i ? i.p(r, u) : (i = l[e] = s[e](r), i.c()), I(i, 1), i.m(n.parentNode, n));
9537
9539
  },
@@ -9539,7 +9541,7 @@ function W2(t) {
9539
9541
  o || (I(i), o = !0);
9540
9542
  },
9541
9543
  o(r) {
9542
- z(i), o = !1;
9544
+ j(i), o = !1;
9543
9545
  },
9544
9546
  d(r) {
9545
9547
  r && O(n), l[e].d(r);
@@ -9560,7 +9562,7 @@ function O2(t, e, i) {
9560
9562
  "href" in g && i(6, o = g.href), "scale" in g && i(0, s = g.scale), "color" in g && i(1, l = g.color), "playerStyle" in g && i(2, a = g.playerStyle), "controlsOrder" in g && i(3, r = g.controlsOrder), "onEvent" in g && i(7, u = g.onEvent);
9561
9563
  }, t.$$.update = () => {
9562
9564
  t.$$.dirty & /*href*/
9563
- 64 && i(4, n = jr(o));
9565
+ 64 && i(4, n = zr(o));
9564
9566
  }, [
9565
9567
  s,
9566
9568
  l,
@@ -9620,53 +9622,53 @@ class M2 extends Te {
9620
9622
  this.$$set({ onEvent: e }), d();
9621
9623
  }
9622
9624
  }
9623
- const jt = (t, e, i) => Ce(t, e, e === "style" ? j2(i) : i), E2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, j2 = (t) => t.split(E2).filter((e) => e).map((e) => e + " !important").join(";");
9624
- function z2(t) {
9625
+ const zt = (t, e, i) => Ce(t, e, e === "style" ? z2(i) : i), E2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, z2 = (t) => t.split(E2).filter((e) => e).map((e) => e + " !important").join(";");
9626
+ function j2(t) {
9625
9627
  let e, i, n, o, s, l, a, r, u;
9626
9628
  return {
9627
9629
  c() {
9628
- e = Se("svg"), i = Se("path"), n = Se("path"), o = Se("defs"), s = Se("linearGradient"), l = Se("stop"), a = Se("stop"), jt(i, "fill", "url(#" + /*gradientId*/
9629
- t[3] + ")"), jt(i, "d", "M4.51819 0C3.20323 0.00414605 2.06058 0.402167 1.23154 1.23171C0.401171 2.06225 0.00315099 3.20622 0 4.52301V4.55435C0.00613614 7.21612 1.61729 10.5771 4.523 13.4826C6.55223 15.5125 8.90619 16.989 11.1512 17.6401C11.9816 17.8809 12.7653 18 13.4871 18C14.8315 18 15.9609 17.5859 16.7732 16.7738C18.0215 15.5255 18.3298 13.5286 17.6401 11.1512C16.9891 8.90638 15.5126 6.55259 13.4826 4.52284C10.5769 1.61679 7.2161 0.00597031 4.55417 0H4.51819ZM11.5084 16.4099C9.46706 15.818 7.30764 14.4566 5.42849 12.577C1.70684 8.85563 0.199673 4.07507 2.13703 2.13737C2.7125 1.56207 3.53856 1.29058 4.51354 1.29058C6.82123 1.29058 9.9611 2.81235 12.5771 5.42851C14.4569 7.308 15.8176 9.46709 16.41 11.5083C16.9634 13.4166 16.7709 14.9649 15.8677 15.8681C15.302 16.4331 14.4843 16.72 13.4841 16.72C12.8859 16.72 12.222 16.6172 11.5084 16.4099Z"), jt(n, "fill", "url(#" + /*gradientId*/
9630
- t[3] + ")"), jt(n, "d", "M11.1483 0.360687C8.90517 1.01235 6.55252 2.48946 4.52328 4.5188C0.166276 8.87725 -1.28019 14.2587 1.23026 16.7697C2.06293 17.6026 3.21138 18 4.5339 18C7.19718 18 10.5655 16.3873 13.4767 13.4752C17.8334 9.11694 19.28 3.73601 16.7702 1.22481C15.9583 0.413305 14.8303 0 13.4865 0C12.7642 0 11.9795 0.11951 11.1483 0.360687ZM2.14341 15.856C1.24354 14.9563 1.05288 13.4115 1.60627 11.5066C2.19817 9.468 3.55852 7.31101 5.43692 5.43222C7.31433 3.55376 9.47084 2.19334 11.5085 1.60093C12.2231 1.39362 12.8867 1.29071 13.4845 1.29071C14.4808 1.29071 15.2947 1.57604 15.8566 2.13856C16.7563 3.0382 16.947 4.5832 16.3937 6.48756C15.8018 8.52586 14.4415 10.683 12.5632 12.562C9.94941 15.1771 6.8127 16.6998 4.50967 16.6998C3.53911 16.6998 2.71639 16.4293 2.14341 15.856Z"), jt(
9630
+ e = Se("svg"), i = Se("path"), n = Se("path"), o = Se("defs"), s = Se("linearGradient"), l = Se("stop"), a = Se("stop"), zt(i, "fill", "url(#" + /*gradientId*/
9631
+ t[3] + ")"), zt(i, "d", "M4.51819 0C3.20323 0.00414605 2.06058 0.402167 1.23154 1.23171C0.401171 2.06225 0.00315099 3.20622 0 4.52301V4.55435C0.00613614 7.21612 1.61729 10.5771 4.523 13.4826C6.55223 15.5125 8.90619 16.989 11.1512 17.6401C11.9816 17.8809 12.7653 18 13.4871 18C14.8315 18 15.9609 17.5859 16.7732 16.7738C18.0215 15.5255 18.3298 13.5286 17.6401 11.1512C16.9891 8.90638 15.5126 6.55259 13.4826 4.52284C10.5769 1.61679 7.2161 0.00597031 4.55417 0H4.51819ZM11.5084 16.4099C9.46706 15.818 7.30764 14.4566 5.42849 12.577C1.70684 8.85563 0.199673 4.07507 2.13703 2.13737C2.7125 1.56207 3.53856 1.29058 4.51354 1.29058C6.82123 1.29058 9.9611 2.81235 12.5771 5.42851C14.4569 7.308 15.8176 9.46709 16.41 11.5083C16.9634 13.4166 16.7709 14.9649 15.8677 15.8681C15.302 16.4331 14.4843 16.72 13.4841 16.72C12.8859 16.72 12.222 16.6172 11.5084 16.4099Z"), zt(n, "fill", "url(#" + /*gradientId*/
9632
+ t[3] + ")"), zt(n, "d", "M11.1483 0.360687C8.90517 1.01235 6.55252 2.48946 4.52328 4.5188C0.166276 8.87725 -1.28019 14.2587 1.23026 16.7697C2.06293 17.6026 3.21138 18 4.5339 18C7.19718 18 10.5655 16.3873 13.4767 13.4752C17.8334 9.11694 19.28 3.73601 16.7702 1.22481C15.9583 0.413305 14.8303 0 13.4865 0C12.7642 0 11.9795 0.11951 11.1483 0.360687ZM2.14341 15.856C1.24354 14.9563 1.05288 13.4115 1.60627 11.5066C2.19817 9.468 3.55852 7.31101 5.43692 5.43222C7.31433 3.55376 9.47084 2.19334 11.5085 1.60093C12.2231 1.39362 12.8867 1.29071 13.4845 1.29071C14.4808 1.29071 15.2947 1.57604 15.8566 2.13856C16.7563 3.0382 16.947 4.5832 16.3937 6.48756C15.8018 8.52586 14.4415 10.683 12.5632 12.562C9.94941 15.1771 6.8127 16.6998 4.50967 16.6998C3.53911 16.6998 2.71639 16.4293 2.14341 15.856Z"), zt(
9631
9633
  l,
9632
9634
  "stop-color",
9633
9635
  /*color1*/
9634
9636
  t[1]
9635
- ), jt(a, "offset", "1"), jt(
9637
+ ), zt(a, "offset", "1"), zt(
9636
9638
  a,
9637
9639
  "stop-color",
9638
9640
  /*color2*/
9639
9641
  t[2]
9640
- ), jt(
9642
+ ), zt(
9641
9643
  s,
9642
9644
  "id",
9643
9645
  /*gradientId*/
9644
9646
  t[3]
9645
- ), jt(s, "x1", "0"), jt(s, "y1", "9"), jt(s, "x2", "18"), jt(s, "y2", "9"), jt(s, "gradientUnits", "userSpaceOnUse"), jt(e, "width", r = 16 * /*scale*/
9646
- t[0]), jt(e, "height", u = 16 * /*scale*/
9647
- t[0]), jt(e, "viewBox", "0 0 18 18"), jt(e, "fill", "none"), jt(e, "xmlns", "http://www.w3.org/2000/svg");
9647
+ ), zt(s, "x1", "0"), zt(s, "y1", "9"), zt(s, "x2", "18"), zt(s, "y2", "9"), zt(s, "gradientUnits", "userSpaceOnUse"), zt(e, "width", r = 16 * /*scale*/
9648
+ t[0]), zt(e, "height", u = 16 * /*scale*/
9649
+ t[0]), zt(e, "viewBox", "0 0 18 18"), zt(e, "fill", "none"), zt(e, "xmlns", "http://www.w3.org/2000/svg");
9648
9650
  },
9649
9651
  m(c, g) {
9650
9652
  E(c, e, g), m(e, i), m(e, n), m(e, o), m(o, s), m(s, l), m(s, a);
9651
9653
  },
9652
9654
  p(c, [g]) {
9653
9655
  g & /*color1*/
9654
- 2 && jt(
9656
+ 2 && zt(
9655
9657
  l,
9656
9658
  "stop-color",
9657
9659
  /*color1*/
9658
9660
  c[1]
9659
9661
  ), g & /*color2*/
9660
- 4 && jt(
9662
+ 4 && zt(
9661
9663
  a,
9662
9664
  "stop-color",
9663
9665
  /*color2*/
9664
9666
  c[2]
9665
9667
  ), g & /*scale*/
9666
9668
  1 && r !== (r = 16 * /*scale*/
9667
- c[0]) && jt(e, "width", r), g & /*scale*/
9669
+ c[0]) && zt(e, "width", r), g & /*scale*/
9668
9670
  1 && u !== (u = 16 * /*scale*/
9669
- c[0]) && jt(e, "height", u);
9671
+ c[0]) && zt(e, "height", u);
9670
9672
  },
9671
9673
  i: Q,
9672
9674
  o: Q,
@@ -9683,7 +9685,7 @@ function L2(t, e, i) {
9683
9685
  }
9684
9686
  class x2 extends Te {
9685
9687
  constructor(e) {
9686
- super(), we(this, e, L2, z2, pe, { scale: 0, color1: 1, color2: 2 });
9688
+ super(), we(this, e, L2, j2, pe, { scale: 0, color1: 1, color2: 2 });
9687
9689
  }
9688
9690
  get scale() {
9689
9691
  return this.$$.ctx[0];
@@ -9749,7 +9751,7 @@ function R2(t) {
9749
9751
  n || (I(i.$$.fragment, l), n = !0);
9750
9752
  },
9751
9753
  o(l) {
9752
- z(i.$$.fragment, l), n = !1;
9754
+ j(i.$$.fragment, l), n = !1;
9753
9755
  },
9754
9756
  d(l) {
9755
9757
  l && O(e), ce(i), o = !1, ft(s);
@@ -9796,7 +9798,7 @@ let Lr = class extends Te {
9796
9798
  const no = (t, e, i) => Ce(t, e, e === "style" ? H2(i) : i), U2 = /;(?!([^()]*\([^()]*\))*[^()]*\))/, H2 = (t) => t.split(U2).filter((e) => e).map((e) => e + " !important").join(";");
9797
9799
  function q2(t) {
9798
9800
  let e, i, n, o, s;
9799
- return i = new zr({
9801
+ return i = new jr({
9800
9802
  props: {
9801
9803
  scale: (
9802
9804
  /*scale*/
@@ -9846,7 +9848,7 @@ function q2(t) {
9846
9848
  n || (I(i.$$.fragment, l), n = !0);
9847
9849
  },
9848
9850
  o(l) {
9849
- z(i.$$.fragment, l), n = !1;
9851
+ j(i.$$.fragment, l), n = !1;
9850
9852
  },
9851
9853
  d(l) {
9852
9854
  l && O(e), ce(i), o = !1, ft(s);
@@ -10713,7 +10715,7 @@ class f_ extends Te {
10713
10715
  this.$$set({ onEvent: e }), d();
10714
10716
  }
10715
10717
  }
10716
- const Jo = (t, e, i) => Yt(t, e, i, 1), zt = (t, e, i) => Ce(t, e, e === "style" ? h_(i) : i), m_ = /;(?!([^()]*\([^()]*\))*[^()]*\))/, h_ = (t) => t.split(m_).filter((e) => e).map((e) => e + " !important").join(";");
10718
+ const Jo = (t, e, i) => Yt(t, e, i, 1), jt = (t, e, i) => Ce(t, e, e === "style" ? h_(i) : i), m_ = /;(?!([^()]*\([^()]*\))*[^()]*\))/, h_ = (t) => t.split(m_).filter((e) => e).map((e) => e + " !important").join(";");
10717
10719
  function __(t) {
10718
10720
  let e;
10719
10721
  const i = (
@@ -10758,7 +10760,7 @@ function __(t) {
10758
10760
  e || (I(n, o), e = !0);
10759
10761
  },
10760
10762
  o(o) {
10761
- z(n, o), e = !1;
10763
+ j(n, o), e = !1;
10762
10764
  },
10763
10765
  d(o) {
10764
10766
  n && n.d(o);
@@ -10779,39 +10781,39 @@ function A_(t) {
10779
10781
  );
10780
10782
  return {
10781
10783
  c() {
10782
- e = y("div"), i = Se("svg"), n = Se("circle"), s = J(), c && c.c(), zt(n, "cx", "50%"), zt(n, "cy", "50%"), zt(
10784
+ e = y("div"), i = Se("svg"), n = Se("circle"), s = J(), c && c.c(), jt(n, "cx", "50%"), jt(n, "cy", "50%"), jt(
10783
10785
  n,
10784
10786
  "r",
10785
10787
  /*radius*/
10786
10788
  t[5]
10787
- ), zt(
10789
+ ), jt(
10788
10790
  n,
10789
10791
  "stroke",
10790
10792
  /*color*/
10791
10793
  t[2]
10792
- ), zt(
10794
+ ), jt(
10793
10795
  n,
10794
10796
  "stroke-width",
10795
10797
  /*strokeWidth*/
10796
10798
  t[6]
10797
- ), zt(n, "stroke-dasharray", o = /*circumference*/
10799
+ ), jt(n, "stroke-dasharray", o = /*circumference*/
10798
10800
  t[4] + " " + /*circumference*/
10799
- t[4]), zt(
10801
+ t[4]), jt(
10800
10802
  n,
10801
10803
  "stroke-dashoffset",
10802
10804
  /*dashOffset*/
10803
10805
  t[7]
10804
- ), zt(i, "fill", "none"), zt(
10806
+ ), jt(i, "fill", "none"), jt(
10805
10807
  i,
10806
10808
  "width",
10807
10809
  /*size*/
10808
10810
  t[8]
10809
- ), zt(
10811
+ ), jt(
10810
10812
  i,
10811
10813
  "height",
10812
10814
  /*size*/
10813
10815
  t[8]
10814
- ), zt(i, "xmlns", "http://www.w3.org/2000/svg"), zt(i, "class", "svelte-niuvgx"), zt(e, "class", "progress-circle svelte-niuvgx"), zt(e, "role", "none"), Jo(
10816
+ ), jt(i, "xmlns", "http://www.w3.org/2000/svg"), jt(i, "class", "svelte-niuvgx"), jt(e, "class", "progress-circle svelte-niuvgx"), jt(e, "role", "none"), Jo(
10815
10817
  e,
10816
10818
  "width",
10817
10819
  /*scale*/
@@ -10838,19 +10840,19 @@ function A_(t) {
10838
10840
  },
10839
10841
  p(g, f) {
10840
10842
  t = g, (!l || f & /*radius*/
10841
- 32) && zt(
10843
+ 32) && jt(
10842
10844
  n,
10843
10845
  "r",
10844
10846
  /*radius*/
10845
10847
  t[5]
10846
10848
  ), (!l || f & /*color*/
10847
- 4) && zt(
10849
+ 4) && jt(
10848
10850
  n,
10849
10851
  "stroke",
10850
10852
  /*color*/
10851
10853
  t[2]
10852
10854
  ), (!l || f & /*strokeWidth*/
10853
- 64) && zt(
10855
+ 64) && jt(
10854
10856
  n,
10855
10857
  "stroke-width",
10856
10858
  /*strokeWidth*/
@@ -10858,20 +10860,20 @@ function A_(t) {
10858
10860
  ), (!l || f & /*circumference*/
10859
10861
  16 && o !== (o = /*circumference*/
10860
10862
  t[4] + " " + /*circumference*/
10861
- t[4])) && zt(n, "stroke-dasharray", o), (!l || f & /*dashOffset*/
10862
- 128) && zt(
10863
+ t[4])) && jt(n, "stroke-dasharray", o), (!l || f & /*dashOffset*/
10864
+ 128) && jt(
10863
10865
  n,
10864
10866
  "stroke-dashoffset",
10865
10867
  /*dashOffset*/
10866
10868
  t[7]
10867
10869
  ), (!l || f & /*size*/
10868
- 256) && zt(
10870
+ 256) && jt(
10869
10871
  i,
10870
10872
  "width",
10871
10873
  /*size*/
10872
10874
  t[8]
10873
10875
  ), (!l || f & /*size*/
10874
- 256) && zt(
10876
+ 256) && jt(
10875
10877
  i,
10876
10878
  "height",
10877
10879
  /*size*/
@@ -10912,7 +10914,7 @@ function A_(t) {
10912
10914
  l || (I(c, g), l = !0);
10913
10915
  },
10914
10916
  o(g) {
10915
- z(c, g), l = !1;
10917
+ j(c, g), l = !1;
10916
10918
  },
10917
10919
  d(g) {
10918
10920
  g && O(e), c && c.d(g), a = !1, r();
@@ -10937,7 +10939,7 @@ function y_(t) {
10937
10939
  },
10938
10940
  p(r, [u]) {
10939
10941
  let c = e;
10940
- e = a(r), e === c ? l[e].p(r, u) : (Fe(), z(l[c], 1, 1, () => {
10942
+ e = a(r), e === c ? l[e].p(r, u) : (Fe(), j(l[c], 1, 1, () => {
10941
10943
  l[c] = null;
10942
10944
  }), Ue(), i = l[e], i ? i.p(r, u) : (i = l[e] = s[e](r), i.c()), I(i, 1), i.m(n.parentNode, n));
10943
10945
  },
@@ -10945,7 +10947,7 @@ function y_(t) {
10945
10947
  o || (I(i), o = !0);
10946
10948
  },
10947
10949
  o(r) {
10948
- z(i), o = !1;
10950
+ j(i), o = !1;
10949
10951
  },
10950
10952
  d(r) {
10951
10953
  r && O(n), l[e].d(r);
@@ -11216,7 +11218,7 @@ class Dr extends Te {
11216
11218
  }
11217
11219
  }
11218
11220
  const $o = (t, e, i) => Yt(t, e, i, 1), O_ = (t, e, i) => Ce(t, e, e === "style" ? E_(i) : i), M_ = /;(?!([^()]*\([^()]*\))*[^()]*\))/, E_ = (t) => t.split(M_).filter((e) => e).map((e) => e + " !important").join(";");
11219
- function j_(t) {
11221
+ function z_(t) {
11220
11222
  let e, i = Un(
11221
11223
  /*currentTime*/
11222
11224
  t[0]
@@ -11263,7 +11265,7 @@ function j_(t) {
11263
11265
  }
11264
11266
  };
11265
11267
  }
11266
- function z_(t, e, i) {
11268
+ function j_(t, e, i) {
11267
11269
  let { currentTime: n = 0 } = e, { duration: o = 0 } = e, { scale: s = 1 } = e, { color: l = "#323232" } = e;
11268
11270
  return t.$$set = (a) => {
11269
11271
  "currentTime" in a && i(0, n = a.currentTime), "duration" in a && i(1, o = a.duration), "scale" in a && i(2, s = a.scale), "color" in a && i(3, l = a.color);
@@ -11271,7 +11273,7 @@ function z_(t, e, i) {
11271
11273
  }
11272
11274
  class L_ extends Te {
11273
11275
  constructor(e) {
11274
- super(), we(this, e, z_, j_, pe, {
11276
+ super(), we(this, e, j_, z_, pe, {
11275
11277
  currentTime: 0,
11276
11278
  duration: 1,
11277
11279
  scale: 2,
@@ -11348,7 +11350,7 @@ function N_(t) {
11348
11350
  i || (I(e.$$.fragment, n), i = !0);
11349
11351
  },
11350
11352
  o(n) {
11351
- z(e.$$.fragment, n), i = !1;
11353
+ j(e.$$.fragment, n), i = !1;
11352
11354
  },
11353
11355
  d(n) {
11354
11356
  ce(e, n);
@@ -11393,7 +11395,7 @@ function R_(t) {
11393
11395
  i || (I(e.$$.fragment, n), i = !0);
11394
11396
  },
11395
11397
  o(n) {
11396
- z(e.$$.fragment, n), i = !1;
11398
+ j(e.$$.fragment, n), i = !1;
11397
11399
  },
11398
11400
  d(n) {
11399
11401
  ce(e, n);
@@ -11439,7 +11441,7 @@ function F_(t) {
11439
11441
  i || (I(e.$$.fragment, n), i = !0);
11440
11442
  },
11441
11443
  o(n) {
11442
- z(e.$$.fragment, n), i = !1;
11444
+ j(e.$$.fragment, n), i = !1;
11443
11445
  },
11444
11446
  d(n) {
11445
11447
  ce(e, n);
@@ -11510,7 +11512,7 @@ function H_(t) {
11510
11512
  },
11511
11513
  p(c, [g]) {
11512
11514
  let f = n;
11513
- n = u(c), n === f ? r[n].p(c, g) : (Fe(), z(r[f], 1, 1, () => {
11515
+ n = u(c), n === f ? r[n].p(c, g) : (Fe(), j(r[f], 1, 1, () => {
11514
11516
  r[f] = null;
11515
11517
  }), Ue(), o = r[n], o ? o.p(c, g) : (o = r[n] = a[n](c), o.c()), I(o, 1), o.m(i, null)), (!l || g & /*playerStyle, positionClasses*/
11516
11518
  12 && s !== (s = "time-indicator " + /*playerStyle*/
@@ -11555,7 +11557,7 @@ function H_(t) {
11555
11557
  l || (I(o), l = !0);
11556
11558
  },
11557
11559
  o(c) {
11558
- z(o), l = !1;
11560
+ j(o), l = !1;
11559
11561
  },
11560
11562
  d(c) {
11561
11563
  c && O(e), r[n].d();
@@ -11831,7 +11833,7 @@ function eA(t) {
11831
11833
  n || (I(i.$$.fragment, o), n = !0);
11832
11834
  },
11833
11835
  o(o) {
11834
- z(i.$$.fragment, o), n = !1;
11836
+ j(i.$$.fragment, o), n = !1;
11835
11837
  },
11836
11838
  d(o) {
11837
11839
  o && O(e), ce(i);
@@ -11974,7 +11976,7 @@ function ma(t) {
11974
11976
  p(q, N) {
11975
11977
  t = q;
11976
11978
  let X = n;
11977
- n = S(t), n === X ? D[n].p(t, N) : (Fe(), z(D[X], 1, 1, () => {
11979
+ n = S(t), n === X ? D[n].p(t, N) : (Fe(), j(D[X], 1, 1, () => {
11978
11980
  D[X] = null;
11979
11981
  }), Ue(), o = D[n], o ? o.p(t, N) : (o = D[n] = L[n](t), o.c()), I(o, 1), o.m(i, s));
11980
11982
  const te = {};
@@ -12037,7 +12039,7 @@ function ma(t) {
12037
12039
  T || (I(o), I(a.$$.fragment, q), I(c.$$.fragment, q), I(_.$$.fragment, q), T = !0);
12038
12040
  },
12039
12041
  o(q) {
12040
- z(o), z(a.$$.fragment, q), z(c.$$.fragment, q), z(_.$$.fragment, q), T = !1;
12042
+ j(o), j(a.$$.fragment, q), j(c.$$.fragment, q), j(_.$$.fragment, q), T = !1;
12041
12043
  },
12042
12044
  d(q) {
12043
12045
  q && O(e), D[n].d(), ce(a), ce(c), ce(_), v = !1, ft(p);
@@ -12052,7 +12054,7 @@ function tA(t) {
12052
12054
  ), s = [];
12053
12055
  for (let a = 0; a < o.length; a += 1)
12054
12056
  s[a] = ma(fa(t, o, a));
12055
- const l = (a) => z(s[a], 1, 1, () => {
12057
+ const l = (a) => j(s[a], 1, 1, () => {
12056
12058
  s[a] = null;
12057
12059
  });
12058
12060
  return {
@@ -12151,7 +12153,7 @@ function tA(t) {
12151
12153
  o(a) {
12152
12154
  s = s.filter(Boolean);
12153
12155
  for (let r = 0; r < s.length; r += 1)
12154
- z(s[r]);
12156
+ j(s[r]);
12155
12157
  n = !1;
12156
12158
  },
12157
12159
  d(a) {
@@ -12359,7 +12361,7 @@ function lA(t) {
12359
12361
  i || (I(l, a), i = !0);
12360
12362
  },
12361
12363
  o(a) {
12362
- z(l, a), i = !1;
12364
+ j(l, a), i = !1;
12363
12365
  },
12364
12366
  d(a) {
12365
12367
  a && O(e), l && l.d(a), n = !1, ft(o);
@@ -12467,7 +12469,7 @@ function gA(t) {
12467
12469
  i || (I(o, s), i = !0);
12468
12470
  },
12469
12471
  o(s) {
12470
- z(o, s), i = !1;
12472
+ j(o, s), i = !1;
12471
12473
  },
12472
12474
  d(s) {
12473
12475
  s && O(e), o && o.d(s), t[8](null);
@@ -12577,7 +12579,7 @@ function ya(t) {
12577
12579
  },
12578
12580
  p(s, l) {
12579
12581
  /*videoPosterImage*/
12580
- s[18] ? o && (Fe(), z(o, 1, 1, () => {
12582
+ s[18] ? o && (Fe(), j(o, 1, 1, () => {
12581
12583
  o = null;
12582
12584
  }), Ue()) : o ? (o.p(s, l), l[0] & /*videoPosterImage*/
12583
12585
  262144 && I(o, 1)) : (o = va(s), o.c(), I(o, 1), o.m(e, null)), (!n || l[0] & /*videoPosterImage*/
@@ -12589,7 +12591,7 @@ function ya(t) {
12589
12591
  n || (I(o), n = !0);
12590
12592
  },
12591
12593
  o(s) {
12592
- z(o), n = !1;
12594
+ j(o), n = !1;
12593
12595
  },
12594
12596
  d(s) {
12595
12597
  s && O(e), o && o.d();
@@ -12631,7 +12633,7 @@ function va(t) {
12631
12633
  l || (I(e.$$.fragment, a), l = !0);
12632
12634
  },
12633
12635
  o(a) {
12634
- z(e.$$.fragment, a), l = !1;
12636
+ j(e.$$.fragment, a), l = !1;
12635
12637
  },
12636
12638
  d(a) {
12637
12639
  a && (O(i), O(n)), ce(e, a);
@@ -12682,7 +12684,7 @@ function ba(t) {
12682
12684
  i || (I(e.$$.fragment, n), i = !0);
12683
12685
  },
12684
12686
  o(n) {
12685
- z(e.$$.fragment, n), i = !1;
12687
+ j(e.$$.fragment, n), i = !1;
12686
12688
  },
12687
12689
  d(n) {
12688
12690
  ce(e, n);
@@ -12790,7 +12792,7 @@ function ka(t) {
12790
12792
  s || (I(i.$$.fragment, l), I(o.$$.fragment, l), s = !0);
12791
12793
  },
12792
12794
  o(l) {
12793
- z(i.$$.fragment, l), z(o.$$.fragment, l), s = !1;
12795
+ j(i.$$.fragment, l), j(o.$$.fragment, l), s = !1;
12794
12796
  },
12795
12797
  d(l) {
12796
12798
  l && O(e), ce(i), ce(o);
@@ -12841,7 +12843,7 @@ function kA(t) {
12841
12843
  i || (I(e.$$.fragment, n), i = !0);
12842
12844
  },
12843
12845
  o(n) {
12844
- z(e.$$.fragment, n), i = !1;
12846
+ j(e.$$.fragment, n), i = !1;
12845
12847
  },
12846
12848
  d(n) {
12847
12849
  ce(e, n);
@@ -12911,7 +12913,7 @@ function pA(t) {
12911
12913
  i || (I(e.$$.fragment, n), i = !0);
12912
12914
  },
12913
12915
  o(n) {
12914
- z(e.$$.fragment, n), i = !1;
12916
+ j(e.$$.fragment, n), i = !1;
12915
12917
  },
12916
12918
  d(n) {
12917
12919
  ce(e, n);
@@ -12972,7 +12974,7 @@ function pa(t) {
12972
12974
  i || (I(e.$$.fragment, n), i = !0);
12973
12975
  },
12974
12976
  o(n) {
12975
- z(e.$$.fragment, n), i = !1;
12977
+ j(e.$$.fragment, n), i = !1;
12976
12978
  },
12977
12979
  d(n) {
12978
12980
  ce(e, n);
@@ -13087,7 +13089,7 @@ function Sa(t) {
13087
13089
  l || (I(e.$$.fragment, a), I(n.$$.fragment, a), I(s.$$.fragment, a), l = !0);
13088
13090
  },
13089
13091
  o(a) {
13090
- z(e.$$.fragment, a), z(n.$$.fragment, a), z(s.$$.fragment, a), l = !1;
13092
+ j(e.$$.fragment, a), j(n.$$.fragment, a), j(s.$$.fragment, a), l = !1;
13091
13093
  },
13092
13094
  d(a) {
13093
13095
  a && (O(i), O(o)), ce(e, a), ce(n, a), ce(s, a);
@@ -13130,7 +13132,7 @@ function wa(t) {
13130
13132
  i || (I(e.$$.fragment, n), i = !0);
13131
13133
  },
13132
13134
  o(n) {
13133
- z(e.$$.fragment, n), i = !1;
13135
+ j(e.$$.fragment, n), i = !1;
13134
13136
  },
13135
13137
  d(n) {
13136
13138
  ce(e, n);
@@ -13193,7 +13195,7 @@ function Ta(t) {
13193
13195
  i || (I(e.$$.fragment, n), i = !0);
13194
13196
  },
13195
13197
  o(n) {
13196
- z(e.$$.fragment, n), i = !1;
13198
+ j(e.$$.fragment, n), i = !1;
13197
13199
  },
13198
13200
  d(n) {
13199
13201
  ce(e, n);
@@ -13326,7 +13328,7 @@ function Pa(t) {
13326
13328
  o || (I(e.$$.fragment, s), I(n.$$.fragment, s), o = !0);
13327
13329
  },
13328
13330
  o(s) {
13329
- z(e.$$.fragment, s), z(n.$$.fragment, s), o = !1;
13331
+ j(e.$$.fragment, s), j(n.$$.fragment, s), o = !1;
13330
13332
  },
13331
13333
  d(s) {
13332
13334
  s && O(i), ce(e, s), ce(n, s);
@@ -13335,7 +13337,7 @@ function Pa(t) {
13335
13337
  }
13336
13338
  function Ca(t) {
13337
13339
  let e, i;
13338
- return e = new j0({
13340
+ return e = new z0({
13339
13341
  props: {
13340
13342
  playerStyle: (
13341
13343
  /*playerStyle*/
@@ -13394,7 +13396,7 @@ function Ca(t) {
13394
13396
  i || (I(e.$$.fragment, n), i = !0);
13395
13397
  },
13396
13398
  o(n) {
13397
- z(e.$$.fragment, n), i = !1;
13399
+ j(e.$$.fragment, n), i = !1;
13398
13400
  },
13399
13401
  d(n) {
13400
13402
  ce(e, n);
@@ -13478,7 +13480,7 @@ function SA(t) {
13478
13480
  i || (I(e.$$.fragment, s), i = !0);
13479
13481
  },
13480
13482
  o(s) {
13481
- z(e.$$.fragment, s), i = !1;
13483
+ j(e.$$.fragment, s), i = !1;
13482
13484
  },
13483
13485
  d(s) {
13484
13486
  ce(e, s);
@@ -13538,7 +13540,7 @@ function wA(t) {
13538
13540
  i || (I(e.$$.fragment, n), i = !0);
13539
13541
  },
13540
13542
  o(n) {
13541
- z(e.$$.fragment, n), i = !1;
13543
+ j(e.$$.fragment, n), i = !1;
13542
13544
  },
13543
13545
  d(n) {
13544
13546
  ce(e, n);
@@ -13589,7 +13591,7 @@ function TA(t) {
13589
13591
  i || (I(e.$$.fragment, n), i = !0);
13590
13592
  },
13591
13593
  o(n) {
13592
- z(e.$$.fragment, n), i = !1;
13594
+ j(e.$$.fragment, n), i = !1;
13593
13595
  },
13594
13596
  d(n) {
13595
13597
  ce(e, n);
@@ -13634,7 +13636,7 @@ function Ia(t) {
13634
13636
  i || (I(e.$$.fragment, n), i = !0);
13635
13637
  },
13636
13638
  o(n) {
13637
- z(e.$$.fragment, n), i = !1;
13639
+ j(e.$$.fragment, n), i = !1;
13638
13640
  },
13639
13641
  d(n) {
13640
13642
  ce(e, n);
@@ -13684,7 +13686,7 @@ function Va(t) {
13684
13686
  i || (I(e.$$.fragment, n), i = !0);
13685
13687
  },
13686
13688
  o(n) {
13687
- z(e.$$.fragment, n), i = !1;
13689
+ j(e.$$.fragment, n), i = !1;
13688
13690
  },
13689
13691
  d(n) {
13690
13692
  ce(e, n);
@@ -13726,18 +13728,18 @@ function PA(t) {
13726
13728
  },
13727
13729
  p(A, _) {
13728
13730
  let k = e;
13729
- e = c(A), e === k ? ~e && u[e].p(A, _) : (i && (Fe(), z(u[k], 1, 1, () => {
13731
+ e = c(A), e === k ? ~e && u[e].p(A, _) : (i && (Fe(), j(u[k], 1, 1, () => {
13730
13732
  u[k] = null;
13731
13733
  }), Ue()), ~e ? (i = u[e], i ? i.p(A, _) : (i = u[e] = r[e](A), i.c()), I(i, 1), i.m(n.parentNode, n)) : i = null), _[0] & /*isVideo*/
13732
13734
  4194304 && (o = /*isVideo*/
13733
13735
  A[22] && _a()), o ? g ? (g.p(A, _), _[0] & /*isVideo*/
13734
- 4194304 && I(g, 1)) : (g = Ia(A), g.c(), I(g, 1), g.m(s.parentNode, s)) : g && (Fe(), z(g, 1, 1, () => {
13736
+ 4194304 && I(g, 1)) : (g = Ia(A), g.c(), I(g, 1), g.m(s.parentNode, s)) : g && (Fe(), j(g, 1, 1, () => {
13735
13737
  g = null;
13736
13738
  }), Ue()), /*isVideo*/
13737
13739
  A[22] && /*showBeyondWords*/
13738
13740
  A[44] ? f ? (f.p(A, _), _[0] & /*isVideo*/
13739
13741
  4194304 | _[1] & /*showBeyondWords*/
13740
- 8192 && I(f, 1)) : (f = Va(A), f.c(), I(f, 1), f.m(l.parentNode, l)) : f && (Fe(), z(f, 1, 1, () => {
13742
+ 8192 && I(f, 1)) : (f = Va(A), f.c(), I(f, 1), f.m(l.parentNode, l)) : f && (Fe(), j(f, 1, 1, () => {
13741
13743
  f = null;
13742
13744
  }), Ue());
13743
13745
  },
@@ -13745,7 +13747,7 @@ function PA(t) {
13745
13747
  a || (I(i), I(g), I(f), a = !0);
13746
13748
  },
13747
13749
  o(A) {
13748
- z(i), z(g), z(f), a = !1;
13750
+ j(i), j(g), j(f), a = !1;
13749
13751
  },
13750
13752
  d(A) {
13751
13753
  A && (O(n), O(s), O(l)), ~e && u[e].d(A), g && g.d(A), f && f.d(A);
@@ -13786,7 +13788,7 @@ function Ba(t) {
13786
13788
  },
13787
13789
  p(r, u) {
13788
13790
  let c = i;
13789
- i = a(r), i === c ? ~i && l[i].p(r, u) : (n && (Fe(), z(l[c], 1, 1, () => {
13791
+ i = a(r), i === c ? ~i && l[i].p(r, u) : (n && (Fe(), j(l[c], 1, 1, () => {
13790
13792
  l[c] = null;
13791
13793
  }), Ue()), ~i ? (n = l[i], n ? n.p(r, u) : (n = l[i] = s[i](r), n.c()), I(n, 1), n.m(e, null)) : n = null), (!o || u[0] & /*logoImagePosition*/
13792
13794
  65536) && ne(
@@ -13809,7 +13811,7 @@ function Ba(t) {
13809
13811
  o || (I(n), o = !0);
13810
13812
  },
13811
13813
  o(r) {
13812
- z(n), o = !1;
13814
+ j(n), o = !1;
13813
13815
  },
13814
13816
  d(r) {
13815
13817
  r && O(e), ~i && l[i].d();
@@ -13859,7 +13861,7 @@ function CA(t) {
13859
13861
  i || (I(e.$$.fragment, n), i = !0);
13860
13862
  },
13861
13863
  o(n) {
13862
- z(e.$$.fragment, n), i = !1;
13864
+ j(e.$$.fragment, n), i = !1;
13863
13865
  },
13864
13866
  d(n) {
13865
13867
  ce(e, n);
@@ -13910,7 +13912,7 @@ function IA(t) {
13910
13912
  i || (I(e.$$.fragment, n), i = !0);
13911
13913
  },
13912
13914
  o(n) {
13913
- z(e.$$.fragment, n), i = !1;
13915
+ j(e.$$.fragment, n), i = !1;
13914
13916
  },
13915
13917
  d(n) {
13916
13918
  ce(e, n);
@@ -14071,7 +14073,7 @@ function VA(t) {
14071
14073
  b[22] && /*videoPosterImage*/
14072
14074
  (b[18] || !/*videoIsBehind*/
14073
14075
  b[19]) ? P ? (P.p(b, C), C[0] & /*isVideo, videoPosterImage, videoIsBehind*/
14074
- 4980736 && I(P, 1)) : (P = ya(b), P.c(), I(P, 1), P.m(e.parentNode, e)) : P && (Fe(), z(P, 1, 1, () => {
14076
+ 4980736 && I(P, 1)) : (P = ya(b), P.c(), I(P, 1), P.m(e.parentNode, e)) : P && (Fe(), j(P, 1, 1, () => {
14075
14077
  P = null;
14076
14078
  }), Ue()), /*largeImage*/
14077
14079
  b[49] && /*isLarge*/
@@ -14079,13 +14081,13 @@ function VA(t) {
14079
14081
  b[27]) ? Y ? (Y.p(b, C), C[0] & /*isScreen*/
14080
14082
  134217728 | C[1] & /*largeImage*/
14081
14083
  262144 | C[2] & /*isLarge*/
14082
- 2 && I(Y, 1)) : (Y = ba(b), Y.c(), I(Y, 1), Y.m(i, n)) : Y && (Fe(), z(Y, 1, 1, () => {
14084
+ 2 && I(Y, 1)) : (Y = ba(b), Y.c(), I(Y, 1), Y.m(i, n)) : Y && (Fe(), j(Y, 1, 1, () => {
14083
14085
  Y = null;
14084
14086
  }), Ue()), /*isLarge*/
14085
14087
  b[63] || /*isScreen*/
14086
14088
  b[27] ? q ? (q.p(b, C), C[0] & /*isScreen*/
14087
14089
  134217728 | C[2] & /*isLarge*/
14088
- 2 && I(q, 1)) : (q = ka(b), q.c(), I(q, 1), q.m(i, o)) : q && (Fe(), z(q, 1, 1, () => {
14090
+ 2 && I(q, 1)) : (q = ka(b), q.c(), I(q, 1), q.m(i, o)) : q && (Fe(), j(q, 1, 1, () => {
14089
14091
  q = null;
14090
14092
  }), Ue());
14091
14093
  const F = {};
@@ -14106,7 +14108,7 @@ function VA(t) {
14106
14108
  b[29] && /*isStopped*/
14107
14109
  b[30] || /*isSmall*/
14108
14110
  b[25] ? $ ? ($.p(b, C), C[0] & /*isStandard, isStopped, isSmall*/
14109
- 1644167168 && I($, 1)) : ($ = pa(b), $.c(), I($, 1), $.m(s, g)) : $ && (Fe(), z($, 1, 1, () => {
14111
+ 1644167168 && I($, 1)) : ($ = pa(b), $.c(), I($, 1), $.m(s, g)) : $ && (Fe(), j($, 1, 1, () => {
14110
14112
  $ = null;
14111
14113
  }), Ue()), !/*isSmall*/
14112
14114
  b[25] && !/*isStopped*/
@@ -14114,7 +14116,7 @@ function VA(t) {
14114
14116
  b[28] || /*isScreen*/
14115
14117
  b[27] && /*isAdvert*/
14116
14118
  b[28] ? ee ? (ee.p(b, C), C[0] & /*isSmall, isStopped, isAdvert, isScreen*/
14117
- 1509949440 && I(ee, 1)) : (ee = Sa(b), ee.c(), I(ee, 1), ee.m(s, f)) : ee && (Fe(), z(ee, 1, 1, () => {
14119
+ 1509949440 && I(ee, 1)) : (ee = Sa(b), ee.c(), I(ee, 1), ee.m(s, f)) : ee && (Fe(), j(ee, 1, 1, () => {
14118
14120
  ee = null;
14119
14121
  }), Ue()), /*isStandard*/
14120
14122
  b[29] && /*fixedPosition*/
@@ -14123,7 +14125,7 @@ function VA(t) {
14123
14125
  b[28] && /*width*/
14124
14126
  b[20] > 720 && /*controlsOrder*/
14125
14127
  b[23] !== "left-to-right-but-swap-ends" ? de ? (de.p(b, C), C[0] & /*isStandard, fixedPosition, isStopped, isAdvert, width, controlsOrder*/
14126
- 1888485632 && I(de, 1)) : (de = wa(b), de.c(), I(de, 1), de.m(s, A)) : de && (Fe(), z(de, 1, 1, () => {
14128
+ 1888485632 && I(de, 1)) : (de = wa(b), de.c(), I(de, 1), de.m(s, A)) : de && (Fe(), j(de, 1, 1, () => {
14127
14129
  de = null;
14128
14130
  }), Ue());
14129
14131
  const x = {};
@@ -14159,15 +14161,15 @@ function VA(t) {
14159
14161
  b[30] ? he ? (he.p(b, C), C[0] & /*isStandard, isStopped, isVideo*/
14160
14162
  1614807040 | C[1] & /*isMobile*/
14161
14163
  2 | C[2] & /*isLarge*/
14162
- 2 && I(he, 1)) : (he = Ta(b), he.c(), I(he, 1), he.m(s, w)) : he && (Fe(), z(he, 1, 1, () => {
14164
+ 2 && I(he, 1)) : (he = Ta(b), he.c(), I(he, 1), he.m(s, w)) : he && (Fe(), j(he, 1, 1, () => {
14163
14165
  he = null;
14164
14166
  }), Ue()), /*isAdvert*/
14165
14167
  b[28] && !/*forcedCollapsed*/
14166
14168
  b[26] ? re ? (re.p(b, C), C[0] & /*isAdvert, forcedCollapsed*/
14167
- 335544320 && I(re, 1)) : (re = Pa(b), re.c(), I(re, 1), re.m(s, T)) : re && (Fe(), z(re, 1, 1, () => {
14169
+ 335544320 && I(re, 1)) : (re = Pa(b), re.c(), I(re, 1), re.m(s, T)) : re && (Fe(), j(re, 1, 1, () => {
14168
14170
  re = null;
14169
14171
  }), Ue()), /*isStopped*/
14170
- b[30] ? _e && (Fe(), z(_e, 1, 1, () => {
14172
+ b[30] ? _e && (Fe(), j(_e, 1, 1, () => {
14171
14173
  _e = null;
14172
14174
  }), Ue()) : _e ? (_e.p(b, C), C[0] & /*isStopped*/
14173
14175
  1073741824 && I(_e, 1)) : (_e = Ca(b), _e.c(), I(_e, 1), _e.m(s, null)), /*showCloseWidget*/
@@ -14177,7 +14179,7 @@ function VA(t) {
14177
14179
  b[28] && !/*isSmall*/
14178
14180
  b[25] ? ae ? (ae.p(b, C), C[0] & /*isVideo, isAdvert, isSmall*/
14179
14181
  306184192 | C[1] & /*showCloseWidget, showBeyondWords*/
14180
- 24576 && I(ae, 1)) : (ae = Ba(b), ae.c(), I(ae, 1), ae.m(i, null)) : ae && (Fe(), z(ae, 1, 1, () => {
14182
+ 24576 && I(ae, 1)) : (ae = Ba(b), ae.c(), I(ae, 1), ae.m(i, null)) : ae && (Fe(), j(ae, 1, 1, () => {
14181
14183
  ae = null;
14182
14184
  }), Ue()), (!L || C[0] & /*isVideo*/
14183
14185
  4194304 | C[1] & /*activeBgColor*/
@@ -14191,7 +14193,7 @@ function VA(t) {
14191
14193
  L || (I(P), I(Y), I(q), I(l.$$.fragment, b), I($), I(ee), I(de), I(_.$$.fragment, b), I(he), I(re), I(_e), I(ae), L = !0);
14192
14194
  },
14193
14195
  o(b) {
14194
- z(P), z(Y), z(q), z(l.$$.fragment, b), z($), z(ee), z(de), z(_.$$.fragment, b), z(he), z(re), z(_e), z(ae), L = !1;
14196
+ j(P), j(Y), j(q), j(l.$$.fragment, b), j($), j(ee), j(de), j(_.$$.fragment, b), j(he), j(re), j(_e), j(ae), L = !1;
14195
14197
  },
14196
14198
  d(b) {
14197
14199
  b && (O(e), O(i)), P && P.d(b), Y && Y.d(), q && q.d(), ce(l), $ && $.d(), ee && ee.d(), de && de.d(), ce(_), he && he.d(), re && re.d(), _e && _e.d(), ae && ae.d(), D = !1, ft(S);
@@ -14281,7 +14283,7 @@ function Wa(t) {
14281
14283
  i || (I(e.$$.fragment, n), i = !0);
14282
14284
  },
14283
14285
  o(n) {
14284
- z(e.$$.fragment, n), i = !1;
14286
+ j(e.$$.fragment, n), i = !1;
14285
14287
  },
14286
14288
  d(n) {
14287
14289
  ce(e, n);
@@ -14314,7 +14316,7 @@ function BA(t) {
14314
14316
  );
14315
14317
  return {
14316
14318
  c() {
14317
- e = y("div"), fe(i.$$.fragment), o = J(), f && f.c(), Mi(e, "class", s = zl(
14319
+ e = y("div"), fe(i.$$.fragment), o = J(), f && f.c(), Mi(e, "class", s = jl(
14318
14320
  /*classes*/
14319
14321
  t[41]
14320
14322
  ) + " svelte-152am9v"), bn(
@@ -14380,10 +14382,10 @@ function BA(t) {
14380
14382
  2097152 && (n = !0, k.isHovering = /*isHovering*/
14381
14383
  A[21], ve(() => n = !1)), i.$set(k), /*showPlaylist*/
14382
14384
  A[43] ? f ? (f.p(A, _), _[1] & /*showPlaylist*/
14383
- 4096 && I(f, 1)) : (f = Wa(A), f.c(), I(f, 1), f.m(e, null)) : f && (Fe(), z(f, 1, 1, () => {
14385
+ 4096 && I(f, 1)) : (f = Wa(A), f.c(), I(f, 1), f.m(e, null)) : f && (Fe(), j(f, 1, 1, () => {
14384
14386
  f = null;
14385
14387
  }), Ue()), (!a || _[1] & /*classes*/
14386
- 1024 && s !== (s = zl(
14388
+ 1024 && s !== (s = jl(
14387
14389
  /*classes*/
14388
14390
  A[41]
14389
14391
  ) + " svelte-152am9v")) && Mi(e, "class", s), (!a || _[1] & /*widthStyle*/
@@ -14450,7 +14452,7 @@ function BA(t) {
14450
14452
  }), a = !0);
14451
14453
  },
14452
14454
  o(A) {
14453
- z(i.$$.fragment, A), z(f), l || (l = Dl(
14455
+ j(i.$$.fragment, A), j(f), l || (l = Dl(
14454
14456
  e,
14455
14457
  /*flyWidget*/
14456
14458
  t[51],
@@ -14464,9 +14466,9 @@ function BA(t) {
14464
14466
  };
14465
14467
  }
14466
14468
  function WA(t, e, i) {
14467
- let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, j, Ae, Oe, Ye;
14469
+ let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, z, Ae, Oe, Ye;
14468
14470
  import("./././././././././style.js");
14469
- let { playerStyle: je = "standard" } = e, { callToAction: Ze = void 0 } = e, { skipButtonStyle: Ge = "auto" } = e, { playlistStyle: Pe = "auto-5-4" } = e, { playlistToggle: qe = "auto" } = e, { downloadFormats: Ie = [] } = e, { playerTitle: Lt = void 0 } = e, { fixedPosition: ke = void 0 } = e, { fixedWidth: Ke = "auto" } = e, { fixedMargin: Ne = "0" } = e, { content: tt = [] } = e, { contentIndex: Rt = 0 } = e, { duration: Re = 0 } = e, { currentTime: mt = 0 } = e, { playbackState: xe = "stopped" } = e, { playbackRate: ht = 1 } = e, { playbackRates: it = [] } = e, { activeAdvert: Me = void 0 } = e, { persistentAdvert: ze = void 0 } = e, { companionAdvert: _t = void 0 } = e, { textColor: At = "#111" } = e, { backgroundColor: Ct = "#f5f5f5" } = e, { iconColor: nt = "black" } = e, { videoTextColor: Xe = "white" } = e, { videoBackgroundColor: lt = "black" } = e, { videoIconColor: at = "white" } = e, { logoIconEnabled: It = !0 } = e, { logoImagePosition: vt = void 0 } = e, { maxImageSize: bt = 0 } = e, { onEvent: Vt = () => {
14471
+ let { playerStyle: ze = "standard" } = e, { callToAction: Ze = void 0 } = e, { skipButtonStyle: Ge = "auto" } = e, { playlistStyle: Pe = "auto-5-4" } = e, { playlistToggle: qe = "auto" } = e, { downloadFormats: Ie = [] } = e, { playerTitle: Lt = void 0 } = e, { fixedPosition: ke = void 0 } = e, { fixedWidth: Ke = "auto" } = e, { fixedMargin: Ne = "0" } = e, { content: tt = [] } = e, { contentIndex: Rt = 0 } = e, { duration: Re = 0 } = e, { currentTime: mt = 0 } = e, { playbackState: xe = "stopped" } = e, { playbackRate: ht = 1 } = e, { playbackRates: it = [] } = e, { activeAdvert: Me = void 0 } = e, { persistentAdvert: je = void 0 } = e, { companionAdvert: _t = void 0 } = e, { textColor: At = "#111" } = e, { backgroundColor: Ct = "#f5f5f5" } = e, { iconColor: nt = "black" } = e, { videoTextColor: Xe = "white" } = e, { videoBackgroundColor: lt = "black" } = e, { videoIconColor: at = "white" } = e, { logoIconEnabled: It = !0 } = e, { logoImagePosition: vt = void 0 } = e, { maxImageSize: bt = 0 } = e, { onEvent: Vt = () => {
14470
14472
  } } = e, { videoPosterImage: rt = "" } = e, { videoIsBehind: ot = !1 } = e, { isFullScreen: St = !1 } = e, { isVisible: Qe = void 0 } = e, { relativeY: kt = void 0 } = e, { absoluteY: He = void 0 } = e, dt, st, gt, $e;
14471
14473
  const et = () => {
14472
14474
  $e && clearTimeout($e), i(40, $e = setTimeout(() => i(40, $e = null), 500));
@@ -14501,20 +14503,20 @@ function WA(t, e, i) {
14501
14503
  });
14502
14504
  }
14503
14505
  return t.$$set = (Z) => {
14504
- "playerStyle" in Z && i(3, je = Z.playerStyle), "callToAction" in Z && i(4, Ze = Z.callToAction), "skipButtonStyle" in Z && i(66, Ge = Z.skipButtonStyle), "playlistStyle" in Z && i(5, Pe = Z.playlistStyle), "playlistToggle" in Z && i(67, qe = Z.playlistToggle), "downloadFormats" in Z && i(6, Ie = Z.downloadFormats), "playerTitle" in Z && i(7, Lt = Z.playerTitle), "fixedPosition" in Z && i(8, ke = Z.fixedPosition), "fixedWidth" in Z && i(68, Ke = Z.fixedWidth), "fixedMargin" in Z && i(9, Ne = Z.fixedMargin), "content" in Z && i(10, tt = Z.content), "contentIndex" in Z && i(11, Rt = Z.contentIndex), "duration" in Z && i(12, Re = Z.duration), "currentTime" in Z && i(13, mt = Z.currentTime), "playbackState" in Z && i(69, xe = Z.playbackState), "playbackRate" in Z && i(14, ht = Z.playbackRate), "playbackRates" in Z && i(15, it = Z.playbackRates), "activeAdvert" in Z && i(70, Me = Z.activeAdvert), "persistentAdvert" in Z && i(71, ze = Z.persistentAdvert), "companionAdvert" in Z && i(72, _t = Z.companionAdvert), "textColor" in Z && i(73, At = Z.textColor), "backgroundColor" in Z && i(74, Ct = Z.backgroundColor), "iconColor" in Z && i(75, nt = Z.iconColor), "videoTextColor" in Z && i(76, Xe = Z.videoTextColor), "videoBackgroundColor" in Z && i(77, lt = Z.videoBackgroundColor), "videoIconColor" in Z && i(78, at = Z.videoIconColor), "logoIconEnabled" in Z && i(79, It = Z.logoIconEnabled), "logoImagePosition" in Z && i(16, vt = Z.logoImagePosition), "maxImageSize" in Z && i(80, bt = Z.maxImageSize), "onEvent" in Z && i(17, Vt = Z.onEvent), "videoPosterImage" in Z && i(18, rt = Z.videoPosterImage), "videoIsBehind" in Z && i(19, ot = Z.videoIsBehind), "isFullScreen" in Z && i(81, St = Z.isFullScreen), "isVisible" in Z && i(0, Qe = Z.isVisible), "relativeY" in Z && i(1, kt = Z.relativeY), "absoluteY" in Z && i(2, He = Z.absoluteY);
14506
+ "playerStyle" in Z && i(3, ze = Z.playerStyle), "callToAction" in Z && i(4, Ze = Z.callToAction), "skipButtonStyle" in Z && i(66, Ge = Z.skipButtonStyle), "playlistStyle" in Z && i(5, Pe = Z.playlistStyle), "playlistToggle" in Z && i(67, qe = Z.playlistToggle), "downloadFormats" in Z && i(6, Ie = Z.downloadFormats), "playerTitle" in Z && i(7, Lt = Z.playerTitle), "fixedPosition" in Z && i(8, ke = Z.fixedPosition), "fixedWidth" in Z && i(68, Ke = Z.fixedWidth), "fixedMargin" in Z && i(9, Ne = Z.fixedMargin), "content" in Z && i(10, tt = Z.content), "contentIndex" in Z && i(11, Rt = Z.contentIndex), "duration" in Z && i(12, Re = Z.duration), "currentTime" in Z && i(13, mt = Z.currentTime), "playbackState" in Z && i(69, xe = Z.playbackState), "playbackRate" in Z && i(14, ht = Z.playbackRate), "playbackRates" in Z && i(15, it = Z.playbackRates), "activeAdvert" in Z && i(70, Me = Z.activeAdvert), "persistentAdvert" in Z && i(71, je = Z.persistentAdvert), "companionAdvert" in Z && i(72, _t = Z.companionAdvert), "textColor" in Z && i(73, At = Z.textColor), "backgroundColor" in Z && i(74, Ct = Z.backgroundColor), "iconColor" in Z && i(75, nt = Z.iconColor), "videoTextColor" in Z && i(76, Xe = Z.videoTextColor), "videoBackgroundColor" in Z && i(77, lt = Z.videoBackgroundColor), "videoIconColor" in Z && i(78, at = Z.videoIconColor), "logoIconEnabled" in Z && i(79, It = Z.logoIconEnabled), "logoImagePosition" in Z && i(16, vt = Z.logoImagePosition), "maxImageSize" in Z && i(80, bt = Z.maxImageSize), "onEvent" in Z && i(17, Vt = Z.onEvent), "videoPosterImage" in Z && i(18, rt = Z.videoPosterImage), "videoIsBehind" in Z && i(19, ot = Z.videoIsBehind), "isFullScreen" in Z && i(81, St = Z.isFullScreen), "isVisible" in Z && i(0, Qe = Z.isVisible), "relativeY" in Z && i(1, kt = Z.relativeY), "absoluteY" in Z && i(2, He = Z.absoluteY);
14505
14507
  }, t.$$.update = () => {
14506
14508
  t.$$.dirty[0] & /*playerStyle*/
14507
- 8 && i(25, n = je === "small"), t.$$.dirty[0] & /*playerStyle*/
14508
- 8 && i(29, o = je === "standard"), t.$$.dirty[0] & /*playerStyle*/
14509
- 8 && i(63, s = je === "large"), t.$$.dirty[0] & /*playerStyle*/
14510
- 8 && i(27, l = je === "screen"), t.$$.dirty[0] & /*playerStyle*/
14511
- 8 && i(22, a = je === "video"), t.$$.dirty[2] & /*playbackState*/
14509
+ 8 && i(25, n = ze === "small"), t.$$.dirty[0] & /*playerStyle*/
14510
+ 8 && i(29, o = ze === "standard"), t.$$.dirty[0] & /*playerStyle*/
14511
+ 8 && i(63, s = ze === "large"), t.$$.dirty[0] & /*playerStyle*/
14512
+ 8 && i(27, l = ze === "screen"), t.$$.dirty[0] & /*playerStyle*/
14513
+ 8 && i(22, a = ze === "video"), t.$$.dirty[2] & /*playbackState*/
14512
14514
  128 && i(62, r = xe === "playing"), t.$$.dirty[2] & /*playbackState*/
14513
14515
  128 && i(30, u = xe === "stopped"), t.$$.dirty[0] & /*isStopped*/
14514
14516
  1073741824 | t.$$.dirty[2] & /*activeAdvert*/
14515
14517
  256 && i(28, c = Me && !u), t.$$.dirty[0] & /*content*/
14516
14518
  1024 && i(82, g = tt.length > 1), t.$$.dirty[0] & /*playerStyle, width*/
14517
- 1048584 && i(32, f = hA({ playerStyle: je, width: st })), t.$$.dirty[0] & /*content, contentIndex*/
14519
+ 1048584 && i(32, f = hA({ playerStyle: ze, width: st })), t.$$.dirty[0] & /*content, contentIndex*/
14518
14520
  3072 && i(34, A = tt[Rt] || {}), t.$$.dirty[0] & /*currentTime, duration*/
14519
14521
  12288 && i(61, _ = mt / Re), t.$$.dirty[0] & /*isAdvert*/
14520
14522
  268435456 | t.$$.dirty[2] & /*activeAdvert, textColor*/
@@ -14548,13 +14550,13 @@ function WA(t, e, i) {
14548
14550
  536871168 && i(85, te = ke === "auto" ? o ? "center" : "right" : ke), t.$$.dirty[0] & /*fixedPosition*/
14549
14551
  256 | t.$$.dirty[2] & /*position*/
14550
14552
  8388608 && i(24, se = ke ? `fixed fixed-${te}` : ""), t.$$.dirty[0] & /*fixedPosition, isSmall, isStandard*/
14551
- 570425600 && i(51, $ = (Z) => ke && !window.disableAnimation && jm(Z, { y: n || o ? 40 : 100 })), t.$$.dirty[0] & /*fixedMargin*/
14552
- 512 && i(86, ee = Sr(Ne)), t.$$.dirty[2] & /*margin*/
14553
+ 570425600 && i(51, $ = (Z) => ke && !window.disableAnimation && zm(Z, { y: n || o ? 40 : 100 })), t.$$.dirty[0] & /*fixedMargin*/
14554
+ 512 && i(86, ee = wr(Ne)), t.$$.dirty[2] & /*margin*/
14553
14555
  16777216 && i(50, de = `calc(${ee.left} + ${ee.right})`), t.$$.dirty[0] & /*playerStyle, isAdvert*/
14554
14556
  268435464 | t.$$.dirty[1] & /*isMobile*/
14555
14557
  2 | t.$$.dirty[2] & /*position*/
14556
14558
  8388608 && i(23, he = _A({
14557
- playerStyle: je,
14559
+ playerStyle: ze,
14558
14560
  position: te,
14559
14561
  isMobile: f,
14560
14562
  isAdvert: c
@@ -14563,10 +14565,10 @@ function WA(t, e, i) {
14563
14565
  1280 && i(33, _e = (_t == null ? void 0 : _t.clickThroughUrl) || (Me == null ? void 0 : Me.clickThroughUrl)), t.$$.dirty[0] & /*isAdvert, isStopped*/
14564
14566
  1342177280 | t.$$.dirty[1] & /*contentItem*/
14565
14567
  8 | t.$$.dirty[2] & /*advertImageUrl, persistentAdvert*/
14566
- 4194816 && i(49, ae = c && re || !u && (ze == null ? void 0 : ze.imageUrl) || A.imageUrl), t.$$.dirty[0] & /*isAdvert, isStopped*/
14568
+ 4194816 && i(49, ae = c && re || !u && (je == null ? void 0 : je.imageUrl) || A.imageUrl), t.$$.dirty[0] & /*isAdvert, isStopped*/
14567
14569
  1342177280 | t.$$.dirty[1] & /*advertClickThroughUrl*/
14568
14570
  4 | t.$$.dirty[2] & /*persistentAdvert*/
14569
- 512 && i(48, b = c && _e || !u && (ze == null ? void 0 : ze.clickThroughUrl)), t.$$.dirty[1] & /*isMobile*/
14571
+ 512 && i(48, b = c && _e || !u && (je == null ? void 0 : je.clickThroughUrl)), t.$$.dirty[1] & /*isMobile*/
14570
14572
  2 | t.$$.dirty[2] & /*maxImageSize*/
14571
14573
  262144 && i(47, C = f ? 80 : bt), t.$$.dirty[0] & /*isSmall, fixedPosition*/
14572
14574
  33554688 | t.$$.dirty[2] & /*fixedWidth*/
@@ -14578,19 +14580,19 @@ function WA(t, e, i) {
14578
14580
  838861056 && i(45, Ee = ke && !n && !(o && c)), t.$$.dirty[0] & /*isAdvert, isScreen, fixedPosition, isSmall, forcedCollapsed*/
14579
14581
  503316736 | t.$$.dirty[2] & /*logoIconEnabled*/
14580
14582
  131072 && i(44, Je = It && (!c || l) && !(ke && n) && !x), t.$$.dirty[0] & /*playlistStyle*/
14581
- 32 && i(83, j = Pe.split("-")), t.$$.dirty[0] & /*isSmall*/
14583
+ 32 && i(83, z = Pe.split("-")), t.$$.dirty[0] & /*isSmall*/
14582
14584
  33554432 | t.$$.dirty[2] & /*playlistParts, isPlaylist*/
14583
- 3145728 && i(43, Ae = (j[0] === "show" || j[0] === "auto" && g) && !n), t.$$.dirty[0] & /*isSmall*/
14585
+ 3145728 && i(43, Ae = (z[0] === "show" || z[0] === "auto" && g) && !n), t.$$.dirty[0] & /*isSmall*/
14584
14586
  33554432 | t.$$.dirty[2] & /*playlistToggle, isPlaylist, isFullScreen*/
14585
14587
  1572896 && i(42, Oe = (qe === "show" || qe === "auto" && g) && !n && !St), t.$$.dirty[0] & /*playerStyle, positionClasses, controlsOrder*/
14586
14588
  25165832 | t.$$.dirty[2] & /*playbackState*/
14587
- 128 && i(41, Ye = `user-interface ${je} ${xe} ${se} ${he}`), t.$$.dirty[0] & /*fixedPosition*/
14589
+ 128 && i(41, Ye = `user-interface ${ze} ${xe} ${se} ${he}`), t.$$.dirty[0] & /*fixedPosition*/
14588
14590
  256 && ke && et();
14589
14591
  }, [
14590
14592
  Qe,
14591
14593
  kt,
14592
14594
  He,
14593
- je,
14595
+ ze,
14594
14596
  Ze,
14595
14597
  Pe,
14596
14598
  Ie,
@@ -14658,7 +14660,7 @@ function WA(t, e, i) {
14658
14660
  Ke,
14659
14661
  xe,
14660
14662
  Me,
14661
- ze,
14663
+ je,
14662
14664
  _t,
14663
14665
  At,
14664
14666
  Ct,
@@ -14670,7 +14672,7 @@ function WA(t, e, i) {
14670
14672
  bt,
14671
14673
  St,
14672
14674
  g,
14673
- j,
14675
+ z,
14674
14676
  re,
14675
14677
  te,
14676
14678
  ee,
@@ -14996,14 +14998,14 @@ function EA(t) {
14996
14998
  n || (I(s, l), n = !0);
14997
14999
  },
14998
15000
  o(l) {
14999
- z(s, l), n = !1;
15001
+ j(s, l), n = !1;
15000
15002
  },
15001
15003
  d(l) {
15002
15004
  l && O(e), s && s.d(l), t[7](null);
15003
15005
  }
15004
15006
  };
15005
15007
  }
15006
- function jA(t, e, i) {
15008
+ function zA(t, e, i) {
15007
15009
  let n, { $$slots: o = {}, $$scope: s } = e, { root: l = void 0 } = e, { prepend: a = !1 } = e, r, u;
15008
15010
  Co(() => i(3, u = r.parentNode));
15009
15011
  const c = (A, _) => A.insertBefore(_, A.firstChild), g = (A, _) => A.appendChild(_);
@@ -15022,9 +15024,9 @@ function jA(t, e, i) {
15022
15024
  1 && ((A = l == null ? void 0 : l.classList) == null || A.add("beyondwords-widget", "bwp"));
15023
15025
  }, [l, r, a, u, n, s, o, f];
15024
15026
  }
15025
- class zs extends Te {
15027
+ class js extends Te {
15026
15028
  constructor(e) {
15027
- super(), we(this, e, jA, EA, pe, { root: 0, prepend: 2 });
15029
+ super(), we(this, e, zA, EA, pe, { root: 0, prepend: 2 });
15028
15030
  }
15029
15031
  get root() {
15030
15032
  return this.$$.ctx[0];
@@ -15039,7 +15041,7 @@ class zs extends Te {
15039
15041
  this.$$set({ prepend: e }), d();
15040
15042
  }
15041
15043
  }
15042
- const M = (t, e, i) => Ce(t, e, e === "style" ? LA(i) : i), zA = /;(?!([^()]*\([^()]*\))*[^()]*\))/, LA = (t) => t.split(zA).filter((e) => e).map((e) => e + " !important").join(";");
15044
+ const M = (t, e, i) => Ce(t, e, e === "style" ? LA(i) : i), jA = /;(?!([^()]*\([^()]*\))*[^()]*\))/, LA = (t) => t.split(jA).filter((e) => e).map((e) => e + " !important").join(";");
15043
15045
  function Oa(t, e, i) {
15044
15046
  const n = t.slice();
15045
15047
  return n[90] = e[i], n[92] = i, n;
@@ -15056,11 +15058,11 @@ function xA(t, e, i) {
15056
15058
  const n = t.slice();
15057
15059
  return n[95] = e[i], n;
15058
15060
  }
15059
- function ja(t, e, i) {
15061
+ function za(t, e, i) {
15060
15062
  const n = t.slice();
15061
15063
  return n[90] = e[i], n[92] = i, n;
15062
15064
  }
15063
- function za(t) {
15065
+ function ja(t) {
15064
15066
  let e, i, n, o = (
15065
15067
  /*item*/
15066
15068
  t[90].placement + ""
@@ -15104,7 +15106,7 @@ function DA(t) {
15104
15106
  };
15105
15107
  }
15106
15108
  function La(t) {
15107
- let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, j, Ae, Oe, Ye, je, Ze, Ge, Pe, qe, Ie, Lt, ke, Ke, Ne, tt, Rt, Re, mt, xe, ht, it, Me, ze, _t, At, Ct, nt, Xe, lt, at, It, vt, bt, Vt, rt, ot, St, Qe, kt, He, dt, st, gt, $e, et, yt, Ot, W, V, B, le, Z, Mt, Ti, ci, Tn, Bt, Pi, Ut, di, Ht, gi, vi, Ft, ti, Ci, ji, ai, xt, Ii, ii = $t(
15109
+ let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, z, Ae, Oe, Ye, ze, Ze, Ge, Pe, qe, Ie, Lt, ke, Ke, Ne, tt, Rt, Re, mt, xe, ht, it, Me, je, _t, At, Ct, nt, Xe, lt, at, It, vt, bt, Vt, rt, ot, St, Qe, kt, He, dt, st, gt, $e, et, yt, Ot, W, V, B, le, Z, Mt, Ti, ci, Tn, Bt, Pi, Ut, di, Ht, gi, vi, Ft, ti, Ci, zi, ai, xt, Ii, ii = $t(
15108
15110
  /*content*/
15109
15111
  t[42]
15110
15112
  ), wt = [];
@@ -15133,7 +15135,7 @@ function La(t) {
15133
15135
  `), $ = y("select"), ee = y("option"), ee.textContent = `${!1}`, de = y("option"), de.textContent = `${!0}`, he = J(), re = y("div"), _e = ie(`videoTextColor:
15134
15136
  `), ae = y("input"), b = J(), C = y("div"), F = ie(`videoIconColor:
15135
15137
  `), x = y("input"), We = J(), Ee = y("div"), Je = ie(`mediaSession:
15136
- `), j = y("select"), Ae = y("option"), Ae.textContent = "auto", Oe = y("option"), Oe.textContent = "override", Ye = y("option"), Ye.textContent = "none", je = J(), Ze = y("div"), Ge = ie(`contentIndex:
15138
+ `), z = y("select"), Ae = y("option"), Ae.textContent = "auto", Oe = y("option"), Oe.textContent = "override", Ye = y("option"), Ye.textContent = "none", ze = J(), Ze = y("div"), Ge = ie(`contentIndex:
15137
15139
  `), Pe = y("select");
15138
15140
  for (let R = 0; R < wt.length; R += 1)
15139
15141
  wt[R].c();
@@ -15143,7 +15145,7 @@ function La(t) {
15143
15145
  Tt[R].c();
15144
15146
  Ne = J(), tt = y("div"), Rt = ie(`persistentAdImage:
15145
15147
  `), Re = y("select"), mt = y("option"), mt.textContent = `${!1}`, xe = y("option"), xe.textContent = `${!0}`, ht = J(), it = y("div"), Me = ie(`persistentIndex:
15146
- `), ze = y("select"), _t = y("option"), _t.textContent = "-1 (none)";
15148
+ `), je = y("select"), _t = y("option"), _t.textContent = "-1 (none)";
15147
15149
  for (let R = 0; R < pt.length; R += 1)
15148
15150
  pt[R].c();
15149
15151
  At = J(), Ct = y("div"), nt = ie(`duration:
@@ -15154,15 +15156,15 @@ function La(t) {
15154
15156
  `), $e = y("select"), et = y("option"), et.textContent = `${!1}`, yt = y("option"), yt.textContent = `${!0}`, Ot = J(), W = y("div"), V = ie(`advertConsent:
15155
15157
  `), B = y("select"), le = y("option"), le.textContent = "personalized", Z = y("option"), Z.textContent = "non-personalized", Mt = y("option"), Mt.textContent = "under-the-age-of-consent", Ti = J(), ci = y("div"), Tn = ie(`analyticsConsent:
15156
15158
  `), Bt = y("select"), Pi = y("option"), Pi.textContent = "allowed", Ut = y("option"), Ut.textContent = "without-local-storage", di = y("option"), di.textContent = "none", Ht = J(), gi = y("div"), vi = ie(`analyticsCustomUrl:
15157
- `), Ft = y("input"), ti = J(), Ci = y("div"), ji = ie(`analyticsTag:
15159
+ `), Ft = y("input"), ti = J(), Ci = y("div"), zi = ie(`analyticsTag:
15158
15160
  `), ai = y("input"), M(n, "class", "svelte-g76q0j"), M(c, "tabindex", -1), M(c, "type", "text"), M(c, "class", "svelte-g76q0j"), M(r, "class", "control svelte-g76q0j"), M(_, "tabindex", -1), M(_, "type", "text"), M(_, "class", "svelte-g76q0j"), M(f, "class", "control svelte-g76q0j"), M(v, "tabindex", -1), M(v, "type", "text"), M(v, "class", "svelte-g76q0j"), M(w, "class", "control svelte-g76q0j"), M(S, "tabindex", -1), M(S, "type", "text"), M(S, "class", "svelte-g76q0j"), M(L, "class", "control svelte-g76q0j"), M(N, "tabindex", -1), M(N, "type", "text"), M(N, "class", "svelte-g76q0j"), M(Y, "class", "control svelte-g76q0j"), ee.__value = !1, H(ee, ee.__value), de.__value = !0, H(de, de.__value), M($, "tabindex", -1), M($, "class", "svelte-g76q0j"), /*showUserInterface*/
15159
15161
  t[5] === void 0 && ct(() => (
15160
15162
  /*select0_change_handler_1*/
15161
15163
  t[71].call($)
15162
- )), M(te, "class", "control svelte-g76q0j"), M(ae, "tabindex", -1), M(ae, "type", "text"), M(ae, "class", "svelte-g76q0j"), M(re, "class", "control svelte-g76q0j"), M(x, "tabindex", -1), M(x, "type", "text"), M(x, "class", "svelte-g76q0j"), M(C, "class", "control svelte-g76q0j"), Ae.__value = "auto", H(Ae, Ae.__value), Oe.__value = "override", H(Oe, Oe.__value), Ye.__value = "none", H(Ye, Ye.__value), M(j, "tabindex", -1), M(j, "class", "svelte-g76q0j"), /*mediaSession*/
15164
+ )), M(te, "class", "control svelte-g76q0j"), M(ae, "tabindex", -1), M(ae, "type", "text"), M(ae, "class", "svelte-g76q0j"), M(re, "class", "control svelte-g76q0j"), M(x, "tabindex", -1), M(x, "type", "text"), M(x, "class", "svelte-g76q0j"), M(C, "class", "control svelte-g76q0j"), Ae.__value = "auto", H(Ae, Ae.__value), Oe.__value = "override", H(Oe, Oe.__value), Ye.__value = "none", H(Ye, Ye.__value), M(z, "tabindex", -1), M(z, "class", "svelte-g76q0j"), /*mediaSession*/
15163
15165
  t[12] === void 0 && ct(() => (
15164
15166
  /*select1_change_handler_1*/
15165
- t[74].call(j)
15167
+ t[74].call(z)
15166
15168
  )), M(Ee, "class", "control svelte-g76q0j"), M(Pe, "tabindex", -1), M(Pe, "class", "svelte-g76q0j"), /*contentIndex*/
15167
15169
  t[13] === void 0 && ct(() => (
15168
15170
  /*select2_change_handler_1*/
@@ -15175,10 +15177,10 @@ function La(t) {
15175
15177
  t[16] === void 0 && ct(() => (
15176
15178
  /*select4_change_handler_1*/
15177
15179
  t[77].call(Re)
15178
- )), M(tt, "class", "control svelte-g76q0j"), _t.__value = -1, H(_t, _t.__value), M(ze, "tabindex", -1), M(ze, "class", "svelte-g76q0j"), /*persistentIndex*/
15180
+ )), M(tt, "class", "control svelte-g76q0j"), _t.__value = -1, H(_t, _t.__value), M(je, "tabindex", -1), M(je, "class", "svelte-g76q0j"), /*persistentIndex*/
15179
15181
  t[17] === void 0 && ct(() => (
15180
15182
  /*select5_change_handler_1*/
15181
- t[78].call(ze)
15183
+ t[78].call(je)
15182
15184
  )), M(it, "class", "control svelte-g76q0j"), M(Xe, "tabindex", -1), M(Xe, "type", "text"), M(Xe, "class", "svelte-g76q0j"), M(Ct, "class", "control svelte-g76q0j"), M(vt, "tabindex", -1), M(vt, "type", "text"), M(vt, "class", "svelte-g76q0j"), M(at, "class", "control svelte-g76q0j"), M(ot, "tabindex", -1), M(ot, "type", "text"), M(ot, "class", "svelte-g76q0j"), M(Vt, "class", "control svelte-g76q0j"), M(He, "tabindex", -1), M(He, "type", "text"), M(He, "class", "svelte-g76q0j"), M(Qe, "class", "control svelte-g76q0j"), et.__value = !1, H(et, et.__value), yt.__value = !0, H(yt, yt.__value), M($e, "tabindex", -1), M($e, "class", "svelte-g76q0j"), /*logoIconEnabled*/
15183
15185
  t[33] === void 0 && ct(() => (
15184
15186
  /*select6_change_handler_1*/
@@ -15227,12 +15229,12 @@ function La(t) {
15227
15229
  x,
15228
15230
  /*videoIconColor*/
15229
15231
  t[32]
15230
- ), E(R, We, G), E(R, Ee, G), m(Ee, Je), m(Ee, j), m(j, Ae), m(j, Oe), m(j, Ye), Be(
15231
- j,
15232
+ ), E(R, We, G), E(R, Ee, G), m(Ee, Je), m(Ee, z), m(z, Ae), m(z, Oe), m(z, Ye), Be(
15233
+ z,
15232
15234
  /*mediaSession*/
15233
15235
  t[12],
15234
15236
  !0
15235
- ), E(R, je, G), E(R, Ze, G), m(Ze, Ge), m(Ze, Pe);
15237
+ ), E(R, ze, G), E(R, Ze, G), m(Ze, Ge), m(Ze, Pe);
15236
15238
  for (let ge = 0; ge < wt.length; ge += 1)
15237
15239
  wt[ge] && wt[ge].m(Pe, null);
15238
15240
  Be(
@@ -15253,11 +15255,11 @@ function La(t) {
15253
15255
  /*persistentAdImage*/
15254
15256
  t[16],
15255
15257
  !0
15256
- ), E(R, ht, G), E(R, it, G), m(it, Me), m(it, ze), m(ze, _t);
15258
+ ), E(R, ht, G), E(R, it, G), m(it, Me), m(it, je), m(je, _t);
15257
15259
  for (let ge = 0; ge < pt.length; ge += 1)
15258
- pt[ge] && pt[ge].m(ze, null);
15260
+ pt[ge] && pt[ge].m(je, null);
15259
15261
  Be(
15260
- ze,
15262
+ je,
15261
15263
  /*persistentIndex*/
15262
15264
  t[17],
15263
15265
  !0
@@ -15296,7 +15298,7 @@ function La(t) {
15296
15298
  Ft,
15297
15299
  /*analyticsCustomUrl*/
15298
15300
  t[40]
15299
- ), E(R, ti, G), E(R, Ci, G), m(Ci, ji), m(Ci, ai), H(
15301
+ ), E(R, ti, G), E(R, Ci, G), m(Ci, zi), m(Ci, ai), H(
15300
15302
  ai,
15301
15303
  /*analyticsTag*/
15302
15304
  t[41]
@@ -15350,7 +15352,7 @@ function La(t) {
15350
15352
  t[73]
15351
15353
  ),
15352
15354
  K(
15353
- j,
15355
+ z,
15354
15356
  "change",
15355
15357
  /*select1_change_handler_1*/
15356
15358
  t[74]
@@ -15374,7 +15376,7 @@ function La(t) {
15374
15376
  t[77]
15375
15377
  ),
15376
15378
  K(
15377
- ze,
15379
+ je,
15378
15380
  "change",
15379
15381
  /*select5_change_handler_1*/
15380
15382
  t[78]
@@ -15485,7 +15487,7 @@ function La(t) {
15485
15487
  R[32]
15486
15488
  ), G[0] & /*mediaSession*/
15487
15489
  4096 && Be(
15488
- j,
15490
+ z,
15489
15491
  /*mediaSession*/
15490
15492
  R[12]
15491
15493
  ), G[1] & /*content*/
@@ -15542,7 +15544,7 @@ function La(t) {
15542
15544
  let ge;
15543
15545
  for (ge = 0; ge < Vi.length; ge += 1) {
15544
15546
  const Dt = Oa(R, Vi, ge);
15545
- pt[ge] ? pt[ge].p(Dt, G) : (pt[ge] = Na(Dt), pt[ge].c(), pt[ge].m(ze, null));
15547
+ pt[ge] ? pt[ge].p(Dt, G) : (pt[ge] = Na(Dt), pt[ge].c(), pt[ge].m(je, null));
15546
15548
  }
15547
15549
  for (; ge < pt.length; ge += 1)
15548
15550
  pt[ge].d(1);
@@ -15550,7 +15552,7 @@ function La(t) {
15550
15552
  }
15551
15553
  G[0] & /*persistentIndex*/
15552
15554
  131072 && Be(
15553
- ze,
15555
+ je,
15554
15556
  /*persistentIndex*/
15555
15557
  R[17]
15556
15558
  ), G[0] & /*duration*/
@@ -15607,7 +15609,7 @@ function La(t) {
15607
15609
  );
15608
15610
  },
15609
15611
  d(R) {
15610
- R && (O(e), O(i), O(n), O(o), O(s), O(l), O(a), O(r), O(g), O(f), O(k), O(w), O(p), O(L), O(P), O(Y), O(X), O(te), O(he), O(re), O(b), O(C), O(We), O(Ee), O(je), O(Ze), O(qe), O(Ie), O(Ne), O(tt), O(ht), O(it), O(At), O(Ct), O(lt), O(at), O(bt), O(Vt), O(St), O(Qe), O(dt), O(st), O(Ot), O(W), O(Ti), O(ci), O(Ht), O(gi), O(ti), O(Ci)), wn(wt, R), wn(Tt, R), wn(pt, R), xt = !1, ft(Ii);
15612
+ R && (O(e), O(i), O(n), O(o), O(s), O(l), O(a), O(r), O(g), O(f), O(k), O(w), O(p), O(L), O(P), O(Y), O(X), O(te), O(he), O(re), O(b), O(C), O(We), O(Ee), O(ze), O(Ze), O(qe), O(Ie), O(Ne), O(tt), O(ht), O(it), O(At), O(Ct), O(lt), O(at), O(bt), O(Vt), O(St), O(Qe), O(dt), O(st), O(Ot), O(W), O(Ti), O(ci), O(Ht), O(gi), O(ti), O(Ci)), wn(wt, R), wn(Tt, R), wn(pt, R), xt = !1, ft(Ii);
15611
15613
  }
15612
15614
  };
15613
15615
  }
@@ -15730,12 +15732,12 @@ function RA(t) {
15730
15732
  };
15731
15733
  }
15732
15734
  function FA(t) {
15733
- let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, j, Ae, Oe, Ye, je, Ze, Ge, Pe, qe, Ie, Lt, ke, Ke, Ne, tt, Rt, Re, mt, xe, ht, it, Me, ze, _t, At, Ct, nt, Xe, lt, at, It, vt, bt, Vt, rt, ot, St, Qe, kt, He, dt, st, gt, $e, et, yt, Ot, W, V, B, le, Z, Mt, Ti, ci, Tn, Bt, Pi, Ut, di, Ht, gi, vi, Ft, ti, Ci, ji, ai, xt, Ii, ii, wt, ni, Tt, Vi, pt, R, G, ge, Dt, Ni, rn, un, Vo, Pn, Bo, ri, cn, dn, gn, fn, mn, Wo, Cn, Oo, zi, Mo, eo, Eo, jo, to, zo, hn = $t(
15735
+ let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, z, Ae, Oe, Ye, ze, Ze, Ge, Pe, qe, Ie, Lt, ke, Ke, Ne, tt, Rt, Re, mt, xe, ht, it, Me, je, _t, At, Ct, nt, Xe, lt, at, It, vt, bt, Vt, rt, ot, St, Qe, kt, He, dt, st, gt, $e, et, yt, Ot, W, V, B, le, Z, Mt, Ti, ci, Tn, Bt, Pi, Ut, di, Ht, gi, vi, Ft, ti, Ci, zi, ai, xt, Ii, ii, wt, ni, Tt, Vi, pt, R, G, ge, Dt, Ni, rn, un, Vo, Pn, Bo, ri, cn, dn, gn, fn, mn, Wo, Cn, Oo, ji, Mo, eo, Eo, zo, to, jo, hn = $t(
15734
15736
  /*adverts*/
15735
15737
  t[44]
15736
15738
  ), Zt = [];
15737
15739
  for (let me = 0; me < hn.length; me += 1)
15738
- Zt[me] = za(ja(t, hn, me));
15740
+ Zt[me] = ja(za(t, hn, me));
15739
15741
  let Ls = $t([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), In = [];
15740
15742
  for (let me = 0; me < 12; me += 1)
15741
15743
  In[me] = DA(xA(t, Ls, me));
@@ -15749,7 +15751,7 @@ function FA(t) {
15749
15751
  me[45] ? RA : NA
15750
15752
  );
15751
15753
  }
15752
- let jn = Lo(t), Bi = jn(t);
15754
+ let zn = Lo(t), Bi = zn(t);
15753
15755
  return {
15754
15756
  c() {
15755
15757
  e = y("div"), i = y("div"), i.innerHTML = '<strong class="svelte-g76q0j">Player settings:</strong> <a tabindex="-1" target="_blank" class="docs svelte-g76q0j" href="https://github.com/beyondwords-io/player/blob/main/doc/player-settings.md">view docs</a>', n = J(), o = y("br"), s = J(), l = y("div"), a = ie(`playerStyle:
@@ -15758,27 +15760,27 @@ function FA(t) {
15758
15760
  `), P = y("input"), Y = J(), q = y("div"), N = ie(`callToAction:
15759
15761
  `), X = y("input"), te = J(), se = y("div"), $ = ie(`skipButtonStyle:
15760
15762
  `), ee = y("select"), de = y("option"), de.textContent = "auto", he = y("option"), he.textContent = "segments", re = y("option"), re.textContent = "seconds", _e = y("option"), _e.textContent = "seconds-15", ae = y("option"), ae.textContent = "seconds-15-30", b = y("option"), b.textContent = "tracks", C = J(), F = y("div"), x = ie(`playlistStyle:
15761
- `), We = y("select"), Ee = y("option"), Ee.textContent = "auto", Je = y("option"), Je.textContent = "show", j = y("option"), j.textContent = "show-3", Ae = y("option"), Ae.textContent = "show-999", Oe = y("option"), Oe.textContent = "hide", Ye = J(), je = y("div"), Ze = ie(`playlistToggle:
15763
+ `), We = y("select"), Ee = y("option"), Ee.textContent = "auto", Je = y("option"), Je.textContent = "show", z = y("option"), z.textContent = "show-3", Ae = y("option"), Ae.textContent = "show-999", Oe = y("option"), Oe.textContent = "hide", Ye = J(), ze = y("div"), Ze = ie(`playlistToggle:
15762
15764
  `), Ge = y("select"), Pe = y("option"), Pe.textContent = "auto", qe = y("option"), qe.textContent = "show", Ie = y("option"), Ie.textContent = "hide", Lt = J(), ke = y("div"), Ke = ie(`advertIndex:
15763
15765
  `), Ne = y("select"), tt = y("option"), tt.textContent = "-1 (none)";
15764
15766
  for (let me = 0; me < Zt.length; me += 1)
15765
15767
  Zt[me].c();
15766
15768
  Rt = J(), Re = y("div"), mt = ie(`widgetStyle:
15767
- `), xe = y("select"), ht = y("option"), ht.textContent = "small", it = y("option"), it.textContent = "standard", Me = y("option"), Me.textContent = "large", ze = y("option"), ze.textContent = "video", _t = J(), At = y("div"), Ct = ie(`widgetPosition:
15769
+ `), xe = y("select"), ht = y("option"), ht.textContent = "small", it = y("option"), it.textContent = "standard", Me = y("option"), Me.textContent = "large", je = y("option"), je.textContent = "video", _t = J(), At = y("div"), Ct = ie(`widgetPosition:
15768
15770
  `), nt = y("select"), Xe = y("option"), Xe.textContent = "auto", lt = y("option"), lt.textContent = "left", at = y("option"), at.textContent = "center", It = y("option"), It.textContent = "right", vt = J(), bt = y("div"), Vt = ie(`widgetWidth:
15769
15771
  `), rt = y("select"), ot = y("option"), ot.textContent = "auto", St = y("option"), St.textContent = "400px", Qe = y("option"), Qe.textContent = "30rem", kt = y("option"), kt.textContent = "fit-content", He = y("option"), He.textContent = "initial", dt = y("option"), dt.textContent = "0", st = J(), gt = y("div"), $e = ie(`widgetMargin:
15770
15772
  `), et = y("select"), yt = y("option"), yt.textContent = "16px", Ot = y("option"), Ot.textContent = "32px", W = y("option"), W.textContent = "32px 16px", V = y("option"), V.textContent = "10px 20px 30px 40px", B = J(), le = y("div"), Z = ie(`textColor:
15771
15773
  `), Mt = y("input"), Ti = J(), ci = y("div"), Tn = ie(`backgroundColor:
15772
15774
  `), Bt = y("input"), Pi = J(), Ut = y("div"), di = ie(`iconColor:
15773
15775
  `), Ht = y("input"), gi = J(), vi = y("div"), Ft = ie(`highlightColor:
15774
- `), ti = y("input"), Ci = J(), ji = y("div"), ai = ie(`highlightSections:
15776
+ `), ti = y("input"), Ci = J(), zi = y("div"), ai = ie(`highlightSections:
15775
15777
  `), xt = y("select"), Ii = y("option"), Ii.textContent = "all", ii = y("option"), ii.textContent = "body", wt = y("option"), wt.textContent = "none", ni = y("option"), ni.textContent = "all-none", Tt = y("option"), Tt.textContent = "none-all", Vi = J(), pt = y("div"), R = ie(`clickableSections:
15776
15778
  `), G = y("select"), ge = y("option"), ge.textContent = "all", Dt = y("option"), Dt.textContent = "body", Ni = y("option"), Ni.textContent = "none", rn = y("option"), rn.textContent = "all-none", un = y("option"), un.textContent = "none-all", Vo = J(), Pn = y("div"), Bo = ie(`segmentWidgetSections:
15777
15779
  `), ri = y("select"), cn = y("option"), cn.textContent = "all", dn = y("option"), dn.textContent = "body", gn = y("option"), gn.textContent = "none", fn = y("option"), fn.textContent = "all-none", mn = y("option"), mn.textContent = "none-all", Wo = J(), Cn = y("div"), Oo = ie(`segmentWidgetPosition:
15778
- `), zi = y("select");
15780
+ `), ji = y("select");
15779
15781
  for (let me = 0; me < 12; me += 1)
15780
15782
  In[me].c();
15781
- Mo = J(), oi && oi.c(), eo = J(), Eo = y("br"), jo = J(), Bi.c(), M(i, "class", "heading svelte-g76q0j"), u.__value = "small", H(u, u.__value), c.__value = "standard", H(c, c.__value), g.__value = "large", H(g, g.__value), f.__value = "video", H(f, f.__value), M(r, "tabindex", -1), M(r, "class", "svelte-g76q0j"), /*playerStyle*/
15783
+ Mo = J(), oi && oi.c(), eo = J(), Eo = y("br"), zo = J(), Bi.c(), M(i, "class", "heading svelte-g76q0j"), u.__value = "small", H(u, u.__value), c.__value = "standard", H(c, c.__value), g.__value = "large", H(g, g.__value), f.__value = "video", H(f, f.__value), M(r, "tabindex", -1), M(r, "class", "svelte-g76q0j"), /*playerStyle*/
15782
15784
  t[6] === void 0 && ct(() => (
15783
15785
  /*select0_change_handler*/
15784
15786
  t[46].call(r)
@@ -15790,7 +15792,7 @@ function FA(t) {
15790
15792
  t[9] === void 0 && ct(() => (
15791
15793
  /*select2_change_handler*/
15792
15794
  t[50].call(ee)
15793
- )), M(se, "class", "control svelte-g76q0j"), Ee.__value = "auto", H(Ee, Ee.__value), Je.__value = "show", H(Je, Je.__value), j.__value = "show-3", H(j, j.__value), Ae.__value = "show-999", H(Ae, Ae.__value), Oe.__value = "hide", H(Oe, Oe.__value), M(We, "tabindex", -1), M(We, "class", "svelte-g76q0j"), /*playlistStyle*/
15795
+ )), M(se, "class", "control svelte-g76q0j"), Ee.__value = "auto", H(Ee, Ee.__value), Je.__value = "show", H(Je, Je.__value), z.__value = "show-3", H(z, z.__value), Ae.__value = "show-999", H(Ae, Ae.__value), Oe.__value = "hide", H(Oe, Oe.__value), M(We, "tabindex", -1), M(We, "class", "svelte-g76q0j"), /*playlistStyle*/
15794
15796
  t[10] === void 0 && ct(() => (
15795
15797
  /*select3_change_handler*/
15796
15798
  t[51].call(We)
@@ -15798,11 +15800,11 @@ function FA(t) {
15798
15800
  t[11] === void 0 && ct(() => (
15799
15801
  /*select4_change_handler*/
15800
15802
  t[52].call(Ge)
15801
- )), M(je, "class", "control svelte-g76q0j"), tt.__value = -1, H(tt, tt.__value), M(Ne, "tabindex", -1), M(Ne, "class", "svelte-g76q0j"), /*advertIndex*/
15803
+ )), M(ze, "class", "control svelte-g76q0j"), tt.__value = -1, H(tt, tt.__value), M(Ne, "tabindex", -1), M(Ne, "class", "svelte-g76q0j"), /*advertIndex*/
15802
15804
  t[15] === void 0 && ct(() => (
15803
15805
  /*select5_change_handler*/
15804
15806
  t[53].call(Ne)
15805
- )), M(ke, "class", "control svelte-g76q0j"), ht.__value = "small", H(ht, ht.__value), it.__value = "standard", H(it, it.__value), Me.__value = "large", H(Me, Me.__value), ze.__value = "video", H(ze, ze.__value), M(xe, "tabindex", -1), M(xe, "class", "svelte-g76q0j"), /*widgetStyle*/
15807
+ )), M(ke, "class", "control svelte-g76q0j"), ht.__value = "small", H(ht, ht.__value), it.__value = "standard", H(it, it.__value), Me.__value = "large", H(Me, Me.__value), je.__value = "video", H(je, je.__value), M(xe, "tabindex", -1), M(xe, "class", "svelte-g76q0j"), /*widgetStyle*/
15806
15808
  t[22] === void 0 && ct(() => (
15807
15809
  /*select6_change_handler*/
15808
15810
  t[54].call(xe)
@@ -15822,7 +15824,7 @@ function FA(t) {
15822
15824
  t[34] === void 0 && ct(() => (
15823
15825
  /*select10_change_handler*/
15824
15826
  t[62].call(xt)
15825
- )), M(ji, "class", "control svelte-g76q0j"), ge.__value = "all", H(ge, ge.__value), Dt.__value = "body", H(Dt, Dt.__value), Ni.__value = "none", H(Ni, Ni.__value), rn.__value = "all-none", H(rn, rn.__value), un.__value = "none-all", H(un, un.__value), M(G, "tabindex", -1), M(G, "class", "svelte-g76q0j"), /*clickableSections*/
15827
+ )), M(zi, "class", "control svelte-g76q0j"), ge.__value = "all", H(ge, ge.__value), Dt.__value = "body", H(Dt, Dt.__value), Ni.__value = "none", H(Ni, Ni.__value), rn.__value = "all-none", H(rn, rn.__value), un.__value = "none-all", H(un, un.__value), M(G, "tabindex", -1), M(G, "class", "svelte-g76q0j"), /*clickableSections*/
15826
15828
  t[35] === void 0 && ct(() => (
15827
15829
  /*select11_change_handler*/
15828
15830
  t[63].call(G)
@@ -15830,10 +15832,10 @@ function FA(t) {
15830
15832
  t[36] === void 0 && ct(() => (
15831
15833
  /*select12_change_handler*/
15832
15834
  t[64].call(ri)
15833
- )), M(Pn, "class", "control svelte-g76q0j"), M(zi, "tabindex", -1), M(zi, "class", "svelte-g76q0j"), /*segmentWidgetPosition*/
15835
+ )), M(Pn, "class", "control svelte-g76q0j"), M(ji, "tabindex", -1), M(ji, "class", "svelte-g76q0j"), /*segmentWidgetPosition*/
15834
15836
  t[37] === void 0 && ct(() => (
15835
15837
  /*select13_change_handler*/
15836
- t[65].call(zi)
15838
+ t[65].call(ji)
15837
15839
  )), M(Cn, "class", "control svelte-g76q0j"), M(e, "class", "control-panel");
15838
15840
  },
15839
15841
  m(me, ut) {
@@ -15860,12 +15862,12 @@ function FA(t) {
15860
15862
  /*skipButtonStyle*/
15861
15863
  t[9],
15862
15864
  !0
15863
- ), m(e, C), m(e, F), m(F, x), m(F, We), m(We, Ee), m(We, Je), m(We, j), m(We, Ae), m(We, Oe), Be(
15865
+ ), m(e, C), m(e, F), m(F, x), m(F, We), m(We, Ee), m(We, Je), m(We, z), m(We, Ae), m(We, Oe), Be(
15864
15866
  We,
15865
15867
  /*playlistStyle*/
15866
15868
  t[10],
15867
15869
  !0
15868
- ), m(e, Ye), m(e, je), m(je, Ze), m(je, Ge), m(Ge, Pe), m(Ge, qe), m(Ge, Ie), Be(
15870
+ ), m(e, Ye), m(e, ze), m(ze, Ze), m(ze, Ge), m(Ge, Pe), m(Ge, qe), m(Ge, Ie), Be(
15869
15871
  Ge,
15870
15872
  /*playlistToggle*/
15871
15873
  t[11],
@@ -15878,7 +15880,7 @@ function FA(t) {
15878
15880
  /*advertIndex*/
15879
15881
  t[15],
15880
15882
  !0
15881
- ), m(e, Rt), m(e, Re), m(Re, mt), m(Re, xe), m(xe, ht), m(xe, it), m(xe, Me), m(xe, ze), Be(
15883
+ ), m(e, Rt), m(e, Re), m(Re, mt), m(Re, xe), m(xe, ht), m(xe, it), m(xe, Me), m(xe, je), Be(
15882
15884
  xe,
15883
15885
  /*widgetStyle*/
15884
15886
  t[22],
@@ -15914,7 +15916,7 @@ function FA(t) {
15914
15916
  ti,
15915
15917
  /*highlightColor*/
15916
15918
  t[30]
15917
- ), m(e, Ci), m(e, ji), m(ji, ai), m(ji, xt), m(xt, Ii), m(xt, ii), m(xt, wt), m(xt, ni), m(xt, Tt), Be(
15919
+ ), m(e, Ci), m(e, zi), m(zi, ai), m(zi, xt), m(xt, Ii), m(xt, ii), m(xt, wt), m(xt, ni), m(xt, Tt), Be(
15918
15920
  xt,
15919
15921
  /*highlightSections*/
15920
15922
  t[34],
@@ -15929,15 +15931,15 @@ function FA(t) {
15929
15931
  /*segmentWidgetSections*/
15930
15932
  t[36],
15931
15933
  !0
15932
- ), m(e, Wo), m(e, Cn), m(Cn, Oo), m(Cn, zi);
15934
+ ), m(e, Wo), m(e, Cn), m(Cn, Oo), m(Cn, ji);
15933
15935
  for (let Wt = 0; Wt < 12; Wt += 1)
15934
- In[Wt] && In[Wt].m(zi, null);
15936
+ In[Wt] && In[Wt].m(ji, null);
15935
15937
  Be(
15936
- zi,
15938
+ ji,
15937
15939
  /*segmentWidgetPosition*/
15938
15940
  t[37],
15939
15941
  !0
15940
- ), m(e, Mo), oi && oi.m(e, null), m(e, eo), m(e, Eo), m(e, jo), Bi.m(e, null), to || (zo = [
15942
+ ), m(e, Mo), oi && oi.m(e, null), m(e, eo), m(e, Eo), m(e, zo), Bi.m(e, null), to || (jo = [
15941
15943
  K(
15942
15944
  r,
15943
15945
  "change",
@@ -16053,7 +16055,7 @@ function FA(t) {
16053
16055
  t[64]
16054
16056
  ),
16055
16057
  K(
16056
- zi,
16058
+ ji,
16057
16059
  "change",
16058
16060
  /*select13_change_handler*/
16059
16061
  t[65]
@@ -16106,8 +16108,8 @@ function FA(t) {
16106
16108
  );
16107
16109
  let Wt;
16108
16110
  for (Wt = 0; Wt < hn.length; Wt += 1) {
16109
- const xo = ja(me, hn, Wt);
16110
- Zt[Wt] ? Zt[Wt].p(xo, ut) : (Zt[Wt] = za(xo), Zt[Wt].c(), Zt[Wt].m(Ne, null));
16111
+ const xo = za(me, hn, Wt);
16112
+ Zt[Wt] ? Zt[Wt].p(xo, ut) : (Zt[Wt] = ja(xo), Zt[Wt].c(), Zt[Wt].m(Ne, null));
16111
16113
  }
16112
16114
  for (; Wt < Zt.length; Wt += 1)
16113
16115
  Zt[Wt].d(1);
@@ -16179,22 +16181,22 @@ function FA(t) {
16179
16181
  me[36]
16180
16182
  ), ut[1] & /*segmentWidgetPosition*/
16181
16183
  64 && Be(
16182
- zi,
16184
+ ji,
16183
16185
  /*segmentWidgetPosition*/
16184
16186
  me[37]
16185
16187
  ), /*showAdvancedSettings*/
16186
- me[45] ? oi ? oi.p(me, ut) : (oi = La(me), oi.c(), oi.m(e, eo)) : oi && (oi.d(1), oi = null), jn === (jn = Lo(me)) && Bi ? Bi.p(me, ut) : (Bi.d(1), Bi = jn(me), Bi && (Bi.c(), Bi.m(e, null)));
16188
+ me[45] ? oi ? oi.p(me, ut) : (oi = La(me), oi.c(), oi.m(e, eo)) : oi && (oi.d(1), oi = null), zn === (zn = Lo(me)) && Bi ? Bi.p(me, ut) : (Bi.d(1), Bi = zn(me), Bi && (Bi.c(), Bi.m(e, null)));
16187
16189
  },
16188
16190
  i: Q,
16189
16191
  o: Q,
16190
16192
  d(me) {
16191
- me && O(e), wn(Zt, me), wn(In, me), oi && oi.d(), Bi.d(), to = !1, ft(zo);
16193
+ me && O(e), wn(Zt, me), wn(In, me), oi && oi.d(), Bi.d(), to = !1, ft(jo);
16192
16194
  }
16193
16195
  };
16194
16196
  }
16195
16197
  function UA(t, e, i) {
16196
16198
  import("./././././././././style.js");
16197
- let { projectId: n } = e, { contentId: o } = e, { playlistId: s } = e, { sourceId: l } = e, { sourceUrl: a } = e, { showUserInterface: r } = e, { playerStyle: u } = e, { playerTitle: c } = e, { callToAction: g } = e, { skipButtonStyle: f } = e, { playlistStyle: A } = e, { playlistToggle: _ } = e, { mediaSession: k } = e, { content: w } = e, { contentIndex: T } = e, { introsOutros: v } = e, { introsOutrosIndex: p } = e, { adverts: L } = e, { advertIndex: D } = e, { persistentAdImage: S } = e, { persistentIndex: P } = e, { duration: Y } = e, { currentTime: q } = e, { playbackState: N } = e, { playbackRate: X } = e, { widgetStyle: te } = e, { widgetPosition: se } = e, { widgetWidth: $ } = e, { widgetMargin: ee } = e, { widgetTarget: de } = e, { textColor: he } = e, { backgroundColor: re } = e, { iconColor: _e } = e, { highlightColor: ae } = e, { videoTextColor: b } = e, { videoIconColor: C } = e, { logoIconEnabled: F } = e, { highlightSections: x } = e, { clickableSections: We } = e, { segmentWidgetSections: Ee } = e, { segmentWidgetPosition: Je } = e, { advertConsent: j } = e, { analyticsConsent: Ae } = e, { analyticsCustomUrl: Oe } = e, { analyticsTag: Ye } = e, je = !1;
16199
+ let { projectId: n } = e, { contentId: o } = e, { playlistId: s } = e, { sourceId: l } = e, { sourceUrl: a } = e, { showUserInterface: r } = e, { playerStyle: u } = e, { playerTitle: c } = e, { callToAction: g } = e, { skipButtonStyle: f } = e, { playlistStyle: A } = e, { playlistToggle: _ } = e, { mediaSession: k } = e, { content: w } = e, { contentIndex: T } = e, { introsOutros: v } = e, { introsOutrosIndex: p } = e, { adverts: L } = e, { advertIndex: D } = e, { persistentAdImage: S } = e, { persistentIndex: P } = e, { duration: Y } = e, { currentTime: q } = e, { playbackState: N } = e, { playbackRate: X } = e, { widgetStyle: te } = e, { widgetPosition: se } = e, { widgetWidth: $ } = e, { widgetMargin: ee } = e, { widgetTarget: de } = e, { textColor: he } = e, { backgroundColor: re } = e, { iconColor: _e } = e, { highlightColor: ae } = e, { videoTextColor: b } = e, { videoIconColor: C } = e, { logoIconEnabled: F } = e, { highlightSections: x } = e, { clickableSections: We } = e, { segmentWidgetSections: Ee } = e, { segmentWidgetPosition: Je } = e, { advertConsent: z } = e, { analyticsConsent: Ae } = e, { analyticsCustomUrl: Oe } = e, { analyticsTag: Ye } = e, ze = !1;
16198
16200
  function Ze() {
16199
16201
  u = Et(this), i(6, u);
16200
16202
  }
@@ -16246,7 +16248,7 @@ function UA(t, e, i) {
16246
16248
  function Me() {
16247
16249
  x = Et(this), i(34, x);
16248
16250
  }
16249
- function ze() {
16251
+ function je() {
16250
16252
  We = Et(this), i(35, We);
16251
16253
  }
16252
16254
  function _t() {
@@ -16310,7 +16312,7 @@ function UA(t, e, i) {
16310
16312
  F = Et(this), i(33, F);
16311
16313
  }
16312
16314
  function $e() {
16313
- j = Et(this), i(38, j);
16315
+ z = Et(this), i(38, z);
16314
16316
  }
16315
16317
  function et() {
16316
16318
  Ae = Et(this), i(39, Ae);
@@ -16321,9 +16323,9 @@ function UA(t, e, i) {
16321
16323
  function Ot() {
16322
16324
  Ye = this.value, i(41, Ye);
16323
16325
  }
16324
- const W = () => i(45, je = !1), V = () => i(45, je = !0);
16326
+ const W = () => i(45, ze = !1), V = () => i(45, ze = !0);
16325
16327
  return t.$$set = (B) => {
16326
- "projectId" in B && i(0, n = B.projectId), "contentId" in B && i(1, o = B.contentId), "playlistId" in B && i(2, s = B.playlistId), "sourceId" in B && i(3, l = B.sourceId), "sourceUrl" in B && i(4, a = B.sourceUrl), "showUserInterface" in B && i(5, r = B.showUserInterface), "playerStyle" in B && i(6, u = B.playerStyle), "playerTitle" in B && i(7, c = B.playerTitle), "callToAction" in B && i(8, g = B.callToAction), "skipButtonStyle" in B && i(9, f = B.skipButtonStyle), "playlistStyle" in B && i(10, A = B.playlistStyle), "playlistToggle" in B && i(11, _ = B.playlistToggle), "mediaSession" in B && i(12, k = B.mediaSession), "content" in B && i(42, w = B.content), "contentIndex" in B && i(13, T = B.contentIndex), "introsOutros" in B && i(43, v = B.introsOutros), "introsOutrosIndex" in B && i(14, p = B.introsOutrosIndex), "adverts" in B && i(44, L = B.adverts), "advertIndex" in B && i(15, D = B.advertIndex), "persistentAdImage" in B && i(16, S = B.persistentAdImage), "persistentIndex" in B && i(17, P = B.persistentIndex), "duration" in B && i(18, Y = B.duration), "currentTime" in B && i(19, q = B.currentTime), "playbackState" in B && i(20, N = B.playbackState), "playbackRate" in B && i(21, X = B.playbackRate), "widgetStyle" in B && i(22, te = B.widgetStyle), "widgetPosition" in B && i(23, se = B.widgetPosition), "widgetWidth" in B && i(24, $ = B.widgetWidth), "widgetMargin" in B && i(25, ee = B.widgetMargin), "widgetTarget" in B && i(26, de = B.widgetTarget), "textColor" in B && i(27, he = B.textColor), "backgroundColor" in B && i(28, re = B.backgroundColor), "iconColor" in B && i(29, _e = B.iconColor), "highlightColor" in B && i(30, ae = B.highlightColor), "videoTextColor" in B && i(31, b = B.videoTextColor), "videoIconColor" in B && i(32, C = B.videoIconColor), "logoIconEnabled" in B && i(33, F = B.logoIconEnabled), "highlightSections" in B && i(34, x = B.highlightSections), "clickableSections" in B && i(35, We = B.clickableSections), "segmentWidgetSections" in B && i(36, Ee = B.segmentWidgetSections), "segmentWidgetPosition" in B && i(37, Je = B.segmentWidgetPosition), "advertConsent" in B && i(38, j = B.advertConsent), "analyticsConsent" in B && i(39, Ae = B.analyticsConsent), "analyticsCustomUrl" in B && i(40, Oe = B.analyticsCustomUrl), "analyticsTag" in B && i(41, Ye = B.analyticsTag);
16328
+ "projectId" in B && i(0, n = B.projectId), "contentId" in B && i(1, o = B.contentId), "playlistId" in B && i(2, s = B.playlistId), "sourceId" in B && i(3, l = B.sourceId), "sourceUrl" in B && i(4, a = B.sourceUrl), "showUserInterface" in B && i(5, r = B.showUserInterface), "playerStyle" in B && i(6, u = B.playerStyle), "playerTitle" in B && i(7, c = B.playerTitle), "callToAction" in B && i(8, g = B.callToAction), "skipButtonStyle" in B && i(9, f = B.skipButtonStyle), "playlistStyle" in B && i(10, A = B.playlistStyle), "playlistToggle" in B && i(11, _ = B.playlistToggle), "mediaSession" in B && i(12, k = B.mediaSession), "content" in B && i(42, w = B.content), "contentIndex" in B && i(13, T = B.contentIndex), "introsOutros" in B && i(43, v = B.introsOutros), "introsOutrosIndex" in B && i(14, p = B.introsOutrosIndex), "adverts" in B && i(44, L = B.adverts), "advertIndex" in B && i(15, D = B.advertIndex), "persistentAdImage" in B && i(16, S = B.persistentAdImage), "persistentIndex" in B && i(17, P = B.persistentIndex), "duration" in B && i(18, Y = B.duration), "currentTime" in B && i(19, q = B.currentTime), "playbackState" in B && i(20, N = B.playbackState), "playbackRate" in B && i(21, X = B.playbackRate), "widgetStyle" in B && i(22, te = B.widgetStyle), "widgetPosition" in B && i(23, se = B.widgetPosition), "widgetWidth" in B && i(24, $ = B.widgetWidth), "widgetMargin" in B && i(25, ee = B.widgetMargin), "widgetTarget" in B && i(26, de = B.widgetTarget), "textColor" in B && i(27, he = B.textColor), "backgroundColor" in B && i(28, re = B.backgroundColor), "iconColor" in B && i(29, _e = B.iconColor), "highlightColor" in B && i(30, ae = B.highlightColor), "videoTextColor" in B && i(31, b = B.videoTextColor), "videoIconColor" in B && i(32, C = B.videoIconColor), "logoIconEnabled" in B && i(33, F = B.logoIconEnabled), "highlightSections" in B && i(34, x = B.highlightSections), "clickableSections" in B && i(35, We = B.clickableSections), "segmentWidgetSections" in B && i(36, Ee = B.segmentWidgetSections), "segmentWidgetPosition" in B && i(37, Je = B.segmentWidgetPosition), "advertConsent" in B && i(38, z = B.advertConsent), "analyticsConsent" in B && i(39, Ae = B.analyticsConsent), "analyticsCustomUrl" in B && i(40, Oe = B.analyticsCustomUrl), "analyticsTag" in B && i(41, Ye = B.analyticsTag);
16327
16329
  }, [
16328
16330
  n,
16329
16331
  o,
@@ -16363,14 +16365,14 @@ function UA(t, e, i) {
16363
16365
  We,
16364
16366
  Ee,
16365
16367
  Je,
16366
- j,
16368
+ z,
16367
16369
  Ae,
16368
16370
  Oe,
16369
16371
  Ye,
16370
16372
  w,
16371
16373
  v,
16372
16374
  L,
16373
- je,
16375
+ ze,
16374
16376
  Ze,
16375
16377
  Ge,
16376
16378
  Pe,
@@ -16388,7 +16390,7 @@ function UA(t, e, i) {
16388
16390
  ht,
16389
16391
  it,
16390
16392
  Me,
16391
- ze,
16393
+ je,
16392
16394
  _t,
16393
16395
  At,
16394
16396
  Ct,
@@ -16823,7 +16825,7 @@ function Fa(t) {
16823
16825
  s || (I(i.$$.fragment, r), s = !0);
16824
16826
  },
16825
16827
  o(r) {
16826
- z(i.$$.fragment, r), s = !1;
16828
+ j(i.$$.fragment, r), s = !1;
16827
16829
  },
16828
16830
  d(r) {
16829
16831
  r && O(e), ce(i), a();
@@ -16837,7 +16839,7 @@ function e3(t) {
16837
16839
  ), o = [];
16838
16840
  for (let l = 0; l < n.length; l += 1)
16839
16841
  o[l] = Fa(Ra(t, n, l));
16840
- const s = (l) => z(o[l], 1, 1, () => {
16842
+ const s = (l) => j(o[l], 1, 1, () => {
16841
16843
  o[l] = null;
16842
16844
  });
16843
16845
  return {
@@ -16880,7 +16882,7 @@ function e3(t) {
16880
16882
  o(l) {
16881
16883
  o = o.filter(Boolean);
16882
16884
  for (let a = 0; a < o.length; a += 1)
16883
- z(o[a]);
16885
+ j(o[a]);
16884
16886
  i = !1;
16885
16887
  },
16886
16888
  d(l) {
@@ -16911,13 +16913,13 @@ function t3(t, e, i) {
16911
16913
  }), We = q.map(() => {
16912
16914
  });
16913
16915
  const Ee = () => i(16, F = F.add(T));
16914
- function Je(j, Ae) {
16915
- oe[j ? "unshift" : "push"](() => {
16916
- x[Ae] = j, i(0, x);
16916
+ function Je(z, Ae) {
16917
+ oe[z ? "unshift" : "push"](() => {
16918
+ x[Ae] = z, i(0, x);
16917
16919
  });
16918
16920
  }
16919
- return t.$$set = (j) => {
16920
- "content" in j && i(4, X = j.content), "contentIndex" in j && i(5, te = j.contentIndex), "activeAdvert" in j && i(6, se = j.activeAdvert), "persistentAdvert" in j && i(7, $ = j.persistentAdvert), "companionAdvert" in j && i(8, ee = j.companionAdvert), "duration" in j && i(9, de = j.duration), "playbackState" in j && i(10, he = j.playbackState), "skipButtonStyle" in j && i(11, re = j.skipButtonStyle), "backgroundColor" in j && i(12, _e = j.backgroundColor), "iconColor" in j && i(13, ae = j.iconColor), "onEvent" in j && i(14, b = j.onEvent);
16921
+ return t.$$set = (z) => {
16922
+ "content" in z && i(4, X = z.content), "contentIndex" in z && i(5, te = z.contentIndex), "activeAdvert" in z && i(6, se = z.activeAdvert), "persistentAdvert" in z && i(7, $ = z.persistentAdvert), "companionAdvert" in z && i(8, ee = z.companionAdvert), "duration" in z && i(9, de = z.duration), "playbackState" in z && i(10, he = z.playbackState), "skipButtonStyle" in z && i(11, re = z.skipButtonStyle), "backgroundColor" in z && i(12, _e = z.backgroundColor), "iconColor" in z && i(13, ae = z.iconColor), "onEvent" in z && i(14, b = z.onEvent);
16921
16923
  }, t.$$.update = () => {
16922
16924
  t.$$.dirty[0] & /*playbackState*/
16923
16925
  1024 && i(34, n = he === "stopped"), t.$$.dirty[0] & /*activeAdvert*/
@@ -16938,19 +16940,19 @@ function t3(t, e, i) {
16938
16940
  32 && i(2, A = o && (se == null ? void 0 : se.backgroundColor) || _e), t.$$.dirty[0] & /*activeAdvert, iconColor*/
16939
16941
  8256 | t.$$.dirty[1] & /*isAdvert*/
16940
16942
  32 && i(1, _ = o && (se == null ? void 0 : se.iconColor) || ae), t.$$.dirty[0] & /*background, foreground, fallbackSvgs*/
16941
- 7 && i(17, We = q.map((j, Ae) => yr().then(() => x[Ae]))), t.$$.dirty[0] & /*companionAdvert, activeAdvert*/
16943
+ 7 && i(17, We = q.map((z, Ae) => yr().then(() => x[Ae]))), t.$$.dirty[0] & /*companionAdvert, activeAdvert*/
16942
16944
  320 && i(35, k = (ee == null ? void 0 : ee.imageUrl) || (se == null ? void 0 : se.imageUrl)), t.$$.dirty[0] & /*persistentAdvert, contentItem*/
16943
16945
  268435584 | t.$$.dirty[1] & /*isAdvert, advertImageUrl, isStopped*/
16944
16946
  56 && i(33, w = o && k || !n && ($ == null ? void 0 : $.imageUrl) || (l == null ? void 0 : l.imageUrl)), t.$$.dirty[0] & /*failedUrls*/
16945
16947
  65536 | t.$$.dirty[1] & /*imageUrl_*/
16946
16948
  4 && i(29, T = F.has(w) ? null : w), t.$$.dirty[0] & /*imageUrl*/
16947
- 536870912 && i(32, v = T ? q.map((j) => qA(T, j, j)) : []), t.$$.dirty[0] & /*imageUrl*/
16949
+ 536870912 && i(32, v = T ? q.map((z) => qA(T, z, z)) : []), t.$$.dirty[0] & /*imageUrl*/
16948
16950
  536870912 && i(31, p = T ? [{ src: T, sizes: "any" }] : []), t.$$.dirty[0] & /*imageUrl, renderedSvgs*/
16949
- 537001984 && i(30, L = T ? [] : q.map((j, Ae) => GA(We[Ae], j, j))), t.$$.dirty[0] & /*svgArtworks*/
16951
+ 537001984 && i(30, L = T ? [] : q.map((z, Ae) => GA(We[Ae], z, z))), t.$$.dirty[0] & /*svgArtworks*/
16950
16952
  1073741824 | t.$$.dirty[1] & /*pngArtworks, urlArtworks*/
16951
16953
  3 && i(27, D = Promise.all([...v, ...p, ...L])), t.$$.dirty[0] & /*contentItem*/
16952
16954
  268435456 && i(26, S = (l == null ? void 0 : l.title) || ""), t.$$.dirty[0] & /*artworks*/
16953
- 134217728 && D.then((j) => i(15, C = j)).catch(Ee), t.$$.dirty[0] & /*title, artist, album, artwork*/
16955
+ 134217728 && D.then((z) => i(15, C = z)).catch(Ee), t.$$.dirty[0] & /*title, artist, album, artwork*/
16954
16956
  117473280 && (navigator.mediaSession.metadata = new MediaMetadata({ title: S, artist: P, album: Y, artwork: C })), t.$$.dirty[0] & /*onEvent*/
16955
16957
  16384 && navigator.mediaSession.setActionHandler("play", () => {
16956
16958
  b(ye({
@@ -16966,32 +16968,32 @@ function t3(t, e, i) {
16966
16968
  initiatedBy: "media-session-api"
16967
16969
  }));
16968
16970
  }), t.$$.dirty[0] & /*allowScrubbing, onEvent, duration*/
16969
- 8405504 && navigator.mediaSession.setActionHandler("seekto", f ? ({ seekTime: j }) => {
16971
+ 8405504 && navigator.mediaSession.setActionHandler("seekto", f ? ({ seekTime: z }) => {
16970
16972
  b(ye({
16971
16973
  type: "ScrubbedProgressBar",
16972
16974
  description: "The user pressed on the progress bar then dragged.",
16973
16975
  initiatedBy: "media-session-api",
16974
- ratio: Math.max(0, Math.min(1, j / de))
16976
+ ratio: Math.max(0, Math.min(1, z / de))
16975
16977
  }));
16976
16978
  } : null), t.$$.dirty[0] & /*showSeekButtons, skipStyle, onEvent, backwardsSeconds*/
16977
- 7356416 && navigator.mediaSession.setActionHandler("seekbackward", c ? ({ seekOffset: j }) => {
16978
- b(ye(a === "seconds" || j ? {
16979
+ 7356416 && navigator.mediaSession.setActionHandler("seekbackward", c ? ({ seekOffset: z }) => {
16980
+ b(ye(a === "seconds" || z ? {
16979
16981
  type: "PressedSeekBack",
16980
16982
  description: "The seek backward button was pressed.",
16981
16983
  initiatedBy: "media-session-api",
16982
- seconds: j || r
16984
+ seconds: z || r
16983
16985
  } : {
16984
16986
  type: "PressedPrevSegment",
16985
16987
  description: "The previous segment button was pressed.",
16986
16988
  initiatedBy: "media-session-api"
16987
16989
  }));
16988
16990
  } : null), t.$$.dirty[0] & /*showSeekButtons, skipStyle, onEvent, forwardsSeconds*/
16989
- 3686400 && navigator.mediaSession.setActionHandler("seekforward", c ? ({ seekOffset: j }) => {
16990
- b(ye(a === "seconds" || j ? {
16991
+ 3686400 && navigator.mediaSession.setActionHandler("seekforward", c ? ({ seekOffset: z }) => {
16992
+ b(ye(a === "seconds" || z ? {
16991
16993
  type: "PressedSeekAhead",
16992
16994
  description: "The seek ahead button was pressed.",
16993
16995
  initiatedBy: "media-session-api",
16994
- seconds: j || u
16996
+ seconds: z || u
16995
16997
  } : {
16996
16998
  type: "PressedNextSegment",
16997
16999
  description: "The next segment button was pressed.",
@@ -17012,9 +17014,9 @@ function t3(t, e, i) {
17012
17014
  initiatedBy: "media-session-api"
17013
17015
  }));
17014
17016
  } : null);
17015
- }, i(25, P = ""), i(24, Y = ""), navigator.mediaSession.setByPlayer = !0, N.forEach((j) => {
17017
+ }, i(25, P = ""), i(24, Y = ""), navigator.mediaSession.setByPlayer = !0, N.forEach((z) => {
17016
17018
  try {
17017
- navigator.mediaSession.setActionHandler(j, null);
17019
+ navigator.mediaSession.setActionHandler(z, null);
17018
17020
  } catch (Ae) {
17019
17021
  }
17020
17022
  }), [
@@ -17704,7 +17706,7 @@ function w3(t) {
17704
17706
  r || (I(e.$$.fragment, T), r = !0);
17705
17707
  },
17706
17708
  o(T) {
17707
- z(e.$$.fragment, T), r = !1;
17709
+ j(e.$$.fragment, T), r = !1;
17708
17710
  },
17709
17711
  d(T) {
17710
17712
  t[121](null), ce(e, T);
@@ -17908,7 +17910,7 @@ function Xa(t) {
17908
17910
  i || (I(e.$$.fragment, o), i = !0);
17909
17911
  },
17910
17912
  o(o) {
17911
- z(e.$$.fragment, o), i = !1;
17913
+ j(e.$$.fragment, o), i = !1;
17912
17914
  },
17913
17915
  d(o) {
17914
17916
  t[128](null), ce(e, o);
@@ -17917,7 +17919,7 @@ function Xa(t) {
17917
17919
  }
17918
17920
  function Qa(t) {
17919
17921
  let e, i;
17920
- return e = new zs({
17922
+ return e = new js({
17921
17923
  props: {
17922
17924
  root: (
17923
17925
  /*widgetTarget*/
@@ -17947,7 +17949,7 @@ function Qa(t) {
17947
17949
  i || (I(e.$$.fragment, n), i = !0);
17948
17950
  },
17949
17951
  o(n) {
17950
- z(e.$$.fragment, n), i = !1;
17952
+ j(e.$$.fragment, n), i = !1;
17951
17953
  },
17952
17954
  d(n) {
17953
17955
  ce(e, n);
@@ -18153,7 +18155,7 @@ function T3(t) {
18153
18155
  i || (I(e.$$.fragment, o), i = !0);
18154
18156
  },
18155
18157
  o(o) {
18156
- z(e.$$.fragment, o), i = !1;
18158
+ j(e.$$.fragment, o), i = !1;
18157
18159
  },
18158
18160
  d(o) {
18159
18161
  t[129](null), ce(e, o);
@@ -18293,7 +18295,7 @@ function P3(t) {
18293
18295
  i || (I(e.$$.fragment, n), i = !0);
18294
18296
  },
18295
18297
  o(n) {
18296
- z(e.$$.fragment, n), i = !1;
18298
+ j(e.$$.fragment, n), i = !1;
18297
18299
  },
18298
18300
  d(n) {
18299
18301
  ce(e, n);
@@ -18302,7 +18304,7 @@ function P3(t) {
18302
18304
  }
18303
18305
  function $a(t, e) {
18304
18306
  let i, n, o;
18305
- return n = new zs({
18307
+ return n = new js({
18306
18308
  props: {
18307
18309
  root: (
18308
18310
  /*root*/
@@ -18335,7 +18337,7 @@ function $a(t, e) {
18335
18337
  o || (I(n.$$.fragment, s), o = !0);
18336
18338
  },
18337
18339
  o(s) {
18338
- z(n.$$.fragment, s), o = !1;
18340
+ j(n.$$.fragment, s), o = !1;
18339
18341
  },
18340
18342
  d(s) {
18341
18343
  s && O(i), ce(n, s);
@@ -18344,7 +18346,7 @@ function $a(t, e) {
18344
18346
  }
18345
18347
  function er(t) {
18346
18348
  let e, i;
18347
- return e = new zs({
18349
+ return e = new js({
18348
18350
  props: {
18349
18351
  root: (
18350
18352
  /*controlPanel*/
@@ -18373,7 +18375,7 @@ function er(t) {
18373
18375
  i || (I(e.$$.fragment, n), i = !0);
18374
18376
  },
18375
18377
  o(n) {
18376
- z(e.$$.fragment, n), i = !1;
18378
+ j(e.$$.fragment, n), i = !1;
18377
18379
  },
18378
18380
  d(n) {
18379
18381
  ce(e, n);
@@ -18381,11 +18383,11 @@ function er(t) {
18381
18383
  };
18382
18384
  }
18383
18385
  function C3(t) {
18384
- let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, j, Ae, Oe;
18386
+ let e, i, n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, de, he, re, _e, ae, b, C, F, x, We, Ee, Je, z, Ae, Oe;
18385
18387
  function Ye(V) {
18386
18388
  t[131](V);
18387
18389
  }
18388
- function je(V) {
18390
+ function ze(V) {
18389
18391
  t[132](V);
18390
18392
  }
18391
18393
  function Ze(V) {
@@ -18439,7 +18441,7 @@ function C3(t) {
18439
18441
  function Me(V) {
18440
18442
  t[149](V);
18441
18443
  }
18442
- function ze(V) {
18444
+ function je(V) {
18443
18445
  t[150](V);
18444
18446
  }
18445
18447
  function _t(V) {
@@ -18617,7 +18619,7 @@ function C3(t) {
18617
18619
  t[45] !== void 0 && (W.analyticsCustomUrl = /*analyticsCustomUrl*/
18618
18620
  t[45]), /*analyticsTag*/
18619
18621
  t[46] !== void 0 && (W.analyticsTag = /*analyticsTag*/
18620
- t[46]), e = new HA({ props: W }), oe.push(() => be(e, "projectId", Ye)), oe.push(() => be(e, "contentId", je)), oe.push(() => be(e, "playlistId", Ze)), oe.push(() => be(e, "sourceId", Ge)), oe.push(() => be(e, "sourceUrl", Pe)), oe.push(() => be(e, "showUserInterface", qe)), oe.push(() => be(e, "playerStyle", Ie)), oe.push(() => be(e, "playerTitle", Lt)), oe.push(() => be(e, "callToAction", ke)), oe.push(() => be(e, "skipButtonStyle", Ke)), oe.push(() => be(e, "playlistStyle", Ne)), oe.push(() => be(e, "playlistToggle", tt)), oe.push(() => be(e, "mediaSession", Rt)), oe.push(() => be(e, "contentIndex", Re)), oe.push(() => be(e, "introsOutrosIndex", mt)), oe.push(() => be(e, "advertIndex", xe)), oe.push(() => be(e, "persistentAdImage", ht)), oe.push(() => be(e, "persistentIndex", it)), oe.push(() => be(e, "duration", Me)), oe.push(() => be(e, "currentTime", ze)), oe.push(() => be(e, "playbackState", _t)), oe.push(() => be(e, "playbackRate", At)), oe.push(() => be(e, "widgetStyle", Ct)), oe.push(() => be(e, "widgetPosition", nt)), oe.push(() => be(e, "widgetWidth", Xe)), oe.push(() => be(e, "widgetMargin", lt)), oe.push(() => be(e, "widgetTarget", at)), oe.push(() => be(e, "textColor", It)), oe.push(() => be(e, "backgroundColor", vt)), oe.push(() => be(e, "iconColor", bt)), oe.push(() => be(e, "highlightColor", Vt)), oe.push(() => be(e, "videoTextColor", rt)), oe.push(() => be(e, "videoIconColor", ot)), oe.push(() => be(e, "logoIconEnabled", St)), oe.push(() => be(e, "highlightSections", Qe)), oe.push(() => be(e, "clickableSections", kt)), oe.push(() => be(e, "segmentWidgetSections", He)), oe.push(() => be(e, "segmentWidgetPosition", dt)), oe.push(() => be(e, "currentSegment", st)), oe.push(() => be(e, "hoveredSegment", gt)), oe.push(() => be(e, "advertConsent", $e)), oe.push(() => be(e, "analyticsConsent", et)), oe.push(() => be(e, "analyticsCustomUrl", yt)), oe.push(() => be(e, "analyticsTag", Ot)), {
18622
+ t[46]), e = new HA({ props: W }), oe.push(() => be(e, "projectId", Ye)), oe.push(() => be(e, "contentId", ze)), oe.push(() => be(e, "playlistId", Ze)), oe.push(() => be(e, "sourceId", Ge)), oe.push(() => be(e, "sourceUrl", Pe)), oe.push(() => be(e, "showUserInterface", qe)), oe.push(() => be(e, "playerStyle", Ie)), oe.push(() => be(e, "playerTitle", Lt)), oe.push(() => be(e, "callToAction", ke)), oe.push(() => be(e, "skipButtonStyle", Ke)), oe.push(() => be(e, "playlistStyle", Ne)), oe.push(() => be(e, "playlistToggle", tt)), oe.push(() => be(e, "mediaSession", Rt)), oe.push(() => be(e, "contentIndex", Re)), oe.push(() => be(e, "introsOutrosIndex", mt)), oe.push(() => be(e, "advertIndex", xe)), oe.push(() => be(e, "persistentAdImage", ht)), oe.push(() => be(e, "persistentIndex", it)), oe.push(() => be(e, "duration", Me)), oe.push(() => be(e, "currentTime", je)), oe.push(() => be(e, "playbackState", _t)), oe.push(() => be(e, "playbackRate", At)), oe.push(() => be(e, "widgetStyle", Ct)), oe.push(() => be(e, "widgetPosition", nt)), oe.push(() => be(e, "widgetWidth", Xe)), oe.push(() => be(e, "widgetMargin", lt)), oe.push(() => be(e, "widgetTarget", at)), oe.push(() => be(e, "textColor", It)), oe.push(() => be(e, "backgroundColor", vt)), oe.push(() => be(e, "iconColor", bt)), oe.push(() => be(e, "highlightColor", Vt)), oe.push(() => be(e, "videoTextColor", rt)), oe.push(() => be(e, "videoIconColor", ot)), oe.push(() => be(e, "logoIconEnabled", St)), oe.push(() => be(e, "highlightSections", Qe)), oe.push(() => be(e, "clickableSections", kt)), oe.push(() => be(e, "segmentWidgetSections", He)), oe.push(() => be(e, "segmentWidgetPosition", dt)), oe.push(() => be(e, "currentSegment", st)), oe.push(() => be(e, "hoveredSegment", gt)), oe.push(() => be(e, "advertConsent", $e)), oe.push(() => be(e, "analyticsConsent", et)), oe.push(() => be(e, "analyticsCustomUrl", yt)), oe.push(() => be(e, "analyticsTag", Ot)), {
18621
18623
  c() {
18622
18624
  fe(e.$$.fragment);
18623
18625
  },
@@ -18716,9 +18718,9 @@ function C3(t) {
18716
18718
  4194304 && (Ee = !0, le.advertConsent = /*advertConsent*/
18717
18719
  V[22], ve(() => Ee = !1)), !Je && B[1] & /*analyticsConsent*/
18718
18720
  8192 && (Je = !0, le.analyticsConsent = /*analyticsConsent*/
18719
- V[44], ve(() => Je = !1)), !j && B[1] & /*analyticsCustomUrl*/
18720
- 16384 && (j = !0, le.analyticsCustomUrl = /*analyticsCustomUrl*/
18721
- V[45], ve(() => j = !1)), !Ae && B[1] & /*analyticsTag*/
18721
+ V[44], ve(() => Je = !1)), !z && B[1] & /*analyticsCustomUrl*/
18722
+ 16384 && (z = !0, le.analyticsCustomUrl = /*analyticsCustomUrl*/
18723
+ V[45], ve(() => z = !1)), !Ae && B[1] & /*analyticsTag*/
18722
18724
  32768 && (Ae = !0, le.analyticsTag = /*analyticsTag*/
18723
18725
  V[46], ve(() => Ae = !1)), e.$set(le);
18724
18726
  },
@@ -18726,7 +18728,7 @@ function C3(t) {
18726
18728
  Oe || (I(e.$$.fragment, V), Oe = !0);
18727
18729
  },
18728
18730
  o(V) {
18729
- z(e.$$.fragment, V), Oe = !1;
18731
+ j(e.$$.fragment, V), Oe = !1;
18730
18732
  },
18731
18733
  d(V) {
18732
18734
  ce(e, V);
@@ -18818,7 +18820,7 @@ function tr(t) {
18818
18820
  i || (I(e.$$.fragment, n), i = !0);
18819
18821
  },
18820
18822
  o(n) {
18821
- z(e.$$.fragment, n), i = !1;
18823
+ j(e.$$.fragment, n), i = !1;
18822
18824
  },
18823
18825
  d(n) {
18824
18826
  ce(e, n);
@@ -18849,7 +18851,7 @@ function ir(t) {
18849
18851
  i || (I(e.$$.fragment, n), i = !0);
18850
18852
  },
18851
18853
  o(n) {
18852
- z(e.$$.fragment, n), i = !1;
18854
+ j(e.$$.fragment, n), i = !1;
18853
18855
  },
18854
18856
  d(n) {
18855
18857
  ce(e, n);
@@ -18869,7 +18871,7 @@ function nr(t) {
18869
18871
  i || (I(e.$$.fragment, n), i = !0);
18870
18872
  },
18871
18873
  o(n) {
18872
- z(e.$$.fragment, n), i = !1;
18874
+ j(e.$$.fragment, n), i = !1;
18873
18875
  },
18874
18876
  d(n) {
18875
18877
  ce(e, n);
@@ -18878,7 +18880,7 @@ function nr(t) {
18878
18880
  }
18879
18881
  function I3(t) {
18880
18882
  let e, i, n, o, s = [], l = /* @__PURE__ */ new Map(), a, r, u, c, g, f, A;
18881
- e = new zs({
18883
+ e = new js({
18882
18884
  props: {
18883
18885
  prepend: !0,
18884
18886
  root: (
@@ -18943,11 +18945,11 @@ function I3(t) {
18943
18945
  4787911 | P[5] & /*$$scope*/
18944
18946
  33554432 && (Y.$$scope = { dirty: P, ctx: S }), e.$set(Y), /*showStaticInterface*/
18945
18947
  S[80] ? _ ? (_.p(S, P), P[2] & /*showStaticInterface*/
18946
- 262144 && I(_, 1)) : (_ = Xa(S), _.c(), I(_, 1), _.m(n.parentNode, n)) : _ && (Fe(), z(_, 1, 1, () => {
18948
+ 262144 && I(_, 1)) : (_ = Xa(S), _.c(), I(_, 1), _.m(n.parentNode, n)) : _ && (Fe(), j(_, 1, 1, () => {
18947
18949
  _ = null;
18948
18950
  }), Ue()), /*showWidgetInterface*/
18949
18951
  S[79] ? k ? (k.p(S, P), P[2] & /*showWidgetInterface*/
18950
- 131072 && I(k, 1)) : (k = Qa(S), k.c(), I(k, 1), k.m(o.parentNode, o)) : k && (Fe(), z(k, 1, 1, () => {
18952
+ 131072 && I(k, 1)) : (k = Qa(S), k.c(), I(k, 1), k.m(o.parentNode, o)) : k && (Fe(), j(k, 1, 1, () => {
18951
18953
  k = null;
18952
18954
  }), Ue()), P[0] & /*contentIndex, currentTime, playbackState*/
18953
18955
  6272 | P[1] & /*segmentWidgets, content, duration, textColor, backgroundColor, iconColor, videoTextColor, videoBackgroundColor, videoIconColor*/
@@ -18957,19 +18959,19 @@ function I3(t) {
18957
18959
  S[51]
18958
18960
  ), Fe(), s = fc(s, P, T, 1, S, w, l, a.parentNode, gc, $a, a, Ja), Ue()), /*controlPanel*/
18959
18961
  S[23] ? v ? (v.p(S, P), P[0] & /*controlPanel*/
18960
- 8388608 && I(v, 1)) : (v = er(S), v.c(), I(v, 1), v.m(r.parentNode, r)) : v && (Fe(), z(v, 1, 1, () => {
18962
+ 8388608 && I(v, 1)) : (v = er(S), v.c(), I(v, 1), v.m(r.parentNode, r)) : v && (Fe(), j(v, 1, 1, () => {
18961
18963
  v = null;
18962
18964
  }), Ue()), /*showMediaSession*/
18963
18965
  S[58] ? p ? (p.p(S, P), P[1] & /*showMediaSession*/
18964
- 134217728 && I(p, 1)) : (p = tr(S), p.c(), I(p, 1), p.m(u.parentNode, u)) : p && (Fe(), z(p, 1, 1, () => {
18966
+ 134217728 && I(p, 1)) : (p = tr(S), p.c(), I(p, 1), p.m(u.parentNode, u)) : p && (Fe(), j(p, 1, 1, () => {
18965
18967
  p = null;
18966
18968
  }), Ue()), /*analyticsTag*/
18967
18969
  S[46] ? L ? (L.p(S, P), P[1] & /*analyticsTag*/
18968
- 32768 && I(L, 1)) : (L = ir(S), L.c(), I(L, 1), L.m(c.parentNode, c)) : L && (Fe(), z(L, 1, 1, () => {
18970
+ 32768 && I(L, 1)) : (L = ir(S), L.c(), I(L, 1), L.m(c.parentNode, c)) : L && (Fe(), j(L, 1, 1, () => {
18969
18971
  L = null;
18970
18972
  }), Ue()), /*setDaxListenerId*/
18971
18973
  S[82] ? D ? P[2] & /*setDaxListenerId*/
18972
- 1048576 && I(D, 1) : (D = nr(), D.c(), I(D, 1), D.m(g.parentNode, g)) : D && (Fe(), z(D, 1, 1, () => {
18974
+ 1048576 && I(D, 1) : (D = nr(), D.c(), I(D, 1), D.m(g.parentNode, g)) : D && (Fe(), j(D, 1, 1, () => {
18973
18975
  D = null;
18974
18976
  }), Ue());
18975
18977
  },
@@ -18982,10 +18984,10 @@ function I3(t) {
18982
18984
  }
18983
18985
  },
18984
18986
  o(S) {
18985
- z(e.$$.fragment, S), z(_), z(k);
18987
+ j(e.$$.fragment, S), j(_), j(k);
18986
18988
  for (let P = 0; P < s.length; P += 1)
18987
- z(s[P]);
18988
- z(v), z(p), z(L), z(D), z(f.$$.fragment, S), A = !1;
18989
+ j(s[P]);
18990
+ j(v), j(p), j(L), j(D), j(f.$$.fragment, S), A = !1;
18989
18991
  },
18990
18992
  d(S) {
18991
18993
  S && (O(i), O(n), O(o), O(a), O(r), O(u), O(c), O(g)), ce(e, S), _ && _.d(S), k && k.d(S);
@@ -18996,10 +18998,10 @@ function I3(t) {
18996
18998
  };
18997
18999
  }
18998
19000
  function V3(t, e, i) {
18999
- let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, { playerApiUrl: de = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: he = void 0 } = e, { contentId: re = void 0 } = e, { playlistId: _e = void 0 } = e, { sourceId: ae = void 0 } = e, { sourceUrl: b = void 0 } = e, { playlist: C = [] } = e, { loadContentAs: F = ["article"] } = e, { contentVariant: x = F[0] } = e, { clientSideEnabled: We = !1 } = e, { showUserInterface: Ee = !0 } = e, { showBottomWidget: Je = !1 } = e, { playerStyle: j = "standard" } = e, { playerTitle: Ae = void 0 } = e, { callToAction: Oe = void 0 } = e, { skipButtonStyle: Ye = "auto" } = e, { playlistStyle: je = "auto-5-4" } = e, { playlistToggle: Ze = "auto" } = e, { downloadFormats: Ge = [] } = e, { mediaSession: Pe = "auto" } = e, { content: qe = [] } = e, { contentIndex: Ie = 0 } = e, { introsOutros: Lt = [] } = e, { introsOutrosIndex: ke = -1 } = e, { adverts: Ke = [] } = e, { advertIndex: Ne = -1 } = e, { preloadAdvertIndex: tt = -1 } = e, { minDurationForMidroll: Rt = 2 * 60 } = e, { minTimeUntilEndForMidroll: Re = 10 } = e, { persistentAdImage: mt = !1 } = e, { persistentIndex: xe = -1 } = e, { duration: ht = 0 } = e, { currentTime: it = 0 } = e, { playbackState: Me = "stopped" } = e, { playbackRate: ze = 1 } = e, { playbackRates: _t = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 2, 2.5, 3] } = e, { widgetStyle: At = "standard" } = e, { widgetPosition: Ct = "auto" } = e, { widgetWidth: nt = "auto" } = e, { widgetMargin: Xe = "16px" } = e, { widgetTarget: lt = void 0 } = e, { textColor: at = "#111" } = e, { backgroundColor: It = "#f5f5f5" } = e, { iconColor: vt = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: bt = "#eee" } = e, { videoTextColor: Vt = "white" } = e, { videoBackgroundColor: rt = "black" } = e, { videoIconColor: ot = "white" } = e, { logoIconEnabled: St = !0 } = e, { highlightSections: Qe = "all" } = e, { clickableSections: kt = "all" } = e, { segmentWidgetSections: He = "body" } = e, { segmentWidgetPosition: dt = "7-oclock" } = e, { currentSegment: st = void 0 } = e, { hoveredSegment: gt = void 0 } = e, { loadedMedia: $e = void 0 } = e, { previewToken: et = void 0 } = e, { advertConsent: yt = "personalized" } = e, { analyticsConsent: Ot = "allowed" } = e, { analyticsCustomUrl: W = void 0 } = e, { analyticsDeviceType: V = "auto" } = e, { analyticsTag: B = void 0 } = e, { captureErrors: le = !0 } = e, { onError: Z = () => {
19001
+ let n, o, s, l, a, r, u, c, g, f, A, _, k, w, T, v, p, L, D, S, P, Y, q, N, X, te, se, $, ee, { playerApiUrl: de = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: he = void 0 } = e, { contentId: re = void 0 } = e, { playlistId: _e = void 0 } = e, { sourceId: ae = void 0 } = e, { sourceUrl: b = void 0 } = e, { playlist: C = [] } = e, { loadContentAs: F = ["article"] } = e, { contentVariant: x = F[0] } = e, { clientSideEnabled: We = !1 } = e, { showUserInterface: Ee = !0 } = e, { showBottomWidget: Je = !1 } = e, { playerStyle: z = "standard" } = e, { playerTitle: Ae = void 0 } = e, { callToAction: Oe = void 0 } = e, { skipButtonStyle: Ye = "auto" } = e, { playlistStyle: ze = "auto-5-4" } = e, { playlistToggle: Ze = "auto" } = e, { downloadFormats: Ge = [] } = e, { mediaSession: Pe = "auto" } = e, { content: qe = [] } = e, { contentIndex: Ie = 0 } = e, { introsOutros: Lt = [] } = e, { introsOutrosIndex: ke = -1 } = e, { adverts: Ke = [] } = e, { advertIndex: Ne = -1 } = e, { preloadAdvertIndex: tt = -1 } = e, { minDurationForMidroll: Rt = 2 * 60 } = e, { minTimeUntilEndForMidroll: Re = 10 } = e, { persistentAdImage: mt = !1 } = e, { persistentIndex: xe = -1 } = e, { duration: ht = 0 } = e, { currentTime: it = 0 } = e, { playbackState: Me = "stopped" } = e, { playbackRate: je = 1 } = e, { playbackRates: _t = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 2, 2.5, 3] } = e, { widgetStyle: At = "standard" } = e, { widgetPosition: Ct = "auto" } = e, { widgetWidth: nt = "auto" } = e, { widgetMargin: Xe = "16px" } = e, { widgetTarget: lt = void 0 } = e, { textColor: at = "#111" } = e, { backgroundColor: It = "#f5f5f5" } = e, { iconColor: vt = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: bt = "#eee" } = e, { videoTextColor: Vt = "white" } = e, { videoBackgroundColor: rt = "black" } = e, { videoIconColor: ot = "white" } = e, { logoIconEnabled: St = !0 } = e, { highlightSections: Qe = "all" } = e, { clickableSections: kt = "all" } = e, { segmentWidgetSections: He = "body" } = e, { segmentWidgetPosition: dt = "7-oclock" } = e, { currentSegment: st = void 0 } = e, { hoveredSegment: gt = void 0 } = e, { loadedMedia: $e = void 0 } = e, { previewToken: et = void 0 } = e, { advertConsent: yt = "personalized" } = e, { analyticsConsent: Ot = "allowed" } = e, { analyticsCustomUrl: W = void 0 } = e, { analyticsDeviceType: V = "auto" } = e, { analyticsTag: B = void 0 } = e, { captureErrors: le = !0 } = e, { onError: Z = () => {
19000
19002
  } } = e, { transitions: Mt = [] } = e, { controlPanel: Ti = void 0 } = e;
19001
19003
  const ci = (...h) => Ft.addEventListener(...h), Tn = (...h) => Ft.removeEventListener(...h);
19002
- let { initialProps: Bt = {} } = e, { showMediaSession: Pi = !1 } = e, { metadataLoaded: Ut = !1 } = e, { isFullScreen: di = !1 } = e, { mediaElement: Ht = void 0 } = e, { userInterface: gi = void 0 } = e, { widgetInterface: vi = void 0 } = e, { controller: Ft = void 0 } = e, { logoImagePosition: ti = void 0 } = e, { analyticsUrl: Ci = void 0 } = e, { analyticsId: ji = void 0 } = e, { platform: ai = "web" } = e, { vendorIdentifier: xt = void 0 } = e, { bundleIdentifier: Ii = void 0 } = e, { contentLanguage: ii = "en" } = e, { listenSessionId: wt = void 0 } = e, { sessionCreatedAt: ni = void 0 } = e, { companionAdvert: Tt = void 0 } = e, { isNewListen: Vi = !1 } = e, { prevPercentage: pt = 0 } = e, { segmentWidgets: R = [] } = e, { segmentContainers: G = new fl((h) => i(51, R = h)) } = e, { segmentClickables: ge = new dl() } = e, { segmentHighlights: Dt = new ml() } = e;
19004
+ let { initialProps: Bt = {} } = e, { showMediaSession: Pi = !1 } = e, { metadataLoaded: Ut = !1 } = e, { isFullScreen: di = !1 } = e, { mediaElement: Ht = void 0 } = e, { userInterface: gi = void 0 } = e, { widgetInterface: vi = void 0 } = e, { controller: Ft = void 0 } = e, { logoImagePosition: ti = void 0 } = e, { analyticsUrl: Ci = void 0 } = e, { analyticsId: zi = void 0 } = e, { platform: ai = "web" } = e, { vendorIdentifier: xt = void 0 } = e, { bundleIdentifier: Ii = void 0 } = e, { contentLanguage: ii = "en" } = e, { listenSessionId: wt = void 0 } = e, { sessionCreatedAt: ni = void 0 } = e, { companionAdvert: Tt = void 0 } = e, { isNewListen: Vi = !1 } = e, { prevPercentage: pt = 0 } = e, { segmentWidgets: R = [] } = e, { segmentContainers: G = new fl((h) => i(51, R = h)) } = e, { segmentClickables: ge = new dl() } = e, { segmentHighlights: Dt = new ml() } = e;
19003
19005
  const Ni = (h) => Ft.processEvent(Kt({ emittedFrom: D }, h)), rn = () => i(112, N = gt);
19004
19006
  function un(h) {
19005
19007
  oe[h ? "unshift" : "push"](() => {
@@ -19016,7 +19018,7 @@ function V3(t, e, i) {
19016
19018
  it = h, i(11, it);
19017
19019
  }
19018
19020
  function ri(h) {
19019
- ze = h, i(34, ze);
19021
+ je = h, i(34, je);
19020
19022
  }
19021
19023
  function cn(h) {
19022
19024
  pt = h, i(50, pt);
@@ -19048,7 +19050,7 @@ function V3(t, e, i) {
19048
19050
  function Oo(h) {
19049
19051
  _e = h, i(2, _e);
19050
19052
  }
19051
- function zi(h) {
19053
+ function ji(h) {
19052
19054
  ae = h, i(3, ae);
19053
19055
  }
19054
19056
  function Mo(h) {
@@ -19058,19 +19060,19 @@ function V3(t, e, i) {
19058
19060
  Ee = h, i(5, Ee);
19059
19061
  }
19060
19062
  function Eo(h) {
19061
- j = h, i(6, j);
19063
+ z = h, i(6, z);
19062
19064
  }
19063
- function jo(h) {
19065
+ function zo(h) {
19064
19066
  Ae = h, i(26, Ae);
19065
19067
  }
19066
19068
  function to(h) {
19067
19069
  Oe = h, i(27, Oe);
19068
19070
  }
19069
- function zo(h) {
19071
+ function jo(h) {
19070
19072
  Ye = h, i(28, Ye);
19071
19073
  }
19072
19074
  function hn(h) {
19073
- je = h, i(29, je);
19075
+ ze = h, i(29, ze);
19074
19076
  }
19075
19077
  function Zt(h) {
19076
19078
  Ze = h, i(30, Ze);
@@ -19087,7 +19089,7 @@ function V3(t, e, i) {
19087
19089
  function Lo(h) {
19088
19090
  Ne = h, i(9, Ne);
19089
19091
  }
19090
- function jn(h) {
19092
+ function zn(h) {
19091
19093
  mt = h, i(32, mt);
19092
19094
  }
19093
19095
  function Bi(h) {
@@ -19103,7 +19105,7 @@ function V3(t, e, i) {
19103
19105
  Me = h, i(12, Me);
19104
19106
  }
19105
19107
  function xo(h) {
19106
- ze = h, i(34, ze);
19108
+ je = h, i(34, je);
19107
19109
  }
19108
19110
  function pu(h) {
19109
19111
  At = h, i(13, At);
@@ -19144,10 +19146,10 @@ function V3(t, e, i) {
19144
19146
  function Eu(h) {
19145
19147
  Qe = h, i(16, Qe);
19146
19148
  }
19147
- function ju(h) {
19149
+ function zu(h) {
19148
19150
  kt = h, i(17, kt);
19149
19151
  }
19150
- function zu(h) {
19152
+ function ju(h) {
19151
19153
  He = h, i(18, He);
19152
19154
  }
19153
19155
  function Lu(h) {
@@ -19172,7 +19174,7 @@ function V3(t, e, i) {
19172
19174
  B = h, i(46, B);
19173
19175
  }
19174
19176
  return t.$$set = (h) => {
19175
- "playerApiUrl" in h && i(85, de = h.playerApiUrl), "projectId" in h && i(0, he = h.projectId), "contentId" in h && i(1, re = h.contentId), "playlistId" in h && i(2, _e = h.playlistId), "sourceId" in h && i(3, ae = h.sourceId), "sourceUrl" in h && i(4, b = h.sourceUrl), "playlist" in h && i(86, C = h.playlist), "loadContentAs" in h && i(87, F = h.loadContentAs), "contentVariant" in h && i(25, x = h.contentVariant), "clientSideEnabled" in h && i(88, We = h.clientSideEnabled), "showUserInterface" in h && i(5, Ee = h.showUserInterface), "showBottomWidget" in h && i(89, Je = h.showBottomWidget), "playerStyle" in h && i(6, j = h.playerStyle), "playerTitle" in h && i(26, Ae = h.playerTitle), "callToAction" in h && i(27, Oe = h.callToAction), "skipButtonStyle" in h && i(28, Ye = h.skipButtonStyle), "playlistStyle" in h && i(29, je = h.playlistStyle), "playlistToggle" in h && i(30, Ze = h.playlistToggle), "downloadFormats" in h && i(52, Ge = h.downloadFormats), "mediaSession" in h && i(31, Pe = h.mediaSession), "content" in h && i(53, qe = h.content), "contentIndex" in h && i(7, Ie = h.contentIndex), "introsOutros" in h && i(54, Lt = h.introsOutros), "introsOutrosIndex" in h && i(8, ke = h.introsOutrosIndex), "adverts" in h && i(55, Ke = h.adverts), "advertIndex" in h && i(9, Ne = h.advertIndex), "preloadAdvertIndex" in h && i(90, tt = h.preloadAdvertIndex), "minDurationForMidroll" in h && i(91, Rt = h.minDurationForMidroll), "minTimeUntilEndForMidroll" in h && i(92, Re = h.minTimeUntilEndForMidroll), "persistentAdImage" in h && i(32, mt = h.persistentAdImage), "persistentIndex" in h && i(10, xe = h.persistentIndex), "duration" in h && i(33, ht = h.duration), "currentTime" in h && i(11, it = h.currentTime), "playbackState" in h && i(12, Me = h.playbackState), "playbackRate" in h && i(34, ze = h.playbackRate), "playbackRates" in h && i(56, _t = h.playbackRates), "widgetStyle" in h && i(13, At = h.widgetStyle), "widgetPosition" in h && i(35, Ct = h.widgetPosition), "widgetWidth" in h && i(36, nt = h.widgetWidth), "widgetMargin" in h && i(37, Xe = h.widgetMargin), "widgetTarget" in h && i(14, lt = h.widgetTarget), "textColor" in h && i(38, at = h.textColor), "backgroundColor" in h && i(39, It = h.backgroundColor), "iconColor" in h && i(40, vt = h.iconColor), "highlightColor" in h && i(15, bt = h.highlightColor), "videoTextColor" in h && i(41, Vt = h.videoTextColor), "videoBackgroundColor" in h && i(57, rt = h.videoBackgroundColor), "videoIconColor" in h && i(42, ot = h.videoIconColor), "logoIconEnabled" in h && i(43, St = h.logoIconEnabled), "highlightSections" in h && i(16, Qe = h.highlightSections), "clickableSections" in h && i(17, kt = h.clickableSections), "segmentWidgetSections" in h && i(18, He = h.segmentWidgetSections), "segmentWidgetPosition" in h && i(19, dt = h.segmentWidgetPosition), "currentSegment" in h && i(20, st = h.currentSegment), "hoveredSegment" in h && i(21, gt = h.hoveredSegment), "loadedMedia" in h && i(93, $e = h.loadedMedia), "previewToken" in h && i(94, et = h.previewToken), "advertConsent" in h && i(22, yt = h.advertConsent), "analyticsConsent" in h && i(44, Ot = h.analyticsConsent), "analyticsCustomUrl" in h && i(45, W = h.analyticsCustomUrl), "analyticsDeviceType" in h && i(95, V = h.analyticsDeviceType), "analyticsTag" in h && i(46, B = h.analyticsTag), "captureErrors" in h && i(96, le = h.captureErrors), "onError" in h && i(97, Z = h.onError), "transitions" in h && i(98, Mt = h.transitions), "controlPanel" in h && i(23, Ti = h.controlPanel), "initialProps" in h && i(101, Bt = h.initialProps), "showMediaSession" in h && i(58, Pi = h.showMediaSession), "metadataLoaded" in h && i(24, Ut = h.metadataLoaded), "isFullScreen" in h && i(59, di = h.isFullScreen), "mediaElement" in h && i(47, Ht = h.mediaElement), "userInterface" in h && i(48, gi = h.userInterface), "widgetInterface" in h && i(49, vi = h.widgetInterface), "controller" in h && i(102, Ft = h.controller), "logoImagePosition" in h && i(60, ti = h.logoImagePosition), "analyticsUrl" in h && i(103, Ci = h.analyticsUrl), "analyticsId" in h && i(104, ji = h.analyticsId), "platform" in h && i(61, ai = h.platform), "vendorIdentifier" in h && i(62, xt = h.vendorIdentifier), "bundleIdentifier" in h && i(63, Ii = h.bundleIdentifier), "contentLanguage" in h && i(64, ii = h.contentLanguage), "listenSessionId" in h && i(105, wt = h.listenSessionId), "sessionCreatedAt" in h && i(106, ni = h.sessionCreatedAt), "companionAdvert" in h && i(65, Tt = h.companionAdvert), "isNewListen" in h && i(107, Vi = h.isNewListen), "prevPercentage" in h && i(50, pt = h.prevPercentage), "segmentWidgets" in h && i(51, R = h.segmentWidgets), "segmentContainers" in h && i(108, G = h.segmentContainers), "segmentClickables" in h && i(109, ge = h.segmentClickables), "segmentHighlights" in h && i(110, Dt = h.segmentHighlights);
19177
+ "playerApiUrl" in h && i(85, de = h.playerApiUrl), "projectId" in h && i(0, he = h.projectId), "contentId" in h && i(1, re = h.contentId), "playlistId" in h && i(2, _e = h.playlistId), "sourceId" in h && i(3, ae = h.sourceId), "sourceUrl" in h && i(4, b = h.sourceUrl), "playlist" in h && i(86, C = h.playlist), "loadContentAs" in h && i(87, F = h.loadContentAs), "contentVariant" in h && i(25, x = h.contentVariant), "clientSideEnabled" in h && i(88, We = h.clientSideEnabled), "showUserInterface" in h && i(5, Ee = h.showUserInterface), "showBottomWidget" in h && i(89, Je = h.showBottomWidget), "playerStyle" in h && i(6, z = h.playerStyle), "playerTitle" in h && i(26, Ae = h.playerTitle), "callToAction" in h && i(27, Oe = h.callToAction), "skipButtonStyle" in h && i(28, Ye = h.skipButtonStyle), "playlistStyle" in h && i(29, ze = h.playlistStyle), "playlistToggle" in h && i(30, Ze = h.playlistToggle), "downloadFormats" in h && i(52, Ge = h.downloadFormats), "mediaSession" in h && i(31, Pe = h.mediaSession), "content" in h && i(53, qe = h.content), "contentIndex" in h && i(7, Ie = h.contentIndex), "introsOutros" in h && i(54, Lt = h.introsOutros), "introsOutrosIndex" in h && i(8, ke = h.introsOutrosIndex), "adverts" in h && i(55, Ke = h.adverts), "advertIndex" in h && i(9, Ne = h.advertIndex), "preloadAdvertIndex" in h && i(90, tt = h.preloadAdvertIndex), "minDurationForMidroll" in h && i(91, Rt = h.minDurationForMidroll), "minTimeUntilEndForMidroll" in h && i(92, Re = h.minTimeUntilEndForMidroll), "persistentAdImage" in h && i(32, mt = h.persistentAdImage), "persistentIndex" in h && i(10, xe = h.persistentIndex), "duration" in h && i(33, ht = h.duration), "currentTime" in h && i(11, it = h.currentTime), "playbackState" in h && i(12, Me = h.playbackState), "playbackRate" in h && i(34, je = h.playbackRate), "playbackRates" in h && i(56, _t = h.playbackRates), "widgetStyle" in h && i(13, At = h.widgetStyle), "widgetPosition" in h && i(35, Ct = h.widgetPosition), "widgetWidth" in h && i(36, nt = h.widgetWidth), "widgetMargin" in h && i(37, Xe = h.widgetMargin), "widgetTarget" in h && i(14, lt = h.widgetTarget), "textColor" in h && i(38, at = h.textColor), "backgroundColor" in h && i(39, It = h.backgroundColor), "iconColor" in h && i(40, vt = h.iconColor), "highlightColor" in h && i(15, bt = h.highlightColor), "videoTextColor" in h && i(41, Vt = h.videoTextColor), "videoBackgroundColor" in h && i(57, rt = h.videoBackgroundColor), "videoIconColor" in h && i(42, ot = h.videoIconColor), "logoIconEnabled" in h && i(43, St = h.logoIconEnabled), "highlightSections" in h && i(16, Qe = h.highlightSections), "clickableSections" in h && i(17, kt = h.clickableSections), "segmentWidgetSections" in h && i(18, He = h.segmentWidgetSections), "segmentWidgetPosition" in h && i(19, dt = h.segmentWidgetPosition), "currentSegment" in h && i(20, st = h.currentSegment), "hoveredSegment" in h && i(21, gt = h.hoveredSegment), "loadedMedia" in h && i(93, $e = h.loadedMedia), "previewToken" in h && i(94, et = h.previewToken), "advertConsent" in h && i(22, yt = h.advertConsent), "analyticsConsent" in h && i(44, Ot = h.analyticsConsent), "analyticsCustomUrl" in h && i(45, W = h.analyticsCustomUrl), "analyticsDeviceType" in h && i(95, V = h.analyticsDeviceType), "analyticsTag" in h && i(46, B = h.analyticsTag), "captureErrors" in h && i(96, le = h.captureErrors), "onError" in h && i(97, Z = h.onError), "transitions" in h && i(98, Mt = h.transitions), "controlPanel" in h && i(23, Ti = h.controlPanel), "initialProps" in h && i(101, Bt = h.initialProps), "showMediaSession" in h && i(58, Pi = h.showMediaSession), "metadataLoaded" in h && i(24, Ut = h.metadataLoaded), "isFullScreen" in h && i(59, di = h.isFullScreen), "mediaElement" in h && i(47, Ht = h.mediaElement), "userInterface" in h && i(48, gi = h.userInterface), "widgetInterface" in h && i(49, vi = h.widgetInterface), "controller" in h && i(102, Ft = h.controller), "logoImagePosition" in h && i(60, ti = h.logoImagePosition), "analyticsUrl" in h && i(103, Ci = h.analyticsUrl), "analyticsId" in h && i(104, zi = h.analyticsId), "platform" in h && i(61, ai = h.platform), "vendorIdentifier" in h && i(62, xt = h.vendorIdentifier), "bundleIdentifier" in h && i(63, Ii = h.bundleIdentifier), "contentLanguage" in h && i(64, ii = h.contentLanguage), "listenSessionId" in h && i(105, wt = h.listenSessionId), "sessionCreatedAt" in h && i(106, ni = h.sessionCreatedAt), "companionAdvert" in h && i(65, Tt = h.companionAdvert), "isNewListen" in h && i(107, Vi = h.isNewListen), "prevPercentage" in h && i(50, pt = h.prevPercentage), "segmentWidgets" in h && i(51, R = h.segmentWidgets), "segmentContainers" in h && i(108, G = h.segmentContainers), "segmentClickables" in h && i(109, ge = h.segmentClickables), "segmentHighlights" in h && i(110, Dt = h.segmentHighlights);
19176
19178
  }, t.$$.update = () => {
19177
19179
  t.$$.dirty[0] & /*contentIndex*/
19178
19180
  128 | t.$$.dirty[1] & /*content*/
@@ -19192,7 +19194,7 @@ function V3(t, e, i) {
19192
19194
  4194304 | t.$$.dirty[3] & /*hasDaxAdverts*/
19193
19195
  134217728 && i(82, g = c && yt === "personalized"), t.$$.dirty[0] & /*playerStyle*/
19194
19196
  64 | t.$$.dirty[1] & /*isFullScreen*/
19195
- 268435456 && i(74, f = di ? "video" : j), t.$$.dirty[0] & /*widgetTarget*/
19197
+ 268435456 && i(74, f = di ? "video" : z), t.$$.dirty[0] & /*widgetTarget*/
19196
19198
  16384 && i(14, lt = _l(lt, "widget")), t.$$.dirty[0] & /*widgetTarget*/
19197
19199
  16384 | t.$$.dirty[2] & /*showBottomWidget*/
19198
19200
  134217728 && i(117, A = Je || lt), t.$$.dirty[2] & /*interfaceStyle*/
@@ -19211,7 +19213,7 @@ function V3(t, e, i) {
19211
19213
  16777216 && i(73, p = A && At === "video" && !di), t.$$.dirty[2] & /*interfaceStyle, videoBehindWidget*/
19212
19214
  6144 && i(78, L = f === "video" && !p), t.$$.dirty[2] & /*videoBehindWidget*/
19213
19215
  2048 && (D = p ? "bottom-widget" : "inline-player"), t.$$.dirty[0] & /*playerStyle, widgetStyle*/
19214
- 8256 && i(72, S = j === "video" || At === "video"), t.$$.dirty[0] & /*widgetTarget*/
19216
+ 8256 && i(72, S = z === "video" || At === "video"), t.$$.dirty[0] & /*widgetTarget*/
19215
19217
  16384 | t.$$.dirty[2] & /*videoBehindWidget*/
19216
19218
  2048 && i(77, P = p ? lt : null), t.$$.dirty[0] & /*metadataLoaded*/
19217
19219
  16777216 | t.$$.dirty[2] & /*videoMightBeShown*/
@@ -19237,7 +19239,7 @@ function V3(t, e, i) {
19237
19239
  448 && i(75, ee = $ || s || o), t.$$.dirty[0] & /*segmentWidgetSections, segmentWidgetPosition, playerStyle*/
19238
19240
  786496 | t.$$.dirty[2] & /*widgetSegment*/
19239
19241
  32 | t.$$.dirty[3] & /*segmentContainers*/
19240
- 32768 && G.update(se, He, dt, j), t.$$.dirty[0] & /*hoveredSegment, clickableSections*/
19242
+ 32768 && G.update(se, He, dt, z), t.$$.dirty[0] & /*hoveredSegment, clickableSections*/
19241
19243
  2228224 | t.$$.dirty[3] & /*segmentClickables*/
19242
19244
  65536 && ge.update(gt, kt), t.$$.dirty[0] & /*currentSegment, highlightSections, highlightColor*/
19243
19245
  1146880 | t.$$.dirty[3] & /*segmentHighlights*/
@@ -19253,7 +19255,7 @@ function V3(t, e, i) {
19253
19255
  ae,
19254
19256
  b,
19255
19257
  Ee,
19256
- j,
19258
+ z,
19257
19259
  Ie,
19258
19260
  ke,
19259
19261
  Ne,
@@ -19276,12 +19278,12 @@ function V3(t, e, i) {
19276
19278
  Ae,
19277
19279
  Oe,
19278
19280
  Ye,
19279
- je,
19281
+ ze,
19280
19282
  Ze,
19281
19283
  Pe,
19282
19284
  mt,
19283
19285
  ht,
19284
- ze,
19286
+ je,
19285
19287
  Ct,
19286
19288
  nt,
19287
19289
  Xe,
@@ -19351,7 +19353,7 @@ function V3(t, e, i) {
19351
19353
  Bt,
19352
19354
  Ft,
19353
19355
  Ci,
19354
- ji,
19356
+ zi,
19355
19357
  wt,
19356
19358
  ni,
19357
19359
  Vi,
@@ -19381,20 +19383,20 @@ function V3(t, e, i) {
19381
19383
  Wo,
19382
19384
  Cn,
19383
19385
  Oo,
19384
- zi,
19386
+ ji,
19385
19387
  Mo,
19386
19388
  eo,
19387
19389
  Eo,
19388
- jo,
19389
- to,
19390
19390
  zo,
19391
+ to,
19392
+ jo,
19391
19393
  hn,
19392
19394
  Zt,
19393
19395
  Ls,
19394
19396
  In,
19395
19397
  oi,
19396
19398
  Lo,
19397
- jn,
19399
+ zn,
19398
19400
  Bi,
19399
19401
  me,
19400
19402
  ut,
@@ -19413,8 +19415,8 @@ function V3(t, e, i) {
19413
19415
  Ou,
19414
19416
  Mu,
19415
19417
  Eu,
19416
- ju,
19417
19418
  zu,
19419
+ ju,
19418
19420
  Lu,
19419
19421
  xu,
19420
19422
  Du,
@@ -20129,22 +20131,22 @@ const yl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
20129
20131
  const e = new O3(t.playerApiUrl, t.projectId, t.clientSideEnabled, t.previewToken);
20130
20132
  if (!t.playerApiUrl || !t.projectId)
20131
20133
  return;
20132
- const i = j3(t);
20134
+ const i = z3(t);
20133
20135
  if (i.length === 0) {
20134
20136
  t.sourceUrl = window.location.href;
20135
20137
  return;
20136
20138
  }
20137
- const n = yield z3(e, i).catch(() => {
20139
+ const n = yield j3(e, i).catch(() => {
20138
20140
  });
20139
20141
  if (!(n != null && n.content)) {
20140
20142
  L3(t);
20141
20143
  return;
20142
20144
  }
20143
20145
  D3(t, n), x3(t);
20144
- }), j3 = (t) => {
20146
+ }), z3 = (t) => {
20145
20147
  const e = [];
20146
20148
  return t.contentId && e.push({ content_id: t.contentId }), t.playlistId && e.push({ playlist_id: t.playlistId }), t.sourceId && e.push({ source_id: t.sourceId }), t.sourceUrl && e.push({ source_url: t.sourceUrl }), t.playlist && e.push(...yl(t.playlist)), [...new Set(e.map(JSON.stringify))].map(JSON.parse);
20147
- }, z3 = (t, e) => {
20149
+ }, j3 = (t, e) => {
20148
20150
  const i = e[0];
20149
20151
  if (e.length > 1)
20150
20152
  return t.byIdentifiers(e);
@@ -20271,145 +20273,141 @@ const yl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
20271
20273
  }, R3 = ({ analytics_enabled: t, analytics_uuid_enabled: e }) => t ? e ? "allowed" : "without-local-storage" : "none", F3 = (t, e) => Ri(void 0, null, function* () {
20272
20274
  const n = yield (yield fetch(t)).blob(), o = URL.createObjectURL(n), s = document.createElement("a");
20273
20275
  document.body.append(s), s.href = o, s.setAttribute("download", e), s.setAttribute("target", "_blank"), s.click(), s.remove();
20274
- }), U3 = () => {
20275
- var n, o;
20276
- const t = ((o = (n = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : n.toLowerCase) == null ? void 0 : o.call(n)) || "", e = t.match(/iphone|ipad|ipod/i) && (navigator == null ? void 0 : navigator.maxTouchPoints), i = t.match(/crios/i);
20277
- return e && i;
20278
- }, cs = { vastUrls: /* @__PURE__ */ new Map(), mediaSources: /* @__PURE__ */ new Set() }, H3 = 6e4, q3 = (t) => {
20276
+ }), cs = { vastUrls: /* @__PURE__ */ new Map(), mediaSources: /* @__PURE__ */ new Set() }, U3 = 6e4, H3 = (t) => {
20279
20277
  t.vastUrl && cs.vastUrls.set(t.vastUrl, Date.now());
20280
20278
  for (const e of [...t.audio || [], ...t.video || []])
20281
20279
  cs.mediaSources.add(e.url);
20282
20280
  }, su = (t) => {
20283
20281
  if (t.vastUrl) {
20284
20282
  const e = cs.vastUrls.get(t.vastUrl) || -1 / 0;
20285
- if (Date.now() - e < H3)
20283
+ if (Date.now() - e < U3)
20286
20284
  return !0;
20287
20285
  }
20288
20286
  for (const e of [...t.audio || [], ...t.video || []])
20289
20287
  if (cs.mediaSources.has(e.url))
20290
20288
  return !0;
20291
20289
  return !1;
20292
- }, lu = /* @__PURE__ */ new Set(), Y3 = (t) => {
20290
+ }, lu = /* @__PURE__ */ new Set(), q3 = (t) => {
20293
20291
  [...t.audio || [], ...t.video || []].forEach((i) => lu.add(i.url));
20294
- }, Z3 = (t) => [...t.audio || [], ...t.video || []].some((i) => lu.has(i.url)), or = ({ introsOutrosIndex: t, adverts: e, advertIndex: i, preloadAdvertIndex: n, content: o = [], contentIndex: s, currentTime: l, atTheStart: a, atTheEnd: r, errored: u, minTimeUntilEndForMidroll: c, minDurationForMidroll: g, contentVariant: f } = {}) => {
20292
+ }, Y3 = (t) => [...t.audio || [], ...t.video || []].some((i) => lu.has(i.url)), or = ({ introsOutrosIndex: t, adverts: e, advertIndex: i, preloadAdvertIndex: n, content: o = [], contentIndex: s, currentTime: l, atTheStart: a, atTheEnd: r, errored: u, minTimeUntilEndForMidroll: c, minDurationForMidroll: g, contentVariant: f } = {}) => {
20295
20293
  var v;
20296
20294
  const A = e && e[i];
20297
20295
  e:
20298
20296
  if (A) {
20299
20297
  if (u) {
20300
- q3(A);
20298
+ H3(A);
20301
20299
  break e;
20302
20300
  }
20303
20301
  if (r)
20304
- return Y3(A), -1;
20302
+ return q3(A), -1;
20305
20303
  if (!r)
20306
20304
  return i;
20307
20305
  }
20308
20306
  if (!((v = o[s]) != null && v.adsEnabled) || t !== -1)
20309
20307
  return -1;
20310
- const _ = G3({ content: o, contentIndex: s, currentTime: l, atTheStart: a, atTheEnd: r, minTimeUntilEndForMidroll: c, minDurationForMidroll: g, contentVariant: f });
20308
+ const _ = K3({ content: o, contentIndex: s, currentTime: l, atTheStart: a, atTheEnd: r, minTimeUntilEndForMidroll: c, minDurationForMidroll: g, contentVariant: f });
20311
20309
  let k = -1, w = -1 / 0, T = -1 / 0;
20312
20310
  for (const [p, L] of e.entries()) {
20313
- if (Z3(L) || su(L) || !_.has(L.placement))
20311
+ if (Y3(L) || su(L) || !_.has(L.placement))
20314
20312
  continue;
20315
- const D = K3[L.type] || 0;
20313
+ const D = Z3[L.type] || 0;
20316
20314
  if (D < w)
20317
20315
  continue;
20318
20316
  const S = n === p ? 1 / 0 : Math.random();
20319
20317
  D === w && S < T || (k = p, w = D, T = S);
20320
20318
  }
20321
20319
  return k;
20322
- }, K3 = { vast: 1, custom: 0 }, G3 = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o, minTimeUntilEndForMidroll: s, minDurationForMidroll: l, contentVariant: a }) => {
20323
- const r = e === 0, u = e === t.length - 1, c = t.length > 1, g = c && n && !r, f = t[e].segments, A = f[f.length - 1], _ = c ? null : X3(f, l, a), k = f[_], w = k && i > k.startTime && !Tr() && !U3(), T = A ? A.startTime + A.duration : 0, v = i > T - s, p = /* @__PURE__ */ new Set();
20320
+ }, Z3 = { vast: 1, custom: 0 }, K3 = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o, minTimeUntilEndForMidroll: s, minDurationForMidroll: l, contentVariant: a }) => {
20321
+ const r = e === 0, u = e === t.length - 1, c = t.length > 1, g = c && n && !r, f = t[e].segments, A = f[f.length - 1], _ = c ? null : J3(f, l, a), k = f[_], w = k && i > k.startTime, T = A ? A.startTime + A.duration : 0, v = i > T - s, p = /* @__PURE__ */ new Set();
20324
20322
  return n && p.add("pre-roll"), w && !v && p.add("mid-roll"), g && p.add("mid-roll"), o && u && p.add("post-roll"), g && p.add("post-roll"), p;
20325
- }, J3 = 0.5, X3 = (t, e, i) => {
20323
+ }, G3 = 0.5, J3 = (t, e, i) => {
20326
20324
  const n = t[t.length - 1];
20327
20325
  if (!n)
20328
20326
  return;
20329
20327
  const o = n.startTime + n.duration;
20330
20328
  if (o < e)
20331
20329
  return;
20332
- const s = o / 2, l = Cl(t, o / 2, i), u = t[l].startTime >= s - J3 ? l : l + 1;
20330
+ const s = o / 2, l = Cl(t, o / 2, i), u = t[l].startTime >= s - G3 ? l : l + 1;
20333
20331
  if (u !== t.length)
20334
20332
  return u;
20335
- }, Q3 = (t, e, i, n) => {
20333
+ }, X3 = (t, e, i, n) => {
20336
20334
  let o = -1, s = -1 / 0, l = -1 / 0;
20337
20335
  for (const [a, r] of (n || []).entries()) {
20338
20336
  if (!t || su(r) || r.type === "vast")
20339
20337
  continue;
20340
- const u = ey(a, e, i);
20338
+ const u = $3(a, e, i);
20341
20339
  if (u < s)
20342
20340
  continue;
20343
- const c = $3[r.placement] || 0;
20341
+ const c = Q3[r.placement] || 0;
20344
20342
  u === s && c < l || (o = a, s = u, l = c);
20345
20343
  }
20346
20344
  return o;
20347
- }, $3 = { "pre-roll": 2, "mid-roll": 1 }, ey = (t, e, i) => t === i ? 2 : t === e ? 1 : 0, au = { mediaSources: /* @__PURE__ */ new Set() }, ty = (t) => {
20345
+ }, Q3 = { "pre-roll": 2, "mid-roll": 1 }, $3 = (t, e, i) => t === i ? 2 : t === e ? 1 : 0, au = { mediaSources: /* @__PURE__ */ new Set() }, ey = (t) => {
20348
20346
  for (const e of [...t.audio || [], t.video || []])
20349
20347
  au.mediaSources.add(e.url);
20350
- }, iy = (t) => {
20348
+ }, ty = (t) => {
20351
20349
  for (const e of [...t.audio || [], t.video || []])
20352
20350
  if (au.mediaSources.has(e.url))
20353
20351
  return !0;
20354
20352
  return !1;
20355
- }, ru = /* @__PURE__ */ new Set(), ny = (t) => {
20353
+ }, ru = /* @__PURE__ */ new Set(), iy = (t) => {
20356
20354
  [...t.audio || [], ...t.video || []].forEach((i) => ru.add(i.url));
20357
- }, oy = (t) => [...t.audio || [], ...t.video || []].some((i) => ru.has(i.url)), sy = ({ introsOutros: t = [], introsOutrosIndex: e, advertIndex: i, content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r }) => {
20355
+ }, ny = (t) => [...t.audio || [], ...t.video || []].some((i) => ru.has(i.url)), oy = ({ introsOutros: t = [], introsOutrosIndex: e, advertIndex: i, content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r }) => {
20358
20356
  const u = t[e];
20359
20357
  e:
20360
20358
  if (u) {
20361
20359
  if (r) {
20362
- ty(u);
20360
+ ey(u);
20363
20361
  break e;
20364
20362
  }
20365
20363
  if (a)
20366
- return ny(u), -1;
20364
+ return iy(u), -1;
20367
20365
  if (!a)
20368
20366
  return e;
20369
20367
  }
20370
20368
  if (i !== -1)
20371
20369
  return -1;
20372
- const c = ly({ content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a });
20370
+ const c = sy({ content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a });
20373
20371
  let g = -1, f = -1 / 0, A = -1 / 0;
20374
20372
  for (const [_, k] of t.entries()) {
20375
- if (iy(k) || !c.has(k.placement))
20373
+ if (ty(k) || !c.has(k.placement))
20376
20374
  continue;
20377
- const w = oy(k) ? 1 : 0;
20375
+ const w = ny(k) ? 1 : 0;
20378
20376
  if (w < f)
20379
20377
  continue;
20380
20378
  const T = Math.random();
20381
20379
  w === f && T < A || (g = _, f = w, A = T);
20382
20380
  }
20383
20381
  return g;
20384
- }, ly = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o }) => {
20382
+ }, sy = ({ content: t, contentIndex: e, currentTime: i, atTheStart: n, atTheEnd: o }) => {
20385
20383
  const s = /* @__PURE__ */ new Set(), l = n && e === 0 && i === 0, a = o && e === t.length - 1;
20386
20384
  return l && s.add("pre-roll"), a && s.add("post-roll"), s;
20387
- }, ay = (t) => {
20385
+ }, ly = (t) => {
20388
20386
  if (!navigator.mediaSession)
20389
20387
  return;
20390
20388
  const e = t.instances().some((s) => s.mediaSession === "override");
20391
- if (cy() && !e)
20389
+ if (uy() && !e)
20392
20390
  return;
20393
20391
  let i, n = -1 / 0, o = -1 / 0;
20394
20392
  for (const s of t.instances()) {
20395
20393
  if (s.mediaSession === "none")
20396
20394
  continue;
20397
- const l = ry[s.playbackState] || 0;
20395
+ const l = ay[s.playbackState] || 0;
20398
20396
  if (l < n)
20399
20397
  continue;
20400
- const a = uy[s.showMediaSession] || 0;
20398
+ const a = ry[s.showMediaSession] || 0;
20401
20399
  l === n && a < o || (i = s, n = l, o = a);
20402
20400
  }
20403
20401
  for (const s of t.instances())
20404
20402
  s.showMediaSession = s === i;
20405
20403
  return i;
20406
- }, ry = { playing: 1, paused: 0, stopped: 0 }, uy = { true: 1, false: 0 }, cy = () => {
20404
+ }, ay = { playing: 1, paused: 0, stopped: 0 }, ry = { true: 1, false: 0 }, uy = () => {
20407
20405
  const t = navigator.mediaSession.metadata;
20408
20406
  if (!t || navigator.mediaSession.setByPlayer)
20409
20407
  return !1;
20410
20408
  const { title: e, artist: i, album: n, artwork: o } = t;
20411
20409
  return e || i || n || (o == null ? void 0 : o.length);
20412
- }, dy = (t) => {
20410
+ }, cy = (t) => {
20413
20411
  let e = !1, i, n = -1 / 0, o = -1 / 0;
20414
20412
  for (const s of t.instances()) {
20415
20413
  if (!s.userInterface || !Al(s.widgetStyle))
@@ -20420,7 +20418,7 @@ const yl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
20420
20418
  }
20421
20419
  if (!(s.userInterface.relativeY < 0))
20422
20420
  continue;
20423
- const u = gy[s.playbackState] || 0;
20421
+ const u = dy[s.playbackState] || 0;
20424
20422
  if (u < n)
20425
20423
  continue;
20426
20424
  const c = s.userInterface.absoluteY;
@@ -20429,9 +20427,9 @@ const yl = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
20429
20427
  e && n === 0 && (i = null);
20430
20428
  for (const s of t.instances())
20431
20429
  s.showBottomWidget = s === i;
20432
- }, gy = { playing: 2, paused: 1, stopped: 0 };
20430
+ }, dy = { playing: 2, paused: 1, stopped: 0 };
20433
20431
  var ps, uu, Ss, cu, ws, du, ko, vl, Ts, gu, Ps, fu, xi, $i, on, Bn, ui, pi, po, bl, Cs, mu, Mn, ao, sn, Wn, Is, hu, So, kl, Gi, An, wo, pl, ln, On, qt, si, pn, Fn, Ji, yn, Vs, _u, Bs, Au, En, ro, To, Sl, Ws, yu, Po, wl, Os, vu;
20434
- class fy {
20432
+ class gy {
20435
20433
  constructor(e, i) {
20436
20434
  // private
20437
20435
  Ve(this, ps);
@@ -20548,7 +20546,7 @@ class fy {
20548
20546
  handlePlaybackRateUpdated() {
20549
20547
  }
20550
20548
  handleVisibilityChanged() {
20551
- dy(this.PlayerClass);
20549
+ cy(this.PlayerClass);
20552
20550
  }
20553
20551
  handlePressedVideoBackground() {
20554
20552
  U(this, sn, Wn).call(this);
@@ -20601,7 +20599,7 @@ class fy {
20601
20599
  this.player.playbackState = "paused";
20602
20600
  }
20603
20601
  handlePlaybackPlaying() {
20604
- this.PlayerClass.instances().filter((n) => n !== this.player).filter((n) => n.playbackState === "playing").forEach((n) => n.playbackState = "paused"), ay(this.PlayerClass);
20602
+ this.PlayerClass.instances().filter((n) => n !== this.player).filter((n) => n.playbackState === "playing").forEach((n) => n.playbackState = "paused"), ly(this.PlayerClass);
20605
20603
  }
20606
20604
  handlePlaybackPaused() {
20607
20605
  const e = this.player.playbackState === "playing", i = this.player.currentTime >= this.player.duration - 0.5;
@@ -20730,7 +20728,7 @@ ps = new WeakSet(), uu = function({ type: e }) {
20730
20728
  }
20731
20729
  }, pn = new WeakSet(), Fn = function({ atTheStart: e, atTheEnd: i, errored: n } = {}) {
20732
20730
  const { content: o, introsOutros: s, currentTime: l } = this.player, a = typeof this.nextIntroOutro != "undefined" ? this.nextIntroOutro : this.player.introsOutrosIndex, r = typeof this.nextAdvert != "undefined" ? this.nextAdvert : this.player.advertIndex, u = typeof this.prevContent != "undefined" ? this.prevContent : this.player.contentIndex;
20733
- U(this, En, ro).call(this, sy({ introsOutros: s, introsOutrosIndex: a, advertIndex: r, content: o, contentIndex: u, currentTime: l, atTheStart: e, atTheEnd: i, errored: n }));
20731
+ U(this, En, ro).call(this, oy({ introsOutros: s, introsOutrosIndex: a, advertIndex: r, content: o, contentIndex: u, currentTime: l, atTheStart: e, atTheEnd: i, errored: n }));
20734
20732
  }, Ji = new WeakSet(), yn = function({ atTheStart: e, atTheEnd: i, wasIntro: n, errored: o, preloadingErrored: s } = {}) {
20735
20733
  var w;
20736
20734
  const { adverts: l, content: a, currentTime: r, minDurationForMidroll: u, minTimeUntilEndForMidroll: c } = this.player;
@@ -20743,7 +20741,7 @@ ps = new WeakSet(), uu = function({ type: e }) {
20743
20741
  v != null && v.vastUrl && ["mid-roll", "post-roll"].includes(v == null ? void 0 : v.placement) ? this.player.preloadAdvertIndex = T : this.player.preloadAdvertIndex = -1;
20744
20742
  }
20745
20743
  const _ = this.player.persistentAdImage, k = this.player.persistentIndex;
20746
- this.player.persistentIndex = Q3(_, k, f, l);
20744
+ this.player.persistentIndex = X3(_, k, f, l);
20747
20745
  }, Vs = new WeakSet(), _u = function() {
20748
20746
  this.player.playbackState === "playing" && typeof this.nextIntroOutro != "undefined" && (U(this, En, ro).call(this, this.nextIntroOutro), delete this.nextIntroOutro);
20749
20747
  }, Bs = new WeakSet(), Au = function() {
@@ -20771,7 +20769,7 @@ ps = new WeakSet(), uu = function({ type: e }) {
20771
20769
  const n = U(this, ui, pi).call(this), o = e !== -1, s = !n && o, l = n && !o;
20772
20770
  s && U(this, Ws, yu).call(this), this.player.advertIndex = e, l && U(this, Po, wl).call(this);
20773
20771
  }, Ws = new WeakSet(), yu = function() {
20774
- U(this, xi, $i).call(this) || (this.prevTime = this.player.currentTime), this.prevRate = this.player.playbackRate, this.prevContent = this.player.contentIndex, this.player.currentTime = 0, this.player.playbackRate = 1;
20772
+ U(this, xi, $i).call(this) || (this.prevTime = this.player.currentTime), this.prevRate = this.player.playbackRate, this.prevContent = this.player.contentIndex, this.player.playbackRate = 1;
20775
20773
  }, Po = new WeakSet(), wl = function(e = !1) {
20776
20774
  this.player.playbackRate = this.prevRate || 1, this.player.contentIndex !== this.prevContent || (this.player.currentTime = this.prevTime), e && (delete this.prevTime, delete this.prevRate, delete this.prevContent);
20777
20775
  }, Os = new WeakSet(), vu = function({ contentIndex: e, segmentIndex: i }) {
@@ -20779,20 +20777,20 @@ ps = new WeakSet(), uu = function({ type: e }) {
20779
20777
  return ((n = this.player.currentSegment) == null ? void 0 : n.contentIndex) !== e || ((o = this.player.currentSegment) == null ? void 0 : o.segmentIndex) !== i;
20780
20778
  };
20781
20779
  var Io = "<unknown>";
20782
- function my(t) {
20780
+ function fy(t) {
20783
20781
  var e = t.split(`
20784
20782
  `);
20785
20783
  return e.reduce(function(i, n) {
20786
- var o = Ay(n) || vy(n) || py(n) || Py(n) || wy(n);
20784
+ var o = _y(n) || yy(n) || ky(n) || Ty(n) || Sy(n);
20787
20785
  return o && i.push(o), i;
20788
20786
  }, []);
20789
20787
  }
20790
- var hy = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, _y = /\((\S*)(?::(\d+))(?::(\d+))\)/;
20791
- function Ay(t) {
20792
- var e = hy.exec(t);
20788
+ var my = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, hy = /\((\S*)(?::(\d+))(?::(\d+))\)/;
20789
+ function _y(t) {
20790
+ var e = my.exec(t);
20793
20791
  if (!e)
20794
20792
  return null;
20795
- var i = e[2] && e[2].indexOf("native") === 0, n = e[2] && e[2].indexOf("eval") === 0, o = _y.exec(e[2]);
20793
+ var i = e[2] && e[2].indexOf("native") === 0, n = e[2] && e[2].indexOf("eval") === 0, o = hy.exec(e[2]);
20796
20794
  return n && o != null && (e[2] = o[1], e[3] = o[2], e[4] = o[3]), {
20797
20795
  file: i ? null : e[2],
20798
20796
  methodName: e[1] || Io,
@@ -20801,9 +20799,9 @@ function Ay(t) {
20801
20799
  column: e[4] ? +e[4] : null
20802
20800
  };
20803
20801
  }
20804
- var yy = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
20805
- function vy(t) {
20806
- var e = yy.exec(t);
20802
+ var Ay = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
20803
+ function yy(t) {
20804
+ var e = Ay.exec(t);
20807
20805
  return e ? {
20808
20806
  file: e[2],
20809
20807
  methodName: e[1] || Io,
@@ -20812,12 +20810,12 @@ function vy(t) {
20812
20810
  column: e[4] ? +e[4] : null
20813
20811
  } : null;
20814
20812
  }
20815
- var by = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, ky = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
20816
- function py(t) {
20817
- var e = by.exec(t);
20813
+ var vy = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, by = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
20814
+ function ky(t) {
20815
+ var e = vy.exec(t);
20818
20816
  if (!e)
20819
20817
  return null;
20820
- var i = e[3] && e[3].indexOf(" > eval") > -1, n = ky.exec(e[3]);
20818
+ var i = e[3] && e[3].indexOf(" > eval") > -1, n = by.exec(e[3]);
20821
20819
  return i && n != null && (e[3] = n[1], e[4] = n[2], e[5] = null), {
20822
20820
  file: e[3],
20823
20821
  methodName: e[1] || Io,
@@ -20826,9 +20824,9 @@ function py(t) {
20826
20824
  column: e[5] ? +e[5] : null
20827
20825
  };
20828
20826
  }
20829
- var Sy = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
20830
- function wy(t) {
20831
- var e = Sy.exec(t);
20827
+ var py = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
20828
+ function Sy(t) {
20829
+ var e = py.exec(t);
20832
20830
  return e ? {
20833
20831
  file: e[3],
20834
20832
  methodName: e[1] || Io,
@@ -20837,9 +20835,9 @@ function wy(t) {
20837
20835
  column: e[5] ? +e[5] : null
20838
20836
  } : null;
20839
20837
  }
20840
- var Ty = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
20841
- function Py(t) {
20842
- var e = Ty.exec(t);
20838
+ var wy = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
20839
+ function Ty(t) {
20840
+ var e = wy.exec(t);
20843
20841
  return e ? {
20844
20842
  file: e[2],
20845
20843
  methodName: e[1] || Io,
@@ -20849,7 +20847,7 @@ function Py(t) {
20849
20847
  } : null;
20850
20848
  }
20851
20849
  let sr = !1, Xs, Qs;
20852
- const Cy = ({ onError: t }) => {
20850
+ const Py = ({ onError: t }) => {
20853
20851
  if (!t || sr)
20854
20852
  return;
20855
20853
  sr = !0;
@@ -20871,8 +20869,8 @@ const Cy = ({ onError: t }) => {
20871
20869
  };
20872
20870
  }, lr = (t) => {
20873
20871
  var e;
20874
- return (e = my((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
20875
- }, Iy = ({ windowObject: t } = { windowObject: window }) => {
20872
+ return (e = fy((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
20873
+ }, Cy = ({ windowObject: t } = { windowObject: window }) => {
20876
20874
  typeof t == "undefined" && wi([
20877
20875
  "Trying to initialize BeyondWords.Player in a server context but this is unsupported.",
20878
20876
  "Please only initialize the player in a context where the global window object is available.",
@@ -20880,17 +20878,17 @@ const Cy = ({ onError: t }) => {
20880
20878
  ]);
20881
20879
  };
20882
20880
  let ar = !1;
20883
- const Vy = () => {
20884
- ar || (addEventListener("mousedown", By), addEventListener("click", Oy), addEventListener("mousemove", My), ar = !0);
20881
+ const Iy = () => {
20882
+ ar || (addEventListener("mousedown", Vy), addEventListener("click", Wy), addEventListener("mousemove", Oy), ar = !0);
20885
20883
  };
20886
20884
  let bu, ku;
20887
- const By = (t) => {
20885
+ const Vy = (t) => {
20888
20886
  bu = t.pageX, ku = t.pageY;
20889
- }, Wy = (t) => {
20887
+ }, By = (t) => {
20890
20888
  const e = t.pageX - bu, i = t.pageY - ku;
20891
20889
  return Math.sqrt(e * e + i * i) > 5;
20892
- }, Oy = (t) => {
20893
- if (!t.defaultPrevented && !Wy(t) && t.button === 0)
20890
+ }, Wy = (t) => {
20891
+ if (!t.defaultPrevented && !By(t) && t.button === 0)
20894
20892
  for (const { player: e, segment: i, contentIndex: n, segmentIndex: o, segmentElement: s, precedence: l } of Ir(t.target))
20895
20893
  i && e.onEvent(ye({
20896
20894
  type: "PressedSegment",
@@ -20903,9 +20901,9 @@ const By = (t) => {
20903
20901
  segmentElement: s,
20904
20902
  precedence: l
20905
20903
  }));
20906
- }, My = (t) => {
20904
+ }, Oy = (t) => {
20907
20905
  for (const { p: e, player: i, segment: n, contentIndex: o, segmentIndex: s, segmentElement: l, precedence: a } of Ir(t.target))
20908
- Ey(e, o, s) && i.onEvent(ye({
20906
+ My(e, o, s) && i.onEvent(ye({
20909
20907
  type: "HoveredSegmentUpdated",
20910
20908
  description: "The user hovered over a different segment in the article.",
20911
20909
  initiatedBy: "user",
@@ -20916,7 +20914,7 @@ const By = (t) => {
20916
20914
  segmentElement: l,
20917
20915
  precedence: a
20918
20916
  }));
20919
- }, ts = {}, Ey = (t, e, i) => {
20917
+ }, ts = {}, My = (t, e, i) => {
20920
20918
  ts[t] || (ts[t] = {});
20921
20919
  const n = ts[t];
20922
20920
  return n.contentIndex === e && n.segmentIndex === i ? !1 : (n.contentIndex = e, n.segmentIndex = i, !0);
@@ -20932,22 +20930,22 @@ class $s {
20932
20930
  window.gtag("event", e, Xi(Kt({}, i), { send_to: this.analyticsSink }));
20933
20931
  }
20934
20932
  }
20935
- const jy = (t, e) => {
20933
+ const Ey = (t, e) => {
20936
20934
  const i = zy(t, e.type);
20937
20935
  if (!i)
20938
20936
  return;
20939
- const n = Ly(t, i);
20940
- Vc(n), t.analyticsUrl && t.analyticsConsent !== "none" && new $s(t.analyticsUrl).sendToCustomAnalytics(n), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new $s(t.analyticsCustomUrl).sendToCustomAnalytics(n), t.analyticsTag && new $s(t.analyticsTag).sendToGoogleAnalytics(xy(n), n);
20937
+ const n = jy(t, i);
20938
+ Vc(n), t.analyticsUrl && t.analyticsConsent !== "none" && new $s(t.analyticsUrl).sendToCustomAnalytics(n), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new $s(t.analyticsCustomUrl).sendToCustomAnalytics(n), t.analyticsTag && new $s(t.analyticsTag).sendToGoogleAnalytics(Ly(n), n);
20941
20939
  }, zy = (t, e) => {
20942
20940
  if (e === "ContentAvailable" && !t.listenSessionId)
20943
20941
  return "load";
20944
- if (e === "PlaybackPlaying" && Dy(t) && (t.isNewListen = !0), e === "CurrentTimeUpdated" && t.isNewListen)
20942
+ if (e === "PlaybackPlaying" && xy(t) && (t.isNewListen = !0), e === "CurrentTimeUpdated" && t.isNewListen)
20945
20943
  return t.isNewListen = !1, "play";
20946
- if (e === "CurrentTimeUpdated" && Ny(t))
20944
+ if (e === "CurrentTimeUpdated" && Dy(t))
20947
20945
  return "play_progress";
20948
20946
  if (e.startsWith("PressedAdvert"))
20949
20947
  return "ad_link_click";
20950
- }, Ly = (t, e) => {
20948
+ }, jy = (t, e) => {
20951
20949
  var l, a;
20952
20950
  t.listenSessionId || (t.listenSessionId = ss()), t.sessionCreatedAt || (t.sessionCreatedAt = Date.now());
20953
20951
  const i = ["without-local-storage", "none"].includes(t.analyticsConsent);
@@ -20955,7 +20953,7 @@ const jy = (t, e) => {
20955
20953
  const n = t.adverts[t.advertIndex], o = t.content[t.contentIndex], s = t.duration ? t.currentTime / t.duration * 100 : 0;
20956
20954
  return {
20957
20955
  event_type: e,
20958
- device_type: Ry(t),
20956
+ device_type: Ny(t),
20959
20957
  media_type: n ? "ad" : "content",
20960
20958
  media_variant: t.contentVariant,
20961
20959
  project_id: t.projectId,
@@ -20977,7 +20975,7 @@ const jy = (t, e) => {
20977
20975
  player_version: "1",
20978
20976
  player_npm_version: co
20979
20977
  };
20980
- }, xy = ({ event_type: t, listen_length_percent: e }) => {
20978
+ }, Ly = ({ event_type: t, listen_length_percent: e }) => {
20981
20979
  const i = Math.floor(e / 10) * 10;
20982
20980
  if (t === "load")
20983
20981
  return "Load";
@@ -20989,7 +20987,7 @@ const jy = (t, e) => {
20989
20987
  return `${i}% listened`;
20990
20988
  if (t === "ad_link_click")
20991
20989
  return "Advert Click";
20992
- }, Dy = (t) => {
20990
+ }, xy = (t) => {
20993
20991
  var n, o;
20994
20992
  let e = !1;
20995
20993
  if (t.advertIndex !== -1) {
@@ -21000,16 +20998,16 @@ const jy = (t, e) => {
21000
20998
  e = s !== t.prevContentId, t.prevContentId = s;
21001
20999
  }
21002
21000
  return e;
21003
- }, Ny = (t) => {
21001
+ }, Dy = (t) => {
21004
21002
  if (t.introsOutrosIndex !== -1)
21005
21003
  return;
21006
21004
  const e = t.prevPercentage + 10, i = t.currentTime / t.duration * 100;
21007
21005
  if (i >= e)
21008
21006
  return t.prevPercentage = Math.floor(i / 10) * 10, !0;
21009
- }, Ry = (t) => t.analyticsDeviceType !== "auto" ? t.analyticsDeviceType : rr(499) ? "phone" : rr(999) ? "tablet" : "desktop", rr = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches, Fy = /* @__PURE__ */ new Set(), Uy = (t, e = Fy) => {
21007
+ }, Ny = (t) => t.analyticsDeviceType !== "auto" ? t.analyticsDeviceType : rr(499) ? "phone" : rr(999) ? "tablet" : "desktop", rr = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches, Ry = /* @__PURE__ */ new Set(), Fy = (t, e = Ry) => {
21010
21008
  const n = Object.keys(t.$$.props).filter((o) => !e.has(o)).map((o) => [o, t[o]]);
21011
21009
  return Object.fromEntries(n);
21012
- }, Hy = /* @__PURE__ */ new Set([
21010
+ }, Uy = /* @__PURE__ */ new Set([
21013
21011
  "addEventListener",
21014
21012
  "removeEventListener",
21015
21013
  "mediaElement",
@@ -21021,11 +21019,11 @@ var Sn;
21021
21019
  const Wi = class Wi extends B3 {
21022
21020
  constructor(n) {
21023
21021
  var o = n, { target: e } = o, i = Ds(o, ["target"]);
21024
- Iy(), Cy(i), Vy();
21022
+ Cy(), Py(i), Iy();
21025
21023
  const { newTarget: s, showUserInterface: l } = v3(e);
21026
21024
  s.classList.add("beyondwords-player", "bwp"), Wi._styleLoaded || (s.style.display = "none");
21027
- const a = new fy(null, Wi);
21028
- a.addEventListener("<any>", (u) => jy(this, u));
21025
+ const a = new gy(null, Wi);
21026
+ a.addEventListener("<any>", (u) => Ey(this, u));
21029
21027
  const r = Kt({ showUserInterface: l }, i);
21030
21028
  super({ target: s, props: Xi(Kt({ controller: a }, r), { initialProps: r }) }), a.player = this, Li(Wi, Sn).push(this);
21031
21029
  }
@@ -21054,15 +21052,15 @@ const Wi = class Wi extends B3 {
21054
21052
  return this.$$.root;
21055
21053
  }
21056
21054
  properties() {
21057
- return Uy(this, Hy);
21055
+ return Fy(this, Uy);
21058
21056
  }
21059
21057
  };
21060
21058
  Sn = new WeakMap(), Ve(Wi, Sn, []);
21061
21059
  let ds = Wi;
21062
21060
  var ur;
21063
21061
  typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (ur = window.BeyondWords).Player || (ur.Player = ds));
21064
- const Ky = { Player: ds };
21062
+ const Zy = { Player: ds };
21065
21063
  export {
21066
- Ky as default
21064
+ Zy as default
21067
21065
  };
21068
21066
  //# sourceMappingURL=es.js.map