@viewlift/player-backup 2.0.71-smartTv → 2.0.72-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 (168) hide show
  1. package/cjs/autoNextVideo-116ab67f.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +49 -1593
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/{captions-3c7ca3a7.js → captions-07bd3069.js} +1 -1
  6. package/cjs/features-d2c44bee.js +1 -0
  7. package/cjs/generic-5d13985a.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/index-27c35ba0.js +1 -0
  10. package/cjs/{index-8606834d.js → index-84cce26a.js} +1 -1
  11. package/cjs/index-cb1189a5.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-36e0036b.js +1 -0
  14. package/cjs/multicamv2-8fed590e.js +1 -0
  15. package/cjs/nextEpisodeButton-cb8fd535.js +1 -0
  16. package/cjs/playlist-938117f4.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-b7c2af54.js +1 -0
  20. package/cjs/series-v2-3730d400.js +1 -0
  21. package/cjs/series-v2-a5ecb6c1.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-3544db58.js +1 -0
  24. package/cjs/skin-473ec4ae.js +1 -0
  25. package/cjs/skin-4c3889eb.js +1 -0
  26. package/cjs/skin-8d5646fe.js +1 -0
  27. package/cjs/skin-ab7231d1.js +1 -0
  28. package/cjs/skin-ceb50b6c.js +1 -0
  29. package/cjs/skin-eb6cbd42.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-75b45ff6.js +1 -0
  32. package/cjs/videoSelector-84d35d1b.js +1 -0
  33. package/cjs/videojs_contrib_dash-018c8bde.js +1 -0
  34. package/esm/autoNextVideo-8a56130e.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +49 -1593
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/{captions-7996e045.js → captions-b7fd8308.js} +1 -1
  39. package/esm/features-c9cf9f10.js +1 -0
  40. package/esm/generic-7206a937.js +1 -0
  41. package/esm/{icons-79ad4d7d.js → icons-8e47e640.js} +1 -1
  42. package/esm/index-5d92eaa3.js +1 -0
  43. package/esm/index-8d73a669.js +1 -0
  44. package/esm/index-e01aa76c.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-480d2121.js +1 -0
  47. package/esm/multicamv2-d897a809.js +1 -0
  48. package/esm/nextEpisodeButton-d0139827.js +1 -0
  49. package/esm/playlist-6dd08b34.js +1 -0
  50. package/esm/{renditions-65794079.js → renditions-4c09c626.js} +1 -1
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-0c1abfff.js +1 -0
  53. package/esm/series-v2-c4017f00.js +1 -0
  54. package/esm/series-v2-c637397a.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-0050c180.js +1 -0
  57. package/esm/skin-514ca7ee.js +1 -0
  58. package/esm/skin-58b9263c.js +1 -0
  59. package/esm/skin-5af975a5.js +1 -0
  60. package/esm/skin-66e0a944.js +1 -0
  61. package/esm/skin-9760368f.js +1 -0
  62. package/esm/skin-f613a5cf.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-25152c41.js +1 -0
  65. package/esm/videoSelector-26c81da3.js +1 -0
  66. package/esm/videojs_contrib_dash-f7d94714.js +1 -0
  67. package/package.json +3 -6
  68. package/cjs/autoNextVideo-1f49211b.js +0 -1
  69. package/cjs/autoNextVideo-ff4a5872.js +0 -1
  70. package/cjs/browser-38ff3331.js +0 -1
  71. package/cjs/caption-settings-5944a544.js +0 -1
  72. package/cjs/features-d5a19c52.js +0 -1
  73. package/cjs/features-e8393717.js +0 -1
  74. package/cjs/generic-270e0c0e.js +0 -1
  75. package/cjs/generic-c3ef1a4c.js +0 -1
  76. package/cjs/icons-0ea2e662.js +0 -1
  77. package/cjs/index-27816143.js +0 -1
  78. package/cjs/index-4282d6c8.js +0 -1
  79. package/cjs/index-7deb8e51.js +0 -1
  80. package/cjs/index-952059d8.js +0 -1
  81. package/cjs/multicamv2-59658c00.js +0 -1
  82. package/cjs/multicamv2-733a4c98.js +0 -1
  83. package/cjs/multicamv2-97f57710.js +0 -1
  84. package/cjs/multicamv2-e60917aa.js +0 -1
  85. package/cjs/nextEpisodeButton-b62010fa.js +0 -1
  86. package/cjs/nextEpisodeButton-db512765.js +0 -1
  87. package/cjs/playlist-452d88c2.js +0 -1
  88. package/cjs/playlist-dc7fd81d.js +0 -1
  89. package/cjs/renditions-26c6d0df.js +0 -1
  90. package/cjs/resolution-5a0df2be.js +0 -1
  91. package/cjs/series-50af9773.js +0 -1
  92. package/cjs/series-62cf13d7.js +0 -1
  93. package/cjs/series-v2-07ce65b0.js +0 -1
  94. package/cjs/series-v2-1540a570.js +0 -1
  95. package/cjs/series-v2-26fac2cb.js +0 -1
  96. package/cjs/series-v2-a0ce7016.js +0 -1
  97. package/cjs/settings-icon-12add1fe.js +0 -1
  98. package/cjs/skin-28e40e43.js +0 -1
  99. package/cjs/skin-3397dca5.js +0 -1
  100. package/cjs/skin-3bdd38e0.js +0 -1
  101. package/cjs/skin-3e832338.js +0 -1
  102. package/cjs/skin-5e026b9e.js +0 -1
  103. package/cjs/skin-5e6de97a.js +0 -1
  104. package/cjs/skin-66bb1abb.js +0 -1
  105. package/cjs/skin-71bb1a0a.js +0 -1
  106. package/cjs/skin-88b9e5b1.js +0 -1
  107. package/cjs/skin-9319e6f5.js +0 -1
  108. package/cjs/skin-a4de7dc7.js +0 -1
  109. package/cjs/skin-c165b563.js +0 -1
  110. package/cjs/skin-d7cd2ac9.js +0 -1
  111. package/cjs/skin-f0dbcafa.js +0 -1
  112. package/cjs/skin-fc778d21.js +0 -1
  113. package/cjs/util-c1962d91.js +0 -1
  114. package/cjs/videoSelector-913574c8.js +0 -1
  115. package/cjs/videoSelector-bccb16ce.js +0 -1
  116. package/cjs/videoSelector-c371fba4.js +0 -1
  117. package/cjs/videoSelector-d6d0e1ae.js +0 -1
  118. package/cjs/videojs-dash5.es-3cd3423d.js +0 -1
  119. package/esm/autoNextVideo-63dbac74.js +0 -1
  120. package/esm/autoNextVideo-793707f8.js +0 -1
  121. package/esm/browser-512cd55a.js +0 -1
  122. package/esm/caption-settings-adcfbf9d.js +0 -1
  123. package/esm/features-b4c00ff4.js +0 -1
  124. package/esm/features-e7e14dda.js +0 -1
  125. package/esm/generic-258d34e7.js +0 -1
  126. package/esm/generic-817644b6.js +0 -1
  127. package/esm/index-2257f4dd.js +0 -1
  128. package/esm/index-5c199c09.js +0 -1
  129. package/esm/index-b559de16.js +0 -1
  130. package/esm/index-c0023a66.js +0 -1
  131. package/esm/index-c4b6db11.js +0 -1
  132. package/esm/multicamv2-0545a0ae.js +0 -1
  133. package/esm/multicamv2-170df815.js +0 -1
  134. package/esm/multicamv2-469790c5.js +0 -1
  135. package/esm/multicamv2-fe3eda2b.js +0 -1
  136. package/esm/nextEpisodeButton-3bdc1a02.js +0 -1
  137. package/esm/nextEpisodeButton-f3651707.js +0 -1
  138. package/esm/playlist-15c1cf5a.js +0 -1
  139. package/esm/playlist-4f7cdb85.js +0 -1
  140. package/esm/resolution-ed00f17a.js +0 -1
  141. package/esm/series-04163ae5.js +0 -1
  142. package/esm/series-dc5effb9.js +0 -1
  143. package/esm/series-v2-6ab87b3b.js +0 -1
  144. package/esm/series-v2-6beb4cc3.js +0 -1
  145. package/esm/series-v2-76fe35d9.js +0 -1
  146. package/esm/series-v2-e0e817a0.js +0 -1
  147. package/esm/settings-icon-c670ad25.js +0 -1
  148. package/esm/skin-049e3470.js +0 -1
  149. package/esm/skin-08b2a668.js +0 -1
  150. package/esm/skin-1ef7495f.js +0 -1
  151. package/esm/skin-287d98f0.js +0 -1
  152. package/esm/skin-3688bf2d.js +0 -1
  153. package/esm/skin-5a4f7dff.js +0 -1
  154. package/esm/skin-61d92027.js +0 -1
  155. package/esm/skin-6290413d.js +0 -1
  156. package/esm/skin-6fb58468.js +0 -1
  157. package/esm/skin-8e2c5488.js +0 -1
  158. package/esm/skin-9b61d1eb.js +0 -1
  159. package/esm/skin-ad92ef73.js +0 -1
  160. package/esm/skin-b56ca7dd.js +0 -1
  161. package/esm/skin-dfd47b2e.js +0 -1
  162. package/esm/skin-ec925239.js +0 -1
  163. package/esm/util-389babb5.js +0 -1
  164. package/esm/videoSelector-05c05c24.js +0 -1
  165. package/esm/videoSelector-0e2a85dc.js +0 -1
  166. package/esm/videoSelector-4230d7f6.js +0 -1
  167. package/esm/videoSelector-e3a73107.js +0 -1
  168. package/esm/videojs-dash5.es-17cb6067.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlift/player-backup",
