@viewlift/player-backup 2.0.265-backup → 2.0.266-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/cjs/{autoNextVideo-286a72f2.js → autoNextVideo-1949226d.js} +1 -1
  2. package/cjs/bundle.css +597 -597
  3. package/cjs/{features-9fcbe89d.js → features-1907e0ec.js} +1 -1
  4. package/cjs/generic-500845f0.js +1 -0
  5. package/cjs/{index-ec92d4e3.js → index-5237cb68.js} +1 -1
  6. package/cjs/{index-1b1f220d.js → index-fa2d6f33.js} +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-8f8a6ca4.js → multicamv2-5b067c28.js} +1 -1
  9. package/cjs/{multicamv2-9c5cfb7c.js → multicamv2-6bb0326d.js} +1 -1
  10. package/cjs/{nextEpisodeButton-416a7b7d.js → nextEpisodeButton-19ea5358.js} +1 -1
  11. package/cjs/{playlist-b84c4881.js → playlist-0f88791a.js} +1 -1
  12. package/cjs/{series-f15deefd.js → series-80055c05.js} +1 -1
  13. package/cjs/{series-v2-153582ab.js → series-v2-5d3fd68d.js} +1 -1
  14. package/cjs/{series-v2-ef6ad058.js → series-v2-7a515166.js} +1 -1
  15. package/cjs/{skin-e7f83ec7.js → skin-0b00da79.js} +1 -1
  16. package/cjs/{skin-2320b400.js → skin-156f69fb.js} +1 -1
  17. package/cjs/{skin-da292ff2.js → skin-2d523755.js} +1 -1
  18. package/cjs/{skin-796b64fe.js → skin-34eff1d6.js} +1 -1
  19. package/cjs/{skin-ea8c5b0e.js → skin-457f5c7d.js} +1 -1
  20. package/cjs/{skin-228ba96b.js → skin-47f57b21.js} +1 -1
  21. package/cjs/{skin-ac1ab4b6.js → skin-4bc06df1.js} +1 -1
  22. package/cjs/{skin-39c77833.js → skin-a9ec6afc.js} +1 -1
  23. package/cjs/{skin-7291d01d.js → skin-d1c1d0e2.js} +1 -1
  24. package/cjs/{skin-d4460618.js → skin-d42ac897.js} +1 -1
  25. package/cjs/{util-d3734cd9.js → util-19bcc434.js} +1 -1
  26. package/cjs/{videoSelector-095d614f.js → videoSelector-1bf97a60.js} +1 -1
  27. package/cjs/{videoSelector-796d5fbe.js → videoSelector-8abb9472.js} +1 -1
  28. package/esm/{autoNextVideo-f34ed8ed.js → autoNextVideo-4628db56.js} +1 -1
  29. package/esm/bundle.css +597 -597
  30. package/esm/{features-2820ac47.js → features-545c2e76.js} +1 -1
  31. package/esm/generic-79c7dae3.js +1 -0
  32. package/esm/{index-241b2666.js → index-6a28dcc1.js} +1 -1
  33. package/esm/{index-4fb2c3f6.js → index-d3e760d6.js} +1 -1
  34. package/esm/index.js +1 -1
  35. package/esm/{multicamv2-ef3c32dd.js → multicamv2-72c981f6.js} +1 -1
  36. package/esm/{multicamv2-21eda7f7.js → multicamv2-97d65544.js} +1 -1
  37. package/esm/{nextEpisodeButton-0f62efa9.js → nextEpisodeButton-fe640384.js} +1 -1
  38. package/esm/{playlist-61356e83.js → playlist-b70a3f20.js} +1 -1
  39. package/esm/{series-9823330d.js → series-f0eef0d4.js} +1 -1
  40. package/esm/{series-v2-31654dc0.js → series-v2-4f495705.js} +1 -1
  41. package/esm/{series-v2-79ebc051.js → series-v2-74d7bfc5.js} +1 -1
  42. package/esm/{skin-ccfcc5cc.js → skin-408a1df2.js} +1 -1
  43. package/esm/{skin-13a1ba23.js → skin-46def1ff.js} +1 -1
  44. package/esm/{skin-d66cb2d0.js → skin-473d54a4.js} +1 -1
  45. package/esm/{skin-626d8784.js → skin-62060e23.js} +1 -1
  46. package/esm/{skin-9e9f4e79.js → skin-a6ec4b44.js} +1 -1
  47. package/esm/{skin-63ce846c.js → skin-c2b55dc5.js} +1 -1
  48. package/esm/{skin-d30e0e38.js → skin-ce2d6f0a.js} +1 -1
  49. package/esm/{skin-d559c89f.js → skin-d3672ada.js} +1 -1
  50. package/esm/{skin-a7c4274e.js → skin-dc09dcac.js} +1 -1
  51. package/esm/{skin-48a8afa9.js → skin-e48ca84f.js} +1 -1
  52. package/esm/{util-335174b2.js → util-93288c09.js} +1 -1
  53. package/esm/{videoSelector-7707e0e2.js → videoSelector-a5f295ae.js} +1 -1
  54. package/esm/{videoSelector-96962ea8.js → videoSelector-b4db840c.js} +1 -1
  55. package/package.json +1 -1
  56. package/cjs/generic-87933502.js +0 -1
  57. package/esm/apis/index.d.ts +0 -11
  58. package/esm/assets/icons.d.ts +0 -22
  59. package/esm/components/advertisement/advertisement.d.ts +0 -1
  60. package/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
  61. package/esm/components/big-mute-btn/index.d.ts +0 -9
  62. package/esm/components/broadcaster_image/index.d.ts +0 -1
  63. package/esm/components/caption-settings/caption-settings.d.ts +0 -14
  64. package/esm/components/dvr-seekbar/index.d.ts +0 -14
  65. package/esm/components/multicam/multicam.d.ts +0 -18
  66. package/esm/components/multicam-v2/multicamv2.d.ts +0 -13
  67. package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
  68. package/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
  69. package/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
  70. package/esm/components/playlist-tray/playlist.d.ts +0 -15
  71. package/esm/components/quality-selector/index.d.ts +0 -1
  72. package/esm/components/resolution/resolution.d.ts +0 -19
  73. package/esm/components/series/series.d.ts +0 -10
  74. package/esm/components/series-v2/helper.d.ts +0 -3
  75. package/esm/components/series-v2/series-v2.d.ts +0 -25
  76. package/esm/components/series-v2_TEMP/helper.d.ts +0 -1
  77. package/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
  78. package/esm/components/settings-icon/settings-icon.d.ts +0 -17
  79. package/esm/components/timer/index.d.ts +0 -5
  80. package/esm/components/trickplay/helper.d.ts +0 -13
  81. package/esm/components/trickplay/index.d.ts +0 -1
  82. package/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
  83. package/esm/components/video-selector/videoSelector.d.ts +0 -18
  84. package/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
  85. package/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
  86. package/esm/contentHandler/content_types/epg.d.ts +0 -4
  87. package/esm/contentHandler/content_types/external.d.ts +0 -4
  88. package/esm/contentHandler/content_types/index.d.ts +0 -5
  89. package/esm/contentHandler/content_types/series.d.ts +0 -4
  90. package/esm/contentHandler/content_types/vod.d.ts +0 -4
  91. package/esm/contentHandler/firePlayer.d.ts +0 -4
  92. package/esm/core/captions.d.ts +0 -10
  93. package/esm/core/generic.d.ts +0 -48
  94. package/esm/core/player_instance.d.ts +0 -6
  95. package/esm/core/renditions.d.ts +0 -6
  96. package/esm/core/util.d.ts +0 -19
  97. package/esm/core/volume.d.ts +0 -2
  98. package/esm/dash/dashHandler.d.ts +0 -1
  99. package/esm/dash/linear_ssai.d.ts +0 -1
  100. package/esm/dash/sgai.d.ts +0 -10
  101. package/esm/features.d.ts +0 -31
  102. package/esm/generic-62a2101a.js +0 -1
  103. package/esm/globalPlayerEvents.d.ts +0 -8
  104. package/esm/helpers/browser.d.ts +0 -2
  105. package/esm/helpers/currentVideoInfo.d.ts +0 -19
  106. package/esm/helpers/errorHandling.d.ts +0 -2
  107. package/esm/helpers/loader.d.ts +0 -2
  108. package/esm/helpers/localisation.d.ts +0 -2
  109. package/esm/helpers/scriptLoader.d.ts +0 -2
  110. package/esm/helpers/secondary-switching.d.ts +0 -1
  111. package/esm/helpers/skin.d.ts +0 -20
  112. package/esm/helpers/sourceRetriever.d.ts +0 -11
  113. package/esm/helpers/ssaiEventHandler.d.ts +0 -27
  114. package/esm/helpers/token.d.ts +0 -9
  115. package/esm/index.d.ts +0 -39
  116. package/esm/plugins/chromecast.d.ts +0 -18
  117. package/esm/plugins/comscore_dist/index.d.ts +0 -50
  118. package/esm/plugins/index.d.ts +0 -2
  119. package/esm/plugins/library.d.ts +0 -8
  120. package/esm/plugins/videojs-dash5.es.d.ts +0 -51
  121. package/esm/plugins/videojs_contrib_dash.d.ts +0 -51
  122. package/esm/skin/carousel/skin.d.ts +0 -1
  123. package/esm/skin/default/events.d.ts +0 -1
  124. package/esm/skin/default/skin.d.ts +0 -1
  125. package/esm/skin/defaultV2/events.d.ts +0 -1
  126. package/esm/skin/defaultV2/skin.d.ts +0 -1
  127. package/esm/skin/index.d.ts +0 -1
  128. package/esm/skin/mini/events.d.ts +0 -1
  129. package/esm/skin/mini/skin.d.ts +0 -1
  130. package/esm/skin/minimalist/skin.d.ts +0 -1
  131. package/esm/skin/multiplayer/events.d.ts +0 -1
  132. package/esm/skin/multiplayer/skin.d.ts +0 -1
  133. package/esm/skin/news/events.d.ts +0 -1
  134. package/esm/skin/news/skin.d.ts +0 -1
  135. package/esm/skin/news_live/events.d.ts +0 -1
  136. package/esm/skin/news_live/skin.d.ts +0 -1
  137. package/esm/skin/vl_one/events.d.ts +0 -1
  138. package/esm/skin/vl_one/skin.d.ts +0 -1
  139. package/esm/utilities/analytics.d.ts +0 -3
  140. package/esm/utilities/beacon.d.ts +0 -3
  141. package/esm/utilities/comscore.d.ts +0 -5
  142. package/esm/utilities/controlsColor.d.ts +0 -1
  143. package/esm/utilities/conviva.d.ts +0 -5
  144. package/esm/utilities/keyboardShortcuts.d.ts +0 -5
  145. package/esm/utilities/replaceMacros.d.ts +0 -1
