vendor: 14,237 bytes, lines 1-2
1/*! For license information please see NpawPlugin.js.LICENSE.txt */ 2!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NpawPlugin=e():t.NpawPlugin=e()}(self,()=>(()=>{var __webpack_modules__={525(t,e){"use strict";function i(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(t):t}var s=i({HTML:"text/html",isHTML:function(t){return t===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.assign=function(t,e){if(null===t||"object"!=typeof t)throw new TypeError("target is not an object");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.find=function(t,e,i){if(void 0===i&&(i=Array.prototype),t&&"function"==typeof i.find)return i.find.call(t,e);for(var s=0;s<t.length;s++)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];if(e.call(void 0,n,s,t))return n}},e.freeze=i,e.MIME_TYPE=s,e.NAMESPACE=n},8633(t,e,i){var s=i(525),n=i(1129),r=i(6598),o=i(2133),a=n.DOMImplementation,c=s.NAMESPACE,d=o.ParseError,h=o.XMLReader;function l(t){return t.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function u(t){this.options=t||{locator:{}}}function p(){this.cdata=!1}function f(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function g(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function m(t,e,i){return"string"==typeof t?t.substr(e,i):t.length>=e+i||e?new java.lang.String(t,e,i)+"":t}function v(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}u.prototype.parseFromString=function(t,e){var i=this.options,s=new h,n=i.domBuilder||new p,o=i.errorHandler,a=i.locator,d=i.xmlns||{},u=/\/x?html?$/.test(e),f=u?r.HTML_ENTITIES:r.XML_ENTITIES;a&&n.setDocumentLocator(a),s.errorHandler=function(t,e,i){if(!t){if(e instanceof p)return e;t=e}var s={},n=t instanceof Function;function r(e){var r=t[e];!r&&n&&(r=2==t.length?function(i){t(e,i)}:t),s[e]=r&&function(t){r("[xmldom "+e+"]\t"+t+g(i))}||function(){}}return i=i||{},r("warning"),r("error"),r("fatalError"),s}(o,n,a),s.domBuilder=i.domBuilder||n,u&&(d[""]=c.HTML),d.xml=d.xml||c.XML;var m=i.normalizeLineEndings||l;return t&&"string"==typeof t?s.parse(m(t),d,f):s.errorHandler.error("invalid doc source"),n.doc},p.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,i,s){var n=this.doc,r=n.createElementNS(t,i||e),o=s.length;v(this,r),this.currentElement=r,this.locator&&f(this.locator,r);for(var a=0;a<o;a++){t=s.getURI(a);var c=s.getValue(a),d=(i=s.getQName(a),n.createAttributeNS(t,i));this.locator&&f(s.getLocator(a),d),d.value=d.nodeValue=c,r.setAttributeNode(d)}},endElement:function(t,e,i){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var i=this.doc.createProcessingInstruction(t,e);this.locator&&f(this.locator,i),v(this,i)},ignorableWhitespace:function(t,e,i){},characters:function(t,e,i){if(t=m.apply(this,arguments)){if(this.cdata)var s=this.doc.createCDATASection(t);else s=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(t)&&this.doc.appendChild(s),this.locator&&f(this.locator,s)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,i){t=m.apply(this,arguments);var s=this.doc.createComment(t);this.locator&&f(this.locator,s),v(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var n=s.createDocumentType(t,e,i);this.locator&&f(this.locator,n),v(this,n),this.doc.doctype=n}},warning:function(t){console.warn("[xmldom warning]\t"+t,g(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,g(this.locator))},fatalError:function(t){throw new d(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){p.prototype[t]=function(){return null}}),e.DOMParser=u},1129(t,e,i){var s=i(525),n=s.find,r=s.NAMESPACE;function o(t){return""!==t}function a(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function c(t){if(!t)return[];var e=function(t){return t?t.split(/[\t\n\f\r ]+/).filter(o):[]}(t);return Object.keys(e.reduce(a,{}))}function d(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function h(t,e){var i=t.prototype;if(!(i instanceof e)){function s(){}s.prototype=e.prototype,d(i,s=new s),t.prototype=i=s}i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}var l={},u=l.ELEMENT_NODE=1,p=l.ATTRIBUTE_NODE=2,f=l.TEXT_NODE=3,g=l.CDATA_SECTION_NODE=4,m=l.ENTITY_REFERENCE_NODE=5,v=l.ENTITY_NODE=6,y=l.PROCESSING_INSTRUCTION_NODE=7,S=l.COMMENT_NODE=8,_=l.DOCUMENT_NODE=9,b=l.DOCUMENT_TYPE_NODE=10,T=l.DOCUMENT_FRAGMENT_NODE=11,w=l.NOTATION_NODE=12,E={},A={},I=(E.INDEX_SIZE_ERR=(A[1]="Index size error",1),E.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2),E.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3)),R=(E.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),E.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5)),P=(E.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),E.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7),E.NOT_FOUND_ERR=(A[8]="Not found",8)),D=(E.NOT_SUPPORTED_ERR=(A[9]="Not supported",9),E.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10)),C=E.INVALID_STATE_ERR=(A[11]="Invalid state",11);function N(t,e){if(e instanceof Error)var i=e;else i=this,Error.call(this,A[t]),this.message=A[t],Error.captureStackTrace&&Error.captureStackTrace(this,N);return i.code=t,e&&(this.message=this.message+": "+e),i}function L(){}function B(t,e){this._node=t,this._refresh=e,k(this)}function k(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var i=t._refresh(t._node);if(bt(t,"length",i.length),!t.$$length||i.length<t.$$length)for(var s=i.length;s in t;s++)Object.prototype.hasOwnProperty.call(t,s)&&delete t[s];d(i,t),t._inc=e}}function x(){}function M(t,e){for(var i=t.length;i--;)if(t[i]===e)return i}function O(t,e,i,s){if(s?e[M(e,s)]=i:e[e.length++]=i,t){i.ownerElement=t;var n=t.ownerDocument;n&&(s&&W(n,t,s),function(t,e,i){t&&t._inc++,i.namespaceURI===r.XMLNS&&(e._nsMap[i.prefix?i.localName:""]=i.value)}(n,t,i))}}function U(t,e,i){var s=M(e,i);if(!(s>=0))throw new N(P,new Error(t.tagName+"@"+i));for(var n=e.length-1;s<n;)e[s]=e[++s];if(e.length=n,t){var r=t.ownerDocument;r&&(W(r,t,i),i.ownerElement=null)}}function q(){}function V(){}function F(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function H(t,e){return G(t,null,{enter:function(t){return!e(t)||G.STOP}})===G.STOP}function G(t,e,i){for(var s=[{node:t,context:e,phase:G.ENTER}];s.length>0;){var n=s.pop();if(n.phase===G.ENTER){var r=i.enter(n.node,n.context);if(r===G.STOP)return G.STOP;if(s.push({node:n.node,context:r,phase:G.EXIT}),null==r)continue;for(var o=n.node.lastChild;o;)s.push({node:o,context:r,phase:G.ENTER}),o=o.previousSibling}else i.exit&&i.exit(n.node,n.context)}}function j(){this.ownerDocument=this}function W(t,e,i,s){t&&t._inc++,i.namespaceURI===r.XMLNS&&delete e._nsMap[i.prefix?i.localName:""]}function X(t,e,i){if(t&&t._inc){t._inc++;var s=e.childNodes;if(i)s[s.length++]=i;else{for(var n=e.firstChild,r=0;n;)s[r++]=n,n=n.nextSibling;s.length=r,delete s[s.length]}}}function z(t,e){var i=e.previousSibling,s=e.nextSibling;return i?i.nextSibling=s:t.firstChild=s,s?s.previousSibling=i:t.lastChild=i,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,X(t.ownerDocument,t),e}function K(t){return t&&t.nodeType===V.DOCUMENT_TYPE_NODE}function J(t){return t&&t.nodeType===V.ELEMENT_NODE}function $(t){return t&&t.nodeType===V.TEXT_NODE}function Y(t,e){var i=t.childNodes||[];if(n(i,J)||K(e))return!1;var s=n(i,K);return!(e&&s&&i.indexOf(s)>i.indexOf(e))}function Q(t,e){var i=t.childNodes||[];if(n(i,function(t){return J(t)&&t!==e}))return!1;var s=n(i,K);return!(e&&s&&i.indexOf(s)>i.indexOf(e))}function Z(t,e,i){var s=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=r.filter(J);if(o.length>1||n(r,$))throw new N(I,"More than one element or text in fragment");if(1===o.length&&!Y(t,i))throw new N(I,"Element in fragment can not be inserted before doctype")}if(J(e)&&!Y(t,i))throw new N(I,"Only one element can be added and only after doctype");if(K(e)){if(n(s,K))throw new N(I,"Only one doctype is allowed");var a=n(s,J);if(i&&s.indexOf(a)<s.indexOf(i))throw new N(I,"Doctype can only be inserted before an element");if(!i&&a)throw new N(I,"Doctype can not be appended since element is present")}}function tt(t,e,i){var s=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=r.filter(J);if(o.length>1||n(r,$))throw new N(I,"More than one element or text in fragment");if(1===o.length&&!Q(t,i))throw new N(I,"Element in fragment can not be inserted before doctype")}if(J(e)&&!Q(t,i))throw new N(I,"Only one element can be added and only after doctype");if(K(e)){if(n(s,function(t){return K(t)&&t!==i}))throw new N(I,"Only one doctype is allowed");var a=n(s,J);if(i&&s.indexOf(a)<s.indexOf(i))throw new N(I,"Doctype can only be inserted before an element")}}function et(t,e,i,s){(function(t,e,i){if(!function(t){return t&&(t.nodeType===V.DOCUMENT_NODE||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.ELEMENT_NODE)}(t))throw new N(I,"Unexpected parent node type "+t.nodeType);if(i&&i.parentNode!==t)throw new N(P,"child not in parent");if(!function(t){return t&&(J(t)||$(t)||K(t)||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.COMMENT_NODE||t.nodeType===V.PROCESSING_INSTRUCTION_NODE)}(e)||K(e)&&t.nodeType!==V.DOCUMENT_NODE)throw new N(I,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)})(t,e,i),t.nodeType===V.DOCUMENT_NODE&&(s||Z)(t,e,i);var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===T){var r=e.firstChild;if(null==r)return e;var o=e.lastChild}else r=o=e;var a=i?i.previousSibling:t.lastChild;r.previousSibling=a,o.nextSibling=i,a?a.nextSibling=r:t.firstChild=r,null==i?t.lastChild=o:i.previousSibling=o;do{r.parentNode=t,it(r,t.ownerDocument||t)}while(r!==o&&(r=r.nextSibling));return X(t.ownerDocument||t,t),e.nodeType==T&&(e.firstChild=e.lastChild=null),e}function it(t,e){if(t.ownerDocument!==e){if(t.ownerDocument=e,t.nodeType===u&&t.attributes)for(var i=0;i<t.attributes.length;i++){var s=t.attributes.item(i);s&&(s.ownerDocument=e)}for(var n=t.firstChild;n;)it(n,e),n=n.nextSibling}}function st(){this._nsMap={}}function nt(){}function rt(){}function ot(){}function at(){}function ct(){}function dt(){}function ht(){}function lt(){}function ut(){}function pt(){}function ft(){}function gt(){}function mt(t,e,i){var s=!!i&&!!i.requireWellFormed,n=[],r=9==this.nodeType&&this.documentElement||this,o=r.prefix,a=r.namespaceURI;if(a&&null==o&&null==(o=r.lookupPrefix(a)))var c=[{namespace:a,prefix:null}];return St(this,n,t,e,c,s),n.join("")}function vt(t,e,i){var s=t.prefix||"",n=t.namespaceURI;if(!n)return!1;if("xml"===s&&n===r.XML||n===r.XMLNS)return!1;for(var o=i.length;o--;){var a=i[o];if(a.prefix===s)return a.namespace!==n}return!0}function yt(t,e,i){t.push(" ",e,'="',i.replace(/[<>&"\t\n\r]/g,F),'"')}function St(t,e,i,s,n,o){n||(n=[]),G(t,{ns:n,isHTML:i},{enter:function(t,i){var n=i.ns,a=i.isHTML;if(s){if(!(t=s(t)))return null;if("string"==typeof t)return e.push(t),null}switch(t.nodeType){case u:var c=t.attributes,d=c.length,h=t.tagName,l=h;if(!(a=r.isHTML(t.namespaceURI)||a)&&!t.prefix&&t.namespaceURI){for(var v,w=0;w<c.length;w++)if("xmlns"===c.item(w).name){v=c.item(w).value;break}if(!v)for(var E=n.length-1;E>=0;E--)if(""===(A=n[E]).prefix&&A.namespace===t.namespaceURI){v=A.namespace;break}if(v!==t.namespaceURI)for(E=n.length-1;E>=0;E--){var A;if((A=n[E]).namespace===t.namespaceURI){A.prefix&&(l=A.prefix+":"+h);break}}}e.push("<",l);for(var I=n.slice(),R=0;R<d;R++)"xmlns"==(P=c.item(R)).prefix?I.push({prefix:P.localName,namespace:P.value}):"xmlns"==P.nodeName&&I.push({prefix:"",namespace:P.value});for(R=0;R<d;R++){var P;if(vt(P=c.item(R),0,I)){var D=P.prefix||"",L=P.namespaceURI;yt(e,D?"xmlns:"+D:"xmlns",L),I.push({prefix:D,namespace:L})}var B=s?s(P):P;B&&("string"==typeof B?e.push(B):yt(e,B.name,B.value))}if(h===l&&vt(t,0,I)){var k=t.prefix||"";L=t.namespaceURI,yt(e,k?"xmlns:"+k:"xmlns",L),I.push({prefix:k,namespace:L})}var x=t.firstChild;if(x||a&&!/^(?:meta|link|img|br|hr|input)$/i.test(h)){if(e.push(">"),a&&/^script$/i.test(h)){for(;x;)x.data?e.push(x.data):St(x,e,a,s,I.slice(),o),x=x.nextSibling;return e.push("</",h,">"),null}return{ns:I,isHTML:a,tag:l}}return e.push("/>"),null;case _:case T:return{ns:n.slice(),isHTML:a,tag:null};case p:return yt(e,t.name,t.value),null;case f:return e.push(t.data.replace(/[<&>]/g,F)),null;case g:if(o&&-1!==t.data.indexOf("]]>"))throw new N(C,'The CDATASection data contains "]]>"');return e.push("<![CDATA[",t.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case S:if(o&&-1!==t.data.indexOf("--\x3e"))throw new N(C,'The comment node data contains "--\x3e"');return e.push("\x3c!--",t.data,"--\x3e"),null;case b:if(o){if(t.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(t.publicId))throw new N(C,"DocumentType publicId is not a valid PubidLiteral");if(t.systemId&&!/^("[^"]*"|'[^']*')$/.test(t.systemId))throw new N(C,"DocumentType systemId is not a valid SystemLiteral");if(t.internalSubset&&-1!==t.internalSubset.indexOf("]>"))throw new N(C,'DocumentType internalSubset contains "]>"')}var M=t.publicId,O=t.systemId;
vendor: 9,153 bytes, line 2
2if(e.push("<!DOCTYPE ",t.name),M)e.push(" PUBLIC ",M),O&&"."!=O&&e.push(" ",O),e.push(">");else if(O&&"."!=O)e.push(" SYSTEM ",O,">");else{var U=t.internalSubset;U&&e.push(" [",U,"]"),e.push(">")}return null;case y:if(o&&-1!==t.data.indexOf("?>"))throw new N(C,'The ProcessingInstruction data contains "?>"');return e.push("<?",t.target," ",t.data,"?>"),null;case m:return e.push("&",t.nodeName,";"),null;default:return e.push("??",t.nodeName),null}},exit:function(t,i){i&&i.tag&&e.push("</",i.tag,">")}})}function _t(t,e,i){var s;return G(e,null,{enter:function(e,n){var r=new e.constructor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=e[o];"object"!=typeof a&&a!=r[o]&&(r[o]=a)}e.childNodes&&(r.childNodes=new L),r.ownerDocument=t;var c=i;switch(r.nodeType){case u:var d=e.attributes,h=r.attributes=new x,l=d.length;h._ownerElement=r;for(var f=0;f<l;f++)r.setAttributeNode(_t(t,d.item(f),!0));break;case p:c=!0}return null!==n?n.appendChild(r):s=r,c?r:null}}),s}function bt(t,e,i){t[e]=i}E.SYNTAX_ERR=(A[12]="Syntax error",12),E.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),E.NAMESPACE_ERR=(A[14]="Invalid namespace",14),E.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),N.prototype=Error.prototype,d(E,N),L.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e,i){for(var s=!!i&&!!i.requireWellFormed,n=[],r=0;r<this.length;r++)St(this[r],n,t,e,null,s);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},B.prototype.item=function(t){return k(this),this[t]||null},h(B,L),x.prototype={length:0,item:L.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var i=this[e];if(i.nodeName==t)return i}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new N(D);var i=this.getNamedItem(t.nodeName);return O(this._ownerElement,this,t,i),i},setNamedItemNS:function(t){var e,i=t.ownerElement;if(i&&i!=this._ownerElement)throw new N(D);return e=this.getNamedItemNS(t.namespaceURI,t.localName),O(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return U(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var i=this.getNamedItemNS(t,e);return U(this._ownerElement,this,i),i},getNamedItemNS:function(t,e){for(var i=this.length;i--;){var s=this[i];if(s.localName==e&&s.namespaceURI==t)return s}return null}},q.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,i){var s=new j;if(s.implementation=this,s.childNodes=new L,s.doctype=i||null,i&&s.appendChild(i),e){var n=s.createElementNS(t,e);s.appendChild(n)}return s},createDocumentType:function(t,e,i){var s=new dt;return s.name=t,s.nodeName=t,s.publicId=e||"",s.systemId=i||"",s}},V.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return et(this,t,e)},replaceChild:function(t,e){et(this,t,e,tt),e&&this.removeChild(e)},removeChild:function(t){return z(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return _t(this.ownerDocument||this,this,t)},normalize:function(){G(this,null,{enter:function(t){for(var e=t.firstChild;e;){var i=e.nextSibling;null!==i&&i.nodeType===f&&e.nodeType===f?(t.removeChild(i),e.appendData(i.data)):e=i}return!0}})},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var i=e._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===t)return s;e=e.nodeType==p?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var i=e._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,t))return i[t];e=e.nodeType==p?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},d(l,V),d(l,V.prototype),G.STOP=Symbol("walkDOM.STOP"),G.ENTER=0,G.EXIT=1,j.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==T){for(var i=t.firstChild;i;){var s=i.nextSibling;this.insertBefore(i,e),i=s}return t}return et(this,t,e),it(t,this),null===this.documentElement&&t.nodeType===u&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),z(this,t)},replaceChild:function(t,e){et(this,t,e,tt),it(t,this),e&&this.removeChild(e),J(t)&&(this.documentElement=t)},importNode:function(t,e){return function(t,e,i){var s;return G(e,null,{enter:function(e,n){var r=e.cloneNode(!1);return r.ownerDocument=t,r.parentNode=null,null===n?s=r:n.appendChild(r),e.nodeType===p||i?r:null}}),s}(this,t,e)},getElementById:function(t){var e=null;return H(this.documentElement,function(i){if(i.nodeType==u&&i.getAttribute("id")==t)return e=i,!0}),e},getElementsByClassName:function(t){var e=c(t);return new B(this,function(i){var s=[];return e.length>0&&H(i.documentElement,function(n){if(n!==i&&n.nodeType===u){var r=n.getAttribute("class");if(r){var o=t===r;if(!o){var a=c(r);o=e.every((d=a,function(t){return d&&-1!==d.indexOf(t)}))}o&&s.push(n)}}var d}),s})},createElement:function(t){var e=new st;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new L,(e.attributes=new x)._ownerElement=e,e},createDocumentFragment:function(){var t=new pt;return t.ownerDocument=this,t.childNodes=new L,t},createTextNode:function(t){var e=new ot;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new at;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){if(-1!==t.indexOf("]]>"))throw new N(R,'data contains "]]>"');var e=new ct;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var i=new ft;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=t,i.nodeValue=i.data=e,i},createAttribute:function(t){var e=new nt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new ut;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var i=new st,s=e.split(":"),n=i.attributes=new x;return i.childNodes=new L,i.ownerDocument=this,i.nodeName=e,i.tagName=e,i.namespaceURI=t,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=e,n._ownerElement=i,i},createAttributeNS:function(t,e){var i=new nt,s=e.split(":");return i.ownerDocument=this,i.nodeName=e,i.name=e,i.namespaceURI=t,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=e,i}},h(j,V),st.prototype={nodeType:u,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+e,this.setAttributeNode(i)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===T?this.insertBefore(t,null):function(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,X(t.ownerDocument,t,e),it(e,t.ownerDocument||t),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);i&&this.removeAttributeNode(i)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);return i&&i.value||""},setAttributeNS:function(t,e,i){var s=this.ownerDocument.createAttributeNS(t,e);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new B(this,function(e){var i=[];return H(e,function(s){s===e||s.nodeType!=u||"*"!==t&&s.tagName!=t||i.push(s)}),i})},getElementsByTagNameNS:function(t,e){return new B(this,function(i){var s=[];return H(i,function(n){n===i||n.nodeType!==u||"*"!==t&&n.namespaceURI!==t||"*"!==e&&n.localName!=e||s.push(n)}),s})}},j.prototype.getElementsByTagName=st.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=st.prototype.getElementsByTagNameNS,h(st,V),nt.prototype.nodeType=p,h(nt,V),rt.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(A[I])},deleteData:function(t,e){this.replaceData(t,e,"")}
vendor: 1,821 bytes, line 2
2,replaceData:function(t,e,i){i=this.data.substring(0,t)+i+this.data.substring(t+e),this.nodeValue=this.data=i,this.length=i.length}},h(rt,V),ot.prototype={nodeName:"#text",nodeType:f,splitText:function(t){var e=this.data,i=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},h(ot,rt),at.prototype={nodeName:"#comment",nodeType:S},h(at,rt),ct.prototype={nodeName:"#cdata-section",nodeType:g},h(ct,rt),dt.prototype.nodeType=b,h(dt,V),ht.prototype.nodeType=w,h(ht,V),lt.prototype.nodeType=v,h(lt,V),ut.prototype.nodeType=m,h(ut,V),pt.prototype.nodeName="#document-fragment",pt.prototype.nodeType=T,h(pt,V),ft.prototype.nodeType=y,h(ft,V),gt.prototype.serializeToString=function(t,e,i,s){return mt.call(t,e,i,s)},V.prototype.toString=mt;try{Object.defineProperty&&(Object.defineProperty(B.prototype,"length",{get:function(){return k(this),this.$$length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){if(this.nodeType===u||this.nodeType===T){var t=[];return G(this,null,{enter:function(e){return e.nodeType===u||e.nodeType===T||(e.nodeType===y||e.nodeType===S?null:void t.push(e.nodeValue))}}),t.join("")}return this.nodeValue},set:function(t){switch(this.nodeType){case u:case T:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),bt=function(t,e,i){t["$$"+e]=i})}catch(t){}e.DocumentType=dt,e.DOMException=N,e.DOMImplementation=q,e.Element=st,e.Node=V,e.NodeList=L,e.walkDOM=G,e.XMLSerializer=gt},6598(t,e,i){"use strict";var s=i(525).freeze;e.XML_ENTITIES=s({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=s
vendor: 28,727 bytes, line 2
2({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:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",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:"Å",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:"â"}),
vendor: 4,855 bytes, line 2
2e.entityMap=e.HTML_ENTITIES},7937(t,e,i){var s=i(1129);s.DOMImplementation,s.XMLSerializer,e.DOMParser=i(8633).DOMParser},2133(t,e,i){var s=i(525).NAMESPACE,n=/[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]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function a(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function c(){}function d(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function h(t,e,i,n,r,o){function a(t,e,s){i.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),i.addValue(t,e.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),s)}for(var c,d=++e,h=0;;){var l=t.charAt(d);switch(l){case"=":if(1===h)c=t.slice(e,d),h=3;else{if(2!==h)throw new Error("attribute equal must after attrName");h=3}break;case"'":case'"':if(3===h||1===h){if(1===h&&(o.warning('attribute value must after "="'),c=t.slice(e,d)),e=d+1,!((d=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");a(c,u=t.slice(e,d),e-1),h=5}else{if(4!=h)throw new Error('attribute value must after "="');a(c,u=t.slice(e,d),e),o.warning('attribute "'+c+'" missed start quot('+l+")!!"),e=d+1,h=5}break;case"/":switch(h){case 0:i.setTagName(t.slice(e,d));case 5:case 6:case 7:h=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==h&&i.setTagName(t.slice(e,d)),d;case">":switch(h){case 0:i.setTagName(t.slice(e,d));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=t.slice(e,d)).slice(-1)&&(i.closed=!0,u=u.slice(0,-1));case 2:2===h&&(u=c),4==h?(o.warning('attribute "'+u+'" missed quot(")!'),a(c,u,e)):(s.isHTML(n[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),a(u,u,e));break;case 3:throw new Error("attribute value missed!!")}return d;case"Â":l=" ";default:if(l<=" ")switch(h){case 0:i.setTagName(t.slice(e,d)),h=6;break;case 1:c=t.slice(e,d),h=2;break;case 4:var u=t.slice(e,d);o.warning('attribute "'+u+'" missed quot(")!!'),a(c,u,e);case 5:h=6}else switch(h){case 2:i.tagName,s.isHTML(n[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),a(c,c,e),e=d,h=1;break;case 5:o.warning('attribute space is required"'+c+'"!!');case 6:h=1,e=d;break;case 3:h=4,e=d;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}d++}}function l(t,e,i){for(var n=t.tagName,r=null,o=t.length;o--;){var a=t[o],c=a.qName,d=a.value;if((p=c.indexOf(":"))>0)var h=a.prefix=c.slice(0,p),l=c.slice(p+1),u="xmlns"===h&&l;else l=c,h=null,u="xmlns"===c&&"";a.localName=l,!1!==u&&(null==r&&(r={},f(i,i={})),i[u]=r[u]=d,a.uri=s.XMLNS,e.startPrefixMapping(u,d))}for(o=t.length;o--;)(h=(a=t[o]).prefix)&&("xml"===h&&(a.uri=s.XML),"xmlns"!==h&&(a.uri=i[h||""]));var p;(p=n.indexOf(":"))>0?(h=t.prefix=n.slice(0,p),l=t.localName=n.slice(p+1)):(h=null,l=t.localName=n);var g=t.uri=i[h||""];if(e.startElement(g,l,n,t),!t.closed)return t.currentNSMap=i,t.localNSMap=r,!0;if(e.endElement(g,l,n),r)for(h in r)Object.prototype.hasOwnProperty.call(r,h)&&e.endPrefixMapping(h)}function u(t,e,i,s,n){if(/^(?:script|textarea)$/i.test(i)){var r=t.indexOf("</"+i+">",e),o=t.substring(e+1,r);if(/[&<]/.test(o))return/^script$/i.test(i)?(n.characters(o,0,o.length),r):(o=o.replace(/&#?\w+;/g,s),n.characters(o,0,o.length),r)}return e+1}function p(t,e,i,s){var n=s[i];return null==n&&((n=t.lastIndexOf("</"+i+">"))<e&&(n=t.lastIndexOf("</"+i)),s[i]=n),n<e}function f(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function g(t,e,i,s){if("-"===t.charAt(e+2))return"-"===t.charAt(e+3)?(n=t.indexOf("--\x3e",e+4))>e?(i.comment(t,e+4,n-e-4),n+3):(s.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var n=t.indexOf("]]>",e+9);return i.startCDATA(),i.characters(t,e+9,n-e-9),i.endCDATA(),n+3}var r=function(t,e){var i,s=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=e,n.exec(t);i=n.exec(t);)if(s.push(i),i[1])return s}(t,e),o=r.length;if(o>1&&/!doctype/i.test(r[0][0])){var a=r[1][0],c=!1,d=!1;o>3&&(/^public$/i.test(r[2][0])?(c=r[3][0],d=o>4&&r[4][0]):/^system$/i.test(r[2][0])&&(d=r[3][0]));var h=r[o-1];return i.startDTD(a,c,d),i.endDTD(),h.index+h[0].length}return-1}function m(t,e,i){var s=t.indexOf("?>",e);if(s){var n=t.substring(e,s).match(/^<\?(\S*)\s*([\s\S]*?)$/);return n?(n[0].length,i.processingInstruction(n[1],n[2]),s+2):-1}return-1}function v(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,c.prototype={parse:function(t,e,
2i){var n=this.domBuilder;n.startDocument(),f(e,e={}),function(t,e,i,n,r){function o(t){var e=t.slice(1,-1);return Object.hasOwnProperty.call(i,e)?i[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),i=56320+(1023&t);return String.fromCharCode(e,i)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(r.error("entity not found:"+t),t)}function c(e){if(e>E){var i=t.substring(E,e).replace(/&#?\w+;/g,o);b&&f(E),n.characters(i,0,e-E),E=e}}function f(e,i){for(;e>=S&&(i=_.exec(t));)y=i.index,S=y+i[0].length,b.lineNumber++;b.columnNumber=e-y+1}for(var y=0,S=0,_=/.*(?:\r\n?|\n)|.*$/g,b=n.locator,T=[{currentNSMap:e}],w={},E=0;;){try{var A=t.indexOf("<",E);if(A<0){if(!t.substr(E).match(/^\s*$/)){var I=n.doc,R=I.createTextNode(t.substr(E));I.appendChild(R),n.currentElement=R}return}switch(A>E&&c(A),t.charAt(A+1)){case"/":var P=t.indexOf(">",A+3),D=t.substring(A+2,P).replace(/[ \t\n\r]+$/g,""),C=T.pop();P<0?(D=t.substring(A+2).replace(/[\s<].*/,""),r.error("end tag name: "+D+" is not complete:"+C.tagName),P=A+1+D.length):D.match(/\s</)&&(D=D.replace(/[\s<].*/,""),r.error("end tag name: "+D+" maybe not complete"),P=A+1+D.length);var N=C.localNSMap,L=C.tagName==D;if(L||C.tagName&&C.tagName.toLowerCase()==D.toLowerCase()){if(n.endElement(C.uri,C.localName,D),N)for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&n.endPrefixMapping(B);L||r.fatalError("end tag name: "+D+" is not match the current start tagName:"+C.tagName)}else T.push(C);P++;break;case"?":b&&f(A),P=m(t,A,n);break;case"!":b&&f(A),P=g(t,A,n,r);break;default:b&&f(A);var k=new v,x=T[T.length-1].currentNSMap,M=(P=h(t,A,k,x,o,r),k.length);if(!k.closed&&p(t,P,k.tagName,w)&&(k.closed=!0,i.nbsp||r.warning("unclosed xml attribute")),b&&M){for(var O=d(b,{}),U=0;U<M;U++){var q=k[U];f(q.offset),q.locator=d(b,{})}n.locator=O,l(k,n,x)&&T.push(k),n.locator=b}else l(k,n,x)&&T.push(k);s.isHTML(k.uri)&&!k.closed?P=u(t,P,k.tagName,o,n):P++}}catch(t){if(t instanceof a)throw t;r.error("element parse error: "+t),P=-1}P>E?E=P:c(Math.max(A,E)+1)}}(t,e,i,n,this.errorHandler),n.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,i){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:i}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=c,e.ParseError=a},7991(t,e){"use strict";e.toByteArray=function(t){var e,i,r=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}(t),o=r[0],a=r[1],c=new n(function(t,e,i){return 3*(e+i)/4-i}(0,o,a)),d=0,h=a>0?o-4:o;for(i=0;i<h;i+=4)e=s[t.charCodeAt(i)]<<18|s[t.charCodeAt(i+1)]<<12|s[t.charCodeAt(i+2)]<<6|s[t.charCodeAt(i+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return 2===a&&(e=s[t.charCodeAt(i)]<<2|s[t.charCodeAt(i+1)]>>4,c[d++]=255&e),1===a&&(e=s[t.charCodeAt(i)]<<10|s[t.charCodeAt(i+1)]<<4|s[t.charCodeAt(i+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c},e.fromByteArray=function(t){for(var e,s=t.length,n=s%3,r=[],o=16383,a=0,d=s-n;a<d;a+=o)r.push(c(t,a,a+o>d?d:a+o));return 1===n?(e=t[s-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(t[s-2]<<8)+t[s-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),r.join("")};for(var i=[],s=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)i[o]=r[o],s[r.charCodeAt(o)]=o;function a(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function c(t,e,i){for(var s,n=[],r=e;r<i;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),n.push(a(s));return n.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},1048(t,e,i){"use strict";const s=i(7991),n=i(9318),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const o=2147483647;function a(t){if(t>
vendor: 7,099 bytes, line 2
2o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return d(t,e,i)}function d(t,e,i){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const i=0|g(t,e);let s=a(i);const n=s.write(t,e);return n!==i&&(s=s.slice(0,n)),s}(t,e);if(ArrayBuffer.isView(t))return function(t){if(J(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const s=t.valueOf&&t.valueOf();if(null!=s&&s!==t)return c.from(s,e,i);const n=function(t){if(c.isBuffer(t)){const e=0|f(t.length),i=a(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||$(t.length)?a(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return h(t),a(t<0?0:0|f(t))}function u(t){const e=t.length<0?0:0|f(t.length),i=a(e);for(let s=0;s<e;s+=1)i[s]=255&t[s];return i}function p(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');let s;return s=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(s,c.prototype),s}function f(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const i=t.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===i)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return z(t).length;default:if(n)return s?-1:X(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){let s=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,i);case"utf8":case"utf-8":return I(this,e,i);case"ascii":return P(this,e,i);case"latin1":case"binary":return D(this,e,i);case"base64":return A(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,i);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function v(t,e,i){const s=t[e];t[e]=t[i],t[i]=s}function y(t,e,i,s,n){if(0===t.length)return-1;if("string"==typeof i?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),$(i=+i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=c.from(e,s)),c.isBuffer(e))return 0===e.length?-1:S(t,e,i,s,n);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):S(t,[e],i,s,n);throw new TypeError("val must be string, number or Buffer")}function S(t,e,i,s,n){let r,o=1,a=t.length,c=e.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function d(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){let s=-1;for(r=i;r<a;r++)if(d(t,r)===d(e,-1===s?0:r-s)){if(-1===s&&(s=r),r-s+1===c)return s*o}else-1!==s&&(r-=r-s),s=-1}else for(i+c>a&&(i=a-c),r=i;r>=0;r--){let i=!0;for(let s=0;s<c;s++)if(d(t,r+s)!==d(e,s)){i=!1;break}if(i)return r}return-1}function _(t,e,i,s){i=Number(i)||0;const n=t.length-i;s?(s=Number(s))>n&&(s=n):s=n;const r=e.length;let o;for(s>r/2&&(s=r/2),o=0;o<s;++o){const s=parseInt(e.substr(2*o,2),16);if($(s))return o;t[i+o]=s}return o}function b(t,e,i,s){return K(X(e,t.length-i),t,i,s)}function T(t,e,i,s){return K(function(t){const e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,s)}function w(t,e,i,s){return K(z(e),t,i,s)}function E(t,e,i,s){return K(function(t,e){let i,s,n;const r=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)i=t.charCodeAt(o),s=i>>8,n=i%256,r.push(n),r.push(s);return r}(e,t.length-i),t,i,s)}function A(t,e,i){return 0===e&&i===t.length?s.fromByteArray(t):s.fromByteArray(t.slice(e,i))}function I(t,e,i){i=Math.min(t.length,i);const s=[];let n=e;for(;n<i;){const e=t[n];let r=null,o=e>239?4:e>223?3:e>191?2:1;if(n+o<=i){let i,s,a,c;switch(o){case 1:e<128&&(r=e);break;case 2:i=t[n+1],128==(192&i)&&(c=(31&e)<<6|63&i,c>127&&(r=c));break;case 3:i=t[n+1],s=t[n+2],128==(192&i)&&128==(192&s)&&(c=(15&e)<<12|(63&i)<<6|63&s,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:i=t[n+1],s=t[n+2],a=t[n+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&e)<<18|(63&i)<<12|(63&s)<<6|63&a,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,o=1):r>65535&&(r-=65536,s.push(r>>>10&1023|55296),r=56320|1023&r),s.push(r),n+=o}return function(t){const e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);let i="",s=0;for(;s<e;)i+=String.fromCharCode.apply(String,t.slice(s,s+=R));return i}(s)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}
vendor: 14,987 bytes, line 2
2),c.poolSize=8192,c.from=function(t,e,i){return d(t,e,i)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,i){return function(t,e,i){return h(t),t<=0?a(t):void 0!==e?"string"==typeof i?a(t).fill(e,i):a(t).fill(e):a(t)}(t,e,i)},c.allocUnsafe=function(t){return l(t)},c.allocUnsafeSlow=function(t){return l(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,s=e.length;for(let n=0,r=Math.min(i,s);n<r;++n)if(t[n]!==e[n]){i=t[n],s=e[n];break}return i<s?-1:s<i?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;const s=c.allocUnsafe(e);let n=0;for(i=0;i<t.length;++i){let e=t[i];if(J(e,Uint8Array))n+e.length>s.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(s,n)):Uint8Array.prototype.set.call(s,e,n);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(s,n)}n+=e.length}return s},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)v(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const i=e.IS;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(t,e,i,s,n){if(J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),e<0||i>t.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&e>=i)return 0;if(s>=n)return-1;if(e>=i)return 1;if(this===t)return 0;let r=(n>>>=0)-(s>>>=0),o=(i>>>=0)-(e>>>=0);const a=Math.min(r,o),d=this.slice(s,n),h=t.slice(e,i);for(let t=0;t<a;++t)if(d[t]!==h[t]){r=d[t],o=h[t];break}return r<o?-1:o<r?1:0},c.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return y(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return y(this,t,e,i,!1)},c.prototype.write=function(t,e,i,s){if(void 0===e)s="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)s=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}const n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let r=!1;for(;;)switch(s){case"hex":return _(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":case"latin1":case"binary":return T(this,t,e,i);case"base64":return w(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function P(t,e,i){let s="";i=Math.min(t.length,i);for(let n=e;n<i;++n)s+=String.fromCharCode(127&t[n]);return s}function D(t,e,i){let s="";i=Math.min(t.length,i);for(let n=e;n<i;++n)s+=String.fromCharCode(t[n]);return s}function C(t,e,i){const s=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>s)&&(i=s);let n="";for(let s=e;s<i;++s)n+=Y[t[s]];return n}function N(t,e,i){const s=t.slice(e,i);let n="";for(let t=0;t<s.length-1;t+=2)n+=String.fromCharCode(s[t]+256*s[t+1]);return n}function L(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,i,s,n,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<r)throw new RangeError('"value" argument is out of bounds');if(i+s>t.length)throw new RangeError("Index out of range")}function k(t,e,i,s,n){H(e,s,n,t,i,7);let r=Number(e&BigInt(4294967295));t[i++]=r,r>>=8,t[i++]=r,r>>=8,t[i++]=r,r>>=8,t[i++]=r;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,i}function x(t,e,i,s,n){H(e,s,n,t,i,7);let r=Number(e&BigInt(4294967295));t[i+7]=r,r>>=8,t[i+6]=r,r>>=8,t[i+5]=r,r>>=8,t[i+4]=r;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i+3]=o,o>>=8,t[i+2]=o,o>>=8,t[i+1]=o,o>>=8,t[i]=o,i+8}function M(t,e,i,s,n,r){if(i+s>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function O(t,e,i,s,r){return e=+e,i>>>=0,r||M(t,0,i,4),n.write(t,e,i,s,23,4),i+4}function U(t,e,i,s,r){return e=+e,i>>>=0,r||M(t,0,i,8),n.write(t,e,i,s,52,8),i+8}c.prototype.slice=function(t,e){const i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);const s=this.subarray(t,e);return Object.setPrototypeOf(s,c.prototype),s},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||L(t,e,this.length);let s=this[t],n=1,r=0;for(;++r<e&&(n*=256);)s+=this[t+r]*n;return s},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||L(t,e,this.length);let s=this[t+--e],n=1;for(;e>0&&(n*=256);)s+=this[t+--e]*n;return s},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Q(function(t){G(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const s=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,n=this[++t]+256*this[++t]+65536*this[++t]+i*2**24;return BigInt(s)+(BigInt(n)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(t){G(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const s=e*2**24+65536*this[++t]+256*this[++t]+this[++t],n=this[++t]*2**24+65536*this[++t]+256*this[++t]+i;return(BigInt(s)<<BigInt(32))+BigInt(n)}),c.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||L(t,e,this.length);let s=this[t],n=1,r=0;for(;++r<e&&(n*=256);)s+=this[t+r]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*e)),s},c.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||L(t,e,this.length);let s=e,n=1,r=this[t+--s];for(;s>0&&(n*=256);)r+=this[t+--s]*n;return n*=128,r>=n&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Q(function(t){G(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const s=this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24);return(BigInt(s)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),c.prototype.readBigInt64BE=Q(function(t){G(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const s=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(s)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+i)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),n.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),n.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),n.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),n.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,i,s){t=+t,e>>>=0,i>>>=0,s||B(this,t,e,i,Math.pow(2,8*i)-1,0);let n=1,r=0;for(this[e]=255&t;++r<i&&(n*=256);)this[e+r]=t/n&255;return e+i},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,i,s){t=+t,e>>>=0,i>>>=0,s||B(this,t,e,i,Math.pow(2,8*i)-1,0);let n=i-1,r=1;for(this[e+n]=255&t;--n>=0&&(r*=256);)this[e+n]=t/r&255;return e+i},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Q(function(t,e=0){return k(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,i,s){if(t=+t,e>>>=0,!s){const s=Math.pow(2,8*i-1);B(this,t,e,i,s-1,-s)}let n=0,r=1,o=0;for(this[e]=255&t;++n<i&&(r*=256);)t<0&&0===o&&0!==this[e+n-1]&&(o=1),this[e+n]=(t/r|0)-o&255;return e+i},c.prototype.writeIntBE=function(t,e,i,s){if(t=+t,e>>>=0,!s){const s=Math.pow(2,8*i-1);B(this,t,e,i,s-1,-s)}let n=i-1,r=1,o=0;for(this[e+n]=255&t;--n>=0&&(r*=256);)t<0&&0===o&&0!==this[e+n+1]&&(o=1),this[e+n]=(t/r|0)-o&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Q(function(t,e=0){return k(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,i){return O(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return O(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return U(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return U(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,s){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),s||0===s||(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s<i&&(s=i),s===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-e<s-i&&(s=t.length-e+i);const n=s-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,s):Uint8Array.prototype.set.call(t,this.subarray(i,s),e),n},c.prototype.fill=function(t,e,i,s){if("string"==typeof t){if("string"==typeof e?(s=e,e=0,i=this.length):"string"==typeof i&&(s=i,i=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!c.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===t.length){const e=t.charCodeAt(0);("utf8"===s&&e<128||"latin1"===s)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;let n;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n<i;++n)this[n]=t;else{const r=c.isBuffer(t)?t:c.from(t,s),o=r.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<i-e;++n)this[n+e]=r[n%o]}return this};const q={};function V(t,e,i){q[t]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",i=t.length;const s="-"===t[0]?1:0;for(;i>=s+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}
vendor: 6,045 bytes, line 2
2function H(t,e,i,s,n,r){if(t>i||t<e){const s="bigint"==typeof e?"n":"";let n;throw n=r>3?0===e||e===BigInt(0)?`>= 0${s} and < 2${s} ** ${8*(r+1)}${s}`:`>= -(2${s} ** ${8*(r+1)-1}${s}) and < 2 ** ${8*(r+1)-1}${s}`:`>= ${e}${s} and <= ${i}${s}`,new q.ERR_OUT_OF_RANGE("value",n,t)}!function(t,e,i){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+i]||j(e,t.length-(i+1))}(s,n,r)}function G(t,e){if("number"!=typeof t)throw new q.ERR_INVALID_ARG_TYPE(e,"number",t)}function j(t,e,i){if(Math.floor(t)!==t)throw G(t,i),new q.ERR_OUT_OF_RANGE(i||"offset","an integer",t);if(e<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${e}`,t)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),V("ERR_OUT_OF_RANGE",function(t,e,i){let s=`The value of "${t}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>2**32?n=F(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=F(n)),n+="n"),s+=` It must be ${e}. Received ${n}`,s},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function X(t,e){let i;e=e||1/0;const s=t.length;let n=null;const r=[];for(let o=0;o<s;++o){if(i=t.charCodeAt(o),i>55295&&i<57344){if(!n){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===s){(e-=3)>-1&&r.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(e-=3)>-1&&r.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function z(t){return s.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,i,s){let n;for(n=0;n<s&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function $(t){return t!=t}const Y=function(){const t="0123456789abcdef",e=new Array(256);for(let i=0;i<16;++i){const s=16*i;for(let n=0;n<16;++n)e[s+n]=t[i]+t[n]}return e}();function Q(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},2553(t,e,i){var s;s="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},t.exports=s},9318(t,e){e.read=function(t,e,i,s,n){var r,o,a=8*n-s-1,c=(1<<a)-1,d=c>>1,h=-7,l=i?n-1:0,u=i?-1:1,p=t[e+l];for(l+=u,r=p&(1<<-h)-1,p>>=-h,h+=a;h>0;r=256*r+t[e+l],l+=u,h-=8);for(o=r&(1<<-h)-1,r>>=-h,h+=s;h>0;o=256*o+t[e+l],l+=u,h-=8);if(0===r)r=1-d;else{if(r===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,s),r-=d}return(p?-1:1)*o*Math.pow(2,r-s)},e.write=function(t,e,i,s,n,r){var o,a,c,d=8*r-n-1,h=(1<<d)-1,l=h>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=s?0:r-1,f=s?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+l>=1?u/c:u*Math.pow(2,1-l))*c>=2&&(o++,c/=2),o+l>=h?(a=0,o=h):o+l>=1?(a=(e*c-1)*Math.pow(2,n),o+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,n),o=0));n>=8;t[i+p]=255&a,p+=f,a/=256,n-=8);for(o=o<<n|a,d+=n;d>0;t[i+p]=255&o,p+=f,o/=256,d-=8);t[i+p-f]|=128*g}},235(module,exports,__webpack_require__){var process=__webpack_require__(9907),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i<OUTPUT_TYPES.length;++i){var s=OUTPUT_TYPES[i];e[s]=createOutputMethod(s,t)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if("string"==typeof t)return crypto.createHash(algorithm).update(t,"utf8").digest("hex");
vendor: 9,434 bytes, line 2
2if(null==t)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,e){return function(i,s){return new HmacSha256(i,e,!0).update(s)[t]()}},createHmacMethod=function(t){var e=createHmacOutputMethod("hex",t);e.create=function(e){return new HmacSha256(e,t)},e.update=function(t,i){return e.create(t).update(i)};for(var i=0;i<OUTPUT_TYPES.length;++i){var s=OUTPUT_TYPES[i];e[s]=createHmacOutputMethod(s,t)}return e};function Sha256(t,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function HmacSha256(t,e,i){var s,n=typeof t;if("string"===n){var r,o=[],a=t.length,c=0;for(s=0;s<a;++s)(r=t.charCodeAt(s))<128?o[c++]=r:r<2048?(o[c++]=192|r>>6,o[c++]=128|63&r):r<55296||r>=57344?(o[c++]=224|r>>12,o[c++]=128|r>>6&63,o[c++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++s)),o[c++]=240|r>>18,o[c++]=128|r>>12&63,o[c++]=128|r>>6&63,o[c++]=128|63&r);t=o}else{if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var d=[],h=[];for(s=0;s<64;++s){var l=t[s]||0;d[s]=92^l,h[s]=54^l}Sha256.call(this,e,i),this.update(h),this.oKeyPad=d,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var s,n,r=0,o=t.length,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=t[r]<<SHIFT[3&n++];else for(n=this.start;r<o&&n<64;++r)(s=t.charCodeAt(r))<128?a[n>>2]|=s<<SHIFT[3&n++]:s<2048?(a[n>>2]|=(192|s>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&s)<<SHIFT[3&n++]):s<55296||s>=57344?(a[n>>2]|=(224|s>>12)<<SHIFT[3&n++],a[n>>2]|=(128|s>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&s)<<SHIFT[3&n++]):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++r)),a[n>>2]|=(240|s>>18)<<SHIFT[3&n++],a[n>>2]|=(128|s>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|s>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&s)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,s,n,r,o,a,c,d=this.h0,h=this.h1,l=this.h2,u=this.h3,p=this.h4,f=this.h5,g=this.h6,m=this.h7,v=this.blocks;for(t=16;t<64;++t)e=((n=v[t-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,i=((n=v[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,v[t]=v[t-16]+e+v[t-7]+i|0;for(c=h&l,t=0;t<64;t+=4)this.first?(this.is224?(r=300032,m=(n=v[0]-1413257819)-150054599|0,u=n+24177077|0):(r=704751109,m=(n=v[0]-210244248)-1521486534|0,u=n+143694565|0),this.first=!1):(e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),s=(r=d&h)^d&l^c,m=u+(n=m+(i=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&f^~p&g)+K[t]+v[t])|0,u=n+(e+s)|0),e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),s=(o=u&d)^u&h^r,g=l+(n=g+(i=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&p^~m&f)+K[t+1]+v[t+1])|0,e=((l=n+(e+s)|0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),s=(a=l&u)^l&d^o,f=h+(n=f+(i=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&p)+K[t+2]+v[t+2])|0,e=((h=n+(e+s)|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),s=(c=h&l)^h&u^a,p=d+(n=p+(i=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&g^~f&m)+K[t+3]+v[t+3])|0,d=n+(e+s)|0;this.h0=this.h0+d|0,this.h1=this.h1+h|0,this.h2=this.h2+l|0,this.h3=this.h3+u|0,this.h4=this.h4+p|0,this.h5=this.h5+f|0,this.h6=this.h6+g|0,this.h7=this.h7+m|0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,s=this.h3,n=this.h4,r=this.h5,o=this.h6,a=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,s=this.h3,n=this.h4,r=this.h5,o=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},9907(t){var e,i,s=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var a,c=[],d=!1,h=-1;function l(){d&&a&&(d=!1,a.length?c=a.concat(c):h=-1,c.length&&u())}function u(){if(!d){var t=o(l);d=!0;for(var e=c.length;e;){for(a=c,c=[];++h<e;)a&&a[h].run();h=-1,e=c.length}a=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new p(t,e)),1!==c.length||d||o(u)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,
2s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},3555(t,e,i){"use strict";i.d(e,{default:()=>n});var s=i(2784);class n{constructor(t,e,i,n,r,o,a,c){this.method=s.Method.GET,this.videoKey=i,this.service=t,this.method=n,this.params=e||{},this.expirationManager=c,this.body=r,this.onSuccessCallback=o,this.onFailCallback=a}getService(){return this.service}getMethod(){var t;return null!==(t=this.method)&&void 0!==t?t:s.Method.GET}setMethod(t){this.method=t}getParams(){return this.params}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getVideoKey(){return this.videoKey}getExpirationManager(){return this.expirationManager}getParam(t){return this.params[t]}setParam(t,e){return this.params[t]=e,this}setParams(t){this.params=t}getBody(){return this.body}setBody(t){this.body=t}isPost(){return this.method===s.Method.POST}}},6075(t,e,i){"use strict";i.d(e,{default:()=>c});var s=i(108),n=i(474),r=i(3555),o=i(2784),a=i(61);class c{constructor(t){this.readyToSend=!1,this.servicesToWait=[s.A.Service.INIT,s.A.Service.START],this.onWillSendVideoRequestListeners=[],this.pluginRef=t,this._requests=[],this._waitingForToken=[],this._waitingForMetadata=[]}shouldSendStats(){return this.readyToSend}sendRequest(t){if(""===n.default.getInstance().getFastDataSessionToken())return void this._waitingForToken.push(t);this._waitingForToken.forEach(t=>this.prepareParams(t)),this._requests.push(...this._waitingForToken),this._waitingForToken=[];let e=t.getVideoKey(),i=t.getParams(),s=t.getService();for(const t of this.onWillSendVideoRequestListeners)t(s,e,i);this.prepareParams(t),this._requests.push(t),this._processRequests()}prepareParams(t){const e=t.getService();e!==s.A.Service.START&&e!==s.A.Service.PING||(t.setParam("pingTime",t.getParam("pingTime")||n.default.getInstance().getFastDataService().getPingTime()),n.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&t.setParam("sessionParent",t.getParam("sessionParent")||n.default.getInstance().getFastDataSessionToken()));const i=t.getVideoKey();this.pluginRef.videos.existsVideo(i)&&t.setParam("code",t.getParam("code")||this.pluginRef.videos.getVideo(i).getViewCode()),e!==s.A.Service.INIT&&e!==s.A.Service.START&&e!==s.A.Service.ERROR||n.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&(t.setParam("parentId",t.getParam("sessionRoot")),t.setParam("navContext",t.getParam("navContext")||n.default.getInstance().getCommonVariable("appAnalytics","context")))}buildRequest(t,e,i,s,n,a,c){i=null!=i?i:o.Method.GET;const d=new r.default(t,e,"",i,s,n,a,c);return d.setMethod(i),d}_processRequests(){const t=this._requests;this._requests=[],t.forEach(t=>{if(-1!==this.servicesToWait.indexOf(t.getService())&&(this.readyToSend=!0),this.readyToSend){for(;this._waitingForMetadata.length;){const t=this._waitingForMetadata.shift();n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?a.default.Consumer.PERSISTENT:a.default.Consumer.NQS,t.getService(),t.getMethod(),t.getParams(),t.getOnSuccess(),t.getOnFail())}const e=t.getExpirationManager();e&&e.onRequestSent(),n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?a.default.Consumer.PERSISTENT:a.default.Consumer.NQS,t.getService(),t.getMethod(),t.getParams(),t.getOnSuccess(),t.getOnFail())}else this._waitingForMetadata.push(t)})}}},1146(t,e,i){"use strict";i.d(e,{default:()=>l});var s=i(474),n=i(1577),r=i(9835),o=i.n(r),a=i(9637),c=i.n(a),d=i(5804),h=i.n(d);class l{constructor(t){this.options=t}getUsername(){return this.options.userId?this.options.userId:this.options["user.name"]}getProfileId(){return this.options.profileId}getPluginVersion(){return s.default.getPluginVersion()}getRequestNumber(){return Math.random()}getUserType(){return this.options["user.type"]}getAnonymousUser(){return this.options["user.anonymousId"]}getReferer(){let t=this.options.referer||"";return!t&&"undefined"!=typeof window&&window.location&&(t=window.location.href),t}getReferral(){let t=this.options.referral||"";return t||"undefined"==typeof document||(t=document.referrer),t}getPageName(){let t=this.options.title||"";return t||"undefined"==typeof document||(t=document.title),t}getLanguage(){return"undefined"!=typeof navigator?navigator.language:void 0}getScreenResolution(){let t;try{if(window&&window.screen){const e=window.devicePixelRatio||1;t=window.screen.width*e+"x"+window.screen.height*e}}catch(t){}return t}getDeviceInfo(){let t={};return this.getDeviceCode()&&(t.deviceCode=this.getDeviceCode()),this.getModel()&&(t.model=this.getModel()),this.getBrand()&&(t.brand=this.getBrand()),this.getDeviceType()&&(t.deviceType=this.getDeviceType()),this.getDeviceName()&&(t.deviceName=this.getDeviceName()),this.getOsName()&&(t.osName=this.getOsName()),this.getOsVersion()&&(t.osVersion=this.getOsVersion()),this.getBrowserName()&&(t.browserName=this.getBrowserName()),this.getBrowserVersion()&&(t.browserVersion=this.getBrowserVersion()),this.getBrowserType()&&(t.browserType=this.getBrowserType()),this.getBrowserEngine()&&(t.browserEngine=this.getBrowserEngine()),0!==Object.keys(t).length?t:void 0}getDeviceCode(){return this.options["device.code"]}getModel(){return this.options["device.model"]}getBrand(){return this.options["device.brand"]}getDeviceType(){return this.options["device.type"]}getDeviceName(){return this.options["device.name"]}getOsName(){return this.options["device.osName"]}getOsVersion(){return this.options["device.osVersion"]}getBrowserName(){return this.options["device.browserName"]}getBrowserVersion(){return this.options["device.browserVersion"]}getBrowserType(){return this.options["device.browserType"]}getBrowserEngine(){return this.options["device.browserEngine"]}getIsBlocked(){return this.options["ad.blockerDetected"]}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===c().POST}getDeviceUUID(){let t;return this.options["device.isAnonymous"]||(t=this.options["device.id"]||(new(h())).getKey()),t}getLibVersion(){return o()}getAppName(){return this.options["app.name"]}getAppReleaseVersion(){return this.options["app.releaseVersion"]}getIp(){return this.options["network.ip"]}getIsp(){return this.options["network.isp"]}getConnectionType(){return this.options["network.connectionType"]}getEDID(){const t=this.options["device.EDID"];return t?t.toString():void 0}getObfuscateIp(){return this.options["user.obfuscateIp"]}getPrivacyProtocol(){let t=this.options["user.privacyProtocol"];return"string"==typeof t&&(t=t.toLowerCase()),"optin"===t||"optout"===t?t:void 0}getCustomDimensions(){const t=this.options["content.customDimensions"];return"object"==typeof t?t:void 0}getExtraparam1(){return this.options["content.customDimension.1"]}getExtraparam2(){return this.options["content.customDimension.2"]}getExtraparam3(){return this.options["content.customDimension.3"]}getExtraparam4(){return this.options["content.customDimension.4"]}getExtraparam5(){return this.options["content.customDimension.5"]}getExtraparam6(){return this.options["content.customDimension.6"]}getExtraparam7(){return this.options["content.customDimension.7"]}getExtraparam8(){return this.options["content.customDimension.8"]}getExtraparam9(){return this.options["content.customDimension.9"]}getExtraparam10(){return this.options["content.customDimension.10"]}getExtraparam11(){return this.options["content.customDimension.11"]}getExtraparam12(){return this.options["content.customDimension.12"]}getExtraparam13(){return this.options["content.customDimension.13"]}getExtraparam14(){return this.options["content.customDimension.14"]}getExtraparam15(){return this.options["content.customDimension.15"]}getExtraparam16(){return this.options["content.customDimension.16"]}getExtraparam17(){return this.options["content.customDimension.17"]}getExtraparam18(){return this.options["content.customDimension.18"]}getExtraparam19(){return this.options["content.customDimension.19"]}getExtraparam20(){return this.options["content.customDimension.20"]}isParseManifest(){return this.options["parse.manifest"]}
2isParseLocationHeaderGetRequest(){return this.options["parse.locationHeader.get"]}isParseCdnNode(){return this.options["parse.cdnNode"]}isCDNParserHeaderGetRequest(){return this.options["parse.cdnParser.get"]}isCdnSwitch(){return this.options["parse.cdnSwitchHeader"]}getParseCdnNodeList(){return this.options["parse.cdnNode.list"]}getParseCdnNodeNameHeader(){return this.options["parse.cdnNameHeader"]}getParseNodeHeader(){return this.options["parse.cdnNodeHeader"]}canOverwriteAdapters(){return n.default.parseBoolean(this.options["adapters.overwrite"])}getAdaptersProperties(){return this.options["adapters.properties"]}isAppAnalyticsAutoBegin(){return n.default.parseBoolean(this.options["check.appAnalytics.autoBegin"])}isAppAnalyticsEnabled(){return n.default.parseBoolean(this.options["check.appAnalytics.enabled"])}isVideoAnalyticsEnabled(){return n.default.parseBoolean(this.options["check.videoAnalytics.enabled"])}isRefreshLMAConfigurationEnabled(){return n.default.parseBoolean(this.options["lma.refresh.configuration.enabled"])}isPluginLogsEnabled(){return n.default.parseBoolean(this.options["debug.pluginLogs.enabled"])}isPlayerLogsEnabled(){return n.default.parseBoolean(this.options["debug.playerLogs.enabled"])}refreshLMAConfigurationSeconds(){return this.options["lma.refresh.configuration.seconds"]}getPlayheadMonitorEnabled(){return this.options["playhead.monitor"]}getReadyStateMonitorEnabled(){return this.options["readyState.monitor"]}}},2784(t,e,i){"use strict";var s,n,r;i.d(e,{A4:()=>l,AnalyticsTag:()=>a,BalancerTag:()=>h,CoreEvents:()=>r,ExpireDefault:()=>n,Method:()=>s,_y:()=>c,cN:()=>o,ob:()=>d}),function(t){t.GET="GET",t.POST="POST"}(s||(s={})),function(t){t[t.DEFAULT_VIEW_TIMEOUT_MS=12e4]="DEFAULT_VIEW_TIMEOUT_MS",t[t.DEFAULT_MAX_DURATION_VIEW_MS=864e5]="DEFAULT_MAX_DURATION_VIEW_MS",t[t.DEFAULT_SESSION_TIMEOUT_MS=18e4]="DEFAULT_SESSION_TIMEOUT_MS",t[t.DEFAULT_MAX_DURATION_SESSION_MS=1728e5]="DEFAULT_MAX_DURATION_SESSION_MS",t[t.STOP_VIEWS_AFTER_SESSION_EXPIRE_MS=2e3]="STOP_VIEWS_AFTER_SESSION_EXPIRE_MS"}(n||(n={})),function(t){t.SESSION_EXPIRE="SessionExpire",t.FAST_DATA_READY="FastDataReady"}(r||(r={}));const o="Sessions",a="Analytics",c="AppAnalytics",d="ProductAnalytics",h="Balancer",l="Core"},3473(t,e,i){"use strict";i.d(e,{default:()=>r});var s=i(7276),n=i(2784);class r{constructor(t,e,i){if(this.timeoutMs=t,this.maxDurationMs=e,this.coreStorage=i,this.expired=!1,i)try{const t=i.getLocal("firstRequestTime");this.firstRequestTime=t?Number(t):void 0;const e=i.getLocal("lastRequestTime");this.lastRequestTime=e?Number(e):void 0}catch(t){s.default.debug(n.A4,"Error loading expiration times from storage:",t)}}onRequestSent(){const t=Date.now();void 0===this.firstRequestTime&&(this.firstRequestTime=t),this.lastRequestTime=t,this.coreStorage&&(void 0!==this.firstRequestTime&&this.coreStorage.setLocal("firstRequestTime",this.firstRequestTime.toString()),void 0!==this.lastRequestTime&&this.coreStorage.setLocal("lastRequestTime",this.lastRequestTime.toString()))}reset(){this.coreStorage&&(this.coreStorage.removeLocal("firstRequestTime"),this.coreStorage.removeLocal("lastRequestTime")),this.firstRequestTime=void 0,this.lastRequestTime=void 0,this.expired=!1}checkExpiration(t){void 0!==t&&t!==this.timeoutMs&&(this.timeoutMs=t);const e=Date.now();let i=this.lastRequestTime,r=this.firstRequestTime;if(this.coreStorage)try{const t=this.coreStorage.getLocal("lastRequestTime");i=t?Number(t):i;const e=this.coreStorage.getLocal("firstRequestTime");r=e?Number(e):r}catch(t){s.default.debug(n.A4,"Error reading expiration times from storage:",t)}const o=void 0!==i&&e-i>this.timeoutMs,a=void 0!==r&&e-r>this.maxDurationMs;!o&&!a||this.expired||(this.expired=!0)}isExpired(){return this.checkExpiration(),this.expired}isStarted(){return void 0!==this.firstRequestTime&&this.firstRequestTime>0}isActive(){return void 0!==this.firstRequestTime&&this.firstRequestTime>0&&(this.checkExpiration(),!this.expired)}}},7276(t,e,i){"use strict";var s;i.d(e,{LogLevel:()=>s,default:()=>n}),function(t){t[t.SILENT=6]="SILENT",t[t.ERROR=5]="ERROR",t[t.WARNING=4]="WARNING",t[t.NOTICE=3]="NOTICE",t[t.DEBUG=2]="DEBUG",t[t.VERBOSE=1]="VERBOSE"}(s||(s={}));
2class n{static report(t,e,i,r){if("undefined"!=typeof console&&console.log){r=r||"darkcyan";const a={5:"e",4:"w",3:"n",2:"d",1:"v"}[i=i||s.NOTICE];let c=`[NPAW - ${t}]`+this._getCurrentTime()+" "+a+":";if(n.logLevel<=i)if(n.plainLogs||"undefined"!=typeof document&&document.documentMode)this._plainReport(e,c);else{let t;t=i===s.ERROR&&console.error?console.error:i===s.WARNING&&console.warn?console.warn:i===s.DEBUG&&console.debug?console.debug:console.log,c="%c"+c,o=e,"[object Array]"===Object.prototype.toString.call(o)?(e.splice(0,0,c,"color: "+r),t.apply(console,e)):t.call(console,c,"color: "+r,e)}}var o}static _getCurrentTime(){const t=new Date;return"["+("0"+t.getDate()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+"."+("00"+t.getMilliseconds()).slice(-3)+"]"}static _plainReport(t,e){if(t instanceof Array)for(const i in t)this._plainReport(t[i],e);else"string"==typeof t?console.log(e+" "+t):(console.log(e+" <next line>"),console.log(t))}static setLogLevel(t){this.logLevel=t}static getLogLevel(){return this.logLevel}static error(t,...e){this.report(t,[].slice.call(arguments,1),s.ERROR,"darkred")}static warn(t,...e){this.report(t,[].slice.call(arguments,1),s.WARNING,"darkorange")}static notice(t,...e){this.report(t,[].slice.call(arguments,1),s.NOTICE,"darkgreen")}static debug(t,...e){this.report(t,[].slice.call(arguments,1),s.DEBUG,"indigo")}static verbose(t,...e){this.report(t,[].slice.call(arguments,1),s.VERBOSE,"navy")}static loadLevelFromUrl(){"undefined"!=typeof window&&window.location&&this._parseLevelFromUrl(window.location.search)}static _parseLevelFromUrl(t){if(t){const e=/\?.*&*npaw-debug=(.+)/i.exec(t);null!==e&&(this.logLevel=Number(e[1])),null!==/\?.*&*npaw-debug=plain/i.exec(t)&&(this.plainLogs=!0)}}}n.logLevel=s.ERROR,n.plainLogs=!1},474(t,e,i){"use strict";i.d(e,{default:()=>P});var s=i(108),n=i(1577),r=i(2784),o=i(7276);class a{static request(t){const e=(t.method||"GET").toUpperCase(),i=new XMLHttpRequest;return{promise:new Promise((s,n)=>{if(i.open(e,t.url),t.withCredentials&&(i.withCredentials=!0),t.timeoutMs&&t.timeoutMs>0&&(i.timeout=t.timeoutMs),t.headers)for(const[e,s]of Object.entries(t.headers))try{i.setRequestHeader(e,String(s))}catch(t){}i.onload=function(){var t;s({status:this.status,body:null!==(t=this.responseText)&&void 0!==t?t:"",xhr:i})},i.onerror=function(){n({status:i.status||0,body:"",xhr:i})},i.ontimeout=function(){n({status:i.status||0,body:"",xhr:i})};try{i.send(t.body)}catch(t){n({status:i.status||0,body:"",xhr:i})}}),abort:()=>{try{i.onload=null,i.onerror=null,i.ontimeout=null,i.abort()}catch(t){}},xhr:i}}}var c=i(9907);class d{constructor(t,e,i,s,n){var r;this.response={},this._session="",this.activeXHRs=new Set,this.sessionExpire=120,this.viewTimeout=120,this.retries=0,this.MAX_RETRIES=25,this.isUsingLegacy=!1,this.options=t,this.npawPluginOptions=n,this.accountCode=e,this.coreStorage=i,this.browserStorage=s,this._fastDataHost=this.options.getFastDataHost();const o="true"===c.env.IS_STANDALONE;this.isUsingLegacy=o&&void 0!==(null===(r=null==n?void 0:n.legacyPlugin)||void 0===r?void 0:r.viewTransform),this._createConfigurationInterval()}init(){var t,e;if(this.options&&this.options.offline)return this.response.host="OFFLINE",this.response.code="OFFLINE",this.response.pingTime=60,this.response.beatTime=60,void(this._session=n.default.generateRandomString(15));if(this.isUsingLegacy)return;if(this.browserStorage&&this.browserStorage.isEnabled()&&(new Date).getTime()<1e3*(null!==(t=Number(this.browserStorage.getLocal("sessionExpire")))&&void 0!==t?t:this.sessionExpire)+(Number(this.coreStorage.getDataTime())||0)&&this.coreStorage.getStoredData())return void this.setData(null!==(e=this.coreStorage.getStoredData())&&void 0!==e?e:"");this.coreStorage.removeLocal("firstRequestTime"),this.coreStorage.removeLocal("lastRequestTime");const i=s.A.Service.DATA,a={system:this.accountCode,pluginVersion:P.getPluginVersion(),requestNumber:this.getRequestNumber()};this.loadConfiguration();try{o.default.notice(r.A4,i+" "+a.system),"nicetest"===a.system&&o.default.error(r.A4,"No accountCode has been set. Please set your accountCode inside plugin's options."),this.performRequestToFastData(i,a,this._receiveData.bind(this),this._failedData.bind(this))}catch(t){o.default.error(r.A4,"Error doing get data request to FastData service.")}}updateOptions(t){const e=this.options.isRefreshLMAConfigurationEnabled(),i=this.options.refreshLMAConfigurationSeconds();if(this.options.updateOptions(t),this.options.offline&&(this.reset(),this.init()),!this.isUsingLegacy){const t=this.options.isRefreshLMAConfigurationEnabled(),s=this.options.refreshLMAConfigurationSeconds();(e!==t||t&&i!==s)&&this._recreateConfigurationInterval()}}getSessionExpireTime(){return this.sessionExpire}refreshSessionToken(){this._session="",this.browserStorage.removeStorages("data"),this.init()}loadConfiguration(){const t=s.A.Service.CONFIGURATION,e={system:this.accountCode,pluginVersion:P.getPluginVersion(),requestNumber:this.getRequestNumber()};this.performRequestToFastData(t,e,this._receiveConfiguration.bind(this),this._failedConfiguration.bind(this))}getSession(){var t,e;return this.isUsingLegacy?null===(e=null===(t=this.npawPluginOptions)||void 0===t?void 0:t.legacyPlugin)||void 0===e?void 0:e.viewTransform._session:this._session}setSession(t){this._session=t}setHost(t){this.response.host=t}getPingTime(){var t;return null!==(t=this.pingTime)&&void 0!==t?t:5}getBeatTime(){var t;return null!==(t=this.beatTime)&&void 0!==t?t:30}getViewTimeoutTime(){var t;return null!==(t=this.viewTimeout)&&void 0!==t?t:120}isBalancerEnabledByFastData(){return this.response.balancerEnabled}setData(t){try{const e=this.pingTime,i=JSON.parse(t);if(this.options["parse.fdsResponseHost"]){const e=this.options["parse.fdsResponseHost"](i.q.h);
2i.q.h=e,t=JSON.stringify(i)}this.response={msg:t,host:i.q.h,code:i.q.c,pingTime:i.q.pt||5,beatTime:i.q.i&&i.q.i.bt||30,sessionExpire:i.q.st&&i.q.st||120,viewTimeout:i.q.vt&&i.q.vt||120,balancerEnabled:void 0!==i.q.cb?1===i.q.cb:void 0},this._session=this.response.code,this.browserStorage.setLocal("sessionExpire",this.response.sessionExpire),this.browserStorage.setLocal("viewExpire",this.response.viewTimeout),this.browserStorage.setStorages("accCode",this.accountCode),this.browserStorage.setStorages("session",this.response.code),this.coreStorage.setStoredData(this.response.msg),this.coreStorage.setDataTime((new Date).getTime().toString()),this.pingTime=this.response.pingTime,this.beatTime=this.response.beatTime,this.sessionExpire=this.response.sessionExpire,this.viewTimeout=this.response.viewTimeout,"number"==typeof this.pingTime&&this.pingTime>0&&this.pingTime!==e&&P.getInstance().throwEvent(r.CoreEvents.FAST_DATA_READY)}catch(t){o.default.error(r.A4,"Fastdata response is invalid.")}}setConfiguration(t){try{this.response.configurationOptions=JSON.parse(t)}catch(t){o.default.error(r.A4,"Configuration response is invalid.")}}getFastDataResponse(){return this.response}getAccountCode(){return this.accountCode}getRequestNumber(){return Math.random()}reset(){this.coreStorage.removeStoredData(),this.coreStorage.removeSession(),this.browserStorage.removeLocal("sessionExpire"),this.browserStorage.removeLocal("viewExpire"),this.browserStorage.removeStorages("accCode"),this.browserStorage.removeStorages("session")}performRequestToFastData(t,e,i,s){if(this.options.offline)return;e.timemark=(new Date).getTime(),e.outputFormat="json";const r=`https://${this._fastDataHost}${t}${n.default.toQueryString(e)}`,o=a.request({url:r,method:"GET",timeoutMs:15e3});this.activeXHRs.add(o.xhr),o.promise.then(t=>{this.activeXHRs.delete(o.xhr),this.options.offline||(o.xhr.status>=200&&o.xhr.status<400?i(o.xhr):s(o.xhr))}).catch(t=>{this.activeXHRs.delete(o.xhr),s(o.xhr)})}_createConfigurationInterval(){this.isUsingLegacy||!this.options.isRefreshLMAConfigurationEnabled()||this._refreshInterval||(this._refreshInterval=setInterval(this.loadConfiguration.bind(this),1e3*this.options.refreshLMAConfigurationSeconds()))}_recreateConfigurationInterval(){this._refreshInterval&&(clearInterval(this._refreshInterval),this._refreshInterval=void 0),this._createConfigurationInterval()}_receiveData(t){this.retries=0,this.setData(t.response)}_receiveConfiguration(t){this.setConfiguration(t.response)}_failedData(t){o.default.error(r.A4,`Fastdata request has failed (attempt ${this.retries+1}/${this.MAX_RETRIES}).`),this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=void 0),++this.retries>=this.MAX_RETRIES?o.default.error(r.A4,`Fastdata request failed after ${this.MAX_RETRIES} attempts. Giving up.`):this.retries<5?this._retryTimeout=setTimeout(this._retryDataRequest.bind(this),5e3):this._retryTimeout=setTimeout(this._retryDataRequest.bind(this),6e4)}_retryDataRequest(){const t=s.A.Service.DATA,e={system:this.accountCode,pluginVersion:P.getPluginVersion(),requestNumber:this.getRequestNumber()};try{o.default.notice(r.A4,`Retrying ${t} request (attempt ${this.retries+1})`),this.performRequestToFastData(t,e,this._receiveData.bind(this),this._failedData.bind(this))}catch(t){o.default.error(r.A4,t)}}_failedConfiguration(t){o.default.error(r.A4,"Configuration request has failed.")}destroy(){this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=void 0);const t=Array.from(this.activeXHRs);this.activeXHRs.clear();for(const e of t)e.onload=null,e.onerror=null,e.abort();this._refreshInterval&&(clearInterval(this._refreshInterval),this._refreshInterval=void 0)}}var h=i(2602);class l{constructor(){this.offline=!1,this.host="lma.npaw.com",this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this.authToken=void 0,this.authType="Bearer",this["app.https"]=!0,this["lma.refresh.configuration.enabled"]=!1,this["lma.refresh.configuration.seconds"]=300,this["parse.fdsResponseHost"]=null}updateOptions(t){const e=new h.A;
2Object.keys(this).forEach(i=>{null==t[i]||Object.keys(e).includes(i)||(this[i]=t[i])})}setNpawPluginOptions(t){Object.keys(this).forEach(e=>{null!=t[e]&&(this[e]=t[e])})}isRefreshLMAConfigurationEnabled(){return this["lma.refresh.configuration.enabled"]}refreshLMAConfigurationSeconds(){return this["lma.refresh.configuration.seconds"]}getHost(){return this.host}getFastDataHost(){return this.host}}let u,p,f,g;function m(t){let e=t;try{e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}catch(t){}return e.replace(/[^\x20-\x7E]/g,"")}function v(t){if(t)try{const e=t();return"string"==typeof e?e:void 0}catch(t){return}}function y(t){const e=globalThis;try{if(e&&"function"==typeof e.__turboModuleProxy){const i=e.__turboModuleProxy(t);if(i)return i}}catch(t){}try{if(e&&e.nativeModuleProxy&&e.nativeModuleProxy[t])return e.nativeModuleProxy[t]}catch(t){}}function S(t){try{const e=globalThis;if(e&&"function"==typeof e.require)return e.require(t)}catch(t){}try{const e=i.g;if(e&&"function"==typeof e.require)return e.require(t)}catch(t){}}class _{constructor(t,e,i,s,n,o,a,c){this.method=r.Method.GET,this.headers={},this.xhr=new XMLHttpRequest,this.retries=0,this.hadBody=!1,this.isHttps=t,this.host=e,this.service=i,this.method=s,this.params=n,this.expirationManager=c,this.onSuccessCallback=o,this.onFailCallback=a}performHttps(){return this.isHttps}getHost(){return this.host}getService(){return this.service}getMethod(){return this.method}getParams(){return this.params}getBody(){return this.body}setBody(t){this.body=t}addHeader(t,e){this.headers[t]=e}getExpirationManager(){return this.expirationManager}getRetries(){return this.retries}send(t,e){var s;if(this.params.timemark=null!==(s=this.params.timemark)&&void 0!==s?s:Date.now(),this.params.sessionRoot=P.getInstance().getFastDataSessionToken(),this.params.system=P.getInstance().getFastDataService().getAccountCode(),this.body&&(this.hadBody=!0),this.method===r.Method.POST&&!this.body){const t={};t.timemark=this.params.timemark,this.params.code&&(t.code=this.params.code),t.sessionRoot=this.params.sessionRoot,t.system=this.params.system,t.sessionId=this.params.sessionId&&""!=this.params.sessionId?this.params.sessionId:P.getInstance().getFastDataSessionToken(),this.body=JSON.stringify(this.params),this.params=t}!function(t){if(!("undefined"!=typeof navigator&&"ReactNative"===navigator.product||void 0!==i.g&&i.g.__fbBatchedBridge))return;const e=Object.keys(t).find(t=>"string"==typeof t&&"user-agent"===t.toLowerCase())||"User-Agent",s=function(){if(void 0!==u)return u||void 0;const t=function(){if(void 0!==p)return p;const t=y("RNDeviceInfo")||S("react-native-device-info"),e=t&&t.default?t.default:t;return p=e,e}(),e=function(){if(void 0!==g)return g;const t=y("PlatformConstants"),e=function(){if(void 0!==f)return f;const t=S("react-native"),e=t&&t.default?t.default:t;return f=e,e}(),i=t||(e&&e.Platform&&e.Platform.constants?e.Platform.constants:void 0);return g=i,i}(),i=function(t,e){const i=v(t&&"function"==typeof t.getUserAgentSync?t.getUserAgentSync.bind(t):void 0)||("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:void 0);if(!i)return;if(/Android/i.test(i))return m(i);if(!function(t){return Boolean(t&&(t.Release||t.Brand||t.Manufacturer||t.Model))}(e))return m(i);const s=v(e&&"string"==typeof e.Release?()=>e.Release:void 0),n=v(e&&"string"==typeof e.Model?()=>e.Model:t&&"string"==typeof t.model?()=>t.model:t&&"function"==typeof t.getModel?t.getModel.bind(t):void 0),r=v(t&&"function"==typeof t.getBuildIdSync?t.getBuildIdSync.bind(t):void 0);return m(s&&n&&r?`${i} (Linux; U; Android ${s}; ${n} Build/${r})`:i)}(t,e);if(i)return u=i,i;const s=v(t&&"string"==typeof t.appName?()=>t.appName:t&&"function"==typeof t.getApplicationName?t.getApplicationName.bind(t):void 0),n=v(t&&"string"==typeof t.appVersion?()=>t.appVersion:t&&"function"==typeof t.getVersion?t.getVersion.bind(t):void 0)||v(t&&"function"==typeof t.getReadableVersion?t.getReadableVersion.bind(t):void 0),r=v(t&&"string"==typeof t.model?()=>t.model:t&&"function"==typeof t.getModel?t.getModel.bind(t):e&&"string"==typeof e.Model?()=>e.Model:e&&"string"==typeof e.model?()=>e.model:void 0),o=v(t&&"string"==typeof t.deviceId?()=>t.deviceId:t&&"function"==typeof t.getDeviceId?t.getDeviceId.bind(t):void 0),a=v(t&&"string"==typeof t.systemVersion?()=>t.systemVersion:t&&"function"==typeof t.getSystemVersion?t.getSystemVersion.bind(t):e&&"string"==typeof e.osVersion?()=>e.osVersion:e&&"string"==typeof e.Release?()=>e.Release:void 0)||function(t){if(t&&void 0!==t.Version&&null!==t.Version)try{return String(t.Version)}catch(t){return}}(e),c=m([s,n,r,o,a].filter(t=>"string"==typeof t&&t.trim().length>0).join("/"));return u=c.length?c:null,u||void 0}();s&&(t[e]=s)}(this.headers);try{this.getUrl()}catch(t){}const n=this.getUrl();if("string"==typeof this.host&&this.host.toLowerCase().includes("nqs-stage")){const t=Object.assign({},this.headers),e=Object.keys(t).some(t=>"string"==typeof t&&"content-type"===t.toLowerCase());this.method===r.Method.POST&&this.body&&!e&&(t["Content-Type"]="text/plain");const i=Object.keys(t).find(t=>"string"==typeof t&&"user-agent"===t.toLowerCase());let s=i?t[i]:void 0;!s&&"undefined"!=typeof navigator&&navigator.userAgent&&(s=navigator.userAgent),o.default.notice(r.A4,`NQS request headers for ${this.host}: ${JSON.stringify(t)}`),o.default.notice(r.A4,`NQS User-Agent header for ${this.host}: ${s||"not set"}`)}this.xhr.open(this.method,n),this.xhr.onreadystatechange=()=>{4===this.xhr.readyState&&this.xhr.status>=200&&this.xhr.status<400?(e&&e(),this.expirationManager&&this.expirationManager.onRequestSent(),this.onSuccessCallback&&this.onSuccessCallback()):4===this.xhr.readyState&&(this.retries++,!this.hadBody&&this.method===r.Method.POST&&this.body&&(this.params=JSON.parse(this.body),this.body=void 0),t(),this.onFailCallback&&this.onFailCallback())};for(const t in this.headers)this.xhr.setRequestHeader(t,this.headers[t]);this.method===r.Method.POST&&this.body&&!this.headers["Content-Type"]&&this.xhr.setRequestHeader("Content-Type","text/plain"),this.xhr.send(this.body)}asyncSend(){return t=this,e=void 0,s=function*(){return new Promise((t,e)=>{this.send(e,t)})}
2,new((i=void 0)||(i=Promise))(function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}c((s=s.apply(t,e||[])).next())});var t,e,i,s}abort(){this.xhr&&(this.xhr.onreadystatechange=null,this.xhr.abort())}toLocalStorageString(){const t={},e=this.service.split("/");t.request=e[e.length-1],t.unixtime=this.params.timemark;for(const e in this.params)void 0!==this.params[e]&&(t[e]="sessionId"===e||"sessionRoot"===e?"":"code"===e?"CODE_PLACEHOLDER":this.params[e]);return JSON.stringify(t)}getUrl(){return`${this.isHttps?"https":"http"}://${this.host}${this.service}${n.default.toQueryString(this.params)}`}}class b{constructor(t){this.freshRequests=[],this.retryRequests=[],this.activeRequests=new Set,this.isProcessing=!1,this.destroyed=!1,this.pendingAfterProcessing=!1,this.retryInterval=null,this.retryAttemptCount=0,this.baseRetryDelay=5e3,this.maxRetryAttempts=25,this.fixedRetryAttempts=10,this.retryServices=t.retryServices,this.maxRetryRequests=t.maxRetryRequests,this.onSuccess=t.onSuccess,this.onFail=t.onFail}enqueue(t){this.destroyed||(this.freshRequests.push(t),this.isProcessing?this.pendingAfterProcessing=!0:this.process())}destroy(){this.destroyed=!0,this._clearRetryInterval();const t=Array.from(this.activeRequests);this.activeRequests.clear();for(const e of t)try{e.abort()}catch(t){}this.freshRequests=[],this.retryRequests=[]}process(){return t=this,e=void 0,s=function*(){if(!this.destroyed&&!this.isProcessing){this.isProcessing=!0;try{const t=this.retryRequests.splice(0,this.retryRequests.length),e=this.freshRequests.splice(0,this.freshRequests.length),i=[];let s=!1;for(const e of t){if(this.destroyed)return;if(s)i.push(e);else try{this.activeRequests.add(e),yield e.asyncSend(),this.activeRequests.delete(e);const t=e._appSuccessCallback;t&&t(),this.onSuccess(e)}catch(t){this.activeRequests.delete(e),s=!0,i.push(e),this.onFail(e)}}for(const t of e){if(this.destroyed)return;try{this.activeRequests.add(t),yield t.asyncSend(),this.activeRequests.delete(t);const e=t._appSuccessCallback;e&&e(),this.onSuccess(t)}catch(e){if(this.activeRequests.delete(t),this.onFail(t),this.isRetryable(t))i.push(t);else{const e=t._appFailCallback;e&&e()}}}if(i.length){const t=i.slice(-this.maxRetryRequests);t.sort((t,e)=>{var i,s,n,r;return(null!==(s=null===(i=t.getParams())||void 0===i?void 0:i.timemark)&&void 0!==s?s:0)-(null!==(r=null===(n=e.getParams())||void 0===n?void 0:n.timemark)&&void 0!==r?r:0)}),this.retryRequests.push(...t)}}finally{this.isProcessing=!1,!this.destroyed&&this.pendingAfterProcessing&&(this.pendingAfterProcessing=!1,this.freshRequests.length>0&&this.process())}!this.destroyed&&this.retryRequests.length>0?this._scheduleRetryProcessing():this._clearRetryInterval()}},new((i=void 0)||(i=Promise))(function(n,r){function o(t){try{c(s.next(t))}catch(t){r(t)}}function a(t){try{c(s.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}c((s=s.apply(t,e||[])).next())});var t,e,i,s}isRetryable(t){const e=t.getService();return this.retryServices.includes(e)}_scheduleRetryProcessing(){if(this.retryInterval||0===this.retryRequests.length||this.destroyed)return;if(this.retryAttemptCount>=this.maxRetryAttempts)return void this._flushRetryQueue();const t=this._calculateRetryDelay();this.retryInterval=setTimeout(()=>{this.retryInterval=null,this.destroyed?this._clearRetryInterval():(this.retryAttemptCount++,this.retryAttemptCount>=this.maxRetryAttempts?this._flushRetryQueue():this.process())},t)}_calculateRetryDelay(){if(this.retryAttemptCount<this.fixedRetryAttempts)return this.baseRetryDelay;const t=this.retryAttemptCount-this.fixedRetryAttempts,e=this.baseRetryDelay*Math.pow(2,t);return Math.min(e,12e4)}_clearRetryInterval(){this.retryInterval&&(clearTimeout(this.retryInterval),this.retryInterval=null),this.retryAttemptCount=0}_flushRetryQueue(){0!==this.retryRequests.length&&(this.retryRequests.forEach(t=>{const e=t._appFailCallback;e&&e(),this.onFail(t)}),this.retryRequests=[],this.retryInterval&&(clearTimeout(this.retryInterval),this.retryInterval=null),this.retryAttemptCount=0)}}const T=[s.A.Service.START,s.A.Service.INIT,s.A.Service.JOIN,s.A.Service.STOP,s.A.Service.ERROR,s.A.Service.AD_ERROR,s.A.Service.SESSION_START,s.A.Service.SESSION_STOP,s.A.Service.EVENT,s.A.Service.NAV];class w{constructor(t,e,i){this.databaseSendingInterval=12e4,this.isDestroyed=!1,this.servicesToWait=[s.A.Service.INIT,s.A.Service.START],this.sentStart=!1,this.options=t,this.coreStorage=e,this.fastDataService=i,this.requestQueue=new b({retryServices:T,maxRetryRequests:25,onSuccess:t=>{this.isDestroyed||(this.servicesToWait.includes(t.getService())&&(this.sentStart=!0),this.timeOfLastSentRequest=(new Date).getTime(),this.coreStorage.setDataTime(this.timeOfLastSentRequest.toString()))},onFail:t=>{}})}destroy(){this.isDestroyed=!0,this.requestQueue.destroy(),this.timeWhenLastSentFromDatabase=(new Date).getTime()}send(t,e,i,n,a,c){var d;if(this.isDestroyed)return;const h=T.includes(t),l=new _(null===(d=this.options["app.https"])||void 0===d||d,this.coreStorage.getHost(),t,e,null!=i?i:{},h?void 0:n,h?void 0:a,c);h&&(n||a)&&(l._appSuccessCallback=n,l._appFailCallback=a);const u=t===s.A.Service.CDN;void 0===this.options.authToken||void 0===this.options.authType||u||(o.default.verbose(r.AnalyticsTag,"Adding Authorization header with type "+this.options.authType),l.addHeader("Authorization",this.options.authType+" "+this.options.authToken)),this.requestQueue.enqueue(l)}getTimeOfLastSentRequest(){return this.timeOfLastSentRequest}wasStartSent(){return this.sentStart}}class E{constructor(t,e,i){this.prefix="npaw",this.disableCookies=t,this.forceCookies=e,this.disabled=i}updateStorageOptions(t,e,i){this.disableCookies=t,this.forceCookies=e,this.disabled=i}isEnabled(){if(this.disabled)return!1;let t=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch(e){t=!1}return t}setLocal(t,e){if(!this.disabled)try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&localStorage.setItem(this.prefix+"."+t,e):this._setCookie(this.prefix+".local."+t,e)}catch(t){o.default.debug(r.A4,"App Analytics needs localStorage or cookies, not supported by your browser.")}}getLocal(t){if(!this.disabled)return this._localGetRemove("getItem","_getCookie",t)}removeLocal(t){if(!this.disabled)return this._localGetRemove("removeItem","_removeCookie",t)}_localGetRemove(t,e,i){try{if(this.forceCookies||!("undefined"!=typeof localStorage&&localStorage||this.disableCookies))return this[e](this.prefix+".local."+i);if("undefined"!=typeof localStorage&&localStorage)return localStorage[t](this.prefix+"."+i)}catch(t){o.default.debug(r.A4,"App Analytics needs localStorage or cookies, not supported by your browser.")}}setSession(t,e){if(!this.disabled)try{!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?"undefined"!=typeof sessionStorage&&sessionStorage&&sessionStorage.setItem(this.prefix+"."+t,e):this._setCookie(this.prefix+".session."+t,e)}catch(t){o.default.debug(r.A4,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}getSession(t){if(!this.disabled)return this._sessionGetRemove("getItem","_getCookie",t)}removeSession(t){if(!this.disabled)return this._sessionGetRemove("removeItem","_removeCookie",t)}_sessionGetRemove(t,e,i){try{if(this.forceCookies||!("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies))return this[e](this.prefix+".session."+i);if("undefined"!=typeof sessionStorage&&sessionStorage)return sessionStorage[t](this.prefix+"."+i)}catch(t){o.default.debug(r.A4,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}
2getStorages(t){if(!this.disabled)return this.getSession(t)||this.getLocal(t)}setStorages(t,e){this.disabled||(this.setSession(t,e),this.setLocal(t,e))}removeStorages(t){this.disabled||(this.removeSession(t),this.removeLocal(t))}_setCookie(t,e){if("undefined"!=typeof document){let i=";";"undefined"!=typeof location&&(i+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=t+"="+e+i}}_getCookie(t){if("undefined"!=typeof document){let e=t+"=",i=decodeURIComponent(document.cookie).split(";");for(let t=0;t<i.length;t++){let s=i[t];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}}return null}_removeCookie(t){this._setCookie(t,"")}}class A{constructor(t,e){this.options=t,this.browserStorage=e}isEnabled(){return this.browserStorage.isEnabled()}setLocal(t,e){this.browserStorage.setLocal(t,e)}getLocal(t){return this.browserStorage.getLocal(t)}removeLocal(t){this.browserStorage.removeLocal(t)}getHost(){let t=this.options.getHost();const e=P.getInstance().getFastDataService();return!P.getInstance().isUsingLegacy()&&e&&e.getFastDataResponse()&&e.getFastDataResponse().host?t=e.getFastDataResponse().host:P.getInstance().isUsingLegacy()&&P.getInstance().getLegacyFastDataHost()&&(t=P.getInstance().getLegacyFastDataHost()),t}getSession(){let t=this.browserStorage.getStorages("session");if("undefined"===t&&(t=void 0),!t){const e=this.getStoredData();if(e)try{t=JSON.parse(e).q.c}catch(t){}}return t}getStorageHost(){let t=null;const e=this.getStoredData();if(e)try{t=JSON.parse(e).q.h}catch(t){}return t}getLocalAccountCode(){return this.browserStorage.getLocal("accCode")}getSessionAccountCode(){return this.browserStorage.getSession("accCode")}getAppAnalyticsRegisteredProperties(){return this.browserStorage.getLocal("appAnalyticsRegisteredProperties")}setAppAnalyticsRegisteredProperties(t){this.browserStorage.setLocal("appAnalyticsRegisteredProperties",t)}removeAppAnalyticsRegisteredProperties(){this.browserStorage.removeLocal("appAnalyticsRegisteredProperties")}getDataTime(){return this.browserStorage.getStorages("dataTime")}setDataTime(t){this.browserStorage.setStorages("dataTime",t)}getLastActive(){let t;return t=void 0===this.browserStorage.getLocal("lastactive")?0:Number(this.browserStorage.getLocal("lastactive")),t}setLastActive(t){this.browserStorage.setLocal("lastactive",t)}removeLastActive(){this.browserStorage.removeLocal("lastactive")}setSession(t){this.browserStorage.setStorages("session",t)}removeSession(){this.browserStorage.removeStorages("session")}getSessionExpire(){return 1e3*Number(this.browserStorage.getLocal("sessionExpire"))}getStoredData(){return this.browserStorage.getStorages("data")}setStoredData(t){this.browserStorage.setStorages("data",t)}removeStoredData(){this.browserStorage.removeStorages("data")}getStorages(t){return e=this,i=void 0,n=function*(){return this.browserStorage.getStorages(t)},new((s=void 0)||(s=Promise))(function(t,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(o,a)}c((n=n.apply(e,i||[])).next())});var e,i,s,n}}var I=i(61),R=i(9907);class P{static getInstance(t,e,i){return this._instance&&!i||(this._instance=new P(t||"",e)),this._instance}constructor(t,e){var i,s;if(this.options=new l,this.sendingOffline=!1,this.isDestroyed=!1,this.usingLegacy=!1,this.commonVariables=new Map,this.registeredPeriodicPushes=new Map,this.coreEventListeners=[],this.pluginOptions=e,this.pluginOptions){this.pluginOptions.host&&this.options.setNpawPluginOptions({host:this.pluginOptions.host});const t="true"===R.env.IS_STANDALONE;this.usingLegacy=t&&void 0!==(null===(s=null===(i=this.pluginOptions)||void 0===i?void 0:i.legacyPlugin)||void 0===s?void 0:s.viewTransform)}this.browserStorage=new E(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.coreStorage=new A(this.options,this.browserStorage),this.fastDataService=new d(this.options,t,this.coreStorage,this.browserStorage,this.pluginOptions),this.fastDataService.init(),this.nqsService=new w(this.options,this.coreStorage,this.fastDataService),this.deleteOldOfflineEntries()}
2destroy(){this.unregisterAllPeriodicPushes(),this.commonVariables.clear(),this.fastDataService.destroy(),this.nqsService.destroy(),this.isDestroyed=!0}static getPluginVersion(){const t=R.env.NWF||"";return`7.3.31${"true"===R.env.IS_STANDALONE?"-balancer":""}${t}-js-sdk`}isUsingLegacy(){return this.usingLegacy}wasStartSent(){var t,e,i,s,n,r;return this.isUsingLegacy()?(null===(e=null===(t=this.pluginOptions)||void 0===t?void 0:t.legacyPlugin)||void 0===e?void 0:e._comm)&&(null===(s=null===(i=this.pluginOptions)||void 0===i?void 0:i.legacyPlugin)||void 0===s?void 0:s._comm.transforms)?!(null===(r=null===(n=this.pluginOptions)||void 0===n?void 0:n.legacyPlugin)||void 0===r?void 0:r._comm.transforms[0]._isBusy):void 0:this.nqsService.wasStartSent()}setLegacyPlugin(t){var e,i;if(this.pluginOptions){this.pluginOptions.legacyPlugin=t;const s="true"===R.env.IS_STANDALONE;this.usingLegacy=s&&void 0!==(null===(i=null===(e=this.pluginOptions)||void 0===e?void 0:e.legacyPlugin)||void 0===i?void 0:i.viewTransform)}}setActiveSwitchingOnLegacy(t){t&&this.pluginOptions&&this.pluginOptions.legacyPlugin&&this.pluginOptions.legacyPlugin.options&&(this.pluginOptions.legacyPlugin.options["content.cdn"]="ACTVSWIT")}getViewCode(){var t,e,i,s;return null===(s=null===(i=null===(e=null===(t=this.pluginOptions)||void 0===t?void 0:t.legacyPlugin)||void 0===e?void 0:e.viewTransform)||void 0===i?void 0:i.getViewCode)||void 0===s?void 0:s.call(i)}getLegacyFastDataHost(){var t,e,i,s;const n=null===(s=null===(i=null===(e=null===(t=this.pluginOptions)||void 0===t?void 0:t.legacyPlugin)||void 0===e?void 0:e.viewTransform)||void 0===i?void 0:i.response)||void 0===s?void 0:s.host;return"string"!=typeof n?n:n.replace(/^https?:\/\//i,"")}setOptions(t){this.options.updateOptions(t),this.browserStorage.updateStorageOptions(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.fastDataService.updateOptions(t)}getOptions(){return this.options}getCoreStorage(){return this.coreStorage}registerCommonVariable(t,e,i){var s,n;this.commonVariables.has(t)?null===(s=this.commonVariables.get(t))||void 0===s||s.set(e,i):(this.commonVariables.set(t,new Map),null===(n=this.commonVariables.get(t))||void 0===n||n.set(e,i))}unregisterCommonVariable(t,e){var i;null===(i=this.commonVariables.get(t))||void 0===i||i.delete(e)}getCommonVariable(t,e){var i;return null===(i=this.commonVariables.get(t))||void 0===i?void 0:i.get(e)}getFastDataService(){return this.fastDataService}getFastDataSessionToken(){return this.fastDataService.getSession()}getFastDataSessionHost(){return this.coreStorage.getHost()}refreshSessionToken(){return this.usingLegacy?void 0:this.fastDataService.refreshSessionToken()}isSessionRecoveryEnabled(){var t;return"never"!==(null===(t=this.pluginOptions)||void 0===t?void 0:t.sessionRecovery)}isSessionTokenExpired(){var t;const e=(new Date).getTime();return!this.usingLegacy&&e-(null!==(t=this.nqsService.getTimeOfLastSentRequest())&&void 0!==t?t:e)>1e3*this.fastDataService.getSessionExpireTime()}pushData(t,e,i,s,n,r){this.handleDataToSend(t,e,i,s,n,r)}pushPeriodicDataFromCallback(t,e,i,s,n,r,o,a,c){const d=setInterval(()=>{const e=r();e&&this.handleDataToSend(t,i,n,e,o,a,c)},s<1e3?1e3:s);this.registeredPeriodicPushes.has(e)?(clearInterval(this.registeredPeriodicPushes.get(e)),this.registeredPeriodicPushes.set(e,d)):this.registeredPeriodicPushes.set(e,d)}unregisterPeriodicPush(t){clearInterval(this.registeredPeriodicPushes.get(t)),this.registeredPeriodicPushes.delete(t)}unregisterAllPeriodicPushes(){if(0===this.registeredPeriodicPushes.size)return;o.default.debug(r.A4,`Unregistering ${this.registeredPeriodicPushes.size} periodic pushes`);const t=Array.from(this.registeredPeriodicPushes.keys());for(const e of t)clearInterval(this.registeredPeriodicPushes.get(e)),this.registeredPeriodicPushes.delete(e);o.default.debug(r.A4,"Finished unregistering all pushes")}deleteOldOfflineEntries(){var t,e,i,s,n,a;const c=null!==(e=null===(t=this.coreStorage.getLocal("offlineViews"))||void 0===t?void 0:t.split(","))&&void 0!==e?e:[];for(const t of c){const e=null!==(s=null===(i=this.coreStorage.getLocal("offlineViews."+t))||void 0===i?void 0:i.split(","))&&void 0!==s?s:[],c=2592e6;if(e.length>0)try{const i=null!==(n=JSON.parse("["+e+"]")[0])&&void 0!==n?n:{},s=null!==(a=i.unixtime)&&void 0!==a?a:i.timemark;"number"!=typeof s?(o.default.debug(r.A4,`Deleting offline view ${t}
2 with invalid timestamp`),this.deleteViewDataFromLocalStorage(t)):Date.now()-s>c&&(o.default.debug(r.A4,`Deleting offline view ${t} (age: ${Math.floor((Date.now()-s)/864e5)} days)`),this.deleteViewDataFromLocalStorage(t))}catch(e){o.default.warn(r.A4,"Error parsing old offline entries, deleting view data from local storage:",e),this.deleteViewDataFromLocalStorage(t)}}}sendOfflineEvents(){var t,e,i,n,a,c;return i=this,n=void 0,c=function*(){if(this.options.offline)o.default.notice(r.AnalyticsTag,"Unable to send offline events because offline option is enabled");else if(!this.sendingOffline){this.sendingOffline=!0;try{let i=15,n=!1;for(;!n&&i-- >0;){const t=this.getFastDataSessionToken();""===t||"OFFLINE"===t?yield new Promise(t=>setTimeout(t,100)):n=!0}if(!n)return void o.default.warn(r.A4,"Cannot send offline events: no valid session token after waiting");const a=this.getFastDataSessionToken();if(!a||""===a||"OFFLINE"===a)return void o.default.warn(r.A4,"Session token became invalid during wait");const c=(null!==(e=null===(t=this.coreStorage.getLocal("offlineViews"))||void 0===t?void 0:t.split(","))&&void 0!==e?e:[]).map(t=>new Promise(e=>{var i;let n=null!==(i=this.coreStorage.getLocal("offlineViews."+t))&&void 0!==i?i:"";if(n=n.replace(/CODE_PLACEHOLDER/g,a+"_"+t.split("_")[1]),n.length>0){const i=new _(!0,this.coreStorage.getHost(),s.A.Service.OFFLINE_EVENTS,r.Method.POST,{code:a+"_"+t.split("_")[1]},()=>{this.deleteViewDataFromLocalStorage(t),e()},()=>e());i.setBody("["+n+"]"),i.send(function(){})}else e()}));yield Promise.all(c)}finally{this.sendingOffline=!1}}},new((a=void 0)||(a=Promise))(function(t,e){function s(t){try{o(c.next(t))}catch(t){e(t)}}function r(t){try{o(c.throw(t))}catch(t){e(t)}}function o(e){var i;e.done?t(e.value):(i=e.value,i instanceof a?i:new a(function(t){t(i)})).then(s,r)}o((c=c.apply(i,n||[])).next())})}deleteViewDataFromLocalStorage(t){var e,i;this.coreStorage.removeLocal("offlineViews."+t);const s=null!==(i=null===(e=this.coreStorage.getLocal("offlineViews"))||void 0===e?void 0:e.split(","))&&void 0!==i?i:[],n=s.indexOf(t);-1!=n&&s.splice(n,1),this.coreStorage.setLocal("offlineViews",s.toString())}handleDataToSend(t,e,i,s,n,r,o){if(!this.isDestroyed)switch(t){case I.default.Consumer.NQS:this.nqsService.send(e,i,s,n,r,o);break;case I.default.Consumer.PERSISTENT:this.persistOffline(e,i,s,n,r);break;case I.default.Consumer.BLACK_HOLE:void 0!==n&&n()}}persistOffline(t,e,i,n,r){if(void 0!==n&&n(),t===s.A.Service.VIDEO_PLUGIN_LOGS)return;if(t===s.A.Service.INIT)return;i.timemark=Date.now();const o=new _(this.options["app.https"],"",t,e,i,n,r),a=this.coreStorage.getLocal("offlineViews");if(a){const t=a.split(",");t.includes(i.code)||(t.push(i.code),this.coreStorage.setLocal("offlineViews",t.toString()))}else this.coreStorage.setLocal("offlineViews",i.code);const c=this.coreStorage.getLocal("offlineViews."+i.code);if(c){const t=c.split(",");t.push(o.toLocalStorageString()),this.coreStorage.setLocal("offlineViews."+i.code,t.toString())}else this.coreStorage.setLocal("offlineViews."+i.code,o.toLocalStorageString())}subscribeListener(t){this.coreEventListeners.push(t)}unsubscribeListener(t){const e=this.coreEventListeners.indexOf(t);-1!==e&&this.coreEventListeners.splice(e,1)}throwEvent(t){if(!this.isDestroyed)for(const e of this.coreEventListeners)try{e(t)}catch(t){o.default.error(r.A4,"Error executing core event listener:",t)}}}},2602(t,e,i){"use strict";i.d(e,{A:()=>s});class s{constructor(){this.host="lma.npaw.com",this.components={},this.balancerAnalyticsEnabled=!1,this.sessionRecovery="auto",this.host="lma.npaw.com",this.components={},this.balancerAnalyticsEnabled=!1,this.sessionRecovery="auto"}}},108(t,e,i){"use strict";var s;i.d(e,{A:()=>r});class n{}s=n,n.VideoService={INIT:"/init",START:"/start",JOIN:"/joinTime",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",DATA_OBJECT:"/data"},n.Service=Object.assign(Object.assign({DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs"},s.VideoService),{CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"});const r=n},61(t,e,i){"use strict";i.d(e,{default:()=>s});class s{}s.Products={VIDEO_ANALYTICS:"videoAnalytics",BALANCER:"balancer",DEVICE_ANALYTICS:"deviceAnalytics"},s.AnalyticsVariables={VIEW_CODE:"viewCode",METHOD_OPTION:"methodOption"},s.BalancerVariables={AS_ENABLED:"activeSwitchingEnabled",PROFILE_NAME:"profileName",BUCKET:"bucket",DECISION_FINISHED:"decisionFinished",LAST_USED_CDN:"lastUsedCdn",BALANCER_TRAFFIC:"balancerTraffic",BALANCER_BITRATE:"balancerBitrate"},s.Consumer={NQS:"NQS",PERSISTENT:"PERSISTENT",BLACK_HOLE:"BLACK_HOLE"},s.DeviceVariables={APP_ANALYTICS_DEVICE_STRING:"deviceString"}},1577(t,e,i){"use strict";i.d(e,{default:()=>r});var s=i(7276),n=i(2784);class r{static toQueryString(t){return"?"+Object.keys(t).map(e=>{if(null!==t[e]&&"object"==typeof t[e]){const i=JSON.stringify(t[e]);if("{}"!==i)return encodeURIComponent(e)+"="+encodeURIComponent(i)}else if(null!==t[e]&&void 0!==t[e]&&""!==t[e])return encodeURIComponent(e)+"="+encodeURIComponent(t[e]);return""}).filter(t=>""!=t).join("&")}static addProtocol(t,e){let i="http://localhost/";try{i="http://"+t,e||"undefined"!=typeof window&&0===window.location.protocol.indexOf("https")?i="https://"+t:"undefined"!=typeof window&&0===window.location.protocol.indexOf("http")&&(i="//"+t)}
2catch(t){s.default.warn(n.A4,t)}return i}static parseBoolean(t){return"string"==typeof t?"true"===t.toLowerCase():!!t}static methodFromString(t){var e;const i=null!==(e=null==t?void 0:t.toUpperCase())&&void 0!==e?e:"";return i in n.Method?n.Method[i]:n.Method.GET}static generateRandomString(t){let e="";for(let i=0;i<t;i++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}}},9731(t){var e,i,s,n,r;e=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(t,e,s){if(s=s||{},t=t.trim(),!(e=e.trim())){if(!s.alwaysNormalize)return t;var n=r.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=r.normalizePath(n.path),r.buildURLFromParts(n)}var o=r.parseURL(e);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return s.alwaysNormalize?(o.path=r.normalizePath(o.path),r.buildURLFromParts(o)):e;var a=r.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var d={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(d.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var h=a.path,l=h.substring(0,h.lastIndexOf("/")+1)+o.path;d.path=r.normalizePath(l)}else d.path=a.path,o.params||(d.params=a.params,o.query||(d.query=a.query));return null===d.path&&(d.path=s.alwaysNormalize?r.normalizePath(o.path):o.path),r.buildURLFromParts(d)},parseURL:function(t){var i=e.exec(t);return i?{scheme:i[1]||"",netLoc:i[2]||"",path:i[3]||"",params:i[4]||"",query:i[5]||"",fragment:i[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(s,"");t.length!==(t=t.replace(n,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=r},9393(t,e,i){var s=i(7086),n=i(7680),r={getPosition:function(){return null},getGivenBreaks:function(){return null},getExpectedBreaks:function(){return null},getExpectedPattern:function(){return null},getBreaksTime:function(){return null},getGivenAds:function(){return null},getExpectedAds:function(){return null},getIsVisible:function(){return!0},getAudioEnabled:function(){return null},getIsSkippable:function(){return null},getIsFullscreen:function(){return null},getCampaign:function(){return null},getCreativeId:function(){return null},getProvider:function(){return null},getAdInsertionType:function(){return null},fireClick:function(t){"string"==typeof t&&(t={url:t}),this.emit(s.Event.CLICK,{params:t})},fireQuartile:function(t){this.flags.isStarted&&"number"==typeof t&&t>this.flags.lastQuartileSent&&t<4&&(this.flags.lastQuartileSent++,this.emit(s.Event.QUARTILE,{params:{quartile:t}}))},startChronoView:function(){if(this.getIsVisible()&&this.plugin.backgroundDetector&&!this.plugin.backgroundDetector.isInBackground){var t=this.chronos.viewedMax;0!==t.length&&0===t[t.length-1].stopTime||(t.push(new n),t[t.length-1].start())}},stopChronoView:function(){var t=this.chronos.viewedMax;t[0]&&t.length>0&&0===t[t.length-1].stopTime&&t[t.length-1].stop()},fireManifest:function(t,e){var i={params:t};"string"==typeof t&&(i={params:{errorType:t,errorMessage:e}}),this.emit(s.Event.MANIFEST,i)},fireSkip:function(t){void 0===t&&(t={}),t.skipped=!0,this.fireStop(t)},fireBreakStart:function(t){this.fireAdBreakStart(t)},fireBreakStop:function(t){this.fireAdBreakStop(t)},fireAdBreakStart:function(t){this.emit(s.Event.PODSTART,{params:t})},fireAdBreakStop:function(t){this.emit(s.Event.PODSTOP,{params:t})}};t.exports=r},594(t,e,i){var s=i(7086);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o={getPlayrate:function(){return this.flags.isPaused?0:1},getFramesPerSecond:function(){},getDroppedFrames:function(){},getThroughput:function(){},getRendition:function(){},getTitle2:function(){},getIsLive:function(){},getCdnTraffic:function(){},getP2PTraffic:function(){},getUploadTraffic:function(){},getIsP2PEnabled:function(){},getSegmentDuration:function(){},getHouseholdId:function(){},getLatency:function(){},getPacketLoss:function(){},getPacketSent:function(){},getMetrics:function(){},getAudioCodec:function(){},getVideoCodec:function(){},setUrlToParse:function(t){this._urlToParse=t},getURLToParse:function(){return this._urlToParse||void 0}
2,fireSeekBegin:function(t,e,i){if(this._discardFalseBuffers(),!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&!this.flags.isSeeking){if(this.flags.isBuffering){if(!1===e)return;n.notice(r,"Converting current buffer to seek"),this.chronos.seek=this.chronos.buffer.clone(),this.chronos.buffer.reset(),this.flags.isBuffering=!1}else this.chronos.seek.start();try{this.fireEventsStruct.seek=[],i?this.fireEventsStruct.seek.push(i):this.fireEventsStruct.seek.push("undefinedEvent")}catch(t){n.debug(r,"Error tracking seek begin triggered event:",t)}this.flags.isSeeking=!0,this.emit(s.Event.SEEK_BEGIN,{params:t})}},fireSeekEnd:function(t,e){if(!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&this.flags.isSeeking){try{e?this.fireEventsStruct.seek.push(e):this.fireEventsStruct.seek.push("undefinedEvent")}catch(t){n.debug(r,"Error tracking seek end triggered event:",t)}(t=t||{}).triggeredEvents=this.fireEventsStruct.seek,this.cancelSeek(),this.emit(s.Event.SEEK_END,{params:t});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch(t){n.debug(r,"Error resuming pause chronos after seek:",t)}}},cancelSeek:function(t){this.flags.isJoined&&this.flags.isSeeking&&(this.flags.isSeeking=!1,this.chronos.seek.stop(),this.monitor&&this.monitor.skipNextTick())},fireEvent:function(t,e,i,n,r){if("data"===t)this.emit(s.Event.DATA_OBJECT,{params:n});else{var o=n||{};o.name=t||"",o.dimensions=e||{},o.values=i||{},r&&(o.hasEndDatetime=r||!1),this.emit(s.Event.VIDEO_EVENT,{params:o})}},fireEventEnd:function(t){var e={};e.name=t||"",this.emit(s.Event.VIDEO_EVENT_END,{params:e})},storeNewRendition:function(t){this.getVideo().triggerUpdateRendition(t)}};t.exports=o},7160(t,e,i){var s=i(1593);const{default:n}=i(7276);var r=i(2507),o=i(5200),a=i(7255),c=i(3381),d=i(8490),h=i(7086);const{AnalyticsTag:l}=i(2784);var u=s.extend({_initBase:function(t,e,s,r){this._key=t,this._setAdapter=!1,this._npawVideo=e,this._loadedAdapterImplementation=!1,this.flags=new a,this.chronos=new o,this._adapterClasses={},this.fireEventsStruct={},this.fireEventsStruct.buffer=[],this.fireEventsStruct.seek=[],this.monitor=null,this.plugin=s,this.player&&this.unregisterListeners(),this.player=null,this._isAdsAdapter=null,this.log=n,this.log.loadLevelFromUrl(),this.npaw=i(6014),this.setPlayer(r)},_updatePlayer:function(t){this.player&&this.unregisterListeners(),this.player=null,this.setPlayer(t),this.tag=this.player,this.registerListeners()},isSetAdapter:function(){return this._setAdapter},getVideo:function(){return this._npawVideo},getPlugin:function(){return this.plugin},getNpawUtils:function(){return this.plugin.utils},getNpawReference:function(){return this.npaw},getLog:function(){return this.log},isStarted:function(){return!!this.flags&&this.flags.isStarted},getAdapterClass:function(t){var e=this._adapterClasses;return e[t]?e[t]:null},getAdapterClasses:function(){return this._adapterClasses},getAdapterKey:function(){return this._key},setPlayer:function(t){"string"==typeof t&&"undefined"!=typeof document?this.player=document.getElementById(t):this.player=t},registerListeners:function(){},unregisterListeners:function(){},dispose:function(){try{this.stopMonitor(),this.stopReadyStateMonitor(),this.unregisterListeners(),this.player=null,this.tag=null}catch(t){n.error(l,"Can't process dispose for video "+this._key)}},monitorPlayhead:function(t,e,i){this.stopMonitor();var s=0;t&&(s|=c.Type.BUFFER),e&&(s|=c.Type.SEEK),this.monitor&&this.monitor._timer.isRunning?this.monitor.skipNextTick():this.monitor=new c(this,s,i)},stopMonitor:function(){this.monitor&&this.monitor.stop()},monitorReadyState:function(t){this.stopReadyStateMonitor(),this.stateMonitor=new d(this,t)},startReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.start()},stopReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.stop()},checkReadyState:function(t,e){try{this.plugin&&this.plugin.getReadyStateMonitorEnabled()&&t&&(t>3&&!this.flags.isSeeking?this.flags.isBuffering?this.fireBufferEnd({},e+"-readyState"):this.flags.isJoined||this.fireJoin({},e+"-readyState"):t<4&&!this.flags.isBuffering&&!this.flags.isPaused&&this.fireBufferBegin({},!1,e+"-readyState",!0))}catch(t){n.error(l,"Can't check readyState property correctly")}},getPlayhead:function(){return null},getDuration:function(){return null},getBitrate:function(){return null},getTotalBytes:function(){return null},getTitle:function(){return null},getResource:function(){return null},getPlayerVersion:function(){return null},getPlayerName:function(){return null},getVersion:function(){return i(9835)+"-generic-js"},getVideoObject:function(){return null},checkExistsPlayer:function(){return!0},checkExistsObjectOnPage:function(t){return r.elementIsInPage(t)},fireInit:function(t,e){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return n.warn(l,"Cannot fire init event because player not exists on the document"),null;this.adapterHash&&((t=t||{}).pluginHash=this.adapterHash),this._npawVideo&&this._npawVideo.fireInit(t,e)},fireStart:function(t,e){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return n.warn(l,"Cannot fire start event because player not exists on the document"),null;if(this.plugin&&this.plugin.backgroundDetector&&this.plugin.backgroundDetector.canBlockStartCalls())return null;if(!this.flags.isStarted){this.flags.isStarted=!0,this.chronos.total.start();
2const i=!this._npawVideo||this._npawVideo._joinTimeMeasureAfterAdBreakAvailable();this._isAds()||i||this.chronos.join.start(),e&&((t=t||{}).triggeredEvents=[e]),this.adapterHash&&((t=t||{}).pluginHash=this.adapterHash),this.startReadyStateMonitor(),this.emit(h.Event.START,{params:t})}},fireJoin:function(t,e){this.flags.isJoined||this.flags.isStarted||this._isAds()||!this._npawVideo||!this._npawVideo.isInitiated||this.fireStart(),this.flags.isStarted&&!this.flags.isJoined&&(this.flags.isStarted=!0,this.monitor&&this.monitor.start(),this.flags.isJoined=!0,this.chronos.join.stop(),e&&((t=t||{}).triggeredEvents=[e]),this.emit(h.Event.JOIN,{params:t}))},firePause:function(t,e){this._discardFalseBuffers(),this.flags.isBuffering&&this.fireBufferEnd(null,"firePauseCall"),this.flags.isJoined&&!this.flags.isPaused&&(this.flags.isPaused=!0,this.chronos.pause.start(),e&&((t=t||{}).triggeredEvents=[e]),this.emit(h.Event.PAUSE,{params:t}))},fireResume:function(t,e){if(this._discardFalseBuffers(),this.flags.isJoined&&this.flags.isPaused){this.flags.isPaused=!1;try{this._npawVideo.ignorePauseSmallEvents()&&this.chronos.pause.getDeltaTime(!1)<=50?this.chronos.pause.reset():this.chronos.pause.stop()}catch(t){this.chronos.pause.stop()}this.monitor&&this.monitor.skipNextTick(),e&&((t=t||{}).triggeredEvents=[e]),this.emit(h.Event.RESUME,{params:t})}},fireBufferBegin:function(t,e,i,s){if(s=s||!1,this.flags.isJoined&&!this.flags.isBuffering){if(this.flags.isSeeking){if(!e)return;n.notice(l,"Converting current buffer to seek"),this.chronos.buffer=this.chronos.seek.clone(),this.chronos.seek.reset(),this.flags.isSeeking=!1}else this.chronos.buffer.start();try{this.fireEventsStruct.buffer=[],i?this.fireEventsStruct.buffer.push(i):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(t){n.debug(l,"Error tracking buffer begin triggered event:",t)}this.flags.isBuffering=!0,this.flags.isVideoStateBuffering=s,this.emit(h.Event.BUFFER_BEGIN,{params:t})}},fireBufferEnd:function(t,e){if(this.flags.isJoined&&this.flags.isBuffering){try{e?this.fireEventsStruct.buffer.push(e):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(t){n.debug(l,"Error tracking buffer begin triggered event:",t)}(t=t||{}).triggeredEvents=this.fireEventsStruct.buffer,this.cancelBuffer(),this.emit(h.Event.BUFFER_END,{params:t});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch(t){n.debug(l,"Error resuming pause chronos:",t)}}},_discardFalseBuffers:function(){try{this.flags.isBuffering&&this.flags.isVideoStateBuffering&&this._getDeltaBufferTime()<=100&&this.cancelBuffer()}catch(t){n.debug(l,"Error discarding false buffers:",t)}},cancelBuffer:function(t){this.flags.isJoined&&this.flags.isBuffering&&(this.flags.isBuffering=!1,this.flags.isVideoStateBuffering=!1,this.chronos.buffer.stop(),this.monitor&&this.monitor.skipNextTick())},_getDeltaBufferTime:function(){return this.chronos&&this.chronos.buffer?this.chronos.buffer.getDeltaTime(!1):0},fireStop:function(t,e){try{if((this._isAds()||this._npawVideo._isStopReady())&&(this._isAds()&&this.flags.isStarted||!this._isAds()&&(this.flags.isStarted||this._npawVideo.isInitiated))){if(this._isAds()&&(t=t||{},this.flags.isPaused)){const e=this.chronos.pause.getDeltaTime();t.adPauseDuration=e}this.stopMonitor(),this.stopReadyStateMonitor(),this.flags.reset(),this.chronos.total.stop(),this.chronos.join.reset(),this.chronos.pause.stop(),this.chronos.buffer.stop(),this.chronos.seek.stop(),e&&((t=t||{}).triggeredEvents=[e]),this.emit(h.Event.STOP,{params:t}),this.chronos.pause.reset(),this.chronos.buffer.reset(),this.chronos.seek.reset(),this.chronos.viewedMax.splice(0,this.chronos.viewedMax.length),this._npawVideo&&this._npawVideo.resetExpirationManager()}}catch(t){n.warn(l,"Issue firing Stop event")}},firePlayerLog:function(t,e){if(this._npawVideo){var i={logs:e,logAction:t,logType:"playerEvent"};this._npawVideo.firePlayerLog(i)}},setIsAds:function(t){this._isAdsAdapter=t},_isAds:function(){return this._isAdsAdapter},fireCasted:function(t,e){t||(t={}),t.casted=!0,this.fireStop(t,e)}
2,fireError:function(t,e,i,s,n,o,a){let c=r.buildErrorParams(t,e,i,a);c.code&&delete c.code,n&&(c=c||{},c.triggeredEvents=[n]);const d=this._npawVideo?this._npawVideo.options:{};if(void 0!==c.errorCode&&d["errors.ignore"]&&d["errors.ignore"].indexOf(c.errorCode.toString())>-1);else{o=o||!1;const t=d["errors.nonFatal"]||[],e=void 0!==c.errorCode&&t.indexOf(c.errorCode.toString())>-1;e&&o&&(o=!1),(o||void 0!==c.errorCode&&d["errors.fatal"]&&d["errors.fatal"].indexOf(c.errorCode.toString())>-1&&!e)&&(c=c||{},c.errorType="fatal"),this.emit(h.Event.ERROR,{params:c})}},fireFatalError:function(t,e,i,s,n,r){this.fireError(t,e,i,s,n,!0,r)},isLegacyBufferBehaviourEnabled:function(){return(this._npawVideo?this._npawVideo.options:{}).enableLegacyBufferBehaviour||!1}},{Event:h.Event});t.exports=u},5292(t,e,i){const{default:s}=i(7276);var n=i(2507),r=i(9835),o=i(7160),a=i(7086),c=i(6777);const{AnalyticsTag:d}=i(2784),{default:h}=i(474),{default:l}=i(61);var u=o.extend({constructor:function(t,e,i,n,o,a){this._initBase(t,e,i,o);const c="object"!=typeof a;let h;const l=c?JSON.parse(a):void 0;if(this._adapterName=c?this.getAdapterName(l):this.getAdapterNameFromClass(a),c&&this.plugin&&this.plugin.canOverwriteAdapters()&&(h=this._getAdapterFromTemplates(this._adapterName),h&&s.notice(d,"Overwrite Adapter: "+this._adapterName)),c&&!h)if(a)try{h=l}catch(t){s.warn(d,"Problem parsing adapter json code (to object conversion)")}else h=this._getAdapterFromTemplates(this._adapterName);this.tag=this.player,c&&h?(this.evalAdapterJson(h,!1),this.registerListeners()):!c&&a&&(this.loadAdapterClasses(a,!1),this.registerListeners()),this.plugin.options.enableExtraMetricCollection&&this._npawVideo.fetchLocation(),s.notice(d,"Adapter "+this.getVersion()+" with Lib "+r+" is ready.")},getAdapterName:function(t){if(t&&t["adapter,getVersion"])try{return window.Function(t["adapter,getVersion"])()}catch(t){s.debug(d,"Error getting adapter version from class:",t)}return"undefined"},getAdapterNameFromClass:function(t){if(t&&t.getVersion)try{return t.getVersion()}catch(t){s.debug(d,"Error getting adapter version from class:",t)}return"undefined"},updateAdapterTemplates:function(t){if(this.plugin.canOverwriteAdapters()){var e=this._getAdapterFromTemplates(this._adapterName,t);e&&(this.evalAdapterJson(e,!0),this.registerListeners())}},_getAdapterFromTemplates:function(t,e){var i=null;e||(e=this.plugin.adapterTemplates);try{t&&e&&e[t.toLowerCase()]&&(i=JSON.parse(e[t.toLowerCase()]))}catch(e){s.warn(d,"Adapter "+t+" not found on repository")}return i},evalAdapterJson:function(t,e){e=e||!1;var i=0,n=0,r="";try{for(var o in t){var a=o.split(","),h=a.shift(),l=a.shift();r=l;var p=null;if(a&&a.length>=1){var f=a;p=window.Function(f,t[o])}else p=window.Function(t[o]);p&&("adapter"===h.toLowerCase()?(this[l]=p,i++):h.indexOf(".adapter")>0?(h=h.replace(".adapter",""),this.getAdapterClasses()[h]||(this.getAdapterClasses()[h]=new u(this._key,this._npawVideo,this.getPlugin(),null,this.player,null,null,{})),this.getAdapterClasses()[h][l]=p,n++):(this.getAdapterClasses()[h]||(this.getAdapterClasses()[h]={},this.getAdapterClasses()[h].constructor=function(){},this.getAdapterClasses()[h].plugin=this.plugin,this.getAdapterClasses()[h].getNpawUtils=function(){return this.plugin.utils}),this.getAdapterClasses()[h][l]=p,n++))}this._loadedAdapterImplementation=!0,this._adapterEvaluatedCode=t;try{this.adapterHash=c("string"==typeof t?t.trim():JSON.stringify(t).trim())}catch(t){this.adapterHash="Undefined"}s.notice(d,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from JSON; From templates: "+e+"; Integrated adapter methods: "+i+", external methods: "+n)}catch(t){s.error(d,"Can't be evaluated adapter json correctly; From templates: "+e+", Last method evaluated: "+r)}},loadAdapterClasses:function(t,e){e=e||!1;let i=0,n=0,r="",o=Object.getPrototypeOf(t);try{let a="";const h=new Map;for(;o!==Object.prototype;)Object.getOwnPropertyNames(o).forEach(t=>{"function"!=typeof o[t]||"constructor"===t||h.has(t)||h.set(t,o[t])}
2),o=Object.getPrototypeOf(o);if(h.forEach((t,e)=>{this[e]=t,a+=t.toString(),i++}),r="Adapter Class",void 0!==t.adsAdapters)for(const e of Object.keys(t.adsAdapters))this.getAdapterClasses()[e]=new u(this._key,this._npawVideo,this.getPlugin(),null,this.player,new t.adsAdapters[e]),r="Ads Adapter -> "+e;if(void 0!==t.additionalContexts){for(const e of Object.keys(t.additionalContexts)){this.getAdapterClasses()[e]||(this.getAdapterClasses()[e]={},this.getAdapterClasses()[e].constructor=function(){},this.getAdapterClasses()[e].plugin=this.plugin,this.getAdapterClasses()[e].getNpawUtils=function(){return this.plugin.utils});const i=new t.additionalContexts[e],s=Object.getPrototypeOf(i),r=Object.getOwnPropertyNames(s).filter(t=>"function"==typeof i[t]&&"constructor"!==t);for(const t of r)this.getAdapterClasses()[e][t]=i[t],n++}r="Additional Contexts"}this._loadedAdapterImplementation=!0;try{this.adapterHash=c(a.trim())}catch(t){this.adapterHash="Undefined"}s.notice(d,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from class; From templates: "+e+"; Integrated adapter methods: "+i+", external methods: "+n)}catch(t){s.error(d,"Can't be evaluated adapter class correctly; From templates: "+e+", Last method evaluated: "+r)}},getLastUsedCdn:function(){return h.getInstance().getCommonVariable(l.Products.BALANCER,l.BalancerVariables.LAST_USED_CDN)||void 0},fireStart:function(t,e){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return s.warn(d,"Cannot fire start event because player not exists on the document"),null;if(this.plugin&&this.plugin.backgroundDetector&&this.plugin.backgroundDetector.canBlockStartCalls())return null;if(!this.flags.isStarted){this.flags.isStarted=!0,this.chronos.total.start();const i=!this._npawVideo||this._npawVideo._joinTimeMeasureAfterAdBreakAvailable();this._isAds()||i||this.chronos.join.start(),e&&((t=t||{}).triggeredEvents=[e]),this.adapterHash&&((t=t||{}).pluginHash=this.adapterHash),this.startReadyStateMonitor(),this.emit(a.Event.START,{params:t}),this.plugin._logSetAdapterEvent(this._adapterEvaluatedCode)}}});n.assign(u.prototype,i(9393)),n.assign(u.prototype,i(594)),t.exports=u},5200(t,e,i){var s=i(3948),n=i(7680),r=s.extend({constructor:function(){this.reset()},reset:function(){this.join=new n,this.seek=new n,this.pause=new n,this.buffer=new n,this.total=new n,this.adPlayTime=new n,this.viewedMax=[]}});t.exports=r},7255(t,e,i){var s=i(3948).extend({constructor:function(){this.reset()},reset:function(){this.isStarted=!1,this.isJoined=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isVideoStateBuffering=!1,this.isEnded=!1,this.isStopped=!1,this.lastQuartileSent=0,this.isAdPaused=!1}});t.exports=s},3381(t,e,i){var s=i(3948),n=i(4954),r=i(7680),o=s.extend({constructor:function(t,e,i){this._adapter=t,this._seekEnabled=e&o.Type.SEEK,this._bufferEnabled=e&o.Type.BUFFER,i=i||800,this._chrono=new r,this._lastPlayhead=0,i>0&&(this._timer=new n(this.progress.bind(this),i))},start:function(){this.stop(),this.canBeUsed()&&this._timer.start()},stop:function(){this._lastPlayhead=0,this._timer&&this._timer.stop()},skipNextTick:function(){this._lastPlayhead=0},progress:function(){var t=this._chrono.stop();this._chrono.start();var e=t*o.kBUFFER_THRESHOLD_RATIO,i=t*o.kSEEK_THRESHOLD_RATIO;this._adapter.getPlayrate&&this._adapter.getPlayrate()&&1!==this._adapter.getPlayrate()&&(e*=this._adapter.getPlayrate(),i*=this._adapter.getPlayrate());var s=this._getPlayhead();if(null==s||isNaN(s)||!isFinite(s)||s<0)this._lastPlayhead=0;else{var n=1e3*Math.abs(this._lastPlayhead-s);if(this._lastPlayhead>0&&n>i&&this._isAnomalousJump(n))this._lastPlayhead=s;else{var r="function"==typeof this._adapter.getVideoBufferLength?this._adapter.getVideoBufferLength():null;if(n<e){if(this._bufferEnabled&&this._lastPlayhead>0&&!this._adapter.flags.isPaused&&!this._adapter.flags.isSeeking){const t=this._adapter.getPlugin();t&&t.options&&t.options.checkVideoBufferInPlayheadMonitor?(null===r||r<=0)&&this._adapter.fireBufferBegin(null,!1,"playheadMonitor"):this._adapter.fireBufferBegin(null,!1,"playheadMonitor")}}else n>i?this._seekEnabled&&this._lastPlayhead>0&&this._adapter.fireSeekBegin(null,!1,"playheadMonitor"):(this._seekEnabled&&this._adapter.fireSeekEnd(null,"playheadMonitor"),this._bufferEnabled&&this._adapter.fireBufferEnd(null,"playheadMonitor"));this._lastPlayhead=s}}},canBeUsed:function(){const t=this._adapter.getVideo(),e=this._adapter.getPlugin();return!(!e||!e.getPlayheadMonitorEnabled()||!this._seekEnabled&&!this._bufferEnabled||t&&t.getIsLive()&&e.options["content.isLive.noMonitor"])},_getPlayhead:function(){return this._adapter.getPlayhead()}
2,_isAnomalousJump:function(t){var e=o.kMAX_SEEK_JUMP_MS;try{var i=this._adapter.getVideo();if(i&&!i.getIsLive()){var s=this._adapter.getDuration();s&&s>0&&isFinite(s)&&(e=1e3*s)}}catch(t){}return t>e}},{Type:{NONE:0,BUFFER:1,SEEK:2},kBUFFER_THRESHOLD_RATIO:.5,kSEEK_THRESHOLD_RATIO:2,kMAX_SEEK_JUMP_MS:432e5});t.exports=o},8490(t,e,i){var s=i(3948);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o=s.extend({constructor:function(t,e){this._adapter=t,this._videoElement=t.getVideoObject(),this._startedStateCheck=!1,this._intervalCheckId=null,this._intervalMilliseconds=e||300},start:function(){var t=this._adapter.plugin;t&&t.getReadyStateMonitorEnabled()&&this._videoElement&&!this._startedStateCheck&&(this._intervalCheckId=setInterval(this.checkStateProperty.bind(this),this._intervalMilliseconds),this._startedStateCheck=!0)},stop:function(){try{this._startedStateCheck&&this._intervalCheckId&&clearInterval(this._intervalCheckId),this._intervalCheckId=null,this._startedStateCheck=!1}catch(t){n.error(r,"Produced error stopping the network monitor")}},checkStateProperty:function(t){try{this._videoElement&&this._adapter&&this._videoElement.readyState&&(this._videoElement.readyState>3&&!this._adapter.flags.isSeeking?this._adapter.flags.isBuffering?this.fireBufferEnd({},"stateMonitor"):this._adapter.flags.isJoined||this.fireJoin({},"stateMonitor"):this._videoElement.readyState<4&&!this._adapter.flags.isBuffering&&this.fireBufferBegin({},!1,"stateMonitor",!0))}catch(t){n.debug(r,"Error checking state property:",t)}}});t.exports=o},7680(t,e,i){var s=i(3948).extend({constructor:function(){this.reset()},reset:function(){this.startTime=0,this.stopTime=0,this.pauseTime=0,this.offset=0},getDeltaTime:function(t){var e=-1,i=(new Date).getTime();if(this.startTime){t&&!this.stopTime&&(this.stopTime=i);var s=this.pauseTime?i-this.pauseTime:0,n=this.stopTime?this.stopTime:i;e=this.offset-s+(n-this.startTime)}return e},start:function(){this.startTime=(new Date).getTime(),this.stopTime=0,this.offset=0},stop:function(){return this.pauseTime&&this.resume(),this.stopTime=(new Date).getTime(),this.startTime?this.offset+(this.stopTime-this.startTime):-1},pause:function(){this.pauseTime=(new Date).getTime()},resume:function(){this.offset-=(new Date).getTime()-this.pauseTime,this.pauseTime=0},clone:function(){var t=new s;return t.startTime=this.startTime,t.stopTime=this.stopTime,t.offset=this.offset,t}});t.exports=s},3821(t,e,i){var s=i(3948);const{default:n,LogLevel:r}=i(7276);var o=i(2507);const{AnalyticsTag:a}=i(2784);var c=s.extend({constructor:function(t,e,i,s,n){this.videoKey=n,this.xhr=this.createXHR(),this.host=t||"",this.service=e||"",this.params=i||{},this.options=o.assign({},c.defaultOptions,s),this.retries=0,this.sendPostRequest=!1,this.preparedPostRequest=!1,this.options.cache||this.params.timemark||this.setParam("timemark",(new Date).getTime())},createXHR:function(){var t={};try{t=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}catch(t){n.error(a,t)}return t},getXHR:function(){return this.xhr},getResponse:function(){return this.xhr.response},getResponseText:function(){return this.xhr.responseText},getResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},getUrl:function(){return this.host+this.service+this.getParamString()},getVideoKey:function(){return this.videoKey},on:function(t,e,i){return this.xhr.addEventListener?this.xhr.addEventListener(t,e.bind(this,this,i)):t===c.Event.SUCCESS&&(this.xhr.onreadystatechange=function(){4===this.xhr.readyState&&e.bind(this,this,i)}.bind(this)),this},off:function(t,e){return this.xhr.removeEventListener(t,e),this},getParamString:function(){try{var t="?";for(var e in this.params){var i=this.params[e];if(null!==i&&"object"==typeof i){var s=JSON.stringify(i);"{}"!==s&&(t+=encodeURIComponent(e)+"="+encodeURIComponent(s)+"&")}else null!=i&&""!==i&&(t+=encodeURIComponent(e)+"="+encodeURIComponent(i)+"&")}return t.slice(0,-1)}catch(t){return n.error(a,t),""}},getParam:function(t){return this.params[t]},setParam:function(t,e){return this.params[t]=e,this},setBody:function(t){this.body=t},setPostRequest:function(t){this.sendPostRequest=t},getParamsForPostMessages:function(){var t={};
2try{var e=this.getParam("timemark"),i=this.getParam("code"),s=this.getParam("sessionRoot"),r=this.getParam("sessionId");e&&(t.timemark=e),i&&(t.code=i),s&&(t.sessionRoot=s),r&&(t.sessionId=r)}catch(t){n.error(a,t)}return t},send:function(){try{try{this.sendPostRequest&&!this.preparedPostRequest&&(this.options.method="POST",this.body=JSON.stringify(this.params),this.params=this.getParamsForPostMessages(),this.preparedPostRequest=!0)}catch(t){n.debug(a,"Error preparing POST request:",t)}if(this.xhr.open(this.options.method,this.getUrl(),!0),this.options.requestHeaders)for(var t in this.options.requestHeaders)this.options.requestHeaders.hasOwnProperty(t)&&this.xhr.setRequestHeader(t,this.options.requestHeaders[t]);for(var e in this.options.retryAfter>0&&this.options.maxRetries>0&&0===this.retries&&this.on(c.Event.ERROR,function(){if(this.retries>=this.options.maxRetries)n.error(a,'Aborting failed request "'+this.service+'". Max retries reached.');else{n.warn(a,'YBRequest "'+this.service+'" failed. Retry '+(this.retries+1)+" of "+this.options.maxRetries+" in "+this.options.retryAfter+"ms.");try{setTimeout(function(){this.retries+=1,this.send()}.bind(this),this.options.retryAfter)}catch(t){"undefined"!=typeof atv?atv.setTimeout(function(){this.retries+=1,this.send()}.bind(this),this.options.retryAfter):n.error(a,t)}}}.bind(this)),n.logLevel<=r.VERBOSE&&n.verbose(a,"XHR Req: "+this.getUrl()),c._globalListeners)c._globalListeners[e].forEach(function(t){this.on(e,t)}.bind(this));return this.xhr.send(this.body)}catch(t){n.error(a,t)}}},{Event:{SUCCESS:"load",LOAD:"load",ERROR:"error",ABORT:"abort"},defaultOptions:{method:"GET",requestHeaders:{},maxRetries:3,retryAfter:5e3,cache:!1},_globalListeners:{},onEvery:function(t,e){c._globalListeners[t]=c._globalListeners[t]||[],c._globalListeners[t].push(e)},offEvery:function(t,e){if(c._globalListeners[t]){var i=c._globalListeners[t].indexOf(e);-1!==i&&c._globalListeners[t].splice(i,1)}}});t.exports=c},1151(t,e,i){var s=i(2503),n=i(3168),r=i(3908),o=i(8187),a=i(3831),c=i(4387),d=i(1657),h=i(3782);const{AnalyticsTag:l}=i(2784),{default:u}=i(7276);var p=s.extend({constructor:function(t){p.__super__.constructor.apply(this,arguments),this.plugin=t,this._realResource=void 0,this._transportFormat=void 0,this._initResource=void 0,this._cdnName=void 0,this._cdnNodeHost=void 0,this._cdnNodeTypeString=void 0,this._cdnNodeType=void 0,this._responses={},this._processedResponses={},this._isBusy=!1,this.transformName="Resource"},getResource:function(){return this._realResource},_getInitialCdnResource:function(){return this._realResource||this._initResource},getTransportFormat:function(){return this._transportFormat},getCdnName:function(){return this._cdnName},getNodeHost:function(){return this._cdnNodeHost},getNodeTypeString:function(){return this._cdnNodeTypeString},getNodeType:function(){return this._cdnNodeType},getWaitParams:function(){if(this.isBlocking()){var t=[];return this.plugin.options["parse.cdnNode"]&&t.push("cdn"),this.plugin.options["parse.manifest"]&&t.push("parsedResource","transportFormat"),t}return[]},init:function(t){t?this._isBusy||(this._isBusy=!0,this._cdnName=void 0,this._cdnNodeHost=void 0,this._cdnNodeTypeString=void 0,this._cdnNodeType=void 0,this._initResource=t,this._parseManifestEnabled=this.plugin.isParseManifest(),this._cdnEnabled=this.plugin.isParseCdnNode(),this._cdnList=this.plugin.getParseCdnNodeList().slice(),r.setBalancerHeaderName(this.plugin.getParseCdnNodeNameHeader(),this.plugin.getParseNodeHeader()),this._setTimeout(),this._parseManifestEnabled?this._isFinalUrl(this._initResource)?(this._realResource=this._initResource,this.done()):this.parseManifest():this._parseCDN()):this.done()},_isFinalUrl:function(t){const e=[".ts",".mp4",".m4s",".cmfv",".mp3"];t=t||"";for(const i in e){const s=e[i];if(t.lastIndexOf(s)===t.length-s.length)return!0}return!1},_setTimeout:function(){const t=()=>{this._isBusy&&(this.done(),u.warn(l,"ResourceTransform has exceded the maximum execution time (3s) and will be aborted."))};try{this._parseTimeout=setTimeout(t,3e3)}catch(e){"undefined"!=typeof atv?this._parseTimeout=atv.setTimeout(t,3e3):u.error(l,e)}},parseManifest:function(t,e){const i=this.plugin.options["parse.manifest.auth"],s=this.plugin.isParseLocationHeaderGetRequest
2(),r=this.plugin.isParseManifest(),o=this.plugin.options["parse.manifest.lastChunk"]||!1,c=new d(i);c.setGetRequest(r||s);const h=new a(i);h.setParseLastChunk(o);const l=new n(i);l.setParseLastChunk(o);const u=[c,h,l];this._parseManifest(u,t,e||this._initResource)},_parseManifest:function(t,e,i,s){if(t.length>0){const n=t[0];n.shouldExecute(e)?(n.on(c.Event.DONE,()=>{this._parseManifest(t.slice(1,t.length),n.getLastManifest(),n.getResource(),n.getTransportFormat()||s)}),n.parse(i,e)):this._parseManifest(t.slice(1,t.length),e,i,s)}else this._transportFormat=s,this._realResource=i,this._followChunkRedirect()},_followChunkRedirect:function(){if(!this._realResource||this._realResource===this._initResource||!this._parseManifestEnabled&&!this._cdnEnabled)return void this._parseCDN();const t=this.plugin.isCDNParserHeaderGetRequest()?"GET":"HEAD";try{const e=new XMLHttpRequest;e.open(t,this._realResource),e.onreadystatechange=()=>{4===e.readyState&&(e.status>=200&&e.status<400?e.responseURL&&e.responseURL!==this._realResource&&(u.debug(l,"Chunk redirect detected: "+this._realResource+" -> "+e.responseURL),this._realResource=e.responseURL):u.warn(l,"Chunk redirect request failed with status: "+e.status),this._parseCDN())},e.onerror=()=>{u.warn(l,"Failed to follow chunk redirect, using original URL"),this._parseCDN()},e.send()}catch(t){u.warn(l,"Error following chunk redirect: "+t),this._parseCDN()}},_parseCDN:function(){if(this.plugin.isCdnSwitch())this.switchDetector=new o(this.plugin),this.switchDetector.on(o.Events.DONE,t=>{this._cdnName=t.data,this.done()}),this.switchDetector.on(o.Events.ERROR,()=>{this.done()}),this.switchDetector.init();else if(this._cdnEnabled&&this._cdnList.length>0){const t=this._cdnList.shift(),e=r.create(t);if(e){this._cleanExpiredResponses();const t=this.plugin.isCDNParserHeaderGetRequest()?"GET":"HEAD";e.setRequestMethod(t),e.on(r.Event.DONE,()=>{this._responses[this._getInitialCdnResource()]=e.getResponses(),this._processedResponses[this._getInitialCdnResource()]=(new Date).getTime(),this._cdnName=e.getParsedCdnName(),this._cdnNodeHost=e.getParsedNodeHost(),this._cdnNodeTypeString=e.getParsedNodeTypeString(),this._cdnNodeType=e.getParsedNodeType(),this.getNodeHost()?this.done():this._parseCDN()}),e.parse(this._getInitialCdnResource(),this._responses[this._getInitialCdnResource()]||{})}else this._parseCDN()}else this.done()},_cleanExpiredResponses:function(){try{Object.keys(this._processedResponses).forEach(t=>{const e=this._processedResponses[t];(new Date).getTime()-e>6e4&&(delete this._processedResponses[t],delete this._responses[t])})}catch(t){u.debug(l,"Error cleaning up old processed responses:",t)}},parse:function(t){if(t.service===h.Service.START){const e=this.plugin.requestBuilder.lastSent;e.parsedResource=t.params.parsedResource=this.getResource()||t.params.parsedResource,e.transportFormat=t.params.transportFormat=this.getTransportFormat()||t.params.transportFormat,this._cdnEnabled&&(e.cdn=t.params.cdn=t.params.cdn||this.getCdnName(),e.nodeHost=t.params.nodeHost=this.getNodeHost()||t.params.nodeHost,e.nodeType=t.params.nodeType=this.getNodeType()||t.params.nodeType,e.nodeTypeString=t.params.nodeTypeString=this.getNodeTypeString()||t.params.nodeTypeString)}}});t.exports=p},8187(t,e,i){var s=i(1593),n=i(3821);const{AnalyticsTag:r}=i(2784),{default:o}=i(7276);var a=s.extend({constructor:function(t){this.plugin=t,this.headerName="x-cdn"},init:function(){var t=null;this.plugin&&(t=this.plugin.getAdapter()&&this.plugin.getAdapter().getURLToParse()?this.plugin.getAdapter().getURLToParse():this.plugin.getResource()),this.plugin&&this.plugin.getAdapter()&&this.plugin.getAdapter().flags.isStarted&&this._request(t)},done:function(t){this.emit(a.Events.DONE,t)},error:function(){this.emit(a.Events.ERROR)},_successfulRequest:function(t){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"]));var e=t.getResponseHeaders().split("\n"),i=null;for(var s in e){var n=e[s],r=n.indexOf(this.headerName);r>-1&&(i=n.substring(r+this.headerName.length+1,n.length-1).replace(" ",""))}this.done(i)},_failedRequest:function(){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"])),o.warn(r,"CDN switch detection request failed"),this.error()},_request:function(t){var e=new n(t,null,null,{method:"HEAD",cache:!0});e.on(n.Event.SUCCESS,this._successfulRequest.bind(this)),e.on(n.Event.ERROR,this._failedRequest.bind(this)),e.send()}}
2,{Events:{DONE:"done",ERROR:"error"}});t.exports=a},3908(t,e,i){var s=i(1593),n=i(2507);i(3821);const{AnalyticsTag:r}=i(2784),{default:o}=i(7276);var a=s.extend({constructor:function(t){this._options=n.assign({cdnName:null,parsers:[],requestMethod:"HEAD",requestHeaders:{},parseType:function(){return 0}},t),this._responses={}},done:function(){this.emit(a.Event.DONE)},addParser:function(t){return this._options.parsers.push(t),this},setCdnName:function(t){return this._options.cdnName=t,this},setRequestMethod:function(t){return this._options.requestMethod=t,this},setRequestHeader:function(t,e){return this._options.requestHeaders[t]=e,this},setParseType:function(t){return this._options.parseType=t,this},getParsedCdnName:function(){return this._cdnName},getParsedNodeHost:function(){return this._cdnNodeHost},getParsedNodeTypeString:function(){return this._cdnNodeTypeString},getParsedNodeType:function(){return this._cdnNodeType},getResponses:function(){return this._responses},parse:function(t,e){this._responses=e||{};var i=JSON.stringify(this._options.requestHeaders);this._responses[i]?this._parseResponse(this._responses[i]):this._requestResponse(t)},_requestResponse:function(t){var e=JSON.stringify(this._options.requestHeaders),i="{}"!==e;const s=new XMLHttpRequest;s.open(this._options.requestMethod,t);for(const t in this._options.requestHeaders)Object.prototype.hasOwnProperty(this._options.requestHeaders,t)&&s.setRequestHeader(t,this._options.requestHeaders[t]);s.onreadystatechange=()=>{4===s.readyState&&(s.status>=200&&s.status<400?(this._responses[e]=s.getAllResponseHeaders(),this._parseResponse(this._responses[e])):i?(this._options.requestHeaders={},this._requestResponse(t)):this.done())},s.send()},_parseResponse:function(t){this._options.parsers.forEach(function(e){if("string"==typeof e.headerName)this._parseHeaderResponse(t,e,e.headerName);else if(Array.isArray(e.headerName))for(var i=0,s=e.headerName.length;i<s;i++){var n=e.headerName[i];"string"==typeof n&&this._parseHeaderResponse(t,e,n)}}.bind(this)),this.done()},_parseHeaderResponse:function(t,e,i){i&&(i=i?i.toLowerCase():"",t.split("\n").forEach(function(t){var s=t.indexOf(":");-1!==s&&t.slice(0,s).toLowerCase()===i&&this._executeParser(e,t.slice(s+1))}.bind(this)))},_executeParser:function(t,e){try{var i=t.regex.exec(e.trim());if(null!==i)switch(this._options.cdnName&&(this._cdnName=this._options.cdnName),t.element){case a.ElementType.HOST:this._cdnNodeHost=i[1];break;case a.ElementType.TYPE:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case a.ElementType.HOST_AND_TYPE:this._cdnNodeHost=i[1],this._cdnNodeTypeString=i[2],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case a.ElementType.TYPE_AND_HOST:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString),this._cdnNodeHost=i[2];break;case a.ElementType.NAME:this._cdnName=i[1].toUpperCase()}}catch(t){o.warn(r,"CDN parsing for "+this._options.cdnName+" could not parse header value "+e)}},shouldExecute:function(){return!0}},{Event:{DONE:"done"},ElementType:{HOST:"host",TYPE:"type",HOST_AND_TYPE:"host+type",TYPE_AND_HOST:"type+host",NAME:"name"},_cdnConfigs:{},setBalancerHeaderName:function(t,e){a._cdnConfigs.Balancer.parsers[0].headerName=t,a._cdnConfigs.Balancer.parsers[1].headerName=e},create:function(t){if(a._cdnConfigs[t])return new a(a._cdnConfigs[t]);o.warn(r,"Tried to create an unexisting CdnParser named "+t)},add:function(t,e){a._cdnConfigs[t]=e}});a.add("Level3",i(3713)),a.add("Cloudfront",i(7286)),a.add("Akamai",i(5298)),a.add("Highwinds",i(2047)),a.add("Fastly",i(563)),a.add("Telefonica",i(5040)),a.add("Amazon",i(2370)),a.add("Edgecast",i(7660)),a.add("Balancer",i(2580)),a.add("NosOtt",i(4335)),t.exports=a},5298(t){t.exports={cdnName:"AKAMAI",parsers:[{element:"type+host",headerName:"X-Cache",regex:/(.+)\sfrom.+AkamaiGHost\/(.+)\).+/},{element:"host",headerName:"akamai-mon-iucid-del",regex:/(.*)/},{element:"type",headerName:"akamai-cache-status",regex:/(.+)\sfrom\schild/}],requestHeaders:{Pragma:"akamai-x-cache-on"},parseType:function(t){var e=t.toLowerCase();return-1!==e.indexOf("hit")?1:-1!==e.indexOf("miss")?2:0}}},2370(t){t.exports={cdnName:"AMAZON",parsers:[{element:"host",headerName:"x-amz-cf-pop",regex:/(.+)/},{element:"type",headerName:"x-cache",regex:/(.+)\sfrom.+/}],parseType:function(t){return-1!==t.toLowerCase().indexOf("hit")?1:-1!==t.toLowerCase().indexOf("miss")?2:0}}},2580(t){t.exports={parsers:[{element:"name",headerName:null,regex:/(.+)/},{element:"host",headerName:null,regex:/(.+)/}]}},7286(t){t.exports={cdnName:"CLOUDFRT",parsers:[{element:"host",headerName:"X-Amz-Cf-Id",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(\S+)\s.+/}],parseType:function(t){switch(t){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},7660(t){t.exports={cdnName:"EDGECAST",parsers:[{element:"host",headerName:"Server",regex:/\((.+)\/.+\)/},{element:"type",headerName:"X-Cache",regex:/(.+)/}],parseType:function(t){return"HIT"===t?1:2}}},563(t){t.exports={cdnName:"FASTLY",parsers:[{element:"host",headerName:"X-Served-By",regex:/([^,\s]+)$/},{element:"type",headerName:"X-Cache",regex:/([^,\s]+)$/}],parseType:function(t){switch(t){case"HIT":return 1;case"MISS":return 2;default:return 0}}}},2047(t){t.exports={cdnName:"HIGHNEGR",parsers:[{element:"host+type",headerName:"X-HW",regex:/.+,[0-9]+\.(.+)\.(.+)/}],parseType:function(t){switch(t){case"c":case"x":return 1;default:return 2}}}},3713(t){t.exports={cdnName:"LEVEL3",parsers:[{element:"host+type",headerName:"X-WR-Diag",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"X-WR-Diag":"host"}
2,parseType:function(t){if(t){if(0===t.indexOf("TCP_HIT")||0===t.indexOf("TCP_MEM_HIT")||0===t.indexOf("TCP_IMS_HIT"))return 1;if(0===t.indexOf("TCP_MISS"))return 2}return 0}}},4335(t){t.exports={cdnName:"NOSOTT",parsers:[{element:"host",headerName:"X-NOS-Server",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(.*)/}],parseType:function(t){switch(t){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},5040(t){t.exports={cdnName:"TELEFO",parsers:[{element:"host+type",headerName:"x-tcdn",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"x-tcdn":"host"},parseType:function(t){if(t){if(-1!==t.indexOf("p")||-1!==t.indexOf("c"))return 1;if(-1!==t.indexOf("i")||-1!==t.indexOf("m"))return 2}return 0}}},3831(t,e,i){var s=i(3821),n=i(4387),r=i(7939);const{AnalyticsTag:o}=i(2784),{default:a}=i(7276);var c=n.extend({parse:function(t,e){if(e)this.parseLocation(e,t);else{var i=new s(t,null,null,{cache:!0,requestHeaders:this._headers});i.on(s.Event.SUCCESS,function(e){this.parseLocation(e,t)}.bind(this)),i.on(s.Event.ERROR,function(t){this.done()}.bind(this)),i.send()}},parseLocation:function(t,e){this.iterations--;var i=new RegExp(/<Location>([\s\S]+)<\/Location>/);try{this._lastManifest=t;var s=t.getResponseText(),n=i.exec(s);if(n&&n[1])var r=this._htmlDecode(n[1].replace("\n",""));r&&r!==e&&this.iterations>0?this.parse(r):this.parseFinalResource(s,e)}catch(t){a.warn(o,"Dash parse failed"),this.done()}},_htmlDecode:function(t){if("undefined"!=typeof document&&"function"==typeof document.createElement){var e=document.createElement("textarea");return e.innerHTML=t,e.childNodes&&e.childNodes.length?e.childNodes[0].nodeValue:t}return t},parseFinalResource:function(t,e){var i=new RegExp(/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/g),s=new RegExp(/<SegmentTemplate[\s\S]*?media="([^"]+)"/g),n=new RegExp(/<SegmentURL[\s\S]*?media="([^"]+)"/g),r=null;try{if(this._parseLastChunk){for(var c,d=[];null!==(c=i.exec(t));)c[1]&&this._isFullUrl(c[1])&&d.push(c);if(0===d.length)for(;null!==(c=s.exec(t));)c[1]&&d.push(c);if(0===d.length)for(;null!==(c=n.exec(t));)c[1]&&d.push(c);d.length>0&&(r=d[d.length-1])}else{var h=/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/.exec(t),l=/<SegmentTemplate[\s\S]*media="([^"]+)/.exec(t),u=/<SegmentURL[\s\S]*media="([^"]+)/.exec(t);r=h||l||u}this._getManifestMetadata(t),r&&r[1]&&this._isFullUrl(r[1])?r[1].indexOf('"')>0?this._realResource=r[1].substr(0,r[1].indexOf('"')).replace("\n",""):this._realResource=r[1].replace("\n",""):this._realResource=e}catch(t){a.warn(o,"Dash manifest parse failed")}this.done()},_getManifestMetadata:function(t){try{var e=new RegExp(/<AdaptationSet[\s\S]*mimeType="video\/([^"]+)/).exec(t),i=null;switch(e[1]){case"mp4":case"m4s":i=r.MP4;break;case"mp2t":i=r.MPEG2;break;case"cmfv":i=r.CMF}this._transportFormat=i}catch(t){a.warn(o,"Couldnt find the transport format")}},_isFullUrl:function(t){return-1!==t.indexOf("http")},shouldExecute:function(t){var e=!0;return t&&(e=-1!==t.getResponseText().indexOf("<MPD")),e}});t.exports=c},3168(t,e,i){var s=i(3821),n=i(4387),r=i(7939);const{AnalyticsTag:o}=i(2784),{default:a}=i(7276);var c=n.extend({parse:function(t,e,i){i=i||"";var n=null;try{var c=this._findVideoStreamUrl(t);if(c)n=c;else{var d=t.replaceAll(",URI=","\n").replaceAll('"',"").replaceAll(",","\n");if(this._parseLastChunk){for(var h,l=[],u=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/gi;null!==(h=u.exec(d));)l.push(h);if(l.length>0)n=l[l.length-1];else{var p=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/gi;for(l=[];null!==(h=p.exec(d));)l.push(h);l.length>0&&(n=l[l.length-1])}}else(n=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/i.exec(d))||(n=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/i.exec(d))}}catch(t){a.warn(o,"Parse HLS Regex failed",t),this.done()}if(null!==n){var f=n[1].trim(),g="",m=i.lastIndexOf("/");if(0!==f.indexOf("http")&&-1!==m){if("/"===f[0]&&"/"!==f[1]){var v=i.indexOf("/")+1;v+=i.substr(v,i.length).indexOf("/")+1,v+=i.substr(v,i.length).indexOf("/"),f=i.slice(0,v)+f}else f=i.slice(0,m)+"/"+f;g=i.slice(0,m)+"/"}if(".m3u8"===n[3]||".m3u"===n[3])if(e)this._parseWithManifest(e,g,n);else{var y=new s(f,null,null,{cache:!0,requestHeaders:this._headers});y.on(s.Event.SUCCESS,function(t){this._parseWithManifest(t,g,n)}.bind(this)),y.on(s.Event.ERROR,function(t){this.done()}.bind(this)),y.send()}else{switch(n[3]){case".mp4":case".m4s":case".fmp4":case".m4a":case".aac":case".mp3":case".ac3":case".ec3":this._transportFormat=r.MP4;break;case".ts":this._transportFormat=r.MPEG2;break;case".cmfv":this._transportFormat=r.CMF}this._realResource=f,this.done()}}else this.done()}
2,_parseWithManifest:function(t,e,i){this._lastManifest=t,this.parse(t.getResponseText(),null,e+i[2])},shouldExecute:function(t){var e=!0;return t&&(e=-1!==t.getResponseText().indexOf("#EXTM3U")),e},_findVideoStreamUrl:function(t){if(-1===t.indexOf("#EXTM3U"))return null;for(var e=t.split("\n"),i=0;i<e.length-1;i++){var s=e[i].trim();if(0===s.indexOf("#EXT-X-STREAM-INF:")){var n=-1!==s.indexOf("RESOLUTION="),r=-1!==s.indexOf("avc1.")||-1!==s.indexOf("hev1.")||-1!==s.indexOf("hvc1.");if(n||r){var o=e[i+1].trim(),a=/((\S*?)(\.m3u8|\.m3u)((\?|;)\S*|$))/i.exec(o);if(a)return a}}}return null}});t.exports=c},1657(t,e,i){var s=i(3821),n=i(4387).extend({setGetRequest:function(t){this._getRequest=t},parse:function(t,e){if(e)this._parseWithManifest(e);else{this._realResource=t;var i={cache:!0,requestHeaders:this._headers};this._getRequest||(i.method="HEAD");var n=new s(t,null,null,i);n.on(s.Event.SUCCESS,function(t){this._parseWithManifest(t)}.bind(this)),n.on(s.Event.ERROR,function(t){this.done()}.bind(this)),n.send()}},_parseWithManifest:function(t){this._lastManifest=t;var e=t.getResponseHeaders(),i=!1;t&&t.xhr&&t.xhr.responseURL&&t.xhr.responseURL!==this._realResource?(this._realResource=t.xhr.responseURL,this.parse(this._realResource),i=!0):e.split("\n").forEach(function(t){t.startsWith("Location:")&&(this._realResource=t.slice(10),this.parse(this._realResource),i=!0)}.bind(this)),i||this.done()}});t.exports=n},4387(t,e,i){const s=i(1593).extend({constructor:function(t){this._realResource=void 0,this._lastManifest=void 0,this._transportFormat=void 0,this.iterations=3,this._headers=t,this._parseLastChunk=!1},setParseLastChunk:function(t){this._parseLastChunk=t},done:function(){this.iterations=3,this.emit(s.Event.DONE)},parse:function(t,e){},getResource:function(){return this._realResource},getTransportFormat:function(){return this._transportFormat},getLastManifest:function(){return this._lastManifest},shouldExecute:function(t){return!0}},{Event:{DONE:"done"}});t.exports=s},2503(t,e,i){var s=i(1593).extend({constructor:function(){this._isBusy=!0,this._sendRequest=!0,this.transformName="Transform"},parse:function(t){},isBlocking:function(t){return this._isBusy},done:function(){this._isBusy=!1,this.emit(s.Event.DONE)},hasToSend:function(t){return this._sendRequest},getState:function(){return this._sendRequest?this._isBusy?this.STATE_BLOCKED:this.STATE_NO_BLOCKED:this.STATE_OFFLINE}},{STATE_OFFLINE:2,STATE_BLOCKED:1,STATE_NO_BLOCKED:0,Event:{DONE:"done"}});t.exports=s},3782(t,e,i){const s=i(703),n=i(7086),r={AdPosition:s,ManifestError:i(8932),RequestMethod:i(9637),Service:i(7062),WillSendEvent:i(3003),WillSendLog:i(825),AdInsertionType:i(1083),Adapter:n,Metadata:i(8424)};t.exports=r},1083(t){t.exports={ClientSide:"csai",ServerSide:"ssai"}},703(t){t.exports={Preroll:"pre",Midroll:"mid",Postroll:"post"}},7086(t,e,i){var s={Event:i(2477)};t.exports=s},2477(t){t.exports={INIT:"init",START:"start",JOIN:"join",JOIN_TIME:"joinTime",DATA_OBJECT:"data",PAUSE:"pause",RESUME:"resume",SEEK_BEGIN:"seek-begin",SEEK_END:"seek-end",BUFFER_BEGIN:"buffer-begin",BUFFER_END:"buffer-end",ERROR:"error",STOP:"stop",CLICK:"click",MANIFEST:"manifest",PODSTART:"break-start",PODSTOP:"break-stop",QUARTILE:"quartile",VIDEO_EVENT:"video-event",VIDEO_EVENT_END:"video-event-end"}},8932(t){t.exports={NO_RESPONSE:"NO_RESPONSE",EMPTY:"EMPTY_RESPONSE",WRONG:"WRONG_RESPONSE"}},8424(t){t.exports={REQUIRED_METADATA_TIMEOUT:1e4}},9637(t){t.exports={GET:"GET",POST:"POST"}},7062(t){t.exports={DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",SESSION_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs",INIT:"/init",START:"/start",JOIN:"/joinTime",DATA_OBJECT:"/data",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",VIDEO_EVENT_END:"/infinity/video/event/stop",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",EVENT_END:"/infinity/session/event/stop",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",SESSION_ERROR:"/infinity/session/error",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"}},8472(t){t.exports={HDS:"HDS",HLS:"HLS",MSS:"MSS",DASH:"DASH",RTMP:"RTMP",RTP:"RTP",RTSP:"RTSP",DVB:"DVB",DVBC:"DVB-C",DVBT:"DVB-T",DVBT2:"DVB-T2",MULTICAST:"MULTICAST"}},7939(t){t.exports={MP4:"MP4",MPEG2:"TS",CMF:"CMF"}},3003(t){t.exports={WILL_SEND_INIT:"will-send-init",WILL_SEND_START:"will-send-start",WILL_SEND_JOIN:"will-send-join",WILL_SEND_PAUSE:"will-send-pause",WILL_SEND_RESUME:"will-send-resume",WILL_SEND_SEEK:"will-send-seek",WILL_SEND_DATA_OBJECT:"will-send-data",WILL_SEND_BUFFER:"will-send-buffer",WILL_SEND_ERROR:"will-send-error",WILL_SEND_FATAL_ERROR:"will-send-fatal-error",WILL_SEND_STOP:"will-send-stop",WILL_SEND_PING:"will-send-ping",WILL_SEND_VIDEO_EVENT:"will-send-video-event",WILL_SEND_VIDEO_EVENT_END:"will-send-video-event-end",WILL_SEND_AD_START:"will-send-ad-start",WILL_SEND_AD_JOIN:"will-send-ad-join",WILL_SEND_AD_PAUSE:"will-send-ad-pause",WILL_SEND_AD_RESUME:"will-send-ad-resume",WILL_SEND_AD_BUFFER:"will-send-ad-buffer",WILL_SEND_AD_STOP:"will-send-ad-stop",WILL_SEND_AD_CLICK:"will-send-ad-click",WILL_SEND_AD_ERROR:"will-send-ad-error",WILL_SEND_AD_MANIFEST:"will-send-ad-manifest",WILL_SEND_AD_POD_START:"will-send-ad-break-start",WILL_SEND_AD_POD_STOP:"will-send-ad-break-stop",WILL_SEND_AD_QUARTILE:"will-send-ad-quartile",WILL_SEND_SESSION_START:"will-send-session-start",WILL_SEND_SESSION_STOP:"will-send-session-stop",WILL_SEND_NAV:"will-send-nav",WILL_SEND_BEAT:"will-send-beat",WILL_SEND_EVENT:"will-send-event",WILL_SEND_EVENT_END:"will-send-event-end",WILL_SEND_OFFLINE_EVENTS:"will-send-offline-events"}},825(t){t.exports={WILL_SEND_LOG_PLUGIN_INIT:"will-send-log-plugin-init",WILL_SEND_LOG_PLUGIN_SET_OPTIONS:"will-send-log-plugin-set-options",WILL_SEND_LOG_PLUGIN_RECEIVE_DATA:"will-send-log-plugin-receive-data",WILL_SEND_LOG_INFINITY_BEGIN:"will-send-log-infinity-begin",WILL_SEND_LOG_INFINITY_START:"will-send-log-infinity-start",WILL_SEND_LOG_INFINITY_EVENT:"will-send-log-infinity-event",WILL_SEND_LOG_INFINITY_EVENT_END:"will-send-log-infinity-event-end",WILL_SEND_LOG_INFINITY_NAV:"will-send-log-infinity-nav",WILL_SEND_LOG_INFINITY_NEW_SESSION:"will-send-log-infinity-new-session"}},9773(t,e,i){var s=i(3948),{default:n}=i(7276),{AnalyticsTag:r}=i(2784),o=s.extend({constructor:function(t,e){this.plugin=t,this.session=e,this.isInBackgroun
2d=!1,this.listenerReference=this._visibilityListener.bind(this),this._reset()},startDetection:function(){!this.isBackgroundDetectorStarted&&"undefined"!=typeof document&&document.addEventListener&&(this.isBackgroundDetectorStarted=!0,document.addEventListener("visibilitychange",this.listenerReference))},stopDetection:function(){this.isBackgroundDetectorStarted&&"undefined"!=typeof document&&document.removeEventListener&&(document.removeEventListener("visibilitychange",this.listenerReference),this._reset())},_reset:function(){this.isBackgroundDetectorStarted=!1},_visibilityListener:function(t){if("undefined"!=typeof document){var e=this._getSettings();"hidden"===document.visibilityState?this._toBackground(e):"visible"===document.visibilityState&&this._toForeground(e)}},_toBackground:function(t){this.isInBackground=!0;try{if(this.plugin&&this.plugin.videos)for(var e=0;e<this.plugin.videos.getVideoKeys().length;e++){var i=this.plugin.videos.getVideoKeys()[e],s=this.plugin.videos.getAdsAdapter(i);s&&s.stopChronoView()}}catch(t){n.debug(r,"Error stopping ads adapter chronos in background:",t)}try{if("string"==typeof t){switch(t){case"stop":this._fireStop();break;case"pause":this._firePause()}this.session.suspend()}}catch(t){n.debug(r,"Error suspending session in background:",t)}},_toForeground:function(t){this.isInBackground=!1;try{if(this.plugin&&this.plugin.videos)for(var e=0;e<this.plugin.videos.getVideoKeys().length;e++){var i=this.plugin.videos.getVideoKeys()[e],s=this.plugin.videos.getAdsAdapter(i);s&&s.startChronoView()}}catch(t){n.debug(r,"Error starting ads adapter chronos in foreground:",t)}try{"string"==typeof t&&t&&this._session.resume()}catch(t){n.debug(r,"Error resuming session in foreground:",t)}},_getSettings:function(){return"string"==typeof this.plugin.options["background.settings"]&&this.plugin.options["background.settings"]?this.plugin.options["background.settings"]:this.plugin.deviceDetector.isSmartTV()?this.plugin.options["background.settings.tv"]:this.plugin.deviceDetector.isDesktop()?this.plugin.options["background.settings.desktop"]:this.plugin.deviceDetector.isAndroid()?this.plugin.options["background.settings.android"]:this.plugin.deviceDetector.isIphone()?this.plugin.options["background.settings.iOS"]:this.plugin.deviceDetector.isPlayStation()?this.plugin.options["background.settings.playstation"]:void 0},_firePause:function(){this._fireX("firePause")},_fireStop:function(){this._fireX("fireStop")},_fireX:function(t){try{if(this.plugin&&this.plugin.videos)for(var e=0;e<this.plugin.videos.getVideoKeys().length;e++){var i=this.plugin.videos.getVideoKeys()[e];this.adsAdapter=this.plugin.videos.getAdsAdapter(i),this.adsAdapter&&this.adsAdapter[t]({},"backgroundDetector"),this.contentAdapter=this.plugin.videos.getAdapter(i),this.contentAdapter&&this.contentAdapter[t]({},"backgroundDetector")}}catch(e){n.debug(r,"Error firing "+t+" from background detector:",e)}},canBlockStartCalls:function(){return this.isInBackground&&!0===this.plugin.options["background.enabled"]&&this._getSettings()}});t.exports=o}
2,2635(t,e,i){var s=i(3948).extend({constructor:function(){"undefined"!=typeof navigator&&navigator.userAgent&&(this._isSmartTVDevice=navigator.userAgent.toLowerCase().match(/smarttv/)||navigator.userAgent.toLowerCase().match(/smart-tv/)||navigator.userAgent.toLowerCase().match(/appletv/)||navigator.userAgent.toLowerCase().match(/apple tv/),this._isPlaystationDevice=null!==navigator.userAgent.match(/PlayStation/),this._isIphoneDevice=null!==navigator.userAgent.match(/iPhone|iPad|iPod/i),this._isAndroidDevice=null!==navigator.userAgent.match(/Android/),this._isSmartphoneDevice=!this._isSmartTVDevice&&!this._isPlaystationDevice&&(this._isIphoneDevice||this._isAndroidDevice),this._isDesktopDevice=!this._isSmartphoneDevice&&!this._isSmartTVDevice&&!this._isPlaystationDevice)},isIphone:function(){return this._isIphoneDevice},isAndroid:function(){return this._isAndroidDevice},isSmartphone:function(){return this._isSmartphoneDevice},isDesktop:function(){return this._isDesktopDevice},isSmartTV:function(){return this._isSmartTVDevice},isPlayStation:function(){return this._isPlaystationDevice}});t.exports=s},6424(t,e,i){var s=i(3948).extend({constructor:function(t,e){this.plugin=t,this.video=e,this.listenerReference=this._changeListener.bind(this),this.loadReference=this._loadListener.bind(this),this.isEnabled=!1,this.pageHeight=0,this.maxHeight=0,this.startDetection()},startDetection:function(){this.isEnabled||"undefined"==typeof window||"function"!=typeof window.addEventListener||(window.addEventListener("scroll",this.listenerReference),window.addEventListener("resize",this.listenerReference),window.addEventListener("load",this.loadReference),this.isEnabled=!0)},stopDetection:function(){this.isEnabled&&"undefined"!=typeof window&&"function"==typeof window.removeEventListener&&(window.removeEventListener("scroll",this.listenerReference),window.removeEventListener("resize",this.listenerReference),window.removeEventListener("load",this.loadReference),this.isEnabled=!1)},getScrollDepth:function(){var t=null;return this.maxHeight&&this.pageHeight&&(t=Math.min(Math.trunc(this.maxHeight/this.pageHeight*100),100)),t},_loadListener:function(){if("undefined"!=typeof document){var t=document.documentElement;t&&(this.pageHeight=Math.round(t.scrollHeight,t.clientHeight,t.offsetHeight),this.maxHeight=window.innerHeight,this._updateCompletionRate())}},_changeListener:function(){if(this.pageHeight){var t=this.maxHeight;this.maxHeight=Math.max(this.maxHeight,window.pageYOffset+window.innerHeight),t!==this.maxHeight&&this._updateCompletionRate()}var e=this.video.getAdsAdapter();e&&e.flags.isStarted&&(e.getIsVisible()?e.startChronoView():e.stopChronoView())},_updateCompletionRate:function(){setTimeout(function(){this.plugin.storage.setSession("pageScrollDepth",this.getScrollDepth())}.bind(this),3e3)}});t.exports=s},245(t,e,i){var s=i(3948).extend({constructor:function(t){this.plugin=t},getAllData:function(){var t=this.getNonRandomData();return t.timestamp=this.getTimestamp(),t},getNonRandomData:function(){var t={};return t.userAgent=this.getUserAgent(),t.threads=this.getVirtualCores(),t.language=this.getLanguage(),t.langList=this.getAvailableLanguages(),t.resolution=this.getResolution(),t.colorDepth=this.getColorDepth(),t.deviceMemory=this.getMemory(),t.touchscreen=this.getTouchscreen(),t.localStorage=this.getLocalStorage(),t.sessionStorage=this.getSessionStorage(),t.cookiesAvailable=this.getCookiesAvailable(),t.flashAvailable=this.getHasFlash(),t.timeZone=this.getTimeZone(),t.plugins=this.getPluginList(),t},getUserAgent:function(){return this._getNavigatorValue("userAgent")},getVirtualCores:function(){return this._getNavigatorValue("hardwareConcurrency")},getLanguage:function(){return this._getNavigatorValue("language")},getAvailableLanguages:function(){return this._getNavigatorValue("languages")},getResolution:function(){var t=null;try{this._getNavigatorValue("screen")&&(t=navigator.screen.width.toString()+navigator.screen.height.toString())}catch(t){}return t},getColorDepth:function(){var t=null;try{this._getNavigatorValue("screen")&&(t=navigator.screen.colorDepth)}catch(t){}return t},getMemory:function(){return this._getNavigatorValue("deviceMemory")},getTouchscreen:function(){return this._getNavigatorValue("maxTouchPoints")||!1},getLocalStorage:function(){var t=!1;try{t="undefined"!=typeof localStorage}catch(t){}return t},getSessionStorage:function(){var t=!1;try{t="undefined"!=typeof sessionStorage}catch(t){}return t},getCookiesAvailable:function(){return this._getNavigatorValue("cookieEnabled")||!1},getHasFlash:function(){var t=!1;try{var e=this._getNavigatorValue("plugins");t=e&&"object"==typeof e["Shockwave Flash"]||"undefined"!=typeof window&&window.ActiveXObject&&!1!==new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){}return t},getPluginList:function(){var t=null;try{var e=this._getNavigatorValue("plugins");
2if(e&&0!==e.length){for(var i="",s=0;s<navigator.plugins.length;s++)i+=navigator.plugins[s].description+" "+navigator.plugins[s].filename+" "+navigator.plugins[s].name+" ";t=i}}catch(t){}return t},getTimeZone:function(){var t=null;try{t=(new Date).getTimezoneOffset().toString()}catch(t){}return t},getTimestamp:function(){return(new Date).getTime()},_navigatorCheck:function(){return"undefined"!=typeof navigator},_getNavigatorValue:function(t){var e=null;try{this._navigatorCheck()&&(e=navigator[t])}catch(t){}return e}});t.exports=s},5804(t,e,i){var s=i(245),n=i(3948),r=i(6777);const{default:o}=i(474);var a=n.extend({constructor:function(){this.dataExtractor=new s,this.key=this.getPreviousKey()},generateHashKey:function(){if(!this.key){var t=this.dataExtractor.getAllData();this.key=this._hashFunction(t),o.getInstance().getCoreStorage().setLocal("npawDeviceUUID",this.key)}},getKey:function(){return this.key||this.generateHashKey(),this.key},_hashFunction:function(t){var e=t;return"string"!=typeof t&&(e=JSON.stringify(t)),r(e)},_reset:function(){this.key=void 0},getPreviousKey:function(){return o.getInstance().getCoreStorage().getLocal("npawDeviceUUID")}});t.exports=a},6777(t){t.exports=function(t){function e(t,e){return t<<e|t>>>32-e}function i(t,e){var i,s,n,r,o;return n=2147483648&t,r=2147483648&e,o=(1073741823&t)+(1073741823&e),(i=1073741824&t)&(s=1073741824&e)?2147483648^o^n^r:i|s?1073741824&o?3221225472^o^n^r:1073741824^o^n^r:o^n^r}function s(t,s,n,r,o,a,c){return t=i(t,i(i(function(t,e,i){return t&e|~t&i}(s,n,r),o),c)),i(e(t,a),s)}function n(t,s,n,r,o,a,c){return t=i(t,i(i(function(t,e,i){return t&i|e&~i}(s,n,r),o),c)),i(e(t,a),s)}function r(t,s,n,r,o,a,c){return t=i(t,i(i(function(t,e,i){return t^e^i}(s,n,r),o),c)),i(e(t,a),s)}function o(t,s,n,r,o,a,c){return t=i(t,i(i(function(t,e,i){return e^(t|~i)}(s,n,r),o),c)),i(e(t,a),s)}function a(t){var e,i="",s="";for(e=0;e<=3;e++)i+=(s="0"+(t>>>8*e&255).toString(16)).substr(s.length-2,2);return i}var c,d,h,l,u,p,f,g,m,v=Array();for(v=function(t){for(var e,i=t.length,s=i+8,n=16*((s-s%64)/64+1),r=Array(n-1),o=0,a=0;a<i;)o=a%4*8,r[e=(a-a%4)/4]=r[e]|t.charCodeAt(a)<<o,a++;return o=a%4*8,r[e=(a-a%4)/4]=r[e]|128<<o,r[n-2]=i<<3,r[n-1]=i>>>29,r}(t=function(t){t=t.replace(/rn/g,"n");for(var e="",i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e+=String.fromCharCode(s):s>127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t)),p=1732584193,f=4023233417,g=2562383102,m=271733878,c=0;c<v.length;c+=16)d=p,h=f,l=g,u=m,p=s(p,f,g,m,v[c+0],7,3614090360),m=s(m,p,f,g,v[c+1],12,3905402710),g=s(g,m,p,f,v[c+2],17,606105819),f=s(f,g,m,p,v[c+3],22,3250441966),p=s(p,f,g,m,v[c+4],7,4118548399),m=s(m,p,f,g,v[c+5],12,1200080426),g=s(g,m,p,f,v[c+6],17,2821735955),f=s(f,g,m,p,v[c+7],22,4249261313),p=s(p,f,g,m,v[c+8],7,1770035416),m=s(m,p,f,g,v[c+9],12,2336552879),g=s(g,m,p,f,v[c+10],17,4294925233),f=s(f,g,m,p,v[c+11],22,2304563134),p=s(p,f,g,m,v[c+12],7,1804603682),m=s(m,p,f,g,v[c+13],12,4254626195),g=s(g,m,p,f,v[c+14],17,2792965006),p=n(p,f=s(f,g,m,p,v[c+15],22,1236535329),g,m,v[c+1],5,4129170786),m=n(m,p,f,g,v[c+6],9,3225465664),g=n(g,m,p,f,v[c+11],14,643717713),f=n(f,g,m,p,v[c+0],20,3921069994),p=n(p,f,g,m,v[c+5],5,3593408605),m=n(m,p,f,g,v[c+10],9,38016083),g=n(g,m,p,f,v[c+15],14,3634488961),f=n(f,g,m,p,v[c+4],20,3889429448),p=n(p,f,g,m,v[c+9],5,568446438),m=n(m,p,f,g,v[c+14],9,3275163606),g=n(g,m,p,f,v[c+3],14,4107603335),f=n(f,g,m,p,v[c+8],20,1163531501),p=n(p,f,g,m,v[c+13],5,2850285829),m=n(m,p,f,g,v[c+2],9,4243563512),g=n(g,m,p,f,v[c+7],14,1735328473),p=r(p,f=n(f,g,m,p,v[c+12],20,2368359562),g,m,v[c+5],4,4294588738),m=r(m,p,f,g,v[c+8],11,2272392833),g=r(g,m,p,f,v[c+11],16,1839030562),f=r(f,g,m,p,v[c+14],23,4259657740),p=r(p,f,g,m,v[c+1],4,2763975236),m=r(m,p,f,g,v[c+4],11,1272893353),g=r(g,m,p,f,v[c+7],16,4139469664),f=r(f,g,m,p,v[c+10],23,3200236656),p=r(p,f,g,m,v[c+13],4,681279174),m=r(m,p,f,g,v[c+0],11,3936430074),g=r(g,m,p,f,v[c+3],16,3572445317),f=r(f,g,m,p,v[c+6],23,76029189),p=r(p,f,g,m,v[c+9],4,3654602809),m=r(m,p,f,g,v[c+12],11,3873151461),g=r(g,m,p,f,v[c+15],16,530742520),p=o(p,f=r(f,g,m,p,v[c+2],23,3299628645),g,m,v[c+0],6,4096336452),m=o(m,p,f,g,v[c+7],10,1126891415),g=o(g,m,p,f,v[c+14],15,2878612391),f=o(f,g,m,p,v[c+5],21,4237533241),p=o(p,f,g,m,v[c+12],6,1700485571),m=o(m,p,f,g,v[c+3],10,2399980690),g=o(g,m,p,f,v[c+10],15,4293915773),f=o(f,g,m,p,v[c+1],21,2240044497),p=o(p,f,g,m,v[c+8],6,1873313359),m=o(m,p,f,g,v[c+15],10,4264355552),g=o(g,m,p,f,v[c+6],15,2734768916),f=o(f,g,m,p,v[c+13],21,1309151649),p=o(p,f,g,m,v[c+4],6,4149444226),m=o(m,p,f,g,v[c+11],10,3174756917),g=o(g,m,p,f,v[c+2],15,718787259),f=o(f,g,m,p,v[c+9],21,3951481745),p=i(p,d),f=i(f,h),g=i(g,l),m=i(m,u);return(a(p)+a(f)+a(g)+a(m)).toLowerCase()}},1593(t,e,i){var s=i(3948),n=i(2467),r=s.extend({on:function(t,e){if(this._listeners=this._listeners||{},"function"==typeof e)return this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(e),this},off:function(t,e){if(this._listeners=this._listeners||{},this._listeners[t]){var i=this._listeners[t].indexOf(e);-1!==i&&this._listeners[t].splice(i,1)}return this},emit:function(t,e){return this._listeners=this._listeners||{},e=e||{},n(this._listeners[t])&&this._listeners[t].forEach(this._eachCallback.bind(this,t,e)),n(this._listeners["*"])&&this._listeners["*"].forEach(this._eachCallback.bind(this,t,e)),this}
2,_eachCallback:function(t,e,i){"function"==typeof i&&i({type:t,data:e,target:this})}});t.exports=r},4173(t){t.exports=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e}},9600(t){var e=function(){};t.exports=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}},2467(t){t.exports=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},2101(t,e,i){var s=i(3948),n=i(9474),r=s.extend({constructor:function(t){if(this.appAnalytics=t,this.timeObject=void 0,this.playerSetup=void 0,this.myTimesObject={},this.perfObject=void 0,this._timingsReady=!1,this._cachedValues=null,this._loadTimesSent=!1,this._windowLoadHandled=!1,this._sessionStartHooked=!1,"undefined"!=typeof window){if(window.performance&&window.performance.timing){try{"function"==typeof window.performance.getEntriesByType&&(this.perfObject=window.performance)}catch(t){}this.timeObject=window.performance.timing}this._scheduleWindowLoaded()}try{if("function"==typeof PerformanceObserver){const t=new PerformanceObserver((t,e)=>{const i=t.getEntries();this.myTimesObject.largestContentfulPaint=i[i.length-1].renderTime});PerformanceObserver.supportedEntryTypes.indexOf("largest-contentful-paint")>-1&&t.observe({entryTypes:["largest-contentful-paint"]})}}catch(t){}this._hookOnSessionStart()},_scheduleWindowLoaded:function(){"undefined"!=typeof document&&"complete"===document.readyState?setTimeout(this._windowLoaded.bind(this),0):"function"==typeof window.addEventListener&&window.addEventListener("load",this._windowLoaded.bind(this))},_windowLoaded:function(){this._windowLoadHandled||(this._windowLoadHandled=!0,this.myTimesObject.onLoad=(new Date).getTime(),this._getEnoughFPS(),setTimeout(this._fireLoadTimesEvent.bind(this),1e3))},_fireLoadTimesEvent:function(){this._getLastMetrics(),this._timingsReady||(this._cachedValues=this._getAllValues(),this._timingsReady=!0),this._tryFireLoadTimes()},_hookOnSessionStart:function(){if(!this._sessionStartHooked)try{this.appAnalytics&&"function"==typeof this.appAnalytics.onSessionStart&&(this.appAnalytics.onSessionStart(this._tryFireLoadTimes.bind(this)),this._sessionStartHooked=!0)}catch(t){}},_tryFireLoadTimes:function(){this._loadTimesSent||this._timingsReady&&this._cachedValues&&this.appAnalytics&&this.appAnalytics.isActive()&&this.appAnalytics.isStarted()&&(this.appAnalytics.fireEvent("loadTimes",{},this._cachedValues),this._loadTimesSent=!0)},_getAllValues:function(){const t={PageLoadTime:this.getPageLoadTime(),DNSTime:this.getDnsTime(),TCPTime:this.getTcpTime(),HandshakeTime:this.getHandshakeTime(),DomReadyTime:this.getDomReadyTime(),BackendTime:this.getBackendTime(),FrontendTime:this.getFrontendTime(),VisualReady:this.getTimeToVisuallyReady(),TimeToInteractive:this.getTimeToInteractive(),JsTime:this.getJSTime(),CssTime:this.getCSSTime(),ImageTime:this.getImageTime(),FontTime:this.getFontTime(),AvgReqLatency:this.getAvgReqLatency(),MaxReqLatency:this.getMaxReqLatency(),FirstPaint:this.getFirstPaint(),FirstContentfulPaint:this.getFirstContentfulPaint(),LargestContentfulPaint:this.getLargestContentfulPaint(),SpeedIndex:this.getSpeedIndex()};for(const e in t)null===t[e]||void 0===t[e]||t[e]<0?delete t[e]:t[e]=Math.round(t[e]);return t},getPageLoadTime:function(){let t;return this.timeObject&&(t=this.timeObject.loadEventEnd-this.timeObject.navigationStart),t},getPlayerStartupTime:function(){let t;return this.timeObject&&this.playerSetup&&(t=this.playerSetup-this.timeObject.navigationStart),t},getDnsTime:function(){let t;return this.timeObject&&(t=this.timeObject.domainLookupEnd-this.timeObject.domainLookupStart),t},getTcpTime:function(){let t;return this.timeObject&&(t=this.timeObject.connectEnd-this.timeObject.connectStart),t},getHandshakeTime:function(){let t;return this.timeObject&&this.timeObject.secureConnectionStart&&(t=this.timeObject.connectEnd-this.timeObject.secureConnectionStart),t},getDomReadyTime:function(){let t;return this.timeObject&&(t=this.timeObject.domComplete-this.timeObject.navigationStart),t},getBackendTime:function(){let t;return this.timeObject&&(t=this.timeObject.responseStart-this.timeObject.navigationStart),t},getFrontendTime:function(){let t;return this.timeObject&&(t=this.myTimesObject.onLoad-this.timeObject.responseStart),t},getTimeToVisuallyReady:function(){const t=this.myTimesObject.firstPaint||0;return this.timeObject?Math.max(t,this.timeObject.domContentLoadedEventEnd-this.timeObject.navigationStart||0):t||void 0},getTimeToInteractive:function(){if(this.myTimesObject.fps&&this.getTimeToVisuallyReady())return Math.max(this.myTimesObject.fps,this.getTimeToVisuallyReady());setTimeout(()=>{this.getTimeToInteractive()},500)},getJSTime:function(){return this._getXTime("script")},getCSSTime:function(){return this._getXTime("css")},getImageTime:function(){return this._getXTime("img")},getFontTime:function(){return this._getXTime("css",[".woff",".otf",".ttf"])},getAvgReqLatency:function(){try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){let e=0,i=0;const s=this.perfObject.getEntriesByType("resource");for(var t in s)s[t].requestStart&&s[t].responseStart&&(i+=s[t].responseStart-s[t].requestStart),e++;return i/e}}catch(t){}},getFirstPaint:function(){return this.myTimesObject?this.myTimesObject.firstPaint:void 0},getFirstContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.firstContentfulPaint:void 0},getLargestContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.largestContentfulPaint:void 0},getMaxReqLatency:function(){try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){const t=this.perfObject.getEntriesByType("resource");let e=0;for(const i in t)t[i].requestStart&&t[i].responseStart&&(e=Math.max(e,t[i].responseStart-t[i].requestStart));return e}}catch(t){}},getSpeedIndex:function(){let t;if("undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.getEntriesByType)try{t=n()}catch(t){}return t},_getXTime:function(t,e){let i=0;try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){const n=this.perfObject.getEntriesByType("resource");for(const r in n)if(n[r].initiatorType===t)if(e){let t=!1;for(var s in e)n[r].name.indexOf(e[s]>0)&&(t=!0);t&&(i+=n[r].duration)}else i+=n[r].duration}}catch(t){}return Math.round(i)||void 0},_getLastMetrics:function(){let t,e;try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){const i=this.perfObject.getEntriesByType("paint");for(const s in i)"first-paint"===i[s].name?t=i[s].startTime:"first-contentful-paint"===i[s].name&&(e=i[s].startTime)}}catch(t){}!t&&this.timeObject&&(t=this.timeObject.msFirstPaint-this.timeObject.navigationStart),this.myTimesObject.firstPaint=t,this.myTimesObject.firstContentfulPaint=e,this.getTimeToInteractive()},_getEnoughFPS:function(){if(!this.timeObject||"undefined"==typeof window)return!0;{const t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(){};this.preFPS=(new Date).getTime(),t(()=>{const t=(new Date).getTime();t<this.preFPS+50?this.myTimesObject.fps=t-this.timeObject.navigationStart:setTimeout(()=>this._getEnoughFPS(),50)})}},setPlayerSetupTime:function(){this.playerSetup=this.playerSetup||(new Date).getTime()}});t.exports=r},2995(t,e,i){var s=i(3948).extend({getCdnTraffic:function(){let t;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn)t=CdnBalancerStats.cdn.totalDownloadedBytes;else if("undefined"!=typeof Streamroot)t=this._getStreamrootPeerObject("cdn",!1)||this._getStreamrootInstanceObject("cdnDownload");else if("undefined"!=typeof peer5&&peer5.getStats)t=peer5.getStats().totalHttpDownloaded;else if("undefined"!=typeof teltoo&&teltoo.getStats){var e=teltoo.getStats();t=e.totalReceivedBytes-e.p2pReceivedBytes}return t},getMultiCdnInfo:function(){let t;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn&&CdnBalancerStats.cdn.cdns){const e=CdnBalancerStats.p2p;t={P2P:{downloaded_bytes:e.downloadedBytes,uploaded_bytes:e.uploadedBytes,downloaded_chunks:e.downloadedSegments,uploaded_chunks:e.uploadedSegments,errors:e.failedRequests?e.failedRequests.total:0,missed_downloaded_chunks:e.failedRequests?e.failedRequests.absent:0,timeout_errors:e.failedRequests?e.failedRequests.timeout:0,other_errors:e.failedRequests?e.failedRequests.error:0,late_uploaded_chunks:e.discardedUploadedSegments,late_uploaded_bytes:e.discardedUploadedBytes,late_downloaded_bytes:e.discardedDownloadedBytes,time:e.downloadMillis,active_peers:e.activePeers,peers:e.totalPeers}},CdnBalancerStats.cdn.cdns.forEach(function(e){t[e.name]={downloaded_bytes:e.bytes,downloaded_chunks:e.chunks,errors:e.failures,time:e.downloadMillis}})}return t},getSegmentDuration:function(){if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.segmentDuration)return CdnBalancerStats.segmentDuration},getBalancerResponseId:function(){if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn)return CdnBalancerStats.cdn.responseUUID},getP2PTraffic:function(){let t;return"undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p?t=CdnBalancerStats.p2p.downloadedBytes:"undefined"!=typeof Streamroot?t=this._getStreamrootPeerObject("p2p",!0)||this._getStreamrootInstanceObject("dnaDownload"):"undefined"!=typeof peer5&&peer5.getStats?t
2=peer5.getStats().totalP2PDownloaded:"undefined"!=typeof teltoo&&teltoo.getStats&&(t=teltoo.getStats().p2pReceivedBytes),t},getUploadTraffic:function(){let t;return"undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p?t=CdnBalancerStats.p2p.uploadedBytes:"undefined"!=typeof Streamroot?t=this._getStreamrootPeerObject("upload",!0)||this._getStreamrootInstanceObject("dnaUpload"):"undefined"!=typeof peer5&&peer5.getStats&&(t=peer5.getStats().totalP2PUploaded),t},getIsP2PEnabled:function(){let t=!1;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p)t=CdnBalancerStats.p2p.downloadEnabled;else if("undefined"!=typeof Streamroot)if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(var e in Streamroot.peerAgents)t=t||Streamroot.peerAgents[e].isP2PEnabled;else Streamroot.instances&&Streamroot.instances.forEach(function(e){t=t||e.dnaDownloadEnabled||e.dnaUploadEnabled});else"undefined"!=typeof peer5&&peer5.isEnabled?t=peer5.isEnabled():"undefined"!=typeof teltoo&&(t=!0);return t},_getStreamrootPeerObject:function(t,e){let i="";if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(const s in Streamroot.peerAgents){const n=Streamroot.peerAgents[s];!n.stats||e&&!n.isP2PEnabled||(i+=n.stats[t])}return i.length>0?i:void 0},_getStreamrootInstanceObject:function(t){let e="";return Streamroot.instances&&Streamroot.instances.forEach(function(i){i.stats&&i.stats.currentContent&&(e+=i.stats.currentContent[t])}),e.length>0?e:void 0}});t.exports=s},9474(t){var e=function(t){var i,s,n=(t=t||window).document,r=function(e){var i=!1;if(e.getBoundingClientRect){var s=e.getBoundingClientRect();(i={top:Math.max(s.top,0),left:Math.max(s.left,0),bottom:Math.min(s.bottom,t.innerHeight||n.documentElement.clientHeight),right:Math.min(s.right,t.innerWidth||n.documentElement.clientWidth)}).bottom<=i.top||i.right<=i.left?i=!1:i.area=(i.bottom-i.top)*(i.right-i.left)}return i},o=function(t,e){if(e){var i=r(t);i&&a.push({url:e,area:i.area,rect:i})}},a=[],c=[];try{var d=t.performance.timing.navigationStart;!function(){for(var i=n.getElementsByTagName("*"),s=/url\(.*(http.*)\)/gi,c=0;c<i.length;c++){var d=i[c],h=t.getComputedStyle(d);if("IMG"===d.tagName&&o(d,d.src),h["background-image"]){s.lastIndex=0;var l=s.exec(h["background-image"]);l&&l.length>1&&o(d,l[1].replace('"',""))}if("IFRAME"===d.tagName)try{var u=r(d);if(u){var p=e(d.contentWindow);p&&a.push({tm:p,area:u.area,rect:u})}}catch(t){}}}(),function(){for(var e={},i=t.performance.getEntriesByType("resource"),s=0;s<i.length;s++)e[i[s].name]=i[s].responseEnd;for(var n=0;n<a.length;n++)"tm"in a[n]||(a[n].tm=void 0!==e[a[n].url]?e[a[n].url]:0)}(),function(){"msFirstPaint"in t.performance.timing&&(i=t.performance.timing.msFirstPaint-d);for(var e=t.performance.getEntriesByType("paint"),s=0;s<e.length;s++)"first-paint"===e[s].name&&(i=e[s].startTime);if(void 0===i||i<0||i>12e4){i=t.performance.timing.responseStart-d;for(var r={},o=n.getElementsByTagName("head")[0].children,a=0;a<o.length;a++){var c=o[a];"SCRIPT"===c.tagName&&c.src&&!c.async&&(r[c.src]=!0),"LINK"===c.tagName&&"stylesheet"===c.rel&&c.href&&(r[c.href]=!0)}for(var h=t.performance.getEntriesByType("resource"),l=!1,u=0;u<h.length;u++)if(l||!r[h[u].name]||"script"!==h[u].initiatorType&&"link"!==h[u].initiatorType)l=!0;else{var p=h[u].responseEnd;(void 0===i||p>i)&&(i=p)}}i=Math.max(i,0)}(),function(){for(var e={0:0},s=0,r=0;r<a.length;r++){var o=i;"tm"in a[r]&&a[r].tm>i&&(o=a[r].tm),void 0===e[o]&&(e[o]=0),e[o]+=a[r].area,s+=a[r].area}var d=Math.max(n.documentElement.clientWidth,t.innerWidth||0)*Math.max(n.documentElement.clientHeight,t.innerHeight||0);if(d>0&&(d=.1*Math.max(d-s,0),void 0===e[i]&&(e[i]=0),e[i]+=d,s+=d),s){for(var h in e)e.hasOwnProperty(h)&&c.push({tm:h,area:e[h]});c.sort(function(t,e){return t.tm-e.tm});for(var l=0,u=0;u<c.length;u++)l+=c[u].area,c[u].progress=l/s}}(),function(){if(c.length){s=0;for(var t=0,e=0,n=0;n<c.length;n++){var r=c[n].tm-t;r>0&&e<1&&(s+=(1-e)*r),t=c[n].tm,e=c[n].progress}}else s=i}()}catch(t){}return s};t.exports=e},6014(t,e,i){var s=n,n={noConflict:function(){return n=s,this}};n.VERSION=i(9835),n.polyfills=i(4607),n.polyfills(),n.Object=i(3948),n.Emitter=i(1593);const{default:r}=i(7276);n.Log=r,n.Log.loadLevelFromUrl(),n.Util=i(2507),n.HybridNetwork=i(2995),n.Chrono=i(7680),n.Timer=i(4954),n.Constants=i(3782),n.Transform=i(2503),n.ResourceTransform=i(1151),n.CdnParser=i(3908),n.HlsParser=i(3168),n.DashParser=i(3831),n.LocationheaderParser=i(1657),n.Options=i(7061),n.Plugin=i(1527),n.Storage=i(470),n.RequestBuilder=i(2071),n.PlayheadMonitor=i(3381),n.Adapter=i(5292),n.adapters={}
2,n.BackgroundDetector=i(9773),n.DeviceDetector=i(2635),n.UUIDGenerator=i(5804),n.registerAdapter=function(t,e){this.adapters[t]=e}.bind(n),n.unregisterAdapter=function(t){this.adapters[t]=null}.bind(n),t.exports=n},3948(t,e,i){var s=i(4173),n=i(9600),r=function(){};r.prototype={constructor:function(){}},r.extend=function(t,e){var i,r=this;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return r.apply(this,arguments)},s(i,r,e),i.prototype=n(r.prototype),t&&s(i.prototype,t),i.prototype.constructor=i,i.__super__=r.prototype,i},t.exports=r},3455(t,e,i){var s=i(3948),n=i(470),r=s.extend({constructor:function(){this.storage=new n("npawOffline",!0),this.actualView=null,this.viewList=[],this.givenIds=[],this._getOldViewList()},_newView:function(){var t=this._getValidId();this.storage.setLocal(t,""),this.viewList.push(t),this.storage.setLocal("views",this.viewList),this.actualView=t},addEvent:function(t,e){if("/start"===t&&this._newView(),"/init"===t)return null;if(!this.actualView)return null;var i='{"request":"'+t.slice(1)+'",';for(var s in i+='"unixtime":'+Date.now()+",",e){if(void 0===e[s])break;i+='"'+s+'":',"code"===s?i+='"CODE_PLACEHOLDER",':"sessionId"===s?i+='"SESSION_PLACEHOLDER",':"sessionRoot"===s?i+='"ROOT_PLACEHOLDER",':"string"==typeof e[s]?i+='"'+e[s]+'",':"object"==typeof e[s]?i+='"'+JSON.stringify(e[s]).replace(/"/g,'\\"')+'",':i+=e[s]+","}i=i.slice(0,-1),i+="}";var n=this.storage.getLocal(this.actualView);""!==n&&(n+=","),this.storage.setLocal(this.actualView,n+i)},getView:function(){if(this.viewList.length>this.givenIds.length)for(var t=0;;){var e=this.viewList[t];if(this.givenIds.indexOf(e)<0)return this.givenIds.push(e),["["+this.storage.getLocal(e)+"]",e];t++}return[null,null]},removeView:function(t){this.storage.removeLocal(t);var e=this.viewList.indexOf(t);-1!==e&&this.viewList.splice(e,1),-1!==(e=this.givenIds.indexOf(t))&&this.givenIds.splice(e,1),this.storage.setLocal("views",this.viewList.toString()),t===this.actualView&&(this.actualView=null)},_getOldViewList:function(){var t="";this.storage.getLocal("views")?t=this.storage.getLocal("views"):this.storage.setLocal("views",""),""===t?this.viewList=[]:"function"==typeof t.split&&(this.viewList=t.split(","))},_getValidId:function(){var t=Math.floor(1e8*Math.random()).toString();return this.viewList.indexOf(t)>=0?this._getValidId():t},sent:function(){this.givenIds=[]}});t.exports=r},6939(t){"use strict";t.exports=function(t){t["ad.metadata"]={},t["ad.campaign"]=void 0,t["ad.creativeId"]=void 0,t["ad.provider"]=void 0,t["ad.resource"]=void 0,t["ad.title"]=void 0,t["ad.duration"]=void 0,t["ad.expectedPattern"]=void 0,t["ad.givenAds"]=void 0,t["ad.breaksTime"]=void 0,t["ad.expectedBreaks"]=void 0,t["ad.givenBreaks"]=void 0,t["ad.ignore"]=!1,t["ad.blockerDetected"]=void 0,t["ad.postRollTimeout"]=1e3,t["ad.customDimension.1"]=void 0,t["ad.customDimension.2"]=void 0,t["ad.customDimension.3"]=void 0,t["ad.customDimension.4"]=void 0,t["ad.customDimension.5"]=void 0,t["ad.customDimension.6"]=void 0,t["ad.customDimension.7"]=void 0,t["ad.customDimension.8"]=void 0,t["ad.customDimension.9"]=void 0,t["ad.customDimension.10"]=void 0}},3147(t){"use strict";t.exports=function(t){t["app.name"]=void 0,t["app.releaseVersion"]=void 0,t["app.https"]=!0}},9796(t){"use strict";t.exports=function(t){t["background.enabled"]=!0,t["background.settings"]=void 0,t["background.settings.android"]="stop",t["background.settings.iOS"]="stop",t["background.settings.desktop"]=void 0,t["background.settings.tv"]="stop",t["background.settings.playstation"]="stop"}},929(t){"use strict";t.exports=function(t){t["content.transactionCode"]=void 0,t["content.resource"]=void 0,t["content.isLive"]=void 0,t["content.isLive.noSeek"]=!1,t["content.isLive.noMonitor"]=!1,t["content.title"]=void 0,t["content.program"]=void 0,t["content.duration"]=void 0,t["content.fps"]=void 0,t["content.segmentDuration"]=void 0,t["content.bitrate"]=void 0,t["content.totalBytes"]=void 0,t["content.sendTotalBytes"]=!1,t["content.throughput"]=void 0,t["content.rendition"]=void 0,t["content.cdn"]=void 0,t["content.cdnNode"]=void 0,t["content.cdnType"]=void 0,t["content.metadata"]={},t["content.metrics"]={},t["content.streamingProtocol"]=void 0,t["content.transportFormat"]=void 0,t["content.package"]=void 0,t["content.saga"]=void 0,t["content.tvShow"]=void 0,t["content.season"]=void 0,t["content.episodeTitle"]=void 0,t["content.channel"]=void 0,t["content.id"]=void 0,t["content.imdbId"]=void 0,t["content.gracenoteId"]=void 0,t["content.type"]=void 0,t["content.genre"]=void 0,t["content.language"]=void 0,t["content.autodetect.language"]=!0,t["content.subtitles"]=void 0,t["content.autodetect.subtitles"]=!0,t["content.contractedResolution"]=void 0,t["content.cost"]=void 0,t["content.price"]=void 0,t["content.playbackType"]=void 0,t["content.drm"]=void 0,t["content.encoding.videoCodec"]=void 0,t["content.encoding.audioCodec"]=void 0,t["content.encoding.codecSett
2ings"]=void 0,t["content.encoding.codecProfile"]=void 0,t["content.encoding.containerFormat"]=void 0,t["content.customDimensions"]={},t["content.customDimension.1"]=void 0,t["content.customDimension.2"]=void 0,t["content.customDimension.3"]=void 0,t["content.customDimension.4"]=void 0,t["content.customDimension.5"]=void 0,t["content.customDimension.6"]=void 0,t["content.customDimension.7"]=void 0,t["content.customDimension.8"]=void 0,t["content.customDimension.9"]=void 0,t["content.customDimension.10"]=void 0,t["content.customDimension.11"]=void 0,t["content.customDimension.12"]=void 0,t["content.customDimension.13"]=void 0,t["content.customDimension.14"]=void 0,t["content.customDimension.15"]=void 0,t["content.customDimension.16"]=void 0,t["content.customDimension.17"]=void 0,t["content.customDimension.18"]=void 0,t["content.customDimension.19"]=void 0,t["content.customDimension.20"]=void 0}},9493(t){"use strict";t.exports=function(t,{RequestMethod:e}){t.enabled=!0,t.authToken=void 0,t.authType="Bearer",t.preventZombieViews=!0,t.offline=!1,t.referer=void 0,t.referral=void 0,t.disableCookies=!0,t.forceCookies=!1,t.disableStorage=!1,t.maxWaitingRequests=25,t.userId=void 0,t.profileId=void 0,t.forceInit=!1,t["
2joinTime.measureAfterAdBreak"]=!0,t.simpleNewSession=!1,t["session.metrics"]={},t["session.context"]=!1,t["errors.fatal"]=[],t["errors.nonFatal"]=[],t["errors.ignore"]=[],t["pause.ignoreSmallEvents"]=!0,t["check.playerExists"]=!0,t["check.appAnalytics.autoBegin"]=!1,t["check.appAnalytics.enabled"]=!0,t["debug.playerLogs.enabled"]=!1,t["debug.pluginLogs.enabled"]=!1,t["check.videoAnalytics.enabled"]=!0,t["lma.refresh.configuration.enabled"]=!1,t["lma.refresh.configuration.seconds"]=300,t.linkedViewId=void 0,t.waitForMetadata=!1,t["waitForMetadata.timeout.milliseconds"]=1e4,t.pendingMetadata=[],t.method=e.POST,t["playhead.monitor"]=!0,t["readyState.monitor"]=!0,t["adapters.overwrite"]=!1,t["adapters.templates"]={},t["adapters.properties"]={},t.enableExtraMetricCollection=!1,t.renditionQueryInterval=250,t.enableLegacyBufferBehaviour=!1,t.ignoreSeekInTimeUpdate=!1,t.checkVideoBufferInPlayheadMonitor=!1}},4671(t,e,i){var s=i(3948);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o=s.extend({exists:function(t){return o.Dictionary.hasOwnProperty(t)},getNewName:function(t){var e=o.Dictionary[t];return n.warn(r,'The option "'+t+'" is deprecated, use "'+e+'" instead'),e}},{Dictionary:{httpSecure:"app.https",username:"user.name",anonymousUser:"user.anonymousId",obfuscateIp:"user.obfuscateIp",userType:"user.type","content.title2":"content.program","background.settings.iphone":"background.settings.iOS","parse.hls":"parse.manifest","parse.dash":"parse.manifest","parse.locationHeader":"parse.manifest","extraparam.1":"content.customDimension.1","extraparam.2":"content.customDimension.2","extraparam.3":"content.customDimension.3","extraparam.4":"content.customDimension.4","extraparam.5":"content.customDimension.5","extraparam.6":"content.customDimension.6","extraparam.7":"content.customDimension.7","extraparam.8":"content.customDimension.8","extraparam.9":"content.customDimension.9","extraparam.10":"content.customDimension.10","extraparam.11":"content.customDimension.11","extraparam.12":"content.customDimension.12","extraparam.13":"content.customDimension.13","extraparam.14":"content.customDimension.14","extraparam.15":"content.customDimension.15","extraparam.16":"content.customDimension.16","extraparam.17":"content.customDimension.17","extraparam.18":"content.customDimension.18","extraparam.19":"content.customDimension.19","extraparam.20":"content.customDimension.20","ad.extraparam.1":"ad.customDimension.1","ad.extraparam.2":"ad.customDimension.2","ad.extraparam.3":"ad.customDimension.3","ad.extraparam.4":"ad.customDimension.4","ad.extraparam.5":"ad.customDimension.5","ad.extraparam.6":"ad.customDimension.6","ad.extraparam.7":"ad.customDimension.7","ad.extraparam.8":"ad.customDimension.8","ad.extraparam.9":"ad.customDimension.9","ad.extraparam.10":"ad.customDimension.10"}});t.exports=o},4830(t){"use strict";t.exports=function(t){t["device.id"]=void 0,t["device.code"]=void 0,t["device.model"]=void 0,t["device.brand"]=void 0,t["device.type"]=void 0,t["device.name"]=void 0,t["device.osName"]=void 0,t["device.osVersion"]=void 0,t["device.browserName"]=void 0,t["device.browserVersion"]=void 0,t["device.browserType"]=void 0,t["device.browserEngine"]=void 0,t["device.EDID"]=void 0,t["device.isAnonymous"]=!1}},1280(t){"use strict";t.exports=function(t){t["network.ip"]=void 0,t["network.isp"]=void 0,t["network.connectionType"]=void 0}},8859(t){"use strict";t.exports=function(t){t["parse.manifest"]=!1,t["parse.cdnParser.get"]=!1,t["parse.manifest.lastChunk"]=!1,t["parse.locationHeader.get"]=!1,t["parse.manifest.auth"]={},t["parse.cdnNameHeader"]=["x-cdn-forward"],t["parse.cdnNodeHeader"]="",t["parse.cdnNode"]=!1,t["parse.cdnNode.list"]=["Akamai","Amazon","Cloudfront","Level3","Fastly","Highwinds","Telefonica","Edgecast","NosOtt"],t["parse.fdsResponseHost"]=void 0,t["parse.cdnSwitchHeader"]=!1,t["parse.cdnTTL"]=60}},3813(t){"use strict";t.exports=function(t){t["smartswitch.configCode"]=void 0,t["smartswitch.groupCode"]=void 0,t["smartswitch.contractCode"]=void 0}},8461(t){"use strict";t.exports=function(t){t["user.email"]=void 0,t["user.type"]=void 0,t["user.name"]=void 0,t["user.obfuscateIp"]=!1,t["user.anonymousId"]=void 0,t["user.privacyProtocol"]=void 0}}
2,7061(t,e,i){"use strict";const s=i(3948),n=i(4671),{default:r}=i(7276),o=i(7939),a=i(8472),c=i(9637),d=i(9493),h=i(8461),l=i(8859),u=i(1280),p=i(4830),f=i(929),g=i(6939),m=i(3147),v=i(9796),y=i(3813),{AnalyticsTag:S}=i(2784);var _=s.extend({constructor:function(t){d(this,{RequestMethod:c}),h(this),l(this),u(this),p(this),f(this),g(this),m(this),v(this),y(this),this.setOptions(t)},setOptions:function(t,e,i=!1){let s,o=!1;if(void 0===e&&(e=this,o=!0,s=new n),void 0!==t)for(var a in t){let n,c=!1;o&&(this.hasOwnProperty(a)||(s.exists(a)?(n=s.getNewName(a),c=!0):"function"!=typeof t[a]&&r.warn(S,'The option "'+a+'" does not exist, so it cannot be set'))),i||"object"==typeof e[a]&&void 0!==e[a]&&!Array.isArray(e[a])&&"parse.cdnNode.list"===a?this.setOptions(t[a],e[a]):c?e[n]=t[a]:e[a]=t[a]}},setExtraParams:function(t){if("object"==typeof t&&t.length){for(t.length>=20&&(t=t.slice(0,20));t.length<20;)t.push(void 0);t.forEach((t,e)=>{this["content.customDimension."+(e+1).toString()]=t})}},setCustomDimensions:function(){_.prototype.setExtraParams.apply(this,arguments)},setAdExtraParams:function(t){if("object"==typeof t&&t.length){for(t.length>=10&&(t=t.slice(0,10));t.length<10;)t.push(void 0);t.forEach((t,e)=>{this["ad.customDimension."+(e+1).toString()]=t})}},setAdCustomDimensions:function(){_.prototype.setAdExtraParams.apply(this,arguments)},setEnableLegacyBufferBehaviour:function(){_.prototype.setEnableLegacyBufferBehaviour.apply(this,arguments)}},{StreamingProtocol:a,TransportFormat:o,RequestMethod:c});t.exports=_,t.exports.default=_},1527(t,e,i){var s=i(1593),n=i(3782),r=i(2507);const{default:o}=i(7276);var a=i(3199);const{default:c}=i(6075);var d=i(7061),h=i(470),l=(i(3455),i(2071)),u=i(1151),p=i(2101),f=i(9773),g=i(2635),m=i(5804);const{default:v}=i(3555),{Method:y,AnalyticsTag:S,BalancerTag:_}=i(2784),{default:b}=i(474),{default:T}=i(61),{default:w}=i(1577),{default:E}=i(1146);var A=s.extend({constructor:function(t,e,s,n){if(A.instance)return s&&(this.commonGetters||(this.commonGetters=new E(this.options)),o.notice(S,"Set Options for already existing instance"),A.instance.setOptions(s),A.instance.storage.updateStorageOptions(A.instance.options.disableCookies,A.instance.options.forceCookies,A.instance.options.disableStorage)),n&&(o.notice(S,"Set Adapter for already existing instance"),A.instance.setAdapter(n)),o.warn(S,"Only a single plugin instance can be created on npaw context"),A.instance;this.options=new d(s),this._checkOptionsValues(s),this.commonGetters||(this.commonGetters=new E(this.options)),this.storage=new h(null,this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.utils=i(2507),this.uuidGenerator=new m,this.videos=new a(this),this.analyticsRequestHandler=new c(this),this.adapterTemplates={},this.requestBuilder=new l,this.resourceTransform=new u(this),this.lastEventTime=null,this.browserLoadTimes=new p(t),this.deviceDetector=new g,this.backgroundDetector=new f(this,e),this.options["background.enabled"]&&this.backgroundDetector.startDetection(),n&&this.setAdapter(n),this._logInitPluginEvent(s),navigator&&navigator.userAgentData&&"Windows"===navigator.userAgentData.platform&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then(t=>{"Windows"===navigator.userAgentData.platform&&(this.majorPlatformVersion=parseInt(t.platformVersion.split(".")[0]))}),A.instance=this,this.fetchTvDeviceModelInfo()},addOnWillSendRequestListener(t){this.analyticsRequestHandler.onWillSendVideoRequestListeners.push(t)},removeOnWillSendRequestListener(t){this.analyticsRequestHandler.onWillSendVideoRequestListeners=this.analyticsRequestHandler.onWillSendVideoRequestListeners.filter(e=>e!==t)},destroy:function(){this.videos.removeAllAdapters(),this.videos.videos={}},_setAdapterTemplates:function(t){this.adapterTemplates=t},_receiveConfiguration:function(t){try{if(t.target.response.configurationOptions){var e=t.target.response.configurationOptions;this.options.setOptions(e,this.options),this.videos.updateAllOptions(e)}this.isRefreshLMAConfigurationEnabled()&&this.fastDataTransform&&this.fastDataTransform._createConfigurationInterval()}catch(t){o.debug(S,"Error receiving configuration:",t)}},_reset:function(t){this.videos.resetVideo(t)},setOptions:function(t){if(this._logSetOptionsEvent(t),t){"boolean"==typeof t["parse.manifest"]&&t["parse.manifest"]&&(t.waitForMetadata=!0,t.pendingMetadata||(t.pendingMetadata=[]),t.pendingMetadata.push("parsedResource")),Ob
2ject.assign(this.options,t),this.storage.updateStorageOptions(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage);for(const e of this.videos.getVideoKeys())this.setVideoOptions(t,e);0===this.videos.getVideoKeys().length&&this._checkOptionsValues(this.options)}b.getInstance().registerCommonVariable(T.Products.VIDEO_ANALYTICS,T.AnalyticsVariables.METHOD_OPTION,w.methodFromString(t.method)),b.getInstance().registerCommonVariable(T.Products.DEVICE_ANALYTICS,T.DeviceVariables.APP_ANALYTICS_DEVICE_STRING,this.getDeviceInfoString())},setVideoOptions:function(t,e){if(e=e||"default",t&&e&&this.videos.existsVideo(e)&&Object.keys(t).length>0){const i=this.videos.getVideo(e);i&&(i.setVideoOptions(t),Object.assign(i.options,t),this._checkOptionsValues(i.options))}},updateCustomMetrics:function(t,e){e=e||"default",t&&this.videos.existsVideo(e)&&Object.keys(t).length>0&&this.videos.getVideo(e).updateCustomMetrics(t)},disable:function(){this.setOptions({enabled:!1})},enable:function(){this.setOptions({enabled:!0})},getPingTime:function(){return b.getInstance().getFastDataService().getPingTime()},fetchTvDeviceModelInfo(){if(!this.options["device.model"]){const t=this;"undefined"!=typeof webOS?webOS.service.request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName"]},onComplete:function(e){e.returnValue?t.lgDeviceModel=e.modelName:o.debug(S,"Could not get LG device model name")}}):"undefined"!=typeof webapis&&void 0!==webapis.productinfo&&(this.samsungDeviceModel=webapis.productinfo.getRealModel())}},_logInitPluginEvent:function(t){var e={logs:t,logAction:"initPlugin",logType:"pluginMethod"};this._sendPluginLogs(e,this.isMethodPostEnabled())},_logSetAdapterEvent:function(t){var e={adapter:t,logAction:"setAdapter",logType:"pluginMethod"};this._sendPluginLogs(e,this.isMethodPostEnabled())},_logSetOptionsEvent:function(t){var e={logs:t,logAction:"setOptions",logType:"pluginMethod"};this._sendPluginLogs(e,this.isMethodPostEnabled())},_logReceiveDataEvent:function(t){var e="";t.data&&t.data.target&&t.data.target.response&&t.data.target.response.msg&&(e=JSON.parse(t.data.target.response.msg));var i={logs:e,logAction:"receiveData",logType:"internalMethod"};this._sendPluginLogs(i,this.isMethodPostEnabled())},_sendPluginLogs:function(t,e){if(e=e||!1,this.isPluginLogsEnabled()&&(t&&t.logType&&t.logAction&&o.notice(S,"PluginLog "+t.logType+": Action "+t.logAction),this.analyticsRequestHandler&&null!==(t=this.requestBuilder.buildParams(t,n.Service.VIDEO_PLUGIN_LOGS,this)))){var i=e?y.POST:y.GET;const s=new v(n.Service.VIDEO_PLUGIN_LOGS,t,"",i);this.analyticsRequestHandler.sendRequest(s)}},_checkOptionsValues:function(t){try{t&&Object.prototype.hasOwnProperty.call(t,"background.enabled")&&(t["background.enabled"]?this.backgroundDetector.startDetection():this.backgroundDetector.stopDetection())}catch(t){console.error(t)}},getDeviceInfoString:function(){try{if(this.options&&this.commonGetters){const t=this.commonGetters.getDeviceInfo();if(t)return JSON.stringify(Object.keys(t).reduce((e,i)=>(e[i.replace(/([A-Z])/g,"_$1").toLowerCase()]=t[i],e),{}))}}catch(t){console.error(t)}return JSON.stringify("{}")}},{Event:n.WillSendEvent});r.assign(A.prototype,i(9516)),r.assign(A.prototype,i(5901)),r.assign(A.prototype,i(1705)),r.assign(A.prototype,i(6083)),r.assign(A.prototype,i(6874)),A.instance=null,t.exports=A},9516(t,e,i){const{default:s}=i(7276);var n=i(5292),r=i(1516);const{AnalyticsTag:o}=i(2784);var a={registerAdapter:function(t,e,i,r){if(!e)return void s.error(o,"Register Adapter needs an adapter to initialize");if(i=i||{},r=r||"default",this.videos.existsVideo(r))i=i||{},this.videos.getVideo(r).mergeOptions(i),this.setAdapter(new n(r,this.videos.getVideo(r),this,this.adapterTemplates,t,e),r);else{var a=this._createVideoSpace(r,i),c=new n(r,a,this,this.adapterTemplates,t,e);this.setAdapter(c,r)}let d=i["content.resource"];!d&&this.videos.existsAdapter(r)&&(d=this.videos.getAdapter(r).getURLToParse(),d||(d=this.videos.getAdapter(r).getResource())),this.resourceTransform.init(d)},_createVideoSpace:function(t,e){var i=new r(t,this,this.options,null,null);return this.getNextViewIndex(i),e=e||{},i.setVideoOptions(e),this.videos.setVideo(i),i}
2,setAdapter:function(t,e){if(e=e||"default",this.browserLoadTimes&&this.browserLoadTimes.setPlayerSetupTime(),t.isSetAdapter())s.warn(o,"Adapters can only be added to a single plugin");else{var i=this.getAdapter(e);i&&(t.flags=i.flags,t.chronos=i.chronos,t.fireEventsStruct=i.fireEventsStruct),this.removeAdapter(e),this.videos.setAdapter(t,e)}},getAdapter:function(t){return t=t||"default",this.videos.getAdapter(t)},removeAdapter:function(t){t=t||"default",this.videos.existsVideo(t)&&this.videos.removeAdapter(this.contentAdapterListeners,t)},getNextViewIndex:function(t){t.nextView();let e=!0;for(;e;){let i=!1;for(const e of this.videos.getVideoKeys().filter(e=>e!==t.getVideoKey()))if(t.getViewCode()===this.videos.getVideo(e).getViewCode()){i=!0;break}i&&t.nextView(),e=i}}};t.exports=a},5901(t,e,i){var s=i(5292),n=i(1516),r={registerAdsAdapter:function(t,e,i,r){if(e)if(r=r||"default",this.videos.existsVideo(r))this.videos.getVideo(r).mergeOptions(i),this.setAdsAdapter(new s(r,this.videos.getVideo(r),this,this.adapterTemplates,t,e),r);else{var o=new n(r,this,this.options,null,null);o.mergeOptions(i),this.videos.setVideo(o);var a=new s(r,o,this,this.adapterTemplates,t,e);this.setAdsAdapter(a,r)}else Log.error(AnalyticsTag,"Register Ads Adapter needs an adapter to initialize")},updateAdsAdapter:function(t,e){e=e||"default",t&&(videoObj=this.videos.getVideo(e),videoObj&&videoObj.getAdapter()&&(adsAdapter=videoObj.getAdapter().getAdapterClass(t),adsAdapter&&videoObj.setAdsAdapter(adsAdapter,this,!0)))},getAdsAdapter:function(t){t=t||"default";const e=this.videos.getVideo(t);return void 0!==e?e.getAdsAdapter():void 0},setAdsAdapter:function(t,e){e=e||"default",this.videos.getVideo(e).setAdsAdapter(t,this)},removeAdsAdapter:function(t){t=t||"default",this.videos.existsVideo(t)&&this.videos.getVideo(t).removeAdsAdapter()}};t.exports=r},1705(t,e,i){var s=i(2507),n=i(9637);const{default:r}=i(474),{default:o}=i(61);var a={getAccountCode:function(){return r.getInstance().getFastDataService().getAccountCode()},getUsername:function(t){return this._getGenericOptionsValue("userId",t)?this._getGenericOptionsValue("userId",t):this._getGenericOptionsValue("user.name",t)},getProfileId:function(t){return this._getGenericOptionsValue("profileId",t)},getPluginVersion:function(){return r.getPluginVersion()},getRequestNumber:function(){return Math.random()},getUserType:function(t){return this._getGenericOptionsValue("user.type",t)},getAnonymousUser:function(t){return this._getGenericOptionsValue("user.anonymousId",t)},getReferer:function(){let t=this.options.referer||"";return!t&&"undefined"!=typeof window&&window.location&&(t=window.location.href),t},getReferral:function(){let t=this.options.referral||"";return t||"undefined"==typeof document||(t=document.referrer),t},getLanguage:function(){let t;return"undefined"!=typeof navigator&&(t=navigator.language),t},getScreenResolution:function(){let t;try{if(window&&window.screen){const e=window.devicePixelRatio||1;t=window.screen.width*e+"x"+window.screen.height*e}}catch(t){}return t},getDeviceInfo:function(t){const e={};return this.getDeviceCode(t)&&(e.deviceCode=this.getDeviceCode(t)),this.getModel(t)&&(e.model=this.getModel(t)),this.getBrand(t)&&(e.brand=this.getBrand(t)),this.getDeviceType(t)&&(e.deviceType=this.getDeviceType(t)),this.getDeviceName(t)&&(e.deviceName=this.getDeviceName(t)),this.getOsName(t)&&(e.osName=this.getOsName(t)),this.getOsVersion(t)&&(e.osVersion=this.getOsVersion(t)),this.getBrowserName(t)&&(e.browserName=this.getBrowserName(t)),this.getBrowserVersion(t)&&(e.browserVersion=this.getBrowserVersion(t)),this.getBrowserType(t)&&(e.browserType=this.getBrowserType(t)),this.getBrowserEngine(t)&&(e.browserEngine=this.getBrowserEngine(t)),Object.keys(e).length>0?e:void 0},getDeviceCode:function(t){return this._getGenericOptionsValue("device.code",t)},getModel:function(t){return this._getGenericOptionsValue("device.model",t)?this._getGenericOptionsValue("device.model",t):this.lgDeviceModel?this.lgDeviceModel:this.samsungDeviceModel?this.samsungDeviceModel:void 0},getBrand:function(t){return this._getGenericOptionsValue("device.brand",t)},getDeviceType:function(t){return this._getGenericOptionsValue("device.type",t)},getDeviceName:function(t){return this._getGenericOptionsValue("device.name",t)},getOsName:function(t){return this._getGenericOptionsValue("device.osName",t)},getOsVersion:function(t){let e=this._getGenericOptionsValue("device.osVersion",t);return void 0===e&&navigator&&navigator.userAgentData&&this.majorPlatformVersion&&"Windows"===navigator.userAgentData.platform&&this.majorPlatformVersion>=13&&(e="11"),e},getBrowserName:function(t){return this._getGenericOptionsValue("device.browserName",t)},getBrowserVersion:function(t){return this._getGenericOptionsValue("device.browserVersion",t)},getBrowserType:function(t){return this._getGenericOptionsValue("device.browserType",t)},getBrowserEngine:function(t){return this._getGenericOptionsValue("device.browserEngine",t)},getIsBlocked:function(t){return this._getGenericOptionsValue("ad.blockerDetected",t)},isMethodPostEnabled:function(){return this.options.method&&this.options.method.toUpperCase()===n.POST},getDeviceUUID:function(t){let e;return!t["device.isAnonymous"]&&t["device.id"]?t["device.id"]:(this.options["device.isAnonymous"]||(e=this.options["device.id"]||this.uuidGenerator.getKey()),e)},getLibVersion:function(){return r.getPluginVersion()},getAppName:function(t){return this._getGenericOptionsValue("app.name",t)},getAppReleaseVersion:function(t){return this._getGenericOptionsValue("app.releaseVersion",t)},getIp:function(t){return this._getGenericOptionsValue("network.ip",t)},getIsp:function(t){return this._getGenericOptionsValue("network.isp",t)},getConnectionType:function(t){return this._getGenericOptionsValue("network.connectionType",t)},getEDID:function(t){const e=this._getGenericOptionsValue("device.EDID",t);return e?e.toString():void 0},getObfuscateIp:function(t){return this._getGenericOptionsValue("user.obfuscateIp",t)},getPrivacyProtocol:function(t){let e=this._getGenericOptionsValue("user.privacyProtocol",t);return"string"==typeof e&&(e=e.toLowerCase()),"optin"===e||"optout"===e?e:void 0},getCustomDimensions:function(t){const e=this._getGenericOptionsValue("content.customDimensions",t);return"object"==typeof e?e:void 0},getExtraparam1:function(t){return this._getGenericOptionsValue("content.customDimension.1",t)},getExtraparam2:function(t){return this._getGenericOptionsValue("content.customDimension.2",t)},getExtraparam3:function(t){return this._getGenericOptionsValue("content.customDimension.3",t)},getExtraparam4:function(t){return this._getGenericOptionsValue("content.customDimension.4",t)},getExtraparam5:function(t){return this._getGenericOptionsValue("content.customDimension.5",t)},getExtraparam6:function(t){return this._getGenericOptionsValue("content.customDimension.6",t)},getExtraparam7:function(t){return this._getGenericOptionsValue("content.customDimension.7",t)},getExtraparam8:function(t){return this._getGenericOptionsValue("content.customDimension.8",t)},getExtraparam9:function(t){return this._getGenericOptionsValue("content.customDimension.9",t)},getExtraparam10:function(t){return this._getGenericOptionsValue("content.customDimension.10",t)},getExtraparam11:function(t){return this._getGenericOptionsValue("content.customDimension.11",t)},getExtraparam12:function(t){return this._getGenericOptionsValue("content.customDimension.12",t)},getExtraparam13:function(t){return this._getGenericOptionsValue("content.customDimension.13",t)},getExtraparam14:function(t){return this._getGenericOptionsValue("content.customDimension.14",t)},getExtraparam15:function(t){return this._getGenericOptionsValue("content.customDimension.15",t)},getExtraparam16:function(t){return this._getGenericOptionsValue("content.customDimension.16",t)},getExtraparam17:function(t){return this._getGenericOptionsValue("content.customDimension.17",t)},getExtraparam18:function(t){return this._getGenericOptionsValue("content.customDimension.18",t)},getExtraparam19:function(t){return this._getGenericOptionsValue("content.customDimension.19",t)},getExtraparam20:function(t){return this._getGenericOptionsValue("content.customDimension.20",t)},isParseManifest:function(t){return this._getGenericOptionsValue("parse.manifest",t)},isParseLocationHeaderGetRequest:function(t){return this._getGenericOptionsValue("parse.locationHeader.get",t)},isParseCdnNode:function(t){return this._getGenericOptionsValue("parse.cdnNode",t)},isCDNParserHeaderGetRequest:function(t){return this._getGenericOptionsValue("parse.cdnParser.get",t)},isCdnSwitch:function(t){return this._getGenericOptionsValue("parse.cdnSwitchHeader",t)},getParseCdnNodeList:function(t){return this._getGenericOptionsValue("parse.cdnNode.list",t)},getParseCdnNodeNameHeader:function(t){return this._getGenericOptionsValue("parse.cdnNameHeader",t)},getParseNodeHeader:function(t){return this._getGenericOptionsValue("parse.cdnNodeHeader",t)},canOverwriteAdapters:function(t){return s.parseBoolean(this._getGenericOptionsValue("adapters.overwrite",t))},getAdaptersProperties:function(t){return this._getGenericOptionsValue("adapters.properties",t)},getNetworkConnectionType:function(){if(!this.options.enableExtraMetricCollection||!navigator||!navigator.connection)return;const t=navigator.connection.type;return["wimax"].includes(t)?void 0:t},getNetworkCellType:function(){if(this.options.enableExtraMetricCollection&&navigator&&navigator.connection)return this.getNetworkConnectionType()&&"wifi"!==this.getNetworkConnectionType()?n
2avigator.connection.effectiveType:"none"},getNetworkSignalStrength:function(){},getCpuUsed:function(){},getMemoryUsed:function(){if(this.options.enableExtraMetricCollection&&performance&&performance.memory)return performance.memory.usedJSHeapSize/1024/1024},getCacheStorageUsed:function(){if(!this.options.enableExtraMetricCollection)return;let t=0;if("undefined"!=typeof localStorage&&localStorage)for(const e in localStorage)localStorage.hasOwnProperty(e)&&(t+=2*(localStorage[e].length+e.length));if("undefined"!=typeof sessionStorage&&sessionStorage)for(const e in sessionStorage)sessionStorage.hasOwnProperty(e)&&(t+=2*(sessionStorage[e].length+e.length));return 0!=t?t:void 0},getTransferredTraffic:function(){if(this.options.enableExtraMetricCollection)return r.getInstance().getCommonVariable(o.Products.BALANCER,o.BalancerVariables.BALANCER_TRAFFIC)},getImprovedBandwidth:function(){if(this.options.enableExtraMetricCollection)return r.getInstance().getCommonVariable(o.Products.BALANCER,o.BalancerVariables.BALANCER_BITRATE)},isAppAnalyticsAutoBegin:function(t){return s.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.autoBegin",t))},isAppAnalyticsEnabled:function(t){return s.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.enabled",t))},isVideoAnalyticsEnabled:function(t){return s.parseBoolean(this._getGenericOptionsValue("check.videoAnalytics.enabled",t))},isRefreshLMAConfigurationEnabled:function(t){return s.parseBoolean(this._getGenericOptionsValue("lma.refresh.configuration.enabled",t))},isPluginLogsEnabled:function(t){return s.parseBoolean(this._getGenericOptionsValue("debug.pluginLogs.enabled",t))},isPlayerLogsEnabled:function(t){return s.parseBoolean(this._getGenericOptionsValue("debug.playerLogs.enabled",t))},refreshLMAConfigurationSeconds:function(t){return this._getGenericOptionsValue("lma.refresh.configuration.seconds",t)},getPlayheadMonitorEnabled:function(t){return this._getGenericOptionsValue("playhead.monitor",t)},getReadyStateMonitorEnabled:function(t){return this._getGenericOptionsValue("readyState.monitor",t)},getPageName:function(){return this.options["content.title"]},_getGenericOptionsValue:function(t,e){return e&&e[t]?e[t]:this.options[t]}};t.exports=a},6083(t){t.exports={setChronoDuration:function(t,e,i){i=i||"default",this.videos.existsVideo(i)||this._createVideoSpace(i,{}),this.videos.existsVideo(i)&&this.videos.getVideo(i).setChronoDuration(t,e)},startChrono:function(t,e){e=e||"default",this.videos.existsVideo(e)||this._createVideoSpace(e,{}),this.videos.existsVideo(e)&&this.videos.getVideo(e).startChrono(t)},stopChrono:function(t,e){e=e||"default",this.videos.existsVideo(e)||this._createVideoSpace(e,{}),this.videos.existsVideo(e)&&this.videos.getVideo(e).stopChrono(t)},fireInit:function(t,e,i){i=i||"default",this.videos.getVideo(i).fireInit(t,e)},fireError:function(t,e,i,s,n,r){r=r||"default",this.videos.getVideo(r).fireError(t,e,i,s,n)},fireFatalError:function(t,e,i,s,n,r){r=r||"default",this.videos.getVideo(r).fireFatalError(t,e,i,s,n)},fireStop:function(t,e,i){i=i||"default",this.videos.getVideo(i).fireStop(t,e)},fireOfflineEvents:function(t,e){e=e||"default",this.videos.getVideo(e).fireOfflineEvents(t)}}},6874(t,e,i){var s=i(2507);const{default:n}=i(474);var r={getFastDataConfig:function(){return this.fastDataTransform.response.msg},getHost:function(){let t=n.getInstance().getOptions().getFastDataHost();return this.fastDataTransform&&this.fastDataTransform.response&&this.fastDataTransform.response.host&&(t=this.fastDataTransform.response.host),s.addProtocol(s.stripProtocol(t),this.options["app.https"])},getFastDataHost:function(){return s.addProtocol(s.stripProtocol(n.getInstance().getOptions().getFastDataHost()),this.options["app.https"])},getSession:function(){var t=n.getInstance().getCoreStorage().getStorages("session");if("undefined"===t&&(t=void 0),!t){var e=this.getStoredData();if(e)try{t=JSON.parse(e).q.c}catch(t){}}return t},getStorageHost:function(){let t=null;const e=this.getStoredData();if(e)try{t=JSON.parse(e).q.h}catch(t){}return t?s.addProtocol(t,this.options["app.https"]):t},getStoredData:function(){return n.getInstance().getCoreStorage().getStorages("data")},getDataTime:function(){return n.getInstance().getCoreStorage().getStorages("dataTime")},setStoredData:function(t){this.storage.setStorages("data",t)},setSession:function(t){this.storage.setStorages("session",t)},setDataTime:function(t){this.storage.setStorages("dataTime",t)}};t.exports=r},2071(t,e,i){var s=i(3948);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o=["accountCode","username","profileId","anonymousUser","rendition","deviceInfo","player","title","title2","live","segmentDuration","mediaDuration","mediaResource","parsedResource","transactionCode","properties","cdn","profile","bucket","playerVersion","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","dimensions","playerStartupTime","obfuscateIp","privacyProtocol","p2pEnabled","pluginVersion","pluginInfo","isp","connectionType","ip","referer","referral","userType","streamingProtocol","transportFormat","householdId","adsBlocked","adsExpected","deviceUUID","smartswitchConfigCode","smartswitchGroupCode","smartswitchContractCode","libVersion","nodeHost","nodeType","appName","appReleaseVersion","package","saga","tvshow","
2season","titleEpisode","channel","imdbID","gracenoteID","contentType","genre","contentLanguage","subtitles","cost","price","playbackType","email","drm","videoCodec","audioCodec","codecSettings","codecProfile","containerFormat","contentId","contractedResolution","linkedViewId","edid","cdnBalancerResponseUUID","accur_geo_location","network_type","network_cell_type","network_signal_strengh","cpu_used","mem_used","cache_used"],a=["player","playhead","adTitle","position","adDuration","adCampaign","adCreativeId","adProvider","adResource","adPlayerVersion","adProperties","adAdapterVersion","adInsertionType","extraparam1","extraparam2","extraparam3","extraparam4","extraparam5","extraparam6","extraparam7","extraparam8","extraparam9","extraparam10","fullscreen","audio","skippable","adNumber","adNumberInBreak","breakNumber"],c=s.extend({constructor:function(){this.lastSent={}},fetchParams:function(t,e,i,s,o){t=t||{},e=e||[];for(let a=0;a<e.length;a++){const d=e[a];if(t[d])continue;const h=c.getters[d];let l=!1;for(const e in s)if(s[e]&&s[e][h]){const n=s[e][h](o);void 0===n||i&&this.lastSent[d]===n||(t[d]=n,this.lastSent[d]=n),l=!0;break}l||n.warn(r,"Trying to call undefined getter "+d+":"+h)}return t},getGetters:function(){return c.getters},getRequiredMetadataParams:function(){return["live","rendition"]},buildBody:function(t,e){return this.fetchParams(void 0,c.bodyParams[t],!1,e)},buildParams:function(t,e,i,s){return t=t||{},this.fetchParams(t,c.params[e],!1,i,s),this.fetchParams(t,c.differentParams[e],!0,i,s),t},getChangedEntities:function(t,e){return this.fetchParams({},c.differentParams.entities,!0,t,e)}},{params:{"/data":["system","pluginVersion","requestNumber","username"],"/adapters":["system","pluginVersion","requestNumber"],"/configuration":["system","pluginVersion","requestNumber","appName","appReleaseVersion"],"/infinity/session/pluginLogs":["logAction","logType"],"/infinity/video/pluginLogs":["logAction","logType"],"/init":o,"/start":o,"/joinTime":["joinDuration","playhead","bitrate","accountCode","pluginVersion"],"/pause":["playhead","accountCode","pluginVersion"],"/resume":["pauseDuration","playhead","accountCode","pluginVersion"],"/seek":["seekDuration","playhead","accountCode","pluginVersion"],"/bufferUnderrun":["bufferDuration","playhead","accountCode","pluginVersion","bitrate","throughput"],"/error":["player","playhead"].concat(o),"/stop":["accur_geo_location","bitrate","totalBytes","playhead","pauseDuration","metrics","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","profile","bucket","accountCode","pluginVersion"],"/infinity/video/event":["playhead"],"/adInit":a,"/adStart":a,"/adJoin":["playhead","position","adJoinDuration","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adPause":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adResume":["playhead","position","adPlayhead","adPauseDuration","adNumber","adNumberInBreak","breakNumber"],"/adBufferUnderrun":["playhead","position","adPlayhead","adBufferDuration","adNumber","adNumberInBreak","breakNumber"],"/adStop":["playhead","position","adPlayhead","adTotalDuration","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/adClick":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adError":["adPlayhead"].concat(a),"/adManifest":["givenBreaks","expectedBreaks","expectedPattern","breaksTime"],"/adBreakStart":["position","givenAds","expectedAds","breakNumber","adInsertionType"],"/adBreakStop":["position","breakNumber"],"/adQuartile":["position","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/ping":["real_traffic","improved_bandwidth_estimation","network_type","network_cell_type","network_signal_strengh","cpu_used","mem_used","cache_used","accountCode","pluginVersion","droppedFrames","playrate","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","latency","packetLoss","packetSent","metrics","totalBytes","segmentDuration"],"/infinity/session/start":["accountCode","username","profileId","userType","anonymousUser","route","page","referer","referral","screenResolution","language","deviceInfo","adsBlocked","deviceUUID","libVersion","appName","appReleaseVersion","isp","connectionType","ip","obfuscateIp","privacyProtocol","dimensions","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","edid"],"/infinity/session/stop":["sessionMetrics"],"/infinity/session/nav":["route","page","scrollDepth"],"/infinity/session/beat":["sessionMetrics"],"/infinity/session/event":["accountCode"],"/offlineEvents":{}},bodyParams:{"/offlineEvents":["viewJson"]}
2,differentParams:{entities:["pluginInfo","rendition","title","title2","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","cdn","nodeHost","nodeType","nodeTypeString","subtitles","contentLanguage","contentId","accur_geo_location","titleEpisode","season","audioCodec"]},getters:{requestNumber:"getRequestNumber",playhead:"getPlayhead",playrate:"getPlayrate",fps:"getFramesPerSecond",segmentDuration:"getSegmentDuration",droppedFrames:"getDroppedFrames",mediaDuration:"getDuration",bitrate:"getBitrate",totalBytes:"getTotalBytes",throughput:"getThroughput",rendition:"getRendition",title:"getTitle",title2:"getTitle2",live:"getIsLive",mediaResource:"getResource",parsedResource:"getParsedResource",transactionCode:"getTransactionCode",properties:"getMetadata",playerVersion:"getPlayerVersion",player:"getPlayerName",cdn:"getCdn",profile:"getProfileName",bucket:"getBucketName",pluginVersion:"getPluginVersion",libVersion:"getLibVersion",userType:"getUserType",streamingProtocol:"getStreamingProtocol",transportFormat:"getTransportFormat",obfuscateIp:"getObfuscateIp",privacyProtocol:"getPrivacyProtocol",householdId:"getHouseholdId",latency:"getLatency",packetLoss:"getPacketLoss",packetSent:"getPacketSent",metrics:"getVideoMetrics",dimensions:"getCustomDimensions",accur_geo_location:"getAccurateGeoLocation",network_type:"getNetworkConnectionType",network_cell_type:"getNetworkCellType",network_signal_strengh:"getNetworkSignalStrength",cpu_used:"getCpuUsed",mem_used:"getMemoryUsed",cache_used:"getCacheStorageUsed",real_traffic:"getTransferredTraffic",improved_bandwidth_estimation:"getImprovedBandwidth",param1:"getExtraparam1",param2:"getExtraparam2",param3:"getExtraparam3",param4:"getExtraparam4",param5:"getExtraparam5",param6:"getExtraparam6",param7:"getExtraparam7",param8:"getExtraparam8",param9:"getExtraparam9",param10:"getExtraparam10",param11:"getExtraparam11",param12:"getExtraparam12",param13:"getExtraparam13",param14:"getExtraparam14",param15:"getExtraparam15",param16:"getExtraparam16",param17:"getExtraparam17",param18:"getExtraparam18",param19:"getExtraparam19",param20:"getExtraparam20",extraparam1:"getAdExtraparam1",extraparam2:"getAdExtraparam2",extraparam3:"getAdExtraparam3",extraparam4:"getAdExtraparam4",extraparam5:"getAdExtraparam5",extraparam6:"getAdExtraparam6",extraparam7:"getAdExtraparam7",extraparam8:"getAdExtraparam8",extraparam9:"getAdExtraparam9",extraparam10:"getAdExtraparam10",position:"getAdPosition",adNumber:"getAdNumber",adNumberInBreak:"getAdNumberInBreak",breakNumber:"getBreakNumber",adPlayhead:"getAdPlayhead",adDuration:"getAdDuration",adCampaign:"getAdCampaign",adCreativeId:"getAdCreativeId",adBitrate:"getAdBitrate",adTitle:"getAdTitle",adResource:"getAdResource",adPlayerVersion:"getAdPlayerVersion",adProperties:"getAdMetadata",adAdapterVersion:"getAdAdapterVersion",givenBreaks:"getGivenBreaks",expectedBreaks:"getExpectedBreaks",expectedPattern:"getExpectedPattern",breaksTime:"getBreaksTime",givenAds:"getGivenAds",expectedAds:"getExpectedAds",adsExpected:"getAdsExpected",adViewedDuration:"getAdViewedDuration",adViewability:"getAdViewability",fullscreen:"getIsFullscreen",audio:"getAudioEnabled",skippable:"getIsSkippable",adProvider:"getAdProvider",adInsertionType:"getAdInsertionType",pluginInfo:"getPluginInfo",isp:"getIsp",connectionType:"getConnectionType",ip:"getIp",deviceInfo:"getDeviceInfo",edid:"getEDID",system:"getAccountCode",accountCode:"getAccountCode",username:"getUsername",profileId:"getProfileId",anonymousUser:"getAnonymousUser",joinDuration:"getJoinDuration",bufferDuration:"getBufferDuration",seekDuration:"getSeekDuration",pauseDuration:"getPauseDuration",adJoinDuration:"getAdJoinDuration",adBufferDuration:"getAdBufferDuration",adPauseDuration:"getAdPauseDuration",adTotalDuration:"getAdTotalDuration",referer:"getReferer",referral:"getReferral",language:"getLanguage",screenResolution:"getScreenResolution",nodeHost:"getNodeHost",nodeType:"getNodeType",nodeTypeString:"getNodeTypeString",route:"getReferer",page:"getPageName",playerStartupTime:"getPlayerStartupTime",pageLoadTime:"getPageLoadTime",cdnDownloadedTraffic:"getCdnTraffic",multiCdnInfo:"getMultiCdnInfo",p2pDownloadedTraffic:"getP2PTraffic",p2pEnabled:"getIsP2PEnabled",uploadTraffic:"getUploadTraffic",cdnBalancerResponseUUID:"getBalancerResponseId",viewJson:"getOfflineView",deviceUUID:"getDeviceUUID",sessionMetrics:"getSessionMetrics",scrollDepth:"getScrollDepth",adsBlocked:"getIsBlocked",linkedViewId:"getLinkedViewId",smartswitchConfigCode:"getSmartswitchConfigCode",smartswitchGroupCode:"getSmartswitchGroupCode",smartswitchContractCode:"getSmartswitchContractCode",appName:"getAppName",appReleaseVersion:"getAppReleaseVersion",package:"getPackage",saga:"getSaga",tvshow:"getTvShow",
2season:"getSeason",titleEpisode:"getEpisodeTitle",channel:"getChannel",drm:"getDRM",videoCodec:"getVideoCodec",audioCodec:"getAudioCodec",codecSettings:"getCodecSettings",codecProfile:"getCodecProfile",containerFormat:"getContainerFormat",contentId:"getID",imdbID:"getImdbId",gracenoteID:"getGracenoteID",contentType:"getType",genre:"getGenre",contentLanguage:"getVideoLanguage",subtitles:"getSubtitles",contractedResolution:"getContractedResolution",cost:"getCost",price:"getPrice",playbackType:"getPlaybackType",email:"getEmail"}});t.exports=c},470(t,e,i){var s=i(3948);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o=s.extend({constructor:function(t,e,i,s){this.prefix=t||"npaw",this.disableCookies=e,this.forceCookies=i,this.disabled=s},updateStorageOptions:function(t,e,i){this.disableCookies=t,this.forceCookies=e,this.disabled=i},isEnabled:function(){if(this.disabled)return!1;var t=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch(e){t=!1}return t},setLocal:function(t,e){if(this.disabled)return null;var i=null;try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&(i=localStorage.setItem(this.prefix+"."+t,e)):i=this._setCookie(this.prefix+".local."+t,e)}catch(t){n.error(r,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return i},getLocal:function(t){return this.disabled?null:this._localGetRemove("getItem","_getCookie",t)},removeLocal:function(t){return this.disabled?null:this._localGetRemove("removeItem","_removeCookie",t)},_localGetRemove:function(t,e,i){var s=null;try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&(s=localStorage[t](this.prefix+"."+i)):s=this[e](this.prefix+".local."+i)}catch(t){n.error(r,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return s},setSession:function(t,e){if(this.disabled)return null;var i=null;try{i=!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage.setItem(this.prefix+"."+t,e):this._setCookie(this.prefix+".session."+t,e)}catch(t){n.error(r,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return i},getSession:function(t){return this.disabled?null:this._sessionGetRemove("getItem","_getCookie",t)},removeSession:function(t){return this.disabled?null:this._sessionGetRemove("removeItem","_removeCookie",t)},_sessionGetRemove:function(t,e,i){var s=null;try{s=!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage[t](this.prefix+"."+i):this[e](this.prefix+".session."+i)}catch(t){n.error(r,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return s},getStorages:function(t){return this.disabled?null:this.getSession(t)||this.getLocal(t)},setStorages:function(t,e){if(this.disabled)return null;this.setSession(t,e),this.setLocal(t,e)},removeStorages:function(t){if(this.disabled)return null;this.removeSession(t),this.removeLocal(t)},_setCookie:function(t,e){if("undefined"!=typeof document){var i=";";"undefined"!=typeof location&&(i+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=t+"="+e+i}},_getCookie:function(t){if("undefined"!=typeof document)for(var e=t+"=",i=decodeURIComponent(document.cookie).split(";"),s=0;s<i.length;s++){for(var n=i[s];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}return null},_removeCookie:function(t){this._setCookie(t,"")}});t.exports=o},4607(t){t.exports=function(){Function.prototype.bind=Function.prototype.bind||function(t){var e=Array.prototype.slice,i=this,s=e.call(arguments,1);function n(){var n=i.prototype&&this instanceof i;return i.apply(!n&&t||this,s.concat(e.call(arguments)))}return n.prototype=i.prototype,n},Array.prototype.forEach=Array.prototype.forEach||function(t,e){if("function"!=typeof t)throw new TypeError(t+" is not a function!");for(var i=this.length,s=0;s<i;s++)t.call(e,this[s],s,this)},Math.trunc=Math.trunc||function(t){return isNaN(t)?NaN:t>0?Math.floor(t):Math.ceil(t)}}},4954(t,e,i){var s=i(3948),n=i(7680),r=s.extend({constructor:function(t,e){this.callback=t,this.interval=e||5e3,this.isRunning=!1,this._timer=null,this.chrono=new n},start:function(){this.isRunning||(this.isRunning=!0,this._setTick())},stop:function(){if(this.isRunning=!1,this._timer)try{clearTimeout(this._timer),this._timer=null}catch(t){"undefined"!=typeof atv&&(atv.clearTimeout(this._timer),this._timer=null)}},_setTick:function(){if(this.isRunning){this.chrono.start();try{this._timer=setTimeout(function(){this.callback(this.chrono.stop()),this._setTick()}.bind(this),this.interval)}catch(t){"undefined"!=typeof atv&&(this._timer=atv.setTimeout(function(){this.callback(this.chrono.stop()),this._setTick()}.bind(this),this.interval))}}}});t.exports=r},2507(t,e,i){const{default:s,LogLevel:n}=i(7276),{AnalyticsTag:r}=i(2784);var o={stripProtocol:function(t){var e=t;try{e=t.replace(/^(.*?:\/\/|\/\/)/i,"")}catch(t){s.warn(r,t)}return e},parseBoolean:function(t){return"string"==typeof t||t instanceof String?"true"===t.toLowerCase():!!t},elementIsInPage:function(t){try{return"undefined"!=typeof document&&document.body&&"function"==typeof document.body.contains?t!==document.body&&document.body.contains(t):t&&("object"==typeof t||"function"==typeof t)}catch(t){s.warn(r,t)}return!0},addProtocol:function(t,e){var i="http://localhost/";try{i="http://"+t,e||"undefined"!=typeof window&&0===window.location.protocol.indexOf("https")?i="https://"+t:"undefined"!=typeof window&&0===window.location.protocol.indexOf("http")&&(i="//"+t)}
2catch(t){s.warn(r,t)}return i},parseNumber:function(t,e){return!isNaN(t)&&t>=0&&t!==1/0&&t!==-1/0&&null!=t?t:e},logAllEvents:function(t,e,i){try{if(s.logLevel<=n.DEBUG){i=i||function(t){s.debug(r,"Event: "+t.type)};var o=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart"];e&&(null===e[0]?(e.shift(),o=e):o=o.concat(e));for(var a=0;a<o.length;a++)"function"==typeof t?t.call(window,o[a],i):t.on?t.on(o[a],i):t.addEventListener&&t.addEventListener(o[a],i)}}catch(t){s.error(r,t)}},buildRenditionString:function(t,e,i){1===arguments.length&&(i=t,t=null,e=null);var s=null;return t&&e&&(s=t+"x"+e),"number"==typeof i&&!isNaN(i)&&i>=1&&(s?s+="@":s="",s+=i<1e3?Math.round(i)+"bps":i<1e6?(i=Math.round(i/1e3))+"Kbps":(i=Math.round(i/1e4)/100)+"Mbps"),s},buildErrorParams:function(t,e,i,s){var n={};return s=s??0,"object"==typeof t&&null!==t?n=t:(n.errorCode=t||"FAILURE",n.msg=e||n.errorCode,n.errorMetadata=i,s&&s>0&&(n.errorDuration=s)),n},calculateAdViewability:function(t,e){var i=!0;if("undefined"!=typeof window&&t&&"function"==typeof t.getBoundingClientRect){var s=t.getBoundingClientRect();if(s.top>=window.innerHeight||s.bottom<=0||s.right<=0||s.left>=window.innerWidth)i=!1;else{var n=Math.trunc(s.height*s.width),r=s.top>0?s.top:0,o=s.bottom>window.innerHeight?window.innerHeight:s.bottom,a=s.left>0?s.left:0;i=((s.right>window.innerWidth?window.innerWidth:s.right)-a)*(o-r)*100>n*(e||50)}}return i},filterChangedMetrics:function(t,e){if(!e)return t;var i=!1,n=null;try{for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=t[o],c=e[o];(!Object.prototype.hasOwnProperty.call(e,o)||("object"==typeof a&&null!==a&&Object.prototype.hasOwnProperty.call(a,"value")&&"object"==typeof c&&null!==c&&Object.prototype.hasOwnProperty.call(c,"value")?c.value!==a.value:c!==a))&&(i=!0,n||(n={}),n[o]=a)}return i?n:{}}catch(e){return s.warn(r,"Error during metric filtering in Util.filterChangedMetrics.",e),t}},getMetricsFrom:function(t,e){var i=t||e;for(var s in i)if("object"!=typeof i[s]||!i[s].value){var n={};n.value=i[s],i[s]=n}return i},assign:i(4173),isArray:i(2467)};t.exports=o},9835(t,e,i){const s="7.3.31"+(i(9907).env.NWF||"");t.exports=s},2254(t,e,i){const s=i(2507),{default:n}=i(7276),r=i(3782),{AnalyticsTag:o}=i(2784);var a={getAdPlayerVersion:function(){return this._safeGetterAdsAdapter("getPlayerVersion")||""},getAdPosition:function(){let t=r.AdPosition.Preroll,e=!1;if(this._adsAdapter)try{var i=this._adsAdapter.getPosition();r.AdPosition.Preroll!==i&&r.AdPosition.Midroll!==i&&r.AdPosition.Postroll!==i||(t=i,e=!0)}catch(t){n.warn(o,"An error occured while calling getAdPosition",t)}return!e&&this._adapter&&(t=this._adapter.flags.isJoined?r.AdPosition.Midroll:r.AdPosition.Preroll),t},getAdNumber:function(){return this.requestBuilder.lastSent.adNumber||0},getAdNumberInBreak:function(){return this.requestBuilder.lastSent.adNumberInBreak||0},getBreakNumber:function(){return this.requestBuilder.lastSent.breakNumber||0},getAdPlayhead:function(){const t=this._safeGetterAdsAdapter("getPlayhead");return s.parseNumber(t,0)},getAdDuration:function(){const t=this._safeGetterAdsAdapter("getDuration","ad.duration");return s.parseNumber(t,0)},getAdBitrate:function(){let t=this._safeGetterAdsAdapter("getBitrate");return t&&-1!==t||(t=this.getWebkitAdBitrate()),s.parseNumber(t,-1)},getWebkitAdBitrate:function(){try{if(this._adsAdapter&&this._adsAdapter.tag&&this._adsAdapter.tag.webkitVideoDecodedByteCount){let t=this._adsAdapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitAdBitrate){const e=this._adsAdapter.tag.webkitVideoDecodedByteCount-this._lastWebkitAdBitrate;t=Math.round(e/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitAdBitrate=this._adsAdapter.tag.webkitVideoDecodedByteCount,0!==t?t:-1}}catch(t){}return-1},getAdTitle:function(){return this._safeGetterAdsAdapter("getTitle","ad.title")},getAdResource:function(){return this._safeGetterAdsAdapter("getResource","ad.resource")},getAdCampaign:function(){return this._safeGetterAdsAdapter("getCampaign","ad.campaign")},getAdCreativeId:function(){return this._safeGetterAdsAdapter("getCreativeId","ad.creativeId")},getAdProvider:function(){return this._safeGetterAdsAdapter("getProvider","ad.provider")},getAdAdapterVersion:function(){return this._safeGetterAdsAdapter("getVersion")},getAdMetadata:function(){return this.options["ad.metadata"]},getAdInsertionType:function(){return this._safeGetterAdsAdapter("getAdInsertionType")},getGivenBreaks:function(){return this._safeGetterAdsAdapter("getGivenBreaks","ad.givenBreaks")},getExpectedBreaks:function(){let t;const e=this.options["ad.expectedBreaks"],i=this.options["ad.expectedPattern"];if(e)t=e;else if(i)t=0,t=i.pre?i.pre.length:0,t+=i.mid?i.mid.length:0,t+=i.post?i.post.length:0;else if(this._adsAdapter)try{t=this._adsAdapter.getExpectedBreaks()}catch(t){n.warn(o,"An error occured while calling expectedBreaks",t)}return t},getExpectedPattern:function(){return this._safeGetterAdsAdapter("getExpectedPattern","ad.expectedPattern")},getBreaksTime:function(){return this._safeGetterAdsAdapter("getBreaksTime","ad.breaksTime")},getGivenAds:function(){return this._safeGetterAdsAdapter("getGivenAds","ad.givenAds")},getExpectedAds:function(){let t;try{if(this._adsAdapter){const e=this.options["ad.expectedPattern"];if(e&&this.getAdPosition()){let i=[];if(e.pre&&(i=i.concat(e.pre)),e.mid&&(i=i.concat(e.mid)),e.post&&(i=i.concat(e.post)),i.length>0){let e=this.requestBuilder.lastSent.breakNumber;e>i.length&&(e=i.length),t=i[e-1]}}else t=this._adsAdapter.getExpectedAds()}}catch(t){n.warn(o,"An error occured while calling expectedAds",t)}return t},getAdsExpected:function(){let t;try{t=this.getExpectedPattern()||this.getGivenAds()||!1}catch(t){n.warn(o,"An error occured while calling givenAds or expectedPattern",t)}return t},getAdJoinDuration:function(){if(!this._adsAdapter)return n.warn(o,"["+this.getViewCode()+"] getAdJoinDuration called but NO ADS ADAPTER exists!"),-1;const t=this._adsAdapter.chronos.join.getDeltaTime(!1);if(!0===this.getJoinTimeMeasureAfterAdBreak()&&this.requestBuilder.lastSent.position===r.AdPosition.Preroll&&this._initialPrerollTime>0){const e=t>=0?t:0,i=this._initialPrerollTime+e;return n.debug(o,"["+this.getViewCode()+"] getAdJoinDuration - NEW calculation: T
21("+this._initialPrerollTime+") + T2("+e+") = "+i),i}return n.debug(o,"["+this.getViewCode()+"] getAdJoinDuration - OLD calculation: T2("+t+"), measureAfterAdBreak="+this.getJoinTimeMeasureAfterAdBreak()+", position="+this.requestBuilder.lastSent.position+", T1="+this._initialPrerollTime),t},getAdBufferDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.buffer.getDeltaTime(!1):-1},getAdPauseDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.pause.getDeltaTime(!1):0},getAdTotalDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.total.getDeltaTime(!1):-1},getAdViewedDuration:function(){return this._getTimeMaxOrAcum(!0)},getAdViewability:function(){return this._getTimeMaxOrAcum()},_getTimeMaxOrAcum:function(t){let e=0;return this._adsAdapter&&this._adsAdapter.chronos.viewedMax.forEach(function(i){t?e+=i.getDeltaTime(!1):e=Math.max(i.getDeltaTime(!1),e)}),e},getAudioEnabled:function(){return this._safeGetterAdsAdapter("getAudioEnabled")},getIsSkippable:function(){return this._safeGetterAdsAdapter("getIsSkippable")},getIsFullscreen:function(){return this._safeGetterAdsAdapter("getIsFullscreen")},_safeGetterAdsAdapter:function(t,e){let i;if(e&&this.options[e])i=this.options[e];else try{this._adsAdapter&&"function"==typeof this._adsAdapter[t]&&(i=this._adsAdapter[t]())}catch(e){n.warn(o,"An error occured while calling "+t,e)}return i},getNewAdNumber:function(){let t=this.requestBuilder.lastSent.adNumber;return t&&this.requestBuilder.lastSent.position===this.getAdPosition()?t+=1:t=1,this.requestBuilder.lastSent.adNumber=t,t},getNewAdNumberInBreak:function(){return this._adNumberInBreak++,this.requestBuilder.lastSent.adNumberInBreak=this._adNumberInBreak,this._adNumberInBreak},getNewBreakNumber:function(){let t=1;return this._adNumberInBreak=0,this.requestBuilder.lastSent.breakNumber&&(t=this.requestBuilder.lastSent.breakNumber+1),t&&this.requestBuilder.lastSent.position!==this.getAdPosition()&&(t=1),this.requestBuilder.lastSent.breakNumber=t,t},getAdExtraparam1:function(){return this.options["ad.customDimension.1"]},getAdExtraparam2:function(){return this.options["ad.customDimension.2"]},getAdExtraparam3:function(){return this.options["ad.customDimension.3"]},getAdExtraparam4:function(){return this.options["ad.customDimension.4"]},getAdExtraparam5:function(){return this.options["ad.customDimension.5"]},getAdExtraparam6:function(){return this.options["ad.customDimension.6"]},getAdExtraparam7:function(){return this.options["ad.customDimension.7"]},getAdExtraparam8:function(){return this.options["ad.customDimension.8"]},getAdExtraparam9:function(){return this.options["ad.customDimension.9"]},getAdExtraparam10:function(){return this.options["ad.customDimension.10"]}};t.exports=a},3051(t,e,i){var s=i(3782),n=i(2507),r=i(5292);const{AnalyticsTag:o}=i(2784),{default:a}=i(7276);var c={getAdsAdapter:function(){return this._adsAdapter},setAdsAdapter:function(t,e,i){if(i=i||!1,t.isSetAdapter())a.warn(o,"Adapters can only be added to a single plugin");else try{for(var s in this.removeAdsAdapter(),this.plugin=e,this._adsAdapter=t,this._adsAdapter.setIsAds(!0),this.adsAdapterListeners={},this.adsAdapterListeners[r.Event.START]=this._adStartListener.bind(this),this.adsAdapterListeners[r.Event.JOIN]=this._adJoinListener.bind(this),this.adsAdapterListeners[r.Event.DATA_OBJECT]=this._adAdvancedDataListener.bind(this),this.adsAdapterListeners[r.Event.PAUSE]=this._adPauseListener.bind(this),this.adsAdapterListeners[r.Event.RESUME]=this._adResumeListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_BEGIN]=this._adBufferBeginListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_END]=this._adBufferEndListener.bind(this),this.adsAdapterListeners[r.Event.STOP]=this._adStopListener.bind(this),this.adsAdapterListeners[r.Event.ERROR]=this._adErrorListener.bind(this),this.adsAdapterListeners[r.Event.CLICK]=this._adClickListener.bind(this),this.adsAdapterListeners[r.Event.MANIFEST]=this._adManifestListener.bind(this),this.adsAdapterListeners[r.Event.PODSTART]=this._adBreakStartListener.bind(this),this.adsAdapterListeners[r.Event.PODSTOP]=this._adBreakStopListener.bind(this),this.adsAdapterListeners[r.Event.QUARTILE]=this._adQuartileListener.bind(this),this.adsAdapterListeners)this._adsAdapter.on(s,this.adsAdapterListeners[s]);i&&(a.notice(o,"Registering listeners for registered AdsAdapter"),this._adsAdapter.registerListeners())}catch(t){a.warn(o,"Problem during setAdsAdapter process")}},removeAdsAdapter:function(){if(this._adsAdapter){if(this._adsAdapter.dispose(),this.adsAdapterListeners){for(var t in this.adsAdapterListeners)this._adsAdapter.off(t,this.adsAdapterListeners[t]);delete this.adsAdapterListeners}this.resizeScrollDetector.stopDetection(),this._adsAdapter=void 0}}
2,_adStartListener:function(t){this._adapter?(this._adapter.fireBufferEnd(null,"adStartListener"),this._adapter.fireSeekEnd(null,"adStartListener"),this.isInitiated||this._adapter.flags.isStarted||this._adapter.fireStart(),this._adapter.flags.isPaused&&this._adapter.chronos.pause.reset()):this.fireInit(),this._adsAdapter&&(this._adsAdapter.chronos.viewedMax=[],this._adsAdapter.chronos.join&&0===this._adsAdapter.chronos.join.startTime&&this._adsAdapter.chronos.join.start());const e=t.data.params||{};e.adNumber=this.getNewAdNumber(),(this.getAdResource()||this.getAdTitle())&&"number"==typeof this.getAdDuration()?(this.adStartSent=!0,this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),e.adNumberInBreak=this.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,e)):(this.adInitSent=!0,e.adNumberInBreak=this.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_INIT,s.Service.AD_INIT,e))},_adJoinListener:function(t){let e={};n.assign(e,t.data.params||{}),this.adInitSent&&!this.adStartSent&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,e)),this._adsAdapter.startChronoView(),this.adConnected&&(this._adsAdapter.chronos.join.startTime=this.adConnectedTime,this._adsAdapter.chronos.total.startTime=this.adConnectedTime,this.adConnectedTime=0,this.adConnected=!1),this._adsAdapter.chronos.adPlayTime.start(),e=t.data.params||{},this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_JOIN,s.Service.AD_JOIN,e),this.adInitSent=!1,this.adStartSent=!1,this.requestBuilder.lastSent.position===s.AdPosition.Preroll&&(this.isAdsPreJoined=!0)},_adAdvancedDataListener:function(t){var e=t.data.params||{};this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_DATA_OBJECT,s.Service.DATA_OBJECT,e)},_adPauseListener:function(t){const e=t.data.params||{};this._adsAdapter.stopChronoView(),this._adsAdapter.chronos.adPlayTime.stop(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_PAUSE,s.Service.AD_PAUSE,e)},_adResumeListener:function(t){const e=t.data.params||{};this._adsAdapter.startChronoView(),this._adsAdapter.chronos.adPlayTime.resume(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_RESUME,s.Service.AD_RESUME,e)},_adBufferBeginListener:function(t){a.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Ad Buffer Begin"),this._adsAdapter.stopChronoView(),this._adsAdapter.chronos.adPlayTime.stop(),this._adsAdapter&&this._adsAdapter.flags.isPaused&&this._adsAdapter.chronos.pause.reset()},_adBufferEndListener:function(t){const e=t.data.params||{};this._adsAdapter.startChronoView(),this._adsAdapter.chronos.adPlayTime.resume(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_BUFFER,s.Service.AD_BUFFER,e)},_adStopListener:function(t){const e=t.data.params||{};if(this._adsAdapter.stopChronoView(),this._adsAdapter.chronos.adPlayTime.stop(),this._totalAdPlayTime=(this._totalAdPlayTime||0)+this._adsAdapter.chronos.adPlayTime.getDeltaTime(!1),this._adsAdapter.flags.reset(),this._totalPrerollsTime=(this._totalPrerollsTime||0)+this._adsAdapter.chronos.total.getDeltaTime(),e.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_STOP,s.Service.AD_STOP,e),this.requestBuilder.lastSent.position===s.AdPosition.Postroll){const t=this.options["ad.expectedPattern"];this.playedPostrolls++,(this.requestBuilder.lastSent.givenAds&&this.requestBuilder.lastSent.givenAds<=this.playedPostrolls||!this.requestBuilder.lastSent.givenAds&&t&&t.post&&t.post[0]&&t.post[0]<=this.playedPostrolls)&&this._adapter.fireStop({},"_adStopListener")}this.adConnected=!0,this.adConnectedTime=(new Date).getTime()},_adErrorListener:function(t){const e=t.data.params||{};!this._adapter||this._adapter.flags.isStarted||this.isInitiated?this._blockAdError(t.data.params)||(this._adsAdapter&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart()),this._adsAdapter&&this._adsAdapter.flags.isStarted||(e.adNumber=this.getNewAdNumber(),e.adNumberInBreak=this.getNewAdNumberInBreak()),this.isBreakStarted||(e.breakNumber=this.getNewBreakNumber()),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_ERROR,s.Service.AD_ERROR,e)):this._savedAdError=t},_adSavedError:function(){this._savedAdError&&(this._adErrorListener(this._savedAdError),this._savedAdError=null)},_adSavedManifest:function(){this._savedAdManifest&&(this._adManifestListener(this._savedAdManifest),this._savedAdManifest=null)},_blockAdError:function(t){const e=Date.now(),i=this._adsAdapter&&this._adsAdapter.getResource?this._adsAdapter.getResource():null;
2return this._lastAdErrorParams&&this._lastAdErrorParams.errorCode===t.errorCode&&this._lastAdErrorParams.msg===t.msg&&this._lastAdErrorParams.adCreativeId===this.getAdCreativeId()&&this._lastAdErrorResource===i&&this._lastAdErrorTime+5e3>e?(this._lastAdErrorTime=e,!0):(this._lastAdErrorTime=e,this._lastAdErrorParams=t,this._lastAdErrorResource=i,!1)},_adClickListener:function(t){const e=t.data.params||{};this._adsAdapter.stopChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_CLICK,s.Service.AD_CLICK,e)},_adManifestListener:function(t){if(!this.isAdsManifestSent){if(this._adapter&&!this._adapter.flags.isStarted&&!this.isInitiated)return void(this._savedAdManifest=t);const e=t.data.params||{};this.isAdsManifestSent=!0,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_MANIFEST,s.Service.AD_MANIFEST,e)}},_adBreakStartListener:function(t){if(!this.isBreakStarted){this.isBreakStarted=!0,this._adapter&&this._adapter.firePause();const e=t.data.params||{};if(e.breakNumber=this.getNewBreakNumber(),this.getAdPosition()===s.AdPosition.Preroll&&0===this._initialPrerollTime){const t=this.initChrono.getDeltaTime(!1);t>=0&&(this._initialPrerollTime=t,a.debug(o,"["+this.getViewCode()+"] Captured T1 for pre-roll: "+this._initialPrerollTime+"ms (measureAfterAdBreak="+this.getJoinTimeMeasureAfterAdBreak()+")"))}this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_START,s.Service.AD_POD_START,e),this.adConnected=!1}},_adBreakStopListener:function(t){if(this.isBreakStarted){this.isBreakStarted=!1;const e=t.data.params||{};e.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_STOP,s.Service.AD_POD_STOP,e),this.adConnected=!1,e.position===s.AdPosition.Preroll&&(this.isAdsPreJoined&&!0===this.getJoinTimeMeasureAfterAdBreak()&&this._adapter&&!this._adapter.flags.isJoined&&(this._adapter.chronos.join.reset(),this._adapter.chronos.join.start()),this.isAdsPreFinished=!0),this._totalAdPlayTime=0,this._adapter&&this._adapter.fireResume()}},_adQuartileListener:function(t){const e=t.data.params||{};e.quartile&&this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_QUARTILE,s.Service.AD_QUARTILE,e)},_joinTimeMeasureAfterAdBreakAvailable:function(){return this.isAdsPreFinished&&this.isAdsPreJoined&&!0===this.getJoinTimeMeasureAfterAdBreak()},_sendAdEventIfAllowed:function(t,e,i){this.options["ad.ignore"]||this._send(t,e,i,void 0,void 0,()=>{}),a.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+e)}};t.exports=c},9346(t,e,i){const s=i(2507),{default:n}=i(7276),r=i(9835),o=i(8472),a=i(7939),{default:c}=(i(3782),i(474)),{AnalyticsTag:d}=i(2784),{default:h}=i(61);var l={getPlayhead:function(){var t=this._safeGetterAdapter("getPlayhead");return s.parseNumber(t,0)},getPlayrate:function(){let t=0;if(this._adapter&&this._adapter.flags&&!this._adapter.flags.isPaused)try{t=this._adapter.getPlayrate()}catch(t){n.warn(d,"An error occured while calling getPlayrate",t)}return t},getFramesPerSecond:function(){return this._safeGetterAdapter("getFramesPerSecond","content.fps")},getSegmentDuration:function(){return this.hybridNetwork.getSegmentDuration()||this._safeGetterAdapter("getSegmentDuration","content.segmentDuration")},getDroppedFrames:function(){let t=this._safeGetterAdapter("getDroppedFrames");return t||(t=this.getWebkitDroppedFrames()),s.parseNumber(t,0)},getWebkitDroppedFrames:function(){if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitDroppedFrameCount)return this._adapter.tag.webkitDroppedFrameCount},getDuration:function(){const t=this._safeGetterAdapter("getDuration","content.duration")||void 0;return s.parseNumber(Math.round(t),void 0)},getBitrate:function(){let t=this._safeGetterAdapter("getBitrate","content.bitrate");return t&&-1!==t||(t=this.getWebkitBitrate()),s.parseNumber(t,-1)},getTotalBytes:function(){return this.options["content.sendTotalBytes"]?this._safeGetterAdapter("getTotalBytes","content.totalBytes"):void 0},getWebkitBitrate:function(){try{if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitVideoDecodedByteCount){let e=this._adapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitBitrate){var t=this._adapter.tag.webkitVideoDecodedByteCount-this._lastWebkitBitrate;e=Math.round(t/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitBitrate=this._adapter.tag.webkitVideoDecodedByteCount,0!==e?e:-1}}catch(t){}return-1},getThroughput:function(){const t=this._safeGetterAdapter("getThroughput","content.throughput");return s.parseNumber(t,-1)},getRendition:function(){return this._safeGetterAdapter("getRendition","content.rendition")},getTitle:function(){return this._safeGetterAdapter("getTitle","content.title")},getTitle2:function(){return this._safeGetterAdapter("getTitle2","content.program")},getIsLive:function(){let t=this.options["content.isLive"];return t||!1===t||(t=this._safeGetterAdapter("getIsLive")||!1),t},getResource:function(){return this._safeGetterAdapter("getResource","content.resource")}
2,getParsedResource:function(){let t=this.plugin.resourceTransform.getResource();return t=t||this._safeGetterAdapter("getURLToParse"),t===this.getResource()?void 0:t},getTransactionCode:function(){return this.options["content.transactionCode"]},getMetadata:function(){return this.options["content.metadata"]},getPlayerVersion:function(){return this._safeGetterAdapter("getPlayerVersion")||""},getPlayerName:function(){return this._safeGetterAdapter("getPlayerName")||""},getCdn:function(){let t;return t=c.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.AS_ENABLED)?"ACTVSWIT":this.plugin.resourceTransform.getCdnName(),t||this.options["content.cdn"]},getProfileName:function(){return c.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.PROFILE_NAME)},getBucketName:function(){return c.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.BUCKET)},getPluginVersion:function(){return this.getAdapterVersion()},getAdapterVersion:function(){return this._safeGetterAdapter("getVersion")},getCdnTraffic:function(){return this._safeGetterAdapter("getCdnTraffic")||this.hybridNetwork.getCdnTraffic()},getMultiCdnInfo:function(){return this.hybridNetwork.getMultiCdnInfo()},getBalancerResponseId:function(){return this.hybridNetwork.getBalancerResponseId()},getP2PTraffic:function(){return this._safeGetterAdapter("getP2PTraffic")||this.hybridNetwork.getP2PTraffic()},getUploadTraffic:function(){return this._safeGetterAdapter("getUploadTraffic")||this.hybridNetwork.getUploadTraffic()},getIsP2PEnabled:function(){return this._safeGetterAdapter("getIsP2PEnabled")||this.hybridNetwork.getIsP2PEnabled()},getStreamingProtocol:function(){const t=this.options["content.streamingProtocol"];if(t)for(var e in o)if(o[e]===t)return t},getTransportFormat:function(){let t=this.options["content.transportFormat"];if(!t&&this.options["parse.manifest"]&&(t=this.plugin.resourceTransform.getTransportFormat()),t)for(const e in a)if(a[e]===t)return t},getHouseholdId:function(){return this._safeGetterAdapter("getHouseholdId")},getLatency:function(){return this.getIsLive()?this._safeGetterAdapter("getLatency"):void 0},getPacketLoss:function(){return this._safeGetterAdapter("getPacketLoss")},getPacketSent:function(){return this._safeGetterAdapter("getPacketSent")},getVideoMetrics:function(){const t=s.getMetricsFrom(this._adapter?this._adapter.getMetrics():void 0,this.options["content.metrics"])||{},e=s.filterChangedMetrics(t,this._previousVideoMetrics);try{this._previousVideoMetrics=JSON.parse(JSON.stringify(t))}catch(e){n.warn(d,"Failed to deep copy video metrics for previous state. Storing a shallow copy as fallback.",e),this._previousVideoMetrics={...t}}return e},getPlayerStartupTime:function(){return this.plugin.browserLoadTimes.getPlayerStartupTime()},getJoinDuration:function(){if(!this._adapter||!this._adapter.chronos)return-1;const t=this._adapter.chronos.join.stopTime;if(!t||0===t)return-1;const e=this.initChrono.startTime;if(!e||0===e)return-1;const i=t-e;if(i<0)return-1;let s=this._totalAdPlayTime||0;if(this._adsAdapter&&this._adsAdapter.chronos&&this._adsAdapter.chronos.adPlayTime&&this._adsAdapter.flags.isStarted){const t=this._adsAdapter.chronos.adPlayTime.getDeltaTime(!1);t>0&&(s+=t)}const n=i-s;return n>=0?n:-1},getBufferDuration:function(){return this._adapter?this._adapter.chronos.buffer.getDeltaTime(!1):-1},getSeekDuration:function(){return this._adapter?this._adapter.chronos.seek.getDeltaTime(!1):-1},getPauseDuration:function(){return this._adapter?this._adapter.chronos.pause.getDeltaTime(!1):0},getPackage:function(){return this.options["content.package"]},getSaga:function(){return this.options["content.saga"]},getTvShow:function(){return this.options["content.tvShow"]},getSeason:function(){return this.options["content.season"]},getEpisodeTitle:function(){return this.options["content.episodeTitle"]},getChannel:function(){return this.options["content.channel"]},getID:function(){return this.options["content.id"]},getImdbId:function(){return this.options["content.imdbId"]},getGracenoteID:function(){return this.options["content.gracenoteId"]},getType:function(){return this.options["content.type"]},getGenre:function(){return this.options["content.genre"]},getVideoLanguage:function(){return this.options["content.language"]},getSubtitles:function(){return this.options["content.subtitles"]},getContractedResolution:function(){return this.options["content.contractedResolution"]},getCost:function(){return this.options["content.cost"]}
2,getPrice:function(){return this.options["content.price"]},getPlaybackType:function(){let t=this.options["content.playbackType"];if(!t){let e=this.options["content.isLive"];"boolean"!=typeof e&&(e=this._safeGetterAdapter("getIsLive")),"boolean"==typeof e&&(t=e?"Live":"VoD")}return t},getDRM:function(){return this.options["content.drm"]},getVideoCodec:function(){return this._safeGetterAdapter("getVideoCodec","content.encoding.videoCodec")},getAudioCodec:function(){return this._safeGetterAdapter("getAudioCodec","content.encoding.audioCodec")},getCodecSettings:function(){return this.options["content.encoding.codecSettings"]},getCodecProfile:function(){return this.options["content.encoding.codecProfile"]},getContainerFormat:function(){return this.options["content.encoding.containerFormat"]},getLinkedViewId:function(){return this.options.linkedViewId},_safeGetterAdapter:function(t,e){let i;if(e&&this.options[e])i=this.options[e];else try{this._adapter&&"function"==typeof this._adapter[t]&&(i=this._adapter[t]())}catch(e){n.warn(d,"An error occured while calling "+t,e)}return void 0!==i?i:void 0},getCustomDimensions:function(){const t=this.options["content.customDimensions"];return"object"==typeof t?t:void 0},getJoinTimeMeasureAfterAdBreak:function(){return this.options["joinTime.measureAfterAdBreak"]},getPluginInfo:function(){return JSON.stringify({lib:r,adapter:this.getAdapterVersion(),adAdapter:this.getAdAdapterVersion()})},getAccountCode:function(){return c.getInstance().getFastDataService().getAccountCode()},getUsername:function(){return this.options.userId?this.options.userId:this.options["user.name"]},getProfileId:function(){return this.options.profileId},getEmail:function(){return this.options["user.email"]},getNodeHost:function(){return this.options["content.cdnNode"]||this.plugin.resourceTransform.getNodeHost()},getNodeType:function(){return this.options["content.cdnType"]||this.plugin.resourceTransform.getNodeType()},getNodeTypeString:function(){return this.plugin.resourceTransform.getNodeTypeString()},getRequestNumber:function(){return Math.random()},getOfflineView:function(){let t;return this.plugin.offlineStorage&&(t=this.plugin.offlineStorage.getView()),t},getSmartswitchConfigCode:function(){return this.options["smartswitch.configCode"]},getSmartswitchGroupCode:function(){return this.options["smartswitch.groupCode"]},getSmartswitchContractCode:function(){return this.options["smartswitch.contractCode"]},controlPlayerExists:function(){return this.options["check.playerExists"]},ignorePauseSmallEvents:function(){return this.options["pause.ignoreSmallEvents"]},getAccurateGeoLocation:function(){return this.lastKnownLocation}};t.exports=l},5823(t,e,i){var s=i(3782);i(2477);const{default:n}=i(7276);var r=i(2507);i(5292);const{AnalyticsTag:o}=i(2784),{default:a}=i(61),{default:c}=i(474);var d={_forceStartEvent:function(t){(t=t||{}).triggeredEvents=t.triggeredEvents||[],t.triggeredEvents.push("forcedStartBeforeStopToSendMetadata");var e=this.getChronosEventParam()||{};e&&Object.keys(e).length>0&&(t.chronos=e),this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,t,void 0,void 0,()=>{}),this._adSavedError(),this._adSavedManifest(),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.START+" (FORCED), title/res: "+(t.title||t.mediaResource)),this.isStarted=!0},_startListener:function(t){!this.plugin.options.enableExtraMetricCollection||this.lastKnownLocation||this.isFetchingLocation||this.fetchLocation(),this.isInitiated?0!==this.initChrono.startTime&&(this._joinTimeMeasureAfterAdBreakAvailable()||(this._adapter.chronos.join.startTime=this.initChrono.startTime)):(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings(),0===this.initChrono.startTime&&this.initChrono.start());var e=t.data.params||{},i=this.getResource()&&"boolean"==typeof this.getIsLive()&&(this.getIsLive()||"number"==typeof this.getDuration()&&this.getDuration()>0)&&this.getTitle(),r=c.getInstance().getCommonVariable(a.Products.BALANCER,a.BalancerVariables.DECISION_FINISHED);void 0===r&&(r=!0);var d=this.getChronosEventParam()||{};if(d&&Object.keys(d).length>0&&(e.chronos=d),this.plugin.resourceTransform&&this.getResource())try{if
2(this.plugin.resourceTransform.init(this.getResource()),this.plugin.resourceTransform.isBlocking()){var h=this.plugin.resourceTransform.getWaitParams();if(this.options.waitForMetadata=!0,h&&h.length>0){for(var l=this.options.pendingMetadata||[],u=0;u<h.length;u++)-1===l.indexOf(h[u])&&l.push(h[u]);this.options.pendingMetadata=l}else this.options.pendingMetadata=[]}}catch(t){n.debug(o,"Error processing pending metadata:",t)}(i=!this.options.forceInit&&i&&this._isExtraMetadataReady()&&r&&this._isRequiredMetadataReady())&&!this.isInitiated?(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,e,void 0,void 0,()=>{}),this._adSavedError(),this._adSavedManifest(),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.START+", title/res: "+(e.title||e.mediaResource)+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:"")),this.isStarted=!0):this.isInitiated||(this.isInitiated=!0,this._adapter.chronos.join.start(),this._send(s.WillSendEvent.WILL_SEND_INIT,s.Service.INIT,e,void 0,void 0,()=>{}),this._adSavedError(),this._adSavedManifest(),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.INIT+", title/res: "+(e.title||e.mediaResource)+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))),this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},_retryStart:function(t){var e=c.getInstance().getCommonVariable(a.Products.BALANCER,a.BalancerVariables.DECISION_FINISHED);void 0===e&&(e=!0),this._isExtraMetadataReady()&&e&&this._isRequiredMetadataReady()&&(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,{triggeredEvents:["retryStart"]}),this.startDelayed=!1,this.isStarted=!0)},_joinListener:function(t){var e={};if(r.assign(e,t.data.params||{}),this._adsAdapter&&this._adsAdapter.flags.isStarted)this._adapter.monitor&&this._adapter.monitor.stop(),this._adapter.flags.isJoined=!1,this._adapter.chronos.join.stopTime=0;else{if(this._adapter){const t=this._totalAdPlayTime||0;t>0&&(this._adapter.chronos.join.offset-=t,n.debug(o,"["+this.getViewCode()+"] Subtracting ad play time from content join: "+t+"ms"));const e=this._joinTimeMeasureAfterAdBreakAvailable()?0:this._totalPrerollsTime||0;this._adapter.chronos.join.startTime=Math.min(this._adapter.chronos.join.startTime+e,(new Date).getTime()),this._totalPrerollsTime=0,this._initialPrerollTime=0}if(this.isInitiated&&!this.isStarted){var i=c.getInstance().getCommonVariable(a.Products.BALANCER,a.BalancerVariables.DECISION_FINISHED);if(void 0===i&&(i=!0),this._isExtraMetadataReady()&&i&&this._isRequiredMetadataReady()){var d=this.getChronosEventParam()||{};d&&Object.keys(d).length>0&&(e.chronos=d),this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,e,void 0,void 0,()=>{}),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.START+", title/res: "+(e.title||e.mediaResource)+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:"")),this.isStarted=!0}else this.startDelayed=!0;this._adSavedError(),this._adSavedManifest()}e=t.data.params||{},this._adsAdapter&&this.isBreakStarted&&this._adsAdapter.fireAdBreakStop(),this._send(s.WillSendEvent.WILL_SEND_JOIN,s.Service.JOIN,e,void 0,void 0,()=>{}),this.resetChronos(),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.JOIN+", duration: "+e.joinDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))}},_advancedDataListener:function(t){var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_DATA_OBJECT,s.Service.DATA_OBJECT,e),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.DATA_OBJECT+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_pauseListener:function(t){this._adapter&&(this._adapter.flags.isBuffering||this._adapter.flags.isSeeking||this._adsAdapter&&this._adsAdapter.flags.isStarted)&&this._adapter.chronos.pause.reset();var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_PAUSE,s.Service.PAUSE,e),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.PAUSE+" at "+e.playhead+"s"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_resumeListener:function(t){this._adsAdapter&&this.isBreakStarted&&!this._adsAdapter.flags.isStarted&&this._adsAdapter.fireAdBreakStop();var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_RESUME,s.Service.RESUME,e),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.RESUME+", duration: "+e.pauseDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:"")),this._adapter.chronos.pause.reset()},_seekBufferBeginListener:function(t){this._adapter&&this._adapter.flags.isPaused&&this._adapter.chronos.pause.pause(),t.type&&t.type.includes("buffer")?n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+t.type+", eventsTriggered: "+this._adapter.fireEventsStruct.buffer):n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+t.type+", eventsTriggered: "+this._adapter.fireEventsStruct.seek)},_seekEndListener:function(t){var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_SEEK,s.Service.SEEK,e),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.SEEK+" to "+e.playhead+" in "+e.seekDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_bufferEndListener:function(t){var e=t.data.params||{};(e=this.requestBuilder.fetchParams(e,["throughput"],!1,[this,this.plugin],this.options)).entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),this._send(s.WillSendEvent.WILL_SEND_BUFFER,s.Service.BUFFER,e),n.notice(o,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.BUFFER+" to "+e.playhead+" in "+e.bufferDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_errorListener:function(t){this._blockError(t.data.params)||(this.fireError(t.data.params||{}),this._adSavedError(),this._adSavedManifest())},_blockError:function(t){var e=Date.now(),i=this.getResource();
2return this._lastErrorParams&&this._lastErrorParams.errorCode===t.errorCode&&this._lastErrorParams.msg===t.msg&&this._lastErrorResource===i&&this._lastErrorTime+5e3>e?(this._lastErrorTime=e,!0):(this._lastErrorTime=e,this._lastErrorParams=t,this._lastErrorResource=i,!1)},_stopListener:function(t){try{this.resetChronos(this._viewIndex||0)}catch(t){n.debug(o,"Error resetting chronos in stop listener:",t)}this.fireStop(t.data.params||{})},_isStopReady:function(t){let e=!1;if(!this.requestBuilder.lastSent.live&&this._adsAdapter&&this._adapter&&(!this._adapter.getPlayhead()||this._adapter.getPlayhead()>=this.requestBuilder.lastSent.mediaDuration-1)){let t=0;const i=this.options["ad.expectedPattern"];if(i&&i.post&&i.post[0])t=i.post[0];else if(this.requestBuilder.lastSent.breaksTime){if(this.requestBuilder.lastSent.position===s.AdPosition.Postroll&&(t=this.requestBuilder.lastSent.givenAds),!t&&this.requestBuilder.lastSent.breaksTime){const e=this.requestBuilder.lastSent.breaksTime;e.length>0&&this.requestBuilder.lastSent.mediaDuration&&Math.round(e[e.length-1])+1>=this.requestBuilder.lastSent.mediaDuration&&(t=1)}}else e=!0;t<=this.playedPostrolls&&(e=!0)}else e=!0;return e},_videoEventListener:function(t){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT,s.Service.VIDEO_EVENT,t.data.params)},_videoEventEndListener:function(t){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT_END,s.Service.VIDEO_EVENT_END,t.data.params)},_isExtraMetadataReady:function(t){if(!this.options.waitForMetadata||this.options.pendingMetadata.length<1)return!0;try{if(this._adapter.chronos.join.startTime>0)if((new Date).getTime()-this._adapter.chronos.join.startTime>=("number"==typeof this.options["waitForMetadata.timeout.milliseconds"]?this.options["waitForMetadata.timeout.milliseconds"]:s.Metadata.REQUIRED_METADATA_TIMEOUT))return!0;const t=this.requestBuilder.getGetters();return this.options.pendingMetadata.map(function(e){if(t.hasOwnProperty(e)){if(this[t[e]])return!!this[t[e]]();if(this.plugin[t[e]])return!!this.plugin[t[e]]()}}.bind(this)).indexOf(!1)<0}catch(t){n.warn("["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Error processing isExtraMetadataReady method.")}return!0},_isRequiredMetadataReady:function(){if((new Date).getTime()-this._adapter.chronos.join.startTime<("number"==typeof this.options["waitForMetadata.timeout.milliseconds"]?this.options["waitForMetadata.timeout.milliseconds"]:s.Metadata.REQUIRED_METADATA_TIMEOUT)){try{const t=this.requestBuilder.getGetters();return this.requestBuilder.getRequiredMetadataParams().every(function(e){if(t.hasOwnProperty(e))if("function"==typeof this[t[e]]){const i=this[t[e]]();if(null!=i&&!Number.isNaN(i))return!0}else if(this.plugin&&"function"==typeof this.plugin[t[e]]){const i=this.plugin[t[e]]();if(null!=i&&!Number.isNaN(i))return!0}return!1}.bind(this))}catch(t){n.warn("["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Error processing _isRequiredMetadataReady method.")}return!1}return!0}};t.exports=d},1516(t,e,i){var s=i(1593),n=i(7680),r=i(7061);const{default:o}=i(7276);var a=i(3782),c=i(2507);const{default:d}=i(1577);var h=i(5292),l=i(2071),u=i(2995),p=i(6424);const{default:f}=i(3473),{default:g}=i(474),{default:m}=i(3555),{default:v}=i(61),{ExpireDefault:y,Method:S,AnalyticsTag:_,CoreEvents:b}=i(2784);var T=s.extend({constructor:function(t,e,i,s){this._key=t,this.plugin=e,this.isInitiated=!1,this.isAdsManifestSent=!1,this.isAdsPreFinished=!1,this.isAdsPreJoined=!1,this.playedPostrolls=0,this.isBreakStarted=!1,this.initChrono=new n,this.options=new r(i),this._adNumber=0,this._adNumberInBreak=0,this._initialPrerollTime=0;const o=1e3*g.getInstance().getFastDataService().getViewTimeoutTime();this.expirationManager=new f(o,y.DEFAULT_MAX_DURATION_VIEW_MS),this._boundCoreEventListener=this._coreEventListener.bind(this),g.getInstance().subscribeListener(this._boundCoreEventListener),this._currentPingTime=void 0,this.requestBuilder=new l,this.hybridNetwork=new u,this.resizeScrollDetector=new p(e,this),this._adapter=null,this._adsAdapter=null,this._chronos=[],this._chronosObject={},s&&this.setAdapter(s,e),this._pluginLogsQueue=[],this.lastEventTime=null,this.lastKnownLocation=void 0,this.isFetchingLocation=!1,this._previousVideoMetrics=null,this.sendingPings=!1,this._startPings()},mergeOptions:function(t){t&&this.options.setOptions(t,this.options)},setVideoOptions:function(t){t&&this.options.setOptions(t)},updateCustomMetrics:function(t){t&&this.options.setOptions(t,void 0,!0)},getVideoKey:function(){return this._key},nextView:function(){return this._viewIndex=(new Date).getTime(),this._viewCode=g.getInstance().getFastDataSessionToken(),g.getInstance().registerCommonVariable(v.Products.VIDEO_ANALYTICS,v.AnalyticsVariables.VIEW_CODE,this._viewIndex),this.getViewCode()},getViewCode:function(){const t=g.getInstance().getFastDataSessionToken();return 0===t.length||this._viewCode&&this._viewCode===t||(this._viewCode=t),this._viewCode+(this._viewIndex?`_${this._viewIndex}`:"")},startChrono:function(t){t&&this._chronos&&Array.isArray(this._chronos)&&(this.removeChrono(t),this._chronos.push({event:t,start:(new Date).getTime()}))},stopChrono:function(t){if(t&&this._chronos&&Array.isArray(this._chronos))for(let i=0;i<this._chronos.length;i++)if(this._chronos[i].event===t){var e=(new Date).getTime();this._chronos[i].end=e,this._chronos[i].start&&(this._chronos[i].duration=e-this._chronos[i].start);break}},removeChrono:function(t){if(t&&this._chronos&&Array.isArray(this._chronos))for(let e=0;e<this._chronos.length;e++)if(this._chronos[e].event===t){this._chronos.splice(e,1);break}},setChronoDuration:function(t,e){if(t&&e&&this._chronos&&Array.isArray(this._chronos)){var i=!1;for(let s=0;s<this._chronos.length;s++)if(this._chronos[s].event===t){this._chronos[s].duration=e,i=!0;break}i||this._chronos.push({event:t,start:(new Date).getTime(),duration:e})}},getChronosEventParam:function(){const t=this._chronosObject||{};try{if(Object.keys(t).length>0)return t;if(!this._chronos||0===this._chronos.length)return t;for(let e=0;e<this._chronos.length;e++){const i=this._chronos[e],s=this._chronos[e+1],n=i.duration?i.duration:i.end&&i.end>0?i.end-i.start:s?s.start-i.start:Date.now()-i.start;t[i.event]=n}this._chronosObject=t}catch(t){o.debug(_,"Error calculating chronos:",t)}return t},resetChronos:function(t){Array.isArray(this._chronos)||(this._chronos=[]),t&&t>0?this._chronos.length>0&&(this._chronos=this._chronos.filter(e=>e.start>=t)):this._chronos=[],this._chronosObject={}}
2,setAdapter:function(t,e){for(var i in this.plugin=e,this._adapter=t,this._adapter.setIsAds(!1),this._adapter._setAdapter=!0,this.contentAdapterListeners={},this.contentAdapterListeners[h.Event.START]=this._startListener.bind(this),this.contentAdapterListeners[h.Event.JOIN]=this._joinListener.bind(this),this.contentAdapterListeners[h.Event.DATA_OBJECT]=this._advancedDataListener.bind(this),this.contentAdapterListeners[h.Event.PAUSE]=this._pauseListener.bind(this),this.contentAdapterListeners[h.Event.RESUME]=this._resumeListener.bind(this),this.contentAdapterListeners[h.Event.SEEK_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[h.Event.SEEK_END]=this._seekEndListener.bind(this),this.contentAdapterListeners[h.Event.BUFFER_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[h.Event.BUFFER_END]=this._bufferEndListener.bind(this),this.contentAdapterListeners[h.Event.ERROR]=this._errorListener.bind(this),this.contentAdapterListeners[h.Event.STOP]=this._stopListener.bind(this),this.contentAdapterListeners[h.Event.VIDEO_EVENT]=this._videoEventListener.bind(this),this.contentAdapterListeners[h.Event.VIDEO_EVENT_END]=this._videoEventEndListener.bind(this),this.contentAdapterListeners)this._adapter.on(i,this.contentAdapterListeners[i]);this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},getAdapter:function(){return this._adapter},removeAdapter:function(){try{if(this._adapter){if(this._adapter.dispose(),this.contentAdapterListeners){for(var t in this.contentAdapterListeners)this._adapter.off(t,this.contentAdapterListeners[t]);delete this.contentAdapterListeners}this._adapter=null}}catch(t){o.error(_,"Is not possible to remove adapter for video: "+this._key)}},dispose:function(){this._boundCoreEventListener&&(g.getInstance().unsubscribeListener(this._boundCoreEventListener),this._boundCoreEventListener=null),this._stopPings()},getAdsAdapter:function(){return this._adsAdapter},fetchLocation:function(){if(this.isFetchingLocation=!0,navigator&&navigator.geolocation){const t={enableHighAccuracy:!0,timeout:1e4};this.lastKnownLocation=void 0,navigator.geolocation.getCurrentPosition(t=>{this.lastKnownLocation={latitude:t.coords.latitude,longitude:t.coords.longitude},this.isFetchingLocation=!1},t=>{this.isFetchingLocation=!1},t)}else this.lastKnownLocation=void 0,this.isFetchingLocation=!1},shouldStartRenditionTimer:function(){if(!this._adapter.getAdapterClass("detectQualityChange")&&!this.renditionInterval){const t=this.options.renditionQueryInterval<100?100:this.options.renditionQueryInterval;this.renditionInterval=setInterval(()=>{const t=this._adapter.getRendition();t&&this.triggerUpdateRendition(t)},t||250)}},triggerUpdateRendition:function(t){this.lastObservedRendition?this.lastObservedRendition!==t&&(this.lastObservedRendition=t):this.lastObservedRendition=t},fireInit:function(t,e){this.isInitiated||(!this.getAdapter()||this.getAdapter()&&!this.getAdapter().flags.isStarted)&&(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings(),this.initChrono.start(),this.isInitiated=!0,t=t||{},e&&(t.triggeredEvents=[e]),this._send(a.WillSendEvent.WILL_SEND_INIT,a.Service.INIT,t),this._adSavedError(),this._adSavedManifest(),o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+a.Service.INIT+", title/res: "+(t.title||t.mediaResource)+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:"")))},fireError:function(t,e,i,s,n,r,d){this.fireInit(void 0,"error");var h=c.buildErrorParams(t,e,i,d);h.entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),h.code&&delete h.code,n&&(h.triggeredEvents=[n]);try{(r=r||!1)&&this._adapter&&((h=h||{}).errorType="fatal")}catch(t){o.debug(_,"Error setting fatal error type:",t)}this._send(a.WillSendEvent.WILL_SEND_ERROR,a.Service.ERROR,h),this._adSavedError(),this._adSavedManifest(),o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+a.Service.ERROR+", errorType: "+h.errorType+", errorCode: "+h.errorCode+(h.triggeredEvents?", eventsTriggered: "+h.triggeredEvents:"")),"fatal"===h.errorType&&this.fireStop()}
2,fireFatalError:function(t,e,i,s,n,r){this.fireError(t,e,i,s,n,!0,r)},fireStop:function(t,e){if(this.isInitiated||this.isStarted){if(this.isInitiated&&!this.isStarted&&this.options.waitForMetadata&&this.options.pendingMetadata&&this.options.pendingMetadata.length>0){o.warn(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Forcing START before STOP - video ended while waiting for metadata: ["+this.options.pendingMetadata.join(", ")+"]");var i=this.requestBuilder.fetchParams({},this.options.pendingMetadata,!1,[this,this.plugin],this.options);this._forceStartEvent(i)}this._adapter&&(this._adapter.flags.isStopped=!0,this._adapter.monitor&&this._adapter.monitor.stop()),this._adsAdapter&&this.isBreakStarted&&(this._adsAdapter.fireStop(),this._adsAdapter.fireAdBreakStop()),this.expirationManager&&this.expirationManager.reset(),(t=t||{}).entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),e&&(t.triggeredEvents=[e]),this._send(a.WillSendEvent.WILL_SEND_STOP,a.Service.STOP,t,void 0,void 0,()=>{});var s=this._adapter?this._adapter.chronos:null;s&&(s.total.stop(),s.join.reset(),s.pause.reset(),s.buffer.reset(),s.seek.reset()),this.lastKnownLocation=void 0,this.observedRenditions=[],this.renditionInterval&&(clearInterval(this.renditionInterval),this.renditionInterval=void 0),o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+a.Service.STOP+" at "+t.playhead+"s"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:"")),this._reset()}},fireOfflineEvents:function(t){this.options&&!this.options.offline?this.isInitiated||this._adapter&&this._adapter.flags.isStarted||this._adsAdapter&&this._adsAdapter.flags.isStarted?o.error(_,"Adapters have to be stopped"):(this._offlineParams=t,g.getInstance().getFastDataService().getAccountCode()&&g.getInstance().getFastDataSessionToken()?this._generateAndSendOffline():this.offlineReference=this._generateAndSendOffline.bind(this)):o.error(_,"To send offline events, offline option must be disabled")},_generateAndSendOffline:function(){if(this.options.disableStorage)return null;const t=this._offlineParams;for(;;){var e=this.requestBuilder.buildBody(a.Service.OFFLINE_EVENTS,[this,this.plugin]).viewJson;if(null===e[0])break;var i=this.plugin.getNextViewIndex(this),s=e[0].replace(/CODE_PLACEHOLDER/g,i.toString()).replace(/,"sessionId":"SESSION_PLACEHOLDER"/g,"").replace(/,"sessionRoot":"ROOT_PLACEHOLDER"/g,"");this._send(a.WillSendEvent.WILL_SEND_OFFLINE_EVENTS,a.Service.OFFLINE_EVENTS,t,s,"POST",function(t,e){this.plugin.offlineStorage.removeView(e.offlineId)}.bind(this),{offlineId:e[1]})}this.plugin.offlineStorage.sent(),this._offlineParams=null},_reset:function(){try{this._stopPings(),this.resetExpirationManager(),this._adapter&&this._adapter.flags.reset(),this._viewIndex=void 0,this.isInitiated=!1,this.isStarted=!1,this.startDelayed=!1,this.isAdsManifestSent=!1,this.isAdsPreFinished=!1,this.isAdsPreJoined=!1,this.initChrono.reset(),this._totalPrerollsTime=0,this._initialPrerollTime=0,this.requestBuilder.lastSent.breakNumber=0,this.requestBuilder.lastSent.adNumber=0,this._savedAdManifest=null,this._savedAdError=null,this.playedPostrolls=0,this.isBreakStarted=!1,this._adNumber=0,this._adNumberInBreak=0,this._previousVideoMetrics=null}catch(t){o.debug(_,"Error resetting ad analytics state:",t)}},resetExpirationManager:function(){this.expirationManager&&this.expirationManager.reset()},_coreEventListener:function(t){if(t===b.FAST_DATA_READY){const t=1e3*g.getInstance().getFastDataService().getPingTime();return void("number"==typeof t&&t>0&&this._currentPingTime!==t&&(this._currentPingTime=t,this.sendingPings&&(this._stopPings(),this._startPings())))}t===b.SESSION_EXPIRE&&(o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Closing View by Session Expire Event"),this.fireStop())},_expiredSession:function(){return!(!this.expirationManager||!this.expirationManager.isExpired()||(o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Closing View by Expire Event"),this.fireStop(),0))}
2,_send:function(t,e,i,s,n,r,o){if(e!==a.Service.STOP&&this._expiredSession())return;const c=d.methodFromString(n),h=(new Date).getTime();this.options.preventZombieViews&&this.lastEventTime&&h>this.lastEventTime+6e5&&this.plugin.getNextViewIndex(this),this.lastEventTime=e===a.Service.STOP?null:h;const l=new m(e,i,this.getVideoKey(),c,void 0,r,void 0,e!==a.Service.STOP?this.expirationManager:void 0);this.plugin.resourceTransform.parse(l),i=this.requestBuilder.buildParams(i,e,[this,this.plugin],this.options),!0===this.getIsLive()&&(i.mediaDuration=this.options["content.duration"],i.playhead=void 0),l.setParams(i),s&&l.setBody(s),l.setMethod(c),this.plugin.isMethodPostEnabled()&&l.setMethod(S.POST);const u={params:l.getParams(),plugin:this,adapter:this.getAdapter(),adsAdapter:this.getAdsAdapter()};this.emit(t,u),this.plugin.analyticsRequestHandler&&(null!==i||void 0!==n)&&this.options.enabled&&(this.plugin.lastServiceSent=e,this.plugin.analyticsRequestHandler.sendRequest(l))},firePlayerLog:function(t){try{if(this.plugin.isPlayerLogsEnabled())if(this._adapter&&!this._adapter.isStarted())t.timemark=(new Date).getTime(),this._pluginLogsQueue.push(t);else{for(;this._pluginLogsQueue.length>0;){var e=this._pluginLogsQueue.shift();this._sendPlayerLog(e)}this._sendPlayerLog(t)}}catch(t){o.debug(_,"Error queuing player log:",t)}},_sendPlayerLog:function(t){try{t&&t.logType&&t.logAction&&o.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") PlayerLog "+t.logType+": Action "+t.logAction),this.plugin._comm&&t&&null!==(t=this.requestBuilder.buildParams(t,a.Service.VIDEO_PLUGIN_LOGS,this,this.options))&&this._send(null,a.Service.VIDEO_PLUGIN_LOGS,t)}catch(t){o.debug(_,"Error sending player log:",t)}}});c.assign(T.prototype,i(3051)),c.assign(T.prototype,i(5823)),c.assign(T.prototype,i(9346)),c.assign(T.prototype,i(2254)),c.assign(T.prototype,i(4392)),t.exports=T},4392(t,e,i){const{default:s}=i(7276);var n=i(3782);const{default:r}=i(474),{default:o}=i(3555),{AnalyticsTag:a,Method:c}=i(2784),{default:d}=i(1577),{default:h}=i(61);var l={_startPings:function(){if(!this.sendingPings){var t=this.plugin.isMethodPostEnabled()?c.POST:c.GET;const e=1e3*r.getInstance().getFastDataService().getPingTime();this._currentPingTime=e,r.getInstance().pushPeriodicDataFromCallback(this.plugin.options.offline?h.Consumer.PERSISTENT:h.Consumer.NQS,this.getVideoKey(),n.Service.PING,e,t,this._sendPing.bind(this),this._onPingSuccess.bind(this),void 0,this.expirationManager),this.sendingPings=!0}},_onPingSuccess:function(){this.lastEventTime=(new Date).getTime()},_stopPings:function(){r.getInstance().unregisterPeriodicPush(this.getVideoKey()),this.sendingPings=!1},_sendPing:function(){if(!this.plugin.analyticsRequestHandler.shouldSendStats())return;if(!this._adapter||!this.isInitiated&&!this._adapter.flags.isStarted||this._adapter.flags.isStopped)return;if(this._expiredSession())return;const t=(new Date).getTime(),e=this._currentPingTime||1e3*r.getInstance().getFastDataService().getPingTime()||5e3,i=this.timeSinceLastPing?t-this.timeSinceLastPing:e;this.timeSinceLastPing=t;var d={diffTime:i,entities:this.requestBuilder.getChangedEntities([this,this.plugin],this.options)};if(this._adapter&&(d=this._adapter.flags.isPaused?this.requestBuilder.fetchParams(d,["pauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(d,["bitrate","throughput","fps"],!1,[this,this.plugin],this.options),this._adapter.flags.isJoined&&(d=this.requestBuilder.fetchParams(d,["playhead"],!1,[this,this.plugin],this.options)),this._adapter.flags.isBuffering&&(d=this.requestBuilder.fetchParams(d,["bufferDuration"],!1,[this,this.plugin],this.options)),this._adapter.flags.isSeeking&&(d=this.requestBuilder.fetchParams(d,["seekDuration"],!1,[this,this.plugin],this.options))),this._adsAdapter&&!this.options["ad.ignore"]&&(this._adsAdapter.flags.isStarted&&(d=this.requestBuilder.fetchParams(d,["adPlayhead","adViewedDuration","adViewability"],!1,[this,this.plugin],this.options),d=this._adsAdapter.flags.isPaused?this.requestBuilder.fetchParams(d,["adPauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(d,["adBitrate"],!1,[this,this.plugin],this.options)),this._adsAdapter.flags.isBuffering&&(d=this.requestBuilder.fetchParams(d,["adBufferDuration"],!1,[this,this.plugin],this.options))),d=this.requestBuilder.buildParams(d,n.Service.PING,[this,this.plugin],this.options),this.controlPlayerExists()&&this._adapter&&!this._adapter.checkExistsPlayer())return s.debug(a,"Detected player no exists, and fire stop event"),void this._adapter.fireStop();var h=this.plugin.isMethodPostEnabled()?c.POST:c.GET;const l=new o(n.Service.PING,d,this.getVideoKey(),h,void 0,void 0,void 0,this.expirationManager);let u=l.getVideoKey(),p=l.getService();const f=this.plugin.analyticsRequestHandler.onWillSendVideoRequestListeners;for(const t of f)t(p,u,d);return this.plugin.analyticsRequestHandler.prepareParams(l),s.verbose(a,n.Service.PING),this.startDelayed&&this._retryStart(),l.getParams()}};t.exports=l},3199(t,e,i){var s=i(1593);const{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var o=s.extend({constructor:function(t){this.plugin=t,this.videos={}},existsVideo:function(t){return t=t||"default",!!this.videos[t]},getVideo:function(t){if(t=t||"default",this.videos[t])return this.videos[t]},setVideo:function(t){this.videos[this._parseVideoKey(t.getVideoKey())]=t},getVideoKeys:function(){return Object.keys(this.videos)},existsAdapter:function(t){return t=t||"default",!(!this.videos[t]||!this.videos[t]._adapter)}
2,getAdapter:function(t){if(t=t||"default",this.videos[t])return this.videos[t].getAdapter()},setAdapter:function(t,e){e=e||"default",this.videos[e]&&this.videos[e].setAdapter(t,this.plugin)},getAdsAdapter:function(t){if(t=t||"default",this.videos[t])return this.videos[t].getAdsAdapter()},removeAdapter:function(t,e){e=e||"default";try{this.videos[e]&&this.videos[e].removeAdapter()}catch(t){n.error(r,"Is not possible to remove adapter for video: "+e)}},removeAllAdapters:function(){for(const t of Object.keys(this.videos))this.videos[t].removeAdapter(),this.videos[t].removeAdsAdapter(),this.videos[t].dispose()},sendRequest:function(t,e,i,s,o,a,c,d){t=t||"default",this.videos[t]?this.videos._send(this._key,e,i,s,o,a,c,d):n.error(r,"Can't send request for not existent video object")},updateAllOptions:function(t){for(const e in this.videos)for(const i in t)this.videos[e].options[i]=t[i];t["adapters.templates"]&&(this.plugin._setAdapterTemplates(t["adapters.templates"]),this.updateAdapterTemplates(t["adapters.templates"]))},updatePingInterval:function(t){for(var e in this.videos)this.videos[e]._ping.interval=t},updateAdapterTemplates:function(t){if(t&&this.videos)for(var e in this.videos)this.videos[e]._adapter&&this.videos[e]._adapter.updateAdapterTemplates(t)},resetVideo:function(t){t=t||"default",this.video[t]&&this.video[t]._reset()},_parseVideoKey:function(t){return t||"default"}});t.exports=o}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.amdO={},__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>ba});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{VERSION:()=>yn,addSidxSegmentsToPlaylist:()=>Bs,generateSidxKey:()=>qs,inheritAttributes:()=>mn,parse:()=>Sn,parseUTCTiming:()=>_n,stringToMpdXml:()=>vn,toM3u8:()=>Ks,toPlaylists:()=>sn});var e=__webpack_require__(474),i=__webpack_require__(7276),s=__webpack_require__(2784);const n=T;!function(t){const e=T,i=t();for(;;)try{if(377923==parseInt(e(453))/1*(parseInt(e(457))/2)+-parseInt(e(463))/3*(-parseInt(e(461))/4)+parseInt(e(440))/5*(parseInt(e(462))/6)+parseInt(e(434))/7+parseInt(e(442))/8+-parseInt(e(444))/9+-parseInt(e(424))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(P);const r={CDN:n(431)},o={Success:"ok",Fail:n(410),Progress:"pr"},a={Updated:n(467),Success:"ok",Fail:"nok"},c={host:n(429),devHost:n(471),devDomains:[n(423),n(412)],service:n(435),decisionCallWaitTime:3e4,decisionReloadIntervalPerManifestMilliseconds:3e4},d=[n(437),n(419),n(451),n(414),n(427),".m4f",".cmfv",n(474)],h=[n(426),n(469)],l=[n(436),".cmfa",n(416)],u=[n(456),n(439),n(450),n(465),n(417)],p={connect:n(448),close:"close",error:n(443),data:n(441),ping:n(413),pong:n(460)},f=(n(475),"_CDN_Bypass"),g=n(430),m=n(445),v={optimizedScore:n(466),optimizedFeedback:n(476),bestScore:"bestScore",qualityPriority:n(421),cdnPriority:"cdnPriority",none:n(454)},y={max:25e6,min:2e5,default:2e5},S=(n(420),n(452),{data:n(464),absent:n(438),map:n(425),newSegmentAvailable:n(459),segmentState:"SEGMENT_STATE",request:"SEGMENT_REQUEST",cancel:n(428),ping:n(411),pong:n(432)}),_={ACQUIRING:"ACQUIRING",READY:n(458),FAILED:n(473),EVICTED:n(446),UNKNOWN:n(468)},b={NONE:n(472),PRIMARY:"PRIMARY",BACKUP:n(422)};function T(t,e){return t-=410,P()[t]}const w={emaAlpha:.3,minSamplesForSpeed:2},E={command:n(418),id:"data_spec_key",size:"size",storageSize:"ss",map:"keys",identifier:n(447),splits:n(415),time:0,simpleMapKeys:"k",simpleMapSize:"s",dateTime:"dt",createdAt:"ca",state:n(449),role:n(455),leaseMs:n(433)},A={bandwidth_test:2,message:1,data:0},I={maxMessageSize:65532,probability:1,timeout:2500,maxConcurrency:6,maxConnectedPeers:16,tracker:n(470),upload:!1},R={version:2};function P(){const t=["updated","UNKNOWN",".mpd","wss://p2p-tracker.youbora.com/webrtc","stage-smartswitchv2.youbora.com","NONE","FAILED",".m4v","BLACKLIST","optimizedFeedback","nok","PING","qa.npaw.com","ping",".cmf","splits",".m4a",".webvtt","command",".m4s","random","qualityPriority","BACKUP","stage.npaw.com","5847460EzlXfo","SEGMENTS_MAP",".m3u8",".dash","CANCEL_SEGMENT_REQUEST","gnsnpaw.com","_CDN_Blacklist","/cdn","PONG","lease_ms","1274525faZxEo","/decision",".aac",".mp4","SEGMENT_ABSENT",".vtt","420220jvjQlP","data","356928THOCfn","error","3927321FHItKS","_CDN_Origin","EVICTED","identifier","connect","state",".ssa",".ts","default","7443kMXuhd","none","role",".srt","46gHFTSl","READY","NEW_SEGMENT_AVAILABLE","pong","1329964TiHNna","24zYdKxc","6TcbiJz","SEGMENT_DATA",".ass","optimizedScore"];return(P=function(){return t})()}const D={expiration:3e5,count:60,safeMaxCount:300},C={retries:5,retryDelay:100,defaultBwThreshold:2e5,connectTimeoutMilliseconds:1e4,readTimeoutMilliseconds:5e3,callTimeoutMilliseconds:2e4,totalTimeoutMilliseconds:35e3,requestTimeoutMilliseconds:2e4,minRequestSizeForBwEstimateKB:100},N={totalDataInterval:6e4},L={callTimeoutMilliseconds:500,timeBetweenCallsMilliseconds:1e3,timeBetweenBurstsMilliseconds:5e3},B={lastMeasurementWeight:.5,maximumRelativeDeltaForTrial:.2,minimumDurationSinceLastUsedForTrialMilliseconds:3e4,chunkExpirationProbingMs:3e4,probingPolicy:"GET_RETRY_HEAD"},k={minRelativeImprovement:.3,minAbsoluteImprovementMs:25,emaAlpha:.3},x={onlyForVideoSegments:!0},M=O;function O(t,e){return t-=322,U()[t]}function U(){const t=["list","includes","type","isAudio","54KFqBLe","pathname","formatParameters","isValidUrl","3974665YlxVUL","https://","isHeaderMatch","keys","returnRandom","isSubtitles","lastIndexOf","undefined","url","getRouteAndFilename","now","607818WOTSjY","findPathMach","isManifest","string","1005984YMtmII","2fQwZzy","endsWith","slice","forEach","filter","716890fQVsmm","getPath","316812TXuTCp","8qVJCyp","isMedia","http://","substr","toString","ifByteArrayToString","round","fromCharCode","nowMs","length","3650586ODyKrT","map","229883ZVZTEp","host","push","pattern","function","regex","indexOf","replace","random"];return(U=function(){return t})()}!function(t){const e=O,i=t();for(;;)try{if(787992==-parseInt(e(367))/1*(parseInt(e(347))/2)+parseInt(e(365))/3+-parseInt(e(354))/4+-parseInt(e(331))/5+parseInt(e(342))/6+-parseInt(e(346))/7*(-parseInt(e(355))/8)+-parseInt(e(327))/9*(-parseInt(e(352))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(U);class q{static[M(340)](t){const e=M,i=new URL(t),s=i.origin+i[e(328)],n=s[e(337)]("/")+1;return{route:s[e(349)](0,n),fileName:s.slice(n)}}static[M(353)](t){const e=M;return{path:new URL(t)[e(328)]}}static delay(t){return new Promise(e=>setTimeout(e,t))}static[M(363)](){const t=M;return typeof performance!==t(338)&&typeof performance[t(341)]===t(371)?performance[t(341)]():Date[t(341)]()}static[M(343)](t,e,i){const s=M;let n=i[s(339)];t=t.split("?")[0];let r=new URL(t),o=new URL(e);r[s(368)]!=o[s(368)]&&(r[s(368)]=o.host,t=r[s(359)]());let a=e;if(null!=e&&""!=e)for(;!t.includes(a)&&a[s(324)]("/");){a[s(348)]("/")&&(a=a.substr(0,a[s(364)]-1));let t=a.substr(a[s(337)]("/"),a[s(364)]);if((n[s(348)](t)||n[s(348)](t+"/"))&&(n.endsWith("/")&&(n=n[s(358)](0,n[s(364)]-1)),n=n[s(358)](0,n[s(337)]("/")+1)),a=a.substr(0,a[s(337)]("/")+1),a==s(332)||a==s(357))return""}return t[s(374)](a,n)}static sliceByFirstSpecial(t,e=!1){const i=M;let s=[t[i(373)]("?")];return e&&s[i(369)](t[i(373)](";")),s=s[i(351)](t=>-1!=t),t[i(349)](0,Math.min(...s))}static[M(356)](t){let e=!1;return d[M(350)](i=>{e=e||t.endsWith(i)}),e}static[M(344)](t,e=!1){const i=M;let s=!1;const n=e?q.sliceByFirstSpecial(t,e):t;return h[i(350)](t=>{s=s||n[i(348)](t)}),s}static[M(326)](t){let e=!1;return l[M(350)](i=>{e=e||t.endsWith(i)}),e}static[M(336)](t){let e=!1;return u[M(350)](i=>{e=e||t.endsWith(i)}),e}static bufferToString(t){return String[M(362)].apply(null,new Uint8Array(t))}static[M(335)](t){const e=M;let i="";const s=t[e(364)]-1;return s>0&&(i=t[Math[e(361)](Math[e(322)]()*s)]),i}static[M(329)](t){const e=M;return"?"+Object[e(334)](t)[e(366)](function(e){return""===t[e]?""
2:e+"="+encodeURIComponent(t[e])}).join("&")}static[M(360)](t){const e=M;if(typeof t!=e(345)){const s=new Uint8Array(t);let n="";for(var i=0;i<s[e(364)];i++)n+=String.fromCharCode(s[i]);return n}return t}static[M(330)](t){try{return new URL(t),!0}catch(t){return!1}}static[M(333)](t,e){const i=M;let s=!1;return e[i(325)]===i(323)?s=e[i(370)][i(366)](t=>t)[i(324)](t):e[i(325)]===i(372)&&(s=new RegExp(e[i(370)]).test(t)),s}}const V=H;function F(){const t=["4971rvRlHB","load","manifest","onreadystatechange","91145abazGI","status","478706wTHZSH","readyState","Theoplayer interceptor - Intercepting request to -> ","endsWith","verbose","url","length","headers","responseType","removeRequestInterceptor","_totalDownloadedBytes","24jbLzva","responseURL","314qiyBrK","waitUntil","network","156ceRYzK","isNaN","_player","addRequestInterceptor","method","320GrDLAZ","byteLength","arraybuffer","setRequestHeader","Theoplayer interceptor - Completed request for -> ","respondWith","2457371gRbyrj","now",".mpd","451998BXLYXX","528692RGhtbD","type","ifByteArrayToString","_interceptor","body",".m3u8","_totalDownloadTime","statusText","pathname","_cdnBalancer","274747NYRhHB","setEstimator","useTheoplayer","response"];return(F=function(){return t})()}function H(t,e){return t-=181,F()[t]}!function(t){const e=H,i=t();for(;;)try{if(262793==parseInt(e(227))/1+parseInt(e(189))/2*(-parseInt(e(221))/3)+-parseInt(e(207))/4+-parseInt(e(225))/5*(-parseInt(e(192))/6)+parseInt(e(203))/7+-parseInt(e(187))/8*(-parseInt(e(206))/9)+-parseInt(e(197))/10*(parseInt(e(217))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(F);class G{constructor(t,e){const i=H;this[i(186)]=0,this[i(213)]=0,this[i(194)]=t,this[i(216)]=e}[V(222)](){const t=V;this._player&&this[t(216)]&&(this[t(186)]=0,this[t(213)]=0,this._cdnBalancer[t(219)](),this[t(195)]())}unload(){const t=V;this[t(194)][t(191)][t(185)](this._interceptor)}addRequestInterceptor(){const t=V;this[t(210)]=e=>{const n=t;e[n(190)](t=>{const r=n,o=new XMLHttpRequest;let a=0,c=0,d=0;"stream"===e[r(184)]?o[r(184)]=r(199):o[r(184)]=e[r(184)],o[r(224)]=n=>{const h=r;if(1===o.readyState&&e.type!==h(223)&&(a=Date[h(204)]()),2===o[h(228)]&&e.type!==h(223)&&(c=Date[h(204)](),d=c-a),4===o[h(228)]){const n={status:o[h(226)],statusText:o[h(214)],body:void 0};if(o[h(226)]>=200&&o.status<400){const t=new URL(e.url)[h(215)];if(t[h(230)](h(212))||t[h(230)](h(205))?n[h(211)]=q[h(209)](o.response):n[h(211)]=o.response,e[h(208)]!==h(223)&&d>0){let t=Date[h(204)]()-c;this._totalDownloadTime+=t,this[h(186)]+=o[h(220)].byteLength;let e=this[h(186)]/(this[h(213)]/1e3);Number[h(193)](e)&&(e=("string"==typeof o[h(220)]?o[h(220)][h(182)]:o[h(220)][h(198)])/(d/1e3)),this._player[h(191)][h(218)]({bandwidth:8*e,roundTripTime:d/1e3,createMeasurer:()=>{}})}e[h(202)](n)}else e.respondWith(n);i.default[h(231)](s.BalancerTag,h(201)+o[h(188)]),t()}},i.default.verbose(s.BalancerTag,r(229)+e[r(181)]),o.open(e[r(196)],e[r(181)]);for(const t in e[r(183)])o[r(200)](t,e[r(183)][t]);o.send(e[r(211)])})},this[t(194)].network[t(195)](this._interceptor)}}function j(t,e){return t-=341,X()[t]}const W=j;function X(){const t=["20770720iiERbZ","9DtJWdS","1207524nkWhYr","loadInterceptor","1218092hrhoWt","loadedInterceptors","8863812ezPpfD","theoplayer","push","1152969FvfAKF","load","removeInterceptors","7248990MrKABf","10421369OznTSo","toLowerCase","_cdnBalancer"];return(X=function(){return t})()}!function(t){const e=j,i=t();for(;;)try{if(773357==parseInt(e(350))/1+-parseInt(e(345))/2+parseInt(e(342))/3*(-parseInt(e(343))/4)+-parseInt(e(353))/5+parseInt(e(347))/6+-parseInt(e(354))/7+parseInt(e(341))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(X);class z{constructor(t){const e=j;this[e(346)]=[],this[e(356)]=t}[W(344)](t,e){const i=W;let s;t[i(355)]()===i(348)&&(s=new G(e,this._cdnBalancer)),s&&(s[i(351)](),this[i(346)][i(349)](s))}[W(352)](){const t=W;for(const e of this[t(346)])null==e||e.unload()}}const K=Z;function J(){const t=["1577168HpAXbO","759822AQvayt","readystatechange","installedGetResponseHeader","call","getResponseHeader","load","GET","open","lengthComputable","getOwnPropertyDescriptor","loaded","loadstart","__balancerRestoreMirroredState","function","6590XgTtbM","defineProperty","cleanup","wireShadow","onreadystatechange","prepareOriginal","savedDescriptors","original","19415YBYBSC","44iPyQeN","error","savedGetAllResponseHeaders","96258algyGc","shadow","dispatchEvent","loadend","terminated","response","__balancerShadowBridge","installedGetAllResponseHeaders","onloadend","196635WFliiO","6329456uSFygN","createEvent","timeout","80ojRZaQ","getAllResponseHeaders","initEvent","started","total","ontimeout","set","statusText","responseText","mirror","withCredentials","abort","3464lhEJLG","number","undefined","responseType","savedGetResponseHeader","isAsync","setRequestHeader","12429seEiTE","responseURL","entries","natives","onprogress"];return(J=function(){return t})()}!function(t){const e=Z,i=t();for(;;)try{if(462925==parseInt(e(257))/1+-parseInt(e(256))/2+parseInt(e(292))/3*(-parseInt(e(280))/4)+parseInt(e(296))/5*(-parseInt(e(283))/6)+parseInt(e(293))/7+parseInt(e(244))/8*(-parseInt(e(251))/9)+-parseInt(e(271))/10*(-parseInt(e(279))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(J);const $=["readyState","status",K(239),K(288),K(240),K(252)],Y=new Set([K(286)]);class Q{constructor(t,e){const i=K;this[i(277)]=new Map,this[i(259)]=!1,this[i(290)]=!1,this[i(299)]=!1,this[i(287)]=!1,this[i(278)]=t,this[i(254)]=e,this[i(284)]=new XMLHttpRequest}start(t,e={}){const i=K;if(this[i(299)])return;this.started=!0;const s=this[i(278)].__balancerRestoreMirroredState;if(typeof s===i(270))try{s()}catch(t){}this[i(276)](),this.wireShadow(),this[i(254)][i(264)].call(this[i(284)],i(263),t,!1!==this[i(278)].isAsync);try{this[i(278)][i(247)]&&(this[i(284)][i(247)]=this.original.responseType)}catch(t){}try{this[i(278)][i(242)]&&(this.shadow.withCredentials=this.original.withCredentials)}catch(t){}this[i(278)][i(295)]&&!1!==this[i(278)][i(249)]&&(this[i(284)].timeout=this[i(278)][i(295)]);for(const[t,s]of Object[i(253)](e))try{this.natives[i(250)][i(260)](this.shadow,t,s)}catch(t){}this[i(278)][i(289)]=this,this.natives.send[i(260)](this.shadow)}[K(243)](){const t=K;if(!this[t(287)]){try{this[t(254)].abort[t(260)](this[t(284)])}catch(t){}this[t(273)]()}}[K(276)](){const t=K;
2for(const e of $){const i=Object[t(266)](this.original,e);this[t(277)][t(238)](e,i);try{Object[t(272)](this[t(278)],e,{configurable:!0,writable:!0,value:this[t(278)][e]})}catch(t){}}this[t(248)]=Object[t(266)](this[t(278)],"getResponseHeader"),this[t(282)]=Object[t(266)](this[t(278)],t(297));const e=this[t(284)];try{Object[t(272)](this[t(278)],t(261),{configurable:!0,writable:!0,value:i=>e[t(261)](i)}),this[t(259)]=!0}catch(t){}try{Object[t(272)](this[t(278)],t(297),{configurable:!0,writable:!0,value:()=>e.getAllResponseHeaders()}),this[t(290)]=!0}catch(t){}}[K(274)](){const t=K,e=this[t(284)];e.onloadstart=e=>this[t(241)](t(268),e),e[t(255)]=t=>this.mirror("progress",t),e[t(275)]=e=>this[t(241)](t(258),e),e.onload=e=>this[t(241)](t(262),e),e.onerror=e=>this[t(241)](t(281),e),e[t(237)]=e=>this[t(241)](t(295),e),e[t(291)]=e=>this[t(241)](t(286),e)}[K(241)](t,e){const i=K;if(this[i(287)])return;const s=this[i(284)],n=this[i(278)];for(const t of $)try{n[t]=s[t]}catch(t){}const r=function(t,e){const i=K;var s;const n=e,r=n&&typeof n[i(267)]===i(245)&&typeof n[i(300)]===i(245);if(typeof ProgressEvent!==i(246)&&r)try{return new ProgressEvent(t,{lengthComputable:Boolean(n.lengthComputable),loaded:n[i(267)],total:n[i(300)]})}catch(t){}if(typeof CustomEvent!==i(246)&&r)try{const e=new CustomEvent(t,{detail:{lengthComputable:Boolean(n[i(265)]),loaded:n[i(267)],total:n[i(300)]}});try{Object.defineProperty(e,i(267),{value:n[i(267)]}),Object[i(272)](e,i(300),{value:n[i(300)]}),Object[i(272)](e,i(265),{value:Boolean(n[i(265)])})}catch(t){}return e}catch(t){}try{return new Event(t)}catch(e){const n=null===(s=typeof document!==i(246)?document:null)||void 0===s?void 0:s[i(294)]("Event");return n?(n[i(298)](t,!1,!1),n):{type:t}}}(t,e);if("function"==typeof n[i(285)])try{n.dispatchEvent(r)}catch(t){}else{const e=n["on"+t];if(typeof e===i(270))try{e[i(260)](this[i(278)],r)}catch(t){}}Y.has(t)&&this[i(273)]()}cleanup(){const t=K;if(this[t(287)])return;if(this[t(287)]=!0,this.installedGetResponseHeader){if(this[t(248)])try{Object.defineProperty(this.original,t(261),this.savedGetResponseHeader)}catch(t){}else try{delete this[t(278)][t(261)]}catch(t){}this.installedGetResponseHeader=!1}if(this[t(290)]){if(this[t(282)])try{Object[t(272)](this.original,t(297),this.savedGetAllResponseHeaders)}catch(t){}else try{delete this[t(278)][t(297)]}catch(t){}this[t(290)]=!1}this[t(248)]=void 0,this[t(282)]=void 0;const e=new Map(this[t(277)]),i=this[t(278)];this.original.__balancerRestoreMirroredState=()=>{const s=t;for(const[t,s]of e)try{s?Object.defineProperty(i,t,s):delete i[t]}catch(t){}try{delete i[s(269)]}catch(t){i[s(269)]=void 0}},this[t(277)].clear();try{delete this.original[t(289)]}catch(e){this[t(278)][t(289)]=void 0}}}function Z(t,e){return t-=237,J()[t]}function tt(){var t=["1249314nKfWSI","balanceAudio","2XgVpuy","urlBlacklistRegex","authData","probingPolicy","stripPathForDomainRegex","balanceSubtitles","13651YNoTzS","signManifestUsingApi","profileName","balancerAnalyticsEnabled","9TmeKEn","2477754qCxVNv","cdnTimeout","latencyTrialTrigger","jwtToken","firstChunkProbe","7WquQMk","timeBetweenHeads","2818300jTGVXE","updateTime","stripPathRegex","26NBlgCP","805250kkOVqk","bucketName","reportTime","6248056YAxtPO","domainWhitelistRegex","10135140eudtKv","noProbing","balanceManifests","isDev","GET","probeOnlyOnBanned","videoId","allowSpecialDelimitersInUrl","trial","domainWhitelist","isLive","resource","chunkExpirationProbingMs","debug","forceDecisionCall","jwtAuthType","3GkEOEA","9110UgRBuV","reportSyntheticCdns","dynamicRules"];return(tt=function(){return t})()}function et(t,e){return t-=126,tt()[t]}!function(t){for(var e=et,i=t();;)try{if(658854==parseInt(e(159))/1*(-parseInt(e(157))/2)+-parseInt(e(153))/3*(parseInt(e(128))/4)+parseInt(e(132))/5+parseInt(e(170))/6*(parseInt(e(126))/7)+-parseInt(e(135))/8*(parseInt(e(169))/9)+parseInt(e(154))/10*(parseInt(e(165))/11)+-parseInt(e(137))/12*(-parseInt(e(131))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(tt);class it{constructor(t){var e,i,s,n,r,o,a,c,d,h,l,u,p,f,g,m,v,y=et;this[y(168)]=!1,this[y(147)]=!1,this.updateTime=0,this[y(134)]=5,this[y(151)]=!1,this[y(146)]=[],this[y(136)]=[],this[y(160)]=[],this[y(142)]=!1,this[y(138)]=!1,this.probingPolicy=y(141),this[y(144)]=!1,this[y(166)]=!1,this[y(139)]=!1,this.balanceAudio=!0,this[y(164)]=!0,this.dynamicRules={},this[y(163)]=[],this[y(155)]=!1,this[y(168)]=null!==(e=null==t?void 0:t.balancerAnalyticsEnabled)&&void 0!==e&&e,this[y(167)]=null==t?void 0:t[y(167
2)],this[y(133)]=null==t?void 0:t.bucketName,this[y(147)]=(null==t?void 0:t[y(147)])||!1,this.videoId=null==t?void 0:t[y(143)],this[y(148)]=null==t?void 0:t[y(148)],this.updateTime=null!==(i=null==t?void 0:t[y(129)])&&void 0!==i?i:0,this.reportTime=null!==(s=null==t?void 0:t.reportTime)&&void 0!==s?s:0,this[y(150)]=null==t?void 0:t.debug,this[y(140)]=null==t?void 0:t[y(140)],this[y(127)]=null==t?void 0:t[y(127)],this[y(146)]=null!==(n=null==t?void 0:t[y(146)])&&void 0!==n?n:[],this[y(136)]=null!==(r=null==t?void 0:t[y(136)])&&void 0!==r?r:[],this[y(160)]=null!==(o=null==t?void 0:t[y(160)])&&void 0!==o?o:[],this.probeOnlyOnBanned=null!==(a=null==t?void 0:t[y(142)])&&void 0!==a&&a,this[y(138)]=null!==(c=null==t?void 0:t[y(138)])&&void 0!==c&&c,this.allowSpecialDelimitersInUrl=null!==(d=null==t?void 0:t[y(144)])&&void 0!==d&&d,this[y(162)]=null==t?void 0:t[y(162)],this[y(166)]=null!==(h=null==t?void 0:t[y(166)])&&void 0!==h&&h,this[y(139)]=null!==(l=null==t?void 0:t[y(139)])&&void 0!==l&&l,this[y(158)]=null===(u=null==t?void 0:t[y(158)])||void 0===u||u,this[y(164)]=null===(p=null==t?void 0:t[y(164)])||void 0===p||p,this.dynamicRules=null!==(f=null==t?void 0:t[y(156)])&&void 0!==f?f:{},this[y(173)]=null==t?void 0:t[y(173)],this.jwtAuthType=null!==(g=null==t?void 0:t[y(152)])&&void 0!==g?g:"Bearer",this[y(163)]=null!==(m=null==t?void 0:t[y(163)])&&void 0!==m?m:[],this[y(130)]=null==t?void 0:t.stripPathRegex,this[y(149)]=null==t?void 0:t[y(149)],this[y(161)]=null==t?void 0:t[y(161)],this.reportSyntheticCdns=null!==(v=null==t?void 0:t.reportSyntheticCdns)&&void 0!==v&&v,this[y(171)]=null==t?void 0:t[y(171)],this[y(172)]=null==t?void 0:t.latencyTrialTrigger,this.peakSampler=null==t?void 0:t.peakSampler,this.firstChunkProbe=null==t?void 0:t[y(174)],this[y(145)]=null==t?void 0:t[y(145)]}}const st=nt;function nt(t,e){return t-=399,rt()[t]}function rt(){const t=["396358ZcCLaP","743454HkbWPI","tryAcquire","23364uZRmDo","floor","active","release","284991ubzYxH","713205Iocpha","56oguZUB","isHeldBy","564UDSvLH","3291036nXeAIq","30FCEIqF","197132UDjtLV","isActive","min","30gyXYvg","2nHOYTk"];return(rt=function(){return t})()}!function(t){const e=nt,i=t();for(;;)try{if(323244==-parseInt(e(407))/1*(parseInt(e(408))/2)+parseInt(e(402))/3*(parseInt(e(403))/4)+parseInt(e(416))/5+-parseInt(e(401))/6+-parseInt(e(415))/7*(-parseInt(e(417))/8)+parseInt(e(409))/9*(parseInt(e(406))/10)+-parseInt(e(411))/11*(-parseInt(e(400))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}
2(rt),st(410),st(414),st(399),st(404);const ot=at;function at(t,e){return t-=164,ct()[t]}function ct(){const t=["data","push","forEach","5682460vyocpC","emit","580479LGLjDJ","splice","off","2275008AFHMcI","indexOf","_listeners","2096840yAnaxJ","173411epSfVs","9282680BTPOsj","28bZPpwB","650090wZqTBl"];return(ct=function(){return t})()}!function(t){const e=at,i=t();for(;;)try{if(722297==parseInt(e(175))/1+parseInt(e(171))/2+parseInt(e(165))/3*(-parseInt(e(174))/4)+-parseInt(e(179))/5+parseInt(e(168))/6+-parseInt(e(172))/7+parseInt(e(173))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ct);class dt{constructor(){this._listeners={}}on(t,e){const i=at;return!this[i(170)][t]&&(this[i(170)][t]=[]),this[i(170)][t][i(177)](e),this}[ot(167)](t,e){const i=ot;if(this[i(170)][t])if(e){const s=this[i(170)][t][i(169)](e);-1!==s&&this[i(170)][t][i(166)](s,1)}else this._listeners[t]=[];return this}[ot(164)](t,e={},i){const s=ot;return[t,"*"][s(178)](n=>{const r=s;this[r(170)][n]&&this[r(170)][n].forEach(s=>{const n=i||r(176);s({type:t,[n]:e})})}),this}}var ht=__webpack_require__(1048).hp;const lt=ut;function ut(t,e){return t-=480,gt()[t]}!function(t){const e=ut,i=t();for(;;)try{if(226640==-parseInt(e(644))/1*(parseInt(e(520))/2)+parseInt(e(569))/3*(parseInt(e(638))/4)+-parseInt(e(666))/5+-parseInt(e(495))/6+parseInt(e(605))/7*(-parseInt(e(497))/8)+-parseInt(e(570))/9*(-parseInt(e(483))/10)+parseInt(e(658))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(gt);var pt=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=ut;function a(t){try{d(s.next(t))}catch(t){r(t)}}function c(t){const e=ut;try{d(s[e(496)](t))}catch(t){r(t)}}function d(t){const e=ut;var s;t[e(594)]?n(t.value):(s=t[e(657)],s instanceof i?s:new i(function(t){t(s)})).then(a,c)}d((s=s[o(493)](t,e||[]))[o(549)]())})};class ft extends dt{getIceAnswer(){return this[ut(631)]}[lt(484)](){return this._totalSendBytes}[lt(531)](){return this[lt(659)]}[lt(494)](){return this[lt(498)]}[lt(664)](){return this[lt(487)]}[lt(597)](){return this[lt(541)]}getDownloadBandwidth(){const t=lt;return 0==this[t(542)]?0:this._totalDownloadedBytes*(this[t(542)]/1e3)}[lt(553)](){return this[lt(598)]}[lt(581)](){return this[lt(521)]}getLastBandwith(){return this[lt(480)]}getIp(){const t=lt;var e;if(null!=this._ip)return this[t(532)];const i=null===(e=this[t(631)])||void 0===e?void 0:e.sdp;if(null!=i)try{let e=i[t(668)]("c=IN IP4")[1];e=e[t(524)]();let s=e[t(668)](" ")[0];s=e[t(668)]("a=")[0],s=s[t(524)](),this._ip=s}catch(t){}}[lt(599)](){return this[lt(515)]}constructor(t,e,i){const s=lt;super(),this[s(629)]=new Map,this._activeDownloads=new Map,this[s(515)]=[],this[s(630)]=[],this[s(633)]=new TextDecoder,this[s(646)]=Math[s(580)](65536*Math[s(523)]())-32768,this[s(551)]=[],this._totalDownloaded=0,this[s(487)]=0,this[s(542)]=0,this.consecutiveHaveSegment=0,this[s(547)]=0,this[s(539)]=!1,this[s(519)]=0,this[s(614)]=0,this._totalSendTime=0,this[s(498)]=0,this[s(598)]=0,this._lastLatencySegment=0,this[s(480)]=0,this[s(533)]=-1,this[s(559)]=0,this[s(532)]=void 0,this[s(665)]=0,this[s(562)]=0,this[s(621)]=!1,this.foreSegmentsInfo=!1,this[s(507)]=!1,this.isBehind=!1,this.timeGap=0,this[s(606)]=0,this[s(567)]=0,this._cancel=new Map,this.testLatencyDone=!1,this[s(560)]=!1,this.testLatencyResult=0,this[s(526)]=0,this[s(631)]=i,this.id=e.id,this[s(627)]=e,this._loader=t,e.on(p.connect,this[s(574)][s(588)](this)),e.on(p[s(505)],this[s(662)].bind(this)),e.on(p[s(543)],this[s(502)][s(588)](this)),e.on(p[s(563)],this[s(525)][s(588)](this))}[lt(508)](){return this[lt(519)]}[lt(615)](){const t=lt;return this[t(645)][t(534)]>0}getSegmentDataMessages(){return this._segmendDataMessages}[lt(506)](){return this[lt(562)]}[lt(641)](){this[lt(547)]+=1}[lt(602)](){const t=lt;this[t(547)]>0&&(this[t(547)]-=1)}[lt(604)](t){const e=lt,i=this[e(629)].get(t);return!!i&&(i[e(612)]===_.READY||i.state===_[e(617)]&&(typeof i.leaseExpiryMs!==e(500)||Date[e(573)]()<i[e(607)]))}[lt(618)](t){const e=lt;return this[e(629)][e(651)](t)}[lt(488)](t,e,i,s){const n=lt;this[n(665)]++,this[n(562)]=Date[n(573)]();const r=typeof s===n(500)&&s>0?Date[n(573)]()+s:void 0;this[n(629)][n(623)](t,{segmentId:t,state:e||_[n(513)],leaderRole:i||b[n(576)],leaseExpiryMs:r})}[lt(636)](){const t=lt;this._remoteSegments[t(540)]()}[lt(585)](t,e){const i=lt;if(t<=0||e<=0)return;const s=1e3*t/e;this[i(559)]+=1,this._avgBytesPerSecond=this[i(533)]<0?s:w[i(511)]*s+(1-w[i(511)])*this._avgBytesPerSecond}[lt(642)](){const t=lt;return this[t(559)]>=w[t(584)]}[lt(482)](){return this._avgBytesPerSecond}[lt(554)](t,e,i,s){return pt(this,void 0,void 0,function*(){const n=ut;if(this[n(621)])return;const r={[E[n(564)]]:S.segmentState,[E.id]:t,[E.state]:e,[E[n(575)]]:i};typeof s===n(500)&&s>0&&(r[E.leaseMs]=s),this[n(504)](r,A[n(643)])})}destroy(){const t=lt;this[t(627)][t(595)](),this[t(662)](),this[t(621)]=!0}_onConnect(){const t=lt;i.default.verbose(s.BalancerTag,t(571)+this.id),this[t(621)]||(i.default.debug(s.BalancerTag,t(583)+this.id),this[t(565)].peerConnect(this))}[lt(502)](t){const e=lt;var n,r;i.default.debug(s.BalancerTag,"P2P onError to "+this.id+" "+(null===(n=null==t?void 0:t[e(543)])||void 0===n?void 0:n[e(509)])),(null===(r=null==t?void 0:t.error)||void 0===r?void 0:r[e(509)])===e(640)&&this[e(662)](),this.consecutiveHaveSegment=0,this[e(567)]++}[lt(662)](){const t=lt;this[t(627)].destroy(),this._activeDownloads[t(540)](),this.resetRemoteKeys(),this[t(667)](t(557),0),this[t(565)][t(590)](this)}[lt(667)](t,e){const n=lt;t===n(603)&&(i.default.debug(s.BalancerTag,n(624)),this[n(481)]=0);const r=this._activeDownloads[n(651)](e);r&&i.default.debug(s.BalancerTag,n(625)+r.id),this[n(645)][n(537)](e)}[lt(525)](t){const e=lt;if(this[e(621)])return;const n=t[e(546)](0,4),r=t[e(546)](4,t[e(503)]),o=n[0],a=this[e(656)](t[e(546)](1,3)),c=n[3];if(this[e(519)]<c&&(this._version=c),o==A.message){const t=JSON[e(522)](this[e(633)][e(596)](r));if(t[E[e(564)]])switch(t[E.command]){case S[e(620)]:this[e(565)][e(616)](this,t[E.id],t[E[e(572)]]);break;case S[e(512)]:{const i=Array[e(529)](t[E.map])?t[E[e(512)]]:[];this[e(629)][e(540)]();for(const t of i)this[e(629)][e(623)](t,{segmentId:t,state:_[e(609)],leaderRole:b[e(576)]});this[e(665)]++,this[e(562)]=Date[e(573)]()}break;case S[e(635)]:const n=t[E.id],r=(t[E[e(534)]],t[E[e(628)]]);this[e(598)]=Date[e(573)]()-t[E.dateTime],this[e(521)]=Date[e(573)]()-t[E[e(489)]],this[e(565)][e(518)](this[e(598)]);let o=0;const c=this[e(565)][e(550)]()[e(663)](n);if(c&&(o=c[e(556)]-t[E[e(489)]]),o>
2=0?(this.isAhead=!0,this[e(622)]=!1):(this[e(507)]=!1,this[e(622)]=!0),this[e(629)][e(623)](n,{segmentId:n,state:_[e(609)],leaderRole:b[e(576)]}),typeof r===e(500)&&r>0)for(;this[e(629)].size>r;){const t=this[e(629)][e(552)]()[e(549)]()[e(657)];if(void 0===t)break;this[e(629)][e(537)](t)}break;case S.segmentState:{const i=t[E.id];"string"==typeof i&&i[e(516)]>0&&this[e(488)](i,t[E[e(612)]]||_[e(513)],t[E.role]||b[e(576)],t[E[e(601)]]);break}case S[e(587)]:const d=t[E[e(572)]],h=t[E[e(591)]];this[e(545)](d,h);break;case S[e(545)]:const l=Date[e(573)]()-t[E[e(591)]];this[e(565)][e(518)](l);break;case S[e(626)]:this[e(653)][e(623)](t[E[e(572)]],t[E.identifier]);break;case S[e(486)]:{const i=t[E[e(572)]]||0,s=this[e(645)][e(651)](i);s&&s.id===t[E.id]&&(this._loader[e(669)](this,s.id),this[e(667)](e(603),a))}break;case S.data:{const n=this[e(645)][e(651)](t[E.identifier]);if(n&&(n[e(534)]=t[E[e(534)]],0==n[e(556)]&&(n.startTime=Date[e(573)]()),this[e(541)]>=3&&this[e(492)]()>0)){const t=1e3*n[e(534)]/this[e(492)]();t>1.15*I[e(510)]&&i.default[e(661)](s.BalancerTag,"This peer may timeout in "+t+"ms")}}}}else if(o==A[e(563)]){const t=this._activeDownloads[e(651)](a);if(t&&t.id){0==t[e(556)]&&(t[e(556)]=Date[e(573)]()),t.data[e(613)](r);let n=0;t[e(563)][e(655)](t=>{n+=t[e(503)]});const o=Date[e(573)]()-(t[e(556)]||Date[e(573)]());if(n>t[e(534)]&&i.default.debug(s.BalancerTag,e(568)+n+" "+t[e(534)]),n==t.size){let r=0;const c=new Uint8Array(n);for(const i of t[e(563)])c[e(623)](new Uint8Array(i),r),r+=i[e(503)];this[e(487)]=this[e(487)]+c.byteLength,this[e(541)]++,this[e(542)]=this[e(542)]+o;const d={time:Date[e(573)](),size:c[e(503)]};this._lastResponses[e(613)](d),this[e(565)].addPeerResponse(d);const h=(Date[e(573)]()-t[e(556)])/1e3,l=t.size/h;this[e(480)]=l,this[e(585)](c.byteLength,o),this[e(551)][e(613)](t.id),this[e(565)][e(647)](this,t.id,o,c[e(577)]),i.default[e(517)](s.BalancerTag,e(485)+t.id+e(634)+t[e(534)]),this[e(667)](e(536)+t.id+" "+t[e(534)]+e(660)+n,a)}else{let i=0;const s=new Uint8Array(n);for(const n of t[e(563)])s[e(623)](new Uint8Array(n),i),i+=n[e(503)];0!=t[e(534)]&&this[e(565)][e(586)](this,t.id,o,s,t[e(534)])}}else i.default.debug(s.BalancerTag,e(578)+this.id+e(499))}}[lt(620)](t,e){const n=lt;if(this[n(621)])return;this[n(519)]>=2&&(this[n(606)]++,0==this[n(606)]&&this[n(606)]++);const r=this._operationId;i.default.debug(s.BalancerTag,n(530)+r),this[n(566)](t,r,e),this[n(504)]({[E[n(564)]]:S[n(620)],[E.id]:t,[E[n(572)]]:r},A[n(643)])}[lt(587)](t){const e=lt;i.default[e(517)](s.BalancerTag,e(501)+this.id),this[e(504)]({[E[e(564)]]:S.ping,[E[e(591)]]:Date[e(573)](),[E.id]:t,[E[e(572)]]:this.id},A.message)}[lt(545)](t,e){const n=lt;i.default.debug(s.BalancerTag,"P2P Pong to "+this.id),this[n(504)]({[E[n(564)]]:S[n(545)],[E[n(591)]]:e,[E.id]:t,[E[n(572)]]:this.id},A[n(643)])}_cancelRequest(t,e){const i=lt;this._send({[E[i(564)]]:S[i(626)],[E.id]:t,[E[i(572)]]:e},A.message)}sendMap(t){return pt(this,void 0,void 0,function*(){const e=ut;this[e(621)]||this[e(504)]({[E[e(564)]]:S[e(512)],[E[e(512)]]:t},A[e(643)])})}sendSegment(t,e,n){var r;return pt(this,void 0,void 0,function*(){const o=ut;if(!this[o(621)]){if(e[o(563)]&&this[o(653)]&&null==this[o(653)].get(n)){this[o(504)]({[E.command]:S[o(563)],[E.id]:t,[E.size]:e.realBodySize,[E[o(572)]]:n,[E[o(535)]]:Math.floor(e.data.byteLength/I[o(650)])+1},A[o(643)]);const a=e[o(611)];let c=0;const d=this[o(589)](n),h=ht[o(632)]([A[o(563)],d[0],d[1],0]);let l=a;e[o(514)]++;const u=Date[o(573)]();try{for(;l>0&&!this[o(653)][o(651)](n);){const t=Math.min(l,I[o(650)]);for(;e&&e[o(563)]&&e.data.byteLength&&t+c>e.data.byteLength&&!this[o(653)][o(651)](n);)yield new Promise(t=>setTimeout(t,2));this[o(627)][o(491)](ht.concat([h,ht[o(632)](e[o(563)],(null===(r=e[o(563)])||void 0===r?void 0:r[o(503)])-l,t)])),c+=t,l-=t}}catch(t){i.default.debug(s.BalancerTag,o(579))}this[o(614)]=this[o(614)]+c,this[o(659)]=Date[o(573)]()-u,this[o(498)]++,e[o(514)]--,this._cancel.get(n)?this[o(565)][o(652)](e[o(563)][o(503)]-l):(this[o(630)][o(613)]({time:Date[o(573)](),size:e.data[o(503)]}),this[o(565)][o(548)](e[o(563)][o(503)]))}else i.default.debug(s.BalancerTag,o(558));null!=this._cancel[o(651)](n)&&(i.default.debug(s.BalancerTag,"Canceling operation -> 0 "),this._cancel[o(537)](n))}})}[lt(589)](t){const e=[0,0];return e[0]=t>>8&255,e[1]=255&t,e}[lt(656)](t){return(255&t[0])<<8|255&t[1]}[lt(648)](t,e,n){return pt(this,void 0,void 0,function*(){const r=ut;if(this[r(621)])return;if(!e||0===e[r(503)])return;const o=e.byteLength;this[r(504)]({[E.command]:S[r(563)],[E.id]:t,[E.size]:o,[E[r(572)]]:n,[E[r(535)]]:Math[r(593)](o/I[r(650)])+1},A[r(643)]);const a=this.getByteArrayFromIdentifier(n),c=ht.from([A[r(563)],a[0],a[1],0]);let d=0;const h=Date.now();try{for(;d<o&&!this[r(653)][r(651)](n);){const t=Math[r(538)](o-d,I.maxMessageSize);this[r(627)][r(491)](ht[r(592)]([c,ht[r(632)](e.buffer,e.byteOffset+d,t)])),d+=t}}catch(t){i.default[r(517)](s.BalancerTag,r(637)+t)}this._totalSendBytes+=d,this._totalSendTime=Date[r(573)]()-h,this[r(498)]++,this[r(653)][r(651)](n)?this[r(565)][r(652)](o-d):(this._lastSent.push({time:Date[r(573)](),size:o}),this[r(565)].peerSegmentUpload(o)),void 0!==this[r(653)][r(651)](n)&&this[r(653)][r(537)](n)})}sendNoSegment(t,e){const i=lt;this[i(504)]({[E[i(564)]]:S[i(486)],[E.id]:t,[E[i(572)]]:e},A[i(643)])}[lt(555)](t,e,i,s){return pt(this,void 0,void 0,function*(){const n=ut;this[n(621)]||this._send({[E[n(564)]]:S[n(635)],[E.id]:t,[E[n(534)]]:e,[E.storageSize]:i,[E.dateTime]:Date[n(573)](),[E[n(489)]]:s},A[n(643)])})}[lt(504)](t,e){const n=lt;try{this[n(627)][n(491)](ht[n(592)]([ht[n(632)]([e,0,0,R[n(649)]]),ht[n(632)](JSON[n(582)](t))])
2)}catch(t){i.default[n(517)](s.BalancerTag,n(579))}}getSegmentMap(){const t=lt,e=[];return this[t(629)][t(655)]((i,s)=>{const n=t;i[n(612)]!==_[n(609)]?i.state===_[n(617)]&&("number"!=typeof i[n(607)]||Date[n(573)]()<i.leaseExpiryMs)&&e[n(613)](s):e[n(613)](s)}),e}[lt(528)](){const t=lt;return this[t(629)][t(534)]}[lt(566)](t,e,n){const r=lt;i.default[r(517)](s.BalancerTag,r(639)+e),this[r(645)][r(623)](e,{id:t,data:[],startTime:0,size:0});const o="number"==typeof n&&n>0?n:I[r(510)];setTimeout(()=>{const i=r;var s;const n=this[i(551)][i(610)](t);if(n<0){this[i(561)](t,e);let n=0;n=(null===(s=this._activeDownloads.get(e))||void 0===s?void 0:s[i(534)])||0,this[i(565)][i(600)](this,t,n),this[i(667)](i(670)+t+" "+o,e)}else this[i(551)][i(608)](n,1)},o)}[lt(490)](){const t=lt;var e;return(null===(e=this[t(515)][0])||void 0===e?void 0:e[t(591)])||0}static[lt(527)](t){const e=lt;let i=0;const s=Date[e(573)]();for(let n=0;n<t.length;)t[n][e(591)]+N[e(654)]<s?t.splice(n,1):(i+=t[n].size,++n);return i}[lt(619)](){const t=lt;return ft._getLastSecondsTraffic(this[t(515)])}[lt(544)](){const t=lt;return ft._getLastSecondsTraffic(this[t(630)])}}function gt(){const t=["UNKNOWN","activeP2PSendProcesses","_lastResponses","length","debug","addPeerLatency","_version","430tNzrUL","_lastLatencySegment","parse","random","trim","_onData","testBandwidthResult","_getLastSecondsTraffic","getRemoteSegmentsSize","isArray","OPERATION ID -> ","getTotalSendTime","_ip","_avgBytesPerSecond","size","splits","Download ended ","delete","min","downloadingProcessActive","clear","_totalDownloaded","_totalDownloadTime","error","getLastUploadsTraffic","pong","slice","timeouts","peerSegmentUpload","next","getStorage","_downloaded","keys","getLastLatencyP2P","sendSegmentState","sendNewSegmentAvailable","startTime","Close callback","P2P Upload canceled.","_transferSamples","testBandwidthDone","_cancelRequest","_lastSegmendDataMessagesTime","data","command","_loader","_startTimeout","totalErrors","SOMETHING IS WRONG, Total p2p file size is bigger than expected size. ","9stlLiV","328203cFdVKf","CREATEPEERCONNECTING?","identifier","now","_onConnect","role","NONE","buffer","P2P: ","Could not send message to peer (maybe it was destroyed)","round","getLastLatencySegment","stringify","P2P onConnect to ","minSamplesForSpeed","recordTransferSpeed","peerSegmentProgress","ping","bind","getByteArrayFromIdentifier","peerCloseListener","time","concat","floor","done","destroy","decode","getDownloadedChunks","_lastLatencyP2P","getLastResponses","peerFailedSegmentTimeout","leaseMs","decayTimeout","Absent","hasSegment","85253ckdCeN","_operationId","leaseExpiryMs","splice","READY","indexOf","realBodySize","state","push","_totalSendBytes","isDownloading","peerSegmentUploadRequest","ACQUIRING","remoteSegmentState","getLastDownloadsTraffic","request","_destroyed","isBehind","set","Probable algorithm failed","Closing p2p download ","cancel","_peer","storageSize","_remoteSegments","_lastSent","_answer","from","_decoder"," download end ","newSegmentAvailable","resetRemoteKeys","Could not send raw segment to peer: ","40768nyLcWb","PTT-> TIMEOUT CREATION ","sctp-failure","addTimeout","hasSpeedData","message","277hlLbTg","_activeDownloads","_identifierShort","peerSegmentLoaded","sendRawSegment","version","maxMessageSize","get","peerCanceledSegmentUpload","_cancel","totalDataInterval","forEach","getIdentifierFromByteArray","value","10546041RBXzvl","_totalSendTime"," | ","verbose","_onClose","getSegment","getDownloadedBytes","_segmendDataMessages","543675VpiRJB","_endDownload","split","peerFailedSegmentAbsent","Timeout ","_lastBandwith","consecutiveHaveSegment","getAvgBytesPerSecond","40qElHJV","getTotalSendBytes","p2p not wrong -> ","absent","_totalDownloadedBytes","updateSegmentState","createdAt","getOldestRequestTS","send","getDownloadBandwidth","apply","getTotalSendSegments","1883880dTCENI","throw","280oRiUmw","_totalSendSegments"," not an active download id","number","P2P Ping to ","_onError","byteLength","_send","close","getLastSegmentDataMessagesTime","isAhead","getVersion","errorDetail","timeout","emaAlpha","map"];return(gt=function(){return t})()}function mt(){const t=["array","40mUbasW","1336977irApjO","peek","10kXaWqw","isEmpty","708WoefhS","14238356KgtHyA","assign","copyArray","shift","95DsUzVI","size","3742bTwmPo","361582xTDvYY","24TrvsDp","67407fodlwx","add","length","2171421miZmDB","30Ocfokb","350875kcfcOF"];return(mt=function(){return t})()}const vt=yt;function yt(t,e){return t-=116,mt()[t]}!function(t){const e=yt,i=t();for(;;)try{if(680972==-parseInt(e(119))/1*(parseInt(e(121))/2)+parseInt(e(124))/3*(-parseInt(e(131))/4)+-parseInt(e(129))/5*(-parseInt(e(128))/6)+-parseInt(e(127))/7*(-parseInt(e(123))/8)+-parseInt(e(132))/9*(-parseInt(e(134))/10)+parseInt(e(137))/11+-parseInt(e(136))/12*(parseInt(e(122))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(mt);class St{constructor(t){const e=yt;this[e(130)]=[],this[e(120)]=t}[vt(125)](t){for(this[vt(130)].push(t);this.array.length>this.size;)this.removeFirst()}removeFirst(){const t=vt;if(!this.isEmpty())return this[t(130)][t(118)]()}[vt(133)](){const t=vt;if(!this[t(135)]())return this[t(130)][0]}[vt(135)](){return 0===this[vt(130)].length}[vt(117)](){return Object.assign([],this.array)}lastn(t){const e=vt,i=Object[e(116)]([],this.array);return i[e(126)]<=t?i:i.splice(i[e(126)]-t)}}const _t=Tt;function bt(){const t=["143686AMlWXA","39dUzcJy","3576912wASqjF","4OlYyjb","9bQElgm","41682xtSWnN","sumValues","getCurrentLevel","getL0","49YmrCJA","snapshotEmaRatio","currentLevel","get","set","recordEnd","143GeGYUC","exp","TAU_MS","deltaTimePerLevel","foldIntoEma","
2nowFn","20572aTiaWM","lastEmaUpdateAt","clear","1519584slQTmL","accrueElapsed","1726055iosAvd","keys","lastTransitionAt","259130GCSYNk","startedAt","recordStart","emaRatio"];return(bt=function(){return t})()}function Tt(t,e){return t-=441,bt()[t]}!function(t){const e=Tt,i=t();for(;;)try{if(189132==-parseInt(e(452))/1*(-parseInt(e(449))/2)+parseInt(e(450))/3*(parseInt(e(470))/4)+-parseInt(e(442))/5+-parseInt(e(454))/6*(parseInt(e(458))/7)+parseInt(e(473))/8*(parseInt(e(453))/9)+-parseInt(e(445))/10*(-parseInt(e(464))/11)+-parseInt(e(451))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bt);class wt{constructor(t){const e=Tt;this[e(460)]=0,this[e(467)]=new Map,this[e(448)]=new Map,this[e(469)]=t||(()=>Date.now());const i=this.nowFn();this[e(444)]=i,this[e(471)]=i,this.startedAt=i}[_t(447)](){this[_t(441)](),this.currentLevel++}[_t(463)](){const t=_t;this[t(441)](),this.currentLevel>0&&this[t(460)]--}snapshotDeltaSinceLastTick(){const t=_t;this[t(441)]();const e=this[t(469)](),i=wt[t(455)](this.deltaTimePerLevel),s=new Map;return i>0&&(this[t(467)].forEach((t,e)=>s.set(e,t/i)),this[t(468)](s,e-this[t(471)])),this[t(467)][t(472)](),this[t(471)]=e,s}[_t(459)](){return new Map(this[_t(448)])}[_t(457)](){const t=_t;return this[t(448)][t(461)](0)||0}getSessionMs(){const t=_t;return this[t(469)]()-this[t(446)]}[_t(456)](){return this[_t(460)]}accrueElapsed(){const t=_t,e=this[t(469)](),i=e-this[t(444)];if(i>0){const e=this.currentLevel;this.deltaTimePerLevel[t(462)](e,(this[t(467)][t(461)](e)||0)+i)}this.lastTransitionAt=e}[_t(468)](t,e){const i=_t;if(e<=0)return;const s=1-Math[i(465)](-e/wt[i(466)]),n={};this[i(448)].forEach((t,e)=>{n[e]=!0}),t.forEach((t,e)=>{n[e]=!0}),Object[i(443)](n).forEach(e=>{const n=i,r=Number(e),o=this.emaRatio[n(461)](r)||0,a=t[n(461)](r)||0;this.emaRatio.set(r,o*(1-s)+a*s)})}static sumValues(t){let e=0;return t.forEach(t=>{e+=t}),e}}wt[_t(466)]=6e4;const Et=It;!function(t){const e=It,i=t();for(;;)try{if(958028==-parseInt(e(596))/1+-parseInt(e(667))/2+-parseInt(e(676))/3+parseInt(e(679))/4+parseInt(e(669))/5+parseInt(e(518))/6*(parseInt(e(646))/7)+parseInt(e(529))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Rt);class At{constructor(t,e,i,s,n,r,o,a,c,d,h,l,u,p){const f=It;this[f(623)]=0,this.unBannedCount=0,this.downloadedChunks=0,this[f(565)]=0,this[f(615)]=0,this[f(544)]=0,this[f(547)]=0,this[f(540)]=0,this.bandwidthForScoring=new St(20),this[f(625)]=new St(20),this[f(636)]=0,this[f(677)]=0,this[f(546)]=0,this[f(642)]=0,this.numberOfCdnCacheHits=0,this[f(684)]=0,this[f(505)]=0,this[f(645)]=0,this[f(598)]=!1,this[f(521)]=0,this.downloadMillisVideo=0,this[f(678)]=0,this[f(560)]=0,this[f(580)]=0,this[f(665)]=Date[f(600)](),this[f(622)]=0,this.maxBandwidth=1e12,this[f(572)]=0,this._lastsPreferedVideoBandwidth=[],this.highestRenditionBandwidth=0,this[f(593)]=0,this.lastPreferedVideoChunkDownloadTime=0,this.lastPingTime=0,this._accumBw=At[f(655)],this[f(666)]=new St(20),this.wBandwidth=new St(20),this[f(672)]=[],this[f(590)]=0,this[f(663)]=Number.MAX_SAFE_INTEGER,this[f(681)]=0,this[f(640)]=Number[f(555)],this.avgPingTime=0,this.isRangeCompatible=!0,this._checked=!1,this[f(658)]=new Array,this[f(675)]=!1,this[f(608)]=!1,this.concurrencyEma=new wt,this[f(550)]=null,this._latencyAtLastTrial=null,this[f(661)]=null,this[f(579)]=t,this.internal_provider=[f(508),f(653),f(633)][f(652)](t)?e:t,this[f(629)]=e,this[f(563)]=i,this[f(541)]=p,this[f(595)]=s,this[f(592)]=n,this[f(502)]=r,this[f(619)]=a,this[f(556)]=c,this[f(606)]=d,this[f(567)]=h,this[f(588)]=l,this[f(609)]=o,this[f(628)]=!0,this.banned=!1,this[f(554)]=u}[Et(570)](t){const e=Et;this[e(585)][e(573)](t),this._lastsPreferedVideoBandwidth.length>5&&this[e(585)][e(584)]()}[Et(611)](){const t=Et;let e=0,i=0;for(i=0;i<this[t(585)][t(536)];i++)e+=this._lastsPreferedVideoBandwidth[i];return e/i}[Et(682)](){const t=Et;return 0===this[t(672)][t(536)]?{time:Date[t(600)](),size:0}:this[t(672)][this._lastResponses[t(536)]-1]}[Et(637)](t){this[Et(672)]=t}[Et(662)](t){const e=Et;this[e(672)][e(573)](t)}[Et(538)](){const t=Et;return 0==this.downloadedChunks?0:this[t(645)]/this[t(574)]}[Et(553)](){return this[Et(531)]}getCdnCacheMisses(){return this[Et(684)]}_processCdnCache(t){const e=Et;if(!this._parser||!t[e(621)])return;const i=Object[e(603)](Object[e(512)](t[e(621)])[e(577)](([t,i])=>[t[e(524)](),i])),{hit:s,miss:n}=this[e(554)].cache;s&&n?this[e(551)](s,n,i):this._updateCacheCount(s||n,i,!!s)}[Et(551)](t,e,i){const s=Et;var n,r;const o=null!==(n=null==t?void 0:t.header[s(524)]())&&void 0!==n?n:"",a=null!==(r=null==e?void 0:e.header[s(524)]())&&void 0!==r?r:"",c=o in i&&q.isHeaderMatch(i[o],t),d=a in i&&q[s(649)](i[a],e);c?this[s(531)]++:d?this[s(684)]++:this[s(505)]++}[Et(532)](t,e,i){const s=Et;var n;const r=null!==(n=null==t?void 0:t[s(575)][s(524)]())&&void 0!==n?n:"";if(r in e){const n=e[r];let o=!1;t[s(583)]===s(503)?o=t[s(517)][s(652)](n):t.type===s(627)&&(o=new RegExp(t[s(517)])[s(511)](n)),o?this[s(631)](i):this[s(631)](!i)}else this[s(631)](!i)}[Et(631)](t){const e=Et;t?this[e(531)]++:this[e(684)]++}[Et(660)](t){const e=Et;var n,r;const o=t[e(523)],a=t[e(666)]||0,c=t[e(562)]||0,h=t[e(566)]||0,l=t[e(520)];if(this[e(675)]=!0,this[e(559)](t[e(656)]),l)return this[e(677)]++,void this.totalFail++;this[e(574)]++,this.downloadedBytes+=c,typeof this[e(578)]===e(548)?this[e(578)]=c:this[e(578)]+=c,typeof this.minResponseBytes===e(548)?this[e(586)]=c:this[e(586)]=Math[e(632)](this[e(586)],c),void 0===this[e(650)]?this[e(650)]=c:this.maxResponseBytes=Math.max(this.maxResponseBytes,c),void 0===this.samplesResponseBytes?this[e(552)]=1:this.samplesResponseBytes+=1,null!=t[e(607)]&&null!=t[e(610)]&&(typeof this[e(607)]===e(548)?this[e(607)]=t[e(607)]:this[e(607)]+=t[e(607)],typeof this[e(610)]===e(548)?this.uncompressedBytes=t.uncompressedBytes:this[e(610)]+=t[e(610)]),this._processCdnCache(t),null!=t.rendition&&t[e(528)].isAudio&&0==this[e(547)]&&(this[e(598)]=!1),(null==t[e(528)]||!t[e(528)].isAudio)&&(this[e(615)]+=c,this[e(544)]+=h,this[e(598)]=!0,this[e(547)]++,0==this[e(540)]&&(this[e(540)]=c)),d.forEach(i=>
2{const s=e;if(o[s(683)](i)>=0){let e=!0;a>0?(c>1e3*C[s(638)]&&(e=!1,this[s(594)]=this[s(594)]!==At[s(655)]?Math[s(568)](this[s(594)]*(1-B[s(501)])+a*B[s(501)]):a),this[s(666)][s(537)](a),this[s(597)][s(537)]({bw:a*c,ct:c}),(null==t.rendition||!t[s(528)][s(558)])&&(this[s(569)][s(537)](a),this.wBandwidthForScoring[s(537)]({bw:a*c,ct:c}),this[s(576)]+=h,this.downloadedBytesVideo+=c,this[s(678)]++,void 0===this[s(680)]?this[s(680)]=a:this[s(680)]+=a,typeof this[s(668)]===s(548)?this[s(668)]=a:this.minThroughput=Math[s(632)](this[s(668)],a),typeof this.maxThroughput===s(548)?this.maxThroughput=a:this[s(647)]=Math[s(626)](this.maxThroughput,a),typeof this[s(591)]===s(548)?this[s(591)]=1:this[s(591)]+=1,typeof this[s(654)]===s(548)?this.sumVideoBytes=c:this[s(654)]+=c,void 0===this[s(535)]?this.sumVideoTime=h:this.sumVideoTime+=h)):this[s(642)]++,0==this._accumBw&&!e&&(this[s(598)]=!1)}}),0==this[e(565)]&&(this[e(598)]=!1),a>this.highestSegmentBandwidth&&(this[e(590)]=a),a<this.lowestSegmentBandwidth&&(this.lowestSegmentBandwidth=a),this[e(645)]+=h,void 0===this[e(526)]?this[e(526)]=h:this[e(526)]+=h,typeof this.minResponseTime===e(548)?this[e(506)]=h:this[e(506)]=Math.min(this[e(506)],h),typeof this[e(514)]===e(548)?this[e(514)]=h:this[e(514)]=Math[e(626)](this[e(514)],h),void 0===this[e(539)]?this.samplesResponseTime=1:this[e(539)]+=1,this[e(672)].push({time:Date[e(600)](),size:c}),(null==t[e(528)]||!(null===(n=t.rendition)||void 0===n?void 0:n[e(558)]))&&(this[e(593)]=c,this[e(513)]=h),null!=t[e(528)]&&this[e(599)]<t[e(528)][e(666)]&&(this[e(599)]=t.rendition[e(666)]),(null==t[e(528)]||!(null===(r=t[e(528)])||void 0===r?void 0:r.isAudio))&&(this[e(572)]=t[e(666)],this[e(570)](t.bandwidth));let u="Unknown";t.rendition&&(u=t[e(528)][e(558)]?e(659):e(542));let p=0;t.rendition&&(p=t[e(528)].targetDuration),i.default.verbose(s.BalancerTag,e(671)+u+" segment of "+p+e(620)+t[e(601)]+e(587)+Number(a/1e6)[e(571)](2)+"MB/s size-> "+Number(c/1024)[e(571)](2)+"kb in "+h)}[Et(604)](t,e){const i=Et,s=this[i(513)],n=this.lastPreferedVideoChunkSize;let r=this[i(527)],o=s-r;if(o<=0&&(r=s,o=s),n<=0)return 0;const a=t/8*e,c=a*o/n+2*r;return 0==c?0:8*a/(c/1e3)}[Et(613)](){return(this[Et(615)]||0)/((this.downloadTimeForScoring||1)/1e3)*8}getBandwidth(){return this[Et(594)]}setBandwidth(t){this[Et(594)]=t}[Et(614)](){return 8*this[Et(594)]}[Et(500)](){const t=Et;let e=0,i=0;for(const s of this[t(666)][t(634)]())e+=s,i++;return i>0?e/i:0}[Et(504)](){const t=Et;let e=0,i=0;for(const s of this[t(666)].lastn(4))e+=s,i++;return i>0?e/i:0}[Et(644)](){const t=Et;let e=0,i=0;for(const s of this[t(625)][t(634)]())e+=s.bw,i+=s.ct;return i>0?e/i:0}[Et(651)](){const t=Et;let e=0,i=0;for(const s of this[t(625)][t(602)](4))e+=s.bw,i+=s.ct;return i>0?e/i:0}[Et(557)](){const t=Et;return.45*this[t(644)]()+.55*this[t(651)]()}[Et(657)](){const t=Et;this[t(594)]=At[t(655)]}getOldestRequestTS(){const t=Et;var e;return(null===(e=this._lastResponses[0])||void 0===e?void 0:e[t(509)])||0}[Et(616)](){const t=Et,e=new At(this[t(579)],this.name,this.host,this[t(595)],this.url,this[t(502)],this[t(609)],this[t(619)],this[t(556)],this[t(606)],this[t(567)],this.auth,this[t(554)],this[t(541)]);return Object.keys(this)[t(617)](i=>{const s=t,n=i,r={};r[n]=this[n],Object[s(605)](e,r)}),e}[Et(664)](t){const e=Et;typeof this[e(635)]===e(548)?this[e(635)]=t:this[e(635)]+=t,void 0===this[e(581)]?this[e(581)]=t:this[e(581)]=Math[e(632)](this[e(581)],t),typeof this[e(516)]===e(548)?this[e(516)]=t:this[e(516)]=Math[e(626)](this[e(516)],t),typeof this.samplesNetworkLatency===e(548)?this.samplesNetworkLatency=1:this.samplesNetworkLatency+=1,null===this._latencyEma?this[e(550)]=t:this._latencyEma=this._latencyEma*(1-k[e(624)])+t*k[e(624)]}[Et(507)](){return this[Et(550)]}[Et(534)](t){this._peakBandwidthBitsPerSecond=t}[Et(648)](){return this[Et(661)]}[Et(522)](){const t=Et;return this[t(594)]!==At[t(655)]&&this[t(594)]>0?8*this[t(594)]:this[t(661)]}[Et(515)](){const t=Et;this[t(643)]=this[t(550)]}hasImprovedLatencySinceLastTrial(t){const e=Et;var i,s;if(null===this._latencyEma||null===this[e(643)])return!1;const n=null!==(i=null==t?void 0:t[e(561)])&&void 0!==i?i:k[e(561)],r=null!==(s=null==t?void 0:t[e(545)])&&void 0!==s?s:k[e(545)],o=this._latencyAtLastTrial-this._latencyEma;return!(o<r)&&!(this[e(643)]<=0)&&o/this._latencyAtLastTrial>=n}[Et(559)](t){const e=Et;null!=t&&(t>=100&&t<=199?this[e(533)]=(this.http1xxResponses||0)+1:t>=200&&t<=299?this[e(641)]=(this[e(641)]||0)+1:t>=300&&t<=399?this[e(543)]=(this[e(543)]||0)+1:t>=400&&t<=499?this[e(589)]=(this[e(589)]||0)+1:t>=500&&t<=599&&(this[e(639)]=(this[e(639)]||0)+1))}updateAvailability(){const t=Et,e=Date[t(600)]();this.banned?(this[t(580)]+=e-this[t(665)],this[t(665)]=e):(this[t(560)]+=e-this[t(665)],this[t(665)]=e)}incrementSwitches(){const t=Et;typeof this[t(670)]===t(548)?this[t(670)]=1:this[t(670)]+=1}[Et(612)](){const t=Et;void 0===this[t(674)]?this[t(674)]=1:this.switchesDueToQuality+=1}[Et(582)](){const t=Et;typeof this.switchesDueToConnectivity===t(548)?this.switchesDueToConnectivity=1:this[t(530)]+=1}[Et(630)](){const t=Et;typeof this.switchesDueToErrors===t(548)?this[t(510)]=1:this[t(510)]+=1}[Et(519)](){const t=Et;this[t(578)]=void 0,this[t(586)]=void 0,this.maxResponseBytes=void 0,this[t(552)]=void 0,this.sumResponseTime=void 0,this.minResponseTime=void 0,this[t(514)]=void 0,this[t(539)]=void 0,this.sumNetworkLatency=void 0,this.minNetworkLatency=void 0,this[t(516)]=void 0,this[t(564)]=void 0,this.sumThroughput=void 0,this[t(668)]=void 0,this[t(647)]=void 0,this[t(591)]=void 0,this[t(654)]=void 0,this.sumVideoTime=void 0,this.unbannedTime=0,this[t(580)]=0,this[t(665)]=Date.now()}[Et(525)](){const t=Et;return[t(508),t(653),t(633)][t(652)](this.provider)}[Et(673)](){this[Et(618)]=!0}[Et(549)](){return this[Et(618)]}}function It(t,e){return t-=500,Rt()[t]}function Rt(){const t=["s from ","headers","lastUpdatedState","bannedCount","emaAlpha","wBandwidthForScoring","max","regex","active","name","incrementSwitchesDueToErrors","_incrementCacheCount","min","STREBOPX","copyArray","sumNetworkLatency","failures","setLastResponses","minRequestSizeForBwEstimateKB","http5xxResponses","lowestPingTime","http2xxResponses","browserCacheHits","_latencyAtLastTrial","getAvgWBandwidth","downloadMillis","1594754hVtXmH","maxThroughput","getPeakBandwidthBitsPerSecond","isHeaderMatch","maxResponseBytes","getAvgRecentWBandwidth","includes","STREBOOS","sumVideoBytes","initialBw","statusCode","resetBandwidth","downloadedSegments","Audio","addResp","_peakBandwidthBitsPerSecond","addResponse","lowestSegmentBandwidth","addProbe","bannedRefTicToc","bandwidth","1013882KPEGTD","minThroughput","5639750XuQcFI","switches","Downloaded a ","_lastResponses","setChecked","switchesDueToQuality","usedOrProbed","2996634ELjQWU","retries","downloadedChunksVideo","3320004smtVfx","sumThroughput","highestPingTime","getLastResponse","indexOf","numberOfCdnCacheMisses","getAvgBandwidth","lastMeasurementWeight","score","list","getAvgRecentBandwidth","numberOfCdnCache
2Unknowns","minResponseTime","getLatencyEma","CODAVEL","time","switchesDueToErrors","test","entries","lastPreferedVideoChunkDownloadTime","maxResponseTime","snapshotLatencyForTrial","maxNetworkLatency","pattern","24PKgjBd","resetOnPing","failed","downloadedBytesVideo","getEffectiveBandwidthBps","route","toLowerCase","isCodavel","sumResponseTime","lastPingTime","rendition","11797984WeFzzB","switchesDueToConnectivity","numberOfCdnCacheHits","_updateCacheCount","http1xxResponses","recordPeakSample","sumVideoTime","length","add","getAvgResponseTime","samplesResponseTime","firstHugeChunkSize","port","video","http3xxResponses","downloadTimeForScoring","minAbsoluteImprovementMs","totalFail","hugeChunks","undefined","isChecked","_latencyEma","_updateCacheCounts","samplesResponseBytes","getCdnCacheHits","_parser","MAX_SAFE_INTEGER","weight","getWeightedBandwidth","isAudio","updateStatusCodeCounters","unbannedTime","minRelativeImprovement","size","host","samplesNetworkLatency","downloadedBytes","downloadTimeMs","dnsEnabled","trunc","bandwidthForScoring","pushLastPreferedVideoBandwidth","toFixed","lastPreferedVideoBandwidth","push","downloadedChunks","header","downloadMillisVideo","map","sumResponseBytes","provider","bannedTime","minNetworkLatency","incrementSwitchesDueToConnectivity","type","shift","_lastsPreferedVideoBandwidth","minResponseBytes"," at ","auth","http4xxResponses","highestSegmentBandwidth","samplesThroughput","url","lastPreferedVideoChunkSize","_accumBw","path","1880140YZAEFQ","wBandwidth","usedOnce","highestRenditionBandwidth","now","cdnName","lastn","fromEntries","calculateEffectiveBandwidth","assign","absolute","compressedBytes","pendingProbe","original","uncompressedBytes","getAvgLastVideoBandwidth","incrementSwitchesDueToQuality","getVideoBandwidth","getBandwidthInBits","downloadedBytesForScoring","clone","forEach","_checked","price"];return(Rt=function(){return t})()}At[Et(655)]=9e12;var Pt=Ct;!function(t){for(var e=Ct,i=t();;)try{if(411487==parseInt(e(426))/1*(-parseInt(e(434))/2)+parseInt(e(419))/3*(parseInt(e(427))/4)+parseInt(e(420))/5*(parseInt(e(439))/6)+-parseInt(e(441))/7*(parseInt(e(429))/8)+parseInt(e(436))/9+parseInt(e(424))/10*(parseInt(e(423))/11)+-parseInt(e(431))/12*(-parseInt(e(440))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Nt);class Dt{constructor(){var t=Ct;this[t(422)]=0,this[t(428)]=0,this[t(435)]=0,this._maxPing=0,this[t(433)]=Number[t(442)]}add(t){var e=Ct;this[e(421)]=Math[e(443)](this[e(421)],t),this[e(433)]=Math[e(437)](this._minPing,t),this.pingsTime+=t,this[e(422)]++,this[e(435)]=0===this[e(435)]?t:Math[e(425)](this[e(435)]*(1-B[e(438)])+t*B.lastMeasurementWeight)}[Pt(432)](){return this[Pt(435)]}[Pt(430)](){return this._maxPing}getMinPingTime(){return this[Pt(433)]}getSimpleAveragePingTime(){var t=Pt;return this[t(428)]/this[t(422)]}}function Ct(t,e){return t-=419,Nt()[t]}function Nt(){var t=["getAvgPingTime","_minPing","250vaccCx","averagePing","166473dUMWae","min","lastMeasurementWeight","1923126LsLbPa","2678260eCOHhL","1883uObWoI","MAX_SAFE_INTEGER","max","7686TLemIJ","5CZDhna","_maxPing","pingsCounter","6296257xLeQlU","10vjQBNv","trunc","3898rrUNgl","916mOLHfz","pingsTime","23952rGsmMo","getMaxPingTime","12KoajQq"];return(Nt=function(){return t})()}function Lt(){const t=["832248XeKZmr","102898DDhzLZ","5558868zeyUCm","isEnabled","p2pLoader","pingTime","values","done","bandwidth","monitor","_isMonitoring","next","testPeer","10777887eLPnlh","newDownloadedSegment","__awaiter","_lastPingBroadcast","_instance","throw","_pingBroadcastTimeInSeconds","apply","8GsuHrg","then","getInstance","826742oFtYUb","1061126bSeeNs","length","timeBetweenBurstsMilliseconds","value","10ilKyOs","5654370ZIJBBC","now","27lSNsRo"];return(Lt=function(){return t})()}const Bt=kt;function kt(t,e){return t-=463,Lt()[t]}!function(t){const e=kt,i=t();for(;;)try{if(587892==-parseInt(e(481))/1+-parseInt(e(490))/2*(-parseInt(e(488))/3)+parseInt(e(489))/4+parseInt(e(486))/5+parseInt(e(491))/6+parseInt(e(480))/7*(parseInt(e(477))/8)+-parseInt(e(469))/9*(parseInt(e(485))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Lt);class xt{constructor(t){const e=Bt;this[e(464)]=new Map,this[e(494)]=new Map,this[e(466)]=!1,this._pingBroadcastTimeInSeconds=60,this[e(472)]=Date[e(487)](),this[e(493)]=t}[Bt(470)](t){this.lastDownloadedSegment=t}[Bt(465)](){return t=this,e=void 0,s=function*(){const t=kt;if(!this._isMonitoring)for(this._isMonitoring=!0;;){if(Date[t(487)]()-this[t(472)]>1e3*this[t(475)])for(let e of this.p2pLoader.getPeers()[t(495)]())this.testPeer(e);else{for(;!this.lastDownloadedSegment;)yield new Promise(t=>setTimeout(t,1e3));const e=this.p2pLoader.getPeersWithContent(this.lastDownloadedSegment);e[t(482)]>0&&this[t(468)](e[0])}yield new Promise(e=>setTimeout(e,L[t(483)]))}}
2,new((i=void 0)||(i=Promise))(function(n,r){const o=kt;function a(t){const e=kt;try{d(s[e(467)](t))}catch(t){r(t)}}function c(t){const e=kt;try{d(s[e(474)](t))}catch(t){r(t)}}function d(t){const e=kt;var s;t[e(463)]?n(t.value):(s=t[e(484)],s instanceof i?s:new i(function(t){t(s)}))[e(478)](a,c)}d((s=s[o(476)](t,e||[]))[o(467)]())});var t,e,i,s}[Bt(468)](t){const e=Bt;this[e(493)][e(492)]()&&t.ping(t.id)}static[Bt(479)](t){const e=Bt;return null!=t&&(this[e(473)]=new xt(t)),this[e(473)]}}function Mt(t){return typeof t===Ut(424)&&isFinite(t)&&0!==t?t:1}function Ot(){const t=["max","firstByteTimeoutCap","round","514EGUAku","329wcjEwn","fallbackBudgetCap","29612tJKGOB","4300398MOXCrw","865704WYwegD","930065aGEyUV","56BBxmwC","fallbackBudgetScale","130697SYNakZ","4KsKpCf","min","2630hIuVof","number","firstByteTimeoutScale","1112184lFVhnD"];return(Ot=function(){return t})()}function Ut(t,e){return t-=413,Ot()[t]}function qt(t){const e=Ut;return{firstByteTimeoutScale:Mt(null==t?void 0:t[e(425)]),firstByteTimeoutCap:Mt(null==t?void 0:t[e(428)]),fallbackBudgetScale:Mt(null==t?void 0:t[e(419)]),fallbackBudgetCap:Mt(null==t?void 0:t[e(413)])}}function Vt(t,e,i){const s=Ut,n=Math[s(429)](t);return Math[s(422)](Math[s(427)](n,e),i)}!function(t){const e=Ut,i=t();for(;;)try{if(269543==parseInt(e(431))/1*(-parseInt(e(430))/2)+-parseInt(e(426))/3+-parseInt(e(421))/4*(parseInt(e(417))/5)+-parseInt(e(416))/6+parseInt(e(420))/7*(-parseInt(e(418))/8)+parseInt(e(415))/9+parseInt(e(423))/10*(parseInt(e(414))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ot);const Ft={firstByteTimeoutScale:1,firstByteTimeoutCap:1,fallbackBudgetScale:1,fallbackBudgetCap:1};function Ht(t,e=Ft){const i=Ut,s=typeof t===i(424)&&t>0?t:4e3,n=Vt(.375*s*e[i(425)],75,Math[i(429)](1500*e.firstByteTimeoutCap)),r=Vt(.1*s,25,400),o=Math.max(Vt(.375*s,100,1500),n),a=Math[i(427)](Vt(.45*s*e[i(419)],125,Math.round(5e3*e[i(413)])),Math.max(n+25,r+25));return{segmentDurationMilliseconds:s,electionWindowMs:Vt(.05*s,10,250),leaderPromotionDelayMs:r,firstByteTimeoutMs:n,idleChunkTimeoutMs:Vt(.375*s,75,1500),leaderLeaseMs:o,fallbackBudgetMs:a}}function Gt(t,e){return t-=114,Xt()[t]}const jt=Gt;!function(t){const e=Gt,i=t();for(;;)try{if(158605==parseInt(e(120))/1*(parseInt(e(127))/2)+-parseInt(e(118))/3*(-parseInt(e(128))/4)+-parseInt(e(117))/5+parseInt(e(122))/6*(parseInt(e(121))/7)+parseInt(e(119))/8*(parseInt(e(116))/9)+-parseInt(e(123))/10+-parseInt(e(124))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Xt);const Wt={VIDEO_ID:jt(126),HLS_MASTER:jt(125),DASH_MPD:"DASH_MPD",URL_FALLBACK:jt(115)};function Xt(){const t=["3219018FuUubf","HLS_MASTER","VIDEO_ID","2PMQlug","4GZXGcF","DASH_MPD","URL_FALLBACK","63wTAQrH","836590HMGOmC","178698aSDXcv","229432gAkxRX","231521RmHwSc","56xwmqkl","194928zqnZmc","1331830cJcTjb"];return(Xt=function(){return t})()}function zt(t){const e=jt;switch(t){case Wt[e(126)]:return 4;case Wt[e(125)]:case Wt[e(114)]:return 3;case Wt[e(115)]:return 1;default:return 0}}const Kt={allowPeerAccess:!1,announceCapture:!1};var Jt=__webpack_require__(235);function $t(t){var e=Yt;return(0,Jt.sha256)(t)[e(427)](0,32)}function Yt(t,e){return t-=418,Qt()[t]}function Qt(){var t=["1755804voClbF","1550eeThhp","7nrQwlB","8YSoIYN","570140WGDnqb","11wkQeBV","67bHWYDP","7319688oJGOWU","31486iHcjoT","57942TJEOMW","substring","6722448oQeVsG","261816JIwGqZ"];return(Qt=function(){return t})()}!function(t){for(var e=Yt,i=t();;)try{if(536429==-parseInt(e(423))/1*(parseInt(e(425))/2)+-parseInt(e(430))/3+parseInt(e(420))/4*(-parseInt(e(421))/5)+-parseInt(e(429))/6*(parseInt(e(419))/7)+parseInt(e(428))/8+parseInt(e(426))/9*(parseInt(e(418))/10)+parseInt(e(422))/11*(parseInt(e(424))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Qt);const Zt=te;function te(t,e){return t-=273,ce()[t]}!function(t){const e=te,i=t();for(;;)try{if(190740==-parseInt(e(317))/1+-parseInt(e(275))/2+parseInt(e(297))/3+-parseInt(e(294))/4*(parseInt(e(280))/5)+-parseInt(e(286))/6+parseInt(e(287))/7*(parseInt(e(315))/8)+parseInt(e(308))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ce);
2const ee={VIDEO:Zt(277),AUDIO:Zt(301),SUBTITLES:Zt(289),UNKNOWN:Zt(314)},ie=/(\d+)/g,se=[Zt(276),Zt(279),Zt(312),Zt(320)],ne=[Zt(281),Zt(307),Zt(316),Zt(298),"webvtt",".vtt"],re=/^[_-]+|[_-]+$/g;function oe(t,e){const i=Zt;try{return e[i(300)]+e[i(311)]}catch(e){return t}}class ae{[Zt(292)](t){this[Zt(305)]=t}resolve(t){const e=Zt;var i;const s=null===(i=this[e(305)])||void 0===i?void 0:i.resolve(t);if(s)return{segmentId:$t(s[e(285)]),rendition:s[e(291)],renditionResourceUrl:s.renditionResourceUrl,trackType:s.trackType,isInitialization:s[e(303)],segmentDurationMilliseconds:s[e(278)]};let n;try{n=new URL(t.url)}catch(t){return}const r=function(t){try{return decodeURIComponent(t)}catch(e){return t}}(n.pathname);if(!r||0===r.length)return;const o=function(t){const e=Zt,i=t[e(290)]();for(const t of se)if(i[e(273)](t)>=0)return ee[e(288)];for(const t of ne)if(i[e(273)](t)>=0)return ee[e(283)];return ee.VIDEO}(r),a=r[e(296)]("/"),c=a[a.length-1]||"",d=c[e(296)]("?")[0]||c,h=function(t){const e=Zt,i=t.toLowerCase();return i[e(273)](e(284))>=0||i.indexOf(e(319))>=0||i[e(273)]("bootstrap")>=0||0===i[e(273)]("i.mp4")}(d),l=t.rangeHeader||"",u=function(t,e){const i=Zt,s=t[i(296)]("/")[i(306)](t=>t[i(290)]())[i(293)](t=>t[i(295)]>0),n=s[i(274)](0,Math[i(304)](0,s[i(295)]-1)),r=n.slice(Math[i(304)](0,n[i(295)]-2))[i(310)]("/");return e+":"+(r[i(295)]>0?r:i(313))}(r,o);let p=o+":"+(h?"init":e(318))+":"+u+":"+function(t,e){const i=Zt,s=function(t){const e=Zt;let i,s;for(ie[e(282)]=0;null!==(i=ie[e(299)](t));)s=i[1];if(s&&s.length>=2)return s}(e),n=t[i(296)]("/").filter(t=>t[i(295)]>0),r=n.slice(Math[i(304)](0,n.length-3)).map(t=>t.toLowerCase()[i(309)](re,"")).join("/");return s?r+":"+s:r[i(295)]>0?r:e[i(290)]()}(r,d);return l.length>0&&(p+=":"+l),{segmentId:$t(p),rendition:u,renditionResourceUrl:oe(t[e(302)],n),trackType:o,isInitialization:h}}}function ce(){const t=["media","header","audio-","indexOf","slice","168750IkoaRs","/audio/","video","segmentDurationMilliseconds","audio_","315ZWxFuV","/sub","lastIndex","SUBTITLES","init","canonicalKey","1184214vQcUWT","7ovMZJo","AUDIO","subtitles","toLowerCase","rendition","setManifestRegistry","filter","7964Wqqwmm","length","split","992043ZiRBwi","captions","exec","origin","audio","url","isInitialization","max","manifestRegistry","map","/text","3199842MVlhXR","replace","join","pathname","_audio","default","unknown","1359472CRtUpn","subtitle","258236lrIgAn"];return(ce=function(){return t})()}const de=le;!function(t){const e=le,i=t();for(;;)try{if(395367==parseInt(e(434))/1+parseInt(e(609))/2+-parseInt(e(527))/3*(parseInt(e(596))/4)+parseInt(e(336))/5*(-parseInt(e(424))/6)+-parseInt(e(633))/7+parseInt(e(564))/8+parseInt(e(555))/9*(parseInt(e(406))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pe);var he=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=le;function a(t){const e=le;try{d(s[e(452)](t))}catch(t){r(t)}}function c(t){const e=le;try{d(s[e(340)](t))}catch(t){r(t)}}function d(t){const e=le;var s;t.done?n(t[e(583)]):(s=t.value,s instanceof i?s:new i(function(t){t(s)})).then(a,c)}d((s=s[o(496)](t,e||[]))[o(452)]())})};function le(t,e){return t-=274,pe()[t]}const ue=new Set([ee[de(440)],ee[de(649)],ee[de(613)]]);function pe(){const t=["isArray","PRIMARY"," peer-timeouts: ","_maxBandwidth","_switchesDueToConnectivity","Max peers reached -> ","verbose","getUploadedUniqPeers","peerSegmentUpload","concat","P2P","p2pFirstByteTimeoutScale","Already banned peer -> ","canShareTrack","rejoin"," / ","connectivity","BACKUP","BANNING Peer -> ","get","_sendNewSegmentToAllPeersV1","announcedP2P","_maxResponseBytes","_activeDerivedTiming","P2P Unable to request to more peers max concurrency (","_segmentAbsentRequests","fallbackBudgetMs","getPeersWithContent","getLastBandwith","_buildSwarmIdInput","_sumVideoBytes","_shutdownP2PManager","assign","_refreshDerivedTiming","P2P Warning ","P2PRS Requesting segment ","addPeerCandidate","CREATEPEERCONNECTING","_cacheRetentionMs","setRendition","_storage","_minUploadBandwidthBps","_chunkUploadDiscardedCount","_maxConnectedPeers","_failedRequests","set","getBannedPeers","storeSegment","getInstance","_javaStringHashCode","_manifestRegistry","getLastSegmentCreatedAt","now","peerRequestsPerAnnounce","sendSegment","updatePeerMetrics","getAvgBytesPerSecond","rendition","getLastDownloadsTraffic","_totalPeerSet","_minRenditionBandwidthBps","monitor","sendRawSegment","1120ZQMfpd","_timingScales","profileName","leaderRole","_minThroughput","p2pRenditionStableSegmentCount","setSwarmIdInput"," SM Size-> ","BANNING peer ","P2P Error: ","getMaxPeers","byteLength","segmentDuration","P2P timeout on segment ","getLastUploadsTraffic","_performReset","peerFailedSegmentTimeout","_peerConnectionTime","4379874gPrCDl"," size -> ","_cdnObject","pathname","getCdnEmaBandwidthBps","_byteUploadDiscardedCount","_peersParallelUsed","P2PUR Peer requested segment -> ","getVersion","getStorage","38644LzkKgq","sendSegmentState"," expectedBytes=","isAhead","_shareTrackTypes","appendAcquiringBytes","VIDEO","_errorListener","recordCdnThroughput","timeouts","setRe
2source","_cacheEvictionTimer","Error","sendNewSegmentAvailable","getSegment","evictExpiredAndOverflow","getSegmentMap","_cdnEmaBandwidthBps","next","_activeVideoRendition","request","firstByteTimeoutMs","peerFailedSegmentAbsent","_peerTimeoutsForBan","_applyCanonicalSwarmIdentityToManager","getPeersNothing","_diskStore","clear","_downloadedBytesVideo","_downloadMillisVideo","lastMeasurementWeight","_sumResponseBytes","P2P adding the candidate. "," last msg -> ","createMap","getPeersAhead","add","NONE","_downloadedPeers","Active downloads vs max concurrencui P2PMO -> ","_maxPeersAvailable","getMaxSize","map","initialBw"," after ","username","_samplesNetworkLatency","_errorRequests","_chunkDownloadCount","time","isMaxPeers","_cacheMaxBytes","p2p","peerSegmentLoaded","then","_sumResponseTime","noContentObtained","_minResponseBytes","min","_minResponseTime","determineLocalClaimRole","getDerivedTimingForSegment","apply","charCodeAt","_activeDownloads","source","_p2pManager","_minPeersParallelUsed","_maxPeersParallelUsed","trackType","_sendMapToAllPeersV0","sendMap","_chunkUploadCount","P2P runtime toggle received -> enabled=","leaderLeaseMs","peerCloseListener","debug","_minNetworkLatency","P2PManager","v2SegmentDurationMs","Ignoring p2p manager destroy error during shutdown","trim","_candidateVideoRendition","_buildInfoHashInput","getUploadedBytes","_samplesResponseTime","_maxConcurrent","_accumBw","MAX_SAFE_INTEGER","getUploadedChunks","uri","resetOnPing","flat","717ciEIFj","endTime","_offerInterval","s messages: ","state","_updatePeersMetricsRefCounter","_sumNetworkLatency","error","requestAsyncWithElection","max","bandwidthPosition","_sessionMaxActivePeers","getOldestRequestTS","_sumThroughput","createOrGetAcquiring","maxParallelP2PDownloads","_peersAvailable","READY","_destroyed","Problem peer doen't exists?","_checkAndBanPeer","_minBandwidth","_packageFound","Ignoring candidate peer destroy error during state reset","isMedia","trackerAnnounce","readDataSync","setRuntimeP2pEnabled","26271WzPqhR","v2Rendition","_minPeersAvailable","isAudio","getDownloadBandwidth","v2TrackType","_maxThroughput","peer","tracker","5423488EhHvbr","p2pId","getStats","delete","_peerDiscoveryTime","getUploadRequests","getUploadRequestsFailed","videoId","_maxResponseTime","reduce","_isEnabled","P2PSMAP new segment to all peers: ","getLastResponses","_accountCode","setSettings","WebRtcEvents","sendJoin","consumeOnly","_options","value","addPeerResponse","credential"," from peer ","getCdnObject","_timeoutRequests","recordSwitchFromP2P","sort","_staticOptionsSignature","append","Already have max peers","triedP2P","bw:","4244mAKtkQ","electionWindowMs","_clearPeerState","_samplesThroughput","_startCacheEvictionTimer","getPeersBehind","_uploadRequestsFailed","string","entry vanished","P2P Requesting new segment ","forEach","_warningListener","cacheMaxBytes","1135606VOqyzx","isBehind","undefined","quality","SUBTITLES","_byteUploadCount","getLastSegmentDataMessagesTime","disable","Cache eviction tick failed: ","route","isEnabled","_activeRenditionBandwidthBps","destroy","_availablePeersMap","stringify","onOffer","Deferring P2P join: no active rendition yet","iceServers","upload","P2P Requesting segment ","_monitoringStarted","_byteDownloadCount","urls","_cdnPingTimeBean","1626702ucjloY","_peersUsed","_downloadMillis","bind","warn","length","_localClaimRoles","_observeSegmentRendition","onDiscovery","random","v2IsInitialization","P2P election request failed, falling back to CDN","_buildTrackerResource","addResponse","hasSpeedData","sendNoSegment","AUDIO","Constants","leaseExpiryMs","_candidates","_sumVideoTime","_runtimeP2pEnabled","_switchSwarm","realBodySize","P2P MAP send map to peer ","addTimeout","peerConnect","bandwidthForRendition","_segmentsRequested","size","setLastResponses","start","P2P ADDPEERCANDIDATE - received message from ","_switches","setConfigName","_streamAcquiringToPeer","hasSegment","_renditionStableSegmentCount","P2P peer already exist. ","floor","terminal state ","_peers","cacheRetentionSeconds","p2pMinUploadBandwidthBps","values","consecutiveHaveSegment","origRes"," not available ","attachV2Collaborators","from","resource","toLowerCase","P2PSMAP Send map all v0 size: ","_buildRenditionKey","peerSegmentProgress","_downloadedChunksVideo"," audio -> ","currentSwarmIdentity","maxConnectedPeers","bandwidth","announceCapture","markReady","push","data","catch","_uploadRequests","_sendMapToPeer"," delay ","_resolveFirstByteTimeout","setBandwidth","_samplesResponseBytes","_switchesDueToQuality","Ignoring storage destroy error","notice","_acquiringAppendedBytes","getId","_bannedPeers","canonicalId","p2pFallbackBudgetScale"," peers: ","Problem max concurrency ","addPeerLatency","_timeoutDiscardedBytes","_switchesDueToErrors","ACQUIRING","getSegmentDataMessages","indexOf","_activeDownloadIds","getLastLatencyP2P","_candidateStableCount"," | ","yes","password","_maxNetworkLatency","_clearRenditionCandidate","p2pFallbackBudgetCap","trunc","|pos:"," pos: ","5fAfeog","getAvgPingTime","peerCanceledSegmentUpload","_activePeerSet","throw","has","peerSegmentUploadRequest"];return(pe=function(){return t})()}class fe{constructor(t,e,n){const r=de;this.upload=I[r(627)],this[r(574)]=!1,this[r(654)]=!0,this[r(549)]=!1,this[r(520)]=I.maxConcurrency,this._maxConnectedPeers=I[r(295)],this[r(274)]=3,this[r(326)]=0,this[r(457)]=3,this[r(407)]=qt(void 0),this[r(403)]=0,this[r(384)]=0,this[r(451)]=0,this[r(620)]=0,this[r(438)]=new Set([ee.VIDEO]),this[r(381)]=12e4,this._cacheMaxBytes=134217728,this._peers=new Map,this[r(313)]=new Map,this[r(652)]=new Map,this[r(498)]=0,this[r(661)]=new Map,this[r(324)]=[],this[r(629)]=!1,this[r(421)]=!1,this[r(639)]=new Map,this[r(472)]=new Map,this._uplodadedPeers=new Map,this[r(346)]=0,this._minBandwidth=Number[r(522)],this[r(319)]=0,this[r(387)]=0,this[r(588)]=0,this[r(368)]=0,this[r(481)]=0,this[r(635)]=0,this[r(630)]=0,this[r(482)]=0,this[r(402)]=new Set,this._activePeerSet=new Set,this[r(622)]=new Map,this._sessionMaxActivePeers=0,this[r(532)]=0,this[r(529)]=45e3,this[r(666)]=0,this[r(308)]=0,this[r(347)]=0,this[r(320)]=0,this[r(521)]=At[r(477)],this[r(463)]=0,this._downloadedBytesVideo=0,this[r(292)]=0,this[r(429)]=0,this[r(385)]=0,this._chunkUploadCount=0,this._byteUploadCount=0,this[r(302)]=0,this._uploadRequestsFailed=0,this[r(545)]=!1,this[r(311)]=new Map,this[r(577)]=t,this[r(582)]=e,this[r(383)]=n,this._cdnObject=ne
2w At(r(353),r(353),"","","",1,!1,0,0,!1,!1),this._cdnObject[r(306)](this[r(521)]),this[r(426)][r(663)](this.getLastResponses()),this._cdnPingTimeBean=new Dt,window[r(512)]?this[r(549)]=!0:i.default[r(310)](s.BalancerTag,"P2P dependency does not exist. Disabling P2P!")}isEnabled(){const t=de;return this[t(549)]&&this[t(574)]&&this[t(654)]}enable(){const t=de;this[t(574)]=!0,this[t(654)]=!0}[de(616)](){this[de(574)]=!1,this._runtimeP2pEnabled=!1,this._shutdownP2PManager()}[de(433)](){return this[de(383)]}[de(350)](){const t=de;return this._uplodadedPeers[t(662)]}[de(469)](){const t=de;let e=0;for(const i of this[t(278)].values())i[t(437)]&&e++;return e}[de(601)](){const t=de;let e=0;for(const i of this[t(278)][t(281)]())i[t(610)]&&e++;return e}[de(459)](){const t=de;let e=0;for(const i of this[t(278)][t(281)]())i[t(437)]||i[t(610)]||e++;return e}[de(312)](){var t;return null===(t=this._p2pManager)||void 0===t?void 0:t.getId()}[de(587)](){return this._cdnObject}resetP2PConnection(){this[de(421)]=!0}[de(517)](){const t=de;var e,i;const s=this._options[t(571)];if(s&&s[t(638)]>0)return this[t(577)]+s;const n=null===(e=this._manifestRegistry)||void 0===e?void 0:e[t(294)]();if(n&&n[t(314)][t(638)]>0)return this._accountCode+n[t(314)];const r=null!==(i=this[t(582)][t(287)])&&void 0!==i?i:"";try{const e=new URL(r);return this[t(577)]+e[t(427)]}catch(e){return this[t(577)]+r}}[de(372)](){const t=de,e=this[t(582)][t(287)],i=this[t(453)];if(e&&0!==e[t(638)]&&i&&0!==i[t(638)])return this._accountCode+e+i}_buildTrackerResource(){var t;return null!==(t=this[de(582)].resource)&&void 0!==t?t:""}[de(290)](t){const e=de;if(t.v2TrackType===ee.VIDEO&&t[e(556)]&&t[e(556)][e(638)]>0)return t[e(556)];if(!t[e(400)]||t[e(400)][e(558)])return;if(t[e(400)][e(524)]&&t[e(400)][e(524)].length>0)return t[e(400)][e(524)];const i=t[e(400)].bandwidth||0,s=t[e(400)][e(537)]||0;return e(595)+i+e(334)+s}[de(331)](){const t=de;this[t(516)]=void 0,this[t(326)]=0}[de(640)](t){const e=de;if(t[e(643)])return;const i=this[e(290)](t);i&&(i!==this[e(453)]?(this[e(516)]===i?this[e(326)]+=1:(this._candidateVideoRendition=i,this[e(326)]=1),this[e(326)]>=this[e(274)]&&(this[e(453)]=i,this[e(331)](),this[e(376)](t[e(418)]),this[e(620)]=t.rendition&&t[e(400)][e(296)]>0?t.rendition[e(296)]:0,this[e(655)]())):this._clearRenditionCandidate())}[de(598)](){const t=de;for(const[,e]of this._segmentsRequested)e[t(490)]();const e=Array.from(this[t(652)].values())[t(526)]();this[t(652)].clear();const n=Array[t(286)](this[t(278)].values());this[t(278)][t(461)](),e.forEach(e=>{const n=t;
2try{e[n(621)]()}catch(t){i.default[n(349)](s.BalancerTag,n(550))}}),n.forEach(e=>{const n=t;try{e[n(621)]()}catch(t){i.default[n(349)](s.BalancerTag,"Ignoring active peer destroy error during state reset")}}),this[t(661)][t(461)](),this[t(498)]=0,this[t(324)]=[],this[t(639)][t(461)](),this[t(622)][t(461)](),this[t(339)][t(461)](),this[t(398)]()}[de(458)](){const t=de;var e;if(!this[t(500)])return;const i=null===(e=this[t(393)])||void 0===e?void 0:e.currentSwarmIdentity();this._p2pManager.setCanonicalSwarmIdentity(null==i?void 0:i[t(314)],null==i?void 0:i[t(499)])}[de(655)](){const t=de;this[t(500)]&&(this[t(598)](),this[t(313)][t(461)](),this[t(500)][t(382)](this[t(453)]),this[t(500)][t(412)](this._buildSwarmIdInput()),this[t(458)](),this[t(500)][t(357)](this[t(517)](),!0))}[de(374)](){const t=de;if(this[t(500)]){try{this[t(500)][t(621)]()}catch(e){i.default[t(349)](s.BalancerTag,t(514))}delete this[t(500)],this[t(591)]=void 0,this[t(598)](),this[t(313)][t(461)](),this._activeVideoRendition=void 0,this[t(331)](),this._stopCacheEvictionTimer()}}[de(580)](){const t=de;this[t(549)]&&this[t(574)]&&this[t(654)]&&this[t(500)]&&(this[t(453)]?(this[t(500)].setRendition(this._activeVideoRendition),this._p2pManager[t(444)](this._buildTrackerResource()),this[t(500)][t(412)](this._buildSwarmIdInput()),this[t(458)](),this._p2pManager[t(357)](this[t(517)]())):i.default[t(349)](s.BalancerTag,t(625)))}[de(578)](t){const e=de;if(!this._packageFound)return;if(!t[e(486)]||!t[e(486)].enabled)return i.default[e(510)](s.BalancerTag,"P2P support disabled."),this[e(574)]=!1,this._runtimeP2pEnabled=!1,void this[e(374)]();this[e(574)]=!0,this._runtimeP2pEnabled=!0,this[e(627)]=!t.p2p[e(581)]||I[e(627)],this[e(520)]=t[e(486)][e(542)]||I.maxConcurrency,this[e(386)]=t[e(486)][e(295)]||I[e(295)],this[e(274)]=Math[e(492)](10,Math[e(536)](1,t[e(486)][e(411)]||this[e(274)])),this._minRenditionBandwidthBps=Math[e(536)](0,t[e(486)].p2pMinRenditionBandwidthBps||0),this[e(384)]=Math[e(536)](0,t.p2p[e(280)]||0),this._timingScales=qt({firstByteTimeoutScale:t[e(486)][e(354)],firstByteTimeoutCap:t[e(486)].p2pFirstByteTimeoutCap,fallbackBudgetScale:t[e(486)][e(315)],fallbackBudgetCap:t[e(486)][e(332)]}),this._activeDerivedTiming=void 0,this[e(438)]=function(t){const e=de;if(!t||0===t[e(638)])return new Set([ee[e(440)]]);const i=new Set;for(const s of t){if(typeof s!==e(603))continue;const t=s[e(288)]();ue[e(341)](t)&&i[e(470)](t)}return 0===i[e(662)]&&i[e(470)](ee[e(440)]),i}(t[e(486)].shareTrackTypes),"number"==typeof t.p2p[e(279)]&&t[e(486)].cacheRetentionSeconds>0&&(this._cacheRetentionMs=1e3*t.p2p[e(279)]),"number"==typeof t.p2p[e(608)]&&t.p2p.cacheMaxBytes>=0&&(this[e(485)]=t[e(486)][e(608)]),this._startCacheEvictionTimer();const n=(t.profile||this[e(582)][e(408)]||"")[e(515)](),r=this[e(517)](),o=this._buildSwarmIdInput(),a=this[e(645)](),c=function(t){const e=de;var i;if(!t||0===t[e(638)])return;const s=[];for(const n of t){if(!n||!n[e(631)])continue;const t=n[e(631)];if(typeof t!==e(603)&&(!Array[e(343)](t)||0===t.length))continue;const r={urls:t};n[e(479)]&&(r[e(479)]=n.username);const o=null!==(i=n.credential)&&void 0!==i?i:n[e(329)];o&&(r[e(585)]=o),s[e(299)](r)}return s.length>0?{iceServers:s}:void 0}(t[e(486)][e(626)]),d={tracker:t[e(486)][e(552)]||I[e(563)],accountCode:this[e(577)],protocolVersion:2,announcePeers:t[e(486)][e(396)],iceServers:c},h=JSON[e(623)](d);this[e(500)]&&h!==this[e(591)]&&this[e(374)](),this[e(500)]?(this[e(500)][e(382)](this[e(453)]),this._p2pManager.setResource(a),this[e(500)][e(667)](n.length>0?n:void 0),this[e(500)][e(412)](o),this[e(458)]()):(this[e(500)]=new(window[e(512)])(this,r,Object[e(375)](Object[e(375)]({},d),{configName:n[e(638)]>0?n:void 0,resource:a,rendition:this[e(453)]})),this[e(591)]=h,this[e(500)].setSwarmIdInput(o),this._applyCanonicalSwarmIdentityToManager(),this[e(500)].on(window.P2PManager[e(650)].WebRtcEvents[e(446)],fe[e(441)][e(636)](this)).on(window.P2PManager[e(650)][e(579)].Warning,fe[e(607)][e(636)](this))[e(664)](),i.default[e(510)](s.BalancerTag,"P2P support enabled "+this[e(312)]()))}[de(554)](t){const e=de;if(this._isEnabled&&this[e(654)]!==t){if(this[e(654)]=t,i.default[e(510)](s.BalancerTag,e(507)+t),!t)return this._bannedPeers[e(461)](),void this._clearPeerState();this[e(580)]()}}startMonitoring(){const t=de;this[t(629)]||(this[t(629)]=!0,xt[t(391)]()[t(404)]())}[de(484)](){const t=de;return this._peers[t(662)]>=this[t(386)]&&(i.default.verbose(s.BalancerTag,t(348)+this[t(278)][t(662)]),!0)}getMissingPeers(){const t=de;return this._maxConnectedPeers-this[t(278)][t(662)]}[de(416)](){return this[de(386)]}getBannedPeers(){return this[de(313)]}[de(569)](){return this[de(302)]}[de(570)](){return this[de(602)]}[de(448)](t){const e=de;return this[e(383)][e(448)](t[e(565)])}[de(370)](t){const e=de;if(!this.isEnabled()||this[e(545)]||0==this._peers[e(662)])return[];const n=[];for(const r of this[e(278)][e(281)]())if(0==r.getSegmentMap().length){const t=Date.now()-r[e(615)]();(t>3e4&&r.getSegmentDataMessages()<2||t>12e4)&&(this._bannedPeers[e(388)](r.id,!0),r[e(621)](),i.default.verbose(s.BalancerTag,e(361)+r.id+e(413)+r[e(450)]()[e(638)]+e(467)+t/1e3+e(530)+r[e(322)]()))}else(!r.isDownloading()||r.getVersion()>=2)&&r[e(450)]()[e(638)]>0&&r.getSegmentMap().indexOf(t.p2pId)>=0&&n[e(299)](r);if(0==n[e(638)])return[];let r=[];for(const t of n)t[e(325)]()>0&&t[e(325)]()<5&&r[e(299)](t);if(0==r[e(638)])for(const t of n)t.getLastLatencyP2P()>0&&t[e(325)]()<7&&r[e(299)](t);if(0==r[e(638)]){let t=[];for(const i of n)0==i.getLastBandwith()&&0==i[e(443)]&&r.push(i),i[e(371)]()>0&&t[e(299)](i);t=t.sort((t,i)=>i[e(371)]()-t.getLastBandwith()),r=t[e(638)]<4?r[e(352)](t):r[e(352)](t.slice(0,3))}return 0==r.length&&(r=n),r}[de(454)](t,e){const n=de;var r,o;
2if(!this[n(619)]())return!1;if(this._observeSegmentRendition(t),i.default[n(349)](s.BalancerTag,n(473)+this[n(498)]+" "+this[n(520)]),this[n(498)]>this[n(520)]&&i.default[n(349)](s.BalancerTag,n(317)+this._activeDownloads),this[n(498)]<=this[n(520)]){i.default[n(349)](s.BalancerTag,n(605)+t[n(565)]+n(327)+(null===(r=t[n(400)])||void 0===r?void 0:r[n(558)])+n(316)+this[n(278)][n(662)]);const e=this[n(370)](t);if(e[n(638)]>0){const r=Array[n(286)](e).sort((t,e)=>.5-Math[n(642)]())[0];return this[n(661)].set(t.p2pId,t),this[n(498)]++,t.triedP2P=!0,r.request(t[n(565)],this[n(305)](t)),t[n(562)]=r,r[n(282)]++,i.default.verbose(s.BalancerTag,n(378)+t.p2pId+" audio -> "+(null===(o=t.rendition)||void 0===o||o.isAudio,n(328),"no available from peer ")+r.id+n(425)+r.getSegmentMap()[n(638)]+n(335)+r[n(450)]()[n(323)](t[n(565)])+n(345)+r.timeouts),!0}return this[n(535)](t)[n(488)](e=>{e||this[n(545)]||t.noContentObtained()})[n(301)](e=>{const r=n;i.default[r(637)](s.BalancerTag,r(644),e),!this[r(545)]&&t[r(490)]()}),!0}return i.default.debug(s.BalancerTag,n(367)+this[n(520)]+") already reached"),!1}[de(584)](t){const e=de;this._cdnObject[e(646)](t)}getLastResponses(){const t=de;return Array.from(this._peers[t(281)]())[t(476)](e=>e[t(576)]())[t(573)]((t,e)=>[...t,...e],[])[t(590)]((e,i)=>i[t(483)]-e.time)}[de(318)](t){const e=de;this[e(632)].add(t),this[e(426)].avgPingTime=this._cdnPingTimeBean.getAvgPingTime(),typeof this[e(533)]===e(611)?this[e(533)]=t:this._sumNetworkLatency+=t,void 0===this._minNetworkLatency?this[e(511)]=t:this._minNetworkLatency=Math.min(this[e(511)],t),typeof this[e(330)]===e(611)?this[e(330)]=t:this._maxNetworkLatency=Math[e(536)](this[e(330)],t),typeof this[e(480)]===e(611)?this[e(480)]=1:this[e(480)]+=1}static[de(441)](t){const e=de;i.default[e(534)](s.BalancerTag,e(415),t)}static[de(607)](t){const e=de;i.default.warn(s.BalancerTag,e(377),t)}[de(390)](t){const e=de;if(this[e(619)]())if(this[e(640)](t),this[e(627)]){const i=this[e(383)][e(390)](t);!t[e(364)]&&i&&(t[e(364)]=!0,this[e(363)](t),this[e(504)]());const s=this[e(324)][e(323)](t[e(565)]);s>=0&&this[e(324)].splice(s)}else if(!t[e(364)]){t.announcedP2P=!0;const i=this[e(383)][e(468)]();this[e(278)][e(606)](t=>{t[e(505)](i)})}}[de(504)](){const t=de;if(this[t(545)])return;const e=this[t(383)][t(468)](),n=Date[t(395)]()-this[t(383)][t(394)]();i.default.verbose(s.BalancerTag,t(289)+e[t(638)]+t(358)+this._peers[t(662)]+t(304)+n),e[t(638)]>0&&this[t(278)].forEach(i=>{const s=t;0==i.getVersion()&&i[s(505)](e)})}[de(363)](t){const e=de;if(this[e(545)])return;const n=this._storage[e(468)]();i.default.verbose(s.BalancerTag,e(575)+n[e(638)]),n.length>0&&this[e(278)][e(606)](i=>{const s=e;i[s(432)]()>0&&i[s(447)](t[s(565)],t[s(662)],this[s(383)][s(475)](),t.createdAt)})}[de(303)](t){const e=de;if(this._destroyed)return;const n=this[e(383)].createMap();i.default[e(349)](s.BalancerTag,e(657)+n.length+" "+t);let r=!1;this[e(278)].forEach(i=>{const s=e;i.id==t&&(i[s(505)](n),r=!0)}),!r&&i.default[e(349)](s.BalancerTag,e(546))}[de(379)](t,e){const n=de;var r;if(!this[n(545)]&&this[n(619)]())if(this._availablePeersMap[n(388)](t.id,Date.now()),null==this[n(313)].get(t.id))if(i.default[n(349)](s.BalancerTag,n(665)+t.id+" "),this[n(484)]())i.default[n(510)](s.BalancerTag,n(593));else{if(!this[n(278)][n(341)](t.id)){!this[n(652)][n(341)](t.id)&&this._candidates[n(388)](t.id,[]);const o=new ft(this,t,e);null===(r=this[n(652)][n(362)](t.id))||void 0===r||r[n(299)](o),i.default[n(349)](s.BalancerTag,"P2P New peer candidate "+o.id)}this[n(398)]()}else i.default[n(510)](s.BalancerTag,n(355)+t.id)}[de(659)](t){const e=de;var n;i.default.verbose(s.BalancerTag,e(380)),!this[e(545)]&&this[e(619)]()&&(this[e(622)][e(388)](t.id,Date[e(395)]()),this[e(389)]().get(t.id)||(this[e(484)]()?i.default[e(510)](s.BalancerTag,"Already have max peers"):(this[e(278)][e(341)](t.id)?(i.default[e(510)](s.BalancerTag,e(275)+t.id),t[e(621)]()):(i.default[e(510)](s.BalancerTag,e(466)+t.id),this[e(278)][e(388)](t.id,t),this[e(339)].add(t.id),this._totalPeerSet[e(470)](t.id),null===(n=this[e(652)].get(t.id))||void 0===n||n[e(606)](e=>{t!=e&&e.destroy()}),this[e(652)][e(567)](t.id),this[e(303)](t.id)),this[e(398)]())))}[de(509)](t){const e=de,i=t;this[e(278)][e(567)](i.id),this[e(339)].delete(i.id);const s=this[e(652)][e(362)](i.id);if(s){const t=s[e(323)](i);t>-1&&(s.splice(t,1),!s.length&&this[e(652)][e(567)](i.id))}this[e(398)]()}[de(342)](t,e,n){const r=de;this._uploadRequests++;let o=this._uplodadedPeers[r(362)](t.id);if(null==o&&(o=0),this._uplodadedPeers[r(388)](t.id,o),this[r(545)])return;if(this._diskStore){const i=this._diskStore[r(362)](e);if(i&&i[r(531)]===_[r(544)]){const s=i[r(553)]();if(s&&s[r(417)]>0)return void t[r(405)](e,s,n)}if(i&&i.state===_.ACQUIRING)return void this[r(668)](t,e,n)}const a=this[r(383)][r(448)](e);let c=!1;a&&a[r(300)].byteLength>1?(t[r(397)](e,a,n),c=!0):(t[r(648)](e,n),this[r(303)](t.id),this[r(602)]++),i.default[r(349)](s.BalancerTag,r(431)+c+" | "+e+" "+(null==a?void 0:a[r(662)])+" "+(null==a?void 0:a[r(300)][r(417)])+r(327)+t.id+" "+n+" "+(null==a?void 0:a[r(283)]
2))}[de(487)](t,e,i,s){const n=de;var r;this._activeDownloads--,this._chunkDownloadCount++,this[n(635)]+=i,this[n(630)]+=s.byteLength,typeof this[n(465)]===n(611)?this[n(465)]=s[n(417)]:this[n(465)]+=s[n(417)],typeof this._minResponseBytes===n(611)?this._minResponseBytes=s.byteLength:this[n(491)]=Math.min(this[n(491)],s.byteLength),void 0===this._maxResponseBytes?this._maxResponseBytes=s[n(417)]:this[n(365)]=Math[n(536)](this._maxResponseBytes,s.byteLength),void 0===this[n(307)]?this._samplesResponseBytes=1:this._samplesResponseBytes+=1,null===(r=this[n(661)][n(362)](e))||void 0===r||r.setContent(s),t.decayTimeout();const o=Math[n(333)](s[n(417)]/(i/1e3));this[n(521)]=this[n(521)]!==At.initialBw?Math[n(333)](this._accumBw*(1-B.lastMeasurementWeight)+o*B[n(464)]):o,this._cdnObject.setBandwidth(this[n(521)]),typeof this._sumThroughput===n(611)?this[n(540)]=o:this[n(540)]+=o,typeof this[n(410)]===n(611)?this._minThroughput=o:this[n(410)]=Math[n(492)](this._minThroughput,o),typeof this[n(561)]===n(611)?this[n(561)]=o:this._maxThroughput=Math[n(536)](this[n(561)],o),void 0===this[n(599)]?this[n(599)]=1:this._samplesThroughput+=1,typeof this._sumVideoBytes===n(611)?this[n(373)]=s[n(417)]:this[n(373)]+=s[n(417)],typeof this._sumVideoTime===n(611)?this[n(653)]=i:this[n(653)]+=i,void 0===this[n(489)]?this[n(489)]=i:this[n(489)]+=i,void 0===this[n(493)]?this[n(493)]=i:this[n(493)]=Math[n(492)](this[n(493)],i),typeof this[n(572)]===n(611)?this[n(572)]=i:this[n(572)]=Math[n(536)](this._maxResponseTime,i),typeof this[n(519)]===n(611)?this._samplesResponseTime=1:this._samplesResponseTime+=1;const a=this._segmentsRequested[n(362)](e);if(a){const t=a[n(618)];d.forEach(e=>{const r=n;t[r(323)](e)>=0&&(null==a.rendition||!a[r(400)][r(558)])&&(this[r(463)]+=i,this._downloadedBytesVideo+=s[r(417)],this._downloadedChunksVideo++)}),a[n(528)]=Date[n(395)](),a[n(656)]=s.byteLength,this.storeSegment(a),this[n(661)].delete(e)}}[de(291)](t,e,i,s,n){const r=de;if(0==n)return;const o=this[r(661)][r(362)](e);if(o&&(o[r(528)]=Date[r(395)]()),o&&!this[r(383)][r(448)](o.id)&&(n>0&&(o[r(656)]=n),this.storeSegment(o)),o&&(o[r(300)]=s),o&&o.id){const t=this[r(383)][r(448)](o.id);t&&(t[r(300)]=s)}}[de(422)](t,e,i){const s=de;var n;this[s(319)]+=i||0,this._timeoutRequests++,this._activeDownloads--,this[s(387)]++,t[s(658)](),this[s(547)](t,e,i),null===(n=this[s(661)][s(362)](e))||void 0===n||n[s(490)](),this._segmentsRequested.delete(e)}[de(456)](t,e){const i=de;var s;this._segmentAbsentRequests++,this[i(498)]--,this._failedRequests++,null===(s=this[i(661)].get(e))||void 0===s||s[i(490)](),this[i(661)][i(567)](e)}[de(547)](t,e,n){const r=de,o=t[r(443)],a=t.getLastBandwith();i.default.warn(s.BalancerTag,r(419)+e+r(586)+t.id+r(436)+n+" estimatedThroughputBps="+M
2ath[r(333)](a||0)+" peerTimeouts="+o),o<this[r(457)]||(this[r(313)][r(388)](t.id,!0),i.default[r(637)](s.BalancerTag,r(414)+t.id+r(478)+o+" timeouts (threshold="+this._peerTimeoutsForBan+")"),t[r(621)]())}[de(351)](t){this[de(614)]+=t,this._chunkUploadCount++}[de(518)](){return this._byteUploadCount}[de(523)](){return this[de(506)]}[de(338)](t){this[de(429)]+=t,this._chunkUploadDiscardedCount++}destroy(){const t=de;this._isEnabled=!1,this._runtimeP2pEnabled=!1,this._shutdownP2PManager();try{this[t(545)]=!0,this[t(383)][t(621)]()}catch(e){i.default[t(349)](s.BalancerTag,t(309))}}[de(539)](){const t=de;let e=Date.now();return this._peers[t(606)](i=>{const s=t,n=i.getOldestRequestTS();n&&(e=Math[s(492)](e,n))}),e}getPeers(){return this[de(278)]}[de(566)](){const t=de;let e=0,i=0,s=0,n=0,r=0;return this[t(278)].forEach(o=>{const a=t;o.getDownloadBandwidth()>0&&(e+=o[a(559)](),this._maxBandwidth=Math.trunc(Math.max(this._maxBandwidth,o[a(559)]())),this[a(548)]=Math[a(333)](Math[a(492)](this[a(548)],o[a(559)]())),i++),s+=o[a(401)](),n+=o[a(420)](),r+=o.getTotalSendTime()}),e/=i||1,e=Math[t(333)](e),{downloadEnabled:this[t(619)](),uploadEnabled:this[t(627)]&&this[t(619)](),uploadedBytes:this._byteUploadCount,uploadedTime:r,uploadedChunks:this[t(506)],discardedUploadedChunks:this[t(385)],discardedUploadedBytes:this[t(429)],downloadedSegments:this[t(482)],downloadedBytes:this[t(630)],discardedDownloadedBytes:this[t(319)],failedRequests:{total:this[t(387)],absent:this[t(368)],timeout:this[t(588)],error:this[t(481)]},activePeers:this[t(278)][t(662)],totalPeers:this[t(278)][t(662)],downloadMillis:this._downloadMillis,maxBandwidth:this[t(346)],minBandwidth:this._minBandwidth,downloadAvgBw:e,lastSecondsDownloadTraffic:s,lastSecondsUploadTraffic:n,downloadMillisVideo:this[t(463)],downloadBytesVideo:this[t(462)],downloadChunksVideo:this._downloadedChunksVideo,avgPingTime:this[t(632)][t(337)](),minPingTime:this[t(632)].getMinPingTime(),maxPingTime:this[t(632)].getMaxPingTime(),sumResponseBytes:this[t(465)],minResponseBytes:this[t(491)],maxResponseBytes:this._maxResponseBytes,samplesResponseBytes:this[t(307)],sumResponseTime:this._sumResponseTime,minResponseTime:this[t(493)],maxResponseTime:this[t(572)],samplesResponseTime:this[t(519)],sumNetworkLatency:this[t(533)],minNetworkLatency:this[t(511)],maxNetworkLatency:this[t(330)],samplesNetworkLatency:this[t(480)],sumThroughput:this[t(540)],minThroughput:this[t(410)],maxThroughput:this._maxThroughput,samplesThroughput:this[t(599)],sumVideoBytes:this[t(373)],sumVideoTime:this._sumVideoTime,peersAvailable:this[t(543)],maxPeersAvailable:this[t(474)],minPeersAvailable:this[t(557)],peersUsed:this[t(634)],peersParallelUsed:this._peersParallelUsed,maxPeersParallelUsed:this._maxPeersParallelUsed,minPeersParallelUsed:this[t(501)],peerDiscoveryTime:this[t(568)],peerConnectionTime:this[t(423)],sessionDownloadedBytes:this[t(630)],sessionUploadedBytes:this[t(614)],sessionDownloadedChunks:this[t(482)],sessionUploadedChunks:this._chunkUploadCount,sessionMaxActivePeers:this[t(538)],switches:this[t(666)],switchesDueToQuality:this._switchesDueToQuality,switchesDueToConnectivity:this[t(347)],switchesDueToErrors:this._switchesDueToErrors}}[de(589)](t){const e=de;this._switches+=1,t===e(612)?this._switchesDueToQuality+=1:t===e(359)?this[e(347)]+=1:this[e(320)]+=1}[de(525)](){const t=de;this[t(465)]=void 0,this[t(491)]=void 0,this[t(365)]=void 0,this[t(307)]=void 0,this[t(489)]=void 0,this._minResponseTime=void 0,this[t(572)]=void 0,this[t(519)]=void 0,this._sumNetworkLatency=void 0,this[t(511)]=void 0,this[t(330)]=void 0,this[t(480)]=void 0,this._sumThroughput=void 0,this[t(410)]=void 0,this[t(561)]=void 0,this._samplesThroughput=void 0,this[t(373)]=void 0,this[t(653)]=void 0,this[t(423)]=void 0,this[t(568)]=void 0,this[t(532)]=0}[de(624)](t,e){const i=de;this[i(529)]=e,this[i(622)][i(388)](t,Date[i(395)]())}[de(398)](){const t=de,e=Date[t(395)]()-this[t(529)]+15e3;this._availablePeersMap[t(606)]((i,s)=>{i<e&&this[t(622)].delete(s)}),this._updatePeersMetricsRefCounter++,this[t(634)]=this[t(278)][t(662)],this[t(430)]=this._activePeerSet[t(662)],this[t(543)]=this[t(622)][t(662)],this[t(278)][t(662)]>this[t(538)]&&(this[t(538)]=this[t(278)][t(662)]),1==this[t(532)]?(this._minPeersParallelUsed=this[t(339)][t(662)],this[t(502)]=this[t(339)][t(662)],this[t(557)]=this[t(622)].size,this[t(474)]=this._availablePeersMap.size):((null==this[t(501)]||this[t(501)]>this[t(339)][t(662)])&&(this[t(501)]=this[t(339)].size),(null==this._maxPeersParallelUsed||this[t(502)]<this[t(339)][t(662)])&&(this[t(502)]=this[t(339)][t(662)]),(null==this._minPeersAvailable||this[t(557)]>this[t(622)].size)&&(this._minPeersAvailable=this[t(622)][t(662)]),(null==this[t(474)]||this._maxPeersAvailable<this[t(622)][t(662)])&&(this[t(474)]=this[t(622)][t(662)]))}onConnected(t){this[de(423)]=t}[de(641)](t){this[de(568)]=t}[de(285)](t,e){this[de(460)]=t,this._manifestRegistry=e}getActiveVideoRendition(){return this[de(453)]}querySwarmAccess(t){const e=de;var i;if(!this[e(619)]()||!this._activeVideoRendition)return Kt;if(this[e(403)]>0){const t=null===(i=this[e(393)])||void 0===i?void 0:i[e(660)](this._activeVideoRendition),s=void 0!==t?t:this[e(620)];if(s>0&&s<this[e(403)])return Kt}let s=this[e(627)];if(s&&this[e(384)]>0&&this[e(451)]>
20&&this[e(451)]<this[e(384)]&&(s=!1),!t)return{allowPeerAccess:!0,announceCapture:s};if(t[e(503)]===ee[e(440)]){const i=t[e(400)]===this[e(453)];return{allowPeerAccess:i,announceCapture:i&&s}}return{allowPeerAccess:!0,announceCapture:s}}observeResolvedSegment(t){const e=de;return this[e(640)](t),this.querySwarmAccess({trackType:t[e(560)],rendition:t[e(556)]})}[de(442)](t){t>0&&(this._cdnEmaBandwidthBps=this._cdnEmaBandwidthBps<=0?t:.3*t+.7*this._cdnEmaBandwidthBps)}[de(428)](){return this[de(451)]}getDerivedTimingForSegment(t){return Ht(t,this._timingScales)}announceAcquiringSegment(t,e){const i=de;var s,n,r,o;if(!this[i(460)])return;if(!t[i(551)])return;if(!this[i(356)](t[i(560)]))return;if(!e[i(297)])return;const a=this[i(460)][i(362)](t[i(565)]);if(a&&(a[i(531)]===_[i(321)]||a[i(531)]===_[i(544)]))return;const c=t.realBodySize>0?t[i(656)]:0,d=null!==(s=t[i(556)])&&void 0!==s?s:this[i(453)],h=null!==(n=this[i(639)][i(362)](t.p2pId))&&void 0!==n?n:b[i(344)];this[i(639)][i(567)](t[i(565)]);const l=this[i(460)][i(541)](t.p2pId,t.url,t[i(560)],d,c,h);t[i(364)]=!0;const u=null!==(o=null===(r=this[i(366)])||void 0===r?void 0:r[i(508)])&&void 0!==o?o:this.getDerivedTimingForSegment(t.segmentDuration)[i(508)];this[i(278)][i(606)](e=>{const s=i;
2e.sendSegmentState(t[s(565)],_.ACQUIRING,l[s(409)],u).catch(()=>{})})}[de(439)](t,e){const i=de;var s;if(!this[i(460)]||!e||0===e[i(417)])return;const n=this[i(460)][i(362)](t[i(565)]);if(!n||n[i(531)]!==_[i(321)])return;const r=null!==(s=this._acquiringAppendedBytes[i(362)](t[i(565)]))&&void 0!==s?s:0;if(e[i(417)]<=r)return;const o=new Uint8Array(e,r,e[i(417)]-r);this[i(460)][i(592)](t.p2pId,o),this[i(311)][i(388)](t[i(565)],e[i(417)])}storeSegmentV2(t,e){const i=de;var s,n,r,o,a;if(!this[i(460)])return;if(!t[i(551)])return;if(!this[i(356)](t[i(560)]))return;if(!t[i(300)]||0===t.realBodySize)return;const c=t[i(656)]>0?t[i(656)]:t.data[i(417)],d=null!==(s=t.v2Rendition)&&void 0!==s?s:this[i(453)],h=null!==(n=this[i(639)][i(362)](t[i(565)]))&&void 0!==n?n:e[i(297)]?b.PRIMARY:b[i(471)];this[i(639)][i(567)](t[i(565)]);const l=this[i(460)].createOrGetAcquiring(t[i(565)],t.url,t[i(560)],d,c,h),u=null!==(r=this[i(311)].get(t[i(565)]))&&void 0!==r?r:0;if(t[i(300)][i(417)]>u){const e=new Uint8Array(t[i(300)],u,t[i(300)][i(417)]-u);this._diskStore[i(592)](t[i(565)],e)}if(this[i(311)][i(567)](t[i(565)]),this[i(460)][i(298)](t.p2pId),e[i(297)]){const e=null!==(a=null===(o=this[i(366)])||void 0===o?void 0:o.leaderLeaseMs)&&void 0!==a?a:this.getDerivedTimingForSegment(t[i(418)])[i(508)];this._peers.forEach(s=>{const n=i;s[n(435)](t[n(565)],_[n(544)],l[n(409)],e)[n(301)](()=>{})})}}[de(535)](t){var e,i;return he(this,void 0,void 0,function*(){const s=le;if(!this[s(619)]())return!1;if(this[s(640)](t),!this[s(356)](t[s(560)]))return!1;const n=this[s(305)](t),r=this[s(370)](t);if(r[s(638)]>0){const e=function(t){const e=de;if(1===t[e(638)])return t[0];let i=t[0],s=i[e(647)]()?i[e(399)]():-1;for(let n=1;n<t[e(638)];n++){const r=t[n],o=r[e(647)]()?r[e(399)]():-1;o>s&&(i=r,s=o)}return i}(r);return this[s(661)].set(t[s(565)],t),this._activeDownloads++,t.triedP2P=!0,t[s(562)]=e,e[s(282)]++,e[s(454)](t[s(565)],n),!0}const o=null!==(i=null===(e=this._activeDerivedTiming)||void 0===e?void 0:e[s(597)])&&void 0!==i?i:this.getDerivedTimingForSegment(t[s(418)]).electionWindowMs,a=yield this.awaitLeaderOrPeer(t.p2pId,o);return!!a&&(this[s(661)][s(388)](t[s(565)],t),this[s(498)]++,t[s(594)]=!0,t[s(562)]=a,a.consecutiveHaveSegment++,a.request(t[s(565)],n),!0)})}[de(356)](t){const e=de;return!!t&&this._shareTrackTypes[e(341)](t)}static[de(392)](t){const e=de;let i=0;for(let s=0;s<t[e(638)];s++)i=(i<<5)-i+t[e(497)](s)|0;return i}[de(494)](t,e){const i=de;var s;const n=Math.max(1,Math[i(276)](e)),r=null!==(s=this.getId())&&void 0!==s?s:"";return(fe._javaStringHashCode(t+":"+r)%n+n)%n}awaitLeaderOrPeer(t,e){return he(this,void 0,void 0,function*(){const i=le;for(const[,e]of this[i(278)])if(e[i(669)](t))return e;const s=this[i(494)](t,e);if(s>0){const e=10,n=Math[i(276)](s/e),r=s%e;for(let s=0;s<e;s++){const e=n+(0===s?r:0);e>0&&(yield new Promise(t=>setTimeout(t,e)));for(const[,e]of this[i(278)])if(e.hasSegment(t))return e}}for(const[,e]of this[i(278)])if(e[i(669)](t))return e;const n=this._determineLocalClaimRoleForSegment(t);n!==b[i(471)]&&this[i(639)][i(388)](t,n)})}_determineLocalClaimRoleForSegment(t){const e=de;let i=!1,s=!1;const n=Date[e(395)]();for(const[,r]of this._peers){const o=r.remoteSegmentState(t);o&&o.state===_[e(321)]&&("number"==typeof o.leaseExpiryMs&&o[e(651)]<=n||(o.leaderRole===b[e(344)]?i=!0:o[e(409)]===b[e(360)]&&(s=!0)))}return i?s?b[e(471)]:b[e(360)]:b[e(344)]}_refreshDerivedTiming(t){this[de(366)]=Ht(t,this._timingScales)}[de(600)](){const t=de;this._stopCacheEvictionTimer(),this[t(460)]&&(this._cacheEvictionTimer=setInterval(()=>{const e=t;var n;try{null===(n=this[e(460)])||void 0===n||n[e(449)](this._cacheRetentionMs,this[e(485)])}catch(t){i.default[e(349)](s.BalancerTag,e(617)+t)}},3e4))}_stopCacheEvictionTimer(){const t=de;this[t(445)]&&(clearInterval(this[t(445)]),this[t(445)]=void 0)}[de(305)](t){const e=de;var i;if(this[e(366)])return this._activeDerivedTiming[e(455)];const s=null!==(i=t[e(513)])&&void 0!==i?i:t[e(418)];return this[e(495)](s)[e(455)]}[de(668)](t,e,n){const r=de;var o,a;const c=this._diskStore;if(!c)return void t[r(648)](e,n);if(!c.get(e))return void t[r(648)](e,n);const d=null!==(a=null===(o=this._activeDerivedTiming)||void 0===o?void 0:o[r(369)])&&void 0!==a?a:this[r(495)](void 0)[r(369)],h=Date[r(395)]()+d;let l=!1;const u=o=>{const a=r;l||(l=!0,i.default[a(349)](s.BalancerTag,"V2 ACQUIRING upload aborted for "+e+": "+o),t[a(648)](e,n),this[a(602)]++)},p=()=>{const i=r;if(l)return;const s=c[i(362)](e);if(!s)return void u(i(604));if(s[i(531)]===_.READY){l=!0;const r=s[i(553)]();return void(r&&r[i(417)]>0?t.sendRawSegment(e,r,n):(t[i(648)](e,n),this[i(602)]++))}if(s[i(531)]!==_.ACQUIRING)return void u(i(277)+s.state);if(Date[i(395)]()>=h)return void u("fallbackBudget elapsed");const o=s.subscribeWaiter(()=>{o(),p()})};p()}}const ge=me;function me(t,e){return t-=436,ye()[t]}!function(t){const e=me,i=t();for(;;)try{if(809998==parseInt(e(518))/1+parseInt(e(509))/2*(-parseInt(e(514))/3)+parseInt(e(439))/4+parseInt(e(442))/5*(parseInt(e(513))/6)+parseInt(e(512))/7+parseInt(e(474))/8+parseInt(e(451))/9*(-parseInt(e(457))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ye);class ve{constructor(t,e,i,s,n,r,o,a,c){const d=me;var h;this[d(516)]=t,this[d(507)]=s,this[d(500)]=e,this[d(525)]=i,this[d(471)]=n,this[d(528)]=r,this[d(510)]=o,this[d(519)]=null!=a?a:null!==(h=r[d(523)])&&void 0!==h&&h,this[d(449)]=null!=c?c:{get:()=>null,clear:()=>{}}}getCDN(t,e){const n=me;let r=n(440),o=!1;if(t[n(527)]&&t[n(508)]&&this[n(471)].isEnabled()&&(o=this._p2pLoader[n(472)]({trackType:t[n(465)],rendition:t[n(492)]})[n(444)],o))return e[n(441)]=n(445),n(445);const a=new Map;let c=0,d=!0;if(this[n(516)][n(489)](function(t,e){const i=n;c+=t[i(455)],!t[i(461)]&&t[i(482)]&&(a[i(522)](e,t),d=!1)}),d&&(!Array.from(this[n(516)].values())[n(515)](t=>t[n(482)]&&t[n(486)])||this[n(519)])){a[n(478)]();const t=Date[n(476)]();
2this[n(516)].forEach((e,i)=>{const s=n;e[s(482)]&&(e[s(511)]+=t-e[s(456)],e[s(456)]=t,e[s(481)]+=1,e[s(461)]=!1,e.pendingProbe=!0,a[s(522)](i,e))})}if((!o||0===this[n(471)][n(463)](t)[n(464)]||!t[n(527)])&&a.delete(n(445)),i.default[n(436)](s.BalancerTag,n(459)+a[n(498)]+" of "+this[n(516)][n(498)]+" Active switching method -> "+this[n(507)]),a[n(447)](n(440)),0==a[n(498)])return r="Original",!this[n(507)]&&c>0&&(r=e.currentCDN),e.currentCDN=r,(r===n(440)||0===r[n(464)])&&(t[n(460)]=n(502)),0===r[n(464)]?"Original":r;if(this[n(507)]===v[n(493)])return r=a[n(450)](n(445))?"P2P":"Original",e.currentCDN=r,"Original"===r&&(t.syntheticCdnKind="ORIGIN"),r;if(a[n(498)]>0)if(this._activeSwitching){const i=e.currentCDN;switch(this[n(507)]){case v[n(491)]:r=this[n(477)](t,a,e);break;case v[n(458)]:r=this[n(470)](t,a,e);break;default:let i;i=this[n(503)](t,a),r=null===i?"":i[n(495)]}""!==i&&n(440)}else{let i;i=this[n(503)](t,a),null===i||i[n(467)]()?r=0!==c||t[n(499)]?e.currentCDN:"":(r=i.name,e[n(441)]=r,i[n(494)]())}return r&&""!=r[n(437)]()?r:n(440)}[ge(477)](t,e,n){const r=ge,o=this[r(519)]?new Map(this._cdnList):e;0===this._p2pLoader[r(463)](t)[r(464)]&&o.delete(r(445));const a=this[r(487)](t,n[r(441)])?this[r(479)](o,v[r(491)],n.currentCDN):void 0;if(a)return i.default[r(468)](s.BalancerTag,r(501)+a[r(495)]),this[r(454)](t,a,n[r(441)]),n[r(441)]=a[r(495)],a.name;let c="",d=0;return e[r(489)](t=>{const e=r,n=t[e(480)]();i.default[e(436)](s.BalancerTag,t[e(495)]+e(506)+n/1e6+e(526)+t.getBandwidth()+e(462)+this._highetsSegmentBandwidth/1e6),d<t.getBandwidth()&&(d=t[e(524)](),c=t[e(495)])}),i.default[r(468)](s.BalancerTag,r(448)+c),n[r(441)]=c,c}[ge(470)](t,e,n){const r=ge;var o,a;const c=this[r(519)]?new Map(this[r(516)]):e;0===this._p2pLoader[r(463)](t).length&&c.delete("P2P");const d=this[r(487)](t,n.currentCDN)?this._getCdnToProbe(c,v.cdnPriority,n[r(441)]):void 0;if(d)return i.default.debug(s.BalancerTag,r(501)+d[r(495)]),this[r(454)](t,d,n[r(441)]),n[r(441)]=d[r(495)],d[r(495)];const h=Array[r(446)](e.values())[r(504)](t=>t[r(505)]()/1e3>this[r(500)]&&!t[r(461)]);if(!h[r(515)](t=>t.name===n[r(441)])){const t=e.get(n[r(441)]);t&&(t.lastUpdatedState=3)}let l=null!==(a=null===(o=h[0])||void 0===o?void 0:o[r(495)])&&void 0!==a?a:"";if(""===l){const t=Array[r(446)](e[r(438)]());t[r(483)]((t,e)=>e[r(524)]()-t.getBandwidth()),l=t[0].name}return n.currentCDN=l,l}_bestScoredCdn(t,e){var i;return null!==(i=Array[ge(446)](e.values())[0])&&void 0!==i?i:null}[ge(487)](t,e){const i=ge;var s,n;if((null!==(n=null===(s=this[i(528)][i(520)])||void 0===s?void 0:s[i(497)])&&void 0!==n?n:x[i(497)])&&!t[i(508)])return!1;const r=this[i(516)][i(484)](e);if(!r)return!1;const o=r.getEffectiveBandwidthBps();return!(null===o||o<=0)}[ge(454)](t,e,i){const s=ge,n=this[s(516)].get(i),r=n?n[s(490)]():null;t[s(496)]={baselineCallTimeoutMs:C[s(453)],currentCdnBandwidthBps:r&&r>0?r:null,currentCdnName:n?n[s(495)]:null,safetyFactor:.75}}_getCdnToProbe(t,e,n){const r=ge;let o=Array[r(446)](t[r(438)]())[r(504)](t=>t[r(495)]!==n);if(e===v[r(458)]){o=[];for(const[e,i]of t){if(e===n)break;o.push(i)}}if(o[r(483)]((t,e)=>t[r(452)]()[r(488)]-e[r(452)]()[r(488)]),!t[r(484)](n))return;const a=this[r(528)][r(469)],c=this[r(449)][r(484)](),d=o[r(504)](t=>{const e=r;return c&&t===c?(i.default[e(468)](s.BalancerTag,e(517)+t.name+e(521)),!1):Date[e(476)]()-t[e(452)]().time>=B[e(475)]||!!t[e(473)](a)&&(i.default.debug(s.BalancerTag,e(443)+t[e(495)]+e(466)),!0)});if(c&&this[r(449)][r(478)](),0===d[r(464)])return;const h=d[r(483)]((t,e)=>t[r(452)]()[r(488)]-e[r(452)]()[r(488)])[0];return h[r(485)](),h}}function ye(){const t=[" | estimated bandwidth ","useP2P","_options","verbose","trim","values","4727492BhicVo","Original","currentCDN","850895BdOrOd","Trial-cooldown bypassed for ","allowPeerAccess","P2P","from","delete","Fastest CDN is -> ","_lastFailedTrial","has","51003vVAJOW","getLastResponse","callTimeoutMilliseconds","_tagAsTrial","downloadedChunks","bannedRefTicToc","2010NMQmew","cdnPriority","CDN Candidates -> ","syntheticCdnKind","banned"," highest segment bandwidth -> ","getPeersWithContent","length","v2TrackType"," due to latency improvement since last trial","isChecked","debug","latencyTrialTrigger","_c
2dnPriority","_p2pLoader","querySwarmAccess","hasImprovedLatencySinceLastTrial","4995792EUjMec","minimumDurationSinceLastUsedForTrialMilliseconds","now","_qualityPriority","clear","_getCdnToProbe","getVideoBandwidth","unBannedCount","active","sort","get","snapshotLatencyForTrial","pendingProbe","_eligibleForTrial","time","forEach","getEffectiveBandwidthBps","qualityPriority","v2Rendition","none","setChecked","name","trialTag","onlyForVideoSegments","size","isManifest","_bandwidthThreshold","Performing probe to ","ORIGIN","_bestScoredCdn","filter","getBandwidthInBits"," reference bandwidth ","_activeSwitching","isMedia","30fZEWAY","_onSyntheticCdn","bannedTime","5013582zlrZjG","6kwfnkb","242502soMHrP","some","_cdnList","Trial-anti-reuse skipping ","468823ssFkZJ","_effectiveNoProbing","trial"," (last trial failed)","set","noProbing","getBandwidth","_highetsSegmentBandwidth"];return(ye=function(){return t})()}const Se=_e;function _e(t,e){return t-=179,Te()[t]}!function(t){const e=_e,i=t();for(;;)try{if(867915==parseInt(e(236))/1*(-parseInt(e(272))/2)+-parseInt(e(277))/3*(parseInt(e(203))/4)+parseInt(e(274))/5+parseInt(e(273))/6*(-parseInt(e(281))/7)+parseInt(e(187))/8+-parseInt(e(267))/9+-parseInt(e(208))/10*(-parseInt(e(184))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Te);var be=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=_e;function a(t){const e=_e;try{d(s[e(190)](t))}catch(t){r(t)}}function c(t){const e=_e;try{d(s[e(257)](t))}catch(t){r(t)}}function d(t){const e=_e;var s;t[e(210)]?n(t[e(215)]):(s=t.value,s instanceof i?s:new i(function(t){t(s)})).then(a,c)}d((s=s[o(186)](t,e||[]))[o(190)]())})};function Te(){const t=["timestamp","name","9854469KJOGAm","ORIGINAL","setLoader","readyState","set","56ImAlCG","150HKoZRP","3072710UaSsxv","updateUrl","bannedCount","15dnddOn","monitoring","now","shouldMonitor","231301sVpext","noProbing","_performCheck","stopMonitor","BANNING CDN DUE TO TIMEOUT ","values","bannedRefTicToc","auth","38295389yQbhyq","pingsTime","apply","2579888sQYqxd","_afterCheck","testCdn","next","usedOrProbed","authenticate_probes","probeOnlyOnBanned","HEAD","onabort","probingPolicy","lastUpdatedState","unbannedTime","onCodavelSucessfullResponse","onreadystatechange","callTimeoutMilliseconds","verbose","804144YPlZTY","setRequestHeader","ontimeout","isRangeCompatible","getIsEnabled","10EufHhN","warn","done","error","P2P","open","banned","value","_cdns","_performGetCheck","getInstance","enabled","status","timeBetweenCallsMilliseconds","lastDownloadedSegment","_isMonitoring","getTime"," (Range ignored) â aborting early, falling back to HEAD on next probe for ","avgPingTime","CDNLoader","url","getMinPingTime","add","loader","unBannedCount","lowestPingTime","provider","setNoProbing","22297UZMVsd","chunkExpirationProbingMs","random","get","send","?rnpaw=","Probe GET got status ","monitor","__awaiter","updateCdnList","bannedTime","BANNING CDN ","GET","Probing with range failed and HEAD probing is disabled by policy.","onerror","_instance","onCodavelFailedResponse","_performHeadCheck","bytes=1-1","getAvgPingTime","&rnpaw=","throw","includes","getNextProbingSegment","floor","Range","lastPingTime","isCodavel","onload"];return(Te=function(){return t})()}class we{constructor(){const t=Se;this.pingsTime=new Map,this[t(278)]=new Map,this._isMonitoring=!1,this._cdns=new Map,this.shouldMonitor=!0,this.probeOnlyOnBanned=!1,this[t(282)]=!1}static[Se(218)](t){const e=Se;return!this._instance&&(this[e(251)]=new we),null!=t&&this[e(251)][e(269)](t),this[e(251)]}[Se(269)](t){this[Se(231)]=t,this.shouldMonitor=!0}[Se(245)](t){this[Se(216)]=t}newDownloadedSegment(t){this[Se(222)]=t}[Se(179)](){this.shouldMonitor=!1}setHeadOnBannedOnly(t=!1){this[Se(193)]=t}[Se(235)](t=!1){this[Se(282)]=t}[Se(243)](t){return be(this,void 0,void 0,function*(){const e=_e;this._cdns=t;const i=new Map;for(const s of t[e(181)]())i.set(s[e(266)],new Dt),this[e(185)]=i;if(!this[e(223)])for(this[e(223)]=!0;this[e(280)];){let t=this[e(259)]();for(;!t;)yield new Promise(t=>setTimeout(t,1e3)),t=this[e(259)]();if(!this.noProbing&&this[e(222)])for(const t of this[e(216)][e(181)]())this[e(222)]&&t[e(266)]!==e(212)&&(yield this[e(189)](t,this.lastDownloadedSegment),yield new Promise(t=>setTimeout(t,L[e(221)])));yield new Promise(t=>setTimeout(t,L.timeBetweenBurstsMilliseconds))}})}getNextProbingSegment(){const t=Se;if(!this.lastDownloadedSegment)return null;let e=this.lastDownloadedSegment;return this[t(222)][t(265)]?(new Date)[t(224)]()-this[t(222)][t(265)]<B[t(237)]?e:null:e}[Se(188)](t,e){const i=Se;var s,n,r;const o=Date[i(279)]()-t;we.getInstance()[i(278)][i(271)](e[i(266)],o);const a=we.getInstance()[i(185)][i(239)](e[i(266)]);null==a||a[i(230)](o),e[i(262)]=o,e[i(226)]=null!==(s=null==a?void 0:a[i(255)]())&&void 0!==s?s:e[i(226)],e.highestPingTime=null!==(n=null==a?void 0:a.getMaxPingTime())&&void 0!==n?n:e.highestPingTime,e[i(233)]=null!==(r=null==a?void 0:a[i(229)]())&&void 0!==r?r:e[i(233)],e.addProbe(o)}testCdn(t,e){return be(this,void 0,void 0,function*(){const n=_e;if(this[n(231)]&&this.loader[n(207)]&&t.active&&t[n(234)]!=n(268)&&(!this[n(193)]||t[n(214)]))if(e){let r=this[n(231)][n(227)][n(275)](e,!0,t[n(266)]);if(r=e.addParametersToUrl(r),r){const e=Math[n(260)](1e9*Math[n(238)]());r=r[n(258)]("?")?r+n(256)+e:r+n(241)+e;let o=0;t[n(206)]&&B.probingPolicy.includes(n(248))&&(o=yield this[n(217)](t,r)),1===o&&(t.isRangeCompatible=!1,B.probingPolicy[n(258)](n(194))?i.default[n(209)](s.BalancerTag,"Probing with range failed failed. Falling back to HEAD request on the next probe"):i.default[n(211)](s.BalancerTag,n(249))),(!t.isRangeCompatible&&B[n(196)][n(258)](n(194))||!B[n(196)].includes(n(248))&&B[n(196)].includes("HEAD"))&&(o=yield this[n(253)](t,r))}else i.default[n(202)](s.BalancerTag,"UNABLE TO GENERATE URL FOR PROBING CHECK "+t.name+" // "+e[n(228)])}else i.default.verbose(s.BalancerTag,"PINGTIME No available resources to test "+t[n(266)])})}[Se(217)](t,e){return be(this,void 0,void 0,function*(){const i=_e;return yield this[i(283)](i(248),t,e)})}_performHeadCheck(t,e){return be(this,void 0,void 0,function*(){const i=_e;return yield this[i(283)](i(194),t,e)})}[Se(283)](t,e,n){return be(this,void 0,void 0,function*(){const r=_e,o=new XMLHttpRequest,a=Date[r(279)](),c=this;return e[r(191)]=!0,new Promise(function(d){const h=r;let l=!1,u=!1;const p=t=>{u||(u=!0,d(t))};o[h(200)]=function(){const e=h;if(!l&&"GET"===t&&2===o[e(270)]&&o[e(220)]>=200&&o[e(220)]<300&&206!==o[e(220)]){l=!0,i.default.verbose(s.BalancerTag,e(242)+o.status+e(225)+n),p(1);try{o.abort()}catch(t){}}},o[h(264)]=function(){const r=h;if(!u&&4===o[r(270)]){let d=0;if(t===r(248)&&206!==o[r(220)]&&o.status>=200&&o[r(220)]<400)d=1;else if(o[r(220)]>=200&&o[r(220)]<300){if(e[r(214)]){const t=Date.now();e[r(246)]+=t-e.bannedRefTicToc,e[r(182)]=t,e[r(214)]=!1,e[r(232)]++}e.failures=0,i.default[r(202)](s.BalancerTag,"HEALTHY CDN "+n+" "+o[r(220)]),e[r(197)]=0,e.pendingProbe=!1,e[r(263)]()&&null!=c[r(231)]&&c[r(231)][r(227)][r(199)]()}else if(o[r(220)]>=400){if(i.default[r(202)](s.BalancerTag,"BANNING CDN "+n+" "+o[r(220)]),null!=e[r(183)]&&e[r(183)][r(219)]&&!e.auth[r(192)]){if(403!=o[r(220)]&&!e[r(214)]){const t=Date[r(279)]();e[r(198)]+=t-e[r(182)],e[r(182)]=t,e[r(214)]=!0,e[r(276)]++}}else if(!e[r(214)]){const t=Date[r(279)]();e[r(198)]+=t-e.bannedRefTicToc,e[r(182)]=t,e.banned=!0,e.bannedCount++}e[r(197)]=1,e[r(263)]()&&null!=c[r(231)]&&c[r(231)].CDNLoader[r(252)](1)}0===d&&c[r(188)](a,e),p(d)}},o[h(250)]=function(){const t=h;if(!u){if(i.default[t(202)](s.BalancerTag,t(247)+n+" "+o[t(220)]),e[t(214)]){const i=Date[t(279)]();e[t(246)]+=i-e[t(182)],e[t(182)]=i}else{const i=Date.now();e.unbannedTime+=i-e[t(182)],e[t(182)]=i,e[t(214)]=!0,e[t(276)]++}e[t(197)]=2,e[t(263)]()&&null!=c[t(231)]&&c[t(231)][t(227)][t(252)](2),p(0)}},o[h(195)]=function(){u||p(0)},o[h(205)]=function(){const t=h;if(!u){if(i.default.verbose(s.BalancerTag,t(180)+n+" "+o[t(220)]),e[t(214)]){const i=Date[t(279)]();e.bannedTime+=i-e[t(182)],e[t(182)]=i}else{const i=Date.now();e[t(198)]+=i-e.bannedRefTicToc,e[t(182)]=i,e[t(214)]=!0,e.bannedCount++}e[t(197)]=2,e[t(263)]()&&null!=c[t(231)]&&c[t(231)][t(227)][t(252)](2),p(0)}},o[h(213)](t,n),t===h(248)&&o[h(204)](h(261),h(254)),o.timeout=L[h(201)],o[h(240)]()})})}}var Ee=__webpack_require__(61);const Ae=Ie;function Ie(t,e){return t-=112,Re()[t]}function Re(){const t=["false","processListWithAddFeature","stripPathRegex","join","502240mDtLQS","forEach","NESTED_OPTION_KEYS",": object with ","isDev","balanceManifests","3365460rgzxPb",": expected Boolean, got ","stripPathForDomainRegex","Processing customData.options from backend:","setNestedBoolean","Unknown nested customData option: ","string","152gJjPmz","Backend option ","processObject","slice","Processing list with __add__ feature","bucketName","processNumber","probeOnlyOnBanned","Applied backend option ","debug","processStringArray","1926270IGieBj","Unknown customData option: ","8877834AwgcGJ","setNestedString","profileName","object","jwtToken"," (converted from string)","allowSpecialDelimitersInUrl","1679566wGcNhf","4VwDKNy","8867480sGhGAA","signManifestUsingApi",": undefined (null)","toLowerCase","indexOf","every","isArray","urlBlacklistRegex","balanceAudio","updateTime","videoId"," (null -> default)","jwtAuthType","split","true","Invalid type for ","processNestedKey",": [","isLive","reportSyntheticCdns","noProbing",": expected Number, got ","forceDecisionCall","number","boolean","679689AJTTFn","keys","authData","No customData.options received from backend","setNestedNumber",". Preserving original value.","domainWhitelist","domainWhitelistRegex","chunkExpirationProbingMs","length"," is empty string - preserving existing value","applyCustomOptionsToBalancerOptions","balanceSubtitles",": expected String, got ","processString","processBoolean"];return(Re=function(){return t})()}!function(t){const e=Ie,i=t();for(;;)try{if(921889==-parseInt(e(112))/1+-parseInt(e(145))/2+-parseInt(e(136))/3*(-parseInt(e(146))/4)+-parseInt(e(147))/5+parseInt(e(138))/6+parseInt(e(118))/7+-parseInt(e(125))/8*(-parseInt(e(172))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Re);class Pe{static[Ae(183)](t,e){const n=Ae;e?(i.default[n(134)](s.BalancerTag,n(121),e),Object[n(173)](e)[n(113)](r=>{const o=n,a=e[r];if(r[o(151)](".")>-1)this[o(163)](r,a,t);else switch(r){case o(144):this.processBoolean(r,a,t,"allowSpecialDelimitersInUrl",!1);break;case"authData":this.processObject(r,a,t,o(174));break;case"balanceManifests":this[o(187)](r,a,t,o(117),!1);break;case o(130):this.processString(r,a,t,o(130));break;case o(155):this[o(187)](r,a,t,o(155),!0);break;case o(184):this[o(187)](r,a,t,"balanceSubtitles",!0);break;case"chunkExpirationProbingMs":this[o(131)](r,a,t,o(180));break;case o(178):this[o(135)](r,a,t,"domainWhitelist");break;case o(179):this[o(135)](r,a,t,o(179));break;case o(154):this[o(135)](r,a,t,o(154));break;case o(167):this[o(187)](r,a,t,o(167),!1);break;case o(132):this[o(187)](r,a,t,o(132),!1);break;case o(166):this[o(187)](r,a,t,o(166),!1);break;case o(120):this[o(135)](r,a,t,"stripPathForDomainRegex");break;case o(190):this.processString(r,a,t,"stripPathRegex");break;case"videoId":this[o(186)](r,a,t,o(157));break;case o(140):this[o(186)](r,a,t,o(140));break;case o(165):this[o(187)](r,a,t,o(165),!1);break;case"isDev":this.processBoolean(r,a,t,o(116),!1);break;case o(169):this[o(187)](r,a,t,"forceDecisionCall",!1);break;case"signManifestUsingApi":this.processBoolean(r,a,t,o(148),!1);break;case o(142):this[o(186)](r,a,t,o(142));break;case"jwtAuthType":this[o(186)](r,a,t,o(159));break;case"updateTime":this[o(131)](r,a,t,o(156));break;default:i.default[o(134)](s.BalancerTag,o(137)+r)}})):i.default.debug(s.BalancerTag,n(175))}static[Ae(163)](t,e,n){const r=Ae,o=this[r(114)][t];if(!o)return void i.default[r(134)](s.BalancerTag,r(123)+t);const a=t[r(160)](".");if(a[r(181)]<2)return;const c=a[0];(null==n[c]||typeof n[c]!==r(141))&&(n[c]={});let d=n[c];for(let t=1;t<a.length-1;t++){const e=a[t];(null==d[e]||typeof d[e]!==r(141))&&(d[e]={}),d=d[e]}const h=a[a.length-1];o===r(171)?this[r(122)](t,e,d,h):"number"===o?this[r(176)](t,e,d,h):this[r(139)](t,e,d,h)}static[Ae(122)](t,e,n,r){const o=Ae;if(null===e)n[r]=void 0,i.default[o(134)](s.BalancerTag,o(133)+t
2+o(149));else if(""===e)i.default[o(134)](s.BalancerTag,o(126)+t+o(182));else if(typeof e===o(171))n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+": "+e);else if("string"!=typeof e||e[o(150)]()!==o(161)&&"false"!==e[o(150)]())void 0!==e&&i.default[o(134)](s.BalancerTag,"Invalid type for "+t+o(119)+typeof e+o(177));else{const a="true"===e[o(150)]();n[r]=a,i.default[o(134)](s.BalancerTag,"Applied backend option "+t+": "+a+o(143))}}static[Ae(176)](t,e,n,r){const o=Ae;if(null===e)n[r]=void 0,i.default.debug(s.BalancerTag,o(133)+t+": undefined (null)");else if(typeof e===o(170))n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+": "+e);else if("string"==typeof e&&e.length>0&&!isNaN(Number(e))){const a=Number(e);n[r]=a,i.default[o(134)](s.BalancerTag,"Applied backend option "+t+": "+a+o(143))}else void 0!==e&&i.default.debug(s.BalancerTag,"Invalid type for "+t+o(168)+typeof e+o(177))}static[Ae(139)](t,e,n,r){const o=Ae;null===e?(n[r]=void 0,i.default[o(134)](s.BalancerTag,o(133)+t+o(149))):typeof e===o(124)?(n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+": "+e)):void 0!==e&&i.default[o(134)](s.BalancerTag,"Invalid type for "+t+o(185)+typeof e+". Preserving original value.")}static[Ae(187)](t,e,n,r,o){const a=Ae;if(null===e)n[r]=o,i.default[a(134)](s.BalancerTag,a(133)+t+": "+o+a(158));else if(""===e)i.default[a(134)](s.BalancerTag,a(126)+t+a(182));else if("boolean"==typeof e)n[r]=e,i.default[a(134)](s.BalancerTag,a(133)+t+": "+e);else if(typeof e!==a(124)||e.toLowerCase()!==a(161)&&e[a(150)]()!==a(188))void 0!==e&&i.default.debug(s.BalancerTag,a(162)+t+a(119)+typeof e+a(177));else{const o=e[a(150)]()===a(161);n[r]=o,i.default[a(134)](s.BalancerTag,a(133)+t+": "+o+a(143))}}static processString(t,e,n,r){const o=Ae;null===e?(n[r]=void 0,i.default[o(134)](s.BalancerTag,"Applied backend option "+t+": undefined (null)")):typeof e===o(124)?(n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+": "+e)):void 0!==e&&i.default[o(134)](s.BalancerTag,o(162)+t+o(185)+typeof e+o(177))}static[Ae(131)](t,e,n,r){const o=Ae;if(null===e)n[r]=void 0,i.default.debug(s.BalancerTag,o(133)+t+o(149));else if("number"==typeof e)n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+": "+e);else if(typeof e!==o(124)||isNaN(Number(e)))void 0!==e&&i.default[o(134)](s.BalancerTag,"Invalid type for "+t+o(168)+typeof e+o(177));else{const a=Number(e);n[r]=a,i.default.debug(s.BalancerTag,o(133)+t+": "+a+o(143))}}static[Ae(135)](t,e,n,r){const o=Ae;if(null===e)n[r]=[],i.default[o(134)](s.BalancerTag,o(133)+t+": [] (null -> empty array)");else if(Array[o(153)](e)&&e[o(152)](t=>typeof t===o(124)||null===t)){const a=this[o(189)](e,n[r]);n[r]=a,i.default[o(134)](s.BalancerTag,o(133)+t+o(164)+a[o(191)](", ")+"]")}else void 0!==e&&i.default.debug(s.BalancerTag,o(162)+t+": expected String[], got "+typeof e+o(177))}static[Ae(127)](t,e,n,r){const o=Ae;null===e?(n[r]=void 0,i.default.debug(s.BalancerTag,o(133)+t+o(149))):typeof e!==o(141)||Array[o(153)](e)?void 0!==e&&i.default[o(134)](s.BalancerTag,o(162)+t+": expected Object, got "+typeof e+o(177)):(n[r]=e,i.default[o(134)](s.BalancerTag,o(133)+t+o(115)+Object[o(173)](e)[o(181)]+" keys"))}static[Ae(189)](t,e){const n=Ae;if(t[n(181)]>0&&"__add__"===t[0]){i.default[n(134)](s.BalancerTag,n(129));const r=t[n(128)](1),o=e?[...e]:[];return r[n(113)](t=>{const e=n;o.includes(t)?i.default.debug(s.BalancerTag,"Skipped duplicate item: "+t):(o.push(t),i.default[e(134)](s.BalancerTag,"Added item to list: "+t))}),o}return i.default.debug(s.BalancerTag,"Replacing list with customData values"),t}}Pe[Ae(114)]={"cdnTimeout.connectTimeoutMilliseconds":Ae(170),"cdnTimeout.readTimeoutMilliseconds":Ae(170),"cdnTimeout.callTimeoutMilliseconds":Ae(170),"cdnTimeout.totalTimeoutMilliseconds":"number","latencyTrialTrigger.minRelativeImprovement":Ae(170),"latencyTrialTrigger.minAbsoluteImprovementMs":Ae(170),"peakSampler.warmupMs":Ae(170),"peakSampler.tickMs":"number","peakSampler.minReadsForEarlySample":"number","peakSampler.minBytesPerCall":Ae(170),"firstChunkProbe.enabled":"boolean","firstChunkProbe.connectTimeoutMs":Ae(170),"firstChunkProbe.totalDownloadTimeoutMs":Ae(170),"firstChunkProbe.safetyFactor":Ae(170),"firstChunkProbe.minSamplesBeforeAbort":Ae(170),"firstChunkProbe.onlyForVideoSegments":Ae(171),"trial.onlyForVideoSegments":Ae(171)};const De=Ne;!function(t){const e=Ne,i=t();for(;;)try{if(341885==parseInt(e(543))/1+-parseInt(e(326))/2*(parseInt(e(423))/3)+parseInt(e(548))/4*(-parseInt(e(600))/5)+parseInt(e(537))/6+parseInt(e(374))/7*(-parseInt(e(503))/8)+-parseInt(e(487))/9*(-parseInt(e(441))/10)+parseInt(e(410))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ce);function Ce(){const t=["_responseUUID","_syntheticCdnStats","fileName","values","_cdnPeakBandwidth","https://","Bypassed ","317230OfeKEZ","cdnTimeout","getFastDataService","Invalid urlBlacklistRegex pattern: ","onFailedApiResponse","signed_url_info","status","codavelAllBanned","startMonitoring","codavelProvidersState","route","recordEnd","onCodavelSwitched","sumResponseBytes","isMedia","setHeadOnBannedOnly","CDN priority","activeSwitching","max","ORIGIN","updateProgressStats","BALANCER","bucketName","signManifestUsingApi","auth","_probeO
2nBanned","_method","Stripped URL: ","bandwidth","provider","map","forceDecisionCall","usedOnce","min","applyCustomOptionsToBalancerOptions","lastCodavelRequestStatus","domainWhitelistRegex","triedCdns","true","processedApiCall","_bandwidthThreshold","_options","timeBetweenBurstsMilliseconds","getRouteAndFilename","avgApiCallResponseTime","domainWhitelist","monitor","isLive","7ewhSJt","urlBlacklistRegex","_cdnInstantBandwith","&orresource= ","url","hugeChunks","sumResponseTime","codavelSwitchesDueToErrors","priorityCdn","minResponseTime","minRequestSizeForBwEstimateKB","VERBOSE","decisionReloadIntervalPerManifestMilliseconds","bolinaAvailable","reportSyntheticCdns","_firstRequestTime","maxThroughput","hostname","assign","isOnUrlBlacklist","port","active","getSignedUrlFromApi","set","setNoProbing","lastUsedCdn","debug","errors","now","No matching path found to strip in URL: ","markLastFailedTrial","emit","_totalDownloadedBytes","cdnName","maxResponseBytes","updateCdnList","13461646NMoWEz","throughputSamples","statusCode","UUID","getCdnObject","isManifest","_recordSyntheticResponse","maxApiCallResponseTime","path","consumeLastSuccessfulP2PProvider","_secure","isValidUrl","maximumRelativeDeltaForTrial","3CSefdV","Origin","BLACKLIST","Original","formatParameters","P2P","rendition","score","maxBandwidth","getBucket","STREBOOS","&advanceproxy=true","setMaxBandwidth","onCodavelFailedResponse","host","discarded","then","currentRenditionBandwidth","20HcmOFO","codavelSwitches","STREBOPX","changeCDN","getRecommendedManifest","setLogLevel","getStats","minResponseBytes","response","updateCDNStatsOnFailure","stripPathForDomainRegex","totalFail","New url -> ","http5xx","Error: unable to obtain API response for signed URL (status: ","isNotOnCdnList","_cdnList"," | ","incrementSwitchesDueToErrors","_activeRequests","append_to_url","_highestChunkBandwidth","readTimeoutMilliseconds","http2xx","value","] (balancerManifest: ","customData","verbose","send","_lastFailedTrialCdn","DECISION_FINISHED","apiHost","http3xx","codavelBanTime","updateAvailability","throw","cdnPriority","monitoringStarted","callTimeoutMilliseconds","_applyCdnTimeoutSettings","trunc","concat","getForceDecision","codavelBanRefTicToc","_lastChunkTime","time","600111hVnDZN","Updated","getInstance","replace","retries","__awaiter","getLastFailedTrialCdn","minApiCallResponseTime","_p2pLoader","getSecure","isEnabled","getCDN","resetOnPing","balanceManifests","_bumpHttpBucket","timeBetweenCallsMilliseconds","2850872WIzMCc","http1xx","http4xx","requestTimeoutMilliseconds","onCodavelSucessfullResponse","profileName","bannedRefTicToc","GET","enabled","?orresource="," -> banned ","registerCommonVariable","noProbing","codavelUnbanTime","updateSettings","filter","codavelBanCount","Discarding malformed CDN URL for ","signUrl"," (segment=","providers","every","getActiveRequests","delete","done","http://","lastUpdatedState","lastMeasurementWeight","apiCallResponses","auth_action_info","next","bannedTime","options","getCdnList","16728vehGTZ","join","duration","downloadTimeForScoring","bandwidthThreshold","sign_all_requests","21316aiTqvV","minimumDurationSinceLastUsedForTrialMilliseconds","_noProbing","_lastChunksLapse","isNotOnWhitelist","2097556qAbkts","stripPathRegex","getPluginVersion","_activeCdnRequests","bannedCount","segmentDuration","downloadMillis","_resource","test","none","Products","_cdnLastInstantBandwith","probeOnlyOnBanned","_probingInfo","consumeSyntheticCdnCounts","Quality priority","announcedCdns","origRes","decisionCallWaitTime","chunkExpirationProbingMs","codavelUnbanCount","price","updateCDNStatsOnSuccess","totalTimeoutMilliseconds","downloadedBytes","BalancerVariables","banned","ORIGINAL","pathName","renditionCount","recordStart","firstHugeChunkSize","Disabled","useP2P","_activeSwitching","forEach","removeActiveSegment","Invalid finalUrl after auth/signing for ","probingPolicy","getAccountCode","lastPreferedVideoBandwidth","length","codavelSwitchesDueToQuality","clear","weight","maxResponseTime","updateCodavelBanTimes","minThroughput","authenticate_probes","p2pAvailable","Invalid regex expression ","parser","5DTocbK","default","warn","initializated","from","size","sumThroughput","cdnBWEstimation","codavelSwitchesDueToConnectivity","_highestRenditionBandwidth","_chunkCount","get","Error parsing Balancer API response for signed URL: ","match","isCodavel","getIsLive","_failedRequests","syntheticCdnKind","latencyProbe","failures","resource","cdnBalanceMethod","FAILED -> ","apiCallErrors","downloadedChunks","https","absolute","_lastSuccessfulVideoProvider","], nor one of the whitelisted domains [","concurrencyEma","signed_url","name","unbannedTime","connectTimeoutMilliseconds","activeSwitchingPriority","includes","getSyntheticCdnStats","addResp"," / ","startsWith","finalUrl","_retries","getCommonVariable","changeStatusCDN","isMasterPlaylist","currentRenditionPos","BYPASS","token"];return(Ce=function(){return t})()}function Ne(t,e){return t-=287,Ce()[t]}class Le extends dt{constructor(t,e,i,s){const n=De;super(),this[n(366)]=y[n(601)],this[n(457)]=new Map,this[n(551)]=new Map,this[n(460)]=new Map,this._failedRequests=0,this._syntheticCdnStats={BYPASS:{downloadedChunks:0,downloadedBytes:0,time:0},BLACKLIST:{downloadedChunks:0,downloadedBytes:0,time:0},ORIGIN:{downloadedChunks:0,downloadedBytes:0,time:0}},this[n(610)]=0,this[n(561)]={currentCDN:""},this._highestChunkBandwidth=0,this[n(609)]=0,this[n(559)]=new Map,this._cdnInstantBandwith=new Map,this[n(323)]=new Map,this[n(312)]=new Map,this[n(406)]=0,this._firstRequestTime=0,this[n(485)]=0,this[n(546)]=0,this.currentRenditionBandwidth=0,this[n(316)]=0,this[n(577)]=0,this[n(603)]=!1,this[n(478)]=!1,this[n(333)]=!1,this[n(519)]=0,this.codavelUnbanCount=0,this[n(474)]=0,this.codavelUnbanTime=0,this[n(442)]=0,this[n(608)]=0,this[n(381)]=0,this[n(590)]=0,this[n(484)]=Date[n(402)](),this[n(361)]=0,this[n(335)]=new Map,this[n(365)]=!1,this.avgApiCallResponseTime=void 0,this.minApiCallResponseTime=void 0,this[n(417)]=void 0,this[n(294)]=void 0,this[n(531)]=void 0,this.p2pAvailable=!1,this[n(387)]=!1,this[n(305)]="",this[n(382)]="",this[n(564)]=0,this[n(470)]=null,this[n(553)]=void 0,this[n(367)]=t,this[n(555)]=e,this[n(495)]=i,this[n(472)]=s}[De(496)](){return null!=this[De(420)]&&this._secure}[De(525)](){return this._activeRequests}gotEmptyResponse(){const t=De;this[t(603)]=!1,this._cdnList[t(591)]()}setSettings(t,e){const n=De;var r,o,a,d,h,l,u,p,f,g,m,S,_,b,T,w,E,A,I,R,P,D,N,k,x,M,O,U,V,F,H,G,j,W,X,z,K;if(this[n(603)])return this.updateSettings(t,e);this._cdnList=new Map;try{!0===(null==t?void 0:t[n(400)])&&i.default[n(446)](i.LogLevel[n(385)]);const s=q[n(421)](null!==(r=this._options[n(291)])&&void 0!==r?r:"")?q.getRouteAndFilename(this._options.resource):{route:"",fileName:""};this._secure=(null!==(a=null===(o=this[n(367)][n(291)])||void 0===o?void 0:o.indexOf("https://"))&&void 0!==a?a:-1)>-1||void 0,this._resource[n(321)]=s.fileName,this[n(555)].route=s[n(336)],this._responseUUID=t[n(413)],this[n(352)]=t[n(292)],this[n(582)]=null!==(d=t[n(343)])&&void 0!==d?d:v[n(557)],this._bandwidthThreshold=null!==(h=t[n(541)])&&void 0!==h?h:y[n(601)],this[n(351)]=t[n(560)],this._noProbing=t.noProbing;const J=this._activeSwitching!==v[n(557)];we[n(489)]()[n(398)](null!==(l=this[n(545)])&&void 0!==l?l:this[n(367)][n(515)]),this._activeSwitching===v[n(477)]||this._activeSwitching===v.qualityPriority?we.getInstance()[n(341)](null!==(u=this[n(351)])&&void 0!==u?u:this[n(367)].probeOnlyOnBanned):we[n(489)]()[n(341)](!1),B[n(530)]=null!==(g=null===(f=null===(p=t.customData)||void 0===p?void 0:p.cdnBWEstimation)||void 0===f?void 0:f[n(530)])&&void 0!==g?g:B[n(530)],B[n(422)]=null!==(_=null===(S=null===(m=t[n(467)])||void 0===m?void 0:m[n(607)])||void 0===S?void 0:S[n(422)])&&void 0!==_?_:B[n(422)],B[n(544)]=null!==(w=null===(T=null===(b=t[n(467)])||void 0===b?void 0:b[n(607)])||void 0===T?void 0:T[n(544)])&&void 0!==w?w:B.minimumDurationSinceLastUsedForTrialMilliseconds,L[n(479)]=null!==(I=null===(A=null===(E=t[n(467)])||void 0===E?void 0:E[n(289)])||void 0===A?void 0:A[n(479)])&&void 0!==I?I:L.callTimeoutMilliseconds,L[n(368)]=null!==(D=null===(P=null===(R=t[n(467)])||void 0===R?void 0:R[n(289)])||void 0===P?void 0:P[n(368)])&&void 0!==D?D:L[n(368)],L[n(502)]=null!==(x=null===(k=null===(N=t[n(467)])||void 0===N?void 0:N.latencyProbe)||void 0===k?void 0:k.timeBetweenCallsMilliseconds)&&void 0!==x?x:L.timeBetweenCallsMilliseconds,c.decisionCallWaitTime=null!==(M=t[n(566)])&&void 0!==M?M:c[n(566)],c.decisionReloadIntervalPerManifestMilliseconds=null!==(O=t[n(386)])&&void 0!==O?O:c[n(386)],C[n(384)]=null!==(U=t[n(384)])&&void 0!==U?U:C[n(384)],B[n(567)]=null!==(G=null!==(H=null===(F=null===(V=t.customData)||void 0===V?void 0:V[n(289)])||void 0===F?void 0:F[n(567)])&&void 0!==H?H:this[n(367)].chunkExpirationProbingMs)&&void 0!==G?G:B[n(567)],B[n(586)]=null!==(X=null!==(W=null===(j=t[n(467)])||void 0===j?void 0:j[n(586)])&&void 0!==W?W:this[n(367)][n(586)])&&void 0!==X?X:B[n(586)],Pe[n(360)](this[n(367)],null===(z=t[n(467)])||void 0===z?void 0:z.options),this[n(480)](t);let $=!1,Y=[];Y=J?(null===(K=t[n(523)])||void 0===K?void 0:K.concat(t[n(438)]||[]))||[]:t[n(523)]||[],this[n(495)][n(497)]()&&(this[n(551)][n(428)]=0,this[n(457)][n(397)](n(428),this[n(495)][n(414)]())),this[n(597)]=this._p2pLoader.isEnabled(),"qualityPriority"==this[n(582)]?this[n(305)]=n(563):this[n(582)]==n(477)?this[n(305)]="CDN priority":this[n(305)]="Disabled";let Q=!1;Y.forEach(i=>
2{const s=n,r=i[s(430)]||0,o=q[s(421)](i[s(378)])?q[s(369)](i[s(378)]).route:"";$=$||o===e;const a=new At(i[s(355)],i.name,i[s(437)],i[s(418)],o,r,o===e,i[s(569)],i[s(592)],i[s(297)],i.dnsEnabled,i.auth,t[s(599)],i.port);a.host=i[s(437)],a[s(394)]=i[s(394)],this._cdnList[s(397)](i[s(302)],a),this.codavelProvidersState=new Map(Array[s(604)](this[s(457)][s(322)]())[s(518)](t=>t[s(614)]())[s(356)](t=>[t[s(302)],t[s(574)]])),this[s(594)](),this._activeCdnRequests[i[s(302)]]=0,!Q&&(this[s(382)]=i[s(302)],Q=!0)})}catch(t){i.default[n(602)](s.BalancerTag,t)}this[n(564)]=this[n(457)][n(605)]-(this[n(495)][n(497)]()?1:0),this[n(603)]=!0}[De(517)](t,e){const s=De;var n,r,o,a,d,h,l,u,p,f,g,m,y,S,_,b,T,w,E,A,I,R,P,D,N,k,x,M,O,U,V,F,H;!0===(null==t?void 0:t.debug)&&i.default.setLogLevel(i.LogLevel.VERBOSE),this[s(352)]=t[s(292)],this[s(582)]=null!==(n=t.activeSwitching)&&void 0!==n?n:v.none;const G=this[s(582)]!==v.none;this[s(351)]=t.probeOnlyOnBanned,this[s(545)]=t.noProbing,this[s(597)]=this[s(495)][s(497)](),"qualityPriority"==this[s(582)]?this[s(305)]="Quality priority":this[s(582)]==s(477)?this.activeSwitchingPriority=s(342):this[s(305)]=s(580),we[s(489)]()[s(398)](null!==(r=this[s(545)])&&void 0!==r?r:this._options.noProbing),this[s(582)]===v[s(477)]||this[s(582)]===v.qualityPriority?we[s(489)]().setHeadOnBannedOnly(null!==(o=this[s(351)])&&void 0!==o?o:this[s(367)][s(560)]):we[s(489)]()[s(341)](!1),B[s(530)]=null!==(h=null===(d=null===(a=t[s(467)])||void 0===a?void 0:a[s(607)])||void 0===d?void 0:d[s(530)])&&void 0!==h?h:B[s(530)],B[s(422)]=null!==(p=null===(u=null===(l=t[s(467)])||void 0===l?void 0:l[s(607)])||void 0===u?void 0:u[s(422)])&&void 0!==p?p:B[s(422)],B[s(544)]=null!==(m=null===(g=null===(f=t[s(467)])||void 0===f?void 0:f[s(607)])||void 0===g?void 0:g[s(544)])&&void 0!==m?m:B[s(544)],L[s(479)]=null!==(_=null===(S=null===(y=t.customData)||void 0===y?void 0:y[s(289)])||void 0===S?void 0:S.callTimeoutMilliseconds)&&void 0!==_?_:L[s(479)],L[s(368)]=null!==(w=null===(T=null===(b=t[s(467)])||void 0===b?void 0:b[s(289)])||void 0===T?void 0:T[s(368)])&&void 0!==w?w:L[s(368)],L.timeBetweenCallsMilliseconds=null!==(I=null===(A=null===(E=t[s(467)])||void 0===E?void 0:E[s(289)])||void 0===A?void 0:A.timeBetweenCallsMilliseconds)&&void 0!==I?I:L[s(502)],c[s(566)]=null!==(R=t.decisionCallWaitTime)&&void 0!==R?R:c[s(566)],c[s(386)]=null!==(P=t[s(386)])&&void 0!==P?P:c[s(386)],C.minRequestSizeForBwEstimateKB=null!==(D=t[s(384)])&&void 0!==D?D:C.minRequestSizeForBwEstimateKB,B[s(567)]=null!==(M=null!==(x=null===(k=null===(N=t.customData)||void 0===N?void 0:N[s(289)])||void 0===k?void 0:k[s(567)])&&void 0!==x?x:this[s(367)][s(567)])&&void 0!==M?M:B[s(567)],B.probingPolicy=null!==(V=null!==(U=null===(O=t.customData)||void 0===O?void 0:O[s(586)])&&void 0!==U?U:this[s(367)][s(586)])&&void 0!==V?V:B.probingPolicy,Pe[s(360)](this._options,null===(F=t[s(467)])||void 0===F?void 0:F[s(535)]),this[s(480)](t);let j=!1;const W=G?(null===(H=t.providers)||void 0===H?void 0:H[s(482)](t[s(438)]||[]))||[]:t[s(523)]||[],X=new Map;let z=!1;W.forEach(i=>{const n=s,r=this[n(457)][n(611)](i[n(302)]);if(r){r[n(395)]=!0,r.host!=i[n(437)]&&(r[n(437)]=i[n(437)]),r.port!=i[n(394)]&&(r[n(394)]=i[n(394)]),r[n(418)]!=i[n(418)]&&(r[n(418)]=i[n(418)]);const t=q.isValidUrl(i[n(378)])?q.getRouteAndFilename(i[n(378)])[n(336)]:"";r[n(378)]!=t&&(r[n(378)]=t),r[n(350)]!=i.auth&&(r.auth=i[n(350)]),X[n(397)](i[n(302)],r)}else{const s=i[n(430)]||0,r=q[n(421)](i[n(378)])?q[n(369)](i.url)[n(336)]:"";j=j||r===e;const o=new At(i.provider,i[n(302)],i[n(437)],i[n(418)],r,s,r===e,i[n(569)],i[n(592)],i.absolute,i.dnsEnabled,i.auth,t[n(599)],i[n(394)]);this[n(457)][n(397)](i.name,o),X[n(397)](i[n(302)],o),this[n(551)][i[n(302)]]=0}!z&&(this.priorityCdn=i[n(302)],z=!0)}),this[s(564)]=this._cdnList[s(605)]-(this._p2pLoader[s(497)]()?1:0),this[s(457)]=X;const K=W.map(t=>t[s(302)]);this._cdnList[s(583)](t=>{const e=s;K[e(306)](t.name)||t[e(355)]==e(575)||t[e(355)]==e(428)||(t[e(395)]=!1)}),this.codavelProvidersState=new Map(Array[s(604)](this[s(457)][s(322)]())[s(518)](t=>t[s(614)]())[s(356)](t=>[t[s(302)],t[s(574)]])),this[s(594)]()}[De(480)](t){const e=De;var i,s,n,r,o,a,c,d,h,l;const u=null===(i=t[e(467)])||void 0===i?void 0:i.cdnTimeout,p=this[e(367)][e(327)];C.connectTimeoutMilliseconds=null!==(n=null!==(s=null==u?void 0:u[e(304)])&&void 0!==s?s:null==p?void 0:p[e(304)])&&void 0!==n?n:C.connectTimeoutMilliseconds,C[e(463)]=null!==(o=null!==(r=null==u?void 0:u[e(463)])&&void 0!==r?r:null==p?void 0:p[e(463)])&&void 0!==o?o:C[e(463)];const f=null!==(d=null!==(c=null!==(a=null==u?void 0:u[e(479)])&&void 0!==a?a:null==p?void 0:p[e(479)])&&void 0!==c?c:null==u?void 0:u[e(506)])&&void 0!==d?d:C.callTimeoutMilliseconds;C[e(479)]=f,C[e(506)]=f,C[e(571)]=null!==(l=null!==(h=null==u?void 0:u[e(571)])&&void 0!==h?h:null==p?void 0:p[e(571)])&&void 0!==l?l:C.totalTimeoutMilliseconds}[De(334)](){const t=De;var e;this._activeSwitching&&this[t(582)]!==v[t(557)]&&((null!==(e=this[t(545)])&&void 0!==e?e:this[t(367)][t(515)])||(this[t(478)]?we[t(489)]()[t(409)](this[t(457)]):(this[t(478)]=!0,we[t(489)]()[t(372)](this[t(457)]))))}[De(450)](t,e){const n=De;if(e[n(288)])return void this._recordSyntheticResponse(e[n(288)],e,!0);if(this[n(551)][t]<1)return;this[n(346)]();const r=this[n(457)][n(611)](t);if(this[n(551)][t]--,null==r||r[n(300)][n(337)](),0==e[n(491)]&&this[n(287)]++,null!=r&&r.retries--,r){const t=Date[n(402)]();r[n(574)]?(r[n(534)]+=t-r.bannedRefTicToc,r[n(509)]=t):(r[n(303)]+=t-r[n(509)],r.bannedRefTicToc=t,r[n(574)]=!0,r[n(552)]++);const i=null==e?void 0:e[n(412)];null==i||0===i?r.lastUpdatedState=2:i>=400&&(r.lastUpdatedState=1)}r&&i.default[n(468)](s.BalancerTag,n(293)+r[n(302)]+n(513)+r[n(574)]),r&&(e.failed=!0,r[n(308)](e),r[n(290)]++,r[n(452)]++,r[n(358)]=!0),this[n(335)]=new Map(Array[n(604)](this[n(457)].values())[n(518)](t=>t.isCodavel())[n(356)](t=>[t[n(302)],t.banned])),this.updateCodavelBanTimes()}[De(584)](t){const e=De;var i;this._activeRequests.delete(t.id),this[e(551)][t[e(407)]]--,null===(i=this[e(457)][e(611)](t[e(407)]))||void 0===i||i.concurrencyEma[e(337)](),this[e(610)]++}[De(570)](t){const e=De;var i,s;if(t[e(315)]&&(this.segmentDuration=t.segmentDuration),this[e(346)](),t[e(340)]&&(this[e(298)]=t[e(407)]),t[e(288)])this[e(416)](t[e(288)],t,!1);else{if(null!=t.progressDownloadedBytes){if(this[e(406)]=this[e(406)]+t.size,0!=t[e(539)]){const i=8*t[e(605)]/t[e(539)];this._highestChunkBandwidth<i&&(this[e(462)]=i)}null===(i=this[e(457)][e(611)]((null==t?void 0:t[e(407)])||""))||void 0===i||i[e(308)](t)}else t[e(415)]&&(this[e(367)][e(349)]||this[e(367)].balanceManifests)&&(null===(s=this[e(457)][e(611)]((null==t?void 0:t.cdnName)||""))||void 0===s||s[e(308)](t));this[e(335)]=new Map(Array[e(604)](this._cdnList[e(322)]())[e(518)](t=>t.isCodavel())[e(356)](t=>[t[e(302)],t[e(574)]])),this[e(594)]()}}[De(419)](){const t=De,e=this[t(298)]===t(428);return e&&(this._lastSuccessfulVideoProvider="Original"),e}[De(536)](){return this[De(457)]}[De(404)](t){const e=De,i=this[e(457)][e(611)](t);i&&(this[e(470)]=i)}[De(493)](){return this[De(470)]}[De(307)](){const t=De;return{BYPASS:Object[t(392)]({},this[t(320)].BYPASS),BLACKLIST:Object.assign({},this[t(320)][t(425)]),ORIGIN:Object[t(392)]({},this._syntheticCdnStats[t(345)])}}[De(562)](){const t=De,e=this[t(307)]();return this[t(320)][t(317)]={downloadedChunks:0,downloadedBytes:0,time:0},this[t(320)][t(425)]={downloadedChunks:0,downloadedBytes:0,time:0},this._syntheticCdnStats[t(345)]={downloadedChunks:0,downloadedBytes:0,time:0},e}[De(416)](t,e,i){const s=De;var n,r,o,a,c,d,h;if(!this[s(367)][s(388)])return;const l=this[s(320)][t];if(i)return l[s(401)]=(null!==(n=l.errors)&&void 0!==n?n:0)+1,void this[s(501)](l,e[s(412)]);const u=e[s(605)]||0;if(u<=0)return;const p=e.downloadTimeMs||0,f=e.bandwidth||0;l.downloadedChunks+=1,l[s(572)]+=u,l[s(486)]+=p,u>0&&(l[s(339)]=(null!==(r=l.sumResponseBytes)&&void 0!==r?r:0)+u,l.minResponseBytes=void 0===l[s(448)]?u:Math[s(359)](l[s(448)],u),l[s(408)]=void 0===l[s(408)]?u:Math.max(l[s(408)],u),l.responseBytesSamples=(null!==(o=l.responseBytesSamples)&&void 0!==o?o:0)+1),p>0&&(l[s(380)]=(null!==(a=l[s(380)])&&void 0!==a?a:0)+p,l[s(383)]=void 0===l[s(383)]?p:Math[s(359)](l[s(383)],p),l[s(593)]=void 0===l[s(593)]?p:Math[s(344)
2](l[s(593)],p),l.responseTimeSamples=(null!==(c=l.responseTimeSamples)&&void 0!==c?c:0)+1),f>0&&(l[s(606)]=(null!==(d=l[s(606)])&&void 0!==d?d:0)+f,l.minThroughput=void 0===l[s(595)]?f:Math[s(359)](l.minThroughput,f),l.maxThroughput=void 0===l[s(390)]?f:Math[s(344)](l.maxThroughput,f),l[s(411)]=(null!==(h=l.throughputSamples)&&void 0!==h?h:0)+1),this[s(501)](l,e[s(412)])}[De(501)](t,e){const i=De;var s,n,r,o,a;null!=e&&(e>=100&&e<=199?t[i(504)]=(null!==(s=t[i(504)])&&void 0!==s?s:0)+1:e>=200&&e<=299?t[i(464)]=(null!==(n=t[i(464)])&&void 0!==n?n:0)+1:e>=300&&e<=399?t[i(473)]=(null!==(r=t[i(473)])&&void 0!==r?r:0)+1:e>=400&&e<=499?t[i(505)]=(null!==(o=t[i(505)])&&void 0!==o?o:0)+1:e>=500&&e<=599&&(t[i(454)]=(null!==(a=t[i(454)])&&void 0!==a?a:0)+1))}[De(346)](){const t=De,e=new Map,i=new Map;this._activeRequests.forEach(t=>{const i=Ne,s=t.instantBandwidth,n=t[i(407)];let r=e[i(611)](n);null==r&&(r=0),r+=s,e.set(n,r)}),this[t(376)]=e,e[t(583)]((e,i)=>{const s=t,n=this._cdnPeakBandwidth[s(611)](i);(null==n||n<e)&&this[s(323)][s(397)](i,e)}),e.forEach((e,i)=>{const s=t;0!=e&&this[s(559)][s(397)](i,e)});let s=0;i[t(583)]((t,e)=>{s+=t})}[De(396)](t,n,r){const o=De;var a,c,d;const h=e.default[o(489)]()[o(328)]().getAccountCode(),l=null!==(a=this[o(367)][o(508)])&&void 0!==a?a:"",u=null!==(c=this[o(367)][o(348)])&&void 0!==c?c:o(601),p=(this[o(367)].isDev,null!==(d=this[o(367)][o(373)])&&void 0!==d&&d),f=n,g=new XMLHttpRequest;let m=f+"/"+h+"/"+(this[o(367)][o(508)]?l+"/":"")+o(521);m=m.replace("//","/"),m=o(324)+m;const v={resource:t,live:""+p,extended:o(364),npawPluginInfo:o(364),originCode:null!==this[o(367)].bucketName&&void 0!==this[o(367)][o(348)]?u:"",v:e.default[o(550)]()};if(g.open(o(510),m+q[o(427)](v),!1),g[o(469)](),g[o(332)]>=200&&g[o(332)]<=300)try{if(g[o(449)]){const t=JSON.parse(g[o(449)]);for(const e of t[o(523)])if(e[o(302)]===r&&e.auth&&e[o(350)][o(331)])return e[o(350)][o(331)][o(301)]}}catch(t){i.default[o(400)](s.BalancerTag,o(612)+t)}else i.default[o(400)](s.BalancerTag,o(455)+g[o(332)]+")")}updateUrl(t,n=!1,r){const o=De;var a,c,d,h,l,u,p,f,g,m,v,y,S,_,b,T;if(this[o(393)](t[o(378)]))return void(t[o(288)]=o(425));const w=this[o(456)](t[o(378)]),E=this[o(547)](t[o(378)]),A=this[o(495)][o(497)](),I=t[o(415)],R=w&&E&&!A,P=null!==(a=this[o(367)][o(500)])&&void 0!==a&&a;if(P){if(R){const e=Array.from(this[o(457)][o(322)]())[o(356)](t=>'"'+t[o(437)]+'"'),n=(null!==(c=this[o(367)][o(371)])&&void 0!==c?c:[])[o(482)](null!==(d=this[o(367)][o(362)])&&void 0!==d?d:[])[o(356)](t=>'"'+t+'"');return i.default[o(400)](s.BalancerTag,"Bypassed "+t[o(378)]+" because its host is not one of the currently active CDN hosts: ["+e.join(",")+o(299)+n.join(",")+o(466)+P+")"),void(t.syntheticCdnKind=o(317))}}else if(I||R){if(R){const e=Array.from(this[o(457)].values()).map(t=>'"'+t[o(437)]+'"'),n=(null!==(h=this[o(367)].domainWhitelist)&&void 0!==h?h:[])[o(482)](null!==(l=this._options[o(362)])&&void 0!==l?l:[])[o(356)](t=>'"'+t+'"');i.default[o(400)](s.BalancerTag,o(325)+t.url+" because its host is not one of the currently active CDN hosts: ["+e.join(",")+o(299)+n[o(538)](",")+"]")}return void(t[o(288)]="BYPASS")}if(r){const a=this[o(457)][o(611)](r);if(a){let c=(t[o(378)].startsWith(o(296))?o(324):o(528))+(a.port&&a[o(394)][o(589)]>0?a[o(437)]+":"+a[o(394)]:a[o(437)]),d=!1;if(this[o(367)][o(451)])for(const e of this[o(367)][o(451)])new RegExp(e)[o(556)](c)&&(i.default[o(468)](s.BalancerTag,"Found a match for stripping path...(cdn: "+r+", url: "+t[o(378)]+")"),d=!0);if(a[o(355)]===o(433)||a[o(355)]===o(443)?c+="/"+e.default[o(489)]()[o(328)]()[o(587)]()+"/"+(null!==(u=this[o(367)][o(508)])&&void 0!==u?u:o(601))+"/"+(null!==(p=this._options.bucketName)&&void 0!==p?p:o(601)):!d&&(c+=a[o(418)]),c+=t.pathName,(a.provider===o(433)||"STREBOPX"===a[o(355)])&&(c+=c.includes("?")?o(377)+t[o(565)]:o(512)+t[o(565)]),a.provider===o(443)&&(c+="&advanceproxy=true"),null!=a[o(350)]&&a[o(350)][o(511)]&&(!n||n&&a.auth[o(596)]))if(a[o(350)][o(532)]===o(461)){const t=(null===(f=a[o(350)][o(331)])||void 0===f?void 0:f[o(318)])||"";c+=c.includes("?")?"&"+t:"?"+t}else if(a[o(350)].auth_action_info===o(542)){const t=this[o(396)](c,this[o(472)],a[o(302)]);t&&(c=t)}if(d&&this[o(367)][o(549)]){const t=new RegExp(this[o(367)][o(549)]),e=c[o(613)](t);if(e){const t=e[0];c=c[o(490)](t,"/"),i.default.verbose(s.BalancerTag,o(353)+c)}else i.default[o(468)](s.BalancerTag,o(403)+c+" (regex: "+this[o(367)][o(549)]+")")}return c}}let D=new Map;if(D=new Map(this[o(457)]),Array.isArray(t.triedCdns)&&t[o(363)][o(589)]>0)for(const e of t.triedCdns)e&&"P2P"!==e&&D[o(526)](e);let C="",N="",L=!1;const B=t[o(581)],k=(null===(g=t[o(429)])||void 0===g?void 0:g[o(354)])||0;this._highestRenditionBandwidth<k&&(this[o(609)]=k);const x=null!==(v=null!==(m=this[o(545)])&&void 0!==m?m:this[o(367)].noProbing)&&void 0!==v&&v;for(;!C||""==C;){if(N=new ve(D,this[o(366)],this._highestRenditionBandwidth,this[o(582)],this[o(495)],this[o(367)],void 0,x,{get:()=>this[o(470)],clear:()=>{this[o(470)]=null}})[o(498)](t,this[o(561)]),e.default[o(489)]()[o(514)](Ee.default[o(558)][o(347)],Ee.default[o(573)].LAST_USED_CDN,N===o(426)?o(424):N),N===o(428)){L=!0,D[o(526)](o(428)),N="",t.useP2P=!1;continue}const n=this[o(457)][o(611)](N);try{if(n&&N!=o(426)){C=(t.url[o(310)]("https")?o(324):o(528))+(n.port&&n[o(394)][o(589)]>0?n.host+":"+n[o(394)]:n[o(437)]);let r=!1;if(this[o(367)].stripPathForDomainRegex)for(const t of this[o(367)][o(451)])new RegExp(t).test(C)&&(r=!0);if(n[o(355)]===o(433)||n[o(355)]===o(443)){const t=e.default.getInstance()[o(328)]().getAccountCode();C+="/"+t+"/"+(null!==(y=this._options[o(508)])&&void 0!==y?y:o(601))+"/"+(null!==(S=this._options[o(348)])&&void 0!==S?S:o(601))}else!r&&(C+=n[o(418)]);if(C+=t[o(576)],(n[o(355)]===o(433)||n[o(355)]===o(443))&&(C+=C[o(306)]("?")?o(377)+t[o(565)]:o(512)+t[o(565)]),"STREBOPX"===n[o(355)]&&(C+=o(434)),""==C&&i.default.debug(s.BalancerTag,"Error updating url -> "+t[o(378)]+o(309)+(null===(_=this[o(555)])||void 0===_?void 0:_.route)+o(309)+n[o(302)]),r&&this._options[o(549)]){const t=new RegExp(this[o(367)].stripPathRegex),e=C[o(613)](t);if(e){const t=e[0];C=C[o(490)](t,"/"),i.default[o(468)](s.BalancerTag,o(353)+C)}
2else i.default[o(468)](s.BalancerTag,"No matching path found to strip in URL: "+C+" (regex: "+this[o(367)][o(549)]+")")}}else N==o(426)&&(C=t[o(378)],t[o(288)]=o(345))}catch(t){}""!==N&&N!==o(426)&&C&&!q[o(421)](C)&&(i.default[o(602)](s.BalancerTag,o(520)+N+": "+C+o(522)+t[o(378)]+")"),C=""),D[o(526)](N)}if(N===o(428))C=o(428);else{N!==o(426)&&(this[o(551)][N]=(this[o(551)][N]||0)+1,null===(b=this[o(457)].get(N))||void 0===b||b[o(300)][o(578)]());const e=this[o(457)].get(N);if(null!=e&&null!=e[o(350)]&&e[o(350)][o(511)]&&(!n||n&&e[o(350)].authenticate_probes))if(e[o(350)][o(532)]===o(461)){const t=(null===(T=e[o(350)][o(331)])||void 0===T?void 0:T[o(318)])||"";C+=C.includes("?")?"&"+t:"?"+t}else if("sign_all_requests"===e[o(350)][o(532)]){const t=this[o(396)](C,this[o(472)],e.name);t&&(C=t)}if(N!==o(426)&&!q[o(421)](C)&&(i.default.warn(s.BalancerTag,o(585)+N+": "+C+". Falling back to Original."),N=o(426),C=t[o(378)],t[o(288)]=o(345)),t[o(311)]=C,e&&N!==o(426)?t.changeCDN(C,e[o(302)],e[o(355)]):N===o(426)&&t[o(444)](C,"Original","ORIGINAL"),i.default[o(468)](s.BalancerTag,o(453)+C+o(458)+t.cdnName),this[o(399)]!=N&&this.lastUsedCdn!==o(426)&&void 0!==this[o(399)]){const t=this[o(457)][o(611)](this[o(399)]),e=this[o(457)][o(611)](N);null!=t&&(t.isCodavel()&&null!=e&&!e[o(614)]()&&(3==t.lastUpdatedState&&this[o(436)](3),this[o(338)]()),t.incrementSwitches(),2==t[o(529)]?t.incrementSwitchesDueToConnectivity():1==t.lastUpdatedState?t[o(459)]():t.incrementSwitchesDueToQuality(),t[o(529)]=0)}this[o(399)]=N}return L?(t[o(581)]=B,o(428)):(t[o(581)]=B,C)}setResourceInfo(t){const e=De,i=q[e(421)](null!=t?t:"")?q[e(369)](t):{route:"",fileName:""};this[e(555)][e(321)]=i[e(321)],this._resource[e(336)]=i.route}[De(445)](){return t=this,i=void 0,n=function*(){const t=Ne;let i=0;for(;!e.default[t(489)]()[t(313)](Ee.default[t(558)].BALANCER,Ee.default[t(573)][t(471)])&&i++<5;)yield q.delay(300);if(5===i)return this[t(555)][t(336)]+this[t(555)][t(321)];const s=Array.from(this[t(457)][t(322)]())[t(518)](e=>e.name!==t(428));return s[t(589)]>0?s[0][t(378)]+this[t(555)][t(321)]:this._resource[t(336)]+this[t(555)][t(321)]},new((s=void 0)||(s=Promise))(function(e,r){function o(t){const e=Ne;try{c(n[e(533)](t))}catch(t){r(t)}}function a(t){const e=Ne;try{c(n[e(476)](t))}catch(t){r(t)}}function c(t){const i=Ne;var n;t[i(527)]?e(t.value):(n=t[i(465)],n instanceof s?n:new s(function(t){t(n)}))[i(439)](o,a)}c((n=n.apply(t,i||[])).next())});var t,i,s,n}[De(447)](){const t=De,e=[];let i=0,s=0,n=0,r=0,o=0,a=0,c=0,d=0;return this._cdnList[t(583)](h=>{const l=t;if("P2P"===h.name)return;h[l(475)]();let u=(h.downloadedBytes||0)/((h[l(554)]||1)/1e3)*8;const p=(h.downloadedBytesForScoring||0)/((h[l(540)]||1)/1e3)*8;null==u&&(u=0);const f=this._totalDownloadedBytes/((Date.now()-this[l(389)])/1e3)*8,g=this[l(323)][l(611)](h[l(302)])||0,m=this[l(376)][l(611)](h[l(302)])||0,v=this[l(559)].get(h.name)||0;e.push({downloadedBytes:h[l(572)],downloadedChunks:h[l(295)],bandwidth:Math[l(481)](u),instantBandwidth:Math[l(481)](m),lastInstantBandwidth:Math.trunc(v),peakBandwidth:Math[l(481)](g),failures:h.failures,totalFailures:h[l(452)],retries:h[l(491)],downloadTime:h.downloadMillis,provider:h.provider,profileName:h[l(302)],isActive:h[l(395)],ptb:f,usedOnce:h[l(358)],hugeChunks:h[l(379)],firstHugeChunkSize:h[l(579)],lastChunksLapse:this._lastChunksLapse,maxBandwidth:h[l(431)],banned:h[l(574)],lastBandwidth:h[l(588)],scoringBandwidth:p}),i+=h[l(572)],s+=u,n+=g,r+=m,o+=h[l(295)],a+=h.downloadMillis,c+=h[l(290)],d+=h[l(491)]}),{responseUUID:this[t(319)],totalDownloadedBytes:i,totalDownloadedChunks:o,totalDownloadedTime:a,totalFailures:c,totalRetries:d,activeSwitching:this[t(582)]||"",mode:this[t(352)]||"",totalBandwidth:Math[t(481)](s),totalInstantBandwidth:Math.trunc(r),totalPeakBandwidth:Math[t(481)](n),cdns:e,currentRenditionBandwidth:this[t(440)],currentRenditionPos:this.currentRenditionPos,renditionCount:this[t(577)]}}[De(314)](t,e){const i=De;let s=!1,n=0;return!e&&this._cdnList[i(583)](t=>{t[i(395)]&&n++}),this[i(457)][i(583)](r=>{const o=i;r[o(302)]===t&&(e&&(r[o(395)]=!0,s=!0),!e&&n>1&&(r[o(395)]=!1,s=!0))}),s}[De(435)](t,e){const i=De,s=this[i(457)].get(t);return null!=s&&(s.maxBandwidth=e,this[i(405)](a[i(488)],{loader:this}),!0)}getMaxBandwidth(t){const e=De,i=this[e(457)][e(611)](t);
2return null!=i?i[e(431)]:0}[De(594)](){const t=De,e=Date[t(402)]();if(0===this.codavelProvidersState[t(605)])return void(this[t(484)]=e);const i=Array[t(604)](this[t(335)][t(322)]())[t(524)](t=>t);i!==this[t(333)]?i?(this[t(516)]+=e-this[t(484)],this.codavelBanRefTicToc=e,this[t(519)]++):(this[t(474)]+=e-this.codavelBanRefTicToc,this.codavelBanRefTicToc=e,this[t(568)]++):i?(this[t(474)]+=e-this[t(484)],this[t(484)]=e):(this[t(516)]+=e-this.codavelBanRefTicToc,this[t(484)]=e),this[t(333)]=i}[De(499)](){const t=De;this[t(474)]=0,this.codavelUnbanTime=0,this.codavelBanRefTicToc=Date[t(402)](),this[t(365)]=!1,this.avgApiCallResponseTime=void 0,this[t(494)]=void 0,this[t(417)]=void 0,this[t(294)]=void 0,this.apiCallResponses=void 0}[De(338)](){const t=De;this[t(442)]++,2==this[t(361)]?this[t(608)]++:1==this[t(361)]?this[t(381)]++:3==this[t(361)]&&this[t(590)]++}[De(507)](){this[De(361)]=0}[De(436)](t){this[De(361)]=t}[De(330)](){const t=De;null==this.apiCallErrors?this[t(294)]=1:this[t(294)]+=1,this.processedApiCall=!0}onSucessfullApiResponse(t){const e=De;null==this[e(531)]?this[e(531)]=1:this[e(531)]+=1,null==this[e(494)]?this[e(494)]=t:this.minApiCallResponseTime=Math[e(359)](this[e(494)],t),null==this[e(370)]?this.avgApiCallResponseTime=t:this[e(370)]=this[e(370)]+(t-this[e(370)])/this.apiCallResponses,null==this.maxApiCallResponseTime?this[e(417)]=t:this[e(417)]=Math[e(344)](this.maxApiCallResponseTime,t),this[e(365)]=!0}[De(432)](){return this[De(367)].bucketName}[De(615)](){return this[De(367)].isLive}[De(483)](){const t=De;return this[t(367)][t(357)]}getSegmentDuration(){return this.segmentDuration}isNotOnCdnList(t){const e=De;let i=!1;const s=new URL(t);for(const t of this[e(457)][e(322)]())if(t.host===s[e(391)]){i=!0;break}return!i}[De(547)](t){const e=De;var n,r;let o=!1;const a=new URL(t);for(const t of null!==(n=this[e(367)].domainWhitelistRegex)&&void 0!==n?n:[])try{if(new RegExp(t)[e(556)](a[e(391)])){o=!0;break}}catch(n){i.default[e(400)](s.BalancerTag,e(598)+t)}for(const t of null!==(r=this[e(367)].domainWhitelist)&&void 0!==r?r:[]){if(o)break;if(t===a[e(391)]){o=!0;break}}return!o}[De(393)](t){const e=De,n=this._options[e(375)];if(!n||0===n.length)return!1;for(const r of n)try{if(new RegExp(r)[e(556)](t))return!0}catch(t){i.default[e(400)](s.BalancerTag,e(329)+r)}return!1}}const Be=ke;function ke(t,e){return t-=114,xe()[t]}function xe(){const t=["_reduceMemSize","cachedSegmentExpiration","2050902qqFbOL","_maxSize","_removeOldSegments","p2pId","3969545dTZYhj","setSettings","storeSegment","createdAt","_loader","getLastSegmentId","destroy","P2P: Segment not ready yet for segment map","count","delete","undefined","2989124vINGOX","_lastSegmentId","data","push","cachedSegmentsCount","now","size","1382883yGYFeR","getSize","startTime","hasSegment","endTime","createMap","419468qwPgUV","_expTime","p2p","getMaxSize","429672DXDikG","get","forEach","_localMem","expiration","clear","getSegment","10134600MXwVdM","readyForP2P"];return(xe=function(){return t})()}!function(t){const e=ke,i=t();for(;;)try{if(426872==parseInt(e(137))/1+parseInt(e(133))/2+-parseInt(e(127))/3+-parseInt(e(120))/4+-parseInt(e(152))/5+parseInt(e(148))/6+parseInt(e(144))/7)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xe);class Me{constructor(t){const e=ke;this._localMem=new Map,this._maxSize=D[e(117)],this[e(134)]=D[e(141)],this._lastSegmentId="",this[e(156)]=t,setInterval(()=>{this[e(150)]()},1e3)}[Be(153)](t){const e=Be,i=t[e(135)];i&&(this._expTime=i[e(147)]||D[e(141)],this[e(149)]=Math.min(i[e(124)]||D[e(117)],D.safeMaxCount))}[Be(136)](){return this[Be(149)]}[Be(143)](t){return this[Be(140)].get(t)}[Be(130)](t){return this[Be(140)].has(t)}[Be(154)](t){const e=Be;return!this.hasSegment(t[e(151)])&&typeof t[e(122)]!==e(119)&&(this[e(121)]=t.p2pId,this[e(140)].set(t[e(151)],t),this._reduceMemSize(),!0)}_removeOldSegments(){const t=Be,e=Date[t(125)]()-this[t(134)];this[t(140)][t(139)]((i,s)=>{const n=t;i[n(129)]<e&&this[n(140)][n(118)](s)})}[Be(146)](){const t=Be;let e,i;this[t(140)].size-this[t(149)]>
20&&(i=Date[t(125)](),e="",this[t(140)].forEach((s,n)=>{s[t(131)]<i&&(e=n,i=s.endTime)}),this[t(140)].delete(e),this[t(146)]())}[Be(132)](){const t=Be,e=[];for(const[,n]of this[t(140)])n[t(145)]?e[t(123)](n.p2pId):i.default.debug(s.BalancerTag,t(116));return e}[Be(115)](){const t=Be;this[t(140)][t(142)]()}[Be(128)](){const t=Be;return this[t(140)][t(126)]}[Be(114)](){return this[Be(121)]}getLastSegmentCreatedAt(){const t=Be;var e;return(null===(e=this._localMem[t(138)](this._lastSegmentId))||void 0===e?void 0:e[t(155)])||0}}const Oe=qe;function Ue(){const t=[".mpd","debug","Range","length","Success","params"," downloaded by p2p -> ","isMasterPlaylist","push","readyForP2P","addParametersToUrl","Util","floor","onProgress","createdAt","Parsed manifest -> ","BYTLELENGHT ","isMedia","downloadTimeMs","timeout","isManifest","instantBandwidth","data","activeP2PSendProcesses","loaded","resource","P2PManager","nowMs","startTime","string","finalUrl","search","url","now","download","p2pId","bandwidth","verbose","_resourceIdentifier","endsWith","14184XdFzLg","setContent","getPerfLoadTime","realBodySize","v2RenditionResourceUrl","Fail","Problem slicing the array","origRes","failedOriginalCount","perfStartMs","2YUjNtM","timestamp","duration","getRenditions","changeCDN","arrayBuffer","83474azdaVr","registerManifest","isInitialization","includes","function"," Total time -> ","1203839FUqsdm","v2IsInitialization","p2pSwitchRecorded","byteLength","noContentObtained","retryBecauseNewHeaders","hash","segmentDuration","822972fjFSNn","retries","cdnProvider","591528KDudFT","resolve","progressDownloadedBytesLastUpdate","pathname","getEntriesByType","getTime","cdnName","route","endTime","renditionResourceUrl","uncompressedBytes","onSuccess","segmentDurationMilliseconds","Done ","size","305286BxZHto","forceHttp","failed","UNKNOWN","v2SegmentDurationMs","triedCdns"," renditions -> ","headers","announcedP2P","trunc","_resource","2079EvPKVq","host","_computeP2pId","triedP2P","progressDownloadedBytes","pathName","v2TrackType","segmentId","ifByteArrayToString","undefined","total","initialEstimatedTime","P2PManifestRegistry.registerManifest failed: ","478295BuzKkp","_p2pSegmentIdResolver","peer","emit","rendition"];return(Ue=function(){return t})()}function qe(t,e){return t-=114,Ue()[t]}!function(t){const e=qe,i=t();for(;;)try{if(115555==parseInt(e(147))/1*(parseInt(e(141))/2)+-parseInt(e(164))/3+-parseInt(e(161))/4+-parseInt(e(203))/5+-parseInt(e(179))/6+parseInt(e(153))/7+parseInt(e(131))/8*(parseInt(e(190))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ue);class Ve extends dt{constructor(t,e,i,s,n={},r=3,o=!1,a=!1,c,d){const h=qe;super(),this[h(195)]="",this[h(230)]=new ArrayBuffer(1),this[h(178)]=0,this[h(127)]=0,this[h(119)]=0,this[h(172)]=0,this[h(140)]=0,this[h(226)]=0,this[h(181)]=!1,this[h(227)]=!1,this[h(155)]=!1,this.progressDownloadedBytes=0,this[h(166)]=0,this.instantBandwidth=0,this[h(143)]=0,this.initialEstimatedTime=0,this.lastEstimatedTime=0,this[h(228)]=!1,this[h(215)]=!1,this[h(225)]=!1,this[h(125)]=!0,this[h(134)]=0,this[h(217)]=!0,this[h(187)]=!1,this[h(114)]=0,this[h(158)]=0,this[h(180)]=!1,this[h(205)]=void 0,this[h(222)]=Date[h(124)](),this[h(139)]=0,this[h(160)]=void 0,this[h(142)]=void 0,this[h(196)]=ee[h(182)],this[h(154)]=!1;const l=new URL(e);this[h(123)]=e,this[h(121)]=e,this.origRes=e,this[h(191)]=l[h(191)],this[h(171)]=l.pathname,this.params=l[h(122)],this[h(186)]=n,this[h(162)]=r,this.useP2P=o,this[h(193)]=!1,this.cdnName="",this[h(163)]="",this[h(146)]=a,this[h(184)]=[],this[h(189)]=i,this[h(129)]=s,this._p2pManifestRegistry=c,this[h(204)]=d,this[h(195)]=t,this[h(142)]=(new Date)[h(169)](),this.id=Math[h(220)](100*Math.random())+"-"+Date.now(),this[h(126)]=this._computeP2pId()}updateP2PId(){const t=qe;var e;i.default[t(209)](s.BalancerTag,"Update P2P ID "+this[t(195)]+((null===(e=this.headers)||void 0===e?void 0:e[t(210)])||"")),this[t(126)]=this[t(192)]()}[Oe(192)](){const t=Oe;var e;const i=(null===(e=this[t(186)])||void 0===e?void 0:e[t(210)])||"";if(this[t(204)]){const e=this._p2pSegmentIdResolver[t(165)]({url:this[t(123)],rangeHeader:i[t(211)]>0?i:void 0});if(e)return this.v2Rendition=e[t(207)],this[t(135)]=e[t(173)],this[t(196)]=e.trackType,this[t(154)]=e[t(149)],this[t(183)]=e[t(176)],e[t(197)]}return window[t(117)]?window.P2PManager[t(219)][t(159)](this[t(195)]+i):""+this.pathName+i}getNewUrl(t){const e=Oe;let i=!1;this.isManifest?(this[e(228)]&&this[e(181)]||this.isManifest&&t)&&(i=!0):i=!0;let s=i?this[e(121)]:this[e(123)];
2return this[e(213)]&&(s=s.includes("?")?s+"&"+this[e(213)]:s+"?"+this[e(213)]),s}[Oe(218)](t){const e=Oe;let i=t;return this[e(213)]&&i&&(i=i.includes("?")?i+"&"+this[e(213)]:i+"?"+this[e(213)]),i}[Oe(145)](t,e,i){const s=Oe;if("ORIGINAL"!=i){const i=new URL(t);this[s(191)]=i.host,this[s(171)]=i[s(167)],this[s(184)][s(216)](e)}this[s(170)]=e,this.cdnProvider=i}[Oe(132)](t){const e=Oe;this.data=t,this[e(178)]=t.byteLength,this[e(206)](o[e(212)],{segment:this,data:t})}[Oe(157)](){const t=Oe;this.emit(o[t(136)],{segment:this})}[Oe(133)](t){const e=Oe;var i;if(typeof performance!==e(199)&&typeof performance[e(168)]===e(151)){const s=performance[e(168)](e(116));if(s&&s.length>0)for(const n of s){const s=n.toJSON();if(null===(i=null==s?void 0:s.name)||void 0===i?void 0:i[e(150)](t))return Math.round(null==s?void 0:s[e(143)])}}return-1}[Oe(221)](t,e){const n=Oe;e[n(200)]>0&&(this.realBodySize=e.total),0==this[n(166)]&&(this[n(166)]=this[n(119)]);const r=Date[n(124)](),o=r-this[n(166)];if(this[n(172)]=Date[n(124)](),o<150)return;0!=o&&(this[n(229)]=(e[n(115)]-this.progressDownloadedBytes)/((r-this[n(166)])/1e3)*8,this.progressDownloadedBytesLastUpdate=r,e[n(115)]&&(this[n(194)]=e[n(115)]));const a=(r-this[n(119)])/(e[n(115)]/e.total);this[n(201)]=0==this.initialEstimatedTime?a:this[n(201)],this.lastEstimatedTime=a,this[n(143)]>0&&0!=a&&1e3*this[n(143)]<a&&i.default.debug(s.BalancerTag,"High risk of buffer. "+this[n(138)]),i.default[n(128)](s.BalancerTag,n(177)+this[n(138)]+n(152)+(Date[n(124)]()-this.startTime))}[Oe(175)](t,e,n=!1){const r=Oe;var o,a;if(this[r(172)]=Date[r(124)](),null==t||0==t.length)return!1;this.downloadTimeMs=this[r(172)]-this[r(119)],this[r(133)](this[r(171)]);const c=n?q.sliceByFirstSpecial(this[r(123)]):this.url,d=new URL(c)[r(167)];
2if(d[r(130)](".m3u8")||d[r(130)](r(208))){t=q[r(198)](t);const e=null===(o=this[r(129)])||void 0===o?void 0:o.onManifest(this[r(123)],t);if(this[r(215)]=null!==(a=null==e?void 0:e.isMasterManifest)&&void 0!==a?a:d[r(130)](r(208)),i.default[r(209)](s.BalancerTag,r(223)+this[r(123)]+r(185)+this[r(189)][r(144)]()[r(178)]),null!=(null==e?void 0:e.targetDurationSeconds)&&(this[r(160)]=1e3*e.targetDurationSeconds),this._p2pManifestRegistry&&typeof t===r(120))try{this._p2pManifestRegistry[r(148)](this.url,t)}catch(t){i.default[r(128)](s.BalancerTag,r(202)+t)}}if(i.default[r(128)](s.BalancerTag,r(224)+t[r(156)]+r(214)+this.triedP2P),0!=t[r(156)])try{this[r(230)]=t.slice(0,t[r(156)]),this[r(178)]=this.data[r(156)];const i=this[r(140)]>0?q[r(118)]()-this[r(140)]:this[r(226)];this[r(127)]=i>0?Math[r(188)](this[r(230)][r(156)]/(i/1e3)):0,this[r(230)][r(156)]>0&&(this[r(134)]=this[r(230)][r(156)]),this[r(229)]=0,this[r(194)]=this[r(178)];const s=parseInt(e,10);!isNaN(s)&&s>0&&(this.compressedBytes=s,this[r(174)]=this[r(230)].byteLength||t.byteLength||this[r(134)])}catch(t){i.default[r(209)](s.BalancerTag,r(137))}else this.data.byteLength!=this[r(134)]&&(this[r(230)]=new ArrayBuffer(1));return this[r(166)]=this[r(172)],!0}}function Fe(t){const e=Ge,i=t.indexOf(e(490));let s;if(i<0)s=t;else{const n=t[e(502)]("/",i+3);s=n>=0?t[e(509)](n):"/"}const n=s[e(502)]("?");if(n>=0)return s[e(509)](0,n);const r=s[e(502)]("#");return r>=0?s.substring(0,r):s}function He(t){const e=t[Ge(497)]("/");return e>=0?t.substring(0,e+1):""}function Ge(t,e){return t-=490,Xe()[t]}function je(t){const e=Ge,i=t.lastIndexOf("/");return i>=0?[t.substring(0,i+1),t[e(509)](i+1)]:["",t]}function We(t,e){const i=Ge;if(e.startsWith(i(508))||e[i(492)](i(495)))return Fe(e);if(e.startsWith("/"))return ze(e);const s=He(Fe(t));if(e[i(502)]("..")>=0)try{return Fe(new URL(e,t)[i(498)]())}catch(t){return s+e}return s+ze(e)}function Xe(){const t=["165333hyPFba","6376JnzNVG","44jVjhxB","11huDWnJ","30Wbsatl","http://","substring","://","2154785FyWfhY","startsWith","1346715jPYRZJ","69837nmlROe","https://","4351184rkwxdt","lastIndexOf","toString","12tlQGPC","89kfXxpt","4324884qrWajc","indexOf"];return(Xe=function(){return t})()}function ze(t){const e=Ge,i=t.indexOf("?");if(i>=0)return t[e(509)](0,i);const s=t[e(502)]("#");return s>=0?t.substring(0,s):t}function Ke(t,e){return t-=232,Ye()[t]}!function(t){const e=Ge,i=t();for(;;)try{if(291124==-parseInt(e(500))/1*(-parseInt(e(504))/2)+parseInt(e(494))/3*(parseInt(e(505))/4)+parseInt(e(491))/5+parseInt(e(499))/6*(-parseInt(e(503))/7)+-parseInt(e(496))/8+parseInt(e(493))/9*(-parseInt(e(507))/10)+parseInt(e(506))/11*(parseInt(e(501))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Xe);const Je=Ke;!function(t){const e=Ke,i=t();for(;;)try{if(995314==-parseInt(e(240))/1+parseInt(e(246))/2+parseInt(e(251))/3*(-parseInt(e(256))/4)+parseInt(e(241))/5+parseInt(e(244))/6+-parseInt(e(260))/7*(-parseInt(e(263))/8)+parseInt(e(262))/9*(-parseInt(e(239))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ye);class $e{constructor(){const t=Ke;this.masterUri="",this.renditions=new Map,this[t(245)]=new Map,this.route="",this[t(253)]="",this.bandwidths=[],this[t(234)]=0,this.lastCleanPos=0,this[t(249)]=!1}clean(){const t=Ke;this[t(249)]||this.pos-this[t(259)]>1e5&&(this[t(249)]=!0,this.delete(this[t(259)],this[t(259)]+5e3),this[t(259)]=this[t(259)]+5e3,this[t(249)]=!1)}addSegment(t,e,i){const s=Ke;var n;this.pos++,null===(n=this.renditions.get(t))||void 0===n||n[s(247)](e,i,this[s(234)]),this[s(245)][s(264)](Fe(e),t),this[s(245)][s(264)](Fe(i),t)}getSize(){const t=Ke;let e=0;for(let i of this[t(252)][t(242)]())e+=i[t(236)]();return e}[Je(243)](t,e){const i=Je;for(let s of this[i(252)].values())for(let[n,r]of s.getSegments())r.pos>=t&&r[i(234)]<=e&&s[i(254)]()[i(243)](n)}addRendition(t,e){const i=Je;this[i(252)][i(264)](t,e),this[i(235)]()}getRenditions(){return this[Je(252)]}[Je(233)](){let t=new Map;return this.renditions.forEach(function(e,i){e.isAudio||t.set(i,e)}),t}getRendition(t){const e=Je,i=this[e(245)][e(257)](Fe(t));if(i)return this.renditions[e(257)](i);let s;return this.renditions[e(258)](function(i){const n=e;i[n(254)]()[n(258)](function(e){const r=n;
2t[r(237)](e[r(232)])&&(s=i)})}),s}[Je(265)](t){const e=Je;return this[e(252)][e(257)](t)}updateAvailableBandwidths(){const t=Je;let e=new Array;this[t(252)][t(258)](function(t){t.isAudio||e.push(Number(t.bandwidth))}),e[t(248)](function(t,e){return t-e}),this.bandwidths=e,this.renditions[t(258)](e=>{const i=t;!e.isAudio&&(e[i(261)]=this[i(250)](e.bandwidth),e[i(261)]+1==this[i(238)][i(255)]&&(e.isMaxRendition=!0))})}getBandwidthsPos(t){const e=Je;let i=0,s=-1;return this[e(238)][e(258)](function(e){t==e&&(s=i),i++}),s}}function Ye(){const t=["1894348OsmoQk","9057140xnZZAh","values","delete","3622104XxFyaw","renditionBySegmentPath","1498182lKlugC","addSegment","sort","cleaning","getBandwidthsPos","150DNcmbu","renditions","fileName","getSegments","length","59680pqTzOI","get","forEach","lastCleanPos","15988pEVrLA","bandwidthPosition","155853DJcUqv","1712MgNmYD","set","getRenditionByKey","uri","getVideoRenditions","pos","updateAvailableBandwidths","getSegmentsSize","endsWith","bandwidths","10VfABVa"];return(Ye=function(){return t})()}function Qe(t,e){return t-=186,ti()[t]}const Ze=Qe;!function(t){const e=Qe,i=t();for(;;)try{if(892220==-parseInt(e(189))/1*(-parseInt(e(274))/2)+-parseInt(e(209))/3*(-parseInt(e(275))/4)+-parseInt(e(279))/5+parseInt(e(235))/6*(parseInt(e(237))/7)+-parseInt(e(247))/8*(-parseInt(e(191))/9)+parseInt(e(213))/10+-parseInt(e(190))/11*(parseInt(e(208))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ti);function ti(){const t=["_jwtToken","Removing ","36488adaJse","value","Origin","onSucessfullApiResponse","https://","GET","Empty response received from Balancer API","Using development environment -> ","setSettings","send","formatParameters","DECISION_FINISHED","unregisterCommonVariable"," + (host: ","options","getInstance","registerCommonVariable","destroy","setActiveSwitchingOnLegacy","Not performing decision since time between requests has not passed yet.","lastIndexOf","apply","activeSwitching","getIsEnabled","forEach","pathname","replace","2TfnNEP","267452bVGljq","_jwtAuthType","verbose","createUpdateTimer","7238390vfIZAH"," for /decision requests","__awaiter","throw","open","P2PLoader","decision","LAST_USED_CDN","host","decisionReloadIntervalPerManifestMilliseconds","API call failed due to a network error.","CDNLoader","size","680111kaHDQV","22brAIVW","2403aUdvvn","Storing ","Using ","enabled","route","Authorization","Creating setTimeout for decision request with resource ","_updateTimer","startMonitoring","get","storage","includes","_manifestMap","BUCKET","profile","isUsingLegacy","cdnPriority","8099484xEfkZY","3SaVNpG","true","now","getCdnList","2635510oVqOPW","deleteOldestFromManifestMap","BALANCER","debug","has","delete","string","status","onFailedApiResponse","performHashmapCleanup","readyState","Error parsing Balancer API response: ","parse","PROFILE_NAME","Performing decision request with URL ","stringify","trim","AS_ENABLED","setRequestHeader","next","disable"," in manifest hashmap","8769000hqxhXo","Products","7QSZknq","response","isValidUrl","BalancerVariables","getRouteAndFilename","_loader","gotEmptyResponse","slice"];return(ti=function(){return t})()}class ei{constructor(t,e,i){const s=Ze;this[s(203)]=new Map,this[s(198)]=null,this[s(242)]=t,this[s(276)]=e,this[s(245)]=i}loadBalancerData(t,n,r,o,a,d,h,l,u,p,f,g,m){return y=this,S=void 0,b=function*(){const y=Qe;if(!this[y(242)][y(270)]())return void e.default[y(262)]()[y(263)](Ee.default[y(236)][y(215)],Ee.default.BalancerVariables[y(258)],!0);if(!this.shouldPerformDecision(n))return i.default[y(216)](s.BalancerTag,y(266)),void this[y(278)](t,n,r,o,null!=a&&a,null!=d&&d,l,u,p,f,g);const S=Date[y(211)](),_=q[y(239)](n)?this[y(241)](n):{route:"",fileName:""};i.default[y(277)](s.BalancerTag,y(254)+d);let b=d?c.devHost:c[y(287)];b=p||b,i.default.debug(s.BalancerTag,y(193)+b+y(280));const T=new XMLHttpRequest;let w=b+"/"+t+"/"+(l?l+"/":"")+y(285);w=w[y(273)]("//","/"),w=y(251)+w;const E={resource:""+_[y(195)]+_.fileName,live:""+r,extended:y(210),npawPluginInfo:"true",originCode:null!=u?u:"",v:e.default.getPluginVersion().split("-js")[0],dynamicRules:null!=f?f:"",deviceInfo:null!=g?g:"",authData:m?JSON[y(228)](m):""},A=this;yield new Promise((t,r)=>{const o=y;T.onload=function(){const r=Qe;var o,a;if(4===T[r(223)]){if(T.status>0&&(10===A._manifestMap.size&&!A[r(203)].has(n)&&A[r(214)](),A[r(222)](),A[r(203)].set(n,Date[r(211)]()),i.default[r(277)](s.BalancerTag,r(192)+n+r(234))),T[r(220)]>=200&&T[r(220)]<=300){const t=Date[r(211)]()-S;A[r(242)].CDNLoader[r(250)](t);try{if(T[r(238)]){A[r(261)]=JSON[r(225)](T[r(238)]);const t=typeof(null===(o=A[r(261)])||void 0===o?void 0:o[r(205)])===r(219)?A.options[r(205)][r(229)]():"",i=typeof l===r(219)?l[r(229)]():"",s=t||i||void 0;
2s?e.default[r(262)]().registerCommonVariable(Ee.default[r(236)][r(215)],Ee.default[r(240)].PROFILE_NAME,s):e.default.getInstance().unregisterCommonVariable(Ee.default.Products.BALANCER,Ee.default.BalancerVariables[r(226)]),e.default.getInstance()[r(263)](Ee.default[r(236)][r(215)],Ee.default.BalancerVariables.BUCKET,u),A[r(242)][r(201)][r(255)](A[r(261)]),A[r(242)][r(284)]&&(A[r(242)][r(284)][r(255)](A[r(261)]),A[r(242)][r(284)][r(199)]()),A[r(242)][r(187)][r(255)](A[r(261)],_.route),A[r(242)][r(187)].startMonitoring();const n=[v[r(207)],v.qualityPriority][r(202)](A[r(261)][r(269)])&&(A[r(242)][r(187)][r(212)]()[r(188)]>0||!0===(null===(a=A[r(261)].p2p)||void 0===a?void 0:a[r(194)]));e.default.getInstance()[r(206)]()?e.default[r(262)]()[r(265)](n):e.default.getInstance()[r(263)](Ee.default[r(236)][r(215)],Ee.default[r(240)][r(230)],n)}else i.default[r(216)](s.BalancerTag,r(253)),A._loader[r(284)][r(233)](),A[r(242)][r(187)][r(243)](),e.default[r(262)]()[r(263)](Ee.default[r(236)][r(215)],Ee.default[r(240)][r(286)],r(249))}catch(t){i.default[r(216)](s.BalancerTag,r(224),t)}}else JSON[r(225)](T.response),e.default.getInstance()[r(263)](Ee.default[r(236)].BALANCER,Ee.default.BalancerVariables[r(286)],r(249)),i.default[r(216)](s.BalancerTag,"API call failed with status code "+T[r(220)]),A[r(242)].CDNLoader[r(221)]();e.default[r(262)]()[r(263)](Ee.default[r(236)][r(215)],Ee.default[r(240)][r(258)],!0)}t()},T.onerror=function(){const e=Qe;A._loader[e(187)][e(221)](),i.default[e(216)](s.BalancerTag,e(186)),t()},h?T[o(283)](o(252),w+q[o(257)](E),!1):T.open(o(252),w+q[o(257)](E)),e.default.getInstance()[o(263)](Ee.default.Products[o(215)],Ee.default[o(240)][o(258)],!1),e.default[o(262)]()[o(259)](Ee.default[o(236)][o(215)],Ee.default[o(240)][o(204)]),e.default[o(262)]()[o(259)](Ee.default.Products[o(215)],Ee.default[o(240)].AS_ENABLED),i.default.verbose(s.BalancerTag,o(227)+w+q[o(257)](E)+o(260)+b+")"),A[o(245)]&&T[o(231)](o(196),A._jwtAuthType+" "+A[o(245)]),T[o(256)]()}),this[y(278)](t,n,r,o,null!=a&&a,null!=d&&d,l,u,p,f,g,m)},new((_=void 0)||(_=Promise))(function(t,e){const i=Qe;function s(t){const i=Qe;try{r(b[i(232)](t))}catch(t){e(t)}}function n(t){const i=Qe;try{r(b[i(282)](t))}catch(t){e(t)}}function r(e){const i=Qe;var r;e.done?t(e[i(248)]):(r=e[i(248)],r instanceof _?r:new _(function(t){t(r)})).then(s,n)}r((b=b[i(268)](y,S||[]))[i(232)]())});var y,S,_,b}
2[Ze(264)](){const t=Ze;this._updateTimer&&(clearTimeout(this[t(198)]),this[t(198)]=null)}[Ze(278)](t,e,n,r,o,a,c,d,h,l,u,p){const f=Ze;this._updateTimer&&(clearTimeout(this[f(198)]),this[f(198)]=null),r>0&&(i.default[f(277)](s.BalancerTag,f(197)+e),this._updateTimer=setTimeout(()=>{var i;this.loadBalancerData(t,e,n,r,o,a,null!==(i=this.options.signManifestUsingApi)&&void 0!==i&&i,c,d,h,l,u,p)},1e3*r))}[Ze(241)](t){const e=Ze,i=new URL(t),s=i.origin+i[e(272)],n=s[e(267)]("/")+1;return{route:s[e(244)](0,n),fileName:s[e(244)](n)}}shouldPerformDecision(t){const e=Ze;var i;if(!this[e(203)][e(217)](t))return!0;{const s=null!==(i=this._manifestMap[e(200)](t))&&void 0!==i?i:Date[e(211)]();if(Date[e(211)]()-s>c.decisionReloadIntervalPerManifestMilliseconds)return!0}return!1}[Ze(222)](){const t=Ze;this[t(203)][t(271)]((e,n)=>{const r=t;Date[r(211)]()-e>c[r(288)]&&(i.default.verbose(s.BalancerTag,r(246)+n+" from manifest hashmap since older than "+c[r(288)]+"ms"),this[r(203)][r(218)](n))})}[Ze(214)](){const t=Ze;let e,i=1/0;this[t(203)][t(271)]((t,s)=>{t<i&&(i=t,e=s)}),void 0!==e&&this._manifestMap[t(218)](e)}}const ii=ni;function si(){const t=["then","__awaiter","763874GDdrnT","10crOleD","next","251744mZnxcV","value","now","2KvibZN","throw","3531528nOcuri","size","limit","apply","3244530kAVkCv","downloadTimeMs","bandwidth","791181dzMwiz","progressDownloadedBytesLastUpdate","done","startTime","7onqfNj","delay","14650922kJhFIG","endTime","1178164MxmJyd","15eopMIM"];return(si=function(){return t})()}function ni(t,e){return t-=390,si()[t]}!function(t){const e=ni,i=t();for(;;)try{if(759153==parseInt(e(411))/1*(parseInt(e(390))/2)+parseInt(e(399))/3+parseInt(e(407))/4*(parseInt(e(408))/5)+parseInt(e(396))/6+parseInt(e(403))/7*(parseInt(e(414))/8)+-parseInt(e(392))/9+-parseInt(e(412))/10*(parseInt(e(405))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(si);class ri{[ii(394)](t,e){return i=this,s=void 0,r=function*(){const i=ni;let s=e[i(393)]/(e[i(397)]/1e3)*8;if(0!=t&&s>t){let s=1e3*e[i(393)]*8/t,n=(Date.now(),e[i(402)],s-e[i(397)]);n>0&&(yield q[i(404)](n)),e[i(406)]=Date[i(416)](),e[i(397)]=e.endTime-e[i(402)],e[i(398)]=e.size/(e[i(397)]/1e3),e.instantBandwidth=0,e[i(400)]=e[i(406)]}},new((n=void 0)||(n=Promise))(function(t,e){const o=ni;function a(t){try{d(r.next(t))}catch(t){e(t)}}function c(t){const i=ni;try{d(r[i(391)](t))}catch(t){e(t)}}function d(e){const i=ni;var s;e[i(401)]?t(e[i(415)]):(s=e.value,s instanceof n?s:new n(function(t){t(s)}))[i(409)](a,c)}d((r=r[o(395)](i,s||[]))[o(413)]())});var i,s,n,r}}function oi(t,e){return t-=382,ci()[t]}!function(t){for(var e=oi,i=t();;)try{if(827495==-parseInt(e(405))/1*(-parseInt(e(384))/2)+parseInt(e(402))/3+parseInt(e(426))/4+parseInt(e(399))/5+parseInt(e(397))/6*(parseInt(e(395))/7)+-parseInt(e(403))/8*(-parseInt(e(431))/9)+-parseInt(e(386))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ci);class ai{constructor(t,e,i,s,n,r,o,a,c,d,h,l,u,p,f,g,m,v,y,S,_,b,T,w,E,A,I,R,P,D,C,N,L,B,k,x,M,O,U,q,V,F,H,G,j,W,X,z,K,J,$,Y,Q,Z,tt,et,it,st,nt,rt){var ot=oi;this[ot(382)]=t,this.internal_provider=e,this[ot(407)]=i,this.downloaded_bytes=n,this[ot(393)]=r,this[ot(434)]=S,this[ot(415)]=_,this[ot(419)]=b,this[ot(406)]=T,this.response_time=w,this[ot(435)]=E,this[ot(389)]=A,this[ot(411)]=I,this[ot(436)]=R,this[ot(423)]=P,this[ot(400)]=D,this.network_latency_samples=C,this[ot(383)]=N,this[ot(424)]=L,this[ot(408)]=B,this[ot(412)]=k,this[ot(425)]=o,this[ot(392)]=x,this.http_2XX=M,this.http_3XX=O,this[ot(390)]=U,this.http_5XX=q,this[ot(394)]=V,this[ot(427)]=F,this.compressed_video_bytes=G,this[ot(417)]=H,this[ot(398)]=j,this[ot(391)]=W,this[ot(433)]=X,this[ot(429)]=z,this[ot(418)]=a,this[ot(404)]=c,this[ot(396)]=d,this[ot(388)]=J,this.unbanned=$,this[ot(414)]=h,this[ot(413)]=l,this.max_ping_time=u,this[ot(422)]=K,this[ot(430)]=s,this.resource=p,this[ot(410)]=w,this[ot(428)]=f,this.cache_miss_chunks=g,this[ot(432)]=m,this[ot(385)]=v,this.video_time=y,this[ot(421)]=Y,this.internal_banned=Q,this.internal_unbanned=Z,this[ot(387)]=tt,this[ot(401)]=et,this[ot(409)]=it,this[ot(420)]=st,this.internal_banned_time=nt,this[ot(416)]=rt}}function ci(){var t=["internal_switches","banned","max_response_time","http_4XX","switches_due_connectivity","http_1XX","downloaded_chunks","unbanned_time","95928oReLOY","min_bandwidth","300ZHCLNm","switches","52280dgibde","max_network_latency","internal_switches_due_quality","3611406cidhRK","8518336CANWrH","max_bandwidth","763ssCXft","response_bytes_samples","is_p2p","max_throughput","internal_switches_due_connectivity","response_time","response_time_samples","throughput_samples","min_ping_time","avg_ping_time","min_response_bytes","internal_unbanned_time","uncompressed_video_bytes","time","max_response_bytes","internal_switches_due_errors","internal_is_banned","is_banned","min_network_latency","min_throughput","errors","6540708bLOzbh","banned_time","cache_hit_chunks","switches_due_quality","is_active","9dOxTaq","video_downloaded_bytes","switches_due_errors","response_bytes","min_response_time","network_latency","provider","throughput","3806vBYVFi","video_downloaded_chunks","52239210kMmJWX"];return(ci=function(){return t})()}function di(t,e){return t-=100,hi()[t]}function hi(){var t=["max_ping_time","peers_used","4BHYukS","time","upload_time","3707304HMarai","late_downloaded_bytes","other_errors","late_uploaded_chunks","9yioWSv","min_throughput","592038lkwYmz","peer_connection_time","video_downloaded_chunks","peers","max_response_time","downloaded_chunks","505635iOSxNq","2vxutWh","max_response_bytes","session_downloaded_bytes","peer_discovery_time","max_peers_parallel_used","peers_available","session_max_active_peers","response_bytes_samples","internal_provider","resource","video_downloaded_bytes","min_network_latency","avg_ping_time","uploaded_chunks","1047152dWHcyo","max_bandwidth","7JCzHMu","session_uploaded_bytes","8390GtRtSA","uploaded_bytes","switches","peers_parallel_used","network_latency","response_time_samples","921606oFAWXs","provider","min_peers_parallel_used","max_network_latency","max_throughput","switches_due_connectivity","session_uploaded_chunks","active_peers","errors","1463VUmoyq","late_uploaded_bytes","video_time","min_ping_time","missed_downloaded_chunks","64738OkdbUr"];
2return(hi=function(){return t})()}!function(t){for(var e=di,i=t();;)try{if(173549==-parseInt(e(130))/1*(parseInt(e(149))/2)+parseInt(e(116))/3+-parseInt(e(133))/4*(parseInt(e(148))/5)+-parseInt(e(142))/6*(-parseInt(e(108))/7)+parseInt(e(106))/8*(parseInt(e(140))/9)+parseInt(e(110))/10*(parseInt(e(125))/11)+-parseInt(e(136))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(hi);class li{constructor(t,e,i,s,n,r,o,a,c,d,h,l,u,p,f,g,m,v,y,S,_,b,T,w,E,A,I,R,P,D,C,N,L,B,k,x,M,O,U,q,V,F,H,G,j,W,X,z,K,J,$,Y,Q,Z,tt,et,it,st,nt,rt,ot){var at=di;this[at(117)]=t,this[at(100)]=e,this.is_p2p=i,this.downloaded_bytes=s,this[at(147)]=n,this[at(124)]=r,this[at(134)]=o,this[at(107)]=a,this.min_bandwidth=c,this[at(104)]=d,this[at(128)]=h,this[at(131)]=l,this[at(101)]=u,this[at(102)]=p,this[at(144)]=f,this[at(127)]=g,this[at(111)]=m,this[at(105)]=v,this[at(135)]=y,this[at(139)]=S,this[at(126)]=_,this[at(137)]=b,this[at(129)]=T,this.timeout_errors=w,this[at(138)]=E,this[at(123)]=A,this[at(145)]=I,this.response_bytes=R,this.min_response_bytes=P,this[at(150)]=D,this[at(156)]=C,this.response_time=N,this.min_response_time=L,this[at(146)]=B,this[at(115)]=k,this[at(114)]=x,this[at(103)]=M,this[at(119)]=O,this.network_latency_samples=U,this.throughput=q,this[at(141)]=V,this[at(120)]=F,this.throughput_samples=H,this[at(154)]=G,this.max_peers_available=j,this.min_peers_available=W,this[at(132)]=X,this[at(113)]=z,this[at(153)]=K,this[at(118)]=J,this[at(152)]=$,this[at(143)]=Y,this[at(151)]=Q,this[at(109)]=Z,this.session_downloaded_chunks=tt,this[at(122)]=et,this[at(155)]=it,this[at(112)]=st,this.switches_due_quality=nt,this[at(121)]=rt,this.switches_due_errors=ot}}function ui(t,e){return t-=481,pi()[t]}function pi(){var t=["649698kQooak","videoId","priorityCdn","activeSwitchingPriority","1084498irOIXl","3552728tlncOP","4342290iyEpcz","apiCallsAvgResponseTime","1917428JXnETn","6UBduvL","announcedCdns","610062fSKoyF","bolinaAvailable","forceDecision","bucket","apiCallResponses","16156392fyGHkx","apiCallsMaxResponseTime","apiCallsMinResponseTime","isLive"];return(pi=function(){return t})()}!function(t){for(var e=ui,i=t();;)try{if(922706==parseInt(e(483))/1+parseInt(e(487))/2+-parseInt(e(488))/3*(-parseInt(e(484))/4)+-parseInt(e(485))/5+-parseInt(e(490))/6+parseInt(e(499))/7+-parseInt(e(495))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pi);class fi{constructor(t,e,i,s,n,r,o,a,c,d,h,l,u,p,f,g){var m=ui;this.apiCallErrors=t,this[m(494)]=e,this[m(497)]=i,this[m(486)]=s,this[m(496)]=n,this[m(493)]=r,this[m(498)]=o,this[m(500)]=a,this[m(492)]=c,this.requestPlatform=d,this.p2pAvailable=h,this[m(491)]=l,this[m(482)]=u,this[m(481)]=p,this.chunkDuration=f,this[m(489)]=g}}const gi=mi;!function(t){const e=mi,i=t();for(;;)try{if(155445==parseInt(e(525))/1+-parseInt(e(526))/2*(parseInt(e(594))/3)+-parseInt(e(615))/4*(-parseInt(e(733))/5)+-parseInt(e(738))/6*(parseInt(e(674))/7)+-parseInt(e(627))/8*(-parseInt(e(709))/9)+-parseInt(e(749))/10*(parseInt(e(750))/11)+parseInt(e(667))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(vi);function mi(t,e){return t-=499,vi()[t]}function vi(){const t=["otherErrors","lastReportedCodavelSwitches","throughputSamples","get","split","profileName","getFastDataSessionToken","requestPlatform","lateDownloadedBytes","codavelSwitchesDueToErrors","3DhzEAO","lastP2pStats","updateCodavelBanTimes","priorityCdn","uploadedBytes","downloadChunksVideo","compressedBytes","banned","http_5XX","samplesNetworkLatency","takeMin","apiCallsAvgResponseTime","pushPeriodicDataFromCallback","lowestPingTime","announcedCdns","report","BALANCER_BITRATE","isCodavel","downloadedBytesVideo","absent","-js","524NsiIiY","isUsingLegacy","codavelSwitchesDueToQuality","min_throughput","getInstance","http2xx","downloaded_bytes","http3xxResponses","lastReportedCodavelSwitchesDueToConnectivity","max_response_bytes","videoTime","resource","346984smatbG","cacheHit","activePeers","next","forceDecision","codavelAllBanned","sumVideoBytes","unbannedCount","maxBandwidth","getTime","unBannedCount","then","sumVideoTime","http5xx","startsWith","getPingTime","undefined","getCdnCacheMisses","http2xxResponses","maxPeersParallelUsed","downloadedChunksVideo","bolinaAvailable","error","getViewCode","registerCommonVariable","sessionUploadedChunks","minApiCallResponseTime","P2PLoader","maxApiCallResponseTime","totalFail","minResponseBytes","getFastDataService","max_throughput","offline","maxResponseBytes","activeSwitchingPriority","hasValuesChanged","response_bytes","name","BalancerPing: ","2613672btBgCV","millis","minPeersAvailable","getCdnCacheHits","timeoutErrors","snapshotEmaRatio","downloadedChunks","17178kECZaz","bannedTime","lastReportedCodavelSwitchesDueToErrors","total","lateUploadedChunks","reportRequest","trunc","_instance","getCommonVariable","getSegmentDuration","http5xxResponses","sumThroughput","uncompressedBytes","peersParallelUsed","CDNLoader","sessionDownloadedBytes","getSessionMs","http_2XX","lastCdnStats","__awaiter","avgPingTime","http4xxResponses","sort","resetOnPing","isLive","apiCallResponses","discardedUploadedBytes","lateUploadedBytes","Consumer","maxPingTime","getIsLive","codavelSwitches","chunkDuration","codavelSwitchesDueToConnectivity","sessionDownloadedChunks","9EKzOin","downloadBytesVideo","bucket","lastReportedCodavelSwitchesDueToQuality","getPluginVersion","takeIf","timeout","Plugin","C
2DN","sessionUploadedBytes","toFixed","size","lastReportedCodavelUnbanTime","downloadedBytes","discardedUploadedChunks","min_response_bytes","lastReportedCodavelBanTime","getStats","codavelUnbanCount","maxPeersAvailable","codavelBanTime","lowestSegmentBandwidth","peerDiscoveryTime","processedApiCall","8570TDQFbr","switchesDueToErrors","takeMax","peerConnectionTime","peersUsed","114iKqQLq","sumNetworkLatency","clone","minResponseTime","totalPeers","isEnabled","concurrencyEma","stopped","throughput_samples","ORIGIN","switches","30fxvCpc","330143WZhOPu","downloaded_chunks","responseBytesSamples","updateAvailability","MAX_SAFE_INTEGER","maxResponseTime","http1xx","BLACKLIST","http4xx","sumResponseBytes","missedDownloadedChunks","active","unbannedTime","]: last5s=","uploadedChunks","minPeersParallelUsed","GET","failedRequests","min_response_time","cdnStatsHasData","p2pAvailable","minPingTime","errors","time","max_response_time","updateData","throughput","consumeSyntheticCdnCounts","loader","responseTimeSamples","avgApiCallResponseTime","downloadedSegments","cacheMiss","set",", sessionMs=","downloadMillisVideo","BalancerVariables","verbose","25504ykkqmm","438214lYNurT","VIDEO_ANALYTICS","BALANCER_TRAFFIC","internal_provider","apiCallErrors","minNetworkLatency","length","forEach","provider","switchesDueToQuality","discardedDownloadedBytes","response_time_samples","switchesDueToConnectivity","started","BYPASS","keys","highestSegmentBandwidth","lastReportedCodavelUnbanCount","getCdnList","BALANCER","maxThroughput","max","minBandwidth","highestPingTime","samplesThroughput","stringify","P2P","getReportInterval","Products","uploadedTime","http1xxResponses","value","totalFailures","samplesResponseBytes","bannedCount","done","http_1XX","token","http_3XX","codavelUnbanTime","codavelBanCount","getBucket","syntheticToJson","some","sumResponseTime","downloadMillis","apply","peersAvailable","lastReportedCodavelBanCount",", ema60s=","from","samplesResponseTime","http_4XX","minThroughput","http3xx","videoId","maxNetworkLatency","host"];return(vi=function(){return t})()}function yi(t){const e=gi;return"{"+Array[e(576)](t[e(541)]())[e(696)]((t,e)=>t-e).map(i=>"L"+i+"="+(t[e(587)](i)||0)[e(719)](3)).join(", ")+"}"}class Si{static[gi(619)](t){const e=gi;return null==this[e(681)]&&null!=t?this[e(681)]=new Si(t):null!=t&&null!=this._instance&&(null==t?void 0:t.uuid)!=this[e(681)][e(515)].uuid&&(this[e(681)][e(609)](),this[e(681)]=new Si(t)),this._instance}constructor(t){const e=gi;this[e(539)]=!1,this[e(745)]=!1,this[e(692)]=new Map,this[e(595)]=new Map,this.host="",this[e(563)]="",this.accountCode="",this[e(589)]="",this.resource="",this[e(725)]=void 0,this[e(721)]=void 0,this.lastReportedCodavelBanCount=void 0,this.lastReportedCodavelUnbanCount=void 0,this[e(585)]=void 0,this[e(712)]=void 0,this[e(676)]=void 0,this[e(623)]=void 0,this[e(515)]=t}[gi(512)](t,i,n,o,a){var c,d,h,l,u;return d=this,h=void 0,u=function*(){const d=mi;if(this[d(583)]=t,this[d(563)]=i,this.accountCode=n,this[d(589)]=null!=o?o:"",this[d(626)]=a,!(e.default[d(619)]().isUsingLegacy()&&this[d(563)][d(641)](d(643))||this[d(539)])){const t=r[d(717)];e.default[d(619)]()[d(606)](e.default[d(619)]().getOptions()[d(660)]?Ee.default[d(702)].BLACK_HOLE:Ee.default[d(702)].NQS,t,t,1e3*this[d(515)][d(553)](),null!==(c=e.default.getInstance()[d(682)](Ee.default[d(554)][d(527)],Ee.default.AnalyticsVariables.METHOD_OPTION))&&void 0!==c?c:s.Method[d(503)],()=>{const t=d;if(e.default.getInstance().wasStartSent())return Si[t(619)]()[t(609)]()},()=>{}),this.started=!0}},new((l=void 0)||(l=Promise))(function(t,e){function i(t){const i=mi;try{n(u[i(630)](t))}catch(t){e(t)}}function s(t){try{n(u.throw(t))}catch(t){e(t)}}function n(e){const n=mi;var r;e[n(561)]?t(e[n(557)]):(r=e.value,r instanceof l?r:new l(function(t){t(r)}))[n(638)](i,s)}n((u=u[mi(572)](d,h||[])).next())})}[gi(609)](){const t=gi;var n,r,o,a;try{if(!this[t(745)]){const c=this.loader[t(688)][t(544)](),d=new Map,h=new Map(c);let l=0,u=0;this[t(515)][t(688)][t(596)](),this[t(515)][t(654)].updatePeerMetrics();let p=!1;if(h[t(533)](e=>{const i=t;e[i(753)]();const s=e[i(740)](),n=this[i(692)][i(587)](e.name);l+=s[i(633)]||0,u+=s.sumVideoTime||0;const r={downloadedBytesVideo:s[i(612)],downloadedChunksVideo:s[i(647)],videoTime:s.downloadMillisVideo,downloadedBytes:s.downloadedBytes,downloadedChunks:s[i(673)],sumResponseBytes:s[i(759)],minResponseBytes:s.minResponseBytes,maxResponseBytes:s[i(661)],samplesResponseBytes:s[i(559)],sumResponseTime:s[i(570)],minResponseTime:s[i(741)],maxResponseTime:s[i(755)],samplesResponseTime:s[i(577)],sumNetworkLatency:s.sumNetworkLatency,minNetworkLatency:s[i(531)],maxNetworkLatency:s[i(582)],samplesNetworkLatency:s[i(603)],sumThroughput:s[i(685)],minThroughput:s[i(579)],maxThroughput:s[i(546)],samplesThroughput:s[i(550)],totalFailures:s[i(656)],http_1XX:s.http1xxResponses,http_2XX:s[i(645)],http_3XX:s.http3xxResponses,http_4XX:s[i(695)],http_5XX:s[i(684)],unbannedTime:s[i(499)],bannedTime:s[i(675)],compressedBytes:s[i(600)],uncompressedBytes:s[i(686)],switches:s[i(748)],switchesDueToConnectivity:s[i(538)],switchesDueToErrors:s[i(734)],switchesDueToQuality:s[i(535)],millis:s[i(571)],bannedCount:s[i(560)],unbannedCount:s[i(637)],avgPingTime:s[i(694)],minPingTime:s[i(607)]===Number.MAX_SAFE_INTEGER?0:s.lowestPingTime,maxPingTime:s.highestPingTime,cacheHit:s[i(670)](),cacheMiss:s[i(644)](),minBandwidth:s[i(730)]===Number[i(
2754)]?0:s[i(730)],maxBandwidth:s[i(542)]};n&&(r[i(612)]-=n[i(612)],r.downloadedChunksVideo-=n.downloadedChunksVideo,r.videoTime-=n[i(522)],r[i(722)]-=n[i(722)],r.downloadedChunks-=n[i(673)],r[i(558)]-=n[i(656)],null!=r.http_1XX&&null!=n[i(556)]&&(r[i(562)]-=n[i(556)]),null!=r[i(691)]&&null!=n[i(645)]&&(r[i(691)]-=n[i(645)]),null!=r.http_3XX&&null!=n.http3xxResponses&&(r[i(564)]-=n[i(622)]),null!=r[i(578)]&&null!=n[i(695)]&&(r[i(578)]-=n[i(695)]),null!=r.http_5XX&&null!=n.http5xxResponses&&(r[i(602)]-=n[i(684)]),null!=r[i(600)]&&null!=n.compressedBytes&&(r[i(600)]-=n.compressedBytes),null!=r[i(686)]&&null!=n[i(686)]&&(r[i(686)]-=n[i(686)]),null!=r[i(748)]&&null!=n[i(748)]&&(r.switches-=n[i(748)]),null!=r[i(538)]&&null!=n[i(538)]&&(r[i(538)]-=n[i(538)]),null!=r[i(734)]&&null!=n[i(734)]&&(r[i(734)]-=n.switchesDueToErrors),null!=r.switchesDueToQuality&&null!=n[i(535)]&&(r.switchesDueToQuality-=n[i(535)]),r[i(668)]=Math[i(547)](0,r.millis-n[i(571)]),r.bannedCount=Math[i(547)](0,r[i(560)]-n[i(560)]),r[i(634)]=Math[i(547)](0,r[i(634)]-n.unBannedCount),r[i(694)]=Math[i(547)](0,r[i(694)]-n[i(694)]),0!==r.minPingTime&&(r.minPingTime=Math.max(0,r[i(508)]-n[i(607)])),0!==r.maxPingTime&&(r[i(703)]=Math[i(547)](0,r[i(703)]-n[i(549)])),r[i(628)]=Math[i(547)](0,r[i(628)]-n.getCdnCacheHits()),r[i(519)]=Math[i(547)](0,r[i(519)]-n[i(644)]()),0!==r[i(548)]&&(r[i(548)]=Math.max(0,r[i(548)]-n[i(730)])),0!==r[i(635)]&&(r.maxBandwidth=Math[i(547)](0,r[i(635)]-n[i(542)])));const o=e[i(611)]()?"CODAVEL":e[i(534)];if(this[i(506)](r))if(e[i(611)]())if(p){const t=new ai(o,e[i(529)],!1,e[i(761)],this.takeIf(r.downloadedBytes,t=>0!=t),this.takeIf(r.downloadedChunks,t=>0!=t),this[i(714)](r[i(558)],t=>0!=t),this[i(714)](r[i(668)],t=>0!=t),this[i(714)](r.maxBandwidth,t=>0!=t),this.takeIf(r[i(548)],t=>0!=t),this[i(714)](r[i(694)],t=>0!=t),this[i(714)](r.minPingTime,t=>0!=t),this[i(714)](r[i(703)],t=>0!=t),this[i(626)],this[i(714)](r[i(628)],t=>0!=t),this[i(714)](r.cacheMiss,t=>0!=t),this[i(714)](r.downloadedBytesVideo,t=>0!=t),this[i(714)](r[i(647)],t=>0!=t),this.takeIf(r[i(625)],t=>0!=t),r[i(759)],this[i(604)](r.minResponseBytes),this.takeMax(r[i(661)]),r[i(559)],r[i(570)],this.takeMin(r[i(741)]),this[i(735)](r.maxResponseTime),r[i(577)],r[i(739)],this[i(604)](r[i(531)]),this[i(735)](r.maxNetworkLatency),r[i(603)],r[i(685)],this[i(604)](r[i(579)]),this[i(735)](r[i(546)]),r[i(550)],this.takeIf(r[i(562)],t=>0!=t),this[i(714)](r[i(691)],t=>0!=t),this[i(714)](r[i(564)],t=>0!=t),this[i(714)](r.http_4XX,t=>0!=t),this[i(714)](r[i(602)],t=>0!=t),void 0,void 0,this.takeIf(r[i(686)],t=>0!=t),this[i(714)](r[i(600)],t=>0!=t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,e[i(601)],this[i(714)](r[i(560)],t=>0!=t),this[i(714)](r[i(634)],t=>0!=t),this[i(714)](r.switches,t=>0!=t),this[i(714)](r.switchesDueToConnectivity,t=>0!=t),this[i(714)](r.switchesDueToErrors,t=>0!=t),this[i(714)](r[i(535)],t=>0!=t),r[i(675)],r.unbannedTime);d[i(520)](e[i(665)],t),this.lastCdnStats[i(520)](e.name,s)}else{let t=0;null!=this.loader[i(688)][i(566)]&&(t=null!=this[i(574)]?this.loader.CDNLoader[i(566)]-this[i(574)]:this.loader[i(688)][i(566)]);let n=0;null!=this.loader[i(688)][i(727)]&&(n=null!=this[i(543)]?this[i(515)].CDNLoader[i(727)]-this[i(543)]:this[i(515)][i(688)][i(727)]);let a=0;null!=this[i(515)][i(688)].codavelBanTime&&(a=null!=this.lastReportedCodavelBanTime?this[i(515)][i(688)][i(729)]-this[i(725)]:this[i(515)].CDNLoader[i(729)]);let c=0;null!=this[i(515)][i(688)][i(565)]&&(c=null!=this.lastReportedCodavelUnbanTime?this[i(515)][i(688)].codavelUnbanTime-this[i(721)]:this[i(515)][i(688)][i(565)]);let h=0;null!=this[i(515)][i(688)][i(705)]&&(h=null!=this[i(585)]?this[i(515)][i(688)][i(705)]-this[i(585)]:this[i(515)][i(688)].codavelSwitches);let l=0;null!=this.loader[i(688)][i(617)]&&(l=null!=this.lastReportedCodavelSwitchesDueToQuality?this[i(515)].CDNLoader[i(617)]-this[i(712)]:this.loader[i(688)].codavelSwitchesDueToQuality);let u=0;null!=this[i(515)][i(688)][i(707)]&&(u=null!=this.lastReportedCodavelSwitchesDueToConnectivity?this[i(515)].CDNLoader[i(707)]-this.lastReportedCodavelSwitchesDueToConnectivity:this[i(515)][i(688)].codavelSwitchesDueToConnectivity);let f=0;null!=this[i(515)][i(688)][i(593)]&&(f=null!=this.lastReportedCodavelSwitchesDueToErrors?this[i(515)][i(688)][i(593)]-this.lastReportedCodavelSwitchesDueToErrors:this[i(515)][i(688)].codavelSwitchesDueToErrors);const g=new ai(o,e.internal_provider,!1,e[i(761)],this[i(714)](r[i(722)],t=>0!=t),this[i(714)](r[i(673)],t=>0!=t),this[i(714)](r.totalFailures,t=>0!=t),this[i(714)](r[i(668)],t=>0!=t),this.takeIf(r.maxBandwidth,t=>0!=t),this[i(714)](r[i(548)],t=>0!=t),this.takeIf(r[i(694)],t=>0!=t),this[i(714)](r[i(508)],t=>0!=t),this[i(714)](r[i(703)],t=>0!=t),this[i(626)],this[i(714)](r[i(628)],t=>
20!=t),this[i(714)](r[i(519)],t=>0!=t),this[i(714)](r[i(612)],t=>0!=t),this[i(714)](r[i(647)],t=>0!=t),this[i(714)](r.videoTime,t=>0!=t),r[i(759)],this[i(604)](r[i(657)]),this[i(735)](r.maxResponseBytes),r[i(559)],r.sumResponseTime,this[i(604)](r[i(741)]),this[i(735)](r[i(755)]),r[i(577)],r.sumNetworkLatency,this[i(604)](r[i(531)]),this.takeMax(r.maxNetworkLatency),r[i(603)],r.sumThroughput,this[i(604)](r.minThroughput),this[i(735)](r[i(546)]),r[i(550)],this[i(714)](r[i(562)],t=>0!=t),this[i(714)](r[i(691)],t=>0!=t),this[i(714)](r[i(564)],t=>0!=t),this[i(714)](r[i(578)],t=>0!=t),this[i(714)](r.http_5XX,t=>0!=t),c,a,this[i(714)](r[i(686)],t=>0!=t),this[i(714)](r[i(600)],t=>0!=t),this.takeIf(h,t=>0!=t),this[i(714)](u,t=>0!=t),this[i(714)](f,t=>0!=t),this[i(714)](l,t=>0!=t),this[i(515)].CDNLoader[i(632)],this[i(714)](t,t=>0!=t),this[i(714)](n,t=>0!=t),e[i(601)],this[i(714)](r[i(560)],t=>0!=t),this[i(714)](r[i(634)],t=>0!=t),this[i(714)](r.switches,t=>0!=t),this[i(714)](r[i(538)],t=>0!=t),this[i(714)](r[i(734)],t=>0!=t),this[i(714)](r[i(535)],t=>0!=t),r[i(675)],r[i(499)]);d[i(520)](e[i(665)],g),this[i(692)][i(520)](e.name,s),p=!0}else{const t=new ai(o,e[i(529)],!1,e.active,this[i(714)](r[i(722)],t=>0!=t),this[i(714)](r.downloadedChunks,t=>0!=t),this[i(714)](r[i(558)],t=>0!=t),this[i(714)](r.millis,t=>0!=t),this.takeIf(r.maxBandwidth,t=>0!=t),this.takeIf(r[i(548)],t=>0!=t),this[i(714)](r[i(694)],t=>0!=t),this[i(714)](r.minPingTime,t=>0!=t),this[i(714)](r.maxPingTime,t=>0!=t),this.resource,this[i(714)](r[i(628)],t=>0!=t),this[i(714)](r[i(519)],t=>0!=t),this[i(714)](r[i(612)],t=>0!=t),this[i(714)](r[i(647)],t=>0!=t),this[i(714)](r[i(625)],t=>0!=t),r.sumResponseBytes,this[i(604)](r.minResponseBytes),this[i(735)](r[i(661)]),r[i(559)],r[i(570)],this[i(604)](r[i(741)]),this[i(735)](r[i(755)]),r[i(577)],r[i(739)],this[i(604)](r[i(531)]),this[i(735)](r[i(582)]),r[i(603)],r[i(685)],this[i(604)](r[i(579)]),this[i(735)](r[i(546)]),r.samplesThroughput,this[i(714)](r.http_1XX,t=>0!=t),this[i(714)](r[i(691)],t=>0!=t),this[i(714)](r[i(564)],t=>0!=t),this[i(714)](r[i(578)],t=>0!=t),this[i(714)](r.http_5XX,t=>0!=t),r[i(499)],r[i(675)],this[i(714)](r[i(686)],t=>0!=t),this[i(714)](r[i(600)],t=>0!=t),this[i(714)](r[i(748)],t=>0!=t),this[i(714)](r[i(538)],t=>0!=t),this[i(714)](r[i(734)],t=>0!=t),this[i(714)](r[i(535)],t=>0!=t),e[i(601)],this[i(714)](r[i(560)],t=>0!=t),this[i(714)](r[i(634)],t=>0!=t));d[i(520)](e[i(665)],t),this[i(692)][i(520)](e.name,s)}}),this[t(515)][t(654)][t(743)]()){const e=this[t(515)].P2PLoader[t(726)](),i=this[t(595)][t(587)](t(552));l+=e[t(633)]||0,u+=e[t(639)]||0;const s={downloadedBytes:e[t(722)],downloadedChunks:e[t(518)],errors:e[t(504)][t(677)],millis:e[t(571)],maxBandwidth:e[t(635)],minBandwidth:e[t(548)]===Number[t(754)]?0:e[t(548)],avgPingTime:e[t(694)],minPingTime:e.minPingTime===Number[t(754)]?0:e[t(508)],maxPingTime:e[t(703)],downloadMillisVideo:e[t(522)],downloadBytesVideo:e.downloadBytesVideo,downloadChunksVideo:e[t(599)],uploadedBytes:e[t(598)],uploadedChunks:e[t(501)],uploadedTime:e[t(555)],lateUploadedChunks:e[t(723)],lateUploadedBytes:e[t(700)],lateDownloadedBytes:e[t(536)],missedDownloadedChunks:e[t(504)][t(613)],timeoutErrors:e[t(504)][t(715)],otherErrors:e[t(504)].error,activePeers:e[t(629)],totalPeers:e[t(742)],sumResponseBytes:e[t(759)],minResponseBytes:e[t(657)],maxResponseBytes:e[t(661)],samplesResponseBytes:e[t(559)],sumResponseTime:e.sumResponseTime,minResponseTime:e[t(741)],maxResponseTime:e.maxResponseTime,samplesResponseTime:e[t(577)],sumNetworkLatency:e[t(739)],minNetworkLatency:e.minNetworkLatency,maxNetworkLatency:e.maxNetworkLatency,samplesNetworkLatency:e[t(603)],sumThroughput:e[t(685)],minThroughput:e.minThroughput,maxThroughput:e.maxThroughput,samplesThroughput:e[t(550)],peersAvailable:e.peersAvailable,minPeersAvailable:e.minPeersAvailable,maxPeersAvailable:e[t(728)],peersUsed:e[t(737)],peersParallelUsed:e[t(687)],minPeersParallelUsed:e[t(502)],maxPeersParallelUsed:e.maxPeersParallelUsed,peerDiscoveryTime:e.peerDiscoveryTime,peerConnectionTime:e[t(736)],switches:e[t(748)],switchesDueToQuality:e.switchesDueToQuality,switchesDueToConnectivity:e[t(538)],switchesDueToErrors:e[t(734)]};i&&(s[t(722)]-=i.downloadedBytes,s[t(673)]-=i[t(518)],s[t(509)]-=i[t(504)][t(677)],s[t(668)]-=i[t(571)],s[t(635)]=0==s[t(635)]?s.maxBandwidth:s[t(635)]-i[t(635)],s[t(548)]=0==s[t(548)]?s.minBandwidth:s[t(548)]-i[t(548)],s.avgPingTime=Math[t(547)](0,s[t(694)]-i.avgPingTime),0!==s[t(508)]&&(s[t(508)]=Math[t(547)](0,s[t(508)]-i[t(508)])),0!==s[t(703)]&&
2(s[t(703)]=Math.max(0,s[t(703)]-i.maxPingTime)),s.downloadMillisVideo-=i[t(522)],s[t(710)]-=i[t(710)],s[t(599)]-=i[t(599)],s.uploadedBytes-=i[t(598)],s[t(501)]-=i[t(501)],s[t(555)]-=i.uploadedTime,s[t(678)]-=i[t(723)],s[t(701)]-=i[t(700)],s[t(592)]-=i[t(536)],s[t(760)]-=i[t(504)][t(613)],s[t(671)]-=i.failedRequests.timeout,s[t(584)]-=i[t(504)][t(649)],s[t(629)]-=i.activePeers,s[t(742)]-=i[t(742)],null!=s[t(573)]&&null!=i[t(573)]&&(s[t(573)]-=i[t(573)]),null!=s.peersUsed&&null!=i.peersUsed&&(s[t(737)]-=i[t(737)]),null!=s[t(687)]&&null!=i[t(687)]&&(s[t(687)]-=i[t(687)]),null!=s[t(731)]&&null!=i.peerDiscoveryTime&&(s.peerDiscoveryTime-=i.peerDiscoveryTime),null!=s.peerConnectionTime&&null!=i[t(736)]&&(s[t(736)]-=i.peerConnectionTime),void 0!==s[t(748)]&&(s[t(748)]-=null!==(n=i[t(748)])&&void 0!==n?n:0),void 0!==s[t(535)]&&(s[t(535)]-=null!==(r=i.switchesDueToQuality)&&void 0!==r?r:0),void 0!==s[t(538)]&&(s[t(538)]-=null!==(o=i.switchesDueToConnectivity)&&void 0!==o?o:0),void 0!==s[t(734)]&&(s[t(734)]-=null!==(a=i[t(734)])&&void 0!==a?a:0));const c=new li("P2P",t(552),!0,this[t(714)](s.downloadedBytes,t=>0!=t),this[t(714)](s[t(673)],t=>0!=t),this[t(714)](s[t(509)],t=>0!=t),this.takeIf(s[t(668)],t=>0!=t),this[t(714)](s[t(635)],t=>0!=t),this[t(714)](s[t(548)],t=>0!=t),this[t(714)](s[t(694)],t=>0!=t),this[t(714)](s.minPingTime,t=>0!=t),this[t(714)](s[t(703)],t=>0!=t),this[t(626)],this[t(714)](s[t(710)],t=>0!=t),this[t(714)](s[t(599)],t=>0!=t),this.takeIf(s[t(522)],t=>0!=t),this[t(714)](s.uploadedBytes,t=>0!=t),this.takeIf(s.uploadedChunks,t=>0!=t),this[t(714)](s[t(555)],t=>0!=t),this[t(714)](s[t(678)],t=>0!=t),this[t(714)](s[t(701)],t=>0!=t),this[t(714)](s.lateDownloadedBytes,t=>0!=t),this[t(714)](s[t(760)],t=>0!=t),this.takeIf(s.timeoutErrors,t=>0!=t),this.takeIf(s[t(584)],t=>0!=t),this[t(714)](s.activePeers,t=>0!=t),this[t(714)](s[t(742)],t=>0!=t),s[t(759)],s[t(657)],s[t(661)],s[t(559)],s[t(570)],s.minResponseTime,s.maxResponseTime,s.samplesResponseTime,s[t(739)],s[t(531)],s[t(582)],s[t(603)],s[t(685)],s[t(579)],s[t(546)],s.samplesThroughput,this[t(714)](s[t(573)],t=>0!=t),this[t(735)](s[t(728)]),this[t(604)](s[t(669)]),this[t(714)](s[t(737)],t=>0!=t),this.takeIf(s[t(687)],t=>0!=t),this[t(735)](s[t(646)]),this.takeMin(s[t(502)]),this[t(714)](s[t(731)],t=>0!=t),this.takeIf(s.peerConnectionTime,t=>0!=t),e[t(689)],e[t(718)],e[t(708)],e[t(652)],e.sessionMaxActivePeers,this[t(714)](s[t(748)],t=>0!=t),this[t(714)](s.switchesDueToQuality,t=>0!=t),this[t(714)](s[t(538)],t=>0!=t),this[t(714)](s.switchesDueToErrors,t=>0!=t));d[t(520)](t(552),c),this[t(595)][t(520)](t(552),e)}const v={};d[t(533)]((t,e)=>{v[e]=t});const y=this[t(515)][t(688)][t(514)](),S=this[t(568)](y[t(540)]);S&&(v[f]=S);const _=this[t(568)](y[t(757)]);_&&(v[g]=_);const b=this.syntheticToJson(y[t(747)]);b&&(v[m]=b);const T=u>0?8*l*1e3/u:0;let w;if(e.default.getInstance()[t(651)](Ee.default[t(554)][t(545)],Ee.default.BalancerVariables[t(528)],l),e.default.getInstance()[t(651)](Ee.default[t(554)][t(545)],Ee.default[t(523)][t(610)],T),this[t(515)][t(688)][t(732)]&&(w=new fi(this[t(515)][t(688)].apiCallErrors,this[t(515)][t(688)].apiCallResponses,void 0!==this[t(515)][t(688)][t(653)]?Math[t(680)](this[t(515)][t(688)][t(653)]):void 0,void 0!==this.loader[t(688)][t(517)]?Math[t(680)](this[t(515)][t(688)][t(517)]):void 0,void 0!==this.loader[t(688)].maxApiCallResponseTime?Math[t(680)](this[t(515)][t(688)][t(655)]):void 0,this[t(515)][t(688)][t(567)](),this[t(515)][t(688)][t(704)](),this.token,this[t(515)].CDNLoader.getForceDecision(),t(716),this[t(515)][t(688)][t(507)],this.loader.CDNLoader[t(648)],this[t(515)][t(688)][t(662)],this[t(515)][t(688)][t(597)],this[t(515)][t(688)][t(683)](),this.loader[t(688)][t(608)])),h[t(533)](e=>{const n=t,r=e[n(744)].snapshotDeltaSinceLastTick(),o=e[n(744)][n(672)](),a=e[n(744)][n(690)]();(r[n(720)]>0||o.size>0)&&i.default[n(524)](s.BalancerTag,"Concurrency snapshot ["+e[n(665)]+n(500)+yi(r)+n(575)+yi(o)+n(521)+a),e[n(697)]()}),this[t(515)][t(654)][t(743)]()&&this[t(515)].P2PLoader[t(697)](),this[t(515)].CDNLoader.resetOnPing(),i.default.verbose(s.BalancerTag,t(666)+JSON[t(551)](v)),d.size>0||Object[t(541)](v)[t(532)]>0){const i=e.default[t(619)]()[t(682)](Ee.default[t(554)].BALANCER,Ee.default.BalancerVariables.PROFILE_NAME),s=(null==i?void 0:i.trim())||this[t(589)];return this[t(679)](this[t(563)],this.accountCode,s,this[t(626)],JSON[t(551)](v),w)}}}catch(t){}}[gi(663)](t){const e=gi;return Object[e(541)](t)[e(569)](e=>0!=t[e])}[gi(568)](t){const e=gi,i={},s=(t,e)=>{void 0!==e&&0!==e&&(i[t]=e)};
2return s(e(751),t[e(673)]),s(e(621),t[e(722)]),s(e(510),t.time),s(e(664),t[e(759)]),s(e(724),t[e(657)]),s(e(624),t[e(661)]),s("response_bytes_samples",t[e(752)]),s("response_time",t[e(570)]),s(e(505),t.minResponseTime),s(e(511),t.maxResponseTime),s(e(537),t[e(516)]),s(e(513),t.sumThroughput),s(e(618),t[e(579)]),s(e(659),t[e(546)]),s(e(746),t[e(586)]),s(e(562),t[e(756)]),s(e(691),t[e(620)]),s(e(564),t[e(580)]),s(e(578),t[e(758)]),s("http_5XX",t[e(640)]),s(e(509),t.errors),Object.keys(i).length>0?i:void 0}[gi(506)](t){const e=gi,i=[e(673),"downloadedBytes",e(647),e(612),e(625),e(668),e(558),e(628),e(519),e(562),e(691),"http_3XX",e(578),e(602),e(600),"uncompressedBytes",e(559),e(577),e(550),e(603),e(694),"minPingTime",e(703),"minBandwidth","maxBandwidth",e(560),e(634),"switches",e(538),e(734),"switchesDueToQuality"];for(const e of i){const i=t[e];if(null!=i&&0!==i)return!0}return!1}[gi(714)](t,e){return void 0!==t&&e(t)?t:void 0}[gi(604)](t){return void 0!==t?t:0}[gi(735)](t){return void 0!==t?t:0}[gi(679)](t,i,s,n,r,o){const a=gi;if(""==r||"{}"==r)return;let c={};return c=null!=o?{timemark:(new Date).getTime(),code:e.default[a(619)]()[a(616)]()?e.default.getInstance()[a(650)]():t,sessionRoot:e.default.getInstance()[a(590)](),v:e.default[a(713)]()[a(588)](a(614))[0],pluginVersion:e.default[a(713)](),pingTime:e.default.getInstance().getFastDataService()[a(642)](),token:t,accountCode:i,profileName:s,data:r,api_errors:o[a(530)],api_responses:o[a(699)],api_min_response_time:o.apiCallsMinResponseTime,api_avg_response_time:o[a(605)],api_max_response_time:o.apiCallsAvgResponseTime,bucket:o[a(711)],is_live:o[a(698)],video_id:o[a(581)],force_decision:o[a(631)],request_platform:o[a(591)],p2p_available:o[a(507)],bolina_available:o[a(648)],active_switching_priority:o[a(662)],priority_cdn:o[a(597)],chunk_duration:o[a(706)],announced_cdns:o[a(608)]}:{timemark:(new Date)[a(636)](),code:e.default[a(619)]()[a(616)]()?e.default.getInstance()[a(650)]():t,sessionRoot:e.default[a(619)]().getFastDataSessionToken(),v:e.default[a(713)]().split(a(614))[0],pingTime:e.default[a(619)]()[a(658)]()[a(642)](),token:t,accountCode:i,profileName:s,data:r},c}}const _i=bi;function bi(t,e){return t-=191,Ai()[t]}var Ti,wi,Ei;function Ai(){const t=["videoCodecs","includes","INIT_SEGMENT","length","7159985kjssst","find","values","343111AvqRAJ",".m3u8","MASTER_MANIFEST","isStrongMatch","getSegmentInfoForUri",".mpd","containerMimeType","matchTrackList","TEXT","4174200pPSHiv","estimatedTimeSecs","trackType","get","MEDIA_SEGMENT","HLS","SUB_MANIFEST","pop","height","VIDEO","audioCodecs","width","bitrate","sourceUrl","tracks","endsWith","DASH","6pmUIpD","replace","matchSegmentIndex","uri","copy","durationMs","matchTrack","protocol","AUDIO","frameRate","language","split","2577124CFqsMk","2458610XMLjYY","segmentIndex","isLive","5978320rMGeZt","2162631yrypyO","resolveUrl","isMasterManifest"];return(Ai=function(){return t})()}!function(t){const e=bi,i=t();for(;;)try{if(523206==parseInt(e(192))/1*(parseInt(e(218))/2)+parseInt(e(235))/3+-parseInt(e(230))/4+parseInt(e(231))/5+parseInt(e(201))/6+-parseInt(e(242))/7+-parseInt(e(234))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ai),function(t){const e=bi;t.HLS=e(206),t[e(217)]=e(217)}(Ti||(Ti={})),function(t){const e=bi;t.VIDEO=e(210),t.AUDIO=e(226),t.TEXT=e(200)}(wi||(wi={})),function(t){const e=bi;t.MASTER_MANIFEST=e(194),t.SUB_MANIFEST=e(207),t.INIT_SEGMENT=e(240),t[e(205)]=e(205)}(Ei||(Ei={}));class Ii{constructor(t){const e=bi;var i,s,n,r,o,a,c;this[e(221)]=t[e(221)],this.id=t.id,this[e(225)]=t[e(225)],this.isMasterManifest=t.isMasterManifest,this[e(233)]=null!==(i=t[e(233)])&&void 0!==i&&i,this.durationMs=null!==(s=t[e(223)])&&void 0!==s?s:-1,this[e(203)]=t[e(203)],this[e(213)]=null!==(n=t[e(213)])&&void 0!==n?n:-1,this[e(238)]=t[e(238)],this[e(211)]=t[e(211)],this[e(212)]=null!==(r=t[e(212)])&&void 0!==r?r:-1,this[e(209)]=null!==(o=t[e(209)])&&void 0!==o?o:-1,this.language=t.language,this[e(198)]=t.containerMimeType,this[e(227)]=null!==(a=t.frameRate)&&void 0!==a?a:-1,this[e(215)]=null!==(c=t.tracks)&&void 0!==c?c:new Map,this[e(232)]=t[e(232)
2],this[e(214)]=t.sourceUrl}[_i(222)](t){const e=_i;var i,s,n,r,o,a,c,d,h,l,u;return new Ii({uri:null!==(i=t[e(221)])&&void 0!==i?i:this.uri,id:void 0!==t.id?t.id:this.id,protocol:null!==(s=t.protocol)&&void 0!==s?s:this[e(225)],isMasterManifest:null!==(n=t[e(237)])&&void 0!==n?n:this.isMasterManifest,isLive:null!==(r=t.isLive)&&void 0!==r?r:this[e(233)],durationMs:null!==(o=t[e(223)])&&void 0!==o?o:this[e(223)],trackType:void 0!==t[e(203)]?t[e(203)]:this.trackType,bitrate:null!==(a=t[e(213)])&&void 0!==a?a:this[e(213)],videoCodecs:void 0!==t.videoCodecs?t.videoCodecs:this[e(238)],audioCodecs:void 0!==t.audioCodecs?t[e(211)]:this[e(211)],width:null!==(c=t.width)&&void 0!==c?c:this[e(212)],height:null!==(d=t[e(209)])&&void 0!==d?d:this[e(209)],language:void 0!==t[e(228)]?t[e(228)]:this[e(228)],containerMimeType:void 0!==t[e(198)]?t[e(198)]:this.containerMimeType,frameRate:null!==(h=t.frameRate)&&void 0!==h?h:this[e(227)],tracks:null!==(l=t[e(215)])&&void 0!==l?l:this[e(215)],segmentIndex:void 0!==t.segmentIndex?t.segmentIndex:this[e(232)],sourceUrl:null!==(u=t[e(214)])&&void 0!==u?u:this[e(214)]})}[_i(236)](t,e,i=!1,s=!1,n,r){const o=_i;var a;let c,d,h;if(void 0!==e?(c=t,d=e,h=c+d):(h=t,[c,d]=je(h)),!i){if(c[o(241)]>0){const t=this.tracks[o(204)](c);if(t){const e=this[o(199)](h,t,!0,n,r);if(e)return e}}for(const[t,e]of this[o(215)])if(t[o(241)]>0&&h.includes(t)){const t=this[o(199)](h,e,!0,n,r);if(t)return t}if(d[o(216)](o(193))||d[o(216)](o(197)))for(const[t,e]of this.tracks){const i=t[o(219)](/\/$/,"")[o(229)]("/")[o(208)]()||"";if(i[o(241)]>8&&d[o(239)](i)){const t=this[o(199)](h,e,!0,n,r);if(t)return t}}}if(this.segmentIndex){const t=this[o(220)](h,this.segmentIndex,this,n);if(t)return t}if(s){if(r){const t=He(r),e=this[o(215)][o(204)](t);if(e){const t=null!==(a=e[o(243)](t=>t[o(221)]===r))&&void 0!==a?a:1===e[o(241)]?e[0]:void 0;if(t){const e=this[o(224)](h,t,!1,n);if(e)return e}}else for(const t of this.tracks[o(191)]()){const e=t[o(243)](t=>t[o(221)]===r);if(e){const t=this[o(224)](h,e,!1,n);if(t)return t;break}}}for(const t of this[o(215)][o(191)]())for(const e of t){const t=this[o(224)](h,e,!1,n);if(t)return t}}}[_i(199)](t,e,i,s,n){const r=_i;if(n)for(const o of e)if(o.uri===n){const e=this.matchTrack(t,o,i,s);if(e&&this[r(195)](t,o,e))return e;break}let o;for(const n of e){const e=this[r(224)](t,n,i,s);if(e){if(this.isStrongMatch(t,n,e))return e;o||(o=e)}}return o}isStrongMatch(t,e,i){const s=_i;return i.urlType===Ei[s(240)]||void 0!==i.segmentNumber||!(!(i.urlType===Ei[s(207)]&&e.uri[s(241)]>0)||t!==e[s(221)]&&!t.endsWith(e[s(221)]))}matchTrack(t,e,i=!1,s){const n=_i;if(e[n(221)].length>0&&(t===e.uri||t[n(216)](e[n(221)])))return{urlType:Ei.SUB_MANIFEST,manifest:this,track:e,segmentNumber:void 0,segmentTimeSecs:void 0,segmentDurationSecs:void 0};const r=e[n(232)];if(!r){if(!i)return;return{urlType:t[n(216)](n(193))||t[n(216)](n(197))?Ei[n(207)]:Ei[n(205)],manifest:this,track:e,segmentNumber:void 0,segmentTimeSecs:void 0,segmentDurationSecs:void 0}}return this[n(220)](t,r,e,s)}[_i(220)](t,e,i,s){const n=_i;if(e.matchesInitUri(t))return{urlType:Ei[n(240)],manifest:this,track:i,segmentNumber:void 0,segmentTimeSecs:void 0,segmentDurationSecs:void 0};const r=e[n(196)](t,s);return r?{urlType:Ei[n(205)],manifest:this,track:i,segmentNumber:r.segmentNumber,segmentTimeSecs:r[n(202)],segmentDurationSecs:r.estimatedDurationSecs}:void 0}}const Ri=Pi;function Pi(t,e){return t-=440,Li()[t]}!function(t){const e=Pi,i=t();for(;;)try{if(775676==-parseInt(e(468))/1*(-parseInt(e(466))/2)+parseInt(e(453))/3+parseInt(e(507))/4*(parseInt(e(496))/5)+-parseInt(e(474))/6+-parseInt(e(467))/7+-parseInt(e(469))/8+parseInt(e(472))/9*(parseInt(e(471))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Li);const Di=/^(.*?)(\d+)(\.[^.]+)$/;class Ci{constructor(t){const e=Pi;var i,s,n,r;this[e(502)]=0,this[e(459)]=t.startNumber,this[e(501)]=t[e(501)],this.totalDurationSecs=t[e(451)],this.isLive=t.isLive,this.segmentCount=t[e(456)],this.segmentDurations=t[e(485)],this[e(452)]=null!==(i=t[e(452)])&&void 0!==i?i:-1,this[e(484)]=t[e(484)],this.isPatternBased=null!==(s=t[e(446)])&&void 0!==s&&s,this[e(488)]=t[e(488)],this[e(505)]=null!==(n=t[e(505)])&&void 0!==n?n:-1,this[e(486)]=null!==(r=t.storedUris)&&void 0!==r?r:[],this[e(440)]=t[e(440)],this[e(461)]=t[e(461)],this.hasUniqueSegmentUris=this[e(446)]}getPatternRegex(){const t=Pi;if(!this[t(455)]&&this[t(488)]){const e=this[t(488)][t(442)]("%d");if(e>=0){const i=Bi(this[t(488)][t(487)](0,e)),s=Bi(this[t(488)][t(487)](e+2));this[t(455)]=new RegExp(i+"(\\d+)"+s)}else this[t(455)]=new RegExp(Bi(this.uriTemplate))}return this[t(455)]}[Ri(492)](t){const e=Ri;if(!(t<0||t>=this[e(456)]))return this[e(446)]&&this[e(488)]?this.uriTemplate[e(448)]("%d",String(this.patternStartNumber+t)):this.sharedByteRangeUri?this.sharedByteRangeUri:this[e(486)][t]}[Ri(498)](t,e){const i=Ri;return void 0!==e?this[i(508)](t,e):this[i(446)]?this[i(460)](t):this[i(495)](t)}[Ri(483)](t){const e=Ri;return!!this[e(484)]&&(t===this.initUri||t.endsWith("/"+this[e(484)]))}[Ri(464)](t){const e=Ri;if(!(t<0||t>=this[e(456)]))return this[e(445)](t)}matchPattern(t){const e=Ri,i=this[e(490)]()[e(477)](t);if(!i||!i[1])return;const s=parseInt(i[1],10);if(isNaN(s))return;const n=s-this[e(505)];return n<0||n>=this[e(456)]?void 0:this[e(445)](n)}[Ri(495)](t){const e=Ri;if(this[e(461)])return t===this[e(461)]||t.endsWith("/"+this[e(461)])?this[e(445)](0):void 0;const i=this[e(486)][e(476)];if(0===i)return;const s=Math[e(497)](Math[e(441)](this[e(502)],0),i-1);for(let n=0;n<i;n++){const r=(s+n)%i,o=this[e(486)][r];if(t===o||t[e(504)]("/"+o))return this[e(502)]=r+1,this[e(445)](r)}}[Ri(508)](t,e){const i=Ri;if(!this.byteRangeOffsets)return;if(this[i(461)]){if(t!==this.sharedByteRangeUri&&!t[i(504)]("/"+this[i(461)]))return;const s=this[i(440)][i(442)](e);return s>=0?this[i(445)](s):void 0}const s=this[i(486)][i(476)];for(let n=0;n<s;n++){const s=this[i(486)][n];if((t===s||t[i(504)]("/"+s))&&this[i(440)][n]===e)return this[i(445)](n)}}[Ri(445)](t){const e=Ri;let i,s;return i=this[e(485)]&&t<this[e(485)][e(476)]?this[e(485)][t]:this[e(452)]>0?this.uniformSegmentDuration:this[e(501)]>0?this[e(501)]:this[e(456)]>0&&this[e(451)]>0?this[e(451)]/this[e(456)]:0,s=this[e(485)]&&t<this.segmentDurations[e(476)]?this[e(479)
2](t):this.uniformSegmentDuration>0?t*this.uniformSegmentDuration:t*i,{segmentNumber:t,estimatedTimeSecs:s,estimatedDurationSecs:i}}[Ri(479)](t){const e=Ri;if(!this[e(485)])return 0;let i=0;const s=Math[e(497)](t,this[e(485)].length);for(let t=0;t<s;t++)i+=this[e(485)][t];return i}}class Ni{constructor(t,e,i,s){const n=Ri;this[n(459)]=t,this.targetDurationSecs=e,this[n(499)]=i,this[n(484)]=s,this.state=n(480),this[n(457)]=0,this[n(447)]=0,this.lastNumber=0,this[n(473)]=!1,this.byteRangeArray=[],this[n(493)]=[]}[Ri(458)](t,e,i){const s=Ri;if(this[s(457)]++,void 0!==e&&this[s(493)][s(444)](e),void 0!==i){for(this[s(473)]=!0;this[s(481)][s(476)]<this[s(457)]-1;)this[s(481)][s(444)](-1);this[s(481)][s(444)](i)}else this[s(481)][s(444)](-1);switch(this[s(443)]){case s(480):this[s(454)](t);break;case"PATTERN":this[s(503)](t);break;case s(491):this[s(500)][s(444)](t)}}[Ri(454)](t){const e=Ri;if(this[e(494)]){const i=Di[e(477)](this[e(494)]),s=Di[e(477)](t);if(i&&s){const t=i[1],n=parseInt(i[2],10),r=i[3],o=s[1],a=parseInt(s[2],10),c=s[3];if(t===o&&r===c&&!isNaN(n)&&!isNaN(a)&&a===n+1)return this[e(443)]="PATTERN",this[e(482)]=t,this.suffix=r,this.firstNumber=n,this[e(450)]=a,void(this[e(494)]=void 0)}this[e(449)](t)}else this[e(494)]=t}[Ri(503)](t){const e=Ri,i=this.prefix,s=this[e(462)];if(t[e(476)]-i[e(476)]-s[e(476)]>0&&t[e(506)](i)&&t[e(504)](s)){const n=parseInt(t[e(487)](i[e(476)],t.length-s.length),10);if(!isNaN(n)&&n===this[e(450)]+1)return void(this[e(450)]=n)}this[e(478)](t)}switchToList(t){const e=Ri;this.state=e(491),this[e(500)]=[this[e(494)],t],this[e(494)]=void 0}[Ri(478)](t){const e=Ri;this[e(443)]=e(491);const i=this[e(482)]+"%d"+this[e(462)];this[e(500)]=[];for(let t=this[e(447)];t<=this.lastNumber;t++)this[e(500)][e(444)](i.replace("%d",String(t)));this.listUris[e(444)](t),this[e(482)]=void 0,this.suffix=void 0}[Ri(465)](t){const e=Ri;var i;let s=0;const n=this[e(493)][e(476)]>0?new Float32Array(this[e(493)]):void 0;if(n)for(let t=0;t<n.length;t++)s+=n[t];let r=-1;if(n&&n.length>0){const t=n[0];let e=!0;for(let i=1;i<n.length;i++)if(n[i]!==t){e=!1;break}e&&(r=t)}const o=this[e(473)]?this.byteRangeArray[e(463)](0,this.count):void 0,a={startNumber:this[e(459)],targetDurationSecs:this[e(501)],totalDurationSecs:s,isLive:this[e(499)],segmentCount:this[e(457)],segmentDurations:r>0?void 0:n,uniformSegmentDuration:r>0?r:void 0,initUri:null!=t?t:this[e(484)],byteRangeOffsets:o};if(this[e(443)]===e(489))return new Ci(Object.assign(Object[e(470)]({},a),{isPatternBased:!0,uriTemplate:this.prefix+"%d"+this[e(462)],patternStartNumber:this[e(447)]}));if(this.state===e(491)){const t=null!==(i=this.listUris)&&void 0!==i?i:[];return this[e(473)]&&t[e(476)]>1&&t[e(475)](e=>e===t[0])?new Ci(Object[e(470)](Object[e(470)]({},a),{sharedByteRangeUri:t[0]})):new Ci(Object[e(470)](Object[e(470)]({},a),{storedUris:t}))}const c=this[e(494)]?[this.firstUri]:[];return new Ci(Object[e(470)](Object.assign({},a),{storedUris:c}))}}function Li(){const t=["getSegmentInfoForUri","isLive","listUris","targetDurationSecs","nextListSearchStart","handlePattern","endsWith","patternStartNumber","startsWith","8JJUYKJ","matchListByByteRange","byteRangeOffsets","max","indexOf","state","push","buildSegmentMatchInfo","isPatternBased","firstNumber","replace","switchToList","lastNumber","totalDurationSecs","uniformSegmentDuration","466842baOdWv","handlePending","patternRegex","segmentCount","count","addUri","startNumber","matchPattern","sharedByteRangeUri","suffix","slice","getSegmentInfoByNumber","build","533980dkiMhr","8548505WwsWcn","2EbGspB","1121464smSRmB","assign","340040nuxOdr","369rKMwrx","hasByteRanges","4660608bDckEf","every","length","exec","switchToListFromPattern","cumulativeDurationAt","PENDING","byteRangeArray","prefix","matchesInitUri","initUri","segmentDurations","storedUris","substring","uriTemplate","PATTERN","getPatternRegex","LIST","getSegmentUri","durations","firstUri","matchList","2075210JWtqDT","min"];return(Li=function(){return t})()}function Bi(t){return t[Ri(448)](/[.*+?^${}()|[\]\\]/g,"\\$&")}function ki(t,e){return t-=268,xi()[t]}function xi(){var t=["193353BEtBYh","90aedhNg","6113992jOrpMi","173630qnSarm","114dFsHTb","1374630wjdSBH","7jUkmGs","503757IcDazD","1458084IfnSMs","8DFFwUW","11USEKBM","272733rwHRlC"];return(xi=function(){return t})()}!function(t){for(var e=ki,i=t();;)try{if(397989==-parseInt(e(272))/1+parseInt(e(277))/2+parseInt(e(271))/3*(parseInt(e(269))/4)+-parseInt(e(275))/5*(parseInt(e(276))/6)+parseInt(e(278))/7*(parseInt(e(274))/8)+-parseInt(e(279))/9*(parseInt(e(273))/10)+parseInt(e(270))/11*(parseInt(e(268))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xi);class Mi{constructor(){this.uri="",this.pos=0}}function Oi(){const t=["pos","isAudio","14335880jQqPoS","targetDuration","155VusNtf","645858imXOJQ","size","bandwidthPosition","1615236vXiAca","segments","isMaxRendition","1748745vpdmmA","addSegment","43662fyqDcJ","140312oYmQpf","getSegmentsSize","99568PLBTYB","getSegment","uri","5DubvHP","getSegments","140HORuPB","bandwidth","get"];return(Oi=function(){return t})()}const Ui=qi;function qi(t,e){return t-=246,Oi()[t]}!function(t){const e=qi,i=t();for(;;)try{if(306661==-parseInt(e(261))/1*(-parseInt(e(258))/2)+parseInt(e(253))/3+parseInt(e(250))/4+-parseInt(e(246))/5*(-parseInt(e(255))/6)+parseInt(e(263))/7
2*(parseInt(e(256))/8)+-parseInt(e(247))/9+-parseInt(e(268))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Oi);class Vi{constructor(){const t=qi;this.uri="",this[t(264)]=0,this[t(267)]=!1,this[t(249)]=-1,this[t(269)]=0,this[t(251)]=new Map,this[t(252)]=!1}[Ui(254)](t,e,i){const s=Ui;let n=new Mi;n[s(260)]=e,n[s(266)]=i,this[s(251)].set(t,n)}[Ui(259)](t){const e=Ui;return this[e(251)][e(265)](t)}[Ui(257)](){const t=Ui;return this[t(251)][t(248)]}[Ui(262)](){return this.segments}}const Fi=Gi;function Hi(){const t=["parseMultivariantPlaylist","8pjngGX","689315KMCLoP","trimStart","indexOf","join","1239312wyivRp","vp9","map","#EXT-X-ENDLIST","5923683GRBWEF","length","21IqNBSP","addUri","addRendition","push","8wxeTIR","targetDuration","findRenditionForMediaPlaylist","isAudio","set","dtsc","parseMediaPlaylist","getRenditions","toLowerCase","trim","endsWith","#EXT-X-MEDIA","uri","ec-3","split","build","#EXTINF","detectMultivariant","media-","av01.","parse","TEXT","SUBTITLES","528300oQBiPR","8780838dmVbRR","get","forEach","#EXT-X-MAP","VIDEO","totalDurationSecs","dtsh","avc3.","filter","AUDIO","mp4a.","196822nlEIsY","5419380KOLoys","12WUeoIA","substring","hvc1.","#EXT-X-I-FRAME-STREAM-INF","some","startsWith","#EXT-X-MEDIA-SEQUENCE","HLS","addSegment","opus","bandwidth","hev1.","exec","dtse","round"];return(Hi=function(){return t})()}function Gi(t,e){return t-=372,Hi()[t]}!function(t){const e=Gi,i=t();for(;;)try{if(435921==-parseInt(e(433))/1+parseInt(e(377))/2*(parseInt(e(379))/3)+parseInt(e(410))/4*(parseInt(e(396))/5)+parseInt(e(400))/6*(-parseInt(e(406))/7)+parseInt(e(395))/8*(parseInt(e(404))/9)+-parseInt(e(378))/10+parseInt(e(434))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Hi);const ji="#EXT-X-STREAM-INF",Wi=Fi(382),Xi=Fi(421),zi="#EXT-X-TARGETDURATION",Ki=Fi(426),Ji=Fi(385),$i=Fi(403),Yi=Fi(437),Qi="#EXT-X-BYTERANGE",Zi=/[^-]BANDWIDTH=(\d+)\b/,ts=/RESOLUTION=(\d+x\d+)/,es=/CODECS="(.+?)"/,is=/FRAME-RATE=([\d.]+)\b/,ss=/TYPE=(AUDIO|VIDEO|SUBTITLES|CLOSED-CAPTIONS)/,ns=/URI="(.+?)"/,rs=/LANGUAGE="(.+?)"/,os=/NAME="(.+?)"/,as=/GROUP-ID="(.+?)"/;class cs{[Fi(430)](t,e,i){const s=Fi;if(!(t[s(405)]<7)&&t[s(397)]()[s(384)]("#EXTM3U"))return this[s(427)](t)?this.parseMultivariantPlaylist(t,e,i):this[s(416)](t,e,i)}[Fi(427)](t){const e=Fi,i=t[e(424)]("\n");for(const t of i){const i=t[e(419)]();if(0!==i[e(405)]&&"#"===i[0]){if(i[e(384)](ji))return!0;if(i[e(384)](Wi))return!0;if(i[e(384)](Ki))return!1;if(i[e(384)](zi))return!1}}return!1}[Fi(394)](t,e,i){const s=Fi;var n,r,o,a,c,d;const h=new Map,l=Fe(e);let u=0;const p=t[s(424)]("\n");for(let t=0;t<p[s(405)];t++){const l=p[t][s(419)]();if(l.startsWith(ji)){let a;for(let e=t+1;e<p.length;e++){const i=p[e][s(419)]();if(i.length>0&&!i.startsWith("#")){a=i,t=e;break}}if(!a)continue;const c=We(e,a),d=null!==(n=hs(l,Zi))&&void 0!==n?n:0,[f,g]=us(l),[m,v]=gs(ds(l,es)),y=null!==(r=ls(l,is))&&void 0!==r?r:-1,S=new Vi;S[s(389)]=d,S[s(422)]=a,i[s(408)](a,S);const _=new Ii({uri:c,id:String(u),protocol:Ti.HLS,isMasterManifest:!1,bitrate:d,videoCodecs:m,audioCodecs:v,width:null!=f?f:-1,height:null!=g?g:-1,frameRate:y,trackType:f&&f>0&&g&&g>0?wi[s(438)]:void 0}),b=He(c),T=null!==(o=h.get(b))&&void 0!==o?o:[];T[s(409)](_),h[s(414)](b,T),u++}else if(l.startsWith(Xi)){const t=ds(l,ss),n=ds(l,ns);if(!n||t!==s(375)&&t!==s(432))continue;const r=ds(l,rs),o=ds(l,os),c=ds(l,as),d=t===s(375)?wi.AUDIO:wi[s(431)],u=We(e,n),p=new Vi;p[s(422)]=n,p[s(413)]=!0,i[s(408)](n,p);const f=new Ii({uri:u,id:null!=c?c:o,protocol:Ti[s(386)],isMasterManifest:!1,trackType:d,language:r}),g=He(u),m=null!==(a=h[s(435)](g))&&void 0!==a?a:[];m[s(409)](f),h[s(414)](g,m)}else if(l[s(384)](Wi)){const t=ds(l,ns);if(!t)continue;const i=We(e,t),n=null!==(c=hs(l,Zi))&&void 0!==c?c:0,r=new Ii({uri:i,id:String(u),protocol:Ti[s(386)],isMasterManifest:!1,bitrate:n}),o=He(i),a=null!==(d=h[s(435)](o))&&void 0!==d?d:[];a[s(409)](r),h.set(o,a),u++}}return{manifest:new Ii({uri:l,protocol:Ti[s(386)],isMasterManifest:!0,tracks:h,sourceUrl:e})}}[Fi(416)](t,e,i){const s=Fi,n=Fe(e);let r,o,a,c,d=!1,h=0,l=0,u=!1;const p=new Ni(0,0,!1,void 0);let f=0;const g=this[s(412)](i,e),m=t[s(424)]("\n");for(let t=0;t<m[s(405)];t++){const n=m[t][s(419)]();if(0!==n[s(405)])if("#"===n[0])if(n[s(384)](Ki+":")){const t=n[s(380)](Ki[s(405)]+1),e=t.indexOf(","),i=parseFloat(e>=0?t[s(380)](0,e):t);!isNaN(i)&&(c=i,u=!0)}else if(n[s(384)](zi+":")){const t=parseInt(n.substring(zi[s(405)]+1),10);isNaN(t)||(r=t)}else if(n[s(384)](Ji+":")){const t=parseInt(n.substring(Ji[s(405)]+1),10);isNaN(t)||(h=t)}else if(n[s(384)](Yi+":")){const t=ds(n,ns);t&&(o=We(e,t))}else if(n[s(384)](Qi+":")){const t=n.substring(Qi[s(405)]+1),e=t.indexOf("@");let i,r;e>=0?(i=parseInt(t.substring(0,e),10),r=parseInt(t[s(380)](e+1),10)):(i=parseInt(t,10),r=-1);const o=r>=0?r:l;a=o,i>=0&&(l=o+i)}else n===$i&&(d=!0);else if(u){const t=We(e,n);p[s(407)](t,c,a),f++,g&&i[s(387)](g,t,t),a=void 0,c=void 0,u=!1}}if(void 0!==r&&g){const t=i[s(417)]()[s(435)](g);t&&(t[s(411)]=r)}const v=f>0?p[s(425)](o):void 0,y=new Map,S=new Ii({uri:n,id:s(428)+n,protocol:Ti[s(386)],isMasterManifest:!1,isLive:!d,trackType:wi.VIDEO,segmentIndex:v}),_=He(n);return y[s(414)](_,[S]),{manifest:new Ii({uri:n,protocol:Ti[s(386)],isMasterManifest:!1,isLive:!d,durationMs:v?Math[s(393)](1e3*v[s(439)]):-1,segmentIndex:v,tracks:y,sourceUrl:e}),targetDurationSeconds:r}}[Fi(412)](t,e){const i=Fi,s=Fe(e);let n;return t.getRenditions()[i(436)]((t,e)=>{!n&&s[i(420)](Fe(e))&&(n=e)}),n}}function ds(t,e){const i=e[Fi(391)](t);return i?i[1]:void 0}function hs(t,e){const i=ds(t,e);if(!i)return;const s=parseInt(i,10);return isNaN(s)?void 0:s}function ls(t,e){const i=ds(t,e);if(!i)return;const s=parseFloat(i);return isNaN(s)?void 0:s}function us(t){const e=Fi,i=ds(t,ts);if(!i)return[void 0,void 0];const s=i[e(398)]("x");return s<=0?[void 0,void 0]:[parseInt(i[e(380)](0,s),10),parseInt(i.substring(s+1),10)]}const ps=["avc1.",Fi(373),Fi(381),Fi(390),Fi(401),"vp09.",Fi(429)],fs=[Fi(376),"ac-3",Fi(423),Fi(388),Fi(415),Fi(392),Fi(372),"flac"];function gs(t){const e=Fi;if(!t)return[void 0,void 0];const i=t.split(",")[e(402)](t=>t[e(419)]())[e(374)](t=>t[e(405)]>0),s=[],n=[];for(const t of i){const i=t[e(418)]();ps.some(t=>i[e(384)](t))?s[e(409)](t):fs[e(383)](t=>i[e(384)](t))&&n[e(409)](t)}return[s[e(399)](",")||void 0,n[e(399)](",")||void 0]}var ms=__webpack_require__(9731),vs=__webpack_require__.n(ms),ys=__webpack_require__(2553),Ss=__webpack_require__.n(ys);const _s=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=Ss().location&&Ss().location.href||"");var i="function"==typeof Ss().URL,s=/^\/\//.test(t),n=!Ss().location&&!/\/\//i.test(t);if(i?t=new(Ss().URL)(t,Ss().location||"http://example.com"):/\/\//i.test(t)||(t=vs().buildAbsoluteURL(Ss().location&&Ss().location.href||"",t)),i){var r=new
vendor: 20,141 bytes, line 2
2URL(e,t);return n?r.href.slice(18):s?r.href.slice(r.protocol.length):r.href}return vs().buildAbsoluteURL(t,e)};var bs=__webpack_require__(1048).hp;var Ts=__webpack_require__(7937);const ws=t=>!!t&&"object"==typeof t,Es=(...t)=>t.reduce((t,e)=>("object"!=typeof e||Object.keys(e).forEach(i=>{Array.isArray(t[i])&&Array.isArray(e[i])?t[i]=t[i].concat(e[i]):ws(t[i])&&ws(e[i])?t[i]=Es(t[i],e[i]):t[i]=e[i]}),t),{}),As=t=>Object.keys(t).map(e=>t[e]),Is=t=>t.reduce((t,e)=>t.concat(e),[]),Rs=t=>{if(!t.length)return[];const e=[];for(let i=0;i<t.length;i++)e.push(t[i]);return e};const Ps=({baseUrl:t="",source:e="",range:i="",indexRange:s=""})=>{const n={uri:e,resolvedUri:_s(t||"",e)};if(i||s){const t=(i||s).split("-");let e,r=Ss().BigInt?Ss().BigInt(t[0]):parseInt(t[0],10),o=Ss().BigInt?Ss().BigInt(t[1]):parseInt(t[1],10);r<Number.MAX_SAFE_INTEGER&&"bigint"==typeof r&&(r=Number(r)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),e="bigint"==typeof o||"bigint"==typeof r?Ss().BigInt(o)-Ss().BigInt(r)+Ss().BigInt(1):o-r+1,"bigint"==typeof e&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),n.byterange={length:e,offset:r}}return n},Ds=t=>(t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t)?null:t),Cs={static(t){const{duration:e,timescale:i=1,sourceDuration:s,periodDuration:n}=t,r=Ds(t.endNumber),o=e/i;return"number"==typeof r?{start:0,end:r}:"number"==typeof n?{start:0,end:n/o}:{start:0,end:s/o}},dynamic(t){const{NOW:e,clientOffset:i,availabilityStartTime:s,timescale:n=1,duration:r,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:c=1/0}=t,d=Ds(t.endNumber),h=(e+i)/1e3,l=s+o,u=h+a-l,p=Math.ceil(u*n/r),f=Math.floor((h-l-c)*n/r),g=Math.floor((h-l)*n/r);return{start:Math.max(0,f),end:"number"==typeof d?d:Math.min(p,g)}}},Ns=t=>{const{type:e,duration:i,timescale:s=1,periodDuration:n,sourceDuration:r}=t,{start:o,end:a}=Cs[e](t),c=((t,e)=>{const i=[];for(let s=t;s<e;s++)i.push(s);return i})(o,a).map((t=>e=>{const{duration:i,timescale:s=1,periodStart:n,startNumber:r=1}=t;return{number:r+e,duration:i/s,timeline:n,time:e*i}})(t));if("static"===e){const t=c.length-1,e="number"==typeof n?n:r;c[t].duration=e-i/s*t}return c},Ls=t=>{const{baseUrl:e,initialization:i={},sourceDuration:s,indexRange:n="",periodStart:r,presentationTime:o,number:a=0,duration:c}=t;if(!e)throw new Error("NO_BASE_URL");const d=Ps({baseUrl:e,source:i.sourceURL,range:i.range}),h=Ps({baseUrl:e,source:e,indexRange:n});if(h.map=d,c){const e=Ns(t);e.length&&(h.duration=e[0].duration,h.timeline=e[0].timeline)}else s&&(h.duration=s,h.timeline=r);return h.presentationTime=o||r,h.number=a,[h]},Bs=(t,e,i)=>{const s=t.sidx.map?t.sidx.map:null,n=t.sidx.duration,r=t.timeline||0,o=t.sidx.byterange,a=o.offset+o.length,c=e.timescale,d=e.references.filter(t=>1!==t.referenceType),h=[],l=t.endList?"static":"dynamic",u=t.sidx.timeline;let p,f=u,g=t.mediaSequence||0;p="bigint"==typeof e.firstOffset?Ss().BigInt(a)+e.firstOffset:a+e.firstOffset;for(let t=0;t<d.length;t++){const o=e.references[t],a=o.referencedSize,d=o.subsegmentDuration;let m;m="bigint"==typeof p?p+Ss().BigInt(a)-Ss().BigInt(1):p+a-1;const v=Ls({baseUrl:i,timescale:c,timeline:r,periodStart:u,presentationTime:f,number:g,duration:d,sourceDuration:n,indexRange:`${p}-${m}`,type:l})[0];s&&(v.map=s),h.push(v),p+="bigint"==typeof p?Ss().BigInt(a):a,f+=d/c,g++}return t.segments=h,t},ks=["AUDIO","SUBTITLES"],xs=1/60,Ms=t=>{return(e=t,i=({timeline:t})=>t,As(e.reduce((t,e)=>(e.forEach(e=>{t[i(e)]=e}),t),{}))).sort((t,e)=>t.timeline>e.timeline?1:-1);var e,i},Os=t=>{let e=[];var i,s;return i=t,s=(t,i,s,n)=>{e=e.concat(t.playlists||[])},ks.forEach(function(t){for(var e in i.mediaGroups[t])for(var n in i.mediaGroups[t][e]){var r=i.mediaGroups[t][e][n];s(r)}}),e},Us=({playlist:t,mediaSequence:e})=>{t.mediaSequence=e,t.segments.forEach((e,i)=>{e.number=t.mediaSequence+i})},qs=t=>t&&t.uri+"-"+(t=>{let e;return e="bigint"==typeof t.offset||"bigint"==typeof t.length?Ss().BigInt(t.offset)+Ss().BigInt(t.length)-Ss().BigInt(1):t.offset+t.length-1,`${t.offset}-${e}`})(t.byterange),Vs=t=>{const e=t.reduce(function(t,e){return t[e.attributes.baseUrl]||(t[e.attributes.baseUrl]=[]),t[e.attributes.baseUrl].push(e),t},{});let i=[];return Object.values(e).forEach(t=>{const e=As(t.reduce((t,e)=>{const i=e.attributes.id+(e.attributes.lang||"");return t[i]?(e.segments&&(e.segments[0]&&(e.segments[0].discontinuity=!0),t[i].segments.push(...e.segments)),e.attributes.contentProtection&&(t[i].attributes.contentProtection=e.attributes.contentProtection)):(t[i]=e,t[i].attributes.timelineStarts=[]),t[i].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t},{}));i=i.concat(e)}),i.map(t=>{var e;return t.discontinuityStarts=(e=t.segments||[],e.reduce((t,e,i)=>(e.discontinuity&&t.push(i),t),[])),t})},Fs=(t,e)=>{const i=qs(t.sidx),s=i&&e[i]&&e[i].sidx;return s&&Bs(t,s,t.sidx.resolvedUri),t},Hs=(t,e={})=>{if(!Object.keys(e).length)return t;for(const i in t)t[i]=Fs(t[i],e);return t},Gs=({attributes:t,segments:e,sidx:i,discontinuityStarts:s})=>{const n={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:s,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(n.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(n.contentProtection=t.contentProtection),t.serviceLocation&&(n.attributes.serviceLocation=t.serviceLocation),i&&(n.sidx=i),n},js=({attributes:t})=>"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType,Ws=({attributes:t})=>"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType,Xs=({attributes:t})=>"text/vtt"===t.mimeType||"text"===t.contentType,zs=t=>t?Object.keys(t).reduce((e,i)=>{const s=t[i];return e.concat(s.playlists)},[]):[],Ks=({dashPlaylists:t,locations:e,contentSteering:i,sidxMapping:s={},previousManifest:n,eventStream:r})=>{if(!t.length)return{};const{sourceDuration:o,type:a,suggestedPresentationDelay:c,minimumUpdatePeriod:d}=t[0].attributes,h=Vs(t.filter(js)).map(Gs),l=Vs(t.filter(Ws)),u=Vs(t.filter(Xs)),p=t.map(t=>t.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:Hs(h,s)};d>=0&&(f.minimumUpdatePeriod=1e3*d),e&&(f.locations=e),i&&(f.contentSteering=i),"dynamic"===a&&(f.suggestedPresentationDelay=c),r&&r.length>0&&(f.eventStream=r);const g=0===f.playlists.length,m=l.length?((t,e={},i=!1)=>{let s;const n=t.reduce((t,n)=>{const r=n.attributes.role&&n.attributes.role.value||"",o=n.attributes.lang||"";let a=n.attributes.label||"main";if(o&&!n.attributes.label){const t=r?` (${r})`:"";a=`${n.attributes.lang}${t}`}t[a]||(t[a]={language:o,autoselect:!0,default:"main"===r,playlists:[],uri:""});const c=Fs((({attributes:t,segments:e,sidx:i,mediaSequence:s,discontinuitySequence:n,discontinuityStarts:r},o)=>{const a={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:n,discontinuityStarts:r,timelineStarts:t.timelineStarts,mediaSequence:s,segments:e};return t.contentProtection&&(a.contentProtection=t.contentProtection),t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),i&&(a.sidx=i),o&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a})(n,i),e);return t[a].playlists.push(c),void 0===s&&"main"===r&&(s=n,s.default=!0),t},{});return s||(n[Object.keys(n)[0]].default=!0),n})(l,s,g):null,v=u.length?((t,e={})=>t.reduce((t,i)=>{const s=i.attributes.label||i.attributes.lang||"text",n=i.attributes.lang||"und";return t[s]||(t[s]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[s].playlists.push(Fs((({attributes:t,segments:e,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:n})=>{void 0===e&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const r={NAME:t.id,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1};t.codecs&&(r.CODECS=t.codecs);const o={attributes:r,uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:s,discontinuitySequence:n,mediaSequence:i,segments:e};return t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),o})(i),e)),t},{}))(u,s):null,y=h.concat(zs(m),zs(v)),S=y.map(({timelineStarts:t})=>t);var _,b;return f.timelineStarts=Ms(S),_=y,b=f.timelineStarts,_.forEach(t=>{t.mediaSequence=0,t.discontinuitySequence=b.findIndex(function({timeline:e}){return e===t.timeline}),t.segments&&t.segments.forEach((t,e)=>{t.number=e})}),m&&(f.mediaGroups.AUDIO.audio=m),v&&(f.mediaGroups.SUBTITLES.subs=v),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce((t,e)=>e?(e.forEach(e=>{const{channel:i,language:s}=e;t[s]={autoselect:!1,default:!1,instreamId:i,language:s},e.hasOwnProperty("aspectRatio")&&(t[s].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[s].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[s]["3D"]=e["3D"])}),t):t,{})),n?(({oldManifest:t,newManifest:e})=>{const i=t.playlists.concat(Os(t)),s=e.playlists.concat(Os(e));return e.timelineStarts=Ms([t.timelineStarts,e.timelineStarts]),(({oldPlaylists:t,newPlaylists:e,timelineStarts:i})=>{e.forEach(e=>{e.discontinuitySequence=i.findIndex(function({timeline:t}){return t===e.timeline});const s=((t,e)=>{for(let i=0;i<t.length;i++)if(t[i].attributes.NAME===e)return t[i];return null})(t,e.attributes.NAME);if(!s)return;if(e.sidx)return;const n=e.segments[0],r=s.segments.findIndex(function(t){return Math.abs(t.presentationTime-n.presentationTime)<xs});if(-1===r)return Us({playlist:e,mediaSequence:s.mediaSequence+s.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!s.segments.length&&e.timeline>s.timeline||s.segments.length&&e.timeline>s.segments[s.segments.length-1].timeline)&&e.discontinuitySequence--);s.segments[r].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Us({playlist:e,mediaSequence:s.segments[r].number})})})({oldPlaylists:i,newPlaylists:s,timelineStarts:e.timelineStarts}),e})({oldManifest:n,newManifest:f}):f},Js=(t,e,i)=>{const{NOW:s,clientOffset:n,availabilityStartTime:r,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:c=0}=t,d=(s+n)/1e3+c-(r+a);return Math.ceil((d*o-e)/i)},$s=(t,e)=>{const{type:i,minimumUpdatePeriod:s=0,media:n="",sourceDuration:r,timescale:o=1,startNumber:a=1,periodStart:c}=t,d=[];let h=-1;for(let l=0;l<e.length;l++){const u=e[l],p=u.d,f=u.r||0,g=u.t||0;let m;if(h<0&&(h=g),g&&g>h&&(h=g),f<0){const a=l+1;m=a===e.length?"dynamic"===i&&s>0&&n.indexOf("$Number$")>0?Js(t,h,p):(r*o-h)/p:(e[a].t-h)/p}else m=f+1;const v=a+d.length+m;let y=a+d.length;for(;y<v;)d.push({number:y,duration:p/o,time:h,timeline:c}),h+=p,y++}return d},Ys=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Qs=(t,e)=>t.replace(Ys,(t=>(e,i,s,n)=>{if("$$"===e)return"$";if(void 0===t[i])return e;const r=""+t[i];return"RepresentationID"===i?r:(n=s?parseInt(n,10):1,r.length>=n?r:`${new Array(n-r.length+1).join("0")}${r}`)})(e)),Zs=(t,e)=>{const i={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=t,n=Ps({baseUrl:t.baseUrl,source:Qs(s.sourceURL,i),range:s.range}),r=((t,e)=>t.duration||e?t.duration?Ns(t):$s(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}])(t,e);return r.map(e=>{i.Number=e.number,i.Time=e.time;const s=Qs(t.media||"",i),r=t.timescale||1,o=t.presentationTimeOffset||0,a=t.periodStart+(e.time-o)/r;return{uri:s,timeline:e.timeline,duration:e.duration,resolvedUri:_s(t.baseUrl||"",s),map:n,number:e.number,presentationTime:a}})},tn=(t,e)=>{const{duration:i,segmentUrls:s=[],periodStart:n}=t;if(!i&&!e||i&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");const r=s.map(e=>((t,e)=>{const{baseUrl:i,initialization:s={}}=t,n=Ps({baseUrl:i,source:s.sourceURL,range:s.range}),r=Ps({baseUrl:i,source:e.media,range:e.mediaRange});return r.map=n,r})(t,e));let o;return i&&(o=Ns(t)),e&&(o=$s(t,e)),o.map((e,i)=>{if(r[i]){const s=r[i],o=t.timescale||1,a=t.presentationTimeOffset||0;return s.timeline=e.timeline,s.duration=e.duration,s.number=e.number,s.presentationTime=n+(e.time-a)/o,s}}).filter(t=>t)},en=({attributes:t,segmentInfo:e})=>{let i,s;e.template?(s=Zs,i=Es(t,e.template)):e.base?(s=Ls,i=Es(t,e.base)):e.list&&(s=tn,i=Es(t,e.list));const n={attributes:t};if(!s)return n;const r=s(i,e.segmentTimeline);if(i.duration){const{duration:t,timescale:e=1}=i;i.duration=t/e}else r.length?i.duration=r.reduce((t,e)=>Math.max(t,Math.ceil(e.duration)),0):i.duration=0;return n.attributes=i,n.segments=r,e.base&&i.indexRange&&(n.sidx=r[0],n.segments=[]),n},sn=t=>t.map(en),nn=(t,e)=>Rs(t.childNodes).filter(({tagName:t})=>t===e),rn=t=>t.textContent.trim(),on=t=>{const e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;const[i,s,n,r,o,a]=e.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(s||0)+86400*parseFloat(n||0)+3600*parseFloat(r||0)+60*parseFloat(o||0)+parseFloat(a||0)},an={mediaPresentationDuration:t=>on(t),availabilityStartTime(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:t=>on(t),suggestedPresentationDelay:t=>on(t),type:t=>t,timeShiftBufferDepth:t=>on(t),start:t=>on(t),width:t=>parseInt(t,10),height:t=>parseInt(t,10),bandwidth:t=>parseInt(t,10),frameRate:t=>(t=>parseFloat(t.split("/").reduce((t,e)=>t/e)))(t),startNumber:t=>parseInt(t,10),timescale:t=>parseInt(t,10),presentationTimeOffset:t=>parseInt(t,10),duration(t){const e=parseInt(t,10);return isNaN(e)?on(t):e},d:t=>parseInt(t,10),t:t=>parseInt(t,10),r:t=>parseInt(t,10),presentationTime:t=>parseInt(t,10),DEFAULT:t=>t},cn=t=>t&&t.attributes?Rs(t.attributes).reduce((t,e)=>{const i=an[e.name]||an.DEFAULT;return t[e.name]=i(e.value),t},{}):{},dn={"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","urn:mpeg:dash:mp4protection:2011":"mp4protection"},hn=(t,e)=>e.length?Is(t.map(function(t){return e.map(function(e){const i=rn(e),s=_s(t.baseUrl,i),n=Es(cn(e),{baseUrl:s});return s!==i&&!n.serviceLocation&&t.serviceLocation&&(n.serviceLocation=t.serviceLocation),n})})):t,ln=t=>{const e=nn(t,"SegmentTemplate")[0],i=nn(t,"SegmentList")[0],s=i&&nn(i,"SegmentURL").map(t=>Es({tag:"SegmentURL"},cn(t))),n=nn(t,"SegmentBase")[0],r=i||e,o=r&&nn(r,"SegmentTimeline")[0],a=i||n||e,c=a&&nn(a,"Initialization")[0],d=e&&cn(e);d&&c?d.initialization=c&&cn(c):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});const h={template:d,segmentTimeline:o&&nn(o,"S").map(t=>cn(t)),list:i&&Es(cn(i),{segmentUrls:s,initialization:cn(c)}),base:n&&Es(cn(n),{initialization:cn(c)})};return Object.keys(h).forEach(t=>{h[t]||delete h[t]}),h},un=t=>Is(nn(t.node,"EventStream").map(e=>{const i=cn(e),s=i.schemeIdUri;return nn(e,"Event").map(e=>{const n=cn(e),r=n.presentationTime||0,o=i.timescale||1,a=n.duration||0,c=r/o+t.attributes.start;return{schemeIdUri:s,value:i.value,id:n.id,start:c,end:c+a/o,messageData:rn(e)||n.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),pn=(t,e,i)=>s=>{const n=cn(s),r=hn(e,nn(s,"BaseURL")),o=nn(s,"Role")[0],a={role:cn(o)};let c=Es(t,n,a);const d=nn(s,"Accessibility")[0],h="urn:scte:dash:cc:cea-608:2015"===(l=cn(d)).schemeIdUri?("string"!=typeof l.value?[]:l.value.split(";")).map(t=>{let e,i;return i=t,/^CC\d=/.test(t)?[e,i]=t.split("="):/^CC\d$/.test(t)&&(e=t),{channel:e,language:i}}):"urn:scte:dash:cc:cea-708:2015"===l.schemeIdUri?("string"!=typeof l.value?[]:l.value.split(";")).map(t=>{const e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){const[i,s=""]=t.split("=");e.channel=i,e.language=t,s.split(",").forEach(t=>{const[i,s]=t.split(":");"lang"===i?e.language=s:"er"===i?e.easyReader=Number(s):"war"===i?e.aspectRatio=Number(s):"3D"===i&&(e["3D"]=Number(s))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;var l;h&&(c=Es(c,{captionServices:h}));const u=nn(s,"Label")[0];if(u&&u.childNodes.length){const t=u.childNodes[0].nodeValue.trim();c=Es(c,{label:t})}const p=nn(s,"ContentProtection").reduce((t,e)=>{const i=cn(e);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=dn[i.schemeIdUri];if(s){t[s]={attributes:i};const n=nn(e,"cenc:pssh")[0];if(n){const e=rn(n);t[s].pssh=e&&function(t){for(var e,i=(e=t,Ss().atob?Ss().atob(e):bs.from(e,"base64").toString("binary")),s=new Uint8Array(i.length),n=0;n<i.length;n++)s[n]=i.charCodeAt(n);return s}(e)}}return t},{});Object.keys(p).length&&(c=Es(c,{contentProtection:p}));const f=ln(s),g=nn(s,"Representation"),m=Es(i,f);return Is(g.map(((t,e,i)=>s=>{const n=nn(s,"BaseURL"),r=hn(e,n),o=Es(t,cn(s)),a=ln(s);return r.map(t=>({segmentInfo:Es(i,a),attributes:Es(o,t)}))})(c,r,m)))},fn=(t,e)=>(i,s)=>{const n=hn(e,nn(i.node,"BaseURL")),r=Es(t,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(r.periodDuration=i.attributes.duration);const o=nn(i.node,"AdaptationSet"),a=ln(i.node);return Is(o.map(pn(r,n,a)))},gn=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const i=Es({serverURL:rn(t[0])},cn(t[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},mn=(t,e={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:n=0,eventHandler:r=function(){}}=e,o=nn(t,"Period");if(!o.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const a=nn(t,"Location"),c=cn(t),d=hn([{baseUrl:i}],nn(t,"BaseURL")),h=nn(t,"ContentSteering");c.type=c.type||"static",c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=s,c.clientOffset=n,a.length&&(c.locations=a.map(rn));const l=[];return o.forEach((t,e)=>{const i=cn(t),s=l[e-1];i.start=(({attributes:t,priorPeriodAttributes:e,mpdType:i})=>"number"==typeof t.start?t.start:e&&"number"==typeof e.start&&"number"==typeof e.duration?e.start+e.duration:e||"static"!==i?null:0)({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:c.type}),l.push({node:t,attributes:i})}),{locations:c.locations,contentSteeringInfo:gn(h,r),representationInfo:Is(l.map(fn(c,d))),eventStream:Is(l.map(un))}},vn=t=>{if(""===t)throw new Error("DASH_EMPTY_MANIFEST");const e=new Ts.DOMParser;let i,s;try{i=e.parseFromString(t,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(t){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return s},yn="1.3.1",Sn=(t,e={})=>{const i=mn(vn(t),e),s=sn(i.representationInfo);return Ks({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:i.eventStream})},_n=t=>(t=>{const e=nn(t,"UTCTiming")[0];if(!e)return null;const i=cn(e);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.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":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return i})(vn(t));function bn(){const t=["test","source","usesTimeTemplate","manifestDurationMs","initTemplate","[\\w.-]+","$RepresentationID$","timeline","getSegmentUri","resolvedMediaTemplate","floor","\\$&","getSegmentInfoByNumber","getTemplateRegex","<<<DOLLAR>
2>>","$Number$","6290165OnCTgT","timescale","$Bandwidth$","(\\d+)","6BKqtEz","startNumber","<<<CAPTURE>>>","isLive","bandwidth","12578872CtAFMv","$Time$","377231ekqUts","456615bGpxQd","90xUBMAQ","matchesInitUri","initRegex","mediaTemplate","usesFixedDuration","findSegmentByTime","getInitRegex","resolvedInitUri","ceil","<<<LITERAL_BW>>>","replace","totalDurationSecs","<<<NONCAP>>>","4367376JwPEKS","\\d+","4dvOVic","fixedSegmentDuration","padStart","templateRegex","reduce","includes","buildMatchInfo","MAX_SAFE_INTEGER","targetDurationSecs","representationId","resolveSegment","(?:^|/)","segmentCount","<<<REPID>>>","getSegmentInfoForUri","7355640IJmpcJ","1210635KVqkUd"];return(bn=function(){return t})()}const Tn=Dn;!function(t){const e=Dn,i=t();for(;;)try{if(806693==parseInt(e(326))/1*(parseInt(e(319))/2)+parseInt(e(298))/3*(parseInt(e(343))/4)+parseInt(e(297))/5+parseInt(e(341))/6+-parseInt(e(315))/7+-parseInt(e(324))/8+parseInt(e(327))/9*(-parseInt(e(328))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bn);const wn=/\$Time%0(\d+)d\$/,En=/\$Number%0(\d+)d\$/,An=/\$Bandwidth%0(\d+)d\$/;class In{constructor(t){const e=Dn;var i,s,n,r,o,a;this.hasUniqueSegmentUris=!0,this.mediaTemplate=t.mediaTemplate,this.timescale=null!==(i=t[e(316)])&&void 0!==i?i:1,this[e(320)]=null!==(s=t[e(320)])&&void 0!==s?s:1,this[e(323)]=t[e(323)],this[e(291)]=t.representationId,this.timeline=null!==(n=t.timeline)&&void 0!==n?n:[],this[e(322)]=null!==(r=t.isLive)&&void 0!==r&&r,this.presentationTimeOffset=null!==(o=t.presentationTimeOffset)&&void 0!==o?o:0,this[e(344)]=null!==(a=t[e(344)])&&void 0!==a?a:0,this[e(302)]=t[e(302)],this.usesFixedDuration=0===this.timeline.length&&this[e(344)]>0,this.usesTimeTemplate=this[e(331)][e(348)]("$Time$")||wn[e(299)](this[e(331)]),this[e(308)]=function(t,e,i){const s=Tn;let n=t;return void 0!==e&&(n=n[s(338)]("$Bandwidth$",String(e)),n=n[s(338)](An,(t,i)=>Cn(e,i))),void 0!==i&&(n=n[s(338)]("$RepresentationID$",i)),n}(this[e(331)],this[e(323)],this[e(291)]),this.resolvedInitUri=t[e(303)]?Rn(t.initTemplate,0,this[e(320)],this[e(323)],this.representationId):void 0}get[Tn(294)](){const t=Tn;if(this.usesFixedDuration){if(this[t(302)]&&this[t(302)]>0&&this[t(316)]>0){const e=this[t(302)]*this[t(316)]/1e3;return Math[t(336)](e/this[t(344)])}return Number.MAX_SAFE_INTEGER}return this.timeline[t(347)]((t,e)=>t+e.r+1,0)}get targetDurationSecs(){const t=Tn;return this[t(332)]&&this.timescale>0?this[t(344)]/this[t(316)]:this.timeline.length>0&&this.timescale>0?this[t(306)][0].d/this[t(316)]:0}get[Tn(339)](){const t=Tn;return this.usesFixedDuration&&this[t(302)]?this[t(302)]/1e3:this.timescale>0?this[t(306)][t(347)]((t,e)=>t+e.d*(e.r+1),0)/this[t(316)]:0}[Tn(307)](t){const e=Tn;if(t<0)return;if(this[e(332)]){if(this.segmentCount!==Number[e(289)]&&t>=this[e(294)])return;const i=t*this[e(344)];return Pn(this[e(308)],i,this[e(320)]+t)}const i=this.resolveSegment(t);return i?Pn(this[e(308)],i[0],this[e(320)]+t):void 0}[Tn(296)](t,e){const i=Tn,s=this[i(312)]().exec(t);if(!s||!s[1])return;const n=parseInt(s[1],10);if(isNaN(n))return;if(this[i(332)]&&!this[i(301)]){const t=n-this.startNumber;if(t>=0)return this[i(288)](t,t*this[i(344)],this[i(344)])}const r=this[i(301)]?this.findSegmentByTime(n):n-this[i(320)],o=this[i(292)](r);return o?this[i(288)](r,o[0],o[1]):{segmentNumber:-1,estimatedTimeSecs:0,estimatedDurationSecs:this.targetDurationSecs>0?this[i(290)]:0}}[Tn(329)](t){const e=Tn;if(!this[e(335)])return!1;const i=this[e(334)]();return!!i&&i[e(299)](t)}[Tn(311)](t){const e=Tn;if(t<0||t>=this.segmentCount)return;if(this[e(332)])return this[e(288)](t,t*this[e(344)],this[e(344)]);const i=this[e(292)](t);return i?this[e(288)](t,i[0],i[1]):void 0}[Tn(288)](t,e,i){const s=Tn;return{segmentNumber:t,estimatedTimeSecs:this.timescale>0?(e-this.presentationTimeOffset)/this[s(316)]:0,estimatedDurationSecs:this.timescale>0?i/this[s(316)]:0}}[Tn(292)](t){const e=Tn;if(t<0)return;let i=t,s=0;for(const t of this[e(306)]){void 0!==t.t&&(s=t.t);const e=t.r+1;if(i<e)return[s+i*t.d,t.d];i-=e,s+=e*t.d}}[Tn(333)](t){const e=Tn;let i=0,s=0;for(const n of this.timeline){void 0!==n.t&&(s=n.t);const r=n.r+1,o=s+r*n.d;if(t<o&&t>=s){const r=Math[e(309)]((t-s)/n.d);if(s+r*n.d===t)return i+r}i+=r,s=o}return-1}getTemplateRegex(){const t=Tn;return!this[t(346)]&&(this[t(346)]=Nn(this.mediaTemplate,this[t(323)],this[t(291)])),this.templateRegex}getInitRegex(){const t=Tn;return!this.initRegex&&this[t(335)]&&(this[t(330)]=Nn(this[t(335)],this[t(323)],this[t(291)])),this.initRegex}}function Rn(t,e,i,s,n){const r=Tn;let o=t;return o=o[r(338)](r(325),String(e)),o=o[r(338)](r(314),String(i)),o=o.replace(wn,(t,i)=>Cn(e,i)),o=o[r(338)](En,(t,e)=>Cn(i,e)),void 0!==s&&(o=o[r(338)](r(317),String(s)),o=o[r(338)](An,(t,e)=>Cn(s,e))),void 0!==n&&(o=o[r(338)](r(305),n)),o=o.replace(/\$\$/g,"$"),o}function Pn(t,e,i){return Rn(t,e,i)}function Dn(t,e){return t-=288,bn()[t]}function Cn(t,e){const i=Tn,s=parseInt(e,10);return isNaN(s)?String(t):String(t)[i(345)](s,"0")}
2function Nn(t,e,i){const s=Tn,n=t[s(348)](s(325)),r=t[s(348)](s(314)),o=wn[s(299)](t),a=En[s(299)](t);let c=t;return n||o?c=n?c.replace(s(325),s(321)):c[s(338)](wn,s(321)):(r||a)&&(c=r?c.replace(s(314),s(321)):c[s(338)](En,s(321))),c=c[s(338)](/\$Time\$/g,s(340))[s(338)](/\$Number\$/g,s(340)),c=c.replace(new RegExp(wn[s(300)],"g"),s(340)),c=c[s(338)](new RegExp(En[s(300)],"g"),"<<<NONCAP>>>"),void 0!==e?(c=c[s(338)](/\$Bandwidth\$/g,s(337)),c=c[s(338)](new RegExp(An[s(300)],"g"),"<<<LITERAL_BW>>>")):(c=c.replace(/\$Bandwidth\$/g,s(340)),c=c[s(338)](new RegExp(An.source,"g"),s(340))),c=void 0!==i?c[s(338)](/\$RepresentationID\$/g,"<<<LITERAL_REPID>>>"):c[s(338)](/\$RepresentationID\$/g,s(295)),c=c[s(338)](/\$\$/g,s(313)),c=Ln(c),c=c.replace(/<<<CAPTURE>>>/g,s(318))[s(338)](/<<<NONCAP>>>/g,s(342)),void 0!==e&&(c=c[s(338)](/<<<LITERAL_BW>>>/g,Ln(String(e)))),void 0!==i&&(c=c[s(338)](/<<<LITERAL_REPID>>>/g,Ln(i))),c=c[s(338)](/<<<REPID>>>/g,s(304))[s(338)](/<<<DOLLAR>>>/g,"\\$"),new RegExp(s(293)+c)}function Ln(t){const e=Tn;return t.replace(/[.*+?^${}()|[\]\\]/g,e(310))}const Bn=kn;function kn(t,e){return t-=328,Mn()[t]}!function(t){const e=kn,i=t();for(;;)try{if(715259==parseInt(e(399))/1+parseInt(e(366))/2*(parseInt(e(351))/3)+-parseInt(e(401))/4*(-parseInt(e(379))/5)+parseInt(e(387))/6+-parseInt(e(386))/7*(-parseInt(e(384))/8)+-parseInt(e(328))/9*(parseInt(e(367))/10)+parseInt(e(385))/11*(-parseInt(e(388))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Mn);class xn{[Bn(397)](e,i,s){const n=Bn;if(e[n(371)](n(373)))try{const r=t[n(397)](e,{url:i});return this[n(357)](r,i,s)}catch(t){return}}[Bn(357)](t,e,i){const s=Bn;var n,r;const o=null!==(n=t[s(335)])&&void 0!==n?n:[],a=Fe(e),c=new Map,d=t[s(350)]?Math.round(1e3*t[s(350)]):void 0,h=void 0!==t[s(389)];return o[s(330)]((t,e)=>{const n=s;var r,o,l,u,p,f,g,m,v,y,S,_,b,T,w,E,A;const I=new Vi;I.bandwidth=null!==(o=null===(r=t[n(349)])||void 0===r?void 0:r[n(354)])&&void 0!==o?o:0,I[n(363)]=null!==(l=t[n(361)])&&void 0!==l?l:"",I.targetDuration=null!==(u=t.targetDuration)&&void 0!==u?u:0;const R=I[n(363)]&&""!==I[n(363)]?I[n(363)]:String(e);i[n(392)](R,I);const P=this[n(337)](t,I,h,d);null===(p=t.segments)||void 0===p||p[n(330)](t=>{const e=n;var s,r,o;const a=Fe(null!==(r=null!==(s=t[e(361)])&&void 0!==s?s:t.uri)&&void 0!==r?r:""),c=Fe(null!==(o=t[e(363)])&&void 0!==o?o:a);i[e(370)](R,a,c)});const D=null===(g=null===(f=t[n(349)])||void 0===f?void 0:f.RESOLUTION)||void 0===g?void 0:g[n(346)],C=null===(v=null===(m=t.attributes)||void 0===m?void 0:m[n(372)])||void 0===v?void 0:v[n(355)],N=null===(y=t[n(349)])||void 0===y?void 0:y[n(402)],[L,B]=function(t){const e=Bn;if(!t)return[void 0,void 0];const i=t[e(345)](",")[e(360)](t=>t[e(391)]())[e(362)](t=>t[e(353)]>0),s=[],n=[];for(const t of i){const i=t.toLowerCase();On[e(376)](t=>i.startsWith(t))?s[e(342)](t):Un[e(376)](t=>i[e(336)](t))&&n.push(t)}return[s[e(358)](",")||void 0,n[e(358)](",")||void 0]}(N),k=null===(S=t.attributes)||void 0===S?void 0:S[n(383)],x=this[n(380)](null===(_=t.attributes)||void 0===_?void 0:_["CONTENT-TYPE"],null!==(T=null===(b=t[n(349)])||void 0===b?void 0:b["MIME-TYPE"])&&void 0!==T?T:D?"video/":void 0),M=Fe(I[n(363)]),O=new Ii({uri:M,id:null!==(E=null===(w=t[n(349)])||void 0===w?void 0:w[n(396)])&&void 0!==E?E:String(e),protocol:Ti[n(365)],isMasterManifest:!1,isLive:h,durationMs:null!=d?d:-1,trackType:null!=x?x:D&&C?wi[n(381)]:void 0,bitrate:I[n(364)],videoCodecs:L,audioCodecs:B,width:null!=D?D:-1,height:null!=C?C:-1,frameRate:null!=k?k:-1,segmentIndex:P}),U=He(M)||He(a),q=null!==(A=c[n(378)](U))&&void 0!==A?A:[];q[n(342)](O),c[n(375)](U,q)}),{manifest:new Ii({uri:a,protocol:Ti.DASH,isMasterManifest:!0,isLive:h,durationMs:null!=d?d:-1,tracks:c,sourceUrl:e}),targetDurationSeconds:null===(r=o[0])||void 0===r?void 0:r[s(331)]}}[Bn(337)](t,e,i,s){const n=Bn;var r,o,a,c,d,h,l,u,p,f,g,m;const v=t[n(341)];if(!v||0===v.length)return;const y=null!==(r=t[n(331)])&&void 0!==r?r:0,S=null===(o=t[n(349)])||void 0===o?void 0:o[n(344)],_=null===(a=t.attributes)||void 0===a?void 0:a[n(343)];if(S){const r=this[n(347)](v),o=null!==(d=null===(c=t.attributes)||void 0===c?void 0:c[n(394)])&&void 0!==d?d:1,a=null!==(l=null===(h=t[n(349)])||void 0===h?void 0:h[n(398)])&&void 0!==l?l:1;return new In({mediaTemplate:S,initTemplate:_,timescale:o,startNumber:a,bandwidth:e.bandwidth,representationId:null===(u=t.attributes)||void 0===u?void 0:u[n(396
2)],timeline:r,isLive:i,fixedSegmentDuration:null!==(f=null===(p=t.attributes)||void 0===p?void 0:p[n(329)])&&void 0!==f?f:0,manifestDurationMs:s})}const b=[],T=[];let w,E=0;const A=v[n(333)](t=>{var e;return null===(e=t[n(360)])||void 0===e?void 0:e.resolvedUri});(null===(g=null==A?void 0:A.map)||void 0===g?void 0:g.resolvedUri)&&(w=Fe(A[n(360)][n(361)])),v[n(330)](t=>{const e=n;var i,s,r;const o=Fe(null!==(s=null!==(i=t[e(361)])&&void 0!==i?i:t[e(363)])&&void 0!==s?s:"");b[e(342)](o);const a=null!==(r=t[e(350)])&&void 0!==r?r:y;T[e(342)](a),E+=a});const I=T[n(360)]((t,e)=>({d:Math.round(1e3*t),r:0,t:0===e?0:void 0}));return new In({mediaTemplate:null!==(m=b[0])&&void 0!==m?m:"",initTemplate:w,timescale:1e3,startNumber:0,bandwidth:e.bandwidth,timeline:I,isLive:i,manifestDurationMs:s})}[Bn(347)](t){const e=Bn;var i;const s=[];for(const n of t){const t=null!==(i=n[e(350)])&&void 0!==i?i:0,r=n.presentationTime;s[e(342)]({d:Math[e(400)](1e3*t),r:0,t:void 0!==r?Math[e(400)](1e3*r):void 0})}return s}[Bn(380)](t,e){const i=Bn,s=null==t?void 0:t.toLowerCase();return"video"===s?wi[i(381)]:s===i(359)?wi[i(338)]:"text"===s?wi.TEXT:(null==e?void 0:e[i(336)](i(395)))?wi[i(381)]:(null==e?void 0:e[i(336)](i(332)))?wi.AUDIO:(null==e?void 0:e[i(336)]("text/"))||(null==e?void 0:e[i(336)]("application/"))?wi[i(340)]:void 0}}function Mn(){const t=["429441mBkzGG","ec-3","length","BANDWIDTH","height","opus","buildManifestModel","join","audio","map","resolvedUri","filter","uri","bandwidth","DASH","2tDBtbt","4490tBkMOq","dtsc","dtse","addSegment","includes","RESOLUTION","<MPD","avc1.","set","some","mp4a.","get","110lCZpIi","resolveTrackType","VIDEO","hev1.","FRAME-RATE","320200qqFjVW","33429paCrHF","189nNjFDf","5081946OdlHfU","9696uKjdme","minimumUpdatePeriod","avc3.","trim","addRendition","av01.","TIMESCALE","video/","NAME","parse","START-NUMBER","1292133CvVNkD","round","148496hMIIkb","CODECS","20223zeVzhy","DURATION","forEach","targetDuration","audio/","find","hvc1.","playlists","startsWith","buildSegmentIndex","AUDIO","dtsh","TEXT","segments","push","INIT-TEMPLATE","MEDIA-TEMPLATE","split","width","buildTimeline","flac","attributes","duration"];return(Mn=function(){return t})()}const On=[Bn(374),Bn(390),Bn(334),Bn(382),"vp9","vp09.",Bn(393)],Un=[Bn(377),"ac-3",Bn(352),Bn(356),Bn(368),Bn(369),Bn(339),Bn(348)],qn=Fn;!function(t){const e=Fn,i=t();for(;;)try{if(417619==parseInt(e(245))/1+parseInt(e(210))/2*(parseInt(e(264))/3)+parseInt(e(259))/4+-parseInt(e(263))/5*(-parseInt(e(271))/6)+-parseInt(e(249))/7*(-parseInt(e(285))/8)+parseInt(e(231))/9*(-parseInt(e(325))/10)+parseInt(e(314))/11*(-parseInt(e(261))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Hn);const Vn=qn(270);function Fn(t,e){return t-=206,Hn()[t]}function Hn(){const t=["now","isMasterManifest","manifestKey","lastHit-force-deferred","protocol"," Lookahead populated: track=","hlsParser","resolveFromLookahead","evictIfNeeded","estimatedDurationSecs",", cacheSize=","segmentInfo","#EXTM3U","entries","uri","resolveCount","tracks","lastHitForceHits","11bLTEeW","some","manifestLastHitTime","isTrackOfKnownMaster","lookaheadEvictionQueue",", parseTimeMs=","trackUri","copy","bitrate","lastHitFastHits","clear","40LQzAYD","segmentNumber","segmentIndex","lastHit-force","trackId","getSegmentUri","pop"," resolveUrl: url=","endsWith","from","acceptMatch",", remaining=","trackType","height","processManifest","6AkmAGH","tryAttachSubManifest","evictLookaheadIfNeeded",": url=","miss","Registered standalone media playlist","lookaheadHits","subManifestAttachments","assign"," Evicted manifest: key=","dashParser","lookahead-cache","updateTrackAffinity","verbose","touchManifest","Parsed manifest with no SegmentIndex","pass1-fast","segmentLookahead","stats","language","manifest","1069137TebtOd","findTrackByIdentity","logResolve","lastHitTrackUri","push","MEDIA_SEGMENT","size","includes","filter","urlType","lastHitManifestKey","length","split","segmentCount","284036GvlEni","promoteManifest","audioCodecs","findTrackKey","7ZdfewA","replace","onManifest","parseCount"," Failed to parse manifest: url=","resource","map","manifestOrder","match","delete","2888828pZwqWK","min","5463732WiqRqX",", manifestCount=","5avmFZz","133251Qlyhxt"," Failed to process manifest: url=","manifests","width","resolveHits","estimatedTimeSecs","[ManifestFeature]","225042dkMRqi","toFixed","SUB_MANIFEST","sort","populateLookahead",", protocol=","has","triggerLookaheadIfNeeded","containerMimeType","<MPD","videoCodecs","manifest-direct","pass2-force","warn","1368808eolEmn","parse","get","resolveUrl",", via=","set","resolveMisses","frameRate","targetDurationSeconds",", fromSegment="," Lookahead evicted: count="];return(Hn=function(){return t})()}class Gn{constructor(t){const e=qn;this[e(302)]=new cs,this.dashParser=new xn,this[e(266)]=new Map,this[e(227)]=new Map,this.lookaheadEvictionQueue=[],this[e(256)]=[],this[e(316)]=new Map,this.stats={parseCount:0,resolveCount:0,resolveHits:0,resolveMisses:0,lookaheadHits:0,lastHitFastHits:0,lastHitForceHits:0,multiPassHits:0,subManifestAttachments:0},this[e(254)]=t}[qn(251)](t,e){const n=qn;this.stats[n(252)]++;try{return this[n(209)](t,e)}catch(e){return void i.default[n(284)](s.BalancerTag,Vn+n(265)+t+", error="+e)}}[qn(288)](t,e){const i=qn;this[i(228)][i(311)]++;const s=performance[i(296)](),n=Fe(t),[r,o]=je(n),a=this.manifests.get(n);if(a)return this[i(241)]!==n&&(this[i(241)]=n),!a[i(297)]&&a[i(327)]&&(this[i(234)]=a[i(310)]),this.promoteManifest(n),this.touchManifest(n),this.stats[i(268)]++,this.logResolve(t,s,i(282)),{urlType:a.isMasterManifest?Ei.MASTER_MANIFEST:Ei[i(273)],manifest:a,track:void 0,segmentNumber:void 0,segmentTimeSecs:void 0,segmentDurationSecs:void 0};if(void 0===e){const r=this.resolveFromLookahead(n);if(r)return this[i(227)].delete(n),this[i(228)][i(268)]++,this[i(228)][i(216)]++,this[i(233)](t,s,i(221)),this[i(335)](r[i(298)],r[i(257)],t,s,i(221),e)}const c=this[i(234)],d=this[i(241)];let h,l;if(d){const n=this[i(266)][i(287)](d);if(n){const a=n.resolveUrl(r,o,!1,!1,e,c);if(a){if(n.isMasterManifest||!n[i(327)]||!c||c===n[i(310)]||void 0===a[i(326)])return this[i(228)].resolveHits++,this[i(228)][i(323)]++,this[i(335)](d,a,t,s,"lastHit-fast",e);h=a,l=d}const u=n.resolveUrl(r,o,!0,!0,e,c);if(u){if(n[i(297)]||!n[i(327)])return this.stats[i(268)]++,this[i(228)][i(313)]++,this[i(335)](d,u,t,s,i(328),e);h=u,l=d}}}const u=[{skipChecks:!1,force:!1,via:i(226)},{skipChecks:!0,force:!0,via:i(283)}];for(const{skipChecks:n,force:a,via:h}of u)for(const l of this[i(256)]){if(l===d)continue;const u=this[i(266)][i(287)](l);if(!u)continue;const p=u.resolveUrl(r,o,n,a,e,c);if(p)return this[i(228)][i(268)]++,this.stats.multiPassHits++,this.acceptMatch(l,p,t,s,h,e)}return h&&l?(this[i(228)][i(268)]++,this[i(228)][i(313)]++,this.acceptMatch(l,h,t,s,i(299),e)):(this[i(228)][i(291)]++,void this[i(233)](t,s,i(214)))}[qn(317)](t){const e=qn,i=Fe(t),s=He(i);for(const[,t]of this.manifests)if(t[e(297)]&&void 0!==this.findTrackKey(t,s,i))return!0;return!1}[qn(324)](){const t=qn;this.manifests[t(324)](),this[t(256)]=[],this[t(241)]=void 0,this.lastHitTrackUri=void 0,this[t(316)][t(324)](),this.segmentLookahead[t(324)](),this[t(318)].length=0}getResolveStats(){const t=qn;return Object[t(218)](Object.assign({},this[t(228)]),{manifestCount:this.manifests[t(237)],lookaheadSize:this[t(227)][t(237)]})}acceptMatch(t,e,i,s,n,r){const o=qn;return this[o(241)]!==t&&(this[o(241)]=t),this.promoteManifest(t),this[o(224)](t),this[o(222)](e),this[o(278)](t,e,r),this[o(233)](i,s,n),e}[qn(222)](t){const e=qn;var i;const s=null===(i=t.track)||void 0===i?void 0:i.uri;s&&s[e(242)]>0&&(t.track[e(327)]||t[e(240)]===Ei[e(273)])&&(this[e(234)]=s)}[qn(278)](t,e,i){const s=qn;if(void 0!==i)return;if(e[s(240)]!==Ei[s(236)])return;const n=e.track;if(!n)return;const r=e[s(326)];if(void 0===r||r<0)return;const o=n[s(327)];o&&o.hasUniqueSegmentUris&&this[s(275)](t,n,r)}populateLookahead(t,e,n){const r=qn,o=e[r(327)];if(!o)return;const a=e[r(310)],c=n+1,d=Math[r(260)](c+10,o[r(244)]);let h=0;for(let i=c;i<d;i++){const s=o[r(330)](i);if(!s)continue;const n=Fe(s);if(this[r(227)].has(n))continue;const a=o.getSegmentInfoByNumber(i);a&&(this[r(227)][r(290)](n,{manifestKey:t,trackUri:e[r(310)],trackId:e.id,trackBitrate:e[r(322)]>=0?e[r(322)]:void 0,segmentInfo:a,urlType:Ei[r(236)]}
2),this[r(318)][r(235)](n),h++)}this[r(212)](),i.default[r(223)](s.BalancerTag,Vn+r(301)+a+r(294)+n+", added="+h+", cacheSize="+this[r(227)][r(237)])}[qn(212)](){const t=qn;let e=0;for(;this[t(227)][t(237)]>100&&this[t(318)][t(242)]>0;){const i=this[t(318)].shift();this.segmentLookahead.delete(i)&&e++}e>0&&i.default.verbose(s.BalancerTag,Vn+t(295)+e+t(306)+this[t(227)][t(237)])}[qn(303)](t){const e=qn,i=this[e(227)][e(287)](t);if(!i)return;const s=this[e(241)];if(s&&i[e(298)]!==s)return;const n=this[e(266)].get(i[e(298)]);if(!n)return;const r=He(t),o=n[e(312)][e(287)](r);if(o&&o[e(242)]>1){const t=this.lastHitTrackUri;if(!t)return;if(i[e(320)]!==t)return}const a=this[e(232)](n,i[e(320)],i[e(329)],i.trackBitrate);return a?{manifestKey:i[e(298)],match:{urlType:i[e(240)],manifest:n,track:a,segmentNumber:i[e(307)].segmentNumber,segmentTimeSecs:i[e(307)][e(269)],segmentDurationSecs:i[e(307)][e(305)]}}:void 0}[qn(232)](t,e,i,s){const n=qn,r=He(e),o=r[n(242)]>0?t[n(312)][n(287)](r):void 0;if(o){for(const t of o)if(t[n(310)]===e&&t.id===i&&(void 0===s||t[n(322)]===s))return t;for(const t of o)if(t[n(310)]===e)return t}for(const[,r]of t[n(312)])if(r!==o)for(const t of r)if(t[n(310)]===e&&t.id===i&&(void 0===s||t[n(322)]===s))return t;for(const[,i]of t[n(312)])if(i!==o)for(const t of i)if(t[n(310)]===e)return t;if(t[n(310)]===e&&t[n(327)])return t}[qn(209)](t,e){const n=qn,r=performance[n(296)]();let o,a;if(e[n(238)](n(280))){const i=this[n(220)][n(286)](e,t,this[n(254)]);i&&(o=i[n(230)],a=i[n(293)])}else if(e[n(238)](n(308))){const i=this[n(302)][n(286)](e,t,this[n(254)]);i&&(o=i[n(230)],a=i[n(293)])}if(!o)return void i.default.warn(s.BalancerTag,Vn+n(253)+t);const c=Fe(t),d=void 0!==o[n(327)]&&!o.isMasterManifest&&this[n(211)](t,o);!d&&(o[n(297)]||void 0!==o[n(327)])&&(this.manifests[n(290)](c,o),this[n(246)](c),this[n(224)](c),this.evictIfNeeded());const h=(performance[n(296)]()-r)[n(272)](2),l=o[n(297)]?"Registered master manifest":d?"Attached sub-manifest to parent":o[n(327)]?n(215):n(225);return i.default.verbose(s.BalancerTag,Vn+" "+l+n(213)+t+n(276)+o.protocol+n(319)+h),{isMasterManifest:o[n(297)],targetDurationSeconds:a}}[qn(211)](t,e){const i=qn;var s,n,r,o,a,c,d;const h=Fe(t),l=He(h);for(const[t,u]of this[i(266)]){if(!u[i(297)])continue;if(u[i(300)]!==e[i(300)])continue;const p=this.findTrackKey(u,l,h);if(!p)continue;const f=u[i(312)].get(p);if(!f)continue;const g=null!==(s=f.find(t=>{const e=i,s=Fe(t[e(310)]);return h===s||h[e(333)](s)||s[e(242)]>1&&h.includes(s)}))&&void 0!==s?s:f[0];if(!g)continue;const m=e[i(321)]({id:null!==(n=g.id)&&void 0!==n?n:e.id,bitrate:g[i(322)]>=0?g.bitrate:e[i(322)],videoCodecs:null!==(r=g[i(281)])&&void 0!==r?r:e[i(281)],audioCodecs:null!==(o=g.audioCodecs)&&void 0!==o?o:e[i(247)],width:g[i(267)]>=0?g[i(267)]:e[i(267)],height:g.height>=0?g[i(208)]:e[i(208)],language:null!==(a=g[i(229)])&&void 0!==a?a:e.language,containerMimeType:null!==(c=g[i(279)])&&void 0!==c?c:e.containerMimeType,frameRate:g[i(292)]>=0?g.frameRate:e[i(292)],trackType:null!==(d=g[i(207)])&&void 0!==d?d:e.trackType}),v=new Map(u[i(312)]);for(const[t,e]of u[i(312)])v[i(290)](t,e[i(255)](t=>t===g?m:t));const y=He(m[i(310)]);if(y.length>0){const t=v.get(y);t?t[i(315)](t=>t[i(310)]===m[i(310)])?v[i(290)](y,t[i(255)](t=>t[i(310)]===m[i(310)]?m:t)):v[i(290)](y,[...t,m]):v[i(290)](y,[m])}return this[i(266)].set(t,u[i(321)]({tracks:v})),this[i(246)](t),this[i(224)](t),this[i(234)]=m[i(310)],this.stats[i(217)]++,!0}return!1}[qn(248)](t,e,i){const s=qn;if(t[s(312)][s(277)](e))return e;for(const[n]of t[s(312)])if(n[s(242)]>1&&(i[s(238)](n)||e[s(333)](n)))return n;const n=i.split("/").pop()||"";for(const[e,i]of t[s(312)])for(const t of i){const i=He(Fe(t.uri))[s(250)](/\/$/,"")[s(243)]("/")[s(331)]()||"";if(i[s(242)]>8&&n[s(238)](i))return e}}[qn(246)](t){const e=qn;this.manifestOrder[0]!==t&&(this.manifestOrder=[t,...this[e(256)].filter(e=>e!==t)])}[qn(224)](t){const e=qn;this[e(316)][e(290)](t,performance.now())}[qn(304)](){const t=qn;for(var e;this[t(266)][t(237)]>6;){const n=Array[t(334)](this[t(316)][t(309)]())[t(239)](([e])=>this[t(266)][t(277)](e)),r=n.filter(([e])=>{const i=t;var s;return!0!==(null===(s=this[i(266)][i(287)](e))||void 0===s?void 0:s[i(297)])}),o=null===(e=(r[t(242)]>0?r:n)[t(274)]((t,e)=>t[1]-e[1])[0])||void 0===e?void 0:e[0];if(!o)break;this[t(266)].delete(o),this[t(316)][t(258)](o),this.manifestOrder=this[t(256)][t(239)](t=>t!==o);const a=[];for(const[e,i]of this[t(227)])i[t(298)]===o&&a.push(e);for(const e of a)this[t(227)].delete(e);this[t(241)]===o&&(this[t(241)]=void 0),i.default[t(223)](s.BalancerTag,Vn+t(219)+o+t(206)+this[t(266)][t(237)])}}[qn(233)](t,e,n){const r=qn,o=(performance[r(296)]()-e).toFixed(3);i.default.verbose(s.BalancerTag,Vn+r(332)+t+r(289)+n+", timeMs="+o+r(262)+this[r(266)].size)}}function jn(){const t=["60229SLRBKv","10827414ZoWBTH","559170RSFPjI","236QbpMBk","push","417675CYwEUA","20004CkkSEU","319UTCTYz","6BsBObA","length","1uZSpRc","8OfDTHR","6974961NbXVKJ","80979fzQsBM","2790622YMgkNa"];return(jn=function(){return t})()}function Wn(t,e){return t-=182,jn()[t]}function Xn(t,e){return e+4>t.length?0:(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function zn(t,e){return e+8>t[Wn(195)]?0:4294967296*Xn(t,e)+Xn(t,e+4)}function Kn(t,e){return e+4>t.length?"":String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])}!function(t){const e=Wn,i=t();for(;;)try{if(830716==parseInt(e(196))/1*(-parseInt(e(185))/2)+parseInt(e(184))/3*(-parseInt(e(189))/4)+-parseInt(e(191))/5*(parseInt(e(194))/6)+-parseInt(e(183))/7*(parseInt(e(182))/8)+-parseInt(e(187))/9+-parseInt(e(188))/10*(parseInt(e(193))/11)+parseInt(e(192))/12*(parseInt(e(186))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(jn);const Jn={parse(t,e){const i=Wn;let s=0;for(;t[i(195)]-s>=8;){const n=s,r=Xn(t,s);if(s+=4,r<8)return;const o=Kn(t,s);let a;if(s+=4,1===r){if(t[i(195)]-s<8)return;a=zn(t,s),s+=8}else a=r;if(a>t[i(195)]-n)return;if("sidx"===o)return $n(t,s,0,e+n+a);s=n+a}}};function $n(t,e,i,s){const n=Wn;let r=e;if(t[n(195)]-r<12)return;const o=255&t[r];r+=4,Xn(t,r),r+=4;const a=Xn(t,r);if(r+=4,a<=0)return;let c,d;if(0===o)c=Xn(t,r),r+=4,d=Xn(t,r),r+=4;else{if(1!==o)return;if(t[n(195)]-r<16)return;c=zn(t,r),r+=8,d=zn(t,r),r+=8}if(t.length-r<4)return;r+=2;const h=(u=r)+2>(l=t).length?0:l[u]<<8|l[u+1];var l,u;r+=2;let p=s+d,f=c;const g=[];for(let e=0;e<h;e++){if(t[n(195)]-r<12)return;const e=Xn(t,r);if(r+=4,e>>>31&1)return;const i=2147483647&e,s=Xn(t,r);if(r+=4,Xn(t,r),r+=4,i<=0)return;g[n(190)]({start:p,endInclusive:p+i-1,presentationTimeUnits:f,durationUnits:s}),p+=i,f+=s}return{timescale:a,segments:g}}const Yn=br;!function(t){const e=br,i=t();for(;;)try{if(439751==parseInt(e(489))/1*(-parseInt(e(353))/2)+-parseInt(e(342))/3+parseInt(e(443))/4*(parseInt(e(409))/5)+parseInt(e(385))/6*(-parseInt(e(375))/7)+parseInt(e(528))/8*(-parseInt(e(491))/9)+parseInt(e(383))/10+parseInt(e(432))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Zn);
2var Qn=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=br;function a(t){const e=br;try{d(s[e(466)](t))}catch(t){r(t)}}function c(t){const e=br;try{d(s[e(461)](t))}catch(t){r(t)}}function d(t){const e=br;var s;t.done?n(t[e(333)]):(s=t.value,s instanceof i?s:new i(function(t){t(s)})).then(a,c)}d((s=s[o(515)](t,e||[]))[o(466)]())})};function Zn(){const t=["buildUrlFallbackSwarmIdentity","(\\d+)","application/xml","dashSingleFileIndexLoaderAsync","durationsByToken","BANDWIDTH","isInteger","VIDEO_ID","dashMatchersByManifest","__awaiter","2705409URybsO","duration","join","base","initialization","adapt|","selectSwarmIdentity","audio_","1051070JsIrMW","mediaRegexes","6tLtXRS","exactMatchKeysByManifest","registerDashManifest","registerHlsManifest","lastIndex","toUpperCase","toString","toLowerCase","registerHlsPlaylistContext","period-","add","VIDEO","isHlsManifest","bytes=",":number:","dash-mpd:","hlsContextKeysByManifest","substring","hash","durationUnits","|res=","MPD","Initialization","max","5vGjpBT","attributes","sort",".m4a","list",".aac","CODECS","buildHlsMasterSwarmIdentity","clearHlsContextsForManifest","renditionBandwidthBps","parsererror","registerDashSegmentList","iframe|","writeSidxAsExactMatches","registerDashInitialization","size","__NPAW_ESCAPED_DOLLAR__","variant|","\\d+","materializationAttempted","nodeName","buildDashMpdSwarmIdentity","length","9314107TGExKN","keys","clear","timescale","RESOLUTION","video","bandwidthForRendition","isFinite","|name=","resourceUrl","text","2163928drjmDP","set","startsWith","timelineChildren","dashSingleFileContextsByManifest","push","startNumber","split","hasSingleFileContextFor","groupKey","map","|video=","registerHlsMaster",":init:list","protocol","#ext-x-program-date-time:","defaultDurationMilliseconds","endInclusive","throw","SegmentTemplate","Bytes=","isDashManifest","lang","next","LANGUAGE","unknown","video:","url","clearExactMatchesForManifest","setDashSingleFileIndexLoaderAsync","presentationId","then","undefined","mediaRange","exec","materialized","indexRange","canonicalId","BaseURL","manifestRequestHeadersByManifest","HLS_MASTER","CLOSED-CAPTIONS","subtitle","hlsContextsByPlaylistUrl","_currentSwarmIdentity","name","436166BdvKhx","hls:","6282qeJyhA","addExactMatch","SegmentBase","ownerManifestUrl","Representation","disc:","URL_FALLBACK","slice","pathname","currentSwarmIdentity","range","__NPAW_CAPTURE__","time:","nodeValue","values",":init:","representationIdentity","delete","nodeType","asHeader","renditionResourceUrl","audio","match","registerHlsMediaPlaylist","apply","SegmentList","documentElement","none","AdaptationSet","adaptationIdentity","Range","#ext-x-stream-inf:","|uri=","TYPE","media","captions","|audio=","1576RdhnLg","NAME","createDashTemplateMatcher","SegmentTimeline","#ext-x-media:","SUBTITLES","start","endsWith",":seq:","get","catch","adaptation-","rep|","round","segments","defaultPresentationId","presentationTimeUnits","#extinf:","#ext-x-i-frame-stream-inf:","URI","|codecs=","dashSingleFileIndexLoader","number:","BYTERANGE","test","filter","/text","group","AUDIO","isHlsMasterManifest","mimeType","materializeDashSingleFileRanges","periodIdentity","template","parseFromString","exactMatches","audio-","tokenKind","dash:","getElementsByTagName","indexOf","value","GET",":time:","textContent","number","trim","/sub","children","#ext-x-byterange:","278748xqSjaZ","currentOrCreatePresentationId","registerDashSingleFileContext","\\$&","item","source","vtt","time","GROUP-ID","playlistIdentity","url-fallback:","2Dchpwy","replace","localName","registerManifest","representation-","Period","materializeDashSingleFileRangesAsync","UNKNOWN","setVideoId","ttml","|lang=","trackType"];return(Zn=function(){return t})()}function tr(t,e){return Qn(this,void 0,void 0,function*(){const i=br;if(typeof fetch===i(475))return;const s={};e&&e.length>0&&(s[i(521)]=e);try{const e=yield fetch(t,{headers:s,method:i(334)});if(!e.ok&&206!==e.status)return;const n=yield e.arrayBuffer();return new Uint8Array(n)}catch(t){return}})}const er=Yn(502),ir=Yn(425),sr=/([A-Z0-9-]+)=("(?:[^"\\]|\\.)*"|[^,]*)/g,nr=/(?:^|[_-])(avc|hevc|uhd|hd|sd|low|mid|high|main|video)/gi,rr=/(?:^|[_-])\d{3,4}p(?:$|[_-])|(?:^|[_-])\d{3,5}k(?:$|[_-])|(?:^|[_-])\d{3,7}(?:$|[_-])/gi,or=/\$Number(?:%0\d+d)?\$/,ar=/\$Time(?:%0\d+d)?\$/,cr=/\$Bandwidth(?:%0\d+d)?\$/g,dr=/\$RepresentationID\$/g,hr=/\$
2Number(?:%0\d+d)?\$/g,lr=/\$Time(?:%0\d+d)?\$/g,ur=/[\\^$.*+?()[\]{}|]/g,pr=["/audio/",Yn(382),"_audio",Yn(328),Yn(414),Yn(412)],fr=[Yn(339),Yn(554),Yn(485),Yn(526),"webvtt",".vtt"];function gr(t,e){try{return e?new URL(t,e):new URL(t)}catch(t){return}}function mr(t){const e=Yn,i=t[e(338)]();if(!i)return;const s=gr(i);return s&&s[e(457)]?(s.search="",s[e(403)]="",s[e(391)]()):void 0}function vr(t,e){const i=Yn,s=mr(t);if(!s)return;const n=e.trim(),r=gr(n);if(r&&r[i(457)])return mr(n);const o=gr(n,s);return o?mr(o.toString()):void 0}function yr(t){const e=Yn;if(!t)return;let i=t.trim();if(0===i[e(431)])return;(i[e(445)](e(398))||i[e(445)](e(463)))&&(i=i[e(402)](6).trim());const s=i[e(332)]("-");if(s<=0)return;const n=i[e(402)](0,s)[e(338)](),r=i[e(402)](s+1)[e(338)](),o=Number(n),a=Number(r);return!Number.isInteger(o)||!Number[e(371)](a)||a<o?void 0:"bytes="+o+"-"+a}function Sr(t,e){const i=yr(e);return i?t+"|"+i:t}function _r(t){const e=Yn,i=mr(t);if(!i)return t.toLowerCase();const s=gr(i);return s?s[e(499)].split("/")[e(553)](t=>t[e(431)]>0)[e(453)](t=>{const i=e;let s=t[i(354)](nr,"");return s=s[i(354)](rr,""),s=s.replace(/__/g,"_"),s=s.replace(/^[_-]+|[_-]+$/g,""),s.toLowerCase()}).join("/"):t[e(392)]()}function br(t,e){return t-=328,Zn()[t]}function Tr(t){const e=Yn,i=_r(t);return 0===i.trim()[e(431)]?t[e(338)]().toLowerCase():i}function wr(t){const e=Yn,i=_r(t),s=i.split("/").filter(t=>t[e(431)]>0);return 0===s[e(431)]?i:s[e(498)](Math[e(408)](0,s[e(431)]-2))[e(377)]("/")}function Er(t){const e=Yn,i=t[e(392)]();for(const t of pr)if(i[e(332)](t)>=0)return ee.AUDIO;for(const t of fr)if(i[e(332)](t)>=0)return ee[e(533)];return ee.VIDEO}function Ar(t){const e=Yn,i={};let s;for(sr[e(389)]=0;null!==(s=sr[e(477)](t));){const t=s[1];let n=s[2];n[e(445)]('"')&&n[e(535)]('"')&&n[e(431)]>=2&&(n=n.substring(1,n[e(431)]-1)),i[t]=n}return i}function Ir(t,e=-1){const i=Yn;if(!t)return;const s=t[i(338)]();if(!s)return;const n=s[i(332)]("@"),r=n>=0?s.substring(0,n):s,o=n>=0?s.substring(n+1):void 0,a=Number(r);if(!Number[i(439)](a)||a<=0)return;let c;if(void 0!==o){const t=Number(o);if(!Number.isFinite(t))return;c=t}else c=Math[i(408)](e+1,0);return{start:d=c,endInclusive:h=c+a-1,asHeader:()=>"bytes="+d+"-"+h};var d,h}function Rr(t){const e=Yn;var i;return t.trackType===ee[e(396)]?"video:"+t[e(351)]:t[e(364)]+":"+(null!==(i=t.groupKey)&&void 0!==i?i:t.playlistIdentity)}function Pr(t,e,i,s,n){const r=Yn;var o;let a,c;a=t[r(364)]===ee[r(396)]?"video:"+t.playlistIdentity:t.trackType+":"+(null!==(o=t[r(452)])&&void 0!==o?o:t[r(351)]),c=s&&s[r(431)]>0?"pdt:"+s.toLowerCase():r(496)+i+r(536)+e;let d=r(490)+t[r(473)]+":"+a+":"+c;return n&&(d+=":"+n),d}function Dr(t,e,i){const s=Yn;let n=s(490)+t.presentationId+":"+t[s(364)]+":"+t.playlistIdentity+s(506)+e;return i&&(n+=":"+i),n}function Cr(t,e,i){const s=Yn;if(t===ee[s(396)]){const t=0===i[s(338)]().length?e:i;return s(469)+t}return t+":"+e}function Nr(t,e,i){return Cr(t,e,i)}function Lr(t){const e=Yn;return t[e(354)](ur,e(345))}function Br(t,e,i,s,n){const r=Yn;let o=t[r(354)](/\$\$/g,ir);return o=o.replace(dr,e),void 0!==i&&(o=o[r(354)](cr,i)),o=o[r(354)](hr,s),o=o.replace(lr,n),o[r(354)](new RegExp(ir,"g"),"$")}function kr(t,e){const i=Yn,s=t.split(er);if(1===s.length)return new RegExp("^"+Lr(s[0])+"$");const n="none"===e?"":i(366);let r="^"+Lr(s[0]);for(let t=1;t<s[i(431)];t++)r+=1===t&&""!==n?n:i(427),r+=Lr(s[t]);return r+="$",new RegExp(r)}function xr(t,e){const i=Yn;let s,n,r,o=!1;for(const n of t[i(384)]){const r=n[i(477)](e);if(r){o=!0,(t[i(329)]===i(337)||"time"===t[i(329)])&&(s=r[1]&&r[1][i(431)]>0?r[1]:void 0);break}}if(o&&!(s&&Object[i(433)](t[i(369)]).length>0&&void 0===t[i(369)][s]))return n=s&&void 0!==t.durationsByToken[s]?t[i(369)][s]:t[i(459)],r="number"===t[i(329)]?i(550)+(null!=s?s:i(468)):t.tokenKind===i(349)?i(503)+(null!=s?s:i(468)):"media",{canonicalKey:"dash:"+t[i(473)]+":"+Cr(t[i(364)],t[i(520)],t.representationIdentity)+":"+t[i(560)]+":"+r,rendition:Nr(t.trackType,t.adaptationIdentity,t[i(507)]),renditionResourceUrl:t[i(511)],trackType:t[i(364)],isInitialization:!1,segmentDurationMilliseconds:n}}function Mr(t){const e=Yn,i=t[e(332)](":");return i>=0?t[e(402)](i+1):t}function Or(t){const e=Yn,i=t.replace(/<!DOCTYPE[^>]*>/gi,"");if(typeof DOMParser===e(475))return;const s=(new DOMParser)[e(562)](i,e(367));return!s||!s[e(517)]||s.getElementsByTagName&&s[e(331)](e(419)).length>0?void 0:Ur(s[e(517)])}function Ur(t){const e=Yn,i={localName:Mr(t[e(429)]),attributes:{},children:[],textContent:void 0},s=t[e(410)];if(s)for(let t=0;t<s.length;t++){const n=s.item(t);n&&(i.attributes[Mr(n[e(488)])]=n[e(333)])}let n="";const r=t.childNodes;for(let t=0;t<r[e(431)];t++){const s=r[e(346)](t);
2s&&(1===s.nodeType?i[e(340)][e(448)](Ur(s)):(3===s[e(509)]||4===s[e(509)])&&(n+=s[e(504)]||""))}const o=n[e(338)]();return o[e(431)]>0&&(i[e(336)]=o),i}function qr(t,e){const i=Yn;return t[i(340)][i(553)](t=>t[i(355)]===e)}function Vr(t){const e=Yn;var i,s,n;const r=t=>{const e=br;return t[e(445)](e(512))?ee[e(556)]:t[e(445)](e(442))||t[e(332)](e(348))>=0||t.indexOf(e(362))>=0||t[e(332)](e(485))>=0?ee[e(533)]:ee[e(396)]},o=(null!==(i=t[e(410)].contentType)&&void 0!==i?i:"")[e(392)]();if(o)return r(o);const a=(null!==(s=t[e(410)].mimeType)&&void 0!==s?s:"").toLowerCase();if(a)return r(a);const c=qr(t,"Representation")[0];if(c){const t=(null!==(n=c.attributes[e(558)])&&void 0!==n?n:"").toLowerCase();if(t)return r(t)}return ee[e(360)]}function Fr(t,e,i){const s=Yn;var n,r,o,a;if(i===ee[s(396)])return s(437);const c=t=>t&&t[s(338)]().length>0?t.trim():void 0,d=c(t.attributes.id),h=c(t[s(410)][s(555)]),l=c(t[s(410)][s(465)]),u=c(null===(n=qr(t,"Label")[0])||void 0===n?void 0:n[s(336)]);return null!==(a=null!==(o=null!==(r=null!=d?d:h)&&void 0!==r?r:l)&&void 0!==o?o:u)&&void 0!==a?a:s(539)+e}function Hr(t,e){const i=Yn;var s,n,r,o,a,c;if(!t&&!e)return;const d=(t,e)=>{const i=br;if(!t)return;const s=t.attributes[e];return s&&0!==s[i(338)]()[i(431)]?s:void 0},h=t=>{const e=br;if(void 0===t)return;const i=Number(t);return Number[e(439)](i)?i:void 0},l=null!==(s=d(t,i(525)))&&void 0!==s?s:d(e,i(525)),u=null!==(n=d(t,i(379)))&&void 0!==n?n:d(e,i(379)),p=h(null!==(r=d(t,"duration"))&&void 0!==r?r:d(e,"duration")),f=h(null!==(o=d(t,"timescale"))&&void 0!==o?o:d(e,i(435))),g=null!==(c=h(null!==(a=d(t,"startNumber"))&&void 0!==a?a:d(e,"startNumber")))&&void 0!==c?c:1,m=null!=t?t:e,v=m?qr(m,i(531))[0]:void 0;return{media:l,initialization:u,duration:p,timescale:f,startNumber:g,timelineChildren:v?qr(v,"S"):void 0}}function Gr(t,e,i){const s=Yn;if(0===i[s(431)])return e;const n=new Set,r=[],o=e.length>0?e:[t];for(const e of o){const o=0===e[s(338)]()[s(431)]?t:e;for(const t of i){const e=vr(o,t);e&&!n.has(e)&&(n.add(e),r[s(448)](e))}}return 0===r[s(431)]?0===e[s(431)]?[t]:e:r}class jr{constructor(){const t=Yn;this[t(563)]=new Map,this[t(386)]=new Map,this[t(373)]=new Map,this[t(447)]=new Map,this[t(486)]=new Map,this[t(401)]=new Map,this[t(418)]=new Map,this[t(482)]=new Map}[Yn(500)](){return this[Yn(487)]}[Yn(438)](t){const e=Yn;return this[e(418)][e(537)](t)}setDashSingleFileIndexLoader(t){this[Yn(549)]=t}[Yn(472)](t){this.dashSingleFileIndexLoaderAsync=t}[Yn(361)](t,e=""){const i=Yn;if(!t||0===t[i(338)]()[i(431)])return;const s={canonicalId:t[i(338)](),source:Wt[i(372)],rawResourceUrl:e};this[i(381)](s)}[Yn(365)](t){const e=Yn,i=_r(t);if(0!==i[e(338)]()[e(431)])return{canonicalId:e(352)+$t(i),source:Wt[e(497)],rawResourceUrl:t}}resolve(t){const e=Yn,i=mr(t[e(470)]);if(!i)return;const s=yr(t.rangeHeader);if(s){const t=this[e(563)][e(537)](Sr(i,s));if(t)return t[e(513)]}const n=this[e(563)][e(537)](Sr(i,void 0));if(n)return n.match;for(const t of this[e(373)][e(505)]())for(const e of t){const t=xr(e,i);if(t)return t}if(s)if(this[e(559)](i)){const t=this[e(563)][e(537)](Sr(i,s));if(t)return t.match}else this.hasSingleFileContextFor(i)&&this[e(359)](i)[e(538)](()=>{})}[Yn(451)](t){const e=Yn;for(const i of this[e(447)][e(505)]())for(const s of i)if(s[e(441)]===t&&!s.materialized)return!0;return!1}[Yn(356)](t,e,i=[]){const s=Yn,n=mr(t);if(!n)return;const r=e[s(338)]();0!==r[s(431)]&&(this.manifestRequestHeadersByManifest[s(444)](n,i.slice()),this.isDashManifest(r)?this[s(387)](n,r):this[s(397)](r)&&this[s(388)](n,r))}[Yn(434)](){const t=Yn;this[t(563)].clear(),this[t(386)][t(434)](),this[t(373)][t(434)](),this.dashSingleFileContextsByManifest[t(434)](),this.manifestRequestHeadersByManifest[t(434)](),this[t(486)][t(434)](),this[t(401)][t(434)](),this.renditionBandwidthBps[t(434)](),this[t(543)]=void 0,this[t(487)]=void 0}[Yn(464)](t){return/<MPD/i[Yn(552)](t)}[Yn(397)](t){return/#EXTM3U/i[Yn(552)](t)}[Yn(557)](t){const e=Yn;return/#EXT-X-STREAM-INF/i[e(552)](t)||/#EXT-X-MEDIA:/i[e(552)](t)||/#EXT-X-I-FRAME-STREAM-INF/i[e(552)](t)}[Yn(343)](t){const e=Yn;var i,s,n,r;if(this[e(543)])return this[e(543)];const o=null!==(r=null!==(s=null===(i=this[e(487)])||void 0===i?void 0:i[e(480)])&&void 0!==s?s:null===(n=this[e(365)](t))||void 0===n?void 0:n[e(480)])&&void 0!==r?r:t[e(392)]();return this[e(543)]=o,o}[Yn(381)](t){const e=Yn,i=this[e(487)];(!i||zt(t[e(347)])>zt(i[e(347)]))&&(this[e(487)]=t)}[Yn(492)](t,e,i,s,n){const r=Yn,o=Sr(e,i);this.exactMatches[r(444)](o,{ownerManifestUrl:t,match:s}),n[r(395)](o)}[Yn(471)](t){const e=Yn,i=this[e(386)].get(t);if(i){for(const s of i){const i=this.exactMatches.get(s);i&&i.ownerManifestUrl===t&&this[e(563)][e(508)](s)}this[e(386)][e(508)](t)}}[Yn(417)](t){const e=Yn,i=this.hlsContextKeysByManifest[e(537)](t);if(i){for(const t of i)this[e(486)][e(508)](t);this[e(401)][e(508)](t)}}[Yn(388)](t,e){const i=Yn;this[i(557)](e)?this[i(455)](t,e):this[i(514)](t,e)}registerHlsMaster(t,e){const i=Yn;var s,n,r,o,a,c,d,h,l;this[i(417)](t);const u=this[i(416)](t,e);u&&this.selectSwarmIdentity(u);const p=this.currentOrCreatePresentationId(t),f=new Set;let g;for(const u of e[i(450)](/\r?\n/)){const e=u[i(338)](),m=e[i(392)]();if(m[i(445)](i(522)))g=Ar(e[i(402)](18));else if(m[i(445)](i(546))){const r=Ar(e[i(402)](26)),o=r[i(547)];if(!o)continue;const a=vr(t,o);if(!a)continue;const c={presentationId:p,trackType:ee[i(396)],playlistIdentity:wr(o),groupKey:null!==(s=r[i(396)])&&void 0!==s?s:r[i(529)],resourceUrl:null!==(n=vr(t,o))&&void 0!==n?n:o};this[i(393)](t,a,c,f)}else if(m[i(445)](i(532))){const s=Ar(e[i(402)](13)),n=s.URI;if(!n)continue;const d=vr(t,n);if(!d)continue;const h=(null!==(r=s[i(524)])&&void 0!==r?r:"")[i(390)](),l={presentationId:p,trackType:h===i(556)?ee.AUDIO:h===i(533)||h===i(484)?ee[i(533)]:ee[i(360)],playlistIdentity:wr(n),groupKey:null!==(a=null!==(o=s[i(350)])&&void 0!==o?o:s[i(467)])&&void 0!==a?a:s[i(529)],resourceUrl:null!==(c=vr(t,n))&&void 0!==c?c:n};this[i(393)](t,d,l,f)}else if(e.length>0&&!e.startsWith("#")&&g){const s=g,n=vr(t,e);if(n){const r={presentationId:p,trackType:ee[i(396)],playlistIdentity:wr(e),groupKey:null!==(h=null!==(d=s.VIDEO)&&void 0!==d?d:s[i(556)])&&void 0!==h?h:s[i(529)],resourceUrl:null!==(l=vr(t,e))&&void 0!==l?l:e};this[i(393)](t,n,r,f);const o=Number(s[i(370)]);Number[i(439)](o)&&o>0&&this[i(418)][i(444)](Rr(r),o)}g=void 0}}f[i(424)]>0&&this[i(401)].set(t,f)}registerHlsPlaylistContext(t,e,i,s){this[Yn(486)].set(e,i),s.add(e),this.hlsContextKeysByManifest.set(t,s)}registerHlsMediaPlaylist(t,e){const i=Yn;var s;this[i(471)](t);let n=this[i(486)][i(537)](t);if(!n){n={presentationId:this.currentOrCreatePresentationId(t),trackType:Er(t),playlistIdentity:wr(t),groupKey:void 0,resourceUrl:t},this[i(486)][i(444)](t,n);const e=null!==(s=this[i(401)][i(537)](t))&&void 0!==s?s:new Set;e[i(395)](t),this.hlsContextKeysByManifest[i(444)](t,e)}const r=new Set;let o,a,c,d=0,h=0,l=0,u=-1;for(const s of e[i(450)](/\r?\n/)){const e=s[i(338)](),p=e[i(392)]();if(p.startsWith("#ext-x-media-sequence:")){const t=Number(e[i(402)](22).trim());Number.isFinite(t)&&(d=t)}else if(p[i(445)]("#ext-x-discontinuity-sequence:")){const t=Number(e[i(402)](30)[i(338)]());Number[i(439)](t)&&(h=t)}else if(p.startsWith("#ext-x-discontinuity")&&!p[i(445)]("#ext-x-discontinuity-sequence"))h+=1;else if(p[i(445)](i(545))){const t=e[i(402)](8),s=t[i(332)](","),n=s>=0?t[i(402)](0,s):t,r=Number(n[i(338)]());Number[i(439)](r)&&(o=Math[i(541)](1e3*r))}else if(p[i(445)](i(458)))a=e[i(402)](25).trim();else if(p[i(445)](i(341)))c=e[i(402)](17)[i(338)]();else if(p[i(445)]("#ext-x-map:")){const s=Ar(e[i(402)](11)),o=s[i(547)];if(!o)continue;const a=vr(t,o);if(!a)continue;const c=Ir(s[i(551)],-1);c&&(u=c[i(460)]);const d=null==c?void 0:c[i(510)]();this.addExactMatch(t,a,d,{canonicalKey:Dr(n,_r(a),d),rendition:Rr(n),renditionResourceUrl:n[i(441)],trackType:n[i(364)],isInitialization:!0},r)}else if(e[i(431)]>0&&!e[i(445)]("#")){const s=vr(t,e);if(!s)continue;const p=d+l,f=Ir(c,u);f&&(u=f[i(460)]);const g=null==f?void 0:f.asHeader();this[i(492)](t,s,g,{canonicalKey:Pr(n,p,h,a,g),rendition:Rr(n),renditionResourceUrl:n.resourceUrl,trackType:n[i(364)],isInitialization:!1,segmentDurationMilliseconds:o},r),l+=1,o=void 0,a=void 0,c=void 0}}r[i(424)]>0&&this[i(386)][i(444)](t,r)}[Yn(416)](t,e){const i=Yn;var s,n,r,o,a,c,d,h,l,u,p,f,g,m;const v=[];let y;for(const S of e[i(450)](/\r?\n/)){const e=S[i(338)](),_=e[i(392)]();if(_[i(445)](i(522)))y=Ar(e[i(402)](18));else if(_[i(445)](i(546))){const o=Ar(e[i(402)](26)),a=o[i(547)];if(!a)continue;const c=null!==(s=vr(t,a))&&void 0!==s?s:a;v[i(448)](i(421)+Tr(c)+i(454)+(null!==(n=o[i(396)])&&void 0!==n?n:"")[i(392)]()+i(440)+(null!==(r=o[i(529)])&&void 0!==r?r:"")[i(392)]())}else if(_.startsWith(i(532))){const s=Ar(e[i(402)](13)),n=s[i(547)]?null!==(o=vr(t,s[i(547)]))&&void 0!==o?o:s[i(547)]:"";v[i(448)]("media|type="+(null!==(a=s.TYPE)&&void 0!==a?a:"").toLowerCase()+"|group="+(null!==(c=s[i(350)])&&void 0!==c?c:"")[i(392)]()+i(363)+(null!==(d=s.LANGUAGE)&&void 0!==d?d:"")[i(392)]()+i(440)+(null!==(h=s[i(529)])&&void 0!==h?h:"")[i(392)]()+i(523)+Tr(n))}else if(e.length>0&&!e[i(445)]("#")&&y){const s=y,n=null!==(l=vr(t,e))&&void 0!==l?l:e;
2v[i(448)](i(426)+Tr(n)+"|video="+(null!==(u=s[i(396)])&&void 0!==u?u:"")[i(392)]()+i(527)+(null!==(p=s.AUDIO)&&void 0!==p?p:"")[i(392)]()+"|subs="+(null!==(f=s[i(533)])&&void 0!==f?f:"")[i(392)]()+i(405)+(null!==(g=s[i(436)])&&void 0!==g?g:"").toLowerCase()+i(548)+(null!==(m=s[i(415)])&&void 0!==m?m:"")[i(392)]()),y=void 0}}if(0!==v[i(431)])return{canonicalId:"hls-master:"+$t(v[i(411)]()[i(377)]("\n")),source:Wt[i(483)],rawResourceUrl:t}}registerDashManifest(t,e){const i=Yn;var s,n,r;this.clearExactMatchesForManifest(t),this.dashMatchersByManifest[i(508)](t),this[i(447)][i(508)](t);const o=Or(e);if(!o||o[i(355)]!==i(406))return;const a=this[i(430)](t,o);a&&this.selectSwarmIdentity(a);const c=this[i(343)](t),d=(()=>{const e=i,s=qr(o,e(481)).map(t=>{const i=e;var s;return(null!==(s=t[i(336)])&&void 0!==s?s:"")[i(338)]()})[e(553)](t=>t.length>0);return s.length>0?s:[t]})(),h=new Set,l=[],u=qr(o,i(358));for(let e=0;e<u[i(431)];e++){const o=u[e],a=(null!==(s=o[i(410)].id)&&void 0!==s?s:"")[i(338)]()||i(394)+e,p=Gr(t,d,qr(o,i(481))[i(453)](t=>{const e=i;var s;return(null!==(s=t[e(336)])&&void 0!==s?s:"")[e(338)]()})[i(553)](t=>t[i(431)]>0)),f=qr(o,i(519));for(let e=0;e<f[i(431)];e++){const s=f[e],o=Vr(s),d=Fr(s,e,o),u=Gr(t,p,qr(s,i(481))[i(453)](t=>{var e;return(null!==(e=t[i(336)])&&void 0!==e?e:"").trim()})[i(553)](t=>t[i(431)]>0)),g=qr(s,i(462))[0],m=qr(s,"SegmentList")[0],v=qr(s,i(493))[0],y=qr(s,i(495));for(let e=0;e<y[i(431)];e++){const s=y[e],p=(null!==(n=s[i(410)].id)&&void 0!==n?n:"")[i(338)]()||i(357)+e,f=s[i(410)].bandwidth,S=Number(f);Number[i(439)](S)&&S>0&&this[i(418)][i(444)](Nr(o,d,p),S);const _=Gr(t,u,qr(s,i(481))[i(453)](t=>{const e=i;var s;return(null!==(s=t.textContent)&&void 0!==s?s:"")[e(338)]()}).filter(t=>t[i(431)]>0)),b=qr(s,i(462))[0],T=qr(s,i(516))[0],w=qr(s,i(493))[0],E=null!=w?w:v,A=Hr(b,g);if(this[i(423)](t,c,a,o,d,p,A,_,f,h),A&&A[i(525)]){const e=this[i(530)](t,c,a,o,d,p,null!==(r=_[0])&&void 0!==r?r:t,f,_,A);e&&l[i(448)](e);continue}const I=null!=T?T:m;I?this[i(420)](t,c,a,o,d,p,_,I,h):E&&this[i(344)](t,c,a,o,d,p,E,_,h)}}}h[i(424)]>0&&this[i(386)][i(444)](t,h),l[i(431)]>0&&this[i(373)][i(444)](t,l)}[Yn(423)](t,e,i,s,n,r,o,a,c,d){const h=Yn;var l;if(!o||!o[h(379)])return;const u=Br(o[h(379)],r,c,"","");for(const o of a){const a=vr(o,u);a&&this.addExactMatch(t,a,void 0,{canonicalKey:h(330)+e+":"+Cr(s,n,r)+":"+i+h(506)+r,rendition:Nr(s,n,r),renditionResourceUrl:null!==(l=mr(o))&&void 0!==l?l:a,trackType:s,isInitialization:!0},d)}}[Yn(530)](t,e,i,s,n,r,o,a,c,d){const h=Yn,l=d.media;if(!l)return;let u,p;u=or[h(552)](l)?h(337):ar[h(552)](l)?h(349):h(518),void 0!==d[h(376)]&&d[h(435)]&&d[h(435)]>0&&(p=Math[h(541)](1e3*d[h(376)]/d[h(435)]));const f=function(t,e){const i=Yn,s={};if(!t[i(446)]||!t[i(435)]||t[i(435)]<=0)return s;let n=t.startNumber,r=0,o=!1;for(const a of t.timelineChildren){const c=Number(a.attributes.t);Number[i(439)](c)?r=c:o||(r=0),o=!0;const d=Number(a.attributes.d);if(!Number[i(439)](d)||d<=0)continue;const h=Math[i(408)](0,Number(a[i(410)].r)||0);for(let o=0;o<=h;o++){const o=1e3*d/t[i(435)];e===i(337)?(s[String(n)]=Math.round(o),n+=1):e===i(349)&&(s[String(r)]=Math[i(541)](o)),r+=d}}return s}(d,u),g=[];for(const t of c){const e=vr(t,Br(l,r,a,er,er));e&&g[h(448)](kr(e,u))}return 0!==g[h(431)]?{ownerManifestUrl:t,mediaRegexes:g,presentationId:e,periodIdentity:i,trackType:s,adaptationIdentity:n,representationIdentity:r,renditionResourceUrl:o,tokenKind:u,durationsByToken:f,defaultDurationMilliseconds:p}:void 0}[Yn(420)](t,e,i,s,n,r,o,a,c){const d=Yn;var h,l,u;const p=qr(a,d(407))[0],f=yr(null==p?void 0:p[d(410)].range),g=null===(h=null==p?void 0:p[d(410)].sourceURL)||void 0===h?void 0:h[d(338)]();if(g&&g[d(431)]>0)for(const a of o){const o=vr(a,g);o&&this[d(492)](t,o,f,{canonicalKey:d(330)+e+":"+Cr(s,n,r)+":"+i+d(456),rendition:Nr(s,n,r),renditionResourceUrl:null!==(l=mr(a))&&void 0!==l?l:o,trackType:s,isInitialization:!0},c)}const m=Number(a[d(410)].timescale),v=Number(a[d(410)][d(376)]),y=Number(a.attributes[d(449)]),S=Number.isFinite(m)&&m>0&&Number.isFinite(v)?Math[d(541)](1e3*v/m):void 0,_=Number[d(439)](y)?y:1,b=qr(a,"SegmentURL");for(let a=0;a<b[d(431)];a++){const h=b[a],l=h[d(410)][d(525)];if(!l)continue;const p=yr(h.attributes[d(476)]),f=_+a;for(const a of o){const o=vr(a,l);o&&this.addExactMatch(t,o,p,{canonicalKey:d(330)+e+":"+Cr(s,n,r)+":"+i+d(399)+f,rendition:Nr(s,n,r),renditionResourceUrl:null!==(u=mr(a))&&void 0!==u?u:o,trackType:s,isInitialization:!1,segmentDurationMilliseconds:S},c)}}}registerDashSingleFileContext(t,e,i,s,n,r,o,a,c){const d=Yn;var h,l;const u=o[d(410)].indexRange;if(!u)return;const p=function(t){const e=Yn;if(!t)return;const i=t[e(338)](),s=i.indexOf("-");if(s<=0)return;const n=Number(i[e(402)](0,s)[e(338)]()),r=Number(i[e(402)](s+1)[e(338)]());return!Number.isFinite(n)||!Number.isFinite(r)||r<n?void 0:{start:n,endInclusive:r}}(u);if(!p)return;const f=qr(o,"Initialization")[0],g=yr(null==f?void 0:f[d(410)][d(501)]),m=null!==(h=this[d(482)][d(537)](t))&&void 0!==h?h:[];if(g)for(const o of a){const a=mr(o);a&&this.addExactMatch(t,a,g,{canonicalKey:d(330)+e+":"+Cr(s,n,r)+":"+i+d(506)+r,rendition:Nr(s,n,r),renditionResourceUrl:a,trackType:s,isInitialization:!0},c)}const v=null!==(l=this.dashSingleFileContextsByManifest[d(537)](t))&&void 0!==l?l:[];for(const o of a){const a=mr(o);a&&v.push({ownerManifestUrl:t,presentationId:e,periodIdentity:i,trackType:s,adaptationIdentity:n,resourceUrl:a,initializationRange:g,indexRange:p,representationIdentity:r,manifestRequestHeaders:m,materialized:!1,materializationAttempted:!1})}this[d(447)][d(444)](t,v)}[Yn(559)](t){const e=Yn;if(!this[e(549)])return!1;let i=!1;for(const s of this[e(447)][e(505)]())for(const n of s){if(n[e(441)]!==t)continue;if(n[e(478)]||n[e(428)])continue;n[e(428)]=!0;
2const s=e(398)+n[e(479)].start+"-"+n[e(479)][e(460)],r=this[e(549)](n[e(441)],s);r&&0!==r.byteLength&&this.writeSidxAsExactMatches(n,r)&&(n[e(478)]=!0,i=!0)}return i}materializeDashSingleFileRangesAsync(t){var e;return Qn(this,void 0,void 0,function*(){const i=br,s=null!==(e=this[i(368)])&&void 0!==e?e:tr,n=[];for(const e of this.dashSingleFileContextsByManifest[i(505)]())for(const r of e){if(r[i(441)]!==t)continue;if(r[i(478)]||r[i(428)])continue;r[i(428)]=!0;const e=i(398)+r[i(479)][i(534)]+"-"+r.indexRange.endInclusive;n[i(448)](s(r.resourceUrl,e)[i(474)](t=>{const e=i;t&&t.byteLength>0&&this[e(422)](r,t)&&(r[e(478)]=!0)})[i(538)](()=>{}))}yield Promise.all(n)})}[Yn(422)](t,e){const i=Yn;var s;const n=Jn.parse(e,t[i(479)][i(534)]);if(!n)return!1;const r=null!==(s=this[i(386)][i(537)](t[i(494)]))&&void 0!==s?s:new Set,o=Cr(t[i(364)],t[i(520)],t[i(507)]),a=Nr(t[i(364)],t[i(520)],t[i(507)]);for(const e of n[i(542)]){const s=i(398)+e[i(534)]+"-"+e[i(460)],c=1e3*e[i(544)]/n[i(435)],d=1e3*e[i(404)]/n[i(435)];this[i(492)](t[i(494)],t.resourceUrl,s,{canonicalKey:"dash:"+t[i(473)]+":"+o+":"+t[i(560)]+i(335)+Math[i(541)](c),rendition:a,renditionResourceUrl:t[i(441)],trackType:t[i(364)],isInitialization:!1,segmentDurationMilliseconds:Math[i(541)](d)},r)}return this[i(386)][i(444)](t[i(494)],r),!0}[Yn(430)](t,e){const i=Yn;var s,n;if(e[i(355)]!==i(406))return;const r=[],o=qr(e,"Period");for(let t=0;t<o.length;t++){const e=o[t],a=(null!==(s=e[i(410)].id)&&void 0!==s?s:"")[i(338)]()||i(394)+t;r[i(448)]("period|"+a);const c=qr(e,i(519));for(let t=0;t<c.length;t++){const e=c[t],s=Vr(e),o=Fr(e,t,s),d=qr(e,i(462)).length>0?i(561):qr(e,i(516)).length>0?i(413):qr(e,"SegmentBase")[i(431)]>0?i(378):i(518),h=qr(e,i(481))[i(453)](t=>{var e;return Tr(null!==(e=t.textContent)&&void 0!==e?e:"")})[i(377)](",");r[i(448)](i(380)+a+"|"+s+"|"+o+"|"+d+"|"+h);const l=qr(e,i(495));for(let t=0;t<l[i(431)];t++){const e=l[t],s=(null!==(n=e[i(410)].id)&&void 0!==n?n:"")[i(338)]()||"representation-"+t,c=qr(e,i(462))[i(431)]>0?i(561):qr(e,i(516))[i(431)]>0?i(413):qr(e,"SegmentBase")[i(431)]>0?i(378):d,h=qr(e,i(481))[i(453)](t=>{var e;return Tr(null!==(e=t[i(336)])&&void 0!==e?e:"")}).join(",");r[i(448)](i(540)+a+"|"+o+"|"+s+"|"+c+"|"+h)}}}if(0===r[i(431)])return;const a=r[i(411)]()[i(377)]("\n");return{canonicalId:i(400)+$t(a),source:Wt.DASH_MPD,rawResourceUrl:t}}}const Wr=io;!function(t){const e=io,i=t();for(;;)try{if(644148==-parseInt(e(459))/1+parseInt(e(390))/2*(-parseInt(e(421))/3)+parseInt(e(471))/4+parseInt(e(439))/5+parseInt(e(477))/6*(-parseInt(e(370))/7)+parseInt(e(410))/8*(parseInt(e(425))/9)+parseInt(e(433))/10*(parseInt(e(468))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(eo);var Xr=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=io;function a(t){const e=io;try{d(s[e(432)](t))}catch(t){r(t)}}function c(t){const e=io;try{d(s[e(436)](t))}catch(t){r(t)}}function d(t){const e=io;var s;t.done?n(t.value):(s=t[e(456)],s instanceof i?s:new i(function(t){t(s)}))[e(412)](a,c)}d((s=s[o(369)](t,e||[]))[o(432)]())})};const zr=Wr(365),Kr=Wr(407),Jr=Wr(361);function $r(t){return new Promise((e,i)=>{const s=io;t[s(470)]=()=>e(t[s(397)]),t[s(371)]=()=>i(t[s(405)])})}function Yr(t){return new Promise((e,i)=>{const s=io;t.oncomplete=()=>e(),t[s(371)]=()=>i(t[s(405)]),t.onabort=()=>i(t[s(405)])})}class Qr{static[Wr(435)](){return"undefined"!=typeof indexedDB}[Wr(426)](){const t=Wr;return!this[t(360)]&&(this[t(360)]=new Promise((e,i)=>{const s=t,n=indexedDB[s(438)](zr,1);n[s(359)]=()=>{const t=s,e=n[t(397)];!e[t(448)][t(376)](Kr)&&e[t(452)](Kr,{keyPath:"id"}),!e.objectStoreNames[t(376)](Jr)&&e[t(452)](Jr)},n[s(470)]=()=>e(n[s(397)]),n[s(371)]=()=>i(n[s(405)])})),this[t(360)]}[Wr(408)](){return Xr(this,void 0,void 0,function*(){const t=io,e=(yield this[t(426)]())[t(416)](Kr,"readonly")[t(374)](Kr);return(yield $r(e[t(442)]()))||[]})}putMetadata(t){return Xr(this,void 0,void 0,function*(){const e=io,i=(yield this.openDb())[e(416)](Kr,e(420));i.objectStore(Kr)[e(382)](t),yield Yr(i)})}[Wr(414)](t,e){return Xr(this,void 0,void 0,function*(){const i=io,s=(yield this[i(426)]())[i(416)](Jr,i(420)),n=e.buffer[i(377)](e[i(458)],e[i(458)]+e[i(466)]);s.objectStore(Jr)[i(382)](n,t),yield Yr(s)})}getBytes(t){return Xr(this,void 0,void 0,function*(){const e=io,i=(yield this.openDb())[e(416)](Jr,"readonly"),s=yield $r(i[e(374)](Jr)[e(423)](t));if(s)return s instanceof ArrayBuffer?new Uint8Array(s):ArrayBuffer[e(368)
2](s)?new Uint8Array(s[e(454)]):void 0})}[Wr(474)](t){return Xr(this,void 0,void 0,function*(){const e=io,i=(yield this[e(426)]()).transaction([Kr,Jr],"readwrite");i[e(374)](Kr)[e(474)](t),i[e(374)](Jr)[e(474)](t),yield Yr(i)})}[Wr(467)](){return Xr(this,void 0,void 0,function*(){const t=io,e=(yield this[t(426)]()).transaction([Kr,Jr],"readwrite");e[t(374)](Kr)[t(363)](),e[t(374)](Jr)[t(363)](),yield Yr(e)})}}class Zr{constructor(){const t=Wr;this.meta=new Map,this[t(362)]=new Map}[Wr(408)](){return Xr(this,void 0,void 0,function*(){const t=io;return Array[t(419)](this.meta[t(475)]())})}putMetadata(t){return Xr(this,void 0,void 0,function*(){const e=io;this[e(385)][e(417)](t.id,Object.assign({},t))})}[Wr(414)](t,e){return Xr(this,void 0,void 0,function*(){this[io(362)].set(t,new Uint8Array(e))})}getBytes(t){return Xr(this,void 0,void 0,function*(){const e=io,i=this[e(362)][e(423)](t);return i?new Uint8Array(i):void 0})}[Wr(474)](t){return Xr(this,void 0,void 0,function*(){const e=io;this[e(385)][e(474)](t),this.bytes[e(474)](t)})}clearAll(){return Xr(this,void 0,void 0,function*(){const t=io;this[t(385)][t(363)](),this[t(362)][t(363)]()})}}class to{constructor(t){const e=Wr;this[e(399)]=0,this[e(400)]=[],this[e(481)]=!1,this[e(463)]=[],this.id=t.id,this[e(450)]=t[e(450)],this[e(373)]=t[e(373)],this[e(434)]=t[e(434)],this[e(372)]=t[e(372)],this[e(478)]=t.state,this[e(446)]=t[e(446)],this[e(388)]=t.createdAt,this[e(393)]=t[e(393)],this[e(399)]=t[e(399)],this[e(440)]=t[e(440)]}[Wr(427)](){const t=Wr;return{id:this.id,url:this[t(450)],trackType:this.trackType,rendition:this[t(434)],expectedSize:this.expectedSize,state:this[t(478)],leaderRole:this.leaderRole,createdAt:this.createdAt,lastUsedAt:this.lastUsedAt,writtenBytes:this[t(399)],failureReason:this[t(440)]}}touch(){const t=Wr;this[t(393)]=Date[t(403)]()}[Wr(469)](t){const e=Wr;return this[e(373)]!==ee[e(375)]||void 0===t||void 0===this[e(434)]||this[e(434)]===t}[Wr(394)](){const t=Wr;if(this[t(478)]===_[t(424)])return this[t(409)]}appendBytes(t){const e=Wr;0!==t[e(366)]&&(this[e(400)][e(441)](t),this[e(399)]+=t.length,this.touch(),this[e(455)]())}[Wr(453)](){const t=Wr;if(!this._finalData){if(1===this[t(400)][t(366)])this._finalData=this._chunks[0];else{const e=new Uint8Array(this[t(399)]);let i=0;for(const s of this[t(400)])e[t(417)](s,i),i+=s[t(366)];this[t(409)]=e}this[t(400)]=[]}return this[t(455)](),this[t(409)]}[Wr(395)](t){const e=Wr;this[e(409)]=t,this[e(400)]=[],this[e(481)]=!0}needsBytesFromBackend(){const t=Wr;return void 0===this[t(409)]&&this[t(481)]}[Wr(383)](){this[Wr(481)]=!0}[Wr(464)](){const t=Wr;this[t(400)]=[],this._finalData=void 0,this[t(455)]()}[Wr(482)](t,e){const i=Wr;if(t<0||t>=this[i(399)])return;if(this[i(409)]){const s=Math[i(460)](t+e,this[i(409)][i(366)]);return this[i(409)][i(473)](t,s)}let s=0;const n=[];let r=e;for(const e of this[i(400)]){if(r<=0)break;const o=s+e.length;if(o<=t){s=o;continue}const a=Math[i(480)](0,t-s),c=e[i(366)]-a,d=Math[i(460)](c,r);n.push(e.subarray(a,a+d)),r-=d,s=o}if(0===n.length)return;if(1===n[i(366)])return n[0];const o=n[i(384)]((t,e)=>t+e[i(366)],0),a=new Uint8Array(o);let c=0;for(const t of n)a[i(417)](t,c),c+=t[i(366)];return a}subscribeWaiter(t){const e=Wr;return this[e(463)][e(441)](t),()=>{const i=e,s=this[i(463)][i(431)](t);s>=0&&this[i(463)][i(392)](s,1)}}[Wr(455)](){const t=Wr;if(0===this[t(463)][t(366)])return;const e=this[t(463)][t(377)]();this._waiters=[];for(const i of e)try{i(this[t(478)])}catch(t){}}}function eo(){const t=["now","queueBackendWrite","error","backend","segments_meta","loadAllMetadata","_finalData","7077784whMeTC","NONE","then","segment","putBytes","segments","transaction","set","readDataAsync","from","readwrite","643767BKsJzo","putMetadata","get","READY","9xyDQga","openDb","toMetadata","createOrGetAcquiring","_backfillBytes","totalReadyBytes","indexOf","next","80cbsbLc","rendition","isSupported","throw","touch","open","4831360raIbbk","failureReason","push","getAll","close","keys","EVICTED","leaderRole","forEach","objectStoreNames","markReady","url","evict","createObjectStore","finalizeReady","buffer","_notifyWaiters","value","resolve","byteOffset","1009566Dtstwk","min","getReady","subscribeWaiter","_waiters","discard","catch","byteLength","clearAll","323763nGzpQB","isVisibleForRendition","onsuccess","777100ldqAlD","writeChain","subarray","delete","values","FAILED","824862rrEmst","state","getBytes","max","_bytesHydratedFromBackend","readBytesAt","persistMetadata","
2store","onupgradeneeded","dbPromise","segments_bytes","bytes","clear","ACQUIRING","npaw-p2p-v2","length","hydrated","isView","apply","21NXsJmj","onerror","expectedSize","trackType","objectStore","VIDEO","contains","slice","flushPendingWrites","__awaiter","openReader","appendBytes","put","markHydratedWithoutBytes","reduce","meta","filter","offset","createdAt","closed","2kEVFws","evictExpiredAndOverflow","splice","lastUsedAt","readDataSync","adoptFinalData","readyIds","result","markFailed","writtenBytes","_chunks","readNextChunk","sort"];return(eo=function(){return t})()}function io(t,e){return t-=358,eo()[t]}class so{constructor(t=function(){return Qr[Wr(435)]()?new Qr:new Zr}()){const e=Wr;this[e(415)]=new Map,this[e(367)]=!1,this[e(472)]=Promise[e(457)](),this[e(406)]=t}[Wr(378)](){return Xr(this,void 0,void 0,function*(){const t=io;yield this[t(472)].catch(()=>{})})}[Wr(404)](t){const e=Wr;this[e(472)]=this[e(472)].catch(()=>{})[e(412)](()=>t())[e(465)](()=>{})}hydrate(){return Xr(this,void 0,void 0,function*(){const t=io;if(this.hydrated)return;this.hydrated=!0;const e=yield this[t(406)][t(408)]();for(const i of e){if(i[t(478)]!==_[t(424)]){const e=i.id;this[t(404)](()=>this[t(406)][t(474)](e));continue}const e=new to(i);e[t(383)](),this.segments.set(i.id,e)}})}[Wr(428)](t,e,i,s,n,r){const o=Wr,a=this.segments[o(423)](t);if(a&&a[o(478)]!==_.FAILED&&a.state!==_[o(445)])return a[o(372)]=Math[o(480)](n,a.expectedSize),r!==b[o(411)]&&(a[o(446)]=r),a.state=_[o(364)],a[o(437)](),this[o(483)](a),a;if(a){const t=a.id;a[o(464)](),this[o(404)](()=>this[o(406)].delete(t))}const c=new to({id:t,url:e,trackType:i,rendition:s,expectedSize:n,state:_.ACQUIRING,leaderRole:r,createdAt:Date.now(),lastUsedAt:Date[o(403)](),writtenBytes:0});return this.segments[o(417)](t,c),this[o(483)](c),c}append(t,e){const i=Wr;if(!e||0===e.length)return;const s=this[i(415)][i(423)](t);s&&s[i(381)](e)}[Wr(449)](t){const e=Wr,i=this[e(415)][e(423)](t);if(!i)return;i[e(478)]=_[e(424)],i.touch();const s=i[e(453)]();return this.persistMetadata(i),this[e(404)](()=>this.backend[e(414)](t,s)),i}[Wr(398)](t,e){const i=Wr,s=this[i(415)].get(t);if(s)return s[i(478)]=_[i(476)],s[i(440)]=e,s[i(464)](),this.queueBackendWrite(()=>this[i(406)][i(474)](t)),s}[Wr(451)](t){const e=Wr,i=this[e(415)][e(423)](t);if(i)return this.segments[e(474)](t),i[e(478)]=_[e(445)],i.discard(),this[e(404)](()=>this[e(406)][e(474)](t)),i}[Wr(461)](t){const e=Wr,i=this[e(415)][e(423)](t);if(i&&i[e(478)]===_[e(424)])return i[e(437)](),i}get(t){const e=Wr;return this[e(415)][e(423)](t)}[Wr(396)](t){const e=Wr,i=new Set;return this[e(415)][e(447)]((s,n)=>{const r=e;s[r(478)]===_[r(424)]&&s[r(469)](t)&&i.add(n)}),i}[Wr(430)](){const t=Wr;let e=0;return this.segments[t(447)](i=>{const s=t;i.state===_[s(424)]&&(e+=i[s(399)])}),e}readyCount(){const t=Wr;let e=0;return this.segments[t(447)](i=>{const s=t;i[s(478)]===_[s(424)]&&(e+=1)}),e}[Wr(391)](t,e){const i=Wr;var s,n;const r=[],o=Date.now(),a=[];this[i(415)][i(447)](t=>{const e=i;t[e(478)]===_[e(424)]&&a.push(t)});const c=a[i(386)](e=>e[i(393)]+t<o)[i(402)]((t,e)=>t[i(393)]-e.lastUsedAt);for(const t of c){const e=this[i(451)](t.id);
2e&&r[i(441)](e)}if(e>0&&this[i(430)]()>e){const t=[];this[i(415)][i(447)](e=>{const s=i;e.state===_[s(424)]&&t.push(e)}),t.sort((t,e)=>t[i(393)]-e[i(393)]);let o=this.totalReadyBytes();for(const a of t){if(o<=e)break;const t=null!==(n=null===(s=this.segments[i(423)](a.id))||void 0===s?void 0:s[i(399)])&&void 0!==n?n:0,c=this.evict(a.id);c&&(r[i(441)](c),o-=t)}}return r}[Wr(380)](t){const e=this[Wr(415)].get(t);if(e)return new no(e,this)}clear(){return Xr(this,void 0,void 0,function*(){const t=io,e=Array[t(419)](this[t(415)][t(444)]());for(const i of e){const e=this[t(415)][t(423)](i);e&&(e.state=_.EVICTED,e[t(464)]()),this[t(415)][t(474)](i)}this[t(404)](()=>this.backend[t(467)]()),yield this[t(378)]()})}[Wr(418)](t){return Xr(this,void 0,void 0,function*(){const e=io,i=this.segments.get(t);if(!i||i[e(478)]!==_[e(424)])return;const s=i[e(394)]();if(s)return i[e(437)](),s;const n=yield this[e(406)][e(479)](t);return n?(i[e(395)](n),i.touch(),n):void 0})}[Wr(429)](t){return Xr(this,void 0,void 0,function*(){const e=io;if(t.readDataSync()||t[e(478)]!==_.READY)return;const i=yield this[e(406)][e(479)](t.id);i&&t.adoptFinalData(i)})}[Wr(483)](t){const e=Wr,i=t[e(427)]();this[e(404)](()=>this.backend[e(422)](i))}}class no{constructor(t,e){const i=Wr;this[i(387)]=0,this[i(389)]=!1,this[i(413)]=t,this[i(358)]=e}expectedSize(){const t=Wr;return this[t(413)][t(372)]}currentState(){return this[Wr(413)].state}hasPendingBytes(){const t=Wr;return this[t(413)][t(399)]>this[t(387)]}[Wr(401)](t,e){return Xr(this,void 0,void 0,function*(){const i=io;if(this[i(389)])return;if(t<=0)return;const s=Date[i(403)]();let n=Math[i(480)](0,e);for(;!(this[i(389)]||this.segment.writtenBytes>this.offset||this[i(413)][i(478)]!==_[i(364)]);){if(n<=0)return;yield new Promise(t=>{const e=i;let s=!1;const r=setTimeout(()=>{s||(s=!0,o(),t())},Math[e(460)](n,50)),o=this.segment[e(462)](()=>{s||(s=!0,clearTimeout(r),t())})}),n=Math[i(480)](0,e-(Date[i(403)]()-s))}if(this[i(389)])return;this[i(413)].state===_[i(424)]&&this[i(413)].needsBytesFromBackend()&&this[i(358)]&&(yield this[i(358)][i(429)](this.segment));const r=this[i(413)].writtenBytes-this[i(387)];if(r<=0)return;const o=Math[i(460)](t,r),a=this.segment.readBytesAt(this[i(387)],o);return a&&0!==a.length?(this[i(387)]+=a[i(366)],a):void 0})}[Wr(443)](){this.closed=!0}}function ro(){const t=["4906kwTQfn","toString","randomUUID","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","crypto.randomUUID() not available. Falling back to Math.random-based UUID","84qxQlNu","crypto","727MriAER","crypto.randomUUID is not available","2026668BkLmzd","525128gcUpOH","615wxbuSq","function","13516SZaSYx","262TIthkl","1690ruIhqG","1789385aohocM","6kwRwlF","replace","3088535PzIgzb","45PGFesE","warn","random"];return(ro=function(){return t})()}function oo(t,e){return t-=183,ro()[t]}!function(t){const e=oo,i=t();for(;;)try{if(405431==-parseInt(e(200))/1*(-parseInt(e(184))/2)+-parseInt(e(204))/3*(-parseInt(e(183))/4)+-parseInt(e(189))/5*(-parseInt(e(187))/6)+-parseInt(e(202))/7+parseInt(e(203))/8*(parseInt(e(190))/9)+-parseInt(e(185))/10*(parseInt(e(193))/11)+-parseInt(e(198))/12*(parseInt(e(186))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ro);const ao=lo;!function(t){const e=lo,i=t();for(;;)try{if(219406==-parseInt(e(521))/1*(parseInt(e(654))/2)+-parseInt(e(479))/3*(-parseInt(e(604))/4)+-parseInt(e(503))/5+parseInt(e(459))/6+parseInt(e(457))/7+-parseInt(e(582))/8*(-parseInt(e(469))/9)+-parseInt(e(663))/10*(parseInt(e(647))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ho);var co=function(t,e,i,s){return new(i||(i=Promise))(function(n,r){const o=lo;function a(t){const e=lo;try{d(s[e(631)](t))}catch(t){r(t)}}function c(t){const e=lo;try{d(s[e(481)](t))}catch(t){r(t)}}function d(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,c)}d((s=s[o(580)](t,e||[]))[o(631)]())})};function ho(){const t=["perfStartMs","cdns","signManifestUsingApi","uuid","total","segmentsMap","safetyFactor","setMaxBandwidth","readTimeoutMilliseconds","_segments","connectTimeoutMilliseconds","toFixed","apply","attachV2Collaborators","8MtpKMm","authData","SEGMENT FAILED WITH STATUS ","useP2P","delete","downloadAvgBw","setManifestResource","P2P PATH FOR ID ","totalBandwidth","manifestFallbacks","baselineMs=","isManifest","apiHost","updateCDNStatsOnFailure","getP2PManifestRegistry","prototype","markLastFailedTrial","triedP2P","getCdnList","byteLength","byteOffset","diskSegmentStore","100436HnhtGP"," -> ","failed","cdnName","getActiveRequests","isDev","loadEM","bucketName","assign","observeResolvedSegment","push","debug","isFinite","downloadMillis","updateUrl","retries","getVideoRenditions","CDNLoader","p2pSegmentIdResolver","onSuccess","getSegment","videoId","onProcessSegmentFail","replace","reportTime","loadCDNBalancerData","jwtAuthType","next","getP2PSegmentIdResolver",", l0=","Products","clearConnectTimer","recordCdnThroughput","setActive","getReportInterval"," isAudio ","storeSegment","DEVICE_ANALYTICS","loadStartEM","bandwidth","processSegment","changeStatusCDN"," for ","3769975PyMqKp","getResourceIdentifier","destroy","connectTimeoutMs","profileName","appendAcquiringBytes","getStats","8StYXuC","route","announceCapture","resourceIdentifier","VIEW_CODE","toString","getL0","pathname","cdn-fail","10xQqLLF","armReadTimeout","setMaxB
2andwith","bwBps=","progressEM","enableCDN will be deprecated use setActive instead.","setContent","isAudio","set","allowPeerAccess","range","updateTime","recordSwitchFromP2P","quality","bandwidthPosition","getResolveStats","getRenditionByKey","_fallBackP2pToCdn","downloadedSegments","abort","trunc","readDataSync","resource","host","getInstance","_recomputeTrialDeadline","storage","verbose","p2pId","clearAttemptTimers","url","347613ZyrSbv","isLive","2298306nKmDjU","isMedia","targetDuration","_resource","currentRenditionPos","enable","markFailed","onProcessSegmentSuccess","segmentIndex","onProgress","3680109CJsRfQ","manifestModelHits","p2pManifestRegistry","baselineCallTimeoutMs","totalDownloadedBytes","slice","_options","getResponseHeader","_accountCode","Detected rendition -> ","27qlBXlf","clean","throw","enableCDN","errors","storeSegmentV2","trialTag","AnalyticsVariables","currentCdnName","buffer","Range","the status is -> ","_balancerBusinessObject","__balancerTotalTimer","realBodySize","call","match","getManifestResolutionStats","response","getByteRangeOffset","Request was canceled due a timeout -> ","readyStateChangeEM","Success","Fail","1053045YhoEYv","noContentObtained","track","d1.npaw.com","readyState","onAbort","expectedSizeBytes","dynamicRules","data","errorEM","totalTimeoutMilliseconds","P2P","loadBalancerData","requestReadTimeout","timeBetweenHeads","downloadedBytes","nowMs","__awaiter","73713fVKTGn","firstChunkProbeRegistry","updateData","getDiskSegmentStore","get","cdnProvider","camelToSnake","disable","_dispatchP2pV2Async","V2 disk cache hit (async backfill) for ","Segment request failed, no more retries ","off","options","uri","Trial deadline tightened for ","V2 disk cache hit for ","getMaxBandwidth","getCommonVariable","P2PLoader","__balancerConnectTimer","updateProgressStats","setManifestRegistry","now","balanceManifests","renditionCount","catch","currentRenditionBandwidth","p2pFailureReason","announceAcquiringSegment","error","limit","VIDEO_ANALYTICS","getReady","length","isTrackOfKnownMaster","p2pSwitchRecorded","allowSpecialDelimitersInUrl","status","headers","isEnabled","newDownloadedSegment","consumeLastSuccessfulP2PProvider","statsReportBusinessObject","startTime","totalDownloadTimeoutMs","timeout","armAttemptTimers"];return(ho=function(){return t})()}function lo(t,e){return t-=432,ho()[t]}class uo{constructor(t,e,n){const r=ao;var o;this[r(577)]=new Map,this[r(573)]=new Map,this.isEnabled=!0,this[r(470)]=0,this[r(591)]=0,this[r(477)]=t,this[r(475)]=e,this[r(462)]=new $e,this.resourceIdentifier=new Gn(this[r(462)]),this[r(471)]=new jr,this[r(475)][r(625)]&&this[r(475)].videoId[r(554)]>0&&this[r(471)].setVideoId(this[r(475)].videoId,null!==(o=this[r(475)].resource)&&void 0!==o?o:""),this[r(622)]=new ae,this[r(622)][r(542)](this[r(471)]),this.diskSegmentStore=new so,this[r(603)].hydrate().catch(()=>{}),this[r(452)]=new Me(this),this[r(594)]=n,this[r(475)][r(517)]&&this[r(475)][r(517)]>=1e3&&(L.timeBetweenBurstsMilliseconds=this[r(475)][r(517)]),this[r(539)]=new fe(this[r(477)],e,this[r(452)]),this[r(539)][r(581)](this[r(603)],this[r(471)]),this[r(621)]=new Le(e,this[r(462)],this[r(539)],this[r(594)]),this[r(563)]=Si[r(450)](this),we.getInstance(this),xt.getInstance(this[r(539)]),this[r(571)]=(()=>{const t=oo;try{const e=globalThis;if(e[t(199)]&&typeof e.crypto[t(195)]===t(205))return e[t(199)].randomUUID();throw new Error(t(201))}catch(e){return i.default[t(191)](s.BalancerTag,t(197),e),(()=>{const t=oo;return t(196)[t(188)](/[xy]/g,e=>{const i=t,s=16*Math[i(192)]()|0;return("x"===e?s:3&s|8)[i(194)](16)})})()}})();const a=new ei(this,null==e?void 0:e[r(630)],null==e?void 0:e.jwtToken);this[r(491)]=a,(e.forceDecisionCall||e[r(570)])&&this.loadCDNBalancerData(!0)}[ao(638)](){const t=ao;return!this[t(475)][t(628)]||this[t(475)][t(628)]<1?5:this[t(475)].reportTime}[ao(527)](t){const e=ao,i={};for(const s in t)Object[e(597)].hasOwnProperty[e(494)](t,s)&&(i[s[e(627)](/([A-Z])/g,"_$1").toLowerCase()]=t[s]);return i}[ao(629)](t){const i=ao;var s,n,r,o,a,c,d,h,l,u;const p=this[i(475)][i(510)]?JSON.stringify(this[i(527)](this[i(475)][i(510)])):"",f=e.default[i(450)]()[i(538)](Ee.default[i(634)][i(641)],Ee.default.DeviceVariables.APP_ANALYTICS_DEVICE_STRING)||"";null!=t&&t&&this[i(491)][i(515)](this[i(477)],"/",null!==(s=this._options[i(458)])&&void 0!==s&&s,null!==(n=this[i(475)][i(437)])&&void 0!==n?n:0,null!==(r=this[i(475)].debug)&&void 0!==r&&r,null!==(o=this[i(475)][i(609)])&&void 0!==o&&o,null!==(a=this[i(475)][i(570)])&&void 0!==a&&a,this[i(475)][i(651)],this._options[i(611)],this[i(475)][i(449)],p,f,this[i(475)][i(583)]),this[i(475)].resource&&""!=this._options[i(448)]&&this[i(491)][i(515)](this[i(477)],this[i(475)].resource,null!==(c=this._options[i(458)])&&void 0!==c&&c,null!==(d=this[i(475)][i(437)])&&void 0!==d?d:0,null!==(h=this[i(475)][i(615)])&&void 0!==h&&h,null!==(l=this._options[i(609)])&&void 0!==l&&l,null!==(u=this[i(475)][i(570)])&&void 0!==u&&u,this[i(475)][i(651)],this._options[i(611)],this._options[i(449)],p,f,this[i(475)][i(583)])}[ao(644)](t,n,r,a,c=C[ao(619)],d=!1,h){const l=ao;var u;const p=q[l(460)](t[l(661)]),f=!p&&q[l(593)](t[l(661)],this._options[l(557)]),g=this[l(539)][l(560)]()&&p;i.default.verbose(s.BalancerTag,l(589)+t[l(661)]);const m=new Ve(t.pathname,t.href,this[l(462)],this[l(657)],a,c,g,d,this[l(471)],this[l(622)
2]);if(m.download=n,m[l(559)]=a,this[l(577)][l(434)](m.id,m),!f){const e=this[l(657)].resolveUrl(t.toString(),this[l(498)](a)),n=void 0!==(null===(u=null==e?void 0:e[l(505)])||void 0===u?void 0:u[l(467)])?this._resource[l(442)](e[l(505)][l(534)]):this[l(462)].getRendition(t[l(661)]);(null==e?void 0:e[l(505)])?this[l(470)]+=1:this.manifestFallbacks+=1,null!=n&&(i.default[l(453)](s.BalancerTag,l(478)+n[l(643)]+" "+(null==n?void 0:n[l(440)])+l(639)+n.isAudio+l(646)+t),m.duration=n[l(461)],m.rendition=n,!n[l(433)]&&(this[l(621)][l(547)]=n[l(643)],this[l(621)][l(463)]=n[l(440)]+1,this[l(621)][l(545)]=this[l(462)][l(620)]().size))}this[l(462)]&&this[l(462)][l(480)]();const v=e.default[l(450)]().getCommonVariable(Ee.default.Products[l(552)],Ee.default[l(486)][l(658)]);let y=e.default[l(450)]().getFastDataSessionToken()+(v?"_"+v:"");!y&&(y=this[l(571)]),this[l(563)][l(523)](l(506),y,this._accountCode,this[l(475)].profileName,t[l(659)]()),m.isManifest=f,m[l(460)]=p,n&&(m.on(o[l(501)],t=>co(this,void 0,void 0,function*(){this[l(466)](m),r[0](m)})),m.on(o[l(502)],t=>{const e=l;this[e(626)](m,!0),0==m[e(619)]&&r[e(554)]>1&&r[1](),i.default[e(550)](s.BalancerTag,e(531)+m[e(655)])}));const S=this[l(621)].updateUrl(m);return m[l(593)]&&this[l(475)][l(544)]&&(m.url=null!=S?S:m.url),"P2P"!==S?this[l(621)][l(608)]().set(m.id,m):(m[l(607)]=l(514),m[l(526)]=l(514),this[l(529)](m)[l(546)](t=>{const e=l;i.default[e(550)](s.BalancerTag,"V2 P2P dispatch crashed, falling back to CDN: "+t),m[e(548)]="errors",this[e(443)](m)})),m[l(564)]=Date[l(543)](),m[l(568)]=q[l(519)](),m}_dispatchP2pV2Async(t){return co(this,void 0,void 0,function*(){const e=lo,n=this.diskSegmentStore[e(553)](t[e(454)]);if(n){const r=n[e(447)]();if(r&&r[e(601)]>0)return i.default[e(453)](s.BalancerTag,e(536)+t[e(454)]),t.realBodySize=r[e(601)],void t[e(432)](r[e(488)].slice(r[e(602)],r[e(602)]+r.byteLength));const o=yield this[e(603)].readDataAsync(t.p2pId);if(o&&o[e(601)]>0)return i.default[e(453)](s.BalancerTag,e(530)+t.p2pId),t[e(493)]=o.byteLength,void t.setContent(o[e(488)][e(474)](o.byteOffset,o[e(602)]+o[e(601)]))}if(!this[e(539)][e(613)](t)[e(435)])return t.p2pFailureReason=e(439),void this[e(443)](t);!(yield this[e(539)].requestAsyncWithElection(t))&&(t[e(548)]=e(483),this[e(443)](t))})}[ao(443)](t){const e=ao;var i;t[e(585)]=!1,t[e(599)]=!0,!t[e(556)]&&(t[e(556)]=!0,this.CDNLoader[e(562)]()&&this[e(539)][e(438)](null!==(i=t[e(548)])&&void 0!==i?i:"errors"));const s=this.CDNLoader[e(618)](t);return s&&s!==e(514)?(this[e(621)][e(608)]()[e(434)](t.id,t),!0):(t[e(504)](),!1)}[ao(626)](t,e){const i=ao,s=t[i(607)];t[i(606)]=!0,t[i(485)]&&this[i(621)][i(598)](s),this.CDNLoader[i(595)](s,t),t[i(460)]&&t[i(454)]&&this[i(603)][i(465)](t[i(454)],i(662)),t[i(599)]&&1==t[i(585)]&&(t[i(585)]=!1,this[i(621)][i(618)](t))}[ao(466)](t){const e=ao;we.getInstance().newDownloadedSegment(t),xt[e(450)]()[e(561)](t),t.off(o[e(501)]),t[e(532)](o.Fail);const i=this.CDNLoader[e(537)](t.cdnName);if(i>0&&(new ri)[e(551)](i,t),this.CDNLoader.updateCDNStatsOnSuccess(t),this.CDNLoader.removeActiveSegment(t),this[e(539)][e(560)]()&&t.isMedia){!this.P2PLoader.getSegment(t)&&this[e(539)].storeSegment(t);const i=this[e(539)][e(613)](t);this[e(539)][e(484)](t,i),t.bandwidth>0&&this[e(539)][e(636)](8*t[e(643)])}this._segments[e(586)](t.id)}[ao(482)](t,e){const n=ao;return i.default.warn(s.BalancerTag,n(668)),this[n(637)](t,e)}[ao(637)](t,e){const i=ao;return t===i(514)?(e?this[i(539)][i(464)]():this[i(539)].disable(),!0):this[i(621)][i(645)](t,e)}[ao(665)](t,e){const i=ao;return"P2P"!==t&&(this[i(621)][i(575)](t,e)||!1)}[ao(508)](t,e){const n=ao;this[n(455)](t,e),e&&!e.failed&&e.timeout&&(i.default[n(615)](s.BalancerTag,n(499)+e[n(456)]),this[n(626)](e,!1))}[ao(567)](t,e,i){const s=ao;if(!e)return;const n=i?i[s(650)]:C[s(578)];n>0&&(t[s(540)]=setTimeout(()=>{const i=s;t[i(507)]<2&&this[i(566)](t,e)},n));const r=i?i[s(565)]:C[s(513)];r>0&&(t[s(492)]=setTimeout(()=>{this.timeout(t,e)},r))}[ao(664)](t,e){const i=ao;e&&(C[i(576)]<=0||(e[i(516)]&&clearTimeout(e[i(516)]),e[i(516)]=setTimeout(()=>this[i(566)](t,e),C[i(576)])))}clearConnectTimer(t){const e=ao;
2t&&t[e(540)]&&(clearTimeout(t[e(540)]),delete t[e(540)])}[ao(451)](t,e){const n=ao,r=e[n(485)];if(!r)return;const o=t[n(476)]("Content-Length");if(!o)return;const a=parseInt(o,10);if(!Number[n(616)](a)||a<=0)return;const c=r.currentCdnBandwidthBps;if(null===c||c<=0)return;const d=r[n(487)]?this[n(621)][n(600)]()[n(525)](r.currentCdnName):void 0;if(!d)return;const h=d.concurrencyEma[n(660)](),l=function(t,e,i,s){const n=nt;if(t<=0||e<=0)return-1;if(i>=1)return-1;const r=8*t/e,o=r/(1-i)*i*s,a=Math[n(412)](1e3*Math[n(405)](o,r));return Math.max(a,500)}(a,c,h,r[n(574)]);l>=1&&l<r[n(472)]&&(i.default[n(615)](s.BalancerTag,n(535)+e[n(456)]+" (size="+a+", "+(n(666)+c+n(633)+h[n(579)](3))+", sf="+r[n(574)]+", "+(n(592)+r[n(472)])+", newMs="+l+")"),t.__balancerTotalTimer&&clearTimeout(t[n(492)]),t[n(492)]=setTimeout(()=>this[n(566)](t,e),l))}[ao(455)](t,e){const i=ao;e&&e.requestReadTimeout&&(clearTimeout(e[i(516)]),delete e.requestReadTimeout),t&&(t[i(540)]&&(clearTimeout(t.__balancerConnectTimer),delete t.__balancerConnectTimer),t[i(492)]&&(clearTimeout(t.__balancerTotalTimer),delete t.__balancerTotalTimer))}[ao(610)](t,e,i){}[ao(642)](t,e,i){const s=ao;if(null!=e&&i[s(572)]>0&&this[s(539)][s(560)]()&&e[s(460)]&&!this[s(539)].getSegment(e)&&t.response&&t[s(497)][s(601)]&&t[s(497)][s(601)]>0&&(e[s(511)]=t[s(497)],e.realBodySize=i[s(572)],this[s(539)][s(640)](e)),null!=e&&this[s(539)][s(560)]()&&e[s(460)]){const t=this[s(539)][s(613)](e);t[s(656)]&&(e.realBodySize=i[s(572)]>0?i.total:e[s(493)],this[s(539)][s(549)](e,t))}}[ao(667)](t,e,n){const r=ao;null!=e&&(this[r(664)](t,e),this[r(539)][r(560)]()&&e[r(460)]&&!this.P2PLoader[r(624)](e)&&t[r(497)]&&t[r(497)][r(601)]&&t[r(497)][r(601)]>0&&(i.default[r(615)](s.BalancerTag,r(490)+t[r(558)]),e.data=t[r(497)],n[r(572)]>0&&(e[r(493)]=n[r(572)]),this[r(539)][r(640)](e)),this[r(539)][r(560)]()&&e.isMedia&&t.response&&this[r(539)][r(652)](e,t[r(497)]),e[r(468)](t,n),this.CDNLoader[r(541)]())}[ao(500)](t,e,n){const r=ao;switch(t.readyState){case 2:if(this[r(635)](t),e&&!e[r(516)]&&this[r(664)](t,e),e&&e[r(485)]&&this[r(451)](t,e),n[r(522)]){const e=n[r(522)].get(t);if(e){const i=t[r(476)]("Content-Length");if(i){const t=parseInt(i,10);Number.isFinite(t)&&t>0&&(e[r(509)]=t)}}}break;case 4:if(null!=e){if(this[r(455)](t,e),e.statusCode=t[r(558)],t[r(558)]>=200&&t[r(558)]<400){const i=e[r(623)](t[r(497)],t[r(476)]("Content-Length")||"0",n[r(533)][r(557)]);return e[r(593)]&&!this[r(657)][r(555)](e.url)&&n[r(588)](e.url),i?this.onProcessSegmentSuccess(e):this.onProcessSegmentFail(e,!1),!0}return i.default.debug(s.BalancerTag,r(584)+t[r(558)]+r(605)+e.id),this[r(626)](e,!1),!1}}return!0}[ao(566)](t,e){const i=ao;e[i(566)]=!0,t[i(445)]()}loadEndEM(t,e,i){this.clearAttemptTimers(t,e)}[ao(512)](t,e,i){}[ao(653)](){const t=ao,e=this[t(621)].getStats(),i=this[t(539)][t(653)]();let s=!1,n=0;return i&&this[t(539)]&&this[t(621)][t(653)]()[t(473)]>0&&(s=!0,n=8*i[t(518)]/(i[t(617)]/1e3)),this[t(539)].isEnabled()&&(e[t(569)][t(614)]({downloadedBytes:i[t(518)]||0,downloadedChunks:i[t(444)]||0,bandwidth:Math[t(446)](n||0),instantBandwidth:Math[t(446)](0),lastInstantBandwidth:Math[t(446)](0),peakBandwidth:Math.trunc(0),failures:0,totalFailures:0,retries:0,downloadTime:i[t(617)],provider:t(514),profileName:t(514),isActive:this.P2PLoader[t(560)](),ptb:0,usedOnce:s,hugeChunks:0,firstHugeChunkSize:0,lastChunksLapse:0,maxBandwidth:0,banned:!1,lastBandwidth:0,scoringBandwidth:0}),e[t(590)]=e[t(590)]+(i[t(587)]||0),e[t(473)]=e[t(473)]+(i[t(518)]||0)),e}[ao(649)](){const t=ao;this[t(491)][t(649)]()}enable(){this.isEnabled=!0}[ao(528)](){this[ao(560)]=!1}getIsEnabled(){return this[ao(560)]}[ao(648)](){return this[ao(657)]}[ao(596)](){return this[ao(471)]}[ao(632)](){return this[ao(622)]}[ao(524)](){return this[ao(603)]}[ao(496)](){const t=ao;return Object[t(612)]({modelHits:this[t(470)],fallbackCount:this[t(591)]},this.resourceIdentifier[t(441)]())}[ao(498)](t){const e=ao,i=(null==t?void 0:t[e(489)])||(null==t?void 0:t[e(436)]);if(!i)return;const s=i[e(495)](/bytes=(\d+)-/i);if(!s||s[e(554)]<2)return;const n=Number(s[1]);return Number.isFinite(n)?n:void 0}}function po(t,e){return t-=111,go()[t]}const fo=po;function go(){const t=["932232gEXNjU","set","probes","forEach","2913995XNufSX","130OdofaN","990rNqgQr","78032ZAZrVB","unregister","delete","register","totalDownloadTimeoutMs","onlyForVideoSegments","149454jxVRhv","size","2MIjpUe","168358Gjbfze","enabled","6855470NvnICV","get","10584fNPexZ","getEffectiveBandwidthBps"];return(go=function(){return t})()}!function(t){const e=po,i=t();for(;;)try{if(362008==parseInt(e(113))/1*(parseInt(e(112))/2)+-parseInt(e(119))/3+-parseInt(e(126))/4+-parseInt(e(124))/5*(-parseInt(e(132))/6)+parseInt(e(123))/7+-parseInt(e(117))/8*(-parseInt(e(125))/9)+-parseInt(e(115))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(go);const mo={enabled:!0,connectTimeoutMs:1500,totalDownloadTimeoutMs:5e3,safetyFactor:1.1,minSamplesBeforeAbort:3,onlyForVideoSegments:!0};class vo{constructor(){this[po(121)]=new Map}[fo(129)](t,e){const i=fo;this[i(121)][i(120)](t,e)}[fo(116)](t){const e=fo;return this[e(121)][e(116)](t)}[fo(127)](t){const e=fo;this[e(121)][e(128)](t)}[fo(122)](t){const e=fo;this[e(121)][e(122)]((e,i)=>t(i,e))}[fo(111)](){const t=fo;return this[t(121)][t(111)]}clear(){this[fo(121)].clear()}}const yo=So;function So(t,e){return t-=297,_o()[t]}function _o(){const t=["startTimer","527397QxqeKZ","12miAZRv","firstChunkRegistry","Mbps ","enabled","readCount","publishOnClose","ms)","getFirstChunkSettings","443152feZWhu","now","undefined","2089353oDvLwt","3810395tZYRuI","get","getTag","nowFn","attachFirstChunkProbe","minReadsForEarlySample","warmupTimer","126haHYao","B in ","max","settingsSource","assign","running","12NRwtgw","warmupMs","expectedSizeBytes","function",": observed=","deadlineMs","867478zEpThy","toFixed","15247300XzKAsV","firstChunkSettingsSource","size","abort","destroy","getSettings","set","safetyFactor","minSamplesBeforeAbort","stopTimer","cdn","recordPeakSample","name","isReadyForSampling","notice","delete","tickTimer","defaultNow","tick","unregisterActiveCall","FirstChunk aborting ","cancelled","forEach","observedBytes","(remaining=","startMs","minBytesPerCall","tags","evaluateFirstChunkAborts","armedTickMs","45519zAqXYB","required="];return(_o=function(){return t})()}!function(t){const e=So,i=t();for(;;)try{if(396832==parseInt(e(344))/1+parseInt(e(309))/2+parseInt(e(341))/3*(parseInt(e(345))/4)+-parseInt(e(357))/5+-parseInt(e(303))/6*(parseInt(e(356))/7)+parseInt(e(353))/8*(-parseInt(e(297))/9)+parseInt(e(311))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(_o);const bo={warmupMs:600,tickMs:200,minReadsForEarlySample:3,minBytesPerCall:65536};class To{constructor(t,e){const i=So;this[i(338)]=new Map,this.warmupTimer=null,this[i(327)]=null,this[i(302)]=!1,this.armedTickMs=null,this[i(300)]=t,this[i(360)]=e||To[i(328)]}[yo(361)](t,e){const i=yo;this[i(346)]=t,this[i(312)]=e}[yo(352)](){const t=yo,e="function"==typeof this.firstChunkSettingsSource?this[t(312)]():this[t(312)];return Object[t(301)](Object[t(301)]({},mo),e||{})}[yo(316)](){const t=yo,e="function"==typeof this[t(300)]?this[t(300)]():this.settingsSource;return Object[t(301)](Object[t(301)]({},bo),e||{})}registerActiveCall(t,e){const i=yo,s={cdn:e,startMs:this.nowFn(),observedBytes:0,readCount:0},n=0===this[i(338)].size;return this[i(338)][i(317)](t,s),n&&this[i(343)](),s}[yo(330)](t){const e=yo,i=this[e(338)][e(358)](t);i&&(this[e(338)][e(326)](t),this[e(350)](i),0===this[e(338)][e(313)]&&this[e(320)]())}recordProgress(t,e){const i=yo,s=this[i(338)][i(358)](t);
2s&&(e>s.observedBytes&&(s.observedBytes=e),s[i(349)]+=1)}[yo(359)](t){return this[yo(338)].get(t)}[yo(313)](){return this[yo(338)].size}tick(){const t=yo;if(0===this[t(338)][t(313)])return;const e=this[t(360)]();this[t(338)].forEach(i=>{const s=t;if(!this[s(324)](i,e))return;const n=e-i[s(336)];if(n<=0||i[s(334)]<=0)return;const r=8*i[s(334)]*1e3/n;i.cdn[s(322)](r)}),this[t(339)](e)}[yo(339)](t){const e=yo;if(!this[e(346)]||0===this[e(346)][e(313)]())return;const n=this[e(352)]();n[e(348)]&&this[e(346)][e(333)]((r,o)=>{const a=e;if(o[a(332)])return;const c=this[a(338)][a(358)](r);if(!c)return;if(c[a(349)]<n[a(319)])return;const d=o[a(305)];if(d<=0)return;const h=d-c.observedBytes,l=o[a(308)]-t;if(h<=0||l<=0)return;const u=Math[a(299)](1,t-c[a(336)]),p=8*c[a(334)]*1e3/u,f=8*h*1e3/l;if(!(p>=f*n[a(318)])){o[a(332)]=!0,i.default[a(325)](s.BalancerTag,a(331)+o[a(321)][a(323)]+a(307)+(p/1e6)[a(310)](2)+"Mbps below "+(a(342)+(f/1e6).toFixed(2)+a(347))+(a(335)+h+a(298)+l+a(351)));try{r[a(314)]()}catch(t){}}})}[yo(315)](){const t=yo;this.tags.clear(),this[t(320)]()}[yo(350)](t){const e=yo;if(t.observedBytes<this[e(316)]()[e(337)])return;if(t[e(349)]<this[e(316)]()[e(362)])return;const i=this[e(360)]()-t[e(336)];if(i<=0)return;const s=8*t[e(334)]*1e3/i;t[e(321)][e(322)](s)}[yo(324)](t,e){const i=yo;return!(t[i(334)]<this.getSettings()[i(337)])&&(e-t[i(336)]>=this[i(316)]()[i(304)]||t.readCount>=this[i(316)]().minReadsForEarlySample)}[yo(343)](){const t=yo;if(this.running)return;const e=this[t(316)]();this[t(302)]=!0,this.armedTickMs=e.tickMs,this.warmupTimer=setTimeout(()=>{const i=t;this.warmupTimer=null,this[i(329)](),this.tickTimer=setInterval(()=>this[i(329)](),this[i(340)]||e.tickMs)},e[t(304)])}[yo(320)](){const t=yo;this.running=!1,null!==this[t(363)]&&(clearTimeout(this[t(363)]),this[t(363)]=null),null!==this.tickTimer&&(clearInterval(this[t(327)]),this[t(327)]=null)}static defaultNow(){const t=yo;return typeof performance!==t(355)&&typeof performance[t(354)]===t(306)?performance[t(354)]():Date[t(354)]()}}const wo=Eo;function Eo(t,e){return t-=298,Ao()[t]}!function(t){const e=Eo,i=t();for(;;)try{if(893928==parseInt(e(447))/1*(parseInt(e(506))/2)+parseInt(e(432))/3*(parseInt(e(389))/4)+-parseInt(e(371))/5+parseInt(e(509))/6+parseInt(e(333))/7+parseInt(e(472))/8+parseInt(e(309))/9*(-parseInt(e(454))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ao);function Ao(){const t=["assign","getUploadedChunks","onreadystatechange","segment","Error occurred for URL: ","openAndSend","P2PLoader","apply","rnpaw","peers: ","stopMonitor","11435688bOcivS","getPeersNothing","overrideMimeType"," PEER ID -> ","enable","getUploadedBytes","useTheoplayer","getPeers","load","isCdnBalancerSupported","simpleRequest","sendJoin","status","readyState","get","arraybuffer","verbose","downloadedChunks","setVideoLogic","peakBandwidthSampler","P2P Error on event ready state change","setManifestResource","DONE","processSegment","5912165tdABps","P2P TIMEOUTERROR BY NO DATA ME:","kb ","peer","loadend"," last length -> ","Sending join to tracker due to new manifest","isTheoplayer","send","Error notifying BalancerAnalytics in setManifestResource: ","getBitmovinSendHttpRequest","p2pId","data","getInstance","registerActiveCall","shift","Error in original send: "," peer version ","method","signManifestUsingApi","set","P2P READY FOR ","balancer","blob","abort","searchParams","trim","removeInterceptors","_accountCode","request failed","isManifest"," downloaded through P2P. Size: ","disable","params","options","getId","P2P Error on event load event","getPeersAhead","5405705uyZVxx","cdnName","readystatechange","callTimeoutMilliseconds","responseHeader","getIp","firstChunkProbeRegistry","isValidUrl","FORCE","onAbort","Fetching segment via CDN for -> ","setResourceInfo","throw","pathname","__balancerShadowBridge","responseURL","search","totalDownloadTimeoutMs","4pvfXsC","notice"," peer id -> ","setRequestHeader","ms id:","lastDecisionTimestamp","getRecommendedManifest","debug","length","loadInterceptor","responseType","updateP2PId","useP2P","isEnabled","CDNLoader","getResponseHeader"," TIME: ","undefined","requestHeader","delete","Error in retryBecauseNewHeaders native send: ","ms timeout: ","request","isAudio","getSegment","timeouts","isAsync","forceHttp","url","isTrackOfKnownMaster","videoLogic","startsWith","getStats","credentials","includes","P2P DISPATCH LOAD END","P2P2 Download done -> ","onNewVideoByManifestDetected","loadstart","addInterceptor"," real size-> ","getLoader","pathName","937551sbnrlW","isMedia","addEventListener","getAllResponseHeaders","manifest","timeout","register","function","balanceManifests","allResponseHeader","provider","unregister","gnsnpaw.com","P2P Error on event load end","balanceAudio","802946MUDGUt","media","dispatchEvent","isBitmovin","byteLength","defaultChunkDownloadTimeout","connectivity","10QOTAgS","join","origRes","uploaded: (MB/#/%) ","now","next","progressEM","call","P2P TIMEOUTERROR BY ME: ","connectTimeoutMs","toString","_fallBackP2pToCdn","defineProperty","response","loader","string","resetP2PConnection","Error notifying BalancerAnalytics for manifest: ","2453112SuCnnP","STREBOPX","getCdnList","Error processing segment for header: ","slice","sliceByFirstSpecial","toFixed","Error calling original setRequestHeader: ","interceptors","retryBecauseNewHeaders","P2P DISPATCH READY STATE",'" | resource="',"recordProgress","downloadedBytes","start","open","ur: ","P2P","prototype","getAccountCode","apiHost","resource","error","cdns","elapsedTime","clear","getManifestResolutionStats","loadEndEM","setOptions","loadStartEM","ifByteArrayToString","armAttemptTimers","HTTP for -> ","then","2FHdbls","realBodySize","firstChunkProbe","5874024PRUObe"," peer id: ","headers","body","getNewUrl","?rnpaw=","getUploadRequests"," ip: ","map","loaded","destroy","P2P/SMB Traffic ","isDev","XHR-not-intercepted -> ","value","size","devHost","progress","split","timeToFirstByte","attachFirstChunkProbe","__awaiter","statusText"," size -> ","GET","decisionCallWaitTime"," segmnet p2p id -> "];return(Ao=function(){return t})()}class Io extends dt{constructor(t,n,r){const o=wo;var a;super(),this[o(402)]=!0,this[o(452)]=0,this[o(450)]=!1,this[o(340)]=!1,this.lastDecisionTimestamp=0,this[o(492)]=o(444),this[o(361)]=t,this[o(419)]=r,this[o(367)]=new it,this[o(328)]=new To(()=>this[o(367)].peakSampler),this[o(377)]=new vo,this[o(328)][o(529)](this.firstChunkProbeRegistry,()=>this[o(367)][o(508)]),this.loader=new uo(this[o(361)],this[o(367)],this[o(492)]),this[o(480)]=new z(this);const c=null===(a=null==n?void 0:n.components)||void 0===a?void 0:a[o(355)],d=e.default[o(346)]().getFastDataService().isBalancerEnabledByFastData();let h;if(h=(typeof c===o(406)||!1!==c)&&(void 0!==d?d:typeof c===o(406)||c),!h)return this[o(402)]=!1,this.loader[o(365)](),void this[o(468)][o(304)][o(365)]();const l=this;this[o(375)]=XMLHttpRequest[o(490)][o(404)],XMLHttpRequest[o(490)].getResponseHeader=function(t){const e=o;return l[e(375)][e(461)](this,t)},this[o(441)]=XMLHttpRequest[o(490)].getAllResponseHeaders,XMLHttpRequest[o(490)][o(435)]=function(){const t=o;return l[t(441)][t(461)](this)},this[o(357)]=XMLHttpRequest[o(490)][o(357)],XMLHttpRequest[o(490)][o(357)]=function(){const t=o,e=this.segment;l[t(430)]().clearAttemptTimers(this,e),l[t(328)].unregisterActiveCall(this),l.firstChunkProbeRegistry[t(443)](this);const i=this[t(385)];if(i)try{i[t(357)]()}catch(t){}l[t(430)]()[t(380)](this,e),l[t(357)].call(this)},this.overrideMimeType=XMLHttpRequest.prototype.overrideMimeType,XMLHttpRequest[o(490)][o(311)]=function(t){const e=o;l[e(311)][e(461)](this,t)},this.requestHeader=XMLHttpRequest.prototype[o(392)],XMLHttpRequest[o(490)][o(392)]=function(t,e,...n){const r=o,a=this[r(301)];if(a)try{a[r(511)][t]=e,a[r(481)]=0==a[r(481)]?1:a[r(481)]}catch(t){i.default[r(494)](s.BalancerTag,r(475)+t)}try{l[r(407)].call(this,t,e,...n)}catch(t){throw i.default[r(494)](s.BalancerTag,r(479)+t),t}},this[o(341)]=XMLHttpRequest[o(490)][o(341)],XMLHttpRequest[o(490)][o(341)]=function(t,...e){var n,r,o,a,c,d,h,u,p,f,g,m,v,y,S,_,b,T,w,E,A,R,P,D,N,L;return P=this,D=void 0,L=function*(){const P=Eo;C[P(374)]>0&&(!this[P(437)]||this[P(437)]>C[P(374)])&&this.isAsync&&(this[P(437)]=C[P(374)]);const D=this[P(301)];if((!l[P(402)]||!D||D.isManifest)&&(!D||!(null!==(n=l[P(367)][P(440)])&&void 0!==n&&n||null!==(r=l[P(367)][P(352)])&&void 0!==r&&r)))try{return void l[P(341)].call(this,t,...e)}catch(t){throw i.default.error(s.BalancerTag,P(349)+t),t}if(1==D[P(481)]){D[P(481)]=2,D.updateP2PId();try{l[P(341)].call(this,t,...e)}catch(t){throw i.default[P(494)](s.BalancerTag,P(409)+t),t}return}try{const t=l[P(430)]()[P(421)]()[P(495)];let e=0,n=0,r=0,u=0,p=0,f=0,g=(null===(o=l[P(430)]())||void 0===o?void 0:o.P2PLoader[P(314)]())||0;const m=(null===(a=l[P(430)]())||void 0===a?void 0:a.P2PLoader[P(299)]())||0;g=g/1024/1024;for(let i=0;i<t[P(397)];i++)t[i][P(442)]===P(489)?(n+=t[i][P(485)],u+=t[i][P(326)]):"STREBOOS"===t[i][P(442)]||t[i][P(442)]===P(473)?(p+=t[i].downloadedBytes,f+=t[i][P(326)]):(e+=t[i].downloadedBytes,r+=t[i][P(326)]);const v=null===(c=l[P(430)]())||void 0===c?void 0:c[P(304)][P(515)](),y=null===(d=l[P(430)]())||void 0===d?void 0:d[P(304)].getUploadRequestsFailed(),S=null===(h=l[P(430)]())||void 0===h?void 0:h[P(304)].getUploadedUniqPeers();let _=0,b=0,T=0;try{_=n/(n+e+p)*100,b=p/(n+e+p)*100,T=g/((n+e+p)/1024/1024)*100}catch(t){}const w=l[P(430)]()[P(304)][P(316)]()[P(524)]||0,E=" ("+l.getLoader()[P(304)].getPeersBehind()+"/"+l[P(430)]()[P(304)][P(310)]()+"/"+l[P(430)]()[P(304)][P(370)]()+") ";i.default.verbose(s.BalancerTag,P(520)+_[P(478)](2)+"% "+b[P(478)](2)+"%\nMB(CDN/SB/P2P) "+(e/1024/1024)[P(478)](2)+"/"+(p/1024/1024)[P(478)](2)+"/"+(n/1024/1024)[P(478)](2)+"\nsegments-> ("+r+"/"+f+"/"+u+")\n"+P(307)+w+E+"\n"+P(457)+g[P(478)](2)+"/"+m+"/"+T[P(478)](2)+"\n"+P(488)+v+"|"+y+" UniqPeers: "+S)}catch(t){}const N=Date[P(458)]();D[P(400)]();let L=l[P(468)][P(304)][P(413)](D);if(D[P(372)]!==P(489)||D[P(416)]){i.default[P(325)](s.BalancerTag,(D.forceHttp?P(379):"")+P(504)+D[P(456)]),l[P(430
2)]()[P(403)].getActiveRequests().set(D.id,D),i.default[P(390)](s.BalancerTag,P(381)+D.origRes);const n=l[P(430)]()[P(403)][P(474)]()[P(323)](D[P(372)]),r=Object[P(298)](Object[P(298)]({},mo),l[P(367)][P(508)]||{});if(n&&function(t,e,i){const s=fo;return!(!i[s(114)]||i[s(130)]<=0||i[s(131)]&&!q.isMedia(e)||null!==t[s(118)]())}(n,D[P(431)],r)&&n){r.totalDownloadTimeoutMs>0&&this[P(415)]&&(this[P(437)]=r[P(388)]),l[P(430)]()[P(503)](this,D,{connectTimeoutMs:r[P(463)],totalDownloadTimeoutMs:r[P(388)]});const t=Date[P(458)]();l[P(377)][P(438)](this,{cdn:n,startMs:t,deadlineMs:t+r[P(388)],expectedSizeBytes:-1,cancelled:!1})}else l[P(430)]()[P(503)](this,D);n&&l[P(328)][P(347)](this,n),l[P(341)].call(this,t,...e)}else{let t=!1;i.default[P(390)](s.BalancerTag,"Fetching segment via P2P for -> "+D[P(456)]),D.forceHttp=!0,D[P(401)]=!1;let e=null==L?void 0:L[P(345)],n=L&&(null==L?void 0:L.data.byteLength)>0&&(null==e?void 0:e[P(451)])===(null==L?void 0:L[P(507)])&&(null==L?void 0:L[P(507)])&&(null==L?void 0:L[P(507)])>0,r=0;for(;!n;)yield new Promise(t=>setTimeout(t,20)),L=l.loader[P(304)][P(413)](D),e=null==L?void 0:L[P(345)],r=(null==e?void 0:e[P(451)])||0,n=L&&(null==L?void 0:L.realBodySize)>0&&(null==L?void 0:L[P(345)][P(451)])>0&&(null==e?void 0:e[P(451)])===(null==L?void 0:L[P(507)])&&null!=(null==L?void 0:L[P(507)]),Date[P(458)]()-N>I[P(437)]?(n=!0,e=void 0,t=!0,i.default.verbose(s.BalancerTag,P(462)+l[P(468)][P(304)][P(368)]()+P(405)+(Date[P(458)]()-N)+P(510)+(null===(u=D[P(336)])||void 0===u?void 0:u.id)+" peer version: "+(null===(p=D[P(336)])||void 0===p?void 0:p.getVersion())+P(516)+(null===(f=D[P(336)])||void 0===f?void 0:f.getIp())+" "+r/((null==L?void 0:L.realBodySize)||1)*100+"%")):Date[P(458)]()-N>2e3&&(null==L||null==L[P(345)]||r<20)&&(n=!0,e=void 0,t=!0,i.default.verbose(s.BalancerTag,P(334)+l.loader[P(304)][P(368)]()+" "+(Date.now()-N>2e3)+P(510)+(null===(g=D.peer)||void 0===g?void 0:g.id)+" peer version: "+(null===(m=D[P(336)])||void 0===m?void 0:m.getVersion())+P(516)+(null===(v=D.peer)||void 0===v?void 0:v[P(376)]())+P(338)+r));if(e&&(e=e[P(476)](0,e[P(451)])),t&&(D[P(336)]&&(D[P(336)].timeouts=D[P(336)][P(414)]+1),i.default[P(325)](s.BalancerTag,"P2P TIMEOUTERROR "+D.origRes+" "+D.id+" "+(null===(y=null==L?void 0:L[P(345)])||void 0===y?void 0:y.byteLength)+" "+(null==L?void 0:L[P(507)])+P(312)+(null===(S=D.peer)||void 0===S?void 0:S.id)+" TIMEOUTS "+(null===(_=D[P(336)])||void 0===_?void 0:_[P(414)]))),i.default[P(325)](s.BalancerTag,P(354)+D.origRes+" "+(null==e?void 0:e[P(451)])+" "+(null==L?void 0:L[P(507)])+P(391)+(null===(b=D.peer)||void 0===b?void 0:b.id)+P(535)+D.p2pId),L=l[P(468)].P2PLoader.getSegment(D),e&&(null===(T=null==L?void 0:L[P(345)])||void 0===T?void 0:T.byteLength)==(null==L?void 0:L[P(507)])&&null!=(null==L?void 0:L[P(507)])&&(null==L?void 0:L.realBodySize)>0){i.default[P(390)](s.BalancerTag,D[P(456)]+P(364)+((null===(w=null==L?void 0:L[P(345)])||void 0===w?void 0:w.byteLength)/1048576)[P(478)](2)+"MB"),e instanceof Uint8Array&&(e=e.buffer);const t=new CustomEvent(P(373)),n=new CustomEvent(P(337)),r=new CustomEvent("load"),o=new CustomEvent(P(427));Object.defineProperty(this,"response",{writable:!0}),Object[P(466)](this,P(321),{writable:!0}),Object[P(466)](this,P(531),{writable:!0}),Object[P(466)](this,P(322),{writable:!0}),Object.defineProperty(this,P(451),{writable:!0}),Object[P(466)](this,"responseURL",{writable:!0}),Object[P(466)](this,P(399),{writable:!0}),this[P(451)]=e[P(451)],this[P(467)]=e,this[P(321)]=200,this[P(531)]="OK",this.readyState=XMLHttpRequest[P(331)],this[P(386)]=D[P(456)],this[P(399)]=P(324),i.default.verbose(s.BalancerTag,"P2P DISPATCH LOAD START");try{this[P(449)](o)}catch(t){i.default[P(325)](s.BalancerTag,"P2P Error on event load start")}yield new Promise(t=>setTimeout(t,6)),i.default.verbose(s.BalancerTag,P(482));try{this[P(449)](t)}catch(t){i.default.verbose(s.BalancerTag,P(329))}i.default[P(325)](s.BalancerTag,"P2P DISPATCH LOAD ");try{this[P(449)](r)}catch(t){i.default[P(325)](s.BalancerTag,P(369))}i.default.verbose(s.BalancerTag,P(424));try{this[P(449)](n)}catch(t){i.default[P(325)](s.BalancerTag,P(445))}i.default[P(325)](s.BalancerTag,P(425)+(Date[P(458)]()-N)+P(393)+D[P(344)]+P(532)+e[P(451)]/1024+P(335)+D[P(456)]+P(350)+(null===(E=D.peer)||void 0===E?void 0:E.getVersion())+P(516)+(null===(A=D[P(336)])||void 0===A?void 0:A.getIp()))}else i.default[P(325)](s.BalancerTag,"P2P Failure Update url on problems with p2p "+(Date.now()-N)+P(410)+I[P(437)]+" byte length-> "+(null===(R=null==L?void 0:L[P(345)])||void 0===R?void 0:R[P(451)])+P(429)+(null==L?void 0:L[P(507)])+" original -> "+D[P(456)]),D[P(416)]=!0,D.p2pFailureReason=P(453),l.getLoader()[P(465)](D)&&l[P(303)](this,D)}},new((N=void 0)||(N=Promise))(function(t,e){function i(t){const i=Eo;
2try{n(L[i(459)](t))}catch(t){e(t)}}function s(t){const i=Eo;try{n(L[i(383)](t))}catch(t){e(t)}}function n(e){const n=Eo;var r;e.done?t(e[n(523)]):(r=e[n(523)],r instanceof N?r:new N(function(t){t(r)}))[n(505)](i,s)}n((L=L[Eo(305)](P,D||[])).next())})},this[o(487)]=XMLHttpRequest.prototype.open,XMLHttpRequest[o(490)][o(487)]=function(t,e,n=!0,...r){const a=o;var c,d;const h=this.__balancerRestoreMirroredState;if(typeof h===a(439))try{h()}catch(t){}if(this[a(415)]=n,!l.isEnabled)return l[a(487)].call(this,t,e,n,...r);let u=e;typeof e!==a(469)&&(u=e[a(464)]());let p=u;const f=p[a(527)]("?");p=q[a(477)](p,l[a(367)].allowSpecialDelimitersInUrl);let g=!1;try{const o=new URL(p),h=q[a(363)](o[a(384)]),m=q[a(433)](o[a(384)]),v=q[a(412)](o[a(384)]),y=q.isSubtitles(o.pathname);if(null==this[a(301)]&&Object.defineProperty(this,a(301),{writable:!0}),g=u[a(423)]("&rnpaw=")||u[a(423)](a(514)),g){const t=new URL(u),i=t[a(358)];i[a(408)](a(306)),t[a(387)]=i[a(464)](),e=t.toString()}else if(t===a(533)&&(h||m||v&&l[a(367)][a(446)]||y&&l.options.balanceSubtitles)){let e;if(f.length>1&&(e=f[1]),h)try{null===(c=l[a(419)])||void 0===c||c[a(426)](f[0])}catch(t){i.default[a(396)](s.BalancerTag,a(471)+t)}let o=this.segment;null==o&&(o=l.simpleRequest(f[0],e,{})),null==this.segment&&(this[a(301)]=o),this[a(434)](a(317),function(t){const e=a;l[e(430)]()[e(501)](this,o,t)}),this[a(434)](a(427),function(t){const e=a;l[e(430)]()[e(501)](this,o,t)});const u=this[a(300)],p=t=>{const e=a;null==u||u[e(461)](this,t),l[e(430)]().readyStateChangeEM(this,o,l)};l[a(450)]||l[a(340)]?this[a(300)]=p:this.addEventListener("readystatechange",p),this[a(434)](a(526),function(t){const e=a;l[e(430)]()[e(460)](this,o,t),l[e(328)][e(484)](this,t[e(518)]||0)}),this[a(434)](a(337),function(t){const e=a;l[e(430)]()[e(499)](this,o,t),l[e(328)].unregisterActiveCall(this),l.firstChunkProbeRegistry[e(443)](this)}),this[a(434)](a(494),function(t){});const g=o[a(513)](null!==(d=l[a(367)].balanceManifests)&&void 0!==d&&d);return l.open[a(461)](this,t,g,n,...r)}}catch(t){i.default[a(396)](s.BalancerTag,"Could not parse URL "+p)}return!g&&i.default[a(396)](s.BalancerTag,a(522)+e),l[a(487)].call(this,t,e,n,...r)}}[wo(519)](){const t=wo;i.default[t(396)](s.BalancerTag,"Destroying CDN Balancer"),we[t(346)]()[t(308)](),this[t(328)][t(519)](),this[t(377)][t(497)](),this[t(468)][t(519)](),this.loader[t(304)].destroy(),this.isEnabled&&(XMLHttpRequest.prototype.getResponseHeader=this[t(375)],XMLHttpRequest[t(490)][t(435)]=this.allResponseHeader,XMLHttpRequest[t(490)][t(357)]=this[t(357)],XMLHttpRequest.prototype[t(311)]=this[t(311)],XMLHttpRequest[t(490)].setRequestHeader=this[t(407)],XMLHttpRequest[t(490)][t(341)]=this[t(341)],XMLHttpRequest[t(490)].open=this[t(487)]),this[t(480)][t(360)]()}[wo(491)](){return this[wo(361)]}[wo(500)](t){const e=wo;var i;for(const i in t)this[e(367)][i]=t[i];this[e(492)]=(null!==(i=this[e(367)].host)&&void 0!==i?i:this.options[e(521)])?c[e(525)]:c.host,this[e(468)].destroy(),this[e(468)]=new uo(this._accountCode,this[e(367)],this.apiHost)}openAndSend(t,e){const n=wo;var r,o,a;try{const i=e[n(513)](null!==(r=this.options[n(440)])&&void 0!==r&&r);new Q(t,{open:this[n(487)],send:this[n(341)],setRequestHeader:this[n(407)],abort:this[n(357)]})[n(486)](i,null!==(o=null==e?void 0:e[n(511)])&&void 0!==o?o:{})}catch(t){throw i.default[n(494)](s.BalancerTag,"Error in openAndSend: "+t),i.default.error(s.BalancerTag,n(302)+e.getNewUrl(null!==(a=this[n(367)].balanceManifests)&&void 0!==a&&a)),t}}[wo(411)](t,e,i,s,n,r,o){this[wo(468)].processSegment(t,!0,i,s,n,r,o)}[wo(330)](t){const e=wo;var n,r;if(null===(n=this.loader)||void 0===n?void 0:n.getResourceIdentifier()[e(418)](t))return;const o=Date[e(458)]()-this[e(394)];if(t&&(this.options[e(493)]!==t||o>c[e(534)])){try{null===(r=this.videoLogic)||void 0===r||r[e(426)](t)}catch(t){i.default[e(396)](s.BalancerTag,e(342)+t)}this[e(367)].resource=t,this[e(468)]&&this[e(468)][e(304)]&&this.loader[e(304)][e(402)]()&&(i.default[e(396)](s.BalancerTag,e(339)),this[e(468)][e(304)][e(320)]()),!this[e(468)]&&(this.loader=new uo(this[e(361)],this[e(367)],this.apiHost)),this[e(468)].CDNLoader[e(382)](t),this[e(468)].loadCDNBalancerData(),this[e(394)]=Date[e(458)]()}}getLoader(){return this[wo(468)]}getManifestResolutionStats(){const t=wo;return this.loader[t(498)]()}[wo(327)](t){this[wo(419)]=t}[wo(428)](t,e){const i=wo;this[i(480)][i(398)](t,e)}getRecommendedManifest(){const t=wo;return this[t(468)].CDNLoader[t(395)]()}[wo(315)](){this[wo(340)]=!0}[wo(343)](){const t=wo;return this[t(450)]=!0,function(e,i){const s=t;
2return typeof e===s(406)||!e.startsWith(s(448))&&!e[s(420)](s(436))?null:{getResponse:()=>new Promise((t,e)=>{const s=Eo;var n;let r=Date[s(458)]();const o={request:i,url:i[s(417)],headers:[],status:0,statusText:"",body:void 0},a=new XMLHttpRequest;a.responseType=null!==(n=i[s(399)])&&void 0!==n?n:s(324),a[s(300)]=function(n){const c=s;var d,h;if(2===a[c(322)])o[c(528)]=(Date[c(458)]()-r)/1e3;else if(4===a[c(322)])if(o[c(321)]=a.status,o[c(531)]=a.statusText,o[c(496)]=(Date[c(458)]()-r)/1e3,a[c(321)]>=200&&a[c(321)]<400){"arraybuffer"!==a[c(399)]&&a[c(399)]!==c(356)?(o[c(512)]=q[c(502)](a.response),o[c(397)]=o.body[c(397)]):(o[c(512)]=a[c(467)],"arraybuffer"===a.responseType?o.length=o.body.byteLength:a[c(399)]===c(356)&&(o[c(397)]=o[c(512)][c(524)]));const e=a[c(435)]()[c(359)]()[c(527)](/[\r\n]+/)[c(517)](t=>{const e=c,i=t[e(527)](": ");return{name:i[e(348)](),value:i[e(455)](": ")}});o.headers=e,t(o)}else e({error:c(362),response:{request:{method:i[c(351)],url:i[c(417)],headers:i[c(511)],responseType:null!==(d=i[c(399)])&&void 0!==d?d:"",credentials:null!==(h=i[c(422)])&&void 0!==h?h:""},url:i[c(417)],headers:{},status:a[c(321)],statusText:a[c(531)]}})},a[s(487)](i[s(351)],i[s(417)]);for(const t in i[s(511)])a[s(392)](t,i[s(511)][t]);a.send(null==i?void 0:i.body)}),cancel(){},setProgressListener(){}}}}[wo(470)](){const t=wo;this[t(468)][t(304)].resetP2PConnection(),this[t(367)][t(493)]=void 0}[wo(319)](t,e,n){const r=wo;var o,a;try{let i;try{i=new URL(t)}catch(e){const s=this[r(367)][r(493)];if(!s||!q[r(378)](s))throw e;i=new URL(t,s)}const s=this.loader[r(332)](i,!1,[],n);s[r(366)]=e;const a=(null==n?void 0:n.Range)||"",c=s[r(513)](null!==(o=this[r(367)].balanceManifests)&&void 0!==o&&o);return this[r(468)].segmentsMap[r(353)](c+a,i[r(464)]()),s}catch(e){throw i.default[r(494)](s.BalancerTag,"Error in simpleRequest: "+e+' | url="'+t+r(483)+(null!==(a=this.options[r(493)])&&void 0!==a?a:"")+'"'),e}}[wo(313)](){const t=wo;this[t(402)]=!0,this.loader[t(313)](),this[t(468)].P2PLoader[t(313)]()}disable(){const t=wo;this.isEnabled=!1,this[t(468)][t(365)](),this[t(468)].P2PLoader[t(365)]()}getIsEnabled(){return this[wo(402)]}[wo(318)](){return!0}reload(t){const e=wo;null!=t&&(this[e(367)]=new it(t)),this[e(468)][e(519)](),this[e(468)][e(304)][e(519)](),this[e(468)]=new uo(this[e(361)],this[e(367)],this.apiHost),this[e(402)]=!0}}var Ro=__webpack_require__(6014),Po=__webpack_require__.n(Ro);class Do{constructor(){}static getInstance(t=!1){return this._instance&&!t||(this._instance=new Do),this._instance}showUnsupportedWarning(){Do.warningShown||(i.default.notice("DiagnosticTool"," DiagnosticTools is not supported in this build version."),Do.warningShown=!0)}destroy(){this.showUnsupportedWarning()}start(t){this.showUnsupportedWarning()}setSettings(t){this.showUnsupportedWarning()}clearReportTimeout(){this.showUnsupportedWarning()}setOptions(t){this.showUnsupportedWarning()}setBalancerEnabled(t){this.showUnsupportedWarning()}setVideoAnalyticsEnabled(t){this.showUnsupportedWarning()}setAdsAnalyticsEnabled(t){this.showUnsupportedWarning()}getReportTimeout(){return this.showUnsupportedWarning(),Do.defaultReportTimeout}setReportTimeout(t){this.showUnsupportedWarning()}cleanCdnList(){this.showUnsupportedWarning()}addCdn(t,e){this.showUnsupportedWarning()}updateCdnInfo(t,e,i,s){this.showUnsupportedWarning()}wasSelectorCommunicationSuccessful(t,e){this.showUnsupportedWarning()}setInterceptedRequests(t){this.showUnsupportedWarning()}setActiveSwitchingEnabled(t){this.showUnsupportedWarning()}wasActiveSwitchingDecisionPerformed(t){this.showUnsupportedWarning()}setSwitchedCdns(t){this.showUnsupportedWarning()}usedSelectorAPIResponse(t){this.showUnsupportedWarning()}setTriedSendingBalancerStats(t){this.showUnsupportedWarning()}addNQSRequest(t){this.showUnsupportedWarning()}addNQSEvent(t,e){this.showUnsupportedWarning()}registeredPlayer(t){this.showUnsupportedWarning()}setTriedSendingNQSStats(t){this.showUnsupportedWarning()}addNQSAdRequest(t){this.showUnsupportedWarning()}addNQSAdEvent(t,e){this.showUnsupportedWarning()}registeredAdsPlayer(t){this.showUnsupportedWarning()}setTriedSendingNQSAdStats(t){this.showUnsupportedWarning()}report(){this.showUnsupportedWarning()}}Do.defaultReportTimeout=3e5,Do.warningShown=!1;var Co,No=__webpack_require__(2507),Lo=__webpack_require__.n(No),Bo=__webpack_require__(3782),ko=__webpack_require__.n(Bo),xo=__webpack_require__(7061),Mo=__webpack_require__.n(xo),Oo=__webpack_require__(2071),Uo=__webpack_require__.n(Oo),qo=__webpack_require__(4671),Vo=__webpack_require__.n(qo),Fo=__webpack_require__(3473);class Ho{constructor(t=50){this.requests=[],this.maxSize=t}enqueue(t){return this.requests.length>=this.maxSize?(i.default.warn(s.cN,`Too many requests waiting for token (${this.requests.length}/${this.maxSize}), dropping request`),!1):(this.requests.push(t),!0)}dequeue(){return this.requests.shift()}peek(){return this.requests[0]}unshift(t){this.requests.unshift(t)}isEmpty(){return 0===this.requests.length}size(){return this.requests.length}clear(){this.requests=[]}setMaxSize(t){"number"==typeof t&&t>0&&(this.maxSize=t)}getMaxSize(){return this.maxSize}getRequests(){return this.requests}}!function(t){t.STOPPED="stopped",t.STARTED="started"}(Co||(Co={}));class Go{constructor(t=Co.STOPPED){this.state=t}canSend(t){const e=t.getService(),i=t.getForce();switch(e){case ko().Service.SESSION_START:return this.checkStartRequest
2(t,i);case ko().Service.SESSION_STOP:default:return this.checkNonStartRequest(t,i)}}checkStartRequest(t,e){return this.state===Co.STOPPED?{sendable:!0}:e?(i.default.debug(s.cN,"START request sending even though session is already started (forced)"),{sendable:!0}):(i.default.debug(s.cN,"START request session is already started. Discarding request."),{sendable:!1,reason:"session already started"})}checkNonStartRequest(t,e){return this.state===Co.STARTED?{sendable:!0}:e?(i.default.debug(s.cN,"Non-START request sending even though session is not started (forced)"),{sendable:!0}):(i.default.debug(s.cN,"Non-START request cannot be sent since session is not started yet. Discarding request."),{sendable:!1,reason:"session not started"})}getState(){return this.state}setState(t){this.state=t}isStarted(){return this.state===Co.STARTED}isStopped(){return this.state===Co.STOPPED}}class jo{constructor(t=3,e=100){this.retryCounter=0,this.maxRetries=t,this.retryDelay=e}shouldRetry(t){return this.retryCounter<this.maxRetries?(i.default.debug(s.cN,`${t} failed ${this.retryCounter+1}/${this.maxRetries}. Retrying...`),this.retryCounter++,{shouldRetry:!0,delay:this.retryDelay}):(i.default.warn(s.cN,`${t} failed. Discarding request...`),{shouldRetry:!1,delay:0})}reset(){this.retryCounter=0}getRetryCount(){return this.retryCounter}getMaxRetries(){return this.maxRetries}setMaxRetries(t){"number"==typeof t&&t>=0&&(this.maxRetries=t)}}class Wo{constructor(){this.flushResolve=null,this.flushReject=null,this.flushTimeout=null,this.failedRequests=[],this.isActive=!1}startFlush(t){return new Promise((e,i)=>{if(this.flushResolve)return void i(this.createError("FLUSH_IN_PROGRESS"));this.flushResolve=e,this.flushReject=i,this.failedRequests=[],this.isActive=!0;const s="number"==typeof t&&t>0?t:2500;this.flushTimeout=setTimeout(()=>{this.clear(),i(this.createError("FLUSH_TIMEOUT",{timeoutMs:s}))},s)})}recordFailedRequest(t){this.isActive&&this.failedRequests.push(t)}complete(){var t,e;this.isActive&&(this.failedRequests.length>0?null===(t=this.flushReject)||void 0===t||t.call(this,this.createError("FLUSH_REQUESTS_FAILED",{failedRequests:this.failedRequests})):null===(e=this.flushResolve)||void 0===e||e.call(this),this.clear())}fail(t,e){var i;this.isActive&&(null===(i=this.flushReject)||void 0===i||i.call(this,this.createError(t,e)),this.clear())}isFlushing(){return this.isActive}clear(){this.flushTimeout&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),this.flushResolve=null,this.flushReject=null,this.failedRequests=[],this.isActive=!1}createError(t,e){return{code:t,details:e}}}class Xo{constructor(t,e,i,n=!1,r,o){this.method=s.Method.GET,this.service=t,this.params=e||{},this.body=i,this.force=n,this.onSuccessCallback=r,this.onFailCallback=o}getService(){return this.service}getMethod(){return this.method}setMethod(t){this.method=t}getParams(){return this.params}getForce(){return this.force}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getParam(t){return this.params[t]}setParam(t,e){return this.params[t]=e,this}setParams(t){this.params=t}getBody(){return this.body}setBody(t){this.body=t}isPost(){return this.method===s.Method.POST}}class zo{constructor(t,e,i){this.core=t,this.coreStorage=e,this.expirationManager=i}hasExpired(){return this.expirationManager.isStarted()&&this.expirationManager.isExpired()}recover(t){const e=t||new Xo(ko().Service.SESSION_START,{}),i=Object.assign({},e.getParams());return delete i.sessionId,delete i.sessionRoot,delete i.beatTime,e.setParams(i),this.closeSession(),this.triggerExpireEvent(),e}closeSession(){this.expirationManager.reset(),this.coreStorage.removeStoredData(),this.coreStorage.removeSession(),this.coreStorage.removeLastActive(),this.core.refreshSessionToken()}expireWithoutRecovery(){this.closeSession(),this.triggerExpireEvent()}triggerExpireEvent(){setTimeout(()=>{this.core.throwEvent(s.CoreEvents.SESSION_EXPIRE)},s.ExpireDefault.STOP_VIEWS_AFTER_SESSION_EXPIRE_MS)}getExpirationManager(){return this.expirationManager}}class Ko{constructor(t,e,i,s,n,r){this.processing=!1,this.processTimeout=null,this.startRequest=null,this.onWillSendListeners=[],this.onRequestSentListeners=[],this.core=t,this.queue=e,this.sendabilityPolicy=i,this.retryPolicy=s,this.flushController=n,this.expirationRecovery=r}setListeners(t,e){this.onWillSendListeners=t,this.onRequestSentListeners=e}processRequests(){if(this.clearProcessingTimeout(),this.queue.isEmpty())return void this.flushController.complete();if(this.processing)return;if(""===this.core.getFastDataSessionToken())return void this.delayProcessing(1e3);
2if(this.expirationRecovery.hasExpired()){if(this.processing=!0,!this.core.isSessionRecoveryEnabled())return i.default.notice(s.cN,"Session expired; recovery disabled â dropping queued requests"),this.expirationRecovery.expireWithoutRecovery(),this.queue.clear(),this.sendabilityPolicy.setState(Co.STOPPED),this.startRequest=null,this.processing=!1,void this.flushController.complete();const t=this.expirationRecovery.recover(this.startRequest);return this.queue.unshift(t),this.sendabilityPolicy.setState(Co.STOPPED),this.startRequest=null,this.processing=!1,void this.delayProcessing(1e3)}this.processing=!0;const t=this.queue.peek();t?this.sendabilityPolicy.canSend(t).sendable?this.prepareAndSendRequest(t):this.handleUnsendableRequest(t):this.processing=!1}prepareAndSendRequest(t){this.prepareRequestParams(t);for(const e of this.onWillSendListeners)e(t);i.default.notice(s.cN,this.getRequestDescription(t)),this.core.pushData(this.core.getOptions().offline?Ee.default.Consumer.BLACK_HOLE:Ee.default.Consumer.NQS,t.getService(),t.getMethod(),t.getParams(),()=>this.onRequestSuccess(t),()=>this.onRequestFailure(t))}onRequestSuccess(t){var e;this.expirationRecovery.getExpirationManager().onRequestSent();const i=t.getService();i===ko().Service.SESSION_START?(this.sendabilityPolicy.setState(Co.STARTED),this.startRequest=t):i===ko().Service.SESSION_STOP&&(this.sendabilityPolicy.setState(Co.STOPPED),this.expirationRecovery.closeSession(),this.startRequest=null);for(const e of this.onRequestSentListeners)e(t);this.retryPolicy.reset(),null===(e=t.getOnSuccess())||void 0===e||e(),this.queue.dequeue(),this.processing=!1,this.processRequests()}onRequestFailure(t){var e;const i=this.retryPolicy.shouldRetry(this.getRequestDescription(t));i.shouldRetry?(this.processing=!1,this.delayProcessing(i.delay)):(this.flushController.isFlushing()&&this.flushController.recordFailedRequest(t),this.retryPolicy.reset(),null===(e=t.getOnFail())||void 0===e||e(),this.queue.dequeue(),this.processing=!1,this.processRequests())}handleUnsendableRequest(t){let e;switch(t.getService()){case ko().Service.SESSION_START:e=this.sendabilityPolicy.isStarted()?t.getOnSuccess():t.getOnFail();break;case ko().Service.SESSION_STOP:e=this.sendabilityPolicy.isStopped()?t.getOnSuccess():t.getOnFail();break;default:e=t.getOnFail()}null==e||e(),this.queue.dequeue(),this.processing=!1,this.processRequests()}
2prepareRequestParams(t){const e=t.getService();t.setParam("sessionId",t.getParam("sessionId")||this.core.getFastDataSessionToken()),e===ko().Service.SESSION_START&&t.setParam("beatTime",t.getParam("beatTime")||this.core.getFastDataService().getBeatTime())}getRequestDescription(t){let e="";const i=t.getService();switch(i){case ko().Service.SESSION_START:case ko().Service.SESSION_STOP:case ko().Service.NAV:case ko().Service.SESSION_ERROR:e=t.getParams().route||"";break;case ko().Service.EVENT:case ko().Service.EVENT_END:e=t.getParams().name||""}return`[${this.core.getFastDataSessionToken()}] ${i} ${e}`}delayProcessing(t){this.clearProcessingTimeout(),this.processTimeout=setTimeout(()=>{this.processTimeout=null,this.processRequests()},t)}clearProcessingTimeout(){this.processTimeout&&(clearTimeout(this.processTimeout),this.processTimeout=null)}resetState(){this.clearProcessingTimeout(),this.processing=!1,this.startRequest=null}destroy(){this.clearProcessingTimeout(),this.processing=!1,this.startRequest=null}}class Jo{constructor(t){this._core=e.default.getInstance(),this._coreStorage=this._core.getCoreStorage(),this._expirationManager=new Fo.default(this._coreStorage.getSessionExpire()||s.ExpireDefault.DEFAULT_SESSION_TIMEOUT_MS,s.ExpireDefault.DEFAULT_MAX_DURATION_SESSION_MS,this._coreStorage);const i=t&&"number"==typeof t.maxWaitingRequests&&t.maxWaitingRequests>0?t.maxWaitingRequests:50;this._queue=new Ho(i);const n=this._expirationManager.isStarted()?Co.STARTED:Co.STOPPED;this._sendabilityPolicy=new Go(n),this._retryPolicy=new jo(0,0),this._flushController=new Wo,this._expirationRecovery=new zo(this._core,this._coreStorage,this._expirationManager),this._requestProcessor=new Ko(this._core,this._queue,this._sendabilityPolicy,this._retryPolicy,this._flushController,this._expirationRecovery),this.onRequestQueued=[],this.onWillSendRequest=[],this.onRequestSent=[],this._requestProcessor.setListeners(this.onWillSendRequest,this.onRequestSent)}destroy(){this._expirationRecovery.getExpirationManager().reset(),this._sendabilityPolicy.setState(Co.STOPPED),this._requestProcessor.destroy(),this._queue.clear(),this._flushController=new Wo,this.onRequestQueued=[],this.onWillSendRequest=[],this.onRequestSent=[]}setMaxWaitingRequests(t){this._queue.setMaxSize(t)}queueRequest(t){const e=this._queue.enqueue(t);if(e){for(const e of this.onRequestQueued)e(t);this._requestProcessor.processRequests()}return e}flush(t){const e=this._flushController.startFlush(t);try{this._requestProcessor.processRequests()}catch(t){this._flushController.fail("FLUSH_PROCESSING_ERROR",{originalError:t})}return e}destroySession(){this._requestProcessor.resetState(),this._queue.clear(),this._expirationRecovery.closeSession(),this._sendabilityPolicy.setState(Co.STOPPED)}hasExpired(){return this._expirationRecovery.hasExpired()}isSessionStarted(){return this._expirationManager.isStarted()}isActive(){return this._queueableEvent()}_queueableEvent(){const{indexStart:t,indexStop:e}=this._getLastStartStopIndices();return this._sendabilityPolicy.isStopped()?-1!==t&&t>e:!!this._sendabilityPolicy.isStarted()&&(-1===t||-1!==t&&t>e)}_getLastStartStopIndices(){let t=-1,e=-1;const i=this._queue.getRequests();for(let s=i.length-1;s>=0;s--){const n=i[s].getService();if("session/start"===n&&-1===t?t=s:"session/stop"===n&&-1===e&&(e=s),-1!==t&&-1!==e)break}return{indexStart:t,indexStop:e}}shouldSendStats(){return this._sendabilityPolicy.isStarted()}}var $o=__webpack_require__(9637);class Yo{constructor(){this.listeners=new Map,this.listeners.set("queued",[]),this.listeners.set("willSend",[]),this.listeners.set("sent",[])}addListener(t,e){if(e&&"function"==typeof e){const i=this.listeners.get(t);i&&i.push(e)}}fireListeners(t,e){const i=this.listeners.get(t);i&&i.forEach(t=>{if(t&&"function"==typeof t)try{t(e)}catch(t){}})}getListeners(t){return this.listeners.get(t)||[]}clear(){this.listeners.forEach(t=>t.splice(0,t.length))}}class Qo{constructor(t){this.coreStorage=t,this.properties=this.loadFromStorage()}loadFromStorage(){try{const t=this.coreStorage.getAppAnalyticsRegisteredProperties();return t?JSON.parse(t):null}catch(t){return null}}register(t={},e={}){this.properties={dimensions:t,values:e};
2try{this.coreStorage.setAppAnalyticsRegisteredProperties(JSON.stringify(this.properties))}catch(t){}}registerOnce(t,e){this.properties||this.register(t,e)}unregister(){this.properties=null;try{this.coreStorage.removeAppAnalyticsRegisteredProperties()}catch(t){}}get(){return this.properties}refresh(){this.properties=this.loadFromStorage()}}class Zo{constructor(){this.previousMetrics=null}getChangedMetrics(t){const e=Lo().filterChangedMetrics(t,this.previousMetrics);try{this.previousMetrics=JSON.parse(JSON.stringify(t))}catch(e){i.default.warn(s.cN,"Failed to deep copy session metrics for previous state. Storing shallow copy.",e),this.previousMetrics=Object.assign({},t)}return e}reset(){this.previousMetrics=null}getPreviousMetrics(){return this.previousMetrics}}var ta=__webpack_require__(4954),ea=__webpack_require__.n(ta);class ia{constructor(t,e){this.suspensionTime=0,this.suspended=!1,this.timer=new(ea())(t,e)}start(){this.suspended||this.timer.start()}stop(){this.timer.stop()}get isRunning(){return this.timer.isRunning}suspend(){this.suspended=!0,this.suspensionTime=(new Date).getTime();const t=this.timer.chrono.startTime?this.suspensionTime-this.timer.chrono.startTime:0;return this.stop(),t}resume(t){this.suspended=!1;const e=(new Date).getTime()-this.suspensionTime;return{shouldBeat:e<t,diffTime:e}}isSuspended(){return this.suspended}getTimer(){return this.timer}}class sa{constructor(t,e,i,s,n){this.core=t,this.options=e,this.requestBuilder=i,this.queueRequest=s,this.isMethodPostEnabled=n}isPluginLogsEnabled(){return i.default.debug(s.cN,"isPluginLogsEnabled: "+this.options["debug.pluginLogs.enabled"]),Lo().parseBoolean(this.options["debug.pluginLogs.enabled"])}isPlayerLogsEnabled(){return i.default.debug(s.cN,"isPlayerLogsEnabled: "+this.options["debug.playerLogs.enabled"]),Lo().parseBoolean(this.options["debug.playerLogs.enabled"])}sendPluginLogs(t,e,n){if(!this.core.isUsingLegacy()&&this.isPluginLogsEnabled()){try{if(n&&n.logType&&n.logAction){const t=this.core.getFastDataSessionToken();i.default.notice(s.cN,t.length?"["+t+"] ":n.logType+": Action "+n.logAction)}}catch(t){}if(n.timemark=(new Date).getTime(),null!==(n=this.requestBuilder.buildParams(n,e))&&this.options.enabled){const t=new Xo(e,n);this.isMethodPostEnabled()&&t.setMethod(s.Method.POST),this.queueRequest(t)}}}logFireSessionStartEvent(t){const e={logs:{data:t},logAction:"startSession",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_START","app-analytics-plugin-logs",e)}logFireSessionStopEvent(t){const e={logs:{data:t},logAction:"stopSession",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_START","app-analytics-plugin-logs",e)}logFireSessionErrorEvent(t,e,i="",s="",n=0,r={},o={}){const a={logs:{data:{code:t,msg:e,errorType:i,metadata:s,duration:n,dimensions:r,values:o}},logAction:"errorSession",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_START","app-analytics-plugin-logs",a)}logFireEventListener(t){const e={logs:{data:t},logAction:"eventSession",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_EVENT","app-analytics-plugin-logs",e)}logFireEventEndListener(t){const e={logs:{data:t},logAction:"eventEndSession",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_EVENT_END","app-analytics-plugin-logs",e)}logFireNavListener(t){const e={logs:{data:t},logAction:"nav",logType:"pluginMethod"};this.sendPluginLogs("WILL_SEND_LOG_INFINITY_NAV","app-analytics-plugin-logs",e)}}class na{constructor(t){this.registeredPropertiesGetter=t}assembleForStart(t={},e){const i=this.buildBaseParams(t,null,null,!0,!0,null==e?void 0:e.hasEndDatetime);return this.parseInternalParams(i)}assembleForStop(t={}){return this.parseInternalParams(t)}assembleForEvent(t="",e={},i={},s={},n){const r=this.buildBaseParams(e,i,t,!1,!1,null==n?void 0:n.hasEndDatetime);return Object.assign(r.params,s||{}),this.parseInternalParams(r)}assembleForEventEnd(t="",e={}){const i=this.buildBaseParams(null,null,t,!1,!1,!1);return Object.assign(i.params,e||{}),this.parseInternalParams(i)}assembleForNav(t={},e=!1){const i=this.buildBaseParams(t,null,null,!0,e,void 0);return this.parseInternalParams(i)}assembleForError(t,e){return t.errorCode=e.code,t.errorMsg=e.msg,t.errorType=e.errorType||"",t.errorMetadata=e.metadata||"",t.duration=e.duration||0,t}buildBaseParams(t,e,n,r,o,a){const c={};n&&(c.name=n),c.dimensions=t||{},c.values=e||{};const d=this.registeredPropertiesGetter();if(d){for(const t in d.dimensions)c.dimensions[t]=d.dimensions[t];for(const t in d.values)c.values[t]=d.values[t]}const h={params:c};r&&(h.params.dimensions.page&&(h.params.page=h.params.dimensions.page,delete h.params.dimensions.page),h.params.dimensions.route&&(h.params.route=h.params.dimensions.route,delete h.params.dimensions.route),o||delete h.params.dimensions,delete h.params.values),a&&(h.params.hasEndDatetime=a);try{h.params&&(h.params.dimensions&&"object"==typeof h.params.dimensions&&0===Object.keys(h.params.dimensions).length&&delete h.params.dimensions,h.params.values&&"object"==typeof h.params.values&&0===Object.keys(h.params.values).length&&delete h.params.values)}catch(t){i.default.error(s.cN,"Error removing empty dimensions and values from params json",t)}return h}parseInternalParams(t){return t&&(t.params||t)||{}}}var ra=__webpack_require__(1146);class oa{constructor(t,e,i,s,n){this.core=t,this.options=e,this.requestBuilder=i,this.requestHandler=s,this.sessionContext=n}
2dispatch(t,e,n,r,o){if(!this.core.isUsingLegacy())if(null!==(e=this.requestBuilder.buildParams(e,t,[this.sessionContext,new ra.default(this.options)]))&&this.options.enabled){const i=new Xo(t,e,void 0,n,r,o);this.isMethodPostEnabled()&&i.setMethod(s.Method.POST),this.requestHandler.queueRequest(i)}else i.default.warn(s.cN,"Cannot send session request since either params are not available or options are disabled"),null==o||o()}isMethodPostEnabled(){return this.options.method&&"POST"===this.options.method.toUpperCase()}}class aa{constructor(t){this.options=new(Mo()),this.core=e.default.getInstance(),this.coreStorage=this.core.getCoreStorage(),this.requestHandler=new Jo(this.options),this.accountCode=t,this.requestBuilder=new(Uo()),this.listenerBus=new Yo,this.registeredPropertiesStore=new Qo(this.coreStorage),this.metricsDiffer=new Zo,this.beatScheduler=new ia(this._sendBeat.bind(this),aa.BEAT_INTERVAL),this.paramsAssembler=new na(()=>this.registeredPropertiesStore.get()),this.requestDispatcher=new oa(this.core,this.options,this.requestBuilder,this.requestHandler,this),this.pluginLogger=new sa(this.core,this.options,this.requestBuilder,this.requestHandler.queueRequest.bind(this.requestHandler),this.isMethodPostEnabled.bind(this)),this.requestHandler.onRequestQueued.push(this.onRequestQueued.bind(this)),this.requestHandler.onWillSendRequest.push(this.onWillSendRequest.bind(this)),this.requestHandler.onRequestSent.push(this.onRequestSent.bind(this)),this._lastNavigation={page:"",route:""}}destroy(){this.beatScheduler.stop(),this.requestHandler.destroy(),this.listenerBus.clear()}start(t,e={},n,r,o=!1){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot start session since session is using legacy"),void(null==r||r());t&&this.setOptions(t),this.registeredPropertiesStore.refresh(),this.pluginLogger.logFireSessionStartEvent(e);const a=this.paramsAssembler.assembleForStart(e);this.requestDispatcher.dispatch(ko().Service.SESSION_START,a,o,n,r)}stop(t={},e,n,r=!1){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot stop session since session is using legacy"),void(null==n||n());this.pluginLogger.logFireSessionStopEvent(t);const o=this.paramsAssembler.assembleForStop(t);this.requestDispatcher.dispatch(ko().Service.SESSION_STOP,o,r,e,n),this.metricsDiffer.reset()}sendEvent(t="",e={},n={},r={},o=!1,a,c){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot send session event since session is using legacy"),void(null==c||c());this.pluginLogger.logFireEventListener(t);const d=this.paramsAssembler.assembleForEvent(t,e,n,r,{hasEndDatetime:o});this.requestDispatcher.dispatch(ko().Service.EVENT,d,!1,a,c)}sendEventEnd(t="",e={},n,r){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot send session event since session is using legacy"),void(null==r||r());this.pluginLogger.logFireEventEndListener(t);const o=this.paramsAssembler.assembleForEventEnd(t,e);this.requestDispatcher.dispatch(ko().Service.EVENT_END,o,!1,n,r)}fireNav(t={},e,n){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot send session navigation since session is using legacy"),void(null==n||n());this.pluginLogger.logFireNavListener(t);const r=this.paramsAssembler.assembleForNav(t,!1);this._checkDifferentNavigation(r)?(this.requestDispatcher.dispatch(ko().Service.NAV,r,!1,e,n),this._lastNavigation.page=r.page,this._lastNavigation.route=r.route):(i.default.warn(s.cN,"Same navigation detected and ignored for Page and Route"),null==n||n())}fireError(t,e,n="",r="",o=0,a={},c={},d,h){if(this.core.isUsingLegacy())return i.default.warn(s.cN,"Cannot send session error since session is using legacy"),void(null==h||h());this.pluginLogger.logFireSessionErrorEvent(t,e,n,r,o,a,c);let l=this.paramsAssembler.assembleForEvent("",a,c,{},{hasEndDatetime:!1});l=this.paramsAssembler.assembleForError(l,{code:t,msg:e,errorType:n,metadata:r,duration:o}),this.requestDispatcher.dispatch(ko().Service.SESSION_ERROR,l,!1,d,h)}_sendBeat(t){const e={diffTime:t};this.requestDispatcher.dispatch(ko().Service.BEAT,e,!1)}_checkDifferentNavigation(t){t=t||{};const e=this._lastNavigation&&t.route===this._lastNavigation.route,i=this._lastNavigation&&t.page===this._lastNavigation.page;return!e||!i}suspend(){if(i.default.notice(s.cN,"Suspending session"),this.isActive()){const t=this.beatScheduler.suspend();this._sendBeat(t)}else this.beatScheduler.stop()}resume(){if(i.default.notice(s.cN,"Resuming session"),this.isActive()){const t=1e3*this.core.getFastDataService().getSessionExpireTime(),{shouldBeat:e,diffTime:i}=this.beatScheduler.resume(t);e&&this._sendBeat(i),this.beatScheduler.start()}}setOptions(t){try{if(t&&Object.keys(t).length>0){const e=new(Vo()),i={};for(const s in t)e.exists(s)?i[e.getNewName(s)]=t[s]:i[s]=t[s];this.options&&Object.keys(this.options).length>0?Object.assign(this.options,i):this.options=i,this.requestHandler&&void 0!==i.maxWaitingRequests&&this.requestHandler.setMaxWaitingRequests(i.maxWaitingRequests)}}catch(t){}}getOptions(){return this.options}isUsingLegacy(){return this.core.isUsingLegacy()}getAccountCode(){return this.accountCode}isActive(){return this.requestHandler.isActive()}expiredSession(){return this.requestHandler.hasExpired()}hasPersistedSession(){return!this.isUsingLegacy()&&this.requestHandler.isSessionStarted()}flush(t){return this.requestHandler.flush(t)}destroySession(){this.core.isUsingLegacy()?i.default.warn(s.cN,"Cannot destroy session since session is using legacy"):(this.beatScheduler.stop(),this.metricsDiffer.reset(),this.requestHandler.destroySession(),this._lastNavigation={page:"",route:""})}register(t={},e={}){this.registeredPropertiesStore.register(t,e)}registerOnce(t,e){this.registeredPropertiesStore.registerOnce(t,e)}unregister(){this.registeredPropertiesStore.unregister()}onRequestQueued(t){this.listenerBus.fireListeners("queued",t)}onWillSendRequest(t){t.getService()===ko().Service.SESSION_STOP&&this.beatScheduler.stop(),this.listenerBus.fireListeners("willSend",t)}onRequestSent(t){t.getService()===ko().Service.SESSION_STOP||this.beatScheduler.isRunning||this.beatScheduler.isSuspended()||this.beatScheduler.start(),this.listenerBus.fireListeners("sent",t)}addListenerRequestQueued(t){t&&this.listenerBus.addListener("queued",t)}addListenerRequestWillSend(t){t&&this.listenerBus.addListener("willSend",t)}addListenerRequestSent(t){t&&this.listenerBus.addListener("sent",t)}getSessionMetrics(){const t=Lo().getMetricsFrom(this.options["session.metrics"])||{};return this.metricsDiffer.getChangedMetrics(t)}isPlayerLogsEnabled(){return this.pluginLogger.isPlayerLogsEnabled()}isSimpleNewSession(){return!!this.options&&Lo().parseBoolean(this.options.simpleNewSession)}isPluginLogsEnabled(){return this.pluginLogger.isPluginLogsEnabled()}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===$o.POST}getSessionRoot(){return this.core.getFastDataSessionToken()}getSessionHost(){return this.core.getFastDataSessionHost()}_sendPluginLogs(t,e,i){this.pluginLogger.sendPluginLogs(t,e,i)}_logFireSessionStartEvent(t){this.pluginLogger.logFireSessionStartEvent(t)}_logFireSessionErrorEvent(t,e,i="",s="",n=0,r={},o={}){this.pluginLogger.logFireSessionErrorEvent(t,e,i,s,n,r,o)}_logFireSessionStopEvent(t){this.pluginLogger.logFireSessionStopEvent(t)}_logFireEventListener(t){this.pluginLogger.logFireEventListener(t)}_logFireEventEndListener(t){this.pluginLogger.logFireEventEndListener(t)}_logFireNavListener(t){this.pluginLogger.logFireNavListener(t)}}aa.BEAT_INTERVAL=3e4;var ca=__webpack_require__(2602),da=__webpack_require__(108);class ha{constructor(t){this.appAnalyticsStarted=!1,this.appAnalyticsStopped=!1,this.session=t,this.session.addListenerRequestQueued(this.onRequestQueued.bind(this)),this.session.addListenerRequestWillSend(this.onRequestWillSend.bind(this)),this.session.addListenerRequestSent(this.onRequestSent.bind(this))}destroy(){this.session.destroy()}setOptions(t){this.session.setOptions(t)}getOptions(){return this.session.getOptions()}newSession(t,e={}){this.session.isUsingLegacy()||(this._logFireNewSessionListener(null!=t?t:{},e),this.session.isSimpleNewSession()||(this.appAnalyticsStarted||this.appAnalyticsStopped?this.endSession():this.session.hasPersistedSession()&&this.session.destroySession()),t&&this.setOptions(t),this.begin(e))}begin(t={}){this.session.isUsingLegacy()||(this._logBeginEvent(t),this.appAnalyticsStopped&&(this.appAnalyticsStopped=!1),this.appAnalyticsStarted||(this.appAnalyticsStarted=!0,this.session.expiredSession()||this.session.start(void 0,t,void 0,void 0,!0)))}endSession(t={}){this.session.isUsingLegacy()||this.appAnalyticsStarted&&(this.appAnalyticsStopped=!0,this.appAnalyticsStarted=!1,this.session.stop(t,void 0,void 0,!0))}fireSessionStart(t={}){this.begin(t)}fireSessionStop(t={}){this.endSession(t)}fireEvent(t="",e={},i={},s={},n=!1){this.session.sendEvent(t,e,i,s,n)}fireEventEnd(t=""){this.session.sendEventEnd(t)}fireError(t,e,i="",s="",n=0,r={},o={}){this.session.isUsingLegacy()||this.session.isActive()&&this.session.fireError(t,e,i,s,n,r,o)}trackAppError(t,e,i,s,n,r,o,a){if(!this.ensureSessionStarted(`track app error with code '${t}'`))return;const c=this.buildDimensionMap({errorType:i,errorSource:s,page:r,fatal:o});this.session.fireError(t,e,null!=i?i:"",null!=n?n:"",null!=a?a:0,c,{})}trackLogEvent(t,e,i,s,n){this.ensureSessionStarted(`track log event with level '${t}' and category '${e}'`)&&this.processSessionEvent("logEvent",{logLevel:t,logCategory:e,errorSource:i,page:s,metadata:n})}trackANREvent(t,e,i){this.ensureSessionStarted(`track ANR event of type '${t}'`)&&this.processSessionEvent("anrEvent",{anrType:t,page:e},{duration:i})}trackLoginResult(t,e,i,s,n,r){this.ensureSessionStarted(`track login result with status '${e}'`)&&this.processSessionEvent("appLoginResult",{authType:t,authStatus:e,retryCounter:i,page:s},{},{profileId:n,username:r})}trackSignupResult(t,e,i,s,n,r){this.ensureSessionStarted(`track signup result with status '${e}'`)&&this.processSessionEvent("appSignupResult",{authType:t,authStatus:e,retryCounter:i,page:s},{},{profileId:n,username:r})}trackAppStatus(t,e,i,s,n,r,o,a){this.ensureSessionStarted("track app status monitoring event")&&this.processSessionEvent("appStatusMonitoring",{batteryLevel:t,availableMemory:e,networkType:i,appForegroundBackgroun
2d:s,diskSpace:n},{batteryPercentage:r,memoryMB:o,diskMB:a})}trackAPIResponse(t,e,i,s,n,r,o){this.ensureSessionStarted(`track API response for endpoint '${e}'`)&&this.processSessionEvent("apiResponsePerformance",{apiProvider:t,apiEndpoint:e,method:i,apiResponseCode:s,httpStatus:n.toString(),page:r},{apiResponseTime:o})}trackEPGPerformance(t,e,i,s,n){this.ensureSessionStarted(`track EPG performance for provider '${t}'`)&&this.processSessionEvent("epgPerformance",{epgProvider:t,refreshStatus:e,page:i},{refreshDuration:s,channelsLoaded:n})}trackRemoteControlEvent(t,e,i,s){this.ensureSessionStarted(`track remote control event for button '${t}'`)&&this.processSessionEvent("remoteControlEvent",{rcuButton:t,actionTaken:e,eventSuccess:i,page:s})}fireCrashError(t,e,i="",s=0,n={},r={}){this.session.isUsingLegacy()||this.session.isActive()&&this.session.fireError(t,e,"Crash",i,s,n,r)}fireNavigation(t={}){this.session.isUsingLegacy()||this.session.isActive()&&(this.appAnalyticsStarted=!0,this.session.fireNav(t))}fireNav(t={}){this.fireNavigation(t)}isActive(){return this.session.isActive()}isStarted(){return this.appAnalyticsStarted}getSessionRoot(){return this.isActive()?this.session.getSessionRoot():null}getSessionHost(){return this.isActive()?this.session.getSessionHost():null}_logBeginEvent(t){const e={logs:{data:t},logAction:"beginSession",logType:"pluginMethod"};this.session._sendPluginLogs(ko().WillSendLog.WILL_SEND_LOG_INFINITY_BEGIN,ko().Service.APP_ANALYTICS_PLUGIN_LOGS,e)}_logFireNewSessionListener(t,e){const i={logs:{data:t,params:e},logAction:"newSession",logType:"pluginMethod"};this.session._sendPluginLogs(ko().WillSendLog.WILL_SEND_LOG_INFINITY_NAV,ko().Service.APP_ANALYTICS_PLUGIN_LOGS,i)}onRequestQueued(t){i.default.debug(s._y,"Request queued",t)}onRequestWillSend(t){i.default.debug(s._y,"Request send",t)}onRequestSent(t){i.default.debug(s._y,"Request sent",t)}ensureSessionStarted(t){return!!this.isStarted()||(i.default.error(s._y,`Cannot ${t} because AppAnalytics session is not started. Call fireSessionStart() first.`),!1)}buildDimensionMap(t={}){const e={};return Object.keys(t).forEach(i=>{const s=t[i];null!=s&&(e[i]=String(s))}),e}buildMetricsMap(t={}){const e={};return Object.keys(t).forEach(i=>{const s=t[i];if(null!=s){const t=Number(s);Number.isNaN(t)||(e[i]=t)}}),e}processSessionEvent(t,e={},i={},s={},n=!1){const r=this.buildDimensionMap(e),o=this.buildMetricsMap(i),a=this.buildDimensionMap(s);this.session.sendEvent(t,r,o,a,n)}onSessionStart(t){this.session.addListenerRequestSent(e=>{e.getService()===da.A.Service.SESSION_START&&t()})}onSessionStop(t){this.session.addListenerRequestSent(e=>{e.getService()===da.A.Service.SESSION_STOP&&t()})}}var la,ua=__webpack_require__(5804),pa=__webpack_require__.n(ua);class fa{constructor(){this.autoTrackNavigation=!0,this.autoTrackAttribution=!0,this.highlightContentAfter=1e3,this.manageAnonymousUsers=!1,this.enableExperiments=!1,this.pageRules=[]}static buildFromObject(t){let e;return"object"==typeof t&&null!==t?(e=new fa,"boolean"==typeof t.autoTrackNavigation&&(e.autoTrackNavigation=t.autoTrackNavigation),"boolean"==typeof t.autoTrackAttribution&&(e.autoTrackAttribution=t.autoTrackAttribution),"number"==typeof t.highlightContentAfter&&(e.highlightContentAfter=t.highlightContentAfter),"boolean"==typeof t.manageAnonymousUsers&&(e.manageAnonymousUsers=t.manageAnonymousUsers),"boolean"==typeof t.enableExperiments&&(e.enableExperiments=t.enableExperiments),"object"==typeof t.pageRules&&Array.isArray(t.pageRules)&&(e.pageRules=t.pageRules)):e=null,e}validate(){const t=new fa;this.highlightContentAfter<1e3&&(this.highlightContentAfter=t.highlightContentAfter,i.default.warn(s.ob,"Invalid higlightContentAfter value. Using default value instead."))}}window.npawtmConfig=window.npawtmConfig||{};class ga{constructor(t){this.fireEvent=t,"undefined"==typeof window||"object"!=typeof window.npawtmConfig?this.config=null:this.config=window.npawtmConfig}identify(t){let e,n;return n=null,e=[],this.config?(n=this.getPage(t),null===n?i.default.warn(s.ob,"no page found"):e=this.getEvents(n)):i.default.warn(s.ob,"no config descriptor available"),"undefined"==typeof window?i.default.warn(s.ob,"Product Analytics Config: cannot bind events since DOM is not available"):e.length>0&&window.addEventListener("load",()=>{this.bindElements(e)}),n}getPage(t){let e,i,s,n,r,o=null;if("object"==typeof t&&null!==t&&this.config&&this.config.urls&&this.config.regexes&&this.config.domains&&this.config.domains.includes(t.hostname.toLowerCase()))for(s=this.config.urls[t.pathname],void 0!==s&&void 0!==s.page&&(o=s.page),e=t.pathname+t.search,r=0;r<this.config.regexes.length&&null===o;r++)i=this.config.regexes[r],n=new RegExp(i.regex),e.match(n)&&(o=i.page);return o}getEvents(t){let e=this.config&&this.config.events?this.config.events[t]:null;return null==e&&(e=[]),e}bindElements(t){let e,n,r,o,a;for(a=0;a<t.length;a++)if(e=t[a],r=document.querySelector(e.selector),null===r)i.default.warn(s.ob,"element "+e.selector+" not found");else if(0===e.events.length)i.default.warn(s.ob,"element "+e.selector+" has no events to bind");else for(o=0;o<e.events.length;o++)n=e.events[o],r.npawEventInfo=e,r.npawEventType=n,r.addEventListener(n,t=>{this.elementEvent(t.currentTarget.npawEventInfo,t.currentTarget.npawEventType)})}elementEvent(t,e){const n="["+e+"] "+t.name;this.fireEvent?this.fireEvent(n,e,{uiElement:t.name,eventName:n,eventType:e}):i.default.warn(s.ob,"Cannot trigger event since no handler has been provided")}}!function(t){t.userProfile="User Profile",t.user="User",t.navigation="Navigation",t.attribution="Attribution",t.section="Section",t.epg="EPG",t.contentPlayback="Content Playback",t.search="Search",t.externalApplication="External Application",t.engagement="Engagement",t.interaction="Interaction",t.custom="Custom Event"}(la||(la={}));const ma=la;var va=__webpack_require__(1577);class ya{constructor(t,e,i){this.experimentCode=t,this.variantCode=e,this.variantPayload=i}}class Sa{static parse(t){let e,n;try{e=t||""!==t.trim()?JSON.parse(t):null,Array.isArray(e)?(n=[],e.forEach(t=>{"object"==typeof t&&null!==t||(t={});const e=t;let i=e.experiment,s=e.variant;"object"==typeof i&&null!==i||(i={}),"object"==typeof s&&null!==s||(s={});
2const r="string"==typeof i.code?i.code:"",o="string"==typeof s.code?s.code:"",a=s.payload&&"object"==typeof s.payload?s.payload:null;""===r&&""===o||null==n||n.push(new ya(r,o,a))})):n=null}catch(t){i.default.error(s.ob,"Error parsing experiments response:",t),n=null}return n}static fetch(t,e,i,s,n,r){try{const o=new XMLHttpRequest;o.open(t,`${e}${va.default.toQueryString(i)}`),o.onreadystatechange=()=>{4!==o.readyState||(o.status>=200&&o.status<400?n&&n(o.status,o.responseText):r&&r(o.status))},o.onerror=()=>{r&&r(-1)},o.ontimeout=()=>{r&&r(-1)},o.send(s)}catch(t){r(-1)}}constructor(t,e,i,s){this.accountCode=t,this.userId=e,this.profileId=i,this.deviceId=s,this.experimentVariants=[]}fetch(){const t={accountCode:this.accountCode};this.userId&&(t.userId=this.userId),this.profileId&&(t.profileId=this.profileId),this.deviceId&&(t.deviceId=this.deviceId),Sa.fetch("GET","https://experiments.npaw.com/assign",t,null,(t,e)=>{const n=Sa.parse(e);n?(this.experimentVariants=n,i.default.debug(s.ob,`Loaded ${n.length} experiment variants`)):(this.experimentVariants=[],i.default.warn(s.ob,"Failed parsing experiment variants"))},t=>{this.experimentVariants=[],i.default.warn(s.ob,`Failed to fetch experiment variants: HTTP ${t}`)})}getVariant(t){return this.experimentVariants.find(e=>e.experimentCode===t)||null}}class _a{constructor(t,i,s,n,r){if(this.session=t,this.session.addListenerRequestQueued(this.onRequestQueued.bind(this)),this.session.addListenerRequestWillSend(this.onRequestWillSend.bind(this)),this.session.addListenerRequestSent(this.onRequestSent.bind(this)),this.initialized=!1,this.settings=new fa,this.page=null,this.config=null,this.searchQuery="",this.url=null,"undefined"!=typeof window&&void 0!==window.location)try{this.url=new URL(window.location.href)}catch(t){this.url=null}this.contentHighlighted=null,this.contentHighlightTimeout=null,this.pendingVideoEvents={},this.adapters={},this.getReferral=i,this.setAnalyticsOptions=s,this.addVideoRequestListener=n,this.removeVideoRequestListener=r,this.experiments=new Sa(e.default.getInstance().getFastDataService().getAccountCode(),this.getUserId(),this.getProfileId(),this.getDeviceUUID()),this.videoListenerAccessor=this.videoListener.bind(this)}initialize(t){let e;if(void 0===t)this.settings=new fa,i.default.warn(s.ob,"Settings not supplied: using default ones.");else if(t instanceof fa)this.settings=t;else{const e=fa.buildFromObject(t);null===e?(this.settings=new fa,i.default.warn(s.ob,"Invalid settings supplied: using default ones.")):this.settings=e}this.settings.validate(),this.config=new ga(this.fireEventInternal.bind(this)),this.identify(),this.initialized=!0;const n=this.getUserId(),r={};null===n?Object.assign(r,this.getAnonymousUserOptions()):Object.assign(r,this.getAuthenticatedUserOptions(n,this.getProfileId())),this.setAnalyticsOptions(r),this.session.isActive()&&this.fetchExperimentVariants(),this.session.start(),this.settings.autoTrackNavigation&&("undefined"==typeof window?i.default.warn(s.ob,"Cannot auto track cached navigation since DOM is not available."):(window.removeEventListener("pageshow",this.trackNavigationCached),window.addEventListener("pageshow",this.trackNavigationCached.bind(this))),this.trackNavigationInternal()),this.settings.autoTrackAttribution&&(e=null===this.url?"":this.url.search,this.trackAttributionInternal(new URLSearchParams(e)))}identify(){let t,e,n;for(null===this.config?this.page=null:this.page=this.config.identify(this.url),n=0;n<this.settings.pageRules.length&&null===this.page&&null!==this.url;n++)if(t=this.settings.pageRules[n],void 0!==t.rule&&void 0!==t.page){try{e=new RegExp(t.rule)}catch(n){e=null,i.default.warn(s.ob,"Error processing rule",t.rule,t.page)}null!==e&&null!==this.url.pathname.match(e)&&(this.page=this.url.pathname.replace(e,t.page))}null===this.page&&null!==this.url&&(this.page=this.url.pathname)}destroy(){i.default.warn(s.ob,"ProductAnalytics instance destroyed through destroy");for(const t of Object.keys(this.adapters))this.removeAdapter(t);this.contentFocusOut(),this.initialized=!1,this.settings=new fa,this.page=null,this.config=null,this.searchQuery="",this.url=null}getAuthenticatedUserOptions(t,e){return void 0!==e&&""!==e||(e=null),{userId:t,"user.type":"Registered",profileId:e}}getAnonymousUserOptions(){return{userId:this.settings.manageAnonymousUsers?this.getDeviceUUID():null,"user.type":"Unregistered",profileId:null}}getOptions(){return this.session.getOptions()}getUserId(){const t=this.getOptions();let e;return e=Object.prototype.hasOwnProperty.call(t,"userId")?t.userId:Object.prototype.hasOwnProperty.call(t,"user.name")?t["user.name"]:null,void 0===e?e=null:"string"==typeof e&&(""!==e.trim()&&"unregistered user"!==e.trim().toLowerCase()||(e=null)),e}getProfileId(){const t=this.getOptions();let e;return e=Object.prototype.hasOwnProperty.call(t,"profileId")?t.profileId:null,e}getDeviceUUID(){const t=this.getOptions();let e;return e=t["device.isAnonymous"]?null:t["device.id"]||(new(pa())).getKey(),e}fetchExperimentVariants(){this.settings.enableExperiments&&(this.experiments=new Sa(e.default.getInstance().getFastDataService().getAccountCode(),this.getUserId(),this.getProfileId(),this.getDeviceUUID()),this.experiments.fetch())}adapterTrackStart(t){this.initialized&&this.trackPlayerInteraction("start",{},{},t)}registerAdapter(t,e){this.initialized&&(t?(this.removeAdapter(e),this.adapters[this.getVideoKey(e)]=t,1===Object.keys(this.adapters).length&&this.addVideoRequestListener(this.videoListenerAccessor)):i.default.warn(s.ob,"Cannot bind adapter start since adapter is unavailable."))}removeAdapter(t){t=this.getVideoKey(t),delete this.adapters[t],delete this.pendingVideoEvents[t],0===Object.keys(this.adapters).length&&this.removeVideoRequestListener(this.videoListenerAccessor)}getAdapter(t){return this.adapters[this.getVideoKey(t)]||null}getVideoKey(t){return t||_a.VIDEOKEY_DEFAULT_IDENTIFIER}videoListener(t,e,i){t===ko().Service.START&&this.adapterTrackStart(e)}newSession(){this.initialized?(this.session.stop(),this.session.start()):i.default.warn(s.ob,"Cannot start a new session since Product Analytics is uninitialized.")}endSession(){this.initialized?this.session.stop():i.default.warn(s.ob,"Cannot end session since Product Analytics is uninitialized.")}sessionActive(){return this.session.isActive()}loginSuccessful(t,e,n,r,o){if(this.checkState("log in successfully"))if("string"!=typeof t&&"number"!=typeof t)i.default.warn(s.ob,"Cannot log in successfully since userId is unavailable.");else if(""===t)i.default.warn(s.ob,"Cannot log in successfully since userId is unset.");else{this.fireEventInternal("User Login Successful",ma.user,{username:t,paIsBounce
2:!0,paIgnoreSession:!0},r,o),null!=e&&""!==e&&this._userProfileSelectedEvent(e,n,r,o);const i=this.getAuthenticatedUserOptions(t,e);this.setAnalyticsOptions(i),this.newSession()}}loginUnsuccessful(t,e){this.checkState("log in unsuccessful")&&this.fireEventInternal("User Login Unsuccessful",ma.user,{paIsBounce:!0,paIgnoreSession:!1},t,e)}logout(t,e){if(this.checkState("log out")){this.fireEventInternal("User Logout",ma.user,{paIsBounce:!0,paIgnoreSession:!1},t,e);const i=this.getAnonymousUserOptions();this.setAnalyticsOptions(i),this.newSession()}}userProfileCreated(t,e,n,r){if(this.checkState("create user profile"))if("string"!=typeof t&&"number"!=typeof t)i.default.warn(s.ob,"Cannot create user profile since profileId is unavailable.");else if(""===t)i.default.warn(s.ob,"Cannot create user profile since profileId is unset.");else{const i=this._getUserProfileDimensions(t,e,!1);this.fireEventInternal("User Profile Created",ma.userProfile,i,n,r)}}userProfileSelected(t,e,n,r){if(this.checkState("select user profile"))if("string"!=typeof t&&"number"!=typeof t)i.default.warn(s.ob,"Cannot select user profile since profileId is unavailable.");else if(""===t)i.default.warn(s.ob,"Cannot select user profile since profileId is unset.");else{this._userProfileSelectedEvent(t,e,n,r);const i=this.getAuthenticatedUserOptions(this.getUserId(),t);this.setAnalyticsOptions(i),this.newSession()}}_userProfileSelectedEvent(t,e,i,s){const n=this._getUserProfileDimensions(t,e,!0);this.fireEventInternal("User Profile Selected",ma.userProfile,n,i,s)}userProfileDeleted(t,e,n){if(this.checkState("delete user profile"))if("string"!=typeof t&&"number"!=typeof t)i.default.warn(s.ob,"Cannot delete user profile since profileId is unavailable.");else if(""===t)i.default.warn(s.ob,"Cannot delete user profile since profileId is unset.");else{const i=this._getUserProfileDimensions(t,null,!1);this.fireEventInternal("User Profile Deleted",ma.userProfile,i,e,n)}}_getUserProfileDimensions(t,e,i){const s={profileId:t,paIsBounce:!0,paIgnoreSession:"boolean"==typeof i&&i};return null!=e&&(s.profileType=e),s}trackNavByRoute(t,e,n){if(this.checkState("track navigation"))if("string"!=typeof t||""===t)i.default.warn(s.ob,"Cannot track navigation since route has not been supplied.");else{let r;try{r=new URL(t)}catch(t){r=null}null===r?i.default.warn(s.ob,"Cannot track navigation since route is invalid."):(this.url=r,this.identify(),this.trackNavigationInternal(e,n))}}trackNavByName(t,e,n){this.checkState("track navigation")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track navigation since page is invalid."):(this.page=t,this.trackNavigationInternal(e,n)))}trackNavigationCached(t){t.persisted&&this.trackNavigationInternal()}trackNavigationInternal(t,e){let i,s,n;null===this.url?(i="",s="",n=""):(i=this.url.href,s=this.url.pathname,n=this.url.hostname),this.checkState("track navigation")&&this.fireEventInternal("paNavigation",ma.navigation,{paIsBounce:!1,paIgnoreSession:!1,paRoute:s,paRouteDomain:n,paFullRoute:i,paReferrer:this.getReferral()||""},t,e,!0)}trackAttribution(t,e,n,r,o,a,c){if(this.checkState("track attribution"))if(this.settings.autoTrackAttribution)i.default.warn(s.ob,"Automatic attribution tracking is enabled: this request won't be processed.");else{const d={};"string"==typeof t&&(d.utm_source=t),"string"==typeof e&&(d.utm_medium=e),"string"==typeof n&&(d.utm_campaign=n),"string"==typeof r&&(d.utm_term=r),"string"==typeof o&&(d.utm_content=o),Object.keys(d).length>0?this.trackAttributionInternal(new URLSearchParams(d),a,c):i.default.warn(s.ob,"Cannot track attribution since parameters are invalid.")}}trackAttributionInternal(t,e,i){const s=this._getUTMParams(t),n=null===this.url?"":this.url.href;this.checkState("track attribution")&&s&&this.fireEventInternal("Attribution",ma.attribution,Object.assign({paIsBounce:!0,paIgnoreSession:!1,utmUrl:n},s),e,i)}_getUTMParams(t){let e,i,s;const n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],r={};return t.forEach(function(t,o){i=n.indexOf(o.toLowerCase()),-1!==i&&(s=n[i],e=s.split("_"),e.length>1&&(s=e[0]+e[1].charAt(0).toUpperCase()+e[1].slice(1)),r[s]=t)}),Object.keys(r).length>0?r:null}trackSectionVisible(t,e,n,r){this.checkState("track section visible")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track section visible since section is invali
2d."):_a.checkCoordinate(e)?this.fireEventInternal("Section Visible",ma.section,{paIsBounce:!0,paIgnoreSession:!1,sectionOrder:e,section:t},n,r):i.default.warn(s.ob,"Cannot track section visible since sectionOrder is invalid."))}trackSectionHidden(t,e,n,r){this.checkState("track section hidden")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track section hidden since section is invalid."):_a.checkCoordinate(e)?this.fireEventInternal("Section Hidden",ma.section,{paIsBounce:!0,paIgnoreSession:!1,sectionOrder:e,section:t},n,r):i.default.warn(s.ob,"Cannot track section hidden since sectionOrder is invalid."))}contentFocusIn(t,e,i,s,n,r,o,a){this.contentFocusOut(),this.checkState("track content highlight")&&this.checkSectionCoordinates(t,e,i,s,n,"content highlight")&&(this.contentHighlighted={sectionOrder:e,section:t,column:i,row:s,contentLink:n,contentLinkType:r,dimensions:o,metrics:a},this.contentHighlightTimeout=setTimeout(this._trackContentHiglight.bind(this),this.settings.highlightContentAfter))}contentFocusOut(){null!==this.contentHighlightTimeout&&clearTimeout(this.contentHighlightTimeout),this.contentHighlighted=null,this.contentHighlightTimeout=null}_trackContentHiglight(){this.contentHighlighted?this.fireEventInternal("Section Content Highlight",ma.section,_a.buildSectionPlacementDimensions(!0,!1,this.contentHighlighted.section,this.contentHighlighted.sectionOrder,this.contentHighlighted.column,this.contentHighlighted.row,this.contentHighlighted.contentLink,this.contentHighlighted.contentLinkType),this.contentHighlighted.dimensions,this.contentHighlighted.metrics):i.default.warn(s.ob,"Cannot highlight content since no content is selected")}trackContentClick(t,e,i,s,n,r,o,a){this.checkState("track content click")&&this.checkSectionCoordinates(t,e,i,s,n,"content click")&&this.fireEventInternal("Section Content Click",ma.section,_a.buildSectionPlacementDimensions(!1,!1,t,e,i,s,n,r),o,a)}trackPlayVOD(t,e,i,s,n,r,o,a,c,d){const h=[];h.push({contentLink:t,contentLinkType:"contentId"}),h.push({contentLink:e,contentLinkType:"movieGroupTitle"}),h.push({contentLink:i,contentLinkType:"movieGroupId"}),h.push({contentLink:s,contentLinkType:"seriesSeasonTitle"}),h.push({contentLink:n,contentLinkType:"seriesSeasonId"}),h.push({contentLink:r,contentLinkType:"seriesTitle"}),h.push({contentLink:o,contentLinkType:"seriesId"}),this.trackPlayItems(h,a,c,d)}trackPlayEPG(t,e,i,s,n){const r=[];r.push({contentLink:t,contentLinkType:"channelId"}),r.push({contentLink:e,contentLinkType:"epgId"}),this.trackPlayItems(r,i,s,n)}trackPlayItems(t,e,i,s){t.forEach(t=>{_a.checkContentLink(t.contentLink)&&_a.checkContentLinkType(t.contentLinkType)&&this.trackPlay(t.contentLink,t.contentLinkType,e,i,s)})}trackPlay(t,e,n,r,o){this.checkState("track play")&&(_a.checkContentLink(t)?this.handlePlayerEvent("Content Play",t,e,n||{},r||{},this.getVideoKey(o)):i.default.warn(s.ob,"Cannot track play since contentLink is invalid."))}trackPlayerInteraction(t,e,n,r){if(this.checkState("track player interaction"))if("string"!=typeof t||""===t)i.default.warn(s.ob,"Cannot track player interaction since interaction name is invalid.");else{const i="Content Play "+t,s=null,o=null;this.handlePlayerEvent(i,s,o,e||{},n||{},this.getVideoKey(r))}}handlePlayerEvent(t,e,n,r,o,a){var c;const d=this.getAdapter(a);null==d?i.default.warn(s.ob,"Cannot track player event since video adapter is not available"):d.flags.isStarted?(null===(c=this.pendingVideoEvents[a])||void 0===c||c.forEach(t=>{this.trackPlayerEvent(t.eventName,t.contentLink,t.contentLinkType,t.dimensions,t.metrics,t.videoKey)}),delete this.pendingVideoEvents[a],this.trackPlayerEvent(t,e,n,r,o,a)):(null==this.pendingVideoEvents[a]&&(this.pendingVideoEvents[a]=[]),this.pendingVideoEvents[a].push({eventName:t,contentLink:e,contentLinkType:n,dimensions:r,metrics:o,videoKey:a}))}trackPlayerEvent(t,e,i,s,n,r){const o={paIsBounce:!1,paIgnoreSession:!1};null!==e&&Object.assign(o,_a.buildContentLinkDimensions(e,i)),this.fireEventAdapter(t,o,s,n,r)}trackSearchQuery(t,e,n){this.checkState("track search query")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track search query since no searchQuery has been supplied."):(this.searchQuery=t,this.fireEventInternal("Search Query",ma.search,{paIsBounce
2:!1,paIgnoreSession:!1,query:this.searchQuery},e,n)))}trackSearchResult(t,e,n,r){if(this.checkState("track search result"))if("number"!=typeof t)i.default.warn(s.ob,"Cannot track search result since resultCount is invalid.");else{const i="string"==typeof e&&""!==e?e:this.searchQuery;this.fireEventInternal("Search Results",ma.search,{paIsBounce:!0,paIgnoreSession:!1,query:i,resultCount:t},n,r)}}trackSearchClick(t,e,i,s,n,r,o,a,c){const d="string"==typeof t&&""!==t?t:"Search",h=_a.checkCoordinate(e)?e:0;if(this.checkState("track search click")&&this.checkSectionCoordinates(d,h,i,s,n,"search click")){const t="string"==typeof o&&""!==o?o:this.searchQuery,e=_a.buildSectionPlacementDimensions(!1,!1,d,h,i,s,n,r);e.query=t,this.fireEventInternal("Search Result Click",ma.search,e,a,c)}}trackEPGClick(t,e,n,r,o,a,c,d){const h="track EPG content click";if(this.checkState(h))if(_a.checkContentLink(o))if(_a.checkContentLinkType(a)){const i={paIsBounce:!1,paIgnoreSession:!1,contentLink:o,contentLinkType:a};("string"==typeof t&&""!==t||"number"==typeof t)&&(i.channelId=t),_a.checkEpgId(e)&&(i.epgId=e),"string"==typeof n&&""!==n&&(i.epgMode=n),_a.checkContentId(r)&&(i.contentId=r),this.fireEventInternal("EPG Click",ma.epg,i,c,d)}else i.default.warn(s.ob,`Cannot ${h} since content link type is invalid.`);else i.default.warn(s.ob,`Cannot ${h} since content link is invalid.`)}trackExternalAppLaunch(t,e,n){this.checkState("track external application launch")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track external application launch since appName is invalid."):this.fireEventInternal("External Application Launch",ma.externalApplication,{paIsBounce:!1,paIgnoreSession:!1,paExtAppName:t},e,n))}trackExternalAppExit(t,e,n){this.checkState("track external application exit")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track external application exit since appName is invalid."):this.fireEventInternal("External Application Exit",ma.externalApplication,{paIsBounce:!1,paIgnoreSession:!1,paExtAppName:t},e,n))}trackEngagementEvent(t,e,n,r,o){if(this.checkState("track engagement"))if("string"!=typeof t||""===t)i.default.warn(s.ob,"Cannot track engagement event since eventName is invalid.");else{let a=!1;const c={paIsBounce:!1,paIgnoreSession:!1};_a.checkContentId(e)&&(c.contentId=e,a=!0),_a.checkEpgId(n)&&(c.epgId=n,a=!0),a||i.default.warn(s.ob,"Tracking engagement event without contentId or epgId."),this.fireEventInternal("Engagement "+t,ma.engagement,c,r,o)}}trackClick(t,e,n,r){"boolean"!=typeof r&&(r=!1),this.checkState("track click event")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Click cannot be tracked since controlName is invalid."):this.fireEventInternal("Click",ma.interaction,{paIsBounce:!1,paIgnoreSession:!1,controlName:t},e,n,r))}trackEvent(t,e,n,r){"boolean"!=typeof r&&(r=!1),this.checkState("track custom event")&&("string"!=typeof t||""===t?i.default.warn(s.ob,"Event cannot be tracked since eventName is invalid."):this.fireEventInternal("Custom "+t,ma.custom,{paIsBounce:!1,paIgnoreSession:!1},e,n,r))}fireEventInternal(t,e,n={},r={},o={},a=!1){i.default.notice(s.ob,t);const c=this.buildDimensions(e,n,r);this.session.sendEvent(t,c.custom,o,c.top,a)}fireEventAdapter(t,e,n,r,o){i.default.notice(s.ob,t);const a=this.getAdapter(o);if(a){const i=this.buildDimensions(ma.contentPlayback,e,n);a.fireEvent(t,i.custom,r,i.top)}else i.default.warn(s.ob,"Cannot fire "+t+" event since adapter is unavailable.")}buildDimensions(t,e={},i={}){let s;s={paPage:this.page},"string"==typeof e.contentLinkType&&(e.contentLinkType=e.contentLinkType.toLowerCase()),s=Object.assign(s,e),s=Object.assign(s,i),s=Object.assign(s,{eventType:t,eventSource:"Product Analytics"});const n=["contentid","contentId","contentID","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","profileId","profile_id","username"],r={};for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&-1!==n.indexOf(t)&&(r[t]=s[t]);return n.forEach(function(t){delete s[t]}),{custom:s,top:r}}static buildSectionPlacementDimensions(t,e,i,s,n,r,o,a){const c={paIsBounce
2:t,paIgnoreSession:e,sectionOrder:s,section:i,column:n,row:r};return Object.assign(c,_a.buildContentLinkDimensions(o,a)),c}static buildContentLinkDimensions(t,e){_a.checkContentLinkType(e)||(e="contentId");const i={contentLink:t,contentLinkType:e};return"string"==typeof e&&"contentid"===e.toLowerCase()&&(i.contentId=t),i}checkState(t){let e;return this.initialized?e=!0:(e=!1,i.default.warn("Cannot "+t+" since Product Analytics is uninitialized.")),e}checkSectionCoordinates(t,e,n,r,o,a){let c=!1;return"string"!=typeof t||""===t?i.default.warn(s.ob,"Cannot track "+a+" since section is invalid."):_a.checkCoordinate(e)?_a.checkCoordinate(n)?_a.checkCoordinate(r)?_a.checkContentLink(o)?c=!0:i.default.warn(s.ob,"Cannot track "+a+" since content link is invalid."):i.default.warn(s.ob,"Cannot track "+a+" since row is invalid."):i.default.warn(s.ob,"Cannot track "+a+" since column is invalid."):i.default.warn(s.ob,"Cannot track "+a+" since sectionOrder is invalid."),c}static checkCoordinate(t){return"number"==typeof t&&t>=0}static checkContentLink(t){return"string"==typeof t&&""!==t}static checkContentLinkType(t){return"string"==typeof t&&""!==t}static checkContentId(t){return"string"==typeof t&&""!==t||"number"==typeof t}static checkEpgId(t){return"string"==typeof t&&""!==t||"number"==typeof t}onRequestQueued(t){}onRequestWillSend(t){}onRequestSent(t){switch(t.getService()){case ko().Service.SESSION_START:case ko().Service.SESSION_STOP:this.fetchExperimentVariants()}}}_a.VIDEOKEY_DEFAULT_IDENTIFIER="default",__webpack_require__.g.LogLevel=i.LogLevel,__webpack_require__.g.NpawPluginOptions=ca.A;class ba{constructor(t,i){this.core=e.default.getInstance(t,i,!0),this.cdnBalancer=new Io(t,i),this.session=new aa(t),this.appAnalytics=new ha(this.session),this.videoAnalytics=new(Po().Plugin)(this.appAnalytics,this.session),this.productAnalytics=new _a(this.session,this.videoAnalytics.getReferral.bind(this.videoAnalytics),this.setAnalyticsOptions.bind(this),this.videoAnalytics.addOnWillSendRequestListener.bind(this.videoAnalytics),this.videoAnalytics.removeOnWillSendRequestListener.bind(this.videoAnalytics)),this.diagnostic=Do.getInstance(!0)}destroy(){var t;null===(t=this.cdnBalancer)||void 0===t||t.destroy(),this.videoAnalytics.videos.getVideoKeys().forEach(t=>{var e,i;void 0!==this.videoAnalytics&&(null===(e=this.videoAnalytics.getAdapter(t))||void 0===e||e.fireStop(),null===(i=this.videoAnalytics.getAdsAdapter(t))||void 0===i||i.fireStop())}),this.videoAnalytics.destroy(),this.productAnalytics.destroy(),this.session.destroy(),this.core.destroy()}setLogLevel(t){i.default.setLogLevel(t)}isBalancerSupported(){var t;return!(!this.cdnBalancer||!(null===(t=this.cdnBalancer)||void 0===t?void 0:t.isCdnBalancerSupported()))||(i.default.warn(s.AnalyticsTag,"Balancer is not available in this build."),!1)}setBalancerOptions(t){var e;this.isBalancerSupported()&&(null===(e=this.cdnBalancer)||void 0===e||e.setOptions(t))}setManifestResource(t){this.isBalancerSupported()&&this.cdnBalancer.setManifestResource(t)}addInterceptor(t,e){this.isBalancerSupported()&&this.cdnBalancer.addInterceptor(t,e)}getBitmovinSendHttpRequest(){return this.isBalancerSupported()?this.cdnBalancer.getBitmovinSendHttpRequest():void 0}getRecommendedManifest(){return this.isBalancerSupported()?this.cdnBalancer.getRecommendedManifest():void 0}isBalancerEnabled(){var t;return!(!this.cdnBalancer||!(null===(t=this.cdnBalancer)||void 0===t?void 0:t.isCdnBalancerSupported()))&&this.cdnBalancer.getIsEnabled()}setChronoDuration(t,e,i){this.videoAnalytics.setChronoDuration(t,e,i)}startChrono(t,e){this.videoAnalytics.startChrono(t,e)}stopChrono(t,e){this.videoAnalytics.stopChrono(t,e)}registerAdapter(t,e,i,s,n){this.core.isUsingLegacy()||this.registerAdapterInModule(!1,t,e,i,s,n)}registerAdapterFromClass(t,e,n,r,o){void 0!==e&&"function"==typeof e?this.registerAdapterFromClassInModule(!1,t,new e,n,r,o):i.default.error(s.AnalyticsTag,"Adapter is not valid")}registerAdapterFromString(t,e,n,r,o){void 0!==e&&"string"==typeof e?(this.videoAnalytics.registerAdapter(t,e,n,r),this.registerAdapterProductAnalytics(r),null==o||o()):i.default.error(s.AnalyticsTag,"The provided adapter is not from a valid type")}registerDefaultAdapter(t,e){this.core.isUsingLegacy()||(this.videoAnalytics.registerAdapter(void 0,{},e,t),this.registerAdapterProductAnalytics(t))}removeAdapter(t){this.core.isUsingLegacy()||(t&&this.videoAnalytics.videos.existsVideo(t)&&this.getAdapter(t)&&this.getAdapter(t).fireStop&&this.getAdapter(t).fireStop(),this.productAnalytics.removeAdapter(t),this.videoAnalytics.removeAdapter(t))}getAdapter(t){return this.videoAnalytics.getAdapter(t)}getAdsAdapter(t){return void 0!==this.videoAnalytics?this.videoAnalytics.getAdsAdapter(t):void 0}registerAdsAdapter(t,e,i,s,n){this.core.isUsingLegacy()||this.registerAdapterInModule(!0,t,e,i,s,n)}registerAdsAdapterFromClass(t,e,n,r,o){void 0!==e&&"function"==typeof e?this.registerAdapterFromClassInModule(!0,t,new e,n,r,o):i.default.error(s.AnalyticsTag,"Adapter is not val
2id")}registerAdsAdapterFromString(t,e,n,r,o){void 0!==e&&"string"==typeof e?(this.videoAnalytics.registerAdsAdapter(t,e,n,r),null==o||o()):i.default.error(s.AnalyticsTag,"The provided adapter is not from a valid type")}updateAdsAdapter(t,e){e=null!=e?e:"default",void 0!==t&&""!=t?this.videoAnalytics.updateAdsAdapter(t,e):i.default.debug(s.AnalyticsTag,"Invalid ads adapter name")}registerDefaultAdsAdapter(t,e){this.core.isUsingLegacy()||this.videoAnalytics.registerAdsAdapter(void 0,"{}",e,t)}removeAdsAdapter(t){this.core.isUsingLegacy()||this.videoAnalytics.removeAdsAdapter(t)}setAnalyticsOptions(t){this.core.isUsingLegacy()||(this.videoAnalytics.setOptions(t),this.session.setOptions(this.videoAnalytics.options),this.core.setOptions(this.videoAnalytics.options))}setVideoOptions(t,e){t?this.videoAnalytics.setVideoOptions(t,null!=e?e:"default"):i.default.debug(s.AnalyticsTag,"Provided options object is not valid")}updateMetrics(t,e){t?this.videoAnalytics.updateCustomMetrics(t,null!=e?e:"default"):i.default.debug(s.AnalyticsTag,"Provided metrics object is not valid")}destroySession(){this.core.isUsingLegacy()||this.session.destroySession()}fireOfflineEvents(){this.core.isUsingLegacy()||(this.videoAnalytics.videos.getVideoKeys().length>0?i.default.notice(s.AnalyticsTag,"Unable to send offline events because there's at least one adapter registered"):this.core.sendOfflineEvents())}registerAdapterFromClassInModule(t,e,i,s,n,r){t?this.videoAnalytics.registerAdsAdapter(e,i,s,n):(this.videoAnalytics.registerAdapter(e,i,s,n),this.registerAdapterProductAnalytics(n)),null==r||r()}registerAdapterInModule(t,e,s,n,r,o){if(0===s.length&&i.default.error("Adapter URL can't be empty!"),"undefined"!=typeof fetch)fetch(s).then(t=>t.json()).then(i=>{const s=JSON.stringify(i);t?this.videoAnalytics.registerAdsAdapter(e,s,n,r):(this.videoAnalytics.registerAdapter(e,s,n,r),this.registerAdapterProductAnalytics(r)),null==o||o()});else{const i=new XMLHttpRequest;i.addEventListener("readystatechange",()=>{if(4===i.readyState&&i.status>=200&&i.status<400){const s=i.response;t?this.videoAnalytics.registerAdsAdapter(e,s,n,r):(this.videoAnalytics.registerAdapter(e,s,n,r),this.registerAdapterProductAnalytics(r)),null==o||o()}}),i.open("GET",s),i.send()}}registerAdapterProductAnalytics(t){const e=this.videoAnalytics.getAdapter(t);this.productAnalytics.registerAdapter(e,t)}}})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})()); 3//# sourceMappingURL=NpawPlugin.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.