@byteplus/rtc 4.63.13 → 4.63.14

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,6 +1,6 @@
1
1
  /**
2
2
  * Copyright (c) 2025 The BytePlusRTC project authors. All Rights Reserved.
3
3
  * @brief BytePlusRTC Advance API
4
- * version: 4.63.13
4
+ * version: 4.63.14
5
5
  */
6
6
  !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r=function(t){return t&&t.Math===Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},o=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=o,s=Function.prototype,u=s.apply,c=s.call,l="object"==typeof Reflect&&Reflect.apply||(a?c.bind(u):function(){return c.apply(u,arguments)}),f=o,h=Function.prototype,d=h.call,p=f&&h.bind.bind(d,d),v=f?p:function(t){return function(){return d.apply(t,arguments)}},g=v,_=g({}.toString),y=g("".slice),m=function(t){return y(_(t),8,-1)},b=m,w=v,k=function(t){if("Function"===b(t))return w(t)},S="object"==typeof document&&document.all,x={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},E=x.all,O=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},A={},T=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),B=o,C=Function.prototype.call,R=B?C.bind(C):function(){return C.apply(C,arguments)},I={},L={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,M=z&&!L.call({1:2},1);I.f=M?function(t){var e=z(this,t);return!!e&&e.enumerable}:L;var j,N,P=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=i,F=m,U=Object,G=v("".split),K=D((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===F(t)?G(t,""):U(t)}:U,V=function(t){return null==t},Z=V,H=TypeError,W=function(t){if(Z(t))throw H("Can't call method on "+t);return t},J=K,Y=W,X=function(t){return J(Y(t))},$=O,q=x.all,Q=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:$(t)||t===q}:function(t){return"object"==typeof t?null!==t:$(t)},tt={},et=tt,rt=n,nt=O,it=function(t){return nt(t)?t:void 0},ot=function(t,e){return arguments.length<2?it(et[t])||it(rt[t]):et[t]&&et[t][e]||rt[t]&&rt[t][e]},at=v({}.isPrototypeOf),st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=n,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&&lt.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(N=(j=dt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!N&&ct&&(!(j=ct.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ct.match(/Chrome\/(\d+)/))&&(N=+j[1]);var pt=N,vt=pt,gt=i,_t=n.String,yt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol("symbol detection");return!_t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),mt=yt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,wt=O,kt=at,St=Object,xt=mt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return wt(e)&&kt(e.prototype,St(t))},Et=String,Ot=function(t){try{return Et(t)}catch(e){return"Object"}},At=O,Tt=Ot,Bt=TypeError,Ct=function(t){if(At(t))return t;throw Bt(Tt(t)+" is not a function")},Rt=Ct,It=V,Lt=function(t,e){var r=t[e];return It(r)?void 0:Rt(r)},zt=R,Mt=O,jt=Q,Nt=TypeError,Pt={exports:{}},Dt=n,Ft=Object.defineProperty,Ut=function(t,e){try{Ft(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Gt="__core-js_shared__",Kt=n[Gt]||Ut(Gt,{}),Vt=Kt;(Pt.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Zt=Pt.exports,Ht=W,Wt=Object,Jt=function(t){return Wt(Ht(t))},Yt=Jt,Xt=v({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return Xt(Yt(t),e)},qt=v,Qt=0,te=Math.random(),ee=qt(1..toString),re=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Qt+te,36)},ne=Zt,ie=$t,oe=re,ae=yt,se=mt,ue=n.Symbol,ce=ne("wks"),le=se?ue.for||ue:ue&&ue.withoutSetter||oe,fe=function(t){return ie(ce,t)||(ce[t]=ae&&ie(ue,t)?ue[t]:le("Symbol."+t)),ce[t]},he=R,de=Q,pe=xt,ve=Lt,ge=function(t,e){var r,n;if("string"===e&&Mt(r=t.toString)&&!jt(n=zt(r,t)))return n;if(Mt(r=t.valueOf)&&!jt(n=zt(r,t)))return n;if("string"!==e&&Mt(r=t.toString)&&!jt(n=zt(r,t)))return n;throw Nt("Can't convert object to primitive value")},_e=TypeError,ye=fe("toPrimitive"),me=function(t,e){if(!de(t)||pe(t))return t;var r,n=ve(t,ye);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!de(r)||pe(r))return r;throw _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},be=xt,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=Q,Se=n.document,xe=ke(Se)&&ke(Se.createElement),Ee=function(t){return xe?Se.createElement(t):{}},Oe=Ee,Ae=!T&&!i((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Te=T,Be=R,Ce=I,Re=P,Ie=X,Le=we,ze=$t,Me=Ae,je=Object.getOwnPropertyDescriptor;A.f=Te?je:function(t,e){if(t=Ie(t),e=Le(e),Me)try{return je(t,e)}catch(r){}if(ze(t,e))return Re(!Be(Ce.f,t,e),t[e])};var Ne=i,Pe=O,De=/#|\.prototype\./,Fe=function(t,e){var r=Ge[Ue(t)];return r===Ve||r!==Ke&&(Pe(e)?Ne(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},Ge=Fe.data={},Ke=Fe.NATIVE="N",Ve=Fe.POLYFILL="P",Ze=Fe,He=Ct,We=o,Je=k(k.bind),Ye=function(t,e){return He(t),void 0===e?t:We?Je(t,e):function(){return t.apply(e,arguments)}},Xe={},$e=T&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qe=Q,Qe=String,tr=TypeError,er=function(t){if(qe(t))return t;throw tr(Qe(t)+" is not an object")},rr=T,nr=Ae,ir=$e,or=er,ar=we,sr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr="enumerable",fr="configurable",hr="writable";Xe.f=rr?ir?function(t,e,r){if(or(t),e=ar(e),or(r),"function"==typeof t&&"prototype"===e&&"value"in r&&hr in r&&!r[hr]){var n=cr(t,e);n&&n[hr]&&(t[e]=r.value,r={configurable:fr in r?r[fr]:n[fr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return ur(t,e,r)}:ur:function(t,e,r){if(or(t),e=ar(e),or(r),nr)try{return ur(t,e,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var dr=Xe,pr=P,vr=T?function(t,e,r){return dr.f(t,e,pr(1,r))}:function(t,e,r){return t[e]=r,t},gr=n,_r=l,yr=k,mr=O,br=A.f,wr=Ze,kr=tt,Sr=Ye,xr=vr,Er=$t,Or=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return _r(t,this,arguments)};return e.prototype=t.prototype,e},Ar=function(t,e){var r,n,i,o,a,s,u,c,l,f=t.target,h=t.global,d=t.stat,p=t.proto,v=h?gr:d?gr[f]:(gr[f]||{}).prototype,g=h?kr:kr[f]||xr(kr,f,{})[f],_=g.prototype;for(o in e)n=!(r=wr(h?o:f+(d?".":"#")+o,t.forced))&&v&&Er(v,o),s=g[o],n&&(u=t.dontCallGetSet?(l=br(v,o))&&l.value:v[o]),a=n&&u?u:e[o],n&&typeof s==typeof a||(c=t.bind&&n?Sr(a,gr):t.wrap&&n?Or(a):p&&mr(a)?yr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&xr(c,"sham",!0),xr(g,o,c),p&&(Er(kr,i=f+"Prototype")||xr(kr,i,{}),xr(kr[i],o,a),t.real&&_&&(r||!_[o])&&xr(_,o,a)))},Tr=Math.ceil,Br=Math.floor,Cr=Math.trunc||function(t){var e=+t;return(e>0?Br:Tr)(e)},Rr=function(t){var e=+t;return e!=e||0===e?0:Cr(e)},Ir=Rr,Lr=Math.max,zr=Math.min,Mr=function(t,e){var r=Ir(t);return r<0?Lr(r+e,0):zr(r,e)},jr=Rr,Nr=Math.min,Pr=function(t){return t>0?Nr(jr(t),9007199254740991):0},Dr=Pr,Fr=function(t){return Dr(t.length)},Ur=X,Gr=Mr,Kr=Fr,Vr=function(t){return function(e,r,n){var i,o=Ur(e),a=Kr(o),s=Gr(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},Zr={includes:Vr(!0),indexOf:Vr(!1)},Hr={},Wr=$t,Jr=X,Yr=Zr.indexOf,Xr=Hr,$r=v([].push),qr=function(t,e){var r,n=Jr(t),i=0,o=[];for(r in n)!Wr(Xr,r)&&Wr(n,r)&&$r(o,r);for(;e.length>i;)Wr(n,r=e[i++])&&(~Yr(o,r)||$r(o,r));return o},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=qr,en=Qr,rn=Object.keys||function(t){return tn(t,en)},nn=Jt,on=rn;Ar({target:"Object",stat:!0,forced:i((function(){on(1)}))},{keys:function(t){return on(nn(t))}});var an=tt.Object.keys,sn=e(an),un={};un[fe("toStringTag")]="z";var cn="[object z]"===String(un),ln=cn,fn=O,hn=m,dn=fe("toStringTag"),pn=Object,vn="Arguments"===hn(function(){return arguments}()),gn=ln?hn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=pn(t),dn))?r:vn?hn(e):"Object"===(n=hn(e))&&fn(e.callee)?"Arguments":n},_n=gn,yn=String,mn=function(t){if("Symbol"===_n(t))throw TypeError("Cannot convert a Symbol value to a string");return yn(t)},bn={},wn=T,kn=$e,Sn=Xe,xn=er,En=X,On=rn;bn.f=wn&&!kn?Object.defineProperties:function(t,e){xn(t);for(var r,n=En(e),i=On(e),o=i.length,a=0;o>a;)Sn.f(t,r=i[a++],n[r]);return t};var An,Tn=ot("document","documentElement"),Bn=re,Cn=Zt("keys"),Rn=function(t){return Cn[t]||(Cn[t]=Bn(t))},In=er,Ln=bn,zn=Qr,Mn=Hr,jn=Tn,Nn=Ee,Pn="prototype",Dn="script",Fn=Rn("IE_PROTO"),Un=function(){},Gn=function(t){return"<"+Dn+">"+t+"</"+Dn+">"},Kn=function(t){t.write(Gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vn=function(){try{An=new ActiveXObject("htmlfile")}catch(i){}var t,e,r;Vn="undefined"!=typeof document?document.domain&&An?Kn(An):(e=Nn("iframe"),r="java"+Dn+":",e.style.display="none",jn.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Gn("document.F=Object")),t.close(),t.F):Kn(An);for(var n=zn.length;n--;)delete Vn[Pn][zn[n]];return Vn()};Mn[Fn]=!0;var Zn=Object.create||function(t,e){var r;return null!==t?(Un[Pn]=In(t),r=new Un,Un[Pn]=null,r[Fn]=t):r=Vn(),void 0===e?r:Ln.f(r,e)},Hn={},Wn=qr,Jn=Qr.concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return Wn(t,Jn)};var Yn={},Xn=we,$n=Xe,qn=P,Qn=function(t,e,r){var n=Xn(e);n in t?$n.f(t,n,qn(0,r)):t[n]=r},ti=Mr,ei=Fr,ri=Qn,ni=Array,ii=Math.max,oi=m,ai=X,si=Hn.f,ui=function(t,e,r){for(var n=ei(t),i=ti(e,n),o=ti(void 0===r?n:r,n),a=ni(ii(o-i,0)),s=0;i<o;i++,s++)ri(a,s,t[i]);return a.length=s,a},ci="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Yn.f=function(t){return ci&&"Window"===oi(t)?function(t){try{return si(t)}catch(e){return ui(ci)}}(t):si(ai(t))};var li={};li.f=Object.getOwnPropertySymbols;var fi=vr,hi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:fi(t,e,r),t},di=Xe,pi=function(t,e,r){return di.f(t,e,r)},vi={},gi=fe;vi.f=gi;var _i,yi,mi,bi=tt,wi=$t,ki=vi,Si=Xe.f,xi=function(t){var e=bi.Symbol||(bi.Symbol={});wi(e,t)||Si(e,t,{value:ki.f(t)})},Ei=R,Oi=ot,Ai=fe,Ti=hi,Bi=function(){var t=Oi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ai("toPrimitive");e&&!e[n]&&Ti(e,n,(function(t){return Ei(r,this)}),{arity:1})},Ci=gn,Ri=cn?{}.toString:function(){return"[object "+Ci(this)+"]"},Ii=cn,Li=Xe.f,zi=vr,Mi=$t,ji=Ri,Ni=fe("toStringTag"),Pi=function(t,e,r,n){if(t){var i=r?t:t.prototype;Mi(i,Ni)||Li(i,Ni,{configurable:!0,value:e}),n&&!Ii&&zi(i,"toString",ji)}},Di=O,Fi=n.WeakMap,Ui=Di(Fi)&&/native code/.test(String(Fi)),Gi=n,Ki=Q,Vi=vr,Zi=$t,Hi=Kt,Wi=Rn,Ji=Hr,Yi="Object already initialized",Xi=Gi.TypeError,$i=Gi.WeakMap;if(Ui||Hi.state){var qi=Hi.state||(Hi.state=new $i);qi.get=qi.get,qi.has=qi.has,qi.set=qi.set,_i=function(t,e){if(qi.has(t))throw Xi(Yi);return e.facade=t,qi.set(t,e),e},yi=function(t){return qi.get(t)||{}},mi=function(t){return qi.has(t)}}else{var Qi=Wi("state");Ji[Qi]=!0,_i=function(t,e){if(Zi(t,Qi))throw Xi(Yi);return e.facade=t,Vi(t,Qi,e),e},yi=function(t){return Zi(t,Qi)?t[Qi]:{}},mi=function(t){return Zi(t,Qi)}}var to={set:_i,get:yi,has:mi,enforce:function(t){return mi(t)?yi(t):_i(t,{})},getterFor:function(t){return function(e){var r;if(!Ki(e)||(r=yi(e)).type!==t)throw Xi("Incompatible receiver, "+t+" required");return r}}},eo=m,ro=Array.isArray||function(t){return"Array"===eo(t)},no=O,io=Kt,oo=v(Function.toString);no(io.inspectSource)||(io.inspectSource=function(t){return oo(t)});var ao=io.inspectSource,so=v,uo=i,co=O,lo=gn,fo=ao,ho=function(){},po=[],vo=ot("Reflect","construct"),go=/^\s*(?:class|function)\b/,_o=so(go.exec),yo=!go.exec(ho),mo=function(t){if(!co(t))return!1;try{return vo(ho,po,t),!0}catch(e){return!1}},bo=function(t){if(!co(t))return!1;switch(lo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yo||!!_o(go,fo(t))}catch(e){return!0}};bo.sham=!0;var wo=!vo||uo((function(){var t;return mo(mo.call)||!mo(Object)||!mo((function(){t=!0}))||t}))?bo:mo,ko=ro,So=wo,xo=Q,Eo=fe("species"),Oo=Array,Ao=function(t){var e;return ko(t)&&(e=t.constructor,(So(e)&&(e===Oo||ko(e.prototype))||xo(e)&&null===(e=e[Eo]))&&(e=void 0)),void 0===e?Oo:e},To=function(t,e){return new(Ao(t))(0===e?0:e)},Bo=Ye,Co=K,Ro=Jt,Io=Fr,Lo=To,zo=v([].push),Mo=function(t){var e=1===t,r=2===t,n=3===t,i=4===t,o=6===t,a=7===t,s=5===t||o;return function(u,c,l,f){for(var h,d,p=Ro(u),v=Co(p),g=Bo(c,l),_=Io(v),y=0,m=f||Lo,b=e?m(u,_):r||a?m(u,0):void 0;_>y;y++)if((s||y in v)&&(d=g(h=v[y],y,p),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:zo(b,h)}else switch(t){case 4:return!1;case 7:zo(b,h)}return o?-1:n||i?i:b}},jo={forEach:Mo(0),map:Mo(1),filter:Mo(2),some:Mo(3),every:Mo(4),find:Mo(5),findIndex:Mo(6),filterReject:Mo(7)},No=Ar,Po=n,Do=R,Fo=v,Uo=T,Go=yt,Ko=i,Vo=$t,Zo=at,Ho=er,Wo=X,Jo=we,Yo=mn,Xo=P,$o=Zn,qo=rn,Qo=Hn,ta=Yn,ea=li,ra=A,na=Xe,ia=bn,oa=I,aa=hi,sa=pi,ua=Zt,ca=Hr,la=re,fa=fe,ha=vi,da=xi,pa=Bi,va=Pi,ga=to,_a=jo.forEach,ya=Rn("hidden"),ma="Symbol",ba="prototype",wa=ga.set,ka=ga.getterFor(ma),Sa=Object[ba],xa=Po.Symbol,Ea=xa&&xa[ba],Oa=Po.TypeError,Aa=Po.QObject,Ta=ra.f,Ba=na.f,Ca=ta.f,Ra=oa.f,Ia=Fo([].push),La=ua("symbols"),za=ua("op-symbols"),Ma=ua("wks"),ja=!Aa||!Aa[ba]||!Aa[ba].findChild,Na=Uo&&Ko((function(){return 7!==$o(Ba({},"a",{get:function(){return Ba(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Ta(Sa,e);n&&delete Sa[e],Ba(t,e,r),n&&t!==Sa&&Ba(Sa,e,n)}:Ba,Pa=function(t,e){var r=La[t]=$o(Ea);return wa(r,{type:ma,tag:t,description:e}),Uo||(r.description=e),r},Da=function(t,e,r){t===Sa&&Da(za,e,r),Ho(t);var n=Jo(e);return Ho(r),Vo(La,n)?(r.enumerable?(Vo(t,ya)&&t[ya][n]&&(t[ya][n]=!1),r=$o(r,{enumerable:Xo(0,!1)})):(Vo(t,ya)||Ba(t,ya,Xo(1,{})),t[ya][n]=!0),Na(t,n,r)):Ba(t,n,r)},Fa=function(t,e){Ho(t);var r=Wo(e),n=qo(r).concat(Va(r));return _a(n,(function(e){Uo&&!Do(Ua,r,e)||Da(t,e,r[e])})),t},Ua=function(t){var e=Jo(t),r=Do(Ra,this,e);return!(this===Sa&&Vo(La,e)&&!Vo(za,e))&&(!(r||!Vo(this,e)||!Vo(La,e)||Vo(this,ya)&&this[ya][e])||r)},Ga=function(t,e){var r=Wo(t),n=Jo(e);if(r!==Sa||!Vo(La,n)||Vo(za,n)){var i=Ta(r,n);return!i||!Vo(La,n)||Vo(r,ya)&&r[ya][n]||(i.enumerable=!0),i}},Ka=function(t){var e=Ca(Wo(t)),r=[];return _a(e,(function(t){Vo(La,t)||Vo(ca,t)||Ia(r,t)})),r},Va=function(t){var e=t===Sa,r=Ca(e?za:Wo(t)),n=[];return _a(r,(function(t){!Vo(La,t)||e&&!Vo(Sa,t)||Ia(n,La[t])})),n};Go||(xa=function(){if(Zo(Ea,this))throw Oa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Yo(arguments[0]):void 0,e=la(t),r=function(t){this===Sa&&Do(r,za,t),Vo(this,ya)&&Vo(this[ya],e)&&(this[ya][e]=!1),Na(this,e,Xo(1,t))};return Uo&&ja&&Na(Sa,e,{configurable:!0,set:r}),Pa(e,t)},aa(Ea=xa[ba],"toString",(function(){return ka(this).tag})),aa(xa,"withoutSetter",(function(t){return Pa(la(t),t)})),oa.f=Ua,na.f=Da,ia.f=Fa,ra.f=Ga,Qo.f=ta.f=Ka,ea.f=Va,ha.f=function(t){return Pa(fa(t),t)},Uo&&sa(Ea,"description",{configurable:!0,get:function(){return ka(this).description}})),No({global:!0,constructor:!0,wrap:!0,forced:!Go,sham:!Go},{Symbol:xa}),_a(qo(Ma),(function(t){da(t)})),No({target:ma,stat:!0,forced:!Go},{useSetter:function(){ja=!0},useSimple:function(){ja=!1}}),No({target:"Object",stat:!0,forced:!Go,sham:!Uo},{create:function(t,e){return void 0===e?$o(t):Fa($o(t),e)},defineProperty:Da,defineProperties:Fa,getOwnPropertyDescriptor:Ga}),No({target:"Object",stat:!0,forced:!Go},{getOwnPropertyNames:Ka}),pa(),va(xa,ma),ca[ya]=!0;var Za=yt&&!!Symbol.for&&!!Symbol.keyFor,Ha=Ar,Wa=ot,Ja=$t,Ya=mn,Xa=Zt,$a=Za,qa=Xa("string-to-symbol-registry"),Qa=Xa("symbol-to-string-registry");Ha({target:"Symbol",stat:!0,forced:!$a},{for:function(t){var e=Ya(t);if(Ja(qa,e))return qa[e];var r=Wa("Symbol")(e);return qa[e]=r,Qa[r]=e,r}});var ts=Ar,es=$t,rs=xt,ns=Ot,is=Za,os=Zt("symbol-to-string-registry");ts({target:"Symbol",stat:!0,forced:!is},{keyFor:function(t){if(!rs(t))throw TypeError(ns(t)+" is not a symbol");if(es(os,t))return os[t]}});var as=v([].slice),ss=ro,us=O,cs=m,ls=mn,fs=v([].push),hs=Ar,ds=ot,ps=l,vs=R,gs=v,_s=i,ys=O,ms=xt,bs=as,ws=function(t){if(us(t))return t;if(ss(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?fs(r,i):"number"!=typeof i&&"Number"!==cs(i)&&"String"!==cs(i)||fs(r,ls(i))}var o=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(ss(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}},ks=yt,Ss=String,xs=ds("JSON","stringify"),Es=gs(/./.exec),Os=gs("".charAt),As=gs("".charCodeAt),Ts=gs("".replace),Bs=gs(1..toString),Cs=/[\uD800-\uDFFF]/g,Rs=/^[\uD800-\uDBFF]$/,Is=/^[\uDC00-\uDFFF]$/,Ls=!ks||_s((function(){var t=ds("Symbol")("stringify detection");return"[null]"!==xs([t])||"{}"!==xs({a:t})||"{}"!==xs(Object(t))})),zs=_s((function(){return'"\\udf06\\ud834"'!==xs("\udf06\ud834")||'"\\udead"'!==xs("\udead")})),Ms=function(t,e){var r=bs(arguments),n=ws(e);if(ys(n)||void 0!==t&&!ms(t))return r[1]=function(t,e){if(ys(n)&&(e=vs(n,this,Ss(t),e)),!ms(e))return e},ps(xs,null,r)},js=function(t,e,r){var n=Os(r,e-1),i=Os(r,e+1);return Es(Rs,t)&&!Es(Is,i)||Es(Is,t)&&!Es(Rs,n)?"\\u"+Bs(As(t,0),16):t};xs&&hs({target:"JSON",stat:!0,arity:3,forced:Ls||zs},{stringify:function(t,e,r){var n=bs(arguments),i=ps(Ls?Ms:xs,null,n);return zs&&"string"==typeof i?Ts(i,Cs,js):i}});var Ns=li,Ps=Jt;Ar({target:"Object",stat:!0,forced:!yt||i((function(){Ns.f(1)}))},{getOwnPropertySymbols:function(t){var e=Ns.f;return e?e(Ps(t)):[]}});var Ds=tt.Object.getOwnPropertySymbols,Fs=e(Ds),Us=i,Gs=pt,Ks=fe("species"),Vs=function(t){return Gs>=51||!Us((function(){var e=[];return(e.constructor={})[Ks]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Zs=jo.filter;Ar({target:"Array",proto:!0,forced:!Vs("filter")},{filter:function(t){return Zs(this,t,arguments.length>1?arguments[1]:void 0)}});var Hs=tt,Ws=function(t){return Hs[t+"Prototype"]},Js=Ws("Array").filter,Ys=at,Xs=Js,$s=Array.prototype,qs=e((function(t){var e=t.filter;return t===$s||Ys($s,t)&&e===$s.filter?Xs:e})),Qs={exports:{}},tu=Ar,eu=i,ru=X,nu=A.f,iu=T;tu({target:"Object",stat:!0,forced:!iu||eu((function(){nu(1)})),sham:!iu},{getOwnPropertyDescriptor:function(t,e){return nu(ru(t),e)}});var ou=tt.Object,au=Qs.exports=function(t,e){return ou.getOwnPropertyDescriptor(t,e)};ou.getOwnPropertyDescriptor.sham&&(au.sham=!0);var su=Qs.exports,uu=e(su),cu=T,lu=ro,fu=TypeError,hu=Object.getOwnPropertyDescriptor,du=cu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(lu(t)&&!hu(t,"length").writable)throw fu("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},pu=TypeError,vu=function(t){if(t>9007199254740991)throw pu("Maximum allowed index exceeded");return t},gu=Jt,_u=Fr,yu=du,mu=vu;Ar({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=gu(this),r=_u(e),n=arguments.length;mu(r+n);for(var i=0;i<n;i++)e[r]=arguments[i],r++;return yu(e,r),r}});var bu,wu,ku,Su=Ws("Array").push,xu=at,Eu=Su,Ou=Array.prototype,Au=e((function(t){var e=t.push;return t===Ou||xu(Ou,t)&&e===Ou.push?Eu:e})),Tu={},Bu=T,Cu=$t,Ru=Function.prototype,Iu=Bu&&Object.getOwnPropertyDescriptor,Lu=Cu(Ru,"name"),zu={EXISTS:Lu,PROPER:Lu&&"something"===function(){}.name,CONFIGURABLE:Lu&&(!Bu||Bu&&Iu(Ru,"name").configurable)},Mu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ju=$t,Nu=O,Pu=Jt,Du=Mu,Fu=Rn("IE_PROTO"),Uu=Object,Gu=Uu.prototype,Ku=Du?Uu.getPrototypeOf:function(t){var e=Pu(t);if(ju(e,Fu))return e[Fu];var r=e.constructor;return Nu(r)&&e instanceof r?r.prototype:e instanceof Uu?Gu:null},Vu=i,Zu=O,Hu=Q,Wu=Zn,Ju=Ku,Yu=hi,Xu=fe("iterator"),$u=!1;[].keys&&("next"in(ku=[].keys())?(wu=Ju(Ju(ku)))!==Object.prototype&&(bu=wu):$u=!0);var qu=!Hu(bu)||Vu((function(){var t={};return bu[Xu].call(t)!==t}));Zu((bu=qu?{}:Wu(bu))[Xu])||Yu(bu,Xu,(function(){return this}));var Qu={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:$u},tc=Qu.IteratorPrototype,ec=Zn,rc=P,nc=Pi,ic=Tu,oc=function(){return this},ac=v,sc=Ct,uc=O,cc=String,lc=TypeError,fc=function(t,e,r){try{return ac(sc(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},hc=er,dc=function(t){if("object"==typeof t||uc(t))return t;throw lc("Can't set "+cc(t)+" as a prototype")},pc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=fc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return hc(r),dc(n),e?t(r,n):r.__proto__=n,r}}():void 0),vc=Ar,gc=R,_c=zu,yc=function(t,e,r,n){var i=e+" Iterator";return t.prototype=ec(tc,{next:rc(+!n,r)}),nc(t,i,!1,!0),ic[i]=oc,t},mc=Ku,bc=Pi,wc=hi,kc=Tu,Sc=Qu,xc=_c.PROPER,Ec=Sc.BUGGY_SAFARI_ITERATORS,Oc=fe("iterator"),Ac="keys",Tc="values",Bc="entries",Cc=function(){return this},Rc=function(t,e,r,n,i,o,a){yc(r,e,n);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Ec&&t in d)return d[t];switch(t){case Ac:case Tc:case Bc:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[Oc]||d["@@iterator"]||i&&d[i],v=!Ec&&p||l(i),g="Array"===e&&d.entries||p;if(g&&(s=mc(g.call(new t)))!==Object.prototype&&s.next&&(bc(s,f,!0,!0),kc[f]=Cc),xc&&i===Tc&&p&&p.name!==Tc&&(h=!0,v=function(){return gc(p,this)}),i)if(u={values:l(Tc),keys:o?v:l(Ac),entries:l(Bc)},a)for(c in u)(Ec||h||!(c in d))&&wc(d,c,u[c]);else vc({target:e,proto:!0,forced:Ec||h},u);return a&&d[Oc]!==v&&wc(d,Oc,v,{name:i}),kc[e]=v,u},Ic=function(t,e){return{value:t,done:e}},Lc=X,zc=Tu,Mc=to;Xe.f;var jc=Rc,Nc=Ic,Pc="Array Iterator",Dc=Mc.set,Fc=Mc.getterFor(Pc);jc(Array,"Array",(function(t,e){Dc(this,{type:Pc,target:Lc(t),index:0,kind:e})}),(function(){var t=Fc(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Nc(void 0,!0);switch(r){case"keys":return Nc(n,!1);case"values":return Nc(e[n],!1)}return Nc([n,e[n]],!1)}),"values"),zc.Arguments=zc.Array;var Uc={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},Gc=n,Kc=gn,Vc=vr,Zc=Tu,Hc=fe("toStringTag");for(var Wc in Uc){var Jc=Gc[Wc],Yc=Jc&&Jc.prototype;Yc&&Kc(Yc)!==Hc&&Vc(Yc,Hc,Wc),Zc[Wc]=Zc.Array}var Xc=i,$c=function(t,e){var r=[][t];return!!r&&Xc((function(){r.call(null,e||function(){return 1},1)}))},qc=jo.forEach,Qc=$c("forEach")?[].forEach:function(t){return qc(this,t,arguments.length>1?arguments[1]:void 0)};Ar({target:"Array",proto:!0,forced:[].forEach!==Qc},{forEach:Qc});var tl=Ws("Array").forEach,el=gn,rl=$t,nl=at,il=tl,ol=Array.prototype,al={DOMTokenList:!0,NodeList:!0},sl=function(t){var e=t.forEach;return t===ol||nl(ol,t)&&e===ol.forEach||rl(al,el(t))?il:e},ul=e(sl),cl=ot,ll=Hn,fl=li,hl=er,dl=v([].concat),pl=cl("Reflect","ownKeys")||function(t){var e=ll.f(hl(t)),r=fl.f;return r?dl(e,r(t)):e},vl=pl,gl=X,_l=A,yl=Qn;Ar({target:"Object",stat:!0,sham:!T},{getOwnPropertyDescriptors:function(t){for(var e,r,n=gl(t),i=_l.f,o=vl(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&yl(a,e,r);return a}});var ml=e(tt.Object.getOwnPropertyDescriptors),bl={exports:{}},wl=Ar,kl=T,Sl=bn.f;wl({target:"Object",stat:!0,forced:Object.defineProperties!==Sl,sham:!kl},{defineProperties:Sl});var xl=tt.Object,El=bl.exports=function(t,e){return xl.defineProperties(t,e)};xl.defineProperties.sham&&(El.sham=!0);var Ol=e(bl.exports),Al={exports:{}},Tl=Ar,Bl=T,Cl=Xe.f;Tl({target:"Object",stat:!0,forced:Object.defineProperty!==Cl,sham:!Bl},{defineProperty:Cl});var Rl=tt.Object,Il=Al.exports=function(t,e,r){return Rl.defineProperty(t,e,r)};Rl.defineProperty.sham&&(Il.sham=!0);var Ll=Al.exports,zl=e(Ll),Ml=Ar,jl=i,Nl=ro,Pl=Q,Dl=Jt,Fl=Fr,Ul=vu,Gl=Qn,Kl=To,Vl=Vs,Zl=pt,Hl=fe("isConcatSpreadable"),Wl=Zl>=51||!jl((function(){var t=[];return t[Hl]=!1,t.concat()[0]!==t})),Jl=function(t){if(!Pl(t))return!1;var e=t[Hl];return void 0!==e?!!e:Nl(t)};Ml({target:"Array",proto:!0,arity:1,forced:!Wl||!Vl("concat")},{concat:function(t){var e,r,n,i,o,a=Dl(this),s=Kl(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Jl(o=-1===e?a:arguments[e]))for(i=Fl(o),Ul(u+i),r=0;r<i;r++,u++)r in o&&Gl(s,u,o[r]);else Ul(u+1),Gl(s,u++,o);return s.length=u,s}}),xi("asyncIterator"),xi("hasInstance"),xi("isConcatSpreadable"),xi("iterator"),xi("match"),xi("matchAll"),xi("replace"),xi("search"),xi("species"),xi("split");var Yl=Bi;xi("toPrimitive"),Yl();var Xl=ot,$l=Pi;xi("toStringTag"),$l(Xl("Symbol"),"Symbol"),xi("unscopables"),Pi(n.JSON,"JSON",!0);var ql=tt.Symbol,Ql=fe,tf=Xe.f,ef=Ql("metadata"),rf=Function.prototype;void 0===rf[ef]&&tf(rf,ef,{value:null}),xi("asyncDispose"),xi("dispose"),xi("metadata");var nf=ql,of=v,af=ot("Symbol"),sf=af.keyFor,uf=of(af.prototype.valueOf),cf=af.isRegisteredSymbol||function(t){try{return void 0!==sf(uf(t))}catch(e){return!1}};Ar({target:"Symbol",stat:!0},{isRegisteredSymbol:cf});for(var lf=Zt,ff=ot,hf=v,df=xt,pf=fe,vf=ff("Symbol"),gf=vf.isWellKnownSymbol,_f=ff("Object","getOwnPropertyNames"),yf=hf(vf.prototype.valueOf),mf=lf("wks"),bf=0,wf=_f(vf),kf=wf.length;bf<kf;bf++)try{var Sf=wf[bf];df(vf[Sf])&&pf(Sf)}catch(dC){}var xf=function(t){if(gf&&gf(t))return!0;try{for(var e=yf(t),r=0,n=_f(mf),i=n.length;r<i;r++)if(mf[n[r]]==e)return!0}catch(dC){}return!1};Ar({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:xf}),xi("matcher"),xi("observable"),Ar({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:cf}),Ar({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:xf}),xi("metadataKey"),xi("patternMatch"),xi("replaceAll");var Ef=e(nf),Of=v,Af=Rr,Tf=mn,Bf=W,Cf=Of("".charAt),Rf=Of("".charCodeAt),If=Of("".slice),Lf=function(t){return function(e,r){var n,i,o=Tf(Bf(e)),a=Af(r),s=o.length;return a<0||a>=s?t?"":void 0:(n=Rf(o,a))<55296||n>56319||a+1===s||(i=Rf(o,a+1))<56320||i>57343?t?Cf(o,a):n:t?If(o,a,a+2):i-56320+(n-55296<<10)+65536}},zf={codeAt:Lf(!1),charAt:Lf(!0)}.charAt,Mf=mn,jf=to,Nf=Rc,Pf=Ic,Df="String Iterator",Ff=jf.set,Uf=jf.getterFor(Df);Nf(String,"String",(function(t){Ff(this,{type:Df,string:Mf(t),index:0})}),(function(){var t,e=Uf(this),r=e.string,n=e.index;return n>=r.length?Pf(void 0,!0):(t=zf(r,n),e.index+=t.length,Pf(t,!1))}));var Gf=e(vi.f("iterator"));function Kf(t){return(Kf="function"==typeof Ef&&"symbol"==typeof Gf?function(t){return typeof t}:function(t){return t&&"function"==typeof Ef&&t.constructor===Ef&&t!==Ef.prototype?"symbol":typeof t})(t)}var Vf=e(vi.f("toPrimitive"));function Zf(t){var e=function(t,e){if("object"!==Kf(t)||null===t)return t;var r=t[Vf];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Kf(e)?e:String(e)}function Hf(t,e,r){return(e=Zf(e))in t?zl(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wf(t,e){var r=sn(t);if(Fs){var n=Fs(t);e&&(n=qs(n).call(n,(function(e){return uu(t,e).enumerable}))),Au(r).apply(r,n)}return r}function Jf(t){for(var e=1;e<arguments.length;e++){var r,n,i=null!=arguments[e]?arguments[e]:{};e%2?ul(r=Wf(Object(i),!0)).call(r,(function(e){Hf(t,e,i[e])})):ml?Ol(t,ml(i)):ul(n=Wf(Object(i))).call(n,(function(e){zl(t,e,uu(i,e))}))}return t}Ar({target:"Object",stat:!0,sham:!T},{create:Zn});var Yf=tt.Object,Xf=function(t,e){return Yf.create(t,e)},$f=e(Xf),qf=Jt,Qf=Ku,th=Mu;Ar({target:"Object",stat:!0,forced:i((function(){Qf(1)})),sham:!th},{getPrototypeOf:function(t){return Qf(qf(t))}});var eh=e(tt.Object.getPrototypeOf);Ar({target:"Object",stat:!0},{setPrototypeOf:pc});var rh=e(tt.Object.setPrototypeOf),nh=$t,ih=pl,oh=A,ah=Xe,sh=Q,uh=vr,ch=Error,lh=v("".replace),fh=String(ch("zxcasd").stack),hh=/\n\s*at [^:]*:[^\n]*/,dh=hh.test(fh),ph=P,vh=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ph(1,7)),7!==t.stack)})),gh=vr,_h=function(t,e){if(dh&&"string"==typeof t&&!ch.prepareStackTrace)for(;e--;)t=lh(t,hh,"");return t},yh=vh,mh=Error.captureStackTrace,bh=Tu,wh=fe("iterator"),kh=Array.prototype,Sh=function(t){return void 0!==t&&(bh.Array===t||kh[wh]===t)},xh=gn,Eh=Lt,Oh=V,Ah=Tu,Th=fe("iterator"),Bh=function(t){if(!Oh(t))return Eh(t,Th)||Eh(t,"@@iterator")||Ah[xh(t)]},Ch=R,Rh=Ct,Ih=er,Lh=Ot,zh=Bh,Mh=TypeError,jh=function(t,e){var r=arguments.length<2?zh(t):e;if(Rh(r))return Ih(Ch(r,t));throw Mh(Lh(t)+" is not iterable")},Nh=R,Ph=er,Dh=Lt,Fh=function(t,e,r){var n,i;Ph(t);try{if(!(n=Dh(t,"return"))){if("throw"===e)throw r;return r}n=Nh(n,t)}catch(dC){i=!0,n=dC}if("throw"===e)throw r;if(i)throw n;return Ph(n),r},Uh=Ye,Gh=R,Kh=er,Vh=Ot,Zh=Sh,Hh=Fr,Wh=at,Jh=jh,Yh=Bh,Xh=Fh,$h=TypeError,qh=function(t,e){this.stopped=t,this.result=e},Qh=qh.prototype,td=function(t,e,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Uh(e,l),g=function(t){return n&&Xh(n,"normal",t),new qh(!0,t)},_=function(t){return f?(Kh(t),p?v(t[0],t[1],g):v(t[0],t[1])):p?v(t,g):v(t)};if(h)n=t.iterator;else if(d)n=t;else{if(!(i=Yh(t)))throw $h(Vh(t)+" is not iterable");if(Zh(i)){for(o=0,a=Hh(t);a>o;o++)if((s=_(t[o]))&&Wh(Qh,s))return s;return new qh(!1)}n=Jh(t,i)}for(u=h?t.next:n.next;!(c=Gh(u,n)).done;){try{s=_(c.value)}catch(dC){Xh(n,"throw",dC)}if("object"==typeof s&&s&&Wh(Qh,s))return s}return new qh(!1)},ed=mn,rd=Ar,nd=at,id=Ku,od=pc,ad=function(t,e,r){for(var n=ih(e),i=ah.f,o=oh.f,a=0;a<n.length;a++){var s=n[a];nh(t,s)||r&&nh(r,s)||i(t,s,o(e,s))}},sd=Zn,ud=vr,cd=P,ld=function(t,e){sh(e)&&"cause"in e&&uh(t,"cause",e.cause)},fd=function(t,e,r,n){yh&&(mh?mh(t,e):gh(t,"stack",_h(r,n)))},hd=td,dd=function(t,e){return void 0===t?arguments.length<2?"":e:ed(t)},pd=fe("toStringTag"),vd=Error,gd=[].push,_d=function(t,e){var r,n=nd(yd,this);od?r=od(vd(),n?id(this):yd):(r=n?this:sd(yd),ud(r,pd,"Error")),void 0!==e&&ud(r,"message",dd(e)),fd(r,_d,r.stack,1),arguments.length>2&&ld(r,arguments[2]);var i=[];return hd(t,gd,{that:i}),ud(r,"errors",i),r};od?od(_d,vd):ad(_d,vd,{name:!0});var yd=_d.prototype=sd(vd.prototype,{constructor:cd(1,_d),message:cd(1,""),name:cd(1,"AggregateError")});rd({global:!0,constructor:!0,arity:2},{AggregateError:_d});var md,bd,wd,kd,Sd="process"===m(n.process),xd=ot,Ed=pi,Od=T,Ad=fe("species"),Td=function(t){var e=xd(t);Od&&e&&!e[Ad]&&Ed(e,Ad,{configurable:!0,get:function(){return this}})},Bd=at,Cd=TypeError,Rd=function(t,e){if(Bd(e,t))return t;throw Cd("Incorrect invocation")},Id=wo,Ld=Ot,zd=TypeError,Md=function(t){if(Id(t))return t;throw zd(Ld(t)+" is not a constructor")},jd=er,Nd=Md,Pd=V,Dd=fe("species"),Fd=function(t,e){var r,n=jd(t).constructor;return void 0===n||Pd(r=jd(n)[Dd])?e:Nd(r)},Ud=TypeError,Gd=function(t,e){if(t<e)throw Ud("Not enough arguments");return t},Kd=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),Vd=n,Zd=l,Hd=Ye,Wd=O,Jd=$t,Yd=i,Xd=Tn,$d=as,qd=Ee,Qd=Gd,tp=Kd,ep=Sd,rp=Vd.setImmediate,np=Vd.clearImmediate,ip=Vd.process,op=Vd.Dispatch,ap=Vd.Function,sp=Vd.MessageChannel,up=Vd.String,cp=0,lp={},fp="onreadystatechange";Yd((function(){md=Vd.location}));var hp=function(t){if(Jd(lp,t)){var e=lp[t];delete lp[t],e()}},dp=function(t){return function(){hp(t)}},pp=function(t){hp(t.data)},vp=function(t){Vd.postMessage(up(t),md.protocol+"//"+md.host)};rp&&np||(rp=function(t){Qd(arguments.length,1);var e=Wd(t)?t:ap(t),r=$d(arguments,1);return lp[++cp]=function(){Zd(e,void 0,r)},bd(cp),cp},np=function(t){delete lp[t]},ep?bd=function(t){ip.nextTick(dp(t))}:op&&op.now?bd=function(t){op.now(dp(t))}:sp&&!tp?(kd=(wd=new sp).port2,wd.port1.onmessage=pp,bd=Hd(kd.postMessage,kd)):Vd.addEventListener&&Wd(Vd.postMessage)&&!Vd.importScripts&&md&&"file:"!==md.protocol&&!Yd(vp)?(bd=vp,Vd.addEventListener("message",pp,!1)):bd=fp in qd("script")?function(t){Xd.appendChild(qd("script"))[fp]=function(){Xd.removeChild(this),hp(t)}}:function(t){setTimeout(dp(t),0)});var gp={set:rp,clear:np},_p=function(){this.head=null,this.tail=null};_p.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var yp,mp,bp,wp,kp,Sp=_p,xp=/ipad|iphone|ipod/i.test(st)&&"undefined"!=typeof Pebble,Ep=/web0s(?!.*chrome)/i.test(st),Op=n,Ap=Ye,Tp=A.f,Bp=gp.set,Cp=Sp,Rp=Kd,Ip=xp,Lp=Ep,zp=Sd,Mp=Op.MutationObserver||Op.WebKitMutationObserver,jp=Op.document,Np=Op.process,Pp=Op.Promise,Dp=Tp(Op,"queueMicrotask"),Fp=Dp&&Dp.value;if(!Fp){var Up=new Cp,Gp=function(){var t,e;for(zp&&(t=Np.domain)&&t.exit();e=Up.get();)try{e()}catch(dC){throw Up.head&&yp(),dC}t&&t.enter()};Rp||zp||Lp||!Mp||!jp?!Ip&&Pp&&Pp.resolve?((wp=Pp.resolve(void 0)).constructor=Pp,kp=Ap(wp.then,wp),yp=function(){kp(Gp)}):zp?yp=function(){Np.nextTick(Gp)}:(Bp=Ap(Bp,Op),yp=function(){Bp(Gp)}):(mp=!0,bp=jp.createTextNode(""),new Mp(Gp).observe(bp,{characterData:!0}),yp=function(){bp.data=mp=!mp}),Fp=function(t){Up.head||yp(),Up.add(t)}}var Kp=Fp,Vp=function(t){try{return{error:!1,value:t()}}catch(dC){return{error:!0,value:dC}}},Zp=n.Promise,Hp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Wp=!Hp&&!Sd&&"object"==typeof window&&"object"==typeof document,Jp=n,Yp=Zp,Xp=O,$p=Ze,qp=ao,Qp=fe,tv=Wp,ev=Hp,rv=pt,nv=Yp&&Yp.prototype,iv=Qp("species"),ov=!1,av=Xp(Jp.PromiseRejectionEvent),sv={CONSTRUCTOR:$p("Promise",(function(){var t=qp(Yp),e=t!==String(Yp);if(!e&&66===rv)return!0;if(!nv.catch||!nv.finally)return!0;if(!rv||rv<51||!/native code/.test(t)){var r=new Yp((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[iv]=n,!(ov=r.then((function(){}))instanceof n))return!0}return!e&&(tv||ev)&&!av})),REJECTION_EVENT:av,SUBCLASSING:ov},uv={},cv=Ct,lv=TypeError,fv=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw lv("Bad Promise constructor");e=t,r=n})),this.resolve=cv(e),this.reject=cv(r)};uv.f=function(t){return new fv(t)};var hv,dv,pv=Ar,vv=Sd,gv=n,_v=R,yv=hi,mv=Pi,bv=Td,wv=Ct,kv=O,Sv=Q,xv=Rd,Ev=Fd,Ov=gp.set,Av=Kp,Tv=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(dC){}},Bv=Vp,Cv=Sp,Rv=to,Iv=Zp,Lv=sv,zv=uv,Mv="Promise",jv=Lv.CONSTRUCTOR,Nv=Lv.REJECTION_EVENT,Pv=Rv.getterFor(Mv),Dv=Rv.set,Fv=Iv&&Iv.prototype,Uv=Iv,Gv=Fv,Kv=gv.TypeError,Vv=gv.document,Zv=gv.process,Hv=zv.f,Wv=Hv,Jv=!!(Vv&&Vv.createEvent&&gv.dispatchEvent),Yv="unhandledrejection",Xv=function(t){var e;return!(!Sv(t)||!kv(e=t.then))&&e},$v=function(t,e){var r,n,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&rg(e),e.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===t.promise?c(Kv("Promise-chain cycle")):(n=Xv(r))?_v(n,r,u,c):u(r)):c(o)}catch(dC){l&&!i&&l.exit(),c(dC)}},qv=function(t,e){t.notified||(t.notified=!0,Av((function(){for(var r,n=t.reactions;r=n.get();)$v(r,t);t.notified=!1,e&&!t.rejection&&tg(t)})))},Qv=function(t,e,r){var n,i;Jv?((n=Vv.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),gv.dispatchEvent(n)):n={promise:e,reason:r},!Nv&&(i=gv["on"+t])?i(n):t===Yv&&Tv("Unhandled promise rejection",r)},tg=function(t){_v(Ov,gv,(function(){var e,r=t.facade,n=t.value;if(eg(t)&&(e=Bv((function(){vv?Zv.emit("unhandledRejection",n,r):Qv(Yv,r,n)})),t.rejection=vv||eg(t)?2:1,e.error))throw e.value}))},eg=function(t){return 1!==t.rejection&&!t.parent},rg=function(t){_v(Ov,gv,(function(){var e=t.facade;vv?Zv.emit("rejectionHandled",e):Qv("rejectionhandled",e,t.value)}))},ng=function(t,e,r){return function(n){t(e,n,r)}},ig=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,qv(t,!0))},og=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Kv("Promise can't be resolved itself");var n=Xv(e);n?Av((function(){var r={done:!1};try{_v(n,e,ng(og,r,t),ng(ig,r,t))}catch(dC){ig(r,dC,t)}})):(t.value=e,t.state=1,qv(t,!1))}catch(dC){ig({done:!1},dC,t)}}};jv&&(Gv=(Uv=function(t){xv(this,Gv),wv(t),_v(hv,this);var e=Pv(this);try{t(ng(og,e),ng(ig,e))}catch(dC){ig(e,dC)}}).prototype,(hv=function(t){Dv(this,{type:Mv,done:!1,notified:!1,parent:!1,reactions:new Cv,rejection:!1,state:0,value:void 0})}).prototype=yv(Gv,"then",(function(t,e){var r=Pv(this),n=Hv(Ev(this,Uv));return r.parent=!0,n.ok=!kv(t)||t,n.fail=kv(e)&&e,n.domain=vv?Zv.domain:void 0,0===r.state?r.reactions.add(n):Av((function(){$v(n,r)})),n.promise})),dv=function(){var t=new hv,e=Pv(t);this.promise=t,this.resolve=ng(og,e),this.reject=ng(ig,e)},zv.f=Hv=function(t){return t===Uv||undefined===t?new dv(t):Wv(t)}),pv({global:!0,constructor:!0,wrap:!0,forced:jv},{Promise:Uv}),mv(Uv,Mv,!1,!0),bv(Mv);var ag=fe("iterator"),sg=!1;try{var ug=0,cg={next:function(){return{done:!!ug++}},return:function(){sg=!0}};cg[ag]=function(){return this},Array.from(cg,(function(){throw 2}))}catch(dC){}var lg=function(t,e){if(!e&&!sg)return!1;var r=!1;try{var n={};n[ag]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(dC){}return r},fg=Zp,hg=sv.CONSTRUCTOR||!lg((function(t){fg.all(t).then(void 0,(function(){}))})),dg=R,pg=Ct,vg=uv,gg=Vp,_g=td;Ar({target:"Promise",stat:!0,forced:hg},{all:function(t){var e=this,r=vg.f(e),n=r.resolve,i=r.reject,o=gg((function(){var r=pg(e.resolve),o=[],a=0,s=1;_g(t,(function(t){var u=a++,c=!1;s++,dg(r,e,t).then((function(t){c||(c=!0,o[u]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var yg=Ar,mg=sv.CONSTRUCTOR;Zp&&Zp.prototype,yg({target:"Promise",proto:!0,forced:mg,real:!0},{catch:function(t){return this.then(void 0,t)}});var bg=R,wg=Ct,kg=uv,Sg=Vp,xg=td;Ar({target:"Promise",stat:!0,forced:hg},{race:function(t){var e=this,r=kg.f(e),n=r.reject,i=Sg((function(){var i=wg(e.resolve);xg(t,(function(t){bg(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Eg=R,Og=uv;Ar({target:"Promise",stat:!0,forced:sv.CONSTRUCTOR},{reject:function(t){var e=Og.f(this);return Eg(e.reject,void 0,t),e.promise}});var Ag=er,Tg=Q,Bg=uv,Cg=function(t,e){if(Ag(t),Tg(e)&&e.constructor===t)return e;var r=Bg.f(t);return(0,r.resolve)(e),r.promise},Rg=Ar,Ig=Zp,Lg=sv.CONSTRUCTOR,zg=Cg,Mg=ot("Promise"),jg=!Lg;Rg({target:"Promise",stat:!0,forced:true},{resolve:function(t){return zg(jg&&this===Mg?Ig:this,t)}});var Ng=R,Pg=Ct,Dg=uv,Fg=Vp,Ug=td;Ar({target:"Promise",stat:!0,forced:hg},{allSettled:function(t){var e=this,r=Dg.f(e),n=r.resolve,i=r.reject,o=Fg((function(){var r=Pg(e.resolve),i=[],o=0,a=1;Ug(t,(function(t){var s=o++,u=!1;a++,Ng(r,e,t).then((function(t){u||(u=!0,i[s]={status:"fulfilled",value:t},--a||n(i))}),(function(t){u||(u=!0,i[s]={status:"rejected",reason:t},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Gg=R,Kg=Ct,Vg=ot,Zg=uv,Hg=Vp,Wg=td,Jg="No one promise resolved";Ar({target:"Promise",stat:!0,forced:hg},{any:function(t){var e=this,r=Vg("AggregateError"),n=Zg.f(e),i=n.resolve,o=n.reject,a=Hg((function(){var n=Kg(e.resolve),a=[],s=0,u=1,c=!1;Wg(t,(function(t){var l=s++,f=!1;u++,Gg(n,e,t).then((function(t){f||c||(c=!0,i(t))}),(function(t){f||c||(f=!0,a[l]=t,--u||o(new r(a,Jg)))}))})),--u||o(new r(a,Jg))}));return a.error&&o(a.value),n.promise}});var Yg=Ar,Xg=Zp,$g=i,qg=ot,Qg=O,t_=Fd,e_=Cg,r_=Xg&&Xg.prototype;Yg({target:"Promise",proto:!0,real:!0,forced:!!Xg&&$g((function(){r_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=t_(this,qg("Promise")),r=Qg(t);return this.then(r?function(r){return e_(e,t()).then((function(){return r}))}:t,r?function(r){return e_(e,t()).then((function(){throw r}))}:t)}});var n_=tt.Promise,i_=uv;Ar({target:"Promise",stat:!0},{withResolvers:function(){var t=i_.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var o_=n_,a_=uv,s_=Vp;Ar({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=a_.f(this),r=s_(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var u_=o_,c_=e(u_),l_=Ar,f_=ro,h_=v([].reverse),d_=[1,2];l_({target:"Array",proto:!0,forced:String(d_)===String(d_.reverse())},{reverse:function(){return f_(this)&&(this.length=this.length),h_(this)}});var p_=Ws("Array").reverse,v_=at,g_=p_,__=Array.prototype,y_=e((function(t){var e=t.reverse;return t===__||v_(__,t)&&e===__.reverse?g_:e})),m_=Ar,b_=ro,w_=wo,k_=Q,S_=Mr,x_=Fr,E_=X,O_=Qn,A_=fe,T_=as,B_=Vs("slice"),C_=A_("species"),R_=Array,I_=Math.max;m_({target:"Array",proto:!0,forced:!B_},{slice:function(t,e){var r,n,i,o=E_(this),a=x_(o),s=S_(t,a),u=S_(void 0===e?a:e,a);if(b_(o)&&(r=o.constructor,(w_(r)&&(r===R_||b_(r.prototype))||k_(r)&&null===(r=r[C_]))&&(r=void 0),r===R_||void 0===r))return T_(o,s,u);for(n=new(void 0===r?R_:r)(I_(u-s,0)),i=0;s<u;s++,i++)s in o&&O_(n,i,o[s]);return n.length=i,n}});var L_=Ws("Array").slice,z_=at,M_=L_,j_=Array.prototype,N_=function(t){var e=t.slice;return t===j_||z_(j_,t)&&e===j_.slice?M_:e},P_=e(N_);function D_(){D_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=zl||function(t,e,r){t[e]=r.value},o="function"==typeof Ef?Ef:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return zl(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(R){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,a=$f(o.prototype),s=new B(n||[]);return i(a,"_invoke",{value:E(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function _(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var w=eh&&eh(eh(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var k=m.prototype=_.prototype=$f(b);function S(t){var e;ul(e=["next","throw","return"]).call(e,(function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Kf(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,r,n){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=f(e,r,n);if("normal"===c.type){if(i=n.done?v:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=f(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),Au(e=this.tryEntries).call(e,r)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],ul(t).call(t,A,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(Kf(e)+" is not iterable")}return y.prototype=m,i(k,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return rh?rh(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=$f(k),t},e.awrap=function(t){return{__await:t}},S(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=c_);var a=new x(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)Au(r).call(r,n);return y_(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,B.prototype={constructor:B,reset:function(e){var r;if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,ul(r=this.tryEntries).call(r,T),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+P_(i).call(i,1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function F_(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(dC){return void r(dC)}s.done?e(u):c_.resolve(u).then(n,i)}function U_(t){return function(){var e=this,r=arguments;return new c_((function(n,i){var o=t.apply(e,r);function a(t){F_(o,n,i,a,s,"next",t)}function s(t){F_(o,n,i,a,s,"throw",t)}a(void 0)}))}}function G_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),zl(t,Zf(n.key),n)}}function V_(t,e,r){return e&&K_(t.prototype,e),r&&K_(t,r),zl(t,"prototype",{writable:!1}),t}function Z_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var H_=v,W_=Ct,J_=Q,Y_=$t,X_=as,$_=o,q_=Function,Q_=H_([].concat),ty=H_([].join),ey={},ry=$_?q_.bind:function(t){var e=W_(this),r=e.prototype,n=X_(arguments,1),i=function(){var r=Q_(n,X_(arguments));return this instanceof i?function(t,e,r){if(!Y_(ey,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";ey[e]=q_("C,a","return new C("+ty(n,",")+")")}return ey[e](t,r)}(e,r.length,r):e.apply(t,r)};return J_(r)&&(i.prototype=r),i},ny=ry;Ar({target:"Function",proto:!0,forced:Function.bind!==ny},{bind:ny});var iy=Ws("Function").bind,oy=at,ay=iy,sy=Function.prototype,uy=function(t){var e=t.bind;return t===sy||oy(sy,t)&&e===sy.bind?ay:e},cy=e(uy);function ly(t,e){var r;return(ly=rh?cy(r=rh).call(r):function(t,e){return t.__proto__=e,t})(t,e)}function fy(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=$f(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),zl(t,"prototype",{writable:!1}),e&&ly(t,e)}var hy=Ar,dy=l,py=ry,vy=Md,gy=er,_y=Q,yy=Zn,my=i,by=ot("Reflect","construct"),wy=Object.prototype,ky=[].push,Sy=my((function(){function t(){}return!(by((function(){}),[],t)instanceof t)})),xy=!my((function(){by((function(){}))})),Ey=Sy||xy;hy({target:"Reflect",stat:!0,forced:Ey,sham:Ey},{construct:function(t,e){vy(t),gy(e);var r=arguments.length<3?t:vy(arguments[2]);if(xy&&!Sy)return by(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return dy(ky,n,e),new(dy(py,t,n))}var i=r.prototype,o=yy(_y(i)?i:wy),a=dy(t,o,e);return _y(a)?a:o}});var Oy=e(tt.Reflect.construct);function Ay(t){var e;return(Ay=rh?cy(e=eh).call(e):function(t){return t.__proto__||eh(t)})(t)}function Ty(t){var e=function(){if("undefined"==typeof Reflect||!Oy)return!1;if(Oy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Oy(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ay(t);if(e){var i=Ay(this).constructor;r=Oy(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Kf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z_(t)}(this,r)}}var By=e(Ll),Cy=e(su),Ry=tt,Iy=l;Ry.JSON||(Ry.JSON={stringify:JSON.stringify});var Ly=function(t,e,r){return Iy(Ry.JSON.stringify,null,arguments)},zy=e(Ly),My=e(sl),jy=e(an),Ny=e(u_),Py="\t\n\v\f\r                 \u2028\u2029\ufeff",Dy=W,Fy=mn,Uy=Py,Gy=v("".replace),Ky=RegExp("^["+Uy+"]+"),Vy=RegExp("(^|[^"+Uy+"])["+Uy+"]+$"),Zy=function(t){return function(e){var r=Fy(Dy(e));return 1&t&&(r=Gy(r,Ky,"")),2&t&&(r=Gy(r,Vy,"$1")),r}},Hy={start:Zy(1),end:Zy(2),trim:Zy(3)},Wy=n,Jy=i,Yy=v,Xy=mn,$y=Hy.trim,qy=Py,Qy=Wy.parseInt,tm=Wy.Symbol,em=tm&&tm.iterator,rm=/^[+-]?0x/i,nm=Yy(rm.exec),im=8!==Qy(qy+"08")||22!==Qy(qy+"0x16")||em&&!Jy((function(){Qy(Object(em))}))?function(t,e){var r=$y(Xy(t));return Qy(r,e>>>0||(nm(rm,r)?16:10))}:Qy;Ar({global:!0,forced:parseInt!==im},{parseInt:im});var om=e(tt.parseInt),am=jo.map;Ar({target:"Array",proto:!0,forced:!Vs("map")},{map:function(t){return am(this,t,arguments.length>1?arguments[1]:void 0)}});var sm=Ws("Array").map,um=at,cm=sm,lm=Array.prototype,fm=e((function(t){var e=t.map;return t===lm||um(lm,t)&&e===lm.map?cm:e})),hm=e(N_),dm=jo.every;Ar({target:"Array",proto:!0,forced:!$c("every")},{every:function(t){return dm(this,t,arguments.length>1?arguments[1]:void 0)}});var pm=Ws("Array").every,vm=at,gm=pm,_m=Array.prototype,ym=e((function(t){var e=t.every;return t===_m||vm(_m,t)&&e===_m.every?gm:e})),mm=Ws("Array").concat,bm=at,wm=mm,km=Array.prototype,Sm=e((function(t){var e=t.concat;return t===km||bm(km,t)&&e===km.concat?wm:e})),xm=e(Xf),Em=e(Ds),Om={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}xm&&(n.prototype=xm(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?hm(n).call(n,1):n);return Em?Sm(i).call(i,Em(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s}(Om);var Am=function(t){fy(n,t);var e,r=Ty(n);function n(){var t,e;G_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(e=r.call.apply(r,Sm(t=[this]).call(t,o))),"monitor",void 0),e}return V_(n,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=U_(D_().mark((function t(){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!0);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),n}(Om.exports.EventEmitter),Tm=e(Bh);Ar({target:"Array",stat:!0},{isArray:ro});var Bm=e(tt.Array.isArray),Cm=er,Rm=Fh,Im=Ye,Lm=R,zm=Jt,Mm=function(t,e,r,n){try{return n?e(Cm(r)[0],r[1]):e(r)}catch(dC){Rm(t,"throw",dC)}},jm=Sh,Nm=wo,Pm=Fr,Dm=Qn,Fm=jh,Um=Bh,Gm=Array,Km=function(t){var e=zm(t),r=Nm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Im(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=Um(e),d=0;if(!h||this===Gm&&jm(h))for(a=Pm(e),s=r?new this(a):Gm(a);a>d;d++)f=o?i(e[d],d):e[d],Dm(s,d,f);else for(l=(c=Fm(e,h)).next,s=r?new this:[];!(u=Lm(l,c)).done;d++)f=o?Mm(c,i,[u.value,d],!0):u.value,Dm(s,d,f);return s.length=d,s};Ar({target:"Array",stat:!0,forced:!lg((function(t){Array.from(t)}))},{from:Km});var Vm=e(tt.Array.from);function Zm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Hm={exports:{}},Wm=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Jm=i,Ym=Q,Xm=m,$m=Wm,qm=Object.isExtensible,Qm=Jm((function(){qm(1)}))||$m?function(t){return!!Ym(t)&&((!$m||"ArrayBuffer"!==Xm(t))&&(!qm||qm(t)))}:qm,tb=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),eb=Ar,rb=v,nb=Hr,ib=Q,ob=$t,ab=Xe.f,sb=Hn,ub=Yn,cb=Qm,lb=tb,fb=!1,hb=re("meta"),db=0,pb=function(t){ab(t,hb,{value:{objectID:"O"+db++,weakData:{}}})},vb=Hm.exports={enable:function(){vb.enable=function(){},fb=!0;var t=sb.f,e=rb([].splice),r={};r[hb]=1,t(r).length&&(sb.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===hb){e(n,i,1);break}return n},eb({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ub.f}))},fastKey:function(t,e){if(!ib(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!ob(t,hb)){if(!cb(t))return"F";if(!e)return"E";pb(t)}return t[hb].objectID},getWeakData:function(t,e){if(!ob(t,hb)){if(!cb(t))return!0;if(!e)return!1;pb(t)}return t[hb].weakData},onFreeze:function(t){return lb&&fb&&cb(t)&&!ob(t,hb)&&pb(t),t}};nb[hb]=!0;var gb=Hm.exports,_b=Ar,yb=n,mb=gb,bb=i,wb=vr,kb=td,Sb=Rd,xb=O,Eb=Q,Ob=V,Ab=Pi,Tb=Xe.f,Bb=jo.forEach,Cb=T,Rb=to.set,Ib=to.getterFor,Lb=hi,zb=Zn,Mb=pi,jb=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Lb(t,n,e[n],r);return t},Nb=Ye,Pb=Rd,Db=V,Fb=td,Ub=Rc,Gb=Ic,Kb=Td,Vb=T,Zb=gb.fastKey,Hb=to.set,Wb=to.getterFor,Jb={getConstructor:function(t,e,r,n){var i=t((function(t,i){Pb(t,o),Hb(t,{type:e,index:zb(null),first:void 0,last:void 0,size:0}),Vb||(t.size=0),Db(i)||Fb(i,t[n],{that:t,AS_ENTRIES:r})})),o=i.prototype,a=Wb(e),s=function(t,e,r){var n,i,o=a(t),s=u(t,e);return s?s.value=r:(o.last=s={index:i=Zb(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),Vb?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var r,n=a(t),i=Zb(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return jb(o,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Vb?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),Vb?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=Nb(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),jb(o,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Vb&&Mb(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,r){var n=e+" Iterator",i=Wb(e),o=Wb(n);Ub(t,e,(function(t,e){Hb(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Gb("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,Gb(void 0,!0))}),r?"entries":"values",!r,!0),Kb(e)}};(function(t,e,r){var n,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=yb[t],u=s&&s.prototype,c={};if(Cb&&xb(s)&&(o||u.forEach&&!bb((function(){(new s).entries().next()})))){var l=(n=e((function(e,r){Rb(Sb(e,l),{type:t,collection:new s}),Ob(r)||kb(r,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=Ib(t);Bb(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in u)||o&&"clear"===t||wb(l,t,(function(r,n){var i=f(this).collection;if(!e&&o&&!Eb(r))return"get"===t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),o||Tb(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(e,t,i,a),mb.enable();Ab(n,t,!1,!0),c[t]=n,_b({global:!0,forced:!0},c),o||r.setStrong(n,t,i)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Jb);var Yb=tt.Map,Xb=function(t,e){return 1===e?function(e,r){return e[t](r)}:function(e,r,n){return e[t](r,n)}},$b=ot("Map"),qb={Map:$b,set:Xb("set",2),get:Xb("get",1),has:Xb("has",1),remove:Xb("delete",1),proto:$b.prototype},Qb=Ar,tw=Ct,ew=W,rw=td,nw=qb.Map,iw=qb.has,ow=qb.get,aw=qb.set,sw=v([].push);Qb({target:"Map",stat:!0,forced:true},{groupBy:function(t,e){ew(t),tw(e);var r=new nw,n=0;return rw(t,(function(t){var i=e(t,n++);iw(r,i)?sw(ow(r,i),t):aw(r,i,[t])})),r}});var uw=Yb,cw=Ye,lw=R,fw=Ct,hw=Md,dw=V,pw=td,vw=[].push,gw=function(t){var e,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return hw(this),(e=void 0!==a)&&fw(a),dw(t)?new this:(r=[],e?(n=0,i=cw(a,o>2?arguments[2]:void 0),pw(t,(function(t){lw(vw,r,i(t,n++))}))):pw(t,vw,{that:r}),new this(r))};Ar({target:"Map",stat:!0,forced:!0},{from:gw});var _w=as,yw=function(){return new this(_w(arguments))};Ar({target:"Map",stat:!0,forced:!0},{of:yw});var mw=Ot,bw=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw TypeError(mw(t)+" is not a map")},ww=bw,kw=qb.remove;Ar({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=ww(this),r=!0,n=0,i=arguments.length;n<i;n++)t=kw(e,arguments[n]),r=r&&t;return!!r}});var Sw=bw,xw=qb.get,Ew=qb.has,Ow=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,i=Sw(this);return Ew(i,t)?(r=xw(i,t),"update"in e&&(r=e.update(r,t,i),Ow(i,t,r)),r):(n=e.insert(t,i),Ow(i,t,n),n)}});var Aw=R,Tw=function(t,e,r){for(var n,i,o=r?t:t.iterator,a=t.next;!(n=Aw(a,o)).done;)if(void 0!==(i=e(n.value)))return i},Bw=function(t,e,r){return r?Tw(t.entries(),(function(t){return e(t[1],t[0])}),!0):t.forEach(e)},Cw=Ye,Rw=bw,Iw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Rw(this),r=Cw(t,arguments.length>1?arguments[1]:void 0);return!1!==Iw(e,(function(t,n){if(!r(t,n,e))return!1}),!0)}});var Lw=Ye,zw=bw,Mw=Bw,jw=qb.Map,Nw=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=zw(this),r=Lw(t,arguments.length>1?arguments[1]:void 0),n=new jw;return Mw(e,(function(t,i){r(t,i,e)&&Nw(n,i,t)})),n}});var Pw=Ye,Dw=bw,Fw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=Dw(this),r=Pw(t,arguments.length>1?arguments[1]:void 0),n=Fw(e,(function(t,n){if(r(t,n,e))return{value:t}}),!0);return n&&n.value}});var Uw=Ye,Gw=bw,Kw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=Gw(this),r=Uw(t,arguments.length>1?arguments[1]:void 0),n=Kw(e,(function(t,n){if(r(t,n,e))return{key:n}}),!0);return n&&n.key}});var Vw=function(t,e){return t===e||t!=t&&e!=e},Zw=bw,Hw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===Hw(Zw(this),(function(e){if(Vw(e,t))return!0}),!0)}});var Ww=R,Jw=td,Yw=O,Xw=Ct,$w=qb.Map;Ar({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(Yw(this)?this:$w);Xw(e);var n=Xw(r.set);return Jw(t,(function(t){Ww(n,r,e(t),t)})),r}});var qw=bw,Qw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=Qw(qw(this),(function(e,r){if(e===t)return{key:r}}),!0);return e&&e.key}});var tk=Ye,ek=bw,rk=Bw,nk=qb.Map,ik=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=ek(this),r=tk(t,arguments.length>1?arguments[1]:void 0),n=new nk;return rk(e,(function(t,i){ik(n,r(t,i,e),t)})),n}});var ok=Ye,ak=bw,sk=Bw,uk=qb.Map,ck=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=ak(this),r=ok(t,arguments.length>1?arguments[1]:void 0),n=new uk;return sk(e,(function(t,i){ck(n,i,r(t,i,e))})),n}});var lk=bw,fk=td,hk=qb.set;Ar({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=lk(this),r=arguments.length,n=0;n<r;)fk(arguments[n++],(function(t,r){hk(e,t,r)}),{AS_ENTRIES:!0});return e}});var dk=Ct,pk=bw,vk=Bw,gk=TypeError;Ar({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=pk(this),r=arguments.length<2,n=r?void 0:arguments[1];if(dk(t),vk(e,(function(i,o){r?(r=!1,n=i):n=t(n,i,o,e)})),r)throw gk("Reduce of empty map with no initial value");return n}});var _k=Ye,yk=bw,mk=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=yk(this),r=_k(t,arguments.length>1?arguments[1]:void 0);return!0===mk(e,(function(t,n){if(r(t,n,e))return!0}),!0)}});var bk=Ct,wk=bw,kk=TypeError,Sk=qb.get,xk=qb.has,Ek=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=wk(this),n=arguments.length;bk(e);var i=xk(r,t);if(!i&&n<3)throw kk("Updating absent value");var o=i?Sk(r,t):bk(n>2?arguments[2]:void 0)(t,r);return Ek(r,t,e(o,t,r)),r}});var Ok=R,Ak=Ct,Tk=O,Bk=er,Ck=TypeError,Rk=function(t,e){var r,n=Bk(this),i=Ak(n.get),o=Ak(n.has),a=Ak(n.set),s=arguments.length>2?arguments[2]:void 0;if(!Tk(e)&&!Tk(s))throw Ck("At least one callback required");return Ok(o,n,t)?(r=Ok(i,n,t),Tk(e)&&(r=e(r),Ok(a,n,t,r))):Tk(s)&&(r=s(),Ok(a,n,t,r)),r};Ar({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Rk}),Ar({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Rk});var Ik=e(uw),Lk=function(t){return t[t.CAPTURE=0]="CAPTURE",t[t.PRE_PROCESSING=1]="PRE_PROCESSING",t[t.ENCODE=2]="ENCODE",t[t.TRANSFER=3]="TRANSFER",t[t.POST_PROCESSING=4]="POST_PROCESSING",t[t.DECODE=5]="DECODE",t[t.RENDERING=6]="RENDERING",t}(Lk||{}),zk=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(zk||{}),Mk=function(t){fy(r,t);var e=Ty(r);function r(){var t,n;G_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(n=e.call.apply(e,Sm(t=[this]).call(t,o))),"type",Lk.PRE_PROCESSING),n}return V_(r)}(Am);function jk(t,e,r){var n=r.value;r.value=function(){for(var t,r=this.monitor,i=this.name,o=Sm(t="".concat(i,".")).call(t,e),a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];null==r||r.report("rtc_sdk_api_call",{sdk_api_name:o,message:zy(s),error_code:0});var c=n.apply(this,s);return"function"==typeof(null==c?void 0:c.then)?c.then((function(t){return null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:0,message:zy(t||{})}),t})).catch((function(t){throw null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:t.code||-1,message:t.message||""}),t})):(null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:0,message:c||""}),c)}}var Nk=Ws("Array").values,Pk=gn,Dk=$t,Fk=at,Uk=Nk,Gk=Array.prototype,Kk={DOMTokenList:!0,NodeList:!0},Vk=e((function(t){var e=t.values;return t===Gk||Fk(Gk,t)&&e===Gk.values||Dk(Kk,Pk(t))?Uk:e})),Zk=Ar,Hk=Date,Wk=v(Hk.prototype.getTime);Zk({target:"Date",stat:!0},{now:function(){return Wk(new Hk)}});var Jk,Yk=e(tt.Date.now),Xk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,$k=n,qk=l,Qk=O,tS=Xk,eS=st,rS=as,nS=Gd,iS=$k.Function,oS=/MSIE .\./.test(eS)||tS&&((Jk=$k.Bun.version.split(".")).length<3||"0"===Jk[0]&&(Jk[1]<3||"3"===Jk[1]&&"0"===Jk[2])),aS=function(t,e){var r=e?2:1;return oS?function(n,i){var o=nS(arguments.length,1)>r,a=Qk(n)?n:iS(n),s=o?rS(arguments,r):[],u=o?function(){qk(a,this,s)}:a;return e?t(u,i):t(u)}:t},sS=Ar,uS=n,cS=aS(uS.setInterval,!0);sS({global:!0,bind:!0,forced:uS.setInterval!==cS},{setInterval:cS});var lS=Ar,fS=n,hS=aS(fS.setTimeout,!0);lS({global:!0,bind:!0,forced:fS.setTimeout!==hS},{setTimeout:hS});var dS=e(tt.setTimeout),pS=Ws("Array").keys,vS=gn,gS=$t,_S=at,yS=pS,mS=Array.prototype,bS={DOMTokenList:!0,NodeList:!0},wS=e((function(t){var e=t.keys;return t===mS||_S(mS,t)&&e===mS.keys||gS(bS,vS(t))?yS:e})),kS=Zr.includes;Ar({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return kS(this,t,arguments.length>1?arguments[1]:void 0)}});var SS=Ws("Array").includes,xS=Q,ES=m,OS=fe("match"),AS=function(t){var e;return xS(t)&&(void 0!==(e=t[OS])?!!e:"RegExp"===ES(t))},TS=TypeError,BS=fe("match"),CS=Ar,RS=function(t){if(AS(t))throw TS("The method doesn't accept regular expressions");return t},IS=W,LS=mn,zS=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[BS]=!1,"/./"[t](e)}catch(n){}}return!1},MS=v("".indexOf);CS({target:"String",proto:!0,forced:!zS("includes")},{includes:function(t){return!!~MS(LS(IS(this)),LS(RS(t)),arguments.length>1?arguments[1]:void 0)}});var jS,NS=Ws("String").includes,PS=at,DS=SS,FS=NS,US=Array.prototype,GS=String.prototype,KS=e((function(t){var e=t.includes;return t===US||PS(US,t)&&e===US.includes?DS:"string"==typeof t||t===GS||PS(GS,t)&&e===GS.includes?FS:e})),VS=e(uy),ZS=new Uint8Array(16);function HS(){var t,e;if(!jS&&!(jS="undefined"!=typeof crypto&&crypto.getRandomValues&&VS(t=crypto.getRandomValues).call(t,crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&VS(e=msCrypto.getRandomValues).call(e,msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jS(ZS)}var WS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var JS=[],YS=0;YS<256;++YS)JS.push((YS+256).toString(16).substr(1));function XS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(JS[t[e+0]]+JS[t[e+1]]+JS[t[e+2]]+JS[t[e+3]]+"-"+JS[t[e+4]]+JS[t[e+5]]+"-"+JS[t[e+6]]+JS[t[e+7]]+"-"+JS[t[e+8]]+JS[t[e+9]]+"-"+JS[t[e+10]]+JS[t[e+11]]+JS[t[e+12]]+JS[t[e+13]]+JS[t[e+14]]+JS[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&WS.test(t)}(r))throw TypeError("Stringified UUID is invalid");return r}function $S(t,e,r){var n=(t=t||{}).random||(t.rng||HS)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return XS(n)}var qS=function(){return"undefined"==typeof window};function QS(t){return null==t?"undefined | null":"string"==typeof t?t:zy({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function tx(t){return null==t?"undefined | null":"string"==typeof t?t:zy({track:QS(t.track)})}function ex(t){return null==t?"undefined | null":"string"==typeof t?t:zy({track:QS(t.track)})}var rx="@byted/ve-rtc",nx="@byted/ve-rtc-cache-size",ix=function(){function t(){G_(this,t),Hf(this,"storeKey",void 0),Hf(this,"logLevel",void 0),Hf(this,"LogfileSize",void 0),Hf(this,"db",void 0),Hf(this,"logId",void 0),Hf(this,"cacheLog",void 0),Hf(this,"cachedSize",void 0),Hf(this,"preCacheTime",void 0),Hf(this,"timer",void 0),Hf(this,"_getSize",(function(t){return new Blob(t).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return V_(t,[{key:"_createStore",value:function(){var t=this;if(!qS()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(rx);try{localStorage.removeItem(nx)}catch(dC){}},e.onerror=function(t){},e.onsuccess=function(){t.db=e.result,t._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var t=this;try{var e=localStorage.getItem(nx);if(e)this.cachedSize=Number(e);else Vk(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(dC){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(nx,"".concat(this.cachedSize))}catch(dC){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(rx,t).objectStore(rx)}},{key:"set",value:function(t){var e=this;return new Ny((function(r,n){if("none"===e.logLevel)return r();var i;if(t&&e.preCacheTime&&e.preCacheTime-Yk()<1e3)return e.cacheLog+=Sm(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=dS((function(){e.set("")}),1e3-(e.preCacheTime-Yk()))),r();clearTimeout(e.timer),e.timer=null;var o=e._getStore("readwrite");if(!o)return n("get store fail");e.cachedSize&&e.cachedSize>e.LogfileSize&&e.keyEarliest().then((function(t){e.get(t).then((function(r){e.del(t).then((function(){e.cachedSize=e.cachedSize-e._getSize(["".concat(r)]),e._setCachedSize()}))}))}));var a=o.get(e.storeKey);a.onsuccess=function(){try{var i,s,u,c,l,f=Sm(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?Sm(s=Sm(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(Sm(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([Sm(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Yk(),r()}catch(p){var d;if(!t)return n(p);e.cacheLog+=Sm(d="\n\n".concat(e.logId,": ")).call(d,t),e.logId++,n(p)}},a.onerror=function(r){var i;if(!t)return n(r);e.cacheLog+=Sm(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,n(r)}}))}},{key:"get",value:function(t){var e=this;return new Ny((function(r,n){var i=e._getStore("readonly");if(!i)return n();var o=i.get(t);o.onsuccess=function(){r(o.result)},o.onerror=function(t){n(t)}}))}},{key:"del",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new Ny((function(r,n){var i=t._getStore("readwrite");if(!i)return n();var o=i.delete(e);o.onsuccess=function(){return r(o.result)},o.onerror=function(t){return n(t)}}))}},{key:"keyEarliest",value:function(){return wS(this).call(this).then((function(t){var e,r=Yk();return My(t).call(t,(function(t){if(t&&t.length){var n=t.split("-")[0];Number(n)<r&&(r=Number(n),e=t)}})),e}))}},{key:"keys",value:function(){var t=this;return new Ny((function(e,r){var n=t._getStore("readonly");if(!n)return r();if(n.getAllKeys){var i=n.getAllKeys();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){r()})}var o=[];n.openCursor().onsuccess=function(){this.result&&(o.push(this.result.key),this.result.continue())},n.transaction.oncomplete=function(){return e(o)}}))}},{key:"values",value:function(){var t=this;return new Ny((function(e,r){var n=t._getStore("readonly");if(!n)return r();if(n.getAll){var i=n.getAll();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){r()})}var o=[];n.openCursor().onsuccess=function(){this.result&&(o.push(this.result.value),this.result.continue())},n.transaction.oncomplete=function(){return e(o)}}))}},{key:"download",value:function(t){t=t||this.storeKey,this.get(t).then((function(e){var r=document.createElement("a");r.download="".concat(t,".txt"),r.href="data:text/paint;utf-8,".concat(e||""),r.click()}))}}]),t}(),ox=new ix,ax=Rr,sx=mn,ux=W,cx=RangeError,lx=v,fx=Pr,hx=mn,dx=W,px=lx((function(t){var e=sx(ux(this)),r="",n=ax(t);if(n<0||n===1/0)throw cx("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),vx=lx("".slice),gx=Math.ceil,_x=function(t){return function(e,r,n){var i,o,a=hx(dx(e)),s=fx(r),u=a.length,c=void 0===n?" ":hx(n);return s<=u||""===c?a:((o=px(c,gx((i=s-u)/c.length))).length>i&&(o=vx(o,0,i)),t?a+o:o+a)}},yx={start:_x(!1),end:_x(!0)},mx=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),bx=yx.start;Ar({target:"String",proto:!0,forced:mx},{padStart:function(t){return bx(this,t,arguments.length>1?arguments[1]:void 0)}});var wx=Ws("String").padStart,kx=at,Sx=wx,xx=String.prototype,Ex=e((function(t){var e=t.padStart;return"string"==typeof t||t===xx||kx(xx,t)&&e===xx.padStart?Sx:e}));function Ox(t){return function(t){if(Bm(t))return Zm(t)}(t)||function(t){if(void 0!==Ef&&null!=Tm(t)||null!=t["@@iterator"])return Vm(t)}(t)||function(t,e){var r;if(t){if("string"==typeof t)return Zm(t,e);var n=P_(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Vm(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zm(t,e):void 0}}(t)||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 Ax=Ot,Tx=TypeError,Bx=Ar,Cx=Jt,Rx=Mr,Ix=Rr,Lx=Fr,zx=du,Mx=vu,jx=To,Nx=Qn,Px=function(t,e){if(!delete t[e])throw Tx("Cannot delete property "+Ax(e)+" of "+Ax(t))},Dx=Vs("splice"),Fx=Math.max,Ux=Math.min;Bx({target:"Array",proto:!0,forced:!Dx},{splice:function(t,e){var r,n,i,o,a,s,u=Cx(this),c=Lx(u),l=Rx(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Ux(Fx(Ix(e),0),c-l)),Mx(c+r-n),i=jx(u,n),o=0;o<n;o++)(a=l+o)in u&&Nx(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:Px(u,s);for(o=c;o>c-n+r;o--)Px(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:Px(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return zx(u,c-n+r),i}});var Gx=Ws("Array").splice,Kx=at,Vx=Gx,Zx=Array.prototype,Hx=e((function(t){var e=t.splice;return t===Zx||Kx(Zx,t)&&e===Zx.splice?Vx:e}));Ar({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Wx=e(tt.Number.isNaN),Jx=Ar,Yx=Zr.indexOf,Xx=$c,$x=k([].indexOf),qx=!!$x&&1/$x([1],1,-0)<0;Jx({target:"Array",proto:!0,forced:qx||!Xx("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return qx?$x(this,t,e)||0:Yx(this,t,e)}});var Qx=Ws("Array").indexOf,tE=at,eE=Qx,rE=Array.prototype,nE=function(t){var e=t.indexOf;return t===rE||tE(rE,t)&&e===rE.indexOf?eE:e},iE=e(nE),oE=e(nE),aE=function(){function t(){G_(this,t),Hf(this,"_all",{})}return V_(t,[{key:"on",value:function(t,e){var r=this._all[t];r?r.push(e):this._all[t]=[e]}},{key:"once",value:function(t,e){var r=this;this.on(t,(function n(){e.apply(void 0,arguments),r.off(t,n)}))}},{key:"off",value:function(t,e){var r=this._all[t];null==r||Hx(r).call(r,oE(r).call(r,e)>>>0,1)}},{key:"emit",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=this._all[t];null==o||My(e=hm(o).call(o)).call(e,(function(t){return t.apply(void 0,n)}))}},{key:"safeEmit",value:function(t){try{for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return this.emit.apply(this,Sm(e=[t]).call(e,n))}catch(dC){console.error(dC)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),sE=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var uE=function(t){fy(r,t);var e=Ty(r);function r(){var t,n;G_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(n=e.call.apply(e,Sm(t=[this]).call(t,o))),"config",{UPLOAD_CONSOLE_ON:!1,UPLOAD_CONSOLE_LENGTH_CUT:200,UPLOAD_REPORT_LIMIT:45e4,ENABLE_REPORT_IDB_BUFFER:!1}),n}return V_(r,[{key:"setParameter",value:function(t,e){if(function(t){return KS(sE).call(sE,t)}(t))try{var r=Number(e);if(Wx(r))return;this.config[t]=r}catch(i){var n;return void console.warn(Sm(n="Cannot convert core lib parameter ".concat(t,":")).call(n,e," into number"))}else this.config[t]=e;this.emit(t,this.config[t])}},{key:"getParameter",value:function(t){return this.config[t]}},{key:"getKeys",value:function(){return jy(this.config)}}]),r}(aE),cE=new uE,lE=T,fE=v,hE=R,dE=i,pE=rn,vE=li,gE=I,_E=Jt,yE=K,mE=Object.assign,bE=Object.defineProperty,wE=fE([].concat),kE=!mE||dE((function(){if(lE&&1!==mE({b:1},mE(bE({},"a",{enumerable:!0,get:function(){bE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==mE({},t)[r]||pE(mE({},e)).join("")!==n}))?function(t,e){for(var r=_E(t),n=arguments.length,i=1,o=vE.f,a=gE.f;n>i;)for(var s,u=yE(arguments[i++]),c=o?wE(pE(u),o(u)):pE(u),l=c.length,f=0;l>f;)s=c[f++],lE&&!hE(a,u,s)||(r[s]=u[s]);return r}:mE,SE=kE;Ar({target:"Object",stat:!0,arity:2,forced:Object.assign!==SE},{assign:SE});var xE=e(tt.Object.assign),EE=Ct,OE=Jt,AE=K,TE=Fr,BE=TypeError,CE=function(t){return function(e,r,n,i){EE(r);var o=OE(e),a=AE(o),s=TE(o),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw BE("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},RE={left:CE(!1),right:CE(!0)}.left;Ar({target:"Array",proto:!0,forced:!Sd&&pt>79&&pt<83||!$c("reduce")},{reduce:function(t){var e=arguments.length;return RE(this,t,e,e>1?arguments[1]:void 0)}});var IE=Ws("Array").reduce,LE=at,zE=IE,ME=Array.prototype,jE=e((function(t){var e=t.reduce;return t===ME||LE(ME,t)&&e===ME.reduce?zE:e})),NE=ro,PE=Fr,DE=vu,FE=Ye,UE=function(t,e,r,n,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&FE(a,s);f<n;)f in r&&(u=h?h(r[f],f,e):r[f],o>0&&NE(u)?(c=PE(u),l=UE(t,e,u,c,l,o-1)-1):(DE(l+1),t[l]=u),l++),f++;return l},GE=UE,KE=Jt,VE=Fr,ZE=Rr,HE=To;Ar({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=KE(this),r=VE(e),n=HE(e,0);return n.length=GE(n,e,e,r,0,void 0===t?1:ZE(t)),n}});var WE=Ws("Array").flat,JE=at,YE=WE,XE=Array.prototype,$E=e((function(t){var e=t.flat;return t===XE||JE(XE,t)&&e===XE.flat?YE:e})),qE={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=hm(Array.prototype).call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==Kf(n))throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},i={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return Sm([]).apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(qE);var QE={},tO={},eO={},rO=qE,nO=0,iO=1;function oO(t){for(var e=t.length;--e>=0;)t[e]=0}var aO=0,sO=29,uO=256,cO=uO+1+sO,lO=30,fO=19,hO=2*cO+1,dO=15,pO=16,vO=7,gO=256,_O=16,yO=17,mO=18,bO=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],wO=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],kO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],SO=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xO=new Array(2*(cO+2));oO(xO);var EO=new Array(2*lO);oO(EO);var OO=new Array(512);oO(OO);var AO=new Array(256);oO(AO);var TO=new Array(sO);oO(TO);var BO,CO,RO,IO=new Array(lO);function LO(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function zO(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function MO(t){return t<256?OO[t]:OO[256+(t>>>7)]}function jO(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function NO(t,e,r){t.bi_valid>pO-r?(t.bi_buf|=e<<t.bi_valid&65535,jO(t,t.bi_buf),t.bi_buf=e>>pO-t.bi_valid,t.bi_valid+=r-pO):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function PO(t,e,r){NO(t,r[2*e],r[2*e+1])}function DO(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function FO(t,e,r){var n,i,o=new Array(dO+1),a=0;for(n=1;n<=dO;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=DO(o[s]++,s))}}function UO(t){var e;for(e=0;e<cO;e++)t.dyn_ltree[2*e]=0;for(e=0;e<lO;e++)t.dyn_dtree[2*e]=0;for(e=0;e<fO;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*gO]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function GO(t){t.bi_valid>8?jO(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function KO(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function VO(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&KO(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!KO(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ZO(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?PO(t,i,e):(PO(t,(o=AO[i])+uO+1,e),0!==(a=bO[o])&&NO(t,i-=TO[o],a),PO(t,o=MO(--n),r),0!==(a=wO[o])&&NO(t,n-=IO[o],a))}while(s<t.last_lit);PO(t,gO,e)}function HO(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=hO,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)VO(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],VO(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,VO(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=dO;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<hO;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,v++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),FO(o,c,t.bl_count)}function WO(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*_O]++):s<=10?t.bl_tree[2*yO]++:t.bl_tree[2*mO]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function JO(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{PO(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(PO(t,i,t.bl_tree),s--),PO(t,_O,t.bl_tree),NO(t,s-3,2)):s<=10?(PO(t,yO,t.bl_tree),NO(t,s-3,3)):(PO(t,mO,t.bl_tree),NO(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}oO(IO);var YO=!1;function XO(t,e,r,n){NO(t,(aO<<1)+(n?1:0),3),function(t,e,r,n){GO(t),n&&(jO(t,r),jO(t,~r)),rO.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}eO._tr_init=function(t){YO||(!function(){var t,e,r,n,i,o=new Array(dO+1);for(r=0,n=0;n<sO-1;n++)for(TO[n]=r,t=0;t<1<<bO[n];t++)AO[r++]=n;for(AO[r-1]=n,i=0,n=0;n<16;n++)for(IO[n]=i,t=0;t<1<<wO[n];t++)OO[i++]=n;for(i>>=7;n<lO;n++)for(IO[n]=i<<7,t=0;t<1<<wO[n]-7;t++)OO[256+i++]=n;for(e=0;e<=dO;e++)o[e]=0;for(t=0;t<=143;)xO[2*t+1]=8,t++,o[8]++;for(;t<=255;)xO[2*t+1]=9,t++,o[9]++;for(;t<=279;)xO[2*t+1]=7,t++,o[7]++;for(;t<=287;)xO[2*t+1]=8,t++,o[8]++;for(FO(xO,cO+1,o),t=0;t<lO;t++)EO[2*t+1]=5,EO[2*t]=DO(t,5);BO=new LO(xO,bO,uO+1,cO,dO),CO=new LO(EO,wO,0,lO,dO),RO=new LO(new Array(0),kO,0,fO,vO)}(),YO=!0),t.l_desc=new zO(t.dyn_ltree,BO),t.d_desc=new zO(t.dyn_dtree,CO),t.bl_desc=new zO(t.bl_tree,RO),t.bi_buf=0,t.bi_valid=0,UO(t)},eO._tr_stored_block=XO,eO._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return nO;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return iO;for(e=32;e<uO;e++)if(0!==t.dyn_ltree[2*e])return iO;return nO}(t)),HO(t,t.l_desc),HO(t,t.d_desc),a=function(t){var e;for(WO(t,t.dyn_ltree,t.l_desc.max_code),WO(t,t.dyn_dtree,t.d_desc.max_code),HO(t,t.bl_desc),e=fO-1;e>=3&&0===t.bl_tree[2*SO[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?XO(t,e,r,n):4===t.strategy||o===i?(NO(t,2+(n?1:0),3),ZO(t,xO,EO)):(NO(t,4+(n?1:0),3),function(t,e,r,n){var i;for(NO(t,e-257,5),NO(t,r-1,5),NO(t,n-4,4),i=0;i<n;i++)NO(t,t.bl_tree[2*SO[i]+1],3);JO(t,t.dyn_ltree,e-1),JO(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),ZO(t,t.dyn_ltree,t.dyn_dtree)),UO(t),n&&GO(t)},eO._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(AO[r]+uO+1)]++,t.dyn_dtree[2*MO(e)]++),t.last_lit===t.lit_bufsize-1},eO._tr_align=function(t){NO(t,2,3),PO(t,gO,xO),function(t){16===t.bi_valid?(jO(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var $O=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var qO=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var QO,tA=function(t,e,r,n){var i=qO,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},eA={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},rA=qE,nA=eO,iA=$O,oA=tA,aA=eA,sA=0,uA=4,cA=0,lA=-2,fA=-1,hA=4,dA=2,pA=8,vA=9,gA=286,_A=30,yA=19,mA=2*gA+1,bA=15,wA=3,kA=258,SA=kA+wA+1,xA=42,EA=103,OA=113,AA=666,TA=1,BA=2,CA=3,RA=4;function IA(t,e){return t.msg=aA[e],e}function LA(t){return(t<<1)-(t>4?9:0)}function zA(t){for(var e=t.length;--e>=0;)t[e]=0}function MA(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(rA.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function jA(t,e){nA._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,MA(t.strm)}function NA(t,e){t.pending_buf[t.pending++]=e}function PA(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function DA(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-SA?t.strstart-(t.w_size-SA):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+kA,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=kA-(h-o),o=h-kA,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function FA(t){var e,r,n,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-SA)){rA.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=f?n-f:0}while(--r);e=r=f;do{n=t.prev[--e],t.prev[e]=n>=f?n-f:0}while(--r);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),r=0===l?0:(a.avail_in-=l,rA.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=iA(a.adler,s,l,u):2===a.state.wrap&&(a.adler=oA(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=wA)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+wA-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<wA)););}while(t.lookahead<SA&&0!==t.strm.avail_in)}function UA(t,e){for(var r,n;;){if(t.lookahead<SA){if(FA(t),t.lookahead<SA&&e===sA)return TA;if(0===t.lookahead)break}if(r=0,t.lookahead>=wA&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-SA&&(t.match_length=DA(t,r)),t.match_length>=wA)if(n=nA._tr_tally(t,t.strstart-t.match_start,t.match_length-wA),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=wA){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=t.strstart<wA-1?t.strstart:wA-1,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}function GA(t,e){for(var r,n,i;;){if(t.lookahead<SA){if(FA(t),t.lookahead<SA&&e===sA)return TA;if(0===t.lookahead)break}if(r=0,t.lookahead>=wA&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=wA-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-SA&&(t.match_length=DA(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===wA&&t.strstart-t.match_start>4096)&&(t.match_length=wA-1)),t.prev_length>=wA&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-wA,n=nA._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-wA),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=wA-1,t.strstart++,n&&(jA(t,!1),0===t.strm.avail_out))return TA}else if(t.match_available){if((n=nA._tr_tally(t,0,t.window[t.strstart-1]))&&jA(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return TA}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=nA._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<wA-1?t.strstart:wA-1,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}function KA(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function VA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=pA,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new rA.Buf16(2*mA),this.dyn_dtree=new rA.Buf16(2*(2*_A+1)),this.bl_tree=new rA.Buf16(2*(2*yA+1)),zA(this.dyn_ltree),zA(this.dyn_dtree),zA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new rA.Buf16(bA+1),this.heap=new rA.Buf16(2*gA+1),zA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new rA.Buf16(2*gA+1),zA(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ZA(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=dA,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?xA:OA,t.adler=2===e.wrap?0:1,e.last_flush=sA,nA._tr_init(e),cA):IA(t,lA)}function HA(t){var e,r=ZA(t);return r===cA&&((e=t.state).window_size=2*e.w_size,zA(e.head),e.max_lazy_match=QO[e.level].max_lazy,e.good_match=QO[e.level].good_length,e.nice_match=QO[e.level].nice_length,e.max_chain_length=QO[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=wA-1,e.match_available=0,e.ins_h=0),r}function WA(t,e,r,n,i,o){if(!t)return lA;var a=1;if(e===fA&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>vA||r!==pA||n<8||n>15||e<0||e>9||o<0||o>hA)return IA(t,lA);8===n&&(n=9);var s=new VA;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+wA-1)/wA),s.window=new rA.Buf8(2*s.w_size),s.head=new rA.Buf16(s.hash_size),s.prev=new rA.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new rA.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,HA(t)}QO=[new KA(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(FA(t),0===t.lookahead&&e===sA)return TA;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,jA(t,!1),0===t.strm.avail_out))return TA;if(t.strstart-t.block_start>=t.w_size-SA&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):(t.strstart>t.block_start&&(jA(t,!1),t.strm.avail_out),TA)})),new KA(4,4,8,4,UA),new KA(4,5,16,8,UA),new KA(4,6,32,32,UA),new KA(4,4,16,16,GA),new KA(8,16,32,32,GA),new KA(8,16,128,128,GA),new KA(8,32,128,256,GA),new KA(32,128,258,1024,GA),new KA(32,258,258,4096,GA)],tO.deflateInit=function(t,e){return WA(t,e,pA,15,8,0)},tO.deflateInit2=WA,tO.deflateReset=HA,tO.deflateResetKeep=ZA,tO.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?lA:(t.state.gzhead=e,cA):lA},tO.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?IA(t,lA):lA;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===AA&&e!==uA)return IA(t,0===t.avail_out?-5:lA);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===xA)if(2===n.wrap)t.adler=0,NA(n,31),NA(n,139),NA(n,8),n.gzhead?(NA(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),NA(n,255&n.gzhead.time),NA(n,n.gzhead.time>>8&255),NA(n,n.gzhead.time>>16&255),NA(n,n.gzhead.time>>24&255),NA(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),NA(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(NA(n,255&n.gzhead.extra.length),NA(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=oA(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(NA(n,0),NA(n,0),NA(n,0),NA(n,0),NA(n,0),NA(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),NA(n,3),n.status=OA);else{var a=pA+(n.w_bits-8<<4)<<8;a|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=OA,PA(n,a),0!==n.strstart&&(PA(n,t.adler>>>16),PA(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),MA(t),i=n.pending,n.pending!==n.pending_buf_size));)NA(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),MA(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,NA(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),MA(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,NA(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=EA)}else n.status=EA;if(n.status===EA&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&MA(t),n.pending+2<=n.pending_buf_size&&(NA(n,255&t.adler),NA(n,t.adler>>8&255),t.adler=0,n.status=OA)):n.status=OA),0!==n.pending){if(MA(t),0===t.avail_out)return n.last_flush=-1,cA}else if(0===t.avail_in&&LA(e)<=LA(r)&&e!==uA)return IA(t,-5);if(n.status===AA&&0!==t.avail_in)return IA(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==sA&&n.status!==AA){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(FA(t),0===t.lookahead)){if(e===sA)return TA;break}if(t.match_length=0,r=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=kA){if(FA(t),t.lookahead<=kA&&e===sA)return TA;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=wA&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+kA;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=kA-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=wA?(r=nA._tr_tally(t,1,t.match_length-wA),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}(n,e):QO[n.level].func(n,e);if(s!==CA&&s!==RA||(n.status=AA),s===TA||s===CA)return 0===t.avail_out&&(n.last_flush=-1),cA;if(s===BA&&(1===e?nA._tr_align(n):5!==e&&(nA._tr_stored_block(n,0,0,!1),3===e&&(zA(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),MA(t),0===t.avail_out))return n.last_flush=-1,cA}return e!==uA?cA:n.wrap<=0?1:(2===n.wrap?(NA(n,255&t.adler),NA(n,t.adler>>8&255),NA(n,t.adler>>16&255),NA(n,t.adler>>24&255),NA(n,255&t.total_in),NA(n,t.total_in>>8&255),NA(n,t.total_in>>16&255),NA(n,t.total_in>>24&255)):(PA(n,t.adler>>>16),PA(n,65535&t.adler)),MA(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?cA:1)},tO.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==xA&&69!==e&&73!==e&&91!==e&&e!==EA&&e!==OA&&e!==AA?IA(t,lA):(t.state=null,e===OA?IA(t,-3):cA):lA},tO.deflateSetDictionary=function(t,e){var r,n,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return lA;if(2===(o=(r=t.state).wrap)||1===o&&r.status!==xA||r.lookahead)return lA;for(1===o&&(t.adler=iA(t.adler,e,l,0)),r.wrap=0,l>=r.w_size&&(0===o&&(zA(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new rA.Buf8(r.w_size),rA.arraySet(c,e,l-r.w_size,r.w_size,0),e=c,l=r.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,FA(r);r.lookahead>=wA;){n=r.strstart,i=r.lookahead-(wA-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+wA-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=wA-1,FA(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=wA-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=o,cA},tO.deflateInfo="pako deflate (from Nodeca project)";var JA={},YA=qE,XA=!0,$A=!0;try{String.fromCharCode.apply(null,[0])}catch(pC){XA=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(pC){$A=!1}for(var qA=new YA.Buf8(256),QA=0;QA<256;QA++)qA[QA]=QA>=252?6:QA>=248?5:QA>=240?4:QA>=224?3:QA>=192?2:1;function tT(t,e){if(e<65534&&(t.subarray&&$A||!t.subarray&&XA))return String.fromCharCode.apply(null,YA.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}qA[254]=qA[254]=1,JA.string2buf=function(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new YA.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},JA.buf2binstring=function(t){return tT(t,t.length)},JA.binstring2buf=function(t){for(var e=new YA.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},JA.buf2string=function(t,e){var r,n,i,o,a=e||t.length,s=new Array(2*a);for(n=0,r=0;r<a;)if((i=t[r++])<128)s[n++]=i;else if((o=qA[i])>4)s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&t[r++],o--;o>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return tT(s,n)},JA.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+qA[t[r]]>e?r:e};var eT=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},rT=tO,nT=qE,iT=JA,oT=eA,aT=eT,sT=Object.prototype.toString,uT=0,cT=-1,lT=0,fT=8;function hT(t){if(!(this instanceof hT))return new hT(t);this.options=nT.assign({level:cT,method:fT,chunkSize:16384,windowBits:15,memLevel:8,strategy:lT,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new aT,this.strm.avail_out=0;var r=rT.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==uT)throw new Error(oT[r]);if(e.header&&rT.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?iT.string2buf(e.dictionary):"[object ArrayBuffer]"===sT.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=rT.deflateSetDictionary(this.strm,n))!==uT)throw new Error(oT[r]);this._dict_set=!0}}function dT(t,e){var r=new hT(e);if(r.push(t,!0),r.err)throw r.msg||oT[r.err];return r.result}hT.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=iT.string2buf(t):"[object ArrayBuffer]"===sT.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new nT.Buf8(o),i.next_out=0,i.avail_out=o),1!==(r=rT.deflate(i,n))&&r!==uT)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(iT.buf2binstring(nT.shrinkBuf(i.output,i.next_out))):this.onData(nT.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=rT.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===uT):2!==n||(this.onEnd(uT),i.avail_out=0,!0)},hT.prototype.onData=function(t){this.chunks.push(t)},hT.prototype.onEnd=function(t){t===uT&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=nT.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},QE.Deflate=hT,QE.deflate=dT,QE.deflateRaw=function(t,e){return(e=e||{}).raw=!0,dT(t,e)},QE.gzip=function(t,e){return(e=e||{}).gzip=!0,dT(t,e)};var pT={},vT=er,gT=R,_T=$t,yT=at,mT=function(){var t=vT(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},bT=RegExp.prototype,wT=at,kT=function(t){var e=t.flags;return void 0!==e||"flags"in bT||_T(t,"flags")||!yT(bT,t)?e:gT(mT,t)},ST=RegExp.prototype,xT=e((function(t){return t===ST||wT(ST,t)?kT(t):t.flags})),ET={},OT=qE,AT=15,TT=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],BT=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],CT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],RT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],IT=qE,LT=$O,zT=tA,MT=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,b,w,k,S,x,E,O;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,v=r.lencode,g=r.distcode,_=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=v[d&_];e:for(;;){if(d>>>=b=m>>>24,p-=b,0===(b=m>>>16&255))O[o++]=65535&m;else{if(!(16&b)){if(0==(64&b)){m=v[(65535&m)+(d&(1<<b)-1)];continue e}if(32&b){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&m,(b&=15)&&(p<b&&(d+=E[n++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=g[d&y];r:for(;;){if(d>>>=b=m>>>24,p-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=g[(65535&m)+(d&(1<<b)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&m,p<(b&=15)&&(d+=E[n++]<<p,(p+=8)<b&&(d+=E[n++]<<p,p+=8)),(k+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=b,p-=b,k>(b=o-a)){if((b=k-b)>l&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=0,x=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}else if(f<b){if(S+=c+f-b,(b-=f)<w){w-=b;do{O[o++]=h[S++]}while(--b);if(S=0,f<w){w-=b=f;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}for(;w>2;)O[o++]=x[S++],O[o++]=x[S++],O[o++]=x[S++],w-=3;w&&(O[o++]=x[S++],w>1&&(O[o++]=x[S++]))}else{S=o-k;do{O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],w-=3}while(w>2);w&&(O[o++]=O[S++],w>1&&(O[o++]=O[S++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p},jT=function(t,e,r,n,i,o,a,s){var u,c,l,f,h,d,p,v,g,_=s.bits,y=0,m=0,b=0,w=0,k=0,S=0,x=0,E=0,O=0,A=0,T=null,B=0,C=new OT.Buf16(16),R=new OT.Buf16(16),I=null,L=0;for(y=0;y<=AT;y++)C[y]=0;for(m=0;m<n;m++)C[e[r+m]]++;for(k=_,w=AT;w>=1&&0===C[w];w--);if(k>w&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===C[b];b++);for(k<b&&(k=b),E=1,y=1;y<=AT;y++)if(E<<=1,(E-=C[y])<0)return-1;if(E>0&&(0===t||1!==w))return-1;for(R[1]=0,y=1;y<AT;y++)R[y+1]=R[y]+C[y];for(m=0;m<n;m++)0!==e[r+m]&&(a[R[e[r+m]]++]=m);if(0===t?(T=I=a,d=19):1===t?(T=TT,B-=257,I=BT,L-=257,d=256):(T=CT,I=RT,d=-1),A=0,m=0,y=b,h=o,S=k,x=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-x,a[m]<d?(v=0,g=a[m]):a[m]>d?(v=I[L+a[m]],g=T[B+a[m]]):(v=96,g=0),u=1<<y-x,b=c=1<<S;do{i[h+(A>>x)+(c-=u)]=p<<24|v<<16|g|0}while(0!==c);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,m++,0==--C[y]){if(y===w)break;y=e[r+a[m]]}if(y>k&&(A&f)!==l){for(0===x&&(x=k),h+=b,E=1<<(S=y-x);S+x<w&&!((E-=C[S+x])<=0);)S++,E<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=A&f]=k<<24|S<<16|h-o|0}}return 0!==A&&(i[h+A]=y-x<<24|64<<16|0),s.bits=k,0},NT=1,PT=2,DT=0,FT=-2,UT=1,GT=12,KT=30,VT=852,ZT=592;function HT(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function WT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new IT.Buf16(320),this.work=new IT.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function JT(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=UT,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new IT.Buf32(VT),e.distcode=e.distdyn=new IT.Buf32(ZT),e.sane=1,e.back=-1,DT):FT}function YT(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,JT(t)):FT}function XT(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?FT:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,YT(t))):FT}function $T(t,e){var r,n;return t?(n=new WT,t.state=n,n.window=null,(r=XT(t,e))!==DT&&(t.state=null),r):FT}var qT,QT,tB=!0;function eB(t){if(tB){var e;for(qT=new IT.Buf32(512),QT=new IT.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(jT(NT,t.lens,0,288,qT,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;jT(PT,t.lens,0,32,QT,0,t.work,{bits:5}),tB=!1}t.lencode=qT,t.lenbits=9,t.distcode=QT,t.distbits=5}function rB(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new IT.Buf8(o.wsize)),n>=o.wsize?(IT.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),IT.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(IT.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}ET.inflateReset=YT,ET.inflateReset2=XT,ET.inflateResetKeep=JT,ET.inflateInit=function(t){return $T(t,15)},ET.inflateInit2=$T,ET.inflate=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,b,w,k,S,x,E,O=0,A=new IT.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return FT;(r=t.state).mode===GT&&(r.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,f=s,h=u,S=DT;t:for(;;)switch(r.mode){case UT:if(0===r.wrap){r.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===c){r.check=0,A[0]=255&c,A[1]=c>>>8&255,r.check=zT(r.check,A,2,0),c=0,l=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=KT;break}if(8!=(15&c)){t.msg="unknown compression method",r.mode=KT;break}if(l-=4,k=8+(15&(c>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=KT;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&c?10:GT,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.flags=c,8!=(255&xT(r))){t.msg="unknown compression method",r.mode=KT;break}if(57344&xT(r)){t.msg="unknown header flags set",r.mode=KT;break}r.head&&(r.head.text=c>>8&1),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=zT(r.check,A,2,0)),c=0,l=0,r.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.time=c),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=zT(r.check,A,4,0)),c=0,l=0,r.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=zT(r.check,A,2,0)),c=0,l=0,r.mode=5;case 5:if(1024&xT(r)){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=zT(r.check,A,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&xT(r)&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),IT.arraySet(r.head.extra,n,o,d,k)),512&xT(r)&&(r.check=zT(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&xT(r)){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&xT(r)&&(r.check=zT(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&xT(r)){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&xT(r)&&(r.check=zT(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&xT(r)){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=KT;break}c=0,l=0}r.head&&(r.head.hcrc=xT(r)>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=GT;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=HT(c),c=0,l=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,2;t.adler=r.check=1,r.mode=GT;case GT:if(5===e||6===e)break t;case 13:if(r.last){c>>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}switch(r.last=1&c,l-=1,3&(c>>>=1)){case 0:r.mode=14;break;case 1:if(eB(r),r.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=KT}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=KT;break}if(r.length=65535&c,c=0,l=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;IT.arraySet(i,n,o,d,a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=GT;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.nlen=257+(31&c),c>>>=5,l-=5,r.ndist=1+(31&c),c>>>=5,l-=5,r.ncode=4+(15&c),c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=KT;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.lens[T[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},S=jT(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid code lengths set",r.mode=KT;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;_=(O=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(y<16)c>>>=g,l-=g,r.lens[r.have++]=y;else{if(16===y){for(E=g+2;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=g,l-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=KT;break}k=r.lens[r.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(E=g+3;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=g,k=0,d=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(E=g+7;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=g,k=0,d=11+(127&(c>>>=g)),c>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=KT;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===KT)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=KT;break}if(r.lenbits=9,x={bits:r.lenbits},S=jT(NT,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid literal/lengths set",r.mode=KT;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},S=jT(PT,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,S){t.msg="invalid distances set",r.mode=KT;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,MT(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===GT&&(r.back=-1);break}for(r.back=0;_=(O=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(_&&0==(240&_)){for(m=g,b=_,w=y;_=(O=r.lencode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=g,l-=g,r.back+=g,r.length=y,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=GT;break}if(64&_){t.msg="invalid literal/length code",r.mode=KT;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(O=r.distcode[c&(1<<r.distbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(0==(240&_)){for(m=g,b=_,w=y;_=(O=r.distcode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=g,l-=g,r.back+=g,64&_){t.msg="invalid distance code",r.mode=KT;break}r.offset=y,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=KT;break}r.mode=25;case 25:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=KT;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),v=r.window}else v=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=v[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[a++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===s)break t;s--,c|=n[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=xT(r)?zT(r.check,i,h,a-h):LT(r.check,i,h,a-h)),h=u,(xT(r)?c:HT(c))!==r.check){t.msg="incorrect data check",r.mode=KT;break}c=0,l=0}r.mode=28;case 28:if(r.wrap&&xT(r)){for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=KT;break}c=0,l=0}r.mode=29;case 29:S=1;break t;case KT:S=-3;break t;case 31:return-4;default:return FT}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<KT&&(r.mode<27||4!==e))&&rB(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=xT(r)?zT(r.check,i,h,t.next_out-h):LT(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===GT?128:0)+(20===r.mode||15===r.mode?256:0),(0===f&&0===h||4===e)&&S===DT&&(S=-5),S},ET.inflateEnd=function(t){if(!t||!t.state)return FT;var e=t.state;return e.window&&(e.window=null),t.state=null,DT},ET.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?FT:(r.head=e,e.done=!1,DT):FT},ET.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?FT:11===r.mode&&LT(1,e,n,0)!==r.check?-3:rB(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,DT):FT},ET.inflateInfo="pako inflate (from Nodeca project)";var nB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var iB=ET,oB=qE,aB=JA,sB=nB,uB=eA,cB=eT,lB=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},fB=Object.prototype.toString;function hB(t){if(!(this instanceof hB))return new hB(t);this.options=oB.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new cB,this.strm.avail_out=0;var r=iB.inflateInit2(this.strm,e.windowBits);if(r!==sB.Z_OK)throw new Error(uB[r]);if(this.header=new lB,iB.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=aB.string2buf(e.dictionary):"[object ArrayBuffer]"===fB.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=iB.inflateSetDictionary(this.strm,e.dictionary))!==sB.Z_OK))throw new Error(uB[r])}function dB(t,e){var r=new hB(e);if(r.push(t,!0),r.err)throw r.msg||uB[r.err];return r.result}hB.prototype.push=function(t,e){var r,n,i,o,a,s=this.strm,u=this.options.chunkSize,c=this.options.dictionary,l=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?sB.Z_FINISH:sB.Z_NO_FLUSH,"string"==typeof t?s.input=aB.binstring2buf(t):"[object ArrayBuffer]"===fB.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new oB.Buf8(u),s.next_out=0,s.avail_out=u),(r=iB.inflate(s,sB.Z_NO_FLUSH))===sB.Z_NEED_DICT&&c&&(r=iB.inflateSetDictionary(this.strm,c)),r===sB.Z_BUF_ERROR&&!0===l&&(r=sB.Z_OK,l=!1),r!==sB.Z_STREAM_END&&r!==sB.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==sB.Z_STREAM_END&&(0!==s.avail_in||n!==sB.Z_FINISH&&n!==sB.Z_SYNC_FLUSH)||("string"===this.options.to?(i=aB.utf8border(s.output,s.next_out),o=s.next_out-i,a=aB.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&oB.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(oB.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==sB.Z_STREAM_END);return r===sB.Z_STREAM_END&&(n=sB.Z_FINISH),n===sB.Z_FINISH?(r=iB.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===sB.Z_OK):n!==sB.Z_SYNC_FLUSH||(this.onEnd(sB.Z_OK),s.avail_out=0,!0)},hB.prototype.onData=function(t){this.chunks.push(t)},hB.prototype.onEnd=function(t){t===sB.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=oB.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},pT.Inflate=hB,pT.inflate=dB,pT.inflateRaw=function(t,e){return(e=e||{}).raw=!0,dB(t,e)},pT.ungzip=dB;var pB={};(0,qE.assign)(pB,QE,pT,nB);var vB=e(pB),gB=e(tt.setInterval),_B=1,yB=function(){function t(e){G_(this,t),Hf(this,"lockingPromise",Ny.resolve()),Hf(this,"locks",0),Hf(this,"name",""),Hf(this,"lockId",void 0),this.lockId=_B++,e&&(this.name=e)}return V_(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var r=new Ny((function(r){t=function(){e.locks-=1,r()}})),n=this.lockingPromise.then((function(){return t}));return this.lockingPromise=this.lockingPromise.then((function(){return r})),n}}]),t}(),mB="__rtc_umd_name__",bB=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},wB=function(){function t(e){G_(this,t),Hf(this,"storeName",void 0),Hf(this,"pendingList",[]),this.storeName=e,!qS()&&bB()&&this._checkAndCreateStore(e)}var e,r,n,i,o,a,s;return V_(t,[{key:"_checkAndCreateStore",value:(s=U_(D_().mark((function e(r,n){var i,o,a=this;return D_().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!bB().databases){e.next=6;break}return e.next=6,new Ny((function(t){var e=function(){return bB().databases().finally(t)};o=gB(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new Ny((function(e){t.db&&(t.db.close(),delete t.db);var o=n?bB().open(mB,n):bB().open(mB);o.onupgradeneeded=function(){o.result.createObjectStore(r)},o.onerror=function(){console.error("IndexedDBInterface error",o.error)},o.onsuccess=function(){var n=o.result;t.db=n;try{var s;t.db.transaction(a.storeName,"readonly"),My(s=a.pendingList).call(s,function(){var t=U_(D_().mark((function t(e){var r,n,i,o;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.txMode,n=e.pendResolve,i=e.pendReject,t.prev=1,t.next=4,a._getStore(r);case 4:o=t.sent,n(o),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),i();case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()),e()}catch(u){e(a._checkAndCreateStore(r,n.version+1))}finally{i()}}})));case 7:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"_getStore",value:(a=U_(D_().mark((function e(r){var n,i=this;return D_().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:return n=e.sent,e.abrupt("return",new Ny((function(e,o){if(!t.db)return i.pendingList.push({txMode:r,pendResolve:e,pendReject:o}),void n();try{e(t.db.transaction(i.storeName,r).objectStore(i.storeName))}catch(a){return void i.pendingList.push({txMode:r,pendResolve:e,pendReject:o})}finally{n()}})));case 4:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)})},{key:"put2String",value:(o=U_(D_().mark((function t(e,r){var n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=zy(e)}catch(i){n=e}return t.next=3,this.put(n,r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"get4String",value:(i=U_(D_().mark((function t(e){var r,n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.get(e);case 2:r=t.sent;try{n=JSON.parse(r)}catch(i){n=r}return t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"put",value:(n=U_(D_().mark((function t(e,r){var n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return n=t.sent,t.abrupt("return",new Ny((function(t,i){var o=n.put(e,r);o.onsuccess=function(){t()},o.onerror=function(t){i(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"get",value:(r=U_(D_().mark((function t(e){var r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readonly");case 2:return r=t.sent,t.abrupt("return",new Ny((function(t,n){var i=r.get(e);i.onsuccess=function(){t(i.result)},i.onerror=function(t){n(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"del",value:(e=U_(D_().mark((function t(e){var r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return r=t.sent,t.abrupt("return",new Ny((function(t,n){var i=r.delete(e);i.onsuccess=function(){t()},i.onerror=function(t){n(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}();function kB(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=sn(t);for(n=0;n<o.length;n++)r=o[n],iE(e).call(e,r)>=0||(i[r]=t[r]);return i}(t,e);if(Fs){var o=Fs(t);for(n=0;n<o.length;n++)r=o[n],iE(e).call(e,r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}Hf(wB,"db",void 0),Hf(wB,"state","init"),Hf(wB,"_promiseLock",new yB("iDB"));var SB=["message"];var xB,EB,OB,AB=new(function(){function t(){G_(this,t),Hf(this,"name","LongStringReportor"),Hf(this,"inBuffer",[]),Hf(this,"outBuffer",[])}return V_(t,[{key:"push",value:function(t){var e;t.message&&this.inBuffer.push(Jf(Jf({},t),{},{message:{id:hm(e=$S()).call(e,0,3),index:0,end:!0,msg:t.message}}))}},{key:"splice",value:function(t){for(var e=[],r=0;this.outBuffer.length;){var n=zy(this.outBuffer[0]).length;if(!(n<t))break;t-=n,r+=n,e.push(this.outBuffer.shift())}for(;this.inBuffer[0]&&t>0;){var i=this.inBuffer[0],o=i.message,a=Jf(Jf({},kB(i,SB)),{},{message:Jf(Jf({},o),{},{msg:""})}),s=zy(a).length,u=t-s,c=Jf({},a);if(u>o.msg.length)c.message.msg=o.msg,this.inBuffer.shift();else{if(!(u>=10))break;var l,f,h=hm(l=o.msg).call(l,0,u);c.message.msg=h,c.message.end=!1,this.inBuffer[0].message.msg=hm(f=o.msg).call(f,u),this.inBuffer[0].message.index++}var d=zy(c.message),p=d.length;t-=p+s,r+=p+s,e.push(Jf(Jf({},c),{},{message:d}))}return{payload:e,payloadSize:r}}},{key:"unshift",value:function(t){this.outBuffer=Sm(t).call(t,this.outBuffer)}},{key:"get",value:function(){var t,e;return Sm(t=[]).call(t,Ox(this.outBuffer),Ox(fm(e=this.inBuffer).call(e,(function(t){return Jf(Jf({},t),{},{message:zy(t.message)})}))))}},{key:"set",value:function(t){var e=this,r=[],n=[];My(t).call(t,(function(t){!function(t){return void 0!==t.report_id}(t)?(t.message||(t.message=""),e.inBuffer.push(Jf(Jf({},t),{},{message:JSON.parse(t.message)}))):e.outBuffer.push(t)})),this.outBuffer=Sm(r).call(r,this.outBuffer),this.inBuffer=Sm(n).call(n,this.inBuffer)}},{key:"isEmpty",value:function(){return 0===this.inBuffer.length&&0===this.outBuffer.length}}]),t}()),TB={product_line:"rtc",report_version:"5",os:"web",user_agent:qS()?"":null===(xB=navigator)||void 0===xB?void 0:xB.userAgent,platform:"web",product:"webrtc",app_state:"active"},BB="LogReportor",CB="undefined"!=typeof window&&(KS(EB=window.location.search).call(EB,"_rtc_debug_")||(null===(OB=window.localStorage)||void 0===OB?void 0:OB.getItem("_rtc_debug_"))),RB=function(){function t(e){G_(this,t),Hf(this,"_buffer",void 0),this._buffer=new wB(e)}var e,r;return V_(t,[{key:"set",value:(r=U_(D_().mark((function t(e,r){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._buffer.put2String(e,r);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"get",value:(e=U_(D_().mark((function t(e){var r,n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.prev=1,t.next=4,this._buffer.get4String(e);case 4:n=t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",null!==(r=n)&&void 0!==r?r:[]);case 10:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(t){return e.apply(this,arguments)})}]),t}(),IB=function(){function t(){var e=this;G_(this,t),Hf(this,"reportCommon",TB),Hf(this,"reportIds",new Ik),Hf(this,"dataBuffer",[]),Hf(this,"reportorList",[]),Hf(this,"dbBuffer",void 0),Hf(this,"posting",!1),Hf(this,"sucSendTimer",void 0),Hf(this,"preSucTime",0),Hf(this,"errSendTimer",void 0),Hf(this,"errSendDelay",100),Hf(this,"_logServerUrl",void 0),Hf(this,"_retryCount",0),Hf(this,"_reportLimit",5e5),Hf(this,"_disableTimeout",!1),qS()||(window.addEventListener("beforeunload",(function(){clearTimeout(e.errSendTimer),clearTimeout(e.sucSendTimer),e.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&e.setCommonStats({app_state:"background"})})),CB&&(window.__rtc_debug_reportor__=this)),cE.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),cE.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),dS((function(){e.reportorList.push(HB),e.reportorList.push(AB)}))}var e;return V_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=xE(this.reportCommon,t)}},{key:"getCommonStats",value:function(){return this.reportCommon}},{key:"setReportLimit",value:function(t){this._reportLimit=Math.max(t,5e4),this._reportLimit=Math.min(t,5e5)}},{key:"getReportId",value:function(t){var e;t=null!==(e=t)&&void 0!==e?e:"__global__",this.reportIds.has(t)||this.reportIds.set(t,0);var r=this.reportIds.get(t);return void 0===r&&(NB("no reportId in reportId map with engine-session-id ".concat(t),0,{}),r=0),this.reportIds.set(t,r+1),r}},{key:"push",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.send(t);else{var e,r=null!==(e=t.engine_session_id)&&void 0!==e?e:"__global__";this.reportIds.has(r)||this.reportIds.set(r,0),this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Yk()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send())}}},{key:"enableIndexedDBBuffer",value:function(){var t,e=this;this.dbBuffer||(this.dbBuffer=new RB("ReportorDBBuffer"),this.dbBuffer.get(BB).then((function(t){My(t).call(t,(function(t){e.push(t)}))})),My(t=this.reportorList).call(t,(function(t){var r;null===(r=e.dbBuffer)||void 0===r||r.get(t.name).then((function(e){t.set(e)}))})))}},{key:"backup",value:function(){var t=this;try{var e,r;null===(e=this.dbBuffer)||void 0===e||e.set(Ox(this.dataBuffer),BB),My(r=this.reportorList).call(r,(function(e){var r;null===(r=t.dbBuffer)||void 0===r||r.set(Ox(e.get()),e.name)}))}catch(n){NB("Error when save log into IDB",-1,n)}}},{key:"unshift",value:function(t){var e,r;this.dataBuffer=Sm(e=t[0]).call(e,this.dataBuffer),My(r=this.reportorList).call(r,(function(e,r){var n;e.unshift(null!==(n=t[r+1])&&void 0!==n?n:[])}))}},{key:"_splice",value:function(){var t,e,r=this,n=function(t,e){for(var r=0,n=0;n<t.length;n++)if((r+=zy(t[n]).length)>e)return n;return t.length}(this.dataBuffer,this._reportLimit);0===n&&this.dataBuffer.length>0&&(this._reportLimit=zy(this.dataBuffer[0]).length+10,n=1,NB("update report limit to ".concat(this._reportLimit),0,null));var i=Hx(t=this.dataBuffer).call(t,0,n),o=zy(i).length,a=[i],s=this._reportLimit-o;return My(e=this.reportorList).call(e,(function(t){var e=Hx(t).call(t,s),n=e.payload,i=e.payloadSize;My(n).call(n,(function(t){var e,n,i;void 0===t.report_id&&(t.report_id=r.getReportId(t.engine_session_id),!qS()&&window.__onRTCReport&&(null===(e=(n=window).__onRTCReport)||void 0===e||e.call(n,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,r.getCommonStats())))})),a.push(n),s-=i})),a}},{key:"send",value:(e=U_(D_().mark((function t(e,r){var n,i,o,a,s,u,c,l,f,h;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=jE(n=this.reportorList).call(n,(function(t,e){return t&&e.isEmpty()}),!0),(e||this.dataBuffer.length||!i)&&this._logServerUrl){t.next=4;break}return t.abrupt("return");case 4:if(e||(this.posting=!0),o=[],e||(o=this._splice()),a=CB,s={data:e||$E(o).call(o),header:Jf(Jf({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?zy(s):vB.gzip(zy(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,dS((function(){c.abort()}),1e4)}catch(d){console.warn("AbortController is not supported"),this._disableTimeout=!0}return a||(u.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),h=null,t.prev=13,t.next=16,fetch(this._logServerUrl,u);case 16:if(200!==(l=t.sent).status&&304!==l.status){t.next=23;break}return t.t0=JSON,t.next=21,l.text();case 21:t.t1=t.sent,h=t.t0.parse.call(t.t0,t.t1);case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(13),f=t.t2;case 28:e||(this.posting=!1),h&&0===h.StatusCode?e||r||this.sucSend():(dS((function(){var t,e,r,n;NB(Sm(t="reportor post error, resJSON:".concat(null===(e=h)||void 0===e?void 0:e.toString()," err:")).call(t,f),null!==(r=null===(n=l)||void 0===n?void 0:n.status)&&void 0!==r?r:-1,f)}),0),e?this.send(e):(this.unshift(o),r?this.send():this.errSend()));case 30:case"end":return t.stop()}}),t,this,[[13,25]])}))),function(t,r){return e.apply(this,arguments)})},{key:"sucSend",value:function(){var t;this.errSendDelay=100,this._retryCount=0,this.preSucTime=Yk(),this.sucSendTimer=dS(VS(t=this.send).call(t,this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=dS((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var LB=new IB,zB=function(){function t(e){G_(this,t),Hf(this,"modifyIds",{pre_connection:!1}),this.id=e}return V_(t,[{key:"report",value:function(t,e){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Jf(Jf(Jf({event_key:t,rtc_timestamp:Yk()},this.modifyIds),e),{},{common_extra_info:zy(i),report_id:LB.getReportId(this.modifyIds.engine_session_id)});!qS()&&window.__onRTCReport&&(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,this.modifyIds.engine_session_id,o,LB.getCommonStats()));LB.push(o)}},{key:"reportLog",value:function(t){var e=Jf(Jf({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Yk()},this.modifyIds),{},{message:t});HB.push(e)}},{key:"reportLongString",value:function(t,e){var r=Jf(Jf({event_key:"rtc_invoke_status",sdk_api_name:"sdk_long_string_".concat(t),rtc_timestamp:Yk()},this.modifyIds),{},{message:e});AB.push(r)}},{key:"set",value:function(t){this.modifyIds=xE(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}(),MB=function(){function t(e){G_(this,t),Hf(this,"_preTime",Yk()),Hf(this,"_one2oneNum",0),Hf(this,"_one2manyNum",0),Hf(this,"_one2oneMsgCache",new Ik),Hf(this,"_one2manyMsgCache",new Ik),Hf(this,"roomId",""),Hf(this,"userId",""),Hf(this,"rtsSessionId",""),Hf(this,"logger",void 0),Hf(this,"serverUrl","server"),this.id=e,this.logger=new $B("MessageReportor",1)}return V_(t,[{key:"needReport",value:function(e){return!!t.config&&(Yk()-this._preTime>=36e5&&(this._preTime=Yk(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===e&&this._one2oneNum<t.config.max_one2one_fpt_per_hour&&Math.random()<=t.config.one2one_fpt_ratio/100||"one2many"===e&&this._one2manyNum<t.config.max_one2many_fpt_per_hour&&Math.random()<=t.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(e){var r;this._one2oneMsgCache.set(e.msg_id,Jf({config_version:(null===(r=t.config)||void 0===r?void 0:r.version)||""},e))}},{key:"updateP2PMsg",value:function(t,e){var r=this._one2oneMsgCache.get(t);r&&this._one2oneMsgCache.set(t,Jf(Jf({},r),e))}},{key:"cacheCustomMsg",value:function(e){var r;this._one2manyMsgCache.set(e.msg_id,Jf({config_version:(null===(r=t.config)||void 0===r?void 0:r.version)||""},e))}},{key:"updateOne2ManyMsg",value:function(t,e){var r=this._one2manyMsgCache.get(t);r&&this._one2manyMsgCache.set(t,Jf(Jf({},r),e))}},{key:"reportP2PMsg",value:function(t){var e,r=this._one2oneMsgCache.get(t);r&&(this.logger.info("reportP2PMsg",r.type,zy(r)),null===(e=FB(this.id))||void 0===e||e.report("rts_message",r))}},{key:"reportOne2ManyMsg",value:function(t){var e,r=this._one2manyMsgCache.get(t);r&&(this.logger.info("reportOne2ManyMsg",r.type,zy(r)),null===(e=FB(this.id))||void 0===e||e.report("rts_message",r))}},{key:"reportMsgRecv",value:function(e){var r,n;e.config_version=(null===(r=t.config)||void 0===r?void 0:r.version)||"",this.logger.info("reportMsgRecv",e.type,zy(e)),null===(n=FB(this.id))||void 0===n||n.report("rts_message",e)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=Yk(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Hf(MB,"config",void 0);var jB=new zB("global"),NB=function(t,e,r){jB.report("rtc_error",{message:t,error_code:e},r)};var PB,DB=new Ik,FB=function(t){return DB.get(t)},UB="undefined"!=typeof window&&KS(PB=window.location.search).call(PB,"_rtc_upload_console_");function GB(t,e){return fm(t).call(t,(function(t){var r,n,i="";try{if("string"==typeof t)return t;if(void 0===t)return"undefined";if(null===t)return"null";if(t instanceof MediaStreamTrack)return QS(t);if(t instanceof MediaStream)return null==(n=t)?"undefined | null":"string"==typeof n?n:zy({id:n.id,active:n.active});if(t instanceof RTCRtpSender)return tx(t);if(t instanceof RTCRtpReceiver)return ex(t);if(t instanceof RTCRtpTransceiver)return null==(r=t)?"undefined | null":"string"==typeof r?r:zy({currentDirection:r.currentDirection,direction:r.direction,mid:r.mid,stopped:r.stopped,receiver:ex(r.receiver),sender:tx(r.sender)});i=zy(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=hm(i).call(i,0,e)),i})).join(", ")}var KB,VB,ZB,HB=new(function(){function t(){var e=this;G_(this,t),Hf(this,"name","ConsoleReportor"),Hf(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),Hf(this,"_consoleReportId",0),Hf(this,"_engineReportIdMap",new Ik),Hf(this,"_enabled","NULL"),Hf(this,"_consoleCutLength",cE.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),Hf(this,"buffer",[]),UB&&dS((function(){e.switchOn()}),0),cE.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),cE.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return V_(t,[{key:"enabled",get:function(){return"OFF"!==this._enabled}},{key:"switchOn",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch ON"),this._enabled="ON")}},{key:"turnOff",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch OFF"),this._enabled="OFF",this.buffer=[])}},{key:"getEngineConsoleId",value:function(t){var e,r=null!==(e=this._engineReportIdMap.get(t))&&void 0!==e?e:0;return this._engineReportIdMap.set(t,r+1),r}},{key:"report",value:function(t,e,r,n,i,o,a,s,u){var c,l,f,h,d,p,v,g,_,y,m,b=this;if("OFF"!==this._enabled){var w,k=FB(e),S=this._consoleReportId++,x=this.getEngineConsoleId(e),E=GB(u,this._consoleCutLength),O=Ox(u),A="".concat(s).replace(/%o|%s/gi,(function(){return GB([O.shift()],b._consoleCutLength)})),T=Sm(c=Sm(l=Sm(f=Sm(h=Sm(d=Sm(p=Sm(v=Sm(g=Sm(_=Sm(y=Sm(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(_,x,"]-")).call(g,r,"-")).call(v,t,"[")).call(p,n,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,A," ")).call(c,E);k?k.reportLog(T):(w=T,jB.reportLog(w))}}},{key:"push",value:function(t){"OFF"!==this._enabled&&this.buffer.push(t)}},{key:"splice",value:function(t){var e;if("ON"!==this._enabled)return{payload:[],payloadSize:0};var r=function(t,e){for(var r=0,n=0;n<t.length;n++){var i=zy(t[n]).length;if((r+=i)>e)return{index:n,size:r-i}}return{index:t.length,size:r}}(this.buffer,t),n=r.index,i=r.size;return{payload:Hx(e=this.buffer).call(e,0,n),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=Sm(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"set",value:function(t){this.buffer=Sm(t).call(t,this.buffer)}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),WB="[VERTC]",JB="#0050b3",YB=(Hf(KB={},"DEBUG","rgba(0, 0, 0, 0)"),Hf(KB," INFO","rgba(93, 173, 226, 0)"),Hf(KB," WARN","rgba(255, 119, 0, 0.3)"),Hf(KB,"ERROR","rgba(255, 0, 0, 0.3)"),Hf(KB," SUCC","rgba(0, 119, 0, 0.3)"),KB),XB="undefined"!=typeof window&&(KS(VB=window.location.search).call(VB,"_rtc_debug_")||(null===(ZB=window.localStorage)||void 0===ZB?void 0:ZB.getItem("_rtc_debug_"))),$B=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";G_(this,t),Hf(this,"indent",void 0),Hf(this,"module",void 0),Hf(this,"_engineId",void 0),this.module=e,this.indent=r,this._engineId=n}return V_(t,[{key:"_print",value:function(t,e){for(var r,n,i,o,a,s,u,c,l=arguments.length,f=new Array(l>2?l-2:0),h=2;h<l;h++)f[h-2]=arguments[h];var d=f.shift();try{var p,v,g,_,y=Sm(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return zy(t)}));ox.set(Sm(v=Sm(g=Sm(_="".concat(WB,"[").concat(this.module,".")).call(_,e,"] ")).call(g,m," ")).call(v,fm(y).call(y,(function(t){return zy(t)})).join(", ")))}catch(dC){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=qB();HB.report(WB,this._engineId,k,t,b,this.module,e,d,f),XB&&(r=console).log.apply(r,Sm(n=[Sm(i=Sm(o=Sm(a=Sm(s=Sm(u=Sm(c="%c".concat(k,"-")).call(c,WB,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(JB,";"),"background-color:".concat(YB[t],";"),"color:".concat(JB,";")]).call(n,f))}},{key:"print",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" INFO",t]).call(e,n))}},{key:"debug",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=["DEBUG",t]).call(e,n))}},{key:"info",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" INFO",t]).call(e,n))}},{key:"warn",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" WARN",t]).call(e,n))}},{key:"error",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=["ERROR",t]).call(e,n))}},{key:"success",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" SUCC",t]).call(e,n))}}]),t}(),qB=function(){var t,e,r=new Date;return Sm(t="".concat(r.toTimeString().split(" ")[0],":")).call(t,Ex(e=r.getMilliseconds().toString()).call(e,3,"0"))},QB=function(t){return t[t.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",t[t.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",t[t.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",t}(QB||{}),tC=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image-url",t.BACKGROUND_COLOR="color",t.BACKGROUND_VIDEO="video-url",t}(tC||{}),eC=function(t){return t.PERFORMANCE="fast",t.QUALITY="accurate",t}(eC||{}),rC=function(t){return t.CPU="cpu",t.GPU="gpu",t}(rC||{});var nC,iC="https://cv-tob.byteintl.com/api/v2/webardeliver/verify",oC=By,aC=Cy,sC=function(t,e,r,n){for(var i,o=n>1?void 0:n?aC(e,r):e,a=t.length-1;a>=0;a--)(i=t[a])&&(o=(n?i(e,r,o):i(o))||o);return n&&o&&oC(e,r,o),o},uC=new $B("RTCBeautyExtension",1);function cC(){var t="none";return null!==window.navigator.userAgent.match("Firefox")?t="mozilla":null!==window.navigator.userAgent.match("Chrome")?(t="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(t="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(t="safari"),t}var lC=(nC=function(t){fy(v,t);var e,r,n,i,o,a,s,u,c,l,f,h,d,p=Ty(v);function v(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(G_(this,v),Hf(Z_(e=p.call(this)),"name","RTCBeautyExtension"),Hf(Z_(e),"_enable",!1),Hf(Z_(e),"_session",void 0),Hf(Z_(e),"canvas",void 0),Hf(Z_(e),"_enableBeauty",!1),Hf(Z_(e),"_enableBackground",!1),Hf(Z_(e),"_fps",15),Hf(Z_(e),"_backgroundBackend",rC.CPU),Hf(Z_(e),"_backgroundAIModelType",eC.QUALITY),Hf(Z_(e),"_backgroundMode",tC.BACKGROUND_BLUR),Hf(Z_(e),"_backgroundUrl",""),Hf(Z_(e),"_backgroundVideoUrl",""),Hf(Z_(e),"_backgroundColor",void 0),Hf(Z_(e),"_beautyDefaultValue",{skinSmoothingSharpness:.5,whitenAmount:.5,skinSmoothingAmount:.5}),Hf(Z_(e),"_radius",20),Hf(Z_(e),"_preTrack",null),v._sdkUrl=r.sdkUrl||"https://sf-web-ar.bytepluscdn.com/obj/web-ar-resources-sg/ies/webar/1.0.0.191/87f23f8/3.6.1-rc.0/package/dist/index.js",v._sdkAuthServer=r.sdkAuthServer||iC,v._authFileUrl=r.authFileUrl||"",r.aiBackend===rC.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=rC.GPU):e._backgroundBackend=rC.GPU));return e._backgroundAIModelType=null!==(t=r.aiModelType)&&void 0!==t?t:eC.QUALITY,e.on("stop",(function(){e._preTrack&&(e._preTrack=null)})),e}return V_(v,[{key:"initWebArSDK",value:(d=U_(D_().mark((function t(){var e=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==v.WebARMainSDK){t.next=3;break}return t.next=3,v.loadWebARSDK();case 3:v.WebARMainSDK&&!this._session&&(this.canvas=document.createElement("canvas"),this._session=v.WebARMainSDK.createSession({canvas:this.canvas,authorization:{file:v._authFileUrl||"",serviceEndpoint:v._sdkAuthServer},__videoPlayerSettings:{shouldAttachVideoElementToDOM:"safari"===cC()}}),this._session.virtualBackgroundController.blurSettings.radius=this._radius,this._session.virtualBackgroundController.updatePreferredPortraitMattingInferenceBackend(this._backgroundBackend),this._session.virtualBackgroundController.updatePortraitMattingModelType(this._backgroundAIModelType),this._session.pipelineDriver="worker","safari"===cC()&&this._session.events.addEventListener("frameProcessingWillBegin",(function(t){e._setCanvasSize(t.width,t.height)})));case 4:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"init",value:(h=U_(D_().mark((function t(e){var r,n,i,o,a;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(r=this.monitor)||void 0===r||r.report("rtc_invoke_status",{sdk_api_name:"RTCBeautyExtension.init.params",message:zy({hasAuthFile:!!v._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),error_code:0}),t.next=3,this.initWebArSDK();case 3:return t.next=5,null===(n=this._session)||void 0===n?void 0:n.clearEffect();case 5:o=null==e?void 0:e.videoCaptureConfig,this._fps=o?"number"==typeof(null==o?void 0:o.frameRate)?(null==o?void 0:o.frameRate)||15:(null==o||null===(i=o.frameRate)||void 0===i?void 0:i.ideal)||15:15,uC.print("init fps",this._fps),this._session&&(this._session.frameRateControl={type:"preferred",frameRate:this._fps}),"safari"===cC()&&(a=this.canvas)&&(a.style.width="1px",a.style.height="1px",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",a.style.zIndex="-9999",document.body.appendChild(a));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"checkCompatibility",value:(f=U_(D_().mark((function t(){var e;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="",t.prev=1,t.next=4,this.initWebArSDK();case 4:return t.abrupt("return",{isCompatible:!0,reasons:[],message:e});case 7:return t.prev=7,t.t0=t.catch(1),e=(null===t.t0||void 0===t.t0?void 0:t.t0.toString())||(null===t.t0||void 0===t.t0?void 0:t.t0.stack)||"",t.abrupt("return",{isCompatible:!1,reasons:[100],message:e});case 11:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return f.apply(this,arguments)})},{key:"effect",value:(l=U_(D_().mark((function t(e,r){var n,i,o,a,s;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r||e.mediaTrack,(this._enableBeauty||this._enableBackground)&&this.canvas){t.next=3;break}return t.abrupt("return",n);case 3:if("video"!==e.mediaType||e.streamIndex!==zk.STREAM_INDEX_MAIN){t.next=12;break}if(i=n.getSettings(),o=i.width,a=i.height,o&&a&&"safari"!==cC()&&this._setCanvasSize(o,a),this._preTrack===n){t.next=11;break}return t.next=9,null===(s=this._session)||void 0===s?void 0:s.switchVideoSource({type:"video-stream",stream:new MediaStream([n])});case 9:this._preTrack=n,this.maybeRestartSession();case 11:return t.abrupt("return",this.canvas.captureStream(this._fps).getVideoTracks()[0]);case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"enable",value:function(){return this.enableBeauty()}},{key:"enableBeauty",value:(c=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,My(e=jy(this._beautyDefaultValue)).call(e,(function(t){n._session&&(n._session.faceBeautyController.settings[t]=n._beautyDefaultValue[t])})),this.maybeRestartSession(),this._preTrack&&!r){t.next=6;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 6:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"disable",value:function(){return this.disableBeauty()}},{key:"disableBeauty",value:(u=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this.maybeStopSession(),My(e=jy(this._beautyDefaultValue)).call(e,(function(t){n._session&&(n._session.faceBeautyController.settings[t]=0)})),this._preTrack&&!r){t.next=6;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 6:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"enableVirtualBackground",value:(s=U_(D_().mark((function t(){var e,r=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,t.next=4,this._updateVirtualBackground();case 4:if(this.maybeRestartSession(),this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new Ny((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"disableVirtualBackground",value:(a=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this.maybeStopSession(),null===(e=this._session)||void 0===e||e.virtualBackgroundController.updateVirtualBackground(null),this._preTrack&&!r){t.next=6;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 6:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(t,e){switch(e=Math.min(1,Math.max(0,e)),t){case QB.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.skinSmoothingSharpness=e,this._session&&(this._session.faceBeautyController.settings.skinSmoothingSharpness=e);break;case QB.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenAmount=e,this._session&&(this._session.faceBeautyController.settings.whitenAmount=e);break;case QB.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.skinSmoothingAmount=e,this._session&&(this._session.faceBeautyController.settings.skinSmoothingAmount=e)}}},{key:"setBackgroundMode",value:function(t){this._backgroundMode=t,this._enableBackground&&this._updateVirtualBackground()}},{key:"getBackgroundImage",value:function(){return this._backgroundUrl}},{key:"loadBackgroundImage",value:(o=U_(D_().mark((function t(e){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._session){t.next=2;break}return t.abrupt("return",Ny.reject(new Error("init extension first")));case 2:if(this._backgroundUrl=e,!this._enableBackground){t.next=6;break}return t.next=6,this._updateVirtualBackground();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"setBackgroundBlurRadius",value:function(t){"number"==typeof t&&t>=0&&(this._radius=t,this._session&&(this._session.virtualBackgroundController.blurSettings.radius=t))}},{key:"setBackgroundColor",value:function(t){var e,r=[];if(/^#[0-9A-Fa-f]{8}$/.test(t))r=[om(t.substring(1,3),16),om(t.substring(3,5),16),om(t.substring(5,7),16),om(t.substring(7,9),16)/255];else if(/^(rgba|RGBA)/.test(t)){var n;r=fm(n=hm(t).call(t,5,t.length-1).split(",")).call(n,(function(t){return Number(t)}))}return!!(4===r.length&&ym(e=[r[0],r[1],r[2]]).call(e,(function(t){return t>=0&&t<=255}))&&r[3]>=0&&r[3]<=1)&&(this._backgroundColor={r:r[0]/255,g:r[1]/255,b:r[2]/255,a:Number(r[3].toFixed(3))},this._enableBackground&&this._updateVirtualBackground(),!0)}},{key:"loadBackgroundVideo",value:(i=U_(D_().mark((function t(e){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._session){t.next=2;break}return t.abrupt("return",Ny.reject(new Error("init extension first")));case 2:if(this._backgroundVideoUrl=e,!this._enableBackground){t.next=6;break}return t.next=6,this._updateVirtualBackground();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getBackgroundVideo",value:function(){return this._backgroundVideoUrl}},{key:"setAIModelType",value:function(t){var e;this._backgroundAIModelType=t,null===(e=this._session)||void 0===e||e.virtualBackgroundController.updatePortraitMattingModelType(t)}},{key:"applyConstraints",value:function(t,e){var r=e.width,n=e.height;this.canvas&&t===zk.STREAM_INDEX_MAIN&&"number"==typeof r&&"number"==typeof n&&(this.canvas.width=r,this.canvas.style.width="".concat(r,"px"),this.canvas.height=n,this.canvas.style.height="".concat(n,"px"))}},{key:"isSupported",value:(n=U_(D_().mark((function t(){var e;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkCompatibility();case 2:return e=t.sent,t.abrupt("return",e.isCompatible);case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var t;null===(t=this._session)||void 0===t||t.dispose()}},{key:"_setCanvasSize",value:function(t,e){!this.canvas||this.canvas.width===t&&this.canvas.height===e||(this.canvas.width=t,this.canvas.style.width="".concat(t,"px"),this.canvas.height=e,this.canvas.style.height="".concat(e,"px"))}},{key:"_updateVirtualBackground",value:(r=U_(D_().mark((function t(){var e,r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={type:this._backgroundMode},this._backgroundMode!==tC.BACKGROUND_IMAGE){t.next=9;break}if(!this._backgroundUrl){t.next=6;break}r.url=this._backgroundUrl,t.next=7;break;case 6:case 22:return t.abrupt("return",!1);case 7:case 15:t.next=23;break;case 9:if(this._backgroundMode!==tC.BACKGROUND_COLOR){t.next=17;break}if(!this._backgroundColor){t.next=14;break}r=Jf(Jf({},r),this._backgroundColor),t.next=15;break;case 14:return t.abrupt("return");case 17:if(this._backgroundMode!==tC.BACKGROUND_VIDEO){t.next=23;break}if(!this._backgroundVideoUrl){t.next=22;break}r.url=this._backgroundVideoUrl,t.next=23;break;case 23:return t.next=25,null===(e=this._session)||void 0===e?void 0:e.virtualBackgroundController.updateVirtualBackground(r);case 25:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"maybeRestartSession",value:function(){var t=this;this._session&&(this._enableBeauty||this._enableBackground)&&!this._session.isStarted&&this._preTrack&&(uC.info("ar","session start"),this._session.start().catch((function(e){var r;null===(r=t.monitor)||void 0===r||r.report("rtc_error",{error_code:-1,message:e.name})})))}},{key:"maybeStopSession",value:function(){var t=this;this._session&&(this._enableBeauty||this._enableBackground||!this._session.isStarted||(uC.info("ar","session stop"),this._session.stop().catch((function(e){var r;null===(r=t.monitor)||void 0===r||r.report("rtc_error",{error_code:-1,message:e.name})}))))}}],[{key:"loadWebARSDK",value:(e=U_(D_().mark((function t(){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",import(v._sdkUrl).then((function(t){var e=t.ARSDK;v.WebARMainSDK=e})).catch((function(t){throw uC.error("load ar sdk error",t),new Error("Load WebAR SDK timeout")})));case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})}]),v}(Mk),Hf(nC,"WebARMainSDK",void 0),Hf(nC,"_sdkUrl",void 0),Hf(nC,"_sdkAuthServer",iC),Hf(nC,"_authFileUrl",""),nC),fC=lC;sC([jk],fC.prototype,"init",1),sC([jk],fC.prototype,"checkCompatibility",1),sC([jk],fC.prototype,"enable",1),sC([jk],fC.prototype,"enableBeauty",1),sC([jk],fC.prototype,"disable",1),sC([jk],fC.prototype,"disableBeauty",1),sC([jk],fC.prototype,"enableVirtualBackground",1),sC([jk],fC.prototype,"disableVirtualBackground",1),sC([jk],fC.prototype,"setBeautyIntensity",1),sC([jk],fC.prototype,"setBackgroundMode",1),sC([jk],fC.prototype,"getBackgroundImage",1),sC([jk],fC.prototype,"loadBackgroundImage",1),sC([jk],fC.prototype,"setBackgroundBlurRadius",1),sC([jk],fC.prototype,"setBackgroundColor",1),sC([jk],fC.prototype,"loadBackgroundVideo",1),sC([jk],fC.prototype,"getBackgroundVideo",1),sC([jk],fC.prototype,"setAIModelType",1);var hC=window.BytePlusRTCExtensions||{};hC.RTCBeautyExtension=fC,hC.EffectBeautyMode=QB,window.BytePlusRTCExtensions=hC}));
package/index.d.ts CHANGED
@@ -72,6 +72,8 @@ declare const Config: {
72
72
  UPLOAD_REMOTE_STATS: ExtendMediaType;
73
73
  SDK_CODEC_NEGOTIATION: boolean;
74
74
  ENABLE_FALLBACK_HANDLER: boolean;
75
+ ENABLE_STANDARD_HANDLER: boolean;
76
+ PC_KILLSWITCH: {};
75
77
  };
76
78
  declare const _default: VERTC;
77
79
  declare enum AudioMixingError {
@@ -952,7 +954,7 @@ declare enum StreamMixingEventType {
952
954
  STOP_FAILED = 9
953
955
  }
954
956
  declare function getElectronScreenSources(type?: ScreenSourceType): Promise<ElectronDesktopCapturerSource[]>;
955
- declare function getParameter(key: keyof typeof Config): string | number | boolean | string[] | IJoinRoomConfig;
957
+ declare function getParameter(key: keyof typeof Config): {};
956
958
  declare function setParameter<T extends SetParamKey>(key: T, value: (SetParamInterface & CoreSetParamterInterface)[T]): IJoinRoomConfig | undefined;
957
959
 
958
960
  /**
@@ -3267,6 +3269,15 @@ export interface IJoinRoomConfig {
3267
3269
  joinWithTcpOnly: boolean;
3268
3270
  joinWithTcpOnlyDelay: number;
3269
3271
  }
3272
+ export interface IPCKillSwitch {
3273
+ ctor_sdpsemantics_add: boolean;
3274
+ ctor_encodedinsetablestream_add: boolean;
3275
+ sld_rtcpfb_rrtr_add: boolean;
3276
+ sld_ext_sdesmid_remove: boolean;
3277
+ sld_fmtp_sps_add: boolean;
3278
+ sld_fmtp_bitrate_add: boolean;
3279
+ sld_fmtp_opus_add: boolean;
3280
+ }
3270
3281
 
3271
3282
  /**
3272
3283
  * @id RTCEngine
@@ -6120,6 +6131,8 @@ export interface SetParamInterface {
6120
6131
  UPLOAD_REMOTE_STATS: string;
6121
6132
  SDK_CODEC_NEGOTIATION: boolean;
6122
6133
  ENABLE_FALLBACK_HANDLER: boolean;
6134
+ ENABLE_STANDARD_HANDLER: boolean;
6135
+ PC_KILLSWITCH: Partial<IPCKillSwitch>;
6123
6136
  }
6124
6137
 
6125
6138
  /**