!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(e,t,n){var i;
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=n.document,a=Object.getPrototypeOf,u=o.slice,l=o.concat,c=o.push,d=o.indexOf,h={},f=h.toString,p=h.hasOwnProperty,m=p.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function(e){return null!=e&&e===e.window},b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,o=(n=n||s).createElement("script");if(o.text=e,t)for(i in b)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[f.call(e)]||"object":typeof e}var A=function(e,t){return new A.fn.init(e,t)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function x(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}A.fn=A.prototype={jquery:"3.4.1",constructor:A,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},A.extend=A.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(l&&i&&(A.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],o=r&&!Array.isArray(n)?[]:r||A.isPlainObject(n)?n:{},r=!1,s[t]=A.extend(l,o,i)):void 0!==i&&(s[t]=i));return s},A.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){w(e,{nonce:t&&t.nonce})},each:function(e,t){var n,i=0;if(x(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(S,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?A.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,s=[];if(x(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return l.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=o[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var T=
/*!
 * Sizzle CSS Selector Engine v2.3.4
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2019-04-08
 */
function(e){var t,n,i,r,o,s,a,u,l,c,d,h,f,p,m,g,v,y,_,b="sizzle"+1*new Date,w=e.document,E=0,A=0,S=ue(),x=ue(),T=ue(),L=ue(),k=function(e,t){return e===t&&(d=!0),0},C={}.hasOwnProperty,R=[],D=R.pop,I=R.push,O=R.push,P=R.slice,B=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",U="\\["+j+"*("+N+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+j+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",V=new RegExp(j+"+","g"),q=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),H=new RegExp("^"+j+"*,"+j+"*"),z=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),G=new RegExp(j+"|>"),W=new RegExp(F),K=new RegExp("^"+N+"$"),Y={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},se=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(R=P.call(w.childNodes),w.childNodes),R[w.childNodes.length].nodeType}catch(e){O={apply:R.length?function(e,t){I.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var o,a,l,c,d,p,v,y=t&&t.ownerDocument,E=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return i;if(!r&&((t?t.ownerDocument||t:w)!==f&&h(t),t=t||f,m)){if(11!==E&&(d=$.exec(e)))if(o=d[1]){if(9===E){if(!(l=t.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(y&&(l=y.getElementById(o))&&_(t,l)&&l.id===o)return i.push(l),i}else{if(d[2])return O.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!L[e+" "]&&(!g||!g.test(e))&&(1!==E||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===E&&G.test(e)){for((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=b),a=(p=s(e)).length;a--;)p[a]="#"+c+" "+_e(p[a]);v=p.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return O.apply(i,y.querySelectorAll(v)),i}catch(t){L(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(q,"$1"),t,i,r)}function ue(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function le(e){return e[b]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:w;return s!==f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,m=!o(f),w!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=ce((function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Q.test(f.querySelectorAll))&&(ce((function(e){p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(p.compareDocumentPosition),_=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===w&&_(w,e)?-1:t===f||t.ownerDocument===w&&_(w,t)?1:c?B(c,e)-B(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===f?-1:t===f?1:r?-1:o?1:c?B(c,e)-B(c,t):0;if(r===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?he(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&h(e),n.matchesSelector&&m&&!L[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){L(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==f&&h(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==f&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&C.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ie,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(k),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=ae.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:le,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,h,f,p,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,_=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(_=(f=(l=(c=(d=(h=g)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===E&&l[1])&&l[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(_=f=0)||p.pop();)if(1===h.nodeType&&++_&&h===t){c[e]=[E,f,_];break}}else if(y&&(_=f=(l=(c=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===E&&l[1]),!1===_)for(;(h=++f&&h&&h[m]||(_=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++_||(y&&((c=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[E,_]),h!==t)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=B(e,o[s])]=!(n[i]=o[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:le((function(e){var t=[],n=[],i=a(e.replace(q,"$1"));return i[b]?le((function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return ae(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:le((function(e){return K.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function ye(){}function _e(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function be(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=A++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,u){var l,c,d,h=[E,a];if(u){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((l=c[o])&&l[0]===E&&l[1]===a)return h[2]=l[2];if(c[o]=h,h[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Ee(e,t,n,i,r){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),l&&t.push(a)));return s}function Ae(e,t,n,i,r,o){return i&&!i[b]&&(i=Ae(i)),r&&!r[b]&&(r=Ae(r,o)),le((function(o,s,a,u){var l,c,d,h=[],f=[],p=s.length,m=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?m:Ee(m,h,e,a,u),v=n?r||(o?e:p||i)?[]:s:g;if(n&&n(g,v,a,u),i)for(l=Ee(v,f),i(l,[],a,u),c=l.length;c--;)(d=l[c])&&(v[f[c]]=!(g[f[c]]=d));if(o){if(r||e){if(r){for(l=[],c=v.length;c--;)(d=v[c])&&l.push(g[c]=d);r(null,v=[],l,u)}for(c=v.length;c--;)(d=v[c])&&(l=r?B(o,d):h[c])>-1&&(o[l]=!(s[l]=d))}}else v=Ee(v===s?v.splice(p,v.length):v),r?r(null,s,v,u):O.apply(s,v)}))}function Se(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],u=s?1:0,c=be((function(e){return e===t}),a,!0),d=be((function(e){return B(t,e)>-1}),a,!0),h=[function(e,n,i){var r=!s&&(i||n!==l)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];u<o;u++)if(n=i.relative[e[u].type])h=[be(we(h),n)];else{if((n=i.filter[e[u].type].apply(null,e[u].matches))[b]){for(r=++u;r<o&&!i.relative[e[r].type];r++);return Ae(u>1&&we(h),u>1&&_e(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(q,"$1"),n,u<r&&Se(e.slice(u,r)),r<o&&Se(e=e.slice(r)),r<o&&_e(e))}h.push(n)}return we(h)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,s=ae.tokenize=function(e,t){var n,r,o,s,a,u,l,c=x[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],l=i.preFilter;a;){for(s in n&&!(r=H.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(q," ")}),a=a.slice(n.length)),i.filter)!(r=Y[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):x(e,u).slice(0)},a=ae.compile=function(e,t){var n,r=[],o=[],a=T[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Se(t[n]))[b]?r.push(a):o.push(a);(a=T(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,s,a,u,c){var d,p,g,v=0,y="0",_=o&&[],b=[],w=l,A=o||r&&i.find.TAG("*",c),S=E+=null==w?1:Math.random()||.1,x=A.length;for(c&&(l=s===f||s||c);y!==x&&null!=(d=A[y]);y++){if(r&&d){for(p=0,s||d.ownerDocument===f||(h(d),a=!m);g=e[p++];)if(g(d,s||f,a)){u.push(d);break}c&&(E=S)}n&&((d=!g&&d)&&v--,o&&_.push(d))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(_,b,s,a);if(o){if(v>0)for(;y--;)_[y]||b[y]||(b[y]=D.call(u));b=Ee(b)}O.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&ae.uniqueSort(u)}return c&&(E=S,l=w),_};return n?le(o):o}(o,r))).selector=e}return a},u=ae.select=function(e,t,n,r){var o,u,l,c,d,h="function"==typeof e&&e,f=!r&&s(e=h.selector||e);if(n=n||[],1===f.length){if((u=f[0]=f[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&m&&i.relative[u[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=Y.needsContext.test(e)?0:u.length;o--&&(l=u[o],!i.relative[c=l.type]);)if((d=i.find[c])&&(r=d(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ve(t.parentNode)||t))){if(u.splice(o,1),!(e=r.length&&_e(u)))return O.apply(n,r),n;break}}return(h||a(e,f))(r,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=b.split("").sort(k).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||de(M,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(n);A.find=T,A.expr=T.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=T.uniqueSort,A.text=T.getText,A.isXMLDoc=T.isXML,A.contains=T.contains,A.escapeSelector=T.escape;var L=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&A(e).is(n))break;i.push(e)}return i},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=A.expr.match.needsContext;function R(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return y(t)?A.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?A.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?A.grep(e,(function(e){return d.call(t,e)>-1!==n})):A.filter(t,e,n)}A.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?A.find.matchesSelector(i,e)?[i]:[]:A.find.matches(e,A.grep(t,(function(e){return 1===e.nodeType})))},A.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(A(e).filter((function(){for(t=0;t<i;t++)if(A.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)A.find(e,r[t],n);return i>1?A.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&C.test(e)?A(e):e||[],!1).length}});var O,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),D.test(i[1])&&A.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=s.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,O=A(s);var B=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(A.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&A(e);if(!C.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?A.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(A(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,n){return L(e,"parentNode",n)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,n){return L(e,"nextSibling",n)},prevUntil:function(e,t,n){return L(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(R(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},(function(e,t){A.fn[e]=function(n,i){var r=A.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=A.filter(i,r)),this.length>1&&(M[e]||A.uniqueSort(r),B.test(e)&&r.reverse()),this.pushStack(r)}}));var N=/[^\x20\t\r\n\f]+/g;function U(e){return e}function F(e){throw e}function V(e,t,n,i){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}A.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return A.each(e.match(N)||[],(function(e,n){t[n]=!0})),t}(e):A.extend({},e);var t,n,i,r,o=[],s=[],a=-1,u=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){A.each(n,(function(n,i){y(i)?e.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==E(i)&&t(i)}))}(arguments),n&&!t&&u()),this},remove:function(){return A.each(arguments,(function(e,t){for(var n;(n=A.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?A.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},A.extend({Deferred:function(e){var t=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return A.Deferred((function(n){A.each(t,(function(t,i){var r=y(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var o=0;function s(e,t,i,r){return function(){var a=this,u=arguments,l=function(){var n,l;if(!(e<o)){if((n=i.apply(a,u))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(l)?r?l.call(n,s(o,t,U,r),s(o,t,F,r)):(o++,l.call(n,s(o,t,U,r),s(o,t,F,r),s(o,t,U,t.notifyWith))):(i!==U&&(a=void 0,u=[n]),(r||t.resolveWith)(a,u))}},c=r?l:function(){try{l()}catch(n){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(i!==F&&(a=void 0,u=[n]),t.rejectWith(a,u))}};e?c():(A.Deferred.getStackHook&&(c.stackTrace=A.Deferred.getStackHook()),n.setTimeout(c))}}return A.Deferred((function(n){t[0][3].add(s(0,n,y(r)?r:U,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:U)),t[2][3].add(s(0,n,y(i)?i:F))})).promise()},promise:function(e){return null!=e?A.extend(e,r):r}},o={};return A.each(t,(function(e,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=u.call(arguments),o=A.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?u.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(V(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)V(r[n],s(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},A.readyException=function(e){n.setTimeout((function(){throw e}))};var H=A.Deferred();function z(){s.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),A.ready()}A.fn.ready=function(e){return H.then(e).catch((function(e){A.readyException(e)})),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==e&&--A.readyWait>0||H.resolveWith(s,[A]))}}),A.ready.then=H.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(A.ready):(s.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var G=function(e,t,n,i,r,o,s){var a=0,u=e.length,l=null==n;if("object"===E(n))for(a in r=!0,n)G(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,y(i)||(s=!0),l&&(s?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(A(e),n)})),t))for(;a<u;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:l?t.call(e):u?t(e[0],n):o},W=/^-ms-/,K=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function X(e){return e.replace(W,"ms-").replace(K,Y)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=A.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[X(t)]=n;else for(i in t)r[X(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in i?[t]:t.match(N)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||A.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!A.isEmptyObject(t)}};var Q=new Z,$=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}$.set(e,t,n)}else n=void 0;return n}A.extend({hasData:function(e){return $.hasData(e)||Q.hasData(e)},data:function(e,t,n){return $.access(e,t,n)},removeData:function(e,t){$.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),A.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=$.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=X(i.slice(5)),ne(o,i,r[i]));Q.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){$.set(this,e)})):G(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=$.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){$.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){$.remove(this,e)}))}}),A.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Q.get(e,t),n&&(!i||Array.isArray(n)?i=Q.access(e,t,A.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),i=n.length,r=n.shift(),o=A._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){A.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:A.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),A.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?A.queue(this[0],e):void 0===t?this:this.each((function(){var n=A.queue(this,e,t);A._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&A.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){A.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=A.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],se=s.documentElement,ae=function(e){return A.contains(e.ownerDocument,e)},ue={composed:!0};se.getRootNode&&(ae=function(e){return A.contains(e.ownerDocument,e)||e.getRootNode(ue)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===A.css(e,"display")},ce=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=s[o];return r};function de(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return A.css(e,t,"")},u=a(),l=n&&n[3]||(A.cssNumber[t]?"":"px"),c=e.nodeType&&(A.cssNumber[t]||"px"!==l&&+u)&&re.exec(A.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)A.style(e,t,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,A.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}var he={};function fe(e){var t,n=e.ownerDocument,i=e.nodeName,r=he[i];return r||(t=n.body.appendChild(n.createElement(i)),r=A.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),he[i]=r,r)}function pe(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=Q.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&le(i)&&(r[o]=fe(i))):"none"!==n&&(r[o]="none",Q.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}A.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?A(this).show():A(this).hide()}))}});var me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&R(e,t)?A.merge([e],n):n}function be(e,t){for(var n=0,i=e.length;n<i;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var we,Ee,Ae=/<|&#?\w+;/;function Se(e,t,n,i,r){for(var o,s,a,u,l,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===E(o))A.merge(h,o.nodeType?[o]:o);else if(Ae.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(ge.exec(o)||["",""])[1].toLowerCase(),u=ye[a]||ye._default,s.innerHTML=u[1]+A.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;A.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&A.inArray(o,i)>-1)r&&r.push(o);else if(l=ae(o),s=_e(d.appendChild(o),"script"),l&&be(s),n)for(c=0;o=s[c++];)ve.test(o.type||"")&&n.push(o);return d}we=s.createDocumentFragment().appendChild(s.createElement("div")),(Ee=s.createElement("input")).setAttribute("type","radio"),Ee.setAttribute("checked","checked"),Ee.setAttribute("name","t"),we.appendChild(Ee),v.checkClone=we.cloneNode(!0).cloneNode(!0).lastChild.checked,we.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!we.cloneNode(!0).lastChild.defaultValue;var xe=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Le=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Ce(){return!1}function Re(e,t){return e===function(){try{return s.activeElement}catch(e){}}()==("focus"===t)}function De(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)De(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ce;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return A().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=A.guid++)),e.each((function(){A.event.add(this,t,r,i,n)}))}function Ie(e,t,n){n?(Q.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=u.call(arguments),Q.set(this,t,o),i=n(this,t),this[t](),o!==(r=Q.get(this,t))||i?Q.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else o.length&&(Q.set(this,t,{value:A.event.trigger(A.extend(o[0],A.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&A.event.add(e,t,ke)}A.event={global:{},add:function(e,t,n,i,r){var o,s,a,u,l,c,d,h,f,p,m,g=Q.get(e);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&A.find.matchesSelector(se,r),n.guid||(n.guid=A.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(N)||[""]).length;l--;)f=m=(a=Le.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=A.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=A.event.special[f]||{},c=A.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&A.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=u[f])||((h=u[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),A.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,u,l,c,d,h,f,p,m,g=Q.hasData(e)&&Q.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(N)||[""]).length;l--;)if(f=m=(a=Le.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=A.event.special[f]||{},h=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||A.removeEvent(e,f,g.handle),delete u[f])}else for(f in u)A.event.remove(e,f+t[l],n,i,!0);A.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=A.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[a.type]||[],c=A.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=A.event.handlers.call(this,a,l),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((A.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,u))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,r,o,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?A(r,this).index(l)>-1:A.find(r,this,null,[l]).length),s[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,u<t.length&&a.push({elem:l,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(A.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[A.expando]?e:new A.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&R(t,"input")&&Ie(t,"click",ke),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&R(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&R(t,"input")&&Q.get(t,"click")||R(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},A.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},(function(e,t){A.event.special[e]={setup:function(){return Ie(this,e,Re),!1},trigger:function(){return Ie(this,e),!0},delegateType:t}})),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){A.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||A.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),A.fn.extend({on:function(e,t,n,i){return De(this,e,t,n,i)},one:function(e,t,n,i){return De(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,A(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){A.event.remove(this,e,n,t)}))}});var Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Pe=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,i,r,o,s,a,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),s=Q.set(t,o),l=o.events))for(r in delete s.handle,s.events={},l)for(n=0,i=l[r].length;n<i;n++)A.event.add(t,r,l[r][n]);$.hasData(e)&&(a=$.access(e),u=A.extend({},a),$.set(t,u))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function qe(e,t,n,i){t=l.apply([],t);var r,o,s,a,u,c,d=0,h=e.length,f=h-1,p=t[0],m=y(p);if(m||h>1&&"string"==typeof p&&!v.checkClone&&Be.test(p))return e.each((function(r){var o=e.eq(r);m&&(t[0]=p.call(this,r,o.html())),qe(o,t,n,i)}));if(h&&(o=(r=Se(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=A.map(_e(r,"script"),Ne)).length;d<h;d++)u=r,d!==f&&(u=A.clone(u,!0,!0),a&&A.merge(s,_e(u,"script"))),n.call(e[d],u,d);if(a)for(c=s[s.length-1].ownerDocument,A.map(s,Ue),d=0;d<a;d++)u=s[d],ve.test(u.type||"")&&!Q.access(u,"globalEval")&&A.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?A._evalUrl&&!u.noModule&&A._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):w(u.textContent.replace(Me,""),u,c))}return e}function He(e,t,n){for(var i,r=t?A.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||A.cleanData(_e(i)),i.parentNode&&(n&&ae(i)&&be(_e(i,"script")),i.parentNode.removeChild(i));return e}A.extend({htmlPrefilter:function(e){return e.replace(Oe,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(!0),u=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(s=_e(a),i=0,r=(o=_e(e)).length;i<r;i++)Ve(o[i],s[i]);if(t)if(n)for(o=o||_e(e),s=s||_e(a),i=0,r=o.length;i<r;i++)Fe(o[i],s[i]);else Fe(e,a);return(s=_e(a,"script")).length>0&&be(s,!u&&_e(e,"script")),a},cleanData:function(e){for(var t,n,i,r=A.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[Q.expando]){if(t.events)for(i in t.events)r[i]?A.event.remove(n,i):A.removeEvent(n,i,t.handle);n[Q.expando]=void 0}n[$.expando]&&(n[$.expando]=void 0)}}}),A.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return G(this,(function(e){return void 0===e?A.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(A.cleanData(_e(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return A.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(A.cleanData(_e(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,(function(t){var n=this.parentNode;A.inArray(this,e)<0&&(A.cleanData(_e(this)),n&&n.replaceChild(t,this))}),e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){A.fn[e]=function(e){for(var n,i=[],r=A(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),A(r[s])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var ze=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},We=new RegExp(oe.join("|"),"i");function Ke(e,t,n){var i,r,o,s,a=e.style;return(n=n||Ge(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ae(e)||(s=A.style(e,t)),!v.pixelBoxStyles()&&ze.test(s)&&We.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(l).appendChild(c);var e=n.getComputedStyle(c);i="1%"!==e.top,u=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),r=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),se.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var i,r,o,a,u,l=s.createElement("div"),c=s.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,A.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),o}}))}();var Xe=["Webkit","Moz","ms"],Je=s.createElement("div").style,Ze={};function Qe(e){var t=A.cssProps[e]||Ze[e];return t||(e in Je?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Je)return e}(e)||e)}var $e=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function it(e,t,n){var i=re.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function rt(e,t,n,i,r,o){var s="width"===t?1:0,a=0,u=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=A.css(e,n+oe[s],!0,r)),i?("content"===n&&(u-=A.css(e,"padding"+oe[s],!0,r)),"margin"!==n&&(u-=A.css(e,"border"+oe[s]+"Width",!0,r))):(u+=A.css(e,"padding"+oe[s],!0,r),"padding"!==n?u+=A.css(e,"border"+oe[s]+"Width",!0,r):a+=A.css(e,"border"+oe[s]+"Width",!0,r));return!i&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-a-.5))||0),u}function ot(e,t,n){var i=Ge(e),r=(!v.boxSizingReliable()||n)&&"border-box"===A.css(e,"boxSizing",!1,i),o=r,s=Ke(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&r||"auto"===s||!parseFloat(s)&&"inline"===A.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===A.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+rt(e,t,n||(r?"border":"content"),o,i,s)+"px"}function st(e,t,n,i,r){return new st.prototype.init(e,t,n,i,r)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=X(t),u=et.test(t),l=e.style;if(u||(t=Qe(a)),s=A.cssHooks[t]||A.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:l[t];"string"===(o=typeof n)&&(r=re.exec(n))&&r[1]&&(n=de(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=r&&r[3]||(A.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,i){var r,o,s,a=X(t);return et.test(t)||(t=Qe(a)),(s=A.cssHooks[t]||A.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=Ke(e,t,i)),"normal"===r&&t in nt&&(r=nt[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),A.each(["height","width"],(function(e,t){A.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):ce(e,tt,(function(){return ot(e,t,i)}))},set:function(e,n,i){var r,o=Ge(e),s=!v.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===A.css(e,"boxSizing",!1,o),u=i?rt(e,t,i,a,o):0;return a&&s&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),u&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=A.css(e,t)),it(0,n,u)}}})),A.cssHooks.marginLeft=Ye(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-ce(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),A.each({margin:"",padding:"",border:"Width"},(function(e,t){A.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+oe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(A.cssHooks[e+t].set=it)})),A.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=Ge(e),r=t.length;s<r;s++)o[t[s]]=A.css(e,t[s],!1,i);return o}return void 0!==n?A.style(e,t,n):A.css(e,t)}),e,t,arguments.length>1)}}),A.Tween=st,st.prototype={constructor:st,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=st.prototype.init,A.fx.step={};var at,ut,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function dt(){ut&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(dt):n.setTimeout(dt,A.fx.interval),A.fx.tick())}function ht(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function ft(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=oe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function pt(e,t,n){for(var i,r=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function mt(e,t,n){var i,r,o=0,s=mt.prefilters.length,a=A.Deferred().always((function(){delete u.elem})),u=function(){if(r)return!1;for(var t=at||ht(),n=Math.max(0,l.startTime+l.duration-t),i=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(i);return a.notifyWith(e,[l,i,n]),i<1&&s?n:(s||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:A.extend({},t),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var i=A.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=X(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=A.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,l.opts.specialEasing);o<s;o++)if(i=mt.prefilters[o].call(l,e,c,l.opts))return y(i.stop)&&(A._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return A.map(c,pt,l),y(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),A.fx.timer(A.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}A.Animation=A.extend(mt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(N);for(var n,i=0,r=e.length;i<r;i++)n=e[i],mt.tweeners[n]=mt.tweeners[n]||[],mt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,u,l,c,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&le(e),g=Q.get(e,"fxshow");for(i in n.queue||(null==(s=A._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,A.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[i],lt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||A.style(e,i)}if((u=!A.isEmptyObject(t))||!A.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=Q.get(e,"display")),"none"===(c=A.css(e,"display"))&&(l?c=l:(pe([e],!0),l=e.style.display||l,c=A.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===A.css(e,"float")&&(u||(h.done((function(){p.display=l})),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,f)u||(g?"hidden"in g&&(m=g.hidden):g=Q.access(e,"fxshow",{display:l}),o&&(g.hidden=!m),m&&pe([e],!0),h.done((function(){for(i in m||pe([e]),Q.remove(e,"fxshow"),f)A.style(e,i,f[i])}))),u=pt(m?g[i]:0,i,h),i in g||(g[i]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),A.speed=function(e,t,n){var i=e&&"object"==typeof e?A.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return A.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in A.fx.speeds?i.duration=A.fx.speeds[i.duration]:i.duration=A.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&A.dequeue(this,i.queue)},i},A.fn.extend({fadeTo:function(e,t,n,i){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=A.isEmptyObject(e),o=A.speed(t,n,i),s=function(){var t=mt(this,A.extend({},e),o);(r||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=A.timers,s=Q.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ct.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||A.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=A.timers,s=i?i.length:0;for(n.finish=!0,A.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),A.each(["toggle","show","hide"],(function(e,t){var n=A.fn[t];A.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,i,r)}})),A.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){A.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),A.timers=[],A.fx.tick=function(){var e,t=0,n=A.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||A.fx.stop(),at=void 0},A.fx.timer=function(e){A.timers.push(e),A.fx.start()},A.fx.interval=13,A.fx.start=function(){ut||(ut=!0,dt())},A.fx.stop=function(){ut=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(e,t){return e=A.fx&&A.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=s.createElement("input"),t=s.createElement("select").appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var gt,vt=A.expr.attrHandle;A.fn.extend({attr:function(e,t){return G(this,A.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){A.removeAttr(this,e)}))}}),A.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?A.prop(e,t,n):(1===o&&A.isXMLDoc(e)||(r=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void A.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=A.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&R(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(N);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?A.removeAttr(e,n):e.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||A.find.attr;vt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=vt[s],vt[s]=r,r=null!=n(e,t,i)?s:null,vt[s]=o),r}}));var yt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;function bt(e){return(e.match(N)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}A.fn.extend({prop:function(e,t){return G(this,A.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[A.propFix[e]||e]}))}}),A.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(e)||(t=A.propFix[t]||t,r=A.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(A.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){A.propFix[this.toLowerCase()]=this})),A.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,u=0;if(y(e))return this.each((function(t){A(this).addClass(e.call(this,t,wt(this)))}));if((t=Et(e)).length)for(;n=this[u++];)if(r=wt(n),i=1===n.nodeType&&" "+bt(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=bt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,u=0;if(y(e))return this.each((function(t){A(this).removeClass(e.call(this,t,wt(this)))}));if(!arguments.length)return this.attr("class","");if((t=Et(e)).length)for(;n=this[u++];)if(r=wt(n),i=1===n.nodeType&&" "+bt(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=bt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){A(this).toggleClass(e.call(this,n,wt(this),t),t)})):this.each((function(){var t,r,o,s;if(i)for(r=0,o=A(this),s=Et(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=wt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;A.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=y(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,A(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=A.map(r,(function(e){return null==e?"":e+""}))),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=A.valHooks[r.type]||A.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(At,""):null==n?"":n:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:bt(A.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],u=s?o+1:r.length;for(i=o<0?u:s?o:0;i<u;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!R(n.parentNode,"optgroup"))){if(t=A(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=A.makeArray(t),s=r.length;s--;)((i=r[s]).selected=A.inArray(A.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],(function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=A.inArray(A(e).val(),t)>-1}},v.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in n;var St=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(e,t,i,r){var o,a,u,l,c,d,h,f,m=[i||s],g=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=u=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!St.test(g+A.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[A.expando]?e:new A.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:A.makeArray(t,[e]),h=A.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(i,t))){if(!r&&!h.noBubble&&!_(i)){for(l=h.delegateType||g,St.test(l+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),u=a;u===(i.ownerDocument||s)&&m.push(u.defaultView||u.parentWindow||n)}for(o=0;(a=m[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:h.bindType||g,(d=(Q.get(a,"events")||{})[e.type]&&Q.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&J(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),t)||!J(i)||c&&y(i[g])&&!_(i)&&((u=i[c])&&(i[c]=null),A.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,xt),i[g](),e.isPropagationStopped()&&f.removeEventListener(g,xt),A.event.triggered=void 0,u&&(i[c]=u)),e.result}},simulate:function(e,t,n){var i=A.extend(new A.Event,n,{type:e,isSimulated:!0});A.event.trigger(i,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each((function(){A.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}}),v.focusin||A.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){A.event.simulate(t,e.target,A.event.fix(e))};A.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=Q.access(i,t);r||i.addEventListener(e,n,!0),Q.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Q.access(i,t)-1;r?Q.access(i,t,r):(i.removeEventListener(e,n,!0),Q.remove(i,t))}}}));var Tt=n.location,Lt=Date.now(),kt=/\?/;A.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||A.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Rt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,i){var r;if(Array.isArray(t))A.each(t,(function(t,r){n||Ct.test(e)?i(e,r):Ot(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==E(t))i(e,t);else for(r in t)Ot(e+"["+r+"]",t[r],n,i)}A.param=function(e,t){var n,i=[],r=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,(function(){r(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,r);return i.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&It.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Pt=/%20/g,Bt=/#.*$/,Mt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Ft={},Vt={},qt="*/".concat("*"),Ht=s.createElement("a");function zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(N)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Gt(e,t,n,i){var r={},o=e===Vt;function s(a){var u;return r[a]=!0,A.each(e[a]||[],(function(e,a){var l=a(t,n,i);return"string"!=typeof l||o||r[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),s(l),!1)})),u}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Wt(e,t){var n,i,r=A.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&A.extend(!0,e,i),e}Ht.href=Tt.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,A.ajaxSettings),t):Wt(A.ajaxSettings,e)},ajaxPrefilter:zt(Ft),ajaxTransport:zt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,a,u,l,c,d,h,f,p=A.ajaxSetup({},t),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?A(m):A.event,v=A.Deferred(),y=A.Callbacks("once memory"),_=p.statusCode||{},b={},w={},E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=jt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||E;return i&&i.abort(t),x(0,t),this}};if(v.promise(S),p.url=((e||p.url||Tt.href)+"").replace(Ut,Tt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=s.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=A.param(p.data,p.traditional)),Gt(Ft,p,t,S),c)return S;for(h in(d=A.event&&p.global)&&0==A.active++&&A.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nt.test(p.type),r=p.url.replace(Bt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(kt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Mt,"$1"),f=(kt.test(r)?"&":"?")+"_="+Lt+++f),p.url=r+f),p.ifModified&&(A.lastModified[r]&&S.setRequestHeader("If-Modified-Since",A.lastModified[r]),A.etag[r]&&S.setRequestHeader("If-None-Match",A.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qt+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,S,p)||c))return S.abort();if(E="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),i=Gt(Vt,p,t,S)){if(S.readyState=1,d&&g.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(u=n.setTimeout((function(){S.abort("timeout")}),p.timeout));try{c=!1,i.send(b,x)}catch(e){if(c)throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,s,a){var l,h,f,b,w,E=t;c||(c=!0,u&&n.clearTimeout(u),i=void 0,o=a||"",S.readyState=e>0?4:0,l=e>=200&&e<300||304===e,s&&(b=function(e,t,n){for(var i,r,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(p,S,s)),b=function(e,t,n,i){var r,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(r in l)if((a=r.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[r]:!0!==l[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(p,b,S,l),l?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(A.lastModified[r]=w),(w=S.getResponseHeader("etag"))&&(A.etag[r]=w)),204===e||"HEAD"===p.type?E="nocontent":304===e?E="notmodified":(E=b.state,h=b.data,l=!(f=b.error))):(f=E,!e&&E||(E="error",e<0&&(e=0))),S.status=e,S.statusText=(t||E)+"",l?v.resolveWith(m,[h,E,S]):v.rejectWith(m,[S,E,f]),S.statusCode(_),_=void 0,d&&g.trigger(l?"ajaxSuccess":"ajaxError",[S,p,l?h:f]),y.fireWith(m,[S,E]),d&&(g.trigger("ajaxComplete",[S,p]),--A.active||A.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],(function(e,t){A[t]=function(e,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),A.ajax(A.extend({url:e,type:t,dataType:r,data:n,success:i},A.isPlainObject(e)&&e))}})),A._evalUrl=function(e,t){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=A(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){A(this).wrapInner(e.call(this,t))})):this.each((function(){var t=A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){A(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){A(this).replaceWith(this.childNodes)})),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Yt=A.ajaxSettings.xhr();v.cors=!!Yt&&"withCredentials"in Yt,v.ajax=Yt=!!Yt,A.ajaxTransport((function(e){var t,i;if(v.cors||Yt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),A.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),A.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=A("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Jt=[],Zt=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||A.expando+"_"+Lt++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",(function(e,t,i){var r,o,s,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||A.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?A(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(r)),s&&y(o)&&o(s[0]),s=o=void 0})),"script"})),v.createHTMLDocument=((Xt=s.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),A.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(i)):t=s),o=!n&&[],(r=D.exec(e))?[t.createElement(r[1])]:(r=Se([e],t,o),o&&o.length&&A(o).remove(),A.merge([],r.childNodes)));var i,r,o},A.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=bt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&A.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(i?A("<div>").append(A.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){A.fn[t]=function(e){return this.on(t,e)}})),A.expr.pseudos.animated=function(e){return A.grep(A.timers,(function(t){return e===t.elem})).length},A.offset={setOffset:function(e,t,n){var i,r,o,s,a,u,l=A.css(e,"position"),c=A(e),d={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=A.css(e,"top"),u=A.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(u)||0),y(t)&&(t=t.call(e,n,A.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):c.css(d)}},A.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){A.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===A.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),r.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-A.css(i,"marginTop",!0),left:t.left-r.left-A.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||se}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;A.fn[e]=function(i){return G(this,(function(e,i,r){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),A.each(["top","left"],(function(e,t){A.cssHooks[t]=Ye(v.pixelPosition,(function(e,n){if(n)return n=Ke(e,t),ze.test(n)?A(e).position()[t]+"px":n}))})),A.each({Height:"height",Width:"width"},(function(e,t){A.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){A.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return G(this,(function(t,n,r){var o;return _(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?A.css(t,n,a):A.style(t,n,r,a)}),t,s?r:void 0,s)}}))})),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){A.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),A.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),A.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),A.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return i=u.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(u.call(arguments)))}).guid=e.guid=e.guid||A.guid++,r},A.holdReady=function(e){e?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=R,A.isFunction=y,A.isWindow=_,A.camelCase=X,A.type=E,A.now=Date.now,A.isNumeric=function(e){var t=A.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(i=function(){return A}.apply(t,[]))||(e.exports=i);var Qt=n.jQuery,$t=n.$;return A.noConflict=function(e){return n.$===A&&(n.$=$t),e&&n.jQuery===A&&(n.jQuery=Qt),A},r||(n.jQuery=n.$=A),A}))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},function(e,t,n){(function(t){var n;self,n=function(){return(()=>{var e={"./node_modules/es6-promise/dist/es6-promise.js":
/*!******************************************************!*\
  !*** ./node_modules/es6-promise/dist/es6-promise.js ***!
  \******************************************************/function(e,n,i){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
e.exports=function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=void 0,s=void 0,a=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(s?s(m):b())},u="undefined"!=typeof window?window:void 0,l=u||{},c=l.MutationObserver||l.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(m,1)}}var p=new Array(1e3);function m(){for(var e=0;e<r;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;r=0}var g,v,y,_,b=void 0;function w(e,t){var n=this,i=new this.constructor(S);void 0===i[A]&&P(i);var r=n._state;if(r){var o=arguments[r-1];a((function(){return I(r,i,o,n._result)}))}else R(n,i,e,t);return i}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return T(t,e),t}d?b=function(){return t.nextTick(m)}:c?(v=0,y=new c(m),_=document.createTextNode(""),y.observe(_,{characterData:!0}),b=function(){_.data=v=++v%2}):h?((g=new MessageChannel).port1.onmessage=m,b=function(){return g.port2.postMessage(0)}):b=void 0===u?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(m)}:f()}catch(e){return f()}}():f();var A=Math.random().toString(36).substring(2);function S(){}function x(t,n,i){n.constructor===t.constructor&&i===w&&n.constructor.resolve===E?function(e,t){1===t._state?k(e,t._result):2===t._state?C(e,t._result):R(t,void 0,(function(t){return T(e,t)}),(function(t){return C(e,t)}))}(t,n):void 0===i?k(t,n):e(i)?function(e,t,n){a((function(e){var i=!1,r=function(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}(n,t,(function(n){i||(i=!0,t!==n?T(e,n):k(e,n))}),(function(t){i||(i=!0,C(e,t))}),e._label);!i&&r&&(i=!0,C(e,r))}),e)}(t,n,i):k(t,n)}function T(e,t){if(e===t)C(e,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof(i=t),null===i||"object"!==r&&"function"!==r)k(e,t);else{var n=void 0;try{n=t.then}catch(t){return void C(e,t)}x(e,t,n)}var i,r}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&a(D,e))}function C(e,t){void 0===e._state&&(e._state=2,e._result=t,a(L,e))}function R(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+1]=n,r[o+2]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,r=void 0,o=e._result,s=0;s<t.length;s+=3)i=t[s],r=t[s+n],i?I(n,i,r,o):r(o);e._subscribers.length=0}}function I(t,n,i,r){var o=e(i),s=void 0,a=void 0,u=!0;if(o){try{s=i(r)}catch(e){u=!1,a=e}if(n===s)return void C(n,new TypeError("A promises callback cannot return that same promise."))}else s=r;void 0!==n._state||(o&&u?T(n,s):!1===u?C(n,a):1===t?k(n,s):2===t&&C(n,s))}var O=0;function P(e){e[A]=O++,e._state=void 0,e._result=void 0,e._subscribers=[]}var B=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[A]||P(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===E){var r=void 0,o=void 0,s=!1;try{r=e.then}catch(e){s=!0,o=e}if(r===w&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(n===M){var a=new n(S);s?C(a,o):x(a,e,r),this._willSettleAt(a,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,n){var i=this.promise;void 0===i._state&&(this._remaining--,2===e?C(i,n):this._result[t]=n),0===this._remaining&&k(i,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),M=function(){function t(e){this[A]=O++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){T(e,t)}),(function(t){C(e,t)}))}catch(t){C(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return M.prototype.then=w,M.all=function(e){return new B(this,e).promise},M.race=function(e){var t=this;return n(e)?new t((function(n,i){for(var r=e.length,o=0;o<r;o++)t.resolve(e[o]).then(n,i)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},M.resolve=E,M.reject=function(e){var t=new this(S);return C(t,e),t},M._setScheduler=function(e){s=e},M._setAsap=function(e){a=e},M._asap=a,M.polyfill=function(){var e=void 0;if(void 0!==i.g)e=i.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=M},M.Promise=M,M}()},"./node_modules/events/events.js":
/*!***************************************!*\
  !*** ./node_modules/events/events.js ***!
  \***************************************/e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,i){var r,o,s,l;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(r=u(e))>0&&s.length>r&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=c.bind(i);return r.listener=n,i.wrapFn=r,r}function h(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):p(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function m(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){i.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var l=u.length,c=p(u,l);for(n=0;n<l;++n)i(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,o,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"./node_modules/webworkify-webpack/index.js":
/*!**************************************************!*\
  !*** ./node_modules/webworkify-webpack/index.js ***!
  \**************************************************/(e,t,n)=>{function i(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n.oe=function(e){throw console.error(e),e};var i=n(n.s=ENTRY_MODULE);return i.default||i}function r(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e,t,i){var o={};o[i]=[];var s=t.toString(),a=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!a)return o;for(var u,l=a[1],c=new RegExp("(\\\\n|\\W)"+r(l)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(s);)"dll-reference"!==u[3]&&o[i].push(u[3]);for(c=new RegExp("\\("+r(l)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(s);)e[u[2]]||(o[i].push(u[1]),e[u[2]]=n(u[1]).m),o[u[2]]=o[u[2]]||[],o[u[2]].push(u[4]);for(var d,h=Object.keys(o),f=0;f<h.length;f++)for(var p=0;p<o[h[f]].length;p++)d=o[h[f]][p],isNaN(1*d)||(o[h[f]][p]=1*o[h[f]][p]);return o}function s(e){return Object.keys(e).reduce((function(t,n){return t||e[n].length>0}),!1)}e.exports=function(e,t){t=t||{};var r={main:n.m},a=t.all?{main:Object.keys(r.main)}:function(e,t){for(var n={main:[t]},i={main:[]},r={main:{}};s(n);)for(var a=Object.keys(n),u=0;u<a.length;u++){var l=a[u],c=n[l].pop();if(r[l]=r[l]||{},!r[l][c]&&e[l][c]){r[l][c]=!0,i[l]=i[l]||[],i[l].push(c);for(var d=o(e,e[l][c],l),h=Object.keys(d),f=0;f<h.length;f++)n[h[f]]=n[h[f]]||[],n[h[f]]=n[h[f]].concat(d[h[f]])}}return i}(r,e),u="";Object.keys(a).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;a[e][t];)t++;a[e].push(t),r[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+e+" = ("+i.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+a[e].map((function(t){return JSON.stringify(t)+": "+r[e][t].toString()})).join(",")+"});\n"})),u=u+"new (("+i.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a.main.map((function(e){return JSON.stringify(e)+": "+r.main[e].toString()})).join(",")+"}))(self);";var l=new window.Blob([u],{type:"text/javascript"});if(t.bare)return l;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(l),d=new window.Worker(c);return d.objectURL=c,d}},"./src/config.js":
/*!***********************!*\
  !*** ./src/config.js ***!
  \***********************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultConfig:()=>i,createDefaultConfig:()=>r});var i={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function r(){return Object.assign({},i)}},"./src/core/features.js":
/*!******************************!*\
  !*** ./src/core/features.js ***!
  \******************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(/*! ../io/io-controller.js */"./src/io/io-controller.js"),r=n(/*! ../config.js */"./src/config.js");const o=function(){function e(){}return e.supportMSEH264Playback=function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')},e.supportNetworkStreamIO=function(){var e=new i.default({},(0,r.createDefaultConfig)()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t},e.getNetworkLoaderTypeName=function(){var e=new i.default({},(0,r.createDefaultConfig)()),t=e.loaderType;return e.destroy(),t},e.supportNativeMediaPlayback=function(t){null==e.videoElement&&(e.videoElement=window.document.createElement("video"));var n=e.videoElement.canPlayType(t);return"probably"===n||"maybe"==n},e.getFeatureList=function(){var t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=e.supportMSEH264Playback(),t.networkStreamIO=e.supportNetworkStreamIO(),t.networkLoaderName=e.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t},e}()},"./src/core/media-info.js":
/*!********************************!*\
  !*** ./src/core/media-info.js ***!
  \********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i=function(){function e(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return e.prototype.isComplete=function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t},e.prototype.isSeekable=function(){return!0===this.hasKeyframesIndex},e.prototype.getNearestKeyframe=function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}},e.prototype._search=function(e,t){var n=0,i=e.length-1,r=0,o=0,s=i;for(t<e[0]&&(n=0,o=s+1);o<=s;){if((r=o+Math.floor((s-o)/2))===i||t>=e[r]&&t<e[r+1]){n=r;break}e[r]<t?o=r+1:s=r-1}return n},e}()},"./src/core/media-segment-info.js":
/*!****************************************!*\
  !*** ./src/core/media-segment-info.js ***!
  \****************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{SampleInfo:()=>i,MediaSegmentInfo:()=>r,IDRSampleList:()=>o,MediaSegmentInfoList:()=>s});var i=function(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null},r=function(){function e(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return e.prototype.appendSyncPoint=function(e){e.isSyncPoint=!0,this.syncPoints.push(e)},e}(),o=function(){function e(){this._list=[]}return e.prototype.clear=function(){this._list=[]},e.prototype.appendArray=function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))},e.prototype.getLastSyncPointBeforeDts=function(e){if(0==this._list.length)return null;var t=this._list,n=0,i=t.length-1,r=0,o=0,s=i;for(e<t[0].dts&&(n=0,o=s+1);o<=s;){if((r=o+Math.floor((s-o)/2))===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}t[r].dts<e?o=r+1:s=r-1}return this._list[n]},e}(),s=function(){function e(e){this._type=e,this._list=[],this._lastAppendLocation=-1}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._list.length},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._list.length},e.prototype.clear=function(){this._list=[],this._lastAppendLocation=-1},e.prototype._searchNearestSegmentBefore=function(e){var t=this._list;if(0===t.length)return-2;var n=t.length-1,i=0,r=0,o=n,s=0;if(e<t[0].originalBeginDts)return s=-1;for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){s=i;break}t[i].originalBeginDts<e?r=i+1:o=i-1}return s},e.prototype._searchNearestSegmentAfter=function(e){return this._searchNearestSegmentBefore(e)+1},e.prototype.append=function(e){var t=this._list,n=e,i=this._lastAppendLocation,r=0;-1!==i&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?r=i+1:t.length>0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)},e.prototype.getLastSegmentBefore=function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null},e.prototype.getLastSampleBefore=function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null},e.prototype.getLastSyncPointBefore=function(e){for(var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;0===n.length&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null},e}()},"./src/core/mse-controller.js":
/*!************************************!*\
  !*** ./src/core/mse-controller.js ***!
  \************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! ../utils/logger.js */"./src/utils/logger.js"),s=n(/*! ../utils/browser.js */"./src/utils/browser.js"),a=n(/*! ./mse-events.js */"./src/core/mse-events.js"),u=n(/*! ./media-segment-info.js */"./src/core/media-segment-info.js"),l=n(/*! ../utils/exception.js */"./src/utils/exception.js");const c=function(){function e(e){this.TAG="MSEController",this._config=e,this._emitter=new(r()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new u.IDRSampleList}return e.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaSource)throw new l.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL},e.prototype.detachMediaElement=function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var i=this._sourceBuffers[t];if(i){if("closed"!==e.readyState){try{e.removeSourceBuffer(i)}catch(e){o.default.e(this.TAG,e.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(e){o.default.e(this.TAG,e.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},e.prototype.appendInitSegment=function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,i=""+n.container;n.codec&&n.codec.length>0&&(i+=";codecs="+n.codec);var r=!1;if(o.default.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])o.default.v(this.TAG,"Notice: "+n.type+" mimeType changed, origin: "+this._mimeTypes[n.type]+", target: "+i);else{r=!0;try{var u=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);u.addEventListener("error",this.e.onSourceBufferError),u.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return o.default.e(this.TAG,e.message),void this._emitter.emit(a.default.ERROR,{code:e.code,msg:e.message})}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),s.default.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())},e.prototype.appendMediaSegment=function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},e.prototype.seek=function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(e){o.default.e(this.TAG,e.message)}this._idrList.clear();var i=this._pendingSegments[t];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(var r=0;r<n.buffered.length;r++){var a=n.buffered.start(r),u=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:a,end:u})}if(n.updating||this._doRemoveRanges(),s.default.safari){var l=this._lastInitSegments[t];l&&(this._pendingSegments[t].push(l),n.updating||this._doAppendSegments())}}}},e.prototype.endOfStream=function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)},e.prototype.getNearestKeyframe=function(e){return this._idrList.getLastSyncPointBeforeDts(e)},e.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){var i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},e.prototype._doCleanupSourceBuffer=function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var i=n.buffered,r=!1,o=0;o<i.length;o++){var s=i.start(o),a=i.end(o);if(s<=e&&e<a+3){if(e-s>=this._config.autoCleanupMaxBackwardDuration){r=!0;var u=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:s,end:u})}}else a<e&&(r=!0,this._pendingRemoveRanges[t].push({start:s,end:a}))}r&&!n.updating&&this._doRemoveRanges()}}},e.prototype._updateMediaSourceDuration=function(){var e=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(e.video&&e.video.updating||e.audio&&e.audio.updating)){var t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(o.default.v(this.TAG,"Update MediaSource duration from "+t+" to "+n),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},e.prototype._doRemoveRanges=function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];n.length&&!t.updating;){var i=n.shift();t.remove(i.start,i.end)}},e.prototype._doAppendSegments=function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(o.default.v(this.TAG,"Update MPEG audio timestampOffset from "+i+" to "+r),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(n),22===e.code?(this._isBufferFull||this._emitter.emit(a.default.BUFFER_FULL),this._isBufferFull=!0):(o.default.e(this.TAG,e.message),this._emitter.emit(a.default.ERROR,{code:e.code,msg:e.message}))}}},e.prototype._onSourceOpen=function(){if(o.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(a.default.SOURCE_OPEN)},e.prototype._onSourceEnded=function(){o.default.v(this.TAG,"MediaSource onSourceEnded")},e.prototype._onSourceClose=function(){o.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},e.prototype._hasPendingSegments=function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0},e.prototype._hasPendingRemoveRanges=function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0},e.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(a.default.UPDATE_END)},e.prototype._onSourceBufferError=function(e){o.default.e(this.TAG,"SourceBuffer Error: "+e)},e}()},"./src/core/mse-events.js":
/*!********************************!*\
  !*** ./src/core/mse-events.js ***!
  \********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"}},"./src/core/transmuxer.js":
/*!********************************!*\
  !*** ./src/core/transmuxer.js ***!
  \********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! webworkify-webpack */"./node_modules/webworkify-webpack/index.js"),s=n.n(o),a=n(/*! ../utils/logger.js */"./src/utils/logger.js"),u=n(/*! ../utils/logging-control.js */"./src/utils/logging-control.js"),l=n(/*! ./transmuxing-controller.js */"./src/core/transmuxing-controller.js"),c=n(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js"),d=n(/*! ./media-info.js */"./src/core/media-info.js");const h=function(){function e(e,t){if(this.TAG="Transmuxer",this._emitter=new(r()),t.enableWorker&&"undefined"!=typeof Worker)try{this._worker=s()(/*! ./transmuxing-worker */"./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},u.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:u.default.getConfig()})}catch(n){a.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new l.default(e,t)}else this._controller=new l.default(e,t);if(this._controller){var n=this._controller;n.on(c.default.IO_ERROR,this._onIOError.bind(this)),n.on(c.default.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(c.default.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(c.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(c.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(c.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(c.default.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(c.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(c.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(c.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(c.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return e.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),u.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.hasWorker=function(){return null!=this._worker},e.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},e.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},e.prototype.seek=function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)},e.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},e.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},e.prototype._onInitSegment=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.INIT_SEGMENT,e,t)}))},e.prototype._onMediaSegment=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.MEDIA_SEGMENT,e,t)}))},e.prototype._onLoadingComplete=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(c.default.LOADING_COMPLETE)}))},e.prototype._onRecoveredEarlyEof=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(c.default.RECOVERED_EARLY_EOF)}))},e.prototype._onMediaInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.MEDIA_INFO,e)}))},e.prototype._onMetaDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.METADATA_ARRIVED,e)}))},e.prototype._onScriptDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.SCRIPTDATA_ARRIVED,e)}))},e.prototype._onStatisticsInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.STATISTICS_INFO,e)}))},e.prototype._onIOError=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.IO_ERROR,e,t)}))},e.prototype._onDemuxError=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.DEMUX_ERROR,e,t)}))},e.prototype._onRecommendSeekpoint=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.RECOMMEND_SEEKPOINT,e)}))},e.prototype._onLoggingConfigChanged=function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})},e.prototype._onWorkerMessage=function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case c.default.INIT_SEGMENT:case c.default.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case c.default.LOADING_COMPLETE:case c.default.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case c.default.MEDIA_INFO:Object.setPrototypeOf(n,d.default.prototype),this._emitter.emit(t.msg,n);break;case c.default.METADATA_ARRIVED:case c.default.SCRIPTDATA_ARRIVED:case c.default.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case c.default.IO_ERROR:case c.default.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case c.default.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":a.default.emitter.emit("log",n.type,n.logcat)}},e}()},"./src/core/transmuxing-controller.js":
