@viewlift/player-backup 2.0.114-backup → 2.0.116-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 (143) hide show
  1. package/cjs/{autoNextVideo-a860d3e8.js → autoNextVideo-d2ba145d.js} +1 -1
  2. package/cjs/bundle.css +79 -29
  3. package/cjs/{features-2bb2dd4e.js → features-b9518c47.js} +1 -1
  4. package/cjs/generic-377c0573.js +1 -0
  5. package/cjs/{index-c5039d58.js → index-62222a39.js} +1 -1
  6. package/cjs/index-88dc9e09.js +1 -0
  7. package/cjs/index-94a30fd0.js +1 -0
  8. package/cjs/index.js +1 -1
  9. package/cjs/{multicamv2-4afd8915.js → multicamv2-833efcf1.js} +1 -1
  10. package/cjs/{multicamv2-aaaa65d6.js → multicamv2-8d52871f.js} +1 -1
  11. package/cjs/{nextEpisodeButton-d160dcfd.js → nextEpisodeButton-b98fc202.js} +1 -1
  12. package/cjs/{playlist-72ba84d5.js → playlist-ce7f9db5.js} +1 -1
  13. package/cjs/{series-6049ffcc.js → series-1ba5aa80.js} +1 -1
  14. package/cjs/{series-v2-8a4359ea.js → series-v2-66cc35c6.js} +1 -1
  15. package/cjs/{series-v2-ea10318d.js → series-v2-b1911450.js} +1 -1
  16. package/cjs/{settings-icon-27b60de6.js → settings-icon-7384b65d.js} +1 -1
  17. package/cjs/{skin-7a98d3fd.js → skin-207038f1.js} +1 -1
  18. package/cjs/skin-710efb6a.js +1 -0
  19. package/cjs/{skin-84eed465.js → skin-8fd50d98.js} +1 -1
  20. package/cjs/skin-ac9b0b26.js +1 -0
  21. package/cjs/{skin-021caaea.js → skin-b1e9a1d6.js} +1 -1
  22. package/cjs/{skin-43e130dc.js → skin-cd625772.js} +1 -1
  23. package/cjs/start-begin-btn-95c6cc92.js +1 -0
  24. package/cjs/{videoSelector-187f3529.js → videoSelector-481263de.js} +1 -1
  25. package/cjs/{videoSelector-9c3339e2.js → videoSelector-4cd10521.js} +1 -1
  26. package/cjs/{watch-live-btn-04bf383d.js → watch-live-btn-8a160941.js} +1 -1
  27. package/esm/{autoNextVideo-51072eff.js → autoNextVideo-0cba47e8.js} +1 -1
  28. package/esm/bundle.css +79 -29
  29. package/esm/{features-2d66d073.js → features-b17a311f.js} +1 -1
  30. package/esm/generic-e4833832.js +1 -0
  31. package/esm/{index-5863b4b8.js → index-20d3b872.js} +1 -1
  32. package/esm/index-7dec4239.js +1 -0
  33. package/esm/index-e1f939b0.js +1 -0
  34. package/esm/index.js +1 -1
  35. package/esm/{multicamv2-beef2152.js → multicamv2-716b15d0.js} +1 -1
  36. package/esm/{multicamv2-20406485.js → multicamv2-ea35068b.js} +1 -1
  37. package/esm/{nextEpisodeButton-ce9c073f.js → nextEpisodeButton-a918f043.js} +1 -1
  38. package/esm/{playlist-3fc8d123.js → playlist-ad9491f0.js} +1 -1
  39. package/esm/{series-59e62fbe.js → series-efca8869.js} +1 -1
  40. package/esm/{series-v2-ecbcd52a.js → series-v2-0f338773.js} +1 -1
  41. package/esm/{series-v2-0de0cb77.js → series-v2-38415907.js} +1 -1
  42. package/esm/{skin-59cd094a.js → skin-1d3bf1bb.js} +1 -1
  43. package/esm/{skin-757c1e70.js → skin-3fa3b400.js} +1 -1
  44. package/esm/{skin-93e0aec2.js → skin-6520acf0.js} +1 -1
  45. package/esm/{skin-7b1fe120.js → skin-c51a3958.js} +1 -1
  46. package/esm/skin-e55951c5.js +1 -0
  47. package/esm/skin-f2cb9f9e.js +1 -0
  48. package/esm/start-begin-btn-8120ecdd.js +1 -0
  49. package/esm/{videoSelector-6d99a9f5.js → videoSelector-64c721c9.js} +1 -1
  50. package/esm/{videoSelector-69c96a51.js → videoSelector-7c82db41.js} +1 -1
  51. package/esm/{watch-live-btn-2d5cd4d3.js → watch-live-btn-d4d27011.js} +1 -1
  52. package/package.json +1 -1
  53. package/cjs/generic-26d3fd75.js +0 -1
  54. package/cjs/index-1a9cf743.js +0 -1
  55. package/cjs/skin-32396be4.js +0 -1
  56. package/cjs/skin-a86f763d.js +0 -1
  57. package/cjs/start-begin-btn-35c37795.js +0 -1
  58. package/esm/apis/index.d.ts +0 -11
  59. package/esm/assets/icons.d.ts +0 -24
  60. package/esm/components/advertisement/advertisement.d.ts +0 -1
  61. package/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
  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-overlay/index.d.ts +0 -1
  65. package/esm/components/dvr-overlay/start-begin-btn.d.ts +0 -6
  66. package/esm/components/dvr-overlay/watch-live-btn.d.ts +0 -6
  67. package/esm/components/dvr-seekbar/index.d.ts +0 -14
  68. package/esm/components/multicam/multicam.d.ts +0 -18
  69. package/esm/components/multicam-v2/multicamv2.d.ts +0 -13
  70. package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
  71. package/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
  72. package/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
  73. package/esm/components/playlist-tray/playlist.d.ts +0 -15
  74. package/esm/components/quality-selector/index.d.ts +0 -1
  75. package/esm/components/resolution/resolution-v2.d.ts +0 -18
  76. package/esm/components/resolution/resolution.d.ts +0 -20
  77. package/esm/components/series/series.d.ts +0 -10
  78. package/esm/components/series-v2/helper.d.ts +0 -3
  79. package/esm/components/series-v2/series-v2.d.ts +0 -25
  80. package/esm/components/series-v2_TEMP/helper.d.ts +0 -1
  81. package/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
  82. package/esm/components/settings-icon/settings-icon.d.ts +0 -17
  83. package/esm/components/trickplay/helper.d.ts +0 -13
  84. package/esm/components/trickplay/index.d.ts +0 -1
  85. package/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
  86. package/esm/components/video-selector/videoSelector.d.ts +0 -18
  87. package/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
  88. package/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
  89. package/esm/contentHandler/content_types/epg.d.ts +0 -4
  90. package/esm/contentHandler/content_types/external.d.ts +0 -4
  91. package/esm/contentHandler/content_types/index.d.ts +0 -5
  92. package/esm/contentHandler/content_types/series.d.ts +0 -4
  93. package/esm/contentHandler/content_types/vod.d.ts +0 -4
  94. package/esm/contentHandler/firePlayer.d.ts +0 -4
  95. package/esm/core/captions.d.ts +0 -10
  96. package/esm/core/generic.d.ts +0 -48
  97. package/esm/core/player_instance.d.ts +0 -6
  98. package/esm/core/renditions.d.ts +0 -6
  99. package/esm/core/util.d.ts +0 -16
  100. package/esm/core/volume.d.ts +0 -2
  101. package/esm/dash/dashHandler.d.ts +0 -1
  102. package/esm/dash/sgai.d.ts +0 -9
  103. package/esm/features.d.ts +0 -32
  104. package/esm/generic-7fb8e9c5.js +0 -1
  105. package/esm/globalPlayerEvents.d.ts +0 -8
  106. package/esm/helpers/browser.d.ts +0 -2
  107. package/esm/helpers/currentVideoInfo.d.ts +0 -14
  108. package/esm/helpers/errorHandling.d.ts +0 -2
  109. package/esm/helpers/loader.d.ts +0 -2
  110. package/esm/helpers/localisation.d.ts +0 -2
  111. package/esm/helpers/scriptLoader.d.ts +0 -2
  112. package/esm/helpers/secondary-switching.d.ts +0 -1
  113. package/esm/helpers/skin.d.ts +0 -14
  114. package/esm/helpers/sourceRetriever.d.ts +0 -11
  115. package/esm/helpers/ssaiEventHandler.d.ts +0 -27
  116. package/esm/helpers/token.d.ts +0 -9
  117. package/esm/index-3b50e289.js +0 -1
  118. package/esm/index.d.ts +0 -42
  119. package/esm/plugins/chromecast.d.ts +0 -18
  120. package/esm/plugins/index.d.ts +0 -2
  121. package/esm/plugins/library.d.ts +0 -7
  122. package/esm/plugins/videojs-dash5.es.d.ts +0 -51
  123. package/esm/plugins/videojs_contrib_dash.d.ts +0 -51
  124. package/esm/skin/carousel/skin.d.ts +0 -1
  125. package/esm/skin/default/events.d.ts +0 -1
  126. package/esm/skin/default/skin.d.ts +0 -1
  127. package/esm/skin/defaultV2/events.d.ts +0 -1
  128. package/esm/skin/defaultV2/skin.d.ts +0 -1
  129. package/esm/skin/index.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/vl_one/events.d.ts +0 -1
  134. package/esm/skin/vl_one/skin.d.ts +0 -1
  135. package/esm/skin-0c5f06e9.js +0 -1
  136. package/esm/skin-6185e3d0.js +0 -1
  137. package/esm/start-begin-btn-63a71f73.js +0 -1
  138. package/esm/utilities/analytics.d.ts +0 -3
  139. package/esm/utilities/beacon.d.ts +0 -3
  140. package/esm/utilities/controlsColor.d.ts +0 -1
  141. package/esm/utilities/conviva.d.ts +0 -5
  142. package/esm/utilities/keyboardShortcuts.d.ts +0 -5
  143. package/esm/utilities/replaceMacros.d.ts +0 -1
