@volcengine/veplayer 2.1.0-rc.0 → 2.1.0-rc.2

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.
@@ -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_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("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,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),h=a,p=Function.prototype,d=p.call,g=h&&p.bind.bind(d,d),v=h?g:function(e){return function(){return d.apply(e,arguments)}},y=v,m=y({}.toString),_=y("".slice),w=function(e){return _(m(e),8,-1)},b=w,S=v,P=function(e){if("Function"===b(e))return S(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},E=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===E}:function(e){return"function"==typeof e},x={},R=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=a,C=Function.prototype.call,A=I?C.bind(C):function(){return C.apply(C,arguments)},L={},j={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,D=M&&!j.call({1:2},1);L.f=D?function(e){var t=M(this,e);return!!t&&t.enumerable}:j;var U,F,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,V=w,B=Object,W=v("".split),q=z((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?W(e,""):B(e)}:B,H=function(e){return null==e},K=H,G=TypeError,Q=function(e){if(K(e))throw G("Can't call method on "+e);return e},X=q,J=Q,$=function(e){return X(J(e))},Y=O,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Y(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Y(e)},te={},re=te,ne=i,ie=O,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=v({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,he=ce.Deno,pe=fe&&fe.versions||he&&he.version,de=pe&&pe.v8;de&&(F=(U=de.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!F&&ue&&(!(U=ue.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=ue.match(/Chrome\/(\d+)/))&&(F=+U[1]);var ge=F,ve=ge,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})),we=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ae,Se=O,Pe=se,ke=Object,Te=we?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return Se(t)&&Pe(t.prototype,ke(e))},Ee=String,Oe=function(e){try{return Ee(e)}catch(t){return"Object"}},xe=O,Re=Oe,Ie=TypeError,Ce=function(e){if(xe(e))return e;throw Ie(Re(e)+" is not a function")},Ae=Ce,Le=H,je=function(e,t){var r=e[t];return Le(r)?void 0:Ae(r)},Me=A,De=O,Ue=ee,Fe=TypeError,Ne={exports:{}},ze=i,Ve=Object.defineProperty,Be=function(e,t){try{Ve(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",qe=i[We]||Be(We,{}),He=qe;(Ne.exports=function(e,t){return He[e]||(He[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 Ke=Ne.exports,Ge=Q,Qe=Object,Xe=function(e){return Qe(Ge(e))},Je=Xe,$e=v({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return $e(Je(e),t)},Ze=v,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=Ke,ot=Ye,at=nt,st=_e,lt=we,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,ht=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},pt=A,dt=ee,gt=Te,vt=je,yt=function(e,t){var r,n;if("string"===t&&De(r=e.toString)&&!Ue(n=Me(r,e)))return n;if(De(r=e.valueOf)&&!Ue(n=Me(r,e)))return n;if("string"!==t&&De(r=e.toString)&&!Ue(n=Me(r,e)))return n;throw Fe("Can't convert object to primitive value")},mt=TypeError,_t=ht("toPrimitive"),wt=function(e,t){if(!dt(e)||gt(e))return e;var r,n=vt(e,_t);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!dt(r)||gt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},bt=Te,St=function(e){var t=wt(e,"string");return bt(t)?t:t+""},Pt=ee,kt=i.document,Tt=Pt(kt)&&Pt(kt.createElement),Et=function(e){return Tt?kt.createElement(e):{}},Ot=Et,xt=!R&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Rt=R,It=A,Ct=L,At=N,Lt=$,jt=St,Mt=Ye,Dt=xt,Ut=Object.getOwnPropertyDescriptor;x.f=Rt?Ut:function(e,t){if(e=Lt(e),t=jt(t),Dt)try{return Ut(e,t)}catch(r){}if(Mt(e,t))return At(!It(Ct.f,e,t),e[t])};var Ft=o,Nt=O,zt=/#|\.prototype\./,Vt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=qt&&(Nt(t)?Ft(t):!!t)},Bt=Vt.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Vt.data={},qt=Vt.NATIVE="N",Ht=Vt.POLYFILL="P",Kt=Vt,Gt=Ce,Qt=a,Xt=P(P.bind),Jt=function(e,t){return Gt(e),void 0===t?e:Qt?Xt(e,t):function(){return e.apply(t,arguments)}},$t={},Yt=R&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=R,ir=xt,or=Yt,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",pr="writable";$t.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=ur(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=$t,gr=N,vr=R?function(e,t,r){return dr.f(e,t,gr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=P,wr=O,br=x.f,Sr=Kt,Pr=te,kr=Jt,Tr=vr,Er=Ye,Or=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},xr=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,h=e.global,p=e.stat,d=e.proto,g=h?yr:p?yr[f]:(yr[f]||{}).prototype,v=h?Pr:Pr[f]||Tr(Pr,f,{})[f],y=v.prototype;for(o in t)n=!(r=Sr(h?o:f+(p?".":"#")+o,e.forced))&&g&&Er(g,o),s=v[o],n&&(l=e.dontCallGetSet?(u=br(g,o))&&u.value:g[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Or(a):d&&wr(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tr(c,"sham",!0),Tr(v,o,c),d&&(Er(Pr,i=f+"Prototype")||Tr(Pr,i,{}),Tr(Pr[i],o,a),e.real&&y&&(r||!y[o])&&Tr(y,o,a)))},Rr=w,Ir=Array.isArray||function(e){return"Array"==Rr(e)},Cr=Math.ceil,Ar=Math.floor,Lr=Math.trunc||function(e){var t=+e;return(t>0?Ar:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Lr(t)},Mr=jr,Dr=Math.min,Ur=function(e){return e>0?Dr(Mr(e),9007199254740991):0},Fr=Ur,Nr=function(e){return Fr(e.length)},zr=TypeError,Vr=function(e){if(e>9007199254740991)throw zr("Maximum allowed index exceeded");return e},Br=St,Wr=$t,qr=N,Hr=function(e,t,r){var n=Br(t);n in e?Wr.f(e,n,qr(0,r)):e[n]=r},Kr={};Kr[ht("toStringTag")]="z";var Gr="[object z]"===String(Kr),Qr=Gr,Xr=O,Jr=w,$r=ht("toStringTag"),Yr=Object,Zr="Arguments"==Jr(function(){return arguments}()),en=Qr?Jr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Yr(e),$r))?r:Zr?Jr(t):"Object"==(n=Jr(t))&&Xr(t.callee)?"Arguments":n},tn=O,rn=qe,nn=v(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=v,sn=o,ln=O,cn=en,un=on,fn=function(){},hn=[],pn=ae("Reflect","construct"),dn=/^\s*(?:class|function)\b/,gn=an(dn.exec),vn=!dn.exec(fn),yn=function(e){if(!ln(e))return!1;try{return pn(fn,hn,e),!0}catch(t){return!1}},mn=function(e){if(!ln(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!gn(dn,un(e))}catch(t){return!0}};mn.sham=!0;var _n=!pn||sn((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,wn=Ir,bn=_n,Sn=ee,Pn=ht("species"),kn=Array,Tn=function(e){var t;return wn(e)&&(t=e.constructor,(bn(t)&&(t===kn||wn(t.prototype))||Sn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?kn:t},En=function(e,t){return new(Tn(e))(0===t?0:t)},On=o,xn=ge,Rn=ht("species"),In=function(e){return xn>=51||!On((function(){var t=[];return(t.constructor={})[Rn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=xr,An=o,Ln=Ir,jn=ee,Mn=Xe,Dn=Nr,Un=Vr,Fn=Hr,Nn=En,zn=In,Vn=ge,Bn=ht("isConcatSpreadable"),Wn=Vn>=51||!An((function(){var e=[];return e[Bn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Bn];return void 0!==t?!!t:Ln(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Wn||!zn("concat")},{concat:function(e){var t,r,n,i,o,a=Mn(this),s=Nn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(o=-1===t?a:arguments[t]))for(i=Dn(o),Un(l+i),r=0;r<i;r++,l++)r in o&&Fn(s,l,o[r]);else Un(l+1),Fn(s,l++,o);return s.length=l,s}});var Hn=en,Kn=String,Gn=function(e){if("Symbol"===Hn(e))throw TypeError("Cannot convert a Symbol value to a string");return Kn(e)},Qn={},Xn=jr,Jn=Math.max,$n=Math.min,Yn=function(e,t){var r=Xn(e);return r<0?Jn(r+t,0):$n(r,t)},Zn=$,ei=Yn,ti=Nr,ri=function(e){return function(t,r,n){var i,o=Zn(t),a=ti(o),s=ei(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=Ye,ai=$,si=ni.indexOf,li=ii,ci=v([].push),ui=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(li,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~si(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=ui,pi=fi,di=Object.keys||function(e){return hi(e,pi)},gi=R,vi=Yt,yi=$t,mi=rr,_i=$,wi=di;Qn.f=gi&&!vi?Object.defineProperties:function(e,t){mi(e);for(var r,n=_i(t),i=wi(t),o=i.length,a=0;o>a;)yi.f(e,r=i[a++],n[r]);return e};var bi,Si=ae("document","documentElement"),Pi=nt,ki=Ke("keys"),Ti=function(e){return ki[e]||(ki[e]=Pi(e))},Ei=rr,Oi=Qn,xi=fi,Ri=ii,Ii=Si,Ci=Et,Ai="prototype",Li="script",ji=Ti("IE_PROTO"),Mi=function(){},Di=function(e){return"<"+Li+">"+e+"</"+Li+">"},Ui=function(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fi=function(){try{bi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Fi="undefined"!=typeof document?document.domain&&bi?Ui(bi):(t=Ci("iframe"),r="java"+Li+":",t.style.display="none",Ii.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F):Ui(bi);for(var n=xi.length;n--;)delete Fi[Ai][xi[n]];return Fi()};Ri[ji]=!0;var Ni=Object.create||function(e,t){var r;return null!==e?(Mi[Ai]=Ei(e),r=new Mi,Mi[Ai]=null,r[ji]=e):r=Fi(),void 0===t?r:Oi.f(r,t)},zi={},Vi=ui,Bi=fi.concat("length","prototype");zi.f=Object.getOwnPropertyNames||function(e){return Vi(e,Bi)};var Wi={},qi=Yn,Hi=Nr,Ki=Hr,Gi=Array,Qi=Math.max,Xi=function(e,t,r){for(var n=Hi(e),i=qi(t,n),o=qi(void 0===r?n:r,n),a=Gi(Qi(o-i,0)),s=0;i<o;i++,s++)Ki(a,s,e[i]);return a.length=s,a},Ji=w,$i=$,Yi=zi.f,Zi=Xi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Wi.f=function(e){return eo&&"Window"==Ji(e)?function(e){try{return Yi(e)}catch(t){return Zi(eo)}}(e):Yi($i(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=vr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=$t,oo=function(e,t,r){return io.f(e,t,r)},ao={},so=ht;ao.f=so;var lo,co,uo,fo=te,ho=Ye,po=ao,go=$t.f,vo=function(e){var t=fo.Symbol||(fo.Symbol={});ho(t,e)||go(t,e,{value:po.f(e)})},yo=A,mo=ae,_o=ht,wo=no,bo=function(){var e=mo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_o("toPrimitive");t&&!t[n]&&wo(t,n,(function(e){return yo(r,this)}),{arity:1})},So=en,Po=Gr?{}.toString:function(){return"[object "+So(this)+"]"},ko=Gr,To=$t.f,Eo=vr,Oo=Ye,xo=Po,Ro=ht("toStringTag"),Io=function(e,t,r,n){if(e){var i=r?e:e.prototype;Oo(i,Ro)||To(i,Ro,{configurable:!0,value:t}),n&&!ko&&Eo(i,"toString",xo)}},Co=O,Ao=i.WeakMap,Lo=Co(Ao)&&/native code/.test(String(Ao)),jo=i,Mo=ee,Do=vr,Uo=Ye,Fo=qe,No=Ti,zo=ii,Vo="Object already initialized",Bo=jo.TypeError,Wo=jo.WeakMap;if(Lo||Fo.state){var qo=Fo.state||(Fo.state=new Wo);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,lo=function(e,t){if(qo.has(e))throw Bo(Vo);return t.facade=e,qo.set(e,t),t},co=function(e){return qo.get(e)||{}},uo=function(e){return qo.has(e)}}else{var Ho=No("state");zo[Ho]=!0,lo=function(e,t){if(Uo(e,Ho))throw Bo(Vo);return t.facade=e,Do(e,Ho,t),t},co=function(e){return Uo(e,Ho)?e[Ho]:{}},uo=function(e){return Uo(e,Ho)}}var Ko={set:lo,get:co,has:uo,enforce:function(e){return uo(e)?co(e):lo(e,{})},getterFor:function(e){return function(t){var r;if(!Mo(t)||(r=co(t)).type!==e)throw Bo("Incompatible receiver, "+e+" required");return r}}},Go=Jt,Qo=q,Xo=Xe,Jo=Nr,$o=En,Yo=v([].push),Zo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var h,p,d=Xo(l),g=Qo(d),v=Go(c,u),y=Jo(g),m=0,_=f||$o,w=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in g)&&(p=v(h=g[m],m,d),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:Yo(w,h)}else switch(e){case 4:return!1;case 7:Yo(w,h)}return o?-1:n||i?i:w}},ea={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ta=xr,ra=i,na=A,ia=v,oa=R,aa=_e,sa=o,la=Ye,ca=se,ua=rr,fa=$,ha=St,pa=Gn,da=N,ga=Ni,va=di,ya=zi,ma=Wi,_a=to,wa=x,ba=$t,Sa=Qn,Pa=L,ka=no,Ta=oo,Ea=Ke,Oa=ii,xa=nt,Ra=ht,Ia=ao,Ca=vo,Aa=bo,La=Io,ja=Ko,Ma=ea.forEach,Da=Ti("hidden"),Ua="Symbol",Fa="prototype",Na=ja.set,za=ja.getterFor(Ua),Va=Object[Fa],Ba=ra.Symbol,Wa=Ba&&Ba[Fa],qa=ra.TypeError,Ha=ra.QObject,Ka=wa.f,Ga=ba.f,Qa=ma.f,Xa=Pa.f,Ja=ia([].push),$a=Ea("symbols"),Ya=Ea("op-symbols"),Za=Ea("wks"),es=!Ha||!Ha[Fa]||!Ha[Fa].findChild,ts=oa&&sa((function(){return 7!=ga(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ka(Va,t);n&&delete Va[t],Ga(e,t,r),n&&e!==Va&&Ga(Va,t,n)}:Ga,rs=function(e,t){var r=$a[e]=ga(Wa);return Na(r,{type:Ua,tag:e,description:t}),oa||(r.description=t),r},ns=function(e,t,r){e===Va&&ns(Ya,t,r),ua(e);var n=ha(t);return ua(r),la($a,n)?(r.enumerable?(la(e,Da)&&e[Da][n]&&(e[Da][n]=!1),r=ga(r,{enumerable:da(0,!1)})):(la(e,Da)||Ga(e,Da,da(1,{})),e[Da][n]=!0),ts(e,n,r)):Ga(e,n,r)},is=function(e,t){ua(e);var r=fa(t),n=va(r).concat(ls(r));return Ma(n,(function(t){oa&&!na(os,r,t)||ns(e,t,r[t])})),e},os=function(e){var t=ha(e),r=na(Xa,this,t);return!(this===Va&&la($a,t)&&!la(Ya,t))&&(!(r||!la(this,t)||!la($a,t)||la(this,Da)&&this[Da][t])||r)},as=function(e,t){var r=fa(e),n=ha(t);if(r!==Va||!la($a,n)||la(Ya,n)){var i=Ka(r,n);return!i||!la($a,n)||la(r,Da)&&r[Da][n]||(i.enumerable=!0),i}},ss=function(e){var t=Qa(fa(e)),r=[];return Ma(t,(function(e){la($a,e)||la(Oa,e)||Ja(r,e)})),r},ls=function(e){var t=e===Va,r=Qa(t?Ya:fa(e)),n=[];return Ma(r,(function(e){!la($a,e)||t&&!la(Va,e)||Ja(n,$a[e])})),n};aa||(Ba=function(){if(ca(Wa,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=xa(e),r=function(e){this===Va&&na(r,Ya,e),la(this,Da)&&la(this[Da],t)&&(this[Da][t]=!1),ts(this,t,da(1,e))};return oa&&es&&ts(Va,t,{configurable:!0,set:r}),rs(t,e)},ka(Wa=Ba[Fa],"toString",(function(){return za(this).tag})),ka(Ba,"withoutSetter",(function(e){return rs(xa(e),e)})),Pa.f=os,ba.f=ns,Sa.f=is,wa.f=as,ya.f=ma.f=ss,_a.f=ls,Ia.f=function(e){return rs(Ra(e),e)},oa&&Ta(Wa,"description",{configurable:!0,get:function(){return za(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),Ma(va(Za),(function(e){Ca(e)})),ta({target:Ua,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?ga(e):is(ga(e),t)},defineProperty:ns,defineProperties:is,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Aa(),La(Ba,Ua),Oa[Da]=!0;var cs=_e&&!!Symbol.for&&!!Symbol.keyFor,us=xr,fs=ae,hs=Ye,ps=Gn,ds=Ke,gs=cs,vs=ds("string-to-symbol-registry"),ys=ds("symbol-to-string-registry");us({target:"Symbol",stat:!0,forced:!gs},{for:function(e){var t=ps(e);if(hs(vs,t))return vs[t];var r=fs("Symbol")(t);return vs[t]=r,ys[r]=t,r}});var ms=xr,_s=Ye,ws=Te,bs=Oe,Ss=cs,Ps=Ke("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(e){if(!ws(e))throw TypeError(bs(e)+" is not a symbol");if(_s(Ps,e))return Ps[e]}});var ks=v([].slice),Ts=Ir,Es=O,Os=w,xs=Gn,Rs=v([].push),Is=xr,Cs=ae,As=f,Ls=A,js=v,Ms=o,Ds=O,Us=Te,Fs=ks,Ns=function(e){if(Es(e))return e;if(Ts(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Rs(r,i):"number"!=typeof i&&"Number"!=Os(i)&&"String"!=Os(i)||Rs(r,xs(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ts(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},zs=_e,Vs=String,Bs=Cs("JSON","stringify"),Ws=js(/./.exec),qs=js("".charAt),Hs=js("".charCodeAt),Ks=js("".replace),Gs=js(1..toString),Qs=/[\uD800-\uDFFF]/g,Xs=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,$s=!zs||Ms((function(){var e=Cs("Symbol")();return"[null]"!=Bs([e])||"{}"!=Bs({a:e})||"{}"!=Bs(Object(e))})),Ys=Ms((function(){return'"\\udf06\\ud834"'!==Bs("\udf06\ud834")||'"\\udead"'!==Bs("\udead")})),Zs=function(e,t){var r=Fs(arguments),n=Ns(t);if(Ds(n)||void 0!==e&&!Us(e))return r[1]=function(e,t){if(Ds(n)&&(t=Ls(n,this,Vs(e),t)),!Us(t))return t},As(Bs,null,r)},el=function(e,t,r){var n=qs(r,t-1),i=qs(r,t+1);return Ws(Xs,e)&&!Ws(Js,i)||Ws(Js,e)&&!Ws(Xs,n)?"\\u"+Gs(Hs(e,0),16):e};Bs&&Is({target:"JSON",stat:!0,arity:3,forced:$s||Ys},{stringify:function(e,t,r){var n=Fs(arguments),i=As($s?Zs:Bs,null,n);return Ys&&"string"==typeof i?Ks(i,Qs,el):i}});var tl=to,rl=Xe;xr({target:"Object",stat:!0,forced:!_e||o((function(){tl.f(1)}))},{getOwnPropertySymbols:function(e){var t=tl.f;return t?t(rl(e)):[]}}),vo("asyncIterator"),vo("hasInstance"),vo("isConcatSpreadable"),vo("iterator"),vo("match"),vo("matchAll"),vo("replace"),vo("search"),vo("species"),vo("split");var nl=bo;vo("toPrimitive"),nl();var il=ae,ol=Io;vo("toStringTag"),ol(il("Symbol"),"Symbol"),vo("unscopables"),Io(i.JSON,"JSON",!0);var al,sl,ll,cl=te.Symbol,ul={},fl=R,hl=Ye,pl=Function.prototype,dl=fl&&Object.getOwnPropertyDescriptor,gl=hl(pl,"name"),vl={EXISTS:gl,PROPER:gl&&"something"===function(){}.name,CONFIGURABLE:gl&&(!fl||fl&&dl(pl,"name").configurable)},yl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ml=Ye,_l=O,wl=Xe,bl=yl,Sl=Ti("IE_PROTO"),Pl=Object,kl=Pl.prototype,Tl=bl?Pl.getPrototypeOf:function(e){var t=wl(e);if(ml(t,Sl))return t[Sl];var r=t.constructor;return _l(r)&&t instanceof r?r.prototype:t instanceof Pl?kl:null},El=o,Ol=O,xl=ee,Rl=Ni,Il=Tl,Cl=no,Al=ht("iterator"),Ll=!1;[].keys&&("next"in(ll=[].keys())?(sl=Il(Il(ll)))!==Object.prototype&&(al=sl):Ll=!0);var jl=!xl(al)||El((function(){var e={};return al[Al].call(e)!==e}));Ol((al=jl?{}:Rl(al))[Al])||Cl(al,Al,(function(){return this}));var Ml={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:Ll},Dl=Ml.IteratorPrototype,Ul=Ni,Fl=N,Nl=Io,zl=ul,Vl=function(){return this},Bl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ul(Dl,{next:Fl(+!n,r)}),Nl(e,i,!1,!0),zl[i]=Vl,e},Wl=v,ql=Ce,Hl=O,Kl=String,Gl=TypeError,Ql=function(e,t,r){try{return Wl(ql(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Xl=rr,Jl=function(e){if("object"==typeof e||Hl(e))return e;throw Gl("Can't set "+Kl(e)+" as a prototype")},$l=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ql(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Xl(r),Jl(n),t?e(r,n):r.__proto__=n,r}}():void 0),Yl=xr,Zl=A,ec=vl,tc=Bl,rc=Tl,nc=Io,ic=no,oc=ul,ac=Ml,sc=ec.PROPER,lc=ac.BUGGY_SAFARI_ITERATORS,cc=ht("iterator"),uc="keys",fc="values",hc="entries",pc=function(){return this},dc=function(e,t,r,n,i,o,a){tc(r,t,n);var s,l,c,u=function(e){if(e===i&&g)return g;if(!lc&&e in p)return p[e];switch(e){case uc:case fc:case hc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[cc]||p["@@iterator"]||i&&p[i],g=!lc&&d||u(i),v="Array"==t&&p.entries||d;if(v&&(s=rc(v.call(new e)))!==Object.prototype&&s.next&&(nc(s,f,!0,!0),oc[f]=pc),sc&&i==fc&&d&&d.name!==fc&&(h=!0,g=function(){return Zl(d,this)}),i)if(l={values:u(fc),keys:o?g:u(uc),entries:u(hc)},a)for(c in l)(lc||h||!(c in p))&&ic(p,c,l[c]);else Yl({target:t,proto:!0,forced:lc||h},l);return a&&p[cc]!==g&&ic(p,cc,g,{name:i}),oc[t]=g,l},gc=function(e,t){return{value:e,done:t}},vc=$,yc=ul,mc=Ko;$t.f;var _c=dc,wc=gc,bc="Array Iterator",Sc=mc.set,Pc=mc.getterFor(bc);_c(Array,"Array",(function(e,t){Sc(this,{type:bc,target:vc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,wc(void 0,!0)):wc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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},Tc=i,Ec=en,Oc=vr,xc=ul,Rc=ht("toStringTag");for(var Ic in kc){var Cc=Tc[Ic],Ac=Cc&&Cc.prototype;Ac&&Ec(Ac)!==Rc&&Oc(Ac,Rc,Ic),xc[Ic]=xc.Array}var Lc=cl;vo("dispose");var jc=Lc;vo("asyncDispose");var Mc=xr,Dc=v,Uc=ae("Symbol"),Fc=Uc.keyFor,Nc=Dc(Uc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Fc(Nc(e))}catch(t){return!1}}});for(var zc=xr,Vc=Ke,Bc=ae,Wc=v,qc=Te,Hc=ht,Kc=Bc("Symbol"),Gc=Kc.isWellKnown,Qc=Bc("Object","getOwnPropertyNames"),Xc=Wc(Kc.prototype.valueOf),Jc=Vc("wks"),$c=0,Yc=Qc(Kc),Zc=Yc.length;$c<Zc;$c++)try{var eu=Yc[$c];qc(Kc[eu])&&Hc(eu)}catch(XR){}zc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Gc&&Gc(e))return!0;try{for(var t=Xc(e),r=0,n=Qc(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(XR){}return!1}}),vo("matcher"),vo("metadataKey"),vo("observable"),vo("metadata"),vo("patternMatch"),vo("replaceAll");var tu=jc,ru=r(tu),nu=v,iu=jr,ou=Gn,au=Q,su=nu("".charAt),lu=nu("".charCodeAt),cu=nu("".slice),uu=function(e){return function(t,r){var n,i,o=ou(au(t)),a=iu(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=lu(o,a))<55296||n>56319||a+1===s||(i=lu(o,a+1))<56320||i>57343?e?su(o,a):n:e?cu(o,a,a+2):i-56320+(n-55296<<10)+65536}},fu={codeAt:uu(!1),charAt:uu(!0)},hu=fu.charAt,pu=Gn,du=Ko,gu=dc,vu=gc,yu="String Iterator",mu=du.set,_u=du.getterFor(yu);gu(String,"String",(function(e){mu(this,{type:yu,string:pu(e),index:0})}),(function(){var e,t=_u(this),r=t.string,n=t.index;return n>=r.length?vu(void 0,!0):(e=hu(r,n),t.index+=e.length,vu(e,!1))}));var wu=r(ao.f("iterator"));function bu(e){return(bu="function"==typeof ru&&"symbol"==typeof wu?function(e){return typeof e}:function(e){return e&&"function"==typeof ru&&e.constructor===ru&&e!==ru.prototype?"symbol":typeof e})(e)}var Su={exports:{}},Pu=xr,ku=R,Tu=$t.f;Pu({target:"Object",stat:!0,forced:Object.defineProperty!==Tu,sham:!ku},{defineProperty:Tu});var Eu=te.Object,Ou=Su.exports=function(e,t,r){return Eu.defineProperty(e,t,r)};Eu.defineProperty.sham&&(Ou.sham=!0);var xu=Su.exports,Ru=r(xu);xr({target:"Object",stat:!0,sham:!R},{create:Ni});var Iu=te.Object,Cu=function(e,t){return Iu.create(e,t)},Au=r(Cu),Lu=Xe,ju=Tl,Mu=yl;xr({target:"Object",stat:!0,forced:o((function(){ju(1)})),sham:!Mu},{getPrototypeOf:function(e){return ju(Lu(e))}});var Du=r(te.Object.getPrototypeOf),Uu=o,Fu=function(e,t){var r=[][e];return!!r&&Uu((function(){r.call(null,t||function(){return 1},1)}))},Nu=ea.forEach,zu=Fu("forEach")?[].forEach:function(e){return Nu(this,e,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!=zu},{forEach:zu});var Vu=te,Bu=function(e){return Vu[e+"Prototype"]},Wu=Bu("Array").forEach,qu=en,Hu=Ye,Ku=se,Gu=Wu,Qu=Array.prototype,Xu={DOMTokenList:!0,NodeList:!0},Ju=function(e){var t=e.forEach;return e===Qu||Ku(Qu,e)&&t===Qu.forEach||Hu(Xu,qu(e))?Gu:t},$u=r(Ju),Yu=R,Zu=Ir,ef=TypeError,tf=Object.getOwnPropertyDescriptor,rf=Yu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(XR){return XR instanceof TypeError}}()?function(e,t){if(Zu(e)&&!tf(e,"length").writable)throw ef("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},nf=Xe,of=Nr,af=rf,sf=Vr;xr({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(XR){return XR instanceof TypeError}}()},{push:function(e){var t=nf(this),r=of(t),n=arguments.length;sf(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return af(t,r),r}});var lf=Bu("Array").push,cf=se,uf=lf,ff=Array.prototype,hf=r((function(e){var t=e.push;return e===ff||cf(ff,e)&&t===ff.push?uf:t}));xr({target:"Object",stat:!0},{setPrototypeOf:$l});var pf=r(te.Object.setPrototypeOf),df=ae,gf=zi,vf=to,yf=rr,mf=v([].concat),_f=df("Reflect","ownKeys")||function(e){var t=gf.f(yf(e)),r=vf.f;return r?mf(t,r(e)):t},wf=Ye,bf=_f,Sf=x,Pf=$t,kf=ee,Tf=vr,Ef=Error,Of=v("".replace),xf=String(Ef("zxcasd").stack),Rf=/\n\s*at [^:]*:[^\n]*/,If=Rf.test(xf),Cf=N,Af=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Cf(1,7)),7!==e.stack)})),Lf=vr,jf=function(e,t){if(If&&"string"==typeof e&&!Ef.prepareStackTrace)for(;t--;)e=Of(e,Rf,"");return e},Mf=Af,Df=Error.captureStackTrace,Uf=ul,Ff=ht("iterator"),Nf=Array.prototype,zf=function(e){return void 0!==e&&(Uf.Array===e||Nf[Ff]===e)},Vf=en,Bf=je,Wf=H,qf=ul,Hf=ht("iterator"),Kf=function(e){if(!Wf(e))return Bf(e,Hf)||Bf(e,"@@iterator")||qf[Vf(e)]},Gf=A,Qf=Ce,Xf=rr,Jf=Oe,$f=Kf,Yf=TypeError,Zf=function(e,t){var r=arguments.length<2?$f(e):t;if(Qf(r))return Xf(Gf(r,e));throw Yf(Jf(e)+" is not iterable")},eh=A,th=rr,rh=je,nh=function(e,t,r){var n,i;th(e);try{if(!(n=rh(e,"return"))){if("throw"===t)throw r;return r}n=eh(n,e)}catch(XR){i=!0,n=XR}if("throw"===t)throw r;if(i)throw n;return th(n),r},ih=Jt,oh=A,ah=rr,sh=Oe,lh=zf,ch=Nr,uh=se,fh=Zf,hh=Kf,ph=nh,dh=TypeError,gh=function(e,t){this.stopped=e,this.result=t},vh=gh.prototype,yh=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),g=ih(t,u),v=function(e){return n&&ph(n,"normal",e),new gh(!0,e)},y=function(e){return f?(ah(e),d?g(e[0],e[1],v):g(e[0],e[1])):d?g(e,v):g(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(i=hh(e)))throw dh(sh(e)+" is not iterable");if(lh(i)){for(o=0,a=ch(e);a>o;o++)if((s=y(e[o]))&&uh(vh,s))return s;return new gh(!1)}n=fh(e,i)}for(l=h?e.next:n.next;!(c=oh(l,n)).done;){try{s=y(c.value)}catch(XR){ph(n,"throw",XR)}if("object"==typeof s&&s&&uh(vh,s))return s}return new gh(!1)},mh=Gn,_h=xr,wh=se,bh=Tl,Sh=$l,Ph=function(e,t,r){for(var n=bf(t),i=Pf.f,o=Sf.f,a=0;a<n.length;a++){var s=n[a];wf(e,s)||r&&wf(r,s)||i(e,s,o(t,s))}},kh=Ni,Th=vr,Eh=N,Oh=function(e,t){kf(t)&&"cause"in t&&Tf(e,"cause",t.cause)},xh=function(e,t,r,n){Mf&&(Df?Df(e,t):Lf(e,"stack",jf(r,n)))},Rh=yh,Ih=function(e,t){return void 0===e?arguments.length<2?"":t:mh(e)},Ch=ht("toStringTag"),Ah=Error,Lh=[].push,jh=function(e,t){var r,n=wh(Mh,this);Sh?r=Sh(Ah(),n?bh(this):Mh):(r=n?this:kh(Mh),Th(r,Ch,"Error")),void 0!==t&&Th(r,"message",Ih(t)),xh(r,jh,r.stack,1),arguments.length>2&&Oh(r,arguments[2]);var i=[];return Rh(e,Lh,{that:i}),Th(r,"errors",i),r};Sh?Sh(jh,Ah):Ph(jh,Ah,{name:!0});var Mh=jh.prototype=kh(Ah.prototype,{constructor:Eh(1,jh),message:Eh(1,""),name:Eh(1,"AggregateError")});_h({global:!0,constructor:!0,arity:2},{AggregateError:jh});var Dh,Uh,Fh,Nh,zh="undefined"!=typeof process&&"process"==w(process),Vh=ae,Bh=oo,Wh=R,qh=ht("species"),Hh=se,Kh=TypeError,Gh=function(e,t){if(Hh(t,e))return e;throw Kh("Incorrect invocation")},Qh=_n,Xh=Oe,Jh=TypeError,$h=function(e){if(Qh(e))return e;throw Jh(Xh(e)+" is not a constructor")},Yh=rr,Zh=$h,ep=H,tp=ht("species"),rp=function(e,t){var r,n=Yh(e).constructor;return void 0===n||ep(r=Yh(n)[tp])?t:Zh(r)},np=TypeError,ip=function(e,t){if(e<t)throw np("Not enough arguments");return e},op=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),ap=i,sp=f,lp=Jt,cp=O,up=Ye,fp=o,hp=Si,pp=ks,dp=Et,gp=ip,vp=op,yp=zh,mp=ap.setImmediate,_p=ap.clearImmediate,wp=ap.process,bp=ap.Dispatch,Sp=ap.Function,Pp=ap.MessageChannel,kp=ap.String,Tp=0,Ep={},Op="onreadystatechange";fp((function(){Dh=ap.location}));var xp=function(e){if(up(Ep,e)){var t=Ep[e];delete Ep[e],t()}},Rp=function(e){return function(){xp(e)}},Ip=function(e){xp(e.data)},Cp=function(e){ap.postMessage(kp(e),Dh.protocol+"//"+Dh.host)};mp&&_p||(mp=function(e){gp(arguments.length,1);var t=cp(e)?e:Sp(e),r=pp(arguments,1);return Ep[++Tp]=function(){sp(t,void 0,r)},Uh(Tp),Tp},_p=function(e){delete Ep[e]},yp?Uh=function(e){wp.nextTick(Rp(e))}:bp&&bp.now?Uh=function(e){bp.now(Rp(e))}:Pp&&!vp?(Nh=(Fh=new Pp).port2,Fh.port1.onmessage=Ip,Uh=lp(Nh.postMessage,Nh)):ap.addEventListener&&cp(ap.postMessage)&&!ap.importScripts&&Dh&&"file:"!==Dh.protocol&&!fp(Cp)?(Uh=Cp,ap.addEventListener("message",Ip,!1)):Uh=Op in dp("script")?function(e){hp.appendChild(dp("script"))[Op]=function(){hp.removeChild(this),xp(e)}}:function(e){setTimeout(Rp(e),0)});var Ap={set:mp,clear:_p},Lp=function(){this.head=null,this.tail=null};Lp.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.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 jp,Mp,Dp,Up,Fp,Np=Lp,zp=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,Vp=/web0s(?!.*chrome)/i.test(le),Bp=i,Wp=Jt,qp=x.f,Hp=Ap.set,Kp=Np,Gp=op,Qp=zp,Xp=Vp,Jp=zh,$p=Bp.MutationObserver||Bp.WebKitMutationObserver,Yp=Bp.document,Zp=Bp.process,ed=Bp.Promise,td=qp(Bp,"queueMicrotask"),rd=td&&td.value;if(!rd){var nd=new Kp,id=function(){var e,t;for(Jp&&(e=Zp.domain)&&e.exit();t=nd.get();)try{t()}catch(XR){throw nd.head&&jp(),XR}e&&e.enter()};Gp||Jp||Xp||!$p||!Yp?!Qp&&ed&&ed.resolve?((Up=ed.resolve(void 0)).constructor=ed,Fp=Wp(Up.then,Up),jp=function(){Fp(id)}):Jp?jp=function(){Zp.nextTick(id)}:(Hp=Wp(Hp,Bp),jp=function(){Hp(id)}):(Mp=!0,Dp=Yp.createTextNode(""),new $p(id).observe(Dp,{characterData:!0}),jp=function(){Dp.data=Mp=!Mp}),rd=function(e){nd.head||jp(),nd.add(e)}}var od=rd,ad=function(e){try{return{error:!1,value:e()}}catch(XR){return{error:!0,value:XR}}},sd=i.Promise,ld="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cd=!ld&&!zh&&"object"==typeof window&&"object"==typeof document,ud=i,fd=sd,hd=O,pd=Kt,dd=on,gd=ht,vd=cd,yd=ld,md=ge,_d=fd&&fd.prototype,wd=gd("species"),bd=!1,Sd=hd(ud.PromiseRejectionEvent),Pd={CONSTRUCTOR:pd("Promise",(function(){var e=dd(fd),t=e!==String(fd);if(!t&&66===md)return!0;if(!_d.catch||!_d.finally)return!0;if(!md||md<51||!/native code/.test(e)){var r=new fd((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[wd]=n,!(bd=r.then((function(){}))instanceof n))return!0}return!t&&(vd||yd)&&!Sd})),REJECTION_EVENT:Sd,SUBCLASSING:bd},kd={},Td=Ce,Ed=TypeError,Od=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Ed("Bad Promise constructor");t=e,r=n})),this.resolve=Td(t),this.reject=Td(r)};kd.f=function(e){return new Od(e)};var xd,Rd,Id=xr,Cd=zh,Ad=i,Ld=A,jd=no,Md=Io,Dd=function(e){var t=Vh(e);Wh&&t&&!t[qh]&&Bh(t,qh,{configurable:!0,get:function(){return this}})},Ud=Ce,Fd=O,Nd=ee,zd=Gh,Vd=rp,Bd=Ap.set,Wd=od,qd=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(XR){}},Hd=ad,Kd=Np,Gd=Ko,Qd=sd,Xd=Pd,Jd=kd,$d="Promise",Yd=Xd.CONSTRUCTOR,Zd=Xd.REJECTION_EVENT,eg=Gd.getterFor($d),tg=Gd.set,rg=Qd&&Qd.prototype,ng=Qd,ig=rg,og=Ad.TypeError,ag=Ad.document,sg=Ad.process,lg=Jd.f,cg=lg,ug=!!(ag&&ag.createEvent&&Ad.dispatchEvent),fg="unhandledrejection",hg=function(e){var t;return!(!Nd(e)||!Fd(t=e.then))&&t},pg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&mg(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(og("Promise-chain cycle")):(n=hg(r))?Ld(n,r,l,c):l(r)):c(o)}catch(XR){u&&!i&&u.exit(),c(XR)}},dg=function(e,t){e.notified||(e.notified=!0,Wd((function(){for(var r,n=e.reactions;r=n.get();)pg(r,e);e.notified=!1,t&&!e.rejection&&vg(e)})))},gg=function(e,t,r){var n,i;ug?((n=ag.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ad.dispatchEvent(n)):n={promise:t,reason:r},!Zd&&(i=Ad["on"+e])?i(n):e===fg&&qd("Unhandled promise rejection",r)},vg=function(e){Ld(Bd,Ad,(function(){var t,r=e.facade,n=e.value;if(yg(e)&&(t=Hd((function(){Cd?sg.emit("unhandledRejection",n,r):gg(fg,r,n)})),e.rejection=Cd||yg(e)?2:1,t.error))throw t.value}))},yg=function(e){return 1!==e.rejection&&!e.parent},mg=function(e){Ld(Bd,Ad,(function(){var t=e.facade;Cd?sg.emit("rejectionHandled",t):gg("rejectionhandled",t,e.value)}))},_g=function(e,t,r){return function(n){e(t,n,r)}},wg=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,dg(e,!0))},bg=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw og("Promise can't be resolved itself");var n=hg(t);n?Wd((function(){var r={done:!1};try{Ld(n,t,_g(bg,r,e),_g(wg,r,e))}catch(XR){wg(r,XR,e)}})):(e.value=t,e.state=1,dg(e,!1))}catch(XR){wg({done:!1},XR,e)}}};Yd&&(ig=(ng=function(e){zd(this,ig),Ud(e),Ld(xd,this);var t=eg(this);try{e(_g(bg,t),_g(wg,t))}catch(XR){wg(t,XR)}}).prototype,(xd=function(e){tg(this,{type:$d,done:!1,notified:!1,parent:!1,reactions:new Kd,rejection:!1,state:0,value:void 0})}).prototype=jd(ig,"then",(function(e,t){var r=eg(this),n=lg(Vd(this,ng));return r.parent=!0,n.ok=!Fd(e)||e,n.fail=Fd(t)&&t,n.domain=Cd?sg.domain:void 0,0==r.state?r.reactions.add(n):Wd((function(){pg(n,r)})),n.promise})),Rd=function(){var e=new xd,t=eg(e);this.promise=e,this.resolve=_g(bg,t),this.reject=_g(wg,t)},Jd.f=lg=function(e){return e===ng||undefined===e?new Rd(e):cg(e)}),Id({global:!0,constructor:!0,wrap:!0,forced:Yd},{Promise:ng}),Md(ng,$d,!1,!0),Dd($d);var Sg=ht("iterator"),Pg=!1;try{var kg=0,Tg={next:function(){return{done:!!kg++}},return:function(){Pg=!0}};Tg[Sg]=function(){return this},Array.from(Tg,(function(){throw 2}))}catch(XR){}var Eg=function(e,t){if(!t&&!Pg)return!1;var r=!1;try{var n={};n[Sg]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(XR){}return r},Og=sd,xg=Pd.CONSTRUCTOR||!Eg((function(e){Og.all(e).then(void 0,(function(){}))})),Rg=A,Ig=Ce,Cg=kd,Ag=ad,Lg=yh;xr({target:"Promise",stat:!0,forced:xg},{all:function(e){var t=this,r=Cg.f(t),n=r.resolve,i=r.reject,o=Ag((function(){var r=Ig(t.resolve),o=[],a=0,s=1;Lg(e,(function(e){var l=a++,c=!1;s++,Rg(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var jg=xr,Mg=Pd.CONSTRUCTOR;sd&&sd.prototype,jg({target:"Promise",proto:!0,forced:Mg,real:!0},{catch:function(e){return this.then(void 0,e)}});var Dg=A,Ug=Ce,Fg=kd,Ng=ad,zg=yh;xr({target:"Promise",stat:!0,forced:xg},{race:function(e){var t=this,r=Fg.f(t),n=r.reject,i=Ng((function(){var i=Ug(t.resolve);zg(e,(function(e){Dg(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Vg=A,Bg=kd;xr({target:"Promise",stat:!0,forced:Pd.CONSTRUCTOR},{reject:function(e){var t=Bg.f(this);return Vg(t.reject,void 0,e),t.promise}});var Wg=rr,qg=ee,Hg=kd,Kg=function(e,t){if(Wg(e),qg(t)&&t.constructor===e)return t;var r=Hg.f(e);return(0,r.resolve)(t),r.promise},Gg=xr,Qg=sd,Xg=Pd.CONSTRUCTOR,Jg=Kg,$g=ae("Promise"),Yg=!Xg;Gg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Jg(Yg&&this===$g?Qg:this,e)}});var Zg=A,ev=Ce,tv=kd,rv=ad,nv=yh;xr({target:"Promise",stat:!0,forced:xg},{allSettled:function(e){var t=this,r=tv.f(t),n=r.resolve,i=r.reject,o=rv((function(){var r=ev(t.resolve),i=[],o=0,a=1;nv(e,(function(e){var s=o++,l=!1;a++,Zg(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var iv=A,ov=Ce,av=ae,sv=kd,lv=ad,cv=yh,uv="No one promise resolved";xr({target:"Promise",stat:!0,forced:xg},{any:function(e){var t=this,r=av("AggregateError"),n=sv.f(t),i=n.resolve,o=n.reject,a=lv((function(){var n=ov(t.resolve),a=[],s=0,l=1,c=!1;cv(e,(function(e){var u=s++,f=!1;l++,iv(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,uv)))}))})),--l||o(new r(a,uv))}));return a.error&&o(a.value),n.promise}});var fv=xr,hv=sd,pv=o,dv=ae,gv=O,vv=rp,yv=Kg,mv=hv&&hv.prototype;fv({target:"Promise",proto:!0,real:!0,forced:!!hv&&pv((function(){mv.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=vv(this,dv("Promise")),r=gv(e);return this.then(r?function(r){return yv(t,e()).then((function(){return r}))}:e,r?function(r){return yv(t,e()).then((function(){throw r}))}:e)}});var _v=te.Promise,wv=kd,bv=ad;xr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=wv.f(this),r=bv(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Sv=_v,Pv=r(Sv),kv=xr,Tv=Ir,Ev=v([].reverse),Ov=[1,2];kv({target:"Array",proto:!0,forced:String(Ov)===String(Ov.reverse())},{reverse:function(){return Tv(this)&&(this.length=this.length),Ev(this)}});var xv=Bu("Array").reverse,Rv=se,Iv=xv,Cv=Array.prototype,Av=r((function(e){var t=e.reverse;return e===Cv||Rv(Cv,e)&&t===Cv.reverse?Iv:t})),Lv=xr,jv=Ir,Mv=_n,Dv=ee,Uv=Yn,Fv=Nr,Nv=$,zv=Hr,Vv=ht,Bv=ks,Wv=In("slice"),qv=Vv("species"),Hv=Array,Kv=Math.max;Lv({target:"Array",proto:!0,forced:!Wv},{slice:function(e,t){var r,n,i,o=Nv(this),a=Fv(o),s=Uv(e,a),l=Uv(void 0===t?a:t,a);if(jv(o)&&(r=o.constructor,(Mv(r)&&(r===Hv||jv(r.prototype))||Dv(r)&&null===(r=r[qv]))&&(r=void 0),r===Hv||void 0===r))return Bv(o,s,l);for(n=new(void 0===r?Hv:r)(Kv(l-s,0)),i=0;s<l;s++,i++)s in o&&zv(n,i,o[s]);return n.length=i,n}});var Gv=Bu("Array").slice,Qv=se,Xv=Gv,Jv=Array.prototype,$v=function(e){var t=e.slice;return e===Jv||Qv(Jv,e)&&t===Jv.slice?Xv:t},Yv=r($v);function Zv(){Zv=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ru||function(e,t,r){e[t]=r.value},i="function"==typeof ru?ru:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Ru(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=Au(o.prototype),s=new k(i||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var g={};l(g,o,(function(){return this}));var v=Du&&Du(Du(T([])));v&&v!==t&&r.call(v,o)&&(g=v);var y=d.prototype=h.prototype=Au(g);function m(e){var t;$u(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==bu(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),hf(t=this.tryEntries).call(t,r)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],$u(e).call(e,S,this),this.reset(!0)}function T(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 n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return pf?pf(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=Au(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Pv);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?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),r=[];for(var n in t)hf(r).call(r,n);return Av(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,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,$u(t=this.tryEntries).call(t,P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Yv(n).call(n,1))&&(this[n]=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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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,f):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),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var ey=Xe,ty=di;xr({target:"Object",stat:!0,forced:o((function(){ty(1)}))},{keys:function(e){return ty(ey(e))}});var ry=te.Object.keys,ny=r(ry),iy=te.Object.getOwnPropertySymbols,oy=r(iy),ay=ea.filter;xr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(e){return ay(this,e,arguments.length>1?arguments[1]:void 0)}});var sy=Bu("Array").filter,ly=se,cy=sy,uy=Array.prototype,fy=function(e){var t=e.filter;return e===uy||ly(uy,e)&&t===uy.filter?cy:t},hy=r(fy),py={exports:{}},dy=xr,gy=o,vy=$,yy=x.f,my=R;dy({target:"Object",stat:!0,forced:!my||gy((function(){yy(1)})),sham:!my},{getOwnPropertyDescriptor:function(e,t){return yy(vy(e),t)}});var _y=te.Object,wy=py.exports=function(e,t){return _y.getOwnPropertyDescriptor(e,t)};_y.getOwnPropertyDescriptor.sham&&(wy.sham=!0);var by=py.exports,Sy=r(by),Py=_f,ky=$,Ty=x,Ey=Hr;xr({target:"Object",stat:!0,sham:!R},{getOwnPropertyDescriptors:function(e){for(var t,r,n=ky(e),i=Ty.f,o=Py(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Ey(a,t,r);return a}});var Oy=te.Object.getOwnPropertyDescriptors,xy=r(Oy),Ry={exports:{}},Iy=xr,Cy=R,Ay=Qn.f;Iy({target:"Object",stat:!0,forced:Object.defineProperties!==Ay,sham:!Cy},{defineProperties:Ay});var Ly=te.Object,jy=Ry.exports=function(e,t){return Ly.defineProperties(e,t)};Ly.defineProperties.sham&&(jy.sham=!0);var My=Ry.exports,Dy=r(My),Uy=r(ao.f("toPrimitive"));function Fy(e){var t=function(e,t){if("object"!==bu(e)||null===e)return e;var r=e[Uy];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bu(t)?t:String(t)}function Ny(e,t,r){return(t=Fy(t))in e?Ru(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e,t){var r=ny(e);if(oy){var n=oy(e);t&&(n=hy(n).call(n,(function(t){return Sy(e,t).enumerable}))),hf(r).apply(r,n)}return r}function Vy(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?$u(r=zy(Object(i),!0)).call(r,(function(t){Ny(e,t,i[t])})):xy?Dy(e,xy(i)):$u(n=zy(Object(i))).call(n,(function(t){Ru(e,t,Sy(i,t))}))}return e}function By(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(XR){return void r(XR)}s.done?t(l):Pv.resolve(l).then(n,i)}function Wy(e){return function(){var t=this,r=arguments;return new Pv((function(n,i){var o=e.apply(t,r);function a(e){By(o,n,i,a,s,"next",e)}function s(e){By(o,n,i,a,s,"throw",e)}a(void 0)}))}}function qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ru(e,Fy(n.key),n)}}function Ky(e,t,r){return t&&Hy(e.prototype,t),r&&Hy(e,r),Ru(e,"prototype",{writable:!1}),e}var Gy=v,Qy=Ce,Xy=ee,Jy=Ye,$y=ks,Yy=a,Zy=Function,em=Gy([].concat),tm=Gy([].join),rm={},nm=Yy?Zy.bind:function(e){var t=Qy(this),r=t.prototype,n=$y(arguments,1),i=function(){var r=em(n,$y(arguments));return this instanceof i?function(e,t,r){if(!Jy(rm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";rm[t]=Zy("C,a","return new C("+tm(n,",")+")")}return rm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Xy(r)&&(i.prototype=r),i},im=nm;xr({target:"Function",proto:!0,forced:Function.bind!==im},{bind:im});var om=Bu("Function").bind,am=se,sm=om,lm=Function.prototype,cm=function(e){var t=e.bind;return e===lm||am(lm,e)&&t===lm.bind?sm:t},um=r(cm);function fm(e,t){var r;return(fm=pf?um(r=pf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function hm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Au(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ru(e,"prototype",{writable:!1}),t&&fm(e,t)}var pm=xr,dm=f,gm=nm,vm=$h,ym=rr,mm=ee,_m=Ni,wm=o,bm=ae("Reflect","construct"),Sm=Object.prototype,Pm=[].push,km=wm((function(){function e(){}return!(bm((function(){}),[],e)instanceof e)})),Tm=!wm((function(){bm((function(){}))})),Em=km||Tm;pm({target:"Reflect",stat:!0,forced:Em,sham:Em},{construct:function(e,t){vm(e),ym(t);var r=arguments.length<3?e:vm(arguments[2]);if(Tm&&!km)return bm(e,t,r);if(e==r){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 n=[null];return dm(Pm,n,t),new(dm(gm,e,n))}var i=r.prototype,o=_m(mm(i)?i:Sm),a=dm(e,o,t);return mm(a)?a:o}});var Om=r(te.Reflect.construct);function xm(e){var t;return(xm=pf?um(t=Du).call(t):function(e){return e.__proto__||Du(e)})(e)}function Rm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Im(e){var t=function(){if("undefined"==typeof Reflect||!Om)return!1;if(Om.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Om(Boolean,[],(function(){}))),!0}catch(gE){return!1}}();return function(){var r,n=xm(e);if(t){var i=xm(this).constructor;r=Om(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rm(e)}(this,r)}}xr({target:"Array",stat:!0},{isArray:Ir});var Cm=te.Array.isArray,Am=r(Cm);function Lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var jm=Kf,Mm=r(jm),Dm=rr,Um=nh,Fm=Jt,Nm=A,zm=Xe,Vm=function(e,t,r,n){try{return n?t(Dm(r)[0],r[1]):t(r)}catch(XR){Um(e,"throw",XR)}},Bm=zf,Wm=_n,qm=Nr,Hm=Hr,Km=Zf,Gm=Kf,Qm=Array,Xm=function(e){var t=zm(e),r=Wm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Fm(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,h=Gm(t),p=0;if(!h||this===Qm&&Bm(h))for(a=qm(t),s=r?new this(a):Qm(a);a>p;p++)f=o?i(t[p],p):t[p],Hm(s,p,f);else for(u=(c=Km(t,h)).next,s=r?new this:[];!(l=Nm(u,c)).done;p++)f=o?Vm(c,i,[l.value,p],!0):l.value,Hm(s,p,f);return s.length=p,s},Jm=Xm;xr({target:"Array",stat:!0,forced:!Eg((function(e){Array.from(e)}))},{from:Jm});var $m=r(te.Array.from);function Ym(e,t){var r;if(e){if("string"==typeof e)return Lm(e,t);var n=Yv(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?$m(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lm(e,t):void 0}}function Zm(e){return function(e){if(Am(e))return Lm(e)}(e)||function(e){if(void 0!==ru&&null!=Mm(e)||null!=e["@@iterator"])return $m(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.")}()}var e_=Bu("Array").concat,t_=se,r_=e_,n_=Array.prototype,i_=r((function(e){var t=e.concat;return e===n_||t_(n_,e)&&t===n_.concat?r_:t})),o_=window.VePlayer.error,a_=o_.VeError,s_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(s_||{});o_.Level;var l_=Vy(Vy({},s_),o_.ErrorCode),c_=Vy(Vy({},o_.ERROR_INFO),{},Ny({},210,{messageTextKey:"INVALID_PARAMETER",level:o_.Level.Fatal}));function u_(e,t){return new a_(c_[e],t)}function f_(e,t){return function(e){if(Am(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==ru&&Mm(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(hf(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}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 h_=xr,p_=ni.indexOf,d_=Fu,g_=P([].indexOf),v_=!!g_&&1/g_([1],1,-0)<0;h_({target:"Array",proto:!0,forced:v_||!d_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return v_?g_(this,e,t)||0:p_(this,e,t)}});var y_=Bu("Array").indexOf,m_=se,__=y_,w_=Array.prototype,b_=function(e){var t=e.indexOf;return e===w_||m_(w_,e)&&t===w_.indexOf?__:t},S_=r(b_);function P_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=ny(e);for(n=0;n<o.length;n++)r=o[n],S_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(oy){var o=oy(e);for(n=0;n<o.length;n++)r=o[n],S_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var k_=r(Sv),T_=window.VePlayer.DynamicModule,E_=window.VePlayer.load;function O_(){return x_.apply(this,arguments)}function x_(){return(x_=Wy(Zv().mark((function e(){var t;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E_(T_.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R_(){return I_.apply(this,arguments)}function I_(){return I_=Wy(Zv().mark((function e(){var t,r,n=arguments;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:RR.H264,e.next=3,E_(T_.PluginRtm);case 3:if(r=e.sent,t!==RR.H264){e.next=6;break}return e.abrupt("return",r.isSupportedH264());case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)}))),I_.apply(this,arguments)}var C_=["fallbackUrl","enableFallback"],A_=window.VePlayer.strategy,L_=window.VePlayer.util,j_=window.VePlayer.DynamicModule,M_=window.VePlayer.load,D_=window.VePlayer.Codec,U_=window.VePlayer.Sniffer,F_={options:{},module:j_.PluginRtm},N_=function(e){return"pc"===U_.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},z_=function(){var e=Wy(Zv().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p,d,g,v,y,m,_,w,b,S;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,f=P_(s,C_),h=u?!l&&a?N_(a):l:"","flv"===(p=h&&L_.getStreamType(h))&&L_.isMseSupported(D_.H264)?o=A_.createFlvMseStrategy(t):"hls"===p&&("mobile"!==U_.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&L_.isMseSupported(D_.H264)&&(o=A_.createHlsMseStrategy(t)),e.next=7,k_.all([M_(F_.module).catch((function(){})),o&&M_(o.module).catch((function(){}))]);case 7:return d=e.sent,g=f_(d,2),v=g[0],y=g[1],e.next=13,k_.all([O_(),R_()]);case 13:if(m=e.sent,_=f_(m,2),w=_[0],b=_[1],w&&b){e.next=20;break}return r&&r.emit("degrade",{url:h,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:w,isRTMSupportCodec:b}),e.abrupt("return",{options:Vy(Vy({},(null===(S=o)||void 0===S?void 0:S.options)||{}),{},{url:h,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:w,_isRTMSupportCodec:b}}),plugins:y?[y]:[]});case 20:return e.abrupt("return",{options:Vy(Vy({},(null===(i=o)||void 0===i?void 0:i.options)||{}),{},{_RTMdegrade:void 0,rts:Vy(Vy({retryCount:0},f),{},{backupURL:h,backupConstruct:y})}),plugins:v?[v]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),V_=window.VePlayer.util,B_=window.VePlayer.strategy,W_=function(){var e=Wy(Zv().mark((function e(t,r){var n;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?V_.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,z_(t,r);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,B_.getFlvStrategy(t);case 11:if("hls"!==n){e.next=15;break}return e.next=14,B_.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),q_=r(cm),H_="\t\n\v\f\r                 \u2028\u2029\ufeff",K_=Q,G_=Gn,Q_=H_,X_=v("".replace),J_=RegExp("^["+Q_+"]+"),$_=RegExp("(^|[^"+Q_+"])["+Q_+"]+$"),Y_=function(e){return function(t){var r=G_(K_(t));return 1&e&&(r=X_(r,J_,"")),2&e&&(r=X_(r,$_,"$1")),r}},Z_={start:Y_(1),end:Y_(2),trim:Y_(3)},ew=i,tw=o,rw=v,nw=Gn,iw=Z_.trim,ow=H_,aw=ew.parseInt,sw=ew.Symbol,lw=sw&&sw.iterator,cw=/^[+-]?0x/i,uw=rw(cw.exec),fw=8!==aw(ow+"08")||22!==aw(ow+"0x16")||lw&&!tw((function(){aw(Object(lw))}))?function(e,t){var r=iw(nw(e));return aw(r,t>>>0||(uw(cw,r)?16:10))}:aw;xr({global:!0,forced:parseInt!=fw},{parseInt:fw});var hw,pw=r(te.parseInt),dw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,gw=i,vw=f,yw=O,mw=dw,_w=le,ww=ks,bw=ip,Sw=gw.Function,Pw=/MSIE .\./.test(_w)||mw&&((hw=gw.Bun.version.split(".")).length<3||0==hw[0]&&(hw[1]<3||3==hw[1]&&0==hw[2])),kw=function(e,t){var r=t?2:1;return Pw?function(n,i){var o=bw(arguments.length,1)>r,a=yw(n)?n:Sw(n),s=o?ww(arguments,r):[],l=o?function(){vw(a,this,s)}:a;return t?e(l,i):e(l)}:e},Tw=xr,Ew=i,Ow=kw(Ew.setInterval,!0);Tw({global:!0,bind:!0,forced:Ew.setInterval!==Ow},{setInterval:Ow});var xw=xr,Rw=i,Iw=kw(Rw.setTimeout,!0);xw({global:!0,bind:!0,forced:Rw.setTimeout!==Iw},{setTimeout:Iw});var Cw=r(te.setTimeout),Aw=r($v),Lw=NaN,jw="[object Symbol]",Mw=/^\s+|\s+$/g,Dw=/^[-+]0x[0-9a-f]+$/i,Uw=/^0b[01]+$/i,Fw=/^0o[0-7]+$/i,Nw=pw,zw="object"==bu(t)&&t&&t.Object===Object&&t,Vw="object"==("undefined"==typeof self?"undefined":bu(self))&&self&&self.Object===Object&&self,Bw=zw||Vw||Function("return this")(),Ww=Object.prototype.toString,qw=Math.max,Hw=Math.min,Kw=function(){return Bw.Date.now()};function Gw(e){var t=bu(e);return!!e&&("object"==t||"function"==t)}function Qw(e){return"symbol"==bu(e)||function(e){return!!e&&"object"==bu(e)}(e)&&Ww.call(e)==jw}function Xw(e){if("number"==typeof e)return e;if(Qw(e))return Lw;if(Gw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Gw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mw,"");var r=Uw.test(e);return r||Fw.test(e)?Nw(Aw(e).call(e,2),r?2:8):Dw.test(e)?Lw:+e}var Jw=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function g(){var e=Kw();if(d(e))return v(e);s=Cw(g,function(e){var r=t-(e-l);return f?Hw(r,o-(e-c)):r}(e))}function v(e){return s=void 0,h&&n?p(e):(n=i=void 0,a)}function y(){var e=Kw(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=Cw(g,t),u?p(e):a}(l);if(f)return s=Cw(g,t),p(l)}return void 0===s&&(s=Cw(g,t)),a}return t=Xw(t)||0,Gw(r)&&(u=!!r.leading,o=(f="maxWait"in r)?qw(Xw(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(Kw())},y},$w=r(Jw),Yw=Vy(Vy({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function Zw(){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 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var eb=window.VePlayer.Plugin,tb=window.VePlayer.Sniffer,rb=window.VePlayer.XGEvents,nb=eb.POSITIONS,ib=function(e){hm(r,e);var t=Im(r);function r(){return qy(this,r),t.apply(this,arguments)}return Ky(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Zw,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Yw.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(rb.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=$w(q_(e=this._handleRefresh).call(e,this),200);var t="mobile"===tb.device?"touchend":"click";q_(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:nb.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(eb),ob=r(xu),ab=r(ry),sb=r(iy),lb=r(fy),cb=r(by),ub=r(Ju),fb=r(Oy),hb=r(My),pb=r(b_),db=xr,gb=Date,vb=v(gb.prototype.getTime);db({target:"Date",stat:!0},{now:function(){return vb(new gb)}});var yb=r(te.Date.now),mb=o,_b=ht("iterator"),wb=!mb((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+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[_b]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),bb=no,Sb=Xi,Pb=Math.floor,kb=function(e,t){var r=e.length,n=Pb(r/2);return r<8?Tb(e,t):Eb(e,kb(Sb(e,0,n),t),kb(Sb(e,n),t),t)},Tb=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Eb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},Ob=xr,xb=i,Rb=A,Ib=v,Cb=R,Ab=wb,Lb=no,jb=oo,Mb=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:bb(e,n,t[n],r);return e},Db=Io,Ub=Bl,Fb=Ko,Nb=Gh,zb=O,Vb=Ye,Bb=Jt,Wb=en,qb=rr,Hb=ee,Kb=Gn,Gb=Ni,Qb=N,Xb=Zf,Jb=Kf,$b=ip,Yb=kb,Zb=ht("iterator"),eS="URLSearchParams",tS=eS+"Iterator",rS=Fb.set,nS=Fb.getterFor(eS),iS=Fb.getterFor(tS),oS=Object.getOwnPropertyDescriptor,aS=function(e){if(!Cb)return xb[e];var t=oS(xb,e);return t&&t.value},sS=aS("fetch"),lS=aS("Request"),cS=aS("Headers"),uS=lS&&lS.prototype,fS=cS&&cS.prototype,hS=xb.RegExp,pS=xb.TypeError,dS=xb.decodeURIComponent,gS=xb.encodeURIComponent,vS=Ib("".charAt),yS=Ib([].join),mS=Ib([].push),_S=Ib("".replace),wS=Ib([].shift),bS=Ib([].splice),SS=Ib("".split),PS=Ib("".slice),kS=/\+/g,TS=Array(4),ES=function(e){return TS[e-1]||(TS[e-1]=hS("((?:%[\\da-f]{2}){"+e+"})","gi"))},OS=function(e){try{return dS(e)}catch(XR){return e}},xS=function(e){var t=_S(e,kS," "),r=4;try{return dS(t)}catch(XR){for(;r;)t=_S(t,ES(r--),OS);return t}},RS=/[!'()~]|%20/g,IS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},CS=function(e){return IS[e]},AS=function(e){return _S(gS(e),RS,CS)},LS=Ub((function(e,t){rS(this,{type:tS,iterator:Xb(nS(e).entries),kind:t})}),"Iterator",(function(){var e=iS(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),jS=function(e){this.entries=[],this.url=null,void 0!==e&&(Hb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===vS(e,0)?PS(e,1):e:Kb(e)))};jS.prototype={type:eS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=Jb(e);if(l)for(r=(t=Xb(e,l)).next;!(n=Rb(r,t)).done;){if(o=(i=Xb(qb(n.value))).next,(a=Rb(o,i)).done||(s=Rb(o,i)).done||!Rb(o,i).done)throw pS("Expected sequence with length 2");mS(this.entries,{key:Kb(a.value),value:Kb(s.value)})}else for(var c in e)Vb(e,c)&&mS(this.entries,{key:c,value:Kb(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=SS(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=SS(t,"="),mS(this.entries,{key:xS(wS(r)),value:xS(yS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],mS(r,AS(e.key)+"="+AS(e.value));return yS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var MS=function(){Nb(this,DS);var e=rS(this,new jS(arguments.length>0?arguments[0]:void 0));Cb||(this.length=e.entries.length)},DS=MS.prototype;if(Mb(DS,{append:function(e,t){$b(arguments.length,2);var r=nS(this);mS(r.entries,{key:Kb(e),value:Kb(t)}),Cb||this.length++,r.updateURL()},delete:function(e){$b(arguments.length,1);for(var t=nS(this),r=t.entries,n=Kb(e),i=0;i<r.length;)r[i].key===n?bS(r,i,1):i++;Cb||(this.length=r.length),t.updateURL()},get:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=[],i=0;i<t.length;i++)t[i].key===r&&mS(n,t[i].value);return n},has:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){$b(arguments.length,1);for(var r,n=nS(this),i=n.entries,o=!1,a=Kb(e),s=Kb(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?bS(i,l--,1):(o=!0,r.value=s));o||mS(i,{key:a,value:s}),Cb||(this.length=i.length),n.updateURL()},sort:function(){var e=nS(this);Yb(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=nS(this).entries,n=Bb(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new LS(this,"keys")},values:function(){return new LS(this,"values")},entries:function(){return new LS(this,"entries")}},{enumerable:!0}),Lb(DS,Zb,DS.entries,{name:"entries"}),Lb(DS,"toString",(function(){return nS(this).serialize()}),{enumerable:!0}),Cb&&jb(DS,"size",{get:function(){return nS(this).entries.length},configurable:!0,enumerable:!0}),Db(MS,eS),Ob({global:!0,constructor:!0,forced:!Ab},{URLSearchParams:MS}),!Ab&&zb(cS)){var US=Ib(fS.has),FS=Ib(fS.set),NS=function(e){if(Hb(e)){var t,r=e.body;if(Wb(r)===eS)return t=e.headers?new cS(e.headers):new cS,US(t,"content-type")||FS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Gb(e,{body:Qb(0,Kb(r)),headers:Qb(0,t)})}return e};if(zb(sS)&&Ob({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return sS(e,arguments.length>1?NS(arguments[1]):{})}}),zb(lS)){var zS=function(e){return Nb(this,uS),new lS(e,arguments.length>1?NS(arguments[1]):{})};uS.constructor=zS,zS.prototype=uS,Ob({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:zS})}}var VS={URLSearchParams:MS,getState:nS},BS=r(te.URLSearchParams),WS=ee,qS=w,HS=ht("match"),KS=function(e){var t;return WS(e)&&(void 0!==(t=e[HS])?!!t:"RegExp"==qS(e))},GS=TypeError,QS=function(e){if(KS(e))throw GS("The method doesn't accept regular expressions");return e},XS=ht("match"),JS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[XS]=!1,"/./"[e](t)}catch(XR){}}return!1},$S=xr,YS=P,ZS=Ur,eP=Gn,tP=QS,rP=Q,nP=JS,iP=YS("".startsWith),oP=YS("".slice),aP=Math.min;$S({target:"String",proto:!0,forced:!nP("startsWith")},{startsWith:function(e){var t=eP(rP(this));tP(e);var r=ZS(aP(arguments.length>1?arguments[1]:void 0,t.length)),n=eP(e);return iP?iP(t,n,r):oP(t,r,r+n.length)===n}});var sP=Bu("String").startsWith,lP=se,cP=sP,uP=String.prototype,fP=r((function(e){var t=e.startsWith;return"string"==typeof e||e===uP||lP(uP,e)&&t===uP.startsWith?cP:t})),hP=fw;xr({target:"Number",stat:!0,forced:Number.parseInt!=hP},{parseInt:hP});var pP=r(te.Number.parseInt),dP=R,gP=v,vP=A,yP=o,mP=di,_P=to,wP=L,bP=Xe,SP=q,PP=Object.assign,kP=Object.defineProperty,TP=gP([].concat),EP=!PP||yP((function(){if(dP&&1!==PP({b:1},PP(kP({},"a",{enumerable:!0,get:function(){kP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=PP({},e)[r]||mP(PP({},t)).join("")!=n}))?function(e,t){for(var r=bP(e),n=arguments.length,i=1,o=_P.f,a=wP.f;n>i;)for(var s,l=SP(arguments[i++]),c=o?TP(mP(l),o(l)):mP(l),u=c.length,f=0;u>f;)s=c[f++],dP&&!vP(a,l,s)||(r[s]=l[s]);return r}:PP,OP=EP;xr({target:"Object",stat:!0,arity:2,forced:Object.assign!==OP},{assign:OP});var xP=r(te.Object.assign),RP=ni.includes;xr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return RP(this,e,arguments.length>1?arguments[1]:void 0)}});var IP=Bu("Array").includes,CP=xr,AP=QS,LP=Q,jP=Gn,MP=JS,DP=v("".indexOf);CP({target:"String",proto:!0,forced:!MP("includes")},{includes:function(e){return!!~DP(jP(LP(this)),jP(AP(e)),arguments.length>1?arguments[1]:void 0)}});var UP=Bu("String").includes,FP=se,NP=IP,zP=UP,VP=Array.prototype,BP=String.prototype,WP=r((function(e){var t=e.includes;return e===VP||FP(VP,e)&&t===VP.includes?NP:"string"==typeof e||e===BP||FP(BP,e)&&t===BP.includes?zP:t})),qP=te,HP=f;qP.JSON||(qP.JSON={stringify:JSON.stringify});var KP=function(e,t,r){return HP(qP.JSON.stringify,null,arguments)},GP=r(KP),QP=f,XP=$,JP=jr,$P=Nr,YP=Fu,ZP=Math.min,ek=[].lastIndexOf,tk=!!ek&&1/[1].lastIndexOf(1,-0)<0,rk=YP("lastIndexOf"),nk=tk||!rk?function(e){if(tk)return QP(ek,this,arguments)||0;var t=XP(this),r=$P(t),n=r-1;for(arguments.length>1&&(n=ZP(n,JP(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:ek;xr({target:"Array",proto:!0,forced:nk!==[].lastIndexOf},{lastIndexOf:nk});var ik=Bu("Array").lastIndexOf,ok=se,ak=ik,sk=Array.prototype,lk=r((function(e){var t=e.lastIndexOf;return e===sk||ok(sk,e)&&t===sk.lastIndexOf?ak:t})),ck=i,uk=o,fk=Gn,hk=Z_.trim,pk=H_,dk=v("".charAt),gk=ck.parseFloat,vk=ck.Symbol,yk=vk&&vk.iterator,mk=1/gk(pk+"-0")!=-1/0||yk&&!uk((function(){gk(Object(yk))}))?function(e){var t=hk(fk(e)),r=gk(t);return 0===r&&"-"==dk(t,0)?-0:r}:gk,_k=mk;xr({target:"Number",stat:!0,forced:Number.parseFloat!=_k},{parseFloat:_k});var wk=r(te.Number.parseFloat),bk=r(te.setInterval);function Sk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),ob(e,n.key,n)}}function Pk(e,t,r){return t&&Sk(e.prototype,t),r&&Sk(e,r),e}function kk(e,t,r){return t in e?ob(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tk(e,t){var r=ab(e);if(sb){var n=sb(e);t&&(n=lb(n).call(n,(function(t){return cb(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)ub(r=Tk(Object(n),!0)).call(r,(function(t){kk(e,t,n[t])}));else if(fb)hb(e,fb(n));else{var i;ub(i=Tk(Object(n))).call(i,(function(t){ob(e,t,cb(n,t))}))}}return e}var Ok="xgplayer_device_id",xk="xgplayer_user_id",Rk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(pb(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},Ik=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},Ck=function(){var e=Rk(Ok);if(e)return e;var t=Ik(11);return document.cookie=Ok+"="+t+";max-age=31536000;path=/",t},Ak=function(){var e=Rk(xk);if(e)return e;var t=Ik(12);return document.cookie=xk+"="+t+";max-age=31536000;path=/",t};var Lk={get device(){return Lk.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:pb(e).call(e,"chrome")>-1&&pb(e).call(e,"safari")>-1,Firefox:pb(e).call(e,"firefox")>-1,Opera:pb(e).call(e,"opera")>-1,Safari:pb(e).call(e,"safari")>-1&&-1==pb(e).call(e,"chrome"),Edge:pb(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=pw(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function jk(){return yb()}function Mk(e){var t="unknown";return"string"!=typeof e?t:pb(e).call(e,".flv")>-1?"flv":pb(e).call(e,".m3u8")>-1?"m3u8":pb(e).call(e,".mp4")>-1?"mp4":pb(e).call(e,".sdp")>-1?"rts":t}function Dk(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}var Uk={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Fk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=q_(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}Pk(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&fP(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new BS(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=Mk(e.cdn_play_url),e.timestamp=jk();var r=function(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(XR){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,xP(e,Ek({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,Ek({},e)))},e}(),Nk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||Lk.device:"none":"unknown";var e},zk=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],Vk=function(){function e(e){var t,r;this.options=e,this.logger=new Bk(e),this.restart=q_(t=this.restart).call(t,this),this.bindUrlChange(),WP(r=Lk.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Bk(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=xP(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),Bk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=xP({},e,function(e){return{device_id:e.device_id||Ck(),user_id:e.user_id||Ak(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?yb()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Fk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}Pk(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return yb()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=yb()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,h,p,d,g;this.handlePlayerComlete=q_(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=q_(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=q_(r=this.destroyFunc).call(r,this),this.handleUserLeave=q_(n=this.handleUserLeave).call(n,this),this.handlePlayerError=q_(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=q_(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=q_(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=q_(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=q_(l=this.handlePlayerPause).call(l,this),this.handleTTFB=q_(c=this.handleTTFB).call(c,this),this.handleUrlChange=q_(u=this.handleUrlChange).call(u,this),this.handleKeyframe=q_(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=q_(h=this.handleSourceOpen).call(h,this),this.handleBufferAppend=q_(p=this.handleBufferAppend).call(p,this),this.handleCoreEvent=q_(d=this.handleCoreEvent).call(d,this),this.handleDegrade=q_(g=this.handleDegrade).call(g,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=Ek({os:Lk.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return Ek({project_key:e.project_key,live_sdk_version:Dk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:Ik(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+yb(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:Lk.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:yb(),play_current_time:0,cdn_play_url:r.config.url&&fP(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:Mk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=xP({},{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){ob(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&ob(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?Aw(e).call(e,0,25e4):""}return""},enumerable:!0}),ob(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),ob(this.log[o],"access",{get:function(){return Nk()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=Dk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=jk(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===Lk.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===Lk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;ub(zk).call(zk,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(xP(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=jk(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(xP({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,Aw(Array.prototype).call(e,0))}catch(gE){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(xP(this.log.play_url_change,{url:e,timestamp:jk()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=jk(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=jk(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=jk(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;xP(this.log.play_error,Ek({timestamp:jk(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:GP(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(xP(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=jk()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=jk(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=jk(),xP(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=Aw(i).call(i,pb(i).call(i,"{"),lk(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(gE){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=jk(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){xP(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=jk(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(xP({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=Dk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=pP(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(gE){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=wk(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=wk(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?k_.resolve(i.getStats()).then((function(t){return ub(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,h=t.framesDropped,p=t.keyFramesDecoded,d=t.totalDecodeTime,g=t.framesDecoded,v=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,w=t.jitterBufferEmittedCount,b=t.jitter,S=t.nackCount,P=t.packetsLost,k=t.pliCount,T=t.totalSamplesReceived,E=t.concealedSamples,O=t.currentRoundTripTime,x=t.decoderImplementation,R=t.mimeType,I=t.freezeCount,C=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=P-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=P,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(T-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=T,o.concealed_samples=E,o.total_samples_received=T):(o.frames_dropped=h,o.iframes_decoded=p,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/g,o.video_frame_height=v,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(g-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=g,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=I-r.cacheRtcStats.freezeCount,o.freeze_duration=C-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=I,r.cacheRtcStats.totalFreezesDuration=C,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/w*1e3,o.video_jitter=1e3*b,o.video_nack_count=S,o.video_packets_lost=P-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=P,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=k,o.decoder_name=x);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=v);break;case"candidate-pair":o.rtt=1e3*O;break;case"codec":WP(R).call(R,"video")?o.video_codec=R:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),xP(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):k_.resolve(o)}catch(gE){return k_.reject(gE)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<jk()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,jk()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=jk(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),xP(t.log.playing,Ek({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),k_.resolve(t.getRtcStats(o,e)).then((function(r){t.logmanager.push(xP({},t.log.playing,Ek({play_time:e?0:o},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(gE){return k_.reject(gE)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return k_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return k_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=bk((function(){try{var r=function(){if(Math.abs(yb()-e.log.playing.timestamp-t)<100||yb()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return k_.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return k_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(gE){return k_.reject(gE)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(gE){return k_.reject(gE)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=jk(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=jk(),this.playResultTimer=Cw((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=jk(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=jk(),this.log.stall_start.stall_start_time=jk(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),xP(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=Cw((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=jk();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=jk();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=jk(),this.log.playing.stall_count++,xP(this.log.stall,Ek({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),xP(this.log.playing,Ek({timestamp:jk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;xP(this.log.play_error,Ek(Ek({timestamp:jk()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=Uk[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=jk()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=Uk[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===Lk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&window.removeEventListener("pagehide",this.handleUserLeave),ub(zk).call(zk,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(XR){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(XR){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=jk();xP(this.log.first_frame,Ek({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=function(e){var t,r=lb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:pP(n.domainLookupEnd-n.domainLookupStart),redirect:pP(n.redirectEnd-n.redirectStart),ttfb:pP(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(this._url),t=jk();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;xP(r,Ek({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,xP(r,Ek({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(xP(this.log.playing,Ek({timestamp:jk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=jk(),xP(r,Ek({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),Wk=r(tu),qk=r(jm),Hk=Oe,Kk=TypeError,Gk=xr,Qk=Xe,Xk=Yn,Jk=jr,$k=Nr,Yk=rf,Zk=Vr,eT=En,tT=Hr,rT=function(e,t){if(!delete e[t])throw Kk("Cannot delete property "+Hk(t)+" of "+Hk(e))},nT=In("splice"),iT=Math.max,oT=Math.min;Gk({target:"Array",proto:!0,forced:!nT},{splice:function(e,t){var r,n,i,o,a,s,l=Qk(this),c=$k(l),u=Xk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=oT(iT(Jk(t),0),c-u)),Zk(c+r-n),i=eT(l,n),o=0;o<n;o++)(a=u+o)in l&&tT(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:rT(l,s);for(o=c;o>c-n+r;o--)rT(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:rT(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return Yk(l,c-n+r),i}});var aT=Bu("Array").splice,sT=se,lT=aT,cT=Array.prototype,uT=r((function(e){var t=e.splice;return e===cT||sT(cT,e)&&t===cT.splice?lT:t}));xr({global:!0,forced:parseFloat!=mk},{parseFloat:mk});var fT=r(te.parseFloat),hT=vl.PROPER,pT=o,dT=H_,gT=Z_.trim;xr({target:"String",proto:!0,forced:function(e){return pT((function(){return!!dT[e]()||"​…᠎"!=="​…᠎"[e]()||hT&&dT[e].name!==e}))}("trim")},{trim:function(){return gT(this)}});var vT=Bu("String").trim,yT=se,mT=vT,_T=String.prototype,wT=r((function(e){var t=e.trim;return"string"==typeof e||e===_T||yT(_T,e)&&t===_T.trim?mT:t})),bT=r(Cu),ST=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),PT={exports:{}},kT=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),TT=o,ET=ee,OT=w,xT=kT,RT=Object.isExtensible,IT=TT((function(){RT(1)}))||xT?function(e){return!!ET(e)&&((!xT||"ArrayBuffer"!=OT(e))&&(!RT||RT(e)))}:RT,CT=xr,AT=v,LT=ii,jT=ee,MT=Ye,DT=$t.f,UT=zi,FT=Wi,NT=IT,zT=ST,VT=!1,BT=nt("meta"),WT=0,qT=function(e){DT(e,BT,{value:{objectID:"O"+WT++,weakData:{}}})},HT=PT.exports={enable:function(){HT.enable=function(){},VT=!0;var e=UT.f,t=AT([].splice),r={};r[BT]=1,e(r).length&&(UT.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===BT){t(n,i,1);break}return n},CT({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:FT.f}))},fastKey:function(e,t){if(!jT(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!MT(e,BT)){if(!NT(e))return"F";if(!t)return"E";qT(e)}return e[BT].objectID},getWeakData:function(e,t){if(!MT(e,BT)){if(!NT(e))return!0;if(!t)return!1;qT(e)}return e[BT].weakData},onFreeze:function(e){return zT&&VT&&NT(e)&&!MT(e,BT)&&qT(e),e}};LT[BT]=!0;var KT=PT.exports,GT=xr,QT=ST,XT=o,JT=ee,$T=KT.onFreeze,YT=Object.freeze;GT({target:"Object",stat:!0,forced:XT((function(){YT(1)})),sham:!QT},{freeze:function(e){return YT&&JT(e)?YT($T(e)):e}});var ZT=r(te.Object.freeze),eE=ea.map;xr({target:"Array",proto:!0,forced:!In("map")},{map:function(e){return eE(this,e,arguments.length>1?arguments[1]:void 0)}});var tE,rE=Bu("Array").map,nE=se,iE=rE,oE=Array.prototype,aE=r((function(e){var t=e.map;return e===oE||nE(oE,e)&&t===oE.map?iE:t})),sE=r(Cm),lE=function(){return lE=xP||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lE.apply(this,arguments)};function cE(e,t){var r="function"==typeof Wk&&qk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function uE(){for(var e=[],t=0;t<arguments.length;t++)e=i_(e).call(e,cE(arguments[t]));return e}var fE,hE,pE,dE,gE,vE=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=pb(r=this._hooks[e]).call(r,t);-1!==i&&uT(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==pb(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&ub(r=uE(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===pb(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),yE=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},mE=(fE=+yb()+Number(Aw(tE=""+Math.random()).call(tE,2,8)),function(){return fE+=1}),_E=function(e){var t=document.createElement("a");return t.href=e,t},wE=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?_E(r).hostname:"";!function(e){var t={};try{var r,n=_E(e).search;ub(r=(n=Aw(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+fT(this.appVersion),i=this.userAgent;return-1!==pb(i).call(i,"Edge")||-1!==pb(i).call(i,"Edg")?(r="Microsoft Edge",-1!==pb(i).call(i,"Edge")?(e=pb(i).call(i,"Edge"),n=i.substring(e+5)):(e=pb(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=pb(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=pb(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=pb(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==pb(i).call(i,"MQQBrowser")||-1!==pb(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==pb(i).call(i,"MQQBrowser")?(e=pb(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==pb(i).call(i,"QQBrowser")&&(e=pb(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==pb(i).call(i,"Chrome")?-1!==(e=pb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=pb(i).call(i,"360"))?(r="360browser",n=i.substring(pb(i).call(i,"Chrome")+7)):-1!==pb(i).call(i,"baidubrowser")||-1!==pb(i).call(i,"BIDUBrowser")?(-1!==pb(i).call(i,"baidubrowser")?(e=pb(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==pb(i).call(i,"BIDUBrowser")&&(e=pb(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=pb(i).call(i,"xiaomi"))?-1!==pb(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=pb(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=pb(i).call(i,"Chrome"))||-1!==(e=pb(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==pb(i).call(i,"Safari")?-1!==(e=pb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=pb(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=pb(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=pb(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=pb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=pb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=pb(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=pb(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=pb(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=pb(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=pb(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?Aw(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)ub(r=navigator.userAgent.split(";")).call(r,(function(e){pb(e).call(e,"Build/")>-1&&(t=Aw(e).call(e,0,pb(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=pb(n).call(n,";");t=Aw(n).call(n,0,i)}}catch(o){return wT(t).call(t)}return wT(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),bE=(hE=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(yb()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return bT({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=Aw(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:ZT(n)},converter:{value:ZT(r)}})}({read:function(e){return'"'===e[0]&&(e=Aw(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},hE(pE={exports:{}}),pE.exports),SE=bE,PE=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),kE={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:GP(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return SE.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;SE.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(gE){return!1}}()},TE={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:GP(t);sessionStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(t){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(gE){return!1}}()},EE=function(){function e(e,t){this._storage=t&&"session"===t?TE:!e&&kE.isSupportLS?kE:new PE}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),OE={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},xE=void 0,RE=(new Date).getTimezoneOffset(),IE=pw(""+-RE/60,10),CE=60*RE,AE=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new wE(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new EE(!1,"session"),this.localStorage=new EE(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:xE,user_type:xE,user_id:xE,user_is_auth:xE,user_is_login:xE,device_id:xE,web_id:xE,user_unique_id_type:xE},header:{app_id:xE,app_name:xE,app_install_id:xE,install_id:xE,app_package:xE,app_channel:xE,app_version:xE,ab_version:xE,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:xE,traffic_type:xE,client_ip:xE,device_brand:xE,os_api:xE,access:xE,language:r.language,region:xE,app_language:xE,app_region:xE,creative_id:xE,ad_id:xE,campaign_id:xE,log_type:xE,rnd:xE,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:xE,city:xE,timezone:IE,tz_offset:CE,tz_name:xE,sim_region:xE,carrier:xE,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:xE,utm_content:xE,utm_source:xE,utm_medium:xE,utm_campaign:xE,custom:{},wechat_unionid:xE,wechat_openid:xE}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=pw(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(OE[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;ub(t=ab(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=lE({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=lE({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?pb(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(GP(this.envInfo[e])):JSON.parse(GP(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(gE=dE||(dE={})).Init="init",gE.Config="config",gE.Start="start",gE.Ready="ready",gE.TokenComplete="token-complete",gE.TokenStorage="token-storage",gE.TokenFetch="token-fetch",gE.TokenError="token-error",gE.ConfigUuid="config-uuid",gE.TokenChange="token-change",gE.TokenReset="token-reset",gE.SessionReset="session-reset",gE.SessionResetTime="session-reset-time",gE.Event="event",gE.Events="events",gE.EventNow="event-now",gE.CleanEvents="clean-events",gE.BeconEvent="becon-event";var LE=dE;function jE(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(GP(t))}catch(f){}}var ME,DE=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new EE(!0),this.localStorage=new EE(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(LE.Ready,(function(){r.reportAll(!1)})),this.collect.on(LE.Event,(function(e){r.event(e)})),this.collect.on(LE.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=uE(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=Cw((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=uE(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=Aw(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=GP(n.custom);var o=this.configManager.get("evtParams"),a=aE(e).call(e,(function(e){try{return ab(o).length&&(e.params=lE({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=GP(e.params),e}catch(gE){return e}})),s=[];if(!ab(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(GP({events:a,user:i,header:n}));return l.local_time=Math.floor(yb()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return aE(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&ub(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,GP(i))||s(n,i):jE(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+GP(l.stack))}var n,i,o,a,s}))},e}(),UE=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},FE=function(){var e;return Aw(e=UE().replace(/-/g,"")).call(e,0,19)},NE=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new EE(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(LE.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=FE();jE(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=yb(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(LE.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===pb(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=yb(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=yb(),this.setStorage(this.cacheToken)),this.collect.emit(LE.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),zE=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},VE=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new EE(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(LE.SessionReset,(function(){r.resetSessionId()})),this.collect.on(LE.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;yb()-t>this.expireTime?e={sessionId:zE(),timestamp:yb()}:e.timestamp=yb(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=yb():t={sessionId:zE(),timestamp:yb()},this.storage.setItem(this.sessionKey,t),this.sessionExp=bk((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=bk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:zE(),timestamp:yb()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&yb()-e.timestamp+30>=this.expireTime&&(e={sessionId:zE(),timestamp:yb()},this.storage.setItem(this.sessionKey,e))},e}(),BE=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new vE,this.Types=LE,this.adapters.fetch=jE,this.adapters.storage=EE}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&yE(e)?e.app_id&&"number"==typeof(r=e.app_id)&&!isNaN(r)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==pb(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new AE(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new DE,this.tokenManager=new NE,this.sessionManager=new VE,k_.all([new k_((function(e){n.once(LE.TokenComplete,(function(){e(!0)}))})),new k_((function(e){n.once(LE.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(LE.Ready),console.info("appid: "+e.app_id+", userInfo:"+GP(n.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),n.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(LE.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&yE(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=lE({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&pb(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof sb){var i=0;for(n=sb(e);i<n.length;i++)pb(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(LE.ConfigUuid,t.user_unique_id),this.configManager.set(r)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(LE.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];sE(e)?ub(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(LE.Event,n),this.emit(LE.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(sE(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(LE.BeconEvent,r),this.emit(LE.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=Aw(e).call(e,6));var n=t;"object"!=bu(n)&&(n={}),n.event_index=mE();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:yb(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=lE({},t,e);this.event("predefine_pageview",r)},e}(),WE=new BE("default"),qE=v,HE=2147483647,KE=/[^\0-\u007E]/,GE=/[.\u3002\uFF0E\uFF61]/g,QE="Overflow: input needs wider integers to process",XE=RangeError,JE=qE(GE.exec),$E=Math.floor,YE=String.fromCharCode,ZE=qE("".charCodeAt),eO=qE([].join),tO=qE([].push),rO=qE("".replace),nO=qE("".split),iO=qE("".toLowerCase),oO=function(e){return e+22+75*(e<26)},aO=function(e,t,r){var n=0;for(e=r?$E(e/700):e>>1,e+=$E(e/t);e>455;)e=$E(e/35),n+=36;return $E(n+36*e/(e+38))},sO=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=ZE(e,r++);if(i>=55296&&i<=56319&&r<n){var o=ZE(e,r++);56320==(64512&o)?tO(t,((1023&i)<<10)+(1023&o)+65536):(tO(t,i),r--)}else tO(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&tO(t,YE(n));var l=t.length,c=l;for(l&&tO(t,"-");c<i;){var u=HE;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>$E((HE-a)/f))throw XE(QE);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>HE)throw XE(QE);if(n==o){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,v=36-d;tO(t,YE(oO(d+g%v))),h=$E(g/v),p+=36}tO(t,YE(oO(h))),s=aO(a,f,c==l),a=0,c++}}a++,o++}return eO(t,"")},lO=xr,cO=R,uO=wb,fO=i,hO=Jt,pO=v,dO=no,gO=oo,vO=Gh,yO=Ye,mO=EP,_O=Xm,wO=Xi,bO=fu.codeAt,SO=function(e){var t,r,n=[],i=nO(rO(iO(e),GE,"."),".");for(t=0;t<i.length;t++)r=i[t],tO(n,JE(KE,r)?"xn--"+sO(r):r);return eO(n,".")},PO=Gn,kO=Io,TO=ip,EO=VS,OO=Ko,xO=OO.set,RO=OO.getterFor("URL"),IO=EO.URLSearchParams,CO=EO.getState,AO=fO.URL,LO=fO.TypeError,jO=fO.parseInt,MO=Math.floor,DO=Math.pow,UO=pO("".charAt),FO=pO(/./.exec),NO=pO([].join),zO=pO(1..toString),VO=pO([].pop),BO=pO([].push),WO=pO("".replace),qO=pO([].shift),HO=pO("".split),KO=pO("".slice),GO=pO("".toLowerCase),QO=pO([].unshift),XO="Invalid scheme",JO="Invalid host",$O="Invalid port",YO=/[a-z]/i,ZO=/[\d+-.a-z]/i,ex=/\d/,tx=/^0x/i,rx=/^[0-7]+$/,nx=/^\d+$/,ix=/^[\da-f]+$/i,ox=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ax=/[\0\t\n\r #/:<>?@[\\\]^|]/,sx=/^[\u0000-\u0020]+/,lx=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,cx=/[\t\n\r]/g,ux=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)QO(t,e%256),e=MO(e/256);return NO(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=zO(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},fx={},hx=mO({},fx,{" ":1,'"':1,"<":1,">":1,"`":1}),px=mO({},hx,{"#":1,"?":1,"{":1,"}":1}),dx=mO({},px,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gx=function(e,t){var r=bO(e,0);return r>32&&r<127&&!yO(t,e)?e:encodeURIComponent(e)},vx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yx=function(e,t){var r;return 2==e.length&&FO(YO,UO(e,0))&&(":"==(r=UO(e,1))||!t&&"|"==r)},mx=function(e){var t;return e.length>1&&yx(KO(e,0,2))&&(2==e.length||"/"===(t=UO(e,2))||"\\"===t||"?"===t||"#"===t)},_x=function(e){return"."===e||"%2e"===GO(e)},wx={},bx={},Sx={},Px={},kx={},Tx={},Ex={},Ox={},xx={},Rx={},Ix={},Cx={},Ax={},Lx={},jx={},Mx={},Dx={},Ux={},Fx={},Nx={},zx={},Vx=function(e,t,r){var n,i,o,a=PO(e);if(t){if(i=this.parse(a))throw LO(i);this.searchParams=null}else{if(void 0!==r&&(n=new Vx(r,!0)),i=this.parse(a,null,n))throw LO(i);(o=CO(new IO)).bindURL(this),this.searchParams=o}};Vx.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||wx,u=0,f="",h=!1,p=!1,d=!1;for(e=PO(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=WO(e,sx,""),e=WO(e,lx,"$1")),e=WO(e,cx,""),n=_O(e);u<=n.length;){switch(i=n[u],c){case wx:if(!i||!FO(YO,i)){if(t)return XO;c=Sx;continue}f+=GO(i),c=bx;break;case bx:if(i&&(FO(ZO,i)||"+"==i||"-"==i||"."==i))f+=GO(i);else{if(":"!=i){if(t)return XO;f="",c=Sx,u=0;continue}if(t&&(l.isSpecial()!=yO(vx,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&vx[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=Lx:l.isSpecial()&&r&&r.scheme==l.scheme?c=Px:l.isSpecial()?c=Ox:"/"==n[u+1]?(c=kx,u++):(l.cannotBeABaseURL=!0,BO(l.path,""),c=Fx)}break;case Sx:if(!r||r.cannotBeABaseURL&&"#"!=i)return XO;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=wO(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=zx;break}c="file"==r.scheme?Lx:Tx;continue;case Px:if("/"!=i||"/"!=n[u+1]){c=Tx;continue}c=xx,u++;break;case kx:if("/"==i){c=Rx;break}c=Ux;continue;case Tx:if(l.scheme=r.scheme,i==ME)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=Ex;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query="",c=Nx;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.path.length--,c=Ux;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query=r.query,l.fragment="",c=zx}break;case Ex:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=Ux;continue}c=Rx}else c=xx;break;case Ox:if(c=xx,"/"!=i||"/"!=UO(f,u+1))continue;u++;break;case xx:if("/"!=i&&"\\"!=i){c=Rx;continue}break;case Rx:if("@"==i){h&&(f="%40"+f),h=!0,o=_O(f);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||d){var y=gx(v,dx);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(h&&""==f)return"Invalid authority";u-=_O(f).length+1,f="",c=Ix}else f+=i;break;case Ix:case Cx:if(t&&"file"==l.scheme){c=Mx;continue}if(":"!=i||p){if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return JO;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=Dx,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return JO;if(a=l.parseHost(f))return a;if(f="",c=Ax,t==Cx)return}break;case Ax:if(!FO(ex,i)){if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=jO(f,10);if(m>65535)return $O;l.port=l.isSpecial()&&m===vx[l.scheme]?null:m,f=""}if(t)return;c=Dx;continue}return $O}f+=i;break;case Lx:if(l.scheme="file","/"==i||"\\"==i)c=jx;else{if(!r||"file"!=r.scheme){c=Ux;continue}if(i==ME)l.host=r.host,l.path=wO(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=wO(r.path),l.query="",c=Nx;else{if("#"!=i){mx(NO(wO(n,u),""))||(l.host=r.host,l.path=wO(r.path),l.shortenPath()),c=Ux;continue}l.host=r.host,l.path=wO(r.path),l.query=r.query,l.fragment="",c=zx}}break;case jx:if("/"==i||"\\"==i){c=Mx;break}r&&"file"==r.scheme&&!mx(NO(wO(n,u),""))&&(yx(r.path[0],!0)?BO(l.path,r.path[0]):l.host=r.host),c=Ux;continue;case Mx:if(i==ME||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&yx(f))c=Ux;else if(""==f){if(l.host="",t)return;c=Dx}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=Dx}continue}f+=i;break;case Dx:if(l.isSpecial()){if(c=Ux,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=ME&&(c=Ux,"/"!=i))continue}else l.fragment="",c=zx;else l.query="",c=Nx;break;case Ux:if(i==ME||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=GO(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||BO(l.path,"")):_x(f)?"/"==i||"\\"==i&&l.isSpecial()||BO(l.path,""):("file"==l.scheme&&!l.path.length&&yx(f)&&(l.host&&(l.host=""),f=UO(f,0)+":"),BO(l.path,f)),f="","file"==l.scheme&&(i==ME||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)qO(l.path);"?"==i?(l.query="",c=Nx):"#"==i&&(l.fragment="",c=zx)}else f+=gx(i,px);break;case Fx:"?"==i?(l.query="",c=Nx):"#"==i?(l.fragment="",c=zx):i!=ME&&(l.path[0]+=gx(i,fx));break;case Nx:t||"#"!=i?i!=ME&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":gx(i,fx)):(l.fragment="",c=zx);break;case zx:i!=ME&&(l.fragment+=gx(i,hx))}u++}},parseHost:function(e){var t,r,n;if("["==UO(e,0)){if("]"!=UO(e,e.length-1))return JO;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,h=function(){return UO(e,f)};if(":"==h()){if(":"!=UO(e,1))return;f+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&FO(ix,h());)t=16*t+jO(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!FO(ex,h()))return;for(;FO(ex,h());){if(o=jO(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}(KO(e,1,-1)),!t)return JO;this.host=t}else if(this.isSpecial()){if(e=SO(e),FO(ox,e))return JO;if(t=function(e){var t,r,n,i,o,a,s,l=HO(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(o=10,i.length>1&&"0"==UO(i,0)&&(o=FO(tx,i)?16:8,i=KO(i,8==o?1:2)),""===i)a=0;else{if(!FO(10==o?nx:8==o?rx:ix,i))return e;a=jO(i,o)}BO(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=DO(256,5-t))return null}else if(a>255)return null;for(s=VO(r),n=0;n<r.length;n++)s+=r[n]*DO(256,3-n);return s}(e),null===t)return JO;this.host=t}else{if(FO(ax,e))return JO;for(t="",r=_O(e),n=0;n<r.length;n++)t+=gx(r[n],fx);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return yO(vx,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&yx(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ux(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+NO(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw LO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Bx(e.path[0]).origin}catch(XR){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ux(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(PO(e)+":",wx)},getUsername:function(){return this.username},setUsername:function(e){var t=_O(PO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=gx(t[r],dx)}},getPassword:function(){return this.password},setPassword:function(e){var t=_O(PO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=gx(t[r],dx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ux(e):ux(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ix)},getHostname:function(){var e=this.host;return null===e?"":ux(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Cx)},getPort:function(){var e=this.port;return null===e?"":PO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=PO(e))?this.port=null:this.parse(e,Ax))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+NO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Dx))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=PO(e))?this.query=null:("?"==UO(e,0)&&(e=KO(e,1)),this.query="",this.parse(e,Nx)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=PO(e))?("#"==UO(e,0)&&(e=KO(e,1)),this.fragment="",this.parse(e,zx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Bx=function(e){var t=vO(this,Wx),r=TO(arguments.length,1)>1?arguments[1]:void 0,n=xO(t,new Vx(e,!1,r));cO||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Wx=Bx.prototype,qx=function(e,t){return{get:function(){return RO(this)[e]()},set:t&&function(e){return RO(this)[t](e)},configurable:!0,enumerable:!0}};if(cO&&(gO(Wx,"href",qx("serialize","setHref")),gO(Wx,"origin",qx("getOrigin")),gO(Wx,"protocol",qx("getProtocol","setProtocol")),gO(Wx,"username",qx("getUsername","setUsername")),gO(Wx,"password",qx("getPassword","setPassword")),gO(Wx,"host",qx("getHost","setHost")),gO(Wx,"hostname",qx("getHostname","setHostname")),gO(Wx,"port",qx("getPort","setPort")),gO(Wx,"pathname",qx("getPathname","setPathname")),gO(Wx,"search",qx("getSearch","setSearch")),gO(Wx,"searchParams",qx("getSearchParams")),gO(Wx,"hash",qx("getHash","setHash"))),dO(Wx,"toJSON",(function(){return RO(this).serialize()}),{enumerable:!0}),dO(Wx,"toString",(function(){return RO(this).serialize()}),{enumerable:!0}),AO){var Hx=AO.createObjectURL,Kx=AO.revokeObjectURL;Hx&&dO(Bx,"createObjectURL",hO(Hx,AO)),Kx&&dO(Bx,"revokeObjectURL",hO(Kx,AO))}kO(Bx,"URL"),lO({global:!0,constructor:!0,forced:!uO,sham:!cO},{URL:Bx});var Gx=xr,Qx=o,Xx=ip,Jx=Gn,$x=wb,Yx=ae("URL");Gx({target:"URL",stat:!0,forced:!($x&&Qx((function(){Yx.canParse()})))},{canParse:function(e){var t=Xx(arguments.length,1),r=Jx(e),n=t<2||void 0===arguments[1]?void 0:Jx(arguments[1]);try{return!!new Yx(r,n)}catch(XR){return!1}}});var Zx,eR=r(te.URL),tR=new Uint8Array(16);function rR(){var e;if(!Zx&&!(Zx="undefined"!=typeof crypto&&crypto.getRandomValues&&q_(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zx(tR)}for(var nR,iR=[],oR=0;oR<256;++oR){var aR;iR.push(Aw(aR=(oR+256).toString(16)).call(aR,1))}var sR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&q_(nR=crypto.randomUUID).call(nR,crypto)};function lR(e,t,r){if(sR.randomUUID&&!t&&!e)return sR.randomUUID();var n=(e=e||{}).random||(e.rng||rR)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return iR[e[t+0]]+iR[e[t+1]]+iR[e[t+2]]+iR[e[t+3]]+"-"+iR[e[t+4]]+iR[e[t+5]]+"-"+iR[e[t+6]]+iR[e[t+7]]+"-"+iR[e[t+8]]+iR[e[t+9]]+"-"+iR[e[t+10]]+iR[e[t+11]]+iR[e[t+12]]+iR[e[t+13]]+iR[e[t+14]]+iR[e[t+15]]}(n)}var cR="veplayer_live_device_id",uR="veplayer_live_user_id",fR=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},hR=function(e){if(!e)return"";fP(e).call(e,"//")&&(e=location.protocol+e);try{var t,r,n=new eR(e);return null!=n&&null!==(t=n.searchParams)&&void 0!==t&&t.get("_session_id")?e:(null==n||null===(r=n.searchParams)||void 0===r||r.append("_session_id",pR()),n.toString())}catch(XR){return e}},pR=function(){return lR().replace(/-/g,"")+"."+yb()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(lR().replace(/-/g,""))},dR=window.VePlayer.Plugin,gR=function(e){hm(r,e);var t=Im(r);function r(){var e,n;qy(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ny(Rm(n=t.call.apply(t,i_(e=[this]).call(e,o))),"_userId",void 0),Ny(Rm(n),"_deviceId",void 0),Ny(Rm(n),"_liveLogger",void 0),n}return Ky(r,[{key:"afterCreate",value:function(){var e,t,r,n;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||((r=localStorage.getItem(uR))||(r=fR(12),localStorage.setItem(uR,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(cR))||(n=fR(11),localStorage.setItem(cR,n),n)),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==WE?void 0:WE.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){WE.init({app_id:468759,channel:"cn",channel_domain:"//mcs.volceapplog.com"}),WE.start(),WE.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new Vk({Tea:WE,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.1.0-rc.0",flv_version:"3.0.10-alpha.4",hls_version:"3.0.10-alpha.4",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(dR);function vR(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var yR,mR=window.VePlayer.util,_R=window.VePlayer.Plugin,wR=window.VePlayer.XGUtil,bR=function(e){hm(r,e);var t=Im(r);function r(){var e,n;qy(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ny(Rm(n=t.call.apply(t,i_(e=[this]).call(e,o))),"_pollTimer",void 0),Ny(Rm(n),"_visible",void 0),Ny(Rm(n),"_playPlugin",void 0),n}return Ky(r,[{key:"_streamType",get:function(){return mR.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Yw.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Yw.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(WP(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Yw.LOADED_DATA,(function(){return e.open()})),this.player.off(Yw.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=Cw((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=Vy(Vy({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:vR(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:vR(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:vR(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:i_(r="".concat(vR(e.height)," * ")).call(r,vR(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:vR(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:vR(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:vR(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:vR(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",ub(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}ub(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=wR.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=wR.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=wR.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=wR.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=wR.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(_R),SR=Vy(Vy({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),PR=Vy(Vy({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),kR=window.VePlayer.DEFAULT_PLUGINS,TR=window.VePlayer.VePlayerBase,ER=window.VePlayer.VeI18n;ER.extend([{LANG:"zh-cn",TEXT:PR},{LANG:"en",TEXT:SR}]);var OR={autoplay:{muted:!0}},xR=i_(yR=[]).call(yR,Zm(kR),[ib,gR,bR]),RR=function(e){return e.H264="h264",e}(RR||{}),IR=function(e){hm(r,e);var t=Im(r);function r(e){return qy(this,r),t.call(this,e)}return Ky(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}(TR);function CR(e){return AR.apply(this,arguments)}function AR(){return(AR=Wy(Zv().mark((function e(t){var r,n,i,o,a,s,l;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw u_(l_.INVALID_PARAMETER,new ER);case 3:return o=new ER({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=Vy(Vy({},t),{},{plugins:i_(r=[]).call(r,Zm(xR),Zm(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,TR.create(Vy(Vy(Vy({},OR),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:hR(e)}},preparePlugins:function(e){return Wy(Zv().mark((function t(){return Zv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",W_(Vy(Vy({},a),{},{url:e}),i));case 1:case"end":return t.stop()}}),t)})))()}}),IR);case 7:return(i=e.sent)&&(l=null===(s=i)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&i.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var LR=Object.freeze({__proto__:null,ErrorCode:l_,Events:Yw}),jR=window.VePlayer.setModuleSystem,MR=window.VePlayer.Codec,DR=window.VePlayer.DecodeType,UR=window.VePlayer.Degradation,FR=window.VePlayer.POSITIONS,NR=window.VePlayer.register,zR=window.VePlayer.EN,VR=window.VePlayer.ZH_CN,BR=window.VePlayer.Plugin,WR=window.VePlayer.Sniffer,qR=window.VePlayer.DynamicModule,HR=window.VePlayer.util,KR=window.VePlayer.load;jR("umd");var GR=HR.isMseSupported,QR=HR.isSoftDecodeSupported;void 0!==VePlayer.register?VePlayer.register(qR.BizLive,{createLivePlayer:CR}):NR(qR.BizLive,{createLivePlayer:CR}),e.Codec=MR,e.DecodeType=DR,e.Degradation=UR,e.DynamicModule=qR,e.EN=zR,e.POSITIONS=FR,e.Plugin=BR,e.RTMCodec=RR,e.Sniffer=WR,e.ZH_CN=VR,e.createLivePlayer=CR,e.isMseSupported=GR,e.isRTMSupportCodec=R_,e.isRTMSupported=O_,e.isSoftDecodeSupported=QR,e.live=LR,e.load=KR,e.register=NR,e.util=HR}));
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_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("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,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),h=a,p=Function.prototype,d=p.call,g=h&&p.bind.bind(d,d),v=h?g:function(e){return function(){return d.apply(e,arguments)}},y=v,m=y({}.toString),_=y("".slice),w=function(e){return _(m(e),8,-1)},b=w,S=v,P=function(e){if("Function"===b(e))return S(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},E=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===E}:function(e){return"function"==typeof e},x={},R=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=a,C=Function.prototype.call,A=I?C.bind(C):function(){return C.apply(C,arguments)},L={},j={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,D=M&&!j.call({1:2},1);L.f=D?function(e){var t=M(this,e);return!!t&&t.enumerable}:j;var U,F,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,V=w,B=Object,W=v("".split),q=z((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?W(e,""):B(e)}:B,H=function(e){return null==e},K=H,G=TypeError,Q=function(e){if(K(e))throw G("Can't call method on "+e);return e},X=q,J=Q,$=function(e){return X(J(e))},Y=O,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Y(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Y(e)},te={},re=te,ne=i,ie=O,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=v({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,he=ce.Deno,pe=fe&&fe.versions||he&&he.version,de=pe&&pe.v8;de&&(F=(U=de.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!F&&ue&&(!(U=ue.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=ue.match(/Chrome\/(\d+)/))&&(F=+U[1]);var ge=F,ve=ge,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})),we=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ae,Se=O,Pe=se,ke=Object,Te=we?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return Se(t)&&Pe(t.prototype,ke(e))},Ee=String,Oe=function(e){try{return Ee(e)}catch(t){return"Object"}},xe=O,Re=Oe,Ie=TypeError,Ce=function(e){if(xe(e))return e;throw Ie(Re(e)+" is not a function")},Ae=Ce,Le=H,je=function(e,t){var r=e[t];return Le(r)?void 0:Ae(r)},Me=A,De=O,Ue=ee,Fe=TypeError,Ne={exports:{}},ze=i,Ve=Object.defineProperty,Be=function(e,t){try{Ve(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",qe=i[We]||Be(We,{}),He=qe;(Ne.exports=function(e,t){return He[e]||(He[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 Ke=Ne.exports,Ge=Q,Qe=Object,Xe=function(e){return Qe(Ge(e))},Je=Xe,$e=v({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return $e(Je(e),t)},Ze=v,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=Ke,ot=Ye,at=nt,st=_e,lt=we,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,ht=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},pt=A,dt=ee,gt=Te,vt=je,yt=function(e,t){var r,n;if("string"===t&&De(r=e.toString)&&!Ue(n=Me(r,e)))return n;if(De(r=e.valueOf)&&!Ue(n=Me(r,e)))return n;if("string"!==t&&De(r=e.toString)&&!Ue(n=Me(r,e)))return n;throw Fe("Can't convert object to primitive value")},mt=TypeError,_t=ht("toPrimitive"),wt=function(e,t){if(!dt(e)||gt(e))return e;var r,n=vt(e,_t);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!dt(r)||gt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},bt=Te,St=function(e){var t=wt(e,"string");return bt(t)?t:t+""},Pt=ee,kt=i.document,Tt=Pt(kt)&&Pt(kt.createElement),Et=function(e){return Tt?kt.createElement(e):{}},Ot=Et,xt=!R&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Rt=R,It=A,Ct=L,At=N,Lt=$,jt=St,Mt=Ye,Dt=xt,Ut=Object.getOwnPropertyDescriptor;x.f=Rt?Ut:function(e,t){if(e=Lt(e),t=jt(t),Dt)try{return Ut(e,t)}catch(r){}if(Mt(e,t))return At(!It(Ct.f,e,t),e[t])};var Ft=o,Nt=O,zt=/#|\.prototype\./,Vt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=qt&&(Nt(t)?Ft(t):!!t)},Bt=Vt.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Vt.data={},qt=Vt.NATIVE="N",Ht=Vt.POLYFILL="P",Kt=Vt,Gt=Ce,Qt=a,Xt=P(P.bind),Jt=function(e,t){return Gt(e),void 0===t?e:Qt?Xt(e,t):function(){return e.apply(t,arguments)}},$t={},Yt=R&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=R,ir=xt,or=Yt,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",pr="writable";$t.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=ur(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=$t,gr=N,vr=R?function(e,t,r){return dr.f(e,t,gr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=P,wr=O,br=x.f,Sr=Kt,Pr=te,kr=Jt,Tr=vr,Er=Ye,Or=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},xr=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,h=e.global,p=e.stat,d=e.proto,g=h?yr:p?yr[f]:(yr[f]||{}).prototype,v=h?Pr:Pr[f]||Tr(Pr,f,{})[f],y=v.prototype;for(o in t)n=!(r=Sr(h?o:f+(p?".":"#")+o,e.forced))&&g&&Er(g,o),s=v[o],n&&(l=e.dontCallGetSet?(u=br(g,o))&&u.value:g[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Or(a):d&&wr(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tr(c,"sham",!0),Tr(v,o,c),d&&(Er(Pr,i=f+"Prototype")||Tr(Pr,i,{}),Tr(Pr[i],o,a),e.real&&y&&(r||!y[o])&&Tr(y,o,a)))},Rr=w,Ir=Array.isArray||function(e){return"Array"==Rr(e)},Cr=Math.ceil,Ar=Math.floor,Lr=Math.trunc||function(e){var t=+e;return(t>0?Ar:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Lr(t)},Mr=jr,Dr=Math.min,Ur=function(e){return e>0?Dr(Mr(e),9007199254740991):0},Fr=Ur,Nr=function(e){return Fr(e.length)},zr=TypeError,Vr=function(e){if(e>9007199254740991)throw zr("Maximum allowed index exceeded");return e},Br=St,Wr=$t,qr=N,Hr=function(e,t,r){var n=Br(t);n in e?Wr.f(e,n,qr(0,r)):e[n]=r},Kr={};Kr[ht("toStringTag")]="z";var Gr="[object z]"===String(Kr),Qr=Gr,Xr=O,Jr=w,$r=ht("toStringTag"),Yr=Object,Zr="Arguments"==Jr(function(){return arguments}()),en=Qr?Jr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Yr(e),$r))?r:Zr?Jr(t):"Object"==(n=Jr(t))&&Xr(t.callee)?"Arguments":n},tn=O,rn=qe,nn=v(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=v,sn=o,ln=O,cn=en,un=on,fn=function(){},hn=[],pn=ae("Reflect","construct"),dn=/^\s*(?:class|function)\b/,gn=an(dn.exec),vn=!dn.exec(fn),yn=function(e){if(!ln(e))return!1;try{return pn(fn,hn,e),!0}catch(t){return!1}},mn=function(e){if(!ln(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!gn(dn,un(e))}catch(t){return!0}};mn.sham=!0;var _n=!pn||sn((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,wn=Ir,bn=_n,Sn=ee,Pn=ht("species"),kn=Array,Tn=function(e){var t;return wn(e)&&(t=e.constructor,(bn(t)&&(t===kn||wn(t.prototype))||Sn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?kn:t},En=function(e,t){return new(Tn(e))(0===t?0:t)},On=o,xn=ge,Rn=ht("species"),In=function(e){return xn>=51||!On((function(){var t=[];return(t.constructor={})[Rn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=xr,An=o,Ln=Ir,jn=ee,Mn=Xe,Dn=Nr,Un=Vr,Fn=Hr,Nn=En,zn=In,Vn=ge,Bn=ht("isConcatSpreadable"),Wn=Vn>=51||!An((function(){var e=[];return e[Bn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Bn];return void 0!==t?!!t:Ln(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Wn||!zn("concat")},{concat:function(e){var t,r,n,i,o,a=Mn(this),s=Nn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(o=-1===t?a:arguments[t]))for(i=Dn(o),Un(l+i),r=0;r<i;r++,l++)r in o&&Fn(s,l,o[r]);else Un(l+1),Fn(s,l++,o);return s.length=l,s}});var Hn=en,Kn=String,Gn=function(e){if("Symbol"===Hn(e))throw TypeError("Cannot convert a Symbol value to a string");return Kn(e)},Qn={},Xn=jr,Jn=Math.max,$n=Math.min,Yn=function(e,t){var r=Xn(e);return r<0?Jn(r+t,0):$n(r,t)},Zn=$,ei=Yn,ti=Nr,ri=function(e){return function(t,r,n){var i,o=Zn(t),a=ti(o),s=ei(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=Ye,ai=$,si=ni.indexOf,li=ii,ci=v([].push),ui=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(li,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~si(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=ui,pi=fi,di=Object.keys||function(e){return hi(e,pi)},gi=R,vi=Yt,yi=$t,mi=rr,_i=$,wi=di;Qn.f=gi&&!vi?Object.defineProperties:function(e,t){mi(e);for(var r,n=_i(t),i=wi(t),o=i.length,a=0;o>a;)yi.f(e,r=i[a++],n[r]);return e};var bi,Si=ae("document","documentElement"),Pi=nt,ki=Ke("keys"),Ti=function(e){return ki[e]||(ki[e]=Pi(e))},Ei=rr,Oi=Qn,xi=fi,Ri=ii,Ii=Si,Ci=Et,Ai="prototype",Li="script",ji=Ti("IE_PROTO"),Mi=function(){},Di=function(e){return"<"+Li+">"+e+"</"+Li+">"},Ui=function(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fi=function(){try{bi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Fi="undefined"!=typeof document?document.domain&&bi?Ui(bi):(t=Ci("iframe"),r="java"+Li+":",t.style.display="none",Ii.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F):Ui(bi);for(var n=xi.length;n--;)delete Fi[Ai][xi[n]];return Fi()};Ri[ji]=!0;var Ni=Object.create||function(e,t){var r;return null!==e?(Mi[Ai]=Ei(e),r=new Mi,Mi[Ai]=null,r[ji]=e):r=Fi(),void 0===t?r:Oi.f(r,t)},zi={},Vi=ui,Bi=fi.concat("length","prototype");zi.f=Object.getOwnPropertyNames||function(e){return Vi(e,Bi)};var Wi={},qi=Yn,Hi=Nr,Ki=Hr,Gi=Array,Qi=Math.max,Xi=function(e,t,r){for(var n=Hi(e),i=qi(t,n),o=qi(void 0===r?n:r,n),a=Gi(Qi(o-i,0)),s=0;i<o;i++,s++)Ki(a,s,e[i]);return a.length=s,a},Ji=w,$i=$,Yi=zi.f,Zi=Xi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Wi.f=function(e){return eo&&"Window"==Ji(e)?function(e){try{return Yi(e)}catch(t){return Zi(eo)}}(e):Yi($i(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=vr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=$t,oo=function(e,t,r){return io.f(e,t,r)},ao={},so=ht;ao.f=so;var lo,co,uo,fo=te,ho=Ye,po=ao,go=$t.f,vo=function(e){var t=fo.Symbol||(fo.Symbol={});ho(t,e)||go(t,e,{value:po.f(e)})},yo=A,mo=ae,_o=ht,wo=no,bo=function(){var e=mo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_o("toPrimitive");t&&!t[n]&&wo(t,n,(function(e){return yo(r,this)}),{arity:1})},So=en,Po=Gr?{}.toString:function(){return"[object "+So(this)+"]"},ko=Gr,To=$t.f,Eo=vr,Oo=Ye,xo=Po,Ro=ht("toStringTag"),Io=function(e,t,r,n){if(e){var i=r?e:e.prototype;Oo(i,Ro)||To(i,Ro,{configurable:!0,value:t}),n&&!ko&&Eo(i,"toString",xo)}},Co=O,Ao=i.WeakMap,Lo=Co(Ao)&&/native code/.test(String(Ao)),jo=i,Mo=ee,Do=vr,Uo=Ye,Fo=qe,No=Ti,zo=ii,Vo="Object already initialized",Bo=jo.TypeError,Wo=jo.WeakMap;if(Lo||Fo.state){var qo=Fo.state||(Fo.state=new Wo);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,lo=function(e,t){if(qo.has(e))throw Bo(Vo);return t.facade=e,qo.set(e,t),t},co=function(e){return qo.get(e)||{}},uo=function(e){return qo.has(e)}}else{var Ho=No("state");zo[Ho]=!0,lo=function(e,t){if(Uo(e,Ho))throw Bo(Vo);return t.facade=e,Do(e,Ho,t),t},co=function(e){return Uo(e,Ho)?e[Ho]:{}},uo=function(e){return Uo(e,Ho)}}var Ko={set:lo,get:co,has:uo,enforce:function(e){return uo(e)?co(e):lo(e,{})},getterFor:function(e){return function(t){var r;if(!Mo(t)||(r=co(t)).type!==e)throw Bo("Incompatible receiver, "+e+" required");return r}}},Go=Jt,Qo=q,Xo=Xe,Jo=Nr,$o=En,Yo=v([].push),Zo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var h,p,d=Xo(l),g=Qo(d),v=Go(c,u),y=Jo(g),m=0,_=f||$o,w=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in g)&&(p=v(h=g[m],m,d),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:Yo(w,h)}else switch(e){case 4:return!1;case 7:Yo(w,h)}return o?-1:n||i?i:w}},ea={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ta=xr,ra=i,na=A,ia=v,oa=R,aa=_e,sa=o,la=Ye,ca=se,ua=rr,fa=$,ha=St,pa=Gn,da=N,ga=Ni,va=di,ya=zi,ma=Wi,_a=to,wa=x,ba=$t,Sa=Qn,Pa=L,ka=no,Ta=oo,Ea=Ke,Oa=ii,xa=nt,Ra=ht,Ia=ao,Ca=vo,Aa=bo,La=Io,ja=Ko,Ma=ea.forEach,Da=Ti("hidden"),Ua="Symbol",Fa="prototype",Na=ja.set,za=ja.getterFor(Ua),Va=Object[Fa],Ba=ra.Symbol,Wa=Ba&&Ba[Fa],qa=ra.TypeError,Ha=ra.QObject,Ka=wa.f,Ga=ba.f,Qa=ma.f,Xa=Pa.f,Ja=ia([].push),$a=Ea("symbols"),Ya=Ea("op-symbols"),Za=Ea("wks"),es=!Ha||!Ha[Fa]||!Ha[Fa].findChild,ts=oa&&sa((function(){return 7!=ga(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ka(Va,t);n&&delete Va[t],Ga(e,t,r),n&&e!==Va&&Ga(Va,t,n)}:Ga,rs=function(e,t){var r=$a[e]=ga(Wa);return Na(r,{type:Ua,tag:e,description:t}),oa||(r.description=t),r},ns=function(e,t,r){e===Va&&ns(Ya,t,r),ua(e);var n=ha(t);return ua(r),la($a,n)?(r.enumerable?(la(e,Da)&&e[Da][n]&&(e[Da][n]=!1),r=ga(r,{enumerable:da(0,!1)})):(la(e,Da)||Ga(e,Da,da(1,{})),e[Da][n]=!0),ts(e,n,r)):Ga(e,n,r)},is=function(e,t){ua(e);var r=fa(t),n=va(r).concat(ls(r));return Ma(n,(function(t){oa&&!na(os,r,t)||ns(e,t,r[t])})),e},os=function(e){var t=ha(e),r=na(Xa,this,t);return!(this===Va&&la($a,t)&&!la(Ya,t))&&(!(r||!la(this,t)||!la($a,t)||la(this,Da)&&this[Da][t])||r)},as=function(e,t){var r=fa(e),n=ha(t);if(r!==Va||!la($a,n)||la(Ya,n)){var i=Ka(r,n);return!i||!la($a,n)||la(r,Da)&&r[Da][n]||(i.enumerable=!0),i}},ss=function(e){var t=Qa(fa(e)),r=[];return Ma(t,(function(e){la($a,e)||la(Oa,e)||Ja(r,e)})),r},ls=function(e){var t=e===Va,r=Qa(t?Ya:fa(e)),n=[];return Ma(r,(function(e){!la($a,e)||t&&!la(Va,e)||Ja(n,$a[e])})),n};aa||(Ba=function(){if(ca(Wa,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=xa(e),r=function(e){this===Va&&na(r,Ya,e),la(this,Da)&&la(this[Da],t)&&(this[Da][t]=!1),ts(this,t,da(1,e))};return oa&&es&&ts(Va,t,{configurable:!0,set:r}),rs(t,e)},ka(Wa=Ba[Fa],"toString",(function(){return za(this).tag})),ka(Ba,"withoutSetter",(function(e){return rs(xa(e),e)})),Pa.f=os,ba.f=ns,Sa.f=is,wa.f=as,ya.f=ma.f=ss,_a.f=ls,Ia.f=function(e){return rs(Ra(e),e)},oa&&Ta(Wa,"description",{configurable:!0,get:function(){return za(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),Ma(va(Za),(function(e){Ca(e)})),ta({target:Ua,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?ga(e):is(ga(e),t)},defineProperty:ns,defineProperties:is,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Aa(),La(Ba,Ua),Oa[Da]=!0;var cs=_e&&!!Symbol.for&&!!Symbol.keyFor,us=xr,fs=ae,hs=Ye,ps=Gn,ds=Ke,gs=cs,vs=ds("string-to-symbol-registry"),ys=ds("symbol-to-string-registry");us({target:"Symbol",stat:!0,forced:!gs},{for:function(e){var t=ps(e);if(hs(vs,t))return vs[t];var r=fs("Symbol")(t);return vs[t]=r,ys[r]=t,r}});var ms=xr,_s=Ye,ws=Te,bs=Oe,Ss=cs,Ps=Ke("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(e){if(!ws(e))throw TypeError(bs(e)+" is not a symbol");if(_s(Ps,e))return Ps[e]}});var ks=v([].slice),Ts=Ir,Es=O,Os=w,xs=Gn,Rs=v([].push),Is=xr,Cs=ae,As=f,Ls=A,js=v,Ms=o,Ds=O,Us=Te,Fs=ks,Ns=function(e){if(Es(e))return e;if(Ts(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Rs(r,i):"number"!=typeof i&&"Number"!=Os(i)&&"String"!=Os(i)||Rs(r,xs(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ts(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},zs=_e,Vs=String,Bs=Cs("JSON","stringify"),Ws=js(/./.exec),qs=js("".charAt),Hs=js("".charCodeAt),Ks=js("".replace),Gs=js(1..toString),Qs=/[\uD800-\uDFFF]/g,Xs=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,$s=!zs||Ms((function(){var e=Cs("Symbol")();return"[null]"!=Bs([e])||"{}"!=Bs({a:e})||"{}"!=Bs(Object(e))})),Ys=Ms((function(){return'"\\udf06\\ud834"'!==Bs("\udf06\ud834")||'"\\udead"'!==Bs("\udead")})),Zs=function(e,t){var r=Fs(arguments),n=Ns(t);if(Ds(n)||void 0!==e&&!Us(e))return r[1]=function(e,t){if(Ds(n)&&(t=Ls(n,this,Vs(e),t)),!Us(t))return t},As(Bs,null,r)},el=function(e,t,r){var n=qs(r,t-1),i=qs(r,t+1);return Ws(Xs,e)&&!Ws(Js,i)||Ws(Js,e)&&!Ws(Xs,n)?"\\u"+Gs(Hs(e,0),16):e};Bs&&Is({target:"JSON",stat:!0,arity:3,forced:$s||Ys},{stringify:function(e,t,r){var n=Fs(arguments),i=As($s?Zs:Bs,null,n);return Ys&&"string"==typeof i?Ks(i,Qs,el):i}});var tl=to,rl=Xe;xr({target:"Object",stat:!0,forced:!_e||o((function(){tl.f(1)}))},{getOwnPropertySymbols:function(e){var t=tl.f;return t?t(rl(e)):[]}}),vo("asyncIterator"),vo("hasInstance"),vo("isConcatSpreadable"),vo("iterator"),vo("match"),vo("matchAll"),vo("replace"),vo("search"),vo("species"),vo("split");var nl=bo;vo("toPrimitive"),nl();var il=ae,ol=Io;vo("toStringTag"),ol(il("Symbol"),"Symbol"),vo("unscopables"),Io(i.JSON,"JSON",!0);var al,sl,ll,cl=te.Symbol,ul={},fl=R,hl=Ye,pl=Function.prototype,dl=fl&&Object.getOwnPropertyDescriptor,gl=hl(pl,"name"),vl={EXISTS:gl,PROPER:gl&&"something"===function(){}.name,CONFIGURABLE:gl&&(!fl||fl&&dl(pl,"name").configurable)},yl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ml=Ye,_l=O,wl=Xe,bl=yl,Sl=Ti("IE_PROTO"),Pl=Object,kl=Pl.prototype,Tl=bl?Pl.getPrototypeOf:function(e){var t=wl(e);if(ml(t,Sl))return t[Sl];var r=t.constructor;return _l(r)&&t instanceof r?r.prototype:t instanceof Pl?kl:null},El=o,Ol=O,xl=ee,Rl=Ni,Il=Tl,Cl=no,Al=ht("iterator"),Ll=!1;[].keys&&("next"in(ll=[].keys())?(sl=Il(Il(ll)))!==Object.prototype&&(al=sl):Ll=!0);var jl=!xl(al)||El((function(){var e={};return al[Al].call(e)!==e}));Ol((al=jl?{}:Rl(al))[Al])||Cl(al,Al,(function(){return this}));var Ml={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:Ll},Dl=Ml.IteratorPrototype,Ul=Ni,Fl=N,Nl=Io,zl=ul,Vl=function(){return this},Bl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ul(Dl,{next:Fl(+!n,r)}),Nl(e,i,!1,!0),zl[i]=Vl,e},Wl=v,ql=Ce,Hl=O,Kl=String,Gl=TypeError,Ql=function(e,t,r){try{return Wl(ql(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Xl=rr,Jl=function(e){if("object"==typeof e||Hl(e))return e;throw Gl("Can't set "+Kl(e)+" as a prototype")},$l=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ql(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Xl(r),Jl(n),t?e(r,n):r.__proto__=n,r}}():void 0),Yl=xr,Zl=A,ec=vl,tc=Bl,rc=Tl,nc=Io,ic=no,oc=ul,ac=Ml,sc=ec.PROPER,lc=ac.BUGGY_SAFARI_ITERATORS,cc=ht("iterator"),uc="keys",fc="values",hc="entries",pc=function(){return this},dc=function(e,t,r,n,i,o,a){tc(r,t,n);var s,l,c,u=function(e){if(e===i&&g)return g;if(!lc&&e in p)return p[e];switch(e){case uc:case fc:case hc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[cc]||p["@@iterator"]||i&&p[i],g=!lc&&d||u(i),v="Array"==t&&p.entries||d;if(v&&(s=rc(v.call(new e)))!==Object.prototype&&s.next&&(nc(s,f,!0,!0),oc[f]=pc),sc&&i==fc&&d&&d.name!==fc&&(h=!0,g=function(){return Zl(d,this)}),i)if(l={values:u(fc),keys:o?g:u(uc),entries:u(hc)},a)for(c in l)(lc||h||!(c in p))&&ic(p,c,l[c]);else Yl({target:t,proto:!0,forced:lc||h},l);return a&&p[cc]!==g&&ic(p,cc,g,{name:i}),oc[t]=g,l},gc=function(e,t){return{value:e,done:t}},vc=$,yc=ul,mc=Ko;$t.f;var _c=dc,wc=gc,bc="Array Iterator",Sc=mc.set,Pc=mc.getterFor(bc);_c(Array,"Array",(function(e,t){Sc(this,{type:bc,target:vc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,wc(void 0,!0)):wc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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},Tc=i,Ec=en,Oc=vr,xc=ul,Rc=ht("toStringTag");for(var Ic in kc){var Cc=Tc[Ic],Ac=Cc&&Cc.prototype;Ac&&Ec(Ac)!==Rc&&Oc(Ac,Rc,Ic),xc[Ic]=xc.Array}var Lc=cl;vo("dispose");var jc=Lc;vo("asyncDispose");var Mc=xr,Dc=v,Uc=ae("Symbol"),Fc=Uc.keyFor,Nc=Dc(Uc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Fc(Nc(e))}catch(t){return!1}}});for(var zc=xr,Vc=Ke,Bc=ae,Wc=v,qc=Te,Hc=ht,Kc=Bc("Symbol"),Gc=Kc.isWellKnown,Qc=Bc("Object","getOwnPropertyNames"),Xc=Wc(Kc.prototype.valueOf),Jc=Vc("wks"),$c=0,Yc=Qc(Kc),Zc=Yc.length;$c<Zc;$c++)try{var eu=Yc[$c];qc(Kc[eu])&&Hc(eu)}catch(XR){}zc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Gc&&Gc(e))return!0;try{for(var t=Xc(e),r=0,n=Qc(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(XR){}return!1}}),vo("matcher"),vo("metadataKey"),vo("observable"),vo("metadata"),vo("patternMatch"),vo("replaceAll");var tu=jc,ru=r(tu),nu=v,iu=jr,ou=Gn,au=Q,su=nu("".charAt),lu=nu("".charCodeAt),cu=nu("".slice),uu=function(e){return function(t,r){var n,i,o=ou(au(t)),a=iu(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=lu(o,a))<55296||n>56319||a+1===s||(i=lu(o,a+1))<56320||i>57343?e?su(o,a):n:e?cu(o,a,a+2):i-56320+(n-55296<<10)+65536}},fu={codeAt:uu(!1),charAt:uu(!0)},hu=fu.charAt,pu=Gn,du=Ko,gu=dc,vu=gc,yu="String Iterator",mu=du.set,_u=du.getterFor(yu);gu(String,"String",(function(e){mu(this,{type:yu,string:pu(e),index:0})}),(function(){var e,t=_u(this),r=t.string,n=t.index;return n>=r.length?vu(void 0,!0):(e=hu(r,n),t.index+=e.length,vu(e,!1))}));var wu=r(ao.f("iterator"));function bu(e){return(bu="function"==typeof ru&&"symbol"==typeof wu?function(e){return typeof e}:function(e){return e&&"function"==typeof ru&&e.constructor===ru&&e!==ru.prototype?"symbol":typeof e})(e)}var Su={exports:{}},Pu=xr,ku=R,Tu=$t.f;Pu({target:"Object",stat:!0,forced:Object.defineProperty!==Tu,sham:!ku},{defineProperty:Tu});var Eu=te.Object,Ou=Su.exports=function(e,t,r){return Eu.defineProperty(e,t,r)};Eu.defineProperty.sham&&(Ou.sham=!0);var xu=Su.exports,Ru=r(xu);xr({target:"Object",stat:!0,sham:!R},{create:Ni});var Iu=te.Object,Cu=function(e,t){return Iu.create(e,t)},Au=r(Cu),Lu=Xe,ju=Tl,Mu=yl;xr({target:"Object",stat:!0,forced:o((function(){ju(1)})),sham:!Mu},{getPrototypeOf:function(e){return ju(Lu(e))}});var Du=r(te.Object.getPrototypeOf),Uu=o,Fu=function(e,t){var r=[][e];return!!r&&Uu((function(){r.call(null,t||function(){return 1},1)}))},Nu=ea.forEach,zu=Fu("forEach")?[].forEach:function(e){return Nu(this,e,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!=zu},{forEach:zu});var Vu=te,Bu=function(e){return Vu[e+"Prototype"]},Wu=Bu("Array").forEach,qu=en,Hu=Ye,Ku=se,Gu=Wu,Qu=Array.prototype,Xu={DOMTokenList:!0,NodeList:!0},Ju=function(e){var t=e.forEach;return e===Qu||Ku(Qu,e)&&t===Qu.forEach||Hu(Xu,qu(e))?Gu:t},$u=r(Ju),Yu=R,Zu=Ir,ef=TypeError,tf=Object.getOwnPropertyDescriptor,rf=Yu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(XR){return XR instanceof TypeError}}()?function(e,t){if(Zu(e)&&!tf(e,"length").writable)throw ef("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},nf=Xe,of=Nr,af=rf,sf=Vr;xr({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(XR){return XR instanceof TypeError}}()},{push:function(e){var t=nf(this),r=of(t),n=arguments.length;sf(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return af(t,r),r}});var lf=Bu("Array").push,cf=se,uf=lf,ff=Array.prototype,hf=r((function(e){var t=e.push;return e===ff||cf(ff,e)&&t===ff.push?uf:t}));xr({target:"Object",stat:!0},{setPrototypeOf:$l});var pf=r(te.Object.setPrototypeOf),df=ae,gf=zi,vf=to,yf=rr,mf=v([].concat),_f=df("Reflect","ownKeys")||function(e){var t=gf.f(yf(e)),r=vf.f;return r?mf(t,r(e)):t},wf=Ye,bf=_f,Sf=x,Pf=$t,kf=ee,Tf=vr,Ef=Error,Of=v("".replace),xf=String(Ef("zxcasd").stack),Rf=/\n\s*at [^:]*:[^\n]*/,If=Rf.test(xf),Cf=N,Af=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Cf(1,7)),7!==e.stack)})),Lf=vr,jf=function(e,t){if(If&&"string"==typeof e&&!Ef.prepareStackTrace)for(;t--;)e=Of(e,Rf,"");return e},Mf=Af,Df=Error.captureStackTrace,Uf=ul,Ff=ht("iterator"),Nf=Array.prototype,zf=function(e){return void 0!==e&&(Uf.Array===e||Nf[Ff]===e)},Vf=en,Bf=je,Wf=H,qf=ul,Hf=ht("iterator"),Kf=function(e){if(!Wf(e))return Bf(e,Hf)||Bf(e,"@@iterator")||qf[Vf(e)]},Gf=A,Qf=Ce,Xf=rr,Jf=Oe,$f=Kf,Yf=TypeError,Zf=function(e,t){var r=arguments.length<2?$f(e):t;if(Qf(r))return Xf(Gf(r,e));throw Yf(Jf(e)+" is not iterable")},eh=A,th=rr,rh=je,nh=function(e,t,r){var n,i;th(e);try{if(!(n=rh(e,"return"))){if("throw"===t)throw r;return r}n=eh(n,e)}catch(XR){i=!0,n=XR}if("throw"===t)throw r;if(i)throw n;return th(n),r},ih=Jt,oh=A,ah=rr,sh=Oe,lh=zf,ch=Nr,uh=se,fh=Zf,hh=Kf,ph=nh,dh=TypeError,gh=function(e,t){this.stopped=e,this.result=t},vh=gh.prototype,yh=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),g=ih(t,u),v=function(e){return n&&ph(n,"normal",e),new gh(!0,e)},y=function(e){return f?(ah(e),d?g(e[0],e[1],v):g(e[0],e[1])):d?g(e,v):g(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(i=hh(e)))throw dh(sh(e)+" is not iterable");if(lh(i)){for(o=0,a=ch(e);a>o;o++)if((s=y(e[o]))&&uh(vh,s))return s;return new gh(!1)}n=fh(e,i)}for(l=h?e.next:n.next;!(c=oh(l,n)).done;){try{s=y(c.value)}catch(XR){ph(n,"throw",XR)}if("object"==typeof s&&s&&uh(vh,s))return s}return new gh(!1)},mh=Gn,_h=xr,wh=se,bh=Tl,Sh=$l,Ph=function(e,t,r){for(var n=bf(t),i=Pf.f,o=Sf.f,a=0;a<n.length;a++){var s=n[a];wf(e,s)||r&&wf(r,s)||i(e,s,o(t,s))}},kh=Ni,Th=vr,Eh=N,Oh=function(e,t){kf(t)&&"cause"in t&&Tf(e,"cause",t.cause)},xh=function(e,t,r,n){Mf&&(Df?Df(e,t):Lf(e,"stack",jf(r,n)))},Rh=yh,Ih=function(e,t){return void 0===e?arguments.length<2?"":t:mh(e)},Ch=ht("toStringTag"),Ah=Error,Lh=[].push,jh=function(e,t){var r,n=wh(Mh,this);Sh?r=Sh(Ah(),n?bh(this):Mh):(r=n?this:kh(Mh),Th(r,Ch,"Error")),void 0!==t&&Th(r,"message",Ih(t)),xh(r,jh,r.stack,1),arguments.length>2&&Oh(r,arguments[2]);var i=[];return Rh(e,Lh,{that:i}),Th(r,"errors",i),r};Sh?Sh(jh,Ah):Ph(jh,Ah,{name:!0});var Mh=jh.prototype=kh(Ah.prototype,{constructor:Eh(1,jh),message:Eh(1,""),name:Eh(1,"AggregateError")});_h({global:!0,constructor:!0,arity:2},{AggregateError:jh});var Dh,Uh,Fh,Nh,zh="undefined"!=typeof process&&"process"==w(process),Vh=ae,Bh=oo,Wh=R,qh=ht("species"),Hh=se,Kh=TypeError,Gh=function(e,t){if(Hh(t,e))return e;throw Kh("Incorrect invocation")},Qh=_n,Xh=Oe,Jh=TypeError,$h=function(e){if(Qh(e))return e;throw Jh(Xh(e)+" is not a constructor")},Yh=rr,Zh=$h,ep=H,tp=ht("species"),rp=function(e,t){var r,n=Yh(e).constructor;return void 0===n||ep(r=Yh(n)[tp])?t:Zh(r)},np=TypeError,ip=function(e,t){if(e<t)throw np("Not enough arguments");return e},op=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),ap=i,sp=f,lp=Jt,cp=O,up=Ye,fp=o,hp=Si,pp=ks,dp=Et,gp=ip,vp=op,yp=zh,mp=ap.setImmediate,_p=ap.clearImmediate,wp=ap.process,bp=ap.Dispatch,Sp=ap.Function,Pp=ap.MessageChannel,kp=ap.String,Tp=0,Ep={},Op="onreadystatechange";fp((function(){Dh=ap.location}));var xp=function(e){if(up(Ep,e)){var t=Ep[e];delete Ep[e],t()}},Rp=function(e){return function(){xp(e)}},Ip=function(e){xp(e.data)},Cp=function(e){ap.postMessage(kp(e),Dh.protocol+"//"+Dh.host)};mp&&_p||(mp=function(e){gp(arguments.length,1);var t=cp(e)?e:Sp(e),r=pp(arguments,1);return Ep[++Tp]=function(){sp(t,void 0,r)},Uh(Tp),Tp},_p=function(e){delete Ep[e]},yp?Uh=function(e){wp.nextTick(Rp(e))}:bp&&bp.now?Uh=function(e){bp.now(Rp(e))}:Pp&&!vp?(Nh=(Fh=new Pp).port2,Fh.port1.onmessage=Ip,Uh=lp(Nh.postMessage,Nh)):ap.addEventListener&&cp(ap.postMessage)&&!ap.importScripts&&Dh&&"file:"!==Dh.protocol&&!fp(Cp)?(Uh=Cp,ap.addEventListener("message",Ip,!1)):Uh=Op in dp("script")?function(e){hp.appendChild(dp("script"))[Op]=function(){hp.removeChild(this),xp(e)}}:function(e){setTimeout(Rp(e),0)});var Ap={set:mp,clear:_p},Lp=function(){this.head=null,this.tail=null};Lp.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.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 jp,Mp,Dp,Up,Fp,Np=Lp,zp=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,Vp=/web0s(?!.*chrome)/i.test(le),Bp=i,Wp=Jt,qp=x.f,Hp=Ap.set,Kp=Np,Gp=op,Qp=zp,Xp=Vp,Jp=zh,$p=Bp.MutationObserver||Bp.WebKitMutationObserver,Yp=Bp.document,Zp=Bp.process,ed=Bp.Promise,td=qp(Bp,"queueMicrotask"),rd=td&&td.value;if(!rd){var nd=new Kp,id=function(){var e,t;for(Jp&&(e=Zp.domain)&&e.exit();t=nd.get();)try{t()}catch(XR){throw nd.head&&jp(),XR}e&&e.enter()};Gp||Jp||Xp||!$p||!Yp?!Qp&&ed&&ed.resolve?((Up=ed.resolve(void 0)).constructor=ed,Fp=Wp(Up.then,Up),jp=function(){Fp(id)}):Jp?jp=function(){Zp.nextTick(id)}:(Hp=Wp(Hp,Bp),jp=function(){Hp(id)}):(Mp=!0,Dp=Yp.createTextNode(""),new $p(id).observe(Dp,{characterData:!0}),jp=function(){Dp.data=Mp=!Mp}),rd=function(e){nd.head||jp(),nd.add(e)}}var od=rd,ad=function(e){try{return{error:!1,value:e()}}catch(XR){return{error:!0,value:XR}}},sd=i.Promise,ld="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cd=!ld&&!zh&&"object"==typeof window&&"object"==typeof document,ud=i,fd=sd,hd=O,pd=Kt,dd=on,gd=ht,vd=cd,yd=ld,md=ge,_d=fd&&fd.prototype,wd=gd("species"),bd=!1,Sd=hd(ud.PromiseRejectionEvent),Pd={CONSTRUCTOR:pd("Promise",(function(){var e=dd(fd),t=e!==String(fd);if(!t&&66===md)return!0;if(!_d.catch||!_d.finally)return!0;if(!md||md<51||!/native code/.test(e)){var r=new fd((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[wd]=n,!(bd=r.then((function(){}))instanceof n))return!0}return!t&&(vd||yd)&&!Sd})),REJECTION_EVENT:Sd,SUBCLASSING:bd},kd={},Td=Ce,Ed=TypeError,Od=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Ed("Bad Promise constructor");t=e,r=n})),this.resolve=Td(t),this.reject=Td(r)};kd.f=function(e){return new Od(e)};var xd,Rd,Id=xr,Cd=zh,Ad=i,Ld=A,jd=no,Md=Io,Dd=function(e){var t=Vh(e);Wh&&t&&!t[qh]&&Bh(t,qh,{configurable:!0,get:function(){return this}})},Ud=Ce,Fd=O,Nd=ee,zd=Gh,Vd=rp,Bd=Ap.set,Wd=od,qd=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(XR){}},Hd=ad,Kd=Np,Gd=Ko,Qd=sd,Xd=Pd,Jd=kd,$d="Promise",Yd=Xd.CONSTRUCTOR,Zd=Xd.REJECTION_EVENT,eg=Gd.getterFor($d),tg=Gd.set,rg=Qd&&Qd.prototype,ng=Qd,ig=rg,og=Ad.TypeError,ag=Ad.document,sg=Ad.process,lg=Jd.f,cg=lg,ug=!!(ag&&ag.createEvent&&Ad.dispatchEvent),fg="unhandledrejection",hg=function(e){var t;return!(!Nd(e)||!Fd(t=e.then))&&t},pg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&mg(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(og("Promise-chain cycle")):(n=hg(r))?Ld(n,r,l,c):l(r)):c(o)}catch(XR){u&&!i&&u.exit(),c(XR)}},dg=function(e,t){e.notified||(e.notified=!0,Wd((function(){for(var r,n=e.reactions;r=n.get();)pg(r,e);e.notified=!1,t&&!e.rejection&&vg(e)})))},gg=function(e,t,r){var n,i;ug?((n=ag.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ad.dispatchEvent(n)):n={promise:t,reason:r},!Zd&&(i=Ad["on"+e])?i(n):e===fg&&qd("Unhandled promise rejection",r)},vg=function(e){Ld(Bd,Ad,(function(){var t,r=e.facade,n=e.value;if(yg(e)&&(t=Hd((function(){Cd?sg.emit("unhandledRejection",n,r):gg(fg,r,n)})),e.rejection=Cd||yg(e)?2:1,t.error))throw t.value}))},yg=function(e){return 1!==e.rejection&&!e.parent},mg=function(e){Ld(Bd,Ad,(function(){var t=e.facade;Cd?sg.emit("rejectionHandled",t):gg("rejectionhandled",t,e.value)}))},_g=function(e,t,r){return function(n){e(t,n,r)}},wg=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,dg(e,!0))},bg=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw og("Promise can't be resolved itself");var n=hg(t);n?Wd((function(){var r={done:!1};try{Ld(n,t,_g(bg,r,e),_g(wg,r,e))}catch(XR){wg(r,XR,e)}})):(e.value=t,e.state=1,dg(e,!1))}catch(XR){wg({done:!1},XR,e)}}};Yd&&(ig=(ng=function(e){zd(this,ig),Ud(e),Ld(xd,this);var t=eg(this);try{e(_g(bg,t),_g(wg,t))}catch(XR){wg(t,XR)}}).prototype,(xd=function(e){tg(this,{type:$d,done:!1,notified:!1,parent:!1,reactions:new Kd,rejection:!1,state:0,value:void 0})}).prototype=jd(ig,"then",(function(e,t){var r=eg(this),n=lg(Vd(this,ng));return r.parent=!0,n.ok=!Fd(e)||e,n.fail=Fd(t)&&t,n.domain=Cd?sg.domain:void 0,0==r.state?r.reactions.add(n):Wd((function(){pg(n,r)})),n.promise})),Rd=function(){var e=new xd,t=eg(e);this.promise=e,this.resolve=_g(bg,t),this.reject=_g(wg,t)},Jd.f=lg=function(e){return e===ng||undefined===e?new Rd(e):cg(e)}),Id({global:!0,constructor:!0,wrap:!0,forced:Yd},{Promise:ng}),Md(ng,$d,!1,!0),Dd($d);var Sg=ht("iterator"),Pg=!1;try{var kg=0,Tg={next:function(){return{done:!!kg++}},return:function(){Pg=!0}};Tg[Sg]=function(){return this},Array.from(Tg,(function(){throw 2}))}catch(XR){}var Eg=function(e,t){if(!t&&!Pg)return!1;var r=!1;try{var n={};n[Sg]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(XR){}return r},Og=sd,xg=Pd.CONSTRUCTOR||!Eg((function(e){Og.all(e).then(void 0,(function(){}))})),Rg=A,Ig=Ce,Cg=kd,Ag=ad,Lg=yh;xr({target:"Promise",stat:!0,forced:xg},{all:function(e){var t=this,r=Cg.f(t),n=r.resolve,i=r.reject,o=Ag((function(){var r=Ig(t.resolve),o=[],a=0,s=1;Lg(e,(function(e){var l=a++,c=!1;s++,Rg(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var jg=xr,Mg=Pd.CONSTRUCTOR;sd&&sd.prototype,jg({target:"Promise",proto:!0,forced:Mg,real:!0},{catch:function(e){return this.then(void 0,e)}});var Dg=A,Ug=Ce,Fg=kd,Ng=ad,zg=yh;xr({target:"Promise",stat:!0,forced:xg},{race:function(e){var t=this,r=Fg.f(t),n=r.reject,i=Ng((function(){var i=Ug(t.resolve);zg(e,(function(e){Dg(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Vg=A,Bg=kd;xr({target:"Promise",stat:!0,forced:Pd.CONSTRUCTOR},{reject:function(e){var t=Bg.f(this);return Vg(t.reject,void 0,e),t.promise}});var Wg=rr,qg=ee,Hg=kd,Kg=function(e,t){if(Wg(e),qg(t)&&t.constructor===e)return t;var r=Hg.f(e);return(0,r.resolve)(t),r.promise},Gg=xr,Qg=sd,Xg=Pd.CONSTRUCTOR,Jg=Kg,$g=ae("Promise"),Yg=!Xg;Gg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Jg(Yg&&this===$g?Qg:this,e)}});var Zg=A,ev=Ce,tv=kd,rv=ad,nv=yh;xr({target:"Promise",stat:!0,forced:xg},{allSettled:function(e){var t=this,r=tv.f(t),n=r.resolve,i=r.reject,o=rv((function(){var r=ev(t.resolve),i=[],o=0,a=1;nv(e,(function(e){var s=o++,l=!1;a++,Zg(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var iv=A,ov=Ce,av=ae,sv=kd,lv=ad,cv=yh,uv="No one promise resolved";xr({target:"Promise",stat:!0,forced:xg},{any:function(e){var t=this,r=av("AggregateError"),n=sv.f(t),i=n.resolve,o=n.reject,a=lv((function(){var n=ov(t.resolve),a=[],s=0,l=1,c=!1;cv(e,(function(e){var u=s++,f=!1;l++,iv(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,uv)))}))})),--l||o(new r(a,uv))}));return a.error&&o(a.value),n.promise}});var fv=xr,hv=sd,pv=o,dv=ae,gv=O,vv=rp,yv=Kg,mv=hv&&hv.prototype;fv({target:"Promise",proto:!0,real:!0,forced:!!hv&&pv((function(){mv.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=vv(this,dv("Promise")),r=gv(e);return this.then(r?function(r){return yv(t,e()).then((function(){return r}))}:e,r?function(r){return yv(t,e()).then((function(){throw r}))}:e)}});var _v=te.Promise,wv=kd,bv=ad;xr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=wv.f(this),r=bv(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Sv=_v,Pv=r(Sv),kv=xr,Tv=Ir,Ev=v([].reverse),Ov=[1,2];kv({target:"Array",proto:!0,forced:String(Ov)===String(Ov.reverse())},{reverse:function(){return Tv(this)&&(this.length=this.length),Ev(this)}});var xv=Bu("Array").reverse,Rv=se,Iv=xv,Cv=Array.prototype,Av=r((function(e){var t=e.reverse;return e===Cv||Rv(Cv,e)&&t===Cv.reverse?Iv:t})),Lv=xr,jv=Ir,Mv=_n,Dv=ee,Uv=Yn,Fv=Nr,Nv=$,zv=Hr,Vv=ht,Bv=ks,Wv=In("slice"),qv=Vv("species"),Hv=Array,Kv=Math.max;Lv({target:"Array",proto:!0,forced:!Wv},{slice:function(e,t){var r,n,i,o=Nv(this),a=Fv(o),s=Uv(e,a),l=Uv(void 0===t?a:t,a);if(jv(o)&&(r=o.constructor,(Mv(r)&&(r===Hv||jv(r.prototype))||Dv(r)&&null===(r=r[qv]))&&(r=void 0),r===Hv||void 0===r))return Bv(o,s,l);for(n=new(void 0===r?Hv:r)(Kv(l-s,0)),i=0;s<l;s++,i++)s in o&&zv(n,i,o[s]);return n.length=i,n}});var Gv=Bu("Array").slice,Qv=se,Xv=Gv,Jv=Array.prototype,$v=function(e){var t=e.slice;return e===Jv||Qv(Jv,e)&&t===Jv.slice?Xv:t},Yv=r($v);function Zv(){Zv=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ru||function(e,t,r){e[t]=r.value},i="function"==typeof ru?ru:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Ru(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=Au(o.prototype),s=new k(i||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var g={};l(g,o,(function(){return this}));var v=Du&&Du(Du(T([])));v&&v!==t&&r.call(v,o)&&(g=v);var y=d.prototype=h.prototype=Au(g);function m(e){var t;$u(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==bu(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),hf(t=this.tryEntries).call(t,r)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],$u(e).call(e,S,this),this.reset(!0)}function T(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 n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return pf?pf(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=Au(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Pv);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?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),r=[];for(var n in t)hf(r).call(r,n);return Av(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,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,$u(t=this.tryEntries).call(t,P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Yv(n).call(n,1))&&(this[n]=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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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,f):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),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var ey=Xe,ty=di;xr({target:"Object",stat:!0,forced:o((function(){ty(1)}))},{keys:function(e){return ty(ey(e))}});var ry=te.Object.keys,ny=r(ry),iy=te.Object.getOwnPropertySymbols,oy=r(iy),ay=ea.filter;xr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(e){return ay(this,e,arguments.length>1?arguments[1]:void 0)}});var sy=Bu("Array").filter,ly=se,cy=sy,uy=Array.prototype,fy=function(e){var t=e.filter;return e===uy||ly(uy,e)&&t===uy.filter?cy:t},hy=r(fy),py={exports:{}},dy=xr,gy=o,vy=$,yy=x.f,my=R;dy({target:"Object",stat:!0,forced:!my||gy((function(){yy(1)})),sham:!my},{getOwnPropertyDescriptor:function(e,t){return yy(vy(e),t)}});var _y=te.Object,wy=py.exports=function(e,t){return _y.getOwnPropertyDescriptor(e,t)};_y.getOwnPropertyDescriptor.sham&&(wy.sham=!0);var by=py.exports,Sy=r(by),Py=_f,ky=$,Ty=x,Ey=Hr;xr({target:"Object",stat:!0,sham:!R},{getOwnPropertyDescriptors:function(e){for(var t,r,n=ky(e),i=Ty.f,o=Py(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Ey(a,t,r);return a}});var Oy=te.Object.getOwnPropertyDescriptors,xy=r(Oy),Ry={exports:{}},Iy=xr,Cy=R,Ay=Qn.f;Iy({target:"Object",stat:!0,forced:Object.defineProperties!==Ay,sham:!Cy},{defineProperties:Ay});var Ly=te.Object,jy=Ry.exports=function(e,t){return Ly.defineProperties(e,t)};Ly.defineProperties.sham&&(jy.sham=!0);var My=Ry.exports,Dy=r(My),Uy=r(ao.f("toPrimitive"));function Fy(e){var t=function(e,t){if("object"!==bu(e)||null===e)return e;var r=e[Uy];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bu(t)?t:String(t)}function Ny(e,t,r){return(t=Fy(t))in e?Ru(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e,t){var r=ny(e);if(oy){var n=oy(e);t&&(n=hy(n).call(n,(function(t){return Sy(e,t).enumerable}))),hf(r).apply(r,n)}return r}function Vy(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?$u(r=zy(Object(i),!0)).call(r,(function(t){Ny(e,t,i[t])})):xy?Dy(e,xy(i)):$u(n=zy(Object(i))).call(n,(function(t){Ru(e,t,Sy(i,t))}))}return e}function By(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(XR){return void r(XR)}s.done?t(l):Pv.resolve(l).then(n,i)}function Wy(e){return function(){var t=this,r=arguments;return new Pv((function(n,i){var o=e.apply(t,r);function a(e){By(o,n,i,a,s,"next",e)}function s(e){By(o,n,i,a,s,"throw",e)}a(void 0)}))}}function qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ru(e,Fy(n.key),n)}}function Ky(e,t,r){return t&&Hy(e.prototype,t),r&&Hy(e,r),Ru(e,"prototype",{writable:!1}),e}var Gy=v,Qy=Ce,Xy=ee,Jy=Ye,$y=ks,Yy=a,Zy=Function,em=Gy([].concat),tm=Gy([].join),rm={},nm=Yy?Zy.bind:function(e){var t=Qy(this),r=t.prototype,n=$y(arguments,1),i=function(){var r=em(n,$y(arguments));return this instanceof i?function(e,t,r){if(!Jy(rm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";rm[t]=Zy("C,a","return new C("+tm(n,",")+")")}return rm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Xy(r)&&(i.prototype=r),i},im=nm;xr({target:"Function",proto:!0,forced:Function.bind!==im},{bind:im});var om=Bu("Function").bind,am=se,sm=om,lm=Function.prototype,cm=function(e){var t=e.bind;return e===lm||am(lm,e)&&t===lm.bind?sm:t},um=r(cm);function fm(e,t){var r;return(fm=pf?um(r=pf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function hm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Au(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ru(e,"prototype",{writable:!1}),t&&fm(e,t)}var pm=xr,dm=f,gm=nm,vm=$h,ym=rr,mm=ee,_m=Ni,wm=o,bm=ae("Reflect","construct"),Sm=Object.prototype,Pm=[].push,km=wm((function(){function e(){}return!(bm((function(){}),[],e)instanceof e)})),Tm=!wm((function(){bm((function(){}))})),Em=km||Tm;pm({target:"Reflect",stat:!0,forced:Em,sham:Em},{construct:function(e,t){vm(e),ym(t);var r=arguments.length<3?e:vm(arguments[2]);if(Tm&&!km)return bm(e,t,r);if(e==r){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 n=[null];return dm(Pm,n,t),new(dm(gm,e,n))}var i=r.prototype,o=_m(mm(i)?i:Sm),a=dm(e,o,t);return mm(a)?a:o}});var Om=r(te.Reflect.construct);function xm(e){var t;return(xm=pf?um(t=Du).call(t):function(e){return e.__proto__||Du(e)})(e)}function Rm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Im(e){var t=function(){if("undefined"==typeof Reflect||!Om)return!1;if(Om.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Om(Boolean,[],(function(){}))),!0}catch(gE){return!1}}();return function(){var r,n=xm(e);if(t){var i=xm(this).constructor;r=Om(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rm(e)}(this,r)}}xr({target:"Array",stat:!0},{isArray:Ir});var Cm=te.Array.isArray,Am=r(Cm);function Lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var jm=Kf,Mm=r(jm),Dm=rr,Um=nh,Fm=Jt,Nm=A,zm=Xe,Vm=function(e,t,r,n){try{return n?t(Dm(r)[0],r[1]):t(r)}catch(XR){Um(e,"throw",XR)}},Bm=zf,Wm=_n,qm=Nr,Hm=Hr,Km=Zf,Gm=Kf,Qm=Array,Xm=function(e){var t=zm(e),r=Wm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Fm(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,h=Gm(t),p=0;if(!h||this===Qm&&Bm(h))for(a=qm(t),s=r?new this(a):Qm(a);a>p;p++)f=o?i(t[p],p):t[p],Hm(s,p,f);else for(u=(c=Km(t,h)).next,s=r?new this:[];!(l=Nm(u,c)).done;p++)f=o?Vm(c,i,[l.value,p],!0):l.value,Hm(s,p,f);return s.length=p,s},Jm=Xm;xr({target:"Array",stat:!0,forced:!Eg((function(e){Array.from(e)}))},{from:Jm});var $m=r(te.Array.from);function Ym(e,t){var r;if(e){if("string"==typeof e)return Lm(e,t);var n=Yv(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?$m(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lm(e,t):void 0}}function Zm(e){return function(e){if(Am(e))return Lm(e)}(e)||function(e){if(void 0!==ru&&null!=Mm(e)||null!=e["@@iterator"])return $m(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.")}()}var e_=Bu("Array").concat,t_=se,r_=e_,n_=Array.prototype,i_=r((function(e){var t=e.concat;return e===n_||t_(n_,e)&&t===n_.concat?r_:t})),o_=window.VePlayer.error,a_=o_.VeError,s_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(s_||{});o_.Level;var l_=Vy(Vy({},s_),o_.ErrorCode),c_=Vy(Vy({},o_.ERROR_INFO),{},Ny({},210,{messageTextKey:"INVALID_PARAMETER",level:o_.Level.Fatal}));function u_(e,t){return new a_(c_[e],t)}function f_(e,t){return function(e){if(Am(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==ru&&Mm(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(hf(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}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 h_=xr,p_=ni.indexOf,d_=Fu,g_=P([].indexOf),v_=!!g_&&1/g_([1],1,-0)<0;h_({target:"Array",proto:!0,forced:v_||!d_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return v_?g_(this,e,t)||0:p_(this,e,t)}});var y_=Bu("Array").indexOf,m_=se,__=y_,w_=Array.prototype,b_=function(e){var t=e.indexOf;return e===w_||m_(w_,e)&&t===w_.indexOf?__:t},S_=r(b_);function P_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=ny(e);for(n=0;n<o.length;n++)r=o[n],S_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(oy){var o=oy(e);for(n=0;n<o.length;n++)r=o[n],S_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var k_=r(Sv),T_=window.VePlayer.DynamicModule,E_=window.VePlayer.load;function O_(){return x_.apply(this,arguments)}function x_(){return(x_=Wy(Zv().mark((function e(){var t;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E_(T_.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R_(){return I_.apply(this,arguments)}function I_(){return I_=Wy(Zv().mark((function e(){var t,r,n=arguments;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:RR.H264,e.next=3,E_(T_.PluginRtm);case 3:if(r=e.sent,t!==RR.H264){e.next=6;break}return e.abrupt("return",r.isSupportedH264());case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)}))),I_.apply(this,arguments)}var C_=["fallbackUrl","enableFallback"],A_=window.VePlayer.strategy,L_=window.VePlayer.util,j_=window.VePlayer.DynamicModule,M_=window.VePlayer.load,D_=window.VePlayer.Codec,U_=window.VePlayer.Sniffer,F_={options:{},module:j_.PluginRtm},N_=function(e){return"pc"===U_.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},z_=function(){var e=Wy(Zv().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p,d,g,v,y,m,_,w,b,S;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,f=P_(s,C_),h=u?!l&&a?N_(a):l:"","flv"===(p=h&&L_.getStreamType(h))&&L_.isMseSupported(D_.H264)?o=A_.createFlvMseStrategy(t):"hls"===p&&("mobile"!==U_.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&L_.isMseSupported(D_.H264)&&(o=A_.createHlsMseStrategy(t)),e.next=7,k_.all([M_(F_.module).catch((function(){})),o&&M_(o.module).catch((function(){}))]);case 7:return d=e.sent,g=f_(d,2),v=g[0],y=g[1],e.next=13,k_.all([O_(),R_()]);case 13:if(m=e.sent,_=f_(m,2),w=_[0],b=_[1],w&&b){e.next=20;break}return r&&r.emit("degrade",{url:h,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:w,isRTMSupportCodec:b}),e.abrupt("return",{options:Vy(Vy({},(null===(S=o)||void 0===S?void 0:S.options)||{}),{},{url:h,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:w,_isRTMSupportCodec:b}}),plugins:y?[y]:[]});case 20:return e.abrupt("return",{options:Vy(Vy({},(null===(i=o)||void 0===i?void 0:i.options)||{}),{},{_RTMdegrade:void 0,rts:Vy(Vy({retryCount:0},f),{},{backupURL:h,backupConstruct:y})}),plugins:v?[v]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),V_=window.VePlayer.util,B_=window.VePlayer.strategy,W_=function(){var e=Wy(Zv().mark((function e(t,r){var n;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?V_.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,z_(t,r);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,B_.getFlvStrategy(t);case 11:if("hls"!==n){e.next=15;break}return e.next=14,B_.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),q_=r(cm),H_="\t\n\v\f\r                 \u2028\u2029\ufeff",K_=Q,G_=Gn,Q_=H_,X_=v("".replace),J_=RegExp("^["+Q_+"]+"),$_=RegExp("(^|[^"+Q_+"])["+Q_+"]+$"),Y_=function(e){return function(t){var r=G_(K_(t));return 1&e&&(r=X_(r,J_,"")),2&e&&(r=X_(r,$_,"$1")),r}},Z_={start:Y_(1),end:Y_(2),trim:Y_(3)},ew=i,tw=o,rw=v,nw=Gn,iw=Z_.trim,ow=H_,aw=ew.parseInt,sw=ew.Symbol,lw=sw&&sw.iterator,cw=/^[+-]?0x/i,uw=rw(cw.exec),fw=8!==aw(ow+"08")||22!==aw(ow+"0x16")||lw&&!tw((function(){aw(Object(lw))}))?function(e,t){var r=iw(nw(e));return aw(r,t>>>0||(uw(cw,r)?16:10))}:aw;xr({global:!0,forced:parseInt!=fw},{parseInt:fw});var hw,pw=r(te.parseInt),dw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,gw=i,vw=f,yw=O,mw=dw,_w=le,ww=ks,bw=ip,Sw=gw.Function,Pw=/MSIE .\./.test(_w)||mw&&((hw=gw.Bun.version.split(".")).length<3||0==hw[0]&&(hw[1]<3||3==hw[1]&&0==hw[2])),kw=function(e,t){var r=t?2:1;return Pw?function(n,i){var o=bw(arguments.length,1)>r,a=yw(n)?n:Sw(n),s=o?ww(arguments,r):[],l=o?function(){vw(a,this,s)}:a;return t?e(l,i):e(l)}:e},Tw=xr,Ew=i,Ow=kw(Ew.setInterval,!0);Tw({global:!0,bind:!0,forced:Ew.setInterval!==Ow},{setInterval:Ow});var xw=xr,Rw=i,Iw=kw(Rw.setTimeout,!0);xw({global:!0,bind:!0,forced:Rw.setTimeout!==Iw},{setTimeout:Iw});var Cw=r(te.setTimeout),Aw=r($v),Lw=NaN,jw="[object Symbol]",Mw=/^\s+|\s+$/g,Dw=/^[-+]0x[0-9a-f]+$/i,Uw=/^0b[01]+$/i,Fw=/^0o[0-7]+$/i,Nw=pw,zw="object"==bu(t)&&t&&t.Object===Object&&t,Vw="object"==("undefined"==typeof self?"undefined":bu(self))&&self&&self.Object===Object&&self,Bw=zw||Vw||Function("return this")(),Ww=Object.prototype.toString,qw=Math.max,Hw=Math.min,Kw=function(){return Bw.Date.now()};function Gw(e){var t=bu(e);return!!e&&("object"==t||"function"==t)}function Qw(e){return"symbol"==bu(e)||function(e){return!!e&&"object"==bu(e)}(e)&&Ww.call(e)==jw}function Xw(e){if("number"==typeof e)return e;if(Qw(e))return Lw;if(Gw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Gw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mw,"");var r=Uw.test(e);return r||Fw.test(e)?Nw(Aw(e).call(e,2),r?2:8):Dw.test(e)?Lw:+e}var Jw=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function g(){var e=Kw();if(d(e))return v(e);s=Cw(g,function(e){var r=t-(e-l);return f?Hw(r,o-(e-c)):r}(e))}function v(e){return s=void 0,h&&n?p(e):(n=i=void 0,a)}function y(){var e=Kw(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=Cw(g,t),u?p(e):a}(l);if(f)return s=Cw(g,t),p(l)}return void 0===s&&(s=Cw(g,t)),a}return t=Xw(t)||0,Gw(r)&&(u=!!r.leading,o=(f="maxWait"in r)?qw(Xw(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(Kw())},y},$w=r(Jw),Yw=Vy(Vy({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function Zw(){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 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var eb=window.VePlayer.Plugin,tb=window.VePlayer.Sniffer,rb=window.VePlayer.XGEvents,nb=eb.POSITIONS,ib=function(e){hm(r,e);var t=Im(r);function r(){return qy(this,r),t.apply(this,arguments)}return Ky(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Zw,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Yw.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(rb.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=$w(q_(e=this._handleRefresh).call(e,this),200);var t="mobile"===tb.device?"touchend":"click";q_(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:nb.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(eb),ob=r(xu),ab=r(ry),sb=r(iy),lb=r(fy),cb=r(by),ub=r(Ju),fb=r(Oy),hb=r(My),pb=r(b_),db=xr,gb=Date,vb=v(gb.prototype.getTime);db({target:"Date",stat:!0},{now:function(){return vb(new gb)}});var yb=r(te.Date.now),mb=o,_b=ht("iterator"),wb=!mb((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+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[_b]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),bb=no,Sb=Xi,Pb=Math.floor,kb=function(e,t){var r=e.length,n=Pb(r/2);return r<8?Tb(e,t):Eb(e,kb(Sb(e,0,n),t),kb(Sb(e,n),t),t)},Tb=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Eb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},Ob=xr,xb=i,Rb=A,Ib=v,Cb=R,Ab=wb,Lb=no,jb=oo,Mb=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:bb(e,n,t[n],r);return e},Db=Io,Ub=Bl,Fb=Ko,Nb=Gh,zb=O,Vb=Ye,Bb=Jt,Wb=en,qb=rr,Hb=ee,Kb=Gn,Gb=Ni,Qb=N,Xb=Zf,Jb=Kf,$b=ip,Yb=kb,Zb=ht("iterator"),eS="URLSearchParams",tS=eS+"Iterator",rS=Fb.set,nS=Fb.getterFor(eS),iS=Fb.getterFor(tS),oS=Object.getOwnPropertyDescriptor,aS=function(e){if(!Cb)return xb[e];var t=oS(xb,e);return t&&t.value},sS=aS("fetch"),lS=aS("Request"),cS=aS("Headers"),uS=lS&&lS.prototype,fS=cS&&cS.prototype,hS=xb.RegExp,pS=xb.TypeError,dS=xb.decodeURIComponent,gS=xb.encodeURIComponent,vS=Ib("".charAt),yS=Ib([].join),mS=Ib([].push),_S=Ib("".replace),wS=Ib([].shift),bS=Ib([].splice),SS=Ib("".split),PS=Ib("".slice),kS=/\+/g,TS=Array(4),ES=function(e){return TS[e-1]||(TS[e-1]=hS("((?:%[\\da-f]{2}){"+e+"})","gi"))},OS=function(e){try{return dS(e)}catch(XR){return e}},xS=function(e){var t=_S(e,kS," "),r=4;try{return dS(t)}catch(XR){for(;r;)t=_S(t,ES(r--),OS);return t}},RS=/[!'()~]|%20/g,IS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},CS=function(e){return IS[e]},AS=function(e){return _S(gS(e),RS,CS)},LS=Ub((function(e,t){rS(this,{type:tS,iterator:Xb(nS(e).entries),kind:t})}),"Iterator",(function(){var e=iS(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),jS=function(e){this.entries=[],this.url=null,void 0!==e&&(Hb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===vS(e,0)?PS(e,1):e:Kb(e)))};jS.prototype={type:eS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=Jb(e);if(l)for(r=(t=Xb(e,l)).next;!(n=Rb(r,t)).done;){if(o=(i=Xb(qb(n.value))).next,(a=Rb(o,i)).done||(s=Rb(o,i)).done||!Rb(o,i).done)throw pS("Expected sequence with length 2");mS(this.entries,{key:Kb(a.value),value:Kb(s.value)})}else for(var c in e)Vb(e,c)&&mS(this.entries,{key:c,value:Kb(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=SS(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=SS(t,"="),mS(this.entries,{key:xS(wS(r)),value:xS(yS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],mS(r,AS(e.key)+"="+AS(e.value));return yS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var MS=function(){Nb(this,DS);var e=rS(this,new jS(arguments.length>0?arguments[0]:void 0));Cb||(this.length=e.entries.length)},DS=MS.prototype;if(Mb(DS,{append:function(e,t){$b(arguments.length,2);var r=nS(this);mS(r.entries,{key:Kb(e),value:Kb(t)}),Cb||this.length++,r.updateURL()},delete:function(e){$b(arguments.length,1);for(var t=nS(this),r=t.entries,n=Kb(e),i=0;i<r.length;)r[i].key===n?bS(r,i,1):i++;Cb||(this.length=r.length),t.updateURL()},get:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=[],i=0;i<t.length;i++)t[i].key===r&&mS(n,t[i].value);return n},has:function(e){$b(arguments.length,1);for(var t=nS(this).entries,r=Kb(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){$b(arguments.length,1);for(var r,n=nS(this),i=n.entries,o=!1,a=Kb(e),s=Kb(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?bS(i,l--,1):(o=!0,r.value=s));o||mS(i,{key:a,value:s}),Cb||(this.length=i.length),n.updateURL()},sort:function(){var e=nS(this);Yb(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=nS(this).entries,n=Bb(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new LS(this,"keys")},values:function(){return new LS(this,"values")},entries:function(){return new LS(this,"entries")}},{enumerable:!0}),Lb(DS,Zb,DS.entries,{name:"entries"}),Lb(DS,"toString",(function(){return nS(this).serialize()}),{enumerable:!0}),Cb&&jb(DS,"size",{get:function(){return nS(this).entries.length},configurable:!0,enumerable:!0}),Db(MS,eS),Ob({global:!0,constructor:!0,forced:!Ab},{URLSearchParams:MS}),!Ab&&zb(cS)){var US=Ib(fS.has),FS=Ib(fS.set),NS=function(e){if(Hb(e)){var t,r=e.body;if(Wb(r)===eS)return t=e.headers?new cS(e.headers):new cS,US(t,"content-type")||FS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Gb(e,{body:Qb(0,Kb(r)),headers:Qb(0,t)})}return e};if(zb(sS)&&Ob({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return sS(e,arguments.length>1?NS(arguments[1]):{})}}),zb(lS)){var zS=function(e){return Nb(this,uS),new lS(e,arguments.length>1?NS(arguments[1]):{})};uS.constructor=zS,zS.prototype=uS,Ob({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:zS})}}var VS={URLSearchParams:MS,getState:nS},BS=r(te.URLSearchParams),WS=ee,qS=w,HS=ht("match"),KS=function(e){var t;return WS(e)&&(void 0!==(t=e[HS])?!!t:"RegExp"==qS(e))},GS=TypeError,QS=function(e){if(KS(e))throw GS("The method doesn't accept regular expressions");return e},XS=ht("match"),JS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[XS]=!1,"/./"[e](t)}catch(XR){}}return!1},$S=xr,YS=P,ZS=Ur,eP=Gn,tP=QS,rP=Q,nP=JS,iP=YS("".startsWith),oP=YS("".slice),aP=Math.min;$S({target:"String",proto:!0,forced:!nP("startsWith")},{startsWith:function(e){var t=eP(rP(this));tP(e);var r=ZS(aP(arguments.length>1?arguments[1]:void 0,t.length)),n=eP(e);return iP?iP(t,n,r):oP(t,r,r+n.length)===n}});var sP=Bu("String").startsWith,lP=se,cP=sP,uP=String.prototype,fP=r((function(e){var t=e.startsWith;return"string"==typeof e||e===uP||lP(uP,e)&&t===uP.startsWith?cP:t})),hP=fw;xr({target:"Number",stat:!0,forced:Number.parseInt!=hP},{parseInt:hP});var pP=r(te.Number.parseInt),dP=R,gP=v,vP=A,yP=o,mP=di,_P=to,wP=L,bP=Xe,SP=q,PP=Object.assign,kP=Object.defineProperty,TP=gP([].concat),EP=!PP||yP((function(){if(dP&&1!==PP({b:1},PP(kP({},"a",{enumerable:!0,get:function(){kP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=PP({},e)[r]||mP(PP({},t)).join("")!=n}))?function(e,t){for(var r=bP(e),n=arguments.length,i=1,o=_P.f,a=wP.f;n>i;)for(var s,l=SP(arguments[i++]),c=o?TP(mP(l),o(l)):mP(l),u=c.length,f=0;u>f;)s=c[f++],dP&&!vP(a,l,s)||(r[s]=l[s]);return r}:PP,OP=EP;xr({target:"Object",stat:!0,arity:2,forced:Object.assign!==OP},{assign:OP});var xP=r(te.Object.assign),RP=ni.includes;xr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return RP(this,e,arguments.length>1?arguments[1]:void 0)}});var IP=Bu("Array").includes,CP=xr,AP=QS,LP=Q,jP=Gn,MP=JS,DP=v("".indexOf);CP({target:"String",proto:!0,forced:!MP("includes")},{includes:function(e){return!!~DP(jP(LP(this)),jP(AP(e)),arguments.length>1?arguments[1]:void 0)}});var UP=Bu("String").includes,FP=se,NP=IP,zP=UP,VP=Array.prototype,BP=String.prototype,WP=r((function(e){var t=e.includes;return e===VP||FP(VP,e)&&t===VP.includes?NP:"string"==typeof e||e===BP||FP(BP,e)&&t===BP.includes?zP:t})),qP=te,HP=f;qP.JSON||(qP.JSON={stringify:JSON.stringify});var KP=function(e,t,r){return HP(qP.JSON.stringify,null,arguments)},GP=r(KP),QP=f,XP=$,JP=jr,$P=Nr,YP=Fu,ZP=Math.min,ek=[].lastIndexOf,tk=!!ek&&1/[1].lastIndexOf(1,-0)<0,rk=YP("lastIndexOf"),nk=tk||!rk?function(e){if(tk)return QP(ek,this,arguments)||0;var t=XP(this),r=$P(t),n=r-1;for(arguments.length>1&&(n=ZP(n,JP(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:ek;xr({target:"Array",proto:!0,forced:nk!==[].lastIndexOf},{lastIndexOf:nk});var ik=Bu("Array").lastIndexOf,ok=se,ak=ik,sk=Array.prototype,lk=r((function(e){var t=e.lastIndexOf;return e===sk||ok(sk,e)&&t===sk.lastIndexOf?ak:t})),ck=i,uk=o,fk=Gn,hk=Z_.trim,pk=H_,dk=v("".charAt),gk=ck.parseFloat,vk=ck.Symbol,yk=vk&&vk.iterator,mk=1/gk(pk+"-0")!=-1/0||yk&&!uk((function(){gk(Object(yk))}))?function(e){var t=hk(fk(e)),r=gk(t);return 0===r&&"-"==dk(t,0)?-0:r}:gk,_k=mk;xr({target:"Number",stat:!0,forced:Number.parseFloat!=_k},{parseFloat:_k});var wk=r(te.Number.parseFloat),bk=r(te.setInterval);function Sk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),ob(e,n.key,n)}}function Pk(e,t,r){return t&&Sk(e.prototype,t),r&&Sk(e,r),e}function kk(e,t,r){return t in e?ob(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tk(e,t){var r=ab(e);if(sb){var n=sb(e);t&&(n=lb(n).call(n,(function(t){return cb(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)ub(r=Tk(Object(n),!0)).call(r,(function(t){kk(e,t,n[t])}));else if(fb)hb(e,fb(n));else{var i;ub(i=Tk(Object(n))).call(i,(function(t){ob(e,t,cb(n,t))}))}}return e}var Ok="xgplayer_device_id",xk="xgplayer_user_id",Rk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(pb(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},Ik=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},Ck=function(){var e=Rk(Ok);if(e)return e;var t=Ik(11);return document.cookie=Ok+"="+t+";max-age=31536000;path=/",t},Ak=function(){var e=Rk(xk);if(e)return e;var t=Ik(12);return document.cookie=xk+"="+t+";max-age=31536000;path=/",t};var Lk={get device(){return Lk.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:pb(e).call(e,"chrome")>-1&&pb(e).call(e,"safari")>-1,Firefox:pb(e).call(e,"firefox")>-1,Opera:pb(e).call(e,"opera")>-1,Safari:pb(e).call(e,"safari")>-1&&-1==pb(e).call(e,"chrome"),Edge:pb(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=pw(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function jk(){return yb()}function Mk(e){var t="unknown";return"string"!=typeof e?t:pb(e).call(e,".flv")>-1?"flv":pb(e).call(e,".m3u8")>-1?"m3u8":pb(e).call(e,".mp4")>-1?"mp4":pb(e).call(e,".sdp")>-1?"rts":t}function Dk(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}var Uk={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Fk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=q_(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}Pk(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&fP(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new BS(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=Mk(e.cdn_play_url),e.timestamp=jk();var r=function(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(XR){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,xP(e,Ek({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,Ek({},e)))},e}(),Nk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||Lk.device:"none":"unknown";var e},zk=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],Vk=function(){function e(e){var t,r;this.options=e,this.logger=new Bk(e),this.restart=q_(t=this.restart).call(t,this),this.bindUrlChange(),WP(r=Lk.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Bk(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=xP(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),Bk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=xP({},e,function(e){return{device_id:e.device_id||Ck(),user_id:e.user_id||Ak(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?yb()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Fk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}Pk(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return yb()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=yb()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,h,p,d,g;this.handlePlayerComlete=q_(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=q_(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=q_(r=this.destroyFunc).call(r,this),this.handleUserLeave=q_(n=this.handleUserLeave).call(n,this),this.handlePlayerError=q_(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=q_(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=q_(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=q_(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=q_(l=this.handlePlayerPause).call(l,this),this.handleTTFB=q_(c=this.handleTTFB).call(c,this),this.handleUrlChange=q_(u=this.handleUrlChange).call(u,this),this.handleKeyframe=q_(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=q_(h=this.handleSourceOpen).call(h,this),this.handleBufferAppend=q_(p=this.handleBufferAppend).call(p,this),this.handleCoreEvent=q_(d=this.handleCoreEvent).call(d,this),this.handleDegrade=q_(g=this.handleDegrade).call(g,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=Ek({os:Lk.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return Ek({project_key:e.project_key,live_sdk_version:Dk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:Ik(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+yb(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:Lk.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:yb(),play_current_time:0,cdn_play_url:r.config.url&&fP(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:Mk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=xP({},{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){ob(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&ob(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?Aw(e).call(e,0,25e4):""}return""},enumerable:!0}),ob(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),ob(this.log[o],"access",{get:function(){return Nk()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=Dk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=jk(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===Lk.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===Lk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;ub(zk).call(zk,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(xP(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=jk(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(xP({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,Aw(Array.prototype).call(e,0))}catch(gE){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(xP(this.log.play_url_change,{url:e,timestamp:jk()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=jk(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=jk(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=jk(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;xP(this.log.play_error,Ek({timestamp:jk(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:GP(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(xP(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=jk()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=jk(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=jk(),xP(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=Aw(i).call(i,pb(i).call(i,"{"),lk(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(gE){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=jk(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){xP(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=jk(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(xP({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=Dk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=pP(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(gE){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=wk(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=wk(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?k_.resolve(i.getStats()).then((function(t){return ub(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,h=t.framesDropped,p=t.keyFramesDecoded,d=t.totalDecodeTime,g=t.framesDecoded,v=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,w=t.jitterBufferEmittedCount,b=t.jitter,S=t.nackCount,P=t.packetsLost,k=t.pliCount,T=t.totalSamplesReceived,E=t.concealedSamples,O=t.currentRoundTripTime,x=t.decoderImplementation,R=t.mimeType,I=t.freezeCount,C=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=P-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=P,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(T-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=T,o.concealed_samples=E,o.total_samples_received=T):(o.frames_dropped=h,o.iframes_decoded=p,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/g,o.video_frame_height=v,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(g-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=g,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=I-r.cacheRtcStats.freezeCount,o.freeze_duration=C-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=I,r.cacheRtcStats.totalFreezesDuration=C,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/w*1e3,o.video_jitter=1e3*b,o.video_nack_count=S,o.video_packets_lost=P-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=P,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=k,o.decoder_name=x);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=v);break;case"candidate-pair":o.rtt=1e3*O;break;case"codec":WP(R).call(R,"video")?o.video_codec=R:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),xP(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):k_.resolve(o)}catch(gE){return k_.reject(gE)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<jk()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,jk()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=jk(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),xP(t.log.playing,Ek({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),k_.resolve(t.getRtcStats(o,e)).then((function(r){t.logmanager.push(xP({},t.log.playing,Ek({play_time:e?0:o},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(gE){return k_.reject(gE)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return k_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return k_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=bk((function(){try{var r=function(){if(Math.abs(yb()-e.log.playing.timestamp-t)<100||yb()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return k_.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return k_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(gE){return k_.reject(gE)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(gE){return k_.reject(gE)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=jk(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=jk(),this.playResultTimer=Cw((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=jk(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=jk(),this.log.stall_start.stall_start_time=jk(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),xP(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=Cw((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=jk();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=jk();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=jk(),this.log.playing.stall_count++,xP(this.log.stall,Ek({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),xP(this.log.playing,Ek({timestamp:jk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;xP(this.log.play_error,Ek(Ek({timestamp:jk()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=Uk[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=jk()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=Uk[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===Lk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Lk.device&&window.removeEventListener("pagehide",this.handleUserLeave),ub(zk).call(zk,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(XR){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(XR){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=jk();xP(this.log.first_frame,Ek({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=function(e){var t,r=lb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:pP(n.domainLookupEnd-n.domainLookupStart),redirect:pP(n.redirectEnd-n.redirectStart),ttfb:pP(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(this._url),t=jk();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;xP(r,Ek({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,xP(r,Ek({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(xP(this.log.playing,Ek({timestamp:jk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=jk(),xP(r,Ek({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),Wk=r(tu),qk=r(jm),Hk=Oe,Kk=TypeError,Gk=xr,Qk=Xe,Xk=Yn,Jk=jr,$k=Nr,Yk=rf,Zk=Vr,eT=En,tT=Hr,rT=function(e,t){if(!delete e[t])throw Kk("Cannot delete property "+Hk(t)+" of "+Hk(e))},nT=In("splice"),iT=Math.max,oT=Math.min;Gk({target:"Array",proto:!0,forced:!nT},{splice:function(e,t){var r,n,i,o,a,s,l=Qk(this),c=$k(l),u=Xk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=oT(iT(Jk(t),0),c-u)),Zk(c+r-n),i=eT(l,n),o=0;o<n;o++)(a=u+o)in l&&tT(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:rT(l,s);for(o=c;o>c-n+r;o--)rT(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:rT(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return Yk(l,c-n+r),i}});var aT=Bu("Array").splice,sT=se,lT=aT,cT=Array.prototype,uT=r((function(e){var t=e.splice;return e===cT||sT(cT,e)&&t===cT.splice?lT:t}));xr({global:!0,forced:parseFloat!=mk},{parseFloat:mk});var fT=r(te.parseFloat),hT=vl.PROPER,pT=o,dT=H_,gT=Z_.trim;xr({target:"String",proto:!0,forced:function(e){return pT((function(){return!!dT[e]()||"​…᠎"!=="​…᠎"[e]()||hT&&dT[e].name!==e}))}("trim")},{trim:function(){return gT(this)}});var vT=Bu("String").trim,yT=se,mT=vT,_T=String.prototype,wT=r((function(e){var t=e.trim;return"string"==typeof e||e===_T||yT(_T,e)&&t===_T.trim?mT:t})),bT=r(Cu),ST=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),PT={exports:{}},kT=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),TT=o,ET=ee,OT=w,xT=kT,RT=Object.isExtensible,IT=TT((function(){RT(1)}))||xT?function(e){return!!ET(e)&&((!xT||"ArrayBuffer"!=OT(e))&&(!RT||RT(e)))}:RT,CT=xr,AT=v,LT=ii,jT=ee,MT=Ye,DT=$t.f,UT=zi,FT=Wi,NT=IT,zT=ST,VT=!1,BT=nt("meta"),WT=0,qT=function(e){DT(e,BT,{value:{objectID:"O"+WT++,weakData:{}}})},HT=PT.exports={enable:function(){HT.enable=function(){},VT=!0;var e=UT.f,t=AT([].splice),r={};r[BT]=1,e(r).length&&(UT.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===BT){t(n,i,1);break}return n},CT({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:FT.f}))},fastKey:function(e,t){if(!jT(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!MT(e,BT)){if(!NT(e))return"F";if(!t)return"E";qT(e)}return e[BT].objectID},getWeakData:function(e,t){if(!MT(e,BT)){if(!NT(e))return!0;if(!t)return!1;qT(e)}return e[BT].weakData},onFreeze:function(e){return zT&&VT&&NT(e)&&!MT(e,BT)&&qT(e),e}};LT[BT]=!0;var KT=PT.exports,GT=xr,QT=ST,XT=o,JT=ee,$T=KT.onFreeze,YT=Object.freeze;GT({target:"Object",stat:!0,forced:XT((function(){YT(1)})),sham:!QT},{freeze:function(e){return YT&&JT(e)?YT($T(e)):e}});var ZT=r(te.Object.freeze),eE=ea.map;xr({target:"Array",proto:!0,forced:!In("map")},{map:function(e){return eE(this,e,arguments.length>1?arguments[1]:void 0)}});var tE,rE=Bu("Array").map,nE=se,iE=rE,oE=Array.prototype,aE=r((function(e){var t=e.map;return e===oE||nE(oE,e)&&t===oE.map?iE:t})),sE=r(Cm),lE=function(){return lE=xP||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lE.apply(this,arguments)};function cE(e,t){var r="function"==typeof Wk&&qk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function uE(){for(var e=[],t=0;t<arguments.length;t++)e=i_(e).call(e,cE(arguments[t]));return e}var fE,hE,pE,dE,gE,vE=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=pb(r=this._hooks[e]).call(r,t);-1!==i&&uT(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==pb(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&ub(r=uE(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===pb(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),yE=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},mE=(fE=+yb()+Number(Aw(tE=""+Math.random()).call(tE,2,8)),function(){return fE+=1}),_E=function(e){var t=document.createElement("a");return t.href=e,t},wE=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?_E(r).hostname:"";!function(e){var t={};try{var r,n=_E(e).search;ub(r=(n=Aw(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+fT(this.appVersion),i=this.userAgent;return-1!==pb(i).call(i,"Edge")||-1!==pb(i).call(i,"Edg")?(r="Microsoft Edge",-1!==pb(i).call(i,"Edge")?(e=pb(i).call(i,"Edge"),n=i.substring(e+5)):(e=pb(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=pb(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=pb(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=pb(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==pb(i).call(i,"MQQBrowser")||-1!==pb(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==pb(i).call(i,"MQQBrowser")?(e=pb(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==pb(i).call(i,"QQBrowser")&&(e=pb(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==pb(i).call(i,"Chrome")?-1!==(e=pb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=pb(i).call(i,"360"))?(r="360browser",n=i.substring(pb(i).call(i,"Chrome")+7)):-1!==pb(i).call(i,"baidubrowser")||-1!==pb(i).call(i,"BIDUBrowser")?(-1!==pb(i).call(i,"baidubrowser")?(e=pb(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==pb(i).call(i,"BIDUBrowser")&&(e=pb(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=pb(i).call(i,"xiaomi"))?-1!==pb(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=pb(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=pb(i).call(i,"Chrome"))||-1!==(e=pb(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==pb(i).call(i,"Safari")?-1!==(e=pb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=pb(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=pb(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=pb(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=pb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=pb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=pb(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=pb(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=pb(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=pb(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=pb(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?Aw(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)ub(r=navigator.userAgent.split(";")).call(r,(function(e){pb(e).call(e,"Build/")>-1&&(t=Aw(e).call(e,0,pb(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=pb(n).call(n,";");t=Aw(n).call(n,0,i)}}catch(o){return wT(t).call(t)}return wT(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),bE=(hE=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(yb()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return bT({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=Aw(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:ZT(n)},converter:{value:ZT(r)}})}({read:function(e){return'"'===e[0]&&(e=Aw(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},hE(pE={exports:{}}),pE.exports),SE=bE,PE=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),kE={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:GP(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return SE.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;SE.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(gE){return!1}}()},TE={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:GP(t);sessionStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(t){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(gE){return!1}}()},EE=function(){function e(e,t){this._storage=t&&"session"===t?TE:!e&&kE.isSupportLS?kE:new PE}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),OE={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},xE=void 0,RE=(new Date).getTimezoneOffset(),IE=pw(""+-RE/60,10),CE=60*RE,AE=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new wE(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new EE(!1,"session"),this.localStorage=new EE(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:xE,user_type:xE,user_id:xE,user_is_auth:xE,user_is_login:xE,device_id:xE,web_id:xE,user_unique_id_type:xE},header:{app_id:xE,app_name:xE,app_install_id:xE,install_id:xE,app_package:xE,app_channel:xE,app_version:xE,ab_version:xE,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:xE,traffic_type:xE,client_ip:xE,device_brand:xE,os_api:xE,access:xE,language:r.language,region:xE,app_language:xE,app_region:xE,creative_id:xE,ad_id:xE,campaign_id:xE,log_type:xE,rnd:xE,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:xE,city:xE,timezone:IE,tz_offset:CE,tz_name:xE,sim_region:xE,carrier:xE,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:xE,utm_content:xE,utm_source:xE,utm_medium:xE,utm_campaign:xE,custom:{},wechat_unionid:xE,wechat_openid:xE}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=pw(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(OE[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;ub(t=ab(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=lE({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=lE({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?pb(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(GP(this.envInfo[e])):JSON.parse(GP(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(gE=dE||(dE={})).Init="init",gE.Config="config",gE.Start="start",gE.Ready="ready",gE.TokenComplete="token-complete",gE.TokenStorage="token-storage",gE.TokenFetch="token-fetch",gE.TokenError="token-error",gE.ConfigUuid="config-uuid",gE.TokenChange="token-change",gE.TokenReset="token-reset",gE.SessionReset="session-reset",gE.SessionResetTime="session-reset-time",gE.Event="event",gE.Events="events",gE.EventNow="event-now",gE.CleanEvents="clean-events",gE.BeconEvent="becon-event";var LE=dE;function jE(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(GP(t))}catch(f){}}var ME,DE=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new EE(!0),this.localStorage=new EE(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(LE.Ready,(function(){r.reportAll(!1)})),this.collect.on(LE.Event,(function(e){r.event(e)})),this.collect.on(LE.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=uE(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=Cw((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=uE(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=Aw(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=GP(n.custom);var o=this.configManager.get("evtParams"),a=aE(e).call(e,(function(e){try{return ab(o).length&&(e.params=lE({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=GP(e.params),e}catch(gE){return e}})),s=[];if(!ab(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(GP({events:a,user:i,header:n}));return l.local_time=Math.floor(yb()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return aE(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&ub(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,GP(i))||s(n,i):jE(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+GP(l.stack))}var n,i,o,a,s}))},e}(),UE=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},FE=function(){var e;return Aw(e=UE().replace(/-/g,"")).call(e,0,19)},NE=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new EE(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(LE.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=FE();jE(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=yb(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(LE.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===pb(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=yb(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=yb(),this.setStorage(this.cacheToken)),this.collect.emit(LE.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),zE=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},VE=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new EE(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(LE.SessionReset,(function(){r.resetSessionId()})),this.collect.on(LE.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;yb()-t>this.expireTime?e={sessionId:zE(),timestamp:yb()}:e.timestamp=yb(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=yb():t={sessionId:zE(),timestamp:yb()},this.storage.setItem(this.sessionKey,t),this.sessionExp=bk((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=bk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:zE(),timestamp:yb()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&yb()-e.timestamp+30>=this.expireTime&&(e={sessionId:zE(),timestamp:yb()},this.storage.setItem(this.sessionKey,e))},e}(),BE=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new vE,this.Types=LE,this.adapters.fetch=jE,this.adapters.storage=EE}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&yE(e)?e.app_id&&"number"==typeof(r=e.app_id)&&!isNaN(r)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==pb(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new AE(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new DE,this.tokenManager=new NE,this.sessionManager=new VE,k_.all([new k_((function(e){n.once(LE.TokenComplete,(function(){e(!0)}))})),new k_((function(e){n.once(LE.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(LE.Ready),console.info("appid: "+e.app_id+", userInfo:"+GP(n.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),n.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(LE.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&yE(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=lE({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&pb(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof sb){var i=0;for(n=sb(e);i<n.length;i++)pb(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(LE.ConfigUuid,t.user_unique_id),this.configManager.set(r)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(LE.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];sE(e)?ub(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(LE.Event,n),this.emit(LE.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(sE(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(LE.BeconEvent,r),this.emit(LE.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=Aw(e).call(e,6));var n=t;"object"!=bu(n)&&(n={}),n.event_index=mE();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:yb(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=lE({},t,e);this.event("predefine_pageview",r)},e}(),WE=new BE("default"),qE=v,HE=2147483647,KE=/[^\0-\u007E]/,GE=/[.\u3002\uFF0E\uFF61]/g,QE="Overflow: input needs wider integers to process",XE=RangeError,JE=qE(GE.exec),$E=Math.floor,YE=String.fromCharCode,ZE=qE("".charCodeAt),eO=qE([].join),tO=qE([].push),rO=qE("".replace),nO=qE("".split),iO=qE("".toLowerCase),oO=function(e){return e+22+75*(e<26)},aO=function(e,t,r){var n=0;for(e=r?$E(e/700):e>>1,e+=$E(e/t);e>455;)e=$E(e/35),n+=36;return $E(n+36*e/(e+38))},sO=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=ZE(e,r++);if(i>=55296&&i<=56319&&r<n){var o=ZE(e,r++);56320==(64512&o)?tO(t,((1023&i)<<10)+(1023&o)+65536):(tO(t,i),r--)}else tO(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&tO(t,YE(n));var l=t.length,c=l;for(l&&tO(t,"-");c<i;){var u=HE;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>$E((HE-a)/f))throw XE(QE);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>HE)throw XE(QE);if(n==o){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,v=36-d;tO(t,YE(oO(d+g%v))),h=$E(g/v),p+=36}tO(t,YE(oO(h))),s=aO(a,f,c==l),a=0,c++}}a++,o++}return eO(t,"")},lO=xr,cO=R,uO=wb,fO=i,hO=Jt,pO=v,dO=no,gO=oo,vO=Gh,yO=Ye,mO=EP,_O=Xm,wO=Xi,bO=fu.codeAt,SO=function(e){var t,r,n=[],i=nO(rO(iO(e),GE,"."),".");for(t=0;t<i.length;t++)r=i[t],tO(n,JE(KE,r)?"xn--"+sO(r):r);return eO(n,".")},PO=Gn,kO=Io,TO=ip,EO=VS,OO=Ko,xO=OO.set,RO=OO.getterFor("URL"),IO=EO.URLSearchParams,CO=EO.getState,AO=fO.URL,LO=fO.TypeError,jO=fO.parseInt,MO=Math.floor,DO=Math.pow,UO=pO("".charAt),FO=pO(/./.exec),NO=pO([].join),zO=pO(1..toString),VO=pO([].pop),BO=pO([].push),WO=pO("".replace),qO=pO([].shift),HO=pO("".split),KO=pO("".slice),GO=pO("".toLowerCase),QO=pO([].unshift),XO="Invalid scheme",JO="Invalid host",$O="Invalid port",YO=/[a-z]/i,ZO=/[\d+-.a-z]/i,ex=/\d/,tx=/^0x/i,rx=/^[0-7]+$/,nx=/^\d+$/,ix=/^[\da-f]+$/i,ox=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ax=/[\0\t\n\r #/:<>?@[\\\]^|]/,sx=/^[\u0000-\u0020]+/,lx=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,cx=/[\t\n\r]/g,ux=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)QO(t,e%256),e=MO(e/256);return NO(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=zO(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},fx={},hx=mO({},fx,{" ":1,'"':1,"<":1,">":1,"`":1}),px=mO({},hx,{"#":1,"?":1,"{":1,"}":1}),dx=mO({},px,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gx=function(e,t){var r=bO(e,0);return r>32&&r<127&&!yO(t,e)?e:encodeURIComponent(e)},vx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yx=function(e,t){var r;return 2==e.length&&FO(YO,UO(e,0))&&(":"==(r=UO(e,1))||!t&&"|"==r)},mx=function(e){var t;return e.length>1&&yx(KO(e,0,2))&&(2==e.length||"/"===(t=UO(e,2))||"\\"===t||"?"===t||"#"===t)},_x=function(e){return"."===e||"%2e"===GO(e)},wx={},bx={},Sx={},Px={},kx={},Tx={},Ex={},Ox={},xx={},Rx={},Ix={},Cx={},Ax={},Lx={},jx={},Mx={},Dx={},Ux={},Fx={},Nx={},zx={},Vx=function(e,t,r){var n,i,o,a=PO(e);if(t){if(i=this.parse(a))throw LO(i);this.searchParams=null}else{if(void 0!==r&&(n=new Vx(r,!0)),i=this.parse(a,null,n))throw LO(i);(o=CO(new IO)).bindURL(this),this.searchParams=o}};Vx.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||wx,u=0,f="",h=!1,p=!1,d=!1;for(e=PO(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=WO(e,sx,""),e=WO(e,lx,"$1")),e=WO(e,cx,""),n=_O(e);u<=n.length;){switch(i=n[u],c){case wx:if(!i||!FO(YO,i)){if(t)return XO;c=Sx;continue}f+=GO(i),c=bx;break;case bx:if(i&&(FO(ZO,i)||"+"==i||"-"==i||"."==i))f+=GO(i);else{if(":"!=i){if(t)return XO;f="",c=Sx,u=0;continue}if(t&&(l.isSpecial()!=yO(vx,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&vx[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=Lx:l.isSpecial()&&r&&r.scheme==l.scheme?c=Px:l.isSpecial()?c=Ox:"/"==n[u+1]?(c=kx,u++):(l.cannotBeABaseURL=!0,BO(l.path,""),c=Fx)}break;case Sx:if(!r||r.cannotBeABaseURL&&"#"!=i)return XO;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=wO(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=zx;break}c="file"==r.scheme?Lx:Tx;continue;case Px:if("/"!=i||"/"!=n[u+1]){c=Tx;continue}c=xx,u++;break;case kx:if("/"==i){c=Rx;break}c=Ux;continue;case Tx:if(l.scheme=r.scheme,i==ME)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=Ex;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query="",c=Nx;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.path.length--,c=Ux;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=wO(r.path),l.query=r.query,l.fragment="",c=zx}break;case Ex:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=Ux;continue}c=Rx}else c=xx;break;case Ox:if(c=xx,"/"!=i||"/"!=UO(f,u+1))continue;u++;break;case xx:if("/"!=i&&"\\"!=i){c=Rx;continue}break;case Rx:if("@"==i){h&&(f="%40"+f),h=!0,o=_O(f);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||d){var y=gx(v,dx);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(h&&""==f)return"Invalid authority";u-=_O(f).length+1,f="",c=Ix}else f+=i;break;case Ix:case Cx:if(t&&"file"==l.scheme){c=Mx;continue}if(":"!=i||p){if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return JO;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=Dx,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return JO;if(a=l.parseHost(f))return a;if(f="",c=Ax,t==Cx)return}break;case Ax:if(!FO(ex,i)){if(i==ME||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=jO(f,10);if(m>65535)return $O;l.port=l.isSpecial()&&m===vx[l.scheme]?null:m,f=""}if(t)return;c=Dx;continue}return $O}f+=i;break;case Lx:if(l.scheme="file","/"==i||"\\"==i)c=jx;else{if(!r||"file"!=r.scheme){c=Ux;continue}if(i==ME)l.host=r.host,l.path=wO(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=wO(r.path),l.query="",c=Nx;else{if("#"!=i){mx(NO(wO(n,u),""))||(l.host=r.host,l.path=wO(r.path),l.shortenPath()),c=Ux;continue}l.host=r.host,l.path=wO(r.path),l.query=r.query,l.fragment="",c=zx}}break;case jx:if("/"==i||"\\"==i){c=Mx;break}r&&"file"==r.scheme&&!mx(NO(wO(n,u),""))&&(yx(r.path[0],!0)?BO(l.path,r.path[0]):l.host=r.host),c=Ux;continue;case Mx:if(i==ME||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&yx(f))c=Ux;else if(""==f){if(l.host="",t)return;c=Dx}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=Dx}continue}f+=i;break;case Dx:if(l.isSpecial()){if(c=Ux,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=ME&&(c=Ux,"/"!=i))continue}else l.fragment="",c=zx;else l.query="",c=Nx;break;case Ux:if(i==ME||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=GO(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||BO(l.path,"")):_x(f)?"/"==i||"\\"==i&&l.isSpecial()||BO(l.path,""):("file"==l.scheme&&!l.path.length&&yx(f)&&(l.host&&(l.host=""),f=UO(f,0)+":"),BO(l.path,f)),f="","file"==l.scheme&&(i==ME||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)qO(l.path);"?"==i?(l.query="",c=Nx):"#"==i&&(l.fragment="",c=zx)}else f+=gx(i,px);break;case Fx:"?"==i?(l.query="",c=Nx):"#"==i?(l.fragment="",c=zx):i!=ME&&(l.path[0]+=gx(i,fx));break;case Nx:t||"#"!=i?i!=ME&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":gx(i,fx)):(l.fragment="",c=zx);break;case zx:i!=ME&&(l.fragment+=gx(i,hx))}u++}},parseHost:function(e){var t,r,n;if("["==UO(e,0)){if("]"!=UO(e,e.length-1))return JO;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,h=function(){return UO(e,f)};if(":"==h()){if(":"!=UO(e,1))return;f+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&FO(ix,h());)t=16*t+jO(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!FO(ex,h()))return;for(;FO(ex,h());){if(o=jO(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}(KO(e,1,-1)),!t)return JO;this.host=t}else if(this.isSpecial()){if(e=SO(e),FO(ox,e))return JO;if(t=function(e){var t,r,n,i,o,a,s,l=HO(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(o=10,i.length>1&&"0"==UO(i,0)&&(o=FO(tx,i)?16:8,i=KO(i,8==o?1:2)),""===i)a=0;else{if(!FO(10==o?nx:8==o?rx:ix,i))return e;a=jO(i,o)}BO(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=DO(256,5-t))return null}else if(a>255)return null;for(s=VO(r),n=0;n<r.length;n++)s+=r[n]*DO(256,3-n);return s}(e),null===t)return JO;this.host=t}else{if(FO(ax,e))return JO;for(t="",r=_O(e),n=0;n<r.length;n++)t+=gx(r[n],fx);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return yO(vx,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&yx(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ux(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+NO(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw LO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Bx(e.path[0]).origin}catch(XR){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ux(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(PO(e)+":",wx)},getUsername:function(){return this.username},setUsername:function(e){var t=_O(PO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=gx(t[r],dx)}},getPassword:function(){return this.password},setPassword:function(e){var t=_O(PO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=gx(t[r],dx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ux(e):ux(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ix)},getHostname:function(){var e=this.host;return null===e?"":ux(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Cx)},getPort:function(){var e=this.port;return null===e?"":PO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=PO(e))?this.port=null:this.parse(e,Ax))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+NO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Dx))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=PO(e))?this.query=null:("?"==UO(e,0)&&(e=KO(e,1)),this.query="",this.parse(e,Nx)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=PO(e))?("#"==UO(e,0)&&(e=KO(e,1)),this.fragment="",this.parse(e,zx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Bx=function(e){var t=vO(this,Wx),r=TO(arguments.length,1)>1?arguments[1]:void 0,n=xO(t,new Vx(e,!1,r));cO||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Wx=Bx.prototype,qx=function(e,t){return{get:function(){return RO(this)[e]()},set:t&&function(e){return RO(this)[t](e)},configurable:!0,enumerable:!0}};if(cO&&(gO(Wx,"href",qx("serialize","setHref")),gO(Wx,"origin",qx("getOrigin")),gO(Wx,"protocol",qx("getProtocol","setProtocol")),gO(Wx,"username",qx("getUsername","setUsername")),gO(Wx,"password",qx("getPassword","setPassword")),gO(Wx,"host",qx("getHost","setHost")),gO(Wx,"hostname",qx("getHostname","setHostname")),gO(Wx,"port",qx("getPort","setPort")),gO(Wx,"pathname",qx("getPathname","setPathname")),gO(Wx,"search",qx("getSearch","setSearch")),gO(Wx,"searchParams",qx("getSearchParams")),gO(Wx,"hash",qx("getHash","setHash"))),dO(Wx,"toJSON",(function(){return RO(this).serialize()}),{enumerable:!0}),dO(Wx,"toString",(function(){return RO(this).serialize()}),{enumerable:!0}),AO){var Hx=AO.createObjectURL,Kx=AO.revokeObjectURL;Hx&&dO(Bx,"createObjectURL",hO(Hx,AO)),Kx&&dO(Bx,"revokeObjectURL",hO(Kx,AO))}kO(Bx,"URL"),lO({global:!0,constructor:!0,forced:!uO,sham:!cO},{URL:Bx});var Gx=xr,Qx=o,Xx=ip,Jx=Gn,$x=wb,Yx=ae("URL");Gx({target:"URL",stat:!0,forced:!($x&&Qx((function(){Yx.canParse()})))},{canParse:function(e){var t=Xx(arguments.length,1),r=Jx(e),n=t<2||void 0===arguments[1]?void 0:Jx(arguments[1]);try{return!!new Yx(r,n)}catch(XR){return!1}}});var Zx,eR=r(te.URL),tR=new Uint8Array(16);function rR(){var e;if(!Zx&&!(Zx="undefined"!=typeof crypto&&crypto.getRandomValues&&q_(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zx(tR)}for(var nR,iR=[],oR=0;oR<256;++oR){var aR;iR.push(Aw(aR=(oR+256).toString(16)).call(aR,1))}var sR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&q_(nR=crypto.randomUUID).call(nR,crypto)};function lR(e,t,r){if(sR.randomUUID&&!t&&!e)return sR.randomUUID();var n=(e=e||{}).random||(e.rng||rR)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return iR[e[t+0]]+iR[e[t+1]]+iR[e[t+2]]+iR[e[t+3]]+"-"+iR[e[t+4]]+iR[e[t+5]]+"-"+iR[e[t+6]]+iR[e[t+7]]+"-"+iR[e[t+8]]+iR[e[t+9]]+"-"+iR[e[t+10]]+iR[e[t+11]]+iR[e[t+12]]+iR[e[t+13]]+iR[e[t+14]]+iR[e[t+15]]}(n)}var cR="veplayer_live_device_id",uR="veplayer_live_user_id",fR=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},hR=function(e){if(!e)return"";var t,r=fP(e).call(e,"//");r&&(e=location.protocol+e);try{var n,i,o=new eR(e);if(null==o||null===(n=o.searchParams)||void 0===n||!n.get("_session_id"))null==o||null===(i=o.searchParams)||void 0===i||i.append("_session_id",pR());e=o.toString()}catch(XR){}return r?null===(t=e)||void 0===t?void 0:t.replace(location.protocol,""):e},pR=function(){return lR().replace(/-/g,"")+"."+yb()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(lR().replace(/-/g,""))},dR=window.VePlayer.Plugin,gR=function(e){hm(r,e);var t=Im(r);function r(){var e,n;qy(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ny(Rm(n=t.call.apply(t,i_(e=[this]).call(e,o))),"_userId",void 0),Ny(Rm(n),"_deviceId",void 0),Ny(Rm(n),"_liveLogger",void 0),n}return Ky(r,[{key:"afterCreate",value:function(){var e,t,r,n;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||((r=localStorage.getItem(uR))||(r=fR(12),localStorage.setItem(uR,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(cR))||(n=fR(11),localStorage.setItem(cR,n),n)),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==WE?void 0:WE.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){WE.init({app_id:468759,channel:"cn",channel_domain:"//mcs.volceapplog.com"}),WE.start(),WE.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new Vk({Tea:WE,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.1.0-rc.0",flv_version:"3.0.10-alpha.4",hls_version:"3.0.10-alpha.4",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(dR);function vR(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var yR,mR=window.VePlayer.util,_R=window.VePlayer.Plugin,wR=window.VePlayer.XGUtil,bR=function(e){hm(r,e);var t=Im(r);function r(){var e,n;qy(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ny(Rm(n=t.call.apply(t,i_(e=[this]).call(e,o))),"_pollTimer",void 0),Ny(Rm(n),"_visible",void 0),Ny(Rm(n),"_playPlugin",void 0),n}return Ky(r,[{key:"_streamType",get:function(){return mR.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Yw.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Yw.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(WP(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Yw.LOADED_DATA,(function(){return e.open()})),this.player.off(Yw.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=Cw((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=Vy(Vy({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:vR(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:vR(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:vR(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:i_(r="".concat(vR(e.height)," * ")).call(r,vR(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:vR(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:vR(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:vR(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:vR(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",ub(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}ub(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=wR.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=wR.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=wR.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=wR.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=wR.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(_R),SR=Vy(Vy({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),PR=Vy(Vy({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),kR=window.VePlayer.DEFAULT_PLUGINS,TR=window.VePlayer.VePlayerBase,ER=window.VePlayer.VeI18n;ER.extend([{LANG:"zh-cn",TEXT:PR},{LANG:"en",TEXT:SR}]);var OR={autoplay:{muted:!0}},xR=i_(yR=[]).call(yR,Zm(kR),[ib,gR,bR]),RR=function(e){return e.H264="h264",e}(RR||{}),IR=function(e){hm(r,e);var t=Im(r);function r(e){return qy(this,r),t.call(this,e)}return Ky(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}(TR);function CR(e){return AR.apply(this,arguments)}function AR(){return(AR=Wy(Zv().mark((function e(t){var r,n,i,o,a,s,l;return Zv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw u_(l_.INVALID_PARAMETER,new ER);case 3:return o=new ER({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=Vy(Vy({},t),{},{plugins:i_(r=[]).call(r,Zm(xR),Zm(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,TR.create(Vy(Vy(Vy({},OR),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:hR(e)}},preparePlugins:function(e){return Wy(Zv().mark((function t(){return Zv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",W_(Vy(Vy({},a),{},{url:e}),i));case 1:case"end":return t.stop()}}),t)})))()}}),IR);case 7:return(i=e.sent)&&(l=null===(s=i)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&i.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var LR=Object.freeze({__proto__:null,ErrorCode:l_,Events:Yw}),jR=window.VePlayer.setModuleSystem,MR=window.VePlayer.Codec,DR=window.VePlayer.DecodeType,UR=window.VePlayer.Degradation,FR=window.VePlayer.POSITIONS,NR=window.VePlayer.register,zR=window.VePlayer.EN,VR=window.VePlayer.ZH_CN,BR=window.VePlayer.Plugin,WR=window.VePlayer.Sniffer,qR=window.VePlayer.DynamicModule,HR=window.VePlayer.util,KR=window.VePlayer.load;jR("umd");var GR=HR.isMseSupported,QR=HR.isSoftDecodeSupported;void 0!==VePlayer.register?VePlayer.register(qR.BizLive,{createLivePlayer:CR}):NR(qR.BizLive,{createLivePlayer:CR}),e.Codec=MR,e.DecodeType=DR,e.Degradation=UR,e.DynamicModule=qR,e.EN=zR,e.POSITIONS=FR,e.Plugin=BR,e.RTMCodec=RR,e.Sniffer=WR,e.ZH_CN=VR,e.createLivePlayer=CR,e.isMseSupported=GR,e.isRTMSupportCodec=R_,e.isRTMSupported=O_,e.isSoftDecodeSupported=QR,e.live=LR,e.load=KR,e.register=NR,e.util=HR}));