/*!********************************************!*\
  !*** ./src/core/transmuxing-controller.js ***!
  \********************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! ../utils/logger.js */"./src/utils/logger.js"),s=n(/*! ../utils/browser.js */"./src/utils/browser.js"),a=n(/*! ./media-info.js */"./src/core/media-info.js"),u=n(/*! ../demux/flv-demuxer.js */"./src/demux/flv-demuxer.js"),l=n(/*! ../remux/mp4-remuxer.js */"./src/remux/mp4-remuxer.js"),c=n(/*! ../demux/demux-errors.js */"./src/demux/demux-errors.js"),d=n(/*! ../io/io-controller.js */"./src/io/io-controller.js"),h=n(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js");const f=function(){function e(e,t){this.TAG="TransmuxingController",this._emitter=new(r()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!=typeof e.cors&&(e.cors=!0),"boolean"!=typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;var n=0;this._mediaDataSource.segments.forEach((function(i){i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)})),isNaN(n)||this._mediaDataSource.duration===n||(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return e.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},e.prototype._loadSegment=function(e,t){this._currentSegmentIndex=e;var n=this._mediaDataSource.segments[e],i=this._ioctl=new d.default(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)},e.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},e.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},e.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},e.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},e.prototype.seek=function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var n=this._mediaInfo.segments[t];if(null==n)this._pendingSeekTime=e;else{var i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{var r=this._mediaInfo.segments[t];null==r?(this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t)):(i=r.getNearestKeyframe(e),this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t))}this._enableStatisticsReporter()}},e.prototype._searchSegmentIndexContains=function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n},e.prototype._onInitChunkArrival=function(e,t){var n=this,i=null,r=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((i=u.default.probe(e)).match){this._demuxer=new u.default(i,this._config),this._remuxer||(this._remuxer=new l.default(this._config));var s=this._mediaDataSource;null==s.duration||isNaN(s.duration)||(this._demuxer.overridedDuration=s.duration),"boolean"==typeof s.hasAudio&&(this._demuxer.overridedHasAudio=s.hasAudio),"boolean"==typeof s.hasVideo&&(this._demuxer.overridedHasVideo=s.hasVideo),this._demuxer.timestampBase=s.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(e,t)}else i=null,o.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(h.default.DEMUX_ERROR,c.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r},e.prototype._onMediaInfo=function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,a.default.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,a.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))},e.prototype._onMetaDataArrived=function(e){this._emitter.emit(h.default.METADATA_ARRIVED,e)},e.prototype._onScriptDataArrived=function(e){this._emitter.emit(h.default.SCRIPTDATA_ARRIVED,e)},e.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},e.prototype._onIOComplete=function(e){var t=e+1;t<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(t)):(this._remuxer.flushStashedSamples(),this._emitter.emit(h.default.LOADING_COMPLETE),this._disableStatisticsReporter())},e.prototype._onIORedirect=function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e},e.prototype._onIORecoveredEarlyEof=function(){this._emitter.emit(h.default.RECOVERED_EARLY_EOF)},e.prototype._onIOException=function(e,t){o.default.e(this.TAG,"IOException: type = "+e+", code = "+t.code+", msg = "+t.msg),this._emitter.emit(h.default.IO_ERROR,e,t),this._disableStatisticsReporter()},e.prototype._onDemuxException=function(e,t){o.default.e(this.TAG,"DemuxException: type = "+e+", info = "+t),this._emitter.emit(h.default.DEMUX_ERROR,e,t)},e.prototype._onRemuxerInitSegmentArrival=function(e,t){this._emitter.emit(h.default.INIT_SEGMENT,e,t)},e.prototype._onRemuxerMediaSegmentArrival=function(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(h.default.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){var n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,s.default.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(h.default.RECOMMEND_SEEKPOINT,i)}},e.prototype._enableStatisticsReporter=function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},e.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype._reportSegmentMediaInfo=function(e){var t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(h.default.MEDIA_INFO,n)},e.prototype._reportStatisticsInfo=function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(h.default.STATISTICS_INFO,e)},e}()},"./src/core/transmuxing-events.js":
/*!****************************************!*\
  !*** ./src/core/transmuxing-events.js ***!
  \****************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"}},"./src/core/transmuxing-worker.js":
/*!****************************************!*\
  !*** ./src/core/transmuxing-worker.js ***!
  \****************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(/*! ../utils/logging-control.js */"./src/utils/logging-control.js"),r=n(/*! ../utils/polyfill.js */"./src/utils/polyfill.js"),o=n(/*! ./transmuxing-controller.js */"./src/core/transmuxing-controller.js"),s=n(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js");const a=function(e){var t=null,n=function(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}.bind(this);function a(t,n){var i={msg:s.default.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(i,[n.data])}function u(t,n){var i={msg:s.default.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(i,[n.data])}function l(){var t={msg:s.default.LOADING_COMPLETE};e.postMessage(t)}function c(){var t={msg:s.default.RECOVERED_EARLY_EOF};e.postMessage(t)}function d(t){var n={msg:s.default.MEDIA_INFO,data:t};e.postMessage(n)}function h(t){var n={msg:s.default.METADATA_ARRIVED,data:t};e.postMessage(n)}function f(t){var n={msg:s.default.SCRIPTDATA_ARRIVED,data:t};e.postMessage(n)}function p(t){var n={msg:s.default.STATISTICS_INFO,data:t};e.postMessage(n)}function m(t,n){e.postMessage({msg:s.default.IO_ERROR,data:{type:t,info:n}})}function g(t,n){e.postMessage({msg:s.default.DEMUX_ERROR,data:{type:t,info:n}})}function v(t){e.postMessage({msg:s.default.RECOMMEND_SEEKPOINT,data:t})}r.default.install(),e.addEventListener("message",(function(r){switch(r.data.cmd){case"init":(t=new o.default(r.data.param[0],r.data.param[1])).on(s.default.IO_ERROR,m.bind(this)),t.on(s.default.DEMUX_ERROR,g.bind(this)),t.on(s.default.INIT_SEGMENT,a.bind(this)),t.on(s.default.MEDIA_SEGMENT,u.bind(this)),t.on(s.default.LOADING_COMPLETE,l.bind(this)),t.on(s.default.RECOVERED_EARLY_EOF,c.bind(this)),t.on(s.default.MEDIA_INFO,d.bind(this)),t.on(s.default.METADATA_ARRIVED,h.bind(this)),t.on(s.default.SCRIPTDATA_ARRIVED,f.bind(this)),t.on(s.default.STATISTICS_INFO,p.bind(this)),t.on(s.default.RECOMMEND_SEEKPOINT,v.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(r.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var y=r.data.param;i.default.applyConfig(y),!0===y.enableCallback?i.default.addLogListener(n):i.default.removeLogListener(n)}}))}},"./src/demux/amf-parser.js":
/*!*********************************!*\
  !*** ./src/demux/amf-parser.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i,r=n(/*! ../utils/logger.js */"./src/utils/logger.js"),o=n(/*! ../utils/utf8-conv.js */"./src/utils/utf8-conv.js"),s=n(/*! ../utils/exception.js */"./src/utils/exception.js"),a=(i=new ArrayBuffer(2),new DataView(i).setInt16(0,256,!0),256===new Int16Array(i)[0]);const u=function(){function e(){}return e.parseScriptData=function(t,n,i){var o={};try{var s=e.parseValue(t,n,i),a=e.parseValue(t,n+s.size,i-s.size);o[s.data]=a.data}catch(e){r.default.e("AMF",e.toString())}return o},e.parseObject=function(t,n,i){if(i<3)throw new s.IllegalStateException("Data not enough when parse ScriptDataObject");var r=e.parseString(t,n,i),o=e.parseValue(t,n+r.size,i-r.size),a=o.objectEnd;return{data:{name:r.data,value:o.data},size:r.size+o.size,objectEnd:a}},e.parseVariable=function(t,n,i){return e.parseObject(t,n,i)},e.parseString=function(e,t,n){if(n<2)throw new s.IllegalStateException("Data not enough when parse String");var i=new DataView(e,t,n).getUint16(0,!a);return{data:i>0?(0,o.default)(new Uint8Array(e,t+2,i)):"",size:2+i}},e.parseLongString=function(e,t,n){if(n<4)throw new s.IllegalStateException("Data not enough when parse LongString");var i=new DataView(e,t,n).getUint32(0,!a);return{data:i>0?(0,o.default)(new Uint8Array(e,t+4,i)):"",size:4+i}},e.parseDate=function(e,t,n){if(n<10)throw new s.IllegalStateException("Data size invalid when parse Date");var i=new DataView(e,t,n),r=i.getFloat64(0,!a),o=i.getInt16(8,!a);return{data:new Date(r+=60*o*1e3),size:10}},e.parseValue=function(t,n,i){if(i<1)throw new s.IllegalStateException("Data not enough when parse Value");var o,u=new DataView(t,n,i),l=1,c=u.getUint8(0),d=!1;try{switch(c){case 0:o=u.getFloat64(1,!a),l+=8;break;case 1:o=!!u.getUint8(1),l+=1;break;case 2:var h=e.parseString(t,n+1,i-1);o=h.data,l+=h.size;break;case 3:o={};var f=0;for(9==(16777215&u.getUint32(i-4,!a))&&(f=3);l<i-4;){var p=e.parseObject(t,n+l,i-l-f);if(p.objectEnd)break;o[p.data.name]=p.data.value,l+=p.size}l<=i-3&&9==(16777215&u.getUint32(l-1,!a))&&(l+=3);break;case 8:for(o={},l+=4,f=0,9==(16777215&u.getUint32(i-4,!a))&&(f=3);l<i-8;){var m=e.parseVariable(t,n+l,i-l-f);if(m.objectEnd)break;o[m.data.name]=m.data.value,l+=m.size}l<=i-3&&9==(16777215&u.getUint32(l-1,!a))&&(l+=3);break;case 9:o=void 0,l=1,d=!0;break;case 10:o=[];var g=u.getUint32(1,!a);l+=4;for(var v=0;v<g;v++){var y=e.parseValue(t,n+l,i-l);o.push(y.data),l+=y.size}break;case 11:var _=e.parseDate(t,n+1,i-1);o=_.data,l+=_.size;break;case 12:var b=e.parseString(t,n+1,i-1);o=b.data,l+=b.size;break;default:l=i,r.default.w("AMF","Unsupported AMF value type "+c)}}catch(e){r.default.e("AMF",e.toString())}return{data:o,size:l,objectEnd:d}},e}()},"./src/demux/demux-errors.js":
