ghostream/web/static/ovenplayer/ovenplayer.sdk.js

2 lines
71 KiB
JavaScript

/*! For license information please see ovenplayer.sdk.js.LICENSE */
!function(e){function t(t){for(var n,o,i=t[0],a=t[1],u=0,s=[];u<i.length;u++)o=i[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);s.length;)s.shift()()}var n={},r={8:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,o){n=r[e]=[t,o]});t.push(n[2]=i);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+({0:"ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac",1:"downloader",3:"ovenplayer.provider.DashProvider",4:"ovenplayer.provider.HlsProvider",5:"ovenplayer.provider.Html5",6:"ovenplayer.provider.RtmpProvider",7:"ovenplayer.provider.WebRTCProvider",9:"smiparser",10:"vendors~downloader",11:"vttparser"}[e]||e)+"-0.9.0.js"}(e);var l=new Error;a=function(t){u.onerror=u.onload=null,clearTimeout(s);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,n[1](l)}r[e]=void 0}};var s=setTimeout(function(){a({type:"timeout",target:u})},12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=a;o(o.s=77)}([,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.STATE_BUFFERING="buffering",t.STATE_IDLE="idle";var r=t.STATE_COMPLETE="complete";t.STATE_PAUSED="paused",t.STATE_PLAYING="playing",t.STATE_ERROR="error",t.STATE_LOADING="loading",t.STATE_STALLED="stalled",t.STATE_AD_LOADING="adLoading",t.STATE_AD_LOADED="adLoaded",t.STATE_AD_PLAYING="adPlaying",t.STATE_AD_PAUSED="adPaused",t.STATE_AD_COMPLETE="adComplete",t.STATE_AD_ERROR="adError",t.PLAYER_AD_CLICK="adclick",t.PROVIDER_HTML5="html5",t.PROVIDER_WEBRTC="webrtc",t.PROVIDER_DASH="dash",t.PROVIDER_HLS="hls",t.PROVIDER_RTMP="rtmp",t.CONTENT_COMPLETE=r,t.READY="ready",t.DESTROY="destroy",t.CONTENT_SEEK="seek",t.CONTENT_BUFFER_FULL="bufferFull",t.DISPLAY_CLICK="displayClick",t.CONTENT_LOADED="loaded",t.PLAYLIST_CHANGED="playlistChanged",t.CONTENT_SEEKED="seeked",t.ALL_PLAYLIST_ENDED="allPlaylistEnded",t.NETWORK_UNSTABLED="unstableNetwork",t.ERROR="error",t.PLAYER_STATE="stateChanged",t.PLAYER_COMPLETE=r,t.PLAYER_PAUSE="pause",t.PLAYER_PLAY="play",t.PLAYER_CLICKED="clicked",t.PLAYER_RESIZED="resized",t.PLAYER_LOADING="loading",t.PLAYER_FULLSCREEN_REQUEST="fullscreenRequested",t.PLAYER_FULLSCREEN_CHANGED="fullscreenChanged",t.PLAYER_WARNING="warning",t.AD_CHANGED="adChanged",t.AD_TIME="adTime",t.CONTENT_BUFFER="bufferChanged",t.CONTENT_TIME="time",t.CONTENT_RATE_CHANGE="ratechange",t.CONTENT_VOLUME="volumeChanged",t.CONTENT_MUTE="mute",t.CONTENT_META="metaChanged",t.CONTENT_SOURCE_CHANGED="sourceChanged",t.CONTENT_LEVEL_CHANGED="qualityLevelChanged",t.PLAYBACK_RATE_CHANGED="playbackRateChanged",t.CONTENT_CAPTION_CUE_CHANGED="cueChanged",t.CONTENT_CAPTION_CHANGED="captionChanged",t.CONTENT_TIME_MODE_CHANGED="timeDisplayModeChanged",t.OME_P2P_MODE="p2pMode",t.AD_CLIENT_GOOGLEIMA="googleima",t.AD_CLIENT_VAST="vast",t.INIT_UNKNWON_ERROR=100,t.INIT_UNSUPPORT_ERROR=101,t.INIT_RTMP_SETUP_ERROR=102,t.INIT_DASH_UNSUPPORT=103,t.INIT_ADS_ERROR=104,t.INIT_DASH_NOTFOUND=105,t.INIT_HLSJS_NOTFOUND=106,t.PLAYER_UNKNWON_ERROR=300,t.PLAYER_UNKNWON_OPERATION_ERROR=301,t.PLAYER_UNKNWON_NETWORK_ERROR=302,t.PLAYER_UNKNWON_DECODE_ERROR=303,t.PLAYER_FILE_ERROR=304,t.PLAYER_CAPTION_ERROR=305,t.PLAYER_BAD_REQUEST_ERROR=306,t.PLAYER_AUTH_FAILED_ERROR=307,t.PLAYER_NOT_ACCEPTABLE_ERROR=308,t.PLAYER_WEBRTC_WS_ERROR=501,t.PLAYER_WEBRTC_ADD_ICECANDIDATE_ERROR=502,t.PLAYER_WEBRTC_SET_REMOTE_DESC_ERROR=503,t.PLAYER_WEBRTC_CREATE_ANSWER_ERROR=504,t.PLAYER_WEBRTC_SET_LOCAL_DESC_ERROR=505,t.PLAYER_WEBRTC_NETWORK_SLOW=510,t.PLAYER_WEBRTC_UNEXPECTED_DISCONNECT=511,t.WARN_MSG_MUTEDPLAY="Please touch here to turn on the sound.",t.UI_ICONS={volume_mute:"volume-mute",op_warning:"op-warning"},t.ERRORS={codes:""},t.SYSTEM_TEXT=[{lang:"en",ui:{context:"About OvenPlayer",controls:{live:"live",low_latency_live:"Sub-Second Latency Streaming",low_latency_p2p:"Sub-Second Latency P2P"},playlist:"Playlist",setting:{title:"Settings",speed:"Speed",source:"Source",quality:"Quality",caption:"Caption",display:"Display"}},api:{message:{muted_play:"Please touch here to turn on the sound."},error:{100:{code:100,message:"Can not load due to unknown reasons.",reason:"Can not load due to unknown reasons."},101:{code:101,message:"Can not load due to playable media not found.",reason:"Can not load due to playable media not found."},102:{code:102,message:"Flash fetching process aborted. </br><a href='http://www.adobe.com/go/getflashplayer' target='_self'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player'></a>",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:"플레시 로드가 중단 되었습니다. </br><a href='http://www.adobe.com/go/getflashplayer' target='_self'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player'></a>",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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function e(t){var n={},o=function(e,t){var n=e.querySelectorAll(t);return n.length>1?n:n[0]},i="";return(i=r.default.isElement(t)||r.default.every(t,function(e){return r.default.isElement(e)})?t:"document"===t?document:"window"===t?window:o(document,t))?(n.show=function(){i.style.display="block"},n.hide=function(){i.style.display="none"},n.addClass=function(e){i.classList?i.classList.add(e):-1===i.className.split(" ").indexOf(e)&&(i.className+=" "+e)},n.after=function(e){i.insertAdjacentHTML("afterend",e)},n.append=function(e){i.appendChild(e)},n.before=function(e){i.insertAdjacentHTML("beforebegin",e)},n.children=function(){return i.children||[]},n.contains=function(e){return i!==e&&i.contains(e)},n.empty=function(){i.innerHTML=""},n.find=function(t){return e(o(i,t))},n.css=function(e,t){if(!t)return i.style[e];i.length>0?i.forEach(function(n){n.style[e]=t}):i.style[e]=t},n.removeClass=function(e){i.classList?i.classList.remove(e):i.className=i.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},n.removeAttribute=function(e){i.removeAttribute(e)},n.text=function(e){if(void 0===e)return i.textContent;i.textContent=e},n.html=function(e){i.innerHTML=e},n.hasClass=function(e){return i.classList?i.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(i.name)},n.is=function(e){return i===e},n.offset=function(){var e=i.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},n.width=function(){return i.clientWidth},n.height=function(){return i.clientHeight},n.attr=function(e){return i.getAttribute(e)},n.replace=function(e){i.replaceWith(e)},n.remove=function(){i.length>1?i.parentElement.removeChild(i):i.remove()},n.removeChild=function(e){if(e)i.removeChild(e);else for(;i.hasChildNodes();)i.removeChild(i.firstChild)},n.get=function(){return i},n.closest=function(t){var n=i.closest(t);return n?e(n):null},n):null}},function(e,t,n){"use strict";(function(e,n){var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var i="object"==("undefined"==typeof self?"undefined":o(self))&&self.self===self&&self||"object"==(void 0===e?"undefined":o(e))&&e.global===e&&e||this||{},a=i._,u=Array.prototype,l=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=u.push,f=u.slice,d=l.toString,p=l.hasOwnProperty,g=Array.isArray,v=Object.keys,y=Object.create,m=function(){},h=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var P,O=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},E=function(e,t,n){return h.iteratee!==P?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?O(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=P=function(e,t){return E(e,t,1/0)};var C=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}},b=function(e){if(!h.isObject(e))return{};if(y)return y(e);m.prototype=e;var t=new m;return m.prototype=null,t},_=function(e){return function(t){return null==t?void 0:t[e]}},R=function(e,t){return null!=e&&p.call(e,t)},A=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},T=Math.pow(2,53)-1,w=_("length"),S=function(e){var t=w(e);return"number"==typeof t&&0<=t&&t<=T};h.each=h.forEach=function(e,t,n){var r,o;if(t=O(t,n),S(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=h.keys(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e},h.map=h.collect=function(e,t,n){t=E(t,n);for(var r=!S(e)&&h.keys(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var u=r?r[a]:a;i[a]=t(e[u],u,e)}return i};var N=function(e){return function(t,n,r,o){var i=3<=arguments.length;return function(t,n,r,o){var i=!S(t)&&h.keys(t),a=(i||t).length,u=0<e?0:a-1;for(o||(r=t[i?i[u]:u],u+=e);0<=u&&u<a;u+=e){var l=i?i[u]:u;r=n(r,t[l],l,t)}return r}(t,O(n,o,4),r,i)}};h.reduce=h.foldl=h.inject=N(1),h.reduceRight=h.foldr=N(-1),h.find=h.detect=function(e,t,n){var r=(S(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=E(t,n),h.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(E(t)),n)},h.every=h.all=function(e,t,n){t=E(t,n);for(var r=!S(e)&&h.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0},h.some=h.any=function(e,t,n){t=E(t,n);for(var r=!S(e)&&h.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,n,r){return S(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),0<=h.indexOf(e,t,n)},h.invoke=C(function(e,t,n){var r,o;return h.isFunction(t)?o=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var i=o;if(!i){if(r&&r.length&&(e=A(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,t,n){var r,i,a=-1/0,u=-1/0;if(null==t||"number"==typeof t&&"object"!=o(e[0])&&null!=e)for(var l=0,s=(e=S(e)?e:h.values(e)).length;l<s;l++)null!=(r=e[l])&&a<r&&(a=r);else t=E(t,n),h.each(e,function(e,n,r){i=t(e,n,r),(u<i||i===-1/0&&a===-1/0)&&(a=e,u=i)});return a},h.min=function(e,t,n){var r,i,a=1/0,u=1/0;if(null==t||"number"==typeof t&&"object"!=o(e[0])&&null!=e)for(var l=0,s=(e=S(e)?e:h.values(e)).length;l<s;l++)null!=(r=e[l])&&r<a&&(a=r);else t=E(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<u||i===1/0&&a===1/0)&&(a=e,u=i)});return a},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return S(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=S(e)?h.clone(e):h.values(e),o=w(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var u=h.random(a,i),l=r[a];r[a]=r[u],r[u]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=E(t,n),h.pluck(h.map(e,function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var I=function(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=E(r,o),h.each(n,function(t,o){var a=r(t,o,n);e(i,t,a)}),i}};h.groupBy=I(function(e,t,n){R(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=I(function(e,t,n){e[n]=t}),h.countBy=I(function(e,t,n){R(e,n)?e[n]++:e[n]=1});var x=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?f.call(e):h.isString(e)?e.match(x):S(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:S(e)?e.length:h.keys(e).length},h.partition=I(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return f.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return f.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var M=function e(t,n,r,o){for(var i=(o=o||[]).length,a=0,u=w(t);a<u;a++){var l=t[a];if(S(l)&&(h.isArray(l)||h.isArguments(l)))if(n)for(var s=0,c=l.length;s<c;)o[i++]=l[s++];else e(l,n,r,o),i=o.length;else r||(o[i++]=l)}return o};h.flatten=function(e,t){return M(e,t,!1)},h.without=C(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=E(n,r));for(var o=[],i=[],a=0,u=w(e);a<u;a++){var l=e[a],s=n?n(l,a,e):l;t&&!n?(a&&i===s||o.push(l),i=s):n?h.contains(i,s)||(i.push(s),o.push(l)):h.contains(o,l)||o.push(l)}return o},h.union=C(function(e){return h.uniq(M(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=w(e);r<o;r++){var i=e[r];if(!h.contains(t,i)){var a;for(a=1;a<n&&h.contains(arguments[a],i);a++);a===n&&t.push(i)}}return t},h.difference=C(function(e,t){return t=M(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.zip=C(h.unzip=function(e){for(var t=e&&h.max(e,w).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n}),h.object=function(e,t){for(var n={},r=0,o=w(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var L=function(e){return function(t,n,r){n=E(n,r);for(var o=w(t),i=0<e?0:o-1;0<=i&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}};h.findIndex=L(1),h.findLastIndex=L(-1);var k=function(e,t,n){return function(r,o,i){var a=0,u=w(r);if("number"==typeof i)0<e?a=0<=i?i:Math.max(i+u,a):u=0<=i?Math.min(i+1,u):i+u+1;else if(n&&i&&u)return r[i=n(r,o)]===o?i:-1;if(o!=o)return 0<=(i=t(f.call(r,a,u),h.isNaN))?i+a:-1;for(i=0<e?a:u-1;0<=i&&i<u;i+=e)if(r[i]===o)return i;return-1}};h.indexOf=k(1,h.findIndex,h.sortedIndex=function(e,t,n,r){for(var o=(n=E(n,r,1))(t),i=0,a=w(e);i<a;){var u=Math.floor((i+a)/2);n(e[u])<o?i=u+1:a=u}return i}),h.lastIndexOf=k(-1,h.findLastIndex),h.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(f.call(e,r,r+=t));return n};var D=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=b(e.prototype),a=e.apply(i,o);return h.isObject(a)?a:i};h.bind=C(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=C(function(o){return D(e,r,t,this,n.concat(o))});return r}),((h.partial=C(function(e,t){var n=h.partial.placeholder;return function r(){for(var o=0,i=t.length,a=Array(i),u=0;u<i;u++)a[u]=t[u]===n?arguments[o++]:t[u];for(;o<arguments.length;)a.push(arguments[o++]);return D(e,r,this,this,a)}})).placeholder=h).bindAll=C(function(e,t){var n=(t=M(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function n(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return R(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},h.delay=C(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,o,i,a,u=0;n||(n={});var l=function(){u=!1===n.leading?0:h.now(),r=null,a=e.apply(o,i),r||(o=i=null)},s=function(){var s=h.now();u||!1!==n.leading||(u=s);var c=t-(s-u);return o=this,i=arguments,c<=0||t<c?(r&&(clearTimeout(r),r=null),u=s,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return s.cancel=function(){clearTimeout(r),u=0,r=o=i=null},s},h.debounce=function(e,t,n){var r,o,i=function(t,n){r=null,n&&(o=e.apply(t,n))},a=C(function(a){if(r&&clearTimeout(r),n){var u=!r;r=setTimeout(i,t),u&&(o=e.apply(this,a))}else r=h.delay(i,t,this,a);return o});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.once=h.partial(h.before=function(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},2),h.restArguments=C;var j=!{toString:null}.propertyIsEnumerable("toString"),W=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=W.length,r=e.constructor,o=h.isFunction(r)&&r.prototype||l,i="constructor";for(R(e,i)&&!h.contains(t,i)&&t.push(i);n--;)(i=W[n])in e&&e[i]!==o[i]&&!h.contains(t,i)&&t.push(i)};h.keys=function(e){if(!h.isObject(e))return[];if(v)return v(e);var t=[];for(var n in e)R(e,n)&&t.push(n);return j&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return j&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r},h.mapObject=function(e,t,n){t=E(t,n);for(var r=h.keys(e),o=r.length,i={},a=0;a<o;a++){var u=r[a];i[u]=t(e[u],u,e)}return i},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var F=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),u=a.length,l=0;l<u;l++){var s=a[l];t&&void 0!==n[s]||(n[s]=i[s])}return n}};h.extend=F(h.allKeys),h.extendOwn=h.assign=F(h.keys),h.findKey=function(e,t,n){t=E(t,n);for(var r,o=h.keys(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r};var U,V,Y=function(e,t,n){return t in n};h.pick=C(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(1<t.length&&(r=O(r,t[1])),t=h.allKeys(e)):(r=Y,t=M(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],u=e[a];r(u,a,e)&&(n[a]=u)}return n}),h.omit=C(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),1<t.length&&(n=t[1])):(t=h.map(M(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=F(h.allKeys,!0),h.create=function(e,t){var n=b(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=void 0===e?"undefined":o(e);return("function"===i||"object"===i||"object"==(void 0===t?"undefined":o(t)))&&V(e,t,n,r)},V=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=d.call(e);if(i!==d.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t)}var a="[object Array]"===i;if(!a){if("object"!=(void 0===e?"undefined":o(e))||"object"!=(void 0===t?"undefined":o(t)))return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(h.isFunction(u)&&u instanceof u&&h.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var f,p=h.keys(e);if(c=p.length,h.keys(t).length!==c)return!1;for(;c--;)if(f=p[c],!R(t,f)||!U(e[f],t[f],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(S(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=g||function(e){return"[object Array]"===d.call(e)},h.isObject=function(e){var t=void 0===e?"undefined":o(e);return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return d.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return R(e,"callee")});var H=i.document&&i.document.childNodes;"object"!=("undefined"==typeof Int8Array?"undefined":o(Int8Array))&&"function"!=typeof H&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return R(e,t);for(var n=t.length,r=0;r<n;r++){var o=t[r];if(null==e||!p.call(e,o))return!1;e=e[o]}return!!n},h.noConflict=function(){return i._=a,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return A(t,e)}:_(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?A(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=O(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var Q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},K=h.invert(Q),G=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};h.escape=G(Q),h.unescape=G(K),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=h.isFunction(i)?i.call(e):i}return e};var q=0;h.uniqueId=function(e){var t=++q+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var X=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},J=/\\|'|\r|\n|\u2028|\u2029/g,$=function(e){return"\\"+z[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,o=RegExp([(t.escape||X).source,(t.interpolate||X).source,(t.evaluate||X).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(o,function(t,n,r,o,u){return a+=e.slice(i,u).replace(J,$),i=u+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(t){throw t.source=a,t}var u=function(e){return r.call(this,e,h)},l=t.variable||"obj";return u.source="function("+l+"){\n"+a+"}",u},h.chain=function(e){var t=h(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Z(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=u[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}}),h.each(["concat","join","slice"],function(e){var t=u[e];h.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(65),n(67)(e))},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractExtension=void 0,t.trim=function(e){return e?e.replace(/^\s+|\s+$/g,""):""},t.naturalHms=function(e){var t=parseInt(e,10);if(!e)return"00:00";var n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),o=t-3600*n-60*r;r<10&&(r="0"+r);o<10&&(o="0"+o);return n>0?n+":"+r+":"+o:r+":"+o},t.hmsToSecond=function(e,t){if(!e)return 0;if(r.default.isNumber(e)&&!r.default.isNaN(e))return e;var n=(e=e.replace(",",".")).split(":"),o=n.length,i=0;if("s"===e.slice(-1))i=parseFloat(e);else if("m"===e.slice(-1))i=60*parseFloat(e);else if("h"===e.slice(-1))i=3600*parseFloat(e);else if(o>1){var a=o-1;4===o&&(t&&(i=parseFloat(n[a])/t),a-=1),i+=parseFloat(n[a]),i+=60*parseFloat(n[a-1]),o>=3&&(i+=3600*parseFloat(n[a-2]))}else i=parseFloat(e);if(r.default.isNaN(i))return 0;return i};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.extractExtension=function(e){if(!e||"rtmp"==e.substr(0,4))return"";var t=function(e){var t="";return/[(,]format=mpd-/i.test(e)?t="mpd":/[(,]format=m3u8-/i.test(e)&&(t="m3u8"),t}(e);return t||((e=e.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase():"")}},,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getBrowserLanguage=function(){var e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n=void 0,r=void 0;if(Array.isArray(e.languages))for(n=0;n<e.languages.length;n++)if((r=e.languages[n])&&r.length)return r;for(n=0;n<t.length;n++)if((r=e[t[n]])&&r.length)return r;return null},t.analUserAgent=function(){var e="";screen.width&&(e+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:""));var t=navigator.appVersion,n=navigator.userAgent,r=navigator.appName,o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10),a=void 0,u=void 0,l=void 0;-1!=(u=n.indexOf("Opera"))&&(r="Opera",o=n.substring(u+6),-1!=(u=n.indexOf("Version"))&&(o=n.substring(u+8))),-1!=(u=n.indexOf("OPR"))?(r="Opera",o=n.substring(u+4)):-1!=(u=n.indexOf("SamsungBrowser"))?(r="SamsungBrowser",o=n.substring(u+15)):-1!=(u=n.indexOf("Edge"))?(r="Microsoft Edge",o=n.substring(u+5)):-1!=(u=n.indexOf("MSIE"))?(r="Microsoft Internet Explorer",o=n.substring(u+5),-1!==n.indexOf("Trident/")&&-1!==n.indexOf("rv:")&&(o=n.substring(n.indexOf("rv:")+3))):-1!=(u=n.indexOf("Chrome"))?(r="Chrome",o=n.substring(u+7)):-1!=(u=n.indexOf("CriOS"))?(r="Chrome",o=n.substring(u+6)):-1!=(u=n.indexOf("Firefox"))?(r="Firefox",o=n.substring(u+8)):-1!=(u=n.indexOf("FxiOS"))?(r="Firefox",o=n.substring(u+6)):-1!=(u=n.indexOf("Safari"))?(r="Safari",o=n.substring(u+7),-1!=(u=n.indexOf("Version"))&&(o=n.substring(u+8))):-1!==n.indexOf("Trident/")?(r="Microsoft Internet Explorer",o=n.substring(n.indexOf("rv:")+3)):(a=n.lastIndexOf(" ")+1)<(u=n.lastIndexOf("/"))&&(r=n.substring(a,u),o=n.substring(u+1),r.toLowerCase()==r.toUpperCase()&&(r=navigator.appName)),n.indexOf(" wv"),-1!=(l=o.indexOf(";"))&&(o=o.substring(0,l)),-1!=(l=o.indexOf(" "))&&(o=o.substring(0,l)),-1!=(l=o.indexOf(")"))&&(o=o.substring(0,l)),i=parseInt(""+o,10),isNaN(i)&&(o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10));var s=/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(t),c=!!navigator.cookieEnabled;void 0!==navigator.cookieEnabled||c||(document.cookie="testcookie",c=-1!=document.cookie.indexOf("testcookie"));var f="-",d=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS XI",r:/Mac OS X 11/},{s:"Mac OS X",r:/Mac OS X 10/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var p in d){var g=d[p];if(g.r.test(n)){f=g.s;break}}var v="-";switch(/Windows/.test(f)&&(v=/Windows (.*)/.exec(f)[1],f="Windows"),f){case"Mac OS XI":v=/Mac OS X (11[\.\_\d]+)/.exec(n)[1];break;case"Mac OS X":v=/Mac OS X (10[\.\_\d]+)/.exec(n)[1];break;case"Android":v=/Android ([\.\_\d]+)/.exec(n)[1];break;case"iOS":v=(v=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))[1]+"."+v[2]+"."+(0|v[3])}return{screen:e,browser:r,browserVersion:o,browserMajorVersion:i,mobile:s,ua:n,os:f,osVersion:v,cookies:c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDash=t.isHls=t.isWebRTC=t.isRtmp=void 0;var r=n(13);t.isRtmp=function(e,t){if(e)return 0==e.indexOf("rtmp:")||"rtmp"==t},t.isWebRTC=function(e,t){return!!e&&(0===e.indexOf("ws:")||0===e.indexOf("wss:")||"webrtc"===t)},t.isHls=function(e,t){if(e)return"hls"===t||"m3u8"===t||"application/vnd.apple.mpegurl"===t||"m3u8"==(0,r.extractExtension)(e)},t.isDash=function(e,t){if(e)return"mpd"===t||"dash"===t||"application/dash+xml"===t||"mpd"==(0,r.extractExtension)(e)}},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getScriptPath=function(e){for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n].src;if(r){var o=r.lastIndexOf("/"+e);if(o>=0)return r.substr(0,o+1)}}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.version="0.9.0-2020111913-rev.b51a257"},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(26);t.default=function(){var e={};OvenPlayerConsole.log("SupportChecker loaded.");var t=(0,o.analUserAgent)(),n=[{name:"html5",checkSupport:function(e){var n=document.createElement("video");if(!n.canPlayType)return!1;var o=e.file,i=e.type;if(!i)return!1;var a=e.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"}[i];return!((0,r.isHls)(o,i)&&"Microsoft Edge"===t.browser||(0,r.isRtmp)(o,i)||(0,r.isWebRTC)(o,i)||!a||!n.canPlayType(a))}},{name:"webrtc",checkSupport:function(e){if(!document.createElement("video").canPlayType)return!1;if((0,r.isRtmp)(t,n))return!1;var t=e.file,n=e.type;return!!(0,r.isWebRTC)(t,n)}},{name:"dash",checkSupport:function(e){var t=e.file,n=e.type;return!(0,r.isRtmp)(t,n)&&!("function"!=typeof(window.MediaSource||window.WebKitMediaSource)||!(0,r.isDash)(t,n))}},{name:"hls",checkSupport:function(e){document.createElement("video");var t=e.file,n=e.type;return!(0,r.isRtmp)(t,n)&&function(){var e=function(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}(),t=window.SourceBuffer||window.WebKitSourceBuffer,n=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!n&&!!r}()}},{name:"rtmp",checkSupport:function(e){var n=e.file,o=e.type;return!(!(0,r.isRtmp)(n,o)||!function(){var e=!1;if("ActiveXObject"in window)try{e=!!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){e=!1}else e=!!navigator.mimeTypes["application/x-shockwave-flash"];return e}()||"Microsoft Edge"===t.browser||"Android"===t.os||"iOS"===t.os||"Safari"===t.browser)}}];return e.findProviderNameBySource=function(e){OvenPlayerConsole.log("SupportChecker : findProviderNameBySource()",e);for(var t=e===Object(e)?e:{},r=0;r<n.length;r++)if(n[r].checkSupport(t))return n[r].name},e.findProviderNamesByPlaylist=function(t){OvenPlayerConsole.log("SupportChecker : findProviderNamesByPlaylist()",t);var n=[],r=t;if(r&&r.sources){for(var o=0;o<r.sources.length;o++){var i=r.sources[o];if(i){var a=e.findProviderNameBySource(i);a&&n.push(a)}}return n}return null},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ApiRtmpExpansion=function(e){return{externalCallbackCreep:function(t){return t.name&&t.data?e.triggerEventFromExternal(t.name,t.data):null}}}},,,,,,,,,,,,,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e,n=[],r=function(e,t,n){var r=0,o=e.length;for(r=0;r<o;r++){var i=e[r];i.listener.apply(i.context||n,t)}};return t.on=function(e,r,o){return(n[e]||(n[e]=[])).push({listener:r,context:o}),t},t.trigger=function(e){if(!n)return!1;var o=[].slice.call(arguments,1),i=n[e],a=n.all;i&&r(i,o,t),a&&r(a,arguments,t)},t.off=function(e,r,o){if(!n)return!1;if(!e&&!r&&!o)return n=[],t;for(var i=e?[e]:Object.keys(n),a=0,u=i.length;a<u;a++){e=i[a];var l=n[e];if(l){var s=n[e]=[];if(r||o)for(var c=0,f=l.length;c<f;c++){var d=l[c];(r&&r!==d.listener&&r!==d.listener.listener&&r!==d.listener._listener||o&&o!==d.context)&&s.push(d)}s.length||delete n[e]}}return t},t.once=function(e,n,r){var o=0,i=function r(){o++||(t.off(e,r),n.apply(t,arguments))};return i._listener=n,t.on(e,i,r)},t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=window.VTTCue,o={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}r||((r=function(e,t,n){var r=this,i=/MSIE\s8\.0/.test(navigator.userAgent),l={};i?r=document.createElement("custom"):l.enumerable=!0,r.hasBeenReset=!1;var s="",c=!1,f=e,d=t,p=n,g=null,v="",y=!0,m="auto",h="start",P=50,O="middle",E=50,C="middle";if(Object.defineProperty(r,"id",u({},l,{get:function(){return s},set:function(e){s=""+e}})),Object.defineProperty(r,"pauseOnExit",u({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(r,"startTime",u({},l,{get:function(){return f},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",u({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",u({},l,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",u({},l,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",u({},l,{get:function(){return v},set:function(e){var t=function(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",u({},l,{get:function(){return y},set:function(e){y=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",u({},l,{get:function(){return m},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",u({},l,{get:function(){return h},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",u({},l,{get:function(){return P},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");P=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",u({},l,{get:function(){return O},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");O=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",u({},l,{get:function(){return E},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",u({},l,{get:function(){return C},set:function(e){var t=a(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");C=t,this.hasBeenReset=!0}})),r.displayState=void 0,i)return r}).prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)}),t.default=r},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAndGetContainerElement=void 0;var r=u(n(78)),o=n(27),i=u(n(7)),a=(u(n(6)),n(36));function u(e){return e&&e.__esModule?e:{default:e}}n.p=(0,a.getScriptPath)("ovenplayer.sdk.js");var l=window.OvenPlayerSDK={},s=l.playerList=[],c=t.checkAndGetContainerElement=function(e){if(!e)return null;var t=null;if("string"==typeof e)t=document.getElementById(e);else{if(!e.nodeType)return null;t=e}return t};l.create=function(e,t){var n=c(e),o=(0,r.default)(n);return o.init(t),s.push(o),o},l.getPlayerList=function(){return s},l.getPlayerByContainerId=function(e){for(var t=0;t<s.length;t++)if(s[t].getContainerId()===e)return s[t];return null},l.getPlayerByIndex=function(e){var t=s[e];return t||null},l.removePlayer=function(e){for(var t=0;t<s.length;t++)s[t].getContainerId()===e&&s.splice(t,1)},l.generateWebrtcUrls=function(e){return(i.default.isArray(e)?e:[e]).map(function(e,t){if(e.host&&(0,o.isWebRTC)(e.host)&&e.application&&e.stream)return{file:e.host+"/"+e.application+"/"+e.stream,type:"webrtc",label:e.label?e.label:"webrtc-"+(t+1)}})},l.debug=function(e){return window.OvenPlayerConsole=e?{log:window.console.log}:{log:function(){}},e},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=v(n(79)),i=v(n(82)),a=v(n(66)),u=v(n(83)),l=v(n(84)),s=v(n(85)),c=v(n(86)),f=n(1),d=n(37),p=n(47),g=n(26);v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={};(0,a.default)(t),console.log("[[OvenPlayer]] v."+d.version),OvenPlayerConsole.log("API loaded.");var n=(0,s.default)(t),v=(0,c.default)(),y=(0,g.analUserAgent)(),m=(0,l.default)(e,y),h="",P="",O="",E="",C=!1,b=3,_=null,R=function(e){OvenPlayerConsole.log("runNextPlaylist");var r=e,o=!!n.getPlaylist()[r];P.setSourceIndex(0),P.setVolume(h.getVolume()),o?(O=(0,u.default)(t,["play","seek","stop"]),n.setCurrentPlaylist(r),A(),P.isAutoStart()||t.play()):t.trigger(f.ALL_PLAYLIST_ENDED,null)},A=function(e){return v.loadProviders(n.getCurrentPlayList()).then(function(e){if(e.length<1)throw f.ERRORS.codes[f.INIT_UNSUPPORT_ERROR];h&&(h.destroy(),h=null),E&&(E.destroy(),E=null),E=(0,o.default)(t,n.getCurrentPlaylistIndex()),OvenPlayerConsole.log("API : init() captions");var i=function(e){var t=0;if(e)for(var n=0;n<e.length;n++)if(e[n].default&&(t=n),P.getSourceIndex()===n)return n;return t}(n.getCurrentSources()),a=e[i].name;OvenPlayerConsole.log("API : init() provider",a),h=e[i].provider(m.createMedia(a,P),P,n.getCurrentAdTag()),a===f.PROVIDER_RTMP&&r(t,(0,p.ApiRtmpExpansion)(h)),h.on("all",function(e,r){if(e===f.ERROR&&"Android"===y.os&&"Chrome"===y.browser&&r&&r.code&&r.code===f.PLAYER_WEBRTC_SET_LOCAL_DESC_ERROR)setTimeout(function(){t.setCurrentSource(t.getCurrentSource())},1e3);else if(t.trigger(e,r),"complete"===e&&R(n.getCurrentPlaylistIndex()+1),e===f.PLAYER_PLAY&&(clearInterval(_),C=!1,b=3),e===f.ERROR||e===f.NETWORK_UNSTABLED){if((r.code===f.PLAYER_WEBRTC_UNEXPECTED_DISCONNECT||!P.getConfig().autoFallback&&r.code===f.PLAYER_WEBRTC_NETWORK_SLOW)&&(C||(C=!0,b=3)),C&&b>0)return void(_=setTimeout(function(){t.setCurrentSource(P.getSourceIndex()),b--},1e3));C&&b<=0&&(clearInterval(_),C=!1,b=3),P.getConfig().autoFallback&&P.getSourceIndex()+1<t.getSources().length&&(t.pause(),t.setCurrentSource(P.getSourceIndex()+1))}})}).then(function(){h.preload(n.getCurrentSources(),e).then(function(){t.trigger(f.READY),O.flush(),O.destroy()}).catch(function(e){if(O.off(),e&&e.code&&f.ERRORS.codes[e.code])t.trigger(f.ERROR,f.ERRORS.codes[e.code]);else{var n=f.ERRORS.codes[f.INIT_UNKNWON_ERROR];n.error=e,t.trigger(f.ERROR,n)}})}).catch(function(e){if(e&&e.code&&f.ERRORS.codes[e.code])t.trigger(f.ERROR,f.ERRORS.codes[e.code]);else{var n=f.ERRORS.codes[f.INIT_UNKNWON_ERROR];n.error=e,t.trigger(f.ERROR,n)}O.off()})};return t.init=function(r){O=(0,u.default)(t,["load","play","pause","seek","stop","getDuration","getPosition","getVolume","getMute","getBuffer","getState","getQualityLevels"]),r.mediaContainer=e,r.browser=y,P=(0,i.default)(r,t),OvenPlayerConsole.log("API : init()"),OvenPlayerConsole.log("API : init() config : ",P),f.ERRORS.codes=P.getSystemText().api.error,n.initPlaylist(P.getPlaylist(),P),OvenPlayerConsole.log("API : init() sources : ",n.getCurrentSources()),A()},t.getProviderName=function(){return h?h.getName():null},t.getConfig=function(){return OvenPlayerConsole.log("API : getConfig()",P.getConfig()),P.getConfig()},t.getBrowser=function(){return P.getBrowser()},t.setTimecodeMode=function(e){OvenPlayerConsole.log("API : setTimecodeMode()",e),P.setTimecodeMode(e)},t.isTimecodeMode=function(){return OvenPlayerConsole.log("API : isTimecodeMode()"),P.isTimecodeMode()},t.getFramerate=function(){return OvenPlayerConsole.log("API : getFramerate()"),h.getFramerate()},t.seekFrame=function(e){return h?(OvenPlayerConsole.log("API : seekFrame()",e),h.seekFrame(e)):null},t.getDuration=function(){return h?(OvenPlayerConsole.log("API : getDuration()",h.getDuration()),h.getDuration()):null},t.getPosition=function(){return h?(OvenPlayerConsole.log("API : getPosition()",h.getPosition()),h.getPosition()):null},t.getVolume=function(){return h?(OvenPlayerConsole.log("API : getVolume()",h.getVolume()),h.getVolume()):null},t.setVolume=function(e){if(!h)return null;OvenPlayerConsole.log("API : setVolume() "+e),h.setVolume(e)},t.setMute=function(e){return h?(OvenPlayerConsole.log("API : setMute() "+e),h.setMute(e)):null},t.getMute=function(){return h?(OvenPlayerConsole.log("API : getMute() "+h.getMute()),h.getMute()):null},t.load=function(e){return OvenPlayerConsole.log("API : load() ",e),O=(0,u.default)(t,["play","seek","stop"]),e&&(h&&h.setCurrentQuality(0),n.initPlaylist(e,P)),A()},t.play=function(){if(!h)return null;OvenPlayerConsole.log("API : play() "),h.play()},t.pause=function(){if(!h)return null;OvenPlayerConsole.log("API : pause() "),h.pause()},t.seek=function(e){if(!h)return null;OvenPlayerConsole.log("API : seek() "+e),h.seek(e)},t.setPlaybackRate=function(e){return h?(OvenPlayerConsole.log("API : setPlaybackRate() ",e),h.setPlaybackRate(P.setPlaybackRate(e))):null},t.getPlaybackRate=function(){return h?(OvenPlayerConsole.log("API : getPlaybackRate() ",h.getPlaybackRate()),h.getPlaybackRate()):null},t.getPlaylist=function(){return OvenPlayerConsole.log("API : getPlaylist() ",n.getPlaylist()),n.getPlaylist()},t.getCurrentPlaylist=function(){return OvenPlayerConsole.log("API : getCurrentPlaylist() ",n.getCurrentPlaylistIndex()),n.getCurrentPlaylistIndex()},t.setCurrentPlaylist=function(e){OvenPlayerConsole.log("API : setCurrentPlaylist() ",e),R(e)},t.getSources=function(){return h?(OvenPlayerConsole.log("API : getSources() ",h.getSources()),h.getSources()):null},t.getCurrentSource=function(){return h?(OvenPlayerConsole.log("API : getCurrentSource() ",h.getCurrentSource()),h.getCurrentSource()):null},t.setCurrentSource=function(e){if(!h)return null;OvenPlayerConsole.log("API : setCurrentSource() ",e);var n=h.getSources(),r=n[h.getCurrentSource()],o=n[e],i=h.getPosition(),a=v.isSameProvider(r,o),l=h.setCurrentSource(e,a);return o?(OvenPlayerConsole.log("API : setCurrentQuality() isSameProvider",a),a&&h.getName()!==f.PROVIDER_HLS&&h.getName()!==f.PROVIDER_DASH&&h.getName()!==f.PROVIDER_HTML5||(O=(0,u.default)(t,["play","seek"]),A(i)),l):null},t.getQualityLevels=function(){return h?(OvenPlayerConsole.log("API : getQualityLevels() ",h.getQualityLevels()),h.getQualityLevels()):null},t.getCurrentQuality=function(){return h?(OvenPlayerConsole.log("API : getCurrentQuality() ",h.getCurrentQuality()),h.getCurrentQuality()):null},t.setCurrentQuality=function(e){return h?(OvenPlayerConsole.log("API : setCurrentQuality() ",e),h.setCurrentQuality(e)):null},t.isAutoQuality=function(){return h?(OvenPlayerConsole.log("API : isAutoQuality()"),h.isAutoQuality()):null},t.setAutoQuality=function(e){return h?(OvenPlayerConsole.log("API : setAutoQuality() ",e),h.setAutoQuality(e)):null},t.getCaptionList=function(){return E?(OvenPlayerConsole.log("API : getCaptionList() ",E.getCaptionList()),E.getCaptionList()):null},t.getCurrentCaption=function(){return E?(OvenPlayerConsole.log("API : getCurrentCaption() ",E.getCurrentCaption()),E.getCurrentCaption()):null},t.setCurrentCaption=function(e){if(!E)return null;OvenPlayerConsole.log("API : setCurrentCaption() ",e),E.setCurrentCaption(e)},t.addCaption=function(e){return E?(OvenPlayerConsole.log("API : addCaption() "),E.addCaption(e)):null},t.removeCaption=function(e){return E?(OvenPlayerConsole.log("API : removeCaption() ",e),E.removeCaption(e)):null},t.getBuffer=function(){if(!h)return null;OvenPlayerConsole.log("API : getBuffer() ",h.getBuffer()),h.getBuffer()},t.getState=function(){return h?(OvenPlayerConsole.log("API : getState() ",h.getState()),h.getState()):null},t.stop=function(){if(!h)return null;OvenPlayerConsole.log("API : stop() "),h.stop()},t.remove=function(){if(!h)return null;OvenPlayerConsole.log("API : remove() "),O.destroy(),E&&(E.destroy(),E=null),h&&(h.destroy(),h=null),m&&(m.destroy(),m=null),t.trigger(f.DESTROY),t.off(),v=null,n=null,P=null,O=null,OvenPlayerConsole.log("API : remove() - lazyQueue, currentProvider, providerController, playlistManager, playerConfig, api event destroed. "),OvenPlayerSDK.removePlayer(t.getContainerId()),0===OvenPlayerSDK.getPlayerList().length&&OvenPlayerConsole.log("OvenPlayerSDK.playerList",OvenPlayerSDK.getPlayerList())},t.getVersion=function(){return"v."+d.version},t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(80)),o=n(1),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return"subtitles"===e||"captions"===e};t.default=function(e,t){var n={},a=[],l=-1,s=(0,r.default)(),c=!0;OvenPlayerConsole.log("Caption Manager >> ",t);var f=function(e,t){return e.data=t||[],e.name=e.label||e.name||e.language,e.id=function(e,t){var n,r=e.kind||"cc";return n=e.default||e.defaulttrack?"default":e.id||r+t,c&&(d(a.length||0),c=!1),n}(e,a.length),a.push(e),e.id},d=function(t){l=t,e.trigger(o.CONTENT_CAPTION_CHANGED,l)};if(e.getConfig().playlist&&e.getConfig().playlist.length>0){var p=e.getConfig().playlist[t];if(p&&p.tracks&&p.tracks.length>0)for(var g=function(t){var n=p.tracks[t];u(n.kind)&&!i.default.findWhere(n,{file:n.file})&&s.load(n,n.lang,function(e){e&&e.length>0&&f(n,e)},function(t){var n=o.ERRORS.codes[o.PLAYER_CAPTION_ERROR];n.error=t,e.trigger(o.ERROR,n)})},v=0;v<p.tracks.length;v++)g(v)}return e.on(o.CONTENT_TIME,function(t){var n=t.position;if(l>-1&&a[l]){var r=i.default.filter(a[l].data,function(e){return n>=e.startTime&&(!e.endTime||n)<=e.endTime});r&&r.length>0&&e.trigger(o.CONTENT_CAPTION_CUE_CHANGED,r[0])}}),n.flushCaptionList=function(e){a=[],d(e)},n.getCaptionList=function(){return a||[]},n.getCurrentCaption=function(){return l},n.setCurrentCaption=function(e){if(!(e>-2&&e<a.length))return null;d(e)},n.addCaption=function(t){u(t.kind)&&!i.default.findWhere(s,{file:t.file})&&s.load(t,function(e){e&&e.length>0&&f(t,e)},function(t){var n=errors[o.PLAYER_CAPTION_ERROR];n.error=t,e.trigger(o.ERROR,n)})},n.removeCaption=function(e){return e>-1&&e<a.length?(a.splice(e,1),a):null},n.destroy=function(){a=[],s=null,e.off(o.CONTENT_TIME,null,n)},n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(81)),o=i(n(68));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e={},t=function(e){return e.map(function(e){return new o.default(e.start,e.end,e.text)})};return e.load=function(e,o,i,a){var u={method:"GET",url:e.file,encoding:null};Promise.all([n.e(10),n.e(1)]).then(function(e){return n(69).default}.bind(null,n)).catch(function(e){console.log(e)}).then(function(e){e(u,function(e,u,l){if(e)a(e);else{var s=[],c=[];l.indexOf("WEBVTT")>=0?(OvenPlayerConsole.log("WEBVTT LOADED"),n.e(11).then(function(e){return n(70).default}.bind(null,n)).catch(function(e){console.log(e)}).then(function(e){var t=new e.Parser(window,e.StringDecoder());c=[],t.oncue=function(e){c.push(e)},t.onflush=function(){i(c)},t.parse(l)}).catch(function(e){a(e)})):l.indexOf("SAMI")>=0?(OvenPlayerConsole.log("SAMI LOADED"),n.e(9).then(function(e){return n(71).default}.bind(null,n)).catch(function(e){console.log(e)}).then(function(e){var n=e(l,{fixedLang:o});c=t(n.result),i(c)}).catch(function(e){a(e)})):(OvenPlayerConsole.log("SRT LOADED"),s=(0,r.default)(l),c=t(s),i(c))}})}).catch(function(e){a(e)})},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);function o(e){var t={},n=e.split("\r\n");1===n.length&&(n=e.split("\n"));var o=1;if(n[0].indexOf(" --\x3e ")>0&&(o=0),n.length>o+1&&n[o+1]){var i=n[o],a=i.indexOf(" --\x3e ");a>0&&(t.start=(0,r.hmsToSecond)(i.substr(0,a)),t.end=(0,r.hmsToSecond)(i.substr(a+5)),t.text=n.slice(o+1).join("\r\n"))}return t}t.default=function(e){var t=[],n=(e=(0,r.trim)(e)).split("\r\n\r\n");1===n.length&&(n=e.split("\n\n"));for(var i=0;i<n.length;i++)if("WEBVTT"!==n[i]){var a=o(n[i]);a.text&&t.push(a)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e){return e&&e.__esModule?e:{default:e}}(n(7)),i=n(1);t.default=function(e,t){OvenPlayerConsole.log("Configurator loaded.",e);var n=function(e){!function(e){Object.keys(e).forEach(function(t){"id"!==t&&(e[t]=function(e){if(void 0===e)return null;if("string"==typeof e&&e.length<6){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if(!isNaN(Number(e))&&!isNaN(parseFloat(e)))return Number(e)}return e}(e[t]))})}(e);var t=r({},{mediaContainer:"",playbackRates:[2,1.5,1,.5,.25],playbackRate:1,mute:!1,volume:100,loop:!1,controls:!0,autoStart:!1,autoFallback:!0,timecode:!0,sourceIndex:0,browser:"",hidePlaylistIcon:!1,rtmpBufferTime:1,rtmpBufferTimeMax:3,adClient:"googleima",currentProtocolOnly:!1,systemText:null,lang:"en",loadingRetryCount:0,expandFullScreenUI:!1,fullscreenOption:null,showBigPlayButton:!0},e),n=[];t.systemText&&(n=o.default.isArray(t.systemText)?t.systemText:[t.systemText]);for(var a=0;a<n.length;a++)if(n[a].lang){var u=o.default.findWhere(i.SYSTEM_TEXT,{lang:n[a].lang});u?r(u,n[a]):((u=o.default.findWhere(i.SYSTEM_TEXT,{lang:"en"})).lang=n[a].lang,i.SYSTEM_TEXT.push(r(n[a],u)))}t.systemText=o.default.findWhere(i.SYSTEM_TEXT,{lang:t.lang});var l=t.playbackRates;(l=l.filter(function(e){return o.default.isNumber(e)&&e>=.25&&e<=4}).map(function(e){return Math.round(4*e)/4})).indexOf(1)<0&&l.push(1),l.sort(),t.playbackRates=l,t.rtmpBufferTime=t.rtmpBufferTime>10?10:t.rtmpBufferTime,t.rtmpBufferTimeMax=t.rtmpBufferTimeMax>50?50:t.rtmpBufferTimeMax,t.playbackRates.indexOf(t.playbackRate)<0&&(t.playbackRate=1);var s=t.playlist;if(s)o.default.isArray(s.playlist)&&(t.feedData=s,t.playlist=s.playlist);else{var c=o.default.pick(t,["title","description","type","image","file","sources","tracks","host","application","stream","adTagUrl"]);t.playlist=[c]}return delete t.duration,t}(e),a={getConfig:function(){return n},getAdClient:function(){return n.adClient},setConfig:function(e,t){n[e]=t},getContainer:function(){return n.mediaContainer},getPlaybackRate:function(){return n.playbackRate},setPlaybackRate:function(e){return n.playbackRate=e,e},getQualityLabel:function(){return n.qualityLabel},setQualityLabel:function(e){n.qualityLabel=e},isCurrentProtocolOnly:function(){return n.currentProtocolOnly},getSourceIndex:function(){return n.sourceIndex},setSourceIndex:function(e){n.sourceIndex=e},setTimecodeMode:function(e){n.timecode!==e&&(n.timecode=e,t.trigger(i.CONTENT_TIME_MODE_CHANGED,e))},isTimecodeMode:function(){return n.timecode},getRtmpBufferTime:function(){return n.rtmpBufferTime},getRtmpBufferTimeMax:function(){return n.rtmpBufferTimeMax},isMute:function(){return n.mute},getVolume:function(){return n.volume},setVolume:function(e){n.volume=e},isLoop:function(){return n.loop},isAutoStart:function(){return n.autoStart},isControls:function(){return n.controls},getPlaybackRates:function(){return n.playbackRates},getBrowser:function(){return n.browser},getSystemText:function(){return n.systemText},getLanguage:function(){return n.lang},getPlaylist:function(){return n.playlist},setPlaylist:function(e){return o.default.isArray(e)?n.playlist=e:n.playlist=[e],n.playlist}};return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function(e,t){var n=[],o={},i=!1,a={};OvenPlayerConsole.log("LazyCommandExecutor loaded."),t.forEach(function(t){var n=e[t];o[t]=n||function(){},e[t]=function(){var e=Array.prototype.slice.call(arguments,0);i?(u(),n&&n.apply(a,e)):a.addQueue(t,e)}});var u=function(){for(;n.length>0;){var t=n.shift(),r=t.command,i=t.args;(o[r]||e[r]).apply(e,i)}};return a.setExecuteMode=function(e){i=e,OvenPlayerConsole.log("LazyCommandExecutor : setExecuteMode()",e)},a.getUndecoratedMethods=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getUndecoratedMethods()",o),o},a.getQueue=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getQueue()",getQueue),n},a.addQueue=function(e,t){OvenPlayerConsole.log("LazyCommandExecutor : addQueue()",e,t),n.push({command:e,args:t})},a.flush=function(){OvenPlayerConsole.log("LazyCommandExecutor : flush()"),u()},a.empty=function(){OvenPlayerConsole.log("LazyCommandExecutor : empty()"),n.length=0},a.off=function(){OvenPlayerConsole.log("LazyCommandExecutor : off()"),t.forEach(function(t){var n=o[t];n&&(e[t]=n,delete o[t])})},a.removeAndExcuteOnce=function(t){var i=r.default.findWhere(n,{command:t});OvenPlayerConsole.log("LazyCommandExecutor : removeAndExcuteOnce()",t),n.splice(r.default.findIndex(n,{command:t}),1);var a=o[t];a&&(OvenPlayerConsole.log("removeCommand()"),i&&(a||e[t]).apply(e,i.args),e[t]=a,delete o[t])},a.destroy=function(){OvenPlayerConsole.log("LazyCommandExecutor : destroy()"),a.off(),a.empty()},a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(26);var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(6)),i=n(36),a=n(37);t.default=function(e,t){var n={},u=(0,i.getScriptPath)("ovenplayer.js")+"OvenPlayerFlash.swf?v="+a.version,l=e.getAttribute("data-parent-id"),s=(0,o.default)(e),c="";OvenPlayerConsole.log("MediaManager loaded. browser : ",t);return n.createMedia=function(e,o){return e===r.PROVIDER_RTMP?(c&&n.empty(),function(e,n,r){var o=void 0,i=void 0,a=void 0,f=void 0,d=void 0,p=void 0,g=void 0,v=void 0,y=void 0,m=void 0,h=void 0;return OvenPlayerConsole.log("MediaManager Flash buffer setting : ",n,r),(o=document.createElement("param")).setAttribute("name","movie"),o.setAttribute("value",u),(i=document.createElement("param")).setAttribute("name","flashvars"),i.setAttribute("value","playerId="+l+"&bufferTime="+n+"&bufferMaxTime="+r),(a=document.createElement("param")).setAttribute("name","allowscriptaccess"),a.setAttribute("value","always"),(f=document.createElement("param")).setAttribute("name","allowfullscreen"),f.setAttribute("value","true"),(d=document.createElement("param")).setAttribute("name","quality"),d.setAttribute("value","height"),(p=document.createElement("param")).setAttribute("name","name"),p.setAttribute("value",l+"-flash"),(g=document.createElement("param")).setAttribute("name","menu"),g.setAttribute("value","false"),(v=document.createElement("param")).setAttribute("name","quality"),v.setAttribute("value","high"),(y=document.createElement("param")).setAttribute("name","bgcolor"),y.setAttribute("value","#000000"),(h=document.createElement("param")).setAttribute("name","wmode"),h.setAttribute("value","opaque"),e&&((m=document.createElement("param")).setAttribute("name","loop"),m.setAttribute("value","true")),(c=document.createElement("object")).setAttribute("id",l+"-flash"),c.setAttribute("name",l+"-flash"),c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("scale","default"),c.setAttribute("wmode","opaque"),"Microsoft Internet Explorer"===t.browser&&t.browserMajorVersion<=9?(c.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"),c.appendChild(o)):(c.setAttribute("data",u),c.setAttribute("type","application/x-shockwave-flash")),e&&c.appendChild(m),c.appendChild(h),c.appendChild(y),c.appendChild(v),c.appendChild(f),c.appendChild(a),c.appendChild(i),s.append(c),c}(o.isLoop(),o.getRtmpBufferTime(),o.getRtmpBufferTimeMax())):c||function(e,t){return(c=document.createElement("video")).setAttribute("disableremoteplayback",""),c.setAttribute("webkit-playsinline","true"),c.setAttribute("playsinline","true"),e&&c.setAttribute("loop",""),t&&c.setAttribute("autoplay",""),s.append(c),c}(o.isLoop(),o.isAutoStart())},n.createAdContainer=function(){var e=document.createElement("div");return e.setAttribute("class","op-ads"),s.append(e),e},n.empty=function(){OvenPlayerConsole.log("MediaManager removeElement()"),s.removeChild(c),c=null},n.destroy=function(){s.removeChild(),s=null,c=null,l=null},n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(7)),i=n(27),a=n(13),u=s(n(46)),l=n(1);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={},n={playlist:[],currentIndex:0},s=(0,u.default)();OvenPlayerConsole.log("PlaylistManager loaded.");var c=function(e){if(e&&(e.file||e.host||e.application||e.stream)){var t=r({},{default:!1},e);t.file=(0,a.trim)(""+t.file),t.host&&t.application&&t.stream&&(t.file=t.host+"/"+t.application+"/stream/"+t.stream,delete t.host,delete t.application,delete t.stream);var n=/^[^/]+\/(?:x-)?([^/]+)$/;if(n.test(t.type)&&(t.mimeType=t.type,t.type=t.type.replace(n,"$1")),(0,i.isRtmp)(t.file)?t.type="rtmp":(0,i.isWebRTC)(t.file)?t.type="webrtc":(0,i.isDash)(t.file,t.type)?t.type="dash":t.type||(t.type=(0,a.extractExtension)(t.file)),t.lowLatency&&(t.lowLatency=t.lowLatency),t.type){switch(t.type){case"m3u8":case"vnd.apple.mpegurl":t.type="hls";break;case"m4a":t.type="aac";break;case"smil":t.type="rtmp"}return Object.keys(t).forEach(function(e){""===t[e]&&delete t[e]}),t}}};return t.initPlaylist=function(e,t){OvenPlayerConsole.log("PlaylistManager setPlaylist() ",e);var i=(o.default.isArray(e)?e:[e]).map(function(e){o.default.isArray(e.tracks)||delete e.tracks;var n=r({},{sources:[],tracks:[],title:""},e);n.sources!==Object(n.sources)||o.default.isArray(n.sources)||(n.sources=[c(n.sources)]),o.default.isArray(n.sources)&&0!==n.sources.length||(n.sources=[c(n)]),o.default.isArray(n.sources)&&0!==n.sources.length||(e.levels?n.sources=e.levels:n.sources=[c(e)]);for(var i=0;i<n.sources.length;i++){var a,u=n.sources[i];if(u){var l=u.default;u.default=!!l&&"true"===l.toString(),n.sources[i].label||(n.sources[i].label=n.sources[i].type+"-"+i.toString()),a=c(n.sources[i]),s.findProviderNameBySource(a)?n.sources[i]=a:n.sources[i]=null}}return n.sources=n.sources.filter(function(e){return!!e}),!n.title&&n.sources[0]&&n.sources[0].label&&(n.title=n.sources[0].label),t.isCurrentProtocolOnly()&&(n.sources=function(e){if(e){var t=n.sources[0].type;return o.default.filter(e,{type:t})}}(n.sources)),o.default.isArray(n.tracks)||(n.tracks=[]),o.default.isArray(n.captions)&&(n.tracks=n.tracks.concat(n.captions),delete n.captions),n.tracks=n.tracks.map(function(e){return!(!e||!e.file)&&r({},{kind:"captions",default:!1},e)}).filter(function(e){return!!e}),n}).filter(function(e){return e.sources&&e.sources.length>0})||[];return n.playlist=i,i},t.getPlaylist=function(){return OvenPlayerConsole.log("PlaylistManager getPlaylist() ",n.playlist),n.playlist},t.getCurrentPlayList=function(){return n.playlist[n.currentIndex]?n.playlist[n.currentIndex]:[]},t.getCurrentPlaylistIndex=function(){return n.currentIndex},t.setCurrentPlaylist=function(t){return n.playlist[t]&&(n.currentIndex=t,e.trigger(l.PLAYLIST_CHANGED,n.currentIndex)),n.currentIndex},t.getCurrentSources=function(){return n.playlist[n.currentIndex]?(OvenPlayerConsole.log("PlaylistManager getCurrentSources() ",n.playlist[n.currentIndex].sources),n.playlist[n.currentIndex].sources):null},t.getCurrentAdTag=function(){if(n.playlist[n.currentIndex])return n.playlist[n.currentIndex].adTagUrl||""},t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(46)),o=(n(47),n(1));t.default=function(){var e=(0,r.default)(),t={},i={};OvenPlayerConsole.log("ProviderController loaded.");var a=function(e,n){t[e]||(OvenPlayerConsole.log("ProviderController _registerProvider() ",e),t[e]=n)},u={html5:function(){return Promise.all([n.e(0),n.e(5)]).then(function(e){var t=n(72).default;return a(o.PROVIDER_HTML5,t),{name:o.PROVIDER_HTML5,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},webrtc:function(){return Promise.all([n.e(0),n.e(7)]).then(function(e){var t=n(73).default;return a(o.PROVIDER_WEBRTC,t),{name:o.PROVIDER_WEBRTC,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},dash:function(){return Promise.all([n.e(0),n.e(3)]).then(function(e){var t=n(74).default;return a(o.PROVIDER_DASH,t),{name:o.PROVIDER_DASH,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},hls:function(){return Promise.all([n.e(0),n.e(4)]).then(function(e){var t=n(75).default;return a(o.PROVIDER_HLS,t),{name:o.PROVIDER_HLS,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},rtmp:function(){return Promise.all([n.e(0),n.e(6)]).then(function(e){var t=n(76).default;return a(o.PROVIDER_RTMP,t),{name:o.PROVIDER_RTMP,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})}};return i.loadProviders=function(t){var n=e.findProviderNamesByPlaylist(t);return OvenPlayerConsole.log("ProviderController loadProviders() ",n),n?Promise.all(n.filter(function(e){return!!u[e]}).map(function(e){return u[e]()})):Promise.reject(o.ERRORS.codes[o.INIT_UNSUPPORT_ERROR])},i.findByName=function(e){return OvenPlayerConsole.log("ProviderController findByName() ",e),t[e]},i.getProviderBySource=function(t){var n=e.findProviderNameBySource(t);return OvenPlayerConsole.log("ProviderController getProviderBySource() ",n),i.findByName(n)},i.isSameProvider=function(t,n){return OvenPlayerConsole.log("ProviderController isSameProvider() ",e.findProviderNameBySource(t),e.findProviderNameBySource(n)),e.findProviderNameBySource(t)===e.findProviderNameBySource(n)},i}}]);