3
- "version": "2.0.71-smartTv",
3
+ "version": "2.0.72-backup",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "amdName": "_playerCore",
6
6
  "dependencies": {
@@ -15,8 +15,5 @@
15
15
  "videojs-contrib-eme": "5.5.1",
16
16
  "videojs-mux": "^4.21.7",
17
17
  "videojs-contrib-quality-menu": "^1.0.3"
18
- },
19
- "browserslist": [
20
- "chrome > 38, safari > 7"
21
- ]
22
- }
18
+ }
19
+ }
@@ -1 +0,0 @@
1
- "use strict";var e,i=require("./generic-c3ef1a4c.js"),t=require("./util-c1962d91.js"),n=require("./skin-3397dca5.js"),o=0,u=0,d=function e(t,o,d,r){u=t,t>d.length-1||(i.setVideoIdx(u+1),i.load(o,d[t].id).then(function(e){n.highlightVideo(u,o),u++,c(e)}).catch(function(i){c(i),setTimeout(function(){n.highlightVideo(u,o),u++,e(u,o,d)},5e3)}))},c=function(i){e&&e(i)};exports.autoPlayNext=function(r){clearTimeout(o);var h=null==r?void 0:r.content;e=null==r?void 0:r.cb;var l=r.playerId;t.onVideoEnded(l,function(){var e=n.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((u=i.getVideoIdx())>h.length-1||(i.setVideoIdx(u+1),i.load(l,h[u].id).then(function(e){n.highlightVideo(u,l),i.setCurrentVideo(e.response),u++,c(e)}).catch(function(e){c(e),n.highlightVideo(u,l),u++,o=setTimeout(function(){i.isPaused(l)&&d(u,l,h)},5e3)})))})},exports.switchToNext=d;
@@ -1 +0,0 @@
1
- "use strict";var e,i=require("./generic-270e0c0e.js"),t=require("./util-c1962d91.js"),n=require("./skin-3397dca5.js"),o=0,u=0,d=function e(t,o,d,r){u=t,t>d.length-1||(i.setVideoIdx(u+1),i.load(o,d[t].id).then(function(e){n.highlightVideo(u,o),u++,c(e)}).catch(function(i){c(i),setTimeout(function(){n.highlightVideo(u,o),u++,e(u,o,d)},5e3)}))},c=function(i){e&&e(i)};exports.autoPlayNext=function(r){clearTimeout(o);var h=null==r?void 0:r.content;e=null==r?void 0:r.cb;var l=r.playerId;t.onVideoEnded(l,function(){var e=n.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((u=i.getVideoIdx())>h.length-1||(i.setVideoIdx(u+1),i.load(l,h[u].id).then(function(e){n.highlightVideo(u,l),i.setCurrentVideo(e.response),u++,c(e)}).catch(function(e){c(e),n.highlightVideo(u,l),u++,o=setTimeout(function(){i.isPaused(l)&&d(u,l,h)},5e3)})))})},exports.switchToNext=d;
@@ -1 +0,0 @@
1
- "use strict";exports.detectBrowser=function(){var e,i,n,r;return null!==(e=window)&&void 0!==e&&null!==(i=e.customData)&&void 0!==i&&i.isSmartTV?"Chrome":navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(n=window.navigator)||void 0===n||null===(r=n.userAgentData)||void 0===r?void 0:r.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},exports.isMobile=function(){var e,i;return(null===(e=window)||void 0===e||null===(i=e.customData)||void 0===i||!i.isSmartTV)&&!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/inherits"),i=require("video.js"),r=require("./icons-0ea2e662.js"),c=require("./captions-3c7ca3a7.js"),l=require("./skin-3397dca5.js");function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var d=i.getComponent("Component"),p=function(){function p(t){var o,i,r,c,l,d,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,p),l=this,u=[t,m],d=a(d=p),(c=n(l,s()?Reflect.construct(d,u||[],a(l).constructor):d.apply(l,u))).playerId=m.playerId,c.seriesData=m.sres,c.currentVideoData=m.res,c.initialiseStructure(),c.loadCSS(),null===(o=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===o||null===(i=o[0])||void 0===i||null===(r=i.style)||void 0===r||r.setProperty("display","none","important"),c}return o(p,d),t(p,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r.CaptionsSvgV2())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./caption-settings-34ca0188.js")}).then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=c.getCaptions(this.playerId);null==t||t.map(function(t){return c.disableCaptions(e.playerId,t.id)});var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(l.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",l.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),l.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(r.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),c=i.dom.createEl("div",{className:"caption-selector-content"}),s=i.dom.createEl("div",{className:"caption-container"}),d=this.createLanguageContanier();i.dom.appendContent(s,d),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,c),i.dom.appendContent(c,s),l.handleDrawerResizing(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),c.getCaptions(e.playerId).map(function(t){return c.disableCaptions(e.playerId,t.id)})},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var l=c.getCaptions(this.playerId),s=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==l||null===(a=l[n])||void 0===a?void 0:a.label;var s=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});s.onchange=function(t){c.enableCaptions(e.playerId,l[n].id)},s.setAttribute("type","radio"),i.dom.appendContent(o,s),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},d=0;d<l.length;d++)s(d);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});l.setAttribute("type","radio"),l.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}])}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/inherits"),l=require("video.js"),i=require("./generic-270e0c0e.js"),a=require("./renditions-26c6d0df.js"),s=require("./skin-3397dca5.js"),d=require("./localisation-56e0a999.js");function u(e,t,o){return t=n(t),r(e,c()?Reflect.construct(t,o||[],n(e).constructor):t.apply(e,o))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}exports.addCaptionButton=function(e,t){Promise.resolve().then(function(){return require("./caption-settings-5944a544.js")}).then(function(r){var n,o,i,a,d=r.default,u=s.getPlayer(e);l.registerComponent("captionSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===i||null===(a=i[0])||void 0===a||a.remove(),u&&u.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addDBClickFullScreen=function(e){var t=s.getPlayer(e).el(),r=0,n=s.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e}),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-97f57710.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-e60917aa.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then(function(){return require("./nextEpisodeButton-b62010fa.js")}).then(function(n){var o=n.default,i=s.getPlayer(r);l.registerComponent("nextEpisodeButtonModule",o),i.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},i.controlBar.children().length-5)})},exports.addOutputtingOverlay=function(e,t){var r=s.getPlayer(e).el(),n=l.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then(function(){return require("./playlist-452d88c2.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},exports.addResolutionModule=function(e,t,r){Promise.resolve().then(function(){return require("./resolution-5a0df2be.js")}).then(function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var i=s.getPlayer(e),d=a.getRenditions(e);(null==d?void 0:d.length)>0&&(l.registerComponent("resolutionModule",o),i.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:d},i.controlBar.children().length-4))})},exports.addRewindButton=function(r,n,a){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-rewind-button");var i=s.parseSvgString(a);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.rewind(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then(function(){return require("./series-62cf13d7.js")}).then(function(n){var o=n.seriesModule,i=s.getPlayer(e);l.registerComponent("seriesModule",o),i.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},i.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),d=function(e){a[e].addEventListener("click",function(){t[e]&&n.handleSeasonChange(t[e],e,i,r)})},u=0;u<a.length;u++)d(u)})},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then(function(){return require("./series-v2-1540a570.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./series-v2-a0ce7016.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then(function(){return require("./settings-icon-12add1fe.js")}).then(function(r){var n,o,i,a,d=r.default,u=s.getPlayer(e);l.registerComponent("settingsSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===i||null===(a=i[0])||void 0===a||a.remove(),u&&u.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addSkipButton=function(r,n,a){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-skip-button");var i=s.parseSvgString(a);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.skip(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(r){var n=function(r){function n(t,r){var o;e(this,n);var l=(o=u(this,n,[t,r])).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=d.getLocalisation("slowMoText")||"Slow Mo",o}return o(n,r),t(n,[{key:"handleClick",value:function(){1==i.playbackRate()?(i.playbackRate(.5),this.el().style.background="darkgray"):(i.playbackRate(1),this.el().style.background="none")}}])}(l.getComponent("Button"));l.registerComponent("MyButton",n);var i=l(r);i.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-d6d0e1ae.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-bccb16ce.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/inherits"),l=require("video.js"),i=require("./generic-c3ef1a4c.js"),a=require("./renditions-26c6d0df.js"),s=require("./skin-3397dca5.js"),d=require("./localisation-56e0a999.js");function u(e,t,o){return t=n(t),r(e,c()?Reflect.construct(t,o||[],n(e).constructor):t.apply(e,o))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}exports.addCaptionButton=function(e,t){Promise.resolve().then(function(){return require("./caption-settings-5944a544.js")}).then(function(r){var n,o,i,a,d=r.default,u=s.getPlayer(e);l.registerComponent("captionSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===i||null===(a=i[0])||void 0===a||a.remove(),u&&u.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addDBClickFullScreen=function(e){var t=s.getPlayer(e).el(),r=0,n=s.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e}),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-59658c00.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-733a4c98.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then(function(){return require("./nextEpisodeButton-db512765.js")}).then(function(n){var o=n.default,i=s.getPlayer(r);l.registerComponent("nextEpisodeButtonModule",o),i.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},i.controlBar.children().length-5)})},exports.addOutputtingOverlay=function(e,t){var r=s.getPlayer(e).el(),n=l.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then(function(){return require("./playlist-dc7fd81d.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},exports.addResolutionModule=function(e,t,r){Promise.resolve().then(function(){return require("./resolution-5a0df2be.js")}).then(function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var i=s.getPlayer(e),d=a.getRenditions(e);(null==d?void 0:d.length)>0&&(l.registerComponent("resolutionModule",o),i.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:d},i.controlBar.children().length-4))})},exports.addRewindButton=function(r,n,a){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-rewind-button");var i=s.parseSvgString(a);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.rewind(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then(function(){return require("./series-50af9773.js")}).then(function(n){var o=n.seriesModule,i=s.getPlayer(e);l.registerComponent("seriesModule",o),i.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},i.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),d=function(e){a[e].addEventListener("click",function(){t[e]&&n.handleSeasonChange(t[e],e,i,r)})},u=0;u<a.length;u++)d(u)})},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then(function(){return require("./series-v2-07ce65b0.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./series-v2-26fac2cb.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then(function(){return require("./settings-icon-12add1fe.js")}).then(function(r){var n,o,i,a,d=r.default,u=s.getPlayer(e);l.registerComponent("settingsSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===i||null===(a=i[0])||void 0===a||a.remove(),u&&u.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addSkipButton=function(r,n,a){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-skip-button");var i=s.parseSvgString(a);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.skip(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(r){var n=function(r){function n(t,r){var o;e(this,n);var l=(o=u(this,n,[t,r])).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=d.getLocalisation("slowMoText")||"Slow Mo",o}return o(n,r),t(n,[{key:"handleClick",value:function(){1==i.playbackRate()?(i.playbackRate(.5),this.el().style.background="darkgray"):(i.playbackRate(1),this.el().style.background="none")}}])}(l.getComponent("Button"));l.registerComponent("MyButton",n);var i=l(r);i.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-913574c8.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-c371fba4.js")}).then(function(r){var n=r.default,o=s.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),n=require("video.js"),i=require("axios"),o=require("./skin-3397dca5.js"),r=require("./browser-38ff3331.js"),l=require("js-cookie"),a=require("ua-parser-js"),d=require("./captions-3c7ca3a7.js");function s(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function u(e,t){s("event",e,t)}var c={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"},v={name:"@viewlift/player-backup",version:"2.0.71-smartTv",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","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"},browserslist:["chrome > 38, safari > 7"]};window.vl_player_version=v.version;var m,f=function(e,t){var n,o,r,l,a,d,s,u;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:null!==(a=window)&&void 0!==a&&null!==(d=a.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(s=window)||void 0===s||null===(u=s.customData)||void 0===u?void 0:u.overrideEntitlementBaseUrl)+"/video/status":E.get()+"".concat(null==c?void 0:c.getVideoDetails),params:Object.assign({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":v.version},withCredentials:!0})},p=function(e,t){var n,o,r,l;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:E.get()+c.getLinearChannelDetails,params:Object.assign({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(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===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},g=function(){var n=e(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:return o=e.sent,e.abrupt("return",i({url:E.get()+"".concat(null==c?void 0:c.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:Object.assign({},n),params:Object.assign({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),I=function(e,t){var n,o,r=window.contentType;return i({method:"GET",url:E.get()+"".concat(null==c?void 0:c.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(o=n.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},w=function(e){var t=e.videoId;return i({method:"GET",url:E.get()+"".concat(null==c?void 0:c.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},E=(m=null==c?void 0:c.apiBaseUrl,{set:function(e){e&&(m=e)},get:function(){return m}}),T=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},h=null;function _(){return{set:function(e){e&&(h=e)},get:function(){return h}}}var y,b,F,D,L,V,R=function(){var n=e(t.mark(function e(){var n,o,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=_().get(),o=E.get(),e.prev=2,e.next=5,i({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return r=e.sent,e.abrupt("return",r);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 n.apply(this,arguments)}}(),S=null,W=function(){var n=e(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"))||!T(n)){e.next=6;break}return S||(S=R().then(function(e){var t,i,o=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&_().set(r),o||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){S=null})),e.abrupt("return",S);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return n.apply(this,arguments)}}(),O=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},x=function(e){b=e},C=function(){return b},P=function(){return y},A=function(e){F=e},N=function(e){if(D){var t=D.get(e);A(t+1)}},B=(V=0,{set:function(e){e>=0&&(V=e)},get:function(){return V}}),M=0,U=function(){var e,t,n,i,o,r,l,a=C();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==a||null===(o=a.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function j(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function k(){var e=window.sessionStorage.getItem("uid");return e||(e=j(),window.sessionStorage.setItem("uid",e),e)}function H(){return G.apply(this,arguments)}function G(){return(G=e(t.mark(function e(){var n,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(n.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(e){return e?String(e):""}window.initialise=function(e){window.sid=j(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",function(){var n,i,o,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,u(r?"FAILED_TO_START":"DROPPED_STREAM",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,t){e.one("play",tryCatch(function(){var n,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),u("PLAY",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":U(),watchTime:Math.floor(e.currentTime())})}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("vjs-waiting")&&M<4)M++,u("BUFFERING",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,u("FIRST_FRAME",Object.assign({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),vid:U()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.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 t,n,i,o,r,l;u("AD_REQUEST",Object.assign({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),vid:U(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),u("AD_IMPRESSION",Object.assign({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:U()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.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 t=[];e.on("timeupdate",function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!t.includes(n)&&(M=0,t.push(n),fireEvent({eventName:"PING",videoPosition:n,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 t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),l=i.end(o);if(Y(t,r,l)){var a=Math.round(n-l);if(isFinite(a))return a}}})()};var Y=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var n=e(t.mark(function e(n){var o,r,l,a,d,s,u,v,m,f,p,g,I,w,T,h,_,y,b,F;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:return h=e.sent,_=O(h),y=null==_?void 0:_.site,b=null==_?void 0:_.siteId,e.t0=Object,e.t1={aid:y,cid:b,pfm:window.platform},e.t2=null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params,e.t3=k(),e.t4=U(),e.t5=n.url||document.location.href,e.t6=n.ref||document.referrer,e.t7=n.eventName,e.t8=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t9=window.environment,e.t10=n.dp1||"",e.t11=n.dp2||"",e.t12=n.dp3||"",e.t13=n.dp4||"",e.t14=n.dp5||"",e.t15=!0===n.isAdEvent?n.videoPosition:null,e.t16=!0===n.isAdEvent?z(n.adPosition):"",e.next=25,H();case 25:e.t17=e.sent,e.t18=n.playerType||"native",e.t19=n.mediaType||"VIDEO",e.t20=window.sid,e.t21=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t22=null!==(s=n.bitrate)&&void 0!==s?s:null,e.t23=null!==(u=n.resHeight)&&void 0!==u?u:null,e.t24=null!==(v=n.resWidth)&&void 0!==v?v:null,e.t25=null!==(m=n.bufferHealth)&&void 0!==m?m:null,e.t26={uid:e.t3,vid:e.t4,url:e.t5,ref:e.t6,pa:e.t7,vpos:e.t8,environment:e.t9,dp1:e.t10,dp2:e.t11,dp3:e.t12,dp4:e.t13,dp5:e.t14,apos:e.t15,apod:e.t16,profid:e.t17,player:e.t18,media_type:e.t19,stream_id:e.t20,embedurl:"",ttfirstframe:e.t21,bitrate:e.t22,connectionspeed:null,resolutionheight:e.t23,resolutionwidth:e.t24,bufferhealth:e.t25},e.t27=(null==n?void 0:n.duration)&&{duration:n.duration},e.t28=null===(f=window)||void 0===f||null===(p=f.customData)||void 0===p||null===(g=p.beacon)||void 0===g?void 0:g.params,e.t29=e.t0.assign.call(e.t0,e.t1,e.t2,e.t26,e.t27,e.t28),F=[e.t29],i({url:(null===(I=window)||void 0===I||null===(w=I.customData)||void 0===w||null===(T=w.beacon)||void 0===T?void 0:T.url)||E.get()+c.getBeaconUrl,method:"post",headers:{Authorization:h},contentType:"application/x-www-form-urlencoded",dataType:"text",data:F}).catch(function(e){console.error(e)});case 40:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var q=function(){var e=B.get();return e>=0?e+1:1},X=function(){var e,t,n,i=P(),o=C(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,l=B.get(),a=null==i||null===(t=i[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};window._deviceInfo=a.UAParser(navigator.userAgent);var J=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},K=function(e){var t=Q(e,"video.tags",[]),n=Q(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map(function(e){return e.title}).join(","):n},Q=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},Z=function(){var e,t,n,i,r,a,d,s,u,c,v,m,f,p,g,I,w,E,T,h,_,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1?arguments[1]:void 0,F=arguments.length>2?arguments[2]:void 0,D=(null==F?void 0:F.siteName)||"",L=(null==F?void 0:F.contentType)||"video",V=(null==F||null===(e=F[L])||void 0===e?void 0:e.metadata)||(null==F||null===(t=F[L])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),R=o.getPlayer(b);if(!y.includes("VIEWLIFT_"))return y;var S,W=window.getComputedStyle(document.getElementById(b),null),O=Math.trunc(W.getPropertyValue("height").slice(0,-2)),x=Math.trunc(W.getPropertyValue("width").slice(0,-2)),C="linearchannel"===L?null==F||null===(i=F.linearchannel)||void 0===i||null===(r=i.channels)||void 0===r||null===(a=r.find(function(e){return(null==e?void 0:e.id)===(null==F?void 0:F.channelId)}))||void 0===a||null===(d=a.content)||void 0===d?void 0:d.id:Q(F,"video.gist.id",""),P="linearchannel"===L?null==F||null===(s=F.linearchannel)||void 0===s||null===(u=s.channels)||void 0===u||null===(c=u.find(function(e){return(null==e?void 0:e.id)===(null==F?void 0:F.channelId)}))||void 0===c?void 0:c.title:Q(F,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),A=null,N=null;"function"==typeof window.__gpp&&(null===(S=window)||void 0===S||S.__gpp("ping",function(e){A=null==e?void 0:e.gppString,N=null==e?void 0:e.sectionList[0]}));var B=Object.assign({},$(V),{VIEWLIFT_WIDTH:x,VIEWLIFT_HEIGHT:O,VIEWLIFT_SIZE:J(x,O),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===(v=window)||void 0===v?void 0:v.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:Q(F,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==R||null===(m=R.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==R||null===(f=R.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==D?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:K(F),VIEWLIFT_MEDIA_ID:C,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(Q(F,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:C,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+Q(F,"video.gist.permalink","")),VIEWLIFT_CONSENT:l.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:Q(null===(p=window)||void 0===p||null===(g=p.app_data)||void 0===g||null===(I=g.site)||void 0===I?void 0:I.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==D?"":Q(null===(w=window)||void 0===w||null===(E=w.app_data)||void 0===E||null===(T=E.site)||void 0===T?void 0:T.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:C,VIEWLIFT_CONTENT_TITLE:P,VIEWLIFT_CONTENT_SERIES_TITLE:Q(F,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:Q(F,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:X(),VIEWLIFT_SEASON_NUMBER:q(),VIEWLIFT_CONTENT_TAGS:K(F),VIEWLIFT_GPP_SID:N||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:A||"VIEWLIFT_GPP",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},null===(h=window)||void 0===h||null===(_=h.customData)||void 0===_?void 0:_.macros);for(var M in B){var U=new RegExp(M,"g");y=y.replace(U,B[M])}return y},$=function(e){var t,n,i,o,l,a,d;if(null!==(t=window)&&void 0!==t&&t.customData.isSmartTV)return ee(s);var s={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){u.set(e.name,e.value)}));var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.subscription)||void 0===o?void 0:o.SVOD)||!1,v=(null===(l=window)||void 0===l||null===(a=l.customData)||void 0===a||null===(d=a.subscription)||void 0===d?void 0:d.TVE)||!1;return c||v?(r.isMobile()?c?s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):c?s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),c?s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),s=r.isMobile()?Object.assign({},s,{VIEWLIFT_PROF:u.get("prof.mweb")||""}):Object.assign({},s,{VIEWLIFT_PROF:u.get("prof.web")||""})):(s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),s=r.isMobile()?Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),s=Object.assign({},s,{VIEWLIFT_AFID:u.get("afid")})},ee=function(e){var t,n,i,o,r,l,a={},d=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){d.set(e.name,e.value)}));var s=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,u=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return(s||u)&&(u?(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.tve")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.tve")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.tve")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.tve")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.tve")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.tve")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""})):(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.dtc")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.dtc")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.dtc")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.dtc")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""}))),a},te=function(e){var t=null;try{var n,i,o,r,l,a,d,s,u,c,v,m,f,p,g,I,w,E,T,h,_,y,b,F,D,L,V,R,S;if(null!==(n=window)&&void 0!==n&&n.customData.isSmartTV){if("samsungTv"==window.customData.device&&null!=e&&null!==(i=e.ads)&&void 0!==i&&null!==(o=i.preRoll)&&void 0!==o&&null!==(r=o.adTags)&&void 0!==r&&null!==(l=r.samsung_tv)&&void 0!==l&&l.active)t=null==e||null===(E=e.ads)||void 0===E||null===(T=E.preRoll)||void 0===T||null===(h=T.adTags)||void 0===h||null===(_=h.samsung_tv)||void 0===_?void 0:_.url;else if("lgTv"==window.customData.device&&null!=e&&null!==(a=e.ads)&&void 0!==a&&null!==(d=a.preRoll)&&void 0!==d&&null!==(s=d.adTags)&&void 0!==s&&null!==(u=s.lg_tv)&&void 0!==u&&u.active){var W,O,x,C;t=null==e||null===(W=e.ads)||void 0===W||null===(O=W.preRoll)||void 0===O||null===(x=O.adTags)||void 0===x||null===(C=x.lg_tv)||void 0===C?void 0:C.url}else if("vizioTv"==window.customData.device&&null!=e&&null!==(c=e.ads)&&void 0!==c&&null!==(v=c.preRoll)&&void 0!==v&&null!==(m=v.adTags)&&void 0!==m&&null!==(f=m.vizioTv)&&void 0!==f&&f.active){var P,A,N,B;t=null==e||null===(P=e.ads)||void 0===P||null===(A=P.preRoll)||void 0===A||null===(N=A.adTags)||void 0===N||null===(B=N.vizioTv)||void 0===B?void 0:B.url}else if("xbox"==window.customData.device&&null!=e&&null!==(p=e.ads)&&void 0!==p&&null!==(g=p.preRoll)&&void 0!==g&&null!==(I=g.adTags)&&void 0!==I&&null!==(w=I.xbox)&&void 0!==w&&w.active){var M,U,j,k;t=null==e||null===(M=e.ads)||void 0===M||null===(U=M.preRoll)||void 0===U||null===(j=U.adTags)||void 0===j||null===(k=j.xbox)||void 0===k?void 0:k.url}}else t=(null==e||null===(y=e.ads)||void 0===y||null===(b=y.preRoll)||void 0===b||null===(F=b.adTags)||void 0===F||null===(D=F.web)||void 0===D?void 0:D.active)&&(null==e||null===(L=e.ads)||void 0===L||null===(V=L.preRoll)||void 0===V||null===(R=V.adTags)||void 0===R||null===(S=R.web)||void 0===S?void 0:S.url)}catch(e){}return t},ne=function(e,t){var n,i,o,l,a,d,s,u,c,v,m,f,p,g=(null==e?void 0:e.contentType)||"video",I=null==e||null===(n=e[g])||void 0===n?void 0:n.drmEnabled,w=null==e||null===(i=e[g])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(l=e[g])||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.audioAssets,T=(null==e||null===(d=e[g])||void 0===d||null===(s=d.streamingInfo)||void 0===s||null===(u=s.videoAssets)||void 0===u?void 0:u.hls)||!1;null==e||null===(c=e[g])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var h=(null==e||null===(m=e[g])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return oe(E);if(I){var _=re(w,t);return _.src=Z(_.src,t,e),_}if("Safari"!==r.detectBrowser()&&h)return ie(w);if(T){var y=oe(w);return y.src=Z(y.src,t,e),y}if(null!=w&&w.mpeg){var b=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(w);return b.src=Z(b.src,t,e),b}return null},ie=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},oe=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},re=function(e,t){var i=e.fairPlayCmaf||e.fairPlay,l=e.widevine,a=e.playReady,d=r.detectBrowser();if(o.getPlayer(t),"Safari"===d){var s=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,i){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};n.xhr(o,function(e,t,n){console.log(e),e&&i(e),i(null,new Uint8Array(n))})},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,i,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};n.xhr(l,function(e,t,n){console.log(e),e&&r(e),r(null,n)})}}}}}(i);return le(t),s}var u,c={src:l.url,type:"application/dash+xml"};return"caliente"==(null===(u=window)||void 0===u?void 0:u.siteName)?(le(t),c.keySystems={"com.widevine.alpha":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var le=function(e){var t=o.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==r.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},ae=function(e,t){if(Promise.resolve().then(function(){return require("./error-26d5a3c3.js")}).then(function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)}),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},de=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var se=!1,ue=function(e,t,n){var i=Z(t,e,n),r=o.getPlayer(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,i,r,l=o.getPlayer(e);if(null!==l.el_){se=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),se&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,t,!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 s="click",u=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(u=!0,s="touchend"),l.one(s,function(){u&&l.ima.initializeAdDisplayContainer()});var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(r=i.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){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,i)}},ce=function(e){return!!n.getPlayer("".concat(e))},ve=function(){var n=e(t.mark(function e(n,i){var r,l,a,d=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]&&d[2],e.next=3,W();case 3:return l=e.sent,a=o.getPlayer(n),e.abrupt("return",new Promise(function(e,t){p(i,l).then(function(t){var o=null==t?void 0:t.data;window.sid=j(),o.contentType="linearchannel",o.channelId=null==i?void 0:i.channelId;var l=ne(o,n);x(o),l&&r?(pe(n,l),a.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:o})})):e({status:!0,msg:"Feed authenticated",response:o})}).catch(function(e){t({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),me=function(){var n=e(t.mark(function e(n,i){var r,l,a,s,u,c,v=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=v.length>2&&void 0!==v[2]?v[2]:null){e.next=5;break}return e.next=4,W();case 4:s=e.sent;case 5:return(P()||null)&&N(i),u=0,c=0,null!==(r=window)&&void 0!==r&&r.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(a=l.watchHistory)&&void 0!==a&&a.enable&&I(i,s).then(function(e){var t,n,i,o,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),u=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,c=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null}).catch(function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))}),e.abrupt("return",new Promise(function(e,t){f(i,s).then(function(i){var r,l,a=null==i?void 0:i.data,s=(null==a||null===(r=a.video)||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1;x(i.data);var v=te(a);v&&ue(n,v,a);var m=ne(a,n);if(m){var f,p,g,I,w,E,T,h,_,y,b,F,D,L,V=(null==a||null===(f=a.video)||void 0===f||null===(p=f.gist)||void 0===p?void 0:p.videoImageUrl)||(null==a||null===(g=a.video)||void 0===g||null===(I=g.gist)||void 0===I||null===(w=I.imageGist)||void 0===w?void 0:w.r16x9),R=o.getPlayer(n);if(R.poster(V),pe(n,m),R.on("loadstart",function(){s&&e({status:!0,msg:"Video Loaded",response:a})}),R.on("loadeddata",function(){de(),e({status:!0,msg:"Video Loaded",response:a})}),R.one("play",function(){u&&c<95&&setTimeout(function(){R.currentTime(u)},0)}),R.one("error",function(){var e;t({status:!1,msg:(null==R||null===(e=R.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==a||null===(E=a.video)||void 0===E||null===(T=E.contentDetails)||void 0===T||null===(h=T.closedCaptions)||void 0===h?void 0:h.length)>0||(null==a||null===(_=a.video)||void 0===_||null===(y=_.closedCaptions)||void 0===y?void 0:y.length)>0)b=((null==a||null===(F=a.video)||void 0===F||null===(D=F.contentDetails)||void 0===D?void 0:D.closedCaptions)||(null==a||null===(L=a.video)||void 0===L?void 0:L.closedCaptions)).filter(function(e){return"VTT"===e.format}),d.addCaptions(n,b);else d.removeCaptions(n)}else ae(n,"Incompatible Source, only hls,mp4,drm content is allowed"),t("Incompatible Source, only hls,mp4,drm content is allowed")}).catch(function(e){ge(e,n,t,i)})}));case 11:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),fe=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()},pe=function(e,t){var n=o.getPlayer(e);n&&n.src(t)},ge=function(e,t,n,i){var o,r,l,a,d,s,u=null==e||null===(o=e.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.errorCode,c=(null==e||null===(l=e.response)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.errorMessage)||(null==e?void 0:e.message);ce(t)&&ae(t,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[u])||"".concat(c)),n&&n(Object.assign({status:!1,response:e,msg:"".concat(c)},i&&{videoId:i}))};exports.authenticateLC=ve,exports.baseUrlManager=E,exports.clearError=de,exports.createIdxMapping=function(e){D=new Map,e.map(function(e,t){D.set(e.id,t)})},exports.createSeriesWatchMap=function(e,t){var n=new Map;w({videoId:e,token:t}).then(function(e){e.data.map(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),L=n}).catch(function(e){return console.log(e)})},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=o.getPlayer(e);if(fe(),o.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getAdsURL=te,exports.getCurrentSeries=P,exports.getCurrentVideo=C,exports.getDecodedToken=O,exports.getEntitlementData=function(e,t,n,o){return i({url:n,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:t},withCredentials:!0})},exports.getEpisodeNumber=X,exports.getLinearChannelDetails=p,exports.getSeasonNumber=q,exports.getSeriesDetails=function(e,t){var n,o,r=O(t),l=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})}):i({url:E.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=w,exports.getSeriesWatchMap=function(){return L},exports.getSource=ne,exports.getToken=W,exports.getUpdatedClusterSource=function(e,t){var n=e.src,i=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:i};t=t.replace(/\/$/,"");var o=n.split(".com")[1]||"";return{src:o?"".concat(t).concat(o):n,type:i}},exports.getUserId=k,exports.getVideoDetails=f,exports.getVideoIdx=function(){return F},exports.getVideoInfo=I,exports.handleError=ae,exports.initialiseAdvertisement=ue,exports.initiateErrorHandling=ge,exports.inititateBeacon=function(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=o.getPlayer(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",function(){window.endFirstFrame(n)})}},exports.isPaused=function(e){return n(e).paused()},exports.isPlayerInitialised=ce,exports.isTokenExpired=T,exports.load=me,exports.loadVideo=pe,exports.loadVideoInstantly=function(e,t,n){var i=o.getPlayer(e);return i.src(t),new Promise(function(e,t){var o=0;i.one("loadedmetadata",function(){clearTimeout(o),e({status:!0,msg:"video loaded"})}),i.one("loadstart",function(e){o=setTimeout(function(){t("FAILED: Took too long to load")},n)})})},exports.pause=function(e){n(e).pause()},exports.play=function(e){n(e).play()},exports.refreshTokenManager=_,exports.replaceMacros=Z,exports.rewind=function(e,t){var i=n(e),o=i.currentTime(),r=o<=t?0:o-t;i.currentTime(r)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],s("js",new Date),s("config",e)},exports.saveWatchHistory=g,exports.seasonIdxManager=B,exports.setCurrentSeries=function(e){y=e},exports.setCurrentVideo=x,exports.setVideoIdx=A,exports.setVideoIdxById=N,exports.skip=function(e,t){var i=n(e),o=i.currentTime()+t;i.currentTime(o)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),n=require("video.js"),i=require("axios"),o=require("./skin-3397dca5.js"),r=require("./browser-38ff3331.js"),l=require("js-cookie"),a=require("ua-parser-js"),d=require("./captions-3c7ca3a7.js");function s(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function u(e,t){s("event",e,t)}var c={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"},v={name:"@viewlift/player-backup",version:"2.0.70-smartTv",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","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"},browserslist:["chrome > 38, safari > 7"]};window.vl_player_version=v.version;var m,f=function(e,t){var n,o,r,l,a,d,s,u;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:null!==(a=window)&&void 0!==a&&null!==(d=a.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(s=window)||void 0===s||null===(u=s.customData)||void 0===u?void 0:u.overrideEntitlementBaseUrl)+"/video/status":E.get()+"".concat(null==c?void 0:c.getVideoDetails),params:Object.assign({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":v.version},withCredentials:!0})},p=function(e,t){var n,o,r,l;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:E.get()+c.getLinearChannelDetails,params:Object.assign({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(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===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},g=function(){var n=e(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:return o=e.sent,e.abrupt("return",i({url:E.get()+"".concat(null==c?void 0:c.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:Object.assign({},n),params:Object.assign({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),I=function(e,t){var n,o,r=window.contentType;return i({method:"GET",url:E.get()+"".concat(null==c?void 0:c.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(o=n.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},w=function(e){var t=e.videoId;return i({method:"GET",url:E.get()+"".concat(null==c?void 0:c.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},E=(m=null==c?void 0:c.apiBaseUrl,{set:function(e){e&&(m=e)},get:function(){return m}}),T=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},h=null;function _(){return{set:function(e){e&&(h=e)},get:function(){return h}}}var y,b,F,D,L,V,R=function(){var n=e(t.mark(function e(){var n,o,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=_().get(),o=E.get(),e.prev=2,e.next=5,i({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return r=e.sent,e.abrupt("return",r);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 n.apply(this,arguments)}}(),S=null,W=function(){var n=e(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"))||!T(n)){e.next=6;break}return S||(S=R().then(function(e){var t,i,o=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&_().set(r),o||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){S=null})),e.abrupt("return",S);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return n.apply(this,arguments)}}(),O=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},x=function(e){b=e},C=function(){return b},P=function(){return y},A=function(e){F=e},N=function(e){if(D){var t=D.get(e);A(t+1)}},B=(V=0,{set:function(e){e>=0&&(V=e)},get:function(){return V}}),M=0,U=function(){var e,t,n,i,o,r,l,a=C();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==a||null===(o=a.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function j(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function k(){var e=window.sessionStorage.getItem("uid");return e||(e=j(),window.sessionStorage.setItem("uid",e),e)}function H(){return G.apply(this,arguments)}function G(){return(G=e(t.mark(function e(){var n,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(n.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(e){return e?String(e):""}window.initialise=function(e){window.sid=j(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",function(){var n,i,o,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,u(r?"FAILED_TO_START":"DROPPED_STREAM",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,t){e.one("play",tryCatch(function(){var n,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),u("PLAY",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":U(),watchTime:Math.floor(e.currentTime())})}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("vjs-waiting")&&M<4)M++,u("BUFFERING",Object.assign({pfm:window.platform,uid:k(),vid:U(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,u("FIRST_FRAME",Object.assign({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),vid:U()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.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 t,n,i,o,r,l;u("AD_REQUEST",Object.assign({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),vid:U(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),u("AD_IMPRESSION",Object.assign({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:k(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:U()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.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 t=[];e.on("timeupdate",function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!t.includes(n)&&(M=0,t.push(n),fireEvent({eventName:"PING",videoPosition:n,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 t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),l=i.end(o);if(Y(t,r,l)){var a=Math.round(n-l);if(isFinite(a))return a}}})()};var Y=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var n=e(t.mark(function e(n){var o,r,l,a,d,s,u,v,m,f,p,g,I,w,T,h,_,y,b,F;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:return h=e.sent,_=O(h),y=null==_?void 0:_.site,b=null==_?void 0:_.siteId,e.t0=Object,e.t1={aid:y,cid:b,pfm:window.platform},e.t2=null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params,e.t3=k(),e.t4=U(),e.t5=n.url||document.location.href,e.t6=n.ref||document.referrer,e.t7=n.eventName,e.t8=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t9=window.environment,e.t10=n.dp1||"",e.t11=n.dp2||"",e.t12=n.dp3||"",e.t13=n.dp4||"",e.t14=n.dp5||"",e.t15=!0===n.isAdEvent?n.videoPosition:null,e.t16=!0===n.isAdEvent?z(n.adPosition):"",e.next=25,H();case 25:e.t17=e.sent,e.t18=n.playerType||"native",e.t19=n.mediaType||"VIDEO",e.t20=window.sid,e.t21=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t22=null!==(s=n.bitrate)&&void 0!==s?s:null,e.t23=null!==(u=n.resHeight)&&void 0!==u?u:null,e.t24=null!==(v=n.resWidth)&&void 0!==v?v:null,e.t25=null!==(m=n.bufferHealth)&&void 0!==m?m:null,e.t26={uid:e.t3,vid:e.t4,url:e.t5,ref:e.t6,pa:e.t7,vpos:e.t8,environment:e.t9,dp1:e.t10,dp2:e.t11,dp3:e.t12,dp4:e.t13,dp5:e.t14,apos:e.t15,apod:e.t16,profid:e.t17,player:e.t18,media_type:e.t19,stream_id:e.t20,embedurl:"",ttfirstframe:e.t21,bitrate:e.t22,connectionspeed:null,resolutionheight:e.t23,resolutionwidth:e.t24,bufferhealth:e.t25},e.t27=(null==n?void 0:n.duration)&&{duration:n.duration},e.t28=null===(f=window)||void 0===f||null===(p=f.customData)||void 0===p||null===(g=p.beacon)||void 0===g?void 0:g.params,e.t29=e.t0.assign.call(e.t0,e.t1,e.t2,e.t26,e.t27,e.t28),F=[e.t29],i({url:(null===(I=window)||void 0===I||null===(w=I.customData)||void 0===w||null===(T=w.beacon)||void 0===T?void 0:T.url)||E.get()+c.getBeaconUrl,method:"post",headers:{Authorization:h},contentType:"application/x-www-form-urlencoded",dataType:"text",data:F}).catch(function(e){console.error(e)});case 40:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var q=function(){var e=B.get();return e>=0?e+1:1},X=function(){var e,t,n,i=P(),o=C(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,l=B.get(),a=null==i||null===(t=i[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};window._deviceInfo=a.UAParser(navigator.userAgent);var J=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},K=function(e){var t=Q(e,"video.tags",[]),n=Q(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map(function(e){return e.title}).join(","):n},Q=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},Z=function(){var e,t,n,i,r,a,d,s,u,c,v,m,f,p,g,I,w,E,T,h,_,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1?arguments[1]:void 0,F=arguments.length>2?arguments[2]:void 0,D=(null==F?void 0:F.siteName)||"",L=(null==F?void 0:F.contentType)||"video",V=(null==F||null===(e=F[L])||void 0===e?void 0:e.metadata)||(null==F||null===(t=F[L])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),R=o.getPlayer(b);if(!y.includes("VIEWLIFT_"))return y;var S,W=window.getComputedStyle(document.getElementById(b),null),O=Math.trunc(W.getPropertyValue("height").slice(0,-2)),x=Math.trunc(W.getPropertyValue("width").slice(0,-2)),C="linearchannel"===L?null==F||null===(i=F.linearchannel)||void 0===i||null===(r=i.channels)||void 0===r||null===(a=r.find(function(e){return(null==e?void 0:e.id)===(null==F?void 0:F.channelId)}))||void 0===a||null===(d=a.content)||void 0===d?void 0:d.id:Q(F,"video.gist.id",""),P="linearchannel"===L?null==F||null===(s=F.linearchannel)||void 0===s||null===(u=s.channels)||void 0===u||null===(c=u.find(function(e){return(null==e?void 0:e.id)===(null==F?void 0:F.channelId)}))||void 0===c?void 0:c.title:Q(F,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),A=null,N=null;"function"==typeof window.__gpp&&(null===(S=window)||void 0===S||S.__gpp("ping",function(e){A=null==e?void 0:e.gppString,N=null==e?void 0:e.sectionList[0]}));var B=Object.assign({},$(V),{VIEWLIFT_WIDTH:x,VIEWLIFT_HEIGHT:O,VIEWLIFT_SIZE:J(x,O),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===(v=window)||void 0===v?void 0:v.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:Q(F,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==R||null===(m=R.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==R||null===(f=R.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==D?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:K(F),VIEWLIFT_MEDIA_ID:C,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(Q(F,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:C,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+Q(F,"video.gist.permalink","")),VIEWLIFT_CONSENT:l.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:Q(null===(p=window)||void 0===p||null===(g=p.app_data)||void 0===g||null===(I=g.site)||void 0===I?void 0:I.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==D?"":Q(null===(w=window)||void 0===w||null===(E=w.app_data)||void 0===E||null===(T=E.site)||void 0===T?void 0:T.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:Q(F,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:C,VIEWLIFT_CONTENT_TITLE:P,VIEWLIFT_CONTENT_SERIES_TITLE:Q(F,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:Q(F,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:X(),VIEWLIFT_SEASON_NUMBER:q(),VIEWLIFT_CONTENT_TAGS:K(F),VIEWLIFT_GPP_SID:N||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:A||"VIEWLIFT_GPP",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},null===(h=window)||void 0===h||null===(_=h.customData)||void 0===_?void 0:_.macros);for(var M in B){var U=new RegExp(M,"g");y=y.replace(U,B[M])}return y},$=function(e){var t,n,i,o,l,a,d;if(null!==(t=window)&&void 0!==t&&t.customData.isSmartTV)return ee(s);var s={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){u.set(e.name,e.value)}));var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.subscription)||void 0===o?void 0:o.SVOD)||!1,v=(null===(l=window)||void 0===l||null===(a=l.customData)||void 0===a||null===(d=a.subscription)||void 0===d?void 0:d.TVE)||!1;return c||v?(r.isMobile()?c?s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):c?s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),c?s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):v&&(s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),s=r.isMobile()?Object.assign({},s,{VIEWLIFT_PROF:u.get("prof.mweb")||""}):Object.assign({},s,{VIEWLIFT_PROF:u.get("prof.web")||""})):(s=Object.assign({},s,{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),s=r.isMobile()?Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):Object.assign({},s,{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),s=Object.assign({},s,{VIEWLIFT_AFID:u.get("afid")})},ee=function(e){var t,n,i,o,r,l,a={},d=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){d.set(e.name,e.value)}));var s=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,u=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return(s||u)&&(u?(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.tve")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.tve")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.tve")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.tve")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.tve")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.tve")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""})):(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.dtc")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.dtc")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.dtc")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.dtc")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""}))),a},te=function(e){var t=null;try{var n,i,o,r,l,a,d,s,u,c,v,m,f,p,g,I,w,E,T,h,_,y,b,F,D,L,V,R,S;if(null!==(n=window)&&void 0!==n&&n.customData.isSmartTV){if("samsungTv"==window.customData.device&&null!=e&&null!==(i=e.ads)&&void 0!==i&&null!==(o=i.preRoll)&&void 0!==o&&null!==(r=o.adTags)&&void 0!==r&&null!==(l=r.samsung_tv)&&void 0!==l&&l.active)t=null==e||null===(E=e.ads)||void 0===E||null===(T=E.preRoll)||void 0===T||null===(h=T.adTags)||void 0===h||null===(_=h.samsung_tv)||void 0===_?void 0:_.url;else if("lgTv"==window.customData.device&&null!=e&&null!==(a=e.ads)&&void 0!==a&&null!==(d=a.preRoll)&&void 0!==d&&null!==(s=d.adTags)&&void 0!==s&&null!==(u=s.lg_tv)&&void 0!==u&&u.active){var W,O,x,C;t=null==e||null===(W=e.ads)||void 0===W||null===(O=W.preRoll)||void 0===O||null===(x=O.adTags)||void 0===x||null===(C=x.lg_tv)||void 0===C?void 0:C.url}else if("vizioTv"==window.customData.device&&null!=e&&null!==(c=e.ads)&&void 0!==c&&null!==(v=c.preRoll)&&void 0!==v&&null!==(m=v.adTags)&&void 0!==m&&null!==(f=m.vizioTv)&&void 0!==f&&f.active){var P,A,N,B;t=null==e||null===(P=e.ads)||void 0===P||null===(A=P.preRoll)||void 0===A||null===(N=A.adTags)||void 0===N||null===(B=N.vizioTv)||void 0===B?void 0:B.url}else if("xbox"==window.customData.device&&null!=e&&null!==(p=e.ads)&&void 0!==p&&null!==(g=p.preRoll)&&void 0!==g&&null!==(I=g.adTags)&&void 0!==I&&null!==(w=I.xbox)&&void 0!==w&&w.active){var M,U,j,k;t=null==e||null===(M=e.ads)||void 0===M||null===(U=M.preRoll)||void 0===U||null===(j=U.adTags)||void 0===j||null===(k=j.xbox)||void 0===k?void 0:k.url}}else t=(null==e||null===(y=e.ads)||void 0===y||null===(b=y.preRoll)||void 0===b||null===(F=b.adTags)||void 0===F||null===(D=F.web)||void 0===D?void 0:D.active)&&(null==e||null===(L=e.ads)||void 0===L||null===(V=L.preRoll)||void 0===V||null===(R=V.adTags)||void 0===R||null===(S=R.web)||void 0===S?void 0:S.url)}catch(e){}return t},ne=function(e,t){var n,i,o,l,a,d,s,u,c,v,m,f,p,g=(null==e?void 0:e.contentType)||"video",I=null==e||null===(n=e[g])||void 0===n?void 0:n.drmEnabled,w=null==e||null===(i=e[g])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(l=e[g])||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.audioAssets,T=(null==e||null===(d=e[g])||void 0===d||null===(s=d.streamingInfo)||void 0===s||null===(u=s.videoAssets)||void 0===u?void 0:u.hls)||!1;null==e||null===(c=e[g])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var h=(null==e||null===(m=e[g])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return oe(E);if(I){var _=re(w,t);return _.src=Z(_.src,t,e),_}if("Safari"!==r.detectBrowser()&&h)return ie(w);if(T){var y=oe(w);return y.src=Z(y.src,t,e),y}if(null!=w&&w.mpeg){var b=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(w);return b.src=Z(b.src,t,e),b}return null},ie=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},oe=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},re=function(e,t){var i=e.fairPlayCmaf||e.fairPlay,l=e.widevine,a=e.playReady,d=r.detectBrowser();if(o.getPlayer(t),"Safari"===d){var s=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,i){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};n.xhr(o,function(e,t,n){console.log(e),e&&i(e),i(null,new Uint8Array(n))})},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,i,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};n.xhr(l,function(e,t,n){console.log(e),e&&r(e),r(null,n)})}}}}}(i);return le(t),s}var u,c={src:l.url,type:"application/dash+xml"};return"caliente"==(null===(u=window)||void 0===u?void 0:u.siteName)?(le(t),c.keySystems={"com.widevine.alpha":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var le=function(e){var t=o.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==r.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},ae=function(e,t){if(Promise.resolve().then(function(){return require("./error-26d5a3c3.js")}).then(function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)}),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},de=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var se=!1,ue=function(e,t,n){var i=Z(t,e,n),r=o.getPlayer(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,i,r,l=o.getPlayer(e);if(null!==l.el_){se=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),se&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,t,!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 s="click",u=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(u=!0,s="touchend"),l.one(s,function(){u&&l.ima.initializeAdDisplayContainer()});var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(r=i.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){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,i)}},ce=function(e){return!!n.getPlayer("".concat(e))},ve=function(){var n=e(t.mark(function e(n,i){var r,l,a,d=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]&&d[2],e.next=3,W();case 3:return l=e.sent,a=o.getPlayer(n),e.abrupt("return",new Promise(function(e,t){p(i,l).then(function(t){var o=null==t?void 0:t.data;window.sid=j(),o.contentType="linearchannel",o.channelId=null==i?void 0:i.channelId;var l=ne(o,n);x(o),l&&r?(pe(n,l),a.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:o})})):e({status:!0,msg:"Feed authenticated",response:o})}).catch(function(e){t({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),me=function(){var n=e(t.mark(function e(n,i){var r,l,a,s,u,c,v=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=v.length>2&&void 0!==v[2]?v[2]:null){e.next=5;break}return e.next=4,W();case 4:s=e.sent;case 5:return(P()||null)&&N(i),u=0,c=0,null!==(r=window)&&void 0!==r&&r.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(a=l.watchHistory)&&void 0!==a&&a.enable&&I(i,s).then(function(e){var t,n,i,o,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),u=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,c=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null}).catch(function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))}),e.abrupt("return",new Promise(function(e,t){f(i,s).then(function(i){var r,l,a=null==i?void 0:i.data,s=(null==a||null===(r=a.video)||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1;x(i.data);var v=te(a);v&&ue(n,v,a);var m=ne(a,n);if(m){var f,p,g,I,w,E,T,h,_,y,b,F,D,L,V=(null==a||null===(f=a.video)||void 0===f||null===(p=f.gist)||void 0===p?void 0:p.videoImageUrl)||(null==a||null===(g=a.video)||void 0===g||null===(I=g.gist)||void 0===I||null===(w=I.imageGist)||void 0===w?void 0:w.r16x9),R=o.getPlayer(n);if(R.poster(V),pe(n,m),R.on("loadstart",function(){s&&e({status:!0,msg:"Video Loaded",response:a})}),R.on("loadeddata",function(){de(),e({status:!0,msg:"Video Loaded",response:a})}),R.one("play",function(){u&&c<95&&setTimeout(function(){R.currentTime(u)},0)}),R.one("error",function(){var e;t({status:!1,msg:(null==R||null===(e=R.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==a||null===(E=a.video)||void 0===E||null===(T=E.contentDetails)||void 0===T||null===(h=T.closedCaptions)||void 0===h?void 0:h.length)>0||(null==a||null===(_=a.video)||void 0===_||null===(y=_.closedCaptions)||void 0===y?void 0:y.length)>0)b=((null==a||null===(F=a.video)||void 0===F||null===(D=F.contentDetails)||void 0===D?void 0:D.closedCaptions)||(null==a||null===(L=a.video)||void 0===L?void 0:L.closedCaptions)).filter(function(e){return"VTT"===e.format}),d.addCaptions(n,b);else d.removeCaptions(n)}else ae(n,"Incompatible Source, only hls,mp4,drm content is allowed"),t("Incompatible Source, only hls,mp4,drm content is allowed")}).catch(function(e){ge(e,n,t,i)})}));case 11:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),fe=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()},pe=function(e,t){var n=o.getPlayer(e);n&&n.src(t)},ge=function(e,t,n,i){var o,r,l,a,d,s,u=null==e||null===(o=e.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.errorCode,c=(null==e||null===(l=e.response)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.errorMessage)||(null==e?void 0:e.message);ce(t)&&ae(t,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[u])||"".concat(c)),n&&n(Object.assign({status:!1,response:e,msg:"".concat(c)},i&&{videoId:i}))};exports.authenticateLC=ve,exports.baseUrlManager=E,exports.clearError=de,exports.createIdxMapping=function(e){D=new Map,e.map(function(e,t){D.set(e.id,t)})},exports.createSeriesWatchMap=function(e,t){var n=new Map;w({videoId:e,token:t}).then(function(e){e.data.map(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),L=n}).catch(function(e){return console.log(e)})},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=o.getPlayer(e);if(fe(),o.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getAdsURL=te,exports.getCurrentSeries=P,exports.getCurrentVideo=C,exports.getDecodedToken=O,exports.getEntitlementData=function(e,t,n,o){return i({url:n,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:t},withCredentials:!0})},exports.getEpisodeNumber=X,exports.getLinearChannelDetails=p,exports.getSeasonNumber=q,exports.getSeriesDetails=function(e,t){var n,o,r=O(t),l=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})}):i({url:E.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=w,exports.getSeriesWatchMap=function(){return L},exports.getSource=ne,exports.getToken=W,exports.getUpdatedClusterSource=function(e,t){var n=e.src,i=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:i};t=t.replace(/\/$/,"");var o=n.split(".com")[1]||"";return{src:o?"".concat(t).concat(o):n,type:i}},exports.getUserId=k,exports.getVideoDetails=f,exports.getVideoIdx=function(){return F},exports.getVideoInfo=I,exports.handleError=ae,exports.initialiseAdvertisement=ue,exports.initiateErrorHandling=ge,exports.inititateBeacon=function(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=o.getPlayer(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",function(){window.endFirstFrame(n)})}},exports.isPaused=function(e){return n(e).paused()},exports.isPlayerInitialised=ce,exports.isTokenExpired=T,exports.load=me,exports.loadVideo=pe,exports.loadVideoInstantly=function(e,t,n){var i=o.getPlayer(e);return i.src(t),new Promise(function(e,t){var o=0;i.one("loadedmetadata",function(){clearTimeout(o),e({status:!0,msg:"video loaded"})}),i.one("loadstart",function(e){o=setTimeout(function(){t("FAILED: Took too long to load")},n)})})},exports.pause=function(e){n(e).pause()},exports.play=function(e){n(e).play()},exports.refreshTokenManager=_,exports.replaceMacros=Z,exports.rewind=function(e,t){var i=n(e),o=i.currentTime(),r=o<=t?0:o-t;i.currentTime(r)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],s("js",new Date),s("config",e)},exports.saveWatchHistory=g,exports.seasonIdxManager=B,exports.setCurrentSeries=function(e){y=e},exports.setCurrentVideo=x,exports.setVideoIdx=A,exports.setVideoIdxById=N,exports.skip=function(e,t){var i=n(e),o=i.currentTime()+t;i.currentTime(o)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
@@ -1 +0,0 @@
1
- "use strict";exports.BackIcon=function(){return'<svg width="13" height="13" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},exports.BroadcastIcon=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},exports.CaptionsSvgV2=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},exports.EpisodesSvg=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.MaximizeSvg=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z' />\n <path fill='").concat(n||"white","' d='M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z' />\n </svg>")},exports.MinimizeSvg=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z' />\n <path fill='").concat(n||"white","' d='M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z' />\n </svg>")},exports.NewCaptionsSvg=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.PlayNextEpisodeSvg=function(n){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(n,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(n,' />\n <rect x="18" width="2" height="20" fill=').concat(n," />\n </svg>")},exports.PlaylistIcon=function(){return'<svg version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="17" height="17" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet">\n \n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="white" stroke="none">\n <path d="M340 4674 c-46 -20 -77 -50 -103 -99 -22 -40 -22 -45 -25 -754 -3\n -813 -5 -788 72 -859 69 -64 158 -77 238 -36 17 9 232 177 478 374 492 394\n 490 392 490 499 0 60 -23 112 -72 158 -62 60 -863 695 -900 714 -45 23 -128\n 25 -178 3z"/>\n <path d="M2045 4673 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M2045 3393 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M340 2114 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186\n 3 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n <path d="M340 834 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186 3\n 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n </g>\n </svg>'},exports.RewindSvg=function(n){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'').concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'').concat(window.color||"white","' />\n </svg>")},exports.RewindSvgV2=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},exports.SelectedStream=function(){return'<svg class=\'selected-stream\' width="25" height="25" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},exports.SettingsSvg=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.SettingsSvgV2=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},exports.SkipSvg=function(n){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'').concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'').concat(window.color?window.color:"white","' />\n </svg>")},exports.SkipSvgV2=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},exports.TickMarkIcon=function(){return'<svg width="28" height="28" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">\n <path d="M21 10L11 20L7 16" stroke="white" stroke-width="2" fill="none"/>\n </svg>'},exports.crossIconSvg=function(){return'<svg width="13" height="13" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '};
@@ -1 +0,0 @@
1
- "use strict";var e,t,n,r,i=require("./skin-3397dca5.js"),a=require("./generic-c3ef1a4c.js"),l=require("./autoNextVideo-1f49211b.js"),o=require("@babel/runtime/helpers/typeof"),u=require("video.js"),s=require("@babel/runtime/helpers/asyncToGenerator"),c=require("@babel/runtime/regenerator"),d=require("@babel/runtime/helpers/defineProperty"),p=require("@babel/runtime/helpers/slicedToArray"),v=[],m=function(e,t){var n=i.getPlayer(e),r=Math.floor(n.currentTime());if(Math.floor(n.duration())!=r){n.pause(e);var o=a.getVideoIdx();l.switchToNext(o,e,v)}};e={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},t=function e(){var t,n,r,i,a;for(r in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(a in i=t[r])i.hasOwnProperty(a)&&("object"===o(i[a])?n[a]=e(n[a],i[a]):n[a]=i[a]);return n},n=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},r=function e(t){return"HTML"!==t.nodeName&&"static"===n(t)("position")?e(t.offsetParent):t},u.registerPlugin("thumbnails",function(i){var a,l,o,u,s,c,d,p,v,m;if(u=t({},e,i),c=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=c.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(o=document.createElement("div")).className="vjs-thumbnail-holder",s=document.createElement("img"),o.appendChild(s),s.src=u[0].src,s.className="vjs-thumbnail",t(s.style,u[0].style),s.style.left||s.style.right||(s.onload=function(){s.style.left=-s.naturalWidth/2+"px"}),p=c.duration(),c.on("durationchange",function(e){p=c.duration()}),c.on("loadedmetadata",function(e){p=c.duration()}),(d=c.controlBar.progressControl).el().appendChild(o),v=function(e){var i,a,l,c,v,m,f,g,h,b;for(a in l=0,h=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,f=((b=r(d.el()).getBoundingClientRect()).width||b.right)+h,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),c=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c-=r(d.el()).getBoundingClientRect().left+h,i=Math.floor((c-d.el().offsetLeft)/d.width()*p),u)i>a&&(l=Math.max(l,a));(v=u[l]).src&&s.src!=v.src&&(s.src=v.src),v.style&&s.style!=v.style&&t(s.style,v.style),c+(g=function(e,t){var r;return t?parseFloat(t):"auto"!==(r=n(e)("clip"))&&"inherit"!==r&&4===(r=r.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(r[1])-parseFloat(r[3]):0}(s,v.width||u[0].width)/2)>f?c-=c+g-f:c<g&&(c=g),o.style.left=c+"px"},null!==(a=window)&&void 0!==a&&null!==(l=a.customData)&&void 0!==l&&l.isSmartTV){var f=function(){var e,t,n=0,r=(null===(e=d.el_.children[0].children[2])||void 0===e?void 0:e.offsetWidth)||5;r<65?r=5:r>=c.el().offsetWidth-180?r=c.el().offsetWidth-240:r-=58;var i=c.currentTime();for(t in u)i>t&&(n=Math.max(n,t));var a=u[n];a.uri&&""!=a.uri&&s.src!=a.uri?(s.src=a.uri,o.style.left=r+"px",s.style.opacity="1"):(o.style.left="-1000px",s.style.opacity="0")},g=null;d.el_.children[0].onfocus=function(){f(),g=setInterval(function(){f()},250)},d.el_.children[0].addEventListener("blur",function(){try{o.style.left="-1000px",s.style.opacity="0",g&&(clearInterval(g),g=null)}catch(e){}})}else d.on("mousemove",v),d.on("touchmove",v);function h(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",h),m()}d.on("pointerdown",function(e){document.addEventListener("pointermove",v),document.addEventListener("pointerup",h)}),m=function(e){o.style.left="-1000px"},d.on("mouseout",m),d.on("touchcancel",m),d.on("touchend",m),c.on("userinactive",m)});var f="my-player";function g(e){var t=e.split("\n"),n=[];return t.forEach(function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};t.forEach(function(e){e.includes("RESOLUTION")&&(r.resolution=e.split("=")[1]),e.includes("URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))}),n.push(r)}}),n}function h(){return(h=s(c.mark(function e(t){var n,r,i,a,l,o,u,s,d,v,m,f,g,h,b,y,x,w,A,E,N,k,T,I;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return n=e.sent,e.next=8,n.blob();case 8:return r=e.sent,e.next=11,createImageBitmap(r);case 11:for(i=e.sent,a=t.layout.split("x").map(Number),l=p(a,2),o=l[0],u=l[1],s=i.width/u,d=i.height/o,v=[],m=0;m<o;m++)for(f=0;f<u;f++)(g=document.createElement("canvas")).width=s,g.height=d,g.getContext("2d").drawImage(i,f*s,m*d,s,d,0,0,s,d),h=g.toDataURL("image/png"),v.push({uri:h,duration:t.duration}),t._tiles=v;return e.abrupt("return",v);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=p(b,2),x=y[0],w=y[1],A=[],E=0;E<x*w;E++)A.push({uri:null===(N=window)||void 0===N||null===(k=N.app_data)||void 0===k||null===(T=k.appcmsMain)||void 0===T||null===(I=T.images)||void 0===I?void 0:I.placeholderCover,duration:t.duration});return e.abrupt("return",A);case 26:case"end":return e.stop()}},e,null,[[2,20]])}))).apply(this,arguments)}function b(e,t){return y.apply(this,arguments)}function y(){return(y=s(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f=n,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:return i=e.sent,e.abrupt("return",g(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}},e,null,[[1,11]])}))).apply(this,arguments)}function x(e,t,n){var r=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),a=i.getPlayer(f);if(r&&a){var l=r.getBoundingClientRect(),o=(e.clientX-l.left)/l.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,a=t.length-1;for(;i<=a;){var l=Math.floor((i+a)/2),o=t[l];if(o===e)return o;o<e?i=l+1:a=l-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[a])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(o*a.duration()),n),s=t[u];s&&!s.loading&&(s.loading=!0,function(e){return h.apply(this,arguments)}(s).then(function(e){var t=e[s.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&t.uri&&(n.src=t.uri),s.loading=!1,s.src=t.uri}))}}function w(e){return A.apply(this,arguments)}function A(){return(A=s(c.mark(function e(t){var n,r,a,l;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach(function(e,t){for(var r=e.layout.split("x").map(Number),i=p(r,2),a=i[0]*i[1],l=e.duration,o=0;o<a;o++){var u,s=Math.round((t*a+o)*l);n[s]=Object.assign({},e,{duration:e.duration,tileIndex:o,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},d(u,"left","-60px"),d(u,"border","1px solid transparent"),d(u,"borderRadius","4px"),u)})}}),r=Object.keys(n).map(Number).sort(function(e,t){return e-t}),null==(a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||a.addEventListener("mousemove",i.throttle(function(e){return x(e,n,r)},500)),null==(l=document.querySelector(".vjs-progress-control.vjs-control"))||l.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",i.throttle(function(e){return x(e,n,r)},500))}),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var E=function(){var e=s(c.mark(function e(t,n){var r,i,a,l,o,u,s,d;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:i=e.sent,a=i.split("\n").map(function(e){return e.trim()}),l=[],o=null,u=0;case 10:if(!(u<(null==a?void 0:a.length))){e.next=27;break}if(!(s=a[u]).startsWith("#EXT-X-TILES")){e.next=19;break}o={resolution:null,duration:null,uri:null,layout:null},d=s.split(":")[1]||"",d.split(",").forEach(function(e){var t=e.split("="),n=p(t,2),r=n[0],i=n[1];r&&i&&(o[r.trim().toLowerCase()]=i.trim())}),e.next=24;break;case 19:if(!s.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(s.includes("jpg")||s.includes("png")||s.includes("jpeg"))&&(o.uri=s.includes("http")?s:t+s,l.push(o),o=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",l);case 28:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();function N(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function k(e,t){return T.apply(this,arguments)}function T(){return(T=s(c.mark(function e(t,n){var r,l,o,u,s,d,v,m,g,h,b,y,x,w,A,E,k,T,L,B,j,M,S,P,R,q,O,$,X,D,V,_,F,U,W,G,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,ae,le,oe,ue,se,ce,de,pe,ve,me;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f=n,r=i.getPlayer(n),l=t.split("/"),o=l.findIndex(function(e){return"dash"===e.toLowerCase()}),u=N(-1!==o?l.slice(0,o+1).join("/"):new URL(t).origin),e.prev=5,e.next=8,fetch(t);case 8:return m=e.sent,e.next=11,m.text();case 11:g=e.sent,h=new DOMParser,b=h.parseFromString(g,"application/xml"),y=(null==r?void 0:r.duration())||(null===(s=a.getCurrentVideo())||void 0===s||null===(d=s.video)||void 0===d?void 0:d.runtime),x=(null==b||null===(v=b.querySelector("MPD > BaseURL"))||void 0===v?void 0:v.textContent)||u+"/",w=b.getElementsByTagName("AdaptationSet"),A=0;case 18:if(!(A<w.length)){e.next=72;break}if(("image"!==(E=w[A]).getAttribute("contentType")||"image/png"!==E.getAttribute("mimeType"))&&"image/jpeg"!==E.getAttribute("mimeType")){e.next=69;break}if(T=E.getElementsByTagName("SegmentTemplate")[0],L=null===(k=T.getElementsByTagName("SegmentTimeline"))||void 0===k?void 0:k[0],!T||!L){e.next=48;break}if(M=L.getElementsByTagName("S"),S=parseInt(null===(B=M[0])||void 0===B?void 0:B.getAttribute("t")),P=parseInt(null===(j=M[0])||void 0===j?void 0:j.getAttribute("d")),R=E.getElementsByTagName("Representation")[0],q=R.getElementsByTagName("EssentialProperty")[0],O=q.getAttribute("value"),$=null==O?void 0:O.split("x"),X=p($,2),D=X[0],V=X[1],!T){e.next=46;break}if(T.getAttribute("media"),_=T.getAttribute("timescale"),F=(_?P/_:P)/(D*V),U=R.getAttribute("id"),W=Math.round(y/F),G=Math.ceil(W/(D*V)),z=T.getAttribute("media"),parseInt(T.getAttribute("startNumber")),!isNaN(parseInt(G))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],A=0;A<G;A++)Y="/"==(Q=z)[0]?new URL(u).origin:u+"/",H.push({duration:F,layout:O,uri:Y+Q.replace("$Time$",S+A*P).replace("$RepresentationID$",U)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(J=E.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=p(ee,2),ne=te[0],re=te[1],!T){e.next=69;break}if(T.getAttribute("media"),ie=T.getAttribute("duration"),ae=T.getAttribute("timescale"),le=(ae?ie/ae:ie)/(ne*re),oe=J.getAttribute("id"),ue=Math.round(y/le),se=Math.ceil(ue/(ne*re)),ce=T.getAttribute("media"),de=parseInt(T.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],ve=I(ce),A=0;A<se;A++)me=ve?C(ve,A+de):ce,pe.push({duration:le,layout:Z,uri:x+me.replace("$Number$",A+de).replace("$RepresentationID$",oe)});return e.abrupt("return",pe);case 69:A++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}},e,null,[[5,76]])}))).apply(this,arguments)}function I(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function C(e,t){var n=e.match(/%0(\d+)d/);if(!n)return e;var r=parseInt(n[1],10),i=String(t).padStart(r,"0");return e.replace(/\$Number%0\d+d\$/,i)}function L(){return(L=s(c.mark(function e(t){var n,r,a,l,o,u,s,d,p,v,m,f,g,h,y,x;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=i.getPlayer(t),s=u.currentSource(),d=s.src,d=null!==(n=d)&&void 0!==n&&n.includes("blob")?null===(r=window)||void 0===r||null===(a=r.player)||void 0===a?void 0:a.getSource():d,null===(l=d)||void 0===l||!l.includes("m3u8")){e.next=19;break}return e.next=6,b(d,t);case 6:if(!((null==(p=e.sent)?void 0:p.length)>0)){e.next=17;break}return v=(null==p?void 0:p[0])||null,m=v.uri,f=d.substring(0,d.lastIndexOf("/"))+"/",e.next=12,E(f,m);case 12:return g=e.sent,e.next=15,w(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(o=d)||void 0===o||!o.includes("mpd")){e.next=28;break}return e.next=22,k(d,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,w(y);case 26:x=e.sent,u.thumbnails(x);case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}exports.addNextEpPreview=function(e,t){var n;if(null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var r;v=[];var l=a.getCurrentSeries();null==l||l.map(function(e){var t;return(t=v).push.apply(t,e.episodes)}),null==t||null===(r=t.series)||void 0===r||r.cb}else{var o,u;v=(null==t||null===(o=t.relatedVideos)||void 0===o?void 0:o.content)||[],null==t||null===(u=t.relatedVideos)||void 0===u||u.cb}var s=i.getPlayer(e);s.on("timeupdate",function(){var e,t,n=Math.floor(s.currentTime()),r=s.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&a.getVideoIdx()<=(null===(t=v)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")});var c,d=v.filter(function(e,t){return t==a.getVideoIdx()});if((null==d?void 0:d.length)>0)if(null!==(c=document.getElementsByClassName("next-ep-preview"))&&void 0!==c&&c[0]){var p,f,g,h,b,y,x,w,A,E,N,k;(null===(p=document.getElementsByClassName("next-ep-preview"))||void 0===p?void 0:p[0]).style.visibility="hidden";var T=null===(f=document.getElementsByClassName("next-ep-title"))||void 0===f?void 0:f[0],I=null===(g=document.getElementsByClassName("next-ep-img"))||void 0===g?void 0:g[0],C=null===(h=document.getElementsByClassName("next-ep-content"))||void 0===h?void 0:h[0],L=null===(b=d[0])||void 0===b?void 0:b.title;(null===(y=L)||void 0===y?void 0:y.length)>60&&(L=L.substr(0,60)+"..."),T.textContent="".concat(L),I.src=(null===(x=d[0])||void 0===x||null===(w=x.gist)||void 0===w||null===(A=w.imageGist)||void 0===A?void 0:A.r16x9)||(null==d||null===(E=d[0])||void 0===E?void 0:E.img)||(null===(N=window)||void 0===N||null===(k=N.customData)||void 0===k?void 0:k.fallbackImage),C.onclick=function(){return m(e)}}else{var B,j,M,S,P,R,q,O,$=document.createElement("div");$.className="next-ep-preview",$.style.visibility="hidden",document.getElementById(e).append($);var X=document.createElement("div");X.className="next-ep-header",X.textContent="Next up";var D=null===(B=d[0])||void 0===B?void 0:B.title,V=document.createElement("img");V.className="next-ep-img",V.src=(null===(j=d[0])||void 0===j||null===(M=j.gist)||void 0===M||null===(S=M.imageGist)||void 0===S?void 0:S.r16x9)||(null==d||null===(P=d[0])||void 0===P?void 0:P.img)||(null===(R=window)||void 0===R||null===(q=R.customData)||void 0===q?void 0:q.fallbackImage);var _=document.createElement("div");_.className="next-ep-title",(null===(O=D)||void 0===O?void 0:O.length)>60&&(D=D.substr(0,60)+"..."),_.textContent="".concat(D);var F=document.createElement("div");F.className="next-ep-content",F.append(V),F.append(_),F.onclick=function(){return m(e)},$.append(X),$.append(F)}},exports.addTVProviderImage=function(e,t){var n=i.getPlayer(e),r=null==t?void 0:t.tvProviderLogoUrl;if(r){var a=document.createElement("div");a.className="tvProviderImage";var l=document.createElement("img");l.src="".concat(r),l.alt="Provider Image",a.append(l),n.el().appendChild(a),n.on("useractive",function(){a.classList.remove("vjs-fade")}),n.on("userinactive",function(){n.paused()||a.classList.add("vjs-fade")}),n.on("fullscreenchange",function(){n.isFullscreen_?a.style.top="3.2rem":a.style.top="1rem"})}},exports.initiateTrickplay=function(e){return L.apply(this,arguments)};
@@ -1 +0,0 @@
1
- "use strict";require("video.js/dist/video-js.min.css");var e=require("./generic-c3ef1a4c.js"),n=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),o=require("video.js"),i=require("./util-c1962d91.js"),r=require("./captions-3c7ca3a7.js"),l=require("./skin-3397dca5.js"),a=require("./renditions-26c6d0df.js"),s=require("./resolution-5a0df2be.js"),u=require("./browser-38ff3331.js"),d=require("./localisation-56e0a999.js"),c=require("@babel/runtime/helpers/defineProperty"),v=require("@babel/runtime/helpers/typeof"),f=require("@babel/runtime/helpers/slicedToArray"),p=function(e){return new Promise(function(n,t){if(m(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)}})},m=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},g=function(e){var n,t=l.getPlayer(e);return(null==t||null===(n=t.audioTracks())||void 0===n?void 0:n.tracks_)||[]||[]},h=function(e,n){for(var t=l.getPlayer(e).audioTracks().tracks_||[],o=0;o<t.length;o++){var i=t[o];i.id==n?i.enabled=!0:i.enabled=!1}},y=function(e,n,t){var o=l.getPlayer(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var i=parseFloat(n)/100;o.volume(i),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,"'")})},b=function(e){var n=l.getPlayer(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},w=function(){var e=n(t.mark(function e(n){var i,r,a,s,d;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=l.getPlayer(null==n?void 0:n.playerId),null!=n&&null!==(i=n.series)&&void 0!==i&&i.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return s=e.sent,e.prev=5,e.next=8,p("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:return e.prev=13,s.default(o),e.finish(13);case 16:(d=o.getTech("chromecast"))&&!d.prototype.seeking&&(d.prototype.seeking=function(){}),null!==(a=window)&&void 0!==a&&a.cast?null==r||r.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==r||r.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=n&&n.airplay&&"Safari"==u.detectBrowser()?null==r||r.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return e.stop()}},e,null,[[5,10,13,16]])}));return function(n){return e.apply(this,arguments)}}(),k=function(e,n){var t=l.getPlayer(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",function(n){var t,i,r,l,a,s=this.el(),u=o.dom.getPointerPosition(s,n).x;o.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var d=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(t=window)||void 0===t||null===(i=t.cast)||void 0===i||null===(r=i.framework)||void 0===r||null===(l=r.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(d),d&&"CONNECTED"===c){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*u,v.seek()}})};var S=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),p("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)}}(),T=function(){var e=n(t.mark(function e(){return t.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){o.getPlugin("eme")||o.registerPlugin("eme",e.default)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=n(t.mark(function e(){var n;return t.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(o),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)}}(),E=function(){var e=n(t.mark(function e(){return t.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-8606834d.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)}}(),C=function(){var e=n(t.mark(function e(){return t.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-3cd3423d.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)}}(),x=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then(function(e){p("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then(function(){e.default(o)}).catch(function(e){console.log(e)})})},importAirplay:function(){import("@silvermine/videojs-airplay").then(function(e){e.default(o)})},loadAdsLibrary:S,loadEMELibrary:T,loadMuxPlugin:I,loadDvrSeekbar:E,loadContribDash:C});function P(e){return j.apply(this,arguments)}function j(){return(j=n(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,S();case 3:o&&"Safari"==u.detectBrowser()&&Promise.resolve().then(function(){return x}).then(function(e){e.importAirplay()});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function A(e,n){return D.apply(this,arguments)}function D(){return(D=n(t.mark(function e(n,o){var i,r,l,a,s,d,c,v,f,p;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=(null==o?void 0:o.contentType)||"video",v=null==o||null===(i=o[c])||void 0===i?void 0:i.drmEnabled,null==o||null===(r=o[c])||void 0===r||null===(l=r.liveDetails)||void 0===l||l.isDvrEnabled,null==n||n.showPositiveSeekbar,f=(null==o||null===(a=o[c])||void 0===a||null===(s=a.streamingInfo)||void 0===s||null===(d=s.videoAssets)||void 0===d?void 0:d.dash)||null,e.prev=5,e.next=8,Promise.allSettled([v?"Safari"==u.detectBrowser()?T():"caliente"!=(null===(p=window)||void 0===p?void 0:p.siteName)?C():T():"Safari"!=u.detectBrowser()&&f?C():null,w(n)]);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:case"end":return e.stop()}},e,null,[[5,10]])}))).apply(this,arguments)}var L=new Set,N=null,R=function(n,t,o){var i,r,l,a,s,u,d,c={},v=(null==n?void 0:n.contentType)||"video";c["c3.cm.id"]=(null===(i=n[v])||void 0===i?void 0:i.id)||"Null",c["c3.cm.contentType"]=H(n),c[null==o||null===(r=o.Constants)||void 0===r?void 0:r.IS_LIVE]=!(null==n||!n.linearchannel),c[null==o||null===(l=o.Constants)||void 0===l?void 0:l.STREAM_URL]=t.currentSrc(),c[null==o||null===(a=o.Constants)||void 0===a?void 0:a.VIEWER_ID]="undefined"===e.getUserId()?"NULL":e.getUserId(),c["c3.cm.categoryType"]=_(n),c["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"}}(),c.DRMEnabled=(null===(s=n[v])||void 0===s?void 0:s.drmEnabled)||"None",c.DAIStream=null!==(u=n[v])&&void 0!==u&&null!==(d=u.gist)&&void 0!==d&&d.isSSAIEnabled?"YES":"NO",c[o.Constants.DEFAULT_RESOURCE]="AKAMAI",c["c3.cm.brand"]="NULL",c.CDVREnabled=B(n),c["c3.cm.genreList"]=V(n),c["c3.cm.genre"]=O(n),c["c3.cm.channel"]=M(n);var f=F(e.getCurrentSeries(),n);return c=Object.assign({},c,f)},O=function(e){var n,t,o,i=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[i])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},V=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"},M=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"},B=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",i=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return i?"YES":"NO"},U=function(e,n){var t,o,i=(n||{}).epg;if(i&&null!=i&&i.enable&&null!=i&&i.programTitle)return i.programTitle;var r=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[r])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(l)},H=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var q,F=function(n,t){var o,i,r,l,a,s={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!n||!t||null!=t&&t.linearchannel)return s;var u=e.getSeasonNumber(),d=e.getEpisodeNumber();return s["c3.cm.seriesName"]=(null==t||null===(o=t.video)||void 0===o||null===(i=o.series)||void 0===i?void 0:i.title)||"Null",s["c3.cm.seasonNumber"]=(null==u?void 0:u.toString())||"Null",s["c3.cm.showTitle"]=(null==n||null===(r=n[u-1])||void 0===r||null===(l=r.episodes)||void 0===l||null===(a=l[d-1])||void 0===a?void 0:a.title)||"Null",s["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",s},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"}},G=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},K=function(){var o=n(t.mark(function n(o,i){var r,a,s,u,d,c,v,f,p,m;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=(null==i?void 0:i.convivaConfig)||{},a=r.trackConvivaPlayerEvent,s=r.paymentHandler,u=r.tveProvider,d=r.enable,c=r.appName,v=(i||{}).token,d){n.next=4;break}return n.abrupt("return");case 4:if(f=l.getPlayer(o),"function"==typeof(p=a)){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;N&&N!==f.currentSrc()&&p("playbackEnded"),p("setPlayer",f),L.clear(),N=f.currentSrc();var o=G(f.currentType()),r=e.getCurrentVideo(),l=R(r,f,m);l[null==m||null===(n=m.Constants)||void 0===n?void 0:n.PLAYER_NAME]=c||"WEB",l[null==m||null===(t=m.Constants)||void 0===t?void 0:t.ASSET_NAME]=U(r,i),l.authToken=v||"NULL",l.streamType=o,l.D2CType=s||"NONE",l.subscriberType=u||(s?"D2C":"FREE"),l["c3.cm.affiliate"]=u||"NULL",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,n){return o.apply(this,arguments)}}(),z=function(e,n){var t=null==n?void 0:n.skin;"default"==t?Promise.resolve().then(function(){return require("./skin-88b9e5b1.js")}).then(function(t){t.initialiseSkin(e,n)}):"carousel"==t?Promise.resolve().then(function(){return require("./skin-f0dbcafa.js")}).then(function(n){n.initaliseSkin(e)}):"defaultV2"==t?Promise.resolve().then(function(){return require("./skin-3bdd38e0.js")}).then(function(t){t.initialiseSkin(e,n)}):"multiplayer"==t?Promise.resolve().then(function(){return require("./skin-c165b563.js")}).then(function(t){t.initialiseSkin(e,n)}):"minimalist"==t?Promise.resolve().then(function(){return require("./skin-fc778d21.js")}).then(function(t){t.initaliseSkin(e,n)}):"VL_ONE"==t?Promise.resolve().then(function(){return require("./skin-d7cd2ac9.js")}).then(function(t){t.initialiseSkin(e,n)}):"VL_SmartTV"==t&&Promise.resolve().then(function(){return require("./skin-9319e6f5.js")}).then(function(t){t.initialiseSkin(e,n)})},J=[],Q=0,X=null;function Y(n,t,o){var i,r,l,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==t||null===(i=t.watchHistory)||void 0===i||i.apiVersion;var d=null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.profileId,v=Math.floor(n.currentTime()),f=Math.floor(n.duration());null==t||null===(l=t.watchHistory)||void 0===l||l.xapiKey;var p=(null==t||null===(a=t.video)||void 0===a?void 0:a.originalObjectId)||null,m=(null==t||null===(s=t.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,g=Math.floor(n.currentTime()),h=u?100:Math.floor(v/f*100),y={};m?function(n,t,o){var i=t?"watchhistory-data-".concat(t):"watchhistory-data-guest-".concat(o),r=$(i),l=(new Date).getTime(),a=e.getCurrentVideo(),s=(null==a?void 0:a.video)||{},u=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce(function(e,n){return Object.assign({},e,c({},n,s[n]))},{}),d=r.findIndex(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===q});d<0?r.push(Object.assign({content:u},n,{addedDate:l,updateDate:l})):r[d]=Object.assign({},r[d],n,{updateDate:l});localStorage.setItem("".concat(i),JSON.stringify(r))}(y={completed:u,watchedTime:g,watchedPercentage:h},d,t.siteOwner):(y=Object.assign({videoId:q,watchedTime:g,watchedPercentage:h,doneWatching:u,profileId:d},X&&{seriesId:X},p&&{originalObjectId:p}),e.saveWatchHistory(y).then(function(e){}).catch(function(e){})),Q=v+o}function $(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function Z(e,n,t){var o=$(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&Array.isArray(o)&&(i=o.filter(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n})),i}var ee=!1,ne=function(n,t){var o,i,r=(null==n?void 0:n.contentType)||"video";if(((null==n||null===(o=n[r])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.secondaryVideoAssets)||null)&&!ee){var l=te(n,"videoAssets","secondaryVideoAssets"),a=e.getSource(l,t);return a&&e.loadVideo(t,a),ee=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function te(e,n,t){if(Array.isArray(e))return e.map(function(e){return te(e,n,t)});if(null!==e&&"object"===v(e)){var o={};return Object.keys(e).forEach(function(i){i===n&&void 0!==e[t]?o[i]=e[t]:i===t&&void 0!==e[n]?o[i]=e[n]:o[i]=te(e[i],n,t)}),o}return e}function oe(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 ie(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)?ie(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 r,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,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function ie(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 re=function(n,t,o,i){var a,s,d,c,f=i.res,p=i.sres,m=l.getPlayer(n),g=(null==f?void 0:f.contentType)||"video",h=(null==f?void 0:f[g].drmEnabled)||!1,b=(null==f||null===(a=f[g])||void 0===a||null===(s=a.streamingInfo)||void 0===s?void 0:s.isLiveStream)||!1,w=(null==f||null===(d=f[g])||void 0===d||null===(c=d.liveDetails)||void 0===c?void 0:c.isDvrEnabled)||!1;e.setCurrentVideo(f),m&&(m.on("loadstart",function(){b?o.resolve({status:!0,msg:"Video Loaded",response:f}):o.resolve(Object.assign({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:f}:{response:f}))}),m.on("loadeddata",function(){var o,i,a,s=r.getCaptions(n);if(null==s||s.map(function(e){return r.disableCaptions(n,e.id)}),w&&"Safari"===u.detectBrowser())try{var d;null==m||null===(d=m.liveTracker)||void 0===d||d.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==m||!m.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!==(i=t.watchHistory)&&void 0!==i&&i.saveOffline)){var v,p,g=Object.assign({},t,f);!function(e,n,t){var o,i,r;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(X=null==n||null===(i=n.series)||void 0===i?void 0:i.id),J=[],Q=0,q=t;var a=(null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.interval)||30,s=l.getPlayer(e);s&&(s.on("timeupdate",function(){var e=Math.floor(s.currentTime());J.includes(Q)||(e==Q?(J.push(e),Y(s,n,a)):e>Q&&(Q=e+a))}),s.one("ended",function(){Y(s,n,a,!0)}))}(n,g,null==c||null===(v=c.video)||void 0===v||null===(p=v.gist)||void 0===p?void 0:p.id)}if(null!=t&&null!==(a=t.analytics)&&void 0!==a&&a.muxKey&&null!=m&&m.mux){var h,b,k,S,T,I,E=(null===(h=e.getCurrentVideo())||void 0===h?void 0:h.video)||(null==f?void 0:f.video),C=null==E?void 0:E.gist,x={env_key:null==t||null===(b=t.analytics)||void 0===b?void 0:b.muxKey,player_name:"vl-web-player",player_version:null===(k=window)||void 0===k?void 0:k.vl_player_version,video_id:null==C?void 0:C.id,video_title:null==C?void 0:C.title,video_series:null==E||null===(S=E.series)||void 0===S?void 0:S.title,video_stream_type:null!=E&&null!==(T=E.streamingInfo)&&void 0!==T&&T.isLiveStream?"live":"video",viewer_user_id:null==t||null===(I=t.analytics)||void 0===I?void 0:I.userId};m.mux({debug:!1,data:x})}}),m.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];m.trigger("subtitlechanged",n)}),m.on("subtitlechanged",function(e,n){var t,o,i,r,l,a,s,u,d,c,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===(i=o.framework)||void 0===i||null===(r=i.CastContext)||void 0===r||null===(l=r.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===f){var m,g=p.getMediaSession(),h=g.media.tracks.filter(function(e){return"TEXT"==e.type});m=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}}),m.tech_.on("retryplaylist",function(){b&&ne(f,n)}),m.on("error",function(){var t,i;(console.log("ERROR",m.error(),m.error().code),4===m.error().code&&b)?ne(f,n):(e.handleError(n,(null==m||null===(t=m.error())||void 0===t?void 0:t.message)||"Some error occured"),o.reject({status:!1,msg:(null==m||null===(i=m.error())||void 0===i?void 0:i.message)||"Some error occured",response:f}))}),m.one("play",function(){var n;if(null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var o,i,r,l=null===(o=e.getCurrentVideo())||void 0===o||null===(i=o.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.id,a=e.getSeriesWatchMap(),s=(null==a?void 0:a.get(l))||{t:0,p:0},u=s.t,d=s.p;u&&d<95&&setTimeout(function(){m.currentTime(u)},0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout(function(){m.currentTime(null==t?void 0:t.watchHistoryResumeTime)},0);if(null!=m&&m.dvrSeekbar)try{m.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}),m.on("volumechange",function(){var e=100*m.volume().toFixed(2);m.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}),m.on("chromecastDisconnected",function(){if(b){m.currentSource();for(var e=m.textTracks(),n=e.length-1;n>=0;n--)m.removeRemoteTextTrack(e[n])}}),m.one("loadeddata",function(){var e,n=(null==m||null===(e=m.audioTracks())||void 0===e?void 0:e.tracks_)||null;if(n)if("object"==v(m.dash)){var t,o,i,r=null==m||null===(t=m.dash)||void 0===t||null===(o=t.mediaPlayer)||void 0===o?void 0:o.getTracksFor("audio"),l=null==r?void 0:r.find(function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")}),a=oe(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(l&&(null==s?void 0:s.id)=="dash-audio-".concat(l.index)){s.enabled=!0;break}}}catch(e){a.e(e)}finally{a.f()}}else{var d,c=oe(n);try{for(c.s();!(d=c.n()).done;){var f,p,g,y=d.value;("Chrome"==u.detectBrowser()||"Edge"==u.detectBrowser()&&(null!==(f=navigator)&&void 0!==f&&null!==(p=f.userAgent)&&void 0!==p&&p.includes("Macintosh")||!h))&&null!=y&&null!==(g=y.label)&&void 0!==g&&g.includes("5.1")?m.audioTracks().removeTrack(y):"main"==y.kind?y.enabled=!0:y.enabled=!1}}catch(e){c.e(e)}finally{c.f()}}}))};var le,ae=(le=!0,{enable:function(){le=!0},disable:function(){le=!1},get enabled(){return le}});function se(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 ue(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)?ue(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 r,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,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function ue(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 de,ce=(de="",{set:function(e){e&&(de=e)},get:function(){return de}});function ve(e,n){return fe.apply(this,arguments)}function fe(){return(fe=n(t.mark(function n(o,i){var r,a,s,u,d,c,v,p,m,g,h,y,b,w;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l.getPlayer(o),r=e.getSource(i,o),a=r.src,s=a.replace("/dash/","/session/").replace("master","session"),s=e.replaceMacros(s,o,i),u=pe(s),d=f(u,2),c=d[0],v=d[1],s=new URL(s.split("?")[0]),Object.keys(v).length>0&&Object.entries(v).forEach(function(e){var n=f(e,2),t=n[0],o=n[1];s.searchParams.set(t,o)}),n.prev=8,n.next=11,fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:Object.assign({},c)})});case 11:return p=n.sent,n.next=14,p.json();case 14:return m=n.sent,g="https://"+new URL(s).hostname,h=m.trackingUrl,y=m.manifestUrl,b=g+h,w=g+y,ce.set(b),console.log("%c TRACKING URL","background: #bdf369; color: #000",b),r.src=w,n.abrupt("return",r);case 26:return n.prev=26,n.t0=n.catch(8),n.abrupt("return",r);case 29:case"end":return n.stop()}},n,null,[[8,26]])}))).apply(this,arguments)}function pe(e){var n={},t=e.split("?")[1];if(!t)return[{},{}];var o,i=se(t.split("&"));try{for(i.s();!(o=i.n()).done;){var r=o.value.split("="),l=f(r,2),a=l[0],s=l[1];n[decodeURIComponent(a)]=decodeURIComponent(s||"")}}catch(e){i.e(e)}finally{i.f()}for(var u={},d={},c=0,v=Object.entries(n);c<v.length;c++){var p=f(v[c],2),m=p[0],g=p[1];if(m.startsWith("ads."))u[m.replace(/^ads\./,"")]=g;else d[m]=g}return[u,d]}function me(){return me=n(t.mark(function e(o,i){var r,a,s,u,d,c;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=function(e,n,t,i,r){var a=l.getPlayer(o);if(!a.seeking()){n.startTimeInSeconds,n.durationInSeconds,Math.floor(a.currentTime());var s,c=se(t);try{for(c.s();!(s=c.n()).done;){var v,f,p,m=s.value,g=m.eventType,h=m.beaconUrls,y=m.startTimeInSeconds,b=m.startTime,w=m.durationInSeconds,k=y||0,S=h,T=(null===(v=window)||void 0===v||null===(f=v.customData)||void 0===f||null===(p=f.ads)||void 0===p?void 0:p.adEventHandler)||null,I="".concat(k,"_").concat(g),E=u.get("pod-".concat(r))||[];if(console.warn(e,k,"map:",g,"condition1:",e>=k,"map:",u),e>=k&&!E.includes(I)){E.push(I),u.set("pod-".concat(r),E);try{d(g,n,S,a)}catch(e){console.error("Error when calling triggerAdBeacon:",e,g,n)}if("function"==typeof T)try{var C;T({adsData:{eventType:g,startTimeInSeconds:y,startTime:b,durationInSeconds:w,ad:null==n||null===(C=n.ads)||void 0===C?void 0:C[i],adIndex:i}})}catch(e){console.error("Error when calling ads callback:",e)}}}}catch(e){c.e(e)}finally{c.f()}}},d=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"))},r=ce.get(),l.getPlayer(o).one("loadeddata",function(){r&&a(r)}),a=function(){var e=n(t.mark(function e(n){var i,r,a,u,d,v,f,p,m,g,h,y,b,w,k,S,T,I,E,C,x,P,j;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return E=function(e){document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",E),0===e.button&&T()},I=function(e){},T=function(){var e,n=m.currentTime(),t=null,o=se(p);try{for(o.s();!(e=o.n()).done;){var i=e.value,r=i.startTimeInSeconds,l=i.durationInSeconds,a=i.ads,s=Math.floor(r+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>s||n>r)&&!y.has(r)||n>=r&&n<=s)&&(t=r,y.set(r,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){m.currentTime(t+.4)},100))},e.next=5,fetch(n);case 5:return d=e.sent,e.next=8,d.json();case 8:v=e.sent,f=v.avails,p=[],m=l.getPlayer(o),g=m.controlBar.progressControl,h=g.seekBar.el(),f.map(function(e){var n,t;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===(n=e.adBreakTrackingEvents)||void 0===n||null===(t=n.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===t?void 0:t[0])||[]})}),p.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 i=n/o*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(i,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(i,"%"),r.style.pointerEvents="none",h.appendChild(r)}}),y=new Map,b=-1,w=(null===(i=document)||void 0===i||null===(r=i.getElementsByClassName("tvProviderImage"))||void 0===r?void 0:r[0])||null,k=(null==m||null===(a=m.controlBar)||void 0===a?void 0:a.getChild("videoSelector"))||null,S=(null==m||null===(u=m.controlBar)||void 0===u?void 0:u.getChild("seriesV2"))||null,T(),m.on("timeupdate",l.throttle(function(){var e=m.currentTime();if(e!==b){b=e;for(var n=!1,t=function(){var t=p[o],i=t.startTimeInSeconds,r=t.durationInSeconds,l=t.ads,a=i+r;if(e>=i-2.5&&e<=a+2.5){e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&y.set(i,!0),ae.disable(),w&&w.classList.add("vjs-hidden"),k&&(k.el().style.pointerEvents="none",k.el().classList.add("vjs-hidden")),S&&(S.el().style.pointerEvents="none",S.el().classList.add("vjs-hidden")),g.el().style.visibility="hidden";for(var u=e-i,d=0,v=0,f=0;f<l.length;f++){var m,h=null==l||null===(m=l[f])||void 0===m?void 0:m.durationInSeconds;if(u<d+h){v=f;break}d+=h}var b=l[v],T=u-d,I=Math.max(0,(null==b?void 0:b.durationInSeconds)-T),E=Math.round(I);C.style.display="block",j.textContent="".concat(v+1," of ").concat(l.length," • ").concat(s(E));var x=[];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)});x.push.apply(x,n)}),Array.isArray(l)&&0==(null==l?void 0:l.length)&&x.push(null==t?void 0:t.podSlotImpressionBeacon),c(e,t,x,v,o),"break"}},o=0;o<p.length;o++){if("break"===t())break}n||(C.style.display="none",g.el().style.visibility="visible",k&&(k.el().style.pointerEvents="auto",k.el().classList.remove("vjs-hidden")),S&&(S.el().style.pointerEvents="auto",S.el().classList.remove("vjs-hidden")),w&&w.classList.remove("vjs-hidden"),ae.enable())}},1e3)),g.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",E))}),(C=document.createElement("div")).className="ssai-ad-container",(x=document.createElement("div")).className="sponsored-adbox",(P=document.createElement("div")).className="sponsored-text",P.textContent="Sponsored Ad",x.append(P),(j=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",C.append(x),C.append(j),m.el().appendChild(C);case 40:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),u=new Map;case 9:case"end":return e.stop()}},e)})),me.apply(this,arguments)}var ge,he=function(i,a,s,d){var v,f,p,m,g,h,y,b,w,S,T,I,E,C,x,P,j,D,L,N,R,O,V,M,_,B,U=a.res,H=void 0===U?null:U,q=a.sres,F=void 0===q?null:q,W=null!=s&&s.chromecastReceiverId?["chromecast","html5"]:["html5"],G=(null===(v=H)||void 0===v?void 0:v.contentType)||"video",J=l.impolicy16x9(null===(f=H)||void 0===f||null===(p=f[G])||void 0===p||null===(m=p.gist)||void 0===m?void 0:m.videoImageUrl)||l.impolicy16x9(null===(g=H)||void 0===g||null===(h=g[G])||void 0===h||null===(y=h.gist)||void 0===y||null===(b=y.imageGist)||void 0===b?void 0:b.r16x9),Q=(null===(w=H)||void 0===w||null===(S=w[G])||void 0===S||null===(T=S.liveDetails)||void 0===T?void 0:T.isDvrEnabled)||!1,X=(null===(I=H)||void 0===I||null===(E=I[G])||void 0===E||null===(C=E.streamingInfo)||void 0===C?void 0:C.isLiveStream)||!1,Y=e.getAdsURL(H);H=Object.assign({},H,{audioAssetSource:null==s?void 0:s.audioAssetSource});var $="MEDIA_TAILOR"==(null===(x=window)||void 0===x||null===(P=x.app_data)||void 0===P||null===(j=P.appcmsMain)||void 0===j||null===(D=j.adsConfig)||void 0===D?void 0:D.vodAdSticherProvider)||!1,Z=(null==s?void 0:s.latency)||6,ee=(_={enableSmoothSeeking:!0,controls:0!=(null==s?void 0:s.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==s?void 0:s.muted)||!1,autoplay:(null==s?void 0:s.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==s.skin,liveui:Q},c(_,"autoplay",null==s?void 0:s.autoplay),c(_,"normalizeAutoplay",(null==s?void 0:s.autoplay)&&!Y),c(_,"loop",(null==s?void 0:s.loop)||!1),c(_,"audioPosterMode",null==s?void 0:s.audioPosterMode),c(_,"html5",Object.assign({dash:Object.assign({},!o.browser.IS_SAFARI&&{useTTML:!0},(null==s?void 0:s.debugConfig)&&(null==s||null===(L=s.debugConfig)||void 0===L?void 0:L.enable)&&{debug:!0,logLevel:null!=s&&null!==(N=s.debugConfig)&&void 0!==N&&N.logLevel?null==s||null===(R=s.debugConfig)||void 0===R?void 0:R.logLevel:"DEBUG"},{updateSettings:{streaming:{delay:{liveDelay:Z},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:Object.assign({},"IE"==u.detectBrowser()&&{enableStallFix:!0,stallSeek:1}),abr:{autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:Object.assign({liveRangeSafeTimeDelta:Z,useDevicePixelRatio:!0,experimentalLLHLS:(null==s?void 0:s.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==s||null===(O=s.customData)||void 0===O?void 0:O.overrideNative)&&{overrideNative:!0},{enableLowInitialPlaylist:!0}),debug:!0,nativeTextTracks:"Safari"==u.detectBrowser()},0==(null==s||null===(V=s.customData)||void 0===V?void 0:V.nativeAudioTracks)&&{nativeAudioTracks:!1},0==(null==s||null===(M=s.customData)||void 0===M?void 0:M.nativeVideoTracks)&&{nativeVideoTracks:!1})),c(_,"poster",J),c(_,"techOrder",W),c(_,"chromecast",{requestCustomDataFn:function(e){var n=l.getPlayer(i),t=((null==n?void 0:n.textTracksJson_)||n.textTracks().tracks_).filter(function(e){return"captions"==e.kind||"subtitles"==e.kind});return function(e,n,t){var o,i,r,l,a,s,u,d,c,v,f=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[f]&&null!=e&&e[f].drmEnabled){var m,g,h,y,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===(h=g[0])||void 0===h||null===(y=h.options)||void 0===y?void 0:y.serverURL);p.licenseUrl=I;var E=(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=E}var C=(null==e||null===(o=e[f])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";p.contentType=C;var x=null==e||null===(r=e[f])||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;p.duration=x;var P=null==e||null===(a=e[f])||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;p.mediaTitle=P;var j=null==e||null===(u=e[f])||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return p.mediaImage=j,p.subTitles=t,p.DVR=(null==e||null===(c=e[f])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(H,e,t)},modifyLoadRequestFn:function(e){var n,t,o,r,a,s=l.getPlayer(i),u=(null==s?void 0:s.currentSource())||{};!(null===(n=H)||void 0===n||null===(t=n[G])||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!==(a=u.src)&&void 0!==a&&a.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),_);if(!o.getPlayers()[i]){null!==(B=window)&&void 0!==B&&B.customData.isSmartTV&&(ee.spatialNavigation={enabled:!0,horizontalSeek:!0}),o.log.level("debug");var ne=o(i,ee,function(){var l=n(t.mark(function n(){var l,a,u,c,v,f,p,m,g,h,y,b,w,S,T,I,E,C,x,P,j;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(ne),console.log(o.VERSION),console.log(o.getPlugins()),n.next=5,A(s,H);case 5:if(null!==(l=window)&&void 0!==l&&l.customData.isSmartTV&&ne.spatialNavigation.start(),w=null===(a=H)||void 0===a||null===(u=a[G])||void 0===u||null===(c=u.liveDetails)||void 0===c?void 0:c.startOverTime,X&&d.resolve(Object.assign({status:!0,msg:"Player Initialised"},F?{seriesResponse:F,response:H}:{response:H})),e.inititateBeacon(i,null==s?void 0:s.analyticsCb),K(i,s),/Android/i.test(navigator.userAgent)&&(o.options.vhs.overrideNative=!0),Q&&k(i,w),!Y||null!=s&&null!==(v=s.customData)&&void 0!==v&&v.disableAds||e.initialiseAdvertisement(i,Y,H),S=e.getSource(H,i),console.log(S),null!=s&&s.nearestClusterUrl&&(S=e.getUpdatedClusterSource(S,s.nearestClusterUrl)),!$){n.next=20;break}return n.next=19,ve(i,H);case 19:S=n.sent;case 20:S?e.loadVideo(i,S):(d.reject({status:!1,msg:"Incompatible / Missing Source",response:H}),e.handleError(i,"Incompatible / Missing Source")),((null===(f=H)||void 0===f||null===(p=f[G])||void 0===p||null===(m=p.contentDetails)||void 0===m||null===(g=m.closedCaptions)||void 0===g?void 0:g.length)>0||(null===(h=H)||void 0===h||null===(y=h[G])||void 0===y||null===(b=y.closedCaptions)||void 0===b?void 0:b.length)>0)&&(j=(null===(I=H)||void 0===I||null===(E=I[G])||void 0===E||null===(C=E.contentDetails)||void 0===C?void 0:C.closedCaptions)||(null===(x=H)||void 0===x||null===(P=x[G])||void 0===P?void 0:P.closedCaptions),T=j.filter(function(e){return"VTT"===e.format}),r.addCaptions(i,T)),null!=s&&s.disableControls?e.disableControls(i):z(i,Object.assign({},s,ee,{liveVideo:X,isDvrEnabled:Q,res:H,sres:F})),re(i,Object.assign({},s,ee,{liveVideo:X}),d,{res:H,sres:F});case 24:case"end":return n.stop()}},n)}));return function(){return l.apply(this,arguments)}}())}},ye={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"},be=function(e,n){var t=n.resolve,o=n.reject,i=null==e?void 0:e.playerId,r=we(e);he(i,{res:r},e,{resolve:t,reject:o})},we=function(n){var t,o,i=null==n?void 0:n.streamingInfo,r=null==n||null===(t=n.streamingInfo)||void 0===t?void 0:t.videoAssets,l=(null==n||null===(o=n.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,a=null==n?void 0:n.token,s=e.getDecodedToken(a),u=null==s?void 0:s.site;return Object.assign({id:null==ye?void 0:ye[u]},!l&&{directPlaybackUrl:null==r?void 0:r.url},{video:{drmEnabled:l,streamingInfo:{videoAssets:{widevine:null==r?void 0:r.widevine,fairPlay:null==r?void 0:r.fairPlay,playReady:null==r?void 0:r.playReady}},liveDetails:{isDvrEnabled:null==i?void 0:i.isDvrEnabled}}})};function ke(e,n){return Se.apply(this,arguments)}function Se(){return(Se=n(t.mark(function n(o,i){var r,l,a,s,u,d;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=i.resolve,l=i.reject,a=null==o?void 0:o.videoId,s=null==o?void 0:o.playerId,u=!(null==o||!o.anonymousId),n.next=6,e.getToken();case 6:d=n.sent,e.getVideoDetails(a,d).then(function(n){var t,i,c,v;window.contentType=null==n||null===(t=n.data)||void 0===t||null===(i=t.video)||void 0===i||null===(c=i.gist)||void 0===c?void 0:c.contentType,e.setCurrentVideo(null==n?void 0:n.data);var f,p=null==n?void 0:n.data;if(null!=o&&o.watchHistory&&null!=o&&null!==(v=o.watchHistory)&&void 0!==v&&v.enable&&!u)if((null===(f=o.watchHistory)||void 0===f?void 0:f.saveOffline)||!1){var m,g,h,y=Z((null===(m=o.watchHistory)||void 0===m?void 0:m.profileId)||"",a,null==o?void 0:o.siteOwner);if(y&&y.length)o.watchHistoryResumeTime=(null===(g=y[0])||void 0===g?void 0:g.watchedTime)||null,o.watchedPercentage=(null===(h=y[0])||void 0===h?void 0:h.watchedPercentage)||null;p.contentType="video",he(s,{res:p},o,{resolve:r,reject:l})}else e.getVideoInfo(a,d).then(function(e){var n,t,i,r,l,a;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(i=window)||void 0===i||null===(r=i.watchHistory)||void 0===r||r.cb(null==e?void 0:e.data)),o.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,o.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,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))}).finally(function(){he(s,{res:p},o,{resolve:r,reject:l})});else he(s,{res:p},o,{resolve:r,reject:l})}).catch(function(n){e.initiateErrorHandling(n,s,l,a)});case 8:case"end":return n.stop()}},n)}))).apply(this,arguments)}function Te(e,n){return Ie.apply(this,arguments)}function Ie(){return(Ie=n(t.mark(function n(o,i){var r,l,a,s,u;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=i.resolve,l=i.reject,n.next=3,e.getToken();case 3:a=n.sent,s=null==o?void 0:o.playerId,u=null==o?void 0:o.epg,e.getLinearChannelDetails(u,a).then(function(e){var n=null==e?void 0:e.data;n.contentType="linearchannel",n.channelId=null==u?void 0:u.channelId,he(s,{res:n},o,{resolve:r,reject:l})}).catch(function(n){e.initiateErrorHandling(n,s,l,videoId)});case 7:case"end":return n.stop()}},n)}))).apply(this,arguments)}function Ee(e,n){return Ce.apply(this,arguments)}function Ce(){return(Ce=n(t.mark(function n(o,i){var r,l,a,s,u,d,c;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=i.resolve,a=i.reject,n.next=3,e.getToken();case 3:s=n.sent,u=null==o?void 0:o.playerId,d=sessionStorage.getItem("season-idx")||0,e.seasonIdxManager.set(parseInt(d)),c=null==o||null===(r=o.series)||void 0===r?void 0:r.id,e.getSeriesDetails(c,s).then(function(n){var t,i,r,d=n.data,v=n.data.seasons;e.setCurrentSeries(v);var f=videoId||(null==v||null===(t=v[0])||void 0===t||null===(i=t.episodes)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.id);e.createSeriesWatchMap(c,s),e.getVideoDetails(f,s).then(function(n){var t,i,r;window.contentType=null==n||null===(t=n.data)||void 0===t||null===(i=t.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.contentType,e.setCurrentVideo(n.data),he(u,{res:null==n?void 0:n.data,sres:d},o,{resolve:l,reject:a})}).catch(function(n){e.initiateErrorHandling(n,u,a,videoId)})}).catch(function(n){e.initiateErrorHandling(n,u,a)});case 9:case"end":return n.stop()}},n)}))).apply(this,arguments)}exports.VLPlayerCore=function(){return{loadVideoInstantly:e.loadVideoInstantly,onTimeUpdate:i.onTimeUpdate,getVideoDuration:i.getVideoDuration,getVideoCurrentTime:i.getVideoCurrentTime,onVideoEnded:i.onVideoEnded,init:function(o){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var i=n(t.mark(function n(i,r){var a,s,u,c,v,f,m,g,h,y,b,w,k,S,T,I,E,C,x,j,A,D,L;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.isPlayerInitialised(null==o?void 0:o.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(b=(null==o?void 0:o.videoSourceUrl)||!1,w=null==o?void 0:o.asat,k=(null==o||null===(a=o.epg)||void 0===a?void 0:a.enable)||!1,S=null==o?void 0:o.videoId,T=(null==o||null===(s=o.series)||void 0===s?void 0:s.enable)||!1,I=(null==o?void 0:o.streamingInfo)||!1,window.videoId=S,E=null==o?void 0:o.token,!e.token_authentication_enabled(o)){n.next=17;break}if(sessionStorage.setItem("vlp_token",E),e.refreshTokenManager().set(null==o?void 0:o.refreshToken),E&&!e.isTokenExpired(E)){n.next=16;break}return r({status:!1,msg:"".concat(E?"Token is expired !":"Missing Authorization Token"),response:{token:E}}),n.abrupt("return");case 16:ge=JSON.parse(atob(E.split(".")[1]));case 17:return o.isAnonymousUser=!(null===(u=ge)||void 0===u||!u.anonymousId),o.siteOwner=(null===(c=ge)||void 0===c?void 0:c.site)||null,o.userId=(null===(v=ge)||void 0===v?void 0:v.userId)||null,window.sessionStorage.setItem("uid",null===(f=ge)||void 0===f?void 0:f.userId),window.watchHistory=o.watchHistory||null,C=null==o?void 0:o.playerId,o.chromecastReceiverId=null!=o&&null!==(m=o.series)&&void 0!==m&&m.enable?null:null==o?void 0:o.chromecastReceiverId,x=(null==o||null===(g=o.analytics)||void 0===g?void 0:g.gaId)||null,(j=null==o?void 0:o.errors)&&(window.customErrors=j),window.customData=null==o?void 0:o.customData,d.setLocalisation(null==o||null===(h=o.customData)||void 0===h?void 0:h.localisation),e.baseUrlManager.set(o.apiBaseUrl),null!=o&&o.skin&&!l.isNotAValidSkin(o.skin)||(o.skin="VL_ONE"),n.next=33,P(o);case 33:x&&p("https://www.googletagmanager.com/gtag/js?id=".concat(x)).then(function(){return e.runGtag(x)}).catch(function(e){}),(A=null===(y=document)||void 0===y?void 0:y.getElementById("".concat(C)))&&A.addEventListener("contextmenu",function(e){return e.preventDefault()}),b?(L={directPlaybackUrl:b,id:D="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},w?e.getVideoDetails(D,E).then(function(e){var n=(null==e?void 0:e.data)||{};he(C,{res:Object.assign({},n,L)},o,{resolve:i,reject:r})}).catch(function(n){e.initiateErrorHandling(n,C,r,D)}):he(C,{res:L},o,{resolve:i,reject:r})):I?be(o,{resolve:i,reject:r}):T?Ee(o,{resolve:i,reject:r}):k?Te(o,{resolve:i,reject:r}):ke(o,{resolve:i,reject:r});case 37:case"end":return n.stop()}},n)}));return function(e,n){return i.apply(this,arguments)}}())},getRenditions:a.getRenditions,skip:e.skip,getPlayer:l.getPlayer,play:e.play,pause:e.pause,isPaused:e.isPaused,detectBrowser:u.detectBrowser,rewind:e.rewind,loadVideo:e.loadVideo,seekToTimeStamp:i.seekToTimeStamp,isPlayerInitialised:e.isPlayerInitialised,load:e.load,authenticateLC:e.authenticateLC,dispose:e.dispose,enableCaptions:r.enableCaptions,disableCaptions:r.disableCaptions,getCaptions:r.getCaptions,getAudioTracks:g,enableAudioTrack:h,playSelectedResolution:s.playSelectedResolution,getSource:e.getSource,setVolume:y,getVolume:b,disableControls:e.disableControls,setPlaybackSpeed:i.setPlaybackSpeed,getEntitlementData:e.getEntitlementData}},exports.initialiseKeyboardEvents=function(n,t){var o,i,r,a=l.getPlayer(n),s=null==a||null===(o=a.controlBar)||void 0===o||null===(i=o.playToggle)||void 0===i?void 0:i.el_,u=document.getElementsByTagName("video")[0];null===(r=document)||void 0===r||r.addEventListener("keydown",function(o){var i;if(ae.enabled&&"input"!=o.target.localName){var r=o.key,l=!0===t.liveVideo||!0===t.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(r)&&(o.preventDefault(),null==u||u.focus()),r){case" ":null==s||s.click();break;case"m":case"M":a.muted(!a.muted());break;case"f":case"F":null===(i=document.querySelector(".vjs-fullscreen-control"))||void 0===i||i.click();break;case"ArrowLeft":l&&!1===t.liveui||e.rewind(n,10);break;case"ArrowRight":l||e.skip(n,10)}}},!0)},exports.setupAdvertisementMarkers=function(e,n){return me.apply(this,arguments)};