/*!***********************************!*\
  !*** ./src/demux/demux-errors.js ***!
  \***********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},"./src/demux/exp-golomb.js":
/*!*********************************!*\
  !*** ./src/demux/exp-golomb.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(/*! ../utils/exception.js */"./src/utils/exception.js");const r=function(){function e(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}return e.prototype.destroy=function(){this._buffer=null},e.prototype._fillCurrentWord=function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new i.IllegalStateException("ExpGolomb: _fillCurrentWord() but no bytes available");var t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t},e.prototype.readBits=function(e){if(e>32)throw new i.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var r=e-this._current_word_bits_left;this._fillCurrentWord();var o=Math.min(r,this._current_word_bits_left),s=this._current_word>>>32-o;return this._current_word<<=o,this._current_word_bits_left-=o,n=n<<o|s},e.prototype.readBool=function(){return 1===this.readBits(1)},e.prototype.readByte=function(){return this.readBits(8)},e.prototype._skipLeadingZero=function(){var e;for(e=0;e<this._current_word_bits_left;e++)if(0!=(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()},e.prototype.readUEG=function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1},e.prototype.readSEG=function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)},e}()},"./src/demux/flv-demuxer.js":
/*!**********************************!*\
  !*** ./src/demux/flv-demuxer.js ***!
  \**********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(/*! ../utils/logger.js */"./src/utils/logger.js"),r=n(/*! ./amf-parser.js */"./src/demux/amf-parser.js"),o=n(/*! ./sps-parser.js */"./src/demux/sps-parser.js"),s=n(/*! ./demux-errors.js */"./src/demux/demux-errors.js"),a=n(/*! ../core/media-info.js */"./src/core/media-info.js"),u=n(/*! ../utils/exception.js */"./src/utils/exception.js");const l=function(){function e(e,t){var n;this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new a.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._prevVideoTagTimestamp=0,this._prevAudioTagTimestamp=0,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(n=new ArrayBuffer(2),new DataView(n).setInt16(0,256,!0),256===new Int16Array(n)[0])}return e.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._prevVideoTagTimestamp=0,this._prevAudioTagTimestamp=0,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},e.probe=function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var i,r,o=(4&t[4])>>>2!=0,s=0!=(1&t[4]),a=(i=t)[r=5]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3];return a<9?n:{match:!0,consumed:a,dataOffset:a,hasAudioTrack:o,hasVideoTrack:s}},e.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(e.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(e){this._timestampBase=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedDuration",{get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasAudio",{set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasVideo",{set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e},enumerable:!1,configurable:!0}),e.prototype.resetMediaInfo=function(){this._mediaInfo=new a.default},e.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},e.prototype.parseChunks=function(t,n){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new u.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var r=0,o=this._littleEndian;if(0===n){if(!(t.byteLength>13))return 0;r=e.probe(t).dataOffset}for(this._firstParse&&(this._firstParse=!1,n+r!==this._dataOffset&&i.default.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==(s=new DataView(t,r)).getUint32(0,!o)&&i.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),r+=4);r<t.byteLength;){this._dispatch=!0;var s=new DataView(t,r);if(r+11+4>t.byteLength)break;var a=s.getUint8(0),l=16777215&s.getUint32(0,!o);if(r+11+l+4>t.byteLength)break;if(8===a||9===a||18===a){var c=s.getUint8(4),d=s.getUint8(5),h=s.getUint8(6)|d<<8|c<<16|s.getUint8(7)<<24;if(8===a&&h<this._prevAudioTagTimestamp||9===a&&h<this._prevVideoTagTimestamp){var f=8===a?this._prevAudioTagTimestamp:this._prevVideoTagTimestamp;i.default.w(this.TAG,"Tag timestamp "+h+" is smaller than previous tag timestamp "+f+", skipped"),r+=11+l+4}else{0!=(16777215&s.getUint32(7,!o))&&i.default.w(this.TAG,"Meet tag which has StreamID != 0!");var p=r+11;switch(a){case 8:this._prevAudioTagTimestamp=h,this._parseAudioData(t,p,l,h);break;case 9:this._prevVideoTagTimestamp=h,this._parseVideoData(t,p,l,h,n+r);break;case 18:this._parseScriptData(t,p,l)}var m=s.getUint32(11+l,!o);m!==11+l&&i.default.w(this.TAG,"Invalid PrevTagSize "+m),r+=11+l+4}}else i.default.w(this.TAG,"Unsupported tag type "+a+", skipped"),r+=11+l+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),r},e.prototype._parseScriptData=function(e,t,n){var o=r.default.parseScriptData(e,t,n);if(o.hasOwnProperty("onMetaData")){if(null==o.onMetaData||"object"!=typeof o.onMetaData)return void i.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&i.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=o;var s=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},s)),"boolean"==typeof s.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=s.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof s.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=s.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof s.audiodatarate&&(this._mediaInfo.audioDataRate=s.audiodatarate),"number"==typeof s.videodatarate&&(this._mediaInfo.videoDataRate=s.videodatarate),"number"==typeof s.width&&(this._mediaInfo.width=s.width),"number"==typeof s.height&&(this._mediaInfo.height=s.height),"number"==typeof s.duration){if(!this._durationOverrided){var a=Math.floor(s.duration*this._timescale);this._duration=a,this._mediaInfo.duration=a}}else this._mediaInfo.duration=0;if("number"==typeof s.framerate){var u=Math.floor(1e3*s.framerate);if(u>0){var l=u/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=l,this._referenceFrameRate.fps_num=u,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=l}}if("object"==typeof s.keyframes){this._mediaInfo.hasKeyframesIndex=!0;var c=s.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),s.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=s,i.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(o).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},o))},e.prototype._parseKeyframesIndex=function(e){for(var t=[],n=[],i=1;i<e.times.length;i++){var r=this._timestampBase+Math.floor(1e3*e.times[i]);t.push(r),n.push(e.filepositions[i])}return{times:t,filepositions:n}},e.prototype._parseAudioData=function(e,t,n,r){if(n<=1)i.default.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var o=new DataView(e,t,n).getUint8(0),a=o>>>4;if(2===a||10===a){var u=0,l=(12&o)>>>2;if(l>=0&&l<=4){u=this._flvSoundRateTable[l];var c=1&o,d=this._audioMetadata,h=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(d=this._audioMetadata={}).type="audio",d.id=h.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=u,d.channelCount=0===c?1:2),10===a){var f=this._parseAACAudioData(e,t+1,n-1);if(null==f)return;if(0===f.packetType){d.config&&i.default.w(this.TAG,"Found another AudioSpecificConfig!");var p=f.data;d.audioSampleRate=p.samplingRate,d.channelCount=p.channelCount,d.codec=p.codec,d.originalCodec=p.originalCodec,d.config=p.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,i.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d),(v=this._mediaInfo).audioCodec=d.originalCodec,v.audioSampleRate=d.audioSampleRate,v.audioChannelCount=d.channelCount,v.hasVideo?null!=v.videoCodec&&(v.mimeType='video/x-flv; codecs="'+v.videoCodec+","+v.audioCodec+'"'):v.mimeType='video/x-flv; codecs="'+v.audioCodec+'"',v.isComplete()&&this._onMediaInfo(v)}else if(1===f.packetType){var m=this._timestampBase+r,g={unit:f.data,length:f.data.byteLength,dts:m,pts:m};h.samples.push(g),h.length+=f.data.length}else i.default.e(this.TAG,"Flv: Unsupported AAC data type "+f.packetType)}else if(2===a){if(!d.codec){var v;if(null==(p=this._parseMP3AudioData(e,t+1,n-1,!0)))return;d.audioSampleRate=p.samplingRate,d.channelCount=p.channelCount,d.codec=p.codec,d.originalCodec=p.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,i.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d),(v=this._mediaInfo).audioCodec=d.codec,v.audioSampleRate=d.audioSampleRate,v.audioChannelCount=d.channelCount,v.audioDataRate=p.bitRate,v.hasVideo?null!=v.videoCodec&&(v.mimeType='video/x-flv; codecs="'+v.videoCodec+","+v.audioCodec+'"'):v.mimeType='video/x-flv; codecs="'+v.audioCodec+'"',v.isComplete()&&this._onMediaInfo(v)}var y=this._parseMP3AudioData(e,t+1,n-1,!1);if(null==y)return;m=this._timestampBase+r;var _={unit:y,length:y.byteLength,dts:m,pts:m};h.samples.push(_),h.length+=y.length}}else this._onError(s.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l)}else this._onError(s.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+a)}},e.prototype._parseAACAudioData=function(e,t,n){if(!(n<=1)){var r={},o=new Uint8Array(e,t,n);return r.packetType=o[0],0===o[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=o.subarray(1),r}i.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},e.prototype._parseAACAudioSpecificConfig=function(e,t,n){var i,r,o=new Uint8Array(e,t,n),a=null,u=0,l=null;if(u=i=o[0]>>>3,(r=(7&o[0])<<1|o[1]>>>7)<0||r>=this._mpegSamplingRates.length)this._onError(s.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var c=this._mpegSamplingRates[r],d=(120&o[1])>>>3;if(!(d<0||d>=8)){5===u&&(l=(7&o[1])<<1|o[2]>>>7,o[2]);var h=self.navigator.userAgent.toLowerCase();return-1!==h.indexOf("firefox")?r>=6?(u=5,a=new Array(4),l=r-3):(u=2,a=new Array(2),l=r):-1!==h.indexOf("android")?(u=2,a=new Array(2),l=r):(u=5,l=r,a=new Array(4),r>=6?l=r-3:1===d&&(u=2,a=new Array(2),l=r)),a[0]=u<<3,a[0]|=(15&r)>>>1,a[1]=(15&r)<<7,a[1]|=(15&d)<<3,5===u&&(a[1]|=(15&l)>>>1,a[2]=(1&l)<<7,a[2]|=8,a[3]=0),{config:a,samplingRate:c,channelCount:d,codec:"mp4a.40."+u,originalCodec:"mp4a.40."+i}}this._onError(s.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},e.prototype._parseMP3AudioData=function(e,t,n,r){if(!(n<4)){this._littleEndian;var o=new Uint8Array(e,t,n),s=null;if(r){if(255!==o[0])return;var a=o[1]>>>3&3,u=(6&o[1])>>1,l=(240&o[2])>>>4,c=(12&o[2])>>>2,d=3!=(o[3]>>>6&3)?2:1,h=0,f=0;switch(a){case 0:h=this._mpegAudioV25SampleRateTable[c];break;case 2:h=this._mpegAudioV20SampleRateTable[c];break;case 3:h=this._mpegAudioV10SampleRateTable[c]}switch(u){case 1:l<this._mpegAudioL3BitRateTable.length&&(f=this._mpegAudioL3BitRateTable[l]);break;case 2:l<this._mpegAudioL2BitRateTable.length&&(f=this._mpegAudioL2BitRateTable[l]);break;case 3:l<this._mpegAudioL1BitRateTable.length&&(f=this._mpegAudioL1BitRateTable[l])}s={bitRate:f,samplingRate:h,channelCount:d,codec:"mp3",originalCodec:"mp3"}}else s=o;return s}i.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")},e.prototype._parseVideoData=function(e,t,n,r,o){if(n<=1)i.default.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var a=new Uint8Array(e,t,n)[0],u=(240&a)>>>4,l=15&a;7===l?this._parseAVCVideoPacket(e,t+1,n-1,r,o,u):this._onError(s.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+l)}},e.prototype._parseAVCVideoPacket=function(e,t,n,r,o,a){if(n<4)i.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var u=this._littleEndian,l=new DataView(e,t,n),c=l.getUint8(0),d=(16777215&l.getUint32(0,!u))<<8>>8;if(0===c)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===c)this._parseAVCVideoData(e,t+4,n-4,r,o,a,d);else if(2!==c)return void this._onError(s.default.FORMAT_ERROR,"Flv: Invalid video packet type "+c)}},e.prototype._parseAVCDecoderConfigurationRecord=function(e,t,n){if(n<7)i.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,a=this._videoTrack,u=this._littleEndian,l=new DataView(e,t,n);r?void 0!==r.avcc&&i.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(r=this._videoMetadata={}).type="video",r.id=a.id,r.timescale=this._timescale,r.duration=this._duration);var c=l.getUint8(0),d=l.getUint8(1);if(l.getUint8(2),l.getUint8(3),1===c&&0!==d)if(this._naluLengthSize=1+(3&l.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var h=31&l.getUint8(5);if(0!==h){h>1&&i.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+h);for(var f=6,p=0;p<h;p++){var m=l.getUint16(f,!u);if(f+=2,0!==m){var g=new Uint8Array(e,t+f,m);f+=m;var v=o.default.parseSPS(g);if(0===p){r.codecWidth=v.codec_size.width,r.codecHeight=v.codec_size.height,r.presentWidth=v.present_size.width,r.presentHeight=v.present_size.height,r.profile=v.profile_string,r.level=v.level_string,r.bitDepth=v.bit_depth,r.chromaFormat=v.chroma_format,r.sarRatio=v.sar_ratio,r.frameRate=v.frame_rate,!1!==v.frame_rate.fixed&&0!==v.frame_rate.fps_num&&0!==v.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate);var y=r.frameRate.fps_den,_=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(y/_);for(var b=g.subarray(1,4),w="avc1.",E=0;E<3;E++){var A=b[E].toString(16);A.length<2&&(A="0"+A),w+=A}r.codec=w;var S=this._mediaInfo;S.width=r.codecWidth,S.height=r.codecHeight,S.fps=r.frameRate.fps,S.profile=r.profile,S.level=r.level,S.refFrames=v.ref_frames,S.chromaFormat=v.chroma_format_string,S.sarNum=r.sarRatio.width,S.sarDen=r.sarRatio.height,S.videoCodec=w,S.hasAudio?null!=S.audioCodec&&(S.mimeType='video/x-flv; codecs="'+S.videoCodec+","+S.audioCodec+'"'):S.mimeType='video/x-flv; codecs="'+S.videoCodec+'"',S.isComplete()&&this._onMediaInfo(S)}}}var x=l.getUint8(f);if(0!==x){for(x>1&&i.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+x),f++,p=0;p<x;p++)m=l.getUint16(f,!u),f+=2,0!==m&&(f+=m);r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),i.default.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}else this._onError(s.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(s.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(s.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));else this._onError(s.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}},e.prototype._parseAVCVideoData=function(e,t,n,r,o,s,a){for(var u=this._littleEndian,l=new DataView(e,t,n),c=[],d=0,h=0,f=this._naluLengthSize,p=this._timestampBase+r,m=1===s;h<n;){if(h+4>=n){i.default.w(this.TAG,"Malformed Nalu near timestamp "+p+", offset = "+h+", dataSize = "+n);break}var g=l.getUint32(h,!u);if(3===f&&(g>>>=8),g>n-f)return void i.default.w(this.TAG,"Malformed Nalus near timestamp "+p+", NaluSize > DataSize!");var v=31&l.getUint8(h+f);5===v&&(m=!0);var y=new Uint8Array(e,t+h,f+g),_={type:v,data:y};c.push(_),d+=y.byteLength,h+=f+g}if(c.length){var b=this._videoTrack,w={units:c,length:d,isKeyframe:m,dts:p,cts:a,pts:p+a};m&&(w.fileposition=o),b.samples.push(w),b.length+=d}},e}()},"./src/demux/sps-parser.js":
/*!*********************************!*\
  !*** ./src/demux/sps-parser.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(/*! ./exp-golomb.js */"./src/demux/exp-golomb.js");const r=function(){function e(){}return e._ebsp2rbsp=function(e){for(var t=e,n=t.byteLength,i=new Uint8Array(n),r=0,o=0;o<n;o++)o>=2&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(i[r]=t[o],r++);return new Uint8Array(i.buffer,0,r)},e.parseSPS=function(t){var n=e._ebsp2rbsp(t),r=new i.default(n);r.readByte();var o=r.readByte();r.readByte();var s=r.readByte();r.readUEG();var a=e.getProfileString(o),u=e.getLevelString(s),l=1,c=420,d=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(3===(l=r.readUEG())&&r.readBits(1),l<=3&&(c=[0,420,422,444][l]),d=r.readUEG()+8,r.readUEG(),r.readBits(1),r.readBool()))for(var h=3!==l?8:12,f=0;f<h;f++)r.readBool()&&(f<6?e._skipScalingList(r,16):e._skipScalingList(r,64));r.readUEG();var p=r.readUEG();if(0===p)r.readUEG();else if(1===p){r.readBits(1),r.readSEG(),r.readSEG();var m=r.readUEG();for(f=0;f<m;f++)r.readSEG()}var g=r.readUEG();r.readBits(1);var v=r.readUEG(),y=r.readUEG(),_=r.readBits(1);0===_&&r.readBits(1),r.readBits(1);var b=0,w=0,E=0,A=0;r.readBool()&&(b=r.readUEG(),w=r.readUEG(),E=r.readUEG(),A=r.readUEG());var S=1,x=1,T=0,L=!0,k=0,C=0;if(r.readBool()){if(r.readBool()){var R=r.readByte();R>0&&R<16?(S=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][R-1],x=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][R-1]):255===R&&(S=r.readByte()<<8|r.readByte(),x=r.readByte()<<8|r.readByte())}if(r.readBool()&&r.readBool(),r.readBool()&&(r.readBits(4),r.readBool()&&r.readBits(24)),r.readBool()&&(r.readUEG(),r.readUEG()),r.readBool()){var D=r.readBits(32),I=r.readBits(32);L=r.readBool(),T=(k=I)/(C=2*D)}}var O=1;1===S&&1===x||(O=S/x);var P=0,B=0;0===l?(P=1,B=2-_):(P=3===l?1:2,B=(1===l?2:1)*(2-_));var M=16*(v+1),j=16*(y+1)*(2-_);M-=(b+w)*P,j-=(E+A)*B;var N=Math.ceil(M*O);return r.destroy(),r=null,{profile_string:a,level_string:u,bit_depth:d,ref_frames:g,chroma_format:c,chroma_format_string:e.getChromaFormatString(c),frame_rate:{fixed:L,fps:T,fps_den:C,fps_num:k},sar_ratio:{width:S,height:x},codec_size:{width:M,height:j},present_size:{width:N,height:j}}},e._skipScalingList=function(e,t){for(var n=8,i=8,r=0;r<t;r++)0!==i&&(i=(n+e.readSEG()+256)%256),n=0===i?n:i},e.getProfileString=function(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}},e.getLevelString=function(e){return(e/10).toFixed(1)},e.getChromaFormatString=function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}},e}()},"./src/flv.js":
/*!********************!*\
  !*** ./src/flv.js ***!
  \********************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(/*! ./utils/polyfill.js */"./src/utils/polyfill.js"),r=n(/*! ./core/features.js */"./src/core/features.js"),o=n(/*! ./io/loader.js */"./src/io/loader.js"),s=n(/*! ./player/flv-player.js */"./src/player/flv-player.js"),a=n(/*! ./player/native-player.js */"./src/player/native-player.js"),u=n(/*! ./player/player-events.js */"./src/player/player-events.js"),l=n(/*! ./player/player-errors.js */"./src/player/player-errors.js"),c=n(/*! ./utils/logging-control.js */"./src/utils/logging-control.js"),d=n(/*! ./utils/exception.js */"./src/utils/exception.js");i.default.install();var h={createPlayer:function(e,t){var n=e;if(null==n||"object"!=typeof n)throw new d.InvalidArgumentException("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new d.InvalidArgumentException("MediaDataSource must has type field to indicate video file type!");switch(n.type){case"flv":return new s.default(n,t);default:return new a.default(n,t)}},isSupported:function(){return r.default.supportMSEH264Playback()},getFeatureList:function(){return r.default.getFeatureList()}};h.BaseLoader=o.BaseLoader,h.LoaderStatus=o.LoaderStatus,h.LoaderErrors=o.LoaderErrors,h.Events=u.default,h.ErrorTypes=l.ErrorTypes,h.ErrorDetails=l.ErrorDetails,h.FlvPlayer=s.default,h.NativePlayer=a.default,h.LoggingControl=c.default,Object.defineProperty(h,"version",{enumerable:!0,get:function(){return"1.6.0"}});const f=h},"./src/index.js":
/*!**********************!*\
  !*** ./src/index.js ***!
  \**********************/(e,t,n)=>{e.exports=n(/*! ./flv.js */"./src/flv.js").default},"./src/io/fetch-stream-loader.js":
/*!***************************************!*\
  !*** ./src/io/fetch-stream-loader.js ***!
  \***************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i,r=n(/*! ../utils/browser.js */"./src/utils/browser.js"),o=n(/*! ./loader.js */"./src/io/loader.js"),s=n(/*! ../utils/exception.js */"./src/utils/exception.js"),a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t,n){var i=e.call(this,"fetch-stream-loader")||this;return i.TAG="FetchStreamLoader",i._seekHandler=t,i._config=n,i._needStash=!0,i._requestAbort=!1,i._contentLength=null,i._receivedLength=0,i}return a(t,e),t.isSupported=function(){try{var e=r.default.msedge&&r.default.version.minor>=15048,t=!r.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){var n=this;this._dataSource=e,this._range=t;var i=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(i=e.redirectedURL);var r=this._seekHandler.getConfig(i,t),a=new self.Headers;if("object"==typeof r.headers){var u=r.headers;for(var l in u)u.hasOwnProperty(l)&&a.append(l,u[l])}var c={method:"GET",headers:a,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"==typeof this._config.headers)for(var l in this._config.headers)a.append(l,this._config.headers[l]);!1===e.cors&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,c.signal=this._abortController.signal),this._status=o.LoaderStatus.kConnecting,self.fetch(r.url,c).then((function(e){if(n._requestAbort)return n._status=o.LoaderStatus.kIdle,void e.body.cancel();if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var i=e.headers.get("Content-Length");return null!=i&&(n._contentLength=parseInt(i),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=o.LoaderStatus.kError,!n._onError)throw new s.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){if(!n._abortController||!n._abortController.signal.aborted){if(n._status=o.LoaderStatus.kError,!n._onError)throw e;n._onError(o.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})}}))},t.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==o.LoaderStatus.kBuffering||!r.default.chrome)&&this._abortController)try{this._abortController.abort()}catch(e){}},t.prototype._pump=function(e){var t=this;return e.read().then((function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength<t._contentLength){t._status=o.LoaderStatus.kError;var i=o.LoaderErrors.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(!t._onError)throw new s.RuntimeException(r.msg);t._onError(i,r)}else t._status=o.LoaderStatus.kComplete,t._onComplete&&t._onComplete(t._range.from,t._range.from+t._receivedLength-1);else{if(t._abortController&&t._abortController.signal.aborted)return void(t._status=o.LoaderStatus.kComplete);if(!0===t._requestAbort)return t._status=o.LoaderStatus.kComplete,e.cancel();t._status=o.LoaderStatus.kBuffering;var a=n.value.buffer,u=t._range.from+t._receivedLength;t._receivedLength+=a.byteLength,t._onDataArrival&&t._onDataArrival(a,u,t._receivedLength),t._pump(e)}})).catch((function(e){if(t._abortController&&t._abortController.signal.aborted)t._status=o.LoaderStatus.kComplete;else if(11!==e.code||!r.default.msedge){t._status=o.LoaderStatus.kError;var n=0,i=null;if(19!==e.code&&"network error"!==e.message||!(null===t._contentLength||null!==t._contentLength&&t._receivedLength<t._contentLength)?(n=o.LoaderErrors.EXCEPTION,i={code:e.code,msg:e.message}):(n=o.LoaderErrors.EARLY_EOF,i={code:e.code,msg:"Fetch stream meet Early-EOF"}),!t._onError)throw new s.RuntimeException(i.msg);t._onError(n,i)}}))},t}(o.BaseLoader)},"./src/io/io-controller.js":
/*!*********************************!*\
  !*** ./src/io/io-controller.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(/*! ../utils/logger.js */"./src/utils/logger.js"),r=n(/*! ./speed-sampler.js */"./src/io/speed-sampler.js"),o=n(/*! ./loader.js */"./src/io/loader.js"),s=n(/*! ./fetch-stream-loader.js */"./src/io/fetch-stream-loader.js"),a=n(/*! ./xhr-moz-chunked-loader.js */"./src/io/xhr-moz-chunked-loader.js"),u=n(/*! ./xhr-range-loader.js */"./src/io/xhr-range-loader.js"),l=n(/*! ./websocket-loader.js */"./src/io/websocket-loader.js"),c=n(/*! ./range-seek-handler.js */"./src/io/range-seek-handler.js"),d=n(/*! ./param-seek-handler.js */"./src/io/param-seek-handler.js"),h=n(/*! ../utils/exception.js */"./src/utils/exception.js");const f=function(){function e(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=393216,null!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new r.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return e.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},e.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},e.prototype.isPaused=function(){return this._paused},Object.defineProperty(e.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extraData",{get:function(){return this._extraData},set:function(e){this._extraData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(e){this._onSeeked=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(e){this._onRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasRedirect",{get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSpeed",{get:function(){return this._loaderClass===u.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),e.prototype._selectSeekHandler=function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new c.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new d.default(t,n)}else{if("custom"!==e.seekType)throw new h.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!=typeof e.customSeekHandler)throw new h.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}},e.prototype._selectLoader=function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=l.default;else if(s.default.isSupported())this._loaderClass=s.default;else if(a.default.isSupported())this._loaderClass=a.default;else{if(!u.default.isSupported())throw new h.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=u.default}},e.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},e.prototype.open=function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},e.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},e.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)},e.prototype._internalSeek=function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()},e.prototype.updateUrl=function(e){if(!e||"string"!=typeof e||0===e.length)throw new h.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e},e.prototype._expandBuffer=function(e){for(var t=this._stashSize;t+1048576<e;)t*=2;if((t+=1048576)!==this._bufferSize){var n=new ArrayBuffer(t);if(this._stashUsed>0){var i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}},e.prototype._normalizeSpeed=function(e){var t=this._speedNormalizeList,n=t.length-1,i=0,r=0,o=n;if(e<t[0])return t[0];for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:o=i-1}},e.prototype._adjustStashSize=function(e){var t=0;(t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=1024*t},e.prototype._dispatchChunks=function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)},e.prototype._onURLRedirect=function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)},e.prototype._onContentLengthKnown=function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)},e.prototype._onLoaderChunkArrival=function(e,t,n){if(!this._onDataArrival)throw new h.IllegalStateException("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);var i=this._speedSampler.lastSecondKBps;if(0!==i){var r=this._normalizeSpeed(i);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)(a=new Uint8Array(this._stashBuffer,0,this._stashSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else if(a=new Uint8Array(this._stashBuffer,0,this._bufferSize),this._stashUsed>0){var o=this._stashBuffer.slice(0,this._stashUsed);(u=this._dispatchChunks(o,this._stashByteStart))<o.byteLength?u>0&&(l=new Uint8Array(o,u),a.set(l,0),this._stashUsed=l.byteLength,this._stashByteStart+=u):(this._stashUsed=0,this._stashByteStart+=u),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else(u=this._dispatchChunks(e,t))<e.byteLength&&((s=e.byteLength-u)>this._bufferSize&&(this._expandBuffer(s),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,u),0),this._stashUsed+=s,this._stashByteStart=t+u);else if(0===this._stashUsed){var s;(u=this._dispatchChunks(e,t))<e.byteLength&&((s=e.byteLength-u)>this._bufferSize&&this._expandBuffer(s),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e,u),0),this._stashUsed+=s,this._stashByteStart=t+u)}else{var a,u;if(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,(u=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))<this._stashUsed&&u>0){var l=new Uint8Array(this._stashBuffer,u);a.set(l,0)}this._stashUsed-=u,this._stashByteStart+=u}}},e.prototype._flushStashBuffer=function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength){if(!e){if(n>0){var o=new Uint8Array(this._stashBuffer,0,this._bufferSize),s=new Uint8Array(t,n);o.set(s,0),this._stashUsed=s.byteLength,this._stashByteStart+=n}return 0}i.default.w(this.TAG,r+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,r}return 0},e.prototype._onLoaderComplete=function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},e.prototype._onLoaderError=function(e,t){switch(i.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=o.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case o.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n<this._totalLength&&(i.default.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)))}e=o.LoaderErrors.UNRECOVERABLE_EARLY_EOF;break;case o.LoaderErrors.UNRECOVERABLE_EARLY_EOF:case o.LoaderErrors.CONNECTING_TIMEOUT:case o.LoaderErrors.HTTP_STATUS_CODE_INVALID:case o.LoaderErrors.EXCEPTION:}if(!this._onError)throw new h.RuntimeException("IOException: "+t.msg);this._onError(e,t)},e}()},"./src/io/loader.js":
