trtc-sdk-v5 5.13.0-wasm.3 → 5.13.0-wasm.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/debug-dialog.js +2 -2
- package/assets/worker.js +12 -12
- package/package.json +1 -1
- package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.umd.js +1 -3
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/chorus/chorus.esm.js +1 -1
- package/plugins/chorus/chorus.umd.js +1 -3
- package/plugins/chorus/package.json +1 -1
- package/plugins/cross-room/cross-room.esm.js +1 -1
- package/plugins/cross-room/cross-room.umd.js +1 -3
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/custom-encryption.esm.js +1 -1
- package/plugins/custom-encryption/custom-encryption.umd.js +1 -1
- package/plugins/custom-encryption/package.json +1 -1
- package/plugins/device-detector/device-detector.esm.js +27 -15
- package/plugins/device-detector/device-detector.umd.js +14 -4
- package/plugins/device-detector/package.json +1 -1
- package/plugins/small-stream-auto-switcher/package.json +1 -1
- package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.esm.js +1 -1
- package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.umd.js +1 -1
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-decoder/video-decoder.esm.js +1 -1
- package/plugins/video-decoder/video-decoder.umd.js +1 -3
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +1 -1
- package/plugins/video-effect/basic-beauty/basic-beauty.umd.js +1 -3
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/beauty.esm.js +1 -1
- package/plugins/video-effect/beauty/beauty.umd.js +1 -3
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/video-mixer/package.json +1 -1
- package/plugins/video-effect/video-mixer/video-mixer.esm.js +1 -1
- package/plugins/video-effect/video-mixer/video-mixer.umd.js +1 -3
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -3
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/video-effect/watermark/watermark.umd.js +1 -3
- package/plugins/voice-changer/package.json +1 -1
- package/plugins/voice-changer/voice-changer.esm.js +1 -1
- package/plugins/voice-changer/voice-changer.umd.js +1 -3
- package/trtc.esm.js +54 -54
- package/trtc.js +1 -1
package/assets/debug-dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TRTCDebugDialog=t()}(this,function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){return e&&e.Math===Math&&e},r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),n={},i=function(e){try{return!!e()}catch(t){return!0}},o=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),s=a,c=Function.prototype.call,u=s?c.bind(c):function(){return c.apply(c,arguments)},l={},d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!d.call({1:2},1);l.f=f?function(e){var t=h(this,e);return!!t&&t.enumerable}:d;var p,m,g=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v=a,y=Function.prototype,b=y.call,_=v&&y.bind.bind(b,b),w=v?_:function(e){return function(){return b.apply(e,arguments)}},k=w,x=k({}.toString),S=k("".slice),E=function(e){return S(x(e),8,-1)},T=i,A=E,R=Object,C=w("".split),I=T(function(){return!R("z").propertyIsEnumerable(0)})?function(e){return"String"===A(e)?C(e,""):R(e)}:R,O=function(e){return null==e},D=O,B=TypeError,L=function(e){if(D(e))throw new B("Can't call method on "+e);return e},P=I,N=L,z=function(e){return P(N(e))},U="object"==typeof document&&document.all,j=void 0===U&&void 0!==U?function(e){return"function"==typeof e||e===U}:function(e){return"function"==typeof e},M=j,F=function(e){return"object"==typeof e?null!==e:M(e)},q=r,W=j,V=function(e,t){return arguments.length<2?(r=q[e],W(r)?r:void 0):q[e]&&q[e][t];var r},H=w({}.isPrototypeOf),G=r.navigator,Z=G&&G.userAgent,Y=Z?String(Z):"",K=r,X=Y,$=K.process,J=K.Deno,Q=$&&$.versions||J&&J.version,ee=Q&&Q.v8;ee&&(m=(p=ee.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!m&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(m=+p[1]);var te=m,re=te,ne=i,ie=r.String,oe=!!Object.getOwnPropertySymbols&&!ne(function(){var e=Symbol("symbol detection");return!ie(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41}),ae=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,se=V,ce=j,ue=H,le=Object,de=ae?function(e){return"symbol"==typeof e}:function(e){var t=se("Symbol");return ce(t)&&ue(t.prototype,le(e))},he=String,fe=function(e){try{return he(e)}catch(t){return"Object"}},pe=j,me=fe,ge=TypeError,ve=function(e){if(pe(e))return e;throw new ge(me(e)+" is not a function")},ye=ve,be=O,_e=function(e,t){var r=e[t];return be(r)?void 0:ye(r)},we=u,ke=j,xe=F,Se=TypeError,Ee={exports:{}},Te=r,Ae=Object.defineProperty,Re=function(e,t){try{Ae(Te,e,{value:t,configurable:!0,writable:!0})}catch(r){Te[e]=t}return t},Ce=r,Ie=Re,Oe="__core-js_shared__",De=Ee.exports=Ce[Oe]||Ie(Oe,{});(De.versions||(De.versions=[])).push({version:"3.45.1",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Be=Ee.exports,Le=Be,Pe=function(e,t){return Le[e]||(Le[e]=t||{})},Ne=L,ze=Object,Ue=function(e){return ze(Ne(e))},je=Ue,Me=w({}.hasOwnProperty),Fe=Object.hasOwn||function(e,t){return Me(je(e),t)},qe=w,We=0,Ve=Math.random(),He=qe(1.1.toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+He(++We+Ve,36)},Ze=Pe,Ye=Fe,Ke=Ge,Xe=oe,$e=ae,Je=r.Symbol,Qe=Ze("wks"),et=$e?Je.for||Je:Je&&Je.withoutSetter||Ke,tt=function(e){return Ye(Qe,e)||(Qe[e]=Xe&&Ye(Je,e)?Je[e]:et("Symbol."+e)),Qe[e]},rt=u,nt=F,it=de,ot=_e,at=function(e,t){var r,n;if("string"===t&&ke(r=e.toString)&&!xe(n=we(r,e)))return n;if(ke(r=e.valueOf)&&!xe(n=we(r,e)))return n;if("string"!==t&&ke(r=e.toString)&&!xe(n=we(r,e)))return n;throw new Se("Can't convert object to primitive value")},st=TypeError,ct=tt("toPrimitive"),ut=function(e,t){if(!nt(e)||it(e))return e;var r,n=ot(e,ct);if(n){if(void 0===t&&(t="default"),r=rt(n,e,t),!nt(r)||it(r))return r;throw new st("Can't convert object to primitive value")}return void 0===t&&(t="number"),at(e,t)},lt=ut,dt=de,ht=function(e){var t=lt(e,"string");return dt(t)?t:t+""},ft=F,pt=r.document,mt=ft(pt)&&ft(pt.createElement),gt=function(e){return mt?pt.createElement(e):{}},vt=gt,yt=!o&&!i(function(){return 7!==Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a}),bt=o,_t=u,wt=l,kt=g,xt=z,St=ht,Et=Fe,Tt=yt,At=Object.getOwnPropertyDescriptor;n.f=bt?At:function(e,t){if(e=xt(e),t=St(t),Tt)try{return At(e,t)}catch(r){}if(Et(e,t))return kt(!_t(wt.f,e,t),e[t])};var Rt={},Ct=o&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),It=F,Ot=String,Dt=TypeError,Bt=function(e){if(It(e))return e;throw new Dt(Ot(e)+" is not an object")},Lt=o,Pt=yt,Nt=Ct,zt=Bt,Ut=ht,jt=TypeError,Mt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,qt="enumerable",Wt="configurable",Vt="writable";Rt.f=Lt?Nt?function(e,t,r){if(zt(e),t=Ut(t),zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Vt in r&&!r[Vt]){var n=Ft(e,t);n&&n[Vt]&&(e[t]=r.value,r={configurable:Wt in r?r[Wt]:n[Wt],enumerable:qt in r?r[qt]:n[qt],writable:!1})}return Mt(e,t,r)}:Mt:function(e,t,r){if(zt(e),t=Ut(t),zt(r),Pt)try{return Mt(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new jt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Ht=Rt,Gt=g,Zt=o?function(e,t,r){return Ht.f(e,t,Gt(1,r))}:function(e,t,r){return e[t]=r,e},Yt={exports:{}},Kt=o,Xt=Fe,$t=Function.prototype,Jt=Kt&&Object.getOwnPropertyDescriptor,Qt=Xt($t,"name"),er={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!Kt||Kt&&Jt($t,"name").configurable)},tr=j,rr=Be,nr=w(Function.toString);tr(rr.inspectSource)||(rr.inspectSource=function(e){return nr(e)});var ir,or,ar,sr=rr.inspectSource,cr=j,ur=r.WeakMap,lr=cr(ur)&&/native code/.test(String(ur)),dr=Ge,hr=Pe("keys"),fr=function(e){return hr[e]||(hr[e]=dr(e))},pr={},mr=lr,gr=r,vr=F,yr=Zt,br=Fe,_r=Be,wr=fr,kr=pr,xr="Object already initialized",Sr=gr.TypeError,Er=gr.WeakMap;if(mr||_r.state){var Tr=_r.state||(_r.state=new Er);Tr.get=Tr.get,Tr.has=Tr.has,Tr.set=Tr.set,ir=function(e,t){if(Tr.has(e))throw new Sr(xr);return t.facade=e,Tr.set(e,t),t},or=function(e){return Tr.get(e)||{}},ar=function(e){return Tr.has(e)}}else{var Ar=wr("state");kr[Ar]=!0,ir=function(e,t){if(br(e,Ar))throw new Sr(xr);return t.facade=e,yr(e,Ar,t),t},or=function(e){return br(e,Ar)?e[Ar]:{}},ar=function(e){return br(e,Ar)}}var Rr={set:ir,get:or,has:ar,enforce:function(e){return ar(e)?or(e):ir(e,{})},getterFor:function(e){return function(t){var r;if(!vr(t)||(r=or(t)).type!==e)throw new Sr("Incompatible receiver, "+e+" required");return r}}},Cr=w,Ir=i,Or=j,Dr=Fe,Br=o,Lr=er.CONFIGURABLE,Pr=sr,Nr=Rr.enforce,zr=Rr.get,Ur=String,jr=Object.defineProperty,Mr=Cr("".slice),Fr=Cr("".replace),qr=Cr([].join),Wr=Br&&!Ir(function(){return 8!==jr(function(){},"length",{value:8}).length}),Vr=String(String).split("String"),Hr=Yt.exports=function(e,t,r){"Symbol("===Mr(Ur(t),0,7)&&(t="["+Fr(Ur(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Lr&&e.name!==t)&&(Br?jr(e,"name",{value:t,configurable:!0}):e.name=t),Wr&&r&&Dr(r,"arity")&&e.length!==r.arity&&jr(e,"length",{value:r.arity});try{r&&Dr(r,"constructor")&&r.constructor?Br&&jr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=Nr(e);return Dr(n,"source")||(n.source=qr(Vr,"string"==typeof t?t:"")),e};Function.prototype.toString=Hr(function(){return Or(this)&&zr(this).source||Pr(this)},"toString");var Gr=Yt.exports,Zr=j,Yr=Rt,Kr=Gr,Xr=Re,$r=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Zr(r)&&Kr(r,o,n),n.global)i?e[t]=r:Xr(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=r:Yr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Jr={},Qr=Math.ceil,en=Math.floor,tn=Math.trunc||function(e){var t=+e;return(t>0?en:Qr)(t)},rn=function(e){var t=+e;return t!=t||0===t?0:tn(t)},nn=rn,on=Math.max,an=Math.min,sn=function(e,t){var r=nn(e);return r<0?on(r+t,0):an(r,t)},cn=rn,un=Math.min,ln=function(e){var t=cn(e);return t>0?un(t,9007199254740991):0},dn=ln,hn=function(e){return dn(e.length)},fn=z,pn=sn,mn=hn,gn=function(e){return function(t,r,n){var i=fn(t),o=mn(i);if(0===o)return!e&&-1;var a,s=pn(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},vn={includes:gn(!0),indexOf:gn(!1)},yn=Fe,bn=z,_n=vn.indexOf,wn=pr,kn=w([].push),xn=function(e,t){var r,n=bn(e),i=0,o=[];for(r in n)!yn(wn,r)&&yn(n,r)&&kn(o,r);for(;t.length>i;)yn(n,r=t[i++])&&(~_n(o,r)||kn(o,r));return o},Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],En=xn,Tn=Sn.concat("length","prototype");Jr.f=Object.getOwnPropertyNames||function(e){return En(e,Tn)};var An={};An.f=Object.getOwnPropertySymbols;var Rn=V,Cn=Jr,In=An,On=Bt,Dn=w([].concat),Bn=Rn("Reflect","ownKeys")||function(e){var t=Cn.f(On(e)),r=In.f;return r?Dn(t,r(e)):t},Ln=Fe,Pn=Bn,Nn=n,zn=Rt,Un=function(e,t,r){for(var n=Pn(t),i=zn.f,o=Nn.f,a=0;a<n.length;a++){var s=n[a];Ln(e,s)||r&&Ln(r,s)||i(e,s,o(t,s))}},jn=i,Mn=j,Fn=/#|\.prototype\./,qn=function(e,t){var r=Vn[Wn(e)];return r===Gn||r!==Hn&&(Mn(t)?jn(t):!!t)},Wn=qn.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Vn=qn.data={},Hn=qn.NATIVE="N",Gn=qn.POLYFILL="P",Zn=qn,Yn=r,Kn=n.f,Xn=Zt,$n=$r,Jn=Re,Qn=Un,ei=Zn,ti=function(e,t){var r,n,i,o,a,s=e.target,c=e.global,u=e.stat;if(r=c?Yn:u?Yn[s]||Jn(s,{}):Yn[s]&&Yn[s].prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!ei(c?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Qn(o,i)}(e.sham||i&&i.sham)&&Xn(o,"sham",!0),$n(r,n,o,e)}},ri={},ni=xn,ii=Sn,oi=Object.keys||function(e){return ni(e,ii)},ai=o,si=Ct,ci=Rt,ui=Bt,li=z,di=oi;ri.f=ai&&!si?Object.defineProperties:function(e,t){ui(e);for(var r,n=li(t),i=di(t),o=i.length,a=0;o>a;)ci.f(e,r=i[a++],n[r]);return e};var hi,fi=V("document","documentElement"),pi=Bt,mi=ri,gi=Sn,vi=pr,yi=fi,bi=gt,_i="prototype",wi="script",ki=fr("IE_PROTO"),xi=function(){},Si=function(e){return"<"+wi+">"+e+"</"+wi+">"},Ei=function(e){e.write(Si("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ti=function(){try{hi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Ti="undefined"!=typeof document?document.domain&&hi?Ei(hi):(t=bi("iframe"),r="java"+wi+":",t.style.display="none",yi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Si("document.F=Object")),e.close(),e.F):Ei(hi);for(var n=gi.length;n--;)delete Ti[_i][gi[n]];return Ti()};vi[ki]=!0;var Ai=Object.create||function(e,t){var r;return null!==e?(xi[_i]=pi(e),r=new xi,xi[_i]=null,r[ki]=e):r=Ti(),void 0===t?r:mi.f(r,t)},Ri=tt,Ci=Ai,Ii=Rt.f,Oi=Ri("unscopables"),Di=Array.prototype;void 0===Di[Oi]&&Ii(Di,Oi,{configurable:!0,value:Ci(null)});var Bi=function(e){Di[Oi][e]=!0},Li=vn.includes,Pi=Bi;ti({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}}),Pi("includes");var Ni,zi,Ui,ji={},Mi=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Fi=Fe,qi=j,Wi=Ue,Vi=Mi,Hi=fr("IE_PROTO"),Gi=Object,Zi=Gi.prototype,Yi=Vi?Gi.getPrototypeOf:function(e){var t=Wi(e);if(Fi(t,Hi))return t[Hi];var r=t.constructor;return qi(r)&&t instanceof r?r.prototype:t instanceof Gi?Zi:null},Ki=i,Xi=j,$i=F,Ji=Yi,Qi=$r,eo=tt("iterator"),to=!1;[].keys&&("next"in(Ui=[].keys())?(zi=Ji(Ji(Ui)))!==Object.prototype&&(Ni=zi):to=!0);var ro=!$i(Ni)||Ki(function(){var e={};return Ni[eo].call(e)!==e});ro&&(Ni={}),Xi(Ni[eo])||Qi(Ni,eo,function(){return this});var no={IteratorPrototype:Ni,BUGGY_SAFARI_ITERATORS:to},io=Rt.f,oo=Fe,ao=tt("toStringTag"),so=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oo(e,ao)&&io(e,ao,{configurable:!0,value:t})},co=no.IteratorPrototype,uo=Ai,lo=g,ho=so,fo=ji,po=function(){return this},mo=function(e,t,r,n){var i=t+" Iterator";return e.prototype=uo(co,{next:lo(+!n,r)}),ho(e,i,!1),fo[i]=po,e},go=w,vo=ve,yo=F,bo=function(e){return yo(e)||null===e},_o=String,wo=TypeError,ko=function(e,t,r){try{return go(vo(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},xo=F,So=L,Eo=function(e){if(bo(e))return e;throw new wo("Can't set "+_o(e)+" as a prototype")},To=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ko(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return So(r),Eo(n),xo(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Ao=ti,Ro=u,Co=j,Io=mo,Oo=Yi,Do=To,Bo=so,Lo=Zt,Po=$r,No=ji,zo=er.PROPER,Uo=er.CONFIGURABLE,jo=no.IteratorPrototype,Mo=no.BUGGY_SAFARI_ITERATORS,Fo=tt("iterator"),qo="keys",Wo="values",Vo="entries",Ho=function(){return this},Go=function(e,t,r,n,i,o,a){Io(r,t,n);var s,c,u,l=function(e){if(e===i&&m)return m;if(!Mo&&e&&e in f)return f[e];switch(e){case qo:case Wo:case Vo:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[Fo]||f["@@iterator"]||i&&f[i],m=!Mo&&p||l(i),g="Array"===t&&f.entries||p;if(g&&(s=Oo(g.call(new e)))!==Object.prototype&&s.next&&(Oo(s)!==jo&&(Do?Do(s,jo):Co(s[Fo])||Po(s,Fo,Ho)),Bo(s,d,!0)),zo&&i===Wo&&p&&p.name!==Wo&&(Uo?Lo(f,"name",Wo):(h=!0,m=function(){return Ro(p,this)})),i)if(c={values:l(Wo),keys:o?m:l(qo),entries:l(Vo)},a)for(u in c)(Mo||h||!(u in f))&&Po(f,u,c[u]);else Ao({target:t,proto:!0,forced:Mo||h},c);return f[Fo]!==m&&Po(f,Fo,m,{name:i}),No[t]=m,c},Zo=function(e,t){return{value:e,done:t}},Yo=z,Ko=Bi,Xo=ji,$o=Rr,Jo=Rt.f,Qo=Go,ea=Zo,ta=o,ra="Array Iterator",na=$o.set,ia=$o.getterFor(ra),oa=Qo(Array,"Array",function(e,t){na(this,{type:ra,target:Yo(e),index:0,kind:t})},function(){var e=ia(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ea(void 0,!0);switch(e.kind){case"keys":return ea(r,!1);case"values":return ea(t[r],!1)}return ea([r,t[r]],!1)},"values"),aa=Xo.Arguments=Xo.Array;if(Ko("keys"),Ko("values"),Ko("entries"),ta&&"values"!==aa.name)try{Jo(aa,"name",{value:"values"})}catch(uT){}var sa=ve,ca=Ue,ua=I,la=hn,da=TypeError,ha="Reduce of empty array with no initial value",fa=function(e){return function(t,r,n,i){var o=ca(t),a=ua(o),s=la(o);if(sa(r),0===s&&n<2)throw new da(ha);var c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw new da(ha)}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},pa={left:fa(!1),right:fa(!0)},ma=i,ga=function(e,t){var r=[][e];return!!r&&ma(function(){r.call(null,t||function(){return 1},1)})},va=r,ya=Y,ba=E,_a=function(e){return ya.slice(0,e.length)===e},wa=_a("Bun/")?"BUN":_a("Cloudflare-Workers")?"CLOUDFLARE":_a("Deno/")?"DENO":_a("Node.js/")?"NODE":va.Bun&&"string"==typeof Bun.version?"BUN":va.Deno&&"object"==typeof Deno.version?"DENO":"process"===ba(va.process)?"NODE":va.window&&va.document?"BROWSER":"REST",ka="NODE"===wa,xa=pa.left;ti({target:"Array",proto:!0,forced:!ka&&te>79&&te<83||!ga("reduce")},{reduce:function(e){var t=arguments.length;return xa(this,e,t,t>1?arguments[1]:void 0)}});var Sa="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ea=Gr,Ta=Rt,Aa=function(e,t,r){return r.get&&Ea(r.get,t,{getter:!0}),r.set&&Ea(r.set,t,{setter:!0}),Ta.f(e,t,r)},Ra=$r,Ca=function(e,t,r){for(var n in t)Ra(e,n,t[n],r);return e},Ia=H,Oa=TypeError,Da=function(e,t){if(Ia(t,e))return e;throw new Oa("Incorrect invocation")},Ba=rn,La=ln,Pa=RangeError,Na=function(e){if(void 0===e)return 0;var t=Ba(e),r=La(t);if(t!==r)throw new Pa("Wrong length or index");return r},za=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},Ua=4503599627370496,ja=za,Ma=function(e){return e+Ua-Ua},Fa=Math.abs,qa=function(e,t,r,n){var i=+e,o=Fa(i),a=ja(i);if(o<n)return a*Ma(o/n/t)*n*t;var s=(1+t/2220446049250313e-31)*o,c=s-(s-o);return c>r||c!=c?Infinity*a:a*c},Wa=Math.fround||function(e){return qa(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Va=Array,Ha=Math.abs,Ga=Math.pow,Za=Math.floor,Ya=Math.log,Ka=Math.LN2,Xa={pack:function(e,t,r){var n,i,o,a=Va(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,l=23===t?Ga(2,-24)-Ga(2,-77):0,d=e<0||0===e&&1/e<0?1:0,h=0;for((e=Ha(e))!=e||Infinity===e?(i=e!=e?1:0,n=c):(n=Za(Ya(e)/Ka),e*(o=Ga(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?l/o:l*Ga(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*Ga(2,t),n+=u):(i=e*Ga(2,u-1)*Ga(2,t),n=0));t>=8;)a[h++]=255&i,i/=256,t-=8;for(n=n<<t|i,s+=t;s>0;)a[h++]=255&n,n/=256,s-=8;return a[h-1]|=128*d,a},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;s>0;)l=256*l+e[c--],s-=8;for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===l)l=1-a;else{if(l===o)return r?NaN:u?-Infinity:Infinity;r+=Ga(2,t),l-=a}return(u?-1:1)*r*Ga(2,l-t)}},$a=Ue,Ja=sn,Qa=hn,es=function(e){for(var t=$a(this),r=Qa(t),n=arguments.length,i=Ja(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:Ja(o,r);a>i;)t[i++]=e;return t},ts=w([].slice),rs=j,ns=F,is=To,os=function(e,t,r){var n,i;return is&&rs(n=t.constructor)&&n!==r&&ns(i=n.prototype)&&i!==r.prototype&&is(e,i),e},as=r,ss=w,cs=o,us=Sa,ls=Zt,ds=Aa,hs=Ca,fs=i,ps=Da,ms=rn,gs=ln,vs=Na,ys=Wa,bs=Xa,_s=Yi,ws=To,ks=es,xs=ts,Ss=os,Es=Un,Ts=so,As=Rr,Rs=er.PROPER,Cs=er.CONFIGURABLE,Is="ArrayBuffer",Os="DataView",Ds="prototype",Bs="Wrong index",Ls=As.getterFor(Is),Ps=As.getterFor(Os),Ns=As.set,zs=as[Is],Us=zs,js=Us&&Us[Ds],Ms=as[Os],Fs=Ms&&Ms[Ds],qs=Object.prototype,Ws=as.Array,Vs=as.RangeError,Hs=ss(ks),Gs=ss([].reverse),Zs=bs.pack,Ys=bs.unpack,Ks=function(e){return[255&e]},Xs=function(e){return[255&e,e>>8&255]},$s=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Js=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Qs=function(e){return Zs(ys(e),23,4)},ec=function(e){return Zs(e,52,8)},tc=function(e,t,r){ds(e[Ds],t,{configurable:!0,get:function(){return r(this)[t]}})},rc=function(e,t,r,n){var i=Ps(e),o=vs(r),a=!!n;if(o+t>i.byteLength)throw new Vs(Bs);var s=i.bytes,c=o+i.byteOffset,u=xs(s,c,c+t);return a?u:Gs(u)},nc=function(e,t,r,n,i,o){var a=Ps(e),s=vs(r),c=n(+i),u=!!o;if(s+t>a.byteLength)throw new Vs(Bs);for(var l=a.bytes,d=s+a.byteOffset,h=0;h<t;h++)l[d+h]=c[u?h:t-h-1]};if(us){var ic=Rs&&zs.name!==Is;fs(function(){zs(1)})&&fs(function(){new zs(-1)})&&!fs(function(){return new zs,new zs(1.5),new zs(NaN),1!==zs.length||ic&&!Cs})?ic&&Cs&&ls(zs,"name",Is):((Us=function(e){return ps(this,js),Ss(new zs(vs(e)),this,Us)})[Ds]=js,js.constructor=Us,Es(Us,zs)),ws&&_s(Fs)!==qs&&ws(Fs,qs);var oc=new Ms(new Us(2)),ac=ss(Fs.setInt8);oc.setInt8(0,2147483648),oc.setInt8(1,2147483649),!oc.getInt8(0)&&oc.getInt8(1)||hs(Fs,{setInt8:function(e,t){ac(this,e,t<<24>>24)},setUint8:function(e,t){ac(this,e,t<<24>>24)}},{unsafe:!0})}else js=(Us=function(e){ps(this,js);var t=vs(e);Ns(this,{type:Is,bytes:Hs(Ws(t),0),byteLength:t}),cs||(this.byteLength=t,this.detached=!1)})[Ds],Fs=(Ms=function(e,t,r){ps(this,Fs),ps(e,js);var n=Ls(e),i=n.byteLength,o=ms(t);if(o<0||o>i)throw new Vs("Wrong offset");if(o+(r=void 0===r?i-o:gs(r))>i)throw new Vs("Wrong length");Ns(this,{type:Os,buffer:e,byteLength:r,byteOffset:o,bytes:n.bytes}),cs||(this.buffer=e,this.byteLength=r,this.byteOffset=o)})[Ds],cs&&(tc(Us,"byteLength",Ls),tc(Ms,"buffer",Ps),tc(Ms,"byteLength",Ps),tc(Ms,"byteOffset",Ps)),hs(Fs,{getInt8:function(e){return rc(this,1,e)[0]<<24>>24},getUint8:function(e){return rc(this,1,e)[0]},getInt16:function(e){var t=rc(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=rc(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Js(rc(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Js(rc(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Ys(rc(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Ys(rc(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){nc(this,1,e,Ks,t)},setUint8:function(e,t){nc(this,1,e,Ks,t)},setInt16:function(e,t){nc(this,2,e,Xs,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){nc(this,2,e,Xs,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){nc(this,4,e,$s,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){nc(this,4,e,$s,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){nc(this,4,e,Qs,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){nc(this,8,e,ec,t,arguments.length>2&&arguments[2])}});Ts(Us,Is),Ts(Ms,Os);var sc={ArrayBuffer:Us,DataView:Ms},cc=V,uc=Aa,lc=o,dc=tt("species"),hc=function(e){var t=cc(e);lc&&t&&!t[dc]&&uc(t,dc,{configurable:!0,get:function(){return this}})},fc=hc,pc="ArrayBuffer",mc=sc[pc];ti({global:!0,constructor:!0,forced:r[pc]!==mc},{ArrayBuffer:mc}),fc(pc);var gc=E,vc=w,yc=function(e){if("Function"===gc(e))return vc(e)},bc=ti,_c=yc,wc=i,kc=Bt,xc=sn,Sc=ln,Ec=sc.ArrayBuffer,Tc=sc.DataView,Ac=Tc.prototype,Rc=_c(Ec.prototype.slice),Cc=_c(Ac.getUint8),Ic=_c(Ac.setUint8);bc({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:wc(function(){return!new Ec(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(Rc&&void 0===t)return Rc(kc(this),e);for(var r=kc(this).byteLength,n=xc(e,r),i=xc(void 0===t?r:t,r),o=new Ec(Sc(i-n)),a=new Tc(this),s=new Tc(o),c=0;n<i;)Ic(s,c++,Cc(a,n++));return o}});var Oc=r,Dc={};Dc[tt("toStringTag")]="z";var Bc="[object z]"===String(Dc),Lc=j,Pc=E,Nc=tt("toStringTag"),zc=Object,Uc="Arguments"===Pc(function(){return arguments}()),jc=Bc?Pc:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(uT){}}(t=zc(e),Nc))?r:Uc?Pc(t):"Object"===(n=Pc(t))&&Lc(t.callee)?"Arguments":n},Mc=w,Fc=i,qc=j,Wc=jc,Vc=sr,Hc=function(){},Gc=V("Reflect","construct"),Zc=/^\s*(?:class|function)\b/,Yc=Mc(Zc.exec),Kc=!Zc.test(Hc),Xc=function(e){if(!qc(e))return!1;try{return Gc(Hc,[],e),!0}catch(uT){return!1}},$c=function(e){if(!qc(e))return!1;switch(Wc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Kc||!!Yc(Zc,Vc(e))}catch(uT){return!0}};$c.sham=!0;var Jc,Qc,eu,tu,ru=!Gc||Fc(function(){var e;return Xc(Xc.call)||!Xc(Object)||!Xc(function(){e=!0})||e})?$c:Xc,nu=ru,iu=fe,ou=TypeError,au=function(e){if(nu(e))return e;throw new ou(iu(e)+" is not a constructor")},su=Bt,cu=au,uu=O,lu=tt("species"),du=function(e,t){var r,n=su(e).constructor;return void 0===n||uu(r=su(n)[lu])?t:cu(r)},hu=a,fu=Function.prototype,pu=fu.apply,mu=fu.call,gu="object"==typeof Reflect&&Reflect.apply||(hu?mu.bind(pu):function(){return mu.apply(pu,arguments)}),vu=ve,yu=a,bu=yc(yc.bind),_u=function(e,t){return vu(e),void 0===t?e:yu?bu(e,t):function(){return e.apply(t,arguments)}},wu=TypeError,ku=function(e,t){if(e<t)throw new wu("Not enough arguments");return e},xu=/(?:ipad|iphone|ipod).*applewebkit/i.test(Y),Su=r,Eu=gu,Tu=_u,Au=j,Ru=Fe,Cu=i,Iu=fi,Ou=ts,Du=gt,Bu=ku,Lu=xu,Pu=ka,Nu=Su.setImmediate,zu=Su.clearImmediate,Uu=Su.process,ju=Su.Dispatch,Mu=Su.Function,Fu=Su.MessageChannel,qu=Su.String,Wu=0,Vu={},Hu="onreadystatechange";Cu(function(){Jc=Su.location});var Gu=function(e){if(Ru(Vu,e)){var t=Vu[e];delete Vu[e],t()}},Zu=function(e){return function(){Gu(e)}},Yu=function(e){Gu(e.data)},Ku=function(e){Su.postMessage(qu(e),Jc.protocol+"//"+Jc.host)};Nu&&zu||(Nu=function(e){Bu(arguments.length,1);var t=Au(e)?e:Mu(e),r=Ou(arguments,1);return Vu[++Wu]=function(){Eu(t,void 0,r)},Qc(Wu),Wu},zu=function(e){delete Vu[e]},Pu?Qc=function(e){Uu.nextTick(Zu(e))}:ju&&ju.now?Qc=function(e){ju.now(Zu(e))}:Fu&&!Lu?(tu=(eu=new Fu).port2,eu.port1.onmessage=Yu,Qc=Tu(tu.postMessage,tu)):Su.addEventListener&&Au(Su.postMessage)&&!Su.importScripts&&Jc&&"file:"!==Jc.protocol&&!Cu(Ku)?(Qc=Ku,Su.addEventListener("message",Yu,!1)):Qc=Hu in Du("script")?function(e){Iu.appendChild(Du("script"))[Hu]=function(){Iu.removeChild(this),Gu(e)}}:function(e){setTimeout(Zu(e),0)});var Xu={set:Nu,clear:zu},$u=r,Ju=o,Qu=Object.getOwnPropertyDescriptor,el=function(e){if(!Ju)return $u[e];var t=Qu($u,e);return t&&t.value},tl=function(){this.head=null,this.tail=null};tl.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var rl,nl,il,ol,al,sl=tl,cl=/ipad|iphone|ipod/i.test(Y)&&"undefined"!=typeof Pebble,ul=/web0s(?!.*chrome)/i.test(Y),ll=r,dl=el,hl=_u,fl=Xu.set,pl=sl,ml=xu,gl=cl,vl=ul,yl=ka,bl=ll.MutationObserver||ll.WebKitMutationObserver,_l=ll.document,wl=ll.process,kl=ll.Promise,xl=dl("queueMicrotask");if(!xl){var Sl=new pl,El=function(){var e,t;for(yl&&(e=wl.domain)&&e.exit();t=Sl.get();)try{t()}catch(uT){throw Sl.head&&rl(),uT}e&&e.enter()};ml||yl||vl||!bl||!_l?!gl&&kl&&kl.resolve?((ol=kl.resolve(void 0)).constructor=kl,al=hl(ol.then,ol),rl=function(){al(El)}):yl?rl=function(){wl.nextTick(El)}:(fl=hl(fl,ll),rl=function(){fl(El)}):(nl=!0,il=_l.createTextNode(""),new bl(El).observe(il,{characterData:!0}),rl=function(){il.data=nl=!nl}),xl=function(e){Sl.head||rl(),Sl.add(e)}}var Tl=xl,Al=function(e){try{return{error:!1,value:e()}}catch(uT){return{error:!0,value:uT}}},Rl=r.Promise,Cl=r,Il=Rl,Ol=j,Dl=Zn,Bl=sr,Ll=tt,Pl=wa,Nl=te;Il&&Il.prototype;var zl=Ll("species"),Ul=!1,jl=Ol(Cl.PromiseRejectionEvent),Ml=Dl("Promise",function(){var e=Bl(Il),t=e!==String(Il);if(!t&&66===Nl)return!0;if(!Nl||Nl<51||!/native code/.test(e)){var r=new Il(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[zl]=n,!(Ul=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==Pl&&"DENO"!==Pl||jl)}),Fl={CONSTRUCTOR:Ml,REJECTION_EVENT:jl,SUBCLASSING:Ul},ql={},Wl=ve,Vl=TypeError,Hl=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new Vl("Bad Promise constructor");t=e,r=n}),this.resolve=Wl(t),this.reject=Wl(r)};ql.f=function(e){return new Hl(e)};var Gl,Zl,Yl,Kl,Xl=ti,$l=ka,Jl=r,Ql=Oc,ed=u,td=$r,rd=To,nd=so,id=hc,od=ve,ad=j,sd=F,cd=Da,ud=du,ld=Xu.set,dd=Tl,hd=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(uT){}},fd=Al,pd=sl,md=Rr,gd=Rl,vd=ql,yd="Promise",bd=Fl.CONSTRUCTOR,_d=Fl.REJECTION_EVENT,wd=Fl.SUBCLASSING,kd=md.getterFor(yd),xd=md.set,Sd=gd&&gd.prototype,Ed=gd,Td=Sd,Ad=Jl.TypeError,Rd=Jl.document,Cd=Jl.process,Id=vd.f,Od=Id,Dd=!!(Rd&&Rd.createEvent&&Jl.dispatchEvent),Bd="unhandledrejection",Ld=function(e){var t;return!(!sd(e)||!ad(t=e.then))&&t},Pd=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Md(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?u(new Ad("Promise-chain cycle")):(n=Ld(r))?ed(n,r,c,u):c(r)):u(o)}catch(uT){l&&!i&&l.exit(),u(uT)}},Nd=function(e,t){e.notified||(e.notified=!0,dd(function(){for(var r,n=e.reactions;r=n.get();)Pd(r,e);e.notified=!1,t&&!e.rejection&&Ud(e)}))},zd=function(e,t,r){var n,i;Dd?((n=Rd.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Jl.dispatchEvent(n)):n={promise:t,reason:r},!_d&&(i=Jl["on"+e])?i(n):e===Bd&&hd("Unhandled promise rejection",r)},Ud=function(e){ed(ld,Jl,function(){var t,r=e.facade,n=e.value;if(jd(e)&&(t=fd(function(){$l?Cd.emit("unhandledRejection",n,r):zd(Bd,r,n)}),e.rejection=$l||jd(e)?2:1,t.error))throw t.value})},jd=function(e){return 1!==e.rejection&&!e.parent},Md=function(e){ed(ld,Jl,function(){var t=e.facade;$l?Cd.emit("rejectionHandled",t):zd("rejectionhandled",t,e.value)})},Fd=function(e,t,r){return function(n){e(t,n,r)}},qd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Nd(e,!0))},Wd=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Ad("Promise can't be resolved itself");var n=Ld(t);n?dd(function(){var r={done:!1};try{ed(n,t,Fd(Wd,r,e),Fd(qd,r,e))}catch(uT){qd(r,uT,e)}}):(e.value=t,e.state=1,Nd(e,!1))}catch(uT){qd({done:!1},uT,e)}}};if(bd&&(Td=(Ed=function(e){cd(this,Td),od(e),ed(Gl,this);var t=kd(this);try{e(Fd(Wd,t),Fd(qd,t))}catch(uT){qd(t,uT)}}).prototype,(Gl=function(e){xd(this,{type:yd,done:!1,notified:!1,parent:!1,reactions:new pd,rejection:!1,state:0,value:null})}).prototype=td(Td,"then",function(e,t){var r=kd(this),n=Id(ud(this,Ed));return r.parent=!0,n.ok=!ad(e)||e,n.fail=ad(t)&&t,n.domain=$l?Cd.domain:void 0,0===r.state?r.reactions.add(n):dd(function(){Pd(n,r)}),n.promise}),Zl=function(){var e=new Gl,t=kd(e);this.promise=e,this.resolve=Fd(Wd,t),this.reject=Fd(qd,t)},vd.f=Id=function(e){return e===Ed||e===Yl?new Zl(e):Od(e)},ad(gd)&&Sd!==Object.prototype)){Kl=Sd.then,wd||td(Sd,"then",function(e,t){var r=this;return new Ed(function(e,t){ed(Kl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete Sd.constructor}catch(uT){}rd&&rd(Sd,Td)}Xl({global:!0,constructor:!0,wrap:!0,forced:bd},{Promise:Ed}),Yl=Ql.Promise,nd(Ed,yd,!1),id(yd);var Vd=ji,Hd=tt("iterator"),Gd=Array.prototype,Zd=function(e){return void 0!==e&&(Vd.Array===e||Gd[Hd]===e)},Yd=jc,Kd=_e,Xd=O,$d=ji,Jd=tt("iterator"),Qd=function(e){if(!Xd(e))return Kd(e,Jd)||Kd(e,"@@iterator")||$d[Yd(e)]},eh=u,th=ve,rh=Bt,nh=fe,ih=Qd,oh=TypeError,ah=function(e,t){var r=arguments.length<2?ih(e):t;if(th(r))return rh(eh(r,e));throw new oh(nh(e)+" is not iterable")},sh=u,ch=Bt,uh=_e,lh=function(e,t,r){var n,i;ch(e);try{if(!(n=uh(e,"return"))){if("throw"===t)throw r;return r}n=sh(n,e)}catch(uT){i=!0,n=uT}if("throw"===t)throw r;if(i)throw n;return ch(n),r},dh=_u,hh=u,fh=Bt,ph=fe,mh=Zd,gh=hn,vh=H,yh=ah,bh=Qd,_h=lh,wh=TypeError,kh=function(e,t){this.stopped=e,this.result=t},xh=kh.prototype,Sh=function(e,t,r){var n,i,o,a,s,c,u,l=r&&r.that,d=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=dh(t,l),g=function(e){return n&&_h(n,"normal"),new kh(!0,e)},v=function(e){return d?(fh(e),p?m(e[0],e[1],g):m(e[0],e[1])):p?m(e,g):m(e)};if(h)n=e.iterator;else if(f)n=e;else{if(!(i=bh(e)))throw new wh(ph(e)+" is not iterable");if(mh(i)){for(o=0,a=gh(e);a>o;o++)if((s=v(e[o]))&&vh(xh,s))return s;return new kh(!1)}n=yh(e,i)}for(c=h?e.next:n.next;!(u=hh(c,n)).done;){try{s=v(u.value)}catch(uT){_h(n,"throw",uT)}if("object"==typeof s&&s&&vh(xh,s))return s}return new kh(!1)},Eh=tt("iterator"),Th=!1;try{var Ah=0,Rh={next:function(){return{done:!!Ah++}},return:function(){Th=!0}};Rh[Eh]=function(){return this},Array.from(Rh,function(){throw 2})}catch(uT){}var Ch=function(e,t){try{if(!t&&!Th)return!1}catch(uT){return!1}var r=!1;try{var n={};n[Eh]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(uT){}return r},Ih=Rl,Oh=Fl.CONSTRUCTOR||!Ch(function(e){Ih.all(e).then(void 0,function(){})}),Dh=u,Bh=ve,Lh=ql,Ph=Al,Nh=Sh;ti({target:"Promise",stat:!0,forced:Oh},{all:function(e){var t=this,r=Lh.f(t),n=r.resolve,i=r.reject,o=Ph(function(){var r=Bh(t.resolve),o=[],a=0,s=1;Nh(e,function(e){var c=a++,u=!1;s++,Dh(r,t,e).then(function(e){u||(u=!0,o[c]=e,--s||n(o))},i)}),--s||n(o)});return o.error&&i(o.value),r.promise}});var zh=ti,Uh=Fl.CONSTRUCTOR,jh=Rl,Mh=V,Fh=j,qh=$r,Wh=jh&&jh.prototype;if(zh({target:"Promise",proto:!0,forced:Uh,real:!0},{catch:function(e){return this.then(void 0,e)}}),Fh(jh)){var Vh=Mh("Promise").prototype.catch;Wh.catch!==Vh&&qh(Wh,"catch",Vh,{unsafe:!0})}var Hh=u,Gh=ve,Zh=ql,Yh=Al,Kh=Sh;ti({target:"Promise",stat:!0,forced:Oh},{race:function(e){var t=this,r=Zh.f(t),n=r.reject,i=Yh(function(){var i=Gh(t.resolve);Kh(e,function(e){Hh(i,t,e).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var Xh=ql;ti({target:"Promise",stat:!0,forced:Fl.CONSTRUCTOR},{reject:function(e){var t=Xh.f(this);return(0,t.reject)(e),t.promise}});var $h=Bt,Jh=F,Qh=ql,ef=function(e,t){if($h(e),Jh(t)&&t.constructor===e)return t;var r=Qh.f(e);return(0,r.resolve)(t),r.promise},tf=ti,rf=Fl.CONSTRUCTOR,nf=ef;V("Promise"),tf({target:"Promise",stat:!0,forced:rf},{resolve:function(e){return nf(this,e)}});var of=ti,af=Rl,sf=i,cf=V,uf=j,lf=du,df=ef,hf=$r,ff=af&&af.prototype;if(of({target:"Promise",proto:!0,real:!0,forced:!!af&&sf(function(){ff.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=lf(this,cf("Promise")),r=uf(e);return this.then(r?function(r){return df(t,e()).then(function(){return r})}:e,r?function(r){return df(t,e()).then(function(){throw r})}:e)}}),uf(af)){var pf=cf("Promise").prototype.finally;ff.finally!==pf&&hf(ff,"finally",pf,{unsafe:!0})}var mf=F,gf=E,vf=tt("match"),yf=jc,bf=String,_f=function(e){if("Symbol"===yf(e))throw new TypeError("Cannot convert a Symbol value to a string");return bf(e)},wf=i,kf=r.RegExp,xf=!wf(function(){var e=!0;try{kf(".","d")}catch(uT){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(kf.prototype,"flags").get.call(t)!==n||r!==n}),Sf={correct:xf},Ef=Bt,Tf=function(){var e=Ef(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Af=u,Rf=Fe,Cf=H,If=Sf,Of=Tf,Df=RegExp.prototype,Bf=If.correct?function(e){return e.flags}:function(e){return If.correct||!Cf(Df,e)||Rf(e,"flags")?e.flags:Af(Of,e)},Lf=i,Pf=r.RegExp,Nf=Lf(function(){var e=Pf("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),zf=Nf||Lf(function(){return!Pf("a","y").sticky}),Uf={BROKEN_CARET:Nf||Lf(function(){var e=Pf("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:zf,UNSUPPORTED_Y:Nf},jf=Rt.f,Mf=i,Ff=r.RegExp,qf=Mf(function(){var e=Ff(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),Wf=i,Vf=r.RegExp,Hf=Wf(function(){var e=Vf("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Gf=o,Zf=r,Yf=w,Kf=Zn,Xf=os,$f=Zt,Jf=Ai,Qf=Jr.f,ep=H,tp=function(e){var t;return mf(e)&&(void 0!==(t=e[vf])?!!t:"RegExp"===gf(e))},rp=_f,np=Bf,ip=Uf,op=function(e,t,r){r in e||jf(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},ap=$r,sp=i,cp=Fe,up=Rr.enforce,lp=hc,dp=qf,hp=Hf,fp=tt("match"),pp=Zf.RegExp,mp=pp.prototype,gp=Zf.SyntaxError,vp=Yf(mp.exec),yp=Yf("".charAt),bp=Yf("".replace),_p=Yf("".indexOf),wp=Yf("".slice),kp=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,xp=/a/g,Sp=/a/g,Ep=new pp(xp)!==xp,Tp=ip.MISSED_STICKY,Ap=ip.UNSUPPORTED_Y,Rp=Gf&&(!Ep||Tp||dp||hp||sp(function(){return Sp[fp]=!1,pp(xp)!==xp||pp(Sp)===Sp||"/a/i"!==String(pp(xp,"i"))}));if(Kf("RegExp",Rp)){for(var Cp=function(e,t){var r,n,i,o,a,s,c=ep(mp,this),u=tp(e),l=void 0===t,d=[],h=e;if(!c&&u&&l&&e.constructor===Cp)return e;if((u||ep(mp,e))&&(e=e.source,l&&(t=np(h))),e=void 0===e?"":rp(e),t=void 0===t?"":rp(t),h=e,dp&&"dotAll"in xp&&(n=!!t&&_p(t,"s")>-1)&&(t=bp(t,/s/g,"")),r=t,Tp&&"sticky"in xp&&(i=!!t&&_p(t,"y")>-1)&&Ap&&(t=bp(t,/y/g,"")),hp&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a=Jf(null),s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=yp(e,n)))t+=yp(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===wp(e,n+1,n+3))continue;vp(kp,wp(e,n+1))&&(n+=2,c=!0),u++;continue;case">"===t&&c:if(""===l||cp(a,l))throw new gp("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),a=Xf(pp(e,t),c?this:mp,Cp),(n||i||d.length)&&(s=up(a),n&&(s.dotAll=!0,s.raw=Cp(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=yp(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+yp(e,++n);return i}(e),r)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==h)try{$f(a,"source",""===h?"(?:)":h)}catch(uT){}return a},Ip=Qf(pp),Op=0;Ip.length>Op;)op(Cp,pp,Ip[Op++]);mp.constructor=Cp,Cp.prototype=mp,ap(Zf,"RegExp",Cp,{constructor:!0})}lp("RegExp");var Dp=u,Bp=w,Lp=_f,Pp=Tf,Np=Uf,zp=Ai,Up=Rr.get,jp=qf,Mp=Hf,Fp=Pe("native-string-replace",String.prototype.replace),qp=RegExp.prototype.exec,Wp=qp,Vp=Bp("".charAt),Hp=Bp("".indexOf),Gp=Bp("".replace),Zp=Bp("".slice),Yp=function(){var e=/a/,t=/b*/g;return Dp(qp,e,"a"),Dp(qp,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Kp=Np.BROKEN_CARET,Xp=void 0!==/()??/.exec("")[1];(Yp||Xp||Kp||jp||Mp)&&(Wp=function(e){var t,r,n,i,o,a,s,c=this,u=Up(c),l=Lp(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=Dp(Wp,d,l),c.lastIndex=d.lastIndex,t;var h=u.groups,f=Kp&&c.sticky,p=Dp(Pp,c),m=c.source,g=0,v=l;if(f&&(p=Gp(p,"y",""),-1===Hp(p,"g")&&(p+="g"),v=Zp(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Vp(l,c.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),r=new RegExp("^(?:"+m+")",p)),Xp&&(r=new RegExp("^"+m+"$(?!\\s)",p)),Yp&&(n=c.lastIndex),i=Dp(qp,f?r:c,v),f?i?(i.input=Zp(i.input,g),i[0]=Zp(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Yp&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),Xp&&i&&i.length>1&&Dp(Fp,i[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i&&h)for(i.groups=a=zp(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var $p=Wp;ti({target:"RegExp",proto:!0,forced:/./.exec!==$p},{exec:$p});var Jp=Aa,Qp=Sf,em=Tf;o&&!Qp.correct&&(Jp(RegExp.prototype,"flags",{configurable:!0,get:em}),Qp.correct=!0);var tm=u,rm=$r,nm=$p,im=i,om=tt,am=Zt,sm=om("species"),cm=RegExp.prototype,um=w,lm=rn,dm=_f,hm=L,fm=um("".charAt),pm=um("".charCodeAt),mm=um("".slice),gm=function(e){return function(t,r){var n,i,o=dm(hm(t)),a=lm(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=pm(o,a))<55296||n>56319||a+1===s||(i=pm(o,a+1))<56320||i>57343?e?fm(o,a):n:e?mm(o,a,a+2):i-56320+(n-55296<<10)+65536}},vm={codeAt:gm(!1),charAt:gm(!0)},ym=vm.charAt,bm=w,_m=Ue,wm=Math.floor,km=bm("".charAt),xm=bm("".replace),Sm=bm("".slice),Em=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Tm=/\$([$&'`]|\d{1,2})/g,Am=u,Rm=Bt,Cm=j,Im=E,Om=$p,Dm=TypeError,Bm=gu,Lm=u,Pm=w,Nm=function(e,t,r,n){var i=om(e),o=!im(function(){var t={};return t[i]=function(){return 7},7!==""[e](t)}),a=o&&!im(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[sm]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t});if(!o||!a||r){var s=/./[i],c=t(i,""[e],function(e,t,r,n,i){var a=t.exec;return a===nm||a===cm.exec?o&&!i?{done:!0,value:tm(s,t,r,n)}:{done:!0,value:tm(e,r,t,n)}:{done:!1}});rm(String.prototype,e,c[0]),rm(cm,i,c[1])}n&&am(cm[i],"sham",!0)},zm=i,Um=Bt,jm=j,Mm=F,Fm=rn,qm=ln,Wm=_f,Vm=L,Hm=function(e,t,r){return t+(r?ym(e,t).length:1)},Gm=_e,Zm=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,c=Tm;return void 0!==i&&(i=_m(i),c=Em),xm(o,c,function(o,c){var u;switch(km(c,0)){case"$":return"$";case"&":return e;case"`":return Sm(t,0,r);case"'":return Sm(t,a);case"<":u=i[Sm(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var d=wm(l/10);return 0===d?o:d<=s?void 0===n[d-1]?km(c,1):n[d-1]+km(c,1):o}u=n[l-1]}return void 0===u?"":u})},Ym=Bf,Km=function(e,t){var r=e.exec;if(Cm(r)){var n=Am(r,e,t);return null!==n&&Rm(n),n}if("RegExp"===Im(e))return Am(Om,e,t);throw new Dm("RegExp#exec called on incompatible receiver")},Xm=tt("replace"),$m=Math.max,Jm=Math.min,Qm=Pm([].concat),eg=Pm([].push),tg=Pm("".indexOf),rg=Pm("".slice),ng=function(e){return void 0===e?e:String(e)},ig="$0"==="a".replace(/./,"$0"),og=!!/./[Xm]&&""===/./[Xm]("a","$0");Nm("replace",function(e,t,r){var n=og?"$":"$0";return[function(e,r){var n=Vm(this),i=Mm(e)?Gm(e,Xm):void 0;return i?Lm(i,e,n,r):Lm(t,Wm(n),e,r)},function(e,i){var o=Um(this),a=Wm(e);if("string"==typeof i&&-1===tg(i,n)&&-1===tg(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var c=jm(i);c||(i=Wm(i));var u,l=Wm(Ym(o)),d=-1!==tg(l,"g");d&&(u=-1!==tg(l,"u"),o.lastIndex=0);for(var h,f=[];null!==(h=Km(o,a))&&(eg(f,h),d);){""===Wm(h[0])&&(o.lastIndex=Hm(a,qm(o.lastIndex),u))}for(var p="",m=0,g=0;g<f.length;g++){for(var v,y=Wm((h=f[g])[0]),b=$m(Jm(Fm(h.index),a.length),0),_=[],w=1;w<h.length;w++)eg(_,ng(h[w]));var k=h.groups;if(c){var x=Qm([y],_,b,a);void 0!==k&&eg(x,k),v=Wm(Bm(i,void 0,x))}else v=Zm(y,a,b,_,k,i);b>=m&&(p+=rg(a,m,b)+v,m=b+y.length)}return p+rg(a,m)}]},!!zm(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!ig||og);var ag,sg,cg,ug={exports:{}},lg=Sa,dg=o,hg=r,fg=j,pg=F,mg=Fe,gg=jc,vg=fe,yg=Zt,bg=$r,_g=Aa,wg=H,kg=Yi,xg=To,Sg=tt,Eg=Ge,Tg=Rr.enforce,Ag=Rr.get,Rg=hg.Int8Array,Cg=Rg&&Rg.prototype,Ig=hg.Uint8ClampedArray,Og=Ig&&Ig.prototype,Dg=Rg&&kg(Rg),Bg=Cg&&kg(Cg),Lg=Object.prototype,Pg=hg.TypeError,Ng=Sg("toStringTag"),zg=Eg("TYPED_ARRAY_TAG"),Ug="TypedArrayConstructor",jg=lg&&!!xg&&"Opera"!==gg(hg.opera),Mg=!1,Fg={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qg={BigInt64Array:8,BigUint64Array:8},Wg=function(e){var t=kg(e);if(pg(t)){var r=Ag(t);return r&&mg(r,Ug)?r[Ug]:Wg(t)}},Vg=function(e){if(!pg(e))return!1;var t=gg(e);return mg(Fg,t)||mg(qg,t)};for(ag in Fg)(cg=(sg=hg[ag])&&sg.prototype)?Tg(cg)[Ug]=sg:jg=!1;for(ag in qg)(cg=(sg=hg[ag])&&sg.prototype)&&(Tg(cg)[Ug]=sg);if((!jg||!fg(Dg)||Dg===Function.prototype)&&(Dg=function(){throw new Pg("Incorrect invocation")},jg))for(ag in Fg)hg[ag]&&xg(hg[ag],Dg);if((!jg||!Bg||Bg===Lg)&&(Bg=Dg.prototype,jg))for(ag in Fg)hg[ag]&&xg(hg[ag].prototype,Bg);if(jg&&kg(Og)!==Bg&&xg(Og,Bg),dg&&!mg(Bg,Ng))for(ag in Mg=!0,_g(Bg,Ng,{configurable:!0,get:function(){return pg(this)?this[zg]:void 0}}),Fg)hg[ag]&&yg(hg[ag],zg,ag);var Hg={NATIVE_ARRAY_BUFFER_VIEWS:jg,TYPED_ARRAY_TAG:Mg&&zg,aTypedArray:function(e){if(Vg(e))return e;throw new Pg("Target is not a typed array")},aTypedArrayConstructor:function(e){if(fg(e)&&(!xg||wg(Dg,e)))return e;throw new Pg(vg(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(dg){if(r)for(var i in Fg){var o=hg[i];if(o&&mg(o.prototype,e))try{delete o.prototype[e]}catch(uT){try{o.prototype[e]=t}catch(a){}}}Bg[e]&&!r||bg(Bg,e,r?t:jg&&Cg[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(dg){if(xg){if(r)for(n in Fg)if((i=hg[n])&&mg(i,e))try{delete i[e]}catch(uT){}if(Dg[e]&&!r)return;try{return bg(Dg,e,r?t:jg&&Dg[e]||t)}catch(uT){}}for(n in Fg)!(i=hg[n])||i[e]&&!r||bg(i,e,t)}},getTypedArrayConstructor:Wg,isView:function(e){if(!pg(e))return!1;var t=gg(e);return"DataView"===t||mg(Fg,t)||mg(qg,t)},isTypedArray:Vg,TypedArray:Dg,TypedArrayPrototype:Bg},Gg=r,Zg=i,Yg=Ch,Kg=Hg.NATIVE_ARRAY_BUFFER_VIEWS,Xg=Gg.ArrayBuffer,$g=Gg.Int8Array,Jg=!Kg||!Zg(function(){$g(1)})||!Zg(function(){new $g(-1)})||!Yg(function(e){new $g,new $g(null),new $g(1.5),new $g(e)},!0)||Zg(function(){return 1!==new $g(new Xg(2),1,void 0).length}),Qg=F,ev=Math.floor,tv=Number.isInteger||function(e){return!Qg(e)&&isFinite(e)&&ev(e)===e},rv=rn,nv=RangeError,iv=function(e){var t=rv(e);if(t<0)throw new nv("The argument can't be less than 0");return t},ov=RangeError,av=function(e,t){var r=iv(e);if(r%t)throw new ov("Wrong offset");return r},sv=Math.round,cv=jc,uv=ut,lv=TypeError,dv=function(e){var t=uv(e,"number");if("number"==typeof t)throw new lv("Can't convert number to bigint");return BigInt(t)},hv=_u,fv=u,pv=au,mv=Ue,gv=hn,vv=ah,yv=Qd,bv=Zd,_v=function(e){var t=cv(e);return"BigInt64Array"===t||"BigUint64Array"===t},wv=Hg.aTypedArrayConstructor,kv=dv,xv=function(e){var t,r,n,i,o,a,s,c,u=pv(this),l=mv(e),d=arguments.length,h=d>1?arguments[1]:void 0,f=void 0!==h,p=yv(l);if(p&&!bv(p))for(c=(s=vv(l,p)).next,l=[];!(a=fv(c,s)).done;)l.push(a.value);for(f&&d>2&&(h=hv(h,arguments[2])),r=gv(l),n=new(wv(u))(r),i=_v(n),t=0;r>t;t++)o=f?h(l[t],t):l[t],n[t]=i?kv(o):+o;return n},Sv=E,Ev=Array.isArray||function(e){return"Array"===Sv(e)},Tv=ru,Av=F,Rv=tt("species"),Cv=Array,Iv=function(e){var t;return Ev(e)&&(t=e.constructor,(Tv(t)&&(t===Cv||Ev(t.prototype))||Av(t)&&null===(t=t[Rv]))&&(t=void 0)),void 0===t?Cv:t},Ov=_u,Dv=I,Bv=Ue,Lv=hn,Pv=function(e,t){return new(Iv(e))(0===t?0:t)},Nv=w([].push),zv=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(c,u,l,d){for(var h,f,p=Bv(c),m=Dv(p),g=Lv(m),v=Ov(u,l),y=0,b=d||Pv,_=t?b(c,g):r||a?b(c,0):void 0;g>y;y++)if((s||y in m)&&(f=v(h=m[y],y,p),e))if(t)_[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:Nv(_,h)}else switch(e){case 4:return!1;case 7:Nv(_,h)}return o?-1:n||i?i:_}},Uv={forEach:zv(0),map:zv(1),filter:zv(2),some:zv(3),every:zv(4),find:zv(5),findIndex:zv(6),filterReject:zv(7)},jv=hn,Mv=ti,Fv=r,qv=u,Wv=o,Vv=Jg,Hv=Hg,Gv=sc,Zv=Da,Yv=g,Kv=Zt,Xv=tv,$v=ln,Jv=Na,Qv=av,ey=function(e){var t=sv(e);return t<0?0:t>255?255:255&t},ty=ht,ry=Fe,ny=jc,iy=F,oy=de,ay=Ai,sy=H,cy=To,uy=Jr.f,ly=xv,dy=Uv.forEach,hy=hc,fy=Aa,py=Rt,my=n,gy=function(e,t,r){for(var n=0,i=arguments.length>2?r:jv(t),o=new e(i);i>n;)o[n]=t[n++];return o},vy=os,yy=Rr.get,by=Rr.set,_y=Rr.enforce,wy=py.f,ky=my.f,xy=Fv.RangeError,Sy=Gv.ArrayBuffer,Ey=Sy.prototype,Ty=Gv.DataView,Ay=Hv.NATIVE_ARRAY_BUFFER_VIEWS,Ry=Hv.TYPED_ARRAY_TAG,Cy=Hv.TypedArray,Iy=Hv.TypedArrayPrototype,Oy=Hv.isTypedArray,Dy="BYTES_PER_ELEMENT",By="Wrong length",Ly=function(e,t){fy(e,t,{configurable:!0,get:function(){return yy(this)[t]}})},Py=function(e){var t;return sy(Ey,e)||"ArrayBuffer"===(t=ny(e))||"SharedArrayBuffer"===t},Ny=function(e,t){return Oy(e)&&!oy(t)&&t in e&&Xv(+t)&&t>=0},zy=function(e,t){return t=ty(t),Ny(e,t)?Yv(2,e[t]):ky(e,t)},Uy=function(e,t,r){return t=ty(t),!(Ny(e,t)&&iy(r)&&ry(r,"value"))||ry(r,"get")||ry(r,"set")||r.configurable||ry(r,"writable")&&!r.writable||ry(r,"enumerable")&&!r.enumerable?wy(e,t,r):(e[t]=r.value,e)};Wv?(Ay||(my.f=zy,py.f=Uy,Ly(Iy,"buffer"),Ly(Iy,"byteOffset"),Ly(Iy,"byteLength"),Ly(Iy,"length")),Mv({target:"Object",stat:!0,forced:!Ay},{getOwnPropertyDescriptor:zy,defineProperty:Uy}),ug.exports=function(e,t,r){var n=e.match(/\d+/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=Fv[i],c=s,u=c&&c.prototype,l={},d=function(e,t){wy(e,t,{get:function(){return function(e,t){var r=yy(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=yy(e);o.view[a](t*n+o.byteOffset,r?ey(i):i,!0)}(this,t,e)},enumerable:!0})};Ay?Vv&&(c=t(function(e,t,r,i){return Zv(e,u),vy(iy(t)?Py(t)?void 0!==i?new s(t,Qv(r,n),i):void 0!==r?new s(t,Qv(r,n)):new s(t):Oy(t)?gy(c,t):qv(ly,c,t):new s(Jv(t)),e,c)}),cy&&cy(c,Cy),dy(uy(s),function(e){e in c||Kv(c,e,s[e])}),c.prototype=u):(c=t(function(e,t,r,i){Zv(e,u);var o,a,s,l=0,h=0;if(iy(t)){if(!Py(t))return Oy(t)?gy(c,t):qv(ly,c,t);o=t,h=Qv(r,n);var f=t.byteLength;if(void 0===i){if(f%n)throw new xy(By);if((a=f-h)<0)throw new xy(By)}else if((a=$v(i)*n)+h>f)throw new xy(By);s=a/n}else s=Jv(t),o=new Sy(a=s*n);for(by(e,{buffer:o,byteOffset:h,byteLength:a,length:s,view:new Ty(o)});l<s;)d(e,l++)}),cy&&cy(c,Cy),u=c.prototype=ay(Iy)),u.constructor!==c&&Kv(u,"constructor",c),_y(u).TypedArrayConstructor=c,Ry&&Kv(u,Ry,i);var h=c!==s;l[i]=c,Mv({global:!0,constructor:!0,forced:h,sham:!Ay},l),Dy in c||Kv(c,Dy,n),Dy in u||Kv(u,Dy,n),hy(i)}):ug.exports=function(){};var jy=ug.exports;jy("Int32",function(e){return function(t,r,n){return e(this,t,r,n)}}),jy("Uint8",function(e){return function(t,r,n){return e(this,t,r,n)}}),jy("Uint16",function(e){return function(t,r,n){return e(this,t,r,n)}}),jy("Uint32",function(e){return function(t,r,n){return e(this,t,r,n)}});var My=es,Fy=dv,qy=jc,Wy=u,Vy=i,Hy=Hg.aTypedArray,Gy=Hg.exportTypedArrayMethod,Zy=w("".slice);Gy("fill",function(e){var t=arguments.length;Hy(this);var r="Big"===Zy(qy(this),0,3)?Fy(e):+e;return Wy(My,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},Vy(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),(0,Hg.exportTypedArrayStaticMethod)("from",xv,Jg);var Yy=r,Ky=u,Xy=Hg,$y=hn,Jy=av,Qy=Ue,eb=i,tb=Yy.RangeError,rb=Yy.Int8Array,nb=rb&&rb.prototype,ib=nb&&nb.set,ob=Xy.aTypedArray,ab=Xy.exportTypedArrayMethod,sb=!eb(function(){var e=new Uint8ClampedArray(2);return Ky(ib,e,{length:1,0:3},1),3!==e[1]}),cb=sb&&Xy.NATIVE_ARRAY_BUFFER_VIEWS&&eb(function(){var e=new rb(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});ab("set",function(e){ob(this);var t=Jy(arguments.length>1?arguments[1]:void 0,1),r=Qy(e);if(sb)return Ky(ib,this,r,t);var n=this.length,i=$y(r),o=0;if(i+t>n)throw new tb("Wrong length");for(;o<i;)this[t+o]=r[o++]},!sb||cb);var ub=ts,lb=Math.floor,db=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=lb(r/2),s=db(ub(e,0,a),t),c=db(ub(e,a),t),u=s.length,l=c.length,d=0,h=0;d<u||h<l;)e[d+h]=d<u&&h<l?t(s[d],c[h])<=0?s[d++]:c[h++]:d<u?s[d++]:c[h++];return e},hb=db,fb=Y.match(/firefox\/(\d+)/i),pb=!!fb&&+fb[1],mb=/MSIE|Trident/.test(Y),gb=Y.match(/AppleWebKit\/(\d+)\./),vb=!!gb&&+gb[1],yb=yc,bb=i,_b=ve,wb=hb,kb=pb,xb=mb,Sb=te,Eb=vb,Tb=Hg.aTypedArray,Ab=Hg.exportTypedArrayMethod,Rb=r.Uint16Array,Cb=Rb&&yb(Rb.prototype.sort),Ib=!(!Cb||bb(function(){Cb(new Rb(2),null)})&&bb(function(){Cb(new Rb(2),{})})),Ob=!!Cb&&!bb(function(){if(Sb)return Sb<74;if(kb)return kb<67;if(xb)return!0;if(Eb)return Eb<602;var e,t,r=new Rb(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(Cb(r,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(r[e]!==n[e])return!0});Ab("sort",function(e){return void 0!==e&&_b(e),Ob?Cb(this,e):wb(Tb(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))},!Ob||Ib);var Db={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},Bb=gt("span").classList,Lb=Bb&&Bb.constructor&&Bb.constructor.prototype,Pb=Lb===Object.prototype?void 0:Lb,Nb=Uv.forEach,zb=ga("forEach")?[].forEach:function(e){return Nb(this,e,arguments.length>1?arguments[1]:void 0)},Ub=r,jb=Db,Mb=Pb,Fb=zb,qb=Zt,Wb=function(e){if(e&&e.forEach!==Fb)try{qb(e,"forEach",Fb)}catch(uT){e.forEach=Fb}};for(var Vb in jb)jb[Vb]&&Wb(Ub[Vb]&&Ub[Vb].prototype);Wb(Mb);var Hb=r,Gb=Db,Zb=Pb,Yb=oa,Kb=Zt,Xb=so,$b=tt("iterator"),Jb=Yb.values,Qb=function(e,t){if(e){if(e[$b]!==Jb)try{Kb(e,$b,Jb)}catch(uT){e[$b]=Jb}if(Xb(e,t,!0),Gb[t])for(var r in Yb)if(e[r]!==Yb[r])try{Kb(e,r,Yb[r])}catch(uT){e[r]=Yb[r]}}};for(var e_ in Gb)Qb(Hb[e_]&&Hb[e_].prototype,e_);Qb(Zb,"DOMTokenList");var t_=Xu.clear;ti({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==t_},{clearImmediate:t_});var r_=r,n_=gu,i_=j,o_=wa,a_=Y,s_=ts,c_=ku,u_=r_.Function,l_=/MSIE .\./.test(a_)||"BUN"===o_&&function(){var e=r_.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),d_=ti,h_=r,f_=Xu.set,p_=function(e,t){var r=t?2:1;return l_?function(n,i){var o=c_(arguments.length,1)>r,a=i_(n)?n:u_(n),s=o?s_(arguments,r):[],c=o?function(){n_(a,this,s)}:a;return t?e(c,i):e(c)}:e},m_=h_.setImmediate?p_(f_,!1):f_;d_({global:!0,bind:!0,enumerable:!0,forced:h_.setImmediate!==m_},{setImmediate:m_});var g_=vm.charAt,v_=_f,y_=Rr,b_=Go,__=Zo,w_="String Iterator",k_=y_.set,x_=y_.getterFor(w_);b_(String,"String",function(e){k_(this,{type:w_,string:v_(e),index:0})},function(){var e,t=x_(this),r=t.string,n=t.index;return n>=r.length?__(void 0,!0):(e=g_(r,n),t.index+=e.length,__(e,!1))});var S_=i,E_=o,T_=tt("iterator"),A_=!S_(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),!t.size&&!E_||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[T_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),R_=o,C_=w,I_=u,O_=i,D_=oi,B_=An,L_=l,P_=Ue,N_=I,z_=Object.assign,U_=Object.defineProperty,j_=C_([].concat),M_=!z_||O_(function(){if(R_&&1!==z_({b:1},z_(U_({},"a",{enumerable:!0,get:function(){U_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==z_({},e)[r]||D_(z_({},t)).join("")!==n})?function(e,t){for(var r=P_(e),n=arguments.length,i=1,o=B_.f,a=L_.f;n>i;)for(var s,c=N_(arguments[i++]),u=o?j_(D_(c),o(c)):D_(c),l=u.length,d=0;l>d;)s=u[d++],R_&&!I_(a,c,s)||(r[s]=c[s]);return r}:z_,F_=Bt,q_=lh,W_=o,V_=Rt,H_=g,G_=_u,Z_=u,Y_=Ue,K_=function(e,t,r,n){try{return n?t(F_(r)[0],r[1]):t(r)}catch(uT){q_(e,"throw",uT)}},X_=Zd,$_=ru,J_=hn,Q_=function(e,t,r){W_?V_.f(e,t,H_(0,r)):e[t]=r},ew=ah,tw=Qd,rw=Array,nw=w,iw=2147483647,ow=/[^\0-\u007E]/,aw=/[.\u3002\uFF0E\uFF61]/g,sw="Overflow: input needs wider integers to process",cw=RangeError,uw=nw(aw.exec),lw=Math.floor,dw=String.fromCharCode,hw=nw("".charCodeAt),fw=nw([].join),pw=nw([].push),mw=nw("".replace),gw=nw("".split),vw=nw("".toLowerCase),yw=function(e){return e+22+75*(e<26)},bw=function(e,t,r){var n=0;for(e=r?lw(e/700):e>>1,e+=lw(e/t);e>455;)e=lw(e/35),n+=36;return lw(n+36*e/(e+38))},_w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=hw(e,r++);if(i>=55296&&i<=56319&&r<n){var o=hw(e,r++);56320==(64512&o)?pw(t,((1023&i)<<10)+(1023&o)+65536):(pw(t,i),r--)}else pw(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&pw(t,dw(n));var c=t.length,u=c;for(c&&pw(t,"-");u<i;){var l=iw;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var d=u+1;if(l-o>lw((iw-a)/d))throw new cw(sw);for(a+=(l-o)*d,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>iw)throw new cw(sw);if(n===o){for(var h=a,f=36;;){var p=f<=s?1:f>=s+26?26:f-s;if(h<p)break;var m=h-p,g=36-p;pw(t,dw(yw(p+m%g))),h=lw(m/g),f+=36}pw(t,dw(yw(h))),s=bw(a,d,u===c),a=0,u++}}a++,o++}return fw(t,"")},ww=ti,kw=w,xw=sn,Sw=RangeError,Ew=String.fromCharCode,Tw=String.fromCodePoint,Aw=kw([].join);ww({target:"String",stat:!0,arity:1,forced:!!Tw&&1!==Tw.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],xw(t,1114111)!==t)throw new Sw(t+" is not a valid code point");r[i]=t<65536?Ew(t):Ew(55296+((t-=65536)>>10),t%1024+56320)}return Aw(r,"")}});var Rw=ti,Cw=r,Iw=el,Ow=V,Dw=u,Bw=w,Lw=o,Pw=A_,Nw=$r,zw=Aa,Uw=Ca,jw=so,Mw=mo,Fw=Rr,qw=Da,Ww=j,Vw=Fe,Hw=_u,Gw=jc,Zw=Bt,Yw=F,Kw=_f,Xw=Ai,$w=g,Jw=ah,Qw=Qd,ek=Zo,tk=ku,rk=hb,nk=tt("iterator"),ik="URLSearchParams",ok=ik+"Iterator",ak=Fw.set,sk=Fw.getterFor(ik),ck=Fw.getterFor(ok),uk=Iw("fetch"),lk=Iw("Request"),dk=Iw("Headers"),hk=lk&&lk.prototype,fk=dk&&dk.prototype,pk=Cw.TypeError,mk=Cw.encodeURIComponent,gk=String.fromCharCode,vk=Ow("String","fromCodePoint"),yk=parseInt,bk=Bw("".charAt),_k=Bw([].join),wk=Bw([].push),kk=Bw("".replace),xk=Bw([].shift),Sk=Bw([].splice),Ek=Bw("".split),Tk=Bw("".slice),Ak=Bw(/./.exec),Rk=/\+/g,Ck=/^[0-9a-f]+$/i,Ik=function(e,t){var r=Tk(e,t,t+2);return Ak(Ck,r)?yk(r,16):NaN},Ok=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},Dk=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Bk=function(e){for(var t=(e=kk(e,Rk," ")).length,r="",n=0;n<t;){var i=bk(e,n);if("%"===i){if("%"===bk(e,n+1)||n+3>t){r+="%",n++;continue}var o=Ik(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=Ok(o);if(0===a)i=gk(o);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[o],c=1;c<a&&!(++n+3>t||"%"!==bk(e,n));){var u=Ik(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;wk(s,u),n+=2,c++}if(s.length!==a){r+="�";continue}var l=Dk(s);null===l?r+="�":i=vk(l)}}r+=i,n++}return r},Lk=/[!'()~]|%20/g,Pk={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Nk=function(e){return Pk[e]},zk=function(e){return kk(mk(e),Lk,Nk)},Uk=Mw(function(e,t){ak(this,{type:ok,target:sk(e).entries,index:0,kind:t})},ik,function(){var e=ck(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ek(void 0,!0);var n=t[r];switch(e.kind){case"keys":return ek(n.key,!1);case"values":return ek(n.value,!1)}return ek([n.key,n.value],!1)},!0),jk=function(e){this.entries=[],this.url=null,void 0!==e&&(Yw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===bk(e,0)?Tk(e,1):e:Kw(e)))};jk.prototype={type:ik,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=this.entries,u=Qw(e);if(u)for(r=(t=Jw(e,u)).next;!(n=Dw(r,t)).done;){if(o=(i=Jw(Zw(n.value))).next,(a=Dw(o,i)).done||(s=Dw(o,i)).done||!Dw(o,i).done)throw new pk("Expected sequence with length 2");wk(c,{key:Kw(a.value),value:Kw(s.value)})}else for(var l in e)Vw(e,l)&&wk(c,{key:l,value:Kw(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Ek(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=Ek(t,"="),wk(n,{key:Bk(xk(r)),value:Bk(_k(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],wk(r,zk(e.key)+"="+zk(e.value));return _k(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Mk=function(){qw(this,Fk);var e=ak(this,new jk(arguments.length>0?arguments[0]:void 0));Lw||(this.size=e.entries.length)},Fk=Mk.prototype;if(Uw(Fk,{append:function(e,t){var r=sk(this);tk(arguments.length,2),wk(r.entries,{key:Kw(e),value:Kw(t)}),Lw||this.length++,r.updateURL()},delete:function(e){for(var t=sk(this),r=tk(arguments.length,1),n=t.entries,i=Kw(e),o=r<2?void 0:arguments[1],a=void 0===o?o:Kw(o),s=0;s<n.length;){var c=n[s];if(c.key!==i||void 0!==a&&c.value!==a)s++;else if(Sk(n,s,1),void 0!==a)break}Lw||(this.size=n.length),t.updateURL()},get:function(e){var t=sk(this).entries;tk(arguments.length,1);for(var r=Kw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=sk(this).entries;tk(arguments.length,1);for(var r=Kw(e),n=[],i=0;i<t.length;i++)t[i].key===r&&wk(n,t[i].value);return n},has:function(e){for(var t=sk(this).entries,r=tk(arguments.length,1),n=Kw(e),i=r<2?void 0:arguments[1],o=void 0===i?i:Kw(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=sk(this);tk(arguments.length,1);for(var n,i=r.entries,o=!1,a=Kw(e),s=Kw(t),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?Sk(i,c--,1):(o=!0,n.value=s));o||wk(i,{key:a,value:s}),Lw||(this.size=i.length),r.updateURL()},sort:function(){var e=sk(this);rk(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=sk(this).entries,n=Hw(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Uk(this,"keys")},values:function(){return new Uk(this,"values")},entries:function(){return new Uk(this,"entries")}},{enumerable:!0}),Nw(Fk,nk,Fk.entries,{name:"entries"}),Nw(Fk,"toString",function(){return sk(this).serialize()},{enumerable:!0}),Lw&&zw(Fk,"size",{get:function(){return sk(this).entries.length},configurable:!0,enumerable:!0}),jw(Mk,ik),Rw({global:!0,constructor:!0,forced:!Pw},{URLSearchParams:Mk}),!Pw&&Ww(dk)){var qk=Bw(fk.has),Wk=Bw(fk.set),Vk=function(e){if(Yw(e)){var t,r=e.body;if(Gw(r)===ik)return t=e.headers?new dk(e.headers):new dk,qk(t,"content-type")||Wk(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Xw(e,{body:$w(0,Kw(r)),headers:$w(0,t)})}return e};if(Ww(uk)&&Rw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return uk(e,arguments.length>1?Vk(arguments[1]):{})}}),Ww(lk)){var Hk=function(e){return qw(this,hk),new lk(e,arguments.length>1?Vk(arguments[1]):{})};hk.constructor=Hk,Hk.prototype=hk,Rw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Hk})}}var Gk,Zk=ti,Yk=o,Kk=A_,Xk=r,$k=_u,Jk=w,Qk=$r,ex=Aa,tx=Da,rx=Fe,nx=M_,ix=function(e){var t=Y_(e),r=$_(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=G_(i,n>2?arguments[2]:void 0));var a,s,c,u,l,d,h=tw(t),f=0;if(!h||this===rw&&X_(h))for(a=J_(t),s=r?new this(a):rw(a);a>f;f++)d=o?i(t[f],f):t[f],Q_(s,f,d);else for(s=r?new this:[],l=(u=ew(t,h)).next;!(c=Z_(l,u)).done;f++)d=o?K_(u,i,[c.value,f],!0):c.value,Q_(s,f,d);return s.length=f,s},ox=ts,ax=vm.codeAt,sx=function(e){var t,r,n=[],i=gw(mw(vw(e),aw,"."),".");for(t=0;t<i.length;t++)r=i[t],pw(n,uw(ow,r)?"xn--"+_w(r):r);return fw(n,".")},cx=_f,ux=so,lx=ku,dx={URLSearchParams:Mk,getState:sk},hx=Rr,fx=hx.set,px=hx.getterFor("URL"),mx=dx.URLSearchParams,gx=dx.getState,vx=Xk.URL,yx=Xk.TypeError,bx=Xk.parseInt,_x=Math.floor,wx=Math.pow,kx=Jk("".charAt),xx=Jk(/./.exec),Sx=Jk([].join),Ex=Jk(1.1.toString),Tx=Jk([].pop),Ax=Jk([].push),Rx=Jk("".replace),Cx=Jk([].shift),Ix=Jk("".split),Ox=Jk("".slice),Dx=Jk("".toLowerCase),Bx=Jk([].unshift),Lx="Invalid scheme",Px="Invalid host",Nx="Invalid port",zx=/[a-z]/i,Ux=/[\d+-.a-z]/i,jx=/\d/,Mx=/^0x/i,Fx=/^[0-7]+$/,qx=/^\d+$/,Wx=/^[\da-f]+$/i,Vx=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Hx=/[\0\t\n\r #/:<>?@[\\\]^|]/,Gx=/^[\u0000-\u0020]+/,Zx=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Yx=/[\t\n\r]/g,Kx=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)Bx(t,e%256),e=_x(e/256);return Sx(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=Ex(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Xx={},$x=nx({},Xx,{" ":1,'"':1,"<":1,">":1,"`":1}),Jx=nx({},$x,{"#":1,"?":1,"{":1,"}":1}),Qx=nx({},Jx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),eS=function(e,t){var r=ax(e,0);return r>32&&r<127&&!rx(t,e)?e:encodeURIComponent(e)},tS={ftp:21,file:null,http:80,https:443,ws:80,wss:443},rS=function(e,t){var r;return 2===e.length&&xx(zx,kx(e,0))&&(":"===(r=kx(e,1))||!t&&"|"===r)},nS=function(e){var t;return e.length>1&&rS(Ox(e,0,2))&&(2===e.length||"/"===(t=kx(e,2))||"\\"===t||"?"===t||"#"===t)},iS=function(e){return"."===e||"%2e"===Dx(e)},oS=function(e){return".."===(e=Dx(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},aS={},sS={},cS={},uS={},lS={},dS={},hS={},fS={},pS={},mS={},gS={},vS={},yS={},bS={},_S={},wS={},kS={},xS={},SS={},ES={},TS={},AS=function(e,t,r){var n,i,o,a=cx(e);if(t){if(i=this.parse(a))throw new yx(i);this.searchParams=null}else{if(void 0!==r&&(n=new AS(r,!0)),i=this.parse(a,null,n))throw new yx(i);(o=gx(new mx)).bindURL(this),this.searchParams=o}};AS.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s=this,c=t||aS,u=0,l="",d=!1,h=!1,f=!1;for(e=cx(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Rx(e,Gx,""),e=Rx(e,Zx,"$1")),e=Rx(e,Yx,""),n=ix(e);u<=n.length;){switch(i=n[u],c){case aS:if(!i||!xx(zx,i)){if(t)return Lx;c=cS;continue}l+=Dx(i),c=sS;break;case sS:if(i&&(xx(Ux,i)||"+"===i||"-"===i||"."===i))l+=Dx(i);else{if(":"!==i){if(t)return Lx;l="",c=cS,u=0;continue}if(t&&(s.isSpecial()!==rx(tS,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,t)return void(s.isSpecial()&&tS[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=bS:s.isSpecial()&&r&&r.scheme===s.scheme?c=uS:s.isSpecial()?c=fS:"/"===n[u+1]?(c=lS,u++):(s.cannotBeABaseURL=!0,Ax(s.path,""),c=SS)}break;case cS:if(!r||r.cannotBeABaseURL&&"#"!==i)return Lx;if(r.cannotBeABaseURL&&"#"===i){s.scheme=r.scheme,s.path=ox(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=TS;break}c="file"===r.scheme?bS:dS;continue;case uS:if("/"!==i||"/"!==n[u+1]){c=dS;continue}c=pS,u++;break;case lS:if("/"===i){c=mS;break}c=xS;continue;case dS:if(s.scheme=r.scheme,i===Gk)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=ox(r.path),s.query=r.query;else if("/"===i||"\\"===i&&s.isSpecial())c=hS;else if("?"===i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=ox(r.path),s.query="",c=ES;else{if("#"!==i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=ox(r.path),s.path.length--,c=xS;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=ox(r.path),s.query=r.query,s.fragment="",c=TS}break;case hS:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=xS;continue}c=mS}else c=pS;break;case fS:if(c=pS,"/"!==i||"/"!==kx(l,u+1))continue;u++;break;case pS:if("/"!==i&&"\\"!==i){c=mS;continue}break;case mS:if("@"===i){d&&(l="%40"+l),d=!0,o=ix(l);for(var p=0;p<o.length;p++){var m=o[p];if(":"!==m||f){var g=eS(m,Qx);f?s.password+=g:s.username+=g}else f=!0}l=""}else if(i===Gk||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(d&&""===l)return"Invalid authority";u-=ix(l).length+1,l="",c=gS}else l+=i;break;case gS:case vS:if(t&&"file"===s.scheme){c=wS;continue}if(":"!==i||h){if(i===Gk||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===l)return Px;if(t&&""===l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",c=kS,t)return;continue}"["===i?h=!0:"]"===i&&(h=!1),l+=i}else{if(""===l)return Px;if(a=s.parseHost(l))return a;if(l="",c=yS,t===vS)return}break;case yS:if(!xx(jx,i)){if(i===Gk||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==l){var v=bx(l,10);if(v>65535)return Nx;s.port=s.isSpecial()&&v===tS[s.scheme]?null:v,l=""}if(t)return;c=kS;continue}return Nx}l+=i;break;case bS:if(s.scheme="file","/"===i||"\\"===i)c=_S;else{if(!r||"file"!==r.scheme){c=xS;continue}switch(i){case Gk:s.host=r.host,s.path=ox(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=ox(r.path),s.query="",c=ES;break;case"#":s.host=r.host,s.path=ox(r.path),s.query=r.query,s.fragment="",c=TS;break;default:nS(Sx(ox(n,u),""))||(s.host=r.host,s.path=ox(r.path),s.shortenPath()),c=xS;continue}}break;case _S:if("/"===i||"\\"===i){c=wS;break}r&&"file"===r.scheme&&!nS(Sx(ox(n,u),""))&&(rS(r.path[0],!0)?Ax(s.path,r.path[0]):s.host=r.host),c=xS;continue;case wS:if(i===Gk||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&rS(l))c=xS;else if(""===l){if(s.host="",t)return;c=kS}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),t)return;l="",c=kS}continue}l+=i;break;case kS:if(s.isSpecial()){if(c=xS,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==Gk&&(c=xS,"/"!==i))continue}else s.fragment="",c=TS;else s.query="",c=ES;break;case xS:if(i===Gk||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(oS(l)?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||Ax(s.path,"")):iS(l)?"/"===i||"\\"===i&&s.isSpecial()||Ax(s.path,""):("file"===s.scheme&&!s.path.length&&rS(l)&&(s.host&&(s.host=""),l=kx(l,0)+":"),Ax(s.path,l)),l="","file"===s.scheme&&(i===Gk||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)Cx(s.path);"?"===i?(s.query="",c=ES):"#"===i&&(s.fragment="",c=TS)}else l+=eS(i,Jx);break;case SS:"?"===i?(s.query="",c=ES):"#"===i?(s.fragment="",c=TS):i!==Gk&&(s.path[0]+=eS(i,Xx));break;case ES:t||"#"!==i?i!==Gk&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":eS(i,Xx)):(s.fragment="",c=TS);break;case TS:i!==Gk&&(s.fragment+=eS(i,$x))}u++}},parseHost:function(e){var t,r,n;if("["===kx(e,0)){if("]"!==kx(e,e.length-1))return Px;if(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,h=function(){return kx(e,d)};if(":"===h()){if(":"!==kx(e,1))return;d+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&xx(Wx,h());)t=16*t+bx(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!xx(jx,h()))return;for(;xx(jx,h());){if(o=bx(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(Ox(e,1,-1)),!t)return Px;this.host=t}else if(this.isSpecial()){if(e=sx(e),xx(Vx,e))return Px;if(t=function(e){var t,r,n,i,o,a,s,c=Ix(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=c[n]))return e;if(o=10,i.length>1&&"0"===kx(i,0)&&(o=xx(Mx,i)?16:8,i=Ox(i,8===o?1:2)),""===i)a=0;else{if(!xx(10===o?qx:8===o?Fx:Wx,i))return e;a=bx(i,o)}Ax(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=wx(256,5-t))return null}else if(a>255)return null;for(s=Tx(r),n=0;n<r.length;n++)s+=r[n]*wx(256,3-n);return s}(e),null===t)return Px;this.host=t}else{if(xx(Hx,e))return Px;for(t="",r=ix(e),n=0;n<r.length;n++)t+=eS(r[n],Xx);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return rx(tS,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&rS(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=Kx(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Sx(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new yx(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new RS(e.path[0]).origin}catch(uT){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Kx(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(cx(e)+":",aS)},getUsername:function(){return this.username},setUsername:function(e){var t=ix(cx(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=eS(t[r],Qx)}},getPassword:function(){return this.password},setPassword:function(e){var t=ix(cx(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=eS(t[r],Qx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Kx(e):Kx(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,gS)},getHostname:function(){var e=this.host;return null===e?"":Kx(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,vS)},getPort:function(){var e=this.port;return null===e?"":cx(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=cx(e))?this.port=null:this.parse(e,yS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Sx(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,kS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=cx(e))?this.query=null:("?"===kx(e,0)&&(e=Ox(e,1)),this.query="",this.parse(e,ES)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=cx(e))?("#"===kx(e,0)&&(e=Ox(e,1)),this.fragment="",this.parse(e,TS)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var RS=function(e){var t=tx(this,CS),r=lx(arguments.length,1)>1?arguments[1]:void 0,n=fx(t,new AS(e,!1,r));Yk||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},CS=RS.prototype,IS=function(e,t){return{get:function(){return px(this)[e]()},set:t&&function(e){return px(this)[t](e)},configurable:!0,enumerable:!0}};if(Yk&&(ex(CS,"href",IS("serialize","setHref")),ex(CS,"origin",IS("getOrigin")),ex(CS,"protocol",IS("getProtocol","setProtocol")),ex(CS,"username",IS("getUsername","setUsername")),ex(CS,"password",IS("getPassword","setPassword")),ex(CS,"host",IS("getHost","setHost")),ex(CS,"hostname",IS("getHostname","setHostname")),ex(CS,"port",IS("getPort","setPort")),ex(CS,"pathname",IS("getPathname","setPathname")),ex(CS,"search",IS("getSearch","setSearch")),ex(CS,"searchParams",IS("getSearchParams")),ex(CS,"hash",IS("getHash","setHash"))),Qk(CS,"toJSON",function(){return px(this).serialize()},{enumerable:!0}),Qk(CS,"toString",function(){return px(this).serialize()},{enumerable:!0}),vx){var OS=vx.createObjectURL,DS=vx.revokeObjectURL;OS&&Qk(RS,"createObjectURL",$k(OS,vx)),DS&&Qk(RS,"revokeObjectURL",$k(DS,vx))}ux(RS,"URL"),Zk({global:!0,constructor:!0,forced:!Kk,sham:!Yk},{URL:RS});var BS=u;ti({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return BS(URL.prototype.toString,this)}});var LS,PS=Object.create,NS=Object.defineProperty,zS=Object.getOwnPropertyDescriptor,US=Object.getOwnPropertyNames,jS=Object.getPrototypeOf,MS=Object.prototype.hasOwnProperty,FS=(LS=function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(LS,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):LS),qS=(e,t,r,n)=>{for(var i,o=n>1?void 0:n?zS(t,r):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(n?i(t,r,o):i(o))||o);return n&&o&&NS(t,r,o),o},WS=(e,t,r)=>((e,t,r)=>t in e?NS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),VS=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))((e,t)=>{!function(r){"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=r()}(function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var c="function"==typeof FS&&FS;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){return i(t[a][1][e]||e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof FS&&FS,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,a,s,c,u,l=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,c=1<f?(15&r)<<2|i>>6:64,u=2<f?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},r.decode=function(e){var t,r,n,a,s,c,u=0,l=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),h[l++]=t,64!==s&&(h[l++]=r),64!==c&&(h[l++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=i,o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=i,o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new c("Deflate",e)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,a,l){var d,h,f=e.file,p=e.compression,m=l!==s.utf8encode,g=o.transformTo("string",l(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",l(y)),_=o.transformTo("string",s.utf8encode(y)),w=v.length!==f.name.length,k=_.length!==y.length,x="",S="",E="",T=f.dir,A=f.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!w&&!k||(C|=2048);var I,O,D,B=0,L=0;T&&(B|=16),"UNIX"===a?(L=798,B|=(I=f.unixPermissions,O=T,D=I,I||(D=O?16893:33204),(65535&D)<<16)):(L=20,B|=function(e){return 63&(e||0)}(f.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,h=A.getUTCFullYear()-1980,h<<=4,h|=A.getUTCMonth()+1,h<<=5,h|=A.getUTCDate(),w&&(S=n(1,1)+n(c(g),4)+v,x+="up"+n(S.length,2)+S),k&&(E=n(1,1)+n(c(b),4)+_,x+="uc"+n(E.length,2)+E);var P="";return P+="\n\0",P+=n(C,2),P+=p.magic,P+=n(d,2),P+=n(h,2),P+=n(R.crc32,4),P+=n(R.compressedSize,4),P+=n(R.uncompressedSize,4),P+=n(g.length,2),P+=n(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+P+g+x,dirRecord:u.CENTRAL_FILE_HEADER+n(L,2)+P+n(b.length,2)+"\0\0\0\0"+n(B,4)+n(i,4)+g+x+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,o=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),r)this.push({data:(t=e,u.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,i,a,s,c,l,d=this.bytesWritten-e,h=(r=this.dirRecords.length,i=d,a=e,s=this.zipComment,c=this.encodeFileName,l=o.transformTo("string",c(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(i,4)+n(a,4)+n(l.length,2)+l);this.push({data:h,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},c=r.dir,u=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new a(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(u(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=n.resolve(s.fileNameStr);r.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),s=o.extend(r||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v;v=t instanceof u||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new l(e,v,s);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(c){(t=new a("error")).error(c)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),c=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(d){}function l(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(s){this._worker=new o("error"),this._worker.error(s)}}l.prototype={accumulate:function(e){return function(e,t){return new c.Promise(function(r,i){var o=[],s=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);r(e)}catch(t){i(t)}o=[]}).resume()})}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=l},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(ZS){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(o){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,c=new Array(2*a);for(t=r=0;t<a;)if((i=e[t++])<128)c[r++]=i;else if(4<(o=s[i]))c[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,a),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(o){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=l;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},h.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var l,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(u?t=i.decode(t):o&&!0!==s&&(t=c(l=t,n.uint8array?new Uint8Array(l.length):new Array(l.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new c("error")).error(s)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)n.prototype[u[d]]=l;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,r=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;n=!0;for(var r=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}t.exports=function(e){1!==u.push(e)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function l(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(i){return o.reject(e,i)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var a=p(function(){t(i,n)});"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===s?e:t,this.outcome):this.queue.push(new l(r,e,t)),r},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,c=-1,u=new this(i);++c<r;)l(e[c],c);return u;function l(e,i){t.resolve(e).then(function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(u,a))},function(e){n||(n=!0,o.reject(u,e))})}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t,r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)t=e[a],this.resolve(t).then(function(e){n||(n=!0,o.resolve(s,e))},function(e){n||(n=!0,o.reject(s,e))});return s}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,l)))throw new Error(a[r]);this._dict_set=!0}}function l(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(e,t){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=u,r.deflate=l,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,c,u,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(h="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===l.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,d=o.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),o=a=0;a<c;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,s=t||e.length,u=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)u[n++]=i;else if(4<(o=a[i]))u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&e[r++],o--;1<o?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,r){t.exports={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}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=-2,l=258,d=262,h=113;function f(e,t){return e.msg=c[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,h=e.w_mask,f=e.prev,p=e.strstart+l,m=u[o+a-1],g=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===g&&u[r+a-1]===m&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<p);if(n=l-(p-o),o=p-l,a<n){if(e.match_start=t,s<=(a=n))break;m=u[o+a-1],g=u[o+a]}}}while((t=f[t&h])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function w(e){var t,r,n,o,c,u,l,h,f,p,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);o+=m}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,h=e.strstart+e.lookahead,p=void 0,(f=o)<(p=u.avail_in)&&(p=f),r=0===p?0:(u.avail_in-=p,i.arraySet(l,u.input,u.next_in,p,h),1===u.state.wrap?u.adler=a(u.adler,l,p,h):2===u.state.wrap&&(u.adler=s(u.adler,l,p,h)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function k(e,t){for(var r,n;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=_(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var r,n,i;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=_(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function E(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(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 T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):f(e,u)}function A(e){var t,r=T(e);return 0===r&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function R(e,t,r,n,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||9<o||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return f(e,u);8===n&&(n=9);var c=new E;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=r,A(e)}n=[new S(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)}),new S(4,4,8,4,k),new S(4,5,16,8,k),new S(4,6,32,32,k),new S(4,4,16,16,x),new S(8,16,32,32,x),new S(8,16,128,128,x),new S(8,32,128,256,x),new S(32,128,258,1024,x),new S(32,258,258,4096,x)],r.deflateInit=function(e,t){return R(e,t,8,15,8,0)},r.deflateInit2=R,r.deflateReset=A,r.deflateResetKeep=T,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},r.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||5<t||t<0)return e?f(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return f(e,0===e.avail_out?-5:u);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,b(i,d),0!==i.strstart&&(b(i,e.adler>>>16),b(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return f(e,-5);if(666===i.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var _=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(w(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==_&&4!==_||(i.status=666),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(b(i,e.adler>>>16),b(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==h&&666!==t?f(e,u):(e.state=null,t===h?f(e,-3):0):u},r.deflateSetDictionary=function(e,t){var r,n,o,s,c,l,d,h,f=t.length;if(!e||!e.state||2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,f-r.w_size,r.w_size,0),t=h,f=r.w_size),c=e.avail_in,l=e.next_in,d=e.input,e.avail_in=f,e.next_in=0,e.input=t,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,w(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=d,e.avail_in=c,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=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}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,o,a,s,c,u,l,d,h,f,p,m,g,v,y,b,_,w,k,x,S,E,T;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),b=m[f&v];t:for(;;){if(f>>>=_=b>>>24,p-=_,0==(_=b>>>16&255))T[o++]=65535&b;else{if(!(16&_)){if(!(64&_)){b=m[(65535&b)+(f&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&b,(_&=15)&&(p<_&&(f+=E[n++]<<p,p+=8),w+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),b=g[f&y];r:for(;;){if(f>>>=_=b>>>24,p-=_,!(16&(_=b>>>16&255))){if(!(64&_)){b=g[(65535&b)+(f&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&b,p<(_&=15)&&(f+=E[n++]<<p,(p+=8)<_&&(f+=E[n++]<<p,p+=8)),c<(k+=f&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=_,p-=_,(_=o-a)<k){if(l<(_=k-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=h,(x=0)===d){if(x+=u-_,_<w){for(w-=_;T[o++]=h[x++],--_;);x=o-k,S=T}}else if(d<_){if(x+=u+d-_,(_-=d)<w){for(w-=_;T[o++]=h[x++],--_;);if(x=0,d<w){for(w-=_=d;T[o++]=h[x++],--_;);x=o-k,S=T}}}else if(x+=d-_,_<w){for(w-=_;T[o++]=h[x++],--_;);x=o-k,S=T}for(;2<w;)T[o++]=S[x++],T[o++]=S[x++],T[o++]=S[x++],w-=3;w&&(T[o++]=S[x++],1<w&&(T[o++]=S[x++]))}else{for(x=o-k;T[o++]=T[x++],T[o++]=T[x++],T[o++]=T[x++],2<(w-=3););w&&(T[o++]=T[x++],1<w&&(T[o++]=T[x++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):c}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):c}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):c}function p(e,t){var r,n;return e?(n=new l,(e.state=n).window=null,0!==(r=f(e,t))&&(e.state=null),r):c}var m,g,v=!0;function y(e){if(v){var t;for(m=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),v=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function b(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=h,r.inflateReset2=f,r.inflateResetKeep=d,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,l,d,h,f,p,m,g,v,_,w,k,x,S,E,T,A,R,C,I,O,D,B,L,P=0,N=new n.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,l=e.input,p=e.avail_in,g=r.hold,v=r.bits,_=p,w=m,D=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(2&r.wrap&&35615===g){N[r.check=0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0),v=g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(v-=4,O=8+(15&(g>>>=4)),0===r.wbits)r.wbits=O;else if(O>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<O,e.adler=r.check=1,r.mode=512&g?10:12,v=g=0;break;case 2:for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0,r.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.head&&(r.head.time=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,N[2]=g>>>16&255,N[3]=g>>>24&255,r.check=o(r.check,N,4,0)),v=g=0,r.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(O=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,l,h,k,O)),512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(k=0;O=l[h+k++],r.head&&O&&r.length<65536&&(r.head.name+=String.fromCharCode(O)),O&&k<p;);if(512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,O)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(k=0;O=l[h+k++],r.head&&O&&r.length<65536&&(r.head.comment+=String.fromCharCode(O)),O&&k<p;);if(512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,O)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}v=g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}e.adler=r.check=u(g),v=g=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}switch(r.last=1&g,v-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(y(r),r.mode=20,6!==t)break;g>>>=2,v-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,v-=2;break;case 14:for(g>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,v=g=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break e;n.arraySet(d,l,h,k,f),p-=k,h+=k,m-=k,f+=k,r.length-=k;break}r.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(r.nlen=257+(31&g),g>>>=5,v-=5,r.ndist=1+(31&g),g>>>=5,v-=5,r.ncode=4+(15&g),g>>>=4,v-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;v<3;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.lens[z[r.have++]]=7&g,g>>>=3,v-=3}for(;r.have<19;)r.lens[z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},D=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,D){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(P=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(A<16)g>>>=E,v-=E,r.lens[r.have++]=A;else{if(16===A){for(L=E+2;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g>>>=E,v-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}O=r.lens[r.have-1],k=3+(3&g),g>>>=2,v-=2}else if(17===A){for(L=E+3;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}v-=E,O=0,k=3+(7&(g>>>=E)),g>>>=3,v-=3}else{for(L=E+7;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}v-=E,O=0,k=11+(127&(g>>>=E)),g>>>=7,v-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=O}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},D=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,D){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},D=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,D){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=m){e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,a(e,w),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,l=e.input,p=e.avail_in,g=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;T=(P=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(T&&!(240&T)){for(R=E,C=T,I=A;T=(P=r.lencode[I+((g&(1<<R+C)-1)>>R)])>>>16&255,A=65535&P,!(R+(E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}g>>>=R,v-=R,r.back+=R}if(g>>>=E,v-=E,r.back+=E,r.length=A,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=12;break}if(64&T){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(L=r.extra;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(P=r.distcode[g&(1<<r.distbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(!(240&T)){for(R=E,C=T,I=A;T=(P=r.distcode[I+((g&(1<<R+C)-1)>>R)])>>>16&255,A=65535&P,!(R+(E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}g>>>=R,v-=R,r.back+=R}if(g>>>=E,v-=E,r.back+=E,64&T){e.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(L=r.extra;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(k=w-m,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),S=r.window}else S=d,x=f-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;d[f++]=S[x++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[f++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===p)break e;p--,g|=l[h++]<<v,v+=8}if(w-=m,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,d,w,f-w):i(r.check,d,w,f-w)),w=m,(r.flags?g:u(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}v=g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}v=g=0}r.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;default:return c}return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&b(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(_-=e.avail_in,w-=e.avail_out,e.total_in+=_,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,d,w,e.next_out-w):i(r.check,d,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==_&&0===w||4===t)&&0===D&&(D=-5),D)},r.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):c},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?c:11===r.mode&&i(1,t,n,0)!==r.check?-3:b(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):c},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],a=[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],s=[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];t.exports=function(e,t,r,c,u,l,d,h){var f,p,m,g,v,y,b,_,w,k=h.bits,x=0,S=0,E=0,T=0,A=0,R=0,C=0,I=0,O=0,D=0,B=null,L=0,P=new n.Buf16(16),N=new n.Buf16(16),z=null,U=0;for(x=0;x<=15;x++)P[x]=0;for(S=0;S<c;S++)P[t[r+S]]++;for(A=k,T=15;1<=T&&0===P[T];T--);if(T<A&&(A=T),0===T)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(E=1;E<T&&0===P[E];E++);for(A<E&&(A=E),x=I=1;x<=15;x++)if(I<<=1,(I-=P[x])<0)return-1;if(0<I&&(0===e||1!==T))return-1;for(N[1]=0,x=1;x<15;x++)N[x+1]=N[x]+P[x];for(S=0;S<c;S++)0!==t[r+S]&&(d[N[t[r+S]]++]=S);if(y=0===e?(B=z=d,19):1===e?(B=i,L-=257,z=o,U-=257,256):(B=a,z=s,-1),x=E,v=l,C=S=D=0,m=-1,g=(O=1<<(R=A))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(b=x-C,w=d[S]<y?(_=0,d[S]):d[S]>y?(_=z[U+d[S]],B[L+d[S]]):(_=96,0),f=1<<x-C,E=p=1<<R;u[v+(D>>C)+(p-=f)]=b<<24|_<<16|w,0!==p;);for(f=1<<x-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,S++,0==--P[x]){if(x===T)break;x=t[r+d[S]]}if(A<x&&(D&g)!==m){for(0===C&&(C=A),v+=E,I=1<<(R=x-C);R+C<T&&!((I-=P[R+C])<=0);)R++,I<<=1;if(O+=1<<R,1===e&&852<O||2===e&&592<O)return 1;u[m=D&g]=A<<24|R<<16|v-l}}return 0!==D&&(u[v+D]=x-C<<24|64<<16),h.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={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"}},{}],52:[function(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,c=15,u=[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],l=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);i(f);var p=new Array(60);i(p);var m=new Array(512);i(m);var g=new Array(256);i(g);var v=new Array(29);i(v);var y,b,_,w=new Array(s);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?m[e]:m[256+(e>>>7)]}function E(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function T(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,E(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function A(e,t,r){T(e,r[2*t],r[2*t+1])}function R(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function C(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=R(o[s]++,s))}}function I(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?E(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function D(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function B(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&D(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!D(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function L(e,t,r){var n,i,a,s,c=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?A(e,i,t):(A(e,(a=g[i])+o+1,t),0!==(s=u[a])&&T(e,i-=v[a],s),A(e,a=S(--n),r),0!==(s=l[a])&&T(e,n-=w[a],s)),c<e.last_lit;);A(e,256,t)}function P(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)B(e,o,r);for(i=u;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,B(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,l=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)&&(o=m,g++),u[2*n+1]=o,l<n||(e.bl_count[o]++,a=0,p<=n&&(a=f[n-p]),s=u[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*n+1]+a)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(o=m;0!==o;o--)for(n=e.bl_count[o];0!==n;)l<(i=e.heap[--r])||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),C(o,l,e.bl_count)}function N(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function z(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)for(;A(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(A(e,i,e.bl_tree),s--),A(e,16,e.bl_tree),T(e,s-3,2)):s<=10?(A(e,17,e.bl_tree),T(e,s-3,3)):(A(e,18,e.bl_tree),T(e,s-11,7));o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}i(w);var U=!1;function j(e,t,r,i){var o,a,s;T(e,0+(i?1:0),3),a=t,s=r,O(o=e),E(o,s),E(o,~s),n.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}r._tr_init=function(e){U||(function(){var e,t,r,n,i,o=new Array(16);for(n=r=0;n<28;n++)for(v[n]=r,e=0;e<1<<u[n];e++)g[r++]=n;for(g[r-1]=n,n=i=0;n<16;n++)for(w[n]=i,e=0;e<1<<l[n];e++)m[i++]=n;for(i>>=7;n<s;n++)for(w[n]=i<<7,e=0;e<1<<l[n]-7;e++)m[256+i++]=n;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,o[8]++;for(;e<=255;)f[2*e+1]=9,e++,o[9]++;for(;e<=279;)f[2*e+1]=7,e++,o[7]++;for(;e<=287;)f[2*e+1]=8,e++,o[8]++;for(C(f,287,o),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=R(e,5);y=new k(f,u,257,a,c),b=new k(p,l,0,s,c),_=new k(new Array(0),d,0,19,7)}(),U=!0),e.l_desc=new x(e.dyn_ltree,y),e.d_desc=new x(e.dyn_dtree,b),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,I(e)},r._tr_stored_block=j,r._tr_flush_block=function(e,t,r,n){var i,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?j(e,t,r,n):4===e.strategy||a===i?(T(e,2+(n?1:0),3),L(e,f,p)):(T(e,4+(n?1:0),3),function(e,t,r,n){var i;for(T(e,t-257,5),T(e,r-1,5),T(e,n-4,4),i=0;i<n;i++)T(e,e.bl_tree[2*h[i]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),L(e,e.dyn_ltree,e.dyn_dtree)),I(e),n&&O(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;T(e,2,3),A(e,256,f),16===(t=e).bi_valid?(E(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=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}},{}],54:[function(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,n,i,o=1,a={},s=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,t="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){d(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){n.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var i={callback:e,args:r};return a[o]=i,t(o),o++},u.clearImmediate=l}function l(e){delete a[e]}function d(e){if(s)setTimeout(d,0,e);else{var t=a[e];if(t){s=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(undefined,r)}}(t)}finally{l(e),s=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})});var HS=new WeakMap;function GS(e,t){return function(e){return function(t,r,n){return n.value=e(n.value,r),n}}((r,n)=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];let a=HS.get(this);a||(a=new Map,HS.set(this,a));let s=t(...i),c=a.get(s);if(!c||c<=0){r.apply(this,i);let t=setTimeout(()=>{var e;null==(e=HS.get(this))||e.delete(s)},e);a.set(s,t)}else{clearTimeout(c);let t=window.setTimeout(()=>{var e;r.apply(this,i),null==(e=HS.get(this))||e.delete(s)},e);a.set(s,t)}})}var ZS,YS=((ZS=YS||{})[ZS.TRACE=0]="TRACE",ZS[ZS.DEBUG=1]="DEBUG",ZS[ZS.INFO=2]="INFO",ZS[ZS.WARN=3]="WARN",ZS[ZS.ERROR=4]="ERROR",ZS[ZS.NONE=5]="NONE",ZS),KS="Log",XS="Network",$S="Dump",JS="Dumping",QS="End",eE="Upload Log",tE="Export Log",rE="Hide",nE="goBottom",iE="backTop",oE="Clear Log",aE="Uplink",sE="Downlink",cE="No Data",uE="Basic",lE="Duration",dE="Video",hE="Audio",fE="Screen",pE={"play() error: NotAllowedError:":{tips:e=>e.includes("main <video>")||e.includes("main <audio>")?"Remote stream auto play is restricted and playback fails":"Local stream playback failure, generally only occurs in Android WeChat devices, no need to handle",color:"red",class:"red"},"updateStream() try to recover local stream":{tips:"Device acquisition exception, automatic recovery is in progress"},"updateStream() recover local stream successfully":{tips:"Device acquisition exception, automatic recovery is successful"},"updateStream() failed to recover local stream":{tips:"Device acquisition exception, automatic recovery failed"},"main stream - video track is muted":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is muted":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is muted":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unable to provide media output":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is unable to provide media output":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is unable to provide media output":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unmuted":{tips:"Received enough playback video data"},"main stream - audio track is unmuted":{tips:"Received enough playback audio data"},"auxiliary stream - video track is unmuted":{tips:"Received enough playback screen sharing data"},"main stream - audio player track is ended":{tips:"Remote audio track stopped"},"main stream - video player track is ended":{tips:"Remote video track stopped"},"auxiliary stream - video player track is ended":{tips:"Received enough playback screen sharing data"},"stream - video track is muted":{tips:"Camera capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"stream - video track is unable to provide media output":{tips:"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked, and the customer needs to re-acquire. SDK v4.11.4+ will automatically resume acquisition without customer intervention",color:"orange"},"video track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"stream - audio track is muted":{tips:"Microphone capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"audio track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"Microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio track is unable to provide media output":{tips:"The microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"is adding audio track to current published local stream":{tips:"add audio track",color:"orange"},"is removing audio track from current published local stream":{tips:"remove audio track",color:"orange"},"is removing video track from current published local stream":{tips:"remove video track",color:"orange"},"is adding video track to current published local stream":{tips:"add video track",color:"orange"},"is replacing audio track to current published local main stream":{tips:"replace audio track",color:"orange"},"is replacing video track to current published local main stream":{tips:"replace video track",color:"orange"},"downlink network quality change":{tips:"Downstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"uplink network quality change":{tips:"Upstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"localStream mute video":{tips:"mute upstream video stream",color:"orange"},"localStream unmute video":{tips:"unmute upstream video stream",color:"orange"},"localStream mute audio":{tips:"mute upstream audio stream",color:"orange"},"localStream unmute audio":{tips:"unmute upstream audio stream",color:"orange"},"black detected":{tips:"Detect black screen, which means fps = 0. It is usually caused by network, and the network will be recovered after a while. If the network is normal but has not been restored, it is an abnormal situation."},'main stream start to play with options: {"muted":true}':{tips:"Play the remote stream in silent mode. Generally, the remote stream does not need to be played in silent mode. You need to confirm whether the parameters passed in the client stream.play API call are correct.",color:"orange"},"main stream - audio player is starting playing":{tips:"Remote stream audio playback success",color:"#0dd90d",class:"success"},"main stream - video player is starting playing":{tips:"Remote stream video playback success",color:"#0dd90d",class:"success"},"video player is playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"audio player is playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"stream - video player is starting playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"stream - audio player is starting playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"switch camera success":{tips:"Switch camera success",color:"#0dd90d",class:"success"},"switch microphone success":{tips:"Switch microphone success",color:"#0dd90d",class:"success"},gotStream:{tips:"Local stream capture success"},"local stream is published successfully":{tips:"Publish success",color:"#0dd90d",class:"success"},"encoderImplementation change to OpenH264":{tips:"Use software encoding"},"encoderImplementation change to ExternalEncoder":{tips:"Use hardware encoding"},"getUserMedia with constraints":{tips:"Start media (camera/microphone) capture"},"getDisplayMedia with constraints":{tips:"Start screen sharing capture"},"client-banned":{tips:"Kicked out of the room",color:"red",class:"red",textColor:"#fff"},user_timeout:{tips:"The backend is too long without receiving SDK heartbeat, which is usually caused by the JS thread being blocked for a long time. If the reproduction probability is high, the application browser Performance tool analyzes where the JS thread is blocked.",color:"red",class:"red",textColor:"#fff"},"schedule failed":{tips:"Signaling request failed, does not affect the normal room entry process, SDK will connect to the default signaling domain."},"updateStream() video flag is true, but no camera detected, set video to false":{tips:"When trying to resume camera acquisition, the camera acquisition is not resumed because it is detected that there is no camera.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to bandwidth":{tips:"bandwidth estimation is not enough to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to cpu":{tips:"cpu load is too high to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: hidden":{tips:"User page switched to backend, in mobile devices, this will cause the device to pause the capture, and it will be restored when the user switches backend to the frontend.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: visible":{tips:"User page switched to frontend",color:"orange",class:"orange",textColor:"#fff"},"main stream - audio player is paused":{tips:"The remote stream audio playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},"main stream - video player is paused":{tips:"The remote stream video playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach(e=>{pE["".concat(e,"()")]={tips:"Call trtc.".concat(e),color:"blue",class:"blue",textColor:"#fff"}});var mE=Object.keys(pE),gE=((e,t,r)=>(r=null!=e?PS(jS(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of US(t))!MS.call(e,i)&&i!==r&&NS(e,i,{get:()=>t[i],enumerable:!(n=zS(t,i))||n.enumerable});return e})(!t&&e&&e.__esModule?r:NS(r,"default",{value:e,enumerable:!0}),e)))(VS()),vE="trtc_debug_dialog",yE="".concat(vE,"_activated"),bE="".concat(vE,"_switch"),_E="".concat(vE,"_mask"),wE="".concat(vE,"_panel"),kE="".concat(vE,"_tabber"),xE="".concat(vE,"_tab"),SE="".concat(vE,"_topbar"),EE="".concat(vE,"_toptab"),TE="".concat(vE,"_content"),AE="".concat(vE,"_has_topbar"),RE="".concat(TE,"_log"),CE="".concat(TE,"_network"),IE="".concat(vE,"_dump"),OE="".concat(CE,"_title"),DE="".concat(CE,"_basic"),BE="".concat(CE,"_local"),LE="".concat(CE,"_remote"),PE="".concat(IE,"_title"),NE="".concat(IE,"_local"),zE="".concat(IE,"_remote"),UE="".concat(zE,"_hook"),jE="".concat(vE,"_banner"),ME="".concat(jE,"_item"),FE="".concat(vE,"_toolbar"),qE="".concat(vE,"_tool"),WE="".concat(vE,"_item"),VE="".concat(WE,"_debug"),HE="".concat(WE,"_info"),GE="".concat(WE,"_warn"),ZE="".concat(WE,"_error"),YE="".concat(vE,"_back_top"),KE="".concat(vE,"_go_bottom"),XE="".concat(IE,"_local_audio"),$E="".concat(IE,"_local_video_main"),JE="".concat(IE,"_local_video_aux"),QE="".concat(vE,"_tooltip"),eT="".concat(DE,"_network_info"),tT="".concat(DE,"_room_info"),rT="".concat(RE,"_controller"),nT="success",iT="warning",oT="failed",aT=0,sT=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.addStyle(),this.addDialog()}addDialog(){var e;let t=document.createElement("template");t.innerHTML='<div id="'.concat(vE,'" class="').concat(vE,'"><div class="').concat(bE,'">Debug#').concat(++aT,'</div><div class="').concat(_E,'"></div><div class="').concat(wE,'"><div class="').concat(kE,'"><a class="').concat(xE," ").concat(yE,'" data-tab="log">').concat(KS,'</a><a class="').concat(xE,'" data-tab="network">').concat(XS,'</a><a class="').concat(xE,'" data-tab="dump">').concat($S,'</a></div><div class="').concat(rT,'"><div data-type="back_top">').concat(iE,'</div><div data-type="go_bottom">').concat(nE,'</div><div data-type="clear_log">').concat(oE,'</div></div><div class="').concat(SE,'"><a class="').concat(EE," ").concat(yE,'" data-type="all">All</a><a class="').concat(EE,'" data-type="debug">Debug</a><a class="').concat(EE,'" data-type="info">Info</a><a class="').concat(EE,'" data-type="warn">Warn</a><a class="').concat(EE,'" data-type="error">Error</a></div><div class="').concat(TE," ").concat(AE,'"><div class="').concat(RE,'"></div><div class="').concat(CE,'"><div class="').concat(OE,'">').concat(uE,'</div><div class="').concat(DE,'"><div class="').concat(tT,'"></div><div class="').concat(eT,'">').concat(cE,'</div></div><div class="').concat(OE,'">').concat(aE,'</div><div class="').concat(BE,'">').concat(cE,'</div><div class="').concat(OE,'">').concat(sE,'</div><div class="').concat(LE,'">').concat(cE,'</div></div><div class="').concat(IE,'"><div class="').concat(PE,'">').concat(aE,'</div><div class="').concat(NE,'"><div id="').concat(XE,'"><span>').concat(hE," - ").concat(lE,'(s):</span><input type="number" min=0 value=0></input><button class="dump">').concat($S,'</button><button class="end-dump" disabled>').concat(QS,'</button></div><div id="').concat($E,'"><span>').concat(dE," - ").concat(lE,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat($S,'</button><button class="end-dump" disabled>').concat(QS,'</button></div><div id="').concat(JE,'"><span>').concat(fE," - ").concat(lE,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat($S,'</button><button class="end-dump" disabled>').concat(QS,'</button></div></div><div class="').concat(PE,'">').concat(sE,'</div><div class="').concat(zE,'"><div class="').concat(UE,"\">userId:<input id=\"dump-remote-video-hook-userid\" value='*' />duration:<input id=\"dump-remote-video-hook-duration\" min='1' value='10' type='number' />mediaType:<select id=\"dump-remote-video-hook-mediaType\" value='main' ><option value='main' checked>Video</option><option value='sub'>Screen</option></select><button id=\"dump-remote-video-hook-button\">dump if video is available</button></div></div></div></div><div class=\"").concat(jE,'"></div><div class="').concat(FE,'"><a id="trtc_upload" class="').concat(qE,'">').concat(eE,'</a><a id="trtc_export" class="').concat(qE,'">').concat(tE,'</a><a id="trtc_hide" class="').concat(qE,'">').concat(rE,"</a></div></div></div>"),null==(e=this.shadowRoot)||e.appendChild(t.content.firstChild)}addStyle(){var e;let t=document.createElement("style");t.textContent="#".concat(vE,"{font-size:14px;--DD-BG-0:#ededed;--DD-BG-1:#f7f7f7;--DD-BG-2:#fff;--DD-BORDER:rgba(0,0,0,0.1);--DD-ERROR:red;--DD-WARN:#fa9d3b;--DD-INFO:#000;--DD-DEBUG:#10aeff;--DD-WARN-BG:#fff3cc;--DD-ERROR-BG:#ffe6e6;}#").concat(vE," a,.").concat(bE,"{cursor:pointer;}.").concat(vE,"{color:black;}.").concat(bE,"{display:block;position:fixed;right:50px;bottom:").concat(150+50*aT,"px;border-radius:5px;background-color:#07c160;color:#fff;padding:5px 10px;z-index:10000;}.").concat(_E,"{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:10001;background-color:rgb(0,0,0,0.6);}.").concat(wE,"{background-color:#ededed;display:none;position:fixed;min-height:85%;left:60%;right:0;bottom:0;z-index:10002;border:1px solid var(--DD-BG-0);}@media (max-width:768px) {.").concat(wE,"{left:0;}}.").concat(kE,"{display:flex;height:2em;border-bottom:1px solid var(--DD-BORDER);}.").concat(xE,"{padding:0 20px;border-right:1px solid rgba(0,0,0,0.1);line-height:2em;color:black;}.").concat(xE,".").concat(yE,"{background-color:var(--DD-BG-2);}.").concat(xE,".disabled{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(SE,"{height:2em;display:flex;flex-direction:row;}.").concat(EE,"{width:20%;text-align:center;line-height:2em;border-right:1px solid var(--DD-BORDER);border-bottom:1px solid var(--DD-BORDER);color:black;}.").concat(EE,".").concat(yE,"{border-bottom:1px solid #1485ee;background-color:var(--DD-BG-2);}.").concat(TE,"{background-color:#fff;position:absolute;left:0;right:0;top:2em;bottom:8em;overflow-y:scroll;overflow-x:hidden;}.").concat(TE,".").concat(AE,"{top:4em;bottom:10em}.").concat(CE,"{display:none;}.").concat(IE,"{display:none;}.").concat(OE,",.").concat(PE,"{line-height:2em;text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(DE,",.").concat(BE,",.").concat(LE,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(NE,",.").concat(zE,"{display:flex;flex-direction:column;padding:0.5em 0;justify-content:center;align-items:center;}.").concat(NE," div input{margin:0 10px;height:1.5em;width:4em;}.").concat(NE," div {padding:10px 0;border-radius:5px;}.").concat(NE," div button,.").concat(zE," div button {cursor:pointer;height:1.8em;border-radius:5px;margin-right:5px;}.").concat(NE," div button[disabled],.").concat(zE," div button[disabled]{cursor:not-allowed;}.").concat(zE," select {height:1.8em;margin:0 10px;}.").concat(zE," div input{margin:0 10px;height:1.5em;width:4em;}.").concat(UE," {line-height:3em;padding:0.5em;}.").concat(OE,"{text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(DE,",.").concat(BE,",.").concat(LE,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(WE,"{border-bottom:1px solid var(--DD-BG-0);padding:5px 10px;overflow-wrap: break-word;}.").concat(ZE,"{color:var(--DD-ERROR);background-color:var(--DD-ERROR-BG);}.").concat(GE,"{color:var(--DD-WARN);background-color:var(--DD-WARN-BG);}div .").concat(HE,"{color:var(--DD-INFO);}.").concat(VE,"{color:var(--DD-DEBUG);}.").concat(jE,"{position:absolute;left:0;right:0;bottom:2em;height:6em;border-bottom:1px solid var(--DD-BORDER);display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--DD-BG-1);}.").concat(ME,"{border-bottom:1px solid var(--DD-BORDER);padding:5px 10px;overflow-wrap: break-word;}.").concat(FE,"{position:absolute;line-height:2em;display:flex;flex-direction:row;left:0;right:0;bottom:0;}.").concat(qE,"{flex:1;color:black;text-align:center;background-color:#ededed;border-right:1px solid var(--DD-BORDER);}#").concat(vE," .").concat(YE,",#").concat(vE," .").concat(KE,"{position:absolute;height:2em;width:6em;right:2em;border-radius:5px;background-color:rgba(30,136,229,0.8);z-index:10003;cursor:pointer;padding:0 5px;line-height:2em;color:white;text-align:center;}.").concat(KE,"{bottom:9em;}.").concat(YE,"{bottom:11.5em;}#").concat(vE," .").concat(qE,".disable{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(QE," {position:relative;display:inline-block;}.").concat(QE," .tooltiptext{visibility:hidden;width:180px;background-color:black;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;}.").concat(QE," .tooltip-top {bottom:125%;left:50%;margin-left:-90px;}.").concat(QE,":hover .tooltiptext{visibility:visible;}.").concat(rT,"{position:absolute;left:0;right:0;bottom:8em;height:2em;display:flex;align-items:center;}.").concat(rT," div{flex:1;cursor:pointer;border-right:1px solid var(--DD-BORDER);text-align: center;}"),null==(e=this.shadowRoot)||e.appendChild(t)}};customElements.define("trtc-basic-debug-dialog",sT);var cT=class{constructor(e,t,r,n){WS(this,"_dialogNode",null),WS(this,"_switchNode",null),WS(this,"_maskNode",null),WS(this,"_panelNode",null),WS(this,"_logContentNode",null),WS(this,"_networkContentNode",null),WS(this,"_dumpContentNode",null),WS(this,"_tabNodes",[]),WS(this,"_toptabNodes",[]),WS(this,"_hasMove",!1),WS(this,"_showDialog",!1),WS(this,"_isMobile",!1),WS(this,"_showLogType","all"),WS(this,"prevBytesSent",0),WS(this,"prevBytesReceived",0),WS(this,"_core"),WS(this,"_log"),WS(this,"_logList",[]),WS(this,"isUploading",!1),WS(this,"publishMap",new Map),WS(this,"dumpLocalVideoMap"),WS(this,"dumpRemoteVideoMap"),WS(this,"eventMap",new Map),WS(this,"switchPos",{x:0,y:0,startX:0,startY:0,endX:0,endY:0,isTouchEnd:!1}),WS(this,"handleLeaveSuccess",e=>{let{room:t}=e;var r,n;if(!this.hitTest(t))return;let i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(zE));for(let o of this.publishMap.values())null==i||i.removeChild(o);this.publishMap.clear()}),WS(this,"handleJoinSuccess",e=>{let{room:t}=e;var r,n;if(!this.hitTest(t))return;(null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(tT))).innerHTML="sdkAppId: ".concat(t.sdkAppId,"<br/>roomId: ").concat(t.roomId,"<br/>userId: ").concat(t.userId,"<br/>")}),WS(this,"handleRemoteVideoAvailable",e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"publish")}),WS(this,"handleRemoteVideoUnavailable",e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"unpublish")}),WS(this,"handleRemoteAudioAvailable",e=>{this.renderDumpTab(e.userId,"remote","audio","publish")}),WS(this,"handleRemoteAudioUnavailable",e=>{this.renderDumpTab(e.userId,"remote","audio","unpublish")}),WS(this,"renderDumpTab",(e,t,r,n)=>{var i,o,a;let s={main:"video",auxiliary:"screen",audio:"audio"},c=(e,t)=>{var r,n,i;let o=document.createElement("div");o.innerText="".concat(e," - ").concat(s[t]," - ").concat(lE,"(s):");let a=document.createElement("input");a.type="number",a.min="0",a.value="10",a.id="dump_remote_".concat(t,"_").concat(e);let c=document.createElement("button");c.innerText=QS,c.disabled=!0;let u,l=document.createElement("button");if(l.innerText=$S,l.onclick=()=>{let r,n,i=Number(a.value);if("audio"===t)({download:r,onDumpEnd:n}=this.dumpAudio("remote",i,e));else{if(!this.isSupportDumpVideo())return;({download:r,onDumpEnd:n}=this.dumpVideo(t,"remote",i,e))}r&&(this.inactiveButton(l,JS),i>0?setTimeout(()=>{null==r||r(),this.activeButton(l,$S)},1e3*i):(this.activeButton(c),c.onclick=()=>{c.onclick=null,null==r||r(),null==n||n(),this.activeButton(l,$S),this.inactiveButton(c)}))},"audio"!==t){u=document.createElement("button"),u.innerText="preview",u.style.whiteSpace="pre";let r=document.createElement("video");document.body.appendChild(r),r.id="".concat(vE,"_preview_remote_").concat(t,"_").concat(e),r.style.cssText="\n width: 320px;\n height: 240px;\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n border: 3px solid #cccccc;\n transform: translate(-50%, -50%);\n z-index: 10004;\n ",u.onclick=async()=>{var n;if(r.style.display="none"===r.style.display?"":"none",u&&(u.innerText="none"===r.style.display?"preview":" hide "),!r.srcObject){let i=this._core.room.remotePublishedUserMap.get(e);if(i){let e=null==(n=i["main"===t?"remoteVideoTrack":"remoteAuxiliaryTrack"])?void 0:n.mediaTrack;e?(r.srcObject=new MediaStream([e]),await r.play()):this.addInfoToBanner(oT,"failed to preview, remote video track is not available")}}}}o.appendChild(a),o.appendChild(l),o.appendChild(c),u&&o.appendChild(u),o.style.cssText="padding:10px;";let d=document.createElement("div");return d.style.cssText="width:100%;display:flex;justify-content:center;border-top: 1px solid var(--DD-BORDER);",d.appendChild(o),null==(i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(zE)))||i.appendChild(d),d};if("remote"===t)if("publish"===n){let n=c(e,r);this.publishMap.set("".concat(e,"-").concat(t,"-").concat(r),n)}else{let n=this.publishMap.get("".concat(e,"-").concat(t,"-").concat(r));if(!n)return;null==(a=null==(o=null==(i=this._dialogNode)?void 0:i.shadowRoot)?void 0:o.querySelector(".".concat(zE)))||a.removeChild(n);let s=document.querySelector("#".concat(vE,"_preview_remote_").concat(r,"_").concat(e));s&&document.body.removeChild(s),this.publishMap.delete("".concat(e,"-").concat(t,"-").concat(r))}}),WS(this,"handleStatistics",e=>{var t,r,n,i,o,a;let s=(e.bytesSent-this.prevBytesSent)/2,c=(e.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=e.bytesSent,this.prevBytesReceived=e.bytesReceived,(null==(r=null==(t=this._dialogNode)?void 0:t.shadowRoot)?void 0:r.querySelector(".".concat(eT))).innerHTML="rtt: ".concat(e.rtt," ms upLoss: ").concat(e.upLoss,"% downLoss: ").concat(e.downLoss,"% <br>\n ↑ ").concat(s/1e3," KB/s (").concat(8*s/1e3," Kb/s) <br>\n ↓ ").concat(c/1e3," KB/s (").concat(8*c/1e3," Kb/s) <br>\n ");let u=null==(i=null==(n=this._dialogNode)?void 0:n.shadowRoot)?void 0:i.querySelector(".".concat(BE)),l="";e.localStatistics.audio.bitrate&&(l="<li>local audio: ".concat(e.localStatistics.audio.bitrate," Kb/s audioLevel: ").concat(e.localStatistics.audio.audioLevel.toFixed(5),"</li>")),e.localStatistics.video.length>0&&(l+="".concat(e.localStatistics.video.map(e=>"<li>local ".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>")).join(""))),u.innerHTML=""===l?"".concat(cE):l;let d=null==(a=null==(o=this._dialogNode)?void 0:o.shadowRoot)?void 0:a.querySelector(".".concat(LE)),h="";e.remoteStatistics.length>0&&e.remoteStatistics.forEach(e=>{let t="remote ".concat(e.userId,":");e.audio.bitrate>0&&(t+="<li>audio: ".concat(e.audio.bitrate," Kb/s audioLevel: ").concat(e.audio.audioLevel.toFixed(5),"</li>")),e.video.length>0&&e.video.forEach(e=>{t+="<li>".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>")}),h+=t}),d.innerHTML=""===h?"".concat(cE):h}),WS(this,"pad",e=>e<10?"0".concat(e):"".concat(e)),this._core=e,this._log=t,this.dumpLocalVideoMap=r,this.dumpRemoteVideoMap=n,this.initCustomElements(),this.synchronizeLog(),this.installEvents()}initCustomElements(){this._isMobile=(()=>{let e=window.navigator&&window.navigator.userAgent||"",t=/iPad/i.test(e)||/iPhone/i.test(e),r=/Android/i.test(e);return t||r})();let e=document.createElement("trtc-basic-debug-dialog");document.body.appendChild(e);let t=e.shadowRoot;if(this._dialogNode=e,!t)return;this._switchNode=t.querySelector(".".concat(bE)),this._addEventListener(this._switchNode,"click",this.onSwitchClick.bind(this));let r=getComputedStyle(this._switchNode);this.switchPos.x=parseInt(r.right,10)||50,this.switchPos.y=parseInt(r.bottom,10)||100+50*aT,this._isMobile?(this._switchNode.ontouchstart=this.onTouchStart.bind(this),this._switchNode.ontouchend=this.onTouchEnd.bind(this),this._switchNode.ontouchmove=this.onTouchMove.bind(this)):this._switchNode.onmousedown=this.onMouseDown.bind(this),this._maskNode=t.querySelector(".".concat(_E)),this._addEventListener(this._maskNode,"click",this.onMaskClick.bind(this)),this._panelNode=t.querySelector(".".concat(wE)),t.querySelector(".".concat(rT)).childNodes.forEach(e=>{switch(e.getAttribute("data-type")){case"go_bottom":this._addEventListener(e,"click",this.onGoBottomClick.bind(this));break;case"back_top":this._addEventListener(e,"click",this.onBackTopClick.bind(this));break;case"clear_log":this._addEventListener(e,"click",this.onClearLogClick.bind(this))}}),this._logContentNode=t.querySelector(".".concat(RE)),this._networkContentNode=t.querySelector(".".concat(CE)),this._dumpContentNode=t.querySelector(".".concat(IE)),this._tabNodes=Array.from(t.querySelector(".".concat(kE)).children),this._tabNodes.forEach(e=>{this._addEventListener(e,"click",this.onTabClick.bind(this))}),this._toptabNodes=Array.from(t.querySelector(".".concat(SE)).children),this._toptabNodes.forEach(e=>{this._addEventListener(e,"click",this.onToptabClick.bind(this))});let n=t.querySelector("#trtc_upload");this._addEventListener(n,"click",this.onUploadClick.bind(this));let i=t.querySelector("#trtc_export");this._addEventListener(i,"click",this.onExportClick.bind(this));let o=t.querySelector("#trtc_hide");this._addEventListener(o,"click",this.onHideClick.bind(this));let a=t.querySelector("#".concat($E," .dump")),s=t.querySelector("#".concat($E," .end-dump")),c=Number(t.querySelector("#".concat($E," input")).value);this._addEventListener(a,"click",this.getDumpButtonClickHandler.bind(this,a,s,c,"main","local"));let u=t.querySelector("#".concat(JE," .dump")),l=t.querySelector("#".concat(JE," .end-dump")),d=Number(t.querySelector("#".concat(JE," input")).value);this._addEventListener(u,"click",this.getDumpButtonClickHandler.bind(this,u,l,d,"auxiliary","local"));let h=t.querySelector("#".concat(XE," button"));this._addEventListener(h,"click",()=>{let e=Number(t.querySelector("#".concat(XE," input")).value),{download:r,onDumpEnd:n}=this.dumpAudio("local",e);if(r)if(this.inactiveButton(h,JS),e>0)setTimeout(()=>{r(),this.activeButton(h,$S)},1e3*e);else{let e=t.querySelector("#".concat(XE," .end-dump"));this.activeButton(e),e.onclick=()=>{e.onclick=null,r(),null==n||n(),this.activeButton(h,$S),this.inactiveButton(e)}}else this.addInfoToBanner(oT,"Failed to dump, please check if the current user has started the audio")});let f=t.querySelector("#dump-remote-video-hook-userid"),p=t.querySelector("#dump-remote-video-hook-duration"),m=t.querySelector("#dump-remote-video-hook-mediaType"),g=t.querySelector("#dump-remote-video-hook-button");g.onclick=()=>{let e=Number(p.value);if(e<1)return void this.addInfoToBanner(oT,"duration at least 1s");let t=f.value;if(!t)return void this.addInfoToBanner(oT,"please input user id");"*"===t&&this.inactiveButton(g);let r,n,i=m.value,o="remote_".concat(t,"_").concat("sub"===i?"auxiliary":i),a=o=>{if((o.userId===t||"*"===t)&&o.streamType===i){if(this.addInfoToBanner(nT,"[".concat(o.userId,"_").concat(i,"] starting to dump video, duration: ").concat(e,"s")),({download:r,onDumpEnd:n}=this.dumpVideo("sub"===o.streamType?"auxiliary":o.streamType,"remote",e,o.userId)),!r)return;setTimeout(()=>{null==r||r(),null==n||n(),"*"!==t&&this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a)},1e3*e)}};this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a),this.addInfoToBanner(nT,"[".concat(o,"] waiting to dump video from ").concat("*"===t?"all remote users":"user ".concat(t),", duration: ").concat(e,"s"))}}synchronizeLog(){this._core.loggerManager.getQueue().forEach(e=>{this.updateLog(e)})}isSupportDumpVideo(){return!(!this._core.rtcDectection.IS_INSERTABLE_STREAM_SUPPORTED&&!this._core.rtcDectection.IS_SCRIPT_TRANSFORM_SUPPORTED)||(this.addInfoToBanner(oT,"Current browser does not support dumping video"),!1)}_addEventListener(e,t,r,n){e&&(e.addEventListener(t,r,n),this.eventMap.set(e,{type:t,listener:r}))}_removeEventListener(){this.eventMap.forEach((e,t)=>{let{type:r,listener:n}=e;t&&t.removeEventListener(r,n)}),this.eventMap.clear(),this._switchNode&&(this._switchNode.onmousedown=null,this._switchNode.ontouchmove=null,this._switchNode.ontouchstart=null,this._switchNode.ontouchend=null)}closeDialog(){this.uninstallEvents(),this._removeEventListener(),this._dialogNode&&(document.body.removeChild(this._dialogNode),this._dialogNode=null)}updateLog(e){var t;this._logList.push(e);let r=document.createElement("div");switch(r.classList.add(WE),e.level){case 4:r.classList.add(ZE);break;case 2:r.classList.add(HE);break;case 3:r.classList.add(GE);break;case 1:r.classList.add(VE)}r.textContent=e.log,"all"!==this._showLogType&&!r.classList.contains("".concat(WE,"_").concat(this._showLogType))&&(r.style.display="none"),null==(t=this._logContentNode)||t.appendChild(r),this.addHelper(r)}getDumpButtonClickHandler(e,t,r,n,i){if(!this.isSupportDumpVideo())return;let{download:o,onDumpEnd:a}=this.dumpVideo(n,i,r);if(o)return this.addInfoToBanner(nT,"[".concat(i,"_").concat(n,"] starting to dump...")),this.inactiveButton(e,JS),void(r>0?setTimeout(()=>{o(),this.activeButton(e,$S)},1e3*r):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),o(),this.activeButton(e,$S),this.inactiveButton(t)}));this.addInfoToBanner(nT,"[".concat(i,"_").concat(n,"] waiting to dump..."));let s=o=>{let{track:a}=o;if(a.room===this._core.room&&a.streamType===n){this.addInfoToBanner(nT,"[".concat(i,"_").concat(n,"] starting to dump")),"local"===i&&this._core.innerEmitter.off("104",s);let{download:o,onDumpEnd:a}=this.dumpVideo(n,i,r);if(!o)return;r>0?setTimeout(()=>{o(),this.activeButton(e,$S)},1e3*r):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),o(),this.activeButton(e,$S),this.inactiveButton(t)})}};s.bind(this),"local"===i&&this._core.innerEmitter.on("104",s),this.inactiveButton(e,JS)}onSwitchClick(){this._hasMove?this._hasMove=!1:this._showDialog?this.hideDialog():(this._isMobile&&(this._maskNode.style.display="block"),this._panelNode.style.display="block",this._switchNode.style.display="none",this._showDialog=!0,this.logContentGoBottom())}onTabClick(e){var t,r,n,i,o,a,s;let c=e.target;null==(t=this._tabNodes)||t.forEach(e=>{e.classList.remove(yE)}),c.classList.add(yE);let u=c.getAttribute("data-tab");"log"===u?(null==(i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(TE)))||i.classList.add(AE),this._logContentNode.style.display="block",this._networkContentNode.style.display="none",this._dumpContentNode.style.display="none",this.logContentGoBottom()):(null==(s=null==(a=null==(o=this._dialogNode)?void 0:o.shadowRoot)?void 0:a.querySelector(".".concat(TE)))||s.classList.remove(AE),"network"===u?(this._networkContentNode.style.display="block",this._logContentNode.style.display="none",this._dumpContentNode.style.display="none"):"dump"===u&&(this._dumpContentNode.style.display="block",this._networkContentNode.style.display="none",this._logContentNode.style.display="none"))}onToptabClick(e){var t,r;let n=e.target;null==(t=this._toptabNodes)||t.forEach(e=>{e.classList.remove(yE)}),n.classList.add(yE),this._showLogType=n.getAttribute("data-type");let i=null==(r=this._logContentNode)?void 0:r.querySelectorAll(".".concat(WE)),o="".concat(WE,"_").concat(this._showLogType);i.forEach(e=>{e.classList.contains(o)||"all"===this._showLogType?e.style.display="block":e.style.display="none"}),this.logContentGoBottom()}onExportClick(){let e=this._logList.reduce((e,t)=>"".concat(e+t.log,"\n"),""),t=new Blob([e],{type:"text/plain"}),r=document.createElement("a"),n=URL.createObjectURL(t);r.href=n;let i="trtc_".concat(void 0===this._core.room.sdkAppId?"EmptySdkAppId":this._core.room.sdkAppId,"_").concat(void 0===this._core.room.userId?"EmptyUserId":this._core.room.userId,"_").concat(this.formatStartDumpTime(+new Date),".log");r.download=i,r.style.display="none",document.body.appendChild(r),r.click(),URL.revokeObjectURL(n),document.body.removeChild(r),this.addInfoToBanner(nT,"Export success: The log file name is ".concat(i)),this._core.kvStatManager.addSuccessEvent({key:592703})}addInfoToBanner(e,t){var r,n;let i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(jE)),o=document.createElement("div");o.classList.add(ME);let a=e===nT?"🟩":e===iT?"🟧":"🟥";o.innerText="".concat(a," [").concat(this.getCurrentTime(),"] ").concat(t),i.appendChild(o),i.scrollTop=i.scrollHeight}async onUploadClick(){var e,t;if(this.isUploading)return;this.isUploading=!0;let r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector("#trtc_upload");r.innerText="Uploading...",null==r||r.classList.add(".disable");let n=this._logList.reduce((e,t)=>"".concat(e+t.log,"\n"),""),i=new Blob([n],{type:"text/plain"}),o=new FormData;o.append("file",i,"trtc.log"),o.append("sdkAppId","".concat(this._core.room.sdkAppId||"EmptySdkAppId")),o.append("userId","".concat(this._core.room.userId||"EmptyUserId")),fetch("https://service.trtc.qcloud.com/api/uploadLogFile",{method:"POST",body:o}).then(e=>e.json()).then(e=>{this.addInfoToBanner(e.type,e.message_en||"Upload Failed: Please use local export"),this.isUploading=!1,this._log.info(e.message_en),this._core.kvStatManager.addSuccessEvent({key:592704})}).catch(()=>{this.addInfoToBanner(oT,"Upload Failed: Please use local export"),this._log.info("Upload Failed: Please use local export"),this._core.kvStatManager.addFailedEvent({key:592704})}).finally(()=>{r.innerText=eE,null==r||r.classList.remove(".disable"),this.isUploading=!1})}onHideClick(){this.hideDialog()}onMaskClick(){this.hideDialog()}hideDialog(){this._isMobile&&(this._maskNode.style.display="none"),this._panelNode.style.display="none",this._switchNode.style.display="block",this._showDialog=!1}onBackTopClick(){var e,t,r;null==(r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector(".".concat(TE)))||r.scrollTo(0,0)}onGoBottomClick(){this.logContentGoBottom()}onClearLogClick(){this._logList=[],this._logContentNode&&(this._logContentNode.innerHTML="")}logContentGoBottom(){var e,t;let r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector(".".concat(TE));null==r||r.scrollTo(0,null==r?void 0:r.scrollHeight)}onMouseDown(e){e.preventDefault(),this.switchPos.startX=e.pageX,this.switchPos.startY=e.pageY,document.onmousemove=this.onMouseMove.bind(this),document.onmouseup=this.onMouseUp.bind(this)}onMouseMove(e){e.cancelable&&e.preventDefault(),this._hasMove=!0;let t=this.switchPos.x-(e.pageX-this.switchPos.startX),r=this.switchPos.y-(e.pageY-this.switchPos.startY);[t,r]=this.getSafeAreaXY(t,r),this._switchNode.style.right="".concat(t,"px"),this._switchNode.style.bottom="".concat(r,"px"),this.switchPos.endX=t,this.switchPos.endY=r}onMouseUp(){this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY,document.onmousemove=null,document.onmouseup=null}onTouchStart(e){this.switchPos.startX=e.touches[0].pageX,this.switchPos.startY=e.touches[0].pageY,this.switchPos.isTouchEnd=!1}onTouchEnd(){this.switchPos.isTouchEnd&&(this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.isTouchEnd=!1,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY)}onTouchMove(e){if(e.touches.length<=0)return;let t=e.touches[0].pageX-this.switchPos.startX,r=e.touches[0].pageY-this.switchPos.startY,n=Math.floor(this.switchPos.x-t),i=Math.floor(this.switchPos.y-r);[n,i]=this.getSafeAreaXY(n,i),this._switchNode.style.right="".concat(n,"px"),this._switchNode.style.bottom="".concat(i,"px"),this.switchPos.endX=n,this.switchPos.endY=i,this.switchPos.isTouchEnd=!0,e.cancelable&&e.preventDefault()}getSafeAreaXY(e,t){let r=Math.max(document.documentElement.offsetWidth,window.innerWidth),n=Math.max(document.documentElement.offsetHeight,window.innerHeight);return e+this._switchNode.offsetWidth>r&&(e=r-this._switchNode.offsetWidth),t+this._switchNode.offsetHeight>n&&(t=n-this._switchNode.offsetHeight),e<0&&(e=0),t<20&&(t=20),[e,t]}hitTest(e){return e===this._core.room}installEvents(){this._core.innerEmitter.on("264",this.handleLog,this),this._core.innerEmitter.on("53",this.handleLeaveSuccess,this),this._core.innerEmitter.on("27",this.handleJoinSuccess,this),this._core.trtc.on(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.on("dump",this.handleDumpFromScriptTransform,this)}uninstallEvents(){this._core.innerEmitter.off("264",this.handleLog,this),this._core.innerEmitter.off("53",this.handleLeaveSuccess,this),this._core.innerEmitter.off("27",this.handleJoinSuccess,this),this._core.trtc.off(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.off("dump",this.handleDumpFromScriptTransform,this)}handleDumpFromScriptTransform(e){if(!e.isAudio)if(e.userId){let t=this.dumpRemoteVideoMap["".concat(e.userId,"-").concat(e.streamType)];t&&(t.data.push(e.data),t.duration>0&&Date.now()-t.startTimestamp>1e3*t.duration&&t.onDumpEnd())}else{let t="main"===e.streamType?"main":"sub",r=this.dumpLocalVideoMap[t];r&&(r.data.push(e.data),r.duration>0&&Date.now()-r.startTimestamp>1e3*r.duration&&r.onDumpEnd())}}inactiveButton(e,t){e.disabled=!0,t&&(e.innerText=t)}activeButton(e,t){e.disabled=!1,t&&(e.innerText=t)}handleLog(e){this.updateLog(e.log)}addHelper(e){let t=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g,r=mE,n=e.innerText;n=n.split("\n").map(e=>{if((e=e.replace(/</g,"<").replace(/>/g,">")).includes("failed"))return e.includes("on autoplay-failed")?e:"<span class='red' style=\"background:red; color:#fff;\">".concat(e,"</span>");if(e.includes("clientIp:")){let r=e.match(t);return null==r||r.forEach(t=>{e=e.replace(t,'<a href="javascript:void(0);" target=""><span class=\'ip\' style="background:#e1dfdf">'.concat(t,"</span></a>"))}),e}return e.includes("URL of current page")&&(e=e.replace(/URL of current page: (.+)/,'URL of current page: <a href="$1">$1</a>')),e}).join("\n"),r.forEach(t=>{if(e.innerText.includes(t)){let r="";r="function"==typeof pE[t].tips?pE[t].tips(e.innerText):pE[t].tips,n=n.replace(new RegExp("".concat((e=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(">",">").replace(">","<"))(t)),"gi"),'<span class="'.concat(QE,'" style="background:').concat(pE[t].color||"#e1dfdf","; color: ").concat(pE[t].textColor||"#000",'">').concat(t,'\n <span class="tooltiptext tooltip-top">').concat(r,"</span>\n </span>"))}}),e.innerHTML=n}getCurrentTime(){let e=new Date,t=this.pad(e.getHours()),r=this.pad(e.getMinutes()),n=this.pad(e.getSeconds());return"".concat(t,":").concat(r,":").concat(n)}dumpVideo(e,t,r,n){let i,o=Date.now(),a=this.formatStartDumpTime(o),s=[],c="".concat(t,"_").concat(n,"_").concat(e);if("local"===t){if(!this.hasLocalTrack(e,"video"))return{};i=()=>{delete this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]},this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]={startTimestamp:o,data:s,duration:r,onDumpEnd:i}}if("remote"===t&&n){if(i=()=>{delete this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]},this.dumpRemoteVideoMap["".concat(n,"-").concat(e)])return this.addInfoToBanner(iT,"[".concat(c,"] dump already exists.")),{};this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]={startTimestamp:o,data:s,duration:r,onDumpEnd:i}}return{download:()=>{var r,i;if(0===s.length)return void this.addInfoToBanner(oT,"[".concat(c,"] dump failed. Reason: data is empty"));let o;"main"===e?o="video":"auxiliary"===e&&(o="screen");let u=URL.createObjectURL(new Blob(s)),l=document.createElement("a"),d="local"===t?"local_".concat(o,"_").concat(a,".").concat((null==(r=this._core.room.singlePC)?void 0:r.videoCodec)||"h264"):"remote-".concat(n,"_").concat(o,"_").concat(a,".").concat((null==(i=this._core.room.userManager)?void 0:i.getPublishedUser(n).videoCodec)||"h264");l.href=u,l.download=d,l.style.display="none",document.body.appendChild(l),l.click(),URL.revokeObjectURL(u),l.remove(),this.addInfoToBanner(nT,"[".concat(c,"] dump success. File name is: ").concat(d))},onDumpEnd:i}}hasLocalTrack(e,t){for(let r of this._core.room.localTracks)if(r.streamType===e&&r.kind===t)return!0;return!1}dumpAudio(e,t,r){var n,i,o;let a,s,c=null,u=[],l=[],d=[],h=[],f=[],p=[],m=[],g=new AbortController,v=Date.now(),y=this.formatStartDumpTime(v),b=this._core.room.audioManager._localAudioPipline,_=this._core.room.audioManager._localScreenAudioPipeline,w=e=>{let{room:t,data:r,type:n}=e;if(this.hitTest(t)){if("dump"===n){if(h[0]=h[0]?h[0].concat(r.captureInput):r.captureInput,h[1]=h[1]?h[1].concat(r.playInput):r.playInput,a){let e=r.startTime-a,t=r.endTime-r.startTime;if(e>30||t>30){let n=function(e){if("number"!=typeof e||e<0)return"0毫秒";let t=[],r=Math.floor(e/6e4),n=e%6e4;r>0&&t.push("".concat(r,"分"));let i=Math.floor(n/1e3);return n%=1e3,(i>0||t.length)&&t.push("".concat(i,"秒")),(n>0||!t.length)&&t.push("".concat(n,"毫秒")),t.join("")},i=r.startTime-s,o=a-s;m.push("".concat(r.startTime,"\t").concat(n(i),"~").concat(n(o),"\t").concat(e,"\t").concat(t))}a=r.startTime}else a=r.startTime,s=r.startTime;p.push(r.startTime)}"dump-screen-audio"===n&&(f[0]=f[0]?f[0].concat(r.captureInput):r.captureInput,f[1]=f[1]?f[1].concat(r.playInput):r.playInput)}};if("local"===e){let{sampleRate:e}=this._core.room.audioManager.audioContext;if(!this._core.room.audioManager.hasAudioTrack&&!this._core.room.audioManager.hasScreenAudioTrack)return{};if(null!=b&&b.source.node&&(u.push(b.source.node),l.push("local_audio_raw_capture-".concat(e,"-").concat(b.source.node.channelCount))),(null!=(n=null==b?void 0:b.aec)&&n.node||null!=_&&_.aec.node)&&(this._core.trtc.updatePlugin("AudioProcessor",{enableDump:!0}),this._core.innerEmitter.on("265",w),null!=(i=null==b?void 0:b.aec)&&i.node&&(u.push(b.aec.node),l.push("local_audio_audioProcessor_processed-".concat(e,"-").concat(b.aec.node.channelCount))),null!=_&&_.aec.node&&(u.push(_.aec.node),l.push("screen_audio_audioProcessor_processed-".concat(e,"-").concat(_.aec.node.channelCount)))),null!=b&&b.denoiser.node&&(u.push(b.denoiser.node),l.push("local_audio_denoiser_processed-".concat(e,"-").concat(b.denoiser.node.channelCount))),this._core.room.audioManager.mixWeight>1&&null!=b&&b.stream){let t=this._core.room.audioManager.audioContext.createMediaStreamSource(b.stream);t.channelCount=1,u.push(t),l.push("local_audio_destination-".concat(e,"-").concat(t.channelCount))}}else if("remote"===e&&void 0!==r){let e=null==(o=this._core.room.remotePublishedUserMap.get(r))?void 0:o.remoteAudioTrack;if(null==e||!e.mediaTrack)return{};let t=this._core.createAudioNode(e.mediaTrack);u.push(t),l.push("remote_".concat(r))}let k=async()=>{var t,r,n,i,o;let a=new gE.default;for(let e=0;e<l.length;e++)a.file("".concat(l[e],".pcm"),new Blob(d[e]));if(null!=(t=null==h?void 0:h[0])&&t.length&&a.file("audioProcessor_input_capture.pcm",new Blob(h[0])),null!=(r=null==h?void 0:h[1])&&r.length&&a.file("audioProcessor_input_playback.pcm",new Blob(h[1])),null!=(n=null==f?void 0:f[0])&&n.length&&a.file("audioProcessor_screen_audio_input_capture.pcm",new Blob(f[0])),null!=(i=null==f?void 0:f[1])&&i.length&&a.file("audioProcessor_screen_audio_input_playback.pcm",new Blob(f[1])),null!=p&&p.length){let e=p.reduce((e,t)=>"".concat(e,"\n").concat(t));a.file("audioProcessor_handle_timestamp.txt",new Blob([e]))}if(null!=m&&m.length){let e=m.reduce((e,t)=>"".concat(e,"\n").concat(t));a.file("audioProcessor_big_gap_data.txt",new Blob([e]))}let s=await a.generateAsync({type:"blob"}),u=URL.createObjectURL(s),v=document.createElement("a");v.href=u,v.download="".concat(e,"-audio-").concat(y,".zip"),v.style.display="none",document.body.appendChild(v),v.click(),URL.revokeObjectURL(u),v.remove(),this.addInfoToBanner(nT,"Dump success, file name is: ".concat(e,"-").concat(y,".zip")),this._core.innerEmitter.off("265",w),(null!=(o=null==b?void 0:b.aec)&&o.node||null!=_&&_.aec.node)&&this._core.trtc.updatePlugin("AudioProcessor",{enableDump:!1}),c&&clearTimeout(c),g.abort("download")};return t>0&&(c=Number(setTimeout(()=>{g.abort("timeout")},1e3*t))),u.length>0&&this._core.startGetPCM(u).then(e=>e.pipeTo(new WritableStream({write(e){e.forEach((e,t)=>{d[t]=d[t]?d[t].concat(e[0]):[e[0]]})}}),g).catch(()=>k)),{download:k,onDumpEnd:()=>{g.abort("timeout")}}}formatStartDumpTime(e){let t=new Date(e),r=t.getFullYear(),n=this.pad(t.getMonth()+1),i=this.pad(t.getDate()),o=this.pad(t.getHours()),a=this.pad(t.getMinutes()),s=this.pad(t.getSeconds()),c=-t.getTimezoneOffset(),u=Math.floor(Math.abs(c)/60),l=Math.abs(c)%60,d=c>=0?"+":"-";return"".concat(r,"-").concat(n,"-").concat(i,"T").concat(o,"-").concat(a,"-").concat(s).concat(d).concat(this.pad(u),"-").concat(this.pad(l))}};
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TRTCDebugDialog=t()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){return e&&e.Math===Math&&e},r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),n={},i=function(e){try{return!!e()}catch(t){return!0}},o=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,c=Function.prototype.call,u=s?c.bind(c):function(){return c.apply(c,arguments)},l={},d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!d.call({1:2},1);l.f=f?function(e){var t=h(this,e);return!!t&&t.enumerable}:d;var p,m,g=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v=a,y=Function.prototype,b=y.call,_=v&&y.bind.bind(b,b),w=v?_:function(e){return function(){return b.apply(e,arguments)}},k=w,x=k({}.toString),S=k("".slice),E=function(e){return S(x(e),8,-1)},T=i,A=E,R=Object,C=w("".split),I=T((function(){return!R("z").propertyIsEnumerable(0)}))?function(e){return"String"===A(e)?C(e,""):R(e)}:R,O=function(e){return null==e},D=O,B=TypeError,L=function(e){if(D(e))throw new B("Can't call method on "+e);return e},P=I,N=L,z=function(e){return P(N(e))},U="object"==typeof document&&document.all,j=void 0===U&&void 0!==U?function(e){return"function"==typeof e||e===U}:function(e){return"function"==typeof e},M=j,F=function(e){return"object"==typeof e?null!==e:M(e)},q=r,W=j,V=function(e,t){return arguments.length<2?(r=q[e],W(r)?r:void 0):q[e]&&q[e][t];var r},H=w({}.isPrototypeOf),G=r.navigator,Z=G&&G.userAgent,Y=Z?String(Z):"",K=r,X=Y,$=K.process,J=K.Deno,Q=$&&$.versions||J&&J.version,ee=Q&&Q.v8;ee&&(m=(p=ee.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!m&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(m=+p[1]);var te=m,re=te,ne=i,ie=r.String,oe=!!Object.getOwnPropertySymbols&&!ne((function(){var e=Symbol("symbol detection");return!ie(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41})),ae=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,se=V,ce=j,ue=H,le=Object,de=ae?function(e){return"symbol"==typeof e}:function(e){var t=se("Symbol");return ce(t)&&ue(t.prototype,le(e))},he=String,fe=function(e){try{return he(e)}catch(t){return"Object"}},pe=j,me=fe,ge=TypeError,ve=function(e){if(pe(e))return e;throw new ge(me(e)+" is not a function")},ye=ve,be=O,_e=function(e,t){var r=e[t];return be(r)?void 0:ye(r)},we=u,ke=j,xe=F,Se=TypeError,Ee={exports:{}},Te=r,Ae=Object.defineProperty,Re=function(e,t){try{Ae(Te,e,{value:t,configurable:!0,writable:!0})}catch(r){Te[e]=t}return t},Ce=r,Ie=Re,Oe="__core-js_shared__",De=Ee.exports=Ce[Oe]||Ie(Oe,{});(De.versions||(De.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Be=Ee.exports,Le=Be,Pe=function(e,t){return Le[e]||(Le[e]=t||{})},Ne=L,ze=Object,Ue=function(e){return ze(Ne(e))},je=Ue,Me=w({}.hasOwnProperty),Fe=Object.hasOwn||function(e,t){return Me(je(e),t)},qe=w,We=0,Ve=Math.random(),He=qe(1..toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+He(++We+Ve,36)},Ze=Pe,Ye=Fe,Ke=Ge,Xe=oe,$e=ae,Je=r.Symbol,Qe=Ze("wks"),et=$e?Je.for||Je:Je&&Je.withoutSetter||Ke,tt=function(e){return Ye(Qe,e)||(Qe[e]=Xe&&Ye(Je,e)?Je[e]:et("Symbol."+e)),Qe[e]},rt=u,nt=F,it=de,ot=_e,at=function(e,t){var r,n;if("string"===t&&ke(r=e.toString)&&!xe(n=we(r,e)))return n;if(ke(r=e.valueOf)&&!xe(n=we(r,e)))return n;if("string"!==t&&ke(r=e.toString)&&!xe(n=we(r,e)))return n;throw new Se("Can't convert object to primitive value")},st=TypeError,ct=tt("toPrimitive"),ut=function(e,t){if(!nt(e)||it(e))return e;var r,n=ot(e,ct);if(n){if(void 0===t&&(t="default"),r=rt(n,e,t),!nt(r)||it(r))return r;throw new st("Can't convert object to primitive value")}return void 0===t&&(t="number"),at(e,t)},lt=ut,dt=de,ht=function(e){var t=lt(e,"string");return dt(t)?t:t+""},ft=F,pt=r.document,mt=ft(pt)&&ft(pt.createElement),gt=function(e){return mt?pt.createElement(e):{}},vt=gt,yt=!o&&!i((function(){return 7!==Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a})),bt=o,_t=u,wt=l,kt=g,xt=z,St=ht,Et=Fe,Tt=yt,At=Object.getOwnPropertyDescriptor;n.f=bt?At:function(e,t){if(e=xt(e),t=St(t),Tt)try{return At(e,t)}catch(r){}if(Et(e,t))return kt(!_t(wt.f,e,t),e[t])};var Rt={},Ct=o&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=F,Ot=String,Dt=TypeError,Bt=function(e){if(It(e))return e;throw new Dt(Ot(e)+" is not an object")},Lt=o,Pt=yt,Nt=Ct,zt=Bt,Ut=ht,jt=TypeError,Mt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,qt="enumerable",Wt="configurable",Vt="writable";Rt.f=Lt?Nt?function(e,t,r){if(zt(e),t=Ut(t),zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Vt in r&&!r[Vt]){var n=Ft(e,t);n&&n[Vt]&&(e[t]=r.value,r={configurable:Wt in r?r[Wt]:n[Wt],enumerable:qt in r?r[qt]:n[qt],writable:!1})}return Mt(e,t,r)}:Mt:function(e,t,r){if(zt(e),t=Ut(t),zt(r),Pt)try{return Mt(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new jt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Ht=Rt,Gt=g,Zt=o?function(e,t,r){return Ht.f(e,t,Gt(1,r))}:function(e,t,r){return e[t]=r,e},Yt={exports:{}},Kt=o,Xt=Fe,$t=Function.prototype,Jt=Kt&&Object.getOwnPropertyDescriptor,Qt=Xt($t,"name"),er={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!Kt||Kt&&Jt($t,"name").configurable)},tr=j,rr=Be,nr=w(Function.toString);tr(rr.inspectSource)||(rr.inspectSource=function(e){return nr(e)});var ir,or,ar,sr=rr.inspectSource,cr=j,ur=r.WeakMap,lr=cr(ur)&&/native code/.test(String(ur)),dr=Ge,hr=Pe("keys"),fr=function(e){return hr[e]||(hr[e]=dr(e))},pr={},mr=lr,gr=r,vr=F,yr=Zt,br=Fe,_r=Be,wr=fr,kr=pr,xr="Object already initialized",Sr=gr.TypeError,Er=gr.WeakMap;if(mr||_r.state){var Tr=_r.state||(_r.state=new Er);Tr.get=Tr.get,Tr.has=Tr.has,Tr.set=Tr.set,ir=function(e,t){if(Tr.has(e))throw new Sr(xr);return t.facade=e,Tr.set(e,t),t},or=function(e){return Tr.get(e)||{}},ar=function(e){return Tr.has(e)}}else{var Ar=wr("state");kr[Ar]=!0,ir=function(e,t){if(br(e,Ar))throw new Sr(xr);return t.facade=e,yr(e,Ar,t),t},or=function(e){return br(e,Ar)?e[Ar]:{}},ar=function(e){return br(e,Ar)}}var Rr={set:ir,get:or,has:ar,enforce:function(e){return ar(e)?or(e):ir(e,{})},getterFor:function(e){return function(t){var r;if(!vr(t)||(r=or(t)).type!==e)throw new Sr("Incompatible receiver, "+e+" required");return r}}},Cr=w,Ir=i,Or=j,Dr=Fe,Br=o,Lr=er.CONFIGURABLE,Pr=sr,Nr=Rr.enforce,zr=Rr.get,Ur=String,jr=Object.defineProperty,Mr=Cr("".slice),Fr=Cr("".replace),qr=Cr([].join),Wr=Br&&!Ir((function(){return 8!==jr((function(){}),"length",{value:8}).length})),Vr=String(String).split("String"),Hr=Yt.exports=function(e,t,r){"Symbol("===Mr(Ur(t),0,7)&&(t="["+Fr(Ur(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Lr&&e.name!==t)&&(Br?jr(e,"name",{value:t,configurable:!0}):e.name=t),Wr&&r&&Dr(r,"arity")&&e.length!==r.arity&&jr(e,"length",{value:r.arity});try{r&&Dr(r,"constructor")&&r.constructor?Br&&jr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=Nr(e);return Dr(n,"source")||(n.source=qr(Vr,"string"==typeof t?t:"")),e};Function.prototype.toString=Hr((function(){return Or(this)&&zr(this).source||Pr(this)}),"toString");var Gr=Yt.exports,Zr=j,Yr=Rt,Kr=Gr,Xr=Re,$r=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Zr(r)&&Kr(r,o,n),n.global)i?e[t]=r:Xr(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=r:Yr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Jr={},Qr=Math.ceil,en=Math.floor,tn=Math.trunc||function(e){var t=+e;return(t>0?en:Qr)(t)},rn=function(e){var t=+e;return t!=t||0===t?0:tn(t)},nn=rn,on=Math.max,an=Math.min,sn=function(e,t){var r=nn(e);return r<0?on(r+t,0):an(r,t)},cn=rn,un=Math.min,ln=function(e){var t=cn(e);return t>0?un(t,9007199254740991):0},dn=ln,hn=function(e){return dn(e.length)},fn=z,pn=sn,mn=hn,gn=function(e){return function(t,r,n){var i=fn(t),o=mn(i);if(0===o)return!e&&-1;var a,s=pn(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},vn={includes:gn(!0),indexOf:gn(!1)},yn=Fe,bn=z,_n=vn.indexOf,wn=pr,kn=w([].push),xn=function(e,t){var r,n=bn(e),i=0,o=[];for(r in n)!yn(wn,r)&&yn(n,r)&&kn(o,r);for(;t.length>i;)yn(n,r=t[i++])&&(~_n(o,r)||kn(o,r));return o},Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],En=xn,Tn=Sn.concat("length","prototype");Jr.f=Object.getOwnPropertyNames||function(e){return En(e,Tn)};var An={};An.f=Object.getOwnPropertySymbols;var Rn=V,Cn=Jr,In=An,On=Bt,Dn=w([].concat),Bn=Rn("Reflect","ownKeys")||function(e){var t=Cn.f(On(e)),r=In.f;return r?Dn(t,r(e)):t},Ln=Fe,Pn=Bn,Nn=n,zn=Rt,Un=function(e,t,r){for(var n=Pn(t),i=zn.f,o=Nn.f,a=0;a<n.length;a++){var s=n[a];Ln(e,s)||r&&Ln(r,s)||i(e,s,o(t,s))}},jn=i,Mn=j,Fn=/#|\.prototype\./,qn=function(e,t){var r=Vn[Wn(e)];return r===Gn||r!==Hn&&(Mn(t)?jn(t):!!t)},Wn=qn.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Vn=qn.data={},Hn=qn.NATIVE="N",Gn=qn.POLYFILL="P",Zn=qn,Yn=r,Kn=n.f,Xn=Zt,$n=$r,Jn=Re,Qn=Un,ei=Zn,ti=function(e,t){var r,n,i,o,a,s=e.target,c=e.global,u=e.stat;if(r=c?Yn:u?Yn[s]||Jn(s,{}):Yn[s]&&Yn[s].prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!ei(c?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Qn(o,i)}(e.sham||i&&i.sham)&&Xn(o,"sham",!0),$n(r,n,o,e)}},ri={},ni=xn,ii=Sn,oi=Object.keys||function(e){return ni(e,ii)},ai=o,si=Ct,ci=Rt,ui=Bt,li=z,di=oi;ri.f=ai&&!si?Object.defineProperties:function(e,t){ui(e);for(var r,n=li(t),i=di(t),o=i.length,a=0;o>a;)ci.f(e,r=i[a++],n[r]);return e};var hi,fi=V("document","documentElement"),pi=Bt,mi=ri,gi=Sn,vi=pr,yi=fi,bi=gt,_i="prototype",wi="script",ki=fr("IE_PROTO"),xi=function(){},Si=function(e){return"<"+wi+">"+e+"</"+wi+">"},Ei=function(e){e.write(Si("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ti=function(){try{hi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Ti="undefined"!=typeof document?document.domain&&hi?Ei(hi):(t=bi("iframe"),r="java"+wi+":",t.style.display="none",yi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Si("document.F=Object")),e.close(),e.F):Ei(hi);for(var n=gi.length;n--;)delete Ti[_i][gi[n]];return Ti()};vi[ki]=!0;var Ai=Object.create||function(e,t){var r;return null!==e?(xi[_i]=pi(e),r=new xi,xi[_i]=null,r[ki]=e):r=Ti(),void 0===t?r:mi.f(r,t)},Ri=tt,Ci=Ai,Ii=Rt.f,Oi=Ri("unscopables"),Di=Array.prototype;void 0===Di[Oi]&&Ii(Di,Oi,{configurable:!0,value:Ci(null)});var Bi=function(e){Di[Oi][e]=!0},Li=vn.includes,Pi=Bi;ti({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}}),Pi("includes");var Ni,zi,Ui,ji={},Mi=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fi=Fe,qi=j,Wi=Ue,Vi=Mi,Hi=fr("IE_PROTO"),Gi=Object,Zi=Gi.prototype,Yi=Vi?Gi.getPrototypeOf:function(e){var t=Wi(e);if(Fi(t,Hi))return t[Hi];var r=t.constructor;return qi(r)&&t instanceof r?r.prototype:t instanceof Gi?Zi:null},Ki=i,Xi=j,$i=F,Ji=Yi,Qi=$r,eo=tt("iterator"),to=!1;[].keys&&("next"in(Ui=[].keys())?(zi=Ji(Ji(Ui)))!==Object.prototype&&(Ni=zi):to=!0);var ro=!$i(Ni)||Ki((function(){var e={};return Ni[eo].call(e)!==e}));ro&&(Ni={}),Xi(Ni[eo])||Qi(Ni,eo,(function(){return this}));var no={IteratorPrototype:Ni,BUGGY_SAFARI_ITERATORS:to},io=Rt.f,oo=Fe,ao=tt("toStringTag"),so=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oo(e,ao)&&io(e,ao,{configurable:!0,value:t})},co=no.IteratorPrototype,uo=Ai,lo=g,ho=so,fo=ji,po=function(){return this},mo=function(e,t,r,n){var i=t+" Iterator";return e.prototype=uo(co,{next:lo(+!n,r)}),ho(e,i,!1),fo[i]=po,e},go=w,vo=ve,yo=F,bo=function(e){return yo(e)||null===e},_o=String,wo=TypeError,ko=function(e,t,r){try{return go(vo(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},xo=F,So=L,Eo=function(e){if(bo(e))return e;throw new wo("Can't set "+_o(e)+" as a prototype")},To=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ko(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return So(r),Eo(n),xo(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Ao=ti,Ro=u,Co=j,Io=mo,Oo=Yi,Do=To,Bo=so,Lo=Zt,Po=$r,No=ji,zo=er.PROPER,Uo=er.CONFIGURABLE,jo=no.IteratorPrototype,Mo=no.BUGGY_SAFARI_ITERATORS,Fo=tt("iterator"),qo="keys",Wo="values",Vo="entries",Ho=function(){return this},Go=function(e,t,r,n,i,o,a){Io(r,t,n);var s,c,u,l=function(e){if(e===i&&m)return m;if(!Mo&&e&&e in f)return f[e];switch(e){case qo:case Wo:case Vo:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[Fo]||f["@@iterator"]||i&&f[i],m=!Mo&&p||l(i),g="Array"===t&&f.entries||p;if(g&&(s=Oo(g.call(new e)))!==Object.prototype&&s.next&&(Oo(s)!==jo&&(Do?Do(s,jo):Co(s[Fo])||Po(s,Fo,Ho)),Bo(s,d,!0)),zo&&i===Wo&&p&&p.name!==Wo&&(Uo?Lo(f,"name",Wo):(h=!0,m=function(){return Ro(p,this)})),i)if(c={values:l(Wo),keys:o?m:l(qo),entries:l(Vo)},a)for(u in c)(Mo||h||!(u in f))&&Po(f,u,c[u]);else Ao({target:t,proto:!0,forced:Mo||h},c);return f[Fo]!==m&&Po(f,Fo,m,{name:i}),No[t]=m,c},Zo=function(e,t){return{value:e,done:t}},Yo=z,Ko=Bi,Xo=ji,$o=Rr,Jo=Rt.f,Qo=Go,ea=Zo,ta=o,ra="Array Iterator",na=$o.set,ia=$o.getterFor(ra),oa=Qo(Array,"Array",(function(e,t){na(this,{type:ra,target:Yo(e),index:0,kind:t})}),(function(){var e=ia(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ea(void 0,!0);switch(e.kind){case"keys":return ea(r,!1);case"values":return ea(t[r],!1)}return ea([r,t[r]],!1)}),"values"),aa=Xo.Arguments=Xo.Array;if(Ko("keys"),Ko("values"),Ko("entries"),ta&&"values"!==aa.name)try{Jo(aa,"name",{value:"values"})}catch(tT){}var sa=ve,ca=Ue,ua=I,la=hn,da=TypeError,ha="Reduce of empty array with no initial value",fa=function(e){return function(t,r,n,i){var o=ca(t),a=ua(o),s=la(o);if(sa(r),0===s&&n<2)throw new da(ha);var c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw new da(ha)}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},pa={left:fa(!1),right:fa(!0)},ma=i,ga=function(e,t){var r=[][e];return!!r&&ma((function(){r.call(null,t||function(){return 1},1)}))},va=r,ya=Y,ba=E,_a=function(e){return ya.slice(0,e.length)===e},wa=_a("Bun/")?"BUN":_a("Cloudflare-Workers")?"CLOUDFLARE":_a("Deno/")?"DENO":_a("Node.js/")?"NODE":va.Bun&&"string"==typeof Bun.version?"BUN":va.Deno&&"object"==typeof Deno.version?"DENO":"process"===ba(va.process)?"NODE":va.window&&va.document?"BROWSER":"REST",ka="NODE"===wa,xa=pa.left;ti({target:"Array",proto:!0,forced:!ka&&te>79&&te<83||!ga("reduce")},{reduce:function(e){var t=arguments.length;return xa(this,e,t,t>1?arguments[1]:void 0)}});var Sa="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ea=Gr,Ta=Rt,Aa=function(e,t,r){return r.get&&Ea(r.get,t,{getter:!0}),r.set&&Ea(r.set,t,{setter:!0}),Ta.f(e,t,r)},Ra=$r,Ca=function(e,t,r){for(var n in t)Ra(e,n,t[n],r);return e},Ia=H,Oa=TypeError,Da=function(e,t){if(Ia(t,e))return e;throw new Oa("Incorrect invocation")},Ba=rn,La=ln,Pa=RangeError,Na=function(e){if(void 0===e)return 0;var t=Ba(e),r=La(t);if(t!==r)throw new Pa("Wrong length or index");return r},za=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},Ua=4503599627370496,ja=za,Ma=function(e){return e+Ua-Ua},Fa=Math.abs,qa=function(e,t,r,n){var i=+e,o=Fa(i),a=ja(i);if(o<n)return a*Ma(o/n/t)*n*t;var s=(1+t/2220446049250313e-31)*o,c=s-(s-o);return c>r||c!=c?Infinity*a:a*c},Wa=Math.fround||function(e){return qa(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Va=Array,Ha=Math.abs,Ga=Math.pow,Za=Math.floor,Ya=Math.log,Ka=Math.LN2,Xa={pack:function(e,t,r){var n,i,o,a=Va(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,l=23===t?Ga(2,-24)-Ga(2,-77):0,d=e<0||0===e&&1/e<0?1:0,h=0;for((e=Ha(e))!=e||Infinity===e?(i=e!=e?1:0,n=c):(n=Za(Ya(e)/Ka),e*(o=Ga(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?l/o:l*Ga(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*Ga(2,t),n+=u):(i=e*Ga(2,u-1)*Ga(2,t),n=0));t>=8;)a[h++]=255&i,i/=256,t-=8;for(n=n<<t|i,s+=t;s>0;)a[h++]=255&n,n/=256,s-=8;return a[h-1]|=128*d,a},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;s>0;)l=256*l+e[c--],s-=8;for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===l)l=1-a;else{if(l===o)return r?NaN:u?-Infinity:Infinity;r+=Ga(2,t),l-=a}return(u?-1:1)*r*Ga(2,l-t)}},$a=Ue,Ja=sn,Qa=hn,es=function(e){for(var t=$a(this),r=Qa(t),n=arguments.length,i=Ja(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:Ja(o,r);a>i;)t[i++]=e;return t},ts=w([].slice),rs=j,ns=F,is=To,os=function(e,t,r){var n,i;return is&&rs(n=t.constructor)&&n!==r&&ns(i=n.prototype)&&i!==r.prototype&&is(e,i),e},as=r,ss=w,cs=o,us=Sa,ls=Zt,ds=Aa,hs=Ca,fs=i,ps=Da,ms=rn,gs=ln,vs=Na,ys=Wa,bs=Xa,_s=Yi,ws=To,ks=es,xs=ts,Ss=os,Es=Un,Ts=so,As=Rr,Rs=er.PROPER,Cs=er.CONFIGURABLE,Is="ArrayBuffer",Os="DataView",Ds="prototype",Bs="Wrong index",Ls=As.getterFor(Is),Ps=As.getterFor(Os),Ns=As.set,zs=as[Is],Us=zs,js=Us&&Us[Ds],Ms=as[Os],Fs=Ms&&Ms[Ds],qs=Object.prototype,Ws=as.Array,Vs=as.RangeError,Hs=ss(ks),Gs=ss([].reverse),Zs=bs.pack,Ys=bs.unpack,Ks=function(e){return[255&e]},Xs=function(e){return[255&e,e>>8&255]},$s=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Js=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Qs=function(e){return Zs(ys(e),23,4)},ec=function(e){return Zs(e,52,8)},tc=function(e,t,r){ds(e[Ds],t,{configurable:!0,get:function(){return r(this)[t]}})},rc=function(e,t,r,n){var i=Ps(e),o=vs(r),a=!!n;if(o+t>i.byteLength)throw new Vs(Bs);var s=i.bytes,c=o+i.byteOffset,u=xs(s,c,c+t);return a?u:Gs(u)},nc=function(e,t,r,n,i,o){var a=Ps(e),s=vs(r),c=n(+i),u=!!o;if(s+t>a.byteLength)throw new Vs(Bs);for(var l=a.bytes,d=s+a.byteOffset,h=0;h<t;h++)l[d+h]=c[u?h:t-h-1]};if(us){var ic=Rs&&zs.name!==Is;fs((function(){zs(1)}))&&fs((function(){new zs(-1)}))&&!fs((function(){return new zs,new zs(1.5),new zs(NaN),1!==zs.length||ic&&!Cs}))?ic&&Cs&&ls(zs,"name",Is):((Us=function(e){return ps(this,js),Ss(new zs(vs(e)),this,Us)})[Ds]=js,js.constructor=Us,Es(Us,zs)),ws&&_s(Fs)!==qs&&ws(Fs,qs);var oc=new Ms(new Us(2)),ac=ss(Fs.setInt8);oc.setInt8(0,2147483648),oc.setInt8(1,2147483649),!oc.getInt8(0)&&oc.getInt8(1)||hs(Fs,{setInt8:function(e,t){ac(this,e,t<<24>>24)},setUint8:function(e,t){ac(this,e,t<<24>>24)}},{unsafe:!0})}else js=(Us=function(e){ps(this,js);var t=vs(e);Ns(this,{type:Is,bytes:Hs(Ws(t),0),byteLength:t}),cs||(this.byteLength=t,this.detached=!1)})[Ds],Fs=(Ms=function(e,t,r){ps(this,Fs),ps(e,js);var n=Ls(e),i=n.byteLength,o=ms(t);if(o<0||o>i)throw new Vs("Wrong offset");if(o+(r=void 0===r?i-o:gs(r))>i)throw new Vs("Wrong length");Ns(this,{type:Os,buffer:e,byteLength:r,byteOffset:o,bytes:n.bytes}),cs||(this.buffer=e,this.byteLength=r,this.byteOffset=o)})[Ds],cs&&(tc(Us,"byteLength",Ls),tc(Ms,"buffer",Ps),tc(Ms,"byteLength",Ps),tc(Ms,"byteOffset",Ps)),hs(Fs,{getInt8:function(e){return rc(this,1,e)[0]<<24>>24},getUint8:function(e){return rc(this,1,e)[0]},getInt16:function(e){var t=rc(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=rc(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Js(rc(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Js(rc(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Ys(rc(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Ys(rc(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){nc(this,1,e,Ks,t)},setUint8:function(e,t){nc(this,1,e,Ks,t)},setInt16:function(e,t){nc(this,2,e,Xs,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){nc(this,2,e,Xs,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){nc(this,4,e,$s,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){nc(this,4,e,$s,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){nc(this,4,e,Qs,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){nc(this,8,e,ec,t,arguments.length>2&&arguments[2])}});Ts(Us,Is),Ts(Ms,Os);var sc={ArrayBuffer:Us,DataView:Ms},cc=V,uc=Aa,lc=o,dc=tt("species"),hc=function(e){var t=cc(e);lc&&t&&!t[dc]&&uc(t,dc,{configurable:!0,get:function(){return this}})},fc=hc,pc="ArrayBuffer",mc=sc[pc];ti({global:!0,constructor:!0,forced:r[pc]!==mc},{ArrayBuffer:mc}),fc(pc);var gc=E,vc=w,yc=function(e){if("Function"===gc(e))return vc(e)},bc=ti,_c=yc,wc=i,kc=Bt,xc=sn,Sc=ln,Ec=sc.ArrayBuffer,Tc=sc.DataView,Ac=Tc.prototype,Rc=_c(Ec.prototype.slice),Cc=_c(Ac.getUint8),Ic=_c(Ac.setUint8);bc({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:wc((function(){return!new Ec(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(Rc&&void 0===t)return Rc(kc(this),e);for(var r=kc(this).byteLength,n=xc(e,r),i=xc(void 0===t?r:t,r),o=new Ec(Sc(i-n)),a=new Tc(this),s=new Tc(o),c=0;n<i;)Ic(s,c++,Cc(a,n++));return o}});var Oc={};Oc[tt("toStringTag")]="z";var Dc="[object z]"===String(Oc),Bc=j,Lc=E,Pc=tt("toStringTag"),Nc=Object,zc="Arguments"===Lc(function(){return arguments}()),Uc=Dc?Lc:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(tT){}}(t=Nc(e),Pc))?r:zc?Lc(t):"Object"===(n=Lc(t))&&Bc(t.callee)?"Arguments":n},jc=w,Mc=i,Fc=j,qc=Uc,Wc=sr,Vc=function(){},Hc=V("Reflect","construct"),Gc=/^\s*(?:class|function)\b/,Zc=jc(Gc.exec),Yc=!Gc.test(Vc),Kc=function(e){if(!Fc(e))return!1;try{return Hc(Vc,[],e),!0}catch(tT){return!1}},Xc=function(e){if(!Fc(e))return!1;switch(qc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yc||!!Zc(Gc,Wc(e))}catch(tT){return!0}};Xc.sham=!0;var $c,Jc,Qc,eu,tu=!Hc||Mc((function(){var e;return Kc(Kc.call)||!Kc(Object)||!Kc((function(){e=!0}))||e}))?Xc:Kc,ru=tu,nu=fe,iu=TypeError,ou=function(e){if(ru(e))return e;throw new iu(nu(e)+" is not a constructor")},au=Bt,su=ou,cu=O,uu=tt("species"),lu=function(e,t){var r,n=au(e).constructor;return void 0===n||cu(r=au(n)[uu])?t:su(r)},du=a,hu=Function.prototype,fu=hu.apply,pu=hu.call,mu="object"==typeof Reflect&&Reflect.apply||(du?pu.bind(fu):function(){return pu.apply(fu,arguments)}),gu=ve,vu=a,yu=yc(yc.bind),bu=function(e,t){return gu(e),void 0===t?e:vu?yu(e,t):function(){return e.apply(t,arguments)}},_u=TypeError,wu=function(e,t){if(e<t)throw new _u("Not enough arguments");return e},ku=/(?:ipad|iphone|ipod).*applewebkit/i.test(Y),xu=r,Su=mu,Eu=bu,Tu=j,Au=Fe,Ru=i,Cu=fi,Iu=ts,Ou=gt,Du=wu,Bu=ku,Lu=ka,Pu=xu.setImmediate,Nu=xu.clearImmediate,zu=xu.process,Uu=xu.Dispatch,ju=xu.Function,Mu=xu.MessageChannel,Fu=xu.String,qu=0,Wu={},Vu="onreadystatechange";Ru((function(){$c=xu.location}));var Hu=function(e){if(Au(Wu,e)){var t=Wu[e];delete Wu[e],t()}},Gu=function(e){return function(){Hu(e)}},Zu=function(e){Hu(e.data)},Yu=function(e){xu.postMessage(Fu(e),$c.protocol+"//"+$c.host)};Pu&&Nu||(Pu=function(e){Du(arguments.length,1);var t=Tu(e)?e:ju(e),r=Iu(arguments,1);return Wu[++qu]=function(){Su(t,void 0,r)},Jc(qu),qu},Nu=function(e){delete Wu[e]},Lu?Jc=function(e){zu.nextTick(Gu(e))}:Uu&&Uu.now?Jc=function(e){Uu.now(Gu(e))}:Mu&&!Bu?(eu=(Qc=new Mu).port2,Qc.port1.onmessage=Zu,Jc=Eu(eu.postMessage,eu)):xu.addEventListener&&Tu(xu.postMessage)&&!xu.importScripts&&$c&&"file:"!==$c.protocol&&!Ru(Yu)?(Jc=Yu,xu.addEventListener("message",Zu,!1)):Jc=Vu in Ou("script")?function(e){Cu.appendChild(Ou("script"))[Vu]=function(){Cu.removeChild(this),Hu(e)}}:function(e){setTimeout(Gu(e),0)});var Ku={set:Pu,clear:Nu},Xu=r,$u=o,Ju=Object.getOwnPropertyDescriptor,Qu=function(e){if(!$u)return Xu[e];var t=Ju(Xu,e);return t&&t.value},el=function(){this.head=null,this.tail=null};el.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var tl,rl,nl,il,ol,al=el,sl=/ipad|iphone|ipod/i.test(Y)&&"undefined"!=typeof Pebble,cl=/web0s(?!.*chrome)/i.test(Y),ul=r,ll=Qu,dl=bu,hl=Ku.set,fl=al,pl=ku,ml=sl,gl=cl,vl=ka,yl=ul.MutationObserver||ul.WebKitMutationObserver,bl=ul.document,_l=ul.process,wl=ul.Promise,kl=ll("queueMicrotask");if(!kl){var xl=new fl,Sl=function(){var e,t;for(vl&&(e=_l.domain)&&e.exit();t=xl.get();)try{t()}catch(tT){throw xl.head&&tl(),tT}e&&e.enter()};pl||vl||gl||!yl||!bl?!ml&&wl&&wl.resolve?((il=wl.resolve(void 0)).constructor=wl,ol=dl(il.then,il),tl=function(){ol(Sl)}):vl?tl=function(){_l.nextTick(Sl)}:(hl=dl(hl,ul),tl=function(){hl(Sl)}):(rl=!0,nl=bl.createTextNode(""),new yl(Sl).observe(nl,{characterData:!0}),tl=function(){nl.data=rl=!rl}),kl=function(e){xl.head||tl(),xl.add(e)}}var El=kl,Tl=function(e){try{return{error:!1,value:e()}}catch(tT){return{error:!0,value:tT}}},Al=r.Promise,Rl=r,Cl=Al,Il=j,Ol=Zn,Dl=sr,Bl=tt,Ll=wa,Pl=te;Cl&&Cl.prototype;var Nl=Bl("species"),zl=!1,Ul=Il(Rl.PromiseRejectionEvent),jl=Ol("Promise",(function(){var e=Dl(Cl),t=e!==String(Cl);if(!t&&66===Pl)return!0;if(!Pl||Pl<51||!/native code/.test(e)){var r=new Cl((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Nl]=n,!(zl=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==Ll&&"DENO"!==Ll||Ul)})),Ml={CONSTRUCTOR:jl,REJECTION_EVENT:Ul,SUBCLASSING:zl},Fl={},ql=ve,Wl=TypeError,Vl=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new Wl("Bad Promise constructor");t=e,r=n})),this.resolve=ql(t),this.reject=ql(r)};Fl.f=function(e){return new Vl(e)};var Hl,Gl,Zl,Yl=ti,Kl=ka,Xl=r,$l=u,Jl=$r,Ql=To,ed=so,td=hc,rd=ve,nd=j,id=F,od=Da,ad=lu,sd=Ku.set,cd=El,ud=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(tT){}},ld=Tl,dd=al,hd=Rr,fd=Al,pd=Fl,md="Promise",gd=Ml.CONSTRUCTOR,vd=Ml.REJECTION_EVENT,yd=Ml.SUBCLASSING,bd=hd.getterFor(md),_d=hd.set,wd=fd&&fd.prototype,kd=fd,xd=wd,Sd=Xl.TypeError,Ed=Xl.document,Td=Xl.process,Ad=pd.f,Rd=Ad,Cd=!!(Ed&&Ed.createEvent&&Xl.dispatchEvent),Id="unhandledrejection",Od=function(e){var t;return!(!id(e)||!nd(t=e.then))&&t},Dd=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&zd(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?u(new Sd("Promise-chain cycle")):(n=Od(r))?$l(n,r,c,u):c(r)):u(o)}catch(tT){l&&!i&&l.exit(),u(tT)}},Bd=function(e,t){e.notified||(e.notified=!0,cd((function(){for(var r,n=e.reactions;r=n.get();)Dd(r,e);e.notified=!1,t&&!e.rejection&&Pd(e)})))},Ld=function(e,t,r){var n,i;Cd?((n=Ed.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Xl.dispatchEvent(n)):n={promise:t,reason:r},!vd&&(i=Xl["on"+e])?i(n):e===Id&&ud("Unhandled promise rejection",r)},Pd=function(e){$l(sd,Xl,(function(){var t,r=e.facade,n=e.value;if(Nd(e)&&(t=ld((function(){Kl?Td.emit("unhandledRejection",n,r):Ld(Id,r,n)})),e.rejection=Kl||Nd(e)?2:1,t.error))throw t.value}))},Nd=function(e){return 1!==e.rejection&&!e.parent},zd=function(e){$l(sd,Xl,(function(){var t=e.facade;Kl?Td.emit("rejectionHandled",t):Ld("rejectionhandled",t,e.value)}))},Ud=function(e,t,r){return function(n){e(t,n,r)}},jd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Bd(e,!0))},Md=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Sd("Promise can't be resolved itself");var n=Od(t);n?cd((function(){var r={done:!1};try{$l(n,t,Ud(Md,r,e),Ud(jd,r,e))}catch(tT){jd(r,tT,e)}})):(e.value=t,e.state=1,Bd(e,!1))}catch(tT){jd({done:!1},tT,e)}}};if(gd&&(xd=(kd=function(e){od(this,xd),rd(e),$l(Hl,this);var t=bd(this);try{e(Ud(Md,t),Ud(jd,t))}catch(tT){jd(t,tT)}}).prototype,(Hl=function(e){_d(this,{type:md,done:!1,notified:!1,parent:!1,reactions:new dd,rejection:!1,state:0,value:null})}).prototype=Jl(xd,"then",(function(e,t){var r=bd(this),n=Ad(ad(this,kd));return r.parent=!0,n.ok=!nd(e)||e,n.fail=nd(t)&&t,n.domain=Kl?Td.domain:void 0,0===r.state?r.reactions.add(n):cd((function(){Dd(n,r)})),n.promise})),Gl=function(){var e=new Hl,t=bd(e);this.promise=e,this.resolve=Ud(Md,t),this.reject=Ud(jd,t)},pd.f=Ad=function(e){return e===kd||undefined===e?new Gl(e):Rd(e)},nd(fd)&&wd!==Object.prototype)){Zl=wd.then,yd||Jl(wd,"then",(function(e,t){var r=this;return new kd((function(e,t){$l(Zl,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete wd.constructor}catch(tT){}Ql&&Ql(wd,xd)}Yl({global:!0,constructor:!0,wrap:!0,forced:gd},{Promise:kd}),ed(kd,md,!1),td(md);var Fd=ji,qd=tt("iterator"),Wd=Array.prototype,Vd=function(e){return void 0!==e&&(Fd.Array===e||Wd[qd]===e)},Hd=Uc,Gd=_e,Zd=O,Yd=ji,Kd=tt("iterator"),Xd=function(e){if(!Zd(e))return Gd(e,Kd)||Gd(e,"@@iterator")||Yd[Hd(e)]},$d=u,Jd=ve,Qd=Bt,eh=fe,th=Xd,rh=TypeError,nh=function(e,t){var r=arguments.length<2?th(e):t;if(Jd(r))return Qd($d(r,e));throw new rh(eh(e)+" is not iterable")},ih=u,oh=Bt,ah=_e,sh=function(e,t,r){var n,i;oh(e);try{if(!(n=ah(e,"return"))){if("throw"===t)throw r;return r}n=ih(n,e)}catch(tT){i=!0,n=tT}if("throw"===t)throw r;if(i)throw n;return oh(n),r},ch=bu,uh=u,lh=Bt,dh=fe,hh=Vd,fh=hn,ph=H,mh=nh,gh=Xd,vh=sh,yh=TypeError,bh=function(e,t){this.stopped=e,this.result=t},_h=bh.prototype,wh=function(e,t,r){var n,i,o,a,s,c,u,l=r&&r.that,d=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=ch(t,l),g=function(e){return n&&vh(n,"normal",e),new bh(!0,e)},v=function(e){return d?(lh(e),p?m(e[0],e[1],g):m(e[0],e[1])):p?m(e,g):m(e)};if(h)n=e.iterator;else if(f)n=e;else{if(!(i=gh(e)))throw new yh(dh(e)+" is not iterable");if(hh(i)){for(o=0,a=fh(e);a>o;o++)if((s=v(e[o]))&&ph(_h,s))return s;return new bh(!1)}n=mh(e,i)}for(c=h?e.next:n.next;!(u=uh(c,n)).done;){try{s=v(u.value)}catch(tT){vh(n,"throw",tT)}if("object"==typeof s&&s&&ph(_h,s))return s}return new bh(!1)},kh=tt("iterator"),xh=!1;try{var Sh=0,Eh={next:function(){return{done:!!Sh++}},return:function(){xh=!0}};Eh[kh]=function(){return this},Array.from(Eh,(function(){throw 2}))}catch(tT){}var Th=function(e,t){try{if(!t&&!xh)return!1}catch(tT){return!1}var r=!1;try{var n={};n[kh]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(tT){}return r},Ah=Al,Rh=Ml.CONSTRUCTOR||!Th((function(e){Ah.all(e).then(void 0,(function(){}))})),Ch=u,Ih=ve,Oh=Fl,Dh=Tl,Bh=wh;ti({target:"Promise",stat:!0,forced:Rh},{all:function(e){var t=this,r=Oh.f(t),n=r.resolve,i=r.reject,o=Dh((function(){var r=Ih(t.resolve),o=[],a=0,s=1;Bh(e,(function(e){var c=a++,u=!1;s++,Ch(r,t,e).then((function(e){u||(u=!0,o[c]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var Lh=ti,Ph=Ml.CONSTRUCTOR,Nh=Al,zh=V,Uh=j,jh=$r,Mh=Nh&&Nh.prototype;if(Lh({target:"Promise",proto:!0,forced:Ph,real:!0},{catch:function(e){return this.then(void 0,e)}}),Uh(Nh)){var Fh=zh("Promise").prototype.catch;Mh.catch!==Fh&&jh(Mh,"catch",Fh,{unsafe:!0})}var qh=u,Wh=ve,Vh=Fl,Hh=Tl,Gh=wh;ti({target:"Promise",stat:!0,forced:Rh},{race:function(e){var t=this,r=Vh.f(t),n=r.reject,i=Hh((function(){var i=Wh(t.resolve);Gh(e,(function(e){qh(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Zh=Fl;ti({target:"Promise",stat:!0,forced:Ml.CONSTRUCTOR},{reject:function(e){var t=Zh.f(this);return(0,t.reject)(e),t.promise}});var Yh=Bt,Kh=F,Xh=Fl,$h=function(e,t){if(Yh(e),Kh(t)&&t.constructor===e)return t;var r=Xh.f(e);return(0,r.resolve)(t),r.promise},Jh=ti,Qh=Ml.CONSTRUCTOR,ef=$h;V("Promise"),Jh({target:"Promise",stat:!0,forced:Qh},{resolve:function(e){return ef(this,e)}});var tf=ti,rf=Al,nf=i,of=V,af=j,sf=lu,cf=$h,uf=$r,lf=rf&&rf.prototype;if(tf({target:"Promise",proto:!0,real:!0,forced:!!rf&&nf((function(){lf.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=sf(this,of("Promise")),r=af(e);return this.then(r?function(r){return cf(t,e()).then((function(){return r}))}:e,r?function(r){return cf(t,e()).then((function(){throw r}))}:e)}}),af(rf)){var df=of("Promise").prototype.finally;lf.finally!==df&&uf(lf,"finally",df,{unsafe:!0})}var hf=F,ff=E,pf=tt("match"),mf=Uc,gf=String,vf=function(e){if("Symbol"===mf(e))throw new TypeError("Cannot convert a Symbol value to a string");return gf(e)},yf=Bt,bf=function(){var e=yf(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},_f=u,wf=Fe,kf=H,xf=bf,Sf=RegExp.prototype,Ef=i,Tf=r.RegExp,Af=Ef((function(){var e=Tf("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Rf=Af||Ef((function(){return!Tf("a","y").sticky})),Cf={BROKEN_CARET:Af||Ef((function(){var e=Tf("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:Rf,UNSUPPORTED_Y:Af},If=Rt.f,Of=i,Df=r.RegExp,Bf=Of((function(){var e=Df(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Lf=i,Pf=r.RegExp,Nf=Lf((function(){var e=Pf("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zf=o,Uf=r,jf=w,Mf=Zn,Ff=os,qf=Zt,Wf=Ai,Vf=Jr.f,Hf=H,Gf=function(e){var t;return hf(e)&&(void 0!==(t=e[pf])?!!t:"RegExp"===ff(e))},Zf=vf,Yf=function(e){var t=e.flags;return void 0!==t||"flags"in Sf||wf(e,"flags")||!kf(Sf,e)?t:_f(xf,e)},Kf=Cf,Xf=function(e,t,r){r in e||If(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},$f=$r,Jf=i,Qf=Fe,ep=Rr.enforce,tp=hc,rp=Bf,np=Nf,ip=tt("match"),op=Uf.RegExp,ap=op.prototype,sp=Uf.SyntaxError,cp=jf(ap.exec),up=jf("".charAt),lp=jf("".replace),dp=jf("".indexOf),hp=jf("".slice),fp=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pp=/a/g,mp=/a/g,gp=new op(pp)!==pp,vp=Kf.MISSED_STICKY,yp=Kf.UNSUPPORTED_Y,bp=zf&&(!gp||vp||rp||np||Jf((function(){return mp[ip]=!1,op(pp)!==pp||op(mp)===mp||"/a/i"!==String(op(pp,"i"))})));if(Mf("RegExp",bp)){for(var _p=function(e,t){var r,n,i,o,a,s,c=Hf(ap,this),u=Gf(e),l=void 0===t,d=[],h=e;if(!c&&u&&l&&e.constructor===_p)return e;if((u||Hf(ap,e))&&(e=e.source,l&&(t=Yf(h))),e=void 0===e?"":Zf(e),t=void 0===t?"":Zf(t),h=e,rp&&"dotAll"in pp&&(n=!!t&&dp(t,"s")>-1)&&(t=lp(t,/s/g,"")),r=t,vp&&"sticky"in pp&&(i=!!t&&dp(t,"y")>-1)&&yp&&(t=lp(t,/y/g,"")),np&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a=Wf(null),s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=up(e,n)))t+=up(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===hp(e,n+1,n+3))continue;cp(fp,hp(e,n+1))&&(n+=2,c=!0),u++;continue;case">"===t&&c:if(""===l||Qf(a,l))throw new sp("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),a=Ff(op(e,t),c?this:ap,_p),(n||i||d.length)&&(s=ep(a),n&&(s.dotAll=!0,s.raw=_p(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=up(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+up(e,++n);return i}(e),r)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==h)try{qf(a,"source",""===h?"(?:)":h)}catch(tT){}return a},wp=Vf(op),kp=0;wp.length>kp;)Xf(_p,op,wp[kp++]);ap.constructor=_p,_p.prototype=ap,$f(Uf,"RegExp",_p,{constructor:!0})}tp("RegExp");var xp=u,Sp=w,Ep=vf,Tp=bf,Ap=Cf,Rp=Ai,Cp=Rr.get,Ip=Bf,Op=Nf,Dp=Pe("native-string-replace",String.prototype.replace),Bp=RegExp.prototype.exec,Lp=Bp,Pp=Sp("".charAt),Np=Sp("".indexOf),zp=Sp("".replace),Up=Sp("".slice),jp=function(){var e=/a/,t=/b*/g;return xp(Bp,e,"a"),xp(Bp,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Mp=Ap.BROKEN_CARET,Fp=void 0!==/()??/.exec("")[1];(jp||Fp||Mp||Ip||Op)&&(Lp=function(e){var t,r,n,i,o,a,s,c=this,u=Cp(c),l=Ep(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=xp(Lp,d,l),c.lastIndex=d.lastIndex,t;var h=u.groups,f=Mp&&c.sticky,p=xp(Tp,c),m=c.source,g=0,v=l;if(f&&(p=zp(p,"y",""),-1===Np(p,"g")&&(p+="g"),v=Up(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Pp(l,c.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),r=new RegExp("^(?:"+m+")",p)),Fp&&(r=new RegExp("^"+m+"$(?!\\s)",p)),jp&&(n=c.lastIndex),i=xp(Bp,f?r:c,v),f?i?(i.input=Up(i.input,g),i[0]=Up(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:jp&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),Fp&&i&&i.length>1&&xp(Dp,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=Rp(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var qp=Lp;ti({target:"RegExp",proto:!0,forced:/./.exec!==qp},{exec:qp});var Wp=o,Vp=Aa,Hp=bf,Gp=i,Zp=r.RegExp,Yp=Zp.prototype,Kp=Wp&&Gp((function(){var e=!0;try{Zp(".","d")}catch(tT){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(Yp,"flags").get.call(t)!==n||r!==n}));Kp&&Vp(Yp,"flags",{configurable:!0,get:Hp});var Xp=u,$p=$r,Jp=qp,Qp=i,em=tt,tm=Zt,rm=em("species"),nm=RegExp.prototype,im=w,om=rn,am=vf,sm=L,cm=im("".charAt),um=im("".charCodeAt),lm=im("".slice),dm=function(e){return function(t,r){var n,i,o=am(sm(t)),a=om(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=um(o,a))<55296||n>56319||a+1===s||(i=um(o,a+1))<56320||i>57343?e?cm(o,a):n:e?lm(o,a,a+2):i-56320+(n-55296<<10)+65536}},hm={codeAt:dm(!1),charAt:dm(!0)},fm=hm.charAt,pm=w,mm=Ue,gm=Math.floor,vm=pm("".charAt),ym=pm("".replace),bm=pm("".slice),_m=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wm=/\$([$&'`]|\d{1,2})/g,km=u,xm=Bt,Sm=j,Em=E,Tm=qp,Am=TypeError,Rm=mu,Cm=u,Im=w,Om=function(e,t,r,n){var i=em(e),o=!Qp((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),a=o&&!Qp((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[rm]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=/./[i],c=t(i,""[e],(function(e,t,r,n,i){var a=t.exec;return a===Jp||a===nm.exec?o&&!i?{done:!0,value:Xp(s,t,r,n)}:{done:!0,value:Xp(e,r,t,n)}:{done:!1}}));$p(String.prototype,e,c[0]),$p(nm,i,c[1])}n&&tm(nm[i],"sham",!0)},Dm=i,Bm=Bt,Lm=j,Pm=O,Nm=rn,zm=ln,Um=vf,jm=L,Mm=function(e,t,r){return t+(r?fm(e,t).length:1)},Fm=_e,qm=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,c=wm;return void 0!==i&&(i=mm(i),c=_m),ym(o,c,(function(o,c){var u;switch(vm(c,0)){case"$":return"$";case"&":return e;case"`":return bm(t,0,r);case"'":return bm(t,a);case"<":u=i[bm(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var d=gm(l/10);return 0===d?o:d<=s?void 0===n[d-1]?vm(c,1):n[d-1]+vm(c,1):o}u=n[l-1]}return void 0===u?"":u}))},Wm=function(e,t){var r=e.exec;if(Sm(r)){var n=km(r,e,t);return null!==n&&xm(n),n}if("RegExp"===Em(e))return km(Tm,e,t);throw new Am("RegExp#exec called on incompatible receiver")},Vm=tt("replace"),Hm=Math.max,Gm=Math.min,Zm=Im([].concat),Ym=Im([].push),Km=Im("".indexOf),Xm=Im("".slice),$m="$0"==="a".replace(/./,"$0"),Jm=!!/./[Vm]&&""===/./[Vm]("a","$0");Om("replace",(function(e,t,r){var n=Jm?"$":"$0";return[function(e,r){var n=jm(this),i=Pm(e)?void 0:Fm(e,Vm);return i?Cm(i,e,n,r):Cm(t,Um(n),e,r)},function(e,i){var o=Bm(this),a=Um(e);if("string"==typeof i&&-1===Km(i,n)&&-1===Km(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var c=Lm(i);c||(i=Um(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var d,h=[];null!==(d=Wm(o,a))&&(Ym(h,d),l);){""===Um(d[0])&&(o.lastIndex=Mm(a,zm(o.lastIndex),u))}for(var f,p="",m=0,g=0;g<h.length;g++){for(var v,y=Um((d=h[g])[0]),b=Hm(Gm(Nm(d.index),a.length),0),_=[],w=1;w<d.length;w++)Ym(_,void 0===(f=d[w])?f:String(f));var k=d.groups;if(c){var x=Zm([y],_,b,a);void 0!==k&&Ym(x,k),v=Um(Rm(i,void 0,x))}else v=qm(y,a,b,_,k,i);b>=m&&(p+=Xm(a,m,b)+v,m=b+y.length)}return p+Xm(a,m)}]}),!!Dm((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!$m||Jm);var Qm,eg,tg,rg={exports:{}},ng=Sa,ig=o,og=r,ag=j,sg=F,cg=Fe,ug=Uc,lg=fe,dg=Zt,hg=$r,fg=Aa,pg=H,mg=Yi,gg=To,vg=tt,yg=Ge,bg=Rr.enforce,_g=Rr.get,wg=og.Int8Array,kg=wg&&wg.prototype,xg=og.Uint8ClampedArray,Sg=xg&&xg.prototype,Eg=wg&&mg(wg),Tg=kg&&mg(kg),Ag=Object.prototype,Rg=og.TypeError,Cg=vg("toStringTag"),Ig=yg("TYPED_ARRAY_TAG"),Og="TypedArrayConstructor",Dg=ng&&!!gg&&"Opera"!==ug(og.opera),Bg=!1,Lg={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Pg={BigInt64Array:8,BigUint64Array:8},Ng=function(e){var t=mg(e);if(sg(t)){var r=_g(t);return r&&cg(r,Og)?r[Og]:Ng(t)}},zg=function(e){if(!sg(e))return!1;var t=ug(e);return cg(Lg,t)||cg(Pg,t)};for(Qm in Lg)(tg=(eg=og[Qm])&&eg.prototype)?bg(tg)[Og]=eg:Dg=!1;for(Qm in Pg)(tg=(eg=og[Qm])&&eg.prototype)&&(bg(tg)[Og]=eg);if((!Dg||!ag(Eg)||Eg===Function.prototype)&&(Eg=function(){throw new Rg("Incorrect invocation")},Dg))for(Qm in Lg)og[Qm]&&gg(og[Qm],Eg);if((!Dg||!Tg||Tg===Ag)&&(Tg=Eg.prototype,Dg))for(Qm in Lg)og[Qm]&&gg(og[Qm].prototype,Tg);if(Dg&&mg(Sg)!==Tg&&gg(Sg,Tg),ig&&!cg(Tg,Cg))for(Qm in Bg=!0,fg(Tg,Cg,{configurable:!0,get:function(){return sg(this)?this[Ig]:void 0}}),Lg)og[Qm]&&dg(og[Qm],Ig,Qm);var Ug={NATIVE_ARRAY_BUFFER_VIEWS:Dg,TYPED_ARRAY_TAG:Bg&&Ig,aTypedArray:function(e){if(zg(e))return e;throw new Rg("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ag(e)&&(!gg||pg(Eg,e)))return e;throw new Rg(lg(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(ig){if(r)for(var i in Lg){var o=og[i];if(o&&cg(o.prototype,e))try{delete o.prototype[e]}catch(tT){try{o.prototype[e]=t}catch(a){}}}Tg[e]&&!r||hg(Tg,e,r?t:Dg&&kg[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(ig){if(gg){if(r)for(n in Lg)if((i=og[n])&&cg(i,e))try{delete i[e]}catch(tT){}if(Eg[e]&&!r)return;try{return hg(Eg,e,r?t:Dg&&Eg[e]||t)}catch(tT){}}for(n in Lg)!(i=og[n])||i[e]&&!r||hg(i,e,t)}},getTypedArrayConstructor:Ng,isView:function(e){if(!sg(e))return!1;var t=ug(e);return"DataView"===t||cg(Lg,t)||cg(Pg,t)},isTypedArray:zg,TypedArray:Eg,TypedArrayPrototype:Tg},jg=r,Mg=i,Fg=Th,qg=Ug.NATIVE_ARRAY_BUFFER_VIEWS,Wg=jg.ArrayBuffer,Vg=jg.Int8Array,Hg=!qg||!Mg((function(){Vg(1)}))||!Mg((function(){new Vg(-1)}))||!Fg((function(e){new Vg,new Vg(null),new Vg(1.5),new Vg(e)}),!0)||Mg((function(){return 1!==new Vg(new Wg(2),1,void 0).length})),Gg=F,Zg=Math.floor,Yg=Number.isInteger||function(e){return!Gg(e)&&isFinite(e)&&Zg(e)===e},Kg=rn,Xg=RangeError,$g=function(e){var t=Kg(e);if(t<0)throw new Xg("The argument can't be less than 0");return t},Jg=RangeError,Qg=function(e,t){var r=$g(e);if(r%t)throw new Jg("Wrong offset");return r},ev=Math.round,tv=Uc,rv=ut,nv=TypeError,iv=function(e){var t=rv(e,"number");if("number"==typeof t)throw new nv("Can't convert number to bigint");return BigInt(t)},ov=bu,av=u,sv=ou,cv=Ue,uv=hn,lv=nh,dv=Xd,hv=Vd,fv=function(e){var t=tv(e);return"BigInt64Array"===t||"BigUint64Array"===t},pv=Ug.aTypedArrayConstructor,mv=iv,gv=function(e){var t,r,n,i,o,a,s,c,u=sv(this),l=cv(e),d=arguments.length,h=d>1?arguments[1]:void 0,f=void 0!==h,p=dv(l);if(p&&!hv(p))for(c=(s=lv(l,p)).next,l=[];!(a=av(c,s)).done;)l.push(a.value);for(f&&d>2&&(h=ov(h,arguments[2])),r=uv(l),n=new(pv(u))(r),i=fv(n),t=0;r>t;t++)o=f?h(l[t],t):l[t],n[t]=i?mv(o):+o;return n},vv=E,yv=Array.isArray||function(e){return"Array"===vv(e)},bv=tu,_v=F,wv=tt("species"),kv=Array,xv=function(e){var t;return yv(e)&&(t=e.constructor,(bv(t)&&(t===kv||yv(t.prototype))||_v(t)&&null===(t=t[wv]))&&(t=void 0)),void 0===t?kv:t},Sv=bu,Ev=I,Tv=Ue,Av=hn,Rv=function(e,t){return new(xv(e))(0===t?0:t)},Cv=w([].push),Iv=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(c,u,l,d){for(var h,f,p=Tv(c),m=Ev(p),g=Av(m),v=Sv(u,l),y=0,b=d||Rv,_=t?b(c,g):r||a?b(c,0):void 0;g>y;y++)if((s||y in m)&&(f=v(h=m[y],y,p),e))if(t)_[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:Cv(_,h)}else switch(e){case 4:return!1;case 7:Cv(_,h)}return o?-1:n||i?i:_}},Ov={forEach:Iv(0),map:Iv(1),filter:Iv(2),some:Iv(3),every:Iv(4),find:Iv(5),findIndex:Iv(6),filterReject:Iv(7)},Dv=hn,Bv=ti,Lv=r,Pv=u,Nv=o,zv=Hg,Uv=Ug,jv=sc,Mv=Da,Fv=g,qv=Zt,Wv=Yg,Vv=ln,Hv=Na,Gv=Qg,Zv=function(e){var t=ev(e);return t<0?0:t>255?255:255&t},Yv=ht,Kv=Fe,Xv=Uc,$v=F,Jv=de,Qv=Ai,ey=H,ty=To,ry=Jr.f,ny=gv,iy=Ov.forEach,oy=hc,ay=Aa,sy=Rt,cy=n,uy=function(e,t,r){for(var n=0,i=arguments.length>2?r:Dv(t),o=new e(i);i>n;)o[n]=t[n++];return o},ly=os,dy=Rr.get,hy=Rr.set,fy=Rr.enforce,py=sy.f,my=cy.f,gy=Lv.RangeError,vy=jv.ArrayBuffer,yy=vy.prototype,by=jv.DataView,_y=Uv.NATIVE_ARRAY_BUFFER_VIEWS,wy=Uv.TYPED_ARRAY_TAG,ky=Uv.TypedArray,xy=Uv.TypedArrayPrototype,Sy=Uv.isTypedArray,Ey="BYTES_PER_ELEMENT",Ty="Wrong length",Ay=function(e,t){ay(e,t,{configurable:!0,get:function(){return dy(this)[t]}})},Ry=function(e){var t;return ey(yy,e)||"ArrayBuffer"===(t=Xv(e))||"SharedArrayBuffer"===t},Cy=function(e,t){return Sy(e)&&!Jv(t)&&t in e&&Wv(+t)&&t>=0},Iy=function(e,t){return t=Yv(t),Cy(e,t)?Fv(2,e[t]):my(e,t)},Oy=function(e,t,r){return t=Yv(t),!(Cy(e,t)&&$v(r)&&Kv(r,"value"))||Kv(r,"get")||Kv(r,"set")||r.configurable||Kv(r,"writable")&&!r.writable||Kv(r,"enumerable")&&!r.enumerable?py(e,t,r):(e[t]=r.value,e)};Nv?(_y||(cy.f=Iy,sy.f=Oy,Ay(xy,"buffer"),Ay(xy,"byteOffset"),Ay(xy,"byteLength"),Ay(xy,"length")),Bv({target:"Object",stat:!0,forced:!_y},{getOwnPropertyDescriptor:Iy,defineProperty:Oy}),rg.exports=function(e,t,r){var n=e.match(/\d+/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=Lv[i],c=s,u=c&&c.prototype,l={},d=function(e,t){py(e,t,{get:function(){return function(e,t){var r=dy(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=dy(e);o.view[a](t*n+o.byteOffset,r?Zv(i):i,!0)}(this,t,e)},enumerable:!0})};_y?zv&&(c=t((function(e,t,r,i){return Mv(e,u),ly($v(t)?Ry(t)?void 0!==i?new s(t,Gv(r,n),i):void 0!==r?new s(t,Gv(r,n)):new s(t):Sy(t)?uy(c,t):Pv(ny,c,t):new s(Hv(t)),e,c)})),ty&&ty(c,ky),iy(ry(s),(function(e){e in c||qv(c,e,s[e])})),c.prototype=u):(c=t((function(e,t,r,i){Mv(e,u);var o,a,s,l=0,h=0;if($v(t)){if(!Ry(t))return Sy(t)?uy(c,t):Pv(ny,c,t);o=t,h=Gv(r,n);var f=t.byteLength;if(void 0===i){if(f%n)throw new gy(Ty);if((a=f-h)<0)throw new gy(Ty)}else if((a=Vv(i)*n)+h>f)throw new gy(Ty);s=a/n}else s=Hv(t),o=new vy(a=s*n);for(hy(e,{buffer:o,byteOffset:h,byteLength:a,length:s,view:new by(o)});l<s;)d(e,l++)})),ty&&ty(c,ky),u=c.prototype=Qv(xy)),u.constructor!==c&&qv(u,"constructor",c),fy(u).TypedArrayConstructor=c,wy&&qv(u,wy,i);var h=c!==s;l[i]=c,Bv({global:!0,constructor:!0,forced:h,sham:!_y},l),Ey in c||qv(c,Ey,n),Ey in u||qv(u,Ey,n),oy(i)}):rg.exports=function(){};var Dy=rg.exports;Dy("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}})),Dy("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}})),Dy("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}})),Dy("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var By=es,Ly=iv,Py=Uc,Ny=u,zy=i,Uy=Ug.aTypedArray,jy=Ug.exportTypedArrayMethod,My=w("".slice);jy("fill",(function(e){var t=arguments.length;Uy(this);var r="Big"===My(Py(this),0,3)?Ly(e):+e;return Ny(By,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),zy((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))),(0,Ug.exportTypedArrayStaticMethod)("from",gv,Hg);var Fy=r,qy=u,Wy=Ug,Vy=hn,Hy=Qg,Gy=Ue,Zy=i,Yy=Fy.RangeError,Ky=Fy.Int8Array,Xy=Ky&&Ky.prototype,$y=Xy&&Xy.set,Jy=Wy.aTypedArray,Qy=Wy.exportTypedArrayMethod,eb=!Zy((function(){var e=new Uint8ClampedArray(2);return qy($y,e,{length:1,0:3},1),3!==e[1]})),tb=eb&&Wy.NATIVE_ARRAY_BUFFER_VIEWS&&Zy((function(){var e=new Ky(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Qy("set",(function(e){Jy(this);var t=Hy(arguments.length>1?arguments[1]:void 0,1),r=Gy(e);if(eb)return qy($y,this,r,t);var n=this.length,i=Vy(r),o=0;if(i+t>n)throw new Yy("Wrong length");for(;o<i;)this[t+o]=r[o++]}),!eb||tb);var rb=ts,nb=Math.floor,ib=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=nb(r/2),s=ib(rb(e,0,a),t),c=ib(rb(e,a),t),u=s.length,l=c.length,d=0,h=0;d<u||h<l;)e[d+h]=d<u&&h<l?t(s[d],c[h])<=0?s[d++]:c[h++]:d<u?s[d++]:c[h++];return e},ob=ib,ab=Y.match(/firefox\/(\d+)/i),sb=!!ab&&+ab[1],cb=/MSIE|Trident/.test(Y),ub=Y.match(/AppleWebKit\/(\d+)\./),lb=!!ub&&+ub[1],db=yc,hb=i,fb=ve,pb=ob,mb=sb,gb=cb,vb=te,yb=lb,bb=Ug.aTypedArray,_b=Ug.exportTypedArrayMethod,wb=r.Uint16Array,kb=wb&&db(wb.prototype.sort),xb=!(!kb||hb((function(){kb(new wb(2),null)}))&&hb((function(){kb(new wb(2),{})}))),Sb=!!kb&&!hb((function(){if(vb)return vb<74;if(mb)return mb<67;if(gb)return!0;if(yb)return yb<602;var e,t,r=new wb(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(kb(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));_b("sort",(function(e){return void 0!==e&&fb(e),Sb?kb(this,e):pb(bb(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Sb||xb);var Eb={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},Tb=gt("span").classList,Ab=Tb&&Tb.constructor&&Tb.constructor.prototype,Rb=Ab===Object.prototype?void 0:Ab,Cb=Ov.forEach,Ib=ga("forEach")?[].forEach:function(e){return Cb(this,e,arguments.length>1?arguments[1]:void 0)},Ob=r,Db=Eb,Bb=Rb,Lb=Ib,Pb=Zt,Nb=function(e){if(e&&e.forEach!==Lb)try{Pb(e,"forEach",Lb)}catch(tT){e.forEach=Lb}};for(var zb in Db)Db[zb]&&Nb(Ob[zb]&&Ob[zb].prototype);Nb(Bb);var Ub=r,jb=Eb,Mb=Rb,Fb=oa,qb=Zt,Wb=so,Vb=tt("iterator"),Hb=Fb.values,Gb=function(e,t){if(e){if(e[Vb]!==Hb)try{qb(e,Vb,Hb)}catch(tT){e[Vb]=Hb}if(Wb(e,t,!0),jb[t])for(var r in Fb)if(e[r]!==Fb[r])try{qb(e,r,Fb[r])}catch(tT){e[r]=Fb[r]}}};for(var Zb in jb)Gb(Ub[Zb]&&Ub[Zb].prototype,Zb);Gb(Mb,"DOMTokenList");var Yb=Ku.clear;ti({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==Yb},{clearImmediate:Yb});var Kb=r,Xb=mu,$b=j,Jb=wa,Qb=Y,e_=ts,t_=wu,r_=Kb.Function,n_=/MSIE .\./.test(Qb)||"BUN"===Jb&&function(){var e=Kb.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),i_=ti,o_=r,a_=Ku.set,s_=function(e,t){var r=t?2:1;return n_?function(n,i){var o=t_(arguments.length,1)>r,a=$b(n)?n:r_(n),s=o?e_(arguments,r):[],c=o?function(){Xb(a,this,s)}:a;return t?e(c,i):e(c)}:e},c_=o_.setImmediate?s_(a_,!1):a_;i_({global:!0,bind:!0,enumerable:!0,forced:o_.setImmediate!==c_},{setImmediate:c_});var u_=hm.charAt,l_=vf,d_=Rr,h_=Go,f_=Zo,p_="String Iterator",m_=d_.set,g_=d_.getterFor(p_);h_(String,"String",(function(e){m_(this,{type:p_,string:l_(e),index:0})}),(function(){var e,t=g_(this),r=t.string,n=t.index;return n>=r.length?f_(void 0,!0):(e=u_(r,n),t.index+=e.length,f_(e,!1))}));var v_=i,y_=o,b_=tt("iterator"),__=!v_((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!y_||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[b_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),w_=o,k_=w,x_=u,S_=i,E_=oi,T_=An,A_=l,R_=Ue,C_=I,I_=Object.assign,O_=Object.defineProperty,D_=k_([].concat),B_=!I_||S_((function(){if(w_&&1!==I_({b:1},I_(O_({},"a",{enumerable:!0,get:function(){O_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==I_({},e)[r]||E_(I_({},t)).join("")!==n}))?function(e,t){for(var r=R_(e),n=arguments.length,i=1,o=T_.f,a=A_.f;n>i;)for(var s,c=C_(arguments[i++]),u=o?D_(E_(c),o(c)):E_(c),l=u.length,d=0;l>d;)s=u[d++],w_&&!x_(a,c,s)||(r[s]=c[s]);return r}:I_,L_=Bt,P_=sh,N_=o,z_=Rt,U_=g,j_=bu,M_=u,F_=Ue,q_=function(e,t,r,n){try{return n?t(L_(r)[0],r[1]):t(r)}catch(tT){P_(e,"throw",tT)}},W_=Vd,V_=tu,H_=hn,G_=function(e,t,r){N_?z_.f(e,t,U_(0,r)):e[t]=r},Z_=nh,Y_=Xd,K_=Array,X_=w,$_=2147483647,J_=/[^\0-\u007E]/,Q_=/[.\u3002\uFF0E\uFF61]/g,ew="Overflow: input needs wider integers to process",tw=RangeError,rw=X_(Q_.exec),nw=Math.floor,iw=String.fromCharCode,ow=X_("".charCodeAt),aw=X_([].join),sw=X_([].push),cw=X_("".replace),uw=X_("".split),lw=X_("".toLowerCase),dw=function(e){return e+22+75*(e<26)},hw=function(e,t,r){var n=0;for(e=r?nw(e/700):e>>1,e+=nw(e/t);e>455;)e=nw(e/35),n+=36;return nw(n+36*e/(e+38))},fw=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=ow(e,r++);if(i>=55296&&i<=56319&&r<n){var o=ow(e,r++);56320==(64512&o)?sw(t,((1023&i)<<10)+(1023&o)+65536):(sw(t,i),r--)}else sw(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&sw(t,iw(n));var c=t.length,u=c;for(c&&sw(t,"-");u<i;){var l=$_;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var d=u+1;if(l-o>nw(($_-a)/d))throw new tw(ew);for(a+=(l-o)*d,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>$_)throw new tw(ew);if(n===o){for(var h=a,f=36;;){var p=f<=s?1:f>=s+26?26:f-s;if(h<p)break;var m=h-p,g=36-p;sw(t,iw(dw(p+m%g))),h=nw(m/g),f+=36}sw(t,iw(dw(h))),s=hw(a,d,u===c),a=0,u++}}a++,o++}return aw(t,"")},pw=ti,mw=w,gw=sn,vw=RangeError,yw=String.fromCharCode,bw=String.fromCodePoint,_w=mw([].join);pw({target:"String",stat:!0,arity:1,forced:!!bw&&1!==bw.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],gw(t,1114111)!==t)throw new vw(t+" is not a valid code point");r[i]=t<65536?yw(t):yw(55296+((t-=65536)>>10),t%1024+56320)}return _w(r,"")}});var ww=ti,kw=r,xw=Qu,Sw=V,Ew=u,Tw=w,Aw=o,Rw=__,Cw=$r,Iw=Aa,Ow=Ca,Dw=so,Bw=mo,Lw=Rr,Pw=Da,Nw=j,zw=Fe,Uw=bu,jw=Uc,Mw=Bt,Fw=F,qw=vf,Ww=Ai,Vw=g,Hw=nh,Gw=Xd,Zw=Zo,Yw=wu,Kw=ob,Xw=tt("iterator"),$w="URLSearchParams",Jw=$w+"Iterator",Qw=Lw.set,ek=Lw.getterFor($w),tk=Lw.getterFor(Jw),rk=xw("fetch"),nk=xw("Request"),ik=xw("Headers"),ok=nk&&nk.prototype,ak=ik&&ik.prototype,sk=kw.TypeError,ck=kw.encodeURIComponent,uk=String.fromCharCode,lk=Sw("String","fromCodePoint"),dk=parseInt,hk=Tw("".charAt),fk=Tw([].join),pk=Tw([].push),mk=Tw("".replace),gk=Tw([].shift),vk=Tw([].splice),yk=Tw("".split),bk=Tw("".slice),_k=Tw(/./.exec),wk=/\+/g,kk=/^[0-9a-f]+$/i,xk=function(e,t){var r=bk(e,t,t+2);return _k(kk,r)?dk(r,16):NaN},Sk=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},Ek=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Tk=function(e){for(var t=(e=mk(e,wk," ")).length,r="",n=0;n<t;){var i=hk(e,n);if("%"===i){if("%"===hk(e,n+1)||n+3>t){r+="%",n++;continue}var o=xk(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=Sk(o);if(0===a)i=uk(o);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[o],c=1;c<a&&!(++n+3>t||"%"!==hk(e,n));){var u=xk(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;pk(s,u),n+=2,c++}if(s.length!==a){r+="�";continue}var l=Ek(s);null===l?r+="�":i=lk(l)}}r+=i,n++}return r},Ak=/[!'()~]|%20/g,Rk={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ck=function(e){return Rk[e]},Ik=function(e){return mk(ck(e),Ak,Ck)},Ok=Bw((function(e,t){Qw(this,{type:Jw,target:ek(e).entries,index:0,kind:t})}),$w,(function(){var e=tk(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Zw(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Zw(n.key,!1);case"values":return Zw(n.value,!1)}return Zw([n.key,n.value],!1)}),!0),Dk=function(e){this.entries=[],this.url=null,void 0!==e&&(Fw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hk(e,0)?bk(e,1):e:qw(e)))};Dk.prototype={type:$w,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=this.entries,u=Gw(e);if(u)for(r=(t=Hw(e,u)).next;!(n=Ew(r,t)).done;){if(o=(i=Hw(Mw(n.value))).next,(a=Ew(o,i)).done||(s=Ew(o,i)).done||!Ew(o,i).done)throw new sk("Expected sequence with length 2");pk(c,{key:qw(a.value),value:qw(s.value)})}else for(var l in e)zw(e,l)&&pk(c,{key:l,value:qw(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=yk(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=yk(t,"="),pk(n,{key:Tk(gk(r)),value:Tk(fk(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],pk(r,Ik(e.key)+"="+Ik(e.value));return fk(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Bk=function(){Pw(this,Lk);var e=Qw(this,new Dk(arguments.length>0?arguments[0]:void 0));Aw||(this.size=e.entries.length)},Lk=Bk.prototype;if(Ow(Lk,{append:function(e,t){var r=ek(this);Yw(arguments.length,2),pk(r.entries,{key:qw(e),value:qw(t)}),Aw||this.length++,r.updateURL()},delete:function(e){for(var t=ek(this),r=Yw(arguments.length,1),n=t.entries,i=qw(e),o=r<2?void 0:arguments[1],a=void 0===o?o:qw(o),s=0;s<n.length;){var c=n[s];if(c.key!==i||void 0!==a&&c.value!==a)s++;else if(vk(n,s,1),void 0!==a)break}Aw||(this.size=n.length),t.updateURL()},get:function(e){var t=ek(this).entries;Yw(arguments.length,1);for(var r=qw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=ek(this).entries;Yw(arguments.length,1);for(var r=qw(e),n=[],i=0;i<t.length;i++)t[i].key===r&&pk(n,t[i].value);return n},has:function(e){for(var t=ek(this).entries,r=Yw(arguments.length,1),n=qw(e),i=r<2?void 0:arguments[1],o=void 0===i?i:qw(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=ek(this);Yw(arguments.length,1);for(var n,i=r.entries,o=!1,a=qw(e),s=qw(t),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?vk(i,c--,1):(o=!0,n.value=s));o||pk(i,{key:a,value:s}),Aw||(this.size=i.length),r.updateURL()},sort:function(){var e=ek(this);Kw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=ek(this).entries,n=Uw(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Ok(this,"keys")},values:function(){return new Ok(this,"values")},entries:function(){return new Ok(this,"entries")}},{enumerable:!0}),Cw(Lk,Xw,Lk.entries,{name:"entries"}),Cw(Lk,"toString",(function(){return ek(this).serialize()}),{enumerable:!0}),Aw&&Iw(Lk,"size",{get:function(){return ek(this).entries.length},configurable:!0,enumerable:!0}),Dw(Bk,$w),ww({global:!0,constructor:!0,forced:!Rw},{URLSearchParams:Bk}),!Rw&&Nw(ik)){var Pk=Tw(ak.has),Nk=Tw(ak.set),zk=function(e){if(Fw(e)){var t,r=e.body;if(jw(r)===$w)return t=e.headers?new ik(e.headers):new ik,Pk(t,"content-type")||Nk(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ww(e,{body:Vw(0,qw(r)),headers:Vw(0,t)})}return e};if(Nw(rk)&&ww({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return rk(e,arguments.length>1?zk(arguments[1]):{})}}),Nw(nk)){var Uk=function(e){return Pw(this,ok),new nk(e,arguments.length>1?zk(arguments[1]):{})};ok.constructor=Uk,Uk.prototype=ok,ww({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Uk})}}var jk,Mk=ti,Fk=o,qk=__,Wk=r,Vk=bu,Hk=w,Gk=$r,Zk=Aa,Yk=Da,Kk=Fe,Xk=B_,$k=function(e){var t=F_(e),r=V_(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=j_(i,n>2?arguments[2]:void 0));var a,s,c,u,l,d,h=Y_(t),f=0;if(!h||this===K_&&W_(h))for(a=H_(t),s=r?new this(a):K_(a);a>f;f++)d=o?i(t[f],f):t[f],G_(s,f,d);else for(s=r?new this:[],l=(u=Z_(t,h)).next;!(c=M_(l,u)).done;f++)d=o?q_(u,i,[c.value,f],!0):c.value,G_(s,f,d);return s.length=f,s},Jk=ts,Qk=hm.codeAt,ex=function(e){var t,r,n=[],i=uw(cw(lw(e),Q_,"."),".");for(t=0;t<i.length;t++)r=i[t],sw(n,rw(J_,r)?"xn--"+fw(r):r);return aw(n,".")},tx=vf,rx=so,nx=wu,ix={URLSearchParams:Bk,getState:ek},ox=Rr,ax=ox.set,sx=ox.getterFor("URL"),cx=ix.URLSearchParams,ux=ix.getState,lx=Wk.URL,dx=Wk.TypeError,hx=Wk.parseInt,fx=Math.floor,px=Math.pow,mx=Hk("".charAt),gx=Hk(/./.exec),vx=Hk([].join),yx=Hk(1..toString),bx=Hk([].pop),_x=Hk([].push),wx=Hk("".replace),kx=Hk([].shift),xx=Hk("".split),Sx=Hk("".slice),Ex=Hk("".toLowerCase),Tx=Hk([].unshift),Ax="Invalid scheme",Rx="Invalid host",Cx="Invalid port",Ix=/[a-z]/i,Ox=/[\d+-.a-z]/i,Dx=/\d/,Bx=/^0x/i,Lx=/^[0-7]+$/,Px=/^\d+$/,Nx=/^[\da-f]+$/i,zx=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ux=/[\0\t\n\r #/:<>?@[\\\]^|]/,jx=/^[\u0000-\u0020]+/,Mx=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Fx=/[\t\n\r]/g,qx=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)Tx(t,e%256),e=fx(e/256);return vx(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=yx(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Wx={},Vx=Xk({},Wx,{" ":1,'"':1,"<":1,">":1,"`":1}),Hx=Xk({},Vx,{"#":1,"?":1,"{":1,"}":1}),Gx=Xk({},Hx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Zx=function(e,t){var r=Qk(e,0);return r>32&&r<127&&!Kk(t,e)?e:encodeURIComponent(e)},Yx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Kx=function(e,t){var r;return 2===e.length&&gx(Ix,mx(e,0))&&(":"===(r=mx(e,1))||!t&&"|"===r)},Xx=function(e){var t;return e.length>1&&Kx(Sx(e,0,2))&&(2===e.length||"/"===(t=mx(e,2))||"\\"===t||"?"===t||"#"===t)},$x=function(e){return"."===e||"%2e"===Ex(e)},Jx={},Qx={},eS={},tS={},rS={},nS={},iS={},oS={},aS={},sS={},cS={},uS={},lS={},dS={},hS={},fS={},pS={},mS={},gS={},vS={},yS={},bS=function(e,t,r){var n,i,o,a=tx(e);if(t){if(i=this.parse(a))throw new dx(i);this.searchParams=null}else{if(void 0!==r&&(n=new bS(r,!0)),i=this.parse(a,null,n))throw new dx(i);(o=ux(new cx)).bindURL(this),this.searchParams=o}};bS.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,c=this,u=t||Jx,l=0,d="",h=!1,f=!1,p=!1;for(e=tx(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=wx(e,jx,""),e=wx(e,Mx,"$1")),e=wx(e,Fx,""),n=$k(e);l<=n.length;){switch(i=n[l],u){case Jx:if(!i||!gx(Ix,i)){if(t)return Ax;u=eS;continue}d+=Ex(i),u=Qx;break;case Qx:if(i&&(gx(Ox,i)||"+"===i||"-"===i||"."===i))d+=Ex(i);else{if(":"!==i){if(t)return Ax;d="",u=eS,l=0;continue}if(t&&(c.isSpecial()!==Kk(Yx,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&Yx[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?u=dS:c.isSpecial()&&r&&r.scheme===c.scheme?u=tS:c.isSpecial()?u=oS:"/"===n[l+1]?(u=rS,l++):(c.cannotBeABaseURL=!0,_x(c.path,""),u=gS)}break;case eS:if(!r||r.cannotBeABaseURL&&"#"!==i)return Ax;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=Jk(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=yS;break}u="file"===r.scheme?dS:nS;continue;case tS:if("/"!==i||"/"!==n[l+1]){u=nS;continue}u=aS,l++;break;case rS:if("/"===i){u=sS;break}u=mS;continue;case nS:if(c.scheme=r.scheme,i===jk)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Jk(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())u=iS;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Jk(r.path),c.query="",u=vS;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Jk(r.path),c.path.length--,u=mS;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Jk(r.path),c.query=r.query,c.fragment="",u=yS}break;case iS:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=mS;continue}u=sS}else u=aS;break;case oS:if(u=aS,"/"!==i||"/"!==mx(d,l+1))continue;l++;break;case aS:if("/"!==i&&"\\"!==i){u=sS;continue}break;case sS:if("@"===i){h&&(d="%40"+d),h=!0,o=$k(d);for(var m=0;m<o.length;m++){var g=o[m];if(":"!==g||p){var v=Zx(g,Gx);p?c.password+=v:c.username+=v}else p=!0}d=""}else if(i===jk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(h&&""===d)return"Invalid authority";l-=$k(d).length+1,d="",u=cS}else d+=i;break;case cS:case uS:if(t&&"file"===c.scheme){u=fS;continue}if(":"!==i||f){if(i===jk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(c.isSpecial()&&""===d)return Rx;if(t&&""===d&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(d))return a;if(d="",u=pS,t)return;continue}"["===i?f=!0:"]"===i&&(f=!1),d+=i}else{if(""===d)return Rx;if(a=c.parseHost(d))return a;if(d="",u=lS,t===uS)return}break;case lS:if(!gx(Dx,i)){if(i===jk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()||t){if(""!==d){var y=hx(d,10);if(y>65535)return Cx;c.port=c.isSpecial()&&y===Yx[c.scheme]?null:y,d=""}if(t)return;u=pS;continue}return Cx}d+=i;break;case dS:if(c.scheme="file","/"===i||"\\"===i)u=hS;else{if(!r||"file"!==r.scheme){u=mS;continue}switch(i){case jk:c.host=r.host,c.path=Jk(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=Jk(r.path),c.query="",u=vS;break;case"#":c.host=r.host,c.path=Jk(r.path),c.query=r.query,c.fragment="",u=yS;break;default:Xx(vx(Jk(n,l),""))||(c.host=r.host,c.path=Jk(r.path),c.shortenPath()),u=mS;continue}}break;case hS:if("/"===i||"\\"===i){u=fS;break}r&&"file"===r.scheme&&!Xx(vx(Jk(n,l),""))&&(Kx(r.path[0],!0)?_x(c.path,r.path[0]):c.host=r.host),u=mS;continue;case fS:if(i===jk||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&Kx(d))u=mS;else if(""===d){if(c.host="",t)return;u=pS}else{if(a=c.parseHost(d))return a;if("localhost"===c.host&&(c.host=""),t)return;d="",u=pS}continue}d+=i;break;case pS:if(c.isSpecial()){if(u=mS,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==jk&&(u=mS,"/"!==i))continue}else c.fragment="",u=yS;else c.query="",u=vS;break;case mS:if(i===jk||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=Ex(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||_x(c.path,"")):$x(d)?"/"===i||"\\"===i&&c.isSpecial()||_x(c.path,""):("file"===c.scheme&&!c.path.length&&Kx(d)&&(c.host&&(c.host=""),d=mx(d,0)+":"),_x(c.path,d)),d="","file"===c.scheme&&(i===jk||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)kx(c.path);"?"===i?(c.query="",u=vS):"#"===i&&(c.fragment="",u=yS)}else d+=Zx(i,Hx);break;case gS:"?"===i?(c.query="",u=vS):"#"===i?(c.fragment="",u=yS):i!==jk&&(c.path[0]+=Zx(i,Wx));break;case vS:t||"#"!==i?i!==jk&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":Zx(i,Wx)):(c.fragment="",u=yS);break;case yS:i!==jk&&(c.fragment+=Zx(i,Vx))}l++}},parseHost:function(e){var t,r,n;if("["===mx(e,0)){if("]"!==mx(e,e.length-1))return Rx;if(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,h=function(){return mx(e,d)};if(":"===h()){if(":"!==mx(e,1))return;d+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&gx(Nx,h());)t=16*t+hx(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!gx(Dx,h()))return;for(;gx(Dx,h());){if(o=hx(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(Sx(e,1,-1)),!t)return Rx;this.host=t}else if(this.isSpecial()){if(e=ex(e),gx(zx,e))return Rx;if(t=function(e){var t,r,n,i,o,a,s,c=xx(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=c[n]))return e;if(o=10,i.length>1&&"0"===mx(i,0)&&(o=gx(Bx,i)?16:8,i=Sx(i,8===o?1:2)),""===i)a=0;else{if(!gx(10===o?Px:8===o?Lx:Nx,i))return e;a=hx(i,o)}_x(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=px(256,5-t))return null}else if(a>255)return null;for(s=bx(r),n=0;n<r.length;n++)s+=r[n]*px(256,3-n);return s}(e),null===t)return Rx;this.host=t}else{if(gx(Ux,e))return Rx;for(t="",r=$k(e),n=0;n<r.length;n++)t+=Zx(r[n],Wx);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Kk(Yx,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Kx(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=qx(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+vx(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new dx(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new _S(e.path[0]).origin}catch(tT){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+qx(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(tx(e)+":",Jx)},getUsername:function(){return this.username},setUsername:function(e){var t=$k(tx(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Zx(t[r],Gx)}},getPassword:function(){return this.password},setPassword:function(e){var t=$k(tx(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Zx(t[r],Gx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?qx(e):qx(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,cS)},getHostname:function(){var e=this.host;return null===e?"":qx(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,uS)},getPort:function(){var e=this.port;return null===e?"":tx(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=tx(e))?this.port=null:this.parse(e,lS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+vx(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,pS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=tx(e))?this.query=null:("?"===mx(e,0)&&(e=Sx(e,1)),this.query="",this.parse(e,vS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=tx(e))?("#"===mx(e,0)&&(e=Sx(e,1)),this.fragment="",this.parse(e,yS)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var _S=function(e){var t=Yk(this,wS),r=nx(arguments.length,1)>1?arguments[1]:void 0,n=ax(t,new bS(e,!1,r));Fk||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},wS=_S.prototype,kS=function(e,t){return{get:function(){return sx(this)[e]()},set:t&&function(e){return sx(this)[t](e)},configurable:!0,enumerable:!0}};if(Fk&&(Zk(wS,"href",kS("serialize","setHref")),Zk(wS,"origin",kS("getOrigin")),Zk(wS,"protocol",kS("getProtocol","setProtocol")),Zk(wS,"username",kS("getUsername","setUsername")),Zk(wS,"password",kS("getPassword","setPassword")),Zk(wS,"host",kS("getHost","setHost")),Zk(wS,"hostname",kS("getHostname","setHostname")),Zk(wS,"port",kS("getPort","setPort")),Zk(wS,"pathname",kS("getPathname","setPathname")),Zk(wS,"search",kS("getSearch","setSearch")),Zk(wS,"searchParams",kS("getSearchParams")),Zk(wS,"hash",kS("getHash","setHash"))),Gk(wS,"toJSON",(function(){return sx(this).serialize()}),{enumerable:!0}),Gk(wS,"toString",(function(){return sx(this).serialize()}),{enumerable:!0}),lx){var xS=lx.createObjectURL,SS=lx.revokeObjectURL;xS&&Gk(_S,"createObjectURL",Vk(xS,lx)),SS&&Gk(_S,"revokeObjectURL",Vk(SS,lx))}rx(_S,"URL"),Mk({global:!0,constructor:!0,forced:!qk,sham:!Fk},{URL:_S});var ES=u;ti({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return ES(URL.prototype.toString,this)}});var TS,AS=Object.create,RS=Object.defineProperty,CS=Object.getOwnPropertyDescriptor,IS=Object.getOwnPropertyNames,OS=Object.getPrototypeOf,DS=Object.prototype.hasOwnProperty,BS=(TS=function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(TS,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):TS),LS=(e,t,r,n)=>{for(var i,o=n>1?void 0:n?CS(t,r):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(n?i(t,r,o):i(o))||o);return n&&o&&RS(t,r,o),o},PS=(e,t,r)=>((e,t,r)=>t in e?RS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),NS=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))(((e,t)=>{!function(r){"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=r()}((function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var c="function"==typeof BS&&BS;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof BS&&BS,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,a,s,c,u,l=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|r>>4,c=1<f?(15&r)<<2|i>>6:64,u=2<f?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},r.decode=function(e){var t,r,n,a,s,c,u=0,l=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),h[l++]=t,64!==s&&(h[l++]=r),64!==c&&(h[l++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=i,o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^n[255&(e^t[a])];return~e}(0|t,e,e.length):function(e,t,r){var n=i,o=0+r;e^=-1;for(var a=0;a<o;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return~e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=n?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new c("Deflate",e)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,a,l){var d,h,f=e.file,p=e.compression,m=l!==s.utf8encode,g=o.transformTo("string",l(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",l(y)),_=o.transformTo("string",s.utf8encode(y)),w=v.length!==f.name.length,k=_.length!==y.length,x="",S="",E="",T=f.dir,A=f.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!w&&!k||(C|=2048);var I,O,D,B=0,L=0;T&&(B|=16),"UNIX"===a?(L=798,B|=(I=f.unixPermissions,O=T,D=I,I||(D=O?16893:33204),(65535&D)<<16)):(L=20,B|=function(e){return 63&(e||0)}(f.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,h=A.getUTCFullYear()-1980,h<<=4,h|=A.getUTCMonth()+1,h<<=5,h|=A.getUTCDate(),w&&(S=n(1,1)+n(c(g),4)+v,x+="up"+n(S.length,2)+S),k&&(E=n(1,1)+n(c(b),4)+_,x+="uc"+n(E.length,2)+E);var P="";return P+="\n\0",P+=n(C,2),P+=p.magic,P+=n(d,2),P+=n(h,2),P+=n(R.crc32,4),P+=n(R.compressedSize,4),P+=n(R.uncompressedSize,4),P+=n(g.length,2),P+=n(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+P+g+x,dirRecord:u.CENTRAL_FILE_HEADER+n(L,2)+P+n(b.length,2)+"\0\0\0\0"+n(B,4)+n(i,4)+g+x+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,o=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),r)this.push({data:(t=e,u.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,i,a,s,c,l,d=this.bytesWritten-e,h=(r=this.dirRecords.length,i=d,a=e,s=this.zipComment,c=this.encodeFileName,l=o.transformTo("string",c(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(i,4)+n(a,4)+n(l.length,2)+l);this.push({data:h,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},c=r.dir,u=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(u(n[o]));return i.Promise.all(r)})).then((function(e){for(var i=e.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=n.resolve(s.fileNameStr);r.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(r.comment=i.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),s=o.extend(r||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v;v=t instanceof u||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new l(e,v,s);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(c){(t=new a("error")).error(c)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),c=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(d){}function l(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(s){this._worker=new o("error"),this._worker.error(s)}}l.prototype={accumulate:function(e){return function(e,t){return new c.Promise((function(r,i){var o=[],s=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,r){o.push(e),t&&t(r)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);r(e)}catch(t){i(t)}o=[]})).resume()}))}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=l},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(jS){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(o){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,c=new Array(2*a);for(t=r=0;t<a;)if((i=e[t++])<128)c[r++]=i;else if(4<(o=s[i]))c[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,a),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(o){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=l;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},h.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var l,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(u?t=i.decode(t):o&&!0!==s&&(t=c(l=t,n.uint8array?new Uint8Array(l.length):new Array(l.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new c("error")).error(s)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)n.prototype[u[d]]=l;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,r=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;n=!0;for(var r=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}t.exports=function(e){1!==u.push(e)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function l(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(i){return o.reject(e,i)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var a=p((function(){t(i,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===s?e:t,this.outcome):this.queue.push(new l(r,e,t)),r},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,c=-1,u=new this(i);++c<r;)l(e[c],c);return u;function l(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(u,a))}),(function(e){n||(n=!0,o.reject(u,e))}))}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t,r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)t=e[a],this.resolve(t).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,l)))throw new Error(a[r]);this._dict_set=!0}}function l(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(e,t){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=u,r.deflate=l,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,c,u,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(h="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===l.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===a.Z_BUF_ERROR&&!0===g&&(r=a.Z_OK,g=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,d=o.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),o=a=0;a<c;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,s=t||e.length,u=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)u[n++]=i;else if(4<(o=a[i]))u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&e[r++],o--;1<o?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,r){t.exports={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}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return~e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=-2,l=258,d=262,h=113;function f(e,t){return e.msg=c[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,h=e.w_mask,f=e.prev,p=e.strstart+l,m=u[o+a-1],g=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===g&&u[r+a-1]===m&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<p);if(n=l-(p-o),o=p-l,a<n){if(e.match_start=t,s<=(a=n))break;m=u[o+a-1],g=u[o+a]}}}while((t=f[t&h])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function w(e){var t,r,n,o,c,u,l,h,f,p,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);o+=m}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,h=e.strstart+e.lookahead,p=void 0,(f=o)<(p=u.avail_in)&&(p=f),r=0===p?0:(u.avail_in-=p,i.arraySet(l,u.input,u.next_in,p,h),1===u.state.wrap?u.adler=a(u.adler,l,p,h):2===u.state.wrap&&(u.adler=s(u.adler,l,p,h)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function k(e,t){for(var r,n;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=_(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var r,n,i;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=_(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function E(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(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 T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):f(e,u)}function A(e){var t,r=T(e);return 0===r&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function R(e,t,r,n,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||9<o||8!==r||n<8||15<n||t<0||9<t||a<0||4<a)return f(e,u);8===n&&(n=9);var c=new E;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=r,A(e)}n=[new S(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new S(4,4,8,4,k),new S(4,5,16,8,k),new S(4,6,32,32,k),new S(4,4,16,16,x),new S(8,16,32,32,x),new S(8,16,128,128,x),new S(8,32,128,256,x),new S(32,128,258,1024,x),new S(32,258,258,4096,x)],r.deflateInit=function(e,t){return R(e,t,8,15,8,0)},r.deflateInit2=R,r.deflateReset=A,r.deflateResetKeep=T,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},r.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||5<t||t<0)return e?f(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return f(e,0===e.avail_out?-5:u);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,b(i,d),0!==i.strstart&&(b(i,e.adler>>>16),b(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return f(e,-5);if(666===i.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var _=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(w(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==_&&4!==_||(i.status=666),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(b(i,e.adler>>>16),b(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==h&&666!==t?f(e,u):(e.state=null,t===h?f(e,-3):0):u},r.deflateSetDictionary=function(e,t){var r,n,o,s,c,l,d,h,f=t.length;if(!e||!e.state||2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,f-r.w_size,r.w_size,0),t=h,f=r.w_size),c=e.avail_in,l=e.next_in,d=e.input,e.avail_in=f,e.next_in=0,e.input=t,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,w(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=d,e.avail_in=c,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=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}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,o,a,s,c,u,l,d,h,f,p,m,g,v,y,b,_,w,k,x,S,E,T;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),b=m[f&v];t:for(;;){if(f>>>=_=b>>>24,p-=_,0==(_=b>>>16&255))T[o++]=65535&b;else{if(!(16&_)){if(!(64&_)){b=m[(65535&b)+(f&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&b,(_&=15)&&(p<_&&(f+=E[n++]<<p,p+=8),w+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),b=g[f&y];r:for(;;){if(f>>>=_=b>>>24,p-=_,!(16&(_=b>>>16&255))){if(!(64&_)){b=g[(65535&b)+(f&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&b,p<(_&=15)&&(f+=E[n++]<<p,(p+=8)<_&&(f+=E[n++]<<p,p+=8)),c<(k+=f&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=_,p-=_,(_=o-a)<k){if(l<(_=k-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=h,(x=0)===d){if(x+=u-_,_<w){for(w-=_;T[o++]=h[x++],--_;);x=o-k,S=T}}else if(d<_){if(x+=u+d-_,(_-=d)<w){for(w-=_;T[o++]=h[x++],--_;);if(x=0,d<w){for(w-=_=d;T[o++]=h[x++],--_;);x=o-k,S=T}}}else if(x+=d-_,_<w){for(w-=_;T[o++]=h[x++],--_;);x=o-k,S=T}for(;2<w;)T[o++]=S[x++],T[o++]=S[x++],T[o++]=S[x++],w-=3;w&&(T[o++]=S[x++],1<w&&(T[o++]=S[x++]))}else{for(x=o-k;T[o++]=T[x++],T[o++]=T[x++],T[o++]=T[x++],2<(w-=3););w&&(T[o++]=T[x++],1<w&&(T[o++]=T[x++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):c}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):c}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):c}function p(e,t){var r,n;return e?(n=new l,(e.state=n).window=null,0!==(r=f(e,t))&&(e.state=null),r):c}var m,g,v=!0;function y(e){if(v){var t;for(m=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),v=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function b(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=h,r.inflateReset2=f,r.inflateResetKeep=d,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,l,d,h,f,p,m,g,v,_,w,k,x,S,E,T,A,R,C,I,O,D,B,L,P=0,N=new n.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,l=e.input,p=e.avail_in,g=r.hold,v=r.bits,_=p,w=m,D=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(2&r.wrap&&35615===g){N[r.check=0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0),v=g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(v-=4,O=8+(15&(g>>>=4)),0===r.wbits)r.wbits=O;else if(O>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<O,e.adler=r.check=1,r.mode=512&g?10:12,v=g=0;break;case 2:for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0,r.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.head&&(r.head.time=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,N[2]=g>>>16&255,N[3]=g>>>24&255,r.check=o(r.check,N,4,0)),v=g=0,r.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=o(r.check,N,2,0)),v=g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(O=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,l,h,k,O)),512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(k=0;O=l[h+k++],r.head&&O&&r.length<65536&&(r.head.name+=String.fromCharCode(O)),O&&k<p;);if(512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,O)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(k=0;O=l[h+k++],r.head&&O&&r.length<65536&&(r.head.comment+=String.fromCharCode(O)),O&&k<p;);if(512&r.flags&&(r.check=o(r.check,l,k,h)),p-=k,h+=k,O)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;v<16;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}v=g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}e.adler=r.check=u(g),v=g=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}switch(r.last=1&g,v-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(y(r),r.mode=20,6!==t)break;g>>>=2,v-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,v-=2;break;case 14:for(g>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,v=g=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break e;n.arraySet(d,l,h,k,f),p-=k,h+=k,m-=k,f+=k,r.length-=k;break}r.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(r.nlen=257+(31&g),g>>>=5,v-=5,r.ndist=1+(31&g),g>>>=5,v-=5,r.ncode=4+(15&g),g>>>=4,v-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;v<3;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.lens[z[r.have++]]=7&g,g>>>=3,v-=3}for(;r.have<19;)r.lens[z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},D=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,D){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(P=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(A<16)g>>>=E,v-=E,r.lens[r.have++]=A;else{if(16===A){for(L=E+2;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g>>>=E,v-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}O=r.lens[r.have-1],k=3+(3&g),g>>>=2,v-=2}else if(17===A){for(L=E+3;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}v-=E,O=0,k=3+(7&(g>>>=E)),g>>>=3,v-=3}else{for(L=E+7;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}v-=E,O=0,k=11+(127&(g>>>=E)),g>>>=7,v-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=O}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},D=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,D){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},D=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,D){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=m){e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,a(e,w),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,l=e.input,p=e.avail_in,g=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;T=(P=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(T&&!(240&T)){for(R=E,C=T,I=A;T=(P=r.lencode[I+((g&(1<<R+C)-1)>>R)])>>>16&255,A=65535&P,!(R+(E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}g>>>=R,v-=R,r.back+=R}if(g>>>=E,v-=E,r.back+=E,r.length=A,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=12;break}if(64&T){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(L=r.extra;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(P=r.distcode[g&(1<<r.distbits)-1])>>>16&255,A=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(!(240&T)){for(R=E,C=T,I=A;T=(P=r.distcode[I+((g&(1<<R+C)-1)>>R)])>>>16&255,A=65535&P,!(R+(E=P>>>24)<=v);){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}g>>>=R,v-=R,r.back+=R}if(g>>>=E,v-=E,r.back+=E,64&T){e.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(L=r.extra;v<L;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(k=w-m,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),S=r.window}else S=d,x=f-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;d[f++]=S[x++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[f++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===p)break e;p--,g|=l[h++]<<v,v+=8}if(w-=m,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,d,w,f-w):i(r.check,d,w,f-w)),w=m,(r.flags?g:u(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}v=g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;v<32;){if(0===p)break e;p--,g+=l[h++]<<v,v+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}v=g=0}r.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;default:return c}return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=v,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&b(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(_-=e.avail_in,w-=e.avail_out,e.total_in+=_,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,d,w,e.next_out-w):i(r.check,d,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==_&&0===w||4===t)&&0===D&&(D=-5),D)},r.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):c},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?c:11===r.mode&&i(1,t,n,0)!==r.check?-3:b(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):c},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],a=[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],s=[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];t.exports=function(e,t,r,c,u,l,d,h){var f,p,m,g,v,y,b,_,w,k=h.bits,x=0,S=0,E=0,T=0,A=0,R=0,C=0,I=0,O=0,D=0,B=null,L=0,P=new n.Buf16(16),N=new n.Buf16(16),z=null,U=0;for(x=0;x<=15;x++)P[x]=0;for(S=0;S<c;S++)P[t[r+S]]++;for(A=k,T=15;1<=T&&0===P[T];T--);if(T<A&&(A=T),0===T)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(E=1;E<T&&0===P[E];E++);for(A<E&&(A=E),x=I=1;x<=15;x++)if(I<<=1,(I-=P[x])<0)return-1;if(0<I&&(0===e||1!==T))return-1;for(N[1]=0,x=1;x<15;x++)N[x+1]=N[x]+P[x];for(S=0;S<c;S++)0!==t[r+S]&&(d[N[t[r+S]]++]=S);if(y=0===e?(B=z=d,19):1===e?(B=i,L-=257,z=o,U-=257,256):(B=a,z=s,-1),x=E,v=l,C=S=D=0,m=-1,g=(O=1<<(R=A))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(b=x-C,w=d[S]<y?(_=0,d[S]):d[S]>y?(_=z[U+d[S]],B[L+d[S]]):(_=96,0),f=1<<x-C,E=p=1<<R;u[v+(D>>C)+(p-=f)]=b<<24|_<<16|w,0!==p;);for(f=1<<x-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,S++,0==--P[x]){if(x===T)break;x=t[r+d[S]]}if(A<x&&(D&g)!==m){for(0===C&&(C=A),v+=E,I=1<<(R=x-C);R+C<T&&!((I-=P[R+C])<=0);)R++,I<<=1;if(O+=1<<R,1===e&&852<O||2===e&&592<O)return 1;u[m=D&g]=A<<24|R<<16|v-l}}return 0!==D&&(u[v+D]=x-C<<24|64<<16),h.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={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"}},{}],52:[function(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,c=15,u=[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],l=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);i(f);var p=new Array(60);i(p);var m=new Array(512);i(m);var g=new Array(256);i(g);var v=new Array(29);i(v);var y,b,_,w=new Array(s);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?m[e]:m[256+(e>>>7)]}function E(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function T(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,E(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function A(e,t,r){T(e,r[2*t],r[2*t+1])}function R(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function C(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=R(o[s]++,s))}}function I(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?E(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function D(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function B(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&D(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!D(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function L(e,t,r){var n,i,a,s,c=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?A(e,i,t):(A(e,(a=g[i])+o+1,t),0!==(s=u[a])&&T(e,i-=v[a],s),A(e,a=S(--n),r),0!==(s=l[a])&&T(e,n-=w[a],s)),c<e.last_lit;);A(e,256,t)}function P(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)B(e,o,r);for(i=u;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,B(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,l=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)&&(o=m,g++),u[2*n+1]=o,l<n||(e.bl_count[o]++,a=0,p<=n&&(a=f[n-p]),s=u[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*n+1]+a)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(o=m;0!==o;o--)for(n=e.bl_count[o];0!==n;)l<(i=e.heap[--r])||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),C(o,l,e.bl_count)}function N(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function z(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)for(;A(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(A(e,i,e.bl_tree),s--),A(e,16,e.bl_tree),T(e,s-3,2)):s<=10?(A(e,17,e.bl_tree),T(e,s-3,3)):(A(e,18,e.bl_tree),T(e,s-11,7));o=i,u=(s=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}i(w);var U=!1;function j(e,t,r,i){var o,a,s;T(e,0+(i?1:0),3),a=t,s=r,O(o=e),E(o,s),E(o,~s),n.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}r._tr_init=function(e){U||(function(){var e,t,r,n,i,o=new Array(16);for(n=r=0;n<28;n++)for(v[n]=r,e=0;e<1<<u[n];e++)g[r++]=n;for(g[r-1]=n,n=i=0;n<16;n++)for(w[n]=i,e=0;e<1<<l[n];e++)m[i++]=n;for(i>>=7;n<s;n++)for(w[n]=i<<7,e=0;e<1<<l[n]-7;e++)m[256+i++]=n;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,o[8]++;for(;e<=255;)f[2*e+1]=9,e++,o[9]++;for(;e<=279;)f[2*e+1]=7,e++,o[7]++;for(;e<=287;)f[2*e+1]=8,e++,o[8]++;for(C(f,287,o),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=R(e,5);y=new k(f,u,257,a,c),b=new k(p,l,0,s,c),_=new k(new Array(0),d,0,19,7)}(),U=!0),e.l_desc=new x(e.dyn_ltree,y),e.d_desc=new x(e.dyn_dtree,b),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,I(e)},r._tr_stored_block=j,r._tr_flush_block=function(e,t,r,n){var i,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?j(e,t,r,n):4===e.strategy||a===i?(T(e,2+(n?1:0),3),L(e,f,p)):(T(e,4+(n?1:0),3),function(e,t,r,n){var i;for(T(e,t-257,5),T(e,r-1,5),T(e,n-4,4),i=0;i<n;i++)T(e,e.bl_tree[2*h[i]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),L(e,e.dyn_ltree,e.dyn_dtree)),I(e),n&&O(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;T(e,2,3),A(e,256,f),16===(t=e).bi_valid?(E(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=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}},{}],54:[function(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,n,i,o=1,a={},s=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,t="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){n.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var i={callback:e,args:r};return a[o]=i,t(o),o++},u.clearImmediate=l}function l(e){delete a[e]}function d(e){if(s)setTimeout(d,0,e);else{var t=a[e];if(t){s=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(undefined,r)}}(t)}finally{l(e),s=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}));var zS=new WeakMap;function US(e,t){return function(e){return function(t,r,n){return n.value=e(n.value,r),n}}(((r,n)=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];let a=zS.get(this);a||(a=new Map,zS.set(this,a));let s=t(...i),c=a.get(s);if(!c||c<=0){r.apply(this,i);let t=setTimeout((()=>{var e;null==(e=zS.get(this))||e.delete(s)}),e);a.set(s,t)}else{clearTimeout(c);let t=window.setTimeout((()=>{var e;r.apply(this,i),null==(e=zS.get(this))||e.delete(s)}),e);a.set(s,t)}}))}var jS,MS=((jS=MS||{})[jS.TRACE=0]="TRACE",jS[jS.DEBUG=1]="DEBUG",jS[jS.INFO=2]="INFO",jS[jS.WARN=3]="WARN",jS[jS.ERROR=4]="ERROR",jS[jS.NONE=5]="NONE",jS),FS="Log",qS="Network",WS="Dump",VS="Dumping",HS="End",GS="Upload Log",ZS="Export Log",YS="Hide",KS="goBottom",XS="backTop",$S="Clear Log",JS="Uplink",QS="Downlink",eE="No Data",tE="Basic",rE="Duration",nE="Video",iE="Audio",oE="Screen",aE={"play() error: NotAllowedError:":{tips:e=>e.includes("main <video>")||e.includes("main <audio>")?"Remote stream auto play is restricted and playback fails":"Local stream playback failure, generally only occurs in Android WeChat devices, no need to handle",color:"red",class:"red"},"updateStream() try to recover local stream":{tips:"Device acquisition exception, automatic recovery is in progress"},"updateStream() recover local stream successfully":{tips:"Device acquisition exception, automatic recovery is successful"},"updateStream() failed to recover local stream":{tips:"Device acquisition exception, automatic recovery failed"},"main stream - video track is muted":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is muted":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is muted":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unable to provide media output":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is unable to provide media output":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is unable to provide media output":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unmuted":{tips:"Received enough playback video data"},"main stream - audio track is unmuted":{tips:"Received enough playback audio data"},"auxiliary stream - video track is unmuted":{tips:"Received enough playback screen sharing data"},"main stream - audio player track is ended":{tips:"Remote audio track stopped"},"main stream - video player track is ended":{tips:"Remote video track stopped"},"auxiliary stream - video player track is ended":{tips:"Received enough playback screen sharing data"},"stream - video track is muted":{tips:"Camera capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"stream - video track is unable to provide media output":{tips:"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked, and the customer needs to re-acquire. SDK v4.11.4+ will automatically resume acquisition without customer intervention",color:"orange"},"video track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"stream - audio track is muted":{tips:"Microphone capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"audio track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"Microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio track is unable to provide media output":{tips:"The microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"is adding audio track to current published local stream":{tips:"add audio track",color:"orange"},"is removing audio track from current published local stream":{tips:"remove audio track",color:"orange"},"is removing video track from current published local stream":{tips:"remove video track",color:"orange"},"is adding video track to current published local stream":{tips:"add video track",color:"orange"},"is replacing audio track to current published local main stream":{tips:"replace audio track",color:"orange"},"is replacing video track to current published local main stream":{tips:"replace video track",color:"orange"},"downlink network quality change":{tips:"Downstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"uplink network quality change":{tips:"Upstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"localStream mute video":{tips:"mute upstream video stream",color:"orange"},"localStream unmute video":{tips:"unmute upstream video stream",color:"orange"},"localStream mute audio":{tips:"mute upstream audio stream",color:"orange"},"localStream unmute audio":{tips:"unmute upstream audio stream",color:"orange"},"black detected":{tips:"Detect black screen, which means fps = 0. It is usually caused by network, and the network will be recovered after a while. If the network is normal but has not been restored, it is an abnormal situation."},'main stream start to play with options: {"muted":true}':{tips:"Play the remote stream in silent mode. Generally, the remote stream does not need to be played in silent mode. You need to confirm whether the parameters passed in the client stream.play API call are correct.",color:"orange"},"main stream - audio player is starting playing":{tips:"Remote stream audio playback success",color:"#0dd90d",class:"success"},"main stream - video player is starting playing":{tips:"Remote stream video playback success",color:"#0dd90d",class:"success"},"video player is playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"audio player is playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"stream - video player is starting playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"stream - audio player is starting playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"switch camera success":{tips:"Switch camera success",color:"#0dd90d",class:"success"},"switch microphone success":{tips:"Switch microphone success",color:"#0dd90d",class:"success"},gotStream:{tips:"Local stream capture success"},"local stream is published successfully":{tips:"Publish success",color:"#0dd90d",class:"success"},"encoderImplementation change to OpenH264":{tips:"Use software encoding"},"encoderImplementation change to ExternalEncoder":{tips:"Use hardware encoding"},"getUserMedia with constraints":{tips:"Start media (camera/microphone) capture"},"getDisplayMedia with constraints":{tips:"Start screen sharing capture"},"client-banned":{tips:"Kicked out of the room",color:"red",class:"red",textColor:"#fff"},user_timeout:{tips:"The backend is too long without receiving SDK heartbeat, which is usually caused by the JS thread being blocked for a long time. If the reproduction probability is high, the application browser Performance tool analyzes where the JS thread is blocked.",color:"red",class:"red",textColor:"#fff"},"schedule failed":{tips:"Signaling request failed, does not affect the normal room entry process, SDK will connect to the default signaling domain."},"updateStream() video flag is true, but no camera detected, set video to false":{tips:"When trying to resume camera acquisition, the camera acquisition is not resumed because it is detected that there is no camera.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to bandwidth":{tips:"bandwidth estimation is not enough to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to cpu":{tips:"cpu load is too high to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: hidden":{tips:"User page switched to backend, in mobile devices, this will cause the device to pause the capture, and it will be restored when the user switches backend to the frontend.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: visible":{tips:"User page switched to frontend",color:"orange",class:"orange",textColor:"#fff"},"main stream - audio player is paused":{tips:"The remote stream audio playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},"main stream - video player is paused":{tips:"The remote stream video playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach((e=>{aE["".concat(e,"()")]={tips:"Call trtc.".concat(e),color:"blue",class:"blue",textColor:"#fff"}}));var sE=Object.keys(aE),cE=((e,t,r)=>(r=null!=e?AS(OS(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of IS(t))!DS.call(e,i)&&i!==r&&RS(e,i,{get:()=>t[i],enumerable:!(n=CS(t,i))||n.enumerable});return e})(!t&&e&&e.__esModule?r:RS(r,"default",{value:e,enumerable:!0}),e)))(NS()),uE="trtc_debug_dialog",lE="".concat(uE,"_activated"),dE="".concat(uE,"_switch"),hE="".concat(uE,"_mask"),fE="".concat(uE,"_panel"),pE="".concat(uE,"_tabber"),mE="".concat(uE,"_tab"),gE="".concat(uE,"_topbar"),vE="".concat(uE,"_toptab"),yE="".concat(uE,"_content"),bE="".concat(uE,"_has_topbar"),_E="".concat(yE,"_log"),wE="".concat(yE,"_network"),kE="".concat(uE,"_dump"),xE="".concat(wE,"_title"),SE="".concat(wE,"_basic"),EE="".concat(wE,"_local"),TE="".concat(wE,"_remote"),AE="".concat(kE,"_title"),RE="".concat(kE,"_local"),CE="".concat(kE,"_remote"),IE="".concat(CE,"_hook"),OE="".concat(uE,"_banner"),DE="".concat(OE,"_item"),BE="".concat(uE,"_toolbar"),LE="".concat(uE,"_tool"),PE="".concat(uE,"_item"),NE="".concat(PE,"_debug"),zE="".concat(PE,"_info"),UE="".concat(PE,"_warn"),jE="".concat(PE,"_error"),ME="".concat(uE,"_back_top"),FE="".concat(uE,"_go_bottom"),qE="".concat(kE,"_local_audio"),WE="".concat(kE,"_local_video_main"),VE="".concat(kE,"_local_video_aux"),HE="".concat(uE,"_tooltip"),GE="".concat(SE,"_network_info"),ZE="".concat(SE,"_room_info"),YE="".concat(_E,"_controller"),KE="success",XE="warning",$E="failed",JE=0,QE=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.addStyle(),this.addDialog()}addDialog(){var e;let t=document.createElement("template");t.innerHTML='<div id="'.concat(uE,'" class="').concat(uE,'"><div class="').concat(dE,'">Debug#').concat(++JE,'</div><div class="').concat(hE,'"></div><div class="').concat(fE,'"><div class="').concat(pE,'"><a class="').concat(mE," ").concat(lE,'" data-tab="log">').concat(FS,'</a><a class="').concat(mE,'" data-tab="network">').concat(qS,'</a><a class="').concat(mE,'" data-tab="dump">').concat(WS,'</a></div><div class="').concat(YE,'"><div data-type="back_top">').concat(XS,'</div><div data-type="go_bottom">').concat(KS,'</div><div data-type="clear_log">').concat($S,'</div></div><div class="').concat(gE,'"><a class="').concat(vE," ").concat(lE,'" data-type="all">All</a><a class="').concat(vE,'" data-type="debug">Debug</a><a class="').concat(vE,'" data-type="info">Info</a><a class="').concat(vE,'" data-type="warn">Warn</a><a class="').concat(vE,'" data-type="error">Error</a></div><div class="').concat(yE," ").concat(bE,'"><div class="').concat(_E,'"></div><div class="').concat(wE,'"><div class="').concat(xE,'">').concat(tE,'</div><div class="').concat(SE,'"><div class="').concat(ZE,'"></div><div class="').concat(GE,'">').concat(eE,'</div></div><div class="').concat(xE,'">').concat(JS,'</div><div class="').concat(EE,'">').concat(eE,'</div><div class="').concat(xE,'">').concat(QS,'</div><div class="').concat(TE,'">').concat(eE,'</div></div><div class="').concat(kE,'"><div class="').concat(AE,'">').concat(JS,'</div><div class="').concat(RE,'"><div id="').concat(qE,'"><span>').concat(iE," - ").concat(rE,'(s):</span><input type="number" min=0 value=0></input><button class="dump">').concat(WS,'</button><button class="end-dump" disabled>').concat(HS,'</button></div><div id="').concat(WE,'"><span>').concat(nE," - ").concat(rE,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat(WS,'</button><button class="end-dump" disabled>').concat(HS,'</button></div><div id="').concat(VE,'"><span>').concat(oE," - ").concat(rE,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat(WS,'</button><button class="end-dump" disabled>').concat(HS,'</button></div></div><div class="').concat(AE,'">').concat(QS,'</div><div class="').concat(CE,'"><div class="').concat(IE,"\">userId:<input id=\"dump-remote-video-hook-userid\" value='*' />duration:<input id=\"dump-remote-video-hook-duration\" min='1' value='10' type='number' />mediaType:<select id=\"dump-remote-video-hook-mediaType\" value='main' ><option value='main' checked>Video</option><option value='sub'>Screen</option></select><button id=\"dump-remote-video-hook-button\">dump if video is available</button></div></div></div></div><div class=\"").concat(OE,'"></div><div class="').concat(BE,'"><a id="trtc_upload" class="').concat(LE,'">').concat(GS,'</a><a id="trtc_export" class="').concat(LE,'">').concat(ZS,'</a><a id="trtc_hide" class="').concat(LE,'">').concat(YS,"</a></div></div></div>"),null==(e=this.shadowRoot)||e.appendChild(t.content.firstChild)}addStyle(){var e;let t=document.createElement("style");t.textContent="#".concat(uE,"{font-size:14px;--DD-BG-0:#ededed;--DD-BG-1:#f7f7f7;--DD-BG-2:#fff;--DD-BORDER:rgba(0,0,0,0.1);--DD-ERROR:red;--DD-WARN:#fa9d3b;--DD-INFO:#000;--DD-DEBUG:#10aeff;--DD-WARN-BG:#fff3cc;--DD-ERROR-BG:#ffe6e6;}#").concat(uE," a,.").concat(dE,"{cursor:pointer;}.").concat(uE,"{color:black;}.").concat(dE,"{display:block;position:fixed;right:50px;bottom:").concat(150+50*JE,"px;border-radius:5px;background-color:#07c160;color:#fff;padding:5px 10px;z-index:10000;}.").concat(hE,"{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:10001;background-color:rgb(0,0,0,0.6);}.").concat(fE,"{background-color:#ededed;display:none;position:fixed;min-height:85%;left:60%;right:0;bottom:0;z-index:10002;border:1px solid var(--DD-BG-0);}@media (max-width:768px) {.").concat(fE,"{left:0;}}.").concat(pE,"{display:flex;height:2em;border-bottom:1px solid var(--DD-BORDER);}.").concat(mE,"{padding:0 20px;border-right:1px solid rgba(0,0,0,0.1);line-height:2em;color:black;}.").concat(mE,".").concat(lE,"{background-color:var(--DD-BG-2);}.").concat(mE,".disabled{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(gE,"{height:2em;display:flex;flex-direction:row;}.").concat(vE,"{width:20%;text-align:center;line-height:2em;border-right:1px solid var(--DD-BORDER);border-bottom:1px solid var(--DD-BORDER);color:black;}.").concat(vE,".").concat(lE,"{border-bottom:1px solid #1485ee;background-color:var(--DD-BG-2);}.").concat(yE,"{background-color:#fff;position:absolute;left:0;right:0;top:2em;bottom:8em;overflow-y:scroll;overflow-x:hidden;}.").concat(yE,".").concat(bE,"{top:4em;bottom:10em}.").concat(wE,"{display:none;}.").concat(kE,"{display:none;}.").concat(xE,",.").concat(AE,"{line-height:2em;text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(SE,",.").concat(EE,",.").concat(TE,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(RE,",.").concat(CE,"{display:flex;flex-direction:column;padding:0.5em 0;justify-content:center;align-items:center;}.").concat(RE," div input{margin:0 10px;height:1.5em;width:4em;}.").concat(RE," div {padding:10px 0;border-radius:5px;}.").concat(RE," div button,.").concat(CE," div button {cursor:pointer;height:1.8em;border-radius:5px;margin-right:5px;}.").concat(RE," div button[disabled],.").concat(CE," div button[disabled]{cursor:not-allowed;}.").concat(CE," select {height:1.8em;margin:0 10px;}.").concat(CE," div input{margin:0 10px;height:1.5em;width:4em;}.").concat(IE," {line-height:3em;padding:0.5em;}.").concat(xE,"{text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(SE,",.").concat(EE,",.").concat(TE,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(PE,"{border-bottom:1px solid var(--DD-BG-0);padding:5px 10px;overflow-wrap: break-word;}.").concat(jE,"{color:var(--DD-ERROR);background-color:var(--DD-ERROR-BG);}.").concat(UE,"{color:var(--DD-WARN);background-color:var(--DD-WARN-BG);}div .").concat(zE,"{color:var(--DD-INFO);}.").concat(NE,"{color:var(--DD-DEBUG);}.").concat(OE,"{position:absolute;left:0;right:0;bottom:2em;height:6em;border-bottom:1px solid var(--DD-BORDER);display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--DD-BG-1);}.").concat(DE,"{border-bottom:1px solid var(--DD-BORDER);padding:5px 10px;overflow-wrap: break-word;}.").concat(BE,"{position:absolute;line-height:2em;display:flex;flex-direction:row;left:0;right:0;bottom:0;}.").concat(LE,"{flex:1;color:black;text-align:center;background-color:#ededed;border-right:1px solid var(--DD-BORDER);}#").concat(uE," .").concat(ME,",#").concat(uE," .").concat(FE,"{position:absolute;height:2em;width:6em;right:2em;border-radius:5px;background-color:rgba(30,136,229,0.8);z-index:10003;cursor:pointer;padding:0 5px;line-height:2em;color:white;text-align:center;}.").concat(FE,"{bottom:9em;}.").concat(ME,"{bottom:11.5em;}#").concat(uE," .").concat(LE,".disable{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(HE," {position:relative;display:inline-block;}.").concat(HE," .tooltiptext{visibility:hidden;width:180px;background-color:black;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;}.").concat(HE," .tooltip-top {bottom:125%;left:50%;margin-left:-90px;}.").concat(HE,":hover .tooltiptext{visibility:visible;}.").concat(YE,"{position:absolute;left:0;right:0;bottom:8em;height:2em;display:flex;align-items:center;}.").concat(YE," div{flex:1;cursor:pointer;border-right:1px solid var(--DD-BORDER);text-align: center;}"),null==(e=this.shadowRoot)||e.appendChild(t)}};customElements.define("trtc-basic-debug-dialog",QE);var eT=class{constructor(e,t,r,n){PS(this,"_dialogNode",null),PS(this,"_switchNode",null),PS(this,"_maskNode",null),PS(this,"_panelNode",null),PS(this,"_logContentNode",null),PS(this,"_networkContentNode",null),PS(this,"_dumpContentNode",null),PS(this,"_tabNodes",[]),PS(this,"_toptabNodes",[]),PS(this,"_hasMove",!1),PS(this,"_showDialog",!1),PS(this,"_isMobile",!1),PS(this,"_showLogType","all"),PS(this,"prevBytesSent",0),PS(this,"prevBytesReceived",0),PS(this,"_core"),PS(this,"_log"),PS(this,"_logList",[]),PS(this,"isUploading",!1),PS(this,"publishMap",new Map),PS(this,"dumpLocalVideoMap"),PS(this,"dumpRemoteVideoMap"),PS(this,"eventMap",new Map),PS(this,"switchPos",{x:0,y:0,startX:0,startY:0,endX:0,endY:0,isTouchEnd:!1}),PS(this,"handleLeaveSuccess",(e=>{let{room:t}=e;var r,n;if(!this.hitTest(t))return;let i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(CE));for(let o of this.publishMap.values())null==i||i.removeChild(o);this.publishMap.clear()})),PS(this,"handleJoinSuccess",(e=>{let{room:t}=e;var r,n;if(!this.hitTest(t))return;(null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(ZE))).innerHTML="sdkAppId: ".concat(t.sdkAppId,"<br/>roomId: ").concat(t.roomId,"<br/>userId: ").concat(t.userId,"<br/>")})),PS(this,"handleRemoteVideoAvailable",(e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"publish")})),PS(this,"handleRemoteVideoUnavailable",(e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"unpublish")})),PS(this,"handleRemoteAudioAvailable",(e=>{this.renderDumpTab(e.userId,"remote","audio","publish")})),PS(this,"handleRemoteAudioUnavailable",(e=>{this.renderDumpTab(e.userId,"remote","audio","unpublish")})),PS(this,"renderDumpTab",((e,t,r,n)=>{var i,o,a;let s={main:"video",auxiliary:"screen",audio:"audio"},c=(e,t)=>{var r,n,i;let o=document.createElement("div");o.innerText="".concat(e," - ").concat(s[t]," - ").concat(rE,"(s):");let a=document.createElement("input");a.type="number",a.min="0",a.value="10",a.id="dump_remote_".concat(t,"_").concat(e);let c=document.createElement("button");c.innerText=HS,c.disabled=!0;let u,l=document.createElement("button");if(l.innerText=WS,l.onclick=()=>{let r,n,i=Number(a.value);if("audio"===t)({download:r,onDumpEnd:n}=this.dumpAudio("remote",i,e));else{if(!this.isSupportDumpVideo())return;({download:r,onDumpEnd:n}=this.dumpVideo(t,"remote",i,e))}r&&(this.inactiveButton(l,VS),i>0?setTimeout((()=>{null==r||r(),this.activeButton(l,WS)}),1e3*i):(this.activeButton(c),c.onclick=()=>{c.onclick=null,null==r||r(),null==n||n(),this.activeButton(l,WS),this.inactiveButton(c)}))},"audio"!==t){u=document.createElement("button"),u.innerText="preview",u.style.whiteSpace="pre";let r=document.createElement("video");document.body.appendChild(r),r.id="".concat(uE,"_preview_remote_").concat(t,"_").concat(e),r.style.cssText="\n width: 320px;\n height: 240px;\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n border: 3px solid #cccccc;\n transform: translate(-50%, -50%);\n z-index: 10004;\n ",u.onclick=async()=>{var n;if(r.style.display="none"===r.style.display?"":"none",u&&(u.innerText="none"===r.style.display?"preview":" hide "),!r.srcObject){let i=this._core.room.remotePublishedUserMap.get(e);if(i){let e=null==(n=i["main"===t?"remoteVideoTrack":"remoteAuxiliaryTrack"])?void 0:n.mediaTrack;e?(r.srcObject=new MediaStream([e]),await r.play()):this.addInfoToBanner($E,"failed to preview, remote video track is not available")}}}}o.appendChild(a),o.appendChild(l),o.appendChild(c),u&&o.appendChild(u),o.style.cssText="padding:10px;";let d=document.createElement("div");return d.style.cssText="width:100%;display:flex;justify-content:center;border-top: 1px solid var(--DD-BORDER);",d.appendChild(o),null==(i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(CE)))||i.appendChild(d),d};if("remote"===t)if("publish"===n){let n=c(e,r);this.publishMap.set("".concat(e,"-").concat(t,"-").concat(r),n)}else{let n=this.publishMap.get("".concat(e,"-").concat(t,"-").concat(r));if(!n)return;null==(a=null==(o=null==(i=this._dialogNode)?void 0:i.shadowRoot)?void 0:o.querySelector(".".concat(CE)))||a.removeChild(n);let s=document.querySelector("#".concat(uE,"_preview_remote_").concat(r,"_").concat(e));s&&document.body.removeChild(s),this.publishMap.delete("".concat(e,"-").concat(t,"-").concat(r))}})),PS(this,"handleStatistics",(e=>{var t,r,n,i,o,a;let s=(e.bytesSent-this.prevBytesSent)/2,c=(e.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=e.bytesSent,this.prevBytesReceived=e.bytesReceived,(null==(r=null==(t=this._dialogNode)?void 0:t.shadowRoot)?void 0:r.querySelector(".".concat(GE))).innerHTML="rtt: ".concat(e.rtt," ms upLoss: ").concat(e.upLoss,"% downLoss: ").concat(e.downLoss,"% <br>\n ↑ ").concat(s/1e3," KB/s (").concat(8*s/1e3," Kb/s) <br>\n ↓ ").concat(c/1e3," KB/s (").concat(8*c/1e3," Kb/s) <br>\n ");let u=null==(i=null==(n=this._dialogNode)?void 0:n.shadowRoot)?void 0:i.querySelector(".".concat(EE)),l="";e.localStatistics.audio.bitrate&&(l="<li>local audio: ".concat(e.localStatistics.audio.bitrate," Kb/s audioLevel: ").concat(e.localStatistics.audio.audioLevel.toFixed(5),"</li>")),e.localStatistics.video.length>0&&(l+="".concat(e.localStatistics.video.map((e=>"<li>local ".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>"))).join(""))),u.innerHTML=""===l?"".concat(eE):l;let d=null==(a=null==(o=this._dialogNode)?void 0:o.shadowRoot)?void 0:a.querySelector(".".concat(TE)),h="";e.remoteStatistics.length>0&&e.remoteStatistics.forEach((e=>{let t="remote ".concat(e.userId,":");e.audio.bitrate>0&&(t+="<li>audio: ".concat(e.audio.bitrate," Kb/s audioLevel: ").concat(e.audio.audioLevel.toFixed(5),"</li>")),e.video.length>0&&e.video.forEach((e=>{t+="<li>".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>")})),h+=t})),d.innerHTML=""===h?"".concat(eE):h})),PS(this,"pad",(e=>e<10?"0".concat(e):"".concat(e))),this._core=e,this._log=t,this.dumpLocalVideoMap=r,this.dumpRemoteVideoMap=n,this.initCustomElements(),this.synchronizeLog(),this.installEvents()}initCustomElements(){this._isMobile=(()=>{let e=window.navigator&&window.navigator.userAgent||"",t=/iPad/i.test(e)||/iPhone/i.test(e),r=/Android/i.test(e);return t||r})();let e=document.createElement("trtc-basic-debug-dialog");document.body.appendChild(e);let t=e.shadowRoot;if(this._dialogNode=e,!t)return;this._switchNode=t.querySelector(".".concat(dE)),this._addEventListener(this._switchNode,"click",this.onSwitchClick.bind(this));let r=getComputedStyle(this._switchNode);this.switchPos.x=parseInt(r.right,10)||50,this.switchPos.y=parseInt(r.bottom,10)||100+50*JE,this._isMobile?(this._switchNode.ontouchstart=this.onTouchStart.bind(this),this._switchNode.ontouchend=this.onTouchEnd.bind(this),this._switchNode.ontouchmove=this.onTouchMove.bind(this)):this._switchNode.onmousedown=this.onMouseDown.bind(this),this._maskNode=t.querySelector(".".concat(hE)),this._addEventListener(this._maskNode,"click",this.onMaskClick.bind(this)),this._panelNode=t.querySelector(".".concat(fE)),t.querySelector(".".concat(YE)).childNodes.forEach((e=>{switch(e.getAttribute("data-type")){case"go_bottom":this._addEventListener(e,"click",this.onGoBottomClick.bind(this));break;case"back_top":this._addEventListener(e,"click",this.onBackTopClick.bind(this));break;case"clear_log":this._addEventListener(e,"click",this.onClearLogClick.bind(this))}})),this._logContentNode=t.querySelector(".".concat(_E)),this._networkContentNode=t.querySelector(".".concat(wE)),this._dumpContentNode=t.querySelector(".".concat(kE)),this._tabNodes=Array.from(t.querySelector(".".concat(pE)).children),this._tabNodes.forEach((e=>{this._addEventListener(e,"click",this.onTabClick.bind(this))})),this._toptabNodes=Array.from(t.querySelector(".".concat(gE)).children),this._toptabNodes.forEach((e=>{this._addEventListener(e,"click",this.onToptabClick.bind(this))}));let n=t.querySelector("#trtc_upload");this._addEventListener(n,"click",this.onUploadClick.bind(this));let i=t.querySelector("#trtc_export");this._addEventListener(i,"click",this.onExportClick.bind(this));let o=t.querySelector("#trtc_hide");this._addEventListener(o,"click",this.onHideClick.bind(this));let a=t.querySelector("#".concat(WE," .dump")),s=t.querySelector("#".concat(WE," .end-dump")),c=Number(t.querySelector("#".concat(WE," input")).value);this._addEventListener(a,"click",this.getDumpButtonClickHandler.bind(this,a,s,c,"main","local"));let u=t.querySelector("#".concat(VE," .dump")),l=t.querySelector("#".concat(VE," .end-dump")),d=Number(t.querySelector("#".concat(VE," input")).value);this._addEventListener(u,"click",this.getDumpButtonClickHandler.bind(this,u,l,d,"auxiliary","local"));let h=t.querySelector("#".concat(qE," button"));this._addEventListener(h,"click",(()=>{let e=Number(t.querySelector("#".concat(qE," input")).value),{download:r,onDumpEnd:n}=this.dumpAudio("local",e);if(r)if(this.inactiveButton(h,VS),e>0)setTimeout((()=>{r(),this.activeButton(h,WS)}),1e3*e);else{let e=t.querySelector("#".concat(qE," .end-dump"));this.activeButton(e),e.onclick=()=>{e.onclick=null,r(),null==n||n(),this.activeButton(h,WS),this.inactiveButton(e)}}else this.addInfoToBanner($E,"Failed to dump, please check if the current user has started the audio")}));let f=t.querySelector("#dump-remote-video-hook-userid"),p=t.querySelector("#dump-remote-video-hook-duration"),m=t.querySelector("#dump-remote-video-hook-mediaType"),g=t.querySelector("#dump-remote-video-hook-button");g.onclick=()=>{let e=Number(p.value);if(e<1)return void this.addInfoToBanner($E,"duration at least 1s");let t=f.value;if(!t)return void this.addInfoToBanner($E,"please input user id");"*"===t&&this.inactiveButton(g);let r,n,i=m.value,o="remote_".concat(t,"_").concat("sub"===i?"auxiliary":i),a=o=>{if((o.userId===t||"*"===t)&&o.streamType===i){if(this.addInfoToBanner(KE,"[".concat(o.userId,"_").concat(i,"] starting to dump video, duration: ").concat(e,"s")),({download:r,onDumpEnd:n}=this.dumpVideo("sub"===o.streamType?"auxiliary":o.streamType,"remote",e,o.userId)),!r)return;setTimeout((()=>{null==r||r(),null==n||n(),"*"!==t&&this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a)}),1e3*e)}};this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a),this.addInfoToBanner(KE,"[".concat(o,"] waiting to dump video from ").concat("*"===t?"all remote users":"user ".concat(t),", duration: ").concat(e,"s"))}}synchronizeLog(){this._core.loggerManager.getQueue().forEach((e=>{this.updateLog(e)}))}isSupportDumpVideo(){return!(!this._core.rtcDectection.IS_INSERTABLE_STREAM_SUPPORTED&&!this._core.rtcDectection.IS_SCRIPT_TRANSFORM_SUPPORTED)||(this.addInfoToBanner($E,"Current browser does not support dumping video"),!1)}_addEventListener(e,t,r,n){e&&(e.addEventListener(t,r,n),this.eventMap.set(e,{type:t,listener:r}))}_removeEventListener(){this.eventMap.forEach(((e,t)=>{let{type:r,listener:n}=e;t&&t.removeEventListener(r,n)})),this.eventMap.clear(),this._switchNode&&(this._switchNode.onmousedown=null,this._switchNode.ontouchmove=null,this._switchNode.ontouchstart=null,this._switchNode.ontouchend=null)}closeDialog(){this.uninstallEvents(),this._removeEventListener(),this._dialogNode&&(document.body.removeChild(this._dialogNode),this._dialogNode=null)}updateLog(e){var t;this._logList.push(e);let r=document.createElement("div");switch(r.classList.add(PE),e.level){case 4:r.classList.add(jE);break;case 2:r.classList.add(zE);break;case 3:r.classList.add(UE);break;case 1:r.classList.add(NE)}r.textContent=e.log,"all"!==this._showLogType&&!r.classList.contains("".concat(PE,"_").concat(this._showLogType))&&(r.style.display="none"),null==(t=this._logContentNode)||t.appendChild(r),this.addHelper(r)}getDumpButtonClickHandler(e,t,r,n,i){if(!this.isSupportDumpVideo())return;let{download:o,onDumpEnd:a}=this.dumpVideo(n,i,r);if(o)return this.addInfoToBanner(KE,"[".concat(i,"_").concat(n,"] starting to dump...")),this.inactiveButton(e,VS),void(r>0?setTimeout((()=>{o(),this.activeButton(e,WS)}),1e3*r):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),o(),this.activeButton(e,WS),this.inactiveButton(t)}));this.addInfoToBanner(KE,"[".concat(i,"_").concat(n,"] waiting to dump..."));let s=o=>{let{track:a}=o;if(a.room===this._core.room&&a.streamType===n){this.addInfoToBanner(KE,"[".concat(i,"_").concat(n,"] starting to dump")),"local"===i&&this._core.innerEmitter.off("104",s);let{download:o,onDumpEnd:a}=this.dumpVideo(n,i,r);if(!o)return;r>0?setTimeout((()=>{o(),this.activeButton(e,WS)}),1e3*r):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),o(),this.activeButton(e,WS),this.inactiveButton(t)})}};s.bind(this),"local"===i&&this._core.innerEmitter.on("104",s),this.inactiveButton(e,VS)}onSwitchClick(){this._hasMove?this._hasMove=!1:this._showDialog?this.hideDialog():(this._isMobile&&(this._maskNode.style.display="block"),this._panelNode.style.display="block",this._switchNode.style.display="none",this._showDialog=!0,this.logContentGoBottom())}onTabClick(e){var t,r,n,i,o,a,s;let c=e.target;null==(t=this._tabNodes)||t.forEach((e=>{e.classList.remove(lE)})),c.classList.add(lE);let u=c.getAttribute("data-tab");"log"===u?(null==(i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(yE)))||i.classList.add(bE),this._logContentNode.style.display="block",this._networkContentNode.style.display="none",this._dumpContentNode.style.display="none",this.logContentGoBottom()):(null==(s=null==(a=null==(o=this._dialogNode)?void 0:o.shadowRoot)?void 0:a.querySelector(".".concat(yE)))||s.classList.remove(bE),"network"===u?(this._networkContentNode.style.display="block",this._logContentNode.style.display="none",this._dumpContentNode.style.display="none"):"dump"===u&&(this._dumpContentNode.style.display="block",this._networkContentNode.style.display="none",this._logContentNode.style.display="none"))}onToptabClick(e){var t,r;let n=e.target;null==(t=this._toptabNodes)||t.forEach((e=>{e.classList.remove(lE)})),n.classList.add(lE),this._showLogType=n.getAttribute("data-type");let i=null==(r=this._logContentNode)?void 0:r.querySelectorAll(".".concat(PE)),o="".concat(PE,"_").concat(this._showLogType);i.forEach((e=>{e.classList.contains(o)||"all"===this._showLogType?e.style.display="block":e.style.display="none"})),this.logContentGoBottom()}onExportClick(){let e=this._logList.reduce(((e,t)=>"".concat(e+t.log,"\n")),""),t=new Blob([e],{type:"text/plain"}),r=document.createElement("a"),n=URL.createObjectURL(t);r.href=n;let i="trtc_".concat(void 0===this._core.room.sdkAppId?"EmptySdkAppId":this._core.room.sdkAppId,"_").concat(void 0===this._core.room.userId?"EmptyUserId":this._core.room.userId,"_").concat(this.formatStartDumpTime(+new Date),".log");r.download=i,r.style.display="none",document.body.appendChild(r),r.click(),URL.revokeObjectURL(n),document.body.removeChild(r),this.addInfoToBanner(KE,"Export success: The log file name is ".concat(i)),this._core.kvStatManager.addSuccessEvent({key:592703})}addInfoToBanner(e,t){var r,n;let i=null==(n=null==(r=this._dialogNode)?void 0:r.shadowRoot)?void 0:n.querySelector(".".concat(OE)),o=document.createElement("div");o.classList.add(DE);let a=e===KE?"🟩":e===XE?"🟧":"🟥";o.innerText="".concat(a," [").concat(this.getCurrentTime(),"] ").concat(t),i.appendChild(o),i.scrollTop=i.scrollHeight}async onUploadClick(){var e,t;if(this.isUploading)return;this.isUploading=!0;let r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector("#trtc_upload");r.innerText="Uploading...",null==r||r.classList.add(".disable");let n=this._logList.reduce(((e,t)=>"".concat(e+t.log,"\n")),""),i=new Blob([n],{type:"text/plain"}),o=new FormData;o.append("file",i,"trtc.log"),o.append("sdkAppId","".concat(this._core.room.sdkAppId||"EmptySdkAppId")),o.append("userId","".concat(this._core.room.userId||"EmptyUserId")),fetch("https://service.trtc.qcloud.com/api/uploadLogFile",{method:"POST",body:o}).then((e=>e.json())).then((e=>{this.addInfoToBanner(e.type,e.message_en||"Upload Failed: Please use local export"),this.isUploading=!1,this._log.info(e.message_en),this._core.kvStatManager.addSuccessEvent({key:592704})})).catch((()=>{this.addInfoToBanner($E,"Upload Failed: Please use local export"),this._log.info("Upload Failed: Please use local export"),this._core.kvStatManager.addFailedEvent({key:592704})})).finally((()=>{r.innerText=GS,null==r||r.classList.remove(".disable"),this.isUploading=!1}))}onHideClick(){this.hideDialog()}onMaskClick(){this.hideDialog()}hideDialog(){this._isMobile&&(this._maskNode.style.display="none"),this._panelNode.style.display="none",this._switchNode.style.display="block",this._showDialog=!1}onBackTopClick(){var e,t,r;null==(r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector(".".concat(yE)))||r.scrollTo(0,0)}onGoBottomClick(){this.logContentGoBottom()}onClearLogClick(){this._logList=[],this._logContentNode&&(this._logContentNode.innerHTML="")}logContentGoBottom(){var e,t;let r=null==(t=null==(e=this._dialogNode)?void 0:e.shadowRoot)?void 0:t.querySelector(".".concat(yE));null==r||r.scrollTo(0,null==r?void 0:r.scrollHeight)}onMouseDown(e){e.preventDefault(),this.switchPos.startX=e.pageX,this.switchPos.startY=e.pageY,document.onmousemove=this.onMouseMove.bind(this),document.onmouseup=this.onMouseUp.bind(this)}onMouseMove(e){e.cancelable&&e.preventDefault(),this._hasMove=!0;let t=this.switchPos.x-(e.pageX-this.switchPos.startX),r=this.switchPos.y-(e.pageY-this.switchPos.startY);[t,r]=this.getSafeAreaXY(t,r),this._switchNode.style.right="".concat(t,"px"),this._switchNode.style.bottom="".concat(r,"px"),this.switchPos.endX=t,this.switchPos.endY=r}onMouseUp(){this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY,document.onmousemove=null,document.onmouseup=null}onTouchStart(e){this.switchPos.startX=e.touches[0].pageX,this.switchPos.startY=e.touches[0].pageY,this.switchPos.isTouchEnd=!1}onTouchEnd(){this.switchPos.isTouchEnd&&(this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.isTouchEnd=!1,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY)}onTouchMove(e){if(e.touches.length<=0)return;let t=e.touches[0].pageX-this.switchPos.startX,r=e.touches[0].pageY-this.switchPos.startY,n=Math.floor(this.switchPos.x-t),i=Math.floor(this.switchPos.y-r);[n,i]=this.getSafeAreaXY(n,i),this._switchNode.style.right="".concat(n,"px"),this._switchNode.style.bottom="".concat(i,"px"),this.switchPos.endX=n,this.switchPos.endY=i,this.switchPos.isTouchEnd=!0,e.cancelable&&e.preventDefault()}getSafeAreaXY(e,t){let r=Math.max(document.documentElement.offsetWidth,window.innerWidth),n=Math.max(document.documentElement.offsetHeight,window.innerHeight);return e+this._switchNode.offsetWidth>r&&(e=r-this._switchNode.offsetWidth),t+this._switchNode.offsetHeight>n&&(t=n-this._switchNode.offsetHeight),e<0&&(e=0),t<20&&(t=20),[e,t]}hitTest(e){return e===this._core.room}installEvents(){this._core.innerEmitter.on("264",this.handleLog,this),this._core.innerEmitter.on("53",this.handleLeaveSuccess,this),this._core.innerEmitter.on("27",this.handleJoinSuccess,this),this._core.trtc.on(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.on("dump",this.handleDumpFromScriptTransform,this)}uninstallEvents(){this._core.innerEmitter.off("264",this.handleLog,this),this._core.innerEmitter.off("53",this.handleLeaveSuccess,this),this._core.innerEmitter.off("27",this.handleJoinSuccess,this),this._core.trtc.off(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.off("dump",this.handleDumpFromScriptTransform,this)}handleDumpFromScriptTransform(e){if(!e.isAudio)if(e.userId){let t=this.dumpRemoteVideoMap["".concat(e.userId,"-").concat(e.streamType)];t&&(t.data.push(e.data),t.duration>0&&Date.now()-t.startTimestamp>1e3*t.duration&&t.onDumpEnd())}else{let t="main"===e.streamType?"main":"sub",r=this.dumpLocalVideoMap[t];r&&(r.data.push(e.data),r.duration>0&&Date.now()-r.startTimestamp>1e3*r.duration&&r.onDumpEnd())}}inactiveButton(e,t){e.disabled=!0,t&&(e.innerText=t)}activeButton(e,t){e.disabled=!1,t&&(e.innerText=t)}handleLog(e){this.updateLog(e.log)}addHelper(e){let t=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g,r=sE,n=e.innerText;n=n.split("\n").map((e=>{if((e=e.replace(/</g,"<").replace(/>/g,">")).includes("failed"))return e.includes("on autoplay-failed")?e:"<span class='red' style=\"background:red; color:#fff;\">".concat(e,"</span>");if(e.includes("clientIp:")){let r=e.match(t);return null==r||r.forEach((t=>{e=e.replace(t,'<a href="javascript:void(0);" target=""><span class=\'ip\' style="background:#e1dfdf">'.concat(t,"</span></a>"))})),e}return e.includes("URL of current page")&&(e=e.replace(/URL of current page: (.+)/,'URL of current page: <a href="$1">$1</a>')),e})).join("\n"),r.forEach((t=>{if(e.innerText.includes(t)){let r="";r="function"==typeof aE[t].tips?aE[t].tips(e.innerText):aE[t].tips,n=n.replace(new RegExp("".concat((e=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(">",">").replace(">","<"))(t)),"gi"),'<span class="'.concat(HE,'" style="background:').concat(aE[t].color||"#e1dfdf","; color: ").concat(aE[t].textColor||"#000",'">').concat(t,'\n <span class="tooltiptext tooltip-top">').concat(r,"</span>\n </span>"))}})),e.innerHTML=n}getCurrentTime(){let e=new Date,t=this.pad(e.getHours()),r=this.pad(e.getMinutes()),n=this.pad(e.getSeconds());return"".concat(t,":").concat(r,":").concat(n)}dumpVideo(e,t,r,n){let i,o=Date.now(),a=this.formatStartDumpTime(o),s=[],c="".concat(t,"_").concat(n,"_").concat(e);if("local"===t){if(!this.hasLocalTrack(e,"video"))return{};i=()=>{delete this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]},this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]={startTimestamp:o,data:s,duration:r,onDumpEnd:i}}if("remote"===t&&n){if(i=()=>{delete this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]},this.dumpRemoteVideoMap["".concat(n,"-").concat(e)])return this.addInfoToBanner(XE,"[".concat(c,"] dump already exists.")),{};this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]={startTimestamp:o,data:s,duration:r,onDumpEnd:i}}return{download:()=>{var r,i;if(0===s.length)return void this.addInfoToBanner($E,"[".concat(c,"] dump failed. Reason: data is empty"));let o;"main"===e?o="video":"auxiliary"===e&&(o="screen");let u=URL.createObjectURL(new Blob(s)),l=document.createElement("a"),d="local"===t?"local_".concat(o,"_").concat(a,".").concat((null==(r=this._core.room.singlePC)?void 0:r.videoCodec)||"h264"):"remote-".concat(n,"_").concat(o,"_").concat(a,".").concat((null==(i=this._core.room.userManager)?void 0:i.getPublishedUser(n).videoCodec)||"h264");l.href=u,l.download=d,l.style.display="none",document.body.appendChild(l),l.click(),URL.revokeObjectURL(u),l.remove(),this.addInfoToBanner(KE,"[".concat(c,"] dump success. File name is: ").concat(d))},onDumpEnd:i}}hasLocalTrack(e,t){for(let r of this._core.room.localTracks)if(r.streamType===e&&r.kind===t)return!0;return!1}dumpAudio(e,t,r){var n,i,o;let a,s,c=null,u=[],l=[],d=[],h=[],f=[],p=[],m=[],g=new AbortController,v=Date.now(),y=this.formatStartDumpTime(v),b=this._core.room.audioManager._localAudioPipline,_=this._core.room.audioManager._localScreenAudioPipeline,w=e=>{let{room:t,data:r,type:n}=e;if(this.hitTest(t)){if("dump"===n){if(h[0]=h[0]?h[0].concat(r.captureInput):r.captureInput,h[1]=h[1]?h[1].concat(r.playInput):r.playInput,a){let e=r.startTime-a,t=r.endTime-r.startTime;if(e>30||t>30){let n=function(e){if("number"!=typeof e||e<0)return"0毫秒";let t=[],r=Math.floor(e/6e4),n=e%6e4;r>0&&t.push("".concat(r,"分"));let i=Math.floor(n/1e3);return n%=1e3,(i>0||t.length)&&t.push("".concat(i,"秒")),(n>0||!t.length)&&t.push("".concat(n,"毫秒")),t.join("")},i=r.startTime-s,o=a-s;m.push("".concat(r.startTime,"\t").concat(n(i),"~").concat(n(o),"\t").concat(e,"\t").concat(t))}a=r.startTime}else a=r.startTime,s=r.startTime;p.push(r.startTime)}"dump-screen-audio"===n&&(f[0]=f[0]?f[0].concat(r.captureInput):r.captureInput,f[1]=f[1]?f[1].concat(r.playInput):r.playInput)}};if("local"===e){let{sampleRate:e}=this._core.room.audioManager.audioContext;if(!this._core.room.audioManager.hasAudioTrack&&!this._core.room.audioManager.hasScreenAudioTrack)return{};if(null!=b&&b.source.node&&(u.push(b.source.node),l.push("local_audio_raw_capture-".concat(e,"-").concat(b.source.node.channelCount))),(null!=(n=null==b?void 0:b.aec)&&n.node||null!=_&&_.aec.node)&&(this._core.trtc.updatePlugin("AudioProcessor",{enableDump:!0}),this._core.innerEmitter.on("265",w),null!=(i=null==b?void 0:b.aec)&&i.node&&(u.push(b.aec.node),l.push("local_audio_audioProcessor_processed-".concat(e,"-").concat(b.aec.node.channelCount))),null!=_&&_.aec.node&&(u.push(_.aec.node),l.push("screen_audio_audioProcessor_processed-".concat(e,"-").concat(_.aec.node.channelCount)))),null!=b&&b.denoiser.node&&(u.push(b.denoiser.node),l.push("local_audio_denoiser_processed-".concat(e,"-").concat(b.denoiser.node.channelCount))),this._core.room.audioManager.mixWeight>1&&null!=b&&b.stream){let t=this._core.room.audioManager.audioContext.createMediaStreamSource(b.stream);t.channelCount=1,u.push(t),l.push("local_audio_destination-".concat(e,"-").concat(t.channelCount))}}else if("remote"===e&&void 0!==r){let e=null==(o=this._core.room.remotePublishedUserMap.get(r))?void 0:o.remoteAudioTrack;if(null==e||!e.mediaTrack)return{};let t=this._core.createAudioNode(e.mediaTrack);u.push(t),l.push("remote_".concat(r))}let k=async()=>{var t,r,n,i,o;let a=new cE.default;for(let e=0;e<l.length;e++)a.file("".concat(l[e],".pcm"),new Blob(d[e]));if(null!=(t=null==h?void 0:h[0])&&t.length&&a.file("audioProcessor_input_capture.pcm",new Blob(h[0])),null!=(r=null==h?void 0:h[1])&&r.length&&a.file("audioProcessor_input_playback.pcm",new Blob(h[1])),null!=(n=null==f?void 0:f[0])&&n.length&&a.file("audioProcessor_screen_audio_input_capture.pcm",new Blob(f[0])),null!=(i=null==f?void 0:f[1])&&i.length&&a.file("audioProcessor_screen_audio_input_playback.pcm",new Blob(f[1])),null!=p&&p.length){let e=p.reduce(((e,t)=>"".concat(e,"\n").concat(t)));a.file("audioProcessor_handle_timestamp.txt",new Blob([e]))}if(null!=m&&m.length){let e=m.reduce(((e,t)=>"".concat(e,"\n").concat(t)));a.file("audioProcessor_big_gap_data.txt",new Blob([e]))}let s=await a.generateAsync({type:"blob"}),u=URL.createObjectURL(s),v=document.createElement("a");v.href=u,v.download="".concat(e,"-audio-").concat(y,".zip"),v.style.display="none",document.body.appendChild(v),v.click(),URL.revokeObjectURL(u),v.remove(),this.addInfoToBanner(KE,"Dump success, file name is: ".concat(e,"-").concat(y,".zip")),this._core.innerEmitter.off("265",w),(null!=(o=null==b?void 0:b.aec)&&o.node||null!=_&&_.aec.node)&&this._core.trtc.updatePlugin("AudioProcessor",{enableDump:!1}),c&&clearTimeout(c),g.abort("download")};return t>0&&(c=Number(setTimeout((()=>{g.abort("timeout")}),1e3*t))),u.length>0&&this._core.startGetPCM(u).then((e=>e.pipeTo(new WritableStream({write(e){e.forEach(((e,t)=>{d[t]=d[t]?d[t].concat(e[0]):[e[0]]}))}}),g).catch((()=>k)))),{download:k,onDumpEnd:()=>{g.abort("timeout")}}}formatStartDumpTime(e){let t=new Date(e),r=t.getFullYear(),n=this.pad(t.getMonth()+1),i=this.pad(t.getDate()),o=this.pad(t.getHours()),a=this.pad(t.getMinutes()),s=this.pad(t.getSeconds()),c=-t.getTimezoneOffset(),u=Math.floor(Math.abs(c)/60),l=Math.abs(c)%60,d=c>=0?"+":"-";return"".concat(r,"-").concat(n,"-").concat(i,"T").concat(o,"-").concat(a,"-").concat(s).concat(d).concat(this.pad(u),"-").concat(this.pad(l))}};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
jszip/dist/jszip.min.js:
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
15
15
|
*)
|
|
16
16
|
*/
|
|
17
|
-
return
|
|
17
|
+
return LS([US(300,(()=>"export"))],eT.prototype,"onExportClick",1),LS([US(300,(()=>"upload"))],eT.prototype,"onUploadClick",1),eT}));
|