UNPKG

jiker-tcplayer

Version:

tcplayer in Jiker

1 lines 187 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TXLivePlayer=t()}(this,(function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}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){try{return!!e()}catch(e){return!0}},i=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),o=i,s=Function.prototype,a=s.bind,c=s.call,u=o&&a.bind(c,c),l=o?function(e){return e&&u(e)}:function(e){return e&&function(){return c.apply(e,arguments)}},d=l({}.isPrototypeOf),p=function(e){return e&&e.Math==Math&&e},f=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=i,v=Function.prototype,m=v.apply,y=v.call,g="object"==typeof Reflect&&Reflect.apply||(h?y.bind(m):function(){return y.apply(m,arguments)}),b=function(e){return"function"==typeof e},S={},T=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=i,C=Function.prototype.call,w=_?C.bind(C):function(){return C.apply(C,arguments)},E={},R={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,A=P&&!R.call({1:2},1);E.f=A?function(e){var t=P(this,e);return!!t&&t.enumerable}:R;var M,k,O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D=l,I=D({}.toString),x=D("".slice),L=function(e){return x(I(e),8,-1)},N=n,F=L,j=Object,B=l("".split),V=N((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?B(e,""):j(e)}:j,U=TypeError,z=function(e){if(null==e)throw U("Can't call method on "+e);return e},G=V,W=z,Y=function(e){return G(W(e))},q=b,H=function(e){return"object"==typeof e?null!==e:q(e)},J={},Q=J,K=f,Z=b,X=function(e){return Z(e)?e:void 0},$=function(e,t){return arguments.length<2?X(Q[e])||X(K[e]):Q[e]&&Q[e][t]||K[e]&&K[e][t]},ee=$("navigator","userAgent")||"",te=f,re=ee,ne=te.process,ie=te.Deno,oe=ne&&ne.versions||ie&&ie.version,se=oe&&oe.v8;se&&(k=(M=se.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!k&&re&&(!(M=re.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=re.match(/Chrome\/(\d+)/))&&(k=+M[1]);var ae=k,ce=ae,ue=n,le=!!Object.getOwnPropertySymbols&&!ue((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ce&&ce<41})),de=le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=$,fe=b,he=d,ve=Object,me=de?function(e){return"symbol"==typeof e}:function(e){var t=pe("Symbol");return fe(t)&&he(t.prototype,ve(e))},ye=String,ge=function(e){try{return ye(e)}catch(e){return"Object"}},be=b,Se=ge,Te=TypeError,_e=function(e){if(be(e))return e;throw Te(Se(e)+" is not a function")},Ce=_e,we=function(e,t){var r=e[t];return null==r?void 0:Ce(r)},Ee=w,Re=b,Pe=H,Ae=TypeError,Me={exports:{}},ke=f,Oe=Object.defineProperty,De=function(e,t){try{Oe(ke,e,{value:t,configurable:!0,writable:!0})}catch(r){ke[e]=t}return t},Ie="__core-js_shared__",xe=f[Ie]||De(Ie,{}),Le=xe;(Me.exports=function(e,t){return Le[e]||(Le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"pure",copyright:"婕� 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Ne=z,Fe=Object,je=function(e){return Fe(Ne(e))},Be=je,Ve=l({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return Ve(Be(e),t)},ze=l,Ge=0,We=Math.random(),Ye=ze(1..toString),qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ye(++Ge+We,36)},He=f,Je=Me.exports,Qe=Ue,Ke=qe,Ze=le,Xe=de,$e=Je("wks"),et=He.Symbol,tt=et&&et.for,rt=Xe?et:et&&et.withoutSetter||Ke,nt=function(e){if(!Qe($e,e)||!Ze&&"string"!=typeof $e[e]){var t="Symbol."+e;Ze&&Qe(et,e)?$e[e]=et[e]:$e[e]=Xe&&tt?tt(t):rt(t)}return $e[e]},it=w,ot=H,st=me,at=we,ct=function(e,t){var r,n;if("string"===t&&Re(r=e.toString)&&!Pe(n=Ee(r,e)))return n;if(Re(r=e.valueOf)&&!Pe(n=Ee(r,e)))return n;if("string"!==t&&Re(r=e.toString)&&!Pe(n=Ee(r,e)))return n;throw Ae("Can't convert object to primitive value")},ut=TypeError,lt=nt("toPrimitive"),dt=function(e,t){if(!ot(e)||st(e))return e;var r,n=at(e,lt);if(n){if(void 0===t&&(t="default"),r=it(n,e,t),!ot(r)||st(r))return r;throw ut("Can't convert object to primitive value")}return void 0===t&&(t="number"),ct(e,t)},pt=me,ft=function(e){var t=dt(e,"string");return pt(t)?t:t+""},ht=H,vt=f.document,mt=ht(vt)&&ht(vt.createElement),yt=function(e){return mt?vt.createElement(e):{}},gt=yt,bt=!T&&!n((function(){return 7!=Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a})),St=T,Tt=w,_t=E,Ct=O,wt=Y,Et=ft,Rt=Ue,Pt=bt,At=Object.getOwnPropertyDescriptor;S.f=St?At:function(e,t){if(e=wt(e),t=Et(t),Pt)try{return At(e,t)}catch(e){}if(Rt(e,t))return Ct(!Tt(_t.f,e,t),e[t])};var Mt=n,kt=b,Ot=/#|\.prototype\./,Dt=function(e,t){var r=xt[It(e)];return r==Nt||r!=Lt&&(kt(t)?Mt(t):!!t)},It=Dt.normalize=function(e){return String(e).replace(Ot,".").toLowerCase()},xt=Dt.data={},Lt=Dt.NATIVE="N",Nt=Dt.POLYFILL="P",Ft=Dt,jt=_e,Bt=i,Vt=l(l.bind),Ut=function(e,t){return jt(e),void 0===t?e:Bt?Vt(e,t):function(){return e.apply(t,arguments)}},zt={},Gt=T&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Wt=H,Yt=String,qt=TypeError,Ht=function(e){if(Wt(e))return e;throw qt(Yt(e)+" is not an object")},Jt=T,Qt=bt,Kt=Gt,Zt=Ht,Xt=ft,$t=TypeError,er=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,rr="enumerable",nr="configurable",ir="writable";zt.f=Jt?Kt?function(e,t,r){if(Zt(e),t=Xt(t),Zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ir in r&&!r.writable){var n=tr(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:nr in r?r.configurable:n.configurable,enumerable:rr in r?r.enumerable:n.enumerable,writable:!1})}return er(e,t,r)}:er:function(e,t,r){if(Zt(e),t=Xt(t),Zt(r),Qt)try{return er(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $t("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var or=zt,sr=O,ar=T?function(e,t,r){return or.f(e,t,sr(1,r))}:function(e,t,r){return e[t]=r,e},cr=f,ur=g,lr=l,dr=b,pr=S.f,fr=Ft,hr=J,vr=Ut,mr=ar,yr=Ue,gr=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 ur(e,this,arguments)};return t.prototype=e.prototype,t},br=function(e,t){var r,n,i,o,s,a,c,u,l=e.target,d=e.global,p=e.stat,f=e.proto,h=d?cr:p?cr[l]:(cr[l]||{}).prototype,v=d?hr:hr[l]||mr(hr,l,{})[l],m=v.prototype;for(i in t)r=!fr(d?i:l+(p?".":"#")+i,e.forced)&&h&&yr(h,i),s=v[i],r&&(a=e.dontCallGetSet?(u=pr(h,i))&&u.value:h[i]),o=r&&a?a:t[i],r&&typeof s==typeof o||(c=e.bind&&r?vr(o,cr):e.wrap&&r?gr(o):f&&dr(o)?lr(o):o,(e.sham||o&&o.sham||s&&s.sham)&&mr(c,"sham",!0),mr(v,i,c),f&&(yr(hr,n=l+"Prototype")||mr(hr,n,{}),mr(hr[n],i,o),e.real&&m&&!m[i]&&mr(m,i,o)))},Sr=l([].slice),Tr=l,_r=_e,Cr=H,wr=Ue,Er=Sr,Rr=i,Pr=Function,Ar=Tr([].concat),Mr=Tr([].join),kr={},Or=function(e,t,r){if(!wr(kr,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";kr[t]=Pr("C,a","return new C("+Mr(n,",")+")")}return kr[t](e,r)},Dr=Rr?Pr.bind:function(e){var t=_r(this),r=t.prototype,n=Er(arguments,1),i=function(){var r=Ar(n,Er(arguments));return this instanceof i?Or(t,r.length,r):t.apply(e,r)};return Cr(r)&&(i.prototype=r),i},Ir=Dr;br({target:"Function",proto:!0,forced:Function.bind!==Ir},{bind:Ir});var xr=J,Lr=function(e){return xr[e+"Prototype"]},Nr=Lr("Function").bind,Fr=d,jr=Nr,Br=Function.prototype,Vr=function(e){var t=e.bind;return e===Br||Fr(Br,e)&&t===Br.bind?jr:t},Ur=Math.ceil,zr=Math.floor,Gr=Math.trunc||function(e){var t=+e;return(t>0?zr:Ur)(t)},Wr=function(e){var t=+e;return t!=t||0===t?0:Gr(t)},Yr=Wr,qr=Math.max,Hr=Math.min,Jr=function(e,t){var r=Yr(e);return r<0?qr(r+t,0):Hr(r,t)},Qr=Wr,Kr=Math.min,Zr=function(e){return e>0?Kr(Qr(e),9007199254740991):0},Xr=Zr,$r=function(e){return Xr(e.length)},en=Y,tn=Jr,rn=$r,nn=function(e){return function(t,r,n){var i,o=en(t),s=rn(o),a=tn(n,s);if(e&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},on={includes:nn(!0),indexOf:nn(!1)},sn=on.includes;br({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return sn(this,e,arguments.length>1?arguments[1]:void 0)}});var an=Lr("Array").includes,cn=H,un=L,ln=nt("match"),dn=function(e){var t;return cn(e)&&(void 0!==(t=e[ln])?!!t:"RegExp"==un(e))},pn=TypeError,fn=function(e){if(dn(e))throw pn("The method doesn't accept regular expressions");return e},hn={};hn[nt("toStringTag")]="z";var vn="[object z]"===String(hn),mn=vn,yn=b,gn=L,bn=nt("toStringTag"),Sn=Object,Tn="Arguments"==gn(function(){return arguments}()),_n=mn?gn: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(e){}}(t=Sn(e),bn))?r:Tn?gn(t):"Object"==(n=gn(t))&&yn(t.callee)?"Arguments":n},Cn=_n,wn=String,En=function(e){if("Symbol"===Cn(e))throw TypeError("Cannot convert a Symbol value to a string");return wn(e)},Rn=nt("match"),Pn=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Rn]=!1,"/./"[e](t)}catch(e){}}return!1},An=br,Mn=fn,kn=z,On=En,Dn=Pn,In=l("".indexOf);An({target:"String",proto:!0,forced:!Dn("includes")},{includes:function(e){return!!~In(On(kn(this)),On(Mn(e)),arguments.length>1?arguments[1]:void 0)}});var xn=Lr("String").includes,Ln=d,Nn=an,Fn=xn,jn=Array.prototype,Bn=String.prototype,Vn=function(e){var t=e.includes;return e===jn||Ln(jn,e)&&t===jn.includes?Nn:"string"==typeof e||e===Bn||Ln(Bn,e)&&t===Bn.includes?Fn:t},Un={},zn=b,Gn=xe,Wn=l(Function.toString);zn(Gn.inspectSource)||(Gn.inspectSource=function(e){return Wn(e)});var Yn,qn,Hn,Jn=Gn.inspectSource,Qn=b,Kn=Jn,Zn=f.WeakMap,Xn=Qn(Zn)&&/native code/.test(Kn(Zn)),$n=Me.exports,ei=qe,ti=$n("keys"),ri=function(e){return ti[e]||(ti[e]=ei(e))},ni={},ii=Xn,oi=f,si=l,ai=H,ci=ar,ui=Ue,li=xe,di=ri,pi=ni,fi="Object already initialized",hi=oi.TypeError,vi=oi.WeakMap;if(ii||li.state){var mi=li.state||(li.state=new vi),yi=si(mi.get),gi=si(mi.has),bi=si(mi.set);Yn=function(e,t){if(gi(mi,e))throw new hi(fi);return t.facade=e,bi(mi,e,t),t},qn=function(e){return yi(mi,e)||{}},Hn=function(e){return gi(mi,e)}}else{var Si=di("state");pi[Si]=!0,Yn=function(e,t){if(ui(e,Si))throw new hi(fi);return t.facade=e,ci(e,Si,t),t},qn=function(e){return ui(e,Si)?e[Si]:{}},Hn=function(e){return ui(e,Si)}}var Ti={set:Yn,get:qn,has:Hn,enforce:function(e){return Hn(e)?qn(e):Yn(e,{})},getterFor:function(e){return function(t){var r;if(!ai(t)||(r=qn(t)).type!==e)throw hi("Incompatible receiver, "+e+" required");return r}}},_i=T,Ci=Ue,wi=Function.prototype,Ei=_i&&Object.getOwnPropertyDescriptor,Ri=Ci(wi,"name"),Pi={EXISTS:Ri,PROPER:Ri&&"something"===function(){}.name,CONFIGURABLE:Ri&&(!_i||_i&&Ei(wi,"name").configurable)},Ai={},Mi=Ue,ki=Y,Oi=on.indexOf,Di=ni,Ii=l([].push),xi=function(e,t){var r,n=ki(e),i=0,o=[];for(r in n)!Mi(Di,r)&&Mi(n,r)&&Ii(o,r);for(;t.length>i;)Mi(n,r=t[i++])&&(~Oi(o,r)||Ii(o,r));return o},Li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ni=xi,Fi=Li,ji=Object.keys||function(e){return Ni(e,Fi)},Bi=T,Vi=Gt,Ui=zt,zi=Ht,Gi=Y,Wi=ji;Ai.f=Bi&&!Vi?Object.defineProperties:function(e,t){zi(e);for(var r,n=Gi(t),i=Wi(t),o=i.length,s=0;o>s;)Ui.f(e,r=i[s++],n[r]);return e};var Yi,qi=$("document","documentElement"),Hi=Ht,Ji=Ai,Qi=Li,Ki=ni,Zi=qi,Xi=yt,$i=ri("IE_PROTO"),eo=function(){},to=function(e){return"<script>"+e+"</"+"script>"},ro=function(e){e.write(to("")),e.close();var t=e.parentWindow.Object;return e=null,t},no=function(){try{Yi=new ActiveXObject("htmlfile")}catch(e){}var e,t;no="undefined"!=typeof document?document.domain&&Yi?ro(Yi):((t=Xi("iframe")).style.display="none",Zi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(to("document.F=Object")),e.close(),e.F):ro(Yi);for(var r=Qi.length;r--;)delete no.prototype[Qi[r]];return no()};Ki[$i]=!0;var io,oo,so,ao=Object.create||function(e,t){var r;return null!==e?(eo.prototype=Hi(e),r=new eo,eo.prototype=null,r[$i]=e):r=no(),void 0===t?r:Ji.f(r,t)},co=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),uo=Ue,lo=b,po=je,fo=co,ho=ri("IE_PROTO"),vo=Object,mo=vo.prototype,yo=fo?vo.getPrototypeOf:function(e){var t=po(e);if(uo(t,ho))return t[ho];var r=t.constructor;return lo(r)&&t instanceof r?r.prototype:t instanceof vo?mo:null},go=ar,bo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:go(e,t,r),e},So=n,To=b,_o=ao,Co=yo,wo=bo,Eo=nt("iterator"),Ro=!1;[].keys&&("next"in(so=[].keys())?(oo=Co(Co(so)))!==Object.prototype&&(io=oo):Ro=!0);var Po=null==io||So((function(){var e={};return io[Eo].call(e)!==e}));To((io=Po?{}:_o(io))[Eo])||wo(io,Eo,(function(){return this}));var Ao={IteratorPrototype:io,BUGGY_SAFARI_ITERATORS:Ro},Mo=_n,ko=vn?{}.toString:function(){return"[object "+Mo(this)+"]"},Oo=vn,Do=zt.f,Io=ar,xo=Ue,Lo=ko,No=nt("toStringTag"),Fo=function(e,t,r,n){if(e){var i=r?e:e.prototype;xo(i,No)||Do(i,No,{configurable:!0,value:t}),n&&!Oo&&Io(i,"toString",Lo)}},jo=Ao.IteratorPrototype,Bo=ao,Vo=O,Uo=Fo,zo=Un,Go=function(){return this},Wo=b,Yo=String,qo=TypeError,Ho=l,Jo=Ht,Qo=function(e){if("object"==typeof e||Wo(e))return e;throw qo("Can't set "+Yo(e)+" as a prototype")},Ko=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ho(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Jo(r),Qo(n),t?e(r,n):r.__proto__=n,r}}():void 0),Zo=br,Xo=w,$o=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Bo(jo,{next:Vo(+!n,r)}),Uo(e,i,!1,!0),zo[i]=Go,e},es=yo,ts=Fo,rs=bo,ns=Un,is=Pi.PROPER,os=Ao.BUGGY_SAFARI_ITERATORS,ss=nt("iterator"),as="keys",cs="values",us="entries",ls=function(){return this},ds=function(e,t,r,n,i,o,s){$o(r,t,n);var a,c,u,l=function(e){if(e===i&&v)return v;if(!os&&e in f)return f[e];switch(e){case as:case cs:case us:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[ss]||f["@@iterator"]||i&&f[i],v=!os&&h||l(i),m="Array"==t&&f.entries||h;if(m&&(a=es(m.call(new e)))!==Object.prototype&&a.next&&(ts(a,d,!0,!0),ns[d]=ls),is&&i==cs&&h&&h.name!==cs&&(p=!0,v=function(){return Xo(h,this)}),i)if(c={values:l(cs),keys:o?v:l(as),entries:l(us)},s)for(u in c)(os||p||!(u in f))&&rs(f,u,c[u]);else Zo({target:t,proto:!0,forced:os||p},c);return s&&f[ss]!==v&&rs(f,ss,v,{name:i}),ns[t]=v,c},ps=Y,fs=Un,hs=Ti;zt.f;var vs=ds,ms="Array Iterator",ys=hs.set,gs=hs.getterFor(ms);vs(Array,"Array",(function(e,t){ys(this,{type:ms,target:ps(e),index:0,kind:t})}),(function(){var e=gs(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),fs.Arguments=fs.Array;var bs={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},Ss=f,Ts=_n,_s=ar,Cs=Un,ws=nt("toStringTag");for(var Es in bs){var Rs=Ss[Es],Ps=Rs&&Rs.prototype;Ps&&Ts(Ps)!==ws&&_s(Ps,ws,Es),Cs[Es]=Cs.Array}var As=L,Ms=Array.isArray||function(e){return"Array"==As(e)},ks=l,Os=n,Ds=b,Is=_n,xs=Jn,Ls=function(){},Ns=[],Fs=$("Reflect","construct"),js=/^\s*(?:class|function)\b/,Bs=ks(js.exec),Vs=!js.exec(Ls),Us=function(e){if(!Ds(e))return!1;try{return Fs(Ls,Ns,e),!0}catch(e){return!1}},zs=function(e){if(!Ds(e))return!1;switch(Is(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vs||!!Bs(js,xs(e))}catch(e){return!0}};zs.sham=!0;var Gs=!Fs||Os((function(){var e;return Us(Us.call)||!Us(Object)||!Us((function(){e=!0}))||e}))?zs:Us,Ws=Ms,Ys=Gs,qs=H,Hs=nt("species"),Js=Array,Qs=function(e){var t;return Ws(e)&&(t=e.constructor,(Ys(t)&&(t===Js||Ws(t.prototype))||qs(t)&&null===(t=t[Hs]))&&(t=void 0)),void 0===t?Js:t},Ks=Ut,Zs=V,Xs=je,$s=$r,ea=function(e,t){return new(Qs(e))(0===t?0:t)},ta=l([].push),ra=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,s=7==e,a=5==e||o;return function(c,u,l,d){for(var p,f,h=Xs(c),v=Zs(h),m=Ks(u,l),y=$s(v),g=0,b=d||ea,S=t?b(c,y):r||s?b(c,0):void 0;y>g;g++)if((a||g in v)&&(f=m(p=v[g],g,h),e))if(t)S[g]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:ta(S,p)}else switch(e){case 4:return!1;case 7:ta(S,p)}return o?-1:n||i?i:S}},na={forEach:ra(0),map:ra(1),filter:ra(2),some:ra(3),every:ra(4),find:ra(5),findIndex:ra(6),filterReject:ra(7)},ia=n,oa=function(e,t){var r=[][e];return!!r&&ia((function(){r.call(null,t||function(){return 1},1)}))},sa=na.forEach,aa=oa("forEach")?[].forEach:function(e){return sa(this,e,arguments.length>1?arguments[1]:void 0)};br({target:"Array",proto:!0,forced:[].forEach!=aa},{forEach:aa});var ca=Lr("Array").forEach,ua=_n,la=Ue,da=d,pa=ca,fa=Array.prototype,ha={DOMTokenList:!0,NodeList:!0},va=function(e){var t=e.forEach;return e===fa||da(fa,e)&&t===fa.forEach||la(ha,ua(e))?pa:t},ma=TypeError,ya=function(e,t){if(e<t)throw ma("Not enough arguments");return e},ga=f,ba=g,Sa=b,Ta=Sr,_a=ya,Ca=/MSIE .\./.test(ee),wa=ga.Function,Ea=function(e){return Ca?function(t,r){var n=_a(arguments.length,1)>2,i=Sa(t)?t:wa(t),o=n?Ta(arguments,2):void 0;return e(n?function(){ba(i,this,o)}:i,r)}:e},Ra={setTimeout:Ea(ga.setTimeout),setInterval:Ea(ga.setInterval)},Pa=Ra.setInterval;br({global:!0,bind:!0,forced:f.setInterval!==Pa},{setInterval:Pa});var Aa=Ra.setTimeout;br({global:!0,bind:!0,forced:f.setTimeout!==Aa},{setTimeout:Aa});var Ma=J.setTimeout,ka=br,Oa=l,Da=Zr,Ia=En,xa=fn,La=z,Na=Pn,Fa=Oa("".startsWith),ja=Oa("".slice),Ba=Math.min;ka({target:"String",proto:!0,forced:!Na("startsWith")},{startsWith:function(e){var t=Ia(La(this));xa(e);var r=Da(Ba(arguments.length>1?arguments[1]:void 0,t.length)),n=Ia(e);return Fa?Fa(t,n,r):ja(t,r,r+n.length)===n}});var Va=Lr("String").startsWith,Ua=d,za=Va,Ga=String.prototype,Wa=function(e){var t=e.startsWith;return"string"==typeof e||e===Ga||Ua(Ga,e)&&t===Ga.startsWith?za:t},Ya=J.setInterval,qa=n,Ha=ae,Ja=nt("species"),Qa=function(e){return Ha>=51||!qa((function(){var t=[];return(t.constructor={})[Ja]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ka=na.filter;br({target:"Array",proto:!0,forced:!Qa("filter")},{filter:function(e){return Ka(this,e,arguments.length>1?arguments[1]:void 0)}});var Za=Lr("Array").filter,Xa=d,$a=Za,ec=Array.prototype,tc=function(e){var t=e.filter;return e===ec||Xa(ec,e)&&t===ec.filter?$a:t},rc=function(){return rc=Object.assign||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},rc.apply(this,arguments)};function nc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function ic(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function oc(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function sc(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ac(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function cc(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var uc="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==uc&&uc,lc="URLSearchParams"in uc,dc="Symbol"in uc&&"iterator"in Symbol,pc="FileReader"in uc&&"Blob"in uc&&function(){try{return new Blob,!0}catch(e){return!1}}(),fc="FormData"in uc,hc="ArrayBuffer"in uc;if(hc)var vc=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mc=ArrayBuffer.isView||function(e){return e&&vc.indexOf(Object.prototype.toString.call(e))>-1};function yc(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function gc(e){return"string"!=typeof e&&(e=String(e)),e}function bc(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return dc&&(t[Symbol.iterator]=function(){return t}),t}function Sc(e){this.map={},e instanceof Sc?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Tc(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function _c(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Cc(e){var t=new FileReader,r=_c(t);return t.readAsArrayBuffer(e),r}function wc(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ec(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:pc&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fc&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:lc&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():hc&&pc&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=wc(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):hc&&(ArrayBuffer.prototype.isPrototypeOf(e)||mc(e))?this._bodyArrayBuffer=wc(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):lc&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pc&&(this.blob=function(){var e=Tc(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Tc(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Cc)}),this.text=function(){var e=Tc(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=_c(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fc&&(this.formData=function(){return this.text().then(Ac)}),this.json=function(){return this.text().then(JSON.parse)},this}Sc.prototype.append=function(e,t){e=yc(e),t=gc(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Sc.prototype.delete=function(e){delete this.map[yc(e)]},Sc.prototype.get=function(e){return e=yc(e),this.has(e)?this.map[e]:null},Sc.prototype.has=function(e){return this.map.hasOwnProperty(yc(e))},Sc.prototype.set=function(e,t){this.map[yc(e)]=gc(t)},Sc.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Sc.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),bc(e)},Sc.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),bc(e)},Sc.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),bc(e)},dc&&(Sc.prototype[Symbol.iterator]=Sc.prototype.entries);var Rc=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Pc(e,t){if(!(this instanceof Pc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof Pc){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Sc(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Sc(t.headers)),this.method=function(e){var t=e.toUpperCase();return Rc.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ac(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function Mc(e,t){if(!(this instanceof Mc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Sc(t.headers),this.url=t.url||"",this._initBody(e)}Pc.prototype.clone=function(){return new Pc(this,{body:this._bodyInit})},Ec.call(Pc.prototype),Ec.call(Mc.prototype),Mc.prototype.clone=function(){return new Mc(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Sc(this.headers),url:this.url})},Mc.error=function(){var e=new Mc(null,{status:0,statusText:""});return e.type="error",e};var kc=[301,302,303,307,308];Mc.redirect=function(e,t){if(-1===kc.indexOf(t))throw new RangeError("Invalid status code");return new Mc(null,{status:t,headers:{location:e}})};var Oc=uc.DOMException;try{new Oc}catch(e){(Oc=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Oc.prototype.constructor=Oc}function Dc(e,t){return new Promise((function(r,n){var i=new Pc(e,t);if(i.signal&&i.signal.aborted)return n(new Oc("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Sc,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new Mc(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Oc("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&uc.location.href?uc.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(pc?o.responseType="blob":hc&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Sc?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,gc(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Dc.polyfill=!0,uc.fetch||(uc.fetch=Dc,uc.Headers=Sc,uc.Request=Pc,uc.Response=Mc);let Ic=!0,xc=!0;function Lc(e,t,r){const n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function Nc(e,t,r){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),i.apply(this,[e,o])};const o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);const n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function Fc(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Ic=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function jc(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(xc=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Bc(){if("object"==typeof window){if(Ic)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function Vc(e,t){xc&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Uc(e){return"[object Object]"===Object.prototype.toString.call(e)}function zc(e){return Uc(e)?Object.keys(e).reduce((function(t,r){const n=Uc(e[r]),i=n?zc(e[r]):e[r],o=n&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[r]:i})}),{}):e}function Gc(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((n=>{n.endsWith("Id")?Gc(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((t=>{Gc(e,e.get(t),r)}))})))}function Wc(e,t,r){const n=r?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((r=>{r.type===n&&r.trackId===t.id&&Gc(e,r,i)}))})),i}const Yc=Bc;function qc(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const n=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((r=>{if("require"===r||"advanced"===r||"mediaSource"===r)return;const n="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];let e={};"number"==typeof n.ideal?(e[i("min",r)]=n.ideal,t.optional.push(e),e={},e[i("max",r)]=n.ideal,t.optional.push(e)):(e[i("",r)]=n.ideal,t.optional.push(e))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach((e=>{void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||s)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return r.mediaDevices.enumerateDevices().then((r=>{let s=(r=r.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!s&&r.length&&t.includes("back")&&(s=r[r.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=n(e.video),Yc("chrome: "+JSON.stringify(e)),i(e)}))}e.video=n(e.video)}return Yc("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,n){i(e,(e=>{r.webkitGetUserMedia(e,t,(e=>{n&&n(o(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){const e=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(o(e))))))}}}function Hc(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Jc(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.track.id)):{track:r.track};const i=new Event("track");i.track=r.track,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.id)):{track:r};const i=new Event("track");i.track=r,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Nc(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Qc(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){let i=r.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Kc(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,r,n]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const i=function(e){const t={};return e.result().forEach((e=>{const r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{r[t]=e.stat(t)})),t[r.id]=r})),t},o=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const n=function(e){r(o(i(e)))};return t.apply(this,[n,e])}return new Promise(((e,r)=>{t.apply(this,[function(t){e(o(i(t)))},r])})).then(r,n)}}function Zc(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Wc(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),Nc(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Wc(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,r,n;return this.getSenders().forEach((r=>{r.track===e&&(t?n=!0:t=r)})),this.getReceivers().forEach((t=>(t.track===e&&(r?n=!0:r=t),t.track===e))),n||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Xc(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const n=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(n)&&this._shimmedLocalStreams[r.id].push(n):this._shimmedLocalStreams[r.id]=[r,n],n};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();r.apply(this,arguments);const n=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(n)};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],n.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function $c(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Xc(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}n.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}function s(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find((e=>e.track===t));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[r.id];if(o)o.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const n=new e.MediaStream([t]);this._streams[r.id]=n,this._reverseStreams[n.id]=r,this.addStream(n)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(this,[t=>{const r=o(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then((e=>o(this,e)))}};e.RTCPeerConnection.prototype[t]=n[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=s(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((r=>{this._streams[r].getTracks().find((t=>e.track===t))&&(t=this._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function eu(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}))}function tu(e,t){Nc(e,"negotiationneeded",(e=>{const r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var ru=Object.freeze({__proto__:null,shimMediaStream:Hc,shimOnTrack:Jc,shimGetSendersWithDtmf:Qc,shimGetStats:Kc,shimSenderReceiverGetStats:Zc,shimAddTrackRemoveTrackWithNative:Xc,shimAddTrackRemoveTrack:$c,shimPeerConnection:eu,fixNegotiationNeeded:tu,shimGetUserMedia:qc,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((t=>{const n=r.video&&r.video.width,i=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},n&&(r.video.mandatory.maxWidth=n),i&&(r.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(r)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}});function nu(e,t){const r=e&&e.navigator,n=e&&e