/*!**************************!*\
  !*** ./src/io/loader.js ***!
  \**************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{LoaderStatus:()=>r,LoaderErrors:()=>o,BaseLoader:()=>s});var i=n(/*! ../utils/exception.js */"./src/utils/exception.js"),r={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},o={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},s=function(){function e(e){this._type=e||"undefined",this._status=r.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return e.prototype.destroy=function(){this._status=r.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},e.prototype.isWorking=function(){return this._status===r.kConnecting||this._status===r.kBuffering},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),e.prototype.open=function(e,t){throw new i.NotImplementedException("Unimplemented abstract function!")},e.prototype.abort=function(){throw new i.NotImplementedException("Unimplemented abstract function!")},e}()},"./src/io/param-seek-handler.js":
/*!**************************************!*\
  !*** ./src/io/param-seek-handler.js ***!
  \**************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i=function(){function e(e,t){this._startName=e,this._endName=t}return e.prototype.getConfig=function(e,t){var n=e;if(0!==t.from||-1!==t.to){var i=!0;-1===n.indexOf("?")&&(n+="?",i=!1),i&&(n+="&"),n+=this._startName+"="+t.from.toString(),-1!==t.to&&(n+="&"+this._endName+"="+t.to.toString())}return{url:n,headers:{}}},e.prototype.removeURLParameters=function(e){var t=e.split("?")[0],n=void 0,i=e.indexOf("?");-1!==i&&(n=e.substring(i+1));var r="";if(null!=n&&n.length>0)for(var o=n.split("&"),s=0;s<o.length;s++){var a=o[s].split("="),u=s>0;a[0]!==this._startName&&a[0]!==this._endName&&(u&&(r+="&"),r+=o[s])}return 0===r.length?t:t+"?"+r},e}()},"./src/io/range-seek-handler.js":
/*!**************************************!*\
  !*** ./src/io/range-seek-handler.js ***!
  \**************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i=function(){function e(e){this._zeroStart=e||!1}return e.prototype.getConfig=function(e,t){var n={};if(0!==t.from||-1!==t.to){var i=void 0;i=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}},e.prototype.removeURLParameters=function(e){return e},e}()},"./src/io/speed-sampler.js":
/*!*********************************!*\
  !*** ./src/io/speed-sampler.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i=function(){function e(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return e.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},e.prototype.addBytes=function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())},Object.defineProperty(e.prototype,"currentKBps",{get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"averageKBps",{get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024},enumerable:!1,configurable:!0}),e}()},"./src/io/websocket-loader.js":
/*!************************************!*\
  !*** ./src/io/websocket-loader.js ***!
  \************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i,r=n(/*! ./loader.js */"./src/io/loader.js"),o=n(/*! ../utils/exception.js */"./src/utils/exception.js"),s=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const a=function(e){function t(){var t=e.call(this,"websocket-loader")||this;return t.TAG="WebSocketLoader",t._needStash=!0,t._ws=null,t._requestAbort=!1,t._receivedLength=0,t}return s(t,e),t.isSupported=function(){try{return void 0!==self.WebSocket}catch(e){return!1}},t.prototype.destroy=function(){this._ws&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=r.LoaderStatus.kConnecting}catch(e){this._status=r.LoaderStatus.kError;var n={code:e.code,msg:e.message};if(!this._onError)throw new o.RuntimeException(n.msg);this._onError(r.LoaderErrors.EXCEPTION,n)}},t.prototype.abort=function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=r.LoaderStatus.kComplete},t.prototype._onWebSocketOpen=function(e){this._status=r.LoaderStatus.kBuffering},t.prototype._onWebSocketClose=function(e){!0!==this._requestAbort?(this._status=r.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1},t.prototype._onWebSocketMessage=function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var n=new FileReader;n.onload=function(){t._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(e.data)}else{this._status=r.LoaderStatus.kError;var i={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new o.RuntimeException(i.msg);this._onError(r.LoaderErrors.EXCEPTION,i)}},t.prototype._dispatchArrayBuffer=function(e){var t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)},t.prototype._onWebSocketError=function(e){this._status=r.LoaderStatus.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new o.RuntimeException(t.msg);this._onError(r.LoaderErrors.EXCEPTION,t)},t}(r.BaseLoader)},"./src/io/xhr-moz-chunked-loader.js":
