(function(){var D=this&&this.__extends||function(){var m=function(a,n){m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var g in a)Object.prototype.hasOwnProperty.call(a,g)&&(d[g]=a[g])};return m(a,n)};return function(a,n){function d(){this.constructor=a}if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");m(a,n);a.prototype=null===n?Object.create(n):(d.prototype=n.prototype,
    new d)}}();(function(m){if(!(Object.defineProperty&&function(){try{var a={};Object.defineProperty(a,"x",{enumerable:!1,value:a});for(var d in a)if(a.hasOwnProperty(d))return!1;return a.x===a}catch(l){return!1}}()||m.definePropertyShamSet)){m.definePropertyShamSet=!0;var a=Object.defineProperty;Object.defineProperty=function(n,d,l){n instanceof Element?a(n,d,l):n[d]=l?l.value:!0}}})(window);var E,z,r;(function(m){function a(b,c){var e,h;c=c&&c.split("/");var k=f.map,d=k&&k["*"]||{};if(b){b=b.split("/");
    var t=b.length-1;f.nodeIdCompat&&u.test(b[t])&&(b[t]=b[t].replace(u,""));"."===b[0].charAt(0)&&c&&(t=c.slice(0,c.length-1),b=t.concat(b));for(t=0;t<b.length;t++){var g=b[t];"."===g?(b.splice(t,1),--t):".."===g&&0!==t&&(1!==t||".."!==b[2])&&".."!==b[t-1]&&0<t&&(b.splice(t-1,2),t-=2)}b=b.join("/")}if((c||d)&&k){g=b.split("/");for(t=g.length;0<t;--t){var a=g.slice(0,t).join("/");if(c)for(h=c.length;0<h;--h)if(e=k[c.slice(0,h).join("/")])if(e=e[a]){var n=e;var l=t;break}if(n)break;if(!x&&d&&d[a]){var x=
    d[a];var y=t}}!n&&x&&(n=x,l=y);n&&(g.splice(0,l,n),b=g.join("/"))}return b}function n(b,e){return function(){var f=y.call(arguments,0);"string"!==typeof f[0]&&1===f.length&&f.push(null);return c.apply(m,f.concat([b,e]))}}function d(b){return function(c){return a(c,b)}}function l(b){return function(c){e[b]=c}}function g(c){if(x.call(b,c)){var f=b[c];delete b[c];t[c]=!0;q.apply(m,f)}if(!x.call(e,c)&&!x.call(t,c))throw Error("No "+c);return e[c]}function k(b){var c=b?b.indexOf("!"):-1;if(-1<c){var e=
    b.substring(0,c);b=b.substring(c+1,b.length)}return[e,b]}function h(b){return function(){return f&&f.config&&f.config[b]||{}}}var c,e={},b={},f={},t={},x=Object.prototype.hasOwnProperty,y=[].slice,u=/\.js$/;var A=function(b,c){b=k(b);var e=b[0];c=c[1];b=b[1];if(e){e=a(e,c);var f=g(e)}e?b=f&&f.normalize?f.normalize(b,d(c)):a(b,c):(b=a(b,c),b=k(b),e=b[0],b=b[1],e&&(f=g(e)));return{f:e?e+"!"+b:b,n:b,pr:e,p:f}};var w={require:function(b){return n(b)},exports:function(b){var c=e[b];return"undefined"!==
    typeof c?c:e[b]={}},module:function(b){return{id:b,uri:"",exports:e[b],config:h(b)}}};var q=function(c,f,h,d){var a,y=[];var v=typeof h;var u=(d=d||c)?k(d):[];if("undefined"===v||"function"===v){f=!f.length&&h.length?["require","exports","module"]:f;for(a=0;a<f.length;a+=1){var B=A(f[a],u);v=B.f;if("require"===v)y[a]=w.require(c);else if("exports"===v){y[a]=w.exports(c);var q=!0}else if("module"===v)var p=y[a]=w.module(c);else if(x.call(e,v)||x.call(b,v)||x.call(t,v))y[a]=g(v);else if(B.p)B.p.load(B.n,
    n(d,!0),l(v),{}),y[a]=e[v];else throw Error(c+" missing "+v);}f=h?h.apply(e[c],y):void 0;c&&(p&&p.exports!==m&&p.exports!==e[c]?e[c]=p.exports:f===m&&q||(e[c]=f))}else c&&(e[c]=h)};E=z=c=function(b,e,h,d,t){if("string"===typeof b)return w[b]?w[b](e):g(A(b,e?k(e):[]).f);if(!b.splice){f=b;f.deps&&c(f.deps,f.callback);if(!e)return;e.splice?(b=e,e=h,h=null):b=m}e=e||function(){};"function"===typeof h&&(h=d,d=t);d?q(m,b,e,h):setTimeout(function(){q(m,b,e,h)},4);return c};c.config=function(b){return c(b)};
    E._defined=e;r=function(c,f,h){if("string"!==typeof c)throw Error("See almond README: incorrect module build, no module name");f.splice||(h=f,f=[]);x.call(e,c)||x.call(b,c)||(b[c]=[c,f,h])};r.amd={jQuery:!0}})();r("closed-captions/ttml-time-parser",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.TtmlTimeParser=void 0;m=function(){function a(d,a){this.mediaFrameRate=d;this.mediaTickRate=a}a.prototype.parse=function(d){if(!d)return 0;var n=a.absoluteTimeRegex.exec(d);
    if(n&&3<n.length){d=3600*parseInt(n[1],10);var g=60*parseInt(n[2],10),k=parseInt(n[3],10),h=0;n[5]&&(h=1E3*parseFloat(n[4]));n[6]&&(h=Math.round(parseFloat(n[6])*this.getTimeUnitMultiplier("f")));return 1E3*(d+g+k)+h}return(n=a.relativeTimeRegex.exec(d))&&3<n.length?Math.round(parseFloat(n[1])*this.getTimeUnitMultiplier(n[3])):0};a.prototype.getTimeUnitMultiplier=function(d){switch(d){case "h":return 36E5;case "ms":return 1;case "m":return 6E4;case "s":return 1E3;case "f":return 1E3/this.mediaFrameRate;
    case "t":return 1E3/this.mediaTickRate;default:return 0}};a.absoluteTimeRegex=/^(\d{1,}):(\d{2}):(\d{2})((\.\d{1,})|:(\d{2,}(\.\d{1,})?))?$/;a.relativeTimeRegex=/^(\d+(\.\d+)?)(ms|[hmsft])$/;return a}();a.TtmlTimeParser=m});r("mwf/utilities/stringExtensions",["require","exports"],function(m,a){function n(d){return d&&"string"===typeof d?d.trim?d.trim():d.replace(/^\s+|\s+$/g,""):d}Object.defineProperty(a,"__esModule",{value:!0});a.format=a.getMatchLength=a.endsWith=a.startsWith=a.trim=a.isNullOrWhiteSpace=
    void 0;a.isNullOrWhiteSpace=function(d){return!d||"string"!==typeof d||!n(d)};a.trim=n;a.startsWith=function(d,a,g){void 0===g&&(g=!0);if(!d||!a)return!1;g&&(d=d.toLocaleLowerCase(),a=a.toLocaleLowerCase());return d.startsWith?d.startsWith(a):0===d.indexOf(a)};a.endsWith=function(d,a,g){void 0===g&&(g=!0);if(!d||!a)return!1;g&&(d=d.toLocaleLowerCase(),a=a.toLocaleLowerCase());return d.endsWith?d.endsWith(a):-1!==d.lastIndexOf(a)&&d.lastIndexOf(a)===d.length-a.length};a.getMatchLength=function(d,a,
    g){void 0===g&&(g=!0);if(!d||!a)return 0;var k=0;g&&(d=d.toLocaleLowerCase(),a=a.toLocaleLowerCase());for(;d.charCodeAt(k)===a.charCodeAt(k);)k++;return k};a.format=function(d){for(var a=[],g=1;g<arguments.length;g++)a[g-1]=arguments[g];return d.replace(/{(\d+)}/g,function(d,h){if(h>=a.length)return d;d=a[h];return"number"===typeof d||d?"string"===typeof d?d:d.toString():""})}});r("mwf/utilities/utility",["require","exports","mwf/utilities/stringExtensions"],function(m,a,n){function d(b){return!isNaN(b)&&
    "number"===typeof b}function l(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth}function g(b){b=decodeURIComponent(b.replace("/+/g"," "));0===b.indexOf('"')&&(b=b.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));return b}function k(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];if(!b||!b.length)return null;c="boolean"===typeof b[0]&&b[0];if(2>
    b.length)return c?null:b[0];if(c&&3>b.length)return b[1];for(var e=c?b[1]:b[0],h=c?2:1;h<b.length;h++)for(var d in b[h])if(b[h].hasOwnProperty(d)){var g=b[h][d];if(c){var a=Array.isArray?Array.isArray(g):"[object Array]"==={}.toString.call(g),n=!!e[d]&&(Array.isArray?Array.isArray(e[d]):"[object Array]"==={}.toString.call(e[d])),l=!a&&"object"===typeof g,m=!n&&!!e[d]&&"object"===typeof e[d];if(a&&n){for(var p=0;p<g.length;p++)a=Array.isArray?Array.isArray(g[p]):"[object Array]"==={}.toString.call(g[p]),
    n=!!e[d][p]&&(Array.isArray?Array.isArray(e[d][p]):"[object Array]"==={}.toString.call(e[d][p])),l=!a&&"object"===typeof g[p],m=!n&&!!e[d][p]&&"object"===typeof e[d][p],e[d][p]=a?k(!0,n?e[d][p]:[],g[p]):l?k(!0,m?e[d][p]:{},g[p]):g[p];continue}else if(a){e[d]=k(!0,[],g);continue}else if(l){e[d]=k(!0,m?e[d]:{},g);continue}}e[d]=g}return e}function h(b,e){void 0===e&&(e=!0);return c(location.search,b,e)}function c(b,c,e){void 0===e&&(e=!0);if(!c||!b)return"";c="[\\?\x26]"+c.replace(/[\[\]]/g,"\\$\x26")+
    "\x3d([^\x26#]*)";b=(e?new RegExp(c,"i"):new RegExp(c)).exec(b);return null===b?"":decodeURIComponent(b[1].replace(/\+/g," "))}function e(b,c,e){try{if(!c||void 0!==e&&!e)return null;switch(b){case 1:if(!window.localStorage)return null;if(void 0===e)return localStorage.getItem(c);localStorage.setItem(c,e);break;case 0:if(!window.sessionStorage)return null;if(void 0===e)return sessionStorage.getItem(c);sessionStorage.setItem(c,e)}}catch(x){switch(b){case 1:console.log("Error while fetching or saving local storage. It could be due to cookie is blocked.");
    break;case 0:console.log("Error while fetching or saving session storage. It could be due to cookie is blocked.")}}}Object.defineProperty(a,"__esModule",{value:!0});a.Viewports=a.getValueFromLocalStorage=a.saveToLocalStorage=a.getValueFromSessionStorage=a.saveToSessionStorage=a.addQSP=a.getQSPFromUrl=a.getQSPValue=a.poll=a.extend=a.parseJson=a.toElapsedTimeString=a.getPerfMarkerValue=a.createPerfMarker=a.apiDeprecated=a.pointInRect=a.detectContrast=a.getCookie=a.setCookie=a.getKeyCode=a.getVirtualKey=
    a.getDimensions=a.getWindowHeight=a.getWindowWidth=a.isNumber=void 0;a.isNumber=d;a.getWindowWidth=l;a.getWindowHeight=function(){return window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight};a.getDimensions=function(b){if(null!=b)return{width:b.clientWidth,height:b.clientHeight}};a.getVirtualKey=function(b){b=b||window.event;if(!b)return c;var c=b.key||b.keyIdentifier;
    if(!c)return c;switch(c){case "Left":return"ArrowLeft";case "Right":return"ArrowRight";case "Up":return"ArrowUp";case "Down":return"ArrowDown";case "Esc":return"Escape";default:return c}};a.getKeyCode=function(b){b=b||window.event;return null==b?null:b.which||b.keyCode||b.charCode};a.setCookie=function(b,c,e,h,d){var f="";h&&(f=new Date,f.setTime(f.getTime()+864E5*h),f="; expires\x3d"+f.toUTCString());h="";d&&(h=";domain\x3d"+d);window.document.cookie=b+"\x3d"+encodeURIComponent(c)+f+("; path\x3d"+
    e+";")+h};a.getCookie=function(b){if(b)for(var c=0,e=document.cookie.split("; ");c<e.length;c++){var h=e[c],d=h.indexOf("\x3d");d=g(h.substring(0,d));if(d===b)return g(h.substring(d.length+1))}return null};a.detectContrast=function(b){if(b&&6===b.length){var c=parseInt(b.substring(0,2),16),e=parseInt(b.substring(2,4),16);b=parseInt(b.substring(4,6),16);if(!isNaN(c)&&!isNaN(e)&&!isNaN(b))return.5<=(299*c+587*e+114*b)/255E3?2:1}return null};a.pointInRect=function(b,c,e){return e&&d(b)&&d(c)&&d(e.left)&&
    d(e.right)&&d(e.top)&&d(e.bottom)?b>=e.left&&b<=e.right&&c>=e.top&&c<=e.bottom:!1};a.apiDeprecated=function(b){console&&console.warn?console.warn(b):console&&console.error&&console.error(b)};a.createPerfMarker=function(b,c){!c&&0>h("item").toLowerCase().indexOf("perf_marker_global:true")||n.isNullOrWhiteSpace(b)||!window.performance||!window.performance.mark||(b=b.split(" ").join("_"),window.performance.mark(b),window.console&&window.console.timeStamp&&window.console.timeStamp(b))};a.getPerfMarkerValue=
    function(b){if(n.isNullOrWhiteSpace(b)||!window.performance||!window.performance.mark)return 0;b=b.split(" ").join("_");return(b=window.performance.getEntriesByName(b))&&b.length?Math.round(b[b.length-1].startTime):0};a.toElapsedTimeString=function(b,c){if(!d(b))return"00:00";var e=0>b;e&&(b*=-1);var f=Math.floor(b/3600);b%=3600;var h=Math.floor(b/60);b=Math.floor(b%60);c=(c?0<f?f+":":"00:":0<f?f+":":"")+((10>h?"0":"")+h)+(":"+(0===b?"00":(10>b?"0":"")+b));return e?"-"+c:c};a.parseJson=function(b){if(!JSON||
    !JSON.parse)throw Error("JSON.parse unsupported.");if(!b)throw Error("Invalid json.");return JSON.parse(b)};a.extend=k;a.poll=function(b,c,e,h,d){var f=!e||0>e?-1:Number(new Date)+e;c=c||100;(function w(){var e=b();e&&h?h():e||(-1===f||Number(new Date)<f?setTimeout(w,c):d&&d())})()};a.getQSPValue=h;a.getQSPFromUrl=function(b,e,h){void 0===h&&(h=!0);return c(b,e,h)};a.addQSP=function(b,c){if(!c)return b;if(-1===b.indexOf("//"))throw'To avoid unexpected results in URL parsing, url must begin with "http://", "https://", or "//"';
    var e=document.createElement("a");e.href=b;e.search=(e.search?e.search+"\x26":"?")+c;return e.href};a.saveToSessionStorage=function(b,c){e(0,b,c)};a.getValueFromSessionStorage=function(b){return e(0,b)};a.saveToLocalStorage=function(b,c){e(1,b,c)};a.getValueFromLocalStorage=function(b){return e(1,b)};(function(b){b.allWidths=[320,540,768,1084,1400,1779];b.vpMin=b.allWidths[0];b.vpMax=2048;b.getViewport=function(){if(window.matchMedia)for(var c=0;c<b.allWidths.length;++c){if(!window.matchMedia("(min-width:"+
    b.allWidths[c]+"px)").matches)return c}else for(c=0;c<b.allWidths.length;++c)if(!(l()>=b.allWidths[c]))return c;return b.allWidths.length}})(a.Viewports||(a.Viewports={}))});r("closed-captions/ttml-settings",["require","exports","mwf/utilities/utility"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.TtmlSettings=a.xmlNS=void 0;a.xmlNS="http://www.w3.org/XML/1998/namespace";m=function(){return function(d){this.ttmlNamespace="http://www.w3.org/ns/ttml";this.ttmlStyleNamespace="http://www.w3.org/ns/ttml#styling";
    this.ttmlParameterNamespace="http://www.w3.org/ns/ttml#parameter";this.ttmlMetaNamespace="http://www.w3.org/ns/ttml#metadata";this.idPrefix="";this.mediaFrameRate=30;this.mediaSubFrameRate=this.mediaFrameRateMultiplier=1;this.mediaTickRate=1E3;this.supportedTimeBase="media";this.cellResolution={rows:15,columns:32};this.defaultRegionStyle={backgroundColor:"transparent",color:"#E8E9EA",direction:"ltr",display:"auto",displayAlign:"before",extent:"auto",fontFamily:"default",fontSize:"1c",fontStyle:"normal",
    fontWeight:"normal",lineHeight:"normal",opacity:"1",origin:"auto",overflow:"hidden",padding:"0",showBackground:"always",textAlign:"start",textDecoration:"none",textOutline:"none",unicodeBidi:"normal",visibility:"visible",wrapOption:"normal",writingMode:"lrtb"};this.fontMap={};this.fontMap["default"]="Lucida sans typewriter, Lucida console, Consolas";this.fontMap.monospaceSerif="Courier";this.fontMap.proportionalSerif="Times New Roman, Serif";this.fontMap.monospaceSansSerif="Lucida sans typewriter, Lucida console, Consolas";
    this.fontMap.proportionalSansSerif="Arial, Sans-serif";this.fontMap.casual="Verdana";this.fontMap.cursive="Zapf-Chancery, Segoe script, Cursive";this.fontMap.smallCaps="Arial, Helvetica";this.fontMap.monospace="Lucida sans typewriter, Lucida console, Consolas";this.fontMap.sansSerif="Arial, Sans-serif";this.fontMap.serif="Times New Roman, Serif";d&&n.extend(this,d)}}();a.TtmlSettings=m});r("constants/interfaces",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0})});
    r("mwf/utilities/htmlExtensions",["require","exports","mwf/utilities/stringExtensions"],function(m,a,n){function d(b,c,e,f){void 0===f&&(f=!1);var h=0;for(b=y(b);h<b.length;h++)A(b[h],e,f,p[c])}function l(b,c){!b||n.isNullOrWhiteSpace(c)||k(b,c)||(b.classList?b.classList.add(c):b.className=n.trim(b.className+" "+c))}function g(b,c){if(b&&!n.isNullOrWhiteSpace(c)){var e=" "+n.trim(c)+" ",f=0;for(b=y(b);f<b.length;f++){var h=b[f];if(h.classList)h.classList.remove(c);else if(!n.isNullOrWhiteSpace(h.className)){for(var d=
    " "+h.className+" ";-1<d.indexOf(e);)d=d.replace(e," ");h.className=n.trim(d)}}}}function k(b,c){return!b||n.isNullOrWhiteSpace(c)?!1:b.classList?b.classList.contains(c):-1<(" "+b.className+" ").indexOf(" "+n.trim(c)+" ")}function h(b,f){if(n.isNullOrWhiteSpace(b)||"#"===b)return[];f=f||document;if(/^[#.]?[\w-]+$/.test(b))switch(b[0]){case ".":if(f.getElementsByClassName)return e(f.getElementsByClassName(b.slice(1)));break;case "#":return(b=f.querySelector(b))?[b]:[]}return c(f.querySelectorAll(b))}
    function c(b){if(!b)return[];for(var c=[],e=0;e<b.length;e++)c.push(b[e]);return c}function e(b){if(!b)return[];for(var c=[],e=0;e<b.length;e++)c.push(b[e]);return c}function b(b){if(b){var c=b.getBoundingClientRect(),e={},f;for(f in c)e[f]=c[f];"undefined"===typeof e.width&&(e.width=b.offsetWidth);"undefined"===typeof e.height&&(e.height=b.offsetHeight);return e}}function f(b,c,e){if(!b)return null;if(e||""===e)b.style[c]=e;else return e=b.style[c],n.isNullOrWhiteSpace(e)&&(e=getComputedStyle(b),
    e=e[c]),e}function t(b,c,e,f){if(b&&c&&e){var h=0;for(b=y(b);h<b.length;h++)w(b[h],e,f,p[c])}}function x(b){return Array.isArray?Array.isArray(b):"[object Array]"==={}.toString.call(b)}function y(b){return x(b)?b:[b]}function u(b){return b||window.event}function A(b,c,e,f){void 0===e&&(e=!1);b&&(window.addEventListener?b.addEventListener(f,c,e):b.attachEvent("on"+f,c))}function w(b,c,e,f){void 0===e&&(e=!1);b&&(window.removeEventListener?b.removeEventListener(f,c,e):b.detachEvent("on"+f,c))}Object.defineProperty(a,
    "__esModule",{value:!0});a.preventDefaultSwipeAction=a.getParent=a.getCoordinates=a.isImageLoadFailed=a.isImageLoadedSuccessfully=a.scrollElementIntoView=a.getOffsetParent=a.getScrollY=a.stopPropagation=a.customEvent=a.getEvent=a.getEventTargetOrSrcElement=a.removeInnerHtml=a.setText=a.getText=a.isDescendantOrSelf=a.isDescendant=a.toArray=a.isArray=a.removeEvent=a.css=a.getClientRectWithMargin=a.getClientRect=a.getDirection=a.htmlCollectionToArray=a.nodeListToArray=a.selectElementsFromSelectors=a.selectFirstElementT=
    a.selectElementsT=a.selectFirstElement=a.selectElements=a.removeElement=a.hasClass=a.addAttribute=a.addClasses=a.removeClasses=a.removeClass=a.addClass=a.onDeferred=a.documentReady=a.addDebouncedEvent=a.addThrottledEvents=a.addThrottledEvent=a.preventDefault=a.removeEvents=a.addEvents=a.addEvent=a.eventTypes=a.Direction=a.SafeBrowserApis=void 0;var q;(function(b){b.requestAnimationFrame=window.requestAnimationFrame||function(b){"function"===typeof b&&window.setTimeout(b,16.7)}})(q=a.SafeBrowserApis||
    (a.SafeBrowserApis={}));var r;(function(b){b[b.right=0]="right";b[b.left=1]="left"})(r=a.Direction||(a.Direction={}));var p;(function(b){b[b.animationend=0]="animationend";b[b.blur=1]="blur";b[b.change=2]="change";b[b.click=3]="click";b[b.DOMContentLoaded=4]="DOMContentLoaded";b[b.DOMNodeInserted=5]="DOMNodeInserted";b[b.DOMNodeRemoved=6]="DOMNodeRemoved";b[b.ended=7]="ended";b[b.error=8]="error";b[b.focus=9]="focus";b[b.focusin=10]="focusin";b[b.focusout=11]="focusout";b[b.input=12]="input";b[b.load=
    13]="load";b[b.keydown=14]="keydown";b[b.keypress=15]="keypress";b[b.keyup=16]="keyup";b[b.loadedmetadata=17]="loadedmetadata";b[b.mousedown=18]="mousedown";b[b.mousemove=19]="mousemove";b[b.mouseout=20]="mouseout";b[b.mouseover=21]="mouseover";b[b.mouseup=22]="mouseup";b[b.onreadystatechange=23]="onreadystatechange";b[b.resize=24]="resize";b[b.scroll=25]="scroll";b[b.submit=26]="submit";b[b.timeupdate=27]="timeupdate";b[b.touchcancel=28]="touchcancel";b[b.touchend=29]="touchend";b[b.touchmove=30]=
    "touchmove";b[b.touchstart=31]="touchstart";b[b.wheel=32]="wheel"})(p=a.eventTypes||(a.eventTypes={}));a.addEvent=d;a.addEvents=function(b,c,e,f){void 0===f&&(f=!1);if(!n.isNullOrWhiteSpace(c)){var h=0;for(b=y(b);h<b.length;h++)for(var d=b[h],k=0,g=c.split(/\s+/);k<g.length;k++){var a=g[k];n.isNullOrWhiteSpace(a)||A(d,e,f,a)}}};a.removeEvents=function(b,c,e,f){void 0===f&&(f=!1);var h=0;for(b=y(b);h<b.length;h++)for(var d=b[h],k=0,g=y(c);k<g.length;k++){var a=g[k];n.isNullOrWhiteSpace(a)||w(d,e,f,
    a)}};a.preventDefault=function(b){if(b=u(b))b.preventDefault?b.preventDefault():b.returnValue=!1};a.addThrottledEvent=function(b,c,e,f){void 0===f&&(f=150);var h=null,k=0,g=function(b){var c=Date.now();h&&(clearTimeout(h),h=void 0);k&&c<k+f?h=setTimeout(function(){k=Date.now();e(b)},f-(c-k)):(k=c,e(b))};d(b,c,g);return g};a.addThrottledEvents=function(b,c,e,f,h){function d(b){var c=null,e=0;return function(f){var d=Date.now();clearTimeout(c);e&&d<e+h?c=setTimeout(function(){e=d;b(f)},h-(d-e)):(e=
    d,b(f))}}void 0===f&&(f=!1);void 0===h&&(h=150);if(!n.isNullOrWhiteSpace(c)){var k=0;for(b=y(b);k<b.length;k++)for(var g=b[k],a=0,t=c.split(/\s+/);a<t.length;a++){var x=t[a];if(!n.isNullOrWhiteSpace(x)){var l=d(e);A(g,l,f,x)}}}};a.addDebouncedEvent=function(b,c,e,f){void 0===f&&(f=150);var h=null,k=function(b){window.clearTimeout(h);h=setTimeout(function(){e(b)},f)};d(b,c,k);return k};a.documentReady=function(b,c){void 0===c&&(c=5E3);if("complete"===document.readyState)b.call(null);else if(document.attachEvent||
    "interactive"!==document.readyState){var e=null,f=function(c){clearTimeout(e);h&&t(document,p.DOMContentLoaded,h);k&&t(document,p.onreadystatechange,k);q.requestAnimationFrame.call(window,b)};e=setTimeout(function(){f()},c);if(document.addEventListener){var h=function(){f()};d(document,p.DOMContentLoaded,h,!1)}else if(document.attachEvent){var k=function(){"complete"===document.readyState&&f()};d(document,p.onreadystatechange,k,!1)}}else b.call(null)};a.onDeferred=function(b,c){void 0===c&&(c=5E3);
    var e=setTimeout(function(){clearTimeout(e);t(window,p.load,f);b.call(null)},c);var f=function(){clearTimeout(e);q.requestAnimationFrame.call(window,b)};"complete"===document.readyState?(clearTimeout(e),b.call(null)):d(window,p.load,f)};a.addClass=l;a.removeClass=g;a.removeClasses=function(b,c){if(c)for(var e=0;e<c.length;e++)g(b,c[e])};a.addClasses=function(b,c){if(c)for(var e=0;e<c.length;e++)l(b,c[e])};a.addAttribute=function(b,c){if(b&&c)for(var e=0;e<c.length;e++){var f=c[e];n.isNullOrWhiteSpace(f.name)||
    n.isNullOrWhiteSpace(f.value)||b.setAttribute(f.name,f.value)}};a.hasClass=k;a.removeElement=function(b){return b?b.parentElement.removeChild(b):b};a.selectElements=function(b,c){return h(b,c)};a.selectFirstElement=function(b,c){return(b=h(b,c))&&b.length?b[0]:null};a.selectElementsT=h;a.selectFirstElementT=function(b,c){return(b=h(b,c))&&b.length?b[0]:null};a.selectElementsFromSelectors=function(b,c){c=c||document;var e,f=0;for(b=b.split(",");f<b.length;f++)e+=this.selectElements(b[f],c);return e};
    a.nodeListToArray=c;a.htmlCollectionToArray=e;a.getDirection=function(b){void 0===b&&(b=document.documentElement);for(;null!==b;){var c=b.getAttribute("dir");if(c)return"rtl"===c?r.right:r.left;b=b.parentElement}return r.left};a.getClientRect=b;a.getClientRectWithMargin=function(c){if(c)return{width:parseFloat(b(c).width)+parseFloat(f(c,"margin-left"))+parseFloat(f(c,"margin-right")),height:parseFloat(b(c).height)+parseFloat(f(c,"margin-top"))+parseFloat(f(c,"margin-bottom"))}};a.css=f;a.removeEvent=
    t;a.isArray=x;a.toArray=y;a.isDescendant=function(b,c){return!!b&&b!==c&&b.contains(c)};a.isDescendantOrSelf=function(b,c){return!!b&&b.contains(c)};a.getText=function(b){return b?b.textContent||b.innerText||"":""};a.setText=function(b,c){b&&null!==c&&(b.textContent?b.textContent=c:b.innerHTML=c)};a.removeInnerHtml=function(b){b&&(b.innerHTML="")};a.getEventTargetOrSrcElement=function(b){b=u(b);return b.target||b.srcElement};a.getEvent=u;a.customEvent=function(b,c,e){void 0===e&&(e={});if(!b||!c)return null;
    c="string"===typeof c?c:p[c];e.bubbles="undefined"===typeof e.bubbles?!0:e.bubbles;e.cancelable="undefined"===typeof e.cancelable?!0:e.cancelable;if(window.CustomEvent&&"function"===typeof window.CustomEvent){var f=new CustomEvent(c,e);e.changedTouches&&e.changedTouches.length&&(f.changedTouches=e.changedTouches)}else if(document.createEvent)f=document.createEvent("CustomEvent"),f.initCustomEvent(c,e.bubbles,e.cancelable,e.detail),e.changedTouches&&e.changedTouches.length&&(f.changedTouches=e.changedTouches);
    else{f=document.createEventObject();try{b.fireEvent("on"+c,f)}catch(N){return}return f}b.dispatchEvent(f);return f};a.stopPropagation=function(b){b.stopPropagation?b.stopPropagation():b.returnValue=!1};a.getScrollY=function(b){void 0===b&&(b=window);return b.scrollY||b.pageYOffset||("CSS1Compat"===b.document.compatMode?b.document.documentElement.scrollTop:b.document.body.scrollTop)};a.getOffsetParent=function(b){if(!b)return window.document.documentElement;var c=b.ownerDocument.documentElement;for(b=
    b.offsetParent;b&&"static"==f(b,"position");)b=b.offsetParent;return b||c};a.scrollElementIntoView=function(b,c){if(b&&c){var e=c.clientHeight,f=c.scrollHeight;f>e&&(c.scrollTop=Math.min(b.offsetTop-c.firstElementChild.offsetTop,f-e))}};a.isImageLoadedSuccessfully=function(b){return"undefined"!==typeof b.complete&&"undefined"!==typeof b.naturalHeight?b&&b.complete&&0<b.naturalHeight:!0};a.isImageLoadFailed=function(b){return b&&"undefined"!==typeof b.complete&&"undefined"!==typeof b.naturalHeight?
    b&&b.complete&&0==b.naturalWidth&&0==b.naturalHeight:!1};a.getCoordinates=function(b){var c=b.touches&&b.touches.length?b.touches:[b];b=b.changedTouches&&b.changedTouches[0]||c[0];return{x:b.clientX,y:b.clientY}};a.getParent=function(b,c){for(var e=b.matches||b.webkitMatchesSelector||b.mozMatchesSelector||b.msMatchesSelector;b&&!e.call(b,c);)b=b.parentElement;return b};a.preventDefaultSwipeAction=function(b,c){void 0===c&&(c=!0);b&&(window.PointerEvent||window.navigator.pointerEnabled)&&f(b,"touchAction",
    c?"pan-y":"pan-x")}});r("closed-captions/ttml-parser","require exports closed-captions/ttml-context closed-captions/ttml-time-parser closed-captions/ttml-settings mwf/utilities/htmlExtensions mwf/utilities/stringExtensions".split(" "),function(m,a,n,d,l,g,k){Object.defineProperty(a,"__esModule",{value:!0});a.TtmlParser=void 0;m=function(){function h(){}h.parse=function(c,e){c="string"===typeof c?h.parseXml(c):c;var b=new n.TtmlContext;b.settings=new l.TtmlSettings(e);b.root=h.verifyRoot(c,b);b.body=
    h.getFirstElementByTagNameNS(b.root,"body",b.settings.ttmlNamespace);b.events=[];b.styleSetCache=[];b.body&&(h.parseTtAttrs(b),c=h.ensureRegions(b),e=h.getAttributeNS(b.root,"timeBase",b.settings.ttmlParameterNamespace)||"media",-1!==b.settings.supportedTimeBase.indexOf(e)&&(h.processAnonymousSpans(b,b.body),e=new d.TtmlTimeParser(b.settings.mediaFrameRate,b.settings.mediaTickRate),h.applyTiming(b,b.root,{start:h.mediaStart,end:h.mediaEnd},!0,e),h.applyStyling(b,c)),b.events.push({time:h.mediaEnd,
    element:null}),b.events.sort(function(b,c){return b.time-c.time}));return b};h.parseXml=function(c){if(window.DOMParser){var e=new window.DOMParser;c=e.parseFromString(c,"application/xml")}else e=new window.ActiveXObject("Microsoft.XMLDOM"),e.async=!1,e.loadXML(c),c=e;return c};h.verifyRoot=function(c,e){c=c.documentElement;if("tt"===h.getLocalTagName(c)){"http://www.w3.org/ns/ttml"!==c.namespaceURI&&(e.settings.ttmlNamespace=c.namespaceURI,e.settings.ttmlStyleNamespace=e.settings.ttmlNamespace+"#styling",
    e.settings.ttmlParameterNamespace=e.settings.ttmlNamespace+"#parameter",e.settings.ttmlMetaNamespace=e.settings.ttmlNamespace+"#metadata");var b=c}return b};h.parseTtAttrs=function(c){var e=h.getAttributeNS(c.root,"cellResolution",c.settings.ttmlParameterNamespace),b=h.getAttributeNS(c.root,"extent",c.settings.ttmlStyleNamespace),f=null;if(e){var d=k.trim(e).split(/\s+/);2===d.length&&(e=Math.round(parseFloat(d[0])),d=Math.round(parseFloat(d[1])),0<d&&0<e&&(f={rows:d,columns:e}))}f&&(c.settings.cellResolution=
    f);b&&"auto"!==b&&(f=b.split(/\s+/),2===f.length&&"px"===f[0].substr(f[0].length-2)&&"px"===f[1].substr(f[1].length-2)&&(b=parseFloat(f[0].substr(0,f[0].length-2)),f=parseFloat(f[1].substr(0,f[1].length-2)),c.settings.rootContainerRegionDimensions={width:Math.round(b),height:Math.round(f)}))};h.ensureRegions=function(c){c.rootContainerRegion=c.root.ownerDocument.createElementNS(c.settings.ttmlNamespace,"rootcontainerregion");c.root.appendChild(c.rootContainerRegion);var e=c.settings.rootContainerRegionDimensions?
    k.format("{0}px {1}px",c.settings.rootContainerRegionDimensions.width,c.settings.rootContainerRegionDimensions.height):"auto";c.rootContainerRegion.setAttributeNS(c.settings.ttmlStyleNamespace,"extent",e);e=h.getFirstElementByTagNameNS(c.root,"head",c.settings.ttmlNamespace);e||(e=c.root.ownerDocument.createElementNS(c.settings.ttmlNamespace,"head"),c.root.appendChild(e));c.layout=h.getFirstElementByTagNameNS(e,"layout",c.settings.ttmlNamespace);c.layout||(c.layout=c.root.ownerDocument.createElementNS(c.settings.ttmlNamespace,
    "layout"),c.root.appendChild(c.layout));if(!c.layout.getElementsByTagNameNS(c.settings.ttmlNamespace,"region").length){var b=c.root.ownerDocument.createElementNS(c.settings.ttmlNamespace,"region");b.setAttributeNS(l.xmlNS,"id","anonymous");b.setAttribute("data-isanonymous","1");c.layout.appendChild(b);c.body.setAttributeNS(c.settings.ttmlNamespace,"region","anonymous")}return e};h.processAnonymousSpans=function(c,e){if(h.isTagNS(e,"p",c.settings.ttmlNamespace)){for(var b=[],f=void 0,d=0,k=g.nodeListToArray(e.childNodes);d<
    k.length;d++){var a=k[d];a.nodeType===Node.TEXT_NODE&&(f!==Node.TEXT_NODE&&b.push([]),b[b.length-1].push(a));f=a.nodeType}for(a=0;a<b.length;a++)for(f=b[a],d=c.root.ownerDocument.createElementNS(c.settings.ttmlNamespace,"span"),d.appendChild(f[0].parentNode.replaceChild(d,f[0])),k=1;k<f.length;k++)d.appendChild(f[k])}b=0;for(e=g.nodeListToArray(e.childNodes);b<e.length;b++)a=e[b],this.processAnonymousSpans(c,a)};h.applyTiming=function(c,e,b,f,d){var k=h.getAttributeNS(e,"begin",c.settings.ttmlNamespace),
    a=k?d.parse(k):b.start,n=k=0,t=0;n=h.getAttributeNS(e,"dur",c.settings.ttmlNamespace);t=h.getAttributeNS(e,"end",c.settings.ttmlNamespace);n||t?n&&t?(n=d.parse(n),t=d.parse(t),k=Math.min(Math.min(a+n,b.start+t),b.end)):t?(t=d.parse(t),k=Math.min(b.start+t,b.end)):(n=d.parse(n),k=Math.min(a+n,b.end)):f&&(a<=b.end?(Math.max(0,b.end-a),k=b.end):k=0);k<a&&(k=a);a=Math.floor(a);k=Math.floor(k);e.setAttribute("data-time-start",a.toString());e.setAttribute("data-time-end",k.toString());0<=a&&0>=c.events.filter(function(b){return b.time===
    a}).length&&c.events.push({time:a,element:e});b=a;f=0;for(n=g.nodeListToArray(e.childNodes);f<n.length;f++)t=n[f],t.nodeType===Node.ELEMENT_NODE&&("seq"!==h.getAttributeNS(e,"timeContainer",c.settings.ttmlNamespace)?this.applyTiming(c,t,{start:a,end:k},!0,d):(this.applyTiming(c,t,{start:b,end:k},!1,d),b=parseInt(t.getAttribute("data-time-end"),10)))};h.applyStyling=function(c,e){e=(e=h.getFirstElementByTagNameNS(e,"styling",c.settings.ttmlNamespace))?g.htmlCollectionToArray(e.getElementsByTagNameNS(c.settings.ttmlNamespace,
    "style")):[];for(var b=0,f=g.nodeListToArray(c.root.querySelectorAll("*"));b<f.length;b++)this.applyStyle(c,f[b],e)};h.applyStyle=function(c,e,b){var f={};this.applyStylesheet(c.settings,f,e,b);h.applyInlineStyles(c.settings,f,e);b=!0;for(var d in f)if(f.hasOwnProperty(d)){b=!1;break}b||(e.setAttribute("data-styleSet",c.styleSetCache.length.toString()),c.styleSetCache.push(f))};h.applyStylesheet=function(c,e,b,f){for(var d=h.getAttributeNS(b,"style",c.ttmlNamespace),k=0,a=d?d.split(/\s+/):[];k<a.length;k++)for(var n=
    a[k],m=0,w=f;m<w.length;m++)d=w[m],h.getAttributeNS(d,"id",l.xmlNS)===n&&(this.applyStylesheet(c,e,d,f),h.applyInlineStyles(c,e,d));if(h.isTagNS(b,"region",c.ttmlNamespace))for(f=0,b=g.htmlCollectionToArray(b.getElementsByTagNameNS(c.ttmlNamespace,"style"));f<b.length;f++)d=b[f],h.applyInlineStyles(c,e,d)};h.applyInlineStyles=function(c,e,b){var f=0;for(b=g.htmlCollectionToArray(b.attributes);f<b.length;f++){var d=b[f];d.namespaceURI===c.ttmlStyleNamespace&&(e[h.getLocalTagName(d)]=k.trim(d.nodeValue))}};
    h.getLocalTagName=function(c){return c.localName||c.baseName};h.isTagNS=function(c,e,b){return c.namespaceURI===b&&this.getLocalTagName(c)===e};h.getAttributeNS=function(c,e,b){var f=c.getAttributeNS(b,e);if(!f){var h=0;for(c=g.htmlCollectionToArray(c.attributes);h<c.length;h++){var d=c[h];if(d.localName===e&&d.lookupNamespaceURI(d.prefix)===b){f=d.value;break}}}return f};h.getFirstElementByTagNameNS=function(c,e,b){return c&&(c=c.getElementsByTagNameNS(b,e))&&c.length?c[0]:null};h.mediaStart=-1;
    h.mediaEnd=99999999;return h}();a.TtmlParser=m});r("closed-captions/ttml-context","require exports closed-captions/ttml-parser closed-captions/ttml-settings mwf/utilities/htmlExtensions mwf/utilities/stringExtensions mwf/utilities/utility".split(" "),function(m,a,n,d,l,g,k){Object.defineProperty(a,"__esModule",{value:!0});a.TtmlContext=void 0;m=function(){function h(){var c=this;this.translateToHtml=function(e,b,f){var k=c.getTagNameEquivalent(e),a="",y="";switch(k){case "ttml:region":y="cue ";case "ttml:rootcontainerregion":case "ttml:body":case "ttml:div":a=
    "div";break;case "ttml:p":a="p";break;case "ttml:span":a="span";break;case "ttml:br":a="br"}var u=n.TtmlParser.getAttributeNS(e,"role",c.settings.ttmlMetaNamespace);u&&(y+=" "+u);var m=n.TtmlParser.getAttributeNS(e,"agent",c.settings.ttmlMetaNamespace);m&&(y+=" "+m);"x-ruby"===u?a="ruby":"x-rubybase"===u?a="rb":"x-rubytext"===u&&(a="rt");if(!g.isNullOrWhiteSpace(a)){var w=h.defaultStyle(c.ownerDocument.createElement(a));l.addClass(w,g.trim(y));(a=n.TtmlParser.getAttributeNS(e,"title",c.settings.ttmlMetaNamespace))&&
    w.setAttribute("title",a);(e=n.TtmlParser.getAttributeNS(e,"id",d.xmlNS))&&c.settings.idPrefix&&w.setAttribute("id",c.settings.idPrefix+e);if("ttml:region"===k){var q=w.appendChild(h.defaultStyle(c.ownerDocument.createElement("div")));l.css(q,"display","table");l.css(q,"border-spacing","0");l.css(q,"cell-spacing","0");l.css(q,"cell-padding","0");l.css(q,"width","100%");l.css(q,"height","100%");q=q.appendChild(h.defaultStyle(c.ownerDocument.createElement("div")));l.css(q,"display","table-cell");b.displayAlign&&
    (c.translateStyle(k,q,{displayAlign:b.displayAlign}),b.displayAlign=null)}f&&"ttml:span"===k&&(q=w.appendChild(h.defaultStyle(c.ownerDocument.createElement("span"))),l.css(q,"white-space","pre"));l.css(w,"position","static");l.css(w,"width","100%");c.translateStyle(k,w,b)}return{outerNode:w,innerNode:q?q:w}}}h.prototype.setOwnerDocument=function(c){this.ownerDocument=c};h.prototype.updateRelatedMediaObjectRegion=function(c){return this.settings.relatedMediaObjectRegion&&c.width===this.settings.relatedMediaObjectRegion.width&&
    c.height===this.settings.relatedMediaObjectRegion.height?!1:(this.settings.relatedMediaObjectRegion={width:c.width,height:c.height},!0)};h.prototype.hasEvents=function(){return this.events&&!!this.events.length};h.prototype.resetCurrentEvents=function(){this.currentEvents=[]};h.prototype.updateCurrentEvents=function(c){var e=this.getTemporallyActiveEvents(c),b=this.currentEvents?this.currentEvents.length:0;if(b!==(e?e.length:0))return this.currentEventsTime=c,this.currentEvents=e,!0;if(this.currentEvents)for(var f=
    0;f<b;f++)if(this.currentEvents[f].time!==e[f].time)return this.currentEventsTime=c,this.currentEvents=e,!0;return!1};h.prototype.getTemporallyActiveEvents=function(c){var e=this;return this.events.filter(function(b){return b.element?e.isTemporallyActive(b.element,c):!0})};h.prototype.isTemporallyActive=function(c,e){return(parseInt(c.getAttribute("data-time-start"),10)||0)<=e&&e<(parseInt(c.getAttribute("data-time-end"),10)||0)};h.prototype.getCues=function(c){var e=[];this.currentEventsTime!==c&&
    this.updateCurrentEvents(c);for(var b="preserve"===n.TtmlParser.getAttributeNS(this.root,"space",d.xmlNS),f=0,h=this.layout?this.layout.getElementsByTagNameNS(this.settings.ttmlNamespace,"region"):[];f<h.length;f++){var k=h[f],a=n.TtmlParser.getAttributeNS(k,"id",d.xmlNS),u=k.getAttribute("data-isanonymous");if(u||a){var m=this.translate(k,this.settings.defaultRegionStyle,b,c,this.translateToHtml);if(m.outerNode){k=m.innerNode;for(var w=m.outerNode,q=0,r=this.events;q<r.length;q++){var p=r[q];if(p.element&&
    this.isInRegion(p.element,u?null:a)){p=this.prune(p.element,m.inheritableStyleSet,b,c,this.translateToHtml);var v=p.prunedElement;p.hasPreservedContent||!v||g.trim(l.getText(v)).length||(v=null);v&&k.appendChild(v)}}if((a="always"===w.getAttribute("data-showBackground"))||k.children.length)a&&w.removeAttribute("data-showBackground"),e.push(w)}}}if(e.length){c=this.translate(this.rootContainerRegion,{overflow:"hidden",padding:"0"},!1,c,this.translateToHtml);for(b=0;b<e.length;b++)c.innerNode.appendChild(e[b]);
    e=[];e.push(c.outerNode)}return e};h.prototype.translate=function(c,e,b,f,h){if(this.isTemporallyActive(c,f)){var d=this.getTagNameEquivalent(c);var k=this.getComputedStyleSet(c,e,d,f);if("none"!==k.display){e=this.getApplicableStyleSet(k,d);var a=h(c,e,b)}}return a?{outerNode:a.outerNode,innerNode:a.innerNode,inheritableStyleSet:this.getInheritableStyleSet(k)}:{outerNode:null,innerNode:null,inheritableStyleSet:null}};h.prototype.translateStyle=function(c,e,b){for(var f in b)b[f]&&this.applyStyle(e,
    c,f,b[f])};h.prototype.prune=function(c,e,b,f,h,k){void 0===k&&(k=!1);var a=!1,g=this.translate(c,e,b,f,h);if(null!==g.outerNode){var t=this.getTagNameEquivalent(c);var x=g.outerNode;for(var m=g.innerNode,r=0,p=l.nodeListToArray(c.childNodes);r<p.length;r++){var v=p[r];if(v.nodeType!==Node.COMMENT_NODE)if(v.nodeType===Node.TEXT_NODE)m.appendChild(document.createTextNode(v.data)),b&&"ttml:span"===t&&(a=!0);else{var B=b,C=n.TtmlParser.getAttributeNS(v,"space",d.xmlNS);C&&(B="preserve"===C);v=this.prune(v,
    g.inheritableStyleSet,B,f,h,!0);a=a||v.hasPreservedContent;v.prunedElement&&m.appendChild(v.prunedElement)}}if(!k)for(c=c.parentNode;null!==c&&c.nodeType===Node.ELEMENT_NODE&&c!==this.body;){g=this.translate(c,e,b,f,h);if(g.outerNode)m=g.innerNode,m.appendChild(x),x=g.outerNode;else break;c=c.parentNode}}return{prunedElement:x,hasPreservedContent:a}};h.prototype.getComputedStyleSet=function(c,e,b,f){e=k.extend({},e);k.extend(e,this.styleSetCache[parseInt(c.getAttribute("data-styleSet"),10)]);var h=
    c.getElementsByTagNameNS(this.settings.ttmlNamespace,"set"),d=0;for(h=l.htmlCollectionToArray(h);d<h.length;d++){var a=h[d];this.isTemporallyActive(a,f)&&n.TtmlParser.applyInlineStyles(this.settings,e,a)}"ttml:p"===b&&"normal"===e.lineHeight&&(c=this.appendSpanFontSizes(c,this.getInheritableStyleSet(e),f,""))&&(e["computed-lineHeight"]=c);return e};h.prototype.getApplicableStyleSet=function(c,e){var b={};c.extent&&this.isStyleApplicable(e,"extent")&&(b.extent=c.extent);c.color&&this.isStyleApplicable(e,
    "color")&&(b.color=c.color);for(var f in c)this.isStyleApplicable(e,f)&&(b[f]=c[f]);return b};h.prototype.isStyleApplicable=function(c,e){switch(e){case "backgroundColor":case "display":case "visibility":return 0<="ttml:body ttml:div ttml:p ttml:region ttml:rootcontainerregion ttml:span ttml:br".indexOf(c);case "fontFamily":case "fontSize":case "fontStyle":case "fontWeight":return 0<="ttml:p ttml:span ttml:br".indexOf(c);case "color":case "textDecoration":case "textOutline":case "wrapOption":return 0<=
    "ttml:span ttml:br".indexOf(c);case "direction":case "unicodeBidi":return 0<="ttml:p ttml:span ttml:br".indexOf(c);case "displayAlign":case "opacity":case "origin":case "overflow":case "padding":case "showBackground":case "writingMode":case "zIndex":return 0<="ttml:region ttml:rootcontainerregion".indexOf(c);case "extent":return 0<="ttml:tt ttml:region ttml:rootcontainerregion".indexOf(c);case "computed-lineHeight":case "lineHeight":case "textAlign":return 0<="ttml:p".indexOf(c);default:return!1}};
    h.prototype.getInheritableStyleSet=function(c){var e={},b;for(b in c)if(c.hasOwnProperty(b))switch(b){case "backgroundColor":case "computed-lineHeight":case "display":case "displayAlign":case "extent":case "opacity":case "origin":case "overflow":case "padding":case "showBackground":case "unicodeBidi":case "writingMode":case "zIndex":break;default:e[b]=c[b]}return e};h.prototype.appendSpanFontSizes=function(c,e,b,f){var h=0;for(c=l.nodeListToArray(c.childNodes);h<c.length;h++){var d=c[h];if(d.nodeType===
    Node.ELEMENT_NODE&&"ttml:span"===this.getTagNameEquivalent(d)){var k=this.getComputedStyleSet(d,e,"ttml:span",b),a=k.fontSize;a&&(f+=(f?",":"")+a);f=this.appendSpanFontSizes(d,this.getInheritableStyleSet(k),b,f)}}return f};h.prototype.isInRegion=function(c,e){if(!e)return!0;var b=n.TtmlParser.getAttributeNS(c,"region",this.settings.ttmlNamespace);if(b===e)return!0;if(!b){for(b=c.parentNode;null!==b&&b.nodeType===Node.ELEMENT_NODE;){var f=this.getRegionId(b);if(f)return f===e;b=b.parentNode}b=0;for(c=
    l.htmlCollectionToArray(c.getElementsByTagName("*"));b<c.length;b++)if(this.getRegionId(c[b])===e)return!0}return!1};h.prototype.getRegionId=function(c){var e;c.nodeType===Node.ELEMENT_NODE&&c.namespaceURI===this.settings.ttmlNamespace&&(e="region"===n.TtmlParser.getLocalTagName(c)?n.TtmlParser.getAttributeNS(c,"id",d.xmlNS):n.TtmlParser.getAttributeNS(c,"region",this.settings.ttmlNamespace));return e};h.prototype.getTagNameEquivalent=function(c){var e=n.TtmlParser.getLocalTagName(c);c=c.namespaceURI;
    return c===this.settings.ttmlNamespace?"ttml:"+e:"http://www.w3.org/1999/xhtml"===c?e:""};h.prototype.applyStyle=function(c,e,b,f){var d=f;switch(b){case "color":case "backgroundColor":d=h.ttmlToCssColor(f);l.css(c,b,d);break;case "direction":case "display":l.css(c,b,d);break;case "displayAlign":switch(f){case "before":d="top";break;case "center":d="middle";break;case "after":d="bottom"}l.css(c,"vertical-align",d);break;case "extent":d=e=void 0;"auto"!==f&&(f=f.split(/\s+/),2===f.length&&(e=this.ttmlToCssUnits(f[0],
    !0),d=this.ttmlToCssUnits(f[1],!1)));e||(e=(this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions.width:this.settings.relatedMediaObjectRegion.width).toString()+"px",d=(this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions.height:this.settings.relatedMediaObjectRegion.height).toString()+"px");l.css(c,"position","absolute");l.css(c,"width",e);l.css(c,"min-width",e);l.css(c,"max-width",e);l.css(c,"height",d);l.css(c,"min-height",d);
    l.css(c,"max-height",d);break;case "fontFamily":this.settings.fontMap&&this.settings.fontMap[f]&&(d=this.settings.fontMap[f]);"smallCaps"===f&&l.css(c,"fontVariant","small-caps");l.css(c,b,d);break;case "fontSize":f=f.split(/\s+/);d=this.ttmlToCssFontSize(1<f.length?f[1]:f[0],!1,.75,"ttml:region"===e);l.css(c,b,d);break;case "fontStyle":case "fontWeight":l.css(c,b,d);break;case "lineHeight":d="normal"===f?f:this.ttmlToCssFontSize(f,!1);l.css(c,"line-height",d);break;case "computed-lineHeight":e=-1;
    b=0;for(f=f.split(",");b<f.length;b++)(d=this.ttmlToCssFontSize(f[b],!1))&&-1!==d.indexOf("px")&&d.indexOf("px")===d.length-2&&(d=parseFloat(d.substr(0,d.length-2)),!isNaN(d)&&d>e&&(e=d));0<=e&&l.css(c,"line-height",e+"px");break;case "origin":"auto"!==f&&(f=f.split(/\s+/),2===f.length&&(l.css(c,"position","absolute"),l.css(c,"left",this.ttmlToCssUnits(f[0],!0)),l.css(c,"top",this.ttmlToCssUnits(f[1],!1))));break;case "opacity":l.css(c,b,d);break;case "padding":e=k.getDimensions(c);f=f.split(/\s+/);
    switch(f.length){case 1:d=this.ttmlToCssUnits(f[0],!1,e);b=this.ttmlToCssUnits(f[0],!0,e);d=g.format("{0} {1} {0} {1}",d,b);break;case 2:d=this.ttmlToCssUnits(f[0],!1,e);b=this.ttmlToCssUnits(f[1],!0,e);d=g.format("{0} {1} {0} {1}",d,b);break;case 3:d=this.ttmlToCssUnits(f[0],!1,e);b=this.ttmlToCssUnits(f[1],!0,e);var a=this.ttmlToCssUnits(f[2],!1,e);d=g.format("{0} {1} {2} {1}",d,b,a);break;case 4:d=this.ttmlToCssUnits(f[0],!1,e),b=this.ttmlToCssUnits(f[1],!0,e),a=this.ttmlToCssUnits(f[2],!1,e),
    f=this.ttmlToCssUnits(f[3],!0,e),d=g.format("{0} {1} {2} {3}",d,b,a,f)}l.css(c,"box-sizing","border-box");l.css(c,"border-style","solid");l.css(c,"border-color","transparent");l.css(c,"border-width",d);break;case "textAlign":switch(f){case "start":d="left";break;case "end":d="right"}l.css(c,"text-align",d);break;case "textDecoration":d=h.ttmlToCssTextDecoration(f);l.css(c,"text-decoration",d);break;case "textOutline":f=l.css(c,"color");l.css(c,"text-shadow",this.ttmlToCssTextOutline(d,f));break;case "unicodeBidi":switch(f){case "bidiOverride":d=
    "bidi-override"}l.css(c,"unicode-bidi",d);break;case "visibility":l.css(c,b,d);break;case "writingMode":switch(f){case "lr":case "lrtb":l.css(c,"writing-mode","horizontal-tb");l.css(c,"-webkit-writing-mode","horizontal-tb");l.css(c,"writing-mode","lr-tb");break;case "rl":case "rltb":l.css(c,"writing-mode","horizontal-tb");l.css(c,"-webkit-writing-mode","horizontal-tb");l.css(c,"writing-mode","rl-tb");break;case "tblr":l.css(c,"text-orientation","upright");l.css(c,"writing-mode","vertical-lr");l.css(c,
    "-webkit-text-orientation","upright");l.css(c,"-webkit-writing-mode","vertical-lr");l.css(c,"writing-mode","tb-lr");break;case "tb":case "tbrl":l.css(c,"text-orientation","upright"),l.css(c,"writing-mode","vertical-rl"),l.css(c,"-webkit-text-orientation","upright"),l.css(c,"-webkit-writing-mode","vertical-rl"),l.css(c,"writing-mode","tb-rl")}break;case "wrapOption":l.css(c,"white-space","noWrap"===f?"nowrap":"pre"===f?"pre":"normal");break;case "zIndex":l.css(c,b,d);break;default:l.css(c,b,d)}};h.defaultStyle=
    function(c){l.css(c,"background-color",h.TtmlNamedColorMap.transparent);l.css(c,"offset","0");l.css(c,"margin","0");l.css(c,"padding","0");l.css(c,"border","0");return c};h.prototype.ttmlToCssUnits=function(c,e,b){var f=c;if(c){var h=c.charAt(c.length-1);if("c"===h||"%"===h){f=this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions:this.settings.relatedMediaObjectRegion;c=parseFloat(c.substr(0,c.length-1));f=e?f.width:f.height;var d=void 0;"c"===h?d=c*f/(e?this.settings.cellResolution.columns:
    this.settings.cellResolution.rows):"%"===h&&(b&&(f=e?b.width:b.height),d=f*c/100);d=Math.round(10*d)/10;f=d+"px"}}return f};h.prototype.ttmlToCssFontSize=function(c,e,b,f){void 0===b&&(b=1);void 0===f&&(f=!1);var h=c;if(c){var d=c.charAt(c.length-1);if("c"===d||f&&"%"===d)f=this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions:this.settings.relatedMediaObjectRegion,c=parseFloat(c.substr(0,c.length-1))*(e?f.width:f.height)/(e?this.settings.cellResolution.columns:this.settings.cellResolution.rows),
    "%"===d&&(c/=100),c=Math.floor(c*b*10)/10,h=c+"px"}return h};h.prototype.ttmlToCssTextOutline=function(c,e){var b="none";if(!g.isNullOrWhiteSpace(c)&&"none"!==c){var f=c.split(/\s+/),d=c=void 0;if(1===f.length){c=e;d=f[0];var k=""}else 3===f.length?(c=f[0],d=f[1],k=f[2]):2===f.length&&(k=f[0].charAt(0),"0"<=k&&"9">=k?(c=e,d=f[0],k=f[1]):(c=f[0],d=f[1],k=""));k=this.ttmlToCssFontSize(k,!1,.75);d=this.ttmlToCssFontSize(d,!1,.75);if((f=h.lengthRegEx.exec(d))&&3===f.length){e=Math.round(parseFloat(f[1]));
    f=f[2];b="";for(d=-e;d<=e;d++)for(var a=-e;a<=e;a++)if(0!==d||0!==a)b+=g.format("{0}{4} {1}{4} {2} {3}, ",d,a,k,h.ttmlToCssColor(c),f);b&&(b=b.substr(0,b.length-2))}}return b};h.ttmlToCssTextDecoration=function(c){var e="";c=c.split(/\s+/);for(var b=0;b<c.length;b++){var f=c[b];switch(f){case "none":case "noUnderline":case "noLineThrough":case "noOverline":e="none"}}for(b=0;b<c.length;b++)switch(f=c[b],f){case "none":case "noUnderline":case "noLineThrough":case "noOverline":break;case "lineThrough":e+=
    " line-through";break;default:e+=" "+f}return g.trim(e)};h.ttmlToCssColor=function(c){var e=c;c=c.toLowerCase();if(0===c.indexOf("rgba")){if((c=h.rgbaRegEx.exec(c))&&5===c.length){e=c[1];var b=c[2],f=c[3];c=parseInt(c[4],10);e=g.format("rgba({0},{1},{2},{3})",e,b,f,Math.round(100*c/255)/100)}}else"#"===c.charAt(0)&&9===c.length?(e=parseInt(c.substr(1,2),16),b=parseInt(c.substr(3,2),16),f=parseInt(c.substr(5,2),16),c=parseInt(c.substr(7,2),16),e=g.format("rgba({0},{1},{2},{3})",e,b,f,Math.round(100*
    c/255)/100)):h.TtmlNamedColorMap[c]&&(e=h.TtmlNamedColorMap[c]);return e};h.lengthRegEx=/\s*(\d+\.*\d*)(.*)\s*/;h.rgbaRegEx=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*/;h.TtmlNamedColorMap={transparent:"rgba(0,0,0,0)",black:"rgba(0,0,0,1)",silver:"rgba(192,192,192,1)",gray:"rgba(128,128,128,1)",white:"rgba(255,255,255,1)",maroon:"rgba(128,0,0,1)",red:"rgba(255,0,0,1)",purple:"rgba(128,0,128,1)",fuchsia:"rgba(255,0,255,1)",magenta:"rgba(255,0,255,1)",green:"rgba(0,128,0,1)",
    lime:"rgba(0,255,0,1)",olive:"rgba(128,128,0,1)",yellow:"rgba(255,255,0,1)",navy:"rgba(0,0,128,1)",blue:"rgba(0,0,255,1)",teal:"rgba(0,128,128,1)",aqua:"rgba(0,255,255,1)",cyan:"rgba(0,255,255,1)"};return h}();a.TtmlContext=m});r("data/player-data-interfaces",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.VideoErrorCodes=a.DownloadableMediaTypes=a.MediaQuality=a.ClosedCaptionTypes=a.MediaTypes=void 0;(function(a){a[a.MP4="MP4"]="MP4";a[a.DASH="DASH"]="DASH";
    a[a.SMOOTH="SMOOTH"]="SMOOTH";a[a.HLS="HLS"]="HLS"})(a.MediaTypes||(a.MediaTypes={}));(function(a){a[a.VTT="VTT"]="VTT";a[a.TTML="TTML"]="TTML"})(a.ClosedCaptionTypes||(a.ClosedCaptionTypes={}));(function(a){a[a.HD="HD"]="HD";a[a.HQ="HQ"]="HQ";a[a.SD="SD"]="SD";a[a.LO="LO"]="LO"})(a.MediaQuality||(a.MediaQuality={}));(function(a){a[a.transcript="transcript"]="transcript";a[a.audio="audio"]="audio";a[a.video="video"]="video";a[a.videoWithCC="videoWithCC"]="videoWithCC"})(a.DownloadableMediaTypes||
    (a.DownloadableMediaTypes={}));(function(a){a[a.BufferingFirstByteTimeout=2E3]="BufferingFirstByteTimeout";a[a.MediaErrorAborted=2100]="MediaErrorAborted";a[a.MediaErrorNetwork=2101]="MediaErrorNetwork";a[a.MediaErrorDecode=2102]="MediaErrorDecode";a[a.MediaErrorSourceNotSupported=2103]="MediaErrorSourceNotSupported";a[a.MediaErrorUnknown=2104]="MediaErrorUnknown";a[a.MediaSelectionNoMedia=2200]="MediaSelectionNoMedia";a[a.AmpEncryptError=2405]="AmpEncryptError";a[a.AmpPlayerMismatch=2406]="AmpPlayerMismatch"})(a.VideoErrorCodes||
    (a.VideoErrorCodes={}))});r("utilities/environment",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.Environment=void 0;m=function(){function a(){}a.isOfficeCLView=function(){var d=parent!==window?document.referrer:window.location.href;return d.match(/client/i)&&d.match(/support.office./i)?!0:!1};a.isVideoPlayerSupported=function(){return a.isHTML5videoSupported()&&a.isES5Supported()};a.isHTML5videoSupported=function(){try{return!!document.createElement("video").canPlayType}catch(d){}return!1};
    a.isES5Supported=function(){try{var d=!(!Function.prototype||!Function.prototype.bind),a=!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions);if(String.prototype&&String.prototype.trim&&d&&a)return!0}catch(g){}return!1};a.userAgent=navigator.userAgent;a.platform=navigator.platform;
    a.maxTouchPoints=navigator.maxTouchPoints;a.isWindowsPhone=!!a.userAgent.match(/Windows Phone/i);a.isSilk=!!a.userAgent.match(/Silk/i);a.hasSilkVersion=/\bSilk\/(\d+)\.(\d+)/.test(a.userAgent);a.silkMajor=a.hasSilkVersion?Number(RegExp.$1):0;a.silkMinor=a.hasSilkVersion?Number(RegExp.$2):0;a.isSilkModern=3<a.silkMajor||3<=a.silkMajor&&5<=a.silkMinor;a.isAndroid=!a.isWindowsPhone&&(a.isSilk||!!a.userAgent.match(/Android/i));a.androidVersion=/Android (\d+\.\d+)/i.test(a.userAgent)?Number(RegExp.$1):
    a.hasSilkVersion?a.isSilkModern?4:1:0;a.isIPhone=!!a.userAgent.match(/iPhone/i)||!!a.userAgent.match(/iPod/i);a.isIPad=!!a.userAgent.match(/iPad/i)||!!("MacIntel"===a.platform&&1<a.maxTouchPoints);a.isIProduct=a.isIPad||a.isIPhone;a.isBlackBerry=!!a.userAgent.match(/BlackBerry/i);a.isHtcWindowsPhone=a.isWindowsPhone&&!!a.userAgent.match(/HTC/i);a.windowsVersion=/Windows NT(\s)*(\d+\.\d+)/.test(a.userAgent)?parseFloat(RegExp.$2):-1;a.ieVersion=/MSIE (\d+\.\d+)/.test(a.userAgent)?Number(RegExp.$1):
    /Trident.*rv:(\d+\.\d+)/.test(a.userAgent)?Number(RegExp.$1):0;a.isIEMobileModern=/\bIEMobile\/(\d+\.\d+)/.test(a.userAgent)?10<=Number(RegExp.$1):/Windows Phone (\d+\.\d+)/i.test(a.userAgent)?10<=Number(RegExp.$1):!1;a.isAndroidModern=a.isAndroid&&(4<=a.androidVersion||a.isSilkModern);a.isMobile=a.isIProduct||a.isAndroid||a.isBlackBerry||a.isWindowsPhone;a.useNativeControls=a.isIProduct;a.isWebkit=!!a.userAgent.match(/Webkit/i);a.isFirefox=!!a.userAgent.match(/Firefox/i);a.isChrome=!!a.userAgent.match(/Chrome/i)&&
    navigator.vendor&&-1<navigator.vendor.indexOf("Google");a.isEdgeBrowser=-1<a.userAgent.indexOf("Edge");a.isTV=!!a.userAgent.match(/.*SMART\-TV.*Safari\/(535\.20\+|537\.42)/);a.isWindowsRT=/^.*?\bWindows\b.*?\bARM\b.*?$/m.test(a.userAgent);a.isInIframe=parent!==window;a.isSafari=navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return a}();a.Environment=m});r("utilities/player-utility","require exports mwf/utilities/stringExtensions data/player-data-interfaces mwf/utilities/utility utilities/environment".split(" "),
    function(m,a,n,d,l,g){Object.defineProperty(a,"__esModule",{value:!0});a.PlayerUtility=void 0;m=function(){function a(){}a.random4CharString=function(){return(1+Math.random()).toString(32).substring(1)};a.loadScript=function(h){var c=document.getElementsByTagName("script")[0],e=document.createElement("script");e.src=h;e.async=!0;e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!==e.readyState&&"complete"!==e.readyState||(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e))};
    c.parentNode.insertBefore(e,c)};a.formatContentErrorMessage=function(h,c,e){h=n.format("[CE{0}]: {1}",d.VideoErrorCodes[h],c);e&&(h+=n.format("; (Additional: {0})",e));return h};a.logConsoleMessage=function(h,c){void 0===c&&(c="VideoPlayer");h=n.format("[{0}][{1}] {2}",a.toLogTime(new Date),c,h);"object"===typeof console&&console.log&&console.log(h);g.Environment.isOfficeCLView()&&a.logPanelMessage(h,c)};a.toLogTime=function(h){h||(h=new Date);var c=h.getHours(),e=h.getMinutes();h=h.getSeconds();
    return(10>c?"0"+c:c)+":"+(10>e?"0"+e:e)+":"+(10>h?"0"+h:h)};a.toFriendlyBitrateString=function(h){return 1E7<=h?Math.round(h/1E6).toLocaleString()+" Mbps":1E6<=h?(.01*Math.round(h/1E6*100)).toLocaleString()+" Mbps":1E4<=h?Math.round(h/1E3).toLocaleString()+" Kbps":1E3<=h?(.01*Math.round(h/1E3*100)).toLocaleString()+" Kbps":Math.round(h).toLocaleString()+" bps"};a.logPanelMessage=function(h,c){"undefined"===typeof a.debugPanel&&(a.debugPanel=a.createDebugPanel());a.debugPanel.appendChild(document.createTextNode("["+
    (new Date).toLocaleString()+"]"+h));a.debugPanel.appendChild(document.createElement("BR"));a.debugPanel.scrollTop=a.debugPanel.scrollHeight-a.debugPanel.clientHeight};a.createDebugPanel=function(){var h=document.createElement("div");h.className="debugPanel";document.body.appendChild(h);return h};a.getGUID=function(){var h=(new Date).getTime();return"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/x/g,function(c){var e=Math.floor((h+16*Math.random())%16);return("x"===c?e:e%4+4).toString(16)})};a.removeFromPendingAjaxRequests=
    function(h){for(var c=-1,e=0;e<a.pendingAjaxRequests.length;e++)if(h===a.pendingAjaxRequests[e]){c=e;break}0<=c&&a.pendingAjaxRequests.splice(c,1)};a.ajax=function(h,c,e){if(h){var b=null;window.XDomainRequest?(b=new XDomainRequest,b.onload=function(){c&&c(b.responseText);a.removeFromPendingAjaxRequests(b)},a.pendingAjaxRequests.push(b)):window.XMLHttpRequest&&(b=new XMLHttpRequest,b.onreadystatechange=function(){if(4===b.readyState){var e=null;200===b.status&&(e=b.responseText);c&&c(e)}});b&&(b.ontimeout=
    b.onerror=function(){a.removeFromPendingAjaxRequests(b);e&&e()},b.open("GET",h,!0),b.send())}};a.createVideoPerfMarker=function(h,c){h&&c&&l.createPerfMarker(h+"_"+c,!0);"ttvs"===c&&l.createPerfMarker(c,!0)};a.getVideoPerfMarker=function(h,c){return h&&c?l.getPerfMarkerValue(h+"_"+c):0};a.pendingAjaxRequests=[];return a}();a.PlayerUtility=m});r("closed-captions/video-closed-captions","require exports closed-captions/ttml-parser mwf/utilities/htmlExtensions mwf/utilities/utility utilities/player-utility".split(" "),
    function(m,a,n,d,l,g){Object.defineProperty(a,"__esModule",{value:!0});a.VideoClosedCaptions=void 0;m=function(){function a(a,c){this.element=a;this.errorCallback=c;this.lastPlayPosition=0;this.ccLanguageId=null;this.resetCaptions()}a.prototype.setCcLanguage=function(a,c){this.element&&a!==this.ccLanguageId&&(this.ttmlContext=null,this.resetCaptions(),c?(this.ccLanguageId=a,this.loadClosedCaptions(c)):this.ccLanguageId=null)};a.prototype.getCurrentCcLanguage=function(){return this.ccLanguageId};a.prototype.loadClosedCaptions=
    function(a){var c=this;g.PlayerUtility.ajax(a,function(e){return c.onClosedCaptionsLoaded(e)},function(e){c.errorCallback&&c.errorCallback({errorType:"oneplayer.error.loadClosedCaptions.ajax",errorDesc:"Ajax call failed: "+a})})};a.prototype.onClosedCaptionsLoaded=function(h){if(h){this.element.setAttribute(a.ariaHidden,"false");var c={idPrefix:this.element.id?this.element.id+"-":"",fontMap:{"default":"Segoe ui, Arial"},relatedMediaObjectRegion:l.getDimensions(this.element)};try{if(this.ttmlContext=
    n.TtmlParser.parse(h,c))this.ttmlContext.setOwnerDocument(this.element.ownerDocument),this.ttmlContext.hasEvents()?this.updateCaptions(this.lastPlayPosition):this.element.setAttribute(a.ariaHidden,"true")}catch(e){this.errorCallback&&this.errorCallback({errorType:"oneplayer.error.onClosedCaptionsLoaded.ttmlParser",errorDesc:"TtmlDocument parser error: "+e.message})}}else this.errorCallback&&this.errorCallback({errorType:"oneplayer.error.onClosedCaptionsLoaded.ttmlDoc",errorDesc:"No ttmlDocument found"})};
    a.prototype.showSampleCaptions=function(){var a=(new DOMParser).parseFromString("\x3c?xml version\x3d'1.0' encoding\x3d'utf-8'?\x3e\n\x3ctt xml:lang\x3d'en-us' xmlns\x3d'http://www.w3.org/ns/ttml' xmlns:tts\x3d'http://www.w3.org/ns/ttml#styling' \nxmlns:ttm\x3d'http://www.w3.org/ns/ttml#metadata'\x3e\n    \x3chead\x3e\n    \x3cmetadata\x3e\n        \x3cttm:title\x3eMedia.wvx.aib\x3c/ttm:title\x3e\n        \x3cttm:copyright\x3eCopyright (c) 2013 Microsoft Corporation.  All rights reserved.\x3c/ttm:copyright\x3e\n    \x3c/metadata\x3e\n    \x3cstyling\x3e\n        \x3cstyle xml:id\x3d'Style1' tts:fontFamily\x3d'proportionalSansSerif' tts:fontSize\x3d'0.8c' tts:textAlign\x3d'center' \n        tts:color\x3d'white' /\x3e\n    \x3c/styling\x3e\n    \x3clayout\x3e\n        \x3cregion style\x3d'Style1' xml:id\x3d'CaptionArea' tts:origin\x3d'0c 12.6c' tts:extent\x3d'32c 2.4c' \n        tts:backgroundColor\x3d'rgba(0,0,0,160)' tts:displayAlign\x3d'center' tts:padding\x3d'0.3c 0.5c' /\x3e\n    \x3c/layout\x3e\n    \x3c/head\x3e\n    \x3cbody region\x3d'CaptionArea'\x3e\n    \x3cdiv\x3e\n        \x3cp begin\x3d'00:00:01.140' end\x3d'99:99:99.999'\x3eEXAMPLE CAPTIONS!\x3c/p\x3e\n    \x3c/div\x3e\n    \x3c/body\x3e\n\x3c/tt\x3e",
    "text/xml");this.onClosedCaptionsLoaded(a);a=l.getDimensions(this.element);this.ttmlContext.updateRelatedMediaObjectRegion(a);this.element.style.bottom="44px"};a.prototype.updateCaptions=function(h){this.lastPlayPosition=h;if(this.ttmlContext&&this.ttmlContext.hasEvents()){var c=Math.floor(1E3*h);this.element.setAttribute(a.ariaHidden,"false");h=l.getDimensions(this.element);this.ttmlContext.updateRelatedMediaObjectRegion(h)&&this.resetCaptions();if(this.ttmlContext.updateCurrentEvents(c)){this.element.setAttribute(a.ariaHidden,
    "true");d.removeInnerHtml(this.element);h=0;for(c=this.ttmlContext.getCues(c);h<c.length;h++){var e=c[h];this.applyUserPreferencesOverrides(e);d.css(e,"background-color","");this.element.appendChild(e)}this.element.setAttribute(a.ariaHidden,"false")}}};a.prototype.resetCaptions=function(){this.ttmlContext&&this.ttmlContext.resetCurrentEvents();this.element&&(this.element.setAttribute(a.ariaHidden,"true"),d.removeInnerHtml(this.element))};a.prototype.getCcLanguage=function(){return this.ccLanguageId};
    a.prototype.applyUserPreferencesOverrides=function(h){if(a.userPreferences){if(a.userPreferences.text)for(var c=0,e=d.selectElements("span, br",h);c<e.length;c++){var b=e[c],f;for(f in a.userPreferences.text)a.userPreferences.text.hasOwnProperty(f)&&d.css(b,f,a.userPreferences.text[f])}if(a.userPreferences.window&&(h=d.selectFirstElement("p",h)))for(f in a.userPreferences.window)a.userPreferences.window.hasOwnProperty(f)&&d.css(h,f,a.userPreferences.window[f])}};a.ariaHidden="aria-hidden";a.userPreferences=
    {text:{},window:{}};return a}();a.VideoClosedCaptions=m});r("closed-captions/video-closed-captions-settings",["require","exports","closed-captions/video-closed-captions","mwf/utilities/stringExtensions","mwf/utilities/utility"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.VideoClosedCaptionsSettings=a.closedCaptionsSettinsDefaults=a.closedCaptionsPresetMap=a.closedCaptionsSettingsMap=a.closedCaptionsSettingsOptions=void 0;a.closedCaptionsSettingsOptions={font:{pre:"cc_font_name_",
    map:{casual:"Verdana;font-variant:normal",cursive:"Zapf-Chancery,Segoe script,Cursive;font-variant:normal",monospacedsansserif:"Lucida sans typewriter,Lucida console,Consolas;font-variant:normal",monospacedserif:"Courier;font-variant:normal",proportionalsansserif:"Arial,Sans-serif;font-variant:normal",proportionalserif:"Times New Roman,Serif;font-variant:normal",smallcapitals:"Arial,Helvetica,Sans-serif;font-variant:small-caps"}},percent:{pre:"cc_percent_",map:{0:"0",50:"0.5",75:"0.75",100:"1"}},
    text_size:{pre:"cc_text_size_",map:{small:"75%","default":"100%",large:"125%",extralarge:"150%",maximum:"200%"}},color:{pre:"cc_color_",map:{white:"#FFFFFF",black:"#000000",blue:"#0000FF",cyan:"#00FFFF",green:"#00FF00",grey:"#BCBCBC",magenta:"#FF00FF",red:"#FF0000",yellow:"#FFFF00"}},text_edge_style:{pre:"cc_text_edge_style_",map:{none:"none",depressed:"1px 1px 0 #FFF,-1px -1px 0 #000",dropshadow:"1px 1px 0 #000",raised:"1px 1px 0 #000,-1px -1px 0x #FFF",uniform:"1px 1px 0 #000,-1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000"}}};
    a.closedCaptionsSettingsMap={text_font:{value:"font-family:",option:"font"},text_color:{value:"color:",option:"color"},text_size:{value:"font-size:",option:"text_size"},text_edge_style:{value:"text-shadow:",option:"text_edge_style"},text_opacity:{value:"color:",option:"percent"},text_background_color:{value:"background:",option:"color"},text_background_opacity:{value:"background:",option:"percent"},window_color:{value:"background:",option:"color"},window_opacity:{value:"background:",option:"percent"}};
    a.closedCaptionsPresetMap={preset1:{text_font:"proportionalsansserif",text_color:"white",text_opacity:"100",text_background_color:"black",text_background_opacity:"100"},preset2:{text_font:"monospacedserif",text_color:"white",text_opacity:"100",text_background_color:"black",text_background_opacity:"100"},preset3:{text_font:"proportionalsansserif",text_color:"yellow",text_opacity:"100",text_background_color:"black",text_background_opacity:"100"},preset4:{text_font:"proportionalsansserif",text_color:"blue",
    text_opacity:"100",text_background_color:"grey",text_background_opacity:"100"},preset5:{text_font:"casual",text_color:"white",text_opacity:"100",text_background_color:"black",text_background_opacity:"100"}};a.closedCaptionsSettinsDefaults={preset:"preset1",text_font:"proportionalsansserif",text_color:"white",text_opacity:"100",text_size:"default",text_edge_style:"none",text_background_color:"black",text_background_opacity:"100",window_color:"black",window_opacity:"0"};m=function(){function g(a){this.onErrorCallback=
    a;g.tempSettings={};g.tempSettings[g.presetKey]="none";this.loadUserPreferences();this.applySettings()}g.prototype.saveUserPreferences=function(){l.saveToLocalStorage(g.storageKeyName,JSON.stringify(g.userPreferences))};g.prototype.loadUserPreferences=function(){var a=l.getValueFromLocalStorage(g.storageKeyName);if(a)try{var h=JSON.parse(a),c;for(c in h)h.hasOwnProperty(c)&&this.setPreferences(c,h[c])}catch(e){if(this.onErrorCallback)this.onErrorCallback({errorType:"oneplayer.error.VideoClosedCaptionsSettings.loadUserPreferences",
    errorDesc:"UserPrefs parsing error: "+e.message})}};g.prototype.reset=function(a){if("undefined"===typeof a||null==a||a)g.userPreferences={},g.currentSettings={},this.saveUserPreferences();g.tempSettings={};g.tempSettings[g.presetKey]="none";this.applySettings()};g.prototype.setSetting=function(d,h,c){if(d&&h){if("undefined"===typeof c||null==c||c)this.setPreferences(d,h),this.saveUserPreferences(),g.tempSettings={},g.tempSettings[g.presetKey]="none";else if(c=a.closedCaptionsPresetMap[h])g.tempSettings[d]=
    h,l.extend(g.tempSettings,c);this.applySettings()}};g.prototype.getCurrentSettings=function(d){void 0===d&&(d=g.currentSettings);return l.extend({},a.closedCaptionsSettinsDefaults,d)};g.prototype.setPreferences=function(d,h){if(d&&h)if(d===g.presetKey){var c=a.closedCaptionsPresetMap[h];c&&(g.userPreferences={},g.currentSettings={},g.userPreferences[d]=h,g.currentSettings[d]=h,l.extend(g.currentSettings,c))}else this.getOptionValue(d,h)&&(g.userPreferences=l.extend({},g.currentSettings),delete g.userPreferences[g.presetKey],
    g.currentSettings[g.presetKey]="none",g.userPreferences[d]=h,g.currentSettings[d]=h)};g.prototype.applySettings=function(){var d={},h="none"===g.tempSettings[g.presetKey]?this.getCurrentSettings():this.getCurrentSettings(g.tempSettings),c;for(c in h)if(h.hasOwnProperty(c)){var e=this.getOptionValue(c,h[c]);e&&(d[c]=a.closedCaptionsSettingsMap[c].value+e)}n.VideoClosedCaptions.userPreferences.text=this.getPrefsCss(d,"text");n.VideoClosedCaptions.userPreferences.window=this.getPrefsCss(d,"window")};
    g.prototype.getOptionValue=function(d,h){if(d=a.closedCaptionsSettingsMap[d])return(d=a.closedCaptionsSettingsOptions[d.option])&&d.map[h]};g.prototype.getPrefsCss=function(a,d){var c={},e;for(e in a)if(a.hasOwnProperty(e)){var b=a[e];if(0===e.indexOf(d)&&0>e.indexOf("opacity")&&b&&0<b.length)for(var f=0,h=b.split(";");f<h.length;f++)b=h[f].split(":"),1<b.length&&(c[b[0].trim()]=b[1].trim())}for(e in a)a.hasOwnProperty(e)&&(b=a[e],0===e.indexOf(d)&&0<e.indexOf("opacity")&&(b=b.split(":"),1<b.length&&
    (f=c[b[0].trim()],h=b[1].trim(),c[b[0].trim()]=this.formatAsRgba(f,h))));return c};g.prototype.formatAsRgba=function(a,h){var c=d.format("rgba(0,0,0,{0})",h),e=a?a.indexOf("#"):-1;if(0<=e&&(a=a.substr(e+1),e=a.length/3,0<e)){c=parseInt(a.substr(0,e),16);var b=parseInt(a.substr(e,e),16);a=parseInt(a.substr(2*e,e),16);c=d.format("rgba({0},{1},{2},{3})",c,b,a,h)}return c};g.userPreferences={};g.currentSettings={};g.tempSettings={};g.storageKeyName="mwf-video-player-cc-settings";g.presetKey="preset";
    return g}();a.VideoClosedCaptionsSettings=m});r("constants/attributes",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.AddHidden={name:"hidden",value:"true"};a.RemoveHidden={name:"hidden",value:"false"};a.MWFJsControlledBy={name:"data-js-controlledby",value:"m365-dialog"};a.AriaHiddenTrue={name:"aria-hidden",value:"true"}});r("constants/class-names",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.VideoClassNames={VIDEO_PLAYER_CTN:"ow-m365-video-player-ctn",
    VIDEO_DIALOG:"ow-m365-video-dialog",VIDEO_DIALOG_MWF:"c-dialog"}});r("constants/dom-selectors",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.VideoDialogSelectors={DIALOG:".ow-m365-video-dialog",DIALOG_BUTTON:".ow-video-dialog-button"};a.VideoSelectors={VIDEO_CTN:".ow-m365-video",VIDEO_CTN_RT:".ow-generic-video",VIDEO_PLAYER_CTN:".ow-m365-video-player-ctn",VIDEO_PLAYER_CTN_RT:".ow-native-video-container"};a.DialogTabbableSelectors="select, input, textarea, button, a, .c-glyph[data-js-dialog-hide]"});
    r("constants/enums",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.Attributes=a.VideoPlayerIdPrefix=a.VideoType=a.videoCheckpoint=a.awaActionTypes=a.awaBehaviorTypes=void 0;(function(a){a[a.VIDEOSTART=240]="VIDEOSTART";a[a.VIDEOPAUSE=241]="VIDEOPAUSE";a[a.VIDEOCONTINUE=242]="VIDEOCONTINUE";a[a.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT";a[a.VIDEOJUMP=244]="VIDEOJUMP";a[a.VIDEOCOMPLETE=245]="VIDEOCOMPLETE";a[a.VIDEOBUFFERING=246]="VIDEOBUFFERING";a[a.VIDEOERROR=247]=
    "VIDEOERROR";a[a.VIDEOMUTE=248]="VIDEOMUTE";a[a.VIDEOUNMUTE=249]="VIDEOUNMUTE";a[a.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN";a[a.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN";a[a.VIDEOREPLAY=252]="VIDEOREPLAY";a[a.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD";a[a.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK";a[a.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL";a[a.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL";a[a.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL";a[a.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE";
    a[a.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL"})(a.awaBehaviorTypes||(a.awaBehaviorTypes={}));(function(a){a.CLICKLEFT="CL";a.CLICKRIGHT="CR";a.CLICKMIDDLE="CM";a.SCROLL="S";a.ZOOM="Z";a.RESIZE="R";a.KEYBOARDENTER="KE";a.KEYBOARDSPACE="KS";a.GAMEPADA="CGA";a.GAMEPADMENU="CGM";a.OTHER="O"})(a.awaActionTypes||(a.awaActionTypes={}));(function(a){a[a.PERCENTAGE=10]="PERCENTAGE";a[a.TIME=1]="TIME"})(a.videoCheckpoint||(a.videoCheckpoint={}));(function(a){a.INLINE="inline";a.DIALOG="dialog"})(a.VideoType||
    (a.VideoType={}));(function(a){a.INLINE="m365-video-inline-";a.DIALOG="m365-video-dialog-"})(a.VideoPlayerIdPrefix||(a.VideoPlayerIdPrefix={}));(function(a){a.ARIA_HIDDEN="aria-hidden";a.TABINDEX="tabindex"})(a.Attributes||(a.Attributes={}))});r("constants/events",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.Events={DOM_CONTENT_LOADED:"DOMContentLoaded"}});r("constants/player-constants",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",
    {value:!0});a.MediaEvents="abort canplay canplaythrough emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange readystatechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");a.PlayerEvents={CommonPlayerImpression:"CommonPlayerImpression",PlaybackStatusChanged:"PlaybackStatusChanged",Replay:"Replay",BufferComplete:"BufferComplete",ContentStart:"ContentStart",ContentError:"ContentError",ContentContinue:"ContentContinue",ContentComplete:"ContentComplete",
    ContentCheckpoint:"ContentCheckpoint",ContentLoaded3PP:"ContentLoaded3PP",Ready:"Ready",Play:"Play",Pause:"Pause",Resume:"Resume",Seek:"Seek",VideoQualityChanged:"VideoQualityChanged",Mute:"Mute",Unmute:"Unmute",Volume:"Volume",InfoPaneOpened:"InfoPaneOpened",VideoTimedout:"VideoTimedout",VideoTimeUpdate:"VideoTimeUpdate",FullScreenEnter:"FullScreenEnter",FullScreenExit:"FullScreenExit",UserInteracted:"VideoUserInteracted",InteractiveOverlayClick:"InteractiveOverlayClick",InteractiveBackButtonClick:"InteractiveBackButtonClick",
    InteractiveOverlayShow:"InteractiveOverlayShow",InteractiveOverlayHide:"InteractiveOverlayHide",InteractiveOverlayMaximize:"InteractiveOverlayMaximize",InteractiveOverlayMinimize:"InteractiveOverlayMaximize",InviewEnter:"InviewEnter",InviewExit:"InviewExit",TimeRemainingCheckpoint:"TimeRemainingCheckpoint",PlayerError:"PlayerError",VideoShared:"VideoShared",ClosedCaptionsChanged:"ClosedCaptionsChanged",ClosedCaptionSettingsChanged:"ClosedCaptionSettingsChanged",PlaybackRateChanged:"PlaybackRateChanged",
    MediaDownloaded:"MediaDownloaded",AudioTrackChanged:"AudioTrackChanged",AgeGateSubmitClick:"AgeGateSubmitClick",SourceErrorAttemptRecovery:"SourceErrorAttemptRecovery"};a.PlaybackStatus={Ready:"Ready",Loading:"Loading",Loaded:"Loaded",LoadFailed:"LoadFailed",PlaybackCompleted:"PlaybackCompleted",Playbackerrored:"PlaybackErrored",VideoOpening:"VideoOpening",VideoPlaying:"VideoPlaying",VideoBuffering:"VideoBuffering",VideoPaused:"VideoPaused",VideoPlayCompleted:"VideoPlayCompleted",VideoPlayFailed:"VideoPlayFailed",
    VideoClosed:"VideoClosed"};a.shareTypes={facebook:"facebook",twitter:"twitter",linkedin:"linkedin",skype:"skype",mail:"mail",copy:"copy"};a.videoPerfMarkers={scriptLoaded:"scriptLoaded",playerInit:"playerInit",metadataFetchStart:"metadataFetchStart",metadataFetchEnd:"metadataFetchEnd",playerLoadStart:"playerLoadStart",playerReady:"playerReady",wrapperLoadStart:"wrapperLoadStart",wrapperReady:"wrapperReady",locLoadStart:"locLoadStart",locReady:"locReady",playTriggered:"playTriggered",ttvs:"ttvs"};
    a.videoAdsPerfMarkers={adsScriptLoaded:"adsScriptLoaded",adsPlayerInit:"adsPlayerInit",adsFetchStart:"adsFetchStart",adsPlayerLoadStart:"adsPlayerLoadStart",adsPlayerReady:"adsPlayerReady",adsPlayTriggered:"adsPlayTriggered"}});r("mwf/utilities/keycodes",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0})});r("video-player/player-factory",["require","exports","players/core-player"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.PlayerFactory=void 0;
    m=function(){function a(){}a.createPlayer=function(a,d,k){if(a)switch(a.toLowerCase()){case "youtube":a="youtube";d=null;break;default:a="coreplayer",d=new n.CorePlayer(d,k)}else a="coreplayer",d=new n.CorePlayer(d,k);return{playerInstance:d,playerName:a}};return a}();a.PlayerFactory=m});r("data/player-config",["require","exports","data/player-data-interfaces"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.PlayerConfig=void 0;m=function(){function a(){}a.resourcesUrl="{0}/{1}/videoplayer/resources/{2}";
    a.resourceHost="%playerResourceHost%";a.resourceHash="%playerResourceHash%";a.defaultResourceHost="https://www.microsoft.com";a.ampUrl="//amp.azure.net/libs/amp/1.8.0/azuremediaplayer.min.js";a.ampVersion2Url="//amp.azure.net/libs/amp/2.1.9/azuremediaplayer.min.js";a.hasPlayerUrl='url("hash:coreui.statics/externalscripts/hasplayer/hasplayer.min.js")';a.hlsPlayerUrl='url("hash:coreui.statics/externalscripts/hlsplayer/hls.min.js")';a.shimServiceProdUrl="//prod-video-cms-rt-microsoft-com.akamaized.net/vhs/api/videos/{0}";
    a.shimServiceIntUrl="//cms-eastus-int-videoshim-rt.cloudapp.net/vhs/api/videos/{0}";a.adSdkUrl="//msadsdk.blob.core.windows.net/core/1/latest.min.js";a.eventCheckpointInterval=2E4;a.firstByteTimeoutVideoMobile=15E3;a.firstByteTimeoutVideoDesktop=1E4;a.defaultVolume=.8;a.checkpoints=[25,50,75,95];a.playbackRates=[2,1.5,1.25,1,.75,.5];a.defaultPlaybackRate=1;a.defaultQualityMobile=n.MediaQuality.SD;a.defaultQualityTV=n.MediaQuality.SD;a.defaultQualityDesktop=n.MediaQuality.HQ;a.defaultAspectRatio=16/
    9;a.defaultInViewWidthFraction=.5;a.defaultInViewHeightFraction=.5;return a}();a.PlayerConfig=m});r("data/player-options","require exports mwf/utilities/utility utilities/environment constants/player-constants data/player-config".split(" "),function(m,a,n,d,l,g){Object.defineProperty(a,"__esModule",{value:!0});a.PlayerOptions=void 0;m=function(){return function(a){this.autoload=!0;this.autoplay=!1;this.startTime=0;this.loop=this.mute=!1;this.trigger=this.lazyLoad=this.controls=!0;this.theme="light";
    this.playButtonTheme="dark";this.playButtonSize="medium";this.maskLevel="40";this.useAdaptive=this.useHLS=!0;this.debug=!1;this.reporting={enabled:!0,jsll:!0,aria:!1,wedcs:!1};this.share=this.interactivity=this.playbackSpeed=!0;this.shareOptions=[l.shareTypes.facebook,l.shareTypes.twitter,l.shareTypes.linkedin,l.shareTypes.skype,l.shareTypes.mail,l.shareTypes.copy];this.hidePosterFrame=this.playFullScreen=this.download=!1;this.shimServiceEnv="prod";this.corePlayer="html5";this.autoCaptions=null;this.flexSize=
    !1;this.aspectRatio=g.PlayerConfig.defaultAspectRatio;this.jsllPostMessage=this.ageGate=!0;this.userMinimumAge=0;this.inviewPlay=this.showImageForVideoError=this.showEndImage=this.playPauseTrigger=!1;this.timeRemainingCheckpoint=this.inviewThreshold=null;this.adsEnabled=!1;this.inViewWidthFraction=g.PlayerConfig.defaultInViewWidthFraction;this.inViewHeightFraction=g.PlayerConfig.defaultInViewHeightFraction;this.controlPanelTimeout=null;this.showControlOnLoad=!0;this.useAMPVersion2=!1;n.extend(this,
    a);d.Environment.isMobile?this.autoplay=!1:a&&void 0!==a.autoPlay&&(this.autoplay=!!a&&!!a.autoPlay);a&&void 0!==a.autoLoad&&(this.autoload=!!a&&!!a.autoLoad);this.autoplay&&(this.playFullScreen=!1,!this.mute&&d.Environment.isSafari&&(this.mute=!0));d.Environment.isIPhone&&(this.trigger=!0);if(d.Environment.isOfficeCLView()||d.Environment.isIProduct)this.useAdaptive=!1;a&&a.shareOptions&&(this.shareOptions=a.shareOptions);if(!this.aspectRatio||!n.isNumber(this.aspectRatio)||0>=this.aspectRatio)this.aspectRatio=
    g.PlayerConfig.defaultAspectRatio;if(!this.inViewWidthFraction||!n.isNumber(this.inViewWidthFraction)||1<this.inViewWidthFraction)this.inViewWidthFraction=g.PlayerConfig.defaultInViewWidthFraction;if(!this.inViewHeightFraction||!n.isNumber(this.inViewHeightFraction)||1<this.inViewHeightFraction)this.inViewHeightFraction=g.PlayerConfig.defaultInViewHeightFraction}}();a.PlayerOptions=m});r("data/video-shim-data-fetcher","require exports data/player-data-interfaces utilities/player-utility data/player-config mwf/utilities/stringExtensions".split(" "),
    function(m,a,n,d,l,g){Object.defineProperty(a,"__esModule",{value:!0});a.VideoShimDataFetcher=void 0;m=function(){function a(a,c){this.serviceEnv=a;this.serviceUrl=c}a.prototype.getMetadata=function(a,c,e){var b=this,f=this.getServiceUrl(a);d.PlayerUtility.ajax(f,function(f){if(f&&f.length){var h=null;try{h=JSON.parse(f)}catch(y){e&&e();return}f=b.mapToVideoMetadata(a,h);c&&c(f)}else e&&e()},function(){e&&e()})};a.prototype.getServiceUrl=function(a){this.serviceUrl||(this.serviceUrl="prod"===this.serviceEnv?
    l.PlayerConfig.shimServiceProdUrl:l.PlayerConfig.shimServiceIntUrl);return g.format(this.serviceUrl,a)};a.prototype.mapToVideoMetadata=function(a,c){if(!a||!c)return null;a={videoId:a};c.snippet&&(a.title=c.snippet.title,a.description=c.snippet.description,a.interactiveTriggersEnabled=c.snippet.interactiveTriggersEnabled,a.interactiveTriggersUrl=c.snippet.interactiveTriggersUrl,a.minimumAge=c.snippet.minimumAge,c.snippet.thumbnails&&(a.posterframeUrl=this.removeProtocolFromUrl(c.snippet.thumbnails.medium.url)));
    if(c.captions){a.ccFiles=[];var e="\x26vtt\x3dtrue";for(f in c.captions)c.captions.hasOwnProperty(f)&&(0>c.captions[f].url.indexOf("?")&&(e="?vtt\x3dtrue"),a.ccFiles.push({locale:f,url:this.removeProtocolFromUrl(c.captions[f].url),ccType:n.ClosedCaptionTypes.TTML}),a.ccFiles.push({locale:f,url:this.removeProtocolFromUrl(c.captions[f].url)+e,ccType:n.ClosedCaptionTypes.VTT}))}if(c.streams){a.videoFiles=[];for(var b in c.streams)if(c.streams.hasOwnProperty(b)&&"1001"!==b){var f=c.streams[b];e=this.getMediaTypeAndQuality(b);
    a.videoFiles.push({height:f.heightPixels,width:f.widthPixels,url:this.removeProtocolFromUrl(f.url),quality:e.quality,mediaType:e.mediaType})}}a.downloadableFiles=[];if(c.transcripts)for(var d in c.transcripts)c.transcripts.hasOwnProperty(d)&&a.downloadableFiles.push({locale:d,url:this.removeProtocolFromUrl(c.transcripts[d].url),mediaType:n.DownloadableMediaTypes.transcript});if(a.videoFiles){b=void 0;f=d=0;for(e=a.videoFiles;f<e.length;f++){var h=e[f];h.mediaType===n.MediaTypes.MP4&&h.width>=d&&(b=
    h,d=h.width)}b&&a.downloadableFiles.push({locale:c.snippet.culture,url:this.removeProtocolFromUrl(b.url),mediaType:n.DownloadableMediaTypes.video})}return a};a.prototype.removeProtocolFromUrl=function(a){return a?a.replace(/(^\w+:|^)\/\//,"//"):a};a.prototype.getMediaTypeAndQuality=function(a){var c=n.MediaTypes.MP4,e=null;switch(a.toLowerCase()){case "h.264_320_180_400kbps":c=n.MediaTypes.MP4;e=n.MediaQuality.LO;break;case "h.264_640_360_1000kbps":c=n.MediaTypes.MP4;e=n.MediaQuality.SD;break;case "h.264_960_540_2250kbps":c=
    n.MediaTypes.MP4;e=n.MediaQuality.HQ;break;case "h.264_1280_720_3400kbps":c=n.MediaTypes.MP4;e=n.MediaQuality.HD;break;case "apple_http_live_streaming":c=n.MediaTypes.HLS;break;case "smooth_streaming":c=n.MediaTypes.SMOOTH;break;case "mpeg_dash":c=n.MediaTypes.DASH}return{mediaType:c,quality:e}};a.prototype.isUuid=function(a){return/^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$/gi.test(a)};return a}();a.VideoShimDataFetcher=m});r("video-player/video-player","require exports video-player/player-factory mwf/utilities/utility mwf/utilities/htmlExtensions data/player-options utilities/player-utility constants/player-constants data/video-shim-data-fetcher".split(" "),
    function(m,a,n,d,l,g,k,h,c){Object.defineProperty(a,"__esModule",{value:!0});a.VideoPlayer=void 0;m=function(){function e(b,c){var a=this;this.videoComponent=b;this.playerData={};this.resizePlayer=function(){if(a.videoComponent&&a.playerData&&a.playerData.options&&!a.playerData.options.flexSize){var b=a.videoComponent.getBoundingClientRect().width;b&&a.playerData.options.aspectRatio&&l.css(a.videoComponent,"height",b/a.playerData.options.aspectRatio+"px")}else a.videoComponent.style.removeProperty("height")};
    b&&(e.playerInstanceCount++,this.playerId=b.getAttribute("id"),this.playerId||(this.playerId="vid-"+e.playerInstanceCount,this.videoComponent.setAttribute("id",this.playerId)),k.PlayerUtility.createVideoPerfMarker(this.playerId,h.videoPerfMarkers.playerInit),b="object"===typeof c?c:{},c&&c.options||(c=this.videoComponent.getAttribute(e.playerDataAttribute))&&(b=d.parseJson(c)),this.playerData.options=new g.PlayerOptions(b.options),this.playerData.metadata=b.metadata,this.playerData.metadata&&this.playerData.options.autoload?
    this.load():this.resizePlayer(),l.addThrottledEvent(window,l.eventTypes.resize,this.resizePlayer),this.getCurrentTime=function(){var b=a.getPlayPosition();return b&&b.currentTime},this.getDuration=this.getVideoDuration=function(){var b=a.getPlayPosition();return b&&b.endTime-b.startTime})}e.prototype.updateContainerVisibility=function(b,c){b&&b.setAttribute("aria-hidden",c?"true":"false")};e.prototype.load=function(b){b&&(d.extend(this.playerData.options,b.options),this.playerData.metadata=b.metadata);
    this.currentPlayer&&this.dispose();this.playerData.options&&this.playerData.options.debug&&this.videoComponent.setAttribute("data-debug","true");this.resizePlayer();!this.playerData.metadata||!this.playerData.metadata.videoId||this.playerData.metadata.videoFiles&&this.playerData.metadata.videoFiles.length||this.playerData.metadata.playerName?this.loadPlayer():this.fetchDataAndLoad()};e.prototype.updatePlayerSource=function(b){this.currentPlayer.updatePlayerSource(b)};e.prototype.fetchDataAndLoad=
    function(){var b=this;k.PlayerUtility.createVideoPerfMarker(this.playerId,h.videoPerfMarkers.metadataFetchStart);(new c.VideoShimDataFetcher(this.playerData.options.shimServiceEnv,this.playerData.options.shimServiceUrl)).getMetadata(this.playerData.metadata.videoId,function(c){k.PlayerUtility.createVideoPerfMarker(b.playerId,h.videoPerfMarkers.metadataFetchEnd);b.playerData.metadata=c;b.loadPlayer()},function(){k.PlayerUtility.createVideoPerfMarker(b.playerId,h.videoPerfMarkers.metadataFetchEnd);
    b.loadPlayer()})};e.prototype.getCurrentPlayState=function(){if(this.currentPlayer)return this.currentPlayer.getCurrentPlayState()};e.prototype.loadPlayer=function(){k.PlayerUtility.createVideoPerfMarker(this.playerId,h.videoPerfMarkers.playerLoadStart);var b=n.PlayerFactory.createPlayer(this.playerData.metadata&&this.playerData.metadata.playerName||e.defaultPlayerName,this.videoComponent,this.playerData);this.currentPlayer=b&&b.playerInstance;e.videoPlayerList[this.playerId]=this.currentPlayer};
    e.prototype.dispose=function(){this.currentPlayer&&(this.currentPlayer.dispose(),this.currentPlayer=null,delete e.videoPlayerList[this.playerId]);l.removeInnerHtml(this.videoComponent)};e.prototype.play=function(){this.currentPlayer&&this.currentPlayer.play()};e.prototype.displayImage=function(b){this.currentPlayer&&this.currentPlayer.displayImage(b)};e.prototype.pause=function(b){this.currentPlayer&&this.currentPlayer.pause(b)};e.prototype.mute=function(b){this.currentPlayer&&(void 0===b||b?this.currentPlayer.mute():
    this.currentPlayer.unmute())};e.prototype.unmute=function(){this.currentPlayer&&this.currentPlayer.unmute()};e.prototype.seek=function(b){this.currentPlayer&&this.currentPlayer.seek(b)};e.prototype.enterFullScreen=function(){this.currentPlayer&&this.currentPlayer.enterFullScreen()};e.prototype.exitFullScreen=function(){this.currentPlayer&&this.currentPlayer.exitFullScreen()};e.prototype.getPlayPosition=function(){return this.currentPlayer?this.currentPlayer.getPlayPosition():{currentTime:0,startTime:0,
    endTime:0}};e.prototype.isLive=function(){return this.currentPlayer?this.currentPlayer.isLive():!1};e.prototype.addPlayerEventListener=function(b){this.currentPlayer&&this.currentPlayer.addPlayerEventListener(b)};e.prototype.removePlayerEventListener=function(b){this.currentPlayer&&this.currentPlayer.removePlayerEventListener(b)};e.prototype.setAutoPlay=function(){this.currentPlayer&&this.currentPlayer.setAutoPlay()};e.prototype.addPlayerEventsListener=function(b){this.currentPlayer&&this.currentPlayer.addPlayerEventListener(b)};
    e.prototype.removePlayerEventsListener=function(b){this.currentPlayer&&this.currentPlayer.removePlayerEventListener(b)};e.prototype.getPlayerId=function(){return this.playerId};e.prototype.getPlayer=function(b){for(var c in e.videoPlayerList)if(b===c&&e.videoPlayerList.hasOwnProperty(c))return e.videoPlayerList[c];console.log("player not found in player list, id \x3d "+b);return null};e.prototype.resize=function(){this.currentPlayer&&this.currentPlayer.resize()};e.videoPlayerList={};e.selector=".c-video-player";
    e.typeName="VideoPlayer";e.corePlayerContainer=".f-core-player";e.externalPlayerContainer=".f-external-player";e.playerDataAttribute="data-player-data";e.defaultPlayerName="coreplayer";e.playerInstanceCount=0;return e}();a.VideoPlayer=m;d.getPerfMarkerValue(h.videoPerfMarkers.scriptLoaded)||d.createPerfMarker(h.videoPerfMarkers.scriptLoaded,!0)});r("mwf/utilities/componentFactory",["require","exports","mwf/utilities/htmlExtensions","mwf/utilities/utility","mwf/utilities/stringExtensions"],function(m,
    a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.ComponentFactory=void 0;var g=function(){function a(){}a.create=function(d){for(var c=0;c<d.length;c++){var e=d[c];if(!e.c&&!e.component)throw"factoryInput should has either component or c to tell the factory what component to create.Eg.ComponentFactory.create([{ c: Carousel] or ComponentFactory.create([component: Carousel]))";a.createComponent(e.component||e.c,e)}};a.createComponent=function(d,c){if(d){var e=c&&c.selector?c.selector:d.selector,
    b=c&&c.context?c.context:null,f=[],h=function(e,a,h){var g=0;for(a=c.elements?c.elements:a?n.selectElementsT(a,b):[document.body];g<a.length;g++){var k=a[g];k.mwfInstances||(k.mwfInstances={});if(k.mwfInstances[e])f.push(k.mwfInstances[e]);else{var l=new d(k,h);if(!l.isObserving||l.isObserving())k.mwfInstances[e]=l,f.push(l)}}};switch(c&&c.eventToBind?c.eventToBind:""){case "DOMContentLoaded":a.onDomReadyHappened?a.callBindFunction(d,e,h,c,f):a.domReadyFunctions.push(function(){return a.callBindFunction(d,
    e,h,c,f)});break;default:a.onDeferredHappened?a.callBindFunction(d,e,h,c,f):a.deferredFunctions.push(function(){return a.callBindFunction(d,e,h,c,f)})}}};a.callBindFunction=function(h,c,e,b,f){void 0===b&&(b=null);var g=(h=a.getTypeName(h))||c||"",k=b&&b.params?b.params:{};k.mwfClass=h;d.createPerfMarker(g+"_Begin");e(h,c,k);d.createPerfMarker(g+"_End");b&&b.callback&&b.callback(f)};a.getTypeName=function(d){if(d.typeName)return d.typeName;if(d.name)return d.name;if((d=a.typeNameRegEx.exec(d.toString()))&&
    1<d.length)return d[1]};a.enumerateComponents=function(a,c){if(a&&c){a=a.mwfInstances;for(var e in a)if(a.hasOwnProperty(e)){var b=a[e];if(b&&!c(e,b))break}}};a.detach=function(a,c){if(a&&a.mwfInstances&&!l.isNullOrWhiteSpace(c)&&a.mwfInstances.hasOwnProperty(c)){var e=a.mwfInstances[c];a.mwfInstances[c]=null;e&&e.detach&&e.detach()}};a.typeNameRegEx=/function\s+(\S+)\s*\(/;a.onLoadTimeoutMs=6E3;a.onDeferredHappened=!1;a.deferredFunctions=[];a.onDomReadyHappened=!1;a.domReadyFunctions=[];return a}();
    a.ComponentFactory=g;(function(){n.onDeferred(function(){g.onDeferredHappened=!0;var a=g.deferredFunctions;if(!a||0<a.length)for(var d=0;d<a.length;d++){var c=a[d];"function"===typeof c&&n.SafeBrowserApis.requestAnimationFrame.call(window,c)}g.deferredFunctions=null},g.onLoadTimeoutMs);n.documentReady(function(){g.onDomReadyHappened=!0;var a=g.domReadyFunctions;if(!a||0<a.length)for(var d=0;d<a.length;d++){var c=a[d];"function"===typeof c&&n.SafeBrowserApis.requestAnimationFrame.call(window,c)}g.domReadyFunctions=
    null},g.onLoadTimeoutMs)})()});r("mwf/utilities/observableComponent",["require","exports","mwf/utilities/htmlExtensions"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.ObservableComponent=void 0;m=function(){function a(d,g){void 0===g&&(g=null);this.element=d;this.observing=this.ignoreNextDOMChange=!1;a.shouldInitializeAsClass(d,g)&&this.setObserver()}a.prototype.detach=function(){this.unObserve();this.teardown()};a.prototype.isObserving=function(){return this.observing};a.prototype.unObserve=
    function(){this.observing=!1;this.modernObserver&&this.modernObserver.disconnect();n.removeEvent(this.element,n.eventTypes.DOMNodeInserted,this.obsoleteNodeInsertedEventHander);n.removeEvent(this.element,n.eventTypes.DOMNodeRemoved,this.obsoleteNodeRemovedEventHandler)};a.prototype.setObserver=function(){this.observing=!0;"undefined"!==typeof a.mutationObserver?this.observeModern():"MutationEvent"in window&&this.observeObsolete()};a.prototype.observeModern=function(){var d=this;this.modernObserver=
    new a.mutationObserver(function(a){d.onModernMutations(a)});this.modernObserver.observe(this.element,{childList:!0,subtree:!0})};a.prototype.onModernMutations=function(a){if(this.ignoreNextDOMChange)this.ignoreNextDOMChange=!1;else{for(var d=!1,k=!1,h=0;h<a.length;h++){for(var c=a[h],e=0,b=c.addedNodes.length;e<b;e++)c.addedNodes[e].nodeType===Node.ELEMENT_NODE&&(k=d=!0);e=0;for(b=c.removedNodes.length;e<b;e++)c.removedNodes[e].nodeType===Node.ELEMENT_NODE&&(d=!0,c.removedNodes[e]!==this.element&&
    (k=!0))}d&&this.teardown();k&&this.update()}};a.prototype.observeObsolete=function(){var a=this;this.obsoleteNodeInsertedEventHander=n.addDebouncedEvent(this.element,n.eventTypes.DOMNodeInserted,function(){a.onObsoleteNodeInserted()});this.obsoleteNodeRemovedEventHandler=n.addDebouncedEvent(this.element,n.eventTypes.DOMNodeRemoved,function(d){a.onObsoleteNodeRemoved(d)})};a.prototype.onObsoleteNodeInserted=function(){this.ignoreNextDOMChange||(this.teardown(),this.update())};a.prototype.onObsoleteNodeRemoved=
    function(a){this.ignoreNextDOMChange||(this.teardown(),n.getEventTargetOrSrcElement(a)!==this.element&&this.update())};a.shouldInitializeAsClass=function(d,g){var k=d?d.getAttribute(a.mwfClassAttribute):null;return"false"===(d?d.getAttribute(a.initializeAttribute):null)?!1:!!d&&(!k||!!g&&k===g.mwfClass)};a.mwfClassAttribute="data-mwf-class";a.initializeAttribute="data-js-initialize";a.mutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;return a}();a.ObservableComponent=
    m});r("mwf/utilities/publisher",["require","exports","mwf/utilities/observableComponent"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.Publisher=void 0;m=function(a){function d(d,k){void 0===k&&(k=null);k=a.call(this,d,k)||this;k.element=d;return k}D(d,a);d.prototype.subscribe=function(a){if(!a)return!1;if(!this.subscribers)this.subscribers=[];else if(-1!==this.subscribers.indexOf(a))return!1;this.subscribers.push(a);return!0};d.prototype.unsubscribe=function(a){if(!a||!this.subscribers||
    !this.subscribers.length)return!1;a=this.subscribers.indexOf(a);if(-1===a)return!1;this.subscribers.splice(a,1);return!0};d.prototype.hasSubscribers=function(){return!!this.subscribers&&0<this.subscribers.length};d.prototype.initiatePublish=function(a){if(this.hasSubscribers())for(var d=0,h=this.subscribers;d<h.length;d++)this.publish(h[d],a)};d.prototype.update=function(){};d.prototype.teardown=function(){};return d}(n.ObservableComponent);a.Publisher=m});r("mwf/slider/slider",["require","exports",
    "mwf/utilities/publisher","mwf/utilities/htmlExtensions","mwf/utilities/utility"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.Slider=void 0;m=function(a){function g(h){var c=a.call(this,h)||this;c.onKeyPressed=function(e){switch(e){case 37:case 39:if(!c.isVerticalSlider){var b=c.primaryDirection===d.Direction.left?c.stepOffset:-c.stepOffset;c.updateThumbOffset(c.thumbOffset+(37===e?-b:b),!0,!0);d.preventDefault(d.getEvent(event))}break;case 38:case 40:c.isVerticalSlider&&
    (b=38===e?c.stepOffset:-c.stepOffset,c.updateThumbOffset(c.thumbOffset+b,!0,!0),d.preventDefault(d.getEvent(event)));break;case 33:d.preventDefault(d.getEvent(event));b=2*c.stepOffset;c.updateThumbOffset(c.thumbOffset+b,!0,!0);break;case 34:d.preventDefault(d.getEvent(event));b=-(2*c.stepOffset);c.updateThumbOffset(c.thumbOffset+b,!0,!0);break;case 36:d.preventDefault(d.getEvent(event));e=parseInt(c.input.getAttribute("min"),10)||0;c.updateThumbOffset(e,!0,!0);break;case 35:d.preventDefault(d.getEvent(event)),
    e=parseInt(c.input.getAttribute("step"),10),c.updateThumbOffset(c.thumbRange+e,!0,!0)}};c.onKeyDown=function(e){c.onKeyPressed(l.getKeyCode(d.getEvent(e)))};c.onMouseDown=function(e){e=d.getEvent(e);c.setupDimensions();d.getEventTargetOrSrcElement(e)===c.thumb?(d.addEvent(document,d.eventTypes.mousemove,c.onMouseMove),d.addEvent(document,d.eventTypes.mouseup,c.onMouseUp),d.addEvent(document,d.eventTypes.touchmove,c.onMouseMove),d.addEvent(document,d.eventTypes.touchcancel,c.onMouseUp)):c.moveThumbTo(e.clientX,
    e.clientY)};c.onMouseMove=function(e){"mousemove"===e.type&&(e=d.getEvent(e));"touchmove"===e.type&&(e=d.getEvent(e).targetTouches[0]);c.moveThumbTo(e.clientX,e.clientY)};c.onMouseUp=function(e){d.removeEvent(document,d.eventTypes.mousemove,c.onMouseMove);d.removeEvent(document,d.eventTypes.mouseup,c.onMouseUp);d.removeEvent(document,d.eventTypes.touchmove,c.onMouseMove);d.removeEvent(document,d.eventTypes.touchcancel,c.onMouseUp)};c.onWindowResized=function(e){c.setupDimensions()};c.update();return c}
    D(g,a);g.prototype.update=function(){if(this.element){this.input=d.selectFirstElement("input",this.element);this.primaryDirection=d.getDirection(this.element);this.isVerticalSlider=d.hasClass(this.input,"f-vertical");d.preventDefaultSwipeAction(this.element,!this.isVerticalSlider);d.addClass(this.input,"x-screen-reader");var a=parseInt(this.input.getAttribute("min"),10)||0,c=parseInt(this.input.getAttribute("max"),10)||100,e=parseInt(this.input.getAttribute("value"),10),b=parseInt(this.input.getAttribute("step"),
    10);this.element.children[this.element.children.length-1]===this.input?(this.mockSlider=document.createElement("div"),this.thumb=document.createElement("button"),this.thumb.setAttribute("role","slider"),this.thumb.setAttribute("aria-valuemin",a.toString()),this.thumb.setAttribute("aria-valuemax",c.toString()),this.thumb.setAttribute("aria-valuenow",e.toString()),this.thumb.setAttribute("aria-valuetext",e.toString()),this.input.hasAttribute("aria-label")&&this.thumb.setAttribute("aria-label",this.input.getAttribute("aria-label")),
    this.valueTooltip=document.createElement("span"),this.track=document.createElement("span"),this.thumb.appendChild(this.valueTooltip),this.mockSlider.appendChild(this.thumb),this.mockSlider.appendChild(this.track),this.element.appendChild(this.mockSlider),this.ignoreNextDOMChange=!0):(this.mockSlider=this.element.children[this.element.children.length-1],this.thumb=this.mockSlider.firstElementChild,this.valueTooltip=this.thumb.firstElementChild,this.track=this.mockSlider.children[this.mockSlider.children.length-
    1]);this.halfThumbOffset=this.thumb.clientWidth/2;this.resetSliderInternal(a,c,e,b,!0)&&(d.addEvent(this.element,d.eventTypes.mousedown,this.onMouseDown),d.addEvent(this.element,d.eventTypes.touchstart,this.onMouseDown),d.addEvent(this.thumb,d.eventTypes.keydown,this.onKeyDown),this.resizeListener=d.addDebouncedEvent(window,d.eventTypes.resize,this.onWindowResized))}};g.prototype.teardown=function(){d.removeEvent(this.element,d.eventTypes.mousedown,this.onMouseDown);d.removeEvent(this.element,d.eventTypes.touchstart,
    this.onMouseDown);d.removeEvent(this.thumb,d.eventTypes.keydown,this.onKeyDown);d.removeEvent(window,d.eventTypes.resize,this.resizeListener);this.resizeListener=this.track=this.valueTooltip=this.thumb=this.mockSlider=this.input=null};g.prototype.resetSlider=function(a,c,e,b){return this.resetSliderInternal(a,c,e,b,!1)};g.prototype.resetSliderInternal=function(a,c,e,b,f){if(!l.isNumber(a)||!l.isNumber(c)||0>=Math.max(a,c)-Math.min(a,c))return!1;this.min=Math.min(a,c);this.max=Math.max(a,c);this.range=
    this.max-this.min;this.step=isNaN(b)?this.range/10:b;this.value=Math.min(Math.max(isNaN(e)?isNaN(this.value)?this.min:this.value:e,this.min),this.max);this.setupDimensions();this.updateThumbOffset(this.thumbOffset,f,!1,this.value);return!0};g.prototype.setValue=function(a){if(!l.isNumber(a)||a<this.min||a>this.max)return!1;a!==this.value&&(this.thumbOffset=(a-this.min)*this.thumbRange/this.range+this.halfThumbOffset,this.updateThumbOffset(this.thumbOffset,!1,!1,a));return!0};g.prototype.setupDimensions=
    function(){this.dimensions=d.getClientRect(this.mockSlider);this.isVerticalSlider?(this.dimensions.left-=g.hitPadding,this.dimensions.right+=g.hitPadding,this.thumbRange=this.dimensions.height-this.thumb.clientWidth,this.maxThumbOffset=this.dimensions.height):(this.dimensions.top-=g.hitPadding,this.dimensions.bottom+=g.hitPadding,this.thumbRange=this.dimensions.width-this.thumb.clientWidth,this.maxThumbOffset=this.dimensions.width);this.thumbRange=Math.max(this.thumbRange,1);this.thumbOffset=(this.value-
    this.min)*this.thumbRange/this.range+this.halfThumbOffset;this.stepOffset=this.thumbRange/(this.range/this.step);this.setThumbPosition()};g.prototype.setThumbPosition=function(){var a=Math.max(0,this.thumbOffset-this.halfThumbOffset);d.css(this.thumb,d.Direction[this.primaryDirection],a+"px");d.css(this.track,"width",a+"px")};g.prototype.updateThumbOffset=function(a,c,e,b){void 0===b&&(b=NaN);l.isNumber(a)||(a=this.thumbOffset);this.thumbOffset=Math.min(Math.max(0,a),this.maxThumbOffset);a=b;isNaN(a)&&
    (a=1E3*Math.max(0,this.thumbOffset-this.halfThumbOffset)*this.range/this.thumbRange,a=Math.round(a)/1E3+this.min);this.value=Math.min(Math.max(this.min,a),this.max);this.input.setAttribute("value",this.value.toString());a=parseFloat(this.input.getAttribute("value"));isNaN(a)||(this.value=a);a=isNaN(parseFloat(this.input.getAttribute("step")))?0===this.value%1?this.value.toString():(Math.round(10*this.value)/10).toString():this.value.toString();this.thumb.setAttribute("aria-valuenow",a);this.thumb.setAttribute("aria-valuetext",
    a);this.setThumbPosition();this.valueDescriptor=null;this.initiatePublish({value:this.value,internal:c,userInitiated:e});c=this.valueDescriptor||{};this.valueDescriptor=null;"object"===typeof c?(d.setText(this.valueTooltip,c.tooltipText||a),c.ariaValueText&&this.thumb.setAttribute("aria-valuetext",c.ariaValueText)):"string"===typeof c&&((isNaN(parseFloat(c))||c.match(":"))&&this.thumb.setAttribute("aria-valuetext","00:00:00"===c?"0 second":c),d.setText(this.valueTooltip,c))};g.prototype.publish=function(a,
    c){(a=a.onValueChanged(c))&&!this.valueDescriptor&&(this.valueDescriptor=a)};g.prototype.moveThumbTo=function(a,c){l.pointInRect(a,c,this.dimensions)&&(c=this.dimensions.bottom-c,this.isVerticalSlider||(c=this.primaryDirection===d.Direction.left?a-this.dimensions.left:this.dimensions.right-a),this.updateThumbOffset(c,!0,!0))};g.selector=".c-slider";g.typeName="Slider";g.hitPadding=20;return g}(n.Publisher);a.Slider=m});r("helpers/localization-helper",["require","exports","mwf/utilities/stringExtensions",
    "data/player-config","utilities/player-utility"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.LocalizationHelper=a.playerLocKeys=a.ccLanguageCodes=a.ccCultureLocStrings=void 0;var g={audio_tracks:"Audio Tracks",closecaption_off:"Off",geolocation_error:"We're sorry, this video cannot be played from your current location.",media_err_aborted:"video playback was aborted",media_err_decode:"video is not readable",media_err_network:"video failed to download",media_err_src_not_supported:"video format is not supported",
    media_err_unknown_error:"unknown error occurred",media_err_amp_encrypt:"The video is encrypted and we do not have the keys to decrypt it.",media_err_amp_player_mismatch:"No compatible source was found for this video.",browserunsupported:"We're sorry, but your browser does not support this video.",browserunsupported_download:"Please download a copy of this video to view on your device:",expand:"Full Screen",mute:"Mute",nullvideoerror:"We're sorry, this video cannot be played.",pause:"Pause",play:"Play",
    play_pause_button_tooltip:"Play and Pause Button",live_caption:"Skip ahead to live broadcast.",live_label:"LIVE",playbackerror:"We're sorry, an error has occurred when playing video ({0}).",standarderror:"We're sorry, this video can't be played.",time:"Time",more_caption:"More options",data_error:"Sorry, this video cannot be played.",seek:"Seek",unexpand:"Exit Full Screen",unmute:"Unmute",volume:"Volume",quality:"Quality",quality_hd:"HD",quality_hq:"HQ",quality_lo:"LO",quality_sd:"SD",quality_auto:"Auto",
    closecaption:"Closed captions",close_text:"Close",playbackspeed:"Playback speed",playbackspeed_normal:"Normal",sharing_label:"Share",sharing_facebook:"Facebook",sharing_twitter:"Twitter",sharing_linkedin:"LinkedIn",sharing_skype:"Skype",sharing_mail:"Mail",sharing_copy:"Copy link",loading_value_text:"Loading...",loading_aria_label:"Loading",descriptive_audio:"Audio description",unknown_language:"Unknown",cc_customize:"Customize",cc_text_font:"Font",cc_text_color:"Text color",cc_color_black:"Black",
    cc_color_blue:"Blue",cc_color_cyan:"Cyan",cc_color_green:"Green",cc_color_grey:"Grey",cc_color_magenta:"Magenta",cc_color_red:"Red",cc_color_white:"White",cc_color_yellow:"Yellow",cc_font_name_casual:"Casual",cc_font_name_cursive:"Cursive",cc_font_name_monospacedsansserif:"Monospaced Sans Serif",cc_font_name_monospacedserif:"Monospaced Serif",cc_font_name_proportionalserif:"Proportional Serif",cc_font_name_proportionalsansserif:"Proportional Sans Serif",cc_font_name_smallcapitals:"Small Capitals",
    cc_text_size:"Text size",cc_text_size_default:"Default",cc_text_size_extralarge:"Extra Large",cc_text_size_large:"Large",cc_text_size_maximum:"Maximum",cc_text_size_small:"Small",cc_appearance:"Appearance",cc_preset1:"Preset 1 ",cc_preset2:"Preset 2",cc_preset3:"Preset 3",cc_preset4:"Preset 4",cc_preset5:"Preset 5",cc_presettings:"Close captions appearance {0}: ({1}:{2}, {3}:{4})",cc_text_background_color:"Background color",cc_text_background_opacity:"Background opacity",cc_text_opacity:"Text opacity",
    cc_percent_0:"0%",cc_percent_100:"100%",cc_percent_25:"25%",cc_percent_50:"50%",cc_percent_75:"75%",cc_text_edge_color:"Text edge color",cc_text_edge_style:"Text edge style",cc_text_edge_style_depressed:"Depressed",cc_text_edge_style_dropshadow:"Drop shadow",cc_text_edge_style_none:"No edge",cc_text_edge_style_raised:"Raised",cc_text_edge_style_uniform:"Uniform",cc_window_color:"Window color",cc_window_opacity:"Window opacity",cc_reset:"Reset",download_label:"Download",download_transcript:"Transcript",
    download_audio:"Audio",download_video:"Video",download_videoWithCC:"Video with closed captions",agegate_day:"Day",agegate_month:"Month",agegate_year:"Year",agegate_submit:"Submit",agegate_fail:"This content is not available at this time due to age restrictions.",agegate_enterdate:"Enter your date of birth",agegate_enterdate_arialabel:"Enter your {0} of birth",agegate_verifyyourage:"Content not intended for all audiences. Please verify your age.",agegate_dateorder:"m/d/yyyy",previous_menu_aria_label:"{0} menu - go back to previous menu",
    reactive_menu_aria_label:"{0} menu - close menu",reactive_menu_aria_label_closedcaption:"Close {0}",interactivity_show:"Show",interactivity_hide:"Hide",play_video:"Play Video",playing:"playing",paused:"paused"};a.ccCultureLocStrings={"ar-ab":"\u0639\u0631\u0628\u064a","ar-xm":"\u0639\u0631\u0628\u064a","ar-ma":"\u0639\u0631\u0628\u064a","ar-sa":"\u0639\u0631\u0628\u064a","eu-es":"Euskara","bg-bg":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","ca-es":"Catal\u00e0","zh-cn":"\u7b80\u4f53\u4e2d\u6587",
    "zh-hk":"\u7e41\u9ad4\u4e2d\u6587","zh-tw":"\u7e41\u9ad4\u4e2d\u6587","hr-hr":"Hrvatski","cs-cz":"\u010ce\u0161tina","da-dk":"Dansk","nl-be":"Nederlands","nl-nl":"Nederlands","en-ab":"English","en-aa":"English","en-au":"English","en-ca":"English","en-eu":"English","en-hk":"English","en-in":"English","en-id":"English","en-ie":"English","en-jm":"English","en-my":"English","en-nz":"English","en-pk":"English","en-ph":"English","en-sg":"English","en-za":"English","en-tt":"English","en-gb":"English","en-us":"English",
    "et-ee":"Eesti","fi-fi":"Suomi","fr-ab":"Fran\u00e7ais","fr-be":"Fran\u00e7ais","fr-ca":"Fran\u00e7ais","fr-fr":"Fran\u00e7ais","fr-xf":"Fran\u00e7ais","fr-ch":"Fran\u00e7ais","gl-es":"Galego","de-de":"Deutsch","de-at":"Deutsch","de-ch":"Deutsch","el-gr":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","he-il":"\u05e2\u05d1\u05e8\u05d9\u05ea","hi-in":"\u0939\u093f\u0902\u0926\u0940","hu-hu":"Magyar","is-is":"\u00cdslenska","id-id":"Bahasa Indonesia","it-it":"Italiano","ja-jp":"\u65e5\u672c\u8a9e",
    "kk-kz":"\u049a\u0430\u0437\u0430\u049b","ko-kr":"\ud55c\uad6d\uc5b4","lv-lv":"Latvie\u0161u","lt-lt":"Lietuvi\u0173","ms-my":"Bahasa Melayu (Asia Tenggara)\u200e","nb-no":"Norsk (bokm\u00e5l)","nn-no":"Norsk (nynorsk)","fa-ir":"\u0641\u0627\u0631\u0633\u06cc","pl-pl":"Polski","pt-br":"Portugu\u00eas (Brasil)\u200e","pt-pt":"Portugu\u00eas (Portugal)\u200e","ro-ro":"Rom\u00e2n\u0103","ru-ru":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","sr-latn-rs":"Srpski","sk-sk":"Sloven\u010dina","sl-si":"Slovenski",
    "es-ar":"Espa\u00f1ol","es-cl":"Espa\u00f1ol","es-co":"Espa\u00f1ol","es-cr":"Espa\u00f1ol","es-do":"Espa\u00f1ol","es-ec":"Espa\u00f1ol","es-us":"Espa\u00f1ol","es-gt":"Espa\u00f1ol","es-hn":"Espa\u00f1ol","es-xl":"Espa\u00f1ol","es-mx":"Espa\u00f1ol","es-ni":"Espa\u00f1ol","es-pa":"Espa\u00f1ol","es-py":"Espa\u00f1ol","es-pe":"Espa\u00f1ol","es-pr":"Espa\u00f1ol","es-es":"Espa\u00f1ol","es-uy":"Espa\u00f1ol","es-ve":"Espa\u00f1ol","sv-se":"Svenska","tl-ph":"Tagalog","th-th":"\u0e44\u0e17\u0e22",
    "tr-tr":"T\u00fcrk\u00e7e","uk-ua":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","ur-pk":"\u0627\u0631\u062f\u0648","vi-vn":"Ti\u1ebfng Vi\u1ec7t","sl-sl":"Slovenian"};a.ccLanguageCodes={"ar-ab":"ar","ar-xm":"ar","ar-ma":"ar","ar-sa":"ar","eu-es":"eu","bg-bg":"bg","ca-es":"ca","zh-cn":"zh-cn","zh-hk":"zh-hk","zh-tw":"zh-tw","hr-hr":"hr","cs-cz":"cs","da-dk":"da","nl-be":"nl","nl-nl":"nl","en-ab":"en","en-aa":"en","en-au":"en","en-ca":"en","en-eu":"en","en-hk":"en","en-in":"en","en-id":"en",
    "en-ie":"en","en-jm":"en","en-my":"en","en-nz":"en","en-pk":"en","en-ph":"en","en-sg":"en","en-za":"en","en-tt":"en","en-gb":"en","en-us":"en","et-ee":"et","fi-fi":"fi","fr-ab":"fr","fr-be":"fr","fr-ca":"fr","fr-fr":"fr","fr-xf":"fr","fr-ch":"fr","gl-es":"gl","de-de":"de","de-at":"de","de-ch":"de","el-gr":"el","he-il":"he","hi-in":"hi","hu-hu":"hu","is-is":"is","id-id":"id","it-it":"it","ja-jp":"ja","kk-kz":"kk","ko-kr":"ko","lv-lv":"lv","lt-lt":"lt","ms-my":"ms\u200e","nb-no":"nb","nn-no":"nn","fa-ir":"fa",
    "pl-pl":"pl","pt-br":"pt-br","pt-pt":"pt-pt","ro-ro":"ro","ru-ru":"ru","sr-latn-rs":"sr-latn-rs","sk-sk":"sk","sl-si":"sl","es-ar":"es-ar","es-cl":"es-cl","es-co":"es-co","es-cr":"es-cr","es-do":"es-do","es-ec":"es-ec","es-us":"es-us","es-gt":"es-gt","es-hn":"es-hn","es-xl":"es-xl","es-mx":"es-mx","es-ni":"es-ni","es-pa":"es-pa","es-py":"es-py","es-pe":"es-pe","es-pr":"es-pr","es-es":"es-es","es-uy":"es-uy","es-ve":"es-ve","sv-se":"sv","tl-ph":"tl","th-th":"th","tr-tr":"tr","uk-ua":"uk","ur-pk":"ur",
    "vi-vn":"vi","sl-sl":"sl"};a.playerLocKeys={audio_tracks:"audio_tracks",closecaption_off:"closecaption_off",geolocation_error:"geolocation_error",media_err_aborted:"media_err_aborted",media_err_decode:"media_err_decode",media_err_network:"media_err_network",media_err_src_not_supported:"media_err_src_not_supported",media_err_unknown_error:"media_err_unknown_error",media_err_amp_encrypt:"media_err_amp_encrypt",media_err_amp_player_mismatch:"media_err_amp_player_mismatch",browserunsupported:"browserunsupported",
    browserunsupported_download:"browserunsupported_download",expand:"expand",mute:"mute",nullvideoerror:"nullvideoerror",pause:"pause",play:"play",play_video:"play_video",playing:"playing",paused:"paused",play_pause_button_tooltip:"play_pause_button_tooltip",live_caption:"live_caption",live_label:"live_label",playbackerror:"playbackerror",standarderror:"standarderror",time:"time",more_caption:"more_caption",data_error:"data_error",seek:"seek",unexpand:"unexpand",unmute:"unmute",volume:"volume",quality:"quality",
    quality_hd:"quality_hd",quality_hq:"quality_hq",quality_lo:"quality_lo",quality_sd:"quality_sd",quality_auto:"quality_auto",cc_customize:"cc_customize",cc_text_font:"cc_text_font",cc_text_color:"cc_text_color",cc_color_black:"cc_color_black",cc_color_blue:"cc_color_blue",cc_color_cyan:"cc_color_cyan",cc_color_green:"cc_color_green",cc_color_grey:"cc_color_grey",cc_color_magenta:"cc_color_magenta",cc_color_red:"cc_color_red",cc_color_white:"cc_color_white",cc_color_yellow:"cc_color_yellow",cc_font_name_casual:"cc_font_name_casual",
    cc_font_name_cursive:"cc_font_name_cursive",cc_font_name_monospacedsansserif:"cc_font_name_monospacedsansserif",cc_font_name_proportionalsansserif:"cc_font_name_proportionalsansserif",cc_font_name_monospacedserif:"cc_font_name_monospacedserif",cc_font_name_proportionalserif:"cc_font_name_proportionalserif",cc_font_name_smallcapitals:"cc_font_name_smallcapitals",cc_text_size:"cc_text_size",cc_text_size_default:"cc_text_size_default",cc_text_size_extralarge:"cc_text_size_extralarge",cc_text_size_large:"cc_text_size_large",
    cc_text_size_maximum:"cc_text_size_maximum",cc_text_size_small:"cc_text_size_small",cc_appearance:"cc_appearance",cc_preset1:"cc_preset1",cc_preset2:"cc_preset2",cc_preset3:"cc_preset3",cc_preset4:"cc_preset4",cc_preset5:"cc_preset5",cc_presettings:"cc_presettings",cc_text_background_color:"cc_text_background_color",cc_text_background_opacity:"cc_text_background_opacity",cc_text_opacity:"cc_text_opacity",cc_percent_0:"cc_percent_0",cc_percent_100:"cc_percent_100",cc_percent_25:"cc_percent_25",cc_percent_50:"cc_percent_50",
    cc_percent_75:"cc_percent_75",cc_text_edge_color:"cc_text_edge_color",cc_text_edge_style:"cc_text_edge_style",cc_text_edge_style_depressed:"cc_text_edge_style_depressed",cc_text_edge_style_dropshadow:"cc_text_edge_style_dropshadow",cc_text_edge_style_none:"cc_text_edge_style_none",cc_text_edge_style_raised:"cc_text_edge_style_raised",cc_text_edge_style_uniform:"cc_text_edge_style_uniform",cc_window_color:"cc_window_color",cc_window_opacity:"cc_window_opacity",cc_reset:"cc_reset",closecaption:"closecaption",
    close_text:"close_text",playbackspeed:"playbackspeed",playbackspeed_normal:"playbackspeed_normal",sharing_label:"sharing_label",sharing_facebook:"sharing_facebook",sharing_twitter:"sharing_twitter",sharing_linkedin:"sharing_linkedin",sharing_skype:"sharing_skype",sharing_mail:"sharing_mail",sharing_copy:"sharing_copy",loading_value_text:"loading_value_text",loading_aria_label:"loading_aria_label",descriptive_audio:"descriptive_audio",unknown_language:"unknown_language",download_label:"download_label",
    download_transcript:"download_transcript",download_audio:"download_audio",download_video:"download_video",download_videoWithCC:"download_videoWithCC",agegate_day:"agegate_day",agegate_month:"agegate_month",agegate_year:"agegate_year",agegate_enterdate:"agegate_enterdate",agegate_enterdate_arialabel:"agegate_enterdate_arialabel",agegate_fail:"agegate_fail",agegate_verifyyourage:"agegate_verifyyourage",agegate_submit:"agegate_submit",agegate_dateorder:"agegate_dateorder",previous_menu_aria_label:"previous_menu_aria_label",
    reactive_menu_aria_label:"reactive_menu_aria_label",reactive_menu_aria_label_closedcaption:"reactive_menu_aria_label_closedcaption",interactivity_show:"interactivity_show",interactivity_hide:"interactivity_hide"};var k={transcript:"download_transcript",audio:"download_audio",video:"download_video",videoWithCC:"download_videoWithCC"};m=function(){function h(c,e,b,a){this.market=c;this.resHost=e;this.resHash=b;this.onErrorCallback=a}h.prototype.getCorrectResourceHost=function(){return this.resHost||
    (-1===d.PlayerConfig.resourceHost.indexOf("%playerResourceHost")?d.PlayerConfig.resourceHost:d.PlayerConfig.defaultResourceHost)};h.prototype.getResourceHash=function(){return this.resHash||(-1===d.PlayerConfig.resourceHash.indexOf("%playerResourceHash")?d.PlayerConfig.resourceHash:"latest")};h.prototype.queueRequest=function(c){var e=this;if(h.requestQueue[this.market])h.requestQueue[this.market].push(c);else{h.requestQueue[this.market]=[c];var b=n.format(d.PlayerConfig.resourcesUrl,this.getCorrectResourceHost(),
    this.market,this.getResourceHash());l.PlayerUtility.ajax(b,function(c){if(c&&c.length)try{h.resources[e.market]=JSON.parse(c)}catch(t){if(e.onErrorCallback)e.onErrorCallback({errorType:"oneplayer.error.LocalizationHelper.queueRequest.parse",errorDesc:"Parsing error "+b})}else if(e.onErrorCallback)e.onErrorCallback({errorType:"oneplayer.error.LocalizationHelper.queueRequest.ajaxcall",errorDesc:"No result for file: "+b});e.completeRequest()},this.completeRequest)}};h.prototype.completeRequest=function(){if(h.requestQueue[this.market]){for(var c=
    0,e=h.requestQueue[this.market];c<e.length;c++)this.doCallback(e[c]);h.requestQueue[this.market]=null}};h.prototype.doCallback=function(c){c&&"function"===typeof c&&c()};h.prototype.loadResources=function(c){!this.market||h.resources[this.market]?this.doCallback(c):this.queueRequest(c)};h.prototype.getLocalizedValue=function(c){return c?h.resources[this.market]&&h.resources[this.market][c]||g[c]||"":""};h.prototype.getLanguageNameFromLocale=function(c){return a.ccCultureLocStrings[c]||this.getLocalizedValue(a.playerLocKeys.unknown_language)};
    h.prototype.getLanguageCodeFromLocale=function(c){return a.ccLanguageCodes[c]||null};h.prototype.getLocalizedMediaTypeName=function(c){if(!c||!k[c])return"";c=k[c];return h.resources[this.market]&&h.resources[this.market][c]||g[c]||""};h.resources={};h.requestQueue={};return h}();a.LocalizationHelper=m});r("controls/video-controls","require exports mwf/utilities/componentFactory mwf/slider/slider mwf/utilities/utility mwf/utilities/htmlExtensions helpers/localization-helper mwf/utilities/stringExtensions utilities/environment".split(" "),
    function(m,a,n,d,l,g,k,h,c){Object.defineProperty(a,"__esModule",{value:!0});a.VideoControls=void 0;m=function(){function e(b,a,h,x){var f=this;this.videoControls=b;this.localizationHelper=h;this.contextMenu=x;this.isWindowZoomedIn=this.isEscapeButtonPressed=this.closeMenuRequested=!1;this.defaultMenuRight="90px";this.currentVolume=this.focusedMenuItemIndex=0;this.volumeAutoHideTimer=null;this.tooltipElements=[];this.reactiveControls=[];this.preventKeyUpOnLastButton=!1;this.reactiveWidths=[100,430,
    540,650,768,926,1084];this.userInteractionCallbacks=[];this.activeMenuButton=null;this.xboxControlsEnabled=!1;this.onControlKeyboardEvent=function(b){var c=l.getKeyCode(b);f.triggerUserInteractionCallback();switch(c){case 36:g.stopPropagation(b);g.preventDefault(b);f.videoPlayer.seek(f.toAbsoluteTime(0));break;case 35:g.stopPropagation(b);g.preventDefault(b);f.videoPlayer.seek(f.videoPlayer.getPlayPosition().endTime);break;case 27:f.videoPlayer.isFullScreen()&&g.stopPropagation(b);f.closeMenuRequested||
    window.parent.postMessage(JSON.stringify({eventName:"escape",playerId:l.getQSPValue("pid",!1)}),"*");f.hideAllMenus();f.hideVolumeContainer();f.closeMenuRequested=!1;break;case 37:case 39:g.stopPropagation(b);g.preventDefault(b);if(b=f.videoPlayer.getPlayPosition()){var a=b.currentTime;c=37===c?a-e.seekSteps:a+e.seekSteps;c=Math.min(Math.max(b.startTime,c),b.endTime);f.videoPlayer.seek(c)}else f.videoPlayer.seek(0);break;case 38:case 40:g.stopPropagation(b),g.preventDefault(b),f.showVolumeContainer(!0),
    b=100*f.videoPlayer.getVolume(),38===c?f.setVolume(Math.min((b+e.volumeSteps)/100,1),!0):f.setVolume(Math.max((b-e.volumeSteps)/100,0),!0)}};this.focusTrapHandler=function(b){b=g.getEvent(b);var c=g.getEventTargetOrSrcElement(b);9===l.getKeyCode(b)&&(c===f.focusTrapStart&&b.shiftKey?(b.preventDefault(),f.contextMenu&&f.contextMenu.checkContextMenuIsVisible()?f.contextMenu.setFocusOnFirstElement():f.setFocus(f.fullScreenButton)):c!==f.fullScreenButton||b.shiftKey||(b.preventDefault(),f.contextMenu&&
    f.contextMenu.checkContextMenuIsVisible()?f.contextMenu.setFocusOnFirstElement():f.setFocus(f.focusTrapStart)))};this.onPlayPauseEvents=function(b){switch(b.type){case "click":f.videoPlayer.setUserInteracted(!0);f.videoPlayer.isPaused()?(f.videoPlayer.setUserIntiatedPause(!1),f.play()):(f.videoPlayer.setUserIntiatedPause(!0),f.pause());break;case "mouseover":case "focus":c.Environment.isChrome&&(f.videoPlayer.isPaused()?f.setAriaLabelForPlayButton():f.playButton.setAttribute(e.ariaLabel,f.locPause));
    f.showElement(f.playTooltip);break;case "mouseout":case "blur":f.hideElement(f.playTooltip)}};this.onLiveButtonEvents=function(b){switch(b.type){case "click":f.videoPlayer&&f.videoPlayer.seek(f.videoPlayer.getPlayPosition().endTime);break;case "mouseover":case "focus":f.showElement(f.liveTooltip);break;case "mouseout":case "blur":f.hideElement(f.liveTooltip)}};this.onVolumeEvents=function(b){switch(b.type){case "click":g.getEventTargetOrSrcElement(b)===f.volumeButton&&(f.videoPlayer.isMuted()?(f.currentVolume=
    0===f.currentVolume?100:f.currentVolume,f.setMuted(!1,!0),f.setVolume(Math.min(f.currentVolume/100,1),!1),f.videoPlayer.updateScreenReaderElement(f.locUnmute)):(f.currentVolume=100*f.videoPlayer.getVolume(),f.setMuted(!0,!0),f.setVolume(0,!1),f.videoPlayer.updateScreenReaderElement(f.locMute)));break;case "mouseover":case "focus":f.isEscapeButtonPressed?f.isEscapeButtonPressed=!1:f.showVolumeContainer();break;case "mouseout":case "blur":f.hideVolumeContainer()}};this.onVolumeSliderEvents=function(b){switch(b.type){case "focus":f.showVolumeContainer();
    break;case "blur":f.hideVolumeContainer();break;case "keydown":var c=l.getKeyCode(b);f.showVolumeContainer(!0);27===c&&(g.stopPropagation(b),f.isEscapeButtonPressed=!0,f.closeMenuRequested=!0,f.hideVolumeContainer(),f.setFocus(f.volumeButton))}};this.onSliderKeyboardEvents=function(b){switch(l.getKeyCode(b)){case 40:case 38:case 37:case 39:case 34:case 33:case 36:case 35:g.stopPropagation(b),g.preventDefault(b)}f.triggerUserInteractionCallback()};this.onMoreOptionsEvents=function(b){switch(b.type){case "click":f.toggleOptionsDialog(!1);
    break;case "keyup":case "keydown":var c=l.getKeyCode(g.getEvent(b));if(32===c||13===c)g.preventDefault(b),"keyup"===b.type&&f.toggleOptionsDialog(!0);break;case "mouseover":case "focus":f.activeMenu||f.showElement(f.moreOptionsTooltip);break;case "mouseout":case "blur":f.hideElement(f.moreOptionsTooltip)}};this.onFullScreenEvents=function(b){switch(b.type){case "click":f.videoPlayer&&f.videoPlayer.toggleFullScreen();break;case "mouseover":case "focus":f.showElement(f.fullScreenTooltip);break;case "mouseout":case "blur":f.hideElement(f.fullScreenTooltip)}};
    this.onMenuButtonClick=function(b){var c=g.getEventTargetOrSrcElement(b),e=c.getAttribute("data-menu-id");switch(b.type){case "click":f.toggleMenuById(c,!1,e);break;case "keyup":case "keydown":"true"===f.videoControls.getAttribute("aria-hidden")&&f.videoControls.setAttribute("aria-hidden","false");var a=l.getKeyCode(g.getEvent(b));if(32===a||13===a)g.preventDefault(b),"keyup"!==b.type||f.preventKeyUpOnLastButton?f.preventKeyUpOnLastButton=!1:f.toggleMenuById(c,!0,e);break;case "mouseover":case "focus":f.activeMenu||
    f.showElement(g.selectFirstElement("span",c));break;case "mouseout":case "blur":f.hideElement(g.selectFirstElement("span",c))}};this.onMenuEvents=function(b,c){switch(b.type){case "click":f.onMenuItemClick(b,c);break;case "keyup":32===l.getKeyCode(b)&&g.preventDefault(b);break;case "keydown":f.onMenuKeyPressed(b)}};this.onMenuItemClick=function(b,c){b=g.getEvent(b);var e=g.getEventTargetOrSrcElement(b),a=e.getAttribute("data-next-menu");g.preventDefault(b);if("back"===a)b=e.getAttribute("aria-label"),
    a=f.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label).replace("{0}",""),g.hasClass(e,"closed-caption")&&(a=f.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label_closedcaption).replace("{0}","")),b&&0<=b.indexOf(a)?(f.focusOnLastButton(),f.preventKeyUpOnLastButton=!0):(e=f.menuBackStack.pop())&&f.showMenu(e,c);else if(a)f.activeMenu&&f.pushToMenuBackStack(f.activeMenu.id),f.showMenu(a,c);else{if(f.activeMenu&&(b=e.parentElement,c=b.id||b.parentElement&&
    b.parentElement.id,b=e.getAttribute("data-info")||b.getAttribute("data-info"),f.updateMenuSelection(f.activeMenu.id,c),f.videoPlayer))f.videoPlayer.onPlayerMenuItemClick({category:f.activeMenu.getAttribute("data-category"),id:c,data:b});e.getAttribute("data-persist")||f.hideAllMenus()}};this.hideAllMenus=function(b){for(var c=0,a=g.selectElements(e.menuSelector,f.menuContainer);c<a.length;c++)f.hideElement(a[c]);f.activeMenu=null;f.clearMenuBackStack();f.updateReactiveControlDisplay();f.optionsButton.setAttribute("aria-expanded",
    "false");f.activeMenuButton&&(f.activeMenuButton.setAttribute("aria-expanded","false"),b&&f.activeMenuButton.focus(),f.activeMenuButton=null);f.menuContainer.setAttribute("aria-hidden","true")};if(b&&a){this.videoPlayer=a;this.videoTitle=this.videoPlayer.getVideoTitle();this.initializeLocalization();this.initializeComponents();if(!(this.playButton&&this.playTooltip&&this.fullScreenButton&&this.fullScreenTooltip&&this.liveButton&&this.liveTooltip&&this.progressSliderElement&&this.volumeButton&&this.volumeContainer&&
    this.volumeSliderElement&&this.timeElement&&this.timeCurrent&&this.timeDuration&&this.optionsButton&&this.menuContainer)||this.xboxControlsEnabled)return null;this.focusTrapStart=this.playButton;this.updatePlayPauseState();this.isWindowZoomedIn=100<Math.round(100*window.devicePixelRatio);g.addEvent(window,g.eventTypes.resize,function(){f.isWindowZoomedIn=100<Math.round(100*window.devicePixelRatio);f.hideAllMenus()});g.addEvent(window,g.eventTypes.scroll,function(){!f.isWindowZoomedIn&&f.hideAllMenus()});
    g.addEvent(this.videoControls,g.eventTypes.keydown,this.onControlKeyboardEvent);g.addEvents(this.playButton,"click mouseover mouseout focus blur",this.onPlayPauseEvents);g.addEvents(this.liveButton,"click mouseover mouseout focus blur",this.onLiveButtonEvents);g.addEvents(this.fullScreenButton,"click mouseover mouseout focus blur",this.onFullScreenEvents);g.addEvents([this.volumeButton,this.volumeContainer],"click mouseover mouseout focus blur",this.onVolumeEvents);g.addEvents(this.optionsButton,
    "click mouseover mouseout focus blur keydown keyup",this.onMoreOptionsEvents);n.ComponentFactory.create([{component:d.Slider,eventToBind:"DOMContentLoaded",elements:[this.progressSliderElement,this.volumeSliderElement],callback:function(b){b&&b.length&&2===b.length&&(f.progressSlider=b[0],f.volumeSlider=b[1],f.progressSlider.subscribe({onValueChanged:function(b){return f.onProgressChanged(b)}}),f.volumeSlider.subscribe({onValueChanged:function(b){return f.onVolumeChanged(b)}}),g.addEvents(g.selectFirstElement("button",
    f.volumeSliderElement),"focus blur keydown",f.onVolumeSliderEvents),g.addEvents([f.progressSliderElement,f.volumeSliderElement],"keydown",f.onSliderKeyboardEvents))}}])}}e.prototype.getSeekSteps=function(){return e.seekSteps};e.prototype.getAriaLabel=function(){return e.ariaLabel};e.prototype.getLocalizationHelper=function(){return this.localizationHelper};e.prototype.getVideoPlayer=function(){return this.videoPlayer};e.prototype.setVideoControls=function(b){this.videoControls=b};e.prototype.getVideoControls=
    function(){return this.videoControls};e.prototype.setPlayButton=function(b){this.playButton=b};e.prototype.getPlayButton=function(){return this.playButton};e.prototype.setLiveButton=function(b){this.liveButton=b};e.prototype.getLiveButton=function(){return this.liveButton};e.prototype.setTimeElement=function(b){this.timeElement=b};e.prototype.getTimeElement=function(){return this.timeElement};e.prototype.setTimeCurrent=function(b){this.timeCurrent=b};e.prototype.getTimeCurrent=function(){return this.timeCurrent};
    e.prototype.setTimeDuration=function(b){this.timeDuration=b};e.prototype.getTimeDuration=function(){return this.timeDuration};e.prototype.setProgressSliderElement=function(b){this.progressSliderElement=b};e.prototype.getProgressSliderElement=function(){return this.progressSliderElement};e.prototype.setOptionsButton=function(b){this.optionsButton=b};e.prototype.getOptionsButton=function(){return this.optionsButton};e.prototype.setMenuContainer=function(b){this.menuContainer=b};e.prototype.getMenuContainer=
    function(){return this.menuContainer};e.prototype.setVolumeButton=function(b){this.volumeButton=b};e.prototype.getVolumeButton=function(){return this.volumeButton};e.prototype.setFullScreenButton=function(b){this.fullScreenButton=b};e.prototype.getFullScreenButton=function(){return this.fullScreenButton};e.prototype.setXboxControlsEnabled=function(b){this.xboxControlsEnabled=b};e.prototype.initializeComponents=function(){if(this.videoControls){var b=this.localizationHelper.getLocalizedValue(k.playerLocKeys.live_caption),
    c=this.localizationHelper.getLocalizedValue(k.playerLocKeys.live_label),a=this.localizationHelper.getLocalizedValue(k.playerLocKeys.seek),d=this.localizationHelper.getLocalizedValue(k.playerLocKeys.more_caption),h=this.localizationHelper.getLocalizedValue(k.playerLocKeys.volume);this.videoControls.children.length||(this.videoControls.innerHTML="\x3cbutton type\x3d'button' class\x3d'f-play-pause c-glyph glyph-play' aria-label\x3d'"+this.locPlay+"' role\x3d'button'\x3e\n    \x3cspan aria-hidden\x3d'true'\x3e"+
    this.locPlay+"\x3c/span\x3e\n\x3c/button\x3e\n\x3cbutton type\x3d'button' class\x3d'f-live f-live-current c-glyph glyph-view' aria-label\x3d'"+b+"' aria-hidden\x3d'true'\x3e\n    \x3cspan aria-hidden\x3d'true'\x3e"+b+"\x3c/span\x3e\n    "+c+"\n\x3c/button\x3e\n\x3cspan class\x3d'f-time'\x3e\n    \x3cspan class\x3d'f-current-time'\x3e00:00\x3c/span\x3e\n    /\n    \x3cspan class\x3d'f-duration'\x3e00:00\x3c/span\x3e\n\x3c/span\x3e\n\x3cdiv class\x3d'c-slider f-progress'\x3e\n    \x3cinput type\x3d'range' class\x3d'f-seek-bar' aria-label\x3d'"+
    a+"' value\x3d'0' min\x3d'0' tabindex\x3d'-1' step\x3d"+e.seekSteps+"\x3e\n\x3c/div\x3e\n\x3cbutton type\x3d'button' class\x3d'f-options c-glyph glyph-more' aria-label\x3d'"+d+"' aria-expanded\x3d'false'\x3e\n    \x3cspan aria-hidden\x3d'true'\x3e"+d+"\x3c/span\x3e\n\x3c/button\x3e\n\x3cdiv class\x3d'f-menu-container'\x3e\x3c/div\x3e\n\x3cbutton type\x3d'button' class\x3d'f-volume-button c-glyph glyph-volume' aria-label\x3d'"+this.locMute+"'\x3e\x3c/button\x3e\n\x3cdiv class\x3d'f-volume-slider' data-show\x3d'false' role\x3d'presentation'\x3e\n    \x3cdiv class\x3d'c-slider f-vertical' role\x3d'presentation'\x3e\n        \x3cinput type\x3d'range' class\x3d'f-volume-bar f-vertical' aria-label\x3d'"+
    h+"' \n            min\x3d'0' max\x3d'100' step\x3d'"+e.volumeSteps+"' value\x3d'100' tabindex\x3d'-1'\x3e\n    \x3c/div\x3e\n\x3c/div\x3e\n\x3cbutton type\x3d'button' class\x3d'f-full-screen c-glyph glyph-full-screen' aria-label\x3d'"+this.locFullScreen+"'\x3e\n    \x3cspan aria-hidden\x3d'true'\x3e"+this.locFullScreen+"\x3c/span\x3e\n\x3c/button\x3e");this.playButton=g.selectFirstElementT(".f-play-pause",this.videoControls);this.setAriaLabelForPlayButton();this.playTooltip=g.selectFirstElement("span",
    this.playButton);g.setText(this.playTooltip,this.locPlay);this.tooltipElements.push(this.playTooltip);this.liveButton=g.selectFirstElementT(".f-live",this.videoControls);this.liveTooltip=g.selectFirstElement("span",this.liveButton);this.tooltipElements.push(this.liveTooltip);this.timeElement=g.selectFirstElement(".f-time",this.videoControls);this.timeCurrent=g.selectFirstElement(".f-current-time",this.timeElement);this.timeDuration=g.selectFirstElement(".f-duration",this.timeElement);this.progressSliderElement=
    g.selectFirstElement(".c-slider.f-progress",this.videoControls);this.optionsButton=g.selectFirstElementT(".f-options",this.videoControls);this.optionsButton.setAttribute(e.ariaLabel,this.localizationHelper.getLocalizedValue(k.playerLocKeys.more_caption));this.moreOptionsTooltip=g.selectFirstElement("span",this.optionsButton);g.setText(this.moreOptionsTooltip,d);this.tooltipElements.push(this.moreOptionsTooltip);this.menuContainer=g.selectFirstElement(".f-menu-container",this.videoControls);this.volumeButton=
    g.selectFirstElementT(".f-volume-button",this.videoControls);this.volumeButton.setAttribute(e.ariaLabel,this.locMute);this.volumeContainer=g.selectFirstElement(".f-volume-slider",this.videoControls);this.volumeSliderElement=g.selectFirstElement(".c-slider",this.volumeContainer);this.fullScreenButton=g.selectFirstElementT(".f-full-screen",this.videoControls);this.fullScreenButton.setAttribute(e.ariaLabel,this.locFullScreen);this.fullScreenTooltip=g.selectFirstElement("span",this.fullScreenButton);
    g.setText(this.fullScreenTooltip,this.locFullScreen);this.tooltipElements.push(this.fullScreenTooltip)}};e.prototype.setAriaLabelForPlayButton=function(){""!==this.videoTitle?this.playButton.setAttribute(e.ariaLabel,this.locPlay+" "+this.videoTitle):this.playButton.setAttribute(e.ariaLabel,this.locPlayVideo)};e.prototype.initializeLocalization=function(){this.locPlay=this.localizationHelper.getLocalizedValue(k.playerLocKeys.play);this.locPlayVideo=this.localizationHelper.getLocalizedValue(k.playerLocKeys.play_video);
    this.locPlaying=this.localizationHelper.getLocalizedValue(k.playerLocKeys.playing);this.locPaused=this.localizationHelper.getLocalizedValue(k.playerLocKeys.paused);this.locPause=this.localizationHelper.getLocalizedValue(k.playerLocKeys.pause);this.locMute=this.localizationHelper.getLocalizedValue(k.playerLocKeys.mute);this.locUnmute=this.localizationHelper.getLocalizedValue(k.playerLocKeys.unmute);this.locFullScreen=this.localizationHelper.getLocalizedValue(k.playerLocKeys.expand);this.locExitFullScreen=
    this.localizationHelper.getLocalizedValue(k.playerLocKeys.unexpand)};e.prototype.setPlayPosition=function(b){if(this.videoPlayer&&b){var c=b.endTime-b.startTime,a=this.playPosition?this.playPosition.endTime-this.playPosition.startTime:0,d=this.videoPlayer.isLive();if(d){var h=Math.abs(b.currentTime-b.endTime),k=h/(b.endTime-b.startTime);20>h||.01>k?g.addClass(this.liveButton,"f-live-current"):g.removeClass(this.liveButton,"f-live-current")}isNaN(c)||isNaN(a)||1<Math.abs(c-a)||!this.playPosition?(this.progressSlider&&
    this.progressSlider.resetSlider(0,c,b.currentTime-b.startTime,e.seekSteps),this.timeDuration&&g.setText(this.timeDuration,l.toElapsedTimeString(c,!1))):this.progressSlider&&this.progressSlider.setValue(b.currentTime-b.startTime);this.timeCurrent&&g.setText(this.timeCurrent,l.toElapsedTimeString(d?b.currentTime-b.endTime:b.currentTime,!1));this.playPosition=l.extend({},b)}else this.playPosition=void 0};e.prototype.addUserInteractionListener=function(b){b&&this.userInteractionCallbacks.push(b)};e.prototype.triggerUserInteractionCallback=
    function(){if(this.userInteractionCallbacks&&this.userInteractionCallbacks.length)for(var b=0,c=this.userInteractionCallbacks;b<c.length;b++)(0,c[b])()};e.prototype.setVolume=function(b,c){l.isNumber(b)&&this.videoPlayer&&this.videoPlayer.setVolume(b,c)};e.prototype.setMuted=function(b,c){this.videoPlayer&&(b?this.videoPlayer.mute(c):this.videoPlayer.unmute(c))};e.prototype.updateVolumeState=function(){this.updateMuteGlyph();if(this.videoPlayer&&this.volumeSlider)if(this.videoPlayer.isMuted()||0===
    this.videoPlayer.getVolume())this.volumeSlider.setValue(0);else{var b=this.videoPlayer.getVolume();this.volumeSlider.setValue(Math.round(100*b))}};e.prototype.updateMuteGlyph=function(){if(this.videoPlayer&&this.volumeButton){g.removeClasses(this.volumeButton,["glyph-volume","glyph-mute"]);var b=this.videoPlayer.isMuted()||0===this.videoPlayer.getVolume();g.addClass(this.volumeButton,b?"glyph-mute":"glyph-volume");this.volumeButton.setAttribute(e.ariaLabel,b?this.locUnmute:this.locMute)}};e.prototype.prepareToHide=
    function(){this.hideAllMenus(!0);this.hideVolumeContainer()};e.prototype.hideControls=function(){var b=this;setTimeout(function(){for(var c=0,e=b.tooltipElements;c<e.length;c++)b.hideElement(e[c])},0)};e.prototype.onProgressChanged=function(b){if(!b||!this.videoPlayer)return null;var c=this.videoPlayer.isLive();if(c){var e=this.videoPlayer.getPlayPosition();e=b.value+e.startTime-e.endTime}else e=b.value,this.timeCurrent&&g.setText(this.timeCurrent,l.toElapsedTimeString(e,!1));this.videoPlayer&&b.userInitiated&&
    this.videoPlayer.seek(this.toAbsoluteTime(b.value));return l.toElapsedTimeString(e,!c)};e.prototype.toAbsoluteTime=function(b){return this.videoPlayer&&this.videoPlayer.isLive()?b+this.videoPlayer.getPlayPosition().startTime:b};e.prototype.onVolumeChanged=function(b){if(!b)return null;this.videoPlayer&&0<b.value&&this.setMuted(!1);this.videoPlayer&&0===b.value&&this.setMuted(!0);var c=Math.round(b.value);b.userInitiated&&this.setVolume(c/100,!0);return c.toString()};e.prototype.play=function(){this.videoPlayer&&
    (this.videoPlayer.play(),this.videoPlayer.updateScreenReaderElement(this.locPlaying))};e.prototype.pause=function(){this.videoPlayer&&(this.videoPlayer.pause(!0),this.videoPlayer.updateScreenReaderElement(this.locPaused))};e.prototype.updatePlayPauseState=function(){this.videoPlayer&&this.playButton&&(this.videoPlayer.isPlayable()?(this.playButton.removeAttribute("disabled"),this.videoPlayer.isPaused()?(this.playTooltip&&g.setText(this.playTooltip,this.locPlay),g.removeClass(this.playButton,"glyph-pause"),
    g.addClass(this.playButton,"glyph-play"),this.setAriaLabelForPlayButton()):(this.playTooltip&&g.setText(this.playTooltip,this.locPause),g.removeClass(this.playButton,"glyph-play"),g.addClass(this.playButton,"glyph-pause"),this.playButton.setAttribute(e.ariaLabel,this.locPause),this.prepareToHide())):(this.playTooltip&&g.setText(this.playTooltip,this.locPlay),g.removeClass(this.playButton,"glyph-pause"),g.addClass(this.playButton,"glyph-play"),this.setAriaLabelForPlayButton(),this.playButton.setAttribute("disabled",
    "disabled")))};e.prototype.setLive=function(b){this.liveButton&&this.timeElement&&(this.liveButton.setAttribute(e.ariaHidden,b?"false":"true"),this.timeElement.setAttribute(e.ariaHidden,b?"true":"false"))};e.prototype.updateFullScreenState=function(){if(this.videoPlayer&&this.fullScreenButton){var b=this.videoPlayer.isFullScreen();b?(g.removeClass(this.fullScreenButton,"glyph-full-screen"),g.addClass(this.fullScreenButton,"glyph-back-to-window"),this.setFocus(this.fullScreenButton)):(g.removeClass(this.fullScreenButton,
    "glyph-back-to-window"),g.addClass(this.fullScreenButton,"glyph-full-screen"));b=b?this.locExitFullScreen:this.locFullScreen;this.fullScreenButton.setAttribute("aria-label",b);this.fullScreenTooltip&&(g.setText(this.fullScreenTooltip,b),this.videoPlayer.updateScreenReaderElement(b))}};e.prototype.setFocusOnControlBar=function(){this.setFocus(this.playButton)};e.prototype.setFocusTrap=function(b){null===b&&(b=this.playButton);this.focusTrapStart=b;g.addEvent([b,this.fullScreenButton],g.eventTypes.keydown,
    this.focusTrapHandler)};e.prototype.removeFocusTrap=function(){g.removeEvents([this.focusTrapStart,this.fullScreenButton],"keydown",this.focusTrapHandler)};e.prototype.showVolumeContainer=function(b){var c=this;this.volumeContainer&&(this.volumeContainer.setAttribute("data-show","true"),this.onlyOneDialog(this.volumeContainer),clearTimeout(this.volumeAutoHideTimer),b&&document.activeElement!==this.volumeButton&&(this.volumeAutoHideTimer=setTimeout(function(){c.hideVolumeContainer()},e.volumeAutoHideTimeout)))};
    e.prototype.hideVolumeContainer=function(){this.volumeContainer.setAttribute("data-show","false");clearTimeout(this.volumeAutoHideTimer)};e.prototype.showElement=function(b){b&&b.setAttribute(e.ariaHidden,"false")};e.prototype.hideElement=function(b){b&&b.setAttribute(e.ariaHidden,"true")};e.prototype.toggleMenuById=function(b,c,e){this.activeMenu&&this.activeMenu.id===e?this.hideAllMenus():(b.setAttribute("aria-expanded","true"),this.showMenu(e,c,b),(b=g.selectFirstElement("button",this.activeMenu))&&
    g.removeClass(b,"glyph-chevron-left"))};e.prototype.resetMenuPosition=function(b,c){var e=g.selectElements(".f-player-menu",this.videoControls);if(e&&0<e.length)for(var a=0;a<e.length;a++){var f=g.selectFirstElement("button",e[a]);f&&f.hasAttribute("data-next-menu")&&g.addClass(f,"glyph-chevron-left")}c&&(this.menuRight=g.css(c,"right"));g.css(b,"right",this.menuRight)};e.prototype.createReactiveButton=function(b,c,e,a,d){this.hasReactiveClass(b)||(b="\n            \x3cbutton class\x3d'f-reactive c-glyph "+
    b+" "+d+"' aria-label\x3d'"+a+"' aria-hidden\x3d'true' \n            data-menu-id\x3d'"+e+"' aria-expanded\x3d'false'\x3e\n                "+("\x3cspan aria-hidden\x3d'true'\x3e"+a+"\x3c/span\x3e")+"\n            \x3c/button\x3e",e=document.createElement("div"),e.innerHTML=b,b=g.selectFirstElementT("button",e),this.videoControls.insertBefore(b,this.optionsButton),g.setText(b.firstElementChild,a),this.tooltipElements.push(b.firstElementChild),g.addEvents(b,"click mouseover mouseout focus blur keydown keyup",
    this.onMenuButtonClick),this.reactiveControls.push({button:b,priority:c}),this.sortReactiveControls())};e.prototype.sortReactiveControls=function(){this.reactiveControls.sort(function(b,c){return b.priority<c.priority?-1:b.priority>c.priority?1:0})};e.prototype.hasReactiveClass=function(b){for(var c=0;c<this.reactiveControls.length;c++)if(g.hasClass(this.reactiveControls[c].button,b))return!0;return!1};e.prototype.toggleReactiveButtonLabelAndHandlers=function(b,c){b=b.button.getAttribute("data-menu-id");
    if((b=document.getElementById(b))&&(b=b.getElementsByTagName("button")[0])&&b.hasAttribute("data-next-menu")){var e=this.localizationHelper.getLocalizedValue(k.playerLocKeys.previous_menu_aria_label).replace("{0}",""),a=this.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label).replace("{0}","");g.hasClass(b,"closed-caption")&&(a=this.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label_closedcaption).replace("{0}",""));var f=b.getAttribute("aria-label");
    !f||-1!==f.indexOf(e)&&-1!==f.indexOf(a)||(f=f.replace(e,"").replace(a,""),c?b.setAttribute("aria-label",h.format(this.localizationHelper.getLocalizedValue(k.playerLocKeys.previous_menu_aria_label),f)):g.hasClass(b,"closed-caption")?b.setAttribute("aria-label",h.format(this.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label_closedcaption),f)):b.setAttribute("aria-label",h.format(this.localizationHelper.getLocalizedValue(k.playerLocKeys.reactive_menu_aria_label),f)))}};e.prototype.toggleMoreOptionsItemVisibility=
    function(b,c){if((b=b.button.getAttribute("data-menu-id"))&&(b=document.getElementById(b+"_item"))&&b.parentElement&&b.parentElement.parentElement){var a=b.parentElement.parentElement;c?(b.setAttribute(e.ariaHidden,"false"),g.addClass(b.firstElementChild,"active")):(b.setAttribute(e.ariaHidden,"true"),g.removeClass(b.firstElementChild,"active"));c=a.querySelectorAll("li");for(var f=0,d=0;d<c.length;d++)(b=c[d].getAttribute(e.ariaHidden))&&"false"!==b||(f+=40);if(0!==f)for(this.optionsButton.setAttribute(e.ariaHidden,
    "false"),g.css(a,"height",f+4+"px"),a=f/40,f=1,d=0;d<c.length;d++)b=c[d].getAttribute(e.ariaHidden),b&&"false"!==b||(c[d].firstElementChild.setAttribute("aria-setsize",a.toString()),c[d].firstElementChild.setAttribute("aria-posinset",f.toString()),f++);else this.optionsButton.setAttribute(e.ariaHidden,"true")}};e.prototype.updateReactiveControlDisplay=function(){var b=parseInt(g.css(this.optionsButton,"padding-right"),10);b=l.getDimensions(this.optionsButton).width+b;if(0<this.reactiveControls.length){var c=
    l.getDimensions(this.videoControls).width;if(0!==c){for(var a=3*b,d=!0,h=this.reactiveControls.length-1;0<=h;h--){var k=this.reactiveControls[h];c<this.reactiveWidths[k.priority]?(this.toggleReactiveButtonLabelAndHandlers(k,!0),this.toggleMoreOptionsItemVisibility(k,!0),k.button.setAttribute(e.ariaHidden,"true")):c>this.reactiveWidths[k.priority]&&(this.toggleReactiveButtonLabelAndHandlers(k,!1),this.toggleMoreOptionsItemVisibility(k,!1),"true"===this.optionsButton.getAttribute(e.ariaHidden)&&d&&
    (a=2*b,d=!1),k.button.setAttribute(e.ariaHidden,"false"),g.css(k.button,"right",2+a+"px"),g.hasClass(k.button,"f-volume-button")&&g.css(this.volumeContainer,"right",2+a+"px"),a+=b)}g.css(this.progressSliderElement,"width","calc(100% - "+(a+140)+"px)")}}};e.prototype.initializePlayerMenus=function(){var b=g.selectElements(e.menuSelector+" ul",this.menuContainer);b&&b.length&&g.addEvents(b,"click keydown keyup",this.onMenuEvents)};e.prototype.disposeReactiveControls=function(){for(var b=0,c=this.reactiveControls;b<
    c.length;b++)g.removeElement(c[b].button);this.reactiveControls=[]};e.prototype.disposePlayerMenus=function(){var b=g.selectElements(e.menuSelector+" ul",this.menuContainer);b&&b.length&&g.removeEvents(b,"click keydown keyup",this.onMenuEvents);g.removeInnerHtml(this.menuContainer);this.disposeReactiveControls()};e.prototype.toggleOptionsDialog=function(b){this.activeMenu&&g.css(this.activeMenu,"right")===this.defaultMenuRight?this.hideAllMenus():(this.showMenu(this.optionsButton.getAttribute("data-menu-id"),
    b,this.optionsButton),this.optionsButton.setAttribute("aria-expanded","true"))};e.prototype.onlyOneDialog=function(b){this.activeMenu&&this.volumeContainer&&"false"===this.activeMenu.getAttribute(e.ariaHidden)&&"true"===this.volumeContainer.getAttribute("data-show")&&(b===this.activeMenu?this.hideVolumeContainer():this.hideAllMenus())};e.prototype.onMenuKeyPressed=function(b){var c=l.getKeyCode(b),e=g.getEventTargetOrSrcElement(b),a=e&&e.parentElement;if(this.activeMenu&&a)switch(a=this.activeMenu.id,
    this.triggerUserInteractionCallback(),c){case 37:case 39:g.stopPropagation(b);g.preventDefault(b);if(e.getAttribute("data-next-menu"))this.onMenuItemClick(b,!0);break;case 13:case 32:g.preventDefault(b);this.onMenuItemClick(b,!0);if(this.activeMenu&&(c=this.activeMenu.getElementsByTagName("button"),b=0,c&&0<c.length))for(e=0;e<c.length;e++)c[e].getAttribute("data-next-menu")===a?(this.setFocus(c[e]),this.focusedMenuItemIndex=b):g.hasClass(c[e],"active")&&b++;break;case 38:case 40:g.stopPropagation(b);
    g.preventDefault(b);(a=g.selectElements(".active",this.activeMenu))&&a.length&&(38===c?(--this.focusedMenuItemIndex,0>this.focusedMenuItemIndex&&(this.focusedMenuItemIndex=a.length-1)):this.focusedMenuItemIndex=(this.focusedMenuItemIndex+1)%a.length,this.setFocus(a[this.focusedMenuItemIndex]));break;case 33:case 36:g.stopPropagation(b);g.preventDefault(b);this.setFocus(g.selectFirstElement(".active",this.activeMenu));break;case 35:case 34:g.stopPropagation(b);g.preventDefault(b);(a=g.selectElements(".active",
    this.activeMenu))&&a.length&&this.setFocus(a[a.length-1]);break;case 27:this.activeMenu&&g.stopPropagation(b);this.closeMenuRequested=!0;this.focusOnLastButton();break;case 9:this.focusedMenuItemIndex+=b.shiftKey?-1:1,this.focusOnNextButton(b)}};e.prototype.focusOnLastButton=function(){if(this.activeMenu){for(var b=0;b<this.reactiveControls.length;b++){var c=this.reactiveControls[b].button;if(this.activeMenuButton&&this.activeMenuButton.getAttribute("data-menu-id")===c.getAttribute("data-menu-id")){this.hideAllMenus();
    this.setFocus(c);g.removeClass(c,"x-hidden-focus");return}if(this.activeMenu.id===c.getAttribute("data-menu-id")){this.hideAllMenus();this.setFocus(c);g.removeClass(c,"x-hidden-focus");return}}this.activeMenu&&(this.hideAllMenus(),this.setFocus(this.optionsButton))}};e.prototype.focusOnNextButton=function(b){if(this.activeMenu&&this.activeMenuButton){var c=g.selectElements(".active",this.activeMenu);if(this.focusedMenuItemIndex>=c.length){g.stopPropagation(b);g.preventDefault(b);for(b=this.activeMenuButton.nextElementSibling;b;){if("button"===
    b.nodeName.toLowerCase()&&"true"!==b.getAttribute(e.ariaHidden)){this.setFocus(b);break}b=b.nextElementSibling}b||this.setFocus(this.playButton);this.hideAllMenus()}else 0>this.focusedMenuItemIndex&&(g.stopPropagation(b),g.preventDefault(b),this.setFocus(this.activeMenuButton),this.hideAllMenus())}};e.prototype.calcHeight=function(b){if(!b||!this.videoControls)return 0;b=g.getClientRect(b).height;var c=g.getClientRect(this.videoControls.parentElement),e=g.getClientRect(this.videoControls);c=c.height-
    e.height-10;b>c&&(b=c);return b};e.prototype.createMenu=function(b){if(this.menuContainer&&b&&b.category&&b.id&&b.items&&b.items.length){var c="",e=b.items.length,a=1;if(b.label&&this.localizationHelper&&!b.hideBackButton){var d=h.format(this.localizationHelper.getLocalizedValue(k.playerLocKeys.previous_menu_aria_label),b.label);e+=1;c="closed-caption"===b.cssClass?c+("\x3cli role\x3d'presentation'\x3e\n    \x3cbutton class\x3d'c-action-trigger c-glyph glyph-chevron-left active closed-caption' data-next-menu\x3d'back'\n    aria-label\x3d'"+
    d+"'aria-setsize\x3d'"+e+"' aria-posinset\x3d'"+a++ +"' role\x3d'menuitem'\x3e\n    "+b.label+"\x3c/button\x3e\n\x3c/li\x3e"):c+("\x3cli role\x3d'presentation'\x3e\n    \x3cbutton class\x3d'c-action-trigger c-glyph glyph-chevron-left active' data-next-menu\x3d'back' aria-label\x3d'"+d+"'\n    aria-setsize\x3d'"+e+"' aria-posinset\x3d'"+a++ +"' role\x3d'menuitem'\x3e\n    "+b.label+"\x3c/button\x3e\n\x3c/li\x3e")}d=0;for(var g=b.items;d<g.length;d++){var l=g[d];l.subMenu&&(l.subMenuId=l.subMenu.id,
    this.createMenu(l.subMenu));var n="c-action-trigger active";n+=l.subMenuId||l.glyph||l.selectable?" c-glyph":"";n+=l.selectable&&l.selected?" glyph-check-mark":"";n+=l.subMenuId?" glyph-chevron-right":"";n+=l.glyph?" "+l.glyph:"";c+="\x3cli id\x3d'"+l.id+"' role\x3d'presentation'\x3e\n    \x3cbutton class\x3d'"+n+"' "+(l.data?"data-info\x3d'"+l.data+"'":"")+"\n        role\x3d"+(l.selectable?"'menuitemradio'":"'menuitem'")+"\n        aria-setsize\x3d'"+e+"' aria-posinset\x3d'"+a++ +"'\n        "+
    (l.selectable&&l.selected?"aria-selected\x3d'true' aria-checked\x3d'true'":"")+" \n        "+(l.selectable?"data-video-selectable\x3d'true'":"")+"\n        "+(l.subMenuId?"data-next-menu\x3d"+l.subMenuId+" aria-expanded\x3d'false' aria-haspopup\x3d'true'":"")+"\n        "+(l.persistOnClick?"data-persist\x3d'true'":"")+" "+(l.ariaLabel?"aria-label\x3d'"+l.ariaLabel+"'":"")+"\n        "+(l.language?"lang\x3d"+l.language:"")+"\x3e\n            "+(l.image?"\x3cimg src\x3d'"+l.image+"' alt\x3d'"+(l.imageAlt||
    "")+"' class\x3d'c-image'/\x3e":"")+"\n            "+l.label+"\n    \x3c/button\x3e\n\x3c/li\x3e"}b="\x3cdiv id\x3d'"+b.id+"' class\x3d'f-player-menu' aria-hidden\x3d'true' data-category\x3d'"+b.category+"'\x3e\n    \x3cul role\x3d'menu' class\x3d'c-list f-bare'\x3e\n        "+c+"\n    \x3c/ul\x3e\n\x3c/div\x3e";c=document.createElement("div");c.innerHTML=b;this.menuContainer.appendChild(c.firstChild)}};e.prototype.showMenu=function(b,c,e){b&&(e&&(this.activeMenuButton=e),this.hideControls(),this.focusedMenuItemIndex=
    0,this.hideActiveMenu(),this.menuContainer.setAttribute("aria-hidden","false"),b=g.selectFirstElement("#"+b,this.menuContainer),this.resetMenuPosition(b,e),b&&(e=g.css(b,"height"),this.showElement(b),c=this.calcHeight(b),"auto"===e&&(c+=2),g.css(b,"height",c+"px"),g.css(b,"right",this.menuRight),this.activeMenu=b,this.onlyOneDialog(b),this.setFocus(g.selectFirstElement("li:not([aria-hidden]) button",b))))};e.prototype.setFocusonPlayButton=function(){this.setFocus(this.playButton)};e.prototype.setFocus=
    function(b){b&&setTimeout(function(){b.focus()},0)};e.prototype.hideActiveMenu=function(){this.activeMenu&&(this.hideElement(this.activeMenu),this.activeMenu=null)};e.prototype.pushToMenuBackStack=function(b){this.menuBackStack&&b&&this.menuBackStack.push(b)};e.prototype.popFromMenuBackStack=function(){return this.menuBackStack&&this.menuBackStack.length?this.menuBackStack.pop():null};e.prototype.clearMenuBackStack=function(){this.menuBackStack=[]};e.prototype.setupPlayerMenus=function(b){if(this.videoControls&&
    b&&b.length){this.disposePlayerMenus();for(var c=[],e=0;e<b.length;e++){var a=b[e];c.push({id:a.id+"_item",label:a.label,subMenu:a});a.glyph&&a.priority&&this.createReactiveButton(a.glyph,a.priority,a.id,a.label,void 0!==a.cssClass?a.cssClass:"")}b=this.videoPlayer.getPlayerId()+"-options-menu";this.createMenu({id:b,items:c,category:"options"});this.optionsButton.setAttribute("data-menu-id",b);this.initializePlayerMenus();this.updateReactiveControlDisplay()}};e.prototype.updateMenuSelection=function(b,
    c){if(b&&this.menuContainer){var e=g.selectFirstElement("#"+b,this.menuContainer);if(e)for(b=0,e=g.selectElements("li",e);b<e.length;b++){var a=e[b],f=g.selectFirstElement("button",a);f&&f.getAttribute("data-video-selectable")&&(c&&c===a.id?(g.addClasses(f,["c-glyph","glyph-check-mark"]),f.setAttribute("aria-selected","true"),f.setAttribute("aria-checked","true")):(g.removeClass(f,"glyph-check-mark"),f.removeAttribute("aria-selected"),f.removeAttribute("aria-checked")))}}};e.prototype.resetSlidersWorkaround=
    function(){var b=this.videoControls.getBoundingClientRect();this.controlsBounds&&this.controlsBounds.height===b.height&&this.controlsBounds.width===b.width||(this.controlsBounds=b,this.progressSlider&&this.videoPlayer&&(b=this.videoPlayer.getPlayPosition(),this.progressSlider.resetSlider(0,b.endTime-b.startTime,b.currentTime-b.startTime,e.seekSteps)),this.volumeSlider&&this.videoPlayer&&this.volumeSlider.resetSlider(0,100,100*this.videoPlayer.getVolume(),e.volumeSteps))};e.selector=".f-video-controls";
    e.ariaHidden="aria-hidden";e.ariaLabel="aria-label";e.menuSelector=".f-player-menu";e.seekSteps=5;e.volumeSteps=5;e.volumeAutoHideTimeout=2E3;return e}();a.VideoControls=m});r("video-wrappers/video-wrapper-interface",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0})});r("video-wrappers/html5-video-wrapper","require exports data/player-data-interfaces mwf/utilities/htmlExtensions constants/player-constants mwf/utilities/utility utilities/environment constants/enums".split(" "),
    function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.Html5VideoWrapper=void 0;m=function(){function c(c){var b=this;this.triggerEvents=function(c){if(b.onMediaEventCallback)b.onMediaEventCallback(c)};this.videoPlayer=c}c.prototype.bindVideoEvents=function(c){if(this.videoTag){this.onMediaEventCallback=c;c=0;for(var b=l.MediaEvents;c<b.length;c++)d.addEvents(this.videoTag,b[c],this.triggerEvents)}};c.prototype.unbindVideoEvents=function(){if(this.videoTag)for(var c=0,b=l.MediaEvents;c<
    b.length;c++)d.removeEvents(this.videoTag,b[c],this.triggerEvents)};c.prototype.load=function(c,b,a,h,g){c||(console.log("player container is null"),h&&h());this.videoTag&&this.dispose();this.playerContainer=c;this.videoTag=d.selectFirstElementT("video",this.playerContainer);this.videoTag.autoplay=b;!this.videoTag&&h&&(console.log("video tag not found"),h());a&&setTimeout(a,0)};c.prototype.play=function(){this.videoTag&&this.videoTag.play()};c.prototype.pause=function(){this.videoTag&&this.videoTag.pause()};
    c.prototype.isPaused=function(){return this.videoTag&&this.videoTag.paused};c.prototype.isLive=function(){return!1};c.prototype.getPlayPosition=function(){return this.videoTag?{currentTime:this.videoTag.currentTime,startTime:0,endTime:this.videoTag.duration}:{currentTime:0,endTime:0,startTime:0}};c.prototype.getVolume=function(){return this.videoTag?this.videoTag.volume:0};c.prototype.setVolume=function(c){this.videoTag&&(this.videoTag.volume=c)};c.prototype.isMuted=function(){return this.videoTag?
    this.videoTag.muted:!1};c.prototype.mute=function(){this.videoTag&&(this.videoTag.muted=!0,this.videoTag.setAttribute("muted","muted"))};c.prototype.unmute=function(){this.videoTag&&(this.videoTag.muted=!1,this.videoTag.removeAttribute("muted"))};c.prototype.setCurrentTime=function(c){this.videoTag&&(this.videoTag.currentTime=c)};c.prototype.isSeeking=function(){return this.videoTag?this.videoTag.seeking:!1};c.prototype.getBufferedDuration=function(){var c=0;this.videoTag&&this.videoTag.buffered&&
    this.videoTag.buffered.length&&(c=this.videoTag.buffered.end(this.videoTag.buffered.length-1));return c};c.prototype.setSource=function(c){if(this.videoTag&&c&&c.length){var b=this.videoTag.getAttribute("src");c[0].url!==b&&(this.videoTag.setAttribute("src",c[0].url),this.videoTag.load&&this.videoTag.load(),k.Environment.isIProduct&&(this.videoTag.removeAttribute(h.Attributes.ARIA_HIDDEN),this.videoTag.removeAttribute(h.Attributes.TABINDEX),(c=this.videoPlayer.getPlayerContainer())&&c.removeAttribute(h.Attributes.TABINDEX)))}};
    c.prototype.addNativeClosedCaption=function(c,b,a){if(c&&c.length&&this.videoTag){this.clearNativeCc(this.videoTag);this.videoTag.setAttribute("crossorigin","anonymous");for(var e=0;e<c.length;e++){var f=c[e];if(f.ccType===b){var d=document.createElement("track");d.setAttribute("src",f.url);d.setAttribute("kind","captions");d.setAttribute("srclang",f.locale);d.setAttribute("label",a.getLanguageNameFromLocale(f.locale));this.videoTag.appendChild(d)}}this.videoTag.load&&this.videoTag.load()}};c.prototype.clearNativeCc=
    function(c){if(c)for(var b=0,e=d.selectElements("track",c);b<e.length;b++){var a=e[b];a&&a.parentElement===c&&c.removeChild(a)}};c.prototype.clearSource=function(){this.videoTag&&(this.videoTag.setAttribute("src",""),this.videoTag.load&&this.videoTag.load())};c.prototype.setPosterFrame=function(c){c&&this.videoTag&&this.videoTag.poster!==c&&(this.videoTag.poster=c)};c.prototype.getError=function(){if(null!==this.videoTag&&null!==this.videoTag.error){switch(this.videoTag.error.code){case this.videoTag.error.MEDIA_ERR_ABORTED:var c=
    n.VideoErrorCodes.MediaErrorAborted;break;case this.videoTag.error.MEDIA_ERR_NETWORK:c=n.VideoErrorCodes.MediaErrorNetwork;break;case this.videoTag.error.MEDIA_ERR_DECODE:c=n.VideoErrorCodes.MediaErrorDecode;break;case this.videoTag.error.MEDIA_ERR_SRC_NOT_SUPPORTED:c=n.VideoErrorCodes.MediaErrorSourceNotSupported;break;default:c=n.VideoErrorCodes.MediaErrorUnknown}return{errorCode:c}}return null};c.prototype.setPlaybackRate=function(c){this.videoTag&&c&&g.isNumber(c)&&(this.videoTag.playbackRate=
    c)};c.prototype.getPlayerTechName=function(){return"html5"};c.prototype.getWrapperName=function(){return"html5video"};c.prototype.getAudioTracks=function(){return null};c.prototype.switchToAudioTrack=function(c){throw Error("HTML5.switchToAudioTrack is not supported");};c.prototype.getCurrentAudioTrack=function(){return null};c.prototype.getVideoTracks=function(){return null};c.prototype.switchToVideoTrack=function(c){throw Error("HTML5.switchToVideoTrack is not supported");};c.prototype.getCurrentVideoTrack=
    function(){return null};c.prototype.setAutoPlay=function(){this.videoTag&&(this.videoTag.autoplay=!0,this.videoTag.setAttribute("playsinline",""))};c.prototype.dispose=function(){this.unbindVideoEvents();this.clearSource()};c.supportedMediaTypes=[n.MediaTypes.HLS,n.MediaTypes.MP4];return c}();a.Html5VideoWrapper=m});r("video-wrappers/amp-wrapper","require exports data/player-data-interfaces mwf/utilities/htmlExtensions mwf/utilities/stringExtensions constants/player-constants utilities/player-utility mwf/utilities/utility data/player-config".split(" "),
    function(m,a,n,d,l,g,k,h,c){Object.defineProperty(a,"__esModule",{value:!0});a.AmpWrapper=void 0;m=function(){function a(b){var e=this;this.ampPlayer=null;this.triggerEvents=function(b){if(e.onMediaEventCallback)e.onMediaEventCallback(b)};this.setupAmpPlayer=function(b){var c=d.selectFirstElementT("video",e.playerContainer);c||(c=d.selectFirstElementT(".f-video-player",e.playerContainer));c?(e.ampPlayer=window.amp(c,{nativeControlsForTouch:!1,autoplay:b,controls:!1,logo:{enabled:!1}},e.onAmpPlayerInit),
    e.ampPlayer.options_.autoplay=b,c.hasAttribute("aria-hidden")&&c.removeAttribute("aria-hidden"),e.onLoadedCallback&&e.onLoadedCallback()):(console.log("could not find video tag"),e.onLoadFailedCallback&&e.onLoadFailedCallback())};this.onAmpPlayerInit=function(){var b=d.selectFirstElement(".f-video-player",e.playerContainer);if(b){if(e.useAMPVersion2){for(var c=d.selectFirstElement("div",b),a=Array.prototype.slice.call(c.children),f=d.selectFirstElementT("video",b),h=0,g=a;h<g.length;h++)(a=g[h])&&
    a.parentElement===c&&!a.contains(f)?c.removeChild(a):(a.hasAttribute("aria-label")&&a.removeAttribute("aria-label"),a.hasAttribute("role")||a.setAttribute("role","none"));f.removeAttribute("aria-hidden")}else for(a=d.selectElements("div",b),c=0,f=a;c<f.length;c++)(a=f[c])&&a.parentElement===b&&b.removeChild(a);b.removeAttribute("title");b.removeAttribute("style");b.removeAttribute("tabindex");b.removeAttribute("aria-label");b.removeAttribute("vjs-label");b.removeAttribute("aria-hidden");e.videoTag=
    d.selectFirstElementT("video",b)}};this.useAMPVersion2=b;a.isAmpScriptLoaded()||k.PlayerUtility.loadScript(b?c.PlayerConfig.ampVersion2Url:c.PlayerConfig.ampUrl)}a.isAmpScriptLoaded=function(){return window&&window.amp};a.prototype.bindVideoEvents=function(b){if(this.ampPlayer){this.onMediaEventCallback=b;b=0;for(var c=g.MediaEvents;b<c.length;b++)this.ampPlayer.addEventListener(c[b],this.triggerEvents)}};a.prototype.unbindVideoEvents=function(){if(this.ampPlayer)for(var b=0,c=g.MediaEvents;b<c.length;b++)this.ampPlayer.removeEventListener(c[b],
    this.triggerEvents)};a.prototype.load=function(b,c,e,d,g){var f=this;b||(console.log("player container is null"),d&&d());this.ampPlayer&&this.dispose();this.playerContainer=b;this.onLoadedCallback=e;this.onLoadFailedCallback=d;this.onAudioStreamSelectedCallback=g;a.isAmpScriptLoaded()?this.setupAmpPlayer(c):h.poll(a.isAmpScriptLoaded,a.pollingInterval,a.pollingTimeout,function(){f.setupAmpPlayer(c)},this.onLoadFailedCallback)};a.prototype.play=function(){this.ampPlayer&&this.ampPlayer.play()};a.prototype.pause=
    function(){this.ampPlayer&&this.ampPlayer.pause()};a.prototype.isPaused=function(){return this.ampPlayer&&this.ampPlayer.paused()};a.prototype.isLive=function(){return this.ampPlayer&&this.ampPlayer.isLive()};a.prototype.getPlayPosition=function(){if(!this.ampPlayer)return{currentTime:0,endTime:0,startTime:0};if(this.ampPlayer.isLive()){var b=this.ampPlayer.currentPlayableWindow();return{startTime:b.startInSec,endTime:b.endInSec,currentTime:this.ampPlayer.currentAbsoluteTime()||b.endInSec}}return{currentTime:this.ampPlayer.currentTime(),
    startTime:0,endTime:this.ampPlayer.duration()}};a.prototype.getVolume=function(){return this.ampPlayer?this.ampPlayer.volume():0};a.prototype.setVolume=function(b){this.ampPlayer&&this.ampPlayer.volume(b)};a.prototype.isMuted=function(){return this.ampPlayer?this.ampPlayer.muted():!1};a.prototype.mute=function(){this.ampPlayer&&this.ampPlayer.muted(!0)};a.prototype.unmute=function(){this.ampPlayer&&this.ampPlayer.muted(!1)};a.prototype.setCurrentTime=function(b){this.ampPlayer&&this.ampPlayer.currentTime(this.ampPlayer.fromPresentationTime(b))};
    a.prototype.isSeeking=function(){return this.ampPlayer?this.ampPlayer.seeking():!1};a.prototype.getBufferedDuration=function(){var b=0;if(this.ampPlayer&&this.ampPlayer.buffered&&this.ampPlayer.buffered().length){var c=this.ampPlayer.buffered();c.length&&(b=c.end(c.length-1))}return b};a.prototype.setSource=function(b){if(b&&b.length){for(var c=[],a=0;a<b.length;a++){var e=b[a];if(e&&e.url&&this.ampPlayer){var d="video/mp4";switch(e.mediaType){case n.MediaTypes.HLS:d="application/vnd.apple.mpegurl";
    break;case n.MediaTypes.DASH:d="application/dash-xml";break;case n.MediaTypes.SMOOTH:d="application/vnd.ms-sstr+xml"}c.push({src:e.url,type:d})}}this.ampPlayer.src(c)}};a.prototype.addNativeClosedCaption=function(b,c,a){if(b&&b.length&&this.videoTag){this.clearNativeCc(this.videoTag);this.videoTag.setAttribute("crossorigin","anonymous");for(var e=0;e<b.length;e++){var f=b[e];if(f.ccType===c){var d=document.createElement("track");d.setAttribute("src",f.url);d.setAttribute("kind","captions");d.setAttribute("srclang",
    f.locale);d.setAttribute("label",a.getLanguageNameFromLocale(f.locale));this.videoTag.appendChild(d)}}this.videoTag.load&&this.videoTag.load()}};a.prototype.clearNativeCc=function(b){if(b)for(var c=0,a=d.selectElements("track",b);c<a.length;c++){var e=a[c];e&&e.parentElement===b&&b.removeChild(e)}};a.prototype.clearSource=function(){};a.prototype.setPosterFrame=function(b){b&&this.ampPlayer&&this.ampPlayer.poster()!==b&&this.ampPlayer.poster(b)};a.prototype.getError=function(){var b=this.ampPlayer&&
    this.ampPlayer.error();if(b){var c=window;return{errorCode:b.code&c.amp.errorCode.abortedErrStart?n.VideoErrorCodes.MediaErrorAborted:b.code&c.amp.errorCode.networkErrStart?n.VideoErrorCodes.MediaErrorNetwork:b.code&c.amp.errorCode.decodeErrStart?n.VideoErrorCodes.MediaErrorDecode:b.code&c.amp.errorCode.srcErrStart?n.VideoErrorCodes.MediaErrorSourceNotSupported:b.code&c.amp.errorCode.encryptErrStart?n.VideoErrorCodes.AmpEncryptError:b.code&c.amp.errorCode.srcPlayerMismatchStart?n.VideoErrorCodes.AmpPlayerMismatch:
    n.VideoErrorCodes.MediaErrorUnknown,message:"AMP Error Code: "+b.code}}return null};a.prototype.setPlaybackRate=function(b){};a.prototype.getPlayerTechName=function(){return this.ampPlayer&&this.ampPlayer.currentTechName()};a.prototype.getWrapperName=function(){return"amp"};a.prototype.getAudioTracks=function(){var b=this.ampPlayer&&this.ampPlayer.currentAudioStreamList&&this.ampPlayer.currentAudioStreamList();if(!b)return null;var c=b.streams;if(!c)return null;this.onAudioStreamSelectedCallback&&
    b.addEventListener("streamselected",this.onAudioStreamSelectedCallback);b=[];for(var a=0;a<c.length;a++){var e=c[a],d=e.language&&l.startsWith(e.language,"dau-",!0)||e.title&&l.startsWith(e.title,"dau-",!0),h=d&&e.language?e.language.substring(4):e.language;b.push({isDescriptiveAudio:d,bitrate:e.bitrate,languageCode:h,name:e.name,title:e.title})}return b};a.prototype.switchToAudioTrack=function(b){var c=this.ampPlayer&&this.ampPlayer.currentAudioStreamList&&this.ampPlayer.currentAudioStreamList();
    c&&c.switchIndex(b)};a.prototype.getCurrentAudioTrack=function(){var b=this.ampPlayer&&this.ampPlayer.currentAudioStreamList&&this.ampPlayer.currentAudioStreamList();if(b&&b.enabledIndices)return b=b.enabledIndices,0<b.length?b[0]:-1};a.prototype.getVideoTracks=function(){var b=this.getSelectedAmpVideoStream();if(!b||!b.tracks)return null;var c=[],a=0;for(b=b.tracks;a<b.length;a++){var e=b[a];c.push({bitrate:e.bitrate,width:e.width,height:e.height})}return c};a.prototype.getSelectedAmpVideoStream=
    function(){if(!this.ampPlayer||!this.ampPlayer.currentVideoStreamList)return null;var b=this.ampPlayer.currentVideoStreamList();return!b||!b.streams||0>b.selectedIndex||b.selectedIndex>=b.streams.length?null:b.streams[b.selectedIndex]};a.prototype.switchToVideoTrack=function(b){var c=this.getSelectedAmpVideoStream();if(!c||!c.selectTrackByIndex)return null;c.selectTrackByIndex(b)};a.prototype.getCurrentVideoTrack=function(){var b=this.getSelectedAmpVideoStream();if(!b||!b.tracks||0===b.tracks.length)return null;
    b=b.tracks;var c=b.reduce(function(b,c){return c.selectable?b+1:b},0);if(c===b.length)return{auto:!0,trackIndex:null};if(1===c)for(c=0;c<b.length;c++)if(b[c].selectable)return{auto:!1,trackIndex:c};return null};a.prototype.setAutoPlay=function(){this.useAMPVersion2?this.ampPlayer.autoplay(!0):this.videoTag&&(this.videoTag.autoplay=!0,this.videoTag.setAttribute("playsinline",""))};a.prototype.dispose=function(){this.clearSource();this.unbindVideoEvents();this.ampPlayer&&this.ampPlayer.dispose&&this.ampPlayer.dispose();
    this.ampPlayer=null};a.pollingInterval=50;a.pollingTimeout=3E4;return a}();a.AmpWrapper=m});r("video-wrappers/has-video-wrapper","require exports data/player-data-interfaces mwf/utilities/htmlExtensions constants/player-constants utilities/player-utility mwf/utilities/utility data/player-config".split(" "),function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.HasPlayerVideoWrapper=void 0;m=function(){function c(){var a=this;this.hasPlayer=null;this.setupHasPlayer=function(b){a.videoTag=
    d.selectFirstElementT("video",a.playerContainer);a.videoTag||(a.videoTag=d.selectFirstElementT(".f-video-player",a.playerContainer));a.videoTag?(a.hasPlayer=new window.MediaPlayer,a.hasPlayer.init(a.videoTag),a.hasPlayer.setAutoPlay(b),a.onLoadedCallback&&a.onLoadedCallback()):(console.log("could not find video tag"),a.onLoadFailedCallback&&a.onLoadFailedCallback())};this.triggerEvents=function(b){if(a.onMediaEventCallback)a.onMediaEventCallback(b)};if(!c.isHasPlayerScriptLoaded()){var b=h.PlayerConfig.hasPlayerUrl.replace("url(",
    "").replace(")","").trim();g.PlayerUtility.loadScript(b)}}c.isHasPlayerScriptLoaded=function(){return window&&window.MediaPlayer};c.prototype.bindVideoEvents=function(c){if(this.videoTag){this.onMediaEventCallback=c;c=0;for(var b=l.MediaEvents;c<b.length;c++)d.addEvents(this.videoTag,b[c],this.triggerEvents)}};c.prototype.unbindVideoEvents=function(){if(this.videoTag)for(var c=0,b=l.MediaEvents;c<b.length;c++)d.removeEvents(this.videoTag,b[c],this.triggerEvents)};c.prototype.load=function(a,b,f,d,
    h){var e=this;a||(console.log("player container is null"),d&&d());this.videoTag&&this.dispose();this.playerContainer=a;this.onLoadedCallback=f;this.onLoadFailedCallback=d;c.isHasPlayerScriptLoaded()?this.setupHasPlayer(b):k.poll(c.isHasPlayerScriptLoaded,c.pollingInterval,c.pollingTimeout,function(){e.setupHasPlayer(b)},this.onLoadFailedCallback)};c.prototype.play=function(){this.videoTag&&this.videoTag.play()};c.prototype.pause=function(){this.videoTag&&this.videoTag.pause()};c.prototype.isPaused=
    function(){return this.videoTag&&(this.videoTag.paused||this.videoTag.ended)};c.prototype.isLive=function(){return!1};c.prototype.getPlayPosition=function(){return this.videoTag?{currentTime:this.videoTag.currentTime,startTime:0,endTime:this.videoTag.duration}:{currentTime:0,endTime:0,startTime:0}};c.prototype.getVolume=function(){return this.videoTag?this.videoTag.volume:0};c.prototype.setVolume=function(c){this.videoTag&&(this.videoTag.volume=c)};c.prototype.isMuted=function(){return this.videoTag?
    this.videoTag.muted:!1};c.prototype.mute=function(){this.videoTag&&(this.videoTag.muted=!0)};c.prototype.unmute=function(){this.videoTag&&(this.videoTag.muted=!1)};c.prototype.setCurrentTime=function(c){this.videoTag&&(this.videoTag.currentTime=c)};c.prototype.isSeeking=function(){return this.videoTag?this.videoTag.seeking:!1};c.prototype.getBufferedDuration=function(){var c=0;this.videoTag&&this.videoTag.buffered&&this.videoTag.buffered.length&&(c=this.videoTag.buffered.end(this.videoTag.buffered.length-
    1));return c};c.prototype.setSource=function(c){this.hasPlayer&&c&&c.length&&c[0].url&&(this.hasPlayer.setInitialQualityFor("video",999),this.hasPlayer.setQualityFor("video",999),this.hasPlayer.load({url:c[0].url,protocol:c[0].mediaType===n.MediaTypes.HLS?"HLS":null}))};c.prototype.addNativeClosedCaption=function(c,b,a){if(c&&c.length&&this.videoTag){this.clearNativeCc(this.videoTag);this.videoTag.setAttribute("crossorigin","anonymous");for(var e=0;e<c.length;e++){var f=c[e];if(f.ccType===b){var d=
    document.createElement("track");d.setAttribute("src",f.url);d.setAttribute("kind","captions");d.setAttribute("srclang",f.locale);d.setAttribute("label",a.getLanguageNameFromLocale(f.locale));this.videoTag.appendChild(d)}}this.videoTag.load&&this.videoTag.load()}};c.prototype.clearNativeCc=function(c){if(c)for(var b=0,a=d.selectElements("track",c);b<a.length;b++){var e=a[b];e&&e.parentElement===c&&c.removeChild(e)}};c.prototype.clearSource=function(){this.hasPlayer&&this.hasPlayer.reset(1)};c.prototype.setPosterFrame=
    function(c){c&&this.videoTag&&this.videoTag.poster!==c&&(this.videoTag.poster=c)};c.prototype.getError=function(){if(null!==this.videoTag&&null!==this.videoTag.error){switch(this.videoTag.error.code){case this.videoTag.error.MEDIA_ERR_ABORTED:var c=n.VideoErrorCodes.MediaErrorAborted;break;case this.videoTag.error.MEDIA_ERR_NETWORK:c=n.VideoErrorCodes.MediaErrorNetwork;break;case this.videoTag.error.MEDIA_ERR_DECODE:c=n.VideoErrorCodes.MediaErrorDecode;break;case this.videoTag.error.MEDIA_ERR_SRC_NOT_SUPPORTED:c=
    n.VideoErrorCodes.MediaErrorSourceNotSupported;break;default:c=n.VideoErrorCodes.MediaErrorUnknown}return{errorCode:c}}return null};c.prototype.setPlaybackRate=function(c){this.videoTag&&c&&k.isNumber(c)&&(this.videoTag.playbackRate=c)};c.prototype.getPlayerTechName=function(){return"hasplayer"};c.prototype.getWrapperName=function(){return"hasplayerVideo"};c.prototype.getAudioTracks=function(){return null};c.prototype.switchToAudioTrack=function(c){throw Error("HTML5.switchToAudioTrack is not supported");
    };c.prototype.getCurrentAudioTrack=function(){return null};c.prototype.getVideoTracks=function(){return null};c.prototype.switchToVideoTrack=function(c){throw Error("HTML5.switchToVideoTrack is not supported");};c.prototype.getCurrentVideoTrack=function(){return null};c.prototype.setAutoPlay=function(){this.hasPlayer.setAutoPlay(!0)};c.prototype.dispose=function(){this.unbindVideoEvents();this.clearSource();this.hasPlayer&&this.hasPlayer.dispose&&this.hasPlayer.dispose();this.hasPlayer=null};c.pollingInterval=
    50;c.pollingTimeout=3E4;c.supportedMediaTypes=[n.MediaTypes.HLS,n.MediaTypes.MP4];return c}();a.HasPlayerVideoWrapper=m});r("video-wrappers/hls-video-wrapper","require exports data/player-data-interfaces mwf/utilities/htmlExtensions constants/player-constants utilities/player-utility mwf/utilities/utility data/player-config".split(" "),function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.HlsPlayerVideoWrapper=void 0;m=function(){function c(){var a=this;this.hlsPlayer=null;
    this.setupHlsPlayer=function(b){a.videoTag=d.selectFirstElementT("video",a.playerContainer);a.videoTag||(a.videoTag=d.selectFirstElementT(".f-video-player",a.playerContainer));a.videoTag?(a.hlsPlayer=new window.Hls,a.hlsPlayer.attachMedia(a.videoTag),a.onLoadedCallback&&a.onLoadedCallback()):(console.log("could not find video tag"),a.onLoadFailedCallback&&a.onLoadFailedCallback())};this.triggerEvents=function(b){if(a.onMediaEventCallback)a.onMediaEventCallback(b)};if(!c.isHlsPlayerScriptLoaded()){var b=
    h.PlayerConfig.hlsPlayerUrl.replace("url(","").replace(")","").trim();g.PlayerUtility.loadScript(b)}}c.isHlsPlayerScriptLoaded=function(){return window&&window.Hls};c.prototype.bindVideoEvents=function(c){if(this.videoTag){this.onMediaEventCallback=c;c=0;for(var b=l.MediaEvents;c<b.length;c++)d.addEvents(this.videoTag,b[c],this.triggerEvents)}};c.prototype.unbindVideoEvents=function(){if(this.videoTag)for(var c=0,b=l.MediaEvents;c<b.length;c++)d.removeEvents(this.videoTag,b[c],this.triggerEvents)};
    c.prototype.load=function(a,b,f,d,h){var e=this;a||(console.log("player container is null"),d&&d());this.videoTag&&this.dispose();this.playerContainer=a;this.onLoadedCallback=f;this.onLoadFailedCallback=d;c.isHlsPlayerScriptLoaded()?this.setupHlsPlayer(b):k.poll(c.isHlsPlayerScriptLoaded,c.pollingInterval,c.pollingTimeout,function(){e.setupHlsPlayer(b)},this.onLoadFailedCallback)};c.prototype.play=function(){this.videoTag&&this.videoTag.play()};c.prototype.pause=function(){this.videoTag&&this.videoTag.pause()};
    c.prototype.isPaused=function(){return this.videoTag&&(this.videoTag.paused||this.videoTag.ended)};c.prototype.isLive=function(){return!1};c.prototype.getPlayPosition=function(){return this.videoTag?{currentTime:this.videoTag.currentTime,startTime:0,endTime:this.videoTag.duration}:{currentTime:0,endTime:0,startTime:0}};c.prototype.getVolume=function(){return this.videoTag?this.videoTag.volume:0};c.prototype.setVolume=function(c){this.videoTag&&(this.videoTag.volume=c)};c.prototype.isMuted=function(){return this.videoTag?
    this.videoTag.muted:!1};c.prototype.mute=function(){this.videoTag&&(this.videoTag.muted=!0)};c.prototype.unmute=function(){this.videoTag&&(this.videoTag.muted=!1)};c.prototype.setCurrentTime=function(c){this.videoTag&&(this.videoTag.currentTime=c)};c.prototype.isSeeking=function(){return this.videoTag?this.videoTag.seeking:!1};c.prototype.getBufferedDuration=function(){var c=0;this.videoTag&&this.videoTag.buffered&&this.videoTag.buffered.length&&(c=this.videoTag.buffered.end(this.videoTag.buffered.length-
    1));return c};c.prototype.setSource=function(c){this.hlsPlayer&&c&&c.length&&c[0].url&&this.hlsPlayer.loadSource(c[0].url)};c.prototype.addNativeClosedCaption=function(c,b,a){if(c&&c.length&&this.videoTag){this.clearNativeCc(this.videoTag);this.videoTag.setAttribute("crossorigin","anonymous");for(var e=0;e<c.length;e++){var f=c[e];if(f.ccType===b){var d=document.createElement("track");d.setAttribute("src",f.url);d.setAttribute("kind","captions");d.setAttribute("srclang",f.locale);d.setAttribute("label",
    a.getLanguageNameFromLocale(f.locale));this.videoTag.appendChild(d)}}this.videoTag.load&&this.videoTag.load()}};c.prototype.clearNativeCc=function(c){if(c)for(var b=0,a=d.selectElements("track",c);b<a.length;b++){var e=a[b];e&&e.parentElement===c&&c.removeChild(e)}};c.prototype.clearSource=function(){this.hlsPlayer&&this.hlsPlayer.detachMedia()};c.prototype.setPosterFrame=function(c){c&&this.videoTag&&this.videoTag.poster!==c&&(this.videoTag.poster=c)};c.prototype.getError=function(){if(null!==this.videoTag&&
    null!==this.videoTag.error){switch(this.videoTag.error.code){case this.videoTag.error.MEDIA_ERR_ABORTED:var c=n.VideoErrorCodes.MediaErrorAborted;break;case this.videoTag.error.MEDIA_ERR_NETWORK:c=n.VideoErrorCodes.MediaErrorNetwork;break;case this.videoTag.error.MEDIA_ERR_DECODE:c=n.VideoErrorCodes.MediaErrorDecode;break;case this.videoTag.error.MEDIA_ERR_SRC_NOT_SUPPORTED:c=n.VideoErrorCodes.MediaErrorSourceNotSupported;break;default:c=n.VideoErrorCodes.MediaErrorUnknown}return{errorCode:c}}return null};
    c.prototype.setPlaybackRate=function(c){this.videoTag&&c&&k.isNumber(c)&&(this.videoTag.playbackRate=c)};c.prototype.getPlayerTechName=function(){return"hlsplayer"};c.prototype.getWrapperName=function(){return"hlsplayerVideo"};c.prototype.getAudioTracks=function(){return null};c.prototype.switchToAudioTrack=function(c){throw Error("HTML5.switchToAudioTrack is not supported");};c.prototype.getCurrentAudioTrack=function(){return null};c.prototype.getVideoTracks=function(){return null};c.prototype.switchToVideoTrack=
    function(c){throw Error("HTML5.switchToVideoTrack is not supported");};c.prototype.getCurrentVideoTrack=function(){return null};c.prototype.setAutoPlay=function(){this.videoTag.autoplay=!0;this.videoTag.muted=!0;this.setVolume(0);this.videoTag.setAttribute("playsinline","");this.videoTag.setAttribute("muted","")};c.prototype.dispose=function(){this.unbindVideoEvents();this.clearSource();this.hlsPlayer&&this.hlsPlayer.dispose&&this.hlsPlayer.dispose();this.hlsPlayer=null};c.pollingInterval=50;c.pollingTimeout=
    3E4;c.supportedMediaTypes=[n.MediaTypes.HLS,n.MediaTypes.MP4];return c}();a.HlsPlayerVideoWrapper=m});r("video-wrappers/native-video-wrapper",["require","exports","mwf/utilities/htmlExtensions"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.NativeVideoWrapper=void 0;m=function(){function a(){var a=this;this.triggerEvents=function(d){var g=null;"MediaOpened"===d.state?a.ensureLoadEventRaised():"MediaEnded"===d.state?(g=document.createEvent("CustomEvent"),g.initEvent("ended")):
    "MediaFailed"===d.state?(g=document.createEvent("CustomEvent"),g.initEvent("error")):g=a.createMediaPlaybackEvent(d.target);if(g)a.onMediaEventCallback(g)}}a.prototype.bindVideoEvents=function(a){this.hasStoreApi&&(this.onMediaEventCallback=a,window.storeApi.backgroundVideoPlayer.addEventListener("mediaplayerstatechanged",this.triggerEvents))};a.prototype.unbindVideoEvents=function(){this.hasStoreApi&&window.storeApi.backgroundVideoPlayer.removeEventListener("mediaplayerstatechanged",this.triggerEvents)};
    a.prototype.load=function(a,d,k,h,c){a||(console.log("player container is null"),h&&h());this.hasLoaded&&this.dispose();this.playerContainer=a;a=n.selectFirstElementT("video",this.playerContainer);!a&&h&&(console.log("video tag not found"),h());window&&window.storeApi&&window.storeApi.backgroundVideoPlayer?this.hasStoreApi=!0:h&&(console.log("native store host api not found"),this.hasStoreApi=!1,h());this.autoPlay=d;if(a&&this.hasStoreApi){for(d=a;d.parentElement;)d.style.background="transparent",
    d=d.parentElement;d=document.createElement("DIV");d.className=a.className;d.style.position="absolute";d.style.width="100%";d.style.height="100%";a.parentNode.insertBefore(d,a);a.remove()}k&&setTimeout(k,0);this.hasLoaded=!0};a.prototype.play=function(){this.hasStoreApi&&(!this.autoPlay&&this.sourceUri?(window.storeApi.backgroundVideoPlayer.source=this.sourceUri,this.sourceUri=null):window.storeApi.backgroundVideoPlayer.play())};a.prototype.pause=function(){this.hasStoreApi&&window.storeApi.backgroundVideoPlayer.pause()};
    a.prototype.isPaused=function(){return this.hasStoreApi?!("Opening"===window.storeApi.backgroundVideoPlayer.mediaPlaybackState||"Buffering"===window.storeApi.backgroundVideoPlayer.mediaPlaybackState||"Playing"===window.storeApi.backgroundVideoPlayer.mediaPlaybackState):!1};a.prototype.isLive=function(){return!1};a.prototype.getPlayPosition=function(){return{currentTime:0,endTime:0,startTime:0}};a.prototype.getVolume=function(){return 0};a.prototype.setVolume=function(a){};a.prototype.isMuted=function(){return this.hasStoreApi?
    window.storeApi.backgroundVideoPlayer.isMuted:!1};a.prototype.mute=function(){this.hasStoreApi&&(window.storeApi.backgroundVideoPlayer.isMuted=!0)};a.prototype.unmute=function(){this.hasStoreApi&&(window.storeApi.backgroundVideoPlayer.isMuted=!1)};a.prototype.setCurrentTime=function(a){};a.prototype.isSeeking=function(){return!1};a.prototype.getBufferedDuration=function(){return 0};a.prototype.setSource=function(a){if(this.hasStoreApi)if(window.storeApi.backgroundVideoPlayer.source){if(this.ensureLoadEventRaised(),
    a=this.createMediaPlaybackEvent(window.storeApi.backgroundVideoPlayer))this.onMediaEventCallback(a)}else a=a[0].url,"/"===a.charAt(0)&&(a="http:"+a),this.autoPlay?window.storeApi.backgroundVideoPlayer.source=a:this.sourceUri=a};a.prototype.addNativeClosedCaption=function(a,d,k){};a.prototype.clearSource=function(){this.hasStoreApi&&(window.storeApi.backgroundVideoPlayer.source=null,window.storeApi.backgroundVideoPlayer.posterSource=null)};a.prototype.setPosterFrame=function(a){this.hasStoreApi&&!window.storeApi.backgroundVideoPlayer.posterSource&&
    ("/"===a.charAt(0)&&(a="http:"+a),window.storeApi.backgroundVideoPlayer.posterSource=a)};a.prototype.getError=function(){return null};a.prototype.setPlaybackRate=function(a){};a.prototype.getPlayerTechName=function(){return"nativeplayer"};a.prototype.getWrapperName=function(){return"nativeplayer"};a.prototype.getAudioTracks=function(){return null};a.prototype.switchToAudioTrack=function(a){throw Error("HTML5.switchToAudioTrack is not supported");};a.prototype.getCurrentAudioTrack=function(){return null};
    a.prototype.getVideoTracks=function(){return null};a.prototype.switchToVideoTrack=function(a){throw Error("HTML5.switchToVideoTrack is not supported");};a.prototype.getCurrentVideoTrack=function(){return null};a.prototype.setAutoPlay=function(){};a.prototype.dispose=function(){this.unbindVideoEvents();this.clearSource()};a.prototype.ensureLoadEventRaised=function(){if(!this.hasRaisedLoadedEvent&&this.onMediaEventCallback){var a=document.createEvent("CustomEvent");a.initEvent("loadeddata",!1,!1);this.hasRaisedLoadedEvent=
    !0;this.onMediaEventCallback(a)}};a.prototype.createMediaPlaybackEvent=function(a){var d=null;switch(a.mediaPlaybackState){case "Paused":d=document.createEvent("CustomEvent");d.initEvent("pause",!1,!1);break;case "Playing":d=document.createEvent("CustomEvent"),d.initEvent("playing",!1,!1)}return d};return a}();a.NativeVideoWrapper=m});r("utilities/stopwatch",["require","exports","mwf/utilities/utility"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.Stopwatch=void 0;m=function(){function a(){this.intervals=
    this.totalValue=this.firstValue=this.timeValue=this.timestamp=null}a.prototype.start=function(){this.timestamp||(this.timestamp=new Date,this.intervals++)};a.prototype.stop=function(){if(this.timestamp){var a=(new Date).valueOf()-this.timestamp.valueOf();this.timeValue+=a;this.totalValue+=a;this.firstValue||(this.firstValue=this.timeValue);this.timestamp=null}};a.prototype.reset=function(){this.timestamp=null;this.timeValue=this.intervals=this.firstValue=this.totalValue=0};a.prototype.isStarted=function(){return!!this.intervals};
    a.prototype.isStopped=function(){return!this.timestamp};a.prototype.hasReached=function(a){return n.isNumber(a)&&this.getValue()>=a?(this.timestamp&&(this.totalValue+=(new Date).valueOf()-this.timestamp.valueOf(),this.timestamp=new Date),this.intervals=this.timeValue=0,!0):!1};a.prototype.getValue=function(){var a=this.timeValue;this.timestamp&&(a+=(new Date).valueOf()-this.timestamp.valueOf());return a};a.prototype.getTotalValue=function(){var a=this.totalValue;this.timestamp&&(a+=(new Date).valueOf()-
    this.timestamp.valueOf());return a};a.prototype.getFirstValue=function(){return this.firstValue};a.prototype.getIntervals=function(){return this.intervals};return a}();a.Stopwatch=m});r("helpers/screen-manager-helper",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.ScreenManagerHelper=void 0;m=function(){function a(){this.screenElements=[];this.nextScreenElementId=0}a.prototype.registerElement=function(a){if(null==a.HtmlObject||null==a.Priority||null==a.Height)return null;
    null==a.Transition&&(a.Transition="bottom 0.5s ease-in");0>=a.Height&&(a.Height=a.HtmlObject.clientHeight);a.Id=this.nextScreenElementId;this.nextScreenElementId++;a.HtmlObject.style.bottom="-"+a.Height+"px";a.HtmlObject.style.transition=a.Transition;this.screenElements.push(a);this.sortScreenElements();return a};a.prototype.updateElementDisplay=function(a,l){for(var d=0,k=!1,h=this.screenElements.length-1;0<=h;h--){var c=this.screenElements[h];c.Id===a.Id&&c.IsVisible!==l?(c.IsVisible=l,k=!0,c.IsVisible?
    (c.HtmlObject.style.bottom=d+"px",d+=c.Height):c.HtmlObject.style.bottom="-"+a.Height+"px"):c.IsVisible&&(k&&(c.HtmlObject.style.bottom=d+"px"),d+=c.Height)}};a.prototype.updateElementHeight=function(a,l){for(var d=0,k=!1,h=this.screenElements.length-1;0<=h;h--){var c=this.screenElements[h];c.Id===a.Id&&c.Height!==l?(c.Height=l,k=!0,c.IsVisible&&(c.HtmlObject.style.bottom=d+"px",d+=c.Height)):c.IsVisible&&(k&&(c.HtmlObject.style.bottom=d+"px"),d+=c.Height)}};a.prototype.deleteElement=function(a){this.updateElementDisplay(a,
    !1);for(var d=-1,g=0;g<this.screenElements.length;g++)if(this.screenElements[g].Id===a.Id){d=g;break}this.screenElements.splice(d,1)};a.prototype.sortScreenElements=function(){this.screenElements.sort(function(a,l){return a.Priority<l.Priority?-1:a.Priority>l.Priority?1:0})};return a}();a.ScreenManagerHelper=m});r("helpers/interactive-triggers-helper","require exports utilities/player-utility mwf/utilities/utility mwf/utilities/htmlExtensions constants/player-constants data/video-shim-data-fetcher helpers/localization-helper".split(" "),
    function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.VideoPlayerInteractiveTriggersHelper=a.CustomHtmlPostMessageType=a.OverlayTemplate=a.OverlayType=void 0;var c;(function(b){b[b.WebLink=1]="WebLink";b[b.StoreOffer=2]="StoreOffer";b[b.VideoBranch=3]="VideoBranch";b[b.Poll=4]="Poll";b[b.Graphic=5]="Graphic";b[b.CustomHtml=6]="CustomHtml"})(c=a.OverlayType||(a.OverlayType={}));var e;(function(b){b.LowerThird="lowerThird";b.UpperThird="upperThird";b.LeftVertical="leftVertical";
    b.RightVertical="rightVertical";b.Fullscreen="fullScreen";b.Default="default"})(e=a.OverlayTemplate||(a.OverlayTemplate={}));(function(b){b.VideoBranch="VideoBranch";b.WebLink="WebLink";b.Telemetry="Telemetry"})(a.CustomHtmlPostMessageType||(a.CustomHtmlPostMessageType={}));m=function(){function b(b,a,e,h,k){var f=this;this.playerContainer=b;this.interactivityInfoUrl=a;this.telemetryEventCallback=k;this.streamLinkBackStack=[];this.screenManagerObjects=[];this.minimizedOverlays={};this.onScreenOverlays=
    {};this.interactedTriggers=[];this.isInteractivityJSONReady=this.isStreamLinkBackStackPop=this.isEndSlateOn=!1;this.preRollDefaultDurationMs=5E3;this.onInteractivityInfoSuccess=function(b){try{f.interactivityInfo=JSON.parse(b),f.preloadContent(),l.addThrottledEvent(window,l.eventTypes.resize,f.onResized),window.addEventListener("message",f.onCustomHtmlMessageReceived),f.isInteractivityJSONReady=!0}catch(q){f.isInteractivityJSONReady=!0}};this.onCustomHtmlMessageReceived=function(b){if(b&&b.data&&
    b.data.type){var a=b.data.customHtmlOverlayId;if(a){a=a.split("-").pop();var e=f.onScreenOverlays[a];if(a&&e)switch(b.data.type){case "VideoBranch":b.data.streamLink&&f.handleClickByOverlayType(e,c.VideoBranch,b.data.streamLink);break;default:b.data.webLink&&f.handleClickByOverlayType(e,c.WebLink,b.data.webLink)}}}};this.onInteractivityInfoFailed=function(){f.isInteractivityJSONReady=!0};this.onMinimizeClick=function(b){(b=l.getEventTargetOrSrcElement(b))&&b.parentElement&&b.parentElement.parentElement&&
    (b=b.parentElement.id.split("-").pop())&&(b=f.onScreenOverlays[b],f.minimizeOverlay(b),f.telemetryEventCallback&&f.telemetryEventCallback(g.PlayerEvents.InteractiveOverlayMinimize,b))};this.onMaximizeButtonClick=function(b){if((b=l.getEventTargetOrSrcElement(b))&&b.parentElement&&b.parentElement.parentElement&&(b=b.id.split("-").pop())){var c=f.minimizedOverlays[b];c&&(f.removeMaximizeButton(c),delete f.minimizedOverlays[b],f.createContainerAndShowOverlay(c.onScreenOverlay.overlay,c.onScreenOverlay.trigger,
    !0),f.telemetryEventCallback&&f.telemetryEventCallback(g.PlayerEvents.InteractiveOverlayMinimize,c.onScreenOverlay))}};this.onOverlayClick=function(b){(b=l.getEventTargetOrSrcElement(b))&&b.parentElement&&b.parentElement.parentElement&&(b=b.parentElement.parentElement.id.split("-").pop(),b=f.onScreenOverlays[b],b.trigger.triggerWindowId&&f.interactedTriggers.push(b.trigger.triggerWindowId),f.handleClickByOverlayType(b))};this.onBackButtonClick=function(b){1>f.streamLinkBackStack.length||(f.streamLinkBackstackPop(),
    f.telemetryEventCallback&&f.telemetryEventCallback(g.PlayerEvents.InteractiveBackButtonClick))};this.onResized=function(){if(!(1>Object.keys(f.onScreenOverlays).length)&&f.interactivityInfo){d.getDimensions(f.playerContainer);for(var b=0,c=Object.keys(f.onScreenOverlays);b<c.length;b++){var a=f.onScreenOverlays[c[b]];if(d.getDimensions(f.playerContainer).width<d.Viewports.allWidths[1]){f.hideOverlay(a);return}}if(0<f.screenManagerObjects.length)for(b=0,c=f.screenManagerObjects;b<c.length;b++)a=c[b],
    f.corePlayer.screenManagerHelper.updateElementHeight(a,f.getOverlayHeight(a.HtmlObject))}};this.onPlayerEvent=function(b){switch(b.name){case g.PlayerEvents.ContentComplete:f.onContentComplete();break;case g.PlayerEvents.Seek:if(b.data&&b.data.seekTo)f.onSeek(b.data.seekTo);break;case g.PlayerEvents.Resume:f.onPlay()}};this.corePlayer=e;this.localizationHelper=h;this.corePlayer.addPlayerEventListener(this.onPlayerEvent);this.createBackButton();b&&a&&this.requestInteractivityJSON()}b.prototype.dispose=
    function(){this.hideAllOverlays();l.removeEvent(window,l.eventTypes.resize,this.onResized)};b.prototype.requestInteractivityJSON=function(){n.PlayerUtility.ajax(this.interactivityInfoUrl,this.onInteractivityInfoSuccess,this.onInteractivityInfoFailed)};b.prototype.createGraphicContainer=function(b){var c="interactive-graphic-overlay-"+b.overlay.overlayId;l.selectFirstElement("#"+c,this.playerContainer)||this.appendHtmlToPlayerContainer("\x3cimg aria-hidden\x3d'true' alt\x3d'' id\x3d'"+c+"' class\x3d'f-interactive-overlay \n                interactive-fullscreen interactive-graphic'\x3e\n            \x3cimg\x3e",
    c,b);b.overlayContainer=l.selectFirstElement("#"+c,this.playerContainer)};b.prototype.createCustomHtmlContainer=function(b){var c="interactive-fullscreen";switch(b.trigger.overlayTemplate){case e.LeftVertical:c="interactive-left";break;case e.RightVertical:c="interactive-right";break;case e.UpperThird:c="interactive-upper";break;case e.LowerThird:c="interactive-lower"}var a="custom-html-overlay-"+b.overlay.overlayId;this.appendHtmlToPlayerContainer("\x3cdiv aria-hidden\x3d'true' id\x3d'"+a+"' \n        class\x3d'f-interactive-overlay "+
    c+" f-interactive-overlay-customhtml'\x3e\n        \x3ciframe src\x3d'"+b.overlay.overlayData.customHtml+"' name\x3d'"+a+"' \n        style\x3d'height: 100%; width: 100%; border: none;'\x3e\x3c/iframe\x3e\n        \x3c/div\x3e",a,b);this.createScreenManagerObject(b)};b.prototype.createBakedInOverlayContainer=function(b){var c="interactive-lower",a="f-overlay-minimize-lowerthird";switch(b.trigger.overlayTemplate){case e.LeftVertical:c="interactive-left";break;case e.RightVertical:c="interactive-right";
    break;case e.UpperThird:a="f-overlay-minimize-upperthird",c="interactive-upper"}var f="interactive-overlay-"+b.overlay.overlayId;l.selectFirstElement("#"+f,this.playerContainer)||this.appendHtmlToPlayerContainer("\x3cdiv aria-hidden\x3d'true' id\x3d'"+f+"' class\x3d'f-interactive-overlay "+c+"'\x3e\n\x3cdiv class\x3d'f-overlay-info'\x3e\n    \x3ch2 class\x3d'c-headline'\x3e\x3c/h2\x3e\n    \x3cp class\x3d'c-paragraph'\x3e\x3c/p\x3e\n\x3c/div\x3e\n\x3cdiv class\x3d'f-overlay-link'\x3e\n    \x3cbutton class\x3d'c-action-trigger f-heavyweight'\x3e\x3c/button\x3e\n\x3c/div\x3e\n\x3cbutton type\x3d'button' class\x3d'f-overlay-minimizeMaximize "+
    a+" c-glyph glyph-chevron-left'\x3e\n\x3c/button\x3e  \n\x3c/div\x3e",f,b);b.overlayContainer=l.selectFirstElement("#"+f,this.playerContainer);b.overlayHeadline=l.selectFirstElement("h2",b.overlayContainer);b.overlayText=l.selectFirstElement("p",b.overlayContainer);b.overlayButton=l.selectFirstElement("button",b.overlayContainer);b.minimizeButton=l.selectFirstElement(".f-overlay-minimizeMaximize",b.overlayContainer);this.createScreenManagerObject(b);l.addEvent(b.overlayButton,l.eventTypes.click,this.onOverlayClick);
    l.addEvent(b.minimizeButton,l.eventTypes.click,this.onMinimizeClick)};b.prototype.createOverlayContainer=function(b){switch(b.overlay.overlayType){case c.StoreOffer:case c.WebLink:case c.VideoBranch:this.createBakedInOverlayContainer(b);break;case c.Graphic:this.createGraphicContainer(b);break;case c.CustomHtml:this.createCustomHtmlContainer(b)}};b.prototype.appendHtmlToPlayerContainer=function(b,c,a){var e=document.createElement("div");e.innerHTML=b;b=l.selectFirstElement(".f-video-cc-overlay",this.playerContainer);
    this.playerContainer.insertBefore(e.firstChild,b);a.overlayContainer=l.selectFirstElement("#"+c,this.playerContainer)};b.prototype.createScreenManagerObject=function(b){b.trigger.overlayTemplate===e.LowerThird&&(this.screenManagerObjects.push(this.corePlayer.screenManagerHelper.registerElement({HtmlObject:b.overlayContainer,Height:this.getOverlayHeight(b.overlayContainer),Id:null,IsVisible:!1,Priority:1,Transition:null})),null==this.screenManagerObjects[this.screenManagerObjects.length-1]&&this.screenManagerObjects.pop())};
    b.prototype.createBackButton=function(){if(!this.backButtonContainer){var c=document.createElement("div");c.innerHTML="\x3cbutton type\x3d'button' aria-hidden\x3d'true' class\x3d'f-interactive-back-button c-glyph glyph-chevron-left'\x3e\n                \x3c/button\x3e";var a=l.selectFirstElement(".f-video-cc-overlay",this.playerContainer);this.playerContainer.insertBefore(c.firstChild,a);this.backButtonContainer=l.selectFirstElement(".f-interactive-back-button",this.playerContainer);this.backButtonContainer.setAttribute(b.ariaLabel,
    this.localizationHelper.getLocalizedValue(h.playerLocKeys.close_text))}l.addEvent(this.backButtonContainer,l.eventTypes.click,this.onBackButtonClick)};b.prototype.removeMaximizeButton=function(b){l.removeEvent(b.maximizeButton,l.eventTypes.click,this.onMaximizeButtonClick);l.removeElement(b.maximizeButton)};b.prototype.updateCurrentOverlay=function(b){this.interactivityInfo&&this.updateInteractivity(b)};b.prototype.updateOverlays=function(b){var c=1E7*b;b={};for(var a=0,e=this.interactivityInfo.triggers;a<
    e.length;a++){var f=e[a];if(f.triggerTimeTicks>c)break;!0!==f.isOverlayOn||this.userAlreadyInteractedWithTrigger(f.triggerWindowId)?delete b[f.triggerWindowId]:b[f.triggerWindowId]=f}c=0;for(a=Object.keys(this.minimizedOverlays);c<a.length;c++)f=a[c],e=this.minimizedOverlays[f],(f=b[e.onScreenOverlay.trigger.triggerWindowId]?!0:!1)?delete b[e.onScreenOverlay.trigger.triggerWindowId]:this.hideOverlay(e.onScreenOverlay);a=0;for(e=Object.keys(this.onScreenOverlays);a<e.length;a++)c=e[a],c=this.onScreenOverlays[c],
    (f=b[c.trigger.triggerWindowId]?!0:!1)?delete b[c.trigger.triggerWindowId]:this.hideOverlay(c);a=0;for(e=Object.keys(b);a<e.length;a++)f=e[a],f=b[f],c=f.overlayId,f.zIndex=this.normalizeZIndex(f.zIndex),(c=this.getOverlayInfo(c))&&this.createContainerAndShowOverlay(c,f)};b.prototype.createContainerAndShowOverlay=function(b,c,a){d.getDimensions(this.playerContainer).width<d.Viewports.allWidths[1]||(b={overlay:b,overlayContainer:null,trigger:c,hideTimer:null,showTimer:null},this.createOverlayContainer(b),
    this.setOverlayData(b,c.zIndex),this.showOverlay(b,a))};b.prototype.showOverlay=function(b,a){if(b.overlayContainer){this.onScreenOverlays[b.overlay.overlayId]=b;switch(b.overlay.overlayType){case c.Graphic:b.trigger.overlayTemplate===e.Default&&(b.trigger.overlayTemplate=e.Fullscreen);break;default:b.trigger.overlayTemplate===e.Default&&(b.trigger.overlayTemplate=e.LowerThird),this.isContentStreamLink()||this.corePlayer.resetFocusTrap(this.findInteractivityFocusTrapStart()),b.overlayContainer.setAttribute("role",
    "alert")}clearTimeout(b.showTimer);this.displayOverlayContainer(b);var f=null;b&&b.overlay&&(f=b.overlay.overlayData);f&&f.headline&&b.overlayContainer.setAttribute("aria-label",f.headline);a||this.telemetryEventCallback&&this.telemetryEventCallback(g.PlayerEvents.InteractiveOverlayShow,b)}};b.prototype.isContentStreamLink=function(){return 1<=this.streamLinkBackStack.length};b.prototype.hideAllOverlays=function(){if(0<Object.keys(this.minimizedOverlays).length)for(var b=0,c=Object.keys(this.minimizedOverlays);b<
    c.length;b++)this.removeMaximizeButton(this.minimizedOverlays[c[b]]);if(!(1>Object.keys(this.onScreenOverlays).length)&&this.interactivityInfo)for(b=0,c=Object.keys(this.onScreenOverlays);b<c.length;b++)this.hideOverlay(this.onScreenOverlays[c[b]])};b.prototype.hideOverlay=function(b){if(b.overlayContainer){switch(b.overlay.overlayType){case c.Graphic:case c.CustomHtml:b.trigger.overlayTemplate===e.Default&&(b.trigger.overlayTemplate=e.Fullscreen);break;default:b.trigger.overlayTemplate===e.Default&&
    (b.trigger.overlayTemplate=e.LowerThird)}this.removeOverlayFromScreen(b);this.telemetryEventCallback&&this.telemetryEventCallback(g.PlayerEvents.InteractiveOverlayHide,b)}};b.prototype.removeOverlayFromScreen=function(b,c){var a=this.minimizedOverlays[b.trigger.triggerWindowId];a?(this.removeMaximizeButton(a),delete this.minimizedOverlays[a.onScreenOverlay.trigger.triggerWindowId]):(this.hideOveralyContainer(b,function(){c&&c()}),delete this.onScreenOverlays[b.overlay.overlayId]);this.isContentStreamLink()||
    this.corePlayer.resetFocusTrap(this.findInteractivityFocusTrapStart())};b.prototype.displayOverlayContainer=function(b){var c=this;b.overlayContainer.setAttribute("aria-hidden","false");switch(b.trigger.overlayTemplate){case e.LeftVertical:case e.RightVertical:case e.UpperThird:l.addClass(b.overlayContainer,"f-interactive-overlay-slidein");l.removeClass(b.overlayContainer,"f-interactive-overlay-slideout");break;case e.Fullscreen:break;default:b.showTimer=setTimeout(function(){c.corePlayer.screenManagerHelper.updateElementDisplay(c.getScreenManagerObjectByOverlayId(b.overlay.overlayId),
    !0)},100)}};b.prototype.hideOveralyContainer=function(b,c){var a=this;switch(b.trigger.overlayTemplate){case e.LeftVertical:case e.RightVertical:case e.UpperThird:l.addClass(b.overlayContainer,"f-interactive-overlay-slideout");l.removeClass(b.overlayContainer,"f-interactive-overlay-slidein");b.hideTimer=setTimeout(function(){b.overlayContainer.setAttribute("aria-hidden","true");b.overlayButton&&l.removeEvent(b.overlayButton,l.eventTypes.click,a.onOverlayClick);l.removeElement(b.overlayContainer);
    c()&&c()},500);break;case e.Fullscreen:b.overlayContainer.setAttribute("aria-hidden","true");l.removeElement(b.overlayContainer);break;default:0<this.screenManagerObjects.length&&(this.corePlayer.screenManagerHelper.deleteElement(this.deleteScreenManagerObjectByOverlayId(b.overlay.overlayId)),b.hideTimer=setTimeout(function(){b.overlayContainer.setAttribute("aria-hidden","true");b.overlayButton&&l.removeEvent(b.overlayButton,l.eventTypes.click,a.onOverlayClick);l.removeElement(b.overlayContainer);
    c()&&c()},500))}};b.prototype.setOverlayData=function(b,a){if(b.overlayContainer&&b.overlay)switch(b.overlay.overlayType){case c.Graphic:this.setGraphicOverlay(b,a);break;default:this.setBakedInOverlayContainerFields(b,a)}};b.prototype.setGraphicOverlay=function(b,c){var a=b.overlay.overlayData;c&&l.css(b.overlayContainer,"z-index",c);b.overlayContainer.src=a.graphicUrl};b.prototype.setBakedInOverlayContainerFields=function(c,a){var e=c.overlay.overlayData;c.overlayHeadline&&l.setText(c.overlayHeadline,
    e.headline);c.overlayText&&l.setText(c.overlayText,e.bodyText);a&&l.css(c.overlayContainer,"z-index",a);e.imageUrl&&l.css(c.overlayContainer,"background-image","url('"+e.imageUrl+"')");c.overlayButton&&(l.setText(c.overlayButton,e.buttonText),c.overlayButton.setAttribute("aria-label",e.buttonText));c.minimizeButton&&("undefined"===typeof c.trigger.isMinimizable||c.trigger.isMinimizable?c.minimizeButton.setAttribute(b.ariaLabel,this.localizationHelper.getLocalizedValue(h.playerLocKeys.interactivity_hide)+
    " "+c.overlay.overlayData.headline):c.minimizeButton.setAttribute("aria-hidden","true"))};b.prototype.getOverlayInfo=function(b){if(!(this.interactivityInfo&&this.interactivityInfo.overlays&&this.interactivityInfo.overlays&&this.interactivityInfo.overlays.length))return null;for(var c=0,a=this.interactivityInfo.overlays;c<a.length;c++){var e=a[c];if(e.overlayId===b)return e}return null};b.prototype.getScreenManagerObjectByOverlayId=function(b){if(0===this.screenManagerObjects.length)return null;for(var c=
    0,a=this.screenManagerObjects;c<a.length;c++){var e=a[c];if(e.HtmlObject.id.split("-").pop()===b)return e}return null};b.prototype.deleteScreenManagerObjectByOverlayId=function(b){if(0===this.screenManagerObjects.length)return null;b=this.getScreenManagerObjectByOverlayId(b);b=this.screenManagerObjects.splice(this.screenManagerObjects.indexOf(b),1);return 0<b.length?b[0]:null};b.prototype.getOverlayHeight=function(b){var c=b.clientHeight;0>=c&&b.parentElement&&(c=.2*b.parentElement.clientHeight);
    return c};b.prototype.createMaximizeButton=function(c){var a=c.trigger.triggerWindowId,d="f-overlay-maximize-lowerthird";c.trigger.overlayTemplate===e.UpperThird&&(d="f-overlay-maximize-upperthird");var f="\x3cbutton type\x3d'button' id\x3d'"+a+"' class\x3d'f-overlay-minimizeMaximize "+d+" c-glyph glyph-chevron-left'\x3e\n        \x3c/button\x3e";d=document.createElement("div");d.innerHTML=f;f=l.selectFirstElement(".f-video-cc-overlay",this.playerContainer);this.playerContainer.insertBefore(d.firstChild,
    f);a=l.selectFirstElement("#"+a,this.playerContainer);a.setAttribute(b.ariaLabel,this.localizationHelper.getLocalizedValue(h.playerLocKeys.interactivity_show)+" "+c.overlay.overlayData.headline);l.addEvent(a,l.eventTypes.click,this.onMaximizeButtonClick);return a};b.prototype.minimizeOverlay=function(b){var c=this;if(b){var a={onScreenOverlay:b};this.removeOverlayFromScreen(b,function(){a.maximizeButton=c.createMaximizeButton(b);c.corePlayer.resetFocusTrap(c.findInteractivityFocusTrapStart())});this.minimizedOverlays[b.trigger.triggerWindowId]=
    a}};b.prototype.streamLinkBackstackPop=function(){var b=this.streamLinkBackStack.pop();!this.isContentStreamLink()&&this.backButtonContainer&&(this.backButtonContainer.setAttribute("aria-hidden","true"),this.corePlayer.resetFocusTrap(this.findInteractivityFocusTrapStart()));this.hideAllOverlays();this.isStreamLinkBackStackPop=!0;this.corePlayer.load(b.corePlayer);this.interactivityInfo=b.interactivityInfo;this.interactedTriggers=b.interactedTriggers;this.minimizedOverlays=b.minimizedOverlays;this.isInteractivityJSONReady=
    !0;this.corePlayer.getPlayerData().options.startTime=0;this.finalizeBackStackPop(b.paused)};b.prototype.finalizeBackStackPop=function(b){var c=this;if(b){var a=this.corePlayer;"loading"===a.playerState||"init"===a.playerState?setTimeout(function(){c.finalizeBackStackPop(b)},50):a.pause()}};b.prototype.handleClickByOverlayType=function(b,a,e){if(b){a||(a=b.overlay.overlayType);e||(e=b.overlay.overlayData);this.hideOverlay(b);switch(a){case c.VideoBranch:this.navigateToStreamLink(e)}this.telemetryEventCallback&&
    this.telemetryEventCallback(g.PlayerEvents.InteractiveOverlayClick,b)}};b.prototype.setFocusOnInteractivity=function(b){b&&"IMG"!==b.tagName&&(b.setAttribute("tabindex","1"),setTimeout(function(){b.focus()},0))};b.prototype.findInteractivityFocusTrapStart=function(){if(0<this.streamLinkBackStack.length)return this.backButtonContainer;for(var b=0,c=Object.keys(this.minimizedOverlays);b<c.length;b++){var a=this.minimizedOverlays[c[b]].maximizeButton;if(a)return a}b=0;for(c=Object.keys(this.onScreenOverlays);b<
    c.length;b++)if(a=this.onScreenOverlays[c[b]],void 0!==a.overlayButton)return a.overlayButton;return null};b.prototype.navigateToStreamLink=function(b){var c=this.corePlayer.getPlayerData();c.options.startTime=this.corePlayer.getPlayPosition().currentTime;c.options.lazyLoad=!1;var a={};d.extend(a,this.minimizedOverlays);var e=[];d.extend(e,this.interactedTriggers);a={corePlayer:c,interactivityInfo:this.interactivityInfo,minimizedOverlays:a,interactedTriggers:e,paused:this.corePlayer.isPaused()};this.hideAllOverlays();
    this.clearOutInteractedTriggers();this.minimizedOverlays={};this.interactivityInfo=null;this.streamLinkBackStack.push(a);a={options:{}};d.extend(a.options,c.options);a.options.startTime=b.startTime?b.startTime:0;this.fetchStreamLinkMetadataAndSwitch(a,b.videoId)};b.prototype.clearOutInteractedTriggers=function(){this.isStreamLinkBackStackPop?this.isStreamLinkBackStackPop=!1:this.interactedTriggers.length=0};b.prototype.fetchStreamLinkMetadataAndSwitch=function(b,c){var a=this;(new k.VideoShimDataFetcher(b.options.shimServiceEnv,
    b.options.shimServiceUrl)).getMetadata(c,function(c){b.metadata=c;a.isInteractivityJSONReady=!1;a.corePlayer.stop();a.corePlayer.load(b);b.metadata.interactiveTriggersEnabled&&b.metadata.interactiveTriggersUrl&&(a.interactivityInfoUrl=b.metadata.interactiveTriggersUrl,a.requestInteractivityJSON());a.backButtonContainer&&(a.backButtonContainer.setAttribute("aria-hidden","false"),a.corePlayer.resetFocusTrap(a.backButtonContainer))},function(){})};b.prototype.userAlreadyInteractedWithTrigger=function(b){for(var c=
    0,a=this.interactedTriggers;c<a.length;c++)if(a[c]===b)return!0;return!1};b.prototype.displayEndSlate=function(){for(var b=0,c=this.interactivityInfo.showOnVideoEnd;b<c.length;b++){var a=c[b],e=this.getOverlayInfo(a.overlayId);e&&(a={overlayId:a.overlayId,overlayTemplate:a.overlayTemplate,zIndex:this.normalizeZIndex(a.zIndex)},this.createContainerAndShowOverlay(e,a),this.isEndSlateOn=!0)}};b.prototype.displayPreRoll=function(b){try{if(!this.interactivityInfo||1>this.interactivityInfo.showOnVideoStart.length||
    0!==this.corePlayer.getPlayerData().options.startTime)b();else{var c=this.interactivityInfo.showOnVideoStart;if(1>c.length)b();else{for(var a=0;a<c.length;a++){var e=c[a],d=this.getOverlayInfo(e.overlayId);if(d){var f={overlayId:e.overlayId,overlayTemplate:e.overlayTemplate,zIndex:this.normalizeZIndex(e.zIndex)};this.createContainerAndShowOverlay(d,f)}}setTimeout(function(){b()},this.interactivityInfo.preRollDurationSecs?1E3*this.interactivityInfo.preRollDurationSecs:this.preRollDefaultDurationMs)}}}catch(w){b()}};
    b.prototype.normalizeZIndex=function(b){return isNaN(b)?1:Math.max(1,Math.min(50,b))};b.prototype.onSeek=function(b){this.interactivityInfo&&(this.isStreamLinkBackStackPop?this.isStreamLinkBackStackPop=!1:this.clearOutInteractedTriggers(),this.updateInteractivity(b))};b.prototype.updateInteractivity=function(b){0<b&&this.updateOverlays(b)};b.prototype.onPlay=function(){this.interactivityInfo&&this.isEndSlateOn&&(this.hideAllOverlays(),this.isEndSlateOn=!1)};b.prototype.onContentComplete=function(){0<
    this.streamLinkBackStack.length?this.streamLinkBackstackPop():this.interactivityInfo&&this.displayEndSlate()};b.prototype.postIFrameMessage=function(b){for(var a=0,e=Object.keys(this.onScreenOverlays);a<e.length;a++){var d=this.onScreenOverlays[e[a]];d&&d.overlay.overlayType===c.CustomHtml&&d.overlayContainer.firstElementChild.contentWindow.postMessage(b,"*")}};b.prototype.preloadContent=function(){for(var b=[],a=[],e=0,d=this.interactivityInfo.overlays;e<d.length;e++){var h=d[e];switch(h.overlayType){case c.WebLink:case c.StoreOffer:case c.VideoBranch:h.overlayData&&
    h.overlayData.imageUrl&&b.push(h.overlayData.imageUrl);break;case c.Graphic:h.overlayData&&h.overlayData.graphicUrl&&b.push(h.overlayData.graphicUrl);break;case c.CustomHtml:h.overlayData&&h.overlayData.customHtml&&a.push(h.overlayData.customHtml)}}0<b.length&&this.cacheImages(b);0<a.length&&this.cacheIFrames(a)};b.prototype.cacheImages=function(b){for(var c=0;c<b.length;c++){var a=b[c];(new Image).src=a}};b.prototype.cacheIFrames=function(b){};b.ariaLabel="aria-label";return b}();a.VideoPlayerInteractiveTriggersHelper=
    m});r("telemetry/reporting-data",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0})});r("telemetry/base-reporter",["require","exports","constants/player-constants","utilities/player-utility","mwf/utilities/utility"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.BaseReporter=void 0;var g=[n.videoPerfMarkers.playerInit,n.videoPerfMarkers.playerLoadStart,n.videoPerfMarkers.locLoadStart,n.videoPerfMarkers.locReady,n.videoPerfMarkers.metadataFetchStart,
    n.videoPerfMarkers.metadataFetchEnd,n.videoPerfMarkers.wrapperLoadStart,n.videoPerfMarkers.wrapperReady,n.videoPerfMarkers.playerReady,n.videoPerfMarkers.playTriggered,n.videoPerfMarkers.ttvs];m=function(){function a(a){this.videoComponent=a;this.isDebugMode=!1;a?(this.playerId=a.getAttribute("id"),this.isDebugMode="true"===a.getAttribute("data-debug")):console.log("base-reporter: video component is null")}a.prototype.reportEvent=function(a,c){if(a)switch(a){case n.PlayerEvents.CommonPlayerImpression:d.PlayerUtility.createVideoPerfMarker(this.playerId,
    n.videoPerfMarkers.playerReady);this.onCommonPlayerImpression(c);break;case n.PlayerEvents.Replay:this.onReplay(c);break;case n.PlayerEvents.BufferComplete:this.onBufferComplete(c);break;case n.PlayerEvents.ContentStart:d.PlayerUtility.createVideoPerfMarker(this.playerId,n.videoPerfMarkers.ttvs);this.onContentStart(c);break;case n.PlayerEvents.ContentError:this.onContentError(c);break;case n.PlayerEvents.ContentComplete:this.onContentComplete(c);break;case n.PlayerEvents.ContentCheckpoint:this.onContentCheckpoint(c);
    break;case n.PlayerEvents.ContentLoaded3PP:this.on3ppVideoLoaded(c);break;case n.PlayerEvents.Pause:this.onPause(c);break;case n.PlayerEvents.Resume:this.onResume(c);break;case n.PlayerEvents.Seek:this.onSeek(c);break;case n.PlayerEvents.VideoQualityChanged:this.onVideoQualityChanged(c);break;case n.PlayerEvents.Mute:this.onMute(c);break;case n.PlayerEvents.Unmute:this.onUnmute(c);break;case n.PlayerEvents.FullScreenEnter:this.onFullScreenEnter(c);break;case n.PlayerEvents.FullScreenExit:this.onFullScreenExit(c);
    break;case n.PlayerEvents.InteractiveOverlayClick:this.onInteractiveOverlayClick(c);break;case n.PlayerEvents.InteractiveOverlayShow:this.onInteractiveOverlayShow(c);break;case n.PlayerEvents.InteractiveOverlayHide:this.onInteractiveOverlayHide(c);break;case n.PlayerEvents.InteractiveOverlayMaximize:this.onInteractiveOverlayMaximize(c);break;case n.PlayerEvents.InteractiveOverlayMinimize:this.onInteractiveOverlayMinimize(c);break;case n.PlayerEvents.InteractiveBackButtonClick:this.onInteractiveBackButtonClick(c);
    break;case n.PlayerEvents.PlayerError:this.onPlayerErrors(c);break;case n.PlayerEvents.VideoShared:this.onVideoShared(c);break;case n.PlayerEvents.ClosedCaptionsChanged:this.onClosedCaptionsChanged(c);break;case n.PlayerEvents.ClosedCaptionSettingsChanged:this.onClosedCaptionSettingsChanged(c);break;case n.PlayerEvents.PlaybackRateChanged:this.onPlaybackRateChanged(c);break;case n.PlayerEvents.MediaDownloaded:this.onMediaDownloaded(c);break;case n.PlayerEvents.AudioTrackChanged:this.onAudioTrackChanged(c);
    break;case n.PlayerEvents.AgeGateSubmitClick:this.onAgeGateSubmitClick(c);break;case n.PlayerEvents.Volume:this.onVolumeChanged(c)}};a.prototype.getPerfMarkers=function(){var a={},c=l.getPerfMarkerValue(n.videoPerfMarkers.scriptLoaded);c&&(a["p."+n.videoPerfMarkers.scriptLoaded]=c);for(c=0;c<g.length;c++){var e=g[c],b=d.PlayerUtility.getVideoPerfMarker(this.playerId,e);b&&(a["p."+e]=b)}return a};a.prototype.log=function(a,c){void 0===c&&(c="Reporter");this.isDebugMode&&d.PlayerUtility.logConsoleMessage(a,
    c)};return a}();a.BaseReporter=m});r("telemetry/jsll-reporter",["require","exports","telemetry/base-reporter","mwf/utilities/utility","utilities/environment"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.JsllReporter=void 0;m=function(a){function g(h,c){h=a.call(this,h)||this;h.postJsllMsg=!1;h.playerIdfromUrl=null;d.getQSPValue("postJsllMsg",!1)&&l.Environment.isInIframe&&c&&(h.postJsllMsg=!0,h.playerIdfromUrl=d.getQSPValue("pid",!1));return h}D(g,a);g.prototype.doPing=
    function(a,c,e,b){e=this.getDefaultParams(a,e);d.extend(e,b);this.log("jsll - t: "+e.t+" behavior : "+c+" data : "+JSON.stringify(e));var f={vidnm:"",vidid:"",vidpct:0,vidpctwtchd:0,vidwt:0,viddur:0,vidtimeseconds:0,sessiontimeseconds:0,live:!1,parentpage:"",containerName:"oneplayer",dlid:"",dltype:"",socchn:"",name:"",id:""};this.populateContentTags(f,a,b);a={behavior:c,actionType:"O",pageTags:{videoObj:e},contentTags:f};c=window;try{this.postJsllMsg?window.parent.postMessage(JSON.stringify({eventName:"postjsllmessage",
    playerId:this.playerIdfromUrl,data:a}),"*"):c.awa&&c.awa.ct&&c.awa.ct.captureContentPageAction(a)}catch(t){this.log("jsll logger threw exception : "+t)}};g.prototype.populateContentTags=function(a,c,e){a.vidnm=c.videoMetadata&&c.videoMetadata.title;a.vidid=c.videoMetadata&&c.videoMetadata.videoId;a.live=c.live;var b=c.videoDuration,f=c.videoElapsedTime,h=c.currentVideoTotalTimePlaying/1E3;c=c.totalTimePlaying/1E3;var g=0,k=0;b&&d.isNumber(b)&&f&&d.isNumber(f)&&(g=Math.round(f/b*100),g=Math.min(g,
    100));b&&d.isNumber(b)&&h&&d.isNumber(h)&&(k=Math.round(h/b*100),k=Math.min(k,100));a.viddur=Math.round(b);a.vidwt=Math.round(f);a.vidtimeseconds=Math.round(h);a.sessiontimeseconds=Math.round(c);a.vidpct=g;a.vidpctwtchd=k;a.parentpage=parent!==window?document.referrer:window.location.href;a.name=e&&e.interactiveOverlayAndTrigger&&e.interactiveOverlayAndTrigger.overlay.friendlyName;a.id=e&&e.interactiveOverlayAndTrigger&&e.interactiveOverlayAndTrigger.trigger.triggerId;a.dlid=e&&e.downloadMedia;a.dltype=
    e&&e.downloadType;a.socchn=e&&e.socchn};g.prototype.getDefaultParams=function(a,c){var e={};c&&d.extend(e,c);a&&(d.extend(e,{d:a.videoDuration,piid:a.playerInstanceId,plt:a.playerType,ptech:a.playerTechnology,size:a.videoSize?a.videoSize.width+"x"+a.videoSize.height:null,vt:a.playerType,te:a.videoElapsedTime}),a.currentVideoFile&&d.extend(e,{vfc:a.currentVideoFile.formatCode,vfile:a.currentVideoFile.url,vmedia:a.currentVideoFile.mediaType,vQuality:a.currentVideoFile.quality}),a.playerOptions&&d.extend(e,
    {isAutoplay:a.playerOptions.autoplay,playerOptions:a.playerOptions}),a.videoMetadata&&d.extend(e,{eid:a.videoMetadata.videoId,vtitle:a.videoMetadata.title,vmetadata:a.videoMetadata}));return e};g.prototype.onCommonPlayerImpression=function(a){this.log("jsll - OnCommonPlayerImpression()");this.doPing(a,window.awa?window.awa.behavior.VIDEOPLAYERLOAD:null,g.usageCounters.commonPlayerImpression,this.getPerfMarkers())};g.prototype.onBufferComplete=function(a){this.log("jsll - OnBufferComplete()");this.doPing(a,
    window.awa?window.awa.behavior.VIDEOBUFFERING:null,g.usageCounters.contentBuffering,{bd:a.totalBufferWaitTime})};g.prototype.onContentStart=function(a){this.log("jsll - OnContentStart()");this.doPing(a,window.awa?window.awa.behavior.VIDEOSTART:null,g.usageCounters.contentStart,this.getPerfMarkers())};g.prototype.onContentCheckpoint=function(a){this.log("jsll - OnContentCheckpoint()");this.doPing(a,window.awa?window.awa.behavior.VIDEOCHECKPOINT:null,null,{cp:a.checkpoint,checkpointtype:a.checkpointType})};
    g.prototype.onContentComplete=function(a){this.log("jsll - OnContentComplete()");this.doPing(a,window.awa?window.awa.behavior.VIDEOCOMPLETE:null,g.usageCounters.contentComplete)};g.prototype.onContentError=function(a){this.log("jsll - OnContentError()");this.doPing(a,window.awa?window.awa.behavior.VIDEOERROR:null,g.usageCounters.contentError,{fi:a.currentVideoFile&&a.currentVideoFile.url,et:a.errorType,etd:a.errorDesc})};g.prototype.onMute=function(a){this.log("jsll - OnMute()");this.doPing(a,window.awa?
    window.awa.behavior.VIDEOMUTE:null,g.usageCounters.mute)};g.prototype.onUnmute=function(a){this.log("jsll - OnMute()");this.doPing(a,window.awa?window.awa.behavior.VIDEOUNMUTE:null,g.usageCounters.unmute)};g.prototype.onVolumeChanged=function(a){this.log("jsll - onVolumeChange()");this.doPing(a,window.awa?window.awa.behavior.VIDEOVOLUMECONTROL:null,null,{startvol:a.lastVolume,endvol:a.newVolume})};g.prototype.onPause=function(a){this.log("jsll - OnPause()");this.doPing(a,window.awa?window.awa.behavior.VIDEOPAUSE:
    null,g.usageCounters.pause)};g.prototype.onSeek=function(a){a.seekFrom!==a.seekTo&&(this.log("jsll - OnSeek()"),this.doPing(a,window.awa?window.awa.behavior.VIDEOJUMP:null,g.usageCounters.seek,{te:a.seekFrom,st:a.seekTo,startloc:a.seekFrom,endloc:a.seekTo}))};g.prototype.onVideoQualityChanged=function(a){this.log("jsll - OnVideoQualityChanged()");this.doPing(a,window.awa?window.awa.behavior.VIDEORESOLUTIONCONTROL:null,g.usageCounters.videoQuality,{q:a.endRes,startres:a.startRes,endres:a.endRes})};
    g.prototype.onFullScreenEnter=function(a){this.log("jsll - OnFullScreenEnter()");this.doPing(a,window.awa?window.awa.behavior.VIDEOFULLSCREEN:null,g.usageCounters.fullScreenEnter)};g.prototype.onFullScreenExit=function(a){this.log("jsll - OnFullScreenExit()");this.doPing(a,window.awa?window.awa.behavior.VIDEOUNFULLSCREEN:null,g.usageCounters.fullScreenExit)};g.prototype.onReplay=function(a){this.log("jsll - OnReplay()");this.doPing(a,window.awa?window.awa.behavior.VIDEOREPLAY:null,g.usageCounters.replay)};
    g.prototype.onResume=function(a){this.log("jsll - OnResume()");this.doPing(a,window.awa?window.awa.behavior.VIDEOCONTINUE:null,null,g.usageCounters.resume)};g.prototype.on3ppVideoLoaded=function(a){this.log("jsll - On3ppVideoLoaded()");this.doPing(a,null,g.usageCounters.contentImpression3PP)};g.prototype.onInteractiveOverlayClick=function(a){this.log("jsll - onInteractiveTriggerClick");this.doPing(a,window.awa?window.awa.behavior.VIDEOLAYERCLICK:null,g.usageCounters.overlayClick,{interactiveOverlayAndTrigger:a.interactiveTriggerAndOverlay})};
    g.prototype.onInteractiveBackButtonClick=function(a){this.log("jsll - onInteractiveTriggerClick");this.doPing(a,window.awa?window.awa.behavior.BACKBUTTON:null,g.usageCounters.streamLinkBackButtonClick)};g.prototype.onInteractiveOverlayShow=function(a){this.log("jsll - onInteractiveOverlayShow");this.doPing(a,window.awa?window.awa.behavior.SHOW:null,g.usageCounters.overlayShow,{interactiveOverlayAndTrigger:a.interactiveTriggerAndOverlay})};g.prototype.onInteractiveOverlayHide=function(a){this.log("jsll - onInteractiveOverlayHide");
    this.doPing(a,window.awa?window.awa.behavior.HIDE:null,g.usageCounters.overlayHide,{interactiveOverlayAndTrigger:a.interactiveTriggerAndOverlay})};g.prototype.onInteractiveOverlayMaximize=function(a){this.log("jsll - onInteractiveOverlayMaximize");this.doPing(a,window.awa?window.awa.behavior.MAXIMIZE:null,g.usageCounters.maximizeOverlay,{interactiveOverlayAndTrigger:a.interactiveTriggerAndOverlay})};g.prototype.onInteractiveOverlayMinimize=function(a){this.log("jsll - onInteractiveOverlayMinimize");
    this.doPing(a,window.awa?window.awa.behavior.MINIMIZE:null,g.usageCounters.minimizeOverlay,{interactiveOverlayAndTrigger:a.interactiveTriggerAndOverlay})};g.prototype.onAgeGateSubmitClick=function(a){this.log("jsll - onAgeGateSubmitClick");this.doPing(a,window.awa?window.awa.behavior.PROCESSCHECKPOINT:null,g.usageCounters.ageGateSubmitClick,{ageGatePassed:a.ageGatePassed,scn:"OnePlayerAgeGate",isSuccess:a.ageGatePassed})};g.prototype.onPlayerErrors=function(a){this.log("jsll - onPlayerErrors()");
    this.doPing(a,window.awa?window.awa.behavior.VIDEOERROR:null,g.usageCounters.contentError,{et:a.errorType,etd:a.errorDesc})};g.prototype.onVideoShared=function(a){this.log("jsll - onVideoShared");this.doPing(a,window.awa?window.awa.behavior.SOCIALSHARE:null,null,{videoShare:a.videoShare,socchn:a.videoShare})};g.prototype.onClosedCaptionsChanged=function(a){this.log("jsll - onClosedCaptionsChanged");this.doPing(a,window.awa?window.awa.behavior.VIDEOCLOSEDCAPTIONCONTROL:null,null,{closedCaptions:a.endCaptionSelection,
    startcaptionselection:a.startCaptionSelection,endcaptionselection:a.endCaptionSelection})};g.prototype.onClosedCaptionSettingsChanged=function(a){this.log("jsll - onClosedCaptionSettingsChanged");this.doPing(a,window.awa?window.awa.behavior.VIDEOCLOSEDCAPTIONSTYLE:null,null,{closedCaptionSettings:a.closedCaptionSettings,appsel:a.closedCaptionSettings})};g.prototype.onPlaybackRateChanged=function(a){this.log("jsll - onPlaybackRateChanged");this.doPing(a,null,null,{playbackRate:a.playbackRate})};g.prototype.onMediaDownloaded=
    function(a){this.log("jsll - onMediaDownloaded");this.doPing(a,window.awa?window.awa.behavior.DOWNLOAD:null,null,{downloadMedia:a.downloadMedia,dlnm:"Download",dlid:a.downloadMedia,dltype:a.downloadType})};g.prototype.onAudioTrackChanged=function(a){this.log("jsll - onAudioTrackChanged");this.doPing(a,window.awa?window.awa.behavior.VIDEOAUDIOTRACKCONTROL:null,null,{audioTrack:a.audioTrack,starttrackselection:a.startTrackSelection,endtrackselection:a.endTrackSelection})};g.usageCounters={contentBuffering:{t:"2",
    evt:"ContentPlay"},contentError:{t:"20",evt:"ContentPlay"},contentStart:{t:"21",evt:"ContentPlay"},contentContinue:{t:"22",evt:"ContentPlay"},contentComplete:{t:"23",evt:"ContentPlay"},contentImpression3PP:{t:"41",evt:"ContentPlay"},commonPlayerImpression:{t:"61",evt:"ContentPlay"},cc:{t:"30",evt:"Click_Non-nav"},pause:{t:"31",evt:"Click_Non-nav"},seek:{t:"32",evt:"Click_Non-nav"},mute:{t:"33",evt:"Click_Non-nav"},fullScreenEnter:{t:"34",evt:"Click_Non-nav"},info:{t:"35",evt:"Click_Non-nav"},videoQuality:{t:"36",
    evt:"Click_Non-nav"},resume:{t:"37",evt:"Click_Non-nav"},fullScreenExit:{t:"38",evt:"Click_Non-nav"},replay:{t:"39",evt:"Click_Non-nav"},unmute:{t:"40",evt:"Click_Non-nav"},facebook:{t:"51",evt:"Click_Non-nav"},twitter:{t:"52",evt:"Click_Non-nav"},email:{t:"53",evt:"Click_Non-nav"},overlayClick:{t:"70",evt:"Click_Non-nav"},streamLinkBackButtonClick:{t:"71",evt:"Click_Non-nav"},overlayShow:{t:"72",evt:"Show_Overlay"},overlayHide:{t:"73",evt:"Hide_Overlay"},minimizeOverlay:{t:"74",evt:"Minimize_Overlay"},
    maximizeOverlay:{t:"75",evt:"Maximize_Overlay"},ageGateSubmitClick:{t:"80",evt:"Click_Non-nav"}};return g}(n.BaseReporter);a.JsllReporter=m});r("helpers/sharing-helper",["require","exports","mwf/utilities/htmlExtensions","helpers/localization-helper","constants/player-constants"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.SharingHelper=void 0;var g={"zh-cn":[l.shareTypes.facebook,l.shareTypes.twitter,l.shareTypes.linkedin,l.shareTypes.skype]};m=function(){function a(){}
    a.getCurrentPageUrl=function(){return window.location.href.replace("\x26jsapi\x3dtrue","")};a.tryCopyTextToClipboard=function(a){if(window.clipboardData)window.clipboardData.setData("text",a);else{var c=document.createElement("textarea");c.value=a;var e=n.selectFirstElement("body");a=e.scrollTop;e.appendChild(c);c.select();try{document.execCommand("copy")}catch(b){}c.remove();e.scrollTop=a}};a.getShareOptionsData=function(h,c,e){if(!(c&&c.share&&c.shareOptions&&h))return null;var b=[];e=encodeURIComponent(e||
    a.getCurrentPageUrl());for(var f=0,k=c.shareOptions;f<k.length;f++){var n=k[f];n=n.toLowerCase();if(!(c.market&&g[c.market]&&0<=g[c.market].indexOf(n)))switch(n){case l.shareTypes.facebook:b.push({url:"//www.facebook.com/share.php?u\x3d"+e,id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_facebook),image:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxzdHlsZT4uc3Qwe2Rpc3BsYXk6bm9uZTt9IC5zdDF7ZGlzcGxheTppbmxpbmU7fSAuc3Qye2ZpbGw6bm9uZTt9IC5zdDN7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxnIGlkPSJSZXN0XzNfIiBjbGFzcz0ic3QwIj48ZyBpZD0iVHdpdHRlcl8zXyIgY2xhc3M9InN0MSI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTAgMGgzMnYzMkgweiIvPjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yOC40IDguNmMtLjkuNC0xLjkuNy0yLjkuOCAxLS42IDEuOC0xLjYgMi4yLTIuOC0xIC42LTIuMSAxLTMuMiAxLjItLjktMS0yLjItMS42LTMuNy0xLjYtMi44IDAtNSAyLjMtNSA1IDAgLjQgMCAuOC4xIDEuMi00LjItLjItNy45LTIuMi0xMC40LTUuMy0uNC44LS43IDEuNy0uNyAyLjYgMCAxLjggMSAzLjMgMi4zIDQuMi0uOCAwLTIuMi0uMy0yLjItLjZ2LjFjMCAyLjQgMS42IDQuNSAzLjkgNS0uNC4xLS45LjItMS40LjItLjMgMC0uNyAwLTEtLjEuNiAyIDIuNSAzLjUgNC43IDMuNS0xLjUgMS4yLTMuNyAyLTYuMSAyLS40IDAtLjggMC0xLjItLjEgMi4yIDEuNCA0LjkgMi4zIDcuNyAyLjMgOS4zIDAgMTQuNC03LjcgMTQuNC0xNC40di0uN2MxLS42IDEuOC0xLjUgMi41LTIuNXoiLz48L2c+PC9nPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0wIDBoMzJ2MzJIMHoiIGlkPSJGYWNlYm9va183XyIvPjxwYXRoIGlkPSJXaGl0ZV8yXyIgY2xhc3M9InN0MyIgZD0iTTMwLjIgMEgxLjhDLjggMCAwIC44IDAgMS44djI4LjVjMCAxIC44IDEuOCAxLjggMS44aDE1LjNWMTkuNmgtNC4ydi00LjhoNC4ydi0zLjZjMC00LjEgMi41LTYuNCA2LjItNi40IDEuOCAwIDMuMy4yIDMuNy4ydjQuM2gtMi42Yy0yIDAtMi40IDEtMi40IDIuNHYzLjFoNC44bC0uNiA0LjhIMjJWMzJoOC4yYzEgMCAxLjgtLjggMS44LTEuOFYxLjhjMC0xLS44LTEuOC0xLjgtMS44eiIvPjwvc3ZnPg\x3d\x3d"});
    break;case l.shareTypes.twitter:b.push({url:"//twitter.com/share?url\x3d"+e+"\x26text\x3d",id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_twitter),image:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxzdHlsZT4uc3Qwe2ZpbGw6I0ZGRkZGRjt9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzIgNi4xYy0xLjIuNS0yLjUuOS0zLjggMSAxLjMtLjggMi4zLTIuMSAyLjktMy42LTEuMy44LTIuNyAxLjMtNC4yIDEuNkMyNS44IDMuOCAyNC4xIDMgMjIuMSAzYy0zLjYgMC02LjUgMy02LjUgNi41IDAgLjUgMCAxIC4xIDEuNi01LjQtLjMtMTAuMi0yLjktMTMuNS02LjktLjUgMS0uOSAyLjItLjkgMy40IDAgMi4zIDEuMyA0LjMgMyA1LjUtMSAwLTIuOS0uNC0yLjktLjh2LjFjMCAzLjEgMi4xIDUuOSA1LjEgNi41LS41LjEtMS4yLjItMS44LjItLjQgMC0uOSAwLTEuMy0uMS44IDIuNiAzLjMgNC42IDYuMSA0LjYtMiAxLjYtNC44IDIuNi03LjkgMi42LS41IDAtMSAwLTEuNi0uMSAyLjkgMS44IDYuNCAzIDEwIDMgMTIuMSAwIDE4LjctMTAgMTguNy0xOC43di0uOWMxLjMtLjkgMi40LTIuMSAzLjMtMy40eiIvPjwvc3ZnPg\x3d\x3d"});
    break;case l.shareTypes.skype:b.push({url:"//web.skype.com/share?url\x3d"+e+"\x26amp;lang\x3d"+c.market,id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_skype),image:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxzdHlsZT4uc3Qwe2Rpc3BsYXk6bm9uZTt9IC5zdDF7ZGlzcGxheTppbmxpbmU7fSAuc3Qye2ZpbGw6bm9uZTt9IC5zdDN7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxnIGlkPSJMYXllcl8xXzFfIiBjbGFzcz0ic3QwIj48ZyBpZD0iUmVzdF8zXyIgY2xhc3M9InN0MSI+PGcgaWQ9IlR3aXR0ZXJfM18iPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz48cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjguNCA4LjZjLS45LjQtMS45LjctMi45LjggMS0uNiAxLjgtMS42IDIuMi0yLjgtMSAuNi0yLjEgMS0zLjIgMS4yLS45LTEtMi4yLTEuNi0zLjctMS42LTIuOCAwLTUgMi4zLTUgNSAwIC40IDAgLjguMSAxLjItNC4yLS4yLTcuOS0yLjItMTAuNC01LjMtLjQuOC0uNyAxLjctLjcgMi42IDAgMS44IDEgMy4zIDIuMyA0LjItLjggMC0yLjItLjMtMi4yLS42di4xYzAgMi40IDEuNiA0LjUgMy45IDUtLjQuMS0uOS4yLTEuNC4yLS4zIDAtLjcgMC0xLS4xLjYgMiAyLjUgMy41IDQuNyAzLjUtMS41IDEuMi0zLjcgMi02LjEgMi0uNCAwLS44IDAtMS4yLS4xIDIuMiAxLjQgNC45IDIuMyA3LjcgMi4zIDkuMyAwIDE0LjQtNy43IDE0LjQtMTQuNHYtLjdjMS0uNiAxLjgtMS41IDIuNS0yLjV6Ii8+PC9nPjwvZz48ZyBpZD0iRmFjZWJvb2tfN18iIGNsYXNzPSJzdDEiPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz48cGF0aCBpZD0iZl82XyIgY2xhc3M9InN0MyIgZD0iTTE4IDI2di05aDIuNmwuNS00SDE4di0xLjljMC0xLS4yLTIuMSAxLjMtMi4xSDIxVjYuMVMxOS43IDYgMTguNCA2QzE1LjcgNiAxNCA3LjcgMTQgMTAuN1YxM2gtM3Y0aDN2OWg0eiIvPjwvZz48L2c+PHBhdGggY2xhc3M9InN0MyIgZD0iTTMwLjkgMTguNmMuMS0uOC4xLTEuOC4xLTIuNiAwLTguMy02LjctMTUtMTUtMTUtMSAwLTEuOCAwLTIuNi4yQzEyLjIuMyAxMC42IDAgOSAwIDQgMCAwIDQgMCA5YzAgMS42LjUgMy4yIDEuMSA0LjUtLjEuNy0uMSAxLjctLjEgMi41IDAgOC4zIDYuNyAxNSAxNSAxNSAxIDAgMS44IDAgMi42LS4yIDEuMy44IDIuOSAxLjEgNC41IDEuMSA1IDAgOS00IDktOS0uMS0xLjYtLjQtMy4xLTEuMi00LjN6bS0xNC43IDYuNWMtNS4xIDAtNy41LTIuNi03LjUtNC41IDAtMSAuOC0xLjYgMS44LTEuNiAyLjIgMCAxLjYgMy4yIDUuOCAzLjIgMi4xIDAgMy40LTEuMyAzLjQtMi40IDAtLjYtLjUtMS40LTEuOC0xLjhsLTQuOC0xYy0zLjctMS00LjMtMy00LjMtNC44IDAtMy44IDMuNS01LjMgNy01LjMgMy4yIDAgNi45IDEuOCA2LjkgNC4yIDAgMS0uOCAxLjYtMS44IDEuNi0xLjkgMC0xLjYtMi42LTUuMy0yLjYtMS45IDAtMi45LjgtMi45IDIuMXMxLjQgMS42IDIuNyAxLjlsMy40LjhjMy43LjggNC42IDMgNC42IDUuMS4xIDIuNy0yLjQgNS4xLTcuMiA1LjF6Ii8+PC9zdmc+"});
    break;case l.shareTypes.linkedin:b.push({url:"//www.linkedin.com/shareArticle?mini\x3dtrue\x26url\x3d"+e+"\x26title\x3d\x26summary\x3d\x26source\x3d",id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_linkedin),image:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxzdHlsZT4uc3Qwe2Rpc3BsYXk6bm9uZTt9IC5zdDF7ZGlzcGxheTppbmxpbmU7fSAuc3Qye2ZpbGw6bm9uZTt9IC5zdDN7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxnIGlkPSJMYXllcl8xXzFfIiBjbGFzcz0ic3QwIj48ZyBpZD0iUmVzdF8zXyIgY2xhc3M9InN0MSI+PGcgaWQ9IlR3aXR0ZXJfM18iPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz48cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjguNCA4LjZjLS45LjQtMS45LjctMi45LjggMS0uNiAxLjgtMS42IDIuMi0yLjgtMSAuNi0yLjEgMS0zLjIgMS4yLS45LTEtMi4yLTEuNi0zLjctMS42LTIuOCAwLTUgMi4zLTUgNSAwIC40IDAgLjguMSAxLjItNC4yLS4yLTcuOS0yLjItMTAuNC01LjMtLjQuOC0uNyAxLjctLjcgMi42IDAgMS44IDEgMy4zIDIuMyA0LjItLjggMC0yLjItLjMtMi4yLS42di4xYzAgMi40IDEuNiA0LjUgMy45IDUtLjQuMS0uOS4yLTEuNC4yLS4zIDAtLjcgMC0xLS4xLjYgMiAyLjUgMy41IDQuNyAzLjUtMS41IDEuMi0zLjcgMi02LjEgMi0uNCAwLS44IDAtMS4yLS4xIDIuMiAxLjQgNC45IDIuMyA3LjcgMi4zIDkuMyAwIDE0LjQtNy43IDE0LjQtMTQuNHYtLjdjMS0uNiAxLjgtMS41IDIuNS0yLjV6Ii8+PC9nPjwvZz48ZyBpZD0iRmFjZWJvb2tfN18iIGNsYXNzPSJzdDEiPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz48cGF0aCBpZD0iZl82XyIgY2xhc3M9InN0MyIgZD0iTTE4IDI2di05aDIuNmwuNS00SDE4di0xLjljMC0xLS4yLTIuMSAxLjMtMi4xSDIxVjYuMVMxOS43IDYgMTguNCA2QzE1LjcgNiAxNCA3LjcgMTQgMTAuN1YxM2gtM3Y0aDN2OWg0eiIvPjwvZz48L2c+PGcgaWQ9IkxheWVyXzMiIGNsYXNzPSJzdDAiPjxnIGlkPSJTa3lwZV83XyIgY2xhc3M9InN0MSI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTAgMGgzMnYzMkgweiIvPjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yNS4yIDE3LjZjLjEtLjUuMS0xLjEuMS0xLjYgMC01LjItNC4yLTkuNC05LjQtOS40LS42IDAtMS4xIDAtMS42LjEtLjgtLjUtMS44LS43LTIuOC0uNy0zLjEgMC01LjYgMi41LTUuNiA1LjYgMCAxIC4zIDIgLjcgMi44LS4xLjUtLjEgMS4xLS4xIDEuNiAwIDUuMiA0LjIgOS40IDkuNCA5LjQuNiAwIDEuMSAwIDEuNi0uMS44LjUgMS44LjcgMi44LjcgMy4xIDAgNS42LTIuNSA1LjYtNS42IDAtMS4xLS4yLTItLjctMi44ek0xNiAyMS43Yy0zLjIgMC00LjctMS42LTQuNy0yLjggMC0uNi41LTEgMS4xLTEgMS40IDAgMSAyIDMuNiAyIDEuMyAwIDIuMS0uOCAyLjEtMS41IDAtLjQtLjMtLjktMS4xLTEuMWwtMi45LS43Yy0yLjMtLjYtMi43LTEuOS0yLjctMyAwLTIuNCAyLjItMy4zIDQuNC0zLjMgMiAwIDQuMyAxLjEgNC4zIDIuNiAwIC42LS41IDEtMS4xIDEtMS4yIDAtMS0xLjYtMy4zLTEuNi0xLjIgMC0xLjguNS0xLjggMS4zcy45IDEgMS43IDEuMmwyLjEuNWMyLjMuNSAyLjkgMS45IDIuOSAzLjIgMCAxLjctMS42IDMuMi00LjYgMy4yeiIvPjwvZz48L2c+PHBhdGggY2xhc3M9InN0MyIgZD0iTTI5LjYgMEgyLjRDMS4xIDAgMCAxIDAgMi4zdjI3LjRDMCAzMSAxLjEgMzIgMi40IDMyaDI3LjNjMS4zIDAgMi40LTEgMi40LTIuM1YyLjNDMzIgMSAzMC45IDAgMjkuNiAwek05LjUgMjcuM0g0LjdWMTJoNC43djE1LjN6TTcuMSA5LjljLTEuNSAwLTIuOC0xLjItMi44LTIuOCAwLTEuNSAxLjItMi44IDIuOC0yLjggMS41IDAgMi44IDEuMiAyLjggMi44IDAgMS42LTEuMyAyLjgtMi44IDIuOHptMjAuMiAxNy40aC00Ljd2LTcuNGMwLTEuOCAwLTQtMi41LTRzLTIuOCAxLjktMi44IDMuOXY3LjZoLTQuN1YxMkgxN3YyLjFoLjFjLjYtMS4yIDIuMi0yLjUgNC41LTIuNSA0LjggMCA1LjcgMy4yIDUuNyA3LjN2OC40eiIvPjwvc3ZnPg\x3d\x3d"});
    break;case l.shareTypes.mail:b.push({url:"mailto:?subject\x3dCheck out this great video\x26body\x3d"+e,id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_mail),glyph:"glyph-mail"});break;case l.shareTypes.copy:b.push({url:e,id:n,label:h.getLocalizedValue(d.playerLocKeys.sharing_copy),glyph:"glyph-copy"})}}return b};return a}();a.SharingHelper=m});r("mwf/utilities/viewportCollision",["require","exports","mwf/utilities/htmlExtensions"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});
    a.getCollisionExtents=a.collidesWith=void 0;a.collidesWith=function(a,l){a=n.getClientRect(a);a.left=Math.round(a.left);a.top=Math.round(a.top);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);if(0!==a.width){var d=!1,k={top:!1,bottom:!1,left:!1,right:!1};if(!l){l=Math.min(window.innerWidth,document.documentElement.clientWidth);var h=Math.min(window.innerHeight,document.documentElement.clientHeight);l={left:0,top:0,right:l,bottom:h,width:l,height:h}}a.left<l.left&&(d=!0,k.left=!0);a.top<
    l.top&&(d=!0,k.top=!0);a.right>l.right&&(d=!0,k.right=!0);a.bottom>l.bottom&&(d=!0,k.bottom=!0);if(d)return k}return!1};a.getCollisionExtents=function(a,l){a=n.getClientRect(a);if(0===a.width)return null;if(!l){l=Math.min(window.innerWidth,document.documentElement.clientWidth);var d=Math.min(window.innerHeight,document.documentElement.clientHeight);l={top:0,right:l,bottom:d,left:0,height:d,width:l}}d=Math.round(a.top-l.top);var k=Math.round(l.right-a.right),h=Math.round(l.bottom-a.bottom),c=Math.round(a.left-
    l.left);return 0<=d&&0<=k&&0<=h&&0<=c?null:{top:d,right:k,bottom:h,left:c,clientRect:a,viewport:l}}});r("mwf/selectMenu/selectMenu","require exports mwf/utilities/publisher mwf/utilities/htmlExtensions mwf/utilities/stringExtensions mwf/utilities/viewportCollision mwf/utilities/utility".split(" "),function(m,a,n,d,l,g,k){Object.defineProperty(a,"__esModule",{value:!0});a.SelectMenu=void 0;m=function(a){function c(e){var b=a.call(this,e)||this;b.onTriggerClick=function(a){a=d.getEvent(a);d.preventDefault(a);
    b.onTriggerToggled(a)};b.onItemClick=function(a){a=d.getEvent(a);b.onItemSelected(d.getEventTargetOrSrcElement(a),!1,!0)};b.onNonSelectMenuClick=function(a){a=d.getEvent(a);b.element&&b.menu&&(a=d.getEventTargetOrSrcElement(a),b.element.contains(a)||a!==b.menu&&a.parentElement!==b.menu&&b.collapse())};b.onNonSelectMenuTab=function(a){a=d.getEvent(a);9===k.getKeyCode(a)&&b.collapse()};b.onTriggerKeyPress=function(a){a=d.getEvent(a);switch(k.getKeyCode(a)){case 13:case 32:d.preventDefault(a),b.onTriggerToggled()}};
    b.handleMenuKeydownEvent=function(a){a=d.getEvent(a);var c=k.getKeyCode(a);9!==c&&b.isExpanded()&&d.preventDefault(a);b.handleMenuKeydown(d.getEventTargetOrSrcElement(a),c)};b.handleMenuItemBlur=function(a){a=d.getEventTargetOrSrcElement(a);d.removeEvent(a,d.eventTypes.blur,b.handleMenuItemBlur);d.removeClass(a,c.hiddenFocus)};b.update();return b}D(c,a);c.prototype.update=function(){if(this.element){this.persist=d.hasClass(this.element,"f-persist");this.trigger=d.selectFirstElementT('[role\x3d"button"]',
    this.element);this.trigger||(this.trigger=d.selectFirstElementT("button",this.element));this.menu=d.selectFirstElement(".c-menu",this.element);var a=d.selectElementsT(".c-menu-item a",this.element);this.items=0<a.length?a:d.selectElementsT(".c-menu-item span",this.element);this.isLtr=d.getDirection(this.menu)===d.Direction.left;if(d.selectFirstElement("img",this.menu)){this.ignoreNextDOMChange=!0;a=document.createElement("img");var b=document.createElement("span");d.setText(b,d.getText(this.trigger));
    d.setText(this.trigger,"");this.trigger.appendChild(a);this.trigger.appendChild(b)}if(this.trigger&&this.menu&&this.items&&this.items.length){a=null;b=0;for(var c=this.items;b<c.length;b++){var g=c[b];this.itemIsSelected(g)&&null===a?(a=g,g.setAttribute(this.getSelectedAttribute(g),"true")):g.setAttribute(this.getSelectedAttribute(g),"false");g.setAttribute("tabindex","-1");this.cleanSelectedAttributes(g);g.hasAttribute("role")||g.setAttribute("role","menuitem")}b=this.isExpanded();this.onItemSelected(a,
    !0,!1);this.selectedItem||this.updateAriaLabel();this.addEventListeners();b&&this.expand()}}};c.prototype.teardown=function(){d.removeEvent(this.trigger,d.eventTypes.click,this.onTriggerClick);d.removeEvent(this.trigger,d.eventTypes.keydown,this.onTriggerKeyPress);d.removeEvent(this.menu,d.eventTypes.keydown,this.handleMenuKeydownEvent,!0);for(var a=0,b=this.items;a<b.length;a++)d.removeEvent(b[a],d.eventTypes.click,this.onItemClick);d.removeEvent(document,d.eventTypes.click,this.onNonSelectMenuClick);
    d.removeEvent(this.items[this.items.length-1],d.eventTypes.keydown,this.onNonSelectMenuTab);d.removeEvent(this.items,d.eventTypes.blur,this.handleMenuItemBlur);this.persist=!1;this.selectedItem=this.items=this.menu=this.trigger=null};c.prototype.setSelectedItem=function(a){return a&&this.element?(a=d.selectFirstElement('[id\x3d"'+a+'"] \x3e a',this.element)||d.selectFirstElement('[id\x3d"'+a+'"] \x3e span',this.element))?this.onItemSelected(a,!1,!1):!1:!1};c.prototype.updateAriaLabel=function(){var a=
    this.trigger.getAttribute(c.dataAriaLabelFormat);if(null!=a){var b=this.selectedItem?this.selectedItem.getAttribute(c.ariaLabel)||d.getText(this.selectedItem):d.getText(this.trigger);a=l.format(a,b);this.trigger.setAttribute(c.ariaLabel,a)}};c.prototype.isExpanded=function(){return!!this.trigger&&!!this.menu&&"true"===this.trigger.getAttribute(c.ariaExpanded)&&"false"===this.menu.getAttribute(c.ariaHidden)};c.prototype.itemIsSelected=function(a){return"true"===a.getAttribute(c.ariaSelected)||"true"===
    a.getAttribute(c.ariaChecked)};c.prototype.getSelectedAttribute=function(a){return"menuitemradio"===a.getAttribute("role")?c.ariaChecked:c.ariaSelected};c.prototype.cleanSelectedAttributes=function(a){var b=this.getSelectedAttribute(a)===c.ariaSelected?c.ariaChecked:c.ariaSelected;a.removeAttribute(b)};c.prototype.positionMenu=function(){var a=d.css(this.element,"float"),b="right"===a;b=b||"left"!==a?b||!this.isLtr?!1:!0:!0;d.css(this.menu,"top","auto");d.css(this.menu,"bottom","auto");d.css(this.menu,
    b?"left":"right","0");d.css(this.menu,"height","auto");if(a=g.getCollisionExtents(this.menu)){if(0>a.right||0>a.left)a.clientRect.width<=a.viewport.width?b?d.css(this.menu,"left",a.right+"px"):d.css(this.menu,"right",a.left+"px"):(d.css(this.menu,"left",-a.left+"px"),d.css(this.menu,"width",a.viewport.width+"px"));0>a.bottom&&(b=parseFloat(d.css(this.trigger,"height")),a.clientRect.height<=a.top?d.css(this.menu,"bottom",b+"px"):a.clientRect.height<=a.viewport.height?d.css(this.menu,"top",a.bottom+
    b+"px"):(d.css(this.menu,"top",-a.top+b+"px"),d.css(this.menu,"height",a.viewport.height+"px")))}};c.prototype.expand=function(a){if(this.trigger&&this.menu&&(this.trigger.setAttribute(c.ariaExpanded,"true"),this.menu.setAttribute(c.ariaHidden,"false"),this.positionMenu(),this.items)){var b=this.items.indexOf(this.selectedItem);b=this.items[-1===b?0:b];b.focus();a&&"click"===a.type&&(d.addClass(b,c.hiddenFocus),d.addEvent(b,d.eventTypes.blur,this.handleMenuItemBlur))}};c.prototype.collapse=function(){this.trigger&&
    this.menu&&(this.trigger.setAttribute(c.ariaExpanded,"false"),this.menu.setAttribute(c.ariaHidden,"true"))};c.prototype.addEventListeners=function(){if(this.trigger&&this.items){d.addEvent(this.trigger,d.eventTypes.click,this.onTriggerClick);d.addEvent(this.trigger,d.eventTypes.keydown,this.onTriggerKeyPress);d.addEvent(this.menu,d.eventTypes.keydown,this.handleMenuKeydownEvent,!0);for(var a=0,b=this.items;a<b.length;a++)d.addEvent(b[a],d.eventTypes.click,this.onItemClick);d.addEvent(this.items[this.items.length-
    1],d.eventTypes.keydown,this.onNonSelectMenuTab);d.addEvent(document,d.eventTypes.click,this.onNonSelectMenuClick)}};c.prototype.onTriggerToggled=function(a){"true"!==this.element.getAttribute("aria-disabled")&&(this.isExpanded()?this.collapse():this.expand(a))};c.prototype.onItemSelected=function(a,b,c){if(!a||a===this.selectedItem)return this.collapse(),!1;if("P"===a.nodeName||"IMG"===a.nodeName)a=a.parentElement;if(this.persist&&this.trigger){var e=d.selectFirstElementT("img",this.trigger);this.ignoreNextDOMChange=
    !0;if(e){var f=d.selectFirstElementT("img",a),g=f?f.getAttribute("src"):"";e.setAttribute("src",g);e=d.selectFirstElementT("span",this.trigger);d.setText(e,d.getText(a));d.hasClass(this.trigger,"f-icon")&&!f?d.removeClass(this.trigger,"f-icon"):!d.hasClass(this.trigger,"f-icon")&&f&&d.addClass(this.trigger,"f-icon")}else d.setText(this.trigger,d.getText(a))}this.selectedItem&&this.selectedItem.setAttribute(this.getSelectedAttribute(this.selectedItem),"false");this.selectedItem=a;this.selectedItem.setAttribute(this.getSelectedAttribute(this.selectedItem),
    "true");this.updateAriaLabel();this.collapse();for(a=this.selectedItem;a.parentElement!==this.menu;)a=a.parentElement;this.initiatePublish({id:a.id,href:this.selectedItem.getAttribute("href"),internal:b,userInitiated:c});return!0};c.prototype.publish=function(a,b){if(this.selectedItem)a.onSelectionChanged(b)};c.prototype.handleMenuKeydown=function(a,b){switch(b){case 32:case 13:this.handleMenuEnterKey(a);this.trigger.focus();break;case 27:this.trigger.focus();this.collapse();break;case 38:this.handleMenuArrowKey(!0,
    a);break;case 40:this.handleMenuArrowKey(!1,a);break;case 9:this.isExpanded()&&this.handleMenuEnterKey(a)}};c.prototype.handleMenuArrowKey=function(a,b){b=this.items.indexOf(b);-1!==b&&(b+=a?-1:1,0>b?b=this.items.length-1:b>=this.items.length&&(b=0),this.items[b].focus())};c.prototype.handleMenuEnterKey=function(a){this.onItemSelected(a,!1,!0)};c.selector=".c-select-menu";c.typeName="SelectMenu";c.dataAriaLabelFormat="data-aria-label-format";c.ariaExpanded="aria-expanded";c.ariaHidden="aria-hidden";
    c.ariaSelected="aria-selected";c.ariaLabel="aria-label";c.ariaChecked="aria-checked";c.hiddenFocus="x-hidden-focus";return c}(n.Publisher);a.SelectMenu=m});r("helpers/age-gate-helper","require exports mwf/utilities/utility mwf/utilities/htmlExtensions mwf/selectMenu/selectMenu mwf/utilities/componentFactory utilities/environment helpers/localization-helper".split(" "),function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.AgeGateHelper=void 0;m=function(){function a(a,b,c,g){var e=
    this;this.playerContainer=a;this.corePlayer=b;this.localizationHelper=c;this.onCompleteCallback=g;this.ageGateData={};this.contentMinimumAge=0;this.ageGateIsDisplayed=this.didUserClickSubmit=this.isUserOldEnough=!1;this.onAgeGateButtonClick=function(a){d.preventDefault(a);if(d.getEventTargetOrSrcElement(a)){a=d.selectFirstElement(".month-button",e.ageGateDialogue.monthSelectMenu);var b=d.selectFirstElement(".day-button",e.ageGateDialogue.daySelectMenu),c=d.selectFirstElement(".year-button",e.ageGateDialogue.yearSelectMenu);
    if(a&&b&&c){a=Number(d.getText(a));b=Number(d.getText(b));var f=Number(d.getText(c));if(a&&b&&f){e.didUserClickSubmit=!0;c=new Date;f=c.getFullYear()-f;var g=c.getMonth()+1<a;a=c.getMonth()+1===a&&c.getDate()<b;(g||a)&&f--;e.addAgeGateVerifiedToUserSession(f+"");e.playerData.options.lazyLoad=!1;e.isUserOldEnoughToViewContent(e.contentMinimumAge)&&(e.isUserOldEnough=!0);e.onCompleteCallback&&e.onCompleteCallback();e.ageGateDialogue.container.setAttribute("aria-hidden","true");e.ageGateIsDisplayed=
    !1;k.Environment.isIProduct&&(d.selectFirstElement("video",e.playerContainer).style.visibility="",e.playerContainer.style.backgroundColor="")}}}}}a.prototype.verifyAgeGate=function(){this.playerData=this.corePlayer.getPlayerData();this.contentMinimumAge=this.playerData.metadata.minimumAge?this.playerData.metadata.minimumAge:0;if(0>=this.contentMinimumAge||!this.playerData.options.ageGate)return this.isUserOldEnough=!0,this.onCompleteCallback&&this.onCompleteCallback(),!1;this.addUserAgeFromExternalLogin();
    if(this.isUserAgeAlreadyVerified())this.isUserOldEnoughToViewContent(this.contentMinimumAge)&&(this.isUserOldEnough=!0),this.onCompleteCallback&&this.onCompleteCallback();else return this.displayAgeGateDialogue(),!0;return!1};a.prototype.didUserSubmitAge=function(){return this.didUserClickSubmit};a.prototype.resetAgeGateSubmit=function(){this.didUserClickSubmit=!1};a.prototype.doesUserPassAgeGate=function(){return this.isUserOldEnough};a.prototype.addUserAgeFromExternalLogin=function(){var c=n.getCookie(a.xboxDotComAgeGateCookieName);
    Number(c)?n.saveToSessionStorage(a.ageGateSessionStorageKey,c):(c=this.playerData.options.userMinimumAge,0<c&&n.saveToSessionStorage(a.ageGateSessionStorageKey,c+""))};a.prototype.addAgeGateVerifiedToUserSession=function(c){n.saveToSessionStorage(a.ageGateSessionStorageKey,c)};a.prototype.isUserAgeAlreadyVerified=function(){return!!n.getValueFromSessionStorage(a.ageGateSessionStorageKey)};a.prototype.isUserOldEnoughToViewContent=function(c){return Number(n.getValueFromSessionStorage(a.ageGateSessionStorageKey))>=
    c?!0:!1};a.prototype.displayAgeGateDialogue=function(){this.ageGateIsDisplayed=!0;this.getLocalizedAgeGateStrings();this.ageGateDialogue||(this.setDefaultSelectMenuContainer(),this.createAgeGateContainer());this.populateDateDropDowns();k.Environment.isIProduct&&(d.selectFirstElement("video",this.playerContainer).style.visibility="hidden",this.playerContainer.style.backgroundColor="black")};a.prototype.setDefaultSelectMenuContainer=function(){this.defaultDateSelectMenuContainer='\x3cdiv class\x3d"select-menu-month c-select-menu f-border f-persist"\x3e\n        \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"month-button" aria-label\x3d"'+
    this.ageGateData.monthLabel+'"\x3e\n        '+this.ageGateData.monthLabel+'\n        \x3c/a\x3e\n        \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n        \x3c/ul\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"select-menu-day c-select-menu f-border f-persist"\x3e\n        \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"day-button" aria-label\x3d"'+this.ageGateData.dayLabel+'"\x3e\n        '+this.ageGateData.dayLabel+'\n        \x3c/a\x3e\n        \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n        \x3c/ul\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"select-menu-year c-select-menu f-border f-persist"\x3e\n        \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"year-button" aria-label\x3d"'+
    this.ageGateData.yearLabel+'"\x3e\n        '+this.ageGateData.yearLabel+'\n        \x3c/a\x3e\n        \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n        \x3c/ul\x3e\n    \x3c/div\x3e'};a.prototype.getLocalizedAgeGateStrings=function(){this.ageGateData.buttonText=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_submit);this.ageGateData.heading=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_enterdate);this.ageGateData.dropDownAriaLabel=
    this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_enterdate_arialabel);this.ageGateData.monthLabel=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_month);this.ageGateData.dayLabel=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_day);this.ageGateData.yearLabel=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_year);this.ageGateData.monthDayYearOrder=this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_dateorder);this.ageGateData.monthAriaLabel=
    this.ageGateData.dropDownAriaLabel.replace("{0}",this.ageGateData.monthLabel);this.ageGateData.dayAriaLabel=this.ageGateData.dropDownAriaLabel.replace("{0}",this.ageGateData.dayLabel);this.ageGateData.yearAriaLabel=this.ageGateData.dropDownAriaLabel.replace("{0}",this.ageGateData.yearLabel)};a.prototype.setSelectMenuMonthDayYearOrder=function(){try{for(var a="",b=this.ageGateData.monthDayYearOrder.toLowerCase().split(/\/|\.|\. |\-/,3),c=!0,d=0;d<b.length;d++)-1<b[d].indexOf("m")?a+='\x3cdiv class\x3d"select-menu-month c-select-menu f-border f-persist"\x3e\n                    \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"month-button" aria-label\x3d"'+
    this.ageGateData.monthAriaLabel+'"\x3e\n                    '+this.ageGateData.monthLabel+'\n                    \x3c/a\x3e\n                    \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n                    \x3c/ul\x3e\n                \x3c/div\x3e':-1<b[d].indexOf("d")?a+='\x3cdiv class\x3d"select-menu-day c-select-menu f-border f-persist"\x3e\n                    \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"day-button" aria-label\x3d"'+
    this.ageGateData.dayAriaLabel+'"\x3e\n                    '+this.ageGateData.dayLabel+'\n                    \x3c/a\x3e\n                    \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n                    \x3c/ul\x3e\n                \x3c/div\x3e':-1<b[d].indexOf("y")?a+='\x3cdiv class\x3d"select-menu-year c-select-menu f-border f-persist"\x3e\n                    \x3ca href\x3d"#" role\x3d"button" aria-expanded\x3d"false" class\x3d"year-button" aria-label\x3d"'+this.ageGateData.yearAriaLabel+
    '"\x3e\n                    '+this.ageGateData.yearLabel+'\n                    \x3c/a\x3e\n                    \x3cul role\x3d"menu" class\x3d"c-menu f-scroll" aria-hidden\x3d"true"\x3e\n                    \x3c/ul\x3e\n                \x3c/div\x3e':c=!1;return c?a:this.defaultDateSelectMenuContainer}catch(x){return this.defaultDateSelectMenuContainer}};a.prototype.createAgeGateContainer=function(){var c=this,b=this.setSelectMenuMonthDayYearOrder(),f='\n\x3cdiv class\x3d"theme-dark c-update-dark-theme"\x3e\n    \x3cdiv class\x3d""\x3e\n        \x3ch3 aria-hidden\x3d"true" class\x3d"c-heading-3 c-font-weight-override"\x3e'+
    this.ageGateData.heading+"\x3c/h3\x3e\n        \x3cfieldset\x3e"+b+('\x3cbutton name\x3d"button" class\x3d"c-button" type\x3d"submit" disabled\x3e'+this.ageGateData.buttonText+"\x3c/button\x3e\n        \x3c/fieldset\x3e\n    \x3c/div\x3e\n\x3c/div\x3e\n");b=document.createElement("div");b.innerHTML=f;d.addClass(b,"f-age-gate-dialogue");f=d.selectFirstElement(".f-video-cc-overlay",this.playerContainer);this.playerContainer.insertBefore(b,f);this.ageGateDialogue={};this.ageGateDialogue.container=document.createElement("div");
    this.ageGateDialogue.container=d.selectFirstElement(".f-age-gate-dialogue",this.playerContainer);this.ageGateDialogue.button=d.selectFirstElement(".c-button",this.ageGateDialogue.container);d.addEvent(this.ageGateDialogue.button,d.eventTypes.click,this.onAgeGateButtonClick);this.ageGateDialogue.button.setAttribute(a.ariaLabel,this.localizationHelper.getLocalizedValue(h.playerLocKeys.agegate_submit));this.ageGateDialogue.monthSelectMenu=d.selectFirstElement(".select-menu-month",this.ageGateDialogue.container);
    this.ageGateDialogue.daySelectMenu=d.selectFirstElement(".select-menu-day",this.ageGateDialogue.container);this.ageGateDialogue.yearSelectMenu=d.selectFirstElement(".select-menu-year",this.ageGateDialogue.container);this.ageGateDialogue.monthSelectMenuList=d.selectFirstElement(".c-menu",this.ageGateDialogue.monthSelectMenu);this.ageGateDialogue.daySelectMenuList=d.selectFirstElement(".c-menu",this.ageGateDialogue.daySelectMenu);this.ageGateDialogue.yearSelectMenuList=d.selectFirstElement(".c-menu",
    this.ageGateDialogue.yearSelectMenu);g.ComponentFactory.create([{component:l.SelectMenu,eventToBind:"DOMContentLoaded",elements:[this.ageGateDialogue.monthSelectMenu,this.ageGateDialogue.daySelectMenu,this.ageGateDialogue.yearSelectMenu],callback:function(a){if(a||a.length)c.selectMenuMonth=a[0],c.selectMenuDay=a[1],c.selectMenuYear=a[2],c.selectMenuDay.subscribe({onSelectionChanged:function(a){return c.onMonthDayYearDropDownSelect(a)}}),c.selectMenuMonth.subscribe({onSelectionChanged:function(a){return c.onMonthDayYearDropDownSelect(a)}}),
    c.selectMenuYear.subscribe({onSelectionChanged:function(a){return c.onMonthDayYearDropDownSelect(a)}})}}])};a.prototype.populateDateDropDowns=function(){if(this.ageGateDialogue.monthSelectMenuList){var c;for(c=1;12>=c;c++){var b=this.createListItem("month-",c),d='\x3ca role\x3d"menuitem" href\x3d"#" aria-selected\x3d"false" tabindex\x3d"-1"\x3e'+(c+"")+"\x3c/a\x3e";b.innerHTML=d;this.ageGateDialogue.monthSelectMenuList.appendChild(b)}}if(this.ageGateDialogue.daySelectMenuList)for(c=1;31>=c;c++)b=
    this.createListItem("day-",c),d='\x3ca role\x3d"menuitem" href\x3d"#" aria-selected\x3d"false" tabindex\x3d"-1"\x3e'+(c+"")+"\x3c/a\x3e",b.innerHTML=d,this.ageGateDialogue.daySelectMenuList.appendChild(b);if(this.ageGateDialogue.yearSelectMenuList){b=(new Date).getFullYear();c=b-a.numberOfSelectableYears;var g;for(g=b;g>=c;g--)b=this.createListItem("year-",g),d='\x3ca role\x3d"menuitem" href\x3d"#" aria-selected\x3d"false" tabindex\x3d"-1"\x3e'+(g+"")+"\x3c/a\x3e",b.innerHTML=d,this.ageGateDialogue.yearSelectMenuList.appendChild(b)}};
    a.prototype.createListItem=function(a,b){var c=document.createElement("li");c.id=a+b;d.addClass(c,"c-menu-item");c.setAttribute("role","presentation");return c};a.prototype.onMonthDayYearDropDownSelect=function(a){if(a){var b=d.selectFirstElement(".month-button",this.ageGateDialogue.monthSelectMenu),c=d.selectFirstElement(".day-button",this.ageGateDialogue.daySelectMenu),e=d.selectFirstElement(".year-button",this.ageGateDialogue.yearSelectMenu);if(b&&c&&e){var g=Number(d.getText(b));a=Number(d.getText(c));
    var h=Number(d.getText(e));g&&b.setAttribute("aria-label",g+" "+this.ageGateData.monthLabel);a&&c.setAttribute("aria-label",a+" "+this.ageGateData.dayLabel);h&&e.setAttribute("aria-label",h+" "+this.ageGateData.yearLabel);g&&a&&h&&this.ageGateDialogue.button.removeAttribute("disabled");a=a?a:1;g=g?g:1;h=h?h:(new Date).getFullYear();b=(new Date(h,g,0)).getDate();for(c=28;31>=c;c++)e=d.selectFirstElement("#day-"+c),c>b?d.addClass(e,"c-hide-menu-item"):d.removeClass(e,"c-hide-menu-item");a>b&&this.selectMenuDay.setSelectedItem("day-1")}}};
    a.ageGateSessionStorageKey="UserAge";a.xboxDotComAgeGateCookieName="maturityRatingAge";a.ariaLabel="aria-label";a.numberOfSelectableYears=110;return a}();a.AgeGateHelper=m});r("helpers/inview-helper",["require","exports","mwf/utilities/htmlExtensions","mwf/utilities/utility","players/core-player"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.InviewManager=a.DocumentVisibility=void 0;a.DocumentVisibility={msHidden:"msvisibilitychange",webkitHidden:"webkitvisibilitychange",
    mozHidden:"mozvisibilitychange",hidden:"visibilitychange"};m=function(){function g(){var d=this;this.isAnyPlayerPlaying=!1;this.defaultInViewHeightFraction=this.defaultInViewWidthFraction=.5;this.onDocumentVisibilityChanged=function(a){g.isDocumentVisible()?d.triggerInViewPlay(!1):d.isAnyPlayerPlaying&&g.currentPlayer?g.currentPlayer.hasUserInteracted()&&g.currentPlayer.hasUserIntiatedPause()?g.currentPlayer.pause():d.clearCurrentPlayer():d.triggerInViewPlay(!1)};this.onInViewPlayHandler=function(a){setTimeout(d.triggerInViewPlay(!1),
    500)};g.players=[];g.currentPlayer=null;for(var h in a.DocumentVisibility)if(h in document){g.hidden=h;g.visibilityChange=a.DocumentVisibility[h];break}this.bindInViewEvents()}g.Instance=function(){if(null===this._instance||void 0===this._instance)this._instance=new g;return this._instance};g.prototype.clearCurrentPlayer=function(){g.currentPlayer&&g.currentPlayer.pause();g.currentPlayer=null;this.isAnyPlayerPlaying=!1};g.prototype.setCurrentPlayer=function(a){a&&g.currentPlayer!==a&&(g.currentPlayer=
    a,this.isAnyPlayerPlaying=!0)};g.prototype.insertByPosition=function(a){var d=this.getPlayerPosition(a.getPlayerContainer());if(d){for(var c=0;c<g.players.length;){if(g.players[c].getPlayerId()===a.getPlayerId())return;var e=this.getPlayerPosition(g.players[c].getPlayerContainer());if(e&&d.top<e.top)break;c++}g.players.splice(c,0,a)}else g.players.push(a)};g.prototype.registerPlayer=function(a){a&&(this.insertByPosition(a),g.currentPlayer||this.triggerInViewPlay(!0))};g.prototype.disposePlayer=function(a){a&&
    (g.currentPlayer===a&&this.clearCurrentPlayer(),a=g.players.indexOf(a),0<=a&&g.players.splice(a,1),0===g.players.length&&this.dispose())};g.prototype.dispose=function(){g.players=[];g.currentPlayer=null};g.isDocumentVisible=function(){return!document[this.hidden]};g.prototype.triggerInViewPlay=function(a){if(g.isDocumentVisible()){var d=!1;g.currentPlayer&&this.isAnyPlayerPlaying&&((d=this.isPlayerInView(g.currentPlayer))||(g.currentPlayer.hasUserInteracted()&&g.currentPlayer.hasUserIntiatedPause()?
    g.currentPlayer.pause():this.clearCurrentPlayer()));if((!this.isAnyPlayerPlaying||!g.currentPlayer||!g.currentPlayer.hasUserInteracted()&&!d)&&g.players&&g.players.length)for(d=0;d<g.players.length;d++){var c=g.players[d];if(g.currentPlayer!==c)if(!a&&c.hasUserInteracted()&&c.hasUserIntiatedPause())c.hasUserInteracted()&&c.hasUserIntiatedPause()&&this.handledUserInteractedPlay(c);else if(c.hasUserInteracted()&&c.hasUserIntiatedPause())this.handledUserInteractedPlay(c);else{var e=this.isPlayerInView(c),
    b=c.getCurrentPlayState();if(!e&&b===l.PlayerStates.Playing){c.pause();this.clearCurrentPlayer();break}if(e&&(c.isPaused()||b===l.PlayerStates.Paused)&&b!==l.PlayerStates.Ended){c.play();this.setCurrentPlayer(c);break}if(e&&b===l.PlayerStates.Playing){this.setCurrentPlayer(c);break}}}}};g.prototype.handledUserInteractedPlay=function(a){a&&!this.isPlayerInView(a)&&a.getCurrentPlayState()===l.PlayerStates.Playing&&(a.pause(),this.clearCurrentPlayer())};g.prototype.isPlayerInView=function(a){var g=d.getWindowWidth(),
    c=d.getWindowHeight();if(!g||!c||0>=g||0>=c)return!1;var e=this.getPlayerPosition(a.getPlayerContainer());if(!e||!e.width||!e.height)return!1;var b=this.defaultInViewWidthFraction,f=this.defaultInViewHeightFraction;a.getPlayerData().options&&(a.getPlayerData().options.inViewWidthFraction&&(b=a.getPlayerData().options.inViewWidthFraction),a.getPlayerData().options.inViewHeightFraction&&(f=a.getPlayerData().options.inViewHeightFraction));return this.isInView(g,c,e,e.width*Math.abs(b),e.height*Math.abs(f))};
    g.prototype.isInView=function(a,d,c,e,b){d=0>c.bottom||c.top>d?0:Math.min(d,c.bottom)-Math.max(c.top,0);a=0>c.right||c.left>a?0:Math.min(a,c.right)-Math.max(0,c.left);return d&&d>=b&&a&&a>=e};g.prototype.listenForInviewThresholdChanges=function(a,d,c){if(!(!a||!d||0>d||1<d)){this.inviewChange={enter:!0,exit:!1};this.inviewContainer=a;this.inviewThreshold=d;this.inviewCallback=c;var e=this;n.addEvents(window,"scroll",function(){e.checkInviewThreshold()})}};g.prototype.checkInviewThreshold=function(){!0===
    this.inviewChange.enter?this.inviewVerticalThreshold()&&this.inviewHorizontalThreshold()||(this.inviewChange.enter=!1,this.inviewChange.exit=!0,this.inviewCallback("InviewExit")):!0===this.inviewChange.exit&&this.inviewVerticalThreshold()&&this.inviewHorizontalThreshold()&&(this.inviewChange.enter=!0,this.inviewChange.exit=!1,this.inviewCallback("InviewEnter"))};g.prototype.inviewVerticalThreshold=function(){var a=d.getWindowHeight(),g=this.getPlayerPosition(this.inviewContainer),c=0>g.top?-1*g.top:
    g.top,e=0>g.bottom?-1*g.bottom:g.bottom,b=this.inviewThreshold*g.height;return g&&g.height?0>g.bottom||g.top>a||!(0>g.top&&c<b||g.bottom>a&&e-a<b||0<=g.top&&g.bottom<=a)?!1:!0:!1};g.prototype.inviewHorizontalThreshold=function(){var a=d.getWindowWidth(),g=this.getPlayerPosition(this.inviewContainer),c=0>g.left?-1*g.left:g.left,e=0>g.right?-1*g.right:g.right,b=this.inviewThreshold*g.width;return g&&g.width?0>g.right||g.left>a||!(0>g.left&&c<b||g.right>=a&&e-a<b||0<=g.left&&g.right<=a)?!1:!0:!1};g.prototype.getPlayerPosition=
    function(a){return a&&0!==a.childElementCount?(a=a.firstElementChild.getBoundingClientRect())&&a.width&&a.height?a:null:null};g.prototype.bindInViewEvents=function(){n.addEvents(document,g.visibilityChange,this.onDocumentVisibilityChanged);n.addEvents(window,"scroll",this.onInViewPlayHandler);n.addEvents(window,"resize",this.onInViewPlayHandler)};g.hidden="hidden";g.visibilityChange="visibilitychange";return g}();a.InviewManager=m});r("players/core-player","require exports controls/video-controls closed-captions/video-closed-captions closed-captions/video-closed-captions-settings mwf/utilities/utility mwf/utilities/htmlExtensions mwf/utilities/stringExtensions data/player-data-interfaces data/player-options video-wrappers/html5-video-wrapper video-wrappers/amp-wrapper video-wrappers/has-video-wrapper video-wrappers/hls-video-wrapper video-wrappers/native-video-wrapper utilities/environment utilities/stopwatch utilities/player-utility constants/player-constants telemetry/jsll-reporter helpers/localization-helper data/player-config helpers/sharing-helper constants/player-constants helpers/interactive-triggers-helper helpers/screen-manager-helper helpers/age-gate-helper helpers/inview-helper data/video-shim-data-fetcher controls/context-menu constants/attributes constants/dom-selectors".split(" "),
    function(m,a,n,d,l,g,k,h,c,e,b,f,t,r,y,u,A,w,q,H,p,v,B,C,z,D,E,G,I,J,K,L){Object.defineProperty(a,"__esModule",{value:!0});a.CorePlayer=a.PlayerStates=void 0;a.PlayerStates={Init:"init",PlayerLoaded:"playerLoaded",Loading:"loading",Ready:"ready",Playing:"playing",Paused:"paused",Buffering:"buffering",Seeking:"seeking",Ended:"ended",Error:"error",Stopped:"stopped"};var x=[c.MediaQuality.HD,c.MediaQuality.HQ,c.MediaQuality.SD,c.MediaQuality.LO];m=function(){function m(b,e){var d=this;this.videoComponent=
    b;this.isFallbackVideo=this.canPlay=this.videoElementIsFocus=!1;this.playerData={};this.isInFullscreen=this.errorMessageDisplayed=this.wrapperLoadCalled=!1;this.isAudioTracksDoneSwitching=!0;this.playerOptions=this.videoMetadata=null;this.isWindowClosing=this.isBuffering=!1;this.showcontrolFirstTime=this.isFirstTimePlayed=!0;this.areControlsVisible=this.areControlsInitialized=this.areMediaEventsBound=this.commonPlayerImpressionReported=this.isVideoMuted=!1;this.nextCheckpoint=this.playerTechnology=
    this.volumeStart=this.seekFrom=null;this.stopwatchBuffering=new A.Stopwatch;this.stopwatchLoading=new A.Stopwatch;this.stopwatchPlaying=new A.Stopwatch;this.currentVideoStopwatchPlaying=new A.Stopwatch;this.firstByteTimer=null;this.lastVolume=v.PlayerConfig.defaultVolume;this.currentVideoFile=null;this.reporters=[];this.playOnDataLoad=!1;this.startTimeOnDataLoad=0;this.locReady=!1;this.playerId=null;this.hasInteractivity=this.hasHLS=this.useAdaptive=this.hasAdaptive=this.hasProgressive=this.playPauseTrigger=
    this.playTriggered=!1;this.isVideoPlayerSupported=!0;this.dataErrorShown=this.hasDataError=!1;this.playerEventCallbacks=[];this.timeRemainingCheckpointReached=this.wasUserIntiatedPause=this.wasUserInteracted=this.showEndImage=this.isContentStartReported=!1;this.inviewManager=null;this.setAutoPlayNeeded=this.showingPosterImage=this.registedInviewManagerAlready=!1;this.playerContainerEventHandler=function(b){switch(b.type){case "contextmenu":if(b.preventDefault(),!window.storeApi)switch(d.playerState){case a.PlayerStates.Ready:case a.PlayerStates.Playing:case a.PlayerStates.Paused:case a.PlayerStates.Ended:case a.PlayerStates.Stopped:d.setupCustomizeContextMenu(),
    d.contextMenu.showMenu(b,d.playerContainer)}}};this.documentEventHandler=function(a){a=k.getEvent(a);switch(a.type){case "click":d.customizedContextMenu&&d.customizedContextMenu.setAttribute("aria-hidden","true")}};this.videoControlsContainerEventHandler=function(a){a=k.getEvent(a);switch(a.type){case "contextmenu":d.customizedContextMenu.setAttribute("aria-hidden","true"),a.preventDefault(),a.stopPropagation()}};this.playPauseButtonEventHandler=function(a){a=k.getEvent(a);switch(a.type){case "mouseover":case "focus":d.showElement(d.playPauseTooltip);
    u.Environment.isChrome&&(d.isPaused()?d.setAriaLabelForButton(d.playPauseButton):d.playPauseButton.setAttribute("aria-label",d.locPause.toLowerCase()));break;case "mouseout":case "blur":d.hideElement(d.playPauseTooltip)}};this.triggerPlayEventHandler=function(a){a=k.getEvent(a);switch(a.type){case "mouseover":case "focus":d.showElement(d.triggerTooltip);break;case "mouseout":case "blur":d.hideElement(d.triggerTooltip)}};this.triggerContainerEventHandler=function(a){a=k.getEvent(a);var b=function(b){d.onVideoPlayerClicked(a);
    b&&d.videoControls&&d.videoControls.setFocusOnControlBar();d.playerOptions&&d.playerOptions.playFullScreen&&d.enterFullScreen();d.playerOptions&&d.playerOptions.showEndImage&&d.hideImage();d.updateScreenReaderElement(d.locPlaying,!0);a.preventDefault&&a.preventDefault();k.removeEvents(d.triggerContainer,"click keyup",d.triggerContainerEventHandler,!0)};switch(a.type){case "click":b(!1);break;case "keyup":32===g.getKeyCode(k.getEvent(a))&&b(!1)}};this.triggerPlayPauseContainerEventHandler=function(a){a=
    k.getEvent(a);var b=function(){d.isPlayable()&&(d.setUserInteracted(!0),d.isPaused()?(d.play(),d.setUserIntiatedPause(!1),d.playPauseButton&&(k.removeClass(d.playPauseButton,"glyph-play"),k.addClass(d.playPauseButton,"glyph-pause"),u.Environment.isChrome?d.playPauseButton.setAttribute("aria-label",d.locPlaying):d.playPauseButton.setAttribute("aria-label",d.locPause),k.setText(d.playPauseTooltip,d.locPause),d.updateScreenReaderElement(d.locPlaying))):(d.pause(!0),d.setUserIntiatedPause(!0),d.playPauseButton&&
    (k.removeClass(d.playPauseButton,"glyph-pause"),k.addClass(d.playPauseButton,"glyph-play"),u.Environment.isChrome?d.playPauseButton.setAttribute("aria-label",d.locPaused):d.setAriaLabelForButton(d.playPauseButton),k.setText(d.playPauseTooltip,d.locPlay),d.updateScreenReaderElement(d.locPaused))))};switch(a.type){case "click":b();break;case "keydown":32===g.getKeyCode(k.getEvent(a))&&b()}};this.onResourcesLoaded=function(){w.PlayerUtility.createVideoPerfMarker(d.playerId,C.videoPerfMarkers.locReady);
    d.videoMetadata&&!0===d.videoMetadata.geoFenced?(d.playerState=a.PlayerStates.Error,d.hideSpinner(),!0===d.playerOptions.showImageForVideoError&&d.videoMetadata&&d.videoMetadata.posterframeUrl?(d.hideTrigger(),d.disablePlayPauseTrigger(),d.displayImage(d.videoMetadata.posterframeUrl)):d.displayErrorMessage({title:d.localizationHelper.getLocalizedValue(p.playerLocKeys.geolocation_error)})):(d.locPlay=d.localizationHelper.getLocalizedValue(p.playerLocKeys.play),d.locPlayVideo=d.localizationHelper.getLocalizedValue(p.playerLocKeys.play_video),
    d.locPause=d.localizationHelper.getLocalizedValue(p.playerLocKeys.pause),d.locMute=d.localizationHelper.getLocalizedValue(p.playerLocKeys.mute),d.locUnmute=d.localizationHelper.getLocalizedValue(p.playerLocKeys.unmute),d.locPlaying=d.localizationHelper.getLocalizedValue(p.playerLocKeys.playing),d.locPaused=d.localizationHelper.getLocalizedValue(p.playerLocKeys.paused),d.setSpinnerProperties(),d.setTriggerProperties(),d.locReady=!0,d.initializeAgeGating(),d.ageGateHelper.verifyAgeGate()&&(d.hideTrigger(),
    d.hideSpinner()),d.hasDataError&&!d.dataErrorShown&&(d.showDataError(),d.hasDataError=!1))};this.onMediaEvent=function(a){if(a){k.customEvent(d.videoComponent,a.type,{bubbles:a.bubbles,cancelable:a.cancelable});if(d.playerEventCallbacks&&d.playerEventCallbacks.length)for(var b=0,c=d.playerEventCallbacks;b<c.length;b++){var e=c[b];e&&e({name:a.type})}switch(a.type.toLowerCase()){case "canplay":case "canplaythrough":d.onVideoCanPlay(a);break;case "error":d.onVideoError(a);break;case "play":d.onVideoPlay(a);
    break;case "pause":d.onVideoPause(a);break;case "seeking":d.onVideoSeeking(a);break;case "seeked":d.onVideoSeeked(a);break;case "waiting":d.onVideoWaiting(a);break;case "loadedmetadata":d.onVideoMetadataLoaded();break;case "loadeddata":d.onVideoLoadedData();break;case "timeupdate":d.onVideoTimeUpdate();break;case "ended":d.onVideoEnded();break;case "playing":d.onVideoPlaying();break;case "volumechange":d.onVideoVolumeChange(a)}}};this.onVideoPlaying=function(){d.updateState(a.PlayerStates.Playing);
    d.checkReplacedVideoTag();d.videoControls&&d.videoWrapper&&(d.videoControls.setLive(d.isLive()),d.videoControls.setPlayPosition(d.videoWrapper.getPlayPosition()),d.videoControls.resetSlidersWorkaround());d.setNextCheckpoint();d.reportContentStart();u.Environment.isAndroid&&(d.logMessage("re-invoking play for Android only"),d.videoWrapper.play());d.playerOptions&&d.playerOptions.inviewPlay&&!d.registedInviewManagerAlready&&(d.inviewManager||(d.inviewManager=G.InviewManager.Instance()),d.inviewManager&&
    (d.inviewManager.registerPlayer(d),d.registedInviewManagerAlready=!0))};this.onVideoWrapperLoaded=function(){d.checkReplacedVideoTag();w.PlayerUtility.createVideoPerfMarker(d.playerId,C.videoPerfMarkers.wrapperReady);d.loadVideo();d.showingPosterImage?(d.posterImageUrl?d.videoWrapper.setPosterFrame(d.posterImageUrl):d.videoMetadata&&d.videoMetadata.posterframeUrl?d.videoWrapper.setPosterFrame(d.videoMetadata.posterframeUrl):console.log("no poster image passed in parameter or video metadata"),d.showingPosterImage=
    !1):d.playerOptions.autoplay&&d.displayPreRollAndPlayContent()};this.onBeforeUnload=function(){d.isWindowClosing=!0};this.onWindowResize=function(){d.closedCaptions&&(d.closedCaptions.resetCaptions(),d.closedCaptions.updateCaptions(d.getPlayPosition().currentTime))};this.onVideoWrapperLoadFailed=function(){d.playerOptions&&!0===d.playerOptions.showImageForVideoError&&d.videoMetadata&&d.videoMetadata.posterframeUrl?(d.hideTrigger(),d.disablePlayPauseTrigger(),d.displayImage(d.videoMetadata.posterframeUrl)):
    d.displayErrorMessage({title:d.localizationHelper.getLocalizedValue(p.playerLocKeys.standarderror)})};this.onMouseEvent=function(a){a=k.getEvent(a);if("mousemove"===a.type)d.showcontrolFirstTime=!1,!d.playPauseTrigger&&d.videoControls&&d.showControlsBasedOnState(),d.playPauseTrigger&&d.showPlayPauseTrigger(!0);else if("mouseout"===a.type){d.showcontrolFirstTime=!1;d.playPauseTrigger&&d.showPlayPauseTrigger(!1);for(var b=a.toElement||a.relatedTarget;b&&b.parentNode&&b.parentNode!==window;){if(b.parentNode===
    d||b===d){k.preventDefault(a);break}b=b.parentNode}}};this.onKeyboardEvent=function(a){switch(g.getKeyCode(a)){case 9:d.showControlsBasedOnState()}};this.onVideoMetadataLoaded=function(){d.setupPlayerMenus()};this.onVideoLoadedData=function(){d.updateState(a.PlayerStates.Ready);var b=d.getPlayPosition();d.videoControls&&(d.videoControls.setLive(d.isLive()),d.videoControls.setPlayPosition(b));d.startTimeOnDataLoad&&d.startTimeOnDataLoad>b.startTime&&d.startTimeOnDataLoad<b.endTime&&(d.seek(d.startTimeOnDataLoad),
    d.startTimeOnDataLoad=null);d.playOnDataLoad&&(d.play(),d.playOnDataLoad=!1)};this.onVideoTimeUpdate=function(){if(d.videoWrapper){var b=d.getPlayPosition();d.videoControls&&d.videoControls.setPlayPosition(b);if(b.startTime!==b.endTime&&(d.closedCaptions&&d.closedCaptions.updateCaptions(b.currentTime),d.interactiveTriggersHelper&&d.interactiveTriggersHelper.updateCurrentOverlay(b.currentTime),!d.isPaused())){d.playerState===a.PlayerStates.Buffering&&d.updateState(a.PlayerStates.Playing);var c=b.endTime-
    b.startTime;d.checkTimeRemainingCheckpoint(c-b.currentTime);b=d.nextCheckpoint&&0<c&&Math.round(100*b.currentTime)/100>=Math.round(c*d.nextCheckpoint*100/100)/100;c=d.stopwatchPlaying.hasReached(v.PlayerConfig.eventCheckpointInterval);b?(d.reportEvent(q.PlayerEvents.ContentCheckpoint,{checkpoint:d.nextCheckpoint,checkpointType:"quartile"}),d.setNextCheckpoint(),d.stopwatchBuffering.reset()):c&&d.reportEvent(q.PlayerEvents.ContentCheckpoint,{checkpointType:"interval"})}}};this.onVideoCanPlay=function(a){d.canPlay=
    !0;d.videoControls&&d.videoControls.updatePlayPauseState()};this.onVideoError=function(b){if(!d.isWindowClosing&&d.playerState!==a.PlayerStates.Init&&d.playerState!==a.PlayerStates.Error)if((b=d.videoWrapper.getError())&&b.errorCode){if(b.errorCode===c.VideoErrorCodes.MediaErrorSourceNotSupported){var e=d.getFallbackVideoFile();if(d.currentVideoFile&&d.currentVideoFile.mediaType!==c.MediaTypes.MP4&&e&&e.mediaType===c.MediaTypes.MP4){d.reportEvent(q.PlayerEvents.PlayerError,{errorType:q.PlayerEvents.SourceErrorAttemptRecovery,
    errorDesc:"Playback using media type "+d.currentVideoFile.mediaType+" failed. Attempting to fallback to MP4 source."});d.setVideoSrc(e);d.playerOptions.autoplay&&(d.playOnDataLoad=!0,d.play());d.isFallbackVideo=!0;return}}if(d.playerOptions&&d.playerOptions.showImageForVideoError&&d.videoMetadata&&d.videoMetadata.posterframeUrl)d.hideControlPanel(),d.videoControls=null,d.stopMedia(),d.hideTrigger(),d.disablePlayPauseTrigger(),d.displayImage(d.videoMetadata.posterframeUrl);else{d.updateState(a.PlayerStates.Error);
    switch(b.errorCode){case c.VideoErrorCodes.MediaErrorAborted:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_aborted);break;case c.VideoErrorCodes.MediaErrorNetwork:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_network);break;case c.VideoErrorCodes.MediaErrorDecode:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_decode);break;case c.VideoErrorCodes.MediaErrorSourceNotSupported:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_src_not_supported);
    break;case c.VideoErrorCodes.AmpEncryptError:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_amp_encrypt);break;case c.VideoErrorCodes.AmpPlayerMismatch:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_amp_player_mismatch);break;default:e=d.localizationHelper.getLocalizedValue(p.playerLocKeys.media_err_unknown_error)}e=h.format(d.localizationHelper.getLocalizedValue(p.playerLocKeys.playbackerror),e);b=w.PlayerUtility.formatContentErrorMessage(b.errorCode,e,b.message);
    d.stopMedia(e,b)}}else d.stopMedia()};this.onErrorCallback=function(a,b){d.reportEvent(q.PlayerEvents.PlayerError,{errorType:a,errorDesc:b})};this.onVideoPlay=function(b){d.hideTrigger();d.playTriggered?d.reportEvent(q.PlayerEvents.Resume):(d.playTriggered=!0,w.PlayerUtility.createVideoPerfMarker(d.playerId,C.videoPerfMarkers.playTriggered));d.firstByteTimer&&window.clearTimeout(d.firstByteTimer);b=u.Environment.isMobile?v.PlayerConfig.firstByteTimeoutVideoMobile:v.PlayerConfig.firstByteTimeoutVideoDesktop;
    0<b&&(d.firstByteTimer=setTimeout(function(){d.getBufferedDuration()||d.playerState!==a.PlayerStates.Buffering||(d.logMessage("Buffering stuck detected"),d.updateState(a.PlayerStates.Error),d.playerOptions&&d.playerOptions.showImageForVideoError&&d.videoMetadata&&d.videoMetadata.posterframeUrl?(d.hideControlPanel(),d.videoControls=null,d.stopMedia(),d.hideTrigger(),d.disablePlayPauseTrigger(),d.displayImage(d.videoMetadata.posterframeUrl)):d.stopMedia(d.localizationHelper.getLocalizedValue(p.playerLocKeys.standarderror),
    w.PlayerUtility.formatContentErrorMessage(c.VideoErrorCodes.BufferingFirstByteTimeout,"Time out waiting for first byte.")))},b))};this.onVideoPause=function(b){d.videoWrapper&&d.videoWrapper.isSeeking()||d.playerState===a.PlayerStates.Ended||d.updateState(a.PlayerStates.Paused)};this.onVideoSeeking=function(b){d.playerState!==a.PlayerStates.Ended&&d.videoWrapper&&d.videoWrapper.isSeeking()?(d.nextCheckpoint=null,null===d.seekFrom&&(d.seekFrom=d.getPlayPosition().currentTime),d.updateState(a.PlayerStates.Seeking)):
    d.seekFrom=null};this.onVideoSeeked=function(b){b=d.getPlayPosition().currentTime;d.playerState!==a.PlayerStates.Ended&&d.videoWrapper&&!d.videoWrapper.isSeeking()&&null!==d.seekFrom&&d.seekFrom!==b&&(d.setNextCheckpoint(),d.reportEvent(q.PlayerEvents.Seek,{seekFrom:d.seekFrom,seekTo:b}),d.seekFrom=null,d.updateState(d.isPaused()?a.PlayerStates.Paused:a.PlayerStates.Playing))};this.onVideoWaiting=function(b){d.updateState(a.PlayerStates.Buffering)};this.onVideoVolumeChange=function(a){a&&a.target&&
    (d.videoWrapper.isMuted()?d.isVideoMuted=!0:d.isVideoMuted&&(d.isVideoMuted=!1,u.Environment.isMobile&&d.videoWrapper.unmute()));d.videoControls&&d.videoControls.updateVolumeState()};this.onCcPresetFocus=function(a){if(d.videoControls&&d.closedCaptions&&d.closedCaptionsSettings){d.closedCaptions.getCurrentCcLanguage()||d.closedCaptions.showSampleCaptions();a=k.getEventTargetOrSrcElement(a).getAttribute("data-info");if("reset"===a)d.closedCaptionsSettings.reset();else{a=a.split(":");if(!a&&0>a.length)return;
    d.closedCaptionsSettings.setSetting(a[0],a[1],!1)}d.closedCaptions.resetCaptions();d.closedCaptions.updateCaptions(d.getPlayPosition().currentTime)}};this.onCcPresetBlur=function(a){if(d.videoControls&&d.closedCaptions&&d.closedCaptionsSettings){d.closedCaptions.getCurrentCcLanguage()||d.closedCaptions.setCcLanguage("off",null);a=k.selectFirstElement("#"+d.ccSettingsMenuId,d.videoControlsContainer);a=k.selectFirstElement(".glyph-check-mark",a);if(null!=a)if(a=a.getAttribute("data-info"),"reset"===
    a)d.closedCaptionsSettings.reset();else{a=a.split(":");if(!a&&0>a.length)return;d.closedCaptionsSettings.setSetting(a[0],a[1])}else d.closedCaptionsSettings.reset(!1);d.closedCaptions.resetCaptions();d.closedCaptions.updateCaptions(d.getPlayPosition().currentTime)}};this.onVideoPlayerClicked=function(a){d.playerOptions.useAMPVersion2&&d.isFallbackVideo||(d.playerOptions&&d.playerOptions.lazyLoad&&!d.wrapperLoadCalled?(d.playOnDataLoad=!1,d.playerOptions.adsEnabled?(d.playerOptions.adsEnabled=!1,d.playerOptions.autoplay=
    !1):d.playerOptions.autoplay=!0,d.hasInteractivity?d.loadVideoWrapper(!1):d.loadVideoWrapper(d.playerOptions.autoplay),d.isFirstTimePlayed&&d.displayPreRollAndPlayContent()):d.isFirstTimePlayed?d.displayPreRollAndPlayContent():d.isPaused()?(d.play(),d.setUserInteracted(!0),d.setUserIntiatedPause(!1)):(d.pause(!0),d.setUserInteracted(!0),d.setUserIntiatedPause(!0)),d.hideTrigger(),d.showSpinnerBasedOnState(),d.videoControls&&d.isInFullscreen&&d.videoControls.setFocusOnControlBar())};this.onVideoEnded=
    function(){d.updateState(a.PlayerStates.Ended);d.reportEvent(q.PlayerEvents.ContentComplete);u.Environment.useNativeControls||d.stop()};this.onFullscreenChanged=function(){var a=m.getElementInFullScreen(),b=d.getFullscreenContainer();if(a){if(b===a&&!d.isInFullscreen)d.onFullscreenEnter()}else if(d.isInFullscreen)d.onFullscreenExit()};this.onIOSFullscreenEnter=function(){d.play();d.onFullscreenEnter()};this.onIOSFullscreenExit=function(){d.onFullscreenExit()};this.onFullscreenError=function(){d.isInFullscreen=
    !1};this.onSetAudioCallback=function(a){d.isAudioTracksDoneSwitching=!0};b&&(this.isVideoPlayerSupported=u.Environment.isVideoPlayerSupported(),this.createComponents(e),this.load(e))}m.prototype.createComponents=function(a){this.playPauseTrigger=a&&a.options&&a.options.playPauseTrigger;this.showEndImage=a&&a.options&&a.options.showEndImage;this.playerContainer=k.selectFirstElement(m.playerContainerSelector,this.videoComponent);var b=a&&a.options&&a.options.maskLevel?a.options.maskLevel:"40",c=a&&
    a.options&&a.options.theme?a.options.theme:"light",d=a&&a.options&&a.options.playButtonTheme?a.options.playButtonTheme:"dark",e=a&&a.options&&a.options.playButtonSize?a.options.playButtonSize:"medium",f=a&&a.options&&a.options.trigger;this.setAutoPlayNeeded=a&&a.options&&a.options.autoplay&&(u.Environment.isChrome||u.Environment.isMobile);var g=a&&a.options&&a.options.controls&&this.isVideoPlayerSupported&&!this.playPauseTrigger&&!u.Environment.useNativeControls;this.playerContainer||(this.videoComponent.innerHTML=
    '\x3cdiv class\x3d"f-core-player" tabindex\x3d"-1"\x3e\n    '+(this.setAutoPlayNeeded?'\x3cvideo class\x3d"f-video-player" preload\x3d"metadata" autoplay playsinline tabindex\x3d"-1"\x3e\x3c/video\x3e':'\x3cvideo class\x3d"f-video-player" preload\x3d"metadata" tabindex\x3d"-1"\x3e\x3c/video\x3e')+"\n    "+(f?'\x3cdiv class\x3d"f-video-trigger" aria-hidden\x3d"true" \x3e\n                        \x3cdiv class\x3d"f-mask-'+b+" theme-"+c+'" \x3e\n                            \x3cbutton class\x3d"c-action-trigger f-play-trigger c-glyph glyph-play ow-play-theme-'+
    d+" ow-"+e+'" aria-label\x3d"Play" role\x3d"button"\x3e\n                            \x3c/button\x3e\n                            \x3cspan aria-hidden\x3d"true" role\x3d"presentation"\x3ePlay\x3c/span\x3e\n                        \x3c/div\x3e\n                    \x3c/div\x3e':"")+'    \n    \x3cdiv class\x3d"f-customize-context-menu-container"\x3e\x3c/div\x3e \n    \x3cdiv class\x3d"f-video-cc-overlay" aria-hidden\x3d"true"\x3e\x3c/div\x3e\n    \x3cdiv class\x3d"f-screen-reader" aria-live\x3d"polite"\x3e\x3c/div\x3e\n    '+
    (g?'\x3cdiv class\x3d"f-video-controls" dir\x3d"ltr" aria-hidden\x3d"true" role\x3d"none"\x3e\x3c/div\x3e':"")+'\n    \x3cdiv aria-hidden\x3d"true" class\x3d"c-progress f-indeterminate-local f-progress-large" role\x3d"progressbar" tabindex\x3d"0"\x3e\n        \x3cspan\x3e\x3c/span\x3e\n        \x3cspan\x3e\x3c/span\x3e\n        \x3cspan\x3e\x3c/span\x3e\n        \x3cspan\x3e\x3c/span\x3e\n        \x3cspan\x3e\x3c/span\x3e\n    \x3c/div\x3e\n    '+(this.playPauseTrigger?'\x3cdiv role\x3d"presentation" class\x3d"f-play-pause-trigger"\x3e\n            \x3cbutton type\x3d"button" class\x3d"f-play-pause c-action-trigger c-glyph glyph-pause f-play-pause-hide ow-'+
    e+'" aria-label\x3d"pause"\x3e\n            \x3c/button\x3e\n            \x3cspan aria-hidden\x3d"true" role\x3d"presentation"\x3ePause\x3c/span\x3e\n         \x3c/div\x3e':"")+"\n\x3c/div\x3e",this.playerContainer=k.selectFirstElement(m.playerContainerSelector,this.videoComponent));this.checkReplacedVideoTag();this.spinner=k.selectFirstElement(".c-progress",this.playerContainer);this.triggerContainer=k.selectFirstElement(".f-video-trigger",this.videoComponent);this.triggerPlayPauseContainer=k.selectFirstElement(".f-play-pause-trigger",
    this.videoComponent);this.screenReaderElement=k.selectFirstElement(".f-screen-reader",this.videoComponent);this.customizedContextMenuContainer=k.selectFirstElement(".f-customize-context-menu-container",this.videoComponent);k.addEvents(this.playerContainer,"contextmenu",this.playerContainerEventHandler,!0);k.addEvents(document,"click",this.documentEventHandler,!0);this.triggerContainer&&(c=k.selectFirstElement("div",this.triggerContainer),b=h.format("background-color: rgba(0,0,0,{0})",Number(b)/100),
    c.setAttribute("style",b),this.trigger=k.selectFirstElement(".c-action-trigger",this.triggerContainer),this.triggerTooltip=k.selectFirstElement("span",this.triggerContainer),k.addEvents(this.trigger,"mouseover mouseout focus blur",this.triggerPlayEventHandler,!0),a&&a.options&&!a.options.autoplay&&(this.showTrigger(),this.hideControlPanel(),this.hideSpinner()));this.triggerPlayPauseContainer&&a&&a.options&&(this.playPauseButton=k.selectFirstElementT(".f-play-pause",this.triggerPlayPauseContainer),
    this.playPauseButton.setAttribute("aria-label","pause"),this.playPauseTooltip=k.selectFirstElement("span",this.triggerPlayPauseContainer),k.addEvents(this.playPauseButton,"mouseover mouseout focus blur",this.playPauseButtonEventHandler,!0),k.addEvents(this.triggerPlayPauseContainer,"click keydow",this.triggerPlayPauseContainerEventHandler,!0));u.Environment.isInIframe&&(a=document.getElementsByTagName("body"))&&a[0].setAttribute("tabindex","-1")};m.prototype.initializeLocalization=function(){w.PlayerUtility.createVideoPerfMarker(this.playerId,
    C.videoPerfMarkers.locLoadStart);if(this.localizationHelper)this.onResourcesLoaded();else this.playerOptions.market||(this.playerOptions.market=this.videoComponent.getAttribute("data-market")),this.localizationHelper=new p.LocalizationHelper(this.playerOptions.market,this.playerOptions.resourceHost,this.playerOptions.resourceHash,this.onErrorCallback),this.localizationHelper.loadResources(this.onResourcesLoaded)};m.prototype.initializeAgeGating=function(){var a=this;this.ageGateHelper=new E.AgeGateHelper(this.playerContainer,
    this,this.localizationHelper,function(){a.finishPlayerLoad()})};m.prototype.initializeReporting=function(a){if(a&&a.options&&a.options.reporting&&a.options.reporting.enabled&&1>this.reporters.length&&(a.options.reporting.jsll&&this.reporters.push(new H.JsllReporter(this.videoComponent,a.options.jsllPostMessage)),a&&a.options&&a.options.inviewThreshold&&(this.inviewManager||(this.inviewManager=G.InviewManager.Instance()),this.inviewManager))){var b=this;this.inviewManager.listenForInviewThresholdChanges(this.playerContainer,
    a.options.inviewThreshold,function(a){b.reportEvent(a)})}};m.prototype.getPlayerId=function(){return this.playerId||this.videoComponent.id};m.prototype.getPlayerData=function(){return this.playerData};m.prototype.getPlayerContainer=function(){return this.playerContainer};m.prototype.hasUserInteracted=function(){return this.wasUserInteracted};m.prototype.setUserInteracted=function(a){this.wasUserInteracted=a};m.prototype.hasUserIntiatedPause=function(){return this.wasUserIntiatedPause};m.prototype.setAutoPlay=
    function(){this.videoWrapper&&this.wrapperLoadCalled&&this.videoWrapper.setAutoPlay()};m.prototype.setUserIntiatedPause=function(a){this.wasUserIntiatedPause=a};m.prototype.getCurrentPlayState=function(){return this.playerState};m.prototype.load=function(b){if(b){this.playerData=b;this.currentVideoFile=null;this.playerId=this.videoComponent.getAttribute("id");this.updateState(a.PlayerStates.Init);this.hideErrorMessage();this.videoMetadata=b.metadata;this.playerOptions=b.options||new e.PlayerOptions;
    this.screenManagerHelper=new D.ScreenManagerHelper;this.startTimeOnDataLoad=this.playerOptions.startTime;if(this.playerOptions.autoplay||this.playerOptions.lazyLoad&&!this.playerOptions.trigger)this.playerOptions.lazyLoad=!1;try{this.initializeLocalization(),this.initializeReporting(b)}catch(F){this.reportEvent(q.PlayerEvents.PlayerError,{errorType:"initializeError",errorDesc:"InitializeError with loc, reporting, age-gating : "+F.message})}this.videoMetadata&&this.videoMetadata.videoFiles&&this.videoMetadata.videoFiles.length||
    (this.hasDataError=!0,this.locReady&&this.showDataError())}};m.prototype.finishPlayerLoad=function(){var b=this.ageGateHelper.doesUserPassAgeGate(),c=!1;this.ageGateHelper.didUserSubmitAge()&&(this.reportEvent(q.PlayerEvents.AgeGateSubmitClick,{ageGatePassed:b}),this.ageGateHelper.resetAgeGateSubmit(),c=!0);if(b){try{this.triggerPlayPauseContainer&&!this.playerData.options.autoplay&&this.playPauseButton&&(k.removeClass(this.playPauseButton,"glyph-pause"),k.addClass(this.playPauseButton,"glyph-play"),
    this.setAriaLabelForButton(this.playPauseButton),k.setText(this.playPauseTooltip,this.locPlay));this.contextMenu=new J.ContextMenu(this.customizedContextMenuContainer,this);this.initializeVideoControls();if(!this.isVideoPlayerSupported){this.displayErrorWithDownloadLink();return}this.analyzeVideoFiles();this.initializeClosedCaptions();this.hasInteractivity=!u.Environment.isMobile&&this.playerOptions.interactivity&&this.videoMetadata.interactiveTriggersEnabled&&!!this.videoMetadata.interactiveTriggersUrl;
    this.interactiveTriggersHelper||this.initializeInteractiveTriggers()}catch(M){this.reportEvent(q.PlayerEvents.PlayerError,{errorType:"initializeError",errorDesc:"InitializeError with video files, CC, interactiveTrigger: "+M.message})}this.videoTag?(this.videoTag.title=this.videoMetadata.title,this.videoTag.loop=this.playerOptions.loop,this.videoMetadata.posterframeUrl&&!this.playerOptions.hidePosterFrame&&(this.videoTag.poster=this.videoMetadata.posterframeUrl)):this.reportEvent(q.PlayerEvents.PlayerError,
    {errorType:"videoTagNotAvailable",errorDesc:"VideoTag not available"});this.videoWrapper=this.getVideoWrapper();this.playerTechnology="OnePlayer_"+this.videoWrapper.getWrapperName();this.commonPlayerImpressionReported||(this.reportEvent(q.PlayerEvents.CommonPlayerImpression),this.commonPlayerImpressionReported=!0);this.playerOptions.lazyLoad||(c?this.hasInteractivity?this.loadVideoWrapper(!1):this.loadVideoWrapper(!0):this.hasInteractivity?this.loadVideoWrapper(!1):this.loadVideoWrapper(this.playerOptions.autoplay));
    this.reportEvent(q.PlayerEvents.Ready);this.updateState(a.PlayerStates.PlayerLoaded);this.canPlay=!0}else this.displayErrorMessage({title:this.localizationHelper.getLocalizedValue(p.playerLocKeys.agegate_fail)})};m.prototype.setAriaLabelForButton=function(a,b){""!==this.videoMetadata.title?a.setAttribute("aria-label",this.locPlay.toLowerCase()+" "+this.videoMetadata.title):b?a.setAttribute("aria-label",b.toLowerCase()):a.setAttribute("aria-label",this.locPlayVideo.toLowerCase())};m.prototype.updatePlayerSource=
    function(a){var b=this;a&&(this.playerData.options=new e.PlayerOptions(a.options),this.playerData.metadata=a.metadata,this.isFirstTimePlayed=!0,this.wrapperLoadCalled=this.isContentStartReported=!1,!this.playerData.metadata||!this.playerData.metadata.videoId||this.playerData.metadata.videoFiles&&this.playerData.metadata.videoFiles.length||this.playerData.metadata.playerName?(this.pause(),this.load(this.playerData)):(new I.VideoShimDataFetcher(this.playerData.options.shimServiceEnv,this.playerData.options.shimServiceUrl)).getMetadata(this.playerData.metadata.videoId,
    function(a){b.pause();b.playerData.metadata=a;b.load(b.playerData)}))};m.prototype.displayErrorWithDownloadLink=function(){var a=this.getVideoFileforDownload();this.playerOptions.download&&a?(a='\x3ca href\x3d"'+a.url+'"\x3e\x3cspan style\x3d"text-decoration:underline"\x3e'+this.localizationHelper.getLocalizedValue(p.playerLocKeys.download_video)+"\x3c/span\x3e\x3c/a\x3e",a=this.localizationHelper.getLocalizedValue(p.playerLocKeys.browserunsupported)+" "+this.localizationHelper.getLocalizedValue(p.playerLocKeys.browserunsupported_download)+
    " "+a+"."):a=this.localizationHelper.getLocalizedValue(p.playerLocKeys.browserunsupported);this.displayErrorMessage({message:a});this.reportEvent(q.PlayerEvents.ContentError,{errorType:"content:error",errorDesc:"error to play video",errorMessage:"error to play video, browser not supportted"})};m.prototype.showDataError=function(){this.playerOptions&&!0===this.playerOptions.showImageForVideoError&&this.videoMetadata&&this.videoMetadata.posterframeUrl?(this.hideTrigger(),this.disablePlayPauseTrigger(),
    this.displayImage(this.videoMetadata.posterframeUrl)):this.displayErrorMessage({title:this.localizationHelper.getLocalizedValue(p.playerLocKeys.data_error)});this.dataErrorShown=!0};m.prototype.checkTimeRemainingCheckpoint=function(a){if(this.playerData.options.timeRemainingCheckpoint){var b=this.playerData.options.timeRemainingCheckpoint;b>=a&&!this.timeRemainingCheckpointReached?(this.timeRemainingCheckpointReached=!0,this.reportEvent("TimeRemainingCheckpoint")):b<a&&(this.timeRemainingCheckpointReached=
    !1)}};m.prototype.analyzeVideoFiles=function(){this.hasAdaptive=this.hasProgressive=this.hasHLS=!1;for(var a=0,b=this.videoMetadata.videoFiles;a<b.length;a++)switch(b[a].mediaType){case c.MediaTypes.DASH:case c.MediaTypes.SMOOTH:this.hasAdaptive=!0;break;case c.MediaTypes.HLS:this.hasHLS=!0;break;default:this.hasProgressive=!0}this.useAdaptive=this.hasAdaptive&&(this.playerOptions&&this.playerOptions.useAdaptive||!this.hasProgressive)};m.prototype.loadVideoWrapper=function(a){this.videoWrapper&&(u.Environment.isMobile&&
    (a=!1),this.wrapperLoadCalled=!0,w.PlayerUtility.createVideoPerfMarker(this.playerId,C.videoPerfMarkers.wrapperLoadStart),this.videoWrapper.load(this.videoComponent,a,this.onVideoWrapperLoaded,this.onVideoWrapperLoadFailed,this.onSetAudioCallback))};m.prototype.initializeInteractiveTriggers=function(){var a=this;this.hasInteractivity&&(this.interactiveTriggersHelper=new z.VideoPlayerInteractiveTriggersHelper(this.playerContainer,this.videoMetadata.interactiveTriggersUrl,this,this.localizationHelper,
    function(b,c){a.reportInteractiveTelemetryEvent(b,c)}))};m.prototype.reportInteractiveTelemetryEvent=function(a,b){switch(a){case q.PlayerEvents.InteractiveOverlayClick:b&&b.overlay.overlayData.pauseVideoOnClick&&this.pause();b.overlay.overlayType===z.OverlayType.VideoBranch&&(b.overlay.overlayData.linkUrl=b.overlay.overlayData.videoId);this.reportEvent(q.PlayerEvents.InteractiveOverlayClick,{interactiveTriggerAndOverlay:b});b.overlay.overlayType===z.OverlayType.VideoBranch&&this.currentVideoStopwatchPlaying.reset();
    break;case q.PlayerEvents.InteractiveOverlayMaximize:this.reportEvent(q.PlayerEvents.InteractiveOverlayMaximize,{interactiveTriggerAndOverlay:b});break;case q.PlayerEvents.InteractiveOverlayMinimize:this.reportEvent(q.PlayerEvents.InteractiveOverlayMinimize,{interactiveTriggerAndOverlay:b});break;case q.PlayerEvents.InteractiveBackButtonClick:this.reportEvent(q.PlayerEvents.InteractiveBackButtonClick)}};m.prototype.initializeVideoControls=function(){var a=this;if(!u.Environment.useNativeControls){this.videoControlsContainer=
    k.selectFirstElement(n.VideoControls.selector,this.videoComponent);k.addEvents(this.videoControlsContainer,"contextmenu",this.videoControlsContainerEventHandler,!0);var b=!u.Environment.useNativeControls&&this.playerOptions&&this.playerOptions.controls&&!this.areControlsInitialized,c=b&&!this.playerOptions.trigger&&!this.isTriggerShown();this.controlsScreenManagerObject={HtmlObject:this.videoControlsContainer,Height:44,Id:null,IsVisible:!1,Priority:5,Transition:null};this.screenManagerHelper.registerElement(this.controlsScreenManagerObject);
    this.videoControlsContainer&&(b&&(this.areControlsInitialized=!0,this.videoControlsContainer.setAttribute("aria-hidden","false"),this.videoControls=new n.VideoControls(this.videoControlsContainer,this,this.localizationHelper,this.contextMenu),this.videoControls.addUserInteractionListener(function(){a.showControlsBasedOnState()})),c||(this.videoControlsTabbableElements=k.selectElementsT(L.DialogTabbableSelectors,this.videoControlsContainer),this.videoControlsContainer.setAttribute("aria-hidden","true"),
    this.addHiddenAttr(this.videoControlsTabbableElements)),!this.playerOptions.showControlOnLoad&&this.showcontrolFirstTime&&(this.videoControlsContainer.setAttribute("aria-hidden","true"),this.addHiddenAttr(this.videoControlsTabbableElements)))}};m.prototype.getQualityMenu=function(){if(!this.videoMetadata.videoFiles||!this.videoMetadata.videoFiles.length)return null;var a=[];if(this.hasAdaptive&&this.playerOptions&&this.playerOptions.useAdaptive){var b=this.videoWrapper.getVideoTracks();if(!a.length&&
    b&&1<b.length){var d=this.videoWrapper.getCurrentVideoTrack();a.push({id:this.addIdPrefix("auto"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.quality_auto),selected:d.auto,selectable:!0,persistOnClick:!0});for(var e=0;e<b.length;e++){var f=b[e];a.push({id:this.addIdPrefix("video-"+e),label:w.PlayerUtility.toFriendlyBitrateString(f.bitrate),selected:!d.auto&&d.trackIndex===e,selectable:!0,persistOnClick:!0})}}}else if(!a.length)for(b=this.currentVideoFile&&this.currentVideoFile.quality,
    d=0;d<x.length;d++)e=x[d],(f=this.getVideoFileByQuality(e))&&f.url&&(e={id:this.addIdPrefix(c.MediaQuality[e]),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys["quality_"+c.MediaQuality[e].toLowerCase()]),data:f.url,selected:f.quality===b,selectable:!0,persistOnClick:!0},a.push(e));return{category:"quality",id:this.addIdPrefix("quality"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.quality),items:a}};m.prototype.getAudioTracksMenu=function(){var a=this.videoWrapper.getAudioTracks();
    if(!a||1>=a.length)return null;for(var b=0,c=0;c<a.length;c++){var d=a[c];d.isDescriptiveAudio&&b++}c=[];for(var e=this.videoWrapper.getCurrentAudioTrack(),f=0;f<a.length;f++){d=a[f];var g=null;if(d.isDescriptiveAudio){var h=this.localizationHelper.getLocalizedValue(p.playerLocKeys.descriptive_audio);1<b&&(d=this.localizationHelper.getLanguageNameFromLocale(d.languageCode),h=h+" - "+d)}else h=this.localizationHelper.getLanguageNameFromLocale(d.languageCode),g=this.localizationHelper.getLanguageCodeFromLocale(d.languageCode.toLowerCase());
    d={label:h,language:g,id:this.addIdPrefix("audio-"+f),selected:f===e,selectable:!0,persistOnClick:!0};c.push(d)}return{category:"audio-tracks",id:this.addIdPrefix("audio-tracks"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.audio_tracks),items:c}};m.prototype.getClosedCaptionsSettingsMenu=function(){if(this.closedCaptionsSettings){var a=this.closedCaptionsSettings.getCurrentSettings(),b=[];for(f in l.closedCaptionsSettingsMap)if(l.closedCaptionsSettingsMap.hasOwnProperty(f)){var c=
    l.closedCaptionsSettingsOptions[l.closedCaptionsSettingsMap[f].option],d=[],e;for(e in c.map)c.map.hasOwnProperty(e)&&d.push({id:this.getCCMenuItemId(f,e),label:this.localizationHelper.getLocalizedValue(c.pre+e),selectable:!0,selected:a[f]===e,persistOnClick:!0,data:f+":"+e});b.push({id:this.addIdPrefix(f+"_item"),label:this.localizationHelper.getLocalizedValue("cc_"+f),selectable:!1,subMenu:{id:this.getCCSettingsMenuId(f),category:"cc-settings",items:d,label:this.localizationHelper.getLocalizedValue("cc_"+
    f)}})}b={id:this.addIdPrefix("cc-settings"),category:"cc-settings",label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_customize),items:b};var f=[];for(var g in l.closedCaptionsPresetMap)l.closedCaptionsPresetMap.hasOwnProperty(g)&&(d=l.closedCaptionsPresetMap[g],c=d.text_font,d=d.text_color,c=h.format(this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_presettings),"",this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_text_font),this.localizationHelper.getLocalizedValue("cc_font_name_"+
    c),this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_text_color),this.localizationHelper.getLocalizedValue("cc_color_"+d)),f.push({id:this.getCCMenuItemId(l.VideoClosedCaptionsSettings.presetKey,g),label:this.localizationHelper.getLocalizedValue("cc_"+g),data:"preset:"+g,selectable:!0,selected:a[l.VideoClosedCaptionsSettings.presetKey]===g,persistOnClick:!0,ariaLabel:c}));f.length&&(f.push({id:this.addIdPrefix("cc-customize"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_customize),
    subMenu:b}),f.push({id:this.addIdPrefix("cc-reset"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_reset),data:"reset",persistOnClick:!0}));a={id:this.getCCSettingsMenuId(l.VideoClosedCaptionsSettings.presetKey),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_appearance),category:"cc-settings",items:f};this.ccSettingsMenuId=a.id;return a}};m.prototype.getCCSettingsMenuId=function(a){return this.addIdPrefix("cc-"+a)};m.prototype.getCCMenuItemId=function(a,b){return this.addIdPrefix("cc-"+
    a+"-"+b)};m.prototype.getClosedCaptionMenu=function(){if(!(this.videoMetadata&&this.videoMetadata.ccFiles&&this.videoMetadata.ccFiles.length&&this.ccOverlay&&this.closedCaptions))return null;for(var a=g.getValueFromSessionStorage(m.ccLangPrefKey),b=this.playerOptions&&this.playerOptions.autoCaptions,d=null,e=[],f=!1,h=0,k=this.videoMetadata.ccFiles;h<k.length;h++){var l=k[h];if(!l.ccType||l.ccType===c.ClosedCaptionTypes.TTML){f||(f=l.locale===a);!d&&-1<l.locale.indexOf(b)&&(d=l.locale);var n=this.localizationHelper.getLanguageCodeFromLocale(l.locale.toLowerCase());
    l={id:this.addIdPrefix(l.locale),label:p.ccCultureLocStrings[l.locale],language:n,data:l.url,selected:!1,selectable:!0,persistOnClick:!0,ariaLabel:p.ccCultureLocStrings[l.locale]+" "+this.localizationHelper.getLocalizedValue(p.playerLocKeys.closecaption)};e.push(l)}}e.push({id:this.addIdPrefix("appearance"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.cc_appearance),selected:!1,selectable:!1,subMenu:this.getClosedCaptionsSettingsMenu()});if(a=f?a:d){b=this.addIdPrefix(a);for(d=
    0;d<e.length;d++)f=e[d],f.id===b&&(f.selected=!0);this.setCC(b)}e.unshift({id:this.addIdPrefix("off"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.closecaption_off),selected:!a,selectable:!0,persistOnClick:!0,ariaLabel:this.localizationHelper.getLocalizedValue(p.playerLocKeys.closecaption_off)+" "+this.localizationHelper.getLocalizedValue(p.playerLocKeys.closecaption)});return{category:"close-caption",id:this.addIdPrefix("close-caption"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.closecaption),
    items:e,hideBackButton:!0,glyph:"glyph-subtitles",cssClass:"closed-caption",priority:3}};m.prototype.getPlaybackRateMenu=function(){if(!this.playerOptions||!this.playerOptions.playbackSpeed||!this.videoWrapper||"amp"===this.videoWrapper.getWrapperName())return null;for(var a=g.getValueFromSessionStorage(m.playbackRatePrefKey)||v.PlayerConfig.defaultPlaybackRate,b=[],c=0,d=v.PlayerConfig.playbackRates;c<d.length;c++){var e=d[c],f=e===+a,h=1===e?this.localizationHelper.getLocalizedValue(p.playerLocKeys.playbackspeed_normal):
    e+"x";e={id:this.addIdPrefix("rate"+e),label:h,selected:f,selectable:!0,persistOnClick:!0};b.push(e)}this.setPlaybackRate(this.addIdPrefix("rate"+a));return{category:"playback-speed",id:this.addIdPrefix("playback-speed"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.playbackspeed),items:b}};m.prototype.getShareMenu=function(){if(!this.playerOptions||!this.playerOptions.share)return null;var a=B.SharingHelper.getShareOptionsData(this.localizationHelper,this.playerOptions,this.videoMetadata&&
    this.videoMetadata.shareUrl);if(a&&a.length){for(var b=[],c=0;c<a.length;c++){var d=a[c];d={id:this.addIdPrefix(d.id),label:d.label,data:d.url,glyph:d.glyph,image:d.image};b.push(d)}return{category:"share",id:this.addIdPrefix("share"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.sharing_label),items:b}}};m.prototype.getDownloadMenu=function(){if(this.videoMetadata&&this.videoMetadata.downloadableFiles&&!(1>this.videoMetadata.downloadableFiles.length)){for(var a={},b=0,d=0,e=this.videoMetadata.downloadableFiles;d<
    e.length;d++){var f=e[d];if(this.playerOptions&&this.playerOptions.download){var g=a[f.locale];g||(g=[],b++,a[f.locale]=g);g.push(f)}else f.mediaType===c.DownloadableMediaTypes.transcript&&(g=a[f.locale],g||(g=[],b++,a[f.locale]=g),g.push(f))}if(0<b){b=[];for(var h in a)if(a.hasOwnProperty(h)){d=[];e=0;for(g=a[h];e<g.length;e++)f=g[e],this.playerOptions&&this.playerOptions.download?(f={id:this.addIdPrefix(f.locale+"-"+f.mediaType),label:this.localizationHelper.getLocalizedMediaTypeName(f.mediaType),
    selected:!1,selectable:!1,data:f.url},d.push(f)):f.mediaType===c.DownloadableMediaTypes.transcript&&(f={id:this.addIdPrefix(f.locale+"-"+f.mediaType),label:this.localizationHelper.getLocalizedMediaTypeName(f.mediaType),selected:!1,selectable:!1,data:f.url},d.push(f));b.push({id:this.addIdPrefix("download"+h),label:this.localizationHelper.getLanguageNameFromLocale(h),selected:!1,selectable:!1,subMenuId:this.addIdPrefix("download"+h+"menu"),subMenu:{id:this.addIdPrefix("download"+h+"menu"),category:"download",
    label:this.localizationHelper.getLanguageNameFromLocale(h),items:d}})}return{category:"download",id:this.addIdPrefix("download"),label:this.localizationHelper.getLocalizedValue(p.playerLocKeys.download_label),hideBackButton:!0,items:b,glyph:"glyph-download",priority:2}}}};m.prototype.setupCustomizeContextMenu=function(){var a=[],b=this.getPlayPauseMenu();a.push(b);this.playerData.options.playPauseTrigger||(b=this.getMuteUnMuteMenu(),a.push(b));this.contextMenu.setupCustomizeContextMenu(a);this.customizedContextMenu=
    k.selectFirstElement(".f-player-context-menu",this.playerContainer)};m.prototype.getMuteUnMuteMenu=function(){if(this.isMuted()){var a=this.locUnmute;var b="glyph-volume"}else a=this.locMute,b="glyph-mute";return{id:"context-menu-mute-unMute",label:a,glyph:b,priority:2,category:"mute-unMute"}};m.prototype.getPlayPauseMenu=function(){if(this.isPaused()){var a=this.locPlay;var b="glyph-play"}else a=this.locPause,b="glyph-pause";return{id:"context-menu-play-pause",label:a,glyph:b,priority:1,category:"play-pause"}};
    m.prototype.setupPlayerMenus=function(){if(this.videoControls&&this.videoMetadata){var a=[],b=this.getQualityMenu();b&&b.items.length&&a.push(b);(b=this.getAudioTracksMenu())&&b.items.length&&a.push(b);(b=this.getDownloadMenu())&&b.items.length&&a.push(b);(b=this.getClosedCaptionMenu())&&b.items.length&&a.push(b);(b=this.getPlaybackRateMenu())&&b.items.length&&a.push(b);(b=this.getShareMenu())&&b.items.length&&a.push(b);this.videoControls.setupPlayerMenus(a);if(this.ccSettingsMenuId&&(b=k.selectFirstElement("#"+
    this.ccSettingsMenuId,this.videoControlsContainer)))for(a=0,b=k.selectElementsT("button",b);a<b.length;a++){var c=b[a];0<=c.innerHTML.toLowerCase().indexOf("preset")?(k.addEvents(c,"mouseover focus",this.onCcPresetFocus),k.addEvents(c,"mouseout blur",this.onCcPresetBlur)):k.addEvents(c,"mouseover focus",this.onCcPresetBlur)}}};m.prototype.dispose=function(){this.hideErrorMessage();this.unbindEvents();this.stop();this.updateState(a.PlayerStates.Stopped);this.videoTag=null;this.videoWrapper&&this.videoWrapper.dispose();
    this.interactiveTriggersHelper&&this.interactiveTriggersHelper.dispose();this.inviewManager&&this.registedInviewManagerAlready&&this.inviewManager.disposePlayer(this)};m.prototype.restoreSettings=function(){if(this.playerOptions.mute||"1"===g.getValueFromSessionStorage(m.mutePrefKey))this.isVideoMuted=!0,this.mute(!1);else{var a=parseInt(g.getValueFromSessionStorage(m.volumePrefKey),10);this.lastVolume=g.isNumber(a)?a/10:v.PlayerConfig.defaultVolume;this.setVolume(this.lastVolume)}this.videoControls&&
    this.videoControls.updateVolumeState()};m.prototype.checkReplacedVideoTag=function(){var a=this,b=k.selectFirstElementT("video",this.playerContainer);b&&b!==this.videoTag&&(this.videoTag=b,this.videoTag.tabIndex=-1,this.videoTag.style.cursor="pointer",this.videoTag.playsInline=!0,this.videoTag.setAttribute("aria-hidden","true"),u.Environment.isIProduct?k.addEvents(this.videoTag,k.eventTypes[k.eventTypes.touchstart],function(){a.videoTag.controls=!0}):k.addEvents(this.videoTag,k.eventTypes[k.eventTypes.click],
    this.onVideoPlayerClicked))};m.prototype.loadVideo=function(){var a=this;if(this.locReady){if(!this.videoTag)return null;this.checkReplacedVideoTag();this.restoreSettings();this.bindEvents();this.videoMetadata&&this.videoMetadata.posterframeUrl&&!this.playerOptions.hidePosterFrame&&this.videoWrapper.setPosterFrame(this.videoMetadata.posterframeUrl);(this.currentVideoFile=this.getVideoFileToPlay())&&this.setVideoSrc(this.currentVideoFile);u.Environment.isMobile&&this.videoMetadata.ccFiles&&this.videoWrapper.addNativeClosedCaption(this.videoMetadata.ccFiles,
    c.ClosedCaptionTypes.VTT,this.localizationHelper);this.setupPlayerMenus();this.showControlsBasedOnState()}else setTimeout(function(){a.loadVideo()},50)};m.prototype.displayPreRollAndPlayContent=function(){var b=this;this.playerState===a.PlayerStates.Ended&&(this.reportEvent(q.PlayerEvents.Replay),this.updateState("ready"));if(this.hasInteractivity)if(this.interactiveTriggersHelper.isInteractivityJSONReady){var c=this.videoWrapper,d="";c.ampPlayer&&c.ampPlayer.techName&&(d=c.ampPlayer.techName.toLowerCase());
    if(0<=d.indexOf("flash")&&(c=k.selectFirstElementT(".f-video-player",this.playerContainer),"loading"===this.playerState||"init"===this.playerState||c.classList.contains("vjs-loading")||c.classList.contains("vjs-waiting"))){setTimeout(function(){b.displayPreRollAndPlayContent()},50);return}this.reportContentStart();this.interactiveTriggersHelper.displayPreRoll(function(){b.play()})}else setTimeout(function(){b.displayPreRollAndPlayContent()},50);else this.play()};m.prototype.reportContentStart=function(){this.isFirstTimePlayed&&
    !this.isContentStartReported&&(this.isFirstTimePlayed=!1,this.isContentStartReported=!0,this.reportEvent(q.PlayerEvents.ContentStart))};m.prototype.bindEvents=function(){this.areMediaEventsBound||(this.areMediaEventsBound=!0,this.videoWrapper.bindVideoEvents(this.onMediaEvent),k.addEvents(this.videoComponent,"mousemove mouseout",this.onMouseEvent),k.addEvents(this.videoComponent,"keydown",this.onKeyboardEvent),k.addEvents(window,"onBeforeUnload",this.onBeforeUnload),this.addFullscreenEvents(),k.addEvents(this.ccOverlay,
    k.eventTypes[k.eventTypes.click],this.onVideoPlayerClicked),this.checkReplacedVideoTag(),k.addThrottledEvent(window,k.eventTypes.resize,this.onWindowResize))};m.prototype.unbindEvents=function(){k.removeEvents(this.videoComponent,"mousemove mouseout",this.onMouseEvent);k.removeEvents(this.videoComponent,"keydown",this.onKeyboardEvent);k.removeEvents(this.ccOverlay,k.eventTypes[k.eventTypes.click],this.onVideoPlayerClicked);k.removeEvents(window,"onBeforeUnload",this.onBeforeUnload);k.removeEvents(window,
    "resize",this.onWindowResize);this.removeFullscreenEvents()};m.prototype.setVideoSrc=function(b){if(b&&b.url&&this.videoWrapper){this.updateState(a.PlayerStates.Loading);b=[b];var c=this.getFallbackVideoFile();if(c){for(var d=!1,e=0;e<b.length;e++)if(b[e].url===c.url){d=!0;break}d||b.push(this.getFallbackVideoFile())}this.videoWrapper.setSource(b);this.setAutoPlayNeeded&&this.videoWrapper.setAutoPlay()}};m.prototype.reportEvent=function(a,b){b=this.getReport(b);this.logMessage("Event reported : "+
    q.PlayerEvents[a]+" | data : "+JSON.stringify(b));for(var c=0,d=this.reporters;c<d.length;c++)d[c].reportEvent(a,b);k.customEvent(this.videoComponent,q.PlayerEvents[a],{detail:b});c=0;for(d=this.playerEventCallbacks;c<d.length;c++){var e=d[c];e&&e({name:q.PlayerEvents[a],data:b})}};m.prototype.getVideoWrapper=function(){return this.playerOptions&&"nativeplayer"===this.playerOptions.corePlayer?new y.NativeVideoWrapper:this.playerOptions&&"hasplayer"===this.playerOptions.corePlayer?new t.HasPlayerVideoWrapper:
    this.playerOptions&&"hlsplayer"===this.playerOptions.corePlayer?new r.HlsPlayerVideoWrapper:this.playerOptions&&"amp"===this.playerOptions.corePlayer||this.useAdaptive?new f.AmpWrapper(this.playerOptions.useAMPVersion2):new b.Html5VideoWrapper(this)};m.prototype.hideControlPanel=function(){this.controlPanelTimer&&(window.clearTimeout(this.controlPanelTimer),this.controlPanelTimer=0);this.areControlsVisible&&(u.Environment.useNativeControls?this.videoTag&&(this.videoTag.controls=!1):this.videoControlsContainer&&
    !k.hasClass(this.videoControlsContainer,m.hideControlsClass)&&(this.screenManagerHelper.updateElementDisplay(this.controlsScreenManagerObject,!1),this.ccOverlay&&this.closedCaptions&&this.videoWrapper&&this.closedCaptions.updateCaptions(this.getPlayPosition().currentTime)),this.videoControls&&(this.videoControls.prepareToHide(),this.videoControls.hideControls()),this.areControlsVisible=!1)};m.prototype.showControlPanel=function(a){var b=this;void 0===a&&(a=!0);if(!(this.playerOptions&&!this.playerOptions.controls||
    this.isTriggerShown()||this.playerOptions&&!this.playerOptions.showControlOnLoad&&this.showcontrolFirstTime)){this.controlPanelTimer&&(window.clearTimeout(this.controlPanelTimer),this.controlPanelTimer=0);this.areControlsVisible||(u.Environment.useNativeControls?this.videoTag&&(this.videoTag.controls=!0):this.videoControlsContainer&&!k.hasClass(this.videoControlsContainer,m.showControlsClass)&&(this.screenManagerHelper.updateElementDisplay(this.controlsScreenManagerObject,!0),this.ccOverlay&&this.closedCaptions&&
    this.videoWrapper&&this.closedCaptions.updateCaptions(this.getPlayPosition().currentTime),this.videoControls.resetSlidersWorkaround()),this.areControlsVisible=!0);var c=null;c=null!==this.playerOptions.controlPanelTimeout?this.playerOptions.controlPanelTimeout:m.controlPanelTimeout;a&&(this.controlPanelTimer=window.setTimeout(function(){b.hideControlPanel()},c))}};m.prototype.stopMedia=function(b,c){this.logMessage("StopMedia invoked");this.firstByteTimer&&(window.clearTimeout(this.firstByteTimer),
    this.firstByteTimer=null);this.exitFullScreen();b&&(this.logMessage(c||b),this.updateState(a.PlayerStates.Stopped),this.displayErrorMessage({title:b}),this.reportEvent(q.PlayerEvents.ContentError,{errorType:"content:error",errorDesc:c||b,errorMessage:b}))};m.prototype.setNextCheckpoint=function(){var a=this.getPlayPosition();if(a.endTime)for(var b=0,c=v.PlayerConfig.checkpoints;b<c.length;b++){var d=c[b];if(Math.round(a.currentTime/a.endTime*1E4/100)<=d){this.nextCheckpoint=d;return}}this.nextCheckpoint=
    null};m.prototype.getPlayPosition=function(){return this.videoWrapper?this.videoWrapper.getPlayPosition():{currentTime:0,startTime:0,endTime:0}};m.prototype.getBufferedDuration=function(){var a=0;try{a=this.videoWrapper&&this.videoWrapper.getBufferedDuration()}catch(F){throw this.reportEvent(q.PlayerEvents.PlayerError,{errorType:"getBufferedDuration",errorDesc:"GetBufferedDuration: "+F.message}),F;}return a};m.prototype.addPlayerEventListener=function(a){0>this.playerEventCallbacks.indexOf(a)&&this.playerEventCallbacks.push(a)};
    m.prototype.removePlayerEventListener=function(a){a=this.playerEventCallbacks.indexOf(a);0<=a&&this.playerEventCallbacks.splice(a,1)};m.prototype.stop=function(){this.seek(0);if(this.videoControls){this.pause();var a=this.getPlayPosition();this.videoControls.setPlayPosition({startTime:a&&a.startTime,endTime:a&&a.endTime,currentTime:a&&a.startTime})}this.closedCaptions&&this.closedCaptions.updateCaptions(0)};m.prototype.isPaused=function(){return this.videoWrapper?this.videoWrapper.isPaused():!1};
    m.prototype.isLive=function(){return this.videoWrapper&&this.videoWrapper.isLive()};m.prototype.isPlayable=function(){return this.videoTag?this.canPlay:!1};m.prototype.play=function(){var b=this;this.playerState!==a.PlayerStates.Playing&&this.playerState!==a.PlayerStates.Error&&this.playerState!==a.PlayerStates.Stopped&&this.playerState!==a.PlayerStates.Init&&(this.reportEvent(q.PlayerEvents.Play),this.playerState===a.PlayerStates.Ended?(this.showEndImage&&!u.Environment.isIProduct&&this.endImage&&
    this.endImage.container.setAttribute("aria-hidden","true"),this.displayPreRollAndPlayContent()):(this.playerOptions.lazyLoad&&!this.wrapperLoadCalled?(this.playOnDataLoad=!1,this.loadVideoWrapper(!0)):(this.videoWrapper&&(u.Environment.isIProduct||u.Environment.isAndroidModern?this.videoWrapper.play():setTimeout(function(){b.videoWrapper.play()},0)),this.videoControls&&this.videoControls.updatePlayPauseState()),this.triggerPlayPauseContainer&&this.playPauseButton&&(k.removeClass(this.playPauseButton,
    "glyph-play"),k.addClass(this.playPauseButton,"glyph-pause"),this.playPauseButton.setAttribute("aria-label",this.locPause),k.setText(this.playPauseTooltip,this.locPause))))};m.prototype.pause=function(a){this.videoWrapper&&this.videoWrapper.pause();this.triggerPlayPauseContainer&&this.playPauseButton&&(k.removeClass(this.playPauseButton,"glyph-pause"),k.addClass(this.playPauseButton,"glyph-play"),u.Environment.isChrome?this.playPauseButton.setAttribute("aria-label",this.locPlay):this.setAriaLabelForButton(this.playPauseButton),
    k.setText(this.playPauseTooltip,this.locPlay));this.videoControls&&this.videoControls.updatePlayPauseState();a&&this.reportEvent(q.PlayerEvents.Pause)};m.prototype.seek=function(a){if(g.isNumber(a)&&this.videoWrapper){var b=this.getPlayPosition();a=Math.max(b.startTime,Math.min(a,b.endTime));Math.abs(a-b.currentTime)>=m.positionUpdateThreshold&&(this.setNextCheckpoint(),this.seekFrom=b.currentTime,this.videoWrapper.setCurrentTime(a))}};m.prototype.getVolume=function(){return this.videoWrapper&&this.videoWrapper.getVolume()||
    0};m.prototype.setVolume=function(a,b){if(g.isNumber(a)&&this.videoWrapper){a=Math.round(100*Math.max(0,Math.min(a,1)))/100;var c=this.videoWrapper.getVolume();a!==c&&(this.lastVolume=c,this.videoWrapper.setVolume(a),this.lastVolume=a?a:this.lastVolume,b&&(g.saveToSessionStorage(m.volumePrefKey,Math.ceil(10*a).toString()),this.reportEvent(q.PlayerEvents.Volume)),this.isMuted()&&0<a&&this.unmute(b,!0),this.videoControls&&this.videoControls.updateVolumeState())}};m.prototype.isMuted=function(){return this.videoWrapper&&
    this.videoWrapper.isMuted()||this.isVideoMuted};m.prototype.mute=function(a){this.lastVolume=this.getVolume();this.setMuted(!0);a&&(g.saveToSessionStorage(m.mutePrefKey,"1"),this.reportEvent(q.PlayerEvents.Mute))};m.prototype.unmute=function(a,b){b||this.setVolume(this.lastVolume||v.PlayerConfig.defaultVolume,!1);this.setMuted(!1);a&&(g.saveToSessionStorage(m.mutePrefKey,"0"),this.reportEvent(q.PlayerEvents.Unmute))};m.prototype.setMuted=function(a){this.videoWrapper&&a!==this.videoWrapper.isMuted()&&
    (a?this.videoWrapper.mute():this.videoWrapper.unmute());this.videoControls&&this.videoControls.updateVolumeState()};m.isNativeFullscreenEnabled=function(){var a=document;return a.fullscreenEnabled||a.mozFullScreenEnabled||a.webkitFullscreenEnabled||a.webkitSupportsFullscreen||a.msFullscreenEnabled};m.getElementInFullScreen=function(){var a=document;return a.fullscreenElement||a.mozFullScreenElement||a.webkitFullscreenElement||a.msFullscreenElement};m.prototype.getFullscreenContainer=function(){return u.Environment.useNativeControls?
    this.videoTag:this.playerContainer};m.prototype.enterFullScreen=function(){if(m.isNativeFullscreenEnabled()){var a=this.getFullscreenContainer(),b=m.getElementInFullScreen();a&&!b&&(a.requestFullscreen||a.msRequestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullscreen||a.webkitEnterFullScreen).call(a)}};m.prototype.exitFullScreen=function(){if(m.isNativeFullscreenEnabled()){var a=this.getFullscreenContainer(),b=m.getElementInFullScreen();a&&a===b&&(a=document,(a.cancelFullScreen||a.msExitFullscreen||
    a.mozCancelFullScreen||a.webkitCancelFullScreen).call(a))}};m.prototype.toggleFullScreen=function(){this.isInFullscreen?this.exitFullScreen():this.enterFullScreen()};m.prototype.isFullScreen=function(){return this.isInFullscreen};m.prototype.addFullscreenEvents=function(){k.addEvents(document,"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange",this.onFullscreenChanged,!1);k.addEvents(document,"fullscreenerror mozfullscreenerror webkitfullscreenerror MSFullscreenError",
    this.onFullscreenError,!1);this.videoTag&&(k.addEvents(this.videoTag,"webkitbeginfullscreen",this.onIOSFullscreenEnter,!1),k.addEvents(this.videoTag,"webkitendfullscreen",this.onIOSFullscreenExit,!1))};m.prototype.removeFullscreenEvents=function(){k.removeEvents(document,"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange",this.onFullscreenChanged,!1);k.removeEvents(document,"fullscreenerror mozfullscreenerror webkitfullscreenerror MSFullscreenError",this.onFullscreenError,
    !1);this.videoTag&&(k.removeEvents(this.videoTag,"webkitbeginfullscreen",this.onIOSFullscreenEnter,!1),k.removeEvents(this.videoTag,"webkitendfullscreen",this.onIOSFullscreenExit,!1))};m.prototype.onFullscreenEnter=function(){this.isInFullscreen=!0;this.videoControls&&(this.interactiveTriggersHelper?this.resetFocusTrap(this.interactiveTriggersHelper.findInteractivityFocusTrapStart()):this.resetFocusTrap(),this.videoControls.updateFullScreenState());this.reportEvent(q.PlayerEvents.FullScreenEnter)};
    m.prototype.onFullscreenExit=function(){this.isInFullscreen=!1;this.videoControls&&(this.videoControls.removeFocusTrap(),this.videoControls.updateFullScreenState());this.reportEvent(q.PlayerEvents.FullScreenExit)};m.prototype.resetFocusTrap=function(a){this.isFullScreen()&&(this.videoControls.removeFocusTrap(),a?this.videoControls.setFocusTrap(a):this.hasInteractivity?this.videoControls.setFocusTrap(a):this.videoControls.setFocusTrap(null))};m.prototype.initializeClosedCaptions=function(){this.ccOverlay=
    k.selectFirstElement(".f-video-cc-overlay",this.videoComponent);this.closedCaptions=new d.VideoClosedCaptions(this.ccOverlay,this.onErrorCallback);this.closedCaptionsSettings=new l.VideoClosedCaptionsSettings(this.onErrorCallback);this.ccScreenManagerObject={HtmlObject:this.ccOverlay,Height:0,Id:null,IsVisible:!1,Priority:0,Transition:null};this.screenManagerHelper.registerElement(this.ccScreenManagerObject)};m.prototype.onPlayerMenuItemClick=function(a){if(a&&a.category)switch(a.category){case "close-caption":this.setCC(a.id,
    !0);break;case "cc-settings":this.setCCSettings(a);break;case "quality":this.setQuality(a.id);break;case "audio-tracks":this.setAudio(a.id);break;case "share":this.shareVideo(a);break;case "playback-speed":this.setPlaybackRate(a.id,!0);break;case "download":this.downloadMedia(a)}};m.prototype.onPlayerContextMenuItemClick=function(a){if(a&&a.category){switch(a.category){case "play-pause":this.isPaused()?this.play():this.pause(!0);break;case "mute-unMute":this.isMuted()?this.unmute(!0):this.mute(!0)}this.customizedContextMenu.setAttribute("aria-hidden",
    "true")}};m.prototype.setCC=function(a,b){if(this.closedCaptions){a=this.removeIdPrefix(a);var d=null;if(a&&this.videoMetadata&&this.videoMetadata.ccFiles)for(var e=0,f=this.videoMetadata.ccFiles;e<f.length;e++){var h=f[e];if(h.locale===a&&(!h.ccType||h.ccType===c.ClosedCaptionTypes.TTML)){d=h;break}}e=this.closedCaptions.getCurrentCcLanguage();this.closedCaptions.setCcLanguage(a,d?d.url:null);b&&g.saveToSessionStorage(m.ccLangPrefKey,a);"off"===a?this.screenManagerHelper.updateElementDisplay(this.ccScreenManagerObject,
    !1):this.screenManagerHelper.updateElementDisplay(this.ccScreenManagerObject,!0);this.reportEvent(q.PlayerEvents.ClosedCaptionsChanged,{startcaptionselection:e,endCaptionSelection:a})}};m.prototype.setCCSettings=function(a){if(this.videoControls&&this.closedCaptions&&this.closedCaptionsSettings&&a&&a.data){if("reset"===a.data)this.closedCaptionsSettings.reset();else{var b=a.data.split(":");if(!b&&0>b.length)return;this.closedCaptionsSettings.setSetting(b[0],b[1])}this.closedCaptions.resetCaptions();
    this.closedCaptions.updateCaptions(this.getPlayPosition().currentTime);if(b=this.closedCaptionsSettings.getCurrentSettings()){for(var c in b)b.hasOwnProperty(c)&&this.videoControls.updateMenuSelection(this.getCCSettingsMenuId(c),this.getCCMenuItemId(c,b[c]));b[l.VideoClosedCaptionsSettings.presetKey]||this.videoControls.updateMenuSelection(this.getCCSettingsMenuId(l.VideoClosedCaptionsSettings.presetKey))}this.reportEvent(q.PlayerEvents.ClosedCaptionSettingsChanged,{closedCaptionSettings:a.data})}};
    m.prototype.setPlaybackRate=function(a,b){(a=this.removeIdPrefix(a))&&this.videoWrapper&&(a=h.startsWith(a,"rate",!1)?a.substring(4):a)&&(this.videoWrapper.setPlaybackRate(+a),b&&g.saveToSessionStorage(m.playbackRatePrefKey,a),this.reportEvent(q.PlayerEvents.PlaybackRateChanged,{playbackRate:a}))};m.prototype.setQuality=function(a){if(a=this.removeIdPrefix(a)){var b=c.MediaQuality[a],d=this.currentMediaQuality,e=this.getVideoFileToPlay(b),f=this.videoWrapper.getCurrentVideoTrack();e&&e.url?(this.currentVideoFile=
    e,g.saveToSessionStorage(m.qualityPrefKey,a),this.playOnDataLoad=!this.isPaused(),this.startTimeOnDataLoad=this.getPlayPosition().currentTime,this.setVideoSrc(e),this.reportEvent(q.PlayerEvents.VideoQualityChanged,{startRes:d,endRes:b})):!(b=a.match(/video-(\d+)/))||2>b.length||(b=parseInt(b[1],10),0<=b&&(f=f.auto?"auto":this.videoWrapper.getVideoTracks()[this.videoWrapper.getCurrentVideoTrack().trackIndex].bitrate,this.videoWrapper.switchToVideoTrack(b),a="auto"===a?"auto":this.videoWrapper.getVideoTracks()[b].bitrate,
    this.reportEvent(q.PlayerEvents.VideoQualityChanged,{startRes:f,endRes:a})))}};m.prototype.setAudio=function(a){if((a=this.removeIdPrefix(a))&&(a=a.match(/audio-(\d+)/))&&!(2>a.length)&&(a=parseInt(a[1],10),0<=a&&this.isAudioTracksDoneSwitching)){var b=this.videoWrapper.getAudioTracks(),c=this.videoWrapper.getCurrentAudioTrack();c=b[c]?b[c].title:null;b=b[a]?b[a].title:null;this.isAudioTracksDoneSwitching=!1;this.videoWrapper.switchToAudioTrack(a);this.reportEvent(q.PlayerEvents.AudioTrackChanged,
    {startTrackSelection:c,endTrackSelection:b})}};m.prototype.shareVideo=function(a){if(a&&a.id){var b=this.removeIdPrefix(a.id);if(b&&a.data)switch(this.reportEvent(q.PlayerEvents.VideoShared,{videoShare:b}),b){case C.shareTypes.copy:B.SharingHelper.tryCopyTextToClipboard(decodeURIComponent(a.data));break;case C.shareTypes.mail:window.location.href=a.data;break;default:window.open(a.data,"_blank")}}};m.prototype.downloadMedia=function(a){if(a&&a.data){window.open(a.data,"_blank");var b=-1!==a.id.indexOf("transcript")?
    "transcript":"video";this.reportEvent(q.PlayerEvents.MediaDownloaded,{downloadType:b,downloadMedia:a.data.toString()})}};m.prototype.addIdPrefix=function(a){var b=this.videoComponent&&this.videoComponent.id?this.videoComponent.id+"-":null;return b&&!h.startsWith(a,b,!1)?b+a:a};m.prototype.removeIdPrefix=function(a){var b=this.videoComponent&&this.videoComponent.id?this.videoComponent.id+"-":null;return b&&h.startsWith(a,b,!1)?a.substring(b.length):a};m.prototype.setFocusOnVideoContainerEdge=function(){var a=
    this;u.Environment.isEdgeBrowser&&!this.videoElementIsFocus&&(this.videoElementIsFocus=!0,this.playerContainer.setAttribute("tabindex","0"),setTimeout(function(){return a.playerContainer.focus()},100))};m.prototype.showTrigger=function(){this.triggerContainer&&(this.triggerContainer.setAttribute("aria-hidden","false"),k.addEvents(this.triggerContainer,"click keyup",this.triggerContainerEventHandler,!0),u.Environment.isEdgeBrowser&&this.playerContainer.setAttribute("tabindex","-1"));this.playerOptions&&
    this.playerOptions.controls&&this.videoControlsContainer&&!u.Environment.useNativeControls&&(this.videoControlsContainer.setAttribute("aria-hidden","true"),this.addHiddenAttr(this.videoControlsTabbableElements))};m.prototype.hideTrigger=function(){this.triggerContainer&&(this.triggerContainer.setAttribute("aria-hidden","true"),this.setFocusOnVideoContainerEdge());this.playerOptions&&this.playerOptions.controls&&this.videoControlsContainer&&!u.Environment.useNativeControls&&(this.videoControlsContainer.setAttribute("aria-hidden",
    "false"),this.removeHiddenAttr(this.videoControlsTabbableElements))};m.prototype.showPlayPauseTrigger=function(a){this.triggerPlayPauseContainer&&(a?(k.removeClass(this.playPauseButton,"f-play-pause-hide"),k.addClass(this.playPauseButton,"f-play-pause-show")):(k.addClass(this.playPauseButton,"f-play-pause-hide"),k.removeClass(this.playPauseButton,"f-play-pause-show")))};m.prototype.disablePlayPauseTrigger=function(){this.triggerPlayPauseContainer&&k.removeClass(this.triggerPlayPauseContainer,"f-play-pause-trigger")};
    m.prototype.isTriggerShown=function(){return this.triggerContainer&&"false"===this.triggerContainer.getAttribute("aria-hidden")};m.prototype.setTriggerProperties=function(){if(this.localizationHelper&&this.trigger){var a=this.localizationHelper.getLocalizedValue(p.playerLocKeys.play),b=this.localizationHelper.getLocalizedValue(p.playerLocKeys.play_video);this.setAriaLabelForButton(this.trigger,b);k.setText(this.triggerTooltip,a)}};m.prototype.displayErrorMessage=function(a){if(a&&(a.title||a.message)){this.errorMessageDisplayed=
    !0;if(this.errorMessage)k.setText(this.errorMessage.title,a.title||""),k.setText(this.errorMessage.message,a.message||""),this.errorMessage.container.setAttribute("aria-hidden","false");else{this.errorMessage={};this.errorMessage.container=document.createElement("div");var b=document.createElement("div");this.errorMessage.title=document.createElement("p");this.errorMessage.message=document.createElement("p");this.errorMessage.container.setAttribute("role","status");this.errorMessage.container.setAttribute("class",
    "f-error-message");this.errorMessage.title.setAttribute("class","c-heading");this.errorMessage.message.setAttribute("class","c-paragraph");a.title&&k.setText(this.errorMessage.title,a.title);a.message&&k.setText(this.errorMessage.message,a.message);this.errorMessage.container.appendChild(b);a.title&&b.appendChild(this.errorMessage.title);b.appendChild(this.errorMessage.message);this.playerContainer.appendChild(this.errorMessage.container)}this.updateScreenReaderElement(a.title,!0);this.hideTrigger()}};
    m.prototype.displayImage=function(a){a||(a=this.videoMetadata.posterframeUrl);if(this.endImage)k.selectFirstElement(".f-post-image",this.endImage.container).setAttribute("src",a),this.endImage.container.setAttribute("aria-hidden","false");else{this.endImage={};this.endImage.container=document.createElement("div");this.endImage.container.setAttribute("class","f-end-poster-image");this.endImage.container.setAttribute("aria-hidden","false");this.endImage.container.setAttribute("role","none");var b=document.createElement("img");
    b.setAttribute("src",a);b.setAttribute("class","f-post-image");b.setAttribute("height","auto");b.setAttribute("width","100%");b.setAttribute("role","none");this.endImage.container.appendChild(b);this.playerContainer.appendChild(this.endImage.container)}};m.prototype.hideImage=function(){this.endImage&&this.endImage.container.setAttribute("aria-hidden","true")};m.prototype.hideErrorMessage=function(){this.errorMessage&&this.errorMessage.container&&(this.errorMessage.container.setAttribute("aria-hidden",
    "true"),this.errorMessageDisplayed=!1)};m.prototype.showPosterImage=function(a){this.wrapperLoadCalled||(this.showingPosterImage=!0,this.posterImageUrl=a,this.loadVideoWrapper(!1))};m.prototype.resize=function(){this.videoControls&&(this.videoControls.resetSlidersWorkaround(),this.videoControls.updateReactiveControlDisplay(),this.onWindowResize())};m.prototype.getDefaultMediaQuality=function(){var a=g.getValueFromSessionStorage(m.qualityPrefKey),b=null;a&&(b=c.MediaQuality[a]);b||(b=u.Environment.isMobile?
    v.PlayerConfig.defaultQualityMobile:u.Environment.isTV?v.PlayerConfig.defaultQualityTV:v.PlayerConfig.defaultQualityDesktop);return b};m.prototype.getVideoFileforDownload=function(){return this.getVideoFileByQuality(c.MediaQuality.HQ)||this.getVideoFileByType(c.MediaTypes.MP4)};m.prototype.getVideoFileByQuality=function(a){var b=null;if(a&&this.videoMetadata&&this.videoMetadata.videoFiles)for(var c=0,d=this.videoMetadata.videoFiles;c<d.length;c++){var e=d[c];if(e.quality===a){b=e;break}}return b};
    m.prototype.getVideoFileByType=function(a){var b=null;if(a&&this.videoMetadata&&this.videoMetadata.videoFiles)for(var c=0,d=this.videoMetadata.videoFiles;c<d.length;c++){var e=d[c];if(e.mediaType===a){b=e;break}}return b};m.prototype.getVideoFileToPlay=function(a){this.currentMediaQuality=a=a||this.getDefaultMediaQuality();var b,d=!1;this.hasHLS&&this.playerOptions&&this.playerOptions.useHLS&&"hlsplayer"===this.playerOptions.corePlayer&&(b=this.getVideoFileByType(c.MediaTypes.HLS))&&b.url&&(d=!0);
    d||!this.playerOptions||this.useAdaptive||(b=this.getVideoFileByQuality(a))&&b.url&&(d=!0);d||this.currentVideoFile||(this.useAdaptive&&(b=this.getVideoFileByType(c.MediaTypes.DASH)||this.getVideoFileByType(c.MediaTypes.SMOOTH))&&b.url&&(d=!0),d||(b=this.getVideoFileByType(c.MediaTypes.MP4)));return b};m.prototype.getFallbackVideoFile=function(){return this.getVideoFileByQuality(c.MediaQuality.HQ)||this.getVideoFileByType(c.MediaTypes.MP4)};m.prototype.updateState=function(b){if(b&&b!==this.playerState&&
    this.playerState!==a.PlayerStates.Error){this.playerState=b;this.logMessage("Player state updated. New state: "+b);b=null;switch(this.playerState){case a.PlayerStates.Loading:b=q.PlaybackStatus.VideoOpening;this.stopwatchLoading.start();break;case a.PlayerStates.Playing:b=q.PlaybackStatus.VideoPlaying;this.stopwatchPlaying.start();this.currentVideoStopwatchPlaying.start();this.stopwatchBuffering.stop();this.stopwatchLoading.stop();this.isBuffering&&this.stopwatchBuffering.getValue()&&(this.isBuffering=
    !1,this.reportEvent(q.PlayerEvents.BufferComplete));break;case a.PlayerStates.Paused:b=q.PlaybackStatus.VideoPaused;this.stopwatchPlaying.stop();this.currentVideoStopwatchPlaying.stop();this.stopwatchLoading.stop();break;case a.PlayerStates.Buffering:b=q.PlaybackStatus.VideoPlaying;this.stopwatchBuffering.start();this.isBuffering=!0;break;case a.PlayerStates.Seeking:this.stopwatchLoading.stop();break;case a.PlayerStates.Ended:b=q.PlaybackStatus.VideoPlayCompleted;this.stopwatchPlaying.stop();this.currentVideoStopwatchPlaying.reset();
    this.showEndImage&&!u.Environment.isIProduct&&(this.displayImage(this.videoMetadata.posterframeUrl),this.showTrigger());this.triggerPlayPauseContainer&&this.playPauseButton&&(k.removeClass(this.playPauseButton,"glyph-pause"),k.addClass(this.playPauseButton,"glyph-play"),this.setAriaLabelForButton(this.playPauseButton),k.setText(this.playPauseTooltip,this.locPlay));break;case a.PlayerStates.Error:b=q.PlaybackStatus.VideoPlayFailed,this.stopwatchBuffering.reset(),this.stopwatchLoading.stop(),this.stopwatchPlaying.reset(),
    this.currentVideoStopwatchPlaying.reset()}this.videoControls&&(this.videoControls.updatePlayPauseState(),this.videoControls.updateVolumeState());this.setPlaybackStatus(b);this.showControlsBasedOnState();this.showSpinnerBasedOnState()}};m.prototype.setPlaybackStatus=function(a){a&&this.playbackStatus!==a&&(this.playbackStatus=a,this.reportEvent(q.PlayerEvents.PlaybackStatusChanged,{status:a}))};m.prototype.setSpinnerProperties=function(){this.localizationHelper&&this.spinner&&(this.spinner.setAttribute("aria-label",
    this.localizationHelper.getLocalizedValue(p.playerLocKeys.loading_aria_label)),this.spinner.setAttribute("aria-valuetext",this.localizationHelper.getLocalizedValue(p.playerLocKeys.loading_value_text)))};m.prototype.showSpinner=function(){this.spinner&&!this.isTriggerShown()&&this.spinner.setAttribute("aria-hidden","false")};m.prototype.hideSpinner=function(){this.spinner&&this.spinner.setAttribute("aria-hidden","true")};m.prototype.showSpinnerBasedOnState=function(){if(this.ageGateHelper&&this.ageGateHelper.ageGateIsDisplayed)this.hideSpinner();
    else switch(this.playerState){case a.PlayerStates.Ready:case a.PlayerStates.Playing:case a.PlayerStates.Paused:case a.PlayerStates.Ended:case a.PlayerStates.Stopped:case a.PlayerStates.Error:this.hideSpinner();break;default:this.showSpinner()}};m.prototype.showControlsBasedOnState=function(){switch(this.playerState){case a.PlayerStates.Loading:case a.PlayerStates.Init:case a.PlayerStates.Error:this.hideControlPanel();break;case a.PlayerStates.Ended:this.showEndImage&&!u.Environment.isIProduct?this.hideControlPanel():
    this.showControlPanel(!1);break;case a.PlayerStates.Ready:case a.PlayerStates.Paused:case a.PlayerStates.Stopped:this.showControlPanel(!1);break;default:this.showControlPanel(!0)}};m.prototype.updateScreenReaderElement=function(a,b){void 0===b&&(b=!1);this.screenReaderElement&&this.screenReaderElement.innerText!==a&&!b&&(this.screenReaderElement.innerText=a)};m.prototype.setFocusOnPlayButton=function(){this.videoControls&&this.videoControls.setFocusonPlayButton()};m.prototype.getVideoTitle=function(){return this.videoMetadata?
    this.videoMetadata.title:""};m.prototype.getReport=function(a){var b=this.getPlayPosition().endTime;return{playerInstanceId:this.playerId,playerTechnology:this.playerTechnology,playerType:this.videoWrapper&&this.videoWrapper.getPlayerTechName(),playbackStatus:q.PlaybackStatus[this.playbackStatus],totalBufferWaitTime:this.stopwatchBuffering&&this.stopwatchBuffering.getValue(),bufferCount:this.stopwatchBuffering&&this.stopwatchBuffering.getIntervals(),errorType:a&&a.errorType,errorDesc:a&&a.errorDesc,
    loadTime:this.stopwatchLoading&&this.stopwatchLoading.getFirstValue(),numPlayed:this.stopwatchLoading&&this.stopwatchLoading.getIntervals(),videoDuration:b,videoElapsedTime:this.getPlayPosition().currentTime,seekFrom:a&&a.seekFrom,seekTo:a&&a.seekTo,videoLength:1E3*b,videoSize:g.getDimensions(this.playerContainer),totalTimePlaying:this.stopwatchPlaying&&this.stopwatchPlaying.getTotalValue(),currentVideoTotalTimePlaying:this.currentVideoStopwatchPlaying&&this.currentVideoStopwatchPlaying.getTotalValue(),
    currentInterval:this.stopwatchPlaying&&this.stopwatchPlaying.getValue(),eventCheckpointInterval:v.PlayerConfig.eventCheckpointInterval,checkpoint:a&&a.checkpoint,checkpointType:a&&a.checkpointType,currentVideoFile:this.currentVideoFile,videoMetadata:this.videoMetadata,playerOptions:this.playerOptions,interactiveTriggerAndOverlay:a&&a.interactiveTriggerAndOverlay,videoShare:a&&a.videoShare,closedCaptions:a&&a.closedCaptions,closedCaptionSettings:a&&a.closedCaptionSettings,playbackRate:a&&a.playbackRate,
    downloadMedia:a&&a.downloadMedia,downloadType:a&&a.downloadType,audioTrack:a&&a.audioTrack,ageGatePassed:a&&a.ageGatePassed,live:this.isLive(),lastVolume:a&&a.lastVolume,newVolume:a&&a.newVolume,startRes:a&&a.startRes,endRes:a&&a.endRes,startTrackSelection:a&&a.startTrackSelection,endTrackSelection:a&&a.endTrackSelection,startCaptionSelection:a&&a.startCaptionSelection,endCaptionSelection:a&&a.endCaptionSelection}};m.prototype.logMessage=function(a){this.playerOptions&&this.playerOptions.debug&&a&&
    w.PlayerUtility.logConsoleMessage(a,"Core-Player : "+this.videoComponent.id)};m.prototype.showElement=function(a){a&&a.setAttribute("aria-hidden","false")};m.prototype.hideElement=function(a){a&&a.setAttribute("aria-hidden","true")};m.prototype.addHiddenAttr=function(a){a.forEach(function(a){k.addAttribute(a,[K.AddHidden])})};m.prototype.removeHiddenAttr=function(a){a.forEach(function(a){a.removeAttribute("hidden")})};m.playerContainerSelector=".f-core-player";m.showControlsClass="f-slidein";m.hideControlsClass=
    "f-slideout";m.fitControlsClass="f-overlay-slidein";m.volumePrefKey="vidvol";m.mutePrefKey="vidmut";m.qualityPrefKey="vidqlt";m.ccLangPrefKey="vidccpref";m.playbackRatePrefKey="vidrate";m.positionUpdateThreshold=.1;m.controlPanelTimeout=6500;return m}();a.CorePlayer=m});r("controls/context-menu",["require","exports","mwf/utilities/htmlExtensions","mwf/utilities/utility"],function(m,a,n,d){Object.defineProperty(a,"__esModule",{value:!0});a.ContextMenu=void 0;m=function(){function a(a,k){var g=this;
    this.contextMenuContainer=a;this.focusedMenuItemIndex=0;this.onContextMenuEvents=function(a,e){switch(a.type){case "click":g.onContextMenuItemClick(a,e);break;case "keyup":32===d.getKeyCode(a)&&n.preventDefault(a);break;case "keydown":g.onContextMenuKeyPressed(a)}};this.onContextMenuItemClick=function(a,d){a=n.getEvent(a);d=n.getEventTargetOrSrcElement(a);n.preventDefault(a);var b=d.parentElement;a=b.id||b.parentElement&&b.parentElement.id;b=d.getAttribute("data-info")||b.getAttribute("data-info");
    if(g.videoPlayer)g.videoPlayer.onPlayerContextMenuItemClick({category:d.getAttribute("data-category"),id:a,data:b})};this.videoPlayer=k}a.prototype.initializeCustomPlayerMenus=function(){this.contextMenuContainer&&(this.menuItems=n.selectElements(a.contextMenuSelector+" ul li",this.contextMenuContainer))&&this.menuItems.length&&n.addEvents(this.menuItems,"click keydown keyup",this.onContextMenuEvents)};a.prototype.calcHeightWidthOfContextMenu=function(){if(this.contextMenuContainer){var d=n.selectFirstElement(a.contextMenuSelector,
    this.contextMenuContainer);d&&(d.setAttribute("aria-hidden","false"),this.menuHeight=n.getClientRect(d).height,this.menuWidth=n.getClientRect(d).width,d.setAttribute("aria-hidden","true"))}};a.prototype.showMenu=function(d,k){var g=d.offsetX;d=d.offsetY;this.calcHeightWidthOfContextMenu();var c=k.offsetHeight+k.offsetTop;k=k.offsetWidth+k.offsetLeft;var e=d+this.menuHeight+2,b=g+this.menuWidth+2,f=n.selectFirstElement(a.contextMenuSelector,this.contextMenuContainer);f&&(e>c&&(d-=this.menuHeight),
    b>k&&(g-=this.menuWidth),n.css(f,"left",g+"px"),n.css(f,"top",d+"px"),f.setAttribute("aria-hidden","false"))};a.prototype.checkContextMenuIsVisible=function(){if(this.contextMenuContainer){var d=n.selectFirstElement(a.contextMenuSelector,this.contextMenuContainer);if(d)return"false"===d.getAttribute("aria-hidden")}return!1};a.prototype.setFocusOnFirstElement=function(){this.contextMenuContainer&&(this.menuItems=n.selectElements(a.contextMenuSelector+" ul li",this.contextMenuContainer))&&this.menuItems.length&&
    this.setFocus(n.selectFirstElement("button",this.menuItems[0]))};a.prototype.onContextMenuKeyPressed=function(g){var k=d.getKeyCode(g),h=n.getEventTargetOrSrcElement(g);h&&h.parentElement;switch(k){case 37:case 39:n.stopPropagation(g);n.preventDefault(g);break;case 13:case 32:n.preventDefault(g);this.onContextMenuItemClick(g,!0);break;case 38:case 40:n.stopPropagation(g);n.preventDefault(g);this.menuItems&&this.menuItems.length&&(38===k?(--this.focusedMenuItemIndex,0>this.focusedMenuItemIndex&&(this.focusedMenuItemIndex=
    this.menuItems.length-1)):this.focusedMenuItemIndex=(this.focusedMenuItemIndex+1)%this.menuItems.length,this.setFocus(n.selectFirstElement("button",this.menuItems[this.focusedMenuItemIndex])));break;case 33:case 36:n.stopPropagation(g);n.preventDefault(g);this.menuItems&&0<this.menuItems.length&&this.setFocus(n.selectFirstElement("button",this.menuItems[0]));break;case 35:case 34:n.stopPropagation(g);n.preventDefault(g);this.menuItems&&0<this.menuItems.length&&this.setFocus(n.selectFirstElement("button",
    this.menuItems[this.menuItems.length-1]));break;case 27:(g=n.selectFirstElement(a.contextMenuSelector,this.contextMenuContainer))&&g.setAttribute("aria-hidden","true"),this.videoPlayer.setFocusOnPlayButton()}};a.prototype.setupCustomizeContextMenu=function(d){var g=n.selectFirstElement(a.contextMenuSelector,this.contextMenuContainer);g&&this.contextMenuContainer.removeChild(g);var h=1;g="\x3cul role\x3d'menu' class\x3d'c-list f-bare'\x3e";for(var c=0;c<d.length;c++){var e=d[c],b="c-action-trigger active";
    b+=e.glyph?" "+e.glyph:"";g+="\x3cli id\x3d'"+e.id+"' role\x3d'presentation'\x3e\n                    \x3cbutton class\x3d'"+b+"'  role\x3d'menuitem'\n                        aria-setsize\x3d'"+d.length+"' \n                        aria-posinset\x3d'"+h++ +"'\n                        aria-label\x3d'"+e.label+"'\n                        data-category\x3d'"+e.category+"'\x3e\n                        "+e.label+"\n                    \x3c/button\x3e\n                \x3c/li\x3e"}d="\x3cdiv class\x3d'f-player-context-menu' aria-hidden\x3d'true'\x3e\n                    "+
    (g+"\x3c/ul\x3e")+"\n                \x3c/div\x3e";g=document.createElement("div");g.innerHTML=d;this.contextMenuContainer.appendChild(g.firstChild);this.initializeCustomPlayerMenus()};a.prototype.setFocus=function(a){a&&setTimeout(function(){a.focus()},0)};a.contextMenuSelector=".f-player-context-menu";return a}();a.ContextMenu=m});r("mwf/button/button",["require","exports","mwf/utilities/observableComponent","mwf/utilities/htmlExtensions","mwf/utilities/utility"],function(m,a,n,d,l){Object.defineProperty(a,
    "__esModule",{value:!0});a.Button=void 0;m=function(a){function g(g){var c=a.call(this,g)||this;c.handleKeydown=function(a){switch(l.getKeyCode(a)){case 32:d.preventDefault(a),c.emitClickEvent()}};c.update();return c}D(g,a);g.prototype.update=function(){this.element&&"A"===this.element.nodeName&&"button"===(this.element.getAttribute("role")||"").toLowerCase()&&d.addEvent(this.element,d.eventTypes.keydown,this.handleKeydown)};g.prototype.teardown=function(){d.removeEvent(this.element,d.eventTypes.keydown,
    this.handleKeydown)};g.prototype.emitClickEvent=function(){d.customEvent(this.element,d.eventTypes.click)};g.selector=".c-button";g.typeName="Button";return g}(n.ObservableComponent);a.Button=m});z(["mwf/button/button","mwf/utilities/componentFactory"],function(m,a){a.ComponentFactory&&a.ComponentFactory.create&&a.ComponentFactory.create([{c:m.Button}])});r("mwf/dialog/dialog","require exports mwf/utilities/publisher mwf/utilities/htmlExtensions mwf/utilities/utility constants/dom-selectors constants/dom-selectors".split(" "),
    function(m,a,n,d,l,g,k){Object.defineProperty(a,"__esModule",{value:!0});a.Dialog=void 0;m=function(a){function c(e){var b=a.call(this,e)||this;b.shouldCloseOnEscape=!1;b.isFlowDialog=!1;b.isLightboxDialog=!1;b.handleTriggerClick=function(a){b.activeButton=d.getEventTargetOrSrcElement(a);b.show()};b.handleTriggerKeyDown=function(a){var c=a.keyCode;if(13===c||32===c)d.preventDefault(a),b.activeButton=d.getEventTargetOrSrcElement(a),b.show()};b.show=function(){var a=d.selectElements(c.pageContentContainerSelector);
    b.pageContentContainers=[];b.element.setAttribute(c.ariaHidden,"false");b.dialogWrapper.tabIndex=0;b.firstInput.focus();b.onResized();b.bodyOverflowX=d.css(document.body,"overflow-x");b.bodyOverflowY=d.css(document.body,"overflow-y");d.css(document.body,"overflow-x","hidden");d.css(document.body,"overflow-y","hidden");b.container.setAttribute(c.ariaHidden,"true");b.checkOverflow();for(var e=0;e<a.length;e++){var g=a[e],h="true"===g.getAttribute(c.ariaHidden);b.pageContentContainers.push({element:g,
    hidden:h});h||g.setAttribute(c.ariaHidden,"true")}b.dialogWrapper.scrollTop=0;b.initiatePublish({notification:1})};b.hide=function(){b.element.setAttribute(c.ariaHidden,"true");d.css(b.dialogWrapper,"height","auto");d.css(document.body,"overflow-x",b.bodyOverflowX);d.css(document.body,"overflow-y",b.bodyOverflowY);b.container.setAttribute(c.ariaHidden,"false");b.dialogWrapper.setAttribute("tabindex","-1");for(var a=0,e=b.pageContentContainers;a<e.length;a++){var g=e[a];g.hidden||g.element.removeAttribute(c.ariaHidden)}b.activeButton&&
    b.activeButton.focus();b.activeButton=null;b.pageContentContainers=[];b.initiatePublish({notification:2})};b.triggerClickPublish=function(a){b.initiatePublish({notification:0,button:d.getEventTargetOrSrcElement(a)})};b.onKeydown=function(a){switch(l.getKeyCode(a)){case 13:case 32:-1!==b.closeButtons.indexOf(d.getEventTargetOrSrcElement(a))?(d.preventDefault(a),b.hide()):-1!==b.customButtons.indexOf(d.getEventTargetOrSrcElement(a))&&b.initiatePublish({notification:0,button:d.getEventTargetOrSrcElement(a)});
    break;case 27:d.preventDefault(a);b.shouldCloseOnEscape&&b.hide();break;case 9:var c=d.getEventTargetOrSrcElement(a),e=b.getLastFocusableInput();c!==e||a.shiftKey?c===b.firstInput&&a.shiftKey&&(d.preventDefault(a),e.focus()):(d.preventDefault(a),b.firstInput.focus())}};b.onResized=function(){b.checkOverflow();b.handleResponsive()};b.checkOverflow=function(){d.getClientRect(b.dialogWrapper).height<b.dialogWrapper.scrollHeight?b.isScroll||d.css(b.dialogWrapper,"overflow-y","auto"):d.css(b.dialogWrapper,
    "overflow-y","hidden")};b.handleResponsive=function(){if("false"===b.element.getAttribute(c.ariaHidden)){var a=d.getClientRect(b.dialogWrapper);b.isFlowDialog&&!b.isScroll?a.height<b.dialogWrapper.scrollHeight?(d.css(b.dialogWrapper,"max-height",c.heightCalculationString),d.css(b.dialogWrapper,"height","100%")):d.css(b.dialogWrapper,"max-height","100%"):b.isScroll&&(a.height+c.heightCalculationValue>window.innerHeight&&"inherit"!==d.css(b.dialogInnerContent,"height")?(d.css(b.dialogWrapper,"height",
    c.heightCalculationString),d.css(b.dialogInnerContent,"height","inherit")):"auto"!==d.css(b.dialogInnerContent,"height")&&(d.css(b.dialogWrapper,"height","auto"),a=d.getClientRect(b.dialogWrapper),a.height+c.heightCalculationValue<window.innerHeight?(d.css(b.dialogInnerContent,"height","auto"),b.element.setAttribute(c.ariaHidden,"true"),b.element.setAttribute(c.ariaHidden,"false"),b.checkOverflow()):d.css(b.dialogWrapper,"height",c.heightCalculationString)))}};b.appendDialog=function(){b.ignoreNextDOMChange=
    !0;b.element&&b.element.parentElement!==document.body&&document.body.appendChild(b.element)};b.getLastFocusableInput=function(){for(var a=b.dialogInputs.length-1;0<=a;a--)if(!b.dialogInputs[a].hidden&&"disabled"!==b.dialogInputs[a].getAttribute("disabled"))return b.dialogInputs[a];return b.dialogWrapper};b.update();return b}D(c,a);c.prototype.update=function(){if(this.element&&this.element.id&&(this.dialogId=this.element.id,this.dialogWrapper=d.selectFirstElement("div[role\x3ddialog]",this.element),
    this.dialogInnerContent=d.selectFirstElement('[role\x3d"document"]',this.element),this.openButtons=d.selectElements("[data-js-dialog-show\x3d"+this.dialogId+"]"),this.closeButtons=d.selectElements(c.closeSelector,this.element),this.dialogInputs=d.selectElements(k.DialogTabbableSelectors,this.element),this.customButtons=d.selectElements(c.customButtonSelector,this.element),this.appendDialog(),this.container=d.selectFirstElement('[data-grid*\x3d"container"]'),this.overlay=d.selectFirstElement('[role\x3d"presentation"]',
    this.element),this.isScroll=d.selectFirstElement(c.scrollSelector,this.element),d.hasClass(this.element,"f-flow")&&(this.isFlowDialog=!0),d.hasClass(this.element,"f-lightbox")&&(this.isLightboxDialog=!0),this.dialogWrapper&&this.dialogInputs&&this.dialogInputs.length&&this.container&&this.overlay)){if(this.isLightboxDialog)-1===this.closeButtons.indexOf(this.overlay)&&this.closeButtons.push(this.overlay),this.dialogWrapper.removeAttribute("tabIndex"),this.dialogInputs.splice(1,0,this.dialogWrapper),
    this.shouldCloseOnEscape=!0;else if(this.isFlowDialog){for(var a=0;a<this.closeButtons.length;a++){var b=this.closeButtons[a];if(d.hasClass(b,"c-glyph")&&d.hasClass(b,"glyph-cancel")){this.closeButtons.push(this.overlay);this.shouldCloseOnEscape=!0;break}}this.dialogInputs.splice(0,0,this.dialogWrapper)}this.firstInput=this.dialogInputs[0];d.addEvent(this.openButtons,d.eventTypes.click,this.handleTriggerClick);d.addEvent(this.openButtons,d.eventTypes.keydown,this.handleTriggerKeyDown);d.addEvent(this.closeButtons,
    d.eventTypes.click,this.hide);d.addEvent(this.customButtons,d.eventTypes.click,this.triggerClickPublish);d.addEvent(this.element,d.eventTypes.keydown,this.onKeydown);this.resizeThrottledEventHandler=d.addThrottledEvent(window,d.eventTypes.resize,this.onResized);if("false"===this.element.getAttribute(c.ariaHidden))this.onResized()}};c.prototype.teardown=function(){d.removeEvent(this.openButtons,d.eventTypes.click,this.handleTriggerClick);d.removeEvent(this.openButtons,d.eventTypes.keydown,this.handleTriggerKeyDown);
    d.removeEvent(this.closeButtons,d.eventTypes.click,this.hide);d.removeEvent(this.customButtons,d.eventTypes.click,this.triggerClickPublish);d.removeEvent(this.element,d.eventTypes.keydown,this.onKeydown);d.removeEvent(window,d.eventTypes.resize,this.resizeThrottledEventHandler)};c.prototype.publish=function(a,b){switch(b.notification){case 0:if(a&&a.onButtonClicked)a.onButtonClicked(b);break;case 1:if(a&&a.onShown)a.onShown();break;case 2:if(a&&a.onHidden)a.onHidden()}};c.selector=g.VideoDialogSelectors.DIALOG;
    c.typeName="Dialog";c.closeSelector="[data-js-dialog-hide]";c.customButtonSelector='button[type\x3d"button"]';c.ariaHidden="aria-hidden";c.scrollSelector=".f-dialog-scroll";c.heightCalculationValue=24;c.heightCalculationString="calc(100% - "+c.heightCalculationValue.toString()+"px)";c.pageContentContainerSelector='[data-js-controlledby\x3d"dialog"]';return c}(n.Publisher);a.Dialog=m});z(["mwf/selectMenu/selectMenu","mwf/utilities/componentFactory"],function(m,a){a.ComponentFactory&&a.ComponentFactory.create&&
    a.ComponentFactory.create([{component:m.SelectMenu}])});z(["mwf/slider/slider","mwf/utilities/componentFactory"],function(m,a){a.ComponentFactory&&a.ComponentFactory.create&&a.ComponentFactory.create([{component:m.Slider}])});r("standalone-apis/oneplayer-css-loader",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.OnePlayerCssLoader=void 0;m=function(){function a(){}a.loadCss=function(d,l){l&&"function"===typeof l&&(a.cssLoaded?l():a.onLoadedCallbacks.push(l));
    if(!a.cssLoadTriggered){a.cssLoadTriggered=!0;d=d||"en-us";"%"===a.playerCssHost[0]&&(a.playerCssHost=a.defaultPlayerCssHost);l=document.createElement("link");l.setAttribute("rel","stylesheet");l.setAttribute("type","text/css");if(0<=a.url.indexOf("cached"))l.setAttribute("href",a.playerCssHost+"/"+d+a.playerCachedCssRoute);else if(0<=a.url.indexOf("cache")){var g=a.url.split("?");if(0<g.length){var k="0";g=g[1].split("\x26");for(var h=0;h<g.length;h++){var c=g[h].split("\x3d");"v"===c[0]&&(k=c[1])}}"0"!==
    k?l.setAttribute("href",a.playerCssHost+"/"+d+a.playerCacheCssRoute+"?v\x3d"+k):l.setAttribute("href",a.playerCssHost+"/"+d+a.playerCachedCssRoute)}else l.setAttribute("href",a.playerCssHost+"/"+d+a.playerCssRoute);l.onload=function(){a.cssLoaded=!0;for(var c=0,b=a.onLoadedCallbacks;c<b.length;c++){var d=b[c];d&&d()}};l.onerror=function(){a.cssLoadTriggered=!1};document.getElementsByTagName("head")[0].appendChild(l)}};a.playerCssHost="%playerCssHost%";a.url="%url%";a.defaultPlayerCssHost="https://www.microsoft.com";
    a.playerCssRoute="/videoplayer/css/oneplayer.css";a.playerCachedCssRoute="/videoplayer/css/cached/oneplayer.css";a.playerCacheCssRoute="/videoplayer/css/cache/oneplayer.css";a.cssLoadTriggered=!1;a.cssLoaded=!1;a.onLoadedCallbacks=[];return a}();a.OnePlayerCssLoader=m});r("standalone-apis/oneplayer-initialize",["require","exports","constants/enums"],function(m,a,n){Object.defineProperty(a,"__esModule",{value:!0});a.VideoPlayerModule=void 0;m=function(){function a(a){var d=this;this.bindVideoPlayerEvents=
    function(){d.currentVideoPlayerById.addEventListener("play",function(a){d.triggerPageActionOnVideoPlayPauseEvent(a,window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOSTART||n.awaBehaviorTypes.VIDEOSTART)});d.currentVideoPlayerById.addEventListener("pause",function(a){d.triggerPageActionOnVideoPlayPauseEvent(a,window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOPAUSE||n.awaBehaviorTypes.VIDEOPAUSE)});d.currentVideoPlayerById.addEventListener("timeupdate",function(a){var g=window.awa&&
    window.awa.behavior&&window.awa.behavior.VIDEOCHECKPOINT||n.awaBehaviorTypes.VIDEOCHECKPOINT,c=Math.floor(a.target.currentTime);0===c%n.videoCheckpoint.TIME&&d.previousTime!==c&&(d.triggerPageActionOnVideoProgressEvent(a,g),d.previousTime=c)});d.currentVideoPlayerById.addEventListener("ended",function(a){d.triggerPageActionOnVideoEndEvent(a,window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOCOMPLETE||n.awaBehaviorTypes.VIDEOCOMPLETE)})};a&&a.dataset&&a.dataset.video&&(this.playerContainerElementId=
    a.getAttribute("id"),this.playerData=JSON.parse(a.dataset.video),this.originalTelemetryDataObject=null,a&&a.dataset&&a.dataset.m&&(this.originalTelemetryDataObject=JSON.parse(a.dataset.m)),this.videoEventsNotBound=!0,this.previousWatchTimePercentage=this.previousTime=0,this.playerAPI=function(g){d.videoPlayer=g;g.addPlayerEventListener(function(g){d.originalTelemetryDataObject&&d.videoEventsNotBound&&(d.playerData.options.autoplay?(g=a.getElementsByClassName("f-video-player"),d.currentVideoPlayerById=
    g&&g.length?g[0]instanceof HTMLVideoElement?g[0]:g[0].querySelector(".vjs-tech"):null):(g=a.getElementsByClassName("vjs-tech"),d.currentVideoPlayerById=g&&g.length?g[0]instanceof HTMLVideoElement?g[0]:null:null),d.currentVideoPlayerById instanceof HTMLVideoElement?(d.bindVideoPlayerEvents(),d.videoEventsNotBound=!1):d.videoEventsNotBound=!0)})},this.renderOnePlayer())}a.prototype.renderOnePlayer=function(){var a=this;window.MsOnePlayer.render(this.playerContainerElementId,this.playerData,function(d){a.playerAPI(d)})};
    a.prototype.createVideoOverrideValues=function(a,d){var g=Math.round(this.currentVideoPlayerById.currentTime),h=this.originalTelemetryDataObject;return{behavior:d,actionType:a,contentTags:{containerName:"oneplayer",bhvr:d,vidnm:h.vidnm,vidid:h.vidid,viddur:h.viddur,vidwt:g,vidpct:Math.round(100*g/Math.round(this.currentVideoPlayerById.duration)),id:h.id,cN:h.cN,tags:{BiLinkName:h.tags.BiLinkName}}}};a.prototype.triggerPageActionOnVideoPlayPauseEvent=function(a,d){a=Math.round(this.currentVideoPlayerById.currentTime);
    var g=window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOREPLAY||n.awaBehaviorTypes.VIDEOREPLAY,h=window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOSTART||n.awaBehaviorTypes.VIDEOSTART,c=window.awa&&window.awa.behavior&&window.awa.behavior.VIDEOCONTINUE||n.awaBehaviorTypes.VIDEOCONTINUE;d=0===a&&this.hasVideoEnded?g:0<a&&d===h?c:d;d=this.createVideoOverrideValues("O",d);this.callPageActionEvent(d)};a.prototype.triggerPageActionOnVideoProgressEvent=function(a,d){a=Math.round(100*Math.round(this.currentVideoPlayerById.currentTime)/
    Math.round(this.currentVideoPlayerById.duration));a!==this.previousWatchTimePercentage&&(0<a&&100>a&&0===a%n.videoCheckpoint.PERCENTAGE&&(d=this.createVideoOverrideValues("AT",d),this.callPageActionEvent(d)),this.previousWatchTimePercentage=a)};a.prototype.triggerPageActionOnVideoEndEvent=function(a,d){this.hasVideoEnded=!0;a=this.createVideoOverrideValues("AT",d);this.callPageActionEvent(a)};a.prototype.callPageActionEvent=function(a){a&&window.awa&&window.awa.ct&&"function"===typeof window.awa.ct.captureContentPageAction&&
    window.awa.ct.captureContentPageAction(a)};a.prototype.disposeVideoPlayer=function(){this.videoPlayer&&this.videoPlayer.dispose&&this.videoPlayer.dispose()};return a}();a.VideoPlayerModule=m});(function(m){function a(a){z(["standalone-apis/oneplayer-inline"],function(g){g&&g.OnePlayerInline&&(m.player||(m.player=new g.OnePlayerInline),m.updatePlayerSource||(m.updatePlayerSource=d),a())})}function n(d,g,k){z(["standalone-apis/oneplayer-inline"],function(h){h&&h.OnePlayerInline&&a(function(){m.player.render(d,
    g,k)})})}function d(a){z(["standalone-apis/oneplayer-inline"],function(d){d&&d.OnePlayerInline&&m.player.updatePlayerSource(a)})}m.render||(m.render=n)})(window.MsOnePlayer||(window.MsOnePlayer={}));r("standalone-apis/oneplayer-inline",["require","exports","video-player/video-player","mwf/utilities/htmlExtensions","mwf/utilities/componentFactory"],function(m,a,n,d,l){Object.defineProperty(a,"__esModule",{value:!0});a.OnePlayerInline=void 0;m=function(){function a(){}a.prototype.render=function(a,
    g,c){var e=this;if(a=document.getElementById(a)){this.playerData=g;var b=document.createElement("div");d.addClass(b,"c-video-player");b.setAttribute("data-player-data",JSON.stringify({options:{autoload:!1,adsEnabled:!1}}));a.appendChild(b);l.ComponentFactory.create([{component:n.VideoPlayer,elements:[b],callback:function(a){a&&a.length&&1===a.length&&(e.playerObject=a[0],e.playerObject.load(g),e.onPlayerCreated(e.playerObject,c))}}])}};a.prototype.onPlayerCreated=function(a,d){var c=this;a.currentPlayer?
    d&&d(a):setTimeout(function(){c.onPlayerCreated(a,d)},50)};a.prototype.updatePlayerSource=function(a){this.playerData=a;this.playerObject.updatePlayerSource(this.playerData)};return a}();a.OnePlayerInline=m});r("utilities/generate-id",["require","exports"],function(m,a){Object.defineProperty(a,"__esModule",{value:!0});a.uid=void 0;a.uid=function(){var a=new Uint32Array(3);window.crypto.getRandomValues(a);return(performance.now().toString(36)+Array.from(a).map(function(a){return a.toString(36)}).join("")).replace(/\./g,
    "")}});r("video-dialog/video-dialog-initialize","require exports mwf/utilities/componentFactory mwf/dialog/dialog constants/events constants/enums constants/class-names constants/attributes standalone-apis/oneplayer-initialize constants/dom-selectors utilities/generate-id mwf/utilities/htmlExtensions".split(" "),function(m,a,n,d,l,g,k,h,c,e,b,f){Object.defineProperty(a,"__esModule",{value:!0});a.videoDialogInitialize=void 0;a.videoDialogInitialize=function(a){var f=[];a&&a.length&&(a.forEach(function(a){var c=
    a.querySelector(e.VideoDialogSelectors.DIALOG);if(c){var d=""+g.VideoPlayerIdPrefix.DIALOG+b.uid();c.id=d;a.querySelector(e.VideoDialogSelectors.DIALOG_BUTTON).setAttribute("data-js-dialog-show",d);f.push(c)}}),n.ComponentFactory.create([{c:d.Dialog,elements:f,callback:function(a){var b,d;a&&a.length&&Array.prototype.forEach.call(a,function(a){var f=a.element.querySelector(e.VideoSelectors.VIDEO_PLAYER_CTN);a.subscribe({onShown:function(){f&&window&&window.MsOnePlayer&&"true"!==f.dataset.isInitialized&&
    (b=new c.VideoPlayerModule(f),f.dataset.isInitialized="true",d=new r(a.element),d.hideSiblingsFromScreenReader());a.update()},onHidden:function(){b.videoPlayer&&b.videoPlayer.dispose&&b.videoPlayer.dispose();if(f){for(f.dataset.isInitialized=!1;f.firstChild;)f.removeChild(f.lastChild);d.removeMWFDialogAttributeFromSiblings()}}})})},eventToBind:l.Events.DOM_CONTENT_LOADED}]))};var r=function(){function a(a){this.hideSiblingsFromScreenReader=this.hideSiblingsFromScreenReader.bind(this);this.getSiblings=
    this.getSiblings.bind(this);a&&(this.videoDialog=a,this.dialogSiblings=this.getSiblings(this.videoDialog))}a.prototype.hideSiblingsFromScreenReader=function(){this.dialogSiblings&&(this.dialogSiblingsHiddenFromSR=this.dialogSiblings.filter(function(a){console.log(a);if("true"!==a.getAttribute(g.Attributes.ARIA_HIDDEN))return f.addAttribute(a,[h.MWFJsControlledBy,h.AriaHiddenTrue]),a}))};a.prototype.removeMWFDialogAttributeFromSiblings=function(){this.dialogSiblingsHiddenFromSR&&this.dialogSiblingsHiddenFromSR.forEach(function(a){a.removeAttribute("data-js-controlledby");
    a.classList.contains(k.VideoClassNames.VIDEO_DIALOG)||a.classList.contains(k.VideoClassNames.VIDEO_DIALOG_MWF)||a.removeAttribute(g.Attributes.ARIA_HIDDEN)})};a.prototype.getSiblings=function(a){for(var b=[],c=a.parentNode.firstChild;c;c=c.nextSibling)1===c.nodeType&&c!==a&&"SCRIPT"!==c.nodeName&&"NOSCRIPT"!==c.nodeName&&"STYLE"!==c.nodeName&&b.push(c);return b};return a}()});r("video-inline/video-inline-initialize","require exports constants/dom-selectors constants/class-names standalone-apis/oneplayer-initialize constants/enums utilities/generate-id mwf/utilities/htmlExtensions".split(" "),
    function(m,a,n,d,l,g,k,h){Object.defineProperty(a,"__esModule",{value:!0});a.videoInlineInitializeRT=a.videoInlineInitialize=void 0;a.videoInlineInitialize=function(a){a&&a.length&&a.forEach(function(a){if(a=a.querySelector(n.VideoSelectors.VIDEO_PLAYER_CTN)){var b=""+g.VideoPlayerIdPrefix.INLINE+k.uid();a.id=b;window&&window.MsOnePlayer&&"true"!==a.dataset.isInitialized&&(new l.VideoPlayerModule(a),a.dataset.isInitialized="true")}})};a.videoInlineInitializeRT=function(a){if(a&&a.length){var c;a.forEach(function(a){h.hasClass(a,
    d.VideoClassNames.VIDEO_PLAYER_CTN)&&(c=a);c&&(a=""+g.VideoPlayerIdPrefix.INLINE+k.uid(),c.id=a,window&&window.MsOnePlayer&&"true"!==c.dataset.isInitialized&&(new l.VideoPlayerModule(c),c.dataset.isInitialized="true"))})}}});r("video-initialize/video-initialize","require exports constants/dom-selectors constants/class-names constants/enums mwf/utilities/htmlExtensions video-inline/video-inline-initialize video-dialog/video-dialog-initialize".split(" "),function(m,a,n,d,l,g,k,h){Object.defineProperty(a,
    "__esModule",{value:!0});a.VideoInitialize=void 0;m=function(){return function(){var a=this;this.getVideoContainersByType=function(b){g.htmlCollectionToArray(b).forEach(function(b){var c=b.dataset.videoType;if(c)switch(c.toLowerCase()){case l.VideoType.INLINE:a.videoInlineContainers.push(b);break;case l.VideoType.DIALOG:a.videoDialogContainers.push(b)}else b.querySelector(n.VideoDialogSelectors.DIALOG)?a.videoDialogContainers.push(b):b.dataset.video&&(c=b.parentElement.getAttribute("role"),g.hasClass(b,
    d.VideoClassNames.VIDEO_PLAYER_CTN)&&"dialog"!==c&&a.videoInlineContainersRT.push(b))})};var e=document.querySelectorAll(n.VideoSelectors.VIDEO_CTN),b=document.querySelectorAll(n.VideoSelectors.VIDEO_CTN_RT),f=document.querySelectorAll(n.VideoSelectors.VIDEO_PLAYER_CTN_RT);if(e||b)this.videoInlineContainers=[],this.videoDialogContainers=[],this.getVideoContainersByType(e),this.getVideoContainersByType(b),this.videoInlineContainers.length&&k.videoInlineInitialize(this.videoInlineContainers),this.videoDialogContainers.length&&
    h.videoDialogInitialize(this.videoDialogContainers);f&&(this.videoInlineContainersRT=[],this.getVideoContainersByType(f),this.videoInlineContainersRT.length&&k.videoInlineInitializeRT(this.videoInlineContainersRT))}}();a.VideoInitialize=m});z(["video-initialize/video-initialize"],function(m){m&&m.VideoInitialize&&("complete"===document.readyState||"interactive"===document.readyState?new m.VideoInitialize:document.addEventListener("DOMContentLoaded",new m.VideoInitialize,!1))});z(["video-player/video-player",
    "mwf/utilities/componentFactory"],function(m,a){a.ComponentFactory&&a.ComponentFactory.create&&a.ComponentFactory.create([{component:m.VideoPlayer}])})})();