/*! For license information please see HWMeeting.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.HWMeeting=t(require("react"),require("react-dom")):e.HWMeeting=t(e.React,e.ReactDOM)}(this,(function(e,t){return function(){var n={59911:function(e,t,n){e.exports=function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function t(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var r=function(e){return e&&e.Math==Math&&e},i=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),o={},a=function(e){try{return!!e()}catch(e){return!0}},s=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={},u={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d=l&&!u.call({1:2},1);c.f=d?function(e){var t=l(this,e);return!!t&&t.enumerable}:u;var f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h={}.toString,p=function(e){return h.call(e).slice(8,-1)},g=p,m="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==g(e)?m.call(e,""):Object(e)}:Object,b=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},y=v,w=b,x=function(e){return y(w(e))},E=function(e){return"object"==typeof e?null!==e:"function"==typeof e},I=E,M=function(e,t){if(!I(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!I(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!I(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!I(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},T=b,C=function(e){return Object(T(e))},S=C,_={}.hasOwnProperty,A=Object.hasOwn||function(e,t){return _.call(S(e),t)},N=E,k=i.document,R=N(k)&&N(k.createElement),O=function(e){return R?k.createElement(e):{}},D=O,L=!s&&!a((function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a})),P=s,j=c,z=f,U=x,F=M,Y=A,Z=L,B=Object.getOwnPropertyDescriptor;o.f=P?B:function(e,t){if(e=U(e),t=F(t,!0),Z)try{return B(e,t)}catch(e){}if(Y(e,t))return z(!j.f.call(e,t),e[t])};var V={},H=E,W=function(e){if(!H(e))throw TypeError(String(e)+" is not an object");return e},G=s,Q=L,K=W,J=M,X=Object.defineProperty;V.f=G?X:function(e,t,n){if(K(e),t=J(t,!0),K(n),Q)try{return X(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var q=V,$=f,ee=s?function(e,t,n){return q.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},te={exports:{}},ne=i,re=ee,ie=function(e,t){try{re(ne,e,t)}catch(n){ne[e]=t}return t},oe=ie,ae="__core-js_shared__",se=i[ae]||oe(ae,{}),ce=se,ue=Function.toString;"function"!=typeof ce.inspectSource&&(ce.inspectSource=function(e){return ue.call(e)});var le=ce.inspectSource,de=le,fe=i.WeakMap,he="function"==typeof fe&&/native code/.test(de(fe)),pe={exports:{}},ge=se;(pe.exports=function(e,t){return ge[e]||(ge[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var me,ve,be,ye=0,we=Math.random(),xe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ye+we).toString(36)},Ee=pe.exports,Ie=xe,Me=Ee("keys"),Te=function(e){return Me[e]||(Me[e]=Ie(e))},Ce={},Se=he,_e=E,Ae=ee,Ne=A,ke=se,Re=Te,Oe=Ce,De="Object already initialized",Le=i.WeakMap;if(Se||ke.state){var Pe=ke.state||(ke.state=new Le),je=Pe.get,ze=Pe.has,Ue=Pe.set;me=function(e,t){if(ze.call(Pe,e))throw new TypeError(De);return t.facade=e,Ue.call(Pe,e,t),t},ve=function(e){return je.call(Pe,e)||{}},be=function(e){return ze.call(Pe,e)}}else{var Fe=Re("state");Oe[Fe]=!0,me=function(e,t){if(Ne(e,Fe))throw new TypeError(De);return t.facade=e,Ae(e,Fe,t),t},ve=function(e){return Ne(e,Fe)?e[Fe]:{}},be=function(e){return Ne(e,Fe)}}var Ye={set:me,get:ve,has:be,enforce:function(e){return be(e)?ve(e):me(e,{})},getterFor:function(e){return function(t){var n;if(!_e(t)||(n=ve(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ze=i,Be=ee,Ve=A,He=ie,We=le,Ge=Ye.get,Qe=Ye.enforce,Ke=String(String).split("String");(te.exports=function(e,t,n,r){var i,o=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||Ve(n,"name")||Be(n,"name",t),(i=Qe(n)).source||(i.source=Ke.join("string"==typeof t?t:""))),e!==Ze?(o?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Be(e,t,n)):a?e[t]=n:He(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Ge(this).source||We(this)}));var Je=i,Xe=i,qe=function(e){return"function"==typeof e?e:void 0},$e=function(e,t){return arguments.length<2?qe(Je[e])||qe(Xe[e]):Je[e]&&Je[e][t]||Xe[e]&&Xe[e][t]},et={},tt=Math.ceil,nt=Math.floor,rt=function(e){return isNaN(e=+e)?0:(e>0?nt:tt)(e)},it=rt,ot=Math.min,at=function(e){return e>0?ot(it(e),9007199254740991):0},st=rt,ct=Math.max,ut=Math.min,lt=function(e,t){var n=st(e);return n<0?ct(n+t,0):ut(n,t)},dt=x,ft=at,ht=lt,pt=function(e){return function(t,n,r){var i,o=dt(t),a=ft(o.length),s=ht(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},gt={includes:pt(!0),indexOf:pt(!1)},mt=A,vt=x,bt=gt.indexOf,yt=Ce,wt=function(e,t){var n,r=vt(e),i=0,o=[];for(n in r)!mt(yt,n)&&mt(r,n)&&o.push(n);for(;t.length>i;)mt(r,n=t[i++])&&(~bt(o,n)||o.push(n));return o},xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Et=wt,It=xt.concat("length","prototype");et.f=Object.getOwnPropertyNames||function(e){return Et(e,It)};var Mt={};Mt.f=Object.getOwnPropertySymbols;var Tt,Ct,St=et,_t=Mt,At=W,Nt=$e("Reflect","ownKeys")||function(e){var t=St.f(At(e)),n=_t.f;return n?t.concat(n(e)):t},kt=A,Rt=Nt,Ot=o,Dt=V,Lt=function(e,t){for(var n=Rt(t),r=Dt.f,i=Ot.f,o=0;o=74)&&(Tt=an.match(/Chrome\/(\d+)/))&&(Ct=Tt[1]);var ln=Ct&&+Ct,dn=ln,fn=a,hn=!!Object.getOwnPropertySymbols&&!fn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dn&&dn<41})),pn=hn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gn=i,mn=pe.exports,vn=A,bn=xe,yn=hn,wn=pn,xn=mn("wks"),En=gn.Symbol,In=wn?En:En&&En.withoutSetter||bn,Mn=function(e){return vn(xn,e)&&(yn||"string"==typeof xn[e])||(yn&&vn(En,e)?xn[e]=En[e]:xn[e]=In("Symbol."+e)),xn[e]},Tn=V.f,Cn=A,Sn=Mn("toStringTag"),_n=function(e,t,n){e&&!Cn(e=n?e:e.prototype,Sn)&&Tn(e,Sn,{configurable:!0,value:t})},An=$e,Nn=V,kn=s,Rn=Mn("species"),On=function(e){var t=An(e),n=Nn.f;kn&&t&&!t[Rn]&&n(t,Rn,{configurable:!0,get:function(){return this}})},Dn=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ln=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Pn={},jn=Pn,zn=Mn("iterator"),Un=Array.prototype,Fn=function(e){return void 0!==e&&(jn.Array===e||Un[zn]===e)},Yn=Dn,Zn=function(e,t,n){if(Yn(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Bn={};Bn[Mn("toStringTag")]="z";var Vn="[object z]"===String(Bn),Hn=p,Wn=Mn("toStringTag"),Gn="Arguments"==Hn(function(){return arguments}()),Qn=Vn?Hn:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Wn))?n:Gn?Hn(t):"Object"==(r=Hn(t))&&"function"==typeof t.callee?"Arguments":r},Kn=Qn,Jn=Pn,Xn=Mn("iterator"),qn=function(e){if(null!=e)return e[Xn]||e["@@iterator"]||Jn[Kn(e)]},$n=W,er=W,tr=Fn,nr=at,rr=Zn,ir=qn,or=function(e){var t=e.return;if(void 0!==t)return $n(t.call(e)).value},ar=function(e,t){this.stopped=e,this.result=t},sr=function(e,t,n){var r,i,o,a,s,c,u,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=rr(t,l,1+d+h),g=function(e){return r&&or(r),new ar(!0,e)},m=function(e){return d?(er(e),h?p(e[0],e[1],g):p(e[0],e[1])):h?p(e,g):p(e)};if(f)r=e;else{if("function"!=typeof(i=ir(e)))throw TypeError("Target is not iterable");if(tr(i)){for(o=0,a=nr(e.length);a>o;o++)if((s=m(e[o]))&&s instanceof ar)return s;return new ar(!1)}r=i.call(e)}for(c=r.next;!(u=c.call(r)).done;){try{s=m(u.value)}catch(e){throw or(r),e}if("object"==typeof s&&s&&s instanceof ar)return s}return new ar(!1)},cr=Mn("iterator"),ur=!1;try{var lr=0,dr={next:function(){return{done:!!lr++}},return:function(){ur=!0}};dr[cr]=function(){return this},Array.from(dr,(function(){throw 2}))}catch(e){}var fr,hr,pr,gr=function(e,t){if(!t&&!ur)return!1;var n=!1;try{var r={};r[cr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},mr=W,vr=Dn,br=Mn("species"),yr=function(e,t){var n,r=mr(e).constructor;return void 0===r||null==(n=mr(r)[br])?t:vr(n)},wr=$e("document","documentElement"),xr=/(?:iphone|ipod|ipad).*applewebkit/i.test(on),Er="process"==p(i.process),Ir=i,Mr=a,Tr=Zn,Cr=wr,Sr=O,_r=xr,Ar=Er,Nr=Ir.location,kr=Ir.setImmediate,Rr=Ir.clearImmediate,Or=Ir.process,Dr=Ir.MessageChannel,Lr=Ir.Dispatch,Pr=0,jr={},zr="onreadystatechange",Ur=function(e){if(jr.hasOwnProperty(e)){var t=jr[e];delete jr[e],t()}},Fr=function(e){return function(){Ur(e)}},Yr=function(e){Ur(e.data)},Zr=function(e){Ir.postMessage(e+"",Nr.protocol+"//"+Nr.host)};kr&&Rr||(kr=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return jr[++Pr]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},fr(Pr),Pr},Rr=function(e){delete jr[e]},Ar?fr=function(e){Or.nextTick(Fr(e))}:Lr&&Lr.now?fr=function(e){Lr.now(Fr(e))}:Dr&&!_r?(pr=(hr=new Dr).port2,hr.port1.onmessage=Yr,fr=Tr(pr.postMessage,pr,1)):Ir.addEventListener&&"function"==typeof postMessage&&!Ir.importScripts&&Nr&&"file:"!==Nr.protocol&&!Mr(Zr)?(fr=Zr,Ir.addEventListener("message",Yr,!1)):fr=zr in Sr("script")?function(e){Cr.appendChild(Sr("script"))[zr]=function(){Cr.removeChild(this),Ur(e)}}:function(e){setTimeout(Fr(e),0)});var Br,Vr,Hr,Wr,Gr,Qr,Kr,Jr,Xr={set:kr,clear:Rr},qr=/web0s(?!.*chrome)/i.test(on),$r=i,ei=o.f,ti=Xr.set,ni=xr,ri=qr,ii=Er,oi=$r.MutationObserver||$r.WebKitMutationObserver,ai=$r.document,si=$r.process,ci=$r.Promise,ui=ei($r,"queueMicrotask"),li=ui&&ui.value;li||(Br=function(){var e,t;for(ii&&(e=si.domain)&&e.exit();Vr;){t=Vr.fn,Vr=Vr.next;try{t()}catch(e){throw Vr?Wr():Hr=void 0,e}}Hr=void 0,e&&e.enter()},ni||ii||ri||!oi||!ai?ci&&ci.resolve?((Kr=ci.resolve(void 0)).constructor=ci,Jr=Kr.then,Wr=function(){Jr.call(Kr,Br)}):Wr=ii?function(){si.nextTick(Br)}:function(){ti.call($r,Br)}:(Gr=!0,Qr=ai.createTextNode(""),new oi(Br).observe(Qr,{characterData:!0}),Wr=function(){Qr.data=Gr=!Gr}));var di=li||function(e){var t={fn:e,next:void 0};Hr&&(Hr.next=t),Vr||(Vr=t,Wr()),Hr=t},fi={},hi=Dn,pi=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=hi(t),this.reject=hi(n)};fi.f=function(e){return new pi(e)};var gi,mi,vi,bi,yi,wi=W,xi=E,Ei=fi,Ii=function(e,t){if(wi(e),xi(t)&&t.constructor===e)return t;var n=Ei.f(e);return(0,n.resolve)(t),n.promise},Mi=i,Ti="object"==typeof window,Ci=Xt,Si=i,_i=$e,Ai=qt,Ni=te.exports,ki=en,Ri=rn,Oi=_n,Di=On,Li=E,Pi=Dn,ji=Ln,zi=le,Ui=sr,Fi=gr,Yi=yr,Zi=Xr.set,Bi=di,Vi=Ii,Hi=fi,Wi=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Gi=Ye,Qi=Bt,Ki=Ti,Ji=Er,Xi=ln,qi=Mn("species"),$i="Promise",eo=Gi.get,to=Gi.set,no=Gi.getterFor($i),ro=Ai&&Ai.prototype,io=Ai,oo=ro,ao=Si.TypeError,so=Si.document,co=Si.process,uo=Hi.f,lo=uo,fo=!!(so&&so.createEvent&&Si.dispatchEvent),ho="function"==typeof PromiseRejectionEvent,po="unhandledrejection",go=!1,mo=Qi($i,(function(){var e=zi(io)!==String(io);if(!e&&66===Xi)return!0;if(Xi>=51&&/native code/.test(io))return!1;var t=new io((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[qi]=n,!(go=t.then((function(){}))instanceof n)||!e&&Ki&&!ho})),vo=mo||!Fi((function(e){io.all(e).catch((function(){}))})),bo=function(e){var t;return!(!Li(e)||"function"!=typeof(t=e.then))&&t},yo=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Bi((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,u=n[o++],l=i?u.ok:u.fail,d=u.resolve,f=u.reject,h=u.domain;try{l?(i||(2===e.rejection&&Io(e),e.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),c=!0)),a===u.promise?f(ao("Promise-chain cycle")):(s=bo(a))?s.call(a,d,f):d(a)):f(r)}catch(e){h&&!c&&h.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&xo(e)}))}},wo=function(e,t,n){var r,i;fo?((r=so.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Si.dispatchEvent(r)):r={promise:t,reason:n},!ho&&(i=Si["on"+e])?i(r):e===po&&function(e,t){var n=Mi.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},xo=function(e){Zi.call(Si,(function(){var t,n=e.facade,r=e.value;if(Eo(e)&&(t=Wi((function(){Ji?co.emit("unhandledRejection",r,n):wo(po,n,r)})),e.rejection=Ji||Eo(e)?2:1,t.error))throw t.value}))},Eo=function(e){return 1!==e.rejection&&!e.parent},Io=function(e){Zi.call(Si,(function(){var t=e.facade;Ji?co.emit("rejectionHandled",t):wo("rejectionhandled",t,e.value)}))},Mo=function(e,t,n){return function(r){e(t,r,n)}},To=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,yo(e,!0))},Co=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ao("Promise can't be resolved itself");var r=bo(t);r?Bi((function(){var n={done:!1};try{r.call(t,Mo(Co,n,e),Mo(To,n,e))}catch(t){To(n,t,e)}})):(e.value=t,e.state=1,yo(e,!1))}catch(t){To({done:!1},t,e)}}};if(mo&&(oo=(io=function(e){ji(this,io,$i),Pi(e),gi.call(this);var t=eo(this);try{e(Mo(Co,t),Mo(To,t))}catch(e){To(t,e)}}).prototype,(gi=function(e){to(this,{type:$i,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ki(oo,{then:function(e,t){var n=no(this),r=uo(Yi(this,io));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Ji?co.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&yo(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),mi=function(){var e=new gi,t=eo(e);this.promise=e,this.resolve=Mo(Co,t),this.reject=Mo(To,t)},Hi.f=uo=function(e){return e===io||e===vi?new mi(e):lo(e)},"function"==typeof Ai&&ro!==Object.prototype)){bi=ro.then,go||(Ni(ro,"then",(function(e,t){var n=this;return new io((function(e,t){bi.call(n,e,t)})).then(e,t)}),{unsafe:!0}),Ni(ro,"catch",oo.catch,{unsafe:!0}));try{delete ro.constructor}catch(e){}Ri&&Ri(ro,oo)}Ci({global:!0,wrap:!0,forced:mo},{Promise:io}),Oi(io,$i,!1),Di($i),vi=_i($i),Ci({target:$i,stat:!0,forced:mo},{reject:function(e){var t=uo(this);return t.reject.call(void 0,e),t.promise}}),Ci({target:$i,stat:!0,forced:mo},{resolve:function(e){return Vi(this,e)}}),Ci({target:$i,stat:!0,forced:vo},{all:function(e){var t=this,n=uo(t),r=n.resolve,i=n.reject,o=Wi((function(){var n=Pi(t.resolve),o=[],a=0,s=1;Ui(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=uo(t),r=n.reject,i=Wi((function(){var i=Pi(t.resolve);Ui(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),function(e){e[e.RTC_ERR_CODE_SUCCESS=0]="RTC_ERR_CODE_SUCCESS",e[e.RTC_ERR_CODE_RTC_SDK_ERROR=90000001]="RTC_ERR_CODE_RTC_SDK_ERROR",e[e.RTC_ERR_CODE_MESSAGE_SEND_TIMEOUT=90000004]="RTC_ERR_CODE_MESSAGE_SEND_TIMEOUT",e[e.RTC_ERR_CODE_INVALID_PARAMETER=90000005]="RTC_ERR_CODE_INVALID_PARAMETER",e[e.RTC_ERR_CODE_SUBSCRIBE_VIDEO_FAIL=90000008]="RTC_ERR_CODE_SUBSCRIBE_VIDEO_FAIL",e[e.RTC_ERR_CODE_RTC_SERVER_ERROR=90000030]="RTC_ERR_CODE_RTC_SERVER_ERROR",e[e.RTC_ERR_CODE_SUBSCRIBE_AUDIO_FAIL=90000033]="RTC_ERR_CODE_SUBSCRIBE_AUDIO_FAIL",e[e.RTC_ERR_CODE_REGION_NOT_COVERED=90000048]="RTC_ERR_CODE_REGION_NOT_COVERED",e[e.RTC_ERR_CODE_INVALID_OPERATION=90100001]="RTC_ERR_CODE_INVALID_OPERATION",e[e.RTC_ERR_CODE_NOT_SUPPORT_MEDIA_DEVICES=90100002]="RTC_ERR_CODE_NOT_SUPPORT_MEDIA_DEVICES",e[e.RTC_ERR_CODE_NO_AVAILABLE_DEVICES=90100003]="RTC_ERR_CODE_NO_AVAILABLE_DEVICES",e[e.RTC_ERR_CODE_NO_AVAILABLE_VIDEO_INPUT_DEVICES=90100004]="RTC_ERR_CODE_NO_AVAILABLE_VIDEO_INPUT_DEVICES",e[e.RTC_ERR_CODE_NO_AVAILABLE_AUDIO_INPUT_DEVICES=90100005]="RTC_ERR_CODE_NO_AVAILABLE_AUDIO_INPUT_DEVICES",e[e.RTC_ERR_CODE_NO_AVAILABLE_AUDIO_OUTPUT_DEVICES=90100006]="RTC_ERR_CODE_NO_AVAILABLE_AUDIO_OUTPUT_DEVICES",e[e.RTC_ERR_CODE_STATUS_ERROR=90100007]="RTC_ERR_CODE_STATUS_ERROR",e[e.RTC_ERR_CODE_WEBSOCKET_CONNECT=90100008]="RTC_ERR_CODE_WEBSOCKET_CONNECT",e[e.RTC_ERR_CODE_WAIT_CONFIG_FAIL=90100009]="RTC_ERR_CODE_WAIT_CONFIG_FAIL",e[e.RTC_ERR_CODE_PUBLISH_RESPONSE_FAIL=90100010]="RTC_ERR_CODE_PUBLISH_RESPONSE_FAIL",e[e.RTC_ERR_CODE_NO_AVAILABLE_LOG_SERVICE_ADDRESS=90100011]="RTC_ERR_CODE_NO_AVAILABLE_LOG_SERVICE_ADDRESS",e[e.RTC_ERR_CODE_NO_AVAILABLE_LOG_PROVIDER=90100012]="RTC_ERR_CODE_NO_AVAILABLE_LOG_PROVIDER",e[e.RTC_ERR_CODE_USER_NOT_SUBSCRIBED=90100013]="RTC_ERR_CODE_USER_NOT_SUBSCRIBED",e[e.RTC_ERR_CODE_PEERCONNECTION_NOT_EXISTED=90100014]="RTC_ERR_CODE_PEERCONNECTION_NOT_EXISTED",e[e.RTC_ERR_CODE_MEDIASTREAM_TRACK_TIMEOUT=90100015]="RTC_ERR_CODE_MEDIASTREAM_TRACK_TIMEOUT",e[e.RTC_ERR_CODE_TRACK_PLAY_FAILED=90100016]="RTC_ERR_CODE_TRACK_PLAY_FAILED",e[e.RTC_ERR_CODE_CAPTURE_PERMISSION_DENIED=90100017]="RTC_ERR_CODE_CAPTURE_PERMISSION_DENIED",e[e.RTC_ERR_CODE_CAPTURE_OVER_CONSTRAINED=90100018]="RTC_ERR_CODE_CAPTURE_OVER_CONSTRAINED",e[e.RTC_ERR_CODE_CAPTURE_DEVICE_NOT_FOUND=90100019]="RTC_ERR_CODE_CAPTURE_DEVICE_NOT_FOUND",e[e.RTC_ERR_CODE_CAPTURE_DEVICE_NOT_READABLE=90100020]="RTC_ERR_CODE_CAPTURE_DEVICE_NOT_READABLE",e[e.RTC_ERR_CODE_PLAY_NOT_ALLOW=90100021]="RTC_ERR_CODE_PLAY_NOT_ALLOW",e[e.RTC_ERR_CODE_ROLE_NO_PERMISSION=90100022]="RTC_ERR_CODE_ROLE_NO_PERMISSION",e[e.RTC_ERR_CODE_ANSWER_SDP_INVALID=90100023]="RTC_ERR_CODE_ANSWER_SDP_INVALID",e[e.RTC_ERR_CODE_MEDIA_UPSTREAM_UNSUPPORTED=90100024]="RTC_ERR_CODE_MEDIA_UPSTREAM_UNSUPPORTED"}(yi||(yi={}));const So={[yi.RTC_ERR_CODE_SUCCESS]:"success",[yi.RTC_ERR_CODE_RTC_SDK_ERROR]:"sdk internal error",[yi.RTC_ERR_CODE_RTC_SERVER_ERROR]:"server internal error",[yi.RTC_ERR_CODE_NOT_SUPPORT_MEDIA_DEVICES]:"not support enumerate devices",[yi.RTC_ERR_CODE_NO_AVAILABLE_DEVICES]:"no available devices",[yi.RTC_ERR_CODE_NO_AVAILABLE_VIDEO_INPUT_DEVICES]:"no available video input devices",[yi.RTC_ERR_CODE_NO_AVAILABLE_AUDIO_INPUT_DEVICES]:"no available audio input devices",[yi.RTC_ERR_CODE_NO_AVAILABLE_AUDIO_OUTPUT_DEVICES]:"no available audio output devices",[yi.RTC_ERR_CODE_STATUS_ERROR]:"room status error",[yi.RTC_ERR_CODE_INVALID_PARAMETER]:"invalid parameter",[yi.RTC_ERR_CODE_WEBSOCKET_CONNECT]:"failed to establish websocket connection",[yi.RTC_ERR_CODE_SUBSCRIBE_VIDEO_FAIL]:"subscribe video fail",[yi.RTC_ERR_CODE_SUBSCRIBE_AUDIO_FAIL]:"subscribe audio fail",[yi.RTC_ERR_CODE_WAIT_CONFIG_FAIL]:"wait server config fail",[yi.RTC_ERR_CODE_MESSAGE_SEND_TIMEOUT]:"message send timeout",[yi.RTC_ERR_CODE_PUBLISH_RESPONSE_FAIL]:"publish response fail",[yi.RTC_ERR_CODE_NO_AVAILABLE_LOG_SERVICE_ADDRESS]:"no available log service address",[yi.RTC_ERR_CODE_NO_AVAILABLE_LOG_PROVIDER]:"no available log provider",[yi.RTC_ERR_CODE_USER_NOT_SUBSCRIBED]:"user not subscribe stream",[yi.RTC_ERR_CODE_PEERCONNECTION_NOT_EXISTED]:"peerconnection is not exist",[yi.RTC_ERR_CODE_MEDIASTREAM_TRACK_TIMEOUT]:"mediaStream wait track timeout",[yi.RTC_ERR_CODE_TRACK_PLAY_FAILED]:"track play failed",[yi.RTC_ERR_CODE_REGION_NOT_COVERED]:"current region is not covered, service unavaliable",[yi.RTC_ERR_CODE_CAPTURE_PERMISSION_DENIED]:"capture failed, permission denied",[yi.RTC_ERR_CODE_CAPTURE_OVER_CONSTRAINED]:"capture failed, Constraint paramter invalid",[yi.RTC_ERR_CODE_CAPTURE_DEVICE_NOT_FOUND]:"capture failed, requested device not found",[yi.RTC_ERR_CODE_CAPTURE_DEVICE_NOT_READABLE]:"capture failed, maybe device is occupied by other application",[yi.RTC_ERR_CODE_PLAY_NOT_ALLOW]:"the user didn't interact with the document first, please trigger by gesture",[yi.RTC_ERR_CODE_ROLE_NO_PERMISSION]:"the user role have no permission to operate",[yi.RTC_ERR_CODE_ANSWER_SDP_INVALID]:"the upstream media is not supported"};class _o extends Error{static getErrorCode(e){if(null==e)return yi.RTC_ERR_CODE_RTC_SERVER_ERROR;const t=e.substr("RTC.".length);return Number(t)}constructor(e,t){let n="";n=t||(e in yi?So[e]:"unknow error"),super(t),this.code=void 0,this.code=e,this.message=n}getCode(){return this.code}getMsg(){return this.message}}function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function No(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ao(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Ao(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko=Xt,Ro=s,Oo=i,Do=A,Lo=E,Po=V.f,jo=Lt,zo=Oo.Symbol;if(Ro&&"function"==typeof zo&&(!("description"in zo.prototype)||void 0!==zo().description)){var Uo={},Fo=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Fo?new zo(e):void 0===e?zo():zo(e);return""===e&&(Uo[t]=!0),t};jo(Fo,zo);var Yo=Fo.prototype=zo.prototype;Yo.constructor=Fo;var Zo=Yo.toString,Bo="Symbol(test)"==String(zo("test")),Vo=/^Symbol\((.*)\)[^)]+$/;Po(Yo,"description",{configurable:!0,get:function(){var e=Lo(this)?this.valueOf():this,t=Zo.call(e);if(Do(Uo,e))return"";var n=Bo?t.slice(7,-1):t.replace(Vo,"$1");return""===n?void 0:n}}),ko({global:!0,forced:!0},{Symbol:Fo})}var Ho,Wo=wt,Go=xt,Qo=Object.keys||function(e){return Wo(e,Go)},Ko=V,Jo=W,Xo=Qo,qo=s?Object.defineProperties:function(e,t){Jo(e);for(var n,r=Xo(t),i=r.length,o=0;i>o;)Ko.f(e,n=r[o++],t[n]);return e},$o=W,ea=qo,ta=xt,na=Ce,ra=wr,ia=O,oa="prototype",aa="script",sa=Te("IE_PROTO"),ca=function(){},ua=function(e){return"