/*! For license information please see ump.mjs.LICENSE.txt */ var e,t,n,i,r={7495:(e,t,n)=>{var i=n(9840);e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=a;if(t)if(i.TextDecoder){var s=(void 0===(l=r.headers&&r.headers["content-type"])&&(l=""),l.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8"));try{o=new TextDecoder(s).decode(a)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a);var l}}},1036:(e,t,n)=>{var i=n(9840),r=n(4634),a=n(7056);l.httpHandler=n(7495);var o=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t};function s(e,t,n){var i=e;return a(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function l(e,t,n){return u(t=s(e,t,n))}function u(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(c),v)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function a(){if(!u){var t;clearTimeout(d),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=y,a=null;return 0!==t?(r={body:i(),statusCode:t,method:p,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=o(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var s,u,c=e.xhr||null;c||(c=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var d,h=c.url=e.uri||e.url,p=c.method=e.method||"GET",f=e.body||e.data,m=c.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="applicationhttps://www.microsoft.com/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="applicationhttps://www.microsoft.com/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=r,c.open(p,h,!g,e.username,e.password),g||(c.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}),e.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}e.exports=l,e.exports.default=l,l.XMLHttpRequest=i.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n{function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var i=n({HTML:"text/html",isHTML:function(e){return e===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i{var i=n(4582),r=n(4722),a=n(6559),o=n(4466),s=r.DOMImplementation,l=i.NAMESPACE,u=o.ParseError,c=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,i=new c,r=n.domBuilder||new p,o=n.errorHandler,s=n.locator,u=n.xmlns||{},h=/\/x?html?$/.test(t),f=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&r.setDocumentLocator(s),i.errorHandler=function(e,t,n){if(!e){if(t instanceof p)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(o,r,s),i.domBuilder=n.domBuilder||r,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=n.normalizeLineEndings||d;return e&&"string"==typeof e?i.parse(g(e),u,f):i.errorHandler.error("invalid doc source"),r.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;v(this,a),this.currentElement=a,this.locator&&f(this.locator,a);for(var s=0;s{var i=n(4582),r=i.find,a=i.NAMESPACE;function o(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(s,{}))}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function c(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,u(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},h=d.ELEMENT_NODE=1,p=d.ATTRIBUTE_NODE=2,f=d.TEXT_NODE=3,m=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,v=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,b=d.COMMENT_NODE=8,_=d.DOCUMENT_NODE=9,T=d.DOCUMENT_TYPE_NODE=10,S=d.DOCUMENT_FRAGMENT_NODE=11,w=d.NOTATION_NODE=12,k={},C={},E=(k.INDEX_SIZE_ERR=(C[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),j=(k.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),k.NOT_FOUND_ERR=(C[8]="Not found",8)),x=(k.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10));function A(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,A);return n.code=e,t&&(this.message=this.message+": "+t),n}function I(){}function P(e,t){this._node=e,this._refresh=t,D(this)}function D(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ye(e,"length",n.length),!e.$$length||n.length=0))throw new A(j,new Error(e.tagName+"@"+n));for(var r=t.length-1;i"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function F(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(F(e,t))return!0}while(e=e.nextSibling)}function V(){this.ownerDocument=this}function q(e,t,n,i){e&&e._inc++,n.namespaceURI===a.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function z(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a,delete i[i.length]}}}function H(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,z(e.ownerDocument,e),t}function W(e){return e&&e.nodeType===U.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===U.ELEMENT_NODE}function X(e){return e&&e.nodeType===U.TEXT_NODE}function K(e,t){var n=e.childNodes||[];if(r(n,G)||W(t))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Y(e,t){var n=e.childNodes||[];if(r(n,(function(e){return G(e)&&e!==t})))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Q(e,t,n){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var o=a.filter(G);if(o.length>1||r(a,X))throw new A(E,"More than one element or text in fragment");if(1===o.length&&!K(e,n))throw new A(E,"Element in fragment can not be inserted before doctype")}if(G(t)&&!K(e,n))throw new A(E,"Only one element can be added and only after doctype");if(W(t)){if(r(i,W))throw new A(E,"Only one doctype is allowed");var s=r(i,G);if(n&&i.indexOf(s)1||r(a,X))throw new A(E,"More than one element or text in fragment");if(1===o.length&&!Y(e,n))throw new A(E,"Element in fragment can not be inserted before doctype")}if(G(t)&&!Y(e,n))throw new A(E,"Only one element can be added and only after doctype");if(W(t)){function l(e){return W(e)&&e!==n}if(r(i,l))throw new A(E,"Only one doctype is allowed");var s=r(i,G);if(n&&i.indexOf(s)=0;w--)if(""===(k=r[w]).prefix&&k.namespace===e.namespaceURI){d=k.namespace;break}if(d!==e.namespaceURI)for(w=r.length-1;w>=0;w--){var k;if((k=r[w]).namespace===e.namespaceURI){k.prefix&&(c=k.prefix+":"+u);break}}}t.push("<",c);for(var C=0;C"),n&&/^script$/i.test(u))for(;l;)l.data?t.push(l.data):me(l,t,n,i,r.slice()),l=l.nextSibling;else for(;l;)me(l,t,n,i,r.slice()),l=l.nextSibling;t.push("")}else t.push("/>");return;case _:case S:for(l=e.firstChild;l;)me(l,t,n,i,r.slice()),l=l.nextSibling;return;case p:return fe(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,B));case m:return t.push("");case b:return t.push("\x3c!--",e.data,"--\x3e");case T:var A=e.publicId,I=e.systemId;if(t.push("");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case y:return t.push("");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,n){var i;switch(t.nodeType){case h:(i=t.cloneNode(!1)).ownerDocument=e;case S:break;case p:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(ge(e,r,n)),r=r.nextSibling;return i}function ve(e,t,n){var i=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new I),i.ownerDocument=e,i.nodeType){case h:var o=t.attributes,s=i.attributes=new L,l=o.length;s._ownerElement=i;for(var u=0;u=0&&e0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(d,U),u(d,U.prototype),V.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return $(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){$(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),G(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return F(this.documentElement,(function(n){if(n.nodeType==h&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=l(e);return new P(this,(function(n){var i=[];return t.length>0&&F(n.documentElement,(function(r){if(r!==n&&r.nodeType===h){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=l(a);o=t.every((u=s,function(e){return u&&-1!==u.indexOf(e)}))}o&&i.push(r)}}var u})),i}))},createElement:function(e){var t=new Z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new I,(t.attributes=new L)._ownerElement=t,t},createDocumentFragment:function(){var e=new ue;return e.ownerDocument=this,e.childNodes=new I,e},createTextNode:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ce;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Z,i=t.split(":"),r=n.attributes=new L;return n.childNodes=new I,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new ee,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},c(V,U),Z.prototype={nodeType:h,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,z(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var n=[];return F(t,(function(i){i===t||i.nodeType!=h||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(n){var i=[];return F(n,(function(r){r===n||r.nodeType!==h||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},V.prototype.getElementsByTagName=Z.prototype.getElementsByTagName,V.prototype.getElementsByTagNameNS=Z.prototype.getElementsByTagNameNS,c(Z,U),ee.prototype.nodeType=p,c(ee,U),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(C[E])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},c(te,U),ne.prototype={nodeName:"#text",nodeType:f,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},c(ne,te),ie.prototype={nodeName:"#comment",nodeType:b},c(ie,te),re.prototype={nodeName:"#cdata-section",nodeType:m},c(re,te),ae.prototype.nodeType=T,c(ae,U),oe.prototype.nodeType=w,c(oe,U),se.prototype.nodeType=v,c(se,U),le.prototype.nodeType=g,c(le,U),ue.prototype.nodeName="#document-fragment",ue.prototype.nodeType=S,c(ue,U),ce.prototype.nodeType=y,c(ce,U),de.prototype.serializeToString=function(e,t,n){return he.call(e,t,n)},U.prototype.toString=he;try{if(Object.defineProperty){function be(e){switch(e.nodeType){case h:case S:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(be(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return be(this)},set:function(e){switch(this.nodeType){case h:case S:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ye=function(e,t,n){e["$$"+t]=n}}}catch(_e){}t.DocumentType=ae,t.DOMException=A,t.DOMImplementation=R,t.Element=Z,t.Node=U,t.NodeList=I,t.XMLSerializer=de},6559:(e,t,n)=>{var i=n(4582).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},8978:(e,t,n)=>{var i=n(4722);i.DOMImplementation,i.XMLSerializer,t.DOMParser=n(5752).DOMParser},4466:(e,t,n)=>{var i=n(4582).NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function c(e,t,n,r,a,o){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),i)}for(var l,u=++t,c=0;;){var d=e.charAt(u);switch(d){case"=":if(1===c)l=e.slice(t,u),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),l=e.slice(t,u)),t=u+1,!((u=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,h=e.slice(t,u),t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');s(l,h=e.slice(t,u),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=u+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,u));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case 0:n.setTagName(e.slice(t,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,u)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===c&&(h=l),4==c?(o.warning('attribute "'+h+'" missed quot(")!'),s(l,h,t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return u;case"€":d=" ";default:if(d<=" ")switch(c){case 0:n.setTagName(e.slice(t,u)),c=6;break;case 1:l=e.slice(t,u),c=2;break;case 4:var h=e.slice(t,u);o.warning('attribute "'+h+'" missed quot(")!!'),s(l,h,t);case 5:c=6}else switch(c){case 2:n.tagName,i.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=u,c=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:c=1,t=u;break;case 3:c=4,t=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function d(e,t,n){for(var r=e.tagName,a=null,o=e.length;o--;){var s=e[o],l=s.qName,u=s.value;if((p=l.indexOf(":"))>0)var c=s.prefix=l.slice(0,p),d=l.slice(p+1),h="xmlns"===c&&d;else d=l,c=null,h="xmlns"===l&&"";s.localName=d,!1!==h&&(null==a&&(a={},f(n,n={})),n[h]=a[h]=u,s.uri=i.XMLNS,t.startPrefixMapping(h,u))}for(o=e.length;o--;)(c=(s=e[o]).prefix)&&("xml"===c&&(s.uri=i.XML),"xmlns"!==c&&(s.uri=n[c||""]));var p;(p=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,p),d=e.localName=r.slice(p+1)):(c=null,d=e.localName=r);var m=e.uri=n[c||""];if(t.startElement(m,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(m,d,r),a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&t.endPrefixMapping(c)}function h(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function p(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf(""))t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],l=!1,u=!1;o>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[o-1];return n.startDTD(s,l,u),n.endDTD(),c.index+c[0].length}return-1}function g(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(t,t={}),function(e,t,n,r,a){function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function l(t){if(t>k){var n=e.substring(k,t).replace(/&#?\w+;/g,o);T&&f(k),r.characters(n,0,t-k),k=t}}function f(t,n){for(;t>=b&&(n=_.exec(e));)y=n.index,b=y+n[0].length,T.lineNumber++;T.columnNumber=t-y+1}for(var y=0,b=0,_=/.*(?:\r\n?|\n)|.*$/g,T=r.locator,S=[{currentNSMap:t}],w={},k=0;;){try{var C=e.indexOf("<",k);if(C<0){if(!e.substr(k).match(/^\s*$/)){var E=r.doc,j=E.createTextNode(e.substr(k));E.appendChild(j),r.currentElement=j}return}switch(C>k&&l(C),e.charAt(C+1)){case"/":var x=e.indexOf(">",C+3),A=e.substring(C+2,x).replace(/[ \t\n\r]+$/g,""),I=S.pop();x<0?(A=e.substring(C+2).replace(/[\s<].*/,""),a.error("end tag name: "+A+" is not complete:"+I.tagName),x=C+1+A.length):A.match(/\sk?k=x:l(Math.max(C,k)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},v.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=s},3024:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a),s=n(4417),l=n.n(s),u=new URL(n(6184),n.b),c=o()(r()),d=l()(u);c.push([e.id,`@charset "UTF-8";\n.vjs-modal-dialog .vjs-modal-dialog-content, .video-js .vjs-modal-dialog, .vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {\n text-align: center;\n}\n\n@font-face {\n font-family: VideoJS;\n src: url(${d}) format("woff");\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-play, .video-js .vjs-play-control .vjs-icon-placeholder, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-play:before, .video-js .vjs-play-control .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {\n content: "\\f101";\n}\n\n.vjs-icon-play-circle {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-play-circle:before {\n content: "\\f102";\n}\n\n.vjs-icon-pause, .video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-pause:before, .video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before {\n content: "\\f103";\n}\n\n.vjs-icon-volume-mute, .video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-volume-mute:before, .video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before {\n content: "\\f104";\n}\n\n.vjs-icon-volume-low, .video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-volume-low:before, .video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before {\n content: "\\f105";\n}\n\n.vjs-icon-volume-mid, .video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-volume-mid:before, .video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before {\n content: "\\f106";\n}\n\n.vjs-icon-volume-high, .video-js .vjs-mute-control .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-volume-high:before, .video-js .vjs-mute-control .vjs-icon-placeholder:before {\n content: "\\f107";\n}\n\n.vjs-icon-fullscreen-enter, .video-js .vjs-fullscreen-control .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-fullscreen-enter:before, .video-js .vjs-fullscreen-control .vjs-icon-placeholder:before {\n content: "\\f108";\n}\n\n.vjs-icon-fullscreen-exit, .video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-fullscreen-exit:before, .video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before {\n content: "\\f109";\n}\n\n.vjs-icon-square {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-square:before {\n content: "\\f10a";\n}\n\n.vjs-icon-spinner {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-spinner:before {\n content: "\\f10b";\n}\n\n.vjs-icon-subtitles, .video-js .vjs-subs-caps-button .vjs-icon-placeholder,\n.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,\n.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,\n.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,\n.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js .vjs-subtitles-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-subtitles:before, .video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,\n.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,\n.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,\n.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,\n.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js .vjs-subtitles-button .vjs-icon-placeholder:before {\n content: "\\f10c";\n}\n\n.vjs-icon-captions, .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,\n.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js .vjs-captions-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-captions:before, .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,\n.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js .vjs-captions-button .vjs-icon-placeholder:before {\n content: "\\f10d";\n}\n\n.vjs-icon-chapters, .video-js .vjs-chapters-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-chapters:before, .video-js .vjs-chapters-button .vjs-icon-placeholder:before {\n content: "\\f10e";\n}\n\n.vjs-icon-share {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-share:before {\n content: "\\f10f";\n}\n\n.vjs-icon-cog {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-cog:before {\n content: "\\f110";\n}\n\n.vjs-icon-circle, .vjs-seek-to-live-control .vjs-icon-placeholder, .video-js .vjs-volume-level, .video-js .vjs-play-progress {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-circle:before, .vjs-seek-to-live-control .vjs-icon-placeholder:before, .video-js .vjs-volume-level:before, .video-js .vjs-play-progress:before {\n content: "\\f111";\n}\n\n.vjs-icon-circle-outline {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-circle-outline:before {\n content: "\\f112";\n}\n\n.vjs-icon-circle-inner-circle {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-circle-inner-circle:before {\n content: "\\f113";\n}\n\n.vjs-icon-hd {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-hd:before {\n content: "\\f114";\n}\n\n.vjs-icon-cancel, .video-js .vjs-control.vjs-close-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-cancel:before, .video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before {\n content: "\\f115";\n}\n\n.vjs-icon-replay, .video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-replay:before, .video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before {\n content: "\\f116";\n}\n\n.vjs-icon-facebook {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-facebook:before {\n content: "\\f117";\n}\n\n.vjs-icon-gplus {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-gplus:before {\n content: "\\f118";\n}\n\n.vjs-icon-linkedin {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-linkedin:before {\n content: "\\f119";\n}\n\n.vjs-icon-twitter {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-twitter:before {\n content: "\\f11a";\n}\n\n.vjs-icon-tumblr {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-tumblr:before {\n content: "\\f11b";\n}\n\n.vjs-icon-pinterest {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-pinterest:before {\n content: "\\f11c";\n}\n\n.vjs-icon-audio-description, .video-js .vjs-descriptions-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-audio-description:before, .video-js .vjs-descriptions-button .vjs-icon-placeholder:before {\n content: "\\f11d";\n}\n\n.vjs-icon-audio, .video-js .vjs-audio-button .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-audio:before, .video-js .vjs-audio-button .vjs-icon-placeholder:before {\n content: "\\f11e";\n}\n\n.vjs-icon-next-item {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-next-item:before {\n content: "\\f11f";\n}\n\n.vjs-icon-previous-item {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-previous-item:before {\n content: "\\f120";\n}\n\n.vjs-icon-picture-in-picture-enter, .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-picture-in-picture-enter:before, .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before {\n content: "\\f121";\n}\n\n.vjs-icon-picture-in-picture-exit, .video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal;\n}\n.vjs-icon-picture-in-picture-exit:before, .video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before {\n content: "\\f122";\n}\n\n.video-js {\n display: block;\n vertical-align: top;\n box-sizing: border-box;\n color: #fff;\n background-color: #000;\n position: relative;\n padding: 0;\n font-size: 10px;\n line-height: 1;\n font-weight: normal;\n font-style: normal;\n font-family: Arial, Helvetica, sans-serif;\n word-break: initial;\n}\n.video-js:-moz-full-screen {\n position: absolute;\n}\n.video-js:-webkit-full-screen {\n width: 100% !important;\n height: 100% !important;\n}\n\n.video-js[tabindex="-1"] {\n outline: none;\n}\n\n.video-js *,\n.video-js *:before,\n.video-js *:after {\n box-sizing: inherit;\n}\n\n.video-js ul {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n list-style-position: outside;\n margin-left: 0;\n margin-right: 0;\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.video-js.vjs-fluid,\n.video-js.vjs-16-9,\n.video-js.vjs-4-3,\n.video-js.vjs-9-16,\n.video-js.vjs-1-1 {\n width: 100%;\n max-width: 100%;\n}\n\n.video-js.vjs-fluid:not(.vjs-audio-only-mode),\n.video-js.vjs-16-9:not(.vjs-audio-only-mode),\n.video-js.vjs-4-3:not(.vjs-audio-only-mode),\n.video-js.vjs-9-16:not(.vjs-audio-only-mode),\n.video-js.vjs-1-1:not(.vjs-audio-only-mode) {\n height: 0;\n}\n\n.video-js.vjs-16-9:not(.vjs-audio-only-mode) {\n padding-top: 56.25%;\n}\n\n.video-js.vjs-4-3:not(.vjs-audio-only-mode) {\n padding-top: 75%;\n}\n\n.video-js.vjs-9-16:not(.vjs-audio-only-mode) {\n padding-top: 177.7777777778%;\n}\n\n.video-js.vjs-1-1:not(.vjs-audio-only-mode) {\n padding-top: 100%;\n}\n\n.video-js.vjs-fill:not(.vjs-audio-only-mode) {\n width: 100%;\n height: 100%;\n}\n\n.video-js .vjs-tech {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.video-js.vjs-audio-only-mode .vjs-tech {\n display: none;\n}\n\nbody.vjs-full-window {\n padding: 0;\n margin: 0;\n height: 100%;\n}\n\n.vjs-full-window .video-js.vjs-fullscreen {\n position: fixed;\n overflow: hidden;\n z-index: 1000;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n}\n\n.video-js.vjs-fullscreen:not(.vjs-ios-native-fs) {\n width: 100% !important;\n height: 100% !important;\n padding-top: 0 !important;\n}\n\n.video-js.vjs-fullscreen.vjs-user-inactive {\n cursor: none;\n}\n\n.vjs-hidden {\n display: none !important;\n}\n\n.vjs-disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.video-js .vjs-offscreen {\n height: 1px;\n left: -9999px;\n position: absolute;\n top: 0;\n width: 1px;\n}\n\n.vjs-lock-showing {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n}\n\n.vjs-no-js {\n padding: 20px;\n color: #fff;\n background-color: #000;\n font-size: 18px;\n font-family: Arial, Helvetica, sans-serif;\n text-align: center;\n width: 300px;\n height: 150px;\n margin: 0px auto;\n}\n\n.vjs-no-js a,\n.vjs-no-js a:visited {\n color: #66A8CC;\n}\n\n.video-js .vjs-big-play-button {\n font-size: 3em;\n line-height: 1.5em;\n height: 1.63332em;\n width: 3em;\n display: block;\n position: absolute;\n top: 10px;\n left: 10px;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n border: 0.06666em solid #fff;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n border-radius: 0.3em;\n transition: all 0.4s;\n}\n.vjs-big-play-centered .vjs-big-play-button {\n top: 50%;\n left: 50%;\n margin-top: -0.81666em;\n margin-left: -1.5em;\n}\n\n.video-js:hover .vjs-big-play-button,\n.video-js .vjs-big-play-button:focus {\n border-color: #fff;\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5);\n transition: all 0s;\n}\n\n.vjs-controls-disabled .vjs-big-play-button,\n.vjs-has-started .vjs-big-play-button,\n.vjs-using-native-controls .vjs-big-play-button,\n.vjs-error .vjs-big-play-button {\n display: none;\n}\n\n.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button {\n display: block;\n}\n\n.video-js button {\n background: none;\n border: none;\n color: inherit;\n display: inline-block;\n font-size: inherit;\n line-height: inherit;\n text-transform: none;\n text-decoration: none;\n transition: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.vjs-control .vjs-button {\n width: 100%;\n height: 100%;\n}\n\n.video-js .vjs-control.vjs-close-button {\n cursor: pointer;\n height: 3em;\n position: absolute;\n right: 0;\n top: 0.5em;\n z-index: 2;\n}\n.video-js .vjs-modal-dialog {\n background: rgba(0, 0, 0, 0.8);\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0));\n overflow: auto;\n}\n\n.video-js .vjs-modal-dialog > * {\n box-sizing: border-box;\n}\n\n.vjs-modal-dialog .vjs-modal-dialog-content {\n font-size: 1.2em;\n line-height: 1.5;\n padding: 20px 24px;\n z-index: 1;\n}\n\n.vjs-menu-button {\n cursor: pointer;\n}\n\n.vjs-menu-button.vjs-disabled {\n cursor: default;\n}\n\n.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu {\n display: none;\n}\n\n.vjs-menu .vjs-menu-content {\n display: block;\n padding: 0;\n margin: 0;\n font-family: Arial, Helvetica, sans-serif;\n overflow: auto;\n}\n\n.vjs-menu .vjs-menu-content > * {\n box-sizing: border-box;\n}\n\n.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu {\n display: none;\n}\n\n.vjs-menu li {\n list-style: none;\n margin: 0;\n padding: 0.2em 0;\n line-height: 1.4em;\n font-size: 1.2em;\n text-align: center;\n text-transform: lowercase;\n}\n\n.vjs-menu li.vjs-menu-item:focus,\n.vjs-menu li.vjs-menu-item:hover,\n.js-focus-visible .vjs-menu li.vjs-menu-item:hover {\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5);\n}\n\n.vjs-menu li.vjs-selected,\n.vjs-menu li.vjs-selected:focus,\n.vjs-menu li.vjs-selected:hover,\n.js-focus-visible .vjs-menu li.vjs-selected:hover {\n background-color: #fff;\n color: #2B333F;\n}\n\n.video-js .vjs-menu *:not(.vjs-selected):focus:not(:focus-visible),\n.js-focus-visible .vjs-menu *:not(.vjs-selected):focus:not(.focus-visible) {\n background: none;\n}\n\n.vjs-menu li.vjs-menu-title {\n text-align: center;\n text-transform: uppercase;\n font-size: 1em;\n line-height: 2em;\n padding: 0;\n margin: 0 0 0.3em 0;\n font-weight: bold;\n cursor: default;\n}\n\n.vjs-menu-button-popup .vjs-menu {\n display: none;\n position: absolute;\n bottom: 0;\n width: 10em;\n left: -3em;\n height: 0em;\n margin-bottom: 1.5em;\n border-top-color: rgba(43, 51, 63, 0.7);\n}\n\n.vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n position: absolute;\n width: 100%;\n bottom: 1.5em;\n max-height: 15em;\n}\n\n.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,\n.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n max-height: 5em;\n}\n\n.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n max-height: 10em;\n}\n\n.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n max-height: 14em;\n}\n\n.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,\n.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,\n.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n max-height: 25em;\n}\n\n.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu,\n.vjs-menu-button-popup .vjs-menu.vjs-lock-showing {\n display: block;\n}\n\n.video-js .vjs-menu-button-inline {\n transition: all 0.4s;\n overflow: hidden;\n}\n\n.video-js .vjs-menu-button-inline:before {\n width: 2.222222222em;\n}\n\n.video-js .vjs-menu-button-inline:hover,\n.video-js .vjs-menu-button-inline:focus,\n.video-js .vjs-menu-button-inline.vjs-slider-active,\n.video-js.vjs-no-flex .vjs-menu-button-inline {\n width: 12em;\n}\n\n.vjs-menu-button-inline .vjs-menu {\n opacity: 0;\n height: 100%;\n width: auto;\n position: absolute;\n left: 4em;\n top: 0;\n padding: 0;\n margin: 0;\n transition: all 0.4s;\n}\n\n.vjs-menu-button-inline:hover .vjs-menu,\n.vjs-menu-button-inline:focus .vjs-menu,\n.vjs-menu-button-inline.vjs-slider-active .vjs-menu {\n display: block;\n opacity: 1;\n}\n\n.vjs-no-flex .vjs-menu-button-inline .vjs-menu {\n display: block;\n opacity: 1;\n position: relative;\n width: auto;\n}\n\n.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu {\n width: auto;\n}\n\n.vjs-menu-button-inline .vjs-menu-content {\n width: auto;\n height: 100%;\n margin: 0;\n overflow: hidden;\n}\n\n.video-js .vjs-control-bar {\n display: none;\n width: 100%;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3em;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n}\n\n.vjs-has-started .vjs-control-bar,\n.vjs-audio-only-mode .vjs-control-bar {\n display: flex;\n visibility: visible;\n opacity: 1;\n transition: visibility 0.1s, opacity 0.1s;\n}\n\n.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n visibility: visible;\n opacity: 0;\n pointer-events: none;\n transition: visibility 1s, opacity 1s;\n}\n\n.vjs-controls-disabled .vjs-control-bar,\n.vjs-using-native-controls .vjs-control-bar,\n.vjs-error .vjs-control-bar {\n display: none !important;\n}\n\n.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,\n.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n\n.vjs-has-started.vjs-no-flex .vjs-control-bar {\n display: table;\n}\n\n.video-js .vjs-control {\n position: relative;\n text-align: center;\n margin: 0;\n padding: 0;\n height: 100%;\n width: 4em;\n flex: none;\n}\n\n.video-js .vjs-control.vjs-visible-text {\n width: auto;\n padding-left: 1em;\n padding-right: 1em;\n}\n\n.vjs-button > .vjs-icon-placeholder:before {\n font-size: 1.8em;\n line-height: 1.67;\n}\n\n.vjs-button > .vjs-icon-placeholder {\n display: block;\n}\n\n.video-js .vjs-control:focus:before,\n.video-js .vjs-control:hover:before,\n.video-js .vjs-control:focus {\n text-shadow: 0em 0em 1em white;\n}\n\n.video-js *:not(.vjs-visible-text) > .vjs-control-text {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.vjs-no-flex .vjs-control {\n display: table-cell;\n vertical-align: middle;\n}\n\n.video-js .vjs-custom-control-spacer {\n display: none;\n}\n\n.video-js .vjs-progress-control {\n cursor: pointer;\n flex: auto;\n display: flex;\n align-items: center;\n min-width: 4em;\n touch-action: none;\n}\n\n.video-js .vjs-progress-control.disabled {\n cursor: default;\n}\n\n.vjs-live .vjs-progress-control {\n display: none;\n}\n\n.vjs-liveui .vjs-progress-control {\n display: flex;\n align-items: center;\n}\n\n.vjs-no-flex .vjs-progress-control {\n width: auto;\n}\n\n.video-js .vjs-progress-holder {\n flex: auto;\n transition: all 0.2s;\n height: 0.3em;\n}\n\n.video-js .vjs-progress-control .vjs-progress-holder {\n margin: 0 10px;\n}\n\n.video-js .vjs-progress-control:hover .vjs-progress-holder {\n font-size: 1.6666666667em;\n}\n\n.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled {\n font-size: 1em;\n}\n\n.video-js .vjs-progress-holder .vjs-play-progress,\n.video-js .vjs-progress-holder .vjs-load-progress,\n.video-js .vjs-progress-holder .vjs-load-progress div {\n position: absolute;\n display: block;\n height: 100%;\n margin: 0;\n padding: 0;\n width: 0;\n}\n\n.video-js .vjs-play-progress {\n background-color: #fff;\n}\n.video-js .vjs-play-progress:before {\n font-size: 0.9em;\n position: absolute;\n right: -0.5em;\n top: -0.3333333333em;\n z-index: 1;\n}\n\n.video-js .vjs-load-progress {\n background: rgba(115, 133, 159, 0.5);\n}\n\n.video-js .vjs-load-progress div {\n background: rgba(115, 133, 159, 0.75);\n}\n\n.video-js .vjs-time-tooltip {\n background-color: #fff;\n background-color: rgba(255, 255, 255, 0.8);\n border-radius: 0.3em;\n color: #000;\n float: right;\n font-family: Arial, Helvetica, sans-serif;\n font-size: 1em;\n padding: 6px 8px 8px 8px;\n pointer-events: none;\n position: absolute;\n top: -3.4em;\n visibility: hidden;\n z-index: 1;\n}\n\n.video-js .vjs-progress-holder:focus .vjs-time-tooltip {\n display: none;\n}\n\n.video-js .vjs-progress-control:hover .vjs-time-tooltip,\n.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip {\n display: block;\n font-size: 0.6em;\n visibility: visible;\n}\n\n.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip {\n font-size: 1em;\n}\n\n.video-js .vjs-progress-control .vjs-mouse-display {\n display: none;\n position: absolute;\n width: 1px;\n height: 100%;\n background-color: #000;\n z-index: 1;\n}\n\n.vjs-no-flex .vjs-progress-control .vjs-mouse-display {\n z-index: 0;\n}\n\n.video-js .vjs-progress-control:hover .vjs-mouse-display {\n display: block;\n}\n\n.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display {\n visibility: hidden;\n opacity: 0;\n transition: visibility 1s, opacity 1s;\n}\n\n.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display {\n display: none;\n}\n\n.vjs-mouse-display .vjs-time-tooltip {\n color: #fff;\n background-color: #000;\n background-color: rgba(0, 0, 0, 0.8);\n}\n\n.video-js .vjs-slider {\n position: relative;\n cursor: pointer;\n padding: 0;\n margin: 0 0.45em 0 0.45em;\n /* iOS Safari */\n -webkit-touch-callout: none;\n /* Safari */\n -webkit-user-select: none;\n /* Konqueror HTML */\n /* Firefox */\n -moz-user-select: none;\n /* Internet Explorer/Edge */\n -ms-user-select: none;\n /* Non-prefixed version, currently supported by Chrome and Opera */\n user-select: none;\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5);\n}\n\n.video-js .vjs-slider.disabled {\n cursor: default;\n}\n\n.video-js .vjs-slider:focus {\n text-shadow: 0em 0em 1em white;\n box-shadow: 0 0 1em #fff;\n}\n\n.video-js .vjs-mute-control {\n cursor: pointer;\n flex: none;\n}\n.video-js .vjs-volume-control {\n cursor: pointer;\n margin-right: 1em;\n display: flex;\n}\n\n.video-js .vjs-volume-control.vjs-volume-horizontal {\n width: 5em;\n}\n\n.video-js .vjs-volume-panel .vjs-volume-control {\n visibility: visible;\n opacity: 0;\n width: 1px;\n height: 1px;\n margin-left: -1px;\n}\n\n.video-js .vjs-volume-panel {\n transition: width 1s;\n}\n.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control, .video-js .vjs-volume-panel:active .vjs-volume-control, .video-js .vjs-volume-panel:focus .vjs-volume-control, .video-js .vjs-volume-panel .vjs-volume-control:active, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control ~ .vjs-volume-control, .video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active {\n visibility: visible;\n opacity: 1;\n position: relative;\n transition: visibility 0.1s, opacity 0.1s, height 0.1s, width 0.1s, left 0s, top 0s;\n}\n.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control ~ .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal {\n width: 5em;\n height: 3em;\n margin-right: 0;\n}\n.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control ~ .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical {\n left: -3.5em;\n transition: left 0s;\n}\n.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active {\n width: 10em;\n transition: width 0.1s;\n}\n.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only {\n width: 4em;\n}\n\n.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {\n height: 8em;\n width: 3em;\n left: -3000em;\n transition: visibility 1s, opacity 1s, height 1s 1s, width 1s 1s, left 1s 1s, top 1s 1s;\n}\n\n.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal {\n transition: visibility 1s, opacity 1s, height 1s 1s, width 1s, left 1s 1s, top 1s 1s;\n}\n\n.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal {\n width: 5em;\n height: 3em;\n visibility: visible;\n opacity: 1;\n position: relative;\n transition: none;\n}\n\n.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,\n.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {\n position: absolute;\n bottom: 3em;\n left: 0.5em;\n}\n\n.video-js .vjs-volume-panel {\n display: flex;\n}\n\n.video-js .vjs-volume-bar {\n margin: 1.35em 0.45em;\n}\n\n.vjs-volume-bar.vjs-slider-horizontal {\n width: 5em;\n height: 0.3em;\n}\n\n.vjs-volume-bar.vjs-slider-vertical {\n width: 0.3em;\n height: 5em;\n margin: 1.35em auto;\n}\n\n.video-js .vjs-volume-level {\n position: absolute;\n bottom: 0;\n left: 0;\n background-color: #fff;\n}\n.video-js .vjs-volume-level:before {\n position: absolute;\n font-size: 0.9em;\n z-index: 1;\n}\n\n.vjs-slider-vertical .vjs-volume-level {\n width: 0.3em;\n}\n.vjs-slider-vertical .vjs-volume-level:before {\n top: -0.5em;\n left: -0.3em;\n z-index: 1;\n}\n\n.vjs-slider-horizontal .vjs-volume-level {\n height: 0.3em;\n}\n.vjs-slider-horizontal .vjs-volume-level:before {\n top: -0.3em;\n right: -0.5em;\n}\n\n.video-js .vjs-volume-panel.vjs-volume-panel-vertical {\n width: 4em;\n}\n\n.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level {\n height: 100%;\n}\n\n.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level {\n width: 100%;\n}\n\n.video-js .vjs-volume-vertical {\n width: 3em;\n height: 8em;\n bottom: 8em;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n}\n\n.video-js .vjs-volume-horizontal .vjs-menu {\n left: -2em;\n}\n\n.video-js .vjs-volume-tooltip {\n background-color: #fff;\n background-color: rgba(255, 255, 255, 0.8);\n border-radius: 0.3em;\n color: #000;\n float: right;\n font-family: Arial, Helvetica, sans-serif;\n font-size: 1em;\n padding: 6px 8px 8px 8px;\n pointer-events: none;\n position: absolute;\n top: -3.4em;\n visibility: hidden;\n z-index: 1;\n}\n\n.video-js .vjs-volume-control:hover .vjs-volume-tooltip,\n.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip {\n display: block;\n font-size: 1em;\n visibility: visible;\n}\n\n.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip,\n.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip {\n left: 1em;\n top: -12px;\n}\n\n.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip {\n font-size: 1em;\n}\n\n.video-js .vjs-volume-control .vjs-mouse-display {\n display: none;\n position: absolute;\n width: 100%;\n height: 1px;\n background-color: #000;\n z-index: 1;\n}\n\n.video-js .vjs-volume-horizontal .vjs-mouse-display {\n width: 1px;\n height: 100%;\n}\n\n.vjs-no-flex .vjs-volume-control .vjs-mouse-display {\n z-index: 0;\n}\n\n.video-js .vjs-volume-control:hover .vjs-mouse-display {\n display: block;\n}\n\n.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display {\n visibility: hidden;\n opacity: 0;\n transition: visibility 1s, opacity 1s;\n}\n\n.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display {\n display: none;\n}\n\n.vjs-mouse-display .vjs-volume-tooltip {\n color: #fff;\n background-color: #000;\n background-color: rgba(0, 0, 0, 0.8);\n}\n\n.vjs-poster {\n display: inline-block;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n background-color: #000000;\n cursor: pointer;\n margin: 0;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n}\n\n.vjs-has-started .vjs-poster,\n.vjs-using-native-controls .vjs-poster {\n display: none;\n}\n\n.vjs-audio.vjs-has-started .vjs-poster,\n.vjs-has-started.vjs-audio-poster-mode .vjs-poster {\n display: block;\n}\n\n.video-js .vjs-live-control {\n display: flex;\n align-items: flex-start;\n flex: auto;\n font-size: 1em;\n line-height: 3em;\n}\n\n.vjs-no-flex .vjs-live-control {\n display: table-cell;\n width: auto;\n text-align: left;\n}\n\n.video-js:not(.vjs-live) .vjs-live-control,\n.video-js.vjs-liveui .vjs-live-control {\n display: none;\n}\n\n.video-js .vjs-seek-to-live-control {\n align-items: center;\n cursor: pointer;\n flex: none;\n display: inline-flex;\n height: 100%;\n padding-left: 0.5em;\n padding-right: 0.5em;\n font-size: 1em;\n line-height: 3em;\n width: auto;\n min-width: 4em;\n}\n\n.vjs-no-flex .vjs-seek-to-live-control {\n display: table-cell;\n width: auto;\n text-align: left;\n}\n\n.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,\n.video-js:not(.vjs-live) .vjs-seek-to-live-control {\n display: none;\n}\n\n.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge {\n cursor: auto;\n}\n\n.vjs-seek-to-live-control .vjs-icon-placeholder {\n margin-right: 0.5em;\n color: #888;\n}\n\n.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder {\n color: red;\n}\n\n.video-js .vjs-time-control {\n flex: none;\n font-size: 1em;\n line-height: 3em;\n min-width: 2em;\n width: auto;\n padding-left: 1em;\n padding-right: 1em;\n}\n\n.vjs-live .vjs-time-control {\n display: none;\n}\n\n.video-js .vjs-current-time,\n.vjs-no-flex .vjs-current-time {\n display: none;\n}\n\n.video-js .vjs-duration,\n.vjs-no-flex .vjs-duration {\n display: none;\n}\n\n.vjs-time-divider {\n display: none;\n line-height: 3em;\n}\n\n.vjs-live .vjs-time-divider {\n display: none;\n}\n\n.video-js .vjs-play-control {\n cursor: pointer;\n}\n\n.video-js .vjs-play-control .vjs-icon-placeholder {\n flex: none;\n}\n\n.vjs-text-track-display {\n position: absolute;\n bottom: 3em;\n left: 0;\n right: 0;\n top: 0;\n pointer-events: none;\n}\n\n.video-js.vjs-controls-disabled .vjs-text-track-display,\n.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display {\n bottom: 1em;\n}\n\n.video-js .vjs-text-track {\n font-size: 1.4em;\n text-align: center;\n margin-bottom: 0.1em;\n}\n\n.vjs-subtitles {\n color: #fff;\n}\n\n.vjs-captions {\n color: #fc6;\n}\n\n.vjs-tt-cue {\n display: block;\n}\n\nvideo::-webkit-media-text-track-display {\n transform: translateY(-3em);\n}\n\n.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,\n.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display {\n transform: translateY(-1.5em);\n}\n\n.video-js .vjs-picture-in-picture-control {\n cursor: pointer;\n flex: none;\n}\n.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control {\n display: none;\n}\n\n.video-js .vjs-fullscreen-control {\n cursor: pointer;\n flex: none;\n}\n.video-js.vjs-audio-only-mode .vjs-fullscreen-control {\n display: none;\n}\n\n.vjs-playback-rate > .vjs-menu-button,\n.vjs-playback-rate .vjs-playback-rate-value {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vjs-playback-rate .vjs-playback-rate-value {\n pointer-events: none;\n font-size: 1.5em;\n line-height: 2;\n text-align: center;\n}\n\n.vjs-playback-rate .vjs-menu {\n width: 4em;\n left: 0em;\n}\n\n.vjs-error .vjs-error-display .vjs-modal-dialog-content {\n font-size: 1.4em;\n text-align: center;\n}\n\n.vjs-error .vjs-error-display:before {\n color: #fff;\n content: "X";\n font-family: Arial, Helvetica, sans-serif;\n font-size: 4em;\n left: 0;\n line-height: 1;\n margin-top: -0.5em;\n position: absolute;\n text-shadow: 0.05em 0.05em 0.1em #000;\n text-align: center;\n top: 50%;\n vertical-align: middle;\n width: 100%;\n}\n\n.vjs-loading-spinner {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n opacity: 0.85;\n text-align: left;\n border: 6px solid rgba(43, 51, 63, 0.7);\n box-sizing: border-box;\n background-clip: padding-box;\n width: 50px;\n height: 50px;\n border-radius: 25px;\n visibility: hidden;\n}\n\n.vjs-seeking .vjs-loading-spinner,\n.vjs-waiting .vjs-loading-spinner {\n display: block;\n -webkit-animation: vjs-spinner-show 0s linear 0.3s forwards;\n animation: vjs-spinner-show 0s linear 0.3s forwards;\n}\n\n.vjs-loading-spinner:before,\n.vjs-loading-spinner:after {\n content: "";\n position: absolute;\n margin: -6px;\n box-sizing: inherit;\n width: inherit;\n height: inherit;\n border-radius: inherit;\n opacity: 1;\n border: inherit;\n border-color: transparent;\n border-top-color: white;\n}\n\n.vjs-seeking .vjs-loading-spinner:before,\n.vjs-seeking .vjs-loading-spinner:after,\n.vjs-waiting .vjs-loading-spinner:before,\n.vjs-waiting .vjs-loading-spinner:after {\n -webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite;\n animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite;\n}\n\n.vjs-seeking .vjs-loading-spinner:before,\n.vjs-waiting .vjs-loading-spinner:before {\n border-top-color: white;\n}\n\n.vjs-seeking .vjs-loading-spinner:after,\n.vjs-waiting .vjs-loading-spinner:after {\n border-top-color: white;\n -webkit-animation-delay: 0.44s;\n animation-delay: 0.44s;\n}\n\n@keyframes vjs-spinner-show {\n to {\n visibility: visible;\n }\n}\n@-webkit-keyframes vjs-spinner-show {\n to {\n visibility: visible;\n }\n}\n@keyframes vjs-spinner-spin {\n 100% {\n transform: rotate(360deg);\n }\n}\n@-webkit-keyframes vjs-spinner-spin {\n 100% {\n -webkit-transform: rotate(360deg);\n }\n}\n@keyframes vjs-spinner-fade {\n 0% {\n border-top-color: #73859f;\n }\n 20% {\n border-top-color: #73859f;\n }\n 35% {\n border-top-color: white;\n }\n 60% {\n border-top-color: #73859f;\n }\n 100% {\n border-top-color: #73859f;\n }\n}\n@-webkit-keyframes vjs-spinner-fade {\n 0% {\n border-top-color: #73859f;\n }\n 20% {\n border-top-color: #73859f;\n }\n 35% {\n border-top-color: white;\n }\n 60% {\n border-top-color: #73859f;\n }\n 100% {\n border-top-color: #73859f;\n }\n}\n.video-js.vjs-audio-only-mode .vjs-captions-button {\n display: none;\n}\n\n.vjs-chapters-button .vjs-menu ul {\n width: 24em;\n}\n\n.video-js.vjs-audio-only-mode .vjs-descriptions-button {\n display: none;\n}\n\n.video-js .vjs-subs-caps-button + .vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder {\n vertical-align: middle;\n display: inline-block;\n margin-bottom: -0.1em;\n}\n\n.video-js .vjs-subs-caps-button + .vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {\n font-family: VideoJS;\n content: "";\n font-size: 1.5em;\n line-height: inherit;\n}\n\n.video-js.vjs-audio-only-mode .vjs-subs-caps-button {\n display: none;\n}\n\n.video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder {\n vertical-align: middle;\n display: inline-block;\n margin-bottom: -0.1em;\n}\n\n.video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {\n font-family: VideoJS;\n content: " ";\n font-size: 1.5em;\n line-height: inherit;\n}\n\n.video-js.vjs-layout-small .vjs-current-time,\n.video-js.vjs-layout-small .vjs-time-divider,\n.video-js.vjs-layout-small .vjs-duration,\n.video-js.vjs-layout-small .vjs-remaining-time,\n.video-js.vjs-layout-small .vjs-playback-rate,\n.video-js.vjs-layout-small .vjs-volume-control, .video-js.vjs-layout-x-small .vjs-current-time,\n.video-js.vjs-layout-x-small .vjs-time-divider,\n.video-js.vjs-layout-x-small .vjs-duration,\n.video-js.vjs-layout-x-small .vjs-remaining-time,\n.video-js.vjs-layout-x-small .vjs-playback-rate,\n.video-js.vjs-layout-x-small .vjs-volume-control, .video-js.vjs-layout-tiny .vjs-current-time,\n.video-js.vjs-layout-tiny .vjs-time-divider,\n.video-js.vjs-layout-tiny .vjs-duration,\n.video-js.vjs-layout-tiny .vjs-remaining-time,\n.video-js.vjs-layout-tiny .vjs-playback-rate,\n.video-js.vjs-layout-tiny .vjs-volume-control {\n display: none;\n}\n.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover {\n width: auto;\n width: initial;\n}\n.video-js.vjs-layout-x-small .vjs-progress-control, .video-js.vjs-layout-tiny .vjs-progress-control {\n display: none;\n}\n.video-js.vjs-layout-x-small .vjs-custom-control-spacer {\n flex: auto;\n display: block;\n}\n.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer {\n width: auto;\n}\n\n.vjs-modal-dialog.vjs-text-track-settings {\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.75);\n color: #fff;\n height: 70%;\n}\n\n.vjs-text-track-settings .vjs-modal-dialog-content {\n display: table;\n}\n\n.vjs-text-track-settings .vjs-track-settings-colors,\n.vjs-text-track-settings .vjs-track-settings-font,\n.vjs-text-track-settings .vjs-track-settings-controls {\n display: table-cell;\n}\n\n.vjs-text-track-settings .vjs-track-settings-controls {\n text-align: right;\n vertical-align: bottom;\n}\n\n@supports (display: grid) {\n .vjs-text-track-settings .vjs-modal-dialog-content {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr;\n padding: 20px 24px 0px 24px;\n }\n\n .vjs-track-settings-controls .vjs-default-button {\n margin-bottom: 20px;\n }\n\n .vjs-text-track-settings .vjs-track-settings-controls {\n grid-column: 1/-1;\n }\n\n .vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,\n.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content,\n.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content {\n grid-template-columns: 1fr;\n }\n}\n.vjs-track-setting > select {\n margin-right: 1em;\n margin-bottom: 0.5em;\n}\n\n.vjs-text-track-settings fieldset {\n margin: 5px;\n padding: 3px;\n border: none;\n}\n\n.vjs-text-track-settings fieldset span {\n display: inline-block;\n}\n\n.vjs-text-track-settings fieldset span > select {\n max-width: 7.3em;\n}\n\n.vjs-text-track-settings legend {\n color: #fff;\n margin: 0 0 5px 0;\n}\n\n.vjs-text-track-settings .vjs-label {\n position: absolute;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n display: block;\n margin: 0 0 5px 0;\n padding: 0;\n border: 0;\n height: 1px;\n width: 1px;\n overflow: hidden;\n}\n\n.vjs-track-settings-controls button:focus,\n.vjs-track-settings-controls button:active {\n outline-style: solid;\n outline-width: medium;\n background-image: linear-gradient(0deg, #fff 88%, #73859f 100%);\n}\n\n.vjs-track-settings-controls button:hover {\n color: rgba(43, 51, 63, 0.75);\n}\n\n.vjs-track-settings-controls button {\n background-color: #fff;\n background-image: linear-gradient(-180deg, #fff 88%, #73859f 100%);\n color: #2B333F;\n cursor: pointer;\n border-radius: 2px;\n}\n\n.vjs-track-settings-controls .vjs-default-button {\n margin-right: 1em;\n}\n\n@media print {\n .video-js > *:not(.vjs-tech):not(.vjs-poster) {\n visibility: hidden;\n }\n}\n.vjs-resize-manager {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: none;\n z-index: -1000;\n}\n\n.js-focus-visible .video-js *:focus:not(.focus-visible) {\n outline: none;\n}\n\n.video-js *:focus:not(:focus-visible) {\n outline: none;\n}\n`,""]);const h=c},7655:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,"@media screen and (forced-colors: active) {\n /* Progress bar*/\n .vjs-ump .vjs-control:hover .vjs-slider-bar:before {\n height: 600% !important;\n top: -250% !important;\n }\n\n .vjs-ump .vjs-control:focus-within .vjs-play-progress::before {\n outline: solid 2px highlight !important;\n }\n\n .vjs-ump .vjs-slider.vjs-slider-horizontal {\n border: 2px solid buttonText;\n height: 7px;\n }\n\n .vjs-ump .vjs-play-progress.vjs-slider-bar {\n background-color: buttonText !important;\n }\n\n .vjs-ump .vjs-control:active .vjs-play-progress.vjs-slider-bar:before {\n background-color: highlight !important;\n }\n\n /*volume bar*/\n .vjs-ump .vjs-slider.vjs-slider-vertical {\n border: 2px solid buttonText;\n width: 7px;\n }\n .vjs-ump .vjs-volume-bar.vjs-slider-vertical .vjs-volume-level {\n background-color: buttonText;\n }\n .vjs-ump .vjs-volume-panel-vertical:active .vjs-volume-level:before {\n background-color: highlight !important;\n }\n\n /*player controls*/\n .vjs-ump.vjs-control-bar {\n border: 1px solid buttonText;\n height: 9px;\n }\n\n /*high contrast menu */\n .vjs-ump .vjs-menu-item {\n color: buttonText;\n }\n .vjs-ump .vjs-control-bar button:focus {\n border: 3px solid highlight;\n outline: 3px solid highlight !important;\n }\n .vjs-ump .vjs-control-bar button:active {\n border: 3px solid highlight;\n outline: 3px solid highlight;\n }\n .vjs-ump .vjs-menu-content .vjs-menu-item:hover {\n border: 3px solid highlight;\n background-color: ButtonFace;\n color: ButtonText;\n }\n\n .vjs-ump .vjs-menu-content .vjs-menu-item:focus {\n background-color: Highlight;\n }\n .vjs-ump span.vjs-menu-item-text {\n background-color: ButtonFace;\n }\n\n .vjs-ump .vjs-icon-placeholder {\n color: buttonText;\n }\n .vjs-ump .vjs-big-play-button:focus {\n border: 3px solid highlight;\n outline: 3px solid highlight !important;\n outline-offset: -2px;\n }\n\n /* age gate */\n .vjs-ump div.vjs-modal-dialog.vjs-age-gate-modal select {\n color: buttonText;\n background-color: ButtonFace;\n border: 2px solid ButtonText;\n }\n\n .vjs-ump div.vjs-modal-dialog.vjs-age-gate-modal select:hover {\n border: 3px solid highlight;\n background-color: ButtonFace;\n color: ButtonText;\n }\n\n .vjs-ump div.vjs-modal-dialog.vjs-age-gate-modal select:focus {\n background-color: Highlight;\n outline: 2px solid buttonText;\n outline-offset: -2px;\n }\n\n .vjs-ump div.vjs-modal-dialog.vjs-age-gate-modal select:before {\n background-color: black;\n }\n\n .vjs-ump\n div.vjs-modal-dialog.vjs-age-gate-modal\n .vjs-age-gate-body-button:focus {\n background-color: Highlight;\n outline: 2px solid buttonText;\n outline-offset: -2px;\n }\n\n .vjs-ump\n div.vjs-modal-dialog.vjs-age-gate-modal\n .vjs-age-gate-body-button:not([disabled]):hover {\n outline: 3px solid highlight;\n background-color: ButtonFace;\n color: ButtonText;\n }\n}\n",""]);const s=o},1355:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'.vjs-ump .vjs-age-gate-modal {\n background-color: rgba(0, 0, 0, 0) !important;\n color: white;\n}\n\n.vjs-ump .vjs-age-gate-modal .vjs-modal-dialog-content {\n padding: 0px;\n margin: 0px;\n background: black;\n}\n\n.vjs-ump .vjs-age-gate-body {\n background-color: black;\n height: inherit;\n width: inherit;\n text-align: center;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-family:\n Segoe UI,\n SegoeUI,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n}\n\n.vjs-ump .vjs-age-gate-body svg {\n fill: white;\n width: 5em;\n height: 7em;\n}\n\n.vjs-ump .vjs-age-gate-body-button {\n fill: #fff;\n background-color: #fff;\n border: 2px solid #00000000;\n font-weight: bold;\n color: #000;\n font-size: 0.875rem;\n line-height: 1.25rem;\n width: 0.75rem;\n margin: 5px;\n padding: 5px;\n min-height: 38px;\n max-width: 250;\n min-width: 120px;\n}\n\n.vjs-ump .vjs-age-gate-body-button:disabled {\n background-color: rgba(255, 255, 255, 0.2);\n color: rgba(255, 255, 255, 0.2);\n border-color: rgba(255, 255, 255, 0.2);\n}\n\n.vjs-ump .vjs-age-gate-body-button:focus {\n text-decoration: underline;\n outline: 0;\n}\n\n.vjs-ump .vjs-age-gate-modal-error::before {\n font-size: 34px;\n font-family: "MWF-MDL2";\n content: "";\n}\n\n.vjs-ump .vjs-age-gate-body-header {\n font-size: 34px;\n line-height: 40px;\n font-weight: 200;\n}\n\n.vjs-ump .vjs-age-gate-modal p,\n.vjs-ump .video-age-gate-modal .small-text {\n font-size: 1rem;\n}\n\n.vjs-ump .vjs-age-gate-body-datepicker select {\n color: rgba(0, 0, 0, 0.8);\n background-color: rgba(255, 255, 255, 0.6);\n border: 2px solid rgba(255, 255, 255, 0.6);\n justify-content: center;\n align-self: center;\n margin: 5px;\n padding: 10px;\n line-height: 18px;\n font-size: 14px;\n}\n\n.vjs-ump .vjs-age-gate-body-datepicker select:hover {\n background-color: rgba(255, 255, 255, 0.8);\n}\n\n.vjs-ump .vjs-age-gate-body-datepicker select:focus {\n outline: 2px solid #fff;\n}\n\n.vjs-ump .vjs-age-gate-modal .vjs-modal-dialog .vjs-modal-dialog-content {\n background-color: rgba(0, 0, 0, 1);\n text-align: center;\n}\n',""]);const s=o},4774:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,".vjs-ump.vjs-user-inactive.vjs-playing .persist-big-button {\n opacity: 0;\n display: block;\n transition: 1s;\n}\n\n.vjs-ump .persist-big-button {\n opacity: 1;\n display: block;\n}\n.vjs-ump .vjs-big-play-button {\n transition: unset;\n}\n",""]);const s=o},9930:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'/* CAPTION UI FOCUS STYLING */\n.vjs-ump input:focus,\n.vjs-ump select:focus,\n.vjs-ump a[href]:focus,\n.vjs-ump area[href]:focus,\n.vjs-ump button:focus {\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: 1px;\n}\n.vjs-ump .vjs-modal-dialog.vjs-text-track-settings .vjs-close-button {\n outline-offset: -4px;\n}\n\n.vjs-ump .vjs-text-track-settings .vjs-modal-dialog-content {\n display: flex;\n flex-direction: column;\n}\n\n.vjs-ump .vjs-modal-dialog.vjs-text-track-settings {\n height: 100%;\n width: 40%;\n left: 60%;\n}\n\n.vjs-ump .vjs-control.vjs-close-button .vjs-icon-placeholder:before {\n content: "\\E711";\n}\n\n/* Removes CC icon from the languages in the menu. */\n.vjs-ump\n .vjs-subs-caps-button\n + .vjs-menu\n .vjs-captions-menu-item\n .vjs-menu-item-text\n .vjs-icon-placeholder {\n display: none;\n}\n\n.vjs-ump .vjs-text-track-settings label.vjs-label.vjs-label {\n position: static;\n height: auto;\n width: auto;\n}\n\n.vjs-ump .vjs-text-track-settings-group {\n padding-right: 20px;\n}\n\n.vjs-ump .vjs-text-track-settings select {\n max-width: none;\n padding: 2px;\n}\n\n/* Full Screen modal on mobile*/\n@media screen and (max-width: 462px) {\n .vjs-ump .vjs-modal-dialog.vjs-text-track-settings {\n width: 100%;\n left: 0;\n }\n}\n',""]);const s=o},3958:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'.vjs-ump .vjs-download-menu .vjs-icon-placeholder::before {\n content: "\\E896";\n}\n',""]);const s=o},7557:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'/* VIDEO CONTROLS\n This CSS code block is responsible for styling the video player controls. \n*/\n\n/* Media screen rules to apply styling at different resolutions */\n@media screen and (max-width: 390px) {\n .vjs-ump .vjs-control-bar {\n font-size: 6px;\n }\n .vjs-ump .vjs-play-progress:before {\n width: 4px;\n }\n .vjs-ump .vjs-menu-button ul li {\n font-size: 6px;\n padding: 4px 14px 4px 6px;\n overflow-wrap: break-word;\n }\n}\n\n@media screen and (min-width: 390px) {\n .vjs-ump .vjs-control-bar {\n font-size: 11px;\n }\n .vjs-ump .vjs-play-progress:before {\n width: 8px;\n }\n .vjs-ump .vjs-menu-button ul li {\n font-size: 13px;\n padding: 8px 20px 8px 12px;\n overflow-wrap: break-word;\n }\n}\n\n/* Control bar style */\n.vjs-ump .vjs-control-bar {\n background-color: rgb(var(--vjs-theme-color-black));\n color: rgb(var(--vjs-theme-color-white));\n text-align: left;\n}\n\n/* Controls menu hover style */\n.vjs-ump.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu {\n display: none;\n}\n\n/* Controls sub-menu style */\n.vjs-ump\n .vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button\n .vjs-menu\n ul {\n background-color: rgb(var(--vjs-theme-color-black));\n}\n\n/* Controls sub-menu border style */\n.vjs-ump .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n border: 1px solid rgba(255, 255, 255, 0.6);\n max-height: 25em;\n width: 13em;\n transform: translateX(-47%);\n transform-origin: top right;\n}\n\n/* Controls sub-menu hover style */\n.vjs-ump .vjs-menu li:hover {\n background-color: rgb(var(--vjs-theme-color-offblack));\n}\n\n/* Controls sub-menu selected style [current selection] */\n.vjs-ump\n .vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button\n .vjs-selected {\n background-color: rgb(var(--vjs-theme-color-black));\n color: rgb(var(--vjs-theme-color-white));\n}\n\n/* Controls sub-menu selected style */\n.vjs-ump .vjs-selected::after {\n font-family: var(--vjs-controls-icon-font);\n content: "\\E73E";\n margin-left: 1em;\n}\n\n/* Controls sub-menu border style */\n.vjs-ump .vjs-menu-button ul {\n border-top: 1px solid rgba(255, 255, 255, 0.6);\n}\n\n.vjs-ump .vjs-menu-button ul li {\n text-align: left;\n border: 1px solid rgba(255, 255, 255, 0.6);\n}\n\n.vjs-ump ul li::after {\n right: 10px;\n position: absolute;\n}\n\n/* PROGRESS BAR\n this CSS code block is responsible for styling the progress bar.\n*/\n\n/* Progress bar */\n.vjs-ump .vjs-play-progress.vjs-slider-bar {\n background-color: rgb(var(--vjs-theme-color-blue));\n}\n\n/* progress bar btn color*/\n.vjs-ump .vjs-play-progress:before {\n color: rgb(var(--vjs-theme-color-blue));\n}\n\n/* progress bar btn active state*/\n.vjs-ump .vjs-active .vjs-play-progress:before {\n color: rgb(var(--vjs-theme-color-white));\n}\n\n/* progress bar button style */\n.vjs-ump .vjs-play-progress:before {\n background-color: rgb(var(--vjs-theme-color-blue));\n height: 600%;\n border: 1px solid transparent;\n padding: 0;\n border-radius: 4px;\n position: absolute;\n outline: 0;\n margin: 0;\n top: -250%;\n content: "";\n}\n\n/* progress bar button style on hover state */\n.vjs-ump .vjs-control:hover .vjs-slider-bar:before {\n background-color: rgb(var(--vjs-theme-color-white));\n height: 400%;\n top: -150%;\n}\n\n/* progress bar button style on active state */\n.vjs-ump .vjs-control:active .vjs-play-progress::before {\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: 2px;\n}\n\n/* progress bar button style on active state */\n.vjs-ump .vjs-control:focus-within .vjs-play-progress::before {\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: 2px;\n background-color: rgb(var(--vjs-theme-color-white));\n}\n\n/* Progress bar - remaining color */\n.vjs-ump .vjs-progress-holder {\n background-color: rgb(var(--vjs-theme-color-gray));\n}\n\n/* Progress bar seek marker*/\n.vjs-ump .vjs-progress-control.vjs-control .vjs-mouse-display {\n background-color: rgb(var(--vjs-theme-color-white));\n width: 2px;\n}\n\n/* margin for time control */\n.vjs-ump .vjs-time-control {\n margin-left: 3px;\n}\n.vjs-ump .vjs-progress-holder.vjs-slider.vjs-slider-horizontal:focus {\n outline: 0;\n}\n\n/* Progress bar mouse display tooltip*/\n.vjs-ump .vjs-sliding .vjs-mouse-display .vjs-time-tooltip {\n visibility: hidden;\n}\n\n/* Progress bar center display tooltip*/\n.vjs-ump .vjs-play-progress.vjs-slider-bar .vjs-time-tooltip {\n transform: translateX(5px);\n}\n\n/*PROGRESS BAR END */\n\n/* VOLUME SLIDER\n This CSS code block is responsible for styling the volume slider.\n*/\n\n/* volume slider panel */\n.vjs-ump .vjs-control-bar .vjs-volume-panel .vjs-volume-control {\n background-color: rgb(var(--vjs-theme-color-black));\n border: 2px solid rgba(var(--vjs-theme-color-white), 0.6);\n}\n\n/* volume slider progress */\n.vjs-ump .vjs-volume-bar {\n background-color: rgb(var(--vjs-theme-color-gray));\n}\n\n/* volume slider btn */\n.vjs-ump .vjs-volume-level:before {\n color: rgb(var(--vjs-theme-color-blue));\n height: 8px;\n width: 24px;\n background: rgb(var(--vjs-theme-color-blue));\n border: 1px solid transparent;\n padding: 0;\n border-radius: 4px;\n position: absolute;\n top: -3px;\n left: -10px;\n outline: 0;\n margin: 0;\n content: "";\n}\n\n/* volume slider btn hover */\n.vjs-ump\n .vjs-volume-control.vjs-control.vjs-volume-vertical:hover\n .vjs-volume-level:before {\n background: rgb(var(--vjs-theme-color-white));\n}\n\n/* Volume Slider progress gain level*/\n.vjs-ump .vjs-volume-level {\n background-color: rgb(var(--vjs-theme-color-blue));\n}\n\n/* Volume Slider marker element*/\n.vjs-ump .vjs-control-bar .vjs-volume-control .vjs-mouse-display {\n background-color: rgb(var(--vjs-theme-color-white));\n height: 2px;\n}\n\n/* Volume Tooltip */\n.vjs-ump .vjs-volume-panel-vertical .vjs-mouse-display .vjs-volume-tooltip {\n background-color: rgb(var(--vjs-theme-color-black));\n border: 2px solid rgba(var(--vjs-theme-color-white), 0.6);\n border-radius: 0px;\n left: 25px;\n}\n/* volume button active state*/\n.vjs-ump .vjs-slider-vertical.vjs-slider-active .vjs-volume-level:before {\n background-color: rgb(var(--vjs-theme-color-white));\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: 2px;\n border-radius: 10px;\n}\n\n/*VOLUME SLIDER END */\n\n/* ICONS\n This CSS code block is responsible for styling the icons in the video player controls.\n The icons are from the Microsoft Web Framework (MWF) font library.\n http://approjects.co.za/?big=en-us/mwf/getting-started/designing/glyphs\n*/\n\n.vjs-ump .vjs-icon-placeholder:before,\n.vjs-ump .vjs-big-play-button .vjs-icon-placeholder:before {\n font-family: var(--vjs-controls-icon-font);\n}\n\n/* Play Icon */\n.vjs-ump .vjs-play-control .vjs-icon-placeholder:before,\n.vjs-ump .vjs-big-play-button .vjs-icon-placeholder:before {\n content: "\\E768";\n}\n\n/* Pause Icon */\n.vjs-ump .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,\n.vjs-ump.vjs-playing .vjs-big-play-button .vjs-icon-placeholder:before {\n content: "\\E769";\n}\n\n/* Replay Icon */\n.vjs-ump .vjs-play-control.vjs-paused.vjs-ended .vjs-icon-placeholder:before,\n.vjs-ump.vjs-paused.vjs-ended\n .vjs-big-play-button\n .vjs-icon-placeholder:before {\n content: "\\E72C";\n}\n\n/* Audio Tracks Icon */\n.vjs-ump .vjs-audio-button .vjs-icon-placeholder:before {\n content: "\\E7F6";\n}\n\n/* Fullscreen-Enter Icon */\n.vjs-ump .vjs-fullscreen-control .vjs-icon-placeholder:before {\n content: "\\E740";\n}\n/* Fullscreen-Exit Icon */\n.vjs-ump.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before {\n content: "\\E73F";\n}\n\n/* Quality Icon */\n.vjs-ump .vjs-quality-selector .vjs-icon-placeholder:before {\n content: "\\E713";\n}\n\n/* Volume-High Icon */\n.vjs-ump .vjs-mute-control.vjs-vol-3 .vjs-icon-placeholder:before {\n content: "\\E767";\n}\n\n/* Volume-Medium Icon */\n.vjs-ump .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before {\n content: "\\E767";\n}\n\n/* Volume-Low Icon */\n.vjs-ump .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before {\n content: "\\E767";\n}\n\n/* Volume-Mute Icon */\n.vjs-ump .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before {\n content: "\\E74F";\n}\n\n.vjs-ump\n .vjs-control-bar\n .vjs-subs-caps-button.vjs-menu-button\n .vjs-icon-placeholder:before {\n content: "\\ED1E";\n}\n\n/* ICONS END */\n\n/* Align center text time control */\n.vjs-ump .vjs-time-control {\n text-align: center;\n padding: 0;\n display: block;\n}\n',""]);const s=o},7288:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'/* video player */\n\n/* Color variables*/\n:root {\n --vjs-theme-color-blue: 0, 103, 184;\n --vjs-theme-color-gray: 89, 89, 89;\n --vjs-theme-color-white: 255, 255, 255;\n --vjs-theme-color-black: 0, 0, 0;\n --vjs-theme-color-offblack: 26, 26, 26;\n --vjs-controls-icon-font: "MWF-MDL2";\n}\n\n/* font */\n@font-face {\n font-family: "MWF-MDL2";\n src:\n url("http://approjects.co.za/?big=mwf/_h/v3.54/mwf.app/fonts/mwfmdl2-v3.54.woff")\n format("woff"),\n url("http://approjects.co.za/?big=mwf/_h/v3.54/mwf.app/fonts/mwfmdl2-v3.54.ttf")\n format("truetype"),\n url("http://approjects.co.za/?big=mwf/_h/v3.54/mwf.app/fonts/mwfmdl2-v3.54.svg")\n format("svg");\n}\n\n/* Simple override to remove volume control fade in/out */\n.vjs-ump .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {\n transition: none;\n}\n\n.vjs-ump .vjs-menu li {\n text-transform: initial;\n}\n\n/* Poster image masking */\n.vjs-ump .vjs-poster.mask-20::before {\n content: "";\n position: absolute;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.vjs-ump .vjs-poster.mask-40::before {\n content: "";\n position: absolute;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.vjs-ump .vjs-poster.mask-60::before {\n content: "";\n position: absolute;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.6);\n}\n\n.vjs-ump .vjs-poster.mask-80::before {\n content: "";\n position: absolute;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.8);\n}\n\n.vjs-ump .vjs-poster.mask-100::before {\n content: "";\n position: absolute;\n inset: 0;\n background-color: rgba(0, 0, 0, 1);\n}\n\n/* POSTER BIG-PLAY-BUTTON \n This CSS block is responsible for:\n - Defining general style, focus and hover effects for the big-play-button\n - Defining medium size for the big-play-button\n - Defining large size for the big-play-button\n - Defining dark theme\n - Defining light theme\n*/\n\n/* GENERAL UI FOCUS STYLING */\n.vjs-ump [contentEditable="true"]:focus,\n.vjs-ump iframe:focus,\n.vjs-ump textarea:focus,\n.vjs-ump .vjs-control-bar button:focus {\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: -3px;\n}\n.vjs-ump li:focus {\n outline: 2px solid rgb(var(--vjs-theme-color-white));\n outline-offset: -3px;\n}\n\n.vjs-ump .vjs-big-play-button:hover {\n color: rgba(var(--vjs-theme-color-white), 0.8);\n}\n\n.vjs-ump .vjs-big-play-button {\n border: none;\n border-radius: 50%;\n}\n\n/* MEDIUM PLAY BUTTON */\n.vjs-ump .vjs-big-play-button-medium {\n line-height: 48px;\n height: 48px;\n width: 48px;\n\n margin-top: -24px;\n margin-left: -24px;\n}\n\n/* LARGE PLAY BUTTON */\n.vjs-ump .vjs-big-play-button-large {\n line-height: 60px;\n height: 60px;\n width: 60px;\n\n margin-top: -30px;\n margin-left: -30px;\n}\n\n/* DARK THEME */\n.vjs-ump .vjs-big-play-button-dark,\n.vjs-ump:hover .vjs-big-play-button-dark,\n.vjs-ump .vjs-big-play-button-dark:focus {\n background-color: rgba(var(--vjs-theme-color-black), 0.6);\n}\n\n/* LIGHT THEME */\n.vjs-ump .vjs-big-play-button-light,\n.vjs-ump:hover .vjs-big-play-button-light,\n.vjs-ump .vjs-big-play-button-light:focus {\n background-color: rgba(var(--vjs-theme-color-white), 0.3);\n}\n/* END POSTER PLAY BUTTON */\n\n/* \n Used to hide elements\n https://a11y-guidelines.orange.com/en/articles/accessible-hiding/ \n*/\n.vjs-ump-visually-hidden {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n',""]);const s=o},8124:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'.vjs-ump .vjs-quality-selector .vjs-menu-button {\n margin: 0;\n padding: 0;\n height: 100%;\n width: 100%;\n}\n\n.vjs-ump .vjs-quality-selector .vjs-icon-placeholder {\n font-family: "VideoJS";\n font-weight: normal;\n font-style: normal;\n}\n\n.vjs-ump .vjs-quality-selector .vjs-icon-placeholder::before {\n content: "";\n}\n\n.vjs-ump.vjs-quality-changing .vjs-big-play-button {\n display: none;\n}\n\n.vjs-ump.vjs-quality-changing .vjs-control-bar {\n display: flex;\n}\n',""]);const s=o},6209:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'.vjs-ump .vjs-settings-menu .vjs-icon-placeholder,\n.vjs-ump .vjs-sub-menu-item::after,\n.vjs-ump .vjs-sub-menu-back::after {\n font-family: var(--vjs-controls-icon-font);\n display: inline-block;\n font-weight: normal;\n font-style: normal;\n}\n\n.vjs-ump .vjs-settings-menu .vjs-icon-placeholder::before {\n content: "\\E712";\n}\n\n.vjs-ump .vjs-sub-menu-item::after {\n content: "\\E76C";\n margin-left: 1em;\n}\n\n.vjs-ump .vjs-sub-menu-back::after {\n content: "\\E76B";\n margin-left: 1em;\n}\n',""]);const s=o},2179:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),a=n(6314),o=n.n(a)()(r());o.push([e.id,'.vjs-ump [class^="vjs-"][class$="-option"]::after {\n position: absolute;\n right: 10px;\n}\n\n.vjs-ump .vjs-share-menu-button .vjs-icon-placeholder::before {\n font-family: var(--vjs-controls-icon-font);\n content: "\\E72D";\n}\n\n.vjs-ump .vjs-twitter-option::after {\n font-family: "VideoJS";\n content: "\\f11a";\n}\n\n.vjs-ump .vjs-facebook-option::after {\n font-family: "VideoJS";\n content: "\\f117";\n}\n\n.vjs-ump .vjs-linkedin-option::after {\n font-family: "VideoJS";\n content: "\\f119";\n}\n\n.vjs-ump .vjs-copy-option::after {\n font-family: var(--vjs-controls-icon-font);\n content: "\\E8C8";\n}\n\n.vjs-ump .vjs-mail-option::after {\n font-family: var(--vjs-controls-icon-font);\n content: "\\E715";\n}\n',""]);const s=o},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},4417:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601:e=>{e.exports=function(e){return e[1]}},9697:(e,t,n)=>{var i,r=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},a=n(542);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=i},9840:(e,t,n)=>{var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=i},7056:e=>{e.exports=function(e){if(!e)return!1;var n=t.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},6545:(e,t)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var o=t.names=t.title={};for(a in i)o[i[a]]=a;for(var s in r)i[s]=r[s]},8962:(e,t,n)=>{var i=n(3626).getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},9622:e=>{var t,n,i,r,a,o,s,l=9e4;t=function(e){return e*l},n=function(e,t){return e*t},i=function(e){return e/l},r=function(e,t){return e/t},a=function(e,n){return t(r(e,n))},o=function(e,t){return n(i(e),t)},s=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t,secondsToAudioTs:n,videoTsToSeconds:i,audioTsToSeconds:r,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},3626:e=>{var t=Math.pow(2,32);e.exports={getUint64:function(e){var n,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(n=i.getBigUint64(0)){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},5072:e=>{var t=[];function n(e){for(var n=-1,i=0;i{var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:applicationhttps://www.microsoft.com/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7842:function(e){var t,n,i,r,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return i.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=n.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=a.normalizePath(d)}else u.path=s.path,o.params||(u.params=s.params,o.query||(u.query=s.query));return null===u.path&&(u.path=i.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(u)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a},6244:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Fu});var i=n(9840),r=n.n(i),a=n(9697),o=n.n(a);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(k),I=String.fromCharCode(9),P=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},D=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},L=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}h(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}),[e]).forEach((function(e){for(var r=0;r0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:C(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,h=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes?(o.attributes||(o.attributes={}),s(o.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(c={default:/yes/i.test(e.attributes.DEFAULT)}).default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=c}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){h+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,M.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=O(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;l=!0;var n=this.manifest.segments.length,i=O(e.attributes);o.parts=o.parts||[],o.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=f),f=i.byterange.offset+i.byterange.length);var r=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=O(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),M.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=O(e.attributes),i=n.type&&"PART"===n.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?f:0,i&&(f=n.byterange.offset+n.byterange.length)));var r=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;au&&(l-=u,l-=u,l-=$(2))}return Number(l)}),te=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i=t.length&&l.call(t,(function(t,n){return t===(s[n]?s[n]&e[a+n]:e[a+n])}))},ie=n(8978),re=function(e){return!!e&&"object"==typeof e},ae=function e(){for(var t=arguments.length,n=new Array(t),i=0;it.timeline?1:-1}));var t,n},be=function(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},ge.forEach((function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i]){var a=t.mediaGroups[e][i][r];n(a)}})),i},_e=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},Te=function(e){return e&&e.uri+"-"+(n="bigint"==typeof(t=e.byterange).offset||"bigint"==typeof t.length?r().BigInt(t.offset)+r().BigInt(t.length)-r().BigInt(1):t.offset+t.length-1,t.offset+"-"+n);var t,n},Se=function(e){return oe(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]);return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t;return e.discontinuityStarts=(t=e.segments||[],t.reduce((function(e,t,n){return t.discontinuity&&e.push(n),e}),[])),e}))},we=function(e,t){var n=Te(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&me(e,i,e.sidx.resolvedUri),e},ke=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=we(e[n],t);return e},Ce=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.frameRate&&(o.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},Ee=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},je=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},xe=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Ae=function(e){return e?Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(i.playlists)}),[]):[]},Ie=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,l=s.sourceDuration,u=s.type,c=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,h=Se(n.filter(Ee)).map(Ce),p=Se(n.filter(je)),f=Se(n.filter(xe)),m=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:ke(h,a)};d>=0&&(g.minimumUpdatePeriod=1e3*d),i&&(g.locations=i),"dynamic"===u&&(g.suggestedPresentationDelay=c);var v,y,b,_,T,S,w,k=0===g.playlists.length,C=p.length?function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";if(o&&!r.attributes.label){var l=a?" ("+a+")":"";s=""+r.attributes.lang+l}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=we(function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:s,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(u.contentProtection=i.contentProtection),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u}(r,n),t);return e[s].playlists.push(u),void 0===i&&"main"===a&&((i=r).default=!0),e}),{});return i||(r[Object.keys(r)[0]].default=!0),r}(p,a,k):null,E=f.length?function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(we(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:r,segments:i}}(n),t)),e}),{})}(f,a):null,j=h.concat(Ae(C),Ae(E)),x=j.map((function(e){return e.timelineStarts}));return g.timelineStarts=ye(x),v=j,y=g.timelineStarts,v.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=ue(y,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))})),C&&(g.mediaGroups.AUDIO.audio=C),E&&(g.mediaGroups.SUBTITLES.subs=E),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=m.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e):e}),{})),o?(_=(b={oldManifest:o,newManifest:g}).oldManifest,T=b.newManifest,S=_.playlists.concat(be(_)),w=T.playlists.concat(be(T)),T.timelineStarts=ye([_.timelineStarts,T.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.timelineStarts;e.newPlaylists.forEach((function(e){e.discontinuitySequence=ue(n,(function(t){return t.timeline===e.timeline}));var i=function(e,t){for(var n=0;ni.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),_e({playlist:e,mediaSequence:i.segments[a].number})}}))}({oldPlaylists:S,newPlaylists:w,timelineStarts:T.timelineStarts}),T):g},Pe=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.periodStart,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=(i+r)/1e3+(void 0===c?0:c)-(a+u);return Math.ceil((d*s-t)/n)},De=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,h=e.periodStart,p=[],f=-1,m=0;mf&&(f=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?Pe(e,f,v):(s*u-f)/v:(t[T].t-f)/v}else _=y+1;for(var S=d+p.length+_,w=d+p.length;w=r?a:""+new Array(r-a.length+1).join("0")+a)}}(t))},Me=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,a=ce({baseUrl:e.baseUrl,source:Oe(r.sourceURL,n),range:r.range}),o=function(e,t){return e.duration||t?e.duration?pe(e):De(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return o.map((function(t){n.Number=t.number,n.Time=t.time;var i=Oe(e.media||"",n),r=e.timescale||1,o=e.presentationTimeOffset||0,s=e.periodStart+(t.time-o)/r;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:w(e.baseUrl||"",i),map:a,number:t.number,presentationTime:s}}))},Ne=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");var o,s=r.map((function(t){return function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=ce({baseUrl:n,source:r.sourceURL,range:r.range}),o=ce({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o}(e,t)}));return n&&(o=pe(e)),t&&(o=De(e,t)),o.map((function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}})).filter((function(e){return e}))},Re=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=Me,t=ae(i,r.template)):r.base?(n=fe,t=ae(i,r.base)):r.list&&(n=Ne,t=ae(i,r.list));var a={attributes:i};if(!n)return a;var o=n(t,r.segmentTimeline);if(t.duration){var s=t,l=s.duration,u=s.timescale,c=void 0===u?1:u;t.duration=l/c}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,r.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},Ue=function(e,t){return le(e.childNodes).filter((function(e){return e.tagName===t}))},Be=function(e){return e.textContent.trim()},Fe=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(l||0)},Ve={mediaPresentationDuration:function(e){return Fe(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return Fe(e)},suggestedPresentationDelay:function(e){return Fe(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Fe(e)},start:function(e){return Fe(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))}(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Fe(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},qe=function(e){return e&&e.attributes?le(e.attributes).reduce((function(e,t){var n=Ve[t.name]||Ve.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},ze={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},He=function(e,t){return t.length?se(e.map((function(e){return t.map((function(t){return w(e,Be(t))}))}))):e},We=function(e){var t=Ue(e,"SegmentTemplate")[0],n=Ue(e,"SegmentList")[0],i=n&&Ue(n,"SegmentURL").map((function(e){return ae({tag:"SegmentURL"},qe(e))})),r=Ue(e,"SegmentBase")[0],a=n||t,o=a&&Ue(a,"SegmentTimeline")[0],s=n||r||t,l=s&&Ue(s,"Initialization")[0],u=t&&qe(t);u&&l?u.initialization=l&&qe(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:o&&Ue(o,"S").map((function(e){return qe(e)})),list:n&&ae(qe(n),{segmentUrls:i,initialization:qe(l)}),base:r&&ae(qe(r),{initialization:qe(l)})};return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},Ge=function(e,t){return function(n,i){var r=He(t,Ue(n.node,"BaseURL")),a=ae(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=Ue(n.node,"AdaptationSet"),s=We(n.node);return se(o.map(function(e,t,n){return function(i){var r,a=qe(i),o=He(t,Ue(i,"BaseURL")),s=Ue(i,"Role")[0],l={role:qe(s)},u=ae(e,a,l),c=Ue(i,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(r=qe(c)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0;d&&(u=ae(u,{captionServices:d}));var h=Ue(i,"Label")[0];if(h&&h.childNodes.length){var p=h.childNodes[0].nodeValue.trim();u=ae(u,{label:p})}var f=Ue(i,"ContentProtection").reduce((function(e,t){var n=qe(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=ze[n.schemeIdUri];if(i){e[i]={attributes:n};var r=Ue(t,"cenc:pssh")[0];if(r){var a=Be(r);e[i].pssh=a&&C(a)}}return e}),{});Object.keys(f).length&&(u=ae(u,{contentProtection:f}));var m=We(i),g=Ue(i,"Representation"),v=ae(n,m);return se(g.map(function(e,t,n){return function(i){var r=Ue(i,"BaseURL"),a=He(t,r),o=ae(e,qe(i)),s=We(i);return a.map((function(e){return{segmentInfo:ae(n,s),attributes:ae(o,{baseUrl:e})}}))}}(u,o,v)))}}(a,r,s)))}},Xe=function(e){if(""===e)throw new Error("DASH_EMPTY_MANIFEST");var t,n,i=new ie.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return n},Ke=n(8962),Ye=n.n(Ke),Qe=J([73,68,51]),Je=function e(t,n){return void 0===n&&(n=0),(t=J(t)).length-n<10||!ne(t,Qe,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=J(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10}(t,n),e(t,n))},$e=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?te(e):e}),Ze=function(e){e=J(e);for(var t=[],n=0;e.length>n;){var i=e[n],r=0,a=0,o=e[++a];for(a++;128&o;)r=(127&o)<<7,o=e[a],a++;r+=127&o;for(var s=0;s>>0,s=t.subarray(a+4,a+8);if(0===o)break;var l=a+o;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(a+8,l);ne(s,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),a=l}return r},tt={EBML:J([26,69,223,163]),DocType:J([66,130]),Segment:J([24,83,128,103]),SegmentInfo:J([21,73,169,102]),Tracks:J([22,84,174,107]),Track:J([174]),TrackNumber:J([215]),DefaultDuration:J([35,227,131]),TrackEntry:J([174]),TrackType:J([131]),FlagDefault:J([136]),CodecID:J([134]),CodecPrivate:J([99,162]),VideoTrack:J([224]),AudioTrack:J([225]),Cluster:J([31,67,182,117]),Timestamp:J([231]),TimestampScale:J([42,215,177]),BlockGroup:J([160]),BlockDuration:J([155]),Block:J([161]),SimpleBlock:J([163])},nt=[128,64,32,16,8,4,2,1],it=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(e){for(var t=1,n=0;n=n.length)return n.length;var r=it(n,i,!1);if(ne(t.bytes,r.bytes))return i;var a=it(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)},ot=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(e){return rt(e)})):[rt(e)]}(n),t=J(t);var i=[];if(!n.length)return i;for(var r=0;rt.length?t.length:s+o.value,u=t.subarray(s,l);ne(n[0],a.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1)))),r+=a.length+o.length+u.length}return i},st=J([0,0,0,1]),lt=J([0,0,1]),ut=J([0,0,3]),ct=function(e){for(var t=[],n=1;n>1&63),-1!==n.indexOf(l)&&(r=a+s),a+=s+("h264"===t?1:2)}else a++}return e.subarray(0,0)},ht={webm:J([119,101,98,109]),matroska:J([109,97,116,114,111,115,107,97]),flac:J([102,76,97,67]),ogg:J([79,103,103,83]),ac3:J([11,119]),riff:J([82,73,70,70]),avi:J([65,86,73]),wav:J([87,65,86,69]),"3gp":J([102,116,121,112,51,103]),mp4:J([102,116,121,112]),fmp4:J([115,116,121,112]),mov:J([102,116,121,112,113,116]),moov:J([109,111,111,118]),moof:J([109,111,111,102])},pt={aac:function(e){var t=Je(e);return ne(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Je(e);return ne(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=ot(e,[tt.EBML,tt.DocType])[0];return ne(t,ht.webm)},mkv:function(e){var t=ot(e,[tt.EBML,tt.DocType])[0];return ne(t,ht.matroska)},mp4:function(e){return!pt["3gp"](e)&&!pt.mov(e)&&(!(!ne(e,ht.mp4,{offset:4})&&!ne(e,ht.fmp4,{offset:4}))||!(!ne(e,ht.moof,{offset:4})&&!ne(e,ht.moov,{offset:4}))||void 0)},mov:function(e){return ne(e,ht.mov,{offset:4})},"3gp":function(e){return ne(e,ht["3gp"],{offset:4})},ac3:function(e){var t=Je(e);return ne(e,ht.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+1880?l:0)}if(r().console){var u=r().console[n];u||"debug"!==n||(u=r().console.info||r().console.log),u&&o&&s.test(n)&&u[Array.isArray(a)?"apply":"call"](r().console,a)}}}(t,a),a.createLogger=function(n){return e(t+": "+n)},a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},a.level=function(e){if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');i=e}return i},(a.history=function(){return It?[].concat(It):[]}).filter=function(e){return(It||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},a.history.clear=function(){It&&(It.length=0)},a.history.disable=function(){null!==It&&(It.length=0,It=null)},a.history.enable=function(){null===It&&(It=[])},a.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=0)throw new Error("class has illegal whitespace characters")}function dn(){return o()===r().document}function hn(e){return Rt(e)&&1===e.nodeType}function pn(){try{return r().parent!==r().self}catch(e){return!0}}function fn(e){return function(t,n){if(!un(t))return o()[e](null);un(n)&&(n=o().querySelector(n));var i=hn(n)?n:o();return i[e]&&i[e](t)}}function mn(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=o().createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Pt.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?gn(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Mn(r,i),r}function gn(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function vn(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function yn(e,t){return cn(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function bn(e,t){return e.classList?e.classList.add(t):yn(e,t)||(e.className=(e.className+" "+t).trim()),e}function _n(e,t){return e?(e.classList?e.classList.remove(t):(cn(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(Pt.warn("removeClass was called with an element that doesn't exist"),null)}function Tn(e,t,n){var i=yn(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?bn(e,t):_n(e,t),e}function Sn(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function wn(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,i=n.length-1;i>=0;i--){var r=n[i].name,a=n[i].value;"boolean"!=typeof e[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(a=null!==a),t[r]=a}return t}function kn(e,t){return e.getAttribute(t)}function Cn(e,t,n){e.setAttribute(t,n)}function En(e,t){e.removeAttribute(t)}function jn(){o().body.focus(),o().onselectstart=function(){return!1}}function xn(){o().onselectstart=function(){return!0}}function An(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Bt(e,"height"))),n.width||(n.width=parseFloat(Bt(e,"width"))),n}}function In(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==o()[Ct.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Pn(e,t){var n={x:0,y:0};if(on)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=Bt(i,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}var s={},l=In(t.target),u=In(e),c=u.width,d=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,on&&(p-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/d)),s.x=Math.max(0,Math.min(1,p/c)),s}function Dn(e){return Rt(e)&&3===e.nodeType}function Ln(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function On(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),hn(e)||Dn(e)?e:"string"==typeof e&&/\S/.test(e)?o().createTextNode(e):void 0})).filter((function(e){return e}))}function Mn(e,t){return On(t).forEach((function(t){return e.appendChild(t)})),e}function Nn(e,t){return Mn(Ln(e),t)}function Rn(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var Un,Bn=fn("querySelector"),Fn=fn("querySelectorAll"),Vn=Object.freeze({__proto__:null,isReal:dn,isEl:hn,isInFrame:pn,createEl:mn,textContent:gn,prependTo:vn,hasClass:yn,addClass:bn,removeClass:_n,toggleClass:Tn,setAttributes:Sn,getAttributes:wn,getAttribute:kn,setAttribute:Cn,removeAttribute:En,blockTextSelection:jn,unblockTextSelection:xn,getBoundingClientRect:An,findPosition:In,getPointerPosition:Pn,isTextNode:Dn,emptyEl:Ln,normalizeContent:On,appendContent:Mn,insertContent:Nn,isSingleLeftClick:Rn,$:Bn,$$:Fn}),qn=!1,zn=function(){if(!1!==Un.options.autoSetup){var e=Array.prototype.slice.call(o().getElementsByTagName("video")),t=Array.prototype.slice.call(o().getElementsByTagName("audio")),n=Array.prototype.slice.call(o().getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function ai(e,t,n){if($n.has(e)){var i=$n.get(e);if(i.handlers){if(Array.isArray(t))return ei(ai,e,t,n);var r=function(e,t){i.handlers[t]=[],Zn(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o=t&&(e.apply(void 0,arguments),n=i)}},fi=function(){};fi.prototype.allowedEvents_={},fi.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ri(this,e,t),this.addEventListener=n},fi.prototype.addEventListener=fi.prototype.on,fi.prototype.off=function(e,t){ai(this,e,t)},fi.prototype.removeEventListener=fi.prototype.off,fi.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},si(this,e,t),this.addEventListener=n},fi.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},li(this,e,t),this.addEventListener=n},fi.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=ti(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),oi(this,e)},fi.prototype.dispatchEvent=fi.prototype.trigger,fi.prototype.queueTrigger=function(e){var t=this;ui||(ui=new Map);var n=e.type||e,i=ui.get(this);i||(i=new Map,ui.set(this,i));var a=i.get(n);i.delete(n),r().clearTimeout(a);var o=r().setTimeout((function(){i.delete(n),0===i.size&&(i=null,ui.delete(t)),t.trigger(e)}),0);i.set(n,o)};var mi=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},gi=function(e){return e instanceof fi||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},vi=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},yi=function(e,t,n){if(!e||!e.nodeName&&!gi(e))throw new Error("Invalid target for "+mi(t)+"#"+n+"; must be a DOM node or evented object.")},bi=function(e,t,n){if(!vi(e))throw new Error("Invalid event type for "+mi(t)+"#"+n+"; must be a non-empty string or array.")},_i=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+mi(t)+"#"+n+"; must be a function.")},Ti=function(e,t,n){var i,r,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),yi(i,e,n),bi(r,e,n),_i(a,e,n),{isTargetingSelf:o,target:i,type:r,listener:a=hi(e,a)}},Si=function(e,t,n,i){yi(e,e,t),e.nodeName?ci[t](e,n,i):e[t](n,i)},wi={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Ai(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return mn(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],o=i&&i.split("-")[0],s=r&&r[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[xi(e.name())]=null,this.childNameIndex_[ji(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||xi(t.name));return n&&!a.isTech(n)})).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Bn(e,t||this.contentEl())},t.$$=function(e,t){return Fn(e,t||this.contentEl())},t.hasClass=function(e){return yn(this.el_,e)},t.addClass=function(e){bn(this.el_,e)},t.removeClass=function(e){_n(this.el_,e)},t.toggleClass=function(e,t){Tn(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return kn(this.el_,e)},t.setAttribute=function(e,t){Cn(this.el_,e,t)},t.removeAttribute=function(e){En(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+xi(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Bt(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+xi(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(u().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=r().performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}}));var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){n=null,!0===e&&r().performance.now()-t<200&&(i.preventDefault(),this.trigger("tap"))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=hi(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=hi(this,e),this.clearTimersOnDispose_(),n=r().setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),r().clearTimeout(e)),e},t.setInterval=function(e,t){e=hi(this,e),this.clearTimersOnDispose_();var n=r().setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),r().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=hi(this,e),t=r().requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=hi(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),r().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!a)throw new Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=xi(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var s=o.players,l=Object.keys(s);if(s&&l.length>0&&l.map((function(e){return s[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[ji(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Mi(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function Ni(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Mi.bind(null,"start",0,e),end:Mi.bind(null,"end",1,e)},r().Symbol&&r().Symbol.iterator&&(t[r().Symbol.iterator]=function(){return(e||[]).values()}),t}function Ri(e,t){return Array.isArray(e)?Ni(e):void 0===e||void 0===t?Ni():Ni([[e,t]])}function Ui(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Ri(0,0));for(var a=0;at&&(i=t),r+=i-n;return r/t}function Bi(e){if(e instanceof Bi)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:Rt(e)&&("number"==typeof e.code&&(this.code=e.code),Nt(this,e)),this.message||(this.message=Bi.defaultMessages[this.code]||"")}Oi.prototype.supportsRaf_="function"==typeof r().requestAnimationFrame&&"function"==typeof r().cancelAnimationFrame,Oi.registerComponent("Component",Oi),Bi.prototype.code=0,Bi.prototype.message="",Bi.prototype.status=null,Bi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Bi.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Fi=0;Fi=0;i--)if(t[i].enabled){Ki(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Ki(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Ki(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Gi),Qi=function(e,t){for(var n=0;n=0;i--)if(t[i].selected){Qi(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(c(n),"selectedIndex",{get:function(){for(var e=0;e0&&(r().console&&r().console.groupCollapsed&&r().console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Pt.error(e)})),r().console&&r().console.groupEnd&&r().console.groupEnd()),n.flush()},hr=function(e,t){var n={uri:e},i=ur(e);i&&(n.cors=i);var a="use-credentials"===t.tech_.crossOrigin();a&&(n.withCredentials=a),g()(n,hi(this,(function(e,n,i){if(e)return Pt.error(e,n);t.loaded_=!0,"function"!=typeof r().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return dr(i,t);Pt.error("vttjs failed to load, stopping trying to process "+t.src)})):dr(i,t)})))},pr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Ai(t,{kind:ir[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=rr[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new er(n.cues_),s=new er(n.activeCues_),l=!1;return n.timeupdateHandler=hi(c(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))})),n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==r&&n.startTracking(),Object.defineProperties(c(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){rr[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||hr(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a0)return void this.trigger("vttjsloaded");var t=o().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](i,n)}}(e,n,s,o),s}var Er={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},jr={setCurrentTime:1,setMuted:1,setVolume:1},xr={play:1,pause:1};function Ar(e){return function(t,n){return t===wr?wr:n[e]?n[e](t):t}}function Ir(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var o=t,s=o[0],l=o.slice(1);if("string"==typeof s)Ir(e,Tr[s],n,i,r,a);else if(s){var u=function(e,t){var n=Sr[e.id()],i=null;if(null==n)return i=t(e),Sr[e.id()]=[[t,i]],i;for(var r=0;r0;!this.player_.tech(!0)||(Zt||Qt)&&t||this.player_.tech(!0).focus(),this.player_.paused()?qi(this.player_.play()):this.player_.pause()}},t}(Nr);Oi.registerComponent("PosterImage",Rr);var Ur="#222",Br={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Fr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Vr(e,t,n){try{e.style[t]=n}catch(e){return}}var qr=function(e){function t(t,n,i){var a;a=e.call(this,t,n,i)||this;var o=function(e){return a.updateDisplay(e)};return t.on("loadstart",(function(e){return a.toggleDisplay(e)})),t.on("texttrackchange",o),t.on("loadedmetadata",(function(e){return a.preselectTrack(e)})),t.ready(hi(c(a),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",o),t.on("playerresize",o),r().addEventListener("orientationchange",o),t.on("dispose",(function(){return r().removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n0;return qi(t),void(!this.player_.tech(!0)||(Zt||Qt)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};Vi(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Hr);Wr.prototype.controlText_="Play Video",Oi.registerComponent("BigPlayButton",Wr);var Gr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){u().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Hr);Oi.registerComponent("CloseButton",Gr);var Xr=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?qi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(Hr);Xr.prototype.controlText_="Play",Oi.registerComponent("PlayToggle",Xr);var Kr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||o>0?r+":":"")+(i=((r||a>=10)&&i<10?"0"+i:i)+":")+(n<10?"0"+n:n)},Yr=Kr;function Qr(e,t){return void 0===t&&(t=e),Yr(e,t)}var Jr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=mn("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=mn("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=Qr(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,Pt.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=o().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Oi);Jr.prototype.labelText_="Time",Jr.prototype.controlText_="Time",Oi.registerComponent("TimeDisplay",Jr);var $r=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Jr);$r.prototype.labelText_="Current Time",$r.prototype.controlText_="Current Time",Oi.registerComponent("CurrentTimeDisplay",$r);var Zr=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Jr);Zr.prototype.labelText_="Duration",Zr.prototype.controlText_="Duration",Oi.registerComponent("DurationDisplay",Zr);var ea=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Oi);Oi.registerComponent("TimeDivider",ea);var ta=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",(function(e){return i.updateContent(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(mn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Jr);ta.prototype.labelText_="Remaining Time",ta.prototype.controlText_="Remaining Time",Oi.registerComponent("RemainingTimeDisplay",ta);var na=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=mn("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(mn("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Oi);Oi.registerComponent("LiveDisplay",na);var ia=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=mn("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Hr);ia.prototype.controlText_="Seek to live, currently playing live",Oi.registerComponent("SeekToLive",ia);var ra=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},aa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}h(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=Nt({tabIndex:0},n),i=Nt({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Jt||e.preventDefault(),jn(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;xn(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(ra(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Pn(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){u().isEventKey(t,"Left")||u().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):u().isEventKey(t,"Right")||u().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Oi);Oi.registerComponent("Slider",aa);var oa=function(e,t){return ra(e/t*100,0,100).toFixed(2)+"%"},sa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=mn("span",{className:"vjs-control-text"}),i=mn("span",{textContent:this.localize("Loaded")}),r=o().createTextNode(": ");return this.percentageEl_=mn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,o=oa(r,i);t.percent_!==o&&(t.el_.style.width=o,gn(t.percentageEl_,o),t.percent_=o);for(var s=0;sn.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Oi);Oi.registerComponent("LoadProgressBar",sa);var la=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=pi(hi(c(i),i.update),di),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=In(this.el_),r=An(this.player_.el()),a=e.width*t;if(r&&i){var o=e.left-r.left+a,s=e.width-a+(r.right-e.right),l=i.width/2;oi.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){gn(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),l=s-t*s;a=(l<1?"":"-")+Qr(l,s)}else a=Qr(n,o);r.update(e,t,a),i&&i()}))},t}(Oi);Oi.registerComponent("TimeTooltip",la);var ua=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=pi(hi(c(i),i.update),di),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Oi);ua.prototype.options_={children:[]},on||Gt||ua.prototype.options_.children.push("timeTooltip"),Oi.registerComponent("PlayProgressBar",ua);var ca=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=pi(hi(c(i),i.update),di),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Oi);ca.prototype.options_={children:["timeTooltip"]},Oi.registerComponent("MouseTimeDisplay",ca);var da=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}h(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=hi(this,this.update),this.update=pi(this.update_,di),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,di))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==o().visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Qr(e,r),Qr(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(An(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Rn(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Rn(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),o=r.liveCurrentTime();if((n=a+i*r.liveWindow())>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?qi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(u().isEventKey(t,"Space")||u().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(u().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(u().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(u()(t))){t.preventDefault(),t.stopPropagation();var i=10*(u().codes[u()(t)]-u().codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else u().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):u().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(aa);da.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},on||Gt||da.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Oi.registerComponent("SeekBar",da);var ha=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=pi(hi(c(i),i.handleMouseMove),di),i.throttledHandleMouseSeek=pi(hi(c(i),i.handleMouseSeek),di),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=In(r),o=Pn(r,e).x;o=ra(o,0,1),i&&i.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&qi(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Oi);ha.prototype.options_={children:["seekBar"]},Oi.registerComponent("ProgressControl",ha);var pa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Hr);pa.prototype.controlText_="Picture-in-Picture",Oi.registerComponent("PictureInPictureToggle",pa);var fa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===o()[t.fsApi_.fullscreenEnabled]&&i.disable(),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Hr);fa.prototype.controlText_="Fullscreen",Oi.registerComponent("FullscreenToggle",fa);var ma=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Oi);Oi.registerComponent("VolumeLevel",ma);var ga=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=pi(hi(c(i),i.update),di),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=An(this.el_),a=An(this.player_.el()),o=e.width*t;if(!a||!r)return;var s=e.left-a.left+o,l=e.width-o+(a.right-e.right),u=r.width/2;sr.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(i+"%")},n.write=function(e){gn(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(Oi);Oi.registerComponent("VolumeLevelTooltip",ga);var va=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=pi(hi(c(i),i.update),di),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(Oi);va.prototype.options_={children:["volumeLevelTooltip"]},Oi.registerComponent("MouseVolumeLevelDisplay",va);var ya=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Rn(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=An(n),r=this.vertical(),a=Pn(n,e);a=r?a.y:a.x,a=ra(a,0,1),t.update(i,a,r)}Rn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(aa);ya.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},on||Gt||ya.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),ya.prototype.playerEvent="volumechange",Oi.registerComponent("VolumeBar",ya);var ba=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Ut(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(c(i=e.call(this,t,n)||this),t),i.throttledHandleMouseMove=pi(hi(c(i),i.handleMouseMove),di),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Oi);ba.prototype.options_={children:["volumeBar"]},Oi.registerComponent("VolumeControl",ba);var _a=function(e){function t(t,n){var i;return function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(c(i=e.call(this,t,n)||this),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;on&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)_n(this.el_,"vjs-vol-"+n);bn(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Hr);_a.prototype.controlText_="Mute",Oi.registerComponent("MuteToggle",_a);var Ta=function(e){function t(t,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||Ut(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}h(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u().isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),ri(o(),"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),ai(o(),"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){u().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Oi);Ta.prototype.options_={children:["muteToggle","volumeControl"]},Oi.registerComponent("VolumePanel",Ta);var Sa=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}h(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Oi&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Oi&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=mn(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ri(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||o().activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){u().isEventKey(e,"Left")||u().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u().isEventKey(e,"Right")||u().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Oi);Oi.registerComponent("Menu",Sa);var wa=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new Hr(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Hr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),ri(o(),"keyup",i.handleMenuKeyUp_)})),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}h(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new Sa(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=mn("li",{className:"vjs-menu-title",textContent:xi(this.options_.title),tabIndex:-1}),n=new Oi(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(ja);Oi.registerComponent("OffTextTrackMenuItem",xa);var Aa=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return h(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=ja),this.label_&&(n=this.label_+" off"),e.push(new xa(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(ka);Oi.registerComponent("TextTrackButton",Aa);var Ia=function(e){function t(t,n){var i,r=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(xi(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n-1&&(i.label_="captions"),i.menuButton_.controlText(xi(i.label_)),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Oa(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t,Na)},t}(Aa);Ra.prototype.kinds_=["captions","subtitles"],Ra.prototype.controlText_="Subtitles",Oi.registerComponent("SubsCapsButton",Ra);var Ua=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;n--)t.push(new Fa(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(wa);Va.prototype.controlText_="Playback Rate",Oi.registerComponent("PlaybackRateMenuButton",Va);var qa=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Oi);Oi.registerComponent("Spacer",qa);var za=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(qa);Oi.registerComponent("CustomControlSpacer",za);var Ha=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Oi);Ha.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o()&&Ha.prototype.options_.children.splice(Ha.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Oi.registerComponent("ControlBar",Ha);var Wa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",(function(e){return i.open(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Wi);Wa.prototype.options_=s({},Wi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Oi.registerComponent("ErrorDisplay",Wa);var Ga="vjs-text-track-settings",Xa=["#000","Black"],Ka=["#00F","Blue"],Ya=["#0FF","Cyan"],Qa=["#0F0","Green"],Ja=["#F0F","Magenta"],$a=["#F00","Red"],Za=["#FFF","White"],eo=["#FF0","Yellow"],to=["1","Opaque"],no=["0.5","Semi-Transparent"],io=["0","Transparent"],ro={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Xa,Za,$a,Qa,Ka,eo,Ja,Ya]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[to,no,io]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Za,Xa,$a,Qa,Ka,eo,Ja,Ya]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[to,no]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[io,no,to]}};function ao(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}ro.windowColor.options=ro.backgroundColor.options;var oo=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(c(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=mn("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),Mt(ro,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}h(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=ro[e],a=r.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"",'").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
"].join("")},n.createElColors_=function(){return mn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return mn("div",{className:"vjs-track-settings-font",innerHTML:['
',this.createElSelect_("fontPercent","","legend"),"
",'
',this.createElSelect_("edgeStyle","","legend"),"
",'
',this.createElSelect_("fontFamily","","legend"),"
"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return mn("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;return t=function(e,t,n){var r,a,o=(r=i.$(t.selector),a=t.parser,ao(r.options[r.options.selectedIndex].value,a));return void 0!==o&&(e[n]=o),e},void 0===(n={})&&(n=0),Ot(e=ro).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;Mt(ro,(function(n,i){!function(e,t,n){if(t)for(var i=0;ithis.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,di),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(o(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Oi);Oi.registerComponent("LiveTracker",uo);var co,ho=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&sn?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Pt(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;return this.el_.duration===1/0&&Gt&&Jt&&0===this.el_.currentTime?(this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=r().navigator&&r().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)qi(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o().createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r().performance&&"function"==typeof r().performance.now?e.creationTime=r().performance.now():r().performance&&r().performance.timing&&"number"==typeof r().performance.timing.navigationStart&&(e.creationTime=r().Date.now()-r().performance.timing.navigationStart),e},t}(_r);vo(yo,"TEST_VID",(function(){if(dn()){var e=o().createElement("video"),t=o().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),yo.isSupported=function(){try{yo.TEST_VID.volume=.5}catch(e){return!1}return!(!yo.TEST_VID||!yo.TEST_VID.canPlayType)},yo.canPlayType=function(e){return yo.TEST_VID.canPlayType(e)},yo.canPlaySource=function(e,t){return yo.canPlayType(e.type)},yo.canControlVolume=function(){try{var e=yo.TEST_VID.volume;yo.TEST_VID.volume=e/2+.1;var t=e!==yo.TEST_VID.volume;return t&&on?(r().setTimeout((function(){yo&&yo.prototype&&(yo.prototype.featuresVolumeControl=e!==yo.TEST_VID.volume)})),!1):t}catch(e){return!1}},yo.canMuteVolume=function(){try{var e=yo.TEST_VID.muted;return yo.TEST_VID.muted=!e,yo.TEST_VID.muted?Cn(yo.TEST_VID,"muted","muted"):En(yo.TEST_VID,"muted"),e!==yo.TEST_VID.muted}catch(e){return!1}},yo.canControlPlaybackRate=function(){if(Gt&&Jt&&$t<58)return!1;try{var e=yo.TEST_VID.playbackRate;return yo.TEST_VID.playbackRate=e/2+.1,e!==yo.TEST_VID.playbackRate}catch(e){return!1}},yo.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(o().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},yo.supportsNativeTextTracks=function(){return sn||on&&Jt},yo.supportsNativeVideoTracks=function(){return!(!yo.TEST_VID||!yo.TEST_VID.videoTracks)},yo.supportsNativeAudioTracks=function(){return!(!yo.TEST_VID||!yo.TEST_VID.audioTracks)},yo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];vo(yo.prototype,t,(function(){return yo[n]()}),!0)})),yo.prototype.featuresVolumeControl=yo.canControlVolume(),yo.prototype.movingMediaElementInDOM=!on,yo.prototype.featuresFullscreenResize=!0,yo.prototype.featuresProgressEvents=!0,yo.prototype.featuresTimeupdateEvents=!0,yo.prototype.featuresVideoFrameCallback=!(!yo.TEST_VID||!yo.TEST_VID.requestVideoFrameCallback),yo.patchCanPlayType=function(){Xt>=4&&!Yt&&!Jt&&(co=yo.TEST_VID&&yo.TEST_VID.constructor.prototype.canPlayType,yo.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":co.call(this,e)})},yo.unpatchCanPlayType=function(){var e=yo.TEST_VID.constructor.prototype.canPlayType;return co&&(yo.TEST_VID.constructor.prototype.canPlayType=co),e},yo.patchCanPlayType(),yo.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},yo.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){yo.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){yo.prototype["set"+xi(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){yo.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){yo.prototype["set"+xi(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){yo.prototype[e]=function(){return this.el_[e]()}})),_r.withSourceHandlers(yo),yo.nativeSourceHandler={},yo.nativeSourceHandler.canPlayType=function(e){try{return yo.TEST_VID.canPlayType(e)}catch(e){return""}},yo.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return yo.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=lr(e.src);return yo.nativeSourceHandler.canPlayType("video/"+n)}return""},yo.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},yo.nativeSourceHandler.dispose=function(){},yo.registerSourceHandler(yo.nativeSourceHandler),_r.registerTech("Html5",yo);var bo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],_o={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},To=["tiny","xsmall","small","medium","large","xlarge","huge"],So={};To.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;So[e]="vjs-layout-"+t}));var wo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ko=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+Qn(),(i=Nt(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(i.language=s.getAttribute("lang"))}else for(var l=n;l&&1===l.nodeType;){if(wn(l).hasOwnProperty("lang")){i.language=l.getAttribute("lang");break}l=l.parentNode}if((a=e.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=Dt(a.id_),a.fsApi_=Ct,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&wn(n),a.language(a.options_.language),i.languages){var u={};Object.getOwnPropertyNames(i.languages).forEach((function(e){u[e.toLowerCase()]=i.languages[e]})),a.languages_=u}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!=typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),ki(c(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(ri(o(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=Ai(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),nn&&a.addClass("vjs-touch-enabled"),on||a.addClass("vjs-workinghover"),t.players[a.id_]=c(a);var h=Tt.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}h(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),ai(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ai(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(e){Sr[e.id()]=null}(this),br.names.forEach((function(e){var t=br[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),a="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:a||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=wn(n);if(a){for(t=this.el_=n,n=this.tag=o().createElement("video");t.children.length;)n.appendChild(t.firstChild);yn(t,"video-js")||bn(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(Zt||Jt&&tn)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){a&&"class"===e||t.setAttribute(e,s[e]),a&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==r().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xn("vjs-styles-dimensions");var l=Bn(".vjs-styles-defaults"),u=Bn("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var c=n.getElementsByTagName("a"),d=0;d0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),a=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Kn(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*a+"%;\n }\n ")}else{var o="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(o>=0&&(l.width=o),s>=0&&(l.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=xi(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(_r.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};br.names.forEach((function(e){var t=br[e];o[t.getterName]=n[t.privateName]})),Nt(o,this.options_[i]),Nt(o,this.options_[r]),Nt(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s,l,u=_r.getTech(e);if(!u)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new u(o),this.tech_.ready(hi(this,this.handleTechReady_),!0),s=this.textTracksJson_||[],l=this.tech_,s.forEach((function(e){var t=l.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return t.addCue(e)}))})),l.textTracks(),bo.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+xi(e)+"_"](t)}))})),Object.keys(_o).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+_o[e]+"_"].bind(n),event:t}):n["handleTech"+_o[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||vn(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e,t,n,i=this;br.names.forEach((function(e){var t=br[e];i[t.privateName]=i[t.getterName]()})),this.textTracksJson_=(e=this.tech_,t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),Array.prototype.map.call(t,(function(e){var t=zi(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(zi))),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Pt.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Vi(i))return i.catch((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():Vi(n=this.play())&&(n=n.catch(i)),Vi(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Pt.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?qi(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=o()[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in jr)return function(e,t,n,i){return t[n](e.reduce(Ar(n),i))}(this.middleware_,this.tech_,e,t);if(e in xr)return Cr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Pt(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Er)return function(e,t,n){return e.reduceRight(Ar(n),t[n]())}(this.middleware_,this.tech_,e);if(e in xr)return Cr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Pt("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Pt("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Pt(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||r().Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=qi),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(sn||on);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!n&&i&&this.load());var r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Ri(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Ri(0,0)),e},n.bufferedPercent=function(){return Ui(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||r().Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(r,r),s.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||r().Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=o()[this.fsApi_.exitFullscreen]();return t&&qi(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,ri(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",bn(o().body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){u().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,ai(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,_n(o().body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o())return o().exitPictureInPicture()},n.handleKeyDown=function(e){var t,n,i=this.options_.userActions;i&&i.hotkeys&&(t=this.el_.ownerDocument.activeElement,n=t.tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return u().isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return u().isEventKey(e,"m")}:r,s=t.playPauseKey,l=void 0===s?function(e){return u().isEventKey(e,"k")||u().isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var c=Oi.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else a.call(this,e)?(e.preventDefault(),e.stopPropagation(),Oi.getComponent("MuteToggle").prototype.handleClick.call(this,e)):l.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Oi.getComponent("PlayToggle").prototype.handleClick.call(this,e))},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());a=r,o=n.tech_,a.forEach((function(e){return e.setTech&&e.setTech(o)}))})),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n,i=this,r=this.selectSource([e]);return!r||(t=r.tech,n=this.techName_,xi(t)!==xi(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){i.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||r().Promise;this.paused()||!t?this.doReset_():qi(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),gi(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(wt("beforeerror").forEach((function(n){var i=n(t,e);Rt(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Bi(e),this.addClass("vjs-error"),Pt.error("(CODE:"+this.error_.code+" "+Bi.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),wt("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=hi(this,this.reportUserActivity),r=function(t){i(),this.clearInterval(e)};this.on("mousedown",(function(){i(),this.clearInterval(e),e=this.setInterval(i,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())})),this.on("mouseup",r),this.on("mouseleave",r);var a,o=this.getChild("controlBar");!o||on||Gt||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||r().Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||r().Promise;return n?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),gi(this)&&this.trigger("languagechange"))},n.languages=function(){return Ai(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Ai(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n"):function(){}},zo=1/30,Ho=.1,Wo=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n=t}))},Xo=function(e,t){return Wo(e,(function(e){return e-zo>=t}))},Ko=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n "+e.end(n));return t.join(", ")},Yo=function(e){for(var t=[],n=0;na||(n+=t>r&&t<=a?a-t:a-r)}return n},$o=Ro.createTimeRange,Zo=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},es=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},ts=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ns=function(e){var t=e.preloadSegment;if(t){var n=t.parts;return(t.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0)+(n&&n.length?n.length:0)}},is=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=ts(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},rs=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),tr){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var s=i;sDate.now()},us=function(e){return e.excludeUntil&&e.excludeUntil===1/0},cs=function(e){var t=ls(e);return!e.disabled&&!t},ds=function(e,t){return t.attributes&&t.attributes[e]},hs=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!cs(e)&&(e.attributes.BANDWIDTH||0)0)for(var h=u-1;h>=0;h--){var p=l[h];if(s+=p.duration,o){if(s<0)continue}else if(s+zo<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-os({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(u<0){for(var f=u;f<0;f++)if((s-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};u=0}for(var m=u;m0)continue}else if(s-zo>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+os({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},isEnabled:cs,isDisabled:function(e){return e.disabled},isBlacklisted:ls,isIncompatible:us,playlistEnd:ss,isAes:function(e){for(var t=0;t-1&&s!==o.length-1&&(n._HLS_part=s),(s>-1||o.length)&&a--}n._HLS_msn=a}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var l=new(r().URL)(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&l.searchParams.set(e,n[e])})),e=l.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,o=e.customTagMappers,s=void 0===o?[]:o,l=e.experimentalLLHLS,u=new N;t&&u.on("warn",t),n&&u.on("info",n),a.forEach((function(e){return u.addParser(e)})),s.forEach((function(e){return u.addTagMapper(e)})),u.push(i),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){c.hasOwnProperty(e)&&delete c[e]})),c.segments&&c.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!c.targetDuration){var d=10;c.segments&&c.segments.length&&(d=c.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),c.targetDuration=d}var h=ts(c);if(h.length&&!c.partTargetDuration){var p=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+p),vs.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=p}return c}({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),Ts({playlist:a,uri:i,id:r});var o=As(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Is(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),r().clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(r().clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=r().setTimeout(this.media.bind(this,e,!1),i)}else{var a=this.state,o=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(o&&(this.trigger("mediachanging"),"HAVE_MASTER"===a?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Is(e,!0)),o){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Vo(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,a);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===a?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=r().setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=r().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Vo(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Ss(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=js(e),e.segments.forEach((function(t){Es(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||r().location.href;this.master=function(e,t){var n=ys(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:r().location.href,resolvedUri:r().location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(ks),Ds=Ro.xhr,Ls=Ro.mergeOptions,Os=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ms=function(){var e=function e(t,n){t=Ls({timeout:45e3},t);var i=e.beforeRequest||Ro.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=(!0===Ro.Vhs.xhr.original?Ds:Ro.Vhs.xhr)(t,(function(e,t){return Os(a,e,t,n)})),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},Ns=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?r().BigInt(t.offset)+r().BigInt(t.length)-r().BigInt(1):t.offset+t.length-1)),n},Rs=function(e,t){return e.start(t)+"-"+e.end(t)},Us=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Bs=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Fs=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];Q(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Vs=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},qs=function(e){return e.resolvedUri},zs=function(e){for(var t=Array.prototype.slice.call(e),n=16,i="",r=0;rnew Date(s.getTime()+1e3*l)?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:gs.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,p=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+p),void u.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})})));var f=h.start+p;u.one("seeked",(function(){return c(null,u.currentTime())})),l&&u.pause(),o(f)},Gs=function(e,t){if(4===e.readyState)return t()},Xs=Ro.EventTarget,Ks=Ro.mergeOptions,Ys=function(e,t){if(!xs(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n=c+u)return s(t,{response:a.subarray(u,u+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:o,responseType:"arraybuffer",headers:Ns({byterange:e.sidx.byterange})},s)}))}else this.mediaRequest_=r().setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},r().clearTimeout(this.minimumUpdatePeriodTimeout_),r().clearTimeout(this.mediaRequest_),r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(r().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=r().setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Vo(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t,n=this,i=(t=this.masterPlaylistLoader_.masterXml_,function(e){var t=Ue(e,"UTCTiming")[0];if(!t)return null;var n=qe(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n}(Xe(t)));return null===i?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.masterPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Fo(this.masterPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},(function(t,r){if(n.request){if(t)return n.masterPlaylistLoader_.clientOffset_=n.masterLoaded_-Date.now(),e();var a;a="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):n.masterLoaded_:Date.parse(r.responseText),n.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,i=this.masterPlaylistLoader_.master,r=(n=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,u=Ue(e,"Period");if(!u.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var c=Ue(e,"Location"),d=qe(e),h=He([r],Ue(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=l,c.length&&(d.locations=c.map(Be));var p=[];return u.forEach((function(e,t){var n=qe(e),i=p[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0}({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:se(p.map(Ge(d,h)))}}(Xe(e),t),i=n.representationInfo.map(Re);return Ie({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})}((e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:i}).masterXml,{manifestUri:t=e.srcUrl,clientOffset:e.clientOffset,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest}),Ss(n,t,Qs),n);i&&(r=function(e,t,n){for(var i=!0,r=Ks(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(w.hdlr,A[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(w.mdhd,n)},f=function(e){return t(w.mdia,m(e),g(e.type),s(e))},o=function(e){return t(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(w.minf,"video"===e.type?t(w.vmhd,I):t(w.smhd,P),i(),y(e))},l=function(e,n){for(var i=[],r=n.length;r--;)i[r]=_(n[r]);return t.apply(null,[w.moof,o(e)].concat(i))},u=function(e){for(var n=e.length,i=[];n--;)i[n]=h(e[n]);return t.apply(null,[w.moov,d(4294967295)].concat(i).concat(c(e)))},c=function(e){for(var n=e.length,i=[];n--;)i[n]=T(e[n]);return t.apply(null,[w.mvex].concat(i))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(w.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(i=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),t(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(t(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,i)},U=function(e){return t(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},p=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(w.tkhd,n)},_=function(e){var n,i,r,a,o,s;return n=t(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/W),s=Math.floor(e.baseMediaDecodeTime%W),i=t(w.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),"audio"===e.type?(r=S(e,92),t(w.traf,n,i,r)):(a=v(e),r=S(e,a.length+92),t(w.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(w.trak,p(e),f(e))},T=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(w.trex,n)},V=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},F=function(e,n){var i,r,a,o,s,l;for(n+=20+16*(o=e.samples||[]).length,a=V(o,n),(r=new Uint8Array(a.length+16*o.length)).set(a),i=a.length,l=0;l>>24,r[i++]=(16711680&s.duration)>>>16,r[i++]=(65280&s.duration)>>>8,r[i++]=255&s.duration,r[i++]=(4278190080&s.size)>>>24,r[i++]=(16711680&s.size)>>>16,r[i++]=(65280&s.size)>>>8,r[i++]=255&s.size,r[i++]=s.flags.isLeading<<2|s.flags.dependsOn,r[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,r[i++]=61440&s.flags.degradationPriority,r[i++]=15&s.flags.degradationPriority,r[i++]=(4278190080&s.compositionTimeOffset)>>>24,r[i++]=(16711680&s.compositionTimeOffset)>>>16,r[i++]=(65280&s.compositionTimeOffset)>>>8,r[i++]=255&s.compositionTimeOffset;return t(w.trun,r)},B=function(e,n){var i,r,a,o,s,l;for(n+=20+8*(o=e.samples||[]).length,a=V(o,n),(i=new Uint8Array(a.length+8*o.length)).set(a),r=a.length,l=0;l>>24,i[r++]=(16711680&s.duration)>>>16,i[r++]=(65280&s.duration)>>>8,i[r++]=255&s.duration,i[r++]=(4278190080&s.size)>>>24,i[r++]=(16711680&s.size)>>>16,i[r++]=(65280&s.size)>>>8,i[r++]=255&s.size;return t(w.trun,i)},S=function(e,t){return"audio"===e.type?B(e,t):F(e,t)},a=function(){return t(w.ftyp,k,C,k,E)};var G,X,K,Y,Q,J,$,Z,ee=function(e){return t(w.mdat,e)},te=l,ne=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ie=[33,16,5,32,164,27],re=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ae=function(e){for(var t=[];e--;)t.push(0);return t},oe=9e4;J=function(e,t){return X(Q(e,t))},$=function(e,t){return K(Y(e),t)},Z=function(e,t,n){return Y(n?e:e-t)};var se=oe,le=X=function(e){return e*oe},ue=(K=function(e,t){return e*t},Y=function(e){return e/oe}),ce=(Q=function(e,t){return e/t},J),de=$,he=Z,pe=function(e,t,n,i){var r,a,o,s,l,u=0,c=0,d=0;if(t.length&&(r=ce(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(se/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),d=(c=Math.floor(u/a))*a),!(c<1||d>45e3))){for((o=function(){if(!G){var e={96e3:[ie,[227,64],ae(154),[56]],88200:[ie,[231],ae(170),[56]],64e3:[ie,[248,192],ae(240),[56]],48e3:[ie,[255,192],ae(268),[55,148,128],ae(54),[112]],44100:[ie,[255,192],ae(268),[55,163,128],ae(84),[112]],32e3:[ie,[255,192],ae(268),[55,234],ae(226),[112]],24e3:[ie,[255,192],ae(268),[55,255,128],ae(268),[111,112],ae(126),[224]],16e3:[ie,[255,192],ae(268),[55,255,128],ae(268),[111,255],ae(269),[223,108],ae(195),[1,192]],12e3:[re,ae(268),[3,127,248],ae(268),[6,255,240],ae(268),[13,255,224],ae(268),[27,253,128],ae(259),[56]],11025:[re,ae(268),[3,127,248],ae(268),[6,255,240],ae(268),[13,255,224],ae(268),[27,255,192],ae(268),[55,175,128],ae(108),[112]],8e3:[re,ae(268),[3,121,16],ae(47),[7]]};t=e,G=Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(e,t){return e.concat(t)}),[])),e}),{})}var t;return G}()[e.samplerate])||(o=t[0].data),s=0;s=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},_e.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},_e.prototype.addText=function(e){this.rows[this.rowIdx]+=e},_e.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Te=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new _e(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};Te.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new _e(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},Te.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Te.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Se=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Se.prototype=new q,Se.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Se.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Se.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Se.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},Se.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},Se.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Se.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Se.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},Se.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},Se.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},Se.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var we={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ke=function(e){return null===e?"":(e=we[e]||e,String.fromCharCode(e))},Ce=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ee=function(){for(var e=[],t=15;t--;)e.push("");return e},je=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ee();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ee();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ee()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=ke((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=ke((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Ce.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16&~t||(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(i)&&(0===r&&(r=null),a=ke(i),a+=ke(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};je.prototype=new q,je.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},je.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ee(),this.nonDisplayed_=Ee(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},je.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},je.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},je.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},je.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},je.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},je.prototype.isPAC=function(e,t){return e>=this.BASE_&&e=64&&t<=127},je.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},je.prototype.isNormalChar=function(e){return e>=32&&e<=127},je.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ee(),this.displayed_=Ee()),void 0!==t&&t!==this.row_)for(var n=0;n"}),"");this[this.mode_](e,n)},je.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+""}),"");this.formatting_=[],this[this.mode_](e,t)}},je.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},je.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},je.prototype.shiftRowsUp_=function(){var e;for(e=0;et&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},De=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||Ie,this.push=function(e){this.type_!==Ie&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Pe(e.dts,i),e.pts=Pe(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};De.prototype=new q;var Le,Oe=De,Me=Pe,Ne=function(e,t,n){var i,r="";for(i=t;i>>2;c*=4,c+=3&u[7],s.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Ae.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ae.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new q,Ve.STREAM_TYPES={h264:27,adts:15},qe=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},o=function(e,n,i){var r,a,o=new Uint8Array(e.size),s={type:n},l=0,u=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,l=0;l>>3,d.pts*=4,d.pts+=(6&c[13])>>>1,d.dts=d.pts,64&h&&(d.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,d.dts*=4,d.dts+=(6&c[18])>>>1)),d.data=c.subarray(9+c[8])),r="video"===n||s.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",s)}};qe.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case Ae.H264_STREAM_TYPE:e=i,t="video";break;case Ae.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ae.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},qe.prototype=new q;var Ge={PAT_PID:0,MP2T_PACKET_LENGTH:We,TransportPacketStream:Fe,TransportParseStream:Ve,ElementaryStream:qe,TimestampRolloverStream:He,CaptionStream:xe.CaptionStream,Cea608Stream:xe.Cea608Stream,Cea708Stream:xe.Cea708Stream,MetadataStream:ze};for(var Xe in Ae)Ae.hasOwnProperty(Xe)&&(Ge[Xe]=Ae[Xe]);var Ke,Ye=Ge,Qe=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Ke=function(e){var t,n=0;Ke.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,o,s,l,u=0;if(e||(n=0),"audio"===i.type){var c;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;u+7>5,l=9e4*(s=1024*(1+(3&t[u+6])))/Qe[(60&t[u+2])>>>2],t.byteLength-u>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:Qe[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),n++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},Ke.prototype=new q;var Je,$e,Ze,et=Ke,tt=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<>>e)return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};$e=function(){var e,t,n=0;$e.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},$e.prototype=new q,Ze={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Je=function(){var e,t,n,i,r,a,o,s=new $e;Je.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,s.push(e))},s.on("data",(function(o){var s={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,i=8,r=8;for(n=0;n=0?n:0,(16&e[t+5])>>4?n+20:n+10},ot=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=at(t,n))},st=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},lt={isLikelyAacData:function(e){var t=ot(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:at,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=st(e.subarray(10,14)));do{if((n=st(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r>>2;return(s*=4)+(3&o[7])}break}}t+=10,t+=n}while(t=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(s=lt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else{if(e.length-l<10)break;if(l+(s=lt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",r),l+=s}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new q;var ut,ct,dt,ht,pt=nt,ft=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],mt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],gt=it.H264Stream,vt=lt.isLikelyAacData,yt=function(e,t){t.stream=e,this.trigger("log",t)},bt=function(e,t){for(var n=Object.keys(t),i=0;i=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))}(i,e,r),e.baseMediaDecodeTime=me(e,t.keepOriginalTimestamps),p=pe(e,s,a,o),e.samples=function(e){var t,n,i=[];for(t=0;t1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e}(s)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");fe(e),s=f}ge(e,s),e.samples=function(e,t){var n,i,r,a,o,s=t||0,l=[];for(n=0;n=-1e4&&n<=45e3&&(!i||s>n)&&(i=a,s=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,l,u;for(a=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;ti.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,l;for(t=o.length-1,n=e.length-1,a=null,s=!1;t>=0&&n>=0;){if(i=o[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(0===(l=s?n:a))return e;var u=e.slice(l),c=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},ut.prototype=new q,ht=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ht.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},ht.prototype=new q,ht.prototype.flush=function(e){var t,n,i,r,o,s,l,c,d=0,h={captions:[],captionStreams:{},metadata:[],info:{}},p=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(p=this.videoTrack.timelineStartInfo.pts,mt.forEach((function(e){h.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(p=this.audioTrack.timelineStartInfo.pts,ft.forEach((function(e){h.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?h.type=this.pendingTracks[0].type:h.type="combined",this.emittedTracks+=this.pendingTracks.length,o=this.pendingTracks,s=void 0,l=void 0,c=void 0,l=a(),c=u(o),(s=new Uint8Array(l.byteLength+c.byteLength)).set(l),s.set(c,l.byteLength),i=s,h.initSegment=new Uint8Array(i.byteLength),h.initSegment.set(i),h.data=new Uint8Array(this.pendingBytes),r=0;r=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ht.prototype.setRemux=function(e){this.remuxTracks=e},dt=function(e){var t,n,i=this,r=!0;dt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Ye.MetadataStream,r.aacStream=new pt,r.audioTimestampRolloverStream=new Ye.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Ye.TimestampRolloverStream("timed-metadata"),r.adtsStream=new et,r.coalesceStream=new ht(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ct(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),bt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Ye.MetadataStream,r.packetStream=new Ye.TransportPacketStream,r.parseStream=new Ye.TransportParseStream,r.elementaryStream=new Ye.ElementaryStream,r.timestampRolloverStream=new Ye.TimestampRolloverStream,r.adtsStream=new et,r.h264Stream=new gt,r.captionStream=new Ye.CaptionStream(e),r.coalesceStream=new ht(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){for(o=a.tracks.length;o--;)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||((n=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new ut(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ct(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),bt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,fe(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,fe(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=vt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},dt.prototype=new q;var St,wt,kt,Ct={Transmuxer:dt,VideoSegmentStream:ut,AudioSegmentStream:ct,AUDIO_PROPERTIES:ft,VIDEO_PROPERTIES:mt,generateSegmentTimingInfo:Tt},Et=function(e){return e>>>0},jt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},xt=Et,At=function e(t,n){var i,r,a,o,s,l=[];if(!n.length)return null;for(i=0;i1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,o)):(s=e(t.subarray(i+8,o),n.slice(1))).length&&(l=l.concat(s))),i=o;return l},It=Et,Pt=H.getUint64,Dt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Lt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},Ot="undefined"!=typeof window?window:void 0!==Lt?Lt:"undefined"!=typeof self?self:{},Mt=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a0?function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Pt(e.subarray(4)):t.baseMediaDecodeTime=It(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t}(u[0]).baseMediaDecodeTime:0,d=At(o,["trun"]);t===l&&d.length>0&&(n=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach((function(e){var t=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:Dt(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=Dt(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n}(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+Ot.BigInt(e.compositionTimeOffset),i+=Ot.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),s=s.concat(t)})),s}(d,c,s),i=function(e,t,n){var i,r,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+40;){var l=t.shift();this.parse(l,a,o)}return s=function(e,t,n){if(null===t)return null;var i=Ut(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i),s&&s.logs&&(r.logs=r.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Ft=Et,Vt=function(e){return("00"+e.toString(16)).slice(-2)},qt=H.getUint64;St=function(e,t){var n=At(t,["moof","traf"]).reduce((function(t,n){var i,r,a=At(n,["tfhd"])[0],o=Ft(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,l=At(n,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(i=1===l[0]?qt(l.subarray(4,12)):u.getUint32(4))?r=i/Ot.BigInt(s):"number"!=typeof i||isNaN(i)||(r=i/s),r11?(r.codec+=".",r.codec+=Vt(c[9]),r.codec+=Vt(c[10]),r.codec+=Vt(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=d.subarray(28),"esds"===jt(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+Vt(c[19]),r.codec+="."+Vt(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=At(e,["mdia","mdhd"])[0];h&&(r.timescale=kt(h)),n.push(r)})),n};var zt=St,Ht=wt,Wt=function(e){var t=31&e[1];return(t<<=8)|e[2]},Gt=function(e){return!!(64&e[1])},Xt=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Kt=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Yt={parseType:function(e,t){var n=Wt(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=Gt(e),n=4+Xt(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Gt(e),i=4+Xt(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+Xt(e),n=e.subarray(t),i=0,r=0,a=!1;r3&&"slice_layer_without_partitioning_rbsp_idr"===Kt(31&n[r+3])&&(a=!0),a}},Qt=Me,Jt={};Jt.ts=Yt,Jt.aac=lt;var $t=se,Zt=188,en=71,tn=function(e,t,n){for(var i,r,a,o,s=0,l=Zt,u=!1;l<=e.byteLength;)if(e[s]!==en||e[l]!==en&&l!==e.byteLength)s++,l++;else{if(i=e.subarray(s,l),"pes"===Jt.ts.parseType(i,t.pid)&&(r=Jt.ts.parsePesType(i,t.table),a=Jt.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=Jt.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;s+=Zt,l+=Zt}for(s=(l=e.byteLength)-Zt,u=!1;s>=0;)if(e[s]!==en||e[l]!==en&&l!==e.byteLength)s--,l--;else{if(i=e.subarray(s,l),"pes"===Jt.ts.parseType(i,t.pid)&&(r=Jt.ts.parsePesType(i,t.table),a=Jt.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=Jt.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;s-=Zt,l-=Zt}},nn=function(e,t,n){for(var i,r,a,o,s,l,u,c=0,d=Zt,h=!1,p={data:[],size:0};d=0;)if(e[c]!==en||e[d]!==en)c--,d--;else{if(i=e.subarray(c,d),"pes"===Jt.ts.parseType(i,t.pid)&&(r=Jt.ts.parsePesType(i,t.table),a=Jt.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(o=Jt.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0)),h)break;c-=Zt,d-=Zt}},rn=function(e,t){var n;return n=Jt.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,a=null,o=0,s=0;e.length-s>=3;){switch(Jt.aac.parseType(e,s)){case"timed-metadata":if(e.length-s<10){n=!0;break}if((o=Jt.aac.parseId3TagSize(e,s))>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=Jt.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if((o=Jt.aac.parseAdtsSize(e,s))>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=Jt.aac.parseSampleRate(t)),i++,s+=o;break;default:s++}if(n)return null}if(null===r||null===a)return null;var l=$t/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}}(e):function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,r=Zt;r0}(f)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};dl({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?dl({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach((function(e){p(Ro.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=gt(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});yl({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},_l=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,o=e.decryptionWorker;o.addEventListener("message",(function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(Fs({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},Tl=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,fl(t),h(e,g);if((f+=1)===t.length){var v=function(){if(g.encryptedBytes)return function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;_l({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,bl({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}))}({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p});bl({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return _l({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,vl(g,(function(e){if(e)return fl(t),h(e,g);v()}))}));v()}}}}({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=t(Ro.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),gl(r,_,b));y.push(T)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var S=t(Ro.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),gl(r,[r.map.key],b));y.push(S)}var w=Ro.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Ns(r.map)}),k=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=ml(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,vl(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}}({segment:r,finishProcessingFn:b}),C=t(w,k);y.push(C)}var E=Ro.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Ns(r)}),j=t(E,function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=ml(e,r);if(a)return n(a,t);var o="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n1)return Sl("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Cl=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},El=function(e,t){var n=t.attributes||{},i=kl(function(e){var t=e.attributes||{};if(t.CODECS)return V(t.CODECS)}(t)||[]);if(wl(e,t)&&!i.audio&&!function(e,t){if(!wl(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(e,t)){var r=kl(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return V(r.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},jl=qo("PlaylistSelector"),xl=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Al=function(e,t){if(!e)return"";var n=r().getComputedStyle(e);return n?n[t]:""},Il=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},Pl=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||r().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i||r().Number.MAX_VALUE)},Dl=function(e,t,n,i,a,o){if(e){var s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:a},l=e.playlists;gs.isAudioOnly(e)&&(l=o.getAudioTrackPlaylists_(),s.audioOnly=!0);var u=l.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||r().Number.MAX_VALUE,width:t,height:n,playlist:e}}));Il(u,(function(e,t){return e.bandwidth-t.bandwidth}));var c=(u=u.filter((function(e){return!gs.isIncompatible(e.playlist)}))).filter((function(e){return gs.isEnabled(e.playlist)}));c.length||(c=u.filter((function(e){return!gs.isDisabled(e.playlist)})));var d=c.filter((function(e){return e.bandwidth*el.BANDWIDTH_VARIANCEn||e.height>i}))).filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=b[b.length-1],_=b.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),o.experimentalLeastPixelDiffSelector){var w=g.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));Il(w,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=w[0]}var k=T||_||S||p||c[0]||u[0];if(k&&k.playlist){var C="sortedPlaylistReps";return T?C="leastPixelDiffRep":_?C="resolutionPlusOneRep":S?C="resolutionBestRep":p?C="bandwidthBestRep":c[0]&&(C="enabledPlaylistReps"),jl("choosing "+xl(k)+" using "+C+" with options",s),k.playlist}return jl("could not choose a playlist with options",s),null}},Ll=function(){var e=this.useDevicePixelRatio&&r().devicePixelRatio||1;return Dl(this.playlists.master,this.systemBandwidth,parseInt(Al(this.tech_.el(),"width"),10)*e,parseInt(Al(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Ol=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},Ml=function(e){return"number"==typeof e&&isFinite(e)},Nl=1/60,Rl=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,l=a.segments,u=void 0===l?[]:l,c=e.mediaIndex,d=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?ns({preloadSegment:i})-1:0;return g+" ["+(o+c)+"/"+(o+p)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+s+"]"},Ul=function(e){return e+"TimingInfo"},Bl=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==i}if("main"===r&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==i}return!1},Fl=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+zo},Vl=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Ro.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=qo("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(c(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}h(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return function(e){var t=new ol;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,r().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&cl(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Ro.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Vs(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=qs(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&cl(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0==--r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*vt.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*vt.ONE_SECOND_IN_TS),o=e.slice(),s=e.length;s--&&!(e[s].pts<=a););if(-1===s)return o;for(var l=s+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),o.splice(l,s-l+1),o}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Ol(e,t,this.inbandTextTracks_[o]);Ol(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Qo(e)||0,n=Jo(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;an))return a}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[l+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=l+1):o.mediaIndex=this.mediaIndex+1}else{var u=gs.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=u.segmentIndex,d=u.startTime,h=u.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=c,o.startOfSegment=d,o.partIndex=h}var p=a[o.mediaIndex],f=p&&"number"==typeof o.partIndex&&p.parts&&p.parts[o.partIndex];if(!p||"number"==typeof o.partIndex&&!f)return null;if("number"!=typeof o.partIndex&&p.parts&&(o.partIndex=0,f=p.parts[0]),!n&&f&&!f.independent)if(0===o.partIndex){var m=a[o.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(o.mediaIndex-=1,o.partIndex=m.parts.length-1,o.independent="previous segment")}else p.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=n.segments[i],c="number"==typeof o&&u.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:c?o:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var p=Qo(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*vt.ONE_SECOND_IN_TS);for(i=0;ir);i++);return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,i=t.currentTimeline,r=t.startOfSegment,a=t.buffered,t.overrideCheck||n!==i?n "+s+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=n,o=n,s=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];l&&(a=l.label,o=l.language,s=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:s,label:a,language:o},!1).track}}}(u,n.vhs_.tech_,e),Ol(o,s,u[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var a=r().WebKitDataCue||r().VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new a(e.startTime+i,e.endTime+i,e.text))}))}}({captionArray:l,inbandTextTracks:u,timestampOffset:i})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,a=e.videoDuration;if(n){var o=r().WebKitDataCue||r().VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||r().isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new o(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return Ro.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Ro.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Ro.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var l=s.cues,u=[],c=0;c1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Yo(s).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Yo(l).join(", "));var u=s.length?s.start(0):0,c=s.length?s.end(s.length-1):0,d=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(c-u<=1&&h-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+o.byteLength+", audio buffer: "+Yo(s).join(", ")+", video buffer: "+Yo(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:a,bytes:o}));var p=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=r().setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t,n,i,r=e.segmentInfo,a=e.type,o=e.initSegment,s=e.data,l=e.bytes;if(!l){var u=[s],c=s.byteLength;o&&(u.unshift(o),c+=o.byteLength),i=0,(t={bytes:c,segments:u}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach((function(e){n.set(e,i),i+=e.byteLength}))),l=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:a,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:r,type:a,bytes:l}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=s({},e,{forceTimestampOffset:!0});s(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=i||r&&a;this.logger_("Requesting "+Rl(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Tl({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Rl(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var i=t-el.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!o)return l.start;var u=n.segments[i-1];return 0!==i&&u&&void 0!==u.start&&u.end===r+a?s.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,o=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=function(e,t){if("hls"!==t)return null;var n,i,a=(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach((function(e){var t=n[e+"TimingInfo"];if(t){var a,o=t.start,s=t.end;"bigint"==typeof o||"bigint"==typeof s?a=r().BigInt(s)-r().BigInt(o):"number"==typeof o&&"number"==typeof s&&(a=s-o),void 0!==a&&a>i&&(i=a)}})),"bigint"==typeof i&&i3*e.playlist.targetDuration,o=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(a||o)return this.logger_("bad "+(a?"segment":"part")+" "+Rl(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Rl(e))},n.recordThroughput_=function(e){if(e.duration=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===hl&&this.handleTimeout_(),e.code===pl?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var o=a.segment;if(o.map&&(o.map.bytes=t.map.bytes),a.bytes=t.bytes,"function"!=typeof r().WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return i.segmentRequestFinished_(e,t,n)}),(function(){return i.stopForError({message:"Error loading vtt.js"})}));o.requested=!0;try{this.parseVTTCues_(a)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_),a.cues.length?a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}:a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration},a.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");a.byteLength=a.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,a.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new(r().VTTCue)(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;n1&&i.push(t[a]);i.length&&i.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;if("function"!=typeof r().WebVTT)throw new uu;"function"==typeof r().TextDecoder?t=new(r().TextDecoder)("utf8"):(t=r().WebVTT.StringDecoder(),n=!0);var i=new(r().WebVTT.Parser)(r(),r().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){Ro.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var a=e.segment.map.bytes;n&&(a=su(a)),i.parse(a)}var o=e.bytes;n&&(o=su(o)),i.parse(o),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/vt.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0},t}(Vl),du=function(e,t){for(var n=e.cues,i=0;i=r.adStartTime&&t<=r.adEndTime)return r}return null},hu=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=es(t);r=r||0;for(var l=0;l=h)&&(o=h,a={time:d,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s=d)&&(o=d,a={time:c.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],pu=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=qo("SyncController"),n}h(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+os({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a86400)Ro.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),i=e.startOfSegment,r=t.end+s.mapping;else{if(!s)return!1;i=t.start+s.mapping,r=t.end+s.mapping}return o&&(o.start=i,o.end=r),(!a.start||is){var l;l=o<0?n.start-os({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+os({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Ro.EventTarget),fu=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}h(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Ro.EventTarget),mu=il(rl((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var i=t((function(e){function t(e,t){for(var n=0;n-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=f[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,s=16843009*p[r=p[i=p[t]]]^65537*r^257*i^16843008*t,o=257*p[a]^16843008*a,e=0;e<4;e++)u[e][t]=o=o<<24^o>>>8,c[e][a]=s=s<<24^s>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),c[e]=c[e].slice(0);return l}()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var u=e.slice(0),c=[];for(this._key=[u,c],t=o;t<4*o+28;t++)i=u[t-1],(t%o==0||8===o&&t%o==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%o==0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),u[t]=u[t-o]^i;for(n=0;t;n++,t--)i=u[3&n?t:t-4],c[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){var o,s,l,u,c=this._key[1],d=e^c[0],h=i^c[1],p=n^c[2],f=t^c[3],m=c.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],S=v[4];for(u=0;u>>24]^b[h>>16&255]^_[p>>8&255]^T[255&f]^c[g],s=y[h>>>24]^b[p>>16&255]^_[f>>8&255]^T[255&d]^c[g+1],l=y[p>>>24]^b[f>>16&255]^_[d>>8&255]^T[255&h]^c[g+2],f=y[f>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&p]^c[g+3],g+=4,d=o,h=s,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=S[d>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^c[g++],o=d,d=h,h=p,p=f,f=o},e}(),u=function(e){function t(){var t;return(t=e.call(this,o)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(o),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},d=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(o.subarray(l,l+a),n,i,s)),l=a;l>2),m=new l(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],p=0;p=0&&(t="main-desc"),t},yu=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},bu=function(e,t){t.activePlaylistLoader=e,e.load()},_u={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;yu(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(e){return e.default}))[0]||o[0]).id,l=i.tracks[s];if(a!==l){for(var u in Ro.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];Ro.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),yu(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Tu={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",_u[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",_u[e](e,n))}},Su={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],l=s.groups,u=s.tracks,c=s.logger_,d=t.masterPlaylistLoader,h=ms(d.master);for(var p in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main.default.playlists=d.master.playlists)),o[e])for(var f in l[p]||(l[p]=[]),o[e][p]){var m=o[e][p][f],g=void 0;if(h?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new Ps(m.playlists[0],n,a):m.resolvedUri?new Ps(m.resolvedUri,n,a):m.playlists&&"dash"===i?new Zs(m.playlists[0],n,a,d):null,m=Ro.mergeOptions({id:f,playlistLoader:g},m),Tu[e](e,m.playlistLoader,t),l[p].push(m),void 0===u[f]){var v=new Ro.AudioTrack({id:f,kind:vu(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=v}}r.on("error",_u[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in s[e])for(var p in u[h]||(u[h]=[]),s[e][h])if(!s[e][h][p].forced){var f=s[e][h][p],m=void 0;if("hls"===r)m=new Ps(f.resolvedUri,i,o);else if("dash"===r){if(!f.playlists.filter((function(e){return e.excludeUntil!==1/0})).length)return;m=new Zs(f.playlists[0],i,o,d)}else"vhs-json"===r&&(m=new Ps(f.playlists?f.playlists[0]:f.resolvedUri,i,o));if(f=Ro.mergeOptions({id:p,playlistLoader:m},f),Tu[e](e,f.playlistLoader,t),u[h].push(f),void 0===c[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}a.on("error",_u[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,o=r.tracks;for(var s in i[e])for(var l in a[s]||(a[s]=[]),i[e][s]){var u=i[e][s][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(c[d.instreamId]&&(d=Ro.mergeOptions(d,c[d.instreamId])),void 0===d.default&&delete d.default,a[s].push(Ro.mergeOptions({id:l},u)),void 0===o[l]){var h=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;o[l]=h}}}}},wu=function e(t,n){for(var i=0;i "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=r().setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(r().clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var o in a)if(a[o].default){n={label:o};break}}if(!n)return t;var s=[];for(var l in i)if(i[l][n.label]){var u=i[l][n.label];if(u.playlists&&u.playlists.length)s.push.apply(s,u.playlists);else if(u.uri)s.push(u);else if(e.playlists.length)for(var c=0;c1&&ms(t.master))for(var l=0;l1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,l=e.experimentalBufferBasedABR,u=e.log;if(!r)return Ro.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(c+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Go(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=Jo(n,i),p=l?el.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:el.MAX_BUFFER_LOW_WATER_LINE;if(sm)&&h>=a){var v=c+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(v+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(v),!0}return u("not "+c+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){e.experimentalBufferBasedABR&&e.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Ro.browser.IE_VERSION||Ro.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:Ro.log.warn,c=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",o||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Go(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:zl.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=zl.Playlist.seekable(t,n,zl.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=zl.Playlist.seekable(t,n,zl.Playlist.liveEdgeDelay(i,t))).length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Ro.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;for(var i in n)n[i].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;var i=El(this.master(),n),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=i.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(r.video+=","+(i.audio||t.main.audioCodec||G)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(r.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||G,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),r.audio||r.video){var o,s={};if(["video","audio"].forEach((function(e){if(r.hasOwnProperty(e)&&(i=t[e].isFmp4,a=r[e],!(i?H(a):W(a)))){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(r[e]),"audio"===e&&(o=n)}var i,a})),a&&o&&n.attributes.AUDIO){var l=n.attributes.AUDIO;this.master().playlists.forEach((function(e){(e.attributes&&e.attributes.AUDIO)===l&&e!==n&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+l+" as "+o+' does not support codec(s): "'+r.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach((function(t){var n=(V(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=(V(r[t]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&u.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+r[t]+'"')})),u.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}var c=Object.keys(s).reduce((function(e,t){return e&&(e+=", "),e+(t+' does not support codec(s): "')+s[t].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=El(e.master,r),o=[];!a.audio||W(a.audio)||H(a.audio)||o.push("audio codec "+a.audio),!a.video||W(a.video)||H(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=kl(V(e)),a=Cl(r),o=r.video&&V(r.video)[0]||null,s=r.audio&&V(r.audio)[0]||null;Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],u=El(t.masterPlaylistLoader_.master,r),c=Cl(u);if(u.audio||u.video){if(c!==a&&l.push('codec count "'+c+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=u.video&&V(u.video)[0]||null,h=u.audio&&V(u.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+s.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,a=n,o=0;o0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:Ho)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Ko(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),o=r.audioBuffer?r.audioBuffered():null,s=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-zo),c=[o,s],d=0;d "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=Xo(r,t);if(a.length>0){var o=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+Ho;return!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t2)return{start:r,end:a}}return null},e}(),Pu={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Du=function e(t,n){var i=0,r=0,a=Ro.mergeOptions(Pu,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&t.currentTime(r)},s=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(i=Date.now(),a.getSource.call(t,s)):void Ro.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",o),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=function(n){u(),e(t,n)}},Lu="2.16.3",Ou={PlaylistLoader:Ps,Playlist:gs,utils:Hs,STANDARD_PLAYLIST_SELECTOR:Ll,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(gs.isEnabled);return Il(t,(function(e,t){return Pl(e,t)})),t.filter((function(t){return!!El(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:Ll,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&r().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Dl(this.playlists.master,t,parseInt(Al(this.tech_.el(),"width"),10)*i,parseInt(Al(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Pl,comparePlaylistResolution:function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||r().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||r().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:Ms()};Object.keys(el).forEach((function(e){Object.defineProperty(Ou,e,{get:function(){return Ro.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),el[e]},set:function(t){Ro.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?Ro.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):el[e]=t}})}));var Mu="videojs-vhs",Nu=function(e,t){for(var n=t.media(),i=-1,r=0;r=n&&e>=n?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){Ro.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Yo(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Yo(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!r().localStorage)return!1;var t=Ru();t=t?Ro.mergeOptions(t,e):e;try{r().localStorage.setItem(Mu,JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=ms(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!us(e)})).map((function(t,n){return new xu(e,t,t.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=r().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a,o,s=(a=i?r.concat([i]):r,o=Object.keys(n),a.reduce((function(e,t){if(!t.contentProtection)return e;var n=o.reduce((function(e,n){var i=t.contentProtection[n];return i&&i.pssh&&(e[n]={pssh:i.pssh}),e}),{});return Object.keys(n).length&&e.push(n),e}),[])),l=[],u=[];return s.forEach((function(e){u.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),l.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(l),Promise.race(u)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=function(e){var t=e.player,n=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=kl(V(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=z(i.video),a=z(i.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),r&&(o[s].videoContentType=r),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"==typeof e[s]&&(o[s].url=e[s]);return Ro.mergeOptions(e,o)}(e.sourceKeySystems,e.media,e.audioMedia);return!(!n||(t.currentSource().keySystems=n,n&&!t.eme&&(Ro.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))}({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var i,r=[];n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))})),r.length&&((i=Ro.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_())}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Ro.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Ro.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach((function(e){t.addQualityLevel(e)})),Nu(t,n.playlists)})),this.playlists.on("mediachange",(function(){Nu(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":Lu,"mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return ou.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&r().URL.revokeObjectURL&&(r().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;ri){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)}(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)}({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Ws({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(Ro.getComponent("Component")),Bu={name:"videojs-http-streaming",VERSION:Lu,canHandleSource:function(e,t){void 0===t&&(t={});var n=Ro.mergeOptions(Ro.options,t);return Bu.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=Ro.mergeOptions(Ro.options,n);return t.vhs=new Uu(e,t,i),Ro.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Ro.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ms(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var n=Y(e);if(!n)return"";var i=Bu.getOverrideNative(t);return!Ou.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative:function(e){void 0===e&&(e={});var t=e,n=t.vhs,i=void 0===n?{}:n,r=t.hls,a=void 0===r?{}:r,o=!(Ro.browser.IS_ANY_SAFARI||Ro.browser.IS_IOS),s=i.overrideNative,l=void 0===s?o:s,u=a.overrideNative;return void 0!==u&&u||l}};H("avc1.4d400d,mp4a.40.2")&&Ro.getTech("Html5").registerSourceHandler(Bu,0),Ro.VhsHandler=Uu,Object.defineProperty(Ro,"HlsHandler",{get:function(){return Ro.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Uu},configurable:!0}),Ro.VhsSourceHandler=Bu,Object.defineProperty(Ro,"HlsSourceHandler",{get:function(){return Ro.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Bu},configurable:!0}),Ro.Vhs=Ou,Object.defineProperty(Ro,"Hls",{get:function(){return Ro.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Ou},configurable:!0}),Ro.use||(Ro.registerComponent("Hls",Ou),Ro.registerComponent("Vhs",Ou)),Ro.options.vhs=Ro.options.vhs||{},Ro.options.hls=Ro.options.hls||{},Ro.getPlugin&&Ro.getPlugin("reloadSourceOnError")||(Ro.registerPlugin||Ro.plugin)("reloadSourceOnError",(function(e){Du(this,e)}));const Fu=Ro},6864:function(e,t,n){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);class i{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class r extends n.default.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const n=this.levels_.length;return t=new i(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,i=this.length;nn&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;tn,e.qualityLevels.VERSION=a,n}(this,n.default.mergeOptions({},e))};return o("qualityLevels",s),s.VERSION=a,s}(n(6244))},4784:(e,t,n)=>{var i=n(9840),r=e.exports={WebVTT:n(6311),VTTCue:n(184),VTTRegion:n(5891)};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,o=r.VTTRegion,s=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=o},r.restore=function(){i.VTTCue=s,i.VTTRegion=l},i.VTTCue||r.shim()},6311:(e,t,n)=>{var i=n(9697),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=r(null)}function l(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var o=r[a].split(n);2===o.length&&t(o[0].trim(),o[1].trim())}}function u(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=r(),u(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),u(),t.endTime=r(),u(),function(e,t){var i=new s;l(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i=0&&t<=100)&&(this.set(e,t),!0)}};var c=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e,t){return!f[t.localName]||f[t.localName]===e.localName}function r(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=p[t];return a&&n&&(r[a]=n.trim()),r}for(var a,s,l=e.document.createElement("div"),u=l,m=[];null!==(a=n());)if("<"!==a[0])u.appendChild(e.document.createTextNode((s=a,c.innerHTML=s,s=c.textContent,c.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),u.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=r(y[1],y[3])))continue;if(!i(u,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var i=t?"background-color":"color",r=h[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(y[1]),u.appendChild(g),u=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t=n[0]&&e<=n[1])return!0}return!1}function y(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var a=0;a=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;rd&&(c=c<0?-1:1,c*=Math.ceil(d/u)*u),o<0&&(c+=""===a.vertical?n.height:n.width,s=s.reverse()),r.move(h,c)}else{var p=r.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],r=new T(t)}var f=function(e,t){for(var r,a=new T(e),o=1,s=0;sl&&(r=new T(e),o=l),e=new T(a)}return r||a}(r,s);t.move(f.toCSSCompatValues(n))}function w(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,T.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},T.prototype.overlaps=function(e){return this.lefte.left&&this.tope.top},T.prototype.overlapsAny=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},T.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},T.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},T.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},T.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},w.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},w.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null},w.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t{var t={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function r(e,n,r){this.hasBeenReset=!1;var a="",o=!1,s=e,l=n,u=r,c=null,d="",h=!0,p="auto",f="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=i(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=r},5891:e=>{var t={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,i=3,r=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}}})}},4440:(e,t,n)=>{var i={"./ar.json":[7478,"src_localization_locales_ar_json"],"./as-in.json":[3623,"src_localization_locales_as-in_json"],"./az.json":[2478,"src_localization_locales_az_json"],"./bg-bg.json":[2518,"src_localization_locales_bg-bg_json"],"./bn-in.json":[9491,"src_localization_locales_bn-in_json"],"./bs-ba.json":[3044,"src_localization_locales_bs-ba_json"],"./ca-es.json":[4264,"src_localization_locales_ca-es_json"],"./cs-cz.json":[43,"src_localization_locales_cs-cz_json"],"./da.json":[1538,"src_localization_locales_da_json"],"./de-ch.json":[7178,"src_localization_locales_de-ch_json"],"./de.json":[6078,"src_localization_locales_de_json"],"./el-gr.json":[3238,"src_localization_locales_el-gr_json"],"./en-ca.json":[6789,"src_localization_locales_en-ca_json"],"./en-cc.json":[2763,"src_localization_locales_en-cc_json"],"./en-ck.json":[7235,"src_localization_locales_en-ck_json"],"./en-cx.json":[7714,"src_localization_locales_en-cx_json"],"./en.json":[7670],"./es-es.json":[9264],"./es-us.json":[5120,"src_localization_locales_es-us_json"],"./es-uy.json":[1738,"src_localization_locales_es-uy_json"],"./es-ve.json":[629,"src_localization_locales_es-ve_json"],"./es-xl.json":[3192,"src_localization_locales_es-xl_json"],"./es.json":[3501],"./et-ee.json":[1529,"src_localization_locales_et-ee_json"],"./fi-fi.json":[626,"src_localization_locales_fi-fi_json"],"./fil.json":[348,"src_localization_locales_fil_json"],"./fr-ca.json":[2948,"src_localization_locales_fr-ca_json"],"./fr.json":[7781],"./ga.json":[9857,"src_localization_locales_ga_json"],"./gl.json":[5602,"src_localization_locales_gl_json"],"./gu-in.json":[6387,"src_localization_locales_gu-in_json"],"./he-il.json":[3132,"src_localization_locales_he-il_json"],"./hi-in.json":[906,"src_localization_locales_hi-in_json"],"./hr.json":[1807,"src_localization_locales_hr_json"],"./hu-hu.json":[9782,"src_localization_locales_hu-hu_json"],"./id-id.json":[1734,"src_localization_locales_id-id_json"],"./is-is.json":[808,"src_localization_locales_is-is_json"],"./it.json":[9152],"./ja-jp.json":[7397,"src_localization_locales_ja-jp_json"],"./kk-kz.json":[6323,"src_localization_locales_kk-kz_json"],"./kn.json":[6068,"src_localization_locales_kn_json"],"./ko-kr.json":[2023,"src_localization_locales_ko-kr_json"],"./kz-kz.json":[3526,"src_localization_locales_kz-kz_json"],"./lt-lt.json":[6088,"src_localization_locales_lt-lt_json"],"./lv-lv.json":[9704,"src_localization_locales_lv-lv_json"],"./ml.json":[1580,"src_localization_locales_ml_json"],"./mr.json":[541,"src_localization_locales_mr_json"],"./ms.json":[9653,"src_localization_locales_ms_json"],"./nb-no.json":[6779,"src_localization_locales_nb-no_json"],"./nl.json":[36,"src_localization_locales_nl_json"],"./or-in.json":[2592,"src_localization_locales_or-in_json"],"./pa.json":[8758,"src_localization_locales_pa_json"],"./pl-pl.json":[7984,"src_localization_locales_pl-pl_json"],"./pt-br.json":[4160],"./pt-pt.json":[8768,"src_localization_locales_pt-pt_json"],"./pt.json":[3557,"src_localization_locales_pt_json"],"./ro.json":[5994,"src_localization_locales_ro_json"],"./ru.json":[5936,"src_localization_locales_ru_json"],"./sk-sk.json":[9616,"src_localization_locales_sk-sk_json"],"./sl-si.json":[3221,"src_localization_locales_sl-si_json"],"./sr-latn-me.json":[8307,"src_localization_locales_sr-latn-me_json"],"./sr.json":[2840,"src_localization_locales_sr_json"],"./sv-se.json":[175,"src_localization_locales_sv-se_json"],"./ta-in.json":[6270,"src_localization_locales_ta-in_json"],"./te.json":[6958,"src_localization_locales_te_json"],"./th-th.json":[3792,"src_localization_locales_th-th_json"],"./tr-tr.json":[7440,"src_localization_locales_tr-tr_json"],"./uk-ua.json":[7786,"src_localization_locales_uk-ua_json"],"./ur-in.json":[1710,"src_localization_locales_ur-in_json"],"./vi-vn.json":[9007,"src_localization_locales_vi-vn_json"],"./zh-cn.json":[9315,"src_localization_locales_zh-cn_json"],"./zh-hk.json":[8075,"src_localization_locales_zh-hk_json"],"./zh-sg.json":[3064,"src_localization_locales_zh-sg_json"],"./zh-tw.json":[9931,"src_localization_locales_zh-tw_json"]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n.t(r,19)))}r.keys=()=>Object.keys(i),r.id=4440,e.exports=r},6184:e=>{e.exports="data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA=="},542:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", opens captions settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", selected":", selected","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way through.","Audio":"Audio","Audio Player":"Audio Player","Audio Track":"Audio Track","Auto":"Auto","Background":"Background","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","Black":"Black","Blue":"Blue","Caption Area Background":"Caption Area Background","Caption Settings Dialog":"Caption Settings Dialog","Captions":"Captions","Casual":"Casual","Chapters":"Chapters","Close":"Close","Close Modal Dialog":"Close Modal Dialog","Color":"Colour","Colour":"Color","Copy link":"Copy link","Current Time":"Current Time","Cyan":"Cyan","Depressed":"Depressed","Descriptions":"Descriptions","Done":"Done","Download":"Download","Dropshadow":"Drop shadow","Duration":"Duration","End of dialog window.":"End of dialog window.","Exit Fullscreen":"Exit Fullscreen","Exit Picture-in-Picture":"Exit Picture-in-Picture","Font Family":"Font Family","Font Size":"Font Size","Fullscreen":"Fullscreen","Green":"Green","HD":"HD","HQ":"HQ","LIVE":"LIVE","LQ":"LQ","Loaded":"Loaded","Magenta":"Magenta","Mail":"Mail","Modal Window":"Modal Window","Monospace Sans-Serif":"Monospace Sans-Serif","Monospace Serif":"Monospace Serif","More options":"More options","Mute":"Mute","No compatible source was found for this media.":"No compatible source was found for this media.","No content":"No content","None":"None","Normal":"Normal","Off":"Off","Opacity":"Opacity","Opaque":"Opaque","Open quality selector menu":"Open quality selector menu","Pause":"Pause","Paused":"Paused","Picture-in-Picture":"Picture-in-Picture","Play":"Play","Play Video":"Play Video","Playback Rate":"Playback Rate","Playback speed":"Playback speed","Playing":"Playing","Playing in Picture-in-Picture":"Playing in Picture-in-Picture","Progress":"Progress","Progress Bar":"Progress Bar","Proportional Sans-Serif":"Proportional Sans-Serif","Proportional Serif":"Proportional Serif","Quality":"Quality","Raised":"Raised","Red":"Red","Remaining Time":"Remaining Time","Replay":"Replay","Reset":"Reset","SD":"SD","Script":"Script","Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live","Semi-Transparent":"Semi-Transparent","Share":"Share","Skip backward {1} seconds":"Skip backward {1} seconds","Skip forward {1} seconds":"Skip forward {1} seconds","Small Caps":"Small Caps","Stream Type":"Stream Type","Subtitles":"Subtitles","Text":"Text","Text Background":"Text Background","Text Edge Style":"Text Edge Style","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem, or because the media used features your browser does not support.","This is a modal window.":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.","Transcript":"Transcript","Transparency":"Transparency","Transparent":"Transparent","Uniform":"Uniform","Unmute":"Unmute","Video":"Video","Video Player":"Video Player","Video with closed captions":"Video with closed captions","Volume":"Volume","Volume Level":"Volume Level","White":"White","Window":"Window","Yellow":"Yellow","You aborted the media playback":"You aborted the media playback","captions and subtitles off":"Captions and subtitles off","captions off":"captions off","captions settings":"captions settings","descriptions off":"descriptions off","descriptions settings":"descriptions settings","progress bar timing: currentTime={1} duration={2}":"progress bar timing: currentTime={1} duration={2}","restore all settings to the default values":"restore all settings to the default values","subtitles off":"subtitles off","subtitles settings":"subtitles settings","{1} is loading.":"{1} is loading.","{1} of {2}":"{1} of {2}","reset all settings to the default values":"reset all settings to the default values","Enter your date of birth":"Enter your date of birth","Submit":"Submit","You may not access this content.":"You may not access this content.","Month":"Month","Day":"Day","Year":"Year","Sorry, this video can\'t be played":"Sorry, this video can\'t be played","Caption Settings":"Caption Settings","Captions off":"Captions off","Captions settings":"Captions settings"}')},9264:e=>{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", abre el diálogo Configuración de las leyendas",", opens descriptions settings dialog":", abre el diálogo Configuración de las descripciones",", opens subtitles settings dialog":", abre el diálogo Configuración de los subtítulos",", selected":", seleccionado","A network error caused the media download to fail part-way.":"Un error de red hizo que la descarga multimedia fallase antes de completarse.","Audio":"Audio","Audio Player":"Reproductor de audio","Audio Track":"Pista de audio","Auto":"Automática","Background":"Fondo","Beginning of dialog window. Escape will cancel and close the window.":"Principio de una ventana de diálogo. Si pulsas Escape se cancelará y cerrará la ventana.","Black":"Negro","Blue":"Azul","Caption Area Background":"Fondo del área de leyenda","Caption Settings Dialog":"Diálogo Configuración de las leyendas","Captions":"Leyendas","Casual":"Informal","Chapters":"Capítulos","Close":"Cerrar","Close Modal Dialog":"Cerrar diálogo modal","Color":"Color","Colour":"Color","Copy link":"Copiar vínculo","Current Time":"Tiempo actual","Cyan":"Cian","Depressed":"Presionado","Descriptions":"Descripciones","Done":"Listo","Download":"Descargar","Dropshadow":"Sombra paralela","Duration":"Duración","End of dialog window.":"Final de la ventana de diálogo.","Exit Fullscreen":"Salir de pantalla completa","Exit Picture-in-Picture":"Salir de imagen en imagen","Font Family":"Familia de fuentes","Font Size":"Tamaño de fuente","Fullscreen":"Pantalla completa","Green":"Verde","HD":"HD","HQ":"HQ","LIVE":"DIRECTO","LQ":"LQ","Loaded":"Cargado","Magenta":"Magenta","Mail":"Enviar por correo electrónico","Modal Window":"Ventana modal","Monospace Sans-Serif":"Sans-Serif monoespaciada","Monospace Serif":"Serif monoespaciada","More options":"Más opciones","Mute":"Silenciar","No compatible source was found for this media.":"No se ha encontrado ningún origen compatible con este contenido multimedia.","No content":"No hay contenido","None":"Ninguno","Normal":"Normal","Off":"Desactivado","Opacity":"Opacidad","Opaque":"Opaco","Open quality selector menu":"Abrir menú Selector de calidad","Pause":"Pausar","Paused":"En pausa","Picture-in-Picture":"Imagen en imagen","Play":"Reproducir","Play Video":"Reproducir vídeo","Playback Rate":"Tasa de reproducción","Playback speed":"Velocidad de reproducción","Playing":"Reproduciendo","Playing in Picture-in-Picture":"Reproduciendo en modo Imagen en imagen","Progress":"Progreso","Progress Bar":"Barra de progreso","Proportional Sans-Serif":"Sans-Serif proporcional","Proportional Serif":"Serif proporcional","Quality":"Calidad","Raised":"Elevado","Red":"Rojo","Remaining Time":"Tiempo restante","Replay":"Repetir","Reset":"Restablecer","SD":"SD","Script":"Caligráfica","Seek to live, currently behind live":"Ir al directo, actualmente por detrás del directo","Seek to live, currently playing live":"Ir al directo, actualmente se está reproduciendo en directo","Semi-Transparent":"Semitransparente","Share":"Compartir","Skip backward {1} seconds":"Retroceder {1} segundos","Skip forward {1} seconds":"Avanzar {1} segundos","Small Caps":"Versalitas","Stream Type":"Tipo de secuencia","Subtitles":"Subtítulos","Text":"Texto","Text Background":"Fondo del texto","Text Edge Style":"Estilo de borde del texto","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No se pudo cargar el contenido; se produjo un error del servidor o de la red o el formato no es compatible.","The media is encrypted and we do not have the keys to decrypt it.":"El contenido multimedia está cifrado y no tenemos las claves para descifrarlo.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducción multimedia se anuló debido a un problema de corrupción de los datos o porque el contenido multimedia usaba funciones que tu explorador no admite.","This is a modal window.":"Esta es una ventana modal","This modal can be closed by pressing the Escape key or activating the close button.":"Para cerrar esta ventana modal puedes pulsar la tecla Escape o activar el botón Cerrar.","Transcript":"Transcripción","Transparency":"Transparencia","Transparent":"Transparente","Uniform":"Uniforme","Unmute":"Reactivar audio","Video":"Vídeo","Video Player":"Reproductor de vídeo","Video with closed captions":"Vídeo con subtítulos","Volume":"Volumen","Volume Level":"Nivel de volumen","White":"Blanco","Window":"Ventana","Yellow":"Amarillo","You aborted the media playback":"Anulaste la reproducción multimedia","captions and subtitles off":"Leyendas y subtítulos desactivados","captions off":"leyendas desactivadas","captions settings":"configuración de las leyendas","descriptions off":"descripciones desactivadas","descriptions settings":"configuración de las descripciones","progress bar timing: currentTime={1} duration={2}":"tiempo de la barra de progreso: currentTime={1} duration={2}","restore all settings to the default values":"restaurar todas las configuraciones a los valores predeterminados","subtitles off":"subtítulos desactivados","subtitles settings":"configuración de los subtítulos","{1} is loading.":"{1} se está cargando.","{1} of {2}":"{1} de {2}","reset all settings to the default values":"restablecer todas las configuraciones a los valores predeterminados","Enter your date of birth":"Especifique su fecha de nacimiento","Submit":"Enviar","You may not access this content.":"No puede acceder a este contenido.","Month":"Mes","Day":"Día","Year":"Año","Sorry, this video can\'t be played":"Lo sentimos, este vídeo no se puede reproducir","Caption Settings":"Configuración del título","Captions off":"Leyendas desactivadas","Captions settings":"Configuración de las leyendas"}')},3501:e=>{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", abre el cuadro de diálogo de Configuración de subtítulos",", opens descriptions settings dialog":", abre el cuadro de diálogo de Configuración de descripciones",", opens subtitles settings dialog":", abre el cuadro de diálogo de Configuración de subtítulos",", selected":", seleccionado","A network error caused the media download to fail part-way.":"Un error de red provocó que la descarga de multimedia se interrumpiera a mitad de camino.","Audio":"Audio","Audio Player":"Reproductor de audio","Audio Track":"Pista de audio","Auto":"Automático","Background":"Fondo","Beginning of dialog window. Escape will cancel and close the window.":"Inicio de la ventana de diálogo. Escape cancelará y cerrará la ventana.","Black":"Negro","Blue":"Azul","Caption Area Background":"Fondo del área de subtítulos","Caption Settings Dialog":"Cuadro de diálogo de Configuración de subtítulos","Captions":"Subtítulos","Casual":"Casual","Chapters":"Capítulos","Close":"Cerrar","Close Modal Dialog":"Cerrar cuadro de diálogo modal","Color":"Color","Colour":"Color","Copy link":"Copiar vínculo","Current Time":"Tiempo actual","Cyan":"Cian","Depressed":"En relieve","Descriptions":"Descripciones","Done":"Listo","Download":"Descargar","Dropshadow":"Sombra paralela","Duration":"Duración","End of dialog window.":"Fin de la ventana de diálogo.","Exit Fullscreen":"Salir de Pantalla completa","Exit Picture-in-Picture":"Salir de Imagen en imagen","Font Family":"Familia de fuente","Font Size":"Tamaño de fuente","Fullscreen":"Pantalla completa","Green":"Verde","HD":"HD","HQ":"HQ","LIVE":"EN VIVO","LQ":"LQ","Loaded":"Cargado","Magenta":"Magenta","Mail":"Correo","Modal Window":"Ventana modal","Monospace Sans-Serif":"Sans serif monoespaciada","Monospace Serif":"Serif monoespaciada","More options":"Más opciones","Mute":"Silenciar","No compatible source was found for this media.":"Se encontró un origen incompatible para esta multimedia.","No content":"No hay contenido","None":"Ninguno","Normal":"Normal","Off":"Desactivado","Opacity":"Opacidad","Opaque":"Opaco","Open quality selector menu":"Abrir menú selector de calidad","Pause":"Pausar","Paused":"En pausa","Picture-in-Picture":"Imagen en imagen","Play":"Reproducir","Play Video":"Reproducir video","Playback Rate":"Velocidad de reproducción","Playback speed":"Velocidad de reproducción","Playing":"Reproduciendo","Playing in Picture-in-Picture":"Reproduciendo como Imagen en imagen","Progress":"Progreso","Progress Bar":"Barra de progreso","Proportional Sans-Serif":"Sans serif proporcional","Proportional Serif":"Serif proporcional","Quality":"Calidad","Raised":"Elevado","Red":"Rojo","Remaining Time":"Tiempo restante","Replay":"Repetir","Reset":"Restablecer","SD":"SD","Script":"Manuscrita","Seek to live, currently behind live":"Avanzar a En vivo, actualmente atrasado","Seek to live, currently playing live":"Avanzar a En vivo, actualmente en vivo","Semi-Transparent":"Semitransparente","Share":"Compartir","Skip backward {1} seconds":"Retroceder {1} segundos","Skip forward {1} seconds":"Avanzar {1} segundos","Small Caps":"Versalitas","Stream Type":"Tipo de secuencia","Subtitles":"Subtítulos","Text":"Texto","Text Background":"Fondo de texto","Text Edge Style":"Estilo de borde del texto","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No se pudo cargar la multimedia, ya sea por un error del servidor, un error de red o porque no se reconoce el formato.","The media is encrypted and we do not have the keys to decrypt it.":"La multimedia está cifrada y no tenemos las claves para descifrarla.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducción de multimedia se interrumpió debido a algún tipo de daño o debido a características de multimedia que no reconoce el navegador.","This is a modal window.":"Esta es una ventana modal","This modal can be closed by pressing the Escape key or activating the close button.":"Este elemento modal se puede cerrar presionando la tecla Escape o activando el botón Cerrar.","Transcript":"Transcripción","Transparency":"Transparencia","Transparent":"Transparente","Uniform":"Uniforme","Unmute":"Reactivar audio","Video":"Video","Video Player":"Reproductor de video","Video with closed captions":"Video con subtítulos","Volume":"Volumen","Volume Level":"Nivel de volumen","White":"Blanco","Window":"Ventana","Yellow":"Amarillo","You aborted the media playback":"Cancelaste la reproducción de multimedia","captions and subtitles off":"Subtítulos desactivados","captions off":"desactivar subtítulos","captions settings":"configuración de subtítulos","descriptions off":"desactivar descripciones","descriptions settings":"configuración de descripciones","progress bar timing: currentTime={1} duration={2}":"tiempo de la barra de progreso: tiempoActual={1} duración={2}","restore all settings to the default values":"restablecer todos los valores predeterminados","subtitles off":"desactivar subtítulos","subtitles settings":"configuración de subtítulos","{1} is loading.":"{1} se está cargando.","{1} of {2}":"{1} de {2}","reset all settings to the default values":"restablecer toda la configuración a los valores predeterminados","Enter your date of birth":"Especifica tu fecha de nacimiento","Submit":"Enviar","You may not access this content.":"No puedes acceder a este contenido.","Month":"Mes","Day":"Día","Year":"Año","Sorry, this video can\'t be played":"Perdón, este video no se puede reproducir","Caption Settings":"Configuración de subtítulos","Captions off":"Desactivar subtítulos","Captions settings":"Configuración de subtítulos"}')},7781:e=>{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", ouvre la boîte de dialogue des paramètres des sous-titres",", opens descriptions settings dialog":", ouvre la boîte de dialogue des paramètres de description",", opens subtitles settings dialog":", ouvre la boîte de dialogue des paramètres des sous-titres",", selected":", sélectionné","A network error caused the media download to fail part-way.":"Une erreur réseau a entraîné l’échec du téléchargement à mi-chemin.","Audio":"Audio","Audio Player":"Lecteur audio","Audio Track":"Piste audio","Auto":"Automatique","Background":"Arrière-plan","Beginning of dialog window. Escape will cancel and close the window.":"Début de la fenêtre de dialogue. La touche Échap annule et ferme la fenêtre.","Black":"Noir","Blue":"Bleu","Caption Area Background":"Arrière-plan de la zone des sous-titres","Caption Settings Dialog":"Boîte de dialogue des paramètres des sous-titres codés","Captions":"Sous-titres codés","Casual":"Informel","Chapters":"Chapitres","Close":"Fermer","Close Modal Dialog":"Fermer la boîte de dialogue modale","Color":"Couleur","Colour":"Couleur","Copy link":"Copier le lien","Current Time":"Heure actuelle","Cyan":"Cyan","Depressed":"Enfoncé","Descriptions":"Descriptions","Done":"Terminé","Download":"Télécharger","Dropshadow":"Ombres portées","Duration":"Durée","End of dialog window.":"Fin de la fenêtre de dialogue.","Exit Fullscreen":"Quitter le mode plein écran","Exit Picture-in-Picture":"Quitter le mode Image dans l’image","Font Family":"Famille de polices","Font Size":"Taille des polices","Fullscreen":"Plein écran","Green":"Vert","HD":"HD","HQ":"HQ","LIVE":"EN DIRECT","LQ":"LQ","Loaded":"Chargé","Magenta":"Magenta","Mail":"E-mail","Modal Window":"Fenêtre modale","Monospace Sans-Serif":"Monospace sans sérif","Monospace Serif":"Monospace Serif","More options":"Plus d’options","Mute":"Couper le son","No compatible source was found for this media.":"Aucune source compatible n’a été trouvée pour ce média.","No content":"Aucun contenu","None":"Aucun","Normal":"Normal","Off":"Désactivé","Opacity":"Opacité","Opaque":"Opaque","Open quality selector menu":"Ouvrir le menu de sélection de la qualité","Pause":"Pause","Paused":"Pause","Picture-in-Picture":"Image dans l’image","Play":"Lecture","Play Video":"Lire la vidéo","Playback Rate":"Taux de lecture","Playback speed":"Vitesse de lecture","Playing":"Lecture","Playing in Picture-in-Picture":"Lecture en mode Image dans l’image","Progress":"Progression","Progress Bar":"Barre de progression","Proportional Sans-Serif":"Sans-Serif proportionnelle","Proportional Serif":"Serif proportionnelle","Quality":"Qualité","Raised":"Déclenché","Red":"Rouge","Remaining Time":"Temps restant","Replay":"Relecture","Reset":"Réinitialiser","SD":"SD","Script":"Script","Seek to live, currently behind live":"Recherche du live, actuellement en retard","Seek to live, currently playing live":"Recherche du live, actuellement live","Semi-Transparent":"Semi-transparent","Share":"Partager","Skip backward {1} seconds":"Reculer de {1} secondes","Skip forward {1} seconds":"Avancer de {1} secondes","Small Caps":"Petites majuscules","Stream Type":"Type de flux","Subtitles":"Sous-titres","Text":"Texte","Text Background":"Arrière-plan du texte","Text Edge Style":"Style de bordure de texte","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Le média n’a pas pu être chargé, soit parce que le serveur ou le réseau a échoué soit parce que le format n’est pas pris en charge.","The media is encrypted and we do not have the keys to decrypt it.":"Le média est chiffré et nous n’avons pas les clés pour le déchiffrer.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lecture du média a été interrompue soit parce qu’il est corrompu soit parce que ses fonctionnalités ne sont pas prises en charge par votre navigateur.","This is a modal window.":"Il s’agit d’une fenêtre modale","This modal can be closed by pressing the Escape key or activating the close button.":"Pour fermer cette fenêtre modale, appuyez sur la touche Échap ou sur le bouton Fermer.","Transcript":"Transcription","Transparency":"Transparence","Transparent":"Transparent","Uniform":"Uniforme","Unmute":"Activer le son","Video":"Vidéo","Video Player":"Lecteur vidéo","Video with closed captions":"Vidéo avec sous-titres codés","Volume":"Volume","Volume Level":"Niveau de volume","White":"Blanc","Window":"Fenêtre","Yellow":"Jaune","You aborted the media playback":"Vous avez interrompu la lecture du média","captions and subtitles off":"Sous-titres codés et sous-titres désactivés","captions off":"sous-titres codés désactivés","captions settings":"paramètres de sous-titres codés","descriptions off":"descriptions désactivées","descriptions settings":"paramètres de description","progress bar timing: currentTime={1} duration={2}":"temps de progression : heure actuelle={1} durée={2}","restore all settings to the default values":"restaurer tous les paramètres sur les valeurs par défaut","subtitles off":"sous-titres désactivés","subtitles settings":"paramètres des sous-titres","{1} is loading.":"{1} est en cours de chargement.","{1} of {2}":"{1} sur {2}","reset all settings to the default values":"réinitialiser tous les paramètres aux valeurs par défaut","Enter your date of birth":"Entrez votre date de naissance","Submit":"Envoyer","You may not access this content.":"Vous n\'avez pas accès à ce contenu.","Month":"Mois","Day":"Jour","Year":"Année","Sorry, this video can\'t be played":"Désolé, cette vidéo ne peut pas être reproduite","Caption Settings":"Paramètres de sous-titres","Captions off":"Sous-titres désactivés","Captions settings":"Paramètres de sous-titres"}')},9152:e=>{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", apre la finestra di dialogo delle impostazioni delle didascalie",", opens descriptions settings dialog":", apre la finestra di dialogo delle impostazioni delle descrizioni",", opens subtitles settings dialog":", apre la finestra di dialogo delle impostazioni dei sottotitoli",", selected":", selezionata","A network error caused the media download to fail part-way.":"Errore di rete. Il download del file multimediale non è riuscito.","Audio":"Audio","Audio Player":"Lettore audio","Audio Track":"Traccia audio","Auto":"Auto","Background":"Sfondo","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Con ESC la finestra viene annullata e chiusa.","Black":"Nero","Blue":"Blu","Caption Area Background":"Sfondo area didascalia","Caption Settings Dialog":"Finestra di dialogo impostazioni didascalie","Captions":"Didascalie","Casual":"Casual","Chapters":"Capitoli","Close":"Chiudi","Close Modal Dialog":"Chiudi finestra di dialogo modale","Color":"Colore","Colour":"Colore","Copy link":"Copia collegamento","Current Time":"Ora corrente","Cyan":"Ciano","Depressed":"Incassato","Descriptions":"Descrizioni","Done":"Fine","Download":"Download","Dropshadow":"Ombreggiatura","Duration":"Durata","End of dialog window.":"Fine della finestra di dialogo.","Exit Fullscreen":"Disattiva modalità schermo intero","Exit Picture-in-Picture":"Esci da Picture-in-Picture","Font Family":"Famiglia di caratteri","Font Size":"Dimensioni carattere","Fullscreen":"Schermo intero","Green":"Verde","HD":"HD","HQ":"HQ","LIVE":"LIVE","LQ":"LQ","Loaded":"Caricato","Magenta":"Magenta","Mail":"E-mail","Modal Window":"Finestra modale","Monospace Sans-Serif":"Monospace Sans-Serif","Monospace Serif":"Monospace Serif","More options":"Altre opzioni","Mute":"Disattiva audio","No compatible source was found for this media.":"Nessuna origine compatibile trovata per il file multimediale.","No content":"Nessun contenuto","None":"Nessuno","Normal":"Normale","Off":"Disattivato","Opacity":"Opacità","Opaque":"Opaco","Open quality selector menu":"Apri menu selettore qualità","Pause":"Sospendi","Paused":"In pausa","Picture-in-Picture":"Picture-in-Picture","Play":"Gioca","Play Video":"Riproduci video","Playback Rate":"Frequenza di riproduzione","Playback speed":"Velocità di riproduzione","Playing":"In riproduzione","Playing in Picture-in-Picture":"Riproduzione in Picture-in-Picture","Progress":"Avanzamento","Progress Bar":"Indicatore di stato","Proportional Sans-Serif":"Proportional Sans-Serif","Proportional Serif":"Proportional Serif","Quality":"Qualità","Raised":"In rilievo","Red":"Rosso","Remaining Time":"Tempo rimanente","Replay":"Riproduci","Reset":"Ripristina","SD":"SD","Script":"Script","Seek to live, currently behind live":"Cerca Live, attualmente dietro Live","Seek to live, currently playing live":"Cerca Live, attualmente in riproduzione Live","Semi-Transparent":"Semitrasparente","Share":"Condividi","Skip backward {1} seconds":"Torna indietro di {1} secondi","Skip forward {1} seconds":"Vai avanti di {1} secondi","Small Caps":"Minuscole","Stream Type":"Tipo di streaming","Subtitles":"Sottotitoli","Text":"Testo","Text Background":"Sfondo testo","Text Edge Style":"Stile bordo testo","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Impossibile caricare il file multimediale. Si è verificato un problema con il server o la rete o il formato non è supportato.","The media is encrypted and we do not have the keys to decrypt it.":"Il file multimediale è crittografato. Chiavi di decrittografia non disponibili.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del file multimediale è stata interrotta a causa di un danneggiamento o perché i file multimediali usano funzionalità non supportate del browser.","This is a modal window.":"Questa è una finestra di dialogo modale","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo modale può essere chiusa premendo il tasto ESC o attivando il pulsante Chiudi.","Transcript":"Trascrizione","Transparency":"Trasparenza","Transparent":"Trasparente","Uniform":"Uniforme","Unmute":"Attiva audio","Video":"Video","Video Player":"Lettore video","Video with closed captions":"Video con sottotitoli","Volume":"Volume","Volume Level":"Livello volume","White":"Bianco","Window":"Finestra","Yellow":"Giallo","You aborted the media playback":"Riproduzione file multimediale interrotta","captions and subtitles off":"Didascalie e sottotitoli disattivati","captions off":"didascalie disattivate","captions settings":"impostazioni delle didascalie","descriptions off":"descrizioni disattivate","descriptions settings":"impostazioni delle descrizioni","progress bar timing: currentTime={1} duration={2}":"temporizzazione barra di stato: currentTime={1} duration={2}","restore all settings to the default values":"ripristina i valori predefiniti per tutte le impostazioni","subtitles off":"sottotitoli disattivati","subtitles settings":"impostazioni dei sottotitoli","{1} is loading.":"{1} in fase di caricamento.","{1} of {2}":"{1} di {2}","reset all settings to the default values":"ripristinare i valori predefiniti per tutte le impostazioni","Enter your date of birth":"Immetti la tua data di nascita","Submit":"Invia","You may not access this content.":"Non è possibile accedere a questo contenuto.","Month":"Mese","Day":"Giorno","Year":"Anno","Sorry, this video can\'t be played":"Spiacenti, questo video non può essere riprodotto","Caption Settings":"Impostazioni didascalie","Captions off":"Didascalie disattivate","Captions settings":"Impostazioni delle didascalie"}')},4160:e=>{e.exports=JSON.parse('{"":"",", opens captions settings dialog":", abre a caixa de diálogo de configurações de legendas",", opens descriptions settings dialog":", abre a caixa de diálogo de configurações de descrições",", opens subtitles settings dialog":", abre a caixa de diálogo de configurações de legendas",", selected":", selecionado","A network error caused the media download to fail part-way.":"Um erro de rede causou a interrupção parcial do download da mídia.","Audio":"Áudio","Audio Player":"Tocador de Áudio","Audio Track":"Faixa de Áudio","Auto":"Automático","Background":"Plano de Fundo","Beginning of dialog window. Escape will cancel and close the window.":"Início da janela de diálogo. A tecla Escape irá cancelar e fechar a janela.","Black":"Preto","Blue":"Azul","Caption Area Background":"Plano de fundo da Área de Legenda","Caption Settings Dialog":"Caixa de diálogo de Configurações de Legenda","Captions":"Legendas","Casual":"Casual","Chapters":"Capítulos","Close":"Fechar","Close Modal Dialog":"Fechar Caixa de diálogo Modal","Color":"Cor","Colour":"Cor","Copy link":"Copiar link","Current Time":"Tempo Atual","Cyan":"Ciano","Depressed":"Abaixo","Descriptions":"Descrições","Done":"Concluído","Download":"Baixar","Dropshadow":"Sombra","Duration":"Duração","End of dialog window.":"Final da janela de diálogo.","Exit Fullscreen":"Sair da Tela cheia","Exit Picture-in-Picture":"Sair do Picture-in-Picture","Font Family":"Família da Fonte","Font Size":"Tamanho da Fonte","Fullscreen":"Tela cheia","Green":"Verde","HD":"HD","HQ":"HQ","LIVE":"AO VIVO","LQ":"LQ","Loaded":"Carregado","Magenta":"Magenta","Mail":"Enviar email","Modal Window":"Janela Modal","Monospace Sans-Serif":"Sans-Serif Monoespaçado","Monospace Serif":"Serif Monoespaçado","More options":"Mais opções","Mute":"Mudo","No compatible source was found for this media.":"Nenhuma fonte compatível foi encontrada para esta mídia.","No content":"Sem conteúdo","None":"Nenhuma","Normal":"Normal","Off":"Desativado","Opacity":"Opacidade","Opaque":"Opaco","Open quality selector menu":"Abrir menu de seleção de qualidade","Pause":"Pausar","Paused":"Pausado","Picture-in-Picture":"Picture-in-Picture","Play":"Reproduzir","Play Video":"Reproduzir Vídeo","Playback Rate":"Taxa de Reprodução","Playback speed":"Velocidade de reprodução","Playing":"Reproduzindo","Playing in Picture-in-Picture":"Reproduzindo em Picture-in-Picture","Progress":"Progresso","Progress Bar":"Barra de Progresso","Proportional Sans-Serif":"Sans-Serif Proporcional","Proportional Serif":"Serif Proporcional","Quality":"Qualidade","Raised":"Acima","Red":"Vermelho","Remaining Time":"Tempo Restante","Replay":"Repetir","Reset":"Redefinir","SD":"SD","Script":"Script","Seek to live, currently behind live":"Ir para ao vivo, atualmente atrasado","Seek to live, currently playing live":"Ir para ao vivo, atualmente em transmissão ao vivo","Semi-Transparent":"Semi-Transparente","Share":"Compartilhar","Skip backward {1} seconds":"Retroceder em {1} segundos","Skip forward {1} seconds":"Avançar em {1} segundos","Small Caps":"Versalete","Stream Type":"Tipo de Transmissão","Subtitles":"Legendas","Text":"Texto","Text Background":"Plano de fundo do Texto","Text Edge Style":"Estilo de Borda de Texto","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A mídia não pôde ser carregada porque o servidor ou a rede falharam, ou porque o formato não é suportado.","The media is encrypted and we do not have the keys to decrypt it.":"A mídia está criptografada, e não temos as chaves para descriptografá-la.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução da mídia foi interrompida devido a um problema de corrupção ou porque a mídia utilizou recursos não suportados pelo seu navegador.","This is a modal window.":"Esta é uma janela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Essa janela modal pode ser fechada pressionando a tecla Escape ou ativando o botão fechar.","Transcript":"Transcrição","Transparency":"Transparência","Transparent":"Transparente","Uniform":"Uniforme","Unmute":"Ativar som","Video":"Vídeo","Video Player":"Reprodutor de Vvídeo","Video with closed captions":"Vídeo com legendas ocultas","Volume":"Volume","Volume Level":"Nível de Volume","White":"Branco","Window":"Janela","Yellow":"Amarelo","You aborted the media playback":"Você interrompeu a reprodução da mídia","captions and subtitles off":"Legendas desligadas","captions off":"desativar legendas","captions settings":"configurações de legendas","descriptions off":"desativar descrições","descriptions settings":"configurações de descrições","progress bar timing: currentTime={1} duration={2}":"tempo da barra de progresso: currentTime={1} duration={2}","restore all settings to the default values":"restaurar todas as configurações para os valores padrão","subtitles off":"desativar legendas","subtitles settings":"configurações de legendas","{1} is loading.":"{1} está carregando.","{1} of {2}":"{1} de {2}","reset all settings to the default values":"restaurar todas as configurações para os valores padrão","Enter your date of birth":"Insira sua data de nascimento","Submit":"Enviar","You may not access this content.":"Você não tem acesso a este conteúdo.","Month":"Mês","Day":"Dia","Year":"Ano","Sorry, this video can\'t be played":"Desculpe, não é possível reproduzir este vídeo","Caption Settings":"Configurações de legendas","Captions off":"Desativar legendas","Captions settings":"Configurações de legendas"}')}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(r,a),r},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"chunks/"+e+"-"+{src_localization_locales_ar_json:"48802d53f6a5a939c724","src_localization_locales_as-in_json":"5d136b21febacd2e2227",src_localization_locales_az_json:"81356b651440851ac52b","src_localization_locales_bg-bg_json":"1523ad7c0db493944d1f","src_localization_locales_bn-in_json":"2c5bb7d02da7e2d97c87","src_localization_locales_bs-ba_json":"ab9a298567ed435f4761","src_localization_locales_ca-es_json":"fde30abc9a1c77101f02","src_localization_locales_cs-cz_json":"1d667edb72fa569253ba",src_localization_locales_da_json:"78519f36bae2e77c5111","src_localization_locales_de-ch_json":"2b52f3af8853c339ad5c",src_localization_locales_de_json:"99dd0e058d775a0a38e1","src_localization_locales_el-gr_json":"2553e959d2dc66b81165","src_localization_locales_en-ca_json":"4a457a986580ccfcd8d7","src_localization_locales_en-cc_json":"c7fa8954356a6905c099","src_localization_locales_en-ck_json":"e3ed9b3d74679ede681a","src_localization_locales_en-cx_json":"3d3b637e4e2bb008ddca","src_localization_locales_es-us_json":"f026921cccec56602768","src_localization_locales_es-uy_json":"fb8331afdf70cb969c72","src_localization_locales_es-ve_json":"4d0a30f177324f45c93c","src_localization_locales_es-xl_json":"c91097fb7fdb1aab2631","src_localization_locales_et-ee_json":"2e1573e1733fc0045e04","src_localization_locales_fi-fi_json":"5bddf9f751958a927677",src_localization_locales_fil_json:"62f25cb0417f36ef3bb7","src_localization_locales_fr-ca_json":"e6c3a0186f38e10d0f2e",src_localization_locales_ga_json:"999a917ea417c7a2b492",src_localization_locales_gl_json:"aed3f5b69bb5b184637f","src_localization_locales_gu-in_json":"3597e02e3285d4a8b7c6","src_localization_locales_he-il_json":"23dd0e80ac4d52a6ce51","src_localization_locales_hi-in_json":"ce5f24ae745aad906b38",src_localization_locales_hr_json:"e33cfba05dd64ef2543a","src_localization_locales_hu-hu_json":"38cf6d752b584a6d22d0","src_localization_locales_id-id_json":"616afeee9cdea790336d","src_localization_locales_is-is_json":"7e873715b4bff0323e29","src_localization_locales_ja-jp_json":"b6247052ac5eff2dfa7f","src_localization_locales_kk-kz_json":"2810d029fa989aee9d59",src_localization_locales_kn_json:"87d00bee181250dd735d","src_localization_locales_ko-kr_json":"6712409ae43b7521025c","src_localization_locales_kz-kz_json":"4417d2c0aae045cfa644","src_localization_locales_lt-lt_json":"2d125a0dbd9fb54719be","src_localization_locales_lv-lv_json":"2a84d41a75b9481d3640",src_localization_locales_ml_json:"f43babbcfb0a401613ed",src_localization_locales_mr_json:"d501365c60f81453631f",src_localization_locales_ms_json:"20647a33d8fd643ba4af","src_localization_locales_nb-no_json":"88bd179ea5eba5022ddf",src_localization_locales_nl_json:"3f81d7c00b82b5e0cc48","src_localization_locales_or-in_json":"aea58d5eabb81542f8b9",src_localization_locales_pa_json:"64f04649eaa46a2deef7","src_localization_locales_pl-pl_json":"26fb7bf3e71f2c0a3cc4","src_localization_locales_pt-pt_json":"ecd0cd39a8981ebf5090",src_localization_locales_pt_json:"1a2a503fcb456e491138",src_localization_locales_ro_json:"2743ae1d5b68f8b33ef9",src_localization_locales_ru_json:"48bb2c845ed3fb657d44","src_localization_locales_sk-sk_json":"64309e644cc9a4999f0c","src_localization_locales_sl-si_json":"254a1d1c572de8497ac3","src_localization_locales_sr-latn-me_json":"86abaa5f0044f3a3dd4e",src_localization_locales_sr_json:"23a5fc64299a0bd28cc9","src_localization_locales_sv-se_json":"b6c30132dd00b57bd995","src_localization_locales_ta-in_json":"a54b7d195a37ad03d50e",src_localization_locales_te_json:"f872e5de18562a4a8308","src_localization_locales_th-th_json":"a5ad2bf18e46849f34ab","src_localization_locales_tr-tr_json":"ca5936ae1f1522799f1e","src_localization_locales_uk-ua_json":"565f5494d22954e1ebc6","src_localization_locales_ur-in_json":"2ab9a1dbb35cbbe2a287","src_localization_locales_vi-vn_json":"28ac9b9ac4d7111cafa5","src_localization_locales_zh-cn_json":"7e310e48e0414c607286","src_localization_locales_zh-hk_json":"c5047725abf9e02a01b4","src_localization_locales_zh-sg_json":"94840ae0e263d2b520bf","src_localization_locales_zh-tw_json":"a0b64db80555f1e19771"}[e]+".mjs",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i="universal-media-player:",o.l=(e,t,r,a)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(p);var r=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(i))),t)return t(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="http://approjects.co.za/?big=videoplayer/",(()=>{o.b=document.baseURI||self.location.href;var e={ump:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=e[t]=[n,r]));n.push(i[2]=r);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,r,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);l&&l(o)}for(t&&t(n);uMT,H:()=>NT}),function(e){e.PlayToggle="playToggle",e.PosterImage="posterImage",e.ProgressControl="progressControl",e.SeekBar="seekBar",e.CurrentTimeDisplay="currentTimeDisplay",e.TimeDivider="timeDivider",e.DurationDisplay="durationDisplay"}(s||(s={})),function(e){e.AgeGateUpdate="agegateupdate",e.CanPlay="canplay",e.Click="click",e.Error="error",e.Play="play",e.Pause="pause",e.Ready="ready",e.Resize="resize",e.LoadedMetadata="loadedmetadata",e.PlayerResize="playerresize",e.LoadedMenu="loadedmenu",e.Ended="ended",e.PowerCmsLoaded="powercmsloaded",e.LanguageChange="languagechange"}(l||(l={})),function(e){e.AriaAnnouncer="ariaAnnouncer",e.AudioTrackButton="audioTrackButton",e.BigPlayButton="bigPlayButton",e.DownloadMenuButton="downloadMenuButton",e.QualitySelector="qualitySelector",e.SettingsMenuButton="settingsMenuButton",e.ShareMenuButton="shareMenuButton",e.TextTrackSettings="textTrackSettings"}(u||(u={})),function(e){e.AutoPlay="autoPlay",e.AgeGate="ageGate",e.AutoCaptions="autoCaptions",e.MenuSize="menuSize",e.OnFirstPlay="onFirstPlay",e.PlayPauseControls="playPauseControls",e.StartTime="startTime",e.ShowImageOnError="showImageOnError",e.Telemetry="telemetry",e.ResponsiveControlBar="responsiveControlBar",e.PowerCms="powerCms",e.Localizer="localizer",e.AudioTrackSelector="audioTrackSelector",e.TouchTogglePlayback="touchTogglePlayback"}(c||(c={})),function(e){e.LockState="AgeGatelockedStateComponent",e.Verification="AgeGateVerificationComponent",e.Modal="AgeGateModalComponent"}(d||(d={}));const p="universal-media-player",f={autoplay:!1,ageGate:!1,controls:!0,controlBar:{children:["playToggle","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","customControlSpacer",u.DownloadMenuButton,"chaptersButton","descriptionsButton","subsCapsButton",u.AudioTrackButton,u.SettingsMenuButton,"volumePanel","fullscreenToggle"],volumePanel:{inline:!1}},download:!0,hidePosterImage:!1,loop:!1,percentage:50,playsinline:!0,textTrackSettings:{pauseOnOpen:!1},playButtonSize:"medium",playButtonTheme:"dark",maskLevel:0,playFullScreen:!1,retryOnError:!0,share:!0,shareOptions:[],muted:!1,preload:"none",playbackRates:[.5,.75,1,1.25,1.5,2],title:"",sources:[],ccFiles:[],downloadableFiles:[],reporting:!0,language:"en-us",debug:!1,startTime:0,showImageOnError:!1,partnerName:"",layout:"fluid"},m=["application/dash+xml","application/vnd.apple.mpegurl","video/mp4"],g=["Auto","HQ","HD","SD","LO"],v={DASH:"application/dash+xml",MP4:"video/mp4",HLS:"application/vnd.apple.mpegurl"},y=(e,t)=>`${e}_${t}`,b=(e,t)=>performance.mark(y(e,t)).startTime,_=(e,t)=>{var n,i;const r=performance.getEntriesByName(y(e,t));return null!==(i=null===(n=r[r.length-1])||void 0===n?void 0:n.startTime)&&void 0!==i?i:0};var T=o(6244);class S extends(T.default.getComponent("Component")){constructor(e){super(e);const t=T.default.dom;e.on(l.Play,(()=>{t.textContent(this.el(),super.localize("Play Video"))})),e.on(l.Pause,(()=>{t.textContent(this.el(),super.localize("Pause"))}))}createEl(){return super.createEl("div",{id:"ump-aria-announcer-helper",className:"vjs-ump-visually-hidden"},{"aria-live":"assertive","z-index":"-1"})}}const w=S;var k,C;function E(e,t){return e||t}function j(e,t){return e[t]}!function(e){e.ScriptLoadDurationMs="scriptLoadDurationMs",e.PlayerLoadDurationMs="playerLoadDurationMs",e.InitialBufferDurationMs="initialBufferDurationMs",e.BufferDurationMs="bufferDurationMs",e.InitialPlaybackStartDurationMs="initialPlaybackStartDurationMs",e.PosterImageLoadDurationMs="posterImageLoadDurationMs"}(k||(k={})),function(e){e.BufferComplete="BufferComplete",e.CommonPlayerImpression="CommonPlayerImpression",e.ContentCheckpoint="ContentCheckpoint",e.ContentComplete="ContentComplete",e.ContentError="ContentError",e.FullScreenEnter="FullScreenEnter",e.FullScreenExit="FullScreenExit",e.InviewEnter="InviewEnter",e.InviewExit="InviewExit",e.Mute="Mute",e.Pause="Pause",e.Play="Play",e.PlayerError="PlayerError",e.Replay="Replay",e.Resume="Resume",e.Seek="Seek",e.Unmute="Unmute",e.VideoAudioTrackControl="VideoAudioTrackControl",e.VideoPlayerClick="VideoPlayerClick"}(C||(C={}));var x,A=void 0,I=null,P="",D="function",L="object",O="prototype",M="__proto__",N="undefined",R="constructor",U="Symbol",B="_polyfill",F="length",V="name",q="call",z="toString",H=E(Object),W=j(H,O),G=E(String),X=j(G,O),K=E(Math),Y=E(Array),Q=j(Y,O),J=j(Q,"slice");function $(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e}}}function Z(e){return function(t){return typeof t===e}}function ee(e){var t="[object "+e+"]";return function(e){return!(!e||te(e)!==t)}}function te(e){return W[z].call(e)}function ne(e){return typeof e===N||e===N}function ie(e){return e===I||ne(e)}function re(e){return!!e||e!==A}var ae=Z("string"),oe=Z(D);function se(e){return!(!e&&ie(e)||!e||typeof e!==L)}var le=j(Y,"isArray"),ue=ee("Date"),ce=Z("number"),de=Z("boolean"),he=ee("Error");function pe(e){return!!(e&&e.then&&oe(e.then))}function fe(e){return!(!e||(t=function(){return!(e&&0+e)},n=!e,i=$(t),i.e?n:i.v));var t,n,i}var me=j(H,"getOwnPropertyDescriptor");function ge(e,t){return!!e&&W.hasOwnProperty[q](e,t)}var ve=E(j(H,"hasOwn"),ye);function ye(e,t){return ge(e,t)||!!me(e,t)}function be(e,t,n){if(e&&se(e))for(var i in e)if(ve(e,i)&&-1===t[q](n||e,i,e[i]))break}var _e={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Te=j(H,"defineProperty"),Se=j(H,"defineProperties");function we(e,t,n){return Te(e,t,function(e){var t={};if(t[_e.c]=!0,t[_e.e]=!0,e.l){t.get=function(){return e.l.v};var n=me(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return be(e,(function(e,n){t[_e[e]]=ne(n)?t[_e[e]]:n})),t}(n))}function ke(e,t,n,i,r){var a={};return be(e,(function(e,i){Ce(a,e,t?i:e,r),Ce(a,i,n?i:e,r)})),i?i(a):a}function Ce(e,t,n,i){Te(e,t,{value:n,enumerable:!0,writable:!!i})}var Ee=E(G),je="[object Error]";function xe(e,t){var n=P,i=W[z][q](e);i===je&&(e={stack:Ee(e.stack),message:Ee(e.message),name:Ee(e.name)});try{n=(n=JSON.stringify(e,I,t?"number"==typeof t?t:4:A))&&n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Ee(e)}catch(e){n=" - "+xe(e,t)}return i+": "+n}function Ae(e){throw new Error(e)}function Ie(e){throw new TypeError(e)}var Pe=j(H,"freeze");function De(e){return e}function Le(e){return e[M]||I}var Oe=j(H,"assign"),Me=j(H,"keys");function Ne(e){return Pe&&be(e,(function(e,t){(le(t)||se(t))&&Ne(t)})),Re(e)}var Re=E(Pe,De),Ue=E(j(H,"getPrototypeOf"),Le);function Be(e){return ke(e,0,0,Re)}var Fe,Ve=Be({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),qe="__tsUtils$gblCfg";function ze(){var e;return typeof globalThis!==N&&(e=globalThis),e||typeof self===N||(e=self),e||typeof window===N||(e=window),e||typeof o.g===N||(e=o.g),e}function He(){if(!Fe){var e=$(ze).v||{};Fe=e[qe]=e[qe]||{}}return Fe}var We=Ge;function Ge(e,t,n){var i=t&&t[e];return function(t){var r=t&&t[e]||i;if(r||n){var a=arguments;return(r||n).apply(t,r?J[q](a,1):a)}Ie('"'+Ee(e)+'" not defined for '+xe(t))}}function Xe(e){return function(t){return t[e]}}var Ke=j(K,"max"),Ye=We("slice",X),Qe=We("substring",X),Je=Ge("substr",X,$e);function $e(e,t,n){return ie(e)&&Ie("Invalid "+xe(e)),n<0?P:((t=t||0)<0&&(t=Ke(t+e[F],0)),ne(n)?Ye(e,t):Ye(e,t,t+n))}function Ze(e,t){return Qe(e,0,t)}var et,tt,nt,it="_urid";function rt(e){var t={description:Ee(e),toString:function(){return U+"("+e+")"}};return t[B]=!0,t}function at(e){var t=function(){if(!et){var e=He();et=e.gblSym=e.gblSym||{k:{},s:{}}}return et}();if(!ve(t.k,e)){var n=rt(e),i=Me(t.s).length;n[it]=function(){return i+"_"+n[z]()},t.k[e]=n,t.s[n[it]()]=Ee(e)}return t.k[e]}function ot(){nt=He()}function st(e){return Te({toJSON:function(){return e}},"v",{value:e})}var lt,ut="window";function ct(e,t){var n;return function(){return!nt&&ot(),(!n||nt.lzy)&&(n=st($(e,t).v)),n.v}}function dt(e){return!nt&&ot(),(!lt||!1===e||nt.lzy)&&(lt=st($(ze).v||I)),lt.v}function ht(e,t){var n=lt&&!1!==t?lt.v:dt(t);return n&&n[e]?n[e]:e===ut?bt():I}function pt(){return!!ft()}var ft=ct(ht,["document"]);function mt(){return!!bt()}var gt,vt,yt,bt=ct(ht,[ut]),_t=ct(ht,["navigator"]),Tt=ct(ht,["history"]),St=ct((function(){return!!$((function(){return process&&(process.versions||{}).node})).v})),wt=ct((function(){return!!$((function(){return self&&self instanceof WorkerGlobalScope})).v}));function kt(){return gt=st($(ht,[U]).v)}function Ct(e){var t=(nt.lzy?0:gt)||kt();return t.v?t.v[e]:A}function Et(){return!!jt()}function jt(){return!nt&&ot(),((nt.lzy?0:gt)||kt()).v}function xt(e,t){var n=Ve[e];!nt&&ot();var i=(nt.lzy?0:gt)||kt();return i.v?i.v[n||e]:t?A:function(e){var t;!tt&&(tt={});var n=Ve[e];return n&&(t=tt[n]=tt[n]||rt(U+"."+n)),t}(e)}function At(e,t){!nt&&ot();var n=(nt.lzy?0:gt)||kt();return n.v?n.v(e):t?I:rt(e)}function It(e){return!nt&&ot(),((vt=(nt.lzy?0:vt)||st($(Ct,["for"]).v)).v||at)(e)}function Pt(e){return!!e&&oe(e.next)}function Dt(e){return!function(e){return e===I||!re(e)}(e)&&oe(e[xt(3)])}function Lt(e,t,n){if(e&&(Pt(e)||(!yt&&(yt=st(xt(3))),e=e[yt.v]?e[yt.v]():null),Pt(e))){var i=A,r=A;try{for(var a=0;!(r=e.next()).done&&-1!==t[q](n||e,r.value,a,e);)a++}catch(t){i={e:t},e.throw&&(r=I,e.throw(i))}finally{try{r&&!r.done&&e.return&&e.return(r)}finally{if(i)throw i.e}}}}function Ot(e,t,n){return e.apply(t,n)}function Mt(e,t){return!ne(t)&&e&&(le(t)?Ot(e.push,e,t):Pt(t)||Dt(t)?Lt(t,(function(t){e.push(t)})):e.push(t)),e}function Nt(e,t,n){if(e)for(var i=e[F]>>>0,r=0;r0?t[0]:i?A:t)||setTimeout,o=(r>1?t[1]:A)||clearTimeout,s=n[0];n[0]=function(){l.dn(),Ot(s,A,J[q](arguments))};var l=function(e,t,n){var i,r=!0,a=e?t(I):I;function o(){return r=!1,a&&a[_n]&&a[_n](),i}function s(){a&&n(a),a=I}function l(){return a=t(a),r||o(),i}return(i={cancel:s,refresh:l})[Tn]=function(){return a&&a[Tn]?a[Tn]():r},i[bn]=function(){return r=!0,a&&a[bn]&&a[bn](),i},i[_n]=o,{h:i=Te(i,Sn,{get:function(){return!!a},set:function(e){!e&&a&&s(),e&&!a&&l()}}),dn:function(){a=I}}}(e,(function(e){if(e){if(e.refresh)return e.refresh(),e;Ot(o,A,[e])}return Ot(a,A,n)}),(function(e){Ot(o,A,[e])}));return l.h}function kn(e,t){return wn(!0,A,J[q](arguments))}var Cn="constructor",En="prototype",jn="function",xn="_dynInstFuncs",An="_isDynProxy",In="_dynClass",Pn="_dynInstChk",Dn=Pn,Ln="_dfOpts",On="_unknown_",Mn="__proto__",Nn="_dyn"+Mn,Rn="__dynProto$Gbl",Un="_dynInstProto",Bn="useBaseInst",Fn="setInstFuncs",Vn=Object,qn=Vn.getPrototypeOf,zn=Vn.getOwnPropertyNames,Hn=dt(),Wn=Hn[Rn]||(Hn[Rn]={o:(vn={},vn[Fn]=!0,vn[Bn]=!0,vn),n:1e3});function Gn(e){return e&&(e===Vn[En]||e===Array[En])}function Xn(e){return Gn(e)||e===Function[En]}function Kn(e){var t;if(e){if(qn)return qn(e);var n=e[Mn]||e[En]||(e[Cn]?e[Cn][En]:null);t=e[Nn]||n,ge(e,Nn)||(delete e[Un],t=e[Nn]=e[Un]||e[Nn],e[Un]=n)}return t}function Yn(e,t){var n=[];if(zn)n=zn(e);else for(var i in e)"string"==typeof i&&ge(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r=0;n--)if(e[n]===t)return!0;return!1}function Zn(e,t,n,i,r){if(!Gn(e)){var a=n[xn]=n[xn]||zt(null);if(!Gn(a)){var o=a[t]=a[t]||zt(null);!1!==a[Dn]&&(a[Dn]=!!r),Gn(o)||Yn(n,(function(t){Qn(n,t,!1)&&n[t]!==i[t]&&(o[t]=n[t],delete n[t],(!ge(e,t)||e[t]&&!e[t][An])&&(e[t]=function(e,t){var n=function(){var i=function(e,t,n,i){var r=null;if(e&&ge(n,In)){var a=e[xn]||zt(null);if((r=(a[n[In]]||zt(null))[t])||Jn("Missing ["+t+"] "+jn),!r[Pn]&&!1!==a[Dn]){for(var o=!ge(e,t),s=Kn(e),l=[];o&&s&&!Xn(s)&&!$n(l,s);){var u=s[t];if(u){o=u===i;break}l.push(s),s=Kn(s)}try{o&&(e[t]=r),r[Pn]=1}catch(e){a[Dn]=!1}}}return r}(this,t,e,n)||function(e,t,n){var i=t[e];return i===n&&(i=Kn(t)[e]),typeof i!==jn&&Jn("["+e+"] is not a "+jn),i}(t,e,n);return i.apply(this,arguments)};return n[An]=1,n}(e,t)))}))}}}function ei(e,t){return ge(e,En)?e.name||t||On:((e||{})[Cn]||{}).name||t||On}function ti(e,t,n,i){ge(e,En)||Jn("theClass is an invalid class definition.");var r=e[En];(function(e,t){if(qn){for(var n=[],i=Kn(t);i&&!Xn(i)&&!$n(n,i);){if(i===e)return!0;n.push(i),i=Kn(i)}return!1}return!0})(r,t)||Jn("["+ei(e)+"] not in hierarchy of ["+ei(t)+"]");var a=null;ge(r,In)?a=r[In]:(a="_dynCls$"+ei(e,"_")+"$"+Wn.n,Wn.n++,r[In]=a);var o=ti[Ln],s=!!o[Bn];s&&i&&void 0!==i[Bn]&&(s=!!i[Bn]);var l=function(e){var t=zt(null);return Yn(e,(function(n){!t[n]&&Qn(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r[An]&&i){var a=e[xn]||{};!1!==a[Dn]&&(r=(a[t[In]]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var a=zt(null);Yn(n,(function(e){a[e]=r(t,n,e)}));for(var o=Kn(e),s=[];o&&!Xn(o)&&!$n(s,o);)Yn(o,(function(e){!a[e]&&Qn(o,e,!qn)&&(a[e]=r(t,o,e))})),s.push(o),o=Kn(o);return a}(r,t,l,s);n(t,u);var c=!!qn&&!!o[Fn];c&&i&&(c=!!i[Fn]),Zn(r,a,t,l,!1!==c)}ti[Ln]=Wn.o;var ni="function",ii="object",ri="undefined",ai="prototype",oi=Object,si=oi[ai],li=((dt()||{}).Symbol,(dt()||{}).Reflect,"hasOwnProperty"),ui=Oe||function(e){for(var t,n=1,i=arguments.length;n0&&de(s)&&(u=s,s=o[c]||{},c++),se(s)||(s={});c>>=0),Ya=Ga+t&Wa,Qa=Xa-t&Wa,Ka=!0}catch(e){}var t}function $a(e){var t=0,n=ht(Ca)||ht(Ea);return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Wa),0===t&&Ba()&&(Ka||Ja(),t=function(){var e=((Qa=36969*(65535&Qa)+(Qa>>16)&Wa)<<16)+(65535&(Ya=18e3*(65535&Ya)+(Ya>>16)&Wa))>>>0&Wa;return e>>>=0}()&Wa),0===t&&(t=Math.floor(Ha*Math.random()|0)),e||(t>>>=0),t}function Za(e){void 0===e&&(e=22);for(var t=$a()>>>0,n=0,i=Lr;i[mi]>>=6,5===n&&(t=($a()<<2&4294967295|3&t)>>>0,n=0);return i}var eo="3.3.1",to="."+Za(6),no=0;function io(e){return 1===e[ur]||9===e[ur]||!+e[ur]}function ro(e,t){return void 0===t&&(t=!1),ra(e+no+++(t?"."+eo:Lr)+to)}function ao(e){var t={id:ro("_aiData-"+(e||Lr)+"."+eo),accept:function(e){return io(e)},get:function(e,n,i,r){var a=e[t.id];return a?a[ra(n)]:(r&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{io(t)&&we(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[ra(n)]=i),i)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function oo(e){return e&&se(e)&&(e.isVal||e.fb||ve(e,"v")||ve(e,"mrg")||ve(e,"ref")||e.set)}function so(e,t,n){var i,r=n.dfVal||re;if(t&&n.fb){var a=n.fb;le(a)||(a=[a]);for(var o=0;o0&&function(e,t){vo||(vo=Xt("AggregationError",(function(e,t){t[mi]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Nt(t,(function(e,t){n+="\n".concat(t," > ").concat(xe(e))})),new vo(n,t||[])}(0,t)}}return(t={prop:i,ro:r,rf:a})[fi]=o,t[Ei]=e,t.add=function(e){if(e&&e.h[mi]>0){l||(l=[]),u||(u=kn((function(){u=null,d()}),0));for(var t=0;t=r)){var a=!0,o="AITR_"+n[$i];if(l[o]?a=!1:l[o]=!0,a&&(t<=i&&(e.queue[ki](n),s++,c(1===t?"error":"warn",n)),s===r)){var u="Internal events throttle limit per PageView reached for this app.",d=new Fo(23,u,!1);e.queue[ki](d),1===t?e.errorToConsole(u):e[yi](u)}}}function c(e,n){var i=Oo(t||{});i&&i[tr]&&i[tr](e,n)}o=function(t){return xo(jo(t,No,e).cfg,(function(e){var t=e.cfg;n=t[Yi],i=t.loggingLevelTelemetry,r=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[bi]=function(t,i,r,o,s){void 0===s&&(s=!1);var d=new Fo(i,r,s,o);if(a)throw xe(d);var h=Ro[t]||Mo;if(ne(d[Zi]))c("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[$i];!l[p]&&n>=t&&(e[h](d[Zi]),l[p]=!0)}else n>=t&&e[h](d[Zi]);u(t,d)}},e.debugToConsole=function(e){Bo("debug",e),c("warning",e)},e[yi]=function(e){Bo("warn",e),c("warning",e)},e.errorToConsole=function(e){Bo("error",e),c("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e[dr]=u,e[Gi]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function zo(e){return e||new qo}function Ho(e,t,n,i,r,a){void 0===a&&(a=!1),zo(e)[bi](t,n,i,r,a)}function Wo(e,t){zo(e)[yi](t)}var Go=function(e){return ke(e,1,0,Re)},Xo=Go({LocalStorage:0,SessionStorage:1}),Ko=(Go({AI:0,AI_AND_W3C:1,W3C:2}),Go({Normal:1,Critical:2}),"split"),Yo="length",Qo="toLowerCase",Jo="ingestionendpoint",$o="toString",Zo="push",es="removeItem",ts="name",ns="message",is="count",rs="preTriggerDate",as="disabled",os="interval",ss="daysOfMonth",ls="date",us="getUTCDate",cs="stringify",ds="pathname",hs="correlationHeaderExcludePatterns",ps="exceptions",fs="parsedStack",ms="properties",gs="measurements",vs="sizeInBytes",ys="typeName",bs="severityLevel",_s="problemGroup",Ts="isManual",Ss="CreateFromInterface",ws="assembly",ks="fileName",Cs="hasFullStack",Es="level",js="method",xs="line",As="duration",Is="receivedResponse",Ps=void 0,Ds=void 0,Ls="";function Os(){return Us()?Ms(Xo.LocalStorage):null}function Ms(e){try{if(ie(dt()))return null;var t=(new Date)[$o](),n=ht(e===Xo.LocalStorage?"localStorage":"sessionStorage"),i=Ls+t;n.setItem(i,t);var r=n.getItem(i)!==t;if(n[es](i),!r)return n}catch(e){}return null}function Ns(){return Vs()?Ms(Xo.SessionStorage):null}function Rs(e){Ls=e||""}function Us(e){return(e||void 0===Ps)&&(Ps=!!Ms(Xo.LocalStorage)),Ps}function Bs(e,t){var n=Os();if(null!==n)try{return n.getItem(t)}catch(t){Ps=!1,Ho(e,2,1,"Browser failed read of local storage. "+sa(t),{exception:xe(t)})}return null}function Fs(e,t,n){var i=Os();if(null!==i)try{return i.setItem(t,n),!0}catch(t){Ps=!1,Ho(e,2,3,"Browser failed write to local storage. "+sa(t),{exception:xe(t)})}return!1}function Vs(e){return(e||void 0===Ds)&&(Ds=!!Ms(Xo.SessionStorage)),Ds}function qs(e,t){var n=Ns();if(null!==n)try{return n.getItem(t)}catch(t){Ds=!1,Ho(e,2,2,"Browser failed read of session storage. "+sa(t),{exception:xe(t)})}return null}function zs(e,t,n){var i=Ns();if(null!==i)try{return i.setItem(t,n),!0}catch(t){Ds=!1,Ho(e,2,4,"Browser failed write to session storage. "+sa(t),{exception:xe(t)})}return!1}function Hs(e,t){var n=Ns();if(null!==n)try{return n[es](t),!0}catch(t){Ds=!1,Ho(e,2,6,"Browser failed removal of session storage item. "+sa(t),{exception:xe(t)})}return!1}var Ws="AppInsightsPropertiesPlugin",Gs="AppInsightsChannelPlugin",Xs="ApplicationInsightsAnalytics",Ks="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Ys="sampleRate",Qs="ProcessLegacy",Js="http.method",$s="https://dc.services.visualstudio.com",Zs="/v2/track",el="not_specified",tl="iKey";function nl(e,t,n){var i,r=t[Yo],a=function(e,t){var n;return t&&(t=en(Ee(t)))[Yo]>150&&(n=Qe(t,0,150),Ho(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(a[Yo]!==r){for(var o=0,s=a;void 0!==n[s];)o++,s=Qe(a,0,147)+(void 0,Je(i="00"+o,i[Yo]-3));a=s}return a}function il(e,t,n){var i;return void 0===n&&(n=1024),t&&(n=n||1024,(t=en(Ee(t)))[Yo]>n&&(i=Qe(t,0,n),Ho(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t}function rl(e,t){return ll(e,t,2048,66)}function al(e,t){var n;return t&&t[Yo]>32768&&(n=Qe(t,0,32768),Ho(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function ol(e,t){if(t){var n={};be(t,(function(t,i){if(se(i)&&Ra())try{i=Ua()[cs](i)}catch(t){Ho(e,2,49,"custom property is not valid",{exception:t},!0)}i=il(e,i,8192),t=nl(e,t,n),n[t]=i})),t=n}return t}function sl(e,t){if(t){var n={};be(t,(function(t,i){t=nl(e,t,n),n[t]=i})),t=n}return t}function ll(e,t,n,i){var r;return t&&(t=en(Ee(t)))[Yo]>n&&(r=Qe(t,0,n),Ho(e,2,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t}function ul(e,t,n,i,r,a){var o;n=il(i,n)||el,(ie(e)||ie(t)||ie(n))&&Ae("Input doesn't contain all required fields");var s="";e[tl]&&(s=e[tl],delete e[tl]);var l=((o={})[ts]=n,o.time=oa(new Date),o.iKey=s,o.ext=a||{},o.tags=[],o.data={},o.baseType=t,o.baseData=e,o);return ie(r)||be(r,(function(e,t){l.data[e]=t})),l}var cl=function(){function e(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var r=this;r.ver=2,r[ts]=il(e,t)||el,r[ms]=ol(e,n),r[gs]=sl(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),dl=function(){function e(e,t,n,i,r){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||el,a[ns]=al(e,t),a[ms]=ol(e,i),a[gs]=sl(e,r),n&&(a[bs]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),hl=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},pl=function(){function e(e,t,n,i,r,a,o,s,l){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var c=new hl;c[is]=i>0?i:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(r)||null===r?void 0:r,c[ts]=il(e,t)||el,c.value=n,c.stdDev=isNaN(o)||null===o?void 0:o,u.metrics=[c],u[ms]=ol(e,s),u[gs]=sl(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),fl="";function ml(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=fl+e%1e3,n=fl+Math.floor(e/1e3)%60,i=fl+Math.floor(e/6e4)%60,r=fl+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[Yo]?"00"+t:2===t[Yo]?"0"+t:t,n=n[Yo]<2?"0"+n:n,i=i[Yo]<2?"0"+i:i,r=r[Yo]<2?"0"+r:r,(a>0?a+".":fl)+r+":"+i+":"+n+"."+t}var gl=function(){function e(e,t,n,i,r,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=function(e,t){return t?ll(e,t,128,69)[$o]():t}(e,o),s.url=rl(e,n),s[ts]=il(e,t)||el,isNaN(i)||(s[As]=ml(i)),s[ms]=ol(e,r),s[gs]=sl(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),vl=function(){function e(e,t,n,i,r,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=rl(e,n),s[ts]=il(e,t)||el,s[ms]=ol(e,r),s[gs]=sl(e,a),o&&(s.domProcessing=o.domProcessing,s[As]=o[As],s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s[Is]=o[Is],s.sentRequest=o.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),yl="error",bl="stack",_l="stackDetails",Tl="errorSrc",Sl="message",wl="description";function kl(e,t){var n=e;return n&&!ae(n)&&(JSON&&JSON[cs]?(n=JSON[cs](e),!t||n&&"{}"!==n||(n=oe(e[$o])?e[$o]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Cl(e,t){var n=e;return e&&(n&&!ae(n)&&(n=e[Sl]||e[wl]||n),n&&!ae(n)&&(n=kl(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===yn(n||"",t)&&(n=t+": "+n),n||""}function El(e){return e&&e.src&&ae(e.src)&&e.obj&&le(e.obj)}function jl(e){var t=e||"";ae(t)||(t=ae(t[bl])?t[bl]:""+t);var n=t[Ko]("\n");return{src:t,obj:n}}function xl(e){var t=null;if(e)try{if(e[bl])t=jl(e[bl]);else if(e[yl]&&e[yl][bl])t=jl(e[yl][bl]);else if(e.exception&&e.exception[bl])t=jl(e.exception[bl]);else if(El(e))t=e;else if(El(e[_l]))t=e[_l];else if(bt()&&bt().opera&&e[Sl])t=function(e){for(var t=[],n=e[Ko]("\n"),i=0;i1?n[1]:""}catch(e){}return t}function Il(e){if(e)try{if(!ae(e)){var t=Al(e),n=kl(e,!1);return n&&"{}"!==n||(e[yl]&&(t=Al(e=e[yl])),n=kl(e,!0)),0!==yn(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var Pl=function(){function e(e,t,n,i,r,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var o=this;o.ver=2,function(e){try{if(se(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(o[ps]=t[ps]||[],o[ms]=t[ms],o[gs]=t[gs],t[bs]&&(o[bs]=t[bs]),t.id&&(o.id=t.id,t[ms].id=t.id),t[_s]&&(o[_s]=t[_s]),ie(t[Ts])||(o[Ts]=t[Ts])):(n||(n={}),a&&(n.id=a),o[ps]=[new Dl(e,t,n)],o[ms]=ol(e,n),o[gs]=sl(e,i),r&&(o[bs]=r),a&&(o.id=a))}return e.CreateAutoException=function(e,t,n,i,r,a,o,s){var l,u=Al(r||a||e);return(l={})[ns]=Cl(e,u),l.url=t,l.lineNumber=n,l.columnNumber=i,l.error=Il(r||a||e),l.evt=Il(a||e),l[ys]=u,l.stackDetails=xl(o||r||a),l.errorSrc=s,l},e.CreateFromInterface=function(t,n,i,r){var a=n[ps]&&Ut(n[ps],(function(e){return Dl[Ss](t,e)}));return new e(t,ui(ui({},n),{exceptions:a}),i,r)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,r=t.measurements,a=t.severityLevel,o=t.problemGroup,s=t.id,l=t.isManual,u=n instanceof Array&&Ut(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[ps]=u,e.severityLevel=a,e.properties=i,e.measurements=r,e.problemGroup=o,e.id=s,e.isManual=l,e},e.CreateSimpleException=function(e,t,n,i,r,a){var o;return{exceptions:[(o={},o[Cs]=!0,o.message=e,o.stack=r,o.typeName=t,o)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=Il,e}(),Dl=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(function(e){try{if(se(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))i[ys]=t[ys],i[ns]=t[ns],i[bl]=t[bl],i[fs]=t[fs]||[],i[Cs]=t[Cs];else{var r=t,a=r&&r.evt;he(r)||(r=r[yl]||a||r),i[ys]=il(e,Al(r))||el,i[ns]=al(e,Cl(t||r,i[ys]))||el;var o=t[_l]||xl(t);i[fs]=function(e){var t,n=e.obj;if(n&&n[Yo]>0){t=[];var i=0,r=0;if(Nt(n,(function(e){var n=e[$o]();if(Ll.regex.test(n)){var a=new Ll(n,i++);r+=a[vs],t[Zo](a)}})),r>32768)for(var a=0,o=t[Yo]-1,s=0,l=a,u=o;a32768){var c=u-l+1;t.splice(l,c);break}l=a,u=o,a++,o--}}return t}(o),le(i[fs])&&Ut(i[fs],(function(t){t[ws]=il(e,t[ws]),t[ks]=il(e,t[ks])})),i[bl]=function(e,t){var n;if(t){var i=""+t;i[Yo]>32768&&(n=Qe(i,0,32768),Ho(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}(e,function(e){var t="";return e&&(e.obj?Nt(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(o)),i.hasFullStack=le(i.parsedStack)&&i.parsedStack[Yo]>0,n&&(n[ys]=n[ys]||i[ys])}}return e.prototype.toInterface=function(){var e,t=this,n=t[fs]instanceof Array&&Ut(t[fs],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[ys],message:t[ns],hasFullStack:t[Cs],stack:t[bl]})[fs]=n||void 0,e},e.CreateFromInterface=function(t,n){var i=n[fs]instanceof Array&&Ut(n[fs],(function(e){return Ll[Ss](e)}))||n[fs];return new e(t,ui(ui({},n),{parsedStack:i}))},e}(),Ll=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var i=this;if(i[vs]=0,"string"==typeof t){var r=t;i[Es]=n,i[js]="",i[ws]=en(r),i[ks]="",i[xs]=0;var a=r.match(e.regex);a&&a[Yo]>=5&&(i[js]=en(a[2])||i[js],i[ks]=en(a[4]),i[xs]=parseInt(a[5])||0)}else i[Es]=t[Es],i[js]=t[js],i[ws]=t[ws],i[ks]=t[ks],i[xs]=t[xs],i[vs]=0;i.sizeInBytes+=i.method[Yo],i.sizeInBytes+=i.fileName[Yo],i.sizeInBytes+=i.assembly[Yo],i[vs]+=e.baseSize,i.sizeInBytes+=i.level.toString()[Yo],i.sizeInBytes+=i.line.toString()[Yo]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[Es],method:e[js],assembly:e[ws],fileName:e[ks],line:e[xs]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function Ol(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=Lr,i=0;i<4;i++)n+=t[15&(e=$a())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+(3&$a())|0];return Je(n,0,8)+Je(n,9,4)+"4"+Je(n,13,3)+r+Je(n,16,3)+Je(n,19,12)}var Ml="00",Nl="00000000000000000000000000000000",Rl="0000000000000000";function Ul(e,t,n){return!(!e||e[mi]!==t||e===n||!e.match(/^[\da-f]*$/i))}function Bl(e,t,n){return Ul(e,t)?e:n}function Fl(e,t,n,i){var r;return(r={})[Ki]=Ul(i,2,"ff")?i:Ml,r[xr]=Vl(e)?e:Ol(),r[Ar]=ql(t)?t:Ze(Ol(),16),r.traceFlags=n>=0&&n<=255?n:1,r}function Vl(e){return Ul(e,32,Nl)}function ql(e){return Ul(e,16,Rl)}function zl(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[mi]<2;)t="0"+t;return t}(e[Ir]);Ul(t,2)||(t="01");var n=e[Ki]||Ml;return"00"!==n&&"ff"!==n&&(n=Ml),"".concat(n.toLowerCase(),"-").concat(Bl(e.traceId,32,Nl).toLowerCase(),"-").concat(Bl(e.spanId,16,Rl).toLowerCase(),"-").concat(t.toLowerCase())}return""}var Hl=function(e){var t={};return be(e,(function(e,n){Ce(t,e,n[1]),Ce(t,n[0],n[1])})),Re(t)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Wl=ft()||{},Gl=0,Xl=[null,null,null,null,null];function Kl(e){var t=Gl,n=Xl,i=n[t];return Wl.createElement?n[t]||(i=n[t]=Wl.createElement("a")):i={host:Yl(e,!0)},i.href=e,++t>=n[Yo]&&(t=0),Gl=t,i}function Yl(e,t){var n=Ql(e,t)||"";if(n){var i=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i[Yo]>3&&ae(i[2])&&i[2][Yo]>0)return i[2]+(i[3]||"")}return n}function Ql(e,t){var n=null;if(e){var i=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i[Yo]>2&&ae(i[2])&&i[2][Yo]>0&&(n=i[2]||"",t&&i[Yo]>2)){var r=(i[1]||"")[Qo](),a=i[3]||"";("http"===r&&":80"===a||"https"===r&&":443"===a)&&(a=""),n+=a}}return n}var Jl=[$s+Zs,"https://breeze.aimon.applicationinsights.io"+Zs,"https://dc-int.services.visualstudio.com"+Zs];function $l(e){return-1!==Rt(Jl,e[Qo]())}function Zl(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[hs])for(var i=0;i0}function eu(e){if(e){var t=function(e,t){if(e)for(var n=e[Ko](","),i=0;i0)return t}return Kt()}function nu(e,t){var n=null;return 0===e||0===t||ie(e)||ie(t)||(n=t-e),n}function iu(e,t){var n=e||{};return{getName:function(){return n[ts]},setName:function(e){t&&t.setName(e),n[ts]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),Vl(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),ql(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var ru,au,ou=function(){function e(e,t,n,i,r,a,o,s,l,u,c,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var h=this;h.ver=2,h.id=t,h[As]=ml(r),h.success=a,h.resultCode=o+"",h.type=il(e,l);var p=function(e,t,n,i){var r,a=i,o=i;if(t&&t[Yo]>0){var s=Kl(t);if(r=s.host,!a)if(null!=s[ds]){var l=0===s.pathname[Yo]?"/":s[ds];"/"!==l.charAt(0)&&(l="/"+l),o=s[ds],a=il(e,n?n+" "+l:l)}else a=il(e,t)}else r=i,a=i;return{target:r,name:a,data:o}}(e,n,s,i);h.data=rl(e,i)||p.data,h.target=il(e,p.target),u&&(h.target="".concat(h.target," | ").concat(u)),h[ts]=il(e,p[ts]),h[ms]=ol(e,c),h[gs]=sl(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function su(e){var t=null;if(oe(Event))t=new Event(e);else{var n=ft();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}function lu(e,t,n){return!e&&ie(e)?t:de(e)?e:"true"===Ee(e)[pi]()}function uu(e){return{mrg:!0,v:e}}function cu(e,t){return{set:e,v:t}}function du(e,t,n){return{fb:n,isVal:e,v:t}}function hu(e,t){return{fb:t,set:lu,v:!!e}}var pu,fu="toGMTString",mu="toUTCString",gu="cookie",vu="expires",yu="isCookieUseDisabled",bu="disableCookiesUsage",_u="_ckMgr",Tu=null,Su=null,wu=null,ku={},Cu={},Eu=((ru={cookieCfg:uu((au={},au[Qr]={fb:"cookieDomain",dfVal:ia},au.path={fb:"cookiePath",dfVal:ia},au.enabled=Dr,au.ignoreCookies=Dr,au.blockedCookies=Dr,au)),cookieDomain:Dr,cookiePath:Dr})[bu]=Dr,ru);function ju(){var e,t;!pu&&(e=function(){return ft()},t={},!nt&&ot(),t.b=nt.lzy,Te(t,"v",{configurable:!0,get:function(){var n=e();return nt.lzy||Te(t,"v",{value:n}),t.b=nt.lzy,n}}),pu=t)}function xu(e){return!e||e.isEnabled()}function Au(e,t){return!!(t&&e&&le(e.ignoreCookies))&&-1!==Rt(e.ignoreCookies,t)}function Iu(e,t){var n=t[Hi];if(ie(n)){var i=void 0;ne(e[yu])||(i=!e[yu]),ne(e[bu])||(i=!e[bu]),n=i}return n}function Pu(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t.cookieCfg;n=i&&i[_u]?i[_u]:Du(t)}return n||(n=function(e,t){var n=Du[_u]||Cu[_u];return n||(n=Du[_u]=Du(e,t),Cu[_u]=n),n}(t,(e||{})[Si])),n}function Du(e,t){var n,i,r,a,o,s,l,u,c;e=jo(e||Cu,null,t).cfg,o=xo(e,(function(t){t[_i](t.cfg,Eu),i=t.ref(t.cfg,"cookieCfg"),r=i[Jr]||"/",a=i[Qr],s=!1!==Iu(e,i),l=i.getCookie||Ru,u=i.setCookie||Uu,c=i.delCookie||Uu}),t);var d=((n={isEnabled:function(){var n=!1!==Iu(e,i)&&s&&Lu(t),r=Cu[_u];return n&&r&&d!==r&&(n=xu(r)),n},setEnabled:function(e){s=!1!==e,i[Hi]=e},set:function(e,t,n,o,s){var l,c=!1;if(xu(d)&&!function(e,t){return!!(t&&e&&le(e.blockedCookies)&&-1!==Rt(e.blockedCookies,t))||Au(e,t)}(i,e)){var h={},p=en(t||Lr),f=yn(p,";");if(-1!==f&&(p=en(Ze(t,f)),h=Ou(Qe(t,f+1))),la(h,Qr,o||a,fe,ne),!ie(n)){var m=Ba();if(ne(h[vu])){var g=Kt()+1e3*n;if(g>0){var v=new Date;v.setTime(g),la(h,vu,Mu(v,m?fu:mu)||Mu(v,m?fu:mu)||Lr,fe)}}m||la(h,"max-age",Lr+n,null,ne)}var y=Na();y&&"https:"===y[or]&&(la(h,"secure",null,null,ne),null===Su&&(l=(_t()||{})[sr],Su=!(ae(l)&&(aa(l,"CPU iPhone OS 12")||aa(l,"iPad; CPU OS 12")||aa(l,"Macintosh; Intel Mac OS X 10_14")&&aa(l,"Version/")&&aa(l,"Safari")||aa(l,"Macintosh; Intel Mac OS X 10_14")&&mn(l,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||aa(l,"Chrome/5")||aa(l,"Chrome/6")||aa(l,"UnrealEngine")&&!aa(l,"Chrome")||aa(l,"UCBrowser/12")||aa(l,"UCBrowser/11")))),Su&&la(h,"SameSite","None",null,ne)),la(h,Jr,s||r,null,ne),u(e,Nu(p,h)),c=!0}return c},get:function(e){var t=Lr;return xu(d)&&!Au(i,e)&&(t=l(e)),t},del:function(e,t){var n=!1;return xu(d)&&(n=d.purge(e,t)),n},purge:function(e,n){var i,r=!1;if(Lu(t)){var a=((i={})[Jr]=n||"/",i[vu]="Thu, 01 Jan 1970 00:00:01 GMT",i);Ba()||(a["max-age"]="0"),c(e,Nu(Lr,a)),r=!0}return r}})[Gi]=function(e){o&&o.rm(),o=null},n);return d[_u]=d,d}function Lu(e){if(null===Tu){Tu=!1,!pu&&ju();try{var t=pu.v||{};Tu=void 0!==t[gu]}catch(t){Ho(e,2,68,"Cannot access document.cookie - "+sa(t),{exception:xe(t)})}}return Tu}function Ou(e){var t={};return e&&e[mi]&&Nt(en(e)[lr](";"),(function(e){if(e=en(e||Lr)){var n=yn(e,"=");-1===n?t[e]=null:t[en(Ze(e,n))]=en(Qe(e,n+1))}})),t}function Mu(e,t){return oe(e[t])?e[t]():null}function Nu(e,t){var n=e||Lr;return be(t,(function(e,t){n+="; "+e+(ie(t)?Lr:"="+t)})),n}function Ru(e){var t=Lr;if(!pu&&ju(),pu.v){var n=pu.v[gu]||Lr;wu!==n&&(ku=Ou(n),wu=n),t=en(ku[e]||Lr)}return t}function Uu(e,t){!pu&&ju(),pu.v&&(pu.v[gu]=e+"="+t)}var Bu="on",Fu="attachEvent",Vu="addEventListener",qu="detachEvent",zu="removeEventListener",Hu="events",Wu="visibilitychange",Gu="pagehide",Xu="unload",Ku="beforeunload",Yu=ro("aiEvtPageHide"),Qu=(ro("aiEvtPageShow"),/\.[\.]+/g),Ju=/[\.]+$/,$u=1,Zu=ao("events"),ec=/^([^.]*)(?:\.(.+)|)/;function tc(e){return e&&e[cr]?e[cr](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Lr):e}function nc(e,t){var n;if(t){var i=Lr;le(t)?(i=Lr,Nt(t,(function(e){(e=tc(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=tc(t),i&&("."!==i[0]&&(i="."+i),e=(e||Lr)+i)}var r=ec.exec(e||Lr)||[];return(n={})[hr]=r[1],n.ns=(r[2]||Lr).replace(Qu,".").replace(Ju,Lr)[lr](".").sort().join("."),n}function ic(e,t,n){void 0===n&&(n=!0);var i=Zu.get(e,Hu,{},n),r=i[t];return r||(r=i[t]=[]),r}function rc(e,t,n,i){e&&t&&t[hr]&&(e[zu]?e[zu](t[hr],n,i):e[qu]&&e[qu](Bu+t[hr],n))}function ac(e,t,n,i){for(var r=t[mi];r--;){var a=t[r];a&&(n.ns&&n.ns!==a.evtName.ns||i&&!i(a)||(rc(e,a.evtName,a[pr],a.capture),t[Ci](r,1)))}}function oc(e,t){return t?nc("xx",le(t)?[e].concat(t):[e,t]).ns[lr]("."):e}function sc(e,t,n,i,r){var a;void 0===r&&(r=!1);var o=!1;if(e)try{var s=nc(t,i);if(o=function(e,t,n,i){var r=!1;return e&&t&&t[hr]&&n&&(e[Vu]?(e[Vu](t[hr],n,i),r=!0):e[Fu]&&(e[Fu](Bu+t[hr],n),r=!0)),r}(e,s,n,r),o&&Zu.accept(e)){var l=((a={guid:$u++,evtName:s})[pr]=n,a.capture=r,a);ic(e,s.type)[ki](l)}}catch(e){}return o}function lc(e,t,n,i,r){if(void 0===r&&(r=!1),e)try{var a=nc(t,i),o=!1;!function(e,t,n){if(t[hr])ac(e,ic(e,t[hr]),t,n);else{var i=Zu.get(e,Hu,{});be(i,(function(i,r){ac(e,r,t,n)})),0===Me(i)[mi]&&Zu.kill(e,Hu)}}(e,a,(function(e){return!((!a.ns||n)&&e[pr]!==n||(o=!0,0))})),o||rc(e,a,n,r)}catch(e){}}function uc(e,t,n,i){var r=!1;return t&&e&&e[mi]>0&&Nt(e,(function(e){e&&(n&&-1!==Rt(n,e)||(r=function(e,t,n){var i=!1,r=bt();r&&(i=sc(r,e,t,n),i=sc(r.body,e,t,n)||i);var a=ft();return a&&(i=sc(a,e,t,n)||i),i}(e,t,i)||r))})),r}function cc(e,t,n){e&&le(e)&&Nt(e,(function(e){e&&function(e,t,n){var i=bt();i&&(lc(i,e,t,n),lc(i.body,e,t,n));var r=ft();r&&lc(r,e,t,n)}(e,t,n)}))}function dc(e,t,n){var i=oc(Yu,n),r=uc([Gu],e,t,i);return t&&-1!==Rt(t,Wu)||(r=uc([Wu],(function(t){var n=ft();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,i)||r),!r&&t&&(r=dc(e,null,n)),r}var hc="ctx",pc="ParentContextKey",fc="ChildrenContextKey",mc=function(){function e(t,n,i){var r,a=this;a.start=Kt(),a[Ui]=t,a[er]=i,a[vr]=function(){return!1},oe(n)&&we(a,"payload",{g:function(){return!r&&oe(n)&&(r=n(),n=null),r}}),a[br]=function(t){return t?t===e[pc]||t===e[fc]?a[t]:(a[hc]||{})[t]:null},a[_r]=function(t,n){t&&(t===e[pc]?(a[t]||(a[vr]=function(){return!0}),a[t]=n):t===e[fc]?a[t]=n:(a[hc]=a[hc]||{})[t]=n)},a[Tr]=function(){var t=0,n=a[br](e[fc]);if(le(n))for(var i=0;i0&&(Nt(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Ho(n[Si],2,73,"Unexpected Exception during onComplete - "+xe(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return Vo(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var i=s(e,!0);return n&&be(n,(function(e,n){if(ie(i[e])){var r=t.cfg[e];!r&&ie(r)||(i[e]=r)}uo(t,i,e,n)})),t[_i](i,n)},getConfig:function(e,n,i){void 0===i&&(i=!1);var r,a=s(e,!1),o=t.cfg;return!a||!a[n]&&ie(a[n])?!o[n]&&ie(o[n])||(r=o[n]):r=a[n],r||!ie(r)?r:i},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(var t;t=o._next();){var n=t[Ri]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i0){var o=null;Nt(e,(function(e){if(a||i!==e||(a=!0),a&&e&&oe(e[Fr])){var s=function(e,t,n){var i,r=null,a=oe(e[Fr]),o=oe(e[ar]),s={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:function(i,u){l(u=u||function(){var i;return e&&oe(e[Cc])&&(i=e[Cc]()),i||(i=xc(s,t,n)),i}(),(function(t){if(!e||!a)return!1;var n=_c(e);return!n[Ji]&&!n[Rr]&&(o&&e[ar](r),e[Fr](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||u[Vi](i)},unload:function(t,n){l(t,(function(){var i=!1;if(e){var r=_c(e),a=e[Mr]||r[Mr];!e||a&&a!==t.core()||r[Ji]||(r[Mr]=null,r[Ji]=!0,r[Di]=!1,e[Ji]&&!0===e[Ji](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[er])||t[Vi](n)},update:function(t,n){l(t,(function(){var i=!1;if(e){var r=_c(e),a=e[Mr]||r[Mr];!e||a&&a!==t.core()||r[Ji]||e[ir]&&!0===e[ir](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[Vi](n)},_id:i=e?e[Ai]+"-"+e[Vr]+"-"+Ec++:"Unknown-0-"+Ec++,_setNext:function(e){r=e}};function l(t,n,a,o,s){var l=!1,u=e?e[Ai]:wc,c=t[kc];return c||(c=t[kc]={}),t.setNext(r),e&&yc(t[Mr](),(function(){return u+":"+a}),(function(){c[i]=!0;try{var e=r?r._id:Lr;e&&(c[e]=!1),l=n(t)}catch(e){var o=!r||c[r._id];o&&(l=!0),r&&o||Ho(t[tr](),1,73,"Plugin ["+u+"] failed during "+a+" - "+xe(e)+", run flags: "+xe(c))}}),o,s),l}return Re(s)}(e,t,n);r||(r=s),o&&o._setNext(s),o=s}}))}return i&&!r?Pc([i],t,n):r}var Dc,Lc="_aiHooks",Oc=["req","rsp","hkErr","fnErr"];function Mc(e,t){if(e)for(var n=0;n=0&&r<=2&&Mc(e,(function(e,a){var o=e.cbks,s=o[Oc[r]];if(s){t.ctx=function(){return i[a]=i[a]||{}};try{s[wi](t.inst,n)}catch(e){var l=t.err;try{var u=o[Oc[2]];u&&(t.err=e,u[wi](t.inst,n))}catch(e){}finally{t.err=l}}}}))}function Rc(e,t,n,i){var r=null;return e&&(ge(e,t)?r=e:n&&(r=Rc(na(e),t,i,!1))),r}function Uc(e,t,n,i){var r=n&&n[Lc];if(!r){var a=function(e){return function(){var t,n=arguments,i=e.h,r=((t={})[Ui]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,o=s([r],n)},t),a=[],o=s([r],n);function s(e,t){return Mc(t,(function(t){e[ki](t)})),e}r.evt=ht("event"),Nc(i,r,o,a,0);var l=e.f;if(l)try{r.rslt=l[wi](this,n)}catch(e){throw r.err=e,Nc(i,r,o,a,3),e}return Nc(i,r,o,a,1),r.rslt}}(r={i:0,n:t,f:n,h:[]});a[Lc]=r,e[t]=a}var o={id:r.i,cbks:i,rm:function(){var e=this.id;Mc(r.h,(function(t,n){if(t.id===e)return r.h[Ci](n,1),1}))}};return r.i++,r.h[ki](o),o}function Bc(e,t,n,i,r){if(void 0===i&&(i=!0),e&&t&&n){var a=Rc(e,t,i,r);if(a){var o=a[t];if(typeof o===ni)return Uc(a,t,o,n)}}return null}function Fc(e,t,n,i,r){if(e&&t&&n){var a=Rc(e,t,i,r)||e;if(a)return Uc(a,t,a[t],n)}return null}function Vc(){var e=[];return{add:function(t){t&&e[ki](t)},run:function(t,n){Nt(e,(function(e){try{e(t,n)}catch(e){Ho(t[tr](),2,73,"Unexpected error calling unload handler - "+xe(e))}})),e=[]}}}function qc(){var e=[];return{run:function(t){var n=e;e=[],Nt(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){Ho(t,2,73,"Unloading:"+xe(e))}}))},add:function(t){t&&Mt(e,t)}}}var zc="getPlugin",Hc=((Dc={})[Ur]={isVal:ia,v:{}},Dc),Wc=function(){function e(){var t,n,i,r,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||xc(null,{},o[Mr]);t=i&&i[zc]?r[Qi](null,i[zc]):r[Qi](null,i)}return t}function l(e,t,r){jo(e,Hc,Vo(t)),!r&&t&&(r=t[qi]()[rr]());var a=i;i&&i[zc]&&(a=i[zc]()),o[Mr]=t,n=xc(r,e,t,a)}function u(){t=!1,o[Mr]=null,n=null,i=null,a=qc(),r=Vc()}u(),ti(e,o,(function(e){e[xi]=function(e,n,i,r){l(e,n,r),t=!0},e[Ji]=function(t,n){var o,s=e[Mr];if(s&&(!t||s===t[Mr]())){var l,c=!1,d=t||Ac(null,s,i&&i[zc]?i[zc]():i),h=n||((o={reason:0})[er]=!1,o);return e[nr]&&!0===e[nr](d,h,p)?l=!0:p(),l}function p(){c||(c=!0,r.run(d,n),a.run(d[tr]()),!0===l&&d[Vi](h),u())}},e[ir]=function(t,n){var r=e[Mr];if(r&&(!t||r===t[Mr]())){var a,o=!1,s=t||Ic(null,r,i&&i[zc]?i[zc]():i),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,u,c)?a=!0:c(),a}function c(){o||(o=!0,l(s.getCfg(),s.core(),s[rr]()))}},da(e,"_addUnloadCb",(function(){return r}),"add"),da(e,"_addHook",(function(){return a}),"add"),we(e,"_unloadHooks",{g:function(){return a}})})),o[tr]=function(e){return s(e)[tr]()},o[Di]=function(){return t},o.setInitialized=function(e){t=e},o[ar]=function(e){i=e},o[Vi]=function(e,t){t?t[Vi](e):i&&oe(i[Fr])&&i[Fr](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}(),Gc="toString",Xc="isStorageUseDisabled",Kc="_addHook",Yc="core",Qc="dataType",Jc="envelopeType",$c="diagLog",Zc="track",ed="trackPageView",td="trackPreviousPageVisit",nd="sendPageViewInternal",id="startTime",rd="properties",ad="duration",od="sendPageViewPerformanceInternal",sd="populatePageViewPerformanceEvent",ld="href",ud="sendExceptionInternal",cd="exception",dd="error",hd="_onerror",pd="errorSrc",fd="lineNumber",md="columnNumber",gd="message",vd="CreateAutoException",yd="addTelemetryInitializer",bd="autoTrackPageVisitTime",_d="isBrowserLinkTrackingEnabled",Td="length",Sd="enableAutoRouteTracking",wd="enableUnhandledPromiseRejectionTracking",kd="autoUnhandledPromiseInstrumented",Cd="getEntriesByType",Ed="isPerformanceTimingSupported",jd="getPerformanceTiming",xd="navigationStart",Ad="shouldCollectDuration",Id="isPerformanceTimingDataReady",Pd="responseStart",Dd="loadEventEnd",Ld="responseEnd",Od="connectEnd",Md="pageVisitStartTime",Nd=function(){function e(t,n,i,r){ti(e,this,(function(e){var a,o=null,s=[],l=!1,u=!1;function c(e){i&&i.flush(e,(function(){}))}function d(){o||(o=kn((function(){o=null;var e=s.slice(0),t=!1;s=[],Nt(e,(function(e){e()?t=!0:s.push(e)})),s[Td]>0&&d(),t&&c(!0)}),100))}function h(e){s.push(e),d()}i&&(a=i.logger),e[ed]=function(e,i){var o=e.name;if(ie(o)||"string"!=typeof o){var s=ft();o=e.name=s&&s.title||""}var d=e.uri;if(ie(d)||"string"!=typeof d){var p=Na();d=e.uri=p&&p[ld]||""}if(!u){var f=hn(),m=f&&f[Cd]&&f[Cd]("navigation");if(m&&m[0]&&!ne(f.timeOrigin)){var g=m[0].loadEventStart;e[id]=new Date(f.timeOrigin+g)}else{var v=(i||e[rd]||{})[ad]||0;e[id]=new Date((new Date).getTime()-v)}u=!0}if(!r[Ed]())return t[nd](e,i),c(!0),void(wt()||Ho(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var y,b,_=!1,T=r[jd]()[xd];T>0&&(y=nu(T,+new Date),r[Ad](y)||(y=void 0)),ie(i)||ie(i[ad])||(b=i[ad]),!n&&isNaN(b)||(isNaN(b)&&(i||(i={}),i[ad]=y),t[nd](e,i),c(!0),_=!0),i||(i={}),h((function(){var n=!1;try{if(r[Id]()){n=!0;var s={name:o,uri:d};r[sd](s),s.isValid||_?(_||(i[ad]=s.durationMs,t[nd](e,i)),l||(t[od](s,i),l=!0)):(i[ad]=y,t[nd](e,i))}else T>0&&nu(T,+new Date)>6e4&&(n=!0,_||(i[ad]=6e4,t[nd](e,i)))}catch(e){Ho(a,1,38,"trackPageView failed on page load calculation: "+sa(e),{exception:xe(e)})}return n}))},e.teardown=function(e,t){if(o){o.cancel(),o=null;var n=s.slice(0);s=[],Nt(n,(function(e){e()}))}}}))}return e.__ieDyn=1,e}(),Rd=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Ud(){var e=hn();return e&&!!e.timing}function Bd(){var e=hn(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[xd]>0&&t[Pd]>0&&t.requestStart>0&&t[Dd]>0&&t[Ld]>0&&t[Od]>0&&t.domLoading>0}function Fd(){return Ud()?hn().timing:null}function Vd(){for(var e=[],t=0;t=36e5)return!1;return!0}var qd,zd=function(){function e(t){var n=Vo(t);ti(e,this,(function(e){e[sd]=function(t){t.isValid=!1;var i,r=(i=hn())&&i.getEntriesByType&&i.getEntriesByType("navigation")[Td]>0?hn()[Cd]("navigation")[0]:null,a=Fd(),o=0,s=0,l=0,u=0,c=0;(r||a)&&(r?(o=r[ad],s=0===r[id]?r[Od]:nu(r[id],r[Od]),l=nu(r.requestStart,r[Pd]),u=nu(r[Pd],r[Ld]),c=nu(r.responseEnd,r[Dd])):(o=nu(a[xd],a[Dd]),s=nu(a[xd],a[Od]),l=nu(a.requestStart,a[Pd]),u=nu(a[Pd],a[Ld]),c=nu(a.responseEnd,a[Dd])),0===o?Ho(n,2,10,"error calculating page view performance.",{total:o,network:s,request:l,response:u,dom:c}):e[Ad](o,s,l,u,c)?o0&&e<=100}),100),qd[Xc]=hu(),qd[_d]=hu(),qd[Sd]=hu(),qd.namePrefix={isVal:ae,v:Ee(Lr)},qd.enableDebug=hu(),qd.disableFlushOnBeforeUnload=hu(),qd.disableFlushOnUnload=hu(!1,"disableFlushOnBeforeUnload"),qd.expCfg=uu({inclScripts:!1}),qd));function Yd(e,t){return(e=e||t)<6e4&&(e=6e4),+e}var Qd,Jd,$d,Zd=function(e){function t(){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,b,_,T=e.call(this)||this;return T.identifier=Xs,T.priority=180,T.autoRoutePVDelay=500,ti(t,T,(function(e,t){var T=t[Kc];function S(t,n,i,r,a){e[$c]().throwInternal(t,n,i,r,a)}function w(){n=null,i=null,r=null,a=null,o=null,s=null,l=!1,u=!1,c=!1,d=!1,h=!1,p=!1,f=!1,m=!1,v=!1;var t=Na(!0);y=t&&t[ld]||"",b=null,_=null,g=null,we(e,"config",{g:function(){return g}})}w(),e.getCookieMgr=function(){return Pu(e[Yc])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var i=ul(t,cl[Qc],cl[Jc],e[$c](),n);e[Yc][Zc](i)}catch(e){S(2,39,"trackTrace failed, trace will not be collected: "+sa(e),{exception:xe(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){S(1,29,"startTrackEvent failed, event will not be collected: "+sa(e),{exception:xe(e)})}},e.stopTrackEvent=function(e,t,i){try{n.stop(e,void 0,t,i)}catch(e){S(1,30,"stopTrackEvent failed, event will not be collected: "+sa(e),{exception:xe(e)})}},e.trackTrace=function(t,n){try{var i=ul(t,dl[Qc],dl[Jc],e[$c](),n);e[Yc][Zc](i)}catch(e){S(2,39,"trackTrace failed, trace will not be collected: "+sa(e),{exception:xe(e)})}},e.trackMetric=function(t,n){try{var i=ul(t,pl[Qc],pl[Jc],e[$c](),n);e[Yc][Zc](i)}catch(e){S(1,36,"trackMetric failed, metric will not be collected: "+sa(e),{exception:xe(e)})}},e[ed]=function(e,t){try{var n=e||{};r[ed](n,ui(ui(ui({},n.properties),n.measurements),t)),v&&o[td](n.name,n.uri)}catch(e){S(1,37,"trackPageView failed, page view will not be collected: "+sa(e),{exception:xe(e)})}},e[nd]=function(t,n,i){var r=ft();if(r&&(t.refUri=void 0===t.refUri?r.referrer:t.refUri),ie(t[id])){var a=(n||t[rd]||{})[ad]||0;t[id]=new Date((new Date).getTime()-a)}var o=ul(t,gl[Qc],gl[Jc],e[$c](),n,i);e[Yc][Zc](o)},e[od]=function(t,n,i){var r=ul(t,vl[Qc],vl[Jc],e[$c](),n,i);e[Yc][Zc](r)},e.trackPageViewPerformance=function(t,n){var i=t||{};try{a[sd](i),e[od](i,n)}catch(e){S(1,37,"trackPageViewPerformance failed, page view will not be collected: "+sa(e),{exception:xe(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=ft();e=t&&t.title||""}i.start(e)}catch(e){S(1,31,"startTrackPage failed, page view may not be collected: "+sa(e),{exception:xe(e)})}},e.stopTrackPage=function(e,t,n,r){try{if("string"!=typeof e){var a=ft();e=a&&a.title||""}if("string"!=typeof t){var s=Na();t=s&&s[ld]||""}i.stop(e,t,n,r),v&&o[td](e,t)}catch(e){S(1,32,"stopTrackPage failed, page view will not be collected: "+sa(e),{exception:xe(e)})}},e[ud]=function(t,n,i){var r,a=t&&(t[cd]||t[dd])||he(t)&&t||{name:t&&typeof t,message:t||el};t=t||{};var o=new Pl(e[$c](),a,t[rd]||n,t.measurements,t.severityLevel,t.id).toInterface(),s=ft();if(s&&(null===(r=e.config.expCfg)||void 0===r?void 0:r.inclScripts)){var l=function(e){var t=e.getElementsByTagName("script"),n=[];return Nt(t,(function(e){var t=e[Pr]("src");if(t){var i=e[Pr]("crossorigin"),r=!0===e.hasAttribute("async"),a=!0===e.hasAttribute("defer"),o=e[Pr]("referrerpolicy"),s={url:t};i&&(s.crossOrigin=i),r&&(s.async=r),a&&(s.defer=a),o&&(s.referrerPolicy=o),n[ki](s)}})),n}(s);o[rd].exceptionScripts=JSON.stringify(l)}var u=ul(o,Pl[Qc],Pl[Jc],e[$c](),n,i);e[Yc][Zc](u)},e.trackException=function(t,n){t&&!t[cd]&&t[dd]&&(t[cd]=t[dd]);try{e[ud](t,n)}catch(e){S(1,35,"trackException failed, exception will not be collected: "+sa(e),{exception:xe(e)})}},e[hd]=function(t){var n=t&&t[dd],i=t&&t.evt;try{if(!i){var r=bt();r&&(i=r.event)}var a=t&&t.url||(ft()||{}).URL,o=t[pd]||"window.onerror@"+a+":"+(t[fd]||0)+":"+(t[md]||0),s={errorSrc:o,url:a,lineNumber:t[fd]||0,columnNumber:t[md]||0,message:t[gd]};!function(e,t,n,i,r){return!r&&ae(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[dd])?(t[pd]||(t[pd]=o),e.trackException({exception:t,severityLevel:3},s)):function(t,n){var i=ul(t,Pl[Qc],Pl[Jc],e[$c](),n);e[Yc][Zc](i)}(Pl[vd]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t[fd]||0,t[md]||0,n,i,null,o),s)}catch(e){var l=n?n.name+", "+n[gd]:"null";S(1,11,"_onError threw exception while logging error, error will not be collected: "+sa(e),{exception:xe(e),errorString:l})}},e[yd]=function(t){if(e[Yc])return e[Yc][yd](t);s||(s=[]),s.push(t)},e.initialize=function(S,w,k,C){if(!e.isInitialized()){ie(w)&&Ae("Error initializing"),t.initialize(S,w,k,C);try{_=oc(ro(e.identifier),w.evtNamespace&&w.evtNamespace()),s&&(Nt(s,(function(e){w[yd](e)})),s=null),function(t){var n=e.identifier,i=e[Yc];e[Kc](xo(t,(function(){var r,a=xc(null,t,i);g=a.getExtCfg(n,Kd),v=g[bd],t.storagePrefix&&Rs(t.storagePrefix),ne((r=g)[Xc])||(r[Xc]?(Ps=!1,Ds=!1):(Ps=Us(!0),Ds=Vs(!0))),l=g[_d],function(){if(!u&&l){var t=["/browserLinkSignalR/","/__browserLink/"];e[Kc](e[yd]((function(e){if(l&&e.baseType===ou[Qc]){var n=e.baseData;if(n)for(var i=0;i=0)return!1}return!0}))),u=!0}}()})))}(S),a=new zd(e[Yc]),r=new Nd(e,g.overridePageViewDuration,e[Yc],a),o=new Hd(e[$c](),(function(t,n,i){return function(t,n,i){var r={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:i,max:i,min:i,sampleCount:1},r)}(t,n,i)})),(n=new Gd(e[$c](),"trackEvent")).action=function(t,n,i,r,a){r||(r={}),a||(a={}),r.duration=i[Gc](),e.trackEvent({name:t,properties:r,measurements:a})},(i=new Gd(e[$c](),"trackPageView")).action=function(t,n,i,r,a){ie(r)&&(r={}),r.duration=i[Gc]();var o={name:t,uri:n,properties:r,measurements:a};e[nd](o,r)},mt()&&(E=bt(),j=Na(!0),e[Kc](xo(g,(function(){(h=g.disableExceptionTracking)||p||g.autoExceptionInstrumented||(T(Fc(E,"onerror",{ns:_,rsp:function(t,n,i,r,a,o){h||!0===t.rslt||e[hd](Pl[vd](n,i,r,a,o,t.evt))}},!1)),p=!0)}))),function(t,n){e[Kc](xo(g,(function(){f=!0===g[wd],p=p||g[kd],f&&!m&&(T(Fc(t,"onunhandledrejection",{ns:_,rsp:function(t,i){f&&!0!==t.rslt&&e[hd](Pl[vd](function(e){if(e&&e.reason){var t=e.reason;return!ae(t)&&oe(t[Gc])?t[Gc]():xe(t)}return e||""}(i),n?n[ld]:"",0,0,i,t.evt))}},!1)),g[kd]=m=!0)})))}(E,j),function(){var t=bt(),n=Na(!0);e[Kc](xo(g,(function(){if(c=!0===g[Sd],t&&c&&!d&&Tt()){var i=Tt();oe(i.pushState)&&oe(i.replaceState)&&typeof Event!==ri&&function(t,n,i){if(!d){var r=g.namePrefix||"";T(Fc(n,"pushState",{ns:_,rsp:function(){c&&(Xd(t,su(r+"pushState")),Xd(t,su(r+"locationchange")))}},!0)),T(Fc(n,"replaceState",{ns:_,rsp:function(){c&&(Xd(t,su(r+"replaceState")),Xd(t,su(r+"locationchange")))}},!0)),sc(t,r+"popstate",(function(){c&&Xd(t,su(r+"locationchange"))}),_),sc(t,r+"locationchange",(function(){if(b?(y=b,b=i&&i[ld]||""):b=i&&i[ld]||"",c){var t=function(){var t=null;if(e[Yc]&&e[Yc].getTraceCtx&&(t=e[Yc].getTraceCtx(!1)),!t){var n=e[Yc].getPlugin(Ws);if(n){var i=n.plugin.context;i&&(t=iu(i.telemetryTrace))}}return t}();if(t){t.setTraceId(Ol());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName(il(e[$c](),n))}kn(function(t){e[ed]({refUri:t,properties:{duration:0}})}.bind(e,y),e.autoRoutePVDelay)}}),_),d=!0}}(t,i,n)}})))}())}catch(t){throw e.setInitialized(!1),t}var E,j}},e._doTeardown=function(e,t){r&&r.teardown(e,t),lc(window,null,null,_),w()},we(e,"_pageViewManager",{g:function(){return r}}),we(e,"_pageViewPerformanceManager",{g:function(){return a}}),we(e,"_pageVisitTimeManager",{g:function(){return o}}),we(e,"_evtNamespace",{g:function(){return"."+_}})})),T}return di(t,e),t.Version="3.3.1",t}(Wc),eh="Promise",th="rejected";function nh(e,t){return ih(e,(function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e}),(function(e){return t?t({status:th,rejected:!0,reason:e}):e}))}function ih(e,t,n,i){var r=e;try{if(pe(e))(t||n)&&(r=e.then(t,n));else try{t&&(r=t(e))}catch(e){if(!n)throw e;r=n(e)}}finally{i&&function(e,t){var n=e;t&&(pe(e)?n=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t())}(r,i)}return r}var rh,ah=!1,oh=["pending","resolving","resolved",th],sh="dispatchEvent";function lh(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var uh,ch,dh,hh,ph="unhandledRejection",fh=ph.toLowerCase(),mh=[],gh=0,vh=10;function yh(e){return oe(e)?e.toString():xe(e)}function bh(e,t,n){var i,r,a=Bt(arguments,3),o=0,s=!1,l=[],u=gh++,c=mh.length>0?mh[mh.length-1]:void 0,d=!1,h=null;function p(t,n){try{return mh.push(u),d=!0,h&&h.cancel(),h=null,e((function(e,r){l.push((function(){try{var a=2===o?t:n,s=ne(a)?i:oe(a)?a(i):a;pe(s)?s.then(e,r):a?e(s):3===o?r(s):e(s)}catch(e){r(e)}})),s&&m()}),a)}finally{mh.pop()}}function f(){return oh[o]}function m(){if(l.length>0){var e=l.slice();l=[],d=!0,h&&h.cancel(),h=null,t(e)}}function g(e,t){return function(n){if(o===t){if(2===e&&pe(n))return o=1,void n.then(g(2,1),g(3,1));o=e,s=!0,i=n,m(),d||3!==e||h||(h=kn(v,vh))}}}function v(){if(!d)if(d=!0,St())process.emit(ph,i,r);else{var e=bt()||dt();!uh&&(uh=st($(ht,[eh+"RejectionEvent"]).v)),function(e,t,n,i){var r=ft();!rh&&(rh=st(!!$(lh,[r]).v));var a=rh.v?r.createEvent("Event"):i?new Event(t):{};if(n&&n(a),rh.v&&a.initEvent(t,!1,!0),a&&e[sh])e[sh](a);else{var o=e["on"+t];if(o)o(a);else{var s=ht("console");s&&(s.error||s.log)(t,xe(a))}}}(e,fh,(function(e){return we(e,"promise",{g:function(){return r}}),e.reason=i,e}),!!uh.v)}}return Te(r={then:p,catch:function(e){return p(void 0,e)},finally:function(e){var t=e,n=e;return oe(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),p(t,n)}},"state",{get:f}),ah&&function(e,t){Jd=Jd||{toString:function(){return"[[PromiseResult]]"}},$d=$d||{toString:function(){return"[[PromiseIsHandled]]"}};var n={};n[Qd=Qd||{toString:function(){return"[[PromiseState]]"}}]={get:t},n[Jd]={get:function(){return te(i)}},n[$d]={get:function(){return d}},Se(e,n)}(r,f),Et()&&(r[xt(11)]="IPromise"),r.toString=function(){return"IPromise"+(ah?"["+u+(ne(c)?"":":"+c)+"]":"")+" "+f()+(s?" - "+yh(i):"")},function(){oe(n)||Ie(eh+": executor is not a function - "+yh(n));var e=g(3,0);try{n.call(r,g(2,0),e)}catch(t){e(t)}}(),r}function _h(e){return function(t){var n=Bt(arguments,1);return e((function(e,n){try{var i=[],r=1;Lt(t,(function(t,a){t&&(r++,ih(t,(function(t){i[a]=t,0==--r&&e(i)}),n))})),0==--r&&e(i)}catch(e){n(e)}}),n)}}function Th(e,t){return bh(Th,function(e){var t=ce(e)?e:0;return function(e){kn((function(){!function(e){Nt(e,(function(e){try{e()}catch(e){}}))}(e)}),t)}}(t),e,t)}function Sh(e,t){!ch&&(ch=st($(ht,[eh]).v||null));var n=ch.v;if(!n)return Th(e);oe(e)||Ie(eh+": executor is not a function - "+xe(e));var i=0,r=new n((function(t,n){e((function(e){i=2,t(e)}),(function(e){i=3,n(e)}))}));return Te(r,"state",{get:function(){return oh[i]}}),r}function wh(e,t){return!dh&&(dh=st(Sh)),dh.v.call(this,e,t)}var kh=_h(wh);xt(11);var Ch="featureOptIn",Eh="onCfgChangeReceive",jh="nonOverrideConfigs",xh="scheduleFetchTimeout";function Ah(e,t,n,i){try{var r=n>i;r&&(e=null);var a=0==n?function(e,t,n,i,r,a,o){return ln(e||{},J[q](arguments))}({},e):e;return a&&t&&!r&&be(a,(function(e){var r=t[e];r&&(se(a[e])&&se(r)?a[e]=Ah(a[e],r,++n,i):delete a[e])})),a}catch(e){}return e}var Ih,Ph="featureOptIn.",Dh=".mode",Lh=".onCfg",Oh=".offCfg";var Mh=void 0,Nh=Ne(((Ih={syncMode:1,blkCdnCfg:Mh,customEvtName:Mh,cfgUrl:Mh,overrideSyncFn:Mh,overrideFetchFn:Mh})[Eh]=Mh,Ih[xh]=18e5,Ih[jh]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},Ih)),Rh=function(e){function t(){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y=e.call(this)||this;y.priority=198,y.identifier="AppInsightsCfgSyncPlugin";var b=!1;return ti(t,y,(function(e,t){function y(){i=null,r=null,a=null,o=null,l=null,u=null,f=null,s=null,d=null,h=null,c=null,g=null,v=null,p=null}function _(t,n){if(t){if(i=t,n&&!b)return S();if(l&&!b)return e.core.updateCfg(t),!0}return!1}function T(){try{var e=dt();e&&lc(e,null,null,a)}catch(e){}}function S(e){try{return v&&oe(v)?v(i,e):function(e,t,n){var i,r,a=dt();if(a&&a.CustomEvent)try{return i=a,r=function(e,t){var n=null,i={detail:t||null};if(oe(CustomEvent))n=new CustomEvent(e,i);else{var r=ft();r&&r.createEvent&&(n=r.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}return n}(e,{cfg:t||null,customDetails:n||null}),!!(i&&i.dispatchEvent&&r)&&(i.dispatchEvent(r),!0)}catch(e){}return!1}(r,i,e)}catch(e){}return!1}function w(e){try{return T(),e&&(r=e,function(){if(l){var e=dt();if(e)try{sc(e,r,(function(e){var t=e&&e.detail;if(p&&t)p(t);else{var n=t&&t.cfg,i=n&&tn(n)&&x(n);i&&_(i)}}),a,!0)}catch(e){}}}()),!0}catch(e){}return!1}function k(e,t,n){var i=dt(),r=i&&i.fetch||null;if(e&&r&&oe(r))try{var a=new Request(e,{method:"GET"});nh(fetch(a),(function(e){var i=e.value;e.rejected?j(t,400):i.ok?nh(i.text(),(function(e){j(t,i.status,e.value,n)})):j(t,i.status,null,n)}))}catch(e){}}function C(e,t,n){try{var i=new XMLHttpRequest;i.open("GET",e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&j(t,i.status,i.responseText,n)},i.onerror=function(){j(t,400)},i.ontimeout=function(){j(t,400)},i.send()}catch(e){}}function E(t,n,i){try{if(t>=200&&t<400&&n){h=0;var r=Ua();if(r){var a=function(e,t){try{if(!e||!e.enabled)return null;if(!e[Ch])return e.config;var n=e[Ch],i=e.config||{};return be(n,(function(n){var r,a,o,s,l,u,c,d=function(e,t,n){var i;if(!t||!t.enabled)return null;var r=(t[Ch]||{})[e]||{mode:1},a=r.mode,o=r.onCfg,s=r.offCfg,l=(n||{})[e]||{mode:2},u=l.mode,c=l.onCfg,d=l.offCfg,h=!!l.blockCdnCfg,p=Ph+e+Lh,f=Ph+e+Oh,m=u,g=c,v=d;return h||(4===a||5===a?(m=4==a?3:2,g=o||c,v=s||d):2===a||2===u?(m=2,g=c||o,v=d||s):3===a?(m=3,g=c||o,v=d||s):1===a&&1===u&&(m=1)),(i={})[Ph+e+Dh]=m,i[p]=g,i[f]=v,i}(n,e,t.config[Ch]);ie(d)||(be(d,(function(e,t){fn(i,e,t)})),o=i,s=(a=d)[Ph+(r=n)+Dh],l=a[Ph+r+Lh],u=a[Ph+r+Oh],c=null,3===s&&(c=l),2===s&&(c=u),c&&be(c,(function(e,t){fn(o,e,t)})))})),i}catch(e){}return null}(r.parse(n),e.core),o=a&&tn(a)&&x(a);o&&_(o,i)}}else h++;h<3&&A()}catch(e){}}function j(e,t,n,i){try{e(t,n,i)}catch(e){}}function x(e,t){var n=null;try{e&&(n=Ah(e,f,0,5))}catch(e){}return n}function A(){!s&&d&&(s=kn((function(){s=null,m(o,E,u)}),d)).unref()}function I(){s&&s.cancel(),s=null,h=0}y(),e.initialize=function(s,y,b,_){t.initialize(s,y,b,_),a=oc(ro(e.identifier),y.evtNamespace&&y.evtNamespace()),function(t){var a=e.identifier,s=e.core;e._addHook(xo(t,(function(){var e=xc(null,t,s);n=e.getExtCfg(a,Nh);var d=c;c=!!n.blkCdnCfg,ie(d)||d===c||(!c&&o?m&&m(o,E,u):I()),ie(l)&&(l=2===n.syncMode),ie(u)&&(u=1===n.syncMode);var h=n.customEvtName||"ai_cfgsync";r!==h&&(l?w(h):(T(),r=h)),ie(o)&&(o=n.cfgUrl),o||(i=t,u&&S())}))),v=n.overrideSyncFn,g=n.overrideFetchFn,p=n[Eh],f=n[jh],d=n[xh],m=function(){var e=g;return ie(e)&&(qa()?e=k:za()&&(e=C)),e}(),h=0,o&&!c&&m&&m(o,E,u)}(s)},e.getCfg=function(){return i},e.pause=function(){b=!0,I()},e.resume=function(){b=!1,A()},e.setCfg=function(e){return _(e)},e.sync=function(e){return S(e)},e.updateEventListenerName=function(e){return w(e)},e._doTeardown=function(e,t){T(),I(),y()},e._getDbgPlgTargets=function(){return[u,l,r,c,f]},e.processTelemetry=function(t,n){e.processNext(t,n)}})),y}return di(t,e),t.__ieDyn=1,t}(Wc);function Uh(e,t){lc(e,null,null,t)}var Bh=Go({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),Fh="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Vh="",qh="&NoResponseBody=true",zh="POST",Hh=function(){function e(){var t,n,i,r,a,o,s,l,u,c,d,h,p,f,m=0;ti(e,this,(function(e,g){var v=!0;function y(e,t){Ho(i,2,26,"Failed to send telemetry.",{message:e}),_(t,400,{})}function b(e){y("No endpoint url is provided for the batch",e)}function _(e,t,n,i){try{e&&e(t,n,i)}catch(e){}}function T(e,t){var n=_t(),i=e[wr];if(!i)return b(t),!0;i=e[wr]+(p?qh:Vh);var a=e[yr],o=r?a:new Blob([a],{type:"text/plain;charset=UTF-8"});return n.sendBeacon(i,o)}function S(e,t,n){var o=e[yr];try{if(o)if(T(e,t))_(t,200,{},Vh);else{var s=a&&a.beaconOnRetry;s&&oe(s)?s(e,t,T):(l&&l[kr](e,t,!0),Ho(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(e){r&&Wo(i,"Failed to send telemetry using sendBeacon API. Ex:"+xe(e)),_(t,r?0:400,{},Vh)}}function w(e,n,i){var o,s,l,u=e[Cr]||{};!i&&t&&(o=wh((function(e,t){s=e,l=t}))),r&&i&&e.disableXhrSync&&(i=!1);var c=e[wr];if(!c)return b(n),void(s&&s(!1));var d=function(e,t,n,i,r,a){function o(e,t,n){try{e[t]=n}catch(e){}}void 0===i&&(i=!1),void 0===r&&(r=!1);var s=new XMLHttpRequest;return i&&o(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",i),n&&o(s,_a,n),s.open(e,t,!r),n&&o(s,_a,n),!r&&a&&o(s,"timeout",a),s}(zh,c,v,!0,i,e[Er]);function h(t){var i=a&&a.xhrOnComplete;if(i&&oe(i))i(t,n,e);else{var o=sdfsdft);_(n,t[fr],Sa(t,r),o)}}return r||d[jr]("Content-type","applicationhttps://www.microsoft.com/json"),Nt(Me(u),(function(e){d[jr](e,u[e])})),d.onreadystatechange=function(){r||(h(d),4===d.readyState&&s&&s(!0))},d.onload=function(){r&&h(d)},d.onerror=function(e){_(n,r?d[fr]:400,Sa(d,r),r?Vh:ya(d)),l&&l(e)},d.ontimeout=function(){_(n,r?d[fr]:500,Sa(d,r),r?Vh:ya(d)),s&&s(!1)},d.send(e[yr]),o}function k(e,n,i){var o,l,u,c,d=e[wr],h=e[yr],g=r?h:new Blob([h],{type:"applicationhttps://www.microsoft.com/json"}),y=new Headers,T=h[mi],S=!1,w=!1,k=e[Cr]||{},C=((o={method:zh,body:g})[Fh]=!0,o);e.headers&&Me(e.headers)[mi]>0&&(Nt(Me(k),(function(e){y.append(e,k[e])})),C[Cr]=y),s?C.credentials=s:v&&r&&(C.credentials="include"),i&&(C.keepalive=!0,m+=T,r?2===e._sendReason&&(S=!0,p&&(d+=qh)):S=!0);var E=new Request(d,C);try{E[Fh]=!0}catch(e){}if(!i&&t&&(l=wh((function(e,t){u=e,c=t}))),!d)return b(n),void(u&&u(!1));function j(e){_(n,r?0:400,{},r?Vh:e)}function x(e,t,i){var r=e[fr],o=a.fetchOnComplete;o&&oe(o)?o(e,n,i||Vh,t):_(n,r,{},i||Vh)}try{nh(fetch(r?d:E,r?C:null),(function(t){if(i&&(m-=T,T=0),!w)if(w=!0,t.rejected)j(t.reason&&t.reason[Zi]),c&&c(t.reason);else{var n=t[Mi];try{r||n.ok?r&&!n.body?(x(n,null,Vh),u&&u(!0)):nh(n.text(),(function(t){x(n,e,t[Mi]),u&&u(!0)})):(j(n.statusText),u&&u(!1))}catch(e){j(xe(e)),c&&c(e)}}}))}catch(e){w||(j(xe(e)),c&&c(e))}return S&&!w&&(w=!0,_(n,200,{}),u&&u(!0)),r&&!w&&e[Er]>0&&f&&f.set((function(){w||(w=!0,_(n,500,{}),u&&u(!0))}),e[Er]),l}function C(e,t,n){var o=bt(),s=new XDomainRequest,l=e[yr];s.onload=function(){var n=sdfsdfs),i=a&&a.xdrOnComplete;i&&oe(i)?i(s,t,e):_(t,200,{},n)},s.onerror=function(){_(t,400,{},r?Vh:va(s))},s.ontimeout=function(){_(t,500,{})},s.onprogress=function(){};var u=o&&o.location&&o.location[or]||"",c=e[wr];if(c){if(!r&&0!==c.lastIndexOf(u,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return Ho(i,2,40,". "+d),void y(d,t)}var h=r?c:c[cr](/^(https?:)/,"");s.open(zh,h),e[Er]&&(s[Er]=e[Er]),s.send(l),r&&n?f&&f.set((function(){s.send(l)}),0):s.send(l)}else b(t)}function E(){m=0,n=!1,t=!1,i=null,r=null,a=null,o=null,s=null,l=null,u=!1,c=!1,d=!1,h=!1,p=!1,f=null}E(),e[xi]=function(t,r){i=r,n&&Ho(i,1,28,"Sender is already initialized"),e.SetConfig(t),n=!0},e._getDbgPlgTargets=function(){return[n,r,o,t]},e.SetConfig=function(e){try{if(a=e.senderOnCompleteCallBack||{},o=!!e.disableCredentials,s=e.fetchCredentials,r=!!e.isOneDs,t=!!e.enableSendPromise,u=!!e.disableXhr,c=!!e.disableBeacon,d=!!e.disableBeaconSync,f=e.timeWrapper,p=!!e.addNoResponse,h=!!e.disableFetchKeepAlive,l={sendPOST:w},r||(v=!1),o){var n=Na();n&&n.protocol&&"file:"===n.protocol[pi]()&&(v=!1)}return!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return m},e.getSenderInst=function(e,t){return e&&e[mi]?function(e,t){for(var n,i=0,r=null,a=0;null==r&&a0?nh(Wh(e[0],t),(function(){Gh(Bt(e,1),t,n)})):n(),i}function Xh(e,t){try{if(e&&""!==e){var n=Ua().parse(e);if(n&&n[Sr]&&n[Sr]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[mi])return n}}catch(n){Ho(t,1,43,"Cannot parse the response. "+(n[Ui]||xe(n)),{response:e})}return null}function Kh(e){var t="ai."+e+".";return function(e){return t+e}}var Yh,Qh=Kh("application"),Jh=Kh("device"),$h=Kh("location"),Zh=Kh("operation"),ep=Kh("session"),tp=Kh("user"),np=Kh("cloud"),ip=Kh("internal"),rp=function(e){function t(){return e.call(this)||this}return di(t,e),t}((Yh={applicationVersion:Qh("ver"),applicationBuild:Qh("build"),applicationTypeId:Qh("typeId"),applicationId:Qh("applicationId"),applicationLayer:Qh("layer"),deviceId:Jh("id"),deviceIp:Jh("ip"),deviceLanguage:Jh("language"),deviceLocale:Jh("locale"),deviceModel:Jh("model"),deviceFriendlyName:Jh("friendlyName"),deviceNetwork:Jh("network"),deviceNetworkName:Jh("networkName"),deviceOEMName:Jh("oemName"),deviceOS:Jh("os"),deviceOSVersion:Jh("osVersion"),deviceRoleInstance:Jh("roleInstance"),deviceRoleName:Jh("roleName"),deviceScreenResolution:Jh("screenResolution"),deviceType:Jh("type"),deviceMachineName:Jh("machineName"),deviceVMName:Jh("vmName"),deviceBrowser:Jh("browser"),deviceBrowserVersion:Jh("browserVersion"),locationIp:$h("ip"),locationCountry:$h("country"),locationProvince:$h("province"),locationCity:$h("city"),operationId:Zh("id"),operationName:Zh("name"),operationParentId:Zh("parentId"),operationRootId:Zh("rootId"),operationSyntheticSource:Zh("syntheticSource"),operationCorrelationVector:Zh("correlationVector"),sessionId:ep("id"),sessionIsFirst:ep("isFirst"),sessionIsNew:ep("isNew"),userAccountAcquisitionDate:tp("accountAcquisitionDate"),userAccountId:tp("accountId"),userAgent:tp("userAgent"),userId:tp("id"),userStoreRegion:tp("storeRegion"),userAuthUserId:tp("authUserId"),userAnonymousUserAcquisitionDate:tp("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:tp("authUserAcquisitionDate"),cloudName:np("name"),cloudRole:np("role"),cloudRoleVer:np("roleVer"),cloudRoleInstance:np("roleInstance"),cloudEnvironment:np("environment"),cloudLocation:np("location"),cloudDeploymentUnit:np("deploymentUnit"),internalNodeName:ip("nodeName"),internalSdkVersion:ip("sdkVersion"),internalAgentVersion:ip("agentVersion"),internalSnippet:ip("snippet"),internalSdkSrc:ip("sdkSrc")},function(){var e=this;Yh&&be(Yh,(function(t,n){e[t]=n}))})),ap="user",op="device",sp="trace",lp=new rp,up=function(e,t,n){var i=this,r=this;r.ver=1,r.sampleRate=100,r.tags={},r[ts]=il(e,n)||el,r.data=t,r.time=oa(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===i.sampleRate?4:1},tags:1,data:1}},cp=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},dp="duration",hp="tags",pp="deviceType",fp="data",mp="name",gp="traceID",vp="length",yp="stringify",bp="measurements",_p="dataType",Tp="envelopeType",Sp="toString",wp="_get",kp="enqueue",Cp="count",Ep="eventsLimitInMem",jp="push",xp="item",Ap="emitLineDelimitedJson",Ip="clear",Pp="createNew",Dp="markAsSent",Lp="clearSent",Op="bufferOverride",Mp="BUFFER_KEY",Np="SENT_BUFFER_KEY",Rp="concat",Up="MAX_BUFFER_SIZE",Bp="triggerSend",Fp="diagLog",Vp="initialize",qp="_sender",zp="customHeaders",Hp="maxBatchSizeInBytes",Wp="onunloadDisableBeacon",Gp="isBeaconApiDisabled",Xp="alwaysUseXhrOverride",Kp="disableXhr",Yp="enableSessionStorageBuffer",Qp="_buffer",Jp="onunloadDisableFetch",$p="disableSendBeaconSplit",Zp="instrumentationKey",ef="enableSendPromise",tf="getSenderInst",nf="unloadTransports",rf="convertUndefined",af="maxBatchInterval",of="serialize",sf="_onError",lf="_onPartialSuccess",uf="_onSuccess",cf="itemsReceived",df="itemsAccepted",hf="oriPayload",pf="baseType",ff="sampleRate",mf="eventsSendRequest",gf="getSamplingScore",vf="baseType",yf="baseData",bf="properties",_f="true";function Tf(e,t,n){return la(e,t,n,fe)}function Sf(e,t,n){ie(e)||be(e,(function(e,i){ce(i)?n[e]=i:ae(i)?t[e]=i:Ra()&&(t[e]=Ua()[yp](i))}))}function wf(e,t){ie(e)||be(e,(function(n,i){e[n]=i||t}))}function kf(e,t,n,i){var r=new up(e,i,t);Tf(r,"sampleRate",n[Ys]),(n[yf]||{}).startTime&&(r.time=oa(n[yf].startTime)),r.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return r[mp]=r[mp].replace("{0}",a),function(e,t,n){var i=n[hp]=n[hp]||{},r=t.ext=t.ext||{},a=t[hp]=t[hp]||[],o=r.user;o&&(Tf(i,lp.userAuthUserId,o.authId),Tf(i,lp.userId,o.id||o.localId));var s=r.app;s&&Tf(i,lp.sessionId,s.sesId);var l=r.device;l&&(Tf(i,lp.deviceId,l.id||l.localId),Tf(i,lp[pp],l.deviceClass),Tf(i,lp.deviceIp,l.ip),Tf(i,lp.deviceModel,l.model),Tf(i,lp[pp],l[pp]));var u=t.ext.web;if(u){Tf(i,lp.deviceLanguage,u.browserLang),Tf(i,lp.deviceBrowserVersion,u.browserVer),Tf(i,lp.deviceBrowser,u.browser);var c=n[fp]=n[fp]||{},d=c[yf]=c[yf]||{},h=d[bf]=d[bf]||{};Tf(h,"domain",u.domain),Tf(h,"isManual",u.isManual?_f:null),Tf(h,"screenRes",u.screenRes),Tf(h,"userConsent",u.userConsent?_f:null)}var p=r.os;p&&(Tf(i,lp.deviceOS,p[mp]),Tf(i,lp.deviceOSVersion,p.osVer));var f=r.trace;f&&(Tf(i,lp.operationParentId,f.parentID),Tf(i,lp.operationName,il(e,f[mp])),Tf(i,lp.operationId,f[gp]));for(var m={},g=a[vp]-1;g>=0;g--)be(a[g],(function(e,t){m[e]=t})),a.splice(g,1);be(a,(function(e,t){m[e]=t}));var v=ui(ui({},i),m);v[lp.internalSdkVersion]||(v[lp.internalSdkVersion]=il(e,"javascript:".concat(Ef.Version),64)),n[hp]=pa(v)}(e,n,r),n[hp]=n[hp]||[],pa(r)}function Cf(e,t){ie(t[yf])&&Ho(e,1,46,"telemetryItem.baseData cannot be null.")}var Ef={Version:"3.3.1"};function jf(e,t,n){Cf(e,t);var i={},r={};t[vf]!==cl[_p]&&(i.baseTypeSource=t[vf]),t[vf]===cl[_p]?(i=t[yf][bf]||{},r=t[yf][bp]||{}):t[yf]&&Sf(t[yf],i,r),Sf(t[fp],i,r),ie(n)||wf(i,n);var a=t[yf][mp],o=new cl(e,a,i,r),s=new cp(cl[_p],o);return kf(e,cl[Tp],t,s)}var xf,Af,If=function(){function e(t,n){var i=[],r=!1,a=n.maxRetryCnt;this[wp]=function(){return i},this._set=function(e){return i=e},ti(e,this,(function(e){e[kp]=function(o){e[Cp]()>=n[Ep]?r||(Ho(t,2,105,"Maximum in-memory buffer size reached: "+e[Cp](),!0),r=!0):(o.cnt=o.cnt||0,!ie(a)&&o.cnt>a||i[jp](o))},e[Cp]=function(){return i[vp]},e.size=function(){for(var e=i[vp],t=0;t0){var t=[];return Nt(e,(function(e){t[jp](e[xp])})),n[Ap]?t.join("\n"):"["+t.join(",")+"]"}return null},e[Pp]=function(e,n,r){var a=i.slice(0);e=e||t,n=n||{};var o=r?new Lf(e,n):new Pf(e,n);return Nt(a,(function(e){o[kp](e)})),o}}))}return e.__ieDyn=1,e}(),Pf=function(e){function t(n,i){var r=e.call(this,n,i)||this;return ti(t,r,(function(e,t){e[Dp]=function(e){t[Ip]()},e[Lp]=function(e){}})),r}return di(t,e),t.__ieDyn=1,t}(If),Df=["AI_buffer","AI_sentBuffer"],Lf=function(e){function t(n,i){var r=e.call(this,n,i)||this,a=!1,o=null==i?void 0:i.namePrefix,s=i[Op]||{getItem:qs,setItem:zs},l=s.getItem,u=s.setItem,c=i.maxRetryCnt;return ti(t,r,(function(e,i){var r=m(t[Mp]),s=m(t[Np]),d=function(){var e=[];try{return Nt(Df,(function(t){var n=y(t);if(e=e[Rp](n),o){var i=y(o+"_"+t);e=e[Rp](i)}})),e}catch(e){Ho(n,2,41,"Transfer events from previous buffers: "+sa(e)+". previous Buffer items can not be removed",{exception:xe(e)})}return[]}(),h=s[Rp](d),p=e._set(r[Rp](h));function f(e,t){var n=[],i=[];return Nt(e,(function(e){i[jp](e[xp])})),Nt(t,(function(e){oe(e)||-1!==Rt(i,e[xp])||n[jp](e)})),n}function m(e){return g(o?o+"_"+e:e)}function g(e){try{var t=l(n,e);if(t){var i=Ua().parse(t);if(ae(i)&&(i=Ua().parse(i)),i&&le(i))return i}}catch(t){Ho(n,1,42," storage key: "+e+", "+sa(t),{exception:xe(t)})}return[]}function v(e,t){var i=e;try{i=o?o+"_"+i:i;var r=JSON[yp](t);u(n,i,r)}catch(e){u(n,i,JSON[yp]([])),Ho(n,2,41," storage key: "+i+", "+sa(e)+". Buffer cleared",{exception:xe(e)})}}function y(e){try{var t=g(e),i=[];return Nt(t,(function(e){var t={item:e,cnt:0};i[jp](t)})),Hs(n,e),i}catch(e){}return[]}p[vp]>t[Up]&&(p[vp]=t[Up]),v(t[Np],[]),v(t[Mp],p),e[kp]=function(r){e[Cp]()>=t[Up]?a||(Ho(n,2,67,"Maximum buffer size reached: "+e[Cp](),!0),a=!0):(r.cnt=r.cnt||0,!ie(c)&&r.cnt>c||(i[kp](r),v(t.BUFFER_KEY,e[wp]())))},e[Ip]=function(){i[Ip](),v(t.BUFFER_KEY,e[wp]()),v(t[Np],[]),a=!1},e[Dp]=function(i){v(t[Mp],e._set(f(i,e[wp]())));var r=m(t[Np]);r instanceof Array&&i instanceof Array&&((r=r[Rp](i))[vp]>t[Up]&&(Ho(n,1,67,"Sent buffer reached its maximum size: "+r[vp],!0),r[vp]=t[Up]),v(t[Np],r))},e[Lp]=function(e){var n=m(t[Np]);n=f(e,n),v(t[Np],n)},e[Pp]=function(i,r,a){a=!!a;var o=e[wp]().slice(0),s=m(t[Np]).slice(0);i=i||n,r=r||{},e[Ip]();var l=a?new t(i,r):new Pf(i,r);return Nt(o,(function(e){l[kp](e)})),a&&l[Dp](s),l}})),r}var n;return di(t,e),n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(If),Of=function(){function e(t){ti(e,this,(function(e){function n(e,a){var o="__aiCircularRefCheck",s={};if(!e)return Ho(t,1,48,"cannot serialize object because it is null or undefined",{name:a},!0),s;if(e[o])return Ho(t,2,50,"Circular reference detected while serializing object",{name:a},!0),s;if(!e.aiDataContract){if("measurements"===a)s=r(e,"number",a);else if("properties"===a)s=r(e,"string",a);else if("tags"===a)s=r(e,"string",a);else if(le(e))s=i(e,a);else{Ho(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{Ua()[yp](e),s=e}catch(e){Ho(t,1,48,e&&oe(e[Sp])?e[Sp]():"Error serializing object",null,!0)}}return s}return e[o]=!0,be(e.aiDataContract,(function(r,o){var l=oe(o)?1&o():1&o,u=oe(o)?4&o():4&o,c=2&o,d=void 0!==e[r],h=se(e[r])&&null!==e[r];if(!l||d||c){if(!u){var p;void 0!==(p=h?c?i(e[r],r):n(e[r],r):e[r])&&(s[r]=p)}}else Ho(t,1,24,"Missing required field specification. The field is required but not present on source",{field:r,name:a})})),delete e[o],s}function i(e,i){var r;if(e)if(le(e)){r=[];for(var a=0;a100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[ff]=e,this.samplingScoreGenerator=new Nf}return e.prototype.isSampledIn=function(e){var t=this[ff];return null==t||t>=100||e.baseType===pl[_p]||this.samplingScoreGenerator[gf](e)0&&e<=100}),100),xf[zp]=Uf,xf[rf]=Uf,xf[Ep]=1e4,xf[Op]=!1,xf.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:Uf},xf[Xp]=hu(),xf.transports=Uf,xf.retryCodes=Uf,xf.maxRetryCnt={isVal:ce,v:10},xf)),Vf=((Af={})[cl.dataType]=jf,Af[dl.dataType]=function(e,t,n){Cf(e,t);var i=t[yf].message,r=t[yf].severityLevel,a=t[yf][bf]||{},o=t[yf][bp]||{};Sf(t[fp],a,o),ie(n)||wf(a,n);var s=new dl(e,i,r,a,o),l=new cp(dl[_p],s);return kf(e,dl[Tp],t,l)},Af[gl.dataType]=function(e,t,n){var i;Cf(e,t);var r=t[yf];ie(r)||ie(r[bf])||ie(r[bf][dp])?ie(t[fp])||ie(t[fp][dp])||(i=t[fp][dp],delete t[fp][dp]):(i=r[bf][dp],delete r[bf][dp]);var a,o=t[yf];((t.ext||{}).trace||{})[gp]&&(a=t.ext.trace[gp]);var s=o.id||a,l=o[mp],u=o.uri,c=o[bf]||{},d=o[bp]||{};ie(o.refUri)||(c.refUri=o.refUri),ie(o.pageType)||(c.pageType=o.pageType),ie(o.isLoggedIn)||(c.isLoggedIn=o.isLoggedIn[Sp]()),ie(o[bf])||be(o[bf],(function(e,t){c[e]=t})),Sf(t[fp],c,d),ie(n)||wf(c,n);var h=new gl(e,l,u,i,c,d,s),p=new cp(gl[_p],h);return kf(e,gl[Tp],t,p)},Af[vl.dataType]=function(e,t,n){Cf(e,t);var i=t[yf],r=i[mp],a=i.uri||i.url,o=i[bf]||{},s=i[bp]||{};Sf(t[fp],o,s),ie(n)||wf(o,n);var l=new vl(e,r,a,void 0,o,s,i),u=new cp(vl[_p],l);return kf(e,vl[Tp],t,u)},Af[Pl.dataType]=function(e,t,n){Cf(e,t);var i=t[yf][bp]||{},r=t[yf][bf]||{};Sf(t[fp],r,i),ie(n)||wf(r,n);var a=t[yf],o=Pl.CreateFromInterface(e,a,r,i),s=new cp(Pl[_p],o);return kf(e,Pl[Tp],t,s)},Af[pl.dataType]=function(e,t,n){Cf(e,t);var i=t[yf],r=i[bf]||{},a=i[bp]||{};Sf(t[fp],r,a),ie(n)||wf(r,n);var o=new pl(e,i[mp],i.average,i.sampleCount,i.min,i.max,i.stdDev,r,a),s=new cp(pl[_p],o);return kf(e,pl[Tp],t,s)},Af[ou.dataType]=function(e,t,n){Cf(e,t);var i=t[yf][bp]||{},r=t[yf][bf]||{};Sf(t[fp],r,i),ie(n)||wf(r,n);var a=t[yf];if(ie(a))return Wo(e,"Invalid input for dependency data"),null;var o=a[bf]&&a[bf][Js]?a[bf][Js]:"GET",s=new ou(e,a.id,a.target,a[mp],a[dp],a.success,a.responseCode,o,a.type,a.correlationContext,r,i),l=new cp(ou[_p],s);return kf(e,ou[Tp],t,l)},Af),qf=function(e){function t(){var n,i,r,a,o,s,l,u=e.call(this)||this;u.priority=1001,u.identifier=Gs;var c,d,h,p,f,m,g,v,y,b,_,T,S,w,k,C,E,j,x,A,I,P,D,L,O,M,N,R=0;return ti(t,u,(function(e,U){function B(t,i){var r=Bf(t);if(!t||r+""!="200"&&""!==r){var a=Xh(r);a&&a[cf]&&a[cf]>a[df]&&!w?e[lf](i,a):e[sf](i,va(t))}else n=0,e[uf](i,0)}function F(e,t,n){4===e.readyState&&J(e.status,t,e.responseURL,n,ya(e),Bf(e)||e.response)}function V(e){try{if(e){var t=e[hf];return t&&t[vp]?t:null}}catch(e){}return null}function q(t,n){return!(_||(t?t.baseData&&!t[pf]?(n&&Ho(n,1,70,"Cannot send telemetry without baseData and baseType"),1):(t[pf]||(t[pf]="EventData"),e[qp]?(i=t,e._sample.isSampledIn(i)?(t[Ys]=e._sample[ff],0):(n&&Ho(n,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[ff]}),1)):(n&&Ho(n,1,28,"Sender was not initialized"),1)):(n&&Ho(n,1,7,"Cannot send empty telemetry"),1)));var i}function z(e,n){var i=e.iKey||T,r=t.constructEnvelope(e,i,n,S);if(r){var a=!1;if(e[hp]&&e[hp][Qs]&&(Nt(e[hp][Qs],(function(e){try{e&&!1===e(r)&&(a=!0,Wo(n,"Telemetry processor check returns false"))}catch(e){Ho(n,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+sa(e),{exception:xe(e)},!0)}})),delete e[hp][Qs]),!a)return r}else Ho(n,1,47,"Unable to create an AppInsights envelope")}function H(t){var n="",i=e[Fp]();try{var r=q(t,i),a=null;r&&(a=z(t,i)),a&&(n=o[of](a))}catch(e){}return n}function W(e){var t="";return e&&e[vp]&&(t="["+e.join(",")+"]"),t}function G(e){var t,n=Y();return(t={urlString:p})[fp]=e,t.headers=n,t}function X(t,n,i,r){void 0===r&&(r=!0);var a=K(n),o=t&&t.sendPOST;return o&&a?(r&&e._buffer[Dp](n),o(a,(function(t,i,r){return function(t,n,i,r){200===n&&t?e._onSuccess(t,t[vp]):r&&e[sf](t,r)}(n,t,0,r)}),!i)):null}function K(t){var n;if(le(t)&&t[vp]>0){var i=e[Qp].batchPayloads(t),r=Y();return(n={})[fp]=i,n.urlString=p,n.headers=r,n.disableXhrSync=I,n.disableFetchKeepAlive=!P,n[hf]=t,n}return null}function Y(){try{var e=l||{};return $l(p)&&(e[Hl[6]]=Hl[7]),e}catch(e){}return null}function Q(t){var n=t?t[vp]:0;return e[Qp].size()+n>m&&(d&&!d.isOnline()||e[Bp](!0,null,10),!0)}function J(t,i,r,a,o,s){var l=null;if(e._appId||(l=Xh(s))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!$(r))return void e[sf](i,o);if(d&&!d.isOnline())return void(w||(re(i,10),Ho(e[Fp](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(i.length," items."))));!w&&ue(t)?(re(i),Ho(e[Fp](),2,40,". Response code "+t+". Will retry to send "+i[vp]+" items.")):e[sf](i,o)}else $(r),206===t?(l||(l=Xh(s)),l&&!w?e[lf](i,l):e[sf](i,o)):(n=0,e[uf](i,a))}function $(e){return!(s>=10||ie(e)||""===e||e===p||(p=e,++s,0))}function Z(e,t){if(!c)return X(M&&M[tf]([3],!0),e,t);c(e,!1)}function ee(e){try{if(e&&e[vp])return ae(e[0])}catch(e){}return null}function te(t,n){var i=null;if(le(t)){for(var r=t[vp],a=0;a-1}function ce(){e[qp]=null,e[Qp]=null,e._appId=null,e._sample=null,l={},d=null,n=0,i=null,r=!1,a=null,o=null,s=0,R=0,c=null,h=null,p=null,f=null,m=0,g=!1,b=null,_=!1,T=null,S=Uf,w=!1,C=null,j=Uf,I=!1,P=!1,O=!1,D=null,L=null,M=null,we(e,"_senderConfig",{g:function(){return fa({},Ff)}})}ce(),e.pause=function(){se(),r=!0},e.resume=function(){r&&(r=!1,i=null,Q(),oe())},e.flush=function(t,n,i){if(void 0===t&&(t=!0),!r){se();try{return e[Bp](t,null,i||1)}catch(t){Ho(e[Fp](),1,22,"flush failed, telemetry will not be collected: "+sa(t),{exception:xe(t)})}}},e.onunloadFlush=function(){if(!r)if(g||A)try{return e[Bp](!0,Z,2)}catch(t){Ho(e[Fp](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+sa(t),{exception:xe(t)})}else e.flush(!1)},e.addHeader=function(e,t){l[e]=t},e[Vp]=function(t,r,a,R){e.isInitialized()&&Ho(e[Fp](),1,28,"Sender is already initialized"),U[Vp](t,r,a,R);var q=e.identifier;o=new Of(r.logger),n=0,i=null,e[qp]=null,s=0;var z=e[Fp]();h=oc(ro("Sender"),r.evtNamespace&&r.evtNamespace()),d=function(e){var t=ft(),n=_t(),i=!1,r=[],a=1;!n||ie(n.onLine)||n.onLine||(a=2);var o=0,s=d(),l=oc(ro("OfflineListener"),e);try{if(c(bt())&&(i=!0),t){var u=t.body||t;u.ononline&&c(u)&&(i=!0)}}catch(e){i=!1}function c(e){var t=!1;return e&&(t=sc(e,"online",p,l))&&sc(e,"offline",f,l),t}function d(){return 2!==o&&2!==a}function h(){var e=d();s!==e&&(s=e,Nt(r,(function(e){var t={isOnline:s,rState:a,uState:o};try{e(t)}catch(e){}})))}function p(){a=1,h()}function f(){a=2,h()}return{isOnline:function(){return s},isListening:function(){return i},unload:function(){var e=bt();if(e&&i){if(Uh(e,l),t){var n=t.body||t;ne(n.ononline)||Uh(n,l)}i=!1}},addListener:function(e){return r[Zo](e),{rm:function(){var t=r.indexOf(e);return t>-1?r.splice(t,1):void 0}}},setOnlineState:function(e){o=e,h()}}}(h),e._addHook(xo(t,(function(t){var n=t.cfg;n.storagePrefix&&Rs(n.storagePrefix);var i=xc(null,n,r).getExtCfg(q,Ff);we(e,"_senderConfig",{g:function(){return i}}),r.activeStatus()===Bh.PENDING?e.pause():r.activeStatus()===Bh.ACTIVE&&e.resume(),f!==i.endpointUrl&&(p=f=i.endpointUrl),b&&b!==i[zp]&&Nt(b,(function(e){delete l[e.header]})),m=i[Hp],g=(!1===i[Wp]||!1===i[Gp])&&Va(),v=!1===i[Wp]&&Va(),y=!1===i[Gp]&&Va(),A=i[Xp],I=!!i[Kp],N=i.retryCodes;var a=i[Op],o=!!i[Yp]&&(!!a||Vs()),s=i.namePrefix,d=o!==C||o&&j!==s||o&&E!==a;if(e[Qp]){if(d)try{e._buffer=e._buffer[Pp](z,i,o)}catch(t){Ho(e[Fp](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+sa(t),{exception:xe(t)})}Q()}else e[Qp]=o?new Lf(z,i):new Pf(z,i);j=s,C=o,E=a,P=!i[Jp]&&qa(!0),O=!!i[$p],e._sample=new Rf(i.samplingPercentage,z),function(e,t){var n=t.disableInstrumentationKeyValidation;return!(ie(n)||!n)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(T=i[Zp],n)||Ho(z,1,100,"Invalid Instrumentation key "+T),b=i[zp],ae(p)&&!$l(p)&&b&&b[vp]>0?Nt(b,(function(e){u.addHeader(e.header,e.value)})):b=null,x=i[ef];var h=function(){var t;try{var n={xdrOnComplete:function(e,t,n){var i=V(n);if(i)return B(e,i)},fetchOnComplete:function(e,t,n,i){var r=V(i);if(r)return J(e.status,r,e.url,r[vp],e.statusText,n||"")},xhrOnComplete:function(e,t,n){var i=V(n);if(i)return F(e,i,i[vp])},beaconOnRetry:function(t,n,i){return function(t,n,i){var r=t&&t[hf];if(O)L&&L(r,!0),Ho(e[Fp](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var a=[],o=0;o0&&(L&&L(a,!0),Ho(e[Fp](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,n,i)}};return(t={})[ef]=x,t.isOneDs=!1,t.disableCredentials=!1,t[Kp]=I,t.disableBeacon=!y,t.disableBeaconSync=!v,t.senderOnCompleteCallBack=n,t}catch(e){}return null}();M?M.SetConfig(h):(M=new Hh)[Vp](h,z);var R=i.httpXHROverride,U=null,H=null,W=ba([3,1,2],i.transports);U=M&&M[tf](W,!1);var G=M&&M.getFallbackInst();D=function(e,t){return X(G,e,t)},L=function(e,t){return X(G,e,t,!1)},U=A?R:U||R||G,e[qp]=function(e,t){return X(U,e,t)},P&&(c=te);var Y=ba([3,1],i[nf]);P||(Y=Y.filter((function(e){return 2!==e}))),H=M&&M[tf](Y,!0),H=A?R:H||R,(A||i[nf]||!c)&&H&&(c=function(e,t){return X(H,e,t)}),c||(c=D),_=i.disableTelemetry,S=i[rf]||Uf,w=i.isRetryDisabled,k=i[af]})))},e.processTelemetry=function(t,n){var i,r=(n=e._getTelCtx(n))[Fp]();try{if(!q(t,r))return;var a=z(t,r);if(!a)return;var s=o[of](a),l=e[Qp];Q(s);var u=((i={})[xp]=s,i.cnt=0,i);l[kp](u),oe()}catch(e){Ho(r,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+sa(e),{exception:xe(e)})}e.processNext(t,n)},e.isCompletelyIdle=function(){return!r&&0===R&&0===e._buffer[Cp]()},e._xhrReadyStateChange=function(e,t,n){if(!ee(t))return F(e,t,n)},e[Bp]=function(t,n,i){var a;if(void 0===t&&(t=!0),!r)try{var o=e[Qp];if(_)o[Ip]();else{if(o[Cp]()>0){var s=o.getItems();!function(t,n){var i,r=(i="getNotifyMgr",e.core[i]?e.core[i]():e.core._notificationManager);if(r&&r[mf])try{r[mf](t,n)}catch(t){Ho(e[Fp](),1,74,"send request notification failed: "+sa(t),{exception:xe(t)})}}(i||0,t),a=n?n.call(e,s,t):e[qp](s,t)}new Date}se()}catch(t){var l=Fa();(!l||l>9)&&Ho(e[Fp](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+sa(t),{exception:xe(t)})}return a},e.getOfflineSupport=function(){var e;return(e={getUrl:function(){return p},createPayload:G})[of]=H,e.batch=W,e.shouldProcess=function(e){return!!q(e)},e},e._doTeardown=function(t,n){e.onunloadFlush(),Wh(d,!1),ce()},e[sf]=function(t,n,i){if(!ee(t))return function(t,n){Ho(e[Fp](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[Lp](t)}(t,n)},e[lf]=function(t,n){if(!ee(t))return function(t,n){for(var i=[],r=[],a=0,o=n.errors.reverse();a0&&e[uf](t,n[df]),i[vp]>0&&e[sf](i,ya(null,["partial success",n[df],"of",n.itemsReceived].join(" "))),r[vp]>0&&(re(r),Ho(e[Fp](),2,40,"Partial success. Delivered: "+t[vp]+", Failed: "+i[vp]+". Will retry to send "+r[vp]+" our of "+n[cf]+" items"))}(t,n)},e[uf]=function(t,n){if(!ee(t))return function(t){e._buffer&&e._buffer[Lp](t)}(t)},e._xdrOnLoad=function(e,t){if(!ee(t))return B(e,t)}})),u}return di(t,e),t.constructEnvelope=function(e,t,n,i){var r;return r=t===e.iKey||ie(t)?e:ui(ui({},e),{iKey:t}),(Vf[r.baseType]||jf)(n,r,i)},t}(Wc);function zf(e){if(!e)return{};var t=e[Ko](";"),n=qt(t,(function(e,t){var n=t[Ko]("=");if(2===n[Yo]){var i=n[0][Qo](),r=n[1];e[i]=r}return e}),{});if(Me(n)[Yo]>0){if(n.endpointsuffix){var i=n.location?n.location+".":"";n[Jo]=n[Jo]||"https://"+i+"dc."+n.endpointsuffix}n[Jo]=n[Jo]||$s,mn(n[Jo],"/")&&(n[Jo]=n[Jo].slice(0,-1))}return n}var Hf=function(e,t){var n,i,r,a,o,s,l,u=this,c=!1,d=!1;function h(e,t,r,a){if(c){var s=function(e){try{var t=p(e);return(1e6>0?Math.floor($a()/Wa*1000001)>>>0:0)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!s)return;var l=p(e),u=T(e),d=m(l,n,u),h=!1,f=0,v=S(e);try{d&&!v?(f=Math.min(l.limit.maxSendNumber,u[is]+1),u[is]=0,h=!0,o[e]=!0,u[rs]=new Date):(o[e]=d,u[is]+=1);var b=g(e);y(i,b,u);for(var k=0;k0,u[os]=(o=null===(a=(a=c)||{})||void 0===a?void 0:a.monthInterval,s=null==a?void 0:a.dayInterval,ie(o)&&ie(s)&&(a.monthInterval=3,d||(a[ss]=[28],d=!0)),a={monthInterval:null==a?void 0:a.monthInterval,dayInterval:null==a?void 0:a.dayInterval,daysOfMonth:null==a?void 0:a.daysOfMonth});var h={samplingRate:(null===(n=l.limit)||void 0===n?void 0:n.samplingRate)||100,maxSendNumber:(null===(i=l.limit)||void 0===i?void 0:i.maxSendNumber)||1};u.limit=h,r[e]=u}catch(e){}}function m(e,t,n){if(e&&!e[as]&&t&&ia(n)){var i=v(),r=n[ls],a=e[os],o=1;if(null==a?void 0:a.monthInterval){var s=12*(i.getUTCFullYear()-r.getUTCFullYear())+i.getUTCMonth()-r.getUTCMonth();o=b(a.monthInterval,0,s)}var l=1;if(d)l=Rt(a[ss],i[us]());else if(null==a?void 0:a.dayInterval){var u=Math.floor((i.getTime()-r.getTime())/864e5);l=b(a.dayInterval,0,u)}return o>=0&&l>=0}return!1}function g(e,t){var n=ia(t)?t:"";return e?"appInsightsThrottle"+n+"-"+e:null}function v(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function y(e,t,n){try{return Fs(e,t,en(JSON[cs](n)))}catch(e){}return!1}function b(e,t,n){return e<=0?1:n>=t&&(n-t)%e==0?Math.floor((n-t)/e)+1:-1}function _(e,t,n,i){Ho(t,i||1,e,n)}function T(e){try{var t=a[e];if(!t){var n=g(e,s);t=function(e,t,n){try{var i={date:v(),count:0};if(e){var r=JSON.parse(e);return{date:v(r[ls])||i[ls],count:r[is]||i[is],preTriggerDate:r.preTriggerDate?v(r[rs]):void 0}}return y(t,n,i),i}catch(e){}return null}(Bs(i,n),i,n),a[e]=t}return a[e]}catch(e){}return null}function S(e){var t=o[e];if(ie(t)){t=!1;var n=T(e);n&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[us]()===t[us]()}}catch(e){}return!1}(n[rs])),o[e]=t}return o[e]}function w(e){return ie((l=l||{})[e])&&(l[e]=[]),l[e]}i=Vo(e),o={},a={},l={},r={},f(109),s=ia(t)?t:"",e.addUnloadHook(xo(e.config,(function(e){var t=e.cfg;n=Us(),be(t.throttleMgrCfg||{},(function(e,t){f(parseInt(e),t)}))}))),u._getDbgPlgTargets=function(){return[l]},u.getConfig=function(){return r},u.canThrottle=function(e){var t=T(e);return m(p(e),n,t)},u.isTriggered=function(e){return S(e)},u.isReady=function(){return c},u.flush=function(e){try{var t=w(e);if(t&&t[Yo]>0){var n=t.slice(0);return l[e]=[],Nt(n,(function(e){h(e.msgID,e[ns],e.severity,!1)})),!0}}catch(e){}return!1},u.flushAll=function(){try{if(l){var e=!0;return be(l,(function(t){var n=u.flush(parseInt(t));e=e&&n})),e}}catch(e){}return!1},u.onReadyState=function(e,t){return void 0===t&&(t=!0),(c=!!ie(e)||e)&&t?u.flushAll():null},u.sendMessage=function(e,t,n){return h(e,t,n,!0)}},Wf={perfEvtsSendAll:!1};function Gf(e){e.h=null;var t=e.cb;e.cb=[],Nt(t,(function(e){$(e.fn,[e.arg])}))}function Xf(e,t,n,i){Nt(e,(function(e){e&&e[t]&&(n?(n.cb[ki]({fn:i,arg:e}),n.h=n.h||kn(Gf,0,n)):$(i,[e]))}))}var Kf,Yf=function(){function e(t){var n,i;this.listeners=[];var r=[],a={h:null,cb:[]},o=jo(t,Wf);i=o[Ti]((function(e){n=!!e.cfg.perfEvtsSendAll})),ti(e,this,(function(e){we(e,"listeners",{g:function(){return r}}),e[Pi]=function(e){r[ki](e)},e[Ii]=function(e){for(var t=Rt(r,e);t>-1;)r[Ci](t,1),t=Rt(r,e)},e[qr]=function(e){Xf(r,qr,a,(function(t){t[qr](e)}))},e[zr]=function(e,t){Xf(r,zr,a,(function(n){n[zr](e,t)}))},e[Hr]=function(e,t){Xf(r,Hr,t?a:null,(function(n){n[Hr](e,t)}))},e[Wr]=function(e){e&&(!n&&e[vr]()||Xf(r,Wr,null,(function(t){e[er]?kn((function(){return t[Wr](e)}),0):t[Wr](e)})))},e[Gr]=function(e){e&&e[mi]&&Xf(r,Gr,a,(function(t){t[Gr](e)}))},e[Xr]=function(e){e&&e[yr]&&Xf(r,Xr,a,(function(t){t[Xr](e)}))},e[Kr]=function(e,t){if(e>0){var n=t||0;Xf(r,Kr,a,(function(t){t[Kr](e,n)}))}},e[Gi]=function(e){var t,n=function(){i&&i.rm(),i=null,r=[],a.h&&a.h[ji](),a.h=null,a.cb=[]};if(Xf(r,"unload",null,(function(n){var i=n[Gi](e);i&&(t||(t=[]),t[ki](i))})),t)return wh((function(e){return nh(kh(t),(function(){n(),e()}))}));n()}}))}return e.__ieDyn=1,e}(),Qf=function(e){function t(){var n,i,r=e.call(this)||this;function a(){n=0,i=[]}return r.identifier="TelemetryInitializerPlugin",r.priority=199,a(),ti(t,r,(function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,n){var i={id:t,fn:n};return Mt(e,i),{remove:function(){Nt(e,(function(t,n){if(t.id===i.id)return e[Ci](n,1),-1}))}}}(i,n++,e)},e[Fr]=function(t,n){(function(e,t,n){for(var i=!1,r=e[mi],a=0;a0)&&(D||(D=!0,Q(t[Ti]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;P&&(n=P[Hi],P[ji]()),P=function(e,t){return wn(!1,A,J[q](arguments))}(W,t),P.unref(),P[Hi]=n})))),P[Hi]=!0),P}function R(){var e={};k=[];var t=function(t){t&&Nt(t,(function(t){if(t[Ai]&&t[Ki]&&!e[t.identifier]){var n=t[Ai]+"="+t[Ki];k[ki](n),e[t.identifier]=t}}))};t(h),d&&Nt(d,(function(e){t(e)})),t(c)}function U(){n=!1,(t=jo({},Zf,e[Si])).cfg[Yi]=1,we(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),we(e,"pluginVersionStringArr",{g:function(){return k||R(),k}}),we(e,"pluginVersionString",{g:function(){return C||(k||R(),C=k.join(";")),C||Lr}}),we(e,"logger",{g:function(){return i||(i=new qo(t.cfg),t[Si]=i),i},s:function(e){t[Si]=e,i!==e&&(Wh(i,!1),i=e)}}),e[Si]=new qo(t.cfg),w=[];var b=e.config[Br]||[];b.splice(0,b[mi]),Mt(b,w),f=new Qf,r=[],Wh(a,!1),a=null,o=null,s=null,Wh(l,!1),l=null,u=null,c=[],d=null,h=null,p=!1,m=null,g=ro("AIBaseCore",!0),v=Vc(),_=null,T=null,y=qc(),S=[],C=null,k=null,L=!1,P=null,D=!1,E=0,j=null,x=null,I=!1}function B(){var n=xc(z(),t.cfg,e);return n[Xi](N),n}function F(t){var n=function(e,t,n){var i,r=[],a=[],o={};return Nt(n,(function(t){(ie(t)||ie(t[xi]))&&Ae(Jf);var n=t[Vr],i=t[Ai];t&&n&&(ie(o[n])?o[n]=i:Wo(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+i)),!n||n<500?r[ki](t):a[ki](t)})),(i={})[Mr]=r,i[Or]=a,i}(e[Si],0,c);u=null,C=null,k=null,h=Sc(Mt(h=(d||[])[0]||[],n[Or]));var i=Mt(Sc(n[Mr]),h);w=Re(i);var r=e.config[Br]||[];r.splice(0,r[mi]),Mt(r,w);var a=B();h&&h[mi]>0&&Tc(a[Qi](h),i),Tc(a,i),t&&X(t)}function V(e){var t=null,n=null,i=[];return Nt(w,(function(t){if(t[Ai]===e&&t!==f)return n=t,-1;t.getChannel&&i[ki](t)})),!n&&i[mi]>0&&Nt(i,(function(t){if(!(n=t.getChannel(e)))return-1})),n&&(t={plugin:n,setEnabled:function(e){_c(n)[Rr]=!e},isEnabled:function(){var e=_c(n);return!e[Ji]&&!e[Rr]},remove:function(e,t){var i;void 0===e&&(e=!0);var r=[n],a=((i={reason:1})[er]=e,i);H(r,a,(function(e){e&&F({reason:32,removed:r}),t&&t(e)}))}}),t}function z(){if(!u){var n=(w||[]).slice();-1===Rt(n,f)&&n[ki](f),u=Pc(Sc(n),t.cfg,e)}return u}function H(n,i,r){if(n&&n[mi]>0){var a=Ac(Pc(n,t.cfg,e),e);a[Xi]((function(){var e=!1,t=[];Nt(c,(function(i,r){tm(i,n)?e=!0:t[ki](i)})),c=t,C=null,k=null;var i=[];d&&(Nt(d,(function(t,r){var a=[];Nt(t,(function(t){tm(t,n)?e=!0:a[ki](t)})),i[ki](a)})),d=i),r&&r(e),N()})),a[Vi](i)}else r(!1)}function W(){if(i&&i.queue){var t=i.queue.slice(0);i.queue[mi]=0,Nt(t,(function(t){var n,i=((n={})[Ui]=m||"InternalMessageId: "+t[$i],n[Bi]=T,n[Fi]=oa(new Date),n.baseType=Fo.dataType,n.baseData={message:t[Zi]},n);e.track(i)}))}}function G(e,t,n,i){var r=1,a=!1,o=null;function s(){r--,a&&0===r&&(o&&o[ji](),o=null,t&&t(a),t=null)}return i=i||5e3,h&&h[mi]>0&&B()[Qi](h).iterate((function(t){if(t.flush){r++;var a=!1;t.flush(e,(function(){a=!0,s()}),n)||a||(e&&null==o?o=kn((function(){o=null,s()}),i):s())}})),a=!0,s(),!0}function X(t){var n=Ic(z(),e);n[Xi](N),e._updateHook&&!0===e._updateHook(n,t)||n[Vi](t)}function K(t){var n=e[Si];n?(Ho(n,2,73,t),N()):Ae(t)}function Y(t){var n=e[Ni]();n&&n[zr]([t],2)}function Q(e){y.add(e)}U(),e._getDbgPlgTargets=function(){return[w,r]},e[Di]=function(){return n},e.activeStatus=function(){return E},e._setPendingStatus=function(){E=3},e[xi]=function(r,l,u,f){var m;p&&Ae($f),e[Di]()&&Ae("Core cannot be initialized more than once"),t=jo(r,Zf,u||e[Si],!1),r=t.cfg,Q(t[Ti]((function(e){var t,a=e.cfg;if(3!==E){x=a.initInMemoMaxSize||100;var o=a[Li],s=a.endpointUrl;if(ie(o)){T=null,E=Bh[Oi];var l="Please provide instrumentation key";n?(Ho(i,1,100,l),M()):Ae(l)}else{var u,c=[];if(pe(o)?(c[ki](o),T=null):T=o,pe(s)?(c[ki](s),j=null):j=s,c[mi]){I=!1,E=3;var d=ia(a.initTimeOut)?a.initTimeOut:5e4,h=(u=c,!hh&&(t=wh,hh=st((function(e){var n=Bt(arguments,1);return t((function(t,n){var i=[],r=1;function a(e,n){r++,nh(e,(function(e){e.rejected?i[n]={status:th,reason:e.reason}:i[n]={status:"fulfilled",value:e.value},0==--r&&t(i)}))}try{le(e)?Nt(e,a):Dt(e)?Lt(e,a):Ie("Input is not an iterable"),0==--r&&t(i)}catch(e){n(e)}}),n)}))),hh.v(u,undefined));kn((function(){I||O()}),d),nh(h,(function(e){try{if(I)return;if(!e.rejected){var t=e[Mi];if(t&&t[mi]){var n=t[0];if(T=n&&n[Mi],t[mi]>1){var i=t[1];j=i&&i[Mi]}}T&&(r[Li]=T,r.endpointUrl=j)}O()}catch(e){I||O()}}))}else O();var p=e.ref(e.cfg,Ur);be(p,(function(t){e.ref(p,t)}))}}}))),b=rm(t,y,(a=f)&&e[Ni](),b),Q(t[Ti]((function(t){if(t.cfg.enablePerfMgr){var n=t.cfg[Nr];m!==n&&(n||(n=em),ua(t.cfg,Nr,n),m=n,s=null),o||s||!oe(n)||(s=n(e,e[Ni]()))}else s=null,m=null}))),e[Si]=u;var g=r[Br];if((c=[])[ki].apply(c,hi(hi([],l),g)),d=r[Or],F(null),h&&0!==h[mi]||Ae("No "+Or+" available"),d&&d[mi]>1){var v=e[Ri]("TeeChannelController");v&&v.plugin||Ho(i,1,28,"TeeChannel required")}!function(e,t,n){Nt(t,(function(t){var i=xo(e,t.w,n);delete t.w,t.rm=function(){i.rm()}}))}(r,S,i),S=null,n=!0,E===Bh.ACTIVE&&M()},e.getChannels=function(){var e=[];return h&&Nt(h,(function(t){e[ki](t)})),Re(e)},e.track=function(t){yc(e[Yr](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(Y(t),Ae("Invalid telemetry item")),!t[Ui]&&ie(t[Ui])&&(Y(t),Ae("telemetry name required")),t[Bi]=t[Bi]||T,t[Fi]=t[Fi]||oa(new Date),t.ver=t.ver||"4.0",!p&&e[Di]()&&E===Bh.ACTIVE?B()[Vi](t):E!==Bh[Oi]&&r[mi]<=x&&r[ki](t)}),(function(){return{item:t}}),!t.sync)},e[qi]=B,e[Ni]=function(){return a||(a=new Yf(t.cfg),e._notificationManager=a),a},e[Pi]=function(t){e.getNotifyMgr()[Pi](t)},e[Ii]=function(e){a&&a[Ii](e)},e.getCookieMgr=function(){return l||(l=Du(t.cfg,e[Si])),l},e.setCookieMgr=function(e){l!==e&&(Wh(l,!1),l=e)},e[Yr]=function(){return o||s||null},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return r[mi]},e.releaseQueue=function(){if(n&&r[mi]>0){var e=r;r=[],2===E?Nt(e,(function(e){e[Bi]=e[Bi]||T,B()[Vi](e)})):Ho(i,2,20,"core init status is not active")}},e[zi]=function(e){return m=e||null,L=!1,P&&P[ji](),N(!0)},e[Wi]=function(){L=!0,P&&P[ji](),W()},ha(e,(function(){return f}),["addTelemetryInitializer"]),e[Gi]=function(t,r,o){var s;void 0===t&&(t=!0),n||Ae("SDK is not initialized"),p&&Ae($f);var u,c=((s={reason:50})[er]=t,s.flushComplete=!1,s);t&&!r&&(u=wh((function(e){r=e})));var d=Ac(z(),e);function h(t){c.flushComplete=t,p=!0,v.run(d,c),e[Wi](),d[Vi](c)}return d[Xi]((function(){y.run(e[Si]),Gh([l,a,i],t,(function(){U(),r&&r(c)}))}),e),W(),G(t,h,6,o)||h(!1),u},e[Ri]=V,e.addPlugin=function(e,t,n,i){if(!e)return i&&i(!1),void K(Jf);var r=V(e[Ai]);if(r&&!t)return i&&i(!1),void K("Plugin ["+e[Ai]+"] is already loaded!");var a={reason:16};function o(t){c[ki](e),a.added=[e],F(a),i&&i(!0)}if(r){var s=[r.plugin];H(s,{reason:2,isAsync:!!n},(function(e){e?(a.removed=s,a.reason|=32,o()):i&&i(!1)}))}else o()},e.updateCfg=function(n,i){var r;if(void 0===i&&(i=!0),e[Di]()){r={reason:1,cfg:t.cfg,oldCfg:un({},t.cfg),newConfig:un({},n),merge:i},n=r.newConfig;var a=t.cfg;n[Br]=a[Br],n[Or]=a[Or]}t._block((function(e){var t=e.cfg;nm(e,t,n,i),i||be(t,(function(i){ve(n,i)||e.set(t,i,Dr)})),e[_i](t,Zf)}),!0),t[vi](),r&&X(r)},e.evtNamespace=function(){return g},e.flush=G,e.getTraceCtx=function(e){var t;return _||(t={},_={getName:function(){return t[Ui]},setName:function(e){t[Ui]=e},getTraceId:function(){return t[xr]},setTraceId:function(e){Vl(e)&&(t[xr]=e)},getSpanId:function(){return t[Ar]},setSpanId:function(e){ql(e)&&(t[Ar]=e)},getTraceFlags:function(){return t[Ir]},setTraceFlags:function(e){t[Ir]=e}}),_},e.setTraceCtx=function(e){_=e||null},e.addUnloadHook=Q,da(e,"addUnloadCb",(function(){return v}),"add"),e.onCfgChange=function(i){var r,a,o,s;return n?r=xo(t.cfg,i,e[Si]):((s=im(a=S,o=i).l)||(s={w:o,rm:function(){var e=im(a,o);-1!==e.i&&a[Ci](e.i,1)}},a[ki](s)),r=s),function(e){return we({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(r)},e.getWParam=function(){return pt()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}(),om="duration",sm="properties",lm="requestUrl",um="inst",cm="length",dm="traceID",hm="spanID",pm="traceFlags",fm="context",mm="aborted",gm="traceId",vm="spanId",ym="_addHook",bm="core",_m="includeCorrelationHeaders",Tm="getAbsoluteUrl",Sm="headers",wm="requestHeaders",km="setRequestHeader",Cm="trackDependencyDataInternal",Em="startTime",jm="toLowerCase",xm="enableRequestHeaderTracking",Am="enableAjaxErrorStatusText",Im="enableAjaxPerfTracking",Pm="maxAjaxCallsPerView",Dm="excludeRequestFromAutoTrackingPatterns",Lm="addRequestContext",Om="disableAjaxTracking",Mm="ajaxPerfLookupDelay",Nm="disableFetchTracking",Rm="enableResponseHeaderTracking",Um="status",Bm="statusText",Fm="headerMap",Vm="openDone",qm="sendDone",zm="requestSentTime",Hm="abortDone",Wm="getTraceId",Gm="getTraceFlags",Xm="method",Km="errorStatusText",Ym="stateChangeAttached",Qm="responseText",Jm="responseFinishedTime",$m="CreateTrackItem",Zm="response",eg="getAllResponseHeaders",tg="getPartAProps",ng="perfMark",ig="name",rg="perfTiming",ag="exception",og="ajaxDiagnosticsMessage",sg="correlationContext",lg="ajaxTotalDuration",ug="eventTraceCtx";function cg(e,t,n){var i=0,r=e[t],a=e[n];return r&&a&&(i=nu(r,a)),i}function dg(e,t,n,i,r){var a=0,o=cg(n,i,r);return o&&(a=hg(e,t,ml(o))),a}function hg(e,t,n){var i="ajaxPerf",r=0;return e&&t&&n&&((e[i]=e[i]||{})[t]=n,r=1),r}var pg,fg=function(){var e=this;e[Vm]=!1,e.setRequestHeaderDone=!1,e[qm]=!1,e[Hm]=!1,e[Ym]=!1},mg=function(){function e(t,n,i,r){var a,o=this,s=i;o[ng]=null,o.completed=!1,o.requestHeadersSize=null,o[wm]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[lg]=null,o[mm]=0,o.pageUrl=null,o[lm]=null,o.requestSize=0,o[Xm]=null,o[Um]=null,o[zm]=null,o.responseStartedTime=null,o[Jm]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new fg,o.clientFailure=0,o[dm]=t,o[hm]=n,o[pm]=null==r?void 0:r.getTraceFlags(),o[ug]=r?((a={})[gm]=r[Wm](),a[vm]=r.getSpanId(),a[pm]=r[Gm](),a):null,ti(e,o,(function(e){e.getAbsoluteUrl=function(){return e[lm]?((n=Kl(e[lm]))&&(t=n.href),t):null;var t,n},e.getPathName=function(){return e[lm]?rl(s,(t=e[Xm],n=e[lm],t?t.toUpperCase()+" "+n:n)):null;var t,n},e[$m]=function(t,n,i){var r;if(e.ajaxTotalDuration=Math.round(1e3*nu(e.requestSentTime,e.responseFinishedTime))/1e3,e[lg]<0)return null;var a=((r={id:"|"+e[dm]+"."+e[hm],target:e[Tm]()})[ig]=e.getPathName(),r.type=t,r[Em]=null,r.duration=e[lg],r.success=+e[Um]>=200&&+e[Um]<400,r.responseCode=+e[Um],r[sm]={HttpMethod:e[Xm]},r),o=a[sm];if(e[mm]&&(o[mm]=!0),e[zm]&&(a[Em]=new Date,a[Em].setTime(e[zm])),function(e,t){var n=e[rg],i=t[sm]||{},r=0,a="name",o="Start",s="End",l="domainLookup",u="connect",c="redirect",d="request",h="response",p="startTime",f=l+o,m=l+s,g=u+o,v=u+s,y=d+o,b=d+s,_=h+o,T=h+s,S=c+o,w=c=s,k="transferSize",C="encodedBodySize",E="decodedBodySize",j="serverTiming";if(n){r|=dg(i,c,n,S,w),r|=dg(i,l,n,f,m),r|=dg(i,u,n,g,v),r|=dg(i,d,n,y,b),r|=dg(i,h,n,_,T),r|=dg(i,"networkConnect",n,p,v),r|=dg(i,"sentRequest",n,y,T);var x=n[om];x||(x=cg(n,p,T)||0),r|=hg(i,om,x),r|=hg(i,"perfTotal",x);var A=n[j];if(A){var I={};Nt(A,(function(e,t){var n=ra(e[a]||""+t),i=I[n]||{};be(e,(function(e,t){(e!==a&&ae(t)||ce(t))&&(i[e]&&(t=i[e]+";"+t),!t&&ae(t)||(i[e]=t))})),I[n]=i})),r|=hg(i,j,I)}r|=hg(i,k,n[k]),r|=hg(i,C,n[C]),r|=hg(i,E,n[E])}else e[ng]&&(r|=hg(i,"missing",e.perfAttempts));r&&(t[sm]=i)}(e,a),n&&Me(e.requestHeaders)[cm]>0&&(o[wm]=e[wm]),i){var s=i();if(s){var l=s[sg];if(l&&(a.correlationContext=l),s[Fm]&&Me(s.headerMap)[cm]>0&&(o.responseHeaders=s[Fm]),e[Km])if(e[Um]>=400){var u=s.type;""!==u&&"text"!==u||(o.responseText=s.responseText?s[Bm]+" - "+s.responseText:s[Bm]),"json"===u&&(o.responseText=s.response?s[Bm]+" - "+JSON.stringify(s[Zm]):s[Bm])}else 0===e[Um]&&(o.responseText=s[Bm]||"")}}return a},e[tg]=function(){var t,n=null,i=e[ug];if(i&&(i[gm]||i[vm])){var r=(n={})[sp]=((t={})[dm]=i[gm],t.parentID=i[vm],t);ie(i[pm])||(r[pm]=i[pm])}return n}}))}return e.__ieDyn=1,e}(),gg="diagLog",vg="_ajaxData",yg="fetch",bg="Failed to monitor XMLHttpRequest",_g=", monitoring data for this ajax call ",Tg=_g+"may be incorrect.",Sg=_g+"won't be sent.",wg="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",kg="Failed to add custom defined request context as configured call back may missing a null check.",Cg="Failed to calculate the duration of the ",Eg=0,jg=function(e,t){return e&&t&&e[vg]?(e[vg].i||{})[t]:null},xg=function(e,t){var n=!1;if(e){var i=(e[vg]||{}).xh;i&&Nt(i,(function(e){if(e.n===t)return n=!0,-1}))}return n};function Ag(e,t){var n="";try{var i=jg(e,t);i&&i[lm]&&(n+="(url: '"+i[lm]+"')")}catch(e){}return n}function Ig(e,t,n,i,r){Ho(e[gg](),1,t,n,i,r)}function Pg(e,t,n,i,r){Ho(e[gg](),2,t,n,i,r)}function Dg(e,t,n){return function(i){var r;Ig(e,t,n,((r={ajaxDiagnosticsMessage:Ag(i[um],e._ajaxDataId)})[ag]=xe(i.err),r))}}function Lg(e,t){return e&&t?yn(e,t):-1}function Og(e,t,n){var i={id:t,fn:n};return e.push(i),{remove:function(){Nt(e,(function(t,n){if(t.id===i.id)return e.splice(n,1),-1}))}}}function Mg(e,t,n,i){var r=!0;return Nt(t,(function(t,a){try{!1===t.fn.call(null,n)&&(r=!1)}catch(t){Ho(e&&e.logger,1,64,"Dependency "+i+" [#"+a+"] failed: "+sa(t),{exception:xe(t)},!0)}})),r}var Ng="*.blob.core.",Rg=Re([Ng+"windows.net",Ng+"chinacloudapi.cn",Ng+"cloudapi.de",Ng+"usgovcloudapi.net"]),Ug=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],Bg=Re(((pg={})[Pm]=500,pg[Om]=!1,pg[Nm]=!1,pg[Dm]=void 0,pg.disableCorrelationHeaders=!1,pg.distributedTracingMode=1,pg.correlationHeaderExcludedDomains=Rg,pg.correlationHeaderDomains=void 0,pg.correlationHeaderExcludePatterns=void 0,pg.appId=void 0,pg.enableCorsCorrelation=!1,pg[xm]=!1,pg[Rm]=!1,pg[Am]=!1,pg[Im]=!1,pg.maxAjaxPerfLookupAttempts=3,pg[Mm]=25,pg.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],pg[Lm]=void 0,pg.addIntEndpoints=!0,pg)),Fg=function(e){function t(){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,b,_,T,S,w,k,C,E,j,x,A,I,P,D=e.call(this)||this;return D.identifier=t.identifier,D.priority=120,ti(t,D,(function(e,D){var L=D[ym];function O(){var t=Na();n=!1,i=!1,P=!1,r=t&&t.host&&t.host[jm](),a=null,o=!1,s=!1,l=0,u=null,c=!1,d=!1,h=null,p=!1,f=0,m=!1,g={},v=!1,y=!1,b=null,_=null,T=null,w=0,k=[],C=[],S=ro("ajaxData"),e._ajaxDataId=S,E=null,j=1,x=1,A=1,I=null}function M(e){var t=!0;return(e||E)&&Nt(E,(function(n){if(n[jm]()===e[jm]())return t=!1,-1})),t}function N(e,t,n){L(function(e,t,n){return e?Bc(e[ai],t,n,!1):null}(e,t,n))}function R(e,t,n){var i=!1,r=((ae(t)?t:(t||{}).url||"")||"")[jm]();if(Nt(b,(function(e){var t=e;ae(e)&&(t=new RegExp(e)),i||(i=t.test(r))})),i)return i;var a=Lg(r,"?"),o=Lg(r,"#");return(-1===a||-1!==o&&o=0;p--){var f=h[p];if(f){if("resource"===f.entryType)f.initiatorType!==e||-1===Lg(f[ig],l)&&-1===Lg(l,f[ig])||(d=f);else if("mark"===f.entryType&&f[ig]===r[ig]){t[rg]=d;break}if(f[Em]=o||!1===t.async?(r&&oe(a.clearMarks)&&a.clearMarks(r[ig]),t.perfAttempts=u,n()):kn(c,s)}catch(e){i(e)}}()}function q(t){var n="";try{ie(t)||(n+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(t){Ig(e,15,"Failed to grab failed fetch diagnostics message",{exception:xe(t)})}return n}function z(t,n,i,r,a,s,l){function u(t,n,r){var a=r||{};a.fetchDiagnosticsMessage=q(i),n&&(a.exception=xe(n)),Pg(e,t,Cg+"fetch call"+Sg,a)}a&&(a[Jm]=tu(),a[Um]=n,V(yg,a,(function(){var t,l=a[$m]("Fetch",o,s);try{_&&(t=_({status:n,request:i,response:r}))}catch(t){Pg(e,104,kg)}if(l){void 0!==t&&(l[sm]=ui(ui({},l.properties),t));var c=a[tg]();H(C,e[bm],a,l,null,c)}else u(14,null,{requestSentTime:a[zm],responseFinishedTime:a[Jm]})}),(function(e){u(18,e,null)})))}function H(t,n,i,r,a,o){var s,l=!0;t[cm]>0&&(l=Mg(n,t,((s={item:r})[sm]=a,s.sysProperties=o,s.context=i?i[fm]:null,s.aborted=!!i&&!!i[mm],s),"initializer")),l&&e[Cm](r,a,o)}O(),e.initialize=function(r,l,g,w){var k;e.isInitialized()||(D.initialize(r,l,g,w),T=oc(ro("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(n){e[ym](xo(n,(function(n){var i=xc(null,n.cfg,e[bm]);a=i.getExtCfg(t.identifier,Bg),A=a.distributedTracingMode,o=a[xm],s=a[Am],p=a[Im],f=a[Pm],b=[].concat(a[Dm]||[],!1!==a.addIntEndpoints?Ug:[]),_=a[Lm],d=0===A||1===A,c=1===A||2===A,p&&(h=S),v=!!a[Om],j=a.maxAjaxPerfLookupAttempts,x=a[Mm],E=a.ignoreHeaders,I=a.appId})))}(r),function(e,t){var n,i,r=!1;if(za()){var a=XMLHttpRequest[ai];r=!(ie(a)||ie(a.open)||ie(a.send)||ie(a.abort))}var o=Fa();if(o&&o<9&&(r=!1),r)try{var s=new XMLHttpRequest,l={xh:[],i:(n={},n[t]={},n)};s[vg]=l;var u=XMLHttpRequest[ai].open;XMLHttpRequest[ai].open=u}catch(t){r=!1,Ig(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((i={})[ag]=xe(t),i))}return r}(e,S)&&e[ym](xo(a,(function(){v=!!a[Om],o=a[xm],v||i||(N(XMLHttpRequest,"open",{ns:T,req:function(t,n,i,r){if(!v){var a=t[um],l=jg(a,S);!R(a,i)&&U(a,l,!0)&&(l&&l.xhrMonitoringState[Vm]||(l=function(t,n,i,r){var a,o=B(),l=o&&o[Wm]()||Ol(),u=Je(Ol(),0,16),c=t[vg]=t[vg]||{xh:[],i:{}},d=c.i=c.i||{},h=d[S]=d[S]||new mg(l,u,e[gg](),null===(a=e.core)||void 0===a?void 0:a.getTraceCtx());return h[pm]=o&&o[Gm](),h[Xm]=n,h[lm]=i,h.xhrMonitoringState[Vm]=!0,h[wm]={},h.async=r,h[Km]=s,h}(a,n,i,r)),function(t,n){n.xhrMonitoringState[Ym]=sc(t,"readystatechange",(function(){var i;try{t&&4===t.readyState&&U(t,n)&&function(t){var n=jg(t,S);function i(n,i){var r=i||{};r.ajaxDiagnosticsMessage=Ag(t,S),n&&(r.exception=xe(n)),Pg(e,14,Cg+"ajax call"+Sg,r)}n[Jm]=tu(),n[Um]=t[Um],V("xmlhttprequest",n,(function(){try{var r=n[$m]("Ajax",o,(function(){var n,i=((n={statusText:t[Bm]})[Fm]=null,n[sg]=function(t){var n;try{var i=t[eg]();if(null!==i&&-1!==Lg(i[jm](),Hl[8]))return eu(t.getResponseHeader(Hl[0]))}catch(i){Pg(e,18,wg,((n={})[og]=Ag(t,S),n[ag]=xe(i),n))}}(t),n.type=t.responseType,n[Qm]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[Qm]}catch(e){}return null}(t),n.response=t[Zm],n);if(m){var r=t[eg]();if(r){var a=en(r).split(/[\r\n]+/),o={};Nt(a,(function(e){var t=e.split(": "),n=t.shift(),i=t.join(": ");M(n)&&(o[n]=i)})),i[Fm]=o}}return i})),a=void 0;try{_&&(a=_({status:t[Um],xhr:t}))}catch(t){Pg(e,104,kg)}if(r){void 0!==a&&(r[sm]=ui(ui({},r.properties),a));var s=n[tg]();H(C,e[bm],n,r,null,s)}else i(null,{requestSentTime:n[zm],responseFinishedTime:n[Jm]})}finally{try{var l=(t[vg]||{i:{}}).i||{};l[S]&&(l[S]=null)}catch(e){}}}),(function(e){i(e,null)}))}(t)}catch(n){var r=xe(n);r&&-1!==Lg(r[jm](),"c00c023f")||Ig(e,16,bg+" 'readystatechange' event handler"+Tg,((i={})[og]=Ag(t,S),i[ag]=r,i))}}),T)}(a,l))}},hkErr:Dg(e,15,bg+".open"+Tg)}),N(XMLHttpRequest,"send",{ns:T,req:function(t,n){if(!v){var i=t[um],r=jg(i,S);U(i,r)&&!r.xhrMonitoringState[qm]&&(F("xhr",r),r[zm]=tu(),e[_m](r,void 0,void 0,i),r.xhrMonitoringState[qm]=!0)}},hkErr:Dg(e,17,bg+Tg)}),N(XMLHttpRequest,"abort",{ns:T,req:function(e){if(!v){var t=e[um],n=jg(t,S);U(t,n)&&!n.xhrMonitoringState[Hm]&&(n[mm]=1,n.xhrMonitoringState[Hm]=!0)}},hkErr:Dg(e,13,bg+".abort"+Tg)}),N(XMLHttpRequest,"setRequestHeader",{ns:T,req:function(e,t,n){if(!v){var i=e[um],r=jg(i,S);r&&U(i,r)&&(function(e,t,n){if(e){var i=(e[vg]||{}).xh;i&&i.push({n:t,v:n})}}(i,t,n),o&&M(t)&&r&&(r[wm][t]=n))}},hkErr:Dg(e,71,bg+".setRequestHeader"+Tg)}),i=!0)}))),function(){var t,r=!(t=dt())||ie(t.Request)||ie(t.Request[ai])||ie(t[yg])?null:t[yg];if(r){var l=dt(),u=r.polyfill;e[ym](xo(a,(function(){y=!!a[Nm],m=a[Rm],y||n?u&&!P&&(L(Bc(l,yg,{ns:T,req:function(e,t,n){R(null,t,n)}})),P=!0):(L(Bc(l,yg,{ns:T,req:function(t,r,a){var l;if(!y&&n&&!R(null,r,a)&&(!u||!i)){var c=t.ctx();l=function(t,n){var i,r,a=B(),l=a&&a[Wm]()||Ol(),u=Je(Ol(),0,16),c=new mg(l,u,e[gg](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());if(c[pm]=a&&a[Gm](),c[zm]=tu(),c[Km]=s,""===(r=t instanceof Request?(t||{}).url||"":t)){var d=Na();d&&d.href&&(r=pn(d.href,"#")[0])}c[lm]=r;var h="GET";n&&n[Xm]?h=n[Xm]:t&&t instanceof Request&&(h=t[Xm]),c[Xm]=h;var p={};return o&&new Headers((n?n[Sm]:0)||t instanceof Request&&t[Sm]||{}).forEach((function(e,t){M(t)&&(p[t]=e)})),c[wm]=p,F(yg,c),c}(r,a);var d=e[_m](l,r,a);d!==a&&t.set(1,d),c.data=l}},rsp:function(t,n){if(!y){var i=t.ctx().data;i&&(t.rslt=t.rslt.then((function(t){return z(0,(t||{})[Um],n,t,i,(function(){var n,i=((n={statusText:(t||{})[Bm]})[Fm]=null,n[sg]=function(t){var n;if(t&&t[Sm])try{return eu(t[Sm].get(Hl[0]))}catch(i){Pg(e,18,wg,((n={fetchDiagnosticsMessage:q(t)})[ag]=xe(i),n))}}(t),n);if(m&&t){var r={};t.headers.forEach((function(e,t){M(t)&&(r[t]=e)})),i[Fm]=r}return i})),t})).catch((function(e){throw z(0,0,n,null,i,null,e.message||xe(e)),e})))}},hkErr:Dg(e,15,"Failed to monitor Window.fetch"+Tg)},!0,wt())),n=!0)}))),u&&(l[yg].polyfill=u)}}(),(k=e[bm].getPlugin(Ws))&&(u=k.plugin[fm]))},e._doTeardown=function(){O()},e.trackDependencyData=function(t,n){H(C,e[bm],null,t,n)},e[_m]=function(t,n,i,s){var l=e._currentWindowHost||r;if(function(e,t,n,i,r,a){var o;if(e[cm]>0){var s=((o={})[bm]=t,o.xhr=i,o.input=r,o.init=a,o.traceId=n[dm],o.spanId=n[hm],o.traceFlags=n[pm],o.context=n[fm]||{},o.aborted=!!n[mm],o);Mg(t,e,s,"listener"),n[dm]=s[gm],n[hm]=s[vm],n[pm]=s[pm],n[fm]=s[fm]}}(k,e[bm],t,s,n,i),n||""===n){if(Zl(a,t[Tm](),l)){i||(i={});var h=new Headers(i[Sm]||n instanceof Request&&n[Sm]||{});if(d){var p="|"+t[dm]+"."+t[hm];h.set(Hl[3],p),o&&(t[wm][Hl[3]]=p)}if((m=I||u&&u.appId())&&(h.set(Hl[0],Hl[2]+m),o&&(t[wm][Hl[0]]=Hl[2]+m)),c){ie(g=t[pm])&&(g=1);var f=zl(Fl(t[dm],t[hm],g));h.set(Hl[4],f),o&&(t[wm][Hl[4]]=f)}i[Sm]=h}return i}if(s){var m,g;if(Zl(a,t[Tm](),l))d&&(xg(s,Hl[3])?Pg(e,71,"Unable to set ["+Hl[3]+"] as it has already been set by another instance"):(p="|"+t[dm]+"."+t[hm],s[km](Hl[3],p),o&&(t[wm][Hl[3]]=p))),(m=I||u&&u.appId())&&(xg(s,Hl[0])?Pg(e,71,"Unable to set ["+Hl[0]+"] as it has already been set by another instance"):(s[km](Hl[0],Hl[2]+m),o&&(t[wm][Hl[0]]=Hl[2]+m))),c&&(ie(g=t[pm])&&(g=1),xg(s,Hl[4])?Pg(e,71,"Unable to set ["+Hl[4]+"] as it has already been set by another instance"):(f=zl(Fl(t[dm],t[hm],g)),s[km](Hl[4],f),o&&(t[wm][Hl[4]]=f)));return s}},e[Cm]=function(t,n,i){if(-1===f||l=2)try{var a=+r[1]||0,o=+r[2]||0;isNaN(a)||a<=0?Ho(l,2,27,"AI session acquisition date is 0"+i):isNaN(o)||o<=0?Ho(l,2,27,"AI session renewal date is 0"+i):r[0]&&(e.id=r[0],e[fv]=a,e[mv]=o,n=!0)}catch(e){Ho(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+i+" - "+sa(e),{exception:xe(e)})}return n}function d(e,n){var i=e[fv];e[mv]=n;var l,c=s,d=i+o-n,h=[e.id,i,n];l=d0?l:null,p),a=n}i&&i.add(n),e[hv]=new bv,e[Gg]=function(){var n=Kt(),i=!1,h=e[hv];if(h.id||(i=!function(e){var t=!1,n=u.get(r);if(n&&oe(n.split))t=c(e,n);else{var i=Bs(l,r);i&&(t=c(e,i))}return t||!!e.id}(h)),!i&&o>0){var p=n-h[fv],f=n-h[mv];i=(i=(i=p<0||f<0)||p>o)||f>s}i?function(n){var i=t[cv]||Za;e.automaticSession.id=i(t[uv]||22),e[hv][fv]=n,d(e[hv],n),Us()||Ho(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(n):(!a||n-a>6e4)&&d(h,n)},e.backup=function(){var t,n,i,a=e[hv];t=a.id,n=a[fv],i=a[mv],Fs(l,r,[t,n,i][gv]("|"))}}))}return e.__ieDyn=1,e}(),Tv=function(e,t,n,i){var r=this;r.traceID=e||Ol(),r.parentID=t;var a=Na();!n&&a&&a.pathname&&(n=a.pathname),r.name=il(i,n)};function Sv(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var wv=function(){function e(t,n,i){this.isNewUser=!1,this.isUserCookieSet=!1;var r,a=Vo(n),o=Pu(n);ti(e,this,(function(n){we(n,"config",{g:function(){return t}});var s=xo(t,(function(){var i=t[lv]||"";r=e.userCookieName+i;var s=o.get(r);if(s){n[Kg]=!1;var d=s.split(e[vv]);d[dv]>0&&(n.id=d[0],n[Xg]=!!n.id)}if(!n.id){n.id=l(),c(u(n.id)[gv](e[vv]));var h=(t[sv]||"")+"ai_session";!function(e,t){var n=Os();if(null!==n)try{return n[es](t),!0}catch(t){Ps=!1,Ho(e,2,5,"Browser failed removal of local storage item. "+sa(t),{exception:xe(t)})}}(a,h)}n[av]=t[av]||void 0;var p=o.get(e[yv]);if(p){var f=(p=decodeURI(p)).split(e[vv]);f[0]&&(n[pv]=f[0]),f[dv]>1&&f[1]&&(n[av]=f[1])}}));function l(){var e=t||{};return(e[cv]||Za)(e[uv]?t[uv]:22)}function u(e){var t=oa(new Date);return n.accountAcquisitionDate=t,n[Kg]=!0,[e,t]}function c(e){n[Xg]=o.set(r,e,31536e3)}i&&i.add(s),n.setAuthenticatedUserContext=function(t,i,r){if(void 0===r&&(r=!1),!Sv(t)||i&&!Sv(i))Ho(a,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{n[pv]=t;var s=n[pv];i&&(n[av]=i,s=[n[pv],n.accountId][gv](e[vv])),r&&o.set(e[yv],encodeURI(s))}},n.clearAuthenticatedUserContext=function(){n[pv]=null,n[av]=null,o.del(e[yv])},n[Gg]=function(t){n.id===t&&n[Xg]||c(u(t||l())[gv](e[vv]))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),kv="ext",Cv="tags";function Ev(e,t){e&&e[t]&&0===Me(e[t])[dv]&&delete e[t]}function jv(){return null}var xv,Av,Iv=function(){function e(t,n,i,r){var a=this,o=t.logger;ti(e,this,(function(e){if(e.appId=jv,e[ov]=jv,e.application=new Vg,e.internal=new zg(n,r),mt()){e[Wg]=new _v(n,t,r),e.device=new qg,e.location=new Hg,e.user=new wv(n,t,r);var s,l=void 0,u=void 0;i&&(l=i.getTraceId(),u=i.getSpanId(),s=i.getName()),e[Qg]=new Tv(l,u,s,o),e.session=new bv}e[ov]=function(){var t=e.session,n=null;if(t&&ae(t.id))n=t.id;else{var i=(e[Wg]||{})[hv];n=i&&ae(i.id)?i.id:null}return n},e[Jg]=function(t,n){la(ua(t.ext,"app"),"sesId",e[ov](),ae)},e[nv]=function(t,n){la(t.ext,"os",e.os)},e[$g]=function(t,n){var i=e.application;if(i){var r=ua(t,Cv);la(r,lp.applicationVersion,i.ver,ae),la(r,lp.applicationBuild,i.build,ae)}},e[Zg]=function(t,n){var i=e.device;if(i){var r=ua(ua(t,kv),op);la(r,"localId",i.id,ae),la(r,"ip",i.ip,ae),la(r,"model",i.model,ae),la(r,"deviceClass",i.deviceClass,ae)}},e[rv]=function(t,n){var i=e.internal;if(i){var r=ua(t,Cv);la(r,lp.internalAgentVersion,i.agentVersion,ae),la(r,lp.internalSdkVersion,il(o,i.sdkVersion,64),ae),t.baseType!==Fo.dataType&&t.baseType!==gl.dataType||(la(r,lp.internalSnippet,i.snippetVer,ae),la(r,lp.internalSdkSrc,i.sdkSrc,ae))}},e[iv]=function(e,t){var n=a.location;n&&la(ua(e,Cv,[]),lp.locationIp,n.ip,ae)},e[ev]=function(t,n){var i=e[Qg];if(i){var r=ua(ua(t,kv),sp,{traceID:void 0,parentID:void 0});la(r,"traceID",i.traceID,ae,ie),la(r,"name",i.name,ae,ie),la(r,"parentID",i.parentID,ae,ie)}},e.applyWebContext=function(e,t){var n=a.web;n&&la(ua(e,kv),"web",n)},e[tv]=function(t,n){var i=e.user;if(i){la(ua(t,Cv,[]),lp.userAccountId,i[av],ae);var r=ua(ua(t,kv),ap);la(r,"id",i.id,ae),la(r,"authId",i[pv],ae)}},e.cleanUp=function(e,t){var n=e.ext;n&&(Ev(n,op),Ev(n,ap),Ev(n,"web"),Ev(n,"os"),Ev(n,"app"),Ev(n,sp))}}))}return e.__ieDyn=1,e}(),Pv=null,Dv=Ne(((xv={})[av]=Pv,xv.sessionRenewalMs=18e5,xv.samplingPercentage=100,xv.sessionExpirationMs=864e5,xv.cookieDomain=Pv,xv.sdkExtension=Pv,xv.isBrowserLinkTrackingEnabled=!1,xv.appId=Pv,xv[ov]=Pv,xv[sv]=Av,xv.sessionCookiePostfix=Av,xv[lv]=Av,xv[uv]=22,xv[cv]=Pv,xv));const Lv=function(e){function t(){var n,i,r,a,o,s=e.call(this)||this;return s.priority=110,s.identifier=Ws,ti(t,s,(function(e,t){function s(){n=null,i=null,r=null,a=null,o=!0}s(),we(e,"context",{g:function(){return a}}),e.initialize=function(s,l,u,c){t.initialize(s,l,u,c),function(t){var s=e.identifier,l=e.core;e._addHook(xo(t,(function(){var i=xc(null,t,l);t.storagePrefix&&Rs(t.storagePrefix),o=!1!==t.disableUserInitMessage,n=i.getExtCfg(s,Dv),e._extConfig=n}))),r=l[Yg](!1),a=new Iv(l,n,r,e._unloadHooks),i=iu(e.context[Qg],r),l.setTraceCtx(i),e.context.appId=function(){var e=l.getPlugin(Gs);return e?e.plugin._appId:null}}(s)},e.processTelemetry=function(t,n){if(!ie(t)){n=e._getTelCtx(n),t.name===gl.envelopeType&&n.diagLog().resetInternalMessageCount();var i=a||{};i.session&&"string"!=typeof a.session.id&&i[Wg]&&i[Wg][Gg]();var r=i.user;if(r&&!r[Xg]&&r[Gg](i.user.id),function(t,n){ua(t,"tags",[]),ua(t,"ext",{});var i=e.context;i[Jg](t,n),i[$g](t,n),i[Zg](t,n),i[ev](t,n),i[tv](t,n),i[nv](t,n),i.applyWebContext(t,n),i[iv](t,n),i[rv](t,n),i.cleanUp(t,n)}(t,n),r&&r[Kg]&&(r[Kg]=!1,!o)){var s=new Fo(72,(_t()||{}).userAgent||"");!function(e,t,n){zo(e)[dr](1,n)}(n.diagLog(),0,s)}e.processNext(t,n)}},e._doTeardown=function(e,t){var n=(e||{}).core();n&&n[Yg]&&n[Yg](!1)===i&&n.setTraceCtx(r),s()}})),s}return di(t,e),t.__ieDyn=1,t}(Wc);var Ov,Mv,Nv,Rv,Uv,Bv="AuthenticatedUserContext",Fv="track",Vv="snippet",qv="flush",zv="pollInternalLogs",Hv="getPlugin",Wv="evtNamespace",Gv=Fv+"Event",Xv=Fv+"Trace",Kv=Fv+"Metric",Yv=Fv+"PageView",Qv=Fv+"Exception",Jv=Fv+"DependencyData",$v="set"+Bv,Zv="clear"+Bv,ey="version",ty="queue",ny="connectionString",iy="instrumentationKey",ry="instrumentationkey",ay="userOverrideEndpointUrl",oy="endpointUrl",sy="ingestionendpoint",ly="onunloadFlush",uy="context",cy="addHousekeepingBeforeUnload",dy="sendMessage",hy=[Vv,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],py="iKeyUsage",fy="CdnUsage",my="SdkLoaderVer",gy=void 0,vy={disabled:!0,limit:uu({samplingRate:100,maxSendNumber:1}),interval:uu({monthInterval:3,daysOfMonth:[28]})},yy=((Ov={})[ny]=gy,Ov[oy]=gy,Ov[iy]=gy,Ov[ay]=gy,Ov.diagnosticLogInterval=du((function(e){return e&&e>0}),1e4),Ov.featureOptIn=((Mv={})[py]={mode:3},Mv[fy]={mode:2},Mv[my]={mode:2},Mv),Ov.throttleMgrCfg=uu(((Nv={})[109]=uu(vy),Nv[106]=uu(vy),Nv[111]=uu(vy),Nv[110]=uu(vy),Nv)),Ov.extensionConfig=uu(((Rv={}).AppInsightsCfgSyncPlugin=uu({cfgUrl:"https:/https://www.microsoft.com/js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),Rv)),Ov),by=function(){function e(t){var n,i,r,a,o,s,l,u,c,d,h,p,f,m,g=this;ti(e,this,(function(e){y(),we(e,"config",{g:function(){return u}}),Nt(["pluginVersionStringArr","pluginVersionString"],(function(t){we(e,t,{g:function(){return l?l[t]:null}})})),a=""+(t.sv||t[ey]||""),t[ty]=t[ty]||[],t[ey]=t[ey]||2;var v=jo(t.config||{},yy);function y(){o=ro("AISKU"),s=null,n=null,i=null,r=null,a=null,h=null,p=!1,f=!1,m=!1,d=new Rh}function b(){var e;s&&(cc([Ku,Xu,Gu],null,s),e=oc(Yu,s),cc([Gu],null,e),cc([Wu],null,e))}function _(e){l.addUnloadHook(e)}u=v.cfg,c=new Zd,we(e,"appInsights",{g:function(){return c}}),i=new Lv,n=new Fg,r=new qf,l=new am,we(e,"core",{g:function(){return l}}),_(xo(v,(function(){var e=u[ny];function t(){return Th((function(t,n){nh(e,(function(e){var n=e&&e.value,i=null;!e.rejected&&n&&(u[ny]=n,i=zf(n)),t(i)}))}))}if(pe(e)){var n=Th((function(e,n){t().then((function(t){var n=u[iy];n=t&&t[ry]||n,e(n)})).catch((function(t){e(null)}))})),i=u[ay];ie(i)&&(i=Th((function(e,n){t().then((function(t){var n=u[oy],i=t&&t[sy];e(n=i?i+Zs:n)})).catch((function(t){e(null)}))}))),u[iy]=n,u[oy]=i}if(ae(e)){var r=zf(e),a=r[sy];u.endpointUrl=u[ay]?u[ay]:a+Zs,u[iy]=r[ry]||u[iy]}u.endpointUrl=u[ay]?u[ay]:u[oy]}))),e[Vv]=t,e[qv]=function(e,t){var n;return void 0===e&&(e=!0),yc(l,(function(){return"AISKU.flush"}),(function(){e&&!t&&(n=wh((function(e){t=e})));var i=1,r=function(){0==--i&&t()};Nt(l.getChannels(),(function(t){t&&(i++,t[qv](e,r))})),r()}),null,e),n},e[ly]=function(e){void 0===e&&(e=!0),Nt(l.getChannels(),(function(t){t[ly]?t[ly]():t[qv](e)}))},e.loadAppInsights=function(t,o,s){return void 0===t&&(t=!1),t&&function(){throw Vt||(Vt=Xt("UnsupportedError")),new Vt("Legacy Mode is no longer supported")}(),yc(e.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(u,[r,i,n,c,d],o,s),we(e,"context",{g:function(){return i[uy]}}),h||(h=new Hf(l));var t=function(){if(Uv)return Uv;var e=null;try{var t=(document||{}).currentScript;t&&(e=t.src)}catch(e){}if(e){try{var n=e.toLowerCase();if(n){var i="";Nt([":/https://www.microsoft.com/js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(e,t){if(-1!==yn(n,e))return i="cdn"+(t+1),-1===yn(n,"/scripts/")&&(-1!==yn(n,"/next/")?i+="-next":-1!==yn(n,"/beta/")&&(i+="-beta")),Uv=i+"",-1}))}}catch(e){}Uv=e}return Uv}();t&&e[uy]&&(e[uy].internal.sdkSrc=t),function(t){if(t){var n="";ie(a)||(n+=a),e[uy]&&e[uy].internal&&(e[uy].internal.snippetVer=n||"-"),be(e,(function(e,n){ae(e)&&!oe(n)&&e&&"_"!==e[0]&&-1===Rt(hy,e)&&t[e]!==n&&(t[e]=n)}))}}(e[Vv]),e.emptyQueue(),e[zv](),e[cy](e),_(xo(v,(function(){var t=!1;u.throttleMgrCfg[109]&&(t=!u.throttleMgrCfg[109].disabled),!h.isReady()&&u.extensionConfig&&u.extensionConfig[d.identifier]&&t&&h.onReadyState(!0),p||u[ny]||!ma(py,u)||(h[dy](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),p=!0),!f&&e[uy].internal.sdkSrc&&-1!=e[uy].internal.sdkSrc.indexOf("az416426")&&ma(fy,u)&&(h[dy](110,"See Cdn support notice at aka.ms/JsActiveCdn"),f=!0),!m&&parseInt(a)<6&&ma(my,u)&&(h[dy](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),m=!0)})))})),e},e.updateSnippetDefinitions=function(t){!function(e,t,n){if(e&&t&&se(e)&&se(t)){var i=function(i){if(ae(i)){var r=t[i];oe(r)?n&&!n(i)||(e[i]=ca(t,i)):n&&!n(i)||(ve(e,i)&&delete e[i],we(e,i,{g:function(){return t[i]},s:function(e){t[i]=e}}))}};for(var r in t)i(r)}}(t,e,(function(e){return e&&-1===Rt(hy,e)}))},e.emptyQueue=function(){try{if(le(e.snippet[ty])){for(var t=e.snippet[ty].length,n=0;n0&&(r=uc(e,t,null,i)),r}([Ku,Xu,Gu],n,c,s)&&(i=!0),dc(n,c,s)&&(i=!0),i||(u=_t())&&u.product&&"ReactNative"===u.product||Ho(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),i||o.disableFlushOnUnload||dc(n,c,s)})))}},e.getSender=function(){return r},e.unload=function(t,n,i){var r,a=!1;return t&&!n&&(r=wh((function(e){n=e}))),e[ly](t),b(),l.unload&&l.unload(t,(function(e){a||(a=!0,y(),n&&n(e))}),i),r},ha(e,c,["getCookieMgr",Gv,Yv,"trackPageViewPerformance",Qv,"_onerror",Xv,Kv,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),ha(e,(function(){return n}),[Jv,"addDependencyListener","addDependencyInitializer"]),ha(e,l,["addTelemetryInitializer",zv,"stopPollingInternalLogs",Hv,"addPlugin",Wv,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),ha(e,(function(){var e=i[uy];return e?e.user:null}),[$v,Zv])}))}return e.prototype.addDependencyInitializer=function(e){return null},e}();const _y=class{constructor(e,t,n=!1,i){this.reporterName="Reporter",this._playerInfo=e,this._player=t,this._isDebugMode=n,i&&(this.reporterName=i)}log(e){this._isDebugMode&&console.log(JSON.stringify(e),this.reporterName)}get playerInfo(){return this._playerInfo}set playerInfo(e){this._playerInfo=e}reportNominalMetric(e,t){if(this.shouldEmitNominalMetric(e)){const n=this.formatNominalMetric(e,this.getBaseTelemetryData(),t);this.log(n),this.emitTelemetry(n)}}reportNumericMetric(e,t){if(this.shouldEmitNumericMetric(e)){const n=this.formatNumericMetric(e,t,this.getBaseTelemetryData());this.log(n),this.emitTelemetry(n)}}reportError(e){if(this.shouldEmitError(e.errorType)){const t=this.formatError(e,this.getBaseTelemetryData());this.log(t),this.emitTelemetry(t)}}getBaseTelemetryData(){var e,t,n,i,r,a,o,s;return{playerInstanceId:this._playerInfo.playerInstanceId,playerVersionNumber:this._playerInfo.playerVersionNumber,playerUrl:this._playerInfo.playerUrl,title:this._playerInfo.title,videoId:this._playerInfo.videoId,videoElapsedTime:null!==(t=null===(e=this._player)||void 0===e?void 0:e.currentTime())&&void 0!==t?t:0,videoDuration:null!==(i=null===(n=this._player)||void 0===n?void 0:n.duration())&&void 0!==i?i:0,language:null===(r=this._player)||void 0===r?void 0:r.language(),playerState:{autoplay:null===(a=this._player)||void 0===a?void 0:a.autoplay(),muted:null===(o=this._player)||void 0===o?void 0:o.muted(),loop:null===(s=this._player)||void 0===s?void 0:s.loop()}}}},Ty=class extends _y{constructor(e,t,n=!1){super(e,t,n,"AppInsightsReporter"),this.hasEmittedFirstNonUmpMessage=!1,this.formatNominalMetric=()=>{throw new Error("Unsupported by AppInsights reporter.")},this.shouldEmitNominalMetric=()=>!1,this.shouldEmitNumericMetric=e=>Object.values(k).includes(e),this.shouldEmitError=()=>!0,this.isException=e=>void 0!==e.exception;try{this._appInsights=this.initAppInsights()}catch(e){n&&console.error("Error Initializing AppInsights.")}}initAppInsights(){const e=new by({config:{connectionString:"InstrumentationKey=81bc6725-8164-4f38-93f8-ea681394304b;IngestionEndpoint=https://westus2-2.in.applicationinsights.azure.com/;LiveEndpoint=https://westus2.livediagnostics.monitor.azure.com/;ApplicationId=ef77fed2-4fcc-4568-aed4-b87c867a1e21",disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0}});return e.loadAppInsights(),e.addTelemetryInitializer(this.telemetryInitializer.bind(this)),e}telemetryInitializer(e){return e.baseData=e.baseData||{},e.baseData.properties=Object.assign(Object.assign({},e.baseData.properties),{playerInstanceId:this._playerInfo.playerInstanceId,playerVersionNumber:this._playerInfo.playerVersionNumber,uri:window.location.href,partnerName:this._playerInfo.partnerName,deliveryMethod:"CDN"}),document.referrer&&document.referrer!==window.location.href&&(e.baseData.properties.referrer=document.referrer),e.baseData.properties.ump?(delete e.baseData.properties.ump,!0):(e.baseData.properties.nonump=!0,!this.hasEmittedFirstNonUmpMessage&&(this.hasEmittedFirstNonUmpMessage=!0,!0))}emitTelemetry(e){var t,n;this.isException(e)?null===(t=this._appInsights)||void 0===t||t.trackException(e):null===(n=this._appInsights)||void 0===n||n.trackMetric({name:e.name,average:e.average,properties:e.properties})}formatNumericMetric(e,t,n){return{name:e,average:t,properties:{playerUrl:n.playerUrl,language:n.language,ump:!0}}}formatError(e,t){return{exception:Object.assign(new Error(e.errorDescription),{name:e.errorType}),properties:{playerUrl:t.playerUrl,language:t.language,errorMessage:e.errorDescription,ump:!0}}}};var Sy;!function(e){e[e.VideoSeen=239]="VideoSeen",e[e.VideoStart=240]="VideoStart",e[e.VideoPause=241]="VideoPause",e[e.VideoContinue=242]="VideoContinue",e[e.VideoCheckpoint=243]="VideoCheckpoint",e[e.VideoJump=244]="VideoJump",e[e.VideoComplete=245]="VideoComplete",e[e.VideoBuffering=246]="VideoBuffering",e[e.VideoError=247]="VideoError",e[e.VideoMute=248]="VideoMute",e[e.VideoUnmute=249]="VideoUnmute",e[e.VideoFullscreen=250]="VideoFullscreen",e[e.VideoUnfullscreen=251]="VideoUnfullscreen",e[e.VideoReplay=252]="VideoReplay",e[e.VideoPlayerLoad=253]="VideoPlayerLoad",e[e.VideoPlayerClick=254]="VideoPlayerClick",e[e.VideoVolumeControl=255]="VideoVolumeControl",e[e.VideoAudioTrackControl=256]="VideoAudioTrackControl",e[e.VideoClosedCaptionControl=257]="VideoClosedCaptionControl",e[e.VideoClosedCaptionStyle=258]="VideoClosedCaptionStyle",e[e.VideoResolutionControl=259]="VideoResolutionControl",e[e.VideoUndefinedEvent=0]="VideoUndefinedEvent"}(Sy||(Sy={}));const wy={[Sy.VideoCheckpoint]:{actionType:"A",telemetryMethodType:"capturePageAction"},[Sy.VideoComplete]:{actionType:"A",telemetryMethodType:"capturePageAction"},[Sy.VideoBuffering]:{actionType:"A",telemetryMethodType:"captureContentUpdate"},[Sy.VideoPlayerLoad]:{actionType:"A",telemetryMethodType:"captureContentUpdate"},[Sy.VideoSeen]:{actionType:"O",telemetryMethodType:"captureContentUpdate"},[Sy.VideoUndefinedEvent]:{actionType:"O",telemetryMethodType:"captureContentUpdate"},[Sy.VideoError]:{actionType:"O",telemetryMethodType:"captureContentUpdate"},[Sy.VideoReplay]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoStart]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoPause]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoContinue]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoJump]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoMute]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoUnmute]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoFullscreen]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoUnfullscreen]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoPlayerClick]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoVolumeControl]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoAudioTrackControl]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoClosedCaptionControl]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoClosedCaptionStyle]:{actionType:"CL",telemetryMethodType:"capturePageAction"},[Sy.VideoResolutionControl]:{actionType:"CL",telemetryMethodType:"capturePageAction"}};class ky extends _y{constructor(e,t,n=!1){super(e,t,n,"MartechReporter"),this.formatNominalMetric=(e,t,n)=>{const i=ky.metricNameMap[e],{actionType:r}=wy[i];return{actionType:r,behavior:i,contentTags:Object.assign(Object.assign({},this.createContentTags(t)),{additionalData:n})}},this.formatNumericMetric=()=>{throw new Error("Unsupported by Martech reporter.")},this.formatError=(e,t)=>({actionType:"O",behavior:ky.metricNameMap.ContentError,contentTags:Object.assign(Object.assign({},this.createContentTags(t)),{errorDetails:e})}),this.shouldEmitNominalMetric=e=>void 0!==ky.metricNameMap[e],this.shouldEmitNumericMetric=()=>!1,this.shouldEmitError=()=>!0,this.createContentTags=e=>({playerInstanceId:e.playerInstanceId,containerName:"Universal Media Player",compnm:"Universal Media Player",deliveryMethod:"CDN",vidnm:e.title,vidid:e.videoId,vidpct:Math.round(e.videoElapsedTime/e.videoDuration*100),viddur:Math.round(e.videoDuration),vidwt:Math.round(e.videoElapsedTime),playerState:e.playerState})}emitTelemetry(e){var t,n,i;const r=null===window||void 0===window?void 0:window.owap,a=null===window||void 0===window?void 0:window.awa,{telemetryMethodType:o}=wy[e.behavior];(null==r?void 0:r.isInitialized())?null===(t=null==r?void 0:r[o])||void 0===t||t.call(r,null,e):(null==a?void 0:a.isInitialized)&&(null===(i=null===(n=null==a?void 0:a.ct)||void 0===n?void 0:n[o])||void 0===i||i.call(n,null,e))}}ky.metricNameMap={BufferComplete:Sy.VideoBuffering,CommonPlayerImpression:Sy.VideoPlayerLoad,ContentCheckpoint:Sy.VideoCheckpoint,ContentComplete:Sy.VideoComplete,ContentError:Sy.VideoError,FullScreenEnter:Sy.VideoFullscreen,FullScreenExit:Sy.VideoUnfullscreen,InviewEnter:Sy.VideoSeen,Mute:Sy.VideoMute,Pause:Sy.VideoPause,Play:Sy.VideoStart,PlayerError:Sy.VideoError,Replay:Sy.VideoReplay,Resume:Sy.VideoContinue,Seek:Sy.VideoJump,Unmute:Sy.VideoUnmute,VideoAudioTrackControl:Sy.VideoAudioTrackControl,VideoPlayerClick:Sy.VideoPlayerClick};const Cy=ky,Ey=class{constructor(e,t,n,i=!1){this._playerInfo={},this.reporters=[],this.playerInfo=e,n&&this.reporters.push(new Cy(e,t,i)),this.sampleInstance()&&this.reporters.push(new Ty(e,t,i))}get playerInfo(){return this._playerInfo}set playerInfo(e){this._playerInfo=e,e.partnerName||console.warn('"partnerName" is undefined and must be provided to the video player options.'),this.reporters.forEach((t=>t.playerInfo=e))}sampleInstance(){return 100*Math.random()<1}reportNominalMetric(e,t){this.reporters.forEach((n=>n.reportNominalMetric(e,t)))}reportNumericMetric(e,t){this.reporters.forEach((n=>n.reportNumericMetric(e,t)))}reportError(e){this.reporters.forEach((t=>t.reportError(e)))}},jy=class{constructor(e,t){this._listeners=[],this._player=e,this._reporter=t}get player(){return this._player}get reporter(){return this._reporter}get listeners(){return this._listeners}set listeners(e){this.dispose(),this._listeners=e,this._listeners.forEach((e=>{e.one?this.player.one(e.type,e.handler):this.player.on(e.type,e.handler)}))}dispose(){this._listeners.forEach((e=>this.player.off(e.type,e.handler))),this._listeners=[]}};var xy;!function(e){e.Abort="abort",e.CanPlay="canplay",e.CanPlayThrough="canplaythrough",e.DurationChange="durationchange",e.Emptied="emptied",e.Ended="ended",e.Error="error",e.LoadedData="loadeddata",e.LoadedMetadata="loadedmetadata",e.LoadStart="loadstart",e.Pause="pause",e.Play="play",e.Playing="playing",e.Progress="progress",e.RateChange="ratechange",e.Seeked="seeked",e.Seeking="seeking",e.Stalled="stalled",e.Suspend="suspend",e.TimeUpdate="timeupdate",e.VolumeChange="volumechange",e.Waiting="waiting",e.EnterPictureInPicture="enterpictureinpicture",e.LeavePictureInPicture="leavepictureinpicture",e.FullScreenChange="fullscreenchange",e.Resize="resize",e.AudioOnlyModeChange="audioonlymodechange",e.AudioPosterModeChange="audiopostermodechange",e.ControlsDisabled="controlsdisabled",e.ControlsEnabled="controlsenabled",e.DebugOn="debugon",e.DebugOff="debugoff",e.DisablePictureInPictureChanged="disablepictureinpicturechanged",e.Dispose="dispose",e.EnterFullWindow="enterFullWindow",e.ExitFullWindow="exitFullWindow",e.FullScreenError="fullscreenerror",e.LanguageChange="languagechange",e.PlayerReset="playerreset",e.PlayerSize="playerresize",e.PosterChange="posterchange",e.Ready="ready",e.TextData="textdata",e.UserActive="useractive",e.UserInactive="userinactive",e.UsingCustomControls="usingcustomcontrols",e.UsingNativeControls="usingnativecontrols"}(xy||(xy={}));const Ay=class extends jy{constructor(e,t){super(e,t),this.listeners=[{type:xy.Play,handler:this.onFirstPlay.bind(this),one:!0},{type:xy.Waiting,handler:this.onWait.bind(this)}]}onFirstPlay(){const e=performance.now();this.player.one(xy.Playing,(()=>{this.reporter.reportNumericMetric(k.InitialPlaybackStartDurationMs,performance.now()-e)}))}onWait(){const e=performance.now();this.player.one(xy.CanPlay,(()=>{this.reporter.reportNominalMetric(C.BufferComplete),this.reporter.reportNumericMetric(k.BufferDurationMs,performance.now()-e)}))}},Iy=class extends jy{constructor(e,t){super(e,t),this.listeners=[{type:xy.Play,handler:this.onePlay.bind(this),one:!0}]}onePlay(){this.reporter.reportNominalMetric(C.Play)}},Py=class extends jy{constructor(e,t){super(e,t),this.listeners=[{type:xy.FullScreenChange,handler:this.onFullScreenChange.bind(this)},{type:xy.EnterFullWindow,handler:this.onEnterFullWindow.bind(this)},{type:xy.ExitFullWindow,handler:this.onExitFullWindow.bind(this)}]}onFullScreenChange(){document.fullscreenElement===this.player.el()?this.reporter.reportNominalMetric(C.FullScreenEnter):this.reporter.reportNominalMetric(C.FullScreenExit)}onEnterFullWindow(){this.reporter.reportNominalMetric(C.FullScreenEnter)}onExitFullWindow(){this.reporter.reportNominalMetric(C.FullScreenExit)}},Dy=class extends jy{constructor(e,t){super(e,t),this.listeners=[{type:xy.Ready,handler:this.onReady.bind(this),one:!0}]}onReady(){this.reporter.reportNumericMetric(k.PlayerLoadDurationMs,_("optionsLoadComplete",this.player.id())-_("scriptLoaded",this.player.id())),this.reporter.reportNominalMetric(C.CommonPlayerImpression)}},Ly=[.25,.5,.75],Oy=class extends jy{constructor(e,t){super(e,t),this._futureCheckPoints=[...Ly],this.listeners=[{type:xy.TimeUpdate,handler:this.onTimeUpdate.bind(this)},{type:xy.Ended,handler:this.onEnd.bind(this),one:!0}]}onTimeUpdate(){this.updateCheckpoints()}onEnd(){this.reporter.reportNominalMetric(C.ContentComplete)}updateCheckpoints(){const e=this.player.currentTime()/this.player.duration();for(;e>=this._futureCheckPoints[0];)this._futureCheckPoints.shift(),this.reporter.reportNominalMetric(C.ContentCheckpoint)}},My=class extends jy{constructor(e,t){super(e,t),this._threshholdSeconds=.2,this.listeners=[{type:xy.Seeked,handler:this.onSeek.bind(this)}]}onSeek(){(this.player.currentTime()>=this._threshholdSeconds||0==this.player.currentTime())&&this.reporter.reportNominalMetric(C.Seek)}},Ny=class extends jy{constructor(e,t){super(e,t),this._previousMuteState=this.isMuted(e),this.listeners=[{type:xy.VolumeChange,handler:this.onVolumeChange.bind(this)}]}onVolumeChange(){const e=this.isMuted(this.player);e!==this._previousMuteState&&(this._previousMuteState=e,e?this.reporter.reportNominalMetric(C.Mute):this.reporter.reportNominalMetric(C.Unmute))}isMuted(e){return 0===e.volume()||e.muted()}};class Ry extends(T.default.getPlugin("plugin")){constructor(e,t){super(e,t),this.reporter=new Ey(t.playerInfo,e,t.reporting,t.isDebugMode),this._videoJsEventTrackers=[new Ay(this.player,this.reporter),new Py(this.player,this.reporter),new Dy(this.player,this.reporter),new Iy(this.player,this.reporter),new Oy(this.player,this.reporter),new My(this.player,this.reporter),new Ny(this.player,this.reporter)]}get playerInfo(){return this.reporter.playerInfo}set playerInfo(e){this.reporter.playerInfo=e}reportNominalMetric(e,t){this.reporter.reportNominalMetric(e,t)}reportNumericMetric(e,t){this.reporter.reportNumericMetric(e,t)}reportError(e){this.reporter.reportError(e)}dispose(){this._videoJsEventTrackers.forEach((e=>e.dispose))}static fromPlayer(e){var t;return null===(t=e[c.Telemetry])||void 0===t?void 0:t.call(e)}}const Uy=Ry,By={aar:["aa","Afar"],abk:["ab","Abkhazian"],afr:["af","Afrikaans"],aka:["ak","Akan"],amh:["am","Amharic"],arg:["an","Aragonese"],asm:["as","Assamese"],ava:["av","Avaric"],ave:["ae","Avestan"],aym:["ay","Aymara"],aze:["az","Azerbaijani"],bak:["ba","Bashkir"],bam:["bm","Bambara"],bel:["be","Belarusian"],ben:["bn","Bengali"],bih:["bh","Bihari"],bis:["bi","Bislama"],bod:["bo","Tibetan"],bos:["bs","Bosnian"],bre:["br","Breton"],bul:["bg","Bulgarian"],cat:["ca","Catalan"],ces:["cs","Czech"],cha:["ch","Chamorro"],che:["ce","Chechen"],chu:["cu","Church Slavic"],chv:["cv","Chuvash"],cor:["kw","Cornish"],cos:["co","Corsican"],cre:["cr","Cree"],cym:["cy","Welsh"],dan:["da","Danish"],deu:["de","German"],div:["dv","Divehi"],dzo:["dz","Dzongkha"],ell:["el","Greek"],eng:["en","English"],epo:["eo","Esperanto"],est:["et","Estonian"],eus:["eu","Basque"],ewe:["ee","Ewe"],fao:["fo","Faroese"],fas:["fa","Persian"],fij:["fj","Fijian"],fin:["fi","Finnish"],fra:["fr","French"],fry:["fy","Frisian"],ful:["ff","Fulah"],gla:["gd","Scottish"],gle:["ga","Irish"],glg:["gl","Gallegan"],glv:["gv","Manx"],grn:["gn","Guarani"],guj:["gu","Gujarati"],hat:["ht","Haitian"],hau:["ha","Hausa"],heb:["he","Hebrew"],her:["hz","Herero"],hin:["hi","Hindi"],hmo:["ho","Hiri Motu"],hrv:["hr","Croatian"],hun:["hu","Hungarian"],hye:["hy","Armenian"],ibo:["ig","Igbo"],ido:["io","Ido"],iii:["ii","Sichuan"],iku:["iu","Inuktitut"],ile:["ie","Interlingue"],ina:["ia","Interlingua"],ind:["id","Indonesian"],ipk:["ik","Inupiaq"],isl:["is","Icelandic"],ita:["it","Italian"],jav:["jv","Javanese"],jpn:["ja","Japanese"],kal:["kl","Greenlandic"],kan:["kn","Kannada"],kas:["ks","Kashmiri"],kat:["ka","Georgian"],kau:["kr","Kanuri"],kaz:["kk","Kazakh"],khm:["km","Khmer"],kik:["ki","Kikuyu"],kin:["rw","Kinyarwanda"],kir:["ky","Kirghiz"],kom:["kv","Komi"],kon:["kg","Kongo"],kor:["ko","Korean"],kua:["kj","Kwanyama"],kur:["ku","Kurdish"],lao:["lo","Lao"],lat:["la","Latin"],lav:["lv","Latvian"],lim:["li","Limburgish"],lin:["ln","Lingala"],lit:["lt","Lithuanian"],ltz:["lb","Luxembourgish"],lug:["lg","Ganda"],mah:["mh","Marshallese"],mal:["ml","Malayalam"],mar:["mr","Marathi"],mkd:["mk","Macedonian"],mlg:["mg","Malagasy"],mlt:["mt","Maltese"],mol:["ro","Romanian"],mon:["mn","Mongolian"],mri:["mi","Maori"],msa:["ms","Malay"],mya:["my","Burmese"],nau:["na","Nauru"],nav:["nv","Navajo"],nbl:["nr","South Ndebele"],nde:["nd","North Ndebele"],ndo:["ng","Ndonga"],nep:["ne","Nepali"],nld:["nl","Dutch"],nno:["nn","Norwegian Nynorsk"],nob:["nb","Norwegian Bokmål"],nor:["no","Norwegian"],nya:["ny","Nyanja"],oci:["oc","Occitan"],oji:["oj","Ojibwa"],ori:["or","Odia"],orm:["om","Oromo"],oss:["os","Ossetian"],pan:["pa","Panjabi"],pli:["pi","Pali"],pol:["pl","Polish"],por:["pt","Portuguese"],pus:["ps","Pushto"],que:["qu","Quechua"],roh:["rm","Raeto-Romance"],ron:["ro","Romanian"],run:["rn","Rundi"],sag:["sg","Sango"],san:["sa","Sanskrit"],sin:["si","Sinhalese"],slk:["sk","Slovak"],slv:["sl","Slovenian"],sme:["se","Northern Sami"],smo:["sm","Samoan"],sna:["sn","Shona"],snd:["sd","Sindhi"],som:["so","Somali"],sot:["st","Southern Sotho"],spa:["es","Spanish"],sqi:["sq","Albanian"],srd:["sc","Sardinian"],srp:["sr","Serbian"],ssw:["ss","Swati"],sun:["su","Sundanese"],swa:["sw","Swahili"],swe:["sv","Swedish"],tah:["ty","Tahitian"],tam:["ta","Tamil"],tat:["tt","Tatar"],tel:["te","Telugu"],tgk:["tg","Tajik"],tgl:["tl","Tagalog"],tha:["th","Thai"],tir:["ti","Tigrinya"],ton:["to","Tonga"],tsn:["tn","Tswana"],tso:["ts","Tsonga"],tuk:["tk","Turkmen"],tur:["tr","Turkish"],twi:["tw","Twi"],uig:["ug","Uighur"],ukr:["uk","Ukrainian"],urd:["ur","Urdu"],uzb:["uz","Uzbek"],ven:["ve","Venda"],vie:["vi","Vietnamese"],vol:["vo","Volap?k"],wln:["wa","Walloon"],wol:["wo","Wolof"],xho:["xh","Xhosa"],yid:["yi","Yiddish"],yor:["yo","Yoruba"],zha:["za","Zhuang"],zho:["zh","Chinese"],zul:["zu","Zulu"]},Fy={"ar-ab":"عربي","ar-xm":"عربي","ar-ma":"عربي","ar-sa":"عربي","eu-es":"Euskara","bg-bg":"Български","ca-es":"Català","zh-cn":"简体中文","zh-hk":"繁體中文","zh-tw":"繁體中文","hr-hr":"Hrvatski","cs-cz":"Čeština","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çais","fr-be":"Français","fr-ca":"Français","fr-fr":"Français","fr-xf":"Français","fr-ch":"Français","gl-es":"Galego","de-de":"Deutsch","de-at":"Deutsch","de-ch":"Deutsch","el-gr":"Ελληνικά","he-il":"עברית","hi-in":"हिंदी","hu-hu":"Magyar","is-is":"Íslenska","id-id":"Bahasa Indonesia","it-it":"Italiano","ja-jp":"日本語","kk-kz":"Қазақ","ko-kr":"한국어","lv-lv":"Latviešu","lt-lt":"Lietuvių","ms-my":"Bahasa Melayu (Asia Tenggara)‎","nb-no":"Norsk (bokmål)","nn-no":"Norsk (nynorsk)","fa-ir":"فارسی","pl-pl":"Polski","pt-br":"Português (Brasil)‎","pt-pt":"Português (Portugal)‎","ro-ro":"Română","ru-ru":"Русский","sr-latn-rs":"Srpski","sk-sk":"Slovenčina","sl-si":"Slovenski","es-ar":"Español","es-cl":"Español","es-co":"Español","es-cr":"Español","es-do":"Español","es-ec":"Español","es-us":"Español","es-gt":"Español","es-hn":"Español","es-xl":"Español","es-mx":"Español","es-ni":"Español","es-pa":"Español","es-py":"Español","es-pe":"Español","es-pr":"Español","es-es":"Español","es-uy":"Español","es-ve":"Español","sv-se":"Svenska","tl-ph":"Tagalog","th-th":"ไทย","tr-tr":"Türkçe","uk-ua":"Українська","ur-pk":"اردو","vi-vn":"Tiếng Việt","sl-sl":"Slovenian"},Vy=(e,t=!0)=>{var n,i,r,a;e=e.toLowerCase();const o=t?By[e]:null;return o?null!==(i=null!==(n=qy(o[0]))&&void 0!==n?n:o[1])&&void 0!==i?i:e:null!==(a=null!==(r=Fy[e])&&void 0!==r?r:qy(e))&&void 0!==a?a:e},qy=e=>{var t;return null===(t=Object.entries(Fy).find((([t])=>zy(t)===zy(e))))||void 0===t?void 0:t[1]},zy=e=>e.split("-")[0];class Hy extends(T.default.getComponent("MenuItem")){constructor(e,t){t.label=t.track.language.startsWith("dau-")?Vy(t.track.language.substring(4)):Vy(t.track.language)||t.track.language||"unknown",t.selected=t.track.enabled,super(e,t),this._telemetryHelper=Uy.fromPlayer(e),this._track=t.track;const n=e.audioTracks();this.addClass(`vjs-${this._track.kind}-menu-item`);const i=()=>this.handleTracksChange();n.addEventListener("change",i),this.on("dispose",(()=>{n.removeEventListener("change",i)}))}createEl(e){const t=super.createEl(e),n=t.querySelector(".vjs-menu-item-text");if(null!==n&&("main-desc"===this.options_.track.kind||this.options_.track.language.startsWith("dau-"))){t.classList.add("vjs-main-desc-menu-item");const e=document.createElement("span");e.classList.add("vjs-icon-placeholder"),n.appendChild(e);const i=document.createElement("span");i.classList.add("vjs-control-text"),i.textContent=this.localize("Descriptions"),n.appendChild(i)}return t}handleClick(e){super.handleClick(e),this._track.enabled||(this._telemetryHelper.reportNominalMetric(C.VideoAudioTrackControl,{userInteraction:{target:`Audio Track Selected: ${this._track.label}`}}),this._track.enabled=!0)}handleTracksChange(){this.selected(this._track.enabled)}}const Wy=Hy;class Gy extends(T.default.getComponent("MenuButton")){constructor(e,t){super(e,t),this.controlText("Audio Track"),e.one("loadedmetadata",(()=>{this.createItems(),this.update()}))}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(){const e=this.player_.audioTracks();return e.length<=1?[]:Array.from(e).map((e=>new Wy(this.player_,{track:e,label:e.label,selectable:!0,multiSelectable:!1}))).sort(((e,t)=>e.options_.label&&t.options_.label?e.options_.label>t.options_.label?1:-1:0))}}const Xy=Gy,Ky="vjs-hidden";class Yy extends(T.default.getComponent("Button")){constructor(e,t){super(e,t),this.controlText("Play Video"),e.one(l.Play,(()=>{this.getPlayToggle()||this.addClass("persist-big-button")}))}buildCSSClass(){return"vjs-big-play-button"}handleClick(){var e;this.player().paused()?null===(e=this.player().play())||void 0===e||e.then((()=>{this.controlText("Pause"),this.getNextFocus().focus()})):(this.player().pause(),this.controlText("Play"),this.getNextFocus().focus())}getNextFocus(){var e;return null!==(e=this.getPlayToggle())&&void 0!==e?e:this}getPlayToggle(){const e=this.player().getChild("controlBar"),t=null==e?void 0:e.getChild("playToggle");if(!(null==t?void 0:t.hasClass(Ky))&&!(null==e?void 0:e.hasClass(Ky)))return t}}const Qy=Yy,Jy=e=>void 0!==(null==e?void 0:e.createItems);class $y extends(T.default.getComponent("Menu")){constructor(e,t){super(e,t)}handleTapClick(e){if(e.stopPropagation(),!this.children())return;const t=this.children().filter((t=>t.el()===e.target))[0];Jy(t)||(this.menuButton_.unpressButton(),this.menuButton_.focus())}}const Zy=$y;class eb extends(T.default.getComponent("MenuButton")){constructor(e,t){super(e,t),this._menuStack=[t.initialStackRenderer],e.on(l.LoadedMetadata,(()=>this.unpressButton()))}unpressButton(){this._menuStack=[this._menuStack[0]],this.update(),super.unpressButton()}update(){var e,t;super.update(),this.player().trigger(l.LoadedMenu),(null===(t=null===(e=this.menu)||void 0===e?void 0:e.children())||void 0===t?void 0:t.length)?this.show():this.hide()}createMenu(){const e=new Zy(this.player(),{menuButton:this});return this.createItems().forEach((t=>{Jy(t)?t.createItemOptions().length&&e.addItem(t):e.addItem(t)})),e}createItems(){var e;return(null===(e=this._menuStack)||void 0===e?void 0:e.length)?this._menuStack[this._menuStack.length-1]():[]}softUpdate(){const e=this.createMenu();this.menu.dispose(),this.removeChild(this.menu),this.menu=e,this.addChild(e),this.player().trigger(l.LoadedMenu),this.pressButton()}onSubmenuSelect(e){this._menuStack.push((()=>e.createItems())),this.softUpdate()}onSubmenuBack(){this._menuStack.pop(),this.softUpdate()}}const tb=eb;class nb extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,{selectable:!0,label:t.label}),this._nestedMenuButtonParent=t.nestedMenuButtonParent,this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-sub-menu-back")}handleClick(e){this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:this.options_.label||"UnlabeledMenuItem",details:{menuDestination:this._nestedMenuButtonParent.name()}}}),super.handleClick(e),e.stopPropagation(),this._nestedMenuButtonParent.onSubmenuBack()}}const ib=nb;class rb extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,{selectable:!0,label:t.label}),this._player=e,this._telemetryHelper=Uy.fromPlayer(e),this._options=t,this.addClass("vjs-sub-menu-item")}createItems(){return[new ib(this._player,this._options),...this.createItemOptions()]}handleClick(e){this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:this._options.nestedMenuButtonParent.name(),details:{menuDestination:this._options.label}}}),super.handleClick(e),e.stopPropagation(),this._options.nestedMenuButtonParent.onSubmenuSelect(this)}}const ab=rb,ob={transcript:"Transcript",audio:"Audio",video:"Video",videoWithCC:"Video with closed captions"};class sb extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,{selectable:!0,label:ob[t.downloadableFile.mediaType]}),this._telemetryHelper=Uy.fromPlayer(e),this._url=t.downloadableFile.url}handleClick(e){this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Download - ${this.options_.label}`,details:{downloadDetail:this._url}}}),super.handleClick(e),window.open(this._url)}}const lb=sb,ub=class extends ab{constructor(e,t){super(e,t),this._downloadableFiles=t.downloadableFiles}createItemOptions(){return this._downloadableFiles.map((e=>(this.setAttribute("lang",e.locale),new lb(this.player(),{downloadableFile:e}))))}},cb=class extends tb{constructor(e,t){const n=Object.assign(Object.assign({},t),{initialStackRenderer:()=>{var e;return this.renderInitialStack(null!==(e=this._downloadableFiles)&&void 0!==e?e:[])}});super(e,n),this._downloadableFiles=[],this.controlText("Download")}set downloadableFiles(e){this._downloadableFiles=e}buildWrapperCSSClass(){return`vjs-download-menu ${super.buildWrapperCSSClass()}`}static updateDownloadableFiles(e,t){var n;const i=null===(n=e.controlBar)||void 0===n?void 0:n.getChild(u.DownloadMenuButton);i&&(i.downloadableFiles=t)}renderInitialStack(e){const t=e.reduce(((e,t)=>(e[t.locale]||(e[t.locale]=[]),e[t.locale].push(t),e)),{});return Object.entries(t).map((([e,t])=>new ub(this.player(),{downloadableFiles:t,label:Vy(e),nestedMenuButtonParent:this})))}},db=["HD","HQ","SD","LO"],hb=["facebook","twitter","linkedin","mail","copy"];o(6864);class pb extends(T.default.getComponent("MenuItem")){constructor(e,t){const{source:n,onClick:i}=t;super(e,{selectable:!0,label:n.quality,selected:n.selected}),this._source=n,this._onClick=i,this._telemetryHelper=Uy.fromPlayer(e)}handleClick(e){this._source.selected||(this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Quality - ${this._source.quality}`}}),e.stopPropagation(),this._onClick(),super.handleClick(e))}}const fb=pb,mb="vjs-quality-changing";class gb extends(T.default.getComponent("MenuButton")){constructor(e,t){super(e,t),this.controlText("Open quality selector menu"),this.selectSource=t=>yb(e,t,this),e.one(l.CanPlay,(()=>{this.el()&&this.update()})),T.default.use("*",(e=>({setSource:(t,n)=>{const i=e.currentSources().find((e=>e.selected));n(null,null!=i?i:t)}})))}createItems(){const e=this.player().currentSources();return function(e){return e.some((e=>"application/dash+xml"===e.type||"application/vnd.apple.mpegurl"===e.type))}(e)?this.adaptiveStreamingQualityOptions():this.mp4QualityOptions(e)}buildWrapperCSSClass(){return`vjs-quality-selector ${super.buildWrapperCSSClass()}`}mp4QualityOptions(e){return e.length<2?[]:db.map((t=>e.find((e=>e.quality===t)))).filter((e=>void 0!==e)).map((e=>new fb(this.player(),{source:e,onClick:()=>this.selectSource(e)})))}adaptiveStreamingQualityOptions(){const e=Array.from(this.player().qualityLevels());if(e.length<2||e.some((e=>void 0===e.height)))return[];const t=e.every((e=>e.enabled)),n=this.player().currentSrc(),i=this.player().currentType(),r=e.reduce(((e,t)=>(e.some((e=>e.height===t.height))||e.push(t),e)),[]).sort(((e,t)=>t.height-e.height));return[{src:n,type:i,quality:"Auto",selected:t},...r.map((e=>({src:n,type:i,quality:`${e.height}p`,selected:!t&&e.enabled})))].map((t=>new fb(this.player(),{source:t,onClick:()=>vb(e,t.quality)})))}}const vb=(e,t)=>{e.forEach((e=>{e.enabled=`${e.height}p`===t||"Auto"===t}))},yb=(e,t,n)=>{e.addClass(mb);const i=e.currentSources().map((e=>Object.assign(Object.assign({},e),{selected:e.src===t.src})));((e,t)=>{const n=e.currentTime(),i=e.playbackRate();e.src(t),e.ready((()=>{((e,t)=>{e.readyState()>=HTMLMediaElement.HAVE_FUTURE_DATA?t():e.one(l.CanPlay,(()=>t()))})(e,(()=>{e.currentTime(n),e.playbackRate(i),e.play()}))}))})(e,i),e.one(l.CanPlay,(()=>{e.removeClass(mb),n.el()&&(n.update(),n.unpressButton())}))},bb=gb,_b=class extends ab{constructor(e,t){super(e,t),this.playbackRateMenuButton=new(T.default.getComponent("playbackRateMenuButton"))(e)}createItemOptions(){return this.playbackRateMenuButton.createItems()}dispose(){this.playbackRateMenuButton.dispose(),super.dispose()}},Tb=class extends ab{constructor(e,t){super(e,t),this.qualityMenuButton=new(T.default.getComponent(u.QualitySelector))(e)}createItemOptions(){return this.qualityMenuButton.createItems()}dispose(){this.qualityMenuButton.dispose(),super.dispose()}},Sb=class extends ab{constructor(e,t,n){super(e,t),this._shareMenuButton=new(T.default.getComponent(u.ShareMenuButton))(e),this._shareMenuButton.shareOptions=n}get shareMenuButton(){return this._shareMenuButton}createItemOptions(){return this.shareMenuButton.createItems()}dispose(){this.shareMenuButton.dispose(),super.dispose()}},wb=class extends tb{constructor(e,t){const n=Object.assign(Object.assign({},t),{initialStackRenderer:()=>[new _b(e,{label:"Playback Rate",nestedMenuButtonParent:this}),new Tb(e,{label:"Quality",nestedMenuButtonParent:this}),new Sb(e,{label:"Share",nestedMenuButtonParent:this},this._shareOptions)]});super(e,n),this._shareOptions=[],this.controlText("More options")}set shareOptions(e){this._shareOptions=e}get shareOptions(){return this._shareOptions}buildWrapperCSSClass(){return`vjs-settings-menu ${super.buildWrapperCSSClass()}`}},kb=e=>encodeURIComponent(null!=e?e:window.location.href.replace("&jsapi=true","")),Cb={label:"Copy link"};class Eb extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,Cb),this._shareUrl=decodeURIComponent(kb(null==t?void 0:t.shareUrl)),this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-copy-option")}handleClick(e){this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Share - ${Cb.label}`,details:{shareDetail:this._shareUrl}}}),super.handleClick(e),navigator.clipboard.writeText(this._shareUrl).then((()=>alert("Share url copied to clipboard."))).catch((()=>alert("Failed to copy share url to clipboard")))}}const jb=Eb,xb={label:"Facebook"};class Ab extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,xb),this._encodedShareUrl=kb(null==t?void 0:t.shareUrl),this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-facebook-option")}handleClick(e){const t=`www.facebook.com/share.php?u=${this._encodedShareUrl}`;this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Share - ${xb.label}`,details:{shareDetail:t}}}),super.handleClick(e),window.open(`//${t}`)}}const Ib=Ab,Pb={label:"LinkedIn"};class Db extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,Pb),this._encodedShareUrl=kb(null==t?void 0:t.shareUrl),this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-linkedin-option")}handleClick(e){const t=`www.linkedin.com/shareArticle?mini=true&url=${this._encodedShareUrl}&title=&summary=&source=`;this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Share - ${Pb.label}`,details:{shareDetail:t}}}),super.handleClick(e),window.open(`//${t}`)}}const Lb=Db,Ob={label:"Mail"};class Mb extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,Ob),this._encodedShareUrl=kb(null==t?void 0:t.shareUrl),this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-mail-option")}handleClick(e){this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Share - ${Ob.label}`,details:{shareDetail:this._encodedShareUrl}}}),super.handleClick(e),window.location.href=`mailto:?subject=Check out this great video&body=${this._encodedShareUrl}`}}const Nb=Mb,Rb={label:"Twitter"};class Ub extends(T.default.getComponent("MenuItem")){constructor(e,t){super(e,Rb),this._encodedShareUrl=kb(null==t?void 0:t.shareUrl),this._telemetryHelper=Uy.fromPlayer(e),this.addClass("vjs-twitter-option")}handleClick(e){const t=`twitter.com/share?url=${this._encodedShareUrl}&text=`;this._telemetryHelper.reportNominalMetric(C.VideoPlayerClick,{userInteraction:{target:`Share - ${Rb.label}`,details:{shareDetail:t}}}),super.handleClick(e),window.open(`//${t}`)}}const Bb={linkedin:Lb,facebook:Ib,twitter:Ub,mail:Nb,copy:jb};class Fb extends(T.default.getComponent("MenuButton")){constructor(e,t){super(e,t),this._shareUrl=null==t?void 0:t.shareUrl,this._shareOptions=null==t?void 0:t.shareOptions,e.one(l.Ready,(()=>this.update()))}set shareOptions(e){this._shareOptions=e,this.update()}createItems(){return this._shareOptions?Object.entries(Bb).filter((([e])=>{var t;return null===(t=this._shareOptions)||void 0===t?void 0:t.includes(e)})).map((([,e])=>new e(this.player(),{shareUrl:this._shareUrl}))):[]}buildWrapperCSSClass(){return`vjs-share-menu-button ${super.buildWrapperCSSClass()}`}static updateSharedOptions(e,t,n){t&&(n.length||(n=[...hb]),[this.getFromControlBar(e),this.getSettingsMenu(e)].filter((e=>void 0!==e)).forEach((e=>e.shareOptions=n)))}static getFromControlBar(e){var t;return null===(t=e.controlBar)||void 0===t?void 0:t.getChild(u.ShareMenuButton)}static getSettingsMenu(e){var t;return null===(t=e.controlBar)||void 0===t?void 0:t.getChild(u.SettingsMenuButton)}}const Vb=Fb;class qb extends(T.default.getComponent("Component")){constructor(e){super(e)}handleLanguagechange(){this.el().querySelectorAll("[data-localize]").forEach((e=>{e.textContent=this.localize(e.getAttribute("data-localize"))}))}createEl(){const e=super.createEl("div",{className:"vjs-age-gate-body"}),t=T.default.dom.createEl("p",{textContent:this.localize("You may not access this content.")},{"data-localize":"You may not access this content."}),n=T.default.dom.createEl("span",{className:"vjs-age-gate-modal-error"});return e.appendChild(n),e.appendChild(t),e}dispose(){super.dispose()}}const zb=qb;class Hb extends(T.default.getComponent("ModalDialog")){constructor(e){super(e,{uncloseable:!0,temporary:!1,pauseOnOpen:!0})}createEl(){const e=super.createEl();return e.classList.add("vjs-age-gate-modal"),this.options_.content&&this.updateContent(this.options_.content),this.options_.uncloseable&&this.updateContent(this.options_.uncloseable),e}updateContent(e){const t=this.contentEl();t&&(T.default.dom.emptyEl(t),T.default.dom.appendContent(t,e))}dispose(){super.dispose()}}const Wb=Hb;class Gb extends(T.default.getComponent("Component")){constructor(e){super(e),this.calculateAge=(e,t,n)=>{const i=new Date(n,e-1,t),r=new Date;let a=r.getFullYear()-i.getFullYear();const o=r.getMonth()-i.getMonth();return(o<0||0===o&&r.getDate(){var t;const n=e.getAttribute("data-localize"),i=(null===(t=e.getAttribute("data-localize-props"))||void 0===t?void 0:t.split(","))||["textContent"],r=this.localize(n);i.forEach((t=>{e[t]=r}))}))}createEl(){this._contentDiv=super.createEl("div",{className:"vjs-age-gate-body"}),this._contentDiv.addEventListener("keydown",(e=>this.stopPropagrationOnTab(e)));const e=T.default.dom.createEl("h1",{textContent:this.localize("Enter your date of birth")},{"data-localize":"Enter your date of birth"}),t=T.default.dom.createEl("p"),n=T.default.dom.createEl("button",{textContent:this.localize("Submit"),className:"vjs-age-gate-body-button",ariaLabel:this.localize("Submit"),onclick:()=>{var e,t;i.value&&r.value&&a.value&&(null===(t=(e=this.player_)[c.AgeGate])||void 0===t||t.call(e).setAge(this.calculateAge(parseInt(i.value),parseInt(r.value),parseInt(a.value))))}},{"data-localize":"Submit","data-localize-props":"ariaLabel,textContent"});this._datePicker=T.default.dom.createEl("div",{className:"vjs-age-gate-body-datepicker"});const i=T.default.dom.createEl("select"),r=T.default.dom.createEl("select"),a=T.default.dom.createEl("select");return this._contentDiv.appendChild(e),this._contentDiv.appendChild(t),this._contentDiv.appendChild(this._datePicker),this._datePicker.appendChild(i),this._datePicker.appendChild(r),this._datePicker.appendChild(a),this._contentDiv.appendChild(n),this._checkDateSelected=()=>{0!==i.selectedIndex&&0!==r.selectedIndex&&0!==a.selectedIndex?n.removeAttribute("disabled"):n.setAttribute("disabled","true")},this._datePicker.addEventListener("change",this._checkDateSelected),n.setAttribute("disabled","true"),this.populateDropdown(i,1,12,"Month"),this.populateDropdown(r,1,31,"Day"),this.populateDropdown(a,1900,(new Date).getFullYear(),"Year"),this._contentDiv}stopPropagrationOnTab(e){"Tab"===e.key&&this.player_.el().contains(document.activeElement)&&e.stopPropagation()}populateDropdown(e,t,n,i){const r=T.default.dom.createEl("option",{textContent:this.localize(i),value:this.localize(i)},{"data-localize":i,"data-localize-props":"textContent,value"});e.appendChild(r);for(let i=t;i<=n;i++){const t=T.default.dom.createEl("option",{textContent:i.toString(),value:i.toString()});e.appendChild(t)}}dispose(){this._datePicker&&this._checkDateSelected&&this._datePicker.removeEventListener("change",this._checkDateSelected),this._contentDiv&&this.stopPropagrationOnTab&&this._contentDiv.removeEventListener("keydown",this.stopPropagrationOnTab),super.dispose()}}const Xb=Gb;class Kb extends(T.default.getPlugin("plugin")){constructor(e,t){var n,i;super(e,t),this._ageGateModal=null,this._ageGateLockedState=null,this._ageGateVerification=null,this._options=this.player.options_,this._age=null===(n=this._options.ageGate)||void 0===n?void 0:n.userAge,this._minimumAge=null===(i=this._options.ageGate)||void 0===i?void 0:i.minimumAge,this.player.one(l.Ready,(()=>{this.addManualFlowUpdaterListener(),this.addStorageListener(),this.handleState()}))}isAgeGateEnabled(){return"boolean"==typeof this._options.ageGate?Boolean(this._options.ageGate):this._options.ageGate&&"object"==typeof this._options.ageGate}handleState(){this.isAgeGateEnabled()&&0!==this._minimumAge?null!=this._minimumAge?null==this._age?this.displayManualFlow():this._age>=this._minimumAge?this.displayContent():this.displayDeniedScreen():this.displayBlackoutScreen():this.displayContent()}initComponents(){this._ageGateLockedState||(this._ageGateLockedState=new zb(this.player)),this._ageGateVerification||(this._ageGateVerification=new Xb(this.player)),this._ageGateModal||(this._ageGateModal=new Wb(this.player),this.player.addChild(this._ageGateModal),this._ageGateModal.open())}displayContent(){this.disposeComponents()}displayBlackoutScreen(){var e;this.initComponents(),null===(e=this._ageGateModal)||void 0===e||e.updateContent("")}displayDeniedScreen(){var e,t;this.initComponents(),null===(e=this._ageGateModal)||void 0===e||e.updateContent(null===(t=this._ageGateLockedState)||void 0===t?void 0:t.contentEl())}displayManualFlow(){var e,t;this.initComponents(),null===(e=this._ageGateModal)||void 0===e||e.updateContent(null===(t=this._ageGateVerification)||void 0===t?void 0:t.contentEl())}setMinimumAge(e){"number"==typeof e?(this._minimumAge=e,this.handleState()):(this._minimumAge=null,this.handleState())}setAge(e){dispatchEvent(new CustomEvent(l.AgeGateUpdate,{detail:e}))}setAgeWithoutDispatch(e){"number"==typeof e?(this._age=e,this.handleState(),sessionStorage.setItem("UserAge",this._age.toString())):(this._age=null,sessionStorage.removeItem("UserAge"),this.handleState())}addManualFlowUpdaterListener(){const e=e=>{const t=e.detail;this.setAgeWithoutDispatch(t)};addEventListener(l.AgeGateUpdate,e),this.on("dispose",(()=>{removeEventListener(l.AgeGateUpdate,e)}))}addStorageListener(){const e=sessionStorage.getItem("UserAge");e&&this.setAge(Number(e));const t=e=>{if("UserAge"===e.key){const t=null===e.newValue?void 0:Number(e.newValue);this._age!==t&&this.setAge(t)}};addEventListener("storage",t),this.on("dispose",(()=>{removeEventListener("storage",t)}))}disposeComponents(){this._ageGateModal&&(this._ageGateModal.close(),this._ageGateModal.dispose()),this._ageGateVerification&&(this._ageGateVerification.dispose(),this._ageGateVerification=null),this._ageGateLockedState&&(this._ageGateLockedState.dispose(),this._ageGateLockedState=null)}dispose(){this.disposeComponents(),super.dispose()}}const Yb=Kb;class Qb extends(T.default.getPlugin("plugin")){constructor(e,t){super(e,t),this.enableCaptions=()=>{var e;const t=e=>Array.from(this.player.remoteTextTracks()).find((t=>t.language.toLowerCase()===e.toLowerCase())),n=this._options.locale.toLowerCase(),i=null!==(e=t(n))&&void 0!==e?e:t(n.substring(0,n.indexOf("-")));i&&(i.mode="showing")},this._options=t,e.one(l.Play,this.enableCaptions)}dispose(){this.player.off(l.Play,this.enableCaptions)}}const Jb=Qb;var $b,Zb;!function(e){e.Enter="Enter",e.Keydown="keydown",e.Space="Space"}($b||($b={})),function(e){e.Resize="resize",e.Scroll="scroll"}(Zb||(Zb={}));class e_ extends(T.default.getPlugin("plugin")){constructor(e,t){var n;super(e,t),this.autoplay=()=>{this._options.autoplay&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches?this.player.autoplay(!1):this.getViewablePercentage()>this._options.percentage?(this.player.play(),this._reporter.reportNominalMetric(C.InviewEnter)):(this.player.pause(),this._reporter.reportNominalMetric(C.InviewExit)))},this._options=t,this._reporter=null===(n=e[c.Telemetry])||void 0===n?void 0:n.call(e),this.player.one(l.Ready,this.autoplay),window.addEventListener(Zb.Scroll,this.autoplay),e.on(l.Resize,this.autoplay),e.one(l.Click,this.dispose),e.one(l.Ended,this.dispose)}getViewablePercentage(){const e=this.player.el().getBoundingClientRect(),t=e.width*e.height,n=(Math.min(e.bottom,window.innerHeight)-Math.max(e.top,0))*(Math.min(e.right,window.innerWidth)-Math.max(e.left,0));return Math.round(n/t*100)}dispose(){this.player.off(l.Resize,this.autoplay),window.removeEventListener(Zb.Scroll,this.autoplay)}}const t_=e_;class n_ extends(T.default.getPlugin("plugin")){constructor(e){super(e),this.setMenuSize=()=>{var e,t;const n=null===(e=this.player.controlBar)||void 0===e?void 0:e.el().clientHeight,i=this.player.currentHeight()-n-5;null===(t=this.player.controlBar)||void 0===t||t.el().querySelectorAll("ul.vjs-menu-content").forEach((e=>{e.style.setProperty("max-height",`${i}px`)}))},e.on(l.LoadedMenu,this.setMenuSize),window.addEventListener(Zb.Resize,this.setMenuSize)}dispose(){window.removeEventListener(Zb.Resize,this.setMenuSize)}}const i_=n_;class r_ extends(T.default.getPlugin("plugin")){constructor(e,t){super(e,t),e.one(l.Play,(()=>{t.playFullScreen&&e.requestFullscreen()}))}}const a_=r_;class o_ extends(T.default.getPlugin("plugin")){constructor(e){super(e),this.updatePlayerControls=()=>{const e=this.player.controlBar;this.player.currentWidth()<245?(e.currentTimeDisplay.hide(),e.timeDivider.hide(),e.durationDisplay.hide()):(e.currentTimeDisplay.show(),e.timeDivider.show(),e.durationDisplay.show())},this.updatePlayerControlsHandler=this.updatePlayerControls.bind(this),e.on(l.PlayerResize,this.updatePlayerControlsHandler)}dispose(){this.player.off(l.PlayerResize,this.updatePlayerControlsHandler)}}const s_=o_;class l_ extends(T.default.getPlugin("plugin")){constructor(e){var t;super(e),this._reporter=null===(t=e[c.Telemetry])||void 0===t?void 0:t.call(e),e.one(l.Error,(e=>{e.stopImmediatePropagation(),this.showImageOnError()}))}showImageOnError(){var e;this.player.pause(),this.player.controls(!1),this.player.hasStarted(!1),this.player.loadingSpinner.hide(),this._reporter.reportError({errorType:"MediaError",errorDescription:(null===(e=this.player.error())||void 0===e?void 0:e.message)||"Unknown error"})}}const u_=l_;class c_ extends(T.default.getPlugin("plugin")){constructor(e,t){super(e,t),e.one(l.LoadedMetadata,(()=>{const n=this.clampStartTime(t.startTime,e.duration());e.currentTime(n)}))}clampStartTime(e,t){return e<0||e>t?0:e}}const d_=c_;class h_ extends(T.default.getPlugin("plugin")){constructor(e){var t;super(e),this._reporter=null===(t=e[c.Telemetry])||void 0===t?void 0:t.call(e),this.player.one(l.Ready,(()=>this.addListeners()))}addListeners(){var e,t,n,i,r;null===(t=null===(e=this.player.controlBar)||void 0===e?void 0:e.getChild(s.PlayToggle))||void 0===t||t.on(l.Click,(()=>this.sendTelemetry())),this.player.bigPlayButton.on(l.Click,(()=>this.sendTelemetry())),this.player.on(l.Click,(e=>{"VIDEO"===e.target.tagName&&this.sendTelemetry()})),null===(r=null===(i=null===(n=this.player.controlBar)||void 0===n?void 0:n.getChild(s.ProgressControl))||void 0===i?void 0:i.getChild(s.SeekBar))||void 0===r||r.on($b.Keydown,(e=>{e.code!==$b.Space&&e.code!==$b.Enter||this.sendTelemetry()}))}sendTelemetry(){var e,t;(null===(t=null===(e=this.player.controlBar)||void 0===e?void 0:e.getChild(s.PlayToggle))||void 0===t?void 0:t.hasClass("vjs-ended"))?this._reporter.reportNominalMetric(C.Replay):this.player.paused()?this._reporter.reportNominalMetric(C.Pause):this._reporter.reportNominalMetric(C.Resume)}}const p_=h_;var f_=o(5072),m_=o.n(f_),g_=o(7825),v_=o.n(g_),y_=o(7659),b_=o.n(y_),__=o(5056),T_=o.n(__),S_=o(540),w_=o.n(S_),k_=o(1113),C_=o.n(k_),E_=o(3024),j_={};j_.styleTagTransform=C_(),j_.setAttributes=T_(),j_.insert=b_().bind(null,"head"),j_.domAPI=v_(),j_.insertStyleElement=w_(),m_()(E_.A,j_),E_.A&&E_.A.locals&&E_.A.locals;class x_ extends(T.default.getComponent("TextTrackSettings")){constructor(e,t){super(e,t),this.updateResetControlsText(),this.el().ariaLabel=this.localize("Caption Settings"),this.groupLabelSelector()}updateResetControlsText(){const e=this.localize("reset all settings to the default values"),t=this.$(".vjs-default-button"),n=this.$(".vjs-default-button .vjs-control-text");t.title=e,t.removeChild(n)}groupLabelSelector(){this.$$(".vjs-track-setting").forEach((e=>{const t=Array.from(e.childNodes).filter((e=>"LABEL"===e.nodeName||"SELECT"===e.nodeName));if(t.length){const n=e.classList,i=document.createElement("span");i.classList.add(...n,"vjs-text-track-settings-group"),t.forEach((e=>i.appendChild(e))),e.insertBefore(i,e.firstChild)}}))}}const A_=x_;function I_(e){return"descriptive audio"===e.id.toLowerCase()||"descriptive audio"===e.label.toLowerCase()}function P_(e,t){return e.language===t}function D_(e,t){return L_(e.language)===L_(t)}function L_(e){return null==e?void 0:e.split("-")[0]}class O_ extends(T.default.getPlugin("plugin")){constructor(e,t){super(e),function(e,t){function n(){const n=t.language,i=Array.from(e.audioTracks());let r,a=-1;i.forEach(((e,t)=>{const i=function(e,t,n){return!I_(e)&&P_(e,n)?100:!I_(e)&&D_(e,n)?90:I_(e)&&P_(e,n)?80:I_(e)&&D_(e,n)?70:!I_(e)&&D_(e,"en")?60:I_(e)&&D_(e,"en")?50:I_(e)?0===t?30:0:40}(e,t,n);i>a&&(a=i,r=e)})),r&&(r.enabled=!0)}e.one(l.LoadedMetadata,n),e.on("dispose",(()=>{e.off(l.LoadedMetadata,n)}))}(e,t)}}const M_=O_;var N_=o(7670),R_=o(9264),U_=o(3501),B_=o(7781),F_=o(9152),V_=o(4160);const q_={"en-us":N_,"es-es":R_,"pt-br":V_,"en-gb":N_,"fr-fr":B_,"es-mx":U_,"it-it":F_},z_=new Set(["??-??-????????","???-????-??","??-????-??","???-????","??-????","???-??","??-??","???","??"]),H_=Array.from(z_).map((e=>`(?:${e.replace(/\?/g,"[a-zA-Z]")})`)).join("|");class W_ extends(T.default.getPlugin("plugin")){constructor(e,t){super(e);const{language:n}=t;(function(e){return t=this,n=void 0,r=function*(){let t=G_.get(e);var n,i,r,a,s;return t||(t=(n=e,i=void 0,r=void 0,a=void 0,s=function*(){var e,t;const i=n.toLowerCase(),r=q_[i];if(r)return r;try{return null===(e=yield o(4440)(`./${i}.json`))||void 0===e?void 0:e.default}catch(e){try{return null===(t=yield o(4440)(`./${a=i,a.split("-")[0]}.json`))||void 0===t?void 0:t.default}catch(e){return void console.error("Failed to load translation for %s: %s",i,e)}}var a},new(a||(a=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,o)}l((s=s.apply(i,r||[])).next())}))).then((t=>(t&&T.default.addLanguage(e,t),t)))),t},new((i=void 0)||(i=Promise))((function(e,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,s)}l((r=r.apply(t,n||[])).next())}));var t,n,i,r})(n).then((t=>{e.isDisposed()||t&&e.ready((()=>{e.language(n)}))}))}static resolveLanguage(e){return e||document.documentElement.lang||function(){const e=new RegExp(`^https?://[^/]+/(${H_})/[^/]+.*`),t=window.location.href.match(e);if(t){const e=t[1].toLowerCase();if(e!==Vy(e,!1))return e}return null}()||f.language}}const G_=new Map,X_=W_;class K_ extends(T.default.getPlugin("plugin")){constructor(e){function t(){e.paused()?e.play():e.pause()}super(e),e.ready((()=>{e.tech(!1).el().addEventListener("touchend",t)}))}}const Y_=K_,Q_=/^(\d+):(\d{2}):(\d{2})((\.\d+)|:(\d{2,}(\.\d+)?))?$/,J_=/^(\d+(\.\d+)?)(ms|[hmsft])$/,$_=e=>{const t=Q_.exec(e);if(t&&t.length>3){const e=60*parseInt(t[1],10)*60,n=60*parseInt(t[2],10),i=parseInt(t[3],10);let r=0;return t[5]&&(r=1e3*parseFloat(t[4])),t[6]&&(r=Math.round(parseFloat(t[6])*eT("f"))),1e3*(e+n+i)+r}const n=J_.exec(e);return n&&n.length>3?Math.round(parseFloat(n[1])*eT(n[3])):0},Z_=e=>{const t=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),i=Math.floor(e%6e4/1e3),r=e%1e3;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}.${r.toString().padStart(3,"0")}`},eT=e=>{switch(e){case"h":return 36e5;case"ms":case"t":return 1;case"m":return 6e4;case"s":return 1e3;case"f":return 1e3/30;default:return 0}},tT=e=>{const t=(new window.DOMParser).parseFromString(e,"text/xml");return`WEBVTT\n\n${Array.from(t.getElementsByTagName("p")).map((e=>nT(e))).join("\n")}`},nT=e=>{const t=e.getAttribute("begin"),n=e.getAttribute("end"),i=e.getAttribute("dur");return`${iT(t,n,i)}\n${rT(e)}\n`},iT=(e,t,n)=>{if(!e)throw new Error("Unable to determine begin");return`${Z_($_(e))} --\x3e ${Z_(null!==t?$_(t):$_(e)+$_(null!=n?n:"0s"))}`},rT=e=>{var t,n;let i="";for(const r of e.childNodes)r.nodeType===Node.TEXT_NODE?i+=null!==(n=null===(t=r.textContent)||void 0===t?void 0:t.trim())&&void 0!==n?n:"":r.nodeType===Node.ELEMENT_NODE&&("span"===r.tagName.toLowerCase()?i+=rT(r):"br"===r.tagName.toLowerCase()&&i&&(i+="\n"));return i};const aT=e=>{const t=e.map((e=>{var t,n;const i=null!==(t=v[e.type])&&void 0!==t?t:e.type;if(!i||!m.includes(i))throw new Error("Unsupported Media Type");return{src:e.src,type:i,quality:null!==(n=e.quality)&&void 0!==n?n:"Auto",selected:!1}})).sort(((e,t)=>m.indexOf(e.type)-m.indexOf(t.type)));for(const e of g){const n=t.find((t=>t.quality===e));if(n){n.selected=!0;break}}return t},oT=(e,t)=>{e.ready((()=>{return n=void 0,i=void 0,a=function*(){var n,i,r,a,o;Array.from(e.remoteTextTracks()).forEach((t=>e.removeRemoteTextTrack(t)));const s=t.map((e=>{const t=Vy(e.locale);return Object.assign(Object.assign({},e),{label:t})}));s.sort(((e,t)=>e.label>t.label?1:-1));const l=s.filter((e=>"VTT"===e.ccType||!e.ccType)).map((e=>e.locale));for(const t of s)if(l.includes(t.locale))e.addRemoteTextTrack({kind:"captions",language:t.locale,label:t.label,src:t.url},!0);else if("TTML"===t.ccType&&!l.includes(t.locale)){const n=yield fetch(t.url).then((e=>e.text()));e.addRemoteTextTrack({kind:"captions",language:t.locale,label:t.label,src:URL.createObjectURL(new Blob([tT(n)],{type:"text/vtt"}))},!0)}const u=null!==(r=null===(i=null===(n=e.controlBar)||void 0===n?void 0:n.el())||void 0===i?void 0:i.querySelectorAll(".vjs-captions-menu-item"))&&void 0!==r?r:[];for(let t=0;t{if(!t)return t;const n=Uy.fromPlayer(e),i=performance.now(),r=new Image;return r.addEventListener("load",(()=>{n.reportNumericMetric(k.PosterImageLoadDurationMs,performance.now()-i)})),r.src=t,t};var xT=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))};class AT extends(T.default.getPlugin("plugin")){constructor(e,t){super(e,t),this._abortController=new AbortController,t&&this.load(t)}load(e){return xT(this,void 0,void 0,(function*(){var t,n,i,r,a;const o=yield this.fetchMetadata(e.videoId);if(!o)return;o.ageGate&&"object"==typeof o.ageGate&&(null===(n=(t=this.player)[c.AgeGate])||void 0===n?void 0:n.call(t)).setMinimumAge(null!==(i=o.ageGate.minimumAge)&&void 0!==i?i:0),this.player.poster(jT(this.player,o.poster)),this.player.src(o.sources),oT(this.player,o.ccFiles),cb.updateDownloadableFiles(this.player,o.downloadableFiles);const s=null===(a=(r=this.player)[c.Telemetry])||void 0===a?void 0:a.call(r);s.playerInfo=Object.assign(Object.assign({},s.playerInfo),{title:o.title,videoId:e.videoId}),this.player.trigger({type:l.PowerCmsLoaded,metadata:o})}))}dispose(){super.dispose(),this._abortController.abort()}fetchMetadata(e){return xT(this,void 0,void 0,(function*(){var t;const n=yield this.fetchPowerCmsMetadata(e);if(n)return{poster:this.parsePosterFrameUrl(n),sources:this.parseVideoFiles(n),ccFiles:this.parseCcFiles(n),downloadableFiles:this.parseDownloadableFiles(n),title:n.snippet.title,ageGate:{minimumAge:null!==(t=n.snippet.minimumAge)&&void 0!==t?t:void 0}}}))}fetchPowerCmsMetadata(e){return xT(this,void 0,void 0,(function*(){this._abortController.abort(),this._abortController=new AbortController;try{const t=yield fetch(`https://prod-video-cms-rt-microsoft-com.akamaized.net/vhs/api/videos/${e}`,{signal:this._abortController.signal});return t.ok||this.player.error("Sorry, this video can't be played."),yield t.json()}catch(e){return"AbortError"===e.name?void console.debug("PowerCms request was aborted"):void this.player.error("Sorry, this video can't be played.")}}))}parseVideoFiles(e){return aT([{src:this.forceHttps(e.streams.mPEG_DASH.url),type:"DASH"},{src:this.forceHttps(e.streams.apple_HTTP_Live_Streaming.url),type:"HLS"}])}parseCcFiles(e){return Object.entries(e.captions).map((([e,t])=>({ccType:"TTML",url:this.forceHttps(t.url),locale:e})))}parseDownloadableFiles(e){const t=Object.entries(e.streams).filter((([e])=>e.startsWith("h.264_"))).map((([,e])=>e)).reduce(((e,t)=>e.widthPixels>t.widthPixels?e:t));return[...Object.entries(e.transcripts).map((([e,t])=>({mediaType:"transcript",url:this.forceHttps(t.url),locale:e}))),{mediaType:"video",url:this.forceHttps(t.url),locale:e.snippet.culture}]}parsePosterFrameUrl(e){return this.forceHttps(e.snippet.thumbnails.medium.url)}forceHttps(e){return e.replace("http://","https://")}}const IT=AT;T.default.options.autoSetup=!1,T.default.hook("beforesetup",((e,t)=>{var n,i;LT(),e.className+=" vjs-ump video-js","all"===t.hideControls&&(t.controls=!1),!0===t.hidePosterImage&&(t.poster=void 0),!1===t.download&&(t.downloadableFiles=[]);const r=X_.resolveLanguage(t.language);return Object.assign(Object.assign(Object.assign({},f),t),{language:f.language,sources:aT(null!==(n=t.sources)&&void 0!==n?n:[]),[null!==(i=t.layout)&&void 0!==i?i:f.layout]:!0,aspectRatio:"fill"===t.layout?void 0:t.aspectRatio,plugins:Object.assign(Object.assign(Object.assign(Object.assign({[c.Telemetry]:{playerInfo:{playerInstanceId:e.id,playerVersionNumber:1724447547606,playerUrl:import.meta.url,title:t.title,partnerName:t.partnerName},reporting:t.reporting,isDebugMode:t.debug},[c.AutoPlay]:{autoplay:t.autoplay,percentage:t.percentage},[c.AgeGate]:{ageGate:t.ageGate}},t.autoCaptions?{[c.AutoCaptions]:{locale:t.autoCaptions}}:{}),{[c.OnFirstPlay]:{playFullScreen:t.playFullScreen}}),!0===t.showImageOnError?{[c.ShowImageOnError]:{}}:{}),{[c.StartTime]:{startTime:t.startTime},[c.MenuSize]:{},[c.PlayPauseControls]:{},[c.ResponsiveControlBar]:{},[c.Localizer]:{language:r},[c.AudioTrackSelector]:{language:r},[c.TouchTogglePlayback]:{}})})})),T.default.hook("setup",(e=>{var t,n,i;const r=e.options_;jT(e,null!==(t=r.poster)&&void 0!==t?t:""),PT(e,r),DT(e,r),"controlbar"===r.hideControls&&(null===(n=e.controlBar)||void 0===n||n.hide()),r.title&&e.setAttribute("aria-label",`${r.title}`),e.canPlayType("application/dash+xml")||e.src(e.currentSources().filter((e=>"application/dash+xml"!==e.type))),oT(e,null!==(i=r.ccFiles)&&void 0!==i?i:[])}));const PT=(e,t)=>{var n;e.addClass("vjs-big-play-centered"),e.bigPlayButton.addClass(`vjs-big-play-button-${t.playButtonSize}`),e.bigPlayButton.addClass(`vjs-big-play-button-${t.playButtonTheme}`),null===(n=e.getChild(s.PosterImage))||void 0===n||n.addClass(`mask-${t.maskLevel}`)},DT=(e,t)=>{var n,i,r;e.addChild(u.AriaAnnouncer),Vb.updateSharedOptions(e,null===(n=t.share)||void 0===n||n,null!==(i=t.shareOptions)&&void 0!==i?i:[]),cb.updateDownloadableFiles(e,null!==(r=t.downloadableFiles)&&void 0!==r?r:[])},LT=(()=>{let e=!1;return()=>{e||(e=!0,T.default.registerComponent(u.AriaAnnouncer,w),T.default.registerComponent(u.SettingsMenuButton,wb),T.default.registerComponent(u.QualitySelector,bb),T.default.registerComponent(u.ShareMenuButton,Vb),T.default.registerComponent(u.DownloadMenuButton,cb),T.default.registerComponent(u.BigPlayButton,Qy),T.default.registerComponent(u.TextTrackSettings,A_),T.default.registerComponent(u.AudioTrackButton,Xy),T.default.registerPlugin(c.OnFirstPlay,a_),T.default.registerPlugin(c.Telemetry,Uy),T.default.registerPlugin(c.AgeGate,Yb),T.default.registerPlugin(c.AutoPlay,t_),T.default.registerPlugin(c.MenuSize,i_),T.default.registerPlugin(c.ResponsiveControlBar,s_),T.default.registerPlugin(c.PlayPauseControls,p_),T.default.registerPlugin(c.ShowImageOnError,u_),T.default.registerPlugin(c.StartTime,d_),T.default.registerPlugin(c.PowerCms,IT),T.default.registerPlugin(c.AutoCaptions,Jb),T.default.registerPlugin(c.Localizer,X_),T.default.registerPlugin(c.AudioTrackSelector,M_),T.default.registerPlugin(c.TouchTogglePlayback,Y_))}})();const OT=(e,t,n)=>{const i=e instanceof MT?e:MT.getById(e);return n&&i.addEventListener("ready",n,{once:!0}),i.setAttribute("options",JSON.stringify(t)),i};class MT extends HTMLElement{constructor(){super(...arguments),this.hasConnected=!1}connectedCallback(){this.hasConnected=!0,this.reInitialize()}disconnectedCallback(){this.hasConnected=!1,this.dispose()}attributeChangedCallback(e,t,n){"options"===e&&t!==n&&this.hasConnected&&this.reInitialize()}reInitialize(){this.dispose();const e=this.getAttribute("options");if(e)try{const t=JSON.parse(e),n=`ump-${crypto.randomUUID()}`,i=document.createElement("video");i.id=n,this.appendChild(i);const r=function(e,t,n){return b("scriptLoaded","string"==typeof e?e:e.id),(0,T.default)(e,t,n)}(i,t,(()=>{this.dispatchEvent(new CustomEvent("ready")),b("optionsLoadComplete",n)})),a=r.trigger;r.trigger=(e,t)=>{const n=a.call(r,e,t);if("string"==typeof e)this.dispatchEvent(new CustomEvent(e,{detail:t}));else if("object"==typeof e&&null!==e){const t=e,{type:n}=t,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r