/*!******************************************!*\
  !*** ./src/io/xhr-moz-chunked-loader.js ***!
  \******************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i,r=n(/*! ../utils/logger.js */"./src/utils/logger.js"),o=n(/*! ./loader.js */"./src/io/loader.js"),s=n(/*! ../utils/exception.js */"./src/utils/exception.js"),a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const u=function(e){function t(t,n){var i=e.call(this,"xhr-moz-chunked-loader")||this;return i.TAG="MozChunkedLoader",i._seekHandler=t,i._config=n,i._needStash=!0,i._xhr=null,i._requestAbort=!1,i._contentLength=null,i._receivedLength=0,i}return a(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(e){return r.default.w("MozChunkedLoader",e.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL);var i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"==typeof i.headers){var s=i.headers;for(var a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a])}if("object"==typeof this._config.headers)for(var a in s=this._config.headers)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a]);this._status=o.LoaderStatus.kConnecting,r.send()},t.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.LoaderStatus.kComplete},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=o.LoaderStatus.kError,!this._onError)throw new s.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=o.LoaderStatus.kBuffering}},t.prototype._onProgress=function(e){if(this._status!==o.LoaderStatus.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}},t.prototype._onLoadEnd=function(e){!0!==this._requestAbort?this._status!==o.LoaderStatus.kError&&(this._status=o.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},t.prototype._onXhrError=function(e){this._status=o.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=o.LoaderErrors.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=o.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new s.RuntimeException(n.msg);this._onError(t,n)},t}(o.BaseLoader)},"./src/io/xhr-range-loader.js":
/*!************************************!*\
  !*** ./src/io/xhr-range-loader.js ***!
  \************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i,r=n(/*! ../utils/logger.js */"./src/utils/logger.js"),o=n(/*! ./speed-sampler.js */"./src/io/speed-sampler.js"),s=n(/*! ./loader.js */"./src/io/loader.js"),a=n(/*! ../utils/exception.js */"./src/utils/exception.js"),u=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const l=function(e){function t(t,n){var i=e.call(this,"xhr-range-loader")||this;return i.TAG="RangeLoader",i._seekHandler=t,i._config=n,i._needStash=!1,i._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],i._currentChunkSizeKB=384,i._currentSpeedNormalized=0,i._zeroSpeedChunkCount=0,i._xhr=null,i._speedSampler=new o.default,i._requestAbort=!1,i._waitForTotalLength=!1,i._totalLengthReceived=!1,i._currentRequestURL=null,i._currentRedirectedURL=null,i._currentRequestRange=null,i._totalLength=null,i._contentLength=null,i._receivedLength=0,i._lastTimeLoaded=0,i}return u(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(e){return r.default.w("RangeLoader",e.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"currentSpeed",{get:function(){return this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),t.prototype.open=function(e,t){this._dataSource=e,this._range=t,this._status=s.LoaderStatus.kConnecting;var n=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(n=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||n?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))},t.prototype._openSubRange=function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,n=t+e;null!=this._contentLength&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)},t.prototype._internalOpen=function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=e.redirectedURL&&(n=e.redirectedURL));var i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"==typeof i.headers){var o=i.headers;for(var s in o)o.hasOwnProperty(s)&&r.setRequestHeader(s,o[s])}if("object"==typeof this._config.headers)for(var s in o=this._config.headers)o.hasOwnProperty(s)&&r.setRequestHeader(s,o[s]);r.send()},t.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=s.LoaderStatus.kComplete},t.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=s.LoaderStatus.kBuffering}else{if(this._status=s.LoaderStatus.kError,!this._onError)throw new a.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(s.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}},t.prototype._onProgress=function(e){if(this._status!==s.LoaderStatus.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var i=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(i)}},t.prototype._normalizeSpeed=function(e){var t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,o=n;if(e<t[0])return t[0];for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:o=i-1}},t.prototype._onLoad=function(e){if(this._status!==s.LoaderStatus.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var i=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;var o=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():o=!0,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),o&&(this._status=s.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},t.prototype._onXhrError=function(e){this._status=s.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=s.LoaderErrors.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=s.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new a.RuntimeException(n.msg);this._onError(t,n)},t}(s.BaseLoader)},"./src/player/flv-player.js":
/*!**********************************!*\
  !*** ./src/player/flv-player.js ***!
  \**********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! ../utils/logger.js */"./src/utils/logger.js"),s=n(/*! ../utils/browser.js */"./src/utils/browser.js"),a=n(/*! ./player-events.js */"./src/player/player-events.js"),u=n(/*! ../core/transmuxer.js */"./src/core/transmuxer.js"),l=n(/*! ../core/transmuxing-events.js */"./src/core/transmuxing-events.js"),c=n(/*! ../core/mse-controller.js */"./src/core/mse-controller.js"),d=n(/*! ../core/mse-events.js */"./src/core/mse-events.js"),h=n(/*! ./player-errors.js */"./src/player/player-errors.js"),f=n(/*! ../config.js */"./src/config.js"),p=n(/*! ../utils/exception.js */"./src/utils/exception.js");const m=function(){function e(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(r()),this._config=(0,f.createDefaultConfig)(),"object"==typeof t&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new p.InvalidArgumentException("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var n=s.default.chrome&&(s.default.version.major<50||50===s.default.version.major&&s.default.version.build<2661);this._alwaysSeekKeyframe=!!(n||s.default.msedge||s.default.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return e.prototype.destroy=function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var n=this;e===a.default.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(a.default.MEDIA_INFO,n.mediaInfo)})):e===a.default.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(a.default.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){var t=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new c.default(this._config),this._msectl.on(d.default.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(d.default.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(d.default.SOURCE_OPEN,(function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())})),this._msectl.on(d.default.ERROR,(function(e){t._emitter.emit(a.default.ERROR,h.ErrorTypes.MEDIA_ERROR,h.ErrorDetails.MEDIA_MSE_ERROR,e)})),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)},e.prototype.load=function(){var e=this;if(!this._mediaElement)throw new p.IllegalStateException("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new p.IllegalStateException("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new u.default(this._mediaDataSource,this._config),this._transmuxer.on(l.default.INIT_SEGMENT,(function(t,n){e._msectl.appendInitSegment(n)})),this._transmuxer.on(l.default.MEDIA_SEGMENT,(function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var i=e._mediaElement.currentTime;n.info.endDts>=1e3*(i+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(o.default.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(l.default.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(a.default.LOADING_COMPLETE)})),this._transmuxer.on(l.default.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(a.default.RECOVERED_EARLY_EOF)})),this._transmuxer.on(l.default.IO_ERROR,(function(t,n){e._emitter.emit(a.default.ERROR,h.ErrorTypes.NETWORK_ERROR,t,n)})),this._transmuxer.on(l.default.DEMUX_ERROR,(function(t,n){e._emitter.emit(a.default.ERROR,h.ErrorTypes.MEDIA_ERROR,t,{code:-1,msg:n})})),this._transmuxer.on(l.default.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(a.default.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(l.default.METADATA_ARRIVED,(function(t){e._emitter.emit(a.default.METADATA_ARRIVED,t)})),this._transmuxer.on(l.default.SCRIPTDATA_ARRIVED,(function(t){e._emitter.emit(a.default.SCRIPTDATA_ARRIVED,t)})),this._transmuxer.on(l.default.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(a.default.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(l.default.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.open()))},e.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),e.prototype._fillStatisticsInfo=function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e},e.prototype._onmseUpdateEnd=function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;i<e.length;i++){var r=e.start(i),s=e.end(i);if(r<=t&&t<s){n=s;break}}n>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(o.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},e.prototype._onmseBufferFull=function(){o.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()},e.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},e.prototype._checkProgressAndResume=function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,i=0;i<t.length;i++){var r=t.start(i),s=t.end(i);if(e>=r&&e<s){e>=s-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(o.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},e.prototype._isTimepointBuffered=function(e){for(var t=this._mediaElement.buffered,n=0;n<t.length;n++){var i=t.start(n),r=t.end(n);if(e>=i&&e<r)return!0}return!1},e.prototype._internalSeek=function(e){var t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){var r=this._mediaElement.buffered.start(0);(r<1&&e<r||s.default.safari)&&(n=!0,i=s.default.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(this._alwaysSeekKeyframe){var o=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=o?o.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)},e.prototype._checkAndApplyUnbufferedSeekpoint=function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)},e.prototype._checkAndResumeStuckPlayback=function(e){var t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){var n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(o.default.w(this.TAG,"Playback seems stuck at "+t.currentTime+", seek to "+n.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},e.prototype._onvSeeking=function(e){var t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&n.length>0){var i=n.start(0);if(i<1&&t<i||s.default.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=s.default.safari?.1:i)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){var r=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=r&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},e.prototype._onvCanPlay=function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)},e.prototype._onvStalled=function(e){this._checkAndResumeStuckPlayback(!0)},e.prototype._onvProgress=function(e){this._checkAndResumeStuckPlayback()},e}()},"./src/player/native-player.js":
/*!*************************************!*\
  !*** ./src/player/native-player.js ***!
  \*************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! ./player-events.js */"./src/player/player-events.js"),s=n(/*! ../config.js */"./src/config.js"),a=n(/*! ../utils/exception.js */"./src/utils/exception.js");const u=function(){function e(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(r()),this._config=(0,s.createDefaultConfig)(),"object"==typeof t&&Object.assign(this._config,t),"flv"===e.type.toLowerCase())throw new a.InvalidArgumentException("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new a.InvalidArgumentException("NativePlayer("+e.type+") doesn't support multipart playback!");this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}return e.prototype.destroy=function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var n=this;e===o.default.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(o.default.MEDIA_INFO,n.mediaInfo)})):e===o.default.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(o.default.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.load=function(){if(!this._mediaElement)throw new a.IllegalStateException("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},e.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){var e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(e.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(e.width=this._mediaElement.videoWidth,e.height=this._mediaElement.videoHeight)),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e},enumerable:!1,configurable:!0}),e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(o.default.MEDIA_INFO,this.mediaInfo)},e.prototype._reportStatisticsInfo=function(){this._emitter.emit(o.default.STATISTICS_INFO,this.statisticsInfo)},e}()},"./src/player/player-errors.js":
/*!*************************************!*\
  !*** ./src/player/player-errors.js ***!
  \*************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{ErrorTypes:()=>o,ErrorDetails:()=>s});var i=n(/*! ../io/loader.js */"./src/io/loader.js"),r=n(/*! ../demux/demux-errors.js */"./src/demux/demux-errors.js"),o={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},s={NETWORK_EXCEPTION:i.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:i.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:i.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:i.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:r.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:r.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:r.default.CODEC_UNSUPPORTED}},"./src/player/player-events.js":
/*!*************************************!*\
  !*** ./src/player/player-events.js ***!
  \*************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"}},"./src/remux/aac-silent.js":
/*!*********************************!*\
  !*** ./src/remux/aac-silent.js ***!
  \*********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i=function(){function e(){}return e.getSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}()},"./src/remux/mp4-generator.js":
/*!************************************!*\
  !*** ./src/remux/mp4-generator.js ***!
  \************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=function(){function e(){}return e.init=function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=e.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},e.box=function(e){for(var t=8,n=null,i=Array.prototype.slice.call(arguments,1),r=i.length,o=0;o<r;o++)t+=i[o].byteLength;(n=new Uint8Array(t))[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);var s=8;for(o=0;o<r;o++)n.set(i[o],s),s+=i[o].byteLength;return n},e.generateInitSegment=function(t){var n=e.box(e.types.ftyp,e.constants.FTYP),i=e.moov(t),r=new Uint8Array(n.byteLength+i.byteLength);return r.set(n,0),r.set(i,n.byteLength),r},e.moov=function(t){var n=e.mvhd(t.timescale,t.duration),i=e.trak(t),r=e.mvex(t);return e.box(e.types.moov,n,i,r)},e.mvhd=function(t,n){return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},e.trak=function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.tkhd=function(t){var n=t.id,i=t.duration,r=t.presentWidth,o=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,o>>>8&255,255&o,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))},e.mdhd=function(t){var n=t.timescale,i=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))},e.hdlr=function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)},e.minf=function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))},e.dinf=function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))},e.mp3=function(t){var n=t.channelCount,i=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types[".mp3"],r)},e.mp4a=function(t){var n=t.channelCount,i=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types.mp4a,r,e.esds(t))},e.esds=function(t){var n=t.config||[],i=n.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(n).concat([6,1,2]));return e.box(e.types.esds,r)},e.avc1=function(t){var n=t.avcc,i=t.codecWidth,r=t.codecHeight,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,o,e.box(e.types.avcC,n))},e.mvex=function(t){return e.box(e.types.mvex,e.trex(t))},e.trex=function(t){var n=t.id,i=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,i)},e.moof=function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))},e.mfhd=function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)},e.traf=function(t,n){var i=t.id,r=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),s=e.sdtp(t),a=e.trun(t,s.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,r,o,a,s)},e.sdtp=function(t){for(var n=t.samples||[],i=n.length,r=new Uint8Array(4+i),o=0;o<i;o++){var s=n[o].flags;r[o+4]=s.isLeading<<6|s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy}return e.box(e.types.sdtp,r)},e.trun=function(t,n){var i=t.samples||[],r=i.length,o=12+16*r,s=new Uint8Array(o);n+=8+o,s.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var a=0;a<r;a++){var u=i[a].duration,l=i[a].size,c=i[a].flags,d=i[a].cts;s.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,l>>>24&255,l>>>16&255,l>>>8&255,255&l,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*a)}return e.box(e.types.trun,s)},e.mdat=function(t){return e.box(e.types.mdat,t)},e}();i.init();const r=i},"./src/remux/mp4-remuxer.js":
/*!**********************************!*\
  !*** ./src/remux/mp4-remuxer.js ***!
  \**********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(/*! ../utils/logger.js */"./src/utils/logger.js"),r=n(/*! ./mp4-generator.js */"./src/remux/mp4-generator.js"),o=n(/*! ./aac-silent.js */"./src/remux/aac-silent.js"),s=n(/*! ../utils/browser.js */"./src/utils/browser.js"),a=n(/*! ../core/media-segment-info.js */"./src/core/media-segment-info.js"),u=n(/*! ../utils/exception.js */"./src/utils/exception.js");const l=function(){function e(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new a.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new a.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!s.default.chrome||!(s.default.version.major<50||50===s.default.version.major&&s.default.version.build<2661)),this._fillSilentAfterSeek=s.default.msedge||s.default.msie,this._mp3UseMpegAudio=!s.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},e.prototype.bindDataSource=function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(e.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e},enumerable:!1,configurable:!0}),e.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},e.prototype.seek=function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},e.prototype.remux=function(e,t){if(!this._onMediaSegment)throw new u.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)},e.prototype._onTrackMetadataReceived=function(e,t){var n=null,i="mp4",o=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(i="mpeg",o="",n=new Uint8Array):n=r.default.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=r.default.generateInitSegment(t)}if(!this._onInitSegment)throw new u.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:o,container:e+"/"+i,mediaDuration:t.duration})},e.prototype._calculateDtsBase=function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},e.prototype.flushStashedSamples=function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);var i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)},e.prototype._remuxAudio=function(e,t){if(null!=this._audioMeta){var n,u=e,l=u.samples,c=void 0,d=-1,h=this._audioMeta.refSampleDuration,f="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,p=this._dtsBaseInited&&void 0===this._audioNextDts,m=!1;if(l&&0!==l.length&&(1!==l.length||t)){var g=0,v=null,y=0;f?(g=0,y=u.length):(g=8,y=8+u.length);var _=null;if(l.length>1&&(y-=(_=l.pop()).length),null!=this._audioStashedLastSample){var b=this._audioStashedLastSample;this._audioStashedLastSample=null,l.unshift(b),y+=b.length}null!=_&&(this._audioStashedLastSample=_);var w=l[0].dts-this._dtsBase;if(this._audioNextDts)c=w-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())c=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(m=!0);else{var E=this._audioSegmentInfoList.getLastSampleBefore(w);if(null!=E){var A=w-(E.originalDts+E.duration);A<=3&&(A=0),c=w-(E.dts+E.duration+A)}else c=0}if(m){var S=w-c,x=this._videoSegmentInfoList.getLastSegmentBefore(w);if(null!=x&&x.beginDts<S){if(M=o.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount)){var T=x.beginDts,L=S-x.beginDts;i.default.v(this.TAG,"InsertPrefixSilentAudio: dts: "+T+", duration: "+L),l.unshift({unit:M,dts:T,pts:T}),y+=M.byteLength}}else m=!1}for(var k=[],C=0;C<l.length;C++){var R=(b=l[C]).unit,D=b.dts-this._dtsBase,I=(T=D,!1),O=null,P=0;if(!(D<-.001)){if("mp3"!==this._audioMeta.codec){var B=D;if(this._audioNextDts&&(B=this._audioNextDts),(c=D-B)<=-3*h){i.default.w(this.TAG,"Dropping 1 audio frame (originalDts: "+D+" ms ,curRefDts: "+B+" ms)  due to dtsCorrection: "+c+" ms overlap.");continue}if(c>=3*h&&this._fillAudioTimestampGap&&!s.default.safari){I=!0;var M,j=Math.floor(c/h);i.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+D+" ms, curRefDts: "+B+" ms, dtsCorrection: "+Math.round(c)+" ms, generate: "+j+" frames"),T=Math.floor(B),P=Math.floor(B+h)-T,null==(M=o.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))&&(i.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),M=R),O=[];for(var N=0;N<j;N++){B+=h;var U=Math.floor(B),F=Math.floor(B+h)-U,V={dts:U,pts:U,cts:0,unit:M,size:M.byteLength,duration:F,originalDts:D,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};O.push(V),y+=V.size}this._audioNextDts=B+h}else T=Math.floor(B),P=Math.floor(B+h)-T,this._audioNextDts=B+h}else T=D-c,P=C!==l.length-1?l[C+1].dts-this._dtsBase-c-T:null!=_?_.dts-this._dtsBase-c-T:k.length>=1?k[k.length-1].duration:Math.floor(h),this._audioNextDts=T+P;-1===d&&(d=T),k.push({dts:T,pts:T,cts:0,unit:b.unit,size:b.unit.byteLength,duration:P,originalDts:D,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),I&&k.push.apply(k,O)}}if(0===k.length)return u.samples=[],void(u.length=0);for(f?v=new Uint8Array(y):((v=new Uint8Array(y))[0]=y>>>24&255,v[1]=y>>>16&255,v[2]=y>>>8&255,v[3]=255&y,v.set(r.default.types.mdat,4)),C=0;C<k.length;C++)R=k[C].unit,v.set(R,g),g+=R.byteLength;var q=k[k.length-1];n=q.dts+q.duration;var H=new a.MediaSegmentInfo;H.beginDts=d,H.endDts=n,H.beginPts=d,H.endPts=n,H.originalBeginDts=k[0].originalDts,H.originalEndDts=q.originalDts+q.duration,H.firstSample=new a.SampleInfo(k[0].dts,k[0].pts,k[0].duration,k[0].originalDts,!1),H.lastSample=new a.SampleInfo(q.dts,q.pts,q.duration,q.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(H),u.samples=k,u.sequenceNumber++;var z=null;z=f?new Uint8Array:r.default.moof(u,d),u.samples=[],u.length=0;var G={type:"audio",data:this._mergeBoxes(z,v).buffer,sampleCount:k.length,info:H};f&&p&&(G.timestampOffset=d),this._onMediaSegment("audio",G)}}},e.prototype._remuxVideo=function(e,t){if(null!=this._videoMeta){var n,i,o=e,s=o.samples,u=void 0,l=-1,c=-1;if(s&&0!==s.length&&(1!==s.length||t)){var d=8,h=null,f=8+e.length,p=null;if(s.length>1&&(f-=(p=s.pop()).length),null!=this._videoStashedLastSample){var m=this._videoStashedLastSample;this._videoStashedLastSample=null,s.unshift(m),f+=m.length}null!=p&&(this._videoStashedLastSample=p);var g=s[0].dts-this._dtsBase;if(this._videoNextDts)u=g-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())u=0;else{var v=this._videoSegmentInfoList.getLastSampleBefore(g);if(null!=v){var y=g-(v.originalDts+v.duration);y<=3&&(y=0),u=g-(v.dts+v.duration+y)}else u=0}for(var _=new a.MediaSegmentInfo,b=[],w=0;w<s.length;w++){var E=(m=s[w]).dts-this._dtsBase,A=m.isKeyframe,S=E-u,x=m.cts,T=S+x;-1===l&&(l=S,c=T);var L=0;if(L=w!==s.length-1?s[w+1].dts-this._dtsBase-u-S:null!=p?p.dts-this._dtsBase-u-S:b.length>=1?b[b.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),A){var k=new a.SampleInfo(S,T,L,m.dts,!0);k.fileposition=m.fileposition,_.appendSyncPoint(k)}b.push({dts:S,pts:T,cts:x,units:m.units,size:m.length,isKeyframe:A,duration:L,originalDts:E,flags:{isLeading:0,dependsOn:A?2:1,isDependedOn:A?1:0,hasRedundancy:0,isNonSync:A?0:1}})}for((h=new Uint8Array(f))[0]=f>>>24&255,h[1]=f>>>16&255,h[2]=f>>>8&255,h[3]=255&f,h.set(r.default.types.mdat,4),w=0;w<b.length;w++)for(var C=b[w].units;C.length;){var R=C.shift().data;h.set(R,d),d+=R.byteLength}var D=b[b.length-1];if(n=D.dts+D.duration,i=D.pts+D.duration,this._videoNextDts=n,_.beginDts=l,_.endDts=n,_.beginPts=c,_.endPts=i,_.originalBeginDts=b[0].originalDts,_.originalEndDts=D.originalDts+D.duration,_.firstSample=new a.SampleInfo(b[0].dts,b[0].pts,b[0].duration,b[0].originalDts,b[0].isKeyframe),_.lastSample=new a.SampleInfo(D.dts,D.pts,D.duration,D.originalDts,D.isKeyframe),this._isLive||this._videoSegmentInfoList.append(_),o.samples=b,o.sequenceNumber++,this._forceFirstIDR){var I=b[0].flags;I.dependsOn=2,I.isNonSync=0}var O=r.default.moof(o,l);o.samples=[],o.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(O,h).buffer,sampleCount:b.length,info:_})}}},e.prototype._mergeBoxes=function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n},e}()},"./src/utils/browser.js":
/*!******************************!*\
  !*** ./src/utils/browser.js ***!
  \******************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i={};!function(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},o={};if(r.browser){o[r.browser]=!0;var s=r.majorVersion.split(".");o.version={major:parseInt(r.majorVersion,10),string:r.version},s.length>1&&(o.version.minor=parseInt(s[1],10)),s.length>2&&(o.version.build=parseInt(s[2],10))}for(var a in r.platform&&(o[r.platform]=!0),(o.chrome||o.opr||o.safari)&&(o.webkit=!0),(o.rv||o.iemobile)&&(o.rv&&delete o.rv,r.browser="msie",o.msie=!0),o.edge&&(delete o.edge,r.browser="msedge",o.msedge=!0),o.opr&&(r.browser="opera",o.opera=!0),o.safari&&o.android&&(r.browser="android",o.android=!0),o.name=r.browser,o.platform=r.platform,i)i.hasOwnProperty(a)&&delete i[a];Object.assign(i,o)}();const r=i},"./src/utils/exception.js":
/*!********************************!*\
  !*** ./src/utils/exception.js ***!
  \********************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{RuntimeException:()=>o,IllegalStateException:()=>s,InvalidArgumentException:()=>a,NotImplementedException:()=>u});var i,r=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(){function e(e){this._message=e}return Object.defineProperty(e.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.name+": "+this.message},e}(),s=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),t}(o),a=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),t}(o),u=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),t}(o)},"./src/utils/logger.js":
/*!*****************************!*\
  !*** ./src/utils/logger.js ***!
  \*****************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=function(){function e(){}return e.e=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",i),e.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))},e.i=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",i),e.ENABLE_INFO&&(console.info?console.info(i):console.log(i))},e.w=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",i),e.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))},e.d=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",i),e.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))},e.v=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var i="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",i),e.ENABLE_VERBOSE&&console.log(i)},e}();o.GLOBAL_TAG="flv.js",o.FORCE_GLOBAL_TAG=!1,o.ENABLE_ERROR=!0,o.ENABLE_INFO=!0,o.ENABLE_WARN=!0,o.ENABLE_DEBUG=!0,o.ENABLE_VERBOSE=!0,o.ENABLE_CALLBACK=!1,o.emitter=new(r());const s=o},"./src/utils/logging-control.js":
/*!**************************************!*\
  !*** ./src/utils/logging-control.js ***!
  \**************************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(/*! events */"./node_modules/events/events.js"),r=n.n(i),o=n(/*! ./logger.js */"./src/utils/logger.js"),s=function(){function e(){}return Object.defineProperty(e,"forceGlobalTag",{get:function(){return o.default.FORCE_GLOBAL_TAG},set:function(t){o.default.FORCE_GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"globalTag",{get:function(){return o.default.GLOBAL_TAG},set:function(t){o.default.GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableAll",{get:function(){return o.default.ENABLE_VERBOSE&&o.default.ENABLE_DEBUG&&o.default.ENABLE_INFO&&o.default.ENABLE_WARN&&o.default.ENABLE_ERROR},set:function(t){o.default.ENABLE_VERBOSE=t,o.default.ENABLE_DEBUG=t,o.default.ENABLE_INFO=t,o.default.ENABLE_WARN=t,o.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableDebug",{get:function(){return o.default.ENABLE_DEBUG},set:function(t){o.default.ENABLE_DEBUG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableVerbose",{get:function(){return o.default.ENABLE_VERBOSE},set:function(t){o.default.ENABLE_VERBOSE=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableInfo",{get:function(){return o.default.ENABLE_INFO},set:function(t){o.default.ENABLE_INFO=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableWarn",{get:function(){return o.default.ENABLE_WARN},set:function(t){o.default.ENABLE_WARN=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableError",{get:function(){return o.default.ENABLE_ERROR},set:function(t){o.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),e.getConfig=function(){return{globalTag:o.default.GLOBAL_TAG,forceGlobalTag:o.default.FORCE_GLOBAL_TAG,enableVerbose:o.default.ENABLE_VERBOSE,enableDebug:o.default.ENABLE_DEBUG,enableInfo:o.default.ENABLE_INFO,enableWarn:o.default.ENABLE_WARN,enableError:o.default.ENABLE_ERROR,enableCallback:o.default.ENABLE_CALLBACK}},e.applyConfig=function(e){o.default.GLOBAL_TAG=e.globalTag,o.default.FORCE_GLOBAL_TAG=e.forceGlobalTag,o.default.ENABLE_VERBOSE=e.enableVerbose,o.default.ENABLE_DEBUG=e.enableDebug,o.default.ENABLE_INFO=e.enableInfo,o.default.ENABLE_WARN=e.enableWarn,o.default.ENABLE_ERROR=e.enableError,o.default.ENABLE_CALLBACK=e.enableCallback},e._notifyChange=function(){var t=e.emitter;if(t.listenerCount("change")>0){var n=e.getConfig();t.emit("change",n)}},e.registerListener=function(t){e.emitter.addListener("change",t)},e.removeListener=function(t){e.emitter.removeListener("change",t)},e.addLogListener=function(t){o.default.emitter.addListener("log",t),o.default.emitter.listenerCount("log")>0&&(o.default.ENABLE_CALLBACK=!0,e._notifyChange())},e.removeLogListener=function(t){o.default.emitter.removeListener("log",t),0===o.default.emitter.listenerCount("log")&&(o.default.ENABLE_CALLBACK=!1,e._notifyChange())},e}();s.emitter=new(r());const a=s},"./src/utils/polyfill.js":
/*!*******************************!*\
  !*** ./src/utils/polyfill.js ***!
  \*******************************/(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=function(){function e(){}return e.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},"function"!=typeof self.Promise&&n(/*! es6-promise */"./node_modules/es6-promise/dist/es6-promise.js").polyfill()},e}();i.install();const r=i},"./src/utils/utf8-conv.js":
/*!********************************!*\
  !*** ./src/utils/utf8-conv.js ***!
  \********************************/(e,t,n)=>{"use strict";function i(e,t,n){var i=e;if(t+n<i.length){for(;n--;)if(128!=(192&i[++t]))return!1;return!0}return!1}n.r(t),n.d(t,{default:()=>r});const r=function(e){for(var t=[],n=e,r=0,o=e.length;r<o;)if(n[r]<128)t.push(String.fromCharCode(n[r])),++r;else{if(n[r]<192);else if(n[r]<224){if(i(n,r,1)&&(s=(31&n[r])<<6|63&n[r+1])>=128){t.push(String.fromCharCode(65535&s)),r+=2;continue}}else if(n[r]<240){if(i(n,r,2)&&(s=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2])>=2048&&55296!=(63488&s)){t.push(String.fromCharCode(65535&s)),r+=3;continue}}else if(n[r]<248){var s;if(i(n,r,3)&&(s=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3])>65536&&s<1114112){s-=65536,t.push(String.fromCharCode(s>>>10|55296)),t.push(String.fromCharCode(1023&s|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")}}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t].call(o.exports,o,o.exports,i),o.exports}return i.m=e,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i("./src/index.js")})()},e.exports=n()}).call(this,n(19))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=i=function(e){return n(e)}:e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},i(t)}e.exports=i},function(e,t,n){e.exports=n(18)},function(e,t,n){(function(t){e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var i=function(e,n){var i=e[1]||"",r=e[3];if(!r)return i;if(n){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new t(JSON.stringify(a)).toString("base64")+" */"),s=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[i].concat(s).concat([o]).join("\n")}var a;return[i].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+i+"}":i})).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&i[s[0]]||(t&&!s[2]?s[2]=t:t&&(s[2]="("+s[2]+") and ("+t+")"),n.push(s))}},n}}).call(this,n(12).Buffer)},function(e,t,n){var i,r,o={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),a=function(e,t){return t?t.querySelector(e):document.querySelector(e)},u=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var i=a.call(this,e,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}}(),l=null,c=0,d=[],h=n(17);function f(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=o[i.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](i.parts[s]);for(;s<i.parts.length;s++)r.parts.push(_(i.parts[s],t))}else{var a=[];for(s=0;s<i.parts.length;s++)a.push(_(i.parts[s],t));o[i.id]={id:i.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],s=t.base?o[0]+t.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}function m(e,t){var n=u(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=u(e.insertAt.before,n);n.insertBefore(t,r)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var i=function(){0;return n.nc}();i&&(e.attrs.nonce=i)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function _(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var s=c++;n=l||(l=v(t)),i=E.bind(null,n,s,!1),r=E.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),i=S.bind(null,n,t),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),i=A.bind(null,n),r=function(){g(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var i=[],r=0;r<n.length;r++){var s=n[r];(a=o[s.id]).refs--,i.push(a)}e&&f(p(e,t),t);for(r=0;r<i.length;r++){var a;if(0===(a=i[r]).refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete o[a.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function E(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function A(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=h(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([i],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},function(e,t){function n(e,t,n,i,r,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(i,r)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(r,o){var s=e.apply(t,i);function a(e){n(s,r,o,a,u,"next",e)}function u(e){n(s,r,o,a,u,"throw",e)}a(void 0)}))}}},function(e,t,n){var i=n(11);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,"\n.cc-player-wrap{\n  width: 100%;\n  height: 100%;\n  position: relative;\n  background: black;\n  overflow: hidden;\n}\n.cc-full-screen {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: none;\n  color: white;\n  overflow-x: hidden;\n  overflow-y: hidden;\n}\n.cc-full-video {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n}",""])},function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var i=n(14),r=n(15),o=n(16);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=a(e,t<0?0:0|f(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return F(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var o,s=1,a=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var c=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var d=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){d=!1;break}if(d)return o}return-1}function _(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,i){return q(F(t,e.length-n),e,n,i)}function w(e,t,n,i){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function E(e,t,n,i){return w(e,t,n,i)}function A(e,t,n,i){return q(V(t),e,n,i)}function S(e,t,n,i){return q(function(e,t){for(var n,i,r,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,s,a,u,l=e[r],c=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[r+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[r+1],s=e[r+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,i){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=u.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(i,r),c=e.slice(t,n),d=0;d<a;++d)if(l[d]!==c[d]){o=l[d],s=c[d];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function k(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function C(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=U(e[o]);return r}function R(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,r,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function O(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function B(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,i,o){return o||B(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,o){return o||B(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var r=t-e;n=new u(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:F(new u(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),s=i[0],a=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(c(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var r,o,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,u=(1<<a)-1,l=u>>1,c=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=l}return(f?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,u,l=8*o-r-1,c=(1<<l)-1,d=c>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*u-1)*Math.pow(2,r),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;e[n+f]=255&s,f+=p,s/=256,l-=8);e[n+f-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(e,t,n){var i=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof d?t:d,o=Object.create(r.prototype),s=new A(i||[]);return o._invoke=function(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return x()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=b(s,n);if(a){if(a===c)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=l(e,t,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}(e,n,s),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function d(){}function h(){}function f(){}var p={};a(p,r,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&n.call(g,r)&&(p=g);var v=f.prototype=d.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var i;this._invoke=function(r,o){function s(){return new t((function(i,s){!function i(r,o,s,a){var u=l(e[r],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,a)}))}a(u.arg)}(r,o,i,s)}))}return i=i?i.then(s,s):s()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,c;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return h.prototype=f,a(v,"constructor",f),a(f,"constructor",h),h.displayName=a(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(_.prototype),a(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new _(u(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},y(v),a(v,s,"Generator"),a(v,r,(function(){return this})),a(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=S,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){var i=n(21);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,'.cc-loading{\n  width: 100%;\n  height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.cc-loading-icon {\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAVNJREFUSA3tVDFLw1AQ/i4EqovgUlDQSdwL6qz+AUd3RbfmB3Ry8xd0cOvcSUF01LlxC90Ul2ARV9MhSM97r/DyEpvWxGzmIHC5e/d9vO/eHWGO8d1WAy9vhyAcYYIdgNZB3ARjJLFzao/v55SbFBnPcvhh38VwcIIJXQC8ZqVsNyRvvGEH8nw3m+Cr1U0E/rXEW0KQTZf6T5Fwd2UXcXwr4M0FaKGSa8EZkzZy6RvEsQ/OEBA+5XQPTDdo8BDbex908PhlEH7haBLdg8AfyA1EItuoj2V4dBa929Gi/lSu4On0BwHRJbWjTlHAWedJP9Pn0auQWK+I+uRFx7MKysRcPQdAQqB6sASvDFhejaMHLZ3t/bUHaTjAmU6yFVavqGJz9KqwQdUzrdhErsxcyBxUzCFyqWWXWFh00JLSfE81Xq2HUH8FVkU+ZJ2pFagV+N8KfAMxK1svqEVw9QAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n  pointer-events: none;\n  width: 25px;\n  height: 25px;\n  animation:loading .8s linear infinite;\n  -webkit-animation:loading 1s linear infinite;\n  -moz-animation: loading 1s linear infinite;\n  -o-animation:loading 1s linear infinite;\n}\n@-webkit-keyframes loading {\n  0%{-webkit-transform:rotate(0deg);}\n  50%{-webkit-transform:rotate(180deg);}\n  100%{-webkit-transform:rotate(360deg);}\n}\n@-moz-keyframes loading {\n\n  0%{-moz-transform:rotate(0deg);}\n  50%{-moz-transform:rotate(180deg);}\n  100%{-moz-transform:rotate(360deg);}\n}\n@-o-keyframes loading {\n  0%{-o-transform:rotate(0deg);}\n  50%{-o-transform:rotate(180deg);}\n  100%{-o-transform:rotate(360deg);}\n}\n@keyframes loading {\n  0%{transform:rotate(0deg);}\n  50%{transform:rotate(180deg);}\n  100%{transform:rotate(360deg);}\n}',""])},function(e,t){e.exports="<div class=cc-loading> <div class=cc-loading-icon></div> </div>"},function(e,t,n){var i=n(24);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,".cc-autoplay-mask{\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-color: rgba(0,0,0,0.8);\n}\n.cc-autoplay-content{\n  width: 100%;\n  color: #ffeeff !important;\n}\n.cc-autoplay-content{\n  text-align: center;\n  word-break: keep-all;\n  color: white;\n  font-size: 16px;\n  word-wrap: break-word;\n}\n.cc-autoplay-btn{\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  margin-top: 20px;\n}\n.cc-play-btn{\n  text-align: center;\n  color: white;\n  min-width: 50px;\n  white-space: nowrap;\n  word-break: break-all;\n  word-wrap: break-word;\n  width: 130px;\n  height: 40px;\n  line-height: 40px;\n  background: #FF9502;\n  border-radius: 5px;\n  opacity: 0.9;\n  font-size: 16px;\n  cursor: pointer\n}",""])},function(e,t){e.exports="<div class=cc-autoplay-mask> <div class=cc-autoplay-content> <p id=ccAutoPlayMsg class=cc-autoplay-content></p> <div class=cc-autoplay-btn> <div class=cc-play-btn>开始播放</div> </div> </div> </div>"},function(e,t,n){var i=n(27);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,".cc-live-lines{\n  position: absolute;\n  top: 0px;\n  left: 0;\n  z-index: 3;\n  width: 100px;\n  display: none;\n}\n.cc-line {\n  padding: 0px;\n  margin: 0 auto;\n  width: 100%;\n  height: auto;\n}\n.cc-video-line {\n  list-style: none;\n  background-color: black;\n  border-radius: 2%;\n  width: 100px;\n  height: 25px;\n  line-height: 25px;\n  color: whitesmoke;\n  font-size: 14px;\n  font-family: \"Microsoft Yahei\", Arial, Helvetica, sans-serif;\n  cursor: pointer;\n  opacity: 0.7;\n  text-align: center;\n  display: block;\n}\n.cc-video-line-active::before {\n  content: '';\n  display: inline-block;\n  width: 5px;\n  height: 5px;\n  line-height: 25px;\n  border-radius: 50%;\n  background-color: whitesmoke;\n  margin-right: 10px;\n  margin-top: 0px;\n  margin-bottom: 0px;\n}",""])},function(e,t){e.exports="<div class=cc-live-lines> <ul class=cc-line> </ul> </div>"},function(e,t,n){var i=n(30);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,'.cc-live-video-bar{\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  align-items: flex-end;\n  position: absolute;\n  right: 1px;\n  bottom: 5px;\n  left: auto;\n  top: auto;\n  width: 175px;\n  height: 25px;\n  z-index: 5;\n}\n.cc-live-control-bar{\n  border-radius: 5px;\n  position: absolute;\n  right: 0px;\n  bottom: 5px;\n  display: flex;\n  flex-direction: row-reverse;\n  align-items: flex-end;\n  justify-content: center;\n  background-color: rgba(2,2,2,0.3);\n}\n.cc-live-full-btn{\n  width: 30px;\n  height: 30px;\n}\n.cc-live-vlm-slider{\n  width: 100px;\n  height: 30px;\n}\n.cc-live-vlm-btn{\n  width: 30px;\n  height: 30px;\n}\n.cc-fullscreen-btn{\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  cursor: pointer;\n  position: relative;\n}\n.cc-enter-full{\n  background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAEjUlEQVRoQ+2aSagdRRSGv98JB5xdOIIScSMI7sRh4QgiatQQjC5MjGIICi7VCG5UXAUFQY0mRtQ4TwtxY7IRVAQVF4KgJCJicJ7isFCP/I+6j7bTfW+Vr+/ASxdkk3e66nznP1116vQVe9jQHsZLD7zYFe8V7hVeZBHoU3qRCbobTq9wr3AtAhFxMHAt8HVGcAL4SNKODFsi4ijgTGCvDHvbvi5pZ4btvElRSkfEMcBm4FBgn4yF/kp2SyV9Ocw+Ik4GHgYOypz7b+BnYJmkXzN8mTMpBb4B8L8c2KoPT0p6YATwTcCNuY4nOwd0syQHKmuUAi8F1hUGyk6tk7R1BPBFwL1ZXv/X6B5Jr+Q+1xXwn8AXwA+1hf2+vyHp2RyHIuIK4NyGDDoCOB7Yv2GeqQDbj5+AxyU9nQOXaxMRV6fX6LCWZyYKbGWrUTe036mncoFGpHkTbH3NiQJ/BhwJHF5xvBPoFmU99zfAKZX1Jgr8HvAWcH2X0BGxAlgNVNPYsJvSOX3G1IAlrU0OdgI9DFbSloh4EJgusKPdBXREXJOyZTdlDZvWmQ3ghULnwE4D+FLgDmDf9A69I+mW6k47ROmHJL3UtCtHxMXA7cCBtc1v00DZwf9HxBPAqZVK6z5Jr+aeCqWFh3fk5yqbyd1Ni0WELxcraxuZfbpAkjef+RERTt/nARcXgzG3QdVhk8I+qm6tFCfLJW0fC3BacAlwPrBd0pttCyVo18cD1X4EbpP0fg34dGA94KrMoxW2orLXt8ovj7qU1P0rUjg3ihXHlgGrgAOAXZIua0lpp6RtDgGukvRV6Vq59mMFThnhlF1SV7buYERY6R31lM8FybUbO3CuI5Oy64EnFelprdMr3HXkI8Jnt4+QtyW5+9E40qb1uSQfX2MbY1U4lYuuj/cD/pB0ecPu7P7Yi6nw8F33MUkuRMYyioEj4jjgSuBjSduGKFa/CPzmCknSh9VnIuIc4K5K9fY78MiwzklEXOijDtgq6dOSyBQBR8SJSQ2v4fRc36RGy0XA/eOVkr6vAfucrldsw0pLNxLvTHPYboWkb3OhS4Gdki7yB21aq3xdDaDtirdR0jNNjkWEIW5uuvA3XB7uB85O8zjoY708VKPrNd+VZEfnxpArXits5VlfOFyGtt6F0xrV+7C/bLjFM7bbUivwQmBLoGsdj+kAdwGbCz11YJ+vLW2ZkWk8ZIdvS++NwFmVntbEFf4EOLrhvfvfsBlKV9u0EwcefB0c+OljYsGwI6CrjfiJA1ezslPYEdDzf570Lj1Y2Eo72h/U3kt/w92We2xExHLgEqD+vdf1+AkNH9OmqvCwYse9rNb+Vzpfz0ufS0u+PY8deE3qRpY4ZZ4NkjYMi0hEuIBxp7NkOLO8Zzya+1Bpaekm2wvpJw97ZyzilN4FrJHkD2+tI11KXks1ek5ADeufPKwqafoVAafUOza9ZzkF+z/pHvxdRnBcmp4EnJb5CwMfh1sk/ZIz98CmGLhk8lm07YFnUZUufeoV7jKaszhXr/AsqtKlT73CXUZzFufqFZ5FVbr06V+J8SFbkoE/QwAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n  width: 100%;\n  height: 100%;\n  color:rgba(255,255,255,0);\n  word-break: break-all;\n  word-wrap: break-word;\n  white-space: nowrap;\n  display: inline-block;\n  position: absolute;\n  left: 0px;\n  top: 50%;\n  transform: translateY(-50%);\n}\n.cc-enter-full:hover{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAEtElEQVRoQ+2aW8hmUxjHf3+nUVLEDC6cXcw0iivDhQsXQubGoZGUhMlkchgXYhhjMDPkMCgxDrmQUhqllElKKBkXLjQNRSKR87FxgTz6a+1pf/vb77vX/ma/h77Z6+77vmet9fzW/1lrPevZn9jHmvYxXnrg+a54r3Cv8DxbgT6k55mgs3B6hXuFKysQEYcBtwBfZSzOv8B7kj7OsCUijgHOB/bLsLftC5K+zLDdY9IqpCPieOB94AjggIyJ/gYOAk6W9Pkw+4g4FXgLOBQ4MGPsf4CfgSWSfs2w/9+kLfCdwLoEkTuH7R6UdGsD8N3AXS19+gu4X9L6XGfaAl8DPJ0ZcoUPVvlySdsagC8DXsp1PNkFcJ2kZ3L7dQW8G/gU+K4y8eHAi5Iez3EoIlYCF9WE9CJvC+CQ6pEyKWD78QOwWdKWHLhcm4i4IW2jhTV9xq6wlS2vuqG9px7JBWoI8zrY8pxjB/4IOBpwyBWtE+iIuBHwIVlW1mN/DZw+qT38JvAasLZL6Ii4CbijBnZTuqfPmxiwpHOTg51AD4OV9GhEbAcmC+zV7gI6Im5O0VIN402GTfNMB3AD9AOSHm44oBphJwF8FfAUsCA5v13SBWWQIUqvk7S1DjoirgCeTGll+fDbo2zxy4jYAZyRfnamdb2k53JvhbaJx1HAzpRLu+9KSc9WJ4uINcBtlYPMZgsl/VhZoCPTmB57KGxS2Kf3Q6XkZKmkXSMBThMuBS4Fdkl6edBECXpDSbXvgRWS3q4Anw28Cjgrc/PVM0vZSp9Lkspbmx4lVf9aKZy7iqXwW5UOIScnv0k6aUBIf5YSGEMvlvRF27ly7UcKnCLCIeuwm6FszTaw0o6an3Kdn4vdyIHn4tQo+/TAo1zdaRi7V7hrFSLC96sThdcluQ5V2yLCh9YnknwtjayNVOGUGztlPBjYLclVixktIlwMdFXTC/MncK+kJ0ZF3Bo4Ik50WQX4QNIrQxSr5sa/A8slvVtJIpYDzwO+vtz+ANYPq5xExApfdcA2SX6TZ7dWwBGxOKnhSoPDc02dGgNePU4mzpQ0o+4VES75zkg3h2VbEXEt4KKdffCdfZqkb3KJ2wJfnZJ815rdrPKyimKDXj0bJT1W51hEuBq6ue7BXzwLi34R4YLDhelnPx5W1+XzgxagLbBX12Xaot8bkorHuN/ErWFLIH5w3N4EXSkA+MuGy7SzHjAjB94b2DbQUwHcBWwu9MSBfb8OKMsM3LNNB0x6WtaF90bABYdiG409pD8Ejq3Zd3OGzVC6XKYdO7BPyeLEtq/OkvYatgG6XIgfO3A5OjuFbYAu/jwxYCvtROCdyv50cuJsKKvIFhGrgSuB6vdep52n1HxMmxhw0znkWtbA+pc7R8TF6XNpzsfwsSl8T6pGtnHKym+Q5ILewBYR/oziSmebZMjfnu+TZL+yWpvBrYKLbC6JOv/dP2MGh7QfDedIcnl3GLAfJf63CG+PnAX12M6lz2pT9GsFnELvhLTPfD00Ne8xv4O/bTJMYy8xQOZ/GBwHbJH0S87YhU1r4DaDT6NtDzyNqnTpU69wl6s5jWP1Ck+jKl361Cvc5WpO41i9wtOoSpc+/Qd8ry1b2u+HuQAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n}\n.cc-exit-full{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAE1UlEQVRoQ+2aW8hmUxjHf3+nKEQOOeRUQnLlwuFCboS5EDMSxpTTxXDBDXczjiFKTZTkQhRmJmK4kMSVC4NcSlHSONfIWc4e/Wu92rO/vfe71n73977TN3vdfBffs9dav+f/rLWeZ61X7GFNexgvI/BKV3xUeFR4hXlgDOkVJugSnFHhUeGaByJif+ASYLukLxbhoIg4EjgPeEPSTyVzKArpiDgYeB4w9C/AVknPThswIiQpuuxybPx9RJwJPAr8DfwOXCbJf7NaKfDlwC3Agan3H4Cn26AjYh/gIWAv4HFJHzfNKiJOAu4F3k92f7bYrQWuBw5N/7fTH5P0QhYtlOXSEXEEsAU4pDJAK3REGOJCwOBuqyTtrE4uIo4GtiUbq7ZD0pV1gIi4BriuAmsTj32jpB3LApxC6ioP0jDwEqUj4kXghEo03Cnp7Rrw2cB9lf52SlpVs6kr63//DDwhaWsurO2KQnrScURkQUfES8Dx6bsfgY2SttdgzgIeqETN55JWV8Zqgu1cSl0O6AWcq/SswBExKGxvhXOVngV4OWBnBp6mNLCmT0gD3nWru/Fkg2o9EXLXce+Qrq3DtjXtc9tHklvuGvb69Jk9OXomsE9Jei4XrM1uEOAOpf8B9i4E/gvYtzJhO2AQ2EFCOkPpiUmuwtUuB4XtDRwRVuCZdJT8Vgufg1ImNkk2+gJb6V/TebuLX4EPgbslOVEpar1COiKcXjrzqUN1Dd5H4bb+DPqepFuLaPskHk7yvaaAMwoHcyQ8KOnV2jK42GoVOs9dvAXcNq0oqc+xr8JO9p1TO73L6cPFxrepstklDJMDnUsfBvyR6UTn8mvbipGuPnIm2/h9RByV8uTOsi997CPGteu/TZ2lquoC4LsMYM/5E0l2YHHrDVw80m7ywQi8mwixbNMYFc51bbr9ODnlvdM+m2xajYlC2qkvAr6f1lE6FXwr8nWG7RKTXgpHxCnA5nTFktPHfgnm0vq5mXZo34x41/cxN635VHA2d7WkT6cZz3wOJzUeBs4vHMzq3iXp9YbEYwNwQGF/Ti+vnVfisQk4tzA7ciGwQdK7NWDfad1fuxicxm7nbZH0yDTDmRV2BykMnQ6e3pBpHZvW9aQsnIxZCuzS0mu6Xpz4Ttyhv05S43VulxNy1l+2EyNiXbpKrV7j9gX2d3bSk5Kcxg7SBgNuga1eAOQq7HCtVmGDQg8C3ALrcDTw4UmaXGDbudUv+wdRembgDliXkFcAxxUCfwb4mPIl3uDQMwF3wUraHBEu+4qBJa1p6Xvm8O4NPA027ea9gdP3TZvgTNC9gHNghwBeDuhi4FzYNNnXAL84unkTu0PSO7XE4xxf/VSeYJ0n+1n2/zZkeBcBR8Rp6aXvxMp8DOJ7Y+fWu7SI8MuebX3M+LhZXU/6UxFix7jZ5k1JGxv6agrvb4D1kr7MPaRLgf1ue3NFjVbYpLCLhpsAv9rf05bsR8Spyc7zub3t+jUp7adaFw9ufvnfJMm7elYrBXZa93ICdnm2rUnZBnWG/MmDn3X8MO65GPgGSV9l0WbeONbD9JhUOHwg6aPcgYa0iwi/Obt4eaXk9x2eQ5HCQ056UX2NwIvy/LzGHRWel6cXNc6o8KI8P69xR4Xn5elFjTMqvCjPz2vc/wDzFEdb5K0tvAAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n  width: 100%;\n  height: 100%;\n  color:rgba(255,255,255,0);\n  word-break: break-all;\n  word-wrap: break-word;\n  white-space: nowrap;\n  display: inline-block;\n}\n.cc-exit-full:hover{\n  background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAE/ElEQVRoQ+2aW8ilUxjHf3/HSM6HMkIYw4VmIhGFQiSFGxmGuKGEMOWsRBouMONCJBHJ6UK5kMmUOyUumJqYGXLIkFPOZ3n0r7Wn93u/d++91rvf77P75l23+1mH3/o/71rP86wttrGmbYyXHnihK94r3Cu8wHagd+kFJugsnF7hXuHaDkTErsDlwFpJH/0fGxQRi4BzgRclfV+yhiKXjoi9gA3ALsBPwBpJD46bMCIkKUbZ5di4f0ScArwK/A38Dhwh6bdxaxj8Xgp8FXAfsGca4Ftg1TDoiNgReAnYDrhT0ntNC4uIo4GngTeS3Z9D7K4HbgX2T7//CNwm6ZG5Aj4Q8KL3rUwwFDoiDHERYHC3RZK+qC4uIg4BNicbq7ZR0jF1gIi4AbilAmsTz32ypE1zApxc6jrg9oaJZykdER8ASyrecKmk12rAZwDPVsbbIumgmk1dWf/sb/cuSQ/nwtquyKUHA0dEE/Q3dveqe0fERuDI1O874BJJa2swpwPPV7xms6RBH3+zTbCe635JD5TAtgYeofQM6EmBu4adCDhBXwvcUXPvrbs/CfAI2BleNG8KV9x7KDRwZRuXBnzqVk9jTzfrkymFnVjhDOi9ge0Lv2GfvP82eI0PxYfaQFb7tDq0miaNiCal/wF2KAT2HbxzZQ4r2wlsZwqPUXrwc+4pXd3PTmFbA0fETsA7wD7ArzXFHX7uDtim2kqBrfTP6b6dcZMBbwNXSHKgUtRauXREOLy8sRJB5UxaCjxqTIOuk3ROzsQTfcMO8oE3gRMLJ/sFuFrSMzPkirgYeKpw8zzEK8D545KS+hrbKuxg3zG1wzsnBuPaHoBjaGc2Psi2trSBjqUPAP4YN5ATJmA/YNmwZGTUGK2APWBEHJzu2JFpX5rcC3Tu6utmVosIn+QXAl9lAHvNGyR9mWE7y6Q1cJvJpqFPDzwNKszlGnqFc3c3Ilz9cGUi99B6oX5CD+ZKJ/Vy4OuM+S3SJkmfZth2c2hFxFLg3VRiyfESx8YOEw+v35vphHahwKf+DxkQPukdzS2V9H6G/QyTnMXO6JDUeBk4r3AyR0eXSXJ1o3oPO/B4DNitcDyHlyfMV+DhKOfswujIad9ySetqwK5pPVcrDI5j/yuViG8aZ1j/vVjhFHS4CvkkcHxDXeyw9F0P0sLBnKXAjsj8TdeTEz8E2PWPk9RYzh21Ca2Ahw0YESuBm1PoVzcrBXZ/f/f3SlpTquQw+86Ah8BWCwC5wHbXamrZKXQnwENg7Y4G9vXllgtsu0GCMBCqM+iJgUfArnI6CCwuBPYrwqOpiOeko1PoiYBHwUpaHRFefDGwpCUR4QKDn1Y6hW4NPA42neatgVP/zqFbAefAdgE8F9DFwLmwabGf+8UwfYQ+xFZIer0WeJzp4kDlCdavh0fVbJquu1YHWRFwRBybXvqqCzKI68ar63dfRKxPr4e+ZhxaLq4H/SkJ2ZL62saVkRUNYzVBfwacJunj3Hu6FPga4J6KGkNhk8JOGu4GTk1l1cZgPyKWJTvXxy4YVn5N3uWnWicPbo7CVkpyLJ7VSoEd1n2Y6s5Ozx5vUrZBnS7/8uCnWp/eXov/6nCSpE+yaNu8D0fEocBZwFuSnCLOe4sIX3VewxOS/D+P7FakcPaoU2zYA0+xOJ0srVe4k22c4kF6hadYnE6W1ivcyTZO8SC9wlMsTidL+w9JS0lbtQ4KngAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n}\n\n.cc-slider-container{\n  position: absolute;\n  vertical-align: middle;\n  text-align: left;\n  width: 100px;\n  height: 100%;\n  cursor: pointer;\n}\n.cc-span{\n  position: absolute;\n  left: 0px;\n  top: 50%;\n  transform: translateY(-50%);\n}\n.cc-slider-background{\n  display: inline-block;\n  width:100px;\n  height:4px;\n  background:rgba(255,255,255,1);\n  border-radius:100px;\n  opacity:0.5;\n  position: absolute;\n  left: 0px;\n  top: 50%;\n  transform: translateY(-50%);\n}\n.cc-slider-progress{\n  display: inline-block;\n  width:100px;\n  height:4px;\n  background:#FF6E0A;\n  border-radius:100px;\n  position: absolute;\n  left: 0px;\n  top: 50%;\n  transform: translateY(-50%);\n}\n.cc-slider-btn{\n  display: inline-block;\n  width:10px;\n  height:10px;\n  left: 95px;\n  border-radius: 50%;\n  cursor: pointer;\n  background:rgba(255,255,255,1);\n  box-shadow:0px 0px 10px 0px rgba(255,146,10,1);\n  position: absolute;\n  left: 0px;\n  top: 50%;\n  transform: translateY(-50%);\n}\n.cc-slider-btn:hover{\n  background:rgba(255,255,255,1);\n  box-shadow:0px 0px 10px 0px rgba(255,255,10,1);\n}\n.cc-volume-btn{\n  width: 100%;\n  height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.cc-open{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAFhElEQVRoQ+2aeahVVRTGf19zNFIURUVBBE0ERRPNYZPNUGSDRZE02YjRhJqVldFENklYkARBKQ2aAwrZP5E0UFGQYXOBkk2mTVYrPtk3drv7nue89+7lPr3rn8fdZ5+917e/ddZewxNrmWgtw0sX8JrOeJfhLsNr2Al0TXoNI/R/cLoMdxkewBOIiA2Bu4EDgUXAM5LmDeAWq12qbSYdEZsADwL7FVqNl/TiajUdoAltARwRWwKPALs30Xs5METSX41nyRKGpt9zJP06QHhbH0tHxLbAY8AuvSh9lqRPM8CTgP3T76XAo5KmDwToljIcETslsNuvRtkRkt71nGQNzb7rWYDN//f+AG8Z4IjYzcwAWxUK/gxsVozlgNcBXga2awLMhzKyP6BbAjgi9gEmApsWSts8rwKe7QlwYtnmPw7Yuwno+cANkv7uC9MDDjgiDgbuAzYqFPoGuAJYDCzoDXACbd1OA24E1i/mT5Q0pS2AI8KKHArsCWxcbLoBcAawXjH+STLFpRGxbhXAmQPbN3l43+EN8Xd8jqQv64KuxXBEmLX7gYNqbPQBcI2knxJzTQEDXwHXAzsAM4DnJUV6ZwhwT7HnfEmeX0vqAh4JXFRjhzeBUZJ+yRgz+2+UJg0MA47Nxu2gxkn6OoG+HTixeO9MSZ/X0KfePRwRLwC+aqqIncstkv7IJ/dk0ondMjDxd3++pGURYW8/s/hcpkqaUEWZxpy6DL9VLG5ztamuMr0k9p6f+f7No6cKDO8K3NxEeVvD1fbKEXEvcHQ25ztgaB2P3V/Al0p6u84J9+a0koe/FdimWHO0pNkRcXiKx/PH/97hVfToKMDpW3Uo6nt6i/x7ljQiIvz926zzYKbWFdVxgBPok1PgkZO2Kt6OCKeXuXObLWl0FXY9p1MB+86dU0Rqd0h6KSIuBi7PAC6UdN6gBpxYdjrpqK0hT0p6PCJK9hdL8lgl6UiGE2Cb6ekZilmSxkTEUSl0bTxaLsljlaSTATt5yJmbLum2iDgCeCBDt0LSkZXQduo3nBjOiwAemiRpckQ42nLU1ZAlkk4a1IAjwvmynZaTkYaMlTQzIi4ErszGF0k6e7ADvsDRVQbC0dspkpZExHjghOzZPEk3DVrAEeG0c3LB7muSRkWEqyHOpBycNMQh7FODDjDwnnPcZK65KRuLyzoLIsL1bBcEc7lMUhnj94i/v176HeD7tLoTCJue/zqle6JZUJ/Cw2bpocFc0kTTaZIcXbnAV6aIy4DjJP3ZKoZdMN+x4uJzgTGlMr2kh9cBexVrvw84QVmZHJkrl3npaIYkX1+VpS7DdiR2KFXl9VRw+63xQi8MO3gYni08zYVASSsSu3cCxxcbD5f0UVVlPK8uYJ+uq5Flu6S3PV25uFaSOww2y55KPB8C5wI7A6/kaWeTu9dLLZDkCkwtqQU4KWxP6cjG5ldWJh30nwoYVC4L7Ywk/dATw41CfKl9RLgwYC/s3lRD3JZxJeTjWmjrMlxl8Yg4LBXc8iqjX/3C3hb4tmrVMiIOAe5qUt9+WtLDVfQp59RmuMomEWGTd6cwZ8WvuiZtP/Bcsc5/qhapOjrWHrjJfq6w2FpWVtGlLYCT6e8BmAV3DnP5sclYCdiF/GYZkBtunuvrqE/SEoYbmkSEWyYOFPLIqJmiJeBXm/SfXPJ1i8W9qT5LSwEnpt05NOjeyrvDJLk7sUoiIs+FfaXZaU2pE2D0dCItB5wAbJ3aJe4oluLr6pgcTPLkTgM3B+Y6aegzpcWLbQGcQDvlewhwZzGXCZKmDhSg1a3TNsAJtO9tO6QDAJuw/6nFZde2SVsBtw1VLxt1AXcCC63UoctwK0+3E9buMtwJLLRShy7DrTzdTli7y3AnsNBKHf4BUrNQW55NrpwAAAAASUVORK5CYII=");\n  background-size: 100% 100%;\n  width: 100%;\n  height: 100%;\n  color:rgba(255,255,255,0);\n  word-break: break-all;\n  word-wrap: break-word;\n  white-space: nowrap;\n  display: inline-block;\n\n}\n.cc-open:hover{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAFwklEQVRoQ+2aaahVVRTHf//mgSaS/GCURNGgJJhFRVpWapNkGTS+MC0iIQoii6QossGkoIi0ATV7qI1m0ahNSFH0QYrmIjAloyJtorJyxXrs89hvd9699zzvuZz3vPvL85577t7rt/97r73W2oqtrGkr46UNPNAVbyvcVniAzUB7SQ8wQf+H01a4rXATZ8DMdgIeB04CPgLulvRkE4eo21XLlrSZ7QY8DxyfWHWZpEfqWtqkF1oCbGaDgJeBIwCDHiHtRmCQpH8zprASLgyfl0r6vUm85cfSZjYEWAEcWsPoYZI+iYBfB8aGz+uBGyQtbAZ0qQqb2YEBdmgdY4+T9La/Y2Z7Az/mrIROwJf/n1sCXhqwmR0OvAoMTgzcAOyVPIuBtwG+BvaPoLNtsAoYvyXQpQCb2THAi8CeCdi3wKnAB70BB5UPARYAR+eouQw4R9LmvijddGAzGw88A+yaGOSqnQx8A/xTCzhAu23TgPuBHcP7mdIzJM1pCbCZuSGu0pE5UH7OXg7skBjjZ64vxfVmtm0jwJEDGw28Auwc9fkHMELSl0WhCylsZj7ocmBcAwNlarwHnCbpp6BcLjDwFXAvcADwKPCAJO/DHdlk4KnEkS2TdHYDdvR4pSjwbX5E5HjQdNwM9jVgkqTfIsW2A/5OlzRwJXBu9Nwd1BRJvhUcehHQES1t/+dhkj4rAl0U+AvgoAYHcOdyvqS/4vd7W9LAfcDIZK867ChJG8xsH2AtsH0UuMyVNL1Be7peKwrsnjH+zbuAL9WupReaR0yfAjPj6KkBhYcD83KM9/3rW2KzmT0NxMv4O2BIEY9dFDgGc9tOkPRWkRmu5bSCh5/vEInSF0haYmZnhHg8HrL7DG/EjkoBh73qsH5Oe8SVtVWSxpiZ7/91STBT6IiqHHCAvjh46q6PYRt1xdtmtjRxboslZYlGXZGrCuznuScNcaQ2TdJ8M5sJzIrIVkvKnF3/BA4qezo5ISKYJelGM4vV96/XSKqXnHR3U0mFA/BDnh1FwJ2SOszsTODZ6PlGSWky0qvSVQb25GFKZPkCSVPNbCLwXPT8F0l71F3L4YUqA8dFADf3Jkm3mtlFwGMR4FpJ+/VrYDNzZ+VOy7OkTJQOSZ1mdh1wZwT4oaQR/R34WuCuKPjwCG+opHVm5pWP+Bh6QlIcg9dkr9ySNrNRgCcOfjRlbbmkSWbm1ZA1wL7Rdx7C3t7vFAbeAa4C7ohgs6BjnKSVZub17JUJ3ImS3igLOE0ePI7+PkRDbpx/7389t70lL6gP4WFeeujVkJtzUs95kq4IR1WcIvojT1wGS0orKE07lrzC4JXIRprfMLij6QFXIz28Bzgq2re+3Vz1sZI2BUfmcXRcOloo6ZJGjMneKbqHZwMzChQAXgImS/KSTFerofBZwDUR8IM+lqRfw+8We36dTMhISavLBN4lVCPT65K8MePS6kRJPwfDeyvxvA9cDRwMLIrTzujsjW8tVkjygmGhVkjhYLB7Sg/vfPn5BHSLFwptUwFP47peD+eoqzBB0g+9KZwV4lPrzWxYWNq7R316kcErIWm5ty58YeB6PZrZ6YDfCMZVRv/Z56H457XpumXaMLmnAEuirCmbwNmSrq9nS973TQcOho4JlYlMlWxsr0l7iffjxJgeVYtQHfXKx3k5Rr8ZVsumygAHaL8p9BTPbw7j5vdG6bMU2Av57sQyRbO/PlGjvajXF1j/TSkKd29qM78y8ZvDODLKszUF9vM1Tfm85OtXLH692udWKnBQ2i/FHLpWeXe4pO5lbmYPA5cGKr8b9tBxTnqm94W6dOAA7TeIXm71rCa9EPfjyi/Eux2ZmXnt2dNAV9mTAw84mtJaAhygPeV7ATg2sXy6pLlNoWmgk5YBB2g/t90hxf+pxdO9lrWWAreMqsZAbeAqqFCmDW2Fy5zdKvTdVrgKKpRpQ1vhMme3Cn23Fa6CCmXa8B+rgG9bvzBSLAAAAABJRU5ErkJggg==") no-repeat;\n  background-size: 100% 100%;\n}\n.cc-close{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAADYUlEQVRoQ+2aTYhOURjHf3/kI5QopSgbC5SF8lEUpSwsrMROKWUxTEpZGHYzYRL5XFgrJcXKAgsbIpRioxCx8DE18pWER4/Oqztn3o/7jvfe7n3nntV07nvPeX7n/9xznvM8I8ZZ0zjjpQLudsUrhSuFu2wFKpfuMkFH4VQKVwp3cAXMbCpwDFgBPAcuSLrWwSlaDpWbS5vZTOAksCyy6oikyy0t7dAPcgE2sznAGWBRHbu/Ahsk/ewQU9NhMgc2s3nAOWBBE0u2SXIXz7xlCmxmCwPs3BYkOyU9ypwWsrstmdli4DQwKwL5WKev3MBmthw4AUyPYN8Be4BLUX95gc1sLXAUmBJBvQJ6gA/AvdIAm9kEYB2wFPBzNdkccjMwMep/CuyWNGxm/qwcwCFwOAW4y6ZtvhntlfTFXygbcC+wPS0pcAfYL+l77R0zmwTcLYVLm9lVYH5K4BvAoTigKJvCDyJYd9fhRJ8Bv4GXwHlJ/veI1kxhM1sD9IUXBiXdqre4ZrbePSc8G5B0O6UI7Z3DZhYD75L0MO1krb5hM/OLRC1I8cU6KOl6cnwz2wj0A755ensvaVNaG9qKtHIGdoYR0HVgSw/srjqYUO8fdFAwqWztmW+KdV2/nuqFUji4fOyyf7uD8Ul767p8K9cuHHAT6CTLmGB9gEICJ6AH6tjoavfFm1krZWvPK+BmK5X1Ll2bu8Fu3J0u3QC2OzetEEGNn2MpirTGReBR+NDyMeA5Kj8Xa9+Z//3ak3eSfsWbYLPbUhEvD1dapFuTfB7uHZD0Iwr+S5Xx8JzUjrSHPHAf2CfpW+LIKVUCwHNWx4FVbUA/AXolfQoRVHkUDgZ7dOYX9SXAtABe+34nA1sAVzHZvKrQI2moVBmPNKqa2epQIYwzmm9CmvZtabKWaYCDF3iF0LObM6J3hkIi/mLUX95EfGJz8krhWWB2BPcZ8NJpspUfOCjtFUOvHHoFsVnrDuAA7Uk5h/ZKYqO2VdKLtJ/M//yurfvwWCcyM68geiXRK4px84qEF8RHRWVjna/Ze7kAB6W9kugVxbhM0y/JE/y5tNyAA7QHLoeBlcCz8E8tN3MhDZPkCpwnWKO5KuAiqJClDZXCWa5uEcauFC6CClnaUCmc5eoWYexK4SKokKUNfwAKeMZMr/HHtAAAAABJRU5ErkJggg==");\n  background-size: 100% 100%;\n  width: 100%;\n  height: 100%;\n  color:rgba(255,255,255,0);\n  word-break: break-all;\n  word-wrap: break-word;\n  white-space: nowrap;\n  display: inline-block;\n}\n.cc-close:hover{\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAADdklEQVRoQ+2aTchNWxjHf38k3IgoA3QNKLq6Bj6KhJKPN8pbbt1cmah7kzI1YGRgoBgZKBmiRIh8ZyBuNyMp3K6PCbdr8CqulOTj0VNrve2z7Xfv876dc9r7nP2MTvtjrfV7/s9e61nPOqLHTD3GSw3c7YrXCtcKd5kH6pDuMkG/w6kVrhVuoQfMbAJwDlgDPAQOSzrRwi4Km+pYSJvZZOAysDw1ql2SjhaOtEUPdATYzKYD14GFgEFDSvsOmCrpc4uYcptpO7CZ/QjcBObmjGSBpEeVBzazeQF2ZgHMCkl/VhrYzBYB14BpKZDXGdeqDWxmK4FLwKQU7EtgA5AO3+oCm9lG4AwwPgX7D7AW+A9IT1DlBTazUcBmYCng62rSxgE7gDHhYpyR7wPrJQ2Y2ejKAIfE4QqwqokJJsLeBTZJ+t/fqRrwQWBPxlqa5o+wV4Etkj7EB8zM1f+UeqGcIW1mT4E5Tajrj5wGtktqgKuawl9TWdIdYCDhAFfWn/kb2C/JfzdYnsJm1gccCy/slnQhy7lm1g8cCff+kOSR1JQNK9MyMwdK2mpJt5vqKc5iOZOWmfmyFZOUL8A2SR4pg2ZmvwInAZ/83P6VNKvZMZQZ2BkaoDNgKw/soXo2od4gdFAwqWy898tQoZ+leqkU9gEOoWKcCzwHiJYZ8kWhXTrgHOgky4hgvYFSAiegTwFJVf2Wq/1bejIrUjber4HzPNXuZSn2PcR33J0h3VOTVsigemdZSmVaPZF4lC61TG8e/gK8RuXXPc+Om4dnwD5Jvl42WN5uqYybhycF5dYk3Hlgq6SPyYtV2x4eAPYOowBwC+iX9D6x5FSqAOA1q4uhGFeU3MSqxz2gT9KbkEFVp6YVBuzZmW/UlwA/BOq4T3aH7ATGprzhB2frJL2qVEgXSRoc4qVY/36jM+Jrz0NkvKhM1bIZ4AC9DPDqpp8YJs1r0h4dD1LXy1nEaxY4QP8M3AD85DBp/i1P6TrgAO0VTj85nF3grOornFiGZgTo+TnQP0l6PJwIGumzw9oPj7QTM/MTRC+lLs5Yw9/6aWJWVjbS/vLe6whwCO+J4UQxfUzzu6Tj7YDLarNjwAHa12mvM8c/tRyS5NvBjllHgTtGldNRDVwGFdo5hlrhdnq3DG3XCpdBhXaOoVa4nd4tQ9u1wmVQoZ1j+AYer9BMhqLqiAAAAABJRU5ErkJggg==");\n  background-size: 100% 100%;\n}\n\n.cc-control-bar-barrage-btn{\n  width: 30px;\n  height: 30px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.cc-control-btn-switch{\n  width: 30px;\n  height: 30px;\n  cursor: pointer;\n  position: relative;\n}\n.cc-left{\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0px;\n  top: 0px;\n  z-index: 1;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.cc-switch-btn{\n  width: 18px;\n  height: 18px;\n  display: inline-block;\n  border-radius: 50%;\n  background-color: white;\n  box-shadow: #dfdfdf 0 0 0 0 inset;\n  cursor: pointer;\n  font-size: 12px;\n  position: absolute;\n  left: 0px;\n  top: 0px;\n  text-align: center;\n  line-height: 18px;\n}\n.cc-swich-content{\n  position: absolute;\n  left: 20px;\n  top: 0px;\n  display: inline-block;\n  line-height: 18px;\n  text-align: center;\n  font-size: 12px;\n  color: whitesmoke;\n  word-break: break-word;\n  white-space: nowrap;\n  padding:0\n}\n.cc-right{\nwidth: 100%;\nheight: 100%;\nposition: absolute;\nright: 0px;\ntop: 0px;\nz-index: 2;\ndisplay: flex;\njustify-content: center;\nalign-items: center;\n}\n.cc-swich-content{\n  position: absolute;\n  right: 20px;\n  top: 0px;\n  display: inline-block;\n  line-height: 18px;\n  text-align: center;\n  color: #eeeeee;\n  font-size: 12px;\n  word-break: break-word;\n  white-space: nowrap;\n  padding:0\n}\n.cc-switch-btn{\n  width: 18px;\n  height: 18px;\n  display: inline-block;\n  border-radius: 50%;\n  background-color: white;\n  box-shadow: #dfdfdf 0 0 0 0 inset;\n  cursor: pointer;\n  font-size: 12px;\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  text-align: center;\n  line-height: 18px;\n}\n\n',""])},function(e,t){e.exports='<div id=ccControlBar class=cc-live-control-bar style=z-index:9> <div class=cc-live-full-btn style=margin-left:6px> <div class=cc-fullscreen-btn onselectstart=return!1 onselect=return!1> <span id=ccFullScreenBtn class=cc-enter-full onselectstart=return!1 onselect=return!1 title=全屏></span> </div> </div> <div class=cc-live-vlm-slider> <div id=ccSliderCon class=cc-slider-container onselectstart=return!1 title=音量条> <span class=cc-slider-background></span> <span class=cc-slider-progress></span> <span class=cc-slider-btn></span> </div> </div> <div class=cc-live-vlm-btn> <div class=cc-volume-btn onselectstart=return!1 onselect=return!1> <div id=ccVolumeBtn class=cc-open title=音量></div> </div> </div> <div class=cc-live-barrage id=ccBarrageControl> <div class=cc-control-bar-barrage-btn> <div class=cc-control-btn-switch> <switch-left id=ccBarrageBtnShow title=关闭弹幕 class=cc-left> <img style=width:25px;height:25px src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAe1BMVEUAAAD/mQD/fwD/cQD/cAD/aw3/bAj/bQf/bQ//cAz/cQ7/bgz/cAz/bw3/cQv/bgr/bgr/bgv/bgv/cAr/cAr/bgz/bwv/bwv/bwv/bwv/bwz/bgr/bwv/bwv/bwv/bwv/bwv/bwv/bwv/bgr/bgv/bgv/bwv/bwv/bwtyfBb+AAAAKXRSTlMABQYJEBMhIyMpNkFCTl9kaHh5f4CCjJGjqKqwvL/BzM3Oz9zh4+Tl5npJDq8AAAC0SURBVCjPxZLZDoIwEEURRPZFEFELglXg/v8XCg1amaIJJsbz0DY5yfR2ppr2X/wKlMqXWrW9lxpwST0XeNXKfQs1A5hYIQ4LNYGxj1rN8SzPvtESJ69vde680VEj8jfRrA7QZtbKytoumNE6Rzjs6y24rmoPxbDZl+sZnjqxGOkmMW2O4w4xmTcTOkHJcTLSUcvfwkRxs0RvtWIsPmGIZh72hhY+ok0JOvIwAm0LhTT1Z9wBAqIgxSstFX8AAAAASUVORK5CYII=" alt=""> </switch-left> <switch-right id=ccBarrageBtnHide title=开启弹幕 class=cc-right style=display:none> <img style=width:25px;height:25px src=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAABO1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////88PTooAAAAaHRSTlMAAQIEBQYHCAkLDA0PERIVGxweICEiJSgpLS4vMDE1Njg9QUhKVFhcXmVnam5vc3R4eXqAhYaHjZCWmqCssLK0tri5vr/CxMXKzM7Q0dTW2drd4ePk6Orr7O3u8PHy8/T19vj5+vv9/mAvCrgAAAGESURBVEjH7ZRnU8JAEIZPLEBUFBW7WFA0iCWciCKKvVesCMGCSfb//wLvSMAE7g6Z4Yszvp82k2eSZ/c2Qeg/zLiCB+/ASybW5aTH70CQr5iTjhZFNGScNAY4H2VLSnGC19BxF6cniUVj7giaQvtkjLHsswqa1Qk+LavkhipbBY1+2SyaY1KAQgNdKo9KA3RNKrRThhYi2tkoLZpH15j0hBaV5YWxjt906V26efnUtbf71FB9emBbL6/4x7ynDt1/ZIB2kVxL7GRJD9EOIe3dBdBW/B5XW/c6ecfzpIhuCechN0crd8QAA2C/VUB7t0DboLLuaA4MImNMCWj/FTzN0CJC4HTfJkDih052VtGDr3DrszSOA2gWYK+8Zjpkk7iS0qIOF+G63dRIBxAKApxadFh1/D9KH4H5bFODXNqeLaVUvZqm3iFLg8TmjaSwgqtM6EzO8qYGQiO2mbBC5w2WBuo9sc2bGXqW8DBNzzJ4aNjOkh3ennDC2UGuDHO/+WF9O38w34zrw7dZWBhJAAAAAElFTkSuQmCC alt=""> </switch-right> </div> </div> </div> </div>'},function(e,t,n){var i=n(33);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,'.cc-count-down {\n  width: 100%;\n  height: 100%;\n  font-size: 18px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  background-color: #1c1c20;\n  color: white;\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: center;\n}\n.cc-tip {\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-color: black;\n  color: white;\n  text-align: center;\n  font-size: 18px;\n  font-weight: bold;\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: center;\n}\n#ccTipsCountDown {\n  width: 100%;\n  height: 100%;\n  position: relative;\n}\n.has-container-bg{\n  /* background-color: red; */\n  background: url("https://frontend.bokecc.com/common/images/timeout-bg.png") no-repeat bottom/100% 25%;\n}\n.ccTipsCountDown-little-window-style>#ccTipsCountDown>.has-bg-img{\n  bottom: 8px;\n  left: 8px;\n}\n.ccTipsCountDown-little-window-style>#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block{\n  width: 47px;\n  height: 47px;\n}\n.ccTipsCountDown-little-window-style>#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block>p{\n  font-size: 16px;\n}\n.ccTipsCountDown-little-window-style>#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block>span{\n  font-size: 10px;\n  line-height: 10px;\n}\n#ccTipsCountDown>.has-bg-img{\n  padding: 5px 15px;\n  border-radius: 22px;\n  font-size: 16px;\n  position: absolute;\n  left: 16px;\n  bottom: 58px;\n  background: rgba(34, 34, 34, 0.8);\n  color: #fff;\n}\n#ccTipsCountDown>.not-bg-img{\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  position: absolute;\n  width: 100%;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%,-50%);\n}\n#ccTipsCountDown>.not-bg-img>.timeout{\n  font-size: 16px;\n  color: rgba(255,255,255,0.8500);\n  margin-bottom: 16px;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom{\n  display: flex;\n  align-items: center;\n  width: 100%;\n  justify-content: center;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block{\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n  padding: 10px 0;\n  width: 57px;\n  height: 61px;\n  border-radius: 3px;\n  background: #141519;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block>p{\n  font-weight: 600;\n  color: #fff;\n  font-size: 24px;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-block>span{\n  font-size: 12px;\n  color: rgba(255,255,255,0.4500);\n  line-height: 12px;\n  padding-top: 5px;\n  width: 70%;\n  border-top: .5px solid rgba(255,255,255,0.1);\n  text-align: center;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-circel{\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 30px;\n}\n#ccTipsCountDown>.not-bg-img>.not-bg-img-bottom>.time-circel>p{\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: #141519;\n  margin: 5px 0;\n}\n#ccTipsMsg, #ccTipsCountDown {\n  z-index: 2;\n}\n#ccTipsBg {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, .1);\n  z-index: 1;\n}\n#ccTipsMsg {\n  width: 100%;\n  color: white; \n  text-align: center;\n  max-width: 100%;\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n}\n#ccTipsWrap .tipsAndCountDown {\n  transform: translateY(-200%);\n}\n',""])},function(e,t){e.exports=" <div id=ccTipsWrap class=cc-count-down style=display:none;position:relative> <div id=ccTipsMsg></div> <div id=ccTipsCountDown> </div> <div id=ccTipsBg></div> </div>"},function(e,t,n){var i=n(36);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,".cc-warm-video {\n  width: 100%;\n  height: 100%;\n}",""])},function(e,t){e.exports='<video id=ccWarmplayer loop autoplay=true crossorigin=anonymous playsinline=true poster="" class=cc-warm-video></video>'},function(e,t,n){var i=n(39);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(7)(void 0)).push([e.i,".cc-video-logo {\n  display: none;\n  position: absolute;\n  width: 20%;\n  font-size: 0;\n}\n.cc-video-logo img{\n  width: 100%;\n  display: block;\n}",""])},function(e,t){e.exports="<div id=ccVideoLogo class=cc-video-logo> <img id=ccVideoLogoImg alt=logo> </div> "},function(e,t){e.exports='<div id=ccPlayerWrap class=cc-player-wrap> <div id=ccPlayer class=cc-full-screen> <video id=ccVideoPlayer autoplay=true crossorigin=anonymous playsinline=true class=cc-full-video src=""></video> </div> <div id=ccWarmPlayer class=cc-full-screen></div> <div id=ccAutoPlay class=cc-full-screen></div> <div id=ccSwitchLine class=cc-full-screen style=z-index:3></div> <div id=ccBarrage class=cc-full-screen></div> <div id=ccTips class=cc-full-screen></div> <div id=ccLoading class=cc-full-screen></div> <div id=ccHDMarquee style=z-index:2 class=cc-full-screen></div> <div id=ccContorls class=cc-full-screen></div> </div>'},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i),o=(n(10),n(6)),s=n.n(o),a=n(9),u=n.n(a),l=n(4),c=n.n(l),d=n(5),h=n.n(d);var f=function(){},p=function(){},m=function(e){console.log("[cc error]: ".concat(e))};f=function(e){"object"===h()(e)&&(e=JSON.stringify(e)),console.warn("[cc warning]: ".concat(e))},p=function(e){"object"===h()(e)&&(e=JSON.stringify(e)),console.log("[cc logs]: ".concat(e))},m=function(e){"object"===h()(e)&&(e=JSON.stringify(e)),console.error("[cc error]: ".concat(e))};var g=function(e){return 0===Object.keys(e).length};var v=function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")};var y="//view.csslcloud.net",_=function(e,t){return new Promise((function(n,i){var o;r.a.ajax((o={url:e},c()(o,"url",e),c()(o,"type","GET"),c()(o,"dataType","json"),c()(o,"data",t),c()(o,"success",(function(e){n(e)})),c()(o,"error",(function(e){i(data)})),o))}))},b=function(e,t){return new Promise((function(n,i){var o;r.a.ajax((o={url:e},c()(o,"url",e),c()(o,"type","GET"),c()(o,"dataType","xml"),c()(o,"data",t),c()(o,"success",(function(e){n(e)})),c()(o,"error",(function(e){i(data)})),o))}))},w=function(e){return _("".concat(y,"/api/live/play"),e)},E=function(e){return _("".concat(y,"/api/live/record"),e)},A=function(e){return b("".concat(y,"/api/vod/v2/play/flash"),e)},S=function(e,t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.type=(n.type||"GET").toUpperCase(),n.dataType=n.dataType,n.async=n.async||!0,n.token=n.token||"";var i,r=n.params;if((i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).onreadystatechange=function(){if(4===i.readyState){var t=i.status;if(t>=200&&t<300?n.success&&n.success(i.responseText,i.responseXML):n.fail&&n.fail(t),e.includes("/live/data")&&DWLive){var r=i.getResponseHeader("Date");DWLive.timedifference=new Date(r).getTime()-(new Date).getTime()}}},"GET"===n.type){if(g(t))i.open("GET",e,n.async);else{var o=v(t);i.open("GET",e+"?"+o,n.async)}n.dataType&&"JSON"===n.dataType.toUpperCase()?i.setRequestHeader("Content-Type","application/json"):i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.token&&i.setRequestHeader("X-HD-Token",n.token),i.send(null)}else if("POST"===n.type){var s=JSON.stringify(t);if(r){var a=v(r);e=e+"?"+a}i.open("POST",e,n.async),n.dataType&&"JSON"===n.dataType.toUpperCase()?i.setRequestHeader("Content-Type","application/json"):i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.token&&i.setRequestHeader("X-HD-Token",n.token),i.send(s)}}("".concat(y,"/live/plus/warm/play"),e,t)},x=n(1),T=n.n(x),L=n(2),k=n.n(L),C=n(3),R=n.n(C),D=(n(20),n(22)),I=function(){function e(){T()(this,e),r()("#ccLoading").html(D)}return k()(e,[{key:"isShow",set:function(e){e?r()("#ccLoading").show():r()("#ccLoading").hide()}},{key:"destroyed",value:function(){this.isShow=!1}}]),e}();n(23);var O={lang:"en"!==function(e){var t=e+"=",n=document.cookie.indexOf(t);if(-1==n)return null;var i=document.cookie.indexOf(";",n+t.length);-1==i&&(i=document.cookie.length);var r=document.cookie.substring(n+t.length,i);return unescape(r)}("lang"),hours:function(){return this.lang?"时":"h"},day:function(){return this.lang?"天":"day"},monutes:function(){return this.lang?"分":"m"},seconds:function(){return this.lang?"秒":"s"},live_break:function(){return this.lang?"直播中断":"Live interruption"},live_end:function(){return this.lang?"直播结束":"Live Ended"},live_ban:function(){return this.lang?"直播间已封禁":"room have been banned"},live_waiting:function(){return this.lang?"直播等待中":"waiting for live"},live_reconnect:function(){return this.lang?"连接中断，重新连接中...":"Connection loss,reconnecting"},live_error:function(){return this.lang?"获取直播信息失败,请刷新页面重试":"Failed to get live information,please refresh the page retry"},live_limit:function(){return this.lang?"直播人数已达上限":"The live user count has reached its upper limit"},live_start_btn:function(){return this.lang?"开始播放":"Start playing"},live_start_tips:function(){return this.lang?"您的浏览器暂不支持自动播放":"Your browser does not support autoplay"},live_detection_tips:function(){return this.lang?"房间信息检测错误":"Room information detection error"},warm_player_error:function(){return this.lang?"暖场视频播放失败，无法解析视频格式":"Warm up video playback failed, unable to parse video format"},warm_url_error:function(){return this.lang?"资源异常，无法播放":"Resource exception, unable to play"},timeout:function(){return this.lang?"距开播":"Start broadcasting"}},P=n(25),B=function(){function e(){T()(this,e),r()("#ccAutoPlay").html(P).hide(),r()("#ccAutoPlayMsg").html(O.live_start_tips())}return k()(e,[{key:"isShow",set:function(e){e?r()("#ccAutoPlay").show():r()("#ccAutoPlay").hide()}}]),e}(),M=(n(26),{}),j={on:function(e,t){M[e]||(M[e]=[]),M[e].push(t)},emit:function(e,t){M[e]&&M[e].map((function(e){e(t)}))},off:function(e,t){if(M[e])if(t){var n=M[e].indexOf(t);n>-1&&M[e].splice(n,1)}else M[e].length=0}},N={CHANGE_LINE:"cc_chang_line",SET_VOLUME:"cc_set_volume",SHOW_BARRAGE:"cc_show_barrage",HIDE_BARRAGE:"cc-hide_BARRAGE"},U=n(28),F=function(){function e(t,n){T()(this,e),t.length<1||(this.lines=t,this.currentLine=n,this.ccSwitchLine=r()("#ccSwitchLine").show().html(U),this.lineContainer=r()(".cc-live-lines"),this.listContainer=r()(".cc-line"),this.initEvent(this.currentLine))}return k()(e,[{key:"initLines",value:function(e){var t=this;t.currentLine=e;var n=this.lines.map((function(e,n){return n===t.currentLine?'<li class="cc-video-line cc-video-line-active" index="'+n+'">线路_'+(n+1)+"</li>":'<li class="cc-video-line " index="'+n+'">线路_'+(n+1)+"</li>"})).join("");return this.listContainer.html(n)}},{key:"initEvent",value:function(){var e=this;r()("#ccSwitchLine").on("contextmenu",(function(t){event.preventDefault(),e.initLines(e.currentLine),e.lineContainer.css({left:t.offsetX+"px",top:t.offsetY+"px"}).show()})),r()("#ccSwitchLine").on("click",(function(){e.lineContainer.hide()})),this.listContainer.on("click",(function(t){var n=t.target,i=parseInt(n.getAttribute("index"));e.currentLine=i,e.initLines(e.currentLine),e.lineContainer.hide(),j.emit(N.CHANGE_LINE,i),"function"==typeof window.on_cc_live_change_line&&window.on_cc_live_change_line(i)})),this.listContainer.dblclick((function(e){e.stopPropagation(),e.preventDefault()}))}},{key:"destroyed",value:function(){this.ccSwitchLine.hide()}}]),e}(),V=(n(29),n(31)),q=function(){function e(){T()(this,e),r()("#ccControlBar").on("dblclick",(function(e){e.stopPropagation(),e.preventDefault()})),r()("#ccContorls").html(V),this.isDefContorls=!0,this.isPlaying=!1,this.isDefFullScreen=!1,this.sliderBtn=r()(".cc-slider-btn"),this.sliderBackground=r()(".cc-slider-background"),this.sliderProgress=r()(".cc-slider-progress"),this.sliderContainer=r()(".cc-slider-container"),this.volumPosition=1,this._volume=1,this.isMute=!1,this.initEvent()}return k()(e,[{key:"init",value:function(e){this.isPlaying=e}},{key:"checkFull",value:function(){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return void 0===e&&(e=!1),e}},{key:"initEvent",value:function(){var e=this;window.addEventListener("resize",(function(){e.checkFull()||(e.isFullScreen=!1)})),r()("#ccPlayerWrap").unbind(),r()("#ccFullScreenBtn").unbind(),r()("#ccVideoPlayer").unbind(),r()("#ccFullScreenBtn").unbind(),r()("#ccVolumeBtn").unbind(),r()("#ccBarrageBtnShow").unbind(),r()("#ccPlayerWrap").unbind(),r()("#ccFullScreenBtn").click((function(t){t.stopPropagation(),t.preventDefault(),e.isDefFullScreen=!e.isDefFullScreen,e.isFullScreen=e.isDefFullScreen})),r()("#ccPlayerWrap").dblclick((function(t){e.isDefFullScreen=!e.isDefFullScreen,e.isFullScreen=e.isDefFullScreen})),r()("#ccVideoPlayer").dblclick((function(e){(e=e||window.event).stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.cancelBubble=!0,e.returnValue=!1)})),r()("#ccFullScreenBtn").dblclick((function(e){(e=e||window.event).stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.cancelBubble=!0,e.returnValue=!1)})),this.sliderContainer.dblclick((function(e){(e=e||window.event).stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.cancelBubble=!0,e.returnValue=!1)}));var t="",n=!1,i=0;this.sliderContainer.mousedown((function(r){switch(i=r.offsetX,n=!0,r.target.className){case"cc-slider-btn":t="cc-slider-btn";break;case"cc-slider-progress":case"cc-slider-background":e.volumPosition=i/e.sliderBackground[0].offsetWidth<=0?-.05:i/e.sliderBackground[0].offsetWidth}})),this.sliderContainer.mousemove((function(r){t&&n&&"cc-slider-btn"!==r.target.className&&(i=r.offsetX,e.volumPosition=i/e.sliderBackground[0].offsetWidth<=.05?0:i/e.sliderBackground[0].offsetWidth)})),r()(window).mouseup((function(){n=!1})),e.muteVolum=e.volumPosition,r()("#ccVolumeBtn").click((function(t){t.stopPropagation(),t.preventDefault(),e.isMute=!e.isMute,e.isMute?(r()("#ccVolumeBtn").addClass("cc-close").removeClass("cc-open"),e.muteVolum=e.volumPosition,e.volumPosition=0):(r()("#ccVolumeBtn").addClass("cc-open").removeClass("cc-close"),e.volumPosition=0===e.muteVolum?1:e.muteVolum)})),r()("#ccVolumeBtn").dblclick((function(e){e.stopPropagation(),e.preventDefault()})),r()("#ccBarrageBtnShow").click((function(){r()(this).hide(),e.isShowBarrge=!1})),r()("#ccBarrageBtnHide").click((function(){r()(this).hide(),e.isShowBarrge=!0})),r()("#ccBarrageBtnShow").dblclick((function(e){e.stopPropagation(),e.preventDefault()})),r()("#ccBarrageBtnHide").dblclick((function(e){e.stopPropagation(),e.preventDefault()})),r()("#ccPlayerWrap").mouseover((function(){e.isDefContorls&&e.isPlaying&&r()("#ccContorls").show()}));var o=null;r()("#ccPlayerWrap").mouseout((function(){o&&(clearTimeout(o),o=null),o=setTimeout((function(){r()("#ccContorls").hide()}),3e3)}))}},{key:"isShowBarrge",set:function(e){e?(r()("#ccBarrageBtnShow").show(),j.emit(N.SHOW_BARRAGE)):(j.emit(N.HIDE_BARRAGE),r()("#ccBarrageBtnHide").show())}},{key:"volumPosition",get:function(){return this._volume},set:function(e){this.volumProgress=e,j.emit(N.SET_VOLUME,this._volume)}},{key:"volumProgress",set:function(e){this._volume=e,0===this._volume?(this.isMute=!0,r()("#ccVolumeBtn").addClass("cc-close").removeClass("cc-open")):r()("#ccVolumeBtn").addClass("cc-open").removeClass("cc-close");var t=100*e;this.sliderBtn.css("left",(t>=95?95:t)+"px"),this.sliderProgress.css("width",(t>=95?95:t)+"px")}},{key:"isOpenBarrge",set:function(e){e?r()("#ccBarrageControl").show():r()("#ccBarrageControl").hide()}},{key:"isFullScreen",set:function(e){this.switchFullScreen(e)}},{key:"isShowFullScreen",set:function(e){e?r()(".cc-live-full-btn").hide():r()(".cc-live-full-btn").show()}},{key:"switchFullScreen",value:function(e){e&&r()("#ccFullScreenBtn").hasClass("cc-enter-full")?(r()("#ccFullScreenBtn").addClass("cc-exit-full").removeClass("cc-enter-full"),this.entetFullScreen()):r()("#ccFullScreenBtn").hasClass("cc-exit-full")&&(r()("#ccFullScreenBtn").removeClass("cc-exit-full").addClass("cc-enter-full"),this.exitFullScreen())}},{key:"entetFullScreen",value:function(){var e=r()("#ccPlayerWrap")[0];this.isDefFullScreen=!0,e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}},{key:"exitFullScreen",value:function(){var e=document;if(e.exitFullscreen){if(this.isDefFullScreen)return this.isDefFullScreen=!1;e.exitFullscreen()}else e.msExitFullscreen?e.msExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.oRequestFullscreen&&e.oCancelFullScreen()}},{key:"isShow",set:function(e){var t;this.isDefContorls=e,e?(r()("#ccContorls").show(),t&&(clearTimeout(t),t=null),t=setTimeout((function(){r()("#ccContorls").hide()}),3e3)):r()("#ccContorls").hide()}},{key:"destroyed",value:function(){this.isDefContorls=!1,this.isPlaying=!1,r()("#ccContorls").hide()}}]),e}(),H=function(){function e(){T()(this,e),this.catonCount=0,this.catonDuration=0,this.catonTime=0,this.ccTrackCount=0,this.isCaton=!1,this.isFrist=!0,this.ccTrackTiming=0,this.isEnd=!1,this.ccTrack=window.ccTrack,this.initEvent()}return k()(e,[{key:"setUrl",value:function(e){this.ccTrackCDN=/^http(s)?:\/\/(.*?)\//.exec(e)[2]}},{key:"end",value:function(){this.isEnd=!0,this.isFrist=!0,clearInterval(this.ccTrackTimer),this.ccTrackTimer=null,r()("#ccVideoPlayer").unbind();var e=r()("#ccVideoPlayer")[0];try{e.removeEventListener("waiting",(function(){})),e.removeEventListener("play",(function(){})),e.removeEventListener("canplay",(function(){})),e.removeEventListener("ended",(function(){}))}catch(e){}}},{key:"start",value:function(){this.isEnd=!1}},{key:"initEvent",value:function(){var e=this,t=r()("#ccVideoPlayer")[0];t.onerror=function(){try{var e={event:"play",code:400,rid:(new Date).getTime()};this.ccTrack.tragger(e)}catch(e){}},t.addEventListener("waiting",(function(){e.catonCount=e.catonCount+1,e.catonCount>4&&window.live_play_caton&&window.live_play_caton(),e.isCaton=!0,e.isCaton&&(e.catonTime=(new Date).getTime())})),t.addEventListener("play",(function(){if(e.endPlayTime=(new Date).getTime(),e.isFrist){e.ccTrackTimerFoo(),e.isFrist=!1;try{var t={event:"play",et:window.clickPlayerStartTime?e.endPlayTime-window.clickPlayerStartTime:e.endPlayTime-window.startPlayTime,code:200,rid:(new Date).getTime(),cdn:e.ccTrackCDN};ccTrack.tragger(t)}catch(e){}}})),t.addEventListener("canplay",(function(){e.isCaton&&(e.isCaton=!1,0===e.catonCount?(e.catonCount=e.catonCount+1,e.catonDuration=e.catonDuration+((new Date).getTime()-e.ccTrackTiming)):e.catonDuration=e.catonDuration+((new Date).getTime()-e.catonTime),e.catonDuration>12e3&&window.live_play_caton&&window.live_play_caton())}),!1),t.addEventListener("ended",(function(){}),!1)}},{key:"ccTrackTimerFoo",value:function(){var e=this;e.ccTrackTimer,e.ccTrackTimer&&(clearInterval(e.ccTrackTimer),e.ccTrackTimer=null),e.ccTrackTimer=setInterval((function(){if(!e.isEnd)try{e.ccTrackCount=e.ccTrackCount+1,e.isCaton&&(e.catonDuration=e.catonDuration+((new Date).getTime()-e.catonTime)),e.catonDuration>=6e4&&(e.isCaton=!1),e.catonDuration>12e3&&window.live_play_caton&&window.live_play_caton();var t={event:"heartbeat",code:200,blocktimes:e.catonCount,blockduration:e.catonDuration>=6e4?0:e.catonDuration,rid:(new Date).getTime(),num:e.ccTrackCount,heartinter:60,cdn:e.ccTrackCDN};window.ccTrackReportRule&&(t.pusherMsg={serverDomain:window.ccTrackReportDomain,msgCount:window.ccTrackReportRule}),e.catonCount=0,e.catonDuration=0,e.ccTrackTiming=(new Date).getTime(),e.ccTrack.tragger(t),window.ccTrackReportRule&&Object.keys(window.ccTrackReportRule).forEach((function(e){window.ccTrackReportRule[e]=0}))}catch(e){console.log("ccTrackTimer:",e)}}),6e4)}}]),e}(),z="canplay",G="contextmenu",W="waiting",K="play",Y="playing",X="error",J="ended",Z={code:404,msg:"清晰度不存在～"},Q={code:404,msg:"线路不存在～"},ee={code:500,msg:"切换失败，请重试～"},te={code:200,msg:"切换成功～"},ne={code:200,msg:"切换成功～"},ie=2,re=4,oe=function(){function e(t){T()(this,e),this.contorls=new q,this.loading=new I,this.autoPlay=new B,this.flvPlayer,this.el=t,this.playStaus=""}return k()(e,[{key:"isSupported",value:function(){return!0}},{key:"initPlayerInfo",value:function(e,t,n){this.buffer=t?ie:re;var i=e[0];this.videoStreams=i.videos,this.lineIndex=0,this.streamIndex=this.videoStreams[0].quality,this.currentStream=this.videoStreams[0],this.currentLines=this.currentStream.videoStream,this.currentLine=this.currentLines[this.lineIndex],this.switchLine=new F(this.currentLines,this.lineIndex),this.ccTrackLog=null;var r=JSON.parse(JSON.stringify(this.videoStreams)).map((function(e){return delete e.videoStream,e}));window.cc_callback_onHDReceivedVideoQuality&&window.cc_callback_onHDReceivedVideoQuality(r),n&&(this.ccTrackLog=new H),this.videoEvent(),this.initPlayer()}},{key:"initPlayer",value:function(){var e=this;window.startPlayTime=(new Date).getTime(),this.contorls.init(!0),this.ccTrackLog&&(this.ccTrackLog.setUrl(this.currentLine),this.ccTrackLog.start()),this.loading.isShow=!0,this.isSupported()&&!this.flvPlayer&&this.currentLine&&(r()("#ccPlayer").show(),window.startPlayTime=(new Date).getTime(),this.flvPlayerDestroyed(),this.flvPlayer=R.a.createPlayer({type:"flv",isLive:!0,hasAudio:!0,hasVideo:!0,withCredentials:!1,cors:!0,url:this.currentLine},{accurateSeek:!0,enableWorker:!1,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:3,autoCleanupMaxBackwardDuration:180,seekType:"range",enableStashBuffer:!1,stashInitialSize:128,autoCleanupSourceBuffer:!0,fixAudioTimestampGap:!1}),this.flvPlayer.attachMediaElement(this.el),this.initEvent(),this.flvPlayer.autoplay=!0,this.flvPlayer.load(),this.flvPlayer.play().then((function(){window._onStart&&window._onStart(),e.isAuotPlay=!0})).catch((function(t){e.isAuotPlay=!1,console.log("play error",t)})),R.a.LoggingControl.enableAll=!1)}},{key:"videoEvent",value:function(){var e=this;this.el.addEventListener(z,(function(t){e.playStaus="canply",window.cc_on_player_init_canplay&&window.cc_on_player_init_canplay(),e.loading.isShow=!1,e.isAuotPlay?e.autoPlay.isShow=!1:e.autoPlay.isShow=!0,e.clearReconnectTimer(),e.clearWaitingTimer()})),this.el.addEventListener(X,(function(e){window.cc_player_stream_disconnect&&window.cc_player_stream_disconnect()})),this.el.addEventListener(J,(function(e){})),this.el.addEventListener(W,(function(t){"waiting"!==e.playStaus&&(e.playStaus="waiting",e.waitingTimer&&(clearTimeout(e.waitingTimer),e.waitingTimer=null),e.waitingTimer=setTimeout((function(){window.cc_player_stream_waiting&&window.cc_player_stream_waiting()}),1e3),e.clearReconnectTimer(),e.clearWaitingTimer(),e.waitingReconnectTimer=setTimeout((function(){e.reconnect()}),5e3))})),this.el.addEventListener(K,(function(t){e.isAuotPlay=!0,e.autoPlay.isShow=!1,e.clearReconnectTimer(),e.clearWaitingTimer()})),this.el.addEventListener(Y,(function(t){e.loading.isShow=!1,e.clearReconnectTimer(),e.clearWaitingTimer()})),this.el.addEventListener(G,(function(e){e.preventDefault()}))}},{key:"initEvent",value:function(){var e=this;r()("#livePlayer").on("click",(function(){window.clickPlayerStartTime=(new Date).getTime(),e.play()})),this.flvPlayer.on(R.a.Events.LOADING_COMPLETE,(function(){})),this.flvPlayer.on(R.a.Events.ERROR,(function(t){window.cc_player_stream_disconnect&&window.cc_player_stream_disconnect(),e.clearWaitingTimer(),e.clearReconnectTimer(),e.reconnectTimer=setTimeout((function(){e.reconnect()}),5e3),console.error(t)})),this.flvPlayer.on(R.a.Events.SCRIPTDATA_ARRIVED,(function(e){})),this.flvPlayer.on(R.a.Events.STATISTICS_INFO,(function(){e.isAuotPlay&&(navigator.userAgent.indexOf("Safari")>-1&&-1==navigator.userAgent.indexOf("Chrome")||e.reloadVideoMateInfo())}))}},{key:"play",value:function(){var e=this;this.flvPlayer&&this.flvPlayer.play().then((function(){window._onStart&&window._onStart(),e.isAuotPlay=!0,e.autoPlay.isShow=!1})).catch((function(e){}))}},{key:"reconnect",value:function(){this.flvPlayer&&(this.clearReconnectTimer(),this.clearWaitingTimer(),this.reconnectLineIndex=this.lineIndex+1,this.reconnectLineIndex>this.currentLines.length-1&&(this.reconnectLineIndex=0),this.changeLine(this.reconnectLineIndex))}},{key:"clearWaitingTimer",value:function(){clearTimeout(this.waitingReconnectTimer),this.waitingReconnectTimer=null}},{key:"clearReconnectTimer",value:function(){clearTimeout(this.reconnectTimer),this.reconnectTimer=null}},{key:"reloadVideoMateInfo",value:function(){if(0!==this.flvPlayer.buffered.length&&this.flvPlayer){var e=this.flvPlayer.buffered.end(0),t=this.flvPlayer.currentTime,n=Math.floor(e-t),i=Math.floor(e-this.buffer);n>5?this.flvPlayer.currentTime=i:n>this.buffer?this.el.playbackRate=1.2:this.el.playbackRate=1}}},{key:"volume",get:function(){return this.flvPlayer.volume},set:function(e){this.flvPlayer&&(this.contorls.volumProgress=e>1?1:e,this.flvPlayer.volume=e>1?1:e)}},{key:"changeStream",value:function(e,t){var n=this;if(this.videoStreams.find((function(t){return t.quality===e}))){this.streamIndex=e,this.currentStream=this.videoStreams.find((function(e){return e.quality===n.streamIndex})),this.currentLines=this.currentStream.videoStream,this.currentLines[this.lineIndex]||(this.lineIndex=0);try{this.currentLine=this.currentLines[this.lineIndex],this.flvPlayerDestroyed(),this.initPlayer(),t&&t(te)}catch(e){console.log("changeStream error:",e),t&&t(ee)}}else t&&t(Z)}},{key:"changeLine",value:function(e,t){if(e!==this.lineIndex)if(this.currentLines[e]){this.lineIndex=e;try{this.currentLine=this.currentLines[this.lineIndex],this.switchLine.initLines(this.lineIndex),this.flvPlayerDestroyed(),this.initPlayer(),t&&t(ne)}catch(e){console.log("changeLine error:",e),t&&t(ee)}}else t&&t(Q)}},{key:"videoStream",get:function(){return this.streamIndex}},{key:"lines",get:function(){return this.currentLines}},{key:"hostIndex",get:function(){return this.lineIndex}},{key:"showControl",set:function(e){this.contorls.isShow=e}},{key:"isFullScreen",set:function(e){this.contorls.isFullScreen=e}},{key:"isShowFullScreen",set:function(e){this.contorls.isShowFullScreen=e}},{key:"isOpenBarrge",set:function(e){this.contorls.isOpenBarrge=e}},{key:"getVideoStreams",value:function(){return this.videoStreams}},{key:"destroyed",value:function(){this.flvPlayer&&(r()("#ccPlayer").hide(),this.clearReconnectTimer(),this.clearWaitingTimer(),this.switchLine.destroyed(),this.contorls.destroyed(),this.loading.destroyed(),this.flvPlayer.pause(),this.flvPlayer.unload(),this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy(),this.flvPlayer=null,this.ccTrackLog&&this.ccTrackLog.end())}},{key:"flvPlayerDestroyed",value:function(){this.flvPlayer&&(this.flvPlayer.pause(),this.flvPlayer.unload(),this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy(),this.flvPlayer=null)}}]),e}();function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var i in e)t[n++]=[i,e[i]];return new URLSearchParams(t).toString()}var ae=function(e,t,n,i,r){if(this.URL=location.protocol+"//report.csslcloud.net/",this.param={userid:e.userId,roomid:e.roomId,viewerid:e.viewerId,upid:e.upId,terminal:t,ua:n},this.isReplay=!1,r||1==r?(this.isReplay=r,this.param.liveid=e.liveId):this.param.recordid=e.recordId,this.timeIntervalId=0,this.postURL="",this.playAddr=this.isReplay?"report/live/play":"report/replay/play",this.heartbeatAddr=this.isReplay?"report/live/heartbeat":"report/replay/heartbeat",this.logInAddr=this.isReplay?"report/live/login":"report/replay/login",this.video=null,this.count=0,"object"==h()(i)&&"null"!=typeof i&&i){this.video=i;var o=!0,s=this,a=!1;i.addEventListener("play",(function(){o&&(o=!1,s.addr(s.playAddr),s.setParam("result",0),s.send(),s.deleteKey("result"),s.count=0),s.addr(s.heartbeatAddr),s.startTimer(),s.log("播放开始 开始发送")})),i.addEventListener("waiting",(function(){a||(s.log("播放卡顿"),s.count++)})),i.addEventListener("ended",(function(){s.log("播放结束"),s.stopTimer(),o=!0})),i.addEventListener("seeking",(function(){a=!0})),i.addEventListener("seeked",(function(){a=!1})),i.addEventListener("error",(function(){o&&(o=!1,s.addr(s.playAddr),s.setParam("result",1),s.send()),s.stopTimer(),s.log("播放错误")}))}this.startTimer=function(){if(0==this.timeIntervalId){var e=this;this.timeIntervalId=setInterval((function(){e.setParam("vdrop","-1"),e.setParam("avgbytes","-1"),e.setParam("block",e.count),e.send(),e.count=0,e.log("发送心跳信息")}),1e4)}},this.log=function(e){},this.addr=function(e){this.postURL=this.URL+e},this.stopTimer=function(){0!=this.timeIntervalId&&(clearInterval(this.timeIntervalId),this.timeIntervalId=0)},this.deleteKey=function(e){this.param[e]&&delete this.param[e]},this.setParam=function(e,t){this.param[e]=t},this.getRam=function(){return(new Date).getTime()},this.send=function(){this.log("发送信息");this.param.time=this.getRam(),function(e,t){if(e){var n=e+"?"+se(t);return fetch(n,{method:"GET"})}console.warning("no url parameter")}(this.postURL,this.param).then((function(){}))},this.addr(this.logInAddr),this.send()},ue=0,le=function(){function e(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e)[t]}this.container=null,this._dom=null,this.name="",this.boxW=400,this.boxH=300,this.timer=-1,this.id="marquee_"+ue,this.isClose=!0,this.init=function(e){this.isClose=!1,this._info=e;var t=this._info.type||"text";if(this.container=document.getElementById("ccHDMarquee"),this.container.style.display="block",void 0!==this.container){switch(this.name=this._info.name,this.lastStart=null,t){case"image":this.createImage(this._info.image_url,this._info.width,this._info.height);break;case"text":this.createText(this._info)}if(this._info.action&&this._info.action.length>0){var n={index:this._info.action.length,duration:5e3,start:{xpos:this._info.action[this._info.action.length-1].end.xpos,ypos:this._info.action[this._info.action.length-1].end.ypos,alpha:1},end:{xpos:this._info.action[0].start.xpos,ypos:this._info.action[0].start.ypos,alpha:1}};this._info.action.push(n)}this._dom||(this._dom=document.getElementById(this.id),this._dom&&this.startTimerToRun()),ue++}},this.startTimerToRun=function(){var e=this;this.lastStart=null;var t=e.tweenType();this.container.style.display="block";var n=0;function i(t,n){var i=t.xpos*e.boxW,o=t.ypos*e.boxH;(t.xpos>1||t.ypos>1)&&(i=t.xpos,o=t.ypos);var s=t.alpha;return"s"==n&&r(i,o,s),{l:i,t:o,a:s}}function r(t,n,i){e._dom.style.left=(t<0?0:t)+"px",e._dom.style.top=(n<0?0:n)+"px",e._dom.style.opacity=i}function o(e,t){for(var n=Math.round(Math.random()*t);Math.abs(n-e)<50;)n=Math.round(Math.random()*t);return n}function s(a){var u,l,c,d,h;if(e.boxW=e.container.offsetWidth-e._dom.offsetWidth,e.boxH=e.container.offsetHeight-e._dom.offsetHeight,e._info.action&&e._info.action.length>0)u=e._info.action[a].start,l=e._info.action[a].end,c=e._info.action[a].duration,d=i(u,"s"),h=i(l);else{if(null==this.lastStart){var f=Math.random()*e.boxW,p=Math.random()*e.boxH;u={xpos:f,ypos:p,alpha:1},this.lastStart=u}d=i(this.lastStart,"s"),l={xpos:o(f,e.boxW),ypos:o(p,e.boxH),alpha:1},this.lastStart=l,c=1e3*Math.ceil(5*Math.random()),h=i(l)}!function(i,o,a){var u=0;e.clearTimer(),e.timer=setInterval((function(){if(e._dom=document.getElementById(e.id),u>a)return e._info.action&&e._info.action.length>0&&(n>=e._info.action.length-1?(e.clearTimer(),n=0):n+=1),u=0,void s(n);r(t(u+=10,i.l,o.l,a),t(u,i.t,o.t,a),t(u,i.a,o.a,a))}),10)}(d,h,c)}s(n)},this.clearTimer=function(){-1!=this.timer&&clearInterval(this.timer)},this.close=function(){this.clearTimer(),this.container.style.display="none"},this.createImage=function(e,t,n){var i=document.createElement("img");i.src=e,i.width=t,i.height=n,i.id=this.id,i.style.position="absolute;",i.style.padding="0",i.style.margin="0",i.style.display="inline",this.container.appendChild(i)},this.createText=function(e){var t=document.createElement("span");t.id=this.id,t.innerHTML=e.text.content||"null",t.style["font-family"]=e.text.font||"微软雅黑",t.style["font-size"]=(e.text.font_size?e.text.font_size:15)+"px",t.style.color=e.text.color.replace("0x","#")||"#000000",t.style.position="absolute",t.style["white-space"]="nowrap",t.style.padding="0",t.style.margin="0",t.style.display="inline",this.container.appendChild(t)},this.tweenType=function(e){return function(e,t,n,i){return e/i*(n-t)+t}},this.closeMarquee=function(){this.isClose=!0,document.getElementById("ccHDMarquee").style.display="none"},this.showMarquee=function(){this.isClose=!1,document.getElementById("ccHDMarquee").style.display="block"},this.detectionMarquee=function(t){var n=this;this.detectionMarqueeTimer&&(clearInterval(this.detectionMarqueeTimer),this.detectionMarqueeTimer=null),this.containerDom=document.getElementById("ccHDMarquee"),this.containerMarquee=document.getElementById("marquee_0"),this.marqueeText=this.containerMarquee.innerText,this._marqueeW=e(this.containerMarquee,"width"),this._marqueeH=e(this.containerMarquee,"height"),this._marqueeColor=e(this.containerMarquee,"color"),this.detectionMarqueeTimer=setInterval((function(){if(!n.isClose){n.containerDom=document.getElementById("ccHDMarquee");var e=n.containerDom.parentNode;if(n.containerMarquee=document.getElementById("marquee_0"),!n.containerDom||!n.containerDom.innerHTML||"ccPlayerWrap"!==e.id)return t&&t(),clearInterval(n.detectionMarqueeTimer),void(n.detectionMarqueeTimer=null);n.containerMarquee.innerText=n.marqueeText,n.setCssMarquee(n.containerDom,"container"),n.setCssMarquee(n.containerMarquee,"text")}}),1e3)},this.setCssMarquee=function(e,t){e.style.display="block",e.style.zIndex=2,e.style.transition="visible",e.style.visibility="unset",e.style.overflow="visible","container"===t?(e.style.left="0px",e.style.top="0px",e.style.opacity=1,e.style.position="absolute",e.style.width="100%",e.style.height="100%"):(e.style.position="absolute",e.style.color=this._marqueeColor,e.style.width=this._marqueeW,e.style.height=this._marqueeH,e.style["font-size"]=(this._info.text.font_size?this._info.text.font_size:15)+"px",e.style.opacity=.5)}};n(32);function ce(e,t){if("string"==typeof e&&"string"==typeof t){for(var n=e.split("."),i=t.split("."),r=0,o=n.length,s=!1;r<o-1;){var a=parseInt(n[r]),u=parseInt(i[r]);if(a>u){s=!0;break}if(a<u){s=!1;break}r++}return s}}var de={getScript:function(e,t){var n=!1,i=document.createElement("script");i.src=e,i.onload=i.onreadystatechange=function(){n||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(n=!0,t&&t())},document.body.appendChild(i)},loadScript:function(e,t){if("string"==typeof e){var n=e;(e=[]).push(n)}var i=this;!function e(t,n){i.getScript(t.shift(),(function(){t.length?e(t,n):n&&n()}))}(e,t)},isIE:function(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))},getDate:function(){var e=new Date;return e.getMonth()+"_"+e.getDay()+"_"+e.getHours()+"_"+e.getMinutes()+"_"+e.getSeconds()},startTestVersion:function(e){var t=e.h5?e.h5:{};if(t.lowVersion&&ce(t.lowVersion.v,DWLive.VERSION)){var n=t.errorMsg;m("".concat(n,"V").concat(t.lowVersion.v))}else if(t.newVersion&&ce(t.newVersion.v,DWLive.VERSION)){var i=t.notify;f("".concat(i,"。最新版本为V").concat(t.newVersion.v))}else;},isSupportFlash:function(){var e=!0;if(navigator.appVersion.indexOf("MSIE")>=0)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){e=!1}else navigator.plugins["Shockwave Flash"]||(e=!1);return e},sendAjax:function(e,t,n){$.ajax({url:e,type:"GET",dataType:"jsonp",data:t,xhrFields:{withCredentials:!0},success:function(e){"function"==typeof n?n&&n(e):p("onQuestionnairePublish is undefined")},error:function(e){"function"==typeof n?n({errorCode:1,msg:"request error",result:e}):p("onQuestionnairePublish is undefined")}})},handleTimeoutDomEle:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return'\n        <div id="ccTipsCountDown" class="'.concat(t?"":"has-container-bg",'">\n        <div class="has-bg-img" style="display: ').concat(t?"":"none",'">\n        ').concat(O.timeout()," ").concat(e.day," ").concat(O.day()," ").concat(e.h," ").concat(O.hours()," ").concat(e.m," ").concat(O.monutes()," ").concat(e.s," ").concat(O.seconds(),'\n        </div>\n        <div class="not-bg-img" style="display: ').concat(t?"none":"",'">\n            <span class="timeout">').concat(n?"":O.timeout(),'</span>\n            <div class="not-bg-img-bottom">\n            <div class="time-block">\n                <p>').concat(e.day,'</p>\n                <span>DAY</span>\n            </div>\n            <div class="time-circel">\n                <p></p>\n                <p></p>\n            </div>\n            <div class="time-block">\n                <p>').concat(e.h,'</p>\n                <span>HOUR</span>\n            </div>\n            <div class="time-circel">\n                <p></p>\n                <p></p>\n            </div>\n            <div class="time-block">\n                <p>').concat(e.m,'</p>\n                <span>MIN</span>\n            </div>\n            <div class="time-circel">\n                <p></p>\n                <p></p>\n            </div>\n            <div class="time-block">\n                <p>').concat(e.s,"</p>\n                <span>SEC</span>\n            </div>\n            </div>\n        </div>\n        </div>  \n        ")},formartTime:function(e,t,n){var i=e/86400>99?99:Math.floor(e/86400),r=Math.floor(e%86400/3600),o=Math.floor(e%86400%3600/60),s=Math.floor(e%86400%3600%60),a={day:this.handleTimeSupplement(i),h:this.handleTimeSupplement(r),m:this.handleTimeSupplement(o),s:this.handleTimeSupplement(s)};return this.handleTimeoutDomEle(a,t,n)},handleTimeSupplement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e?e<10?"0"+e:e:"00"},logger:function(e){"string"!=typeof e&&(e=JSON.stringify(e)),DWLive.debug&&console.log("Livesdk: ".concat(e))}},he=n(34),fe=null,pe=function(){function e(){T()(this,e),this.init()}return k()(e,[{key:"isShowCountDown",value:function(e,t,n,i){var o=this;r()("#ccTipsWrap").show(),e?(t>0&&n&&!i&&r()("#ccTipsMsg").addClass("tipsAndCountDown"),r()("#ccTipsMsg").html(n||""),r()("#ccTipsCountDown").html(de.formartTime(t,i,!!n)),function(e,t,n,i){if(!(e<1)){var o=e;fe&&(clearInterval(fe),fe=null),fe=setInterval((function(){if((o=--o)<0)return i&&i(),void clearInterval(fe);r()("#ccTipsCountDown").html(de.formartTime(o,t,!!n))}),1e3)}}(t,i,n,(function(){r()("#ccTipsMsg").removeClass("tipsAndCountDown"),r()("#ccTipsCountDown").hide(),o.setIamge?r()("#ccTipsMsg").html(n||""):r()("#ccTipsMsg").html(n||O.live_waiting())})),window.cc_player_start_countdown&&window.cc_player_start_countdown()):n?(r()("#ccTipsMsg").removeClass("tipsAndCountDown"),r()("#ccTipsCountDown").hide(),r()("#ccTipsMsg").html(n||O.live_waiting())):(r()("#ccTipsMsg").removeClass("tipsAndCountDown"),r()("#ccTipsCountDown").hide(),r()("#ccTipsMsg").html(O.live_waiting()))}},{key:"hideCountDown",value:function(){r()("#ccTipsCountDown").hide()}},{key:"setBgIamge",value:function(e){this.setIamge=!0,r()("#ccTipsWrap").show().css("background-image","url("+e+")")}},{key:"hideTipsMsg",value:function(){r()("#ccTipsMsg").hide().html("")}},{key:"isShowCcTips",value:function(e,t){e?(r()("#ccTipsWrap").show(),r()("#ccTipsMsg").show().html(t)):(r()("#ccTipsWrap").hide(),r()("#ccTipsMsg").hide().html(""))}},{key:"init",value:function(){r()("#ccTips").show().html(he)}}]),e}(),me=(n(35),n(37)),ge="canplay",ve="contextmenu",ye="waiting",_e="play",be="error",we="end",Ee=function(){function e(t,n){T()(this,e),r()("#ccWarmPlayer").html(me).show();var i=t,o=document.getElementById("ccWarmplayer");t.cover&&(o.poster=i.cover),this.autoPlay=new B,this.url=i.video,this.isAuotPlay=!0,this.init(n)}return k()(e,[{key:"init",value:function(e){this.url&&(-1!==this.url.indexOf(".flv")?this.createFlvPlayer("flv"):-1!==this.url.indexOf(".mp4")?this.createFlvPlayer("mp4"):e&&e())}},{key:"createFlvPlayer",value:function(e){var t=this,n=r()("#ccWarmplayer")[0];this.el=r()("#ccWarmplayer")[0],R.a.isSupported()&&(this._fPlayer=R.a.createPlayer({type:e,cors:!0,url:this.url}),this._fPlayer.attachMediaElement(n),this._fPlayer.autoplay=!0,this._fPlayer.load(),this._fPlayer.play().then((function(){t.isAuotPlay=!0})).catch((function(){t.isAuotPlay=!1})),this.initEvent())}},{key:"initEvent",value:function(){var e=this;r()("#ccPlayerWrap").on("click",(function(){window.clickPlayerStartTime=(new Date).getTime(),e.play()})),this._fPlayer.on(R.a.Events.LOADING_COMPLETE,(function(){})),this._fPlayer.on(R.a.Events.ERROR,(function(){window.cc_player_stream_disconnect&&window.cc_player_stream_disconnect(),console.log("播放出现异常")})),this._fPlayer.on(R.a.Events.SCRIPTDATA_ARRIVED,(function(e){console.log("检测到meta信息")})),this._fPlayer.on(R.a.Events.STATISTICS_INFO,(function(){})),this.el.addEventListener(ge,(function(t){window.cc_on_player_init_canplay&&window.cc_on_player_init_canplay(),e.autoPlay.isShow=!1,e.isAuotPlay?e.autoPlay.isShow=!1:e.autoPlay.isShow=!0})),this.el.addEventListener(be,(function(e){window.cc_player_stream_disconnect&&window.cc_player_stream_disconnect()})),this.el.addEventListener(we,(function(e){})),this.el.addEventListener(ye,(function(e){window.cc_player_stream_waiting&&window.cc_player_stream_waiting()})),this.el.addEventListener(_e,(function(e){})),this.el.addEventListener(ve,(function(e){}))}},{key:"play",value:function(){var e=this;this._fPlayer&&this._fPlayer.play().then((function(){e.isAuotPlay=!0,e.autoPlay.isShow=!1})).catch((function(e){console.log("play error",e)}))}},{key:"destroyed",value:function(){r()("#ccWarmPlayer").hide().html(""),this._fPlayer&&(this._fPlayer.unload(),this._fPlayer.destroy(),this._fPlayer.detachMediaElement(),this._fPlayer=null,this.autoPlay.isShow=!1)}}]),e}(),Ae=function(e){return null==e||"undefined"==e||""==e||null==e},Se=function(){var e,t=this,n=0;function i(){t.hideNode()}function r(e){e.className="bullet"}function o(){switch(e.type){case"text":i=document.createElement("div"),o=e.css||{color:"#000000",font:"Arial",size:16},i.innerHTML='<span style="position: relative;color:'+o.color+";font-family: "+o.font+";font-size: "+o.size+';"   >'+(e.content||"").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\n/g,"<br/>").replace(/\[em_([0-9]*)\]/g,'<img src="//static.csslcloud.net/img/em_mobile/$1.gif" border="0" />').replace(/\[em2_([0-9]*)\]/g,'<img src="//static.csslcloud.net/img/em2_mobile/$1.png" border="0" />').replace(/\[uri_(\S{10,200})\]/g,'<a target="_blank" style="color: #2f53ff" href="$1">$1</a>')+"</span>",i.id="bullet_"+t.index,r(i),t.container.appendChild(i);break;case"image":(n=document.createElement("img")).src=e.src,n.id="bullet_"+t.index,r(n),t.container.appendChild(n)}var n,i,o;t.node=document.getElementById("bullet_"+t.index)}this.hideNode=function(){void 0!==t.node&&(t.node.className="",t.node.style.display="none",t.container.removeChild(t.node))},this.setPosition=function(e,n){void 0!==t.node&&(t.node=document.getElementById("bullet_"+t.index),Ae(t.node)||(t.x(e,t.index),t.y(n),t.node.className="bullet activeBarrage",document.attachEvent?(t.node.attachEvent("webkitTransitionEnd",i),t.node.attachEvent("transitionEnd",i),t.node.attachEvent("mozTransition",i),t.node.attachEvent("msTransitionEnd",i),t.node.attachEvent("oTransitionEnd",i)):(t.node.addEventListener("webkitTransitionEnd",i),t.node.addEventListener("transitionEnd",i),t.node.addEventListener("mozTransition",i),t.node.addEventListener("msTransitionEnd",i),t.node.addEventListener("oTransitionEnd",i))))},this.x=function(e){n=e;document.getElementById("bullet_"+(t.index-4))},this.y=function(e){e,t.node.style.top=e+"px"},this.width=function(){return t.node.offsetWidth},this.height=function(){return t.node.offsetHeight+5},this.isRightAdd=function(){return!Ae(t.node)&&t.node.offsetLeft+t.width()<=n},this.init=function(n,i,r){e=n,t.container=i,this.index=r,o()}},xe=4,Te=function(){var e,t,n=[],i=[],r=-1,o=this,s=-1,a=0,u=[],l=4;function c(t,n){var i=new Se;i.init(t,e,a);var r=n,s=i.height()*r;i.setPosition(o.clienW,s),r,a+=1}this.init=function(a){if(xe=a,void 0!==(e=document.querySelector("#ccBarrage"))&&"null"!=typeof e){a&&(l=a);for(var d=0;d<l;d++)u.push([]);n=[],i=[],r=-1,this.startToRun(),function(){if(-1!=s)return;s=setInterval((function(){if(n.length>=xe?(i=n.slice(0,xe),n.splice(0,xe)):(i=n.slice(0,n.length),n.splice(0,n.length)),!((i=i).length<1))for(var e=0;e<xe;e++){var t=i[e];t&&c(t,e)}}),3e3)}(),function(){t=document.createElement("style");var e=document.head||document.getElementsByTagName("head")[0];t.type="text/css",e.appendChild(t)}(),function(e){if(void 0===t)return;function n(){try{t.stylesheet.cssText=e}catch(e){alert("css添加过多"+e)}}if(t.stylesheet)t.styleSheet.disabled?setTimeout(n,10):n();else{var i=document.createTextNode(e);t.appendChild(i)}}(".bullet{margin:0px;padding:0px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;word-break: break-all;max-width: 600px;position:absolute;left:"+o.clienW+"px;transition:left 10s;color:#FFFFFFwhite-space: nowrap;-webkit-transition: left 10s linear 0s;-moz-transition: left 10s linear 0s;-ms-transition: left 10s linear 0s;-o-transition: left 10s linear 0s;}\n.activeBarrage{left:-"+o.clienW+"px;}")}},this.close=function(){-1!=s&&clearInterval(s),-1!=r&&clearInterval(r),n=[],i=[]},this.isShow=function(t){e&&(e.style.display=t?"block":"none")},this.push=function(e){n.length>5e3||Ae(e.type)||n.push(e)},this.startToRun=function(){e&&(e.style.display="block",this.clienW=e.offsetWidth>1200?e.offsetWidth:1200,this.clienH=e.offsetHeight)}},Le=(n(38),n(40)),ke=function(){function e(t){T()(this,e),this.videoInfo=t,this.ccPlayerWrap=r()("#ccPlayer"),this.positionMap={1:{top:"0",right:"0"},2:{bottom:"0",right:"0"},3:{top:"0",left:"0"},4:{bottom:"0",left:"0"}},this.initLogoIsShow()}return k()(e,[{key:"initLogoIsShow",value:function(){this.videoInfo.logoUrl&&"string"==typeof this.videoInfo.logoUrl&&(this.ccPlayerWrap.append(Le),this.getLogoDOMNode())}},{key:"setLogoPosition",value:function(){var e=this.videoInfo.logoPosition;return!e||"number"!=typeof e||e<1||e>4?this.positionMap[1]:this.positionMap[e]}},{key:"getLogoDOMNode",value:function(){this.ccVideoLogo=r()("#ccVideoLogo"),this.ccVideoLogo.css(this.setLogoPosition()),this.ccVideoLogoImg=r()("#ccVideoLogoImg"),this.ccVideoLogoImg.attr("src",this.videoInfo.logoUrl),this.ccVideoLogo.css("display","block")}}]),e}(),Ce=0,Re=1,De=3,Ie=1e3,Oe={isSupported:R.a.isSupported(),isMarqueeError:!1,tpl:20,sessionid:"",init:function(e){var t=this;return u()(s.a.mark((function n(){var i;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e&&!t.isMarqueeError){n.next=2;break}return n.abrupt("return");case 2:return t.tips=new pe,t.liveInfo=e,t.liveInfo.useTrack=!0,e&&!1===e.useTrack&&(t.liveInfo.useTrack=!1),t.liveRoomIsBan=e.isBan,t.tpl=e.tpl||20,t.sessionid=e.sessionid,t.warmPlayer&&(t.warmPlayer.destroyed(),t.warmPlayer=null),t.flvPlayer&&(t.flvPlayer.destroyed(),t.flvPlayer=null),t.marquee=new le,t.flvPlayer=new oe(r()("#ccVideoPlayer")[0]),t.clearEndLiveTimer(),t.initDispatcher(),t.liveInfo&&t.liveInfo.logoUrl&&t.initLogo(),t.initBarrage(),n.next=19,t.loadLiveStatus(e);case 19:if(i=n.sent,t.initReport(),!t.liveRoomIsBan){n.next=24;break}return t.banLive(),n.abrupt("return");case 24:null!=e&&e.isShowFullScreen&&t.setShowFullScreenBtn(null==e?void 0:e.isShowFullScreen),n.t0=i,n.next=n.t0===Ce?28:n.t0===Re?30:n.t0===De?32:34;break;case 28:return t.initLiveUI(e),n.abrupt("break",36);case 30:return t.loadLivePlayHosts(e),n.abrupt("break",36);case 32:return t.banLive(),n.abrupt("break",36);case 34:return t.initLiveError(),n.abrupt("break",36);case 36:case"end":return n.stop()}}),n)})))()},initBarrage:function(){this.barrage=new Te,this.barrage.init(4),this.barrage.startToRun(),this.liveInfo.barrage?this.barrage.isShow(!0):this.barrage.isShow(!1),this.flvPlayer&&(this.flvPlayer.isOpenBarrge=this.liveInfo.barrage)},initDispatcher:function(){var e=this;j.on(N.CHANGE_LINE,(function(t){e.flvPlayer&&e.flvPlayer.changeLine(t)})),j.on(N.SET_VOLUME,(function(t){e.flvPlayer&&(e.flvPlayer.volume=t)})),j.on(N.SHOW_BARRAGE,(function(){e.barrage.isShow(!0)})),j.on(N.HIDE_BARRAGE,(function(){e.barrage.isShow(!1)}))},initLogo:function(){new ke(this.liveInfo)},initReport:function(){this.liveId?(console.log("初始化report"),this.reportLog=new ae({userId:this.liveInfo.userid,roomId:this.liveInfo.roomid,viewerId:this.liveInfo.viewerid,upId:this.liveInfo.upid,liveId:this.liveId},0,1,r()("#ccVideoPlayer")[0],!0)):console.log("没有liveID")},loadLiveStatus:function(e){var t=this;return u()(s.a.mark((function n(){var i,r;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t,n.prev=1,n.next=4,E({accountId:e.userid,roomId:e.roomid,sessionId:e.sessionid,tpl:i.tpl});case 4:if(!(r=n.sent).success||!r.data.live){n.next=11;break}return t.liveId=r.data.live.id,console.log("liveId",t.liveId),n.abrupt("return",r.data.live.status);case 11:return n.abrupt("return",liveStatus.LIVE_ERROR);case 12:n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),console.log("getLiveStatus:",n.t0),n.abrupt("return",Ie);case 18:case"end":return n.stop()}}),n,null,[[1,14]])})))()},loadLivePlayHosts:function(e){var t=this;return u()(s.a.mark((function n(){var i,r,o;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t,r={accountId:e.userid,roomId:e.roomid,types:"flv",sessionId:e.sessionid,platform:1,terminal:0,tpl:i.tpl},n.prev=2,n.next=5,w(r);case 5:(o=n.sent).success?o.data.stream&&o.data.stream.length>0&&(o.data.stream[0].docDelayTime&&window.cc_doc_delaytime&&window.cc_doc_delaytime(o.data.stream[0].docDelayTime),i.initVideoPlayer(o.data.stream)):t.initLiveError(),n.next=16;break;case 9:if(n.prev=9,n.t0=n.catch(2),console.log("loadLivePlayHosts error:",n.t0),!(n.t0.toString().indexOf("then")>1)){n.next=15;break}return n.abrupt("return");case 15:t.initLiveError();case 16:case"end":return n.stop()}}),n,null,[[2,9]])})))()},initLiveError:function(){try{var e={event:"play",code:400,rid:(new Date).getTime()};ccTrack.tragger(e)}catch(e){}this.tips.isShowCcTips(!0,O.live_error())},initLiveUI:function(e){e.bacgroundImageUri&&this.tips.setBgIamge(e.bacgroundImageUri),e.countDownTime=parseInt(e.countDownTime),e.countDownTime&&e.backgroundHint?this.tips.isShowCountDown(!0,e.countDownTime,e.backgroundHint,!!e.bacgroundImageUri):e.countDownTime?this.tips.isShowCountDown(!0,e.countDownTime,null,!!e.bacgroundImageUri):e.warmVideoId&&"2BBA984E86119800"!==e.warmVideoId&&"702D67DB21E0D33C"!==e.warmVideoId?(this.tips.isShowCcTips(!1),this.initWarmVideo()):e.backgroundHint?this.tips.isShowCcTips(!0,e.backgroundHint):e.bacgroundImageUri||this.tips.isShowCcTips(!0,O.live_waiting())},initWarmVideo:function(){var e=this;return u()(s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loadWarmInfoV2();case 1:case"end":return t.stop()}}),t)})))()},loadWarmInfoV2:function(){var e=this,t=this,n={accountId:t.liveInfo.userid,roomId:t.liveInfo.roomid,deviceType:"h5-pc",deviceVersion:"3.8.7",terminal:3,tpl:t.tpl};S(n,{type:"GET",dataType:"JSON",token:t.sessionid,success:function(e){if(e){var n=JSON.parse(e);if(n.success||t.tips.isShowCcTips(!0,O.warm_url_error()),n.data){var i={video:n.data.video[0].primary,cover:n.data.cover};t.warmPlayer=new Ee(i,(function(){t.tips.isShowCcTips(!0,O.warm_player_error())}))}}},fail:function(t){e.initLiveError()}})},loadWarmInfo:function(){var e=this;return u()(s.a.mark((function t(){var n,i,r,o,a,u,l,c,d;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={roomid:(n=e).liveInfo.roomid,userid:n.liveInfo.userid,iswarmvideo:1,tpl:n.tpl},t.prev=2,r=window.location.protocol,t.next=6,A(i);case 6:if(o=t.sent,!((a=o.childNodes[0]).childNodes.length>0)){t.next=22;break}if(u=a.childNodes[0],l=u.getAttribute("isValid"),c=u.getAttribute("pcfToken"),l&&!c){t.next=14;break}return t.abrupt("return",!1);case 14:if(!(u.childNodes.length>0)){t.next=20;break}return d=u.firstChild.firstChild,e._playUrl="http:"===r?d.getAttribute("playurl"):d.getAttribute("secureplayurl"),t.abrupt("return",e._playUrl);case 20:return console.log("getWarmVideo: error"),t.abrupt("return",!1);case 22:t.next=27;break;case 24:return t.prev=24,t.t0=t.catch(2),t.abrupt("return",!1);case 27:case"end":return t.stop()}}),t,null,[[2,24]])})))()},initVideoPlayer:function(e){this.flvPlayer&&this.flvPlayer.initPlayerInfo(e,this.liveInfo.isLowDelay,this.liveInfo.useTrack)},setVolume:function(e){this.flvPlayer.volume=e},banLive:function(){this.flvPlayer&&(this.flvPlayer.destroyed(),this.flvPlayer=null),this.tips.isShowCcTips(!0,O.live_ban())},switchFullScreen:function(e){this.flvPlayer&&(this.flvPlayer.isFullScreen=e)},setShowFullScreenBtn:function(e){this.flvPlayer&&(this.flvPlayer.isShowFullScreen=e)},openBarrage:function(e){this.flvPlayer.isOpenBarrge=e,e?this.barrage.isShow(!0):this.barrage.isShow(!1)},sendBarrage:function(e){this.barrage.push(e)},openMarquee:function(e){var t=this;this.isInitMarquee?this.marquee.showMarquee():(this.isInitMarquee=!0,this.marquee.init(e),this.marquee.detectionMarquee((function(){t.flvPlayer&&(t.flvPlayer.destroyed(),t.flvPlayer=null),t.isMarqueeError=!0,t.tips.isShowCcTips(!0,O.live_detection_tips())})))},closeMarquee:function(){this.marquee.closeMarquee()},changeLine:function(e,t){this.flvPlayer&&this.flvPlayer.changeLine(e,t)},changeStream:function(e,t){this.flvPlayer&&this.flvPlayer.changeStream(e,t)},getStreamIndex:function(){return this.flvPlayer.videoStream},lines:function(){return this.flvPlayer.lines},hostIndex:function(){return this.flvPlayer.hostIndex},showControl:function(e){this.flvPlayer.showControl=e},destroy:function(){this.warmPlayer&&(this.warmPlayer.destroyed(),this.warmPlayer=null),this.flvPlayer&&(this.flvPlayer.destroyed(),this.flvPlayer=null),this.clearEndLiveTimer(),this.reportLog&&this.reportLog.stopTimer()},endLive:function(e,t){var n=this;if(!this.isMarqueeError){this.flvPlayer&&(this.flvPlayer.destroyed(),this.flvPlayer=null),e=JSON.parse(e);var i=null;"assistant"===t&&(i=e.msg.tips.assistant),"stu"===t&&(i=e.msg.tips.stu),"host"===t&&(i=e.msg.tips.host),"publisher"===t&&(i=e.msg.tips.publisher),e&&e.msg&&e.msg.tips&&e.msg.tips.pool&&e.msg.tips.pool[i]?this.tips.isShowCcTips(!0,e.msg.tips.pool[i]):this.tips.isShowCcTips(!0,O.live_end()),this.tips.hideCountDown(),this.clearEndLiveTimer(),this.endLiveTimer=setTimeout((function(){n.tips.isShowCcTips(!1),n.initEndLive()}),15e3)}},clearEndLiveTimer:function(){this.endLiveTimer&&(clearTimeout(this.endLiveTimer),this.endLiveTimer=null)},initEndLive:function(){this.liveInfo.warmVideoId&&"2BBA984E86119800"!==this.liveInfo.warmVideoId&&"702D67DB21E0D33C"!==this.liveInfo.warmVideoId?this.initWarmVideo():(this.liveInfo.bacgroundImageUri?this.tips.setBgIamge(this.liveInfo.bacgroundImageUri):this.tips.isShowCcTips(!0,O.live_waiting()),this.liveInfo.backgroundHint&&this.tips.isShowCcTips(!0,this.liveInfo.backgroundHint))}},Pe=n(41),Be={isSuppoted:Oe.isSupported,configData:null,config:function(e){this.configData=e,this.init(),Oe.init(e)},init:function(){r()("#livePlayer").html(Pe)},startLive:function(){Oe.init(this.configData)},endLive:function(e,t){Oe.endLive(e,t)},destroy:function(){Oe.destroy()},banLive:function(){this.configData.isBan=!0,Oe.init(this.configData)},unBanLive:function(){this.configData.isBan=!1,Oe.init(this.configData)},setMuted:function(e){Oe.setVolume(e?0:1)},get lines(){return Oe.lines()},get hostIndex(){return Oe.hostIndex()},changeLines:function(e,t){e=parseInt(e);Oe.changeLine(e,t)},changeStream:function(e,t){Oe.changeStream(e,t)},get streamIndex(){return Oe.getStreamIndex()},openBarrage:function(e){Oe.openBarrage(e)},closeBarrage:function(){Oe.openBarrage(!1)},sendBarrage:function(e){Oe.sendBarrage(e)},openMarquee:function(e){Oe.openMarquee(e)},closeMarquee:function(){Oe.closeMarquee()},showControl:function(e){Oe.showControl(e)},setVolume:function(e){Oe.setVolume(e)},switchFullScreen:function(e){Oe.switchFullScreen(e)},version:function(){return"HDLiveVideo  v1.0.0"},setShowFullScreenBtn:function(e){Oe.setShowFullScreenBtn(e)}},Me={isSuppoted:function(){return Be.isSuppoted},player:function(){return Be},config:function(e){Be.config(e)}};window.hdPcLivePlayer=Me}]);