@volcengine/veplayer 2.10.1 → 2.10.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/veplayer.biz.live.development.js +3 -3
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +4 -4
- package/esm/veplayer.live.development.js +4 -4
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +2 -2
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +3 -3
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +4 -4
- package/umd/veplayer.live.development.js +4 -4
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +2 -2
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VePlayer={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=function(e){return e&&e.Math==Math&&e},r=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,u=l.apply,c=l.call,h="object"==typeof Reflect&&Reflect.apply||(s?c.bind(u):function(){return c.apply(u,arguments)}),f=a,d=Function.prototype,p=d.call,v=f&&d.bind.bind(p,p),g=f?v:function(e){return function(){return p.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},k=b,w=g,E=function(e){if("Function"===k(e))return w(e)},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},T=x.all,S=x.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},P={},A=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=a,I=Function.prototype.call,O=R?I.bind(I):function(){return I.apply(I,arguments)},M={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,N=D&&!L.call({1:2},1);M.f=N?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var F,U,H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},j=o,B=b,K=Object,z=g("".split),V=j((function(){return!K("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?z(e,""):K(e)}:K,G=function(e){return null==e},W=G,Y=TypeError,X=function(e){if(W(e))throw Y("Can't call method on "+e);return e},q=V,$=X,Z=function(e){return q($(e))},J=S,Q=x.all,ee=x.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Q}:function(e){return"object"==typeof e?null!==e:J(e)},te={},ne=te,ie=r,re=S,oe=function(e){return re(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(ne[e])||oe(ie[e]):ne[e]&&ne[e][t]||ie[e]&&ie[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=r,ce=le,he=ue.process,fe=ue.Deno,de=he&&he.versions||fe&&fe.version,pe=de&&de.v8;pe&&(U=(F=pe.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!U&&ce&&(!(F=ce.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ce.match(/Chrome\/(\d+)/))&&(U=+F[1]);var ve=U,ge=ve,ye=o,me=r.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ke=ae,we=S,Ee=se,Ce=Object,xe=be?function(e){return"symbol"==typeof e}:function(e){var t=ke("Symbol");return we(t)&&Ee(t.prototype,Ce(e))},Te=String,Se=function(e){try{return Te(e)}catch(t){return"Object"}},Pe=S,Ae=Se,Re=TypeError,Ie=function(e){if(Pe(e))return e;throw Re(Ae(e)+" is not a function")},Oe=Ie,Me=G,Le=function(e,t){var n=e[t];return Me(n)?void 0:Oe(n)},De=O,Ne=S,Fe=ee,Ue=TypeError,He={exports:{}},je=r,Be=Object.defineProperty,Ke=function(e,t){try{Be(je,e,{value:t,configurable:!0,writable:!0})}catch(n){je[e]=t}return t},ze="__core-js_shared__",Ve=r[ze]||Ke(ze,{}),Ge=Ve;(He.exports=function(e,t){return Ge[e]||(Ge[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var We=He.exports,Ye=X,Xe=Object,qe=function(e){return Xe(Ye(e))},$e=qe,Ze=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Ze($e(e),t)},Qe=g,et=0,tt=Math.random(),nt=Qe(1..toString),it=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nt(++et+tt,36)},rt=We,ot=Je,at=it,st=_e,lt=be,ut=r.Symbol,ct=rt("wks"),ht=lt?ut.for||ut:ut&&ut.withoutSetter||at,ft=function(e){return ot(ct,e)||(ct[e]=st&&ot(ut,e)?ut[e]:ht("Symbol."+e)),ct[e]},dt=O,pt=ee,vt=xe,gt=Le,yt=function(e,t){var n,i;if("string"===t&&Ne(n=e.toString)&&!Fe(i=De(n,e)))return i;if(Ne(n=e.valueOf)&&!Fe(i=De(n,e)))return i;if("string"!==t&&Ne(n=e.toString)&&!Fe(i=De(n,e)))return i;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=ft("toPrimitive"),bt=function(e,t){if(!pt(e)||vt(e))return e;var n,i=gt(e,_t);if(i){if(void 0===t&&(t="default"),n=dt(i,e,t),!pt(n)||vt(n))return n;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},kt=xe,wt=function(e){var t=bt(e,"string");return kt(t)?t:t+""},Et=ee,Ct=r.document,xt=Et(Ct)&&Et(Ct.createElement),Tt=function(e){return xt?Ct.createElement(e):{}},St=Tt,Pt=!A&&!o((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),At=A,Rt=O,It=M,Ot=H,Mt=Z,Lt=wt,Dt=Je,Nt=Pt,Ft=Object.getOwnPropertyDescriptor;P.f=At?Ft:function(e,t){if(e=Mt(e),t=Lt(t),Nt)try{return Ft(e,t)}catch(n){}if(Dt(e,t))return Ot(!Rt(It.f,e,t),e[t])};var Ut=o,Ht=S,jt=/#|\.prototype\./,Bt=function(e,t){var n=zt[Kt(e)];return n==Gt||n!=Vt&&(Ht(t)?Ut(t):!!t)},Kt=Bt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},zt=Bt.data={},Vt=Bt.NATIVE="N",Gt=Bt.POLYFILL="P",Wt=Bt,Yt=Ie,Xt=a,qt=E(E.bind),$t=function(e,t){return Yt(e),void 0===t?e:Xt?qt(e,t):function(){return e.apply(t,arguments)}},Zt={},Jt=A&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=ee,en=String,tn=TypeError,nn=function(e){if(Qt(e))return e;throw tn(en(e)+" is not an object")},rn=A,on=Pt,an=Jt,sn=nn,ln=wt,un=TypeError,cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,fn="enumerable",dn="configurable",pn="writable";Zt.f=rn?an?function(e,t,n){if(sn(e),t=ln(t),sn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&pn in n&&!n[pn]){var i=hn(e,t);i&&i[pn]&&(e[t]=n.value,n={configurable:dn in n?n[dn]:i[dn],enumerable:fn in n?n[fn]:i[fn],writable:!1})}return cn(e,t,n)}:cn:function(e,t,n){if(sn(e),t=ln(t),sn(n),on)try{return cn(e,t,n)}catch(i){}if("get"in n||"set"in n)throw un("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var vn=Zt,gn=H,yn=A?function(e,t,n){return vn.f(e,t,gn(1,n))}:function(e,t,n){return e[t]=n,e},mn=r,_n=h,bn=E,kn=S,wn=P.f,En=Wt,Cn=te,xn=$t,Tn=yn,Sn=Je,Pn=function(e){var t=function(n,i,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return _n(e,this,arguments)};return t.prototype=e.prototype,t},An=function(e,t){var n,i,r,o,a,s,l,u,c,h=e.target,f=e.global,d=e.stat,p=e.proto,v=f?mn:d?mn[h]:(mn[h]||{}).prototype,g=f?Cn:Cn[h]||Tn(Cn,h,{})[h],y=g.prototype;for(o in t)i=!(n=En(f?o:h+(d?".":"#")+o,e.forced))&&v&&Sn(v,o),s=g[o],i&&(l=e.dontCallGetSet?(c=wn(v,o))&&c.value:v[o]),a=i&&l?l:t[o],i&&typeof s==typeof a||(u=e.bind&&i?xn(a,mn):e.wrap&&i?Pn(a):p&&kn(a)?bn(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tn(u,"sham",!0),Tn(g,o,u),p&&(Sn(Cn,r=h+"Prototype")||Tn(Cn,r,{}),Tn(Cn[r],o,a),e.real&&y&&(n||!y[o])&&Tn(y,o,a)))},Rn=b,In=Array.isArray||function(e){return"Array"==Rn(e)},On=Math.ceil,Mn=Math.floor,Ln=Math.trunc||function(e){var t=+e;return(t>0?Mn:On)(t)},Dn=function(e){var t=+e;return t!=t||0===t?0:Ln(t)},Nn=Dn,Fn=Math.min,Un=function(e){return e>0?Fn(Nn(e),9007199254740991):0},Hn=Un,jn=function(e){return Hn(e.length)},Bn=TypeError,Kn=function(e){if(e>9007199254740991)throw Bn("Maximum allowed index exceeded");return e},zn=wt,Vn=Zt,Gn=H,Wn=function(e,t,n){var i=zn(t);i in e?Vn.f(e,i,Gn(0,n)):e[i]=n},Yn={};Yn[ft("toStringTag")]="z";var Xn="[object z]"===String(Yn),qn=Xn,$n=S,Zn=b,Jn=ft("toStringTag"),Qn=Object,ei="Arguments"==Zn(function(){return arguments}()),ti=qn?Zn:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Qn(e),Jn))?n:ei?Zn(t):"Object"==(i=Zn(t))&&$n(t.callee)?"Arguments":i},ni=S,ii=Ve,ri=g(Function.toString);ni(ii.inspectSource)||(ii.inspectSource=function(e){return ri(e)});var oi=ii.inspectSource,ai=g,si=o,li=S,ui=ti,ci=oi,hi=function(){},fi=[],di=ae("Reflect","construct"),pi=/^\s*(?:class|function)\b/,vi=ai(pi.exec),gi=!pi.exec(hi),yi=function(e){if(!li(e))return!1;try{return di(hi,fi,e),!0}catch(t){return!1}},mi=function(e){if(!li(e))return!1;switch(ui(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gi||!!vi(pi,ci(e))}catch(t){return!0}};mi.sham=!0;var _i=!di||si((function(){var e;return yi(yi.call)||!yi(Object)||!yi((function(){e=!0}))||e}))?mi:yi,bi=In,ki=_i,wi=ee,Ei=ft("species"),Ci=Array,xi=function(e){var t;return bi(e)&&(t=e.constructor,(ki(t)&&(t===Ci||bi(t.prototype))||wi(t)&&null===(t=t[Ei]))&&(t=void 0)),void 0===t?Ci:t},Ti=function(e,t){return new(xi(e))(0===t?0:t)},Si=o,Pi=ve,Ai=ft("species"),Ri=function(e){return Pi>=51||!Si((function(){var t=[];return(t.constructor={})[Ai]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ii=An,Oi=o,Mi=In,Li=ee,Di=qe,Ni=jn,Fi=Kn,Ui=Wn,Hi=Ti,ji=Ri,Bi=ve,Ki=ft("isConcatSpreadable"),zi=Bi>=51||!Oi((function(){var e=[];return e[Ki]=!1,e.concat()[0]!==e})),Vi=function(e){if(!Li(e))return!1;var t=e[Ki];return void 0!==t?!!t:Mi(e)};Ii({target:"Array",proto:!0,arity:1,forced:!zi||!ji("concat")},{concat:function(e){var t,n,i,r,o,a=Di(this),s=Hi(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(Vi(o=-1===t?a:arguments[t]))for(r=Ni(o),Fi(l+r),n=0;n<r;n++,l++)n in o&&Ui(s,l,o[n]);else Fi(l+1),Ui(s,l++,o);return s.length=l,s}});var Gi=ti,Wi=String,Yi=function(e){if("Symbol"===Gi(e))throw TypeError("Cannot convert a Symbol value to a string");return Wi(e)},Xi={},qi=Dn,$i=Math.max,Zi=Math.min,Ji=function(e,t){var n=qi(e);return n<0?$i(n+t,0):Zi(n,t)},Qi=Z,er=Ji,tr=jn,nr=function(e){return function(t,n,i){var r,o=Qi(t),a=tr(o),s=er(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ir={includes:nr(!0),indexOf:nr(!1)},rr={},or=Je,ar=Z,sr=ir.indexOf,lr=rr,ur=g([].push),cr=function(e,t){var n,i=ar(e),r=0,o=[];for(n in i)!or(lr,n)&&or(i,n)&&ur(o,n);for(;t.length>r;)or(i,n=t[r++])&&(~sr(o,n)||ur(o,n));return o},hr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fr=cr,dr=hr,pr=Object.keys||function(e){return fr(e,dr)},vr=A,gr=Jt,yr=Zt,mr=nn,_r=Z,br=pr;Xi.f=vr&&!gr?Object.defineProperties:function(e,t){mr(e);for(var n,i=_r(t),r=br(t),o=r.length,a=0;o>a;)yr.f(e,n=r[a++],i[n]);return e};var kr,wr=ae("document","documentElement"),Er=it,Cr=We("keys"),xr=function(e){return Cr[e]||(Cr[e]=Er(e))},Tr=nn,Sr=Xi,Pr=hr,Ar=rr,Rr=wr,Ir=Tt,Or="prototype",Mr="script",Lr=xr("IE_PROTO"),Dr=function(){},Nr=function(e){return"<"+Mr+">"+e+"</"+Mr+">"},Fr=function(e){e.write(Nr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ur=function(){try{kr=new ActiveXObject("htmlfile")}catch(r){}var e,t,n;Ur="undefined"!=typeof document?document.domain&&kr?Fr(kr):(t=Ir("iframe"),n="java"+Mr+":",t.style.display="none",Rr.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Nr("document.F=Object")),e.close(),e.F):Fr(kr);for(var i=Pr.length;i--;)delete Ur[Or][Pr[i]];return Ur()};Ar[Lr]=!0;var Hr=Object.create||function(e,t){var n;return null!==e?(Dr[Or]=Tr(e),n=new Dr,Dr[Or]=null,n[Lr]=e):n=Ur(),void 0===t?n:Sr.f(n,t)},jr={},Br=cr,Kr=hr.concat("length","prototype");jr.f=Object.getOwnPropertyNames||function(e){return Br(e,Kr)};var zr={},Vr=Ji,Gr=jn,Wr=Wn,Yr=Array,Xr=Math.max,qr=function(e,t,n){for(var i=Gr(e),r=Vr(t,i),o=Vr(void 0===n?i:n,i),a=Yr(Xr(o-r,0)),s=0;r<o;r++,s++)Wr(a,s,e[r]);return a.length=s,a},$r=b,Zr=Z,Jr=jr.f,Qr=qr,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zr.f=function(e){return eo&&"Window"==$r(e)?function(e){try{return Jr(e)}catch(t){return Qr(eo)}}(e):Jr(Zr(e))};var to={};to.f=Object.getOwnPropertySymbols;var no=yn,io=function(e,t,n,i){return i&&i.enumerable?e[t]=n:no(e,t,n),e},ro=Zt,oo=function(e,t,n){return ro.f(e,t,n)},ao={},so=ft;ao.f=so;var lo,uo,co,ho=te,fo=Je,po=ao,vo=Zt.f,go=function(e){var t=ho.Symbol||(ho.Symbol={});fo(t,e)||vo(t,e,{value:po.f(e)})},yo=O,mo=ae,_o=ft,bo=io,ko=function(){var e=mo("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,i=_o("toPrimitive");t&&!t[i]&&bo(t,i,(function(e){return yo(n,this)}),{arity:1})},wo=ti,Eo=Xn?{}.toString:function(){return"[object "+wo(this)+"]"},Co=Xn,xo=Zt.f,To=yn,So=Je,Po=Eo,Ao=ft("toStringTag"),Ro=function(e,t,n,i){if(e){var r=n?e:e.prototype;So(r,Ao)||xo(r,Ao,{configurable:!0,value:t}),i&&!Co&&To(r,"toString",Po)}},Io=S,Oo=r.WeakMap,Mo=Io(Oo)&&/native code/.test(String(Oo)),Lo=r,Do=ee,No=yn,Fo=Je,Uo=Ve,Ho=xr,jo=rr,Bo="Object already initialized",Ko=Lo.TypeError,zo=Lo.WeakMap;if(Mo||Uo.state){var Vo=Uo.state||(Uo.state=new zo);Vo.get=Vo.get,Vo.has=Vo.has,Vo.set=Vo.set,lo=function(e,t){if(Vo.has(e))throw Ko(Bo);return t.facade=e,Vo.set(e,t),t},uo=function(e){return Vo.get(e)||{}},co=function(e){return Vo.has(e)}}else{var Go=Ho("state");jo[Go]=!0,lo=function(e,t){if(Fo(e,Go))throw Ko(Bo);return t.facade=e,No(e,Go,t),t},uo=function(e){return Fo(e,Go)?e[Go]:{}},co=function(e){return Fo(e,Go)}}var Wo={set:lo,get:uo,has:co,enforce:function(e){return co(e)?uo(e):lo(e,{})},getterFor:function(e){return function(t){var n;if(!Do(t)||(n=uo(t)).type!==e)throw Ko("Incompatible receiver, "+e+" required");return n}}},Yo=$t,Xo=V,qo=qe,$o=jn,Zo=Ti,Jo=g([].push),Qo=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,h){for(var f,d,p=qo(l),v=Xo(p),g=Yo(u,c),y=$o(v),m=0,_=h||Zo,b=t?_(l,y):n||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(d=g(f=v[m],m,p),e))if(t)b[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Jo(b,f)}else switch(e){case 4:return!1;case 7:Jo(b,f)}return o?-1:i||r?r:b}},ea={forEach:Qo(0),map:Qo(1),filter:Qo(2),some:Qo(3),every:Qo(4),find:Qo(5),findIndex:Qo(6),filterReject:Qo(7)},ta=An,na=r,ia=O,ra=g,oa=A,aa=_e,sa=o,la=Je,ua=se,ca=nn,ha=Z,fa=wt,da=Yi,pa=H,va=Hr,ga=pr,ya=jr,ma=zr,_a=to,ba=P,ka=Zt,wa=Xi,Ea=M,Ca=io,xa=oo,Ta=We,Sa=rr,Pa=it,Aa=ft,Ra=ao,Ia=go,Oa=ko,Ma=Ro,La=Wo,Da=ea.forEach,Na=xr("hidden"),Fa="Symbol",Ua="prototype",Ha=La.set,ja=La.getterFor(Fa),Ba=Object[Ua],Ka=na.Symbol,za=Ka&&Ka[Ua],Va=na.TypeError,Ga=na.QObject,Wa=ba.f,Ya=ka.f,Xa=ma.f,qa=Ea.f,$a=ra([].push),Za=Ta("symbols"),Ja=Ta("op-symbols"),Qa=Ta("wks"),es=!Ga||!Ga[Ua]||!Ga[Ua].findChild,ts=oa&&sa((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Wa(Ba,t);i&&delete Ba[t],Ya(e,t,n),i&&e!==Ba&&Ya(Ba,t,i)}:Ya,ns=function(e,t){var n=Za[e]=va(za);return Ha(n,{type:Fa,tag:e,description:t}),oa||(n.description=t),n},is=function(e,t,n){e===Ba&&is(Ja,t,n),ca(e);var i=fa(t);return ca(n),la(Za,i)?(n.enumerable?(la(e,Na)&&e[Na][i]&&(e[Na][i]=!1),n=va(n,{enumerable:pa(0,!1)})):(la(e,Na)||Ya(e,Na,pa(1,{})),e[Na][i]=!0),ts(e,i,n)):Ya(e,i,n)},rs=function(e,t){ca(e);var n=ha(t),i=ga(n).concat(ls(n));return Da(i,(function(t){oa&&!ia(os,n,t)||is(e,t,n[t])})),e},os=function(e){var t=fa(e),n=ia(qa,this,t);return!(this===Ba&&la(Za,t)&&!la(Ja,t))&&(!(n||!la(this,t)||!la(Za,t)||la(this,Na)&&this[Na][t])||n)},as=function(e,t){var n=ha(e),i=fa(t);if(n!==Ba||!la(Za,i)||la(Ja,i)){var r=Wa(n,i);return!r||!la(Za,i)||la(n,Na)&&n[Na][i]||(r.enumerable=!0),r}},ss=function(e){var t=Xa(ha(e)),n=[];return Da(t,(function(e){la(Za,e)||la(Sa,e)||$a(n,e)})),n},ls=function(e){var t=e===Ba,n=Xa(t?Ja:ha(e)),i=[];return Da(n,(function(e){!la(Za,e)||t&&!la(Ba,e)||$a(i,Za[e])})),i};aa||(Ka=function(){if(ua(za,this))throw Va("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?da(arguments[0]):void 0,t=Pa(e),n=function(e){this===Ba&&ia(n,Ja,e),la(this,Na)&&la(this[Na],t)&&(this[Na][t]=!1),ts(this,t,pa(1,e))};return oa&&es&&ts(Ba,t,{configurable:!0,set:n}),ns(t,e)},Ca(za=Ka[Ua],"toString",(function(){return ja(this).tag})),Ca(Ka,"withoutSetter",(function(e){return ns(Pa(e),e)})),Ea.f=os,ka.f=is,wa.f=rs,ba.f=as,ya.f=ma.f=ss,_a.f=ls,Ra.f=function(e){return ns(Aa(e),e)},oa&&xa(za,"description",{configurable:!0,get:function(){return ja(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ka}),Da(ga(Qa),(function(e){Ia(e)})),ta({target:Fa,stat:!0,forced:!aa},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):rs(va(e),t)},defineProperty:is,defineProperties:rs,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Oa(),Ma(Ka,Fa),Sa[Na]=!0;var us=_e&&!!Symbol.for&&!!Symbol.keyFor,cs=An,hs=ae,fs=Je,ds=Yi,ps=We,vs=us,gs=ps("string-to-symbol-registry"),ys=ps("symbol-to-string-registry");cs({target:"Symbol",stat:!0,forced:!vs},{for:function(e){var t=ds(e);if(fs(gs,t))return gs[t];var n=hs("Symbol")(t);return gs[t]=n,ys[n]=t,n}});var ms=An,_s=Je,bs=xe,ks=Se,ws=us,Es=We("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!ws},{keyFor:function(e){if(!bs(e))throw TypeError(ks(e)+" is not a symbol");if(_s(Es,e))return Es[e]}});var Cs=g([].slice),xs=In,Ts=S,Ss=b,Ps=Yi,As=g([].push),Rs=An,Is=ae,Os=h,Ms=O,Ls=g,Ds=o,Ns=S,Fs=xe,Us=Cs,Hs=function(e){if(Ts(e))return e;if(xs(e)){for(var t=e.length,n=[],i=0;i<t;i++){var r=e[i];"string"==typeof r?As(n,r):"number"!=typeof r&&"Number"!=Ss(r)&&"String"!=Ss(r)||As(n,Ps(r))}var o=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(xs(this))return t;for(var i=0;i<o;i++)if(n[i]===e)return t}}},js=_e,Bs=String,Ks=Is("JSON","stringify"),zs=Ls(/./.exec),Vs=Ls("".charAt),Gs=Ls("".charCodeAt),Ws=Ls("".replace),Ys=Ls(1..toString),Xs=/[\uD800-\uDFFF]/g,qs=/^[\uD800-\uDBFF]$/,$s=/^[\uDC00-\uDFFF]$/,Zs=!js||Ds((function(){var e=Is("Symbol")();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))})),Js=Ds((function(){return'"\\udf06\\ud834"'!==Ks("\udf06\ud834")||'"\\udead"'!==Ks("\udead")})),Qs=function(e,t){var n=Us(arguments),i=Hs(t);if(Ns(i)||void 0!==e&&!Fs(e))return n[1]=function(e,t){if(Ns(i)&&(t=Ms(i,this,Bs(e),t)),!Fs(t))return t},Os(Ks,null,n)},el=function(e,t,n){var i=Vs(n,t-1),r=Vs(n,t+1);return zs(qs,e)&&!zs($s,r)||zs($s,e)&&!zs(qs,i)?"\\u"+Ys(Gs(e,0),16):e};Ks&&Rs({target:"JSON",stat:!0,arity:3,forced:Zs||Js},{stringify:function(e,t,n){var i=Us(arguments),r=Os(Zs?Qs:Ks,null,i);return Js&&"string"==typeof r?Ws(r,Xs,el):r}});var tl=to,nl=qe;An({target:"Object",stat:!0,forced:!_e||o((function(){tl.f(1)}))},{getOwnPropertySymbols:function(e){var t=tl.f;return t?t(nl(e)):[]}}),go("asyncIterator"),go("hasInstance"),go("isConcatSpreadable"),go("iterator"),go("match"),go("matchAll"),go("replace"),go("search"),go("species"),go("split");var il=ko;go("toPrimitive"),il();var rl=ae,ol=Ro;go("toStringTag"),ol(rl("Symbol"),"Symbol"),go("unscopables"),Ro(r.JSON,"JSON",!0);var al,sl,ll,ul=te.Symbol,cl={},hl=A,fl=Je,dl=Function.prototype,pl=hl&&Object.getOwnPropertyDescriptor,vl=fl(dl,"name"),gl={EXISTS:vl,PROPER:vl&&"something"===function(){}.name,CONFIGURABLE:vl&&(!hl||hl&&pl(dl,"name").configurable)},yl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ml=Je,_l=S,bl=qe,kl=yl,wl=xr("IE_PROTO"),El=Object,Cl=El.prototype,xl=kl?El.getPrototypeOf:function(e){var t=bl(e);if(ml(t,wl))return t[wl];var n=t.constructor;return _l(n)&&t instanceof n?n.prototype:t instanceof El?Cl:null},Tl=o,Sl=S,Pl=ee,Al=Hr,Rl=xl,Il=io,Ol=ft("iterator"),Ml=!1;[].keys&&("next"in(ll=[].keys())?(sl=Rl(Rl(ll)))!==Object.prototype&&(al=sl):Ml=!0);var Ll=!Pl(al)||Tl((function(){var e={};return al[Ol].call(e)!==e}));Sl((al=Ll?{}:Al(al))[Ol])||Il(al,Ol,(function(){return this}));var Dl={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:Ml},Nl=Dl.IteratorPrototype,Fl=Hr,Ul=H,Hl=Ro,jl=cl,Bl=function(){return this},Kl=function(e,t,n,i){var r=t+" Iterator";return e.prototype=Fl(Nl,{next:Ul(+!i,n)}),Hl(e,r,!1,!0),jl[r]=Bl,e},zl=g,Vl=Ie,Gl=S,Wl=String,Yl=TypeError,Xl=function(e,t,n){try{return zl(Vl(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}},ql=nn,$l=function(e){if("object"==typeof e||Gl(e))return e;throw Yl("Can't set "+Wl(e)+" as a prototype")},Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Xl(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return ql(n),$l(i),t?e(n,i):n.__proto__=i,n}}():void 0),Jl=An,Ql=O,eu=gl,tu=Kl,nu=xl,iu=Ro,ru=io,ou=cl,au=Dl,su=eu.PROPER,lu=au.BUGGY_SAFARI_ITERATORS,uu=ft("iterator"),cu="keys",hu="values",fu="entries",du=function(){return this},pu=function(e,t,n,i,r,o,a){tu(n,t,i);var s,l,u,c=function(e){if(e===r&&v)return v;if(!lu&&e in d)return d[e];switch(e){case cu:case hu:case fu:return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",f=!1,d=e.prototype,p=d[uu]||d["@@iterator"]||r&&d[r],v=!lu&&p||c(r),g="Array"==t&&d.entries||p;if(g&&(s=nu(g.call(new e)))!==Object.prototype&&s.next&&(iu(s,h,!0,!0),ou[h]=du),su&&r==hu&&p&&p.name!==hu&&(f=!0,v=function(){return Ql(p,this)}),r)if(l={values:c(hu),keys:o?v:c(cu),entries:c(fu)},a)for(u in l)(lu||f||!(u in d))&&ru(d,u,l[u]);else Jl({target:t,proto:!0,forced:lu||f},l);return a&&d[uu]!==v&&ru(d,uu,v,{name:r}),ou[t]=v,l},vu=function(e,t){return{value:e,done:t}},gu=Z,yu=cl,mu=Wo;Zt.f;var _u=pu,bu=vu,ku="Array Iterator",wu=mu.set,Eu=mu.getterFor(ku);_u(Array,"Array",(function(e,t){wu(this,{type:ku,target:gu(e),index:0,kind:t})}),(function(){var e=Eu(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,bu(void 0,!0)):bu("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values"),yu.Arguments=yu.Array;var Cu={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},xu=r,Tu=ti,Su=yn,Pu=cl,Au=ft("toStringTag");for(var Ru in Cu){var Iu=xu[Ru],Ou=Iu&&Iu.prototype;Ou&&Tu(Ou)!==Au&&Su(Ou,Au,Ru),Pu[Ru]=Pu.Array}var Mu=ul;go("dispose");var Lu=Mu;go("asyncDispose");var Du=An,Nu=g,Fu=ae("Symbol"),Uu=Fu.keyFor,Hu=Nu(Fu.prototype.valueOf);Du({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Uu(Hu(e))}catch(t){return!1}}});for(var ju=An,Bu=We,Ku=ae,zu=g,Vu=xe,Gu=ft,Wu=Ku("Symbol"),Yu=Wu.isWellKnown,Xu=Ku("Object","getOwnPropertyNames"),qu=zu(Wu.prototype.valueOf),$u=Bu("wks"),Zu=0,Ju=Xu(Wu),Qu=Ju.length;Zu<Qu;Zu++)try{var ec=Ju[Zu];Vu(Wu[ec])&&Gu(ec)}catch(lU){}ju({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yu&&Yu(e))return!0;try{for(var t=qu(e),n=0,i=Xu($u),r=i.length;n<r;n++)if($u[i[n]]==t)return!0}catch(lU){}return!1}}),go("matcher"),go("metadataKey"),go("observable"),go("metadata"),go("patternMatch"),go("replaceAll");var tc=Lu,nc=n(tc),ic=g,rc=Dn,oc=Yi,ac=X,sc=ic("".charAt),lc=ic("".charCodeAt),uc=ic("".slice),cc=function(e){return function(t,n){var i,r,o=oc(ac(t)),a=rc(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=lc(o,a))<55296||i>56319||a+1===s||(r=lc(o,a+1))<56320||r>57343?e?sc(o,a):i:e?uc(o,a,a+2):r-56320+(i-55296<<10)+65536}},hc={codeAt:cc(!1),charAt:cc(!0)},fc=hc.charAt,dc=Yi,pc=Wo,vc=pu,gc=vu,yc="String Iterator",mc=pc.set,_c=pc.getterFor(yc);vc(String,"String",(function(e){mc(this,{type:yc,string:dc(e),index:0})}),(function(){var e,t=_c(this),n=t.string,i=t.index;return i>=n.length?gc(void 0,!0):(e=fc(n,i),t.index+=e.length,gc(e,!1))}));var bc=ao.f("iterator"),kc=n(bc);function wc(e){return(wc="function"==typeof nc&&"symbol"==typeof kc?function(e){return typeof e}:function(e){return e&&"function"==typeof nc&&e.constructor===nc&&e!==nc.prototype?"symbol":typeof e})(e)}var Ec={exports:{}},Cc=An,xc=A,Tc=Zt.f;Cc({target:"Object",stat:!0,forced:Object.defineProperty!==Tc,sham:!xc},{defineProperty:Tc});var Sc=te.Object,Pc=Ec.exports=function(e,t,n){return Sc.defineProperty(e,t,n)};Sc.defineProperty.sham&&(Pc.sham=!0);var Ac=Ec.exports,Rc=n(Ac);An({target:"Object",stat:!0,sham:!A},{create:Hr});var Ic=te.Object,Oc=n((function(e,t){return Ic.create(e,t)})),Mc=qe,Lc=xl,Dc=yl;An({target:"Object",stat:!0,forced:o((function(){Lc(1)})),sham:!Dc},{getPrototypeOf:function(e){return Lc(Mc(e))}});var Nc=te.Object.getPrototypeOf,Fc=n(Nc),Uc=o,Hc=function(e,t){var n=[][e];return!!n&&Uc((function(){n.call(null,t||function(){return 1},1)}))},jc=ea.forEach,Bc=Hc("forEach")?[].forEach:function(e){return jc(this,e,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!=Bc},{forEach:Bc});var Kc=te,zc=function(e){return Kc[e+"Prototype"]},Vc=zc("Array").forEach,Gc=ti,Wc=Je,Yc=se,Xc=Vc,qc=Array.prototype,$c={DOMTokenList:!0,NodeList:!0},Zc=n((function(e){var t=e.forEach;return e===qc||Yc(qc,e)&&t===qc.forEach||Wc($c,Gc(e))?Xc:t})),Jc=A,Qc=In,eh=TypeError,th=Object.getOwnPropertyDescriptor,nh=Jc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(lU){return lU instanceof TypeError}}()?function(e,t){if(Qc(e)&&!th(e,"length").writable)throw eh("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ih=qe,rh=jn,oh=nh,ah=Kn;An({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(lU){return lU instanceof TypeError}}()},{push:function(e){var t=ih(this),n=rh(t),i=arguments.length;ah(n+i);for(var r=0;r<i;r++)t[n]=arguments[r],n++;return oh(t,n),n}});var sh=zc("Array").push,lh=se,uh=sh,ch=Array.prototype,hh=n((function(e){var t=e.push;return e===ch||lh(ch,e)&&t===ch.push?uh:t}));An({target:"Object",stat:!0},{setPrototypeOf:Zl});var fh=te.Object.setPrototypeOf,dh=n(fh),ph=ae,vh=jr,gh=to,yh=nn,mh=g([].concat),_h=ph("Reflect","ownKeys")||function(e){var t=vh.f(yh(e)),n=gh.f;return n?mh(t,n(e)):t},bh=Je,kh=_h,wh=P,Eh=Zt,Ch=ee,xh=yn,Th=Error,Sh=g("".replace),Ph=String(Th("zxcasd").stack),Ah=/\n\s*at [^:]*:[^\n]*/,Rh=Ah.test(Ph),Ih=H,Oh=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ih(1,7)),7!==e.stack)})),Mh=yn,Lh=function(e,t){if(Rh&&"string"==typeof e&&!Th.prepareStackTrace)for(;t--;)e=Sh(e,Ah,"");return e},Dh=Oh,Nh=Error.captureStackTrace,Fh=cl,Uh=ft("iterator"),Hh=Array.prototype,jh=function(e){return void 0!==e&&(Fh.Array===e||Hh[Uh]===e)},Bh=ti,Kh=Le,zh=G,Vh=cl,Gh=ft("iterator"),Wh=function(e){if(!zh(e))return Kh(e,Gh)||Kh(e,"@@iterator")||Vh[Bh(e)]},Yh=O,Xh=Ie,qh=nn,$h=Se,Zh=Wh,Jh=TypeError,Qh=function(e,t){var n=arguments.length<2?Zh(e):t;if(Xh(n))return qh(Yh(n,e));throw Jh($h(e)+" is not iterable")},ef=O,tf=nn,nf=Le,rf=function(e,t,n){var i,r;tf(e);try{if(!(i=nf(e,"return"))){if("throw"===t)throw n;return n}i=ef(i,e)}catch(lU){r=!0,i=lU}if("throw"===t)throw n;if(r)throw i;return tf(i),n},of=$t,af=O,sf=nn,lf=Se,uf=jh,cf=jn,hf=se,ff=Qh,df=Wh,pf=rf,vf=TypeError,gf=function(e,t){this.stopped=e,this.result=t},yf=gf.prototype,mf=function(e,t,n){var i,r,o,a,s,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=of(t,c),g=function(e){return i&&pf(i,"normal",e),new gf(!0,e)},y=function(e){return h?(sf(e),p?v(e[0],e[1],g):v(e[0],e[1])):p?v(e,g):v(e)};if(f)i=e.iterator;else if(d)i=e;else{if(!(r=df(e)))throw vf(lf(e)+" is not iterable");if(uf(r)){for(o=0,a=cf(e);a>o;o++)if((s=y(e[o]))&&hf(yf,s))return s;return new gf(!1)}i=ff(e,r)}for(l=f?e.next:i.next;!(u=af(l,i)).done;){try{s=y(u.value)}catch(lU){pf(i,"throw",lU)}if("object"==typeof s&&s&&hf(yf,s))return s}return new gf(!1)},_f=Yi,bf=An,kf=se,wf=xl,Ef=Zl,Cf=function(e,t,n){for(var i=kh(t),r=Eh.f,o=wh.f,a=0;a<i.length;a++){var s=i[a];bh(e,s)||n&&bh(n,s)||r(e,s,o(t,s))}},xf=Hr,Tf=yn,Sf=H,Pf=function(e,t){Ch(t)&&"cause"in t&&xh(e,"cause",t.cause)},Af=function(e,t,n,i){Dh&&(Nh?Nh(e,t):Mh(e,"stack",Lh(n,i)))},Rf=mf,If=function(e,t){return void 0===e?arguments.length<2?"":t:_f(e)},Of=ft("toStringTag"),Mf=Error,Lf=[].push,Df=function(e,t){var n,i=kf(Nf,this);Ef?n=Ef(Mf(),i?wf(this):Nf):(n=i?this:xf(Nf),Tf(n,Of,"Error")),void 0!==t&&Tf(n,"message",If(t)),Af(n,Df,n.stack,1),arguments.length>2&&Pf(n,arguments[2]);var r=[];return Rf(e,Lf,{that:r}),Tf(n,"errors",r),n};Ef?Ef(Df,Mf):Cf(Df,Mf,{name:!0});var Nf=Df.prototype=xf(Mf.prototype,{constructor:Sf(1,Df),message:Sf(1,""),name:Sf(1,"AggregateError")});bf({global:!0,constructor:!0,arity:2},{AggregateError:Df});var Ff,Uf,Hf,jf,Bf="undefined"!=typeof process&&"process"==b(process),Kf=ae,zf=oo,Vf=A,Gf=ft("species"),Wf=function(e){var t=Kf(e);Vf&&t&&!t[Gf]&&zf(t,Gf,{configurable:!0,get:function(){return this}})},Yf=se,Xf=TypeError,qf=function(e,t){if(Yf(t,e))return e;throw Xf("Incorrect invocation")},$f=_i,Zf=Se,Jf=TypeError,Qf=function(e){if($f(e))return e;throw Jf(Zf(e)+" is not a constructor")},ed=nn,td=Qf,nd=G,id=ft("species"),rd=function(e,t){var n,i=ed(e).constructor;return void 0===i||nd(n=ed(i)[id])?t:td(n)},od=TypeError,ad=function(e,t){if(e<t)throw od("Not enough arguments");return e},sd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),ld=r,ud=h,cd=$t,hd=S,fd=Je,dd=o,pd=wr,vd=Cs,gd=Tt,yd=ad,md=sd,_d=Bf,bd=ld.setImmediate,kd=ld.clearImmediate,wd=ld.process,Ed=ld.Dispatch,Cd=ld.Function,xd=ld.MessageChannel,Td=ld.String,Sd=0,Pd={},Ad="onreadystatechange";dd((function(){Ff=ld.location}));var Rd=function(e){if(fd(Pd,e)){var t=Pd[e];delete Pd[e],t()}},Id=function(e){return function(){Rd(e)}},Od=function(e){Rd(e.data)},Md=function(e){ld.postMessage(Td(e),Ff.protocol+"//"+Ff.host)};bd&&kd||(bd=function(e){yd(arguments.length,1);var t=hd(e)?e:Cd(e),n=vd(arguments,1);return Pd[++Sd]=function(){ud(t,void 0,n)},Uf(Sd),Sd},kd=function(e){delete Pd[e]},_d?Uf=function(e){wd.nextTick(Id(e))}:Ed&&Ed.now?Uf=function(e){Ed.now(Id(e))}:xd&&!md?(jf=(Hf=new xd).port2,Hf.port1.onmessage=Od,Uf=cd(jf.postMessage,jf)):ld.addEventListener&&hd(ld.postMessage)&&!ld.importScripts&&Ff&&"file:"!==Ff.protocol&&!dd(Md)?(Uf=Md,ld.addEventListener("message",Od,!1)):Uf=Ad in gd("script")?function(e){pd.appendChild(gd("script"))[Ad]=function(){pd.removeChild(this),Rd(e)}}:function(e){setTimeout(Id(e),0)});var Ld={set:bd,clear:kd},Dd=function(){this.head=null,this.tail=null};Dd.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Nd,Fd,Ud,Hd,jd,Bd=Dd,Kd=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,zd=/web0s(?!.*chrome)/i.test(le),Vd=r,Gd=$t,Wd=P.f,Yd=Ld.set,Xd=Bd,qd=sd,$d=Kd,Zd=zd,Jd=Bf,Qd=Vd.MutationObserver||Vd.WebKitMutationObserver,ep=Vd.document,tp=Vd.process,np=Vd.Promise,ip=Wd(Vd,"queueMicrotask"),rp=ip&&ip.value;if(!rp){var op=new Xd,ap=function(){var e,t;for(Jd&&(e=tp.domain)&&e.exit();t=op.get();)try{t()}catch(lU){throw op.head&&Nd(),lU}e&&e.enter()};qd||Jd||Zd||!Qd||!ep?!$d&&np&&np.resolve?((Hd=np.resolve(void 0)).constructor=np,jd=Gd(Hd.then,Hd),Nd=function(){jd(ap)}):Jd?Nd=function(){tp.nextTick(ap)}:(Yd=Gd(Yd,Vd),Nd=function(){Yd(ap)}):(Fd=!0,Ud=ep.createTextNode(""),new Qd(ap).observe(Ud,{characterData:!0}),Nd=function(){Ud.data=Fd=!Fd}),rp=function(e){op.head||Nd(),op.add(e)}}var sp=rp,lp=function(e){try{return{error:!1,value:e()}}catch(lU){return{error:!0,value:lU}}},up=r.Promise,cp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,hp=!cp&&!Bf&&"object"==typeof window&&"object"==typeof document,fp=r,dp=up,pp=S,vp=Wt,gp=oi,yp=ft,mp=hp,_p=cp,bp=ve,kp=dp&&dp.prototype,wp=yp("species"),Ep=!1,Cp=pp(fp.PromiseRejectionEvent),xp={CONSTRUCTOR:vp("Promise",(function(){var e=gp(dp),t=e!==String(dp);if(!t&&66===bp)return!0;if(!kp.catch||!kp.finally)return!0;if(!bp||bp<51||!/native code/.test(e)){var n=new dp((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};if((n.constructor={})[wp]=i,!(Ep=n.then((function(){}))instanceof i))return!0}return!t&&(mp||_p)&&!Cp})),REJECTION_EVENT:Cp,SUBCLASSING:Ep},Tp={},Sp=Ie,Pp=TypeError,Ap=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw Pp("Bad Promise constructor");t=e,n=i})),this.resolve=Sp(t),this.reject=Sp(n)};Tp.f=function(e){return new Ap(e)};var Rp,Ip,Op=An,Mp=Bf,Lp=r,Dp=O,Np=io,Fp=Ro,Up=Wf,Hp=Ie,jp=S,Bp=ee,Kp=qf,zp=rd,Vp=Ld.set,Gp=sp,Wp=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(lU){}},Yp=lp,Xp=Bd,qp=Wo,$p=up,Zp=xp,Jp=Tp,Qp="Promise",ev=Zp.CONSTRUCTOR,tv=Zp.REJECTION_EVENT,nv=qp.getterFor(Qp),iv=qp.set,rv=$p&&$p.prototype,ov=$p,av=rv,sv=Lp.TypeError,lv=Lp.document,uv=Lp.process,cv=Jp.f,hv=cv,fv=!!(lv&&lv.createEvent&&Lp.dispatchEvent),dv="unhandledrejection",pv=function(e){var t;return!(!Bp(e)||!jp(t=e.then))&&t},vv=function(e,t){var n,i,r,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&bv(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),r=!0)),n===e.promise?u(sv("Promise-chain cycle")):(i=pv(n))?Dp(i,n,l,u):l(n)):u(o)}catch(lU){c&&!r&&c.exit(),u(lU)}},gv=function(e,t){e.notified||(e.notified=!0,Gp((function(){for(var n,i=e.reactions;n=i.get();)vv(n,e);e.notified=!1,t&&!e.rejection&&mv(e)})))},yv=function(e,t,n){var i,r;fv?((i=lv.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),Lp.dispatchEvent(i)):i={promise:t,reason:n},!tv&&(r=Lp["on"+e])?r(i):e===dv&&Wp("Unhandled promise rejection",n)},mv=function(e){Dp(Vp,Lp,(function(){var t,n=e.facade,i=e.value;if(_v(e)&&(t=Yp((function(){Mp?uv.emit("unhandledRejection",i,n):yv(dv,n,i)})),e.rejection=Mp||_v(e)?2:1,t.error))throw t.value}))},_v=function(e){return 1!==e.rejection&&!e.parent},bv=function(e){Dp(Vp,Lp,(function(){var t=e.facade;Mp?uv.emit("rejectionHandled",t):yv("rejectionhandled",t,e.value)}))},kv=function(e,t,n){return function(i){e(t,i,n)}},wv=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,gv(e,!0))},Ev=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sv("Promise can't be resolved itself");var i=pv(t);i?Gp((function(){var n={done:!1};try{Dp(i,t,kv(Ev,n,e),kv(wv,n,e))}catch(lU){wv(n,lU,e)}})):(e.value=t,e.state=1,gv(e,!1))}catch(lU){wv({done:!1},lU,e)}}};ev&&(av=(ov=function(e){Kp(this,av),Hp(e),Dp(Rp,this);var t=nv(this);try{e(kv(Ev,t),kv(wv,t))}catch(lU){wv(t,lU)}}).prototype,(Rp=function(e){iv(this,{type:Qp,done:!1,notified:!1,parent:!1,reactions:new Xp,rejection:!1,state:0,value:void 0})}).prototype=Np(av,"then",(function(e,t){var n=nv(this),i=cv(zp(this,ov));return n.parent=!0,i.ok=!jp(e)||e,i.fail=jp(t)&&t,i.domain=Mp?uv.domain:void 0,0==n.state?n.reactions.add(i):Gp((function(){vv(i,n)})),i.promise})),Ip=function(){var e=new Rp,t=nv(e);this.promise=e,this.resolve=kv(Ev,t),this.reject=kv(wv,t)},Jp.f=cv=function(e){return e===ov||undefined===e?new Ip(e):hv(e)}),Op({global:!0,constructor:!0,wrap:!0,forced:ev},{Promise:ov}),Fp(ov,Qp,!1,!0),Up(Qp);var Cv=ft("iterator"),xv=!1;try{var Tv=0,Sv={next:function(){return{done:!!Tv++}},return:function(){xv=!0}};Sv[Cv]=function(){return this},Array.from(Sv,(function(){throw 2}))}catch(lU){}var Pv=function(e,t){if(!t&&!xv)return!1;var n=!1;try{var i={};i[Cv]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(lU){}return n},Av=up,Rv=xp.CONSTRUCTOR||!Pv((function(e){Av.all(e).then(void 0,(function(){}))})),Iv=O,Ov=Ie,Mv=Tp,Lv=lp,Dv=mf;An({target:"Promise",stat:!0,forced:Rv},{all:function(e){var t=this,n=Mv.f(t),i=n.resolve,r=n.reject,o=Lv((function(){var n=Ov(t.resolve),o=[],a=0,s=1;Dv(e,(function(e){var l=a++,u=!1;s++,Iv(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise}});var Nv=An,Fv=xp.CONSTRUCTOR;up&&up.prototype,Nv({target:"Promise",proto:!0,forced:Fv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Uv=O,Hv=Ie,jv=Tp,Bv=lp,Kv=mf;An({target:"Promise",stat:!0,forced:Rv},{race:function(e){var t=this,n=jv.f(t),i=n.reject,r=Bv((function(){var r=Hv(t.resolve);Kv(e,(function(e){Uv(r,t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var zv=O,Vv=Tp;An({target:"Promise",stat:!0,forced:xp.CONSTRUCTOR},{reject:function(e){var t=Vv.f(this);return zv(t.reject,void 0,e),t.promise}});var Gv=nn,Wv=ee,Yv=Tp,Xv=function(e,t){if(Gv(e),Wv(t)&&t.constructor===e)return t;var n=Yv.f(e);return(0,n.resolve)(t),n.promise},qv=An,$v=up,Zv=xp.CONSTRUCTOR,Jv=Xv,Qv=ae("Promise"),eg=!Zv;qv({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Jv(eg&&this===Qv?$v:this,e)}});var tg=O,ng=Ie,ig=Tp,rg=lp,og=mf;An({target:"Promise",stat:!0,forced:Rv},{allSettled:function(e){var t=this,n=ig.f(t),i=n.resolve,r=n.reject,o=rg((function(){var n=ng(t.resolve),r=[],o=0,a=1;og(e,(function(e){var s=o++,l=!1;a++,tg(n,t,e).then((function(e){l||(l=!0,r[s]={status:"fulfilled",value:e},--a||i(r))}),(function(e){l||(l=!0,r[s]={status:"rejected",reason:e},--a||i(r))}))})),--a||i(r)}));return o.error&&r(o.value),n.promise}});var ag=O,sg=Ie,lg=ae,ug=Tp,cg=lp,hg=mf,fg="No one promise resolved";An({target:"Promise",stat:!0,forced:Rv},{any:function(e){var t=this,n=lg("AggregateError"),i=ug.f(t),r=i.resolve,o=i.reject,a=cg((function(){var i=sg(t.resolve),a=[],s=0,l=1,u=!1;hg(e,(function(e){var c=s++,h=!1;l++,ag(i,t,e).then((function(e){h||u||(u=!0,r(e))}),(function(e){h||u||(h=!0,a[c]=e,--l||o(new n(a,fg)))}))})),--l||o(new n(a,fg))}));return a.error&&o(a.value),i.promise}});var dg=An,pg=up,vg=o,gg=ae,yg=S,mg=rd,_g=Xv,bg=pg&&pg.prototype;dg({target:"Promise",proto:!0,real:!0,forced:!!pg&&vg((function(){bg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=mg(this,gg("Promise")),n=yg(e);return this.then(n?function(n){return _g(t,e()).then((function(){return n}))}:e,n?function(n){return _g(t,e()).then((function(){throw n}))}:e)}});var kg=te.Promise,wg=Tp,Eg=lp;An({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=wg.f(this),n=Eg(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Cg=kg,xg=n(Cg),Tg=An,Sg=In,Pg=g([].reverse),Ag=[1,2];Tg({target:"Array",proto:!0,forced:String(Ag)===String(Ag.reverse())},{reverse:function(){return Sg(this)&&(this.length=this.length),Pg(this)}});var Rg=zc("Array").reverse,Ig=se,Og=Rg,Mg=Array.prototype,Lg=function(e){var t=e.reverse;return e===Mg||Ig(Mg,e)&&t===Mg.reverse?Og:t},Dg=n(Lg),Ng=An,Fg=In,Ug=_i,Hg=ee,jg=Ji,Bg=jn,Kg=Z,zg=Wn,Vg=ft,Gg=Cs,Wg=Ri("slice"),Yg=Vg("species"),Xg=Array,qg=Math.max;Ng({target:"Array",proto:!0,forced:!Wg},{slice:function(e,t){var n,i,r,o=Kg(this),a=Bg(o),s=jg(e,a),l=jg(void 0===t?a:t,a);if(Fg(o)&&(n=o.constructor,(Ug(n)&&(n===Xg||Fg(n.prototype))||Hg(n)&&null===(n=n[Yg]))&&(n=void 0),n===Xg||void 0===n))return Gg(o,s,l);for(i=new(void 0===n?Xg:n)(qg(l-s,0)),r=0;s<l;s++,r++)s in o&&zg(i,r,o[s]);return i.length=r,i}});var $g=zc("Array").slice,Zg=se,Jg=$g,Qg=Array.prototype,ey=function(e){var t=e.slice;return e===Qg||Zg(Qg,e)&&t===Qg.slice?Jg:t},ty=n(ey);function ny(){ny=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Rc||function(e,t,n){e[t]=n.value},r="function"==typeof nc?nc:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Rc(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(S){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Oc(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:b(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var h={};function f(){}function d(){}function p(){}var v={};l(v,o,(function(){return this}));var g=Fc&&Fc(Fc(x([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=p.prototype=f.prototype=Oc(v);function m(e){var t;Zc(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==wc(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function b(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return{value:void 0,done:!0}}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function w(e){var t,n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),hh(t=this.tryEntries).call(t,n)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],Zc(e).call(e,w,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return dh?dh(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Oc(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,r,o){void 0===o&&(o=xg);var a=new _(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)hh(n).call(n,i);return Dg(n).call(n),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=x,C.prototype={constructor:C,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Zc(t=this.tryEntries).call(t,E),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+ty(i).call(i,1))&&(this[i]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}var iy=qe,ry=pr;An({target:"Object",stat:!0,forced:o((function(){ry(1)}))},{keys:function(e){return ry(iy(e))}});var oy=te.Object.keys,ay=n(oy),sy=te.Object.getOwnPropertySymbols,ly=n(sy),uy=ea.filter;An({target:"Array",proto:!0,forced:!Ri("filter")},{filter:function(e){return uy(this,e,arguments.length>1?arguments[1]:void 0)}});var cy=zc("Array").filter,hy=se,fy=cy,dy=Array.prototype,py=function(e){var t=e.filter;return e===dy||hy(dy,e)&&t===dy.filter?fy:t},vy=n(py),gy={exports:{}},yy=An,my=o,_y=Z,by=P.f,ky=A;yy({target:"Object",stat:!0,forced:!ky||my((function(){by(1)})),sham:!ky},{getOwnPropertyDescriptor:function(e,t){return by(_y(e),t)}});var wy=te.Object,Ey=gy.exports=function(e,t){return wy.getOwnPropertyDescriptor(e,t)};wy.getOwnPropertyDescriptor.sham&&(Ey.sham=!0);var Cy=gy.exports,xy=n(Cy),Ty=_h,Sy=Z,Py=P,Ay=Wn;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(e){for(var t,n,i=Sy(e),r=Py.f,o=Ty(i),a={},s=0;o.length>s;)void 0!==(n=r(i,t=o[s++]))&&Ay(a,t,n);return a}});var Ry=te.Object.getOwnPropertyDescriptors,Iy=n(Ry),Oy={exports:{}},My=An,Ly=A,Dy=Xi.f;My({target:"Object",stat:!0,forced:Object.defineProperties!==Dy,sham:!Ly},{defineProperties:Dy});var Ny=te.Object,Fy=Oy.exports=function(e,t){return Ny.defineProperties(e,t)};Ny.defineProperties.sham&&(Fy.sham=!0);var Uy=Oy.exports,Hy=n(Uy),jy=ao.f("toPrimitive"),By=n(jy);function Ky(e){var t=function(e,t){if("object"!==wc(e)||null===e)return e;var n=e[By];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==wc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wc(t)?t:String(t)}function zy(e,t,n){return(t=Ky(t))in e?Rc(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vy(e,t){var n=ay(e);if(ly){var i=ly(e);t&&(i=vy(i).call(i,(function(t){return xy(e,t).enumerable}))),hh(n).apply(n,i)}return n}function Gy(e){for(var t=1;t<arguments.length;t++){var n,i,r=null!=arguments[t]?arguments[t]:{};t%2?Zc(n=Vy(Object(r),!0)).call(n,(function(t){zy(e,t,r[t])})):Iy?Hy(e,Iy(r)):Zc(i=Vy(Object(r))).call(i,(function(t){Rc(e,t,xy(r,t))}))}return e}function Wy(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(lU){return void n(lU)}s.done?t(l):xg.resolve(l).then(i,r)}function Yy(e){return function(){var t=this,n=arguments;return new xg((function(i,r){var o=e.apply(t,n);function a(e){Wy(o,i,r,a,s,"next",e)}function s(e){Wy(o,i,r,a,s,"throw",e)}a(void 0)}))}}var Xy=function(e){return e.H265="h265",e.H264="h264",e}(Xy||{}),qy=function(e){return e.Software="software",e.Hardware="hardware",e}(qy||{});An({target:"Array",stat:!0},{isArray:In});var $y=n(te.Array.isArray);function Zy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Jy=Wh,Qy=n(Jy),em=nn,tm=rf,nm=$t,im=O,rm=qe,om=function(e,t,n,i){try{return i?t(em(n)[0],n[1]):t(n)}catch(lU){tm(e,"throw",lU)}},am=jh,sm=_i,lm=jn,um=Wn,cm=Qh,hm=Wh,fm=Array,dm=function(e){var t=rm(e),n=sm(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=nm(r,i>2?arguments[2]:void 0));var a,s,l,u,c,h,f=hm(t),d=0;if(!f||this===fm&&am(f))for(a=lm(t),s=n?new this(a):fm(a);a>d;d++)h=o?r(t[d],d):t[d],um(s,d,h);else for(c=(u=cm(t,f)).next,s=n?new this:[];!(l=im(c,u)).done;d++)h=o?om(u,r,[l.value,d],!0):l.value,um(s,d,h);return s.length=d,s},pm=dm;An({target:"Array",stat:!0,forced:!Pv((function(e){Array.from(e)}))},{from:pm});var vm=te.Array.from,gm=n(vm);function ym(e,t){var n;if(e){if("string"==typeof e)return Zy(e,t);var i=ty(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?gm(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Zy(e,t):void 0}}function mm(e){return function(e){if($y(e))return Zy(e)}(e)||function(e){if(void 0!==nc&&null!=Qy(e)||null!=e["@@iterator"])return gm(e)}(e)||ym(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bm(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Rc(e,Ky(i.key),i)}}function km(e,t,n){return t&&bm(e.prototype,t),n&&bm(e,n),Rc(e,"prototype",{writable:!1}),e}var wm=An,Em=ir.indexOf,Cm=Hc,xm=E([].indexOf),Tm=!!xm&&1/xm([1],1,-0)<0;wm({target:"Array",proto:!0,forced:Tm||!Cm("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Tm?xm(this,e,t)||0:Em(this,e,t)}});var Sm=zc("Array").indexOf,Pm=se,Am=Sm,Rm=Array.prototype,Im=function(e){var t=e.indexOf;return e===Rm||Pm(Rm,e)&&t===Rm.indexOf?Am:t},Om=n(Im);function Mm(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=ay(e);for(i=0;i<o.length;i++)n=o[i],Om(t).call(t,n)>=0||(r[n]=e[n]);return r}(e,t);if(ly){var o=ly(e);for(i=0;i<o.length;i++)n=o[i],Om(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Lm=zc("Array").concat,Dm=se,Nm=Lm,Fm=Array.prototype,Um=n((function(e){var t=e.concat;return e===Fm||Dm(Fm,e)&&t===Fm.concat?Nm:t})),Hm=An,jm=ea.find,Bm="find",Km=!0;Bm in[]&&Array(1)[Bm]((function(){Km=!1})),Hm({target:"Array",proto:!0,forced:Km},{find:function(e){return jm(this,e,arguments.length>1?arguments[1]:void 0)}});var zm=zc("Array").find,Vm=se,Gm=zm,Wm=Array.prototype,Ym=n((function(e){var t=e.find;return e===Wm||Vm(Wm,e)&&t===Wm.find?Gm:t})),Xm={exports:{}},qm=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),$m=o,Zm=ee,Jm=b,Qm=qm,e_=Object.isExtensible,t_=$m((function(){e_(1)}))||Qm?function(e){return!!Zm(e)&&((!Qm||"ArrayBuffer"!=Jm(e))&&(!e_||e_(e)))}:e_,n_=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),i_=An,r_=g,o_=rr,a_=ee,s_=Je,l_=Zt.f,u_=jr,c_=zr,h_=t_,f_=n_,d_=!1,p_=it("meta"),v_=0,g_=function(e){l_(e,p_,{value:{objectID:"O"+v_++,weakData:{}}})},y_=Xm.exports={enable:function(){y_.enable=function(){},d_=!0;var e=u_.f,t=r_([].splice),n={};n[p_]=1,e(n).length&&(u_.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===p_){t(i,r,1);break}return i},i_({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c_.f}))},fastKey:function(e,t){if(!a_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s_(e,p_)){if(!h_(e))return"F";if(!t)return"E";g_(e)}return e[p_].objectID},getWeakData:function(e,t){if(!s_(e,p_)){if(!h_(e))return!0;if(!t)return!1;g_(e)}return e[p_].weakData},onFreeze:function(e){return f_&&d_&&h_(e)&&!s_(e,p_)&&g_(e),e}};o_[p_]=!0;var m_=Xm.exports,__=An,b_=r,k_=m_,w_=o,E_=yn,C_=mf,x_=qf,T_=S,S_=ee,P_=Ro,A_=Zt.f,R_=ea.forEach,I_=A,O_=Wo.set,M_=Wo.getterFor,L_=io,D_=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:L_(e,i,t[i],n);return e},N_=Hr,F_=oo,U_=D_,H_=$t,j_=qf,B_=G,K_=mf,z_=pu,V_=vu,G_=Wf,W_=A,Y_=m_.fastKey,X_=Wo.set,q_=Wo.getterFor,$_={getConstructor:function(e,t,n,i){var r=e((function(e,r){j_(e,o),X_(e,{type:t,index:N_(null),first:void 0,last:void 0,size:0}),W_||(e.size=0),B_(r)||K_(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=q_(t),s=function(e,t,n){var i,r,o=a(e),s=l(e,t);return s?s.value=n:(o.last=s={index:r=Y_(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),W_?o.size++:e.size++,"F"!==r&&(o.index[r]=s)),e},l=function(e,t){var n,i=a(e),r=Y_(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return U_(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,W_?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),i=l(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),W_?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=a(this),i=H_(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),U_(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),W_&&F_(o,"size",{configurable:!0,get:function(){return a(this).size}}),r},setStrong:function(e,t,n){var i=t+" Iterator",r=q_(t),o=q_(i);z_(e,t,(function(e,t){X_(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?V_("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,V_(void 0,!0))}),n?"entries":"values",!n,!0),G_(t)}};(function(e,t,n){var i,r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",s=b_[e],l=s&&s.prototype,u={};if(I_&&T_(s)&&(o||l.forEach&&!w_((function(){(new s).entries().next()})))){var c=(i=t((function(t,n){O_(x_(t,c),{type:e,collection:new s}),null!=n&&C_(n,t[a],{that:t,AS_ENTRIES:r})}))).prototype,h=M_(e);R_(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||E_(c,e,(function(n,i){var r=h(this).collection;if(!t&&o&&!S_(n))return"get"==e&&void 0;var a=r[e](0===n?0:n,i);return t?this:a}))})),o||A_(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(t,e,r,a),k_.enable();P_(i,e,!1,!0),u[e]=i,__({global:!0,forced:!0},u),o||n.setStrong(i,e,r)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$_);var Z_=te.Map,J_=$t,Q_=O,eb=Ie,tb=Qf,nb=G,ib=mf,rb=[].push,ob=function(e){var t,n,i,r,o=arguments.length,a=o>1?arguments[1]:void 0;return tb(this),(t=void 0!==a)&&eb(a),nb(e)?new this:(n=[],t?(i=0,r=J_(a,o>2?arguments[2]:void 0),ib(e,(function(e){Q_(rb,n,r(e,i++))}))):ib(e,rb,{that:n}),new this(n))};An({target:"Map",stat:!0,forced:!0},{from:ob});var ab=Cs,sb=function(){return new this(ab(arguments))};An({target:"Map",stat:!0,forced:!0},{of:sb});var lb=Se,ub=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(lb(e)+" is not a map")},cb=function(e,t){return 1==t?function(t,n){return t[e](n)}:function(t,n,i){return t[e](n,i)}},hb=ae("Map"),fb={Map:hb,set:cb("set",2),get:cb("get",1),has:cb("has",1),remove:cb("delete",1),proto:hb.prototype},db=ub,pb=fb.remove;An({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=db(this),n=!0,i=0,r=arguments.length;i<r;i++)e=pb(t,arguments[i]),n=n&&e;return!!n}});var vb=ub,gb=fb.get,yb=fb.has,mb=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,i,r=vb(this);return yb(r,e)?(n=gb(r,e),"update"in t&&(n=t.update(n,e,r),mb(r,e,n)),n):(i=t.insert(e,r),mb(r,e,i),i)}});var _b=O,bb=function(e,t,n){for(var i,r,o=n||e.next;!(i=_b(o,e)).done;)if(void 0!==(r=t(i.value)))return r},kb=function(e,t,n){return n?bb(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},wb=$t,Eb=ub,Cb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=Eb(this),n=wb(e,arguments.length>1?arguments[1]:void 0);return!1!==Cb(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}});var xb=$t,Tb=ub,Sb=kb,Pb=fb.Map,Ab=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Tb(this),n=xb(e,arguments.length>1?arguments[1]:void 0),i=new Pb;return Sb(t,(function(e,r){n(e,r,t)&&Ab(i,r,e)})),i}});var Rb=$t,Ib=ub,Ob=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Ib(this),n=Rb(e,arguments.length>1?arguments[1]:void 0),i=Ob(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}});var Mb=$t,Lb=ub,Db=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Lb(this),n=Mb(e,arguments.length>1?arguments[1]:void 0),i=Db(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}});var Nb=An,Fb=O,Ub=S,Hb=Ie,jb=mf,Bb=fb.Map,Kb=g([].push);Nb({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var n=new(Ub(this)?this:Bb);Hb(t);var i=Hb(n.has),r=Hb(n.get),o=Hb(n.set);return jb(e,(function(e){var a=t(e);Fb(i,n,a)?Kb(Fb(r,n,a),e):Fb(o,n,a,[e])})),n}});var zb=function(e,t){return e===t||e!=e&&t!=t},Vb=ub,Gb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===Gb(Vb(this),(function(t){if(zb(t,e))return!0}),!0)}});var Wb=O,Yb=mf,Xb=S,qb=Ie,$b=fb.Map;An({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(Xb(this)?this:$b);qb(t);var i=qb(n.set);return Yb(e,(function(e){Wb(i,n,t(e),e)})),n}});var Zb=ub,Jb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=Jb(Zb(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}});var Qb=$t,ek=ub,tk=kb,nk=fb.Map,ik=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=ek(this),n=Qb(e,arguments.length>1?arguments[1]:void 0),i=new nk;return tk(t,(function(e,r){ik(i,n(e,r,t),e)})),i}});var rk=$t,ok=ub,ak=kb,sk=fb.Map,lk=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=ok(this),n=rk(e,arguments.length>1?arguments[1]:void 0),i=new sk;return ak(t,(function(e,r){lk(i,r,n(e,r,t))})),i}});var uk=ub,ck=mf,hk=fb.set;An({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=uk(this),n=arguments.length,i=0;i<n;)ck(arguments[i++],(function(e,n){hk(t,e,n)}),{AS_ENTRIES:!0});return t}});var fk=Ie,dk=ub,pk=kb,vk=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=dk(this),n=arguments.length<2,i=n?void 0:arguments[1];if(fk(e),pk(t,(function(r,o){n?(n=!1,i=r):i=e(i,r,o,t)})),n)throw vk("Reduce of empty map with no initial value");return i}});var gk=$t,yk=ub,mk=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=yk(this),n=gk(e,arguments.length>1?arguments[1]:void 0);return!0===mk(t,(function(e,i){if(n(e,i,t))return!0}),!0)}});var _k=Ie,bk=ub,kk=TypeError,wk=fb.get,Ek=fb.has,Ck=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=bk(this),i=arguments.length;_k(t);var r=Ek(n,e);if(!r&&i<3)throw kk("Updating absent value");var o=r?wk(n,e):_k(i>2?arguments[2]:void 0)(e,n);return Ck(n,e,t(o,e,n)),n}});var xk=O,Tk=Ie,Sk=S,Pk=nn,Ak=TypeError,Rk=function(e,t){var n,i=Pk(this),r=Tk(i.get),o=Tk(i.has),a=Tk(i.set),s=arguments.length>2?arguments[2]:void 0;if(!Sk(t)&&!Sk(s))throw Ak("At least one callback required");return xk(o,i,e)?(n=xk(r,i,e),Sk(t)&&(n=t(n),xk(a,i,e,n))):Sk(s)&&(n=s(),xk(a,i,e,n)),n};An({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Rk}),An({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Rk});var Ik=Z_,Ok=n(Ik),Mk=n(Ik),Lk=ea.map;An({target:"Array",proto:!0,forced:!Ri("map")},{map:function(e){return Lk(this,e,arguments.length>1?arguments[1]:void 0)}});var Dk=zc("Array").map,Nk=se,Fk=Dk,Uk=Array.prototype,Hk=n((function(e){var t=e.map;return e===Uk||Nk(Uk,e)&&t===Uk.map?Fk:t})),jk=n(Cg),Bk=n(Im),Kk=n(oy),zk=n(ey),Vk=Se,Gk=TypeError,Wk=function(e,t){if(!delete e[t])throw Gk("Cannot delete property "+Vk(t)+" of "+Vk(e))},Yk=An,Xk=qe,qk=Ji,$k=Dn,Zk=jn,Jk=nh,Qk=Kn,ew=Ti,tw=Wn,nw=Wk,iw=Ri("splice"),rw=Math.max,ow=Math.min;Yk({target:"Array",proto:!0,forced:!iw},{splice:function(e,t){var n,i,r,o,a,s,l=Xk(this),u=Zk(l),c=qk(e,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=ow(rw($k(t),0),u-c)),Qk(u+n-i),r=ew(l,i),o=0;o<i;o++)(a=c+o)in l&&tw(r,o,l[a]);if(r.length=i,n<i){for(o=c;o<u-i;o++)s=o+n,(a=o+i)in l?l[s]=l[a]:nw(l,s);for(o=u;o>u-i+n;o--)nw(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)s=o+n-1,(a=o+i-1)in l?l[s]=l[a]:nw(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Jk(l,u-i+n),r}});var aw=zc("Array").splice,sw=se,lw=aw,uw=Array.prototype,cw=n((function(e){var t=e.splice;return e===uw||sw(uw,e)&&t===uw.splice?lw:t}));An({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var hw=n(te.Number.isNaN),fw="\t\n\v\f\r \u2028\u2029\ufeff",dw=X,pw=Yi,vw=fw,gw=g("".replace),yw=RegExp("^["+vw+"]+"),mw=RegExp("(^|[^"+vw+"])["+vw+"]+$"),_w=function(e){return function(t){var n=pw(dw(t));return 1&e&&(n=gw(n,yw,"")),2&e&&(n=gw(n,mw,"$1")),n}},bw={start:_w(1),end:_w(2),trim:_w(3)},kw=r,ww=o,Ew=g,Cw=Yi,xw=bw.trim,Tw=fw,Sw=kw.parseInt,Pw=kw.Symbol,Aw=Pw&&Pw.iterator,Rw=/^[+-]?0x/i,Iw=Ew(Rw.exec),Ow=8!==Sw(Tw+"08")||22!==Sw(Tw+"0x16")||Aw&&!ww((function(){Sw(Object(Aw))}))?function(e,t){var n=xw(Cw(e));return Sw(n,t>>>0||(Iw(Rw,n)?16:10))}:Sw;An({global:!0,forced:parseInt!=Ow},{parseInt:Ow});var Mw=n(te.parseInt),Lw=zc("Array").keys,Dw=ti,Nw=Je,Fw=se,Uw=Lw,Hw=Array.prototype,jw={DOMTokenList:!0,NodeList:!0},Bw=n((function(e){var t=e.keys;return e===Hw||Fw(Hw,e)&&t===Hw.keys||Nw(jw,Dw(e))?Uw:t})),Kw=n(py),zw=A,Vw=g,Gw=O,Ww=o,Yw=pr,Xw=to,qw=M,$w=qe,Zw=V,Jw=Object.assign,Qw=Object.defineProperty,eE=Vw([].concat),tE=!Jw||Ww((function(){if(zw&&1!==Jw({b:1},Jw(Qw({},"a",{enumerable:!0,get:function(){Qw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=Jw({},e)[n]||Yw(Jw({},t)).join("")!=i}))?function(e,t){for(var n=$w(e),i=arguments.length,r=1,o=Xw.f,a=qw.f;i>r;)for(var s,l=Zw(arguments[r++]),u=o?eE(Yw(l),o(l)):Yw(l),c=u.length,h=0;c>h;)s=u[h++],zw&&!Gw(a,l,s)||(n[s]=l[s]);return n}:Jw,nE=tE;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==nE},{assign:nE});var iE=n(te.Object.assign),rE=n(sy),oE=n(Cy),aE=n(Ry),sE=n(Uy),lE=n(Ac),uE=n(tc),cE=n(bc),hE=n(fh),fE=n(Nc),dE=g,pE=Ie,vE=ee,gE=Je,yE=Cs,mE=a,_E=Function,bE=dE([].concat),kE=dE([].join),wE={},EE=mE?_E.bind:function(e){var t=pE(this),n=t.prototype,i=yE(arguments,1),r=function(){var n=bE(i,yE(arguments));return this instanceof r?function(e,t,n){if(!gE(wE,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";wE[t]=_E("C,a","return new C("+kE(i,",")+")")}return wE[t](e,n)}(t,n.length,n):t.apply(e,n)};return vE(n)&&(r.prototype=n),r},CE=An,xE=h,TE=EE,SE=Qf,PE=nn,AE=ee,RE=Hr,IE=o,OE=ae("Reflect","construct"),ME=Object.prototype,LE=[].push,DE=IE((function(){function e(){}return!(OE((function(){}),[],e)instanceof e)})),NE=!IE((function(){OE((function(){}))})),FE=DE||NE;CE({target:"Reflect",stat:!0,forced:FE,sham:FE},{construct:function(e,t){SE(e),PE(t);var n=arguments.length<3?e:SE(arguments[2]);if(NE&&!DE)return OE(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return xE(LE,i,t),new(xE(TE,e,i))}var r=n.prototype,o=RE(AE(r)?r:ME),a=xE(e,o,t);return AE(a)?a:o}});var UE=te.Reflect.construct,HE=n(UE),jE=n(UE),BE=Je,KE=O,zE=ee,VE=nn,GE=function(e){return void 0!==e&&(BE(e,"value")||BE(e,"writable"))},WE=P,YE=xl;An({target:"Reflect",stat:!0},{get:function e(t,n){var i,r,o=arguments.length<3?t:arguments[2];return VE(t)===o?t[n]:(i=WE.f(t,n))?GE(i)?i.value:void 0===i.get?void 0:KE(i.get,o):zE(r=YE(t))?e(r,n,o):void 0}});var XE=te.Reflect.get,qE=n(XE),$E=n(XE),ZE=n(Jy),JE=n(vm),QE=n(jy);function eC(e,t){var n=Kk(e);if(rE){var i=rE(e);t&&(i=Kw(i).call(i,(function(t){return oE(e,t).enumerable}))),n.push.apply(n,i)}return n}function tC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach((function(t){aC(e,t,n[t])})):aE?sE(e,aE(n)):eC(Object(n)).forEach((function(t){lE(e,t,oE(n,t))}))}return e}function nC(e){return(nC="function"==typeof uE&&"symbol"==typeof cE?function(e){return typeof e}:function(e){return e&&"function"==typeof uE&&e.constructor===uE&&e!==uE.prototype?"symbol":typeof e})(e)}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rC(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),lE(e,gC(i.key),i)}}function oC(e,t,n){return t&&rC(e.prototype,t),n&&rC(e,n),lE(e,"prototype",{writable:!1}),e}function aC(e,t,n){return(t=gC(t))in e?lE(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lE(e,"prototype",{writable:!1}),t&&uC(e,t)}function lC(e){return(lC=hE?fE.bind():function(e){return e.__proto__||fE(e)})(e)}function uC(e,t){return(uC=hE?hE.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hC(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cC(e)}function fC(e){var t=function(){if("undefined"==typeof Reflect||!jE)return!1;if(jE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(jE(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=lC(e);if(t){var r=lC(this).constructor;n=jE(i,arguments,r)}else n=i.apply(this,arguments);return hC(this,n)}}function dC(){return dC="undefined"!=typeof Reflect&&$E?$E.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=lC(e)););return e}(e,t);if(i){var r=oE(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},dC.apply(this,arguments)}function pC(e){return function(e){if(Array.isArray(e))return vC(e)}(e)||function(e){if(void 0!==uE&&null!=ZE(e)||null!=e["@@iterator"])return JE(e)}(e)||function(e,t){var n;if(!e)return;if("string"==typeof e)return vC(e,t);var i=zk(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return JE(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return vC(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function gC(e){var t=function(e,t){if("object"!==wc(e)||null===e)return e;var n=e[QE];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==wc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wc(t)?t:String(t)}var yC={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new r(i,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?zk(i).call(i,1):i);return rE?Um(r).call(r,rE(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,a=new Array(o);r<o;r++)a[r]=i[r].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,t,i,r,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,o),!0;case 6:return c.fn.call(c.context,t,i,r,o,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,r);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,i,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||r&&!s.once||i&&s.context!==i||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||r&&!s[l].once||i&&s[l].context!==i)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(yC);var mC=yC.exports,_C=n(mC),bC=Dn,kC=Yi,wC=X,EC=RangeError,CC=function(e){var t=kC(wC(this)),n="",i=bC(e);if(i<0||i==1/0)throw EC("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n},xC=g,TC=Un,SC=Yi,PC=X,AC=xC(CC),RC=xC("".slice),IC=Math.ceil,OC=function(e){return function(t,n,i){var r,o,a=SC(PC(t)),s=TC(n),l=a.length,u=void 0===i?" ":SC(i);return s<=l||""==u?a:((o=AC(u,IC((r=s-l)/u.length))).length>r&&(o=RC(o,0,r)),e?a+o:o+a)}},MC={start:OC(!1),end:OC(!0)},LC=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),DC=MC.start;An({target:"String",proto:!0,forced:LC},{padStart:function(e){return DC(this,e,arguments.length>1?arguments[1]:void 0)}});var NC=zc("String").padStart,FC=se,UC=NC,HC=String.prototype,jC=n((function(e){var t=e.padStart;return"string"==typeof e||e===HC||FC(HC,e)&&t===HC.padStart?UC:t})),BC=r,KC=o,zC=Yi,VC=bw.trim,GC=fw,WC=g("".charAt),YC=BC.parseFloat,XC=BC.Symbol,qC=XC&&XC.iterator,$C=1/YC(GC+"-0")!=-1/0||qC&&!KC((function(){YC(Object(qC))}))?function(e){var t=VC(zC(e)),n=YC(t);return 0===n&&"-"==WC(t,0)?-0:n}:YC;An({global:!0,forced:parseFloat!=$C},{parseFloat:$C});var ZC=n(te.parseFloat),JC=gl.PROPER,QC=o,ex=fw,tx=bw.trim;An({target:"String",proto:!0,forced:function(e){return QC((function(){return!!ex[e]()||"
"!=="
"[e]()||JC&&ex[e].name!==e}))}("trim")},{trim:function(){return tx(this)}});var nx=zc("String").trim,ix=se,rx=nx,ox=String.prototype,ax=n((function(e){var t=e.trim;return"string"==typeof e||e===ox||ix(ox,e)&&t===ox.trim?rx:t})),sx=qr,lx=Math.floor,ux=function(e,t){var n=e.length,i=lx(n/2);return n<8?cx(e,t):hx(e,ux(sx(e,0,i),t),ux(sx(e,i),t),t)},cx=function(e,t){for(var n,i,r=e.length,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},hx=function(e,t,n,i){for(var r=t.length,o=n.length,a=0,s=0;a<r||s<o;)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e},fx=ux,dx=le.match(/firefox\/(\d+)/i),px=!!dx&&+dx[1],vx=/MSIE|Trident/.test(le),gx=le.match(/AppleWebKit\/(\d+)\./),yx=!!gx&&+gx[1],mx=An,_x=g,bx=Ie,kx=qe,wx=jn,Ex=Wk,Cx=Yi,xx=o,Tx=fx,Sx=Hc,Px=px,Ax=vx,Rx=ve,Ix=yx,Ox=[],Mx=_x(Ox.sort),Lx=_x(Ox.push),Dx=xx((function(){Ox.sort(void 0)})),Nx=xx((function(){Ox.sort(null)})),Fx=Sx("sort"),Ux=!xx((function(){if(Rx)return Rx<70;if(!(Px&&Px>3)){if(Ax)return!0;if(Ix)return Ix<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Ox.push({k:t+i,v:n})}for(Ox.sort((function(e,t){return t.v-e.v})),i=0;i<Ox.length;i++)t=Ox[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));mx({target:"Array",proto:!0,forced:Dx||!Nx||!Fx||!Ux},{sort:function(e){void 0!==e&&bx(e);var t=kx(this);if(Ux)return void 0===e?Mx(t):Mx(t,e);var n,i,r=[],o=wx(t);for(i=0;i<o;i++)i in t&&Lx(r,t[i]);for(Tx(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Cx(t)>Cx(n)?1:-1}}(e)),n=wx(r),i=0;i<n;)t[i]=r[i++];for(;i<o;)Ex(t,i++);return t}});var Hx,jx=zc("Array").sort,Bx=se,Kx=jx,zx=Array.prototype,Vx=n((function(e){var t=e.sort;return e===zx||Bx(zx,e)&&t===zx.sort?Kx:t})),Gx="undefined"!=typeof window&&window.location&&Bk(Hx=window.location.href).call(Hx,"xgplayerdebugger=1")>-1,Wx="color: #525252; background-color: #90ee90;",Yx="color: #525252; background-color: red;",Xx="color: #525252; background-color: yellow; ",qx="%c[xgplayer]",$x={config:{debug:Gx?3:0},logInfo:function(e){for(var t,n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];this.config.debug>=3&&(n=console).log.apply(n,Um(t=[qx,Wx,e]).call(t,r))},logWarn:function(e){for(var t,n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];this.config.debug>=1&&(n=console).warn.apply(n,Um(t=[qx,Xx,e]).call(t,r))},logError:function(e){var t,n;if(!(this.config.debug<1)){for(var i=this.config.debug>=2?"trace":"error",r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];(n=console)[i].apply(n,Um(t=[qx,Yx,e]).call(t,o))}}};var Zx=function(){function e(t){iC(this,e),this.bufferedList=t}return oC(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),Jx={};function Qx(e){var t=nC(e);return null!==e&&("object"===t||"function"===t)}function eT(e,t,n){var i,r,o,a,s,l,u=0,c=!1,h=!1,f=!0,d=!t&&0!==t&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,u=t,a=e.apply(o,n)}function v(e,t){return d?(window.cancelAnimationFrame(s),window.requestAnimationFrame(e)):setTimeout(e,t)}function g(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=o}function y(){var e=Date.now();if(g(e))return m(e);s=v(y,function(e){var n=e-u,i=t-(e-l);return h?Math.min(i,o-n):i}(e))}function m(e){return s=void 0,f&&i?p(e):(i=r=void 0,a)}function _(){for(var e=Date.now(),n=g(e),o=arguments.length,f=new Array(o),d=0;d<o;d++)f[d]=arguments[d];if(i=f,r=this,l=e,n){if(void 0===s)return function(e){return u=e,s=v(y,t),c?p(e):a}(l);if(h)return s=v(y,t),p(l)}return void 0===s&&(s=v(y,t)),a}return t=+t||0,Qx(n)&&(c=!!n.leading,o=(h="maxWait"in n)?Math.max(+n.maxWait||0,t):o,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==s&&function(e){if(d)return window.cancelAnimationFrame(e);clearTimeout(e)}(s),u=0,i=l=r=s=void 0},_.flush=function(){return void 0===s?a:m(Date.now())},_.pending=function(){return void 0!==s},_}function tT(){var e=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return"zh-cn"===e&&(e="zh"),e}Jx.createDom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement(e);return r.className=i,r.innerHTML=t,Kk(n).forEach((function(t){var i=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&r.setAttribute(i,o):r.setAttribute(i,o)})),r},Jx.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var i=document.createElement("div");i.innerHTML=e;var r=i.children;return i=null,r.length>0?(r=r[0],n&&Jx.addClass(r,n),t&&Kk(t).forEach((function(e){r.setAttribute(e,t[e])})),r):null}catch(o){return $x.logError("util.createDomFromHtml",o),null}},Jx.hasClass=function(e,t){if(!e||!t)return!1;try{return Array.prototype.some.call(e.classList,(function(e){return e===t}))}catch(i){var n=e.className&&"object"===nC(e.className)?e.getAttribute("class"):e.className;return n&&!!n.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},Jx.addClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)}))}catch(n){Jx.hasClass(e,t)||(e.className&&"object"===nC(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},Jx.removeClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.remove(t)}))}catch(n){Jx.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===nC(e.className)?e.setAttribute("class",e.getAttribute("class").replace(n," ")):e.className=e.className.replace(n," ")}))}},Jx.toggleClass=function(e,t){e&&t.split(/\s+/g).forEach((function(t){Jx.hasClass(e,t)?Jx.removeClass(e,t):Jx.addClass(e,t)}))},Jx.classNames=function(){for(var e=arguments,t=[],n=function(n){if("String"===Jx.typeOf(e[n]))t.push(e[n]);else if("Object"===Jx.typeOf(e[n])){var i;Hk(i=Kk(e[n])).call(i,(function(i){e[n][i]&&t.push(i)}))}},i=0;i<arguments.length;i++)n(i);return t.join(" ")},Jx.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(n)}catch(i){$x.logError("util.findDom",i),0===Bk(n).call(n,"#")&&(e=t.getElementById(zk(n).call(n,1)))}return e},Jx.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},Jx.padStart=function(e,t,n){for(var i=String(n),r=t>>0,o=Math.ceil(r/i.length),a=[],s=String(e);o--;)a.push(i);return a.join("").substring(0,r-s.length)+s},Jx.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=jC(Jx).call(Jx,Math.floor(e/3600),2,0),n=jC(Jx).call(Jx,Math.floor((e-3600*t)/60),2,0),i=jC(Jx).call(Jx,Math.floor(e-3600*t-60*n),2,0);return("00"===t?[n,i]:[t,n,i]).join(":")},Jx.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},Jx.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},Jx.deepCopy=function(e,t){if("Object"===Jx.typeOf(t)&&"Object"===Jx.typeOf(e))return Kk(t).forEach((function(n){if("Object"!==Jx.typeOf(t[n])||t[n]instanceof Node)if("Array"===Jx.typeOf(t[n])){var i;e[n]="Array"===Jx.typeOf(e[n])?Um(i=e[n]).call(i,t[n]):t[n]}else e[n]=t[n];else void 0===e[n]||void 0===e[n]?e[n]=t[n]:Jx.deepCopy(e[n],t[n])})),e},Jx.deepMerge=function(e,t){var n;return Hk(n=Kk(t)).call(n,(function(n){var i;"Array"===Jx.typeOf(t[n])&&"Array"===Jx.typeOf(e[n])?"Array"===Jx.typeOf(e[n])&&(i=e[n]).push.apply(i,pC(t[n])):Jx.typeOf(e[n])!==Jx.typeOf(t[n])||null===e[n]||"Object"!==Jx.typeOf(e[n])||t[n]instanceof window.Node?null!==t[n]&&(e[n]=t[n]):Jx.deepMerge(e[n],t[n])})),e},Jx.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href},Jx.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},Jx.setInterval=function(e,t,n,i){e._interval[t]||(e._interval[t]=window.setInterval(n.bind(e),i))},Jx.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},Jx.setTimeout=function(e,t,n){e._timers||(e._timers=[]);var i=setTimeout((function(){t(),Jx.clearTimeout(e,i)}),n);return e._timers.push(i),i},Jx.clearTimeout=function(e,t){var n=e._timers;if("Array"===Jx.typeOf(n)){for(var i=0;i<n.length;i++)if(n[i]===t){cw(n).call(n,i,1),clearTimeout(t);break}}else clearTimeout(t)},Jx.clearAllTimers=function(e){var t=e._timers;"Array"===Jx.typeOf(t)&&(Hk(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},Jx.createImgBtn=function(e,t,n,i){var r,o,a,s,l,u,c,h,f,d,p,v=Jx.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(v.style.backgroundImage='url("'.concat(t,'")'),n&&i)&&(["px","rem","em","pt","dp","vw","vh","vm","%"].every((function(e){var t,r;return!(Bk(n).call(n,e)>-1&&Bk(i).call(i,e)>-1)||(u=ZC(ax(t=zk(n).call(n,0,Bk(n).call(n,e))).call(t)),c=ZC(ax(r=zk(i).call(i,0,Bk(i).call(i,e))).call(r)),h=e,!1)})),v.style.width=Um(r="".concat(u)).call(r,h),v.style.height=Um(o="".concat(c)).call(o,h),v.style.backgroundSize=Um(a=Um(s=Um(l="".concat(u)).call(l,h," ")).call(s,c)).call(a,h),v.style.margin="start"===e?Um(f=Um(d=Um(p="-".concat(c/2)).call(p,h," auto auto -")).call(d,u/2)).call(f,h):"auto 5px auto 5px");return v},Jx.Hex2RGBA=function(e,t){var n,i=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var r="#";e.replace(/[0-9A-F]/gi,(function(e){r+=e+e})),e=r}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){i.push(Mw(e,16))})),Um(n="rgba(".concat(i.join(","),", ")).call(n,t,")")):"rgba(255, 255, 255, 0.1)"},Jx.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},Jx.checkIsFunction=function(e){return e&&"function"==typeof e},Jx.checkIsObject=function(e){return null!==e&&"object"===nC(e)},Jx.hide=function(e){e.style.display="none"},Jx.show=function(e,t){e.style.display=t||"block"},Jx.isUndefined=function(e){if(null==e)return!0},Jx.isNotNull=function(e){return!(null==e)},Jx.setStyleFromCsstext=function(e,t){if(t)if("String"===Jx.typeOf(t)){var n=t.replace(/\s+/g,"").split(";");Hk(n).call(n,(function(t){if(t){var n=t.split(":");n.length>1&&(e.style[n[0]]=n[1])}}))}else{var i;Hk(i=Kk(t)).call(i,(function(n){e.style[n]=t[n]}))}},Jx.filterStyleFromText=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],i=e.style.cssText;if(!i)return{};var r=i.replace(/\s+/g,"").split(";"),o={},a={};return Hk(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var n=0,i=t.length;n<i;n++)if(Bk(e).call(e,t[n])>-1)return!0;return!1}(t[0],n)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),Hk(t=Kk(a)).call(t,(function(t){e.style[t]=a[t]})),o},Jx.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var n=t.replace(/\s+/g,"").split(";"),i={};return Hk(n).call(n,(function(e){if(e){var t=e.split(":");t.length>1&&(i[t[0]]=t[1])}})),i},Jx.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var i=new window.Image;i.onload=function(e){i=null,t&&t(e)},i.onerror=function(e){i=null,n&&n(e)},i.src=e}},Jx.stopPropagation=function(e){e&&e.stopPropagation()},Jx.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Jx.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},Jx.checkTouchSupport=function(){return"ontouchstart"in window},Jx.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=[],i=0;i<e.length;i++)n.push({start:e.start(i)<.5?0:e.start(i),end:e.end(i)});Vx(n).call(n,(function(e,t){var n=e.start-t.start;return n||t.end-e.end}));var r=[];if(t)for(var o=0;o<n.length;o++){var a=r.length;if(a){var s=r[a-1].end;n[o].start-s<t?n[o].end>s&&(r[a-1].end=n[o].end):r.push(n[o])}else r.push(n[o])}else r=n;return new Zx(r)},Jx.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},Jx.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},Jx.getHostFromUrl=function(e){if("String"!==Jx.typeOf(e))return"";var t=e.split("/"),n="";return t.length>3&&t[2]&&(n=t[2]),n},Jx.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},Jx.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},Jx.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},Jx.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Mw(e)}catch(n){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Mw(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))},Jx.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},Jx.adjustTimeByDuration=function(e,t,n){return t&&e&&(e>t||n&&e<t)?t:e},Jx.createPositionBar=function(e,t){var n=Jx.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(n),n},Jx.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i={scale:"".concat(t.scale||1),translate:Um(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")};return Kk(i).forEach((function(e){var t,r=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=Um(t="".concat(e,"(")).call(t,i[e],")");r.test(n)?(r.lastIndex=-1,n=n.replace(r,o)):n+="".concat(o," ")})),n},Jx.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},Jx.getIndexByTime=function(e,t){var n=t.length,i=-1;if(n<1)return i;if(e<=t[0].end||n<2)i=0;else if(e>t[n-1].end)i=n-1;else for(var r=1;r<n;r++)if(e>t[r-1].end&&e<=t[r].end){i=r;break}return i},Jx.getOffsetCurrentTime=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=-1;if((i=n>=0&&n<t.length?n:Jx.getIndexByTime(e,t))<0)return-1;var r=t.length,o=t[i],a=o.start,s=o.end,l=o.cTime,u=o.offset;return e<a?l:e>=a&&e<=s?e-u:e>s&&i>=r-1?s:-1},Jx.getCurrentTimeByOffset=function(e,t){var n=-1;if(!t||t.length<0)return e;for(var i=0;i<t.length;i++)if(e<=t[i].duration){n=i;break}if(-1!==n){var r=t[n].start;return n-1<0?r+e:r+(e-t[n-1].duration)}return e};var nT=/(Android)\s([\d.]+)/,iT=/(Version)\/([\d.]+)/,rT=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],oT={get device(){return oT.os.isPc?"pc":"mobile"},get browser(){var e,t;if("undefined"==typeof navigator)return"";var n=navigator.userAgent.toLowerCase(),i={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return Um(e=[]).call(e,Kw(t=Kk(i)).call(t,(function(e){return i[e].test(n)})))[0]},get os(){if("undefined"==typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,i=/(?:Android)/.test(e),r=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=o||i&&!/(?:Mobile)/.test(e)||r&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:o,isIos:s||o,isAndroid:i,isPc:!(s||i||n||a),isSymbian:n,isWindowsPhone:t,isFireFox:r}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",n=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?iT:nT)?t.exec(e):[];if(n&&n.length>=3){var i=n[2].split(".");return i.length>0?Mw(i[0]):0}return 0},get isWeixin(){if("undefined"==typeof navigator)return!1;return!!/(micromessenger)\/([\d.]+)/.exec(navigator.userAgent.toLocaleLowerCase())},isSupportMP4:function(){var e={isSupport:!1,mime:""};if("undefined"==typeof document)return e;if(this.supportResult)return this.supportResult;var t=document.createElement("video");return"function"==typeof t.canPlayType&&Hk(rT).call(rT,(function(n){"probably"===t.canPlayType('video/mp4; codecs="'.concat(n,'"'))&&(e.isSupport=!0,e.mime+="||".concat(n))})),this.supportResult=e,t=null,e},isMSESupport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if("undefined"==typeof MediaSource||!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(lU){return this._logger.error(e,lU),!1}},isHevcSupported:function(){return!("undefined"==typeof MediaSource||!MediaSource.isTypeSupported)&&(MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))},probeConfigSupported:function(e){var t={supported:!1,smooth:!1,powerEfficient:!1};if(!e||"undefined"==typeof navigator)return jk.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var n=e.video||{},i=e.audio||{};try{var r=MediaSource.isTypeSupported(n.contentType),o=MediaSource.isTypeSupported(i.contentType);return jk.resolve({supported:r&&o,smooth:!1,powerEfficient:!1})}catch(a){return jk.resolve(t)}}},aT="3.0.21-rc.21",sT={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},lT={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},uT=oC((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};iC(this,e);var i=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var r,o=n.mediaError?n.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,l=t.ended,u=t.src,c=t.currentSrc,h=t.media,f=h.readyState,d=h.networkState,p=n.errorCode||o.code;lT[p]&&(p=lT[p]);var v={playerVersion:aT,currentTime:s,duration:a,ended:l,readyState:f,networkState:d,src:u||c,errorType:n.errorType,errorCode:p,message:n.errorMessage||o.message,mediaError:o,originError:n.originError?n.originError.stack:"",host:Jx.getHostFromUrl(u||c)};return n.ext&&Hk(r=Kk(n.ext)).call(r,(function(e){v[e]=n.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:aT,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=i?(i[arguments[0]]||{}).msg:"",g}})),cT="play",hT="ended",fT="pause",dT="error",pT="seeked",vT="timeupdate",gT="waiting",yT="canplay",mT="durationchange",_T="volumechange",bT="loadeddata",kT="emptied",wT="focus",ET="blur",CT="ready",xT="urlNull",TT="autoplay_started",ST="autoplay_was_prevented",PT="complete",AT="replay",RT="destroy",IT="urlchange",OT="download_speed_change",MT="leaveplayer",LT="enterplayer",DT="loading",NT="fullscreen_change",FT="cssFullscreen_change",UT="mini_state_change",HT="definition_change",jT="before_definition_change",BT="after_definition_change",KT="retry",zT="video_resize",VT="pip_change",GT="playnext",WT="shortcut",YT="user_action",XT="reset",qT="source_error",$T="source_success",ZT=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],JT=Object.freeze({__proto__:null,ABORT:"abort",AFTER_DEFINITION_CHANGE:BT,AUTOPLAY_PREVENTED:ST,AUTOPLAY_STARTED:TT,BEFORE_DEFINITION_CHANGE:jT,BUFFER_CHANGE:"bufferedChange",CANPLAY:yT,CANPLAY_THROUGH:"canplaythrough",COMPLETE:PT,CSS_FULLSCREEN_CHANGE:FT,DEFINITION_CHANGE:HT,DESTROY:RT,DOWNLOAD_SPEED_CHANGE:OT,DURATION_CHANGE:mT,EMPTIED:kT,ENDED:hT,ENTER_PLAYER:LT,ERROR:dT,FPS_STUCK:"fps_stuck",FULLSCREEN_CHANGE:NT,LEAVE_PLAYER:MT,LOADED_DATA:bT,LOADED_METADATA:"loadedmetadata",LOADING:DT,LOAD_START:"loadstart",MINI_STATE_CHANGE:UT,PAUSE:fT,PIP_CHANGE:VT,PLAY:cT,PLAYER_BLUR:ET,PLAYER_FOCUS:wT,PLAYING:"playing",PLAYNEXT:GT,PROGRESS:"progress",RATE_CHANGE:"ratechange",READY:CT,REPLAY:AT,RESET:XT,RETRY:KT,ROTATE:"rotate",SCREEN_SHOT:"screenShot",SEEKED:pT,SEEKING:"seeking",SEI_PARSED:"SEI_PARSED",SHORTCUT:WT,SOURCE_ERROR:qT,SOURCE_SUCCESS:$T,STALLED:"stalled",STATS_EVENTS:{STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},SUSPEND:"suspend",SWITCH_SUBTITLE:"switch_subtitle",TIME_UPDATE:vT,URL_CHANGE:IT,URL_NULL:xT,USER_ACTION:YT,VIDEO_EVENTS:ZT,VIDEO_RESIZE:zT,VOLUME_CHANGE:_T,WAITING:gT,XGLOG:"xglog"});function QT(e,t){this&&this.emit&&("error"===e?this.errorHandler(e,t.error):this.emit(e,t))}var eS=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n),(i=t.call(this,e))._hasStart=!1,i._currentTime=0,i._duration=0,i._internalOp={},i._lastMuted=!1,i.vtype="MP4",i._rate=-1,i.mediaConfig=iE({},{controls:!1,autoplay:e.autoplay,playsinline:e.playsinline,"x5-playsinline":e.playsinline,"webkit-playsinline":e.playsinline,"x5-video-player-fullscreen":e["x5-video-player-fullscreen"]||e.x5VideoPlayerFullscreen,"x5-video-orientation":e["x5-video-orientation"]||e.x5VideoOrientation,airplay:e.airplay,"webkit-airplay":e.airplay,tabindex:0|e.tabindex,mediaType:e.mediaType||"video","data-index":-1},e.videoConfig,e.videoAttributes);var r=e["x5-video-player-type"]||e.x5VideoPlayerType;return oT.isWeixin&&oT.os.isAndroid&&r&&(i.mediaConfig["x5-video-player-type"]=r,delete i.mediaConfig.playsinline,delete i.mediaConfig["webkit-playsinline"],delete i.mediaConfig["x5-playsinline"]),e.loop&&(i.mediaConfig.loop="loop"),e.autoplayMuted&&!Object.prototype.hasOwnProperty.call(i.mediaConfig,"muted")&&(i.mediaConfig.muted=!0),i.media=e.mediaEl instanceof HTMLMediaElement?e.mediaEl:"function"==typeof e.mediaEl?e.mediaEl(i.mediaConfig):Jx.createDom(i.mediaConfig.mediaType,"",i.mediaConfig,""),e.defaultPlaybackRate&&(i.media.defaultPlaybackRate=i.media.playbackRate=e.defaultPlaybackRate),"Number"===Jx.typeOf(e.volume)&&(i.volume=e.volume),e.autoplayMuted&&(i.media.muted=!0,i._lastMuted=!0),e.autoplay&&(i.media.autoplay=!0),e.playsinline&&(i.media.playsinline=!0),i._interval={},i.mediaEventMiddleware={},i.attachVideoEvents(),i}return oC(n,[{key:"setEventsMiddleware",value:function(e){var t,n=this;Hk(t=Kk(e)).call(t,(function(t){n.mediaEventMiddleware[t]=e[t]}))}},{key:"removeEventsMiddleware",value:function(e){var t,n=this;Hk(t=Kk(e)).call(t,(function(e){delete n.mediaEventMiddleware[e]}))}},{key:"attachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers||(this._evHandlers=Hk(ZT).call(ZT,(function(t){var n,i=Um(n="on".concat(t.charAt(0).toUpperCase())).call(n,zk(t).call(t,1));return"function"==typeof e[i]&&e.on(t,e[i]),aC({},t,function(e,t){return function(n,i){var r={player:t,eventName:e,originalEvent:n,detail:n.detail||{},timeStamp:n.timeStamp,currentTime:t.currentTime,duration:t.duration,paused:t.paused,ended:t.ended,isInternalOp:!!t._internalOp[n.type],muted:t.muted,volume:t.volume,host:Jx.getHostFromUrl(t.currentSrc),vtype:t.vtype};if(t.removeInnerOP(n.type),"timeupdate"===e&&(t._currentTime=t.media&&t.media.currentTime),"ratechange"===e){var o=t.media?t.media.playbackRate:0;if(o&&t._rate===o)return;t._rate=t.media&&t.media.playbackRate}if("durationchange"===e&&(t._duration=t.media.duration),"volumechange"===e&&(r.isMutedChange=t._lastMuted!==t.muted,t._lastMuted=t.muted),"error"===e&&(r.error=i||t.video.error),t.mediaEventMiddleware[e]){var a=QT.bind(t,e,r);try{t.mediaEventMiddleware[e].call(t,r,a)}catch(s){throw QT.call(t,e,r),s}}else QT.call(t,e,r)}}(t,e))}))),this._evHandlers.forEach((function(e){var n=Kk(e)[0];t.addEventListener(n,e[n],!1)}))}},{key:"detachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers.forEach((function(e){var n=Kk(e)[0];t.removeEventListener(n,e[n],!1)})),this._evHandlers.forEach((function(t){var n,i=Kk(t)[0],r=Um(n="on".concat(i.charAt(0).toUpperCase())).call(n,zk(i).call(i,1));"function"==typeof e[r]&&e.off(i,e[r])})),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,t){var n=this;e.removeAttribute("src"),e.load(),t.forEach((function(e,t){n.media.appendChild(Jx.createDom("source","",{src:"".concat(e.src),type:"".concat(e.type||""),"data-index":t+1}))}));var i=e.children;if(i){this._videoSourceCount=i.length,this._videoSourceIndex=i.length,this._vLoadeddata=function(e){n.emit($T,{src:e.target.currentSrc,host:Jx.getHostFromUrl(e.target.currentSrc)})};for(var r=null,o=0;o<this._evHandlers.length;o++)if("error"===Kk(this._evHandlers[o])[0]){r=this._evHandlers[o];break}!this._sourceError&&(this._sourceError=function(e){var t=Mw(e.target.getAttribute("data-index"),10);if(n._videoSourceIndex--,0===n._videoSourceIndex||t>=n._videoSourceCount){var i={code:4,message:"sources_load_error"};r?r.error(e,i):n.errorHandler("error",i)}var o=sT[4];n.emit(qT,new uT(n,{errorType:o,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:e.target.src}))});for(var a=0;a<i.length;a++)i[a].addEventListener("error",this._sourceError);e.addEventListener("loadeddata",this._vLoadeddata)}}},{key:"_detachSourceEvents",value:function(e){var t=e.children;if(t&&0!==t.length&&this._sourceError){for(var n=0;n<t.length;n++)t[n].removeEventListener("error",this._sourceError);for(;t.length>0;)e.removeChild(t[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.media&&(this.media.error||t)){var n=this.media.error||t,i=n.code?sT[n.code]:"other";n.message;this.media.currentSrc||this.media.srcObject||(n={code:6,message:"empty_src"}),this.emit(e,new uT(this,{errorType:i,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){for(var e in this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null,this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){return this.media?this.media.play():null}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return!!this.media&&this.media.canPlayType(e)}},{key:"getBufferedRange",value:function(e){var t=[0,0];if(!this.media)return t;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var i=0,r=e.length;i<r&&(t[0]=e.start(i),t[1]=e.end(i),!(t[0]<=n&&n<=t[1]));i++);return t[0]-n<=0&&n-t[1]<=0?t:[0,0]}},{key:"autoplay",get:function(){return!!this.media&&this.media.autoplay},set:function(e){this.media&&(this.media.autoplay=e)}},{key:"buffered",get:function(){return this.media?this.media.buffered:null}},{key:"buffered2",get:function(){return this.media&&this.media.buffered?Jx.getBuffered2(this.media.buffered):null}},{key:"bufferedPoint",get:function(){var e={start:0,end:0};if(!this.media)return e;var t=this.media.buffered;if(!t||0===t.length)return e;for(var n=0;n<t.length;n++)if((t.start(n)<=this.currentTime||t.start(n)<.1)&&t.end(n)>=this.currentTime)return{start:t.start(n),end:t.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?void 0!==this.media.currentTime?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return!!this.media&&this.media.defaultMuted},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return!!this.media&&this.media.ended}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){if(!this.media.error)return"";return["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"][this.media.error.code-1]}},{key:"loop",get:function(){return!!this.media&&this.media.loop},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return!!this.media&&this.media.muted},set:function(e){this.media&&this.media.muted!==e&&(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return!this.media||this.media.paused}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){this.media&&e!==1/0&&(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return!!this.media&&this.media.preload},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return!!this.media&&this.media.seekable}},{key:"seeking",get:function(){return!!this.media&&this.media.seeking}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){this.media&&(this.emit(IT,e),this.emit(gT),this._currentTime=0,this._duration=0,Jx.isMSE(this.media)?this.onWaiting():(this._detachSourceEvents(this.media),"Array"===Jx.typeOf(e)?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()))}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e!==1/0&&this.media&&(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"emit",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"on",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"on",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"once",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"once",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"off",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"off",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"offAll",value:function(){dC(lC(n.prototype),"removeAllListeners",this).call(this)}}]),n}(_C),tS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};iC(this,e),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=t}return oC(e,[{key:"openDB",value:function(e){var t=this,n=this,i=this.myDB.version||1,r=n.indexedDB.open(n.myDB.name,i);r.onerror=function(e){},r.onsuccess=function(i){t.myDB.db=i.target.result,e.call(n)},r.onupgradeneeded=function(e){var t=e.target.result;e.target.transaction,t.objectStoreNames.contains(n.myDB.ojstore.name)||t.createObjectStore(n.myDB.ojstore.name,{keyPath:n.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){this.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(e,t){for(var n,i=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=0;r<t.length;r++)(n=i.add(t[r])).onerror=function(){},n.onsuccess=function(){}}},{key:"putData",value:function(e,t){for(var n,i=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=0;r<t.length;r++)(n=i.put(t[r])).onerror=function(){},n.onsuccess=function(){}}},{key:"getDataByKey",value:function(e,t,n){var i=this,r=this.myDB.db.transaction(e,"readwrite").objectStore(e).get(t);r.onerror=function(){n.call(i,null)},r.onsuccess=function(e){var t=e.target.result;n.call(i,t)}}},{key:"deleteData",value:function(e,t){this.myDB.db.transaction(e,"readwrite").objectStore(e).delete(t)}},{key:"clearData",value:function(e){this.myDB.db.transaction(e,"readwrite").objectStore(e).clear()}}]),e}(),nS=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],iS=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],rS=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],oS="data-xgplayerid";function aS(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var s,l=t.call.apply(t,Um(i=[e]).call(i,o));n&&"function"==typeof n&&(l&&l.then?l.then((function(){for(var t,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];n.call.apply(n,Um(t=[e]).call(t,r))})):n.call.apply(n,Um(s=[e]).call(s,o)))}function sS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),function(){var i,r=arguments,o=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,Um(a=[this]).call(a,zk(Array.prototype).call(arguments)))}catch(v){var l,u;throw v.message=Um(l=Um(u="[pluginName: ".concat(this.pluginName,":")).call(u,e,":pre error] >> ")).call(l,v.message),v}if(this.__hooks&&this.__hooks[e])try{var c,h=vS(this,e,t);if(h)if(h.then)h.then((function(e){var i;!1!==e&&aS.apply(void 0,Um(i=[o,t,n.next]).call(i,pC(r)))})).catch((function(e){throw e}));else aS.apply(void 0,Um(c=[this,t,n.next]).call(c,zk(Array.prototype).call(arguments)));else if(void 0===h){var f;aS.apply(void 0,Um(f=[this,t,n.next]).call(f,zk(Array.prototype).call(arguments)))}}catch(v){var d,p;throw v.message=Um(d=Um(p="[pluginName: ".concat(this.pluginName,":")).call(p,e,"] >> ")).call(d,v.message),v}else aS.apply(void 0,Um(i=[this,t,n.next]).call(i,zk(Array.prototype).call(arguments)))}.bind(this)}function lS(e,t){var n=this.__hooks;if(!n||!Array.isArray(n[e]))return-1;for(var i=n[e],r=0;r<i.length;r++)if(i[r]===t)return r;return-1}function uS(e,t){var n=this.__hooks;if(n)return n.hasOwnProperty(e)?(Array.isArray(n[e])||(n[e]=[]),-1===lS.call(this,e,t)&&n[e].push(t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function cS(e,t){var n=this.__hooks;if(n)if(Array.isArray(n[e])){var i=n[e],r=lS.call(this,e,t);-1!==r&&cw(i).call(i,r,1)}else n[e]&&(n[e]=null)}function hS(e){if(this.plugins&&this.plugins[e.toLowerCase()]){for(var t=this.plugins[e.toLowerCase()],n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.useHooks&&t.useHooks.apply(t,i)}}function fS(e){if(this.plugins&&this.plugins[e.toLowerCase()]){var t=this.plugins[e.toLowerCase()];if(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.removeHooks&&t.removeHooks.apply(t,i)}}}function dS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&Hk(t).call(t,(function(t){e.__hooks[t]=null})),lE(e,"hooks",{get:function(){var t;return e.__hooks&&Hk(t=Kk(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}function pS(e){e.__hooks=null}function vS(e,t,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];if(e.__hooks&&Array.isArray(e.__hooks[t])){var a,s=e.__hooks[t],l=-1;return function e(t,n,i){for(var r,o,a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];if(l++,0===s.length||l===s.length)return i.call.apply(i,Um(o=[t,t]).call(o,u));var h,f=s[l],d=f.call.apply(f,Um(r=[t,t]).call(r,u));return d&&d.then?d.then((function(r){var o;return!1===r?null:e.apply(void 0,Um(o=[t,n,i]).call(o,u))})).catch((function(e){console.warn("[runHooks]".concat(n," reject"),e.message)})):!1!==d?e.apply(void 0,Um(h=[t,n,i]).call(h,u)):void 0}.apply(void 0,Um(a=[e,t,n]).call(a,r))}var u;return n.call.apply(n,Um(u=[e,e]).call(u,r))}function gS(e,t){var n;$x.logError(Um(n="[".concat(e,"] event or callback cant be undefined or null when call ")).call(n,t))}var yS=function(){function e(t){iC(this,e),Jx.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),dS(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return oC(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=Jx.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):Array.isArray(e)&&e.forEach((function(e){n.__events[e]=t,n.player.on(e,t)})):gS(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):Array.isArray(e)&&e.forEach((function(i){n.__onceEvents[i]=t,n.player.once(e,t)})):gS(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):Array.isArray(e)&&e.forEach((function(i){delete n.__events[e],n.player.off(i,t)})):gS(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e=this;["__events","__onceEvents"].forEach((function(t){Kk(e[t]).forEach((function(n){e[t][n]&&e.off(n,e[t][n]),n&&delete e[t][n]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,n;if(this.player){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(n=this.player).emit.apply(n,Um(t=[e]).call(t,r))}}},{key:"emitUserAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var i=tC(tC({},n),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,i)}}},{key:"hook",value:function(e,t){var n;return sS.call.apply(sS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var n,i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return uS.call.apply(uS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var n,i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return cS.call.apply(cS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return n&&(t.pluginName=n),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,n=this.player,i=this.pluginName;this.offAll(),Jx.clearAllTimers(this),Jx.checkIsFunction(this.destroy)&&this.destroy(),Hk(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),n.unRegisterPlugin(i),pS(this)}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&lE(e,n,t[n])}},{key:"defineMethod",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"function"==typeof t[n]&&lE(e,n,{configurable:!0,value:t[n]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}();if("undefined"!=typeof Element&&!Element.prototype.matches){var mS=Element.prototype;mS.matches=mS.matchesSelector||mS.mozMatchesSelector||mS.msMatchesSelector||mS.oMatchesSelector||mS.webkitMatchesSelector}var _S=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function bS(e,t,n,i,r){var o=kS.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}function kS(e,t,n,i){return function(n){n.delegateTarget=_S(n.target,t),n.delegateTarget&&i.call(e,n)}}var wS=function(e,t,n,i,r){return"function"==typeof e.addEventListener?bS.apply(null,arguments):"function"==typeof n?bS.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Hk(Array.prototype).call(e,(function(e){return bS(e,t,n,i,r)})))},ES=n(wS),CS={CONTROLS:"controls",ROOT:"root"},xS={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"},TS="xg-icon-disable";function SS(e){return!!e&&(Bk(e)&&/^(?:http|data:|\/)/.test(e))}function PS(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=null;if(e instanceof window.Element)return Jx.addClass(e,r),Hk(i=Kk(o)).call(i,(function(t){e.setAttribute(t,o[t])})),e;if(SS(e)||SS(e.url))return o.src=SS(e)?e:e.url||"",s=Jx.createDom(e.tag||"img","",o,"xg-img ".concat(r));if("function"==typeof e)try{var l,u;return(s=e())instanceof window.Element?(Jx.addClass(s,r),Hk(l=Kk(o)).call(l,(function(e){s.setAttribute(e,o[e])})),s):($x.logWarn(Um(u="warn>>icons.".concat(t," in config of plugin named [")).call(u,a,"] is a function mast return an Element Object")),null)}catch(c){return $x.logError("Plugin named [".concat(a,"]:createIcon"),c),null}return"string"==typeof e?Jx.createDomFromHtml(e,o,r):($x.logWarn(Um(n="warn>>icons.".concat(t," in config of plugin named [")).call(n,a,"] is invalid")),null)}function AS(e,t){var n,i=t.config.icons||t.playerConfig.icons;Hk(n=Kk(e)).call(n,(function(n){var r=e[n],o=r&&r.class?r.class:"",a=r&&r.attr?r.attr:{},s=null;i&&i[n]&&(o=function(e,t){var n;return"object"===nC(e)&&e.class&&"string"==typeof e.class?Um(n="".concat(t," ")).call(n,e.class):t}(i[n],o),a=function(e,t){var n;return"object"===nC(e)&&e.attr&&"object"===nC(e.attr)&&Hk(n=Kk(e.attr)).call(n,(function(n){t[n]=e.attr[n]})),t}(i[n],a),s=PS(i[n],n,o,a,t.pluginName)),!s&&r&&(s=PS(r.icon?r.icon:r,a,o,{},t.pluginName)),t.icons[n]=s}))}var RS=function(e){sC(n,e);var t=fC(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return iC(this,n),(e=t.call(this,i)).__delegates=[],e}return oC(n,[{key:"__init",value:function(e){if(dC(lC(n.prototype),"__init",this).call(this,e),e.root){var t=e.root,i=null;this.icons={},this.root=null,this.parent=null,AS(this.registerIcons()||{},this),this.langText={};var r,o,a,s=this.registerLanguageTexts()||{};o=this,Hk(a=Kk(r=s)).call(a,(function(e){lE(o.langText,e,{get:function(){var t=o.lang,n=o.i18n;return n[e]?n[e]:r[e]&&r[e][t]||""}})}));var l="";try{l=this.render()}catch(f){var u;throw $x.logError("Plugin:".concat(this.pluginName,":render"),f),new Error(Um(u="Plugin:".concat(this.pluginName,":render:")).call(u,f.message))}if(l)(i=n.insert(l,t,e.index)).setAttribute("data-index",e.index);else{if(!e.tag)return;(i=Jx.createDom(e.tag,"",e.attr,e.name)).setAttribute("data-index",e.index),t.appendChild(i)}this.root=i,this.parent=t;var c=this.config.attr||{},h=this.config.style||{};this.setAttr(c),this.setStyle(h),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var t,n=this.children();if(n&&"object"===nC(n))if(Kk(n).length>0)Hk(t=Kk(n)).call(t,(function(t){var i,r,o=t,a=n[o],s={root:e.root};"function"==typeof a?(i=e.config[o]||{},r=a):"object"===nC(a)&&"function"==typeof a.plugin&&(i=a.options?Jx.deepCopy(e.config[o]||{},a.options):e.config[o]||{},r=a.plugin),s.config=i,void 0!==i.index&&(s.index=i.index),i.root&&(s.root=i.root),e.registerPlugin(r,s,o)}))}}},{key:"updateLang",value:function(e){e||(e=this.lang);var t=this.root,n=this.i18n,i=this.langText;t&&function e(t,n){for(var i=0;i<t.children.length;i++)t.children[i].children.length>0?e(t.children[i],n):n(t.children[i])}(t,(function(t){var r=t.getAttribute&&t.getAttribute("lang-key");if(r){var o=n[r.toUpperCase()]||i[r];o&&(t.innerHTML="function"==typeof o?o(e):o)}}))}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.i18n||{},i=this.langText;e.setAttribute&&e.setAttribute("lang-key",t);var r=n[t]||i[t]||"";r&&(e.innerHTML=r)}},{key:"plugins",value:function(){return this._children}},{key:"disable",value:function(){this.config.disable=!0,Jx.addClass(Ym(this).call(this,".xgplayer-icon"),TS)}},{key:"enable",value:function(){this.config.disable=!1,Jx.removeClass(Ym(this).call(this,".xgplayer-icon"),TS)}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.root=t.root||this.root;var r=dC(lC(n.prototype),"registerPlugin",this).call(this,e,t,i);return this._children.push(r),r}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,t,i){var r=this;if(arguments.length<3&&"function"==typeof t)Array.isArray(e)?e.forEach((function(e){r.bindEL(e,t)})):this.bindEL(e,t);else{var o,a=n.delegate.call(this,this.root,e,t,i);this.__delegates=Um(o=this.__delegates).call(o,a)}}},{key:"unbind",value:function(e,t){var n=this;if(arguments.length<3&&"function"==typeof t)Array.isArray(e)?e.forEach((function(e){n.unbindEL(e,t)})):this.unbindEL(e,t);else for(var i,r=Um(i="".concat(e,"_")).call(i,t),o=0;o<this.__delegates.length;o++)if(this.__delegates[o].key===r){var a;this.__delegates[o].destroy(),cw(a=this.__delegates).call(a,o,1);break}}},{key:"setStyle",value:function(e,t){var n,i=this;if(this.root)return"String"===Jx.typeOf(e)?this.root.style[e]=t:void("Object"===Jx.typeOf(e)&&Hk(n=Kk(e)).call(n,(function(t){i.root.style[t]=e[t]})))}},{key:"setAttr",value:function(e,t){var n,i=this;if(this.root)return"String"===Jx.typeOf(e)?this.root.setAttribute(e,t):void("Object"===Jx.typeOf(e)&&Hk(n=Kk(e)).call(n,(function(t){i.root.setAttribute(t,e[t])})))}},{key:"setHtml",value:function(e,t){this.root&&(this.root.innerHTML=e,"function"==typeof t&&t())}},{key:"bindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"==typeof t&&this.root.addEventListener(e,t,n)}},{key:"unbindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"==typeof t&&this.root.removeEventListener(e,t,n)}},{key:"show",value:function(e){if(this.root)return this.root.style.display=void 0!==e?e:"block","none"===window.getComputedStyle(this.root,null).getPropertyValue("display")?this.root.style.display="block":void 0}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,t){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!(t&&t instanceof window.Element))return null;try{return"string"==typeof e?Ym(this).call(this,e).appendChild(t):e.appendChild(t)}catch(n){return $x.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e,t,i,r=this,o=this.player;(Hk(e=this.__delegates).call(e,(function(e){e.destroy()})),this.__delegates=[],this._children instanceof Array)&&(Hk(i=this._children).call(i,(function(e){o.unRegisterPlugin(e.pluginName)})),this._children=null);this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),dC(lC(n.prototype),"__destroy",this).call(this),this.icons={},Hk(t=["root","parent"]).call(t,(function(e){r[e]=null}))}}],[{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t.children.length,r=Number(n),o=e instanceof window.Node;if(i){for(var a=0,s=null,l="";a<i;a++){s=t.children[a];var u=Number(s.getAttribute("data-index"));if(u>=r){l="beforebegin";break}u<r&&(l="afterend")}return o?"afterend"===l?t.appendChild(e):t.insertBefore(e,s):s.insertAdjacentHTML(l,e),"afterend"===l?t.children[t.children.length-1]:t.children[a]}return o?t.appendChild(e):t.insertAdjacentHTML("beforeend",e),t.children[t.children.length-1]}},{key:"defaultConfig",get:function(){return{}}},{key:"delegate",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[];if(e instanceof window.Node&&"function"==typeof i)if(Array.isArray(n))n.forEach((function(n){var a,s=ES(e,t,n,i,r);s.key=Um(a="".concat(t,"_")).call(a,n),o.push(s)}));else{var a,s=ES(e,t,n,i,r);s.key=Um(a="".concat(t,"_")).call(a,n),o.push(s)}return o}},{key:"ROOT_TYPES",get:function(){return CS}},{key:"POSITIONS",get:function(){return xS}}]),n}(yS),IS=function(){function e(){var t=this;if(iC(this,e),aC(this,"__trigger",(function(e){var n=(new Date).getTime();t.timeStamp=n;for(var i=0;i<e.length;i++)t.__runHandler(e[i].target)})),this.__handlers=[],this.timeStamp=0,this.observer=null,window.ResizeObserver)try{this.observer=new window.ResizeObserver(function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Qx(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),eT(e,t,{leading:i,trailing:r,maxWait:t})}(this.__trigger,100,{trailing:!0})),this.timeStamp=(new Date).getTime()}catch(n){console.error(n)}}return oC(e,[{key:"addObserver",value:function(e,t){if(this.observer){this.observer.observe(e);for(var n=e.getAttribute(oS),i=this.__handlers,r=-1,o=0;o<i.length;o++)i[o]&&e===i[o].target&&(r=o);r>-1?this.__handlers[r].handler=t:this.__handlers.push({target:e,handler:t,playerId:n})}}},{key:"unObserver",value:function(e){var t,n,i=-1;Hk(t=this.__handlers).call(t,(function(t,n){e===t.target&&(i=n)}));try{var r;null===(r=this.observer)||void 0===r||r.unobserve(e)}catch(o){}i>-1&&cw(n=this.__handlers).call(n,i,1)}},{key:"destroyObserver",value:function(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(e){for(var t=this.__handlers,n=0;n<t.length;n++)if(t[n]&&e===t[n].target){try{t[n].handler(e)}catch(lU){console.error(lU)}return!0}return!1}}]),e}(),OS=null;var MS={pluginGroup:{},init:function(e){var t,n,i=e._pluginInfoId;i||(i=(new Date).getTime(),e._pluginInfoId=i),!e.config.closeResizeObserver&&(t=e.root,n=function(){e.resize()},OS||(OS=new IS),OS.addObserver(t,n)),this.pluginGroup[i]={_originalOptions:e.config||{},_plugins:{}}},formatPluginInfo:function(e,t){var n=null,i=null;return e.plugin&&"function"==typeof e.plugin?(n=e.plugin,i=e.options):(n=e,i={}),t&&(i.config=t||{}),{PLUFGIN:n,options:i}},checkPluginIfExits:function(e,t){for(var n=0;n<t.length;n++)if(e.toLowerCase()===t[n].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(e,t){for(var n=Kk(t),i=null,r=0;r<n.length;r++)if(e.toLowerCase()===n[r].toLowerCase()){i=t[n[r]];break}return"Object"===Jx.typeOf(i)?{root:i.root,position:i.position}:{}},lazyRegister:function(e,t){var n=this,i=t.timeout||1500;return jk.race([t.loader().then((function(t){var i;i=t&&t.__esModule?t.default:t,n.register(e,i,t.options)})),new jk((function(e,t){setTimeout((function(){t(new Error("timeout"))}),i)}))])},register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&"function"==typeof t&&void 0!==t.prototype){var i=e._pluginInfoId;if(i&&this.pluginGroup[i]){this.pluginGroup[i]._plugins||(this.pluginGroup[i]._plugins={});var r=this.pluginGroup[i]._plugins,o=this.pluginGroup[i]._originalOptions;n.player=e;var a=n.pluginName||t.pluginName;if(!a)throw new Error("The property pluginName is necessary");if(!t.isSupported||t.isSupported(e.config.mediaType,e.config.codecType)){n.config||(n.config={});for(var s=Kk(o),l=0;l<s.length;l++)if(a.toLowerCase()===s[l].toLowerCase()){var u=o[s[l]];"Object"===Jx.typeOf(u)?n.config=iE({},n.config,o[s[l]]):"Boolean"===Jx.typeOf(u)&&(n.config.disable=!u);break}t.defaultConfig&&Kk(t.defaultConfig).forEach((function(e){void 0===n.config[e]&&(n.config[e]=t.defaultConfig[e])})),n.root?"string"==typeof n.root&&(n.root=e[n.root]):n.root=e.root,n.index=n.config.index||0;try{r[a.toLowerCase()]&&(this.unRegister(i,a.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(a,"] exist, destroy the old instance")));var c=new t(n);return r[a.toLowerCase()]=c,r[a.toLowerCase()].func=t,c&&"function"==typeof c.afterCreate&&c.afterCreate(),c}catch(h){throw console.error(h),h}}else console.warn("not supported plugin [".concat(a,"]"))}}},unRegister:function(e,t){e._pluginInfoId&&(e=e._pluginInfoId),t=t.toLowerCase();try{var n=this.pluginGroup[e]._plugins[t];n&&(n.pluginName&&n.__destroy(),delete this.pluginGroup[e]._plugins[t])}catch(r){var i;console.error(Um(i="[unRegister:".concat(t,"] cgid:[")).call(i,e,"] error"),r)}},deletePlugin:function(e,t){var n=e._pluginInfoId;n&&this.pluginGroup[n]&&this.pluginGroup[n]._plugins&&delete this.pluginGroup[n]._plugins[t]},getPlugins:function(e){var t=e._pluginInfoId;return t&&this.pluginGroup[t]?this.pluginGroup[t]._plugins:{}},findPlugin:function(e,t){var n=e._pluginInfoId;if(!n||!this.pluginGroup[n])return null;var i=t.toLowerCase();return this.pluginGroup[n]._plugins[i]},beforeInit:function(e){var t=this;function n(e){return e&&e.then?e:new jk((function(e){e()}))}return new jk((function(i){if(t.pluginGroup)return(e._loadingPlugins&&e._loadingPlugins.length?jk.all(e._loadingPlugins):jk.resolve()).then((function(){var r,o=e._pluginInfoId;if(t.pluginGroup[o]){var a=t.pluginGroup[o]._plugins,s=[];Kk(a).forEach((function(e){if(a[e]&&a[e].beforePlayerInit)try{var t=a[e].beforePlayerInit();s.push(n(t))}catch(i){throw s.push(n(null)),i}})),jk.all(Um(r=[]).call(r,s)).then((function(){i()})).catch((function(e){console.error(e),i()}))}else i()}))}))},afterInit:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins;Kk(n).forEach((function(e){n[e]&&n[e].afterPlayerInit&&n[e].afterPlayerInit()}))}},setLang:function(e,t){var n=t._pluginInfoId;if(n&&this.pluginGroup[n]){var i=this.pluginGroup[n]._plugins;Kk(i).forEach((function(t){if(i[t].updateLang)i[t].updateLang(e);else try{i[t].lang=e}catch(lU){console.warn("".concat(t," setLang"))}}))}},reRender:function(e){var t=this,n=e._pluginInfoId;if(n&&this.pluginGroup[n]){var i=[],r=this.pluginGroup[n]._plugins;Kk(r).forEach((function(e){"controls"!==e&&r[e]&&(i.push({plugin:r[e].func,options:r[e].__args}),t.unRegister(n,e))})),i.forEach((function(n){t.register(e,n.plugin,n.options)}))}},onPluginsReady:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins||{};Kk(n).forEach((function(e){n[e].onPluginsReady&&"function"==typeof n[e].onPluginsReady&&n[e].onPluginsReady()}))}},destroy:function(e){var t=e._pluginInfoId;if(this.pluginGroup[t]){var n,i,r;n=e.root,null===(r=OS)||void 0===r||r.unObserver(n,i);for(var o=this.pluginGroup[t]._plugins,a=0,s=Kk(o);a<s.length;a++){var l=s[a];this.unRegister(t,l)}delete this.pluginGroup[t],delete e._pluginInfoId}}},LS="xgplayer",DS="xgplayer-is-enter",NS="xgplayer-pause",FS="xgplayer-playing",US="xgplayer-ended",HS="xgplayer-isloading",jS="xgplayer-is-error",BS="xgplayer-replay",KS="xgplayer-nostart",zS="xgplayer-inactive",VS="xgplayer-is-fullscreen",GS="xgplayer-is-cssfullscreen",WS="xgplayer-rotate-fullscreen",YS="xgplayer-rotate-parent",XS="xgplayer-fullscreen-parent",qS="xgplayer-fullscreen-inner",$S="no-controls",ZS="flex-controls",JS="controls-autohide",QS="top-bar-autohide",eP="not-allow-autoplay",tP="seeking";function nP(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},preProcessUrl:null,ignores:[],whitelist:[],inactive:3e3,lang:tT(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,minWaitDelay:200,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var iP=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onMouseEnter",(function(e){var t=cC(i),n=t.player;t.playerConfig.closeControlsBlur&&n.focus({autoHide:!1})})),aC(cC(i),"onMouseLeave",(function(e){cC(i).player.focus()})),i}return oC(n,[{key:"beforeCreate",value:function(e){e.config.mode||"mobile"!==oT.device||(e.config.mode="flex"),e.player.config.marginControls&&(e.config.autoHide=!1)}},{key:"afterCreate",value:function(){var e,t=this,n=this.config,i=n.disable,r=n.height,o=n.mode;if(!i){"flex"===o&&this.player.addClass(ZS);var a={height:"".concat(r,"px")};Hk(e=Kk(a)).call(e,(function(e){t.root.style[e]=a[e]})),this.left=Ym(this).call(this,"xg-left-grid"),this.center=Ym(this).call(this,"xg-center-grid"),this.right=Ym(this).call(this,"xg-right-grid"),this.innerRoot=Ym(this).call(this,"xg-inner-controls"),this.on(UT,(function(e){e?Jx.addClass(t.root,"mini-controls"):Jx.removeClass(t.root,"mini-controls")}));var s=this.playerConfig.isMobileSimulateMode;"mobile"!==oT.device&&"mobile"!==s&&(this.bind("mouseenter",this.onMouseEnter),this.bind("mouseleave",this.onMouseLeave))}}},{key:"focus",value:function(){this.player.focus({autoHide:!1})}},{key:"focusAwhile",value:function(){this.player.focus({autoHide:!0})}},{key:"blur",value:function(){this.player.blur({ignorePaused:!0})}},{key:"recoverAutoHide",value:function(){this.config.autoHide&&Jx.addClass(this.root,JS)}},{key:"pauseAutoHide",value:function(){Jx.removeClass(this.root,JS)}},{key:"show",value:function(e){this.root.style.display="",this.player.focus()}},{key:"hide",value:function(){this.root.style.display="none"}},{key:"mode",get:function(){return this.config.mode}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(this.root){var r=e.defaultConfig||{};if(!t.root){switch(t.position?t.position:t.config&&t.config.position?t.config.position:r.position){case xS.CONTROLS_LEFT:t.root=this.left;break;case xS.CONTROLS_RIGHT:t.root=this.right;break;case xS.CONTROLS_CENTER:t.root=this.center;break;case xS.CONTROLS:t.root=this.root;break;default:t.root=this.left}return dC(lC(n.prototype),"registerPlugin",this).call(this,e,t,i)}}}},{key:"destroy",value:function(){"mobile"!==oT.device&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave)),this.left=null,this.center=null,this.right=null,this.innerRoot=null}},{key:"render",value:function(){var e=this.config,t=e.mode,n=e.autoHide,i=e.initShow;if(!e.disable){var r=Jx.classNames({"xgplayer-controls":!0},{"flex-controls":"flex"===t},{"bottom-controls":"bottom"===t},aC({},JS,n),{"xgplayer-controls-initshow":i||!n});return'<xg-controls class="'.concat(r,'" unselectable="on">\n <xg-inner-controls class="xg-inner-controls xg-pos">\n <xg-left-grid class="xg-left-grid">\n </xg-left-grid>\n <xg-center-grid class="xg-center-grid"></xg-center-grid>\n <xg-right-grid class="xg-right-grid">\n </xg-right-grid>\n </xg-inner-controls>\n </xg-controls>')}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),n}(RS),rP={lang:{},langKeys:[],textKeys:[]};function oP(e,t){return Kk(t).forEach((function(n){var i,r=Jx.typeOf(t[n]),o=Jx.typeOf(e[n]);"Array"===r?("Array"!==o&&(e[n]=[]),(i=e[n]).push.apply(i,pC(t[n]))):"Object"===r?("Object"!==o&&(e[n]={}),oP(e[n],t[n])):e[n]=t[n]})),e}function aP(){var e;Hk(e=Kk(rP.lang.en)).call(e,(function(e){rP.textKeys[e]=e}))}function sP(e,t){var n=e.LANG;if(t||(t=rP),t.lang){var i=e.TEXT||{};"zh"===n&&(n="zh-cn"),t.lang[n]?oP(t.lang[n],i):(t.langKeys.push(n),t.lang[n]=i),aP()}}sP({LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}});var lP={get textKeys(){return rP.textKeys},get langKeys(){return rP.langKeys},get lang(){var e,t={};return Hk(e=rP.langKeys).call(e,(function(e){t[e]=rP.lang[e]})),rP.lang["zh-cn"]&&(t.zh=rP.lang["zh-cn"]||{}),t},extend:function(e,t){var n=[];if(t||(t=rP),t.lang){var i;if("Array"!==Jx.typeOf(e))n=Hk(i=Kk(e)).call(i,(function(t){return{LANG:"zh"===t?"zh-cn":t,TEXT:e[t]}}));else n=e;var r=t.lang;Hk(n).call(n,(function(e){"zh"===e.LANG&&(e.LANG="zh-cn"),r[e.LANG]?oP(r[e.LANG]||{},e.TEXT||{}):sP(e,t)})),aP()}},use:sP,init:function(e){var t,n={lang:{},langKeys:[],textKeys:{},pId:e};return oP(n.lang,rP.lang),(t=n.langKeys).push.apply(t,pC(rP.langKeys)),oP(n.textKeys,rP.textKeys),n}},uP=1,cP=2,hP=3,fP=4,dP=5,pP=6,vP=7,gP=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],yP={},mP=null,_P=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"add",value:function(e){e&&(yP[e.playerId]=e,1===Kk(yP).length&&this.setActive(e.playerId,!0))}},{key:"remove",value:function(e){e&&(e.isUserActive,delete yP[e.playerId])}},{key:"_iterate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in yP)if(Object.prototype.hasOwnProperty.call(yP,n)){var i=yP[n];if(t){if(e(i))break}else e(i)}}},{key:"forEach",value:function(e){this._iterate(e)}},{key:"find",value:function(e){var t=null;return this._iterate((function(n){var i=e(n);return i&&(t=n),i}),!0),t}},{key:"findAll",value:function(e){var t=[];return this._iterate((function(n){e(n)&&t.push(n)})),t}},{key:"setActive",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(yP[e])return t?this.forEach((function(t){e===t.playerId?(t.isUserActive=!0,t.isInstNext=!1):t.isUserActive=!1})):yP[e].isUserActive=t,e}},{key:"getActiveId",value:function(){for(var e=Kk(yP),t=0;t<e.length;t++){var n=yP[e[t]];if(n&&n.isUserActive)return e[t]}return null}},{key:"setNext",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(yP[e])return t?this.forEach((function(t){e===t.playerId?(t.isUserActive=!1,t.isInstNext=!0):t.isInstNext=!1})):yP[e].isInstNext=t,e}}],[{key:"getInstance",value:function(){return mP||(mP=new n),mP}}]),n}(mC.EventEmitter);var bP=["play","pause","replay","retry"],kP=0,wP=0,EP=null,CP=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n);var r,o=Jx.deepMerge(nP(),e);aC(cC(i=t.call(this,o)),"canPlayFunc",(function(){if(i.config){var e=i.config,t=e.autoplay,n=e.defaultPlaybackRate;$x.logInfo("player","canPlayFunc, startTime",i.__startTime),i._seekToStartTime(),i.playbackRate=n,(t||i._useAutoplay)&&i.mediaPlay(),i.off(yT,i.canPlayFunc),i.removeClass(DS)}})),aC(cC(i),"onFullscreenChange",(function(e,t){var n=function(){Jx.setTimeout(cC(i),(function(){i.resize()}),100)},r=Jx.getFullScreenEl();i._fullActionFrom?i._fullActionFrom="":i.emit(YT,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:i.currentTime,duration:i.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var o=function(e,t,n){if(e){var i=e.getAttribute(n);return!(!i||i!==t||"VIDEO"!==e.tagName&&"AUDIO"!==e.tagName)}}(r,i.playerId,oS);if(t||r&&(r===i._fullscreenEl||o))n(),!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!0,i.changeFullStyle(i.root,r,VS),i.emit(NT,!0,i._fullScreenOffset),i.cssfullscreen&&i.exitCssFullscreen();else if(i.fullscreen){n();var a=cC(i),s=a._fullScreenOffset;if(a.config.needFullscreenScroll?(window.scrollTo(s.left,s.top),Jx.setTimeout(cC(i),(function(){i.fullscreen=!1,i._fullScreenOffset=null}),100)):(!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!1,i._fullScreenOffset=null),i.cssfullscreen)i.removeClass(VS);else{var l=i._fullscreenEl;l||!i.root.contains(e.target)&&e.target!==i.root||(l=e.target),i.recoverFullStyle(i.root,l,VS)}i._fullscreenEl=null,i.emit(NT,!1)}})),aC(cC(i),"_onWebkitbeginfullscreen",(function(e){i._fullscreenEl=i.media,i.onFullscreenChange(e,!0)})),aC(cC(i),"_onWebkitendfullscreen",(function(e){i.onFullscreenChange(e,!1)})),dS(cC(i),bP),i.config=o,i._pluginInfoId=Jx.generateSessionId(),(r=cC(i)).logInfo=$x.logInfo.bind(r),r.logWarn=$x.logWarn.bind(r),r.logError=$x.logError.bind(r);var a=i.constructor.defaultPreset;if(i.config.presets.length){var s,l=Bk(s=i.config.presets).call(s,"default");l>=0&&a&&(i.config.presets[l]=a)}else a&&i.config.presets.push(a);if(i.userTimer=null,i.waitTimer=null,i.handleSource=!0,i._state=uP,i.isAd=!1,i.isError=!1,i._hasStart=!1,i.isSeeking=!1,i.isCanplay=!1,i._useAutoplay=!1,i.__startTime=-1,i.rotateDeg=0,i.isActive=!1,i.fullscreen=!1,i.cssfullscreen=!1,i.isRotateFullscreen=!1,i._fullscreenEl=null,i.timeSegments=[],i._cssfullscreenEl=null,i.curDefinition=null,i._orgCss="",i._fullScreenOffset=null,i._videoHeight=0,i._videoWidth=0,i.videoPos={pi:1,scale:0,rotate:-1,x:0,y:0,h:-1,w:-1,vy:0,vx:0},i.sizeInfo={width:0,height:0,left:0,top:0},i._accPlayed={t:0,acc:0,loopAcc:0},i._offsetInfo={currentTime:-1,duration:0},i.innerContainer=null,i.controls=null,i.topBar=null,i.root=null,i.__i18n=lP.init(i._pluginInfoId),oT.os.isAndroid&&oT.osVersion>0&&oT.osVersion<6&&(i.config.autoplay=!1),i.database=new tS,i.isUserActive=!1,i._onceSeekCanplay=null,i._isPauseBeforeSeek=0,i.innerStates={isActiveLocked:!1},i.instManager=EP,!i._initDOM())return console.error(new Error("can't find the dom which id is ".concat(i.config.id," or this.config.el does not exist"))),hC(i);var u=i.config,c=u.definition,h=void 0===c?{}:c;if(!u.url&&h.list&&h.list.length>0){var f,d=Ym(f=h.list).call(f,(function(e){return e.definition&&e.definition===h.defaultDefinition}));d||(h.defaultDefinition=h.list[0].definition,d=h.list[0]),i.config.url=d.url,i.curDefinition=d}return i._bindEvents(),i._registerPresets(),i._registerPlugins(),MS.onPluginsReady(cC(i)),i.getInitDefinition(),i.setState(cP),Jx.setTimeout(cC(i),(function(){i.emit(CT)}),0),i.onReady&&i.onReady(),(i.config.videoInit||i.config.autoplay)&&(!i.hasStart||i.state<fP)&&i.start(),i}return oC(n,[{key:"_initDOM",value:function(){var e,t,n,i,r=this;if(this.root=this.config.id?document.getElementById(this.config.id):null,!this.root){var o=this.config.el;if(!o||1!==o.nodeType)return this.emit(dT,new uT("use",this.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),console.error("this.confg.id or this.config.el can't be empty"),!1;this.root=o}var a=function(e){for(var t=Kk(yP),n=0;n<t.length;n++){var i=yP[t[n]];if(i.root===e)return i}return null}(this.root);if(a&&($x.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"),a.destroy()),this.root.setAttribute(oS,this.playerId),this.media.setAttribute(oS,this.playerId),null===(i=EP)||void 0===i||i.add(this),MS.init(this),this._initBaseDoms(),this.config.controls){var s=this.config.controls.root||null,l=MS.register(this,iP,{root:s});this.controls=l}var u="mobile"===this.config.isMobileSimulateMode?"mobile":oT.device;if(this.addClass(Um(e=Um(t=Um(n="".concat(LS," ")).call(n,zS," xgplayer-")).call(t,u," ")).call(e,this.config.controls?"":$S)),this.config.autoplay?this.addClass(DS):this.addClass(KS),this.config.fluid){var c=this.config,h=c.width,f=c.height;"number"==typeof h&&"number"==typeof f||(h=600,f=337.5);var d={width:"100%",height:"0","max-width":"100%","padding-top":"".concat(100*f/h,"%")};Kk(d).forEach((function(e){r.root.style[e]=d[e]}))}else["width","height"].forEach((function(e){r.config[e]&&("number"!=typeof r.config[e]?r.root.style[e]=r.config[e]:r.root.style[e]="".concat(r.config[e],"px"))}));var p=this.root.getBoundingClientRect(),v=p.width,g=p.height,y=p.left,m=p.top;return this.sizeInfo.width=v,this.sizeInfo.height=g,this.sizeInfo.left=y,this.sizeInfo.top=m,!0}},{key:"_initBaseDoms",value:function(){this.topBar=null,this.leftBar=null,this.rightBar=null,this.config.marginControls&&(this.innerContainer=Jx.createDom("xg-video-container","",{"data-index":-1},"xg-video-container"),this.root.appendChild(this.innerContainer))}},{key:"_bindEvents",value:function(){var e=this;["focus","blur"].forEach((function(t){e.on(t,e["on"+t.charAt(0).toUpperCase()+zk(t).call(t,1)])})),nS.forEach((function(t){document&&document.addEventListener(t,e.onFullscreenChange)})),oT.os.isIos&&(this.media.addEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.addEventListener("webkitendfullscreen",this._onWebkitendfullscreen)),this.once(bT,this.resize),this.playFunc=function(){e.config.closeFocusVideoFocus||e.media.focus()},this.once(cT,this.playFunc)}},{key:"_unbindEvents",value:function(){var e=this;this.root.removeEventListener("mousemove",this.mousemoveFunc),nS.forEach((function(t){document.removeEventListener(t,e.onFullscreenChange)})),this.playFunc&&this.off(cT,this.playFunc),this.off(yT,this.canPlayFunc),this.media.removeEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.removeEventListener("webkitendfullscreen",this._onWebkitendfullscreen)}},{key:"_clearUserTimer",value:function(){this.userTimer&&(Jx.clearTimeout(this,this.userTimer),this.userTimer=null)}},{key:"_startInit",value:function(e){var t=this;if(this.media&&(e&&""!==e&&("Array"!==Jx.typeOf(e)||0!==e.length)||(e="",this.emit(xT),$x.logWarn("config.url is null, please get url and run player._startInit(url)"),!this.config.nullUrlStart))){this.handleSource&&(this._detachSourceEvents(this.media),"Array"===Jx.typeOf(e)&&e.length>0?this._attachSourceEvents(this.media,e):this.media.src&&this.media.src===e?e||this.media.removeAttribute("src"):this.media.src=e),"Number"===Jx.typeOf(this.config.volume)&&(this.volume=this.config.volume);var n=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!n.contains(this.media)&&n.insertBefore(this.media,n.firstChild);var i=this.media.readyState;$x.logInfo("_startInit readyState",i),this.config.autoplay&&(!Jx.isMSE(this.media)&&this.load(),(oT.os.isIpad||oT.os.isPhone)&&this.mediaPlay());var r=this.config.startTime;this.__startTime=r>0?r:-1,this.config.startTime=0,i>=2&&this.duration>0?this.canPlayFunc():this.on(yT,this.canPlayFunc),(!this.hasStart||this.state<fP)&&MS.afterInit(this),this.hasStart=!0,this.setState(fP),Jx.setTimeout(this,(function(){t.emit(PT)}),0)}}},{key:"_registerPlugins",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._loadingPlugins=[];var n=this.config.ignores||[],i=this.config.plugins||[],r=this.config.i18n||[];t&&lP.extend(r,this.__i18n);var o=n.join("||").toLowerCase().split("||"),a=this.plugins;i.forEach((function(n){try{var i=n.plugin?n.plugin.pluginName:n.pluginName;if(i&&Bk(o).call(o,i.toLowerCase())>-1)return null;if(!t&&a[i.toLowerCase()])return;if(n.lazy&&n.loader){var r=MS.lazyRegister(e,n);return void(n.forceBeforeInit&&(r.then((function(){var t,n;cw(t=e._loadingPlugins).call(t,Bk(n=e._loadingPlugins).call(n,r),1)})).catch((function(t){var n,i;$x.logError("_registerPlugins:loadingPlugin",t),cw(n=e._loadingPlugins).call(n,Bk(i=e._loadingPlugins).call(i,r),1)})),e._loadingPlugins.push(r)))}return e.registerPlugin(n)}catch(s){$x.logError("_registerPlugins:",s)}}))}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach((function(t){!function(e,t){var n,i,r,o=t.preset&&t.options?new t.preset(t.options,e.config):new t({},e.config),a=o.plugins,s=void 0===a?[]:a,l=o.ignores,u=void 0===l?[]:l,c=o.icons,h=void 0===c?{}:c,f=o.i18n,d=void 0===f?[]:f;e.config.plugins||(e.config.plugins=[]),e.config.ignores||(e.config.ignores=[]),(i=e.config.plugins).push.apply(i,pC(s)),(r=e.config.ignores).push.apply(r,pC(u)),Hk(n=Kk(h)).call(n,(function(t){e.config.icons[t]||(e.config.icons[t]=h[t])}));var p=e.config.i18n||[];d.push.apply(d,pC(p)),e.config.i18n=d}(e,t)}))}},{key:"_getRootByPosition",value:function(e){var t=null;switch(e){case xS.ROOT_RIGHT:this.rightBar||(this.rightBar=Jx.createPositionBar("xg-right-bar",this.root)),t=this.rightBar;break;case xS.ROOT_LEFT:this.leftBar||(this.leftBar=Jx.createPositionBar("xg-left-bar",this.root)),t=this.leftBar;break;case xS.ROOT_TOP:this.topBar||(this.topBar=Jx.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&Jx.addClass(this.topBar,QS)),t=this.topBar;break;default:t=this.innerContainer||this.root}return t}},{key:"registerPlugin",value:function(e,t){var n=MS.formatPluginInfo(e,t),i=n.PLUFGIN,r=n.options,o=this.config.plugins;!MS.checkPluginIfExits(i.pluginName,o)&&o.push(i);var a=MS.getRootByConfig(i.pluginName,this.config);a.root&&(r.root=a.root),a.position&&(r.position=a.position);var s,l=r.position?r.position:r.config&&r.config.position||i.defaultConfig&&i.defaultConfig.position;return!r.root&&"string"==typeof l&&Bk(l).call(l,"controls")>-1?null===(s=this.controls)||void 0===s?void 0:s.registerPlugin(i,r,i.pluginName):(r.root||(r.root=this._getRootByPosition(l)),MS.register(this,i,r))}},{key:"deregister",value:function(e){"string"==typeof e?MS.unRegister(this,e):e instanceof yS&&MS.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deregister(e),t&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var t;if("string"==typeof e?t=e:e instanceof yS&&(t=e.pluginName),t)for(var n=this.config.plugins.length-1;n>-1;n--){if(this.config.plugins[n].pluginName.toLowerCase()===t.toLowerCase()){var i;cw(i=this.config.plugins).call(i,n,1);break}}}},{key:"plugins",get:function(){return MS.getPlugins(this)}},{key:"getPlugin",value:function(e){var t=MS.findPlugin(this,e);return t&&t.pluginName?t:null}},{key:"addClass",value:function(e){this.root&&(Jx.hasClass(this.root,e)||Jx.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&Jx.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return Jx.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,t){this.root&&this.root.setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){this.root&&this.root.removeAttribute(e,t)}},{key:"start",value:function(e){var t=this;if(!(this.state>hP))return e||this.config.url||this.getInitDefinition(),this.hasStart=!0,this.setState(hP),this._registerPlugins(!1),MS.beforeInit(this).then((function(){if(t.config){e||(e=t.url||t.config.url);var n=t.preProcessUrl(e);return t._startInit(n.url)}})).catch((function(e){throw e.fileName="player",e.lineNumber="236",$x.logError("start:beforeInit:",e),e}))}},{key:"switchURL",value:function(e,t){var n=this,i=e;"Object"===Jx.typeOf(e)&&(i=e.url),i=this.preProcessUrl(i).url;var r=this.currentTime;this.__startTime=r;var o=this.paused&&!this.isError;return this.src=i,new jk((function(e,t){var r=function(e){n.off("timeupdate",a),n.off("canplay",a),t(e)},a=function(){n._seekToStartTime(),o&&n.pause(),n.off("error",r),e(!0)};n.once("error",r),i?(oT.os.isAndroid?n.once("timeupdate",a):n.once("canplay",a),n.play()):n.errorHandler("error",{code:6,message:"empty_src"})}))}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state<fP)return this.removeClass(KS),this.addClass(DS),this.start(),void(this._useAutoplay=!0);this.state<pP&&(this.removeClass(KS),!this.isCanplay&&this.addClass(DS));var t=dC(lC(n.prototype),"play",this).call(this);return void 0!==t&&t&&t.then?t.then((function(){e.removeClass(eP),e.addClass(FS),e.state<pP&&($x.logInfo(">>>>playPromise.then"),e.setState(pP),e.emit(TT))})).catch((function(t){if($x.logWarn(">>>>playPromise.catch",t.name),e.media&&e.media.error)return e.onError(),void e.removeClass(DS);"NotAllowedError"===t.name&&(e._errorTimer=Jx.setTimeout(e,(function(){e._errorTimer=null,e.emit(ST),e.addClass(eP),e.removeClass(DS),e.pause(),e.setState(dP)}),0))})):($x.logWarn("video.play not return promise"),this.state<pP&&(this.setState(pP),this.removeClass(eP),this.removeClass(KS),this.removeClass(DS),this.addClass(FS),this.emit(TT))),t}},{key:"mediaPause",value:function(){dC(lC(n.prototype),"pause",this).call(this)}},{key:"videoPause",value:function(){dC(lC(n.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return this.removeClass(NS),vS(this,"play",(function(){return e.mediaPlay()}))}},{key:"pause",value:function(){var e=this;vS(this,"pause",(function(){dC(lC(n.prototype),"pause",e).call(e)}))}},{key:"seek",value:function(e,t){var n=this;if(this.media&&!hw(Number(e))&&this.hasStart){var i=this.config,r=i.isSeekedPlay,o=i.seekedStatus,a=t||(r?"play":o);e=e<0?0:e>this.duration?Mw(this.duration,10):e,!this._isPauseBeforeSeek&&(this._isPauseBeforeSeek=this.paused?2:1),this._onceSeekCanplay&&this.off(pT,this._onceSeekCanplay),this._onceSeekCanplay=function(){switch(n.removeClass(DS),n.isSeeking=!1,a){case"play":n.play();break;case"pause":n.pause();break;default:n._isPauseBeforeSeek>1||n.paused?n.pause():n.play()}n._isPauseBeforeSeek=0,n._onceSeekCanplay=null},this.once(pT,this._onceSeekCanplay),this.state<pP?(this.removeClass(KS),this.currentTime=e,this.play()):this.currentTime=e}}},{key:"getInitDefinition",value:function(){var e,t=this,n=this.config,i=n.definition;!n.url&&i&&i.list&&i.list.length>0&&i.defaultDefinition&&Hk(e=i.list).call(e,(function(e){e.definition===i.defaultDefinition&&(t.config.url=e.url,t.curDefinition=e)}))}},{key:"changeDefinition",value:function(e,t){var n=this,i=this.config.definition;if(Array.isArray(null==i?void 0:i.list)&&i.list.forEach((function(t){(null==e?void 0:e.definition)===t.definition&&(n.curDefinition=t)})),null!=e&&e.bitrate&&"number"!=typeof e.bitrate&&(e.bitrate=Mw(e.bitrate,10)||0),this.emit(HT,{from:t,to:e}),this.hasStart){var r=this.switchURL(e.url,tC({seamless:!1!==i.seamless&&"undefined"!=typeof MediaSource&&"function"==typeof MediaSource.isTypeSupported},e));r&&r.then?r.then((function(){n.emit(BT,{from:t,to:e})})):this.emit(BT,{from:t,to:e})}else this.config.url=e.url}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(bT,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,t=[eP,FS,KS,NS,BS,DS,US,jS,HS];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,t.forEach((function(t){e.removeClass(t)})),this.addClass(KS),this.emit(XT)}},{key:"reset",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(this.resetState(),this.plugins&&(Hk(t).call(t,(function(t){e.deregister(t)})),n)){var i,r=nP();Bw(i=Kk(this.config)).call(i,(function(t){"undefined"===e.config[t]||"plugins"!==t&&"presets"!==t&&"el"!==t&&"id"!==t||(e.config[t]=r[t])}))}}},{key:"destroy",value:function(){var e,t,i=this,r=this.innerContainer,o=this.root,a=this.media;if(o&&a){if(this.hasStart=!1,this._useAutoplay=!1,o.removeAttribute(oS),a.removeAttribute(oS),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),Jx.clearAllTimers(this),this.emit(RT),null===(t=EP)||void 0===t||t.remove(this),MS.destroy(this),pS(this),dC(lC(n.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),r)for(var s=r.children,l=0;l<s.length;l++)r.removeChild(s[l]);!r&&a instanceof window.Node&&o.contains(a)&&!this.config.remainMediaAfterDestroy&&o.removeChild(a),Hk(e=["topBar","leftBar","rightBar","innerContainer"]).call(e,(function(e){i[e]&&o.removeChild(i[e]),i[e]=null}));var u=o.className.split(" ");u.length>0?o.className=Kw(u).call(u,(function(e){return Bk(e).call(e,"xgplayer")<0})).join(" "):o.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach((function(e){i[e]=!1}))}}},{key:"replay",value:function(){var e=this;this.removeClass(US),this.currentTime=0,this.isSeeking=!1,vS(this,"replay",(function(){e.once(pT,(function(){var t=e.mediaPlay();t&&t.catch&&t.catch((function(e){console.log(e)}))})),e.emit(AT),e.onPlay()}))}},{key:"retry",value:function(){var e=this;this.removeClass(jS),this.addClass(HS),vS(this,"retry",(function(){var t=e.currentTime,n=e.config.url,i=Jx.isMSE(e.media)?{url:n}:e.preProcessUrl(n);e.src=i.url,!e.config.isLive&&(e.currentTime=t),e.once(yT,(function(){e.mediaPlay()}))}))}},{key:"changeFullStyle",value:function(e,t,n,i){e&&(i||(i=XS),this._orgCss||(this._orgCss=Jx.filterStyleFromText(e)),Jx.addClass(e,n),t&&t!==e&&!this._orgPCss&&(this._orgPCss=Jx.filterStyleFromText(t),Jx.addClass(t,i),t.setAttribute(oS,this.playerId)))}},{key:"recoverFullStyle",value:function(e,t,n,i){i||(i=XS),this._orgCss&&(Jx.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),Jx.removeClass(e,n),t&&t!==e&&this._orgPCss&&(Jx.setStyleFromCsstext(t,this._orgPCss),this._orgPCss="",Jx.removeClass(t,i),t.removeAttribute(oS))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget,t=this.root,n=this.media;if("video"!==e&&"media"!==e||(e=this[e]),e||(e=t),this._fullScreenOffset={top:Jx.scrollTop(),left:Jx.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get",Jx.getFullScreenEl()===this._fullscreenEl)return this.onFullscreenChange(),jk.resolve();try{for(var i=0;i<iS.length;i++){var r=iS[i];if(e[r]){var o="webkitRequestFullscreen"===r?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):e[r]();return o&&o.then?o:jk.resolve()}}return n.fullscreenEnabled||n.webkitSupportsFullscreen?(n.webkitEnterFullscreen(),jk.resolve()):jk.reject(new Error("call getFullscreen fail"))}catch(a){return jk.reject(new Error("call getFullscreen fail"))}}},{key:"exitFullscreen",value:function(e){if(this.isRotateFullscreen&&this.exitRotateFullscreen(),this._fullscreenEl||Jx.getFullScreenEl()){this.root;var t=this.media;this._fullActionFrom="exit";try{for(var n=0;n<rS.length;n++){var i=rS[n];if(document[i]){var r=document[i]();return r&&r.then?r:jk.resolve()}}return t&&t.webkitSupportsFullscreen?(t.webkitExitFullScreen(),jk.resolve()):jk.reject(new Error("call exitFullscreen fail"))}catch(o){return jk.reject(new Error("call exitFullscreen fail"))}}}},{key:"getCssFullscreen",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var n=t?Um(e="".concat(qS," ")).call(e,GS):GS;this.changeFullStyle(this.root,t,n);var i=this.config.fullscreen,r=void 0===i?{}:i;(!0===r.useCssFullscreen||"function"==typeof r.useCssFullscreen&&r.useCssFullscreen())&&(this.fullscreen=!0,this.emit(NT,!0)),this._cssfullscreenEl=t,this.cssfullscreen=!0,this.emit(FT,!0)}},{key:"exitCssFullscreen",value:function(){var e,t=this._cssfullscreenEl?Um(e="".concat(qS," ")).call(e,GS):GS;if(this.fullscreen){var n=this.config.fullscreen,i=void 0===n?{}:n;!0===i.useCssFullscreen||"function"==typeof i.useCssFullscreen&&i.useCssFullscreen()?(this.recoverFullStyle(this.root,this._cssfullscreenEl,t),this.fullscreen=!1,this.emit(NT,!1)):this.removeClass(t)}else this.recoverFullStyle(this.root,this._cssfullscreenEl,t);this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(FT,!1)}},{key:"getRotateFullscreen",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.cssfullscreen&&this.exitCssFullscreen(t);var n=t?Um(e="".concat(qS," ")).call(e,WS):WS;this._fullscreenEl=t||this.root,this.changeFullStyle(this.root,t,n,YS),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this._rootStyle=this.root.getAttribute("style"),this.root.style.width="".concat(window.innerHeight,"px"),this.emit(NT,!0)}},{key:"exitRotateFullscreen",value:function(e){var t,n=this._fullscreenEl!==this.root?Um(t="".concat(qS," ")).call(t,WS):WS;this.recoverFullStyle(this.root,this._fullscreenEl,n,YS),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(NT,!1),this._rootStyle&&(this.root.style.style=this._rootStyle,this._rootStyle=!1)}},{key:"setRotateDeg",value:function(e){90===window.orientation||-90===window.orientation?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};this.isActive?this.onFocus(e):this.emit(wT,tC({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{ignorePaused:!1};this.isActive?(this._clearUserTimer(),this.emit(ET,tC({paused:this.paused,ended:this.ended},e))):this.onBlur(e)}},{key:"onFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!0,delay:3e3},n=this.innerStates;if(this.isActive=!0,this.removeClass(zS),this._clearUserTimer(),void 0!==t.isLock&&(n.isActiveLocked=t.isLock),!1===t.autoHide||!0===t.isLock||n.isActiveLocked)this._clearUserTimer();else{var i=t&&t.delay?t.delay:this.config.inactive;this.userTimer=Jx.setTimeout(this,(function(){e.userTimer=null,e.blur()}),i)}}},{key:"onBlur",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ignorePaused,t=void 0!==e&&e;if(!this.innerStates.isActiveLocked){var n=this.config.closePauseVideoFocus;this.isActive=!1,(t||n||!this.paused&&!this.ended)&&this.addClass(zS)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(DS),this.removeClass(jS),this.removeClass(HS),this.isCanplay=!0,this.waitTimer&&Jx.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){var e=this;this.isError=!1,this.isSeeking=!1,this.__startTime>0&&(this.duration>0?this._seekToStartTime():this.once(mT,(function(){e._seekToStartTime()})))}},{key:"onLoadstart",value:function(){this.removeClass(jS),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===vP&&this.setState(pP),this.removeClass(NS),this.ended&&this.removeClass(US),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(NS),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this._clearUserTimer(),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(US),this.setState(vP)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(eP),this.removeClass(KS),this.removeClass(DS),this.removeClass(HS),this.addClass(jS)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(tP)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&Jx.clearTimeout(this,this.waitTimer),this.removeClass(HS),this.removeClass(tP)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&Jx.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=Jx.setTimeout(this,(function(){e.addClass(HS),e.emit(DT),Jx.clearTimeout(e,e.waitTimer),e.waitTimer=null}),this.config.minWaitDelay)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1,[KS,NS,US,jS,BS,HS].forEach((function(t){e.removeClass(t)})),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.media.videoHeight&&this.resize(),(this.waitTimer||this.hasClass(HS))&&this.media.readyState>2&&(this.removeClass(HS),Jx.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.state===dP&&this.duration&&(this.setState(pP),this.emit(TT)),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onVolumechange",value:function(){"Number"===Jx.typeOf(this.config.volume)&&(this.config.volume=this.volume)}},{key:"onRatechange",value:function(){this.config.defaultPlaybackRate=this.playbackRate}},{key:"emitUserAction",value:function(e,t,n){if(this.media&&t&&e){var i="String"===Jx.typeOf(e)?e:e.type||"";n.props&&"Array"!==Jx.typeOf(n.props)&&(n.props=[n.props]),this.emit(YT,tC({eventType:i,action:t,currentTime:this.currentTime,duration:this.duration,ended:this.ended,event:e},n))}}},{key:"updateAcc",value:function(e){if(this._accPlayed.t){var t=(new Date).getTime()-this._accPlayed.t;this._accPlayed.acc+=t,this._accPlayed.t=0,("ended"===e||this.ended)&&(this._accPlayed.loopAcc=this._accPlayed.acc)}}},{key:"checkBuffer",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{startDiff:0,endDiff:0})||{},n=t.startDiff,i=void 0===n?0:n,r=t.endDiff,o=void 0===r?0:r,a=this.media.buffered;if(!a||0===a.length||!this.duration)return!0;for(var s=e||this.media.currentTime||.2,l=a.length,u=0;u<l;u++)if(a.start(u)+i<=s&&a.end(u)-o>s)return!0;return!1}},{key:"resizePosition",value:function(){var e,t=this,n=this.videoPos,i=n.vy,r=n.vx,o=n.h,a=n.w,s=this.videoPos.rotate;if(!(s<0&&o<0&&a<0)){var l=this.videoPos._pi;if(!l&&this.media.videoHeight&&(l=this.media.videoWidth/this.media.videoHeight*100),l){this.videoPos.pi=l;var u={rotate:s=s<0?0:s},c=0,h=0,f=1,d=Math.abs(s/90),p=this.root,v=this.innerContainer,g=p.offsetWidth,y=v?v.offsetHeight:p.offsetHeight,m={},_=y,b=g;if(d%2==0)f=o>0?100/o:a>0?100/a:1,u.scale=f,c=i>0?(100-o)/2-i:0,u.y=2===d?0-c:c,h=r>0?(100-a)/2-r:0,u.x=2===d?0-h:h,m.width="".concat(b,"px"),m.height="".concat(_,"px"),m.maxWidth="",m.maxHeight="";else if(d%2==1){_=g;var k=y-g;h=-k/2/(b=y)*100,u.x=3===d?h+i/2:h-i/2,c=k/2/_*100,u.y=3===d?c+r/2:c-r/2,u.scale=f,m.width="".concat(b,"px"),m.maxWidth="".concat(b,"px"),m.height="".concat(_,"px"),m.maxHeight="".concat(_,"px")}var w=Jx.getTransformStyle(u,this.media.style.transform||this.media.style.webkitTransform);m.transform=w,m.webkitTransform=w,Hk(e=Kk(m)).call(e,(function(e){t.media.style[e]=m[e]}))}}}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{h:0,y:0,x:0,w:0};if(this.media&&e&&e.h){var t=this.videoPos;t.h=100*e.h||0,t.w=100*e.w||0,t.vx=100*e.x||0,t.vy=100*e.y||0,this.resizePosition()}}},{key:"setConfig",value:function(e){var t,n=this;e&&Hk(t=Kk(e)).call(t,(function(t){if("plugins"!==t){n.config[t]=e[t];var i=n.plugins[t.toLowerCase()];i&&"Function"===Jx.typeOf(i.setConfig)&&i.setConfig(e[t])}}))}},{key:"playNext",value:function(e){var t=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,vS(this,"playnext",(function(){t.start(),t.emit(GT,e)}))}},{key:"resize",value:function(){var e=this;if(this.media){var t=this.root.getBoundingClientRect();this.sizeInfo.width=t.width,this.sizeInfo.height=t.height,this.sizeInfo.left=t.left,this.sizeInfo.top=t.top;var n=this.media,i=n.videoWidth,r=n.videoHeight,o=this.config,a=o.fitVideoSize,s=o.videoFillMode;if("fill"!==s&&"cover"!==s&&"contain"!==s||this.setAttribute("data-xgfill",s),r&&i){this._videoHeight=r,this._videoWidth=i;var l=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,u=t.width,c=t.height-l,h=Mw(i/r*1e3,10),f=Mw(u/c*1e3,10),d=u,p=c,v={};"auto"===a&&f>h||"fixWidth"===a?(p=u/h*1e3,this.config.fluid?v.paddingTop="".concat(100*p/d,"%"):v.height="".concat(p+l,"px")):("auto"===a&&f<h||"fixHeight"===a)&&(d=h*c/1e3,v.width="".concat(d,"px")),this.fullscreen||this.cssfullscreen||Kk(v).forEach((function(t){e.root.style[t]=v[t]})),("fillHeight"===s&&f<h||"fillWidth"===s&&f>h)&&this.setAttribute("data-xgfill","cover");var g={videoScale:h,vWidth:d,vHeight:p,cWidth:d,cHeight:p+l};this.resizePosition(),this.emit(zT,g)}}}},{key:"updateObjectPosition",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.media.updateObjectPosition?this.media.updateObjectPosition(t,n):this.media.style.objectPosition=Um(e="".concat(100*t,"% ")).call(e,100*n,"%")}},{key:"setState",value:function(e){var t;$x.logInfo("setState",Um(t="state from:".concat(gP[this.state]," to:")).call(t,gP[e])),this._state=e}},{key:"preProcessUrl",value:function(e,t){var n=this.config,i=n.preProcessUrl,r=n.preProcessUrlOptions,o=iE({},r,t);return Jx.isBlob(e)||"function"!=typeof i?{url:e}:i(e,o)}},{key:"_seekToStartTime",value:function(){this.__startTime>0&&this.duration>0&&(this.currentTime=this.__startTime>this.duration?this.duration:this.__startTime,this.__startTime=-1)}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"==typeof e&&(this._hasStart=e,!1===e&&this.setState(cP),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===pP||this._state===vP},set:function(e){e?this.setState(pP):this._state>=pP&&this.setState(fP)}},{key:"definitionList",get:function(){return this.config&&this.config.definition&&this.config.definition.list||[]},set:function(e){var t=this,n=this.config.definition,i=null,r=null;n.list=e,this.emit("resourceReady",e),e.forEach((function(e){var o;(null===(o=t.curDefinition)||void 0===o?void 0:o.definition)===e.definition&&(i=e),n.defaultDefinition===e.definition&&(r=e)})),!r&&e.length>0&&(r=e[0]),i?this.changeDefinition(i):r&&this.changeDefinition(r)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var t=this.media.getVideoPlaybackQuality();return e.dropped=t.droppedVideoFrames||0,e.total=t.totalVideoFrames||0,e.corrupted=t.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=Mw(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var t,n;0!==Kw(t=lP.langKeys).call(t,(function(t){return t===e})).length||"zh"===e?(this.config.lang=e,MS.setLang(e,this)):console.error(Um(n="Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [")).call(n,lP.langKeys.join(),"] "))}},{key:"i18n",get:function(){var e=this.config.lang;return"zh"===e&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return aT}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return dC(lC(n.prototype),"readyState",this)}},{key:"error",get:function(){var e=dC(lC(n.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return dC(lC(n.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return!(null===this._fullScreenOffset)}},{key:"cumulateTime",get:function(){var e=this._accPlayed,t=e.acc,n=e.t;return n?(new Date).getTime()-n+t:t}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"videoRotateDeg",get:function(){return this.videoPos.rotate},set:function(e){(e=Jx.convertDeg(e))%90==0&&e!==this.videoPos.rotate&&(this.videoPos.rotate=e,this.resizePosition())}},{key:"avgSpeed",get:function(){return wP},set:function(e){wP=e}},{key:"realTimeSpeed",get:function(){return kP},set:function(e){kP=e}},{key:"offsetCurrentTime",get:function(){return this._offsetInfo.currentTime||0},set:function(e){this._offsetInfo.currentTime=e}},{key:"offsetDuration",get:function(){return this._offsetInfo.duration||0},set:function(e){this._offsetInfo.duration=e||0}},{key:"hook",value:function(e,t){var n;return sS.call.apply(sS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){var n;return uS.call.apply(uS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){var n;return cS.call.apply(cS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"usePluginHooks",value:function(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return hS.call.apply(hS,Um(i=[this]).call(i,zk(Array.prototype).call(arguments)))}},{key:"removePluginHooks",value:function(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return fS.call.apply(fS,Um(i=[this]).call(i,zk(Array.prototype).call(arguments)))}},{key:"setUserActive",value:function(e,t){var n;"boolean"==typeof t&&t!==this.muted&&(this.addInnerOP("volumechange"),Jx.typeOf(t)===Boolean&&(this.muted=t)),null===(n=EP)||void 0===n||n.setActive(this.playerId,e)}}],[{key:"debugger",get:function(){return $x.config.debug},set:function(e){$x.config.debug=e}},{key:"instManager",get:function(){return EP},set:function(e){EP=e}},{key:"getCurrentUserActivePlayerId",value:function(){var e;return null===(e=EP)||void 0===e?void 0:e.getActiveId()}},{key:"setCurrentUserActive",value:function(e,t){var n;null===(n=EP)||void 0===n||n.setActive(e,t)}},{key:"isHevcSupported",value:function(){return oT.isHevcSupported()}},{key:"probeConfigSupported",value:function(e){return oT.probeConfigSupported(e)}},{key:"install",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]||(n.plugins[e]=t)}},{key:"use",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]=t}}]),n}(eS);aC(CP,"defaultPreset",null),aC(CP,"XgVideoProxy",null),CP.instManager=_P.getInstance();function xP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var TP=EE;An({target:"Function",proto:!0,forced:Function.bind!==TP},{bind:TP});var SP,PP,AP=zc("Function").bind,RP=se,IP=AP,OP=Function.prototype,MP=n((function(e){var t=e.bind;return e===OP||RP(OP,e)&&t===OP.bind?IP:t}));function LP(e,t){var n;return(LP=dh?MP(n=dh).call(n):function(e,t){return e.__proto__=t,e})(e,t)}function DP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Oc(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Rc(e,"prototype",{writable:!1}),t&&LP(e,t)}function NP(e){var t;return(NP=dh?MP(t=Fc).call(t):function(e){return e.__proto__||Fc(e)})(e)}function FP(){if("undefined"==typeof Reflect||!HE)return!1;if(HE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HE(Boolean,[],(function(){}))),!0}catch(e){return!1}}function UP(e){var t=FP();return function(){var n,i=NP(e);if(t){var r=NP(this).constructor;n=HE(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xP(e)}(this,n)}}function HP(e,t,n){var i;FP()?HP=MP(i=HE).call(i):HP=function(e,t,n){var i=[null];hh(i).apply(i,t);var r=new(MP(Function).apply(e,i));return n&&LP(r,n.prototype),r};return HP.apply(null,arguments)}function jP(e){var t="function"==typeof Ok?new Ok:void 0;return jP=function(e){if(null===e||(n=e,-1===Om(i=Function.toString.call(n)).call(i,"[native code]")))return e;var n,i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return HP(e,arguments,NP(this).constructor)}return r.prototype=Oc(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),LP(r,e)},jP(e)}var BP=function(e){return e[e.MANIFEST_HLS_ERROR=1100]="MANIFEST_HLS_ERROR",e[e.MANIFEST_DASH_ERROR=1200]="MANIFEST_DASH_ERROR",e[e.NETWORK=2100]="NETWORK",e[e.NETWORK_TIMEOUT=2101]="NETWORK_TIMEOUT",e[e.NETWORK_FORBIDDEN=2103]="NETWORK_FORBIDDEN",e[e.NETWORK_NOTFOUND=2104]="NETWORK_NOTFOUND",e[e.NETWORK_RANGE_NOT_SATISFIABLE=2116]="NETWORK_RANGE_NOT_SATISFIABLE",e[e.DEMUX_FLV_ERROR=3100]="DEMUX_FLV_ERROR",e[e.DEMUX_HLS_ERROR=3200]="DEMUX_HLS_ERROR",e[e.DEMUX_MP4_ERROR=3300]="DEMUX_MP4_ERROR",e[e.DEMUX_FMP4_ERROR=3400]="DEMUX_FMP4_ERROR",e[e.DEMUX_SIDX_ERROR=3410]="DEMUX_SIDX_ERROR",e[e.REMUX_FMP4_ERROR=4100]="REMUX_FMP4_ERROR",e[e.REMUX_MP4_ERROR=4200]="REMUX_MP4_ERROR",e[e.MEDIA_ERR_ABORTED=5101]="MEDIA_ERR_ABORTED",e[e.MEDIA_ERR_NETWORK=5102]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=5103]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=5104]="MEDIA_ERR_SRC_NOT_SUPPORTED",e[e.MEDIA_ERR_CODEC_NOT_SUPPORTED=5105]="MEDIA_ERR_CODEC_NOT_SUPPORTED",e[e.MEDIA_ERR_URL_EMPTY=5106]="MEDIA_ERR_URL_EMPTY",e[e.MEDIA_MSE_ADD_SB=5200]="MEDIA_MSE_ADD_SB",e[e.MEDIA_MSE_APPEND_BUFFER=5201]="MEDIA_MSE_APPEND_BUFFER",e[e.MEDIA_MSE_OTHER=5202]="MEDIA_MSE_OTHER",e[e.MEDIA_MSE_FULL=5203]="MEDIA_MSE_FULL",e[e.MEDIA_MSE_HIJACK=5204]="MEDIA_MSE_HIJACK",e[e.MEDIA_EME_HIJACK=5301]="MEDIA_EME_HIJACK",e[e.DRM_LICENSE=7100]="DRM_LICENSE",e[e.DRM_UNSUPPORTED=7101]="DRM_UNSUPPORTED",e[e.DRM_NO_MEDIA_KEY=7103]="DRM_NO_MEDIA_KEY",e[e.DRM_NO_KEY_SESSION=7104]="DRM_NO_KEY_SESSION",e[e.DRM_GENERATE_QUEST_FAIL=7105]="DRM_GENERATE_QUEST_FAIL",e[e.DRM_LACK_SERVER_CERTIFICATE_PATH=7106]="DRM_LACK_SERVER_CERTIFICATE_PATH",e[e.DRM_LACK_SERVER_PROCESS_SPC_PATH=7107]="DRM_LACK_SERVER_PROCESS_SPC_PATH",e[e.DRM_LICENSE_FAIL=7108]="DRM_LICENSE_FAIL",e[e.DRM_KEY_ERROR=7109]="DRM_KEY_ERROR",e[e.DRM_CERT_FAIL=7110]="DRM_CERT_FAIL",e[e.DRM_CUSTOM_LICENSE=7200]="DRM_CUSTOM_LICENSE",e[e.OTHER=8e3]="OTHER",e[e.RUNTIME_NO_CANPLAY_ERROR=9001]="RUNTIME_NO_CANPLAY_ERROR",e[e.RUNTIME_BUFFERBREAK_ERROR=9002]="RUNTIME_BUFFERBREAK_ERROR",e[e.RUNTIME_WAITING_TIMEOUT_ERROR=9003]="RUNTIME_WAITING_TIMEOUT_ERROR",e[e.MODULE_LOAD_ERROR=110]="MODULE_LOAD_ERROR",e.UNKNOWN="UNKNOWN",e}(BP||{}),KP=(zy(SP={},2100,{messageTextKey:"NETWORK",level:"Error"}),zy(SP,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),zy(SP,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),zy(SP,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),zy(SP,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),zy(SP,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),zy(SP,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),zy(SP,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),zy(SP,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),zy(SP,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),zy(SP,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),zy(SP,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),zy(SP,7101,{messageTextKey:"DRM_UNSUPPORTED",level:"Fatal"}),zy(SP,7103,{messageTextKey:"DRM_NO_MEDIA_KEY",level:"Fatal"}),zy(SP,7104,{messageTextKey:"DRM_NO_KEY_SESSION",level:"Fatal"}),zy(SP,7105,{messageTextKey:"DRM_GENERATE_QUEST_FAIL",level:"Fatal"}),zy(SP,7106,{messageTextKey:"DRM_LACK_SERVER_CERTIFICATE_PATH",level:"Fatal"}),zy(SP,7107,{messageTextKey:"DRM_LACK_SERVER_PROCESS_SPC_PATH",level:"Fatal"}),zy(SP,7108,{messageTextKey:"DRM_LICENSE_FAIL",level:"Fatal"}),zy(SP,7109,{messageTextKey:"DRM_KEY_ERROR",level:"Fatal"}),zy(SP,7110,{messageTextKey:"DRM_CERT_FAIL",level:"Fatal"}),SP),zP=(zy(PP={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),zy(PP,"network",{messageTextKey:"NETWORK",level:"Error"}),zy(PP,"demux",{messageTextKey:"DEMUX",level:"Error"}),zy(PP,"remux",{messageTextKey:"REMUX",level:"Error"}),zy(PP,"media",{messageTextKey:"MEDIA",level:"Error"}),zy(PP,"drm",{messageTextKey:"DRM",level:"Error"}),zy(PP,"other",{messageTextKey:"OTHER",level:"Error"}),zy(PP,"runtime",{messageTextKey:"RUNTIME",level:"Error"}),PP),VP=function(e){DP(n,e);var t=UP(n);function n(e,i){var r,o,a,s,l,u,c;_m(this,n);var h="string"==typeof e?{message:e}:e,f=null!==(r=null!==(o=null!==(a=null==i?void 0:i.getText(null==h?void 0:h.messageTextKey))&&void 0!==a?a:null==h?void 0:h.message)&&void 0!==o?o:null==h||null===(s=h.error)||void 0===s?void 0:s.message)&&void 0!==r?r:null==i?void 0:i.getText("UNKNOWN");return zy(xP(c=t.call(this,f)),"errorCode",void 0),zy(xP(c),"level",void 0),zy(xP(c),"ext",void 0),c.errorCode=null!==(l=null==h?void 0:h.errorCode)&&void 0!==l?l:"UNKNOWN",c.level=null!==(u=null==h?void 0:h.level)&&void 0!==u?u:"Error",c.ext=null==h?void 0:h.ext,c}return km(n)}(jP(Error));function GP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new VP(Gy(Gy({errorCode:e},KP[e]),t),n)}function WP(e,t){var n,i,r=KP[e.errorCode]||zP[e.errorType],o=e.errorCode;return new VP({messageTextKey:null==r?void 0:r.messageTextKey,message:null!==(n=null==e?void 0:e.message)&&void 0!==n?n:o,errorCode:o,level:null!==(i=null==r?void 0:r.level)&&void 0!==i?i:"Error",ext:e},t)}var YP=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){Jx.addClass(this.root,"hide")}},{key:"show",value:function(e){Jx.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){"string"==typeof e.player.config.poster&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(hT,(function(){e.isEndedShow&&Jx.removeClass(e.root,"hide")})),this.config.hideCanplay?(this.once(vT,(function(){e.onTimeUpdate()})),this.on(IT,(function(){Jx.removeClass(e.root,"hide"),Jx.addClass(e.root,"xg-showplay"),e.once(vT,(function(){e.onTimeUpdate()}))}))):this.on(cT,(function(){Jx.addClass(e.root,"hide")}))}},{key:"setConfig",value:function(e){var t=this;Kk(e).forEach((function(n){t.config[n]=e[n]}));var n=this.config.poster;this.update(n)}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?Jx.removeClass(this.root,"xg-showplay"):this.once(vT,(function(){e.onTimeUpdate()}))}},{key:"update",value:function(e){e&&(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"getBgSize",value:function(e){var t="";switch(e){case"cover":t="cover";break;case"contain":t="contain";break;case"fixHeight":t="auto 100%";break;default:t=""}return t?"background-size: ".concat(t,";"):""}},{key:"render",value:function(){var e,t,n=this.config,i=n.poster,r=n.hideCanplay,o=n.fillMode,a=n.notHidden,s=this.getBgSize(o),l=i?Um(e="background-image:url(".concat(i,");")).call(e,s):s;return Um(t='<xg-poster class="xgplayer-poster '.concat(a?"xg-not-hidden":r?"xg-showplay":"",'" style="')).call(t,l,'">\n </xg-poster>')}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,notHidden:!1,poster:"",fillMode:"fixWidth"}}}]),n}(RS);function XP(){return(new DOMParser).parseFromString('<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n',"image/svg+xml").firstChild}function qP(){return(new DOMParser).parseFromString('<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n',"image/svg+xml").firstChild}var $P={};function ZP(e){var t;e?window.clearTimeout(e):Hk(t=Kk($P)).call(t,(function(e){window.clearTimeout($P[e].id),delete $P[e]}))}var JP=function(e){sC(n,e);var t=fC(n);function n(e){var i;return iC(this,n),aC(cC(i=t.call(this,e)),"onPlayerReset",(function(){i.autoPlayStart=!1;var e="auto"===i.config.mode?"auto-hide":"hide";i.setAttr("data-state","play"),Jx.removeClass(i.root,e),i.show()})),aC(cC(i),"onAutoplayStart",(function(){if(!i.autoPlayStart){var e="auto"===i.config.mode?"auto-hide":"hide";Jx.addClass(i.root,e),i.autoPlayStart=!0,i.toggleTo("play")}})),i.autoPlayStart=!1,i}return oC(n,[{key:"afterCreate",value:function(){var e=this.playerConfig;this.initIcons(),this.listenEvents(),this.bindClickEvents(),e.autoplay||this.show()}},{key:"listenEvents",value:function(){var e=this,t=this.player,n=this.playerConfig;this.once(CT,(function(){n&&(n.lang&&"en"===n.lang?Jx.addClass(t.root,"lang-is-en"):"jp"===n.lang&&Jx.addClass(t.root,"lang-is-jp"))})),this.on(TT,this.onAutoplayStart),this.on(ST,(function(){var t="auto"===e.config.mode?"auto-hide":"hide";e.setAttr("data-state","play"),Jx.removeClass(e.root,t),e.show()})),this.on(cT,(function(){e.toggleTo("play")})),this.on(fT,(function(){e.toggleTo("pause")})),this.on(XT,(function(){e.onPlayerReset()}))}},{key:"bindClickEvents",value:function(){var e=this;this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(t){t.cancelable&&t.preventDefault(),t.stopPropagation();var n=e.player.paused;e.emitUserAction(t,"switch_play_pause",{props:"paused",from:n,to:!n})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:XP,class:"xg-icon-play"},startPause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){Jx.addClass(this.root,"hide")}},{key:"show",value:function(e){Jx.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){Jx.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){Jx.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var t=this;this._animateId=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:null,end:null};return $P[e]&&window.clearTimeout($P[e].id),$P[e]={},n.start&&n.start(),$P[e].id=window.setTimeout((function(){n.end&&n.end(),window.clearTimeout($P[e].id),delete $P[e]}),t),$P[e].id}("pauseplay",400,{start:function(){Jx.addClass(t.root,"interact"),t.show(),t.switchStatus(!0)},end:function(){Jx.removeClass(t.root,"interact"),!e&&t.hide(),t._animateId=null}})}},{key:"endAnimate",value:function(){Jx.removeClass(this.root,"interact"),ZP(this._animateId),this._animateId=null}},{key:"switchPausePlay",value:function(e){var t=this.player;(e.cancelable&&e.preventDefault(),e.stopPropagation(),t.state<cP)||(this.player.paused||t.state!==pP?t.play():t.pause())}},{key:"onPlayPause",value:function(e){this.toggleTo(e)}},{key:"toggleTo",value:function(e){var t=this.config,n=this.player;if(n&&!(n.state<pP)&&this.autoPlayStart){if("show"===t.mode)return this.switchStatus(),void this.show();if("auto"!==t.mode){if(t.isShowPause&&n.paused&&!n.ended||t.isShowEnd&&n.ended)return this.switchStatus(),this.show(),void this.endAnimate();if(t.disableAnimate)return this.switchStatus(),void this.hide();if("play"===e)this.autoPlayStart?this.animate():this.hide();else{if(!this.autoPlayStart||n.ended)return;this.animate()}}else this.switchStatus()}}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.clickHandler),ZP(this._animateId)}},{key:"render",value:function(){var e=this.playerConfig.autoplay?"auto"===this.config.mode?"auto-hide":"hide":"";return'\n <xg-start class="xgplayer-start '.concat(e,'">\n <xg-start-inner></xg-start-inner>\n </xg-start>')}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),n}(RS),QP=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"render",value:function(){var e=this.config.innerHtml,t=Jx.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)t.appendChild(e);else if(e&&"string"==typeof e)t.innerHTML=e;else{for(var n="",i=1;i<=12;i++)n+='<div class="xgplayer-enter-bar'.concat(i,'"></div>');t.innerHTML='<div class="xgplayer-enter-spinner">'.concat(n,"</div>")}return t}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),n}(RS);function eA(e,t,n){try{var i,r;return Um(i=Um(r=' <div class="xg-tips '.concat(n?"hide":" ",'" lang-key="')).call(r,e.i18nKeys[t],'">\n ')).call(i,e.i18n[t],"\n </div>")}catch(o){return'<div class="xg-tips hide"></div>'}}var tA=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e,t="MINISCREEN";return Um(e='\n <xg-icon class="xgplayer-miniicon">\n <div class="xgplayer-icon btn-text"><span class="icon-text" lang-key="'.concat(this.i18nKeys[t],'">')).call(e,this.i18n[t],"</span></div>\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:10}}}]),n}(RS);function nA(e){var t=ZC(e);return-1===Bk(e).call(e,"%")&&!hw(t)&&t}var iA=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],rA=iA.length;function oA(e){if("string"==typeof e&&(e=document.querySelector(e)),e&&"object"===nC(e)&&e.nodeType){var t=function(e){return window.getComputedStyle(e)}(e);if("none"===t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<rA;t++)e[iA[t]]=0;return e}();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"===t.boxSizing,r=0;r<rA;r++){var o=iA[r],a=t[o],s=ZC(a);n[o]=hw(s)?0:s}var l=n.paddingLeft+n.paddingRight,u=n.paddingTop+n.paddingBottom,c=n.marginLeft+n.marginRight,h=n.marginTop+n.marginBottom,f=n.borderLeftWidth+n.borderRightWidth,d=n.borderTopWidth+n.borderBottomWidth,p=i,v=nA(t.width);!1!==v&&(n.width=v+(p?0:l+f));var g=nA(t.height);return!1!==g&&(n.height=g+(p?0:u+d)),n.innerWidth=n.width-(l+f),n.innerHeight=n.height-(u+d),n.outerWidth=n.width+c,n.outerHeight=n.height+h,n}}function aA(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.identifier===t)return i}}var sA="dragStart",lA="dragMove",uA="dragEnded",cA={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]},hA=function(e){sC(n,e);var t=fC(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return iC(this,n),(i=t.call(this)).isEnabled=!0,i.isDragging=!1,i.isDown=!1,i.position={},i.downPoint={},i.dragPoint={x:0,y:0},i.startPos={x:0,y:0},i._root=e instanceof Element?e:document.querySelector(e),i._handlerDom=r.handle instanceof Element?r.handle:document.querySelector(r.handle),i._root&&i._handlerDom?(i._bindStartEvent(),i):hC(i)}return oC(n,[{key:"_bindStartEvent",value:function(){var e,t=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),Hk(e=cA[this._startKey]).call(e,(function(e){t["on".concat(e)]=t["on".concat(e)].bind(t)}))}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var t=this;if(e){var n=cA[this._startKey];Hk(n).call(n,(function(e){window.addEventListener(e,t["on".concat(e)])})),this._boundPointerEvents=n}}},{key:"_unbindPostStartEvents",value:function(){var e,t=this;this._boundPointerEvents&&(Hk(e=this._boundPointerEvents).call(e,(function(e){window.removeEventListener(e,t["on".concat(e)])})),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;this.isDragging&&(this.positionDrag(),window.requestAnimationFrame((function(){e.animate()})))}},{key:"positionDrag",value:function(){var e,t=Um(e="translate3d(".concat(this.dragPoint.x,"px, ")).call(e,this.dragPoint.y,"px, 0)");this._root.style.transform=t,this._root.style.webKitTransform=t}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var t=e.changedTouches[0];this.dragStart(e,t),this.touchIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragMove(e,t)}},{key:"ontouchend",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragEnd(e,t),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragCancel(e,t)}},{key:"dragStart",value:function(e,t){if(this._root&&!this.isDown&&this.isEnabled){this.downPoint=t,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var n=oA(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-n.height,this.startPos.maxX=window.innerWidth-n.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,t){this.isDragging=!0,this.animate(),this.emit(sA,this.startPos)}},{key:"dragEnd",value:function(e,t){this._root&&(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(uA)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,t){var n={x:t.pageX-this.downPoint.pageX,y:t.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this.dragRealStart(e,t),n}},{key:"dragMove",value:function(e,t){if(e=e||window.event,this.isDown){var n=this.startPos,i=n.x,r=n.y,o=this._dragPointerMove(e,t),a=o.x,s=o.y;a=this.checkContain("x",a,i),s=this.checkContain("y",s,r),this.position.x=i+a,this.position.y=r+s,this.dragPoint.x=a,this.dragPoint.y=s,this.emit(lA,this.position)}}},{key:"dragCancel",value:function(e,t){this.dragEnd(e,t)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,t,n){return t+n<0?0-n:"x"===e&&t+n>this.startPos.maxX?this.startPos.maxX-n:"y"===e&&t+n>this.startPos.maxY?this.startPos.maxY-n:t}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=hw(t)?0:t,this.position.y=hw(n)?0:n,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var t=e.transform;if(0===Bk(t).call(t,"matrix")){var n=t.split(","),i=0===Bk(t).call(t,"matrix3d")?12:4,r=Mw(n[i],10),o=Mw(n[i+1],10);this.position.x+=r,this.position.y+=o}}},{key:"_getPositionCoord",value:function(e,t){if(-1!==Bk(e).call(e,"%")){var n=oA(this._root.parentNode);return n?ZC(e)/100*n[t]:0}return Mw(e,10)}}]),n}(_C),fA=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n),aC(cC(i=t.call(this,e)),"onCancelClick",(function(e){i.exitMini(),i.isClose=!0})),aC(cC(i),"onCenterClick",(function(e){var t=cC(i).player;t.paused?t.play():t.pause()})),aC(cC(i),"onScroll",(function(e){if(!(!window.scrollY&&0!==window.scrollY||Math.abs(window.scrollY-i.pos.scrollY)<50)){var t=Mw(Jx.getCss(i.player.root,"height"));t+=i.config.scrollTop,i.pos.scrollY=window.scrollY,window.scrollY>t+5?!i.isMini&&!i.isClose&&i.getMini():window.scrollY<=t&&(i.isMini&&i.exitMini(),i.isClose=!1)}})),i.isMini=!1,i.isClose=!1;var r=cC(i).config;return i.pos={left:r.left<0?window.innerWidth-r.width-20:r.left,top:r.top<0?window.innerHeight-r.height-20:r.top,height:i.config.height,width:i.config.width,scrollY:window.scrollY||0},i.lastStyle=null,i}return oC(n,[{key:"beforeCreate",value:function(e){"boolean"==typeof e.player.config.mini&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(fT,(function(){e.setAttr("data-state","pause")})),this.on(cT,(function(){e.setAttr("data-state","play")}))}},{key:"onPluginsReady",value:function(){var e=this,t=this.player;if(!this.config.disable){if(this.config.isShowIcon){var n={config:{onClick:function(){e.getMini()}}};t.controls.registerPlugin(tA,n,tA.pluginName)}var i=Jx.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",i,this.onCancelClick),this.bind(".play-icon",i,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new hA(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:XP,class:"xg-icon-play"},pause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e,t=this;if(!this.isMini){var n=this.player,i=this.playerConfig,r=this.config.target||this.player.root;this.lastStyle={},Jx.addClass(n.root,"xgplayer-mini"),Hk(e=["width","height","top","left"]).call(e,(function(e){t.lastStyle[e]=r.style[e],r.style[e]="".concat(t.pos[e],"px")})),i.fluid&&(r.style["padding-top"]=""),this.emit(UT,!0),n.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var t,n=this.player,i=this.playerConfig,r=this.config.target||this.player.root;(Jx.removeClass(n.root,"xgplayer-mini"),this.lastStyle)&&Hk(t=Kk(this.lastStyle)).call(t,(function(t){r.style[t]=e.lastStyle[t]}));this.lastStyle=null,i.fluid&&(n.root.style.width="100%",n.root.style.height="0",n.root.style["padding-top"]="".concat(100*i.height/i.width,"%")),this.emit(UT,!1),this.isMini=n.isMini=!1}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=Jx.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return'\n <xg-mini-layer class="xg-mini-layer">\n <xg-mini-header class="xgplayer-mini-header">\n '.concat(eA(this,"MINI_DRAG",this.playerConfig.isHideTips),'\n </xg-mini-header>\n <div class="mini-cancel-btn">\n <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n <path fill="#fff" fill-rule="evenodd" d="M3.99 3.49a1 1 0 0 1 1.414 0L10 8.085l4.596-4.595a1 1 0 1 1 1.414 1.414L11.414 9.5l4.596 4.596a1 1 0 0 1 .084 1.32l-.084.094a1 1 0 0 1-1.414 0L10 10.914 5.404 15.51a1 1 0 0 1-1.414-1.414L8.585 9.5 3.99 4.904a1 1 0 0 1-.084-1.32z"></path>\n </svg>\n </div>\n <div class="play-icon">\n </div>\n </xg-mini-layer>')}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),n}(RS),dA={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},pA=["videoClick","videoDbClick"],vA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onMouseMove",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;n.isActive||(n.focus({autoHide:!r.closeDelayBlur}),!r.closeFocusVideoFocus&&n.media.focus())})),aC(cC(i),"onMouseEnter",(function(e){var t=cC(i),n=t.playerConfig,r=t.player;!n.closeFocusVideoFocus&&r.media.focus(),n.closeDelayBlur?r.focus({autoHide:!1}):r.focus(),i.emit(LT)})),aC(cC(i),"onMouseLeave",(function(e){var t=i.playerConfig,n=t.closePlayerBlur,r=t.leavePlayerTime,o=t.closeDelayBlur;n||o||(r?i.player.focus({autoHide:!0,delay:r}):i.player.blur({ignorePaused:!0})),i.emit(MT)})),aC(cC(i),"onVideoClick",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;e.target&&r.closeVideoClick||e.target!==n.root&&e.target!==n.media&&e.target!==n.innerContainer&&e.target!==n.media.__canvas||(e.preventDefault(),r.closeVideoStopPropagation||e.stopPropagation(),i._clickCount++,i.clickTimer&&(clearTimeout(i.clickTimer),i.clickTimer=null),i.clickTimer=setTimeout((function(){i._clickCount&&(i._clickCount--,vS(cC(i),pA[0],(function(e,t){i.switchPlayPause(t.e)}),{e:e,paused:n.paused}),clearTimeout(i.clickTimer),i.clickTimer=null)}),300))})),aC(cC(i),"onVideoDblClick",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;r.closeVideoDblclick||!e.target||e.target!==n.media&&e.target!==n.media.__canvas||(!r.closeVideoClick&&i._clickCount<2?i._clickCount=0:(i._clickCount=0,i.clickTimer&&(clearTimeout(i.clickTimer),i.clickTimer=null),e.preventDefault(),e.stopPropagation(),vS(cC(i),pA[1],(function(e,t){i.emitUserAction(t.e,"switch_fullscreen",{props:"fullscreen",from:n.fullscreen,to:!n.fullscreen}),n.fullscreen?n.exitFullscreen():n.getFullscreen()}),{e:e,fullscreen:n.fullscreen})))})),i}return oC(n,[{key:"afterCreate",value:function(){var e=this;this._clickCount=0,Hk(pA).call(pA,(function(t){e.__hooks[t]=null})),"mobile"===this.playerConfig.isMobileSimulateMode||"mobile"===oT.device&&!oT.os.isIpad||this.initEvents()}},{key:"initEvents",value:function(){var e,t=this,n=this.player,i=n.media,r=n.root,o=this.playerConfig.enableContextmenu;r&&r.addEventListener("click",this.onVideoClick,!1),r&&r.addEventListener("dblclick",this.onVideoDblClick,!1),Hk(e=Kk(dA)).call(e,(function(e){r.addEventListener(e,t[dA[e]],!1)})),!o&&i&&i.addEventListener("contextmenu",this.onContextmenu,!1)}},{key:"switchPlayPause",value:function(e){var t=this.player;this.emitUserAction(e,"switch_play_pause",{props:"paused",from:t.paused,to:!t.paused}),t.ended?t.duration!==1/0&&t.duration>0&&t.replay():t.paused?t.play():t.pause()}},{key:"onContextmenu",value:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e,t=this,n=this.player,i=n.video,r=n.root;this.clickTimer&&clearTimeout(this.clickTimer),r.removeEventListener("click",this.onVideoClick,!1),r.removeEventListener("dblclick",this.onVideoDblClick,!1),i.removeEventListener("contextmenu",this.onContextmenu,!1),Hk(e=Kk(dA)).call(e,(function(e){r.removeEventListener(e,t[dA[e]],!1)}))}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),n}(yS),gA="press",yA="pressend",mA="doubleclick",_A="click",bA="touchmove",kA="touchstart",wA="touchend",EA={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},CA={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function xA(e){return e&&e.length>0?e[e.length-1]:null}var TA=function(){function e(t){var n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{eventType:"touch"};iC(this,e),aC(this,"onTouchStart",(function(e){var t=i._pos,n=i.root,r=xA(e.touches);t.x=r?Mw(r.pageX,10):e.pageX,t.y=r?Mw(r.pageX,10):e.pageX,t.start=!0,i.__setPress(e),n.addEventListener(i.events.end,i.onTouchEnd),n.addEventListener(i.events.cancel,i.onTouchCancel),n.addEventListener(i.events.move,i.onTouchMove),i.trigger(kA,e)})),aC(this,"onTouchCancel",(function(e){i.onTouchEnd(e)})),aC(this,"onTouchEnd",(function(e){var t=i._pos,n=i.root;i.__clearPress(),n.removeEventListener(i.events.cancel,i.onTouchCancel),n.removeEventListener(i.events.end,i.onTouchEnd),n.removeEventListener(i.events.move,i.onTouchMove),e.moving=t.moving,e.press=t.press,t.press&&i.trigger(yA,e),i.trigger(wA,e),!t.press&&!t.moving&&i.__setDb(e),t.press=!1,t.start=!1,t.moving=!1})),aC(this,"onTouchMove",(function(e){var t=i._pos,n=i.config,r=xA(e.touches),o=r?Mw(r.pageX,10):e.pageX,a=r?Mw(r.pageY,10):e.pageX,s=o-t.x,l=a-t.y;Math.abs(l)<n.miniStep&&Math.abs(s)<n.miniStep||(i.__clearPress(),t.press&&i.trigger(yA,e),t.press=!1,t.moving=!0,i.trigger(bA,e))})),this._pos={moving:!1,start:!1,x:0,y:0},this.config={pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0},Hk(n=Kk(r)).call(n,(function(e){i.config[e]=r[e]})),this.root=t,this.events="mouse"===r.eventType?CA:EA,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return oC(e,[{key:"_initEvent",value:function(){this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(e){var t=this,n=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout((function(){t.trigger(gA,e),t._pos.press=!0,t.__clearPress()}),n.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(e){var t=this,n=this.config;if(this.dbIntrvalId)return this.__clearDb(),void this.trigger(mA,e);this.dbIntrvalId=setTimeout((function(){t.__clearDb(),t._pos.start||t._pos.press||t._pos.moving||t.trigger(_A,e)}),n.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(e,t){this.__handlers[e]||(this.__handlers[e]=[]),this.__handlers[e].push(t)}},{key:"off",value:function(e,t){if(this.__handlers[e]){for(var n,i=this.__handlers[e],r=-1,o=0;o<i.length;o++)if(i[o]===t){r=o;break}if(r>=0)cw(n=this.__handlers[e]).call(n,r,1)}}},{key:"trigger",value:function(e,t){var n;this.__handlers[e]&&Hk(n=this.__handlers[e]).call(n,(function(n){try{n(t)}catch(lU){console.error("trigger>>:".concat(e),lU)}}))}},{key:"destroy",value:function(){var e=this,t={touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};Kk(t).forEach((function(n){e.root.removeEventListener(n,e[t[n]])}))}}]),e}();function SA(){return(new DOMParser).parseFromString('<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <path opacity="0.54"\n d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z"\n fill="white" />\n <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>\n</svg>',"image/svg+xml").firstChild}var PA="auto",AA="seeking",RA="playbackrate",IA=["videoClick","videoDbClick"],OA=function(e){sC(n,e);var t=fC(n);function n(e){var i;return iC(this,n),aC(cC(i=t.call(this,e)),"onTouchStart",(function(e){var t=cC(i),n=t.player,r=t.config,o=t.pos,a=t.playerConfig,s=i.getTouche(e);if(s&&!r.disableGesture&&i.duration>0&&!n.ended){o.isStart=!0,i.timer&&clearTimeout(i.timer),Jx.checkIsFunction(a.disableSwipeHandler)&&a.disableSwipeHandler(),Ym(i).call(i,".xg-dur").innerHTML=Jx.format(i.duration);var l=i.root.getBoundingClientRect();90===n.rotateDeg?(o.top=l.left,o.left=l.top,o.width=l.height,o.height=l.width):(o.top=l.top,o.left=l.left,o.width=l.width,o.height=l.height);var u=Mw(s.pageX-o.left,10),c=Mw(s.pageY-o.top,10);o.x=90===n.rotateDeg?c:u,o.y=90===n.rotateDeg?u:c,o.scopeL=r.scopeL*o.width,o.scopeR=(1-r.scopeR)*o.width,o.scopeM1=o.width*(1-r.scopeM)/2,o.scopeM2=o.width-o.scopeM1}})),aC(cC(i),"onTouchMove",(function(e){var t=i.getTouche(e),n=cC(i),r=n.pos,o=n.config,a=n.player;if(t&&!o.disableGesture&&i.duration&&r.isStart){var s=o.miniMoveStep,l=o.hideControlsActive,u=Mw(t.pageX-r.left,10),c=Mw(t.pageY-r.top,10),h=90===a.rotateDeg?c:u,f=90===a.rotateDeg?u:c;if(Math.abs(h-r.x)>s||Math.abs(f-r.y)>s){var d=h-r.x,p=f-r.y,v=r.scope;if(-1===v&&(0===(v=i.checkScope(h,f,d,p,r))&&(l?a.blur():a.focus({autoHide:!1}),!r.time&&(r.time=Mw(1e3*a.currentTime,10)+1e3*i.timeOffset)),r.scope=v),-1===v||v>0&&!o.gestureY||0===v&&!o.gestureX)return;i.executeMove(d,p,v,r.width,r.height),r.x=h,r.y=f}}})),aC(cC(i),"onTouchEnd",(function(e){var t=cC(i),n=t.player,r=t.pos,o=t.playerConfig;if(setTimeout((function(){n.getPlugin("progress")&&n.getPlugin("progress").resetSeekState()}),10),r.isStart){r.scope>-1&&e.cancelable&&e.preventDefault();var a=i.config,s=a.disableGesture,l=a.gestureX;!s&&l?i.endLastMove(r.scope):r.time=0,r.scope=-1,i.resetPos(),Jx.checkIsFunction(o.enableSwipeHandler)&&o.enableSwipeHandler(),i.changeAction(PA)}})),aC(cC(i),"onRootTouchMove",(function(e){!i.config.disableGesture&&i.config.gestureX&&i.checkIsRootTarget(e)&&(e.stopPropagation(),i.pos.isStart?i.onTouchMove(e):i.onTouchStart(e))})),aC(cC(i),"onRootTouchEnd",(function(e){i.pos.scope>-1&&i.onTouchEnd(e)})),i.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},i.timer=null,i}return oC(n,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:SA,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e,t=this;Hk(IA).call(IA,(function(e){t.__hooks[e]=null}));var n=this.playerConfig,i=this.config,r=this.player;!0===n.closeVideoDblclick&&(i.closedbClick=!0),this.resetPos(),Jx.isUndefined(n.disableGesture)||(i.disableGesture=!!n.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=Jx.createDom("xg-mask","",{},"xgmask"),r.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var o="mouse"===this.domEventType?"mouse":"touch";this.touch=new TA(this.root,{eventType:o,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",(function(e){e.preventDefault()})),r.root.addEventListener("touchmove",this.onRootTouchMove,!0),r.root.addEventListener("touchend",this.onRootTouchEnd,!0),r.root.addEventListener("touchcancel",this.onRootTouchEnd,!0);var a=this.player.controls;a&&a.center&&(a.center.addEventListener("touchmove",this.onRootTouchMove,!0),a.center.addEventListener("touchend",this.onRootTouchEnd,!0),a.center.addEventListener("touchcancel",this.onRootTouchEnd,!0)),this.on(mT,(function(){var e=t.player,n=t.config;e.duration>0&&1e3*e.duration<n.moveDuration&&(n.moveDuration=1e3*e.duration)})),this.on([yT,hT],(function(){var e=t.pos,n=e.time;!e.isStart&&n>0&&(t.pos.time=0)}));var s={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Hk(e=Kk(s)).call(e,(function(e){t.touch.on(e,(function(n){t[s[e]](n)}))})),!i.disableActive){var l=r.plugins.progress;l&&(l.addCallBack("dragmove",(function(e){t.activeSeekNote(e.currentTime,e.forward)})),["dragend","click"].forEach((function(e){l.addCallBack(e,(function(){t.changeAction(PA)}))})))}}},{key:"registerThumbnail",value:function(){var e=this.player.plugins.thumbnail;if(e&&e.usable){this.thumbnail=e.createThumbnail(null,"mobile-thumbnail");var t=Ym(this).call(this,".time-preview");t.insertBefore(this.thumbnail,t.children[0])}}},{key:"initCustomStyle",value:function(){var e=(this.playerConfig||{}).commonStyle,t=e.playedColor,n=e.progressColor,i=e.timePreviewStyle,r=e.curTimeColor,o=e.durationColor;t&&(Ym(this).call(this,".xg-curbar").style.backgroundColor=t);n&&(Ym(this).call(this,".xg-bar").style.backgroundColor=n);if(i){var a=Ym(this).call(this,".time-preview");Kk(i).forEach((function(e){a.style[e]=i[e]}))}var s=r||t,l=o;s&&(Ym(this).call(this,".xg-cur").style.color=s),l&&(Ym(this).call(this,".xg-dur").style.color=l),this.config.disableTimeProgress&&Jx.addClass(Ym(this).call(this,".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e,t=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,Hk(e=["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"]).call(e,(function(e){t.pos[e]=0}))):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var t=this.player;this.root.setAttribute("data-xg-action",e);var n=t.plugins.start;n&&n.recover()}},{key:"getTouche",value:function(e){this.player.rotateDeg;var t=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return{pageX:t.pageX,pageY:t.pageY}}},{key:"checkScope",value:function(e,t,n,i,r){var o=r.width,a=-1;if(e<0||e>o)return a;var s=0===i?Math.abs(n):Math.abs(n/i);return Math.abs(n)>0&&s>=1.73&&e>r.scopeM1&&e<r.scopeM2?a=0:(0===Math.abs(n)||s<=.57)&&(a=e<r.scopeL?1:e>r.scopeR?2:3),a}},{key:"executeMove",value:function(e,t,n,i,r){switch(n){case 0:this.updateTime(e/i*this.config.scopeM);break;case 1:this.updateBrightness(t/r);break;case 2:oT.os.isIos||this.updateVolume(t/r)}}},{key:"endLastMove",value:function(e){var t=this,n=this.pos,i=this.player,r=this.config,o=(n.time-this.timeOffset)/1e3;if(0===e)i.seek(Number(o).toFixed(1)),r.hideControlsEnd?i.blur():i.focus(),this.timer=setTimeout((function(){t.pos.time=0}),500);this.changeAction(PA)}},{key:"checkIsRootTarget",value:function(e){var t=this.player.plugins||{};return(!t.progress||!t.progress.root.contains(e.target))&&(t.start&&t.start.root.contains(e.target)||t.controls&&t.controls.root.contains(e.target))}},{key:"sendUseAction",value:function(e){var t=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:t,to:!t})}},{key:"clickHandler",value:function(e){var t=this.player,n=this.config,i=this.playerConfig;t.state<pP?i.closeVideoClick||(this.sendUseAction(Jx.createEvent("click")),t.play()):!n.closedbClick||i.closeVideoClick?t.isActive?t.blur():t.focus():i.closeVideoClick||((t.isActive||n.focusVideoClick)&&(this.sendUseAction(Jx.createEvent("click")),this.switchPlayPause()),t.focus())}},{key:"dbClickHandler",value:function(e){var t=this.config,n=this.player;!t.closedbClick&&n.state>=pP&&(this.sendUseAction(Jx.createEvent("dblclick")),this.switchPlayPause())}},{key:"onClick",value:function(e){var t=this,n=this.player;vS(this,IA[0],(function(e,n){t.clickHandler(n.e)}),{e:e,paused:n.paused})}},{key:"onDbClick",value:function(e){var t=this,n=this.player;vS(this,IA[1],(function(e,n){t.dbClickHandler(n.e)}),{e:e,paused:n.paused})}},{key:"onPress",value:function(e){var t=this.pos,n=this.config,i=this.player;n.disablePress||(t.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:i.playbackRate,to:n.pressRate}),i.playbackRate=n.pressRate,this.changeAction(RA))}},{key:"onPressEnd",value:function(e){var t=this.pos,n=this.config,i=this.player;n.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:i.playbackRate,to:t.rate}),i.playbackRate=t.rate,t.rate=1,this.changeAction(PA))}},{key:"updateTime",value:function(e){var t=this.player,n=this.config,i=this.player.duration;e=Number(e.toFixed(4));var r=Mw(e*n.moveDuration,10)+this.timeOffset;r=(r+=this.pos.time)<0?0:r>1e3*i?1e3*i-200:r,t.getPlugin("time")&&t.getPlugin("time").updateTime(r/1e3),t.getPlugin("progress")&&t.getPlugin("progress").updatePercent(r/1e3/this.duration,!0),this.activeSeekNote(r/1e3,e>0),n.isTouchingSeek&&t.seek(Number((r-this.timeOffset)/1e3).toFixed(1)),this.pos.time=r}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var t=this.player,n=this.pos;if(e=Mw(100*e,10),n.volume+=e,!(Math.abs(n.volume)<10)){var i=Mw(10*t.volume,10)-Mw(n.volume/10,10);i=i>10?10:i<1?0:i,t.volume=i/10,n.volume=0}}},{key:"updateBrightness",value:function(e){var t=this.pos,n=this.config,i=this.xgMask;if(n.darkness){this.player.rotateDeg&&(e=-e);var r=t.light+.8*e;r=r>n.maxDarkness?n.maxDarkness:r<0?0:r,i&&(i.style.backgroundColor="rgba(0,0,0,".concat(r,")")),t.light=r}}},{key:"activeSeekNote",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.player,i=this.config,r=!(this.duration!==1/0&&this.duration>0);if(e&&"number"==typeof e&&!r&&!i.disableActive){e<0?e=0:e>n.duration&&(e=n.duration-.2),this.changeAction(AA);var o=n.plugins.start;if(o&&o.focusHide(),Ym(this).call(this,".xg-dur").innerHTML=Jx.format(this.duration),Ym(this).call(this,".xg-cur").innerHTML=Jx.format(e),Ym(this).call(this,".xg-curbar").style.width="".concat(e/this.duration*100,"%"),t)Jx.removeClass(Ym(this).call(this,".xg-seek-show"),"xg-back");else Jx.addClass(Ym(this).call(this,".xg-seek-show"),"xg-back");this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var t=this.player.plugins.thumbnail;t&&t.usable&&this.thumbnail&&t.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state<fP)return!1;e.ended||(e.paused?e.play():e.pause())}},{key:"disableGesture",value:function(){this.config.disableGesture=!0}},{key:"enableGesture",value:function(){this.config.disableGesture=!1}},{key:"destroy",value:function(){var e=this.player;this.timer&&clearTimeout(this.timer),this.thumbnail=null,e.root.removeChild(this.xgMask),this.xgMask=null,this.touch&&this.touch.destroy(),this.touch=null,e.root.removeEventListener("touchmove",this.onRootTouchMove,!0),e.root.removeEventListener("touchend",this.onRootTouchEnd,!0),e.root.removeEventListener("touchcancel",this.onRootTouchEnd,!0);var t=this.player.controls;t&&t.center&&(t.center.removeEventListener("touchmove",this.onRootTouchMove,!0),t.center.removeEventListener("touchend",this.onRootTouchEnd,!0),t.center.removeEventListener("touchcancel",this.onRootTouchEnd,!0))}},{key:"render",value:function(){var e,t,n,i="normal"!==this.config.gradient?"gradient ".concat(this.config.gradient):"gradient";return Um(e=Um(t=Um(n='\n <xg-trigger class="trigger">\n <div class="'.concat(i,'"></div>\n <div class="time-preview">\n <div class="xg-seek-show ')).call(n,this.config.disableSeekIcon?" hide-seek-icon":"",'">\n <i class="xg-seek-icon"></i>\n <span class="xg-cur">00:00</span>\n <span class="xg-separator">/</span>\n <span class="xg-dur">00:00</span>\n </div>\n <div class="xg-bar xg-timebar">\n <div class="xg-curbar"></div>\n </div>\n </div>\n <div class="xg-playbackrate xg-top-note">\n <span><i>')).call(t,this.config.pressRate,"X</i>")).call(e,this.i18n.FORWARD,"</span>\n </div>\n </xg-trigger>\n ")}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:36e4,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),n}(RS);An({target:"String",proto:!0},{repeat:CC});var MA=zc("String").repeat,LA=se,DA=MA,NA=String.prototype,FA=n((function(e){var t=e.repeat;return"string"==typeof e||e===NA||LA(NA,e)&&t===NA.repeat?DA:t}));function UA(e){var t=e.tagName;return!("INPUT"!==t&&"TEXTAREA"!==t&&!e.isContentEditable)}var HA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onBodyKeyDown",(function(e){if(i.player){var t=e||window.event,n=t.keyCode,r=cC(i),o=r._keyState,a=r.player,s=i.config,l=s.disable,u=s.disableBodyTrigger,c=s.isIgnoreUserActive;l||u||!a.isUserActive&&!c||UA(t.target)||!i.checkIsVisible()||t.metaKey||t.altKey||t.ctrlKey?o.isBodyKeyDown=!1:(FA(e)||o.isKeyDown||((t.target===document.body||i.config.isGlobalTrigger&&!UA(t.target))&&i.checkCode(n,!0)&&(o.isBodyKeyDown=!0),document.addEventListener("keyup",i.onBodyKeyUp)),o.isBodyKeyDown&&i.handleKeyDown(t))}})),aC(cC(i),"onBodyKeyUp",(function(e){i.player&&(document.removeEventListener("keyup",i.onBodyKeyUp),i.handleKeyUp(e))})),aC(cC(i),"onKeydown",(function(e){if(i.player){var t=e||window.event,n=cC(i)._keyState;if(!FA(t)){if(i.config.disable||i.config.disableRootTrigger||t.metaKey||t.altKey||t.ctrlKey)return;!t||37!==t.keyCode&&!i.checkCode(t.keyCode)||t.target!==i.player.root&&t.target!==i.player.video&&t.target!==i.player.controls.el||(n.isKeyDown=!0),i.player.root.addEventListener("keyup",i.onKeyup)}n.isKeyDown&&i.handleKeyDown(t)}})),aC(cC(i),"onKeyup",(function(e){i.player&&(i.player.root.removeEventListener("keyup",i.onKeyup),i.handleKeyUp(e))})),i}return oC(n,[{key:"mergekeyCodeMap",value:function(){var e,t=this,n=this.config.keyCodeMap;n&&Hk(e=Kk(n)).call(e,(function(e){var i;t.keyCodeMap[e]?Hk(i=["keyCode","action","disable","pressAction","disablePress","isBodyTarget"]).call(i,(function(i){n[e][i]&&(t.keyCodeMap[e][i]=n[e][i])})):t.keyCodeMap[e]=n[e]}))}},{key:"afterCreate",value:function(){this.config.disable=!this.playerConfig.keyShortcut;var e="function"==typeof this.config.seekStep?this.config.seekStep(this.player):this.config.seekStep;e&&"number"==typeof e&&(this.seekStep=e),this.keyCodeMap={space:{keyCode:32,action:"playPause",disable:!1,disablePress:!1,noBodyTarget:!1},up:{keyCode:38,action:"upVolume",disable:!1,disablePress:!1,noBodyTarget:!0},down:{keyCode:40,action:"downVolume",disable:!1,disablePress:!1,noBodyTarget:!0},left:{keyCode:37,action:"seekBack",disablePress:!1,disable:!1},right:{keyCode:39,action:"seek",pressAction:"changePlaybackRate",disablePress:!1,disable:!1},esc:{keyCode:27,action:"exitFullscreen",disablePress:!0,disable:!1}},this.mergekeyCodeMap(),this._keyState={isKeyDown:!1,isBodyKeyDown:!1,isPress:!1,tt:0,playbackRate:0},this.player.root.addEventListener("keydown",this.onKeydown),document.addEventListener("keydown",this.onBodyKeyDown)}},{key:"setConfig",value:function(e){var t=this;Kk(e).forEach((function(n){t.config[n]=e[n]}))}},{key:"checkIsVisible",value:function(){if(!this.config.checkVisible)return!0;var e=this.player.root.getBoundingClientRect(),t=e.height,n=e.top,i=e.bottom,r=window.innerHeight;return!(n<0&&n<0-.9*t||i>0&&i-r>.9*t)}},{key:"checkCode",value:function(e,t){var n,i=this,r=!1;return Hk(n=Kk(this.keyCodeMap)).call(n,(function(n){i.keyCodeMap[n]&&e===i.keyCodeMap[n].keyCode&&!i.keyCodeMap[n].disable&&(r=!t||t&&!i.keyCodeMap[n].noBodyTarget)})),r}},{key:"downVolume",value:function(e){var t=this.player;if(!(t.volume<=0)){var n=ZC((t.volume-.1).toFixed(1)),i={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:i}),t.volume=n>=0?n:0}}},{key:"upVolume",value:function(e){var t=this.player;if(!(t.volume>=1)){var n=ZC((t.volume+.1).toFixed(1)),i={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:i}),t.volume=n<=1?n:1}}},{key:"seek",value:function(e){var t=this.player,n=t.currentTime,i=t.offsetCurrentTime,r=t.duration,o=t.offsetDuration,a=t.timeSegments,s=i>-1?i:n,l=o||r,u=FA(e)&&this.seekStep>=4?Mw(this.seekStep/2,10):this.seekStep;s+u<=l?s+=u:s=l;var c=Jx.getCurrentTimeByOffset(s,a),h={currentTime:{from:n,to:c}};this.emitUserAction(e,"seek",{props:h}),this.player.currentTime=c}},{key:"seekBack",value:function(e){var t=this.player,n=t.currentTime,i=t.offsetCurrentTime,r=t.timeSegments,o=(i>-1?i:n)-(FA(e)?Mw(this.seekStep/2,10):this.seekStep);o<0&&(o=0);var a={currentTime:{from:n,to:o=Jx.getCurrentTimeByOffset(o,r)}};this.emitUserAction(e,"seek",{props:a}),this.player.currentTime=o}},{key:"changePlaybackRate",value:function(e){var t=this._keyState,n=this.config,i=this.player;0===t.playbackRate&&(t.playbackRate=i.playbackRate,i.playbackRate=n.playbackRate)}},{key:"playPause",value:function(e){var t=this.player;t&&(this.emitUserAction(e,"switch_play_pause"),t.paused?t.play():t.pause())}},{key:"exitFullscreen",value:function(e){var t=this.player,n=t.fullscreen,i=t.cssfullscreen;n&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:n,to:!n}),t.exitFullscreen()),i&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:i,to:!i}),t.exitCssFullscreen())}},{key:"handleKeyDown",value:function(e){var t=this._keyState;if(FA(e)){t.isPress=!0;var n=Date.now();if(n-t.tt<200)return;t.tt=n}this.handleKeyCode(e.keyCode,e,t.isPress)}},{key:"handleKeyUp",value:function(e){var t=this._keyState;t.playbackRate>0&&(this.player.playbackRate=t.playbackRate,t.playbackRate=0),t.isKeyDown=!1,t.isPress=!1,t.tt=0}},{key:"handleKeyCode",value:function(e,t,n){for(var i,r=Kk(this.keyCodeMap),o=0;o<r.length;o++){var a=this.keyCodeMap[r[o]],s=a.action,l=a.keyCode,u=a.disable,c=a.pressAction,h=a.disablePress;if(l===e){if(!(u||n&&h)){var f=n&&c||s;"function"==typeof f?s(t,this.player,n):"string"==typeof f&&"function"==typeof this[f]&&this[f](t,this.player,n),this.emit(WT,tC({key:r[o],target:t.target,isPress:n},this.keyCodeMap[r[o]]))}(i=t).preventDefault(),i.returnValue=!1,t.stopPropagation();break}}}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown),this.player.root.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keyup",this.onBodyKeyUp)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!1,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!0,keyCodeMap:{},disable:!1,playbackRate:2,isIgnoreUserActive:!0}}}]),n}(yS);function jA(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">\n <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>\n</svg>\n',"image/svg+xml").firstChild}var BA=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"registerIcons",value:function(){return{loadingIcon:jA}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return'\n <xg-loading class="xgplayer-loading">\n <xg-loading-inner></xg-loading-inner>\n </xg-loading>'}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:xS.ROOT}}}]),n}(RS),KA=An,zA=ea.findIndex,VA="findIndex",GA=!0;VA in[]&&Array(1)[VA]((function(){GA=!1})),KA({target:"Array",proto:!0,forced:GA},{findIndex:function(e){return zA(this,e,arguments.length>1?arguments[1]:void 0)}});var WA=zc("Array").findIndex,YA=se,XA=WA,qA=Array.prototype,$A=n((function(e){var t=e.findIndex;return e===qA||YA(qA,e)&&t===qA.findIndex?XA:t})),ZA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_onMouseenter",(function(e){i.emit("icon_mouseenter",{pluginName:i.pluginName})})),aC(cC(i),"_onMouseLeave",(function(e){i.emit("icon_mouseleave",{pluginName:i.pluginName})})),i}return oC(n,[{key:"afterCreate",value:function(){this.bind("mouseenter",this._onMouseenter),this.bind("mouseleave",this._onMouseLeave),this.config.disable&&this.disable()}},{key:"destroy",value:function(){this.unbind("mouseenter",this._onMouseenter),this.unbind("mouseleave",this._onMouseLeave)}}]),n}(RS),JA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"btnClick",(function(e){e.preventDefault(),e.stopPropagation();var t=cC(i).player;return i.emitUserAction(e,"switch_play_pause",{prop:"paused",from:t.paused,to:!t.paused}),t.ended?t.replay():t.paused?(t.play(),i.animate(!1)):(t.pause(),i.animate(!0)),!1})),i}return oC(n,[{key:"afterCreate",value:function(){dC(lC(n.prototype),"afterCreate",this).call(this),this.config.disable||(this.initIcons(),this.bind(["touchend","click"],this.btnClick),this.listenEvents(),this.animate(!0))}},{key:"listenEvents",value:function(){var e=this,t=this.player;this.on([cT,fT,dT,kT],(function(){e.animate(t.paused)}))}},{key:"registerIcons",value:function(){return{play:{icon:XP,class:"xg-icon-play"},pause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.play),this.appendChild(".xgplayer-icon",e.pause)}},{key:"animate",value:function(e){if(this.player){var t=this.i18nKeys,n=Ym(this).call(this,".xg-tips");e?(this.setAttr("data-state","pause"),n&&this.changeLangTextKey(n,t.PLAY_TIPS)):(this.setAttr("data-state","play"),n&&this.changeLangTextKey(n,t.PAUSE_TIPS))}}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this),this.unbind(["touchend","click"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return'<xg-icon class="xgplayer-play">\n <div class="xgplayer-icon">\n </div>\n '.concat(eA(this,"PLAY_TIPS",this.playerConfig.isHideTips),"\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_LEFT,index:0,disable:!1}}}]),n}(ZA);function QA(){return(new DOMParser).parseFromString('<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>\n </g>\n</svg>',"image/svg+xml").firstChild}var eR=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(t){t.preventDefault(),t.stopPropagation(),e.config.onClick(t)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:QA,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){Jx.addClass(this.root,"show")}},{key:"hide",value:function(){Jx.removeClass(this.root,"show")}},{key:"render",value:function(){return'<xg-icon class="xgplayer-back">\n </xg-icon>'}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:xS.ROOT_TOP,index:0}}}]),n}(RS);function tR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>\n</svg>\n',"image/svg+xml").firstChild}function nR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>\n</svg>\n',"image/svg+xml").firstChild}var iR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_onOrientationChange",(function(e){i.player.fullscreen&&i.config.rotateFullscreen&&(90===window.orientation||-90===window.orientation?i.player.setRotateDeg(0):i.player.setRotateDeg(90))})),i}return oC(n,[{key:"afterCreate",value:function(){var e=this;dC(lC(n.prototype),"afterCreate",this).call(this);var t=this.config,i=this.playerConfig;if(!t.disable){t.target&&(this.playerConfig.fullscreenTarget=this.config.target);var r=Jx.getFullScreenEl();i.fullscreenTarget===r&&this.player.getFullscreen().catch((function(e){})),this.initIcons(),this.handleFullscreen=this.hook("fullscreenChange",this.toggleFullScreen,{pre:function(t){var n=e.player.fullscreen;e.emitUserAction(t,"switch_fullscreen",{prop:"fullscreen",from:n,to:!n})}}),this.bind(".xgplayer-fullscreen",["touchend","click"],this.handleFullscreen),this.on(NT,(function(t){var n=Ym(e).call(e,".xg-tips");n&&e.changeLangTextKey(n,t?e.i18nKeys.EXITFULLSCREEN_TIPS:e.i18nKeys.FULLSCREEN_TIPS),e.animate(t)})),this.config.needBackIcon&&(this.topBackIcon=this.player.registerPlugin({plugin:eR,options:{config:{onClick:function(t){e.handleFullscreen(t)}}}})),"mobile"===oT.device&&window.addEventListener("orientationchange",this._onOrientationChange)}}},{key:"registerIcons",value:function(){return{fullscreen:{icon:tR,class:"xg-get-fullscreen"},exitFullscreen:{icon:nR,class:"xg-exit-fullscreen"}}}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon","mobile"===oT.device?"touchend":"click",this.handleFullscreen),"mobile"===oT.device&&window.removeEventListener("orientationchange",this._onOrientationChange)}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.fullscreen),this.appendChild(".xgplayer-icon",e.exitFullscreen)}},{key:"toggleFullScreen",value:function(e){e instanceof Event&&(e.preventDefault(),e.stopPropagation());var t=this.player,n=this.config;!0===n.useCssFullscreen||"function"==typeof n.useCssFullscreen&&n.useCssFullscreen()?(t.fullscreen?t.exitCssFullscreen():t.getCssFullscreen(),this.animate(t.fullscreen)):n.rotateFullscreen?(t.fullscreen?t.exitRotateFullscreen():t.getRotateFullscreen(),this.animate(t.fullscreen)):n.switchCallback&&"function"==typeof n.switchCallback?n.switchCallback(t.fullscreen):t.fullscreen?(t.exitFullscreen(),n.useScreenOrientation&&this.unlockScreen()):(t.getFullscreen().catch((function(e){})),n.useScreenOrientation&&t.aspectRatio>1&&this.lockScreen(n.lockOrientationType))}},{key:"animate",value:function(e){e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.topBackIcon&&(e?(this.topBackIcon.show(),this.hide()):(this.topBackIcon.hide(),this.show()))}},{key:"render",value:function(){if(!this.config.disable){return'<xg-icon class="xgplayer-fullscreen">\n <div class="xgplayer-icon">\n </div>\n '.concat(eA(this,"FULLSCREEN_TIPS",this.playerConfig.isHideTips),"\n </xg-icon>")}}},{key:"lockScreen",value:function(e){try{screen.orientation.lock(e).catch((function(e){}))}catch(t){}}},{key:"unlockScreen",value:function(){try{screen.orientation.unlock().catch((function(e){}))}catch(e){}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,useScreenOrientation:!1,lockOrientationType:"landscape",switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),n}(ZA);function rR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function oR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function aR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>\n</svg>\n',"image/svg+xml").firstChild}var sR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onBarMousedown",(function(e){var t=cC(i).player,n=Ym(i).call(i,".xgplayer-bar");Jx.event(e);var r=n.getBoundingClientRect(),o=Jx.getEventPos(e,t.zoom),a=r.height-(o.clientY-r.top);if(o.h=a,o.barH=r.height,i.pos=o,!(a<-2))return i.updateVolumePos(a,e),document.addEventListener("mouseup",i.onBarMouseUp),i._d.isStart=!0,!1})),aC(cC(i),"onBarMouseMove",(function(e){var t=cC(i)._d;if(t.isStart){var n=cC(i),r=n.pos,o=n.player;e.preventDefault(),e.stopPropagation(),Jx.event(e);var a=Jx.getEventPos(e,o.zoom);t.isMoving=!0;var s=r.h-a.clientY+r.clientY;s>r.barH||i.updateVolumePos(s,e)}})),aC(cC(i),"onBarMouseUp",(function(e){Jx.event(e),document.removeEventListener("mouseup",i.onBarMouseUp);var t=cC(i)._d;t.isStart=!1,t.isMoving=!1})),aC(cC(i),"onMouseenter",(function(e){i._d.isActive=!0,i.focus(),i.emit("icon_mouseenter",{pluginName:i.pluginName})})),aC(cC(i),"onMouseleave",(function(e){i._d.isActive=!1,i.unFocus(100,!1,e),i.emit("icon_mouseleave",{pluginName:i.pluginName})})),aC(cC(i),"onVolumeChange",(function(e){if(i.player){var t=i.player,n=t.muted,r=t.volume;i._d.isMoving||(Ym(i).call(i,".xgplayer-drag").style.height=n||0===r?"4px":"".concat(100*r,"%"),i.config.showValueLabel&&i.updateVolumeValue()),i.animate(n,r)}})),i}return oC(n,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:oR,class:"xg-volume-small"},volumeLarge:{icon:rR,class:"xg-volume"},volumeMuted:{icon:aR,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var t=this.playerConfig,n=t.commonStyle,i=t.volume;if(n.volumeColor)Ym(this).call(this,".xgplayer-drag").style.backgroundColor=n.volumeColor;this.changeMutedHandler=this.hook("mutedChange",(function(t){e.changeMuted(t)}),{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),"mobile"!==oT.device&&"mobile"!==this.playerConfig.isMobileSimulateMode&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on(_T,this.onVolumeChange),this.once(bT,this.onVolumeChange),"Number"!==Jx.typeOf(i)&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,t){var n=this.player,i=Ym(this).call(this,".xgplayer-drag"),r=Ym(this).call(this,".xgplayer-bar");if(r&&i){var o=Mw(e/r.getBoundingClientRect().height*1e3,10);i.style.height="".concat(e,"px");var a=Math.max(Math.min(o/1e3,1),0),s={volume:{from:n.volume,to:a}};n.muted&&(s.muted={from:!0,to:!1}),this.emitUserAction(t,"change_volume",{muted:n.muted,volume:n.volume,props:s}),n.volume=Math.max(Math.min(o/1e3,1),0),n.muted&&(n.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,t=e.volume,n=e.muted,i=Ym(this).call(this,".xgplayer-value-label"),r=Math.max(Math.min(t,1),0);i.innerText=n?0:Math.round(100*r)}},{key:"focus",value:function(){this.player.focus({autoHide:!1}),this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),Jx.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,r=this._d,o=this.player;r.isActive||(this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=Jx.setTimeout(this,(function(){r.isActive||(n?o.blur():o.focus(),Jx.removeClass(e.root,"slide-show"),r.isStart&&e.onBarMouseUp(i)),e._timerId=null}),t))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var t=this.player;this._d.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:t.muted,volume:t.volume,props:{muted:{from:t.muted,to:!t.muted}}}),t.volume>0&&(t.muted=!t.muted),t.volume<.01&&(t.volume=this.config.miniVolume)}},{key:"animate",value:function(e,t){e||0===t?this.setAttr("data-state","mute"):t<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon","mobile"===oT.device?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){var e;if(!this.config.disable){var t=this.config.default||this.player.volume,n=this.config.showValueLabel;return Um(e='\n <xg-icon class="xgplayer-volume" data-state="normal">\n <div class="xgplayer-icon">\n </div>\n <xg-slider class="xgplayer-slider">\n '.concat(n?'<div class="xgplayer-value-label">'.concat(100*t,"</div>"):"",'\n <div class="xgplayer-bar">\n <xg-drag class="xgplayer-drag" style="height: ')).call(e,100*t,'%"></xg-drag>\n </div>\n </xg-slider>\n </xg-icon>')}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),n}(RS);function lR(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n fill="white" />\n</svg>',"image/svg+xml").firstChild}function uR(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n fill="white" />\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M9.4998 7.7C9.77595 7.7 9.9998 7.47614 9.9998 7.2V6.5C9.9998 6.22386 9.77595 6 9.4998 6H5.5402L5.52754 6.00016H5.5C5.22386 6.00016 5 6.22401 5 6.50016V10.4598C5 10.7359 5.22386 10.9598 5.5 10.9598H6.2C6.47614 10.9598 6.7 10.7359 6.7 10.4598V8.83005L8.76983 10.9386C8.96327 11.1357 9.27984 11.1386 9.47691 10.9451L9.97645 10.4548C10.1735 10.2613 10.1764 9.94476 9.983 9.7477L7.97289 7.7H9.4998Z"\n fill="white" />\n</svg>',"image/svg+xml").firstChild}var cR="picture-in-picture",hR="inline",fR="fullscreen",dR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"switchPIP",(function(e){if(!i.isPIPAvailable())return!1;e.stopPropagation&&e.stopPropagation(),i.isPip?(i.exitPIP(),i.emitUserAction(e,"change_pip",{props:"pip",from:!0,to:!1}),i.setAttr("data-state","normal")):4===i.player.media.readyState&&(i.requestPIP(),i.emitUserAction(e,"change_pip",{props:"pip",from:!1,to:!0}),i.setAttr("data-state","pip"))})),i}return oC(n,[{key:"beforeCreate",value:function(e){"boolean"==typeof e.player.config.pip&&(e.config.showIcon=e.player.config.pip)}},{key:"afterCreate",value:function(){var e=this;this.isPIPAvailable()&&(dC(lC(n.prototype),"afterCreate",this).call(this),this.pMode=hR,this.initPipEvents(),this.config.showIcon&&this.initIcons(),this.once(PT,(function(){e.config.showIcon&&(Jx.removeClass(Ym(e).call(e,".xgplayer-icon"),"xg-icon-disable"),e.bind("click",e.switchPIP))})))}},{key:"registerIcons",value:function(){return{pipIcon:{icon:lR,class:"xg-get-pip"},pipIconExit:{icon:uR,class:"xg-exit-pip"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.pipIcon),this.appendChild(".xgplayer-icon",e.pipIconExit)}},{key:"initPipEvents",value:function(){var e=this,t=this.player;this.leavePIPCallback=function(){var n=t.paused;Jx.setTimeout(e,(function(){!n&&t.mediaPlay()}),0),!n&&t.mediaPlay(),e.setAttr("data-state","normal"),e.pipWindow=null,t.emit(VT,!1)},this.enterPIPCallback=function(n){t.emit(VT,!0),null!=n&&n.pictureInPictureWindow&&(e.pipWindow=n.pictureInPictureWindow),e.setAttr("data-state","pip")},this.onWebkitpresentationmodechanged=function(n){var i=t.media.webkitPresentationMode;e.pMode===fR&&i!==fR&&t.onFullscreenChange(null,!1),e.pMode=i,i===cR?e.enterPIPCallback(n):i===hR&&e.leavePIPCallback(n)},t.media&&(t.media.addEventListener("enterpictureinpicture",this.enterPIPCallback),t.media.addEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(t.media)&&t.media.addEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged))}},{key:"copyStyleIntoPiPWindow",value:function(e){var t,n,i=Kw(t=Hk(n=pC(document.styleSheets)).call(n,(function(t){try{var n;return Hk(n=pC(t.cssRules)).call(n,(function(e){return e.cssText})).join("")}catch(r){var i=document.createElement("link");i.rel="stylesheet",i.type=t.type,i.media=t.media,i.href=t.href,e.document.head.appendChild(i)}return""}))).call(t,Boolean).join("\n"),r=document.createElement("style");r.textContent=i,e.document.head.appendChild(r)}},{key:"requestPIP",value:function(){var e=this,t=this.player,i=this.playerConfig,r=this.config;if(this.isPIPAvailable()&&!this.isPip)try{var o=i.poster;if(o&&(t.media.poster="String"===Jx.typeOf(o)?o:o.poster),r.preferDocument&&this.isDocPIPAvailable()){var a={};if(r.width&&r.height)a.width=r.width,a.height=r.height;else{var s=t.root.getBoundingClientRect();a.width=s.width,a.height=s.height}documentPictureInPicture.requestWindow(a).then((function(n){var i=r.docPiPNode,o=r.docPiPStyle;e.enterPIPCallback();var a=i||t.root,s=a.parentElement,l=a.previousSibling,u=a.nextSibling;e.copyStyleIntoPiPWindow(n);var c=document.createElement("style");if(c.append("body{padding:0; margin:0;}"),o){var h="";"string"==typeof o?h=o:"function"==typeof o&&(h=o.call(r)),h&&c.append(h)}else a===t.root&&c.append("\n .xgplayer{width: 100%!important; height: 100%!important;}\n ");n.document.head.append(c),n.document.body.append(a),n.addEventListener("pagehide",(function(t){s&&(u?s.insertBefore(a,u):l?s.insertBefore(a,l.nextSibling):s.appendChild(a)),e.leavePIPCallback()}),{once:!0})}))}else n.checkWebkitSetPresentationMode(t.media)?t.media.webkitSetPresentationMode("picture-in-picture"):t.media.requestPictureInPicture();return!0}catch(l){return console.error("requestPiP",l),!1}}},{key:"exitPIP",value:function(){var e=this.player;try{var t;if(this.isPIPAvailable()&&this.isPip)this.isDocPIPAvailable()&&null!==(t=documentPictureInPicture)&&void 0!==t&&t.window?documentPictureInPicture.window.close():n.checkWebkitSetPresentationMode(e.media)?e.media.webkitSetPresentationMode("inline"):document.exitPictureInPicture();return!0}catch(i){return console.error("exitPIP",i),!1}}},{key:"isPip",get:function(){var e,t=this.player;return!(!this.isDocPIPAvailable()||null===(e=documentPictureInPicture)||void 0===e||!e.window)||document.pictureInPictureElement&&document.pictureInPictureElement===t.media||t.media.webkitPresentationMode===cR}},{key:"isPIPAvailable",value:function(){var e=this.player.media;return"Boolean"===Jx.typeOf(document.pictureInPictureEnabled)&&document.pictureInPictureEnabled&&("Boolean"===Jx.typeOf(e.disablePictureInPicture)&&!e.disablePictureInPicture||e.webkitSupportsPresentationMode&&"Function"===Jx.typeOf(e.webkitSetPresentationMode))||this.isDocPIPAvailable()}},{key:"isDocPIPAvailable",value:function(){return"documentPictureInPicture"in window&&/^(https|file)/.test(location.protocol)}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this);var e=this.player;e.media.removeEventListener("enterpictureinpicture",this.enterPIPCallback),e.media.removeEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(e.media)&&e.media.removeEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged),this.exitPIP(),this.unbind("click",this.btnClick)}},{key:"render",value:function(){if(this.config.showIcon&&this.isPIPAvailable())return'<xg-icon class="xgplayer-pip">\n <div class="xgplayer-icon xg-icon-disable">\n </div>\n '.concat(eA(this,"PIP",this.playerConfig.isHideTips),"\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:6,showIcon:!1,preferDocument:!1,width:void 0,height:void 0,docPiPNode:void 0,docPiPStyle:void 0}}},{key:"checkWebkitSetPresentationMode",value:function(e){return"function"==typeof e.webkitSetPresentationMode}}]),n}(ZA),pR=o,vR=ft("iterator"),gR=!pR((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[vR]||"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"!==n||"x"!==new URL("http://x",void 0).host})),yR=g,mR=2147483647,_R=/[^\0-\u007E]/,bR=/[.\u3002\uFF0E\uFF61]/g,kR="Overflow: input needs wider integers to process",wR=RangeError,ER=yR(bR.exec),CR=Math.floor,xR=String.fromCharCode,TR=yR("".charCodeAt),SR=yR([].join),PR=yR([].push),AR=yR("".replace),RR=yR("".split),IR=yR("".toLowerCase),OR=function(e){return e+22+75*(e<26)},MR=function(e,t,n){var i=0;for(e=n?CR(e/700):e>>1,e+=CR(e/t);e>455;)e=CR(e/35),i+=36;return CR(i+36*e/(e+38))},LR=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=TR(e,n++);if(r>=55296&&r<=56319&&n<i){var o=TR(e,n++);56320==(64512&o)?PR(t,((1023&r)<<10)+(1023&o)+65536):(PR(t,r),n--)}else PR(t,r)}return t}(e);var n,i,r=e.length,o=128,a=0,s=72;for(n=0;n<e.length;n++)(i=e[n])<128&&PR(t,xR(i));var l=t.length,u=l;for(l&&PR(t,"-");u<r;){var c=mR;for(n=0;n<e.length;n++)(i=e[n])>=o&&i<c&&(c=i);var h=u+1;if(c-o>CR((mR-a)/h))throw wR(kR);for(a+=(c-o)*h,o=c,n=0;n<e.length;n++){if((i=e[n])<o&&++a>mR)throw wR(kR);if(i==o){for(var f=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(f<p)break;var v=f-p,g=36-p;PR(t,xR(OR(p+v%g))),f=CR(v/g),d+=36}PR(t,xR(OR(f))),s=MR(a,h,u==l),a=0,u++}}a++,o++}return SR(t,"")},DR=An,NR=r,FR=O,UR=g,HR=A,jR=gR,BR=io,KR=oo,zR=D_,VR=Ro,GR=Kl,WR=Wo,YR=qf,XR=S,qR=Je,$R=$t,ZR=ti,JR=nn,QR=ee,eI=Yi,tI=Hr,nI=H,iI=Qh,rI=Wh,oI=ad,aI=fx,sI=ft("iterator"),lI="URLSearchParams",uI=lI+"Iterator",cI=WR.set,hI=WR.getterFor(lI),fI=WR.getterFor(uI),dI=Object.getOwnPropertyDescriptor,pI=function(e){if(!HR)return NR[e];var t=dI(NR,e);return t&&t.value},vI=pI("fetch"),gI=pI("Request"),yI=pI("Headers"),mI=gI&&gI.prototype,_I=yI&&yI.prototype,bI=NR.RegExp,kI=NR.TypeError,wI=NR.decodeURIComponent,EI=NR.encodeURIComponent,CI=UR("".charAt),xI=UR([].join),TI=UR([].push),SI=UR("".replace),PI=UR([].shift),AI=UR([].splice),RI=UR("".split),II=UR("".slice),OI=/\+/g,MI=Array(4),LI=function(e){return MI[e-1]||(MI[e-1]=bI("((?:%[\\da-f]{2}){"+e+"})","gi"))},DI=function(e){try{return wI(e)}catch(lU){return e}},NI=function(e){var t=SI(e,OI," "),n=4;try{return wI(t)}catch(lU){for(;n;)t=SI(t,LI(n--),DI);return t}},FI=/[!'()~]|%20/g,UI={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},HI=function(e){return UI[e]},jI=function(e){return SI(EI(e),FI,HI)},BI=GR((function(e,t){cI(this,{type:uI,iterator:iI(hI(e).entries),kind:t})}),"Iterator",(function(){var e=fI(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),KI=function(e){this.entries=[],this.url=null,void 0!==e&&(QR(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===CI(e,0)?II(e,1):e:eI(e)))};KI.prototype={type:lI,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,a,s,l=rI(e);if(l)for(n=(t=iI(e,l)).next;!(i=FR(n,t)).done;){if(o=(r=iI(JR(i.value))).next,(a=FR(o,r)).done||(s=FR(o,r)).done||!FR(o,r).done)throw kI("Expected sequence with length 2");TI(this.entries,{key:eI(a.value),value:eI(s.value)})}else for(var u in e)qR(e,u)&&TI(this.entries,{key:u,value:eI(e[u])})},parseQuery:function(e){if(e)for(var t,n,i=RI(e,"&"),r=0;r<i.length;)(t=i[r++]).length&&(n=RI(t,"="),TI(this.entries,{key:NI(PI(n)),value:NI(xI(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],TI(n,jI(e.key)+"="+jI(e.value));return xI(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var zI=function(){YR(this,VI);var e=cI(this,new KI(arguments.length>0?arguments[0]:void 0));HR||(this.length=e.entries.length)},VI=zI.prototype;if(zR(VI,{append:function(e,t){oI(arguments.length,2);var n=hI(this);TI(n.entries,{key:eI(e),value:eI(t)}),HR||this.length++,n.updateURL()},delete:function(e){oI(arguments.length,1);for(var t=hI(this),n=t.entries,i=eI(e),r=0;r<n.length;)n[r].key===i?AI(n,r,1):r++;HR||(this.length=n.length),t.updateURL()},get:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=[],r=0;r<t.length;r++)t[r].key===n&&TI(i,t[r].value);return i},has:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){oI(arguments.length,1);for(var n,i=hI(this),r=i.entries,o=!1,a=eI(e),s=eI(t),l=0;l<r.length;l++)(n=r[l]).key===a&&(o?AI(r,l--,1):(o=!0,n.value=s));o||TI(r,{key:a,value:s}),HR||(this.length=r.length),i.updateURL()},sort:function(){var e=hI(this);aI(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=hI(this).entries,i=$R(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new BI(this,"keys")},values:function(){return new BI(this,"values")},entries:function(){return new BI(this,"entries")}},{enumerable:!0}),BR(VI,sI,VI.entries,{name:"entries"}),BR(VI,"toString",(function(){return hI(this).serialize()}),{enumerable:!0}),HR&&KR(VI,"size",{get:function(){return hI(this).entries.length},configurable:!0,enumerable:!0}),VR(zI,lI),DR({global:!0,constructor:!0,forced:!jR},{URLSearchParams:zI}),!jR&&XR(yI)){var GI=UR(_I.has),WI=UR(_I.set),YI=function(e){if(QR(e)){var t,n=e.body;if(ZR(n)===lI)return t=e.headers?new yI(e.headers):new yI,GI(t,"content-type")||WI(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),tI(e,{body:nI(0,eI(n)),headers:nI(0,t)})}return e};if(XR(vI)&&DR({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return vI(e,arguments.length>1?YI(arguments[1]):{})}}),XR(gI)){var XI=function(e){return YR(this,mI),new gI(e,arguments.length>1?YI(arguments[1]):{})};mI.constructor=XI,XI.prototype=mI,DR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:XI})}}var qI,$I=An,ZI=A,JI=gR,QI=r,eO=$t,tO=g,nO=io,iO=oo,rO=qf,oO=Je,aO=tE,sO=dm,lO=qr,uO=hc.codeAt,cO=function(e){var t,n,i=[],r=RR(AR(IR(e),bR,"."),".");for(t=0;t<r.length;t++)n=r[t],PR(i,ER(_R,n)?"xn--"+LR(n):n);return SR(i,".")},hO=Yi,fO=Ro,dO=ad,pO={URLSearchParams:zI,getState:hI},vO=Wo,gO=vO.set,yO=vO.getterFor("URL"),mO=pO.URLSearchParams,_O=pO.getState,bO=QI.URL,kO=QI.TypeError,wO=QI.parseInt,EO=Math.floor,CO=Math.pow,xO=tO("".charAt),TO=tO(/./.exec),SO=tO([].join),PO=tO(1..toString),AO=tO([].pop),RO=tO([].push),IO=tO("".replace),OO=tO([].shift),MO=tO("".split),LO=tO("".slice),DO=tO("".toLowerCase),NO=tO([].unshift),FO="Invalid scheme",UO="Invalid host",HO="Invalid port",jO=/[a-z]/i,BO=/[\d+-.a-z]/i,KO=/\d/,zO=/^0x/i,VO=/^[0-7]+$/,GO=/^\d+$/,WO=/^[\da-f]+$/i,YO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,XO=/[\0\t\n\r #/:<>?@[\\\]^|]/,qO=/^[\u0000-\u0020]+/,$O=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ZO=/[\t\n\r]/g,JO=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)NO(t,e%256),e=EO(e/256);return SO(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=PO(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},QO={},eM=aO({},QO,{" ":1,'"':1,"<":1,">":1,"`":1}),tM=aO({},eM,{"#":1,"?":1,"{":1,"}":1}),nM=aO({},tM,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),iM=function(e,t){var n=uO(e,0);return n>32&&n<127&&!oO(t,e)?e:encodeURIComponent(e)},rM={ftp:21,file:null,http:80,https:443,ws:80,wss:443},oM=function(e,t){var n;return 2==e.length&&TO(jO,xO(e,0))&&(":"==(n=xO(e,1))||!t&&"|"==n)},aM=function(e){var t;return e.length>1&&oM(LO(e,0,2))&&(2==e.length||"/"===(t=xO(e,2))||"\\"===t||"?"===t||"#"===t)},sM=function(e){return"."===e||"%2e"===DO(e)},lM={},uM={},cM={},hM={},fM={},dM={},pM={},vM={},gM={},yM={},mM={},_M={},bM={},kM={},wM={},EM={},CM={},xM={},TM={},SM={},PM={},AM=function(e,t,n){var i,r,o,a=hO(e);if(t){if(r=this.parse(a))throw kO(r);this.searchParams=null}else{if(void 0!==n&&(i=new AM(n,!0)),r=this.parse(a,null,i))throw kO(r);(o=_O(new mO)).bindURL(this),this.searchParams=o}};AM.prototype={type:"URL",parse:function(e,t,n){var i,r,o,a,s,l=this,u=t||lM,c=0,h="",f=!1,d=!1,p=!1;for(e=hO(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=IO(e,qO,""),e=IO(e,$O,"$1")),e=IO(e,ZO,""),i=sO(e);c<=i.length;){switch(r=i[c],u){case lM:if(!r||!TO(jO,r)){if(t)return FO;u=cM;continue}h+=DO(r),u=uM;break;case uM:if(r&&(TO(BO,r)||"+"==r||"-"==r||"."==r))h+=DO(r);else{if(":"!=r){if(t)return FO;h="",u=cM,c=0;continue}if(t&&(l.isSpecial()!=oO(rM,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&rM[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?u=kM:l.isSpecial()&&n&&n.scheme==l.scheme?u=hM:l.isSpecial()?u=vM:"/"==i[c+1]?(u=fM,c++):(l.cannotBeABaseURL=!0,RO(l.path,""),u=TM)}break;case cM:if(!n||n.cannotBeABaseURL&&"#"!=r)return FO;if(n.cannotBeABaseURL&&"#"==r){l.scheme=n.scheme,l.path=lO(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=PM;break}u="file"==n.scheme?kM:dM;continue;case hM:if("/"!=r||"/"!=i[c+1]){u=dM;continue}u=gM,c++;break;case fM:if("/"==r){u=yM;break}u=xM;continue;case dM:if(l.scheme=n.scheme,r==qI)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query=n.query;else if("/"==r||"\\"==r&&l.isSpecial())u=pM;else if("?"==r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query="",u=SM;else{if("#"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.path.length--,u=xM;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query=n.query,l.fragment="",u=PM}break;case pM:if(!l.isSpecial()||"/"!=r&&"\\"!=r){if("/"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=xM;continue}u=yM}else u=gM;break;case vM:if(u=gM,"/"!=r||"/"!=xO(h,c+1))continue;c++;break;case gM:if("/"!=r&&"\\"!=r){u=yM;continue}break;case yM:if("@"==r){f&&(h="%40"+h),f=!0,o=sO(h);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||p){var y=iM(g,nM);p?l.password+=y:l.username+=y}else p=!0}h=""}else if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(f&&""==h)return"Invalid authority";c-=sO(h).length+1,h="",u=mM}else h+=r;break;case mM:case _M:if(t&&"file"==l.scheme){u=EM;continue}if(":"!=r||d){if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(l.isSpecial()&&""==h)return UO;if(t&&""==h&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(h))return a;if(h="",u=CM,t)return;continue}"["==r?d=!0:"]"==r&&(d=!1),h+=r}else{if(""==h)return UO;if(a=l.parseHost(h))return a;if(h="",u=bM,t==_M)return}break;case bM:if(!TO(KO,r)){if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()||t){if(""!=h){var m=wO(h,10);if(m>65535)return HO;l.port=l.isSpecial()&&m===rM[l.scheme]?null:m,h=""}if(t)return;u=CM;continue}return HO}h+=r;break;case kM:if(l.scheme="file","/"==r||"\\"==r)u=wM;else{if(!n||"file"!=n.scheme){u=xM;continue}if(r==qI)l.host=n.host,l.path=lO(n.path),l.query=n.query;else if("?"==r)l.host=n.host,l.path=lO(n.path),l.query="",u=SM;else{if("#"!=r){aM(SO(lO(i,c),""))||(l.host=n.host,l.path=lO(n.path),l.shortenPath()),u=xM;continue}l.host=n.host,l.path=lO(n.path),l.query=n.query,l.fragment="",u=PM}}break;case wM:if("/"==r||"\\"==r){u=EM;break}n&&"file"==n.scheme&&!aM(SO(lO(i,c),""))&&(oM(n.path[0],!0)?RO(l.path,n.path[0]):l.host=n.host),u=xM;continue;case EM:if(r==qI||"/"==r||"\\"==r||"?"==r||"#"==r){if(!t&&oM(h))u=xM;else if(""==h){if(l.host="",t)return;u=CM}else{if(a=l.parseHost(h))return a;if("localhost"==l.host&&(l.host=""),t)return;h="",u=CM}continue}h+=r;break;case CM:if(l.isSpecial()){if(u=xM,"/"!=r&&"\\"!=r)continue}else if(t||"?"!=r)if(t||"#"!=r){if(r!=qI&&(u=xM,"/"!=r))continue}else l.fragment="",u=PM;else l.query="",u=SM;break;case xM:if(r==qI||"/"==r||"\\"==r&&l.isSpecial()||!t&&("?"==r||"#"==r)){if(".."===(s=DO(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==r||"\\"==r&&l.isSpecial()||RO(l.path,"")):sM(h)?"/"==r||"\\"==r&&l.isSpecial()||RO(l.path,""):("file"==l.scheme&&!l.path.length&&oM(h)&&(l.host&&(l.host=""),h=xO(h,0)+":"),RO(l.path,h)),h="","file"==l.scheme&&(r==qI||"?"==r||"#"==r))for(;l.path.length>1&&""===l.path[0];)OO(l.path);"?"==r?(l.query="",u=SM):"#"==r&&(l.fragment="",u=PM)}else h+=iM(r,tM);break;case TM:"?"==r?(l.query="",u=SM):"#"==r?(l.fragment="",u=PM):r!=qI&&(l.path[0]+=iM(r,QO));break;case SM:t||"#"!=r?r!=qI&&("'"==r&&l.isSpecial()?l.query+="%27":l.query+="#"==r?"%23":iM(r,QO)):(l.fragment="",u=PM);break;case PM:r!=qI&&(l.fragment+=iM(r,eM))}c++}},parseHost:function(e){var t,n,i;if("["==xO(e,0)){if("]"!=xO(e,e.length-1))return UO;if(t=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,f=function(){return xO(e,h)};if(":"==f()){if(":"!=xO(e,1))return;h+=2,c=++u}for(;f();){if(8==u)return;if(":"!=f()){for(t=n=0;n<4&&TO(WO,f());)t=16*t+wO(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,u>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!TO(KO,f()))return;for(;TO(KO,f());){if(o=wO(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,2!=++i&&4!=i||u++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;h++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l}(LO(e,1,-1)),!t)return UO;this.host=t}else if(this.isSpecial()){if(e=cO(e),TO(YO,e))return UO;if(t=function(e){var t,n,i,r,o,a,s,l=MO(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(o=10,r.length>1&&"0"==xO(r,0)&&(o=TO(zO,r)?16:8,r=LO(r,8==o?1:2)),""===r)a=0;else{if(!TO(10==o?GO:8==o?VO:WO,r))return e;a=wO(r,o)}RO(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=CO(256,5-t))return null}else if(a>255)return null;for(s=AO(n),i=0;i<n.length;i++)s+=n[i]*CO(256,3-i);return s}(e),null===t)return UO;this.host=t}else{if(TO(XO,e))return UO;for(t="",n=sO(e),i=0;i<n.length;i++)t+=iM(n[i],QO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return oO(rM,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&oM(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",e.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=JO(r),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+SO(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw kO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new RM(e.path[0]).origin}catch(lU){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+JO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(hO(e)+":",lM)},getUsername:function(){return this.username},setUsername:function(e){var t=sO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=iM(t[n],nM)}},getPassword:function(){return this.password},setPassword:function(e){var t=sO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=iM(t[n],nM)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?JO(e):JO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,mM)},getHostname:function(){var e=this.host;return null===e?"":JO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_M)},getPort:function(){var e=this.port;return null===e?"":hO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=hO(e))?this.port=null:this.parse(e,bM))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+SO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,CM))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=hO(e))?this.query=null:("?"==xO(e,0)&&(e=LO(e,1)),this.query="",this.parse(e,SM)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=hO(e))?("#"==xO(e,0)&&(e=LO(e,1)),this.fragment="",this.parse(e,PM)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var RM=function(e){var t=rO(this,IM),n=dO(arguments.length,1)>1?arguments[1]:void 0,i=gO(t,new AM(e,!1,n));ZI||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},IM=RM.prototype,OM=function(e,t){return{get:function(){return yO(this)[e]()},set:t&&function(e){return yO(this)[t](e)},configurable:!0,enumerable:!0}};if(ZI&&(iO(IM,"href",OM("serialize","setHref")),iO(IM,"origin",OM("getOrigin")),iO(IM,"protocol",OM("getProtocol","setProtocol")),iO(IM,"username",OM("getUsername","setUsername")),iO(IM,"password",OM("getPassword","setPassword")),iO(IM,"host",OM("getHost","setHost")),iO(IM,"hostname",OM("getHostname","setHostname")),iO(IM,"port",OM("getPort","setPort")),iO(IM,"pathname",OM("getPathname","setPathname")),iO(IM,"search",OM("getSearch","setSearch")),iO(IM,"searchParams",OM("getSearchParams")),iO(IM,"hash",OM("getHash","setHash"))),nO(IM,"toJSON",(function(){return yO(this).serialize()}),{enumerable:!0}),nO(IM,"toString",(function(){return yO(this).serialize()}),{enumerable:!0}),bO){var MM=bO.createObjectURL,LM=bO.revokeObjectURL;MM&&nO(RM,"createObjectURL",eO(MM,bO)),LM&&nO(RM,"revokeObjectURL",eO(LM,bO))}fO(RM,"URL"),$I({global:!0,constructor:!0,forced:!JI,sham:!ZI},{URL:RM});var DM=An,NM=o,FM=ad,UM=Yi,HM=gR,jM=ae("URL");DM({target:"URL",stat:!0,forced:!(HM&&NM((function(){jM.canParse()})))},{canParse:function(e){var t=FM(arguments.length,1),n=UM(e),i=t<2||void 0===arguments[1]?void 0:UM(arguments[1]);try{return!!new jM(n,i)}catch(lU){return!1}}});var BM=n(te.URL),KM=function(){function e(t){iC(this,e),this.config=t.config,this.parent=t.root,this.root=Jx.createDom("ul","",{},"xg-options-list xg-list-slide-scroll ".concat(this.config.className)),t.root.appendChild(this.root);var n=this.config.maxHeight;n&&this.setStyle({maxHeight:n}),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var i="touch"===this.config.domEventType?"touchend":"click";this._delegates=RS.delegate.call(this,this.root,"li",i,this.onItemClick)}return oC(e,[{key:"renderItemList",value:function(e){var t,n=this,i=this.config,r=this.root;(e?i.data=e:e=i.data,i.style)&&Hk(t=Kk(i.style)).call(t,(function(e){r.style[e]=i[e]}));e.length>0&&(this.attrKeys=Kk(e[0])),this.root.innerHTML="",Hk(e).call(e,(function(e,t){var i=e.selected?"option-item selected":"option-item";e["data-index"]=t,n.root.appendChild(Jx.createDom("li","<span>".concat(e.showText,"</span>"),e,i))}))}},{key:"onItemClick",value:function(e){e.delegateTarget||(e.delegateTarget=e.target);var t=e.delegateTarget;if(t&&Jx.hasClass(t,"selected"))return!1;var n="function"==typeof this.config.onItemClick?this.config.onItemClick:null,i=this.root.querySelector(".selected");Jx.addClass(t,"selected"),i&&Jx.removeClass(i,"selected"),n(e,{from:i?this.getAttrObj(i,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(e,t){if(!e||!t)return{};var n={};Hk(t).call(t,(function(t){n[t]=e.getAttribute(t)}));var i=e.getAttribute("data-index");return i&&(n.index=Number(i)),n}},{key:"show",value:function(){Jx.removeClass(this.root,"hide"),Jx.addClass(this.root,"active")}},{key:"hide",value:function(){Jx.removeClass(this.root,"active"),Jx.addClass(this.root,"hide")}},{key:"setStyle",value:function(e){var t=this;Kk(e).forEach((function(n){t.root.style[n]=e[n]}))}},{key:"destroy",value:function(){var e;this._delegates&&(Hk(e=this._delegates).call(e,(function(e){e.destroy&&e.destroy()})),this._delegates=null);this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),e}(),zM=ee,VM=b,GM=ft("match"),WM=function(e){var t;return zM(e)&&(void 0!==(t=e[GM])?!!t:"RegExp"==VM(e))},YM=TypeError,XM=function(e){if(WM(e))throw YM("The method doesn't accept regular expressions");return e},qM=ft("match"),$M=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qM]=!1,"/./"[e](t)}catch(lU){}}return!1},ZM=An,JM=E;P.f;var QM=Un,eL=Yi,tL=XM,nL=X,iL=$M,rL=JM("".startsWith),oL=JM("".slice),aL=Math.min;ZM({target:"String",proto:!0,forced:!iL("startsWith")},{startsWith:function(e){var t=eL(nL(this));tL(e);var n=QM(aL(arguments.length>1?arguments[1]:void 0,t.length)),i=eL(e);return rL?rL(t,i,n):oL(t,n,n+i.length)===i}});var sL=zc("String").startsWith,lL=se,uL=sL,cL=String.prototype,hL=n((function(e){var t=e.startsWith;return"string"==typeof e||e===cL||lL(cL,e)&&t===cL.startsWith?uL:t})),fL=ir.includes;An({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return fL(this,e,arguments.length>1?arguments[1]:void 0)}});var dL=zc("Array").includes,pL=An,vL=XM,gL=X,yL=Yi,mL=$M,_L=g("".indexOf);pL({target:"String",proto:!0,forced:!mL("includes")},{includes:function(e){return!!~_L(yL(gL(this)),yL(vL(e)),arguments.length>1?arguments[1]:void 0)}});var bL,kL=zc("String").includes,wL=se,EL=dL,CL=kL,xL=Array.prototype,TL=String.prototype,SL=n((function(e){var t=e.includes;return e===xL||wL(xL,e)&&t===xL.includes?EL:"string"==typeof e||e===TL||wL(TL,e)&&t===TL.includes?CL:t})),PL={SEI:"sei",PLAYER_CREATE_FINISH:"playerCreateFinish",FALLBACK_ERROR:"fallbackError",FALLBACK:"fallback",AUTOPLAY_STARTED:"autoplayStarted",AUTOPLAY_PREVENTED:"autoplayWasPrevented",DOWNLOAD_SPEED_CHANGE:"downloadSpeedChange",FULLSCREEN_CHANGE:"fullscreenChange",CSS_FULLSCREEN_CHANGE:"cssFullscreenChange",MINI_STATE_CHANGE:"miniStateChange",DEFINITION_CHANGE:"definitionChange",BEFORE_DEFINITION_CHANGE:"beforeDefinitionChange",AFTER_DEFINITION_CHANGE:"afterDefinitionChange",VIDEO_RESIZE:"videoResize",PIP_CHANGE:"pipChange",USER_ACTION:"userAction",AUTOPLAY_UNMUTE:"autoplayUnmute",LONG_WAITING:"longWaiting",DEFINITION_FALLBACK:"definitionFallback",AUTOPLAY_FAIL:"autoplayFail",AUTOPLAY_SUCCESS:"autoplaySuccess",ERROR_REFRESH_CLICK:"errorRefreshClick",SOURCE_CHANGE:"sourceChange",ABR_SWITCH_START:"abrSwitchStart",ABR_SWITCH_SUCCESS:"abrSwitchSuccess",ABR_SWITCH_FAILED:"abrSwitchFailed",AD_FIRST_QUARTILE:"ad_first_quartile",AD_MIDPOINT:"ad_midpoint",AD_THIRD_QUARTILE:"ad_third_quartile",AD_CLICK:"ad_click",AD_IMPRESSION:"ad_impression",AD_RESUME:"ad_resume",AD_START:"ad_start",AD_PLAY:"ad_play",AD_PAUSE:"ad_pause",AD_TIME_UPDATE:"ad_time_update",AD_SKIPPED:"ad_skipped",AD_ERROR:"ad_error",AD_COMPLETE:"ad_complete",AD_ALL_COMPLETED:"ad_all_completed",RTM_NETWORK:"rtmNetwork"},AL=Gy(Gy({},JT),PL),RL=(zy(bL={},PL.SEI,{event:"core_event",shouldCallback:function(e){return"core.sei"===(null==e?void 0:e.eventName)}}),zy(bL,PL.RTM_NETWORK,{event:"core_event",shouldCallback:function(e){return"core.rtcnetwork"===(null==e?void 0:e.eventName)}}),zy(bL,PL.AUTOPLAY_STARTED,{event:TT}),zy(bL,PL.AUTOPLAY_PREVENTED,{event:ST}),zy(bL,PL.FULLSCREEN_CHANGE,{event:NT}),zy(bL,PL.CSS_FULLSCREEN_CHANGE,{event:FT}),zy(bL,PL.MINI_STATE_CHANGE,{event:UT}),zy(bL,PL.DEFINITION_CHANGE,{event:HT}),zy(bL,PL.BEFORE_DEFINITION_CHANGE,{event:jT}),zy(bL,PL.AFTER_DEFINITION_CHANGE,{event:BT}),zy(bL,PL.VIDEO_RESIZE,{event:zT}),zy(bL,PL.PIP_CHANGE,{event:VT}),zy(bL,PL.USER_ACTION,{event:YT}),zy(bL,PL.DOWNLOAD_SPEED_CHANGE,{event:OT}),zy(bL,PL.ABR_SWITCH_START,{event:"switch_definition_start"}),zy(bL,PL.ABR_SWITCH_SUCCESS,{event:"switch_definition_success"}),zy(bL,PL.ABR_SWITCH_FAILED,{event:"switch_definition_fail"}),bL);var IL=/["'&<>]/;function OL(e){var t,n=""+e,i=IL.exec(n);if(!i)return n;var r,o="",a=0;for(r=i.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==r&&(o+=n.substring(a,r)),a=r+1,o+=t}return a!==r?o+n.substring(a,r):o}function ML(e,t){return function(e){if($y(e))return e}(e)||function(e,t){var n=null==e?null:void 0!==nc&&Qy(e)||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(hh(s).call(s,i.value),s.length!==t);l=!0);}catch(c){u=!0,r=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||ym(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var LL=A,DL=g,NL=pr,FL=Z,UL=DL(M.f),HL=DL([].push),jL=function(e){return function(t){for(var n,i=FL(t),r=NL(i),o=r.length,a=0,s=[];o>a;)n=r[a++],LL&&!UL(i,n)||HL(s,e?[n,i[n]]:i[n]);return s}},BL={entries:jL(!0),values:jL(!1)},KL=BL.entries;An({target:"Object",stat:!0},{entries:function(e){return KL(e)}});var zL=n(te.Object.entries);var VL=Ie,GL=qe,WL=V,YL=jn,XL=TypeError,qL=function(e){return function(t,n,i,r){VL(n);var o=GL(t),a=WL(o),s=YL(o),l=e?s-1:0,u=e?-1:1;if(i<2)for(;;){if(l in a){r=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw XL("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(r=n(r,a[l],l,o));return r}},$L={left:qL(!1),right:qL(!0)}.left;An({target:"Array",proto:!0,forced:!Bf&&ve>79&&ve<83||!Hc("reduce")},{reduce:function(e){var t=arguments.length;return $L(this,e,t,t>1?arguments[1]:void 0)}});var ZL=zc("Array").reduce,JL=se,QL=ZL,eD=Array.prototype,tD=n((function(e){var t=e.reduce;return e===eD||JL(eD,e)&&t===eD.reduce?QL:t}));var nD=function(){function e(t){var n;_m(this,e),zy(this,"definition",void 0),zy(this,"source",void 0),zy(this,"text",void 0),zy(this,"fallbackUrl",void 0),zy(this,"urls",void 0),zy(this,"_currentUrlRef",void 0);var i=t.url,r=t.definition,o=t.text,a=t.source,s=t.fallbackUrls;this.definition=r,this.text=o,this.source=a,this.urls=Um(n=[i]).call(n,mm(null!=s?s:[])),this.fallbackUrl=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={url:e[0],next:null},n=t,i=1;i<e.length;i++){var r=i===e.length-1?t:null,o={url:e[i],next:r};n.next=o,n=o}return t}(this.urls),this._currentUrlRef=this.fallbackUrl}return km(e,[{key:"url",get:function(){return this._currentUrlRef.url},set:function(e){this._currentUrlRef.url=e}},{key:"next",value:function(){var e=this._currentUrlRef.next;return e&&(this._currentUrlRef=e),this._currentUrlRef}}]),e}(),iD=function(){function e(t,n,i){var r=this;_m(this,e),zy(this,"name",void 0),zy(this,"text",void 0),zy(this,"definitions",void 0),this.definitions=Hk(t).call(t,(function(e){return new nD(iE({},e,{source:r}))})),this.name=n,this.text=i}return km(e,[{key:"defaultDefinition",get:function(){return this.definitions[0]}},{key:"add",value:function(e){this.definitions.push(e)}}],[{key:"normalize",value:function(t){if(void 0===t)throw new Error('"input" cannot be undefined');var n=void 0,i=void 0,r=void 0;if("string"==typeof t?n=t:Array.isArray(t)?r=t:(n=t.url,i=t.fallbackUrls,r=t.sources),"string"==typeof n)return e.normalizeUrl(n,i);if(Array.isArray(r)){if(0===r.length)throw new Error('"sources" cannot be an empty array');return Hk(r).call(r,(function(t){var n;return new e(Hk(n=t.definitions).call(n,(function(e){return"string"==typeof e?{url:e,definition:"unknown"}:e})),t.name,t.text)}))}return[]}},{key:"normalizeUrl",value:function(t,n){var i=new e([],"unknown");return i.add(new nD({definition:"unknown",url:t,source:i,fallbackUrls:n})),[i]}}]),e}(),rD=function(){function e(t){var n,i,r,o;_m(this,e),zy(this,"defaultSource",void 0),zy(this,"defaultDefinition",void 0),zy(this,"maxFallbackRound",void 0),zy(this,"_currentDefinition",void 0),zy(this,"_sources",void 0),zy(this,"_fallbackCount",0);var a=t.url,s=t.defaultDefinition,l=t.defaultSource,u=t.sources,c=t.maxFallbackRound;this.defaultDefinition=s,this.defaultSource=l,this.maxFallbackRound=null!=c?c:1,this._sources=u;var h=a?Ym(this).call(this,a):null===(n=Ym(i=this.sources).call(i,(function(e){return void 0===l||e.name===l})))||void 0===n?void 0:Ym(r=n.definitions).call(r,(function(e){return void 0===s||e.definition===s}));this._currentDefinition=null!=h?h:null===(o=this._sources)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.definitions)||void 0===o?void 0:o[0]}return km(e,[{key:"sources",get:function(){return this._sources}},{key:"definition",get:function(){return this._currentDefinition}},{key:"source",get:function(){var e;return null===(e=this.definition)||void 0===e?void 0:e.source}},{key:"url",get:function(){var e;return null===(e=this.definition)||void 0===e?void 0:e.url},set:function(e){this.definition&&(this.definition.url=e)}},{key:"find",value:function(e,t){var n,i,r,o,a,s=this;if("string"==typeof e)return Ym(o=tD(a=this.sources).call(a,(function(e,t){return Um(e).call(e,t.definitions)}),[])).call(o,(function(t){return t.url===e}));var l=Ym(n=this.sources).call(n,(function(t){var n,i;return t.name===(null!==(n=null==e?void 0:e.source)&&void 0!==n?n:null===(i=s.source)||void 0===i?void 0:i.name)})),u=null==l?void 0:Ym(i=l.definitions).call(i,(function(t){var n,i;return t.definition===(null!==(n=null==e?void 0:e.definition)&&void 0!==n?n:null===(i=s.definition)||void 0===i?void 0:i.definition)}));return u||(null!=t&&t.fallbackToFirstDefinition&&null!=l&&null!==(r=l.definitions)&&void 0!==r&&r.length?null==l?void 0:l.definitions[0]:void 0)}},{key:"fallback",value:function(){var e;if(this._fallbackCount++,!(this._fallbackCount>=this.maxFallbackRound*this.definition.urls.length)){var t=null===(e=this._currentDefinition)||void 0===e?void 0:e.next();return null==t?void 0:t.url}this.resetFallback()}},{key:"switch",value:function(e){return this._currentDefinition=e,this.resetFallback(),e}},{key:"updateSources",value:function(e,t){var n,i,r,o,a;return this._sources=iD.normalize(e),this._currentDefinition=null!==(n=Ym(this).call(this,null!=t?t:{source:null!==(i=this.defaultSource)&&void 0!==i?i:null===(r=this._currentDefinition)||void 0===r?void 0:r.source.name,definition:null!==(o=this.defaultDefinition)&&void 0!==o?o:null===(a=this._currentDefinition)||void 0===a?void 0:a.definition}))&&void 0!==n?n:this._sources[0].definitions[0],this.resetFallback(),this}},{key:"resetFallback",value:function(){this._fallbackCount=0}}]),e}();function oD(){var e;"undefined"!=typeof Reflect&&qE?oD=MP(e=qE).call(e):oD=function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=NP(e)););return e}(e,t);if(i){var r=xy(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}};return oD.apply(this,arguments)}function aD(){return(new DOMParser).parseFromString('<svg width="150" height="162" viewBox="0 0 150 162" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M127.718 112.831H6.13675C4.19663 112.831 2.25651 108.974 2.90322 104.475C3.54993 99.9761 8.07687 99.9761 13.8972 99.9761C11.9571 97.4052 9.37028 88.4069 15.8373 81.3369C22.3044 74.2668 25.5379 74.2668 34.5918 75.5526C33.9451 63.9837 47.526 34.4178 77.2744 35.0605C107.023 35.7032 116.077 54.3421 119.957 63.3404C129.011 62.6976 147.765 66.554 149.706 87.1214C151.258 103.575 135.694 111.117 127.718 112.831Z" fill="#F1F4F8"/>\n<path d="M44.9346 91.6022L43.6782 99.8032" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M47.3545 125.695L48.6109 117.494" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M31.5347 97.7378L38.7295 101.869" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M60.7544 119.559L53.5595 115.428" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M69.6755 44.5318L138.35 26.0209C139.115 25.8148 139.804 26.5367 139.563 27.2909L121.081 85.1146C120.982 85.4243 120.739 85.6665 120.429 85.7641L52.0645 107.28C51.2996 107.521 50.5766 106.809 50.8062 106.04L68.9776 45.2111C69.0768 44.879 69.3409 44.622 69.6755 44.5318Z" fill="#D0D6E0" stroke="#D0D6E0" stroke-width="4" stroke-linecap="round"/>\n<path d="M83.1285 52.7415C91.6454 54.3438 107.322 62.0019 101.894 79.8155" stroke="white" stroke-width="3" stroke-linecap="round"/>\n<path d="M84.138 62.3385C88.3894 63.1384 96.2148 66.9611 93.5053 75.8531" stroke="white" stroke-width="3" stroke-linecap="round"/>\n<ellipse cx="83.6417" cy="71.98" rx="3.08443" ry="3.07025" transform="rotate(12.6375 83.6417 71.98)" fill="white"/>\n<path d="M43.4699 110.358C39.5425 109.114 30.6316 108.203 26.4077 114.511C21.1278 122.397 36.5031 152.755 2.11053 160.141" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n</svg>\n',"image/svg+xml").firstChild}var sD=function(e){DP(n,e);var t=UP(n);function n(){var e,i;_m(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_error",void 0),i}return km(n,[{key:"_errorTip",get:function(){var e,t,n,i=this.player.config.i18nManager,r=null===(e=this._error)||void 0===e?void 0:e.errorCode;return this.config.errorTipsText?i.normalize(this.config.errorTipsText):Um(t="".concat(r?"[".concat(r,"] "):"")).call(t,null===(n=this._error)||void 0===n?void 0:n.message)}},{key:"afterCreate",value:function(){this._handleRefresh=this._handleRefresh.bind(this),this._focus=this._focus.bind(this),this._initEvents(),this._initIcons(),"mobile"===oT.device&&this.bind("touchend",this._focus),this.bind(".veplayer-error-refresh","click",this._handleRefresh)}},{key:"registerIcons",value:function(){return{error:{icon:aD,class:"veplayer-error-svg"}}}},{key:"updateLang",value:function(){this.config.showRefresh&&this._renderRefresh(),this._renderExtraTips()}},{key:"showError",value:function(e){this._error=e instanceof VP?e:WP(e),this.config.showErrorTip&&this._renderText(this._errorTip),this._renderExtraTips(),oD(NP(n.prototype),"show",this).call(this)}},{key:"hideError",value:function(){oD(NP(n.prototype),"hide",this).call(this)}},{key:"destroy",value:function(){"mobile"===oT.device&&this.unbind("touchend",this._focus),this.unbind(".veplayer-error-refresh","click",this._handleRefresh),this.off(AL.FALLBACK_ERROR,this.showError.bind(this)),this.off(yT,this.hideError.bind(this))}},{key:"render",value:function(){var e,t=this.player.config.i18nManager;return Um(e='<veplayer-error class="veplayer-error">\n <div class="veplayer-error-cover">\n '.concat(this.config.showErrorImg?'<div class="veplayer-error-img"></div>':"",'\n <div class="veplayer-error-tips"></div>\n ')).call(e,this.config.showRefresh?'<div class="veplayer-error-refresh">'.concat(t.getText("ERROR_REFRESH"),"</div>"):"",'\n <div class="veplayer-error-extra"></div>\n </div>\n </veplayer-error>')}},{key:"_focus",value:function(){this.player.focus({autoHide:!0})}},{key:"_initIcons",value:function(){this.config.showErrorImg&&this.appendChild(".veplayer-error-img",this.icons.error)}},{key:"_initEvents",value:function(){this.on(AL.FALLBACK_ERROR,this.showError.bind(this)),this.on(yT,this.hideError.bind(this)),this.on(cT,this.hideError.bind(this)),this.on(KT,this.hideError.bind(this))}},{key:"_renderText",value:function(e){var t=Ym(this).call(this,".veplayer-error-tips");t&&(t.innerText=e)}},{key:"_renderExtraTips",value:function(){var e,t=this,n=Ym(this).call(this,".veplayer-error-extra");n&&(n.innerHTML="");var i=this.player.config.i18nManager;null===(e=this.config.extraTips)||void 0===e||e.forEach((function(e){if(e){var n,r=Jx.createDom("div",Um(n="".concat(i.normalize(e.label),": ")).call(n,i.normalize(e.value)),void 0,"veplayer-error-detail-info");t.appendChild(".veplayer-error-extra",r)}}))}},{key:"_handleRefresh",value:function(){var e,t;null===(e=this.player)||void 0===e||e.emit(AL.ERROR_REFRESH_CLICK),null===(t=this.player)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.veplayer)||void 0===t||t.retry(),this.hideError()}},{key:"_renderRefresh",value:function(){var e,t=this.player.config.i18nManager,n=Ym(this).call(this,".veplayer-error-refresh");n&&(n.innerHTML=null!==(e=t.getText("ERROR_REFRESH"))&&void 0!==e?e:"")}}],[{key:"pluginName",get:function(){return"error"}},{key:"defaultConfig",get:function(){return{showErrorImg:!0,showErrorTip:!0,showRefresh:!0,errorTipsText:"",extraTips:[],position:RS.POSITIONS.ROOT}}}]),n}(RS),lD=function(e){DP(n,e);var t=UP(n);function n(){var e,i;_m(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_toastNumber",0),zy(xP(i),"_toastMap",{}),i}return km(n,[{key:"toast",value:function(e,t){var n=this,i=t||{},r=i.duration,o=void 0===r?2e3:r,a=i.closable,s=void 0!==a&&a,l=this._toastNumber+1;this._toastNumber=l;var u=this._renderToast(e,s,l);return this.root.appendChild(u),this._toastMap[l]=u,setTimeout((function(){n.remove(l)}),o),l}},{key:"remove",value:function(e){var t=this._toastMap[e];t&&(this.root.contains(t)&&this.root.removeChild(t),delete this._toastMap[e])}},{key:"render",value:function(){return'<veplayer-toast class="veplayer-toast"></veplayer-toast>'}},{key:"_renderToast",value:function(e,t,n){var i=this,r=Jx.createDom("div","",void 0,"veplayer-toast-container"),o=Jx.checkIsObject(e)?e:Jx.createDom("div",e,void 0,"veplayer-toast-txt");if(r.appendChild(o),t){var a=Jx.createDom("span","×",void 0,"veplayer-toast-close");a.addEventListener("click",(function(){i.remove(n)})),r.appendChild(a)}return r}}],[{key:"pluginName",get:function(){return"toast"}},{key:"defaultConfig",get:function(){return{index:5}}}]),n}(RS);function uD(){return(new DOMParser).parseFromString('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12.7123 1C11.85 1 11.1173 1.55472 10.8516 2.32675L4.94973 2.32675C3.16413 2.32675 1.71662 3.77427 1.71662 5.55987C1.71662 7.34547 3.16413 8.79298 4.94973 8.79298L11.0483 8.79298L11.1134 8.79418C11.9936 8.82748 12.697 9.55166 12.697 10.44C12.697 11.3497 11.9596 12.0871 11.05 12.0871H5.01323C4.67882 11.4781 4.03143 11.0654 3.28763 11.0654C2.20111 11.0654 1.32031 11.9462 1.32031 13.0327C1.32031 14.1192 2.20111 15 3.28763 15C4.14992 15 4.88264 14.4452 5.14834 13.6732H11.05C12.8356 13.6732 14.2831 12.2256 14.2831 10.44C14.2831 8.65444 12.8356 7.20693 11.05 7.20693L4.94973 7.20693C4.04009 7.20693 3.30267 6.46951 3.30267 5.55987C3.30267 4.65022 4.04009 3.91281 4.94973 3.91281L10.9866 3.91281C11.321 4.52183 11.9685 4.93464 12.7123 4.93464C13.7988 4.93464 14.6796 4.05384 14.6796 2.96732C14.6796 1.8808 13.7988 1 12.7123 1ZM12.7123 2.18954C12.2827 2.18954 11.9345 2.53777 11.9345 2.96732C11.9345 3.39688 12.2827 3.7451 12.7123 3.7451C13.1418 3.7451 13.4901 3.39688 13.4901 2.96732C13.4901 2.53777 13.1418 2.18954 12.7123 2.18954ZM2.50986 13.0327C2.50986 12.6031 2.85808 12.2549 3.28763 12.2549C3.71719 12.2549 4.06541 12.6031 4.06541 13.0327C4.06541 13.4622 3.71719 13.8105 3.28763 13.8105C2.85808 13.8105 2.50986 13.4622 2.50986 13.0327Z" fill="#FFFFFF"/>\n</svg>',"image/svg+xml").firstChild}var cD=function(){function e(t){_m(this,e),zy(this,"_root",void 0),zy(this,"_config",void 0),zy(this,"_parent",void 0),zy(this,"_listDom",void 0),zy(this,"_container",void 0),zy(this,"_titleDom",void 0),zy(this,"_player",void 0),zy(this,"_delegates",void 0),zy(this,"_listType",void 0);var n=t.config,i=t.root,r=t.player;this._config=n,this._parent=i,this._player=r,this._listType=n.listType,this.renderPanel(),this._initEvents(),this._bindDomEvent()}return km(e,[{key:"changeMode",value:function(e){this.updatePanel(e),this._listType=e}},{key:"renderItemList",value:function(e){var t,n=this,i=this._config;return e&&(i.list=e),this._listDom||(this._listDom=Jx.createDom("div","",{},"item-list-panel-content")),this._listDom.innerHTML="",null===(t=i.list)||void 0===t||Hk(t).call(t,(function(e,t){var i,r,o=e.selected?"panel-item select-in":"panel-item ".concat(null!==(i=e.className)&&void 0!==i?i:"");e["data-index"]=t;var a=Jx.createDom("div","",e,o);e.showText&&("string"==typeof e.showText?a.innerHTML=e.showText:a.appendChild(e.showText)),null===(r=n._listDom)||void 0===r||r.appendChild(a)})),this._listDom}},{key:"renderTitle",value:function(){var e,t,n=this._player.config.i18nManager;if(null!==(e=this._config.panel)&&void 0!==e&&e.title&&this._listType!==hD.Inner)return this._titleDom||(this._titleDom=Jx.createDom("div","",{},"xg-mobile-panel-title")),this._titleDom.innerHTML=n.normalize(null===(t=this._config.panel)||void 0===t?void 0:t.title),this._titleDom}},{key:"updatePanel",value:function(e){this._root&&Jx.removeClass(this._root,"panel-".concat(this._listType)),this._root&&Jx.addClass(this._root,"panel-".concat(e));var t="mobile"===oT.device?"touchend":"click";e===hD.Inner?this._container&&this._bind(this._container,t,this._handleHide.bind(this)):this._container&&this._unbind(this._container,t,this._handleHide.bind(this))}},{key:"renderPanel",value:function(){var e,t,n,i=Um(e="xg-mobile-panel panel-".concat(this._config.listType," ")).call(e,null!==(t=null===(n=this._config)||void 0===n||null===(n=n.panel)||void 0===n?void 0:n.className)&&void 0!==t?t:"");this._root=Jx.createDom("div","",{},i),this._parent&&this._parent.appendChild(this._root);var r=this.renderTitle(),o=this.renderItemList();this._container=Jx.createDom("div","",{},"xg-mobile-panel-content"),this._root.appendChild(this._container),r&&this._container.appendChild(r),o&&this._container.appendChild(o)}},{key:"show",value:function(){this._root&&(Jx.removeClass(this._root,"hide"),Jx.addClass(this._root,"active"))}},{key:"hide",value:function(){this._root&&(Jx.removeClass(this._root,"active"),Jx.addClass(this._root,"hide"))}},{key:"destroy",value:function(){this._parent&&this._root&&this._parent.removeChild(this._root),this._unbindDomEvent(),this._unbindEvents()}},{key:"_bind",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&"on".concat(t)in e&&"function"==typeof n&&e.addEventListener(t,n,i)}},{key:"_unbind",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&"on".concat(t)in e&&"function"==typeof n&&e.removeEventListener(t,n,i)}},{key:"_initEvents",value:function(){var e;this._config.isAutoChange&&(window.addEventListener("orientationchange",this._handleOrientationChange.bind(this)),null===(e=this._player)||void 0===e||e.on(NT,this._handleOrientationChange.bind(this)))}},{key:"_unbindEvents",value:function(){var e;window.removeEventListener("orientationchange",this._handleOrientationChange.bind(this)),null===(e=this._player)||void 0===e||e.off(NT,this._handleOrientationChange.bind(this))}},{key:"_handleOrientationChange",value:function(){var e,t,n,i=SL(e=[90,-90,"90","-90"]).call(e,window.orientation);if(null!==(t=this._player)&&void 0!==t&&t.fullscreen&&i)this.changeMode(hD.Fullscreen);else if(this._listType!==(null===(n=this._config)||void 0===n?void 0:n.listType)){var r;this.changeMode(null===(r=this._config)||void 0===r?void 0:r.listType)}}},{key:"_bindDomEvent",value:function(){var e="mobile"===oT.device?"touchend":"click";this._listType===hD.Inner&&this._container&&this._bind(this._container,e,this._handleHide.bind(this)),this._root&&this._bind(this._root,e,this._handleHide.bind(this)),this._container&&this._bind(this._container,e,this._stopPropagation),this._listDom&&(this._delegates=RS.delegate.call(this,this._listDom,".panel-item",e,this._onItemClick.bind(this),!0))}},{key:"_unbindDomEvent",value:function(){var e,t="mobile"===oT.device?"touchend":"click";(this._root&&this._unbind(this._root,t,this._handleHide.bind(this)),this._container&&this._unbind(this._container,t,this._handleHide.bind(this)),this._container&&this._unbind(this._container,t,this._stopPropagation),this._delegates)&&(Hk(e=this._delegates).call(e,(function(e){e.destroy&&e.destroy()})),this._delegates=null)}},{key:"_stopPropagation",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"_onItemClick",value:function(e){var t,n,i,r,o=e.delegateTarget,a="function"==typeof this._config.onOptionClick?this._config.onOptionClick:null,s="function"==typeof this._config.onItemClick?this._config.onItemClick:null,l=null===(t=this._root)||void 0===t?void 0:t.querySelector(".selected");Jx.addClass(o,"selected"),l&&(Jx.removeClass(l,"selected"),r=Number(l.getAttribute("data-index")));var u=Number(o.getAttribute("data-index")),c={from:void 0!==wc(r)?null===(n=this._config.list)||void 0===n?void 0:n[r]:void 0,to:null===(i=this._config.list)||void 0===i?void 0:i[u]};null==a||a(e,c),o&&r===u||null==s||s(e,c)}},{key:"_handleHide",value:function(e){var t,n;e.stopPropagation(),e.preventDefault(),null===(t=(n=this._config).hide)||void 0===t||t.call(n)}}]),e}(),hD=function(e){return e.Middle="middle",e.Bottom="bottom",e.Fullscreen="fullscreen",e.Inner="inner",e}(hD||{}),fD=function(e){return e.Icon="Icon",e.Text="Text",e}(fD||{}),dD="mobile"===oT.device,pD=["bottom","fullscreen","inner"],vD=["middle"],gD=["bottom","inner","fullscreen"],yD=["bottom","inner","fullscreen"],mD=function(e){DP(n,e);var t=UP(n);function n(e){var i;return _m(this,n),zy(xP(i=t.call(this,e)),"optionsList",void 0),zy(xP(i),"_isIcon",void 0),zy(xP(i),"_isActive",void 0),zy(xP(i),"_curIndex",void 0),zy(xP(i),"activeEvent",void 0),zy(xP(i),"onEnter",(function(e){e.preventDefault(),e.stopPropagation(),i.emit("icon_mouseenter",{pluginName:i.pluginName}),i.toggle(!0)})),zy(xP(i),"onLeave",(function(e){e.preventDefault(),e.stopPropagation(),i.emit("icon_mouseleave",{pluginName:i.pluginName}),i._isActive&&i.toggle(!1)})),i._isIcon=!1,i._isActive=!1,i._curIndex=0,i}return km(n,[{key:"updateLang",value:function(){this.config.list&&this.renderItemList(this.config.list,this._curIndex)}},{key:"afterCreate",value:function(){var e=this,t=this.config;this.config.listType=this._getListType(),this.initIcons(),t.hidePortrait&&Jx.addClass(this.root,"portrait"),dD&&this.on(wT,(function(){e._isActive&&(e.optionsList&&e.optionsList.hide(),e._isActive=!1)})),t.list&&this.renderItemList(t.list),this.activeEvent=dD?"touchend":"mouseenter",this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave)}},{key:"initIcons",value:function(){var e=this,t=this.icons,n=Kk(t);if(n.length>0&&"Icon"===this.config.renderType)return n.forEach((function(n){e.appendChild(".xgplayer-icon",t[n])})),void(this._isIcon=!0);var i=this.appendChild(".xgplayer-icon",Jx.createDom("span","",{},"icon-text"));i&&Jx.addClass(i,"btn-text")}},{key:"show",value:function(){!this.config.list||this.config.list.length<1||this.config.hideOnSingleOption&&1===this.config.list.length||Jx.addClass(this.root,"show")}},{key:"hide",value:function(){Jx.removeClass(this.root,"show")}},{key:"toggle",value:function(e){if(e!==this._isActive){var t=this.player.controls,n=this.config.listType;e?(n&&SL(gD).call(gD,n)?null==t||t.blur():null==t||t.focus(),this.optionsList&&this.optionsList.show()):(n&&SL(gD).call(gD,n)?null==t||t.focus():null==t||t.focusAwhile(),this.optionsList&&this.optionsList.hide()),this._isActive=e}}},{key:"onItemClick",value:function(e,t){var n;e.preventDefault(),e.stopPropagation();var i=this.config.listType;this._curIndex=null===(n=t.to)||void 0===n?void 0:n.index,this.changeCurrentText(),(this.config.isItemClickHide||i&&SL(gD).call(gD,i))&&this.toggle(!1)}},{key:"onOptionClick",value:function(e,t){e.preventDefault(),e.stopPropagation()}},{key:"changeCurrentText",value:function(){if(!this._isIcon){var e=this.config.list,t=e&&this._curIndex<e.length?this._curIndex:0,n=null==e?void 0:e[t];if(n){var i,r=Ym(this).call(this,".icon-text"),o=this.player.config.i18nManager;if(r)r.innerHTML=o.normalize(null!==(i=null==n?void 0:n.iconText)&&void 0!==i?i:null==n?void 0:n.text)}}}},{key:"renderItemList",value:function(e,t){var i,r=this,o=this.config,a=this.optionsList,s=this.player;if("number"==typeof t&&(this._curIndex=t),a)return a.renderItemList(e),this.changeCurrentText(),void(a instanceof cD&&a.renderTitle());this.config.isShowIcon&&(this.optionsList=o.listType&&SL(yD).call(yD,o.listType)?new cD({config:{list:e||[],onItemClick:function(e,t){r.onItemClick(e,t)},onOptionClick:function(e,t){r.onOptionClick(e,t)},panel:this.config.panel,listType:null!==(i=o.listType)&&void 0!==i?i:n.defaultConfig.listType,isAutoChange:o.isAutoChange,hide:function(){return r.toggle(!1)}},root:s.root,player:s}):new KM({config:{data:e||[],onItemClick:function(e,t){r.onItemClick(e,t)}},root:this.root}),this.changeCurrentText(),this.show())}},{key:"destroy",value:function(){this.activeEvent&&this.unbind(this.activeEvent,this.onEnter),this.unbind("mouseleave",this.onLeave),this.optionsList&&(this.optionsList.destroy(),this.optionsList=void 0)}},{key:"render",value:function(){return this.config.isShowIcon?'<xg-icon class="xg-options-icon '.concat(this.config.className||"",'">\n <div class="xgplayer-icon">\n </div>\n </xg-icon>'):""}},{key:"_getListType",value:function(){var e,t=this.config.listType;return null!==(e=this.player)&&void 0!==e&&null!==(e=e.config)&&void 0!==e&&e.listType&&(t=this.player.config.listType),dD||t&&SL(pD).call(pD,t)||(t="bottom"),dD||t&&SL(vD).call(vD,t)||(t="middle"),t}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:dD?nU.ROOT_TOP_RIGHT:nU.CONTROLS_RIGHT,listType:dD?"bottom":"middle",index:100,list:[],listStyle:{},hidePortrait:!0,isShowIcon:!1,renderType:dD?"Icon":"Text",isItemClickHide:!0,hideOnSingleOption:!0,isAutoChange:!0}}}]),n}(RS),_D=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"updateLang",value:function(){this.renderItemList()}},{key:"beforeCreate",value:function(e){var t=e.player.config.sources.sourceManager;e.config.list=t.sources}},{key:"registerIcons",value:function(){return{source:{icon:uD}}}},{key:"renderItemList",value:function(){var e=this.config.sourceManager,t=e.sources,i=e.source,r=this.player.config.i18nManager;if(t.length<2)this.hide();else{var o=Hk(t).call(t,(function(e){var t;return Gy(Gy({},e),{},{showText:null!==(t=r.normalize(e.text))&&void 0!==t?t:e.name,selected:!1})})),a=$A(o).call(o,(function(e){return e.name===(null==i?void 0:i.name)}));this.config.list=t,a>-1&&(o[a].selected=!0),oD(NP(n.prototype),"renderItemList",this).call(this,o,a)}}},{key:"onItemClick",value:function(e,t){var i,r=this;oD(NP(n.prototype),"onItemClick",this).call(this,e,t),null===(i=this.player.config)||void 0===i||i.veplayer.switch({source:t.to.name},{fallbackToFirstDefinition:!0}).catch((function(){r.renderItemList()}))}}],[{key:"pluginName",get:function(){return"sources"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:4,panel:{title:{jp:"ライン選ぶ",en:"Line Choose","zh-cn":"线路选择","zh-hk":"線路選擇"}},list:[],className:"xgplayer-sources",hidePortrait:!1,isShowIcon:!0})}},{key:"textTips",get:function(){return{jp:"ライン",en:"Line","zh-cn":"线路","zh-hk":"線路"}}}]),n}(mD);function bD(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M16 3.8001H4C3.55817 3.8001 3.2 4.15827 3.2 4.6001V12.6001C3.2 13.0419 3.55817 13.4001 4 13.4001H16C16.4418 13.4001 16.8 13.0419 16.8 12.6001V4.6001C16.8 4.15827 16.4418 3.8001 16 3.8001ZM4 2.6001C2.89543 2.6001 2 3.49553 2 4.6001V12.6001C2 13.7047 2.89543 14.6001 4 14.6001H16C17.1046 14.6001 18 13.7047 18 12.6001V4.6001C18 3.49553 17.1046 2.6001 16 2.6001H4ZM5.0249 6.24509V11.6001H5.9024V9.23009H8.6174V11.6001H9.4949V6.24509H8.6174V8.48009H5.9024V6.24509H5.0249ZM10.5474 6.24509V11.6001H12.5049C13.3749 11.6001 14.0274 11.3601 14.4774 10.8801C14.9049 10.4226 15.1224 9.77009 15.1224 8.92259C15.1224 8.06759 14.9049 7.41509 14.4774 6.96509C14.0274 6.48509 13.3749 6.24509 12.5049 6.24509H10.5474ZM11.4249 6.99509H12.3399C13.0074 6.99509 13.4949 7.14509 13.8024 7.45259C14.1024 7.75259 14.2524 8.24759 14.2524 8.92259C14.2524 9.58259 14.1024 10.0701 13.8024 10.3851C13.4949 10.6926 13.0074 10.8501 12.3399 10.8501H11.4249V6.99509ZM4.15 16.1001C3.79101 16.1001 3.5 16.3911 3.5 16.7501C3.5 17.1091 3.79101 17.4001 4.15 17.4001H15.85C16.209 17.4001 16.5 17.1091 16.5 16.7501C16.5 16.3911 16.209 16.1001 15.85 16.1001H4.15Z" fill="#ffffff"/>\n</svg>',"image/svg+xml").firstChild}var kD={exports:{}};!function(e,n){var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",k="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]",R=/\w*$/,I=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[_]=M[b]=M[a]=M[s]=M[k]=M[w]=M[E]=M[C]=M[x]=M[c]=M[h]=M[f]=M[p]=M[v]=M[g]=M[y]=M[T]=M[S]=M[P]=M[A]=!0,M["[object Error]"]=M[l]=M[m]=!1;var L="object"==wc(t)&&t&&t.Object===Object&&t,D="object"==("undefined"==typeof self?"undefined":wc(self))&&self&&self.Object===Object&&self,N=L||D||Function("return this")(),F=n&&!n.nodeType&&n,U=F&&e&&!e.nodeType&&e,H=U&&U.exports===F;function j(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function K(e,t,n,i){var r=-1,o=e?e.length:0;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Y,X=Array.prototype,q=Function.prototype,$=Object.prototype,Z=N["__core-js_shared__"],J=(Y=/[^.]+$/.exec(Z&&Bw(Z)&&Bw(Z).IE_PROTO||""))?"Symbol(src)_1."+Y:"",Q=q.toString,ee=$.hasOwnProperty,te=$.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=H?N.Buffer:void 0,re=N.Symbol,oe=N.Uint8Array,ae=G(fE,Object),se=Object.create,le=$.propertyIsEnumerable,ue=cw(X),ce=rE,he=ie?ie.isBuffer:void 0,fe=G(Kk,Object),de=Ue(N,"DataView"),pe=Ue(N,"Map"),ve=Ue(N,"Promise"),ge=Ue(N,"Set"),ye=Ue(N,"WeakMap"),me=Ue(Object,"create"),_e=ze(de),be=ze(pe),ke=ze(ve),we=ze(ge),Ee=ze(ye),Ce=re?re.prototype:void 0,xe=Ce?Ce.valueOf:void 0;function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ae(e){this.__data__=new Se(e)}function Re(e,t){var n=Ge(e)||function(e){return function(e){return function(e){return!!e&&"object"==wc(e)}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,r=!!i;for(var a in e)!t&&!ee.call(e,a)||r&&("length"==a||Be(a,i))||n.push(a);return n}function Ie(e,t,n){var i=e[t];ee.call(e,t)&&Ve(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function Oe(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function Me(e,t,n,i,r,d,m){var I;if(i&&(I=d?i(e,r,d,m):i(e)),void 0!==I)return I;if(!qe(e))return e;var O=Ge(e);if(O){if(I=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(e,I)}else{var L=je(e),D=L==l||L==u;if(Ye(e))return function(e,t){if(t)return zk(e).call(e);var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||D&&!d){if(z(e))return d?e:{};if(I=function(e){return"function"!=typeof e.constructor||Ke(e)?{}:(t=ae(e),qe(t)?se(t):{});var t}(D?{}:e),!t)return function(e,t){return Ne(e,He(e),t)}(e,function(e,t){return e&&Ne(t,$e(t),e)}(I,e))}else{if(!M[L])return d?e:{};I=function(e,t,n,i){var r=e.constructor;switch(t){case _:return De(e);case a:case s:return new r(+e);case b:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case k:case w:case E:case C:case x:case T:case S:case P:case A:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case c:return function(e,t,n){var i=t?n(V(e),!0):V(e);return K(i,j,new e.constructor)}(e,i,n);case h:case g:return new r(e);case p:return function(e){var t=new e.constructor(e.source,R.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){var i=t?n(W(e),!0):W(e);return K(i,B,new e.constructor)}(e,i,n);case y:return o=e,xe?Object(xe.call(o)):{}}var o}(e,L,Me,t)}}m||(m=new Ae);var N=m.get(e);if(N)return N;if(m.set(e,I),!O)var F=n?function(e){return function(e,t,n){var i=t(e);return Ge(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,$e,He)}(e):$e(e);return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););}(F||e,(function(r,o){F&&(r=e[o=r]),Ie(I,o,Me(r,t,n,i,o,e,m))})),I}function Le(e){return!(!qe(e)||(t=e,J&&J in t))&&(Xe(e)||z(e)?ne:I).test(ze(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(e,t,n,i){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r],s=i?i(n[a],e[a],a,n,e):void 0;Ie(n,a,void 0===s?e[a]:s)}return n}function Fe(e,t){var n,i,r=e.__data__;return("string"==(i=wc(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:Hk(r)}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(n)?n:void 0}Te.prototype.clear=function(){this.__data__=me?me(null):{}},Te.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Te.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===i?void 0:n}return ee.call(t,e)?t[e]:void 0},Te.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Te.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},Se.prototype.get=function(e){var t=this.__data__,n=Oe(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Oe(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,i=Oe(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Te,map:new(pe||Se),string:new Te}},Pe.prototype.delete=function(e){return Fe(this,e).delete(e)},Pe.prototype.get=function(e){return Fe(this,e).get(e)},Pe.prototype.has=function(e){return Fe(this,e).has(e)},Pe.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new Se},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var i=n.__data__;if(!pe||i.length<199)return i.push([e,t]),this;n=this.__data__=new Pe(i)}return n.set(e,t),this};var He=ce?G(ce,Object):function(){return[]},je=function(e){return te.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}function ze(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(de&&je(new de(new ArrayBuffer(1)))!=b||pe&&je(new pe)!=c||ve&&je(ve.resolve())!=d||ge&&je(new ge)!=v||ye&&je(new ye)!=m)&&(je=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,i=n?ze(n):void 0;if(i)switch(i){case _e:return b;case be:return c;case ke:return d;case we:return v;case Ee:return m}return t});var Ge=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Xe(e)}var Ye=he||function(){return!1};function Xe(e){var t=qe(e)?te.call(e):"";return t==l||t==u}function qe(e){var t=wc(e);return!!e&&("object"==t||"function"==t)}function $e(e){return We(e)?Re(e):function(e){if(!Ke(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Me(e,!0,!0)}}(kD,kD.exports);var wD=n(kD.exports),ED=function(e){DP(i,e);var t,n=UP(i);function i(){var e,t;_m(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(t=n.call.apply(n,Um(e=[this]).call(e,o))),"_waitingStartTime",0),zy(xP(t),"_timer",void 0),zy(xP(t),"_toastId",void 0),t}return km(i,[{key:"updateLang",value:function(){this.renderItemList()}},{key:"beforeCreate",value:function(e){var t,n=e.player.config.sources.sourceManager;e.config.list=null===(t=n.source)||void 0===t?void 0:t.definitions}},{key:"afterCreate",value:function(){var e,t;oD(NP(i.prototype),"afterCreate",this).call(this),(null!==(e=null===(t=this.player.config.sourceManager.source)||void 0===t?void 0:t.definitions)&&void 0!==e?e:[]).length<2?this.hide():(this.renderItemList(),this.on(AL.WAITING,this._waiting.bind(this)),this.on(AL.PLAYING,this._clearTimer.bind(this)),this.on(AL.PAUSE,this._clearTimer.bind(this)),this.on(AL.PLAY,this._clearTimer.bind(this)),this._initTimeUpdateEvent())}},{key:"registerIcons",value:function(){return{source:{icon:bD}}}},{key:"renderItemList",value:function(){var e,t,n,r=this,o=this.player.config.sourceManager,a=null!==(e=null===(t=o.source)||void 0===t?void 0:t.definitions)&&void 0!==e?e:[];if(a.length<2)this.hide();else{var s=Hk(a).call(a,(function(e){var t;return{url:e.url,definition:e.definition||"",showText:null!==(t=r.player.config.i18nManager.normalize(e.text))&&void 0!==t?t:e.definition,selected:!1}})),l=$A(a).call(a,(function(e){var t;return e.definition===(null===(t=o.definition)||void 0===t?void 0:t.definition)}));this.config.list=null===(n=o.source)||void 0===n?void 0:n.definitions,l>-1&&(s[l].selected=!0),oD(NP(i.prototype),"renderItemList",this).call(this,s,l)}}},{key:"onItemClick",value:function(e,t){var n,r=this;this._showToast(t.to),oD(NP(i.prototype),"onItemClick",this).call(this,e,t),null===(n=this.player.config)||void 0===n||n.veplayer.switch({definition:t.to.definition}).catch((function(){r.renderItemList()}))}},{key:"fallback",value:(t=Yy(ny().mark((function e(){var t,n,i,r,o,a,s,l=arguments;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>0&&void 0!==l[0]?l[0]:{toast:!0},r=this.player.config.sourceManager,!((o=$A(t=this.config.demotePriority).call(t,(function(e){var t;return e===(null===(t=r.definition)||void 0===t?void 0:t.definition)})))<0)){e.next=5;break}return e.abrupt("return");case 5:if(a=wD(r.definition),s=this._getNextDefinition(o)){e.next=9;break}return e.abrupt("return");case 9:if(!i.toast){e.next=15;break}return e.next=12,this._toast(s);case 12:if(e.sent){e.next=15;break}return e.abrupt("return");case 15:this.player.emit(AL.DEFINITION_FALLBACK,{from:a,to:s}),null===(n=this.player.config)||void 0===n||n.veplayer.switch({definition:s.definition}).catch((function(){}));case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_waiting",value:function(){var e=this;if(!this._timer){this._waitingStartTime=Date.now();var t=this.player.currentTime;this._timer=window.setTimeout((function(){e.player&&e.player.currentTime<=t+.1&&(e.player.emit(AL.LONG_WAITING),e.config.needFallback&&e.fallback({toast:!0}),e._clearTimer())}),this.config.longWaitingTime)}}},{key:"_clearTimer",value:function(){this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._waitingStartTime&&(this._waitingStartTime=0)}},{key:"_toast",value:function(e){var t=this,n=this.player.config.i18nManager;return new jk((function(i){var r,o,a=null===(r=t.player)||void 0===r?void 0:r.getPlugin("toast");if(a){var s=Jx.createDom("div",n.getText("DEFINITION_FALLBACK_TOAST"),void 0,"veplayer-toast-txt"),l=null!==(o=t.player.config.i18nManager.normalize(e.text))&&void 0!==o?o:e.definition,u=Jx.createDom("span",l,void 0,"veplayer-toast-txt-bt");s.appendChild(u);var c=a.toast(s,{duration:5e3,closable:!0});u.addEventListener("click",(function(){a.remove(c),i(!0)}))}else i(!1)}))}},{key:"_getNextDefinition",value:function(e){var t,n=this.player.config.sourceManager;if(null!==(t=n.source)&&void 0!==t&&t.definitions.length&&!(e+1>=this.config.demotePriority.length)){var i=e+1,r=Ym(n).call(n,{definition:this.config.demotePriority[i]});return r||this._getNextDefinition(i)}}},{key:"_initTimeUpdateEvent",value:function(){var e=this,t=this.player.currentTime;this.on(AL.TIME_UPDATE,(function(){var n=e.player.currentTime;n!==t?(t=n,e._clearTimer()):t=n}))}},{key:"_showToast",value:function(e){var t,n,i,r=this,o=null===(t=this.player)||void 0===t?void 0:t.getPlugin("toast"),a=this.player.config.i18nManager;o&&(this._toastId&&o.remove(this._toastId),this._toastId=o.toast(Um(n="".concat(a.getText("DEFINITION_SWITCHING")," ")).call(n,null!==(i=e.showText)&&void 0!==i?i:e.definition," ..."),{duration:2e3,closable:!0}),this.player.once(AL.AFTER_DEFINITION_CHANGE,(function(){void 0!==r._toastId&&o.remove(r._toastId)})))}}],[{key:"pluginName",get:function(){return"definition"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:3,list:[],panel:{title:{jp:"クラリティセレクション",en:"Definition Choose","zh-cn":"清晰度选择","zh-hk":"清晰度選擇"}},className:"xgplayer-definition",hidePortrait:!1,isShowIcon:!0,longWaitingTime:5e3,needFallback:!1,demotePriority:["uhd","hd","sd","ld","ao"]})}},{key:"textTips",get:function(){return{jp:"明快さ",en:"Definition","zh-cn":"清晰度","zh-hk":"清晰度"}}}]),i}(mD),CD={"biz:vod":"veplayer.biz.vod.[env].[ext]","biz:live":"veplayer.biz.live.[env].[ext]","plugin:flv":"veplayer.plugin.flv.[env].[ext]","plugin:mp4":"veplayer.plugin.mp4.[env].[ext]","plugin:hls":"veplayer.plugin.hls.[env].[ext]","plugin:hlsjs":"veplayer.plugin.hlsjs.[env].[ext]","plugin:dashjs":"veplayer.plugin.dashjs.[env].[ext]","plugin:shaka":"veplayer.plugin.shaka.[env].[ext]","plugin:rtm":"veplayer.plugin.rtm.[env].[ext]","plugin:xgvideo":"veplayer.plugin.xgvideo.[env].[ext]","plugin:drm":"veplayer.plugin.drm.[env].[ext]","plugin:abr":"veplayer.plugin.abr.[env].[ext]","strategy:base":"veplayer.strategy.base.[env].[ext]","strategy:rtmAdaptiveBuffer":"veplayer.strategy.rtm.adaptive.buffer.[env].[ext]"},xD=function(e){return e.BizVod="biz:vod",e.BizLive="biz:live",e.PluginFlv="plugin:flv",e.PluginMp4="plugin:mp4",e.PluginHls="plugin:hls",e.PluginHlsJs="plugin:hlsjs",e.PluginDashJs="plugin:dashjs",e.PluginShaka="plugin:shaka",e.PluginRtm="plugin:rtm",e.PluginXgvideo="plugin:xgvideo",e.PluginDrm="plugin:drm",e.PluginAbr="plugin:abr",e.StrategyBase="strategy:base",e.StrategyRtmAdaptiveBuffer="strategy:rtmAdaptiveBuffer",e}(xD||{}),TD=function(){function e(t){var n=this;_m(this,e),zy(this,"modules",{}),zy(this,"mountPromiseMap",{}),zy(this,"_baseUrl",void 0),zy(this,"_moduleSystem",void 0),zy(this,"load",function(){var e=Yy(ny().mark((function e(t,i){var r,o,a,s,l;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n._moduleSystem){e.next=2;break}throw new Error('You have to specify moduleSystem first, call "setModuleSystem(moduleSystem)" to set module system');case 2:if(CD[t]){e.next=4;break}throw new Error('Invalid module name: "'.concat(t,'"'));case 4:if("esm"!==n._moduleSystem){e.next=11;break}if(n.modules[t]){e.next=9;break}throw new Error('Dynamic module "'.concat(t,'" not found, you have to register it first under ESM'));case 9:return o=n.modules[t].exports,e.abrupt("return",null!==(r=o.default)&&void 0!==r?r:o);case 11:if(!n.modules[t]){e.next=21;break}if(1!==n.modules[t].state){e.next=16;break}return e.abrupt("return",n.modules[t].exports);case 16:if(0!==n.modules[t].state){e.next=20;break}return e.abrupt("return",n.mountPromiseMap[t].then((function(e){var t;return null!==(t=e.default)&&void 0!==t?t:e})));case 20:throw null!==(a=n.modules[t].error)&&void 0!==a?a:new Error('Dynamic module "'.concat(t,'" load failed.'));case 21:return s=[n._baseUrl,CD[t]].join("/").replace("[env]","production").replace("[ext]","js"),l={src:null!=i?i:s,name:t,state:0,exports:{__PLUGIN_NAME__:t}},n.modules[t]=l,n.mountPromiseMap[t]=n._mount(l),e.abrupt("return",n.mountPromiseMap[t]);case 26:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),zy(this,"registerPlugin",(function(e,t){if(!n._moduleSystem)throw new Error("You have to specify moduleSystem first, call setModuleSystem(moduleSystem) to set module system");return"esm"===n._moduleSystem?(n.modules[e]={src:"esm:".concat(e),name:e,state:1,exports:t},n.modules[e].exports):(n.modules[e]?n.modules[e].exports=t:n.modules[e]={src:"umd:".concat(e),name:e,state:1,exports:t},n.modules[e].exports)})),zy(this,"register",(function(e){return Hk(e).call(e,(function(e){return n.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return km(e,[{key:"baseUrl",get:function(){return this._baseUrl}},{key:"moduleSystem",get:function(){return this._moduleSystem}},{key:"setModuleSystem",value:function(e){this._moduleSystem=e}},{key:"setBaseUrl",value:function(e){this._baseUrl=e}},{key:"_mount",value:function(e){var t=this.modules;return new jk((function(n,i){var r=document.createElement("script");r.src=e.src,r.onload=function(){e.state=1,n(t[e.name].exports),r.onload=null},r.onerror=function(t){e.state=2,e.error=t,i(t),r.onerror=null},document.body.appendChild(r)}))}}]),e}(),SD=n(Lg),PD="Expected a function",AD="__lodash_placeholder__",RD=1,ID=2,OD=4,MD=8,LD=16,DD=32,ND=64,FD=128,UD=512,HD=1/0,jD=9007199254740991,BD=17976931348623157e292,KD=NaN,zD=[["ary",FD],["bind",RD],["bindKey",ID],["curry",MD],["curryRight",LD],["flip",UD],["partial",DD],["partialRight",ND],["rearg",256]],VD="[object Function]",GD="[object GeneratorFunction]",WD="[object Symbol]",YD=/^\s+|\s+$/g,XD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qD=/\{\n\/\* \[wrapped with (.+)\] \*/,$D=/,? & /,ZD=/^[-+]0x[0-9a-f]+$/i,JD=/^0b[01]+$/i,QD=/^\[object .+?Constructor\]$/,eN=/^0o[0-7]+$/i,tN=/^(?:0|[1-9]\d*)$/,nN=Mw,iN="object"==wc(t)&&t&&t.Object===Object&&t,rN="object"==("undefined"==typeof self?"undefined":wc(self))&&self&&self.Object===Object&&self,oN=iN||rN||Function("return this")();function aN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function sN(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,i){var r=e.length,o=n+(i?1:-1);for(;i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,lN,n);var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,0)>-1}function lN(e){return e!=e}function uN(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==AD||(e[n]=AD,o[r++]=n)}return o}var cN,hN,fN,dN=Function.prototype,pN=Object.prototype,vN=oN["__core-js_shared__"],gN=(cN=/[^.]+$/.exec(vN&&Bw(vN)&&Bw(vN).IE_PROTO||""))?"Symbol(src)_1."+cN:"",yN=dN.toString,mN=pN.hasOwnProperty,_N=pN.toString,bN=RegExp("^"+yN.call(mN).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kN=Object.create,wN=Math.max,EN=Math.min,CN=(hN=IN(Object,"defineProperty"),(fN=IN.name)&&fN.length>2?hN:void 0);function xN(e){if(!UN(e)||function(e){return!!gN&&gN in e}(e))return!1;var t=function(e){var t=UN(e)?_N.call(e):"";return t==VD||t==GD}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?bN:QD;return t.test(function(e){if(null!=e){try{return yN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function TN(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,i=UN(n=e.prototype)?kN(n):{},r=e.apply(i,t);return UN(r)?r:i}}function SN(e,t,n,i,r,o,a,s,l,u){var c=t&FD,h=t&RD,f=t&ID,d=t&(MD|LD),p=t&UD,v=f?void 0:TN(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(d)var b=RN(g),k=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&i++;return i}(m,b);if(i&&(m=function(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,l=t.length,u=wN(o-a,0),c=Array(l+u),h=!i;++s<l;)c[s]=t[s];for(;++r<a;)(h||r<o)&&(c[n[r]]=e[r]);for(;u--;)c[s++]=e[r++];return c}(m,i,r,d)),o&&(m=function(e,t,n,i){for(var r=-1,o=e.length,a=-1,s=n.length,l=-1,u=t.length,c=wN(o-s,0),h=Array(c+u),f=!i;++r<c;)h[r]=e[r];for(var d=r;++l<u;)h[d+l]=t[l];for(;++a<s;)(f||r<o)&&(h[d+n[a]]=e[r++]);return h}(m,o,a,d)),y-=k,d&&y<u){var w=uN(m,b);return PN(e,t,SN,g.placeholder,n,m,w,s,l,u-y)}var E=h?n:this,C=f?E[e]:e;return y=m.length,s?m=function(e,t){var n=e.length,i=EN(t.length,n),r=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(e);for(;i--;){var o=t[i];e[i]=LN(o,n)?r[o]:void 0}return e}(m,s):p&&y>1&&SD(m).call(m),c&&l<y&&(m.length=l),this&&this!==oN&&this instanceof g&&(C=v||TN(C)),C.apply(E,m)}}function PN(e,t,n,i,r,o,a,s,l,u){var c=t&MD;t|=c?DD:ND,(t&=~(c?ND:DD))&OD||(t&=~(RD|ID));var h=n(e,t,r,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,l,u);return h.placeholder=i,DN(h,e,t)}function AN(e,t,n,i,r,o,a,s){var l=t&ID;if(!l&&"function"!=typeof e)throw new TypeError(PD);var u=i?i.length:0;if(u||(t&=~(DD|ND),i=r=void 0),a=void 0===a?a:wN(BN(a),0),s=void 0===s?s:BN(s),u-=r?r.length:0,t&ND){var c=i,h=r;i=r=void 0}var f=[e,t,n,i,r,c,h,o,a,s];if(e=f[0],t=f[1],n=f[2],i=f[3],r=f[4],!(s=f[9]=null==f[9]?l?0:e.length:wN(f[9]-u,0))&&t&(MD|LD)&&(t&=~(MD|LD)),t&&t!=RD)d=t==MD||t==LD?function(e,t,n){var i=TN(e);return function r(){for(var o=arguments.length,a=Array(o),s=o,l=RN(r);s--;)a[s]=arguments[s];var u=o<3&&a[0]!==l&&a[o-1]!==l?[]:uN(a,l);return(o-=u.length)<n?PN(e,t,SN,r.placeholder,void 0,a,u,void 0,void 0,n-o):aN(this&&this!==oN&&this instanceof r?i:e,this,a)}}(e,t,s):t!=DD&&t!=(RD|DD)||r.length?SN.apply(void 0,f):function(e,t,n,i){var r=t&RD,o=TN(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=i.length,c=Array(u+s),h=this&&this!==oN&&this instanceof t?o:e;++l<u;)c[l]=i[l];for(;s--;)c[l++]=arguments[++a];return aN(h,r?n:this,c)}}(e,t,n,i);else var d=function(e,t,n){var i=t&RD,r=TN(e);return function t(){return(this&&this!==oN&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return DN(d,e,t)}function RN(e){return e.placeholder}function IN(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xN(n)?n:void 0}function ON(e){var t=e.match(qD);return t?t[1].split($D):[]}function MN(e,t){var n=t.length,i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(XD,"{\n/* [wrapped with "+t+"] */\n")}function LN(e,t){return!!(t=null==t?jD:t)&&("number"==typeof e||tN.test(e))&&e>-1&&e%1==0&&e<t}var DN=CN?function(e,t,n){var i,r=t+"";return CN(e,"toString",{configurable:!0,enumerable:!1,value:(i=MN(r,NN(ON(r),n)),function(){return i})})}:function(e){return e};function NN(e,t){return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););}(zD,(function(n){var i="_."+n[0];t&n[1]&&!sN(e,i)&&e.push(i)})),Vx(e).call(e)}function FN(e,t,n){var i=AN(e,MD,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=FN.placeholder,i}function UN(e){var t=wc(e);return!!e&&("object"==t||"function"==t)}function HN(e){return"symbol"==wc(e)||function(e){return!!e&&"object"==wc(e)}(e)&&_N.call(e)==WD}function jN(e){return e?(e=function(e){if("number"==typeof e)return e;if(HN(e))return KD;if(UN(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=UN(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(YD,"");var n=JD.test(e);return n||eN.test(e)?nN(zk(e).call(e,2),n?2:8):ZD.test(e)?KD:+e}(e))===HD||e===-HD?(e<0?-1:1)*BD:e==e?e:0:0===e?e:0}function BN(e){var t=jN(e),n=t%1;return t==t?n?t-n:t:0}FN.placeholder={};var KN=n(FN),zN=h,VN=Z,GN=Dn,WN=jn,YN=Hc,XN=Math.min,qN=[].lastIndexOf,$N=!!qN&&1/[1].lastIndexOf(1,-0)<0,ZN=YN("lastIndexOf"),JN=$N||!ZN?function(e){if($N)return zN(qN,this,arguments)||0;var t=VN(this),n=WN(t),i=n-1;for(arguments.length>1&&(i=XN(i,GN(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:qN;An({target:"Array",proto:!0,forced:JN!==[].lastIndexOf},{lastIndexOf:JN});var QN,eF=zc("Array").lastIndexOf,tF=se,nF=eF,iF=Array.prototype,rF=n((function(e){var t=e.lastIndexOf;return e===iF||tF(iF,e)&&t===iF.lastIndexOf?nF:t})),oF=null===(QN=document.currentScript)||void 0===QN?void 0:QN.src,aF=new TD({baseUrl:zk(oF).call(oF,0,rF(oF).call(oF,"/"))}),sF=aF.registerPlugin,lF=aF.register;function uF(e,t){return cF.apply(this,arguments)}function cF(){return cF=Yy(ny().mark((function e(t,n){var i;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,aF.load(t,n);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),GP(BP.MODULE_LOAD_ERROR,{ext:{name:t,cdn:null===e.t0||void 0===e.t0||null===(i=e.t0.target)||void 0===i?void 0:i.src},error:e.t0});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),cF.apply(this,arguments)}var hF=function(e){if(e){hL(e).call(e,"//")&&(e=location.protocol+e);try{return new BM(e)}catch(lU){return}}};function fF(e){var t,n={},i=function(e,t){var n=void 0!==nc&&Qy(e)||e["@@iterator"];if(!n){if($y(e)||(n=ym(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.attributes);try{for(i.s();!(t=i.n()).done;){var r=t.value;n[r.name]=r.value}}catch(o){i.e(o)}finally{i.f()}return n}function dF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kk(t).forEach((function(n){var i=n,r=t[n];r&&(null==e||e.setAttribute(i,r))})),e}function pF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fF(e);return Kk(n).forEach((function(n){t[n]?null==e||e.setAttribute(n,t[n]):null==e||e.removeAttribute(n)})),e}var vF=Object.freeze({__proto__:null,getAttributes:fF,replaceAttributes:pF,setAttributes:dF}),gF=['video/mp4;codecs="hev1.1.6.L120.90"','video/mp4;codecs="hev1.2.4.L120.90"','video/mp4;codecs="hev1.3.E.L120.90"','video/mp4;codecs="hev1.4.10.L120.90"'],yF=KN((function(e,t){var n;return null==t?void 0:SL(n=t.split("?")[0].toLowerCase()).call(n,e)})),mF=yF(".m3u8"),_F=yF(".mp4"),bF=yF(".flv"),kF=yF(".sdp"),wF=yF(".mpd");function EF(e){return mF(e)?"hls":bF(e)?"flv":kF(e)?"rtm":_F(e)?"mp4":wF(e)?"dash":"unknown"}function CF(){return(CF=Yy(ny().mark((function e(){var t,n;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,uF(xD.PluginXgvideo);case 2:return t=e.sent,n=t.XGVideoPlugin,e.abrupt("return",null==n?void 0:n.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Gy(Gy(Gy({},Jx),vF),{},{getStreamType:EF,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xy.H264;return e===Xy.H265?oT.isHevcSupported():e===Xy.H264?oT.isMSESupport():oT.isMSESupport(e)},isSoftDecodeSupported:function(){return CF.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xy.H264;return void 0!==window.ManagedMediaSource&&(e===Xy.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===Xy.H265?gF.some((function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var n,i=hF(e);if(!e||!i)return null!==(n=e)&&void 0!==n?n:"";var r,o=hL(e).call(e,"//");for(var a in t){var s,l,u=t[a];if(null!=i&&i.searchParams.has(a))null==i||null===(s=i.searchParams)||void 0===s||s.set(a,u);else null==i||null===(l=i.searchParams)||void 0===l||l.append(a,u)}return e=i.toString(),o?null===(r=e)||void 0===r?void 0:r.replace(location.protocol,""):e},getUrlObject:hF});var xF=oT.isWeixin,TF=oT.os,SF=oT.device,PF=TF.isAndroid,AF=TF.isIos,RF="mobile"===SF,IF=0,OF=!1,MF=function(e){DP(n,e);var t=UP(n);function n(e){var i;return _m(this,n),zy(xP(i=t.call(this,e)),"_hasSetUserAutoplay",void 0),zy(xP(i),"_timer",void 0),zy(xP(i),"_wxTimer",void 0),zy(xP(i),"_state",{mode:0,showUnmuteBt:!1}),zy(xP(i),"userClickPlay",(function(){if(!OF){var e=i.player.play();e&&e.then?e.then((function(){console.log("user action autoplay success"),OF=!0})).catch((function(e){console.warn("user action autoplay fail:",e)})):(console.warn("no play promise"),OF=!0)}})),i}return km(n,[{key:"afterCreate",value:function(){this.initState(),this.initEvents(),this.setWXAutoPlay()}},{key:"updateLang",value:function(){this.renderUnmuteBt()}},{key:"initState",value:function(){this._state.mode=this.player.muted?1:0}},{key:"initEvents",value:function(){this.player.on(ST,this.handleAutoplayPrevented.bind(this)),this.player.on(TT,this.handleAutoplayStart.bind(this)),this.player.on(_T,this.handleVolumechange.bind(this)),this.setUserActionAutoPlay()}},{key:"setWXAutoPlay",value:function(){xF&&this.player.config.autoplay&&this.config.enableWxJsBridgeAutoplay&&(window.WeixinJSBridge?this.wxPlay():document.addEventListener("WeixinJSBridgeReady",this.wxPlay.bind(this),!1))}},{key:"wxCanPlayFn",value:function(){var e=this;window.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(function(){e._wxTimer=window.setTimeout((function(){e._wxTimer&&clearTimeout(e._wxTimer);var t=e.player.play();t&&t.then?t.then((function(){console.log("wechat autoplay success")})).catch((function(t){console.warn("wechat autoplay fail:",t),e._state.showUnmuteBt=!1,e.renderUnmuteBt()})):console.warn("wechat browser no play promise")}))}))}},{key:"wxPlay",value:function(){this.player.readyState>=2?this.wxCanPlayFn():PF?this.player.once(yT,this.wxCanPlayFn.bind(this)):AF&&this.player.once(PT,this.wxCanPlayFn.bind(this))}},{key:"setUserActionAutoPlay",value:function(){var e=this;this.config.enableUserActionAutoplay&&this.player.once(PL.AUTOPLAY_FAIL,(function(){e._hasSetUserAutoplay=!0,(e.config.userActionDom instanceof window.Node?e.config.userActionDom:window.document.body).addEventListener("click",e.userClickPlay,!1)}))}},{key:"handleAutoplayPrevented",value:function(){return 0===this._state.mode?(console.warn("unmute autoplay fail"),this.player.emit(PL.AUTOPLAY_FAIL,{mode:"unmute"}),PF&&xF?void(this._state.mode=2):void(this.config.enableDegradeMuteAutoplay&&this.changeMuteMode())):1===this._state.mode?(console.warn("mute autoplay fail"),this.player.emit(PL.AUTOPLAY_FAIL,{mode:"mute"}),void(this._state.mode=2)):2===this._state.mode?(this.player.emit(PL.AUTOPLAY_FAIL,{mode:"noSupport"}),void console.warn("not support autoplay")):void 0}},{key:"changeMuteMode",value:function(){var e=this;this.player.muted=!0,this._state.showUnmuteBt=!0,this._state.mode=1,this.renderUnmuteBt(),this._timer=window.setTimeout((function(){e._timer&&window.clearTimeout(e._timer);var t=e.player.play();t&&t.then?t.then((function(){console.log("degrade mute autoplay success")})).catch((function(t){console.warn("degrade mute autoplay fail:",t),e.player.muted=!1,e._state.showUnmuteBt=!1,e.renderUnmuteBt()})):console.warn("no play promise")}))}},{key:"handleAutoplayStart",value:function(){if(0!==this._state.mode)return 1===this._state.mode?(this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"mute"}),this._state.showUnmuteBt=!0,void this.renderUnmuteBt()):2===this._state.mode?(this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"click"}),this.player.muted=!1,this._state.showUnmuteBt=!1,void this.renderUnmuteBt()):void 0;this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"unmute"})}},{key:"handleVolumechange",value:function(){this._state.mode=this.player.muted?1:0,this._state.showUnmuteBt&&(this._state.showUnmuteBt=!1,this.renderUnmuteBt(),this.player.paused&&this.player.readyState>=1&&this.player.play())}},{key:"renderUnmuteBt",value:function(){var e=this.root,t=this.player.config.i18nManager;if(e&&(e.innerHTML="",this._state.showUnmuteBt)){var n=t.getText("UNMUTE"),i=Jx.createDom("div",n,void 0,"veplayer-unmute-bt");e.appendChild(i),this.bind(".veplayer-unmute-bt","click",this.cancelUnmute.bind(this)),this.bind(".veplayer-unmute-bt","touchend",this.cancelUnmute.bind(this))}}},{key:"cancelUnmute",value:function(){var e=Date.now();if(e-IF>200){IF=e,this.player.muted=!1,this._state.showUnmuteBt=!1,this.renderUnmuteBt(),this.emit(PL.AUTOPLAY_UNMUTE);var t="mobile"===oT.device,n=kF(this.player.config.url);t&&n&&(this.player.volume>.5?this.player.volume=this.player.volume-.1:this.player.volume=this.player.volume+.1)}}},{key:"destroy",value:function(){if(this.player.off(ST,this.handleAutoplayPrevented.bind(this)),this.player.off(TT,this.handleAutoplayStart.bind(this)),this.player.off(_T,this.handleVolumechange.bind(this)),this._timer&&window.clearTimeout(this._timer),this._wxTimer&&window.clearTimeout(this._wxTimer),document.removeEventListener("WeixinJSBridgeReady",this.wxPlay.bind(this),!1),this._hasSetUserAutoplay){var e=RF?"touch":"click";(this.config.userActionDom instanceof window.Node?this.config.userActionDom:window.document.body).removeEventListener(e,this.userClickPlay,!1)}}},{key:"render",value:function(){return'<div class="veplayer-unmute"></div>'}}],[{key:"pluginName",get:function(){return"autoplayPlugin"}},{key:"defaultConfig",get:function(){return{position:RS.POSITIONS.ROOT,enableDegradeMuteAutoplay:!1,enableWxJsBridgeAutoplay:!1,userActionDom:window.document.body,enableUserActionAutoplay:!1}}}]),n}(RS),LF=BL.values;An({target:"Object",stat:!0},{values:function(e){return LF(e)}});var DF=n(te.Object.values);function NF(){return(new DOMParser).parseFromString('<svg width="18" height="18" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M5.75 11C5.75 11.9665 4.9665 12.75 4 12.75C3.0335 12.75 2.25 11.9665 2.25 11C2.25 10.0335 3.0335 9.25 4 9.25C4.9665 9.25 5.75 10.0335 5.75 11ZM13.25 11C13.25 11.9665 12.4665 12.75 11.5 12.75C10.5335 12.75 9.75 11.9665 9.75 11C9.75 10.0335 10.5335 9.25 11.5 9.25C12.4665 9.25 13.25 10.0335 13.25 11ZM19 12.75C19.9665 12.75 20.75 11.9665 20.75 11C20.75 10.0335 19.9665 9.25 19 9.25C18.0335 9.25 17.25 10.0335 17.25 11C17.25 11.9665 18.0335 12.75 19 12.75Z" fill="white"/>\n</svg>\n',"image/svg+xml").firstChild}var FF,UF,HF=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"onItemClick",value:function(){}},{key:"onOptionClick",value:function(){this.toggle(!1)}},{key:"updateLang",value:function(){var e,t=this,n=this.player.config.i18nManager;null===(e=this.config.plugins)||void 0===e||e.forEach((function(e){var i,r=null!==(i=n.normalize(e.textTips))&&void 0!==i?i:e.pluginName;if(t.player.root){var o=Jx.findDom(t.player.root,".panel-plugin-".concat(e.pluginName," .panel-icon-bt-text"));o&&(o.innerHTML=r)}}))}},{key:"beforeCreate",value:function(e){var t,n=e.player.config.i18nManager;e.config.list=null===(t=e.config.plugins)||void 0===t?void 0:Hk(t).call(t,(function(t,i){var r,o=Jx.createDom("div","",{},"panel-icon-bt panel-plugin-".concat(t.pluginName)),a=Jx.createDom("div","",{},"panel-icon-svg"),s=null!==(r=n.normalize(t.textTips))&&void 0!==r?r:t.pluginName;return o.appendChild(a),o.appendChild(Jx.createDom("span",s,{"plugin-index":i},"panel-icon-bt-text")),{showText:o,plugin:e.player.registerPlugin({plugin:t,options:{root:a}})}}))}},{key:"hideChild",value:function(e){if(e){var t;null===(t=e.hide)||void 0===t||t.call(e);var n=document.querySelector(".panel-plugin-".concat(e.pluginName));n&&Jx.addClass(n,"hide")}}},{key:"showChild",value:function(e){if(e){var t;null===(t=e.show)||void 0===t||t.call(e);var n=document.querySelector(".panel-plugin-".concat(e.pluginName));n&&Jx.removeClass(n,"hide")}}},{key:"registerIcons",value:function(){return{more:{icon:NF}}}}],[{key:"pluginName",get:function(){return"more"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:1,plugins:[],list:[],hideOnSingleOption:!1,isShowIcon:!0,hidePortrait:!1,renderType:fD.Icon,panel:{className:"more-panel-content"}})}}]),n}(mD),jF=function(e){return e.ROOT_TOP_RIGHT="rootTopRight",e.ROOT_TOP_RIGHT_COLLAPSE="rootTopRightCollapse",e}(jF||{}),BF=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"registerIcons",value:function(){return{more:{icon:NF,class:"xgplayer-more-svg"}}}},{key:"children",value:function(){var e=this,t=this._getPlugins(),n=t.plugins,i=t.collapsePlugins,r={};return n.forEach((function(t){r[t.pluginName]={plugin:t,options:{root:e.root}}})),i.length&&(r[HF.pluginName]={plugin:HF,options:{root:this.root,plugins:i}}),r}},{key:"render",value:function(){return'<xg-right-grid class="xg-right-grid xgplayer-rightTop-iconList"></xg-right-grid>'}},{key:"_getPlugins",value:function(){var e,t=this,n=[],i=[],r=null===(e=this.player.config.ignores)||void 0===e?void 0:Hk(e).call(e,(function(e){return e.toLowerCase()}));return this.config.plugins.forEach((function(e){var o,a=e.pluginName.toLowerCase();null!=r&&SL(r).call(r,a)||("rootTopRight"===(null!==(o=t.player.config[a].position)&&void 0!==o?o:e.defaultConfig.position)?n.push(e):i.push(e))})),{plugins:null!=n?n:[],collapsePlugins:null!=i?i:[]}}}],[{key:"pluginName",get:function(){return"topRightBar"}},{key:"defaultConfig",get:function(){return{position:RS.POSITIONS.ROOT_TOP,plugins:[]}}},{key:"isTopRightPlugin",value:function(e,t){var n,i,r,o,a,s=null!==(i=null===(r=t[null==e||null===(n=e.pluginName)||void 0===n?void 0:n.toLowerCase()])||void 0===r?void 0:r.position)&&void 0!==i?i:null==e||null===(o=e.defaultConfig)||void 0===o?void 0:o.position;return!!SL(a=DF(jF)).call(a,s)}}]),n}(RS),KF=[JA,iR,sR,fA,dR,YP,JP,BA,QP,sD,lD,_D,ED,MF],zF=Um(FF=[]).call(FF,KF,[HA,vA,BF]),VF=Um(UF=[]).call(UF,KF,[OA,BF]),GF="pc"===oT.device?zF:VF;function WF(){return(new DOMParser).parseFromString('<svg width="21" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.892 2h4.445v1.778H3.892v4.444H2.114V3.778C2.114 2.796 2.91 2 3.892 2zm4.445 16v-4.444c0-.982-.796-1.778-1.778-1.778H2.114v1.778h2.944L2.264 16.35a.9.9 0 001.272 1.273l2.988-2.987a.918.918 0 00.035-.037V18h1.778zm8-6.222v4.444h-4.445V18h4.445c.981 0 1.777-.796 1.777-1.778v-4.444h-1.777zM11.892 2v4.445c0 .981.796 1.777 1.778 1.777h4.444V6.445H15.17l2.568-2.568a.9.9 0 10-1.273-1.273L13.67 5.4V2h-1.778z" fill="#fff"/></svg>',"image/svg+xml").firstChild}function YF(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.778 2h4.444v1.778H3.778v4.444H2V3.778C2 2.796 2.796 2 3.778 2zM2 11.778v4.444C2 17.204 2.796 18 3.778 18h4.444v-1.778H4.823l2.313-2.313a.9.9 0 00-1.272-1.273l-2.086 2.086v-2.944H2zm14.222 0v4.444h-4.444V18h4.444c.982 0 1.778-.796 1.778-1.778v-4.444h-1.778zM18 8.222V3.778C18 2.796 17.204 2 16.222 2h-4.444v1.778h2.945l-2.587 2.586a.9.9 0 101.273 1.273l2.813-2.813v3.398H18z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var XF,qF={startPlay:function(){return(new DOMParser).parseFromString('<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" rx="30" fill="#000" fill-opacity=".4"/><path d="M40.243 28.3a2 2 0 010 3.401L24.06 41.712c-1.332.825-3.052-.134-3.052-1.7V19.988c0-1.566 1.72-2.525 3.052-1.7l16.184 10.01z" fill="#fff"/></svg>',"image/svg+xml").firstChild},play:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.121 8.299a2 2 0 010 3.402l-7.94 4.91c-1.332.825-3.051-.133-3.051-1.7V5.09c0-1.567 1.72-2.525 3.052-1.701l7.939 4.911z" fill="#fff"/></svg>',"image/svg+xml").firstChild},pause:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5.313" y="3.75" width="3.125" height="12.5" rx=".625" fill="#fff"/><rect x="11.563" y="3.75" width="3.125" height="12.5" rx=".625" fill="#fff"/></svg>',"image/svg+xml").firstChild},fullscreen:YF,exitFullscreen:WF,replay:function(){return(new DOMParser).parseFromString('<svg width="72" height="72" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><g fill="#FFF" fill-rule="evenodd"><circle fill-opacity=".3" cx="36" cy="36" r="36"/><path d="M40.167 32.667a.833.833 0 01-.834-.834v-1.666c0-.46.373-.834.834-.834h5.409a11.653 11.653 0 00-9.576-5c-6.443 0-11.667 5.224-11.667 11.667S29.557 47.667 36 47.667c5.285 0 9.749-3.514 11.183-8.333h3.445C49.112 46.014 43.138 51 36 51c-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15 4.713 0 8.918 2.173 11.668 5.572l-.001-4.739c0-.46.373-.833.833-.833h1.667c.46 0 .833.373.833.833V31c0 .879-.68 1.598-1.542 1.662l-.125.005h-9.166z"/></g></svg>',"image/svg+xml").firstChild},volumeLarge:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.867 2.5h.55c.44 0 .799.34.83.771l.003.062v13.334c0 .44-.34.799-.771.83l-.062.003h-.55a.833.833 0 01-.444-.128l-.064-.045-4.867-3.744a.831.831 0 01-.322-.59l-.003-.07V7.077c0-.235.099-.458.271-.615l.054-.045L9.36 2.673a.832.832 0 01.43-.17l.078-.003h.55-.55zm6.767 2.278A7.474 7.474 0 0118.75 10a7.477 7.477 0 01-2.128 5.234.4.4 0 01-.57-.004l-.587-.586a.442.442 0 01.005-.617A5.812 5.812 0 0017.083 10c0-1.557-.61-2.97-1.603-4.017a.442.442 0 01-.003-.615l.586-.586a.4.4 0 01.57-.004zM2.5 6.667c.23 0 .417.186.417.416v5.834c0 .23-.187.416-.417.416h-.833a.417.417 0 01-.417-.416V7.083c0-.23.187-.416.417-.416H2.5zm11.768.46A4.153 4.153 0 0115.417 10c0 1.12-.442 2.137-1.162 2.886a.388.388 0 01-.555-.007l-.577-.578c-.176-.176-.156-.467.009-.655A2.49 2.49 0 0013.75 10a2.49 2.49 0 00-.61-1.636c-.163-.188-.182-.477-.006-.653l.578-.578a.388.388 0 01.556-.006z" fill="#fff"/></svg>',"image/svg+xml").firstChild},volumeMuted:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.045 2.5h.55c.44 0 .8.34.831.771l.003.062v13.334c0 .44-.34.799-.771.83l-.063.003h-.55a.833.833 0 01-.443-.128l-.065-.045-4.866-3.744a.831.831 0 01-.323-.59l-.003-.07V7.077c0-.235.1-.458.272-.615l.054-.045 4.866-3.744a.832.832 0 01.43-.17l.078-.003h.55-.55zM2.68 6.667c.23 0 .416.186.416.416v5.834c0 .23-.186.416-.416.416h-.834a.417.417 0 01-.416-.416V7.083c0-.23.186-.416.416-.416h.834zm10.467.294a.417.417 0 01.59 0l1.767 1.768L17.27 6.96a.417.417 0 01.589 0l.59.59a.417.417 0 010 .589L16.68 9.908l1.768 1.767c.15.15.162.387.035.55l-.035.04-.589.589a.417.417 0 01-.59 0l-1.767-1.768-1.768 1.768a.417.417 0 01-.59 0l-.588-.59a.417.417 0 010-.589l1.767-1.768-1.767-1.767a.417.417 0 01-.035-.55l.035-.04.589-.589z" fill="#fff"/></svg>',"image/svg+xml").firstChild},volumeSmall:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.867 2.5h.55c.44 0 .799.34.83.771l.003.062v13.334c0 .44-.34.799-.771.83l-.062.003h-.55a.833.833 0 01-.444-.128l-.064-.045-4.867-3.744a.831.831 0 01-.322-.59l-.003-.07V7.077c0-.235.099-.458.271-.615l.054-.045L9.36 2.673a.832.832 0 01.43-.17l.078-.003h.55-.55zM2.5 6.667c.23 0 .417.186.417.416v5.834c0 .23-.187.416-.417.416h-.833a.417.417 0 01-.417-.416V7.083c0-.23.187-.416.417-.416H2.5zm11.768.46A4.153 4.153 0 0115.417 10c0 1.12-.442 2.137-1.162 2.886a.388.388 0 01-.555-.007l-.577-.578c-.176-.176-.156-.467.009-.655A2.49 2.49 0 0013.75 10a2.49 2.49 0 00-.61-1.636c-.163-.188-.182-.477-.006-.653l.578-.578a.388.388 0 01.556-.006z" fill="#fff"/></svg>',"image/svg+xml").firstChild}},$F=Gy(Gy({},qF),{},{fullscreen:YF,exitFullscreen:WF}),ZF=Gy(Gy({},qF),{},{fullscreen:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.125 3a.375.375 0 00-.375.375v.75c0 .207.168.375.375.375H15.5v3.375c0 .207.168.375.375.375h.75A.375.375 0 0017 7.875v-4.5A.375.375 0 0016.625 3h-4.5zm0 12.5a.375.375 0 00-.375.375v.75c0 .207.168.375.375.375h4.5a.375.375 0 00.375-.375v-4.5a.375.375 0 00-.375-.375h-.75a.375.375 0 00-.375.375V15.5h-3.375zM3 3.375C3 3.168 3.168 3 3.375 3h4.5c.207 0 .375.168.375.375v.75a.375.375 0 01-.375.375H4.5v3.375a.375.375 0 01-.375.375h-.75A.375.375 0 013 7.875v-4.5zM7.875 15.5H4.5v-3.375a.375.375 0 00-.375-.375h-.75a.375.375 0 00-.375.375v4.5c0 .207.168.375.375.375h4.5a.375.375 0 00.375-.375v-.75a.375.375 0 00-.375-.375z" fill="#fff"/></svg>',"image/svg+xml").firstChild},exitFullscreen:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 8.333h-4.167c-.92 0-1.666-.746-1.666-1.666V2.5h1.666v4.167H17.5v1.666zM2.5 6.667v1.666h4.167c.92 0 1.666-.746 1.666-1.666V2.5H6.667v4.167H2.5zM2.5 13.333h4.167V17.5h1.666v-4.167c0-.92-.746-1.666-1.666-1.666H2.5v1.666zM13.333 17.5v-4.167H17.5v-1.666h-4.167c-.92 0-1.666.746-1.666 1.666V17.5h1.666z" fill="#fff"/></svg>',"image/svg+xml").firstChild}}),JF="pc"===oT.device?$F:ZF,QF=function(){function e(t){var n;if(_m(this,e),zy(this,"_lang",void 0),this._lang=(null==t?void 0:t.lang)||tT()||"en","zh"===this._lang&&(this._lang="zh-cn"),null!=t&&null!==(n=t.i18n)&&void 0!==n&&n.texts){var i,r,o=Hk(i=zL(null==t||null===(r=t.i18n)||void 0===r?void 0:r.texts)).call(i,(function(e){var t=ML(e,2);return{LANG:t[0],TEXT:t[1]}}));e.extend(o)}}return km(e,[{key:"setLang",value:function(e){this._lang=e}},{key:"getLang",value:function(){return this._lang}},{key:"normalize",value:function(e){return e?"string"==typeof e?e:e[this._lang]:""}},{key:"getText",value:function(e){var t,n,i;if(e){var r=null==lP?void 0:lP.lang;return null!==(t=null==r||null===(n=r[this._lang])||void 0===n?void 0:n[e])&&void 0!==t?t:null==r||null===(i=r.en)||void 0===i?void 0:i[e]}}}],[{key:"langKeys",get:function(){return lP.langKeys}},{key:"isLangValid",value:function(e){var t;return SL(t=lP.langKeys).call(t,e)||"zh"===e}},{key:"extend",value:function(e,t){lP.extend(e,t)}}]),e}(),eU=function(){function e(t){_m(this,e),zy(this,"_videoAttributes",void 0),zy(this,"_el",void 0),this._videoAttributes=fF(t),this._el=t}return km(e,[{key:"options",get:function(){var e=this;return{remainMediaAfterDestroy:!0,mediaEl:function(t){return dF(e._el,t)}}}},{key:"destroy",value:function(){pF(this._el,this._videoAttributes)}}]),e}(),tU=["autoplay"],nU=Gy(Gy({},RS.POSITIONS),jF),iU={id:"veplayer",width:"100%",height:"100%",decodeType:qy.Hardware,fullscreen:{useCssFullscreen:!1}},rU=function(e){var t,n,i,r,o=e.autoplay,a=Mm(e,tU);if(a.poster)if("string"==typeof a.poster)a.poster=OL(a.poster);else if("string"==typeof(null===(t=a.poster)||void 0===t?void 0:t.poster)){var s;a.poster.poster=OL(null===(s=a.poster)||void 0===s?void 0:s.poster)}(a.icons=Gy(Gy({},JF),a.icons?(n=a.icons,i={},zL(null!=n?n:{}).forEach((function(e){var t=ML(e,2),n=t[0],r=t[1];"string"==typeof r?console.warn("icons.".concat(n," has been removed")):i[n]=r})),i):{}),a.autoplay=Boolean(o),o&&"boolean"!=typeof o)&&(a.autoplayMuted=null==o?void 0:o.muted,a.videoAttributes=Gy(Gy({},null!==(r=a.videoAttributes)&&void 0!==r?r:{}),{},{muted:null==o?void 0:o.muted}),a.autoplayPlugin=o);return delete a.i18n,a},oU=function(){function e(){var t,n,i,r,o,a,s,l,u,c,h,f,d,p=this,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_m(this,e),zy(this,"_player",void 0),zy(this,"_sourceManager",void 0),zy(this,"_preparePlugins",void 0),zy(this,"_previousPrepareResult",void 0),zy(this,"_i18nManager",void 0),zy(this,"_events",{}),zy(this,"_customMedia",void 0),zy(this,"_errorCallback",void 0),zy(this,"_beforeFallbackError",void 0),this._sourceManager=v.sourceManager,this._preparePlugins=v.preparePlugins,this._previousPrepareResult=v.prepareResult,this._beforeFallbackError=v.beforeFallbackError,this._i18nManager=null!==(t=v.i18nManager)&&void 0!==t?t:new QF({i18n:v.i18n}),v.mediaElement&&(this._customMedia=new eU(v.mediaElement));var g=rU(Gy(Gy(Gy({},v),null===(n=this._customMedia)||void 0===n?void 0:n.options),null===(i=this._previousPrepareResult)||void 0===i?void 0:i.options)),y=Um(r=[]).call(r,mm(null!==(o=null===(a=this._previousPrepareResult)||void 0===a?void 0:a.plugins)&&void 0!==o?o:[]),mm(null!==(s=v.plugins)&&void 0!==s?s:GF)),m=[],_=[];y.forEach((function(e){BF.isTopRightPlugin(e,v)?m.push(e):_.push(e)})),this._player=new CP(Gy(Gy(Gy({},iU),g),{},{definition:Gy({list:null!==(l=null===(u=this._sourceManager.source)||void 0===u?void 0:u.definitions)&&void 0!==l?l:[],defaultDefinition:null===(c=this._sourceManager.definition)||void 0===c?void 0:c.definition},null!==(h=v.definition)&&void 0!==h?h:{}),url:null===(f=this._sourceManager.definition)||void 0===f?void 0:f.url,sources:Gy(Gy({},null!==(d=v.sources)&&void 0!==d?d:{}),{},{sourceManager:this._sourceManager}),topRightBar:{plugins:m},plugins:_,i18nManager:this._i18nManager,veplayer:this})),this.emit(AL.PLAYER_CREATE_FINISH,this._player),this._errorCallback=function(e){return p._handleFallback(e)},this._player.on(dT,this._errorCallback)}var t,n,i,r,o,a,s,l;return km(e,[{key:"readyState",get:function(){return this._player.readyState}},{key:"buffered",get:function(){return this._player.buffered}},{key:"played",get:function(){return this._player.played}},{key:"cumulateTime",get:function(){return this._player.cumulateTime}},{key:"isFocused",get:function(){return this._player.isActive}},{key:"isFullscreen",get:function(){return this._player.isFullscreen}},{key:"isCssFullscreen",get:function(){return this._player.isCssfullScreen}},{key:"networkState",get:function(){return this._player.networkState}},{key:"paused",get:function(){return this._player.paused}},{key:"ended",get:function(){return this._player.ended}},{key:"state",get:function(){return this._player.state}},{key:"url",get:function(){return this._player.config.url}},{key:"source",get:function(){var e;return null===(e=this._sourceManager.source)||void 0===e?void 0:e.name}},{key:"playerVersion",get:function(){return"2.10.1"}},{key:"definition",get:function(){var e;return null===(e=this._sourceManager.definition)||void 0===e?void 0:e.definition}},{key:"crossOrigin",get:function(){return this._player.crossOrigin},set:function(e){this._player.crossOrigin=e}},{key:"volume",get:function(){return this._player.volume},set:function(e){this._player.volume=e}},{key:"muted",get:function(){return this._player.muted},set:function(e){this._player.muted=e}},{key:"lang",get:function(){return this._i18nManager.getLang()},set:function(e){if(this._player.lang!==e)if(QF.isLangValid(e))this._i18nManager.setLang(e),this._player.lang=e;else{var t,n,i,r,o=QF.langKeys.join(","),a={en:Um(t="Sorry, we couldn't set the language to ".concat(e," because it's not currently supported. The list of supported languages includes ")).call(t,o,"."),"zh-cn":Um(n="不支持当前设置的语言".concat(e,", 支持的语言有")).call(n,o,", 请重新设置")};console.error((null===(i=this._i18nManager)||void 0===i||null===(r=i.normalize)||void 0===r?void 0:r.call(i,a))||a.en)}}},{key:"_src",get:function(){return this._player.currentSrc}},{key:"switch",value:(l=Yy(ny().mark((function e(t,n){var i,r,o,a;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t||1!==this._sourceManager.sources.length||1!==(null===(i=this._sourceManager.sources)||void 0===i||null===(i=i[0].definitions)||void 0===i?void 0:i.length)){e.next=5;break}return this._sourceManager.updateSources(t),e.next=4,this._switchUrl(t,{seamless:null==n?void 0:n.seamless});case 4:return e.abrupt("return",this._sourceManager.definition);case 5:if(o=Ym(r=this._sourceManager).call(r,t,n)){e.next=8;break}throw new Error("string"==typeof t?"No definition found for url: ".concat(t):Um(a="No definition found for source: ".concat(t.source,", definition: ")).call(a,t.definition));case 8:return e.next=10,this._switch(o);case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"updatePlaylist",value:(s=Yy(ny().mark((function e(t,n){var i;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._sourceManager.updateSources(t,n),e.abrupt("return",this._switch(i.definition));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"once",value:function(e,t){var n,i=this._transformEvent(e,t),r=i.xgCallback,o=i.xgEventName;r&&(null!==(n=this._events)&&void 0!==n&&n[e]||(this._events[e]=new Mk),this._events[e].set(t,r),this._player.once(o,r))}},{key:"off",value:function(e,t){var n,i=null===(n=this._events[e])||void 0===n?void 0:n.get(t),r=this._transformEvent(e).xgEventName;i&&(this._player.off(r,i),this._events[e].delete(t))}},{key:"emit",value:function(e,t){var n=this._transformEvent(e).xgEventName;this._player.emit(n,t)}},{key:"offAll",value:function(){this._events={},this._player.offAll()}},{key:"on",value:function(e,t){var n,i=this._transformEvent(e,t),r=i.xgCallback,o=i.xgEventName;r&&(null!==(n=this._events)&&void 0!==n&&n[e]||(this._events[e]=new Mk),this._events[e].set(t,r),this._player.on(o,r))}},{key:"play",value:function(){return this._player.play()}},{key:"pause",value:function(){return this._player.pause()}},{key:"requestPIP",value:function(){var e;null===(e=this._player.plugins.pip)||void 0===e||e.requestPIP()}},{key:"exitPIP",value:function(){var e;null===(e=this._player.plugins.pip)||void 0===e||e.exitPIP()}},{key:"retry",value:function(){return this._player.retry()}},{key:"focus",value:function(e){return this._player.focus(e)}},{key:"blur",value:function(e){return this._player.blur(e)}},{key:"canPlayType",value:function(e){return this._player.canPlayType(e)}},{key:"requestFullscreen",value:function(e){return this._player.getFullscreen(e)}},{key:"exitFullscreen",value:function(e){return this._player.exitFullscreen(e)}},{key:"requestCssFullscreen",value:function(e){return this._player.getCssFullscreen(e)}},{key:"exitCssFullscreen",value:function(){return this._player.exitCssFullscreen()}},{key:"registerPlugin",value:function(e,t){return this._player.registerPlugin(e,t)}},{key:"unRegisterPlugin",value:function(e){return this._player.unRegisterPlugin(e)}},{key:"showIcon",value:function(e){var t=this,n=this._player.getPlugin("more");e.forEach((function(e){var i=t._player.getPlugin(e);i&&null!=i&&i.root&&(i.config.position===nU.ROOT_TOP_RIGHT_COLLAPSE?null==n||n.showChild(i):i.show())}))}},{key:"hideIcon",value:function(e){var t=this,n=this._player.getPlugin("more");e.forEach((function(e){var i=t._player.getPlugin(e);i&&null!=i&&i.root&&(i.config.position===nU.ROOT_TOP_RIGHT_COLLAPSE?null==n||n.hideChild(i):i.hide())}))}},{key:"destroy",value:function(){var e;this._player.off(dT,this._errorCallback),this._player.destroy(),null===(e=this._customMedia)||void 0===e||e.destroy()}},{key:"prepare",value:(a=Yy(ny().mark((function e(t){var n,i,r,o,a,s,l,u,c,h,f,d,p=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=this._preparePlugins)||void 0===n?void 0:n.call(this,t);case 2:return null!=(o=e.sent)&&o.protocol&&null!==(i=this._previousPrepareResult)&&void 0!==i&&i.protocol?a=o.protocol===(null===(s=this._previousPrepareResult)||void 0===s?void 0:s.protocol):(h=null!==(l=null==o||null===(u=o.options)||void 0===u?void 0:u.url)&&void 0!==l?l:t,f=null===(c=this._player)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.url,a=f&&EF(h)===EF(f)),a||null===(d=this._previousPrepareResult)||void 0===d||null===(d=d.plugins)||void 0===d||d.forEach((function(e){p._player.unRegisterPlugin(e.pluginName)})),this._previousPrepareResult=o,null!=o&&o.options&&this._player.setConfig(o.options),e.abrupt("return",{plugins:a?[]:null==o||null===(r=o.plugins)||void 0===r?void 0:Hk(r).call(r,(function(e){return p._player.registerPlugin(e)})),options:null==o?void 0:o.options,isSameProtocol:a,useSrc:null==o?void 0:o.useSrc});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_handleFallback",value:(o=Yy(ny().mark((function e(t){var n,i,r,o=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._player.addClass(DS),n=this._sourceManager.url,i=this._sourceManager.fallback()){e.next=19;break}return r=WP(t,this._i18nManager),e.prev=5,e.next=8,this._beforeFallbackError(r);case 8:if(e.sent.canEmitError){e.next=12;break}return e.abrupt("return");case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(5);case 16:return this._player.removeClass(DS),this.emit(AL.FALLBACK_ERROR,r),e.abrupt("return");case 19:this._player.once("canplay",(function(){o._sourceManager.resetFallback()})),this.emit(AL.FALLBACK,{from:{url:n},to:{url:i}}),this._switchUrl(i);case 22:case"end":return e.stop()}}),e,this,[[5,14]])}))),function(e){return o.apply(this,arguments)})},{key:"_transformEvent",value:function(e,t){var n=this;return e===dT?{xgCallback:t?function(e){t(WP(e,n._i18nManager))}:void 0,xgEventName:e}:function(e,t){var n=RL[e];if(n)return{xgEventName:n.event,xgCallback:t?n.shouldCallback?function(){for(var e,i,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null!==(e=n.shouldCallback)&&void 0!==e&&e.call.apply(e,Um(i=[n]).call(i,o))&&(null==t||t.apply(void 0,o))}:t:void 0};return{xgEventName:e,xgCallback:t}}(e,t)}},{key:"_switch",value:(r=Yy(ny().mark((function e(t){var n,i,r,o,a,s,l,u,c,h,f,d,p;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=wD(this._sourceManager.definition),s=this._player.paused&&!this._player.isError,this._restartLiveLogger(),e.next=5,this.prepare(t.url);case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:if(l=e.t0,u=l.plugins,c=l.options,h=l.isSameProtocol,f=l.useSrc,null!=c&&c.url&&(t.url=null==c?void 0:c.url),this._sourceManager.switch(t),null===(n=this._player)||void 0===n||null===(n=n.plugins)||void 0===n||null===(n=n.sources)||void 0===n||n.renderItemList(),null===(i=this._player)||void 0===i||null===(i=i.plugins)||void 0===i||null===(i=i.definition)||void 0===i||i.renderItemList(),d=(null==t||null===(r=t.source)||void 0===r?void 0:r.name)!==(null==a||null===(o=a.source)||void 0===o?void 0:o.name),p=(null==t?void 0:t.definition)!==(null==a?void 0:a.definition),this._player.config.url=t.url,!h){e.next=24;break}d?(this.emit(AL.SOURCE_CHANGE),this._player.switchURL(t.url)):this._player.changeDefinition(t,a),e.next=28;break;case 24:return(p||d)&&this.emit(d?AL.SOURCE_CHANGE:AL.DEFINITION_CHANGE),e.next=27,this._switchDifferentProtocolUrl(u,t.url,s,f);case 27:p&&this.emit(AL.AFTER_DEFINITION_CHANGE);case 28:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_restartLiveLogger",value:function(){var e,t,n=null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.logger)||void 0===e?void 0:e._liveLogger;null!=n&&null!==(t=n.logger)&&void 0!==t&&t.destroyed&&(null==n||n.restart(!1))}},{key:"_switchDifferentProtocolUrl",value:(i=Yy(ny().mark((function e(t,n,i,r){var o,a,s=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&this._player.media&&(null!==(o=this._player.config)&&void 0!==o&&o.preProcessUrl&&(n=null===(a=this._player.config)||void 0===a?void 0:a.preProcessUrl(n).url),this._player.media.src=n),null==t||!t.length){e.next=4;break}return e.next=4,this._callBeforePlayerInitForUrl(t);case 4:return e.abrupt("return",new jk((function(e){var t=s._player.currentTime,n=function(){s._player.currentTime=t,i&&s._player.once(yT,(function(){s._player.pause()})),e()};oT.os.isAndroid?s.once(vT,(function(){n()})):s.once(yT,(function(){n()})),s._player.play()})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return i.apply(this,arguments)})},{key:"_switchUrl",value:(n=Yy(ny().mark((function e(t,n){var i,r,o,a,s,l,u,c,h;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._player.paused&&!this._player.isError,this._restartLiveLogger(),e.next=4,this.prepare(t);case 4:if(e.t0=e.sent,e.t0){e.next=7;break}e.t0={};case 7:if(o=e.t0,a=o.plugins,s=o.options,l=o.isSameProtocol,u=o.useSrc,c=null!==(i=null==s?void 0:s.url)&&void 0!==i?i:t,this._sourceManager.url=c,this._player.config.url=c,!l){e.next=21;break}if(!(h=this._player.switchURL(c,{seamless:null==n?void 0:n.seamless}))||!h.then){e.next=19;break}return e.abrupt("return",h);case 19:e.next=22;break;case 21:return e.abrupt("return",this._switchDifferentProtocolUrl(a,c,r,u));case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"_callBeforePlayerInitForUrl",value:function(e){var t=this;return new jk((function(n){null==e||e.forEach((function(e){e.beforePlayerInit()})),t._player.on(AL.CANPLAY,(function(){n(void 0)}))}))}}],[{key:"create",value:(t=Yy(ny().mark((function t(){var n,i,r,o,a,s,l,u,c=arguments;return ny().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=c.length>0&&void 0!==c[0]?c[0]:{},a=c.length>1?c[1]:void 0,s=new rD({sources:iD.normalize({url:o.url,fallbackUrls:o.fallbackUrls,sources:o.playlist}),url:o.url,defaultSource:o.defaultSource,defaultDefinition:o.defaultDefinition,maxFallbackRound:o.maxFallbackRound}),t.next=5,null==o||null===(n=o.preparePlugins)||void 0===n?void 0:n.call(o,null!==(i=s.url)&&void 0!==i?i:"");case 5:return null!=(l=t.sent)&&null!==(r=l.options)&&void 0!==r&&r.url&&(s.url=null==l||null===(u=l.options)||void 0===u?void 0:u.url),o.url=s.url,t.abrupt("return",new(null!=a?a:e)(Gy(Gy({},o),{},{prepareResult:l,sourceManager:s})));case 9:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})}]),e}();function aU(e){return sU.apply(this,arguments)}function sU(){return(sU=Yy(ny().mark((function e(t){return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oU.create(Gy({url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}XF="umd",aF.setModuleSystem(XF),void 0!==VePlayer.register?VePlayer.registerPlugin(xD.BizVod,{createVodPlayer:aU}):sF(xD.BizVod,{createVodPlayer:aU}),e.createVodPlayer=aU,e.load=uF,e.register=lF}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VePlayer={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=function(e){return e&&e.Math==Math&&e},r=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,u=l.apply,c=l.call,h="object"==typeof Reflect&&Reflect.apply||(s?c.bind(u):function(){return c.apply(u,arguments)}),f=a,d=Function.prototype,p=d.call,v=f&&d.bind.bind(p,p),g=f?v:function(e){return function(){return p.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},k=b,w=g,E=function(e){if("Function"===k(e))return w(e)},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},T=x.all,S=x.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},P={},A=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=a,I=Function.prototype.call,O=R?I.bind(I):function(){return I.apply(I,arguments)},M={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,N=D&&!L.call({1:2},1);M.f=N?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var F,U,H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},j=o,B=b,K=Object,z=g("".split),V=j((function(){return!K("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?z(e,""):K(e)}:K,G=function(e){return null==e},W=G,Y=TypeError,X=function(e){if(W(e))throw Y("Can't call method on "+e);return e},q=V,$=X,Z=function(e){return q($(e))},J=S,Q=x.all,ee=x.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Q}:function(e){return"object"==typeof e?null!==e:J(e)},te={},ne=te,ie=r,re=S,oe=function(e){return re(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(ne[e])||oe(ie[e]):ne[e]&&ne[e][t]||ie[e]&&ie[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=r,ce=le,he=ue.process,fe=ue.Deno,de=he&&he.versions||fe&&fe.version,pe=de&&de.v8;pe&&(U=(F=pe.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!U&&ce&&(!(F=ce.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ce.match(/Chrome\/(\d+)/))&&(U=+F[1]);var ve=U,ge=ve,ye=o,me=r.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ke=ae,we=S,Ee=se,Ce=Object,xe=be?function(e){return"symbol"==typeof e}:function(e){var t=ke("Symbol");return we(t)&&Ee(t.prototype,Ce(e))},Te=String,Se=function(e){try{return Te(e)}catch(t){return"Object"}},Pe=S,Ae=Se,Re=TypeError,Ie=function(e){if(Pe(e))return e;throw Re(Ae(e)+" is not a function")},Oe=Ie,Me=G,Le=function(e,t){var n=e[t];return Me(n)?void 0:Oe(n)},De=O,Ne=S,Fe=ee,Ue=TypeError,He={exports:{}},je=r,Be=Object.defineProperty,Ke=function(e,t){try{Be(je,e,{value:t,configurable:!0,writable:!0})}catch(n){je[e]=t}return t},ze="__core-js_shared__",Ve=r[ze]||Ke(ze,{}),Ge=Ve;(He.exports=function(e,t){return Ge[e]||(Ge[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var We=He.exports,Ye=X,Xe=Object,qe=function(e){return Xe(Ye(e))},$e=qe,Ze=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Ze($e(e),t)},Qe=g,et=0,tt=Math.random(),nt=Qe(1..toString),it=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nt(++et+tt,36)},rt=We,ot=Je,at=it,st=_e,lt=be,ut=r.Symbol,ct=rt("wks"),ht=lt?ut.for||ut:ut&&ut.withoutSetter||at,ft=function(e){return ot(ct,e)||(ct[e]=st&&ot(ut,e)?ut[e]:ht("Symbol."+e)),ct[e]},dt=O,pt=ee,vt=xe,gt=Le,yt=function(e,t){var n,i;if("string"===t&&Ne(n=e.toString)&&!Fe(i=De(n,e)))return i;if(Ne(n=e.valueOf)&&!Fe(i=De(n,e)))return i;if("string"!==t&&Ne(n=e.toString)&&!Fe(i=De(n,e)))return i;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=ft("toPrimitive"),bt=function(e,t){if(!pt(e)||vt(e))return e;var n,i=gt(e,_t);if(i){if(void 0===t&&(t="default"),n=dt(i,e,t),!pt(n)||vt(n))return n;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},kt=xe,wt=function(e){var t=bt(e,"string");return kt(t)?t:t+""},Et=ee,Ct=r.document,xt=Et(Ct)&&Et(Ct.createElement),Tt=function(e){return xt?Ct.createElement(e):{}},St=Tt,Pt=!A&&!o((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),At=A,Rt=O,It=M,Ot=H,Mt=Z,Lt=wt,Dt=Je,Nt=Pt,Ft=Object.getOwnPropertyDescriptor;P.f=At?Ft:function(e,t){if(e=Mt(e),t=Lt(t),Nt)try{return Ft(e,t)}catch(n){}if(Dt(e,t))return Ot(!Rt(It.f,e,t),e[t])};var Ut=o,Ht=S,jt=/#|\.prototype\./,Bt=function(e,t){var n=zt[Kt(e)];return n==Gt||n!=Vt&&(Ht(t)?Ut(t):!!t)},Kt=Bt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},zt=Bt.data={},Vt=Bt.NATIVE="N",Gt=Bt.POLYFILL="P",Wt=Bt,Yt=Ie,Xt=a,qt=E(E.bind),$t=function(e,t){return Yt(e),void 0===t?e:Xt?qt(e,t):function(){return e.apply(t,arguments)}},Zt={},Jt=A&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=ee,en=String,tn=TypeError,nn=function(e){if(Qt(e))return e;throw tn(en(e)+" is not an object")},rn=A,on=Pt,an=Jt,sn=nn,ln=wt,un=TypeError,cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,fn="enumerable",dn="configurable",pn="writable";Zt.f=rn?an?function(e,t,n){if(sn(e),t=ln(t),sn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&pn in n&&!n[pn]){var i=hn(e,t);i&&i[pn]&&(e[t]=n.value,n={configurable:dn in n?n[dn]:i[dn],enumerable:fn in n?n[fn]:i[fn],writable:!1})}return cn(e,t,n)}:cn:function(e,t,n){if(sn(e),t=ln(t),sn(n),on)try{return cn(e,t,n)}catch(i){}if("get"in n||"set"in n)throw un("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var vn=Zt,gn=H,yn=A?function(e,t,n){return vn.f(e,t,gn(1,n))}:function(e,t,n){return e[t]=n,e},mn=r,_n=h,bn=E,kn=S,wn=P.f,En=Wt,Cn=te,xn=$t,Tn=yn,Sn=Je,Pn=function(e){var t=function(n,i,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return _n(e,this,arguments)};return t.prototype=e.prototype,t},An=function(e,t){var n,i,r,o,a,s,l,u,c,h=e.target,f=e.global,d=e.stat,p=e.proto,v=f?mn:d?mn[h]:(mn[h]||{}).prototype,g=f?Cn:Cn[h]||Tn(Cn,h,{})[h],y=g.prototype;for(o in t)i=!(n=En(f?o:h+(d?".":"#")+o,e.forced))&&v&&Sn(v,o),s=g[o],i&&(l=e.dontCallGetSet?(c=wn(v,o))&&c.value:v[o]),a=i&&l?l:t[o],i&&typeof s==typeof a||(u=e.bind&&i?xn(a,mn):e.wrap&&i?Pn(a):p&&kn(a)?bn(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tn(u,"sham",!0),Tn(g,o,u),p&&(Sn(Cn,r=h+"Prototype")||Tn(Cn,r,{}),Tn(Cn[r],o,a),e.real&&y&&(n||!y[o])&&Tn(y,o,a)))},Rn=b,In=Array.isArray||function(e){return"Array"==Rn(e)},On=Math.ceil,Mn=Math.floor,Ln=Math.trunc||function(e){var t=+e;return(t>0?Mn:On)(t)},Dn=function(e){var t=+e;return t!=t||0===t?0:Ln(t)},Nn=Dn,Fn=Math.min,Un=function(e){return e>0?Fn(Nn(e),9007199254740991):0},Hn=Un,jn=function(e){return Hn(e.length)},Bn=TypeError,Kn=function(e){if(e>9007199254740991)throw Bn("Maximum allowed index exceeded");return e},zn=wt,Vn=Zt,Gn=H,Wn=function(e,t,n){var i=zn(t);i in e?Vn.f(e,i,Gn(0,n)):e[i]=n},Yn={};Yn[ft("toStringTag")]="z";var Xn="[object z]"===String(Yn),qn=Xn,$n=S,Zn=b,Jn=ft("toStringTag"),Qn=Object,ei="Arguments"==Zn(function(){return arguments}()),ti=qn?Zn:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Qn(e),Jn))?n:ei?Zn(t):"Object"==(i=Zn(t))&&$n(t.callee)?"Arguments":i},ni=S,ii=Ve,ri=g(Function.toString);ni(ii.inspectSource)||(ii.inspectSource=function(e){return ri(e)});var oi=ii.inspectSource,ai=g,si=o,li=S,ui=ti,ci=oi,hi=function(){},fi=[],di=ae("Reflect","construct"),pi=/^\s*(?:class|function)\b/,vi=ai(pi.exec),gi=!pi.exec(hi),yi=function(e){if(!li(e))return!1;try{return di(hi,fi,e),!0}catch(t){return!1}},mi=function(e){if(!li(e))return!1;switch(ui(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gi||!!vi(pi,ci(e))}catch(t){return!0}};mi.sham=!0;var _i=!di||si((function(){var e;return yi(yi.call)||!yi(Object)||!yi((function(){e=!0}))||e}))?mi:yi,bi=In,ki=_i,wi=ee,Ei=ft("species"),Ci=Array,xi=function(e){var t;return bi(e)&&(t=e.constructor,(ki(t)&&(t===Ci||bi(t.prototype))||wi(t)&&null===(t=t[Ei]))&&(t=void 0)),void 0===t?Ci:t},Ti=function(e,t){return new(xi(e))(0===t?0:t)},Si=o,Pi=ve,Ai=ft("species"),Ri=function(e){return Pi>=51||!Si((function(){var t=[];return(t.constructor={})[Ai]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ii=An,Oi=o,Mi=In,Li=ee,Di=qe,Ni=jn,Fi=Kn,Ui=Wn,Hi=Ti,ji=Ri,Bi=ve,Ki=ft("isConcatSpreadable"),zi=Bi>=51||!Oi((function(){var e=[];return e[Ki]=!1,e.concat()[0]!==e})),Vi=function(e){if(!Li(e))return!1;var t=e[Ki];return void 0!==t?!!t:Mi(e)};Ii({target:"Array",proto:!0,arity:1,forced:!zi||!ji("concat")},{concat:function(e){var t,n,i,r,o,a=Di(this),s=Hi(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(Vi(o=-1===t?a:arguments[t]))for(r=Ni(o),Fi(l+r),n=0;n<r;n++,l++)n in o&&Ui(s,l,o[n]);else Fi(l+1),Ui(s,l++,o);return s.length=l,s}});var Gi=ti,Wi=String,Yi=function(e){if("Symbol"===Gi(e))throw TypeError("Cannot convert a Symbol value to a string");return Wi(e)},Xi={},qi=Dn,$i=Math.max,Zi=Math.min,Ji=function(e,t){var n=qi(e);return n<0?$i(n+t,0):Zi(n,t)},Qi=Z,er=Ji,tr=jn,nr=function(e){return function(t,n,i){var r,o=Qi(t),a=tr(o),s=er(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ir={includes:nr(!0),indexOf:nr(!1)},rr={},or=Je,ar=Z,sr=ir.indexOf,lr=rr,ur=g([].push),cr=function(e,t){var n,i=ar(e),r=0,o=[];for(n in i)!or(lr,n)&&or(i,n)&&ur(o,n);for(;t.length>r;)or(i,n=t[r++])&&(~sr(o,n)||ur(o,n));return o},hr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fr=cr,dr=hr,pr=Object.keys||function(e){return fr(e,dr)},vr=A,gr=Jt,yr=Zt,mr=nn,_r=Z,br=pr;Xi.f=vr&&!gr?Object.defineProperties:function(e,t){mr(e);for(var n,i=_r(t),r=br(t),o=r.length,a=0;o>a;)yr.f(e,n=r[a++],i[n]);return e};var kr,wr=ae("document","documentElement"),Er=it,Cr=We("keys"),xr=function(e){return Cr[e]||(Cr[e]=Er(e))},Tr=nn,Sr=Xi,Pr=hr,Ar=rr,Rr=wr,Ir=Tt,Or="prototype",Mr="script",Lr=xr("IE_PROTO"),Dr=function(){},Nr=function(e){return"<"+Mr+">"+e+"</"+Mr+">"},Fr=function(e){e.write(Nr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ur=function(){try{kr=new ActiveXObject("htmlfile")}catch(r){}var e,t,n;Ur="undefined"!=typeof document?document.domain&&kr?Fr(kr):(t=Ir("iframe"),n="java"+Mr+":",t.style.display="none",Rr.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Nr("document.F=Object")),e.close(),e.F):Fr(kr);for(var i=Pr.length;i--;)delete Ur[Or][Pr[i]];return Ur()};Ar[Lr]=!0;var Hr=Object.create||function(e,t){var n;return null!==e?(Dr[Or]=Tr(e),n=new Dr,Dr[Or]=null,n[Lr]=e):n=Ur(),void 0===t?n:Sr.f(n,t)},jr={},Br=cr,Kr=hr.concat("length","prototype");jr.f=Object.getOwnPropertyNames||function(e){return Br(e,Kr)};var zr={},Vr=Ji,Gr=jn,Wr=Wn,Yr=Array,Xr=Math.max,qr=function(e,t,n){for(var i=Gr(e),r=Vr(t,i),o=Vr(void 0===n?i:n,i),a=Yr(Xr(o-r,0)),s=0;r<o;r++,s++)Wr(a,s,e[r]);return a.length=s,a},$r=b,Zr=Z,Jr=jr.f,Qr=qr,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zr.f=function(e){return eo&&"Window"==$r(e)?function(e){try{return Jr(e)}catch(t){return Qr(eo)}}(e):Jr(Zr(e))};var to={};to.f=Object.getOwnPropertySymbols;var no=yn,io=function(e,t,n,i){return i&&i.enumerable?e[t]=n:no(e,t,n),e},ro=Zt,oo=function(e,t,n){return ro.f(e,t,n)},ao={},so=ft;ao.f=so;var lo,uo,co,ho=te,fo=Je,po=ao,vo=Zt.f,go=function(e){var t=ho.Symbol||(ho.Symbol={});fo(t,e)||vo(t,e,{value:po.f(e)})},yo=O,mo=ae,_o=ft,bo=io,ko=function(){var e=mo("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,i=_o("toPrimitive");t&&!t[i]&&bo(t,i,(function(e){return yo(n,this)}),{arity:1})},wo=ti,Eo=Xn?{}.toString:function(){return"[object "+wo(this)+"]"},Co=Xn,xo=Zt.f,To=yn,So=Je,Po=Eo,Ao=ft("toStringTag"),Ro=function(e,t,n,i){if(e){var r=n?e:e.prototype;So(r,Ao)||xo(r,Ao,{configurable:!0,value:t}),i&&!Co&&To(r,"toString",Po)}},Io=S,Oo=r.WeakMap,Mo=Io(Oo)&&/native code/.test(String(Oo)),Lo=r,Do=ee,No=yn,Fo=Je,Uo=Ve,Ho=xr,jo=rr,Bo="Object already initialized",Ko=Lo.TypeError,zo=Lo.WeakMap;if(Mo||Uo.state){var Vo=Uo.state||(Uo.state=new zo);Vo.get=Vo.get,Vo.has=Vo.has,Vo.set=Vo.set,lo=function(e,t){if(Vo.has(e))throw Ko(Bo);return t.facade=e,Vo.set(e,t),t},uo=function(e){return Vo.get(e)||{}},co=function(e){return Vo.has(e)}}else{var Go=Ho("state");jo[Go]=!0,lo=function(e,t){if(Fo(e,Go))throw Ko(Bo);return t.facade=e,No(e,Go,t),t},uo=function(e){return Fo(e,Go)?e[Go]:{}},co=function(e){return Fo(e,Go)}}var Wo={set:lo,get:uo,has:co,enforce:function(e){return co(e)?uo(e):lo(e,{})},getterFor:function(e){return function(t){var n;if(!Do(t)||(n=uo(t)).type!==e)throw Ko("Incompatible receiver, "+e+" required");return n}}},Yo=$t,Xo=V,qo=qe,$o=jn,Zo=Ti,Jo=g([].push),Qo=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,h){for(var f,d,p=qo(l),v=Xo(p),g=Yo(u,c),y=$o(v),m=0,_=h||Zo,b=t?_(l,y):n||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(d=g(f=v[m],m,p),e))if(t)b[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Jo(b,f)}else switch(e){case 4:return!1;case 7:Jo(b,f)}return o?-1:i||r?r:b}},ea={forEach:Qo(0),map:Qo(1),filter:Qo(2),some:Qo(3),every:Qo(4),find:Qo(5),findIndex:Qo(6),filterReject:Qo(7)},ta=An,na=r,ia=O,ra=g,oa=A,aa=_e,sa=o,la=Je,ua=se,ca=nn,ha=Z,fa=wt,da=Yi,pa=H,va=Hr,ga=pr,ya=jr,ma=zr,_a=to,ba=P,ka=Zt,wa=Xi,Ea=M,Ca=io,xa=oo,Ta=We,Sa=rr,Pa=it,Aa=ft,Ra=ao,Ia=go,Oa=ko,Ma=Ro,La=Wo,Da=ea.forEach,Na=xr("hidden"),Fa="Symbol",Ua="prototype",Ha=La.set,ja=La.getterFor(Fa),Ba=Object[Ua],Ka=na.Symbol,za=Ka&&Ka[Ua],Va=na.TypeError,Ga=na.QObject,Wa=ba.f,Ya=ka.f,Xa=ma.f,qa=Ea.f,$a=ra([].push),Za=Ta("symbols"),Ja=Ta("op-symbols"),Qa=Ta("wks"),es=!Ga||!Ga[Ua]||!Ga[Ua].findChild,ts=oa&&sa((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Wa(Ba,t);i&&delete Ba[t],Ya(e,t,n),i&&e!==Ba&&Ya(Ba,t,i)}:Ya,ns=function(e,t){var n=Za[e]=va(za);return Ha(n,{type:Fa,tag:e,description:t}),oa||(n.description=t),n},is=function(e,t,n){e===Ba&&is(Ja,t,n),ca(e);var i=fa(t);return ca(n),la(Za,i)?(n.enumerable?(la(e,Na)&&e[Na][i]&&(e[Na][i]=!1),n=va(n,{enumerable:pa(0,!1)})):(la(e,Na)||Ya(e,Na,pa(1,{})),e[Na][i]=!0),ts(e,i,n)):Ya(e,i,n)},rs=function(e,t){ca(e);var n=ha(t),i=ga(n).concat(ls(n));return Da(i,(function(t){oa&&!ia(os,n,t)||is(e,t,n[t])})),e},os=function(e){var t=fa(e),n=ia(qa,this,t);return!(this===Ba&&la(Za,t)&&!la(Ja,t))&&(!(n||!la(this,t)||!la(Za,t)||la(this,Na)&&this[Na][t])||n)},as=function(e,t){var n=ha(e),i=fa(t);if(n!==Ba||!la(Za,i)||la(Ja,i)){var r=Wa(n,i);return!r||!la(Za,i)||la(n,Na)&&n[Na][i]||(r.enumerable=!0),r}},ss=function(e){var t=Xa(ha(e)),n=[];return Da(t,(function(e){la(Za,e)||la(Sa,e)||$a(n,e)})),n},ls=function(e){var t=e===Ba,n=Xa(t?Ja:ha(e)),i=[];return Da(n,(function(e){!la(Za,e)||t&&!la(Ba,e)||$a(i,Za[e])})),i};aa||(Ka=function(){if(ua(za,this))throw Va("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?da(arguments[0]):void 0,t=Pa(e),n=function(e){this===Ba&&ia(n,Ja,e),la(this,Na)&&la(this[Na],t)&&(this[Na][t]=!1),ts(this,t,pa(1,e))};return oa&&es&&ts(Ba,t,{configurable:!0,set:n}),ns(t,e)},Ca(za=Ka[Ua],"toString",(function(){return ja(this).tag})),Ca(Ka,"withoutSetter",(function(e){return ns(Pa(e),e)})),Ea.f=os,ka.f=is,wa.f=rs,ba.f=as,ya.f=ma.f=ss,_a.f=ls,Ra.f=function(e){return ns(Aa(e),e)},oa&&xa(za,"description",{configurable:!0,get:function(){return ja(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ka}),Da(ga(Qa),(function(e){Ia(e)})),ta({target:Fa,stat:!0,forced:!aa},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):rs(va(e),t)},defineProperty:is,defineProperties:rs,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Oa(),Ma(Ka,Fa),Sa[Na]=!0;var us=_e&&!!Symbol.for&&!!Symbol.keyFor,cs=An,hs=ae,fs=Je,ds=Yi,ps=We,vs=us,gs=ps("string-to-symbol-registry"),ys=ps("symbol-to-string-registry");cs({target:"Symbol",stat:!0,forced:!vs},{for:function(e){var t=ds(e);if(fs(gs,t))return gs[t];var n=hs("Symbol")(t);return gs[t]=n,ys[n]=t,n}});var ms=An,_s=Je,bs=xe,ks=Se,ws=us,Es=We("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!ws},{keyFor:function(e){if(!bs(e))throw TypeError(ks(e)+" is not a symbol");if(_s(Es,e))return Es[e]}});var Cs=g([].slice),xs=In,Ts=S,Ss=b,Ps=Yi,As=g([].push),Rs=An,Is=ae,Os=h,Ms=O,Ls=g,Ds=o,Ns=S,Fs=xe,Us=Cs,Hs=function(e){if(Ts(e))return e;if(xs(e)){for(var t=e.length,n=[],i=0;i<t;i++){var r=e[i];"string"==typeof r?As(n,r):"number"!=typeof r&&"Number"!=Ss(r)&&"String"!=Ss(r)||As(n,Ps(r))}var o=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(xs(this))return t;for(var i=0;i<o;i++)if(n[i]===e)return t}}},js=_e,Bs=String,Ks=Is("JSON","stringify"),zs=Ls(/./.exec),Vs=Ls("".charAt),Gs=Ls("".charCodeAt),Ws=Ls("".replace),Ys=Ls(1..toString),Xs=/[\uD800-\uDFFF]/g,qs=/^[\uD800-\uDBFF]$/,$s=/^[\uDC00-\uDFFF]$/,Zs=!js||Ds((function(){var e=Is("Symbol")();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))})),Js=Ds((function(){return'"\\udf06\\ud834"'!==Ks("\udf06\ud834")||'"\\udead"'!==Ks("\udead")})),Qs=function(e,t){var n=Us(arguments),i=Hs(t);if(Ns(i)||void 0!==e&&!Fs(e))return n[1]=function(e,t){if(Ns(i)&&(t=Ms(i,this,Bs(e),t)),!Fs(t))return t},Os(Ks,null,n)},el=function(e,t,n){var i=Vs(n,t-1),r=Vs(n,t+1);return zs(qs,e)&&!zs($s,r)||zs($s,e)&&!zs(qs,i)?"\\u"+Ys(Gs(e,0),16):e};Ks&&Rs({target:"JSON",stat:!0,arity:3,forced:Zs||Js},{stringify:function(e,t,n){var i=Us(arguments),r=Os(Zs?Qs:Ks,null,i);return Js&&"string"==typeof r?Ws(r,Xs,el):r}});var tl=to,nl=qe;An({target:"Object",stat:!0,forced:!_e||o((function(){tl.f(1)}))},{getOwnPropertySymbols:function(e){var t=tl.f;return t?t(nl(e)):[]}}),go("asyncIterator"),go("hasInstance"),go("isConcatSpreadable"),go("iterator"),go("match"),go("matchAll"),go("replace"),go("search"),go("species"),go("split");var il=ko;go("toPrimitive"),il();var rl=ae,ol=Ro;go("toStringTag"),ol(rl("Symbol"),"Symbol"),go("unscopables"),Ro(r.JSON,"JSON",!0);var al,sl,ll,ul=te.Symbol,cl={},hl=A,fl=Je,dl=Function.prototype,pl=hl&&Object.getOwnPropertyDescriptor,vl=fl(dl,"name"),gl={EXISTS:vl,PROPER:vl&&"something"===function(){}.name,CONFIGURABLE:vl&&(!hl||hl&&pl(dl,"name").configurable)},yl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ml=Je,_l=S,bl=qe,kl=yl,wl=xr("IE_PROTO"),El=Object,Cl=El.prototype,xl=kl?El.getPrototypeOf:function(e){var t=bl(e);if(ml(t,wl))return t[wl];var n=t.constructor;return _l(n)&&t instanceof n?n.prototype:t instanceof El?Cl:null},Tl=o,Sl=S,Pl=ee,Al=Hr,Rl=xl,Il=io,Ol=ft("iterator"),Ml=!1;[].keys&&("next"in(ll=[].keys())?(sl=Rl(Rl(ll)))!==Object.prototype&&(al=sl):Ml=!0);var Ll=!Pl(al)||Tl((function(){var e={};return al[Ol].call(e)!==e}));Sl((al=Ll?{}:Al(al))[Ol])||Il(al,Ol,(function(){return this}));var Dl={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:Ml},Nl=Dl.IteratorPrototype,Fl=Hr,Ul=H,Hl=Ro,jl=cl,Bl=function(){return this},Kl=function(e,t,n,i){var r=t+" Iterator";return e.prototype=Fl(Nl,{next:Ul(+!i,n)}),Hl(e,r,!1,!0),jl[r]=Bl,e},zl=g,Vl=Ie,Gl=S,Wl=String,Yl=TypeError,Xl=function(e,t,n){try{return zl(Vl(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}},ql=nn,$l=function(e){if("object"==typeof e||Gl(e))return e;throw Yl("Can't set "+Wl(e)+" as a prototype")},Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Xl(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return ql(n),$l(i),t?e(n,i):n.__proto__=i,n}}():void 0),Jl=An,Ql=O,eu=gl,tu=Kl,nu=xl,iu=Ro,ru=io,ou=cl,au=Dl,su=eu.PROPER,lu=au.BUGGY_SAFARI_ITERATORS,uu=ft("iterator"),cu="keys",hu="values",fu="entries",du=function(){return this},pu=function(e,t,n,i,r,o,a){tu(n,t,i);var s,l,u,c=function(e){if(e===r&&v)return v;if(!lu&&e in d)return d[e];switch(e){case cu:case hu:case fu:return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",f=!1,d=e.prototype,p=d[uu]||d["@@iterator"]||r&&d[r],v=!lu&&p||c(r),g="Array"==t&&d.entries||p;if(g&&(s=nu(g.call(new e)))!==Object.prototype&&s.next&&(iu(s,h,!0,!0),ou[h]=du),su&&r==hu&&p&&p.name!==hu&&(f=!0,v=function(){return Ql(p,this)}),r)if(l={values:c(hu),keys:o?v:c(cu),entries:c(fu)},a)for(u in l)(lu||f||!(u in d))&&ru(d,u,l[u]);else Jl({target:t,proto:!0,forced:lu||f},l);return a&&d[uu]!==v&&ru(d,uu,v,{name:r}),ou[t]=v,l},vu=function(e,t){return{value:e,done:t}},gu=Z,yu=cl,mu=Wo;Zt.f;var _u=pu,bu=vu,ku="Array Iterator",wu=mu.set,Eu=mu.getterFor(ku);_u(Array,"Array",(function(e,t){wu(this,{type:ku,target:gu(e),index:0,kind:t})}),(function(){var e=Eu(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,bu(void 0,!0)):bu("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values"),yu.Arguments=yu.Array;var Cu={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},xu=r,Tu=ti,Su=yn,Pu=cl,Au=ft("toStringTag");for(var Ru in Cu){var Iu=xu[Ru],Ou=Iu&&Iu.prototype;Ou&&Tu(Ou)!==Au&&Su(Ou,Au,Ru),Pu[Ru]=Pu.Array}var Mu=ul;go("dispose");var Lu=Mu;go("asyncDispose");var Du=An,Nu=g,Fu=ae("Symbol"),Uu=Fu.keyFor,Hu=Nu(Fu.prototype.valueOf);Du({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Uu(Hu(e))}catch(t){return!1}}});for(var ju=An,Bu=We,Ku=ae,zu=g,Vu=xe,Gu=ft,Wu=Ku("Symbol"),Yu=Wu.isWellKnown,Xu=Ku("Object","getOwnPropertyNames"),qu=zu(Wu.prototype.valueOf),$u=Bu("wks"),Zu=0,Ju=Xu(Wu),Qu=Ju.length;Zu<Qu;Zu++)try{var ec=Ju[Zu];Vu(Wu[ec])&&Gu(ec)}catch(lU){}ju({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yu&&Yu(e))return!0;try{for(var t=qu(e),n=0,i=Xu($u),r=i.length;n<r;n++)if($u[i[n]]==t)return!0}catch(lU){}return!1}}),go("matcher"),go("metadataKey"),go("observable"),go("metadata"),go("patternMatch"),go("replaceAll");var tc=Lu,nc=n(tc),ic=g,rc=Dn,oc=Yi,ac=X,sc=ic("".charAt),lc=ic("".charCodeAt),uc=ic("".slice),cc=function(e){return function(t,n){var i,r,o=oc(ac(t)),a=rc(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=lc(o,a))<55296||i>56319||a+1===s||(r=lc(o,a+1))<56320||r>57343?e?sc(o,a):i:e?uc(o,a,a+2):r-56320+(i-55296<<10)+65536}},hc={codeAt:cc(!1),charAt:cc(!0)},fc=hc.charAt,dc=Yi,pc=Wo,vc=pu,gc=vu,yc="String Iterator",mc=pc.set,_c=pc.getterFor(yc);vc(String,"String",(function(e){mc(this,{type:yc,string:dc(e),index:0})}),(function(){var e,t=_c(this),n=t.string,i=t.index;return i>=n.length?gc(void 0,!0):(e=fc(n,i),t.index+=e.length,gc(e,!1))}));var bc=ao.f("iterator"),kc=n(bc);function wc(e){return(wc="function"==typeof nc&&"symbol"==typeof kc?function(e){return typeof e}:function(e){return e&&"function"==typeof nc&&e.constructor===nc&&e!==nc.prototype?"symbol":typeof e})(e)}var Ec={exports:{}},Cc=An,xc=A,Tc=Zt.f;Cc({target:"Object",stat:!0,forced:Object.defineProperty!==Tc,sham:!xc},{defineProperty:Tc});var Sc=te.Object,Pc=Ec.exports=function(e,t,n){return Sc.defineProperty(e,t,n)};Sc.defineProperty.sham&&(Pc.sham=!0);var Ac=Ec.exports,Rc=n(Ac);An({target:"Object",stat:!0,sham:!A},{create:Hr});var Ic=te.Object,Oc=n((function(e,t){return Ic.create(e,t)})),Mc=qe,Lc=xl,Dc=yl;An({target:"Object",stat:!0,forced:o((function(){Lc(1)})),sham:!Dc},{getPrototypeOf:function(e){return Lc(Mc(e))}});var Nc=te.Object.getPrototypeOf,Fc=n(Nc),Uc=o,Hc=function(e,t){var n=[][e];return!!n&&Uc((function(){n.call(null,t||function(){return 1},1)}))},jc=ea.forEach,Bc=Hc("forEach")?[].forEach:function(e){return jc(this,e,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!=Bc},{forEach:Bc});var Kc=te,zc=function(e){return Kc[e+"Prototype"]},Vc=zc("Array").forEach,Gc=ti,Wc=Je,Yc=se,Xc=Vc,qc=Array.prototype,$c={DOMTokenList:!0,NodeList:!0},Zc=n((function(e){var t=e.forEach;return e===qc||Yc(qc,e)&&t===qc.forEach||Wc($c,Gc(e))?Xc:t})),Jc=A,Qc=In,eh=TypeError,th=Object.getOwnPropertyDescriptor,nh=Jc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(lU){return lU instanceof TypeError}}()?function(e,t){if(Qc(e)&&!th(e,"length").writable)throw eh("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ih=qe,rh=jn,oh=nh,ah=Kn;An({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(lU){return lU instanceof TypeError}}()},{push:function(e){var t=ih(this),n=rh(t),i=arguments.length;ah(n+i);for(var r=0;r<i;r++)t[n]=arguments[r],n++;return oh(t,n),n}});var sh=zc("Array").push,lh=se,uh=sh,ch=Array.prototype,hh=n((function(e){var t=e.push;return e===ch||lh(ch,e)&&t===ch.push?uh:t}));An({target:"Object",stat:!0},{setPrototypeOf:Zl});var fh=te.Object.setPrototypeOf,dh=n(fh),ph=ae,vh=jr,gh=to,yh=nn,mh=g([].concat),_h=ph("Reflect","ownKeys")||function(e){var t=vh.f(yh(e)),n=gh.f;return n?mh(t,n(e)):t},bh=Je,kh=_h,wh=P,Eh=Zt,Ch=ee,xh=yn,Th=Error,Sh=g("".replace),Ph=String(Th("zxcasd").stack),Ah=/\n\s*at [^:]*:[^\n]*/,Rh=Ah.test(Ph),Ih=H,Oh=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ih(1,7)),7!==e.stack)})),Mh=yn,Lh=function(e,t){if(Rh&&"string"==typeof e&&!Th.prepareStackTrace)for(;t--;)e=Sh(e,Ah,"");return e},Dh=Oh,Nh=Error.captureStackTrace,Fh=cl,Uh=ft("iterator"),Hh=Array.prototype,jh=function(e){return void 0!==e&&(Fh.Array===e||Hh[Uh]===e)},Bh=ti,Kh=Le,zh=G,Vh=cl,Gh=ft("iterator"),Wh=function(e){if(!zh(e))return Kh(e,Gh)||Kh(e,"@@iterator")||Vh[Bh(e)]},Yh=O,Xh=Ie,qh=nn,$h=Se,Zh=Wh,Jh=TypeError,Qh=function(e,t){var n=arguments.length<2?Zh(e):t;if(Xh(n))return qh(Yh(n,e));throw Jh($h(e)+" is not iterable")},ef=O,tf=nn,nf=Le,rf=function(e,t,n){var i,r;tf(e);try{if(!(i=nf(e,"return"))){if("throw"===t)throw n;return n}i=ef(i,e)}catch(lU){r=!0,i=lU}if("throw"===t)throw n;if(r)throw i;return tf(i),n},of=$t,af=O,sf=nn,lf=Se,uf=jh,cf=jn,hf=se,ff=Qh,df=Wh,pf=rf,vf=TypeError,gf=function(e,t){this.stopped=e,this.result=t},yf=gf.prototype,mf=function(e,t,n){var i,r,o,a,s,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=of(t,c),g=function(e){return i&&pf(i,"normal",e),new gf(!0,e)},y=function(e){return h?(sf(e),p?v(e[0],e[1],g):v(e[0],e[1])):p?v(e,g):v(e)};if(f)i=e.iterator;else if(d)i=e;else{if(!(r=df(e)))throw vf(lf(e)+" is not iterable");if(uf(r)){for(o=0,a=cf(e);a>o;o++)if((s=y(e[o]))&&hf(yf,s))return s;return new gf(!1)}i=ff(e,r)}for(l=f?e.next:i.next;!(u=af(l,i)).done;){try{s=y(u.value)}catch(lU){pf(i,"throw",lU)}if("object"==typeof s&&s&&hf(yf,s))return s}return new gf(!1)},_f=Yi,bf=An,kf=se,wf=xl,Ef=Zl,Cf=function(e,t,n){for(var i=kh(t),r=Eh.f,o=wh.f,a=0;a<i.length;a++){var s=i[a];bh(e,s)||n&&bh(n,s)||r(e,s,o(t,s))}},xf=Hr,Tf=yn,Sf=H,Pf=function(e,t){Ch(t)&&"cause"in t&&xh(e,"cause",t.cause)},Af=function(e,t,n,i){Dh&&(Nh?Nh(e,t):Mh(e,"stack",Lh(n,i)))},Rf=mf,If=function(e,t){return void 0===e?arguments.length<2?"":t:_f(e)},Of=ft("toStringTag"),Mf=Error,Lf=[].push,Df=function(e,t){var n,i=kf(Nf,this);Ef?n=Ef(Mf(),i?wf(this):Nf):(n=i?this:xf(Nf),Tf(n,Of,"Error")),void 0!==t&&Tf(n,"message",If(t)),Af(n,Df,n.stack,1),arguments.length>2&&Pf(n,arguments[2]);var r=[];return Rf(e,Lf,{that:r}),Tf(n,"errors",r),n};Ef?Ef(Df,Mf):Cf(Df,Mf,{name:!0});var Nf=Df.prototype=xf(Mf.prototype,{constructor:Sf(1,Df),message:Sf(1,""),name:Sf(1,"AggregateError")});bf({global:!0,constructor:!0,arity:2},{AggregateError:Df});var Ff,Uf,Hf,jf,Bf="undefined"!=typeof process&&"process"==b(process),Kf=ae,zf=oo,Vf=A,Gf=ft("species"),Wf=function(e){var t=Kf(e);Vf&&t&&!t[Gf]&&zf(t,Gf,{configurable:!0,get:function(){return this}})},Yf=se,Xf=TypeError,qf=function(e,t){if(Yf(t,e))return e;throw Xf("Incorrect invocation")},$f=_i,Zf=Se,Jf=TypeError,Qf=function(e){if($f(e))return e;throw Jf(Zf(e)+" is not a constructor")},ed=nn,td=Qf,nd=G,id=ft("species"),rd=function(e,t){var n,i=ed(e).constructor;return void 0===i||nd(n=ed(i)[id])?t:td(n)},od=TypeError,ad=function(e,t){if(e<t)throw od("Not enough arguments");return e},sd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),ld=r,ud=h,cd=$t,hd=S,fd=Je,dd=o,pd=wr,vd=Cs,gd=Tt,yd=ad,md=sd,_d=Bf,bd=ld.setImmediate,kd=ld.clearImmediate,wd=ld.process,Ed=ld.Dispatch,Cd=ld.Function,xd=ld.MessageChannel,Td=ld.String,Sd=0,Pd={},Ad="onreadystatechange";dd((function(){Ff=ld.location}));var Rd=function(e){if(fd(Pd,e)){var t=Pd[e];delete Pd[e],t()}},Id=function(e){return function(){Rd(e)}},Od=function(e){Rd(e.data)},Md=function(e){ld.postMessage(Td(e),Ff.protocol+"//"+Ff.host)};bd&&kd||(bd=function(e){yd(arguments.length,1);var t=hd(e)?e:Cd(e),n=vd(arguments,1);return Pd[++Sd]=function(){ud(t,void 0,n)},Uf(Sd),Sd},kd=function(e){delete Pd[e]},_d?Uf=function(e){wd.nextTick(Id(e))}:Ed&&Ed.now?Uf=function(e){Ed.now(Id(e))}:xd&&!md?(jf=(Hf=new xd).port2,Hf.port1.onmessage=Od,Uf=cd(jf.postMessage,jf)):ld.addEventListener&&hd(ld.postMessage)&&!ld.importScripts&&Ff&&"file:"!==Ff.protocol&&!dd(Md)?(Uf=Md,ld.addEventListener("message",Od,!1)):Uf=Ad in gd("script")?function(e){pd.appendChild(gd("script"))[Ad]=function(){pd.removeChild(this),Rd(e)}}:function(e){setTimeout(Id(e),0)});var Ld={set:bd,clear:kd},Dd=function(){this.head=null,this.tail=null};Dd.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Nd,Fd,Ud,Hd,jd,Bd=Dd,Kd=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,zd=/web0s(?!.*chrome)/i.test(le),Vd=r,Gd=$t,Wd=P.f,Yd=Ld.set,Xd=Bd,qd=sd,$d=Kd,Zd=zd,Jd=Bf,Qd=Vd.MutationObserver||Vd.WebKitMutationObserver,ep=Vd.document,tp=Vd.process,np=Vd.Promise,ip=Wd(Vd,"queueMicrotask"),rp=ip&&ip.value;if(!rp){var op=new Xd,ap=function(){var e,t;for(Jd&&(e=tp.domain)&&e.exit();t=op.get();)try{t()}catch(lU){throw op.head&&Nd(),lU}e&&e.enter()};qd||Jd||Zd||!Qd||!ep?!$d&&np&&np.resolve?((Hd=np.resolve(void 0)).constructor=np,jd=Gd(Hd.then,Hd),Nd=function(){jd(ap)}):Jd?Nd=function(){tp.nextTick(ap)}:(Yd=Gd(Yd,Vd),Nd=function(){Yd(ap)}):(Fd=!0,Ud=ep.createTextNode(""),new Qd(ap).observe(Ud,{characterData:!0}),Nd=function(){Ud.data=Fd=!Fd}),rp=function(e){op.head||Nd(),op.add(e)}}var sp=rp,lp=function(e){try{return{error:!1,value:e()}}catch(lU){return{error:!0,value:lU}}},up=r.Promise,cp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,hp=!cp&&!Bf&&"object"==typeof window&&"object"==typeof document,fp=r,dp=up,pp=S,vp=Wt,gp=oi,yp=ft,mp=hp,_p=cp,bp=ve,kp=dp&&dp.prototype,wp=yp("species"),Ep=!1,Cp=pp(fp.PromiseRejectionEvent),xp={CONSTRUCTOR:vp("Promise",(function(){var e=gp(dp),t=e!==String(dp);if(!t&&66===bp)return!0;if(!kp.catch||!kp.finally)return!0;if(!bp||bp<51||!/native code/.test(e)){var n=new dp((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};if((n.constructor={})[wp]=i,!(Ep=n.then((function(){}))instanceof i))return!0}return!t&&(mp||_p)&&!Cp})),REJECTION_EVENT:Cp,SUBCLASSING:Ep},Tp={},Sp=Ie,Pp=TypeError,Ap=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw Pp("Bad Promise constructor");t=e,n=i})),this.resolve=Sp(t),this.reject=Sp(n)};Tp.f=function(e){return new Ap(e)};var Rp,Ip,Op=An,Mp=Bf,Lp=r,Dp=O,Np=io,Fp=Ro,Up=Wf,Hp=Ie,jp=S,Bp=ee,Kp=qf,zp=rd,Vp=Ld.set,Gp=sp,Wp=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(lU){}},Yp=lp,Xp=Bd,qp=Wo,$p=up,Zp=xp,Jp=Tp,Qp="Promise",ev=Zp.CONSTRUCTOR,tv=Zp.REJECTION_EVENT,nv=qp.getterFor(Qp),iv=qp.set,rv=$p&&$p.prototype,ov=$p,av=rv,sv=Lp.TypeError,lv=Lp.document,uv=Lp.process,cv=Jp.f,hv=cv,fv=!!(lv&&lv.createEvent&&Lp.dispatchEvent),dv="unhandledrejection",pv=function(e){var t;return!(!Bp(e)||!jp(t=e.then))&&t},vv=function(e,t){var n,i,r,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&bv(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),r=!0)),n===e.promise?u(sv("Promise-chain cycle")):(i=pv(n))?Dp(i,n,l,u):l(n)):u(o)}catch(lU){c&&!r&&c.exit(),u(lU)}},gv=function(e,t){e.notified||(e.notified=!0,Gp((function(){for(var n,i=e.reactions;n=i.get();)vv(n,e);e.notified=!1,t&&!e.rejection&&mv(e)})))},yv=function(e,t,n){var i,r;fv?((i=lv.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),Lp.dispatchEvent(i)):i={promise:t,reason:n},!tv&&(r=Lp["on"+e])?r(i):e===dv&&Wp("Unhandled promise rejection",n)},mv=function(e){Dp(Vp,Lp,(function(){var t,n=e.facade,i=e.value;if(_v(e)&&(t=Yp((function(){Mp?uv.emit("unhandledRejection",i,n):yv(dv,n,i)})),e.rejection=Mp||_v(e)?2:1,t.error))throw t.value}))},_v=function(e){return 1!==e.rejection&&!e.parent},bv=function(e){Dp(Vp,Lp,(function(){var t=e.facade;Mp?uv.emit("rejectionHandled",t):yv("rejectionhandled",t,e.value)}))},kv=function(e,t,n){return function(i){e(t,i,n)}},wv=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,gv(e,!0))},Ev=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sv("Promise can't be resolved itself");var i=pv(t);i?Gp((function(){var n={done:!1};try{Dp(i,t,kv(Ev,n,e),kv(wv,n,e))}catch(lU){wv(n,lU,e)}})):(e.value=t,e.state=1,gv(e,!1))}catch(lU){wv({done:!1},lU,e)}}};ev&&(av=(ov=function(e){Kp(this,av),Hp(e),Dp(Rp,this);var t=nv(this);try{e(kv(Ev,t),kv(wv,t))}catch(lU){wv(t,lU)}}).prototype,(Rp=function(e){iv(this,{type:Qp,done:!1,notified:!1,parent:!1,reactions:new Xp,rejection:!1,state:0,value:void 0})}).prototype=Np(av,"then",(function(e,t){var n=nv(this),i=cv(zp(this,ov));return n.parent=!0,i.ok=!jp(e)||e,i.fail=jp(t)&&t,i.domain=Mp?uv.domain:void 0,0==n.state?n.reactions.add(i):Gp((function(){vv(i,n)})),i.promise})),Ip=function(){var e=new Rp,t=nv(e);this.promise=e,this.resolve=kv(Ev,t),this.reject=kv(wv,t)},Jp.f=cv=function(e){return e===ov||undefined===e?new Ip(e):hv(e)}),Op({global:!0,constructor:!0,wrap:!0,forced:ev},{Promise:ov}),Fp(ov,Qp,!1,!0),Up(Qp);var Cv=ft("iterator"),xv=!1;try{var Tv=0,Sv={next:function(){return{done:!!Tv++}},return:function(){xv=!0}};Sv[Cv]=function(){return this},Array.from(Sv,(function(){throw 2}))}catch(lU){}var Pv=function(e,t){if(!t&&!xv)return!1;var n=!1;try{var i={};i[Cv]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(lU){}return n},Av=up,Rv=xp.CONSTRUCTOR||!Pv((function(e){Av.all(e).then(void 0,(function(){}))})),Iv=O,Ov=Ie,Mv=Tp,Lv=lp,Dv=mf;An({target:"Promise",stat:!0,forced:Rv},{all:function(e){var t=this,n=Mv.f(t),i=n.resolve,r=n.reject,o=Lv((function(){var n=Ov(t.resolve),o=[],a=0,s=1;Dv(e,(function(e){var l=a++,u=!1;s++,Iv(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise}});var Nv=An,Fv=xp.CONSTRUCTOR;up&&up.prototype,Nv({target:"Promise",proto:!0,forced:Fv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Uv=O,Hv=Ie,jv=Tp,Bv=lp,Kv=mf;An({target:"Promise",stat:!0,forced:Rv},{race:function(e){var t=this,n=jv.f(t),i=n.reject,r=Bv((function(){var r=Hv(t.resolve);Kv(e,(function(e){Uv(r,t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var zv=O,Vv=Tp;An({target:"Promise",stat:!0,forced:xp.CONSTRUCTOR},{reject:function(e){var t=Vv.f(this);return zv(t.reject,void 0,e),t.promise}});var Gv=nn,Wv=ee,Yv=Tp,Xv=function(e,t){if(Gv(e),Wv(t)&&t.constructor===e)return t;var n=Yv.f(e);return(0,n.resolve)(t),n.promise},qv=An,$v=up,Zv=xp.CONSTRUCTOR,Jv=Xv,Qv=ae("Promise"),eg=!Zv;qv({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Jv(eg&&this===Qv?$v:this,e)}});var tg=O,ng=Ie,ig=Tp,rg=lp,og=mf;An({target:"Promise",stat:!0,forced:Rv},{allSettled:function(e){var t=this,n=ig.f(t),i=n.resolve,r=n.reject,o=rg((function(){var n=ng(t.resolve),r=[],o=0,a=1;og(e,(function(e){var s=o++,l=!1;a++,tg(n,t,e).then((function(e){l||(l=!0,r[s]={status:"fulfilled",value:e},--a||i(r))}),(function(e){l||(l=!0,r[s]={status:"rejected",reason:e},--a||i(r))}))})),--a||i(r)}));return o.error&&r(o.value),n.promise}});var ag=O,sg=Ie,lg=ae,ug=Tp,cg=lp,hg=mf,fg="No one promise resolved";An({target:"Promise",stat:!0,forced:Rv},{any:function(e){var t=this,n=lg("AggregateError"),i=ug.f(t),r=i.resolve,o=i.reject,a=cg((function(){var i=sg(t.resolve),a=[],s=0,l=1,u=!1;hg(e,(function(e){var c=s++,h=!1;l++,ag(i,t,e).then((function(e){h||u||(u=!0,r(e))}),(function(e){h||u||(h=!0,a[c]=e,--l||o(new n(a,fg)))}))})),--l||o(new n(a,fg))}));return a.error&&o(a.value),i.promise}});var dg=An,pg=up,vg=o,gg=ae,yg=S,mg=rd,_g=Xv,bg=pg&&pg.prototype;dg({target:"Promise",proto:!0,real:!0,forced:!!pg&&vg((function(){bg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=mg(this,gg("Promise")),n=yg(e);return this.then(n?function(n){return _g(t,e()).then((function(){return n}))}:e,n?function(n){return _g(t,e()).then((function(){throw n}))}:e)}});var kg=te.Promise,wg=Tp,Eg=lp;An({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=wg.f(this),n=Eg(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Cg=kg,xg=n(Cg),Tg=An,Sg=In,Pg=g([].reverse),Ag=[1,2];Tg({target:"Array",proto:!0,forced:String(Ag)===String(Ag.reverse())},{reverse:function(){return Sg(this)&&(this.length=this.length),Pg(this)}});var Rg=zc("Array").reverse,Ig=se,Og=Rg,Mg=Array.prototype,Lg=function(e){var t=e.reverse;return e===Mg||Ig(Mg,e)&&t===Mg.reverse?Og:t},Dg=n(Lg),Ng=An,Fg=In,Ug=_i,Hg=ee,jg=Ji,Bg=jn,Kg=Z,zg=Wn,Vg=ft,Gg=Cs,Wg=Ri("slice"),Yg=Vg("species"),Xg=Array,qg=Math.max;Ng({target:"Array",proto:!0,forced:!Wg},{slice:function(e,t){var n,i,r,o=Kg(this),a=Bg(o),s=jg(e,a),l=jg(void 0===t?a:t,a);if(Fg(o)&&(n=o.constructor,(Ug(n)&&(n===Xg||Fg(n.prototype))||Hg(n)&&null===(n=n[Yg]))&&(n=void 0),n===Xg||void 0===n))return Gg(o,s,l);for(i=new(void 0===n?Xg:n)(qg(l-s,0)),r=0;s<l;s++,r++)s in o&&zg(i,r,o[s]);return i.length=r,i}});var $g=zc("Array").slice,Zg=se,Jg=$g,Qg=Array.prototype,ey=function(e){var t=e.slice;return e===Qg||Zg(Qg,e)&&t===Qg.slice?Jg:t},ty=n(ey);function ny(){ny=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Rc||function(e,t,n){e[t]=n.value},r="function"==typeof nc?nc:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Rc(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(S){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Oc(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:b(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var h={};function f(){}function d(){}function p(){}var v={};l(v,o,(function(){return this}));var g=Fc&&Fc(Fc(x([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=p.prototype=f.prototype=Oc(v);function m(e){var t;Zc(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==wc(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function b(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return{value:void 0,done:!0}}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function w(e){var t,n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),hh(t=this.tryEntries).call(t,n)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],Zc(e).call(e,w,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return dh?dh(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Oc(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,r,o){void 0===o&&(o=xg);var a=new _(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)hh(n).call(n,i);return Dg(n).call(n),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=x,C.prototype={constructor:C,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Zc(t=this.tryEntries).call(t,E),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+ty(i).call(i,1))&&(this[i]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}var iy=qe,ry=pr;An({target:"Object",stat:!0,forced:o((function(){ry(1)}))},{keys:function(e){return ry(iy(e))}});var oy=te.Object.keys,ay=n(oy),sy=te.Object.getOwnPropertySymbols,ly=n(sy),uy=ea.filter;An({target:"Array",proto:!0,forced:!Ri("filter")},{filter:function(e){return uy(this,e,arguments.length>1?arguments[1]:void 0)}});var cy=zc("Array").filter,hy=se,fy=cy,dy=Array.prototype,py=function(e){var t=e.filter;return e===dy||hy(dy,e)&&t===dy.filter?fy:t},vy=n(py),gy={exports:{}},yy=An,my=o,_y=Z,by=P.f,ky=A;yy({target:"Object",stat:!0,forced:!ky||my((function(){by(1)})),sham:!ky},{getOwnPropertyDescriptor:function(e,t){return by(_y(e),t)}});var wy=te.Object,Ey=gy.exports=function(e,t){return wy.getOwnPropertyDescriptor(e,t)};wy.getOwnPropertyDescriptor.sham&&(Ey.sham=!0);var Cy=gy.exports,xy=n(Cy),Ty=_h,Sy=Z,Py=P,Ay=Wn;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(e){for(var t,n,i=Sy(e),r=Py.f,o=Ty(i),a={},s=0;o.length>s;)void 0!==(n=r(i,t=o[s++]))&&Ay(a,t,n);return a}});var Ry=te.Object.getOwnPropertyDescriptors,Iy=n(Ry),Oy={exports:{}},My=An,Ly=A,Dy=Xi.f;My({target:"Object",stat:!0,forced:Object.defineProperties!==Dy,sham:!Ly},{defineProperties:Dy});var Ny=te.Object,Fy=Oy.exports=function(e,t){return Ny.defineProperties(e,t)};Ny.defineProperties.sham&&(Fy.sham=!0);var Uy=Oy.exports,Hy=n(Uy),jy=ao.f("toPrimitive"),By=n(jy);function Ky(e){var t=function(e,t){if("object"!==wc(e)||null===e)return e;var n=e[By];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==wc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wc(t)?t:String(t)}function zy(e,t,n){return(t=Ky(t))in e?Rc(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vy(e,t){var n=ay(e);if(ly){var i=ly(e);t&&(i=vy(i).call(i,(function(t){return xy(e,t).enumerable}))),hh(n).apply(n,i)}return n}function Gy(e){for(var t=1;t<arguments.length;t++){var n,i,r=null!=arguments[t]?arguments[t]:{};t%2?Zc(n=Vy(Object(r),!0)).call(n,(function(t){zy(e,t,r[t])})):Iy?Hy(e,Iy(r)):Zc(i=Vy(Object(r))).call(i,(function(t){Rc(e,t,xy(r,t))}))}return e}function Wy(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(lU){return void n(lU)}s.done?t(l):xg.resolve(l).then(i,r)}function Yy(e){return function(){var t=this,n=arguments;return new xg((function(i,r){var o=e.apply(t,n);function a(e){Wy(o,i,r,a,s,"next",e)}function s(e){Wy(o,i,r,a,s,"throw",e)}a(void 0)}))}}var Xy=function(e){return e.H265="h265",e.H264="h264",e}(Xy||{}),qy=function(e){return e.Software="software",e.Hardware="hardware",e}(qy||{});An({target:"Array",stat:!0},{isArray:In});var $y=n(te.Array.isArray);function Zy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Jy=Wh,Qy=n(Jy),em=nn,tm=rf,nm=$t,im=O,rm=qe,om=function(e,t,n,i){try{return i?t(em(n)[0],n[1]):t(n)}catch(lU){tm(e,"throw",lU)}},am=jh,sm=_i,lm=jn,um=Wn,cm=Qh,hm=Wh,fm=Array,dm=function(e){var t=rm(e),n=sm(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=nm(r,i>2?arguments[2]:void 0));var a,s,l,u,c,h,f=hm(t),d=0;if(!f||this===fm&&am(f))for(a=lm(t),s=n?new this(a):fm(a);a>d;d++)h=o?r(t[d],d):t[d],um(s,d,h);else for(c=(u=cm(t,f)).next,s=n?new this:[];!(l=im(c,u)).done;d++)h=o?om(u,r,[l.value,d],!0):l.value,um(s,d,h);return s.length=d,s},pm=dm;An({target:"Array",stat:!0,forced:!Pv((function(e){Array.from(e)}))},{from:pm});var vm=te.Array.from,gm=n(vm);function ym(e,t){var n;if(e){if("string"==typeof e)return Zy(e,t);var i=ty(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?gm(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Zy(e,t):void 0}}function mm(e){return function(e){if($y(e))return Zy(e)}(e)||function(e){if(void 0!==nc&&null!=Qy(e)||null!=e["@@iterator"])return gm(e)}(e)||ym(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bm(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Rc(e,Ky(i.key),i)}}function km(e,t,n){return t&&bm(e.prototype,t),n&&bm(e,n),Rc(e,"prototype",{writable:!1}),e}var wm=An,Em=ir.indexOf,Cm=Hc,xm=E([].indexOf),Tm=!!xm&&1/xm([1],1,-0)<0;wm({target:"Array",proto:!0,forced:Tm||!Cm("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Tm?xm(this,e,t)||0:Em(this,e,t)}});var Sm=zc("Array").indexOf,Pm=se,Am=Sm,Rm=Array.prototype,Im=function(e){var t=e.indexOf;return e===Rm||Pm(Rm,e)&&t===Rm.indexOf?Am:t},Om=n(Im);function Mm(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=ay(e);for(i=0;i<o.length;i++)n=o[i],Om(t).call(t,n)>=0||(r[n]=e[n]);return r}(e,t);if(ly){var o=ly(e);for(i=0;i<o.length;i++)n=o[i],Om(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Lm=zc("Array").concat,Dm=se,Nm=Lm,Fm=Array.prototype,Um=n((function(e){var t=e.concat;return e===Fm||Dm(Fm,e)&&t===Fm.concat?Nm:t})),Hm=An,jm=ea.find,Bm="find",Km=!0;Bm in[]&&Array(1)[Bm]((function(){Km=!1})),Hm({target:"Array",proto:!0,forced:Km},{find:function(e){return jm(this,e,arguments.length>1?arguments[1]:void 0)}});var zm=zc("Array").find,Vm=se,Gm=zm,Wm=Array.prototype,Ym=n((function(e){var t=e.find;return e===Wm||Vm(Wm,e)&&t===Wm.find?Gm:t})),Xm={exports:{}},qm=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),$m=o,Zm=ee,Jm=b,Qm=qm,e_=Object.isExtensible,t_=$m((function(){e_(1)}))||Qm?function(e){return!!Zm(e)&&((!Qm||"ArrayBuffer"!=Jm(e))&&(!e_||e_(e)))}:e_,n_=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),i_=An,r_=g,o_=rr,a_=ee,s_=Je,l_=Zt.f,u_=jr,c_=zr,h_=t_,f_=n_,d_=!1,p_=it("meta"),v_=0,g_=function(e){l_(e,p_,{value:{objectID:"O"+v_++,weakData:{}}})},y_=Xm.exports={enable:function(){y_.enable=function(){},d_=!0;var e=u_.f,t=r_([].splice),n={};n[p_]=1,e(n).length&&(u_.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===p_){t(i,r,1);break}return i},i_({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c_.f}))},fastKey:function(e,t){if(!a_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s_(e,p_)){if(!h_(e))return"F";if(!t)return"E";g_(e)}return e[p_].objectID},getWeakData:function(e,t){if(!s_(e,p_)){if(!h_(e))return!0;if(!t)return!1;g_(e)}return e[p_].weakData},onFreeze:function(e){return f_&&d_&&h_(e)&&!s_(e,p_)&&g_(e),e}};o_[p_]=!0;var m_=Xm.exports,__=An,b_=r,k_=m_,w_=o,E_=yn,C_=mf,x_=qf,T_=S,S_=ee,P_=Ro,A_=Zt.f,R_=ea.forEach,I_=A,O_=Wo.set,M_=Wo.getterFor,L_=io,D_=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:L_(e,i,t[i],n);return e},N_=Hr,F_=oo,U_=D_,H_=$t,j_=qf,B_=G,K_=mf,z_=pu,V_=vu,G_=Wf,W_=A,Y_=m_.fastKey,X_=Wo.set,q_=Wo.getterFor,$_={getConstructor:function(e,t,n,i){var r=e((function(e,r){j_(e,o),X_(e,{type:t,index:N_(null),first:void 0,last:void 0,size:0}),W_||(e.size=0),B_(r)||K_(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=q_(t),s=function(e,t,n){var i,r,o=a(e),s=l(e,t);return s?s.value=n:(o.last=s={index:r=Y_(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),W_?o.size++:e.size++,"F"!==r&&(o.index[r]=s)),e},l=function(e,t){var n,i=a(e),r=Y_(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return U_(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,W_?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),i=l(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),W_?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=a(this),i=H_(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),U_(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),W_&&F_(o,"size",{configurable:!0,get:function(){return a(this).size}}),r},setStrong:function(e,t,n){var i=t+" Iterator",r=q_(t),o=q_(i);z_(e,t,(function(e,t){X_(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?V_("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,V_(void 0,!0))}),n?"entries":"values",!n,!0),G_(t)}};(function(e,t,n){var i,r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",s=b_[e],l=s&&s.prototype,u={};if(I_&&T_(s)&&(o||l.forEach&&!w_((function(){(new s).entries().next()})))){var c=(i=t((function(t,n){O_(x_(t,c),{type:e,collection:new s}),null!=n&&C_(n,t[a],{that:t,AS_ENTRIES:r})}))).prototype,h=M_(e);R_(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||E_(c,e,(function(n,i){var r=h(this).collection;if(!t&&o&&!S_(n))return"get"==e&&void 0;var a=r[e](0===n?0:n,i);return t?this:a}))})),o||A_(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(t,e,r,a),k_.enable();P_(i,e,!1,!0),u[e]=i,__({global:!0,forced:!0},u),o||n.setStrong(i,e,r)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$_);var Z_=te.Map,J_=$t,Q_=O,eb=Ie,tb=Qf,nb=G,ib=mf,rb=[].push,ob=function(e){var t,n,i,r,o=arguments.length,a=o>1?arguments[1]:void 0;return tb(this),(t=void 0!==a)&&eb(a),nb(e)?new this:(n=[],t?(i=0,r=J_(a,o>2?arguments[2]:void 0),ib(e,(function(e){Q_(rb,n,r(e,i++))}))):ib(e,rb,{that:n}),new this(n))};An({target:"Map",stat:!0,forced:!0},{from:ob});var ab=Cs,sb=function(){return new this(ab(arguments))};An({target:"Map",stat:!0,forced:!0},{of:sb});var lb=Se,ub=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(lb(e)+" is not a map")},cb=function(e,t){return 1==t?function(t,n){return t[e](n)}:function(t,n,i){return t[e](n,i)}},hb=ae("Map"),fb={Map:hb,set:cb("set",2),get:cb("get",1),has:cb("has",1),remove:cb("delete",1),proto:hb.prototype},db=ub,pb=fb.remove;An({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=db(this),n=!0,i=0,r=arguments.length;i<r;i++)e=pb(t,arguments[i]),n=n&&e;return!!n}});var vb=ub,gb=fb.get,yb=fb.has,mb=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,i,r=vb(this);return yb(r,e)?(n=gb(r,e),"update"in t&&(n=t.update(n,e,r),mb(r,e,n)),n):(i=t.insert(e,r),mb(r,e,i),i)}});var _b=O,bb=function(e,t,n){for(var i,r,o=n||e.next;!(i=_b(o,e)).done;)if(void 0!==(r=t(i.value)))return r},kb=function(e,t,n){return n?bb(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},wb=$t,Eb=ub,Cb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=Eb(this),n=wb(e,arguments.length>1?arguments[1]:void 0);return!1!==Cb(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}});var xb=$t,Tb=ub,Sb=kb,Pb=fb.Map,Ab=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Tb(this),n=xb(e,arguments.length>1?arguments[1]:void 0),i=new Pb;return Sb(t,(function(e,r){n(e,r,t)&&Ab(i,r,e)})),i}});var Rb=$t,Ib=ub,Ob=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Ib(this),n=Rb(e,arguments.length>1?arguments[1]:void 0),i=Ob(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}});var Mb=$t,Lb=ub,Db=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Lb(this),n=Mb(e,arguments.length>1?arguments[1]:void 0),i=Db(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}});var Nb=An,Fb=O,Ub=S,Hb=Ie,jb=mf,Bb=fb.Map,Kb=g([].push);Nb({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var n=new(Ub(this)?this:Bb);Hb(t);var i=Hb(n.has),r=Hb(n.get),o=Hb(n.set);return jb(e,(function(e){var a=t(e);Fb(i,n,a)?Kb(Fb(r,n,a),e):Fb(o,n,a,[e])})),n}});var zb=function(e,t){return e===t||e!=e&&t!=t},Vb=ub,Gb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===Gb(Vb(this),(function(t){if(zb(t,e))return!0}),!0)}});var Wb=O,Yb=mf,Xb=S,qb=Ie,$b=fb.Map;An({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(Xb(this)?this:$b);qb(t);var i=qb(n.set);return Yb(e,(function(e){Wb(i,n,t(e),e)})),n}});var Zb=ub,Jb=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=Jb(Zb(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}});var Qb=$t,ek=ub,tk=kb,nk=fb.Map,ik=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=ek(this),n=Qb(e,arguments.length>1?arguments[1]:void 0),i=new nk;return tk(t,(function(e,r){ik(i,n(e,r,t),e)})),i}});var rk=$t,ok=ub,ak=kb,sk=fb.Map,lk=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=ok(this),n=rk(e,arguments.length>1?arguments[1]:void 0),i=new sk;return ak(t,(function(e,r){lk(i,r,n(e,r,t))})),i}});var uk=ub,ck=mf,hk=fb.set;An({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=uk(this),n=arguments.length,i=0;i<n;)ck(arguments[i++],(function(e,n){hk(t,e,n)}),{AS_ENTRIES:!0});return t}});var fk=Ie,dk=ub,pk=kb,vk=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=dk(this),n=arguments.length<2,i=n?void 0:arguments[1];if(fk(e),pk(t,(function(r,o){n?(n=!1,i=r):i=e(i,r,o,t)})),n)throw vk("Reduce of empty map with no initial value");return i}});var gk=$t,yk=ub,mk=kb;An({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=yk(this),n=gk(e,arguments.length>1?arguments[1]:void 0);return!0===mk(t,(function(e,i){if(n(e,i,t))return!0}),!0)}});var _k=Ie,bk=ub,kk=TypeError,wk=fb.get,Ek=fb.has,Ck=fb.set;An({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=bk(this),i=arguments.length;_k(t);var r=Ek(n,e);if(!r&&i<3)throw kk("Updating absent value");var o=r?wk(n,e):_k(i>2?arguments[2]:void 0)(e,n);return Ck(n,e,t(o,e,n)),n}});var xk=O,Tk=Ie,Sk=S,Pk=nn,Ak=TypeError,Rk=function(e,t){var n,i=Pk(this),r=Tk(i.get),o=Tk(i.has),a=Tk(i.set),s=arguments.length>2?arguments[2]:void 0;if(!Sk(t)&&!Sk(s))throw Ak("At least one callback required");return xk(o,i,e)?(n=xk(r,i,e),Sk(t)&&(n=t(n),xk(a,i,e,n))):Sk(s)&&(n=s(),xk(a,i,e,n)),n};An({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Rk}),An({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Rk});var Ik=Z_,Ok=n(Ik),Mk=n(Ik),Lk=ea.map;An({target:"Array",proto:!0,forced:!Ri("map")},{map:function(e){return Lk(this,e,arguments.length>1?arguments[1]:void 0)}});var Dk=zc("Array").map,Nk=se,Fk=Dk,Uk=Array.prototype,Hk=n((function(e){var t=e.map;return e===Uk||Nk(Uk,e)&&t===Uk.map?Fk:t})),jk=n(Cg),Bk=n(Im),Kk=n(oy),zk=n(ey),Vk=Se,Gk=TypeError,Wk=function(e,t){if(!delete e[t])throw Gk("Cannot delete property "+Vk(t)+" of "+Vk(e))},Yk=An,Xk=qe,qk=Ji,$k=Dn,Zk=jn,Jk=nh,Qk=Kn,ew=Ti,tw=Wn,nw=Wk,iw=Ri("splice"),rw=Math.max,ow=Math.min;Yk({target:"Array",proto:!0,forced:!iw},{splice:function(e,t){var n,i,r,o,a,s,l=Xk(this),u=Zk(l),c=qk(e,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=ow(rw($k(t),0),u-c)),Qk(u+n-i),r=ew(l,i),o=0;o<i;o++)(a=c+o)in l&&tw(r,o,l[a]);if(r.length=i,n<i){for(o=c;o<u-i;o++)s=o+n,(a=o+i)in l?l[s]=l[a]:nw(l,s);for(o=u;o>u-i+n;o--)nw(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)s=o+n-1,(a=o+i-1)in l?l[s]=l[a]:nw(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Jk(l,u-i+n),r}});var aw=zc("Array").splice,sw=se,lw=aw,uw=Array.prototype,cw=n((function(e){var t=e.splice;return e===uw||sw(uw,e)&&t===uw.splice?lw:t}));An({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var hw=n(te.Number.isNaN),fw="\t\n\v\f\r \u2028\u2029\ufeff",dw=X,pw=Yi,vw=fw,gw=g("".replace),yw=RegExp("^["+vw+"]+"),mw=RegExp("(^|[^"+vw+"])["+vw+"]+$"),_w=function(e){return function(t){var n=pw(dw(t));return 1&e&&(n=gw(n,yw,"")),2&e&&(n=gw(n,mw,"$1")),n}},bw={start:_w(1),end:_w(2),trim:_w(3)},kw=r,ww=o,Ew=g,Cw=Yi,xw=bw.trim,Tw=fw,Sw=kw.parseInt,Pw=kw.Symbol,Aw=Pw&&Pw.iterator,Rw=/^[+-]?0x/i,Iw=Ew(Rw.exec),Ow=8!==Sw(Tw+"08")||22!==Sw(Tw+"0x16")||Aw&&!ww((function(){Sw(Object(Aw))}))?function(e,t){var n=xw(Cw(e));return Sw(n,t>>>0||(Iw(Rw,n)?16:10))}:Sw;An({global:!0,forced:parseInt!=Ow},{parseInt:Ow});var Mw=n(te.parseInt),Lw=zc("Array").keys,Dw=ti,Nw=Je,Fw=se,Uw=Lw,Hw=Array.prototype,jw={DOMTokenList:!0,NodeList:!0},Bw=n((function(e){var t=e.keys;return e===Hw||Fw(Hw,e)&&t===Hw.keys||Nw(jw,Dw(e))?Uw:t})),Kw=n(py),zw=A,Vw=g,Gw=O,Ww=o,Yw=pr,Xw=to,qw=M,$w=qe,Zw=V,Jw=Object.assign,Qw=Object.defineProperty,eE=Vw([].concat),tE=!Jw||Ww((function(){if(zw&&1!==Jw({b:1},Jw(Qw({},"a",{enumerable:!0,get:function(){Qw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=Jw({},e)[n]||Yw(Jw({},t)).join("")!=i}))?function(e,t){for(var n=$w(e),i=arguments.length,r=1,o=Xw.f,a=qw.f;i>r;)for(var s,l=Zw(arguments[r++]),u=o?eE(Yw(l),o(l)):Yw(l),c=u.length,h=0;c>h;)s=u[h++],zw&&!Gw(a,l,s)||(n[s]=l[s]);return n}:Jw,nE=tE;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==nE},{assign:nE});var iE=n(te.Object.assign),rE=n(sy),oE=n(Cy),aE=n(Ry),sE=n(Uy),lE=n(Ac),uE=n(tc),cE=n(bc),hE=n(fh),fE=n(Nc),dE=g,pE=Ie,vE=ee,gE=Je,yE=Cs,mE=a,_E=Function,bE=dE([].concat),kE=dE([].join),wE={},EE=mE?_E.bind:function(e){var t=pE(this),n=t.prototype,i=yE(arguments,1),r=function(){var n=bE(i,yE(arguments));return this instanceof r?function(e,t,n){if(!gE(wE,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";wE[t]=_E("C,a","return new C("+kE(i,",")+")")}return wE[t](e,n)}(t,n.length,n):t.apply(e,n)};return vE(n)&&(r.prototype=n),r},CE=An,xE=h,TE=EE,SE=Qf,PE=nn,AE=ee,RE=Hr,IE=o,OE=ae("Reflect","construct"),ME=Object.prototype,LE=[].push,DE=IE((function(){function e(){}return!(OE((function(){}),[],e)instanceof e)})),NE=!IE((function(){OE((function(){}))})),FE=DE||NE;CE({target:"Reflect",stat:!0,forced:FE,sham:FE},{construct:function(e,t){SE(e),PE(t);var n=arguments.length<3?e:SE(arguments[2]);if(NE&&!DE)return OE(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return xE(LE,i,t),new(xE(TE,e,i))}var r=n.prototype,o=RE(AE(r)?r:ME),a=xE(e,o,t);return AE(a)?a:o}});var UE=te.Reflect.construct,HE=n(UE),jE=n(UE),BE=Je,KE=O,zE=ee,VE=nn,GE=function(e){return void 0!==e&&(BE(e,"value")||BE(e,"writable"))},WE=P,YE=xl;An({target:"Reflect",stat:!0},{get:function e(t,n){var i,r,o=arguments.length<3?t:arguments[2];return VE(t)===o?t[n]:(i=WE.f(t,n))?GE(i)?i.value:void 0===i.get?void 0:KE(i.get,o):zE(r=YE(t))?e(r,n,o):void 0}});var XE=te.Reflect.get,qE=n(XE),$E=n(XE),ZE=n(Jy),JE=n(vm),QE=n(jy);function eC(e,t){var n=Kk(e);if(rE){var i=rE(e);t&&(i=Kw(i).call(i,(function(t){return oE(e,t).enumerable}))),n.push.apply(n,i)}return n}function tC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach((function(t){aC(e,t,n[t])})):aE?sE(e,aE(n)):eC(Object(n)).forEach((function(t){lE(e,t,oE(n,t))}))}return e}function nC(e){return(nC="function"==typeof uE&&"symbol"==typeof cE?function(e){return typeof e}:function(e){return e&&"function"==typeof uE&&e.constructor===uE&&e!==uE.prototype?"symbol":typeof e})(e)}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rC(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),lE(e,gC(i.key),i)}}function oC(e,t,n){return t&&rC(e.prototype,t),n&&rC(e,n),lE(e,"prototype",{writable:!1}),e}function aC(e,t,n){return(t=gC(t))in e?lE(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lE(e,"prototype",{writable:!1}),t&&uC(e,t)}function lC(e){return(lC=hE?fE.bind():function(e){return e.__proto__||fE(e)})(e)}function uC(e,t){return(uC=hE?hE.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hC(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cC(e)}function fC(e){var t=function(){if("undefined"==typeof Reflect||!jE)return!1;if(jE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(jE(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=lC(e);if(t){var r=lC(this).constructor;n=jE(i,arguments,r)}else n=i.apply(this,arguments);return hC(this,n)}}function dC(){return dC="undefined"!=typeof Reflect&&$E?$E.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=lC(e)););return e}(e,t);if(i){var r=oE(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},dC.apply(this,arguments)}function pC(e){return function(e){if(Array.isArray(e))return vC(e)}(e)||function(e){if(void 0!==uE&&null!=ZE(e)||null!=e["@@iterator"])return JE(e)}(e)||function(e,t){var n;if(!e)return;if("string"==typeof e)return vC(e,t);var i=zk(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return JE(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return vC(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function gC(e){var t=function(e,t){if("object"!==wc(e)||null===e)return e;var n=e[QE];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==wc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wc(t)?t:String(t)}var yC={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new r(i,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?zk(i).call(i,1):i);return rE?Um(r).call(r,rE(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,a=new Array(o);r<o;r++)a[r]=i[r].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,t,i,r,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,o),!0;case 6:return c.fn.call(c.context,t,i,r,o,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,r);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,i,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||r&&!s.once||i&&s.context!==i||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||r&&!s[l].once||i&&s[l].context!==i)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(yC);var mC=yC.exports,_C=n(mC),bC=Dn,kC=Yi,wC=X,EC=RangeError,CC=function(e){var t=kC(wC(this)),n="",i=bC(e);if(i<0||i==1/0)throw EC("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n},xC=g,TC=Un,SC=Yi,PC=X,AC=xC(CC),RC=xC("".slice),IC=Math.ceil,OC=function(e){return function(t,n,i){var r,o,a=SC(PC(t)),s=TC(n),l=a.length,u=void 0===i?" ":SC(i);return s<=l||""==u?a:((o=AC(u,IC((r=s-l)/u.length))).length>r&&(o=RC(o,0,r)),e?a+o:o+a)}},MC={start:OC(!1),end:OC(!0)},LC=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),DC=MC.start;An({target:"String",proto:!0,forced:LC},{padStart:function(e){return DC(this,e,arguments.length>1?arguments[1]:void 0)}});var NC=zc("String").padStart,FC=se,UC=NC,HC=String.prototype,jC=n((function(e){var t=e.padStart;return"string"==typeof e||e===HC||FC(HC,e)&&t===HC.padStart?UC:t})),BC=r,KC=o,zC=Yi,VC=bw.trim,GC=fw,WC=g("".charAt),YC=BC.parseFloat,XC=BC.Symbol,qC=XC&&XC.iterator,$C=1/YC(GC+"-0")!=-1/0||qC&&!KC((function(){YC(Object(qC))}))?function(e){var t=VC(zC(e)),n=YC(t);return 0===n&&"-"==WC(t,0)?-0:n}:YC;An({global:!0,forced:parseFloat!=$C},{parseFloat:$C});var ZC=n(te.parseFloat),JC=gl.PROPER,QC=o,ex=fw,tx=bw.trim;An({target:"String",proto:!0,forced:function(e){return QC((function(){return!!ex[e]()||"
"!=="
"[e]()||JC&&ex[e].name!==e}))}("trim")},{trim:function(){return tx(this)}});var nx=zc("String").trim,ix=se,rx=nx,ox=String.prototype,ax=n((function(e){var t=e.trim;return"string"==typeof e||e===ox||ix(ox,e)&&t===ox.trim?rx:t})),sx=qr,lx=Math.floor,ux=function(e,t){var n=e.length,i=lx(n/2);return n<8?cx(e,t):hx(e,ux(sx(e,0,i),t),ux(sx(e,i),t),t)},cx=function(e,t){for(var n,i,r=e.length,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},hx=function(e,t,n,i){for(var r=t.length,o=n.length,a=0,s=0;a<r||s<o;)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e},fx=ux,dx=le.match(/firefox\/(\d+)/i),px=!!dx&&+dx[1],vx=/MSIE|Trident/.test(le),gx=le.match(/AppleWebKit\/(\d+)\./),yx=!!gx&&+gx[1],mx=An,_x=g,bx=Ie,kx=qe,wx=jn,Ex=Wk,Cx=Yi,xx=o,Tx=fx,Sx=Hc,Px=px,Ax=vx,Rx=ve,Ix=yx,Ox=[],Mx=_x(Ox.sort),Lx=_x(Ox.push),Dx=xx((function(){Ox.sort(void 0)})),Nx=xx((function(){Ox.sort(null)})),Fx=Sx("sort"),Ux=!xx((function(){if(Rx)return Rx<70;if(!(Px&&Px>3)){if(Ax)return!0;if(Ix)return Ix<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Ox.push({k:t+i,v:n})}for(Ox.sort((function(e,t){return t.v-e.v})),i=0;i<Ox.length;i++)t=Ox[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));mx({target:"Array",proto:!0,forced:Dx||!Nx||!Fx||!Ux},{sort:function(e){void 0!==e&&bx(e);var t=kx(this);if(Ux)return void 0===e?Mx(t):Mx(t,e);var n,i,r=[],o=wx(t);for(i=0;i<o;i++)i in t&&Lx(r,t[i]);for(Tx(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Cx(t)>Cx(n)?1:-1}}(e)),n=wx(r),i=0;i<n;)t[i]=r[i++];for(;i<o;)Ex(t,i++);return t}});var Hx,jx=zc("Array").sort,Bx=se,Kx=jx,zx=Array.prototype,Vx=n((function(e){var t=e.sort;return e===zx||Bx(zx,e)&&t===zx.sort?Kx:t})),Gx="undefined"!=typeof window&&window.location&&Bk(Hx=window.location.href).call(Hx,"xgplayerdebugger=1")>-1,Wx="color: #525252; background-color: #90ee90;",Yx="color: #525252; background-color: red;",Xx="color: #525252; background-color: yellow; ",qx="%c[xgplayer]",$x={config:{debug:Gx?3:0},logInfo:function(e){for(var t,n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];this.config.debug>=3&&(n=console).log.apply(n,Um(t=[qx,Wx,e]).call(t,r))},logWarn:function(e){for(var t,n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];this.config.debug>=1&&(n=console).warn.apply(n,Um(t=[qx,Xx,e]).call(t,r))},logError:function(e){var t,n;if(!(this.config.debug<1)){for(var i=this.config.debug>=2?"trace":"error",r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];(n=console)[i].apply(n,Um(t=[qx,Yx,e]).call(t,o))}}};var Zx=function(){function e(t){iC(this,e),this.bufferedList=t}return oC(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),Jx={};function Qx(e){var t=nC(e);return null!==e&&("object"===t||"function"===t)}function eT(e,t,n){var i,r,o,a,s,l,u=0,c=!1,h=!1,f=!0,d=!t&&0!==t&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,u=t,a=e.apply(o,n)}function v(e,t){return d?(window.cancelAnimationFrame(s),window.requestAnimationFrame(e)):setTimeout(e,t)}function g(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=o}function y(){var e=Date.now();if(g(e))return m(e);s=v(y,function(e){var n=e-u,i=t-(e-l);return h?Math.min(i,o-n):i}(e))}function m(e){return s=void 0,f&&i?p(e):(i=r=void 0,a)}function _(){for(var e=Date.now(),n=g(e),o=arguments.length,f=new Array(o),d=0;d<o;d++)f[d]=arguments[d];if(i=f,r=this,l=e,n){if(void 0===s)return function(e){return u=e,s=v(y,t),c?p(e):a}(l);if(h)return s=v(y,t),p(l)}return void 0===s&&(s=v(y,t)),a}return t=+t||0,Qx(n)&&(c=!!n.leading,o=(h="maxWait"in n)?Math.max(+n.maxWait||0,t):o,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==s&&function(e){if(d)return window.cancelAnimationFrame(e);clearTimeout(e)}(s),u=0,i=l=r=s=void 0},_.flush=function(){return void 0===s?a:m(Date.now())},_.pending=function(){return void 0!==s},_}function tT(){var e=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return"zh-cn"===e&&(e="zh"),e}Jx.createDom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement(e);return r.className=i,r.innerHTML=t,Kk(n).forEach((function(t){var i=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&r.setAttribute(i,o):r.setAttribute(i,o)})),r},Jx.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var i=document.createElement("div");i.innerHTML=e;var r=i.children;return i=null,r.length>0?(r=r[0],n&&Jx.addClass(r,n),t&&Kk(t).forEach((function(e){r.setAttribute(e,t[e])})),r):null}catch(o){return $x.logError("util.createDomFromHtml",o),null}},Jx.hasClass=function(e,t){if(!e||!t)return!1;try{return Array.prototype.some.call(e.classList,(function(e){return e===t}))}catch(i){var n=e.className&&"object"===nC(e.className)?e.getAttribute("class"):e.className;return n&&!!n.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},Jx.addClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)}))}catch(n){Jx.hasClass(e,t)||(e.className&&"object"===nC(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},Jx.removeClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.remove(t)}))}catch(n){Jx.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===nC(e.className)?e.setAttribute("class",e.getAttribute("class").replace(n," ")):e.className=e.className.replace(n," ")}))}},Jx.toggleClass=function(e,t){e&&t.split(/\s+/g).forEach((function(t){Jx.hasClass(e,t)?Jx.removeClass(e,t):Jx.addClass(e,t)}))},Jx.classNames=function(){for(var e=arguments,t=[],n=function(n){if("String"===Jx.typeOf(e[n]))t.push(e[n]);else if("Object"===Jx.typeOf(e[n])){var i;Hk(i=Kk(e[n])).call(i,(function(i){e[n][i]&&t.push(i)}))}},i=0;i<arguments.length;i++)n(i);return t.join(" ")},Jx.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(n)}catch(i){$x.logError("util.findDom",i),0===Bk(n).call(n,"#")&&(e=t.getElementById(zk(n).call(n,1)))}return e},Jx.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},Jx.padStart=function(e,t,n){for(var i=String(n),r=t>>0,o=Math.ceil(r/i.length),a=[],s=String(e);o--;)a.push(i);return a.join("").substring(0,r-s.length)+s},Jx.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=jC(Jx).call(Jx,Math.floor(e/3600),2,0),n=jC(Jx).call(Jx,Math.floor((e-3600*t)/60),2,0),i=jC(Jx).call(Jx,Math.floor(e-3600*t-60*n),2,0);return("00"===t?[n,i]:[t,n,i]).join(":")},Jx.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},Jx.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},Jx.deepCopy=function(e,t){if("Object"===Jx.typeOf(t)&&"Object"===Jx.typeOf(e))return Kk(t).forEach((function(n){if("Object"!==Jx.typeOf(t[n])||t[n]instanceof Node)if("Array"===Jx.typeOf(t[n])){var i;e[n]="Array"===Jx.typeOf(e[n])?Um(i=e[n]).call(i,t[n]):t[n]}else e[n]=t[n];else void 0===e[n]||void 0===e[n]?e[n]=t[n]:Jx.deepCopy(e[n],t[n])})),e},Jx.deepMerge=function(e,t){var n;return Hk(n=Kk(t)).call(n,(function(n){var i;"Array"===Jx.typeOf(t[n])&&"Array"===Jx.typeOf(e[n])?"Array"===Jx.typeOf(e[n])&&(i=e[n]).push.apply(i,pC(t[n])):Jx.typeOf(e[n])!==Jx.typeOf(t[n])||null===e[n]||"Object"!==Jx.typeOf(e[n])||t[n]instanceof window.Node?null!==t[n]&&(e[n]=t[n]):Jx.deepMerge(e[n],t[n])})),e},Jx.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href},Jx.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},Jx.setInterval=function(e,t,n,i){e._interval[t]||(e._interval[t]=window.setInterval(n.bind(e),i))},Jx.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},Jx.setTimeout=function(e,t,n){e._timers||(e._timers=[]);var i=setTimeout((function(){t(),Jx.clearTimeout(e,i)}),n);return e._timers.push(i),i},Jx.clearTimeout=function(e,t){var n=e._timers;if("Array"===Jx.typeOf(n)){for(var i=0;i<n.length;i++)if(n[i]===t){cw(n).call(n,i,1),clearTimeout(t);break}}else clearTimeout(t)},Jx.clearAllTimers=function(e){var t=e._timers;"Array"===Jx.typeOf(t)&&(Hk(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},Jx.createImgBtn=function(e,t,n,i){var r,o,a,s,l,u,c,h,f,d,p,v=Jx.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(v.style.backgroundImage='url("'.concat(t,'")'),n&&i)&&(["px","rem","em","pt","dp","vw","vh","vm","%"].every((function(e){var t,r;return!(Bk(n).call(n,e)>-1&&Bk(i).call(i,e)>-1)||(u=ZC(ax(t=zk(n).call(n,0,Bk(n).call(n,e))).call(t)),c=ZC(ax(r=zk(i).call(i,0,Bk(i).call(i,e))).call(r)),h=e,!1)})),v.style.width=Um(r="".concat(u)).call(r,h),v.style.height=Um(o="".concat(c)).call(o,h),v.style.backgroundSize=Um(a=Um(s=Um(l="".concat(u)).call(l,h," ")).call(s,c)).call(a,h),v.style.margin="start"===e?Um(f=Um(d=Um(p="-".concat(c/2)).call(p,h," auto auto -")).call(d,u/2)).call(f,h):"auto 5px auto 5px");return v},Jx.Hex2RGBA=function(e,t){var n,i=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var r="#";e.replace(/[0-9A-F]/gi,(function(e){r+=e+e})),e=r}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){i.push(Mw(e,16))})),Um(n="rgba(".concat(i.join(","),", ")).call(n,t,")")):"rgba(255, 255, 255, 0.1)"},Jx.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},Jx.checkIsFunction=function(e){return e&&"function"==typeof e},Jx.checkIsObject=function(e){return null!==e&&"object"===nC(e)},Jx.hide=function(e){e.style.display="none"},Jx.show=function(e,t){e.style.display=t||"block"},Jx.isUndefined=function(e){if(null==e)return!0},Jx.isNotNull=function(e){return!(null==e)},Jx.setStyleFromCsstext=function(e,t){if(t)if("String"===Jx.typeOf(t)){var n=t.replace(/\s+/g,"").split(";");Hk(n).call(n,(function(t){if(t){var n=t.split(":");n.length>1&&(e.style[n[0]]=n[1])}}))}else{var i;Hk(i=Kk(t)).call(i,(function(n){e.style[n]=t[n]}))}},Jx.filterStyleFromText=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],i=e.style.cssText;if(!i)return{};var r=i.replace(/\s+/g,"").split(";"),o={},a={};return Hk(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var n=0,i=t.length;n<i;n++)if(Bk(e).call(e,t[n])>-1)return!0;return!1}(t[0],n)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),Hk(t=Kk(a)).call(t,(function(t){e.style[t]=a[t]})),o},Jx.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var n=t.replace(/\s+/g,"").split(";"),i={};return Hk(n).call(n,(function(e){if(e){var t=e.split(":");t.length>1&&(i[t[0]]=t[1])}})),i},Jx.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var i=new window.Image;i.onload=function(e){i=null,t&&t(e)},i.onerror=function(e){i=null,n&&n(e)},i.src=e}},Jx.stopPropagation=function(e){e&&e.stopPropagation()},Jx.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Jx.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},Jx.checkTouchSupport=function(){return"ontouchstart"in window},Jx.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=[],i=0;i<e.length;i++)n.push({start:e.start(i)<.5?0:e.start(i),end:e.end(i)});Vx(n).call(n,(function(e,t){var n=e.start-t.start;return n||t.end-e.end}));var r=[];if(t)for(var o=0;o<n.length;o++){var a=r.length;if(a){var s=r[a-1].end;n[o].start-s<t?n[o].end>s&&(r[a-1].end=n[o].end):r.push(n[o])}else r.push(n[o])}else r=n;return new Zx(r)},Jx.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},Jx.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},Jx.getHostFromUrl=function(e){if("String"!==Jx.typeOf(e))return"";var t=e.split("/"),n="";return t.length>3&&t[2]&&(n=t[2]),n},Jx.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},Jx.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},Jx.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},Jx.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Mw(e)}catch(n){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Mw(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))},Jx.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},Jx.adjustTimeByDuration=function(e,t,n){return t&&e&&(e>t||n&&e<t)?t:e},Jx.createPositionBar=function(e,t){var n=Jx.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(n),n},Jx.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i={scale:"".concat(t.scale||1),translate:Um(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")};return Kk(i).forEach((function(e){var t,r=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=Um(t="".concat(e,"(")).call(t,i[e],")");r.test(n)?(r.lastIndex=-1,n=n.replace(r,o)):n+="".concat(o," ")})),n},Jx.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},Jx.getIndexByTime=function(e,t){var n=t.length,i=-1;if(n<1)return i;if(e<=t[0].end||n<2)i=0;else if(e>t[n-1].end)i=n-1;else for(var r=1;r<n;r++)if(e>t[r-1].end&&e<=t[r].end){i=r;break}return i},Jx.getOffsetCurrentTime=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=-1;if((i=n>=0&&n<t.length?n:Jx.getIndexByTime(e,t))<0)return-1;var r=t.length,o=t[i],a=o.start,s=o.end,l=o.cTime,u=o.offset;return e<a?l:e>=a&&e<=s?e-u:e>s&&i>=r-1?s:-1},Jx.getCurrentTimeByOffset=function(e,t){var n=-1;if(!t||t.length<0)return e;for(var i=0;i<t.length;i++)if(e<=t[i].duration){n=i;break}if(-1!==n){var r=t[n].start;return n-1<0?r+e:r+(e-t[n-1].duration)}return e};var nT=/(Android)\s([\d.]+)/,iT=/(Version)\/([\d.]+)/,rT=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],oT={get device(){return oT.os.isPc?"pc":"mobile"},get browser(){var e,t;if("undefined"==typeof navigator)return"";var n=navigator.userAgent.toLowerCase(),i={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return Um(e=[]).call(e,Kw(t=Kk(i)).call(t,(function(e){return i[e].test(n)})))[0]},get os(){if("undefined"==typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,i=/(?:Android)/.test(e),r=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=o||i&&!/(?:Mobile)/.test(e)||r&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:o,isIos:s||o,isAndroid:i,isPc:!(s||i||n||a),isSymbian:n,isWindowsPhone:t,isFireFox:r}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",n=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?iT:nT)?t.exec(e):[];if(n&&n.length>=3){var i=n[2].split(".");return i.length>0?Mw(i[0]):0}return 0},get isWeixin(){if("undefined"==typeof navigator)return!1;return!!/(micromessenger)\/([\d.]+)/.exec(navigator.userAgent.toLocaleLowerCase())},isSupportMP4:function(){var e={isSupport:!1,mime:""};if("undefined"==typeof document)return e;if(this.supportResult)return this.supportResult;var t=document.createElement("video");return"function"==typeof t.canPlayType&&Hk(rT).call(rT,(function(n){"probably"===t.canPlayType('video/mp4; codecs="'.concat(n,'"'))&&(e.isSupport=!0,e.mime+="||".concat(n))})),this.supportResult=e,t=null,e},isMSESupport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if("undefined"==typeof MediaSource||!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(lU){return this._logger.error(e,lU),!1}},isHevcSupported:function(){return!("undefined"==typeof MediaSource||!MediaSource.isTypeSupported)&&(MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))},probeConfigSupported:function(e){var t={supported:!1,smooth:!1,powerEfficient:!1};if(!e||"undefined"==typeof navigator)return jk.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var n=e.video||{},i=e.audio||{};try{var r=MediaSource.isTypeSupported(n.contentType),o=MediaSource.isTypeSupported(i.contentType);return jk.resolve({supported:r&&o,smooth:!1,powerEfficient:!1})}catch(a){return jk.resolve(t)}}},aT="3.0.21-rc.21",sT={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},lT={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},uT=oC((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};iC(this,e);var i=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var r,o=n.mediaError?n.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,l=t.ended,u=t.src,c=t.currentSrc,h=t.media,f=h.readyState,d=h.networkState,p=n.errorCode||o.code;lT[p]&&(p=lT[p]);var v={playerVersion:aT,currentTime:s,duration:a,ended:l,readyState:f,networkState:d,src:u||c,errorType:n.errorType,errorCode:p,message:n.errorMessage||o.message,mediaError:o,originError:n.originError?n.originError.stack:"",host:Jx.getHostFromUrl(u||c)};return n.ext&&Hk(r=Kk(n.ext)).call(r,(function(e){v[e]=n.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:aT,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=i?(i[arguments[0]]||{}).msg:"",g}})),cT="play",hT="ended",fT="pause",dT="error",pT="seeked",vT="timeupdate",gT="waiting",yT="canplay",mT="durationchange",_T="volumechange",bT="loadeddata",kT="emptied",wT="focus",ET="blur",CT="ready",xT="urlNull",TT="autoplay_started",ST="autoplay_was_prevented",PT="complete",AT="replay",RT="destroy",IT="urlchange",OT="download_speed_change",MT="leaveplayer",LT="enterplayer",DT="loading",NT="fullscreen_change",FT="cssFullscreen_change",UT="mini_state_change",HT="definition_change",jT="before_definition_change",BT="after_definition_change",KT="retry",zT="video_resize",VT="pip_change",GT="playnext",WT="shortcut",YT="user_action",XT="reset",qT="source_error",$T="source_success",ZT=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],JT=Object.freeze({__proto__:null,ABORT:"abort",AFTER_DEFINITION_CHANGE:BT,AUTOPLAY_PREVENTED:ST,AUTOPLAY_STARTED:TT,BEFORE_DEFINITION_CHANGE:jT,BUFFER_CHANGE:"bufferedChange",CANPLAY:yT,CANPLAY_THROUGH:"canplaythrough",COMPLETE:PT,CSS_FULLSCREEN_CHANGE:FT,DEFINITION_CHANGE:HT,DESTROY:RT,DOWNLOAD_SPEED_CHANGE:OT,DURATION_CHANGE:mT,EMPTIED:kT,ENDED:hT,ENTER_PLAYER:LT,ERROR:dT,FPS_STUCK:"fps_stuck",FULLSCREEN_CHANGE:NT,LEAVE_PLAYER:MT,LOADED_DATA:bT,LOADED_METADATA:"loadedmetadata",LOADING:DT,LOAD_START:"loadstart",MINI_STATE_CHANGE:UT,PAUSE:fT,PIP_CHANGE:VT,PLAY:cT,PLAYER_BLUR:ET,PLAYER_FOCUS:wT,PLAYING:"playing",PLAYNEXT:GT,PROGRESS:"progress",RATE_CHANGE:"ratechange",READY:CT,REPLAY:AT,RESET:XT,RETRY:KT,ROTATE:"rotate",SCREEN_SHOT:"screenShot",SEEKED:pT,SEEKING:"seeking",SEI_PARSED:"SEI_PARSED",SHORTCUT:WT,SOURCE_ERROR:qT,SOURCE_SUCCESS:$T,STALLED:"stalled",STATS_EVENTS:{STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},SUSPEND:"suspend",SWITCH_SUBTITLE:"switch_subtitle",TIME_UPDATE:vT,URL_CHANGE:IT,URL_NULL:xT,USER_ACTION:YT,VIDEO_EVENTS:ZT,VIDEO_RESIZE:zT,VOLUME_CHANGE:_T,WAITING:gT,XGLOG:"xglog"});function QT(e,t){this&&this.emit&&("error"===e?this.errorHandler(e,t.error):this.emit(e,t))}var eS=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n),(i=t.call(this,e))._hasStart=!1,i._currentTime=0,i._duration=0,i._internalOp={},i._lastMuted=!1,i.vtype="MP4",i._rate=-1,i.mediaConfig=iE({},{controls:!1,autoplay:e.autoplay,playsinline:e.playsinline,"x5-playsinline":e.playsinline,"webkit-playsinline":e.playsinline,"x5-video-player-fullscreen":e["x5-video-player-fullscreen"]||e.x5VideoPlayerFullscreen,"x5-video-orientation":e["x5-video-orientation"]||e.x5VideoOrientation,airplay:e.airplay,"webkit-airplay":e.airplay,tabindex:0|e.tabindex,mediaType:e.mediaType||"video","data-index":-1},e.videoConfig,e.videoAttributes);var r=e["x5-video-player-type"]||e.x5VideoPlayerType;return oT.isWeixin&&oT.os.isAndroid&&r&&(i.mediaConfig["x5-video-player-type"]=r,delete i.mediaConfig.playsinline,delete i.mediaConfig["webkit-playsinline"],delete i.mediaConfig["x5-playsinline"]),e.loop&&(i.mediaConfig.loop="loop"),e.autoplayMuted&&!Object.prototype.hasOwnProperty.call(i.mediaConfig,"muted")&&(i.mediaConfig.muted=!0),i.media=e.mediaEl instanceof HTMLMediaElement?e.mediaEl:"function"==typeof e.mediaEl?e.mediaEl(i.mediaConfig):Jx.createDom(i.mediaConfig.mediaType,"",i.mediaConfig,""),e.defaultPlaybackRate&&(i.media.defaultPlaybackRate=i.media.playbackRate=e.defaultPlaybackRate),"Number"===Jx.typeOf(e.volume)&&(i.volume=e.volume),e.autoplayMuted&&(i.media.muted=!0,i._lastMuted=!0),e.autoplay&&(i.media.autoplay=!0),e.playsinline&&(i.media.playsinline=!0),i._interval={},i.mediaEventMiddleware={},i.attachVideoEvents(),i}return oC(n,[{key:"setEventsMiddleware",value:function(e){var t,n=this;Hk(t=Kk(e)).call(t,(function(t){n.mediaEventMiddleware[t]=e[t]}))}},{key:"removeEventsMiddleware",value:function(e){var t,n=this;Hk(t=Kk(e)).call(t,(function(e){delete n.mediaEventMiddleware[e]}))}},{key:"attachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers||(this._evHandlers=Hk(ZT).call(ZT,(function(t){var n,i=Um(n="on".concat(t.charAt(0).toUpperCase())).call(n,zk(t).call(t,1));return"function"==typeof e[i]&&e.on(t,e[i]),aC({},t,function(e,t){return function(n,i){var r={player:t,eventName:e,originalEvent:n,detail:n.detail||{},timeStamp:n.timeStamp,currentTime:t.currentTime,duration:t.duration,paused:t.paused,ended:t.ended,isInternalOp:!!t._internalOp[n.type],muted:t.muted,volume:t.volume,host:Jx.getHostFromUrl(t.currentSrc),vtype:t.vtype};if(t.removeInnerOP(n.type),"timeupdate"===e&&(t._currentTime=t.media&&t.media.currentTime),"ratechange"===e){var o=t.media?t.media.playbackRate:0;if(o&&t._rate===o)return;t._rate=t.media&&t.media.playbackRate}if("durationchange"===e&&(t._duration=t.media.duration),"volumechange"===e&&(r.isMutedChange=t._lastMuted!==t.muted,t._lastMuted=t.muted),"error"===e&&(r.error=i||t.video.error),t.mediaEventMiddleware[e]){var a=QT.bind(t,e,r);try{t.mediaEventMiddleware[e].call(t,r,a)}catch(s){throw QT.call(t,e,r),s}}else QT.call(t,e,r)}}(t,e))}))),this._evHandlers.forEach((function(e){var n=Kk(e)[0];t.addEventListener(n,e[n],!1)}))}},{key:"detachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers.forEach((function(e){var n=Kk(e)[0];t.removeEventListener(n,e[n],!1)})),this._evHandlers.forEach((function(t){var n,i=Kk(t)[0],r=Um(n="on".concat(i.charAt(0).toUpperCase())).call(n,zk(i).call(i,1));"function"==typeof e[r]&&e.off(i,e[r])})),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,t){var n=this;e.removeAttribute("src"),e.load(),t.forEach((function(e,t){n.media.appendChild(Jx.createDom("source","",{src:"".concat(e.src),type:"".concat(e.type||""),"data-index":t+1}))}));var i=e.children;if(i){this._videoSourceCount=i.length,this._videoSourceIndex=i.length,this._vLoadeddata=function(e){n.emit($T,{src:e.target.currentSrc,host:Jx.getHostFromUrl(e.target.currentSrc)})};for(var r=null,o=0;o<this._evHandlers.length;o++)if("error"===Kk(this._evHandlers[o])[0]){r=this._evHandlers[o];break}!this._sourceError&&(this._sourceError=function(e){var t=Mw(e.target.getAttribute("data-index"),10);if(n._videoSourceIndex--,0===n._videoSourceIndex||t>=n._videoSourceCount){var i={code:4,message:"sources_load_error"};r?r.error(e,i):n.errorHandler("error",i)}var o=sT[4];n.emit(qT,new uT(n,{errorType:o,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:e.target.src}))});for(var a=0;a<i.length;a++)i[a].addEventListener("error",this._sourceError);e.addEventListener("loadeddata",this._vLoadeddata)}}},{key:"_detachSourceEvents",value:function(e){var t=e.children;if(t&&0!==t.length&&this._sourceError){for(var n=0;n<t.length;n++)t[n].removeEventListener("error",this._sourceError);for(;t.length>0;)e.removeChild(t[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.media&&(this.media.error||t)){var n=this.media.error||t,i=n.code?sT[n.code]:"other";n.message;this.media.currentSrc||this.media.srcObject||(n={code:6,message:"empty_src"}),this.emit(e,new uT(this,{errorType:i,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){for(var e in this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null,this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){return this.media?this.media.play():null}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return!!this.media&&this.media.canPlayType(e)}},{key:"getBufferedRange",value:function(e){var t=[0,0];if(!this.media)return t;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var i=0,r=e.length;i<r&&(t[0]=e.start(i),t[1]=e.end(i),!(t[0]<=n&&n<=t[1]));i++);return t[0]-n<=0&&n-t[1]<=0?t:[0,0]}},{key:"autoplay",get:function(){return!!this.media&&this.media.autoplay},set:function(e){this.media&&(this.media.autoplay=e)}},{key:"buffered",get:function(){return this.media?this.media.buffered:null}},{key:"buffered2",get:function(){return this.media&&this.media.buffered?Jx.getBuffered2(this.media.buffered):null}},{key:"bufferedPoint",get:function(){var e={start:0,end:0};if(!this.media)return e;var t=this.media.buffered;if(!t||0===t.length)return e;for(var n=0;n<t.length;n++)if((t.start(n)<=this.currentTime||t.start(n)<.1)&&t.end(n)>=this.currentTime)return{start:t.start(n),end:t.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?void 0!==this.media.currentTime?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return!!this.media&&this.media.defaultMuted},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return!!this.media&&this.media.ended}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){if(!this.media.error)return"";return["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"][this.media.error.code-1]}},{key:"loop",get:function(){return!!this.media&&this.media.loop},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return!!this.media&&this.media.muted},set:function(e){this.media&&this.media.muted!==e&&(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return!this.media||this.media.paused}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){this.media&&e!==1/0&&(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return!!this.media&&this.media.preload},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return!!this.media&&this.media.seekable}},{key:"seeking",get:function(){return!!this.media&&this.media.seeking}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){this.media&&(this.emit(IT,e),this.emit(gT),this._currentTime=0,this._duration=0,Jx.isMSE(this.media)?this.onWaiting():(this._detachSourceEvents(this.media),"Array"===Jx.typeOf(e)?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()))}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e!==1/0&&this.media&&(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"emit",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"on",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"on",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"once",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"once",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"off",value:function(e,t){for(var i,r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=dC(lC(n.prototype),"off",this)).call.apply(r,Um(i=[this,e,t]).call(i,a))}},{key:"offAll",value:function(){dC(lC(n.prototype),"removeAllListeners",this).call(this)}}]),n}(_C),tS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};iC(this,e),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=t}return oC(e,[{key:"openDB",value:function(e){var t=this,n=this,i=this.myDB.version||1,r=n.indexedDB.open(n.myDB.name,i);r.onerror=function(e){},r.onsuccess=function(i){t.myDB.db=i.target.result,e.call(n)},r.onupgradeneeded=function(e){var t=e.target.result;e.target.transaction,t.objectStoreNames.contains(n.myDB.ojstore.name)||t.createObjectStore(n.myDB.ojstore.name,{keyPath:n.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){this.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(e,t){for(var n,i=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=0;r<t.length;r++)(n=i.add(t[r])).onerror=function(){},n.onsuccess=function(){}}},{key:"putData",value:function(e,t){for(var n,i=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=0;r<t.length;r++)(n=i.put(t[r])).onerror=function(){},n.onsuccess=function(){}}},{key:"getDataByKey",value:function(e,t,n){var i=this,r=this.myDB.db.transaction(e,"readwrite").objectStore(e).get(t);r.onerror=function(){n.call(i,null)},r.onsuccess=function(e){var t=e.target.result;n.call(i,t)}}},{key:"deleteData",value:function(e,t){this.myDB.db.transaction(e,"readwrite").objectStore(e).delete(t)}},{key:"clearData",value:function(e){this.myDB.db.transaction(e,"readwrite").objectStore(e).clear()}}]),e}(),nS=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],iS=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],rS=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],oS="data-xgplayerid";function aS(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var s,l=t.call.apply(t,Um(i=[e]).call(i,o));n&&"function"==typeof n&&(l&&l.then?l.then((function(){for(var t,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];n.call.apply(n,Um(t=[e]).call(t,r))})):n.call.apply(n,Um(s=[e]).call(s,o)))}function sS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),function(){var i,r=arguments,o=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,Um(a=[this]).call(a,zk(Array.prototype).call(arguments)))}catch(v){var l,u;throw v.message=Um(l=Um(u="[pluginName: ".concat(this.pluginName,":")).call(u,e,":pre error] >> ")).call(l,v.message),v}if(this.__hooks&&this.__hooks[e])try{var c,h=vS(this,e,t);if(h)if(h.then)h.then((function(e){var i;!1!==e&&aS.apply(void 0,Um(i=[o,t,n.next]).call(i,pC(r)))})).catch((function(e){throw e}));else aS.apply(void 0,Um(c=[this,t,n.next]).call(c,zk(Array.prototype).call(arguments)));else if(void 0===h){var f;aS.apply(void 0,Um(f=[this,t,n.next]).call(f,zk(Array.prototype).call(arguments)))}}catch(v){var d,p;throw v.message=Um(d=Um(p="[pluginName: ".concat(this.pluginName,":")).call(p,e,"] >> ")).call(d,v.message),v}else aS.apply(void 0,Um(i=[this,t,n.next]).call(i,zk(Array.prototype).call(arguments)))}.bind(this)}function lS(e,t){var n=this.__hooks;if(!n||!Array.isArray(n[e]))return-1;for(var i=n[e],r=0;r<i.length;r++)if(i[r]===t)return r;return-1}function uS(e,t){var n=this.__hooks;if(n)return n.hasOwnProperty(e)?(Array.isArray(n[e])||(n[e]=[]),-1===lS.call(this,e,t)&&n[e].push(t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function cS(e,t){var n=this.__hooks;if(n)if(Array.isArray(n[e])){var i=n[e],r=lS.call(this,e,t);-1!==r&&cw(i).call(i,r,1)}else n[e]&&(n[e]=null)}function hS(e){if(this.plugins&&this.plugins[e.toLowerCase()]){for(var t=this.plugins[e.toLowerCase()],n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.useHooks&&t.useHooks.apply(t,i)}}function fS(e){if(this.plugins&&this.plugins[e.toLowerCase()]){var t=this.plugins[e.toLowerCase()];if(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.removeHooks&&t.removeHooks.apply(t,i)}}}function dS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&Hk(t).call(t,(function(t){e.__hooks[t]=null})),lE(e,"hooks",{get:function(){var t;return e.__hooks&&Hk(t=Kk(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}function pS(e){e.__hooks=null}function vS(e,t,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),o=3;o<i;o++)r[o-3]=arguments[o];if(e.__hooks&&Array.isArray(e.__hooks[t])){var a,s=e.__hooks[t],l=-1;return function e(t,n,i){for(var r,o,a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];if(l++,0===s.length||l===s.length)return i.call.apply(i,Um(o=[t,t]).call(o,u));var h,f=s[l],d=f.call.apply(f,Um(r=[t,t]).call(r,u));return d&&d.then?d.then((function(r){var o;return!1===r?null:e.apply(void 0,Um(o=[t,n,i]).call(o,u))})).catch((function(e){console.warn("[runHooks]".concat(n," reject"),e.message)})):!1!==d?e.apply(void 0,Um(h=[t,n,i]).call(h,u)):void 0}.apply(void 0,Um(a=[e,t,n]).call(a,r))}var u;return n.call.apply(n,Um(u=[e,e]).call(u,r))}function gS(e,t){var n;$x.logError(Um(n="[".concat(e,"] event or callback cant be undefined or null when call ")).call(n,t))}var yS=function(){function e(t){iC(this,e),Jx.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),dS(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return oC(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=Jx.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):Array.isArray(e)&&e.forEach((function(e){n.__events[e]=t,n.player.on(e,t)})):gS(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):Array.isArray(e)&&e.forEach((function(i){n.__onceEvents[i]=t,n.player.once(e,t)})):gS(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var n=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):Array.isArray(e)&&e.forEach((function(i){delete n.__events[e],n.player.off(i,t)})):gS(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e=this;["__events","__onceEvents"].forEach((function(t){Kk(e[t]).forEach((function(n){e[t][n]&&e.off(n,e[t][n]),n&&delete e[t][n]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,n;if(this.player){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(n=this.player).emit.apply(n,Um(t=[e]).call(t,r))}}},{key:"emitUserAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var i=tC(tC({},n),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,i)}}},{key:"hook",value:function(e,t){var n;return sS.call.apply(sS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var n,i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return uS.call.apply(uS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var n,i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return cS.call.apply(cS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return n&&(t.pluginName=n),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,n=this.player,i=this.pluginName;this.offAll(),Jx.clearAllTimers(this),Jx.checkIsFunction(this.destroy)&&this.destroy(),Hk(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),n.unRegisterPlugin(i),pS(this)}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&lE(e,n,t[n])}},{key:"defineMethod",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"function"==typeof t[n]&&lE(e,n,{configurable:!0,value:t[n]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}();if("undefined"!=typeof Element&&!Element.prototype.matches){var mS=Element.prototype;mS.matches=mS.matchesSelector||mS.mozMatchesSelector||mS.msMatchesSelector||mS.oMatchesSelector||mS.webkitMatchesSelector}var _S=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function bS(e,t,n,i,r){var o=kS.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}function kS(e,t,n,i){return function(n){n.delegateTarget=_S(n.target,t),n.delegateTarget&&i.call(e,n)}}var wS=function(e,t,n,i,r){return"function"==typeof e.addEventListener?bS.apply(null,arguments):"function"==typeof n?bS.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Hk(Array.prototype).call(e,(function(e){return bS(e,t,n,i,r)})))},ES=n(wS),CS={CONTROLS:"controls",ROOT:"root"},xS={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"},TS="xg-icon-disable";function SS(e){return!!e&&(Bk(e)&&/^(?:http|data:|\/)/.test(e))}function PS(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=null;if(e instanceof window.Element)return Jx.addClass(e,r),Hk(i=Kk(o)).call(i,(function(t){e.setAttribute(t,o[t])})),e;if(SS(e)||SS(e.url))return o.src=SS(e)?e:e.url||"",s=Jx.createDom(e.tag||"img","",o,"xg-img ".concat(r));if("function"==typeof e)try{var l,u;return(s=e())instanceof window.Element?(Jx.addClass(s,r),Hk(l=Kk(o)).call(l,(function(e){s.setAttribute(e,o[e])})),s):($x.logWarn(Um(u="warn>>icons.".concat(t," in config of plugin named [")).call(u,a,"] is a function mast return an Element Object")),null)}catch(c){return $x.logError("Plugin named [".concat(a,"]:createIcon"),c),null}return"string"==typeof e?Jx.createDomFromHtml(e,o,r):($x.logWarn(Um(n="warn>>icons.".concat(t," in config of plugin named [")).call(n,a,"] is invalid")),null)}function AS(e,t){var n,i=t.config.icons||t.playerConfig.icons;Hk(n=Kk(e)).call(n,(function(n){var r=e[n],o=r&&r.class?r.class:"",a=r&&r.attr?r.attr:{},s=null;i&&i[n]&&(o=function(e,t){var n;return"object"===nC(e)&&e.class&&"string"==typeof e.class?Um(n="".concat(t," ")).call(n,e.class):t}(i[n],o),a=function(e,t){var n;return"object"===nC(e)&&e.attr&&"object"===nC(e.attr)&&Hk(n=Kk(e.attr)).call(n,(function(n){t[n]=e.attr[n]})),t}(i[n],a),s=PS(i[n],n,o,a,t.pluginName)),!s&&r&&(s=PS(r.icon?r.icon:r,a,o,{},t.pluginName)),t.icons[n]=s}))}var RS=function(e){sC(n,e);var t=fC(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return iC(this,n),(e=t.call(this,i)).__delegates=[],e}return oC(n,[{key:"__init",value:function(e){if(dC(lC(n.prototype),"__init",this).call(this,e),e.root){var t=e.root,i=null;this.icons={},this.root=null,this.parent=null,AS(this.registerIcons()||{},this),this.langText={};var r,o,a,s=this.registerLanguageTexts()||{};o=this,Hk(a=Kk(r=s)).call(a,(function(e){lE(o.langText,e,{get:function(){var t=o.lang,n=o.i18n;return n[e]?n[e]:r[e]&&r[e][t]||""}})}));var l="";try{l=this.render()}catch(f){var u;throw $x.logError("Plugin:".concat(this.pluginName,":render"),f),new Error(Um(u="Plugin:".concat(this.pluginName,":render:")).call(u,f.message))}if(l)(i=n.insert(l,t,e.index)).setAttribute("data-index",e.index);else{if(!e.tag)return;(i=Jx.createDom(e.tag,"",e.attr,e.name)).setAttribute("data-index",e.index),t.appendChild(i)}this.root=i,this.parent=t;var c=this.config.attr||{},h=this.config.style||{};this.setAttr(c),this.setStyle(h),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var t,n=this.children();if(n&&"object"===nC(n))if(Kk(n).length>0)Hk(t=Kk(n)).call(t,(function(t){var i,r,o=t,a=n[o],s={root:e.root};"function"==typeof a?(i=e.config[o]||{},r=a):"object"===nC(a)&&"function"==typeof a.plugin&&(i=a.options?Jx.deepCopy(e.config[o]||{},a.options):e.config[o]||{},r=a.plugin),s.config=i,void 0!==i.index&&(s.index=i.index),i.root&&(s.root=i.root),e.registerPlugin(r,s,o)}))}}},{key:"updateLang",value:function(e){e||(e=this.lang);var t=this.root,n=this.i18n,i=this.langText;t&&function e(t,n){for(var i=0;i<t.children.length;i++)t.children[i].children.length>0?e(t.children[i],n):n(t.children[i])}(t,(function(t){var r=t.getAttribute&&t.getAttribute("lang-key");if(r){var o=n[r.toUpperCase()]||i[r];o&&(t.innerHTML="function"==typeof o?o(e):o)}}))}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.i18n||{},i=this.langText;e.setAttribute&&e.setAttribute("lang-key",t);var r=n[t]||i[t]||"";r&&(e.innerHTML=r)}},{key:"plugins",value:function(){return this._children}},{key:"disable",value:function(){this.config.disable=!0,Jx.addClass(Ym(this).call(this,".xgplayer-icon"),TS)}},{key:"enable",value:function(){this.config.disable=!1,Jx.removeClass(Ym(this).call(this,".xgplayer-icon"),TS)}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.root=t.root||this.root;var r=dC(lC(n.prototype),"registerPlugin",this).call(this,e,t,i);return this._children.push(r),r}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,t,i){var r=this;if(arguments.length<3&&"function"==typeof t)Array.isArray(e)?e.forEach((function(e){r.bindEL(e,t)})):this.bindEL(e,t);else{var o,a=n.delegate.call(this,this.root,e,t,i);this.__delegates=Um(o=this.__delegates).call(o,a)}}},{key:"unbind",value:function(e,t){var n=this;if(arguments.length<3&&"function"==typeof t)Array.isArray(e)?e.forEach((function(e){n.unbindEL(e,t)})):this.unbindEL(e,t);else for(var i,r=Um(i="".concat(e,"_")).call(i,t),o=0;o<this.__delegates.length;o++)if(this.__delegates[o].key===r){var a;this.__delegates[o].destroy(),cw(a=this.__delegates).call(a,o,1);break}}},{key:"setStyle",value:function(e,t){var n,i=this;if(this.root)return"String"===Jx.typeOf(e)?this.root.style[e]=t:void("Object"===Jx.typeOf(e)&&Hk(n=Kk(e)).call(n,(function(t){i.root.style[t]=e[t]})))}},{key:"setAttr",value:function(e,t){var n,i=this;if(this.root)return"String"===Jx.typeOf(e)?this.root.setAttribute(e,t):void("Object"===Jx.typeOf(e)&&Hk(n=Kk(e)).call(n,(function(t){i.root.setAttribute(t,e[t])})))}},{key:"setHtml",value:function(e,t){this.root&&(this.root.innerHTML=e,"function"==typeof t&&t())}},{key:"bindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"==typeof t&&this.root.addEventListener(e,t,n)}},{key:"unbindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"==typeof t&&this.root.removeEventListener(e,t,n)}},{key:"show",value:function(e){if(this.root)return this.root.style.display=void 0!==e?e:"block","none"===window.getComputedStyle(this.root,null).getPropertyValue("display")?this.root.style.display="block":void 0}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,t){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!(t&&t instanceof window.Element))return null;try{return"string"==typeof e?Ym(this).call(this,e).appendChild(t):e.appendChild(t)}catch(n){return $x.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e,t,i,r=this,o=this.player;(Hk(e=this.__delegates).call(e,(function(e){e.destroy()})),this.__delegates=[],this._children instanceof Array)&&(Hk(i=this._children).call(i,(function(e){o.unRegisterPlugin(e.pluginName)})),this._children=null);this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),dC(lC(n.prototype),"__destroy",this).call(this),this.icons={},Hk(t=["root","parent"]).call(t,(function(e){r[e]=null}))}}],[{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t.children.length,r=Number(n),o=e instanceof window.Node;if(i){for(var a=0,s=null,l="";a<i;a++){s=t.children[a];var u=Number(s.getAttribute("data-index"));if(u>=r){l="beforebegin";break}u<r&&(l="afterend")}return o?"afterend"===l?t.appendChild(e):t.insertBefore(e,s):s.insertAdjacentHTML(l,e),"afterend"===l?t.children[t.children.length-1]:t.children[a]}return o?t.appendChild(e):t.insertAdjacentHTML("beforeend",e),t.children[t.children.length-1]}},{key:"defaultConfig",get:function(){return{}}},{key:"delegate",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[];if(e instanceof window.Node&&"function"==typeof i)if(Array.isArray(n))n.forEach((function(n){var a,s=ES(e,t,n,i,r);s.key=Um(a="".concat(t,"_")).call(a,n),o.push(s)}));else{var a,s=ES(e,t,n,i,r);s.key=Um(a="".concat(t,"_")).call(a,n),o.push(s)}return o}},{key:"ROOT_TYPES",get:function(){return CS}},{key:"POSITIONS",get:function(){return xS}}]),n}(yS),IS=function(){function e(){var t=this;if(iC(this,e),aC(this,"__trigger",(function(e){var n=(new Date).getTime();t.timeStamp=n;for(var i=0;i<e.length;i++)t.__runHandler(e[i].target)})),this.__handlers=[],this.timeStamp=0,this.observer=null,window.ResizeObserver)try{this.observer=new window.ResizeObserver(function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Qx(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),eT(e,t,{leading:i,trailing:r,maxWait:t})}(this.__trigger,100,{trailing:!0})),this.timeStamp=(new Date).getTime()}catch(n){console.error(n)}}return oC(e,[{key:"addObserver",value:function(e,t){if(this.observer){this.observer.observe(e);for(var n=e.getAttribute(oS),i=this.__handlers,r=-1,o=0;o<i.length;o++)i[o]&&e===i[o].target&&(r=o);r>-1?this.__handlers[r].handler=t:this.__handlers.push({target:e,handler:t,playerId:n})}}},{key:"unObserver",value:function(e){var t,n,i=-1;Hk(t=this.__handlers).call(t,(function(t,n){e===t.target&&(i=n)}));try{var r;null===(r=this.observer)||void 0===r||r.unobserve(e)}catch(o){}i>-1&&cw(n=this.__handlers).call(n,i,1)}},{key:"destroyObserver",value:function(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(e){for(var t=this.__handlers,n=0;n<t.length;n++)if(t[n]&&e===t[n].target){try{t[n].handler(e)}catch(lU){console.error(lU)}return!0}return!1}}]),e}(),OS=null;var MS={pluginGroup:{},init:function(e){var t,n,i=e._pluginInfoId;i||(i=(new Date).getTime(),e._pluginInfoId=i),!e.config.closeResizeObserver&&(t=e.root,n=function(){e.resize()},OS||(OS=new IS),OS.addObserver(t,n)),this.pluginGroup[i]={_originalOptions:e.config||{},_plugins:{}}},formatPluginInfo:function(e,t){var n=null,i=null;return e.plugin&&"function"==typeof e.plugin?(n=e.plugin,i=e.options):(n=e,i={}),t&&(i.config=t||{}),{PLUFGIN:n,options:i}},checkPluginIfExits:function(e,t){for(var n=0;n<t.length;n++)if(e.toLowerCase()===t[n].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(e,t){for(var n=Kk(t),i=null,r=0;r<n.length;r++)if(e.toLowerCase()===n[r].toLowerCase()){i=t[n[r]];break}return"Object"===Jx.typeOf(i)?{root:i.root,position:i.position}:{}},lazyRegister:function(e,t){var n=this,i=t.timeout||1500;return jk.race([t.loader().then((function(t){var i;i=t&&t.__esModule?t.default:t,n.register(e,i,t.options)})),new jk((function(e,t){setTimeout((function(){t(new Error("timeout"))}),i)}))])},register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&"function"==typeof t&&void 0!==t.prototype){var i=e._pluginInfoId;if(i&&this.pluginGroup[i]){this.pluginGroup[i]._plugins||(this.pluginGroup[i]._plugins={});var r=this.pluginGroup[i]._plugins,o=this.pluginGroup[i]._originalOptions;n.player=e;var a=n.pluginName||t.pluginName;if(!a)throw new Error("The property pluginName is necessary");if(!t.isSupported||t.isSupported(e.config.mediaType,e.config.codecType)){n.config||(n.config={});for(var s=Kk(o),l=0;l<s.length;l++)if(a.toLowerCase()===s[l].toLowerCase()){var u=o[s[l]];"Object"===Jx.typeOf(u)?n.config=iE({},n.config,o[s[l]]):"Boolean"===Jx.typeOf(u)&&(n.config.disable=!u);break}t.defaultConfig&&Kk(t.defaultConfig).forEach((function(e){void 0===n.config[e]&&(n.config[e]=t.defaultConfig[e])})),n.root?"string"==typeof n.root&&(n.root=e[n.root]):n.root=e.root,n.index=n.config.index||0;try{r[a.toLowerCase()]&&(this.unRegister(i,a.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(a,"] exist, destroy the old instance")));var c=new t(n);return r[a.toLowerCase()]=c,r[a.toLowerCase()].func=t,c&&"function"==typeof c.afterCreate&&c.afterCreate(),c}catch(h){throw console.error(h),h}}else console.warn("not supported plugin [".concat(a,"]"))}}},unRegister:function(e,t){e._pluginInfoId&&(e=e._pluginInfoId),t=t.toLowerCase();try{var n=this.pluginGroup[e]._plugins[t];n&&(n.pluginName&&n.__destroy(),delete this.pluginGroup[e]._plugins[t])}catch(r){var i;console.error(Um(i="[unRegister:".concat(t,"] cgid:[")).call(i,e,"] error"),r)}},deletePlugin:function(e,t){var n=e._pluginInfoId;n&&this.pluginGroup[n]&&this.pluginGroup[n]._plugins&&delete this.pluginGroup[n]._plugins[t]},getPlugins:function(e){var t=e._pluginInfoId;return t&&this.pluginGroup[t]?this.pluginGroup[t]._plugins:{}},findPlugin:function(e,t){var n=e._pluginInfoId;if(!n||!this.pluginGroup[n])return null;var i=t.toLowerCase();return this.pluginGroup[n]._plugins[i]},beforeInit:function(e){var t=this;function n(e){return e&&e.then?e:new jk((function(e){e()}))}return new jk((function(i){if(t.pluginGroup)return(e._loadingPlugins&&e._loadingPlugins.length?jk.all(e._loadingPlugins):jk.resolve()).then((function(){var r,o=e._pluginInfoId;if(t.pluginGroup[o]){var a=t.pluginGroup[o]._plugins,s=[];Kk(a).forEach((function(e){if(a[e]&&a[e].beforePlayerInit)try{var t=a[e].beforePlayerInit();s.push(n(t))}catch(i){throw s.push(n(null)),i}})),jk.all(Um(r=[]).call(r,s)).then((function(){i()})).catch((function(e){console.error(e),i()}))}else i()}))}))},afterInit:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins;Kk(n).forEach((function(e){n[e]&&n[e].afterPlayerInit&&n[e].afterPlayerInit()}))}},setLang:function(e,t){var n=t._pluginInfoId;if(n&&this.pluginGroup[n]){var i=this.pluginGroup[n]._plugins;Kk(i).forEach((function(t){if(i[t].updateLang)i[t].updateLang(e);else try{i[t].lang=e}catch(lU){console.warn("".concat(t," setLang"))}}))}},reRender:function(e){var t=this,n=e._pluginInfoId;if(n&&this.pluginGroup[n]){var i=[],r=this.pluginGroup[n]._plugins;Kk(r).forEach((function(e){"controls"!==e&&r[e]&&(i.push({plugin:r[e].func,options:r[e].__args}),t.unRegister(n,e))})),i.forEach((function(n){t.register(e,n.plugin,n.options)}))}},onPluginsReady:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins||{};Kk(n).forEach((function(e){n[e].onPluginsReady&&"function"==typeof n[e].onPluginsReady&&n[e].onPluginsReady()}))}},destroy:function(e){var t=e._pluginInfoId;if(this.pluginGroup[t]){var n,i,r;n=e.root,null===(r=OS)||void 0===r||r.unObserver(n,i);for(var o=this.pluginGroup[t]._plugins,a=0,s=Kk(o);a<s.length;a++){var l=s[a];this.unRegister(t,l)}delete this.pluginGroup[t],delete e._pluginInfoId}}},LS="xgplayer",DS="xgplayer-is-enter",NS="xgplayer-pause",FS="xgplayer-playing",US="xgplayer-ended",HS="xgplayer-isloading",jS="xgplayer-is-error",BS="xgplayer-replay",KS="xgplayer-nostart",zS="xgplayer-inactive",VS="xgplayer-is-fullscreen",GS="xgplayer-is-cssfullscreen",WS="xgplayer-rotate-fullscreen",YS="xgplayer-rotate-parent",XS="xgplayer-fullscreen-parent",qS="xgplayer-fullscreen-inner",$S="no-controls",ZS="flex-controls",JS="controls-autohide",QS="top-bar-autohide",eP="not-allow-autoplay",tP="seeking";function nP(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},preProcessUrl:null,ignores:[],whitelist:[],inactive:3e3,lang:tT(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,minWaitDelay:200,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var iP=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onMouseEnter",(function(e){var t=cC(i),n=t.player;t.playerConfig.closeControlsBlur&&n.focus({autoHide:!1})})),aC(cC(i),"onMouseLeave",(function(e){cC(i).player.focus()})),i}return oC(n,[{key:"beforeCreate",value:function(e){e.config.mode||"mobile"!==oT.device||(e.config.mode="flex"),e.player.config.marginControls&&(e.config.autoHide=!1)}},{key:"afterCreate",value:function(){var e,t=this,n=this.config,i=n.disable,r=n.height,o=n.mode;if(!i){"flex"===o&&this.player.addClass(ZS);var a={height:"".concat(r,"px")};Hk(e=Kk(a)).call(e,(function(e){t.root.style[e]=a[e]})),this.left=Ym(this).call(this,"xg-left-grid"),this.center=Ym(this).call(this,"xg-center-grid"),this.right=Ym(this).call(this,"xg-right-grid"),this.innerRoot=Ym(this).call(this,"xg-inner-controls"),this.on(UT,(function(e){e?Jx.addClass(t.root,"mini-controls"):Jx.removeClass(t.root,"mini-controls")}));var s=this.playerConfig.isMobileSimulateMode;"mobile"!==oT.device&&"mobile"!==s&&(this.bind("mouseenter",this.onMouseEnter),this.bind("mouseleave",this.onMouseLeave))}}},{key:"focus",value:function(){this.player.focus({autoHide:!1})}},{key:"focusAwhile",value:function(){this.player.focus({autoHide:!0})}},{key:"blur",value:function(){this.player.blur({ignorePaused:!0})}},{key:"recoverAutoHide",value:function(){this.config.autoHide&&Jx.addClass(this.root,JS)}},{key:"pauseAutoHide",value:function(){Jx.removeClass(this.root,JS)}},{key:"show",value:function(e){this.root.style.display="",this.player.focus()}},{key:"hide",value:function(){this.root.style.display="none"}},{key:"mode",get:function(){return this.config.mode}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(this.root){var r=e.defaultConfig||{};if(!t.root){switch(t.position?t.position:t.config&&t.config.position?t.config.position:r.position){case xS.CONTROLS_LEFT:t.root=this.left;break;case xS.CONTROLS_RIGHT:t.root=this.right;break;case xS.CONTROLS_CENTER:t.root=this.center;break;case xS.CONTROLS:t.root=this.root;break;default:t.root=this.left}return dC(lC(n.prototype),"registerPlugin",this).call(this,e,t,i)}}}},{key:"destroy",value:function(){"mobile"!==oT.device&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave)),this.left=null,this.center=null,this.right=null,this.innerRoot=null}},{key:"render",value:function(){var e=this.config,t=e.mode,n=e.autoHide,i=e.initShow;if(!e.disable){var r=Jx.classNames({"xgplayer-controls":!0},{"flex-controls":"flex"===t},{"bottom-controls":"bottom"===t},aC({},JS,n),{"xgplayer-controls-initshow":i||!n});return'<xg-controls class="'.concat(r,'" unselectable="on">\n <xg-inner-controls class="xg-inner-controls xg-pos">\n <xg-left-grid class="xg-left-grid">\n </xg-left-grid>\n <xg-center-grid class="xg-center-grid"></xg-center-grid>\n <xg-right-grid class="xg-right-grid">\n </xg-right-grid>\n </xg-inner-controls>\n </xg-controls>')}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),n}(RS),rP={lang:{},langKeys:[],textKeys:[]};function oP(e,t){return Kk(t).forEach((function(n){var i,r=Jx.typeOf(t[n]),o=Jx.typeOf(e[n]);"Array"===r?("Array"!==o&&(e[n]=[]),(i=e[n]).push.apply(i,pC(t[n]))):"Object"===r?("Object"!==o&&(e[n]={}),oP(e[n],t[n])):e[n]=t[n]})),e}function aP(){var e;Hk(e=Kk(rP.lang.en)).call(e,(function(e){rP.textKeys[e]=e}))}function sP(e,t){var n=e.LANG;if(t||(t=rP),t.lang){var i=e.TEXT||{};"zh"===n&&(n="zh-cn"),t.lang[n]?oP(t.lang[n],i):(t.langKeys.push(n),t.lang[n]=i),aP()}}sP({LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}});var lP={get textKeys(){return rP.textKeys},get langKeys(){return rP.langKeys},get lang(){var e,t={};return Hk(e=rP.langKeys).call(e,(function(e){t[e]=rP.lang[e]})),rP.lang["zh-cn"]&&(t.zh=rP.lang["zh-cn"]||{}),t},extend:function(e,t){var n=[];if(t||(t=rP),t.lang){var i;if("Array"!==Jx.typeOf(e))n=Hk(i=Kk(e)).call(i,(function(t){return{LANG:"zh"===t?"zh-cn":t,TEXT:e[t]}}));else n=e;var r=t.lang;Hk(n).call(n,(function(e){"zh"===e.LANG&&(e.LANG="zh-cn"),r[e.LANG]?oP(r[e.LANG]||{},e.TEXT||{}):sP(e,t)})),aP()}},use:sP,init:function(e){var t,n={lang:{},langKeys:[],textKeys:{},pId:e};return oP(n.lang,rP.lang),(t=n.langKeys).push.apply(t,pC(rP.langKeys)),oP(n.textKeys,rP.textKeys),n}},uP=1,cP=2,hP=3,fP=4,dP=5,pP=6,vP=7,gP=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],yP={},mP=null,_P=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"add",value:function(e){e&&(yP[e.playerId]=e,1===Kk(yP).length&&this.setActive(e.playerId,!0))}},{key:"remove",value:function(e){e&&(e.isUserActive,delete yP[e.playerId])}},{key:"_iterate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in yP)if(Object.prototype.hasOwnProperty.call(yP,n)){var i=yP[n];if(t){if(e(i))break}else e(i)}}},{key:"forEach",value:function(e){this._iterate(e)}},{key:"find",value:function(e){var t=null;return this._iterate((function(n){var i=e(n);return i&&(t=n),i}),!0),t}},{key:"findAll",value:function(e){var t=[];return this._iterate((function(n){e(n)&&t.push(n)})),t}},{key:"setActive",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(yP[e])return t?this.forEach((function(t){e===t.playerId?(t.isUserActive=!0,t.isInstNext=!1):t.isUserActive=!1})):yP[e].isUserActive=t,e}},{key:"getActiveId",value:function(){for(var e=Kk(yP),t=0;t<e.length;t++){var n=yP[e[t]];if(n&&n.isUserActive)return e[t]}return null}},{key:"setNext",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(yP[e])return t?this.forEach((function(t){e===t.playerId?(t.isUserActive=!1,t.isInstNext=!0):t.isInstNext=!1})):yP[e].isInstNext=t,e}}],[{key:"getInstance",value:function(){return mP||(mP=new n),mP}}]),n}(mC.EventEmitter);var bP=["play","pause","replay","retry"],kP=0,wP=0,EP=null,CP=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n);var r,o=Jx.deepMerge(nP(),e);aC(cC(i=t.call(this,o)),"canPlayFunc",(function(){if(i.config){var e=i.config,t=e.autoplay,n=e.defaultPlaybackRate;$x.logInfo("player","canPlayFunc, startTime",i.__startTime),i._seekToStartTime(),i.playbackRate=n,(t||i._useAutoplay)&&i.mediaPlay(),i.off(yT,i.canPlayFunc),i.removeClass(DS)}})),aC(cC(i),"onFullscreenChange",(function(e,t){var n=function(){Jx.setTimeout(cC(i),(function(){i.resize()}),100)},r=Jx.getFullScreenEl();i._fullActionFrom?i._fullActionFrom="":i.emit(YT,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:i.currentTime,duration:i.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var o=function(e,t,n){if(e){var i=e.getAttribute(n);return!(!i||i!==t||"VIDEO"!==e.tagName&&"AUDIO"!==e.tagName)}}(r,i.playerId,oS);if(t||r&&(r===i._fullscreenEl||o))n(),!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!0,i.changeFullStyle(i.root,r,VS),i.emit(NT,!0,i._fullScreenOffset),i.cssfullscreen&&i.exitCssFullscreen();else if(i.fullscreen){n();var a=cC(i),s=a._fullScreenOffset;if(a.config.needFullscreenScroll?(window.scrollTo(s.left,s.top),Jx.setTimeout(cC(i),(function(){i.fullscreen=!1,i._fullScreenOffset=null}),100)):(!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!1,i._fullScreenOffset=null),i.cssfullscreen)i.removeClass(VS);else{var l=i._fullscreenEl;l||!i.root.contains(e.target)&&e.target!==i.root||(l=e.target),i.recoverFullStyle(i.root,l,VS)}i._fullscreenEl=null,i.emit(NT,!1)}})),aC(cC(i),"_onWebkitbeginfullscreen",(function(e){i._fullscreenEl=i.media,i.onFullscreenChange(e,!0)})),aC(cC(i),"_onWebkitendfullscreen",(function(e){i.onFullscreenChange(e,!1)})),dS(cC(i),bP),i.config=o,i._pluginInfoId=Jx.generateSessionId(),(r=cC(i)).logInfo=$x.logInfo.bind(r),r.logWarn=$x.logWarn.bind(r),r.logError=$x.logError.bind(r);var a=i.constructor.defaultPreset;if(i.config.presets.length){var s,l=Bk(s=i.config.presets).call(s,"default");l>=0&&a&&(i.config.presets[l]=a)}else a&&i.config.presets.push(a);if(i.userTimer=null,i.waitTimer=null,i.handleSource=!0,i._state=uP,i.isAd=!1,i.isError=!1,i._hasStart=!1,i.isSeeking=!1,i.isCanplay=!1,i._useAutoplay=!1,i.__startTime=-1,i.rotateDeg=0,i.isActive=!1,i.fullscreen=!1,i.cssfullscreen=!1,i.isRotateFullscreen=!1,i._fullscreenEl=null,i.timeSegments=[],i._cssfullscreenEl=null,i.curDefinition=null,i._orgCss="",i._fullScreenOffset=null,i._videoHeight=0,i._videoWidth=0,i.videoPos={pi:1,scale:0,rotate:-1,x:0,y:0,h:-1,w:-1,vy:0,vx:0},i.sizeInfo={width:0,height:0,left:0,top:0},i._accPlayed={t:0,acc:0,loopAcc:0},i._offsetInfo={currentTime:-1,duration:0},i.innerContainer=null,i.controls=null,i.topBar=null,i.root=null,i.__i18n=lP.init(i._pluginInfoId),oT.os.isAndroid&&oT.osVersion>0&&oT.osVersion<6&&(i.config.autoplay=!1),i.database=new tS,i.isUserActive=!1,i._onceSeekCanplay=null,i._isPauseBeforeSeek=0,i.innerStates={isActiveLocked:!1},i.instManager=EP,!i._initDOM())return console.error(new Error("can't find the dom which id is ".concat(i.config.id," or this.config.el does not exist"))),hC(i);var u=i.config,c=u.definition,h=void 0===c?{}:c;if(!u.url&&h.list&&h.list.length>0){var f,d=Ym(f=h.list).call(f,(function(e){return e.definition&&e.definition===h.defaultDefinition}));d||(h.defaultDefinition=h.list[0].definition,d=h.list[0]),i.config.url=d.url,i.curDefinition=d}return i._bindEvents(),i._registerPresets(),i._registerPlugins(),MS.onPluginsReady(cC(i)),i.getInitDefinition(),i.setState(cP),Jx.setTimeout(cC(i),(function(){i.emit(CT)}),0),i.onReady&&i.onReady(),(i.config.videoInit||i.config.autoplay)&&(!i.hasStart||i.state<fP)&&i.start(),i}return oC(n,[{key:"_initDOM",value:function(){var e,t,n,i,r=this;if(this.root=this.config.id?document.getElementById(this.config.id):null,!this.root){var o=this.config.el;if(!o||1!==o.nodeType)return this.emit(dT,new uT("use",this.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),console.error("this.confg.id or this.config.el can't be empty"),!1;this.root=o}var a=function(e){for(var t=Kk(yP),n=0;n<t.length;n++){var i=yP[t[n]];if(i.root===e)return i}return null}(this.root);if(a&&($x.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"),a.destroy()),this.root.setAttribute(oS,this.playerId),this.media.setAttribute(oS,this.playerId),null===(i=EP)||void 0===i||i.add(this),MS.init(this),this._initBaseDoms(),this.config.controls){var s=this.config.controls.root||null,l=MS.register(this,iP,{root:s});this.controls=l}var u="mobile"===this.config.isMobileSimulateMode?"mobile":oT.device;if(this.addClass(Um(e=Um(t=Um(n="".concat(LS," ")).call(n,zS," xgplayer-")).call(t,u," ")).call(e,this.config.controls?"":$S)),this.config.autoplay?this.addClass(DS):this.addClass(KS),this.config.fluid){var c=this.config,h=c.width,f=c.height;"number"==typeof h&&"number"==typeof f||(h=600,f=337.5);var d={width:"100%",height:"0","max-width":"100%","padding-top":"".concat(100*f/h,"%")};Kk(d).forEach((function(e){r.root.style[e]=d[e]}))}else["width","height"].forEach((function(e){r.config[e]&&("number"!=typeof r.config[e]?r.root.style[e]=r.config[e]:r.root.style[e]="".concat(r.config[e],"px"))}));var p=this.root.getBoundingClientRect(),v=p.width,g=p.height,y=p.left,m=p.top;return this.sizeInfo.width=v,this.sizeInfo.height=g,this.sizeInfo.left=y,this.sizeInfo.top=m,!0}},{key:"_initBaseDoms",value:function(){this.topBar=null,this.leftBar=null,this.rightBar=null,this.config.marginControls&&(this.innerContainer=Jx.createDom("xg-video-container","",{"data-index":-1},"xg-video-container"),this.root.appendChild(this.innerContainer))}},{key:"_bindEvents",value:function(){var e=this;["focus","blur"].forEach((function(t){e.on(t,e["on"+t.charAt(0).toUpperCase()+zk(t).call(t,1)])})),nS.forEach((function(t){document&&document.addEventListener(t,e.onFullscreenChange)})),oT.os.isIos&&(this.media.addEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.addEventListener("webkitendfullscreen",this._onWebkitendfullscreen)),this.once(bT,this.resize),this.playFunc=function(){e.config.closeFocusVideoFocus||e.media.focus()},this.once(cT,this.playFunc)}},{key:"_unbindEvents",value:function(){var e=this;this.root.removeEventListener("mousemove",this.mousemoveFunc),nS.forEach((function(t){document.removeEventListener(t,e.onFullscreenChange)})),this.playFunc&&this.off(cT,this.playFunc),this.off(yT,this.canPlayFunc),this.media.removeEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.removeEventListener("webkitendfullscreen",this._onWebkitendfullscreen)}},{key:"_clearUserTimer",value:function(){this.userTimer&&(Jx.clearTimeout(this,this.userTimer),this.userTimer=null)}},{key:"_startInit",value:function(e){var t=this;if(this.media&&(e&&""!==e&&("Array"!==Jx.typeOf(e)||0!==e.length)||(e="",this.emit(xT),$x.logWarn("config.url is null, please get url and run player._startInit(url)"),!this.config.nullUrlStart))){this.handleSource&&(this._detachSourceEvents(this.media),"Array"===Jx.typeOf(e)&&e.length>0?this._attachSourceEvents(this.media,e):this.media.src&&this.media.src===e?e||this.media.removeAttribute("src"):this.media.src=e),"Number"===Jx.typeOf(this.config.volume)&&(this.volume=this.config.volume);var n=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!n.contains(this.media)&&n.insertBefore(this.media,n.firstChild);var i=this.media.readyState;$x.logInfo("_startInit readyState",i),this.config.autoplay&&(!Jx.isMSE(this.media)&&this.load(),(oT.os.isIpad||oT.os.isPhone)&&this.mediaPlay());var r=this.config.startTime;this.__startTime=r>0?r:-1,this.config.startTime=0,i>=2&&this.duration>0?this.canPlayFunc():this.on(yT,this.canPlayFunc),(!this.hasStart||this.state<fP)&&MS.afterInit(this),this.hasStart=!0,this.setState(fP),Jx.setTimeout(this,(function(){t.emit(PT)}),0)}}},{key:"_registerPlugins",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._loadingPlugins=[];var n=this.config.ignores||[],i=this.config.plugins||[],r=this.config.i18n||[];t&&lP.extend(r,this.__i18n);var o=n.join("||").toLowerCase().split("||"),a=this.plugins;i.forEach((function(n){try{var i=n.plugin?n.plugin.pluginName:n.pluginName;if(i&&Bk(o).call(o,i.toLowerCase())>-1)return null;if(!t&&a[i.toLowerCase()])return;if(n.lazy&&n.loader){var r=MS.lazyRegister(e,n);return void(n.forceBeforeInit&&(r.then((function(){var t,n;cw(t=e._loadingPlugins).call(t,Bk(n=e._loadingPlugins).call(n,r),1)})).catch((function(t){var n,i;$x.logError("_registerPlugins:loadingPlugin",t),cw(n=e._loadingPlugins).call(n,Bk(i=e._loadingPlugins).call(i,r),1)})),e._loadingPlugins.push(r)))}return e.registerPlugin(n)}catch(s){$x.logError("_registerPlugins:",s)}}))}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach((function(t){!function(e,t){var n,i,r,o=t.preset&&t.options?new t.preset(t.options,e.config):new t({},e.config),a=o.plugins,s=void 0===a?[]:a,l=o.ignores,u=void 0===l?[]:l,c=o.icons,h=void 0===c?{}:c,f=o.i18n,d=void 0===f?[]:f;e.config.plugins||(e.config.plugins=[]),e.config.ignores||(e.config.ignores=[]),(i=e.config.plugins).push.apply(i,pC(s)),(r=e.config.ignores).push.apply(r,pC(u)),Hk(n=Kk(h)).call(n,(function(t){e.config.icons[t]||(e.config.icons[t]=h[t])}));var p=e.config.i18n||[];d.push.apply(d,pC(p)),e.config.i18n=d}(e,t)}))}},{key:"_getRootByPosition",value:function(e){var t=null;switch(e){case xS.ROOT_RIGHT:this.rightBar||(this.rightBar=Jx.createPositionBar("xg-right-bar",this.root)),t=this.rightBar;break;case xS.ROOT_LEFT:this.leftBar||(this.leftBar=Jx.createPositionBar("xg-left-bar",this.root)),t=this.leftBar;break;case xS.ROOT_TOP:this.topBar||(this.topBar=Jx.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&Jx.addClass(this.topBar,QS)),t=this.topBar;break;default:t=this.innerContainer||this.root}return t}},{key:"registerPlugin",value:function(e,t){var n=MS.formatPluginInfo(e,t),i=n.PLUFGIN,r=n.options,o=this.config.plugins;!MS.checkPluginIfExits(i.pluginName,o)&&o.push(i);var a=MS.getRootByConfig(i.pluginName,this.config);a.root&&(r.root=a.root),a.position&&(r.position=a.position);var s,l=r.position?r.position:r.config&&r.config.position||i.defaultConfig&&i.defaultConfig.position;return!r.root&&"string"==typeof l&&Bk(l).call(l,"controls")>-1?null===(s=this.controls)||void 0===s?void 0:s.registerPlugin(i,r,i.pluginName):(r.root||(r.root=this._getRootByPosition(l)),MS.register(this,i,r))}},{key:"deregister",value:function(e){"string"==typeof e?MS.unRegister(this,e):e instanceof yS&&MS.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deregister(e),t&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var t;if("string"==typeof e?t=e:e instanceof yS&&(t=e.pluginName),t)for(var n=this.config.plugins.length-1;n>-1;n--){if(this.config.plugins[n].pluginName.toLowerCase()===t.toLowerCase()){var i;cw(i=this.config.plugins).call(i,n,1);break}}}},{key:"plugins",get:function(){return MS.getPlugins(this)}},{key:"getPlugin",value:function(e){var t=MS.findPlugin(this,e);return t&&t.pluginName?t:null}},{key:"addClass",value:function(e){this.root&&(Jx.hasClass(this.root,e)||Jx.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&Jx.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return Jx.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,t){this.root&&this.root.setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){this.root&&this.root.removeAttribute(e,t)}},{key:"start",value:function(e){var t=this;if(!(this.state>hP))return e||this.config.url||this.getInitDefinition(),this.hasStart=!0,this.setState(hP),this._registerPlugins(!1),MS.beforeInit(this).then((function(){if(t.config){e||(e=t.url||t.config.url);var n=t.preProcessUrl(e);return t._startInit(n.url)}})).catch((function(e){throw e.fileName="player",e.lineNumber="236",$x.logError("start:beforeInit:",e),e}))}},{key:"switchURL",value:function(e,t){var n=this,i=e;"Object"===Jx.typeOf(e)&&(i=e.url),i=this.preProcessUrl(i).url;var r=this.currentTime;this.__startTime=r;var o=this.paused&&!this.isError;return this.src=i,new jk((function(e,t){var r=function(e){n.off("timeupdate",a),n.off("canplay",a),t(e)},a=function(){n._seekToStartTime(),o&&n.pause(),n.off("error",r),e(!0)};n.once("error",r),i?(oT.os.isAndroid?n.once("timeupdate",a):n.once("canplay",a),n.play()):n.errorHandler("error",{code:6,message:"empty_src"})}))}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state<fP)return this.removeClass(KS),this.addClass(DS),this.start(),void(this._useAutoplay=!0);this.state<pP&&(this.removeClass(KS),!this.isCanplay&&this.addClass(DS));var t=dC(lC(n.prototype),"play",this).call(this);return void 0!==t&&t&&t.then?t.then((function(){e.removeClass(eP),e.addClass(FS),e.state<pP&&($x.logInfo(">>>>playPromise.then"),e.setState(pP),e.emit(TT))})).catch((function(t){if($x.logWarn(">>>>playPromise.catch",t.name),e.media&&e.media.error)return e.onError(),void e.removeClass(DS);"NotAllowedError"===t.name&&(e._errorTimer=Jx.setTimeout(e,(function(){e._errorTimer=null,e.emit(ST),e.addClass(eP),e.removeClass(DS),e.pause(),e.setState(dP)}),0))})):($x.logWarn("video.play not return promise"),this.state<pP&&(this.setState(pP),this.removeClass(eP),this.removeClass(KS),this.removeClass(DS),this.addClass(FS),this.emit(TT))),t}},{key:"mediaPause",value:function(){dC(lC(n.prototype),"pause",this).call(this)}},{key:"videoPause",value:function(){dC(lC(n.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return this.removeClass(NS),vS(this,"play",(function(){return e.mediaPlay()}))}},{key:"pause",value:function(){var e=this;vS(this,"pause",(function(){dC(lC(n.prototype),"pause",e).call(e)}))}},{key:"seek",value:function(e,t){var n=this;if(this.media&&!hw(Number(e))&&this.hasStart){var i=this.config,r=i.isSeekedPlay,o=i.seekedStatus,a=t||(r?"play":o);e=e<0?0:e>this.duration?Mw(this.duration,10):e,!this._isPauseBeforeSeek&&(this._isPauseBeforeSeek=this.paused?2:1),this._onceSeekCanplay&&this.off(pT,this._onceSeekCanplay),this._onceSeekCanplay=function(){switch(n.removeClass(DS),n.isSeeking=!1,a){case"play":n.play();break;case"pause":n.pause();break;default:n._isPauseBeforeSeek>1||n.paused?n.pause():n.play()}n._isPauseBeforeSeek=0,n._onceSeekCanplay=null},this.once(pT,this._onceSeekCanplay),this.state<pP?(this.removeClass(KS),this.currentTime=e,this.play()):this.currentTime=e}}},{key:"getInitDefinition",value:function(){var e,t=this,n=this.config,i=n.definition;!n.url&&i&&i.list&&i.list.length>0&&i.defaultDefinition&&Hk(e=i.list).call(e,(function(e){e.definition===i.defaultDefinition&&(t.config.url=e.url,t.curDefinition=e)}))}},{key:"changeDefinition",value:function(e,t){var n=this,i=this.config.definition;if(Array.isArray(null==i?void 0:i.list)&&i.list.forEach((function(t){(null==e?void 0:e.definition)===t.definition&&(n.curDefinition=t)})),null!=e&&e.bitrate&&"number"!=typeof e.bitrate&&(e.bitrate=Mw(e.bitrate,10)||0),this.emit(HT,{from:t,to:e}),this.hasStart){var r=this.switchURL(e.url,tC({seamless:!1!==i.seamless&&"undefined"!=typeof MediaSource&&"function"==typeof MediaSource.isTypeSupported},e));r&&r.then?r.then((function(){n.emit(BT,{from:t,to:e})})):this.emit(BT,{from:t,to:e})}else this.config.url=e.url}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(bT,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,t=[eP,FS,KS,NS,BS,DS,US,jS,HS];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,t.forEach((function(t){e.removeClass(t)})),this.addClass(KS),this.emit(XT)}},{key:"reset",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(this.resetState(),this.plugins&&(Hk(t).call(t,(function(t){e.deregister(t)})),n)){var i,r=nP();Bw(i=Kk(this.config)).call(i,(function(t){"undefined"===e.config[t]||"plugins"!==t&&"presets"!==t&&"el"!==t&&"id"!==t||(e.config[t]=r[t])}))}}},{key:"destroy",value:function(){var e,t,i=this,r=this.innerContainer,o=this.root,a=this.media;if(o&&a){if(this.hasStart=!1,this._useAutoplay=!1,o.removeAttribute(oS),a.removeAttribute(oS),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),Jx.clearAllTimers(this),this.emit(RT),null===(t=EP)||void 0===t||t.remove(this),MS.destroy(this),pS(this),dC(lC(n.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),r)for(var s=r.children,l=0;l<s.length;l++)r.removeChild(s[l]);!r&&a instanceof window.Node&&o.contains(a)&&!this.config.remainMediaAfterDestroy&&o.removeChild(a),Hk(e=["topBar","leftBar","rightBar","innerContainer"]).call(e,(function(e){i[e]&&o.removeChild(i[e]),i[e]=null}));var u=o.className.split(" ");u.length>0?o.className=Kw(u).call(u,(function(e){return Bk(e).call(e,"xgplayer")<0})).join(" "):o.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach((function(e){i[e]=!1}))}}},{key:"replay",value:function(){var e=this;this.removeClass(US),this.currentTime=0,this.isSeeking=!1,vS(this,"replay",(function(){e.once(pT,(function(){var t=e.mediaPlay();t&&t.catch&&t.catch((function(e){console.log(e)}))})),e.emit(AT),e.onPlay()}))}},{key:"retry",value:function(){var e=this;this.removeClass(jS),this.addClass(HS),vS(this,"retry",(function(){var t=e.currentTime,n=e.config.url,i=Jx.isMSE(e.media)?{url:n}:e.preProcessUrl(n);e.src=i.url,!e.config.isLive&&(e.currentTime=t),e.once(yT,(function(){e.mediaPlay()}))}))}},{key:"changeFullStyle",value:function(e,t,n,i){e&&(i||(i=XS),this._orgCss||(this._orgCss=Jx.filterStyleFromText(e)),Jx.addClass(e,n),t&&t!==e&&!this._orgPCss&&(this._orgPCss=Jx.filterStyleFromText(t),Jx.addClass(t,i),t.setAttribute(oS,this.playerId)))}},{key:"recoverFullStyle",value:function(e,t,n,i){i||(i=XS),this._orgCss&&(Jx.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),Jx.removeClass(e,n),t&&t!==e&&this._orgPCss&&(Jx.setStyleFromCsstext(t,this._orgPCss),this._orgPCss="",Jx.removeClass(t,i),t.removeAttribute(oS))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget,t=this.root,n=this.media;if("video"!==e&&"media"!==e||(e=this[e]),e||(e=t),this._fullScreenOffset={top:Jx.scrollTop(),left:Jx.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get",Jx.getFullScreenEl()===this._fullscreenEl)return this.onFullscreenChange(),jk.resolve();try{for(var i=0;i<iS.length;i++){var r=iS[i];if(e[r]){var o="webkitRequestFullscreen"===r?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):e[r]();return o&&o.then?o:jk.resolve()}}return n.fullscreenEnabled||n.webkitSupportsFullscreen?(n.webkitEnterFullscreen(),jk.resolve()):jk.reject(new Error("call getFullscreen fail"))}catch(a){return jk.reject(new Error("call getFullscreen fail"))}}},{key:"exitFullscreen",value:function(e){if(this.isRotateFullscreen&&this.exitRotateFullscreen(),this._fullscreenEl||Jx.getFullScreenEl()){this.root;var t=this.media;this._fullActionFrom="exit";try{for(var n=0;n<rS.length;n++){var i=rS[n];if(document[i]){var r=document[i]();return r&&r.then?r:jk.resolve()}}return t&&t.webkitSupportsFullscreen?(t.webkitExitFullScreen(),jk.resolve()):jk.reject(new Error("call exitFullscreen fail"))}catch(o){return jk.reject(new Error("call exitFullscreen fail"))}}}},{key:"getCssFullscreen",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var n=t?Um(e="".concat(qS," ")).call(e,GS):GS;this.changeFullStyle(this.root,t,n);var i=this.config.fullscreen,r=void 0===i?{}:i;(!0===r.useCssFullscreen||"function"==typeof r.useCssFullscreen&&r.useCssFullscreen())&&(this.fullscreen=!0,this.emit(NT,!0)),this._cssfullscreenEl=t,this.cssfullscreen=!0,this.emit(FT,!0)}},{key:"exitCssFullscreen",value:function(){var e,t=this._cssfullscreenEl?Um(e="".concat(qS," ")).call(e,GS):GS;if(this.fullscreen){var n=this.config.fullscreen,i=void 0===n?{}:n;!0===i.useCssFullscreen||"function"==typeof i.useCssFullscreen&&i.useCssFullscreen()?(this.recoverFullStyle(this.root,this._cssfullscreenEl,t),this.fullscreen=!1,this.emit(NT,!1)):this.removeClass(t)}else this.recoverFullStyle(this.root,this._cssfullscreenEl,t);this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(FT,!1)}},{key:"getRotateFullscreen",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.cssfullscreen&&this.exitCssFullscreen(t);var n=t?Um(e="".concat(qS," ")).call(e,WS):WS;this._fullscreenEl=t||this.root,this.changeFullStyle(this.root,t,n,YS),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this._rootStyle=this.root.getAttribute("style"),this.root.style.width="".concat(window.innerHeight,"px"),this.emit(NT,!0)}},{key:"exitRotateFullscreen",value:function(e){var t,n=this._fullscreenEl!==this.root?Um(t="".concat(qS," ")).call(t,WS):WS;this.recoverFullStyle(this.root,this._fullscreenEl,n,YS),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(NT,!1),this._rootStyle&&(this.root.style.style=this._rootStyle,this._rootStyle=!1)}},{key:"setRotateDeg",value:function(e){90===window.orientation||-90===window.orientation?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};this.isActive?this.onFocus(e):this.emit(wT,tC({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{ignorePaused:!1};this.isActive?(this._clearUserTimer(),this.emit(ET,tC({paused:this.paused,ended:this.ended},e))):this.onBlur(e)}},{key:"onFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!0,delay:3e3},n=this.innerStates;if(this.isActive=!0,this.removeClass(zS),this._clearUserTimer(),void 0!==t.isLock&&(n.isActiveLocked=t.isLock),!1===t.autoHide||!0===t.isLock||n.isActiveLocked)this._clearUserTimer();else{var i=t&&t.delay?t.delay:this.config.inactive;this.userTimer=Jx.setTimeout(this,(function(){e.userTimer=null,e.blur()}),i)}}},{key:"onBlur",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ignorePaused,t=void 0!==e&&e;if(!this.innerStates.isActiveLocked){var n=this.config.closePauseVideoFocus;this.isActive=!1,(t||n||!this.paused&&!this.ended)&&this.addClass(zS)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(DS),this.removeClass(jS),this.removeClass(HS),this.isCanplay=!0,this.waitTimer&&Jx.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){var e=this;this.isError=!1,this.isSeeking=!1,this.__startTime>0&&(this.duration>0?this._seekToStartTime():this.once(mT,(function(){e._seekToStartTime()})))}},{key:"onLoadstart",value:function(){this.removeClass(jS),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===vP&&this.setState(pP),this.removeClass(NS),this.ended&&this.removeClass(US),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(NS),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this._clearUserTimer(),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(US),this.setState(vP)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(eP),this.removeClass(KS),this.removeClass(DS),this.removeClass(HS),this.addClass(jS)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(tP)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&Jx.clearTimeout(this,this.waitTimer),this.removeClass(HS),this.removeClass(tP)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&Jx.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=Jx.setTimeout(this,(function(){e.addClass(HS),e.emit(DT),Jx.clearTimeout(e,e.waitTimer),e.waitTimer=null}),this.config.minWaitDelay)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1,[KS,NS,US,jS,BS,HS].forEach((function(t){e.removeClass(t)})),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.media.videoHeight&&this.resize(),(this.waitTimer||this.hasClass(HS))&&this.media.readyState>2&&(this.removeClass(HS),Jx.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.state===dP&&this.duration&&(this.setState(pP),this.emit(TT)),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onVolumechange",value:function(){"Number"===Jx.typeOf(this.config.volume)&&(this.config.volume=this.volume)}},{key:"onRatechange",value:function(){this.config.defaultPlaybackRate=this.playbackRate}},{key:"emitUserAction",value:function(e,t,n){if(this.media&&t&&e){var i="String"===Jx.typeOf(e)?e:e.type||"";n.props&&"Array"!==Jx.typeOf(n.props)&&(n.props=[n.props]),this.emit(YT,tC({eventType:i,action:t,currentTime:this.currentTime,duration:this.duration,ended:this.ended,event:e},n))}}},{key:"updateAcc",value:function(e){if(this._accPlayed.t){var t=(new Date).getTime()-this._accPlayed.t;this._accPlayed.acc+=t,this._accPlayed.t=0,("ended"===e||this.ended)&&(this._accPlayed.loopAcc=this._accPlayed.acc)}}},{key:"checkBuffer",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{startDiff:0,endDiff:0})||{},n=t.startDiff,i=void 0===n?0:n,r=t.endDiff,o=void 0===r?0:r,a=this.media.buffered;if(!a||0===a.length||!this.duration)return!0;for(var s=e||this.media.currentTime||.2,l=a.length,u=0;u<l;u++)if(a.start(u)+i<=s&&a.end(u)-o>s)return!0;return!1}},{key:"resizePosition",value:function(){var e,t=this,n=this.videoPos,i=n.vy,r=n.vx,o=n.h,a=n.w,s=this.videoPos.rotate;if(!(s<0&&o<0&&a<0)){var l=this.videoPos._pi;if(!l&&this.media.videoHeight&&(l=this.media.videoWidth/this.media.videoHeight*100),l){this.videoPos.pi=l;var u={rotate:s=s<0?0:s},c=0,h=0,f=1,d=Math.abs(s/90),p=this.root,v=this.innerContainer,g=p.offsetWidth,y=v?v.offsetHeight:p.offsetHeight,m={},_=y,b=g;if(d%2==0)f=o>0?100/o:a>0?100/a:1,u.scale=f,c=i>0?(100-o)/2-i:0,u.y=2===d?0-c:c,h=r>0?(100-a)/2-r:0,u.x=2===d?0-h:h,m.width="".concat(b,"px"),m.height="".concat(_,"px"),m.maxWidth="",m.maxHeight="";else if(d%2==1){_=g;var k=y-g;h=-k/2/(b=y)*100,u.x=3===d?h+i/2:h-i/2,c=k/2/_*100,u.y=3===d?c+r/2:c-r/2,u.scale=f,m.width="".concat(b,"px"),m.maxWidth="".concat(b,"px"),m.height="".concat(_,"px"),m.maxHeight="".concat(_,"px")}var w=Jx.getTransformStyle(u,this.media.style.transform||this.media.style.webkitTransform);m.transform=w,m.webkitTransform=w,Hk(e=Kk(m)).call(e,(function(e){t.media.style[e]=m[e]}))}}}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{h:0,y:0,x:0,w:0};if(this.media&&e&&e.h){var t=this.videoPos;t.h=100*e.h||0,t.w=100*e.w||0,t.vx=100*e.x||0,t.vy=100*e.y||0,this.resizePosition()}}},{key:"setConfig",value:function(e){var t,n=this;e&&Hk(t=Kk(e)).call(t,(function(t){if("plugins"!==t){n.config[t]=e[t];var i=n.plugins[t.toLowerCase()];i&&"Function"===Jx.typeOf(i.setConfig)&&i.setConfig(e[t])}}))}},{key:"playNext",value:function(e){var t=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,vS(this,"playnext",(function(){t.start(),t.emit(GT,e)}))}},{key:"resize",value:function(){var e=this;if(this.media){var t=this.root.getBoundingClientRect();this.sizeInfo.width=t.width,this.sizeInfo.height=t.height,this.sizeInfo.left=t.left,this.sizeInfo.top=t.top;var n=this.media,i=n.videoWidth,r=n.videoHeight,o=this.config,a=o.fitVideoSize,s=o.videoFillMode;if("fill"!==s&&"cover"!==s&&"contain"!==s||this.setAttribute("data-xgfill",s),r&&i){this._videoHeight=r,this._videoWidth=i;var l=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,u=t.width,c=t.height-l,h=Mw(i/r*1e3,10),f=Mw(u/c*1e3,10),d=u,p=c,v={};"auto"===a&&f>h||"fixWidth"===a?(p=u/h*1e3,this.config.fluid?v.paddingTop="".concat(100*p/d,"%"):v.height="".concat(p+l,"px")):("auto"===a&&f<h||"fixHeight"===a)&&(d=h*c/1e3,v.width="".concat(d,"px")),this.fullscreen||this.cssfullscreen||Kk(v).forEach((function(t){e.root.style[t]=v[t]})),("fillHeight"===s&&f<h||"fillWidth"===s&&f>h)&&this.setAttribute("data-xgfill","cover");var g={videoScale:h,vWidth:d,vHeight:p,cWidth:d,cHeight:p+l};this.resizePosition(),this.emit(zT,g)}}}},{key:"updateObjectPosition",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.media.updateObjectPosition?this.media.updateObjectPosition(t,n):this.media.style.objectPosition=Um(e="".concat(100*t,"% ")).call(e,100*n,"%")}},{key:"setState",value:function(e){var t;$x.logInfo("setState",Um(t="state from:".concat(gP[this.state]," to:")).call(t,gP[e])),this._state=e}},{key:"preProcessUrl",value:function(e,t){var n=this.config,i=n.preProcessUrl,r=n.preProcessUrlOptions,o=iE({},r,t);return Jx.isBlob(e)||"function"!=typeof i?{url:e}:i(e,o)}},{key:"_seekToStartTime",value:function(){this.__startTime>0&&this.duration>0&&(this.currentTime=this.__startTime>this.duration?this.duration:this.__startTime,this.__startTime=-1)}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"==typeof e&&(this._hasStart=e,!1===e&&this.setState(cP),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===pP||this._state===vP},set:function(e){e?this.setState(pP):this._state>=pP&&this.setState(fP)}},{key:"definitionList",get:function(){return this.config&&this.config.definition&&this.config.definition.list||[]},set:function(e){var t=this,n=this.config.definition,i=null,r=null;n.list=e,this.emit("resourceReady",e),e.forEach((function(e){var o;(null===(o=t.curDefinition)||void 0===o?void 0:o.definition)===e.definition&&(i=e),n.defaultDefinition===e.definition&&(r=e)})),!r&&e.length>0&&(r=e[0]),i?this.changeDefinition(i):r&&this.changeDefinition(r)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var t=this.media.getVideoPlaybackQuality();return e.dropped=t.droppedVideoFrames||0,e.total=t.totalVideoFrames||0,e.corrupted=t.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=Mw(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var t,n;0!==Kw(t=lP.langKeys).call(t,(function(t){return t===e})).length||"zh"===e?(this.config.lang=e,MS.setLang(e,this)):console.error(Um(n="Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [")).call(n,lP.langKeys.join(),"] "))}},{key:"i18n",get:function(){var e=this.config.lang;return"zh"===e&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return aT}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return dC(lC(n.prototype),"readyState",this)}},{key:"error",get:function(){var e=dC(lC(n.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return dC(lC(n.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return!(null===this._fullScreenOffset)}},{key:"cumulateTime",get:function(){var e=this._accPlayed,t=e.acc,n=e.t;return n?(new Date).getTime()-n+t:t}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"videoRotateDeg",get:function(){return this.videoPos.rotate},set:function(e){(e=Jx.convertDeg(e))%90==0&&e!==this.videoPos.rotate&&(this.videoPos.rotate=e,this.resizePosition())}},{key:"avgSpeed",get:function(){return wP},set:function(e){wP=e}},{key:"realTimeSpeed",get:function(){return kP},set:function(e){kP=e}},{key:"offsetCurrentTime",get:function(){return this._offsetInfo.currentTime||0},set:function(e){this._offsetInfo.currentTime=e}},{key:"offsetDuration",get:function(){return this._offsetInfo.duration||0},set:function(e){this._offsetInfo.duration=e||0}},{key:"hook",value:function(e,t){var n;return sS.call.apply(sS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){var n;return uS.call.apply(uS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){var n;return cS.call.apply(cS,Um(n=[this]).call(n,zk(Array.prototype).call(arguments)))}},{key:"usePluginHooks",value:function(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return hS.call.apply(hS,Um(i=[this]).call(i,zk(Array.prototype).call(arguments)))}},{key:"removePluginHooks",value:function(e,t,n){for(var i,r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return fS.call.apply(fS,Um(i=[this]).call(i,zk(Array.prototype).call(arguments)))}},{key:"setUserActive",value:function(e,t){var n;"boolean"==typeof t&&t!==this.muted&&(this.addInnerOP("volumechange"),Jx.typeOf(t)===Boolean&&(this.muted=t)),null===(n=EP)||void 0===n||n.setActive(this.playerId,e)}}],[{key:"debugger",get:function(){return $x.config.debug},set:function(e){$x.config.debug=e}},{key:"instManager",get:function(){return EP},set:function(e){EP=e}},{key:"getCurrentUserActivePlayerId",value:function(){var e;return null===(e=EP)||void 0===e?void 0:e.getActiveId()}},{key:"setCurrentUserActive",value:function(e,t){var n;null===(n=EP)||void 0===n||n.setActive(e,t)}},{key:"isHevcSupported",value:function(){return oT.isHevcSupported()}},{key:"probeConfigSupported",value:function(e){return oT.probeConfigSupported(e)}},{key:"install",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]||(n.plugins[e]=t)}},{key:"use",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]=t}}]),n}(eS);aC(CP,"defaultPreset",null),aC(CP,"XgVideoProxy",null),CP.instManager=_P.getInstance();function xP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var TP=EE;An({target:"Function",proto:!0,forced:Function.bind!==TP},{bind:TP});var SP,PP,AP=zc("Function").bind,RP=se,IP=AP,OP=Function.prototype,MP=n((function(e){var t=e.bind;return e===OP||RP(OP,e)&&t===OP.bind?IP:t}));function LP(e,t){var n;return(LP=dh?MP(n=dh).call(n):function(e,t){return e.__proto__=t,e})(e,t)}function DP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Oc(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Rc(e,"prototype",{writable:!1}),t&&LP(e,t)}function NP(e){var t;return(NP=dh?MP(t=Fc).call(t):function(e){return e.__proto__||Fc(e)})(e)}function FP(){if("undefined"==typeof Reflect||!HE)return!1;if(HE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HE(Boolean,[],(function(){}))),!0}catch(e){return!1}}function UP(e){var t=FP();return function(){var n,i=NP(e);if(t){var r=NP(this).constructor;n=HE(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xP(e)}(this,n)}}function HP(e,t,n){var i;FP()?HP=MP(i=HE).call(i):HP=function(e,t,n){var i=[null];hh(i).apply(i,t);var r=new(MP(Function).apply(e,i));return n&&LP(r,n.prototype),r};return HP.apply(null,arguments)}function jP(e){var t="function"==typeof Ok?new Ok:void 0;return jP=function(e){if(null===e||(n=e,-1===Om(i=Function.toString.call(n)).call(i,"[native code]")))return e;var n,i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return HP(e,arguments,NP(this).constructor)}return r.prototype=Oc(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),LP(r,e)},jP(e)}var BP=function(e){return e[e.MANIFEST_HLS_ERROR=1100]="MANIFEST_HLS_ERROR",e[e.MANIFEST_DASH_ERROR=1200]="MANIFEST_DASH_ERROR",e[e.NETWORK=2100]="NETWORK",e[e.NETWORK_TIMEOUT=2101]="NETWORK_TIMEOUT",e[e.NETWORK_FORBIDDEN=2103]="NETWORK_FORBIDDEN",e[e.NETWORK_NOTFOUND=2104]="NETWORK_NOTFOUND",e[e.NETWORK_RANGE_NOT_SATISFIABLE=2116]="NETWORK_RANGE_NOT_SATISFIABLE",e[e.DEMUX_FLV_ERROR=3100]="DEMUX_FLV_ERROR",e[e.DEMUX_HLS_ERROR=3200]="DEMUX_HLS_ERROR",e[e.DEMUX_MP4_ERROR=3300]="DEMUX_MP4_ERROR",e[e.DEMUX_FMP4_ERROR=3400]="DEMUX_FMP4_ERROR",e[e.DEMUX_SIDX_ERROR=3410]="DEMUX_SIDX_ERROR",e[e.REMUX_FMP4_ERROR=4100]="REMUX_FMP4_ERROR",e[e.REMUX_MP4_ERROR=4200]="REMUX_MP4_ERROR",e[e.MEDIA_ERR_ABORTED=5101]="MEDIA_ERR_ABORTED",e[e.MEDIA_ERR_NETWORK=5102]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=5103]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=5104]="MEDIA_ERR_SRC_NOT_SUPPORTED",e[e.MEDIA_ERR_CODEC_NOT_SUPPORTED=5105]="MEDIA_ERR_CODEC_NOT_SUPPORTED",e[e.MEDIA_ERR_URL_EMPTY=5106]="MEDIA_ERR_URL_EMPTY",e[e.MEDIA_MSE_ADD_SB=5200]="MEDIA_MSE_ADD_SB",e[e.MEDIA_MSE_APPEND_BUFFER=5201]="MEDIA_MSE_APPEND_BUFFER",e[e.MEDIA_MSE_OTHER=5202]="MEDIA_MSE_OTHER",e[e.MEDIA_MSE_FULL=5203]="MEDIA_MSE_FULL",e[e.MEDIA_MSE_HIJACK=5204]="MEDIA_MSE_HIJACK",e[e.MEDIA_EME_HIJACK=5301]="MEDIA_EME_HIJACK",e[e.DRM_LICENSE=7100]="DRM_LICENSE",e[e.DRM_UNSUPPORTED=7101]="DRM_UNSUPPORTED",e[e.DRM_NO_MEDIA_KEY=7103]="DRM_NO_MEDIA_KEY",e[e.DRM_NO_KEY_SESSION=7104]="DRM_NO_KEY_SESSION",e[e.DRM_GENERATE_QUEST_FAIL=7105]="DRM_GENERATE_QUEST_FAIL",e[e.DRM_LACK_SERVER_CERTIFICATE_PATH=7106]="DRM_LACK_SERVER_CERTIFICATE_PATH",e[e.DRM_LACK_SERVER_PROCESS_SPC_PATH=7107]="DRM_LACK_SERVER_PROCESS_SPC_PATH",e[e.DRM_LICENSE_FAIL=7108]="DRM_LICENSE_FAIL",e[e.DRM_KEY_ERROR=7109]="DRM_KEY_ERROR",e[e.DRM_CERT_FAIL=7110]="DRM_CERT_FAIL",e[e.DRM_CUSTOM_LICENSE=7200]="DRM_CUSTOM_LICENSE",e[e.OTHER=8e3]="OTHER",e[e.RUNTIME_NO_CANPLAY_ERROR=9001]="RUNTIME_NO_CANPLAY_ERROR",e[e.RUNTIME_BUFFERBREAK_ERROR=9002]="RUNTIME_BUFFERBREAK_ERROR",e[e.RUNTIME_WAITING_TIMEOUT_ERROR=9003]="RUNTIME_WAITING_TIMEOUT_ERROR",e[e.MODULE_LOAD_ERROR=110]="MODULE_LOAD_ERROR",e.UNKNOWN="UNKNOWN",e}(BP||{}),KP=(zy(SP={},2100,{messageTextKey:"NETWORK",level:"Error"}),zy(SP,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),zy(SP,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),zy(SP,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),zy(SP,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),zy(SP,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),zy(SP,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),zy(SP,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),zy(SP,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),zy(SP,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),zy(SP,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),zy(SP,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),zy(SP,7101,{messageTextKey:"DRM_UNSUPPORTED",level:"Fatal"}),zy(SP,7103,{messageTextKey:"DRM_NO_MEDIA_KEY",level:"Fatal"}),zy(SP,7104,{messageTextKey:"DRM_NO_KEY_SESSION",level:"Fatal"}),zy(SP,7105,{messageTextKey:"DRM_GENERATE_QUEST_FAIL",level:"Fatal"}),zy(SP,7106,{messageTextKey:"DRM_LACK_SERVER_CERTIFICATE_PATH",level:"Fatal"}),zy(SP,7107,{messageTextKey:"DRM_LACK_SERVER_PROCESS_SPC_PATH",level:"Fatal"}),zy(SP,7108,{messageTextKey:"DRM_LICENSE_FAIL",level:"Fatal"}),zy(SP,7109,{messageTextKey:"DRM_KEY_ERROR",level:"Fatal"}),zy(SP,7110,{messageTextKey:"DRM_CERT_FAIL",level:"Fatal"}),SP),zP=(zy(PP={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),zy(PP,"network",{messageTextKey:"NETWORK",level:"Error"}),zy(PP,"demux",{messageTextKey:"DEMUX",level:"Error"}),zy(PP,"remux",{messageTextKey:"REMUX",level:"Error"}),zy(PP,"media",{messageTextKey:"MEDIA",level:"Error"}),zy(PP,"drm",{messageTextKey:"DRM",level:"Error"}),zy(PP,"other",{messageTextKey:"OTHER",level:"Error"}),zy(PP,"runtime",{messageTextKey:"RUNTIME",level:"Error"}),PP),VP=function(e){DP(n,e);var t=UP(n);function n(e,i){var r,o,a,s,l,u,c;_m(this,n);var h="string"==typeof e?{message:e}:e,f=null!==(r=null!==(o=null!==(a=null==i?void 0:i.getText(null==h?void 0:h.messageTextKey))&&void 0!==a?a:null==h?void 0:h.message)&&void 0!==o?o:null==h||null===(s=h.error)||void 0===s?void 0:s.message)&&void 0!==r?r:null==i?void 0:i.getText("UNKNOWN");return zy(xP(c=t.call(this,f)),"errorCode",void 0),zy(xP(c),"level",void 0),zy(xP(c),"ext",void 0),c.errorCode=null!==(l=null==h?void 0:h.errorCode)&&void 0!==l?l:"UNKNOWN",c.level=null!==(u=null==h?void 0:h.level)&&void 0!==u?u:"Error",c.ext=null==h?void 0:h.ext,c}return km(n)}(jP(Error));function GP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new VP(Gy(Gy({errorCode:e},KP[e]),t),n)}function WP(e,t){var n,i,r=KP[e.errorCode]||zP[e.errorType],o=e.errorCode;return new VP({messageTextKey:null==r?void 0:r.messageTextKey,message:null!==(n=null==e?void 0:e.message)&&void 0!==n?n:o,errorCode:o,level:null!==(i=null==r?void 0:r.level)&&void 0!==i?i:"Error",ext:e},t)}var YP=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){Jx.addClass(this.root,"hide")}},{key:"show",value:function(e){Jx.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){"string"==typeof e.player.config.poster&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(hT,(function(){e.isEndedShow&&Jx.removeClass(e.root,"hide")})),this.config.hideCanplay?(this.once(vT,(function(){e.onTimeUpdate()})),this.on(IT,(function(){Jx.removeClass(e.root,"hide"),Jx.addClass(e.root,"xg-showplay"),e.once(vT,(function(){e.onTimeUpdate()}))}))):this.on(cT,(function(){Jx.addClass(e.root,"hide")}))}},{key:"setConfig",value:function(e){var t=this;Kk(e).forEach((function(n){t.config[n]=e[n]}));var n=this.config.poster;this.update(n)}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?Jx.removeClass(this.root,"xg-showplay"):this.once(vT,(function(){e.onTimeUpdate()}))}},{key:"update",value:function(e){e&&(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"getBgSize",value:function(e){var t="";switch(e){case"cover":t="cover";break;case"contain":t="contain";break;case"fixHeight":t="auto 100%";break;default:t=""}return t?"background-size: ".concat(t,";"):""}},{key:"render",value:function(){var e,t,n=this.config,i=n.poster,r=n.hideCanplay,o=n.fillMode,a=n.notHidden,s=this.getBgSize(o),l=i?Um(e="background-image:url(".concat(i,");")).call(e,s):s;return Um(t='<xg-poster class="xgplayer-poster '.concat(a?"xg-not-hidden":r?"xg-showplay":"",'" style="')).call(t,l,'">\n </xg-poster>')}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,notHidden:!1,poster:"",fillMode:"fixWidth"}}}]),n}(RS);function XP(){return(new DOMParser).parseFromString('<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n',"image/svg+xml").firstChild}function qP(){return(new DOMParser).parseFromString('<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n',"image/svg+xml").firstChild}var $P={};function ZP(e){var t;e?window.clearTimeout(e):Hk(t=Kk($P)).call(t,(function(e){window.clearTimeout($P[e].id),delete $P[e]}))}var JP=function(e){sC(n,e);var t=fC(n);function n(e){var i;return iC(this,n),aC(cC(i=t.call(this,e)),"onPlayerReset",(function(){i.autoPlayStart=!1;var e="auto"===i.config.mode?"auto-hide":"hide";i.setAttr("data-state","play"),Jx.removeClass(i.root,e),i.show()})),aC(cC(i),"onAutoplayStart",(function(){if(!i.autoPlayStart){var e="auto"===i.config.mode?"auto-hide":"hide";Jx.addClass(i.root,e),i.autoPlayStart=!0,i.toggleTo("play")}})),i.autoPlayStart=!1,i}return oC(n,[{key:"afterCreate",value:function(){var e=this.playerConfig;this.initIcons(),this.listenEvents(),this.bindClickEvents(),e.autoplay||this.show()}},{key:"listenEvents",value:function(){var e=this,t=this.player,n=this.playerConfig;this.once(CT,(function(){n&&(n.lang&&"en"===n.lang?Jx.addClass(t.root,"lang-is-en"):"jp"===n.lang&&Jx.addClass(t.root,"lang-is-jp"))})),this.on(TT,this.onAutoplayStart),this.on(ST,(function(){var t="auto"===e.config.mode?"auto-hide":"hide";e.setAttr("data-state","play"),Jx.removeClass(e.root,t),e.show()})),this.on(cT,(function(){e.toggleTo("play")})),this.on(fT,(function(){e.toggleTo("pause")})),this.on(XT,(function(){e.onPlayerReset()}))}},{key:"bindClickEvents",value:function(){var e=this;this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(t){t.cancelable&&t.preventDefault(),t.stopPropagation();var n=e.player.paused;e.emitUserAction(t,"switch_play_pause",{props:"paused",from:n,to:!n})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:XP,class:"xg-icon-play"},startPause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){Jx.addClass(this.root,"hide")}},{key:"show",value:function(e){Jx.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){Jx.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){Jx.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var t=this;this._animateId=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:null,end:null};return $P[e]&&window.clearTimeout($P[e].id),$P[e]={},n.start&&n.start(),$P[e].id=window.setTimeout((function(){n.end&&n.end(),window.clearTimeout($P[e].id),delete $P[e]}),t),$P[e].id}("pauseplay",400,{start:function(){Jx.addClass(t.root,"interact"),t.show(),t.switchStatus(!0)},end:function(){Jx.removeClass(t.root,"interact"),!e&&t.hide(),t._animateId=null}})}},{key:"endAnimate",value:function(){Jx.removeClass(this.root,"interact"),ZP(this._animateId),this._animateId=null}},{key:"switchPausePlay",value:function(e){var t=this.player;(e.cancelable&&e.preventDefault(),e.stopPropagation(),t.state<cP)||(this.player.paused||t.state!==pP?t.play():t.pause())}},{key:"onPlayPause",value:function(e){this.toggleTo(e)}},{key:"toggleTo",value:function(e){var t=this.config,n=this.player;if(n&&!(n.state<pP)&&this.autoPlayStart){if("show"===t.mode)return this.switchStatus(),void this.show();if("auto"!==t.mode){if(t.isShowPause&&n.paused&&!n.ended||t.isShowEnd&&n.ended)return this.switchStatus(),this.show(),void this.endAnimate();if(t.disableAnimate)return this.switchStatus(),void this.hide();if("play"===e)this.autoPlayStart?this.animate():this.hide();else{if(!this.autoPlayStart||n.ended)return;this.animate()}}else this.switchStatus()}}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.clickHandler),ZP(this._animateId)}},{key:"render",value:function(){var e=this.playerConfig.autoplay?"auto"===this.config.mode?"auto-hide":"hide":"";return'\n <xg-start class="xgplayer-start '.concat(e,'">\n <xg-start-inner></xg-start-inner>\n </xg-start>')}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),n}(RS),QP=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"render",value:function(){var e=this.config.innerHtml,t=Jx.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)t.appendChild(e);else if(e&&"string"==typeof e)t.innerHTML=e;else{for(var n="",i=1;i<=12;i++)n+='<div class="xgplayer-enter-bar'.concat(i,'"></div>');t.innerHTML='<div class="xgplayer-enter-spinner">'.concat(n,"</div>")}return t}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),n}(RS);function eA(e,t,n){try{var i,r;return Um(i=Um(r=' <div class="xg-tips '.concat(n?"hide":" ",'" lang-key="')).call(r,e.i18nKeys[t],'">\n ')).call(i,e.i18n[t],"\n </div>")}catch(o){return'<div class="xg-tips hide"></div>'}}var tA=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e,t="MINISCREEN";return Um(e='\n <xg-icon class="xgplayer-miniicon">\n <div class="xgplayer-icon btn-text"><span class="icon-text" lang-key="'.concat(this.i18nKeys[t],'">')).call(e,this.i18n[t],"</span></div>\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:10}}}]),n}(RS);function nA(e){var t=ZC(e);return-1===Bk(e).call(e,"%")&&!hw(t)&&t}var iA=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],rA=iA.length;function oA(e){if("string"==typeof e&&(e=document.querySelector(e)),e&&"object"===nC(e)&&e.nodeType){var t=function(e){return window.getComputedStyle(e)}(e);if("none"===t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<rA;t++)e[iA[t]]=0;return e}();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"===t.boxSizing,r=0;r<rA;r++){var o=iA[r],a=t[o],s=ZC(a);n[o]=hw(s)?0:s}var l=n.paddingLeft+n.paddingRight,u=n.paddingTop+n.paddingBottom,c=n.marginLeft+n.marginRight,h=n.marginTop+n.marginBottom,f=n.borderLeftWidth+n.borderRightWidth,d=n.borderTopWidth+n.borderBottomWidth,p=i,v=nA(t.width);!1!==v&&(n.width=v+(p?0:l+f));var g=nA(t.height);return!1!==g&&(n.height=g+(p?0:u+d)),n.innerWidth=n.width-(l+f),n.innerHeight=n.height-(u+d),n.outerWidth=n.width+c,n.outerHeight=n.height+h,n}}function aA(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.identifier===t)return i}}var sA="dragStart",lA="dragMove",uA="dragEnded",cA={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]},hA=function(e){sC(n,e);var t=fC(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return iC(this,n),(i=t.call(this)).isEnabled=!0,i.isDragging=!1,i.isDown=!1,i.position={},i.downPoint={},i.dragPoint={x:0,y:0},i.startPos={x:0,y:0},i._root=e instanceof Element?e:document.querySelector(e),i._handlerDom=r.handle instanceof Element?r.handle:document.querySelector(r.handle),i._root&&i._handlerDom?(i._bindStartEvent(),i):hC(i)}return oC(n,[{key:"_bindStartEvent",value:function(){var e,t=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),Hk(e=cA[this._startKey]).call(e,(function(e){t["on".concat(e)]=t["on".concat(e)].bind(t)}))}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var t=this;if(e){var n=cA[this._startKey];Hk(n).call(n,(function(e){window.addEventListener(e,t["on".concat(e)])})),this._boundPointerEvents=n}}},{key:"_unbindPostStartEvents",value:function(){var e,t=this;this._boundPointerEvents&&(Hk(e=this._boundPointerEvents).call(e,(function(e){window.removeEventListener(e,t["on".concat(e)])})),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;this.isDragging&&(this.positionDrag(),window.requestAnimationFrame((function(){e.animate()})))}},{key:"positionDrag",value:function(){var e,t=Um(e="translate3d(".concat(this.dragPoint.x,"px, ")).call(e,this.dragPoint.y,"px, 0)");this._root.style.transform=t,this._root.style.webKitTransform=t}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var t=e.changedTouches[0];this.dragStart(e,t),this.touchIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragMove(e,t)}},{key:"ontouchend",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragEnd(e,t),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var t=aA(e.changedTouches,this.touchIdentifier);t&&this.dragCancel(e,t)}},{key:"dragStart",value:function(e,t){if(this._root&&!this.isDown&&this.isEnabled){this.downPoint=t,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var n=oA(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-n.height,this.startPos.maxX=window.innerWidth-n.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,t){this.isDragging=!0,this.animate(),this.emit(sA,this.startPos)}},{key:"dragEnd",value:function(e,t){this._root&&(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(uA)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,t){var n={x:t.pageX-this.downPoint.pageX,y:t.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this.dragRealStart(e,t),n}},{key:"dragMove",value:function(e,t){if(e=e||window.event,this.isDown){var n=this.startPos,i=n.x,r=n.y,o=this._dragPointerMove(e,t),a=o.x,s=o.y;a=this.checkContain("x",a,i),s=this.checkContain("y",s,r),this.position.x=i+a,this.position.y=r+s,this.dragPoint.x=a,this.dragPoint.y=s,this.emit(lA,this.position)}}},{key:"dragCancel",value:function(e,t){this.dragEnd(e,t)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,t,n){return t+n<0?0-n:"x"===e&&t+n>this.startPos.maxX?this.startPos.maxX-n:"y"===e&&t+n>this.startPos.maxY?this.startPos.maxY-n:t}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=hw(t)?0:t,this.position.y=hw(n)?0:n,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var t=e.transform;if(0===Bk(t).call(t,"matrix")){var n=t.split(","),i=0===Bk(t).call(t,"matrix3d")?12:4,r=Mw(n[i],10),o=Mw(n[i+1],10);this.position.x+=r,this.position.y+=o}}},{key:"_getPositionCoord",value:function(e,t){if(-1!==Bk(e).call(e,"%")){var n=oA(this._root.parentNode);return n?ZC(e)/100*n[t]:0}return Mw(e,10)}}]),n}(_C),fA=function(e){sC(n,e);var t=fC(n);function n(e){var i;iC(this,n),aC(cC(i=t.call(this,e)),"onCancelClick",(function(e){i.exitMini(),i.isClose=!0})),aC(cC(i),"onCenterClick",(function(e){var t=cC(i).player;t.paused?t.play():t.pause()})),aC(cC(i),"onScroll",(function(e){if(!(!window.scrollY&&0!==window.scrollY||Math.abs(window.scrollY-i.pos.scrollY)<50)){var t=Mw(Jx.getCss(i.player.root,"height"));t+=i.config.scrollTop,i.pos.scrollY=window.scrollY,window.scrollY>t+5?!i.isMini&&!i.isClose&&i.getMini():window.scrollY<=t&&(i.isMini&&i.exitMini(),i.isClose=!1)}})),i.isMini=!1,i.isClose=!1;var r=cC(i).config;return i.pos={left:r.left<0?window.innerWidth-r.width-20:r.left,top:r.top<0?window.innerHeight-r.height-20:r.top,height:i.config.height,width:i.config.width,scrollY:window.scrollY||0},i.lastStyle=null,i}return oC(n,[{key:"beforeCreate",value:function(e){"boolean"==typeof e.player.config.mini&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(fT,(function(){e.setAttr("data-state","pause")})),this.on(cT,(function(){e.setAttr("data-state","play")}))}},{key:"onPluginsReady",value:function(){var e=this,t=this.player;if(!this.config.disable){if(this.config.isShowIcon){var n={config:{onClick:function(){e.getMini()}}};t.controls.registerPlugin(tA,n,tA.pluginName)}var i=Jx.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",i,this.onCancelClick),this.bind(".play-icon",i,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new hA(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:XP,class:"xg-icon-play"},pause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e,t=this;if(!this.isMini){var n=this.player,i=this.playerConfig,r=this.config.target||this.player.root;this.lastStyle={},Jx.addClass(n.root,"xgplayer-mini"),Hk(e=["width","height","top","left"]).call(e,(function(e){t.lastStyle[e]=r.style[e],r.style[e]="".concat(t.pos[e],"px")})),i.fluid&&(r.style["padding-top"]=""),this.emit(UT,!0),n.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var t,n=this.player,i=this.playerConfig,r=this.config.target||this.player.root;(Jx.removeClass(n.root,"xgplayer-mini"),this.lastStyle)&&Hk(t=Kk(this.lastStyle)).call(t,(function(t){r.style[t]=e.lastStyle[t]}));this.lastStyle=null,i.fluid&&(n.root.style.width="100%",n.root.style.height="0",n.root.style["padding-top"]="".concat(100*i.height/i.width,"%")),this.emit(UT,!1),this.isMini=n.isMini=!1}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=Jx.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return'\n <xg-mini-layer class="xg-mini-layer">\n <xg-mini-header class="xgplayer-mini-header">\n '.concat(eA(this,"MINI_DRAG",this.playerConfig.isHideTips),'\n </xg-mini-header>\n <div class="mini-cancel-btn">\n <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n <path fill="#fff" fill-rule="evenodd" d="M3.99 3.49a1 1 0 0 1 1.414 0L10 8.085l4.596-4.595a1 1 0 1 1 1.414 1.414L11.414 9.5l4.596 4.596a1 1 0 0 1 .084 1.32l-.084.094a1 1 0 0 1-1.414 0L10 10.914 5.404 15.51a1 1 0 0 1-1.414-1.414L8.585 9.5 3.99 4.904a1 1 0 0 1-.084-1.32z"></path>\n </svg>\n </div>\n <div class="play-icon">\n </div>\n </xg-mini-layer>')}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),n}(RS),dA={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},pA=["videoClick","videoDbClick"],vA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onMouseMove",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;n.isActive||(n.focus({autoHide:!r.closeDelayBlur}),!r.closeFocusVideoFocus&&n.media.focus())})),aC(cC(i),"onMouseEnter",(function(e){var t=cC(i),n=t.playerConfig,r=t.player;!n.closeFocusVideoFocus&&r.media.focus(),n.closeDelayBlur?r.focus({autoHide:!1}):r.focus(),i.emit(LT)})),aC(cC(i),"onMouseLeave",(function(e){var t=i.playerConfig,n=t.closePlayerBlur,r=t.leavePlayerTime,o=t.closeDelayBlur;n||o||(r?i.player.focus({autoHide:!0,delay:r}):i.player.blur({ignorePaused:!0})),i.emit(MT)})),aC(cC(i),"onVideoClick",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;e.target&&r.closeVideoClick||e.target!==n.root&&e.target!==n.media&&e.target!==n.innerContainer&&e.target!==n.media.__canvas||(e.preventDefault(),r.closeVideoStopPropagation||e.stopPropagation(),i._clickCount++,i.clickTimer&&(clearTimeout(i.clickTimer),i.clickTimer=null),i.clickTimer=setTimeout((function(){i._clickCount&&(i._clickCount--,vS(cC(i),pA[0],(function(e,t){i.switchPlayPause(t.e)}),{e:e,paused:n.paused}),clearTimeout(i.clickTimer),i.clickTimer=null)}),300))})),aC(cC(i),"onVideoDblClick",(function(e){var t=cC(i),n=t.player,r=t.playerConfig;r.closeVideoDblclick||!e.target||e.target!==n.media&&e.target!==n.media.__canvas||(!r.closeVideoClick&&i._clickCount<2?i._clickCount=0:(i._clickCount=0,i.clickTimer&&(clearTimeout(i.clickTimer),i.clickTimer=null),e.preventDefault(),e.stopPropagation(),vS(cC(i),pA[1],(function(e,t){i.emitUserAction(t.e,"switch_fullscreen",{props:"fullscreen",from:n.fullscreen,to:!n.fullscreen}),n.fullscreen?n.exitFullscreen():n.getFullscreen()}),{e:e,fullscreen:n.fullscreen})))})),i}return oC(n,[{key:"afterCreate",value:function(){var e=this;this._clickCount=0,Hk(pA).call(pA,(function(t){e.__hooks[t]=null})),"mobile"===this.playerConfig.isMobileSimulateMode||"mobile"===oT.device&&!oT.os.isIpad||this.initEvents()}},{key:"initEvents",value:function(){var e,t=this,n=this.player,i=n.media,r=n.root,o=this.playerConfig.enableContextmenu;r&&r.addEventListener("click",this.onVideoClick,!1),r&&r.addEventListener("dblclick",this.onVideoDblClick,!1),Hk(e=Kk(dA)).call(e,(function(e){r.addEventListener(e,t[dA[e]],!1)})),!o&&i&&i.addEventListener("contextmenu",this.onContextmenu,!1)}},{key:"switchPlayPause",value:function(e){var t=this.player;this.emitUserAction(e,"switch_play_pause",{props:"paused",from:t.paused,to:!t.paused}),t.ended?t.duration!==1/0&&t.duration>0&&t.replay():t.paused?t.play():t.pause()}},{key:"onContextmenu",value:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e,t=this,n=this.player,i=n.video,r=n.root;this.clickTimer&&clearTimeout(this.clickTimer),r.removeEventListener("click",this.onVideoClick,!1),r.removeEventListener("dblclick",this.onVideoDblClick,!1),i.removeEventListener("contextmenu",this.onContextmenu,!1),Hk(e=Kk(dA)).call(e,(function(e){r.removeEventListener(e,t[dA[e]],!1)}))}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),n}(yS),gA="press",yA="pressend",mA="doubleclick",_A="click",bA="touchmove",kA="touchstart",wA="touchend",EA={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},CA={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function xA(e){return e&&e.length>0?e[e.length-1]:null}var TA=function(){function e(t){var n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{eventType:"touch"};iC(this,e),aC(this,"onTouchStart",(function(e){var t=i._pos,n=i.root,r=xA(e.touches);t.x=r?Mw(r.pageX,10):e.pageX,t.y=r?Mw(r.pageX,10):e.pageX,t.start=!0,i.__setPress(e),n.addEventListener(i.events.end,i.onTouchEnd),n.addEventListener(i.events.cancel,i.onTouchCancel),n.addEventListener(i.events.move,i.onTouchMove),i.trigger(kA,e)})),aC(this,"onTouchCancel",(function(e){i.onTouchEnd(e)})),aC(this,"onTouchEnd",(function(e){var t=i._pos,n=i.root;i.__clearPress(),n.removeEventListener(i.events.cancel,i.onTouchCancel),n.removeEventListener(i.events.end,i.onTouchEnd),n.removeEventListener(i.events.move,i.onTouchMove),e.moving=t.moving,e.press=t.press,t.press&&i.trigger(yA,e),i.trigger(wA,e),!t.press&&!t.moving&&i.__setDb(e),t.press=!1,t.start=!1,t.moving=!1})),aC(this,"onTouchMove",(function(e){var t=i._pos,n=i.config,r=xA(e.touches),o=r?Mw(r.pageX,10):e.pageX,a=r?Mw(r.pageY,10):e.pageX,s=o-t.x,l=a-t.y;Math.abs(l)<n.miniStep&&Math.abs(s)<n.miniStep||(i.__clearPress(),t.press&&i.trigger(yA,e),t.press=!1,t.moving=!0,i.trigger(bA,e))})),this._pos={moving:!1,start:!1,x:0,y:0},this.config={pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0},Hk(n=Kk(r)).call(n,(function(e){i.config[e]=r[e]})),this.root=t,this.events="mouse"===r.eventType?CA:EA,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return oC(e,[{key:"_initEvent",value:function(){this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(e){var t=this,n=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout((function(){t.trigger(gA,e),t._pos.press=!0,t.__clearPress()}),n.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(e){var t=this,n=this.config;if(this.dbIntrvalId)return this.__clearDb(),void this.trigger(mA,e);this.dbIntrvalId=setTimeout((function(){t.__clearDb(),t._pos.start||t._pos.press||t._pos.moving||t.trigger(_A,e)}),n.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(e,t){this.__handlers[e]||(this.__handlers[e]=[]),this.__handlers[e].push(t)}},{key:"off",value:function(e,t){if(this.__handlers[e]){for(var n,i=this.__handlers[e],r=-1,o=0;o<i.length;o++)if(i[o]===t){r=o;break}if(r>=0)cw(n=this.__handlers[e]).call(n,r,1)}}},{key:"trigger",value:function(e,t){var n;this.__handlers[e]&&Hk(n=this.__handlers[e]).call(n,(function(n){try{n(t)}catch(lU){console.error("trigger>>:".concat(e),lU)}}))}},{key:"destroy",value:function(){var e=this,t={touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};Kk(t).forEach((function(n){e.root.removeEventListener(n,e[t[n]])}))}}]),e}();function SA(){return(new DOMParser).parseFromString('<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <path opacity="0.54"\n d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z"\n fill="white" />\n <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>\n</svg>',"image/svg+xml").firstChild}var PA="auto",AA="seeking",RA="playbackrate",IA=["videoClick","videoDbClick"],OA=function(e){sC(n,e);var t=fC(n);function n(e){var i;return iC(this,n),aC(cC(i=t.call(this,e)),"onTouchStart",(function(e){var t=cC(i),n=t.player,r=t.config,o=t.pos,a=t.playerConfig,s=i.getTouche(e);if(s&&!r.disableGesture&&i.duration>0&&!n.ended){o.isStart=!0,i.timer&&clearTimeout(i.timer),Jx.checkIsFunction(a.disableSwipeHandler)&&a.disableSwipeHandler(),Ym(i).call(i,".xg-dur").innerHTML=Jx.format(i.duration);var l=i.root.getBoundingClientRect();90===n.rotateDeg?(o.top=l.left,o.left=l.top,o.width=l.height,o.height=l.width):(o.top=l.top,o.left=l.left,o.width=l.width,o.height=l.height);var u=Mw(s.pageX-o.left,10),c=Mw(s.pageY-o.top,10);o.x=90===n.rotateDeg?c:u,o.y=90===n.rotateDeg?u:c,o.scopeL=r.scopeL*o.width,o.scopeR=(1-r.scopeR)*o.width,o.scopeM1=o.width*(1-r.scopeM)/2,o.scopeM2=o.width-o.scopeM1}})),aC(cC(i),"onTouchMove",(function(e){var t=i.getTouche(e),n=cC(i),r=n.pos,o=n.config,a=n.player;if(t&&!o.disableGesture&&i.duration&&r.isStart){var s=o.miniMoveStep,l=o.hideControlsActive,u=Mw(t.pageX-r.left,10),c=Mw(t.pageY-r.top,10),h=90===a.rotateDeg?c:u,f=90===a.rotateDeg?u:c;if(Math.abs(h-r.x)>s||Math.abs(f-r.y)>s){var d=h-r.x,p=f-r.y,v=r.scope;if(-1===v&&(0===(v=i.checkScope(h,f,d,p,r))&&(l?a.blur():a.focus({autoHide:!1}),!r.time&&(r.time=Mw(1e3*a.currentTime,10)+1e3*i.timeOffset)),r.scope=v),-1===v||v>0&&!o.gestureY||0===v&&!o.gestureX)return;i.executeMove(d,p,v,r.width,r.height),r.x=h,r.y=f}}})),aC(cC(i),"onTouchEnd",(function(e){var t=cC(i),n=t.player,r=t.pos,o=t.playerConfig;if(setTimeout((function(){n.getPlugin("progress")&&n.getPlugin("progress").resetSeekState()}),10),r.isStart){r.scope>-1&&e.cancelable&&e.preventDefault();var a=i.config,s=a.disableGesture,l=a.gestureX;!s&&l?i.endLastMove(r.scope):r.time=0,r.scope=-1,i.resetPos(),Jx.checkIsFunction(o.enableSwipeHandler)&&o.enableSwipeHandler(),i.changeAction(PA)}})),aC(cC(i),"onRootTouchMove",(function(e){!i.config.disableGesture&&i.config.gestureX&&i.checkIsRootTarget(e)&&(e.stopPropagation(),i.pos.isStart?i.onTouchMove(e):i.onTouchStart(e))})),aC(cC(i),"onRootTouchEnd",(function(e){i.pos.scope>-1&&i.onTouchEnd(e)})),i.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},i.timer=null,i}return oC(n,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:SA,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e,t=this;Hk(IA).call(IA,(function(e){t.__hooks[e]=null}));var n=this.playerConfig,i=this.config,r=this.player;!0===n.closeVideoDblclick&&(i.closedbClick=!0),this.resetPos(),Jx.isUndefined(n.disableGesture)||(i.disableGesture=!!n.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=Jx.createDom("xg-mask","",{},"xgmask"),r.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var o="mouse"===this.domEventType?"mouse":"touch";this.touch=new TA(this.root,{eventType:o,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",(function(e){e.preventDefault()})),r.root.addEventListener("touchmove",this.onRootTouchMove,!0),r.root.addEventListener("touchend",this.onRootTouchEnd,!0),r.root.addEventListener("touchcancel",this.onRootTouchEnd,!0);var a=this.player.controls;a&&a.center&&(a.center.addEventListener("touchmove",this.onRootTouchMove,!0),a.center.addEventListener("touchend",this.onRootTouchEnd,!0),a.center.addEventListener("touchcancel",this.onRootTouchEnd,!0)),this.on(mT,(function(){var e=t.player,n=t.config;e.duration>0&&1e3*e.duration<n.moveDuration&&(n.moveDuration=1e3*e.duration)})),this.on([yT,hT],(function(){var e=t.pos,n=e.time;!e.isStart&&n>0&&(t.pos.time=0)}));var s={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Hk(e=Kk(s)).call(e,(function(e){t.touch.on(e,(function(n){t[s[e]](n)}))})),!i.disableActive){var l=r.plugins.progress;l&&(l.addCallBack("dragmove",(function(e){t.activeSeekNote(e.currentTime,e.forward)})),["dragend","click"].forEach((function(e){l.addCallBack(e,(function(){t.changeAction(PA)}))})))}}},{key:"registerThumbnail",value:function(){var e=this.player.plugins.thumbnail;if(e&&e.usable){this.thumbnail=e.createThumbnail(null,"mobile-thumbnail");var t=Ym(this).call(this,".time-preview");t.insertBefore(this.thumbnail,t.children[0])}}},{key:"initCustomStyle",value:function(){var e=(this.playerConfig||{}).commonStyle,t=e.playedColor,n=e.progressColor,i=e.timePreviewStyle,r=e.curTimeColor,o=e.durationColor;t&&(Ym(this).call(this,".xg-curbar").style.backgroundColor=t);n&&(Ym(this).call(this,".xg-bar").style.backgroundColor=n);if(i){var a=Ym(this).call(this,".time-preview");Kk(i).forEach((function(e){a.style[e]=i[e]}))}var s=r||t,l=o;s&&(Ym(this).call(this,".xg-cur").style.color=s),l&&(Ym(this).call(this,".xg-dur").style.color=l),this.config.disableTimeProgress&&Jx.addClass(Ym(this).call(this,".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e,t=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,Hk(e=["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"]).call(e,(function(e){t.pos[e]=0}))):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var t=this.player;this.root.setAttribute("data-xg-action",e);var n=t.plugins.start;n&&n.recover()}},{key:"getTouche",value:function(e){this.player.rotateDeg;var t=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return{pageX:t.pageX,pageY:t.pageY}}},{key:"checkScope",value:function(e,t,n,i,r){var o=r.width,a=-1;if(e<0||e>o)return a;var s=0===i?Math.abs(n):Math.abs(n/i);return Math.abs(n)>0&&s>=1.73&&e>r.scopeM1&&e<r.scopeM2?a=0:(0===Math.abs(n)||s<=.57)&&(a=e<r.scopeL?1:e>r.scopeR?2:3),a}},{key:"executeMove",value:function(e,t,n,i,r){switch(n){case 0:this.updateTime(e/i*this.config.scopeM);break;case 1:this.updateBrightness(t/r);break;case 2:oT.os.isIos||this.updateVolume(t/r)}}},{key:"endLastMove",value:function(e){var t=this,n=this.pos,i=this.player,r=this.config,o=(n.time-this.timeOffset)/1e3;if(0===e)i.seek(Number(o).toFixed(1)),r.hideControlsEnd?i.blur():i.focus(),this.timer=setTimeout((function(){t.pos.time=0}),500);this.changeAction(PA)}},{key:"checkIsRootTarget",value:function(e){var t=this.player.plugins||{};return(!t.progress||!t.progress.root.contains(e.target))&&(t.start&&t.start.root.contains(e.target)||t.controls&&t.controls.root.contains(e.target))}},{key:"sendUseAction",value:function(e){var t=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:t,to:!t})}},{key:"clickHandler",value:function(e){var t=this.player,n=this.config,i=this.playerConfig;t.state<pP?i.closeVideoClick||(this.sendUseAction(Jx.createEvent("click")),t.play()):!n.closedbClick||i.closeVideoClick?t.isActive?t.blur():t.focus():i.closeVideoClick||((t.isActive||n.focusVideoClick)&&(this.sendUseAction(Jx.createEvent("click")),this.switchPlayPause()),t.focus())}},{key:"dbClickHandler",value:function(e){var t=this.config,n=this.player;!t.closedbClick&&n.state>=pP&&(this.sendUseAction(Jx.createEvent("dblclick")),this.switchPlayPause())}},{key:"onClick",value:function(e){var t=this,n=this.player;vS(this,IA[0],(function(e,n){t.clickHandler(n.e)}),{e:e,paused:n.paused})}},{key:"onDbClick",value:function(e){var t=this,n=this.player;vS(this,IA[1],(function(e,n){t.dbClickHandler(n.e)}),{e:e,paused:n.paused})}},{key:"onPress",value:function(e){var t=this.pos,n=this.config,i=this.player;n.disablePress||(t.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:i.playbackRate,to:n.pressRate}),i.playbackRate=n.pressRate,this.changeAction(RA))}},{key:"onPressEnd",value:function(e){var t=this.pos,n=this.config,i=this.player;n.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:i.playbackRate,to:t.rate}),i.playbackRate=t.rate,t.rate=1,this.changeAction(PA))}},{key:"updateTime",value:function(e){var t=this.player,n=this.config,i=this.player.duration;e=Number(e.toFixed(4));var r=Mw(e*n.moveDuration,10)+this.timeOffset;r=(r+=this.pos.time)<0?0:r>1e3*i?1e3*i-200:r,t.getPlugin("time")&&t.getPlugin("time").updateTime(r/1e3),t.getPlugin("progress")&&t.getPlugin("progress").updatePercent(r/1e3/this.duration,!0),this.activeSeekNote(r/1e3,e>0),n.isTouchingSeek&&t.seek(Number((r-this.timeOffset)/1e3).toFixed(1)),this.pos.time=r}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var t=this.player,n=this.pos;if(e=Mw(100*e,10),n.volume+=e,!(Math.abs(n.volume)<10)){var i=Mw(10*t.volume,10)-Mw(n.volume/10,10);i=i>10?10:i<1?0:i,t.volume=i/10,n.volume=0}}},{key:"updateBrightness",value:function(e){var t=this.pos,n=this.config,i=this.xgMask;if(n.darkness){this.player.rotateDeg&&(e=-e);var r=t.light+.8*e;r=r>n.maxDarkness?n.maxDarkness:r<0?0:r,i&&(i.style.backgroundColor="rgba(0,0,0,".concat(r,")")),t.light=r}}},{key:"activeSeekNote",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.player,i=this.config,r=!(this.duration!==1/0&&this.duration>0);if(e&&"number"==typeof e&&!r&&!i.disableActive){e<0?e=0:e>n.duration&&(e=n.duration-.2),this.changeAction(AA);var o=n.plugins.start;if(o&&o.focusHide(),Ym(this).call(this,".xg-dur").innerHTML=Jx.format(this.duration),Ym(this).call(this,".xg-cur").innerHTML=Jx.format(e),Ym(this).call(this,".xg-curbar").style.width="".concat(e/this.duration*100,"%"),t)Jx.removeClass(Ym(this).call(this,".xg-seek-show"),"xg-back");else Jx.addClass(Ym(this).call(this,".xg-seek-show"),"xg-back");this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var t=this.player.plugins.thumbnail;t&&t.usable&&this.thumbnail&&t.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state<fP)return!1;e.ended||(e.paused?e.play():e.pause())}},{key:"disableGesture",value:function(){this.config.disableGesture=!0}},{key:"enableGesture",value:function(){this.config.disableGesture=!1}},{key:"destroy",value:function(){var e=this.player;this.timer&&clearTimeout(this.timer),this.thumbnail=null,e.root.removeChild(this.xgMask),this.xgMask=null,this.touch&&this.touch.destroy(),this.touch=null,e.root.removeEventListener("touchmove",this.onRootTouchMove,!0),e.root.removeEventListener("touchend",this.onRootTouchEnd,!0),e.root.removeEventListener("touchcancel",this.onRootTouchEnd,!0);var t=this.player.controls;t&&t.center&&(t.center.removeEventListener("touchmove",this.onRootTouchMove,!0),t.center.removeEventListener("touchend",this.onRootTouchEnd,!0),t.center.removeEventListener("touchcancel",this.onRootTouchEnd,!0))}},{key:"render",value:function(){var e,t,n,i="normal"!==this.config.gradient?"gradient ".concat(this.config.gradient):"gradient";return Um(e=Um(t=Um(n='\n <xg-trigger class="trigger">\n <div class="'.concat(i,'"></div>\n <div class="time-preview">\n <div class="xg-seek-show ')).call(n,this.config.disableSeekIcon?" hide-seek-icon":"",'">\n <i class="xg-seek-icon"></i>\n <span class="xg-cur">00:00</span>\n <span class="xg-separator">/</span>\n <span class="xg-dur">00:00</span>\n </div>\n <div class="xg-bar xg-timebar">\n <div class="xg-curbar"></div>\n </div>\n </div>\n <div class="xg-playbackrate xg-top-note">\n <span><i>')).call(t,this.config.pressRate,"X</i>")).call(e,this.i18n.FORWARD,"</span>\n </div>\n </xg-trigger>\n ")}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:36e4,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),n}(RS);An({target:"String",proto:!0},{repeat:CC});var MA=zc("String").repeat,LA=se,DA=MA,NA=String.prototype,FA=n((function(e){var t=e.repeat;return"string"==typeof e||e===NA||LA(NA,e)&&t===NA.repeat?DA:t}));function UA(e){var t=e.tagName;return!("INPUT"!==t&&"TEXTAREA"!==t&&!e.isContentEditable)}var HA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onBodyKeyDown",(function(e){if(i.player){var t=e||window.event,n=t.keyCode,r=cC(i),o=r._keyState,a=r.player,s=i.config,l=s.disable,u=s.disableBodyTrigger,c=s.isIgnoreUserActive;l||u||!a.isUserActive&&!c||UA(t.target)||!i.checkIsVisible()||t.metaKey||t.altKey||t.ctrlKey?o.isBodyKeyDown=!1:(FA(e)||o.isKeyDown||((t.target===document.body||i.config.isGlobalTrigger&&!UA(t.target))&&i.checkCode(n,!0)&&(o.isBodyKeyDown=!0),document.addEventListener("keyup",i.onBodyKeyUp)),o.isBodyKeyDown&&i.handleKeyDown(t))}})),aC(cC(i),"onBodyKeyUp",(function(e){i.player&&(document.removeEventListener("keyup",i.onBodyKeyUp),i.handleKeyUp(e))})),aC(cC(i),"onKeydown",(function(e){if(i.player){var t=e||window.event,n=cC(i)._keyState;if(!FA(t)){if(i.config.disable||i.config.disableRootTrigger||t.metaKey||t.altKey||t.ctrlKey)return;!t||37!==t.keyCode&&!i.checkCode(t.keyCode)||t.target!==i.player.root&&t.target!==i.player.video&&t.target!==i.player.controls.el||(n.isKeyDown=!0),i.player.root.addEventListener("keyup",i.onKeyup)}n.isKeyDown&&i.handleKeyDown(t)}})),aC(cC(i),"onKeyup",(function(e){i.player&&(i.player.root.removeEventListener("keyup",i.onKeyup),i.handleKeyUp(e))})),i}return oC(n,[{key:"mergekeyCodeMap",value:function(){var e,t=this,n=this.config.keyCodeMap;n&&Hk(e=Kk(n)).call(e,(function(e){var i;t.keyCodeMap[e]?Hk(i=["keyCode","action","disable","pressAction","disablePress","isBodyTarget"]).call(i,(function(i){n[e][i]&&(t.keyCodeMap[e][i]=n[e][i])})):t.keyCodeMap[e]=n[e]}))}},{key:"afterCreate",value:function(){this.config.disable=!this.playerConfig.keyShortcut;var e="function"==typeof this.config.seekStep?this.config.seekStep(this.player):this.config.seekStep;e&&"number"==typeof e&&(this.seekStep=e),this.keyCodeMap={space:{keyCode:32,action:"playPause",disable:!1,disablePress:!1,noBodyTarget:!1},up:{keyCode:38,action:"upVolume",disable:!1,disablePress:!1,noBodyTarget:!0},down:{keyCode:40,action:"downVolume",disable:!1,disablePress:!1,noBodyTarget:!0},left:{keyCode:37,action:"seekBack",disablePress:!1,disable:!1},right:{keyCode:39,action:"seek",pressAction:"changePlaybackRate",disablePress:!1,disable:!1},esc:{keyCode:27,action:"exitFullscreen",disablePress:!0,disable:!1}},this.mergekeyCodeMap(),this._keyState={isKeyDown:!1,isBodyKeyDown:!1,isPress:!1,tt:0,playbackRate:0},this.player.root.addEventListener("keydown",this.onKeydown),document.addEventListener("keydown",this.onBodyKeyDown)}},{key:"setConfig",value:function(e){var t=this;Kk(e).forEach((function(n){t.config[n]=e[n]}))}},{key:"checkIsVisible",value:function(){if(!this.config.checkVisible)return!0;var e=this.player.root.getBoundingClientRect(),t=e.height,n=e.top,i=e.bottom,r=window.innerHeight;return!(n<0&&n<0-.9*t||i>0&&i-r>.9*t)}},{key:"checkCode",value:function(e,t){var n,i=this,r=!1;return Hk(n=Kk(this.keyCodeMap)).call(n,(function(n){i.keyCodeMap[n]&&e===i.keyCodeMap[n].keyCode&&!i.keyCodeMap[n].disable&&(r=!t||t&&!i.keyCodeMap[n].noBodyTarget)})),r}},{key:"downVolume",value:function(e){var t=this.player;if(!(t.volume<=0)){var n=ZC((t.volume-.1).toFixed(1)),i={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:i}),t.volume=n>=0?n:0}}},{key:"upVolume",value:function(e){var t=this.player;if(!(t.volume>=1)){var n=ZC((t.volume+.1).toFixed(1)),i={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:i}),t.volume=n<=1?n:1}}},{key:"seek",value:function(e){var t=this.player,n=t.currentTime,i=t.offsetCurrentTime,r=t.duration,o=t.offsetDuration,a=t.timeSegments,s=i>-1?i:n,l=o||r,u=FA(e)&&this.seekStep>=4?Mw(this.seekStep/2,10):this.seekStep;s+u<=l?s+=u:s=l;var c=Jx.getCurrentTimeByOffset(s,a),h={currentTime:{from:n,to:c}};this.emitUserAction(e,"seek",{props:h}),this.player.currentTime=c}},{key:"seekBack",value:function(e){var t=this.player,n=t.currentTime,i=t.offsetCurrentTime,r=t.timeSegments,o=(i>-1?i:n)-(FA(e)?Mw(this.seekStep/2,10):this.seekStep);o<0&&(o=0);var a={currentTime:{from:n,to:o=Jx.getCurrentTimeByOffset(o,r)}};this.emitUserAction(e,"seek",{props:a}),this.player.currentTime=o}},{key:"changePlaybackRate",value:function(e){var t=this._keyState,n=this.config,i=this.player;0===t.playbackRate&&(t.playbackRate=i.playbackRate,i.playbackRate=n.playbackRate)}},{key:"playPause",value:function(e){var t=this.player;t&&(this.emitUserAction(e,"switch_play_pause"),t.paused?t.play():t.pause())}},{key:"exitFullscreen",value:function(e){var t=this.player,n=t.fullscreen,i=t.cssfullscreen;n&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:n,to:!n}),t.exitFullscreen()),i&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:i,to:!i}),t.exitCssFullscreen())}},{key:"handleKeyDown",value:function(e){var t=this._keyState;if(FA(e)){t.isPress=!0;var n=Date.now();if(n-t.tt<200)return;t.tt=n}this.handleKeyCode(e.keyCode,e,t.isPress)}},{key:"handleKeyUp",value:function(e){var t=this._keyState;t.playbackRate>0&&(this.player.playbackRate=t.playbackRate,t.playbackRate=0),t.isKeyDown=!1,t.isPress=!1,t.tt=0}},{key:"handleKeyCode",value:function(e,t,n){for(var i,r=Kk(this.keyCodeMap),o=0;o<r.length;o++){var a=this.keyCodeMap[r[o]],s=a.action,l=a.keyCode,u=a.disable,c=a.pressAction,h=a.disablePress;if(l===e){if(!(u||n&&h)){var f=n&&c||s;"function"==typeof f?s(t,this.player,n):"string"==typeof f&&"function"==typeof this[f]&&this[f](t,this.player,n),this.emit(WT,tC({key:r[o],target:t.target,isPress:n},this.keyCodeMap[r[o]]))}(i=t).preventDefault(),i.returnValue=!1,t.stopPropagation();break}}}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown),this.player.root.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keyup",this.onBodyKeyUp)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!1,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!0,keyCodeMap:{},disable:!1,playbackRate:2,isIgnoreUserActive:!0}}}]),n}(yS);function jA(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">\n <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>\n</svg>\n',"image/svg+xml").firstChild}var BA=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"registerIcons",value:function(){return{loadingIcon:jA}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return'\n <xg-loading class="xgplayer-loading">\n <xg-loading-inner></xg-loading-inner>\n </xg-loading>'}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:xS.ROOT}}}]),n}(RS),KA=An,zA=ea.findIndex,VA="findIndex",GA=!0;VA in[]&&Array(1)[VA]((function(){GA=!1})),KA({target:"Array",proto:!0,forced:GA},{findIndex:function(e){return zA(this,e,arguments.length>1?arguments[1]:void 0)}});var WA=zc("Array").findIndex,YA=se,XA=WA,qA=Array.prototype,$A=n((function(e){var t=e.findIndex;return e===qA||YA(qA,e)&&t===qA.findIndex?XA:t})),ZA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_onMouseenter",(function(e){i.emit("icon_mouseenter",{pluginName:i.pluginName})})),aC(cC(i),"_onMouseLeave",(function(e){i.emit("icon_mouseleave",{pluginName:i.pluginName})})),i}return oC(n,[{key:"afterCreate",value:function(){this.bind("mouseenter",this._onMouseenter),this.bind("mouseleave",this._onMouseLeave),this.config.disable&&this.disable()}},{key:"destroy",value:function(){this.unbind("mouseenter",this._onMouseenter),this.unbind("mouseleave",this._onMouseLeave)}}]),n}(RS),JA=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"btnClick",(function(e){e.preventDefault(),e.stopPropagation();var t=cC(i).player;return i.emitUserAction(e,"switch_play_pause",{prop:"paused",from:t.paused,to:!t.paused}),t.ended?t.replay():t.paused?(t.play(),i.animate(!1)):(t.pause(),i.animate(!0)),!1})),i}return oC(n,[{key:"afterCreate",value:function(){dC(lC(n.prototype),"afterCreate",this).call(this),this.config.disable||(this.initIcons(),this.bind(["touchend","click"],this.btnClick),this.listenEvents(),this.animate(!0))}},{key:"listenEvents",value:function(){var e=this,t=this.player;this.on([cT,fT,dT,kT],(function(){e.animate(t.paused)}))}},{key:"registerIcons",value:function(){return{play:{icon:XP,class:"xg-icon-play"},pause:{icon:qP,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.play),this.appendChild(".xgplayer-icon",e.pause)}},{key:"animate",value:function(e){if(this.player){var t=this.i18nKeys,n=Ym(this).call(this,".xg-tips");e?(this.setAttr("data-state","pause"),n&&this.changeLangTextKey(n,t.PLAY_TIPS)):(this.setAttr("data-state","play"),n&&this.changeLangTextKey(n,t.PAUSE_TIPS))}}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this),this.unbind(["touchend","click"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return'<xg-icon class="xgplayer-play">\n <div class="xgplayer-icon">\n </div>\n '.concat(eA(this,"PLAY_TIPS",this.playerConfig.isHideTips),"\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_LEFT,index:0,disable:!1}}}]),n}(ZA);function QA(){return(new DOMParser).parseFromString('<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>\n </g>\n</svg>',"image/svg+xml").firstChild}var eR=function(e){sC(n,e);var t=fC(n);function n(){return iC(this,n),t.apply(this,arguments)}return oC(n,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(t){t.preventDefault(),t.stopPropagation(),e.config.onClick(t)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:QA,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){Jx.addClass(this.root,"show")}},{key:"hide",value:function(){Jx.removeClass(this.root,"show")}},{key:"render",value:function(){return'<xg-icon class="xgplayer-back">\n </xg-icon>'}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:xS.ROOT_TOP,index:0}}}]),n}(RS);function tR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>\n</svg>\n',"image/svg+xml").firstChild}function nR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>\n</svg>\n',"image/svg+xml").firstChild}var iR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_onOrientationChange",(function(e){i.player.fullscreen&&i.config.rotateFullscreen&&(90===window.orientation||-90===window.orientation?i.player.setRotateDeg(0):i.player.setRotateDeg(90))})),i}return oC(n,[{key:"afterCreate",value:function(){var e=this;dC(lC(n.prototype),"afterCreate",this).call(this);var t=this.config,i=this.playerConfig;if(!t.disable){t.target&&(this.playerConfig.fullscreenTarget=this.config.target);var r=Jx.getFullScreenEl();i.fullscreenTarget===r&&this.player.getFullscreen().catch((function(e){})),this.initIcons(),this.handleFullscreen=this.hook("fullscreenChange",this.toggleFullScreen,{pre:function(t){var n=e.player.fullscreen;e.emitUserAction(t,"switch_fullscreen",{prop:"fullscreen",from:n,to:!n})}}),this.bind(".xgplayer-fullscreen",["touchend","click"],this.handleFullscreen),this.on(NT,(function(t){var n=Ym(e).call(e,".xg-tips");n&&e.changeLangTextKey(n,t?e.i18nKeys.EXITFULLSCREEN_TIPS:e.i18nKeys.FULLSCREEN_TIPS),e.animate(t)})),this.config.needBackIcon&&(this.topBackIcon=this.player.registerPlugin({plugin:eR,options:{config:{onClick:function(t){e.handleFullscreen(t)}}}})),"mobile"===oT.device&&window.addEventListener("orientationchange",this._onOrientationChange)}}},{key:"registerIcons",value:function(){return{fullscreen:{icon:tR,class:"xg-get-fullscreen"},exitFullscreen:{icon:nR,class:"xg-exit-fullscreen"}}}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon","mobile"===oT.device?"touchend":"click",this.handleFullscreen),"mobile"===oT.device&&window.removeEventListener("orientationchange",this._onOrientationChange)}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.fullscreen),this.appendChild(".xgplayer-icon",e.exitFullscreen)}},{key:"toggleFullScreen",value:function(e){e instanceof Event&&(e.preventDefault(),e.stopPropagation());var t=this.player,n=this.config;!0===n.useCssFullscreen||"function"==typeof n.useCssFullscreen&&n.useCssFullscreen()?(t.fullscreen?t.exitCssFullscreen():t.getCssFullscreen(),this.animate(t.fullscreen)):n.rotateFullscreen?(t.fullscreen?t.exitRotateFullscreen():t.getRotateFullscreen(),this.animate(t.fullscreen)):n.switchCallback&&"function"==typeof n.switchCallback?n.switchCallback(t.fullscreen):t.fullscreen?(t.exitFullscreen(),n.useScreenOrientation&&this.unlockScreen()):(t.getFullscreen().catch((function(e){})),n.useScreenOrientation&&t.aspectRatio>1&&this.lockScreen(n.lockOrientationType))}},{key:"animate",value:function(e){e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.topBackIcon&&(e?(this.topBackIcon.show(),this.hide()):(this.topBackIcon.hide(),this.show()))}},{key:"render",value:function(){if(!this.config.disable){return'<xg-icon class="xgplayer-fullscreen">\n <div class="xgplayer-icon">\n </div>\n '.concat(eA(this,"FULLSCREEN_TIPS",this.playerConfig.isHideTips),"\n </xg-icon>")}}},{key:"lockScreen",value:function(e){try{screen.orientation.lock(e).catch((function(e){}))}catch(t){}}},{key:"unlockScreen",value:function(){try{screen.orientation.unlock().catch((function(e){}))}catch(e){}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,useScreenOrientation:!1,lockOrientationType:"landscape",switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),n}(ZA);function rR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function oR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function aR(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>\n</svg>\n',"image/svg+xml").firstChild}var sR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"onBarMousedown",(function(e){var t=cC(i).player,n=Ym(i).call(i,".xgplayer-bar");Jx.event(e);var r=n.getBoundingClientRect(),o=Jx.getEventPos(e,t.zoom),a=r.height-(o.clientY-r.top);if(o.h=a,o.barH=r.height,i.pos=o,!(a<-2))return i.updateVolumePos(a,e),document.addEventListener("mouseup",i.onBarMouseUp),i._d.isStart=!0,!1})),aC(cC(i),"onBarMouseMove",(function(e){var t=cC(i)._d;if(t.isStart){var n=cC(i),r=n.pos,o=n.player;e.preventDefault(),e.stopPropagation(),Jx.event(e);var a=Jx.getEventPos(e,o.zoom);t.isMoving=!0;var s=r.h-a.clientY+r.clientY;s>r.barH||i.updateVolumePos(s,e)}})),aC(cC(i),"onBarMouseUp",(function(e){Jx.event(e),document.removeEventListener("mouseup",i.onBarMouseUp);var t=cC(i)._d;t.isStart=!1,t.isMoving=!1})),aC(cC(i),"onMouseenter",(function(e){i._d.isActive=!0,i.focus(),i.emit("icon_mouseenter",{pluginName:i.pluginName})})),aC(cC(i),"onMouseleave",(function(e){i._d.isActive=!1,i.unFocus(100,!1,e),i.emit("icon_mouseleave",{pluginName:i.pluginName})})),aC(cC(i),"onVolumeChange",(function(e){if(i.player){var t=i.player,n=t.muted,r=t.volume;i._d.isMoving||(Ym(i).call(i,".xgplayer-drag").style.height=n||0===r?"4px":"".concat(100*r,"%"),i.config.showValueLabel&&i.updateVolumeValue()),i.animate(n,r)}})),i}return oC(n,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:oR,class:"xg-volume-small"},volumeLarge:{icon:rR,class:"xg-volume"},volumeMuted:{icon:aR,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var t=this.playerConfig,n=t.commonStyle,i=t.volume;if(n.volumeColor)Ym(this).call(this,".xgplayer-drag").style.backgroundColor=n.volumeColor;this.changeMutedHandler=this.hook("mutedChange",(function(t){e.changeMuted(t)}),{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),"mobile"!==oT.device&&"mobile"!==this.playerConfig.isMobileSimulateMode&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on(_T,this.onVolumeChange),this.once(bT,this.onVolumeChange),"Number"!==Jx.typeOf(i)&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,t){var n=this.player,i=Ym(this).call(this,".xgplayer-drag"),r=Ym(this).call(this,".xgplayer-bar");if(r&&i){var o=Mw(e/r.getBoundingClientRect().height*1e3,10);i.style.height="".concat(e,"px");var a=Math.max(Math.min(o/1e3,1),0),s={volume:{from:n.volume,to:a}};n.muted&&(s.muted={from:!0,to:!1}),this.emitUserAction(t,"change_volume",{muted:n.muted,volume:n.volume,props:s}),n.volume=Math.max(Math.min(o/1e3,1),0),n.muted&&(n.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,t=e.volume,n=e.muted,i=Ym(this).call(this,".xgplayer-value-label"),r=Math.max(Math.min(t,1),0);i.innerText=n?0:Math.round(100*r)}},{key:"focus",value:function(){this.player.focus({autoHide:!1}),this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),Jx.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,r=this._d,o=this.player;r.isActive||(this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=Jx.setTimeout(this,(function(){r.isActive||(n?o.blur():o.focus(),Jx.removeClass(e.root,"slide-show"),r.isStart&&e.onBarMouseUp(i)),e._timerId=null}),t))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var t=this.player;this._d.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:t.muted,volume:t.volume,props:{muted:{from:t.muted,to:!t.muted}}}),t.volume>0&&(t.muted=!t.muted),t.volume<.01&&(t.volume=this.config.miniVolume)}},{key:"animate",value:function(e,t){e||0===t?this.setAttr("data-state","mute"):t<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(Jx.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon","mobile"===oT.device?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){var e;if(!this.config.disable){var t=this.config.default||this.player.volume,n=this.config.showValueLabel;return Um(e='\n <xg-icon class="xgplayer-volume" data-state="normal">\n <div class="xgplayer-icon">\n </div>\n <xg-slider class="xgplayer-slider">\n '.concat(n?'<div class="xgplayer-value-label">'.concat(100*t,"</div>"):"",'\n <div class="xgplayer-bar">\n <xg-drag class="xgplayer-drag" style="height: ')).call(e,100*t,'%"></xg-drag>\n </div>\n </xg-slider>\n </xg-icon>')}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),n}(RS);function lR(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n fill="white" />\n</svg>',"image/svg+xml").firstChild}function uR(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n fill="white" />\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M9.4998 7.7C9.77595 7.7 9.9998 7.47614 9.9998 7.2V6.5C9.9998 6.22386 9.77595 6 9.4998 6H5.5402L5.52754 6.00016H5.5C5.22386 6.00016 5 6.22401 5 6.50016V10.4598C5 10.7359 5.22386 10.9598 5.5 10.9598H6.2C6.47614 10.9598 6.7 10.7359 6.7 10.4598V8.83005L8.76983 10.9386C8.96327 11.1357 9.27984 11.1386 9.47691 10.9451L9.97645 10.4548C10.1735 10.2613 10.1764 9.94476 9.983 9.7477L7.97289 7.7H9.4998Z"\n fill="white" />\n</svg>',"image/svg+xml").firstChild}var cR="picture-in-picture",hR="inline",fR="fullscreen",dR=function(e){sC(n,e);var t=fC(n);function n(){var e,i;iC(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return aC(cC(i=t.call.apply(t,Um(e=[this]).call(e,o))),"switchPIP",(function(e){if(!i.isPIPAvailable())return!1;e.stopPropagation&&e.stopPropagation(),i.isPip?(i.exitPIP(),i.emitUserAction(e,"change_pip",{props:"pip",from:!0,to:!1}),i.setAttr("data-state","normal")):4===i.player.media.readyState&&(i.requestPIP(),i.emitUserAction(e,"change_pip",{props:"pip",from:!1,to:!0}),i.setAttr("data-state","pip"))})),i}return oC(n,[{key:"beforeCreate",value:function(e){"boolean"==typeof e.player.config.pip&&(e.config.showIcon=e.player.config.pip)}},{key:"afterCreate",value:function(){var e=this;this.isPIPAvailable()&&(dC(lC(n.prototype),"afterCreate",this).call(this),this.pMode=hR,this.initPipEvents(),this.config.showIcon&&this.initIcons(),this.once(PT,(function(){e.config.showIcon&&(Jx.removeClass(Ym(e).call(e,".xgplayer-icon"),"xg-icon-disable"),e.bind("click",e.switchPIP))})))}},{key:"registerIcons",value:function(){return{pipIcon:{icon:lR,class:"xg-get-pip"},pipIconExit:{icon:uR,class:"xg-exit-pip"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.pipIcon),this.appendChild(".xgplayer-icon",e.pipIconExit)}},{key:"initPipEvents",value:function(){var e=this,t=this.player;this.leavePIPCallback=function(){var n=t.paused;Jx.setTimeout(e,(function(){!n&&t.mediaPlay()}),0),!n&&t.mediaPlay(),e.setAttr("data-state","normal"),e.pipWindow=null,t.emit(VT,!1)},this.enterPIPCallback=function(n){t.emit(VT,!0),null!=n&&n.pictureInPictureWindow&&(e.pipWindow=n.pictureInPictureWindow),e.setAttr("data-state","pip")},this.onWebkitpresentationmodechanged=function(n){var i=t.media.webkitPresentationMode;e.pMode===fR&&i!==fR&&t.onFullscreenChange(null,!1),e.pMode=i,i===cR?e.enterPIPCallback(n):i===hR&&e.leavePIPCallback(n)},t.media&&(t.media.addEventListener("enterpictureinpicture",this.enterPIPCallback),t.media.addEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(t.media)&&t.media.addEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged))}},{key:"copyStyleIntoPiPWindow",value:function(e){var t,n,i=Kw(t=Hk(n=pC(document.styleSheets)).call(n,(function(t){try{var n;return Hk(n=pC(t.cssRules)).call(n,(function(e){return e.cssText})).join("")}catch(r){var i=document.createElement("link");i.rel="stylesheet",i.type=t.type,i.media=t.media,i.href=t.href,e.document.head.appendChild(i)}return""}))).call(t,Boolean).join("\n"),r=document.createElement("style");r.textContent=i,e.document.head.appendChild(r)}},{key:"requestPIP",value:function(){var e=this,t=this.player,i=this.playerConfig,r=this.config;if(this.isPIPAvailable()&&!this.isPip)try{var o=i.poster;if(o&&(t.media.poster="String"===Jx.typeOf(o)?o:o.poster),r.preferDocument&&this.isDocPIPAvailable()){var a={};if(r.width&&r.height)a.width=r.width,a.height=r.height;else{var s=t.root.getBoundingClientRect();a.width=s.width,a.height=s.height}documentPictureInPicture.requestWindow(a).then((function(n){var i=r.docPiPNode,o=r.docPiPStyle;e.enterPIPCallback();var a=i||t.root,s=a.parentElement,l=a.previousSibling,u=a.nextSibling;e.copyStyleIntoPiPWindow(n);var c=document.createElement("style");if(c.append("body{padding:0; margin:0;}"),o){var h="";"string"==typeof o?h=o:"function"==typeof o&&(h=o.call(r)),h&&c.append(h)}else a===t.root&&c.append("\n .xgplayer{width: 100%!important; height: 100%!important;}\n ");n.document.head.append(c),n.document.body.append(a),n.addEventListener("pagehide",(function(t){s&&(u?s.insertBefore(a,u):l?s.insertBefore(a,l.nextSibling):s.appendChild(a)),e.leavePIPCallback()}),{once:!0})}))}else n.checkWebkitSetPresentationMode(t.media)?t.media.webkitSetPresentationMode("picture-in-picture"):t.media.requestPictureInPicture();return!0}catch(l){return console.error("requestPiP",l),!1}}},{key:"exitPIP",value:function(){var e=this.player;try{var t;if(this.isPIPAvailable()&&this.isPip)this.isDocPIPAvailable()&&null!==(t=documentPictureInPicture)&&void 0!==t&&t.window?documentPictureInPicture.window.close():n.checkWebkitSetPresentationMode(e.media)?e.media.webkitSetPresentationMode("inline"):document.exitPictureInPicture();return!0}catch(i){return console.error("exitPIP",i),!1}}},{key:"isPip",get:function(){var e,t=this.player;return!(!this.isDocPIPAvailable()||null===(e=documentPictureInPicture)||void 0===e||!e.window)||document.pictureInPictureElement&&document.pictureInPictureElement===t.media||t.media.webkitPresentationMode===cR}},{key:"isPIPAvailable",value:function(){var e=this.player.media;return"Boolean"===Jx.typeOf(document.pictureInPictureEnabled)&&document.pictureInPictureEnabled&&("Boolean"===Jx.typeOf(e.disablePictureInPicture)&&!e.disablePictureInPicture||e.webkitSupportsPresentationMode&&"Function"===Jx.typeOf(e.webkitSetPresentationMode))||this.isDocPIPAvailable()}},{key:"isDocPIPAvailable",value:function(){return"documentPictureInPicture"in window&&/^(https|file)/.test(location.protocol)}},{key:"destroy",value:function(){dC(lC(n.prototype),"destroy",this).call(this);var e=this.player;e.media.removeEventListener("enterpictureinpicture",this.enterPIPCallback),e.media.removeEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(e.media)&&e.media.removeEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged),this.exitPIP(),this.unbind("click",this.btnClick)}},{key:"render",value:function(){if(this.config.showIcon&&this.isPIPAvailable())return'<xg-icon class="xgplayer-pip">\n <div class="xgplayer-icon xg-icon-disable">\n </div>\n '.concat(eA(this,"PIP",this.playerConfig.isHideTips),"\n </xg-icon>")}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:xS.CONTROLS_RIGHT,index:6,showIcon:!1,preferDocument:!1,width:void 0,height:void 0,docPiPNode:void 0,docPiPStyle:void 0}}},{key:"checkWebkitSetPresentationMode",value:function(e){return"function"==typeof e.webkitSetPresentationMode}}]),n}(ZA),pR=o,vR=ft("iterator"),gR=!pR((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[vR]||"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"!==n||"x"!==new URL("http://x",void 0).host})),yR=g,mR=2147483647,_R=/[^\0-\u007E]/,bR=/[.\u3002\uFF0E\uFF61]/g,kR="Overflow: input needs wider integers to process",wR=RangeError,ER=yR(bR.exec),CR=Math.floor,xR=String.fromCharCode,TR=yR("".charCodeAt),SR=yR([].join),PR=yR([].push),AR=yR("".replace),RR=yR("".split),IR=yR("".toLowerCase),OR=function(e){return e+22+75*(e<26)},MR=function(e,t,n){var i=0;for(e=n?CR(e/700):e>>1,e+=CR(e/t);e>455;)e=CR(e/35),i+=36;return CR(i+36*e/(e+38))},LR=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=TR(e,n++);if(r>=55296&&r<=56319&&n<i){var o=TR(e,n++);56320==(64512&o)?PR(t,((1023&r)<<10)+(1023&o)+65536):(PR(t,r),n--)}else PR(t,r)}return t}(e);var n,i,r=e.length,o=128,a=0,s=72;for(n=0;n<e.length;n++)(i=e[n])<128&&PR(t,xR(i));var l=t.length,u=l;for(l&&PR(t,"-");u<r;){var c=mR;for(n=0;n<e.length;n++)(i=e[n])>=o&&i<c&&(c=i);var h=u+1;if(c-o>CR((mR-a)/h))throw wR(kR);for(a+=(c-o)*h,o=c,n=0;n<e.length;n++){if((i=e[n])<o&&++a>mR)throw wR(kR);if(i==o){for(var f=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(f<p)break;var v=f-p,g=36-p;PR(t,xR(OR(p+v%g))),f=CR(v/g),d+=36}PR(t,xR(OR(f))),s=MR(a,h,u==l),a=0,u++}}a++,o++}return SR(t,"")},DR=An,NR=r,FR=O,UR=g,HR=A,jR=gR,BR=io,KR=oo,zR=D_,VR=Ro,GR=Kl,WR=Wo,YR=qf,XR=S,qR=Je,$R=$t,ZR=ti,JR=nn,QR=ee,eI=Yi,tI=Hr,nI=H,iI=Qh,rI=Wh,oI=ad,aI=fx,sI=ft("iterator"),lI="URLSearchParams",uI=lI+"Iterator",cI=WR.set,hI=WR.getterFor(lI),fI=WR.getterFor(uI),dI=Object.getOwnPropertyDescriptor,pI=function(e){if(!HR)return NR[e];var t=dI(NR,e);return t&&t.value},vI=pI("fetch"),gI=pI("Request"),yI=pI("Headers"),mI=gI&&gI.prototype,_I=yI&&yI.prototype,bI=NR.RegExp,kI=NR.TypeError,wI=NR.decodeURIComponent,EI=NR.encodeURIComponent,CI=UR("".charAt),xI=UR([].join),TI=UR([].push),SI=UR("".replace),PI=UR([].shift),AI=UR([].splice),RI=UR("".split),II=UR("".slice),OI=/\+/g,MI=Array(4),LI=function(e){return MI[e-1]||(MI[e-1]=bI("((?:%[\\da-f]{2}){"+e+"})","gi"))},DI=function(e){try{return wI(e)}catch(lU){return e}},NI=function(e){var t=SI(e,OI," "),n=4;try{return wI(t)}catch(lU){for(;n;)t=SI(t,LI(n--),DI);return t}},FI=/[!'()~]|%20/g,UI={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},HI=function(e){return UI[e]},jI=function(e){return SI(EI(e),FI,HI)},BI=GR((function(e,t){cI(this,{type:uI,iterator:iI(hI(e).entries),kind:t})}),"Iterator",(function(){var e=fI(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),KI=function(e){this.entries=[],this.url=null,void 0!==e&&(QR(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===CI(e,0)?II(e,1):e:eI(e)))};KI.prototype={type:lI,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,a,s,l=rI(e);if(l)for(n=(t=iI(e,l)).next;!(i=FR(n,t)).done;){if(o=(r=iI(JR(i.value))).next,(a=FR(o,r)).done||(s=FR(o,r)).done||!FR(o,r).done)throw kI("Expected sequence with length 2");TI(this.entries,{key:eI(a.value),value:eI(s.value)})}else for(var u in e)qR(e,u)&&TI(this.entries,{key:u,value:eI(e[u])})},parseQuery:function(e){if(e)for(var t,n,i=RI(e,"&"),r=0;r<i.length;)(t=i[r++]).length&&(n=RI(t,"="),TI(this.entries,{key:NI(PI(n)),value:NI(xI(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],TI(n,jI(e.key)+"="+jI(e.value));return xI(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var zI=function(){YR(this,VI);var e=cI(this,new KI(arguments.length>0?arguments[0]:void 0));HR||(this.length=e.entries.length)},VI=zI.prototype;if(zR(VI,{append:function(e,t){oI(arguments.length,2);var n=hI(this);TI(n.entries,{key:eI(e),value:eI(t)}),HR||this.length++,n.updateURL()},delete:function(e){oI(arguments.length,1);for(var t=hI(this),n=t.entries,i=eI(e),r=0;r<n.length;)n[r].key===i?AI(n,r,1):r++;HR||(this.length=n.length),t.updateURL()},get:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=[],r=0;r<t.length;r++)t[r].key===n&&TI(i,t[r].value);return i},has:function(e){oI(arguments.length,1);for(var t=hI(this).entries,n=eI(e),i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){oI(arguments.length,1);for(var n,i=hI(this),r=i.entries,o=!1,a=eI(e),s=eI(t),l=0;l<r.length;l++)(n=r[l]).key===a&&(o?AI(r,l--,1):(o=!0,n.value=s));o||TI(r,{key:a,value:s}),HR||(this.length=r.length),i.updateURL()},sort:function(){var e=hI(this);aI(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=hI(this).entries,i=$R(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new BI(this,"keys")},values:function(){return new BI(this,"values")},entries:function(){return new BI(this,"entries")}},{enumerable:!0}),BR(VI,sI,VI.entries,{name:"entries"}),BR(VI,"toString",(function(){return hI(this).serialize()}),{enumerable:!0}),HR&&KR(VI,"size",{get:function(){return hI(this).entries.length},configurable:!0,enumerable:!0}),VR(zI,lI),DR({global:!0,constructor:!0,forced:!jR},{URLSearchParams:zI}),!jR&&XR(yI)){var GI=UR(_I.has),WI=UR(_I.set),YI=function(e){if(QR(e)){var t,n=e.body;if(ZR(n)===lI)return t=e.headers?new yI(e.headers):new yI,GI(t,"content-type")||WI(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),tI(e,{body:nI(0,eI(n)),headers:nI(0,t)})}return e};if(XR(vI)&&DR({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return vI(e,arguments.length>1?YI(arguments[1]):{})}}),XR(gI)){var XI=function(e){return YR(this,mI),new gI(e,arguments.length>1?YI(arguments[1]):{})};mI.constructor=XI,XI.prototype=mI,DR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:XI})}}var qI,$I=An,ZI=A,JI=gR,QI=r,eO=$t,tO=g,nO=io,iO=oo,rO=qf,oO=Je,aO=tE,sO=dm,lO=qr,uO=hc.codeAt,cO=function(e){var t,n,i=[],r=RR(AR(IR(e),bR,"."),".");for(t=0;t<r.length;t++)n=r[t],PR(i,ER(_R,n)?"xn--"+LR(n):n);return SR(i,".")},hO=Yi,fO=Ro,dO=ad,pO={URLSearchParams:zI,getState:hI},vO=Wo,gO=vO.set,yO=vO.getterFor("URL"),mO=pO.URLSearchParams,_O=pO.getState,bO=QI.URL,kO=QI.TypeError,wO=QI.parseInt,EO=Math.floor,CO=Math.pow,xO=tO("".charAt),TO=tO(/./.exec),SO=tO([].join),PO=tO(1..toString),AO=tO([].pop),RO=tO([].push),IO=tO("".replace),OO=tO([].shift),MO=tO("".split),LO=tO("".slice),DO=tO("".toLowerCase),NO=tO([].unshift),FO="Invalid scheme",UO="Invalid host",HO="Invalid port",jO=/[a-z]/i,BO=/[\d+-.a-z]/i,KO=/\d/,zO=/^0x/i,VO=/^[0-7]+$/,GO=/^\d+$/,WO=/^[\da-f]+$/i,YO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,XO=/[\0\t\n\r #/:<>?@[\\\]^|]/,qO=/^[\u0000-\u0020]+/,$O=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ZO=/[\t\n\r]/g,JO=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)NO(t,e%256),e=EO(e/256);return SO(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=PO(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},QO={},eM=aO({},QO,{" ":1,'"':1,"<":1,">":1,"`":1}),tM=aO({},eM,{"#":1,"?":1,"{":1,"}":1}),nM=aO({},tM,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),iM=function(e,t){var n=uO(e,0);return n>32&&n<127&&!oO(t,e)?e:encodeURIComponent(e)},rM={ftp:21,file:null,http:80,https:443,ws:80,wss:443},oM=function(e,t){var n;return 2==e.length&&TO(jO,xO(e,0))&&(":"==(n=xO(e,1))||!t&&"|"==n)},aM=function(e){var t;return e.length>1&&oM(LO(e,0,2))&&(2==e.length||"/"===(t=xO(e,2))||"\\"===t||"?"===t||"#"===t)},sM=function(e){return"."===e||"%2e"===DO(e)},lM={},uM={},cM={},hM={},fM={},dM={},pM={},vM={},gM={},yM={},mM={},_M={},bM={},kM={},wM={},EM={},CM={},xM={},TM={},SM={},PM={},AM=function(e,t,n){var i,r,o,a=hO(e);if(t){if(r=this.parse(a))throw kO(r);this.searchParams=null}else{if(void 0!==n&&(i=new AM(n,!0)),r=this.parse(a,null,i))throw kO(r);(o=_O(new mO)).bindURL(this),this.searchParams=o}};AM.prototype={type:"URL",parse:function(e,t,n){var i,r,o,a,s,l=this,u=t||lM,c=0,h="",f=!1,d=!1,p=!1;for(e=hO(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=IO(e,qO,""),e=IO(e,$O,"$1")),e=IO(e,ZO,""),i=sO(e);c<=i.length;){switch(r=i[c],u){case lM:if(!r||!TO(jO,r)){if(t)return FO;u=cM;continue}h+=DO(r),u=uM;break;case uM:if(r&&(TO(BO,r)||"+"==r||"-"==r||"."==r))h+=DO(r);else{if(":"!=r){if(t)return FO;h="",u=cM,c=0;continue}if(t&&(l.isSpecial()!=oO(rM,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&rM[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?u=kM:l.isSpecial()&&n&&n.scheme==l.scheme?u=hM:l.isSpecial()?u=vM:"/"==i[c+1]?(u=fM,c++):(l.cannotBeABaseURL=!0,RO(l.path,""),u=TM)}break;case cM:if(!n||n.cannotBeABaseURL&&"#"!=r)return FO;if(n.cannotBeABaseURL&&"#"==r){l.scheme=n.scheme,l.path=lO(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=PM;break}u="file"==n.scheme?kM:dM;continue;case hM:if("/"!=r||"/"!=i[c+1]){u=dM;continue}u=gM,c++;break;case fM:if("/"==r){u=yM;break}u=xM;continue;case dM:if(l.scheme=n.scheme,r==qI)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query=n.query;else if("/"==r||"\\"==r&&l.isSpecial())u=pM;else if("?"==r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query="",u=SM;else{if("#"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.path.length--,u=xM;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=lO(n.path),l.query=n.query,l.fragment="",u=PM}break;case pM:if(!l.isSpecial()||"/"!=r&&"\\"!=r){if("/"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=xM;continue}u=yM}else u=gM;break;case vM:if(u=gM,"/"!=r||"/"!=xO(h,c+1))continue;c++;break;case gM:if("/"!=r&&"\\"!=r){u=yM;continue}break;case yM:if("@"==r){f&&(h="%40"+h),f=!0,o=sO(h);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||p){var y=iM(g,nM);p?l.password+=y:l.username+=y}else p=!0}h=""}else if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(f&&""==h)return"Invalid authority";c-=sO(h).length+1,h="",u=mM}else h+=r;break;case mM:case _M:if(t&&"file"==l.scheme){u=EM;continue}if(":"!=r||d){if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(l.isSpecial()&&""==h)return UO;if(t&&""==h&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(h))return a;if(h="",u=CM,t)return;continue}"["==r?d=!0:"]"==r&&(d=!1),h+=r}else{if(""==h)return UO;if(a=l.parseHost(h))return a;if(h="",u=bM,t==_M)return}break;case bM:if(!TO(KO,r)){if(r==qI||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()||t){if(""!=h){var m=wO(h,10);if(m>65535)return HO;l.port=l.isSpecial()&&m===rM[l.scheme]?null:m,h=""}if(t)return;u=CM;continue}return HO}h+=r;break;case kM:if(l.scheme="file","/"==r||"\\"==r)u=wM;else{if(!n||"file"!=n.scheme){u=xM;continue}if(r==qI)l.host=n.host,l.path=lO(n.path),l.query=n.query;else if("?"==r)l.host=n.host,l.path=lO(n.path),l.query="",u=SM;else{if("#"!=r){aM(SO(lO(i,c),""))||(l.host=n.host,l.path=lO(n.path),l.shortenPath()),u=xM;continue}l.host=n.host,l.path=lO(n.path),l.query=n.query,l.fragment="",u=PM}}break;case wM:if("/"==r||"\\"==r){u=EM;break}n&&"file"==n.scheme&&!aM(SO(lO(i,c),""))&&(oM(n.path[0],!0)?RO(l.path,n.path[0]):l.host=n.host),u=xM;continue;case EM:if(r==qI||"/"==r||"\\"==r||"?"==r||"#"==r){if(!t&&oM(h))u=xM;else if(""==h){if(l.host="",t)return;u=CM}else{if(a=l.parseHost(h))return a;if("localhost"==l.host&&(l.host=""),t)return;h="",u=CM}continue}h+=r;break;case CM:if(l.isSpecial()){if(u=xM,"/"!=r&&"\\"!=r)continue}else if(t||"?"!=r)if(t||"#"!=r){if(r!=qI&&(u=xM,"/"!=r))continue}else l.fragment="",u=PM;else l.query="",u=SM;break;case xM:if(r==qI||"/"==r||"\\"==r&&l.isSpecial()||!t&&("?"==r||"#"==r)){if(".."===(s=DO(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==r||"\\"==r&&l.isSpecial()||RO(l.path,"")):sM(h)?"/"==r||"\\"==r&&l.isSpecial()||RO(l.path,""):("file"==l.scheme&&!l.path.length&&oM(h)&&(l.host&&(l.host=""),h=xO(h,0)+":"),RO(l.path,h)),h="","file"==l.scheme&&(r==qI||"?"==r||"#"==r))for(;l.path.length>1&&""===l.path[0];)OO(l.path);"?"==r?(l.query="",u=SM):"#"==r&&(l.fragment="",u=PM)}else h+=iM(r,tM);break;case TM:"?"==r?(l.query="",u=SM):"#"==r?(l.fragment="",u=PM):r!=qI&&(l.path[0]+=iM(r,QO));break;case SM:t||"#"!=r?r!=qI&&("'"==r&&l.isSpecial()?l.query+="%27":l.query+="#"==r?"%23":iM(r,QO)):(l.fragment="",u=PM);break;case PM:r!=qI&&(l.fragment+=iM(r,eM))}c++}},parseHost:function(e){var t,n,i;if("["==xO(e,0)){if("]"!=xO(e,e.length-1))return UO;if(t=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,f=function(){return xO(e,h)};if(":"==f()){if(":"!=xO(e,1))return;h+=2,c=++u}for(;f();){if(8==u)return;if(":"!=f()){for(t=n=0;n<4&&TO(WO,f());)t=16*t+wO(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,u>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!TO(KO,f()))return;for(;TO(KO,f());){if(o=wO(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,2!=++i&&4!=i||u++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;h++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l}(LO(e,1,-1)),!t)return UO;this.host=t}else if(this.isSpecial()){if(e=cO(e),TO(YO,e))return UO;if(t=function(e){var t,n,i,r,o,a,s,l=MO(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(o=10,r.length>1&&"0"==xO(r,0)&&(o=TO(zO,r)?16:8,r=LO(r,8==o?1:2)),""===r)a=0;else{if(!TO(10==o?GO:8==o?VO:WO,r))return e;a=wO(r,o)}RO(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=CO(256,5-t))return null}else if(a>255)return null;for(s=AO(n),i=0;i<n.length;i++)s+=n[i]*CO(256,3-i);return s}(e),null===t)return UO;this.host=t}else{if(TO(XO,e))return UO;for(t="",n=sO(e),i=0;i<n.length;i++)t+=iM(n[i],QO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return oO(rM,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&oM(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",e.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=JO(r),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+SO(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw kO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new RM(e.path[0]).origin}catch(lU){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+JO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(hO(e)+":",lM)},getUsername:function(){return this.username},setUsername:function(e){var t=sO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=iM(t[n],nM)}},getPassword:function(){return this.password},setPassword:function(e){var t=sO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=iM(t[n],nM)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?JO(e):JO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,mM)},getHostname:function(){var e=this.host;return null===e?"":JO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_M)},getPort:function(){var e=this.port;return null===e?"":hO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=hO(e))?this.port=null:this.parse(e,bM))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+SO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,CM))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=hO(e))?this.query=null:("?"==xO(e,0)&&(e=LO(e,1)),this.query="",this.parse(e,SM)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=hO(e))?("#"==xO(e,0)&&(e=LO(e,1)),this.fragment="",this.parse(e,PM)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var RM=function(e){var t=rO(this,IM),n=dO(arguments.length,1)>1?arguments[1]:void 0,i=gO(t,new AM(e,!1,n));ZI||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},IM=RM.prototype,OM=function(e,t){return{get:function(){return yO(this)[e]()},set:t&&function(e){return yO(this)[t](e)},configurable:!0,enumerable:!0}};if(ZI&&(iO(IM,"href",OM("serialize","setHref")),iO(IM,"origin",OM("getOrigin")),iO(IM,"protocol",OM("getProtocol","setProtocol")),iO(IM,"username",OM("getUsername","setUsername")),iO(IM,"password",OM("getPassword","setPassword")),iO(IM,"host",OM("getHost","setHost")),iO(IM,"hostname",OM("getHostname","setHostname")),iO(IM,"port",OM("getPort","setPort")),iO(IM,"pathname",OM("getPathname","setPathname")),iO(IM,"search",OM("getSearch","setSearch")),iO(IM,"searchParams",OM("getSearchParams")),iO(IM,"hash",OM("getHash","setHash"))),nO(IM,"toJSON",(function(){return yO(this).serialize()}),{enumerable:!0}),nO(IM,"toString",(function(){return yO(this).serialize()}),{enumerable:!0}),bO){var MM=bO.createObjectURL,LM=bO.revokeObjectURL;MM&&nO(RM,"createObjectURL",eO(MM,bO)),LM&&nO(RM,"revokeObjectURL",eO(LM,bO))}fO(RM,"URL"),$I({global:!0,constructor:!0,forced:!JI,sham:!ZI},{URL:RM});var DM=An,NM=o,FM=ad,UM=Yi,HM=gR,jM=ae("URL");DM({target:"URL",stat:!0,forced:!(HM&&NM((function(){jM.canParse()})))},{canParse:function(e){var t=FM(arguments.length,1),n=UM(e),i=t<2||void 0===arguments[1]?void 0:UM(arguments[1]);try{return!!new jM(n,i)}catch(lU){return!1}}});var BM=n(te.URL),KM=function(){function e(t){iC(this,e),this.config=t.config,this.parent=t.root,this.root=Jx.createDom("ul","",{},"xg-options-list xg-list-slide-scroll ".concat(this.config.className)),t.root.appendChild(this.root);var n=this.config.maxHeight;n&&this.setStyle({maxHeight:n}),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var i="touch"===this.config.domEventType?"touchend":"click";this._delegates=RS.delegate.call(this,this.root,"li",i,this.onItemClick)}return oC(e,[{key:"renderItemList",value:function(e){var t,n=this,i=this.config,r=this.root;(e?i.data=e:e=i.data,i.style)&&Hk(t=Kk(i.style)).call(t,(function(e){r.style[e]=i[e]}));e.length>0&&(this.attrKeys=Kk(e[0])),this.root.innerHTML="",Hk(e).call(e,(function(e,t){var i=e.selected?"option-item selected":"option-item";e["data-index"]=t,n.root.appendChild(Jx.createDom("li","<span>".concat(e.showText,"</span>"),e,i))}))}},{key:"onItemClick",value:function(e){e.delegateTarget||(e.delegateTarget=e.target);var t=e.delegateTarget;if(t&&Jx.hasClass(t,"selected"))return!1;var n="function"==typeof this.config.onItemClick?this.config.onItemClick:null,i=this.root.querySelector(".selected");Jx.addClass(t,"selected"),i&&Jx.removeClass(i,"selected"),n(e,{from:i?this.getAttrObj(i,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(e,t){if(!e||!t)return{};var n={};Hk(t).call(t,(function(t){n[t]=e.getAttribute(t)}));var i=e.getAttribute("data-index");return i&&(n.index=Number(i)),n}},{key:"show",value:function(){Jx.removeClass(this.root,"hide"),Jx.addClass(this.root,"active")}},{key:"hide",value:function(){Jx.removeClass(this.root,"active"),Jx.addClass(this.root,"hide")}},{key:"setStyle",value:function(e){var t=this;Kk(e).forEach((function(n){t.root.style[n]=e[n]}))}},{key:"destroy",value:function(){var e;this._delegates&&(Hk(e=this._delegates).call(e,(function(e){e.destroy&&e.destroy()})),this._delegates=null);this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),e}(),zM=ee,VM=b,GM=ft("match"),WM=function(e){var t;return zM(e)&&(void 0!==(t=e[GM])?!!t:"RegExp"==VM(e))},YM=TypeError,XM=function(e){if(WM(e))throw YM("The method doesn't accept regular expressions");return e},qM=ft("match"),$M=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qM]=!1,"/./"[e](t)}catch(lU){}}return!1},ZM=An,JM=E;P.f;var QM=Un,eL=Yi,tL=XM,nL=X,iL=$M,rL=JM("".startsWith),oL=JM("".slice),aL=Math.min;ZM({target:"String",proto:!0,forced:!iL("startsWith")},{startsWith:function(e){var t=eL(nL(this));tL(e);var n=QM(aL(arguments.length>1?arguments[1]:void 0,t.length)),i=eL(e);return rL?rL(t,i,n):oL(t,n,n+i.length)===i}});var sL=zc("String").startsWith,lL=se,uL=sL,cL=String.prototype,hL=n((function(e){var t=e.startsWith;return"string"==typeof e||e===cL||lL(cL,e)&&t===cL.startsWith?uL:t})),fL=ir.includes;An({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return fL(this,e,arguments.length>1?arguments[1]:void 0)}});var dL=zc("Array").includes,pL=An,vL=XM,gL=X,yL=Yi,mL=$M,_L=g("".indexOf);pL({target:"String",proto:!0,forced:!mL("includes")},{includes:function(e){return!!~_L(yL(gL(this)),yL(vL(e)),arguments.length>1?arguments[1]:void 0)}});var bL,kL=zc("String").includes,wL=se,EL=dL,CL=kL,xL=Array.prototype,TL=String.prototype,SL=n((function(e){var t=e.includes;return e===xL||wL(xL,e)&&t===xL.includes?EL:"string"==typeof e||e===TL||wL(TL,e)&&t===TL.includes?CL:t})),PL={SEI:"sei",PLAYER_CREATE_FINISH:"playerCreateFinish",FALLBACK_ERROR:"fallbackError",FALLBACK:"fallback",AUTOPLAY_STARTED:"autoplayStarted",AUTOPLAY_PREVENTED:"autoplayWasPrevented",DOWNLOAD_SPEED_CHANGE:"downloadSpeedChange",FULLSCREEN_CHANGE:"fullscreenChange",CSS_FULLSCREEN_CHANGE:"cssFullscreenChange",MINI_STATE_CHANGE:"miniStateChange",DEFINITION_CHANGE:"definitionChange",BEFORE_DEFINITION_CHANGE:"beforeDefinitionChange",AFTER_DEFINITION_CHANGE:"afterDefinitionChange",VIDEO_RESIZE:"videoResize",PIP_CHANGE:"pipChange",USER_ACTION:"userAction",AUTOPLAY_UNMUTE:"autoplayUnmute",LONG_WAITING:"longWaiting",DEFINITION_FALLBACK:"definitionFallback",AUTOPLAY_FAIL:"autoplayFail",AUTOPLAY_SUCCESS:"autoplaySuccess",ERROR_REFRESH_CLICK:"errorRefreshClick",SOURCE_CHANGE:"sourceChange",ABR_SWITCH_START:"abrSwitchStart",ABR_SWITCH_SUCCESS:"abrSwitchSuccess",ABR_SWITCH_FAILED:"abrSwitchFailed",AD_FIRST_QUARTILE:"ad_first_quartile",AD_MIDPOINT:"ad_midpoint",AD_THIRD_QUARTILE:"ad_third_quartile",AD_CLICK:"ad_click",AD_IMPRESSION:"ad_impression",AD_RESUME:"ad_resume",AD_START:"ad_start",AD_PLAY:"ad_play",AD_PAUSE:"ad_pause",AD_TIME_UPDATE:"ad_time_update",AD_SKIPPED:"ad_skipped",AD_ERROR:"ad_error",AD_COMPLETE:"ad_complete",AD_ALL_COMPLETED:"ad_all_completed",RTM_NETWORK:"rtmNetwork"},AL=Gy(Gy({},JT),PL),RL=(zy(bL={},PL.SEI,{event:"core_event",shouldCallback:function(e){return"core.sei"===(null==e?void 0:e.eventName)}}),zy(bL,PL.RTM_NETWORK,{event:"core_event",shouldCallback:function(e){return"core.rtcnetwork"===(null==e?void 0:e.eventName)}}),zy(bL,PL.AUTOPLAY_STARTED,{event:TT}),zy(bL,PL.AUTOPLAY_PREVENTED,{event:ST}),zy(bL,PL.FULLSCREEN_CHANGE,{event:NT}),zy(bL,PL.CSS_FULLSCREEN_CHANGE,{event:FT}),zy(bL,PL.MINI_STATE_CHANGE,{event:UT}),zy(bL,PL.DEFINITION_CHANGE,{event:HT}),zy(bL,PL.BEFORE_DEFINITION_CHANGE,{event:jT}),zy(bL,PL.AFTER_DEFINITION_CHANGE,{event:BT}),zy(bL,PL.VIDEO_RESIZE,{event:zT}),zy(bL,PL.PIP_CHANGE,{event:VT}),zy(bL,PL.USER_ACTION,{event:YT}),zy(bL,PL.DOWNLOAD_SPEED_CHANGE,{event:OT}),zy(bL,PL.ABR_SWITCH_START,{event:"switch_definition_start"}),zy(bL,PL.ABR_SWITCH_SUCCESS,{event:"switch_definition_success"}),zy(bL,PL.ABR_SWITCH_FAILED,{event:"switch_definition_fail"}),bL);var IL=/["'&<>]/;function OL(e){var t,n=""+e,i=IL.exec(n);if(!i)return n;var r,o="",a=0;for(r=i.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==r&&(o+=n.substring(a,r)),a=r+1,o+=t}return a!==r?o+n.substring(a,r):o}function ML(e,t){return function(e){if($y(e))return e}(e)||function(e,t){var n=null==e?null:void 0!==nc&&Qy(e)||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(hh(s).call(s,i.value),s.length!==t);l=!0);}catch(c){u=!0,r=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||ym(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var LL=A,DL=g,NL=pr,FL=Z,UL=DL(M.f),HL=DL([].push),jL=function(e){return function(t){for(var n,i=FL(t),r=NL(i),o=r.length,a=0,s=[];o>a;)n=r[a++],LL&&!UL(i,n)||HL(s,e?[n,i[n]]:i[n]);return s}},BL={entries:jL(!0),values:jL(!1)},KL=BL.entries;An({target:"Object",stat:!0},{entries:function(e){return KL(e)}});var zL=n(te.Object.entries);var VL=Ie,GL=qe,WL=V,YL=jn,XL=TypeError,qL=function(e){return function(t,n,i,r){VL(n);var o=GL(t),a=WL(o),s=YL(o),l=e?s-1:0,u=e?-1:1;if(i<2)for(;;){if(l in a){r=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw XL("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(r=n(r,a[l],l,o));return r}},$L={left:qL(!1),right:qL(!0)}.left;An({target:"Array",proto:!0,forced:!Bf&&ve>79&&ve<83||!Hc("reduce")},{reduce:function(e){var t=arguments.length;return $L(this,e,t,t>1?arguments[1]:void 0)}});var ZL=zc("Array").reduce,JL=se,QL=ZL,eD=Array.prototype,tD=n((function(e){var t=e.reduce;return e===eD||JL(eD,e)&&t===eD.reduce?QL:t}));var nD=function(){function e(t){var n;_m(this,e),zy(this,"definition",void 0),zy(this,"source",void 0),zy(this,"text",void 0),zy(this,"fallbackUrl",void 0),zy(this,"urls",void 0),zy(this,"_currentUrlRef",void 0);var i=t.url,r=t.definition,o=t.text,a=t.source,s=t.fallbackUrls;this.definition=r,this.text=o,this.source=a,this.urls=Um(n=[i]).call(n,mm(null!=s?s:[])),this.fallbackUrl=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={url:e[0],next:null},n=t,i=1;i<e.length;i++){var r=i===e.length-1?t:null,o={url:e[i],next:r};n.next=o,n=o}return t}(this.urls),this._currentUrlRef=this.fallbackUrl}return km(e,[{key:"url",get:function(){return this._currentUrlRef.url},set:function(e){this._currentUrlRef.url=e}},{key:"next",value:function(){var e=this._currentUrlRef.next;return e&&(this._currentUrlRef=e),this._currentUrlRef}}]),e}(),iD=function(){function e(t,n,i){var r=this;_m(this,e),zy(this,"name",void 0),zy(this,"text",void 0),zy(this,"definitions",void 0),this.definitions=Hk(t).call(t,(function(e){return new nD(iE({},e,{source:r}))})),this.name=n,this.text=i}return km(e,[{key:"defaultDefinition",get:function(){return this.definitions[0]}},{key:"add",value:function(e){this.definitions.push(e)}}],[{key:"normalize",value:function(t){if(void 0===t)throw new Error('"input" cannot be undefined');var n=void 0,i=void 0,r=void 0;if("string"==typeof t?n=t:Array.isArray(t)?r=t:(n=t.url,i=t.fallbackUrls,r=t.sources),"string"==typeof n)return e.normalizeUrl(n,i);if(Array.isArray(r)){if(0===r.length)throw new Error('"sources" cannot be an empty array');return Hk(r).call(r,(function(t){var n;return new e(Hk(n=t.definitions).call(n,(function(e){return"string"==typeof e?{url:e,definition:"unknown"}:e})),t.name,t.text)}))}return[]}},{key:"normalizeUrl",value:function(t,n){var i=new e([],"unknown");return i.add(new nD({definition:"unknown",url:t,source:i,fallbackUrls:n})),[i]}}]),e}(),rD=function(){function e(t){var n,i,r,o;_m(this,e),zy(this,"defaultSource",void 0),zy(this,"defaultDefinition",void 0),zy(this,"maxFallbackRound",void 0),zy(this,"_currentDefinition",void 0),zy(this,"_sources",void 0),zy(this,"_fallbackCount",0);var a=t.url,s=t.defaultDefinition,l=t.defaultSource,u=t.sources,c=t.maxFallbackRound;this.defaultDefinition=s,this.defaultSource=l,this.maxFallbackRound=null!=c?c:1,this._sources=u;var h=a?Ym(this).call(this,a):null===(n=Ym(i=this.sources).call(i,(function(e){return void 0===l||e.name===l})))||void 0===n?void 0:Ym(r=n.definitions).call(r,(function(e){return void 0===s||e.definition===s}));this._currentDefinition=null!=h?h:null===(o=this._sources)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.definitions)||void 0===o?void 0:o[0]}return km(e,[{key:"sources",get:function(){return this._sources}},{key:"definition",get:function(){return this._currentDefinition}},{key:"source",get:function(){var e;return null===(e=this.definition)||void 0===e?void 0:e.source}},{key:"url",get:function(){var e;return null===(e=this.definition)||void 0===e?void 0:e.url},set:function(e){this.definition&&(this.definition.url=e)}},{key:"find",value:function(e,t){var n,i,r,o,a,s=this;if("string"==typeof e)return Ym(o=tD(a=this.sources).call(a,(function(e,t){return Um(e).call(e,t.definitions)}),[])).call(o,(function(t){return t.url===e}));var l=Ym(n=this.sources).call(n,(function(t){var n,i;return t.name===(null!==(n=null==e?void 0:e.source)&&void 0!==n?n:null===(i=s.source)||void 0===i?void 0:i.name)})),u=null==l?void 0:Ym(i=l.definitions).call(i,(function(t){var n,i;return t.definition===(null!==(n=null==e?void 0:e.definition)&&void 0!==n?n:null===(i=s.definition)||void 0===i?void 0:i.definition)}));return u||(null!=t&&t.fallbackToFirstDefinition&&null!=l&&null!==(r=l.definitions)&&void 0!==r&&r.length?null==l?void 0:l.definitions[0]:void 0)}},{key:"fallback",value:function(){var e;if(this._fallbackCount++,!(this._fallbackCount>=this.maxFallbackRound*this.definition.urls.length)){var t=null===(e=this._currentDefinition)||void 0===e?void 0:e.next();return null==t?void 0:t.url}this.resetFallback()}},{key:"switch",value:function(e){return this._currentDefinition=e,this.resetFallback(),e}},{key:"updateSources",value:function(e,t){var n,i,r,o,a;return this._sources=iD.normalize(e),this._currentDefinition=null!==(n=Ym(this).call(this,null!=t?t:{source:null!==(i=this.defaultSource)&&void 0!==i?i:null===(r=this._currentDefinition)||void 0===r?void 0:r.source.name,definition:null!==(o=this.defaultDefinition)&&void 0!==o?o:null===(a=this._currentDefinition)||void 0===a?void 0:a.definition}))&&void 0!==n?n:this._sources[0].definitions[0],this.resetFallback(),this}},{key:"resetFallback",value:function(){this._fallbackCount=0}}]),e}();function oD(){var e;"undefined"!=typeof Reflect&&qE?oD=MP(e=qE).call(e):oD=function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=NP(e)););return e}(e,t);if(i){var r=xy(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}};return oD.apply(this,arguments)}function aD(){return(new DOMParser).parseFromString('<svg width="150" height="162" viewBox="0 0 150 162" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M127.718 112.831H6.13675C4.19663 112.831 2.25651 108.974 2.90322 104.475C3.54993 99.9761 8.07687 99.9761 13.8972 99.9761C11.9571 97.4052 9.37028 88.4069 15.8373 81.3369C22.3044 74.2668 25.5379 74.2668 34.5918 75.5526C33.9451 63.9837 47.526 34.4178 77.2744 35.0605C107.023 35.7032 116.077 54.3421 119.957 63.3404C129.011 62.6976 147.765 66.554 149.706 87.1214C151.258 103.575 135.694 111.117 127.718 112.831Z" fill="#F1F4F8"/>\n<path d="M44.9346 91.6022L43.6782 99.8032" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M47.3545 125.695L48.6109 117.494" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M31.5347 97.7378L38.7295 101.869" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M60.7544 119.559L53.5595 115.428" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n<path d="M69.6755 44.5318L138.35 26.0209C139.115 25.8148 139.804 26.5367 139.563 27.2909L121.081 85.1146C120.982 85.4243 120.739 85.6665 120.429 85.7641L52.0645 107.28C51.2996 107.521 50.5766 106.809 50.8062 106.04L68.9776 45.2111C69.0768 44.879 69.3409 44.622 69.6755 44.5318Z" fill="#D0D6E0" stroke="#D0D6E0" stroke-width="4" stroke-linecap="round"/>\n<path d="M83.1285 52.7415C91.6454 54.3438 107.322 62.0019 101.894 79.8155" stroke="white" stroke-width="3" stroke-linecap="round"/>\n<path d="M84.138 62.3385C88.3894 63.1384 96.2148 66.9611 93.5053 75.8531" stroke="white" stroke-width="3" stroke-linecap="round"/>\n<ellipse cx="83.6417" cy="71.98" rx="3.08443" ry="3.07025" transform="rotate(12.6375 83.6417 71.98)" fill="white"/>\n<path d="M43.4699 110.358C39.5425 109.114 30.6316 108.203 26.4077 114.511C21.1278 122.397 36.5031 152.755 2.11053 160.141" stroke="#D0D6E0" stroke-width="2" stroke-linecap="round"/>\n</svg>\n',"image/svg+xml").firstChild}var sD=function(e){DP(n,e);var t=UP(n);function n(){var e,i;_m(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_error",void 0),i}return km(n,[{key:"_errorTip",get:function(){var e,t,n,i=this.player.config.i18nManager,r=null===(e=this._error)||void 0===e?void 0:e.errorCode;return this.config.errorTipsText?i.normalize(this.config.errorTipsText):Um(t="".concat(r?"[".concat(r,"] "):"")).call(t,null===(n=this._error)||void 0===n?void 0:n.message)}},{key:"afterCreate",value:function(){this._handleRefresh=this._handleRefresh.bind(this),this._focus=this._focus.bind(this),this._initEvents(),this._initIcons(),"mobile"===oT.device&&this.bind("touchend",this._focus),this.bind(".veplayer-error-refresh","click",this._handleRefresh)}},{key:"registerIcons",value:function(){return{error:{icon:aD,class:"veplayer-error-svg"}}}},{key:"updateLang",value:function(){this.config.showRefresh&&this._renderRefresh(),this._renderExtraTips()}},{key:"showError",value:function(e){this._error=e instanceof VP?e:WP(e),this.config.showErrorTip&&this._renderText(this._errorTip),this._renderExtraTips(),oD(NP(n.prototype),"show",this).call(this)}},{key:"hideError",value:function(){oD(NP(n.prototype),"hide",this).call(this)}},{key:"destroy",value:function(){"mobile"===oT.device&&this.unbind("touchend",this._focus),this.unbind(".veplayer-error-refresh","click",this._handleRefresh),this.off(AL.FALLBACK_ERROR,this.showError.bind(this)),this.off(yT,this.hideError.bind(this))}},{key:"render",value:function(){var e,t=this.player.config.i18nManager;return Um(e='<veplayer-error class="veplayer-error">\n <div class="veplayer-error-cover">\n '.concat(this.config.showErrorImg?'<div class="veplayer-error-img"></div>':"",'\n <div class="veplayer-error-tips"></div>\n ')).call(e,this.config.showRefresh?'<div class="veplayer-error-refresh">'.concat(t.getText("ERROR_REFRESH"),"</div>"):"",'\n <div class="veplayer-error-extra"></div>\n </div>\n </veplayer-error>')}},{key:"_focus",value:function(){this.player.focus({autoHide:!0})}},{key:"_initIcons",value:function(){this.config.showErrorImg&&this.appendChild(".veplayer-error-img",this.icons.error)}},{key:"_initEvents",value:function(){this.on(AL.FALLBACK_ERROR,this.showError.bind(this)),this.on(yT,this.hideError.bind(this)),this.on(cT,this.hideError.bind(this)),this.on(KT,this.hideError.bind(this))}},{key:"_renderText",value:function(e){var t=Ym(this).call(this,".veplayer-error-tips");t&&(t.innerText=e)}},{key:"_renderExtraTips",value:function(){var e,t=this,n=Ym(this).call(this,".veplayer-error-extra");n&&(n.innerHTML="");var i=this.player.config.i18nManager;null===(e=this.config.extraTips)||void 0===e||e.forEach((function(e){if(e){var n,r=Jx.createDom("div",Um(n="".concat(i.normalize(e.label),": ")).call(n,i.normalize(e.value)),void 0,"veplayer-error-detail-info");t.appendChild(".veplayer-error-extra",r)}}))}},{key:"_handleRefresh",value:function(){var e,t;null===(e=this.player)||void 0===e||e.emit(AL.ERROR_REFRESH_CLICK),null===(t=this.player)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.veplayer)||void 0===t||t.retry(),this.hideError()}},{key:"_renderRefresh",value:function(){var e,t=this.player.config.i18nManager,n=Ym(this).call(this,".veplayer-error-refresh");n&&(n.innerHTML=null!==(e=t.getText("ERROR_REFRESH"))&&void 0!==e?e:"")}}],[{key:"pluginName",get:function(){return"error"}},{key:"defaultConfig",get:function(){return{showErrorImg:!0,showErrorTip:!0,showRefresh:!0,errorTipsText:"",extraTips:[],position:RS.POSITIONS.ROOT}}}]),n}(RS),lD=function(e){DP(n,e);var t=UP(n);function n(){var e,i;_m(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(i=t.call.apply(t,Um(e=[this]).call(e,o))),"_toastNumber",0),zy(xP(i),"_toastMap",{}),i}return km(n,[{key:"toast",value:function(e,t){var n=this,i=t||{},r=i.duration,o=void 0===r?2e3:r,a=i.closable,s=void 0!==a&&a,l=this._toastNumber+1;this._toastNumber=l;var u=this._renderToast(e,s,l);return this.root.appendChild(u),this._toastMap[l]=u,setTimeout((function(){n.remove(l)}),o),l}},{key:"remove",value:function(e){var t=this._toastMap[e];t&&(this.root.contains(t)&&this.root.removeChild(t),delete this._toastMap[e])}},{key:"render",value:function(){return'<veplayer-toast class="veplayer-toast"></veplayer-toast>'}},{key:"_renderToast",value:function(e,t,n){var i=this,r=Jx.createDom("div","",void 0,"veplayer-toast-container"),o=Jx.checkIsObject(e)?e:Jx.createDom("div",e,void 0,"veplayer-toast-txt");if(r.appendChild(o),t){var a=Jx.createDom("span","×",void 0,"veplayer-toast-close");a.addEventListener("click",(function(){i.remove(n)})),r.appendChild(a)}return r}}],[{key:"pluginName",get:function(){return"toast"}},{key:"defaultConfig",get:function(){return{index:5}}}]),n}(RS);function uD(){return(new DOMParser).parseFromString('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12.7123 1C11.85 1 11.1173 1.55472 10.8516 2.32675L4.94973 2.32675C3.16413 2.32675 1.71662 3.77427 1.71662 5.55987C1.71662 7.34547 3.16413 8.79298 4.94973 8.79298L11.0483 8.79298L11.1134 8.79418C11.9936 8.82748 12.697 9.55166 12.697 10.44C12.697 11.3497 11.9596 12.0871 11.05 12.0871H5.01323C4.67882 11.4781 4.03143 11.0654 3.28763 11.0654C2.20111 11.0654 1.32031 11.9462 1.32031 13.0327C1.32031 14.1192 2.20111 15 3.28763 15C4.14992 15 4.88264 14.4452 5.14834 13.6732H11.05C12.8356 13.6732 14.2831 12.2256 14.2831 10.44C14.2831 8.65444 12.8356 7.20693 11.05 7.20693L4.94973 7.20693C4.04009 7.20693 3.30267 6.46951 3.30267 5.55987C3.30267 4.65022 4.04009 3.91281 4.94973 3.91281L10.9866 3.91281C11.321 4.52183 11.9685 4.93464 12.7123 4.93464C13.7988 4.93464 14.6796 4.05384 14.6796 2.96732C14.6796 1.8808 13.7988 1 12.7123 1ZM12.7123 2.18954C12.2827 2.18954 11.9345 2.53777 11.9345 2.96732C11.9345 3.39688 12.2827 3.7451 12.7123 3.7451C13.1418 3.7451 13.4901 3.39688 13.4901 2.96732C13.4901 2.53777 13.1418 2.18954 12.7123 2.18954ZM2.50986 13.0327C2.50986 12.6031 2.85808 12.2549 3.28763 12.2549C3.71719 12.2549 4.06541 12.6031 4.06541 13.0327C4.06541 13.4622 3.71719 13.8105 3.28763 13.8105C2.85808 13.8105 2.50986 13.4622 2.50986 13.0327Z" fill="#FFFFFF"/>\n</svg>',"image/svg+xml").firstChild}var cD=function(){function e(t){_m(this,e),zy(this,"_root",void 0),zy(this,"_config",void 0),zy(this,"_parent",void 0),zy(this,"_listDom",void 0),zy(this,"_container",void 0),zy(this,"_titleDom",void 0),zy(this,"_player",void 0),zy(this,"_delegates",void 0),zy(this,"_listType",void 0);var n=t.config,i=t.root,r=t.player;this._config=n,this._parent=i,this._player=r,this._listType=n.listType,this.renderPanel(),this._initEvents(),this._bindDomEvent()}return km(e,[{key:"changeMode",value:function(e){this.updatePanel(e),this._listType=e}},{key:"renderItemList",value:function(e){var t,n=this,i=this._config;return e&&(i.list=e),this._listDom||(this._listDom=Jx.createDom("div","",{},"item-list-panel-content")),this._listDom.innerHTML="",null===(t=i.list)||void 0===t||Hk(t).call(t,(function(e,t){var i,r,o=e.selected?"panel-item select-in":"panel-item ".concat(null!==(i=e.className)&&void 0!==i?i:"");e["data-index"]=t;var a=Jx.createDom("div","",e,o);e.showText&&("string"==typeof e.showText?a.innerHTML=e.showText:a.appendChild(e.showText)),null===(r=n._listDom)||void 0===r||r.appendChild(a)})),this._listDom}},{key:"renderTitle",value:function(){var e,t,n=this._player.config.i18nManager;if(null!==(e=this._config.panel)&&void 0!==e&&e.title&&this._listType!==hD.Inner)return this._titleDom||(this._titleDom=Jx.createDom("div","",{},"xg-mobile-panel-title")),this._titleDom.innerHTML=n.normalize(null===(t=this._config.panel)||void 0===t?void 0:t.title),this._titleDom}},{key:"updatePanel",value:function(e){this._root&&Jx.removeClass(this._root,"panel-".concat(this._listType)),this._root&&Jx.addClass(this._root,"panel-".concat(e));var t="mobile"===oT.device?"touchend":"click";e===hD.Inner?this._container&&this._bind(this._container,t,this._handleHide.bind(this)):this._container&&this._unbind(this._container,t,this._handleHide.bind(this))}},{key:"renderPanel",value:function(){var e,t,n,i=Um(e="xg-mobile-panel panel-".concat(this._config.listType," ")).call(e,null!==(t=null===(n=this._config)||void 0===n||null===(n=n.panel)||void 0===n?void 0:n.className)&&void 0!==t?t:"");this._root=Jx.createDom("div","",{},i),this._parent&&this._parent.appendChild(this._root);var r=this.renderTitle(),o=this.renderItemList();this._container=Jx.createDom("div","",{},"xg-mobile-panel-content"),this._root.appendChild(this._container),r&&this._container.appendChild(r),o&&this._container.appendChild(o)}},{key:"show",value:function(){this._root&&(Jx.removeClass(this._root,"hide"),Jx.addClass(this._root,"active"))}},{key:"hide",value:function(){this._root&&(Jx.removeClass(this._root,"active"),Jx.addClass(this._root,"hide"))}},{key:"destroy",value:function(){this._parent&&this._root&&this._parent.removeChild(this._root),this._unbindDomEvent(),this._unbindEvents()}},{key:"_bind",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&"on".concat(t)in e&&"function"==typeof n&&e.addEventListener(t,n,i)}},{key:"_unbind",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&"on".concat(t)in e&&"function"==typeof n&&e.removeEventListener(t,n,i)}},{key:"_initEvents",value:function(){var e;this._config.isAutoChange&&(window.addEventListener("orientationchange",this._handleOrientationChange.bind(this)),null===(e=this._player)||void 0===e||e.on(NT,this._handleOrientationChange.bind(this)))}},{key:"_unbindEvents",value:function(){var e;window.removeEventListener("orientationchange",this._handleOrientationChange.bind(this)),null===(e=this._player)||void 0===e||e.off(NT,this._handleOrientationChange.bind(this))}},{key:"_handleOrientationChange",value:function(){var e,t,n,i=SL(e=[90,-90,"90","-90"]).call(e,window.orientation);if(null!==(t=this._player)&&void 0!==t&&t.fullscreen&&i)this.changeMode(hD.Fullscreen);else if(this._listType!==(null===(n=this._config)||void 0===n?void 0:n.listType)){var r;this.changeMode(null===(r=this._config)||void 0===r?void 0:r.listType)}}},{key:"_bindDomEvent",value:function(){var e="mobile"===oT.device?"touchend":"click";this._listType===hD.Inner&&this._container&&this._bind(this._container,e,this._handleHide.bind(this)),this._root&&this._bind(this._root,e,this._handleHide.bind(this)),this._container&&this._bind(this._container,e,this._stopPropagation),this._listDom&&(this._delegates=RS.delegate.call(this,this._listDom,".panel-item",e,this._onItemClick.bind(this),!0))}},{key:"_unbindDomEvent",value:function(){var e,t="mobile"===oT.device?"touchend":"click";(this._root&&this._unbind(this._root,t,this._handleHide.bind(this)),this._container&&this._unbind(this._container,t,this._handleHide.bind(this)),this._container&&this._unbind(this._container,t,this._stopPropagation),this._delegates)&&(Hk(e=this._delegates).call(e,(function(e){e.destroy&&e.destroy()})),this._delegates=null)}},{key:"_stopPropagation",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"_onItemClick",value:function(e){var t,n,i,r,o=e.delegateTarget,a="function"==typeof this._config.onOptionClick?this._config.onOptionClick:null,s="function"==typeof this._config.onItemClick?this._config.onItemClick:null,l=null===(t=this._root)||void 0===t?void 0:t.querySelector(".selected");Jx.addClass(o,"selected"),l&&(Jx.removeClass(l,"selected"),r=Number(l.getAttribute("data-index")));var u=Number(o.getAttribute("data-index")),c={from:void 0!==wc(r)?null===(n=this._config.list)||void 0===n?void 0:n[r]:void 0,to:null===(i=this._config.list)||void 0===i?void 0:i[u]};null==a||a(e,c),o&&r===u||null==s||s(e,c)}},{key:"_handleHide",value:function(e){var t,n;e.stopPropagation(),e.preventDefault(),null===(t=(n=this._config).hide)||void 0===t||t.call(n)}}]),e}(),hD=function(e){return e.Middle="middle",e.Bottom="bottom",e.Fullscreen="fullscreen",e.Inner="inner",e}(hD||{}),fD=function(e){return e.Icon="Icon",e.Text="Text",e}(fD||{}),dD="mobile"===oT.device,pD=["bottom","fullscreen","inner"],vD=["middle"],gD=["bottom","inner","fullscreen"],yD=["bottom","inner","fullscreen"],mD=function(e){DP(n,e);var t=UP(n);function n(e){var i;return _m(this,n),zy(xP(i=t.call(this,e)),"optionsList",void 0),zy(xP(i),"_isIcon",void 0),zy(xP(i),"_isActive",void 0),zy(xP(i),"_curIndex",void 0),zy(xP(i),"activeEvent",void 0),zy(xP(i),"onEnter",(function(e){e.preventDefault(),e.stopPropagation(),i.emit("icon_mouseenter",{pluginName:i.pluginName}),i.toggle(!0)})),zy(xP(i),"onLeave",(function(e){e.preventDefault(),e.stopPropagation(),i.emit("icon_mouseleave",{pluginName:i.pluginName}),i._isActive&&i.toggle(!1)})),i._isIcon=!1,i._isActive=!1,i._curIndex=0,i}return km(n,[{key:"updateLang",value:function(){this.config.list&&this.renderItemList(this.config.list,this._curIndex)}},{key:"afterCreate",value:function(){var e=this,t=this.config;this.config.listType=this._getListType(),this.initIcons(),t.hidePortrait&&Jx.addClass(this.root,"portrait"),dD&&this.on(wT,(function(){e._isActive&&(e.optionsList&&e.optionsList.hide(),e._isActive=!1)})),t.list&&this.renderItemList(t.list),this.activeEvent=dD?"touchend":"mouseenter",this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave)}},{key:"initIcons",value:function(){var e=this,t=this.icons,n=Kk(t);if(n.length>0&&"Icon"===this.config.renderType)return n.forEach((function(n){e.appendChild(".xgplayer-icon",t[n])})),void(this._isIcon=!0);var i=this.appendChild(".xgplayer-icon",Jx.createDom("span","",{},"icon-text"));i&&Jx.addClass(i,"btn-text")}},{key:"show",value:function(){!this.config.list||this.config.list.length<1||this.config.hideOnSingleOption&&1===this.config.list.length||Jx.addClass(this.root,"show")}},{key:"hide",value:function(){Jx.removeClass(this.root,"show")}},{key:"toggle",value:function(e){if(e!==this._isActive){var t=this.player.controls,n=this.config.listType;e?(n&&SL(gD).call(gD,n)?null==t||t.blur():null==t||t.focus(),this.optionsList&&this.optionsList.show()):(n&&SL(gD).call(gD,n)?null==t||t.focus():null==t||t.focusAwhile(),this.optionsList&&this.optionsList.hide()),this._isActive=e}}},{key:"onItemClick",value:function(e,t){var n;e.preventDefault(),e.stopPropagation();var i=this.config.listType;this._curIndex=null===(n=t.to)||void 0===n?void 0:n.index,this.changeCurrentText(),(this.config.isItemClickHide||i&&SL(gD).call(gD,i))&&this.toggle(!1)}},{key:"onOptionClick",value:function(e,t){e.preventDefault(),e.stopPropagation()}},{key:"changeCurrentText",value:function(){if(!this._isIcon){var e=this.config.list,t=e&&this._curIndex<e.length?this._curIndex:0,n=null==e?void 0:e[t];if(n){var i,r=Ym(this).call(this,".icon-text"),o=this.player.config.i18nManager;if(r)r.innerHTML=o.normalize(null!==(i=null==n?void 0:n.iconText)&&void 0!==i?i:null==n?void 0:n.text)}}}},{key:"renderItemList",value:function(e,t){var i,r=this,o=this.config,a=this.optionsList,s=this.player;if("number"==typeof t&&(this._curIndex=t),a)return a.renderItemList(e),this.changeCurrentText(),void(a instanceof cD&&a.renderTitle());this.config.isShowIcon&&(this.optionsList=o.listType&&SL(yD).call(yD,o.listType)?new cD({config:{list:e||[],onItemClick:function(e,t){r.onItemClick(e,t)},onOptionClick:function(e,t){r.onOptionClick(e,t)},panel:this.config.panel,listType:null!==(i=o.listType)&&void 0!==i?i:n.defaultConfig.listType,isAutoChange:o.isAutoChange,hide:function(){return r.toggle(!1)}},root:s.root,player:s}):new KM({config:{data:e||[],onItemClick:function(e,t){r.onItemClick(e,t)}},root:this.root}),this.changeCurrentText(),this.show())}},{key:"destroy",value:function(){this.activeEvent&&this.unbind(this.activeEvent,this.onEnter),this.unbind("mouseleave",this.onLeave),this.optionsList&&(this.optionsList.destroy(),this.optionsList=void 0)}},{key:"render",value:function(){return this.config.isShowIcon?'<xg-icon class="xg-options-icon '.concat(this.config.className||"",'">\n <div class="xgplayer-icon">\n </div>\n </xg-icon>'):""}},{key:"_getListType",value:function(){var e,t=this.config.listType;return null!==(e=this.player)&&void 0!==e&&null!==(e=e.config)&&void 0!==e&&e.listType&&(t=this.player.config.listType),dD||t&&SL(pD).call(pD,t)||(t="bottom"),dD||t&&SL(vD).call(vD,t)||(t="middle"),t}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:dD?nU.ROOT_TOP_RIGHT:nU.CONTROLS_RIGHT,listType:dD?"bottom":"middle",index:100,list:[],listStyle:{},hidePortrait:!0,isShowIcon:!1,renderType:dD?"Icon":"Text",isItemClickHide:!0,hideOnSingleOption:!0,isAutoChange:!0}}}]),n}(RS),_D=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"updateLang",value:function(){this.renderItemList()}},{key:"beforeCreate",value:function(e){var t=e.player.config.sources.sourceManager;e.config.list=t.sources}},{key:"registerIcons",value:function(){return{source:{icon:uD}}}},{key:"renderItemList",value:function(){var e=this.config.sourceManager,t=e.sources,i=e.source,r=this.player.config.i18nManager;if(t.length<2)this.hide();else{var o=Hk(t).call(t,(function(e){var t;return Gy(Gy({},e),{},{showText:null!==(t=r.normalize(e.text))&&void 0!==t?t:e.name,selected:!1})})),a=$A(o).call(o,(function(e){return e.name===(null==i?void 0:i.name)}));this.config.list=t,a>-1&&(o[a].selected=!0),oD(NP(n.prototype),"renderItemList",this).call(this,o,a)}}},{key:"onItemClick",value:function(e,t){var i,r=this;oD(NP(n.prototype),"onItemClick",this).call(this,e,t),null===(i=this.player.config)||void 0===i||i.veplayer.switch({source:t.to.name},{fallbackToFirstDefinition:!0}).catch((function(){r.renderItemList()}))}}],[{key:"pluginName",get:function(){return"sources"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:4,panel:{title:{jp:"ライン選ぶ",en:"Line Choose","zh-cn":"线路选择","zh-hk":"線路選擇"}},list:[],className:"xgplayer-sources",hidePortrait:!1,isShowIcon:!0})}},{key:"textTips",get:function(){return{jp:"ライン",en:"Line","zh-cn":"线路","zh-hk":"線路"}}}]),n}(mD);function bD(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M16 3.8001H4C3.55817 3.8001 3.2 4.15827 3.2 4.6001V12.6001C3.2 13.0419 3.55817 13.4001 4 13.4001H16C16.4418 13.4001 16.8 13.0419 16.8 12.6001V4.6001C16.8 4.15827 16.4418 3.8001 16 3.8001ZM4 2.6001C2.89543 2.6001 2 3.49553 2 4.6001V12.6001C2 13.7047 2.89543 14.6001 4 14.6001H16C17.1046 14.6001 18 13.7047 18 12.6001V4.6001C18 3.49553 17.1046 2.6001 16 2.6001H4ZM5.0249 6.24509V11.6001H5.9024V9.23009H8.6174V11.6001H9.4949V6.24509H8.6174V8.48009H5.9024V6.24509H5.0249ZM10.5474 6.24509V11.6001H12.5049C13.3749 11.6001 14.0274 11.3601 14.4774 10.8801C14.9049 10.4226 15.1224 9.77009 15.1224 8.92259C15.1224 8.06759 14.9049 7.41509 14.4774 6.96509C14.0274 6.48509 13.3749 6.24509 12.5049 6.24509H10.5474ZM11.4249 6.99509H12.3399C13.0074 6.99509 13.4949 7.14509 13.8024 7.45259C14.1024 7.75259 14.2524 8.24759 14.2524 8.92259C14.2524 9.58259 14.1024 10.0701 13.8024 10.3851C13.4949 10.6926 13.0074 10.8501 12.3399 10.8501H11.4249V6.99509ZM4.15 16.1001C3.79101 16.1001 3.5 16.3911 3.5 16.7501C3.5 17.1091 3.79101 17.4001 4.15 17.4001H15.85C16.209 17.4001 16.5 17.1091 16.5 16.7501C16.5 16.3911 16.209 16.1001 15.85 16.1001H4.15Z" fill="#ffffff"/>\n</svg>',"image/svg+xml").firstChild}var kD={exports:{}};!function(e,n){var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",k="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]",R=/\w*$/,I=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[_]=M[b]=M[a]=M[s]=M[k]=M[w]=M[E]=M[C]=M[x]=M[c]=M[h]=M[f]=M[p]=M[v]=M[g]=M[y]=M[T]=M[S]=M[P]=M[A]=!0,M["[object Error]"]=M[l]=M[m]=!1;var L="object"==wc(t)&&t&&t.Object===Object&&t,D="object"==("undefined"==typeof self?"undefined":wc(self))&&self&&self.Object===Object&&self,N=L||D||Function("return this")(),F=n&&!n.nodeType&&n,U=F&&e&&!e.nodeType&&e,H=U&&U.exports===F;function j(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function K(e,t,n,i){var r=-1,o=e?e.length:0;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Y,X=Array.prototype,q=Function.prototype,$=Object.prototype,Z=N["__core-js_shared__"],J=(Y=/[^.]+$/.exec(Z&&Bw(Z)&&Bw(Z).IE_PROTO||""))?"Symbol(src)_1."+Y:"",Q=q.toString,ee=$.hasOwnProperty,te=$.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=H?N.Buffer:void 0,re=N.Symbol,oe=N.Uint8Array,ae=G(fE,Object),se=Object.create,le=$.propertyIsEnumerable,ue=cw(X),ce=rE,he=ie?ie.isBuffer:void 0,fe=G(Kk,Object),de=Ue(N,"DataView"),pe=Ue(N,"Map"),ve=Ue(N,"Promise"),ge=Ue(N,"Set"),ye=Ue(N,"WeakMap"),me=Ue(Object,"create"),_e=ze(de),be=ze(pe),ke=ze(ve),we=ze(ge),Ee=ze(ye),Ce=re?re.prototype:void 0,xe=Ce?Ce.valueOf:void 0;function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ae(e){this.__data__=new Se(e)}function Re(e,t){var n=Ge(e)||function(e){return function(e){return function(e){return!!e&&"object"==wc(e)}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,r=!!i;for(var a in e)!t&&!ee.call(e,a)||r&&("length"==a||Be(a,i))||n.push(a);return n}function Ie(e,t,n){var i=e[t];ee.call(e,t)&&Ve(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function Oe(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function Me(e,t,n,i,r,d,m){var I;if(i&&(I=d?i(e,r,d,m):i(e)),void 0!==I)return I;if(!qe(e))return e;var O=Ge(e);if(O){if(I=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(e,I)}else{var L=je(e),D=L==l||L==u;if(Ye(e))return function(e,t){if(t)return zk(e).call(e);var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||D&&!d){if(z(e))return d?e:{};if(I=function(e){return"function"!=typeof e.constructor||Ke(e)?{}:(t=ae(e),qe(t)?se(t):{});var t}(D?{}:e),!t)return function(e,t){return Ne(e,He(e),t)}(e,function(e,t){return e&&Ne(t,$e(t),e)}(I,e))}else{if(!M[L])return d?e:{};I=function(e,t,n,i){var r=e.constructor;switch(t){case _:return De(e);case a:case s:return new r(+e);case b:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case k:case w:case E:case C:case x:case T:case S:case P:case A:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case c:return function(e,t,n){var i=t?n(V(e),!0):V(e);return K(i,j,new e.constructor)}(e,i,n);case h:case g:return new r(e);case p:return function(e){var t=new e.constructor(e.source,R.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){var i=t?n(W(e),!0):W(e);return K(i,B,new e.constructor)}(e,i,n);case y:return o=e,xe?Object(xe.call(o)):{}}var o}(e,L,Me,t)}}m||(m=new Ae);var N=m.get(e);if(N)return N;if(m.set(e,I),!O)var F=n?function(e){return function(e,t,n){var i=t(e);return Ge(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,$e,He)}(e):$e(e);return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););}(F||e,(function(r,o){F&&(r=e[o=r]),Ie(I,o,Me(r,t,n,i,o,e,m))})),I}function Le(e){return!(!qe(e)||(t=e,J&&J in t))&&(Xe(e)||z(e)?ne:I).test(ze(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(e,t,n,i){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r],s=i?i(n[a],e[a],a,n,e):void 0;Ie(n,a,void 0===s?e[a]:s)}return n}function Fe(e,t){var n,i,r=e.__data__;return("string"==(i=wc(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:Hk(r)}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(n)?n:void 0}Te.prototype.clear=function(){this.__data__=me?me(null):{}},Te.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Te.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===i?void 0:n}return ee.call(t,e)?t[e]:void 0},Te.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Te.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},Se.prototype.get=function(e){var t=this.__data__,n=Oe(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Oe(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,i=Oe(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Te,map:new(pe||Se),string:new Te}},Pe.prototype.delete=function(e){return Fe(this,e).delete(e)},Pe.prototype.get=function(e){return Fe(this,e).get(e)},Pe.prototype.has=function(e){return Fe(this,e).has(e)},Pe.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new Se},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var i=n.__data__;if(!pe||i.length<199)return i.push([e,t]),this;n=this.__data__=new Pe(i)}return n.set(e,t),this};var He=ce?G(ce,Object):function(){return[]},je=function(e){return te.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}function ze(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(de&&je(new de(new ArrayBuffer(1)))!=b||pe&&je(new pe)!=c||ve&&je(ve.resolve())!=d||ge&&je(new ge)!=v||ye&&je(new ye)!=m)&&(je=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,i=n?ze(n):void 0;if(i)switch(i){case _e:return b;case be:return c;case ke:return d;case we:return v;case Ee:return m}return t});var Ge=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Xe(e)}var Ye=he||function(){return!1};function Xe(e){var t=qe(e)?te.call(e):"";return t==l||t==u}function qe(e){var t=wc(e);return!!e&&("object"==t||"function"==t)}function $e(e){return We(e)?Re(e):function(e){if(!Ke(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Me(e,!0,!0)}}(kD,kD.exports);var wD=n(kD.exports),ED=function(e){DP(i,e);var t,n=UP(i);function i(){var e,t;_m(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return zy(xP(t=n.call.apply(n,Um(e=[this]).call(e,o))),"_waitingStartTime",0),zy(xP(t),"_timer",void 0),zy(xP(t),"_toastId",void 0),t}return km(i,[{key:"updateLang",value:function(){this.renderItemList()}},{key:"beforeCreate",value:function(e){var t,n=e.player.config.sources.sourceManager;e.config.list=null===(t=n.source)||void 0===t?void 0:t.definitions}},{key:"afterCreate",value:function(){var e,t;oD(NP(i.prototype),"afterCreate",this).call(this),(null!==(e=null===(t=this.player.config.sourceManager.source)||void 0===t?void 0:t.definitions)&&void 0!==e?e:[]).length<2?this.hide():(this.renderItemList(),this.on(AL.WAITING,this._waiting.bind(this)),this.on(AL.PLAYING,this._clearTimer.bind(this)),this.on(AL.PAUSE,this._clearTimer.bind(this)),this.on(AL.PLAY,this._clearTimer.bind(this)),this._initTimeUpdateEvent())}},{key:"registerIcons",value:function(){return{source:{icon:bD}}}},{key:"renderItemList",value:function(){var e,t,n,r=this,o=this.player.config.sourceManager,a=null!==(e=null===(t=o.source)||void 0===t?void 0:t.definitions)&&void 0!==e?e:[];if(a.length<2)this.hide();else{var s=Hk(a).call(a,(function(e){var t;return{url:e.url,definition:e.definition||"",showText:null!==(t=r.player.config.i18nManager.normalize(e.text))&&void 0!==t?t:e.definition,selected:!1}})),l=$A(a).call(a,(function(e){var t;return e.definition===(null===(t=o.definition)||void 0===t?void 0:t.definition)}));this.config.list=null===(n=o.source)||void 0===n?void 0:n.definitions,l>-1&&(s[l].selected=!0),oD(NP(i.prototype),"renderItemList",this).call(this,s,l)}}},{key:"onItemClick",value:function(e,t){var n,r=this;this._showToast(t.to),oD(NP(i.prototype),"onItemClick",this).call(this,e,t),null===(n=this.player.config)||void 0===n||n.veplayer.switch({definition:t.to.definition}).catch((function(){r.renderItemList()}))}},{key:"fallback",value:(t=Yy(ny().mark((function e(){var t,n,i,r,o,a,s,l=arguments;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=l.length>0&&void 0!==l[0]?l[0]:{toast:!0},r=this.player.config.sourceManager,!((o=$A(t=this.config.demotePriority).call(t,(function(e){var t;return e===(null===(t=r.definition)||void 0===t?void 0:t.definition)})))<0)){e.next=5;break}return e.abrupt("return");case 5:if(a=wD(r.definition),s=this._getNextDefinition(o)){e.next=9;break}return e.abrupt("return");case 9:if(!i.toast){e.next=15;break}return e.next=12,this._toast(s);case 12:if(e.sent){e.next=15;break}return e.abrupt("return");case 15:this.player.emit(AL.DEFINITION_FALLBACK,{from:a,to:s}),null===(n=this.player.config)||void 0===n||n.veplayer.switch({definition:s.definition}).catch((function(){}));case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_waiting",value:function(){var e=this;if(!this._timer){this._waitingStartTime=Date.now();var t=this.player.currentTime;this._timer=window.setTimeout((function(){e.player&&e.player.currentTime<=t+.1&&(e.player.emit(AL.LONG_WAITING),e.config.needFallback&&e.fallback({toast:!0}),e._clearTimer())}),this.config.longWaitingTime)}}},{key:"_clearTimer",value:function(){this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._waitingStartTime&&(this._waitingStartTime=0)}},{key:"_toast",value:function(e){var t=this,n=this.player.config.i18nManager;return new jk((function(i){var r,o,a=null===(r=t.player)||void 0===r?void 0:r.getPlugin("toast");if(a){var s=Jx.createDom("div",n.getText("DEFINITION_FALLBACK_TOAST"),void 0,"veplayer-toast-txt"),l=null!==(o=t.player.config.i18nManager.normalize(e.text))&&void 0!==o?o:e.definition,u=Jx.createDom("span",l,void 0,"veplayer-toast-txt-bt");s.appendChild(u);var c=a.toast(s,{duration:5e3,closable:!0});u.addEventListener("click",(function(){a.remove(c),i(!0)}))}else i(!1)}))}},{key:"_getNextDefinition",value:function(e){var t,n=this.player.config.sourceManager;if(null!==(t=n.source)&&void 0!==t&&t.definitions.length&&!(e+1>=this.config.demotePriority.length)){var i=e+1,r=Ym(n).call(n,{definition:this.config.demotePriority[i]});return r||this._getNextDefinition(i)}}},{key:"_initTimeUpdateEvent",value:function(){var e=this,t=this.player.currentTime;this.on(AL.TIME_UPDATE,(function(){var n=e.player.currentTime;n!==t?(t=n,e._clearTimer()):t=n}))}},{key:"_showToast",value:function(e){var t,n,i,r=this,o=null===(t=this.player)||void 0===t?void 0:t.getPlugin("toast"),a=this.player.config.i18nManager;o&&(this._toastId&&o.remove(this._toastId),this._toastId=o.toast(Um(n="".concat(a.getText("DEFINITION_SWITCHING")," ")).call(n,null!==(i=e.showText)&&void 0!==i?i:e.definition," ..."),{duration:2e3,closable:!0}),this.player.once(AL.AFTER_DEFINITION_CHANGE,(function(){void 0!==r._toastId&&o.remove(r._toastId)})))}}],[{key:"pluginName",get:function(){return"definition"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:3,list:[],panel:{title:{jp:"クラリティセレクション",en:"Definition Choose","zh-cn":"清晰度选择","zh-hk":"清晰度選擇"}},className:"xgplayer-definition",hidePortrait:!1,isShowIcon:!0,longWaitingTime:5e3,needFallback:!1,demotePriority:["uhd","hd","sd","ld","ao"]})}},{key:"textTips",get:function(){return{jp:"明快さ",en:"Definition","zh-cn":"清晰度","zh-hk":"清晰度"}}}]),i}(mD),CD={"biz:vod":"veplayer.biz.vod.[env].[ext]","biz:live":"veplayer.biz.live.[env].[ext]","plugin:flv":"veplayer.plugin.flv.[env].[ext]","plugin:mp4":"veplayer.plugin.mp4.[env].[ext]","plugin:hls":"veplayer.plugin.hls.[env].[ext]","plugin:hlsjs":"veplayer.plugin.hlsjs.[env].[ext]","plugin:dashjs":"veplayer.plugin.dashjs.[env].[ext]","plugin:shaka":"veplayer.plugin.shaka.[env].[ext]","plugin:rtm":"veplayer.plugin.rtm.[env].[ext]","plugin:xgvideo":"veplayer.plugin.xgvideo.[env].[ext]","plugin:drm":"veplayer.plugin.drm.[env].[ext]","plugin:abr":"veplayer.plugin.abr.[env].[ext]","strategy:base":"veplayer.strategy.base.[env].[ext]","strategy:rtmAdaptiveBuffer":"veplayer.strategy.rtm.adaptive.buffer.[env].[ext]"},xD=function(e){return e.BizVod="biz:vod",e.BizLive="biz:live",e.PluginFlv="plugin:flv",e.PluginMp4="plugin:mp4",e.PluginHls="plugin:hls",e.PluginHlsJs="plugin:hlsjs",e.PluginDashJs="plugin:dashjs",e.PluginShaka="plugin:shaka",e.PluginRtm="plugin:rtm",e.PluginXgvideo="plugin:xgvideo",e.PluginDrm="plugin:drm",e.PluginAbr="plugin:abr",e.StrategyBase="strategy:base",e.StrategyRtmAdaptiveBuffer="strategy:rtmAdaptiveBuffer",e}(xD||{}),TD=function(){function e(t){var n=this;_m(this,e),zy(this,"modules",{}),zy(this,"mountPromiseMap",{}),zy(this,"_baseUrl",void 0),zy(this,"_moduleSystem",void 0),zy(this,"load",function(){var e=Yy(ny().mark((function e(t,i){var r,o,a,s,l;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n._moduleSystem){e.next=2;break}throw new Error('You have to specify moduleSystem first, call "setModuleSystem(moduleSystem)" to set module system');case 2:if(CD[t]){e.next=4;break}throw new Error('Invalid module name: "'.concat(t,'"'));case 4:if("esm"!==n._moduleSystem){e.next=11;break}if(n.modules[t]){e.next=9;break}throw new Error('Dynamic module "'.concat(t,'" not found, you have to register it first under ESM'));case 9:return o=n.modules[t].exports,e.abrupt("return",null!==(r=o.default)&&void 0!==r?r:o);case 11:if(!n.modules[t]){e.next=21;break}if(1!==n.modules[t].state){e.next=16;break}return e.abrupt("return",n.modules[t].exports);case 16:if(0!==n.modules[t].state){e.next=20;break}return e.abrupt("return",n.mountPromiseMap[t].then((function(e){var t;return null!==(t=e.default)&&void 0!==t?t:e})));case 20:throw null!==(a=n.modules[t].error)&&void 0!==a?a:new Error('Dynamic module "'.concat(t,'" load failed.'));case 21:return s=[n._baseUrl,CD[t]].join("/").replace("[env]","production").replace("[ext]","js"),l={src:null!=i?i:s,name:t,state:0,exports:{__PLUGIN_NAME__:t}},n.modules[t]=l,n.mountPromiseMap[t]=n._mount(l),e.abrupt("return",n.mountPromiseMap[t]);case 26:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),zy(this,"registerPlugin",(function(e,t){if(!n._moduleSystem)throw new Error("You have to specify moduleSystem first, call setModuleSystem(moduleSystem) to set module system");return"esm"===n._moduleSystem?(n.modules[e]={src:"esm:".concat(e),name:e,state:1,exports:t},n.modules[e].exports):(n.modules[e]?n.modules[e].exports=t:n.modules[e]={src:"umd:".concat(e),name:e,state:1,exports:t},n.modules[e].exports)})),zy(this,"register",(function(e){return Hk(e).call(e,(function(e){return n.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return km(e,[{key:"baseUrl",get:function(){return this._baseUrl}},{key:"moduleSystem",get:function(){return this._moduleSystem}},{key:"setModuleSystem",value:function(e){this._moduleSystem=e}},{key:"setBaseUrl",value:function(e){this._baseUrl=e}},{key:"_mount",value:function(e){var t=this.modules;return new jk((function(n,i){var r=document.createElement("script");r.src=e.src,r.onload=function(){e.state=1,n(t[e.name].exports),r.onload=null},r.onerror=function(t){e.state=2,e.error=t,i(t),r.onerror=null},document.body.appendChild(r)}))}}]),e}(),SD=n(Lg),PD="Expected a function",AD="__lodash_placeholder__",RD=1,ID=2,OD=4,MD=8,LD=16,DD=32,ND=64,FD=128,UD=512,HD=1/0,jD=9007199254740991,BD=17976931348623157e292,KD=NaN,zD=[["ary",FD],["bind",RD],["bindKey",ID],["curry",MD],["curryRight",LD],["flip",UD],["partial",DD],["partialRight",ND],["rearg",256]],VD="[object Function]",GD="[object GeneratorFunction]",WD="[object Symbol]",YD=/^\s+|\s+$/g,XD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qD=/\{\n\/\* \[wrapped with (.+)\] \*/,$D=/,? & /,ZD=/^[-+]0x[0-9a-f]+$/i,JD=/^0b[01]+$/i,QD=/^\[object .+?Constructor\]$/,eN=/^0o[0-7]+$/i,tN=/^(?:0|[1-9]\d*)$/,nN=Mw,iN="object"==wc(t)&&t&&t.Object===Object&&t,rN="object"==("undefined"==typeof self?"undefined":wc(self))&&self&&self.Object===Object&&self,oN=iN||rN||Function("return this")();function aN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function sN(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,i){var r=e.length,o=n+(i?1:-1);for(;i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,lN,n);var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,0)>-1}function lN(e){return e!=e}function uN(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==AD||(e[n]=AD,o[r++]=n)}return o}var cN,hN,fN,dN=Function.prototype,pN=Object.prototype,vN=oN["__core-js_shared__"],gN=(cN=/[^.]+$/.exec(vN&&Bw(vN)&&Bw(vN).IE_PROTO||""))?"Symbol(src)_1."+cN:"",yN=dN.toString,mN=pN.hasOwnProperty,_N=pN.toString,bN=RegExp("^"+yN.call(mN).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kN=Object.create,wN=Math.max,EN=Math.min,CN=(hN=IN(Object,"defineProperty"),(fN=IN.name)&&fN.length>2?hN:void 0);function xN(e){if(!UN(e)||function(e){return!!gN&&gN in e}(e))return!1;var t=function(e){var t=UN(e)?_N.call(e):"";return t==VD||t==GD}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?bN:QD;return t.test(function(e){if(null!=e){try{return yN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function TN(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,i=UN(n=e.prototype)?kN(n):{},r=e.apply(i,t);return UN(r)?r:i}}function SN(e,t,n,i,r,o,a,s,l,u){var c=t&FD,h=t&RD,f=t&ID,d=t&(MD|LD),p=t&UD,v=f?void 0:TN(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(d)var b=RN(g),k=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&i++;return i}(m,b);if(i&&(m=function(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,l=t.length,u=wN(o-a,0),c=Array(l+u),h=!i;++s<l;)c[s]=t[s];for(;++r<a;)(h||r<o)&&(c[n[r]]=e[r]);for(;u--;)c[s++]=e[r++];return c}(m,i,r,d)),o&&(m=function(e,t,n,i){for(var r=-1,o=e.length,a=-1,s=n.length,l=-1,u=t.length,c=wN(o-s,0),h=Array(c+u),f=!i;++r<c;)h[r]=e[r];for(var d=r;++l<u;)h[d+l]=t[l];for(;++a<s;)(f||r<o)&&(h[d+n[a]]=e[r++]);return h}(m,o,a,d)),y-=k,d&&y<u){var w=uN(m,b);return PN(e,t,SN,g.placeholder,n,m,w,s,l,u-y)}var E=h?n:this,C=f?E[e]:e;return y=m.length,s?m=function(e,t){var n=e.length,i=EN(t.length,n),r=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(e);for(;i--;){var o=t[i];e[i]=LN(o,n)?r[o]:void 0}return e}(m,s):p&&y>1&&SD(m).call(m),c&&l<y&&(m.length=l),this&&this!==oN&&this instanceof g&&(C=v||TN(C)),C.apply(E,m)}}function PN(e,t,n,i,r,o,a,s,l,u){var c=t&MD;t|=c?DD:ND,(t&=~(c?ND:DD))&OD||(t&=~(RD|ID));var h=n(e,t,r,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,l,u);return h.placeholder=i,DN(h,e,t)}function AN(e,t,n,i,r,o,a,s){var l=t&ID;if(!l&&"function"!=typeof e)throw new TypeError(PD);var u=i?i.length:0;if(u||(t&=~(DD|ND),i=r=void 0),a=void 0===a?a:wN(BN(a),0),s=void 0===s?s:BN(s),u-=r?r.length:0,t&ND){var c=i,h=r;i=r=void 0}var f=[e,t,n,i,r,c,h,o,a,s];if(e=f[0],t=f[1],n=f[2],i=f[3],r=f[4],!(s=f[9]=null==f[9]?l?0:e.length:wN(f[9]-u,0))&&t&(MD|LD)&&(t&=~(MD|LD)),t&&t!=RD)d=t==MD||t==LD?function(e,t,n){var i=TN(e);return function r(){for(var o=arguments.length,a=Array(o),s=o,l=RN(r);s--;)a[s]=arguments[s];var u=o<3&&a[0]!==l&&a[o-1]!==l?[]:uN(a,l);return(o-=u.length)<n?PN(e,t,SN,r.placeholder,void 0,a,u,void 0,void 0,n-o):aN(this&&this!==oN&&this instanceof r?i:e,this,a)}}(e,t,s):t!=DD&&t!=(RD|DD)||r.length?SN.apply(void 0,f):function(e,t,n,i){var r=t&RD,o=TN(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=i.length,c=Array(u+s),h=this&&this!==oN&&this instanceof t?o:e;++l<u;)c[l]=i[l];for(;s--;)c[l++]=arguments[++a];return aN(h,r?n:this,c)}}(e,t,n,i);else var d=function(e,t,n){var i=t&RD,r=TN(e);return function t(){return(this&&this!==oN&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return DN(d,e,t)}function RN(e){return e.placeholder}function IN(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xN(n)?n:void 0}function ON(e){var t=e.match(qD);return t?t[1].split($D):[]}function MN(e,t){var n=t.length,i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(XD,"{\n/* [wrapped with "+t+"] */\n")}function LN(e,t){return!!(t=null==t?jD:t)&&("number"==typeof e||tN.test(e))&&e>-1&&e%1==0&&e<t}var DN=CN?function(e,t,n){var i,r=t+"";return CN(e,"toString",{configurable:!0,enumerable:!1,value:(i=MN(r,NN(ON(r),n)),function(){return i})})}:function(e){return e};function NN(e,t){return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););}(zD,(function(n){var i="_."+n[0];t&n[1]&&!sN(e,i)&&e.push(i)})),Vx(e).call(e)}function FN(e,t,n){var i=AN(e,MD,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=FN.placeholder,i}function UN(e){var t=wc(e);return!!e&&("object"==t||"function"==t)}function HN(e){return"symbol"==wc(e)||function(e){return!!e&&"object"==wc(e)}(e)&&_N.call(e)==WD}function jN(e){return e?(e=function(e){if("number"==typeof e)return e;if(HN(e))return KD;if(UN(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=UN(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(YD,"");var n=JD.test(e);return n||eN.test(e)?nN(zk(e).call(e,2),n?2:8):ZD.test(e)?KD:+e}(e))===HD||e===-HD?(e<0?-1:1)*BD:e==e?e:0:0===e?e:0}function BN(e){var t=jN(e),n=t%1;return t==t?n?t-n:t:0}FN.placeholder={};var KN=n(FN),zN=h,VN=Z,GN=Dn,WN=jn,YN=Hc,XN=Math.min,qN=[].lastIndexOf,$N=!!qN&&1/[1].lastIndexOf(1,-0)<0,ZN=YN("lastIndexOf"),JN=$N||!ZN?function(e){if($N)return zN(qN,this,arguments)||0;var t=VN(this),n=WN(t),i=n-1;for(arguments.length>1&&(i=XN(i,GN(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:qN;An({target:"Array",proto:!0,forced:JN!==[].lastIndexOf},{lastIndexOf:JN});var QN,eF=zc("Array").lastIndexOf,tF=se,nF=eF,iF=Array.prototype,rF=n((function(e){var t=e.lastIndexOf;return e===iF||tF(iF,e)&&t===iF.lastIndexOf?nF:t})),oF=null===(QN=document.currentScript)||void 0===QN?void 0:QN.src,aF=new TD({baseUrl:null==oF?void 0:zk(oF).call(oF,0,null==oF?void 0:rF(oF).call(oF,"/"))}),sF=aF.registerPlugin,lF=aF.register;function uF(e,t){return cF.apply(this,arguments)}function cF(){return cF=Yy(ny().mark((function e(t,n){var i;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,aF.load(t,n);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),GP(BP.MODULE_LOAD_ERROR,{ext:{name:t,cdn:null===e.t0||void 0===e.t0||null===(i=e.t0.target)||void 0===i?void 0:i.src},error:e.t0});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),cF.apply(this,arguments)}var hF=function(e){if(e){hL(e).call(e,"//")&&(e=location.protocol+e);try{return new BM(e)}catch(lU){return}}};function fF(e){var t,n={},i=function(e,t){var n=void 0!==nc&&Qy(e)||e["@@iterator"];if(!n){if($y(e)||(n=ym(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.attributes);try{for(i.s();!(t=i.n()).done;){var r=t.value;n[r.name]=r.value}}catch(o){i.e(o)}finally{i.f()}return n}function dF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Kk(t).forEach((function(n){var i=n,r=t[n];r&&(null==e||e.setAttribute(i,r))})),e}function pF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fF(e);return Kk(n).forEach((function(n){t[n]?null==e||e.setAttribute(n,t[n]):null==e||e.removeAttribute(n)})),e}var vF=Object.freeze({__proto__:null,getAttributes:fF,replaceAttributes:pF,setAttributes:dF}),gF=['video/mp4;codecs="hev1.1.6.L120.90"','video/mp4;codecs="hev1.2.4.L120.90"','video/mp4;codecs="hev1.3.E.L120.90"','video/mp4;codecs="hev1.4.10.L120.90"'],yF=KN((function(e,t){var n;return null==t?void 0:SL(n=t.split("?")[0].toLowerCase()).call(n,e)})),mF=yF(".m3u8"),_F=yF(".mp4"),bF=yF(".flv"),kF=yF(".sdp"),wF=yF(".mpd");function EF(e){return mF(e)?"hls":bF(e)?"flv":kF(e)?"rtm":_F(e)?"mp4":wF(e)?"dash":"unknown"}function CF(){return(CF=Yy(ny().mark((function e(){var t,n;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,uF(xD.PluginXgvideo);case 2:return t=e.sent,n=t.XGVideoPlugin,e.abrupt("return",null==n?void 0:n.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Gy(Gy(Gy({},Jx),vF),{},{getStreamType:EF,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xy.H264;return e===Xy.H265?oT.isHevcSupported():e===Xy.H264?oT.isMSESupport():oT.isMSESupport(e)},isSoftDecodeSupported:function(){return CF.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xy.H264;return void 0!==window.ManagedMediaSource&&(e===Xy.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===Xy.H265?gF.some((function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var n,i=hF(e);if(!e||!i)return null!==(n=e)&&void 0!==n?n:"";var r,o=hL(e).call(e,"//");for(var a in t){var s,l,u=t[a];if(null!=i&&i.searchParams.has(a))null==i||null===(s=i.searchParams)||void 0===s||s.set(a,u);else null==i||null===(l=i.searchParams)||void 0===l||l.append(a,u)}return e=i.toString(),o?null===(r=e)||void 0===r?void 0:r.replace(location.protocol,""):e},getUrlObject:hF});var xF=oT.isWeixin,TF=oT.os,SF=oT.device,PF=TF.isAndroid,AF=TF.isIos,RF="mobile"===SF,IF=0,OF=!1,MF=function(e){DP(n,e);var t=UP(n);function n(e){var i;return _m(this,n),zy(xP(i=t.call(this,e)),"_hasSetUserAutoplay",void 0),zy(xP(i),"_timer",void 0),zy(xP(i),"_wxTimer",void 0),zy(xP(i),"_state",{mode:0,showUnmuteBt:!1}),zy(xP(i),"userClickPlay",(function(){if(!OF){var e=i.player.play();e&&e.then?e.then((function(){console.log("user action autoplay success"),OF=!0})).catch((function(e){console.warn("user action autoplay fail:",e)})):(console.warn("no play promise"),OF=!0)}})),i}return km(n,[{key:"afterCreate",value:function(){this.initState(),this.initEvents(),this.setWXAutoPlay()}},{key:"updateLang",value:function(){this.renderUnmuteBt()}},{key:"initState",value:function(){this._state.mode=this.player.muted?1:0}},{key:"initEvents",value:function(){this.player.on(ST,this.handleAutoplayPrevented.bind(this)),this.player.on(TT,this.handleAutoplayStart.bind(this)),this.player.on(_T,this.handleVolumechange.bind(this)),this.setUserActionAutoPlay()}},{key:"setWXAutoPlay",value:function(){xF&&this.player.config.autoplay&&this.config.enableWxJsBridgeAutoplay&&(window.WeixinJSBridge?this.wxPlay():document.addEventListener("WeixinJSBridgeReady",this.wxPlay.bind(this),!1))}},{key:"wxCanPlayFn",value:function(){var e=this;window.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(function(){e._wxTimer=window.setTimeout((function(){e._wxTimer&&clearTimeout(e._wxTimer);var t=e.player.play();t&&t.then?t.then((function(){console.log("wechat autoplay success")})).catch((function(t){console.warn("wechat autoplay fail:",t),e._state.showUnmuteBt=!1,e.renderUnmuteBt()})):console.warn("wechat browser no play promise")}))}))}},{key:"wxPlay",value:function(){this.player.readyState>=2?this.wxCanPlayFn():PF?this.player.once(yT,this.wxCanPlayFn.bind(this)):AF&&this.player.once(PT,this.wxCanPlayFn.bind(this))}},{key:"setUserActionAutoPlay",value:function(){var e=this;this.config.enableUserActionAutoplay&&this.player.once(PL.AUTOPLAY_FAIL,(function(){e._hasSetUserAutoplay=!0,(e.config.userActionDom instanceof window.Node?e.config.userActionDom:window.document.body).addEventListener("click",e.userClickPlay,!1)}))}},{key:"handleAutoplayPrevented",value:function(){return 0===this._state.mode?(console.warn("unmute autoplay fail"),this.player.emit(PL.AUTOPLAY_FAIL,{mode:"unmute"}),PF&&xF?void(this._state.mode=2):void(this.config.enableDegradeMuteAutoplay&&this.changeMuteMode())):1===this._state.mode?(console.warn("mute autoplay fail"),this.player.emit(PL.AUTOPLAY_FAIL,{mode:"mute"}),void(this._state.mode=2)):2===this._state.mode?(this.player.emit(PL.AUTOPLAY_FAIL,{mode:"noSupport"}),void console.warn("not support autoplay")):void 0}},{key:"changeMuteMode",value:function(){var e=this;this.player.muted=!0,this._state.showUnmuteBt=!0,this._state.mode=1,this.renderUnmuteBt(),this._timer=window.setTimeout((function(){e._timer&&window.clearTimeout(e._timer);var t=e.player.play();t&&t.then?t.then((function(){console.log("degrade mute autoplay success")})).catch((function(t){console.warn("degrade mute autoplay fail:",t),e.player.muted=!1,e._state.showUnmuteBt=!1,e.renderUnmuteBt()})):console.warn("no play promise")}))}},{key:"handleAutoplayStart",value:function(){if(0!==this._state.mode)return 1===this._state.mode?(this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"mute"}),this._state.showUnmuteBt=!0,void this.renderUnmuteBt()):2===this._state.mode?(this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"click"}),this.player.muted=!1,this._state.showUnmuteBt=!1,void this.renderUnmuteBt()):void 0;this.player.emit(PL.AUTOPLAY_SUCCESS,{mode:"unmute"})}},{key:"handleVolumechange",value:function(){this._state.mode=this.player.muted?1:0,this._state.showUnmuteBt&&(this._state.showUnmuteBt=!1,this.renderUnmuteBt(),this.player.paused&&this.player.readyState>=1&&this.player.play())}},{key:"renderUnmuteBt",value:function(){var e=this.root,t=this.player.config.i18nManager;if(e&&(e.innerHTML="",this._state.showUnmuteBt)){var n=t.getText("UNMUTE"),i=Jx.createDom("div",n,void 0,"veplayer-unmute-bt");e.appendChild(i),this.bind(".veplayer-unmute-bt","click",this.cancelUnmute.bind(this)),this.bind(".veplayer-unmute-bt","touchend",this.cancelUnmute.bind(this))}}},{key:"cancelUnmute",value:function(){var e=Date.now();if(e-IF>200){IF=e,this.player.muted=!1,this._state.showUnmuteBt=!1,this.renderUnmuteBt(),this.emit(PL.AUTOPLAY_UNMUTE);var t="mobile"===oT.device,n=kF(this.player.config.url);t&&n&&(this.player.volume>.5?this.player.volume=this.player.volume-.1:this.player.volume=this.player.volume+.1)}}},{key:"destroy",value:function(){if(this.player.off(ST,this.handleAutoplayPrevented.bind(this)),this.player.off(TT,this.handleAutoplayStart.bind(this)),this.player.off(_T,this.handleVolumechange.bind(this)),this._timer&&window.clearTimeout(this._timer),this._wxTimer&&window.clearTimeout(this._wxTimer),document.removeEventListener("WeixinJSBridgeReady",this.wxPlay.bind(this),!1),this._hasSetUserAutoplay){var e=RF?"touch":"click";(this.config.userActionDom instanceof window.Node?this.config.userActionDom:window.document.body).removeEventListener(e,this.userClickPlay,!1)}}},{key:"render",value:function(){return'<div class="veplayer-unmute"></div>'}}],[{key:"pluginName",get:function(){return"autoplayPlugin"}},{key:"defaultConfig",get:function(){return{position:RS.POSITIONS.ROOT,enableDegradeMuteAutoplay:!1,enableWxJsBridgeAutoplay:!1,userActionDom:window.document.body,enableUserActionAutoplay:!1}}}]),n}(RS),LF=BL.values;An({target:"Object",stat:!0},{values:function(e){return LF(e)}});var DF=n(te.Object.values);function NF(){return(new DOMParser).parseFromString('<svg width="18" height="18" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M5.75 11C5.75 11.9665 4.9665 12.75 4 12.75C3.0335 12.75 2.25 11.9665 2.25 11C2.25 10.0335 3.0335 9.25 4 9.25C4.9665 9.25 5.75 10.0335 5.75 11ZM13.25 11C13.25 11.9665 12.4665 12.75 11.5 12.75C10.5335 12.75 9.75 11.9665 9.75 11C9.75 10.0335 10.5335 9.25 11.5 9.25C12.4665 9.25 13.25 10.0335 13.25 11ZM19 12.75C19.9665 12.75 20.75 11.9665 20.75 11C20.75 10.0335 19.9665 9.25 19 9.25C18.0335 9.25 17.25 10.0335 17.25 11C17.25 11.9665 18.0335 12.75 19 12.75Z" fill="white"/>\n</svg>\n',"image/svg+xml").firstChild}var FF,UF,HF=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"onItemClick",value:function(){}},{key:"onOptionClick",value:function(){this.toggle(!1)}},{key:"updateLang",value:function(){var e,t=this,n=this.player.config.i18nManager;null===(e=this.config.plugins)||void 0===e||e.forEach((function(e){var i,r=null!==(i=n.normalize(e.textTips))&&void 0!==i?i:e.pluginName;if(t.player.root){var o=Jx.findDom(t.player.root,".panel-plugin-".concat(e.pluginName," .panel-icon-bt-text"));o&&(o.innerHTML=r)}}))}},{key:"beforeCreate",value:function(e){var t,n=e.player.config.i18nManager;e.config.list=null===(t=e.config.plugins)||void 0===t?void 0:Hk(t).call(t,(function(t,i){var r,o=Jx.createDom("div","",{},"panel-icon-bt panel-plugin-".concat(t.pluginName)),a=Jx.createDom("div","",{},"panel-icon-svg"),s=null!==(r=n.normalize(t.textTips))&&void 0!==r?r:t.pluginName;return o.appendChild(a),o.appendChild(Jx.createDom("span",s,{"plugin-index":i},"panel-icon-bt-text")),{showText:o,plugin:e.player.registerPlugin({plugin:t,options:{root:a}})}}))}},{key:"hideChild",value:function(e){if(e){var t;null===(t=e.hide)||void 0===t||t.call(e);var n=document.querySelector(".panel-plugin-".concat(e.pluginName));n&&Jx.addClass(n,"hide")}}},{key:"showChild",value:function(e){if(e){var t;null===(t=e.show)||void 0===t||t.call(e);var n=document.querySelector(".panel-plugin-".concat(e.pluginName));n&&Jx.removeClass(n,"hide")}}},{key:"registerIcons",value:function(){return{more:{icon:NF}}}}],[{key:"pluginName",get:function(){return"more"}},{key:"defaultConfig",get:function(){return Gy(Gy({},mD.defaultConfig),{},{index:1,plugins:[],list:[],hideOnSingleOption:!1,isShowIcon:!0,hidePortrait:!1,renderType:fD.Icon,panel:{className:"more-panel-content"}})}}]),n}(mD),jF=function(e){return e.ROOT_TOP_RIGHT="rootTopRight",e.ROOT_TOP_RIGHT_COLLAPSE="rootTopRightCollapse",e}(jF||{}),BF=function(e){DP(n,e);var t=UP(n);function n(){return _m(this,n),t.apply(this,arguments)}return km(n,[{key:"registerIcons",value:function(){return{more:{icon:NF,class:"xgplayer-more-svg"}}}},{key:"children",value:function(){var e=this,t=this._getPlugins(),n=t.plugins,i=t.collapsePlugins,r={};return n.forEach((function(t){r[t.pluginName]={plugin:t,options:{root:e.root}}})),i.length&&(r[HF.pluginName]={plugin:HF,options:{root:this.root,plugins:i}}),r}},{key:"render",value:function(){return'<xg-right-grid class="xg-right-grid xgplayer-rightTop-iconList"></xg-right-grid>'}},{key:"_getPlugins",value:function(){var e,t=this,n=[],i=[],r=null===(e=this.player.config.ignores)||void 0===e?void 0:Hk(e).call(e,(function(e){return e.toLowerCase()}));return this.config.plugins.forEach((function(e){var o,a=e.pluginName.toLowerCase();null!=r&&SL(r).call(r,a)||("rootTopRight"===(null!==(o=t.player.config[a].position)&&void 0!==o?o:e.defaultConfig.position)?n.push(e):i.push(e))})),{plugins:null!=n?n:[],collapsePlugins:null!=i?i:[]}}}],[{key:"pluginName",get:function(){return"topRightBar"}},{key:"defaultConfig",get:function(){return{position:RS.POSITIONS.ROOT_TOP,plugins:[]}}},{key:"isTopRightPlugin",value:function(e,t){var n,i,r,o,a,s=null!==(i=null===(r=t[null==e||null===(n=e.pluginName)||void 0===n?void 0:n.toLowerCase()])||void 0===r?void 0:r.position)&&void 0!==i?i:null==e||null===(o=e.defaultConfig)||void 0===o?void 0:o.position;return!!SL(a=DF(jF)).call(a,s)}}]),n}(RS),KF=[JA,iR,sR,fA,dR,YP,JP,BA,QP,sD,lD,_D,ED,MF],zF=Um(FF=[]).call(FF,KF,[HA,vA,BF]),VF=Um(UF=[]).call(UF,KF,[OA,BF]),GF="pc"===oT.device?zF:VF;function WF(){return(new DOMParser).parseFromString('<svg width="21" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.892 2h4.445v1.778H3.892v4.444H2.114V3.778C2.114 2.796 2.91 2 3.892 2zm4.445 16v-4.444c0-.982-.796-1.778-1.778-1.778H2.114v1.778h2.944L2.264 16.35a.9.9 0 001.272 1.273l2.988-2.987a.918.918 0 00.035-.037V18h1.778zm8-6.222v4.444h-4.445V18h4.445c.981 0 1.777-.796 1.777-1.778v-4.444h-1.777zM11.892 2v4.445c0 .981.796 1.777 1.778 1.777h4.444V6.445H15.17l2.568-2.568a.9.9 0 10-1.273-1.273L13.67 5.4V2h-1.778z" fill="#fff"/></svg>',"image/svg+xml").firstChild}function YF(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.778 2h4.444v1.778H3.778v4.444H2V3.778C2 2.796 2.796 2 3.778 2zM2 11.778v4.444C2 17.204 2.796 18 3.778 18h4.444v-1.778H4.823l2.313-2.313a.9.9 0 00-1.272-1.273l-2.086 2.086v-2.944H2zm14.222 0v4.444h-4.444V18h4.444c.982 0 1.778-.796 1.778-1.778v-4.444h-1.778zM18 8.222V3.778C18 2.796 17.204 2 16.222 2h-4.444v1.778h2.945l-2.587 2.586a.9.9 0 101.273 1.273l2.813-2.813v3.398H18z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var XF,qF={startPlay:function(){return(new DOMParser).parseFromString('<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" rx="30" fill="#000" fill-opacity=".4"/><path d="M40.243 28.3a2 2 0 010 3.401L24.06 41.712c-1.332.825-3.052-.134-3.052-1.7V19.988c0-1.566 1.72-2.525 3.052-1.7l16.184 10.01z" fill="#fff"/></svg>',"image/svg+xml").firstChild},play:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.121 8.299a2 2 0 010 3.402l-7.94 4.91c-1.332.825-3.051-.133-3.051-1.7V5.09c0-1.567 1.72-2.525 3.052-1.701l7.939 4.911z" fill="#fff"/></svg>',"image/svg+xml").firstChild},pause:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5.313" y="3.75" width="3.125" height="12.5" rx=".625" fill="#fff"/><rect x="11.563" y="3.75" width="3.125" height="12.5" rx=".625" fill="#fff"/></svg>',"image/svg+xml").firstChild},fullscreen:YF,exitFullscreen:WF,replay:function(){return(new DOMParser).parseFromString('<svg width="72" height="72" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><g fill="#FFF" fill-rule="evenodd"><circle fill-opacity=".3" cx="36" cy="36" r="36"/><path d="M40.167 32.667a.833.833 0 01-.834-.834v-1.666c0-.46.373-.834.834-.834h5.409a11.653 11.653 0 00-9.576-5c-6.443 0-11.667 5.224-11.667 11.667S29.557 47.667 36 47.667c5.285 0 9.749-3.514 11.183-8.333h3.445C49.112 46.014 43.138 51 36 51c-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15 4.713 0 8.918 2.173 11.668 5.572l-.001-4.739c0-.46.373-.833.833-.833h1.667c.46 0 .833.373.833.833V31c0 .879-.68 1.598-1.542 1.662l-.125.005h-9.166z"/></g></svg>',"image/svg+xml").firstChild},volumeLarge:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.867 2.5h.55c.44 0 .799.34.83.771l.003.062v13.334c0 .44-.34.799-.771.83l-.062.003h-.55a.833.833 0 01-.444-.128l-.064-.045-4.867-3.744a.831.831 0 01-.322-.59l-.003-.07V7.077c0-.235.099-.458.271-.615l.054-.045L9.36 2.673a.832.832 0 01.43-.17l.078-.003h.55-.55zm6.767 2.278A7.474 7.474 0 0118.75 10a7.477 7.477 0 01-2.128 5.234.4.4 0 01-.57-.004l-.587-.586a.442.442 0 01.005-.617A5.812 5.812 0 0017.083 10c0-1.557-.61-2.97-1.603-4.017a.442.442 0 01-.003-.615l.586-.586a.4.4 0 01.57-.004zM2.5 6.667c.23 0 .417.186.417.416v5.834c0 .23-.187.416-.417.416h-.833a.417.417 0 01-.417-.416V7.083c0-.23.187-.416.417-.416H2.5zm11.768.46A4.153 4.153 0 0115.417 10c0 1.12-.442 2.137-1.162 2.886a.388.388 0 01-.555-.007l-.577-.578c-.176-.176-.156-.467.009-.655A2.49 2.49 0 0013.75 10a2.49 2.49 0 00-.61-1.636c-.163-.188-.182-.477-.006-.653l.578-.578a.388.388 0 01.556-.006z" fill="#fff"/></svg>',"image/svg+xml").firstChild},volumeMuted:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.045 2.5h.55c.44 0 .8.34.831.771l.003.062v13.334c0 .44-.34.799-.771.83l-.063.003h-.55a.833.833 0 01-.443-.128l-.065-.045-4.866-3.744a.831.831 0 01-.323-.59l-.003-.07V7.077c0-.235.1-.458.272-.615l.054-.045 4.866-3.744a.832.832 0 01.43-.17l.078-.003h.55-.55zM2.68 6.667c.23 0 .416.186.416.416v5.834c0 .23-.186.416-.416.416h-.834a.417.417 0 01-.416-.416V7.083c0-.23.186-.416.416-.416h.834zm10.467.294a.417.417 0 01.59 0l1.767 1.768L17.27 6.96a.417.417 0 01.589 0l.59.59a.417.417 0 010 .589L16.68 9.908l1.768 1.767c.15.15.162.387.035.55l-.035.04-.589.589a.417.417 0 01-.59 0l-1.767-1.768-1.768 1.768a.417.417 0 01-.59 0l-.588-.59a.417.417 0 010-.589l1.767-1.768-1.767-1.767a.417.417 0 01-.035-.55l.035-.04.589-.589z" fill="#fff"/></svg>',"image/svg+xml").firstChild},volumeSmall:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.867 2.5h.55c.44 0 .799.34.83.771l.003.062v13.334c0 .44-.34.799-.771.83l-.062.003h-.55a.833.833 0 01-.444-.128l-.064-.045-4.867-3.744a.831.831 0 01-.322-.59l-.003-.07V7.077c0-.235.099-.458.271-.615l.054-.045L9.36 2.673a.832.832 0 01.43-.17l.078-.003h.55-.55zM2.5 6.667c.23 0 .417.186.417.416v5.834c0 .23-.187.416-.417.416h-.833a.417.417 0 01-.417-.416V7.083c0-.23.187-.416.417-.416H2.5zm11.768.46A4.153 4.153 0 0115.417 10c0 1.12-.442 2.137-1.162 2.886a.388.388 0 01-.555-.007l-.577-.578c-.176-.176-.156-.467.009-.655A2.49 2.49 0 0013.75 10a2.49 2.49 0 00-.61-1.636c-.163-.188-.182-.477-.006-.653l.578-.578a.388.388 0 01.556-.006z" fill="#fff"/></svg>',"image/svg+xml").firstChild}},$F=Gy(Gy({},qF),{},{fullscreen:YF,exitFullscreen:WF}),ZF=Gy(Gy({},qF),{},{fullscreen:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.125 3a.375.375 0 00-.375.375v.75c0 .207.168.375.375.375H15.5v3.375c0 .207.168.375.375.375h.75A.375.375 0 0017 7.875v-4.5A.375.375 0 0016.625 3h-4.5zm0 12.5a.375.375 0 00-.375.375v.75c0 .207.168.375.375.375h4.5a.375.375 0 00.375-.375v-4.5a.375.375 0 00-.375-.375h-.75a.375.375 0 00-.375.375V15.5h-3.375zM3 3.375C3 3.168 3.168 3 3.375 3h4.5c.207 0 .375.168.375.375v.75a.375.375 0 01-.375.375H4.5v3.375a.375.375 0 01-.375.375h-.75A.375.375 0 013 7.875v-4.5zM7.875 15.5H4.5v-3.375a.375.375 0 00-.375-.375h-.75a.375.375 0 00-.375.375v4.5c0 .207.168.375.375.375h4.5a.375.375 0 00.375-.375v-.75a.375.375 0 00-.375-.375z" fill="#fff"/></svg>',"image/svg+xml").firstChild},exitFullscreen:function(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 8.333h-4.167c-.92 0-1.666-.746-1.666-1.666V2.5h1.666v4.167H17.5v1.666zM2.5 6.667v1.666h4.167c.92 0 1.666-.746 1.666-1.666V2.5H6.667v4.167H2.5zM2.5 13.333h4.167V17.5h1.666v-4.167c0-.92-.746-1.666-1.666-1.666H2.5v1.666zM13.333 17.5v-4.167H17.5v-1.666h-4.167c-.92 0-1.666.746-1.666 1.666V17.5h1.666z" fill="#fff"/></svg>',"image/svg+xml").firstChild}}),JF="pc"===oT.device?$F:ZF,QF=function(){function e(t){var n;if(_m(this,e),zy(this,"_lang",void 0),this._lang=(null==t?void 0:t.lang)||tT()||"en","zh"===this._lang&&(this._lang="zh-cn"),null!=t&&null!==(n=t.i18n)&&void 0!==n&&n.texts){var i,r,o=Hk(i=zL(null==t||null===(r=t.i18n)||void 0===r?void 0:r.texts)).call(i,(function(e){var t=ML(e,2);return{LANG:t[0],TEXT:t[1]}}));e.extend(o)}}return km(e,[{key:"setLang",value:function(e){this._lang=e}},{key:"getLang",value:function(){return this._lang}},{key:"normalize",value:function(e){return e?"string"==typeof e?e:e[this._lang]:""}},{key:"getText",value:function(e){var t,n,i;if(e){var r=null==lP?void 0:lP.lang;return null!==(t=null==r||null===(n=r[this._lang])||void 0===n?void 0:n[e])&&void 0!==t?t:null==r||null===(i=r.en)||void 0===i?void 0:i[e]}}}],[{key:"langKeys",get:function(){return lP.langKeys}},{key:"isLangValid",value:function(e){var t;return SL(t=lP.langKeys).call(t,e)||"zh"===e}},{key:"extend",value:function(e,t){lP.extend(e,t)}}]),e}(),eU=function(){function e(t){_m(this,e),zy(this,"_videoAttributes",void 0),zy(this,"_el",void 0),this._videoAttributes=fF(t),this._el=t}return km(e,[{key:"options",get:function(){var e=this;return{remainMediaAfterDestroy:!0,mediaEl:function(t){return dF(e._el,t)}}}},{key:"destroy",value:function(){pF(this._el,this._videoAttributes)}}]),e}(),tU=["autoplay"],nU=Gy(Gy({},RS.POSITIONS),jF),iU={id:"veplayer",width:"100%",height:"100%",decodeType:qy.Hardware,fullscreen:{useCssFullscreen:!1}},rU=function(e){var t,n,i,r,o=e.autoplay,a=Mm(e,tU);if(a.poster)if("string"==typeof a.poster)a.poster=OL(a.poster);else if("string"==typeof(null===(t=a.poster)||void 0===t?void 0:t.poster)){var s;a.poster.poster=OL(null===(s=a.poster)||void 0===s?void 0:s.poster)}(a.icons=Gy(Gy({},JF),a.icons?(n=a.icons,i={},zL(null!=n?n:{}).forEach((function(e){var t=ML(e,2),n=t[0],r=t[1];"string"==typeof r?console.warn("icons.".concat(n," has been removed")):i[n]=r})),i):{}),a.autoplay=Boolean(o),o&&"boolean"!=typeof o)&&(a.autoplayMuted=null==o?void 0:o.muted,a.videoAttributes=Gy(Gy({},null!==(r=a.videoAttributes)&&void 0!==r?r:{}),{},{muted:null==o?void 0:o.muted}),a.autoplayPlugin=o);return delete a.i18n,a},oU=function(){function e(){var t,n,i,r,o,a,s,l,u,c,h,f,d,p=this,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_m(this,e),zy(this,"_player",void 0),zy(this,"_sourceManager",void 0),zy(this,"_preparePlugins",void 0),zy(this,"_previousPrepareResult",void 0),zy(this,"_i18nManager",void 0),zy(this,"_events",{}),zy(this,"_customMedia",void 0),zy(this,"_errorCallback",void 0),zy(this,"_beforeFallbackError",void 0),this._sourceManager=v.sourceManager,this._preparePlugins=v.preparePlugins,this._previousPrepareResult=v.prepareResult,this._beforeFallbackError=v.beforeFallbackError,this._i18nManager=null!==(t=v.i18nManager)&&void 0!==t?t:new QF({i18n:v.i18n}),v.mediaElement&&(this._customMedia=new eU(v.mediaElement));var g=rU(Gy(Gy(Gy({},v),null===(n=this._customMedia)||void 0===n?void 0:n.options),null===(i=this._previousPrepareResult)||void 0===i?void 0:i.options)),y=Um(r=[]).call(r,mm(null!==(o=null===(a=this._previousPrepareResult)||void 0===a?void 0:a.plugins)&&void 0!==o?o:[]),mm(null!==(s=v.plugins)&&void 0!==s?s:GF)),m=[],_=[];y.forEach((function(e){BF.isTopRightPlugin(e,v)?m.push(e):_.push(e)})),this._player=new CP(Gy(Gy(Gy({},iU),g),{},{definition:Gy({list:null!==(l=null===(u=this._sourceManager.source)||void 0===u?void 0:u.definitions)&&void 0!==l?l:[],defaultDefinition:null===(c=this._sourceManager.definition)||void 0===c?void 0:c.definition},null!==(h=v.definition)&&void 0!==h?h:{}),url:null===(f=this._sourceManager.definition)||void 0===f?void 0:f.url,sources:Gy(Gy({},null!==(d=v.sources)&&void 0!==d?d:{}),{},{sourceManager:this._sourceManager}),topRightBar:{plugins:m},plugins:_,i18nManager:this._i18nManager,veplayer:this})),this.emit(AL.PLAYER_CREATE_FINISH,this._player),this._errorCallback=function(e){return p._handleFallback(e)},this._player.on(dT,this._errorCallback)}var t,n,i,r,o,a,s,l;return km(e,[{key:"readyState",get:function(){return this._player.readyState}},{key:"buffered",get:function(){return this._player.buffered}},{key:"played",get:function(){return this._player.played}},{key:"cumulateTime",get:function(){return this._player.cumulateTime}},{key:"isFocused",get:function(){return this._player.isActive}},{key:"isFullscreen",get:function(){return this._player.isFullscreen}},{key:"isCssFullscreen",get:function(){return this._player.isCssfullScreen}},{key:"networkState",get:function(){return this._player.networkState}},{key:"paused",get:function(){return this._player.paused}},{key:"ended",get:function(){return this._player.ended}},{key:"state",get:function(){return this._player.state}},{key:"url",get:function(){return this._player.config.url}},{key:"source",get:function(){var e;return null===(e=this._sourceManager.source)||void 0===e?void 0:e.name}},{key:"playerVersion",get:function(){return"2.10.2-rc.0"}},{key:"definition",get:function(){var e;return null===(e=this._sourceManager.definition)||void 0===e?void 0:e.definition}},{key:"crossOrigin",get:function(){return this._player.crossOrigin},set:function(e){this._player.crossOrigin=e}},{key:"volume",get:function(){return this._player.volume},set:function(e){this._player.volume=e}},{key:"muted",get:function(){return this._player.muted},set:function(e){this._player.muted=e}},{key:"lang",get:function(){return this._i18nManager.getLang()},set:function(e){if(this._player.lang!==e)if(QF.isLangValid(e))this._i18nManager.setLang(e),this._player.lang=e;else{var t,n,i,r,o=QF.langKeys.join(","),a={en:Um(t="Sorry, we couldn't set the language to ".concat(e," because it's not currently supported. The list of supported languages includes ")).call(t,o,"."),"zh-cn":Um(n="不支持当前设置的语言".concat(e,", 支持的语言有")).call(n,o,", 请重新设置")};console.error((null===(i=this._i18nManager)||void 0===i||null===(r=i.normalize)||void 0===r?void 0:r.call(i,a))||a.en)}}},{key:"_src",get:function(){return this._player.currentSrc}},{key:"switch",value:(l=Yy(ny().mark((function e(t,n){var i,r,o,a;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t||1!==this._sourceManager.sources.length||1!==(null===(i=this._sourceManager.sources)||void 0===i||null===(i=i[0].definitions)||void 0===i?void 0:i.length)){e.next=5;break}return this._sourceManager.updateSources(t),e.next=4,this._switchUrl(t,{seamless:null==n?void 0:n.seamless});case 4:return e.abrupt("return",this._sourceManager.definition);case 5:if(o=Ym(r=this._sourceManager).call(r,t,n)){e.next=8;break}throw new Error("string"==typeof t?"No definition found for url: ".concat(t):Um(a="No definition found for source: ".concat(t.source,", definition: ")).call(a,t.definition));case 8:return e.next=10,this._switch(o);case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"updatePlaylist",value:(s=Yy(ny().mark((function e(t,n){var i;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._sourceManager.updateSources(t,n),e.abrupt("return",this._switch(i.definition));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"once",value:function(e,t){var n,i=this._transformEvent(e,t),r=i.xgCallback,o=i.xgEventName;r&&(null!==(n=this._events)&&void 0!==n&&n[e]||(this._events[e]=new Mk),this._events[e].set(t,r),this._player.once(o,r))}},{key:"off",value:function(e,t){var n,i=null===(n=this._events[e])||void 0===n?void 0:n.get(t),r=this._transformEvent(e).xgEventName;i&&(this._player.off(r,i),this._events[e].delete(t))}},{key:"emit",value:function(e,t){var n=this._transformEvent(e).xgEventName;this._player.emit(n,t)}},{key:"offAll",value:function(){this._events={},this._player.offAll()}},{key:"on",value:function(e,t){var n,i=this._transformEvent(e,t),r=i.xgCallback,o=i.xgEventName;r&&(null!==(n=this._events)&&void 0!==n&&n[e]||(this._events[e]=new Mk),this._events[e].set(t,r),this._player.on(o,r))}},{key:"play",value:function(){return this._player.play()}},{key:"pause",value:function(){return this._player.pause()}},{key:"requestPIP",value:function(){var e;null===(e=this._player.plugins.pip)||void 0===e||e.requestPIP()}},{key:"exitPIP",value:function(){var e;null===(e=this._player.plugins.pip)||void 0===e||e.exitPIP()}},{key:"retry",value:function(){return this._player.retry()}},{key:"focus",value:function(e){return this._player.focus(e)}},{key:"blur",value:function(e){return this._player.blur(e)}},{key:"canPlayType",value:function(e){return this._player.canPlayType(e)}},{key:"requestFullscreen",value:function(e){return this._player.getFullscreen(e)}},{key:"exitFullscreen",value:function(e){return this._player.exitFullscreen(e)}},{key:"requestCssFullscreen",value:function(e){return this._player.getCssFullscreen(e)}},{key:"exitCssFullscreen",value:function(){return this._player.exitCssFullscreen()}},{key:"registerPlugin",value:function(e,t){return this._player.registerPlugin(e,t)}},{key:"unRegisterPlugin",value:function(e){return this._player.unRegisterPlugin(e)}},{key:"showIcon",value:function(e){var t=this,n=this._player.getPlugin("more");e.forEach((function(e){var i=t._player.getPlugin(e);i&&null!=i&&i.root&&(i.config.position===nU.ROOT_TOP_RIGHT_COLLAPSE?null==n||n.showChild(i):i.show())}))}},{key:"hideIcon",value:function(e){var t=this,n=this._player.getPlugin("more");e.forEach((function(e){var i=t._player.getPlugin(e);i&&null!=i&&i.root&&(i.config.position===nU.ROOT_TOP_RIGHT_COLLAPSE?null==n||n.hideChild(i):i.hide())}))}},{key:"destroy",value:function(){var e;this._player.off(dT,this._errorCallback),this._player.destroy(),null===(e=this._customMedia)||void 0===e||e.destroy()}},{key:"prepare",value:(a=Yy(ny().mark((function e(t){var n,i,r,o,a,s,l,u,c,h,f,d,p=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=this._preparePlugins)||void 0===n?void 0:n.call(this,t);case 2:return null!=(o=e.sent)&&o.protocol&&null!==(i=this._previousPrepareResult)&&void 0!==i&&i.protocol?a=o.protocol===(null===(s=this._previousPrepareResult)||void 0===s?void 0:s.protocol):(h=null!==(l=null==o||null===(u=o.options)||void 0===u?void 0:u.url)&&void 0!==l?l:t,f=null===(c=this._player)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.url,a=f&&EF(h)===EF(f)),a||null===(d=this._previousPrepareResult)||void 0===d||null===(d=d.plugins)||void 0===d||d.forEach((function(e){p._player.unRegisterPlugin(e.pluginName)})),this._previousPrepareResult=o,null!=o&&o.options&&this._player.setConfig(o.options),e.abrupt("return",{plugins:a?[]:null==o||null===(r=o.plugins)||void 0===r?void 0:Hk(r).call(r,(function(e){return p._player.registerPlugin(e)})),options:null==o?void 0:o.options,isSameProtocol:a,useSrc:null==o?void 0:o.useSrc});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_handleFallback",value:(o=Yy(ny().mark((function e(t){var n,i,r,o=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._player.addClass(DS),n=this._sourceManager.url,i=this._sourceManager.fallback()){e.next=19;break}return r=WP(t,this._i18nManager),e.prev=5,e.next=8,this._beforeFallbackError(r);case 8:if(e.sent.canEmitError){e.next=12;break}return e.abrupt("return");case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(5);case 16:return this._player.removeClass(DS),this.emit(AL.FALLBACK_ERROR,r),e.abrupt("return");case 19:this._player.once("canplay",(function(){o._sourceManager.resetFallback()})),this.emit(AL.FALLBACK,{from:{url:n},to:{url:i}}),this._switchUrl(i);case 22:case"end":return e.stop()}}),e,this,[[5,14]])}))),function(e){return o.apply(this,arguments)})},{key:"_transformEvent",value:function(e,t){var n=this;return e===dT?{xgCallback:t?function(e){t(WP(e,n._i18nManager))}:void 0,xgEventName:e}:function(e,t){var n=RL[e];if(n)return{xgEventName:n.event,xgCallback:t?n.shouldCallback?function(){for(var e,i,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null!==(e=n.shouldCallback)&&void 0!==e&&e.call.apply(e,Um(i=[n]).call(i,o))&&(null==t||t.apply(void 0,o))}:t:void 0};return{xgEventName:e,xgCallback:t}}(e,t)}},{key:"_switch",value:(r=Yy(ny().mark((function e(t){var n,i,r,o,a,s,l,u,c,h,f,d,p;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=wD(this._sourceManager.definition),s=this._player.paused&&!this._player.isError,this._restartLiveLogger(),e.next=5,this.prepare(t.url);case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:if(l=e.t0,u=l.plugins,c=l.options,h=l.isSameProtocol,f=l.useSrc,null!=c&&c.url&&(t.url=null==c?void 0:c.url),this._sourceManager.switch(t),null===(n=this._player)||void 0===n||null===(n=n.plugins)||void 0===n||null===(n=n.sources)||void 0===n||n.renderItemList(),null===(i=this._player)||void 0===i||null===(i=i.plugins)||void 0===i||null===(i=i.definition)||void 0===i||i.renderItemList(),d=(null==t||null===(r=t.source)||void 0===r?void 0:r.name)!==(null==a||null===(o=a.source)||void 0===o?void 0:o.name),p=(null==t?void 0:t.definition)!==(null==a?void 0:a.definition),this._player.config.url=t.url,!h){e.next=24;break}d?(this.emit(AL.SOURCE_CHANGE),this._player.switchURL(t.url)):this._player.changeDefinition(t,a),e.next=28;break;case 24:return(p||d)&&this.emit(d?AL.SOURCE_CHANGE:AL.DEFINITION_CHANGE),e.next=27,this._switchDifferentProtocolUrl(u,t.url,s,f);case 27:p&&this.emit(AL.AFTER_DEFINITION_CHANGE);case 28:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_restartLiveLogger",value:function(){var e,t,n=null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.logger)||void 0===e?void 0:e._liveLogger;null!=n&&null!==(t=n.logger)&&void 0!==t&&t.destroyed&&(null==n||n.restart(!1))}},{key:"_switchDifferentProtocolUrl",value:(i=Yy(ny().mark((function e(t,n,i,r){var o,a,s=this;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&this._player.media&&(null!==(o=this._player.config)&&void 0!==o&&o.preProcessUrl&&(n=null===(a=this._player.config)||void 0===a?void 0:a.preProcessUrl(n).url),this._player.media.src=n),null==t||!t.length){e.next=4;break}return e.next=4,this._callBeforePlayerInitForUrl(t);case 4:return e.abrupt("return",new jk((function(e){var t=s._player.currentTime,n=function(){s._player.currentTime=t,i&&s._player.once(yT,(function(){s._player.pause()})),e()};oT.os.isAndroid?s.once(vT,(function(){n()})):s.once(yT,(function(){n()})),s._player.play()})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return i.apply(this,arguments)})},{key:"_switchUrl",value:(n=Yy(ny().mark((function e(t,n){var i,r,o,a,s,l,u,c,h;return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._player.paused&&!this._player.isError,this._restartLiveLogger(),e.next=4,this.prepare(t);case 4:if(e.t0=e.sent,e.t0){e.next=7;break}e.t0={};case 7:if(o=e.t0,a=o.plugins,s=o.options,l=o.isSameProtocol,u=o.useSrc,c=null!==(i=null==s?void 0:s.url)&&void 0!==i?i:t,this._sourceManager.url=c,this._player.config.url=c,!l){e.next=21;break}if(!(h=this._player.switchURL(c,{seamless:null==n?void 0:n.seamless}))||!h.then){e.next=19;break}return e.abrupt("return",h);case 19:e.next=22;break;case 21:return e.abrupt("return",this._switchDifferentProtocolUrl(a,c,r,u));case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"_callBeforePlayerInitForUrl",value:function(e){var t=this;return new jk((function(n){null==e||e.forEach((function(e){e.beforePlayerInit()})),t._player.on(AL.CANPLAY,(function(){n(void 0)}))}))}}],[{key:"create",value:(t=Yy(ny().mark((function t(){var n,i,r,o,a,s,l,u,c=arguments;return ny().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=c.length>0&&void 0!==c[0]?c[0]:{},a=c.length>1?c[1]:void 0,s=new rD({sources:iD.normalize({url:o.url,fallbackUrls:o.fallbackUrls,sources:o.playlist}),url:o.url,defaultSource:o.defaultSource,defaultDefinition:o.defaultDefinition,maxFallbackRound:o.maxFallbackRound}),t.next=5,null==o||null===(n=o.preparePlugins)||void 0===n?void 0:n.call(o,null!==(i=s.url)&&void 0!==i?i:"");case 5:return null!=(l=t.sent)&&null!==(r=l.options)&&void 0!==r&&r.url&&(s.url=null==l||null===(u=l.options)||void 0===u?void 0:u.url),o.url=s.url,t.abrupt("return",new(null!=a?a:e)(Gy(Gy({},o),{},{prepareResult:l,sourceManager:s})));case 9:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})}]),e}();function aU(e){return sU.apply(this,arguments)}function sU(){return(sU=Yy(ny().mark((function e(t){return ny().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oU.create(Gy({url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}XF="umd",aF.setModuleSystem(XF),void 0!==VePlayer.register?VePlayer.registerPlugin(xD.BizVod,{createVodPlayer:aU}):sF(xD.BizVod,{createVodPlayer:aU}),e.createVodPlayer=aU,e.load=uF,e.register=lF}));
|