yl-vjs-player-sdk
Version:
云粒 videojs 视频播放器 SDK
8 lines • 76.8 kB
JavaScript
/**
* @license
* yunli-vjs-player.js 0.0.45 <https://yunlizhihui.com>
* Copyright Yunlizhihui, Inc. <https://yunlizhihui.com>
* Available under Apache License Version 2.0
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],e):(t=t||self).YunliVjsPlayer=e(t.videojs)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}function o(t){return t&&t.default||t}var i,a,s=function(t){return t&&t.Math==Math&&t},u=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof e&&e)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},c=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!p.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y={}.toString,v=function(t){return y.call(t).slice(8,-1)},m="".split,g=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?m.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return g(b(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T={},S=function(t){return"function"==typeof t?t:void 0},j=function(t,e){return arguments.length<2?S(T[t])||S(u[t]):T[t]&&T[t][e]||u[t]&&u[t][e]},O=j("navigator","userAgent")||"",A=u.process,E=u.Deno,x=A&&A.versions||E&&E.version,R=x&&x.v8;R?a=(i=R.split("."))[0]<4?1:i[0]+i[1]:O&&(!(i=O.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=O.match(/Chrome\/(\d+)/))&&(a=i[1]);var P=a&&+a,L=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&P&&P<41})),N=L&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,k=N?function(t){return"symbol"==typeof t}:function(t){var e=j("Symbol");return"function"==typeof e&&Object(t)instanceof e},C=u["__core-js_shared__"]||function(t,e){try{Object.defineProperty(u,t,{value:e,configurable:!0,writable:!0})}catch(r){u[t]=e}return e}("__core-js_shared__",{}),I=n((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),U=function(t){return Object(b(t))},D={}.hasOwnProperty,M=Object.hasOwn||function(t,e){return D.call(U(t),e)},F=0,B=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++F+B).toString(36)},J=I("wks"),H=u.Symbol,V=N?H:H&&H.withoutSetter||q,z=function(t){return M(J,t)&&(L||"string"==typeof J[t])||(L&&M(H,t)?J[t]=H[t]:J[t]=V("Symbol."+t)),J[t]},$=z("toPrimitive"),W=function(t,e){if(!w(t)||k(t))return t;var r,n=t[$];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!w(r)||k(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!w(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!w(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!w(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},G=function(t){var e=W(t,"string");return k(e)?e:String(e)},Y=u.document,K=w(Y)&&w(Y.createElement),Z=function(t){return K?Y.createElement(t):{}},Q=!c&&!l((function(){return 7!=Object.defineProperty(Z("div"),"a",{get:function(){return 7}}).a})),X=Object.getOwnPropertyDescriptor,tt={f:c?X:function(t,e){if(t=_(t),e=G(e),Q)try{return X(t,e)}catch(t){}if(M(t,e))return d(!h.f.call(t,e),t[e])}},et=/#|\.prototype\./,rt=function(t,e){var r=ot[nt(t)];return r==at||r!=it&&("function"==typeof e?l(e):!!e)},nt=rt.normalize=function(t){return String(t).replace(et,".").toLowerCase()},ot=rt.data={},it=rt.NATIVE="N",at=rt.POLYFILL="P",st=rt,ut=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},lt=function(t,e,r){if(ut(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ct=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},pt=Object.defineProperty,ft={f:c?pt:function(t,e,r){if(ct(t),e=G(e),ct(r),Q)try{return pt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ht=c?function(t,e,r){return ft.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},dt=tt.f,yt=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},vt=function(t,e){var r,n,o,i,a,s,l,c,p=t.target,f=t.global,h=t.stat,d=t.proto,y=f?u:h?u[p]:(u[p]||{}).prototype,v=f?T:T[p]||ht(T,p,{})[p],m=v.prototype;for(o in e)r=!st(f?o:p+(h?".":"#")+o,t.forced)&&y&&M(y,o),a=v[o],r&&(s=t.noTargetGet?(c=dt(y,o))&&c.value:y[o]),i=r&&s?s:e[o],r&&typeof a==typeof i||(l=t.bind&&r?lt(i,u):t.wrap&&r?yt(i):d&&"function"==typeof i?lt(Function.call,i):i,(t.sham||i&&i.sham||a&&a.sham)&&ht(l,"sham",!0),ht(v,o,l),d&&(M(T,n=p+"Prototype")||ht(T,n,{}),ht(T[n],o,i),t.real&&m&&!m[o]&&ht(m,o,i)))},mt=Math.ceil,gt=Math.floor,bt=function(t){return isNaN(t=+t)?0:(t>0?gt:mt)(t)},_t=Math.max,wt=Math.min,Tt=function(t,e){var r=bt(t);return r<0?_t(r+e,0):wt(r,e)},St=Math.min,jt=function(t){return t>0?St(bt(t),9007199254740991):0},Ot=Array.isArray||function(t){return"Array"==v(t)},At=z("species"),Et=function(t,e){return new(function(t){var e;return Ot(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Ot(e.prototype)?w(e)&&null===(e=e[At])&&(e=void 0):e=void 0),void 0===e?Array:e}(t))(0===e?0:e)},xt=function(t,e,r){var n=G(e);n in t?ft.f(t,n,d(0,r)):t[n]=r},Rt=z("species"),Pt=function(t){return P>=51||!l((function(){var e=[];return(e.constructor={})[Rt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Lt=Pt("splice"),Nt=Math.max,kt=Math.min;vt({target:"Array",proto:!0,forced:!Lt},{splice:function(t,e){var r,n,o,i,a,s,u=U(this),l=jt(u.length),c=Tt(t,l),p=arguments.length;if(0===p?r=n=0:1===p?(r=0,n=l-c):(r=p-2,n=kt(Nt(bt(e),0),l-c)),l+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Et(u,n),i=0;i<n;i++)(a=c+i)in u&&xt(o,i,u[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:delete u[s];for(i=l;i>l-n+r;i--)delete u[i-1]}else if(r>n)for(i=l-n;i>c;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:delete u[s];for(i=0;i<r;i++)u[i+c]=arguments[i+2];return u.length=l-n+r,o}});var Ct=function(t){return T[t+"Prototype"]},It=Ct("Array").splice,Ut=Array.prototype,Dt=function(t){var e=t.splice;return t===Ut||t instanceof Array&&e===Ut.splice?It:e},Mt=[].slice,Ft=/MSIE .\./.test(O),Bt=function(t){return function(e,r){var n=arguments.length>2,o=n?Mt.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,r)}};vt({global:!0,bind:!0,forced:Ft},{setTimeout:Bt(u.setTimeout),setInterval:Bt(u.setInterval)});var qt=T.setTimeout,Jt=function(t){return function(e,r,n){var o,i=_(e),a=jt(i.length),s=Tt(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},Ht={includes:Jt(!0),indexOf:Jt(!1)},Vt=function(t,e){var r=[][t];return!!r&&l((function(){r.call(null,e||function(){throw 1},1)}))},zt=Ht.indexOf,$t=[].indexOf,Wt=!!$t&&1/[1].indexOf(1,-0)<0,Gt=Vt("indexOf");vt({target:"Array",proto:!0,forced:Wt||!Gt},{indexOf:function(t){return Wt?$t.apply(this,arguments)||0:zt(this,t,arguments.length>1?arguments[1]:void 0)}});var Yt=Ct("Array").indexOf,Kt=Array.prototype,Zt=function(t){var e=t.indexOf;return t===Kt||t instanceof Array&&e===Kt.indexOf?Yt:e},Qt={Play:"播放",Pause:"暂停","Current Time":"当前时间",Duration:"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型",LIVE:"直播",Loaded:"加载完成",Progress:"进度",Fullscreen:"全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Non-Fullscreen":"退出全屏",Mute:"静音",Unmute:"取消静音","Playback Rate":"播放速度",Subtitles:"字幕","subtitles off":"关闭字幕",Captions:"内嵌字幕","captions off":"关闭内嵌字幕",Chapters:"节目段落","Close Modal Dialog":"关闭弹窗",Descriptions:"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频",Close:"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器",Replay:"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定",Text:"文字",White:"白",Black:"黑",Red:"红",Green:"绿",Blue:"蓝",Yellow:"黄",Magenta:"紫红",Cyan:"青",Background:"背景",Window:"窗口",Transparent:"透明","Semi-Transparent":"半透明",Opaque:"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式",None:"无",Raised:"浮雕",Depressed:"压低",Uniform:"均匀",Dropshadow:"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体",Casual:"舒适",Script:"手写体","Small Caps":"小型大写字体",Reset:"重置","restore all settings to the default values":"恢复全部设定至预设值",Done:"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。",Snap:"截屏",Record:"录制","Non-Record":"停止录制"};var Xt={},te=Ht.indexOf,ee=function(t,e){var r,n=_(t),o=0,i=[];for(r in n)!M(Xt,r)&&M(n,r)&&i.push(r);for(;e.length>o;)M(n,r=e[o++])&&(~te(i,r)||i.push(r));return i},re=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ne=Object.keys||function(t){return ee(t,re)},oe={f:Object.getOwnPropertySymbols},ie=Object.assign,ae=Object.defineProperty,se=!ie||l((function(){if(c&&1!==ie({b:1},ie(ae({},"a",{enumerable:!0,get:function(){ae(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=ie({},t)[r]||"abcdefghijklmnopqrst"!=ne(ie({},e)).join("")}))?function(t,e){for(var r=U(t),n=arguments.length,o=1,i=oe.f,a=h.f;n>o;)for(var s,u=g(arguments[o++]),l=i?ne(u).concat(i(u)):ne(u),p=l.length,f=0;p>f;)s=l[f++],c&&!a.call(u,s)||(r[s]=u[s]);return r}:ie;vt({target:"Object",stat:!0,forced:Object.assign!==se},{assign:se});var ue=T.Object.assign,le=z("isConcatSpreadable"),ce=P>=51||!l((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),pe=Pt("concat"),fe=function(t){if(!w(t))return!1;var e=t[le];return void 0!==e?!!e:Ot(t)};vt({target:"Array",proto:!0,forced:!ce||!pe},{concat:function(t){var e,r,n,o,i,a=U(this),s=Et(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(fe(i=-1===e?a:arguments[e])){if(u+(o=jt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,u++)r in i&&xt(s,u,i[r])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");xt(s,u++,i)}return s.length=u,s}});var he=Ct("Array").concat,de=Array.prototype,ye=function(t){var e=t.concat;return t===de||t instanceof Array&&e===de.concat?he:e};var ve=function(t,e){t=t<0?0:t;var r=Math.floor(t%60),n=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=n=r="-"),(o=o>0||a>0?o+":":"")+(n=((o||i>=10)&&n<10?"0"+n:n)+":")+(r=r<10?"0"+r:r)};function me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return ve(t,e)}var ge=l((function(){ne(1)}));vt({target:"Object",stat:!0,forced:ge},{keys:function(t){return ne(U(t))}});var be,_e=T.Object.keys,we=function(t){if(k(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Te=c?Object.defineProperties:function(t,e){ct(t);for(var r,n=ne(e),o=n.length,i=0;o>i;)ft.f(t,r=n[i++],e[r]);return t},Se=j("document","documentElement"),je=I("keys"),Oe=function(t){return je[t]||(je[t]=q(t))},Ae=Oe("IE_PROTO"),Ee=function(){},xe=function(t){return"<script>"+t+"<\/script>"},Re=function(t){t.write(xe("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pe=function(){try{be=new ActiveXObject("htmlfile")}catch(t){}var t,e;Pe="undefined"!=typeof document?document.domain&&be?Re(be):((e=Z("iframe")).style.display="none",Se.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(xe("document.F=Object")),t.close(),t.F):Re(be);for(var r=re.length;r--;)delete Pe.prototype[re[r]];return Pe()};Xt[Ae]=!0;var Le=Object.create||function(t,e){var r;return null!==t?(Ee.prototype=ct(t),r=new Ee,Ee.prototype=null,r[Ae]=t):r=Pe(),void 0===e?r:Te(r,e)},Ne=re.concat("length","prototype"),ke={f:Object.getOwnPropertyNames||function(t){return ee(t,Ne)}},Ce=ke.f,Ie={}.toString,Ue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],De={f:function(t){return Ue&&"[object Window]"==Ie.call(t)?function(t){try{return Ce(t)}catch(t){return Ue.slice()}}(t):Ce(_(t))}},Me=function(t,e,r,n){n&&n.enumerable?t[e]=r:ht(t,e,r)},Fe={f:z},Be=ft.f,qe=function(t){var e=T.Symbol||(T.Symbol={});M(e,t)||Be(e,t,{value:Fe.f(t)})},Je={};Je[z("toStringTag")]="z";var He="[object z]"===String(Je),Ve=z("toStringTag"),ze="Arguments"==v(function(){return arguments}()),$e=He?v:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ve))?r:ze?v(e):"Object"==(n=v(e))&&"function"==typeof e.callee?"Arguments":n},We=He?{}.toString:function(){return"[object "+$e(this)+"]"},Ge=ft.f,Ye=z("toStringTag"),Ke=function(t,e,r,n){if(t){var o=r?t:t.prototype;M(o,Ye)||Ge(o,Ye,{configurable:!0,value:e}),n&&!He&&ht(o,"toString",We)}},Ze=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(t){return Ze.call(t)});var Qe,Xe,tr,er=C.inspectSource,rr=u.WeakMap,nr="function"==typeof rr&&/native code/.test(er(rr)),or=u.WeakMap;if(nr||C.state){var ir=C.state||(C.state=new or),ar=ir.get,sr=ir.has,ur=ir.set;Qe=function(t,e){if(sr.call(ir,t))throw new TypeError("Object already initialized");return e.facade=t,ur.call(ir,t,e),e},Xe=function(t){return ar.call(ir,t)||{}},tr=function(t){return sr.call(ir,t)}}else{var lr=Oe("state");Xt[lr]=!0,Qe=function(t,e){if(M(t,lr))throw new TypeError("Object already initialized");return e.facade=t,ht(t,lr,e),e},Xe=function(t){return M(t,lr)?t[lr]:{}},tr=function(t){return M(t,lr)}}var cr={set:Qe,get:Xe,has:tr,enforce:function(t){return tr(t)?Xe(t):Qe(t,{})},getterFor:function(t){return function(e){var r;if(!w(e)||(r=Xe(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},pr=[].push,fr=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,l,c,p){for(var f,h,d=U(u),y=g(d),v=lt(l,c,3),m=jt(y.length),b=0,_=p||Et,w=e?_(u,m):r||a?_(u,0):void 0;m>b;b++)if((s||b in y)&&(h=v(f=y[b],b,d),t))if(e)w[b]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:pr.call(w,f)}else switch(t){case 4:return!1;case 7:pr.call(w,f)}return i?-1:n||o?o:w}},hr={forEach:fr(0),map:fr(1),filter:fr(2),some:fr(3),every:fr(4),find:fr(5),findIndex:fr(6),filterReject:fr(7)},dr=hr.forEach,yr=Oe("hidden"),vr=z("toPrimitive"),mr=cr.set,gr=cr.getterFor("Symbol"),br=Object.prototype,_r=u.Symbol,wr=j("JSON","stringify"),Tr=tt.f,Sr=ft.f,jr=De.f,Or=h.f,Ar=I("symbols"),Er=I("op-symbols"),xr=I("string-to-symbol-registry"),Rr=I("symbol-to-string-registry"),Pr=I("wks"),Lr=u.QObject,Nr=!Lr||!Lr.prototype||!Lr.prototype.findChild,kr=c&&l((function(){return 7!=Le(Sr({},"a",{get:function(){return Sr(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Tr(br,e);n&&delete br[e],Sr(t,e,r),n&&t!==br&&Sr(br,e,n)}:Sr,Cr=function(t,e){var r=Ar[t]=Le(_r.prototype);return mr(r,{type:"Symbol",tag:t,description:e}),c||(r.description=e),r},Ir=function(t,e,r){t===br&&Ir(Er,e,r),ct(t);var n=G(e);return ct(r),M(Ar,n)?(r.enumerable?(M(t,yr)&&t[yr][n]&&(t[yr][n]=!1),r=Le(r,{enumerable:d(0,!1)})):(M(t,yr)||Sr(t,yr,d(1,{})),t[yr][n]=!0),kr(t,n,r)):Sr(t,n,r)},Ur=function(t,e){ct(t);var r=_(e),n=ne(r).concat(Br(r));return dr(n,(function(e){c&&!Dr.call(r,e)||Ir(t,e,r[e])})),t},Dr=function(t){var e=G(t),r=Or.call(this,e);return!(this===br&&M(Ar,e)&&!M(Er,e))&&(!(r||!M(this,e)||!M(Ar,e)||M(this,yr)&&this[yr][e])||r)},Mr=function(t,e){var r=_(t),n=G(e);if(r!==br||!M(Ar,n)||M(Er,n)){var o=Tr(r,n);return!o||!M(Ar,n)||M(r,yr)&&r[yr][n]||(o.enumerable=!0),o}},Fr=function(t){var e=jr(_(t)),r=[];return dr(e,(function(t){M(Ar,t)||M(Xt,t)||r.push(t)})),r},Br=function(t){var e=t===br,r=jr(e?Er:_(t)),n=[];return dr(r,(function(t){!M(Ar,t)||e&&!M(br,t)||n.push(Ar[t])})),n};if(L||(Me((_r=function(){if(this instanceof _r)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?we(arguments[0]):void 0,e=q(t),r=function(t){this===br&&r.call(Er,t),M(this,yr)&&M(this[yr],e)&&(this[yr][e]=!1),kr(this,e,d(1,t))};return c&&Nr&&kr(br,e,{configurable:!0,set:r}),Cr(e,t)}).prototype,"toString",(function(){return gr(this).tag})),Me(_r,"withoutSetter",(function(t){return Cr(q(t),t)})),h.f=Dr,ft.f=Ir,tt.f=Mr,ke.f=De.f=Fr,oe.f=Br,Fe.f=function(t){return Cr(z(t),t)},c&&Sr(_r.prototype,"description",{configurable:!0,get:function(){return gr(this).description}})),vt({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:_r}),dr(ne(Pr),(function(t){qe(t)})),vt({target:"Symbol",stat:!0,forced:!L},{for:function(t){var e=we(t);if(M(xr,e))return xr[e];var r=_r(e);return xr[e]=r,Rr[r]=e,r},keyFor:function(t){if(!k(t))throw TypeError(t+" is not a symbol");if(M(Rr,t))return Rr[t]},useSetter:function(){Nr=!0},useSimple:function(){Nr=!1}}),vt({target:"Object",stat:!0,forced:!L,sham:!c},{create:function(t,e){return void 0===e?Le(t):Ur(Le(t),e)},defineProperty:Ir,defineProperties:Ur,getOwnPropertyDescriptor:Mr}),vt({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Fr,getOwnPropertySymbols:Br}),vt({target:"Object",stat:!0,forced:l((function(){oe.f(1)}))},{getOwnPropertySymbols:function(t){return oe.f(U(t))}}),wr){var qr=!L||l((function(){var t=_r();return"[null]"!=wr([t])||"{}"!=wr({a:t})||"{}"!=wr(Object(t))}));vt({target:"JSON",stat:!0,forced:qr},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(w(e)||void 0!==t)&&!k(t))return Ot(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!k(e))return e}),o[1]=e,wr.apply(null,o)}})}_r.prototype[vr]||ht(_r.prototype,vr,_r.prototype.valueOf),Ke(_r,"Symbol"),Xt[yr]=!0;var Jr=T.Object.getOwnPropertySymbols,Hr=hr.filter,Vr=Pt("filter");vt({target:"Array",proto:!0,forced:!Vr},{filter:function(t){return Hr(this,t,arguments.length>1?arguments[1]:void 0)}});var zr=Ct("Array").filter,$r=Array.prototype,Wr=function(t){var e=t.filter;return t===$r||t instanceof Array&&e===$r.filter?zr:e},Gr=tt.f,Yr=l((function(){Gr(1)}));vt({target:"Object",stat:!0,forced:!c||Yr,sham:!c},{getOwnPropertyDescriptor:function(t,e){return Gr(_(t),e)}});var Kr,Zr,Qr,Xr=n((function(t){var e=T.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),tn={},en=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),rn=Oe("IE_PROTO"),nn=Object.prototype,on=en?Object.getPrototypeOf:function(t){return t=U(t),M(t,rn)?t[rn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?nn:null},an=z("iterator"),sn=!1;[].keys&&("next"in(Qr=[].keys())?(Zr=on(on(Qr)))!==Object.prototype&&(Kr=Zr):sn=!0);var un=null==Kr||l((function(){var t={};return Kr[an].call(t)!==t}));un&&(Kr={}),un&&!M(Kr,an)&&ht(Kr,an,(function(){return this}));var ln={IteratorPrototype:Kr,BUGGY_SAFARI_ITERATORS:sn},cn=ln.IteratorPrototype,pn=function(){return this},fn=function(t,e,r){var n=e+" Iterator";return t.prototype=Le(cn,{next:d(1,r)}),Ke(t,n,!1,!0),tn[n]=pn,t},hn=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}}(),ln.IteratorPrototype),dn=ln.BUGGY_SAFARI_ITERATORS,yn=z("iterator"),vn=function(){return this},mn=function(t,e,r,n,o,i,a){fn(r,e,n);var s,u,l,c=function(t){if(t===o&&y)return y;if(!dn&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",f=!1,h=t.prototype,d=h[yn]||h["@@iterator"]||o&&h[o],y=!dn&&d||c(o),v="Array"==e&&h.entries||d;if(v&&(s=on(v.call(new t)),hn!==Object.prototype&&s.next&&(Ke(s,p,!0,!0),tn[p]=vn)),"values"==o&&d&&"values"!==d.name&&(f=!0,y=function(){return d.call(this)}),a&&h[yn]!==y&&ht(h,yn,y),tn[e]=y,o)if(u={values:c("values"),keys:i?y:c("keys"),entries:c("entries")},a)for(l in u)(dn||f||!(l in h))&&Me(h,l,u[l]);else vt({target:e,proto:!0,forced:dn||f},u);return u},gn=cr.set,bn=cr.getterFor("Array Iterator");mn(Array,"Array",(function(t,e){gn(this,{type:"Array Iterator",target:_(t),index:0,kind:e})}),(function(){var t=bn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");tn.Arguments=tn.Array;var _n=z("toStringTag");for(var wn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Tn=u[wn],Sn=Tn&&Tn.prototype;Sn&&$e(Sn)!==_n&&ht(Sn,_n,wn),tn[wn]=tn.Array}var jn=hr.forEach,On=Vt("forEach")?[].forEach:function(t){return jn(this,t,arguments.length>1?arguments[1]:void 0)};vt({target:"Array",proto:!0,forced:[].forEach!=On},{forEach:On});var An=Ct("Array").forEach,En=Array.prototype,xn={DOMTokenList:!0,NodeList:!0},Rn=function(t){var e=t.forEach;return t===En||t instanceof Array&&e===En.forEach||xn.hasOwnProperty($e(t))?An:e},Pn=j("Reflect","ownKeys")||function(t){var e=ke.f(ct(t)),r=oe.f;return r?e.concat(r(t)):e};vt({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(t){for(var e,r,n=_(t),o=tt.f,i=Pn(n),a={},s=0;i.length>s;)void 0!==(r=o(n,e=i[s++]))&&xt(a,e,r);return a}});var Ln=T.Object.getOwnPropertyDescriptors;vt({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperties:Te});var Nn=n((function(t){var e=T.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)}));vt({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperty:ft.f});var kn=n((function(t){var e=T.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),Cn=kn,In=kn,Un=r(n((function(t){t.exports=function(t,e,r){return e in t?In(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}))),Dn=j("JSON","stringify"),Mn=/[\uD800-\uDFFF]/g,Fn=/^[\uD800-\uDBFF]$/,Bn=/^[\uDC00-\uDFFF]$/,qn=function(t,e,r){var n=r.charAt(e-1),o=r.charAt(e+1);return Fn.test(t)&&!Bn.test(o)||Bn.test(t)&&!Fn.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},Jn=l((function(){return'"\\udf06\\ud834"'!==Dn("\udf06\ud834")||'"\\udead"'!==Dn("\udead")}));Dn&&vt({target:"JSON",stat:!0,forced:Jn},{stringify:function(t,e,r){var n=Dn.apply(null,arguments);return"string"==typeof n?n.replace(Mn,qn):n}}),T.JSON||(T.JSON={stringify:JSON.stringify});var Hn,Vn=function(t,e,r){return T.JSON.stringify.apply(null,arguments)},zn="\t\n\v\f\r \u2028\u2029\ufeff",$n="["+zn+"]",Wn=RegExp("^"+$n+$n+"*"),Gn=RegExp($n+$n+"*$"),Yn=function(t){return function(e){var r=we(b(e));return 1&t&&(r=r.replace(Wn,"")),2&t&&(r=r.replace(Gn,"")),r}},Kn={start:Yn(1),end:Yn(2),trim:Yn(3)},Zn=Kn.trim;vt({target:"String",proto:!0,forced:(Hn="trim",l((function(){return!!zn[Hn]()||"
"!="
"[Hn]()||zn[Hn].name!==Hn})))},{trim:function(){return Zn(this)}});Ct("String").trim;var Qn=De.f,Xn=l((function(){return!Object.getOwnPropertyNames(1)}));vt({target:"Object",stat:!0,forced:Xn},{getOwnPropertyNames:Qn});var to=Kn.trim,eo=u.parseFloat,ro=1/eo(zn+"-0")!=-1/0?function(t){var e=to(we(t)),r=eo(e);return 0===r&&"-"==e.charAt(0)?-0:r}:eo;vt({global:!0,forced:parseFloat!=ro},{parseFloat:ro});var no=T.parseFloat,oo=hr.map,io=Pt("map");vt({target:"Array",proto:!0,forced:!io},{map:function(t){return oo(this,t,arguments.length>1?arguments[1]:void 0)}});Ct("Array").map;vt({target:"Array",stat:!0},{isArray:Ot});var ao=T.Array.isArray,so=Array.prototype.slice,uo=function(t,e){"length"in t||(t=[t]);t=so.call(t);for(;t.length;){var r=t.shift(),n=e(r);if(n)return n;r.childNodes&&r.childNodes.length&&(t=so.call(r.childNodes).concat(t))}};var lo=co;function co(t,e){if(!(this instanceof co))return new co(t,e);this.data=t,this.nodeValue=t,this.length=t.length,this.ownerDocument=e||null}co.prototype.nodeType=8,co.prototype.nodeName="#comment",co.prototype.toString=function(){return"[object Comment]"};var po=fo;function fo(t,e){if(!(this instanceof fo))return new fo(t);this.data=t||"",this.length=this.data.length,this.ownerDocument=e||null}fo.prototype.type="DOMTextNode",fo.prototype.nodeType=3,fo.prototype.nodeName="#text",fo.prototype.toString=function(){return this.data},fo.prototype.replaceData=function(t,e,r){var n=this.data,o=n.substring(0,t),i=n.substring(t+e,n.length);this.data=o+r+i,this.length=this.data.length};var ho=function(t){var e=this,r=t.type;t.target||(t.target=e);e.listeners||(e.listeners={});var n=e.listeners[r];if(n)return n.forEach((function(r){t.currentTarget=e,"function"==typeof r?r(t):r.handleEvent(t)}));e.parentNode&&e.parentNode.dispatchEvent(t)};var yo=function(t,e){this.listeners||(this.listeners={});this.listeners[t]||(this.listeners[t]=[]);-1===this.listeners[t].indexOf(e)&&this.listeners[t].push(e)};var vo=function(t,e){if(!this.listeners)return;if(!this.listeners[t])return;var r=this.listeners[t],n=r.indexOf(e);-1!==n&&r.splice(n,1)};var mo=bo,go=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function bo(t){switch(t.nodeType){case 3:return To(t.data);case 8:return"\x3c!--"+t.data+"--\x3e";default:return function(t){var e=[],r=t.tagName;"http://www.w3.org/1999/xhtml"===t.namespaceURI&&(r=r.toLowerCase());e.push("<"+r+function(t){var e=[];for(var r in t)_o(t,r)&&e.push({name:r,value:t[r]});for(var n in t._attributes)for(var o in t._attributes[n]){var i=t._attributes[n][o],a=(i.prefix?i.prefix+":":"")+o;e.push({name:a,value:i.value})}t.className&&e.push({name:"class",value:t.className});return e.length?wo(e):""}(t)+function(t){var e=t.dataset,r=[];for(var n in e)r.push({name:"data-"+n,value:e[n]});return r.length?wo(r):""}(t)),go.indexOf(r)>-1?e.push(" />"):(e.push(">"),t.childNodes.length?e.push.apply(e,t.childNodes.map(bo)):t.textContent||t.innerText?e.push(To(t.textContent||t.innerText)):t.innerHTML&&e.push(t.innerHTML),e.push("</"+r+">"));return e.join("")}(t)}}function _o(t,e){var r=typeof t[e];return"style"===e&&Object.keys(t.style).length>0||t.hasOwnProperty(e)&&("string"===r||"boolean"===r||"number"===r)&&"nodeName"!==e&&"className"!==e&&"tagName"!==e&&"textContent"!==e&&"innerText"!==e&&"namespaceURI"!==e&&"innerHTML"!==e}function wo(t){var e=[];return t.forEach((function(t){var r=t.name,n=t.value;"style"===r&&(n=function(t){if("string"==typeof t)return t;var e="";return Object.keys(t).forEach((function(r){var n=t[r];r=r.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),e+=r+":"+n+";"})),e}(n)),e.push(r+'="'+(To(n).replace(/"/g,""")+'"'))})),e.length?" "+e.join(" "):""}function To(t){var e="";return"string"==typeof t?e=t:t&&(e=t.toString()),e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var So="http://www.w3.org/1999/xhtml",jo=Oo;function Oo(t,e,r){if(!(this instanceof Oo))return new Oo(t);var n=void 0===r?So:r||null;this.tagName=n===So?String(t).toUpperCase():t,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=e||null,this.namespaceURI=n,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}Oo.prototype.type="DOMElement",Oo.prototype.nodeType=1,Oo.prototype.appendChild=function(t){return t.parentNode&&t.parentNode.removeChild(t),this.childNodes.push(t),t.parentNode=this,t},Oo.prototype.replaceChild=function(t,e){t.parentNode&&t.parentNode.removeChild(t);var r=this.childNodes.indexOf(e);return e.parentNode=null,this.childNodes[r]=t,t.parentNode=this,e},Oo.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);return this.childNodes.splice(e,1),t.parentNode=null,t},Oo.prototype.insertBefore=function(t,e){t.parentNode&&t.parentNode.removeChild(t);var r=null==e?-1:this.childNodes.indexOf(e);return r>-1?this.childNodes.splice(r,0,t):this.childNodes.push(t),t.parentNode=this,t},Oo.prototype.setAttributeNS=function(t,e,r){var n=null,o=e,i=e.indexOf(":");(i>-1&&(n=e.substr(0,i),o=e.substr(i+1)),"INPUT"===this.tagName&&"type"===e)?this.type=r:(this._attributes[t]||(this._attributes[t]={}))[o]={value:r,prefix:n}},Oo.prototype.getAttributeNS=function(t,e){var r=this._attributes[t],n=r&&r[e]&&r[e].value;return"INPUT"===this.tagName&&"type"===e?this.type:"string"!=typeof n?null:n},Oo.prototype.removeAttributeNS=function(t,e){var r=this._attributes[t];r&&delete r[e]},Oo.prototype.hasAttributeNS=function(t,e){var r=this._attributes[t];return!!r&&e in r},Oo.prototype.setAttribute=function(t,e){return this.setAttributeNS(null,t,e)},Oo.prototype.getAttribute=function(t){return this.getAttributeNS(null,t)},Oo.prototype.removeAttribute=function(t){return this.removeAttributeNS(null,t)},Oo.prototype.hasAttribute=function(t){return this.hasAttributeNS(null,t)},Oo.prototype.removeEventListener=vo,Oo.prototype.addEventListener=yo,Oo.prototype.dispatchEvent=ho,Oo.prototype.focus=function(){},Oo.prototype.toString=function(){return mo(this)},Oo.prototype.getElementsByClassName=function(t){var e=t.split(" "),r=[];return uo(this,(function(t){if(1===t.nodeType){var n=(t.className||"").split(" ");e.every((function(t){return-1!==n.indexOf(t)}))&&r.push(t)}})),r},Oo.prototype.getElementsByTagName=function(t){t=t.toLowerCase();var e=[];return uo(this.childNodes,(function(r){1!==r.nodeType||"*"!==t&&r.tagName.toLowerCase()!==t||e.push(r)})),e},Oo.prototype.contains=function(t){return uo(this,(function(e){return t===e}))||!1};var Ao=Eo;function Eo(t){if(!(this instanceof Eo))return new Eo;this.childNodes=[],this.parentNode=null,this.ownerDocument=t||null}Eo.prototype.type="DocumentFragment",Eo.prototype.nodeType=11,Eo.prototype.nodeName="#document-fragment",Eo.prototype.appendChild=jo.prototype.appendChild,Eo.prototype.replaceChild=jo.prototype.replaceChild,Eo.prototype.removeChild=jo.prototype.removeChild,Eo.prototype.toString=function(){return this.childNodes.map((function(t){return String(t)})).join("")};var xo=Ro;function Ro(t){}Ro.prototype.initEvent=function(t,e,r){this.type=t,this.bubbles=e,this.cancelable=r},Ro.prototype.preventDefault=function(){};var Po=Lo;function Lo(){if(!(this instanceof Lo))return new Lo;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var No=Lo.prototype;No.createTextNode=function(t){return new po(t,this)},No.createElementNS=function(t,e){var r=null===t?null:String(t);return new jo(e,this,r)},No.createElement=function(t){return new jo(t,this)},No.createDocumentFragment=function(){return new Ao(this)},No.createEvent=function(t){return new xo(t)},No.createComment=function(t){return new lo(t,this)},No.getElementById=function(t){return t=String(t),uo(this.childNodes,(function(e){if(String(e.id)===t)return e}))||null},No.getElementsByClassName=jo.prototype.getElementsByClassName,No.getElementsByTagName=jo.prototype.getElementsByTagName,No.contains=jo.prototype.contains,No.removeEventListener=vo,No.addEventListener=yo,No.dispatchEvent=ho;var ko=new Po,Co=void 0!==e?e:"undefined"!=typeof window?window:{};"undefined"!=typeof document?document:Co["__GLOBAL_DOCUMENT_CACHE@4"]||(Co["__GLOBAL_DOCUMENT_CACHE@4"]=ko);var Io="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Uo=[];(function t(e){var r,n="info",o=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];r("log",n,e)};return r=function(t,e){return function(r,n,o){var i=e.levels[n],a=new RegExp("^(".concat(i,")$"));if("log"!==r&&o.unshift(r.toUpperCase()+":"),o.unshift(t+":"),Uo){var s;Uo.push(ye(s=[]).call(s,o));var u=Uo.length-1e3;Dt(Uo).call(Uo,0,u>0?u:0)}if(Io.console){var l=Io.console[r];l||"debug"!==r||(l=Io.console.info||Io.console.log),l&&i&&a.test(r)&&l[ao(o)?"apply":"call"](Io.console,o)}}}(e,o),o.createLogger=function(r){return t(e+": "+r)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},o.level=function(t){if("string"==typeof t){if(!o.levels.hasOwnProperty(t))throw new Error('"'.concat(t,'" in not a valid log level'));n=t}return n},(o.history=function(){var t;return Uo?ye(t=[]).call(t,Uo):[]}).filter=function(t){var e;return Wr(e=Uo||[]).call(e,(function(e){return new RegExp(".*".concat(t,".*")).test(e[0])}))},o.history.clear=function(){Uo&&(Uo.length=0)},o.history.disable=function(){null!==Uo&&(Uo.length=0,Uo=null)},o.history.enable=function(){null===Uo&&(Uo=[])},o.error=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r("error",n,e)},o.warn=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r("warn",n,e)},o.debug=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r("debug",n,e)},o})("VIDEOJS");var Do=Object.freeze({__proto__:null});qe("asyncIterator");var Mo=Object.freeze({__proto__:null});qe("hasInstance"),qe("isConcatSpreadable"),qe("iterator"),qe("match"),qe("matchAll"),qe("replace"),qe("search"),qe("species"),qe("split"),qe("toPrimitive"),qe("toStringTag"),qe("unscopables"),Ke(u.JSON,"JSON",!0);var Fo=Object.freeze({__proto__:null}),Bo=Object.freeze({__proto__:null});o(Do),o(Mo),o(Fo),o(Bo);var qo=T.Symbol;qe("asyncDispose"),qe("dispose"),qe("matcher"),qe("metadata"),qe("observable"),qe("patternMatch"),qe("replaceAll");var Jo=qo,Ho=function(t){return function(e,r){var n,o,i=we(b(e)),a=bt(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Vo={codeAt:Ho(!1),charAt:Ho(!0)},zo=Vo.charAt,$o=cr.set,Wo=cr.getterFor("String Iterator");mn(String,"String",(function(t){$o(this,{type:"String Iterator",string:we(t),index:0})}),(function(){var t,e=Wo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=zo(r,n),e.index+=t.length,{value:t,done:!1})}));var Go=Fe.f("iterator");r(n((function(t){function e(r){return"function"==typeof Jo&&"symbol"==typeof Go?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Jo&&t.constructor===Jo&&t!==Jo.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})));var Yo=function(t){return function(e,r,n,o){ut(r);var i=U(e),a=g(i),s=jt(i.length),u=t?s-1:0,l=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=l;break}if(u+=l,t?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=l)u in a&&(o=r(o,a[u],u,i));return o}},Ko={left:Yo(!1),right:Yo(!0)},Zo="process"==v(u.process),Qo=Ko.left,Xo=Vt("reduce");vt({target:"Array",proto:!0,forced:!Xo||!Zo&&P>79&&P<83},{reduce:function(t){return Qo(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});Ct("Array").reduce;function ti(t,e){return new RegExp("".concat(e)).test(t)}function ei(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={m3u8:"application/x-mpegURL",mp4:"video/mp4",flv:"video/x-flv",rtmp:"rtmp/flv"},n="";return ti(t,".m3u8")&&(n=r.m3u8),ti(t,".mp4")&&(n=r.mp4),ti(t,".flv")&&(n=r.flv),ti(t,"rtmp")&&(n=r.rtmp),""===n&&(n=e?r.m3u8:r.mp4),n}function ri(t,e){var r=_e(t);if(Jr){var n=Jr(t);e&&(n=Wr(n).call(n,(function(e){return Xr(t,e).enumerable}))),r.push.apply(r,n)}return r}function ni(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)Rn(r=ri(Object(n),!0)).call(r,(function(e){Un(t,e,n[e])}));else if(Ln)Nn(t,Ln(n));else{var o;Rn(o=ri(Object(n))).call(o,(function(e){Cn(t,e,Xr(n,e))}))}}return t}var oi={getRealplayUrl:{url:"/ylv/v1/realplay/${channelID}",method:"POST"},getHistoryUrl:{url:"/ylv/v1/history/${channelID}",method:"POST"},realplayKeepAlive:{url:"/ylv/v1/realplay/${sessionID}",method:"PUT"},changePlayRate:{url:"/ylv/v1/history/${sessionID}",method:"PUT"},jumpPlayTime:{url:"/ylv/v1/history/${sessionID}",method:"PUT"},stopRealPlay:{url:"/ylv/v1/realplay/${sessionID}",method:"DELETE"},stopHistory:{url:"/ylv/v1/history/${sessionID}",method:"DELETE"}};var ii=z("iterator"),ai=!l((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[ii]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),si=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},ui=function(t,e,r,n){try{return n?e(ct(r)[0],r[1]):e(r)}catch(e){throw function(t){var e=t.return;if(void 0!==e)ct(e.call(t)).value}(t),e}},li=z("iterator"),ci=Array.prototype,pi=function(t){return void 0!==t&&(tn.Array===t||ci[li]===t)},fi=z("iterator"),hi=function(t){if(null!=t)return t[fi]||t["@@iterator"]||tn[$e(t)]},di=function(t){var e,r,n,o,i,a,s=U(t),u="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,p=void 0!==c,f=hi(s),h=0;if(p&&(c=lt(c,l>2?arguments[2]:void 0,2)),null==f||u==Array&&pi(f))for(r=new u(e=jt(s.length));e>h;h++)a=p?c(s[h],h):s[h],xt(r,h,a);else for(i=(o=f.call(s)).next,r=new u;!(n=i.call(o)).done;h++)a=p?ui(o,c,[n.value,h],!0):n.value,xt(r,h,a);return r.length=h,r},yi=/[^\0-\u007E]/,vi=/[.\u3002\uFF0E\uFF61]/g,mi="Overflow: input needs wider integers to process",gi=Math.floor,bi=String.fromCharCode,_i=function(t){return t+22+75*(t<26)},wi=function(t,e,r){var n=0;for(t=r?gi(t/700):t>>1,t+=gi(t/e);t>455;n+=36)t=gi(t/35);return gi(n+36*t/(t+38))},Ti=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,s=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(bi(r));var u=n.length,l=u;for(u&&n.push("-");l<o;){var c=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<c&&(c=r);var p=l+1;if(c-i>gi((2147483647-a)/p))throw RangeError(mi);for(a+=(c-i)*p,i=c,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw RangeError(mi);if(r==i){for(var f=a,h=36;;h+=36){var d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;var y=f-d,v=36-d;n.push(bi(_i(d+y%v))),f=gi(y/v)}n.push(bi(_i(f))),s=wi(a,p,l==u),a=0,++l}}++a,++i}return n.join("")},Si=function(t){var e=hi(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return ct(e.call(t))},ji=j("fetch"),Oi=j("Request"),Ai=Oi&&Oi.prototype,Ei=j("Headers"),xi=z("iterator"),Ri=cr.set,Pi=cr.getterFor("URLSearchParams"),Li=cr.getterFor("URLSearchParamsIterator"),Ni=/\+/g,ki=Array(4),Ci=function(t){return ki[t-1]||(ki[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Ii=function(t){try{return decodeURIComponent(t)}catch(e){return t}},Ui=function(t){var e=t.replace(Ni," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(Ci(r--),Ii);return e}},Di=/[!'()~]|%20/g,Mi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Fi=function(t){return Mi[t]},Bi=function(t){return encodeURIComponent(t).replace(Di,Fi)},qi=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:Ui(n.shift()),value:Ui(n.join("="))}))},Ji=function(t){this.entries.length=0,qi(this.entries,t)},Hi=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Vi=fn((function(t,e){Ri(this,{type:"URLSearchParamsIterator",iterator:Si(Pi(t).entries),kind:e})}),"Iterator",(function(){var t=Li(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),zi=function(){si(this,zi,"URLSearchParams");var t,e,r,n,o,i,a,s,u,l=arguments.length>0?arguments[0]:void 0,c=this,p=[];if(Ri(c,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:Ji}),void 0!==l)if(w(l))if("function"==typeof(t=hi(l)))for(r=(e=t.call(l)).next;!(n=r.call(e)).done;){if((a=(i=(o=Si(ct(n.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:we(a.value),value:we(s.value)})}else for(u in l)M(l,u)&&p.push({key:u,value:we(l[u])});else qi(p,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:we(l))},$i=zi.prototype;if(function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Me(t,n,e[n],r)}($i,{append:function(t,e){Hi(arguments.length,2);var r=Pi(this);r.entries.push({key:we(t),value:we(e)}),r.updateURL()},delete:function(t){Hi(arguments.length,1);for(var e=Pi(this),r=e.entries,n=we(t),o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){Hi(arguments.length,1);for(var e=Pi(this).entries,r=we(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Hi(arguments.length,1);for(var e=Pi(this).entries,r=we(t),n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){Hi(arguments.length,1);for(var e=Pi(this).entries,r=we(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Hi(arguments.length,1);for(var r,n=Pi(this),o=n.entries,i=!1,a=we(t),s=we(e),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?o.splice(u--,1):(i=!0,r.value=s));i||o.push({key:a,value:s}),n.updateURL()},sort:function(){var t,e,r,n=Pi(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=Pi(this).entries,n=lt(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Vi(this,"keys")},values:function(){return new Vi(this,"values")},entries:function(){return new Vi(this,"entries")}},{enumerable:!0}),Me($i,xi,$i.entries),Me($i,"toString",(function(){for(var t,e=Pi(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(Bi(t.key)+"="+Bi(t.value));return r.join("&")}),{enumerable:!0}),Ke(zi,"URLSearchParams"),vt({global:!0,forced:!ai},{URLSearchParams:zi}),!ai&&"function"==typeof Ei){var Wi=function(t){if(w(t)){var e,r=t.body;if("URLSearchParams"===$e(r))return(e=t.headers?new Ei(t.headers):new Ei).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Le(t,{body:d(0,String(r)),headers:d(0,e)})}return t};if("function"==typeof ji&&vt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return ji(t,arguments.length>1?Wi(arguments[1]):{})}}),"function"==typeof Oi){var Gi=function(t){return si(this,Gi,"Request"),new Oi(t,arguments.length>1?Wi(arguments[1]):{})};Ai.constructor=Gi,Gi.prototype=Ai,vt({global:!0,forced:!0},{Request:Gi})}}var Yi,Ki={URLSearchParams:zi,getState:Pi},Zi=Vo.codeAt,Qi=u.URL,Xi=Ki.URLSearchParams,ta=Ki.getState,ea=cr.set,ra=cr.getterFor("URL"),na=Math.floor,oa=Math.pow,ia=/[A-Za-z]/,aa=/[\d+-.A-Za-z]/,sa=/\d/,ua=/^0x/i,la=/^[0-7]+$/,ca=/^\d+$/,pa=/^[\dA-Fa-f]+$/,fa=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ha=/[\0\t\n\r #/:<>?@[\\\]^|]/,da=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ya=/[\t\n\r]/g,va=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=ga(e.slice(1,-1))))return"Invalid host";t.host=r}else if(Aa(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(vi,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(yi.test(r)?"xn--"+Ti(r):r);return n.join(".")}(e),fa.test(e))return"Invalid host";if(null===(r=ma(e)))return"Invalid host";t.host=r}else{if(ha.test(e))return"Invalid host";for(r="",n=di(e),o=0;o<n.length;o++)r+=ja(n[o],_a);t.host=r}},ma=function(t){var e,r,n,o,i,a,s,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=u[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=ua.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?ca:8==i?la:pa).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=oa(256,5-e))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*oa(256,3-n);return s},ga=function(t){var e,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,p=0,f=function(){return t.charAt(p)};if(":"==f()){if(":"!=t.charAt(1))return;p+=2,c=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=r=0;r<4&&pa.test(f());)e=16*e+parseInt(f(),16),p++,r++;if("."==f()){if(0==r)return;if(p-=r,l>6)return;for(n=0;f();){if(o=null,n>0){if(!("."==f()&&n<4))return;p++}if(!sa.test(f()))return;for(;sa.test(f());){if(i=parseInt(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;p++}u[l]=256*u[l]+o,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==f()){if(p++,!f())return}else if(f())return;u[l++]=e}else{if(null!==c)return;p++,c=++l}}if(null!==c)for(a=l-c,l=7;0!=l&&a>0;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!=l)return;return u},ba=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=na(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},_a={},wa=se({},_a,{" ":1,'"':1,"<":1,">":1,"`":1}),Ta=se({},wa,{"#":1,"?":1,"{":1,"}":1}),Sa=se({},Ta,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ja=function(t,e){var r=Zi(t,0);return r>32&&r<127&&!M(e,t)?t:encodeURIComponent(t)},Oa={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Aa=function(t){return M(Oa,t.scheme)},Ea=function(t){return""!=t.username||""!=t.password},xa=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Ra=function(t,e){var r;return 2==t.length&&ia.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Pa=function(t){var e;return t.length>1&&Ra(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},La=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Ra(e[0],!0)||e.pop()},Na=function(t){return"."===t||"%2e"===t.toLowerCase()},ka={},Ca={},Ia={},Ua={},Da={},Ma={},Fa={},Ba={},qa={},Ja={},Ha={},Va={},za={},$a={},Wa={},Ga={},Ya={},Ka={},Za={},Qa={},Xa={},ts=function(t,e,r,n){var o,i,a,s,u,l=r||ka,c=0,p="",f=!1,h=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(da,"")),e=e.replace(ya,""),o=di(e);c<=o.length;){switch(i=o[c],l){case ka:if(!i||!ia.test(i)){if(r)return"Invalid scheme";l=Ia;continue}p+=i.toLowerCase(),l=Ca;break;case Ca:if(i&&(aa.test(i)||"+"==i||"-"==i||"."==i))p+=i.toLowerCase();else{if(":"!=i){if(r)return"Invalid scheme";p="",l=Ia,c=0;continue}if(r&&(Aa(t)!=M(Oa,p)||"file"==p&&(Ea(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,r)return void(Aa(t)&&Oa[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?l=$a:Aa(t)&&n&&n.scheme==t.scheme?l=Ua:Aa(t)?l=Ba:"/"==o[c+1]?(l=Da,c++):(t.cannotBeABaseURL=!0,t.path.push(""),l=Za)}break;case Ia:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,l=Xa;break}l="file"==n.scheme?$a:Ma;continue;case Ua:if("/"!=i||"/"!=o[c+1]){l=Ma;continue}l=qa,c++;break;case Da:if("/"==i){l=Ja;break}l=Ka;continue;case Ma:if(t.scheme=n.scheme,i==Yi)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&Aa(t))l=Fa;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",l=Qa;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),l=Ka;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",l=Xa}break;case Fa:if(!Aa(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,l=Ka;continue}l=Ja}else l=qa;break;case Ba:if(l=qa,"/"!=i||"/"!=p.charAt(c+1))continue;c++;break;case qa:if("/"!=i&&"\\"!=i){l=Ja;continue}break;case Ja:if("@"==i){f&&(p="%40"+p),f=!0,a=di(p);for(var y=0;y<a.length;y++){var v=a[y];if(":"!=v||d){var m=ja(v,Sa);d?t.password+=m:t.username+=m}else d=!0}p=""}else if(i==Yi||"/"==i||"?"==i||"#"==i||"\\"==i&&Aa(t)){if(f&&""==p)return"Invalid authority";c-=di(p).length+1,p="",l=Ha}else p+=i;break;case Ha:case Va:if(r&&"file"==t.scheme){l=Ga;continue}if(":"!=i||h){if(i==Yi||"/"==i||"?"==i||"#"==i||"\\"==i&&Aa(t)){if(Aa(t)&&""==p)return"Invalid host";if(r&&""==p&&(Ea(t)||null!==t.port))return;if(s=va(t,p))return s;if(p="",l=Ya,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),p+=i}else{if(""==p)return"Invalid host";if(s=va(t,p))return s;if(p="",l=za,r==Va)return}break;case za:if(!sa.test(i)){if(i==Yi||"/"==i||"?"==i||"#"==i||"\\"==i&&Aa(t)||r){if(""!=p){var g=parseInt(p,10);if(g>65535)return"Invalid port";t.port=Aa(t)&&g===Oa[t.scheme]?null:g,p=""}if(r)return;l=Ya;continue}return"Invalid port"}p+=i;break;case $a:if(t.scheme="file","/"==i||"\\"==i)l=Wa;else{if(!n||"file"!=n.scheme){l=Ka;continue}if(i==Yi)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",l=Qa;else{if("#"!=i){Pa(o.slice(c).join(""))||(t.host=n.host,t.path=n.path.slice(),La(t)),l=Ka;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",l=Xa}}break;case Wa:if("/"==i||"\\"==i){l=Ga;break}n&&"file"==n.scheme&&!Pa(o.slice(c).join(""))&&(Ra(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),l=Ka;continue;case Ga:if(i==Yi||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&Ra(p))l=Ka;else if(""==p){if(t.host="",r)return;l=Ya}else{if(s=va(t,p))return s;if("localhost"==t.host&&(t.host=""),r)return;p="",l=Ya}continue}p+=i;break;case Ya:if(Aa(t)){if(l=Ka,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Yi&&(l=Ka,"/"!=i))continue}else t.fragment="",l=Xa;else t.query="",l=Qa;break;case Ka:if(i==Yi||"/"==i||"\\"==i&&Aa(t)||!r&&("?"==i||"#"==i)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(La(t),"/"==i||"\\"==i&&Aa(t)||t.path.push("")):Na(p)?"/"==i||"\\"==i&&Aa(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Ra(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(i==Yi||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",l=Qa):"#"==i&&(t.fragment="",l=Xa)}else p+=ja(i,Ta);break;case Za:"?"==i?(t.query="",l=Qa):"#"==i?(t.fragment="",l=Xa):i!=Yi&&(t.path[0]+=ja(i,_a));break;case Qa:r||"#"!=i?i!=Yi&&("'"==i&&Aa(t)?t.query+="%27":t.query+="#"==i?"%23":ja(i,_a)):(t.fragment="",l=Xa);break;case Xa:i!=Yi&&(t.fragment+=ja(i,wa))}c++}},es=function(t){var e,r,n=si(this,es,"URL"),o=arguments.length>1?arguments[1]:void 0,i=we(t),a=ea(n,{type:"URL"});if(void 0!==o)if(o instanceof es)e=ra(o);else if(r=ts(e={},we(o)))throw TypeError(r);if(r=ts(a,i,null,e))throw TypeError(r);var s=a.searchParams=new Xi,u=ta(s);u.updateSearchParams(a.query),u.updateURL=function(){a.query=String(s)||null},c||(n.href=ns.call(n),n.origin=os.call(n),n.protocol=is.call(n),n.username=as.call(n),n.password=ss.call(n),n.host=us.call(n),n.hostname=ls.call(n),n.port=cs.call(n),n.pathname=ps.call(n),n.search=fs.call(n),n.searchParams=hs.call(n),n.hash=ds.call(n))},rs=es.prototype,ns=function(){var t=ra(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,s=t.query,u=t.fragment,l=e+":";return null!==o?(l+="//",Ea(t)&&(l+=r+(n?":"+n:"")+"@"),l+=ba(o),null!==i&&(l+=":"+i)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},os=function(){var t=ra(this),e=t.scheme,r=t.port;if("blob"==e)try{return new es(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Aa(t)?e+"://"+ba(t.host)+(null!==r?":"+r:""):"null"},is=function(){return ra(this).scheme+":"},as=function(){return ra(this).username},ss=function(){return ra(this).password},us=function(){var t=ra(this),e=t.host,r=t.port;return null===e?"":null===r?ba(e):ba(e)+":"+r},ls=function(){var t=ra(this).host;return null===t?"":ba(t)},cs=function(){var t=ra(this).port;return null===t?"":String(t)},ps=function(){var t=ra(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},fs=function(){var t=ra(this).query;return t?"?"+t:""},hs=function(){return ra(this).searchParams},ds=function(){var t=ra(this).fragment;return t?"#"+t:""},ys=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(c&&Te(rs,{href:ys(ns,(function(t){var e=ra(this),r=we(t),n=ts(e,r);if(n)throw TypeError(n);ta(e.searchParams).updateSearchParams(e.query)})),origin:ys(os),protocol:ys(is,(function(t){var e=ra(this);ts(e,we(t)+":",ka)})),username:ys(as,(function(t){var e=ra(this),r=di(we(t));if(!xa(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=ja(r[n],Sa)}})),password:ys(ss,(function(t){var e=ra(this),r=di(we(t));if(!xa(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=ja(r[n],Sa)}})),host:ys(us,(function(t){var e=ra(this);e.cannotBeABaseURL||ts(e,we(t),Ha)})),hostname:ys(ls,(function(t){var e=ra(this);e.cannotBeABaseURL||ts(e,we(t),Va)})),port:ys(cs,(function(t){var e=ra(this);xa(e)||(""==(t=we(t))?e.port=null:ts(e,t,za))})),pathname:ys(ps,(function(t){var e=ra(this);e.cannotBeABaseURL||(e.path=[],ts(e,we(t),Ya))})),search:ys(fs,(function(t){var e=ra(this);""==(t=we(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",ts(e,t,Qa)),ta(e.searchParams).updateSearchParams(e.query)})),searchParams:ys(hs),hash:ys(ds,(function(t){var e=ra(this);""!=(t=we(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",ts(e,t,Xa)):e.fragment=null}))}),Me(rs,"toJSON",(function(){return ns.call(this)}),{enumerable:!0}),Me(rs,"toString",(function(){return ns.call(this)}),{enumerable:!0}),Qi){var vs=Qi.createObjectURL,ms=Qi.revokeObjectURL;vs&&Me(es,"createObjectURL",(function(t){return vs.apply(Qi,arguments)})),ms&&Me(es,"revokeObjectURL",(function(t){return ms.apply(Qi,arguments)}))}Ke(es,"URL"),vt({global:!0,forced:!ai,sham:!c},{URL:es}),o(Object.freeze({__proto__:null}));var gs,bs,_s=T.URL,ws=window.MediaRecorder;function Ts(t){t.data&&t.data.size>0&&bs.push(t.data)}function Ss(t){}function js(){var t=new Blob(bs,{type:"video/webm"}),e=_s.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.download="test.webm",document.body.appendChild(r),r.click(),qt((function(){document.body.removeChild(r),_s.revokeObjectURL(e)}),100)}var Os="0.0.45";function As(t,e,r){"string"==typeof t&&(t=document.getElementById(t)),this._init(t,e,r)}return As.prototype.version=Os,function(e){e.prototype._init=function(e,r,n){if(!t)throw new Error("本组件依赖videojs库,请先引入。");if("history"===r.yunliMode&&!r.duration&&r.beginTime&&r.endTime){var o=new Date(r.beginTime).getTime(),i=new Date(r.endTime).getTime();if(isNaN(o)||isNaN(i))throw new Error("beginTime或者endTime格式错误");if(r.duration=Math.floor((i-o)/1e3),isNaN(r.duration)||r.duration<0)throw new Error("beginTime或者endTime格式错误")}return this.options_=r||{},this.el_=e,this.readyCallback_=n,this.retryTime=0,this.maxRetryTime=r.maxRetryTime||3,this.autoRetry=void 0===r.autoRety||r.autoRetry,this.waitingInterval=r.waitingInterval||5e3,this.waitingTimer=null,this._keepAliveTimer=null,this._keepAliveInterval=r.keepAliveInterval||15e3,this.keepAlive=r.keepAlive||!0,this.isPlaying=!1,this.options_.sources&&(this.options_.sources=this._parseSource(this.options_.sources)),this.setEnv(),this.setOptions(r),this.initPlayer(n),this.player_},e.prototype.setEnv=function(){var t=this;this.addLang(),this._addSnapButton(),this.options_.record&&this._addRecordButton();var e=function(e){t.player_&&t.errorHandler("offline")};window.addEventListener("online",(function(e){t.player_&&(t.player_.error(null),t.src(t.options_.sources),t.player_.play())})),window.addEventListener("offline",e),navigator.onLine||e()},e.prototype.addLang=function(){t.addLanguage("zh-CN",Qt)},e.prototype.setOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=["playToggle","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","customControlSpacer","recordButton","snapButton","playbackRateMenuButton","chaptersButton","descriptionsButton","volumePanel","subsCapsButton","audioTrackButton","fullscreenToggle"];"exitPictureInPicture"in document&&Dt(r).call(r,r.length-1,0,"pictureInPictureToggle");var n={language:"zh-CN",controls:!0,autoplay:!1,techOrder:["html5","flvjs","flash"],record:!1,snap:{autoSave:!0},controlBar:{children:r,volumePanel:{inline:!1,vertical:!0}},flash:{swf:"./lib/video-js.swf"}};return"live"===e.yunliMode?(Dt(r).call(r,4,1),n.controlBar.timeDivider=!1,n.controlBar.durationDisplay=!1):n.playbackRates=["0.25","0.5","1","2","4","8","16"],n=t.mergeOptions(n,e),this.options_=n,n},e.prototype.initPlayer=function(){var e=this;return this.player_=t(this.el_,this.options_,(function(t){e.replaceEvents(),e.replaceSpinner();var r=e.options_,n=e.player_;r.fillScreen&&n&&n.el_&&(n.el_.querySelector("video").style.objectFit="fill"),r.height&&(n.el_.style.height=r.height),r.width&&(n.el_.style.width=r.width),"history"===e.options_.yunliMode&&e.options_.duration&&e.replaceControlBarEvent(),e.readyCallback_&&"function"==typeof e.readyCallback_&&e.readyCallback_(t),"live"!==e.options_.yunliMode&&"history"!==e.options_.yunliMode||!e.keepAlive||e._keepAlive()})),this.player_.on("error",(function(t){var r,n=e.player_.error();qt((function(){var t,r,n;null===(t=e.player_)||void 0===t||null===(r=t.el_)||void 0===r||null===(n=r.classList)||void 0===n||n.remove("vjs-loading-data")}),100),n&&Zt(r=["timeout","offline","notfound","shutdown","neterror"]).call(r,n.message)>-1?e.onError.call(e,n):navigator.onLine?n&&4===n.code?e.errorHandler("notfound"):n&&n.code&&e.errorHandler("shutdown"):e.errorHandler("offline")})),this.player_}}(As),function(e){e.prototype._addSnapButton=function(){var e=this,r=this.options_.snap||{autoSave:!0},n=t.getComponent("Button"),o=t.extend(n,{constructor:function(){n.apply(this,arguments),this.controlText("Snap")},handleClick:function(){var t=e.getSnapShot();r.autoSave&&e.saveImage(t),e.snapSuccess(t)},buildCSSClass:function(){return"vjs-yunli-snap vjs-control vjs-button"}});t.registerComponent("snapButton",o)},e.prototype.getSnapShot=function(){var t=this.options_.snap||{};try{var e=this.player_.el_.getElementsByTagName("video");e&&(e=e[0]);var r=t.width||e.videoWidth||e.offsetWidth,n=t.height||e.videoHeight||e.offsetHeight,o=document.createElement("canvas");return o.width=r,o.height=n,o.getContext("2d").drawImage(e,0,0,r,n),o.toDataURL("images/png")}catch(t){return this.snapError(t),t}},e.prototype.saveImage=function(t){var e=document.createElement("a");e.href=t,e.download="".concat((new Date).getTime(),".jpg"),e.click()},e.prototype.snapSuccess=function(t){var e=this.options_.snap||{};e.onSuccess&&e.onSuccess(t)},e.prototype.snapError=function(t){var e=this.options_.snap||{};e.onError&&e.onError(t)}}(As),function(e){var r,n=0,o=null,i=document.createElement("div");i.innerHTML='<div class="vjs-recording-text">REC:</div>\n <div class="vjs-recording-count">00:00</div>\n <div class="vjs-recording-dot"></div>',i.classList.add("vjs-recording-flag"),e.prototype._addRecordButton=function(){var e=this;e.recording=!1;var n=t.getComponent("Button");r=t.extend(n,{constructor:function(){n.apply(this,arguments),this.controlText("Record")},handleClick:function(){e.recording?e.stopRecording():e.startRecording()},buildCSSClass:function(){return"vjs-yunli-record vjs-control vjs-button"}}),t.registerComponent("recordButton",r)},e.prototype._updateRecordTime=function(){var t=this;this.recording?(n+=200,i.querySelector(".vjs-recording-count").innerHTML=me(n/1e3),o=qt((function(){t._updateRecordTime()}),200)):clearTimeout(o)},e.prototype.startRecording=function(){this.recording=!0,this._updateRecordTime();var t=this.el_.captureStream();r.el_&&r.el_.classList.add("recording"),r.el_&&(r.el_.querySelector(".vjs-control-text").title="录制"),this.player_.el_.appendChild(i),function(t){var e={mimeType:"video/webm"};bs=[];try{gs=new ws(t,e)}catch(r){try{gs=new ws(t,e={mimeType:"video/webm,codecs=vp9"})}catch(r){try{gs=new ws(t,e="video/vp8")}catch(t){return}}}gs.onerror=Ss,gs.onstop=js,gs.ondataavailable=Ts;try{gs.start(100)}catch(t){}}(t)},e.prototype.stopRecording=function(){this.recording=!1,n=0,r.el_&&r.el_.classList.remove("recording"),r.el_&&(r.el_.querySelector(".vjs-control-text").title="停止录制"),this.player_.el_.removeChild(i),gs.stop()}}(As),function(t){t.prototype.errorHandler=function(t){var e,r=this.player_;window.clearTimeout(this.waitingTimer),"timeout"!==t&&this.autoRetry&&this._handleWaiting.call(this),function(t){return null!=t&&"function"==typeof t.then}(e=r.pause())&&e.then(null,(function(t){}));var n={timeout:"连接超时",offline:"无网络",shutdown:"视频中断",notfound:"视频未找到",neterror:"网络错误"};this.options_.errorTexts&&(n=ue({},n,this.options_.errorTexts));var o,i=this.player_.el_.querySelector(".vjs-modal-dialog-content");(r.error(t),i)&&(this.retryTime<this.maxRetryTime?i.innerHTML='\n <div class="vjs-loading-spinner" dir="ltr">\n <i class="yl-spin-dot-item"></i>\n <i class="yl-spin-dot-item"></i>\n <i class="yl-spin-dot-item"></i>\n <i class="yl-spin-dot-item"></i>\n </div>':i.innerHTML=ye(o='\n <div class="vjs-yunli-error">\n <div class="vjs-yunli-'.concat(t,'"></div>\n <div class="vjs-yunli-tip">')).call(o,n[t],"</div>\n </div>\n "))},t.prototype.replaceSpinner=function(){var t=(this.player_.el_||document).querySelector(".vjs-loading-spinner");t.innerHTML="";for(var e=0;e<4;e++){var r=document.createElement("i");r.classList.add("yl-spin-dot-item"),t.appendChild(r)}},t.prototype._handleWaiting=function(){var t=this;"monitor"!==this.options_.eventMode&&(this.waitingTimer&&window.clearTimeout(this.waitingTimer),this.retryTime<this.maxRetryTime?this.waitingTimer=qt((function(){!t.player_.paused()&&t.isPlaying||("Flash"===t.player_.techName_&&t.player_.reset(),"Flash"!==t.player_.techName_&&t.src(t.options_.sources),"Flash"===t.player_.techName_&&t.player_.play(),t._handleWaiting.call(t),t.retryTime+=1)}),this.waitingInterval):this.errorHandler("timeout"))},t.prototype.replaceEvents=function(){var t=this,e=this.options_,r=e.duration,n=e.eventMode,o=e.yunliMode,i=this.player_,a=this;if("monitor"!==n){if("history"===o&&r){i.duration=function(){return r},i.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),this.cache_.initTime=t,this.cache_.currentTime=t,void(a.ylJumpTime=t)):(this.cache_.initTime=t,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.tech_.setCurrentTime=function(t){this.el_.vjs_setProperty&&this.el_.vjs_setProperty("currentTime",t)},i.controlBar.currentTimeDisplay.updateTextNode_=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;a.isJumping?e=a.ylJumpTime||0:e+=a.ylJumpTime||0,e=me(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestAnimationFrame((function(){if(t.contentEl_){var e=t.textNode_;t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},i.on("play",(function(){a.isJumping=!1,a.waitingTimer&&window.clearTimeout(a.waitingTimer),qt((function(){i.el_.classList.remove("vjs-loading-data")}),200)})),i.on("ratechange",(function(e){e&&(e.preventDefault(),e.stopPropagation()),t._changePlayRate()})),i.on("timeupdate",(function(t){var e=i.currentTime(),r=i.duration()||0;"history"===i.options_.yunliMode&&(a.isJumping?e=a.ylJumpTime||0:e+=a.ylJumpTime||0),e>r&&(i.reset(),a.ylJumpTime=0,a.ylReset=!0,a.onEnd&&"function"==typeof a.onEnd&&a.onEnd.call(a),i.options_.loop?a._refetchPlay():qt((function(){i.el_.classList.add("vjs-paused"),i.pause()}),500))})),i.bigPlayButton.el_.onclick=function(){if(a.ylReset){a.ylReset=!1;var t=a.options_.beforeRetry||a.beforeRetry;t?t.call(a,a):a.src(a.options_.sources)}}}i.errorDisplay.el_.onclick=function(t){t&&t.preventDefault(),a.src(a.options_.sources||i.currentSources())},i.on("waiting",(function(e){t.isPlaying=!1,navigator.onLine?(window.clearTimeout(a.waitingTimer),a._handleWaiting.call(a),i.el_.classList.contains("vjs-loading-data")||i.el_.classList.add("vjs-loading-data")):a.errorHandler("offline")})),i.on("loadstart",(function(t){window.clearTimeout(a.waitingTimer),"Flash"===a.player_.techName_&&a._handleWaiting.call(a),i.el_.classList.contains("vjs-loading-data")||i.el_.classList.add("vjs-loading-data")})),i.on("loadeddata",(function(t){window.clearTimeout(a.waitingTimer),qt((function(){i.el_.classList.remove("vjs-loading-data")}),20)})),i.on("playing",(function(e){t.isPlaying=!0,a.retryTime=0,window.clearTimeout(a.waitingTimer),qt((function(){i.el_.classList.remove("vjs-loading-data")}),20)})),i.on("ended",(function(){a.onEnd&&"function"==typeof a.onEnd&&a.onEnd.call(a)}))}}}(As),function(e){e.prototype.getApiUrl=function(t){var e=this.options_.apiSettings||{};e=ni(ni({},oi),e);var r,n=this.options_.channelID,o=this.options_.sources||this.player_.sources;if(o&&o.length>0&&o[0].sessionID){var i=o[0].sessionID,a=e[t];return a.url=a.url.replace(/\$\{sessionID\}/g,i),n&&(a.url=a.url.replace(/\$\{channelID\}/g,n)),r=a.url,new RegExp("^".concat("/")).test(r)&&(a.url=this.options_.yunliApiRoot+a.url),a}},e.prototype._keepAlive=function(){var e=this;this._keepAliveTimer&&window.clearTimeout(this._keepAliveTimer);this._keepAliveTimer=qt((function(){var r=e.options_.sources||e.player_.sources;try{if(r&&r.length>0&&r[0].sessionID){var n,o,i=ni({withCredentials:!0,json:!0,headers:{Accept:"application/json"},body:{sessionID:r[0].sessionID}},e.getApiUrl("realplayKeepAlive")),a=e;null!==(n=e.options_)&&void 0!==n&&null!==(o=n.xhr)&&void 0!==o&&o.beforeFetch&&(i=e.options_.xhr.beforeFetch.call(e,i,"realplayKeepAlive")),t.xhr(i,(function(t,e){var r,n;null!==(r=a.options_)&&void 0!==r&&null!==(n=r.xhr)&&void 0!==n&&n.afterFetch&&(e=a.options_.xhr.afterFetch.call(a,e,"realplayKeepAlive")),(t||200!==e.statusCode)&&a.player_.trigger("keepAliveError"),a._keepAlive()}))}}catch(t){}}),this._keepAliveInterval)},e.prototype._refetchPlay=function(e){var r,n;if(e=e||this.options_.channelID,!this.isRetryingRequest){this.isRetryingRequest=!0;var o={channelID:e,outputType:this.options_.outputType},i=this.options_.playRate||1;i&&(o.speed=i);var a="realplay";"history"===this.options_.yunliMode&&(a="history",o.beginTime=this.options_.beginTime,o.endTime=this.options_.endTime);var s="realplay"===a?"getRealplayUrl":"getHistoryUrl",u=ni({withCredentials:!0,json:!0,headers:{Accept:"application/json"},body:o},this.getApiUrl(s)),l=this;null!==(r=this.options_)&&void 0!==r&&null!==(n=r.xhr)&&void 0!==n&&n.beforeFetch&&(u=this.options_.xhr.beforeFetch.call(this,u,s)),t.xhr(u,(function(t,r){var n,o;null!==(n=l.options_)&&void 0!==n&&null!==(o=n.xhr)&&void 0!==o&&o.afterFetch&&(r=l.options_.xhr.afterFetch.call(l,r,s)),l.isRetryingRequest=!1;var i={src:r.body.result.outputUrl,type:{hls:"application/x-mpegURL",mp4:"video/mp4",flv:"video/x-flv",rtmp:"rtmp/flv"}[l.options_.outputType]||"",sessionID:r.body.result.sessionID,channelID:e};l.src(i)}))}},e.prototype._changePlayRate=function(){var e=this.player_.playbackRate()||1;if(this.options_.changePlayRate)this.options_.changePlayRate.call(this,e,this.player_);else try{var r,n,o={ctrlType:"play",param:"".concat(e)},i=ni({withCredentials:!0,json:!0,headers:{Accept:"application/json"},body:o},this.getAPiUrl("changePlayRate"));null!==(r=this.options_)&&void 0!==r&&null!==(n=r.xhr)&&void 0!==n&&n.beforeFetch&&(i=this.options_.xhr.beforeFetch.call(this,i,"changePlayRate"));var a=this;t.xhr(i,(function(t){var e,r;null!==(e=a.options_)&&void 0!==e&&null!==(r=e.xhr)&&void 0!==r&&r.afterFetch&&(t=a.options_.xhr.afterFetch.call(a,t,"changePlayRate"))}))}catch(t){}},e.prototype._jumpVideoTime=function(e){if(this.options_.jumpVideoTime)this.options_.jumpVideoTime.call(this,e,this.player_);else try{var r,n,o={ctrlType:"jump",param:"".concat(e||1)},i=this.getApiUrl("jumpPlayTime"),a=ni({withCredentials:!0,headers:{Accept:"application/json"},body:Vn(o)},i),s=this;null!==(r=this.options_)&&void 0!==r&&null!==(n=r.xhr)&&void 0!==n&&n.beforeFetch&&(a=this.options_.xhr.beforeFetch.call(this,a,"jumpPlayTime")),t.xhr(a,(function(t,r){var n,o;null!==(n=s.options_)&&void 0!==n&&null!==(o=n.xhr)&&void 0!==o&&o.afterFetch&&(r=s.options_.xhr.afterFetch.call(s,r,"jumpPlayTime"));var i=JSON.parse(r.body);0!==i.code&&200!==i.code||(s.src(s.options_.sources),s.ylJumpTime=e,s.player_.one("play",(function(){})))}))}catch(t){}},e.prototype._destroyVideo=function(){var e=this.options_.sources||this.player_.sources;try{if(e&&e.length>0&&e[0].sessionID){e[0].sessionID;var r,n,o="history"===("history"===this.options_.mode?"history":"realplay")?"stopHistory":"stopRealPlay",i=ni({withCredentials:!0,json:!0,headers:{Accept:"application/json"}},this.getApiUrl(o));null!==(r=this.options_)&&void 0!==r&&null!==(n=r.xhr)&&void 0!==n&&n.beforeFetch&&(i=this.options_.xhr.beforeFetch.call(this,i,o));var a=this;t.xhr(i,(function(t){var e,r;null!==(e=a.options_)&&void 0!==e&&null!==(r=e.xhr)&&void 0!==r&&r.afterFetch&&(t=a.options_.xhr.afterFetch.call(a,t,o))}))}}catch(t){}},e.prototype.replaceControlBarEvent=function(){var t=this.player_.controlBar.getChild("progressControl"),e=t.getChild("seekBar"),r=t.seekBar.getChild("playProgressBar"),n=this;r.update=function(t,e){var r=this.getChild("timeTooltip");if(r){var o=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.isJumping?o=n.ylJumpTime||0:o+=n.ylJumpTime||0,r.updateTime(t,e,o)}},e.getCurrentTime_=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();return n.isJumping?t=n.ylJumpTime||0:t+=n.ylJumpTime||0,t},e.handleMouseMove=function(t){if(function(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||("mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons))}(t)){var e;n.isJumping=!0;var o=this.calculateDistance(t),i=this.player_.liveTracker;if(i&&i.isLive()){if(o>=.99)return void i.seekToLiveEdge();var a=i.seekableStart(),s=i.liveCurrentTime();if((e=a+o*i.liveWindow())>=s&&(e=s),e<=a&&(e=a+.1),e===1/0)return;n.ylJumpTime=Math.floor(e);var u=(e/this.player_.duration()*100).toFixed(2);r.el_.style.width="".concat(u,"%")}else{(e=o*this.player_.duration())===this.player_.duration()&&(e-=.1),n.ylJumpTime=Math.floor(e);var l=(e/this.player_.duration()*100).toFixed(2);r.el_.style.width="".concat(l,"%")}}},e.on("click",(function(t){t&&t.stopPropagation(),n.jumpVideoTime(n.ylJumpTime)}))}}(As),function(t){t.prototype.dispose=function(){this.waitingTimer&&window.clearTimeout(this.waitingTimer),this._keepAliveTimer&&window.clearTimeout(this._keepAliveTimer),this.options_.closeVideo&&this._destroyVideo&&this._destroyVideo(),this.player_&&this.player_.dispose()},t.prototype.reset=function(){this.player_&&this.player_.reset()},t.prototype.play=function(){this.player_&&this.player_.play()},t.prototype.pause=function(){this.player_&&this.player_.pause()},t.prototype.src=function(t){var e=this;t=this._parseSource(t),this.options_.sources=t,this.player_&&(this.player_.src(t),qt((function(){e.options_.playRate&&1!==no(e.options_.playRate)&&e.changePlayRate(e.options_.playRate)}),200))},t.prototype._parseSource=function(t){var e="live"===this.options_.yunliMode;return"string"==typeof t&&(t={src:t,type:ei(t,e)}),ao(t)||(t=[t]),Rn(t).call(t,(function(r,n){"string"==typeof r?t[n]={src:r,type:ei(r,e)}:r&&r.src&&!r.type&&(r.type=ei(r.src,e))})),t},t.prototype.changePlayRate=function(t){this.player_&&(this.playbackRate=t,this.player_.playbackRate(t))},t.prototype.jumpVideoTime=function(t){this.player_&&this._jumpVideoTime(t)},t.prototype.currentTime=function(){var t=0;return this.player_&&(t+=this.player_.currentTime()),this.ylJumpTime&&(t+=this.ylJumpTime),t},t.prototype.onError=function(t){this.options_&&this.options_.onError&&this.options_.onError.call(this,t,this.player_)},t.prototype.onEnd=function(){this.options_&&this.options_.onEnd&&this.options_.onEnd.call(this,this.player_)},t.prototype.getPlayer=function(){return this.player_};var e=function(){return Os};t.prototype.VERSION=e,t.prototype.V=e}(As),As}));