From 955364a5fc84bfbdd8178903cd9d61efac707064 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 9 Nov 2020 13:48:44 +0100 Subject: [PATCH] Install OvenMediaEngine --- docs/Server-docker.xml | 100 ++++++++++++++++++ docs/docker-compose.yml | 30 +++++- docs/ghostream.example.yml | 2 +- internal/config/config.go | 2 +- web/static/ovenplayer/ovenplayer.js | 2 + web/static/ovenplayer/ovenplayer.js.LICENSE | 1 + .../ovenplayer.provider.DashProvider-0.9.0.js | 2 + ...yer.provider.DashProvider-0.9.0.js.LICENSE | 1 + ...provider.Html5~ovenplaye~2ec193ac-0.9.0.js | 2 + ....Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE | 1 + .../ovenplayer.provider.HlsProvider-0.9.0.js | 2 + ...ayer.provider.HlsProvider-0.9.0.js.LICENSE | 1 + ...venplayer.provider.WebRTCProvider-0.9.0.js | 1 + ...r.provider.WebRTCProvider-0.9.0.js.LICENSE | 1 + web/template/player.html | 60 ++++++++++- 15 files changed, 201 insertions(+), 7 deletions(-) create mode 100644 docs/Server-docker.xml create mode 100644 web/static/ovenplayer/ovenplayer.js create mode 100644 web/static/ovenplayer/ovenplayer.js.LICENSE create mode 100644 web/static/ovenplayer/ovenplayer.provider.DashProvider-0.9.0.js create mode 100644 web/static/ovenplayer/ovenplayer.provider.DashProvider-0.9.0.js.LICENSE create mode 100644 web/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js create mode 100644 web/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE create mode 100644 web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js create mode 100644 web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js.LICENSE create mode 100644 web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js create mode 100644 web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE diff --git a/docs/Server-docker.xml b/docs/Server-docker.xml new file mode 100644 index 0000000..e31acf2 --- /dev/null +++ b/docs/Server-docker.xml @@ -0,0 +1,100 @@ + + + + OvenMediaEngine + origin + * + + + + + 1915 + + + + + + 3333 + + + *:10006-10010/udp + + + + 80 + + + + + + + default + + + * + + + + + app + live + + + opus_only + + + + + BYPASS + + + + + + + ${OriginStreamName} + + opus_only + + + + ${OriginStreamName}_bypass + + BYPASS + + + + + + true + + + + 2 + + 30000 + + + 5 + 2 + + * + + + + + + + + \ No newline at end of file diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index 2d1fbb9..990045c 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -26,11 +26,10 @@ services: - "--certificatesResolvers.mytlschallenge.acme.httpChallenge.entryPoint=web" ghostream: - build: .. + build: https://gitlab.crans.org/nounous/ghostream.git restart: always ports: - 9710:9710/udp - - 10000-11000:10000-11000/udp volumes: - ./ghostream_data:/etc/ghostream:ro labels: @@ -40,3 +39,30 @@ services: - "traefik.http.routers.ghostream.tls.certresolver=mytlschallenge" - "traefik.http.routers.ghostream.service=ghostream" - "traefik.http.services.ghostream.loadbalancer.server.port=8080" + + ovenmediaengine: + image: airensoft/ovenmediaengine:0.10.8 + restart: always + ports: + # WebRTC ICE + - 10006-10010:10006-10010/udp + volumes: + - ./ovenmediaengine_data/conf/Server-docker.xml:/opt/ovenmediaengine/bin/origin_conf/Server.xml:ro + labels: + - "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https" + + - "traefik.http.routers.ovenmediaengine.rule=Host(`stream.example.com`) && PathPrefix(`/app/`)" + - "traefik.http.routers.ovenmediaengine.priority=101" + - "traefik.http.routers.ovenmediaengine.entrypoints=websecure" + - "traefik.http.routers.ovenmediaengine.tls.certresolver=mytlschallenge" + - "traefik.http.services.ovenmediaengine.loadbalancer.server.port=3333" + - "traefik.http.routers.ovenmediaengine.service=ovenmediaengine" + - "traefik.http.routers.ovenmediaengine.middlewares=sslheader" + + - "traefik.http.routers.ovenmediaengine-hls.rule=Host(`stream.example.com`) && Path(`/app/{app_name:.*}/{filename:.*}.{ext:(m3u8|mpd|ts)}`)" + - "traefik.http.routers.ovenmediaengine-hls.priority=102" + - "traefik.http.routers.ovenmediaengine-hls.entrypoints=websecure" + - "traefik.http.routers.ovenmediaengine-hls.tls.certresolver=mytlschallenge" + - "traefik.http.services.ovenmediaengine-hls.loadbalancer.server.port=80" + - "traefik.http.routers.ovenmediaengine-hls.service=ovenmediaengine-hls" + - "traefik.http.routers.ovenmediaengine-hls.middlewares=sslheader" diff --git a/docs/ghostream.example.yml b/docs/ghostream.example.yml index 1402910..9eac29f 100644 --- a/docs/ghostream.example.yml +++ b/docs/ghostream.example.yml @@ -164,7 +164,7 @@ web: webrtc: # If you disable webrtc module, the web client won't be able to play streams. # - #enabled: true + #enabled: false # UDP port range used to stream # This range must be opened in your firewall. diff --git a/internal/config/config.go b/internal/config/config.go index 729e6bb..af0c042 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -77,7 +77,7 @@ func New() *Config { ViewersCounterRefreshPeriod: 20000, }, WebRTC: webrtc.Options{ - Enabled: true, + Enabled: false, MaxPortUDP: 11000, MinPortUDP: 10000, STUNServers: []string{"stun:stun.l.google.com:19302"}, diff --git a/web/static/ovenplayer/ovenplayer.js b/web/static/ovenplayer/ovenplayer.js new file mode 100644 index 0000000..7e88918 --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.js @@ -0,0 +1,2 @@ +/*! For license information please see ovenplayer.js.LICENSE */ +!function(t){function e(e){for(var A,r,o=e[0],i=e[1],s=0,u=[];sGet Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"Can not load due to dashjs. Please check the lastest version.",reason:"dash.js version is old. Please check the lastest."},104:{code:104,message:"Can not load due to google ima for Ads. ",reason:"Please check the google ima library."},105:{code:105,message:"Can not find the dashjs. Please check the dashjs.",reason:"Not found dashjs."},106:{code:106,message:"Can not find the hlsjs. Please check the hlsjs.",reason:"Not found hlsjs."},300:{code:300,message:"Can not play due to unknown reasons.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"Fetching process aborted by user.",reason:"Fetching process aborted by user."},302:{code:302,message:"Some of the media could not be downloaded due to a network error.",reason:"Error occurred when downloading."},303:{code:303,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"Error occurred when decoding."},304:{code:304,message:"Media playback has been canceled. It looks like your media is corrupted or your browser does not support the features your media uses.",reason:"Media playback not supported."},305:{code:305,message:"Can not load captions due to unknown reasons.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server cannot or will not process the request."},307:{code:307,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server refused the request."},308:{code:308,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server do not accept the request."},501:{code:501,message:"Connection with low-latency(OME) server failed.",reason:"WebSocket connection failed."},502:{code:502,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setLocalDescription failed."},510:{code:510,message:"Network connection is unstable. Check the network connection.",reason:"Network is slow."},511:{code:511,message:"Connection with low-latency(OME) terminated unexpectedly.",reason:"Unexpected end of connection."}}}},{lang:"ko",ui:{context:"오븐플레이어에 관하여",controls:{live:"라이브",low_latency_live:"초저지연 라이브",low_latency_p2p:"초저지연 P2P"},playlist:"플레이리스트",setting:{title:"설정",speed:"재생 속도",source:"소스",quality:"품질",caption:"자막",display:"표시"}},api:{message:{muted_play:"눌러서 소리 켜기"},error:{100:{code:100,message:"알 수 없는 이유로 로드 할 수 없습니다.",reason:"알 수 없는 이유로 로드 할 수 없습니다."},101:{code:101,message:"지원되는 미디어를 찾지 못해 로드 할 수 없습니다.",reason:"Can not load due to playable media not found."},102:{code:102,message:"플레시 로드가 중단 되었습니다.
Get Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"DashJS로 인해 로드 할 수 없습니다. dashjs 버전을 확인해주세요.",reason:"dash.js version is old. Please check the lastest."},104:{code:104,message:"Google IMA 라이브러리가 없어 로드 할 수 없습니다.",reason:"Please check the google ima library."},105:{code:105,message:"DashJS 라이브러리가 없어 로드 할 수 없습니다.",reason:"Not found dashjs."},106:{code:106,message:"HLSJS 라이브러리가 없어 로드 할 수 없습니다.",reason:"Not found hlsjs."},300:{code:300,message:"알 수 없는 이유로 재생할 수 없습니다.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"사용자에 의한 프로세스 중단.",reason:"Fetching process aborted by user."},302:{code:302,message:"네트워크 오류로 인해 일부 미디어를 다운로드 할 수 없습니다.",reason:"Error occurred when downloading."},303:{code:303,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"Error occurred when decoding."},304:{code:304,message:"미디어 재생이 취소되었습니다. 미디어가 손상되었거나 브라우저가 미디어에서 사용하는 기능을 지원하지 않는 것 같습니다.",reason:"Media playback not supported."},305:{code:305,message:"알 수 없는 이유로 자막을 로드 할 수 없습니다.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server cannot or will not process the request."},307:{code:307,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server refused the request."},308:{code:308,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server do not accept the request."},501:{code:501,message:"웹소켓 연결 실패",reason:"WebSocket connection failed."},502:{code:502,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC setLocalDescription failed."},510:{code:510,message:"네트워크 연결이 불안정합니다. 네트워크 연결을 확인하십시오.",reason:"Network is slow."}}}}]},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,A){var n=A(2);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var A=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=A)},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(A(139)),r=i(A(6)),o=i(A(7));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,A,i,s,a,u,l){var c=o.default.isElement(t)?(0,r.default)(t):t,f=void 0,g={},p=null,d={};d.data=i;var y=function(t){var e=document.createElement("div");return e.innerHTML=t,f=(0,r.default)(e.firstChild),e.firstChild};return A&&A.systemText&&(p=A.systemText.ui),l?c.replace(y(n.default[e+"Template"](p,i))):c.append(y(n.default[e+"Template"](p,i))),a&&a(f,d),Object.keys(s).forEach(function(t){var e=t.split(" "),A=e[0].replace(/ /gi,""),n=e[1].replace(/ /gi,""),o="";if(o="document"===n||"window"===n||"body"===n?(0,r.default)(n):f.find(n)||(f.hasClass(n.replace(".",""))?f:null),!(A&&n&&o))return!1;var i=Object.keys(g).length++,a=function(e){return s[t](e,f,d)};g[i]={name:A,target:n,callback:a};var u=o.get().length;if(u>1)for(var l=o.get(),c=0;c1)for(var o=A.get(),i=0;i1?A:A[0]},o="";return(o=n.default.isElement(e)||n.default.every(e,function(t){return n.default.isElement(t)})?e:"document"===e?document:"window"===e?window:r(document,e))?(A.show=function(){o.style.display="block"},A.hide=function(){o.style.display="none"},A.addClass=function(t){o.classList?o.classList.add(t):-1===o.className.split(" ").indexOf(t)&&(o.className+=" "+t)},A.after=function(t){o.insertAdjacentHTML("afterend",t)},A.append=function(t){o.appendChild(t)},A.before=function(t){o.insertAdjacentHTML("beforebegin",t)},A.children=function(){return o.children||[]},A.contains=function(t){return o!==t&&o.contains(t)},A.empty=function(){o.innerHTML=""},A.find=function(e){return t(r(o,e))},A.css=function(t,e){if(!e)return o.style[t];o.length>0?o.forEach(function(A){A.style[t]=e}):o.style[t]=e},A.removeClass=function(t){o.classList?o.classList.remove(t):o.className=o.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},A.removeAttribute=function(t){o.removeAttribute(t)},A.text=function(t){if(void 0===t)return o.textContent;o.textContent=t},A.html=function(t){o.innerHTML=t},A.hasClass=function(t){return o.classList?o.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(o.name)},A.is=function(t){return o===t},A.offset=function(){var t=o.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},A.width=function(){return o.clientWidth},A.height=function(){return o.clientHeight},A.attr=function(t){return o.getAttribute(t)},A.replace=function(t){o.replaceWith(t)},A.remove=function(){o.length>1?o.parentElement.removeChild(o):o.remove()},A.removeChild=function(t){if(t)o.removeChild(t);else for(;o.hasChildNodes();)o.removeChild(o.firstChild)},A.get=function(){return o},A.closest=function(e){var A=o.closest(e);return A?t(A):null},A):null}},function(t,e,A){"use strict";(function(t,A){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(){var o="object"==("undefined"==typeof self?"undefined":r(self))&&self.self===self&&self||"object"==(void 0===t?"undefined":r(t))&&t.global===t&&t||this||{},i=o._,s=Array.prototype,a=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,l=s.push,c=s.slice,f=a.toString,g=a.hasOwnProperty,p=Array.isArray,d=Object.keys,y=Object.create,E=function(){},w=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};e.nodeType?o._=w:(!A.nodeType&&A.exports&&(e=A.exports=w),e._=w),w.VERSION="1.9.1";var h,I=function(t,e,A){if(void 0===e)return t;switch(null==A?3:A){case 1:return function(A){return t.call(e,A)};case 3:return function(A,n,r){return t.call(e,A,n,r)};case 4:return function(A,n,r,o){return t.call(e,A,n,r,o)}}return function(){return t.apply(e,arguments)}},M=function(t,e,A){return w.iteratee!==h?w.iteratee(t,e):null==t?w.identity:w.isFunction(t)?I(t,e,A):w.isObject(t)&&!w.isArray(t)?w.matcher(t):w.property(t)};w.iteratee=h=function(t,e){return M(t,e,1/0)};var B=function(t,e){return e=null==e?t.length-1:+e,function(){for(var A=Math.max(arguments.length-e,0),n=Array(A),r=0;r":">",'"':""","'":"'","`":"`"},Z=w.invert(_),H=function(t){var e=function(e){return t[e]},A="(?:"+w.keys(t).join("|")+")",n=RegExp(A),r=RegExp(A,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(r,e):t}};w.escape=H(_),w.unescape=H(Z),w.result=function(t,e,A){w.isArray(e)||(e=[e]);var n=e.length;if(!n)return w.isFunction(A)?A.call(t):A;for(var r=0;r/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},X=/\\|'|\r|\n|\u2028|\u2029/g,q=function(t){return"\\"+K[t]};w.template=function(t,e,A){!e&&A&&(e=A),e=w.defaults({},e,w.templateSettings);var n,r=RegExp([(e.escape||V).source,(e.interpolate||V).source,(e.evaluate||V).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,function(e,A,n,r,s){return i+=t.slice(o,s).replace(X,q),o=s+e.length,A?i+="'+\n((__t=("+A+"))==null?'':_.escape(__t))+\n'":n?i+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(i+="';\n"+r+"\n__p+='"),e}),i+="';\n",e.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{n=new Function(e.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(t){return n.call(this,t,w)},a=e.variable||"obj";return s.source="function("+a+"){\n"+i+"}",s},w.chain=function(t){var e=w(t);return e._chain=!0,e};var $=function(t,e){return t._chain?w(e).chain():e};w.mixin=function(t){return w.each(w.functions(t),function(e){var A=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),$(this,A.apply(w,t))}}),w},w.mixin(w),w.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=s[t];w.prototype[t]=function(){var A=this._wrapped;return e.apply(A,arguments),"shift"!==t&&"splice"!==t||0!==A.length||delete A[0],$(this,A)}}),w.each(["concat","join","slice"],function(t){var e=s[t];w.prototype[t]=function(){return $(this,e.apply(this._wrapped,arguments))}}),w.prototype.value=function(){return this._wrapped},w.prototype.valueOf=w.prototype.toJSON=w.prototype.value,w.prototype.toString=function(){return String(this._wrapped)},void 0===(n=function(){return w}.apply(e,[]))||(A.exports=n)}()}).call(this,A(65),A(67)(t))},function(t,e,A){var n=A(53)("wks"),r=A(30),o=A(4).Symbol,i="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:r)("Symbol."+t))}).store=n},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,A){var n=A(24),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e,A){var n=A(3),r=A(110),o=A(48),i=Object.defineProperty;e.f=A(12)?Object.defineProperty:function(t,e,A){if(n(t),e=o(e,!0),n(A),r)try{return i(t,e,A)}catch(t){}if("get"in A||"set"in A)throw TypeError("Accessors not supported!");return"value"in A&&(t[e]=A.value),t}},function(t,e,A){t.exports=!A(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractExtension=void 0,e.trim=function(t){return t?t.replace(/^\s+|\s+$/g,""):""},e.naturalHms=function(t){var e=parseInt(t,10);if(!t)return"00:00";var A=Math.floor(e/3600),n=Math.floor((e-3600*A)/60),r=e-3600*A-60*n;n<10&&(n="0"+n);r<10&&(r="0"+r);return A>0?A+":"+n+":"+r:n+":"+r},e.hmsToSecond=function(t,e){if(!t)return 0;if(n.default.isNumber(t)&&!n.default.isNaN(t))return t;var A=(t=t.replace(",",".")).split(":"),r=A.length,o=0;if("s"===t.slice(-1))o=parseFloat(t);else if("m"===t.slice(-1))o=60*parseFloat(t);else if("h"===t.slice(-1))o=3600*parseFloat(t);else if(r>1){var i=r-1;4===r&&(e&&(o=parseFloat(A[i])/e),i-=1),o+=parseFloat(A[i]),o+=60*parseFloat(A[i-1]),r>=3&&(o+=3600*parseFloat(A[i-2]))}else o=parseFloat(t);if(n.default.isNaN(o))return 0;return o};var n=function(t){return t&&t.__esModule?t:{default:t}}(A(7));e.extractExtension=function(t){if(!t||"rtmp"==t.substr(0,4))return"";var e=function(t){var e="";return/[(,]format=mpd-/i.test(t)?e="mpd":/[(,]format=m3u8-/i.test(t)&&(e="m3u8"),e}(t);return e||((t=t.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?t.substr(t.lastIndexOf(".")+1,t.length).toLowerCase():"")}},function(t,e,A){var n=A(11),r=A(29);t.exports=A(12)?function(t,e,A){return n.f(t,e,r(1,A))}:function(t,e,A){return t[e]=A,t}},function(t,e){var A={}.hasOwnProperty;t.exports=function(t,e){return A.call(t,e)}},function(t,e,A){var n=A(33);t.exports=function(t){return Object(n(t))}},function(t,e,A){var n=A(89),r=A(33);t.exports=function(t){return n(r(t))}},function(t,e,A){var n=A(0),r=A(28),o=A(9);t.exports=function(t,e){var A=(r.Object||{})[t]||Object[t],i={};i[t]=e(A),n(n.S+n.F*o(function(){A(1)}),"Object",i)}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(7));var r=[];e.default=function(){var t={},e=function(){for(var t=0;tA;)r[A]=e[A++];return r},Dt=function(t,e,A){U(t,e,{get:function(){return this._d[A]}})},Nt=function(t){var e,A,n,r,o,i,s=B(t),a=arguments.length,l=a>1?arguments[1]:void 0,c=void 0!==l,f=L(s);if(void 0!=f&&!v(f)){for(i=f.call(s),n=[],e=0;!(o=i.next()).done;e++)n.push(o.value);s=n}for(c&&a>2&&(l=u(l,arguments[2],2)),e=0,A=d(s.length),r=Ct(this,A);A>e;e++)r[e]=c?l(s[e],e):s[e];return r},Tt=function(){for(var t=0,e=arguments.length,A=Ct(this,e);e>t;)A[t]=arguments[t++];return A},xt=!!_&&o(function(){gt.call(new _(1))}),St=function(){return gt.apply(xt?ct.call(mt(this)):mt(this),arguments)},Yt={copyWithin:function(t,e){return j.call(mt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return q(mt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(mt(this),arguments)},filter:function(t){return Lt(this,K(mt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(mt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(mt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){V(mt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return At(mt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(mt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ut.apply(mt(this),arguments)},lastIndexOf:function(t){return it.apply(mt(this),arguments)},map:function(t){return Mt(mt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(mt(this),arguments)},reduceRight:function(t){return at.apply(mt(this),arguments)},reverse:function(){for(var t,e=mt(this).length,A=Math.floor(e/2),n=0;n1?arguments[1]:void 0)},sort:function(t){return lt.call(mt(this),t)},subarray:function(t,e){var A=mt(this),n=A.length,r=E(t,n);return new(x(A,A[Et]))(A.buffer,A.byteOffset+r*A.BYTES_PER_ELEMENT,d((void 0===e?n:E(e,n))-r))}},Ft=function(t,e){return Lt(this,ct.call(mt(this),t,e))},Ot=function(t){mt(this);var e=bt(arguments[1],1),A=this.length,n=B(t),r=d(n.length),o=0;if(r+e>A)throw W("Wrong length!");for(;o255?255:255&n),r.v[g](A*e+r.o,n,Bt)}(this,A,t)},enumerable:!0})};h?(p=A(function(t,A,n,r){l(t,p,u,"_d");var o,i,s,a,c=0,g=0;if(M(A)){if(!(A instanceof H||"ArrayBuffer"==(a=I(A))||"SharedArrayBuffer"==a))return ht in A?Qt(p,A):Nt.call(p,A);o=A,g=bt(n,e);var E=A.byteLength;if(void 0===r){if(E%e)throw W("Wrong length!");if((i=E-g)<0)throw W("Wrong length!")}else if((i=d(r)*e)+g>E)throw W("Wrong length!");s=i/e}else s=y(A),o=new H(i=s*e);for(f(t,"_d",{b:o,o:g,l:i,e:s,v:new J(o)});c0?n:A)(t)}},function(t,e,A){var n=A(30)("meta"),r=A(2),o=A(15),i=A(11).f,s=0,a=Object.isExtensible||function(){return!0},u=!A(9)(function(){return a(Object.preventExtensions({}))}),l=function(t){i(t,n,{value:{i:"O"+ ++s,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[n].w},onFreeze:function(t){return u&&c.NEED&&a(t)&&!o(t,n)&&l(t),t}}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.getBrowserLanguage=function(){var t=window.navigator,e=["language","browserLanguage","systemLanguage","userLanguage"],A=void 0,n=void 0;if(Array.isArray(t.languages))for(A=0;A=0)return n.substr(0,r+1)}}return""}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.version="0.9.0-2020110918-rev.ebf1d8d"},function(t,e,A){var n=A(23);t.exports=function(t,e,A){for(var r in e)n(t,r,e[r],A);return t}},function(t,e){t.exports=function(t,e,A,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(A+": incorrect invocation!");return t}},function(t,e){var A={}.toString;t.exports=function(t){return A.call(t).slice(8,-1)}},function(t,e,A){var n=A(24),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):o(t,e)}},function(t,e,A){var n=A(11).f,r=A(15),o=A(8)("toStringTag");t.exports=function(t,e,A){t&&!r(t=A?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,A){var n=A(15),r=A(16),o=A(91)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,A){var n=A(8)("unscopables"),r=Array.prototype;void 0==r[n]&&A(14)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=A(27),r=A(26);e.default=function(){var t={};OvenPlayerConsole.log("SupportChecker loaded.");var e=(0,r.analUserAgent)(),A=[{name:"html5",checkSupport:function(t){var A=document.createElement("video");if(!A.canPlayType)return!1;var r=t.file,o=t.type;if(!o)return!1;var i=t.mimeType||{aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"}[o];return!((0,n.isHls)(r,o)&&"Microsoft Edge"===e.browser||(0,n.isRtmp)(r,o)||(0,n.isWebRTC)(r,o)||!i||!A.canPlayType(i))}},{name:"webrtc",checkSupport:function(t){if(!document.createElement("video").canPlayType)return!1;if((0,n.isRtmp)(e,A))return!1;var e=t.file,A=t.type;return!!(0,n.isWebRTC)(e,A)}},{name:"dash",checkSupport:function(t){var e=t.file,A=t.type;return!(0,n.isRtmp)(e,A)&&!("function"!=typeof(window.MediaSource||window.WebKitMediaSource)||!(0,n.isDash)(e,A))}},{name:"hls",checkSupport:function(t){document.createElement("video");var e=t.file,A=t.type;return!(0,n.isRtmp)(e,A)&&function(){var t=function(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}(),e=window.SourceBuffer||window.WebKitSourceBuffer,A=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!A&&!!n}()}},{name:"rtmp",checkSupport:function(t){var A=t.file,r=t.type;return!(!(0,n.isRtmp)(A,r)||!function(){var t=!1;if("ActiveXObject"in window)try{t=!!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){t=!1}else t=!!navigator.mimeTypes["application/x-shockwave-flash"];return t}()||"Microsoft Edge"===e.browser||"Android"===e.os||"iOS"===e.os||"Safari"===e.browser)}}];return t.findProviderNameBySource=function(t){OvenPlayerConsole.log("SupportChecker : findProviderNameBySource()",t);for(var e=t===Object(t)?t:{},n=0;ndocument.F=Object<\/script>"),t.close(),a=t.F;n--;)delete a.prototype[o[n]];return a()};t.exports=Object.create||function(t,e){var A;return null!==t?(s.prototype=n(t),A=new s,s.prototype=null,A[i]=t):A=a(),void 0===e?A:r(A,e)}},function(t,e,A){var n=A(20),r=A(89),o=A(16),i=A(10),s=A(201);t.exports=function(t,e){var A=1==t,a=2==t,u=3==t,l=4==t,c=6==t,f=5==t||c,g=e||s;return function(e,s,p){for(var d,y,E=o(e),w=r(E),h=n(s,p,3),I=i(w.length),M=0,B=A?g(e,I):a?g(e,0):void 0;I>M;M++)if((f||M in w)&&(y=h(d=w[M],M,E),t))if(A)B[M]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return M;case 2:B.push(d)}else if(l)return!1;return c?-1:u||l?l:B}}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,A){var n=A(28),r=A(4),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:A(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,A){for(var n,r=A(4),o=A(14),i=A(30),s=i("typed_array"),a=i("view"),u=!(!r.ArrayBuffer||!r.DataView),l=u,c=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(n=r[f[c++]])?(o(n.prototype,s,!0),o(n.prototype,a,!0)):l=!1;t.exports={ABV:u,CONSTR:l,TYPED:s,VIEW:a}},function(t,e,A){var n=A(3),r=A(32),o=A(8)("species");t.exports=function(t,e){var A,i=n(t).constructor;return void 0===i||void 0==(A=n(i)[o])?e:r(A)}},function(t,e,A){"use strict";var n=A(4),r=A(11),o=A(12),i=A(8)("species");t.exports=function(t){var e=n[t];o&&e&&!e[i]&&r.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e,A){var n=A(40),r=A(8)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,A,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(A=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?A:o?n(e):"Object"==(i=n(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,A){var n=A(8)("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var A=!1;try{var o=[7],i=o[n]();i.next=function(){return{done:A=!0}},o[n]=function(){return i},t(o)}catch(t){}return A}},function(t,e,A){var n=A(20),r=A(119),o=A(94),i=A(3),s=A(10),a=A(95),u={},l={};(e=t.exports=function(t,e,A,c,f){var g,p,d,y,E=f?function(){return t}:a(t),w=n(A,c,e?2:1),h=0;if("function"!=typeof E)throw TypeError(t+" is not iterable!");if(o(E)){for(g=s(t.length);g>h;h++)if((y=e?w(i(p=t[h])[0],p[1]):w(t[h]))===u||y===l)return y}else for(d=E.call(t);!(p=d.next()).done;)if((y=r(d,w,p.value,e))===u||y===l)return y}).BREAK=u,e.RETURN=l},function(t,e,A){"use strict";var n=A(4),r=A(0),o=A(23),i=A(38),s=A(25),a=A(59),u=A(39),l=A(2),c=A(9),f=A(58),g=A(42),p=A(213);t.exports=function(t,e,A,d,y,E){var w=n[t],h=w,I=y?"set":"add",M=h&&h.prototype,B={},v=function(t){var e=M[t];o(M,t,"delete"==t?function(t){return!(E&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(E&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return E&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,A){return e.call(this,0===t?0:t,A),this})};if("function"==typeof h&&(E||M.forEach&&!c(function(){(new h).entries().next()}))){var b=new h,m=b[I](E?{}:-0,1)!=b,C=c(function(){b.has(1)}),L=f(function(t){new h(t)}),Q=!E&&c(function(){for(var t=new h,e=5;e--;)t[I](e,e);return!t.has(-0)});L||((h=e(function(e,A){u(e,h,t);var n=p(new w,e,h);return void 0!=A&&a(A,y,n[I],n),n})).prototype=M,M.constructor=h),(C||Q)&&(v("delete"),v("has"),y&&v("get")),(Q||m)&&v(I),E&&M.clear&&delete M.clear}else h=d.getConstructor(e,t,y,I),i(h.prototype,A),s.NEED=!0;return g(h,t),B[t]=h,r(r.G+r.W+r.F*(h!=w),B),E||d.setStrong(h,t,y),h}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,A){var n=A(4).navigator;t.exports=n&&n.userAgent||""},function(t,e,A){"use strict";var n=A(57),r=RegExp.prototype.exec;t.exports=function(t,e){var A=t.exec;if("function"==typeof A){var o=A.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,A){"use strict";A(261);var n=A(23),r=A(14),o=A(9),i=A(33),s=A(8),a=A(102),u=s("species"),l=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),c=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var A="ab".split(t);return 2===A.length&&"a"===A[0]&&"b"===A[1]}();t.exports=function(t,e,A){var f=s(t),g=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),p=g?!o(function(){var e=!1,A=/a/;return A.exec=function(){return e=!0,null},"split"===t&&(A.constructor={},A.constructor[u]=function(){return A}),A[f](""),!e}):void 0;if(!g||!p||"replace"===t&&!l||"split"===t&&!c){var d=/./[f],y=A(i,f,""[t],function(t,e,A,n,r){return e.exec===a?g&&!r?{done:!0,value:d.call(e,A,n)}:{done:!0,value:t.call(A,e,n)}:{done:!1}}),E=y[0],w=y[1];n(String.prototype,t,E),r(RegExp.prototype,f,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}}},function(t,e){var A;A=function(){return this}();try{A=A||new Function("return this")()}catch(t){"object"==typeof window&&(A=window)}t.exports=A},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=t,A=[],n=function(t,e,A){var n=0,r=t.length;for(n=0;n100)throw new Error("Position must be between 0 and 100.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",s({},a,{get:function(){return I},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");I=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",s({},a,{get:function(){return M},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");M=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",s({},a,{get:function(){return B},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");B=e,this.hasBeenReset=!0}})),n.displayState=void 0,o)return n}).prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)}),e.default=n},,,,,,,,,function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkAndGetContainerElement=void 0;var n=s(A(78)),r=A(27),o=s(A(7)),i=(s(A(6)),A(36));function s(t){return t&&t.__esModule?t:{default:t}}A.p=(0,i.getScriptPath)("ovenplayer.sdk.js");var a=window.OvenPlayerSDK={},u=a.playerList=[],l=e.checkAndGetContainerElement=function(t){if(!t)return null;var e=null;if("string"==typeof t)e=document.getElementById(t);else{if(!t.nodeType)return null;e=t}return e};a.create=function(t,e){var A=l(t),r=(0,n.default)(A);return r.init(e),u.push(r),r},a.getPlayerList=function(){return u},a.getPlayerByContainerId=function(t){for(var e=0;e0)return void(b=setTimeout(function(){e.setCurrentSource(h.getSourceIndex()),v--},1e3));B&&v<=0&&(clearInterval(b),B=!1,v=3),h.getConfig().autoFallback&&h.getSourceIndex()+1> ",e);var c=function(t,e){return t.data=e||[],t.name=t.label||t.name||t.language,t.id=function(t,e){var A,n=t.kind||"cc";return A=t.default||t.defaulttrack?"default":t.id||n+e,l&&(f(i.length||0),l=!1),A}(t,i.length),i.push(t),t.id},f=function(e){a=e,t.trigger(r.CONTENT_CAPTION_CHANGED,a)};if(t.getConfig().playlist&&t.getConfig().playlist.length>0){var g=t.getConfig().playlist[e];if(g&&g.tracks&&g.tracks.length>0)for(var p=function(e){var A=g.tracks[e];s(A.kind)&&!o.default.findWhere(A,{file:A.file})&&u.load(A,A.lang,function(t){t&&t.length>0&&c(A,t)},function(e){var A=r.ERRORS.codes[r.PLAYER_CAPTION_ERROR];A.error=e,t.trigger(r.ERROR,A)})},d=0;d-1&&i[a]){var n=o.default.filter(i[a].data,function(t){return A>=t.startTime&&(!t.endTime||A)<=t.endTime});n&&n.length>0&&t.trigger(r.CONTENT_CAPTION_CUE_CHANGED,n[0])}}),A.flushCaptionList=function(t){i=[],f(t)},A.getCaptionList=function(){return i||[]},A.getCurrentCaption=function(){return a},A.setCurrentCaption=function(t){if(!(t>-2&&t0&&c(e,t)},function(e){var A=errors[r.PLAYER_CAPTION_ERROR];A.error=e,t.trigger(r.ERROR,A)})},A.removeCaption=function(t){return t>-1&&t=0?(OvenPlayerConsole.log("WEBVTT LOADED"),A.e(11).then(function(t){return A(70).default}.bind(null,A)).catch(function(t){console.log(t)}).then(function(t){var e=new t.Parser(window,t.StringDecoder());l=[],e.oncue=function(t){l.push(t)},e.onflush=function(){o(l)},e.parse(a)}).catch(function(t){i(t)})):a.indexOf("SAMI")>=0?(OvenPlayerConsole.log("SAMI LOADED"),A.e(9).then(function(t){return A(71).default}.bind(null,A)).catch(function(t){console.log(t)}).then(function(t){var A=t(a,{fixedLang:r});l=e(A.result),o(l)}).catch(function(t){i(t)})):(OvenPlayerConsole.log("SRT LOADED"),u=(0,n.default)(a),l=e(u),o(l))}})}).catch(function(t){i(t)})},t}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=A(13);function r(t){var e={},A=t.split("\r\n");1===A.length&&(A=t.split("\n"));var r=1;if(A[0].indexOf(" --\x3e ")>0&&(r=0),A.length>r+1&&A[r+1]){var o=A[r],i=o.indexOf(" --\x3e ");i>0&&(e.start=(0,n.hmsToSecond)(o.substr(0,i)),e.end=(0,n.hmsToSecond)(o.substr(i+5)),e.text=A.slice(r+1).join("\r\n"))}return e}e.default=function(t){var e=[],A=(t=(0,n.trim)(t)).split("\r\n\r\n");1===A.length&&(A=t.split("\n\n"));for(var o=0;o=.25&&t<=4}).map(function(t){return Math.round(4*t)/4})).indexOf(1)<0&&a.push(1),a.sort(),e.playbackRates=a,e.rtmpBufferTime=e.rtmpBufferTime>10?10:e.rtmpBufferTime,e.rtmpBufferTimeMax=e.rtmpBufferTimeMax>50?50:e.rtmpBufferTimeMax,e.playbackRates.indexOf(e.playbackRate)<0&&(e.playbackRate=1);var u=e.playlist;if(u)r.default.isArray(u.playlist)&&(e.feedData=u,e.playlist=u.playlist);else{var l=r.default.pick(e,["title","description","type","image","file","sources","tracks","host","application","stream","adTagUrl"]);e.playlist=[l]}return delete e.duration,e}(t),i={getConfig:function(){return A},getAdClient:function(){return A.adClient},setConfig:function(t,e){A[t]=e},getContainer:function(){return A.mediaContainer},getPlaybackRate:function(){return A.playbackRate},setPlaybackRate:function(t){return A.playbackRate=t,t},getQualityLabel:function(){return A.qualityLabel},setQualityLabel:function(t){A.qualityLabel=t},isCurrentProtocolOnly:function(){return A.currentProtocolOnly},getSourceIndex:function(){return A.sourceIndex},setSourceIndex:function(t){A.sourceIndex=t},setTimecodeMode:function(t){A.timecode!==t&&(A.timecode=t,e.trigger(o.CONTENT_TIME_MODE_CHANGED,t))},isTimecodeMode:function(){return A.timecode},getRtmpBufferTime:function(){return A.rtmpBufferTime},getRtmpBufferTimeMax:function(){return A.rtmpBufferTimeMax},isMute:function(){return A.mute},getVolume:function(){return A.volume},setVolume:function(t){A.volume=t},isLoop:function(){return A.loop},isAutoStart:function(){return A.autoStart},isControls:function(){return A.controls},getPlaybackRates:function(){return A.playbackRates},getBrowser:function(){return A.browser},getSystemText:function(){return A.systemText},getLanguage:function(){return A.lang},getPlaylist:function(){return A.playlist},setPlaylist:function(t){return r.default.isArray(t)?A.playlist=t:A.playlist=[t],A.playlist}};return i}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(7));e.default=function(t,e){var A=[],r={},o=!1,i={};OvenPlayerConsole.log("LazyCommandExecutor loaded."),e.forEach(function(e){var A=t[e];r[e]=A||function(){},t[e]=function(){var t=Array.prototype.slice.call(arguments,0);o?(s(),A&&A.apply(i,t)):i.addQueue(e,t)}});var s=function(){for(;A.length>0;){var e=A.shift(),n=e.command,o=e.args;(r[n]||t[n]).apply(t,o)}};return i.setExecuteMode=function(t){o=t,OvenPlayerConsole.log("LazyCommandExecutor : setExecuteMode()",t)},i.getUndecoratedMethods=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getUndecoratedMethods()",r),r},i.getQueue=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getQueue()",getQueue),A},i.addQueue=function(t,e){OvenPlayerConsole.log("LazyCommandExecutor : addQueue()",t,e),A.push({command:t,args:e})},i.flush=function(){OvenPlayerConsole.log("LazyCommandExecutor : flush()"),s()},i.empty=function(){OvenPlayerConsole.log("LazyCommandExecutor : empty()"),A.length=0},i.off=function(){OvenPlayerConsole.log("LazyCommandExecutor : off()"),e.forEach(function(e){var A=r[e];A&&(t[e]=A,delete r[e])})},i.removeAndExcuteOnce=function(e){var o=n.default.findWhere(A,{command:e});OvenPlayerConsole.log("LazyCommandExecutor : removeAndExcuteOnce()",e),A.splice(n.default.findIndex(A,{command:e}),1);var i=r[e];i&&(OvenPlayerConsole.log("removeCommand()"),o&&(i||t[e]).apply(t,o.args),t[e]=i,delete r[e])},i.destroy=function(){OvenPlayerConsole.log("LazyCommandExecutor : destroy()"),i.off(),i.empty()},i}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});A(26);var n=A(1),r=function(t){return t&&t.__esModule?t:{default:t}}(A(6)),o=A(36),i=A(37);e.default=function(t,e){var A={},s=(0,o.getScriptPath)("ovenplayer.js")+"OvenPlayerFlash.swf?v="+i.version,a=t.getAttribute("data-parent-id"),u=(0,r.default)(t),l="";OvenPlayerConsole.log("MediaManager loaded. browser : ",e);return A.createMedia=function(t,r){return t===n.PROVIDER_RTMP?(l&&A.empty(),function(t,A,n){var r=void 0,o=void 0,i=void 0,c=void 0,f=void 0,g=void 0,p=void 0,d=void 0,y=void 0,E=void 0,w=void 0;return OvenPlayerConsole.log("MediaManager Flash buffer setting : ",A,n),(r=document.createElement("param")).setAttribute("name","movie"),r.setAttribute("value",s),(o=document.createElement("param")).setAttribute("name","flashvars"),o.setAttribute("value","playerId="+a+"&bufferTime="+A+"&bufferMaxTime="+n),(i=document.createElement("param")).setAttribute("name","allowscriptaccess"),i.setAttribute("value","always"),(c=document.createElement("param")).setAttribute("name","allowfullscreen"),c.setAttribute("value","true"),(f=document.createElement("param")).setAttribute("name","quality"),f.setAttribute("value","height"),(g=document.createElement("param")).setAttribute("name","name"),g.setAttribute("value",a+"-flash"),(p=document.createElement("param")).setAttribute("name","menu"),p.setAttribute("value","false"),(d=document.createElement("param")).setAttribute("name","quality"),d.setAttribute("value","high"),(y=document.createElement("param")).setAttribute("name","bgcolor"),y.setAttribute("value","#000000"),(w=document.createElement("param")).setAttribute("name","wmode"),w.setAttribute("value","opaque"),t&&((E=document.createElement("param")).setAttribute("name","loop"),E.setAttribute("value","true")),(l=document.createElement("object")).setAttribute("id",a+"-flash"),l.setAttribute("name",a+"-flash"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.setAttribute("scale","default"),l.setAttribute("wmode","opaque"),"Microsoft Internet Explorer"===e.browser&&e.browserMajorVersion<=9?(l.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"),l.appendChild(r)):(l.setAttribute("data",s),l.setAttribute("type","application/x-shockwave-flash")),t&&l.appendChild(E),l.appendChild(w),l.appendChild(y),l.appendChild(d),l.appendChild(c),l.appendChild(i),l.appendChild(o),u.append(l),l}(r.isLoop(),r.getRtmpBufferTime(),r.getRtmpBufferTimeMax())):l||function(t,e){return(l=document.createElement("video")).setAttribute("disableremoteplayback",""),l.setAttribute("webkit-playsinline","true"),l.setAttribute("playsinline","true"),t&&l.setAttribute("loop",""),e&&l.setAttribute("autoplay",""),u.append(l),l}(r.isLoop(),r.isAutoStart())},A.createAdContainer=function(){var t=document.createElement("div");return t.setAttribute("class","op-ads"),u.append(t),t},A.empty=function(){OvenPlayerConsole.log("MediaManager removeElement()"),u.removeChild(l),l=null},A.destroy=function(){u.removeChild(),u=null,l=null,a=null},A}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e0})||[];return A.playlist=o,o},e.getPlaylist=function(){return OvenPlayerConsole.log("PlaylistManager getPlaylist() ",A.playlist),A.playlist},e.getCurrentPlayList=function(){return A.playlist[A.currentIndex]?A.playlist[A.currentIndex]:[]},e.getCurrentPlaylistIndex=function(){return A.currentIndex},e.setCurrentPlaylist=function(e){return A.playlist[e]&&(A.currentIndex=e,t.trigger(a.PLAYLIST_CHANGED,A.currentIndex)),A.currentIndex},e.getCurrentSources=function(){return A.playlist[A.currentIndex]?(OvenPlayerConsole.log("PlaylistManager getCurrentSources() ",A.playlist[A.currentIndex].sources),A.playlist[A.currentIndex].sources):null},e.getCurrentAdTag=function(){if(A.playlist[A.currentIndex])return A.playlist[A.currentIndex].adTagUrl||""},e}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(46)),r=(A(47),A(1));e.default=function(){var t=(0,n.default)(),e={},o={};OvenPlayerConsole.log("ProviderController loaded.");var i=function(t,A){e[t]||(OvenPlayerConsole.log("ProviderController _registerProvider() ",t),e[t]=A)},s={html5:function(){return Promise.all([A.e(0),A.e(5)]).then(function(t){var e=A(72).default;return i(r.PROVIDER_HTML5,e),{name:r.PROVIDER_HTML5,provider:e}}.bind(null,A)).catch(function(t){throw new Error("Network error")})},webrtc:function(){return Promise.all([A.e(0),A.e(7)]).then(function(t){var e=A(73).default;return i(r.PROVIDER_WEBRTC,e),{name:r.PROVIDER_WEBRTC,provider:e}}.bind(null,A)).catch(function(t){throw new Error("Network error")})},dash:function(){return Promise.all([A.e(0),A.e(3)]).then(function(t){var e=A(74).default;return i(r.PROVIDER_DASH,e),{name:r.PROVIDER_DASH,provider:e}}.bind(null,A)).catch(function(t){throw new Error("Network error")})},hls:function(){return Promise.all([A.e(0),A.e(4)]).then(function(t){var e=A(75).default;return i(r.PROVIDER_HLS,e),{name:r.PROVIDER_HLS,provider:e}}.bind(null,A)).catch(function(t){throw new Error("Network error")})},rtmp:function(){return Promise.all([A.e(0),A.e(6)]).then(function(t){var e=A(76).default;return i(r.PROVIDER_RTMP,e),{name:r.PROVIDER_RTMP,provider:e}}.bind(null,A)).catch(function(t){throw new Error("Network error")})}};return o.loadProviders=function(e){var A=t.findProviderNamesByPlaylist(e);return OvenPlayerConsole.log("ProviderController loadProviders() ",A),A?Promise.all(A.filter(function(t){return!!s[t]}).map(function(t){return s[t]()})):Promise.reject(r.ERRORS.codes[r.INIT_UNSUPPORT_ERROR])},o.findByName=function(t){return OvenPlayerConsole.log("ProviderController findByName() ",t),e[t]},o.getProviderBySource=function(e){var A=t.findProviderNameBySource(e);return OvenPlayerConsole.log("ProviderController getProviderBySource() ",A),o.findByName(A)},o.isSameProvider=function(e,A){return OvenPlayerConsole.log("ProviderController isSameProvider() ",t.findProviderNameBySource(e),t.findProviderNameBySource(A)),t.findProviderNameBySource(e)===t.findProviderNameBySource(A)},o}},function(t,e,A){var n=A(2),r=A(4).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,A){"use strict";var n=A(4),r=A(12),o=A(31),i=A(54),s=A(14),a=A(38),u=A(9),l=A(39),c=A(24),f=A(10),g=A(111),p=A(49).f,d=A(11).f,y=A(93),E=A(42),w="prototype",h="Wrong index!",I=n.ArrayBuffer,M=n.DataView,B=n.Math,v=n.RangeError,b=n.Infinity,m=I,C=B.abs,L=B.pow,Q=B.floor,D=B.log,N=B.LN2,T=r?"_b":"buffer",x=r?"_l":"byteLength",S=r?"_o":"byteOffset";function Y(t,e,A){var n,r,o,i=new Array(A),s=8*A-e-1,a=(1<>1,l=23===e?L(2,-24)-L(2,-77):0,c=0,f=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===b?(r=t!=t?1:0,n=a):(n=Q(D(t)/N),t*(o=L(2,-n))<1&&(n--,o*=2),(t+=n+u>=1?l/o:l*L(2,1-u))*o>=2&&(n++,o/=2),n+u>=a?(r=0,n=a):n+u>=1?(r=(t*o-1)*L(2,e),n+=u):(r=t*L(2,u-1)*L(2,e),n=0));e>=8;i[c++]=255&r,r/=256,e-=8);for(n=n<0;i[c++]=255&n,n/=256,s-=8);return i[--c]|=128*f,i}function F(t,e,A){var n,r=8*A-e-1,o=(1<>1,s=r-7,a=A-1,u=t[a--],l=127&u;for(u>>=7;s>0;l=256*l+t[a],a--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=e;s>0;n=256*n+t[a],a--,s-=8);if(0===l)l=1-i;else{if(l===o)return n?NaN:u?-b:b;n+=L(2,e),l-=i}return(u?-1:1)*n*L(2,l-e)}function O(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function j(t){return[255&t,t>>8&255]}function k(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function G(t){return Y(t,52,8)}function U(t){return Y(t,23,4)}function z(t,e,A){d(t[w],e,{get:function(){return this[A]}})}function W(t,e,A,n){var r=g(+A);if(r+e>t[x])throw v(h);var o=t[T]._b,i=r+t[S],s=o.slice(i,i+e);return n?s:s.reverse()}function P(t,e,A,n,r,o){var i=g(+A);if(i+e>t[x])throw v(h);for(var s=t[T]._b,a=i+t[S],u=n(+r),l=0;lJ;)(_=H[J++])in I||s(I,_,m[_]);o||(Z.constructor=I)}var V=new M(new I(2)),K=M[w].setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||a(M[w],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else I=function(t){l(this,I,"ArrayBuffer");var e=g(t);this._b=y.call(new Array(e),0),this[x]=e},M=function(t,e,A){l(this,M,"DataView"),l(t,I,"DataView");var n=t[x],r=c(e);if(r<0||r>n)throw v("Wrong offset!");if(r+(A=void 0===A?n-r:f(A))>n)throw v("Wrong length!");this[T]=t,this[S]=r,this[x]=A},r&&(z(I,"byteLength","_l"),z(M,"buffer","_b"),z(M,"byteLength","_l"),z(M,"byteOffset","_o")),a(M[w],{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return O(W(this,4,t,arguments[1]))},getUint32:function(t){return O(W(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(W(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(W(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){P(this,1,t,R,e)},setUint8:function(t,e){P(this,1,t,R,e)},setInt16:function(t,e){P(this,2,t,j,e,arguments[2])},setUint16:function(t,e){P(this,2,t,j,e,arguments[2])},setInt32:function(t,e){P(this,4,t,k,e,arguments[2])},setUint32:function(t,e){P(this,4,t,k,e,arguments[2])},setFloat32:function(t,e){P(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){P(this,8,t,G,e,arguments[2])}});E(I,"ArrayBuffer"),E(M,"DataView"),s(M[w],i.VIEW,!0),e.ArrayBuffer=I,e.DataView=M},function(t,e,A){var n=A(40);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,A){var n=A(17),r=A(10),o=A(41);t.exports=function(t){return function(e,A,i){var s,a=n(e),u=r(a.length),l=o(i,u);if(t&&A!=A){for(;u>l;)if((s=a[l++])!=s)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===A)return t||l||0;return!t&&-1}}},function(t,e,A){var n=A(53)("keys"),r=A(30);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,A){"use strict";var n=A(16),r=A(41),o=A(10);t.exports=function(t){for(var e=n(this),A=o(e.length),i=arguments.length,s=r(i>1?arguments[1]:void 0,A),a=i>2?arguments[2]:void 0,u=void 0===a?A:r(a,A);u>s;)e[s++]=t;return e}},function(t,e,A){var n=A(43),r=A(8)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},function(t,e,A){var n=A(57),r=A(8)("iterator"),o=A(43);t.exports=A(28).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},function(t,e,A){"use strict";var n=A(45),r=A(115),o=A(43),i=A(17);t.exports=A(116)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,A=this._i++;return!t||A>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?A:"values"==e?t[A]:[A,t[A]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,A){var n=A(2),r=A(3),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=A(20)(Function.call,A(22).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,A){return o(t,A),e?t.__proto__=A:n(t,A),t}}({},!1):void 0),check:o}},function(t,e,A){var n,r,o,i=A(20),s=A(122),a=A(113),u=A(87),l=A(4),c=l.process,f=l.setImmediate,g=l.clearImmediate,p=l.MessageChannel,d=l.Dispatch,y=0,E={},w=function(){var t=+this;if(E.hasOwnProperty(t)){var e=E[t];delete E[t],e()}},h=function(t){w.call(t.data)};f&&g||(f=function(t){for(var e=[],A=1;arguments.length>A;)e.push(arguments[A++]);return E[++y]=function(){s("function"==typeof t?t:Function(t),e)},n(y),y},g=function(t){delete E[t]},"process"==A(40)(c)?n=function(t){c.nextTick(i(w,t,1))}:d&&d.now?n=function(t){d.now(i(w,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=h,n=i(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",h,!1)):n="onreadystatechange"in u("script")?function(t){a.appendChild(u("script")).onreadystatechange=function(){a.removeChild(this),w.call(t)}}:function(t){setTimeout(i(w,t,1),0)}),t.exports={set:f,clear:g}},function(t,e,A){var n=A(130),r=A(33);t.exports=function(t,e,A){if(n(e))throw TypeError("String#"+A+" doesn't accept regex!");return String(r(t))}},function(t,e,A){var n=A(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(A){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,A){"use strict";var n=A(128)(!0);t.exports=function(t,e,A){return e+(A?n(t,e).length:1)}},function(t,e,A){"use strict";var n=A(131),r=RegExp.prototype.exec,o=String.prototype.replace,i=r,s=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),a=void 0!==/()??/.exec("")[1];(s||a)&&(i=function(t){var e,A,i,u,l=this;return a&&(A=new RegExp("^"+l.source+"$(?!\\s)",n.call(l))),s&&(e=l.lastIndex),i=r.call(l,t),s&&i&&(l.lastIndex=l.global?i.index+i[0].length:e),a&&i&&i.length>1&&o.call(i[0],A,function(){for(u=1;u22025.465794806718||A(10)<22025.465794806718||-2e-17!=A(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:A},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.playlistItemTemplate=void 0;var n=A(13);e.default=function(t,e){return'
'+t.playlist+'
'};e.playlistItemTemplate=function(t,e){return'
'+(t.image?"":'')+" "+(t.duration?''+(0,n.naturalHms)(t.duration)+"":"")+'
'+t.title+"
"}},function(t,e){t.exports="data:application/vnd.ms-fontobject;base64,mAgAAPQHAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAh3BIcQAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIGMwAAALwAAABgY21hcBdW0pAAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlm2K7c5QAAAXgAAAQAaGVhZA4/9zUAAAV4AAAANmhoZWEJPwXPAAAFsAAAACRobXR4MAAGdAAABdQAAAA4bG9jYQaABYAAAAYMAAAAHm1heHAAEwBEAAAGLAAAACBuYW1lmUoJ+wAABkwAAAGGcG9zdAADAAAAAAfUAAAAIAADBAABkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkJA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpCf/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAiQBJA3cDmgAoAAABIgYVFA4CIyIuAjU0PgI3FTcnFQ4DFRQeAjMyPgI1NCYjA1UOFDBTcEBAcFMwLE1nO5qaSYBgNjtliU5OiWU7FA4B4hQOQHBTMDBTcEA8bFI0BHKNjWMFPmWES06JZTs7ZYlODhQAAQCJAEkDdwOaACgAAAE1Bxc1HgMVFA4CIyIuAj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uLLA6Ky6xKwEUKy2wbyywOiuwOystsHAssDorsDwrLbBxLLA6K7A9Ky2wciyzCQQCA0VYIRsjIVlCK7AIZbADJFB4sAEVMC0AS7gAyFJYsQEBjlmwAbkIAAgAY3CxAAVCsgABACqxAAVCswoCAQgqsQAFQrMOAAEIKrEABkK6AsAAAQAJKrEAB0K6AEAAAQAJKrEDAESxJAGIUViwQIhYsQNkRLEmAYhRWLoIgAABBECIY1RYsQMARFlZWVmzDAIBDCq4Af+FsASNsQIARAAA"},function(t,e){t.exports="data:application/vnd.ms-fontobject;base64,4BcAADAXAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAu9Sc0gAAAAAAAAAAAAAAAAAAAAAAABQAcwBlAGUAawAtAGkAYwBvAG4AcwAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAAFABzAGUAZQBrAC0AaQBjAG8AbgBzAAAAAAAAAQAAAA8AgAADAHBHU1VCIIslegAAAPwAAABUT1MvMj9ASxgAAAFQAAAAVmNtYXCN4+3JAAABqAAAAX5jdnQgAAAAAAAACHgAAAAOZnBnbWIu+XoAAAiIAAAODGdhc3AAAAAQAAAIcAAAAAhnbHlm4vCjCgAAAygAAAGIaGVhZBqoqMEAAASwAAAANmhoZWEHPANWAAAE6AAAACRobXR4C7gAAAAABQwAAAAMbG9jYQBgAMQAAAUYAAAACG1heHAA8g5jAAAFIAAAACBuYW1lX+bauAAABUAAAALlcG9zdLSZYNcAAAgoAAAASHByZXB+tju2AAAWlAAAAJwAAQAAAAoAMAA+AAJERkxUAA5sYXRuABoABAAAAAAAAAABAAAABAAAAAAAAAABAAAAAWxpZ2EACAAAAAEAAAABAAQABAAAAAEACAABAAYAAAABAAAAAQPoAZAABQAAAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZADA6SDpIQNS/2oA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LbBiLLIBAUUrLbBjLLIAAEgrLbBkLLIAAUgrLbBlLLIBAEgrLbBmLLIBAUgrLbBnLLMAAABEKy2waCyzAAEARCstsGksswEAAEQrLbBqLLMBAQBEKy2wayyzAAABRCstsGwsswABAUQrLbBtLLMBAAFEKy2wbiyzAQEBRCstsG8ssQA8Ky6xMAEUKy2wcCyxADwrsEArLbBxLLEAPCuwQSstsHIssAAWsQA8K7BCKy2wcyyxATwrsEArLbB0LLEBPCuwQSstsHUssAAWsQE8K7BCKy2wdiyxAD0rLrEwARQrLbB3LLEAPSuwQCstsHgssQA9K7BBKy2weSyxAD0rsEIrLbB6LLEBPSuwQCstsHsssQE9K7BBKy2wfCyxAT0rsEIrLbB9LLEAPisusTABFCstsH4ssQA+K7BAKy2wfyyxAD4rsEErLbCALLEAPiuwQistsIEssQE+K7BAKy2wgiyxAT4rsEErLbCDLLEBPiuwQistsIQssQA/Ky6xMAEUKy2whSyxAD8rsEArLbCGLLEAPyuwQSstsIcssQA/K7BCKy2wiCyxAT8rsEArLbCJLLEBPyuwQSstsIossQE/K7BCKy2wiyyyCwADRVBYsAYbsgQCA0VYIyEbIVlZQiuwCGWwAyRQeLEFARVFWDBZLQBLuADIUlixAQGOWbABuQgACABjcLEAB0KxAAAqsQAHQrEACiqxAAdCsQAKKrEAB0K5AAAACyqxAAdCuQAAAAsquQADAABEsSQBiFFYsECIWLkAAwBkRLEoAYhRWLgIAIhYuQADAABEWRuxJwGIUVi6CIAAAQRAiGNUWLkAAwAARFlZWVlZsQAOKrgB/4WwBI2xAgBEswVkBgBERA=="},function(t,e,A){t.exports=!A(12)&&!A(9)(function(){return 7!=Object.defineProperty(A(87)("div"),"a",{get:function(){return 7}}).a})},function(t,e,A){var n=A(24),r=A(10);t.exports=function(t){if(void 0===t)return 0;var e=n(t),A=r(e);if(e!==A)throw RangeError("Wrong length!");return A}},function(t,e,A){var n=A(15),r=A(17),o=A(90)(!1),i=A(91)("IE_PROTO");t.exports=function(t,e){var A,s=r(t),a=0,u=[];for(A in s)A!=i&&n(s,A)&&u.push(A);for(;e.length>a;)n(s,A=e[a++])&&(~o(u,A)||u.push(A));return u}},function(t,e,A){var n=A(4).document;t.exports=n&&n.documentElement},function(t,e,A){var n=A(40);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,A){"use strict";var n=A(31),r=A(0),o=A(23),i=A(14),s=A(43),a=A(203),u=A(42),l=A(44),c=A(8)("iterator"),f=!([].keys&&"next"in[].keys()),g=function(){return this};t.exports=function(t,e,A,p,d,y,E){a(A,e,p);var w,h,I,M=function(t){if(!f&&t in m)return m[t];switch(t){case"keys":case"values":return function(){return new A(this,t)}}return function(){return new A(this,t)}},B=e+" Iterator",v="values"==d,b=!1,m=t.prototype,C=m[c]||m["@@iterator"]||d&&m[d],L=C||M(d),Q=d?v?M("entries"):L:void 0,D="Array"==e&&m.entries||C;if(D&&(I=l(D.call(new t)))!==Object.prototype&&I.next&&(u(I,B,!0),n||"function"==typeof I[c]||i(I,c,g)),v&&C&&"values"!==C.name&&(b=!0,L=function(){return C.call(this)}),n&&!E||!f&&!b&&m[c]||i(m,c,L),s[e]=L,s[B]=g,d)if(w={values:v?L:M("values"),keys:y?L:M("keys"),entries:Q},E)for(h in w)h in m||o(m,h,w[h]);else r(r.P+r.F*(f||b),e,w);return w}},function(t,e,A){"use strict";var n=A(16),r=A(41),o=A(10);t.exports=[].copyWithin||function(t,e){var A=n(this),i=o(A.length),s=r(t,i),a=r(e,i),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?i:r(u,i))-a,i-s),c=1;for(a0;)a in A?A[s]=A[a]:delete A[s],s+=c,a+=c;return A}},function(t,e,A){"use strict";var n=A(11).f,r=A(50),o=A(38),i=A(20),s=A(39),a=A(59),u=A(116),l=A(115),c=A(56),f=A(12),g=A(25).fastKey,p=A(35),d=f?"_s":"size",y=function(t,e){var A,n=g(e);if("F"!==n)return t._i[n];for(A=t._f;A;A=A.n)if(A.k==e)return A};t.exports={getConstructor:function(t,e,A,u){var l=t(function(t,n){s(t,l,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=n&&a(n,A,t[u],t)});return o(l.prototype,{clear:function(){for(var t=p(this,e),A=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete A[n.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var A=p(this,e),n=y(A,t);if(n){var r=n.n,o=n.p;delete A._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),A._f==n&&(A._f=r),A._l==n&&(A._l=o),A[d]--}return!!n},forEach:function(t){p(this,e);for(var A,n=i(t,arguments.length>1?arguments[1]:void 0,3);A=A?A.n:this._f;)for(n(A.v,A.k,this);A&&A.r;)A=A.p},has:function(t){return!!y(p(this,e),t)}}),f&&n(l.prototype,"size",{get:function(){return p(this,e)[d]}}),l},def:function(t,e,A){var n,r,o=y(t,e);return o?o.v=A:(t._l=o={i:r=g(e,!0),k:e,v:A,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[d]++,"F"!==r&&(t._i[r]=o)),t},getEntry:y,setStrong:function(t,e,A){u(t,e,function(t,A){this._t=p(t,e),this._k=A,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))},A?"entries":"values",!A,!0),c(e)}}},function(t,e,A){var n=A(3);t.exports=function(t,e,A,r){try{return r?e(n(A)[0],A[1]):e(A)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,A){"use strict";var n=A(12),r=A(34),o=A(61),i=A(52),s=A(16),a=A(89),u=Object.assign;t.exports=!u||A(9)(function(){var t={},e={},A=Symbol(),n="abcdefghijklmnopqrst";return t[A]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[A]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var A=s(t),u=arguments.length,l=1,c=o.f,f=i.f;u>l;)for(var g,p=a(arguments[l++]),d=c?r(p).concat(c(p)):r(p),y=d.length,E=0;y>E;)g=d[E++],n&&!f.call(p,g)||(A[g]=p[g]);return A}:u},function(t,e,A){"use strict";var n=A(38),r=A(25).getWeak,o=A(3),i=A(2),s=A(39),a=A(59),u=A(51),l=A(15),c=A(35),f=u(5),g=u(6),p=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},E=function(t,e){return f(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=E(this,t);if(e)return e[1]},has:function(t){return!!E(this,t)},set:function(t,e){var A=E(this,t);A?A[1]=e:this.a.push([t,e])},delete:function(t){var e=g(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,A,o){var u=t(function(t,n){s(t,u,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=n&&a(n,A,t[o],t)});return n(u.prototype,{delete:function(t){if(!i(t))return!1;var A=r(t);return!0===A?d(c(this,e)).delete(t):A&&l(A,this._i)&&delete A[this._i]},has:function(t){if(!i(t))return!1;var A=r(t);return!0===A?d(c(this,e)).has(t):A&&l(A,this._i)}}),u},def:function(t,e,A){var n=r(o(e),!0);return!0===n?d(t).set(e,A):n[t._i]=A,t},ufstore:d}},function(t,e){t.exports=function(t,e,A){var n=void 0===A;switch(e.length){case 0:return n?t():t.call(A);case 1:return n?t(e[0]):t.call(A,e[0]);case 2:return n?t(e[0],e[1]):t.call(A,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(A,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(A,e[0],e[1],e[2],e[3])}return t.apply(A,e)}},function(t,e,A){var n=A(49),r=A(61),o=A(3),i=A(4).Reflect;t.exports=i&&i.ownKeys||function(t){var e=n.f(o(t)),A=r.f;return A?e.concat(A(t)):e}},function(t,e,A){"use strict";var n=A(32);t.exports.f=function(t){return new function(t){var e,A;this.promise=new t(function(t,n){if(void 0!==e||void 0!==A)throw TypeError("Bad Promise constructor");e=t,A=n}),this.resolve=n(e),this.reject=n(A)}(t)}},function(t,e,A){e.f=A(8)},function(t,e,A){var n=A(17),r=A(49).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return i.slice()}}(t):r(n(t))}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,A){var n=A(24),r=A(33);t.exports=function(t){return function(e,A){var o,i,s=String(r(e)),a=n(A),u=s.length;return a<0||a>=u?t?"":void 0:(o=s.charCodeAt(a))<55296||o>56319||a+1===u||(i=s.charCodeAt(a+1))<56320||i>57343?t?s.charAt(a):o:t?s.slice(a,a+2):i-56320+(o-55296<<10)+65536}}},function(t,e,A){"use strict";var n=A(24),r=A(33);t.exports=function(t){var e=String(r(this)),A="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(A+=e);return A}},function(t,e,A){var n=A(2),r=A(40),o=A(8)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,A){"use strict";var n=A(3);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,A){var n=A(2),r=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&r(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,A){var n=A(12),r=A(34),o=A(17),i=A(52).f;t.exports=function(t){return function(e){for(var A,s=o(e),a=r(s),u=a.length,l=0,c=[];u>l;)A=a[l++],n&&!i.call(s,A)||c.push(t?[A,s[A]]:s[A]);return c}}},function(t,e,A){var n=A(10),r=A(129),o=A(33);t.exports=function(t,e,A,i){var s=String(o(t)),a=s.length,u=void 0===A?" ":String(A),l=n(e);if(l<=a||""==u)return s;var c=l-a,f=r.call(u,Math.ceil(c/u.length));return f.length>c&&(f=f.slice(0,c)),i?f+s:s+f}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,A){var n=e?1e3:1024;if(Math.abs(t)=n&&i0)return!1;f.addClass("op-autohide")}else f.removeClass("op-autohide"),e&&(d=setTimeout(function(){if(w.size()>0)return!1;f.addClass("op-autohide")},3e3))}function v(t,e){var A=p.getDuration(),n=p.getPosition(),r=0;r=e?Math.max(n-t,0):Math.min(n+t,A),p.seek(r)}function b(t){var e=p.getVolume(),A=0;A=t?Math.min(e+5,100):Math.max(e-5,0),p.setVolume(A)}function m(){var t=f.width();t<576?(h="xsmall",f.addClass("xsmall")):t<768?(h="small",f.addClass("small")):t<992?(h="medium",f.addClass("medium")):(h="large",f.addClass("large"))}var C={"click .ovenplayer":function(t,e,A){p&&p.trigger(u.PLAYER_CLICKED,t),g&&(t.preventDefault(),g.destroy(),g=null),(0,a.default)(t.target).closest(".op-controls-container")||(0,a.default)(t.target).closest(".op-setting-panel")||w.size()>0&&(t.preventDefault(),w.clear())},"dblclick .ovenplayer":function(t,e,A){p&&p.getConfig().expandFullScreenUI&&p.toggleFullScreen&&((0,a.default)(t.target).closest(".op-controls-container")||(0,a.default)(t.target).closest(".op-setting-panel")||p.toggleFullScreen())},"touchstart .ovenplayer":function(t,e,A){y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===h?B(!1,!0):B(!1)},"mouseenter .ovenplayer":function(t,e,A){t.preventDefault(),y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===h?B(!1,!0):B(!1)},"mousemove .ovenplayer":function(t,e,A){t.preventDefault(),y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===h?B(!1,!0):B(!1)},"mouseleave .ovenplayer":function(t,e,A){t.preventDefault(),(y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===h)&&B(!0)},"keydown .ovenplayer":function(t,e,A){var n=p.getFramerate();switch(t.keyCode){case 16:t.preventDefault(),E=!0;break;case 32:t.preventDefault(),function(){var t=y;t===u.STATE_IDLE||t===u.STATE_PAUSED||t===u.STATE_COMPLETE?p.play():t===u.STATE_PLAYING&&p.pause()}();break;case 37:t.preventDefault(),p.getConfig().disableSeekUI||(E&&n?p.seekFrame(-1):v(5,!0));break;case 39:t.preventDefault(),p.getConfig().disableSeekUI||(E&&n?p.seekFrame(1):v(5,!1));break;case 38:t.preventDefault(),b(!0);break;case 40:t.preventDefault(),b(!1)}},"keyup .ovenplayer":function(t,e,A){switch(t.keyCode){case 16:t.preventDefault(),E=!1}},"contextmenu .ovenplayer":function(t,e,A){if(t.stopPropagation(),!(0,a.default)(t.currentTarget).find("object"))return t.preventDefault(),function(t,e){g&&(g.destroy(),g=null),g=(0,s.default)(f,p,{pageX:t,pageY:e})}(t.pageX,t.pageY),!1}};return(M=(0,n.default)(t,"View",null,t.id,C,function(t,A){f=t,e=A,m(),new l.default(f.get(),function(){f.removeClass("large"),f.removeClass("medium"),f.removeClass("small"),f.removeClass("xsmall"),m(),h!==I&&(I=h,p&&p.trigger(u.PLAYER_RESIZED,I))})},function(){c&&(c.destroy(),c=null),A&&(A.destroy(),A=null)},!0)).getMediaElementContainer=function(){return f.find(".op-media-element-container").get()},M.setApi=function(t){(p=t).on(u.READY,function(e){!A&&n&&(A=(0,o.default)(f.find(".op-ui"),t))}),p.on(u.ERROR,function(t){if(p){var e=p.getSources()||[];A&&e.length}}),p.on(u.DESTROY,function(t){e.destroy()}),p.on(u.PLAYER_PLAY,function(e){!A&&n&&(A=(0,o.default)(f.find(".op-ui"),t))}),p.on(u.PLAYER_STATE,function(t){t&&t.newstate&&(y=t.newstate,t.newstate===u.STATE_PLAYING||t.newstate===u.STATE_AD_PLAYING&&"xsmall"===h?B(!1,!0):B(!1))});var n=p.getConfig()&&p.getConfig().controls;c=(0,r.default)(f.find(".op-ui"),t),n?A=(0,o.default)(f.find(".op-ui"),t):p.getConfig()&&p.getConfig().expandFullScreenUI&&(A=(0,o.default)(f.find(".op-ui"),t)).destroy();var i=p.getConfig().aspectRatio;if(i&&2===i.split(":").length){var s=1*i.split(":")[0],a=1*i.split(":")[1]/s*100;f.find(".op-ratio").css("padding-bottom",a+"%")}},M}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=B(A(140)),r=B(A(141)),o=B(A(142)),i=B(A(143)),s=B(A(144)),a=B(A(145)),u=B(A(146)),l=B(A(147)),c=B(A(148)),f=B(A(149)),g=B(A(150)),p=B(A(151)),d=B(A(152)),y=B(A(153)),E=B(A(154)),w=B(A(155)),h=B(A(156)),I=B(A(157)),M=B(A(106));function B(t){return t&&t.__esModule?t:{default:t}}var v={TextViewTemplate:n.default,ViewTemplate:r.default,HelpersTemplate:o.default,BigButtonTemplate:i.default,ThumbnailTemplate:s.default,MessageBoxTemplate:a.default,SpinnerTemplate:u.default,ContextPanelTemplate:l.default,CaptionViewerTemplate:c.default,ControlsTemplate:f.default,VolumeButtonTemplate:g.default,ProgressBarTemplate:p.default,PlayButtonTemplate:d.default,SettingButtonTemplate:y.default,FrameButtonsTemplate:E.default,TimeDisplayTemplate:w.default,FullScreenButtonTemplate:h.default,PanelsTemplate:I.default,SpeedPanelTemplate:I.default,SourcePanelTemplate:I.default,QualityPanelTemplate:I.default,CaptionPanelTemplate:I.default,TimeDisplayPanelTemplate:I.default,PlaylistPanelTemplate:M.default};e.default=v},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return'

'+t+'

'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=A(1);e.default=function(t,e){return'
'+(e===n.STATE_PLAYING?'':"")+(e===n.STATE_PAUSED?'':"")+(e===n.STATE_IDLE?'':"")+(e===n.STATE_COMPLETE?'':"")+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return'
'+(e.image?'':"")+(e.title?'
'+e.title+"
":"")+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return'
'+e.message+(e.description?'
'+e.description+"
":"")+"
"+(e.iconClass?'
':"")+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=A(37);e.default=function(t){return'
Help
'+t.context+" "+n.version+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
      
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return'
'+(e?'':"")+'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
00:00
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return''}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return'
'}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return'
'+(e.duration===1/0?''+("webrtc"===e.type?e.isP2P?''+t.controls.low_latency_p2p+"":''+t.controls.low_latency_live+"":""+t.controls.live+"")+"":'00:00 / 00:00')+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return''}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.settingItemTemplate=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(A(7));e.default=function(t,e){var A='
'+(e.isRoot?"":'<')+''+e.title+'
';return n.default.forEach(e.body,function(t){A+=r(t,e.useCheck)}),A+="
"};var r=e.settingItemTemplate=function(t,e){return'
'+(e?'':"")+''+t.title+""+(t.hasNext?'>'+t.description+"":"")+"
"}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=l(A(5)),r=l(A(159)),o=l(A(160)),i=l(A(161)),s=l(A(162)),a=l(A(163)),u=A(1);function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var A="",l="",c="",f=void 0,g=null,p=e.getConfig().image||e.getConfig().title,d=!1;return(0,n.default)(t,"Helpers",e.getConfig(),null,{},function(t,n){var y=!1,E=-1;function w(n){l&&l.destroy(),A&&A.destroy(),A=(0,r.default)(t,e,n)}function h(){f&&f.destroy(),f=(0,s.default)(t,e,e.getConfig())}c=(0,a.default)(t,e),(0,i.default)(t,e),e.on(u.READY,function(){p&&h(),w(u.STATE_PAUSED)},n),e.on(u.PLAYER_WARNING,function(r){r.message&&(A&&A.destroy(),l&&l.destroy(),g=(0,o.default)(t,e,r.message,null,r.timer,r.iconClass,r.onClickCallback,!1),e.once(u.CONTENT_MUTE,function(t){!t.mute&&g&&g.destroy()},n))},n),e.on(u.PLAYER_STATE,function(t){t&&t.newstate&&(t.newstate===u.STATE_IDLE&&l&&l.destroy(),t.newstate===u.STATE_PLAYING||t.newstate===u.STATE_AD_PLAYING?(d=!1,l&&l.destroy(),A&&A.destroy(),f&&f.destroy(),y||c.show(!1)):(w(t.newstate),t.newstate===u.STATE_STALLED||t.newstate===u.STATE_LOADING||t.newstate===u.STATE_AD_LOADING?(d=!1,l&&l.destroy(),c.show(!0)):y||c.show(!1)))},n),e.on(u.CONTENT_LEVEL_CHANGED,function(t){if(t.currentQuality<0)return!1;t.isAuto?(y=!1,c.show(!1)):"request"===t.type?(E=t.currentQuality,y=!0,c.show(!0)):"render"===t.type&&E===t.currentQuality&&(y=!1,c.show(!1))},n),e.on(u.ERROR,function(n){if(510===n.code&&(d=!0),!d){var r="",i="";A&&A.destroy(),n&&n.code&&n.code>=100&&n.code<1e3?(r=n.message,100===n.code&&(i=n.error.toString())):r="Can not play due to unknown reasons.",OvenPlayerConsole.log("error occured : ",n),function(A,n,r,i,s,a){l&&l.destroy(),l=(0,o.default)(t,e,A,n,r,i,s,a)}(r,i,null,u.UI_ICONS.op_warning,null,!0)}},n),e.on(u.NETWORK_UNSTABLED,function(t){var A="Because the network connection is unstable, the following media source will be played.";e.getCurrentSource()+1===e.getQualityLevels().length&&(A="Network connection is unstable. Check the network connection."),OvenPlayerConsole.log(A)},n),e.on(u.ALL_PLAYLIST_ENDED,function(){p&&h()},n)},function(t){e.off(u.READY,null,t),e.off(u.PLAYER_STATE,null,t),e.off(u.PLAYER_WARNING,null,t),e.off(u.ERROR,null,t),e.off(u.NETWORK_UNSTABLED,null,t),e.off(u.ALL_PLAYLIST_ENDED,null,t),e.off(u.PLAYLIST_CHANGED,null,t)})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(5)),r=A(1),o=A(1);e.default=function(t,e,A){var i={"click .op-bigbutton-container":function(t){t.preventDefault();var A=e.getState(),n=e.getPlaylist(),i=e.getCurrentPlaylist();A===r.STATE_IDLE||A===r.STATE_PAUSED?e.play():A===o.STATE_ERROR?e.setCurrentSource(e.getCurrentSource()):A===r.STATE_COMPLETE&&n.length===i+1&&e.setCurrentPlaylist(0)}};return(0,n.default)(t,"BigButton",e.getConfig(),A,i,function(t,e,A){},function(){})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(5));A(1);e.default=function(t,e,A,r,o,i,s,a){var u="",l={message:A,description:r,iconClass:i,dontClose:a},c={"click .op-message-text":function(t,e,A){t.stopPropagation(),a||(u&&clearTimeout(u),s&&s(),A.destroy())},"click .op-con":function(t,e,A){t.preventDefault(),a||(u&&clearTimeout(u),s&&s(),A.destroy())}};return(0,n.default)(t,"MessageBox",e.getConfig(),l,c,function(t,e){o&&(u=setTimeout(function(){e.destroy()},o||5e3))},function(){})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(A(5)),r=A(1),o=i(A(6));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,A){(0,o.default)("#"+e.getContainerId());return(0,n.default)(t,"CaptionViewer",e.getConfig(),A,{},function(t,A,n){var o=!1,i=0;e.on(r.CONTENT_CAPTION_CHANGED,function(e){e>-1?o=!1:(o=!0,t.find(".op-caption-text").text(""))},n),e.on(r.CONTENT_CAPTION_CUE_CHANGED,function(e){if(!o&&e&&e.text){var A=e.endTime-e.startTime;i&&clearTimeout(i),t.find(".op-caption-text").html(e.text),A&&(i=setTimeout(function(){t.find(".op-caption-text").text("")},1e3*A))}},n)},function(A){t.find(".op-caption-text").text(""),e.off(r.CONTENT_CAPTION_CHANGED,null,A),e.off(r.CONTENT_CAPTION_CUE_CHANGED,null,A)})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(5));A(1);e.default=function(t,e,A){return(0,n.default)(t,"Thumbnail",e.getConfig(),A,{},function(t,e,A){},function(){})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e1,!0===e.getConfig().hidePlaylistIcon&&(h=!1);var D={"mouseleave .op-controls":function(t,e,n){t.preventDefault(),A.setMouseDown(!1),e.find(".op-volume-slider-container").removeClass("active")},"click .op-playlist-button":function(t,A,n){t.preventDefault(),(0,a.default)(A,e)}};return(0,n.default)(t,"Controls",e.getConfig(),h,D,function(t,n){function a(A){y&&y.destroy(),y=(0,l.default)(t.find(".op-left-controls"),e,A)}function u(A){d&&d.destroy(),d=(0,s.default)(t.find(".op-progressbar-container"),e,A)}function h(){p&&p.destroy(),p=(0,o.default)(t.find(".setting-holder"),e)}function b(){E&&E.destroy(),E=(0,c.default)(t.find(".fullscreen-holder"),e)}function D(t){t.duration>9e15&&(t.duration=1/0);var A=e.getSources()[e.getCurrentSource()].sectionStart,n=e.getSources()[e.getCurrentSource()].sectionEnd;n&&(t.duration=n),A&&(t.duration=t.duration-A),a(t),b(),e.getFramerate&&e.getFramerate()>0||w&&w.destroy(),t.duration===1/0?(OvenPlayerConsole.log("[[[[LIVE MODE]]]]"),v=!0,d&&d.destroy()):u(!1),M=!0}function N(){a(Q),h(),b(),v?d&&d.destroy():u(!1),L.removeClass("linear-ad")}g=(0,r.default)(t.find(".op-left-controls"),e),A=(0,i.default)(t.find(".op-left-controls"),e);var T=e.getPlaylist(),x=e.getCurrentPlaylist();T&&T[x]&&T[x].adTagUrl||h(),b(),e.on(f.READY,function(){t.show()},n),e.on(f.CONTENT_META,function(t){I=t.duration,Q=t,t.isP2P=B,D(t)},n),e.on(f.CONTENT_TIME,function(t){(m||e&&e.getProviderName&&"rtmp"===e.getProviderName())&&!I&&Q&&Q.duration!==t.duration&&(Q=t,D(t))},n),e.on(f.PLAYER_RESIZED,function(t){L.find(".op-setting-panel")&&L.find(".op-setting-panel").css("max-height",L.height()-L.find(".op-bottom-panel").height()+"px")},n),e.on(f.OME_P2P_MODE,function(t){B=t},n),e.on(f.PLAYER_PLAY,function(){if(!M){var A="";e.getSources().length>0&&e.getSources()[e.getCurrentSource()]&&e.getSources()[e.getCurrentSource()].type&&(A=e.getSources()[e.getCurrentSource()].type),D({isP2P:B,duration:e.getDuration(),type:A})}t.show()},n),e.on(f.ERROR,function(e){t.show()},n),e.on(f.AD_CHANGED,function(t){t.isLinear?(L.addClass("linear-ad"),u(!0),y&&y.destroy(),p&&p.destroy(),C&&E&&E.destroy()):L.removeClass("linear-ad")},n),e.on(f.STATE_AD_COMPLETE,function(){N()},n),e.on(f.STATE_AD_ERROR,function(){N()},n)},function(t){e.off(f.CONTENT_META,null,t),e.off(f.CONTENT_TIME,null,t),e.off(f.STATE_AD_COMPLETE,null,t),e.off(f.AD_CHANGED,null,t),e.off(f.OME_P2P_MODE,null,t),e.off(f.STATE_AD_ERROR,null,t),e.off(f.PLAYER_RESIZED,null,t),y&&y.destroy(),g&&g.destroy(),d&&d.destroy(),E&&E.destroy(),A&&A.destroy()})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(5)),r=A(1);e.default=function(t,e){var A="",o="",i="",s="",a="",u="",l="";var c={"click .op-play-button":function(t,A,n){t.preventDefault();var o=e.getState(),i=e.getPlaylist(),s=e.getCurrentPlaylist();o===r.STATE_IDLE?e.play():o===r.STATE_PLAYING||o===r.STATE_AD_PLAYING?e.pause():o===r.STATE_LOADING||o===r.STATE_STALLED?e.stop():o===r.STATE_PAUSED||o===r.STATE_AD_PAUSED?e.play():o===r.STATE_ERROR?e.setCurrentSource(e.getCurrentSource()):o===r.STATE_COMPLETE&&i.length===s+1&&e.setCurrentPlaylist(0)},"click .op-seek-button-back":function(t,A,n){var r=e.getConfig().seekControlInterval;r||(r=10);var o=e.getPosition()-r;o<0&&(o=0),e.seek(o)},"click .op-seek-button-forward":function(t,A,n){var r=e.getConfig().seekControlInterval;r||(r=10);var o=e.getPosition()+r;o>e.getDuration()&&(o=e.getDuration()),e.seek(o)}};return(0,n.default)(t,"PlayButton",e.getConfig(),null,c,function(t,n){A=t.find(".op-play-button .op-play"),o=t.find(".op-play-button .op-pause"),i=t.find(".op-play-button .op-replay"),s=t.find(".op-seek-button-back"),a=t.find(".op-seek-button-forward"),u=t.find(".op-seek-back-text"),l=t.find(".op-seek-forward-text"),e.on(r.PLAYER_STATE,function(t){t&&t.newstate&&function(t){A.hide(),o.hide(),i.hide(),t===r.STATE_PLAYING||t===r.STATE_AD_PLAYING||t===r.STATE_LOADING||t===r.STATE_STALLED?o.show():t===r.STATE_PAUSED||t===r.STATE_AD_PAUSED?A.show():(r.STATE_COMPLETE,A.show())}(t.newstate)},n),e.getConfig().showSeekControl||(s.hide(),a.hide());var c=e.getConfig().seekControlInterval;c?(u.text(c),l.text(c)):(u.text(10),l.text(10))},function(t){e.off(r.PLAYER_STATE,null,t)})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s(A(5)),r=s(A(167)),o=s(A(19)),i=A(1);function s(t){return t&&t.__esModule?t:{default:t}}var a={speed:"Speed",source:"Source",quality:"Quality",caption:"Caption",display:"Display"};e.default=function(t,e){var A=(0,o.default)();var s={"click .op-setting-button":function(t,n,o){t.preventDefault();var s=n.closest(".op-controls-container");if(A.size()>0)A.clear();else{var u=function(t){var e={id:"panel-"+(new Date).getTime(),title:"Settings",body:[],isRoot:!0,panelType:""},A=t.getConfig();A&&A.systemText&&(Object.keys(a).forEach(function(t){a[t]=A.systemText.ui.setting[t]}),e.title=A.systemText.ui.setting.title);var n=t.getSources(),r=n&&n.length>0?n[t.getCurrentSource()]:null,o=t.getQualityLevels(),s=o&&o.length>0?o[t.getCurrentQuality()]:null,u=t.getCaptionList(),l=t.getCurrentCaption(),c=t.getFramerate();if(t.getDuration()!==1/0&&r&&r.type!==i.PROVIDER_RTMP){var f={title:a.speed,value:t.getPlaybackRate()+"x",description:t.getPlaybackRate()+"x",panelType:"speed",hasNext:!0};e.body.push(f)}if(n.length>0){var g={title:a.source,value:r?r.label:"Default",description:r?r.label:"Default",panelType:"source",hasNext:!0};e.body.push(g)}if(o.length>0){var p={title:a.quality,value:s?s.label:"Default",description:s?s.label:"Default",panelType:"quality",hasNext:!0};e.body.push(p)}if(u.length>0){var d={title:a.caption,value:u[l]?u[l].label:"OFF",description:u[l]?u[l].label:"OFF",panelType:"caption",hasNext:!0};e.body.push(d)}if(c>0){var y={title:a.display,value:t.isTimecodeMode()?"Play time":"Framecode",description:t.isTimecodeMode()?"Play time":"Framecode",panelType:"display",hasNext:!0};e.body.push(y)}return e}(e);A.add((0,r.default)(s,e,u))}}};return(0,n.default)(t,"SettingButton",e.getConfig(),null,s,function(t,e){},function(t){})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=p(A(5)),r=p(A(19)),o=p(A(6)),i=p(A(7)),s=p(A(136)),a=p(A(168)),u=p(A(169)),l=p(A(170)),c=p(A(171)),f=p(A(172)),g=A(1);function p(t){return t&&t.__esModule?t:{default:t}}var d={speed:"Speed",source:"Source",quality:"Quality",caption:"Caption",display:"Display"};e.default=function(t,e,A){var p=(0,o.default)("#"+e.getContainerId()),y=(0,r.default)(),E=e.getConfig();function w(t,e){var A={id:"panel-"+(new Date).getTime(),title:"",body:[],useCheck:!0,panelType:e,height:p.height()-p.find(".op-bottom-panel").height()};if(A.title=d[e],"speed"===e)for(var n=t.getConfig().playbackRates,r=t.getPlaybackRate(),o=0;o=70?u.show():t<70&&t>0?l.show():0==t?c.show():u.show()}(t);var A=p*t/100;s.css("left",A+"px"),a.css("width",A+"px")}function E(t){var e=((t.pageX||t.touches[0].clientX)-i.offset().left)/g*100;return e<0&&(e=0),e>100&&(e=100),e}var w={"click .op-volume-button":function(t,A,n){t.preventDefault(),d||(0===e.getVolume()?(e.setMute(!1),e.setVolume(100)):e.setMute())},"touchstart .op-volume-slider-handle":function(t){f=!0},"touchmove .op-volume-slider-handle":function(t){f&&(e.setMute(!1),e.setVolume(E(t)))},"touchend .op-volume-slider-handle":function(t){f&&(f=!1)},"touchstart .op-volume-button":function(t){d&&A.hasClass("active")?0===e.getVolume()?(e.setMute(!1),e.setVolume(100)):e.setMute():A.addClass("active")},"mouseenter .op-volume-button":function(t,e,n){t.preventDefault(),d||A.addClass("active")},"mouseleave .op-volume-silder":function(t,e,A){t.preventDefault(),f=!1},"mousedown .op-volume-silder":function(t,A,n){t.preventDefault(),f=!0,e.setMute(!1),e.setVolume(E(t))},"mouseup .op-volume-silder":function(t,e,A){t.preventDefault(),f=!1},"mousemove .op-volume-silder":function(t,A,n){if(t.preventDefault(),!f)return!1;e.setVolume(E(t))}},h=(0,n.default)(t,"VolumeButton",e.getConfig(),null,w,function(t,n){A=t.find(".op-volume-slider-container"),i=t.find(".op-volume-silder"),s=t.find(".op-volume-slider-handle"),a=t.find(".op-volume-slider-value"),u=t.find(".op-volume-max"),l=t.find(".op-volume-small"),c=t.find(".op-volume-mute"),p=g-6,s.css("left",p+"px"),e.on(r.READY,function(){y(e.getVolume())},n),e.on(o.PLAYER_PLAY,function(t){y(t.volume)},n),e.on(r.CONTENT_VOLUME,function(t){y(t.volume)},n),e.on(r.CONTENT_MUTE,function(t){t.mute?y(0):y(e.getVolume())},n)},function(t){e.off(r.READY,null,t),e.off(r.CONTENT_VOLUME,null,t),e.off(r.CONTENT_MUTE,null,t)});return h.setMouseDown=function(t){f=t},h}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(A(5)),r=a(A(19)),o=A(13),i=a(A(6)),s=A(1);A(1);function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,A){var a=(0,i.default)("#"+e.getContainerId());e.getConfig().disableSeekUI&&t.addClass("op-progressbar-container-disabled");var u=0,l=!1,c=(0,r.default)(),f="",g=0,p="",d="",y="",E="",w="",h="",I=0,M="",B="",v="iOS"===e.getBrowser().os||"Android"===e.getBrowser().os;function b(t){var e=p.width(),A=e*t;y.css("width",A+"px"),E.css("left",A+"px");var n=(e-I)*t;w.css("left",n+"px"),u=A}function m(t){var e=p.width()*t;E.css("width",(0===t?t:e-u)+"px")}function C(t){var e=p.width(),A=p.offset().left,n=((t.pageX||t.touches[0].clientX)-A)/e;return n<0?0:n>1?1:n}function L(t,A){if(c.size()>0||-1===t)return M.hide(),void B.hide();M.show(),B.show();var n=g*t;e.isTimecodeMode()?M.text((0,o.naturalHms)(n)):M.text(Math.round(n*e.getFramerate()));var r=M.width(),i=p.width(),s=i*t,a=(A.pageX||A.touches[0].clientX)-p.offset().left,u=function(t){return a0&&(A+=n),e.seek(A)}var D={"touchstart .op-progressbar":function(t){if(A)return!1;l=!0;var e=C(t);if(-1===e)return!1;b(e),m(0),Q(e)},"touchmove .op-progressbar":function(t){if(l){var e=C(t);if(-1===e)return!1;b(e),m(0),Q(e),L(e,t)}},"touchend .op-progressbar":function(t){l&&(l=!1,a.removeClass("op-progressbar-hover"))},"mouseenter .op-progressbar":function(t,e,n){t.preventDefault(),v||(A||M.show(),a.addClass("op-progressbar-hover"))},"mouseleave .op-progressbar":function(t,e,A){t.preventDefault(),a.removeClass("op-progressbar-hover"),M.hide(),B.hide(),m(0)},"mousedown .op-progressbar":function(t,e,n){if(t.preventDefault(),A)return!1;l=!0;var r=C(t);if(-1===r)return!1;b(r),m(0),Q(r)},"mousemove .op-progressbar":function(t,e,n){if(t.preventDefault(),!l&&!A){var r=C(t);m(r),L(r,t)}},"mousemove document":function(t,e,A){if(t.preventDefault(),l){var n=C(t);if(-1===n)return!1;b(n),m(0),Q(n),L(n,t)}},"mouseup document":function(t,e,A){t.preventDefault(),l&&(l=!1,a.removeClass("op-progressbar-hover"))}};return e.getConfig().disableSeekUI&&(D={}),(0,n.default)(t,"ProgressBar",e.getConfig(),null,D,function(t,n){p=t,d=t.find(".op-load-progress"),y=t.find(".op-play-progress"),E=t.find(".op-hover-progress"),w=t.find(".op-progressbar-knob-container"),h=t.find(".op-progressbar-knob"),I=h.width(),M=t.find(".op-progressbar-time"),B=t.find(".op-progressbar-preview"),A?e.on(s.AD_TIME,function(t){t&&t.duration&&t.position&&(b(t.position/t.duration),t.duration)},n):(e.on(s.CONTENT_TIME,function(t){t&&t.duration&&t.position&&(g=t.duration,b(t.position/t.duration))},n),e.on(s.CONTENT_BUFFER,function(t){t&&t.bufferPercent&&function(t){var e=p.width()*t;d.css("width",e+"px")}(t.bufferPercent/100)},n))},function(t){A?e.off(s.AD_TIME,null,t):(e.off(s.CONTENT_TIME,null,t),e.off(s.CONTENT_BUFFER,null,t))})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s(A(5)),r=(A(13),A(106)),o=s(A(6)),i=A(1);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var A=(0,o.default)("#"+e.getContainerId()),s="",a=e.getPlaylist(),u=a.length,l=6,c=0,f=[];function g(t){var A=Math.ceil(u/l),n=e.getCurrentPlaylist();f=a.slice(t*l,t*l+l),s.find(".op-playlist-body-row").removeChild(),s.find(".op-arrow-left").removeClass("disable"),s.find(".op-arrow-right").removeClass("disable");for(var o=0;o576?l=6:A.width()<=576&&(l=1);var y={"click .btn-close":function(t,e,A){t.preventDefault(),A.destroy()},"click .op-arrow-left":function(t,e,A){t.preventDefault(),(0,o.default)(t.target).hasClass("disable")||g(--c)},"click .op-arrow-right":function(t,e,A){t.preventDefault(),(0,o.default)(t.target).hasClass("disable")||g(++c)}};return(0,n.default)(t,"PlaylistPanel",e.getConfig(),a,y,function(t,A){s=t,g(c=p()),e.on(i.PLAYER_RESIZED,function(t){"xsmall"===t&&6===l?(l=1,g(c=p())):"small"!==t&&"medium"!==t&&"large"!==t||1!==l||(l=6,g(c=p()))},A),e.on(i.PLAYLIST_CHANGED,function(t){g(c=p())},A),t.get().addEventListener("click",function(t){for(var A=t.target;A;){if((0,o.default)(A).hasClass("op-playlist-card"))return void e.setCurrentPlaylist(parseInt((0,o.default)(A).attr("data-index")));A=A.parentElement}},!0)},function(t){e.off(i.PLAYER_RESIZED,null,t),e.off(i.PLAYLIST_CHANGED,null,t)})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(A(5)),r=A(13),o=A(1);e.default=function(t,e,A){var i="",s="";function a(t){return(0,r.naturalHms)(t)}return(0,n.default)(t,"TimeDisplay",e.getConfig(),A,{},function(t,n){var r=e.isTimecodeMode();i=t.find(".op-time-current"),s=t.find(".op-time-duration"),A.duration!==1/0&&(r?s.text(a(A.duration)):s.text(Math.round(A.duration*e.getFramerate())+" ("+e.getFramerate()+"fps)"),e.on(o.CONTENT_TIME_MODE_CHANGED,function(t){(r=t)?s.text(a(A.duration)):s.text(Math.round(A.duration*e.getFramerate())+" ("+e.getFramerate()+"fps)")},n),e.on(o.CONTENT_TIME,function(t){r?i.text(a(t.position)):i.text(Math.round(t.position*e.getFramerate()))},n))},function(t){e.off(o.CONTENT_TIME_MODE_CHANGED,null,t),e.off(o.CONTENT_TIME,null,t)})}},function(t,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(A(5)),r=i(A(6)),o=A(1);function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var A=(0,r.default)("#"+e.getContainerId()),i="",s="",a=!1,u=(e.getConfig(),e.getBrowser()),l="iOS"===u.os,c=(u.os,""),f=!1,g={onfullscreenchange:"fullscreenchange",onmozfullscreenchange:"mozfullscreenchange",onwebkitfullscreenchange:"webkitfullscreenchange",MSFullscreenChange:"MSFullscreenChange"};function p(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function d(){OvenPlayerConsole.log("FULLSCREEN STATE : ",p()),p()?(A.addClass("op-fullscreen"),a=!0,i.hide(),s.show()):(A.removeClass("op-fullscreen"),a=!1,i.show(),s.hide())}function y(){OvenPlayerConsole.log("afterFullScreenChangedCallback () "),d(),e.trigger(o.PLAYER_FULLSCREEN_CHANGED,a)}function E(){a?(A.removeClass("op-fullscreen"),a=!1,i.show(),s.hide()):(A.addClass("op-fullscreen"),a=!0,i.hide(),s.show()),e.trigger(o.PLAYER_FULLSCREEN_CHANGED,a)}function w(){!a||l&&!p()?function(){var t="",n=A.get(),r=A.find("video")?A.find("video").get():n,i=void 0,s=null;if(l){if(r.length>1)for(var u=0;u1)for(var r=0;rt;t++)this.q[t].call()}},t.resizedAttached.add(A);t.resizeSensor=document.createElement("div"),t.resizeSensor.className="resize-sensor";var n="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; opacity: 0;",r="position: absolute; left: 0; top: 0; transition: 0s;";t.resizeSensor.style.cssText=n,t.resizeSensor.innerHTML='
',t.appendChild(t.resizeSensor),"static"==function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e]}(t,"position")&&(t.style.position="relative");var o=t.resizeSensor.childNodes[0],i=o.childNodes[0],s=t.resizeSensor.childNodes[1],a=function(){i.style.width=1e5+"px",i.style.height=1e5+"px",o.scrollLeft=1e5,o.scrollTop=1e5,s.scrollLeft=1e5,s.scrollTop=1e5};a();var u=!1,l=function(){t.resizedAttached&&(u&&(t.resizedAttached.call(),u=!1),e(l))};e(l);var c,f,g,p,d=function(){((g=t.offsetWidth)!=c||(p=t.offsetHeight)!=f)&&(u=!0,c=g,f=p),a()},y=function(t,e,A){t.attachEvent?t.attachEvent("on"+e,A):t.addEventListener(e,A)};y(o,"scroll",d),y(s,"scroll",d)}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},A=function(e,A){var n=Object.prototype.toString.call(e),r=this._isCollectionTyped="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"undefined"!=typeof jQuery&&e instanceof window.jQuery||"undefined"!=typeof Elements&&e instanceof window.Elements;if(this._element=e,r)for(var o=0,i=e.length;i>o;o++)t(e[o],A);else t(e,A)};return A.prototype.detach=function(){var t=this._isCollectionTyped,e=this._element;if(t)for(var n=0,r=e.length;r>n;n++)A.detach(e[n]);else A.detach(e)},A.detach=function(t){t.resizeSensor&&(t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)},A}()}.apply(e,[]))||(t.exports=n)}(this)},function(t,e,A){var n=A(182);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};A(193)(n,r);n.locals&&(t.exports=n.locals)},function(t,e,A){var n=A(183);(t.exports=A(184)(!1)).push([t.i,'@charset "UTF-8";@keyframes op-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@-webkit-keyframes op-slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes op-slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@-webkit-keyframes op-slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);opacity:1}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes op-slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);opacity:1}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@font-face{font-family:"frameIcon";src:url('+n(A(107))+");src:url("+n(A(107))+"#iefix) format('embedded-opentype'),url("+n(A(185))+") format('truetype'),url("+n(A(186))+"#icomoon) format('svg');font-weight:normal;font-style:normal}@font-face{font-family:'op-icons';src:url("+n(A(108))+");src:url("+n(A(108))+"#iefix) format('embedded-opentype'),url("+n(A(187))+") format('truetype'),url("+n(A(188))+"#fontello) format('svg');font-weight:normal;font-style:normal}@font-face{font-family:'op-seek-icons';src:url("+n(A(109))+");src:url("+n(A(109))+"#iefix) format('embedded-opentype'),url("+n(A(189))+") format('truetype'),url("+n(A(190))+'#fontello) format(\'svg\');font-weight:normal;font-style:normal}.op-wrapper.ovenplayer{position:relative;max-height:100%;overflow:hidden;zoom:1 !important;width:100%;display:block;font-family:Helvetica,Arial,sans-serif;background-color:#000;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#eee;font-size:14px;font-weight:100;outline:0;-webkit-touch-callout:none;user-select:none}.op-wrapper.ovenplayer *{box-sizing:inherit}.op-wrapper.ovenplayer object{width:100%;height:100%;position:absolute}.op-wrapper.ovenplayer:before,.op-wrapper.ovenplayer:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-wrapper.ovenplayer *,.op-wrapper.ovenplayer *:before,.op-wrapper.ovenplayer *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-wrapper.ovenplayer.op-fullscreen{width:100% !important;height:100% !important;top:0;right:0;bottom:0;left:0;z-index:1000;margin:0;position:fixed}.op-wrapper.ovenplayer.op-autohide{cursor:none}.op-wrapper.ovenplayer.op-autohide .op-bottom-panel{-webkit-animation-name:op-slideOutDown;animation-name:op-slideOutDown;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.op-wrapper.ovenplayer.op-autohide .op-progressbar-container,.op-wrapper.ovenplayer.op-autohide .op-controls .op-button{cursor:none}.op-wrapper.ovenplayer.op-autohide .op-caption-text-container{bottom:25px}.op-wrapper.ovenplayer .op-ratio{padding-bottom:56.25%}.op-wrapper.ovenplayer ::-webkit-scrollbar{width:5px;height:8px}.op-wrapper.ovenplayer ::-webkit-scrollbar-button:start:decrement,.op-wrapper.ovenplayer ::-webkit-scrollbar-button:end:increment{display:block;height:3px;background:#2f2f3e}.op-wrapper.ovenplayer ::-webkit-scrollbar-track{background:#2f2f3e;-webkit-border-radius:10px;border-radius:10px}.op-wrapper.ovenplayer ::-webkit-scrollbar-thumb{height:50px;width:50px;background:#606071;-webkit-border-radius:8px;border-radius:8px}.op-wrapper.ovenplayer .op-clear{color:inherit;background-color:transparent;padding:0;margin:0;float:none;font-family:Helvetica,Arial,sans-serif;font-size:1em;line-height:1em;list-style:none;text-transform:none;vertical-align:baseline;border:0;font-variant:inherit;font-stretch:inherit;-webkit-tap-highlight-color:rgba(255,255,255,0)}.op-player{position:absolute;top:0;height:100%;width:100%}.op-player .op-core-ui-wrapper{position:relative;height:100%}.op-player .op-media-element-container{position:absolute;left:0px;top:0px;width:100%;height:100%}.op-player .op-media-element-container video{width:100%;height:100%}.op-player .op-media-element-container object{width:100%;height:100%}.op-ads{position:absolute;height:100%;width:100%;padding-bottom:34px;top:0}.op-ads>div{position:absolute !important;width:100% !important;height:100% !important}.op-ads>div iframe{pointer-events:auto}.op-ads video.op-ads-vast-video{background-color:#000;position:absolute;width:100%;height:100%;left:0px;top:0px;z-index:1000}.op-ads .op-ads-button{bottom:36px;cursor:default;margin-right:4px;pointer-events:auto;position:absolute;right:0;z-index:1000;width:auto !important;height:auto !important;border-radius:4px;background-color:rgba(18,18,28,0.7);min-width:155px;display:none}.op-ads .op-ads-button .op-ads-textview{color:#e6e6e6;font-weight:normal;font-size:11px;padding:6px 12px;text-align:center;display:inline-block;width:100%;vertical-align:middle}.op-ads .op-ads-button .videoAdUiAction{color:#fff;padding:8px 24px;cursor:pointer;direction:ltr;font-weight:normal;font-size:20px;border:1px solid rgba(255,255,255,0.5)}.op-ads .op-ads-button .videoAdUiAction:hover{border-radius:4px;border:1px solid #fff}.op-ads .op-ads-button .videoAdUiAction i{display:inline-block;width:auto}.op-button{display:inline-block;border:none;background:transparent;padding:0;color:inherit;text-align:inherit;overflow:hidden;font-weight:100;font-size:30px;text-indent:0 !important}.op-button:focus,.op-button{outline:0}i.op-con{font-family:"op-icons","op-seek-icons";font-style:normal;font-weight:normal;speak:none;font-size:inherit;width:30px;line-height:30px;display:block;text-decoration:inherit;text-align:center;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:pointer}i.op-con.disable{color:#4f4f4f}i.op-con.op-close-icon::before{content:"\\E900"}i.op-con.op-pause-big::before{content:"\\E911"}i.op-con.op-fullscreen-compress::before{content:"\\E901"}i.op-con.op-fullscreen-expand::before{content:"\\E902"}i.op-con.op-arrow-left::before{content:"\\E903"}i.op-con.op-arrow-right::before{content:"\\E909"}i.op-con.op-empty-video::before{content:"\\E904"}i.op-con.op-play::before{content:"\\E906"}i.op-con.op-seek-back::before{content:"\\E920"}i.op-con.op-seek-forward::before{content:"\\E921"}i.op-con.op-playlist-icon::before{content:"\\E907"}i.op-con.op-replay-big::before{content:"\\E908"}i.op-con.op-setting::before{content:"\\E90A"}i.op-con.op-pause::before{content:"\\E90C"}i.op-con.op-volume-small{display:none;margin-top:-1px}i.op-con.op-volume-small::before{content:"\\E90D"}i.op-con.op-volume-mute{display:none}i.op-con.op-volume-mute::before{content:"\\E90E"}i.op-con.op-volume-max::before{content:"\\E90F"}i.op-con.op-play-big::before{content:"\\E910"}i.op-con.op-warning::before{content:"\\E912"}.op-badge{display:inline-block;padding:.75em .714em .714em .68em;font-size:1em;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.286em;color:#fff;background-color:#12121c}.op-playlist{position:absolute;width:100%;height:100%;left:0;top:0;padding:2.857em;background:#000;z-index:1008}.op-playlist .op-badge{position:absolute;top:.857em;right:.857em;opacity:.7}.op-playlist .btn-left{float:left;font-size:2.857em}.op-playlist .btn-right{float:right;font-size:2.857em}.op-playlist .op-playlist-header{font-size:2.857em;font-weight:bold}.op-playlist .op-playlist-header:after{dispaly:block;content:\'\';clear:both}.op-playlist .op-playlist-header .op-con.op-close-icon{float:right}.op-playlist .op-playlist-body{height:100%;overflow:hidden;position:relative}.op-playlist .op-playlist-body .op-playlist-body-arrows{margin-top:-15px;position:absolute;top:50%;height:30px;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;left:0}.op-playlist .op-playlist-body .op-playlist-body-container{width:100%;height:100%;position:relative;margin-right:auto;margin-left:auto;max-width:992px}.op-playlist .op-playlist-body .op-playlist-body-container .op-playlist-body-center{margin:0;position:absolute;top:50%;padding-right:3em;padding-left:3em;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.op-playlist .op-playlist-body .op-playlist-body-row{margin-right:-15px;margin-left:-15px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card{padding-right:15px;padding-left:15px;margin:15px 0;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%;cursor:pointer}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active{color:#50e3c2}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active .op-playlist-card-thumbnail{border-color:#50e3c2}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:.214em solid transparent;background-color:#000}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail img{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty{background-color:#bababa}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty>i{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:#fff !important;font-size:1.6em !important}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail::before{padding-top:56.25%;display:block;content:""}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-title{margin-top:.857em;font-size:1.429em;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.op-message-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1007}.op-message-box .op-message-container{position:absolute;top:45%;margin-top:-35px;width:100%;padding:0 12px;text-align:center;color:#fff}.op-message-box .op-message-container .op-message-text{display:inline-block;background-color:rgba(18,18,28,0.3);padding:.8em 1.2em;word-wrap:break-word;max-width:80%;border-radius:4px;cursor:pointer}.op-message-box .op-message-container .op-message-text .op-message-description{font-size:12px;margin-top:12px;color:#999}.op-message-box .op-message-container .op-message-icon{display:inline-block;margin-top:12px;width:100%}.op-message-box .op-message-container .op-message-icon i.op-con{cursor:pointer;font-size:80px;width:80px;height:80px;line-height:80px;display:inline-block}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-text{cursor:default}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-icon i.op-con{cursor:default}.op-bigbutton-container{cursor:pointer;position:absolute;top:50%;left:50%;margin-top:-40px;margin-left:-40px;text-align:center;z-index:1007}.op-bigbutton-container .op-bigbutton{width:80px;height:80px;display:block;font-size:80px;line-height:80px}.op-thumbnail-container{position:absolute;top:0;width:100%;left:0;height:100%;z-index:1001;pointer-events:none}.op-thumbnail-container .op-thumbnail-wrapper{position:relative;height:100%;padding:2.857em}.op-thumbnail-container .op-thumbnail-wrapper img{width:100%;max-height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header{position:relative;left:0;top:0;font-size:2.857em;font-weight:bold;line-height:1.4;text-shadow:1px 1px 2px rgba(217,217,217,0.5)}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header:after{dispaly:block;content:\'\';clear:both}.op-setting-panel{position:absolute;bottom:55px;right:12px;overflow-y:auto;max-height:100%;width:260px;user-select:none;background-color:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);z-index:1010}.op-setting-panel.background{display:none}.op-setting-panel .op-setting-title,.op-setting-panel .op-setting-item{width:100%;height:38px;line-height:38px;color:#eee;cursor:pointer;outline:none}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-title{padding-left:12px;font-weight:bold}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-previcon{padding:0 0 0 12px;margin-right:-6px}.op-setting-panel .op-setting-item-container .op-setting-item:hover{background-color:rgba(255,255,255,0.1)}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-title{padding-left:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-nexticon{float:right;padding-right:12px;margin-left:-6px}.op-setting-panel .op-setting-item-container .op-setting-item span.op-setting-item-value{float:right;padding-right:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked{padding-left:12px;visibility:hidden}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked.op-show{visibility:visible}.op-controls-container{display:none}.op-controls-container .op-bottom-panel{position:absolute;left:0px;bottom:0px;height:54px;width:100%;z-index:1007;-webkit-animation-name:op-slideInUp;animation-name:op-slideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.op-controls-container .op-bottom-panel .op-gradient-bottom{position:absolute;width:100%;height:100%;background-color:rgba(18,18,28,0.3);pointer-events:none}.op-controls-container .op-bottom-panel .op-progressbar-container{display:block;position:relative;width:100%;height:4px;cursor:pointer;bottom:50px}.op-controls-container .op-bottom-panel .op-progressbar-container.op-progressbar-container-disabled{cursor:default}.op-controls-container .op-bottom-panel .op-progressbar-container .op-progressbar-padding{position:absolute;width:100%;height:15px;bottom:-5px}.op-controls-container .op-bottom-panel .op-controls{position:relative;width:100%;text-align:left;overflow:hidden}.op-controls-container .op-bottom-panel .op-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-setting-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-playlist-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-navigators{float:left;height:30px;line-height:30px}.op-controls-container .op-bottom-panel .op-controls .op-left-controls{float:left;height:50px;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-left-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-right-controls{float:right;height:50px;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-right-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons{position:relative;display:inline-block;margin-left:14px;overflow:hidden;font-weight:100;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button{margin-right:6px;position:relative;text-align:center;color:#fff}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon{position:relative}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon.reverse:after{content:\'\\E900\'}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon:after{font-family:\'frameIcon\' !important;speak:none;content:\'\\E901\';font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;font-size:2.4em;left:0;line-height:30px;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon .btn-text{font-weight:bold;font-size:.8em;line-height:30px;height:30px}.op-progressbar{position:absolute;bottom:0;left:0;width:100%;height:100%;outline:none;margin-top:10px}.op-progressbar .op-play-background-color{background-color:#50e3c2}.op-progressbar .op-progress-list{position:relative;height:100%;background:rgba(255,255,255,0.2)}.op-progressbar .op-progress-list .op-load-progress,.op-progressbar .op-progress-list .op-play-progress,.op-progressbar .op-progress-list .op-hover-progress{position:absolute;left:0;bottom:0;width:100%;height:100%;-moz-transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.op-progressbar .op-progress-list .op-play-progress{width:0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.op-progressbar .op-progress-list .op-load-progress{width:0;background-color:rgba(255,255,255,0.5);-webkit-transition:width .5s ease;transition:width .5s ease}.op-progressbar .op-progress-list .op-hover-progress{left:0;width:0;background-color:rgba(255,255,255,0.6)}.op-progressbar .op-progressbar-knob-container{position:absolute;top:-5px;left:0px}.op-progressbar .op-progressbar-knob-container .op-progressbar-knob{width:14px;height:14px;border-radius:7px;-webkit-transition:width .1s ease;transition:width .1s ease}.op-progressbar .op-progressbar-time{display:none;position:absolute;bottom:15px;left:auto;width:auto;background-color:rgba(28,28,28,0.9);border-radius:2px;padding:5px 9px;font-size:.8em;line-height:15px;user-select:none;opacity:.7}.op-progressbar-hover .op-progressbar-knob-container{-moz-transform:none;-ms-transform:none;-webkit-transform:none;transform:none;-moz-transition:-moz-transform .1s cubic-bezier(0, 0, .2, 1);-webkit-transition:-webkit-transform .1s cubic-bezier(0, 0, .2, 1);-ms-transition:-ms-transform .1s cubic-bezier(0, 0, .2, 1);transition:transform .1s cubic-bezier(0, 0, .2, 1)}.op-progressbar-hover .op-progressbar-time{display:inline-block}.op-on-error .op-progressbar-time{display:none}.op-progressbar-section-start,.op-progressbar-section-end{display:none;position:absolute;width:3px;height:14px;bottom:-5px;background-color:#50e3c2}.op-progressbar-preview{position:absolute;display:none;bottom:50px;border:2px solid #fff;border-radius:2px;background-color:#000;z-index:1020}.op-play-controller{margin-left:15px}.op-play-button{position:relative}.op-play-button .op-play-button-playicon{background:url('+n(A(191))+")}.op-play-button .op-play-button-pauseicon{background:url("+n(A(192))+")}.op-seek-button{position:relative;top:0px}.op-seek-button.op-seek-button-back{margin-left:12px}.op-seek-button.op-seek-button-forward{margin-left:6px}.op-seek-button i{font-size:26px}.op-seek-button span{position:absolute;top:9px;left:9px;font-size:10px;cursor:pointer}.op-volume-controller{display:inline-block;position:relative;margin-left:12px}.op-volume-controller:after{content:'';clear:both}.op-volume-controller .op-volume-button{float:left}@-webkit-keyframes slide{100%{left:0}}@keyframes slide{100%{left:0}}.op-volume-controller .op-volume-slider-container{float:left;opacity:0;position:relative;width:0px;margin-right:0;line-height:30px;height:30px;cursor:pointer;user-select:none;outline:none}.op-volume-controller .op-volume-slider-container.active{width:70px;opacity:1;margin-left:8px;-moz-transition:opacity .4s cubic-bezier(0, 0, .2, 1);-webkit-transition:opacity .4s cubic-bezier(0, 0, .2, 1);transition:opacity .4s cubic-bezier(0, 0, .2, 1)}.op-volume-controller .op-volume-slider-container .op-volume-silder{height:100%;position:relative}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg,.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{position:absolute;display:block;left:0;top:50%;height:4px;margin-top:-2px;border-radius:10px}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg{width:100%;background:#fff}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{width:100%;background:#50e3c2;border-radius:10px 0 0 10px;-moz-transition:width .2s cubic-bezier(0, 0, .2, 1);-webkit-transition:width .2s cubic-bezier(0, 0, .2, 1);transition:width .2s cubic-bezier(0, 0, .2, 1)}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-handle{position:absolute;top:50%;left:30px;width:12px;height:12px;border-radius:10px;margin-top:-6px;background:#fff;-moz-transition:left .2s cubic-bezier(0, 0, .2, 1);-webkit-transition:left .2s cubic-bezier(0, 0, .2, 1);transition:left .2s cubic-bezier(0, 0, .2, 1)}.op-time-display{float:left;position:relative;margin-left:14px;height:30px;line-height:30px;white-space:nowrap;vertical-align:top;font-size:14px;user-select:none}.op-time-display .op-time-current,.op-time-display .op-time-separator,.op-time-display .op-time-duration{color:#fff}.op-time-display .op-live-badge{opacity:1;width:auto;display:inline-block}.op-time-display .op-live-badge:before{background:#ff0000;display:inline-block;position:relative;top:-2px;width:6px;height:6px;margin-right:5px;content:'';border-radius:6px}.op-time-display .op-live-badge .op-live-badge-lowlatency{display:inline-block;margin-right:5px}.op-context-panel{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;overflow:hidden;width:200px;padding:6px 0;background:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);font-weight:lighter;user-select:none}.op-context-panel:before,.op-context-panel:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel *,.op-context-panel *:before,.op-context-panel *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel .op-context-item{width:100%;height:38px;padding-left:12px;line-height:38px;color:#eee;cursor:pointer;outline:none;font-size:.8em;font-weight:lighter;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.op-context-panel .op-context-item:hover{background-color:rgba(255,255,255,0.1)}.op-fullscreen-button{position:relative;margin-right:15px}.op-fullscreen-button .op-fullscreen-compress{display:none}.op-spinner-container{position:absolute;top:50%;width:64px;left:50%;margin-left:-32px;margin-top:-32px;z-index:1009;display:none}.op-spinner-container .op-spinner{display:inline-block;position:relative;width:64px;height:64px;border:4px solid transparent;border-top:4px solid #50e3c2;border-radius:50%;animation:spin 1.2s cubic-bezier(.5, 0, .5, 1) infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.op-caption-viewer .op-caption-text-container{position:absolute;bottom:60px;width:100%;padding:0 12px;text-align:center;-moz-transition:bottom .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:bottom .25s cubic-bezier(0, 0, .2, 1);transition:bottom .25s cubic-bezier(0, 0, .2, 1)}.op-caption-viewer .op-caption-text-container .op-caption-text{font-size:1em;line-height:1.2em;text-shadow:2px 2px 2px gray;color:#fff;padding:.1em .3em;user-select:none;word-break:break-word;white-space:pre-line}.op-caption-button{width:36px}.op-caption-button>i{font-size:18px;-moz-transition:color .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:color .25s cubic-bezier(0, 0, .2, 1);transition:color .25s cubic-bezier(0, 0, .2, 1)}.op-caption-active .op-caption-button>i{color:#F36446}.op-wrapper.ovenplayer.large{font-size:14px}.op-wrapper.ovenplayer.large .op-caption-text{font-size:2em;line-height:2em}.op-wrapper.ovenplayer.medium{font-size:12px}.op-wrapper.ovenplayer.medium .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small{font-size:10px}.op-wrapper.ovenplayer.small .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small .op-playlist{padding:1rem}.op-wrapper.ovenplayer.small .op-playlist .op-playlist-card{margin:5px 0}.op-wrapper.ovenplayer.xsmall{font-size:10px}.op-wrapper.ovenplayer.xsmall .op-bigbutton-container{margin-top:-20px;margin-left:-20px}.op-wrapper.ovenplayer.xsmall .op-bigbutton-container .op-bigbutton{width:40px;height:40px;font-size:40px;line-height:40px}.op-wrapper.ovenplayer.xsmall .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.xsmall .op-playlist{padding:1rem}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-header{font-size:2em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card{margin:5px 0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;padding:0 6em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card .op-playlist-card-title{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container{top:50%;font-weight:bold}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon .op-con{font-size:40px;width:40px;height:40px;line-height:40px}.op-wrapper.ovenplayer.xsmall .op-ads-button{bottom:22px}.op-wrapper.ovenplayer.xsmall .op-ads-button .videoAdUiAction{padding:4px;font-size:14px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel{height:34px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls{top:4px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-left-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-right-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-ads{top:0;bottom:0}.op-wrapper.ovenplayer.linear-ad .op-button i.op-con{width:24px;height:24px;font-size:24px}.op-wrapper.ovenplayer.linear-ad .op-controls-container .op-bottom-panel .op-progressbar-container{bottom:30px}@keyframes fade{from{opacity:.3}55%{opacity:1}75%{opacity:1}to{opacity:.3}}@-webkit-keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.5, .5, .5);transform:scale3d(.5, .5, .5)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}@keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.3, .3, .3);transform:scale3d(.3, .3, .3)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}.op-player .bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.op-player .fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}.op-player .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media (prefers-reduced-motion){.op-player .animated{-webkit-animation:unset !important;animation:unset !important;-webkit-transition:none !important;transition:none !important}}",""])},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var A=function(t,e){var A=t[1]||"",n=t[3];if(!n)return A;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),o=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[A].concat(o).concat([r]).join("\n")}return[A].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+A+"}":A}).join("")},e.i=function(t,A){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r=0&&a.splice(e,1)}function p(t){var e=document.createElement("style");return void 0===t.attrs.type&&(t.attrs.type="text/css"),d(e,t.attrs),f(t,e),e}function d(t,e){Object.keys(e).forEach(function(A){t.setAttribute(A,e[A])})}function y(t,e){var A,n,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=s++;A=i||(i=p(e)),n=w.bind(null,A,a,!1),r=w.bind(null,A,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(A=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",d(e,t.attrs),f(t,e),e}(e),n=function(t,e,A){var n=A.css,r=A.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(n=u(n));r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}.bind(null,A,e),r=function(){g(A),A.href&&URL.revokeObjectURL(A.href)}):(A=p(e),n=function(t,e){var A=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=A;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(A))}}.bind(null,A),r=function(){g(A)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var A=c(t,e);return l(A,e),function(t){for(var r=[],o=0;o=0&&e.item(A)!==this;);return A>-1})),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){var e,A=(this.document||this.ownerDocument).querySelectorAll(t),n=this;do{for(e=A.length;--e>=0&&A.item(e)!==n;);}while(e<0&&(n=n.parentElement));return n});var e={prepend:function(){var t=[].slice.call(arguments);t=r(t),this.insertBefore(t,this.firstChild)},append:function(){var t=[].slice.call(arguments);t=r(t),this.appendChild(t)}};n(t.Document||t.HTMLDocument,e),n(t.DocumentFragment,e),n(t.Element,e);var A={before:function(){var t=[].slice.call(arguments),e=this.parentNode;if(e){for(var A=this.previousSibling;-1!==t.indexOf(A);)A=A.previousSibling;var n=r(t);e.insertBefore(n,A?A.nextSibling:e.firstChild)}},after:function(){var t=[].slice.call(arguments),e=this.parentNode;if(e){for(var A=this.nextSibling;-1!==t.indexOf(A);)A=A.nextSibling;var n=r(t);e.insertBefore(n,A)}},replaceWith:function(){var t=[].slice.call(arguments),e=this.parentNode;if(e){for(var A=this.nextSibling;-1!==t.indexOf(A);)A=A.nextSibling;var n=r(t);this.parentNode===e?e.replaceChild(n,this):e.insertBefore(n,A)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}};n(t.DocumentType,A),n(t.Element,A),n(t.CharacterData,A)}function n(t,e){t&&Object.keys(e).forEach(function(A){if(!(A in t||A in t.prototype))try{Object.defineProperty(t.prototype,A,Object.getOwnPropertyDescriptor(e,A))}catch(n){t[A]=e[A]}})}function r(t){var e=null;return 1===(t=t.map(function(t){return t instanceof Node?t:document.createTextNode(t)})).length?e=t[0]:(e=document.createDocumentFragment(),t.forEach(function(t){e.appendChild(t)})),e}}(self)},function(t,e,A){"use strict";var n=A(0),r=A(54),o=A(88),i=A(3),s=A(41),a=A(10),u=A(2),l=A(4).ArrayBuffer,c=A(55),f=o.ArrayBuffer,g=o.DataView,p=r.ABV&&l.isView,d=f.prototype.slice,y=r.VIEW;n(n.G+n.W+n.F*(l!==f),{ArrayBuffer:f}),n(n.S+n.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||u(t)&&y in t}}),n(n.P+n.U+n.F*A(9)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(i(this),t);for(var A=i(this).byteLength,n=s(t,A),r=s(void 0===e?A:e,A),o=new(c(this,f))(a(r-n)),u=new g(this),l=new g(o),p=0;na;)n.f(t,A=i[a++],e[A]);return t}},function(t,e,A){var n=A(202);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,A){var n=A(2),r=A(114),o=A(8)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,A){"use strict";var n=A(50),r=A(29),o=A(42),i={};A(14)(i,A(8)("iterator"),function(){return this}),t.exports=function(t,e,A){t.prototype=n(i,{next:r(1,A)}),o(t,e+" Iterator")}},function(t,e,A){A(21)("Uint8",1,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Uint8",1,function(t){return function(e,A,n){return t(this,e,A,n)}},!0)},function(t,e,A){A(21)("Int16",2,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Uint16",2,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Int32",4,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Uint32",4,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Float32",4,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){A(21)("Float64",8,function(t){return function(e,A,n){return t(this,e,A,n)}})},function(t,e,A){"use strict";var n=A(118),r=A(35);t.exports=A(60)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(r(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,A){var n=A(2),r=A(97).set;t.exports=function(t,e,A){var o,i=e.constructor;return i!==A&&"function"==typeof i&&(o=i.prototype)!==A.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,A){"use strict";var n=A(118),r=A(35);t.exports=A(60)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,A){"use strict";var n,r=A(4),o=A(51)(0),i=A(23),s=A(25),a=A(120),u=A(121),l=A(2),c=A(35),f=A(35),g=!r.ActiveXObject&&"ActiveXObject"in r,p=s.getWeak,d=Object.isExtensible,y=u.ufstore,E=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},w={get:function(t){if(l(t)){var e=p(t);return!0===e?y(c(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(c(this,"WeakMap"),t,e)}},h=t.exports=A(60)("WeakMap",E,w,u,!0,!0);f&&g&&(a((n=u.getConstructor(E,"WeakMap")).prototype,w),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=h.prototype,A=e[t];i(e,t,function(e,r){if(l(e)&&!d(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return A.call(this,e,r)})}))},function(t,e,A){"use strict";var n=A(121),r=A(35);A(60)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,A){var n=A(0),r=A(32),o=A(3),i=(A(4).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!A(9)(function(){i(function(){})}),"Reflect",{apply:function(t,e,A){var n=r(t),a=o(A);return i?i(n,e,a):s.call(n,e,a)}})},function(t,e,A){var n=A(0),r=A(50),o=A(32),i=A(3),s=A(2),a=A(9),u=A(219),l=(A(4).Reflect||{}).construct,c=a(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),f=!a(function(){l(function(){})});n(n.S+n.F*(c||f),"Reflect",{construct:function(t,e){o(t),i(e);var A=arguments.length<3?t:o(arguments[2]);if(f&&!c)return l(t,e,A);if(t==A){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(u.apply(t,n))}var a=A.prototype,g=r(s(a)?a:Object.prototype),p=Function.apply.call(t,g,e);return s(p)?p:g}})},function(t,e,A){"use strict";var n=A(32),r=A(2),o=A(122),i=[].slice,s={};t.exports=Function.bind||function(t){var e=n(this),A=i.call(arguments,1),a=function(){var n=A.concat(i.call(arguments));return this instanceof a?function(t,e,A){if(!(e in s)){for(var n=[],r=0;ro;)i(A[o++]);t._c=[],t._n=!1,e&&!t._h&&Y(t)})}},Y=function(t){E.call(a,function(){var e,A,n,r=t._v,o=F(t);if(o&&(e=I(function(){Q?b.emit("unhandledRejection",r,t):(A=a.onunhandledrejection)?A({promise:t,reason:r}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=Q||F(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},O=function(t){E.call(a,function(){var e;Q?b.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),S(e,!0))},j=function(t){var e,A=this;if(!A._d){A._d=!0,A=A._w||A;try{if(A===t)throw v("Promise can't be resolved itself");(e=x(t))?w(function(){var n={_w:A,_d:!1};try{e.call(t,u(j,n,1),u(R,n,1))}catch(t){R.call(n,t)}}):(A._v=t,A._s=1,S(A,!1))}catch(t){R.call({_w:A,_d:!1},t)}}};T||(L=function(t){p(this,L,"Promise","_h"),g(t),n.call(this);try{t(u(j,this,1),u(R,this,1))}catch(t){R.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=A(38)(L.prototype,{then:function(t,e){var A=N(y(this,L));return A.ok="function"!=typeof t||t,A.fail="function"==typeof e&&e,A.domain=Q?b.domain:void 0,this._c.push(A),this._a&&this._a.push(A),this._s&&S(this,!1),A.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(j,t,1),this.reject=u(R,t,1)},h.f=N=function(t){return t===L||t===i?new o(t):r(t)}),c(c.G+c.W+c.F*!T,{Promise:L}),A(42)(L,"Promise"),A(56)("Promise"),i=A(28).Promise,c(c.S+c.F*!T,"Promise",{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(s||!T),"Promise",{resolve:function(t){return B(s&&this===i?L:this,t)}}),c(c.S+c.F*!(T&&A(58)(function(t){L.all(t).catch(D)})),"Promise",{all:function(t){var e=this,A=N(e),n=A.resolve,r=A.reject,o=I(function(){var A=[],o=0,i=1;d(t,!1,function(t){var s=o++,a=!1;A.push(void 0),i++,e.resolve(t).then(function(t){a||(a=!0,A[s]=t,--i||n(A))},r)}),--i||n(A)});return o.e&&r(o.v),A.promise},race:function(t){var e=this,A=N(e),n=A.reject,r=I(function(){d(t,!1,function(t){e.resolve(t).then(A.resolve,n)})});return r.e&&n(r.v),A.promise}})},function(t,e,A){var n=A(4),r=A(98).set,o=n.MutationObserver||n.WebKitMutationObserver,i=n.process,s=n.Promise,a="process"==A(40)(i);t.exports=function(){var t,e,A,u=function(){var n,r;for(a&&(n=i.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?A():e=void 0,n}}e=void 0,n&&n.enter()};if(a)A=function(){i.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);A=function(){l.then(u)}}else A=function(){r.call(n,u)};else{var c=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),A=function(){f.data=c=!c}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,A()),e=r}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,A){var n=A(3),r=A(2),o=A(124);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var A=o.f(t);return(0,A.resolve)(e),A.promise}},function(t,e,A){"use strict";var n=A(4),r=A(15),o=A(12),i=A(0),s=A(23),a=A(25).KEY,u=A(9),l=A(53),c=A(42),f=A(30),g=A(8),p=A(125),d=A(236),y=A(237),E=A(114),w=A(3),h=A(2),I=A(16),M=A(17),B=A(48),v=A(29),b=A(50),m=A(126),C=A(22),L=A(61),Q=A(11),D=A(34),N=C.f,T=Q.f,x=m.f,S=n.Symbol,Y=n.JSON,F=Y&&Y.stringify,O=g("_hidden"),R=g("toPrimitive"),j={}.propertyIsEnumerable,k=l("symbol-registry"),G=l("symbols"),U=l("op-symbols"),z=Object.prototype,W="function"==typeof S&&!!L.f,P=n.QObject,_=!P||!P.prototype||!P.prototype.findChild,Z=o&&u(function(){return 7!=b(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,A){var n=N(z,e);n&&delete z[e],T(t,e,A),n&&t!==z&&T(z,e,n)}:T,H=function(t){var e=G[t]=b(S.prototype);return e._k=t,e},J=W&&"symbol"==typeof S.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof S},V=function(t,e,A){return t===z&&V(U,e,A),w(t),e=B(e,!0),w(A),r(G,e)?(A.enumerable?(r(t,O)&&t[O][e]&&(t[O][e]=!1),A=b(A,{enumerable:v(0,!1)})):(r(t,O)||T(t,O,v(1,{})),t[O][e]=!0),Z(t,e,A)):T(t,e,A)},K=function(t,e){w(t);for(var A,n=y(e=M(e)),r=0,o=n.length;o>r;)V(t,A=n[r++],e[A]);return t},X=function(t){var e=j.call(this,t=B(t,!0));return!(this===z&&r(G,t)&&!r(U,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,O)&&this[O][t])||e)},q=function(t,e){if(t=M(t),e=B(e,!0),t!==z||!r(G,e)||r(U,e)){var A=N(t,e);return!A||!r(G,e)||r(t,O)&&t[O][e]||(A.enumerable=!0),A}},$=function(t){for(var e,A=x(M(t)),n=[],o=0;A.length>o;)r(G,e=A[o++])||e==O||e==a||n.push(e);return n},tt=function(t){for(var e,A=t===z,n=x(A?U:M(t)),o=[],i=0;n.length>i;)!r(G,e=n[i++])||A&&!r(z,e)||o.push(G[e]);return o};W||(s((S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(A){this===z&&e.call(U,A),r(this,O)&&r(this[O],t)&&(this[O][t]=!1),Z(this,t,v(1,A))};return o&&_&&Z(z,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",function(){return this._k}),C.f=q,Q.f=V,A(49).f=m.f=$,A(52).f=X,L.f=tt,o&&!A(31)&&s(z,"propertyIsEnumerable",X,!0),p.f=function(t){return H(g(t))}),i(i.G+i.W+i.F*!W,{Symbol:S});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),At=0;et.length>At;)g(et[At++]);for(var nt=D(g.store),rt=0;nt.length>rt;)d(nt[rt++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return r(k,t+="")?k[t]:k[t]=S(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in k)if(k[e]===t)return e},useSetter:function(){_=!0},useSimple:function(){_=!1}}),i(i.S+i.F*!W,"Object",{create:function(t,e){return void 0===e?b(t):K(b(t),e)},defineProperty:V,defineProperties:K,getOwnPropertyDescriptor:q,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var ot=u(function(){L.f(1)});i(i.S+i.F*ot,"Object",{getOwnPropertySymbols:function(t){return L.f(I(t))}}),Y&&i(i.S+i.F*(!W||u(function(){var t=S();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,A,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(A=e=n[1],(h(e)||void 0!==t)&&!J(t))return E(e)||(e=function(t,e){if("function"==typeof A&&(e=A.call(this,t,e)),!J(e))return e}),n[1]=e,F.apply(Y,n)}}),S.prototype[R]||A(14)(S.prototype,R,S.prototype.valueOf),c(S,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(t,e,A){var n=A(4),r=A(28),o=A(31),i=A(125),s=A(11).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,A){var n=A(34),r=A(61),o=A(52);t.exports=function(t){var e=n(t),A=r.f;if(A)for(var i,s=A(t),a=o.f,u=0;s.length>u;)a.call(t,i=s[u++])&&e.push(i);return e}},function(t,e,A){var n=A(2),r=A(25).onFreeze;A(18)("freeze",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,A){var n=A(2),r=A(25).onFreeze;A(18)("seal",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,A){var n=A(2),r=A(25).onFreeze;A(18)("preventExtensions",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,A){var n=A(2);A(18)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,A){var n=A(2);A(18)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,A){var n=A(2);A(18)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,A){var n=A(17),r=A(22).f;A(18)("getOwnPropertyDescriptor",function(){return function(t,e){return r(n(t),e)}})},function(t,e,A){var n=A(16),r=A(44);A(18)("getPrototypeOf",function(){return function(t){return r(n(t))}})},function(t,e,A){var n=A(16),r=A(34);A(18)("keys",function(){return function(t){return r(n(t))}})},function(t,e,A){A(18)("getOwnPropertyNames",function(){return A(126).f})},function(t,e,A){var n=A(0);n(n.S+n.F,"Object",{assign:A(120)})},function(t,e,A){var n=A(0);n(n.S,"Object",{is:A(127)})},function(t,e,A){var n=A(0);n(n.S,"Object",{setPrototypeOf:A(97).set})},function(t,e,A){var n=A(11).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||A(12)&&n(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,A){var n=A(0),r=A(17),o=A(10);n(n.S,"String",{raw:function(t){for(var e=r(t.raw),A=o(e.length),n=arguments.length,i=[],s=0;A>s;)i.push(String(e[s++])),si;){if(e=+arguments[i++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");A.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return A.join("")}})},function(t,e,A){"use strict";var n=A(0),r=A(128)(!1);n(n.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,A){var n=A(0);n(n.P,"String",{repeat:A(129)})},function(t,e,A){"use strict";var n=A(0),r=A(10),o=A(99),i="".startsWith;n(n.P+n.F*A(100)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),A=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return i?i.call(e,n,A):e.slice(A,A+n.length)===n}})},function(t,e,A){"use strict";var n=A(0),r=A(10),o=A(99),i="".endsWith;n(n.P+n.F*A(100)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),A=arguments.length>1?arguments[1]:void 0,n=r(e.length),s=void 0===A?n:Math.min(r(A),n),a=String(t);return i?i.call(e,a,s):e.slice(s-a.length,s)===a}})},function(t,e,A){"use strict";var n=A(0),r=A(99);n(n.P+n.F*A(100)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,A){A(12)&&"g"!=/./g.flags&&A(11).f(RegExp.prototype,"flags",{configurable:!0,get:A(131)})},function(t,e,A){"use strict";var n=A(3),r=A(10),o=A(101),i=A(63);A(64)("match",1,function(t,e,A,s){return[function(A){var n=t(this),r=void 0==A?void 0:A[e];return void 0!==r?r.call(A,n):new RegExp(A)[e](String(n))},function(t){var e=s(A,t,this);if(e.done)return e.value;var a=n(t),u=String(this);if(!a.global)return i(a,u);var l=a.unicode;a.lastIndex=0;for(var c,f=[],g=0;null!==(c=i(a,u));){var p=String(c[0]);f[g]=p,""===p&&(a.lastIndex=o(u,r(a.lastIndex),l)),g++}return 0===g?null:f}]})},function(t,e,A){"use strict";var n=A(102);A(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(t,e,A){"use strict";var n=A(3),r=A(16),o=A(10),i=A(24),s=A(101),a=A(63),u=Math.max,l=Math.min,c=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,g=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};A(64)("replace",2,function(t,e,A,d){return[function(n,r){var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):A.call(String(o),n,r)},function(t,e){var r=d(A,t,this,e);if(r.done)return r.value;var c=n(t),f=String(this),g="function"==typeof e;g||(e=String(e));var E=c.global;if(E){var w=c.unicode;c.lastIndex=0}for(var h=[];;){var I=a(c,f);if(null===I)break;if(h.push(I),!E)break;""===String(I[0])&&(c.lastIndex=s(f,o(c.lastIndex),w))}for(var M="",B=0,v=0;v=B&&(M+=f.slice(B,m)+N,B=m+b.length)}return M+f.slice(B)}];function y(t,e,n,o,i,s){var a=n+t.length,u=o.length,l=g;return void 0!==i&&(i=r(i),l=f),A.call(s,l,function(A,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":s=i[r.slice(1,-1)];break;default:var l=+r;if(0===l)return A;if(l>u){var f=c(l/10);return 0===f?A:f<=u?void 0===o[f-1]?r.charAt(1):o[f-1]+r.charAt(1):A}s=o[l-1]}return void 0===s?"":s})}})},function(t,e,A){"use strict";var n=A(130),r=A(3),o=A(55),i=A(101),s=A(10),a=A(63),u=A(102),l=A(9),c=Math.min,f=[].push,g=!l(function(){RegExp(4294967295,"y")});A(64)("split",2,function(t,e,A,l){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!n(t))return A.call(r,t,e);for(var o,i,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,g=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,l+"g");(o=u.call(p,r))&&!((i=p.lastIndex)>c&&(a.push(r.slice(c,o.index)),o.length>1&&o.index=g));)p.lastIndex===o.index&&p.lastIndex++;return c===r.length?!s&&p.test("")||a.push(""):a.push(r.slice(c)),a.length>g?a.slice(0,g):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:A.call(this,t,e)}:A,[function(A,n){var r=t(this),o=void 0==A?void 0:A[e];return void 0!==o?o.call(A,r,n):p.call(String(r),A,n)},function(t,e){var n=l(p,t,this,e,p!==A);if(n.done)return n.value;var u=r(t),f=String(this),d=o(u,RegExp),y=u.unicode,E=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),w=new d(g?u:"^(?:"+u.source+")",E),h=void 0===e?4294967295:e>>>0;if(0===h)return[];if(0===f.length)return null===a(w,f)?[f]:[];for(var I=0,M=0,B=[];M1?arguments[1]:void 0,y=void 0!==d,E=0,w=l(f);if(y&&(d=n(d,p>2?arguments[2]:void 0,2)),void 0==w||g==Array&&s(w))for(A=new g(e=a(f.length));e>E;E++)u(A,E,y?d(f[E],E):f[E]);else for(c=w.call(f),A=new g;!(r=c.next()).done;E++)u(A,E,y?i(c,d,[r.value,E],!0):r.value);return A.length=E,A}})},function(t,e,A){"use strict";var n=A(0),r=A(103);n(n.S+n.F*A(9)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,A=new("function"==typeof this?this:Array)(e);e>t;)r(A,t,arguments[t++]);return A.length=e,A}})},function(t,e,A){var n=A(0);n(n.P,"Array",{copyWithin:A(117)}),A(45)("copyWithin")},function(t,e,A){"use strict";var n=A(0),r=A(51)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),A(45)("find")},function(t,e,A){"use strict";var n=A(0),r=A(51)(6),o="findIndex",i=!0;o in[]&&Array(1)[o](function(){i=!1}),n(n.P+n.F*i,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),A(45)(o)},function(t,e,A){var n=A(0);n(n.P,"Array",{fill:A(93)}),A(45)("fill")},function(t,e,A){var n=A(0),r=A(4).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,A){var n=A(0);n(n.S,"Number",{isInteger:A(132)})},function(t,e,A){var n=A(0),r=A(132),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,A){var n=A(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,A){var n=A(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,A){var n=A(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,A){var n=A(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,A){var n=A(0),r=A(133),o=Math.sqrt,i=Math.acosh;n(n.S+n.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e,A){var n=A(0),r=Math.asinh;n(n.S+n.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,A){var n=A(0),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,A){var n=A(0),r=A(104);n(n.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,A){var n=A(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,A){var n=A(0),r=Math.exp;n(n.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,A){var n=A(0),r=A(105);n(n.S+n.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e,A){var n=A(0);n(n.S,"Math",{fround:A(286)})},function(t,e,A){var n=A(104),r=Math.pow,o=r(2,-52),i=r(2,-23),s=r(2,127)*(2-i),a=r(2,-126);t.exports=Math.fround||function(t){var e,A,r=Math.abs(t),u=n(t);return rs||A!=A?u*(1/0):u*A}},function(t,e,A){var n=A(0),r=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var A,n,o=0,i=0,s=arguments.length,a=0;i0?(n=A/a)*n:A;return a===1/0?1/0:a*Math.sqrt(o)}})},function(t,e,A){var n=A(0),r=Math.imul;n(n.S+n.F*A(9)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var A=+t,n=+e,r=65535&A,o=65535&n;return 0|r*o+((65535&A>>>16)*o+r*(65535&n>>>16)<<16>>>0)}})},function(t,e,A){var n=A(0);n(n.S,"Math",{log1p:A(133)})},function(t,e,A){var n=A(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,A){var n=A(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,A){var n=A(0);n(n.S,"Math",{sign:A(104)})},function(t,e,A){var n=A(0),r=A(105),o=Math.exp;n(n.S+n.F*A(9)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,A){var n=A(0),r=A(105),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=r(t=+t),A=r(-t);return e==1/0?1:A==1/0?-1:(e-A)/(o(t)+o(-t))}})},function(t,e,A){var n=A(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,A){"use strict";var n=A(0),r=A(90)(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),A(45)("includes")},function(t,e,A){var n=A(0),r=A(134)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},function(t,e,A){var n=A(0),r=A(134)(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},function(t,e,A){var n=A(0),r=A(123),o=A(17),i=A(22),s=A(103);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,A,n=o(t),a=i.f,u=r(n),l={},c=0;u.length>c;)void 0!==(A=a(n,e=u[c++]))&&s(l,e,A);return l}})},function(t,e,A){"use strict";var n=A(0),r=A(135),o=A(62),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*i,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,A){"use strict";var n=A(0),r=A(135),o=A(62),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*i,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,A){var n=A(4),r=A(0),o=A(62),i=[].slice,s=/MSIE .\./.test(o),a=function(t){return function(e,A){var n=arguments.length>2,r=!!n&&i.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,A)}};r(r.G+r.B+r.F*s,{setTimeout:a(n.setTimeout),setInterval:a(n.setInterval)})},function(t,e,A){var n=A(0),r=A(98);n(n.G+n.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,A){for(var n=A(96),r=A(34),o=A(23),i=A(4),s=A(14),a=A(43),u=A(8),l=u("iterator"),c=u("toStringTag"),f=a.Array,g={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(g),d=0;d=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--A){var n=this.tryEntries[A];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var A=this.tryEntries[e];if(A.finallyLoc===t)return this.complete(A.completion,A.afterLoc),D(A),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var A=this.tryEntries[e];if(A.tryLoc===t){var n=A.completion;if("throw"===n.type){var r=n.arg;D(A)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=A),d}}}function I(t,e,A,n){var r=e&&e.prototype instanceof B?e:B,o=Object.create(r.prototype),i=new N(n||[]);return o._invoke=function(t,e,A){var n=c;return function(r,o){if(n===g)throw new Error("Generator is already running");if(n===p){if("throw"===r)throw o;return x()}for(A.method=r,A.arg=o;;){var i=A.delegate;if(i){var s=L(i,A);if(s){if(s===d)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===c)throw n=p,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=g;var a=M(t,e,A);if("normal"===a.type){if(n=A.done?p:f,a.arg===d)continue;return{value:a.arg,done:A.done}}"throw"===a.type&&(n=p,A.method="throw",A.arg=a.arg)}}}(t,A,i),o}function M(t,e,A){try{return{type:"normal",arg:t.call(e,A)}}catch(t){return{type:"throw",arg:t}}}function B(){}function v(){}function b(){}function m(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function C(t){var e;this._invoke=function(A,n){function o(){return new Promise(function(e,o){!function e(A,n,o,i){var s=M(t[A],t,n);if("throw"!==s.type){var a=s.arg,u=a.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(u).then(function(t){a.value=t,o(a)},i)}i(s.arg)}(A,n,e,o)})}return e=e?e.then(o,o):o()}}function L(t,e){var n=t.iterator[e.method];if(n===A){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=A,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=M(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=A),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function Q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Q,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=n&&i0&&l.seek(n)),n>0&&(l.seek(n),t.isAutoStart()),t.isAutoStart()}};return l.getName=function(){return e.name},l.canSeek=function(){return e.canSeek},l.setCanSeek=function(t){e.canSeek=t},l.isSeeking=function(){return e.seeking},l.setSeeking=function(t){e.seeking=t},l.setMetaLoaded=function(){e.isLoaded=!0},l.metaLoaded=function(){return e.isLoaded},l.setState=function(t){if(e.state!==t){var r=e.state;if(OvenPlayerConsole.log("Provider : setState()",t),r===s.STATE_AD_PLAYING&&(t===s.STATE_ERROR||t===s.STATE_IDLE))return!1;switch(OvenPlayerConsole.log("Provider : triggerSatatus",t),t){case s.STATE_COMPLETE:l.trigger(s.PLAYER_COMPLETE);break;case s.STATE_PAUSED:l.trigger(s.PLAYER_PAUSE,{prevState:e.state,newstate:s.STATE_PAUSED});break;case s.STATE_AD_PAUSED:l.trigger(s.PLAYER_PAUSE,{prevState:e.state,newstate:s.STATE_AD_PAUSED});break;case s.STATE_PLAYING:l.trigger(s.PLAYER_PLAY,{prevState:e.state,newstate:s.STATE_PLAYING});case s.STATE_AD_PLAYING:l.trigger(s.PLAYER_PLAY,{prevState:e.state,newstate:s.STATE_AD_PLAYING})}e.state=t,l.trigger(s.PLAYER_STATE,{prevstate:r,newstate:e.state})}},l.getState=function(){return e.state},l.setBuffer=function(t){e.buffer=t},l.getBuffer=function(){return e.buffer},l.isLive=function(){return!!e.isLive||c.duration===1/0},l.getDuration=function(){return l.isLive()?1/0:c.duration},l.getPosition=function(){return c?c.currentTime:0},l.setVolume=function(e){if(!c)return!1;c.volume=e/100},l.getVolume=function(){return c?100*c.volume:0},l.setMute=function(e){return!!c&&(void 0===e?(c.muted=!c.muted,l.trigger(s.CONTENT_MUTE,{mute:c.muted})):(c.muted=e,l.trigger(s.CONTENT_MUTE,{mute:c.muted})),c.muted)},l.getMute=function(){return!!c&&c.muted},l.preload=function(r,n){return e.sources=r,e.currentSource=(0,u.pickCurrentSource)(r,e.currentSource,t),E(n||0),new Promise(function(e,r){t.isMute()&&l.setMute(!0),t.getVolume()&&l.setVolume(t.getVolume()),e()})},l.load=function(r){e.sources=r,e.currentSource=(0,u.pickCurrentSource)(r,e.currentSource,t),E(e.sources.starttime||0)},l.play=function(){if(OvenPlayerConsole.log("Provider : play()"),!c)return!1;if(l.getState()!==s.STATE_PLAYING)if(d&&d.isActive()||d&&!d.started())d.play().then(function(e){OvenPlayerConsole.log("Provider : ads play success")}).catch(function(e){OvenPlayerConsole.log("Provider : ads play fail",e)});else{var e=c.play();void 0!==e?e.then(function(){OvenPlayerConsole.log("Provider : video play success")}).catch(function(e){OvenPlayerConsole.log("Provider : video play error",e.message)}):OvenPlayerConsole.log("Provider : video play success (ie)")}},l.pause=function(){if(OvenPlayerConsole.log("Provider : pause()"),!c)return!1;l.getState()===s.STATE_PLAYING?c.pause():l.getState()===s.STATE_AD_PLAYING&&d.pause()},l.seek=function(e){if(!c)return!1;c.currentTime=e},l.setPlaybackRate=function(e){return!!c&&(l.trigger(s.PLAYBACK_RATE_CHANGED,{playbackRate:e}),c.playbackRate=c.defaultPlaybackRate=e)},l.getPlaybackRate=function(){return c?c.playbackRate:0},l.getSources=function(){return c?e.sources.map(function(e,t){var r={file:e.file,type:e.type,label:e.label,index:t,sectionStart:e.sectionStart,sectionEnd:e.sectionEnd,gridThumbnail:e.gridThumbnail};return e.lowLatency&&(r.lowLatency=e.lowLatency),r}):[]},l.getCurrentSource=function(){return e.currentSource},l.setCurrentSource=function(r,n){if(r>-1&&e.sources&&e.sources.length>r)return OvenPlayerConsole.log("source changed : "+r),e.currentSource=r,l.trigger(s.CONTENT_SOURCE_CHANGED,{currentSource:r}),t.setSourceIndex(r),l.setState(s.STATE_IDLE),n&&E(c.currentTime||0),e.currentSource},l.getQualityLevels=function(){return c?e.qualityLevels:[]},l.getCurrentQuality=function(){return c?e.currentQuality:null},l.setCurrentQuality=function(e){},l.isAutoQuality=function(){},l.setAutoQuality=function(e){},l.getFramerate=function(){return e.framerate},l.setFramerate=function(t){return e.framerate=t},l.seekFrame=function(t){var r=e.framerate,n=(c.currentTime*r+t)/r;n+=1e-5,l.pause(),l.seek(n)},l.stop=function(){if(!c)return!1;for(OvenPlayerConsole.log("CORE : stop() "),c.removeAttribute("preload"),c.removeAttribute("src");c.firstChild;)c.removeChild(c.firstChild);l.pause(),l.setState(s.STATE_IDLE)},l.destroy=function(){if(!c)return!1;l.stop(),g.destroy(),d&&(d.destroy(),d=null),l.off(),OvenPlayerConsole.log("CORE : destroy() player stop, listener, event destroied")},l.super=function(e){var t=l[e];return function(){return t.apply(l,arguments)}},l}},311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(306);t.default=function(e,t,r){var a={};OvenPlayerConsole.log("EventListener loaded.",e,t);var i={},u=-1,s=e;return a.canplay=function(){t.setCanSeek(!0),t.trigger(n.CONTENT_BUFFER_FULL),OvenPlayerConsole.log("EventListener : on canplay")},a.durationchange=function(){a.progress(),OvenPlayerConsole.log("EventListener : on durationchange")},a.ended=function(){OvenPlayerConsole.log("EventListener : on ended"),t.getState()!==n.STATE_IDLE&&t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&(r?r(function(){t.setState(n.STATE_COMPLETE)}):t.setState(n.STATE_COMPLETE))},a.loadeddata=function(){},a.loadedmetadata=function(){var e=t.getSources(),r=t.getCurrentSource(),o=r>-1?e[r].type:"",a={duration:t.isLive()?1/0:s.duration,type:o};t.setMetaLoaded(),OvenPlayerConsole.log("EventListener : on loadedmetadata",a),t.trigger(n.CONTENT_META,a)},a.pause=function(){return t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&!s.ended&&!s.error&&s.currentTime!==s.duration&&(OvenPlayerConsole.log("EventListener : on pause"),void t.setState(n.STATE_PAUSED))},a.play=function(){u=-1,s.paused||t.getState()===n.STATE_PLAYING||t.setState(n.STATE_LOADING)},a.playing=function(){OvenPlayerConsole.log("EventListener : on playing"),u<0&&t.setState(n.STATE_PLAYING)},a.progress=function(){var e=s.buffered;if(!e)return!1;var r=s.duration,o=s.currentTime,a=function(e,t,r){return Math.max(Math.min(e,r),t)}((e.length>0?e.end(e.length-1):0)/r,0,1);t.setBuffer(100*a),t.trigger(n.CONTENT_BUFFER,{bufferPercent:100*a,position:o,duration:r}),OvenPlayerConsole.log("EventListener : on progress",100*a)},a.timeupdate=function(){var e=s.currentTime,r=s.duration;if(!isNaN(r)){var o=t.getSources()[t.getCurrentSource()].sectionStart;o&&ea&&t.getState()===n.STATE_PLAYING)return t.stop(),void t.setState(n.STATE_COMPLETE);r>9e15&&(r=1/0),t.isSeeking()||s.paused||t.getState()!==n.STATE_STALLED&&t.getState()!==n.STATE_LOADING&&t.getState()!==n.STATE_AD_PLAYING||function(e,t){return e.toFixed(2)===t.toFixed(2)}(u,e)||(u=-1,t.setState(n.STATE_PLAYING)),o&&o>0&&(e-=o)<0&&(e=0),a&&(r=a),o&&(r-=o),(t.getState()===n.STATE_PLAYING||t.isSeeking())&&t.trigger(n.CONTENT_TIME,{position:e,duration:r})}},a.seeking=function(){t.setSeeking(!0),OvenPlayerConsole.log("EventListener : on seeking",s.currentTime),t.trigger(n.CONTENT_SEEK,{position:s.currentTime})},a.seeked=function(){t.isSeeking()&&(OvenPlayerConsole.log("EventListener : on seeked"),t.setSeeking(!1),t.trigger(n.CONTENT_SEEKED))},a.stalled=function(){OvenPlayerConsole.log("EventListener : on stalled")},a.waiting=function(){OvenPlayerConsole.log("EventListener : on waiting",t.getState()),t.isSeeking()?t.setState(n.STATE_LOADING):t.getState()===n.STATE_PLAYING&&(u=s.currentTime,t.setState(n.STATE_STALLED))},a.volumechange=function(){OvenPlayerConsole.log("EventListener : on volumechange",Math.round(100*s.volume)),t.trigger(n.CONTENT_VOLUME,{volume:Math.round(100*s.volume),mute:s.muted})},a.error=function(){var e=s.error&&s.error.code||0,r={0:n.PLAYER_UNKNWON_ERROR,1:n.PLAYER_UNKNWON_OPERATION_ERROR,2:n.PLAYER_UNKNWON_NETWORK_ERROR,3:n.PLAYER_UNKNWON_DECODE_ERROR,4:n.PLAYER_FILE_ERROR}[e]||0;OvenPlayerConsole.log("EventListener : on error",r),(0,o.errorTrigger)(n.ERRORS.codes[r],t)},Object.keys(a).forEach(function(e){s.removeEventListener(e,a[e]),s.addEventListener(e,a[e])}),i.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),Object.keys(a).forEach(function(e){s.removeEventListener(e,a[e])})},i}},74:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(310)),o=r(306),a=l(r(136)),i=r(1),u=l(r(7)),s=r(1);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var l={},c=null,d=null,g=null,E=0,f=!1,T=null,S=null,A="",v=!1;try{if(dashjs.Version<"2.6.5")throw i.ERRORS.codes[i.INIT_DASH_UNSUPPORT];var y=function(e){dashjs.Version>="3.0.0"?c.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:e}}}}):dashjs.Version>"2.9.0"?c.setAutoSwitchQualityFor("video",e):c.setAutoSwitchQualityFor(e)},L=function(){return dashjs.Version>="3.0.0"?c.getSettings().streaming.abr.autoSwitchBitrate.video:dashjs.Version>"2.9.0"?c.getAutoSwitchQualityFor("video"):c.getAutoSwitchQualityFor()},P=function(){if(c.duration()!==T){T=c.duration();var e=c.getDashMetrics().getCurrentDVRInfo(),r=t.getConfig().lowLatencyMpdLiveDelay;r||(r=3),c.seek(e.range.end-e.range.start-r)}};(c=dashjs.MediaPlayer().create()).initialize(e,null,!1),window.op_dash=c;var _={name:i.PROVIDER_DASH,element:e,mse:c,listener:null,isLoaded:!1,canSeek:!1,isLive:!1,seeking:!1,state:i.STATE_IDLE,buffer:0,framerate:0,currentQuality:-1,currentSource:-1,qualityLevels:[],sources:[],adTagUrl:r};l=(0,n.default)(_,t,function(e,r){OvenPlayerConsole.log("DASH : Attach File : ",e,"lastPlayPosition : "+r),y(!0),A=e.file,c.off(dashjs.MediaPlayer.events.PLAYBACK_PLAYING,P),!0===e.lowLatency?(T=null,dashjs.Version>="3.0.0"?c.updateSettings({streaming:{lowLatencyEnabled:e.lowLatency}}):c.setLowLatencyEnabled(e.lowLatency),t.getConfig().lowLatencyMpdLiveDelay&&"number"==typeof t.getConfig().lowLatencyMpdLiveDelay&&(dashjs.Version>="3.0.0"?c.updateSettings({streaming:{liveDelay:t.getConfig().lowLatencyMpdLiveDelay}}):c.setLiveDelay(t.getConfig().lowLatencyMpdLiveDelay)),c.on(dashjs.MediaPlayer.events.PLAYBACK_PLAYING,P)):dashjs.Version>="3.0.0"?c.updateSettings({streaming:{lowLatencyEnabled:!1,liveDelay:void 0}}):(c.setLowLatencyEnabled(!1),c.setLiveDelay()),dashjs.Version>="3.0.0"?c.updateSettings({debug:{logLevel:dashjs.Debug.LOG_LEVEL_NONE},streaming:{retryAttempts:{MPD:0}}}):c.getDebug().setLogToBrowserConsole(!1),c.attachSource(A),E=r}),d=l.super("play"),g=l.super("destroy"),OvenPlayerConsole.log("DASH PROVIDER LOADED.");var O=t.getConfig().loadingRetryCount;c.on(dashjs.MediaPlayer.events.ERROR,function(e){if(e&&(e.error.code===dashjs.MediaPlayer.errors.DOWNLOAD_ERROR_ID_MANIFEST_CODE||e.error.code===dashjs.MediaPlayer.errors.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE))if(O>0)l.setState(s.STATE_LOADING),S&&(clearTimeout(S),S=null),O-=1,S=setTimeout(function(){c.attachSource(A)},1e3);else{var t=i.ERRORS.codes[i.PLAYER_UNKNWON_NETWORK_ERROR];t.error=e,(0,o.errorTrigger)(t,l)}}),c.on(dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED,function(e){e&&e.mediaType&&"video"===e.mediaType&&l.trigger(i.CONTENT_LEVEL_CHANGED,{isAuto:L(),currentQuality:_.currentQuality,type:"request"})}),c.on(dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED,function(e){e&&e.mediaType&&"video"===e.mediaType&&(_.currentQuality=e.newQuality,l.trigger(i.CONTENT_LEVEL_CHANGED,{isAuto:L(),currentQuality:e.newQuality,type:"render"}))}),c.on(dashjs.MediaPlayer.events.PLAYBACK_METADATA_LOADED,function(e){dashjs.Version>="3.0.0"&&c.updateSettings({streaming:{retryAttempts:{MPD:2}}}),OvenPlayerConsole.log("DASH : PLAYBACK_METADATA_LOADED : ",c.getQualityFor("video"),c.getBitrateInfoListFor("video"),c.getBitrateInfoListFor("video")[c.getQualityFor("video")]),f=!0;var r=c.getBitrateInfoListFor("video");_.currentQuality=c.getQualityFor("video");for(var n=0;n0&&y.creatives[0].mediaFiles&&y.creatives[0].mediaFiles.length>0&&y.creatives[0].mediaFiles[0].fileURL&&(r=y.creatives[0].mediaFiles[0].fileURL,OvenPlayerConsole.log("VAST : media url : ",r)),d.src=r,d.volume=e.volume,d.muted=e.muted}).catch(function(e){E(e)}),s())})):setTimeout(v,100)}()})},s.pause=function(){d.pause()},s.videoEndedCallback=function(e){e(),l.isVideoEnded=!0},s.destroy=function(){u&&(u.destroy(),u=null),T=null,f=null,c.remove()},s}},337:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TEMP_VIDEO_URL="data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03N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EAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"},384:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=A(1);t.default=function(e,t,A,i){var r={},a={},o=null,s=google.ima.AdEvent.Type.AD_BUFFERING,l=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,u=google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,c=google.ima.AdErrorEvent.Type.AD_ERROR,d=google.ima.AdEvent.Type.ALL_ADS_COMPLETED,h=google.ima.AdEvent.Type.CLICK,p=google.ima.AdEvent.Type.SKIPPED,g=google.ima.AdEvent.Type.COMPLETE,v=google.ima.AdEvent.Type.FIRST_QUARTILE,m=google.ima.AdEvent.Type.LOADED,f=google.ima.AdEvent.Type.MIDPOINT,T=google.ima.AdEvent.Type.PAUSED,y=google.ima.AdEvent.Type.RESUMED,E=google.ima.AdEvent.Type.STARTED,k=google.ima.AdEvent.Type.USER_CLOSE,C=google.ima.AdEvent.Type.THIRD_QUARTILE,R=!1,L=null;return OvenPlayerConsole.log("IMA : Listener Created"),a[l]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),A.started&&(A.active=!0,t.pause())},a[u]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),A.active=!1,!A.started||0!==t.getPosition()&&A.isVideoEnded||t.play()},a[c]=function(e){R=!0,i(e)},a[d]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),R=!0,A.isVideoEnded&&t.setState(n.STATE_COMPLETE)},a[h]=function(e){OvenPlayerConsole.log(e.type),t.trigger(n.PLAYER_CLICKED,{type:n.PLAYER_AD_CLICK})},a[v]=function(e){OvenPlayerConsole.log(e.type)},a[s]=function(e){OvenPlayerConsole.log("AD_BUFFERING",e.type)},a[m]=function(A){OvenPlayerConsole.log(A.type);var i=e.getRemainingTime(),r=A.getAd();t.trigger(n.STATE_AD_LOADED,{remaining:i,isLinear:r.isLinear()})},a[f]=function(e){OvenPlayerConsole.log(e.type)},a[T]=function(e){OvenPlayerConsole.log(e.type),t.setState(n.STATE_AD_PAUSED)},a[y]=function(e){OvenPlayerConsole.log(e.type),t.setState(n.STATE_AD_PLAYING)},a[E]=function(i){OvenPlayerConsole.log(i.type);var r=i.getAd();L=r;var a={isLinear:r.isLinear(),duration:r.getDuration(),skipTimeOffset:r.getSkipTimeOffset()};t.trigger(n.AD_CHANGED,a),r.isLinear()?(t.setState(n.STATE_AD_PLAYING),A.started=!0,o=setInterval(function(){var A=e.getRemainingTime(),i=r.getDuration();t.trigger(n.AD_TIME,{duration:i,skipTimeOffset:r.getSkipTimeOffset(),remaining:A,position:i-A,skippable:e.getAdSkippableState()})},300)):t.play()},a[g]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[p]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[k]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[C]=function(e){OvenPlayerConsole.log(e.type)},Object.keys(a).forEach(function(t){e.removeEventListener(t,a[t]),e.addEventListener(t,a[t])}),r.setAdCompleteCallback=function(e){},r.isAllAdComplete=function(){return R},r.isLinearAd=function(){return!L||L.isLinear()},r.destroy=function(){OvenPlayerConsole.log("IMAEventListener : destroy()"),Object.keys(a).forEach(function(t){e.removeEventListener(t,a[t])})},r}},385:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.id=t.id||null,this.adId=t.adId||null,this.sequence=t.sequence||null,this.apiFramework=t.apiFramework||null,this.trackingEvents={}},h=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="companion",e.variations=[],e}return a(t,d),t}();function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=[];for(var n in t.ASSETURI&&(t.ASSETURI=g(t.ASSETURI)),t.CONTENTPLAYHEAD&&(t.CONTENTPLAYHEAD=g(t.CONTENTPLAYHEAD)),t.ERRORCODE&&!/^[0-9]{3}$/.test(t.ERRORCODE)&&(t.ERRORCODE=900),t.CACHEBUSTING=v(Math.round(1e8*Math.random()).toString()),t.TIMESTAMP=g((new Date).toISOString()),t.RANDOM=t.random=t.CACHEBUSTING,e){var i=e[n];if("string"==typeof i){for(var r in t){var a=t[r],o="["+r+"]",s="%%"+r+"%%";i=(i=i.replace(o,a)).replace(s,a)}A.push(i)}}return A}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function v(e){return e.length<8?m(0,8-e.length,!1).map(function(e){return"0"}).join("")+e:e}function m(e,t,A){for(var n=[],i=er;i?a++:a--)n.push(a);return n}var f={track:function(e,t){p(e,t).forEach(function(e){"undefined"!=typeof window&&null!==window&&((new Image).src=e)})},resolveURLTemplates:p,encodeURIComponentRFC3986:g,leftpad:v,range:m,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},flatten:function e(t){return t.reduce(function(t,A){return t.concat(Array.isArray(A)?e(A):A)},[])}};var T={childByName:function(e,t){var A=e.childNodes;for(var n in A){var i=A[n];if(i.nodeName===t)return i}},childrenByName:function(e,t){var A=[],n=e.childNodes;for(var i in n){var r=n[i];r.nodeName===t&&A.push(r)}return A},resolveVastAdTagURI:function(e,t){return t?0===e.indexOf("//")?""+location.protocol+e:-1===e.indexOf("://")?t.slice(0,t.lastIndexOf("/"))+"/"+e:e:e},parseBoolean:function(e){return-1!==["true","TRUE","1"].indexOf(e)},parseNodeText:function(e){return e&&(e.textContent||e.text||"").trim()},copyNodeAttribute:function(e,t,A){var n=t.getAttribute(e);n&&A.setAttribute(e,n)},parseDuration:function(e){if(null==e)return-1;if(f.isNumeric(e))return parseInt(e);var t=e.split(":");if(3!==t.length)return-1;var A=t[2].split("."),n=parseInt(A[0]);2===A.length&&(n+=parseFloat("0."+A[1]));var i=parseInt(60*t[1]),r=parseInt(60*t[0]*60);return isNaN(r)||isNaN(i)||isNaN(n)||i>3600||n>60?-1:r+i+n},splitVAST:function(e){var t=[],A=null;return e.forEach(function(n,i){if(n.sequence&&(n.sequence=parseInt(n.sequence,10)),n.sequence>1){var r=e[i-1];if(r&&r.sequence===n.sequence-1)return void(A&&A.push(n));delete n.sequence}A=[n],t.push(A)}),t},mergeWrapperAdData:function(e,t){e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),e.creatives.forEach(function(e){if(t.trackingEvents&&t.trackingEvents[e.type])for(var A in t.trackingEvents[e.type]){var n=t.trackingEvents[e.type][A];e.trackingEvents[A]||(e.trackingEvents[A]=[]),e.trackingEvents[A]=e.trackingEvents[A].concat(n)}}),t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length&&e.creatives.forEach(function(e){"linear"===e.type&&(e.videoClickTrackingURLTemplates=e.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates))}),t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length&&e.creatives.forEach(function(e){"linear"===e.type&&(e.videoCustomClickURLTemplates=e.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates))}),t.videoClickThroughURLTemplate&&e.creatives.forEach(function(e){"linear"===e.type&&null==e.videoClickThroughURLTemplate&&(e.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)})}};function y(e,t){var A=new h(t);return T.childrenByName(e,"Companion").forEach(function(e){var t=new c;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.companionClickTrackingURLTemplates=[],T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(A){t.type=A.getAttribute("creativeType")||0,T.childrenByName(e,"AltText").forEach(function(e){t.altText=T.parseNodeText(e)}),t.staticResource=T.parseNodeText(A)}),T.childrenByName(e,"TrackingEvents").forEach(function(e){T.childrenByName(e,"Tracking").forEach(function(e){var A=e.getAttribute("event"),n=T.parseNodeText(e);A&&n&&(null==t.trackingEvents[A]&&(t.trackingEvents[A]=[]),t.trackingEvents[A].push(n))})}),T.childrenByName(e,"CompanionClickTracking").forEach(function(e){t.companionClickTrackingURLTemplates.push(T.parseNodeText(e))}),t.companionClickThroughURLTemplate=T.parseNodeText(T.childByName(e,"CompanionClickThrough")),t.companionClickTrackingURLTemplate=T.parseNodeText(T.childByName(e,"CompanionClickTracking")),A.variations.push(t)}),A}var E=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="linear",e.duration=0,e.skipDelay=null,e.mediaFiles=[],e.videoClickThroughURLTemplate=null,e.videoClickTrackingURLTemplates=[],e.videoCustomClickURLTemplates=[],e.adParameters=null,e.icons=[],e}return a(t,d),t}(),k=function e(){o(this,e),this.program=null,this.height=0,this.width=0,this.xPosition=0,this.yPosition=0,this.apiFramework=null,this.offset=null,this.duration=0,this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.iconClickThroughURLTemplate=null,this.iconClickTrackingURLTemplates=[],this.iconViewTrackingURLTemplate=null},C=function e(){o(this,e),this.id=null,this.fileURL=null,this.deliveryType="progressive",this.mimeType=null,this.codec=null,this.bitrate=0,this.minBitrate=0,this.maxBitrate=0,this.width=0,this.height=0,this.apiFramework=null,this.scalable=null,this.maintainAspectRatio=null};function R(e,t){var A=void 0,n=new E(t);n.duration=T.parseDuration(T.parseNodeText(T.childByName(e,"Duration")));var i=e.getAttribute("skipoffset");if(null==i)n.skipDelay=null;else if("%"===i.charAt(i.length-1)&&-1!==n.duration){var r=parseInt(i,10);n.skipDelay=n.duration*(r/100)}else n.skipDelay=T.parseDuration(i);var a=T.childByName(e,"VideoClicks");a&&(n.videoClickThroughURLTemplate=T.parseNodeText(T.childByName(a,"ClickThrough")),T.childrenByName(a,"ClickTracking").forEach(function(e){n.videoClickTrackingURLTemplates.push(T.parseNodeText(e))}),T.childrenByName(a,"CustomClick").forEach(function(e){n.videoCustomClickURLTemplates.push(T.parseNodeText(e))}));var o=T.childByName(e,"AdParameters");o&&(n.adParameters=T.parseNodeText(o)),T.childrenByName(e,"TrackingEvents").forEach(function(e){T.childrenByName(e,"Tracking").forEach(function(e){var t=e.getAttribute("event"),i=T.parseNodeText(e);if(t&&i){if("progress"===t){if(!(A=e.getAttribute("offset")))return;t="%"===A.charAt(A.length-1)?"progress-"+A:"progress-"+Math.round(T.parseDuration(A))}null==n.trackingEvents[t]&&(n.trackingEvents[t]=[]),n.trackingEvents[t].push(i)}})}),T.childrenByName(e,"MediaFiles").forEach(function(e){T.childrenByName(e,"MediaFile").forEach(function(e){var t=new C;t.id=e.getAttribute("id"),t.fileURL=T.parseNodeText(e),t.deliveryType=e.getAttribute("delivery"),t.codec=e.getAttribute("codec"),t.mimeType=e.getAttribute("type"),t.apiFramework=e.getAttribute("apiFramework"),t.bitrate=parseInt(e.getAttribute("bitrate")||0),t.minBitrate=parseInt(e.getAttribute("minBitrate")||0),t.maxBitrate=parseInt(e.getAttribute("maxBitrate")||0),t.width=parseInt(e.getAttribute("width")||0),t.height=parseInt(e.getAttribute("height")||0);var A=e.getAttribute("scalable");A&&"string"==typeof A&&("true"===(A=A.toLowerCase())?t.scalable=!0:"false"===A&&(t.scalable=!1));var i=e.getAttribute("maintainAspectRatio");i&&"string"==typeof i&&("true"===(i=i.toLowerCase())?t.maintainAspectRatio=!0:"false"===i&&(t.maintainAspectRatio=!1)),n.mediaFiles.push(t)})});var s=T.childByName(e,"Icons");return s&&T.childrenByName(s,"Icon").forEach(function(e){var t=new k;t.program=e.getAttribute("program"),t.height=parseInt(e.getAttribute("height")||0),t.width=parseInt(e.getAttribute("width")||0),t.xPosition=function(e){return-1!==["left","right"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("xPosition")),t.yPosition=function(e){return-1!==["top","bottom"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("yPosition")),t.apiFramework=e.getAttribute("apiFramework"),t.offset=T.parseDuration(e.getAttribute("offset")),t.duration=T.parseDuration(e.getAttribute("duration")),T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=T.parseNodeText(e)});var A=T.childByName(e,"IconClicks");A&&(t.iconClickThroughURLTemplate=T.parseNodeText(T.childByName(A,"IconClickThrough")),T.childrenByName(A,"IconClickTracking").forEach(function(e){t.iconClickTrackingURLTemplates.push(T.parseNodeText(e))})),t.iconViewTrackingURLTemplate=T.parseNodeText(T.childByName(e,"IconViewTracking")),n.icons.push(t)}),n}var L=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="nonlinear",e.variations=[],e}return a(t,d),t}(),w=function e(){o(this,e),this.id=null,this.width=0,this.height=0,this.expandedWidth=0,this.expandedHeight=0,this.scalable=!0,this.maintainAspectRatio=!0,this.minSuggestedDuration=0,this.apiFramework="static",this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.nonlinearClickThroughURLTemplate=null,this.nonlinearClickTrackingURLTemplates=[],this.adParameters=null};function b(e,t){var A=new L(t);return T.childrenByName(e,"TrackingEvents").forEach(function(e){var t=void 0,n=void 0;T.childrenByName(e,"Tracking").forEach(function(e){t=e.getAttribute("event"),n=T.parseNodeText(e),t&&n&&(null==A.trackingEvents[t]&&(A.trackingEvents[t]=[]),A.trackingEvents[t].push(n))})}),T.childrenByName(e,"NonLinear").forEach(function(e){var t=new w;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.expandedWidth=e.getAttribute("expandedWidth"),t.expandedHeight=e.getAttribute("expandedHeight"),t.scalable=T.parseBoolean(e.getAttribute("scalable")),t.maintainAspectRatio=T.parseBoolean(e.getAttribute("maintainAspectRatio")),t.minSuggestedDuration=T.parseDuration(e.getAttribute("minSuggestedDuration")),t.apiFramework=e.getAttribute("apiFramework"),T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=T.parseNodeText(e)});var n=T.childByName(e,"AdParameters");n&&(t.adParameters=T.parseNodeText(n)),t.nonlinearClickThroughURLTemplate=T.parseNodeText(T.childByName(e,"NonLinearClickThrough")),T.childrenByName(e,"NonLinearClickTracking").forEach(function(e){t.nonlinearClickTrackingURLTemplates.push(T.parseNodeText(e))}),A.variations.push(t)}),A}function I(e){var t=e.childNodes;for(var A in t){var n=t[A];if(-1!==["Wrapper","InLine"].indexOf(n.nodeName)){if(T.copyNodeAttribute("id",e,n),T.copyNodeAttribute("sequence",e,n),"Wrapper"===n.nodeName)return U(n);if("InLine"===n.nodeName)return N(n)}}}function N(e){var t=e.childNodes,A=new s;for(var n in A.id=e.getAttribute("id")||null,A.sequence=e.getAttribute("sequence")||null,t){var i=t[n];switch(i.nodeName){case"Error":A.errorURLTemplates.push(T.parseNodeText(i));break;case"Impression":A.impressionURLTemplates.push(T.parseNodeText(i));break;case"Creatives":T.childrenByName(i,"Creative").forEach(function(e){var t={id:e.getAttribute("id")||null,adId:O(e),sequence:e.getAttribute("sequence")||null,apiFramework:e.getAttribute("apiFramework")||null};for(var n in e.childNodes){var i=e.childNodes[n];switch(i.nodeName){case"Linear":var r=R(i,t);r&&A.creatives.push(r);break;case"NonLinearAds":var a=b(i,t);a&&A.creatives.push(a);break;case"CompanionAds":var o=y(i,t);o&&A.creatives.push(o)}}});break;case"Extensions":S(A.extensions,T.childrenByName(i,"Extension"));break;case"AdSystem":A.system={value:T.parseNodeText(i),version:i.getAttribute("version")||null};break;case"AdTitle":A.title=T.parseNodeText(i);break;case"Description":A.description=T.parseNodeText(i);break;case"Advertiser":A.advertiser=T.parseNodeText(i);break;case"Pricing":A.pricing={value:T.parseNodeText(i),model:i.getAttribute("model")||null,currency:i.getAttribute("currency")||null};break;case"Survey":A.survey=T.parseNodeText(i)}}return A}function U(e){var t=N(e),A=T.childByName(e,"VASTAdTagURI");if(A?t.nextWrapperURL=T.parseNodeText(A):(A=T.childByName(e,"VASTAdTagURL"))&&(t.nextWrapperURL=T.parseNodeText(T.childByName(A,"URL"))),t.creatives.forEach(function(e){if(-1!==["linear","nonlinear"].indexOf(e.type)){if(e.trackingEvents){t.trackingEvents||(t.trackingEvents={}),t.trackingEvents[e.type]||(t.trackingEvents[e.type]={});var A=function(A){var n=e.trackingEvents[A];t.trackingEvents[e.type][A]||(t.trackingEvents[e.type][A]=[]),n.forEach(function(n){t.trackingEvents[e.type][A].push(n)})};for(var n in e.trackingEvents)A(n)}e.videoClickTrackingURLTemplates&&(t.videoClickTrackingURLTemplates||(t.videoClickTrackingURLTemplates=[]),e.videoClickTrackingURLTemplates.forEach(function(e){t.videoClickTrackingURLTemplates.push(e)})),e.videoClickThroughURLTemplate&&(t.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate),e.videoCustomClickURLTemplates&&(t.videoCustomClickURLTemplates||(t.videoCustomClickURLTemplates=[]),e.videoCustomClickURLTemplates.forEach(function(e){t.videoCustomClickURLTemplates.push(e)}))}}),t.nextWrapperURL)return t}function S(e,t){t.forEach(function(t){var A=new l,n=t.attributes,i=t.childNodes;if(t.attributes)for(var r in n){var a=n[r];a.nodeName&&a.nodeValue&&(A.attributes[a.nodeName]=a.nodeValue)}for(var o in i){var s=i[o],c=T.parseNodeText(s);if("#comment"!==s.nodeName&&""!==c){var d=new u;if(d.name=s.nodeName,d.value=c,s.attributes){var h=s.attributes;for(var p in h){var g=h[p];d.attributes[g.nodeName]=g.nodeValue}}A.children.push(d)}}e.push(A)})}function O(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null}function B(){}function P(){P.init.call(this)}function D(e){return void 0===e._maxListeners?P.defaultMaxListeners:e._maxListeners}function M(e,t,A,n){var i,r,a;if("function"!=typeof A)throw new TypeError('"listener" argument must be a function');if((r=e._events)?(r.newListener&&(e.emit("newListener",t,A.listener?A.listener:A),r=e._events),a=r[t]):(r=e._events=new B,e._eventsCount=0),a){if("function"==typeof a?a=r[t]=n?[A,a]:[a,A]:n?a.unshift(A):a.push(A),!a.warned&&(i=D(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=r[t]=A,++e._eventsCount;return e}function _(e,t,A){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,A.apply(e,arguments))}return i.listener=A,i}function x(e){var t=this._events;if(t){var A=t[e];if("function"==typeof A)return 1;if(A)return A.length}return 0}function Q(e,t){for(var A=new Array(t);t--;)A[t]=e[t];return A}B.prototype=Object.create(null),P.EventEmitter=P,P.usingDomains=!1,P.prototype.domain=void 0,P.prototype._events=void 0,P.prototype._maxListeners=void 0,P.defaultMaxListeners=10,P.init=function(){this.domain=null,P.usingDomains&&(!(void 0).active||this instanceof(void 0).Domain||(this.domain=(void 0).active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new B,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},P.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},P.prototype.getMaxListeners=function(){return D(this)},P.prototype.emit=function(e){var t,A,n,i,r,a,o,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(o=this.domain,s){if(t=arguments[1],!o){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(A=a[e]))return!1;var u="function"==typeof A;switch(n=arguments.length){case 1:!function(e,t,A){if(t)e.call(A);else for(var n=e.length,i=Q(e,n),r=0;r0;)if(A[r]===t||A[r].listener&&A[r].listener===t){a=A[r].listener,i=r;break}if(i<0)return this;if(1===A.length){if(A[0]=void 0,0==--this._eventsCount)return this._events=new B,this;delete n[e]}else!function(e,t){for(var A=t,n=A+1,i=e.length;n0?Reflect.ownKeys(this._events):[]};var V={get:function(e,t,A){var n="function"==typeof window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLDOM"):void 0;if(!n)return A(new Error("FlashURLHandler: Microsoft.XMLDOM format not supported"));n.async=!1,request.open("GET",e),request.timeout=t.timeout||0,request.withCredentials=t.withCredentials||!1,request.send(),request.onprogress=function(){},request.onload=function(){n.loadXML(request.responseText),A(null,n)}},supported:function(){return!!function(){var e=void 0;return window.XDomainRequest&&(e=new XDomainRequest),e}()}};var X={get:function(e,t,A){A(new Error("Please bundle the library for node to use the node urlHandler"))}};function Z(){try{var e=new window.XMLHttpRequest;return"withCredentials"in e?e:null}catch(e){return console.log("Error in XHRURLHandler support check:",e),null}}var F={get:function(e,t,A){if("https:"===window.location.protocol&&0===e.indexOf("http://"))return A(new Error("XHRURLHandler: Cannot go from HTTPS to HTTP."));try{var n=Z();n.open("GET",e),n.timeout=t.timeout||0,n.withCredentials=t.withCredentials||!1,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.onreadystatechange=function(){4===n.readyState&&(200===n.status?A(null,n.responseXML):A(new Error("XHRURLHandler: "+n.statusText)))},n.send()}catch(e){A(new Error("XHRURLHandler: Unexpected error"))}},supported:function(){return!!Z()}};var G={get:function(e,t,A){return A||("function"==typeof t&&(A=t),t={}),"undefined"==typeof window||null===window?X.get(e,t,A):F.supported()?F.get(e,t,A):V.supported()?V.get(e,t,A):A(new Error("Current context is not supported by any of the default URLHandlers. Please provide a custom URLHandler"))}},H={ERRORCODE:900,extensions:[]},W=function(e){function t(){var e;return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).remainingAds=[],e.parentURLs=[],e.errorURLTemplates=[],e.rootErrorURLTemplates=[],e.maxWrapperDepth=null,e.URLTemplateFilters=[],e.fetchingOptions={},e}return a(t,P),i(t,[{key:"addURLTemplateFilter",value:function(e){"function"==typeof e&&this.URLTemplateFilters.push(e)}},{key:"removeURLTemplateFilter",value:function(){this.URLTemplateFilters.pop()}},{key:"countURLTemplateFilters",value:function(){return this.URLTemplateFilters.length}},{key:"clearURLTemplateFilters",value:function(){this.URLTemplateFilters=[]}},{key:"trackVastError",value:function(e,t){for(var A=arguments.length,i=Array(A>2?A-2:0),r=2;r0&&void 0!==arguments[0]?arguments[0]:{};this.rootURL="",this.remainingAds=[],this.parentURLs=[],this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.maxWrapperDepth=e.wrapperLimit||10,this.fetchingOptions={timeout:e.timeout,withCredentials:e.withCredentials},this.urlHandler=e.urlhandler||G}},{key:"getRemainingAds",value:function(e){var t=this;if(0===this.remainingAds.length)return Promise.reject(new Error("No more ads are available for the given VAST"));var A=e?f.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(A,{wrapperDepth:0,originalUrl:this.rootURL}).then(function(e){return t.buildVASTResponse(e)})}},{key:"getAndParseVAST",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(A),this.rootURL=e,this.fetchVAST(e).then(function(n){return A.originalUrl=e,A.isRootVAST=!0,t.parse(n,A).then(function(e){return t.buildVASTResponse(e)})})}},{key:"parseVAST",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(A),A.isRootVAST=!0,this.parse(e,A).then(function(e){return t.buildVASTResponse(e)})}},{key:"buildVASTResponse",value:function(e){var t=new function e(){o(this,e),this.ads=[],this.errorURLTemplates=[]};return t.ads=e,t.errorURLTemplates=this.getErrorURLTemplates(),this.completeWrapperResolving(t),t}},{key:"parse",value:function(e,t){var A=t.resolveAll,n=void 0===A||A,i=t.wrapperSequence,r=void 0===i?null:i,a=t.originalUrl,o=void 0===a?null:a,s=t.wrapperDepth,l=void 0===s?0:s,u=t.isRootVAST,c=void 0!==u&&u;if(!e||!e.documentElement||"VAST"!==e.documentElement.nodeName)return Promise.reject(new Error("Invalid VAST XMLDocument"));var d=[],h=e.documentElement.childNodes;for(var p in h){var g=h[p];if("Error"===g.nodeName){var v=T.parseNodeText(g);c?this.rootErrorURLTemplates.push(v):this.errorURLTemplates.push(v)}if("Ad"===g.nodeName){var m=I(g);m?d.push(m):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}var f=d.length,y=d[f-1];return 1===f&&void 0!==r&&null!==r&&y&&!y.sequence&&(y.sequence=r),!1===n&&(this.remainingAds=T.splitVAST(d),d=this.remainingAds.shift()),this.resolveAds(d,{wrapperDepth:l,originalUrl:o})}},{key:"resolveAds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],A=arguments[1],n=A.wrapperDepth,i=A.originalUrl,r=[];return t.forEach(function(t){var A=e.resolveWrappers(t,n,i);r.push(A)}),Promise.all(r).then(function(t){var A=f.flatten(t);if(!A&&e.remainingAds.length>0){var r=e.remainingAds.shift();return e.resolveAds(r,{wrapperDepth:n,originalUrl:i})}return A})}},{key:"resolveWrappers",value:function(e,t,A){var n=this;return new Promise(function(i,r){if(t++,!e.nextWrapperURL)return delete e.nextWrapperURL,i(e);if(t>=n.maxWrapperDepth||-1!==n.parentURLs.indexOf(e.nextWrapperURL))return e.errorCode=302,delete e.nextWrapperURL,i(e);e.nextWrapperURL=T.resolveVastAdTagURI(e.nextWrapperURL,A);var a=e.sequence;A=e.nextWrapperURL,n.fetchVAST(e.nextWrapperURL,t,A).then(function(r){return n.parse(r,{originalUrl:A,wrapperSequence:a,wrapperDepth:t}).then(function(t){if(delete e.nextWrapperURL,0===t.length)return e.creatives=[],i(e);t.forEach(function(t){t&&T.mergeWrapperAdData(t,e)}),i(t)})}).catch(function(t){e.errorCode=301,e.errorMessage=t.message,i(e)})})}},{key:"completeWrapperResolving",value:function(e){if(0===e.ads.length)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(var t=e.ads.length-1;t>=0;t--){var A=e.ads[t];(A.errorCode||0===A.creatives.length)&&(this.trackVastError(A.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:A.errorCode||303},{ERRORMESSAGE:A.errorMessage||""},{extensions:A.extensions},{system:A.system}),e.ads.splice(t,1))}}}]),t}(),j=null,J={data:{},length:0,getItem:function(e){return this.data[e]},setItem:function(e,t){this.data[e]=t,this.length=Object.keys(this.data).length},removeItem:function(e){delete data[e],this.length=Object.keys(this.data).length},clear:function(){this.data={},this.length=0}},Y=function(){function e(){o(this,e),this.storage=this.initStorage()}return i(e,[{key:"initStorage",value:function(){if(j)return j;try{j="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){j=null}return j&&!this.isStorageDisabled(j)||(j=J).clear(),j}},{key:"isStorageDisabled",value:function(e){var t="__VASTStorage__";try{if(e.setItem(t,t),e.getItem(t)!==t)return e.removeItem(t),!0}catch(e){return!0}return e.removeItem(t),!1}},{key:"getItem",value:function(e){return this.storage.getItem(e)}},{key:"setItem",value:function(e,t){return this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){return this.storage.removeItem(e)}},{key:"clear",value:function(){return this.storage.clear()}}]),e}(),q=function(){function e(t,A,n){o(this,e),this.cappingFreeLunch=t||0,this.cappingMinimumTimeInterval=A||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new W,this.storage=n||new Y,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}return i(e,[{key:"getParser",value:function(){return this.vastParser}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(e){return this.vastParser.getRemainingAds(e)}},{key:"get",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Date.now();return(A=n(this.defaultOptions,A)).hasOwnProperty("resolveAll")||(A.resolveAll=!1),this.totalCallsTimeout=t.totalCalls)return r(new Error("VAST call canceled – FreeLunch capping not reached yet "+t.totalCalls+"/"+t.cappingFreeLunch));var a=i-t.lastSuccessfulAd;if(a<0)t.lastSuccessfulAd=0;else if(a3&&void 0!==arguments[3]?arguments[3]:null;for(var s in o(this,t),(i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).ad=A,i.creative=n,i.variation=a,i.muted=!1,i.impressed=!1,i.skippable=!1,i.trackingEvents={},i._alreadyTriggeredQuartiles={},i.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],i.creative.trackingEvents){var l=i.creative.trackingEvents[s];i.trackingEvents[s]=l.slice(0)}return i.creative instanceof E?i._initLinearTracking():i._initVariationTracking(),e&&i.on("start",function(){e.lastSuccessfulAd=Date.now()}),i}return a(t,P),i(t,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var e in this.variation.trackingEvents){var t=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(t.slice(0)):this.trackingEvents[e]=t.slice(0)}this.variation instanceof w?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):this.variation instanceof c&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(e){this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100}}},{key:"setProgress",value:function(e){var t=this,A=this.skipDelay||-1;if(-1===A||this.skippable||(A>e?this.emit("skip-countdown",A-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var n=[];if(e>0){var i=Math.round(e/this.assetDuration*100);for(var r in n.push("start"),n.push("progress-"+i+"%"),n.push("progress-"+Math.round(e)),this.quartiles)this.isQuartileReached(r,this.quartiles[r],e)&&(n.push(r),this._alreadyTriggeredQuartiles[r]=!0)}n.forEach(function(e){t.track(e,!0)}),e0&&void 0!==arguments[0]?arguments[0]:null;this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates);var t=this.clickThroughURLTemplate||e;if(t){var A=this.linear?{CONTENTPLAYHEAD:this.progressFormatted()}:{},n=f.resolveURLTemplates([t],A)[0];this.emit("clickthrough",n)}}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"closeLinear"===e&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close");var A=this.trackingEvents[e],n=this.emitAlwaysEvents.indexOf(e)>-1;A?(this.emit(e,""),this.trackURLs(A)):n&&this.emit(e,""),t&&(delete this.trackingEvents[e],n&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}},{key:"trackURLs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(t.ASSETURI=this.creative.mediaFiles[0].fileURL),t.CONTENTPLAYHEAD=this.progressFormatted()),f.track(e,t)}},{key:"progressFormatted",value:function(){var e=parseInt(this.progress),t=e/3600;t.length<2&&(t="0"+t);var A=e/60%60;A.length<2&&(A="0"+A);var n=e%60;return n.length<2&&(n="0"+A),t+":"+A+":"+n+"."+parseInt(100*(this.progress-e))}}]),t}();t.VASTClient=q,t.VASTParser=W,t.VASTTracker=z},386:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=A(1),i=function(e){return e&&e.__esModule?e:{default:e}}(A(6));t.default=function(e,t,A,r,a,o,s){var l={},u={},c=(0,i.default)(o),d=(0,i.default)(a),h=(0,i.default)(e);A.on(n.CONTENT_VOLUME,function(t){t.mute?e.muted=!0:(e.muted=!1,e.volume=t.volume/100)},u);var p=function(){r.active=!1,d.hide(),!r.started||0!==A.getPosition()&&r.isVideoEnded||(h.hide(),A.play()),A.trigger(n.STATE_AD_COMPLETE)},g=function(A){c.hasClass("videoAdUiAction")&&(t.skip(),e.pause(),p())};return o.addEventListener("click",g,!1),l.error=function(){OvenPlayerConsole.log("VAST : listener : error.",e.error),console.log("VAST : listener : error.",e.error);var A={},n=e.error&&e.error.code||0;2===n?(A.code=402,A.message="Timeout of MediaFile URI."):3===n?(A.code=405,A.message="Problem displaying MediaFile. Video player found a MediaFile with supported type but couldn’t display it. MediaFile may include: unsupported codecs, different MIME type than MediaFile@type, unsupported delivery method, etc."):4===n?(A.code=403,A.message="Couldn’t find MediaFile that is supported by this video player, based on the attributes of the MediaFile element."):(A.code=400,A.message="General Linear error. Video player is unable to display the Linear Ad."),t.errorWithCode(A.code),s("405")},l.canplay=function(){},l.ended=function(){t.complete(),p()},l.click=function(e){t.click()},l.play=function(){t.setPaused(!1)},l.pause=function(){t.setPaused(!0)},l.timeupdate=function(i){t.setProgress(i.target.currentTime),A.trigger(n.AD_TIME,{duration:e.duration,position:e.currentTime})},l.volumechange=function(e){OvenPlayerConsole.log("VAST : listener : Ad Video Volumechange."),t.setMuted(e.target.muted)},l.loadedmetadata=function(){OvenPlayerConsole.log("VAST : listener : Ad CONTENT LOADED ."),n.STATE_PLAYING===A.getState()&&A.pause(),t.trackImpression(),A.trigger(n.STATE_AD_LOADED,{remaining:e.duration,isLinear:!0}),e.play()},t.on("skip",function(){OvenPlayerConsole.log("VAST : listener : skipped")}),t.on("mute",function(){OvenPlayerConsole.log("VAST : listener : muted")}),t.on("unmute",function(){OvenPlayerConsole.log("VAST : listener : unmuted")}),t.on("resume",function(){OvenPlayerConsole.log("VAST : listener : vastTracker resumed."),r.started&&A.setState(n.STATE_AD_PLAYING)}),t.on("pause",function(){OvenPlayerConsole.log("VAST : listener : vastTracker paused."),A.setState(n.STATE_AD_PAUSED)}),t.on("clickthrough",function(e){OvenPlayerConsole.log("VAST : listener : clickthrough :",e),window.open(e,"_blank")}),t.on("skip-countdown",function(e){0===e?("ko"===r.lang?c.html("광고 건너뛰기"):c.html("Ad Skip"),c.addClass("videoAdUiAction")):"ko"===r.lang?c.html(parseInt(e)+1+"초 후에 이 광고를 건너뛸 수 있습니다."):c.html("You can skip this ad in "+(parseInt(e)+1))}),t.on("rewind",function(){OvenPlayerConsole.log("VAST : listener : rewind")}),t.on("start",function(){OvenPlayerConsole.log("VAST : listener : started"),r.started=!0,r.active=!0,h.show(),d.show(),A.trigger(n.AD_CHANGED,{isLinear:!0}),A.setState(n.STATE_AD_PLAYING)}),t.on("firstQuartile",function(){OvenPlayerConsole.log("VAST : listener : firstQuartile")}),t.on("midpoint",function(){OvenPlayerConsole.log("VAST : listener : midpoint")}),t.on("thirdQuartile",function(){OvenPlayerConsole.log("VAST : listener : thirdQuartile")}),t.on("creativeView",function(){OvenPlayerConsole.log("VAST : listener : creativeView")}),Object.keys(l).forEach(function(t){e.removeEventListener(t,l[t]),e.addEventListener(t,l[t])}),u.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),o.removeEventListener("click",g,!1),Object.keys(l).forEach(function(t){e.removeEventListener(t,l[t])})},u}}}]); \ No newline at end of file diff --git a/web/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE b/web/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE new file mode 100644 index 0000000..222fc1f --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE @@ -0,0 +1 @@ +/*! OvenPlayerv0.9.0 | (c)2020 AirenSoft Co., Ltd. | MIT license (https://github.com/AirenSoft/OvenPlayerPrivate/blob/master/LICENSE) | Github : https://github.com/AirenSoft/OvenPlayer */ diff --git a/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js b/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js new file mode 100644 index 0000000..ef39d9a --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js @@ -0,0 +1,2 @@ +/*! For license information please see ovenplayer.provider.HlsProvider-0.9.0.js.LICENSE */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(316)),o=l(n(317)),a=l(n(66)),u=l(n(311)),i=n(306),s=n(1);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){OvenPlayerConsole.log("[Provider] loaded. ");var l={};(0,a.default)(l);var c=e.element,E=null,d=null;e.adTagUrl&&(OvenPlayerConsole.log("[Provider] Ad Client - ",t.getAdClient()),(E=t.getAdClient()===s.AD_CLIENT_VAST?(0,o.default)(c,l,t,e.adTagUrl):(0,r.default)(c,l,t,e.adTagUrl))||console.log("Can not load due to google ima for Ads.")),d=(0,u.default)(c,l,E?E.videoEndedCallback:null),c.playbackRate=c.defaultPlaybackRate=t.getPlaybackRate();var f=function(r){var o=e.sources[e.currentSource];if(e.framerate=o.framerate,l.setVolume(t.getVolume()),e.framerate||t.setTimecodeMode(!0),n)n(o,r);else{OvenPlayerConsole.log("source loaded : ",o,"lastPlayPosition : "+r);var a=c.src;o.file!==a&&(c.src=o.file,(a||""===a)&&c.load(),r&&r>0&&l.seek(r)),r>0&&(l.seek(r),t.isAutoStart()),t.isAutoStart()}};return l.getName=function(){return e.name},l.canSeek=function(){return e.canSeek},l.setCanSeek=function(t){e.canSeek=t},l.isSeeking=function(){return e.seeking},l.setSeeking=function(t){e.seeking=t},l.setMetaLoaded=function(){e.isLoaded=!0},l.metaLoaded=function(){return e.isLoaded},l.setState=function(t){if(e.state!==t){var n=e.state;if(OvenPlayerConsole.log("Provider : setState()",t),n===s.STATE_AD_PLAYING&&(t===s.STATE_ERROR||t===s.STATE_IDLE))return!1;switch(OvenPlayerConsole.log("Provider : triggerSatatus",t),t){case s.STATE_COMPLETE:l.trigger(s.PLAYER_COMPLETE);break;case s.STATE_PAUSED:l.trigger(s.PLAYER_PAUSE,{prevState:e.state,newstate:s.STATE_PAUSED});break;case s.STATE_AD_PAUSED:l.trigger(s.PLAYER_PAUSE,{prevState:e.state,newstate:s.STATE_AD_PAUSED});break;case s.STATE_PLAYING:l.trigger(s.PLAYER_PLAY,{prevState:e.state,newstate:s.STATE_PLAYING});case s.STATE_AD_PLAYING:l.trigger(s.PLAYER_PLAY,{prevState:e.state,newstate:s.STATE_AD_PLAYING})}e.state=t,l.trigger(s.PLAYER_STATE,{prevstate:n,newstate:e.state})}},l.getState=function(){return e.state},l.setBuffer=function(t){e.buffer=t},l.getBuffer=function(){return e.buffer},l.isLive=function(){return!!e.isLive||c.duration===1/0},l.getDuration=function(){return l.isLive()?1/0:c.duration},l.getPosition=function(){return c?c.currentTime:0},l.setVolume=function(e){if(!c)return!1;c.volume=e/100},l.getVolume=function(){return c?100*c.volume:0},l.setMute=function(e){return!!c&&(void 0===e?(c.muted=!c.muted,l.trigger(s.CONTENT_MUTE,{mute:c.muted})):(c.muted=e,l.trigger(s.CONTENT_MUTE,{mute:c.muted})),c.muted)},l.getMute=function(){return!!c&&c.muted},l.preload=function(n,r){return e.sources=n,e.currentSource=(0,i.pickCurrentSource)(n,e.currentSource,t),f(r||0),new Promise(function(e,n){t.isMute()&&l.setMute(!0),t.getVolume()&&l.setVolume(t.getVolume()),e()})},l.load=function(n){e.sources=n,e.currentSource=(0,i.pickCurrentSource)(n,e.currentSource,t),f(e.sources.starttime||0)},l.play=function(){if(OvenPlayerConsole.log("Provider : play()"),!c)return!1;if(l.getState()!==s.STATE_PLAYING)if(E&&E.isActive()||E&&!E.started())E.play().then(function(e){OvenPlayerConsole.log("Provider : ads play success")}).catch(function(e){OvenPlayerConsole.log("Provider : ads play fail",e)});else{var e=c.play();void 0!==e?e.then(function(){OvenPlayerConsole.log("Provider : video play success")}).catch(function(e){OvenPlayerConsole.log("Provider : video play error",e.message)}):OvenPlayerConsole.log("Provider : video play success (ie)")}},l.pause=function(){if(OvenPlayerConsole.log("Provider : pause()"),!c)return!1;l.getState()===s.STATE_PLAYING?c.pause():l.getState()===s.STATE_AD_PLAYING&&E.pause()},l.seek=function(e){if(!c)return!1;c.currentTime=e},l.setPlaybackRate=function(e){return!!c&&(l.trigger(s.PLAYBACK_RATE_CHANGED,{playbackRate:e}),c.playbackRate=c.defaultPlaybackRate=e)},l.getPlaybackRate=function(){return c?c.playbackRate:0},l.getSources=function(){return c?e.sources.map(function(e,t){var n={file:e.file,type:e.type,label:e.label,index:t,sectionStart:e.sectionStart,sectionEnd:e.sectionEnd,gridThumbnail:e.gridThumbnail};return e.lowLatency&&(n.lowLatency=e.lowLatency),n}):[]},l.getCurrentSource=function(){return e.currentSource},l.setCurrentSource=function(n,r){if(n>-1&&e.sources&&e.sources.length>n)return OvenPlayerConsole.log("source changed : "+n),e.currentSource=n,l.trigger(s.CONTENT_SOURCE_CHANGED,{currentSource:n}),t.setSourceIndex(n),l.setState(s.STATE_IDLE),r&&f(c.currentTime||0),e.currentSource},l.getQualityLevels=function(){return c?e.qualityLevels:[]},l.getCurrentQuality=function(){return c?e.currentQuality:null},l.setCurrentQuality=function(e){},l.isAutoQuality=function(){},l.setAutoQuality=function(e){},l.getFramerate=function(){return e.framerate},l.setFramerate=function(t){return e.framerate=t},l.seekFrame=function(t){var n=e.framerate,r=(c.currentTime*n+t)/n;r+=1e-5,l.pause(),l.seek(r)},l.stop=function(){if(!c)return!1;for(OvenPlayerConsole.log("CORE : stop() "),c.removeAttribute("preload"),c.removeAttribute("src");c.firstChild;)c.removeChild(c.firstChild);l.pause(),l.setState(s.STATE_IDLE)},l.destroy=function(){if(!c)return!1;l.stop(),d.destroy(),E&&(E.destroy(),E=null),l.off(),OvenPlayerConsole.log("CORE : destroy() player stop, listener, event destroied")},l.super=function(e){var t=l[e];return function(){return t.apply(l,arguments)}},l}},311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(306);t.default=function(e,t,n){var a={};OvenPlayerConsole.log("EventListener loaded.",e,t);var u={},i=-1,s=e;return a.canplay=function(){t.setCanSeek(!0),t.trigger(r.CONTENT_BUFFER_FULL),OvenPlayerConsole.log("EventListener : on canplay")},a.durationchange=function(){a.progress(),OvenPlayerConsole.log("EventListener : on durationchange")},a.ended=function(){OvenPlayerConsole.log("EventListener : on ended"),t.getState()!==r.STATE_IDLE&&t.getState()!==r.STATE_COMPLETE&&t.getState()!==r.STATE_ERROR&&(n?n(function(){t.setState(r.STATE_COMPLETE)}):t.setState(r.STATE_COMPLETE))},a.loadeddata=function(){},a.loadedmetadata=function(){var e=t.getSources(),n=t.getCurrentSource(),o=n>-1?e[n].type:"",a={duration:t.isLive()?1/0:s.duration,type:o};t.setMetaLoaded(),OvenPlayerConsole.log("EventListener : on loadedmetadata",a),t.trigger(r.CONTENT_META,a)},a.pause=function(){return t.getState()!==r.STATE_COMPLETE&&t.getState()!==r.STATE_ERROR&&!s.ended&&!s.error&&s.currentTime!==s.duration&&(OvenPlayerConsole.log("EventListener : on pause"),void t.setState(r.STATE_PAUSED))},a.play=function(){i=-1,s.paused||t.getState()===r.STATE_PLAYING||t.setState(r.STATE_LOADING)},a.playing=function(){OvenPlayerConsole.log("EventListener : on playing"),i<0&&t.setState(r.STATE_PLAYING)},a.progress=function(){var e=s.buffered;if(!e)return!1;var n=s.duration,o=s.currentTime,a=function(e,t,n){return Math.max(Math.min(e,n),t)}((e.length>0?e.end(e.length-1):0)/n,0,1);t.setBuffer(100*a),t.trigger(r.CONTENT_BUFFER,{bufferPercent:100*a,position:o,duration:n}),OvenPlayerConsole.log("EventListener : on progress",100*a)},a.timeupdate=function(){var e=s.currentTime,n=s.duration;if(!isNaN(n)){var o=t.getSources()[t.getCurrentSource()].sectionStart;o&&ea&&t.getState()===r.STATE_PLAYING)return t.stop(),void t.setState(r.STATE_COMPLETE);n>9e15&&(n=1/0),t.isSeeking()||s.paused||t.getState()!==r.STATE_STALLED&&t.getState()!==r.STATE_LOADING&&t.getState()!==r.STATE_AD_PLAYING||function(e,t){return e.toFixed(2)===t.toFixed(2)}(i,e)||(i=-1,t.setState(r.STATE_PLAYING)),o&&o>0&&(e-=o)<0&&(e=0),a&&(n=a),o&&(n-=o),(t.getState()===r.STATE_PLAYING||t.isSeeking())&&t.trigger(r.CONTENT_TIME,{position:e,duration:n})}},a.seeking=function(){t.setSeeking(!0),OvenPlayerConsole.log("EventListener : on seeking",s.currentTime),t.trigger(r.CONTENT_SEEK,{position:s.currentTime})},a.seeked=function(){t.isSeeking()&&(OvenPlayerConsole.log("EventListener : on seeked"),t.setSeeking(!1),t.trigger(r.CONTENT_SEEKED))},a.stalled=function(){OvenPlayerConsole.log("EventListener : on stalled")},a.waiting=function(){OvenPlayerConsole.log("EventListener : on waiting",t.getState()),t.isSeeking()?t.setState(r.STATE_LOADING):t.getState()===r.STATE_PLAYING&&(i=s.currentTime,t.setState(r.STATE_STALLED))},a.volumechange=function(){OvenPlayerConsole.log("EventListener : on volumechange",Math.round(100*s.volume)),t.trigger(r.CONTENT_VOLUME,{volume:Math.round(100*s.volume),mute:s.muted})},a.error=function(){var e=s.error&&s.error.code||0,n={0:r.PLAYER_UNKNWON_ERROR,1:r.PLAYER_UNKNWON_OPERATION_ERROR,2:r.PLAYER_UNKNWON_NETWORK_ERROR,3:r.PLAYER_UNKNWON_DECODE_ERROR,4:r.PLAYER_FILE_ERROR}[e]||0;OvenPlayerConsole.log("EventListener : on error",n),(0,o.errorTrigger)(r.ERRORS.codes[n],t)},Object.keys(a).forEach(function(e){s.removeEventListener(e,a[e]),s.addEventListener(e,a[e])}),u.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),Object.keys(a).forEach(function(e){s.removeEventListener(e,a[e])})},u}},75:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(310)),o=n(306),a=n(1),u=(i(n(7)),n(1));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var i={},s=null,l=null,c=null,E=null,d=null,f=!1,g=!1;try{var T={debug:!1,maxBufferLength:20,maxMaxBufferLength:30,fragLoadingMaxRetry:0,manifestLoadingMaxRetry:0,levelLoadingMaxRetry:0},S=t.getConfig().hlsConfig;if(S)for(var v in S)T[v]=S[v];s=new Hls(T),window.op_hls=s,s.attachMedia(e);var A={name:a.PROVIDER_HLS,element:e,mse:s,listener:null,isLoaded:!1,canSeek:!1,isLive:!1,seeking:!1,state:a.STATE_IDLE,buffer:0,framerate:0,currentQuality:-1,currentSource:-1,qualityLevels:[],sources:[],adTagUrl:n};i=(0,r.default)(A,t,function(e,n){OvenPlayerConsole.log("HLS : onExtendedLoad : ",e,"lastPlayPosition : "+n);var r=t.getConfig().loadingRetryCount;s.loadSource(e.file),s.once(Hls.Events.MANIFEST_LOADED,function(e,t){f=!0}),s.once(Hls.Events.LEVEL_LOADED,function(e,t){g=!0,d&&(clearTimeout(d),d=null),s.config.fragLoadingMaxRetry=2,s.config.manifestLoadingMaxRetry=2,s.config.levelLoadingMaxRetry=2,t.details.live?A.isLive=!0:n&&n>=0&&i.seek(n)}),s.on(Hls.Events.ERROR,function(e,t){if(s.once(Hls.Events.FRAG_LOADING,function(){i.setState(a.STATE_LOADING)}),t&&t.networkDetails&&202===t.networkDetails.status)d&&(clearTimeout(d),d=null),d=setTimeout(function(){s&&(i.stop(),s.stopLoad(),s.startLoad(),i.play())},1e3);else{if(t.type===Hls.ErrorTypes.MEDIA_ERROR&&!t.fatal)return;if(r>0)i.setState(a.STATE_LOADING),d&&(clearTimeout(d),d=null),r-=1,d=t.type===Hls.ErrorTypes.NETWORK_ERROR?setTimeout(function(){i.stop(),s&&(s.stopLoad(),s.startLoad()),i.play()},1e3):t.type===Hls.ErrorTypes.MEDIA_ERROR?setTimeout(function(){s&&s.recoverMediaError(),i.play()},1e3):setTimeout(function(){i.stop(),s&&(s.stopLoad(),s.startLoad()),i.play()},1e3);else{var n=u.PLAYER_UNKNWON_NETWORK_ERROR;t&&t.networkDetails&&400===t.networkDetails.status?n=u.PLAYER_BAD_REQUEST_ERROR:t&&t.networkDetails&&403===t.networkDetails.status?n=u.PLAYER_AUTH_FAILED_ERROR:t&&t.networkDetails&&406===t.networkDetails.status&&(n=u.PLAYER_NOT_ACCEPTABLE_ERROR);var l=a.ERRORS.codes[n];l.error=t.details,(0,o.errorTrigger)(l,i)}}}),i.on(a.PLAYER_STATE,function(e){g||e.prevstate!==a.STATE_LOADING||e.newstate!==a.STATE_IDLE||(d&&(clearTimeout(d),d=null),s&&s.stopLoad())})}),l=i.super("play"),E=i.super("destroy"),OvenPlayerConsole.log("HLS PROVIDER LOADED."),c=i.super("stop"),i.play=function(){if(f)l();else{var e=i.getSources()[i.getCurrentSource()].file;s&&s.loadSource(e)}},i.stop=function(){d&&(clearTimeout(d),d=null),s&&s.stopLoad(),c()},i.destroy=function(){d&&(clearTimeout(d),d=null),s&&s.destroy(),s=null,OvenPlayerConsole.log("HLS : PROVIDER DESTROUYED."),E()}}catch(e){var L=a.ERRORS.codes[a.INIT_HLSJS_NOTFOUND];throw L.error=e,L}return i}}}]); \ No newline at end of file diff --git a/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js.LICENSE b/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js.LICENSE new file mode 100644 index 0000000..222fc1f --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.provider.HlsProvider-0.9.0.js.LICENSE @@ -0,0 +1 @@ +/*! OvenPlayerv0.9.0 | (c)2020 AirenSoft Co., Ltd. | MIT license (https://github.com/AirenSoft/OvenPlayerPrivate/blob/master/LICENSE) | Github : https://github.com/AirenSoft/OvenPlayer */ diff --git a/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js b/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js new file mode 100644 index 0000000..949c7d7 --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{310:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(316)),i=d(r(317)),o=d(r(66)),a=d(r(311)),s=r(306),c=r(1);function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){OvenPlayerConsole.log("[Provider] loaded. ");var d={};(0,o.default)(d);var u=e.element,p=null,l=null;e.adTagUrl&&(OvenPlayerConsole.log("[Provider] Ad Client - ",t.getAdClient()),(p=t.getAdClient()===c.AD_CLIENT_VAST?(0,i.default)(u,d,t,e.adTagUrl):(0,n.default)(u,d,t,e.adTagUrl))||console.log("Can not load due to google ima for Ads.")),l=(0,a.default)(u,d,p?p.videoEndedCallback:null),u.playbackRate=u.defaultPlaybackRate=t.getPlaybackRate();var f=function(n){var i=e.sources[e.currentSource];if(e.framerate=i.framerate,d.setVolume(t.getVolume()),e.framerate||t.setTimecodeMode(!0),r)r(i,n);else{OvenPlayerConsole.log("source loaded : ",i,"lastPlayPosition : "+n);var o=u.src;i.file!==o&&(u.src=i.file,(o||""===o)&&u.load(),n&&n>0&&d.seek(n)),n>0&&(d.seek(n),t.isAutoStart()),t.isAutoStart()}};return d.getName=function(){return e.name},d.canSeek=function(){return e.canSeek},d.setCanSeek=function(t){e.canSeek=t},d.isSeeking=function(){return e.seeking},d.setSeeking=function(t){e.seeking=t},d.setMetaLoaded=function(){e.isLoaded=!0},d.metaLoaded=function(){return e.isLoaded},d.setState=function(t){if(e.state!==t){var r=e.state;if(OvenPlayerConsole.log("Provider : setState()",t),r===c.STATE_AD_PLAYING&&(t===c.STATE_ERROR||t===c.STATE_IDLE))return!1;switch(OvenPlayerConsole.log("Provider : triggerSatatus",t),t){case c.STATE_COMPLETE:d.trigger(c.PLAYER_COMPLETE);break;case c.STATE_PAUSED:d.trigger(c.PLAYER_PAUSE,{prevState:e.state,newstate:c.STATE_PAUSED});break;case c.STATE_AD_PAUSED:d.trigger(c.PLAYER_PAUSE,{prevState:e.state,newstate:c.STATE_AD_PAUSED});break;case c.STATE_PLAYING:d.trigger(c.PLAYER_PLAY,{prevState:e.state,newstate:c.STATE_PLAYING});case c.STATE_AD_PLAYING:d.trigger(c.PLAYER_PLAY,{prevState:e.state,newstate:c.STATE_AD_PLAYING})}e.state=t,d.trigger(c.PLAYER_STATE,{prevstate:r,newstate:e.state})}},d.getState=function(){return e.state},d.setBuffer=function(t){e.buffer=t},d.getBuffer=function(){return e.buffer},d.isLive=function(){return!!e.isLive||u.duration===1/0},d.getDuration=function(){return d.isLive()?1/0:u.duration},d.getPosition=function(){return u?u.currentTime:0},d.setVolume=function(e){if(!u)return!1;u.volume=e/100},d.getVolume=function(){return u?100*u.volume:0},d.setMute=function(e){return!!u&&(void 0===e?(u.muted=!u.muted,d.trigger(c.CONTENT_MUTE,{mute:u.muted})):(u.muted=e,d.trigger(c.CONTENT_MUTE,{mute:u.muted})),u.muted)},d.getMute=function(){return!!u&&u.muted},d.preload=function(r,n){return e.sources=r,e.currentSource=(0,s.pickCurrentSource)(r,e.currentSource,t),f(n||0),new Promise(function(e,r){t.isMute()&&d.setMute(!0),t.getVolume()&&d.setVolume(t.getVolume()),e()})},d.load=function(r){e.sources=r,e.currentSource=(0,s.pickCurrentSource)(r,e.currentSource,t),f(e.sources.starttime||0)},d.play=function(){if(OvenPlayerConsole.log("Provider : play()"),!u)return!1;if(d.getState()!==c.STATE_PLAYING)if(p&&p.isActive()||p&&!p.started())p.play().then(function(e){OvenPlayerConsole.log("Provider : ads play success")}).catch(function(e){OvenPlayerConsole.log("Provider : ads play fail",e)});else{var e=u.play();void 0!==e?e.then(function(){OvenPlayerConsole.log("Provider : video play success")}).catch(function(e){OvenPlayerConsole.log("Provider : video play error",e.message)}):OvenPlayerConsole.log("Provider : video play success (ie)")}},d.pause=function(){if(OvenPlayerConsole.log("Provider : pause()"),!u)return!1;d.getState()===c.STATE_PLAYING?u.pause():d.getState()===c.STATE_AD_PLAYING&&p.pause()},d.seek=function(e){if(!u)return!1;u.currentTime=e},d.setPlaybackRate=function(e){return!!u&&(d.trigger(c.PLAYBACK_RATE_CHANGED,{playbackRate:e}),u.playbackRate=u.defaultPlaybackRate=e)},d.getPlaybackRate=function(){return u?u.playbackRate:0},d.getSources=function(){return u?e.sources.map(function(e,t){var r={file:e.file,type:e.type,label:e.label,index:t,sectionStart:e.sectionStart,sectionEnd:e.sectionEnd,gridThumbnail:e.gridThumbnail};return e.lowLatency&&(r.lowLatency=e.lowLatency),r}):[]},d.getCurrentSource=function(){return e.currentSource},d.setCurrentSource=function(r,n){if(r>-1&&e.sources&&e.sources.length>r)return OvenPlayerConsole.log("source changed : "+r),e.currentSource=r,d.trigger(c.CONTENT_SOURCE_CHANGED,{currentSource:r}),t.setSourceIndex(r),d.setState(c.STATE_IDLE),n&&f(u.currentTime||0),e.currentSource},d.getQualityLevels=function(){return u?e.qualityLevels:[]},d.getCurrentQuality=function(){return u?e.currentQuality:null},d.setCurrentQuality=function(e){},d.isAutoQuality=function(){},d.setAutoQuality=function(e){},d.getFramerate=function(){return e.framerate},d.setFramerate=function(t){return e.framerate=t},d.seekFrame=function(t){var r=e.framerate,n=(u.currentTime*r+t)/r;n+=1e-5,d.pause(),d.seek(n)},d.stop=function(){if(!u)return!1;for(OvenPlayerConsole.log("CORE : stop() "),u.removeAttribute("preload"),u.removeAttribute("src");u.firstChild;)u.removeChild(u.firstChild);d.pause(),d.setState(c.STATE_IDLE)},d.destroy=function(){if(!u)return!1;d.stop(),l.destroy(),p&&(p.destroy(),p=null),d.off(),OvenPlayerConsole.log("CORE : destroy() player stop, listener, event destroied")},d.super=function(e){var t=d[e];return function(){return t.apply(d,arguments)}},d}},311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(306);t.default=function(e,t,r){var o={};OvenPlayerConsole.log("EventListener loaded.",e,t);var a={},s=-1,c=e;return o.canplay=function(){t.setCanSeek(!0),t.trigger(n.CONTENT_BUFFER_FULL),OvenPlayerConsole.log("EventListener : on canplay")},o.durationchange=function(){o.progress(),OvenPlayerConsole.log("EventListener : on durationchange")},o.ended=function(){OvenPlayerConsole.log("EventListener : on ended"),t.getState()!==n.STATE_IDLE&&t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&(r?r(function(){t.setState(n.STATE_COMPLETE)}):t.setState(n.STATE_COMPLETE))},o.loadeddata=function(){},o.loadedmetadata=function(){var e=t.getSources(),r=t.getCurrentSource(),i=r>-1?e[r].type:"",o={duration:t.isLive()?1/0:c.duration,type:i};t.setMetaLoaded(),OvenPlayerConsole.log("EventListener : on loadedmetadata",o),t.trigger(n.CONTENT_META,o)},o.pause=function(){return t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&!c.ended&&!c.error&&c.currentTime!==c.duration&&(OvenPlayerConsole.log("EventListener : on pause"),void t.setState(n.STATE_PAUSED))},o.play=function(){s=-1,c.paused||t.getState()===n.STATE_PLAYING||t.setState(n.STATE_LOADING)},o.playing=function(){OvenPlayerConsole.log("EventListener : on playing"),s<0&&t.setState(n.STATE_PLAYING)},o.progress=function(){var e=c.buffered;if(!e)return!1;var r=c.duration,i=c.currentTime,o=function(e,t,r){return Math.max(Math.min(e,r),t)}((e.length>0?e.end(e.length-1):0)/r,0,1);t.setBuffer(100*o),t.trigger(n.CONTENT_BUFFER,{bufferPercent:100*o,position:i,duration:r}),OvenPlayerConsole.log("EventListener : on progress",100*o)},o.timeupdate=function(){var e=c.currentTime,r=c.duration;if(!isNaN(r)){var i=t.getSources()[t.getCurrentSource()].sectionStart;i&&eo&&t.getState()===n.STATE_PLAYING)return t.stop(),void t.setState(n.STATE_COMPLETE);r>9e15&&(r=1/0),t.isSeeking()||c.paused||t.getState()!==n.STATE_STALLED&&t.getState()!==n.STATE_LOADING&&t.getState()!==n.STATE_AD_PLAYING||function(e,t){return e.toFixed(2)===t.toFixed(2)}(s,e)||(s=-1,t.setState(n.STATE_PLAYING)),i&&i>0&&(e-=i)<0&&(e=0),o&&(r=o),i&&(r-=i),(t.getState()===n.STATE_PLAYING||t.isSeeking())&&t.trigger(n.CONTENT_TIME,{position:e,duration:r})}},o.seeking=function(){t.setSeeking(!0),OvenPlayerConsole.log("EventListener : on seeking",c.currentTime),t.trigger(n.CONTENT_SEEK,{position:c.currentTime})},o.seeked=function(){t.isSeeking()&&(OvenPlayerConsole.log("EventListener : on seeked"),t.setSeeking(!1),t.trigger(n.CONTENT_SEEKED))},o.stalled=function(){OvenPlayerConsole.log("EventListener : on stalled")},o.waiting=function(){OvenPlayerConsole.log("EventListener : on waiting",t.getState()),t.isSeeking()?t.setState(n.STATE_LOADING):t.getState()===n.STATE_PLAYING&&(s=c.currentTime,t.setState(n.STATE_STALLED))},o.volumechange=function(){OvenPlayerConsole.log("EventListener : on volumechange",Math.round(100*c.volume)),t.trigger(n.CONTENT_VOLUME,{volume:Math.round(100*c.volume),mute:c.muted})},o.error=function(){var e=c.error&&c.error.code||0,r={0:n.PLAYER_UNKNWON_ERROR,1:n.PLAYER_UNKNWON_OPERATION_ERROR,2:n.PLAYER_UNKNWON_NETWORK_ERROR,3:n.PLAYER_UNKNWON_DECODE_ERROR,4:n.PLAYER_FILE_ERROR}[e]||0;OvenPlayerConsole.log("EventListener : on error",r),(0,i.errorTrigger)(n.ERRORS.codes[r],t)},Object.keys(o).forEach(function(e){c.removeEventListener(e,o[e]),c.addEventListener(e,o[e])}),a.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),Object.keys(o).forEach(function(e){c.removeEventListener(e,o[e])})},a}},387:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a(r(388));var n=a(r(7)),i=r(26),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r,a,s){var c={iceServers:[{urls:"stun:stun.l.google.com:19302"}]};s.getConfig().webrtcConfig&&(s.getConfig().webrtcConfig.iceServers&&(c.iceServers=s.getConfig().webrtcConfig.iceServers),s.getConfig().webrtcConfig.iceTransportPolicy&&(c.iceTransportPolicy=s.getConfig().webrtcConfig.iceTransportPolicy));var d={},u=null,p=null,l=null,f=null,m={},v=!1,h=null,g=(0,i.analUserAgent)();function C(e){var t=null;return f&&e===f.id?t=f.peerConnection:m[e]&&(t=m[e].peerConnection),t}function T(e,t,i,a,d){var p=new RTCPeerConnection(c);f={id:e,peerId:t,peerConnection:p},p.setRemoteDescription(new RTCSessionDescription(i)).then(function(){p.createAnswer().then(function(r){OvenPlayerConsole.log("create Host Answer : success"),p.setLocalDescription(r).then(function(){var r=p.localDescription;OvenPlayerConsole.log("Local SDP",r),P(u,{id:e,peer_id:t,command:"answer",sdp:r})}).catch(function(e){var t=o.ERRORS.codes[o.PLAYER_WEBRTC_SET_LOCAL_DESC_ERROR];t.error=e,R(t)})}).catch(function(e){var t=o.ERRORS.codes[o.PLAYER_WEBRTC_CREATE_ANSWER_ERROR];t.error=e,R(t)})}).catch(function(e){var t=o.ERRORS.codes[o.PLAYER_WEBRTC_SET_REMOTE_DESC_ERROR];t.error=e,R(t)}),a&&S(p,a),p.onicecandidate=function(r){r.candidate&&(OvenPlayerConsole.log("WebRTCLoader send candidate to server : "+r.candidate),P(u,{id:e,peer_id:t,command:"candidate",candidates:[r.candidate]}))},p.onconnectionstatechange=function(e){OvenPlayerConsole.log("[on connection state change]",p.connectionState,e)},p.oniceconnectionstatechange=function(e){OvenPlayerConsole.log("[on ice connection state change]",p.iceConnectionState,e),("disconnected"===p.iceConnectionState||"closed"===p.iceConnectionState)&&(v||f&&R(o.ERRORS.codes[o.PLAYER_WEBRTC_UNEXPECTED_DISCONNECT]))},p.ontrack=function(e){OvenPlayerConsole.log("stream received."),function e(t){t.statisticsTimer&&clearTimeout(t.statisticsTimer),t.status||(t.status={},t.status.lostPacketsArr=[],t.status.slotLength=8,t.status.prevPacketsLost=0,t.status.avg8Losses=0,t.status.avgMoreThanThresholdCount=0,t.status.threshold=40);var r=t.status.lostPacketsArr,i=t.status.slotLength,a=t.status.prevPacketsLost,c=t.status.avg8Losses,d=t.status.threshold;t.statisticsTimer=setTimeout(function(){if(!t.peerConnection)return!1;t.peerConnection.getStats().then(function(u){u&&s.getConfig().autoFallback&&u&&(u.forEach(function(e){if("inbound-rtp"===e.type&&"video"===e.kind&&!e.isRemote){var s=parseInt(e.packetsLost)-parseInt(a);r.push(parseInt(e.packetsLost)-parseInt(a)),r.length>i&&r.shift(),r.length===i&&(c=n.default.reduce(r,function(e,t){return e+t},0)/i,OvenPlayerConsole.log("Last8 LOST PACKET AVG : "+c,"Current Packet LOST: "+s,"Total Packet Lost: "+e.packetsLost,r),c>d?(t.status.avgMoreThanThresholdCount=t.status.avgMoreThanThresholdCount+1,t.status.avgMoreThanThresholdCount>=60&&(OvenPlayerConsole.log("NETWORK UNSTABLED!!! "),R(o.ERRORS.codes[o.PLAYER_WEBRTC_NETWORK_SLOW]))):t.status.avgMoreThanThresholdCount=0),t.status.prevPacketsLost=e.packetsLost}}),e(t))})},2e3)}(f),l=e.streams[0],r(e.streams[0])}}!function(){var e=window.onbeforeunload;window.onbeforeunload=function(t){e&&e(t),OvenPlayerConsole.log("This calls auto when browser closed."),R()}}();var y=function(e){var r=n.default.clone(e);function i(e){var t,r="";return(t=e.match(new RegExp("\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b","gi")))&&(r=t[0]),r}var o=function(e){var t,r="";return(t=e.match(/^(?:wss?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n\?\=]+)/im))&&(r=t[1]),r}(t),a=i(r.candidate);return""===a||a===o?null:new Promise(function(e,t){"Firefox"!==g.browser||i(o)?(r.candidate=r.candidate.replace(a,o),e(r)):fetch("https://dns.google.com/resolve?name="+o).then(function(e){return e.json()}).then(function(t){if(!(t&&t.Answer&&t.Answer.length>0))return null;if(!t.Answer[0].data)return null;var n=t.Answer[0].data;r.candidate=r.candidate.replace(a,n),e(r)})})};function S(e,t){for(var r=0;r0){for(var r in m){var n=m[r].peerConnection;OvenPlayerConsole.log("Closing client peer connection..."),n.close(),n=null}m={}}clearInterval(p),p=null,u?(OvenPlayerConsole.log("Closing websocket connection..."),OvenPlayerConsole.log("Send Signaling : Stop."),0!==u.readyState&&1!==u.readyState||(v=!0,f&&P(u,{command:"stop",id:f.id}),u.close())):v=!1,u=null,t&&a(t,e)}function P(e,t){e&&e.send(JSON.stringify(t))}return d.connect=function(){return OvenPlayerConsole.log("WebRTCLoader connecting..."),new Promise(function(e,r){OvenPlayerConsole.log("WebRTCLoader url : "+t),E()})},d.destroy=function(){R()},d}},388:function(e,t,r){"use strict";(function(r){var n,i,o,a,s=Object.assign||function(e){for(var t=1;t=14393&&-1===e.indexOf("?transport=udp"):(r=!0,!0)}),delete e.url,e.urls=i?n[0]:n,!!n.length}})}(r.iceServers||[],t),this._iceGatherers=[],r.iceCandidatePoolSize)for(var a=r.iceCandidatePoolSize;a>0;a--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:r.iceServers,gatherPolicy:r.iceTransportPolicy}));else r.iceCandidatePoolSize=0;this._config=r,this.transceivers=[],this._sdpSessionId=n.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};p.prototype.onicecandidate=null,p.prototype.onaddstream=null,p.prototype.ontrack=null,p.prototype.onremovestream=null,p.prototype.onsignalingstatechange=null,p.prototype.oniceconnectionstatechange=null,p.prototype.onconnectionstatechange=null,p.prototype.onicegatheringstatechange=null,p.prototype.onnegotiationneeded=null,p.prototype.ondatachannel=null,p.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},p.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},p.prototype.getConfiguration=function(){return this._config},p.prototype.getLocalStreams=function(){return this.localStreams},p.prototype.getRemoteStreams=function(){return this.remoteStreams},p.prototype._createTransceiver=function(e,t){var r=this.transceivers.length>0,n={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&r)n.iceTransport=this.transceivers[0].iceTransport,n.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();n.iceTransport=i.iceTransport,n.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(n),n},p.prototype.addTrack=function(t,r){if(this._isClosed)throw d("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var n;if(this.transceivers.find(function(e){return e.track===t}))throw d("InvalidAccessError","Track already exists.");for(var i=0;i=15025)e.getTracks().forEach(function(t){r.addTrack(t,e)});else{var n=e.clone();e.getTracks().forEach(function(e,t){var r=n.getTracks()[t];e.addEventListener("enabled",function(e){r.enabled=e.enabled})}),n.getTracks().forEach(function(e){r.addTrack(e,n)})}},p.prototype.removeTrack=function(t){if(this._isClosed)throw d("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var r=this.transceivers.find(function(e){return e.rtpSender===t});if(!r)throw d("InvalidAccessError","Sender was not created by this connection.");var n=r.stream;r.rtpSender.stop(),r.rtpSender=null,r.track=null,r.stream=null,-1===this.transceivers.map(function(e){return e.stream}).indexOf(n)&&this.localStreams.indexOf(n)>-1&&this.localStreams.splice(this.localStreams.indexOf(n),1),this._maybeFireNegotiationNeeded()},p.prototype.removeStream=function(e){var t=this;e.getTracks().forEach(function(e){var r=t.getSenders().find(function(t){return t.track===e});r&&t.removeTrack(r)})},p.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},p.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},p.prototype._createIceGatherer=function(t,r){var n=this;if(r&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var r=!e.candidate||0===Object.keys(e.candidate).length;i.state=r?"completed":"gathering",null!==n.transceivers[t].bufferedCandidateEvents&&n.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},p.prototype._gather=function(t,r){var i=this,o=this.transceivers[r].iceGatherer;if(!o.onlocalcandidate){var a=this.transceivers[r].bufferedCandidateEvents;this.transceivers[r].bufferedCandidateEvents=null,o.removeEventListener("localcandidate",this.transceivers[r].bufferCandidates),o.onlocalcandidate=function(e){if(!(i.usingBundle&&r>0)){var a=new Event("icecandidate");a.candidate={sdpMid:t,sdpMLineIndex:r};var c=e.candidate,d=!c||0===Object.keys(c).length;if(d)"new"!==o.state&&"gathering"!==o.state||(o.state="completed");else{"new"===o.state&&(o.state="gathering"),c.component=1,c.ufrag=o.getLocalParameters().usernameFragment;var u=n.writeCandidate(c);a.candidate=s(a.candidate,n.parseCandidate(u)),a.candidate.candidate=u,a.candidate.toJSON=function(){return{candidate:a.candidate.candidate,sdpMid:a.candidate.sdpMid,sdpMLineIndex:a.candidate.sdpMLineIndex,usernameFragment:a.candidate.usernameFragment}}}var p=n.getMediaSections(i.localDescription.sdp);p[a.candidate.sdpMLineIndex]+=d?"a=end-of-candidates\r\n":"a="+a.candidate.candidate+"\r\n",i.localDescription.sdp=n.getDescription(i.localDescription.sdp)+p.join("");var l=i.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),d||i._dispatchEvent("icecandidate",a),l&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout(function(){a.forEach(function(e){o.onlocalcandidate(e)})},0)}},p.prototype._createIceAndDtlsTransports=function(){var t=this,r=new e.RTCIceTransport(null);r.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var n=new e.RTCDtlsTransport(r);return n.ondtlsstatechange=function(){t._updateConnectionState()},n.onerror=function(){Object.defineProperty(n,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:r,dtlsTransport:n}},p.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var r=this.transceivers[e].iceTransport;r&&(delete r.onicestatechange,delete this.transceivers[e].iceTransport);var n=this.transceivers[e].dtlsTransport;n&&(delete n.ondtlsstatechange,delete n.onerror,delete this.transceivers[e].dtlsTransport)},p.prototype._transceive=function(e,r,i){var a=o(e.localCapabilities,e.remoteCapabilities);r&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:n.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),i&&e.rtpReceiver&&a.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach(function(e){delete e.rtx}),e.recvEncodingParameters.length?a.encodings=e.recvEncodingParameters:a.encodings=[{}],a.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(a.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},p.prototype.setLocalDescription=function(e){var t,r,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(d("TypeError",'Unsupported type "'+e.type+'"'));if(!a("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(d("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=n.splitSections(e.sdp),r=t.shift(),t.forEach(function(e,t){var r=n.parseRtpParameters(e);i.transceivers[t].localCapabilities=r}),i.transceivers.forEach(function(e,t){i._gather(e.mid,t)});else if("answer"===e.type){t=n.splitSections(i.remoteDescription.sdp),r=t.shift();var s=n.matchPrefix(r,"a=ice-lite").length>0;t.forEach(function(e,t){var a=i.transceivers[t],c=a.iceGatherer,d=a.iceTransport,u=a.dtlsTransport,p=a.localCapabilities,l=a.remoteCapabilities;if(!(n.isRejected(e)&&0===n.matchPrefix(e,"a=bundle-only").length)&&!a.rejected){var f=n.getIceParameters(e,r),m=n.getDtlsParameters(e,r);s&&(m.role="server"),i.usingBundle&&0!==t||(i._gather(a.mid,t),"new"===d.state&&d.start(c,f,s?"controlling":"controlled"),"new"===u.state&&u.start(m));var v=o(p,l);i._transceive(a,v.codecs.length>0,!1)}})}return i.localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},p.prototype.setRemoteDescription=function(i){var o=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(d("TypeError",'Unsupported type "'+i.type+'"'));if(!a("setRemoteDescription",i.type,o.signalingState)||o._isClosed)return Promise.reject(d("InvalidStateError","Can not set remote "+i.type+" in state "+o.signalingState));var s={};o.remoteStreams.forEach(function(e){s[e.id]=e});var p=[],l=n.splitSections(i.sdp),f=l.shift(),m=n.matchPrefix(f,"a=ice-lite").length>0,v=n.matchPrefix(f,"a=group:BUNDLE ").length>0;o.usingBundle=v;var h=n.matchPrefix(f,"a=ice-options:")[0];return o.canTrickleIceCandidates=!!h&&h.substr(14).split(" ").indexOf("trickle")>=0,l.forEach(function(a,d){var u=n.splitLines(a),l=n.getKind(a),h=n.isRejected(a)&&0===n.matchPrefix(a,"a=bundle-only").length,g=u[0].substr(2).split(" ")[2],C=n.getDirection(a,f),T=n.parseMsid(a),y=n.getMid(a)||n.generateIdentifier();if("application"===l&&"DTLS/SCTP"===g||h)o.transceivers[d]={mid:y,kind:l,rejected:!0};else{var S,E,R,P,_,b,O,k,w;!h&&o.transceivers[d]&&o.transceivers[d].rejected&&(o.transceivers[d]=o._createTransceiver(l,!0));var L,D,A=n.parseRtpParameters(a);h||(L=n.getIceParameters(a,f),(D=n.getDtlsParameters(a,f)).role="client"),O=n.parseRtpEncodingParameters(a);var M=n.parseRtcpParameters(a),x=n.matchPrefix(a,"a=end-of-candidates",f).length>0,I=n.matchPrefix(a,"a=candidate:").map(function(e){return n.parseCandidate(e)}).filter(function(e){return 1===e.component});if(("offer"===i.type||"answer"===i.type)&&!h&&v&&d>0&&o.transceivers[d]&&(o._disposeIceAndDtlsTransports(d),o.transceivers[d].iceGatherer=o.transceivers[0].iceGatherer,o.transceivers[d].iceTransport=o.transceivers[0].iceTransport,o.transceivers[d].dtlsTransport=o.transceivers[0].dtlsTransport,o.transceivers[d].rtpSender&&o.transceivers[d].rtpSender.setTransport(o.transceivers[0].dtlsTransport),o.transceivers[d].rtpReceiver&&o.transceivers[d].rtpReceiver.setTransport(o.transceivers[0].dtlsTransport)),"offer"!==i.type||h)"answer"!==i.type||h||(E=(S=o.transceivers[d]).iceGatherer,R=S.iceTransport,P=S.dtlsTransport,_=S.rtpReceiver,b=S.sendEncodingParameters,k=S.localCapabilities,o.transceivers[d].recvEncodingParameters=O,o.transceivers[d].remoteCapabilities=A,o.transceivers[d].rtcpParameters=M,I.length&&"new"===R.state&&(!m&&!x||v&&0!==d?I.forEach(function(e){c(S.iceTransport,e)}):R.setRemoteCandidates(I)),v&&0!==d||("new"===R.state&&R.start(E,L,"controlling"),"new"===P.state&&P.start(D)),o._transceive(S,"sendrecv"===C||"recvonly"===C,"sendrecv"===C||"sendonly"===C),!_||"sendrecv"!==C&&"sendonly"!==C?delete S.rtpReceiver:(w=_.track,T?(s[T.stream]||(s[T.stream]=new e.MediaStream),r(w,s[T.stream]),p.push([w,_,s[T.stream]])):(s.default||(s.default=new e.MediaStream),r(w,s.default),p.push([w,_,s.default]))));else{(S=o.transceivers[d]||o._createTransceiver(l)).mid=y,S.iceGatherer||(S.iceGatherer=o._createIceGatherer(d,v)),I.length&&"new"===S.iceTransport.state&&(!x||v&&0!==d?I.forEach(function(e){c(S.iceTransport,e)}):S.iceTransport.setRemoteCandidates(I)),k=e.RTCRtpReceiver.getCapabilities(l),t<15019&&(k.codecs=k.codecs.filter(function(e){return"rtx"!==e.name})),b=S.sendEncodingParameters||[{ssrc:1001*(2*d+2)}];var j,N=!1;if("sendrecv"===C||"sendonly"===C){if(N=!S.rtpReceiver,_=S.rtpReceiver||new e.RTCRtpReceiver(S.dtlsTransport,l),N)w=_.track,T&&"-"===T.stream||(T?(s[T.stream]||(s[T.stream]=new e.MediaStream,Object.defineProperty(s[T.stream],"id",{get:function(){return T.stream}})),Object.defineProperty(w,"id",{get:function(){return T.track}}),j=s[T.stream]):(s.default||(s.default=new e.MediaStream),j=s.default)),j&&(r(w,j),S.associatedRemoteMediaStreams.push(j)),p.push([w,_,j])}else S.rtpReceiver&&S.rtpReceiver.track&&(S.associatedRemoteMediaStreams.forEach(function(t){var r=t.getTracks().find(function(e){return e.id===S.rtpReceiver.track.id});r&&function(t,r){r.removeTrack(t),r.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(r,t)}),S.associatedRemoteMediaStreams=[]);S.localCapabilities=k,S.remoteCapabilities=A,S.rtpReceiver=_,S.rtcpParameters=M,S.sendEncodingParameters=b,S.recvEncodingParameters=O,o._transceive(o.transceivers[d],!1,N)}}}),void 0===o._dtlsRole&&(o._dtlsRole="offer"===i.type?"active":"passive"),o.remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?o._updateSignalingState("have-remote-offer"):o._updateSignalingState("stable"),Object.keys(s).forEach(function(t){var r=s[t];if(r.getTracks().length){if(-1===o.remoteStreams.indexOf(r)){o.remoteStreams.push(r);var n=new Event("addstream");n.stream=r,e.setTimeout(function(){o._dispatchEvent("addstream",n)})}p.forEach(function(e){var t=e[0],n=e[1];r.id===e[2].id&&u(o,t,n,[r])})}}),p.forEach(function(e){e[2]||u(o,e[0],e[1],[])}),e.setTimeout(function(){o&&o.transceivers&&o.transceivers.forEach(function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},p.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},p.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},p.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout(function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}},0))},p.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(e){t[e.iceTransport.state]++}),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",r)}},p.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(e){t[e.iceTransport.state]++,t[e.dtlsTransport.state]++}),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var r=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",r)}},p.prototype.createOffer=function(){var r=this;if(r._isClosed)return Promise.reject(d("InvalidStateError","Can not call createOffer after close"));var o=r.transceivers.filter(function(e){return"audio"===e.kind}).length,a=r.transceivers.filter(function(e){return"video"===e.kind}).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(o=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(a=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(r.transceivers.forEach(function(e){"audio"===e.kind?--o<0&&(e.wantReceive=!1):"video"===e.kind&&--a<0&&(e.wantReceive=!1)});o>0||a>0;)o>0&&(r._createTransceiver("audio"),o--),a>0&&(r._createTransceiver("video"),a--);var c=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.transceivers.forEach(function(i,o){var a=i.track,s=i.kind,c=i.mid||n.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=r._createIceGatherer(o,r.usingBundle));var d=e.RTCRtpSender.getCapabilities(s);t<15019&&(d.codecs=d.codecs.filter(function(e){return"rtx"!==e.name})),d.codecs.forEach(function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach(function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)})}),d.headerExtensions.forEach(function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach(function(t){e.uri===t.uri&&(e.id=t.id)})});var u=i.sendEncodingParameters||[{ssrc:1001*(2*o+1)}];a&&t>=15019&&"video"===s&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,s)),i.localCapabilities=d,i.sendEncodingParameters=u}),"max-compat"!==r._config.bundlePolicy&&(c+="a=group:BUNDLE "+r.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),c+="a=ice-options:trickle\r\n",r.transceivers.forEach(function(e,t){c+=i(e,e.localCapabilities,"offer",e.stream,r._dtlsRole),c+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===r.iceGatheringState||0!==t&&r.usingBundle||(e.iceGatherer.getLocalCandidates().forEach(function(e){e.component=1,c+="a="+n.writeCandidate(e)+"\r\n"}),"completed"===e.iceGatherer.state&&(c+="a=end-of-candidates\r\n"))});var u=new e.RTCSessionDescription({type:"offer",sdp:c});return Promise.resolve(u)},p.prototype.createAnswer=function(){var r=this;if(r._isClosed)return Promise.reject(d("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==r.signalingState&&"have-local-pranswer"!==r.signalingState)return Promise.reject(d("InvalidStateError","Can not call createAnswer in signalingState "+r.signalingState));var a=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.usingBundle&&(a+="a=group:BUNDLE "+r.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n");var s=n.getMediaSections(r.remoteDescription.sdp).length;r.transceivers.forEach(function(e,n){if(!(n+1>s)){if(e.rejected)return"application"===e.kind?a+="m=application 0 DTLS/SCTP 5000\r\n":"audio"===e.kind?a+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(a+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(a+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var d=o(e.localCapabilities,e.remoteCapabilities);!d.codecs.filter(function(e){return"rtx"===e.name.toLowerCase()}).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,a+=i(e,d,"answer",e.stream,r._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(a+="a=rtcp-rsize\r\n")}});var c=new e.RTCSessionDescription({type:"answer",sdp:a});return Promise.resolve(c)},p.prototype.addIceCandidate=function(e){var t,r=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(i,o){if(!r.remoteDescription)return o(d("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var a=e.sdpMLineIndex;if(e.sdpMid)for(var s=0;s0?n.parseCandidate(e.candidate):{};if("tcp"===p.protocol&&(0===p.port||9===p.port))return i();if(p.component&&1!==p.component)return i();if((0===a||a>0&&u.iceTransport!==r.transceivers[0].iceTransport)&&!c(u.iceTransport,p))return o(d("OperationError","Can not add ICE candidate"));var l=e.candidate.trim();0===l.indexOf("a=")&&(l=l.substr(2)),(t=n.getMediaSections(r.remoteDescription.sdp))[a]+="a="+(p.type?l:"end-of-candidates")+"\r\n",r.remoteDescription.sdp=n.getDescription(r.remoteDescription.sdp)+t.join("")}else for(var f=0;f0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},n.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},n.parseFmtp=function(e){for(var t,r={},n=e.substr(e.indexOf(" ")+1).split(";"),i=0;i-1?(r.attribute=e.substr(t+1,n-t-1),r.value=e.substr(n+1)):r.attribute=e.substr(t+1),r},n.getMid=function(e){var t=n.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},n.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},n.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:n.matchPrefix(e+t,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(e,t){var r="a=setup:"+t+"\r\n";return e.fingerprints.forEach(function(e){r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),r},n.getIceParameters=function(e,t){var r=n.splitLines(e);return{usernameFragment:(r=r.concat(n.splitLines(t))).filter(function(e){return 0===e.indexOf("a=ice-ufrag:")})[0].substr(12),password:r.filter(function(e){return 0===e.indexOf("a=ice-pwd:")})[0].substr(10)}},n.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},n.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=n.splitLines(e)[0].split(" "),i=3;i0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=t.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType}).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(function(e){r+=n.writeRtpMap(e),r+=n.writeFmtp(e),r+=n.writeRtcpFb(e)});var i=0;return t.codecs.forEach(function(e){e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+="a=maxptime:"+i+"\r\n"),r+="a=rtcp-mux\r\n",t.headerExtensions.forEach(function(e){r+=n.writeExtmap(e)}),r},n.parseRtpEncodingParameters=function(e){var t,r=[],i=n.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute}),c=s.length>0&&s[0].ssrc,d=n.matchPrefix(e,"a=ssrc-group:FID").map(function(e){var t=e.split(" ");return t.shift(),t.map(function(e){return parseInt(e,10)})});d.length>0&&d[0].length>1&&d[0][0]===c&&(t=d[0][1]),i.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var n={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{ssrc:t}};r.push(n),o&&((n=JSON.parse(JSON.stringify(n))).fec={ssrc:t,mechanism:a?"red+ulpfec":"red"},r.push(n))}}),0===r.length&&c&&r.push({ssrc:c});var u=n.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,r.forEach(function(e){e.maxBitrate=u})),r},n.parseRtcpParameters=function(e){var t={},r=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);var i=n.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;var o=n.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},n.parseMsid=function(e){var t,r=n.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(t=r[0].substr(7).split(" "))[0],track:t[1]};var i=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"msid"===e.attribute});return i.length>0?{stream:(t=i[0].value.split(" "))[0],track:t[1]}:void 0},n.generateSessionId=function(){return Math.random().toString().substr(2,21)},n.writeSessionBoilerplate=function(e,t){var r=void 0!==t?t:2;return"v=0\r\no=thisisadapterortc "+(e||n.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},n.writeMediaSection=function(e,t,r,i){var o=n.writeRtpDescription(e.kind,t);if(o+=n.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=n.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+"\r\n"),o},n.getDirection=function(e,t){for(var r=n.splitLines(e),i=0;i=65)return this.shimAddTrackRemoveTrackWithNative(e);var r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=r.apply(this);return e._reverseStreams=e._reverseStreams||{},t.map(function(t){return e._reverseStreams[t.id]})};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var r=this;if(r._streams=r._streams||{},r._reverseStreams=r._reverseStreams||{},t.getTracks().forEach(function(e){if(r.getSenders().find(function(t){return t.track===e}))throw new DOMException("Track already exists.","InvalidAccessError")}),!r._reverseStreams[t.id]){var n=new e.MediaStream(t.getTracks());r._streams[t.id]=n,r._reverseStreams[n.id]=t,t=n}i.apply(r,[t])};var o=e.RTCPeerConnection.prototype.removeStream;function a(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)}),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;t._streams=t._streams||{},t._reverseStreams=t._reverseStreams||{},o.apply(t,[t._streams[e.id]||e]),delete t._reverseStreams[t._streams[e.id]?t._streams[e.id].id:e.id],delete t._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){var n=this;if("closed"===n.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var i=[].slice.call(arguments,1);if(1!==i.length||!i[0].getTracks().find(function(e){return e===t}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(n.getSenders().find(function(e){return e.track===t}))throw new DOMException("Track already exists.","InvalidAccessError");n._streams=n._streams||{},n._reverseStreams=n._reverseStreams||{};var o=n._streams[r.id];if(o)o.addTrack(t),Promise.resolve().then(function(){n.dispatchEvent(new Event("negotiationneeded"))});else{var a=new e.MediaStream([t]);n._streams[r.id]=a,n._reverseStreams[a.id]=r,n.addStream(a)}return n.getSenders().find(function(e){return e.track===t})},["createOffer","createAnswer"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=this,t=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(e,[function(r){var n=a(e,r);t[0].apply(null,[n])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):r.apply(e,arguments).then(function(t){return a(e,t)})}});var s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:r})}(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};var c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=c.get.apply(this);return""===e.type?e:a(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,r=this;if("closed"===r.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===r))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");r._streams=r._streams||{},Object.keys(r._streams).forEach(function(n){r._streams[n].getTracks().find(function(t){return e.track===t})&&(t=r._streams[n])}),t&&(1===t.getTracks().length?r.removeStream(r._reverseStreams[t.id]):t.removeTrack(e.track),r.dispatchEvent(new Event("negotiationneeded")))}},shimPeerConnection:function(e){var t=n.detectBrowser(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection)e.RTCPeerConnection=function(t,r){return i("PeerConnection"),t&&t.iceTransportPolicy&&(t.iceTransports=t.iceTransportPolicy),new e.webkitRTCPeerConnection(t,r)},e.RTCPeerConnection.prototype=e.webkitRTCPeerConnection.prototype,e.webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return e.webkitRTCPeerConnection.generateCertificate}});else{var r=e.RTCPeerConnection;e.RTCPeerConnection=function(e,t){if(e&&e.iceServers){for(var i=[],o=0;o0&&"function"==typeof e)return o.apply(this,arguments);if(0===o.length&&(0===arguments.length||"function"!=typeof arguments[0]))return o.apply(this,[]);var a=function(e){var t={};return e.result().forEach(function(e){var r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(function(t){r[t]=e.stat(t)}),t[r.id]=r}),t},s=function(e){return new Map(Object.keys(e).map(function(t){return[t,e[t]]}))};if(arguments.length>=2){return o.apply(this,[function(e){i[1](s(a(e)))},arguments[0]])}return new Promise(function(e,t){o.apply(n,[function(t){e(s(a(t)))},t])}).then(t,r)},t.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=arguments,t=this,n=new Promise(function(n,i){r.apply(t,[e[0],n,i])});return e.length<2?n:n.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),t.version<52&&["createOffer","createAnswer"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"===c(arguments[0])){var t=1===arguments.length?arguments[0]:void 0;return new Promise(function(n,i){r.apply(e,[n,i,t])})}return r.apply(this,arguments)}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}});var a=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?a.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}}},{"../utils.js":13,"./getusermedia":6}],6:[function(e,t,r){var n=e("../utils.js"),i=n.log;t.exports=function(e){var t=n.detectBrowser(e),r=e&&e.navigator,o=function(e){if("object"!==(void 0===e?"undefined":c(e))||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"===c(e[r])?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];var o={};"number"==typeof n.ideal?(o[i("min",r)]=n.ideal,t.optional.push(o),(o={})[i("max",r)]=n.ideal,t.optional.push(o)):(o[i("",r)]=n.ideal,t.optional.push(o))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach(function(e){void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},a=function(e,n){if(t.version>=61)return n(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===c(e.audio)){var a=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};a((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),a(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=o(e.audio)}if(e&&"object"===c(e.video)){var s=e.video.facingMode;s=s&&("object"===(void 0===s?"undefined":c(s))?s:{ideal:s});var d,u=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||u))if(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?d=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(d=["front"]),d)return r.mediaDevices.enumerateDevices().then(function(t){var r=(t=t.filter(function(e){return"videoinput"===e.kind})).find(function(e){return d.some(function(t){return-1!==e.label.toLowerCase().indexOf(t)})});return!r&&t.length&&-1!==d.indexOf("back")&&(r=t[t.length-1]),r&&(e.video.deviceId=s.exact?{exact:r.deviceId}:{ideal:r.deviceId}),e.video=o(e.video),i("chrome: "+JSON.stringify(e)),n(e)});e.video=o(e.video)}return i("chrome: "+JSON.stringify(e)),n(e)},s=function(e){return{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};r.getUserMedia=function(e,t,n){a(e,function(e){r.webkitGetUserMedia(e,t,function(e){n&&n(s(e))})})};var d=function(e){return new Promise(function(t,n){r.getUserMedia(e,t,n)})};if(r.mediaDevices||(r.mediaDevices={getUserMedia:d,enumerateDevices:function(){return new Promise(function(t){var r={audio:"audioinput",video:"videoinput"};return e.MediaStreamTrack.getSources(function(e){t(e.map(function(e){return{label:e.label,kind:r[e.kind],deviceId:e.id,groupId:""}}))})})},getSupportedConstraints:function(){return{deviceId:!0,echoCancellation:!0,facingMode:!0,frameRate:!0,height:!0,width:!0}}}),r.mediaDevices.getUserMedia){var u=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(e){return a(e,function(e){return u(e).then(function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(e){e.stop()}),new DOMException("","NotFoundError");return t},function(e){return Promise.reject(s(e))})})}}else r.mediaDevices.getUserMedia=function(e){return d(e)};void 0===r.mediaDevices.addEventListener&&(r.mediaDevices.addEventListener=function(){i("Dummy mediaDevices.addEventListener called.")}),void 0===r.mediaDevices.removeEventListener&&(r.mediaDevices.removeEventListener=function(){i("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":13}],7:[function(e,t,r){var n=e("sdp"),i=e("./utils");t.exports={shimRTCIceCandidate:function(e){if(e.RTCIceCandidate&&!(e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===(void 0===e?"undefined":c(e))&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var r=new t(e),i=n.parseCandidate(e.candidate),o=s(r,i);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,i.wrapPeerConnectionEvent(e,"icecandidate",function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t})}},shimCreateObjectURL:function(e){var t=e&&e.URL;if("object"===(void 0===e?"undefined":c(e))&&e.HTMLMediaElement&&"srcObject"in e.HTMLMediaElement.prototype&&t.createObjectURL&&t.revokeObjectURL){var r=t.createObjectURL.bind(t),n=t.revokeObjectURL.bind(t),o=new Map,a=0;t.createObjectURL=function(e){if("getTracks"in e){var t="polyblob:"+ ++a;return o.set(t,e),i.deprecated("URL.createObjectURL(stream)","elem.srcObject = stream"),t}return r(e)},t.revokeObjectURL=function(e){n(e),o.delete(e)};var s=Object.getOwnPropertyDescriptor(e.HTMLMediaElement.prototype,"src");Object.defineProperty(e.HTMLMediaElement.prototype,"src",{get:function(){return s.get.apply(this)},set:function(e){return this.srcObject=o.get(e)||null,s.set.apply(this,[e])}});var d=e.HTMLMediaElement.prototype.setAttribute;e.HTMLMediaElement.prototype.setAttribute=function(){return 2===arguments.length&&"src"===(""+arguments[0]).toLowerCase()&&(this.srcObject=o.get(arguments[1])||null),d.apply(this,arguments)}}},shimMaxMessageSize:function(e){if(!e.RTCSctpTransport&&e.RTCPeerConnection){var t=i.detectBrowser(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,function(e){var t=n.splitSections(e.sdp);return t.shift(),t.some(function(e){var t=n.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})}(arguments[0])){var e,i=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var r=parseInt(t[1],10);return r!=r?-1:r}(arguments[0]),o=function(e){var r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:57===t.version?65535:65536),r}(i),a=function(e,r){var i=65536;"firefox"===t.browser&&57===t.version&&(i=65535);var o=n.matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?i=parseInt(o[0].substr(19),10):"firefox"===t.browser&&-1!==r&&(i=2147483637),i}(arguments[0],i);e=0===o&&0===a?Number.POSITIVE_INFINITY:0===o||0===a?Math.max(o,a):Math.min(o,a);var s={};Object.defineProperty(s,"maxMessageSize",{get:function(){return e}}),this._sctp=s}return r.apply(this,arguments)}}},shimSendThrowTypeError:function(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=this,r=t.apply(e,arguments),n=r.send;return r.send=function(){var t=arguments[0];if((t.length||t.size||t.byteLength)>e.sctp.maxMessageSize)throw new DOMException("Message too large (can send a maximum of "+e.sctp.maxMessageSize+" bytes)","TypeError");return n.apply(this,arguments)},r}}}}},{"./utils":13,sdp:2}],8:[function(e,t,r){var n=e("../utils"),i=e("rtcpeerconnection-shim");t.exports={shimGetUserMedia:e("./getusermedia"),shimPeerConnection:function(e){var t=n.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){var r=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){r.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}!e.RTCRtpSender||"dtmf"in e.RTCRtpSender.prototype||Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender),e.RTCPeerConnection=i(e,t.version)},shimReplaceTrack:function(e){!e.RTCRtpSender||"replaceTrack"in e.RTCRtpSender.prototype||(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}}},{"../utils":13,"./getusermedia":9,"rtcpeerconnection-shim":1}],9:[function(e,t,r){t.exports=function(e){var t=e&&e.navigator,r=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return r(e).catch(function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))})}}},{}],10:[function(e,t,r){var n=e("../utils");t.exports={shimGetUserMedia:e("./getusermedia"),shimOnTrack:function(e){"object"!==(void 0===e?"undefined":c(e))||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var r=new Event("track");r.track=t,r.receiver={track:t},r.transceiver={receiver:r.receiver},r.streams=[e.stream],this.dispatchEvent(r)}.bind(this))}.bind(this))}}),"object"===(void 0===e?"undefined":c(e))&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},shimSourceObject:function(e){"object"===(void 0===e?"undefined":c(e))&&(!e.HTMLMediaElement||"srcObject"in e.HTMLMediaElement.prototype||Object.defineProperty(e.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(e){var t=n.detectBrowser(e);if("object"===(void 0===e?"undefined":c(e))&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){e.RTCPeerConnection||(e.RTCPeerConnection=function(r,n){if(t.version<38&&r&&r.iceServers){for(var i=[],o=0;o55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var p=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},l=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(e){return"object"===(void 0===e?"undefined":c(e))&&"object"===c(e.audio)&&(e=JSON.parse(JSON.stringify(e)),p(e.audio,"autoGainControl","mozAutoGainControl"),p(e.audio,"noiseSuppression","mozNoiseSuppression")),l(e)},o&&o.prototype.getSettings){var f=o.prototype.getSettings;o.prototype.getSettings=function(){var e=f.apply(this,arguments);return p(e,"mozAutoGainControl","autoGainControl"),p(e,"mozNoiseSuppression","noiseSuppression"),e}}if(o&&o.prototype.applyConstraints){var m=o.prototype.applyConstraints;o.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===(void 0===e?"undefined":c(e))&&(e=JSON.parse(JSON.stringify(e)),p(e,"autoGainControl","mozAutoGainControl"),p(e,"noiseSuppression","mozNoiseSuppression")),m.apply(this,[e])}}}r.getUserMedia=function(e,i,o){if(t.version<44)return s(e,i,o);n.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(i,o)}}},{"../utils":13}],12:[function(e,t,r){var n=e("../utils");t.exports={shimLocalStreamsAPI:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),"getStreamById"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getStreamById=function(e){var t=null;return this._localStreams&&this._localStreams.forEach(function(r){r.id===e&&(t=r)}),this._remoteStreams&&this._remoteStreams.forEach(function(r){r.id===e&&(t=r)}),t}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),-1===this._localStreams.indexOf(e)&&this._localStreams.push(e);var r=this;e.getTracks().forEach(function(n){t.call(r,n,e)})},e.RTCPeerConnection.prototype.addTrack=function(e,r){return r&&(this._localStreams?-1===this._localStreams.indexOf(r)&&this._localStreams.push(r):this._localStreams=[r]),t.call(this,e,r)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var r=this,n=e.getTracks();this.getSenders().forEach(function(e){-1!==n.indexOf(e.track)&&r.removeTrack(e)})}})}},shimRemoteStreamsAPI:function(e){"object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),"onaddstream"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach(function(e){if(t._remoteStreams||(t._remoteStreams=[]),!(t._remoteStreams.indexOf(e)>=0)){t._remoteStreams.push(e);var r=new Event("addstream");r.stream=e,t.dispatchEvent(r)}})})}}))},shimCallbacksAPI:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};var s=function(e,t,r){var n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){var n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){var n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}},shimGetUserMedia:function(e){var t=e&&e.navigator;t.getUserMedia||(t.webkitGetUserMedia?t.getUserMedia=t.webkitGetUserMedia.bind(t):t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t)))},shimRTCIceServerUrls:function(e){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){for(var i=[],o=0;o=r&&parseInt(n[r],10)}t.exports={extractVersion:o,wrapPeerConnectionEvent:function(e,t,r){if(e.RTCPeerConnection){var n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);var o=function(e){n(r(e))};return this._eventMap=this._eventMap||{},this._eventMap[n]=o,i.apply(this,[e,o])};var o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[r])return o.apply(this,arguments);var n=this._eventMap[r];return delete this._eventMap[r],o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)}})}},disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":c(e))+". Please use a boolean."):(n=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},disableWarnings:function(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":c(e))+". Please use a boolean."):(i=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},log:function(){if("object"===("undefined"==typeof window?"undefined":c(window))){if(n)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},deprecated:function(e,t){i&&console.warn(e+" is deprecated, please use "+t+" instead.")},detectBrowser:function(e){var t=e&&e.navigator,r={browser:null,version:null};if(void 0===e||!e.navigator)return r.browser="Not a browser.",r;if(t.mozGetUserMedia)r.browser="firefox",r.version=o(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia)r.browser="chrome",r.version=o(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))r.browser="edge",r.version=o(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return r.browser="Not a supported browser.",r;r.browser="safari",r.version=o(t.userAgent,/AppleWebKit\/(\d+)\./,1)}return r}}},{}]},{},[3])(3)})}).call(this,r(65))},73:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(310)),i=c(r(387)),o=r(27),a=r(306),s=r(1);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var c={},d=null,u=null,p={name:s.PROVIDER_WEBRTC,element:e,mse:null,listener:null,isLoaded:!1,canSeek:!1,isLive:!1,seeking:!1,state:s.STATE_IDLE,buffer:0,framerate:0,currentQuality:-1,currentSource:-1,qualityLevels:[],sources:[],adTagUrl:r};return c=(0,n.default)(p,t,function(r){(0,o.isWebRTC)(r.file,r.type)&&(OvenPlayerConsole.log("WEBRTC : onBeforeLoad : ",r),d&&(d.destroy(),d=null),(d=(0,i.default)(c,r.file,function(t){e.srcObject&&(e.srcObject=null),e.srcObject=t},a.errorTrigger,t)).connect(function(){}).catch(function(e){}),c.on(s.CONTENT_META,function(){t.isAutoStart()},c))}),u=c.super("destroy"),OvenPlayerConsole.log("WEBRTC PROVIDER LOADED."),c.destroy=function(){d&&(d.destroy(),e.srcObject=null,d=null),c.off(s.CONTENT_META,null,c),OvenPlayerConsole.log("WEBRTC : PROVIDER DESTROYED."),u()},c}}}]); \ No newline at end of file diff --git a/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE b/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE new file mode 100644 index 0000000..222fc1f --- /dev/null +++ b/web/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE @@ -0,0 +1 @@ +/*! OvenPlayerv0.9.0 | (c)2020 AirenSoft Co., Ltd. | MIT license (https://github.com/AirenSoft/OvenPlayerPrivate/blob/master/LICENSE) | Github : https://github.com/AirenSoft/OvenPlayer */ diff --git a/web/template/player.html b/web/template/player.html index 6cdd650..22af93e 100644 --- a/web/template/player.html +++ b/web/template/player.html @@ -6,14 +6,14 @@
- + srt://{{.Cfg.Hostname}}:{{.Cfg.SRTServerPort}}?streamid={{.Path}} 0 @@ -34,7 +34,7 @@ {{end}}
- + + {{end}}