@@ -1 +1 @@
1
- import{g as e}from"./skin-4f84b841.js";import{f as r,n as t}from"./features-2820ac47.js";import{g as o}from"./renditions-19f0b3a9.js";import{r as i}from"./captions-2b4caf69.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-62a2101a.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./localisation-0bf399a1.js";function n(n,s){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,n){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,n),null!=n&&n.disableCaptions&&i(t)})}(n,s),function(r){var o=e(r);o.controls(!1),t(r)}(n)}export{n as initialiseSkin};
1
+ import{g as e}from"./skin-4f84b841.js";import{f as r,n as t}from"./features-545c2e76.js";import{g as o}from"./renditions-19f0b3a9.js";import{r as i}from"./captions-2b4caf69.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-79c7dae3.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./localisation-0bf399a1.js";function n(n,s){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,n){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,n),null!=n&&n.disableCaptions&&i(t)})}(n,s),function(r){var o=e(r);o.controls(!1),t(r)}(n)}export{n as initialiseSkin};
@@ -1 +1 @@
1
- import{f as l,r as i,d as e,e as n,j as o,k as t,l as s,m as r}from"./features-2820ac47.js";import{f as a}from"./icons-699e8cf0.js";import{g as d,p as u,e as v}from"./skin-4f84b841.js";import{g as C}from"./renditions-19f0b3a9.js";import{a as c,b as p}from"./index-241b2666.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{Z as h,e as m,_ as f,m as y}from"./generic-62a2101a.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-f34ed8ed.js";import"./util-335174b2.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@viewlift/comscore/index.js";function b(b,L){d(b).addClass("skin_news"),function(i,e){var n=d(i);n&&n.on("loadeddata",function(){var n,o,t,s,r,a,d;(null===(n=C(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(s=window)&&void 0!==s&&null!==(r=s.app_data)&&void 0!==r&&null!==(a=r.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)})}(b,L),function(l,i){var e,n,o,t,s,r,a,C,c,p,h,m,f,y,b,L,g,B,w=d(l);if(null!=i&&i.liveVideo){var j,E,V,x,M,k,S=null===(j=w.controlBar)||void 0===j||null===(E=j.getChild("TimeDivider"))||void 0===E?void 0:E.el(),Z=null===(V=w.controlBar)||void 0===V||null===(x=V.getChild("CurrentTimeDisplay"))||void 0===x?void 0:x.el(),T=null===(M=w.controlBar)||void 0===M||null===(k=M.getChild("DurationDisplay"))||void 0===k?void 0:k.el();S&&(S.style.display="none"),Z&&(Z.style.display="none"),T&&(T.style.display="none")}var A=null===(e=w.controlBar)||void 0===e?void 0:e.getChild("ProgressControl"),_=null===(n=w.controlBar)||void 0===n||null===(o=n.getChild("SeekToLive"))||void 0===o?void 0:o.el();_&&(_.onclick=function(){if(w.paused())try{w.play()}catch(l){console.log(l)}});var H=document.createElement("div");H.className="custom-spaced-progress-bar",A&&H.append(A.el());null===(t=w.controlBar)||void 0===t||null===(s=t.el())||void 0===s||s.append(H);var N='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';w.el().insertBefore(u(N),null!==(r=w.el().firstChild)&&void 0!==r?r:null);var P=(null==w||null===(a=w.controlBar)||void 0===a||null===(C=a.getChild("PlayToggle"))||void 0===C||null===(c=C.el())||void 0===c?void 0:c.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var D=v(P,w.paused()?"#vjs-icon-play":"#vjs-icon-pause");w.on("pause",function(){return D.setAttributeNS(null,"href","#vjs-icon-play")}),w.on("play",function(){return D.setAttributeNS(null,"href","#vjs-icon-pause")})}var q=(null==w||null===(p=w.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(q){q.style.height="24px",q.style.width="24px";var I=v(q,"#vjs-icon-fullscreen");w.on("fullscreenchange",function(){var l=w.isFullscreen_;null==I||I.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var O=(null==w||null===(f=w.controlBar)||void 0===f||null===(y=f.getChild("VolumePanel"))||void 0===y?void 0:y.el())||null;if(O){var F=O.querySelector(".vjs-mute-control .vjs-icon-placeholder");F.classList.add("vjs-svg-icon"),F.style.height="24px",F.style.width="24px";var R=v(F,w.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");w.on("volumechange",function(l){var i=w.volume();console.log(i,w.muted()),0==i||w.muted()?R.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?R.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?R.setAttributeNS(null,"href","#vjs-icon-volume2"):R.setAttributeNS(null,"href","#vjs-icon-volume3")})}var G=(null==w||null===(b=w.controlBar)||void 0===b||null===(L=b.getChild("PictureInPictureToggle"))||void 0===L?void 0:L.el())||null;if(G){var z=null==G?void 0:G.querySelector(".vjs-icon-placeholder");z.style.height="25px",z.style.width="25px";var J=v(z,"#vjs-icon-pip");w.on("enterpictureinpicture",function(){J.setAttributeNS(null,"href","#vjs-icon-pip")})}var K=(null==w||null===(g=w.controlBar)||void 0===g||null===(B=g.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(K){var Q=K.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");Q.classList.add("vjs-svg-icon"),Q.style.height="29px",Q.style.width="29px";var U=v(Q,"#vjs-icon-caps");U.setAttributeNS(null,"href","#vjs-icon-captions-off"),w.textTracks().on("change",function(l){for(var i=w.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?U.setAttributeNS(null,"href","#vjs-icon-captions"):U.setAttributeNS(null,"href","#vjs-icon-captions-off")})}w&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(w.liveTracker.on("liveedgechange",function(){Y(w)}),w.on("timeupdate",function(){Y(w)}));function W(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function X(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function Y(l){var i,e,n=l.liveTracker.atLiveEdge(),o=X(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var s=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",s&&(s.innerText=W(o)))}}}(b,L),function(l,d){var u,v,C,c,p,b,L,g,B,w,j=(null==d?void 0:d.liveVideo)||!1,E=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",V=(null==d||null===(v=d.res)||void 0===v||null===(C=v[E])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var M=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(b=p.content)||void 0===b?void 0:b.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(g=d.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&s(l,null==d?void 0:d.playlist);null!=d&&null!==(w=d.series)&&void 0!==w&&w.enable&&r(l,d);if("MEDIA_TAILOR"==(null==M?void 0:M.vodAdSticherProvider)&&null!=M&&M.vodAdClientSideTracking&&V)if(j)h(l);else{var k,S=null;if(null!=d&&null!==(k=d.series)&&void 0!==k&&k.enable){var Z,T,A,_,H,N=null===(Z=m())||void 0===Z||null===(T=Z.video)||void 0===T||null===(A=T.gist)||void 0===A?void 0:A.id,P=y(),D=(null==P?void 0:P.get(N))||{t:0,p:0},q=D.t,I=D.p;"function"==typeof(null===(_=window)||void 0===_||null===(H=_.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:q}),I<95&&(S=q)}else{var O=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=O)}f(l,S)}}(b,L),p(b,L)}export{b as initialiseSkin};
1
+ import{f as l,r as i,d as e,e as n,j as o,k as t,l as s,m as r}from"./features-545c2e76.js";import{f as a}from"./icons-699e8cf0.js";import{g as d,p as u,e as v}from"./skin-4f84b841.js";import{g as C}from"./renditions-19f0b3a9.js";import{a as c,b as p}from"./index-6a28dcc1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{Z as h,e as m,_ as f,m as y}from"./generic-79c7dae3.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-4628db56.js";import"./util-93288c09.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@viewlift/comscore/index.js";function b(b,L){d(b).addClass("skin_news"),function(i,e){var n=d(i);n&&n.on("loadeddata",function(){var n,o,t,s,r,a,d;(null===(n=C(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(s=window)&&void 0!==s&&null!==(r=s.app_data)&&void 0!==r&&null!==(a=r.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)})}(b,L),function(l,i){var e,n,o,t,s,r,a,C,c,p,h,m,f,y,b,L,g,B,w=d(l);if(null!=i&&i.liveVideo){var j,E,V,x,M,k,S=null===(j=w.controlBar)||void 0===j||null===(E=j.getChild("TimeDivider"))||void 0===E?void 0:E.el(),Z=null===(V=w.controlBar)||void 0===V||null===(x=V.getChild("CurrentTimeDisplay"))||void 0===x?void 0:x.el(),T=null===(M=w.controlBar)||void 0===M||null===(k=M.getChild("DurationDisplay"))||void 0===k?void 0:k.el();S&&(S.style.display="none"),Z&&(Z.style.display="none"),T&&(T.style.display="none")}var A=null===(e=w.controlBar)||void 0===e?void 0:e.getChild("ProgressControl"),_=null===(n=w.controlBar)||void 0===n||null===(o=n.getChild("SeekToLive"))||void 0===o?void 0:o.el();_&&(_.onclick=function(){if(w.paused())try{w.play()}catch(l){console.log(l)}});var H=document.createElement("div");H.className="custom-spaced-progress-bar",A&&H.append(A.el());null===(t=w.controlBar)||void 0===t||null===(s=t.el())||void 0===s||s.append(H);var N='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';w.el().insertBefore(u(N),null!==(r=w.el().firstChild)&&void 0!==r?r:null);var P=(null==w||null===(a=w.controlBar)||void 0===a||null===(C=a.getChild("PlayToggle"))||void 0===C||null===(c=C.el())||void 0===c?void 0:c.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var D=v(P,w.paused()?"#vjs-icon-play":"#vjs-icon-pause");w.on("pause",function(){return D.setAttributeNS(null,"href","#vjs-icon-play")}),w.on("play",function(){return D.setAttributeNS(null,"href","#vjs-icon-pause")})}var q=(null==w||null===(p=w.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(q){q.style.height="24px",q.style.width="24px";var I=v(q,"#vjs-icon-fullscreen");w.on("fullscreenchange",function(){var l=w.isFullscreen_;null==I||I.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var O=(null==w||null===(f=w.controlBar)||void 0===f||null===(y=f.getChild("VolumePanel"))||void 0===y?void 0:y.el())||null;if(O){var F=O.querySelector(".vjs-mute-control .vjs-icon-placeholder");F.classList.add("vjs-svg-icon"),F.style.height="24px",F.style.width="24px";var R=v(F,w.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");w.on("volumechange",function(l){var i=w.volume();console.log(i,w.muted()),0==i||w.muted()?R.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?R.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?R.setAttributeNS(null,"href","#vjs-icon-volume2"):R.setAttributeNS(null,"href","#vjs-icon-volume3")})}var G=(null==w||null===(b=w.controlBar)||void 0===b||null===(L=b.getChild("PictureInPictureToggle"))||void 0===L?void 0:L.el())||null;if(G){var z=null==G?void 0:G.querySelector(".vjs-icon-placeholder");z.style.height="25px",z.style.width="25px";var J=v(z,"#vjs-icon-pip");w.on("enterpictureinpicture",function(){J.setAttributeNS(null,"href","#vjs-icon-pip")})}var K=(null==w||null===(g=w.controlBar)||void 0===g||null===(B=g.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(K){var Q=K.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");Q.classList.add("vjs-svg-icon"),Q.style.height="29px",Q.style.width="29px";var U=v(Q,"#vjs-icon-caps");U.setAttributeNS(null,"href","#vjs-icon-captions-off"),w.textTracks().on("change",function(l){for(var i=w.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?U.setAttributeNS(null,"href","#vjs-icon-captions"):U.setAttributeNS(null,"href","#vjs-icon-captions-off")})}w&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(w.liveTracker.on("liveedgechange",function(){Y(w)}),w.on("timeupdate",function(){Y(w)}));function W(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function X(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function Y(l){var i,e,n=l.liveTracker.atLiveEdge(),o=X(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var s=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",s&&(s.innerText=W(o)))}}}(b,L),function(l,d){var u,v,C,c,p,b,L,g,B,w,j=(null==d?void 0:d.liveVideo)||!1,E=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",V=(null==d||null===(v=d.res)||void 0===v||null===(C=v[E])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var M=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(b=p.content)||void 0===b?void 0:b.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(g=d.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&s(l,null==d?void 0:d.playlist);null!=d&&null!==(w=d.series)&&void 0!==w&&w.enable&&r(l,d);if("MEDIA_TAILOR"==(null==M?void 0:M.vodAdSticherProvider)&&null!=M&&M.vodAdClientSideTracking&&V)if(j)h(l);else{var k,S=null;if(null!=d&&null!==(k=d.series)&&void 0!==k&&k.enable){var Z,T,A,_,H,N=null===(Z=m())||void 0===Z||null===(T=Z.video)||void 0===T||null===(A=T.gist)||void 0===A?void 0:A.id,P=y(),D=(null==P?void 0:P.get(N))||{t:0,p:0},q=D.t,I=D.p;"function"==typeof(null===(_=window)||void 0===_||null===(H=_.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:q}),I<95&&(S=q)}else{var O=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=O)}f(l,S)}}(b,L),p(b,L)}export{b as initialiseSkin};
@@ -1 +1 @@
1
- import{G as e,H as t}from"./generic-62a2101a.js";import{g as r}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",function(){n.paused()?e(o):t(o)})}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
1
+ import{G as e,H as t}from"./generic-79c7dae3.js";import{g as r}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",function(){n.paused()?e(o):t(o)})}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -1 +1 @@
1
- import{a as e,b as t,c as o,d as s,e as i}from"./features-2820ac47.js";import{e as n,V as r}from"./generic-62a2101a.js";import{S as l,M as a,a as m,N as d,b as u,R as p}from"./icons-699e8cf0.js";import{g as c,b}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-19f0b3a9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function v(v,f){c(v).addClass("skin_default"),r(v,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",u());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(v,f),function(s,i){var r=c(s),a=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(s,"default",l()),a&&import("./nextEpisodeButton-0f62efa9.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,n())})}),r.one("loadedmetadata",function(){var e;a&&(t(s,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),o(i.sres,i.res,s))})}(v,f),function(e,t){var o,s,i,n,r=c(e),l=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],p=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(l&&(l.style.display="none"),u&&(u.style.display="none"),p&&(p.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(b(a(window.controlsColor))),null===(i=r.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(b(m(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(b(d()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
1
+ import{a as e,b as t,c as o,d as s,e as i}from"./features-545c2e76.js";import{e as n,V as r}from"./generic-79c7dae3.js";import{S as l,M as a,a as m,N as d,b as u,R as p}from"./icons-699e8cf0.js";import{g as c,b}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-19f0b3a9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function v(v,f){c(v).addClass("skin_default"),r(v,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",u());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(v,f),function(s,i){var r=c(s),a=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(s,"default",l()),a&&import("./nextEpisodeButton-fe640384.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,n())})}),r.one("loadedmetadata",function(){var e;a&&(t(s,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),o(i.sres,i.res,s))})}(v,f),function(e,t){var o,s,i,n,r=c(e),l=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],p=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(l&&(l.style.display="none"),u&&(u.style.display="none"),p&&(p.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(b(a(window.controlsColor))),null===(i=r.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(b(m(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(b(d()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
@@ -1 +1 @@
1
- import n from"@babel/runtime/helpers/typeof";import{e,v as t,U as o}from"./generic-62a2101a.js";import{g as i}from"./skin-4f84b841.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},u=function(n,r){var c=i(n);c?(c.on("ended",function(){return a=!0}),c.on("timeupdate",function(){if(!c.paused()&&a){var n,i,u=null===(n=e())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;t.get(u)?(t.clear(),o.clear(),r(),t.set(u)):(t.clear(),t.set(u)),a=!1}})):r("Cannot find player with id: '".concat(n,"'"))},l=function(n,e){var t=i(n);t?t.on("timeupdate",function(){return e(t.currentTime())}):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",function(){return e(!0)}):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter(function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode});e.length>0&&t({enabled:e[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every(function(n){return"showing"!=n.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(n){o(n)});for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})})}}}export{s as a,c as b,u as c,d as g,l as o,f as p,r as s};
1
+ import n from"@babel/runtime/helpers/typeof";import{e,v as t,U as o}from"./generic-79c7dae3.js";import{g as i}from"./skin-4f84b841.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},u=function(n,r){var c=i(n);c?(c.on("ended",function(){return a=!0}),c.on("timeupdate",function(){if(!c.paused()&&a){var n,i,u=null===(n=e())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;t.get(u)?(t.clear(),o.clear(),r(),t.set(u)):(t.clear(),t.set(u)),a=!1}})):r("Cannot find player with id: '".concat(n,"'"))},l=function(n,e){var t=i(n);t?t.on("timeupdate",function(){return e(t.currentTime())}):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",function(){return e(!0)}):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter(function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode});e.length>0&&t({enabled:e[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every(function(n){return"showing"!=n.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(n){o(n)});for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})})}}}export{s as a,c as b,u as c,d as g,l as o,f as p,r as s};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-699e8cf0.js";import{K as d,Y as r}from"./generic-62a2101a.js";import{j as c,s as m,k as u,h as v,l as p,i as h}from"./skin-4f84b841.js";import{a as b}from"./autoNextVideo-f34ed8ed.js";import{g as y}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-335174b2.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(I,C);var g,E,N=(g=I,E=f(),function(){var e,t=i(g);if(E){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function I(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,I),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r(0),b({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(I,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),I}();export{g as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-699e8cf0.js";import{K as d,Y as r}from"./generic-79c7dae3.js";import{j as c,s as m,k as u,h as v,l as p,i as h}from"./skin-4f84b841.js";import{a as b}from"./autoNextVideo-4628db56.js";import{g as y}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-93288c09.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(I,C);var g,E,N=(g=I,E=f(),function(){var e,t=i(g);if(E){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function I(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,I),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r(0),b({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(I,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),I}();export{g as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-699e8cf0.js";import{K as s,Y as d}from"./generic-62a2101a.js";import{j as c,s as m,k as p,l as u,m as v}from"./skin-4f84b841.js";import{a as h}from"./autoNextVideo-f34ed8ed.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-335174b2.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(j,y);var g,C,N=(g=j,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function j(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(j,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),j}();export{g as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-699e8cf0.js";import{K as s,Y as d}from"./generic-79c7dae3.js";import{j as c,s as m,k as p,l as u,m as v}from"./skin-4f84b841.js";import{a as h}from"./autoNextVideo-4628db56.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-93288c09.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(j,y);var g,C,N=(g=j,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function j(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(j,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),j}();export{g as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlift/player-backup",
3
- "version": "2.0.265-backup",
3
+ "version": "2.0.266-backup",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "types": "dist/@viewlift/player/esm/index.d.ts",
6
6
  "amdName": "_playerCore",
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),o=require("video.js"),r=require("axios"),i=require("./skin-c97f0eea.js"),l=require("./browser-77c57718.js"),a=require("md5"),d=require("js-cookie"),u=require("./captions-80f6eb66.js"),s=require("@babel/runtime/helpers/typeof"),c=require("@babel/runtime/helpers/toConsumableArray"),v=require("@babel/runtime/helpers/slicedToArray"),m=require("@viewlift/comscore/index.js");function p(){var e,n;null===(e=window)||void 0===e||null===(n=e.dataLayer)||void 0===n||n.push(arguments)}function f(e,n){p("event",e,n)}var g={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function y(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?h(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var w={name:"@viewlift/player",version:"2.1.29",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",scripts:{prepublishOnly:"release-assistant"},dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1","@viewlift/comscore":"^1.0.11",axios:"^1.2.3",md5:"^2.3.0",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"},overrides:{"min-document":"^2.19.1"}};window.vl_player_version=w.version;var I,E=function(){var e,n,t,o;return null!==(e=window)&&void 0!==e&&null!==(n=e.customData)&&void 0!==n&&n.overrideEntitlementBaseUrl?(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementBaseUrl)+"/video/status":P.get()+"".concat(null==g?void 0:g.getVideoDetails)},T=function(e,n){var t,o,i,l,a,d,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):r({url:E(),params:y({id:e,deviceType:"web_browser",contentConsumption:"web",ssaiDisable:u},null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:n,"Sdk-Version":w.version,"x-player-name":"videojs",adbTempToken:null===(a=window)||void 0===a||null===(d=a.customData)||void 0===d?void 0:d.adbTempToken},withCredentials:!0})},b=function(e,n){var t,o,i,l,a,d,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):r({url:P.get()+g.getLinearChannelDetails,params:y(y(y(y(y({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web",ssaiDisable:u},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:n,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO",adbTempToken:null===(a=window)||void 0===a||null===(d=a.customData)||void 0===d?void 0:d.adbTempToken}})},_=function(){var e=n(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return o=e.sent,e.abrupt("return",r({url:P.get()+"".concat(null==g?void 0:g.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:y({},n),params:y({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),S=function(e,n){var t,o,i=window.contentType;return r({method:"GET",url:P.get()+"".concat(null==g?void 0:g.getVideoInfoV2,"/").concat(i,"/").concat(e),headers:{Authorization:n,"x-api-key":null===(t=window)||void 0===t||null===(o=t.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},O=function(e){var n=e.videoId;return r({method:"GET",url:P.get()+"".concat(null==g?void 0:g.getSeriesWatchHistoryV2,"/").concat(n),headers:{Authorization:e.token},timeout:15e3})},P=(I=null==g?void 0:g.apiBaseUrl,{set:function(e){e&&(I=e)},get:function(){return I}}),D=function(e){var n=JSON.parse(atob(null==e?void 0:e.split(".")[1])),t=null==n?void 0:n.exp;if(new Date(1e3*t).getTime()<(new Date).getTime())return!0},A=null;function L(){return{set:function(e){e&&(A=e)},get:function(){return A}}}var k,C,F,R,j,V,x,N=function(){var e=n(t.mark(function e(){var n,o,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=L().get(),o=P.get(),e.prev=2,e.next=5,r({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return i=e.sent,e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return e.apply(this,arguments)}}(),W=null,M=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!D(n)){e.next=6;break}return W||(W=N().then(function(e){var t,o,r=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,i=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return r&&sessionStorage.setItem("vlp_token",r),i&&L().set(i),r||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){W=null})),e.abrupt("return",W);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),B=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},U=(V=new Map,{set:function(e){var n,t=(null==e||null===(n=e.video)||void 0===n?void 0:n.id)||e||null;V.set(t,(V.get(t)||0)+1)},get:function(e){return V.get(e)},clear:function(){V.clear()}}),H=function(e){C=e},G=function(){return C},q=function(){return k},Y=function(e){F=e},Q=function(e){if(R){var n=R.get(e);Y(n+1)}},z=(x=0,{set:function(e){e>=0&&(x=e)},get:function(){return x}});function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function X(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?K(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):K(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var J=0,$=null,Z=function(){var e,n,t,o,r,i,l,a=G();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(n=e.channels)||void 0===n||null===(t=n.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===t||null===(o=t.content)||void 0===o?void 0:o.id:(null==a||null===(r=a.video)||void 0===r||null===(i=r.gist)||void 0===i?void 0:i.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function ee(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function ne(){return $||window.sessionStorage.getItem("uid")}function te(){return oe.apply(this,arguments)}function oe(){return(oe=n(t.mark(function e(){var n,o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(o=JSON.parse(atob(n.split(".")[1])))||!o.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==o?void 0:o.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function re(e){return e?String(e):""}window.initialise=function(e){window.sid=ee(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var n=Math.floor(e.currentTime());e.on("error",function(){var t,o,r,i=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,f(i?"FAILED_TO_START":"DROPPED_STREAM",X({pfm:window.platform,uid:ne(),vid:Z(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(r=o.beacon)||void 0===r?void 0:r.params)),fireEvent({eventName:n===i?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,n,t){e.one("play",tryCatch(function(){var o,r,i;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),f("PLAY",X({pfm:window.platform,uid:ne(),vid:Z(),videoPosition:Math.floor(e.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(i=r.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),n&&n("started_video_playback",X({"Video ID":Z(),watchTime:Math.floor(e.currentTime())},t))}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var n,t;null!=e&&null!==(n=e.el_)&&void 0!==n&&null!==(t=n.className)&&void 0!==t&&t.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,n){var t,o;if(n.el_){var r,i,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=n&&null!==(t=n.el_)&&void 0!==t&&null!==(o=t.className)&&void 0!==o&&o.includes("vjs-waiting")&&J<4)J++,f("BUFFERING",X({pfm:window.platform,uid:ne(),vid:Z(),videoPosition:n.el_&&Math.floor(n.currentTime())},null===(r=window)||void 0===r||null===(i=r.customData)||void 0===i||null===(l=i.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:n.el_&&Math.floor(n.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var n,t,o;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,f("FIRST_FRAME",X({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ne(),vid:Z()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})})},window.ads=function(e){e.on("adsready",function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,function(){var n,t,o,r,i,l;f("AD_REQUEST",X({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ne(),vid:Z(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),f("AD_IMPRESSION",X({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ne(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:Z()},null===(r=window)||void 0===r||null===(i=r.customData)||void 0===i||null===(l=i.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})}),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,function(){window.ttFirstFrame=0}),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,function(){window.ttFirstFrame=0})})},window.ping=function(e){var n=[];e.on("timeupdate",function(){var t=Math.floor(e.currentTime());t>=30&&t%30==0&&!n.includes(t)&&(J=0,n.push(t),fireEvent({eventName:"PING",videoPosition:t,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))})},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch(function(){for(var n=e.currentTime(),t=e.duration(),o=e.buffered(),r=0;r<o.length;r++){var i=o.start(r),l=o.end(r);if(ie(n,i,l)){var a=Math.round(t-l);if(isFinite(a))return a}}})()};var ie=function(e,n,t){return e>=n&&e<=t},le=function(){var e,n=G(),t=(null==n?void 0:n.contentType)||"video";return(null==n||null===(e=n[t])||void 0===e?void 0:e.network)||null};window.fireEvent=function(){var e=n(t.mark(function e(n){var o,i,l,a,d,u,s,c,v,m,p,f,h,y,w,I,E,T,b,_,S;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return E=e.sent,T=B(E),b=null==T?void 0:T.site,_=null==T?void 0:T.siteId,e.t0=X,e.t1=X,e.t2=X({aid:b,cid:_,pfm:window.platform},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i||null===(l=i.beacon)||void 0===l?void 0:l.params),e.t3={},e.t4=ne(),e.t5=Z(),e.t6=n.url||document.location.href,e.t7=n.ref||document.referrer,e.t8=n.eventName,e.t9=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t10=window.environment,e.t11=n.dp1||"",e.t12=n.dp2||"",e.t13=n.dp3||"",e.t14=n.dp4||"",e.t15=n.dp5||"",e.t16=!0===n.isAdEvent?n.videoPosition:null,e.t17=!0===n.isAdEvent?re(n.adPosition):"",e.next=26,te();case 26:e.t18=e.sent,e.t19=n.playerType||"native",e.t20=n.mediaType||"VIDEO",e.t21=window.sid,e.t22=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t23=null!==(u=n.bitrate)&&void 0!==u?u:null,e.t24=null!==(s=n.resHeight)&&void 0!==s?s:null,e.t25=null!==(c=n.resWidth)&&void 0!==c?c:null,e.t26=null!==(v=n.bufferHealth)&&void 0!==v?v:null,e.t27=null!==(m=le())&&void 0!==m?m:null,e.t28=null!=b?b:null,e.t29={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:null,resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26,networkname:e.t27,brandname:e.t28},e.t30=(null==n?void 0:n.duration)&&{duration:n.duration},e.t31=(0,e.t1)(e.t2,e.t3,e.t29,e.t30),e.t32=null===(p=window)||void 0===p||null===(f=p.customData)||void 0===f||null===(h=f.beacon)||void 0===h?void 0:h.params,e.t33=(0,e.t0)(e.t31,e.t32),S=[e.t33],r({url:(null===(y=window)||void 0===y||null===(w=y.customData)||void 0===w||null===(I=w.beacon)||void 0===I?void 0:I.url)||P.get()+g.getBeaconUrl,method:"post",headers:{Authorization:E},contentType:"application/x-www-form-urlencoded",dataType:"text",data:S}).catch(function(e){console.error(e)});case 44:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var ae=function(){var e=z.get();return e>=0?e+1:1},de=function(){var e,n,t,o=q(),r=G(),i=null==r||null===(e=r.video)||void 0===e?void 0:e.id,l=z.get(),a=null==o||null===(n=o[l])||void 0===n||null===(t=n.episodes)||void 0===t?void 0:t.findIndex(function(e){return(null==e?void 0:e.id)===i});return a>=0?a+1:1};function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function se(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ue(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var ce=a,ve=function(e,n){return e&&n?"".concat(e,"x").concat(n):e>1024?"L":e>768?"M":"S"},me=function(e){var n=pe(e,"video.tags",[]),t=pe(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return n.length>0?n.map(function(e){return e.title}).join(","):t},pe=function(e,n,t){for(var o=0,r=(n=n.split(".")).length;o<r;o++){var i;e=null===(i=e)||void 0===i?void 0:i[n[o]]}return e||t},fe=function(){var e,n,t,o,r,l,a,u,s,c,v,m,p,f,g,h,y,w,I,E,T,b,_,S,O,P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",D=arguments.length>1?arguments[1]:void 0,A=arguments.length>2?arguments[2]:void 0;if(null!==(e=window)&&void 0!==e&&null!==(n=e.customData)&&void 0!==n&&n.disableMacros)return P;var L=(null==A?void 0:A.siteName)||(null==A?void 0:A.site)||"",k=(null==A?void 0:A.contentType)||"video",C=(null==A||null===(t=A[k])||void 0===t?void 0:t.metadata)||(null==A||null===(o=A[k])||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.metadata),F=i.getPlayer(D);if(!P.includes("VIEWLIFT_"))return P;var R,j=window.getComputedStyle(document.getElementById(D),null),V=Math.trunc(j.getPropertyValue("height").slice(0,-2)),x=Math.trunc(j.getPropertyValue("width").slice(0,-2)),N="linearchannel"===k?null==A||null===(l=A.linearchannel)||void 0===l||null===(a=l.channels)||void 0===a||null===(u=a.find(function(e){return(null==e?void 0:e.id)===(null==A?void 0:A.channelId)}))||void 0===u||null===(s=u.content)||void 0===s?void 0:s.id:pe(A,"video.gist.id",""),W="linearchannel"===k?null==A||null===(c=A.linearchannel)||void 0===c||null===(v=c.channels)||void 0===v||null===(m=v.find(function(e){return(null==e?void 0:e.id)===(null==A?void 0:A.channelId)}))||void 0===m?void 0:m.title:pe(A,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),M=null,B=null;"function"==typeof window.__gpp&&(null===(R=window)||void 0===R||R.__gpp("ping",function(e){M=null==e?void 0:e.gppString,B=null==e?void 0:e.sectionList[0]}));var U=d.get("us_privacy")||d.get("usprivacy"),H=void 0!==U?U:"1YNN",G=null!==(p=null===(f=JSON.parse(localStorage.getItem("selectedMvpdProvider")||"{}"))||void 0===f?void 0:f.fwIdentifier)&&void 0!==p?p:null,q=se(se({},ge(C)),{},{VIEWLIFT_WIDTH:x,VIEWLIFT_HEIGHT:V,VIEWLIFT_SIZE:ve(x,V),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(g=window)||void 0===g?void 0:g.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:pe(A,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:pe(A,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:pe(A,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==F||null===(h=F.options_)||void 0===h?void 0:h.autoplay)||1,VIEWLIFT_MUTE:(null==F||null===(y=F.options_)||void 0===y?void 0:y.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==L||"usanetwork"==L?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:me(A),VIEWLIFT_MEDIA_ID:N,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(pe(A,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:N,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+pe(A,"video.gist.permalink","")),VIEWLIFT_CONSENT:d.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:pe(null===(w=window)||void 0===w||null===(I=w.app_data)||void 0===I||null===(E=I.site)||void 0===E?void 0:E.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_ROKU_AD_ID:"",VIEWLIFT_ROKU_AD_KEYS:"",VIEWLIFT_RDID:"",VIEWLIFT_GDPR:"spinco"==L||"usanetwork"==L?"":pe(null===(T=window)||void 0===T||null===(b=T.app_data)||void 0===b||null===(_=b.site)||void 0===_?void 0:_.settings,"compliance.gdpr")?1:0,VIEWLIFT_US_PRIVACY:H,VIEWLIFT_TVE_PROVIDER:G?ce(G):"",VIEWLIFT_CONTENT_DURATION_MS:1e3*pe(A,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:pe(A,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:N,VIEWLIFT_CONTENT_TITLE:W,VIEWLIFT_CONTENT_SERIES_TITLE:pe(A,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:pe(A,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:de(),VIEWLIFT_SEASON_NUMBER:ae(),VIEWLIFT_CONTENT_TAGS:me(A),VIEWLIFT_GPP_SID:B||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:M||"VIEWLIFT_GPP",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:"",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:""},null===(S=window)||void 0===S||null===(O=S.customData)||void 0===O?void 0:O.macros);for(var Y in q){var Q=new RegExp(Y,"g");P=P.replace(Q,q[Y])}return P},ge=function(e){var n,t,o,r,i,a,d,u,s,c={},v=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){v.set(e.name,e.value)}));var m=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.subscription)||void 0===o?void 0:o.SVOD)||!1,p=(null===(r=window)||void 0===r||null===(i=r.customData)||void 0===i||null===(a=i.subscription)||void 0===a?void 0:a.TVE)||!1;return m||p?(l.isMobile()?m?c=se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.dtc")||""}):p&&(c=se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.tve")||""})):m?c=se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.web.dtc")||""}):p&&(c=se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.web.tve")||""})),m?c=se(se({},c),{},{VIEWLIFT_SFID:v.get("sfid.dtc")||v.get("sfid.web.dtc")||""}):p&&(c=se(se({},c),{},{VIEWLIFT_SFID:v.get("sfid.tve")||v.get("sfid.web.tve")||""})),c=l.isMobile()?se(se({},c),{},{VIEWLIFT_PROF:v.get("prof.mweb")||""}):se(se({},c),{},{VIEWLIFT_PROF:v.get("prof.web")||""})):(c=se(se({},c),{},{VIEWLIFT_SFID:v.get("sfid.dtc")||v.get("sfid.web.dtc")||""}),c=l.isMobile()?se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:v.get("prof.mweb")||""}):se(se({},c),{},{VIEWLIFT_CSID:v.get("csid.web.dtc")||"",VIEWLIFT_PROF:v.get("prof.web")||""})),c=se(se({},c),{},{VIEWLIFT_AFID:v.get("afid"),VIEWLIFT_NIELSEN_APP_ID:v.get("VIEWLIFT_NIELSEN_APP_ID")||pe(null===(d=window)||void 0===d||null===(u=d.app_data)||void 0===u||null===(s=u.appcmsMain)||void 0===s?void 0:s.analytics,"nielsen.id")||"",VIEWLIFT_CHANNEL:v.get("VIEWLIFT_CHANNEL")||"",VIEWLIFT_GRACE_NOTE_ID:v.get("VIEWLIFT_GRACE_NOTE_ID")||"",VIEWLIFT_EXTERNAL_AD_ID:v.get("VIEWLIFT_EXTERNAL_AD_ID")||""})},he=function(e,n){var t,o,r,i,a,d,u,s,c,v,m,p,f,g=(null==e?void 0:e.contentType)||"video",h=null==e||null===(t=e[g])||void 0===t?void 0:t.drmEnabled,y=null==e||null===(o=e[g])||void 0===o||null===(r=o.streamingInfo)||void 0===r?void 0:r.videoAssets,w=null==e||null===(i=e[g])||void 0===i||null===(a=i.streamingInfo)||void 0===a?void 0:a.audioAssets,I=(null==e||null===(d=e[g])||void 0===d||null===(u=d.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(c=e[g])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var E=(null==e||null===(m=e[g])||void 0===m||null===(p=m.streamingInfo)||void 0===p||null===(f=p.videoAssets)||void 0===f?void 0:f.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=w&&w.hls)return we(w);if(h){var T=Ie(y,n);return T.src=fe(T.src,n,e),T}if("Safari"!==l.detectBrowser()&&E)return ye(y);if(I){var b=we(y);return b.src=fe(b.src,n,e),b}if(null!=y&&y.mpeg){var _=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(y);return _.src=fe(_.src,n,e),_}return null},ye=function(e){var n=null==e?void 0:e.dash;return n?{src:n,type:"application/dash+xml"}:null},we=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},Ie=function(e,n){var t=(null==e?void 0:e.drmProvider)||null,r=e.fairPlayCmaf||e.fairPlay,a=e.widevine,d=e.playReady,u=l.detectBrowser();if(i.getPlayer(n),"Safari"===u){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var r={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};o.xhr(r,function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))})},getContentId:function(e,n){if(n){var t=n.indexOf("\0")+1;return n.slice(t)}},getLicense:function(n,t,r,i){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:r,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};o.xhr(l,function(e,n,t){console.log(e),e&&i(e),i(null,t)})}}}}}(r);return Ee(n),s}var c,v={src:a.url,type:"application/dash+xml"};return"caliente"==(null===(c=window)||void 0===c?void 0:c.siteName)?(Ee(n),v.keySystems={"com.widevine.alpha":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==d?void 0:d.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==d?void 0:d.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==t?(v.keySystemOptions=[],v.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),v.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==d?void 0:d.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(v.keySystemOptions=[],v.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),v.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==d?void 0:d.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==d?void 0:d.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),v};var Ee=function(e){var n=i.getPlayer(e);if("function"==typeof n.eme)try{n.eme(),"Safari"==l.detectBrowser()&&n.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Te=function(e,n){if(Promise.resolve().then(function(){return require("./error-26d5a3c3.js")}).then(function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)}),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}else{var o=document.getElementById(e);if(o){var r=document.createElement("div");r.className="error-container";var i=document.createElement("div");i.className="error-message",i.innerHTML="".concat(n),r.appendChild(i),o.append(r)}}},be=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var _e=!1,Se=function(e,n,t){var o=fe(n,e,t),r=i.getPlayer(e);if(n&&window.google){if("function"!=typeof r.ima&&"object"!==s(r.ima))return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,n){var t,o,r,l=i.getPlayer(e);if(null!==l.el_){_e=!0;var a={id:e,adTagUrl:"".concat(n),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),_e&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,n,!0),l.ima.requestAds()},1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),l.one(u,function(){s&&l.ima.initializeAdDisplayContainer()});var c=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(r=o.ads)||void 0===r?void 0:r.adEventHandler)||null;l.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),l.one("ads-manager",function(e){var n=e.adsManager;n.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}),n.addEventListener(google.ima.AdEvent.Type.LOADED,function(e){c&&c({status:"LOADED",msg:"Advertisement Loaded",data:e})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,o)}};var Oe,Pe=(Oe=!0,{enable:function(){Oe=!0},disable:function(){Oe=!1},get enabled(){return Oe}}),De="ssai-breakStart",Ae="ssai-adImpression",Le="ssai-firstQuartile",ke="ssai-midpoint",Ce="ssai-thirdQuartile",Fe="ssai-complete",Re="ssai-breakEnd",je={breakStart:De,impression:Ae,firstQuartile:Le,midpoint:ke,thirdQuartile:Ce,complete:Fe,breakEnd:Re};function Ve(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=i.getPlayer(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,r=je[o];r&&t.trigger(r,n)}function xe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Ne(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):xe(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var We,Me=(We={},{get:function(){return We},set:function(e){We=e}});function Be(e,n){var t,o,r,l,a,d,u,s,c,v,p,f,g,h,y,w,I=null==e?void 0:e.playerId,E=i.getPlayer(I);if(null!=e&&null!==(t=e.comscore)&&void 0!==t&&t.enable){var T=G(),b=(null==T||null===(o=T.video)||void 0===o?void 0:o.metadata)||[],_=(null==b?void 0:b.length)&&b.filter(function(e){return"advertisingGenre"===e.name});if(null!==(r=_)&&void 0!==r&&r.length){var S=_.map(function(e){return e.value});_=null==S?void 0:S.join(",")}m.destroyComscoreTag();var O,P,D,A=null===(l=window)||void 0===l?void 0:l.lcProgrammeDetails,L=Array.isArray(null==A?void 0:A.category)?null==A||null===(a=A.category)||void 0===a?void 0:a.join(","):(null==A?void 0:A.category)||null,k=Ne(Ne(Ne({},null==T?void 0:T.video),null==T?void 0:T.linearchannel),{},{siteName:(null==T?void 0:T.site)||null,programId:(null==A?void 0:A.videotmsid)||null,programTitle:(null==A?void 0:A.lcProgrammeName)||null,episodeId:(null==A?void 0:A.videotmsid)||null,seasonNumber:(null==T||null===(d=T.video)||void 0===d||null===(u=d.series)||void 0===u?void 0:u.seasonNumber)||(null==A||null===(s=A.seriesDetails)||void 0===s?void 0:s.season)||null,episodeNumber:(null==T||null===(c=T.video)||void 0===c||null===(v=c.series)||void 0===v?void 0:v.episodeNumber)||(null==A||null===(p=A.seriesDetails)||void 0===p?void 0:p.episode)||null,episodeTitle:(null==A?void 0:A.lcSubTitle)||null,isCompleteEpisode:!!(null!=T&&null!==(f=T.video)&&void 0!==f&&f.series||null!=A&&null!==(g=A.seriesDetails)&&void 0!==g&&g.episode),genre:_||L,comscoreConfig:{implementationId:(null==e||null===(h=e.comscore)||void 0===h?void 0:h.implementationId)||null,projectId:(null==e||null===(y=e.comscore)||void 0===y?void 0:y.projectId)||null}});if(null!=k&&null!==(w=k.streamingInfo)&&void 0!==w&&w.isLiveStream?k.contentType="LIVE":k.contentType="LONG_FORM_ON_DEMAND",null==k||!k.network){var C,F=(null==k?void 0:k.metadata)||[],R=null==F||null===(C=F.find(function(e){return"network"===e.name}))||void 0===C?void 0:C.value;k.network=R||null}null!=k&&k.network&&null!=k&&k.genre&&(k.customGenre="".concat(k.network,"_").concat((null==k?void 0:k.programTitle)||(O=k,null!=O&&O.series?null==O||null===(D=O.series)||void 0===D?void 0:D.title:null==O||null===(P=O.gist)||void 0===P?void 0:P.title),"_").concat(k.genre)),null!=A&&A.airDate&&(k.publishDate=A.airDate),null!=k&&k.runtime&&"function"==typeof E.duration&&(k.runtime=1e3*Math.ceil(E.duration()));var j=m.formulateComscorePayload(k,E);console.log("comscoreOptions player data",j),m.createComscoreStreamingTag(Ne({playerName:"Video.js"},j)),m.setComscorePlayerInstance(E)}}function Ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function He(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function Ge(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return qe(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qe(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function qe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var Ye,Qe=function(){var e="";return{set:function(n){n&&(e=n)},get:function(){return e}}}(),ze=(Ye=null,{set:function(e){Ye=e},get position(){return Ye}});function Ke(e,n){return Xe.apply(this,arguments)}function Xe(){return(Xe=n(t.mark(function e(n,o){var r,l,a,d,u,s,c,m,p,f,g,h,y,w,I,E,T,b;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.getPlayer(n),a=he(o,n),d=a.src,u=(null==o?void 0:o.contentType)||"video",null==o||null===(r=o[u])||void 0===r||null===(l=r.streamingInfo)||void 0===l||l.isLiveStream,s=d.replace("/dash/","/session/").replace("/master/","/session/"),s=fe(s,n,o),c=$e(s),m=v(c,2),p=m[0],f=m[1],g=Je(f)||{},s=new URL(s.split("?")[0]),Object.keys(f).length>0&&Object.entries(f).forEach(function(e){var n=v(e,2),t=n[0],o=n[1];s.searchParams.set(t,o)}),e.prev=11,e.next=14,fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(He({adsParams:He({},p)},g))});case 14:return h=e.sent,e.next=17,h.json();case 17:return y=e.sent,w="https://"+new URL(s).hostname,I=y.trackingUrl,E=y.manifestUrl,T=w+I,b=w+E,Qe.set(T),console.log("%c TRACKING URL","background: #bdf369; color: #000",T),a.src=b,e.abrupt("return",a);case 29:return e.prev=29,e.t0=e.catch(11),e.abrupt("return",a);case 32:case"end":return e.stop()}},e,null,[[11,29]])}))).apply(this,arguments)}function Je(e){var n;return Object.fromEntries(null==Object||null===(n=Object.entries(e))||void 0===n?void 0:n.map(function(e){var n=v(e,2),t=n[0],o=n[1];return[null==t?void 0:t.replace(/^aws\./,""),String(o)]}))||{}}function $e(e){var n={};if(!e.split("?")[1])return[{},{}];var t,o=new URL(e,window.location.origin),r=Ge((null==o?void 0:o.searchParams)||[]);try{for(r.s();!(t=r.n()).done;){var i=v(t.value,2),l=i[0],a=i[1];n[decodeURIComponent(l)]=decodeURIComponent(a||"")}}catch(e){r.e(e)}finally{r.f()}for(var d={},u={},s=0,c=Object.entries(n);s<c.length;s++){var m=v(c[s],2),p=m[0],f=m[1];if(p.startsWith("ads."))d[p.replace(/^ads\./,"")]=f;else u[p]=f}return[d,u]}var Ze,en,nn,tn=new Map;function on(e,n){return rn.apply(this,arguments)}function rn(){return rn=n(t.mark(function e(o,r){var l,a,d,u,s,v,m,p,f,g,h,y,w,I,E,T,b,_,S,O,P,D,A,L,k;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:k=function(e,n,t,r,l,a){var d,u,s=i.getPlayer(o);if(!s.seeking()){var c=n.startTimeInSeconds;n.durationInSeconds,e<A&&D.clear(),A=e;var v=(null==n||null===(d=n.ads)||void 0===d||null===(u=d[r])||void 0===u?void 0:u.adId)||c;Math.floor(s.currentTime());var m,p=Ge(t);try{var f=function(){var t,i,d,u=m.value,c=u.eventType,p=u.beaconUrls,f=u.startTimeInSeconds,g=u.startTime,h=u.durationInSeconds,y=f||0,w=p,I=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(d=i.ads)||void 0===d?void 0:d.adEventHandler)||null,E="".concat(y,"_").concat(c),T=tn.get("pod-".concat(l))||[];if(console.warn(e,y,"map:",c,"condition1:",e>=y,"map:",tn),e>=y&&!T.includes(E)){T.push(E),tn.set("pod-".concat(l),T);try{L(c,n,w,s)}catch(e){console.error("Error when calling triggerAdBeacon:",e,c,n)}if("breakEnd"==c){var b=ze.position;ze.set(null),setTimeout(function(){null!=b&&(s.currentTime(b),a())},500)}if("function"==typeof I)try{var _,S={eventType:c,startTimeInSeconds:f,startTime:g,durationInSeconds:h,ad:null==n||null===(_=n.ads)||void 0===_?void 0:_[r],adIndex:r};I({adsData:S}),Ve(o,S)}catch(e){console.error("Error when calling ads callback:",e)}var O=Me.get();if(O&&0!==Object.keys(O).length){var P=O.formulateComscoreAdPayload,A=O.startComscoreAdTracking,k=O.finishComscoreAdTracking,C=O.endComscoreAdTracking,F="".concat(y,"_").concat(v,"_").concat(c);if(!D.has(F))if(D.set(F,!0),"impression"===c){var R,j=Qe.get();A(P(He(He({},null==n||null===(R=n.ads)||void 0===R?void 0:R[r]),{},{trackingUrl:j})))}else"complete"===c?k():"breakEnd"===c&&C()}}};for(p.s();!(m=p.n()).done;)f()}catch(e){p.e(e)}finally{p.f()}}},L=function(e,n,t,o){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},P=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},tn.clear(),ze.set(r),f=Qe.get(),(g=i.getPlayer(o)).one("loadeddata",function(){f&&O(f)}),h=new Map,y=new Map,w=-1,I=(null===(l=document)||void 0===l||null===(a=l.getElementsByClassName("tvProviderImage"))||void 0===a?void 0:a[0])||null,E=(null==g||null===(d=g.controlBar)||void 0===d?void 0:d.getChild("videoSelector"))||null,T=(null==g||null===(u=g.controlBar)||void 0===u?void 0:u.getChild("seriesV2"))||null,b=(null==g||null===(s=g.el())||void 0===s||null===(v=s.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===v?void 0:v[0])||null,_=(null==g||null===(m=g.el())||void 0===m||null===(p=m.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===p?void 0:p[0])||null,S=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0==(null==t?void 0:t.length))return c(o);var r=[],i=null==o?void 0:o.find(function(e){return"breakEnd"===(null==e?void 0:e.eventType)}),l=(null==i||null===(e=i.beaconUrls)||void 0===e?void 0:e.find(function(e){return e.includes("videoView")}))||null,a=(null==t?void 0:t.length)>1?null==t?void 0:t[(null==t?void 0:t.length)-1]:null==t?void 0:t[0],d=null==a||null===(n=a.trackingEvents)||void 0===n?void 0:n.filter(function(e){return["breakEnd"].includes(null==e?void 0:e.eventType)}),u=(null==d?void 0:d.some(function(e){var n;return null==e||null===(n=e.beaconUrls)||void 0===n?void 0:n.some(function(e){return e.includes("videoView")})}))||!1;if(!u&&l){var s=null==d?void 0:d.map(function(e){return He(He({},e),{},{eventType:"videoView",beaconUrls:[l]})});null!=s&&s[0]&&r.push(null==s?void 0:s[0])}return r},O=function(){var e=n(t.mark(function e(n){var l,a,d,u,s,v,m,p,f,g,O,D,A,L,C,F,R,j,V,x,N,W,M,B;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return x=function(e){document.removeEventListener("pointermove",V),document.removeEventListener("pointerup",x),0===e.button&&R()},V=function(e){},j=function(){var e,n=g.currentTime(),t=null,o=Ge(f);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,l=r.durationInSeconds,a=(r.ads,Math.floor(i+l));n>=i&&n<=a&&(t=a,h.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){g.currentTime(t+2.2)},100))},R=function(){var e,n=g.currentTime(),t=null,o=Ge(f);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,l=r.durationInSeconds,a=r.ads,d=Math.floor(i+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>d||n>i)&&!h.has(i)||n>=i&&n<=d)&&(t=i,h.set(i,!0),y.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){g.currentTime(t+.4)},100))},s=!1,e.next=7,fetch(n);case 7:return v=e.sent,e.next=10,v.json();case 10:m=e.sent,p=m.avails,f=[],g=i.getPlayer(o),O=g.controlBar.progressControl,D=O.seekBar.el(),null===(l=document)||void 0===l||l.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),p.map(function(e,n){var t;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(s=!0),f.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:S(null==e?void 0:e.ads,null==e?void 0:e.adBreakTrackingEvents)})}),!s&&r&&(g.currentTime(r),j()),null!=f&&f.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",f),window.adsQueueList=f,"function"==typeof(F=(null===(A=window)||void 0===A||null===(L=A.customData)||void 0===L||null===(C=L.ads)||void 0===C?void 0:C.onAdBreaksLoaded)||null)&&F(f)),console.log(f,"data"),f.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=g.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var r=n/o*100,i=document.createElement("div");i.className="vjs-seekbar-marker",i.style.left="".concat(r,"%"),i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.width="2px",i.style.backgroundColor="#fecc09",i.style.left="".concat(r,"%"),i.style.pointerEvents="none",D.appendChild(i)}}),g._timeUpdateHandler&&g.off("timeupdate",g._timeUpdateHandler),g._timeUpdateHandler=i.throttle(function(){var e=g.currentTime();if(e!==w){w=e;for(var n=!1,t=function(){var t=f[o],r=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,a=r+i;if(e>=r-1.2&&e<=a+1.2){var d;e>=r&&e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&h.set(r,!0),Pe.disable(),I&&I.classList.add("vjs-hidden"),b&&(b.style.pointerEvents="none",b.classList.add("vjs-hidden")),_&&(_.style.pointerEvents="none",_.classList.add("vjs-hidden")),E&&(E.el().style.pointerEvents="none",E.el().classList.add("vjs-hidden")),T&&(T.el().style.pointerEvents="none",T.el().classList.add("vjs-hidden")),O.el().classList.add("hide-progress-bar");for(var u=e-r,s=0,v=0,m=0;m<l.length;m++){var p,g=null==l||null===(p=l[m])||void 0===p?void 0:p.durationInSeconds;if(u<s+g){v=m;break}s+=g}l[v];var w=Math.max(0,i-u),S=Math.round(w);N.style.display="block",B.textContent="".concat(v+1," of ").concat(l.length," • ").concat(P(S));var D=[];return null==l||l.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});D.push.apply(D,c(n))}),(null==t||null===(d=t.podSlotImpressionBeacon)||void 0===d?void 0:d.length)>0&&D.push.apply(D,c(null==t?void 0:t.podSlotImpressionBeacon)),k(e,t,D,v,o,j),"break"}y.delete(r)},o=0;o<f.length;o++){if("break"===t())break}n||(N.style.display="none",O.el().classList.remove("hide-progress-bar"),E&&(E.el().style.pointerEvents="auto",E.el().classList.remove("vjs-hidden")),T&&(T.el().style.pointerEvents="auto",T.el().classList.remove("vjs-hidden")),I&&I.classList.remove("vjs-hidden"),b&&(b.style.pointerEvents="auto",b.classList.remove("vjs-hidden")),_&&(_.style.pointerEvents="auto",_.classList.remove("vjs-hidden")),Pe.enable())}},1e3),g.on("timeupdate",g._timeUpdateHandler),null===(a=document)||void 0===a||a.addEventListener("keydown",function(e){Pe.enabled&&"ArrowRight"==e.key&&(R(),gn(o,10),e.stopPropagation())}),O.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",V),document.addEventListener("pointerup",x))}),null===(d=document)||void 0===d||null===(u=d.querySelectorAll(".ssai-ad-container"))||void 0===u||u.forEach(function(e){return null==e?void 0:e.remove()}),(N=document.createElement("div")).className="ssai-ad-container",(W=document.createElement("div")).className="sponsored-adbox",(M=document.createElement("div")).className="sponsored-text",M.textContent="Sponsored Ad",W.append(M),(B=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",N.append(W),N.append(B),g.el().appendChild(N);case 44:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),D=new Map,A=-1;case 21:case"end":return e.stop()}},e)})),rn.apply(this,arguments)}function ln(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return an(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?an(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function an(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function dn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function un(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):dn(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var sn={},cn=(null===(Ze=window)||void 0===Ze||null===(en=Ze.location)||void 0===en||null===(nn=en.search)||void 0===nn?void 0:nn.includes("debug=true"))||!1,vn=null;function mn(e){return pn.apply(this,arguments)}function pn(){return pn=n(t.mark(function e(o){var r,l,a,d,u,s,v,m,p,f,g,h,y,w,I,E,T,b,_,S,O,P,D,A,L,k,C;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:C=function(e,n,t,r,l){var a,d,u=i.getPlayer(o);if(!u.seeking()){var s=n.startTimeInSeconds;n.durationInSeconds;var c=(null==n||null===(a=n.ads)||void 0===a||null===(d=a[r])||void 0===d?void 0:d.adId)||s;Math.floor(u.currentTime());var v,m=ln(t);try{for(m.s();!(v=m.n()).done;){var p,f,g,h=v.value,y=h.eventType,w=h.beaconUrls,I=h.startTimeInSeconds,E=h.startTime,T=h.durationInSeconds,b=(h.eventId,I||s),_=w,S=(null===(p=window)||void 0===p||null===(f=p.customData)||void 0===f||null===(g=f.ads)||void 0===g?void 0:g.adEventHandler)||null,O="".concat(c,"_").concat(y),P="pod-".concat(s);A.has(P)||A.set(P,new Set);var D=A.get(P);if(cn&&console.warn(e,b,"map:",y,"condition1:",e>=b,"map:",A),e>=b&&e<=b+L&&!D.has(O)){D.add(O);try{k(y,n,_,u)}catch(e){console.error("Error when calling triggerAdBeacon:",e,y,n)}if("function"==typeof S)try{var C,F={eventType:y,startTimeInSeconds:I,startTime:E,durationInSeconds:T,ad:null==n||null===(C=n.ads)||void 0===C?void 0:C[r],adIndex:r};S({adsData:F}),Ve(o,F)}catch(e){console.error("Error when calling ads callback:",e)}var R=Me.get();if(R&&0!==Object.keys(R).length){var j=R.formulateComscoreAdPayload,V=R.startComscoreAdTracking,x=R.finishComscoreAdTracking,N=R.endComscoreAdTracking;if("impression"===y){var W,M=Qe.get();V(j(un(un({},null==n||null===(W=n.ads)||void 0===W?void 0:W[r]),{},{trackingUrl:M})))}else"complete"===y?x():"breakEnd"===y&&N()}}}}catch(e){m.e(e)}finally{m.f()}}},k=function(e,n,t,o){var r,i,l;"breakEnd"===e&&(null===(r=sn)||void 0===r?void 0:r.currentAdIndex)+1!=(null===(i=sn)||void 0===i?void 0:i.totalAds)&&(null==n||null===(l=n.ads)||void 0===l?void 0:l.length)>0||(cn&&console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})}))},g=function(){vn&&clearInterval(vn)},p=Qe.get(),(f=i.getPlayer(o)).one("loadeddata",function(){g(),vn=setInterval(function(){p&&!f.paused()&&D(p)},2e3)}),f.on("dispose",function(){g()}),h=new Map,y=new Map,w=-1,I=null,E=(null===(r=document)||void 0===r||null===(l=r.getElementsByClassName("tvProviderImage"))||void 0===l?void 0:l[0])||null,T=(null==f||null===(a=f.controlBar)||void 0===a?void 0:a.getChild("videoSelector"))||null,b=(null==f||null===(d=f.controlBar)||void 0===d?void 0:d.getChild("seriesV2"))||null,_=(null==f||null===(u=f.el())||void 0===u||null===(s=u.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===s?void 0:s[0])||null,S=(null==f||null===(v=f.el())||void 0===v||null===(m=v.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===m?void 0:m[0])||null,O=!1,P=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0==(null==t?void 0:t.length))return c(o);var r=[],i=null==o?void 0:o.find(function(e){return"breakEnd"===(null==e?void 0:e.eventType)}),l=(null==i||null===(e=i.beaconUrls)||void 0===e?void 0:e.find(function(e){return e.includes("videoView")}))||null,a=(null==t?void 0:t.length)>1?null==t?void 0:t[(null==t?void 0:t.length)-1]:null==t?void 0:t[0],d=null==a||null===(n=a.trackingEvents)||void 0===n?void 0:n.filter(function(e){return["breakEnd"].includes(null==e?void 0:e.eventType)}),u=(null==d?void 0:d.some(function(e){var n;return null==e||null===(n=e.beaconUrls)||void 0===n?void 0:n.some(function(e){return e.includes("videoView")})}))||!1;if(!u&&l){var s=null==d?void 0:d.map(function(e){return un(un({},e),{},{eventType:"videoView",beaconUrls:[l]})});null!=s&&s[0]&&r.push(null==s?void 0:s[0])}return r},D=function(){var e=n(t.mark(function e(n){var r,l,a,d,u,s,v,m,p,f;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=new URL(n),I&&l.searchParams.append("nextToken",I),e.next=4,fetch(l.toString(),{method:"GET"});case 4:return a=e.sent,e.next=7,a.json();case 7:d=e.sent,u=d.avails,s=d.nextToken||null,I=s,v=[],m=i.getPlayer(o),p=m.controlBar.progressControl,f=p.seekBar.el(),null===(r=document)||void 0===r||r.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),u.map(function(e,n){v.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:P(null==e?void 0:e.ads,null==e?void 0:e.adBreakTrackingEvents)})}),cn&&console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",v),null!=v&&v.length&&(window.adsQueueList=v),v.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=m.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var r=n/o*100,i=document.createElement("div");i.className="vjs-seekbar-marker",i.style.left="".concat(r,"%"),i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.width="2px",i.style.backgroundColor="#fecc09",i.style.left="".concat(r,"%"),i.style.pointerEvents="none",f.appendChild(i)}}),m._timeUpdateHandler&&m.off("timeupdate",m._timeUpdateHandler),m._timeUpdateHandler=i.throttle(function(){var e=m.currentTime();if(e!==w){w=e;for(var n=function(){var n=v[t],o=n.startTimeInSeconds,r=n.durationInSeconds,i=n.ads,l=o+r;if(e>=o-1.2&&e<=l+1.2){var a;O=!!(e>=o&&e<=l&&Array.isArray(i)&&(null==i?void 0:i.length)>0),e>l&&h.set(o,!0),Pe.disable(),E&&E.classList.add("vjs-hidden"),_&&(_.style.pointerEvents="none",_.classList.add("vjs-hidden")),S&&(S.style.pointerEvents="none",S.classList.add("vjs-hidden")),T&&(T.el().style.pointerEvents="none",T.el().classList.add("vjs-hidden")),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),p.el().classList.add("hide-progress-bar");for(var d=e-o,u=0,s=0,m=0;m<i.length;m++){var f,g=null==i||null===(f=i[m])||void 0===f?void 0:f.durationInSeconds;if(d<u+g){s=m;break}u+=g}setTimeout(function(){sn.totalAds=null==i?void 0:i.length,sn.currentAdIndex=s},1e3);var w=[];return null==i||i.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});w.push.apply(w,c(n))}),(null==n||null===(a=n.podSlotImpressionBeacon)||void 0===a?void 0:a.length)>0&&w.push.apply(w,c(null==n?void 0:n.podSlotImpressionBeacon)),C(e,n,w,s),"break"}y.delete(o)},t=0;t<v.length;t++){if("break"===n())break}O||(sn={},p.el().classList.remove("hide-progress-bar"),T&&(T.el().style.pointerEvents="auto",T.el().classList.remove("vjs-hidden")),b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),E&&E.classList.remove("vjs-hidden"),_&&(_.style.pointerEvents="auto",_.classList.remove("vjs-hidden")),S&&(S.style.pointerEvents="auto",S.classList.remove("vjs-hidden")),Pe.enable())}},1e3),m.on("timeupdate",m._timeUpdateHandler);case 23:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),A=new Map,L=2.5;case 22:case"end":return e.stop()}},e)})),pn.apply(this,arguments)}function fn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}var gn=function(e,n){var t=o(e),r=t.currentTime()+n;t.currentTime(r)},hn=function(e,n){var t=o(e),r=t.currentTime(),i=r<=n?0:r-n;t.currentTime(i)},yn=function(e){return!!o.getPlayer("".concat(e))},wn=function(){var e=n(t.mark(function e(o,r){var l,a,d,u=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=u.length>2&&void 0!==u[2]&&u[2],e.next=3,M();case 3:return a=e.sent,d=i.getPlayer(o),e.abrupt("return",new Promise(function(e,i){b(r,a).then(function(){var i=n(t.mark(function n(i){var a,u,s,c,v,m,p,f;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(m=null==i?void 0:i.data,window.sid=ee(),m.contentType="linearchannel",m.channelId=null==r?void 0:r.channelId,p=(null==m||null===(a=m.linearchannel)||void 0===a?void 0:a.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(u=window)||void 0===u||null===(s=u.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(v=c.adsConfig)||void 0===v?void 0:v.vodAdSticherProvider)||!1,f=he(m,o),!p){n.next=11;break}return n.next=9,Ke(o,m);case 9:f=n.sent,l=!0;case 11:H(m),f&&l?(Tn(o,f),p&&mn(o),d.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:m})})):(Me.get()&&0!==Object.keys(Me.get()).length&&Be({playerId:o,comscore:{enable:!0}}),e({status:!0,msg:"Feed authenticated",response:m}));case 13:case"end":return n.stop()}},n)}));return function(e){return i.apply(this,arguments)}}()).catch(function(e){i({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),In=function(){var e=n(t.mark(function e(o,r,l){var a,d,s,c,v,m,p;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return c=e.sent,(q()||null)&&Q(r),v=0,m=0,p=null,null!==(a=window)&&void 0!==a&&a.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(s=d.watchHistory)&&void 0!==s&&s.enable&&S(r,c).then(function(e){var n,t,o,r,i,l,a;(null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r||r.cb(null==e?void 0:e.data)),v=(null==e||null===(i=e.data)||void 0===i?void 0:i.watchedTime)||null,(m=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null)<95)&&(p=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedTime)||null)}).catch(function(e){var n,t,o,r;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r||r.cb(e))}),e.abrupt("return",new Promise(function(e,l){T(r,c).then(function(){var r=n(t.mark(function n(r){var a,d,s,c,f,g,h,y,w,I,E,T,b,_,S,O,P,D,A,L,k,C,F,R,j,V,x,N,W,M,B,U,G,q,Y,Q,z,K;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(O=null==r?void 0:r.data,P=(null==O?void 0:O.contentType)||"video",D=(null==O||null===(a=O[P])||void 0===a?void 0:a.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(d=window)||void 0===d||null===(s=d.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(f=c.adsConfig)||void 0===f?void 0:f.vodAdSticherProvider)||!1,A=(null==O||null===(g=O.video)||void 0===g||null===(h=g.streamingInfo)||void 0===h?void 0:h.isLiveStream)||!1,H(r.data),(L=(null==O||null===(y=O.ads)||void 0===y||null===(w=y.preRoll)||void 0===w||null===(I=w.adTags)||void 0===I||null===(E=I.web)||void 0===E?void 0:E.active)&&(null==O||null===(T=O.ads)||void 0===T||null===(b=T.preRoll)||void 0===b||null===(_=b.adTags)||void 0===_||null===(S=_.web)||void 0===S?void 0:S.url))&&Se(o,L,O),k=he(O,o),!D){n.next=12;break}return n.next=11,Ke(o,O);case 11:k=n.sent;case 12:k?(U=(null==O||null===(C=O.video)||void 0===C||null===(F=C.gist)||void 0===F?void 0:F.videoImageUrl)||(null==O||null===(R=O.video)||void 0===R||null===(j=R.gist)||void 0===j||null===(V=j.imageGist)||void 0===V?void 0:V.r16x9),(G=i.getPlayer(o)).poster(U),Tn(o,k),D&&on(o,p),G.on("loadstart",function(){A&&e({status:!0,msg:"Video Loaded",response:O})}),G.on("loadeddata",function(){be(),e({status:!0,msg:"Video Loaded",response:O})}),G.one("play",function(){v&&!D&&m<95&&setTimeout(function(){G.currentTime(v)},0)}),G.one("error",function(){var e;l({status:!1,msg:(null==G||null===(e=G.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==O||null===(x=O.video)||void 0===x||null===(N=x.contentDetails)||void 0===N||null===(W=N.closedCaptions)||void 0===W?void 0:W.length)>0||(null==O||null===(M=O.video)||void 0===M||null===(B=M.closedCaptions)||void 0===B?void 0:B.length)>0?(K=(null==O||null===(Y=O.video)||void 0===Y||null===(Q=Y.contentDetails)||void 0===Q?void 0:Q.closedCaptions)||(null==O||null===(z=O.video)||void 0===z?void 0:z.closedCaptions),q=K.filter(function(e){return"VTT"===e.format}),u.addCaptions(o,q)):u.removeCaptions(o)):(Te(o,"Incompatible Source, only hls,mp4,drm content is allowed"),l("Incompatible Source, only hls,mp4,drm content is allowed"));case 13:case"end":return n.stop()}},n)}));return function(e){return r.apply(this,arguments)}}()).catch(function(e){bn(e,o,l,r)})}));case 10:case"end":return e.stop()}},e)}));return function(n,t,o){return e.apply(this,arguments)}}(),En=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},Tn=function(e,n){var t=i.getPlayer(e);t&&t.src(n)},bn=function(n,t,o,r){var i,l,a,d,u,s,c=null==n||null===(i=n.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.errorCode,v=(null==n||null===(a=n.response)||void 0===a||null===(d=a.data)||void 0===d?void 0:d.errorMessage)||(null==n?void 0:n.message);yn(t)&&Te(t,(null===(u=window)||void 0===u?void 0:u.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),o&&o(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):fn(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}({status:!1,response:n,msg:"".concat(v)},r&&{videoId:r}))};exports.authenticateLC=wn,exports.baseUrlManager=P,exports.clearError=be,exports.comscoreInstanceManager=Me,exports.createIdxMapping=function(e){R=new Map,e.map(function(e,n){R.set(e.id,n)})},exports.createSeriesWatchMap=function(e,n){var t=new Map;O({videoId:e,token:n}).then(function(e){e.data.map(function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),j=t}).catch(function(e){return console.log(e)})},exports.disableControls=function(e){var n=document.getElementById(e),t=n.getElementsByClassName("vjs-control-bar")[0];t&&(t.style.visibility="hidden");var o=n.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var r=n.getElementsByClassName("vjs-fullscreen-control")[0];r&&(r.style.display="none")},exports.dispose=function(e){var n=i.getPlayer(e),t=(Me.get()||{}).destroyComscoreTag;if(En(),t&&t(),i.clearEventListeners(),window.onresize=null,n)n.dispose();else{var o=document.getElementById(e);o&&o.remove()}},exports.getCurrentSeries=q,exports.getCurrentVideo=G,exports.getDecodedToken=B,exports.getEntitlementData=function(e,n,t,o){var i,l;return r({url:t,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:n,adbTempToken:null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.adbTempToken},withCredentials:!0})},exports.getEpisodeNumber=de,exports.getLinearChannelDetails=b,exports.getSGAIEnabledSource=Ke,exports.getSeasonNumber=ae,exports.getSeriesDetails=function(e,n){var t,o,i=B(n),l=(null==i?void 0:i.site)||null;return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.seriesData})}):r({url:P.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:n}})},exports.getSeriesWatchHistory=O,exports.getSeriesWatchMap=function(){return j},exports.getSource=he,exports.getSsaiEvents=function(e){var n=i.getPlayer(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var o=function(e,n){return t(n)};return n.on(e,o),function(){return n.off(e,o)}};return{adBreakStart:function(e){return t(De,e)},adImpression:function(e){return t(Ae,e)},adFirstQuartile:function(e){return t(Le,e)},adMidpoint:function(e){return t(ke,e)},adThirdQuartile:function(e){return t(Ce,e)},adComplete:function(e){return t(Fe,e)},adBreakEnd:function(e){return t(Re,e)}}},exports.getToken=M,exports.getUpdatedClusterSource=function(e,n){var t=e.src,o=e.type;if(!t||"string"!=typeof t||!t.includes(".com"))return{src:t,type:o};n=n.replace(/\/$/,"");var r=t.split(".com")[1]||"";return{src:r?"".concat(n).concat(r):t,type:o}},exports.getUserId=ne,exports.getVideoDetails=T,exports.getVideoIdx=function(){return F},exports.getVideoInfo=S,exports.handleError=Te,exports.initialiseAdvertisement=Se,exports.initialiseComscoreStreamingTracking=Be,exports.initialiseKeyboardEvents=function(e,n){var t,o,r,l=i.getPlayer(e),a=null==l||null===(t=l.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,d=document.getElementsByTagName("video")[0];null===(r=document)||void 0===r||r.addEventListener("keydown",function(t){var o,r,i,u,s,c,v,m,p;if(Pe.enabled&&!t.metaKey&&!t.ctrlKey&&"input"!=t.target.localName&&"textarea"!=t.target.localName){var f=t.key,g=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(f)&&(t.preventDefault(),null==d||d.focus()),f){case" ":null==a||a.click();break;case"m":case"M":l.muted(!l.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":g&&!1===n.liveui||hn(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(r=window)||void 0===r||null===(i=r.app_data)||void 0===i||null===(u=i.appcmsMain)||void 0===u||null===(s=u.adsConfig)||void 0===s?void 0:s.vodAdSticherProvider)&&null!==(c=window)&&void 0!==c&&null!==(v=c.app_data)&&void 0!==v&&null!==(m=v.appcmsMain)&&void 0!==m&&null!==(p=m.adsConfig)&&void 0!==p&&p.vodAdClientSideTracking)return;g||gn(e,10)}}},!0)},exports.initiateErrorHandling=bn,exports.inititateBeacon=function(e,n){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){null!=n&&n.userId&&($=n.userId);var t=i.getPlayer(e);window.initialise(t,null==n?void 0:n.analyticsCb),window.firstFrame(t,null==n?void 0:n.analyticsCb,null==n?void 0:n.analyticsEventParams),t.on("loadedmetadata",function(){window.endFirstFrame(t)})}},exports.isPaused=function(e){return o(e).paused()},exports.isPlayerInitialised=yn,exports.isTokenExpired=D,exports.load=In,exports.loadVideo=Tn,exports.loadVideoInstantly=function(e,n,t){var o=i.getPlayer(e);return o.src(n),new Promise(function(e,n){var r=0;o.one("loadedmetadata",function(){clearTimeout(r),e({status:!0,msg:"video loaded"})}),o.one("loadstart",function(e){r=setTimeout(function(){n("FAILED: Took too long to load")},t)})})},exports.pause=function(e){o(e).pause()},exports.play=function(e){o(e).play()},exports.refreshTokenManager=L,exports.rewind=hn,exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],p("js",new Date),p("config",e)},exports.saveWatchHistory=_,exports.seasonIdxManager=z,exports.setCurrentSeries=function(e){k=e},exports.setCurrentVideo=H,exports.setVideoIdx=Y,exports.setVideoIdxById=Q,exports.setupAdvertisementMarkers=on,exports.setupAdvertisementMarkersForLinear=mn,exports.skip=gn,exports.token_authentication_enabled=function(e){var n=!0,t=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return t&&!o&&(n=!1),n},exports.trackMap=tn,exports.videoReplayTracker=U;
@@ -1,11 +0,0 @@
1
- export namespace baseUrlManager {
2
- function set(param: any): void;
3
- function get(): any;
4
- }
5
- export function getVideoDetails(id: any, token: any, ssaiDisable?: boolean): Promise<any>;
6
- export function getSeriesDetails(id: any, token: any): Promise<any>;
7
- export function saveWatchHistory(params: any): Promise<import("axios").AxiosResponse<any, any>>;
8
- export function getVideoInfo(videoId: any, token: any): Promise<import("axios").AxiosResponse<any, any>>;
9
- export function getSeriesWatchHistory(data: any): Promise<import("axios").AxiosResponse<any, any>>;
10
- export function getLinearChannelDetails(params: any, token: any, ssaiDisable?: boolean): Promise<any>;
11
- export function getEntitlementData(id: any, token: any, url: any, locationData: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,22 +0,0 @@
1
- export function RewindSvgV3(): string;
2
- export function InfoIcon(): string;
3
- export function PlaylistIcon(): string;
4
- export function WidgetSelector(): string;
5
- export function WidgetInactive(): string;
6
- export function BroadcastIcon(): string;
7
- export function SelectedStream(): string;
8
- export function SkipSvg(skin: any): string;
9
- export function RewindSvg(skin: any): string;
10
- export function SettingsSvg(): string;
11
- export function MaximizeSvg(color: any): string;
12
- export function NewCaptionsSvg(): string;
13
- export function EpisodesSvg(): string;
14
- export function MinimizeSvg(color: any): string;
15
- export function PlayNextEpisodeSvg(color: any): string;
16
- export function crossIconSvg(): string;
17
- export function SkipSvgV2(): string;
18
- export function RewindSvgV2(): string;
19
- export function SettingsSvgV2(): string;
20
- export function CaptionsSvgV2(): string;
21
- export function BackIcon(): string;
22
- export function TickMarkIcon(): string;
@@ -1 +0,0 @@
1
- export function initialiseAdvertisement(playerId: any, adUrl: any, res: any): void;
@@ -1,2 +0,0 @@
1
- export function autoPlayNext(config: any): void;
2
- export function switchToNext(idx: any, playerId: any, content: any, cb: any): void;
@@ -1,9 +0,0 @@
1
- export default BigMuteButton;
2
- declare const BigMuteButton_base: typeof import("video.js/dist/types/component").default;
3
- declare class BigMuteButton extends BigMuteButton_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- mute_state: any;
7
- createEl(): Element;
8
- initialiseStructure(): void;
9
- }
@@ -1 +0,0 @@
1
- export function addTVProviderImage(playerId: any, options: any): void;
@@ -1,14 +0,0 @@
1
- export default Captions;
2
- declare const Captions_base: typeof import("video.js/dist/types/component").default;
3
- declare class Captions extends Captions_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- currentVideoData: any;
8
- createEl(): Element;
9
- loadCSS(): void;
10
- initialiseStructure(): void;
11
- addFunctionality(selectionContainer: any): void;
12
- createLanguageContanier(): Element;
13
- createFontSizeContainer(): Element;
14
- }
@@ -1,14 +0,0 @@
1
- export default dvrSeekbar;
2
- /**
3
- * A video.js plugin.
4
- *
5
- * In the plugin function, the value of `this` is a video.js `Player`
6
- * instance. You cannot rely on the player being in a "ready" state here,
7
- * depending on how the plugin is invoked. This may or may not be important
8
- * to you; if not, remove the wait for "ready"!
9
- *
10
- * @function dvrSeekbar
11
- * @param {Object} [options={}]
12
- * An object of options left to the plugin author to define.
13
- */
14
- declare function dvrSeekbar(options?: any): void;
@@ -1,18 +0,0 @@
1
- export default multicamModule;
2
- declare const multicamModule_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class multicamModule extends multicamModule_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- streams: any;
7
- config: any;
8
- createEl(): Element;
9
- createUI(streams: any): void;
10
- multicamCssPositioning: (parent: any, playerId: any) => void;
11
- getOffset(el: any): {
12
- left: any;
13
- top: any;
14
- };
15
- createTile(obj: any, index: any): Element;
16
- removeSelectedTile(): void;
17
- loadCSS(): void;
18
- }
@@ -1,13 +0,0 @@
1
- export default multicamv2;
2
- declare const multicamv2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class multicamv2 extends multicamv2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- streams: any;
8
- currentVideoData: any;
9
- createEl(): Element;
10
- loadCSS(): void;
11
- initialiseStructure(): void;
12
- addFunctionality(selectionContainer: any): void;
13
- }
@@ -1,13 +0,0 @@
1
- export default multicamv2;
2
- declare const multicamv2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class multicamv2 extends multicamv2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- streams: any;
8
- currentVideoData: any;
9
- createEl(): Element;
10
- loadCSS(): void;
11
- initialiseStructure(): void;
12
- addFunctionality(selectionContainer: any): void;
13
- }
@@ -1 +0,0 @@
1
- export function addNextEpPreview(playerId: any, options: any): void;
@@ -1,13 +0,0 @@
1
- export default nextEpisodeButton;
2
- export function initaliseFunctionality(seriesData: any, res: any): void;
3
- declare const nextEpisodeButton_base: typeof import("video.js/dist/types/component.js").default;
4
- declare class nextEpisodeButton extends nextEpisodeButton_base {
5
- constructor(player: any, options?: {});
6
- playerId: any;
7
- seriesData: any;
8
- currentVideoData: any;
9
- createEl(): Element;
10
- loadCSS(): void;
11
- initialiseStructure(): void;
12
- toggleContentOnHover(head: any, content: any): void;
13
- }