@@ -1 +0,0 @@
1
- "use strict";require("video.js/dist/video-js.min.css");var e=require("./generic-26d3fd75.js"),n=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),o=require("@babel/runtime/regenerator"),r=require("video.js"),i=require("./util-db87d399.js"),l=require("./captions-bf891620.js"),a=require("./resolution-9c4872ec.js"),u=require("./skin-9e714900.js"),s=require("./player_instance-fcf6a8fb.js"),c=require("./localisation-56e0a999.js"),d=require("@babel/runtime/helpers/typeof"),v=require("@babel/runtime/helpers/toConsumableArray"),f=require("@babel/runtime/helpers/slicedToArray"),p=require("./icons-79591410.js"),m=function(e){return new Promise(function(n,t){if(g(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}})},g=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},y=function(e,n,t){var o=s.getPlayer(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var r=parseFloat(n)/100;o.volume(r),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},h=function(e){var n=s.getPlayer(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},b=function(){var n=t(o.mark(function n(t){var i,l,a,u,c;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l=s.getPlayer(null==t?void 0:t.playerId),null!=t&&null!==(i=t.series)&&void 0!==i&&i.enable||null==t||!t.chromecastReceiverId){n.next=22;break}return n.next=4,import("@silvermine/videojs-chromecast");case 4:return u=n.sent,n.prev=5,n.next=8,m("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(5),console.log("Error",n.t0);case 13:return n.prev=13,u.default(r),n.finish(13);case 16:(c=r.getTech("chromecast"))&&!c.prototype.seeking&&(c.prototype.seeking=function(){}),null!==(a=window)&&void 0!==a&&a.cast?null==l||l.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==l||l.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},n.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=t&&t.airplay&&"Safari"==e.detectBrowser()?null==l||l.airPlay({addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return n.stop()}},n,null,[[5,10,13,16]])}));return function(e){return n.apply(this,arguments)}}(),w=function(e,n){var t=s.getPlayer(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",function(n){var t,o,i,l,a,u=this.el(),s=r.dom.getPointerPosition(u,n).x;r.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var c=window.cast&&window.cast.framework&&window.cast.framework.CastSession,d=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(c),c&&"CONNECTED"===d){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),f=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=f*s,v.seek()}})};var k=function(){var e=t(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),m("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then(function(){}).catch(function(e){return console.log(e)})]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),S=function(){var e=t(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then(function(e){r.getPlugin("eme")||r.registerPlugin("eme",e.default)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=t(o.mark(function e(){var n;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(r),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=t(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then(function(){return require("./index-84cce26a.js")});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),O=function(){var e=t(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then(function(){return require("./videojs-dash5.es-0c89add5.js")});case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),P=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then(function(e){m("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then(function(){e.default(r)}).catch(function(e){console.log(e)})})},importAirplay:function(){import("@silvermine/videojs-airplay").then(function(e){e.default(r)})},loadAdsLibrary:k,loadEMELibrary:S,loadMuxPlugin:T,loadDvrSeekbar:I,loadContribDash:O});function E(e){return j.apply(this,arguments)}function j(){return(j=t(o.mark(function n(t){var r;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(null==t?void 0:t.airplay)||!1,n.next=3,k();case 3:r&&"Safari"==e.detectBrowser()&&Promise.resolve().then(function(){return P}).then(function(e){e.importAirplay()});case 4:case"end":return n.stop()}},n)}))).apply(this,arguments)}function C(e,n){return D.apply(this,arguments)}function D(){return(D=t(o.mark(function n(t,r){var i,l,a,u,s,c,d,v,f,p;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return d=(null==r?void 0:r.contentType)||"video",v=null==r||null===(i=r[d])||void 0===i?void 0:i.drmEnabled,null==r||null===(l=r[d])||void 0===l||null===(a=l.liveDetails)||void 0===a||a.isDvrEnabled,null==t||t.showPositiveSeekbar,f=(null==r||null===(u=r[d])||void 0===u||null===(s=u.streamingInfo)||void 0===s||null===(c=s.videoAssets)||void 0===c?void 0:c.dash)||null,n.prev=5,n.next=8,Promise.allSettled([v?"Safari"==e.detectBrowser()?S():"caliente"!=(null===(p=window)||void 0===p?void 0:p.siteName)?O():S():"Safari"!=e.detectBrowser()&&f?O():null,b(t)]);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(5),console.log("Error",n.t0);case 13:case"end":return n.stop()}},n,null,[[5,10]])}))).apply(this,arguments)}function x(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 A(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?x(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var L=new Set,R=null,N=function(n,t,o){var r,i,l,a,u,s,c,d={},v=(null==n?void 0:n.contentType)||"video";d["c3.cm.id"]=(null===(r=n[v])||void 0===r?void 0:r.id)||"Null",d["c3.cm.contentType"]=F(n),d[null==o||null===(i=o.Constants)||void 0===i?void 0:i.IS_LIVE]=!(null==n||!n.linearchannel),d[null==o||null===(l=o.Constants)||void 0===l?void 0:l.STREAM_URL]=t.currentSrc(),d[null==o||null===(a=o.Constants)||void 0===a?void 0:a.VIEWER_ID]="undefined"===e.getUserId()?"NULL":e.getUserId(),d["c3.cm.categoryType"]=_(n),d["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),d.DRMEnabled=(null===(u=n[v])||void 0===u?void 0:u.drmEnabled)||"None",d.DAIStream=null!==(s=n[v])&&void 0!==s&&null!==(c=s.gist)&&void 0!==c&&c.isSSAIEnabled?"YES":"NO",d[o.Constants.DEFAULT_RESOURCE]="AKAMAI",d["c3.cm.brand"]="NULL",d.CDVREnabled=U(n),d["c3.cm.genreList"]=M(n),d["c3.cm.genre"]=B(n),d["c3.cm.channel"]=V(n);var f=G(e.getCurrentSeries(),n);return d=A(A({},d),f)},B=function(e){var n,t,o,r=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[r])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},M=function(e){var n,t=(null==e?void 0:e.contentType)||"video";return((null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[]).map(function(e){return null==e?void 0:e.title}).join(", ")||"Null"},V=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video";return"video"===o?"VOD":(null==e||null===(n=e[o])||void 0===n||null===(t=n.channels[0])||void 0===t?void 0:t.title)||"NULL"},_=function(e){return(null==e?void 0:e.contentType)||"null"},U=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return r?"YES":"NO"},H=function(e,n){var t,o,r=(n||{}).epg;if(r&&null!=r&&r.enable&&null!=r&&r.programTitle)return r.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[i])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(l)},F=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var q,Q,G=function(n,t){var o,r,i,l,a,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!n||!t||null!=t&&t.linearchannel)return u;var s=e.getSeasonNumber(),c=e.getEpisodeNumber();return u["c3.cm.seriesName"]=(null==t||null===(o=t.video)||void 0===o||null===(r=o.series)||void 0===r?void 0:r.title)||"Null",u["c3.cm.seasonNumber"]=(null==s?void 0:s.toString())||"Null",u["c3.cm.showTitle"]=(null==n||null===(i=n[s-1])||void 0===i||null===(l=i.episodes)||void 0===l||null===(a=l[c-1])||void 0===a?void 0:a.title)||"Null",u["c3.cm.episodeNumber"]=(null==c?void 0:c.toString())||"Null",u},W=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},K=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},z=function(){var n=t(o.mark(function n(t,r){var i,l,a,u,c,d,v,f,p,m;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=(null==r?void 0:r.convivaConfig)||{},l=i.trackConvivaPlayerEvent,a=i.paymentHandler,u=i.tveProvider,c=i.enable,d=i.appName,v=(r||{}).token,c){n.next=4;break}return n.abrupt("return");case 4:if(f=s.getPlayer(t),"function"==typeof(p=l)){n.next=8;break}return n.abrupt("return");case 8:return n.next=10,p("getConvivaObject");case 10:if(m=n.sent){n.next=13;break}return n.abrupt("return");case 13:f.ready(function(){var e=f.tech(!0),n=!1;e.on("keysessioncreated",function(e){n=!0;var t=e.target;if(t&&t.keySystem){var o=W(t.keySystem);p("contentInfo",{DRMEnabled:o})}else p("contentInfo",{DRMEnabled:"None"})}),n||p("contentInfo",{DRMEnabled:"None"})}),f.on("loadstart",function(){var n,t;R&&R!==f.currentSrc()&&p("playbackEnded"),p("setPlayer",f),L.clear(),R=f.currentSrc();var o=K(f.currentType()),i=e.getCurrentVideo(),l=N(i,f,m);l[null==m||null===(n=m.Constants)||void 0===n?void 0:n.PLAYER_NAME]=d||"WEB",l[null==m||null===(t=m.Constants)||void 0===t?void 0:t.ASSET_NAME]=H(i,r),l.authToken=v||"NULL",l.streamType=o,l.D2CType=a||"NONE",l.subscriberType=u||(a?"D2C":"FREE"),l["c3.cm.affiliate"]=u||"NULL",J.setData(l),p("contentInfo",l)}),f.on("loadedmetadata",function(){var e,n=f.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),p("contentInfo",{screenResolution:e})}),f.on("play",function(){L.has(f.currentSrc())||(L.add(f.currentSrc()),p("playbackStarted",null))}),f.on("ended",function(){L.has(f.currentSrc())&&L.delete(f.currentSrc()),p("playbackEnded")}),f.on("ads-loader",function(e){e&&null!=e&&e.adsLoader&&p("initAdSensor",{player:f,adsLoader:null==e?void 0:e.adsLoader})}),f.on("dispose",function(){null==L||L.clear(),p("playbackEnded")});case 20:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}(),J=(q={},{setData:function(e){q=A(A({},q),e)},getData:function(){return q}}),X=function(e,n){var t=null==n?void 0:n.skin;"default"==t?Promise.resolve().then(function(){return require("./skin-32396be4.js")}).then(function(t){t.initialiseSkin(e,n)}):"carousel"==t?Promise.resolve().then(function(){return require("./skin-7a98d3fd.js")}).then(function(n){n.initaliseSkin(e)}):"defaultV2"==t?Promise.resolve().then(function(){return require("./skin-43e130dc.js")}).then(function(t){t.initialiseSkin(e,n)}):"multiplayer"==t?Promise.resolve().then(function(){return require("./skin-021caaea.js")}).then(function(t){t.initialiseSkin(e,n)}):"minimalist"==t?Promise.resolve().then(function(){return require("./skin-84eed465.js")}).then(function(t){t.initaliseSkin(e,n)}):"VL_ONE"==t&&Promise.resolve().then(function(){return require("./skin-a86f763d.js")}).then(function(t){t.initialiseSkin(e,n)})};function Y(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 $(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var Z=[],ee=0,ne=null;function te(t,o,r){var i,l,a,u,s,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==o||null===(i=o.watchHistory)||void 0===i||i.apiVersion;var d=null==o||null===(l=o.watchHistory)||void 0===l?void 0:l.profileId,v=Math.floor(t.currentTime()),f=Math.floor(t.duration());null==o||null===(a=o.watchHistory)||void 0===a||a.xapiKey;var p=(null==o||null===(u=o.video)||void 0===u?void 0:u.originalObjectId)||null,m=(null==o||null===(s=o.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,g=Math.floor(t.currentTime()),y=c?100:Math.floor(v/f*100),h={};m?function(t,o,r){var i=o?"watchhistory-data-".concat(o):"watchhistory-data-guest-".concat(r),l=oe(i),a=(new Date).getTime(),u=e.getCurrentVideo(),s=(null==u?void 0:u.video)||{},c=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce(function(e,t){return $($({},e),{},n({},t,s[t]))},{}),d=l.findIndex(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===Q});d<0?l.push($($({content:c},t),{},{addedDate:a,updateDate:a})):l[d]=$($($({},l[d]),t),{},{updateDate:a});localStorage.setItem("".concat(i),JSON.stringify(l))}(h={completed:c,watchedTime:g,watchedPercentage:y},d,o.siteOwner):(h=$($({videoId:Q,watchedTime:g,watchedPercentage:y,doneWatching:c,profileId:d},ne&&{seriesId:ne}),p&&{originalObjectId:p}),e.saveWatchHistory(h).then(function(e){}).catch(function(e){})),ee=v+r}function oe(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function re(e,n,t){var o=oe(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),r=[];return o&&Array.isArray(o)&&(r=o.filter(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n})),r}var ie=!1,le=function(n,t){var o,r,i=(null==n?void 0:n.contentType)||"video";if(((null==n||null===(o=n[i])||void 0===o||null===(r=o.streamingInfo)||void 0===r?void 0:r.secondaryVideoAssets)||null)&&!ie){var l=ae(n,"videoAssets","secondaryVideoAssets"),a=e.getSource(l,t);return a&&e.loadVideo(t,a),ie=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function ae(e,n,t){if(Array.isArray(e))return e.map(function(e){return ae(e,n,t)});if(null!==e&&"object"===d(e)){var o={};return Object.keys(e).forEach(function(r){r===n&&void 0!==e[t]?o[r]=e[t]:r===t&&void 0!==e[n]?o[r]=e[n]:o[r]=ae(e[r],n,t)}),o}return e}function ue(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 se(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)?se(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 se(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 ce(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 de(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ce(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var ve=function(n,t,o,r){var i,a,u,c,v=r.res,f=r.sres,p=s.getPlayer(n),m=(null==v?void 0:v.contentType)||"video",g=(null==v?void 0:v[m].drmEnabled)||!1,h=(null==v||null===(i=v[m])||void 0===i||null===(a=i.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1,b=(null==v||null===(u=v[m])||void 0===u||null===(c=u.liveDetails)||void 0===c?void 0:c.isDvrEnabled)||!1;e.setCurrentVideo(v),p&&(p.on("loadstart",function(){h?o.resolve({status:!0,msg:"Video Loaded",response:v}):o.resolve(de({status:!0,msg:"Player Initialised"},f?{seriesResponse:f,response:v}:{response:v}))}),p.on("loadeddata",function(){var o,r,i,a=l.getCaptions(n);if(null==a||a.map(function(e){return l.disableCaptions(n,e.id)}),b&&"Safari"===e.detectBrowser())try{var u;null==p||null===(u=p.liveTracker)||void 0===u||u.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==p||!p.muted())&&y(n,sessionStorage.getItem("volume")||"100");var c=e.getCurrentVideo();if(e.clearError(),null!=t&&t.watchHistory&&null!=t&&null!==(o=t.watchHistory)&&void 0!==o&&o.enable&&(!t.isAnonymousUser||null!=t&&null!==(r=t.watchHistory)&&void 0!==r&&r.saveOffline)){var d,f,m=de(de({},t),v);!function(e,n,t){var o,r,i;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(ne=null==n||null===(r=n.series)||void 0===r?void 0:r.id),Z=[],ee=0,Q=t;var l=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.interval)||30,a=s.getPlayer(e);a&&(a.on("timeupdate",function(){if(!a.seeking()){var e=Math.floor(a.currentTime());Z.includes(ee)||(e==ee?(Z.push(e),te(a,n,l)):e>ee&&(ee=e+l))}}),a.one("ended",function(){te(a,n,l,!0)}))}(n,m,null==c||null===(d=c.video)||void 0===d||null===(f=d.gist)||void 0===f?void 0:f.id)}if(null!=t&&null!==(i=t.analytics)&&void 0!==i&&i.muxKey&&null!=p&&p.mux){var g,h,w,k,S,T,I=(null===(g=e.getCurrentVideo())||void 0===g?void 0:g.video)||(null==v?void 0:v.video),O=null==I?void 0:I.gist,P={env_key:null==t||null===(h=t.analytics)||void 0===h?void 0:h.muxKey,player_name:"vl-web-player",player_version:null===(w=window)||void 0===w?void 0:w.vl_player_version,video_id:null==O?void 0:O.id,video_title:null==O?void 0:O.title,video_series:null==I||null===(k=I.series)||void 0===k?void 0:k.title,video_stream_type:null!=I&&null!==(S=I.streamingInfo)&&void 0!==S&&S.isLiveStream?"live":"video",viewer_user_id:null==t||null===(T=t.analytics)||void 0===T?void 0:T.userId};p.mux({debug:!1,data:P})}}),p.textTracks().on("change",function(e){var n=this.tracks_.filter(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0})[0];p.trigger("subtitlechanged",n)}),p.on("subtitlechanged",function(e,n){var t,o,r,i,l,a,u,s,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(r=o.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(u=a.cast)||void 0===u||null===(s=u.framework)||void 0===s||null===(c=s.CastContext)||void 0===c||null===(d=c.getInstance())||void 0===d?void 0:d.getCurrentSession();if(v&&"CONNECTED"===f){var m,g=p.getMediaSession(),y=g.media.tracks.filter(function(e){return"TEXT"==e.type});m=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}}),p.tech_.on("retryplaylist",function(){h&&le(v,n)}),p.on("error",function(){var t,r;(console.log("ERROR",p.error(),p.error().code),4===p.error().code&&h)?le(v,n):(e.handleError(n,(null==p||null===(t=p.error())||void 0===t?void 0:t.message)||"Some error occured"),o.reject({status:!1,msg:(null==p||null===(r=p.error())||void 0===r?void 0:r.message)||"Some error occured",response:v}))}),p.one("play",function(){var n,o,r,i,l;if(null===(n=window)||void 0===n||null===(o=n.app_data)||void 0===o||null===(r=o.appcmsMain)||void 0===r||null===(i=r.adsConfig)||void 0===i||!i.vodAdClientSideTracking){if(null!=t&&null!==(l=t.series)&&void 0!==l&&l.enable){var a,u,s,c=null===(a=e.getCurrentVideo())||void 0===a||null===(u=a.video)||void 0===u||null===(s=u.gist)||void 0===s?void 0:s.id,d=e.getSeriesWatchMap(),v=(null==d?void 0:d.get(c))||{t:0,p:0},f=v.t,m=v.p;f&&m<95&&setTimeout(function(){p.currentTime(f)},0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout(function(){p.currentTime(null==t?void 0:t.watchHistoryResumeTime)},0);if(null!=p&&p.dvrSeekbar)try{p.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}}),p.on("volumechange",function(){var e=100*p.volume().toFixed(2);p.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}),p.on("chromecastDisconnected",function(){if(h){p.currentSource();for(var e=p.textTracks(),n=e.length-1;n>=0;n--)p.removeRemoteTextTrack(e[n])}}),p.one("loadeddata",function(){var n,t=(null==p||null===(n=p.audioTracks())||void 0===n?void 0:n.tracks_)||null;if(t)if(t.sort(function(e,n){var t=(e.language||e.language||"").toUpperCase(),o=(n.language||n.label||"").toUpperCase();return t<o?-1:t>o?1:0}),"object"==d(p.dash)){var o,r,i,l=null==p||null===(o=p.dash)||void 0===o||null===(r=o.mediaPlayer)||void 0===r?void 0:r.getTracksFor("audio"),a=null==l?void 0:l.find(function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")}),u=ue(t);try{for(u.s();!(i=u.n()).done;){var s=i.value;if(a&&(null==s?void 0:s.id)=="dash-audio-".concat(a.index)){s.enabled=!0;break}}}catch(e){u.e(e)}finally{u.f()}}else{var c,v=ue(t);try{for(v.s();!(c=v.n()).done;){var f,m,y,h=c.value;if(("Chrome"==e.detectBrowser()||"Edge"==e.detectBrowser()&&(null!==(f=navigator)&&void 0!==f&&null!==(m=f.userAgent)&&void 0!==m&&m.includes("Macintosh")||!g))&&null!=h&&null!==(y=h.label)&&void 0!==y&&y.includes("5.1"))p.audioTracks().removeTrack(h);else{if("main"==h.kind){h.enabled=!0;break}h.enabled=!1}}}catch(e){v.e(e)}finally{v.f()}}}))};var fe,pe=(fe=!0,{enable:function(){fe=!0},disable:function(){fe=!1},get enabled(){return fe}}),me="ssai-breakStart",ge="ssai-adImpression",ye="ssai-firstQuartile",he="ssai-midpoint",be="ssai-thirdQuartile",we="ssai-complete",ke="ssai-breakEnd",Se={breakStart:me,impression:ge,firstQuartile:ye,midpoint:he,thirdQuartile:be,complete:we,breakEnd:ke};function Te(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=s.getPlayer(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,r=Se[o];r&&t.trigger(r,n)}function Ie(e){var n=s.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(me,e)},adImpression:function(e){return t(ge,e)},adFirstQuartile:function(e){return t(ye,e)},adMidpoint:function(e){return t(he,e)},adThirdQuartile:function(e){return t(be,e)},adComplete:function(e){return t(we,e)},adBreakEnd:function(e){return t(ke,e)}}}function Oe(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 Pe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Oe(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function Ee(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 je(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)?je(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 je(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 Ce,De,xe=(Ce="",{set:function(e){e&&(Ce=e)},get:function(){return Ce}}),Ae=(De=null,{set:function(e){De=e},get position(){return De}});function Le(e,n){return Re.apply(this,arguments)}function Re(){return Re=t(o.mark(function n(t,r){var i,l,a,u,c,d,v,p,m,g,y,h,b,w;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return s.getPlayer(t),i=e.getSource(r,t),l=i.src,a=l.replace("/dash/","/session/").replace("master","session"),a=e.replaceMacros(a,t,r),u=Ne(a),c=f(u,2),d=c[0],v=c[1],a=new URL(a.split("?")[0]),Object.keys(v).length>0&&Object.entries(v).forEach(function(e){var n=f(e,2),t=n[0],o=n[1];a.searchParams.set(t,o)}),n.prev=8,n.next=11,fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:Pe({},d)})});case 11:return p=n.sent,n.next=14,p.json();case 14:return m=n.sent,g="https://"+new URL(a).hostname,y=m.trackingUrl,h=m.manifestUrl,b=g+y,w=g+h,xe.set(b),console.log("%c TRACKING URL","background: #bdf369; color: #000",b),i.src=w,n.abrupt("return",i);case 26:return n.prev=26,n.t0=n.catch(8),n.abrupt("return",i);case 29:case"end":return n.stop()}},n,null,[[8,26]])})),Re.apply(this,arguments)}function Ne(e){var n={},t=e.split("?")[1];if(!t)return[{},{}];var o,r=Ee(t.split("&"));try{for(r.s();!(o=r.n()).done;){var i=o.value.split("="),l=f(i,2),a=l[0],u=l[1];n[decodeURIComponent(a)]=decodeURIComponent(u||"")}}catch(e){r.e(e)}finally{r.f()}for(var s={},c={},d=0,v=Object.entries(n);d<v.length;d++){var p=f(v[d],2),m=p[0],g=p[1];if(m.startsWith("ads."))s[m.replace(/^ads\./,"")]=g;else c[m]=g}return[s,c]}var Be,Me=(Be=[],{setQueuePoints:function(e){console.log("%c Setting SGAI Queue Points ","background: #bdf369; color: #000",e),Be=Array.isArray(e)?v(e):Be},getQueuePoints:function(){return console.log("%c Getting SGAI Queue Points ","background: #bdf369; color: #000",Be),v(Be)}});function Ve(){return Ve=t(o.mark(function n(r,i){var l,a,c,d,f,p,m,g,y,h,b,w,k,S,T,I,O;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:O=function(e,n,t,o,i,l){var a=s.getPlayer(r);if(!a.seeking()){n.startTimeInSeconds,n.durationInSeconds,Math.floor(a.currentTime());var u,c=Ee(t);try{var d=function(){var t,s,c,d=u.value,v=d.eventType,f=d.beaconUrls,p=d.startTimeInSeconds,m=d.startTime,g=d.durationInSeconds,y=p||0,h=f,b=(null===(t=window)||void 0===t||null===(s=t.customData)||void 0===s||null===(c=s.ads)||void 0===c?void 0:c.adEventHandler)||null,w="".concat(y,"_").concat(v),k=T.get("pod-".concat(i))||[];if(console.warn(e,y,"map:",v,"condition1:",e>=y,"map:",T),e>=y&&!k.includes(w)){k.push(w),T.set("pod-".concat(i),k);try{I(v,n,h,a)}catch(e){console.error("Error when calling triggerAdBeacon:",e,v,n)}if("breakEnd"==v){var S=Ae.position;Ae.set(null),setTimeout(function(){null!=S&&(a.currentTime(S),l())},500)}if("function"==typeof b)try{var O,P={eventType:v,startTimeInSeconds:p,startTime:m,durationInSeconds:g,ad:null==n||null===(O=n.ads)||void 0===O?void 0:O[o],adIndex:o};b({adsData:P}),Te(r,P)}catch(e){console.error("Error when calling ads callback:",e)}}};for(c.s();!(u=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}}},I=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)})})},S=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},Ae.set(i),f=xe.get(),(p=s.getPlayer(r)).one("loadeddata",function(){f&&k(f)}),m=new Map,g=new Map,y=-1,h=(null===(l=document)||void 0===l||null===(a=l.getElementsByClassName("tvProviderImage"))||void 0===a?void 0:a[0])||null,b=(null==p||null===(c=p.controlBar)||void 0===c?void 0:c.getChild("videoSelector"))||null,w=(null==p||null===(d=p.controlBar)||void 0===d?void 0:d.getChild("seriesV2"))||null,k=function(){var n=t(o.mark(function n(t){var l,a,c,d,f,p,k,T,I,P,E,j,C,D,x,A,L;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return C=function(e){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",C),0===e.button&&P()},j=function(e){},E=function(){var e,n=k.currentTime(),t=null,o=Ee(p);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,m.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(){k.currentTime(t+2.2)},100))},P=function(){var e,n=k.currentTime(),t=null,o=Ee(p);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,l=r.durationInSeconds,a=r.ads,u=Math.floor(i+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>u||n>i)&&!m.has(i)||n>=i&&n<=u)&&(t=i,m.set(i,!0),g.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){k.currentTime(t+.4)},100))},a=!1,n.next=7,fetch(t);case 7:return c=n.sent,n.next=10,c.json();case 10:d=n.sent,console.log("%c TRACKING URL RESPONSE ","background: #d9e7ff; color: #000",d),f=d.avails,p=[],k=s.getPlayer(r),T=k.controlBar.progressControl,I=T.seekBar.el(),f.map(function(e,n){var t,o,r;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(a=!0),p.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:(null==e||null===(o=e.adBreakTrackingEvents)||void 0===o||null===(r=o.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===r?void 0:r[0])||[]})}),!a&&i&&(k.currentTime(i),E()),null!=p&&p.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",p),window.adsQueueList=p),console.log(p,"data"),p.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=k.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",I.appendChild(i)}}),k.on("timeupdate",u.throttle(function(){var e=k.currentTime();if(e!==y){y=e;for(var n=!1,t=function(){var t=p[o],r=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,a=r+i;if(e>=r-1.2&&e<=a+1.2){e>=r&&e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&m.set(r,!0),pe.disable(),h&&h.classList.add("vjs-hidden"),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),w&&(w.el().style.pointerEvents="none",w.el().classList.add("vjs-hidden")),T.el().style.visibility="hidden";for(var u=e-r,s=0,c=0,d=0;d<l.length;d++){var f,y=null==l||null===(f=l[d])||void 0===f?void 0:f.durationInSeconds;if(u<s+y){c=d;break}s+=y}l[c];var k=Math.max(0,i-u),I=Math.round(k);D.style.display="block",L.textContent="".concat(c+1," of ").concat(l.length," • ").concat(S(I));var P=[];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)});P.push.apply(P,v(n))}),Array.isArray(l)&&0==(null==l?void 0:l.length)&&P.push(null==t?void 0:t.podSlotImpressionBeacon),O(e,t,P,c,o,E),"break"}g.delete(r)},o=0;o<p.length;o++){if("break"===t())break}n||(D.style.display="none",T.el().style.visibility="visible",b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),w&&(w.el().style.pointerEvents="auto",w.el().classList.remove("vjs-hidden")),h&&h.classList.remove("vjs-hidden"),pe.enable())}},1e3)),null===(l=document)||void 0===l||l.addEventListener("keydown",function(n){pe.enabled&&"ArrowRight"==n.key&&(P(),e.skip(r,10),n.stopPropagation())}),T.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",j),document.addEventListener("pointerup",C))}),(D=document.createElement("div")).className="ssai-ad-container",(x=document.createElement("div")).className="sponsored-adbox",(A=document.createElement("div")).className="sponsored-text",A.textContent="Sponsored Ad",x.append(A),(L=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",D.append(x),D.append(L),k.el().appendChild(D);case 41:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}(),T=new Map;case 16:case"end":return n.stop()}},n)})),Ve.apply(this,arguments)}function _e(e,n){var t=n.dvrConfig,o=n.videoId,r=n.userId,i=(null==t?void 0:t.buttonConfig)||{},l=i.watchLive,a=i.resume,u=i.startFromBegining,c=s.getPlayer(e),d=(null==t?void 0:t.playLive)||!1,v=(null==t?void 0:t.playFromBegining)||!1,f=document.createElement("div");f.className="vjs-dvr-btn-overlay",c.on("loadeddata",function(){if(v&&c.one("canplay",function(){c&&c.seekable()&&(c.currentTime(c.seekable().start(0)),c.play())}),d&&c.one("canplay",function(){c&&c.seekable()&&(c.currentTime(c.seekable().end(0)),c.play())}),!d&&!v){var e=!!Ue(o,r);c.el().appendChild(f),f.innerHTML=function(e,n){var t=(null==e?void 0:e.buttonConfig)||{},o=t.watchLive,r=t.resume,i=t.startFromBegining,l='<button id="watch-live-btn">'.concat(p.watchLiveIcon2()," ").concat((null==o?void 0:o.text)||"Watch Live","</button>"),a='<button id="resume-btn">'.concat(p.watchLiveIcon2()," ").concat((null==r?void 0:r.text)||"Resume","</button>"),u='<button id="watch-begining-btn">\n '.concat(p.startLiveIcon()," ").concat((null==i?void 0:i.text)||"Start From Begining","\n </button>"),s=n?a:l;return'<div class="dvr-button">'.concat(s," ").concat(u,"</div>")}(t,e);var n=document.getElementById("watch-live-btn");n&&(Fe(n,l),n.addEventListener("click",function(){c&&c.seekable()&&c.currentTime(c.seekable().end(0)),He(c,f)}));var i=document.getElementById("resume-btn");i&&(Fe(i,a),i.addEventListener("click",function(){if(c&&c.seekable()){var e=Ue(o,r),n=Math.min(e,c.seekable().end(0));c.currentTime(n)}He(c,f)}));var s=document.getElementById("watch-begining-btn");s&&(Fe(s,u),s.addEventListener("click",function(){var e=c.seekable();if(e&&e.length>0){var n=e.start(0);c.currentTime(n),He(c,f)}}))}});var m=c.currentTime(),g=!1;c.on("seeking",function(){g=!0}),c.on("seeked",function(){g=!1,m=c.currentTime()}),c.on("timeupdate",function(){if(!g){var e=c.currentTime();if(e-m>=30&&(!function(e,n,t){sessionStorage.setItem("lastWatchedPosition-".concat(e,"-").concat(n),t.toFixed(2))}(o,r,e),m=e),c.liveTracker){var n,t,i,l,a=c.liveTracker.atLiveEdge(),u=c.controlBar.getChild("SeekToLive");if(a)null==u||u.show(),null==c||null===(n=c.watchLiveButton)||void 0===n||n.hide(),null==c||null===(t=c.startFromBeginningButton)||void 0===t||t.show();else null==u||u.hide(),null==c||null===(i=c.watchLiveButton)||void 0===i||i.show(),null==c||null===(l=c.startFromBeginningButton)||void 0===l||l.hide()}}})}function Ue(e,n){return sessionStorage.getItem("lastWatchedPosition-".concat(e,"-").concat(n))||0}function He(e,n){e.play(),e.bigPlayButton.show(),e.controlBar.show(),n.style.display="none"}function Fe(e,n){e&&(e.style.color="".concat((null==n?void 0:n.textColor)||"#000"),e.style.backgroundColor="".concat((null==n?void 0:n.backGroundColor)||"#DCF95B"))}function qe(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 Qe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qe(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var Ge=function(i,a,c,d){var v,f,p,m,g,y,h,b,k,S,T,I,O,P,E,j,D,x,A,L,R,N,B,M,V,_,U,H,F,q,Q,G,W,K,Y,$,Z,ee,ne=a.res,te=void 0===ne?null:ne,oe=a.sres,re=void 0===oe?null:oe,ie=null!=c&&c.chromecastReceiverId?["chromecast","html5"]:["html5"],le=(null===(v=te)||void 0===v?void 0:v.contentType)||"video",ae=u.impolicy16x9(null===(f=te)||void 0===f||null===(p=f[le])||void 0===p||null===(m=p.gist)||void 0===m?void 0:m.videoImageUrl)||u.impolicy16x9(null===(g=te)||void 0===g||null===(y=g[le])||void 0===y||null===(h=y.gist)||void 0===h||null===(b=h.imageGist)||void 0===b?void 0:b.r16x9),ue=(null===(k=te)||void 0===k||null===(S=k[le])||void 0===S||null===(T=S.liveDetails)||void 0===T?void 0:T.isDvrEnabled)||!1,se=(null===(I=te)||void 0===I||null===(O=I[le])||void 0===O||null===(P=O.streamingInfo)||void 0===P?void 0:P.isLiveStream)||!1,ce=(null===(E=te)||void 0===E||null===(j=E.ads)||void 0===j||null===(D=j.preRoll)||void 0===D||null===(x=D.adTags)||void 0===x||null===(A=x.web)||void 0===A?void 0:A.active)&&(null===(L=te)||void 0===L||null===(R=L.ads)||void 0===R||null===(N=R.preRoll)||void 0===N||null===(B=N.adTags)||void 0===B||null===(M=B.web)||void 0===M?void 0:M.url),de=(null===(V=te=Qe(Qe({},te),{},{audioAssetSource:null==c?void 0:c.audioAssetSource}))||void 0===V||null===(_=V[le])||void 0===_?void 0:_.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(U=window)||void 0===U||null===(H=U.app_data)||void 0===H||null===(F=H.appcmsMain)||void 0===F||null===(q=F.adsConfig)||void 0===q?void 0:q.vodAdSticherProvider)||!1,fe=(null==c?void 0:c.latency)||6,pe=(null==c?void 0:c.skin_settings)||{},me=(null==c?void 0:c.dvrConfig)||{enable:!1},ge=(ee={enableSmoothSeeking:!0,controls:0!=(null==c?void 0:c.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==c?void 0:c.muted)||!1,autoplay:(null==c?void 0:c.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:(null==pe?void 0:pe.pictureInPictureToggle)||!1},playbackRates:null!=pe&&pe.playbackRates?[.5,1,1.5,2]:[],muteToggle:"multiplayer"==c.skin,liveui:ue},n(ee,"autoplay",null==c?void 0:c.autoplay),n(ee,"normalizeAutoplay",(null==c?void 0:c.autoplay)&&!ce),n(ee,"loop",(null==c?void 0:c.loop)||!1),n(ee,"audioPosterMode",null==c?void 0:c.audioPosterMode),n(ee,"html5",Qe(Qe({dash:Qe(Qe(Qe({},!r.browser.IS_SAFARI&&{useTTML:!0}),(null==c?void 0:c.debugConfig)&&(null==c||null===(Q=c.debugConfig)||void 0===Q?void 0:Q.enable)&&{debug:!0,logLevel:null!=c&&null!==(G=c.debugConfig)&&void 0!==G&&G.logLevel?null==c||null===(W=c.debugConfig)||void 0===W?void 0:W.logLevel:"DEBUG"}),{},{updateSettings:{streaming:{delay:{liveDelay:fe},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:{enableStallFix:!0,stallSeek:3},abr:{autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:Qe(Qe({liveRangeSafeTimeDelta:fe,useDevicePixelRatio:!0,experimentalLLHLS:(null==c?void 0:c.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==c||null===(K=c.customData)||void 0===K?void 0:K.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:null===(Y=null==c?void 0:c.enableLowInitialPlaylist)||void 0===Y||Y}),debug:!0,nativeTextTracks:"Safari"==e.detectBrowser()},0==(null==c||null===($=c.customData)||void 0===$?void 0:$.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==c||null===(Z=c.customData)||void 0===Z?void 0:Z.nativeVideoTracks)&&{nativeVideoTracks:!1})),n(ee,"poster",ae),n(ee,"techOrder",ie),n(ee,"chromecast",{requestCustomDataFn:function(e){var n,t,o=s.getPlayer(i),r=((null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_).filter(function(e){return"captions"==e.kind||"subtitles"==e.kind}),l=function(e,n,t){var o,r,i,l,a,u,s,c,d,v,f=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[f]&&null!=e&&e[f].drmEnabled){var m,g,y,h,b,w,k,S;p.isDrmEnabled=!0;var T=(null==n||null===(m=n.keySystems)||void 0===m?void 0:m["com.widevine.alpha"])||null,I=(null==T?void 0:T.url)||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(y=g[0])||void 0===y||null===(h=y.options)||void 0===h?void 0:h.serverURL);p.licenseUrl=I;var O=(null==T?void 0:T.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(b=n.keySystemOptions)||void 0===b||null===(w=b[0])||void 0===w||null===(k=w.options)||void 0===k||null===(S=k.httpRequestHeaders)||void 0===S?void 0:S["X-AxDRM-Message"]);p.licenseToken=O}var P=(null==e||null===(o=e[f])||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.contentType)||"VIDEO";p.contentType=P;var E=null==e||null===(i=e[f])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.runtime;p.duration=E;var j=null==e||null===(a=e[f])||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.title;p.mediaTitle=j;var C=null==e||null===(s=e[f])||void 0===s||null===(c=s.gist)||void 0===c?void 0:c.videoImageUrl;return p.mediaImage=C,p.subTitles=t,p.DVR=(null==e||null===(d=e[f])||void 0===d||null===(v=d.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(te,e,r);return Qe(Qe({},l),{},{convivaMetaData:Qe({customerKey:(null==c||null===(n=c.convivaConfig)||void 0===n?void 0:n.customerKey)||null,debug:(null==c||null===(t=c.convivaConfig)||void 0===t?void 0:t.debug)||!1},J.getData())})},modifyLoadRequestFn:function(e){var n,t,o,r,l,a=s.getPlayer(i),u=(null==a?void 0:a.currentSource())||{};!(null===(n=te)||void 0===n||null===(t=n[le])||void 0===t||null===(o=t.streamingInfo)||void 0===o||null===(r=o.videoAssets)||void 0===r?void 0:r.is4K)&&1||null!=u&&u.src&&null!=u&&null!==(l=u.src)&&void 0!==l&&l.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),ee);if(!r.getPlayers()[i]){r.log.level("debug");var ye=r(i,ge,function(){var n=t(o.mark(function n(){var t,a,u,s,v,f,p,m,g,y,h,b,k,S,T,I,O,P,E,j;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(ye),console.log(r.VERSION),console.log(r.getPlugins()),n.next=5,C(c,te);case 5:if(b=null===(t=te)||void 0===t||null===(a=t[le])||void 0===a||null===(u=a.liveDetails)||void 0===u?void 0:u.startOverTime,se&&d.resolve(Qe({status:!0,msg:"Player Initialised"},re?{seriesResponse:re,response:te}:{response:te})),e.inititateBeacon(i,null==c?void 0:c.analyticsCb),z(i,c),/Android/i.test(navigator.userAgent)&&(r.options.vhs.overrideNative=!0),ue&&w(i,b),null!=me&&me.enable&&ue&&_e(i,c),!ce||null!=c&&null!==(s=c.customData)&&void 0!==s&&s.disableAds||e.initialiseAdvertisement(i,ce,te),k=e.getSource(te,i),console.log(k),null!=c&&c.nearestClusterUrl&&(k=e.getUpdatedClusterSource(k,c.nearestClusterUrl)),!de){n.next=20;break}return n.next=19,Le(i,te);case 19:k=n.sent;case 20:k?e.loadVideo(i,k):(d.reject({status:!1,msg:"Incompatible / Missing Source",response:te}),e.handleError(i,"Incompatible / Missing Source")),((null===(v=te)||void 0===v||null===(f=v[le])||void 0===f||null===(p=f.contentDetails)||void 0===p||null===(m=p.closedCaptions)||void 0===m?void 0:m.length)>0||(null===(g=te)||void 0===g||null===(y=g[le])||void 0===y||null===(h=y.closedCaptions)||void 0===h?void 0:h.length)>0)&&(j=(null===(T=te)||void 0===T||null===(I=T[le])||void 0===I||null===(O=I.contentDetails)||void 0===O?void 0:O.closedCaptions)||(null===(P=te)||void 0===P||null===(E=P[le])||void 0===E?void 0:E.closedCaptions),S=j.filter(function(e){return"VTT"===e.format}),l.addCaptions(i,S)),null!=c&&c.disableControls?e.disableControls(i):X(i,Qe(Qe(Qe({},c),ge),{},{liveVideo:se,isDvrEnabled:ue,res:te,sres:re})),ve(i,Qe(Qe(Qe({},c),ge),{},{liveVideo:se}),d,{res:te,sres:re});case 24:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}())}},We={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"};function Ke(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 ze(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ke(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var Je,Xe=function(e,n){var t=n.resolve,o=n.reject,r=null==e?void 0:e.playerId,i=Ye(e);Ge(r,{res:i},e,{resolve:t,reject:o})},Ye=function(n){var t,o,r,i,l,a,u,s,c=null==n?void 0:n.streamingInfo,d=null==n||null===(t=n.streamingInfo)||void 0===t?void 0:t.videoAssets,f=(null==n||null===(o=n.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,p=(null==n||null===(r=n.streamingInfo)||void 0===r||null===(i=r.ads)||void 0===i?void 0:i.url)||null,m=(null==n||null===(l=n.streamingInfo)||void 0===l?void 0:l.posterUrl)||null,g=(null==n||null===(a=n.streamingInfo)||void 0===a?void 0:a.subtitles)||[],y=(null==n||null===(u=n.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.drmProvider)||null,h=null==n?void 0:n.token,b=e.getDecodedToken(h),w=null==b?void 0:b.site;return ze(ze({id:null==We?void 0:We[w]},!f&&{directPlaybackUrl:null==d?void 0:d.url}),{},{video:{drmEnabled:f,streamingInfo:{videoAssets:ze(ze({},y&&{drmProvider:y}),{},{widevine:null==d?void 0:d.widevine,fairPlay:null==d?void 0:d.fairPlay,playReady:null==d?void 0:d.playReady})},liveDetails:{isDvrEnabled:null==c?void 0:c.isDvrEnabled},gist:ze({},m&&{videoImageUrl:m}),contentDetails:ze({},(null==g?void 0:g.length)>0&&{closedCaptions:v(g)})},ads:{preRoll:{adTags:{web:ze(ze({},p&&{active:!0}),p&&{url:p})}}}})};function $e(e,n){return Ze.apply(this,arguments)}function Ze(){return(Ze=t(o.mark(function n(t,r){var i,l,a,u,s,c;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.resolve,l=r.reject,a=null==t?void 0:t.videoId,u=null==t?void 0:t.playerId,s=!(null==t||!t.anonymousId),n.next=6,e.getToken();case 6:c=n.sent,e.getVideoDetails(a,c).then(function(n){var o,r,d,v;window.contentType=null==n||null===(o=n.data)||void 0===o||null===(r=o.video)||void 0===r||null===(d=r.gist)||void 0===d?void 0:d.contentType,e.setCurrentVideo(null==n?void 0:n.data);var f,p=null==n?void 0:n.data;if(null!=t&&t.watchHistory&&null!=t&&null!==(v=t.watchHistory)&&void 0!==v&&v.enable&&!s)if((null===(f=t.watchHistory)||void 0===f?void 0:f.saveOffline)||!1){var m,g,y,h=re((null===(m=t.watchHistory)||void 0===m?void 0:m.profileId)||"",a,null==t?void 0:t.siteOwner);if(h&&h.length)t.watchHistoryResumeTime=(null===(g=h[0])||void 0===g?void 0:g.watchedTime)||null,t.watchedPercentage=(null===(y=h[0])||void 0===y?void 0:y.watchedPercentage)||null;p.contentType="video",Ge(u,{res:p},t,{resolve:i,reject:l})}else e.getVideoInfo(a,c).then(function(e){var n,o,r,i,l,a;null!==(n=window)&&void 0!==n&&null!==(o=n.watchHistory)&&void 0!==o&&o.cb&&(null===(r=window)||void 0===r||null===(i=r.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),t.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,t.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"}).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))}).finally(function(){Ge(u,{res:p},t,{resolve:i,reject:l})});else Ge(u,{res:p},t,{resolve:i,reject:l})}).catch(function(n){e.initiateErrorHandling(n,u,l,a)});case 8:case"end":return n.stop()}},n)}))).apply(this,arguments)}function en(e,n){return nn.apply(this,arguments)}function nn(){return(nn=t(o.mark(function n(t,r){var i,l,a,u,s;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.resolve,l=r.reject,n.next=3,e.getToken();case 3:a=n.sent,u=null==t?void 0:t.playerId,s=null==t?void 0:t.epg,e.getLinearChannelDetails(s,a).then(function(e){var n=null==e?void 0:e.data;n.contentType="linearchannel",n.channelId=null==s?void 0:s.channelId,Ge(u,{res:n},t,{resolve:i,reject:l})}).catch(function(n){e.initiateErrorHandling(n,u,l,videoId)});case 7:case"end":return n.stop()}},n)}))).apply(this,arguments)}function tn(e,n){return on.apply(this,arguments)}function on(){return(on=t(o.mark(function n(t,r){var i,l,a,u,s,c,d;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=r.resolve,a=r.reject,n.next=3,e.getToken();case 3:u=n.sent,s=null==t?void 0:t.playerId,c=sessionStorage.getItem("season-idx")||0,e.seasonIdxManager.set(parseInt(c)),d=null==t||null===(i=t.series)||void 0===i?void 0:i.id,e.getSeriesDetails(d,u).then(function(n){var o,r,i,c=n.data,v=n.data.seasons;e.setCurrentSeries(v);var f=videoId||(null==v||null===(o=v[0])||void 0===o||null===(r=o.episodes)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.id);e.createSeriesWatchMap(d,u),e.getVideoDetails(f,u).then(function(n){var o,r,i;window.contentType=null==n||null===(o=n.data)||void 0===o||null===(r=o.video)||void 0===r||null===(i=r.gist)||void 0===i?void 0:i.contentType,e.setCurrentVideo(n.data),Ge(s,{res:null==n?void 0:n.data,sres:c},t,{resolve:l,reject:a})}).catch(function(n){e.initiateErrorHandling(n,s,a,videoId)})}).catch(function(n){e.initiateErrorHandling(n,s,a)});case 9:case"end":return n.stop()}},n)}))).apply(this,arguments)}function rn(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 ln(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rn(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}exports.VLPlayerCore=function(){return{loadVideoInstantly:e.loadVideoInstantly,onTimeUpdate:i.onTimeUpdate,getVideoDuration:i.getVideoDuration,onVideoEnded:i.onVideoEnded,init:function(n){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var r=t(o.mark(function t(r,i){var l,a,s,d,v,f,p,g,y,h,b,w,k,S,T,I,O,P,j,C,D,x,A;return o.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isPlayerInitialised(null==n?void 0:n.playerId)){t.next=2;break}return t.abrupt("return");case 2:if(b=(null==n?void 0:n.videoSourceUrl)||!1,w=null==n?void 0:n.asat,k=(null==n||null===(l=n.epg)||void 0===l?void 0:l.enable)||!1,S=null==n?void 0:n.videoId,T=(null==n||null===(a=n.series)||void 0===a?void 0:a.enable)||!1,I=(null==n?void 0:n.streamingInfo)||!1,window.videoId=S,O=null==n?void 0:n.token,!e.token_authentication_enabled(n)){t.next=17;break}if(sessionStorage.setItem("vlp_token",O),e.refreshTokenManager().set(null==n?void 0:n.refreshToken),O&&!e.isTokenExpired(O)){t.next=16;break}return i({status:!1,msg:"".concat(O?"Token is expired !":"Missing Authorization Token"),response:{token:O}}),t.abrupt("return");case 16:Je=JSON.parse(atob(O.split(".")[1]));case 17:return n.isAnonymousUser=!(null===(s=Je)||void 0===s||!s.anonymousId),n.siteOwner=(null===(d=Je)||void 0===d?void 0:d.site)||null,n.userId=(null===(v=Je)||void 0===v?void 0:v.userId)||null,window.sessionStorage.setItem("uid",null===(f=Je)||void 0===f?void 0:f.userId),window.watchHistory=n.watchHistory||null,P=null==n?void 0:n.playerId,n.chromecastReceiverId=null!=n&&null!==(p=n.series)&&void 0!==p&&p.enable?null:null==n?void 0:n.chromecastReceiverId,j=(null==n||null===(g=n.analytics)||void 0===g?void 0:g.gaId)||null,(C=null==n?void 0:n.errors)&&(window.customErrors=C),window.customData=null==n?void 0:n.customData,c.setLocalisation(null==n||null===(y=n.customData)||void 0===y?void 0:y.localisation),e.baseUrlManager.set(n.apiBaseUrl),null!=n&&n.skin&&!u.isNotAValidSkin(n.skin)||(n.skin="VL_ONE"),t.next=33,E(n);case 33:j&&m("https://www.googletagmanager.com/gtag/js?id=".concat(j)).then(function(){return e.runGtag(j)}).catch(function(e){}),(D=null===(h=document)||void 0===h?void 0:h.getElementById("".concat(P)))&&D.addEventListener("contextmenu",function(e){return e.preventDefault()}),b?(A={directPlaybackUrl:b,id:x="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},w?e.getVideoDetails(x,O).then(function(e){var t=(null==e?void 0:e.data)||{};Ge(P,{res:ln(ln({},t),A)},n,{resolve:r,reject:i})}).catch(function(n){e.initiateErrorHandling(n,P,i,x)}):Ge(P,{res:A},n,{resolve:r,reject:i})):I?Xe(n,{resolve:r,reject:i}):T?tn(n,{resolve:r,reject:i}):k?en(n,{resolve:r,reject:i}):$e(n,{resolve:r,reject:i});case 37:case"end":return t.stop()}},t)}));return function(e,n){return r.apply(this,arguments)}}())},getRenditions:a.getRenditions,skip:e.skip,getPlayer:s.getPlayer,play:e.play,pause:e.pause,detectBrowser:e.detectBrowser,rewind:e.rewind,loadVideo:e.loadVideo,seekToTimeStamp:i.seekToTimeStamp,isPlayerInitialised:e.isPlayerInitialised,load:e.load,authenticateLC:e.authenticateLC,dispose:e.dispose,enableCaptions:l.enableCaptions,disableCaptions:l.disableCaptions,getCaptions:l.getCaptions,playSelectedResolution:a.playSelectedResolution,getSource:e.getSource,setVolume:y,getVolume:h,disableControls:e.disableControls,setPlaybackSpeed:i.setPlaybackSpeed,getEntitlementData:e.getEntitlementData,adsQueuePointManager:Me,getSsaiEvents:Ie,playerEvents:i.playerEvents}},exports.initialiseKeyboardEvents=function(n,t){var o,r,i,l=s.getPlayer(n),a=null==l||null===(o=l.controlBar)||void 0===o||null===(r=o.playToggle)||void 0===r?void 0:r.el_,u=document.getElementsByTagName("video")[0];null===(i=document)||void 0===i||i.addEventListener("keydown",function(o){var r,i,s,c,d,v,f,p,m;if(pe.enabled&&"input"!=o.target.localName){var g=o.key,y=!0===t.liveVideo||!0===t.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(g)&&(o.preventDefault(),null==u||u.focus()),g){case" ":null==a||a.click();break;case"m":case"M":l.muted(!l.muted());break;case"f":case"F":null===(r=document.querySelector(".vjs-fullscreen-control"))||void 0===r||r.click();break;case"ArrowLeft":y&&!1===t.liveui||e.rewind(n,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(s=i.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(d=c.adsConfig)||void 0===d?void 0:d.vodAdSticherProvider)&&null!==(v=window)&&void 0!==v&&null!==(f=v.app_data)&&void 0!==f&&null!==(p=f.appcmsMain)&&void 0!==p&&null!==(m=p.adsConfig)&&void 0!==m&&m.vodAdClientSideTracking)return;y||e.skip(n,10)}}},!0)},exports.setupAdvertisementMarkers=function(e,n){return Ve.apply(this,arguments)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-2bb2dd4e.js"),r=require("./index-1a9cf743.js"),i=require("./icons-79591410.js"),n=require("./player_instance-fcf6a8fb.js"),t=require("./skin-9e714900.js"),s=require("./generic-26d3fd75.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./localisation-56e0a999.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./util-db87d399.js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),exports.initialiseSkin=function(l,o){n.getPlayer(l).addClass("skin_default"),r.initialiseKeyboardEvents(l,o),Promise.resolve().then(function(){return require("./skin-ba38afdb.js")}).then(function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)}),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(l,o),function(r,t){var l=n.getPlayer(r),o=(null==t?void 0:t.sres)||null;l.on("loadeddata",function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then(function(){return require("./nextEpisodeButton-d160dcfd.js")}).then(function(e){e.initaliseFunctionality(t.sres.seasons,s.getCurrentVideo())})}),l.one("loadedmetadata",function(){var i;o&&(e.addSeriesModule(r,null==t||null===(i=t.sres)||void 0===i?void 0:i.seasons,t),e.addNextEpisodeButton(t.sres,t.res,r))})}(l,o),function(e,r){var s,l,o,a,u=n.getPlayer(e),d=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],p=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(d&&(d.style.display="none"),c&&(c.style.display="none"),p&&(p.style.display="none"));null===(s=u.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(l=s.el())||void 0===l||l.appendChild(t.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(o=u.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(a=o.el())||void 0===a||a.appendChild(t.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(i.NewCaptionsSvg()));var v=document.createElement("div");v.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(v,m.querySelector(".vjs-menu-item"))}(l,o)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-2bb2dd4e.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-c5039d58.js"),r=require("./generic-26d3fd75.js");require("videojs-contrib-quality-menu");var n=require("./icons-79591410.js"),o=require("video.js"),u=require("./index-1a9cf743.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-9e714900.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-a860d3e8.js"),require("./util-db87d399.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("video.js/dist/video-js.min.css");function a(o,u){var a,d=l.getPlayer(o),t=(null==u||null===(a=u.res)||void 0===a?void 0:a.siteId)||"";d&&(d.on("loadeddata",function(){var a,s,v,p,c;d.qualityLevels()&&d.qualityLevels().length?function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(o):e.addResolutionModule(o,"vl_one",n.SettingsSvg()),!(null!=u&&null!==(a=u.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(p=v.appcmsMain)&&void 0!==p&&null!==(c=p.features)&&void 0!==c&&c.auto_play)||null!=u&&u.liveVideo||i.addNextEpPreview(o,u),null!=u&&u.liveVideo||r.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===t||i.initiateTrickplay(o)}),d.one("play",function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var d=function(e,i){var r,n,u,a,d,t,s,v,p,c,b,y,g=l.getPlayer(e),m=(null==i?void 0:i.theme)||{},q=o.dom.$(".vjs-play-progress"),h=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(u=n.appcmsMain)||void 0===u||null===(a=u.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(t=d.primary)||void 0===t?void 0:t.backgroundColor)),q&&(q.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(p=v.appcmsMain)||void 0===p||null===(c=p.brand)||void 0===c||null===(b=c.cta)||void 0===b||null===(y=b.primary)||void 0===y?void 0:y.backgroundColor));var f=g.getChild("BigPlayButton")||null;(null==m?void 0:m.progressBarColor)&&q&&(q.style.background=m.progressBarColor),(null==m?void 0:m.playButtonBackgroundColor)&&f&&(f.el().style.background=m.playButtonBackgroundColor),(null==m?void 0:m.playButtonColor)&&h&&(h.style.color=m.playButtonColor),(null==m?void 0:m.playButtonType)&&("square"==(null==m?void 0:m.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(o,t){l.getPlayer(o).addClass("skin_vlone"),a(o,t),function(l,o){var a,d,t,s,v,p,c,b,y,g,m,q,h,f,j,C=(null==o||null===(a=o.res)||void 0===a||null===(d=a.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,w=r.getSource(null==o?void 0:o.res,l)||{};w.src;var k=(null==o?void 0:o.skin_settings)||{};null!=k&&k.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(l,"VL_ONE",n.SkipSvgV2());(null!=k&&k.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(l,"VL_ONE",n.RewindSvgV2());(null==o||null===(t=o.relatedVideos)||void 0===t||null===(s=t.content)||void 0===s?void 0:s.length)>0&&e.addVideoSelector(l,null==o?void 0:o.relatedVideos);null!=o&&null!==(v=o.series)&&void 0!==v&&v.enable&&e.addSeriesSelectorV2(l,o);(null==o||null===(p=o.streams)||void 0===p?void 0:p.length)>1&&e.addMulticamSelector(l,null==o?void 0:o.streams);if(i.addTVProviderImage(l,o),u.initialiseKeyboardEvents(l,o),"MEDIA_TAILOR"==(null===(c=window)||void 0===c||null===(b=c.app_data)||void 0===b||null===(y=b.appcmsMain)||void 0===y||null===(g=y.adsConfig)||void 0===g?void 0:g.vodAdSticherProvider)&&null!==(m=window)&&void 0!==m&&null!==(q=m.app_data)&&void 0!==q&&null!==(h=q.appcmsMain)&&void 0!==h&&null!==(f=h.adsConfig)&&void 0!==f&&f.vodAdClientSideTracking&&C){var B,S=null;if(null!=o&&null!==(B=o.series)&&void 0!==B&&B.enable){var V,M,_,P=null===(V=r.getCurrentVideo())||void 0===V||null===(M=V.video)||void 0===M||null===(_=M.gist)||void 0===_?void 0:_.id,T=r.getSeriesWatchMap(),R=(null==T?void 0:T.get(P))||{t:0,p:0},A=R.t;R.p<95&&(S=A)}else{var O=o.watchHistoryResumeTime;o.watchedPercentage<95&&(S=O)}u.setupAdvertisementMarkers(l,S)}null!=o&&null!==(j=o.dvrConfig)&&void 0!==j&&j.enable&&null!=o&&o.isDvrEnabled&&(e.addStartFromBeginningButton(l,o),e.addWatchLiveButton(l,o))}(o,t),d(o,t)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),u=require("./icons-79591410.js");function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var s=o.getComponent("Component"),a=function(){r(h,s);var a,c,b=(a=h,c=l(),function(){var e,t=i(a);if(c){var r=i(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return n(this,e)});function h(t,r){var n;return e(this,h),(n=b.call(this,t,r)).el().innerHTML=u.startLiveIcon(),r.userId,r.siteOwner,n.on("click",function(){t&&t.seekable()&&(t.currentTime(t.seekable().start(0)),t.play())}),n}return t(h,[{key:"createEl",value:function(){return o.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),h}();exports.default=a;
@@ -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): 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): Promise<any>;
11
- export function getEntitlementData(id: any, token: any, url: any, locationData: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,24 +0,0 @@
1
- export function InfoIcon(): string;
2
- export function PlaylistIcon(): string;
3
- export function WidgetSelector(): string;
4
- export function WidgetInactive(): string;
5
- export function BroadcastIcon(): string;
6
- export function SelectedStream(): string;
7
- export function SkipSvg(skin: any): string;
8
- export function RewindSvg(skin: any): string;
9
- export function SettingsSvg(): string;
10
- export function MaximizeSvg(color: any): string;
11
- export function NewCaptionsSvg(): string;
12
- export function EpisodesSvg(): string;
13
- export function MinimizeSvg(color: any): string;
14
- export function PlayNextEpisodeSvg(color: any): string;
15
- export function crossIconSvg(): string;
16
- export function SkipSvgV2(): string;
17
- export function RewindSvgV2(): string;
18
- export function SettingsSvgV2(): string;
19
- export function CaptionsSvgV2(): string;
20
- export function BackIcon(): string;
21
- export function TickMarkIcon(): string;
22
- export function watchLiveIcon(): string;
23
- export function startLiveIcon(): string;
24
- export function watchLiveIcon2(): 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 +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 +0,0 @@
1
- export function addDvrOverlay(playerId: any, config: any): void;
@@ -1,6 +0,0 @@
1
- export default StartFromBeginingButton;
2
- declare const StartFromBeginingButton_base: typeof import("video.js/dist/types/component").default;
3
- declare class StartFromBeginingButton extends StartFromBeginingButton_base {
4
- constructor(player: any, options: any);
5
- createEl(): Element;
6
- }
@@ -1,6 +0,0 @@
1
- export default WatchLiveButton;
2
- declare const WatchLiveButton_base: typeof import("video.js/dist/types/component").default;
3
- declare class WatchLiveButton extends WatchLiveButton_base {
4
- constructor(player: any, options: any);
5
- createEl(): Element;
6
- }
@@ -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
- }
@@ -1,15 +0,0 @@
1
- export default playlistSelector;
2
- declare const playlistSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class playlistSelector extends playlistSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- addFunctionality(selectionContainer: any): void;
15
- }
@@ -1 +0,0 @@
1
- export function addQualitySelector(playerId: any): void;
@@ -1,18 +0,0 @@
1
- export default resolutionModule;
2
- declare const resolutionModule_base: typeof import("video.js/dist/types/component").default;
3
- declare class resolutionModule extends resolutionModule_base {
4
- constructor(player: any, options: any);
5
- buildWrapperCSSClass(): string;
6
- createMenu(): import("video.js/dist/types/component").default;
7
- createRenditions(ele: any): ResolutionMenuItem;
8
- createDashRenditions(ele: any): ResolutionMenuItem;
9
- removeDuplicateResolution(masterRenditions: any): any;
10
- }
11
- declare const ResolutionMenuItem_base: typeof import("video.js/dist/types/component").default;
12
- declare class ResolutionMenuItem extends ResolutionMenuItem_base {
13
- constructor(player: any, options: any);
14
- _options: any;
15
- handleClick(): void;
16
- playSelectedResolution: () => void;
17
- resetPlaybackPosition(player: any): void;
18
- }
@@ -1,20 +0,0 @@
1
- export default resolutionModule;
2
- export function playSelectedResolution(playerId: any, obj: any, auto: any): void;
3
- declare const resolutionModule_base: typeof import("video.js/dist/types/component").default;
4
- declare class resolutionModule extends resolutionModule_base {
5
- constructor(player: any, options?: {});
6
- masterRenditions: any[];
7
- playerId: any;
8
- skin: any;
9
- icon: any;
10
- fontSizeOptions: number[];
11
- toggleContentOnHover(head: any, content: any): void;
12
- changeFontSize(optionSelected: any): void;
13
- createRenditions(masterRenditions: any): void;
14
- addCustomFont: (content: any) => void;
15
- addDynamicSwitchIfAuto(): void;
16
- resetRenditions: () => void;
17
- createEl(): Element;
18
- addAutoRendition(videoType: any, renditionValues: any): void;
19
- removeDuplicateResolution(masterRenditions: any): any;
20
- }
@@ -1,10 +0,0 @@
1
- export function customSeasonList(buttonElement: any, seriesData: any): void;
2
- declare const seriesModule_base: typeof import("video.js/dist/types/component").default;
3
- export class seriesModule extends seriesModule_base {
4
- constructor(player: any, options?: {});
5
- seriesData: any[];
6
- createEl(): HTMLDivElement;
7
- loadCSS(): void;
8
- }
9
- export function handleSeasonChange(season: any, idx: any, player: any, config: any): void;
10
- export {};
@@ -1,3 +0,0 @@
1
- export function createSeriesWatchMap(seriesId: any, token: any): void;
2
- export function getSeasonNumber(): number;
3
- export function getEpisodeNumber(): any;
@@ -1,25 +0,0 @@
1
- export default SeriesV2;
2
- declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class SeriesV2 extends SeriesV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- currentVideoData: any;
9
- selectedSeason: number;
10
- cb: any;
11
- autoPlayNext: any;
12
- watchMap: any;
13
- createEl(): Element;
14
- loadCSS(): void;
15
- toggleOpenClose(selectionContainer: any): void;
16
- handleTabIndexSelector(): void;
17
- handleCloseTabIndex(): void;
18
- initialiseStructure(): void;
19
- handleSeriesCloseIcon(icon: any, selectionContainer: any, head: any): void;
20
- addFunctionality(selectionContainer: any): void;
21
- createSeasonLister(): Element;
22
- loadSeriesAssetById(episodes: any, i: any): void;
23
- getSeasonDetailsContainer(episodes: any, content: any): Window;
24
- showSeasonDetails(season: any): void;
25
- }
@@ -1 +0,0 @@
1
- export function createSeriesWatchMap(seriesId: any, token: any): void;
@@ -1,21 +0,0 @@
1
- export default SeriesV2;
2
- declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class SeriesV2 extends SeriesV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- currentVideoData: any;
9
- selectedSeason: number;
10
- cb: any;
11
- autoPlayNext: any;
12
- watchMap: any;
13
- createEl(): Element;
14
- loadCSS(): void;
15
- toggleOpenClose(selectionContainer: any): void;
16
- initialiseStructure(): void;
17
- addFunctionality(selectionContainer: any): void;
18
- createSeasonLister(): Element;
19
- getSeasonDetailsContainer(episodes: any, content: any): Window;
20
- showSeasonDetails(season: any): void;
21
- }
@@ -1,17 +0,0 @@
1
- export default SettingsV2;
2
- declare const SettingsV2_base: typeof import("video.js/dist/types/component").default;
3
- declare class SettingsV2 extends SettingsV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- currentVideoData: any;
8
- fillResolutionBitrateMap(renditions: any): void;
9
- resolutionBitrateMap: Map<any, any>;
10
- isEnhancedBitrate(rendition: any): boolean;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- addFunctionality(selectionContainer: any): void;
15
- createAudioQualityContainer(): Element;
16
- createVideoQualityContainer(): Element;
17
- }
@@ -1,13 +0,0 @@
1
- export function processAllImages(imageStreams: any): Promise<{}>;
2
- export function fetchAndParseM3U8(url: any, playerId: any): Promise<any[]>;
3
- export function getImageStreams(masterURI: any, imageURI: any): Promise<{
4
- resolution: any;
5
- duration: any;
6
- uri: any;
7
- layout: any;
8
- }[]>;
9
- export function fetchAndParseMPD(mpdUrl: any, playerId: any): Promise<{
10
- duration: number;
11
- layout: string;
12
- uri: string;
13
- }[]>;
@@ -1 +0,0 @@
1
- export function initiateTrickplay(playerId: any): Promise<void>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- export default videoSelector;
2
- declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class videoSelector extends videoSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- loadVideoAssetById(i: any): void;
15
- handleTabIndexSelector(): void;
16
- handleCloseTabIndex(): void;
17
- addFunctionality(selectionContainer: any): void;
18
- }
@@ -1,16 +0,0 @@
1
- export default videoSelector;
2
- declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class videoSelector extends videoSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- toggleOpenClose(): void;
15
- addFunctionality(selectionContainer: any): void;
16
- }
@@ -1,2 +0,0 @@
1
- export function getWatchHistoryByIdFromStorage(profileId: any, videoId: any, site: any): any[];
2
- export function initiateWatchHistoryHandling(playerId: any, config: any, id: any): void;
@@ -1,4 +0,0 @@
1
- export function epgHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function externalHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): void;
@@ -1,5 +0,0 @@
1
- import { externalHandler } from "./external";
2
- import { videoHandler } from "./vod";
3
- import { epgHandler } from "./epg";
4
- import { seriesHandler } from "./series";
5
- export { externalHandler, videoHandler, epgHandler, seriesHandler };
@@ -1,4 +0,0 @@
1
- export function seriesHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function videoHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function playerOptionsConfig(playerId: any, { res, sres }: {
2
- res?: any;
3
- sres?: any;
4
- }, config: any, feedback: any): void;
@@ -1,10 +0,0 @@
1
- export function getCaptions(playerId: any): any;
2
- export function removeCaptions(playerId: any): void;
3
- /**
4
- * Adds Subtitles in the player
5
- * @param {String} [playerId] [playerId of the player]
6
- * @param {String} [subTitles] [subTitles to be added]
7
- */
8
- export function addCaptions(playerId?: string, subTitles?: string): void;
9
- export function enableCaptions(playerId: any, trackId: any): void;
10
- export function disableCaptions(playerId: any, trackId: any): void;