xgplayer-mp4-loader 0.0.1-alpha.4 → 0.0.1-alpha.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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +4 -4
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MP4Loader=e()}(this,(function(){"use strict";function t(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,s,"next",e)}function s(e){t(a,o,i,u,s,"throw",e)}u(void 0)}))}}function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math==Math&&t},c=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof u&&u)||function(){return this}()||Function("return this")(),f={},l=function(t){try{return!!t()}catch(t){return!0}},h=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={},p={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!p.call({1:2},1);d.f=y?function(t){var e=v(this,t);return!!e&&e.enumerable}:p;var g,m,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_={}.toString,w=function(t){return _.call(t).slice(8,-1)},x=w,T="".split,S=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?T.call(t,""):Object(t)}:Object,k=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},O=S,A=k,j=function(t){return O(A(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},C=c,R=function(t){return"function"==typeof t?t:void 0},L=function(t,e){return arguments.length<2?R(C[t]):C[t]&&C[t][e]},P=L("navigator","userAgent")||"",I=c,B=P,M=I.process,D=I.Deno,z=M&&M.versions||D&&D.version,F=z&&z.v8;F?m=(g=F.split("."))[0]<4?1:g[0]+g[1]:B&&(!(g=B.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=B.match(/Chrome\/(\d+)/))&&(m=g[1]);var N=m&&+m,U=N,q=l,Y=!!Object.getOwnPropertySymbols&&!q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),G=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=L,$=G?function(t){return"symbol"==typeof t}:function(t){var e=V("Symbol");return"function"==typeof e&&Object(t)instanceof e},W=E,K={exports:{}},H=c,Q=function(t,e){try{Object.defineProperty(H,t,{value:e,configurable:!0,writable:!0})}catch(r){H[t]=e}return e},X=Q,J="__core-js_shared__",Z=c[J]||X(J,{}),tt=Z;(K.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var et=k,rt=function(t){return Object(et(t))},nt=rt,ot={}.hasOwnProperty,it=Object.hasOwn||function(t,e){return ot.call(nt(t),e)},at=0,ut=Math.random(),st=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++at+ut).toString(36)},ct=c,ft=K.exports,lt=it,ht=st,dt=Y,pt=G,vt=ft("wks"),yt=ct.Symbol,gt=pt?yt:yt&&yt.withoutSetter||ht,mt=function(t){return lt(vt,t)&&(dt||"string"==typeof vt[t])||(dt&<(yt,t)?vt[t]=yt[t]:vt[t]=gt("Symbol."+t)),vt[t]},bt=E,_t=$,wt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!W(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!W(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!W(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},xt=mt("toPrimitive"),Tt=function(t,e){if(!bt(t)||_t(t))return t;var r,n=t[xt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!bt(r)||_t(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),wt(t,e)},St=$,kt=function(t){var e=Tt(t,"string");return St(e)?e:String(e)},Ot=E,At=c.document,jt=Ot(At)&&Ot(At.createElement),Et=function(t){return jt?At.createElement(t):{}},Ct=Et,Rt=!h&&!l((function(){return 7!=Object.defineProperty(Ct("div"),"a",{get:function(){return 7}}).a})),Lt=h,Pt=d,It=b,Bt=j,Mt=kt,Dt=it,zt=Rt,Ft=Object.getOwnPropertyDescriptor;f.f=Lt?Ft:function(t,e){if(t=Bt(t),e=Mt(e),zt)try{return Ft(t,e)}catch(t){}if(Dt(t,e))return It(!Pt.f.call(t,e),t[e])};var Nt={},Ut=E,qt=function(t){if(!Ut(t))throw TypeError(String(t)+" is not an object");return t},Yt=h,Gt=Rt,Vt=qt,$t=kt,Wt=Object.defineProperty;Nt.f=Yt?Wt:function(t,e,r){if(Vt(t),e=$t(e),Vt(r),Gt)try{return Wt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Kt=Nt,Ht=b,Qt=h?function(t,e,r){return Kt.f(t,e,Ht(1,r))}:function(t,e,r){return t[e]=r,t},Xt={exports:{}},Jt=Z,Zt=Function.toString;"function"!=typeof Jt.inspectSource&&(Jt.inspectSource=function(t){return Zt.call(t)});var te,ee,re,ne=Jt.inspectSource,oe=ne,ie=c.WeakMap,ae="function"==typeof ie&&/native code/.test(oe(ie)),ue=K.exports,se=st,ce=ue("keys"),fe=function(t){return ce[t]||(ce[t]=se(t))},le={},he=ae,de=E,pe=Qt,ve=it,ye=Z,ge=fe,me=le,be="Object already initialized",_e=c.WeakMap;if(he||ye.state){var we=ye.state||(ye.state=new _e),xe=we.get,Te=we.has,Se=we.set;te=function(t,e){if(Te.call(we,t))throw new TypeError(be);return e.facade=t,Se.call(we,t,e),e},ee=function(t){return xe.call(we,t)||{}},re=function(t){return Te.call(we,t)}}else{var ke=ge("state");me[ke]=!0,te=function(t,e){if(ve(t,ke))throw new TypeError(be);return e.facade=t,pe(t,ke,e),e},ee=function(t){return ve(t,ke)?t[ke]:{}},re=function(t){return ve(t,ke)}}var Oe={set:te,get:ee,has:re,enforce:function(t){return re(t)?ee(t):te(t,{})},getterFor:function(t){return function(e){var r;if(!de(e)||(r=ee(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ae=c,je=Qt,Ee=it,Ce=Q,Re=ne,Le=Oe.get,Pe=Oe.enforce,Ie=String(String).split("String");(Xt.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Ee(r,"name")||je(r,"name",e),(o=Pe(r)).source||(o.source=Ie.join("string"==typeof e?e:""))),t!==Ae?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:je(t,e,r)):a?t[e]=r:Ce(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Le(this).source||Re(this)}));var Be={},Me=Math.ceil,De=Math.floor,ze=function(t){return isNaN(t=+t)?0:(t>0?De:Me)(t)},Fe=ze,Ne=Math.min,Ue=function(t){return t>0?Ne(Fe(t),9007199254740991):0},qe=ze,Ye=Math.max,Ge=Math.min,Ve=function(t,e){var r=qe(t);return r<0?Ye(r+e,0):Ge(r,e)},$e=j,We=Ue,Ke=Ve,He=function(t){return function(e,r,n){var o,i=$e(e),a=We(i.length),u=Ke(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Qe={includes:He(!0),indexOf:He(!1)},Xe=it,Je=j,Ze=Qe.indexOf,tr=le,er=function(t,e){var r,n=Je(t),o=0,i=[];for(r in n)!Xe(tr,r)&&Xe(n,r)&&i.push(r);for(;e.length>o;)Xe(n,r=e[o++])&&(~Ze(i,r)||i.push(r));return i},rr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nr=er,or=rr.concat("length","prototype");Be.f=Object.getOwnPropertyNames||function(t){return nr(t,or)};var ir={};ir.f=Object.getOwnPropertySymbols;var ar,ur=Be,sr=ir,cr=qt,fr=L("Reflect","ownKeys")||function(t){var e=ur.f(cr(t)),r=sr.f;return r?e.concat(r(t)):e},lr=it,hr=fr,dr=f,pr=Nt,vr=function(t,e){for(var r=hr(e),n=pr.f,o=dr.f,i=0;i<r.length;i++){var a=r[i];lr(t,a)||n(t,a,o(e,a))}},yr=l,gr=/#|\.prototype\./,mr=function(t,e){var r=_r[br(t)];return r==xr||r!=wr&&("function"==typeof e?yr(e):!!e)},br=mr.normalize=function(t){return String(t).replace(gr,".").toLowerCase()},_r=mr.data={},wr=mr.NATIVE="N",xr=mr.POLYFILL="P",Tr=mr,Sr=c,kr=f.f,Or=Qt,Ar=Xt.exports,jr=Q,Er=vr,Cr=Tr,Rr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?Sr:c?Sr[u]||jr(u,{}):(Sr[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kr(r,n))&&a.value:r[n],!Cr(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Er(i,o)}(t.sham||o&&o.sham)&&Or(i,"sham",!0),Ar(r,n,i,t)}},Lr=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pr=Lr,Ir=function(t,e,r){if(Pr(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Br=w,Mr=Array.isArray||function(t){return"Array"==Br(t)},Dr=E,zr=Mr,Fr=mt("species"),Nr=function(t){var e;return zr(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!zr(e.prototype)?Dr(e)&&null===(e=e[Fr])&&(e=void 0):e=void 0),void 0===e?Array:e},Ur=function(t,e){return new(Nr(t))(0===e?0:e)},qr=Ir,Yr=S,Gr=rt,Vr=Ue,$r=Ur,Wr=[].push,Kr=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,l){for(var h,d,p=Gr(s),v=Yr(p),y=qr(c,f,3),g=Vr(v.length),m=0,b=l||$r,_=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(d=y(h=v[m],m,p),t))if(e)_[m]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Wr.call(_,h)}else switch(t){case 4:return!1;case 7:Wr.call(_,h)}return i?-1:n||o?o:_}},Hr={forEach:Kr(0),map:Kr(1),filter:Kr(2),some:Kr(3),every:Kr(4),find:Kr(5),findIndex:Kr(6),filterReject:Kr(7)},Qr=er,Xr=rr,Jr=Object.keys||function(t){return Qr(t,Xr)},Zr=Nt,tn=qt,en=Jr,rn=h?Object.defineProperties:function(t,e){tn(t);for(var r,n=en(e),o=n.length,i=0;o>i;)Zr.f(t,r=n[i++],e[r]);return t},nn=L("document","documentElement"),on=qt,an=rn,un=rr,sn=le,cn=nn,fn=Et,ln=fe("IE_PROTO"),hn=function(){},dn=function(t){return"<script>"+t+"</"+"script>"},pn=function(t){t.write(dn("")),t.close();var e=t.parentWindow.Object;return t=null,e},vn=function(){try{ar=new ActiveXObject("htmlfile")}catch(t){}var t,e;vn="undefined"!=typeof document?document.domain&&ar?pn(ar):((e=fn("iframe")).style.display="none",cn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(dn("document.F=Object")),t.close(),t.F):pn(ar);for(var r=un.length;r--;)delete vn.prototype[un[r]];return vn()};sn[ln]=!0;var yn=Object.create||function(t,e){var r;return null!==t?(hn.prototype=on(t),r=new hn,hn.prototype=null,r[ln]=t):r=vn(),void 0===e?r:an(r,e)},gn=yn,mn=Nt,bn=mt("unscopables"),_n=Array.prototype;null==_n[bn]&&mn.f(_n,bn,{configurable:!0,value:gn(null)});var wn=function(t){_n[bn][t]=!0},xn=Rr,Tn=Hr.find,Sn=wn,kn="find",On=!0;kn in[]&&Array(1).find((function(){On=!1})),xn({target:"Array",proto:!0,forced:On},{find:function(t){return Tn(this,t,arguments.length>1?arguments[1]:void 0)}}),Sn(kn);var An=kt,jn=Nt,En=b,Cn=function(t,e,r){var n=An(e);n in t?jn.f(t,n,En(0,r)):t[n]=r},Rn=l,Ln=N,Pn=mt("species"),In=function(t){return Ln>=51||!Rn((function(){var e=[];return(e.constructor={})[Pn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Bn=Rr,Mn=E,Dn=Mr,zn=Ve,Fn=Ue,Nn=j,Un=Cn,qn=mt,Yn=In("slice"),Gn=qn("species"),Vn=[].slice,$n=Math.max;Bn({target:"Array",proto:!0,forced:!Yn},{slice:function(t,e){var r,n,o,i=Nn(this),a=Fn(i.length),u=zn(t,a),s=zn(void 0===e?a:e,a);if(Dn(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!Dn(r.prototype)?Mn(r)&&null===(r=r[Gn])&&(r=void 0):r=void 0,r===Array||void 0===r))return Vn.call(i,u,s);for(n=new(void 0===r?Array:r)($n(s-u,0)),o=0;u<s;u++,o++)u in i&&Un(n,o,i[u]);return n.length=o,n}});var Wn=rt,Kn=Jr;Rr({target:"Object",stat:!0,forced:l((function(){Kn(1)}))},{keys:function(t){return Kn(Wn(t))}});var Hn=$,Qn=function(t){if(Hn(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Xn={},Jn=j,Zn=Be.f,to={}.toString,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Xn.f=function(t){return eo&&"[object Window]"==to.call(t)?function(t){try{return Zn(t)}catch(t){return eo.slice()}}(t):Zn(Jn(t))};var ro={},no=mt;ro.f=no;var oo=c,io=it,ao=ro,uo=Nt.f,so=function(t){var e=oo.Symbol||(oo.Symbol={});io(e,t)||uo(e,t,{value:ao.f(t)})},co=Nt.f,fo=it,lo=mt("toStringTag"),ho=function(t,e,r){t&&!fo(t=r?t:t.prototype,lo)&&co(t,lo,{configurable:!0,value:e})},po=Rr,vo=c,yo=L,go=h,mo=Y,bo=l,_o=it,wo=Mr,xo=E,To=$,So=qt,ko=rt,Oo=j,Ao=kt,jo=Qn,Eo=b,Co=yn,Ro=Jr,Lo=Be,Po=Xn,Io=ir,Bo=f,Mo=Nt,Do=d,zo=Qt,Fo=Xt.exports,No=K.exports,Uo=le,qo=st,Yo=mt,Go=ro,Vo=so,$o=ho,Wo=Oe,Ko=Hr.forEach,Ho=fe("hidden"),Qo="Symbol",Xo=Yo("toPrimitive"),Jo=Wo.set,Zo=Wo.getterFor(Qo),ti=Object.prototype,ei=vo.Symbol,ri=yo("JSON","stringify"),ni=Bo.f,oi=Mo.f,ii=Po.f,ai=Do.f,ui=No("symbols"),si=No("op-symbols"),ci=No("string-to-symbol-registry"),fi=No("symbol-to-string-registry"),li=No("wks"),hi=vo.QObject,di=!hi||!hi.prototype||!hi.prototype.findChild,pi=go&&bo((function(){return 7!=Co(oi({},"a",{get:function(){return oi(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ni(ti,e);n&&delete ti[e],oi(t,e,r),n&&t!==ti&&oi(ti,e,n)}:oi,vi=function(t,e){var r=ui[t]=Co(ei.prototype);return Jo(r,{type:Qo,tag:t,description:e}),go||(r.description=e),r},yi=function(t,e,r){t===ti&&yi(si,e,r),So(t);var n=Ao(e);return So(r),_o(ui,n)?(r.enumerable?(_o(t,Ho)&&t[Ho][n]&&(t[Ho][n]=!1),r=Co(r,{enumerable:Eo(0,!1)})):(_o(t,Ho)||oi(t,Ho,Eo(1,{})),t[Ho][n]=!0),pi(t,n,r)):oi(t,n,r)},gi=function(t,e){So(t);var r=Oo(e),n=Ro(r).concat(wi(r));return Ko(n,(function(e){go&&!mi.call(r,e)||yi(t,e,r[e])})),t},mi=function(t){var e=Ao(t),r=ai.call(this,e);return!(this===ti&&_o(ui,e)&&!_o(si,e))&&(!(r||!_o(this,e)||!_o(ui,e)||_o(this,Ho)&&this[Ho][e])||r)},bi=function(t,e){var r=Oo(t),n=Ao(e);if(r!==ti||!_o(ui,n)||_o(si,n)){var o=ni(r,n);return!o||!_o(ui,n)||_o(r,Ho)&&r[Ho][n]||(o.enumerable=!0),o}},_i=function(t){var e=ii(Oo(t)),r=[];return Ko(e,(function(t){_o(ui,t)||_o(Uo,t)||r.push(t)})),r},wi=function(t){var e=t===ti,r=ii(e?si:Oo(t)),n=[];return Ko(r,(function(t){!_o(ui,t)||e&&!_o(ti,t)||n.push(ui[t])})),n};(mo||(Fo((ei=function(){if(this instanceof ei)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?jo(arguments[0]):void 0,e=qo(t),r=function(t){this===ti&&r.call(si,t),_o(this,Ho)&&_o(this[Ho],e)&&(this[Ho][e]=!1),pi(this,e,Eo(1,t))};return go&&di&&pi(ti,e,{configurable:!0,set:r}),vi(e,t)}).prototype,"toString",(function(){return Zo(this).tag})),Fo(ei,"withoutSetter",(function(t){return vi(qo(t),t)})),Do.f=mi,Mo.f=yi,Bo.f=bi,Lo.f=Po.f=_i,Io.f=wi,Go.f=function(t){return vi(Yo(t),t)},go&&(oi(ei.prototype,"description",{configurable:!0,get:function(){return Zo(this).description}}),Fo(ti,"propertyIsEnumerable",mi,{unsafe:!0}))),po({global:!0,wrap:!0,forced:!mo,sham:!mo},{Symbol:ei}),Ko(Ro(li),(function(t){Vo(t)})),po({target:Qo,stat:!0,forced:!mo},{for:function(t){var e=jo(t);if(_o(ci,e))return ci[e];var r=ei(e);return ci[e]=r,fi[r]=e,r},keyFor:function(t){if(!To(t))throw TypeError(t+" is not a symbol");if(_o(fi,t))return fi[t]},useSetter:function(){di=!0},useSimple:function(){di=!1}}),po({target:"Object",stat:!0,forced:!mo,sham:!go},{create:function(t,e){return void 0===e?Co(t):gi(Co(t),e)},defineProperty:yi,defineProperties:gi,getOwnPropertyDescriptor:bi}),po({target:"Object",stat:!0,forced:!mo},{getOwnPropertyNames:_i,getOwnPropertySymbols:wi}),po({target:"Object",stat:!0,forced:bo((function(){Io.f(1)}))},{getOwnPropertySymbols:function(t){return Io.f(ko(t))}}),ri)&&po({target:"JSON",stat:!0,forced:!mo||bo((function(){var t=ei();return"[null]"!=ri([t])||"{}"!=ri({a:t})||"{}"!=ri(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(xo(e)||void 0!==t)&&!To(t))return wo(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!To(e))return e}),o[1]=e,ri.apply(null,o)}});ei.prototype[Xo]||zo(ei.prototype,Xo,ei.prototype.valueOf),$o(ei,Qo),Uo[Ho]=!0;var xi=Hr.filter;Rr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(t){return xi(this,t,arguments.length>1?arguments[1]:void 0)}});var Ti=Rr,Si=l,ki=j,Oi=f.f,Ai=h,ji=Si((function(){Oi(1)}));Ti({target:"Object",stat:!0,forced:!Ai||ji,sham:!Ai},{getOwnPropertyDescriptor:function(t,e){return Oi(ki(t),e)}});var Ei={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},Ci=l,Ri=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){throw 1},1)}))},Li=Hr.forEach,Pi=c,Ii=Ei,Bi=Ri("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Mi=Qt;for(var Di in Ii){var zi=Pi[Di],Fi=zi&&zi.prototype;if(Fi&&Fi.forEach!==Bi)try{Mi(Fi,"forEach",Bi)}catch(t){Fi.forEach=Bi}}var Ni=fr,Ui=j,qi=f,Yi=Cn;Rr({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Ui(t),o=qi.f,i=Ni(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Yi(a,e,r);return a}});var Gi={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?p:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};b[i]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==r&&n.call(w,i)&&(b=w);var x=m.prototype=y.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,g.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},T(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(x),s(x,u,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(Gi);var Vi=Gi.exports,$i=Lr,Wi=E,Ki=[].slice,Hi={},Qi=function(t,e,r){if(!(e in Hi)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Hi[e]=Function("C,a","return new C("+n.join(",")+")")}return Hi[e](t,r)},Xi=Function.bind||function(t){var e=$i(this),r=Ki.call(arguments,1),n=function(){var o=r.concat(Ki.call(arguments));return this instanceof n?Qi(e,o.length,o):e.apply(t,o)};return Wi(e.prototype)&&(n.prototype=e.prototype),n},Ji=Rr,Zi=Lr,ta=qt,ea=E,ra=yn,na=Xi,oa=l,ia=L("Reflect","construct"),aa=oa((function(){function t(){}return!(ia((function(){}),[],t)instanceof t)})),ua=!oa((function(){ia((function(){}))})),sa=aa||ua;function ca(t,e){return(ca=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fa(t){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function la(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(t,e){if(e&&("object"===fa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return la(t)}function da(t){return(da=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function va(t,e,r){return(va=pa()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&ca(o,r.prototype),o}).apply(null,arguments)}function ya(t){var e="function"==typeof Map?new Map:void 0;return(ya=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return va(t,arguments,da(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ca(n,t)})(t)}Ji({target:"Reflect",stat:!0,forced:sa,sham:sa},{construct:function(t,e){Zi(t),ta(e);var r=arguments.length<3?t:Zi(arguments[2]);if(ua&&!aa)return ia(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(na.apply(t,n))}var o=r.prototype,i=ra(ea(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return ea(a)?a:i}});var ga,ma,ba,_a={},wa=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xa=it,Ta=rt,Sa=wa,ka=fe("IE_PROTO"),Oa=Object.prototype,Aa=Sa?Object.getPrototypeOf:function(t){return t=Ta(t),xa(t,ka)?t[ka]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Oa:null},ja=l,Ea=Aa,Ca=Qt,Ra=it,La=mt("iterator"),Pa=!1;[].keys&&("next"in(ba=[].keys())?(ma=Ea(Ea(ba)))!==Object.prototype&&(ga=ma):Pa=!0),(null==ga||ja((function(){var t={};return ga[La].call(t)!==t})))&&(ga={}),Ra(ga,La)||Ca(ga,La,(function(){return this}));var Ia={IteratorPrototype:ga,BUGGY_SAFARI_ITERATORS:Pa},Ba=Ia.IteratorPrototype,Ma=yn,Da=b,za=ho,Fa=_a,Na=function(){return this},Ua=E,qa=qt,Ya=function(t){if(!Ua(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Ga=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return qa(r),Ya(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Va=Rr,$a=function(t,e,r){var n=e+" Iterator";return t.prototype=Ma(Ba,{next:Da(1,r)}),za(t,n,!1),Fa[n]=Na,t},Wa=Aa,Ka=Ga,Ha=ho,Qa=Qt,Xa=Xt.exports,Ja=_a,Za=Ia.IteratorPrototype,tu=Ia.BUGGY_SAFARI_ITERATORS,eu=mt("iterator"),ru="keys",nu="values",ou="entries",iu=function(){return this},au=function(t,e,r,n,o,i,a){$a(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!tu&&t in d)return d[t];switch(t){case ru:case nu:case ou:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,d=t.prototype,p=d[eu]||d["@@iterator"]||o&&d[o],v=!tu&&p||f(o),y="Array"==e&&d.entries||p;if(y&&(u=Wa(y.call(new t)),Za!==Object.prototype&&u.next&&(Wa(u)!==Za&&(Ka?Ka(u,Za):"function"!=typeof u[eu]&&Qa(u,eu,iu)),Ha(u,l,!0))),o==nu&&p&&p.name!==nu&&(h=!0,v=function(){return p.call(this)}),d[eu]!==v&&Qa(d,eu,v),Ja[e]=v,o)if(s={values:f(nu),keys:i?v:f(ru),entries:f(ou)},a)for(c in s)(tu||h||!(c in d))&&Xa(d,c,s[c]);else Va({target:e,proto:!0,forced:tu||h},s);return s},uu=j,su=wn,cu=_a,fu=Oe,lu=au,hu="Array Iterator",du=fu.set,pu=fu.getterFor(hu),vu=lu(Array,"Array",(function(t,e){du(this,{type:hu,target:uu(t),index:0,kind:e})}),(function(){var t=pu(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");cu.Arguments=cu.Array,su("keys"),su("values"),su("entries");var yu={};yu[mt("toStringTag")]="z";var gu="[object z]"===String(yu),mu=gu,bu=w,_u=mt("toStringTag"),wu="Arguments"==bu(function(){return arguments}()),xu=mu?bu:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),_u))?r:wu?bu(e):"Object"==(n=bu(e))&&"function"==typeof e.callee?"Arguments":n},Tu=xu,Su=gu?{}.toString:function(){return"[object "+Tu(this)+"]"},ku=gu,Ou=Xt.exports,Au=Su;ku||Ou(Object.prototype,"toString",Au,{unsafe:!0});var ju=ze,Eu=Qn,Cu=k,Ru=function(t){return function(e,r){var n,o,i=Eu(Cu(e)),a=ju(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Lu={codeAt:Ru(!1),charAt:Ru(!0)},Pu=Lu.charAt,Iu=Qn,Bu=Oe,Mu=au,Du="String Iterator",zu=Bu.set,Fu=Bu.getterFor(Du);Mu(String,"String",(function(t){zu(this,{type:Du,string:Iu(t),index:0})}),(function(){var t,e=Fu(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Pu(r,n),e.index+=t.length,{value:t,done:!1})}));var Nu=c,Uu=Ei,qu=vu,Yu=Qt,Gu=mt,Vu=Gu("iterator"),$u=Gu("toStringTag"),Wu=qu.values;for(var Ku in Uu){var Hu=Nu[Ku],Qu=Hu&&Hu.prototype;if(Qu){if(Qu[Vu]!==Wu)try{Yu(Qu,Vu,Wu)}catch(t){Qu[Vu]=Wu}if(Qu[$u]||Yu(Qu,$u,Ku),Uu[Ku])for(var Xu in qu)if(Qu[Xu]!==qu[Xu])try{Yu(Qu,Xu,qu[Xu])}catch(t){Qu[Xu]=qu[Xu]}}}var Ju=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Zu=h,ts=l,es=Jr,rs=ir,ns=d,os=rt,is=S,as=Object.assign,us=Object.defineProperty,ss=!as||ts((function(){if(Zu&&1!==as({b:1},as(us({},"a",{enumerable:!0,get:function(){us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=as({},t)[r]||es(as({},e)).join("")!=n}))?function(t,e){for(var r=os(t),n=arguments.length,o=1,i=rs.f,a=ns.f;n>o;)for(var u,s=is(arguments[o++]),c=i?es(s).concat(i(s)):es(s),f=c.length,l=0;f>l;)u=c[l++],Zu&&!a.call(s,u)||(r[u]=s[u]);return r}:as,cs=qt,fs=function(t){var e=t.return;if(void 0!==e)return cs(e.call(t)).value},ls=qt,hs=fs,ds=_a,ps=mt("iterator"),vs=Array.prototype,ys=function(t){return void 0!==t&&(ds.Array===t||vs[ps]===t)},gs=xu,ms=_a,bs=mt("iterator"),_s=function(t){if(null!=t)return t[bs]||t["@@iterator"]||ms[gs(t)]},ws=Ir,xs=rt,Ts=function(t,e,r,n){try{return n?e(ls(r)[0],r[1]):e(r)}catch(e){throw hs(t),e}},Ss=ys,ks=Ue,Os=Cn,As=_s,js=Xt.exports,Es=function(t,e,r){for(var n in e)js(t,n,e[n],r);return t},Cs=c.Promise,Rs=L,Ls=Nt,Ps=h,Is=mt("species"),Bs=function(t){var e=Rs(t),r=Ls.f;Ps&&e&&!e[Is]&&r(e,Is,{configurable:!0,get:function(){return this}})},Ms=qt,Ds=ys,zs=Ue,Fs=Ir,Ns=_s,Us=fs,qs=function(t,e){this.stopped=t,this.result=e},Ys=mt("iterator"),Gs=!1;try{var Vs=0,$s={next:function(){return{done:!!Vs++}},return:function(){Gs=!0}};$s[Ys]=function(){return this},Array.from($s,(function(){throw 2}))}catch(t){}var Ws,Ks,Hs,Qs,Xs=function(t,e){if(!e&&!Gs)return!1;var r=!1;try{var n={};n[Ys]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Js=qt,Zs=Lr,tc=mt("species"),ec=function(t,e){var r,n=Js(t).constructor;return void 0===n||null==(r=Js(n)[tc])?e:Zs(r)},rc=/(?:ipad|iphone|ipod).*applewebkit/i.test(P),nc="process"==w(c.process),oc=c,ic=l,ac=Ir,uc=nn,sc=Et,cc=rc,fc=nc,lc=oc.setImmediate,hc=oc.clearImmediate,dc=oc.process,pc=oc.MessageChannel,vc=oc.Dispatch,yc=0,gc={},mc="onreadystatechange";try{Ws=oc.location}catch(t){}var bc=function(t){if(gc.hasOwnProperty(t)){var e=gc[t];delete gc[t],e()}},_c=function(t){return function(){bc(t)}},wc=function(t){bc(t.data)},xc=function(t){oc.postMessage(String(t),Ws.protocol+"//"+Ws.host)};lc&&hc||(lc=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return gc[++yc]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ks(yc),yc},hc=function(t){delete gc[t]},fc?Ks=function(t){dc.nextTick(_c(t))}:vc&&vc.now?Ks=function(t){vc.now(_c(t))}:pc&&!cc?(Qs=(Hs=new pc).port2,Hs.port1.onmessage=wc,Ks=ac(Qs.postMessage,Qs,1)):oc.addEventListener&&"function"==typeof postMessage&&!oc.importScripts&&Ws&&"file:"!==Ws.protocol&&!ic(xc)?(Ks=xc,oc.addEventListener("message",wc,!1)):Ks=mc in sc("script")?function(t){uc.appendChild(sc("script")).onreadystatechange=function(){uc.removeChild(this),bc(t)}}:function(t){setTimeout(_c(t),0)});var Tc,Sc,kc,Oc,Ac,jc,Ec,Cc,Rc={set:lc,clear:hc},Lc=c,Pc=/ipad|iphone|ipod/i.test(P)&&void 0!==Lc.Pebble,Ic=/web0s(?!.*chrome)/i.test(P),Bc=c,Mc=f.f,Dc=Rc.set,zc=rc,Fc=Pc,Nc=Ic,Uc=nc,qc=Bc.MutationObserver||Bc.WebKitMutationObserver,Yc=Bc.document,Gc=Bc.process,Vc=Bc.Promise,$c=Mc(Bc,"queueMicrotask"),Wc=$c&&$c.value;Wc||(Tc=function(){var t,e;for(Uc&&(t=Gc.domain)&&t.exit();Sc;){e=Sc.fn,Sc=Sc.next;try{e()}catch(t){throw Sc?Oc():kc=void 0,t}}kc=void 0,t&&t.enter()},zc||Uc||Nc||!qc||!Yc?!Fc&&Vc&&Vc.resolve?((Ec=Vc.resolve(void 0)).constructor=Vc,Cc=Ec.then,Oc=function(){Cc.call(Ec,Tc)}):Oc=Uc?function(){Gc.nextTick(Tc)}:function(){Dc.call(Bc,Tc)}:(Ac=!0,jc=Yc.createTextNode(""),new qc(Tc).observe(jc,{characterData:!0}),Oc=function(){jc.data=Ac=!Ac}));var Kc=Wc||function(t){var e={fn:t,next:void 0};kc&&(kc.next=e),Sc||(Sc=e,Oc()),kc=e},Hc={},Qc=Lr,Xc=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Qc(e),this.reject=Qc(r)};Hc.f=function(t){return new Xc(t)};var Jc,Zc,tf,ef,rf=qt,nf=E,of=Hc,af=function(t,e){if(rf(t),nf(e)&&e.constructor===t)return e;var r=of.f(t);return(0,r.resolve)(e),r.promise},uf=c,sf="object"==typeof window,cf=Rr,ff=c,lf=L,hf=Cs,df=Xt.exports,pf=Es,vf=Ga,yf=ho,gf=Bs,mf=E,bf=Lr,_f=Ju,wf=ne,xf=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),p=Fs(e,f,1+l+d),v=function(t){return n&&Us(n),new qs(!0,t)},y=function(t){return l?(Ms(t),d?p(t[0],t[1],v):p(t[0],t[1])):d?p(t,v):p(t)};if(h)n=t;else{if("function"!=typeof(o=Ns(t)))throw TypeError("Target is not iterable");if(Ds(o)){for(i=0,a=zs(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof qs)return u;return new qs(!1)}n=o.call(t)}for(s=n.next;!(c=s.call(n)).done;){try{u=y(c.value)}catch(t){throw Us(n),t}if("object"==typeof u&&u&&u instanceof qs)return u}return new qs(!1)},Tf=Xs,Sf=ec,kf=Rc.set,Of=Kc,Af=af,jf=function(t,e){var r=uf.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},Ef=Hc,Cf=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Rf=Oe,Lf=Tr,Pf=sf,If=nc,Bf=N,Mf=mt("species"),Df="Promise",zf=Rf.get,Ff=Rf.set,Nf=Rf.getterFor(Df),Uf=hf&&hf.prototype,qf=hf,Yf=Uf,Gf=ff.TypeError,Vf=ff.document,$f=ff.process,Wf=Ef.f,Kf=Wf,Hf=!!(Vf&&Vf.createEvent&&ff.dispatchEvent),Qf="function"==typeof PromiseRejectionEvent,Xf="unhandledrejection",Jf=!1,Zf=Lf(Df,(function(){var t=wf(qf),e=t!==String(qf);if(!e&&66===Bf)return!0;if(Bf>=51&&/native code/.test(t))return!1;var r=new qf((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Mf]=n,!(Jf=r.then((function(){}))instanceof n)||!e&&Pf&&!Qf})),tl=Zf||!Tf((function(t){qf.all(t).catch((function(){}))})),el=function(t){var e;return!(!mf(t)||"function"!=typeof(e=t.then))&&e},rl=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Of((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,s,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,h=c.reject,d=c.domain;try{f?(o||(2===t.rejection&&al(t),t.rejection=1),!0===f?a=n:(d&&d.enter(),a=f(n),d&&(d.exit(),s=!0)),a===c.promise?h(Gf("Promise-chain cycle")):(u=el(a))?u.call(a,l,h):l(a)):h(n)}catch(t){d&&!s&&d.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ol(t)}))}},nl=function(t,e,r){var n,o;Hf?((n=Vf.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),ff.dispatchEvent(n)):n={promise:e,reason:r},!Qf&&(o=ff["on"+t])?o(n):t===Xf&&jf("Unhandled promise rejection",r)},ol=function(t){kf.call(ff,(function(){var e,r=t.facade,n=t.value;if(il(t)&&(e=Cf((function(){If?$f.emit("unhandledRejection",n,r):nl(Xf,r,n)})),t.rejection=If||il(t)?2:1,e.error))throw e.value}))},il=function(t){return 1!==t.rejection&&!t.parent},al=function(t){kf.call(ff,(function(){var e=t.facade;If?$f.emit("rejectionHandled",e):nl("rejectionhandled",e,t.value)}))},ul=function(t,e,r){return function(n){t(e,n,r)}},sl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rl(t,!0))},cl=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Gf("Promise can't be resolved itself");var n=el(e);n?Of((function(){var r={done:!1};try{n.call(e,ul(cl,r,t),ul(sl,r,t))}catch(e){sl(r,e,t)}})):(t.value=e,t.state=1,rl(t,!1))}catch(e){sl({done:!1},e,t)}}};if(Zf&&(Yf=(qf=function(t){_f(this,qf,Df),bf(t),Jc.call(this);var e=zf(this);try{t(ul(cl,e),ul(sl,e))}catch(t){sl(e,t)}}).prototype,(Jc=function(t){Ff(this,{type:Df,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=pf(Yf,{then:function(t,e){var r=Nf(this),n=Wf(Sf(this,qf));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=If?$f.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rl(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Zc=function(){var t=new Jc,e=zf(t);this.promise=t,this.resolve=ul(cl,e),this.reject=ul(sl,e)},Ef.f=Wf=function(t){return t===qf||t===tf?new Zc(t):Kf(t)},"function"==typeof hf&&Uf!==Object.prototype)){ef=Uf.then,Jf||(df(Uf,"then",(function(t,e){var r=this;return new qf((function(t,e){ef.call(r,t,e)})).then(t,e)}),{unsafe:!0}),df(Uf,"catch",Yf.catch,{unsafe:!0}));try{delete Uf.constructor}catch(t){}vf&&vf(Uf,Yf)}cf({global:!0,wrap:!0,forced:Zf},{Promise:qf}),yf(qf,Df,!1),gf(Df),tf=lf(Df),cf({target:Df,stat:!0,forced:Zf},{reject:function(t){var e=Wf(this);return e.reject.call(void 0,t),e.promise}}),cf({target:Df,stat:!0,forced:Zf},{resolve:function(t){return Af(this,t)}}),cf({target:Df,stat:!0,forced:tl},{all:function(t){var e=this,r=Wf(e),n=r.resolve,o=r.reject,i=Cf((function(){var r=bf(e.resolve),i=[],a=0,u=1;xf(t,(function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Wf(e),n=r.reject,o=Cf((function(){var o=bf(e.resolve);xf(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var fl=qt,ll=function(){var t=fl(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},hl={},dl=l,pl=c.RegExp;hl.UNSUPPORTED_Y=dl((function(){var t=pl("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hl.BROKEN_CARET=dl((function(){var t=pl("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var vl,yl,gl=l,ml=c.RegExp,bl=gl((function(){var t=ml(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_l=l,wl=c.RegExp,xl=_l((function(){var t=wl("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Tl=Qn,Sl=ll,kl=hl,Ol=K.exports,Al=yn,jl=Oe.get,El=bl,Cl=xl,Rl=RegExp.prototype.exec,Ll=Ol("native-string-replace",String.prototype.replace),Pl=Rl,Il=(vl=/a/,yl=/b*/g,Rl.call(vl,"a"),Rl.call(yl,"a"),0!==vl.lastIndex||0!==yl.lastIndex),Bl=kl.UNSUPPORTED_Y||kl.BROKEN_CARET,Ml=void 0!==/()??/.exec("")[1];(Il||Ml||Bl||El||Cl)&&(Pl=function(t){var e,r,n,o,i,a,u,s=this,c=jl(s),f=Tl(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=Pl.call(l,f),s.lastIndex=l.lastIndex,e;var h=c.groups,d=Bl&&s.sticky,p=Sl.call(s),v=s.source,y=0,g=f;if(d&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=f.slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==f.charAt(s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",p)),Ml&&(r=new RegExp("^"+v+"$(?!\\s)",p)),Il&&(n=s.lastIndex),o=Rl.call(d?r:s,g),d?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Il&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ml&&o&&o.length>1&&Ll.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Al(null),i=0;i<h.length;i++)a[(u=h[i])[0]]=o[u[1]];return o});var Dl=Pl;Rr({target:"RegExp",proto:!0,forced:/./.exec!==Dl},{exec:Dl});var zl=ss;Rr({target:"Object",stat:!0,forced:Object.assign!==zl},{assign:zl});var Fl=Rr,Nl=l,Ul=Mr,ql=E,Yl=rt,Gl=Ue,Vl=Cn,$l=Ur,Wl=In,Kl=N,Hl=mt("isConcatSpreadable"),Ql=9007199254740991,Xl="Maximum allowed index exceeded",Jl=Kl>=51||!Nl((function(){var t=[];return t[Hl]=!1,t.concat()[0]!==t})),Zl=Wl("concat"),th=function(t){if(!ql(t))return!1;var e=t[Hl];return void 0!==e?!!e:Ul(t)};Fl({target:"Array",proto:!0,forced:!Jl||!Zl},{concat:function(t){var e,r,n,o,i,a=Yl(this),u=$l(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(th(i=-1===e?a:arguments[e])){if(s+(o=Gl(i.length))>Ql)throw TypeError(Xl);for(r=0;r<o;r++,s++)r in i&&Vl(u,s,i[r])}else{if(s>=Ql)throw TypeError(Xl);Vl(u,s++,i)}return u.length=s,u}});var eh=Hr.map;Rr({target:"Array",proto:!0,forced:!In("map")},{map:function(t){return eh(this,t,arguments.length>1?arguments[1]:void 0)}});var rh=Rr,nh=Cs,oh=l,ih=L,ah=ec,uh=af,sh=Xt.exports;if(rh({target:"Promise",proto:!0,real:!0,forced:!!nh&&oh((function(){nh.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=ah(this,ih("Promise")),r="function"==typeof t;return this.then(r?function(r){return uh(e,t()).then((function(){return r}))}:t,r?function(r){return uh(e,t()).then((function(){throw r}))}:t)}}),"function"==typeof nh){var ch=ih("Promise").prototype.finally;nh.prototype.finally!==ch&&sh(nh.prototype,"finally",ch,{unsafe:!0})}var fh,lh,hh,dh={exports:{}},ph="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,vh=ph,yh=h,gh=c,mh=E,bh=it,_h=xu,wh=Qt,xh=Xt.exports,Th=Nt.f,Sh=Aa,kh=Ga,Oh=mt,Ah=st,jh=gh.Int8Array,Eh=jh&&jh.prototype,Ch=gh.Uint8ClampedArray,Rh=Ch&&Ch.prototype,Lh=jh&&Sh(jh),Ph=Eh&&Sh(Eh),Ih=Object.prototype,Bh=Ih.isPrototypeOf,Mh=Oh("toStringTag"),Dh=Ah("TYPED_ARRAY_TAG"),zh=Ah("TYPED_ARRAY_CONSTRUCTOR"),Fh=vh&&!!kh&&"Opera"!==_h(gh.opera),Nh=!1,Uh={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qh={BigInt64Array:8,BigUint64Array:8},Yh=function(t){if(!mh(t))return!1;var e=_h(t);return bh(Uh,e)||bh(qh,e)};for(fh in Uh)(hh=(lh=gh[fh])&&lh.prototype)?wh(hh,zh,lh):Fh=!1;for(fh in qh)(hh=(lh=gh[fh])&&lh.prototype)&&wh(hh,zh,lh);if((!Fh||"function"!=typeof Lh||Lh===Function.prototype)&&(Lh=function(){throw TypeError("Incorrect invocation")},Fh))for(fh in Uh)gh[fh]&&kh(gh[fh],Lh);if((!Fh||!Ph||Ph===Ih)&&(Ph=Lh.prototype,Fh))for(fh in Uh)gh[fh]&&kh(gh[fh].prototype,Ph);if(Fh&&Sh(Rh)!==Ph&&kh(Rh,Ph),yh&&!bh(Ph,Mh))for(fh in Nh=!0,Th(Ph,Mh,{get:function(){return mh(this)?this[Dh]:void 0}}),Uh)gh[fh]&&wh(gh[fh],Dh,fh);var Gh={NATIVE_ARRAY_BUFFER_VIEWS:Fh,TYPED_ARRAY_CONSTRUCTOR:zh,TYPED_ARRAY_TAG:Nh&&Dh,aTypedArray:function(t){if(Yh(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(kh&&!Bh.call(Lh,t))throw TypeError("Target is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,r){if(yh){if(r)for(var n in Uh){var o=gh[n];if(o&&bh(o.prototype,t))try{delete o.prototype[t]}catch(t){}}Ph[t]&&!r||xh(Ph,t,r?e:Fh&&Eh[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(yh){if(kh){if(r)for(n in Uh)if((o=gh[n])&&bh(o,t))try{delete o[t]}catch(t){}if(Lh[t]&&!r)return;try{return xh(Lh,t,r?e:Fh&&Lh[t]||e)}catch(t){}}for(n in Uh)!(o=gh[n])||o[t]&&!r||xh(o,t,e)}},isView:function(t){if(!mh(t))return!1;var e=_h(t);return"DataView"===e||bh(Uh,e)||bh(qh,e)},isTypedArray:Yh,TypedArray:Lh,TypedArrayPrototype:Ph},Vh=c,$h=l,Wh=Xs,Kh=Gh.NATIVE_ARRAY_BUFFER_VIEWS,Hh=Vh.ArrayBuffer,Qh=Vh.Int8Array,Xh=!Kh||!$h((function(){Qh(1)}))||!$h((function(){new Qh(-1)}))||!Wh((function(t){new Qh,new Qh(null),new Qh(1.5),new Qh(t)}),!0)||$h((function(){return 1!==new Qh(new Hh(2),1,void 0).length})),Jh=ze,Zh=Ue,td=function(t){if(void 0===t)return 0;var e=Jh(t),r=Zh(e);if(e!==r)throw RangeError("Wrong length or index");return r},ed=Math.abs,rd=Math.pow,nd=Math.floor,od=Math.log,id=Math.LN2,ad=rt,ud=Ve,sd=Ue,cd=function(t){for(var e=ad(this),r=sd(e.length),n=arguments.length,o=ud(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ud(i,r);a>o;)e[o++]=t;return e},fd=c,ld=h,hd=ph,dd=Qt,pd=Es,vd=l,yd=Ju,gd=ze,md=Ue,bd=td,_d={pack:function(t,e,r){var n,o,i,a=new Array(r),u=8*r-e-1,s=(1<<u)-1,c=s>>1,f=23===e?rd(2,-24)-rd(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=ed(t))!=t||t===1/0?(o=t!=t?1:0,n=s):(n=nd(od(t)/id),t*(i=rd(2,-n))<1&&(n--,i*=2),(t+=n+c>=1?f/i:f*rd(2,1-c))*i>=2&&(n++,i/=2),n+c>=s?(o=0,n=s):n+c>=1?(o=(t*i-1)*rd(2,e),n+=c):(o=t*rd(2,c-1)*rd(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[h++]=255&n,n/=256,u-=8);return a[--h]|=128*l,a},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,s=n-1,c=t[s--],f=127&c;for(c>>=7;u>0;f=256*f+t[s],s--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[s],s--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:c?-1/0:1/0;r+=rd(2,e),f-=a}return(c?-1:1)*r*rd(2,f-e)}},wd=Aa,xd=Ga,Td=Be.f,Sd=Nt.f,kd=cd,Od=ho,Ad=Oe.get,jd=Oe.set,Ed="ArrayBuffer",Cd="DataView",Rd="Wrong index",Ld=fd.ArrayBuffer,Pd=Ld,Id=fd.DataView,Bd=Id&&Id.prototype,Md=Object.prototype,Dd=fd.RangeError,zd=_d.pack,Fd=_d.unpack,Nd=function(t){return[255&t]},Ud=function(t){return[255&t,t>>8&255]},qd=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Yd=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Gd=function(t){return zd(t,23,4)},Vd=function(t){return zd(t,52,8)},$d=function(t,e){Sd(t.prototype,e,{get:function(){return Ad(this)[e]}})},Wd=function(t,e,r,n){var o=bd(r),i=Ad(t);if(o+e>i.byteLength)throw Dd(Rd);var a=Ad(i.buffer).bytes,u=o+i.byteOffset,s=a.slice(u,u+e);return n?s:s.reverse()},Kd=function(t,e,r,n,o,i){var a=bd(r),u=Ad(t);if(a+e>u.byteLength)throw Dd(Rd);for(var s=Ad(u.buffer).bytes,c=a+u.byteOffset,f=n(+o),l=0;l<e;l++)s[c+l]=f[i?l:e-l-1]};if(hd){if(!vd((function(){Ld(1)}))||!vd((function(){new Ld(-1)}))||vd((function(){return new Ld,new Ld(1.5),new Ld(NaN),Ld.name!=Ed}))){for(var Hd,Qd=(Pd=function(t){return yd(this,Pd),new Ld(bd(t))}).prototype=Ld.prototype,Xd=Td(Ld),Jd=0;Xd.length>Jd;)(Hd=Xd[Jd++])in Pd||dd(Pd,Hd,Ld[Hd]);Qd.constructor=Pd}xd&&wd(Bd)!==Md&&xd(Bd,Md);var Zd=new Id(new Pd(2)),tp=Bd.setInt8;Zd.setInt8(0,2147483648),Zd.setInt8(1,2147483649),!Zd.getInt8(0)&&Zd.getInt8(1)||pd(Bd,{setInt8:function(t,e){tp.call(this,t,e<<24>>24)},setUint8:function(t,e){tp.call(this,t,e<<24>>24)}},{unsafe:!0})}else Pd=function(t){yd(this,Pd,Ed);var e=bd(t);jd(this,{bytes:kd.call(new Array(e),0),byteLength:e}),ld||(this.byteLength=e)},Id=function(t,e,r){yd(this,Id,Cd),yd(t,Pd,Cd);var n=Ad(t).byteLength,o=gd(e);if(o<0||o>n)throw Dd("Wrong offset");if(o+(r=void 0===r?n-o:md(r))>n)throw Dd("Wrong length");jd(this,{buffer:t,byteLength:r,byteOffset:o}),ld||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},ld&&($d(Pd,"byteLength"),$d(Id,"buffer"),$d(Id,"byteLength"),$d(Id,"byteOffset")),pd(Id.prototype,{getInt8:function(t){return Wd(this,1,t)[0]<<24>>24},getUint8:function(t){return Wd(this,1,t)[0]},getInt16:function(t){var e=Wd(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Wd(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Yd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Yd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Fd(Wd(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Fd(Wd(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Kd(this,1,t,Nd,e)},setUint8:function(t,e){Kd(this,1,t,Nd,e)},setInt16:function(t,e){Kd(this,2,t,Ud,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Kd(this,2,t,Ud,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Kd(this,4,t,qd,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Kd(this,4,t,qd,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Kd(this,4,t,Gd,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Kd(this,8,t,Vd,e,arguments.length>2?arguments[2]:void 0)}});Od(Pd,Ed),Od(Id,Cd);var ep={ArrayBuffer:Pd,DataView:Id},rp=E,np=Math.floor,op=ze,ip=function(t){var e=op(t);if(e<0)throw RangeError("The argument can't be less than 0");return e},ap=function(t,e){var r=ip(t);if(r%e)throw RangeError("Wrong offset");return r},up=rt,sp=Ue,cp=_s,fp=ys,lp=Ir,hp=Gh.aTypedArrayConstructor,dp=E,pp=Ga,vp=Rr,yp=c,gp=h,mp=Xh,bp=Gh,_p=ep,wp=Ju,xp=b,Tp=Qt,Sp=function(t){return!rp(t)&&isFinite(t)&&np(t)===t},kp=Ue,Op=td,Ap=ap,jp=kt,Ep=it,Cp=xu,Rp=E,Lp=$,Pp=yn,Ip=Ga,Bp=Be.f,Mp=function(t){var e,r,n,o,i,a,u=up(t),s=arguments.length,c=s>1?arguments[1]:void 0,f=void 0!==c,l=cp(u);if(null!=l&&!fp(l))for(a=(i=l.call(u)).next,u=[];!(o=a.call(i)).done;)u.push(o.value);for(f&&s>2&&(c=lp(c,arguments[2],2)),r=sp(u.length),n=new(hp(this))(r),e=0;r>e;e++)n[e]=f?c(u[e],e):u[e];return n},Dp=Hr.forEach,zp=Bs,Fp=Nt,Np=f,Up=function(t,e,r){var n,o;return pp&&"function"==typeof(n=e.constructor)&&n!==r&&dp(o=n.prototype)&&o!==r.prototype&&pp(t,o),t},qp=Oe.get,Yp=Oe.set,Gp=Fp.f,Vp=Np.f,$p=Math.round,Wp=yp.RangeError,Kp=_p.ArrayBuffer,Hp=_p.DataView,Qp=bp.NATIVE_ARRAY_BUFFER_VIEWS,Xp=bp.TYPED_ARRAY_CONSTRUCTOR,Jp=bp.TYPED_ARRAY_TAG,Zp=bp.TypedArray,tv=bp.TypedArrayPrototype,ev=bp.aTypedArrayConstructor,rv=bp.isTypedArray,nv="BYTES_PER_ELEMENT",ov="Wrong length",iv=function(t,e){for(var r=0,n=e.length,o=new(ev(t))(n);n>r;)o[r]=e[r++];return o},av=function(t,e){Gp(t,e,{get:function(){return qp(this)[e]}})},uv=function(t){var e;return t instanceof Kp||"ArrayBuffer"==(e=Cp(t))||"SharedArrayBuffer"==e},sv=function(t,e){return rv(t)&&!Lp(e)&&e in t&&Sp(+e)&&e>=0},cv=function(t,e){return e=jp(e),sv(t,e)?xp(2,t[e]):Vp(t,e)},fv=function(t,e,r){return e=jp(e),!(sv(t,e)&&Rp(r)&&Ep(r,"value"))||Ep(r,"get")||Ep(r,"set")||r.configurable||Ep(r,"writable")&&!r.writable||Ep(r,"enumerable")&&!r.enumerable?Gp(t,e,r):(t[e]=r.value,t)};gp?(Qp||(Np.f=cv,Fp.f=fv,av(tv,"buffer"),av(tv,"byteOffset"),av(tv,"byteLength"),av(tv,"length")),vp({target:"Object",stat:!0,forced:!Qp},{getOwnPropertyDescriptor:cv,defineProperty:fv}),dh.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,o=t+(r?"Clamped":"")+"Array",i="get"+t,a="set"+t,u=yp[o],s=u,c=s&&s.prototype,f={},l=function(t,e){Gp(t,e,{get:function(){return function(t,e){var r=qp(t);return r.view[i](e*n+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,o){var i=qp(t);r&&(o=(o=$p(o))<0?0:o>255?255:255&o),i.view[a](e*n+i.byteOffset,o,!0)}(this,e,t)},enumerable:!0})};Qp?mp&&(s=e((function(t,e,r,i){return wp(t,s,o),Up(Rp(e)?uv(e)?void 0!==i?new u(e,Ap(r,n),i):void 0!==r?new u(e,Ap(r,n)):new u(e):rv(e)?iv(s,e):Mp.call(s,e):new u(Op(e)),t,s)})),Ip&&Ip(s,Zp),Dp(Bp(u),(function(t){t in s||Tp(s,t,u[t])})),s.prototype=c):(s=e((function(t,e,r,i){wp(t,s,o);var a,u,c,f=0,h=0;if(Rp(e)){if(!uv(e))return rv(e)?iv(s,e):Mp.call(s,e);a=e,h=Ap(r,n);var d=e.byteLength;if(void 0===i){if(d%n)throw Wp(ov);if((u=d-h)<0)throw Wp(ov)}else if((u=kp(i)*n)+h>d)throw Wp(ov);c=u/n}else c=Op(e),a=new Kp(u=c*n);for(Yp(t,{buffer:a,byteOffset:h,byteLength:u,length:c,view:new Hp(a)});f<c;)l(t,f++)})),Ip&&Ip(s,Zp),c=s.prototype=Pp(tv)),c.constructor!==s&&Tp(c,"constructor",s),Tp(c,Xp,s),Jp&&Tp(c,Jp,o),f[o]=s,vp({global:!0,forced:s!=u,sham:!Qp},f),nv in s||Tp(s,nv,n),nv in c||Tp(c,nv,n),zp(o)}):dh.exports=function(){},(0,dh.exports)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var lv=rt,hv=Ve,dv=Ue,pv=Math.min,vv=[].copyWithin||function(t,e){var r=lv(this),n=dv(r.length),o=hv(t,n),i=hv(e,n),a=arguments.length>2?arguments[2]:void 0,u=pv((void 0===a?n:hv(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},yv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("copyWithin",(function(t,e){return vv.call(yv(this),t,e,arguments.length>2?arguments[2]:void 0)}));var gv=Hr.every,mv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("every",(function(t){return gv(mv(this),t,arguments.length>1?arguments[1]:void 0)}));var bv=cd,_v=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("fill",(function(t){return bv.apply(_v(this),arguments)}));var wv=ec,xv=Gh.TYPED_ARRAY_CONSTRUCTOR,Tv=Gh.aTypedArrayConstructor,Sv=function(t){return Tv(wv(t,t[xv]))},kv=function(t,e){for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},Ov=Sv,Av=Hr.filter,jv=function(t,e){return kv(Ov(t),e)},Ev=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("filter",(function(t){var e=Av(Ev(this),t,arguments.length>1?arguments[1]:void 0);return jv(this,e)}));var Cv=Hr.find,Rv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("find",(function(t){return Cv(Rv(this),t,arguments.length>1?arguments[1]:void 0)}));var Lv=Hr.findIndex,Pv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("findIndex",(function(t){return Lv(Pv(this),t,arguments.length>1?arguments[1]:void 0)}));var Iv=Hr.forEach,Bv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("forEach",(function(t){Iv(Bv(this),t,arguments.length>1?arguments[1]:void 0)}));var Mv=Qe.includes,Dv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("includes",(function(t){return Mv(Dv(this),t,arguments.length>1?arguments[1]:void 0)}));var zv=Qe.indexOf,Fv=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("indexOf",(function(t){return zv(Fv(this),t,arguments.length>1?arguments[1]:void 0)}));var Nv=c,Uv=Gh,qv=vu,Yv=mt("iterator"),Gv=Nv.Uint8Array,Vv=qv.values,$v=qv.keys,Wv=qv.entries,Kv=Uv.aTypedArray,Hv=Uv.exportTypedArrayMethod,Qv=Gv&&Gv.prototype[Yv],Xv=!!Qv&&("values"==Qv.name||null==Qv.name),Jv=function(){return Vv.call(Kv(this))};Hv("entries",(function(){return Wv.call(Kv(this))})),Hv("keys",(function(){return $v.call(Kv(this))})),Hv("values",Jv,!Xv),Hv(Yv,Jv,!Xv);var Zv=Gh.aTypedArray,ty=[].join;(0,Gh.exportTypedArrayMethod)("join",(function(t){return ty.apply(Zv(this),arguments)}));var ey=j,ry=ze,ny=Ue,oy=Ri,iy=Math.min,ay=[].lastIndexOf,uy=!!ay&&1/[1].lastIndexOf(1,-0)<0,sy=oy("lastIndexOf"),cy=uy||!sy?function(t){if(uy)return ay.apply(this,arguments)||0;var e=ey(this),r=ny(e.length),n=r-1;for(arguments.length>1&&(n=iy(n,ry(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:ay,fy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("lastIndexOf",(function(t){return cy.apply(fy(this),arguments)}));var ly=Hr.map,hy=Sv,dy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("map",(function(t){return ly(dy(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(hy(t))(e)}))}));var py=Lr,vy=rt,yy=S,gy=Ue,my=function(t){return function(e,r,n,o){py(r);var i=vy(e),a=yy(i),u=gy(i.length),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw TypeError("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},by={left:my(!1),right:my(!0)},_y=by.left,wy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduce",(function(t){return _y(wy(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var xy=by.right,Ty=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("reduceRight",(function(t){return xy(Ty(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Sy=Gh.aTypedArray,ky=Gh.exportTypedArrayMethod,Oy=Math.floor;ky("reverse",(function(){for(var t,e=this,r=Sy(e).length,n=Oy(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e}));var Ay=Ue,jy=ap,Ey=rt,Cy=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("set",(function(t){Cy(this);var e=jy(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=Ey(t),o=Ay(n.length),i=0;if(o+e>r)throw RangeError("Wrong length");for(;i<o;)this[e+i]=n[i++]}),l((function(){new Int8Array(1).set({})})));var Ry=Sv,Ly=Gh.aTypedArray,Py=[].slice;(0,Gh.exportTypedArrayMethod)("slice",(function(t,e){for(var r=Py.call(Ly(this),t,e),n=Ry(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),l((function(){new Int8Array(1).slice()})));var Iy=Hr.some,By=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("some",(function(t){return Iy(By(this),t,arguments.length>1?arguments[1]:void 0)}));var My=Math.floor,Dy=function(t,e){var r=t.length,n=My(r/2);return r<8?zy(t,e):Fy(Dy(t.slice(0,n),e),Dy(t.slice(n),e),e)},zy=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Fy=function(t,e,r){for(var n=t.length,o=e.length,i=0,a=0,u=[];i<n||a<o;)i<n&&a<o?u.push(r(t[i],e[a])<=0?t[i++]:e[a++]):u.push(i<n?t[i++]:e[a++]);return u},Ny=Dy,Uy=P.match(/firefox\/(\d+)/i),qy=!!Uy&&+Uy[1],Yy=/MSIE|Trident/.test(P),Gy=P.match(/AppleWebKit\/(\d+)\./),Vy=!!Gy&&+Gy[1],$y=l,Wy=Lr,Ky=Ue,Hy=Ny,Qy=qy,Xy=Yy,Jy=N,Zy=Vy,tg=Gh.aTypedArray,eg=Gh.exportTypedArrayMethod,rg=c.Uint16Array,ng=rg&&rg.prototype.sort,og=!!ng&&!$y((function(){var t=new rg(2);t.sort(null),t.sort({})})),ig=!!ng&&!$y((function(){if(Jy)return Jy<74;if(Qy)return Qy<67;if(Xy)return!0;if(Zy)return Zy<602;var t,e,r=new rg(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(r.sort((function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));eg("sort",(function(t){var e=this;if(void 0!==t&&Wy(t),ig)return ng.call(e,t);tg(e);var r,n=Ky(e.length),o=Array(n);for(r=0;r<n;r++)o[r]=e[r];for(o=Hy(e,function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t)),r=0;r<n;r++)e[r]=o[r];return e}),!ig||og);var ag=Ue,ug=Ve,sg=Sv,cg=Gh.aTypedArray;(0,Gh.exportTypedArrayMethod)("subarray",(function(t,e){var r=cg(this),n=r.length,o=ug(t,n);return new(sg(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,ag((void 0===e?n:ug(e,n))-o))}));var fg=Gh,lg=l,hg=c.Int8Array,dg=fg.aTypedArray,pg=fg.exportTypedArrayMethod,vg=[].toLocaleString,yg=[].slice,gg=!!hg&&lg((function(){vg.call(new hg(1))}));pg("toLocaleString",(function(){return vg.apply(gg?yg.call(dg(this)):dg(this),arguments)}),lg((function(){return[1,2].toLocaleString()!=new hg([1,2]).toLocaleString()}))||!lg((function(){hg.prototype.toLocaleString.call([1,2])})));var mg=Gh.exportTypedArrayMethod,bg=l,_g=c.Uint8Array,wg=_g&&_g.prototype||{},xg=[].toString,Tg=[].join;bg((function(){xg.call({})}))&&(xg=function(){return Tg.call(this)});var Sg=wg.toString!=xg;mg("toString",xg,Sg);var kg="fetch",Og="xhr",Ag="arraybuffer",jg="text",Eg="json";function Cg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=da(t);if(e){var o=da(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ha(this,r)}}var Rg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ca(t,e)}(r,t);var e=Cg(r);function r(t,o,i,u){var s;return n(this,r),a(la(s=e.call(this,u)),"retryCount",0),a(la(s),"isTimeout",!1),a(la(s),"loaderType",kg),a(la(s),"startTime",0),a(la(s),"endTime",0),s.url=t,s.request=o,s.response=i,s}return r}(ya(Error)),Lg=Xt.exports,Pg=Dl,Ig=l,Bg=mt,Mg=Qt,Dg=Bg("species"),zg=RegExp.prototype,Fg=function(t,e,r,n){var o=Bg(t),i=!Ig((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!Ig((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Dg]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],s=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===Pg||a===zg.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Lg(String.prototype,t,s[0]),Lg(zg,o,s[1])}n&&Mg(zg[o],"sham",!0)},Ng=Lu.charAt,Ug=function(t,e,r){return e+(r?Ng(t,e).length:1)},qg=rt,Yg=Math.floor,Gg="".replace,Vg=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$g=/\$([$&'`]|\d{1,2})/g,Wg=w,Kg=Dl,Hg=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Wg(t))throw TypeError("RegExp#exec called on incompatible receiver");return Kg.call(t,e)},Qg=Fg,Xg=l,Jg=qt,Zg=ze,tm=Ue,em=Qn,rm=k,nm=Ug,om=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=$g;return void 0!==o&&(o=qg(o),s=Vg),Gg.call(i,s,(function(i,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=Yg(f/10);return 0===l?i:l<=u?void 0===n[l-1]?s.charAt(1):n[l-1]+s.charAt(1):i}c=n[f-1]}return void 0===c?"":c}))},im=Hg,am=mt("replace"),um=Math.max,sm=Math.min,cm="$0"==="a".replace(/./,"$0"),fm=!!/./[am]&&""===/./[am]("a","$0");Qg("replace",(function(t,e,r){var n=fm?"$":"$0";return[function(t,r){var n=rm(this),o=null==t?void 0:t[am];return void 0!==o?o.call(t,n,r):e.call(em(n),t,r)},function(t,o){var i=Jg(this),a=em(t);if("string"==typeof o&&-1===o.indexOf(n)&&-1===o.indexOf("$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s="function"==typeof o;s||(o=em(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=im(i,a);if(null===h)break;if(l.push(h),!c)break;""===em(h[0])&&(i.lastIndex=nm(a,tm(i.lastIndex),f))}for(var d,p="",v=0,y=0;y<l.length;y++){h=l[y];for(var g=em(h[0]),m=um(sm(Zg(h.index),a.length),0),b=[],_=1;_<h.length;_++)b.push(void 0===(d=h[_])?d:String(d));var w=h.groups;if(s){var x=[g].concat(b,m,a);void 0!==w&&x.push(w);var T=em(o.apply(void 0,x))}else T=om(g,a,m,b,w,o);m>=v&&(p+=a.slice(v,m)+T,v=m+g.length)}return p+a.slice(v)}]}),!!Xg((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!cm||fm);var lm=Rr,hm=j,dm=[].join,pm=S!=Object,vm=Ri("join",",");lm({target:"Array",proto:!0,forced:pm||!vm},{join:function(t){return dm.call(hm(this),void 0===t?",":t)}});var ym=rt,gm=Aa,mm=wa;Rr({target:"Object",stat:!0,forced:l((function(){gm(1)})),sham:!mm},{getPrototypeOf:function(t){return gm(ym(t))}});var bm=Object.prototype.toString;function _m(t){if("[object Object]"!==bm.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function wm(t){if(t&&null!=t[0]&&(0!==t[0]||null!=t[1])){var e="bytes="+t[0]+"-";return t[1]&&(e+=t[1]),e}}function xm(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tm(t,e){if(t){if(!e)return t;var r,n=Object.keys(e).map((function(t){if(null!=(r=e[t]))return Array.isArray(r)?t+="[]":r=[r],r.map((function(e){var r;return r=e,"[object Date]"===bm.call(r)?e=e.toISOString():function(t){return null!==t&&"object"===fa(t)}(e)&&(e=JSON.stringify(e)),"".concat(xm(t),"=").concat(xm(e))})).join("&")})).filter(Boolean).join("&");if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}}function Sm(t,e,r,n,o,i,a,u,s){return o=null!=o?parseFloat(o):null,n=parseInt(n||"0",10),isNaN(n)&&(n=0),{data:t,done:e,option:{range:s,index:u,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:Date.now()},response:r}}var km=function(){function t(){n(this,t),a(this,"_abortController",null),a(this,"_timeoutTimer",null),a(this,"_reader",null),a(this,"_response",null),a(this,"_aborted",!1),a(this,"_index",-1),a(this,"_range",null),a(this,"_receivedLength",0),a(this,"_running",!1),a(this,"_logger",null)}var r;return i(t,[{key:"load",value:function(t){var r=this,n=t.url,o=t.timeout,i=t.responseType,a=t.onProgress,u=t.index,s=t.onTimeout,c=t.range,f=t.transformResponse,l=t.request,h=t.params,d=t.logger,p=t.method,v=t.headers,y=t.body,g=t.mode,m=t.credentials,b=t.cache,_=t.redirect,w=t.referrer,x=t.referrerPolicy,T=t.integrity;this._logger=d,this._aborted=!1,this._running=!0,this._abortController=new AbortController,this._index=u,this._range=c||[0,0],this._logger.debug("【fetchLoader task】, range",this._range);var S={method:p,headers:v,body:y,mode:g,credentials:m,cache:b,redirect:_,referrer:w,referrerPolicy:x,integrity:T,signal:this._abortController.signal},k=!1;clearTimeout(this._timeoutTimer),n=Tm(n,h);var O=wm(c);O&&((v=l?l.headers:S.headers=S.headers||new Headers)instanceof Headers?v.append("Range",O):v.Range=O),o&&(this._timeoutTimer=setTimeout((function(){if(k=!0,r.cancel(),s){var t=new Rg(n,S);t.isTimeout=!0,s(t)}}),o));var A=Date.now();return fetch(l||n,l?void 0:S).then(function(){var t=e(Vi.mark((function t(e){var o,s;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=e,!r._aborted){t.next=4;break}return t.abrupt("return");case 4:if(f&&(e=f(e,n)||e),e.ok){t.next=7;break}throw new Rg(n,S,e,"bad network response");case 7:if(o=Date.now(),i!==jg){t.next=14;break}return t.next=11,e.text();case 11:s=t.sent,t.next=28;break;case 14:if(i!==Eg){t.next=20;break}return t.next=17,e.json();case 17:s=t.sent,t.next=28;break;case 20:if(!a){t.next=24;break}r._loadChunk(e,a),t.next=28;break;case 24:return t.next=26,e.arrayBuffer();case 26:s=t.sent,s=new Uint8Array(s);case 28:return r._running=!1,t.abrupt("return",Sm(s,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),A,o,u,c));case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){if(clearTimeout(r._timeoutTimer),r._running=!1,!r._aborted||k)throw(t=t instanceof Rg?t:new Rg(n,S)).startTime=A,t.endTime=Date.now(),t.isTimeout=k,t}))}},{key:"cancel",value:(r=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._aborted){t.next=2;break}return t.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){t.next=16;break}return t.prev=5,t.next=8,this._response.body.cancel();case 8:if(!this._reader){t.next=11;break}return t.next=11,this._reader.cancel();case 11:t.next=15;break;case 13:t.prev=13,t.t0=t.catch(5);case 15:this._response=this._reader=null;case 16:if(this._abortController){try{this._abortController.abort()}catch(t){}this._abortController=null}case 17:case"end":return t.stop()}}),t,this,[[5,13]])}))),function(){return r.apply(this,arguments)})},{key:"_loadChunk",value:function(t,r){var n,o,i,a=this,u=this._reader=t.body.getReader(),s=function(){var c=e(Vi.mark((function e(){var c;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Date.now(),e.prev=1,e.next=4,u.read();case 4:n=e.sent,i=Date.now(),e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(1),i=Date.now(),r(void 0,!0,{range:a._range,index:a._index,startTime:o,endTime:i},t),e.abrupt("return");case 13:if(!a._aborted){e.next=16;break}return r(void 0,!0,{range:a._range,index:a._index,startTime:o,endTime:i},t),e.abrupt("return");case 16:c=a._range[0]+a._receivedLength,a._receivedLength+=n.value?n.value.byteLength:0,a._logger.debug("【fetchLoader,onProgress call】,task,",a._range,", start,",c,", end,",a._range[0]+a._receivedLength,", done,",n.done),a._running=n.done,r(n.value,n.done,{range:[c,a._range[0]+a._receivedLength],index:a._index,startTime:o,endTime:i},t),n.done?a._logger.debug("【fetchLoader,onProgress call】,task,",a._range,",done,",n.done):s();case 22:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return c.apply(this,arguments)}}();s()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}}],[{key:"isSupported",value:function(){if("undefined"==typeof ReadableStream)return!1;try{new ReadableStream({})}catch(t){return!1}return!("undefined"==typeof fetch||"undefined"==typeof AbortController)}}]),t}();function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Am(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({loaderType:kg,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:jg,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0},t)}var jm=h,Em=Nt.f,Cm=Function.prototype,Rm=Cm.toString,Lm=/^\s*function ([^ (]*)/,Pm="name";jm&&!(Pm in Cm)&&Em(Cm,Pm,{configurable:!0,get:function(){try{return Rm.call(this).match(Lm)[1]}catch(t){return""}}});var Im=function(t){var e,r,n,o,i,a,u=xs(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=As(u),d=0;if(l&&(f=ws(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&Ss(h))for(r=new s(e=ks(u.length));e>d;d++)a=l?f(u[d],d):u[d],Os(r,d,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;d++)a=l?Ts(o,f,[n.value,d],!0):n.value,Os(r,d,a);return r.length=d,r};Rr({target:"Array",stat:!0,forced:!Xs((function(t){Array.from(t)}))},{from:Im});var Bm=Rr,Mm=h,Dm=c,zm=it,Fm=E,Nm=Nt.f,Um=vr,qm=Dm.Symbol;if(Mm&&"function"==typeof qm&&(!("description"in qm.prototype)||void 0!==qm().description)){var Ym={},Gm=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Gm?new qm(t):void 0===t?qm():qm(t);return""===t&&(Ym[e]=!0),e};Um(Gm,qm);var Vm=Gm.prototype=qm.prototype;Vm.constructor=Gm;var $m=Vm.toString,Wm="Symbol(test)"==String(qm("test")),Km=/^Symbol\((.*)\)[^)]+$/;Nm(Vm,"description",{configurable:!0,get:function(){var t=Fm(this)?this.valueOf():this,e=$m.call(t);if(zm(Ym,t))return"";var r=Wm?e.slice(7,-1):e.replace(Km,"$1");return""===r?void 0:r}}),Bm({global:!0,forced:!0},{Symbol:Gm})}so("iterator");var Hm=E,Qm=w,Xm=mt("match"),Jm=function(t){var e;return Hm(t)&&(void 0!==(e=t[Xm])?!!e:"RegExp"==Qm(t))},Zm=Fg,tb=Jm,eb=qt,rb=k,nb=ec,ob=Ug,ib=Ue,ab=Qn,ub=Hg,sb=Dl,cb=l,fb=hl.UNSUPPORTED_Y,lb=[].push,hb=Math.min,db=4294967295;Zm("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=ab(rb(this)),o=void 0===r?db:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!tb(t))return e.call(n,t,o);for(var i,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,c+"g");(i=sb.call(l,n))&&!((a=l.lastIndex)>f&&(s.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&lb.apply(s,i.slice(1)),u=i[0].length,f=a,s.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&l.test("")||s.push(""):s.push(n.slice(f)),s.length>o?s.slice(0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=rb(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(ab(o),e,r)},function(t,o){var i=eb(this),a=ab(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var s=nb(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(fb?"g":"y"),l=new s(fb?"^(?:"+i.source+")":i,f),h=void 0===o?db:o>>>0;if(0===h)return[];if(0===a.length)return null===ub(l,a)?[a]:[];for(var d=0,p=0,v=[];p<a.length;){l.lastIndex=fb?0:p;var y,g=ub(l,fb?a.slice(p):a);if(null===g||(y=hb(ib(l.lastIndex+(fb?p:0)),a.length))===d)p=ob(a,p,c);else{if(v.push(a.slice(d,p)),v.length===h)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===h)return v;p=d=y}}return v.push(a.slice(d)),v}]}),!!cb((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),fb);var pb="\t\n\v\f\r \u2028\u2029\ufeff",vb=k,yb=Qn,gb="[\t\n\v\f\r \u2028\u2029\ufeff]",mb=RegExp("^"+gb+gb+"*"),bb=RegExp(gb+gb+"*$"),_b=function(t){return function(e){var r=yb(vb(e));return 1&t&&(r=r.replace(mb,"")),2&t&&(r=r.replace(bb,"")),r}},wb={start:_b(1),end:_b(2),trim:_b(3)},xb=l,Tb=pb,Sb=wb.trim;Rr({target:"String",proto:!0,forced:function(t){return xb((function(){return!!Tb[t]()||"
"!="
"[t]()||Tb[t].name!==t}))}("trim")},{trim:function(){return Sb(this)}});var kb=function(){function t(){n(this,t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return i(t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(t){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}}]),t}();function Ob(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Ab(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Ab(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jb=function(){function t(){n(this,t),a(this,"_xhr",null),a(this,"_aborted",!1),a(this,"_timeoutTimer",null),a(this,"_range",null),a(this,"_receivedLength",0),a(this,"_url",null),a(this,"_onProgress",null),a(this,"_index",-1),a(this,"_headers",null),a(this,"_chunkSizeKBList",[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192]),a(this,"_currentChunkSizeKB",384),a(this,"_currentSpeedNormalized",0),a(this,"_zeroSpeedChunkCount",0),a(this,"_timeout",null),a(this,"_xhr",null),a(this,"_withCredentials",null),a(this,"_startTime",-1),a(this,"_firstByteTime",-1),a(this,"_speedSampler",new kb),a(this,"_loadCompleteResolve",null),a(this,"_loadCompleteReject",null),a(this,"_runing",!1),a(this,"_logger",!1)}return i(t,[{key:"load",value:function(t){var e=this;clearTimeout(this._timeoutTimer),this._logger=t.logger,this._range=t.range||[0,0],this._onProgress=t.onProgress,this._index=t.index,this._headers=t.headers,this._withCredentials="include"===t.credentials||"same-origin"===t.credentials,this._logger.debug("【xhrLoader task】, range",this._range);var r=t.url,n=t.params,o=t.timeout,i=t.responseType,a=t.onTimeout,u=t.transformResponse,s=t.onProgress,c=t.method,f=t.credentials,l=t.body,h=t.index,d=t.range,p=t.request,v=!1;this._timeout=o||null,this._runing=!0,this._url=Tm(r,n);var y=Date.now();return this._onProgress&&d.length>1&&d[1]&&d[1]-d[0]>1024*this._currentChunkSizeKB?(this._logger.debug("【xhrLoader】, task",this._range,", need to sub range"),this._openSubRange(),new Promise((function(t,r){e._loadCompleteResolve=t,e._loadCompleteReject=r}))):new Promise((function(t,n){var g=e._xhr=new XMLHttpRequest;g.open(c||"GET",r,!0),g.responseType=i,g.withCredentials="include"===f||"same-origin"===f;var m=wm(d),b=null;m&&((b=e._headers||{}).Range=m),b&&Object.keys(b).forEach((function(t){g.setRequestHeader(t,b[t])})),o&&(e._timeoutTimer=setTimeout((function(){if(v=!0,e.cancel(),a){var t=new Rg(r,p);t.isTimeout=!0,a(t)}}),o)),g.onerror=function(t){return n(t)},g.onreadystatechange=function(){if(g.readyState>=2){clearTimeout(e._timeoutTimer);var o=Date.now();if(4===g.readyState){if(g.onreadystatechange=null,e._aborted)return;var i=g.status,a={ok:i>=200&&i<300,status:i,statusText:g.statusText,url:g.responseURL,headers:e._getHeaders(g),body:g.response};if(u&&(a=u(a,r)||a),!a.ok)return n(new Rg(r,p,a,"bad network response"));var c=g.responseType===Ag,f=c?new Uint8Array(g.response):g.response;s&&s(c?f:void 0,!0,{range:e._range,index:e._index,startTime:y,endTime:Date.now()},a),e._runing=!1,t(Sm(f,!0,a,a.headers["content-length"],a.headers.age,y,o,h,e._range))}}},g.send(l)})).catch((function(t){if(clearTimeout(e._timeoutTimer),e._runing=!1,!e._aborted||v)throw(t=t instanceof Rg?t:new Rg(r,p)).startTime=y,t.endTime=Date.now(),t.isTimeout=v,t}))}},{key:"_openSubRange",value:function(){var t=1024*this._currentChunkSizeKB,e=this._range[0]+this._receivedLength;this._logger.debug("[xhr_loader->] ,tast: ",this._range,",subRangeFrom ",e,", currentReceivedLength, ",this._receivedLength);var r=this._range[1];t<this._range[1]-e&&(r=e+t);var n=[e,r];this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",n),this._internalOpen(this._url,n)}},{key:"_internalOpen",value:function(t,e){var r=this;this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onerror=function(t){r._running=!1,r._loadCompleteReject(t)},n.ontimeout=function(t){r._running=!1,r._loadCompleteReject(t)};var o=wm(e),i=null;o&&((i=this._headers||{}).Range=o),i&&Object.keys(i).forEach((function(t){n.setRequestHeader(t,i[t])})),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send()}},{key:"_onLoad",value:function(t){var e=t.target.status;(e<200||e>299)&&this._loadCompleteReject(new Rg(url,null,t.target.response,"bad response,status:"+e));var r=this._speedSampler.lastSecondKBps;if(0===r&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(r=this._speedSampler.currentKBps)),0!==r){var n=this._normalizeSpeed(r);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var o=t.target.response;this._firstByteTime&&(this._firstByteTime=Date.now());var i,a=this._range[0]+this._receivedLength;if(this._receivedLength+=o.byteLength,this._logger.debug("[xhr load done->], tast :",this._range,", from",a,"end ",this._range[0]+this._receivedLength,",dataLen,",o.byteLength,",receivedLength",this._receivedLength),i=!(this._range.length>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._onProgress&&(this._logger.debug("[xhr onDataArrivalCall],tast :",this._range,",start, ",a,",end, ",this._range[0]+this._receivedLength,",index,",this._index),this._onProgress(o,i,{index:this._index,range:[a,this._range[0]+this._receivedLength],startTime:this._startTime,endTime:Date.now()},null)),i){this._runing=!1;var u={ok:e>=200&&e<300,status:e,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._loadCompleteResolve&&this._loadCompleteResolve(Sm(null,!0,u,u.headers["content-length"],u.headers.age,this._startTime,this._firstByteTime,this._index,this._range))}else this._openSubRange()}},{key:"_normalizeSpeed",value:function(t){var e=this._chunkSizeKBList,r=e.length-1,n=0,o=0,i=r;if(t<e[0])return e[0];for(;o<=i;){if((n=o+Math.floor((i-o)/2))===r||t>=e[n]&&t<e[n+1])return e[n];e[n]<t?o=n+1:i=n-1}}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}},{key:"_getHeaders",value:function(t){var e,r={},n=Ob(t.getAllResponseHeaders().trim().split("\r\n"));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(": ");r[o[0].toLowerCase()]=o.slice(1).join(": ")}}catch(t){n.e(t)}finally{n.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),t}(),Eb=["retry","retryDelay","onRetryError","transformError"],Cb=localStorage.getItem("type"),Rb=function(){function t(e,r){n(this,t),this.promise=function(){var t,e,r=new Promise((function(r,n){t=r,e=n}));return r.used=!1,r.resolve=function(){return r.used=!0,t.apply(void 0,arguments)},r.reject=function(){return r.used=!0,e.apply(void 0,arguments)},r}(),this.alive=!!r.onProgress,this._loaderType=e,this._loader=e!==kg||Cb?new jb:new km,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._logger=r.logger}var o;return i(t,[{key:"exec",value:function(){var t=this,n=this._config,o=n.retry,i=n.retryDelay,a=n.onRetryError,u=n.transformError,s=r(n,Eb),c=function(){var r=e(Vi.mark((function e(){var r,n;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t._logger.debug("[task request ready to load]",s.range),e.next=4,t._loader.load(s);case 4:r=e.sent,t._loader.running=!1,t.promise.resolve(r),e.next=27;break;case 9:if(e.prev=9,e.t0=e.catch(0),t._loader.running=!1,t._logger.debug("[task request catch err]",e.t0.errorMessage),!t._canceled){e.next=15;break}return e.abrupt("return");case 15:if(e.t0.loaderType=t._loaderType,e.t0.retryCount=t._retryCount,n=e.t0,u&&(n=u(n)||n),a&&t._retryCount>0&&a(n,t._retryCount,o),t._retryCount++,!(t._retryCount<=o)){e.next=26;break}return clearTimeout(t._retryTimer),t._logger.debug("[task request setTimeout],retry",t._retryCount,",retry range,",s.range),t._retryTimer=setTimeout(c,i),e.abrupt("return");case 26:t.promise.reject(n);case 27:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return r.apply(this,arguments)}}();return this._logger.debug("[task request start]",this._config.range),c(),this.promise}},{key:"cancel",value:(o=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,t.abrupt("return",this._loader.cancel());case 4:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}}]),t}(),Lb=function(){function t(e){n(this,t),a(this,"type",kg),a(this,"_queue",[]),a(this,"_alive",[]),a(this,"_currentTask",null),this._config=Am(e),this._config.loaderType!==Og&&km.isSupported()||(this.type=Og),this.log=e.logger}return i(t,[{key:"isFetch",value:function(){return this.type===kg}},{key:"load",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t&&t?e=t:e.url=t||e.url||this._config.url,(e=Object.assign({},this._config,e)).params&&(e.params=Object.assign({},e.params)),e.headers&&_m(e.headers)&&(e.headers=Object.assign({},e.headers)),e.body&&_m(e.body)&&(e.body=Object.assign({},e.body)),e.transformRequest&&(e=e.transformRequest(e)||e),e.logger=this.log;var r=new Rb(this.type,e);return this.log.debug("[task add queue]",e.range,", queueLen,",this._queue.length),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:function(){var t=this._queue.map((function(t){return t.cancel()})).concat(this._alive.map((function(t){return t.cancel()})));return this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],Promise.all(t)}},{key:"_processTask",value:function(){var t=this;this._currentTask=this._queue.shift(),this._currentTask&&(this._currentTask.alive&&this._alive.push(this._currentTask),this.log.debug("[task exec]",this._currentTask._config.range,", queueLen,",this._queue.length),this._currentTask.exec().finally((function(){t._processTask()})))}}],[{key:"isFetchSupport",value:function(){return km.isSupported()}}]),t}();function Pb(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e=e.filter(Boolean);var n=new Uint8Array(e.reduce((function(t,e){return t+e.byteLength}),0)),o=0;return e.forEach((function(t){n.set(t,o),o+=t.byteLength})),n}var Ib=localStorage.getItem("playerlog"),Bb=function(){function t(e){n(this,t),this.name=e||"",this._prefix="[".concat(this.name,"]"),t.disabled=!!Ib}return i(t,[{key:"debug",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).debug.apply(e,[this._prefix].concat(n))}}},{key:"log",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).log.apply(e,[this._prefix].concat(n))}}},{key:"warn",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).warn.apply(e,[this._prefix].concat(n))}}},{key:"error",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).error.apply(e,[this._prefix].concat(n))}}},{key:"table",value:function(){var e;t.disabled||(console.group(this._prefix),(e=console).table.apply(e,arguments),console.groupEnd())}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();a(Bb,"disabled",!0);var Mb=Qe.includes,Db=wn;Rr({target:"Array",proto:!0},{includes:function(t){return Mb(this,t,arguments.length>1?arguments[1]:void 0)}}),Db("includes");var zb=Jm,Fb=mt("match"),Nb=function(t){if(zb(t))throw TypeError("The method doesn't accept regular expressions");return t},Ub=k,qb=Qn;Rr({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Fb]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~qb(Ub(this)).indexOf(qb(Nb(t)),arguments.length>1?arguments[1]:void 0)}});var Yb="hevc",Gb=Xt.exports,Vb=qt,$b=Qn,Wb=l,Kb=ll,Hb="toString",Qb=RegExp.prototype,Xb=Qb.toString,Jb=Wb((function(){return"/a/b"!=Xb.call({source:"a",flags:"b"})})),Zb=Xb.name!=Hb;(Jb||Zb)&&Gb(RegExp.prototype,Hb,(function(){var t=Vb(this),e=$b(t.source),r=t.flags;return"/"+e+"/"+$b(void 0===r&&t instanceof RegExp&&!("flags"in Qb)?Kb.call(t):r)}),{unsafe:!0});var t_="undefined"!=typeof window,e_=t_&&navigator.userAgent.toLocaleLowerCase();t_&&/^((?!chrome|android).)*safari/.test(e_);var r_=t_&&e_.includes("firefox"),n_=t_&&e_.includes("android"),o_=Math.pow(2,32);function i_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<8)+(t[e+1]||0)}function a_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<24>>>0)+(t[e+1]<<16)+(t[e+2]<<8)+(t[e+3]||0)}function u_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a_(t,e)*o_+a_(t,e+4)}var s_=function(){function t(){n(this,t)}return i(t,null,[{key:"getRateIndexByRate",value:function(e){return t.FREQ.indexOf(e)}},{key:"parseADTS",value:function(e,r){for(var n=e.length,o=0;o+2<n&&(255!==e[o]||240!=(246&e[o+1]));)o++;if(!(o>=n)){var i=o,a=[],u=(60&e[o+2])>>>2,s=t.FREQ[u];if(!s)throw new Error("Invalid sampling index: ".concat(u));for(var c,f,l=1+((192&e[o+2])>>>6),h=(1&e[o+2])<<2|(192&e[o+3])>>>6,d=t._getConfig(u,h,l),p=d.config,v=d.codec,y=0,g=t.getFrameDuration(s);o+7<n;)if(255===e[o]&&240==(246&e[o+1])){if(n-o<(f=(3&e[o+3])<<11|e[o+4]<<3|(224&e[o+5])>>5))break;c=2*(1&~e[o+1]),a.push({pts:r+y*g,data:e.subarray(o+7+c,o+f)}),y++,o+=f}else o++;return{skip:i,remaining:o>=n?void 0:e.subarray(o),frames:a,samplingFrequencyIndex:u,sampleRate:s,objectType:l,channelCount:h,codec:v,config:p,originCodec:"mp4a.40.".concat(l)}}}},{key:"parseAudioSpecificConfig",value:function(e){if(e.length){var r=e[0]>>>3,n=(7&e[0])<<1|e[1]>>>7,o=(120&e[1])>>>3,i=t.FREQ[n];if(!i)throw new Error("Invalid sampling index: ".concat(n));var a=t._getConfig(n,o,r);return{samplingFrequencyIndex:n,sampleRate:i,objectType:r,channelCount:o,config:a.config,codec:a.codec,originCodec:"mp4a.40.".concat(r)}}}},{key:"getFrameDuration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*e/t}},{key:"_getConfig",value:function(t,e,r){var n,o,i=[];return r_?t>=6?(n=5,o=t-3):(n=2,o=t):n_?(n=2,o=t):(n=r,o=t,t>=6?o=t-3:1===e&&(n=2,o=t)),i[0]=n<<3,i[0]|=(14&t)>>1,i[1]=(1&t)<<7,i[1]|=e<<3,5===n&&(i[1]|=(14&o)>>1,i[2]=(1&o)<<7,i[2]|=8,i[3]=0),{config:i,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}]),t}();function c_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f_(t){return function(t){if(Array.isArray(t))return c_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c_(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}a(s_,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var l_=ze,h_=Qn,d_=k,p_=Ue,v_=Qn,y_=function(t){var e=h_(d_(this)),r="",n=l_(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},g_=k,m_=Math.ceil,b_=function(t){return function(e,r,n){var o,i,a=v_(g_(e)),u=a.length,s=void 0===n?" ":v_(n),c=p_(r);return c<=u||""==s?a:(o=c-u,(i=y_.call(s,m_(o/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},__={start:b_(!1),end:b_(!0)},w_=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(P),x_=__.start;Rr({target:"String",proto:!0,forced:w_},{padStart:function(t){return x_(this,t,arguments.length>1?arguments[1]:void 0)}});var T_=Nt,S_=ll;h&&l((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&T_.f(RegExp.prototype,"flags",{configurable:!0,get:S_});var k_=function(){function t(){n(this,t)}return i(t,null,[{key:"findBox",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[];if(!e)return o;for(var i=0,a="",u=0;e.length>7;){if(i=a_(e),a=String.fromCharCode.apply(null,e.subarray(4,8)),u=8,1===i?(i=u_(e,8),u+=8):i||(i=e.length),!r[0]||a===r[0]){var s=e.subarray(0,i);if(!(r.length<2))return t.findBox(s.subarray(u),r.slice(1),n+u);o.push({start:n,size:i,headerSize:u,type:a,data:s})}n+=i,e=e.subarray(i)}return o}},{key:"moov",value:function(e){return j_(e,!1,(function(e,r,n){e.mvhd=t.mvhd(t.findBox(r,["mvhd"],n)[0]),e.trak=t.findBox(r,["trak"],n).map((function(e){return t.trak(e)}))}))}},{key:"mvhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=a_(e,16),t.duration=u_(e,20),r+=28):(t.timescale=a_(e,8),t.duration=a_(e,12),r+=16),t.nextTrackId=a_(e,r+76)}))}},{key:"trak",value:function(e){return j_(e,!1,(function(e,r,n){e.tkhd=t.tkhd(t.findBox(r,["tkhd"],n)[0]),e.mdia=t.mdia(t.findBox(r,["mdia"],n)[0])}))}},{key:"tkhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.trackId=a_(e,16),t.duration=u_(e,24),r+=32):(t.trackId=a_(e,8),t.duration=a_(e,16),r+=20),t.width=a_(e,r+52),t.height=a_(e,r+56)}))}},{key:"mdia",value:function(e){return j_(e,!1,(function(e,r,n){e.mdhd=t.mdhd(t.findBox(r,["mdhd"],n)[0]),e.hdlr=t.hdlr(t.findBox(r,["hdlr"],n)[0]),e.minf=t.minf(t.findBox(r,["minf"],n)[0])}))}},{key:"mdhd",value:function(t){return j_(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=a_(e,16),t.duration=u_(e,20),r+=28):(t.timescale=a_(e,8),t.duration=a_(e,12),r+=16);var n=i_(e,r);t.language=String.fromCharCode(96+(n>>10&31),96+(n>>5&31),96+(31&n))}))}},{key:"hdlr",value:function(t){return j_(t,!0,(function(t,e){0===t.version&&(t.handlerType=String.fromCharCode.apply(null,e.subarray(4,8)))}))}},{key:"minf",value:function(e){return j_(e,!1,(function(e,r,n){e.vmhd=t.vmhd(t.findBox(r,["vmhd"],n)[0]),e.smhd=t.smhd(t.findBox(r,["smhd"],n)[0]),e.stbl=t.stbl(t.findBox(r,["stbl"],n)[0])}))}},{key:"vmhd",value:function(t){return j_(t,!0,(function(t,e){t.graphicsmode=i_(e),t.opcolor=[i_(e,2),i_(e,4),i_(e,6)]}))}},{key:"smhd",value:function(t){return j_(t,!0,(function(t,e){t.balance=i_(e)}))}},{key:"stbl",value:function(e){return j_(e,!1,(function(e,r,n){e.stsd=t.stsd(t.findBox(r,["stsd"],n)[0]),e.stts=t.stts(t.findBox(r,["stts"],n)[0]),e.ctts=t.ctts(t.findBox(r,["ctts"],n)[0]),e.stsc=t.stsc(t.findBox(r,["stsc"],n)[0]),e.stsz=t.stsz(t.findBox(r,["stsz"],n)[0]),e.stco=t.stco(t.findBox(r,["stco"],n)[0]),e.stss=t.stss(t.findBox(r,["stss"],n)[0])}))}},{key:"stsd",value:function(e){return j_(e,!0,(function(e,r,n){e.entryCount=a_(r),e.entries=t.findBox(r.subarray(4),[],n+4).map((function(e){switch(e.type){case"avc1":case"avc2":case"avc3":case"avc4":return t.avc1(e);case"hvc1":case"hev1":return t.hvc1(e);case"mp4a":return t.mp4a(e)}})).filter(Boolean)}))}},{key:"avc1",value:function(e){return j_(e,!1,(function(e,r,n){var o=A_(e,r),i=r.subarray(o);n+=o,e.avcC=t.avcC(t.findBox(i,["avcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"avcC",value:function(t){return j_(t,!1,(function(t,e){t.configurationVersion=e[0],t.AVCProfileIndication=e[1],t.profileCompatibility=e[2],t.AVCLevelIndication=e[3],t.codec=function(t){for(var e,r="avc1.",n=0;n<3;n++)(e=t[n].toString(16)).length<2&&(e="0".concat(e)),r+=e;return r}([e[1],e[2],e[3]]),t.lengthSizeMinusOne=3&e[4],t.spsLength=31&e[5],t.sps=[];for(var r=6,n=0;n<t.spsLength;n++){var o=i_(e,r);r+=2,t.sps.push(e.subarray(r,r+o)),r+=o}t.ppsLength=e[r],r+=1,t.pps=[];for(var i=0;i<t.ppsLength;i++){var a=i_(e,r);r+=2,t.pps.push(e.subarray(r,r+=a)),r+=a}}))}},{key:"hvc1",value:function(e){return j_(e,!1,(function(e,r,n){var o=A_(e,r),i=r.subarray(o);n+=o,e.hvcC=t.hvcC(t.findBox(i,["hvcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"hvcC",value:function(t){return j_(t,!1,(function(e,r){e.data=t.data,e.codec="hev1.1.6.L93.B0",e.configurationVersion=r[0];var n=r[1];e.generalProfileSpace=n>>6,e.generalTierFlag=(32&n)>>5,e.generalProfileIdc=31&n,e.generalProfileCompatibility=a_(r,2),e.generalConstraintIndicatorFlags=r.subarray(6,12),e.generalLevelIdc=r[12],e.avgFrameRate=i_(r,19),e.numOfArrays=r[22],e.vps=[],e.sps=[],e.pps=[];for(var o=23,i=0,a=0,u=0,s=0;s<e.numOfArrays;s++){i=63&r[o],a=i_(r,o+1),o+=3;for(var c,f=[],l=0;l<a;l++)u=i_(r,o),o+=2,f.push(r.subarray(o,o+u)),o+=u;if(32===i)(c=e.vps).push.apply(c,f);else if(33===i){var h;(h=e.sps).push.apply(h,f)}else if(34===i){var d;(d=e.pps).push.apply(d,f)}}}))}},{key:"pasp",value:function(t){return j_(t,!1,(function(t,e){t.hSpacing=a_(e),t.vSpacing=a_(e,4)}))}},{key:"mp4a",value:function(e){return j_(e,!1,(function(e,r,n){var o=function(t,e){return t.dataReferenceIndex=i_(e,6),t.channelCount=i_(e,16),t.sampleSize=i_(e,18),t.sampleRate=a_(e,24)/65536,28}(e,r);e.esds=t.esds(t.findBox(r.subarray(o),["esds"],n+o)[0])}))}},{key:"esds",value:function(t){return j_(t,!0,(function(t,e){t.codec="mp4a.";for(var r=0,n=0,o=0,i=0;e.length;){for(i=e[r=0],n=e[r+1],r+=2;128&n;)o=(127&n)<<7,n=e[r],r+=1;if(o+=127&n,3===i)e=e.subarray(r+3);else{if(4!==i){if(5===i){var a=t.config=e.subarray(r,r+o),u=(248&a[0])>>3;return 31===u&&a.length>=2&&(u=32+((7&a[0])<<3)+((224&a[1])>>5)),t.objectType=u,void(t.codec+=u.toString(16))}return}t.codec+=(e[r].toString(16)+".").padStart(3,"0"),e=e.subarray(r+13)}}}))}},{key:"stts",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push({count:a_(e,o),delta:a_(e,o+4)}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"ctts",value:function(t){return j_(t,!0,(function(t,e){var r=a_(e),n=[],o=4;if(1===t.version)for(var i=0;i<r;i++)n.push({count:a_(e,o),offset:a_(e,o+4)}),o+=8;else for(var a=0;a<r;a++)n.push({count:a_(e,o),offset:-(1+~a_(e,o+4))}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"stsc",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push({firstChunk:a_(e,o),samplesPerChunk:a_(e,o+4),sampleDescriptionIndex:a_(e,o+8)}),o+=12;t.entryCount=r,t.entries=n}))}},{key:"stsz",value:function(t){return j_(t,!0,(function(t,e){var r=a_(e),n=a_(e,4),o=[];if(!r)for(var i=8,a=0;a<n;a++)o.push(a_(e,i)),i+=4;t.sampleSize=r,t.sampleCount=n,t.entrySizes=o}))}},{key:"stco",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push(a_(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"stss",value:function(t){return j_(t,!0,(function(t,e){for(var r=a_(e),n=[],o=4,i=0;i<r;i++)n.push(a_(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"moovToTrack",value:function(t,e,r){var n=t.trak;if(n&&n.length){var o=n.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),i=n.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(o&&e){var a=e;a.timescale=a.formatTimescale=o.mdia.mdhd.timescale,a.duration=o.mdia.mdhd.duration;var u=o.mdia.minf.stbl.stsd.entries[0];if(a.width=u.width,a.height=u.height,u.pasp&&(a.sarRatio=[u.pasp.hSpacing,u.pasp.vSpacing]),u.hvcC)a.codecType=Yb,a.codec=u.hvcC.codec,a.vps=u.hvcC.vps,a.sps=u.hvcC.sps,a.pps=u.hvcC.pps,a.hvcC=u.hvcC.data;else{if(!u.avcC)throw new Error("unknown video stsd entry");a.codec=u.avcC.codec,a.sps=u.avcC.sps,a.pps=u.avcC.pps}a.present=!0}if(i&&r){var s,c,f=r;f.timescale=f.formatTimescale=i.mdia.mdhd.timescale,f.duration=i.mdia.mdhd.duration;var l=i.mdia.minf.stbl.stsd.entries[0];f.sampleSize=l.sampleSize,f.sampleRate=l.sampleRate,f.channelCount=l.channelCount,f.sampleDuration=s_.getFrameDuration(f.sampleRate,f.timescale),f.objectType=(null===(s=l.esds)||void 0===s?void 0:s.objectType)||2,l.esds&&(f.config=Array.from(l.esds.config)),f.codec=(null===(c=l.esds)||void 0===c?void 0:c.codec)||"mp4a.40.2",f.sampleRateIndex=s_.getRateIndexByRate(f.sampleRate),f.present=!0}return{videoTrack:e,audioTrack:r}}}},{key:"moovToSamples",value:function(t){var e=t.trak;if(e&&e.length){var r=e.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),n=e.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(r||n){var o,i;if(r){var a,u,s=null===(a=r.mdia)||void 0===a||null===(u=a.minf)||void 0===u?void 0:u.stbl;if(!s)return;var c=s.stts,f=s.stsc,l=s.stsz,h=s.stco,d=s.stss,p=s.ctts;if(!(c&&f&&l&&h&&d))return;o=O_(c,f,l,h,p,d)}if(n){var v,y,g,m=null===(v=n.mdia)||void 0===v||null===(y=v.minf)||void 0===y?void 0:y.stbl;if(!m)return;var b=null===(g=n.mdia.mdhd)||void 0===g?void 0:g.timescale,_=m.stts,w=m.stsc,x=m.stsz,T=m.stco;if(!(b&&_&&w&&x&&T))return;i=O_(_,w,x,T)}return{videoSamples:o,audioSamples:i}}}}}]),t}();function O_(t,e,r,n,o,i){var a,u,s,c=[],f=null==o?void 0:o.entries,l=e.entries,h=n.entries,d=r.entrySizes,p=null==i?void 0:i.entries;p&&(a={},p.forEach((function(t){a[t-1]=!0}))),f&&(u=[],f.forEach((function(t){for(var e=t.count,r=t.offset,n=0;n<e;n++)u.push(r)})));var v=-1,y=0,g=0,m=0,b=0,_=0,w=l[0].samplesPerChunk,x=l[1]?l[1].firstChunk-1:1/0;return t.entries.forEach((function(t){for(var e=t.count,n=t.delta,o=0;o<e;o++)s={dts:y,duration:n,size:d[g]||r.sampleSize,offset:h[m]+_,index:g},p&&(s.keyframe=a[g],s.keyframe&&v++,s.gopId=v),u&&u[g]&&(s.pts=s.dts+u[g]),c.push(s),y+=n,++g<w?_+=s.size:(m++,_=0,m>=x&&(b++,x=l[b+1]?l[b+1].firstChunk-1:1/0),w+=l[b].samplesPerChunk)})),c}function A_(t,e){return t.dataReferenceIndex=i_(e,6),t.width=i_(e,24),t.height=i_(e,26),t.horizresolution=a_(e,28),t.vertresolution=a_(e,32),t.frameCount=i_(e,40),t.depth=i_(e,74),78}function j_(t,e,r){if(t){if(t.size!==t.data.length)throw new Error("box ".concat(t.type," size !== data.length"));var n={start:t.start,size:t.size,headerSize:t.headerSize,type:t.type};return e&&(n.version=t.data[t.headerSize],n.flags=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<16)+(t[e+1]<<8)+(t[e+2]||0)}(t.data,t.headerSize+1),n.headerSize+=4),r(n,t.data.subarray(n.headerSize),n.start+n.headerSize),n}}function E_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R_=function t(e,r){n(this,t),this.type="file",this.message=e,this.data=r},L_=function(){function t(){n(this,t),a(this,"_data",Object.create(null))}return i(t,[{key:"set",value:function(t,e){this._data[t]=e}},{key:"get",value:function(t){return this._data[t]}},{key:"clear",value:function(){this._data=Object.create(null)}}]),t}();function P_(t,e){var r=t.trak;if(r&&r.length){var n=r.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),o=r.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(n||o){var i,a=[],u=[];if(n){var s,c,f,l=null===(s=n.mdia)||void 0===s||null===(c=s.minf)||void 0===c?void 0:c.stbl;if(!l)return;var h=null===(f=n.mdia.mdhd)||void 0===f?void 0:f.timescale,d=l.stts,p=l.stsc,v=l.stsz,y=l.stco,g=l.stss;if(!(h&&d&&p&&v&&y&&g))return;i=(a=I_(e,h,d,p,v,y,g)).map((function(t){return t.endTime-t.startTime}))}if(o){var m,b,_,w=null===(m=o.mdia)||void 0===m||null===(b=m.minf)||void 0===b?void 0:b.stbl;if(!w)return;var x=null===(_=o.mdia.mdhd)||void 0===_?void 0:_.timescale,T=w.stts,S=w.stsc,k=w.stsz,O=w.stco;if(!(x&&T&&S&&k&&O))return;u=I_(e,x,T,S,k,O,null,i)}return{videoSegments:a,audioSegments:u}}}}function I_(t,e,r,n,o,i,a,u){var s,c,f,l=[],h=[],d=[],p=n.entries,v=i.entries,y=o.entrySizes,g=null==a?void 0:a.entries;g&&(s={},g.forEach((function(t){s[t-1]=!0})));var m=0,b=0,_=0,w=0,x=0,T=p[0].samplesPerChunk,S=p[1]?p[1].firstChunk-1:1/0;r.entries.forEach((function(t){var r=t.count,n=t.delta;f=n/e;for(var i=0;i<r;i++)c={startTime:m,duration:f,size:y[b]||o.sampleSize,offset:v[_]+x,index:b},g&&(c.keyframe=s[b],c.keyframe?(h.push([c]),d.push(c.duration)):(h[h.length-1].push(c),d[h.length-1]+=c.duration)),l.push(c),m+=f,++b<T?x+=c.size:(_++,x=0,_>=S&&(w++,S=p[w+1]?p[w+1].firstChunk-1:1/0),T+=p[w].samplesPerChunk)}));var k=l.length;if(k&&(!a||l[0].keyframe)){var O,A=[],j=[],E=0,C=function(){var t;O=j[j.length-1],A.push({index:A.length,startTime:(null===(t=A[A.length-1])||void 0===t?void 0:t.endTime)||j[0].startTime,endTime:O.startTime+O.duration,range:[j[0].offset,O.offset+O.size],frames:j}),E=0,j=[]};if(a)for(var R=0,L=0,P=h.length;L<P;L++){var I,B;if(E+=d[L],(I=j).push.apply(I,f_(h[L])),L+1<P){if((R=E+d[L+1])>=t)if(R-t<Math.abs(t-E))(B=j).push.apply(B,f_(h[L+1])),C(),L++;else C()}else C()}else for(var M=(u=u||[])[0]||t,D=0;D<k;D++)j.push(l[D]),E+=l[D].duration,(D+1>=k||E>=M)&&(C(),M=u[A.length]||t);return A}}function B_(t){var e="",r="",n=0,o=0,i=0,a=0,u=0;t.mvhd&&(u=t.mvhd.duration/t.mvhd.timescale);var s=t.trak;if(s){var c,f,l,h,d,p,v,y,g,m=s.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),b=s.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(m)if(c=null===(f=m.mdia)||void 0===f||null===(l=f.minf)||void 0===l||null===(h=l.stbl)||void 0===h?void 0:h.stsd.entries[0])n=c.width,o=c.height,e=null===(d=c.avcC||c.hvcC)||void 0===d?void 0:d.codec;if(b)if(c=null===(p=b.mdia)||void 0===p||null===(v=p.minf)||void 0===v||null===(y=v.stbl)||void 0===y?void 0:y.stsd.entries[0])i=c.channelCount,a=c.sampleRate,r=null===(g=c.esds)||void 0===g?void 0:g.codec}return{videoCodec:e,audioCodec:r,width:n,height:o,audioChannelCount:i,audioSampleRate:a,duration:u,moov:t}}function M_(t){return"number"==typeof t&&!isNaN(t)}var D_=["vid","moovEnd","segmentDuration","cache","maxDownloadInfoSize"];function z_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z_(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}return function(){function t(e){n(this,t),a(this,"vid",""),a(this,"url",""),a(this,"meta",{}),a(this,"downloadInfo",[]),a(this,"videoSegments",[]),a(this,"audioSegments",[]),a(this,"cache",null),a(this,"_currentSegmentIndex",-1),a(this,"_currentLoadingSegmentIndex",-1),a(this,"_transformError",(function(t){return t.type="network",t})),this._config=C_(C_({vid:"",moovEnd:8e3,segmentDuration:5,maxDownloadInfoSize:30,cache:null},e),{},{responseType:"arraybuffer"});var o=this._config,i=o.vid;o.moovEnd,o.segmentDuration;var u=o.cache;o.maxDownloadInfoSize;var s=r(o,D_);this.cache=u||new L_,this.vid=i||s.url,this.url=s.url,s.transformError=this._transformError,this.logger=new Bb("MP4Loader"),e.openLog&&Bb.enable(),s.logger=this.logger,this._loader=new Lb(s)}var o,u,s,c,f,l,h,d,p,v;return i(t,[{key:"isMetaLoaded",get:function(){return this.videoSegments.length||this.audioSegments.length}},{key:"setCurrentSegment",value:function(t){M_(t)&&(this._currentSegmentIndex=t)}},{key:"isLastSegment",value:function(t){var e,r;return!!M_(t)&&t===((null===(e=this.videoSegments[this.videoSegments.length-1])||void 0===e?void 0:e.index)||(null===(r=this.audioSegments[this.audioSegments.length-1])||void 0===r?void 0:r.index)||0)}},{key:"isSegmentLoading",value:function(t){return t===this._currentLoadingSegmentIndex}},{key:"changeUrl",value:(v=e(Vi.mark((function t(e){var r,n,o=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:e,n=o.length>2?o[2]:void 0,t.next=4,this.reset();case 4:e&&(this.url=e),r&&(this.vid=r),n&&(this._config.moovEnd=n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"getOrLoadMeta",value:(p=e(Vi.mark((function t(e){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(e);case 3:return t.abrupt("return",this.meta);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"loadMeta",value:(d=e(Vi.mark((function t(e,r){var n,o,i,a,u,s,c,f,l;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.next=3,this._loadData([0,r||this._config.moovEnd],e);case 3:if(o=t.sent){t.next=6;break}return t.abrupt("return");case 6:if(n.push(o),i=k_.findBox(o.data,["moov"])[0]){t.next=22;break}if(a=k_.findBox(o.data,["mdat"])[0]){t.next=12;break}throw new R_("cannot find moov or mdat box",o.data);case 12:return u=a.start+a.size,t.next=15,this._loadData([u],e);case 15:if(o=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(n.push(o),i=k_.findBox(o.data,["moov"],u)[0]){t.next=22;break}throw new R_("cannot find moov box",o.data);case 22:if(!(i.size>i.data.length)){t.next=30;break}return t.next=25,this._loadData([o.data.length,i.start+i.size-1],e);case 25:if(o=t.sent){t.next=28;break}return t.abrupt("return");case 28:n.push(o),i.data=Pb(i.data,o.data);case 30:if(s=k_.moov(i)){t.next=33;break}throw new R_("cannot parse moov box",i.data);case 33:if(c=P_(s,this._config.segmentDuration)){t.next=36;break}throw new R_("cannot parse segments",i.data);case 36:return this.meta=B_(s),f=c.videoSegments,l=c.audioSegments,this.videoSegments=f,this.audioSegments=l,t.abrupt("return",{meta:this.meta,videoSegments:f,audioSegments:l,responses:n});case 41:case"end":return t.stop()}}),t,this)}))),function(t,e){return d.apply(this,arguments)})},{key:"getSegmentByTime",value:function(t){var e,r;return this.videoSegments.length?(e=this.videoSegments.find((function(e){return e.startTime<=t&&e.endTime>t})))&&(r=this.audioSegments[e.index]):r=this.audioSegments.find((function(e){return e.startTime<=t&&e.endTime>t})),{video:e,audio:r}}},{key:"loadSegmentByTime",value:(h=e(Vi.mark((function t(e,r){var n,o,i,a,u=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(u.length>2&&void 0!==u[2])||u[2],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta(r);case 4:return o=this.getSegmentByTime(e),i=o.video,a=o.audio,t.abrupt("return",this._loadSegment(i,a,r,n));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:"loadNextSegment",value:(l=e(Vi.mark((function t(e){var r,n,o,i=arguments;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!(i.length>1&&void 0!==i[1])||i[1],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta();case 4:return n=this.videoSegments[this._currentSegmentIndex+1],o=this.audioSegments[this._currentSegmentIndex+1],t.abrupt("return",this._loadSegment(n,o,e,r));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"preload",value:(f=e(Vi.mark((function t(r){var n,o,i,a,u,s,c,f=this;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(!0);case 3:if(r&&!(r<0)){t.next=5;break}return t.abrupt("return");case 5:if(n=this.getSegmentByTime(r),o=n.video,i=n.audio,a=Math.max((null==o?void 0:o.index)||0,(null==i?void 0:i.index)||0)){t.next=9;break}return t.abrupt("return");case 9:return u=this.videoSegments.slice(0,a),s=this.audioSegments.slice(0,a),c=function(){var t=e(Vi.mark((function t(e){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e>a)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,f._loadSegment(u[e],s[e],!0,!1);case 4:return t.next=6,c(e+1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=14,c(0);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"cancel",value:function(){return this._loader.cancel()}},{key:"reset",value:(c=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._loader.cancel();case 2:this.vid=this.url="",this.meta={},this.downloadInfo=[],this.videoSegments=[],this.audioSegments=[],this._currentSegmentIndex=-1,this._currentLoadingSegmentIndex=-1;case 9:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"destroy",value:(s=e(Vi.mark((function t(){return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.cancel();case 2:this.cache.clear();case 3:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"_loadSegment",value:(u=e(Vi.mark((function t(e,r,n,o){var i,a;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||r){t.next=2;break}return t.abrupt("return");case 2:return i=(null==e?void 0:e.index)||(null==r?void 0:r.index)||0,this._currentLoadingSegmentIndex=i,t.prev=4,t.next=7,this._loadData([Math.min((null==e?void 0:e.range[0])||1/0,(null==r?void 0:r.range[0])||1/0),Math.max((null==e?void 0:e.range[1])||0,(null==r?void 0:r.range[1])||0)],n);case 7:a=t.sent;case 8:return t.prev=8,this._currentLoadingSegmentIndex=-1,t.finish(8);case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return o&&(this._currentSegmentIndex=i),a.video=e,a.audio=r,t.abrupt("return",a);case 17:case"end":return t.stop()}}),t,this,[[4,,8,11]])}))),function(t,e,r,n){return u.apply(this,arguments)})},{key:"loadData",value:(o=e(Vi.mark((function t(e,r,n){var o,i,a;return Vi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this._getCacheKey(e),t.next=3,this.cache.get(o);case 3:if(i=t.sent){t.next=10;break}return t.next=7,this._loader.load(this.url,F_({range:e},n));case 7:a=t.sent,t.next=11;break;case 10:a={data:i,state:!0,options:{fromCache:!0,range:e}};case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return i||(a.data&&this.downloadInfo.push({startTime:a.startTime,endTime:a.endTime,size:a.data.byteLength,range:e}),this.downloadInfo&&this.downloadInfo.length>this._config.maxDownloadInfoSize&&(this.downloadInfo=this.downloadInfo.slice(-this._config.maxDownloadInfoSize))),!i&&r&&this.cache.set(o,a.data),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"_getCacheKey",value:function(t){return(this.vid||this.url)+":"+t}}]),t}()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MP4Loader=e()}(this,(function(){"use strict";function t(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}}function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t){return t&&t.Math==Math&&t},s=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof u&&u)||function(){return this}()||Function("return this")(),f={},l=function(t){try{return!!t()}catch(t){return!0}},h=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=p,v=Function.prototype.call,y=d?v.bind(v):function(){return v.apply(v,arguments)},g={},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w=b&&!m.call({1:2},1);g.f=w?function(t){var e=b(this,t);return!!e&&e.enumerable}:m;var _,x,S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=p,T=Function.prototype,k=T.bind,j=T.call,A=O&&k.bind(j,j),E=O?function(t){return t&&A(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},L=E,P=L({}.toString),C=L("".slice),R=function(t){return C(P(t),8,-1)},I=E,M=l,B=R,D=s.Object,F=I("".split),N=M((function(){return!D("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?F(t,""):D(t)}:D,z=s.TypeError,U=function(t){if(null==t)throw z("Can't call method on "+t);return t},G=N,q=U,V=function(t){return G(q(t))},Y=function(t){return"function"==typeof t},W=Y,$=function(t){return"object"==typeof t?null!==t:W(t)},H=s,K=Y,Q=function(t){return K(t)?t:void 0},X=function(t,e){return arguments.length<2?Q(H[t]):H[t]&&H[t][e]},J=E({}.isPrototypeOf),Z=s,tt=X("navigator","userAgent")||"",et=Z.process,rt=Z.Deno,nt=et&&et.versions||rt&&rt.version,ot=nt&&nt.v8;ot&&(x=(_=ot.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!x&&tt&&(!(_=tt.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=tt.match(/Chrome\/(\d+)/))&&(x=+_[1]);var it=x,at=it,ut=l,ct=!!Object.getOwnPropertySymbols&&!ut((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&at&&at<41})),st=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=X,lt=Y,ht=J,pt=st,dt=s.Object,vt=pt?function(t){return"symbol"==typeof t}:function(t){var e=ft("Symbol");return lt(e)&&ht(e.prototype,dt(t))},yt=s.String,gt=Y,mt=function(t){try{return yt(t)}catch(t){return"Object"}},bt=s.TypeError,wt=function(t){if(gt(t))return t;throw bt(mt(t)+" is not a function")},_t=wt,xt=y,St=Y,Ot=$,Tt=s.TypeError,kt={exports:{}},jt=s,At=Object.defineProperty,Et=function(t,e){try{At(jt,t,{value:e,configurable:!0,writable:!0})}catch(r){jt[t]=e}return e},Lt=Et,Pt="__core-js_shared__",Ct=s[Pt]||Lt(Pt,{}),Rt=Ct;(kt.exports=function(t,e){return Rt[t]||(Rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var It=U,Mt=s.Object,Bt=function(t){return Mt(It(t))},Dt=Bt,Ft=E({}.hasOwnProperty),Nt=Object.hasOwn||function(t,e){return Ft(Dt(t),e)},zt=E,Ut=0,Gt=Math.random(),qt=zt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Ut+Gt,36)},Yt=s,Wt=kt.exports,$t=Nt,Ht=Vt,Kt=ct,Qt=st,Xt=Wt("wks"),Jt=Yt.Symbol,Zt=Jt&&Jt.for,te=Qt?Jt:Jt&&Jt.withoutSetter||Ht,ee=function(t){if(!$t(Xt,t)||!Kt&&"string"!=typeof Xt[t]){var e="Symbol."+t;Kt&&$t(Jt,t)?Xt[t]=Jt[t]:Xt[t]=Qt&&Zt?Zt(e):te(e)}return Xt[t]},re=y,ne=$,oe=vt,ie=function(t,e){var r=t[e];return null==r?void 0:_t(r)},ae=function(t,e){var r,n;if("string"===e&&St(r=t.toString)&&!Ot(n=xt(r,t)))return n;if(St(r=t.valueOf)&&!Ot(n=xt(r,t)))return n;if("string"!==e&&St(r=t.toString)&&!Ot(n=xt(r,t)))return n;throw Tt("Can't convert object to primitive value")},ue=ee,ce=s.TypeError,se=ue("toPrimitive"),fe=function(t,e){if(!ne(t)||oe(t))return t;var r,n=ie(t,se);if(n){if(void 0===e&&(e="default"),r=re(n,t,e),!ne(r)||oe(r))return r;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),ae(t,e)},le=vt,he=function(t){var e=fe(t,"string");return le(e)?e:e+""},pe=$,de=s.document,ve=pe(de)&&pe(de.createElement),ye=function(t){return ve?de.createElement(t):{}},ge=ye,me=!h&&!l((function(){return 7!=Object.defineProperty(ge("div"),"a",{get:function(){return 7}}).a})),be=h,we=y,_e=g,xe=S,Se=V,Oe=he,Te=Nt,ke=me,je=Object.getOwnPropertyDescriptor;f.f=be?je:function(t,e){if(t=Se(t),e=Oe(e),ke)try{return je(t,e)}catch(t){}if(Te(t,e))return xe(!we(_e.f,t,e),t[e])};var Ae={},Ee=h&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Le=s,Pe=$,Ce=Le.String,Re=Le.TypeError,Ie=function(t){if(Pe(t))return t;throw Re(Ce(t)+" is not an object")},Me=h,Be=me,De=Ee,Fe=Ie,Ne=he,ze=s.TypeError,Ue=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,qe="enumerable",Ve="configurable",Ye="writable";Ae.f=Me?De?function(t,e,r){if(Fe(t),e=Ne(e),Fe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ye in r&&!r.writable){var n=Ge(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ve in r?r.configurable:n.configurable,enumerable:qe in r?r.enumerable:n.enumerable,writable:!1})}return Ue(t,e,r)}:Ue:function(t,e,r){if(Fe(t),e=Ne(e),Fe(r),Be)try{return Ue(t,e,r)}catch(t){}if("get"in r||"set"in r)throw ze("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var We=Ae,$e=S,He=h?function(t,e,r){return We.f(t,e,$e(1,r))}:function(t,e,r){return t[e]=r,t},Ke={exports:{}},Qe=Y,Xe=Ct,Je=E(Function.toString);Qe(Xe.inspectSource)||(Xe.inspectSource=function(t){return Je(t)});var Ze,tr,er,rr=Xe.inspectSource,nr=Y,or=rr,ir=s.WeakMap,ar=nr(ir)&&/native code/.test(or(ir)),ur=kt.exports,cr=Vt,sr=ur("keys"),fr=function(t){return sr[t]||(sr[t]=cr(t))},lr={},hr=ar,pr=s,dr=E,vr=$,yr=He,gr=Nt,mr=Ct,br=fr,wr=lr,_r="Object already initialized",xr=pr.TypeError,Sr=pr.WeakMap;if(hr||mr.state){var Or=mr.state||(mr.state=new Sr),Tr=dr(Or.get),kr=dr(Or.has),jr=dr(Or.set);Ze=function(t,e){if(kr(Or,t))throw new xr(_r);return e.facade=t,jr(Or,t,e),e},tr=function(t){return Tr(Or,t)||{}},er=function(t){return kr(Or,t)}}else{var Ar=br("state");wr[Ar]=!0,Ze=function(t,e){if(gr(t,Ar))throw new xr(_r);return e.facade=t,yr(t,Ar,e),e},tr=function(t){return gr(t,Ar)?t[Ar]:{}},er=function(t){return gr(t,Ar)}}var Er={set:Ze,get:tr,has:er,enforce:function(t){return er(t)?tr(t):Ze(t,{})},getterFor:function(t){return function(e){var r;if(!vr(e)||(r=tr(e)).type!==t)throw xr("Incompatible receiver, "+t+" required");return r}}},Lr=h,Pr=Nt,Cr=Function.prototype,Rr=Lr&&Object.getOwnPropertyDescriptor,Ir=Pr(Cr,"name"),Mr={EXISTS:Ir,PROPER:Ir&&"something"===function(){}.name,CONFIGURABLE:Ir&&(!Lr||Lr&&Rr(Cr,"name").configurable)},Br=s,Dr=Y,Fr=Nt,Nr=He,zr=Et,Ur=rr,Gr=Mr.CONFIGURABLE,qr=Er.get,Vr=Er.enforce,Yr=String(String).split("String");(Ke.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:e;Dr(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Fr(r,"name")||Gr&&r.name!==c)&&Nr(r,"name",c),(o=Vr(r)).source||(o.source=Yr.join("string"==typeof c?c:""))),t!==Br?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Nr(t,e,r)):a?t[e]=r:zr(e,r)})(Function.prototype,"toString",(function(){return Dr(this)&&qr(this).source||Ur(this)}));var Wr={},$r=Math.ceil,Hr=Math.floor,Kr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Hr:$r)(e)},Qr=Kr,Xr=Math.max,Jr=Math.min,Zr=function(t,e){var r=Qr(t);return r<0?Xr(r+e,0):Jr(r,e)},tn=Kr,en=Math.min,rn=function(t){return t>0?en(tn(t),9007199254740991):0},nn=function(t){return rn(t.length)},on=V,an=Zr,un=nn,cn=function(t){return function(e,r,n){var o,i=on(e),a=un(i),u=an(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},sn={includes:cn(!0),indexOf:cn(!1)},fn=Nt,ln=V,hn=sn.indexOf,pn=lr,dn=E([].push),vn=function(t,e){var r,n=ln(t),o=0,i=[];for(r in n)!fn(pn,r)&&fn(n,r)&&dn(i,r);for(;e.length>o;)fn(n,r=e[o++])&&(~hn(i,r)||dn(i,r));return i},yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gn=vn,mn=yn.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return gn(t,mn)};var bn={};bn.f=Object.getOwnPropertySymbols;var wn=X,_n=Wr,xn=bn,Sn=Ie,On=E([].concat),Tn=wn("Reflect","ownKeys")||function(t){var e=_n.f(Sn(t)),r=xn.f;return r?On(e,r(t)):e},kn=Nt,jn=Tn,An=f,En=Ae,Ln=l,Pn=Y,Cn=/#|\.prototype\./,Rn=function(t,e){var r=Mn[In(t)];return r==Dn||r!=Bn&&(Pn(e)?Ln(e):!!e)},In=Rn.normalize=function(t){return String(t).replace(Cn,".").toLowerCase()},Mn=Rn.data={},Bn=Rn.NATIVE="N",Dn=Rn.POLYFILL="P",Fn=Rn,Nn=s,zn=f.f,Un=He,Gn=Ke.exports,qn=Et,Vn=function(t,e,r){for(var n=jn(e),o=En.f,i=An.f,a=0;a<n.length;a++){var u=n[a];kn(t,u)||r&&kn(r,u)||o(t,u,i(e,u))}},Yn=Fn,Wn=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?Nn:s?Nn[u]||qn(u,{}):(Nn[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=zn(r,n))&&a.value:r[n],!Yn(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vn(i,o)}(t.sham||o&&o.sham)&&Un(i,"sham",!0),Gn(r,n,i,t)}},$n=wt,Hn=p,Kn=E(E.bind),Qn=R,Xn=Array.isArray||function(t){return"Array"==Qn(t)},Jn={};Jn[ee("toStringTag")]="z";var Zn="[object z]"===String(Jn),to=s,eo=Zn,ro=Y,no=R,oo=ee("toStringTag"),io=to.Object,ao="Arguments"==no(function(){return arguments}()),uo=eo?no:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=io(t),oo))?r:ao?no(e):"Object"==(n=no(e))&&ro(e.callee)?"Arguments":n},co=E,so=l,fo=Y,lo=uo,ho=rr,po=function(){},vo=[],yo=X("Reflect","construct"),go=/^\s*(?:class|function)\b/,mo=co(go.exec),bo=!go.exec(po),wo=function(t){if(!fo(t))return!1;try{return yo(po,vo,t),!0}catch(t){return!1}},_o=function(t){if(!fo(t))return!1;switch(lo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bo||!!mo(go,ho(t))}catch(t){return!0}};_o.sham=!0;var xo=!yo||so((function(){var t;return wo(wo.call)||!wo(Object)||!wo((function(){t=!0}))||t}))?_o:wo,So=s,Oo=Xn,To=xo,ko=$,jo=ee("species"),Ao=So.Array,Eo=function(t){var e;return Oo(t)&&(e=t.constructor,(To(e)&&(e===Ao||Oo(e.prototype))||ko(e)&&null===(e=e[jo]))&&(e=void 0)),void 0===e?Ao:e},Lo=function(t,e){return $n(t),void 0===e?t:Hn?Kn(t,e):function(){return t.apply(e,arguments)}},Po=N,Co=Bt,Ro=nn,Io=function(t,e){return new(Eo(t))(0===e?0:e)},Mo=E([].push),Bo=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var h,p,d=Co(c),v=Po(d),y=Lo(s,f),g=Ro(v),m=0,b=l||Io,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(p=y(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Mo(w,h)}else switch(t){case 4:return!1;case 7:Mo(w,h)}return i?-1:n||o?o:w}},Do={forEach:Bo(0),map:Bo(1),filter:Bo(2),some:Bo(3),every:Bo(4),find:Bo(5),findIndex:Bo(6),filterReject:Bo(7)},Fo={},No=vn,zo=yn,Uo=Object.keys||function(t){return No(t,zo)},Go=h,qo=Ee,Vo=Ae,Yo=Ie,Wo=V,$o=Uo;Fo.f=Go&&!qo?Object.defineProperties:function(t,e){Yo(t);for(var r,n=Wo(e),o=$o(e),i=o.length,a=0;i>a;)Vo.f(t,r=o[a++],n[r]);return t};var Ho,Ko=X("document","documentElement"),Qo=Ie,Xo=Fo,Jo=yn,Zo=lr,ti=Ko,ei=ye,ri=fr("IE_PROTO"),ni=function(){},oi=function(t){return"<script>"+t+"</"+"script>"},ii=function(t){t.write(oi("")),t.close();var e=t.parentWindow.Object;return t=null,e},ai=function(){try{Ho=new ActiveXObject("htmlfile")}catch(t){}var t,e;ai="undefined"!=typeof document?document.domain&&Ho?ii(Ho):((e=ei("iframe")).style.display="none",ti.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(oi("document.F=Object")),t.close(),t.F):ii(Ho);for(var r=Jo.length;r--;)delete ai.prototype[Jo[r]];return ai()};Zo[ri]=!0;var ui=Object.create||function(t,e){var r;return null!==t?(ni.prototype=Qo(t),r=new ni,ni.prototype=null,r[ri]=t):r=ai(),void 0===e?r:Xo.f(r,e)},ci=ui,si=Ae,fi=ee("unscopables"),li=Array.prototype;null==li[fi]&&si.f(li,fi,{configurable:!0,value:ci(null)});var hi=function(t){li[fi][t]=!0},pi=Wn,di=Do.find,vi=hi,yi="find",gi=!0;yi in[]&&Array(1).find((function(){gi=!1})),pi({target:"Array",proto:!0,forced:gi},{find:function(t){return di(this,t,arguments.length>1?arguments[1]:void 0)}}),vi(yi);var mi=he,bi=Ae,wi=S,_i=function(t,e,r){var n=mi(e);n in t?bi.f(t,n,wi(0,r)):t[n]=r},xi=l,Si=it,Oi=ee("species"),Ti=function(t){return Si>=51||!xi((function(){var e=[];return(e.constructor={})[Oi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ki=E([].slice),ji=Wn,Ai=s,Ei=Xn,Li=xo,Pi=$,Ci=Zr,Ri=nn,Ii=V,Mi=_i,Bi=ee,Di=ki,Fi=Ti("slice"),Ni=Bi("species"),zi=Ai.Array,Ui=Math.max;ji({target:"Array",proto:!0,forced:!Fi},{slice:function(t,e){var r,n,o,i=Ii(this),a=Ri(i),u=Ci(t,a),c=Ci(void 0===e?a:e,a);if(Ei(i)&&(r=i.constructor,(Li(r)&&(r===zi||Ei(r.prototype))||Pi(r)&&null===(r=r[Ni]))&&(r=void 0),r===zi||void 0===r))return Di(i,u,c);for(n=new(void 0===r?zi:r)(Ui(c-u,0)),o=0;u<c;u++,o++)u in i&&Mi(n,o,i[u]);return n.length=o,n}});var Gi=Bt,qi=Uo;Wn({target:"Object",stat:!0,forced:l((function(){qi(1)}))},{keys:function(t){return qi(Gi(t))}});var Vi=p,Yi=Function.prototype,Wi=Yi.apply,$i=Yi.call,Hi="object"==typeof Reflect&&Reflect.apply||(Vi?$i.bind(Wi):function(){return $i.apply(Wi,arguments)}),Ki=uo,Qi=s.String,Xi={},Ji=Zr,Zi=nn,ta=_i,ea=s.Array,ra=Math.max,na=R,oa=V,ia=Wr.f,aa=function(t,e,r){for(var n=Zi(t),o=Ji(e,n),i=Ji(void 0===r?n:r,n),a=ea(ra(i-o,0)),u=0;o<i;o++,u++)ta(a,u,t[o]);return a.length=u,a},ua="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Xi.f=function(t){return ua&&"Window"==na(t)?function(t){try{return ia(t)}catch(t){return aa(ua)}}(t):ia(oa(t))};var ca={},sa=ee;ca.f=sa;var fa=s,la=Nt,ha=ca,pa=Ae.f,da=Ae.f,va=Nt,ya=ee("toStringTag"),ga=function(t,e,r){t&&!r&&(t=t.prototype),t&&!va(t,ya)&&da(t,ya,{configurable:!0,value:e})},ma=Wn,ba=s,wa=X,_a=Hi,xa=y,Sa=E,Oa=h,Ta=ct,ka=l,ja=Nt,Aa=Xn,Ea=Y,La=$,Pa=J,Ca=vt,Ra=Ie,Ia=Bt,Ma=V,Ba=he,Da=function(t){if("Symbol"===Ki(t))throw TypeError("Cannot convert a Symbol value to a string");return Qi(t)},Fa=S,Na=ui,za=Uo,Ua=Wr,Ga=Xi,qa=bn,Va=f,Ya=Ae,Wa=Fo,$a=g,Ha=ki,Ka=Ke.exports,Qa=kt.exports,Xa=lr,Ja=Vt,Za=ee,tu=ca,eu=function(t){var e=fa.Symbol||(fa.Symbol={});la(e,t)||pa(e,t,{value:ha.f(t)})},ru=ga,nu=Er,ou=Do.forEach,iu=fr("hidden"),au="Symbol",uu=Za("toPrimitive"),cu=nu.set,su=nu.getterFor(au),fu=Object.prototype,lu=ba.Symbol,hu=lu&&lu.prototype,pu=ba.TypeError,du=ba.QObject,vu=wa("JSON","stringify"),yu=Va.f,gu=Ya.f,mu=Ga.f,bu=$a.f,wu=Sa([].push),_u=Qa("symbols"),xu=Qa("op-symbols"),Su=Qa("string-to-symbol-registry"),Ou=Qa("symbol-to-string-registry"),Tu=Qa("wks"),ku=!du||!du.prototype||!du.prototype.findChild,ju=Oa&&ka((function(){return 7!=Na(gu({},"a",{get:function(){return gu(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=yu(fu,e);n&&delete fu[e],gu(t,e,r),n&&t!==fu&&gu(fu,e,n)}:gu,Au=function(t,e){var r=_u[t]=Na(hu);return cu(r,{type:au,tag:t,description:e}),Oa||(r.description=e),r},Eu=function(t,e,r){t===fu&&Eu(xu,e,r),Ra(t);var n=Ba(e);return Ra(r),ja(_u,n)?(r.enumerable?(ja(t,iu)&&t[iu][n]&&(t[iu][n]=!1),r=Na(r,{enumerable:Fa(0,!1)})):(ja(t,iu)||gu(t,iu,Fa(1,{})),t[iu][n]=!0),ju(t,n,r)):gu(t,n,r)},Lu=function(t,e){Ra(t);var r=Ma(e),n=za(r).concat(Iu(r));return ou(n,(function(e){Oa&&!xa(Pu,r,e)||Eu(t,e,r[e])})),t},Pu=function(t){var e=Ba(t),r=xa(bu,this,e);return!(this===fu&&ja(_u,e)&&!ja(xu,e))&&(!(r||!ja(this,e)||!ja(_u,e)||ja(this,iu)&&this[iu][e])||r)},Cu=function(t,e){var r=Ma(t),n=Ba(e);if(r!==fu||!ja(_u,n)||ja(xu,n)){var o=yu(r,n);return!o||!ja(_u,n)||ja(r,iu)&&r[iu][n]||(o.enumerable=!0),o}},Ru=function(t){var e=mu(Ma(t)),r=[];return ou(e,(function(t){ja(_u,t)||ja(Xa,t)||wu(r,t)})),r},Iu=function(t){var e=t===fu,r=mu(e?xu:Ma(t)),n=[];return ou(r,(function(t){!ja(_u,t)||e&&!ja(fu,t)||wu(n,_u[t])})),n};(Ta||(Ka(hu=(lu=function(){if(Pa(hu,this))throw pu("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Da(arguments[0]):void 0,e=Ja(t),r=function(t){this===fu&&xa(r,xu,t),ja(this,iu)&&ja(this[iu],e)&&(this[iu][e]=!1),ju(this,e,Fa(1,t))};return Oa&&ku&&ju(fu,e,{configurable:!0,set:r}),Au(e,t)}).prototype,"toString",(function(){return su(this).tag})),Ka(lu,"withoutSetter",(function(t){return Au(Ja(t),t)})),$a.f=Pu,Ya.f=Eu,Wa.f=Lu,Va.f=Cu,Ua.f=Ga.f=Ru,qa.f=Iu,tu.f=function(t){return Au(Za(t),t)},Oa&&(gu(hu,"description",{configurable:!0,get:function(){return su(this).description}}),Ka(fu,"propertyIsEnumerable",Pu,{unsafe:!0}))),ma({global:!0,wrap:!0,forced:!Ta,sham:!Ta},{Symbol:lu}),ou(za(Tu),(function(t){eu(t)})),ma({target:au,stat:!0,forced:!Ta},{for:function(t){var e=Da(t);if(ja(Su,e))return Su[e];var r=lu(e);return Su[e]=r,Ou[r]=e,r},keyFor:function(t){if(!Ca(t))throw pu(t+" is not a symbol");if(ja(Ou,t))return Ou[t]},useSetter:function(){ku=!0},useSimple:function(){ku=!1}}),ma({target:"Object",stat:!0,forced:!Ta,sham:!Oa},{create:function(t,e){return void 0===e?Na(t):Lu(Na(t),e)},defineProperty:Eu,defineProperties:Lu,getOwnPropertyDescriptor:Cu}),ma({target:"Object",stat:!0,forced:!Ta},{getOwnPropertyNames:Ru,getOwnPropertySymbols:Iu}),ma({target:"Object",stat:!0,forced:ka((function(){qa.f(1)}))},{getOwnPropertySymbols:function(t){return qa.f(Ia(t))}}),vu)&&ma({target:"JSON",stat:!0,forced:!Ta||ka((function(){var t=lu();return"[null]"!=vu([t])||"{}"!=vu({a:t})||"{}"!=vu(Object(t))}))},{stringify:function(t,e,r){var n=Ha(arguments),o=e;if((La(e)||void 0!==t)&&!Ca(t))return Aa(e)||(e=function(t,e){if(Ea(o)&&(e=xa(o,this,t,e)),!Ca(e))return e}),n[1]=e,_a(vu,null,n)}});if(!hu[uu]){var Mu=hu.valueOf;Ka(hu,uu,(function(t){return xa(Mu,this)}))}ru(lu,au),Xa[iu]=!0;var Bu=Do.filter;Wn({target:"Array",proto:!0,forced:!Ti("filter")},{filter:function(t){return Bu(this,t,arguments.length>1?arguments[1]:void 0)}});var Du=Wn,Fu=l,Nu=V,zu=f.f,Uu=h,Gu=Fu((function(){zu(1)}));Du({target:"Object",stat:!0,forced:!Uu||Gu,sham:!Uu},{getOwnPropertyDescriptor:function(t,e){return zu(Nu(t),e)}});var qu={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},Vu=ye("span").classList,Yu=Vu&&Vu.constructor&&Vu.constructor.prototype,Wu=Yu===Object.prototype?void 0:Yu,$u=l,Hu=Do.forEach,Ku=s,Qu=qu,Xu=Wu,Ju=function(t,e){var r=[][t];return!!r&&$u((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return Hu(this,t,arguments.length>1?arguments[1]:void 0)},Zu=He,tc=function(t){if(t&&t.forEach!==Ju)try{Zu(t,"forEach",Ju)}catch(e){t.forEach=Ju}};for(var ec in Qu)Qu[ec]&&tc(Ku[ec]&&Ku[ec].prototype);tc(Xu);var rc=Tn,nc=V,oc=f,ic=_i;Wn({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,r,n=nc(t),o=oc.f,i=rc(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&ic(a,e,r);return a}});var ac={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=T(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function y(){}function g(){}function m(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(E([])));_&&_!==r&&n.call(_,i)&&(b=_);var x=m.prototype=y.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return g.prototype=m,c(x,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},S(O.prototype),c(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),c(x,u,"Generator"),c(x,i,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(ac);var uc=ac.exports,cc=function(t){return t&&t.Math==Math&&t},sc=cc("object"==typeof globalThis&&globalThis)||cc("object"==typeof window&&window)||cc("object"==typeof self&&self)||cc("object"==typeof u&&u)||function(){return this}()||Function("return this")(),fc={},lc=function(t){try{return!!t()}catch(t){return!0}},hc=!lc((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pc={},dc={}.propertyIsEnumerable,vc=Object.getOwnPropertyDescriptor,yc=vc&&!dc.call({1:2},1);pc.f=yc?function(t){var e=vc(this,t);return!!e&&e.enumerable}:dc;var gc,mc,bc=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wc={}.toString,_c=function(t){return wc.call(t).slice(8,-1)},xc=_c,Sc="".split,Oc=lc((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==xc(t)?Sc.call(t,""):Object(t)}:Object,Tc=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},kc=Oc,jc=Tc,Ac=function(t){return kc(jc(t))},Ec=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Lc=sc,Pc=function(t){return"function"==typeof t?t:void 0},Cc=function(t,e){return arguments.length<2?Pc(Lc[t]):Lc[t]&&Lc[t][e]},Rc=Cc("navigator","userAgent")||"",Ic=sc,Mc=Rc,Bc=Ic.process,Dc=Ic.Deno,Fc=Bc&&Bc.versions||Dc&&Dc.version,Nc=Fc&&Fc.v8;Nc?mc=(gc=Nc.split("."))[0]<4?1:gc[0]+gc[1]:Mc&&(!(gc=Mc.match(/Edge\/(\d+)/))||gc[1]>=74)&&(gc=Mc.match(/Chrome\/(\d+)/))&&(mc=gc[1]);var zc=mc&&+mc,Uc=zc,Gc=lc,qc=!!Object.getOwnPropertySymbols&&!Gc((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Uc&&Uc<41})),Vc=qc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yc=Cc,Wc=Vc?function(t){return"symbol"==typeof t}:function(t){var e=Yc("Symbol");return"function"==typeof e&&Object(t)instanceof e},$c=Ec,Hc={exports:{}},Kc=sc,Qc=function(t,e){try{Object.defineProperty(Kc,t,{value:e,configurable:!0,writable:!0})}catch(r){Kc[t]=e}return e},Xc=Qc,Jc="__core-js_shared__",Zc=sc[Jc]||Xc(Jc,{}),ts=Zc;(Hc.exports=function(t,e){return ts[t]||(ts[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var es=Tc,rs=function(t){return Object(es(t))},ns=rs,os={}.hasOwnProperty,is=Object.hasOwn||function(t,e){return os.call(ns(t),e)},as=0,us=Math.random(),cs=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++as+us).toString(36)},ss=sc,fs=Hc.exports,ls=is,hs=cs,ps=qc,ds=Vc,vs=fs("wks"),ys=ss.Symbol,gs=ds?ys:ys&&ys.withoutSetter||hs,ms=function(t){return ls(vs,t)&&(ps||"string"==typeof vs[t])||(ps&&ls(ys,t)?vs[t]=ys[t]:vs[t]=gs("Symbol."+t)),vs[t]},bs=Ec,ws=Wc,_s=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!$c(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!$c(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!$c(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},xs=ms("toPrimitive"),Ss=function(t,e){if(!bs(t)||ws(t))return t;var r,n=t[xs];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!bs(r)||ws(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),_s(t,e)},Os=Wc,Ts=function(t){var e=Ss(t,"string");return Os(e)?e:String(e)},ks=Ec,js=sc.document,As=ks(js)&&ks(js.createElement),Es=function(t){return As?js.createElement(t):{}},Ls=Es,Ps=!hc&&!lc((function(){return 7!=Object.defineProperty(Ls("div"),"a",{get:function(){return 7}}).a})),Cs=hc,Rs=pc,Is=bc,Ms=Ac,Bs=Ts,Ds=is,Fs=Ps,Ns=Object.getOwnPropertyDescriptor;fc.f=Cs?Ns:function(t,e){if(t=Ms(t),e=Bs(e),Fs)try{return Ns(t,e)}catch(t){}if(Ds(t,e))return Is(!Rs.f.call(t,e),t[e])};var zs={},Us=Ec,Gs=function(t){if(!Us(t))throw TypeError(String(t)+" is not an object");return t},qs=hc,Vs=Ps,Ys=Gs,Ws=Ts,$s=Object.defineProperty;zs.f=qs?$s:function(t,e,r){if(Ys(t),e=Ws(e),Ys(r),Vs)try{return $s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Hs=zs,Ks=bc,Qs=hc?function(t,e,r){return Hs.f(t,e,Ks(1,r))}:function(t,e,r){return t[e]=r,t},Xs={exports:{}},Js=Zc,Zs=Function.toString;"function"!=typeof Js.inspectSource&&(Js.inspectSource=function(t){return Zs.call(t)});var tf,ef,rf,nf=Js.inspectSource,of=nf,af=sc.WeakMap,uf="function"==typeof af&&/native code/.test(of(af)),cf=Hc.exports,sf=cs,ff=cf("keys"),lf=function(t){return ff[t]||(ff[t]=sf(t))},hf={},pf=uf,df=Ec,vf=Qs,yf=is,gf=Zc,mf=lf,bf=hf,wf="Object already initialized",_f=sc.WeakMap;if(pf||gf.state){var xf=gf.state||(gf.state=new _f),Sf=xf.get,Of=xf.has,Tf=xf.set;tf=function(t,e){if(Of.call(xf,t))throw new TypeError(wf);return e.facade=t,Tf.call(xf,t,e),e},ef=function(t){return Sf.call(xf,t)||{}},rf=function(t){return Of.call(xf,t)}}else{var kf=mf("state");bf[kf]=!0,tf=function(t,e){if(yf(t,kf))throw new TypeError(wf);return e.facade=t,vf(t,kf,e),e},ef=function(t){return yf(t,kf)?t[kf]:{}},rf=function(t){return yf(t,kf)}}var jf={set:tf,get:ef,has:rf,enforce:function(t){return rf(t)?ef(t):tf(t,{})},getterFor:function(t){return function(e){var r;if(!df(e)||(r=ef(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Af=sc,Ef=Qs,Lf=is,Pf=Qc,Cf=nf,Rf=jf.get,If=jf.enforce,Mf=String(String).split("String");(Xs.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Lf(r,"name")||Ef(r,"name",e),(o=If(r)).source||(o.source=Mf.join("string"==typeof e?e:""))),t!==Af?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Ef(t,e,r)):a?t[e]=r:Pf(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Rf(this).source||Cf(this)}));var Bf={},Df=Math.ceil,Ff=Math.floor,Nf=function(t){return isNaN(t=+t)?0:(t>0?Ff:Df)(t)},zf=Nf,Uf=Math.min,Gf=function(t){return t>0?Uf(zf(t),9007199254740991):0},qf=Nf,Vf=Math.max,Yf=Math.min,Wf=function(t,e){var r=qf(t);return r<0?Vf(r+e,0):Yf(r,e)},$f=Ac,Hf=Gf,Kf=Wf,Qf=function(t){return function(e,r,n){var o,i=$f(e),a=Hf(i.length),u=Kf(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Xf={includes:Qf(!0),indexOf:Qf(!1)},Jf=is,Zf=Ac,tl=Xf.indexOf,el=hf,rl=function(t,e){var r,n=Zf(t),o=0,i=[];for(r in n)!Jf(el,r)&&Jf(n,r)&&i.push(r);for(;e.length>o;)Jf(n,r=e[o++])&&(~tl(i,r)||i.push(r));return i},nl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ol=rl,il=nl.concat("length","prototype");Bf.f=Object.getOwnPropertyNames||function(t){return ol(t,il)};var al={};al.f=Object.getOwnPropertySymbols;var ul,cl=Bf,sl=al,fl=Gs,ll=Cc("Reflect","ownKeys")||function(t){var e=cl.f(fl(t)),r=sl.f;return r?e.concat(r(t)):e},hl=is,pl=ll,dl=fc,vl=zs,yl=function(t,e){for(var r=pl(e),n=vl.f,o=dl.f,i=0;i<r.length;i++){var a=r[i];hl(t,a)||n(t,a,o(e,a))}},gl=lc,ml=/#|\.prototype\./,bl=function(t,e){var r=_l[wl(t)];return r==Sl||r!=xl&&("function"==typeof e?gl(e):!!e)},wl=bl.normalize=function(t){return String(t).replace(ml,".").toLowerCase()},_l=bl.data={},xl=bl.NATIVE="N",Sl=bl.POLYFILL="P",Ol=bl,Tl=sc,kl=fc.f,jl=Qs,Al=Xs.exports,El=Qc,Ll=yl,Pl=Ol,Cl=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?Tl:s?Tl[u]||El(u,{}):(Tl[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kl(r,n))&&a.value:r[n],!Pl(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ll(i,o)}(t.sham||o&&o.sham)&&jl(i,"sham",!0),Al(r,n,i,t)}},Rl=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Il=rl,Ml=nl,Bl=Object.keys||function(t){return Il(t,Ml)},Dl=zs,Fl=Gs,Nl=Bl,zl=hc?Object.defineProperties:function(t,e){Fl(t);for(var r,n=Nl(e),o=n.length,i=0;o>i;)Dl.f(t,r=n[i++],e[r]);return t},Ul=Cc("document","documentElement"),Gl=Gs,ql=zl,Vl=nl,Yl=hf,Wl=Ul,$l=Es,Hl=lf("IE_PROTO"),Kl=function(){},Ql=function(t){return"<script>"+t+"</"+"script>"},Xl=function(t){t.write(Ql("")),t.close();var e=t.parentWindow.Object;return t=null,e},Jl=function(){try{ul=new ActiveXObject("htmlfile")}catch(t){}var t,e;Jl="undefined"!=typeof document?document.domain&&ul?Xl(ul):((e=$l("iframe")).style.display="none",Wl.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ql("document.F=Object")),t.close(),t.F):Xl(ul);for(var r=Vl.length;r--;)delete Jl.prototype[Vl[r]];return Jl()};Yl[Hl]=!0;var Zl=Object.create||function(t,e){var r;return null!==t?(Kl.prototype=Gl(t),r=new Kl,Kl.prototype=null,r[Hl]=t):r=Jl(),void 0===e?r:ql(r,e)},th=Rl,eh=Ec,rh=[].slice,nh={},oh=function(t,e,r){if(!(e in nh)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";nh[e]=Function("C,a","return new C("+n.join(",")+")")}return nh[e](t,r)},ih=Function.bind||function(t){var e=th(this),r=rh.call(arguments,1),n=function(){var o=r.concat(rh.call(arguments));return this instanceof n?oh(e,o.length,o):e.apply(t,o)};return eh(e.prototype)&&(n.prototype=e.prototype),n},ah=Cl,uh=Rl,ch=Gs,sh=Ec,fh=Zl,lh=ih,hh=lc,ph=Cc("Reflect","construct"),dh=hh((function(){function t(){}return!(ph((function(){}),[],t)instanceof t)})),vh=!hh((function(){ph((function(){}))})),yh=dh||vh;function gh(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function mh(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){gh(i,n,o,a,u,"next",t)}function u(t){gh(i,n,o,a,u,"throw",t)}a(void 0)}))}}function bh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function wh(t,e,r){return e&&bh(t.prototype,e),r&&bh(t,r),t}function _h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sh(t,e){return(Sh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oh(t){return(Oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Th(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kh(t,e){if(e&&("object"===Oh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Th(t)}function jh(t){return(jh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ah(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Eh(t,e,r){return(Eh=Ah()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Sh(o,r.prototype),o}).apply(null,arguments)}function Lh(t){var e="function"==typeof Map?new Map:void 0;return(Lh=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Eh(t,arguments,jh(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sh(n,t)})(t)}ah({target:"Reflect",stat:!0,forced:yh,sham:yh},{construct:function(t,e){uh(t),ch(e);var r=arguments.length<3?t:uh(arguments[2]);if(vh&&!dh)return ph(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(lh.apply(t,n))}var o=r.prototype,i=fh(sh(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return sh(a)?a:i}});var Ph={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=T(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function y(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(E([])));_&&_!==r&&n.call(_,i)&&(b=_);var x=m.prototype=y.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},S(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),c(x,u,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(Ph);var Ch=Ph.exports,Rh=Zl,Ih=zs,Mh=ms("unscopables"),Bh=Array.prototype;null==Bh[Mh]&&Ih.f(Bh,Mh,{configurable:!0,value:Rh(null)});var Dh,Fh,Nh,zh=function(t){Bh[Mh][t]=!0},Uh={},Gh=!lc((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),qh=is,Vh=rs,Yh=Gh,Wh=lf("IE_PROTO"),$h=Object.prototype,Hh=Yh?Object.getPrototypeOf:function(t){return t=Vh(t),qh(t,Wh)?t[Wh]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?$h:null},Kh=lc,Qh=Hh,Xh=Qs,Jh=is,Zh=ms("iterator"),tp=!1;[].keys&&("next"in(Nh=[].keys())?(Fh=Qh(Qh(Nh)))!==Object.prototype&&(Dh=Fh):tp=!0),(null==Dh||Kh((function(){var t={};return Dh[Zh].call(t)!==t})))&&(Dh={}),Jh(Dh,Zh)||Xh(Dh,Zh,(function(){return this}));var ep={IteratorPrototype:Dh,BUGGY_SAFARI_ITERATORS:tp},rp=zs.f,np=is,op=ms("toStringTag"),ip=function(t,e,r){t&&!np(t=r?t:t.prototype,op)&&rp(t,op,{configurable:!0,value:e})},ap=ep.IteratorPrototype,up=Zl,cp=bc,sp=ip,fp=Uh,lp=function(){return this},hp=Ec,pp=Gs,dp=function(t){if(!hp(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},vp=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return pp(r),dp(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),yp=Cl,gp=function(t,e,r){var n=e+" Iterator";return t.prototype=up(ap,{next:cp(1,r)}),sp(t,n,!1),fp[n]=lp,t},mp=Hh,bp=vp,wp=ip,_p=Qs,xp=Xs.exports,Sp=Uh,Op=ep.IteratorPrototype,Tp=ep.BUGGY_SAFARI_ITERATORS,kp=ms("iterator"),jp="keys",Ap="values",Ep="entries",Lp=function(){return this},Pp=function(t,e,r,n,o,i,a){gp(r,e,n);var u,c,s,f=function(t){if(t===o&&v)return v;if(!Tp&&t in p)return p[t];switch(t){case jp:case Ap:case Ep:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[kp]||p["@@iterator"]||o&&p[o],v=!Tp&&d||f(o),y="Array"==e&&p.entries||d;if(y&&(u=mp(y.call(new t)),Op!==Object.prototype&&u.next&&(mp(u)!==Op&&(bp?bp(u,Op):"function"!=typeof u[kp]&&_p(u,kp,Lp)),wp(u,l,!0))),o==Ap&&d&&d.name!==Ap&&(h=!0,v=function(){return d.call(this)}),p[kp]!==v&&_p(p,kp,v),Sp[e]=v,o)if(c={values:f(Ap),keys:i?v:f(jp),entries:f(Ep)},a)for(s in c)(Tp||h||!(s in p))&&xp(p,s,c[s]);else yp({target:e,proto:!0,forced:Tp||h},c);return c},Cp=Ac,Rp=zh,Ip=Uh,Mp=jf,Bp=Pp,Dp="Array Iterator",Fp=Mp.set,Np=Mp.getterFor(Dp),zp=Bp(Array,"Array",(function(t,e){Fp(this,{type:Dp,target:Cp(t),index:0,kind:e})}),(function(){var t=Np(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ip.Arguments=Ip.Array,Rp("keys"),Rp("values"),Rp("entries");var Up={};Up[ms("toStringTag")]="z";var Gp="[object z]"===String(Up),qp=Gp,Vp=_c,Yp=ms("toStringTag"),Wp="Arguments"==Vp(function(){return arguments}()),$p=qp?Vp:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Yp))?r:Wp?Vp(e):"Object"==(n=Vp(e))&&"function"==typeof e.callee?"Arguments":n},Hp=$p,Kp=Gp?{}.toString:function(){return"[object "+Hp(this)+"]"},Qp=Gp,Xp=Xs.exports,Jp=Kp;Qp||Xp(Object.prototype,"toString",Jp,{unsafe:!0});var Zp=Wc,td=function(t){if(Zp(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ed=Nf,rd=td,nd=Tc,od=function(t){return function(e,r){var n,o,i=rd(nd(e)),a=ed(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},id={codeAt:od(!1),charAt:od(!0)},ad=id.charAt,ud=td,cd=jf,sd=Pp,fd="String Iterator",ld=cd.set,hd=cd.getterFor(fd);sd(String,"String",(function(t){ld(this,{type:fd,string:ud(t),index:0})}),(function(){var t,e=hd(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=ad(r,n),e.index+=t.length,{value:t,done:!1})}));var pd={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},dd=sc,vd=pd,yd=zp,gd=Qs,md=ms,bd=md("iterator"),wd=md("toStringTag"),_d=yd.values;for(var xd in vd){var Sd=dd[xd],Od=Sd&&Sd.prototype;if(Od){if(Od[bd]!==_d)try{gd(Od,bd,_d)}catch(t){Od[bd]=_d}if(Od[wd]||gd(Od,wd,xd),vd[xd])for(var Td in yd)if(Od[Td]!==yd[Td])try{gd(Od,Td,yd[Td])}catch(t){Od[Td]=yd[Td]}}}var kd=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},jd=hc,Ad=lc,Ed=Bl,Ld=al,Pd=pc,Cd=rs,Rd=Oc,Id=Object.assign,Md=Object.defineProperty,Bd=!Id||Ad((function(){if(jd&&1!==Id({b:1},Id(Md({},"a",{enumerable:!0,get:function(){Md(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Id({},t)[r]||Ed(Id({},e)).join("")!=n}))?function(t,e){for(var r=Cd(t),n=arguments.length,o=1,i=Ld.f,a=Pd.f;n>o;)for(var u,c=Rd(arguments[o++]),s=i?Ed(c).concat(i(c)):Ed(c),f=s.length,l=0;f>l;)u=s[l++],jd&&!a.call(c,u)||(r[u]=c[u]);return r}:Id,Dd=Rl,Fd=function(t,e,r){if(Dd(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Nd=Gs,zd=function(t){var e=t.return;if(void 0!==e)return Nd(e.call(t)).value},Ud=Gs,Gd=zd,qd=Uh,Vd=ms("iterator"),Yd=Array.prototype,Wd=function(t){return void 0!==t&&(qd.Array===t||Yd[Vd]===t)},$d=Ts,Hd=zs,Kd=bc,Qd=function(t,e,r){var n=$d(e);n in t?Hd.f(t,n,Kd(0,r)):t[n]=r},Xd=$p,Jd=Uh,Zd=ms("iterator"),tv=function(t){if(null!=t)return t[Zd]||t["@@iterator"]||Jd[Xd(t)]},ev=Fd,rv=rs,nv=function(t,e,r,n){try{return n?e(Ud(r)[0],r[1]):e(r)}catch(e){throw Gd(t),e}},ov=Wd,iv=Gf,av=Qd,uv=tv,cv=Xs.exports,sv=function(t,e,r){for(var n in e)cv(t,n,e[n],r);return t},fv=_c,lv=Array.isArray||function(t){return"Array"==fv(t)},hv=Ec,pv=lv,dv=ms("species"),vv=function(t){var e;return pv(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!pv(e.prototype)?hv(e)&&null===(e=e[dv])&&(e=void 0):e=void 0),void 0===e?Array:e},yv=function(t,e){return new(vv(t))(0===e?0:e)},gv=Fd,mv=Oc,bv=rs,wv=Gf,_v=yv,xv=[].push,Sv=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var h,p,d=bv(c),v=mv(d),y=gv(s,f,3),g=wv(v.length),m=0,b=l||_v,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(p=y(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:xv.call(w,h)}else switch(t){case 4:return!1;case 7:xv.call(w,h)}return i?-1:n||o?o:w}},Ov={forEach:Sv(0),map:Sv(1),filter:Sv(2),some:Sv(3),every:Sv(4),find:Sv(5),findIndex:Sv(6),filterReject:Sv(7)},Tv=lc,kv=function(t,e){var r=[][t];return!!r&&Tv((function(){r.call(null,e||function(){throw 1},1)}))},jv=Ov.forEach,Av=sc,Ev=pd,Lv=kv("forEach")?[].forEach:function(t){return jv(this,t,arguments.length>1?arguments[1]:void 0)},Pv=Qs;for(var Cv in Ev){var Rv=Av[Cv],Iv=Rv&&Rv.prototype;if(Iv&&Iv.forEach!==Lv)try{Pv(Iv,"forEach",Lv)}catch(t){Iv.forEach=Lv}}var Mv=rs,Bv=Bl;Cl({target:"Object",stat:!0,forced:lc((function(){Bv(1)}))},{keys:function(t){return Bv(Mv(t))}});var Dv=sc.Promise,Fv=Cc,Nv=zs,zv=hc,Uv=ms("species"),Gv=function(t){var e=Fv(t),r=Nv.f;zv&&e&&!e[Uv]&&r(e,Uv,{configurable:!0,get:function(){return this}})},qv=Gs,Vv=Wd,Yv=Gf,Wv=Fd,$v=tv,Hv=zd,Kv=function(t,e){this.stopped=t,this.result=e},Qv=ms("iterator"),Xv=!1;try{var Jv=0,Zv={next:function(){return{done:!!Jv++}},return:function(){Xv=!0}};Zv[Qv]=function(){return this},Array.from(Zv,(function(){throw 2}))}catch(t){}var ty,ey,ry,ny,oy=function(t,e){if(!e&&!Xv)return!1;var r=!1;try{var n={};n[Qv]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},iy=Gs,ay=Rl,uy=ms("species"),cy=function(t,e){var r,n=iy(t).constructor;return void 0===n||null==(r=iy(n)[uy])?e:ay(r)},sy=/(?:ipad|iphone|ipod).*applewebkit/i.test(Rc),fy="process"==_c(sc.process),ly=sc,hy=lc,py=Fd,dy=Ul,vy=Es,yy=sy,gy=fy,my=ly.setImmediate,by=ly.clearImmediate,wy=ly.process,_y=ly.MessageChannel,xy=ly.Dispatch,Sy=0,Oy={},Ty="onreadystatechange";try{ty=ly.location}catch(t){}var ky=function(t){if(Oy.hasOwnProperty(t)){var e=Oy[t];delete Oy[t],e()}},jy=function(t){return function(){ky(t)}},Ay=function(t){ky(t.data)},Ey=function(t){ly.postMessage(String(t),ty.protocol+"//"+ty.host)};my&&by||(my=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return Oy[++Sy]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ey(Sy),Sy},by=function(t){delete Oy[t]},gy?ey=function(t){wy.nextTick(jy(t))}:xy&&xy.now?ey=function(t){xy.now(jy(t))}:_y&&!yy?(ny=(ry=new _y).port2,ry.port1.onmessage=Ay,ey=py(ny.postMessage,ny,1)):ly.addEventListener&&"function"==typeof postMessage&&!ly.importScripts&&ty&&"file:"!==ty.protocol&&!hy(Ey)?(ey=Ey,ly.addEventListener("message",Ay,!1)):ey=Ty in vy("script")?function(t){dy.appendChild(vy("script")).onreadystatechange=function(){dy.removeChild(this),ky(t)}}:function(t){setTimeout(jy(t),0)});var Ly,Py,Cy,Ry,Iy,My,By,Dy,Fy={set:my,clear:by},Ny=sc,zy=/ipad|iphone|ipod/i.test(Rc)&&void 0!==Ny.Pebble,Uy=/web0s(?!.*chrome)/i.test(Rc),Gy=sc,qy=fc.f,Vy=Fy.set,Yy=sy,Wy=zy,$y=Uy,Hy=fy,Ky=Gy.MutationObserver||Gy.WebKitMutationObserver,Qy=Gy.document,Xy=Gy.process,Jy=Gy.Promise,Zy=qy(Gy,"queueMicrotask"),tg=Zy&&Zy.value;tg||(Ly=function(){var t,e;for(Hy&&(t=Xy.domain)&&t.exit();Py;){e=Py.fn,Py=Py.next;try{e()}catch(t){throw Py?Ry():Cy=void 0,t}}Cy=void 0,t&&t.enter()},Yy||Hy||$y||!Ky||!Qy?!Wy&&Jy&&Jy.resolve?((By=Jy.resolve(void 0)).constructor=Jy,Dy=By.then,Ry=function(){Dy.call(By,Ly)}):Ry=Hy?function(){Xy.nextTick(Ly)}:function(){Vy.call(Gy,Ly)}:(Iy=!0,My=Qy.createTextNode(""),new Ky(Ly).observe(My,{characterData:!0}),Ry=function(){My.data=Iy=!Iy}));var eg=tg||function(t){var e={fn:t,next:void 0};Cy&&(Cy.next=e),Py||(Py=e,Ry()),Cy=e},rg={},ng=Rl,og=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=ng(e),this.reject=ng(r)};rg.f=function(t){return new og(t)};var ig,ag,ug,cg,sg=Gs,fg=Ec,lg=rg,hg=function(t,e){if(sg(t),fg(e)&&e.constructor===t)return e;var r=lg.f(t);return(0,r.resolve)(e),r.promise},pg=sc,dg="object"==typeof window,vg=Cl,yg=sc,gg=Cc,mg=Dv,bg=Xs.exports,wg=sv,_g=vp,xg=ip,Sg=Gv,Og=Ec,Tg=Rl,kg=kd,jg=nf,Ag=function(t,e,r){var n,o,i,a,u,c,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=Wv(e,f,1+l+p),v=function(t){return n&&Hv(n),new Kv(!0,t)},y=function(t){return l?(qv(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)n=t;else{if("function"!=typeof(o=$v(t)))throw TypeError("Target is not iterable");if(Vv(o)){for(i=0,a=Yv(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof Kv)return u;return new Kv(!1)}n=o.call(t)}for(c=n.next;!(s=c.call(n)).done;){try{u=y(s.value)}catch(t){throw Hv(n),t}if("object"==typeof u&&u&&u instanceof Kv)return u}return new Kv(!1)},Eg=oy,Lg=cy,Pg=Fy.set,Cg=eg,Rg=hg,Ig=function(t,e){var r=pg.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},Mg=rg,Bg=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Dg=jf,Fg=Ol,Ng=dg,zg=fy,Ug=zc,Gg=ms("species"),qg="Promise",Vg=Dg.get,Yg=Dg.set,Wg=Dg.getterFor(qg),$g=mg&&mg.prototype,Hg=mg,Kg=$g,Qg=yg.TypeError,Xg=yg.document,Jg=yg.process,Zg=Mg.f,tm=Zg,em=!!(Xg&&Xg.createEvent&&yg.dispatchEvent),rm="function"==typeof PromiseRejectionEvent,nm="unhandledrejection",om=!1,im=Fg(qg,(function(){var t=jg(Hg),e=t!==String(Hg);if(!e&&66===Ug)return!0;if(Ug>=51&&/native code/.test(t))return!1;var r=new Hg((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Gg]=n,!(om=r.then((function(){}))instanceof n)||!e&&Ng&&!rm})),am=im||!Eg((function(t){Hg.all(t).catch((function(){}))})),um=function(t){var e;return!(!Og(t)||"function"!=typeof(e=t.then))&&e},cm=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Cg((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,s=r[i++],f=o?s.ok:s.fail,l=s.resolve,h=s.reject,p=s.domain;try{f?(o||(2===t.rejection&&hm(t),t.rejection=1),!0===f?a=n:(p&&p.enter(),a=f(n),p&&(p.exit(),c=!0)),a===s.promise?h(Qg("Promise-chain cycle")):(u=um(a))?u.call(a,l,h):l(a)):h(n)}catch(t){p&&!c&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&fm(t)}))}},sm=function(t,e,r){var n,o;em?((n=Xg.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),yg.dispatchEvent(n)):n={promise:e,reason:r},!rm&&(o=yg["on"+t])?o(n):t===nm&&Ig("Unhandled promise rejection",r)},fm=function(t){Pg.call(yg,(function(){var e,r=t.facade,n=t.value;if(lm(t)&&(e=Bg((function(){zg?Jg.emit("unhandledRejection",n,r):sm(nm,r,n)})),t.rejection=zg||lm(t)?2:1,e.error))throw e.value}))},lm=function(t){return 1!==t.rejection&&!t.parent},hm=function(t){Pg.call(yg,(function(){var e=t.facade;zg?Jg.emit("rejectionHandled",e):sm("rejectionhandled",e,t.value)}))},pm=function(t,e,r){return function(n){t(e,n,r)}},dm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,cm(t,!0))},vm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Qg("Promise can't be resolved itself");var n=um(e);n?Cg((function(){var r={done:!1};try{n.call(e,pm(vm,r,t),pm(dm,r,t))}catch(e){dm(r,e,t)}})):(t.value=e,t.state=1,cm(t,!1))}catch(e){dm({done:!1},e,t)}}};if(im&&(Kg=(Hg=function(t){kg(this,Hg,qg),Tg(t),ig.call(this);var e=Vg(this);try{t(pm(vm,e),pm(dm,e))}catch(t){dm(e,t)}}).prototype,(ig=function(t){Yg(this,{type:qg,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=wg(Kg,{then:function(t,e){var r=Wg(this),n=Zg(Lg(this,Hg));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=zg?Jg.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&cm(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),ag=function(){var t=new ig,e=Vg(t);this.promise=t,this.resolve=pm(vm,e),this.reject=pm(dm,e)},Mg.f=Zg=function(t){return t===Hg||t===ug?new ag(t):tm(t)},"function"==typeof mg&&$g!==Object.prototype)){cg=$g.then,om||(bg($g,"then",(function(t,e){var r=this;return new Hg((function(t,e){cg.call(r,t,e)})).then(t,e)}),{unsafe:!0}),bg($g,"catch",Kg.catch,{unsafe:!0}));try{delete $g.constructor}catch(t){}_g&&_g($g,Kg)}vg({global:!0,wrap:!0,forced:im},{Promise:Hg}),xg(Hg,qg,!1),Sg(qg),ug=gg(qg),vg({target:qg,stat:!0,forced:im},{reject:function(t){var e=Zg(this);return e.reject.call(void 0,t),e.promise}}),vg({target:qg,stat:!0,forced:im},{resolve:function(t){return Rg(this,t)}}),vg({target:qg,stat:!0,forced:am},{all:function(t){var e=this,r=Zg(e),n=r.resolve,o=r.reject,i=Bg((function(){var r=Tg(e.resolve),i=[],a=0,u=1;Ag(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Zg(e),n=r.reject,o=Bg((function(){var o=Tg(e.resolve);Ag(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var ym=Gs,gm=function(){var t=ym(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},mm={},bm=lc,wm=sc.RegExp;mm.UNSUPPORTED_Y=bm((function(){var t=wm("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),mm.BROKEN_CARET=bm((function(){var t=wm("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var _m,xm,Sm=lc,Om=sc.RegExp,Tm=Sm((function(){var t=Om(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),km=lc,jm=sc.RegExp,Am=km((function(){var t=jm("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Em=td,Lm=gm,Pm=mm,Cm=Hc.exports,Rm=Zl,Im=jf.get,Mm=Tm,Bm=Am,Dm=RegExp.prototype.exec,Fm=Cm("native-string-replace",String.prototype.replace),Nm=Dm,zm=(_m=/a/,xm=/b*/g,Dm.call(_m,"a"),Dm.call(xm,"a"),0!==_m.lastIndex||0!==xm.lastIndex),Um=Pm.UNSUPPORTED_Y||Pm.BROKEN_CARET,Gm=void 0!==/()??/.exec("")[1];(zm||Gm||Um||Mm||Bm)&&(Nm=function(t){var e,r,n,o,i,a,u,c=this,s=Im(c),f=Em(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=Nm.call(l,f),c.lastIndex=l.lastIndex,e;var h=s.groups,p=Um&&c.sticky,d=Lm.call(c),v=c.source,y=0,g=f;if(p&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),Gm&&(r=new RegExp("^"+v+"$(?!\\s)",d)),zm&&(n=c.lastIndex),o=Dm.call(p?r:c,g),p?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:zm&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Gm&&o&&o.length>1&&Fm.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Rm(null),i=0;i<h.length;i++)a[(u=h[i])[0]]=o[u[1]];return o});var qm=Nm;Cl({target:"RegExp",proto:!0,forced:/./.exec!==qm},{exec:qm});var Vm=Bd;Cl({target:"Object",stat:!0,forced:Object.assign!==Vm},{assign:Vm});var Ym=lc,Wm=zc,$m=ms("species"),Hm=function(t){return Wm>=51||!Ym((function(){var e=[];return(e.constructor={})[$m]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Km=Cl,Qm=lc,Xm=lv,Jm=Ec,Zm=rs,tb=Gf,eb=Qd,rb=yv,nb=Hm,ob=zc,ib=ms("isConcatSpreadable"),ab=9007199254740991,ub="Maximum allowed index exceeded",cb=ob>=51||!Qm((function(){var t=[];return t[ib]=!1,t.concat()[0]!==t})),sb=nb("concat"),fb=function(t){if(!Jm(t))return!1;var e=t[ib];return void 0!==e?!!e:Xm(t)};Km({target:"Array",proto:!0,forced:!cb||!sb},{concat:function(t){var e,r,n,o,i,a=Zm(this),u=rb(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(fb(i=-1===e?a:arguments[e])){if(c+(o=tb(i.length))>ab)throw TypeError(ub);for(r=0;r<o;r++,c++)r in i&&eb(u,c,i[r])}else{if(c>=ab)throw TypeError(ub);eb(u,c++,i)}return u.length=c,u}});var lb=Ov.map;Cl({target:"Array",proto:!0,forced:!Hm("map")},{map:function(t){return lb(this,t,arguments.length>1?arguments[1]:void 0)}});var hb=Cl,pb=Dv,db=lc,vb=Cc,yb=cy,gb=hg,mb=Xs.exports;if(hb({target:"Promise",proto:!0,real:!0,forced:!!pb&&db((function(){pb.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=yb(this,vb("Promise")),r="function"==typeof t;return this.then(r?function(r){return gb(e,t()).then((function(){return r}))}:t,r?function(r){return gb(e,t()).then((function(){throw r}))}:t)}}),"function"==typeof pb){var bb=vb("Promise").prototype.finally;pb.prototype.finally!==bb&&mb(pb.prototype,"finally",bb,{unsafe:!0})}var wb,_b,xb,Sb={exports:{}},Ob="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Tb=Ob,kb=hc,jb=sc,Ab=Ec,Eb=is,Lb=$p,Pb=Qs,Cb=Xs.exports,Rb=zs.f,Ib=Hh,Mb=vp,Bb=ms,Db=cs,Fb=jb.Int8Array,Nb=Fb&&Fb.prototype,zb=jb.Uint8ClampedArray,Ub=zb&&zb.prototype,Gb=Fb&&Ib(Fb),qb=Nb&&Ib(Nb),Vb=Object.prototype,Yb=Vb.isPrototypeOf,Wb=Bb("toStringTag"),$b=Db("TYPED_ARRAY_TAG"),Hb=Db("TYPED_ARRAY_CONSTRUCTOR"),Kb=Tb&&!!Mb&&"Opera"!==Lb(jb.opera),Qb=!1,Xb={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Jb={BigInt64Array:8,BigUint64Array:8},Zb=function(t){if(!Ab(t))return!1;var e=Lb(t);return Eb(Xb,e)||Eb(Jb,e)};for(wb in Xb)(xb=(_b=jb[wb])&&_b.prototype)?Pb(xb,Hb,_b):Kb=!1;for(wb in Jb)(xb=(_b=jb[wb])&&_b.prototype)&&Pb(xb,Hb,_b);if((!Kb||"function"!=typeof Gb||Gb===Function.prototype)&&(Gb=function(){throw TypeError("Incorrect invocation")},Kb))for(wb in Xb)jb[wb]&&Mb(jb[wb],Gb);if((!Kb||!qb||qb===Vb)&&(qb=Gb.prototype,Kb))for(wb in Xb)jb[wb]&&Mb(jb[wb].prototype,qb);if(Kb&&Ib(Ub)!==qb&&Mb(Ub,qb),kb&&!Eb(qb,Wb))for(wb in Qb=!0,Rb(qb,Wb,{get:function(){return Ab(this)?this[$b]:void 0}}),Xb)jb[wb]&&Pb(jb[wb],$b,wb);var tw={NATIVE_ARRAY_BUFFER_VIEWS:Kb,TYPED_ARRAY_CONSTRUCTOR:Hb,TYPED_ARRAY_TAG:Qb&&$b,aTypedArray:function(t){if(Zb(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Mb&&!Yb.call(Gb,t))throw TypeError("Target is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,r){if(kb){if(r)for(var n in Xb){var o=jb[n];if(o&&Eb(o.prototype,t))try{delete o.prototype[t]}catch(t){}}qb[t]&&!r||Cb(qb,t,r?e:Kb&&Nb[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(kb){if(Mb){if(r)for(n in Xb)if((o=jb[n])&&Eb(o,t))try{delete o[t]}catch(t){}if(Gb[t]&&!r)return;try{return Cb(Gb,t,r?e:Kb&&Gb[t]||e)}catch(t){}}for(n in Xb)!(o=jb[n])||o[t]&&!r||Cb(o,t,e)}},isView:function(t){if(!Ab(t))return!1;var e=Lb(t);return"DataView"===e||Eb(Xb,e)||Eb(Jb,e)},isTypedArray:Zb,TypedArray:Gb,TypedArrayPrototype:qb},ew=sc,rw=lc,nw=oy,ow=tw.NATIVE_ARRAY_BUFFER_VIEWS,iw=ew.ArrayBuffer,aw=ew.Int8Array,uw=!ow||!rw((function(){aw(1)}))||!rw((function(){new aw(-1)}))||!nw((function(t){new aw,new aw(null),new aw(1.5),new aw(t)}),!0)||rw((function(){return 1!==new aw(new iw(2),1,void 0).length})),cw=Nf,sw=Gf,fw=function(t){if(void 0===t)return 0;var e=cw(t),r=sw(e);if(e!==r)throw RangeError("Wrong length or index");return r},lw=Math.abs,hw=Math.pow,pw=Math.floor,dw=Math.log,vw=Math.LN2,yw=rs,gw=Wf,mw=Gf,bw=function(t){for(var e=yw(this),r=mw(e.length),n=arguments.length,o=gw(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:gw(i,r);a>o;)e[o++]=t;return e},ww=sc,_w=hc,xw=Ob,Sw=Qs,Ow=sv,Tw=lc,kw=kd,jw=Nf,Aw=Gf,Ew=fw,Lw={pack:function(t,e,r){var n,o,i,a=new Array(r),u=8*r-e-1,c=(1<<u)-1,s=c>>1,f=23===e?hw(2,-24)-hw(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=lw(t))!=t||t===1/0?(o=t!=t?1:0,n=c):(n=pw(dw(t)/vw),t*(i=hw(2,-n))<1&&(n--,i*=2),(t+=n+s>=1?f/i:f*hw(2,1-s))*i>=2&&(n++,i/=2),n+s>=c?(o=0,n=c):n+s>=1?(o=(t*i-1)*hw(2,e),n+=s):(o=t*hw(2,s-1)*hw(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[h++]=255&n,n/=256,u-=8);return a[--h]|=128*l,a},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,s=t[c--],f=127&s;for(s>>=7;u>0;f=256*f+t[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:s?-1/0:1/0;r+=hw(2,e),f-=a}return(s?-1:1)*r*hw(2,f-e)}},Pw=Hh,Cw=vp,Rw=Bf.f,Iw=zs.f,Mw=bw,Bw=ip,Dw=jf.get,Fw=jf.set,Nw="ArrayBuffer",zw="DataView",Uw="Wrong index",Gw=ww.ArrayBuffer,qw=Gw,Vw=ww.DataView,Yw=Vw&&Vw.prototype,Ww=Object.prototype,$w=ww.RangeError,Hw=Lw.pack,Kw=Lw.unpack,Qw=function(t){return[255&t]},Xw=function(t){return[255&t,t>>8&255]},Jw=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Zw=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},t_=function(t){return Hw(t,23,4)},e_=function(t){return Hw(t,52,8)},r_=function(t,e){Iw(t.prototype,e,{get:function(){return Dw(this)[e]}})},n_=function(t,e,r,n){var o=Ew(r),i=Dw(t);if(o+e>i.byteLength)throw $w(Uw);var a=Dw(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return n?c:c.reverse()},o_=function(t,e,r,n,o,i){var a=Ew(r),u=Dw(t);if(a+e>u.byteLength)throw $w(Uw);for(var c=Dw(u.buffer).bytes,s=a+u.byteOffset,f=n(+o),l=0;l<e;l++)c[s+l]=f[i?l:e-l-1]};if(xw){if(!Tw((function(){Gw(1)}))||!Tw((function(){new Gw(-1)}))||Tw((function(){return new Gw,new Gw(1.5),new Gw(NaN),Gw.name!=Nw}))){for(var i_,a_=(qw=function(t){return kw(this,qw),new Gw(Ew(t))}).prototype=Gw.prototype,u_=Rw(Gw),c_=0;u_.length>c_;)(i_=u_[c_++])in qw||Sw(qw,i_,Gw[i_]);a_.constructor=qw}Cw&&Pw(Yw)!==Ww&&Cw(Yw,Ww);var s_=new Vw(new qw(2)),f_=Yw.setInt8;s_.setInt8(0,2147483648),s_.setInt8(1,2147483649),!s_.getInt8(0)&&s_.getInt8(1)||Ow(Yw,{setInt8:function(t,e){f_.call(this,t,e<<24>>24)},setUint8:function(t,e){f_.call(this,t,e<<24>>24)}},{unsafe:!0})}else qw=function(t){kw(this,qw,Nw);var e=Ew(t);Fw(this,{bytes:Mw.call(new Array(e),0),byteLength:e}),_w||(this.byteLength=e)},Vw=function(t,e,r){kw(this,Vw,zw),kw(t,qw,zw);var n=Dw(t).byteLength,o=jw(e);if(o<0||o>n)throw $w("Wrong offset");if(o+(r=void 0===r?n-o:Aw(r))>n)throw $w("Wrong length");Fw(this,{buffer:t,byteLength:r,byteOffset:o}),_w||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},_w&&(r_(qw,"byteLength"),r_(Vw,"buffer"),r_(Vw,"byteLength"),r_(Vw,"byteOffset")),Ow(Vw.prototype,{getInt8:function(t){return n_(this,1,t)[0]<<24>>24},getUint8:function(t){return n_(this,1,t)[0]},getInt16:function(t){var e=n_(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=n_(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Zw(n_(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Zw(n_(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Kw(n_(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Kw(n_(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){o_(this,1,t,Qw,e)},setUint8:function(t,e){o_(this,1,t,Qw,e)},setInt16:function(t,e){o_(this,2,t,Xw,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){o_(this,2,t,Xw,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){o_(this,4,t,Jw,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){o_(this,4,t,Jw,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){o_(this,4,t,t_,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){o_(this,8,t,e_,e,arguments.length>2?arguments[2]:void 0)}});Bw(qw,Nw),Bw(Vw,zw);var l_={ArrayBuffer:qw,DataView:Vw},h_=Ec,p_=Math.floor,d_=Nf,v_=function(t){var e=d_(t);if(e<0)throw RangeError("The argument can't be less than 0");return e},y_=function(t,e){var r=v_(t);if(r%e)throw RangeError("Wrong offset");return r},g_=rs,m_=Gf,b_=tv,w_=Wd,__=Fd,x_=tw.aTypedArrayConstructor,S_=Ec,O_=vp,T_=Cl,k_=sc,j_=hc,A_=uw,E_=tw,L_=l_,P_=kd,C_=bc,R_=Qs,I_=function(t){return!h_(t)&&isFinite(t)&&p_(t)===t},M_=Gf,B_=fw,D_=y_,F_=Ts,N_=is,z_=$p,U_=Ec,G_=Wc,q_=Zl,V_=vp,Y_=Bf.f,W_=function(t){var e,r,n,o,i,a,u=g_(t),c=arguments.length,s=c>1?arguments[1]:void 0,f=void 0!==s,l=b_(u);if(null!=l&&!w_(l))for(a=(i=l.call(u)).next,u=[];!(o=a.call(i)).done;)u.push(o.value);for(f&&c>2&&(s=__(s,arguments[2],2)),r=m_(u.length),n=new(x_(this))(r),e=0;r>e;e++)n[e]=f?s(u[e],e):u[e];return n},$_=Ov.forEach,H_=Gv,K_=zs,Q_=fc,X_=function(t,e,r){var n,o;return O_&&"function"==typeof(n=e.constructor)&&n!==r&&S_(o=n.prototype)&&o!==r.prototype&&O_(t,o),t},J_=jf.get,Z_=jf.set,tx=K_.f,ex=Q_.f,rx=Math.round,nx=k_.RangeError,ox=L_.ArrayBuffer,ix=L_.DataView,ax=E_.NATIVE_ARRAY_BUFFER_VIEWS,ux=E_.TYPED_ARRAY_CONSTRUCTOR,cx=E_.TYPED_ARRAY_TAG,sx=E_.TypedArray,fx=E_.TypedArrayPrototype,lx=E_.aTypedArrayConstructor,hx=E_.isTypedArray,px="BYTES_PER_ELEMENT",dx="Wrong length",vx=function(t,e){for(var r=0,n=e.length,o=new(lx(t))(n);n>r;)o[r]=e[r++];return o},yx=function(t,e){tx(t,e,{get:function(){return J_(this)[e]}})},gx=function(t){var e;return t instanceof ox||"ArrayBuffer"==(e=z_(t))||"SharedArrayBuffer"==e},mx=function(t,e){return hx(t)&&!G_(e)&&e in t&&I_(+e)&&e>=0},bx=function(t,e){return e=F_(e),mx(t,e)?C_(2,t[e]):ex(t,e)},wx=function(t,e,r){return e=F_(e),!(mx(t,e)&&U_(r)&&N_(r,"value"))||N_(r,"get")||N_(r,"set")||r.configurable||N_(r,"writable")&&!r.writable||N_(r,"enumerable")&&!r.enumerable?tx(t,e,r):(t[e]=r.value,t)};j_?(ax||(Q_.f=bx,K_.f=wx,yx(fx,"buffer"),yx(fx,"byteOffset"),yx(fx,"byteLength"),yx(fx,"length")),T_({target:"Object",stat:!0,forced:!ax},{getOwnPropertyDescriptor:bx,defineProperty:wx}),Sb.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,o=t+(r?"Clamped":"")+"Array",i="get"+t,a="set"+t,u=k_[o],c=u,s=c&&c.prototype,f={},l=function(t,e){tx(t,e,{get:function(){return function(t,e){var r=J_(t);return r.view[i](e*n+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,o){var i=J_(t);r&&(o=(o=rx(o))<0?0:o>255?255:255&o),i.view[a](e*n+i.byteOffset,o,!0)}(this,e,t)},enumerable:!0})};ax?A_&&(c=e((function(t,e,r,i){return P_(t,c,o),X_(U_(e)?gx(e)?void 0!==i?new u(e,D_(r,n),i):void 0!==r?new u(e,D_(r,n)):new u(e):hx(e)?vx(c,e):W_.call(c,e):new u(B_(e)),t,c)})),V_&&V_(c,sx),$_(Y_(u),(function(t){t in c||R_(c,t,u[t])})),c.prototype=s):(c=e((function(t,e,r,i){P_(t,c,o);var a,u,s,f=0,h=0;if(U_(e)){if(!gx(e))return hx(e)?vx(c,e):W_.call(c,e);a=e,h=D_(r,n);var p=e.byteLength;if(void 0===i){if(p%n)throw nx(dx);if((u=p-h)<0)throw nx(dx)}else if((u=M_(i)*n)+h>p)throw nx(dx);s=u/n}else s=B_(e),a=new ox(u=s*n);for(Z_(t,{buffer:a,byteOffset:h,byteLength:u,length:s,view:new ix(a)});f<s;)l(t,f++)})),V_&&V_(c,sx),s=c.prototype=q_(fx)),s.constructor!==c&&R_(s,"constructor",c),R_(s,ux,c),cx&&R_(s,cx,o),f[o]=c,T_({global:!0,forced:c!=u,sham:!ax},f),px in c||R_(c,px,n),px in s||R_(s,px,n),H_(o)}):Sb.exports=function(){},(0,Sb.exports)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var _x=rs,xx=Wf,Sx=Gf,Ox=Math.min,Tx=[].copyWithin||function(t,e){var r=_x(this),n=Sx(r.length),o=xx(t,n),i=xx(e,n),a=arguments.length>2?arguments[2]:void 0,u=Ox((void 0===a?n:xx(a,n))-i,n-o),c=1;for(i<o&&o<i+u&&(c=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=c,i+=c;return r},kx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("copyWithin",(function(t,e){return Tx.call(kx(this),t,e,arguments.length>2?arguments[2]:void 0)}));var jx=Ov.every,Ax=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("every",(function(t){return jx(Ax(this),t,arguments.length>1?arguments[1]:void 0)}));var Ex=bw,Lx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("fill",(function(t){return Ex.apply(Lx(this),arguments)}));var Px=cy,Cx=tw.TYPED_ARRAY_CONSTRUCTOR,Rx=tw.aTypedArrayConstructor,Ix=function(t){return Rx(Px(t,t[Cx]))},Mx=function(t,e){for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},Bx=Ix,Dx=Ov.filter,Fx=function(t,e){return Mx(Bx(t),e)},Nx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("filter",(function(t){var e=Dx(Nx(this),t,arguments.length>1?arguments[1]:void 0);return Fx(this,e)}));var zx=Ov.find,Ux=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("find",(function(t){return zx(Ux(this),t,arguments.length>1?arguments[1]:void 0)}));var Gx=Ov.findIndex,qx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("findIndex",(function(t){return Gx(qx(this),t,arguments.length>1?arguments[1]:void 0)}));var Vx=Ov.forEach,Yx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("forEach",(function(t){Vx(Yx(this),t,arguments.length>1?arguments[1]:void 0)}));var Wx=Xf.includes,$x=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("includes",(function(t){return Wx($x(this),t,arguments.length>1?arguments[1]:void 0)}));var Hx=Xf.indexOf,Kx=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("indexOf",(function(t){return Hx(Kx(this),t,arguments.length>1?arguments[1]:void 0)}));var Qx=sc,Xx=tw,Jx=zp,Zx=ms("iterator"),tS=Qx.Uint8Array,eS=Jx.values,rS=Jx.keys,nS=Jx.entries,oS=Xx.aTypedArray,iS=Xx.exportTypedArrayMethod,aS=tS&&tS.prototype[Zx],uS=!!aS&&("values"==aS.name||null==aS.name),cS=function(){return eS.call(oS(this))};iS("entries",(function(){return nS.call(oS(this))})),iS("keys",(function(){return rS.call(oS(this))})),iS("values",cS,!uS),iS(Zx,cS,!uS);var sS=tw.aTypedArray,fS=[].join;(0,tw.exportTypedArrayMethod)("join",(function(t){return fS.apply(sS(this),arguments)}));var lS=Ac,hS=Nf,pS=Gf,dS=kv,vS=Math.min,yS=[].lastIndexOf,gS=!!yS&&1/[1].lastIndexOf(1,-0)<0,mS=dS("lastIndexOf"),bS=gS||!mS?function(t){if(gS)return yS.apply(this,arguments)||0;var e=lS(this),r=pS(e.length),n=r-1;for(arguments.length>1&&(n=vS(n,hS(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:yS,wS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("lastIndexOf",(function(t){return bS.apply(wS(this),arguments)}));var _S=Ov.map,xS=Ix,SS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("map",(function(t){return _S(SS(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(xS(t))(e)}))}));var OS=Rl,TS=rs,kS=Oc,jS=Gf,AS=function(t){return function(e,r,n,o){OS(r);var i=TS(e),a=kS(i),u=jS(i.length),c=t?u-1:0,s=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},ES={left:AS(!1),right:AS(!0)},LS=ES.left,PS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("reduce",(function(t){return LS(PS(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var CS=ES.right,RS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("reduceRight",(function(t){return CS(RS(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var IS=tw.aTypedArray,MS=tw.exportTypedArrayMethod,BS=Math.floor;MS("reverse",(function(){for(var t,e=this,r=IS(e).length,n=BS(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e}));var DS=Gf,FS=y_,NS=rs,zS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("set",(function(t){zS(this);var e=FS(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=NS(t),o=DS(n.length),i=0;if(o+e>r)throw RangeError("Wrong length");for(;i<o;)this[e+i]=n[i++]}),lc((function(){new Int8Array(1).set({})})));var US=Ix,GS=tw.aTypedArray,qS=[].slice;(0,tw.exportTypedArrayMethod)("slice",(function(t,e){for(var r=qS.call(GS(this),t,e),n=US(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),lc((function(){new Int8Array(1).slice()})));var VS=Ov.some,YS=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("some",(function(t){return VS(YS(this),t,arguments.length>1?arguments[1]:void 0)}));var WS=Math.floor,$S=function(t,e){var r=t.length,n=WS(r/2);return r<8?HS(t,e):KS($S(t.slice(0,n),e),$S(t.slice(n),e),e)},HS=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},KS=function(t,e,r){for(var n=t.length,o=e.length,i=0,a=0,u=[];i<n||a<o;)i<n&&a<o?u.push(r(t[i],e[a])<=0?t[i++]:e[a++]):u.push(i<n?t[i++]:e[a++]);return u},QS=$S,XS=Rc.match(/firefox\/(\d+)/i),JS=!!XS&&+XS[1],ZS=/MSIE|Trident/.test(Rc),tO=Rc.match(/AppleWebKit\/(\d+)\./),eO=!!tO&&+tO[1],rO=lc,nO=Rl,oO=Gf,iO=QS,aO=JS,uO=ZS,cO=zc,sO=eO,fO=tw.aTypedArray,lO=tw.exportTypedArrayMethod,hO=sc.Uint16Array,pO=hO&&hO.prototype.sort,dO=!!pO&&!rO((function(){var t=new hO(2);t.sort(null),t.sort({})})),vO=!!pO&&!rO((function(){if(cO)return cO<74;if(aO)return aO<67;if(uO)return!0;if(sO)return sO<602;var t,e,r=new hO(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(r.sort((function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));lO("sort",(function(t){var e=this;if(void 0!==t&&nO(t),vO)return pO.call(e,t);fO(e);var r,n=oO(e.length),o=Array(n);for(r=0;r<n;r++)o[r]=e[r];for(o=iO(e,function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t)),r=0;r<n;r++)e[r]=o[r];return e}),!vO||dO);var yO=Gf,gO=Wf,mO=Ix,bO=tw.aTypedArray;(0,tw.exportTypedArrayMethod)("subarray",(function(t,e){var r=bO(this),n=r.length,o=gO(t,n);return new(mO(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,yO((void 0===e?n:gO(e,n))-o))}));var wO=tw,_O=lc,xO=sc.Int8Array,SO=wO.aTypedArray,OO=wO.exportTypedArrayMethod,TO=[].toLocaleString,kO=[].slice,jO=!!xO&&_O((function(){TO.call(new xO(1))}));OO("toLocaleString",(function(){return TO.apply(jO?kO.call(SO(this)):SO(this),arguments)}),_O((function(){return[1,2].toLocaleString()!=new xO([1,2]).toLocaleString()}))||!_O((function(){xO.prototype.toLocaleString.call([1,2])})));var AO=tw.exportTypedArrayMethod,EO=lc,LO=sc.Uint8Array,PO=LO&&LO.prototype||{},CO=[].toString,RO=[].join;EO((function(){CO.call({})}))&&(CO=function(){return RO.call(this)});var IO=PO.toString!=CO;AO("toString",CO,IO);var MO="fetch",BO="xhr",DO="arraybuffer",FO="text",NO="json";function zO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=jh(t);if(e){var o=jh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kh(this,r)}}var UO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sh(t,e)}(r,t);var e=zO(r);function r(t,n,o,i){var a;return xh(this,r),_h(Th(a=e.call(this,i)),"retryCount",0),_h(Th(a),"isTimeout",!1),_h(Th(a),"loaderType",MO),_h(Th(a),"startTime",0),_h(Th(a),"endTime",0),a.url=t,a.request=n,a.response=o,a}return r}(Lh(Error)),GO=Xs.exports,qO=qm,VO=lc,YO=ms,WO=Qs,$O=YO("species"),HO=RegExp.prototype,KO=function(t,e,r,n){var o=YO(t),i=!VO((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!VO((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[$O]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===qO||a===HO.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));GO(String.prototype,t,c[0]),GO(HO,o,c[1])}n&&WO(HO[o],"sham",!0)},QO=id.charAt,XO=function(t,e,r){return e+(r?QO(t,e).length:1)},JO=rs,ZO=Math.floor,tT="".replace,eT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rT=/\$([$&'`]|\d{1,2})/g,nT=_c,oT=qm,iT=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==nT(t))throw TypeError("RegExp#exec called on incompatible receiver");return oT.call(t,e)},aT=KO,uT=lc,cT=Gs,sT=Nf,fT=Gf,lT=td,hT=Tc,pT=XO,dT=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=rT;return void 0!==o&&(o=JO(o),c=eT),tT.call(i,c,(function(i,c){var s;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":s=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var l=ZO(f/10);return 0===l?i:l<=u?void 0===n[l-1]?c.charAt(1):n[l-1]+c.charAt(1):i}s=n[f-1]}return void 0===s?"":s}))},vT=iT,yT=ms("replace"),gT=Math.max,mT=Math.min,bT="$0"==="a".replace(/./,"$0"),wT=!!/./[yT]&&""===/./[yT]("a","$0");aT("replace",(function(t,e,r){var n=wT?"$":"$0";return[function(t,r){var n=hT(this),o=null==t?void 0:t[yT];return void 0!==o?o.call(t,n,r):e.call(lT(n),t,r)},function(t,o){var i=cT(this),a=lT(t);if("string"==typeof o&&-1===o.indexOf(n)&&-1===o.indexOf("$<")){var u=r(e,i,a,o);if(u.done)return u.value}var c="function"==typeof o;c||(o=lT(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=vT(i,a);if(null===h)break;if(l.push(h),!s)break;""===lT(h[0])&&(i.lastIndex=pT(a,fT(i.lastIndex),f))}for(var p,d="",v=0,y=0;y<l.length;y++){h=l[y];for(var g=lT(h[0]),m=gT(mT(sT(h.index),a.length),0),b=[],w=1;w<h.length;w++)b.push(void 0===(p=h[w])?p:String(p));var _=h.groups;if(c){var x=[g].concat(b,m,a);void 0!==_&&x.push(_);var S=lT(o.apply(void 0,x))}else S=dT(g,a,m,b,_,o);m>=v&&(d+=a.slice(v,m)+S,v=m+g.length)}return d+a.slice(v)}]}),!!uT((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!bT||wT);var _T=Cl,xT=Ac,ST=[].join,OT=Oc!=Object,TT=kv("join",",");_T({target:"Array",proto:!0,forced:OT||!TT},{join:function(t){return ST.call(xT(this),void 0===t?",":t)}});var kT=Ov.filter;Cl({target:"Array",proto:!0,forced:!Hm("filter")},{filter:function(t){return kT(this,t,arguments.length>1?arguments[1]:void 0)}});var jT=Cl,AT=Ec,ET=lv,LT=Wf,PT=Gf,CT=Ac,RT=Qd,IT=ms,MT=Hm("slice"),BT=IT("species"),DT=[].slice,FT=Math.max;jT({target:"Array",proto:!0,forced:!MT},{slice:function(t,e){var r,n,o,i=CT(this),a=PT(i.length),u=LT(t,a),c=LT(void 0===e?a:e,a);if(ET(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!ET(r.prototype)?AT(r)&&null===(r=r[BT])&&(r=void 0):r=void 0,r===Array||void 0===r))return DT.call(i,u,c);for(n=new(void 0===r?Array:r)(FT(c-u,0)),o=0;u<c;u++,o++)u in i&&RT(n,o,i[u]);return n.length=o,n}});var NT=rs,zT=Hh,UT=Gh;Cl({target:"Object",stat:!0,forced:lc((function(){zT(1)})),sham:!UT},{getPrototypeOf:function(t){return zT(NT(t))}});var GT=Object.prototype.toString;function qT(t){if("[object Object]"!==GT.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function VT(t){if(t&&null!=t[0]&&(0!==t[0]||null!=t[1])){var e="bytes="+t[0]+"-";return t[1]&&(e+=t[1]),e}}function YT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function WT(t,e){if(t){if(!e)return t;var r,n=Object.keys(e).map((function(t){if(null!=(r=e[t]))return Array.isArray(r)?t+="[]":r=[r],r.map((function(e){var r;return r=e,"[object Date]"===GT.call(r)?e=e.toISOString():function(t){return null!==t&&"object"===Oh(t)}(e)&&(e=JSON.stringify(e)),"".concat(YT(t),"=").concat(YT(e))})).join("&")})).filter(Boolean).join("&");if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}}function $T(t,e,r,n,o,i,a,u,c){return o=null!=o?parseFloat(o):null,n=parseInt(n||"0",10),isNaN(n)&&(n=0),{data:t,done:e,option:{range:c,index:u,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:Date.now()},response:r}}var HT=function(){function t(){xh(this,t),_h(this,"_abortController",null),_h(this,"_timeoutTimer",null),_h(this,"_reader",null),_h(this,"_response",null),_h(this,"_aborted",!1),_h(this,"_index",-1),_h(this,"_range",null),_h(this,"_receivedLength",0),_h(this,"_running",!1),_h(this,"_logger",null)}var e;return wh(t,[{key:"load",value:function(t){var e=this,r=t.url,n=t.timeout,o=t.responseType,i=t.onProgress,a=t.index,u=t.onTimeout,c=t.range,s=t.transformResponse,f=t.request,l=t.params,h=t.logger,p=t.method,d=t.headers,v=t.body,y=t.mode,g=t.credentials,m=t.cache,b=t.redirect,w=t.referrer,_=t.referrerPolicy,x=t.integrity;this._logger=h,this._aborted=!1,this._running=!0,this._abortController=new AbortController,this._index=a,this._range=c||[0,0],this._logger.debug("【fetchLoader task】, range",this._range);var S={method:p,headers:d,body:v,mode:y,credentials:g,cache:m,redirect:b,referrer:w,referrerPolicy:_,integrity:x,signal:this._abortController.signal},O=!1;clearTimeout(this._timeoutTimer),r=WT(r,l);var T=VT(c);T&&((d=f?f.headers:S.headers=S.headers||new Headers)instanceof Headers?d.append("Range",T):d.Range=T),n&&(this._timeoutTimer=setTimeout((function(){if(O=!0,e.cancel(),u){var t=new UO(r,S);t.isTimeout=!0,u(t)}}),n));var k=Date.now();return fetch(f||r,f?void 0:S).then(function(){var t=mh(Ch.mark((function t(n){var u,f;return Ch.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearTimeout(e._timeoutTimer),e._response=n,!e._aborted){t.next=4;break}return t.abrupt("return");case 4:if(s&&(n=s(n,r)||n),n.ok){t.next=7;break}throw new UO(r,S,n,"bad network response");case 7:if(u=Date.now(),o!==FO){t.next=14;break}return t.next=11,n.text();case 11:f=t.sent,t.next=28;break;case 14:if(o!==NO){t.next=20;break}return t.next=17,n.json();case 17:f=t.sent,t.next=28;break;case 20:if(!i){t.next=24;break}e._loadChunk(n,i),t.next=28;break;case 24:return t.next=26,n.arrayBuffer();case 26:f=t.sent,f=new Uint8Array(f);case 28:return e._running=!1,t.abrupt("return",$T(f,!0,n,n.headers.get("Content-Length"),n.headers.get("age"),k,u,a,c));case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){if(clearTimeout(e._timeoutTimer),e._running=!1,!e._aborted||O)throw(t=t instanceof UO?t:new UO(r,S)).startTime=k,t.endTime=Date.now(),t.isTimeout=O,t}))}},{key:"cancel",value:(e=mh(Ch.mark((function t(){return Ch.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._aborted){t.next=2;break}return t.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){t.next=16;break}return t.prev=5,t.next=8,this._response.body.cancel();case 8:if(!this._reader){t.next=11;break}return t.next=11,this._reader.cancel();case 11:t.next=15;break;case 13:t.prev=13,t.t0=t.catch(5);case 15:this._response=this._reader=null;case 16:if(this._abortController){try{this._abortController.abort()}catch(t){}this._abortController=null}case 17:case"end":return t.stop()}}),t,this,[[5,13]])}))),function(){return e.apply(this,arguments)})},{key:"_loadChunk",value:function(t,e){var r,n,o,i=this,a=this._reader=t.body.getReader(),u=function(){var c=mh(Ch.mark((function c(){var s;return Ch.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=Date.now(),c.prev=1,c.next=4,a.read();case 4:r=c.sent,o=Date.now(),c.next=13;break;case 8:return c.prev=8,c.t0=c.catch(1),o=Date.now(),e(void 0,!0,{range:i._range,index:i._index,startTime:n,endTime:o},t),c.abrupt("return");case 13:if(!i._aborted){c.next=16;break}return e(void 0,!0,{range:i._range,index:i._index,startTime:n,endTime:o},t),c.abrupt("return");case 16:s=i._range[0]+i._receivedLength,i._receivedLength+=r.value?r.value.byteLength:0,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",s,", end,",i._range[0]+i._receivedLength,", done,",r.done),i._running=r.done,e(r.value,r.done,{range:[s,i._range[0]+i._receivedLength],index:i._index,startTime:n,endTime:o},t),r.done?i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,",done,",r.done):u();case 22:case"end":return c.stop()}}),c,null,[[1,8]])})));return function(){return c.apply(this,arguments)}}();u()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}}],[{key:"isSupported",value:function(){if("undefined"==typeof ReadableStream)return!1;try{new ReadableStream({})}catch(t){return!1}return!("undefined"==typeof fetch||"undefined"==typeof AbortController)}}]),t}(),KT={},QT=Ac,XT=Bf.f,JT={}.toString,ZT="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];KT.f=function(t){return ZT&&"[object Window]"==JT.call(t)?function(t){try{return XT(t)}catch(t){return ZT.slice()}}(t):XT(QT(t))};var tk={},ek=ms;tk.f=ek;var rk=sc,nk=is,ok=tk,ik=zs.f,ak=function(t){var e=rk.Symbol||(rk.Symbol={});nk(e,t)||ik(e,t,{value:ok.f(t)})},uk=Cl,ck=sc,sk=Cc,fk=hc,lk=qc,hk=lc,pk=is,dk=lv,vk=Ec,yk=Wc,gk=Gs,mk=rs,bk=Ac,wk=Ts,_k=td,xk=bc,Sk=Zl,Ok=Bl,Tk=Bf,kk=KT,jk=al,Ak=fc,Ek=zs,Lk=pc,Pk=Qs,Ck=Xs.exports,Rk=Hc.exports,Ik=hf,Mk=cs,Bk=ms,Dk=tk,Fk=ak,Nk=ip,zk=jf,Uk=Ov.forEach,Gk=lf("hidden"),qk="Symbol",Vk=Bk("toPrimitive"),Yk=zk.set,Wk=zk.getterFor(qk),$k=Object.prototype,Hk=ck.Symbol,Kk=sk("JSON","stringify"),Qk=Ak.f,Xk=Ek.f,Jk=kk.f,Zk=Lk.f,tj=Rk("symbols"),ej=Rk("op-symbols"),rj=Rk("string-to-symbol-registry"),nj=Rk("symbol-to-string-registry"),oj=Rk("wks"),ij=ck.QObject,aj=!ij||!ij.prototype||!ij.prototype.findChild,uj=fk&&hk((function(){return 7!=Sk(Xk({},"a",{get:function(){return Xk(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Qk($k,e);n&&delete $k[e],Xk(t,e,r),n&&t!==$k&&Xk($k,e,n)}:Xk,cj=function(t,e){var r=tj[t]=Sk(Hk.prototype);return Yk(r,{type:qk,tag:t,description:e}),fk||(r.description=e),r},sj=function(t,e,r){t===$k&&sj(ej,e,r),gk(t);var n=wk(e);return gk(r),pk(tj,n)?(r.enumerable?(pk(t,Gk)&&t[Gk][n]&&(t[Gk][n]=!1),r=Sk(r,{enumerable:xk(0,!1)})):(pk(t,Gk)||Xk(t,Gk,xk(1,{})),t[Gk][n]=!0),uj(t,n,r)):Xk(t,n,r)},fj=function(t,e){gk(t);var r=bk(e),n=Ok(r).concat(dj(r));return Uk(n,(function(e){fk&&!lj.call(r,e)||sj(t,e,r[e])})),t},lj=function(t){var e=wk(t),r=Zk.call(this,e);return!(this===$k&&pk(tj,e)&&!pk(ej,e))&&(!(r||!pk(this,e)||!pk(tj,e)||pk(this,Gk)&&this[Gk][e])||r)},hj=function(t,e){var r=bk(t),n=wk(e);if(r!==$k||!pk(tj,n)||pk(ej,n)){var o=Qk(r,n);return!o||!pk(tj,n)||pk(r,Gk)&&r[Gk][n]||(o.enumerable=!0),o}},pj=function(t){var e=Jk(bk(t)),r=[];return Uk(e,(function(t){pk(tj,t)||pk(Ik,t)||r.push(t)})),r},dj=function(t){var e=t===$k,r=Jk(e?ej:bk(t)),n=[];return Uk(r,(function(t){!pk(tj,t)||e&&!pk($k,t)||n.push(tj[t])})),n};(lk||(Ck((Hk=function(){if(this instanceof Hk)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?_k(arguments[0]):void 0,e=Mk(t),r=function(t){this===$k&&r.call(ej,t),pk(this,Gk)&&pk(this[Gk],e)&&(this[Gk][e]=!1),uj(this,e,xk(1,t))};return fk&&aj&&uj($k,e,{configurable:!0,set:r}),cj(e,t)}).prototype,"toString",(function(){return Wk(this).tag})),Ck(Hk,"withoutSetter",(function(t){return cj(Mk(t),t)})),Lk.f=lj,Ek.f=sj,Ak.f=hj,Tk.f=kk.f=pj,jk.f=dj,Dk.f=function(t){return cj(Bk(t),t)},fk&&(Xk(Hk.prototype,"description",{configurable:!0,get:function(){return Wk(this).description}}),Ck($k,"propertyIsEnumerable",lj,{unsafe:!0}))),uk({global:!0,wrap:!0,forced:!lk,sham:!lk},{Symbol:Hk}),Uk(Ok(oj),(function(t){Fk(t)})),uk({target:qk,stat:!0,forced:!lk},{for:function(t){var e=_k(t);if(pk(rj,e))return rj[e];var r=Hk(e);return rj[e]=r,nj[r]=e,r},keyFor:function(t){if(!yk(t))throw TypeError(t+" is not a symbol");if(pk(nj,t))return nj[t]},useSetter:function(){aj=!0},useSimple:function(){aj=!1}}),uk({target:"Object",stat:!0,forced:!lk,sham:!fk},{create:function(t,e){return void 0===e?Sk(t):fj(Sk(t),e)},defineProperty:sj,defineProperties:fj,getOwnPropertyDescriptor:hj}),uk({target:"Object",stat:!0,forced:!lk},{getOwnPropertyNames:pj,getOwnPropertySymbols:dj}),uk({target:"Object",stat:!0,forced:hk((function(){jk.f(1)}))},{getOwnPropertySymbols:function(t){return jk.f(mk(t))}}),Kk)&&uk({target:"JSON",stat:!0,forced:!lk||hk((function(){var t=Hk();return"[null]"!=Kk([t])||"{}"!=Kk({a:t})||"{}"!=Kk(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(vk(e)||void 0!==t)&&!yk(t))return dk(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!yk(e))return e}),o[1]=e,Kk.apply(null,o)}});Hk.prototype[Vk]||Pk(Hk.prototype,Vk,Hk.prototype.valueOf),Nk(Hk,qk),Ik[Gk]=!0;var vj=Cl,yj=lc,gj=Ac,mj=fc.f,bj=hc,wj=yj((function(){mj(1)}));vj({target:"Object",stat:!0,forced:!bj||wj,sham:!bj},{getOwnPropertyDescriptor:function(t,e){return mj(gj(t),e)}});var _j=ll,xj=Ac,Sj=fc,Oj=Qd;function Tj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kj(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tj(Object(r),!0).forEach((function(e){_h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({loaderType:MO,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:FO,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0},t)}function jj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}Cl({target:"Object",stat:!0,sham:!hc},{getOwnPropertyDescriptors:function(t){for(var e,r,n=xj(t),o=Sj.f,i=_j(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Oj(a,e,r);return a}});var Aj=hc,Ej=zs.f,Lj=Function.prototype,Pj=Lj.toString,Cj=/^\s*function ([^ (]*)/,Rj="name";Aj&&!(Rj in Lj)&&Ej(Lj,Rj,{configurable:!0,get:function(){try{return Pj.call(this).match(Cj)[1]}catch(t){return""}}});var Ij=function(t){var e,r,n,o,i,a,u=rv(t),c="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,h=uv(u),p=0;if(l&&(f=ev(f,s>2?arguments[2]:void 0,2)),null==h||c==Array&&ov(h))for(r=new c(e=iv(u.length));e>p;p++)a=l?f(u[p],p):u[p],av(r,p,a);else for(i=(o=h.call(u)).next,r=new c;!(n=i.call(o)).done;p++)a=l?nv(o,f,[n.value,p],!0):n.value,av(r,p,a);return r.length=p,r};Cl({target:"Array",stat:!0,forced:!oy((function(t){Array.from(t)}))},{from:Ij});var Mj=Cl,Bj=hc,Dj=sc,Fj=is,Nj=Ec,zj=zs.f,Uj=yl,Gj=Dj.Symbol;if(Bj&&"function"==typeof Gj&&(!("description"in Gj.prototype)||void 0!==Gj().description)){var qj={},Vj=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Vj?new Gj(t):void 0===t?Gj():Gj(t);return""===t&&(qj[e]=!0),e};Uj(Vj,Gj);var Yj=Vj.prototype=Gj.prototype;Yj.constructor=Vj;var Wj=Yj.toString,$j="Symbol(test)"==String(Gj("test")),Hj=/^Symbol\((.*)\)[^)]+$/;zj(Yj,"description",{configurable:!0,get:function(){var t=Nj(this)?this.valueOf():this,e=Wj.call(t);if(Fj(qj,t))return"";var r=$j?e.slice(7,-1):e.replace(Hj,"$1");return""===r?void 0:r}}),Mj({global:!0,forced:!0},{Symbol:Vj})}ak("iterator");var Kj=Ec,Qj=_c,Xj=ms("match"),Jj=function(t){var e;return Kj(t)&&(void 0!==(e=t[Xj])?!!e:"RegExp"==Qj(t))},Zj=KO,tA=Jj,eA=Gs,rA=Tc,nA=cy,oA=XO,iA=Gf,aA=td,uA=iT,cA=qm,sA=lc,fA=mm.UNSUPPORTED_Y,lA=[].push,hA=Math.min,pA=4294967295;Zj("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=aA(rA(this)),o=void 0===r?pA:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!tA(t))return e.call(n,t,o);for(var i,a,u,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=cA.call(l,n))&&!((a=l.lastIndex)>f&&(c.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&lA.apply(c,i.slice(1)),u=i[0].length,f=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&l.test("")||c.push(""):c.push(n.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=rA(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(aA(o),e,r)},function(t,o){var i=eA(this),a=aA(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var c=nA(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(fA?"g":"y"),l=new c(fA?"^(?:"+i.source+")":i,f),h=void 0===o?pA:o>>>0;if(0===h)return[];if(0===a.length)return null===uA(l,a)?[a]:[];for(var p=0,d=0,v=[];d<a.length;){l.lastIndex=fA?0:d;var y,g=uA(l,fA?a.slice(d):a);if(null===g||(y=hA(iA(l.lastIndex+(fA?d:0)),a.length))===p)d=oA(a,d,s);else{if(v.push(a.slice(p,d)),v.length===h)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===h)return v;d=p=y}}return v.push(a.slice(p)),v}]}),!!sA((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),fA);var dA="\t\n\v\f\r \u2028\u2029\ufeff",vA=Tc,yA=td,gA="[\t\n\v\f\r \u2028\u2029\ufeff]",mA=RegExp("^"+gA+gA+"*"),bA=RegExp(gA+gA+"*$"),wA=function(t){return function(e){var r=yA(vA(e));return 1&t&&(r=r.replace(mA,"")),2&t&&(r=r.replace(bA,"")),r}},_A={start:wA(1),end:wA(2),trim:wA(3)},xA=lc,SA=dA,OA=_A.trim;Cl({target:"String",proto:!0,forced:function(t){return xA((function(){return!!SA[t]()||"
"!="
"[t]()||SA[t].name!==t}))}("trim")},{trim:function(){return OA(this)}});var TA=function(){function t(){xh(this,t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return wh(t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(t){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}}]),t}();function kA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return jA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function jA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var AA=function(){function t(){xh(this,t),_h(this,"_xhr",null),_h(this,"_aborted",!1),_h(this,"_timeoutTimer",null),_h(this,"_range",null),_h(this,"_receivedLength",0),_h(this,"_url",null),_h(this,"_onProgress",null),_h(this,"_index",-1),_h(this,"_headers",null),_h(this,"_chunkSizeKBList",[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192]),_h(this,"_currentChunkSizeKB",384),_h(this,"_currentSpeedNormalized",0),_h(this,"_zeroSpeedChunkCount",0),_h(this,"_timeout",null),_h(this,"_xhr",null),_h(this,"_withCredentials",null),_h(this,"_startTime",-1),_h(this,"_firstByteTime",-1),_h(this,"_speedSampler",new TA),_h(this,"_loadCompleteResolve",null),_h(this,"_loadCompleteReject",null),_h(this,"_runing",!1),_h(this,"_logger",!1)}return wh(t,[{key:"load",value:function(t){var e=this;clearTimeout(this._timeoutTimer),this._logger=t.logger,this._range=t.range||[0,0],this._onProgress=t.onProgress,this._index=t.index,this._headers=t.headers,this._withCredentials="include"===t.credentials||"same-origin"===t.credentials,this._logger.debug("【xhrLoader task】, range",this._range);var r=t.url,n=t.params,o=t.timeout,i=t.responseType,a=t.onTimeout,u=t.transformResponse,c=t.onProgress,s=t.method,f=t.credentials,l=t.body,h=t.index,p=t.range,d=t.request,v=!1;this._timeout=o||null,this._runing=!0,this._url=WT(r,n);var y=Date.now();return this._onProgress&&p.length>1&&p[1]&&p[1]-p[0]>1024*this._currentChunkSizeKB?(this._logger.debug("【xhrLoader】, task",this._range,", need to sub range"),this._openSubRange(),new Promise((function(t,r){e._loadCompleteResolve=t,e._loadCompleteReject=r}))):new Promise((function(t,n){var g=e._xhr=new XMLHttpRequest;g.open(s||"GET",r,!0),g.responseType=i,g.withCredentials="include"===f||"same-origin"===f;var m=VT(p),b=null;m&&((b=e._headers||{}).Range=m),b&&Object.keys(b).forEach((function(t){g.setRequestHeader(t,b[t])})),o&&(e._timeoutTimer=setTimeout((function(){if(v=!0,e.cancel(),a){var t=new UO(r,d);t.isTimeout=!0,a(t)}}),o)),g.onerror=function(t){return n(t)},g.onreadystatechange=function(){if(g.readyState>=2){clearTimeout(e._timeoutTimer);var o=Date.now();if(4===g.readyState){if(g.onreadystatechange=null,e._aborted)return;var i=g.status,a={ok:i>=200&&i<300,status:i,statusText:g.statusText,url:g.responseURL,headers:e._getHeaders(g),body:g.response};if(u&&(a=u(a,r)||a),!a.ok)return n(new UO(r,d,a,"bad network response"));var s=g.responseType===DO,f=s?new Uint8Array(g.response):g.response;c&&c(s?f:void 0,!0,{range:e._range,index:e._index,startTime:y,endTime:Date.now()},a),e._runing=!1,t($T(f,!0,a,a.headers["content-length"],a.headers.age,y,o,h,e._range))}}},g.send(l)})).catch((function(t){if(clearTimeout(e._timeoutTimer),e._runing=!1,!e._aborted||v)throw(t=t instanceof UO?t:new UO(r,d)).startTime=y,t.endTime=Date.now(),t.isTimeout=v,t}))}},{key:"_openSubRange",value:function(){var t=1024*this._currentChunkSizeKB,e=this._range[0]+this._receivedLength;this._logger.debug("[xhr_loader->] ,tast: ",this._range,",subRangeFrom ",e,", currentReceivedLength, ",this._receivedLength);var r=this._range[1];t<this._range[1]-e&&(r=e+t);var n=[e,r];this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",n),this._internalOpen(this._url,n)}},{key:"_internalOpen",value:function(t,e){var r=this;this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onerror=function(t){r._running=!1,r._loadCompleteReject(t)},n.ontimeout=function(t){r._running=!1,r._loadCompleteReject(t)};var o=VT(e),i=null;o&&((i=this._headers||{}).Range=o),i&&Object.keys(i).forEach((function(t){n.setRequestHeader(t,i[t])})),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send()}},{key:"_onLoad",value:function(t){var e=t.target.status;(e<200||e>299)&&this._loadCompleteReject(new UO(url,null,t.target.response,"bad response,status:"+e));var r=this._speedSampler.lastSecondKBps;if(0===r&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(r=this._speedSampler.currentKBps)),0!==r){var n=this._normalizeSpeed(r);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var o=t.target.response;this._firstByteTime&&(this._firstByteTime=Date.now());var i,a=this._range[0]+this._receivedLength;if(this._receivedLength+=o.byteLength,this._logger.debug("[xhr load done->], tast :",this._range,", from",a,"end ",this._range[0]+this._receivedLength,",dataLen,",o.byteLength,",receivedLength",this._receivedLength),i=!(this._range.length>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._onProgress&&(this._logger.debug("[xhr onDataArrivalCall],tast :",this._range,",start, ",a,",end, ",this._range[0]+this._receivedLength,",index,",this._index),this._onProgress(o,i,{index:this._index,range:[a,this._range[0]+this._receivedLength],startTime:this._startTime,endTime:Date.now()},null)),i){this._runing=!1;var u={ok:e>=200&&e<300,status:e,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._loadCompleteResolve&&this._loadCompleteResolve($T(null,!0,u,u.headers["content-length"],u.headers.age,this._startTime,this._firstByteTime,this._index,this._range))}else this._openSubRange()}},{key:"_normalizeSpeed",value:function(t){var e=this._chunkSizeKBList,r=e.length-1,n=0,o=0,i=r;if(t<e[0])return e[0];for(;o<=i;){if((n=o+Math.floor((i-o)/2))===r||t>=e[n]&&t<e[n+1])return e[n];e[n]<t?o=n+1:i=n-1}}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}},{key:"_getHeaders",value:function(t){var e,r={},n=kA(t.getAllResponseHeaders().trim().split("\r\n"));try{for(n.s();!(e=n.n()).done;){var o=e.value.split(": ");r[o[0].toLowerCase()]=o.slice(1).join(": ")}}catch(t){n.e(t)}finally{n.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),t}(),EA=["retry","retryDelay","onRetryError","transformError"],LA=localStorage.getItem("type"),PA=function(){function t(e,r){xh(this,t),this.promise=function(){var t,e,r=new Promise((function(r,n){t=r,e=n}));return r.used=!1,r.resolve=function(){return r.used=!0,t.apply(void 0,arguments)},r.reject=function(){return r.used=!0,e.apply(void 0,arguments)},r}(),this.alive=!!r.onProgress,this._loaderType=e,this._loader=e!==MO||LA?new AA:new HT,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._logger=r.logger}var e;return wh(t,[{key:"exec",value:function(){var t=this,e=this._config,r=e.retry,n=e.retryDelay,o=e.onRetryError,i=e.transformError,a=jj(e,EA),u=function(){var e=mh(Ch.mark((function e(){var c,s;return Ch.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t._logger.debug("[task request ready to load]",a.range),e.next=4,t._loader.load(a);case 4:c=e.sent,t._loader.running=!1,t.promise.resolve(c),e.next=27;break;case 9:if(e.prev=9,e.t0=e.catch(0),t._loader.running=!1,t._logger.debug("[task request catch err]",e.t0.errorMessage),!t._canceled){e.next=15;break}return e.abrupt("return");case 15:if(e.t0.loaderType=t._loaderType,e.t0.retryCount=t._retryCount,s=e.t0,i&&(s=i(s)||s),o&&t._retryCount>0&&o(s,t._retryCount,r),t._retryCount++,!(t._retryCount<=r)){e.next=26;break}return clearTimeout(t._retryTimer),t._logger.debug("[task request setTimeout],retry",t._retryCount,",retry range,",a.range),t._retryTimer=setTimeout(u,n),e.abrupt("return");case 26:t.promise.reject(s);case 27:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();return this._logger.debug("[task request start]",this._config.range),u(),this.promise}},{key:"cancel",value:(e=mh(Ch.mark((function t(){return Ch.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,t.abrupt("return",this._loader.cancel());case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}}]),t}(),CA=function(){function t(e){xh(this,t),_h(this,"type",MO),_h(this,"_queue",[]),_h(this,"_alive",[]),_h(this,"_currentTask",null),this._config=kj(e),this._config.loaderType!==BO&&HT.isSupported()||(this.type=BO),this.log=e.logger}return wh(t,[{key:"isFetch",value:function(){return this.type===MO}},{key:"load",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t&&t?e=t:e.url=t||e.url||this._config.url,(e=Object.assign({},this._config,e)).params&&(e.params=Object.assign({},e.params)),e.headers&&qT(e.headers)&&(e.headers=Object.assign({},e.headers)),e.body&&qT(e.body)&&(e.body=Object.assign({},e.body)),e.transformRequest&&(e=e.transformRequest(e)||e),e.logger=this.log;var r=new PA(this.type,e);return this.log.debug("[task add queue]",e.range,", queueLen,",this._queue.length),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:function(){var t=this._queue.map((function(t){return t.cancel()})).concat(this._alive.map((function(t){return t.cancel()})));return this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],Promise.all(t)}},{key:"_processTask",value:function(){var t=this;this._currentTask=this._queue.shift(),this._currentTask&&(this._currentTask.alive&&this._alive.push(this._currentTask),this.log.debug("[task exec]",this._currentTask._config.range,", queueLen,",this._queue.length),this._currentTask.exec().finally((function(){t._processTask()})))}}],[{key:"isFetchSupport",value:function(){return HT.isSupported()}}]),t}();function RA(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e=e.filter(Boolean);var n=new Uint8Array(e.reduce((function(t,e){return t+e.byteLength}),0)),o=0;return e.forEach((function(t){n.set(t,o),o+=t.byteLength})),n}var IA=localStorage.getItem("playerlog"),MA=function(){function t(e){xh(this,t),this.name=e||"",this._prefix="[".concat(this.name,"]"),t.disabled=!!IA}return wh(t,[{key:"debug",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).debug.apply(e,[this._prefix].concat(n))}}},{key:"log",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).log.apply(e,[this._prefix].concat(n))}}},{key:"warn",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).warn.apply(e,[this._prefix].concat(n))}}},{key:"error",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];(e=console).error.apply(e,[this._prefix].concat(n))}}},{key:"table",value:function(){var e;t.disabled||(console.group(this._prefix),(e=console).table.apply(e,arguments),console.groupEnd())}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();_h(MA,"disabled",!0);var BA=Xf.includes,DA=zh;Cl({target:"Array",proto:!0},{includes:function(t){return BA(this,t,arguments.length>1?arguments[1]:void 0)}}),DA("includes");var FA=Jj,NA=ms("match"),zA=function(t){if(FA(t))throw TypeError("The method doesn't accept regular expressions");return t},UA=Tc,GA=td;Cl({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[NA]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~GA(UA(this)).indexOf(GA(zA(t)),arguments.length>1?arguments[1]:void 0)}});var qA="hevc",VA=Xs.exports,YA=Gs,WA=td,$A=lc,HA=gm,KA="toString",QA=RegExp.prototype,XA=QA.toString,JA=$A((function(){return"/a/b"!=XA.call({source:"a",flags:"b"})})),ZA=XA.name!=KA;(JA||ZA)&&VA(RegExp.prototype,KA,(function(){var t=YA(this),e=WA(t.source),r=t.flags;return"/"+e+"/"+WA(void 0===r&&t instanceof RegExp&&!("flags"in QA)?HA.call(t):r)}),{unsafe:!0});var tE="undefined"!=typeof window,eE=tE&&navigator.userAgent.toLocaleLowerCase();tE&&/^((?!chrome|android).)*safari/.test(eE);var rE=tE&&eE.includes("firefox"),nE=tE&&eE.includes("android"),oE=Math.pow(2,32);function iE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<8)+(t[e+1]||0)}function aE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<24>>>0)+(t[e+1]<<16)+(t[e+2]<<8)+(t[e+3]||0)}function uE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return aE(t,e)*oE+aE(t,e+4)}var cE=function(){function t(){xh(this,t)}return wh(t,null,[{key:"getRateIndexByRate",value:function(e){return t.FREQ.indexOf(e)}},{key:"parseADTS",value:function(e,r){for(var n=e.length,o=0;o+2<n&&(255!==e[o]||240!=(246&e[o+1]));)o++;if(!(o>=n)){var i=o,a=[],u=(60&e[o+2])>>>2,c=t.FREQ[u];if(!c)throw new Error("Invalid sampling index: ".concat(u));for(var s,f,l=1+((192&e[o+2])>>>6),h=(1&e[o+2])<<2|(192&e[o+3])>>>6,p=t._getConfig(u,h,l),d=p.config,v=p.codec,y=0,g=t.getFrameDuration(c);o+7<n;)if(255===e[o]&&240==(246&e[o+1])){if(n-o<(f=(3&e[o+3])<<11|e[o+4]<<3|(224&e[o+5])>>5))break;s=2*(1&~e[o+1]),a.push({pts:r+y*g,data:e.subarray(o+7+s,o+f)}),y++,o+=f}else o++;return{skip:i,remaining:o>=n?void 0:e.subarray(o),frames:a,samplingFrequencyIndex:u,sampleRate:c,objectType:l,channelCount:h,codec:v,config:d,originCodec:"mp4a.40.".concat(l)}}}},{key:"parseAudioSpecificConfig",value:function(e){if(e.length){var r=e[0]>>>3,n=(7&e[0])<<1|e[1]>>>7,o=(120&e[1])>>>3,i=t.FREQ[n];if(!i)throw new Error("Invalid sampling index: ".concat(n));var a=t._getConfig(n,o,r);return{samplingFrequencyIndex:n,sampleRate:i,objectType:r,channelCount:o,config:a.config,codec:a.codec,originCodec:"mp4a.40.".concat(r)}}}},{key:"getFrameDuration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*e/t}},{key:"_getConfig",value:function(t,e,r){var n,o,i=[];return rE?t>=6?(n=5,o=t-3):(n=2,o=t):nE?(n=2,o=t):(n=r,o=t,t>=6?o=t-3:1===e&&(n=2,o=t)),i[0]=n<<3,i[0]|=(14&t)>>1,i[1]=(1&t)<<7,i[1]|=e<<3,5===n&&(i[1]|=(14&o)>>1,i[2]=(1&o)<<7,i[2]|=8,i[3]=0),{config:i,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}]),t}();_h(cE,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var sE=Cl,fE=Ov.find,lE=zh,hE="find",pE=!0;hE in[]&&Array(1).find((function(){pE=!1})),sE({target:"Array",proto:!0,forced:pE},{find:function(t){return fE(this,t,arguments.length>1?arguments[1]:void 0)}}),lE(hE);var dE=Nf,vE=td,yE=Tc,gE=Gf,mE=td,bE=function(t){var e=vE(yE(this)),r="",n=dE(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},wE=Tc,_E=Math.ceil,xE=function(t){return function(e,r,n){var o,i,a=mE(wE(e)),u=a.length,c=void 0===n?" ":mE(n),s=gE(r);return s<=u||""==c?a:(o=s-u,(i=bE.call(c,_E(o/c.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},SE={start:xE(!1),end:xE(!0)},OE=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Rc),TE=SE.start;Cl({target:"String",proto:!0,forced:OE},{padStart:function(t){return TE(this,t,arguments.length>1?arguments[1]:void 0)}});var kE=zs,jE=gm;hc&&lc((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&kE.f(RegExp.prototype,"flags",{configurable:!0,get:jE});var AE=function(){function t(){xh(this,t)}return wh(t,null,[{key:"findBox",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[];if(!e)return o;for(var i=0,a="",u=0;e.length>7;){if(i=aE(e),a=String.fromCharCode.apply(null,e.subarray(4,8)),u=8,1===i?(i=uE(e,8),u+=8):i||(i=e.length),!r[0]||a===r[0]){var c=e.subarray(0,i);if(!(r.length<2))return t.findBox(c.subarray(u),r.slice(1),n+u);o.push({start:n,size:i,headerSize:u,type:a,data:c})}n+=i,e=e.subarray(i)}return o}},{key:"moov",value:function(e){return PE(e,!1,(function(e,r,n){e.mvhd=t.mvhd(t.findBox(r,["mvhd"],n)[0]),e.trak=t.findBox(r,["trak"],n).map((function(e){return t.trak(e)}))}))}},{key:"mvhd",value:function(t){return PE(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=aE(e,16),t.duration=uE(e,20),r+=28):(t.timescale=aE(e,8),t.duration=aE(e,12),r+=16),t.nextTrackId=aE(e,r+76)}))}},{key:"trak",value:function(e){return PE(e,!1,(function(e,r,n){e.tkhd=t.tkhd(t.findBox(r,["tkhd"],n)[0]),e.mdia=t.mdia(t.findBox(r,["mdia"],n)[0])}))}},{key:"tkhd",value:function(t){return PE(t,!0,(function(t,e){var r=0;1===t.version?(t.trackId=aE(e,16),t.duration=uE(e,24),r+=32):(t.trackId=aE(e,8),t.duration=aE(e,16),r+=20),t.width=aE(e,r+52),t.height=aE(e,r+56)}))}},{key:"mdia",value:function(e){return PE(e,!1,(function(e,r,n){e.mdhd=t.mdhd(t.findBox(r,["mdhd"],n)[0]),e.hdlr=t.hdlr(t.findBox(r,["hdlr"],n)[0]),e.minf=t.minf(t.findBox(r,["minf"],n)[0])}))}},{key:"mdhd",value:function(t){return PE(t,!0,(function(t,e){var r=0;1===t.version?(t.timescale=aE(e,16),t.duration=uE(e,20),r+=28):(t.timescale=aE(e,8),t.duration=aE(e,12),r+=16);var n=iE(e,r);t.language=String.fromCharCode(96+(n>>10&31),96+(n>>5&31),96+(31&n))}))}},{key:"hdlr",value:function(t){return PE(t,!0,(function(t,e){0===t.version&&(t.handlerType=String.fromCharCode.apply(null,e.subarray(4,8)))}))}},{key:"minf",value:function(e){return PE(e,!1,(function(e,r,n){e.vmhd=t.vmhd(t.findBox(r,["vmhd"],n)[0]),e.smhd=t.smhd(t.findBox(r,["smhd"],n)[0]),e.stbl=t.stbl(t.findBox(r,["stbl"],n)[0])}))}},{key:"vmhd",value:function(t){return PE(t,!0,(function(t,e){t.graphicsmode=iE(e),t.opcolor=[iE(e,2),iE(e,4),iE(e,6)]}))}},{key:"smhd",value:function(t){return PE(t,!0,(function(t,e){t.balance=iE(e)}))}},{key:"stbl",value:function(e){return PE(e,!1,(function(e,r,n){e.stsd=t.stsd(t.findBox(r,["stsd"],n)[0]),e.stts=t.stts(t.findBox(r,["stts"],n)[0]),e.ctts=t.ctts(t.findBox(r,["ctts"],n)[0]),e.stsc=t.stsc(t.findBox(r,["stsc"],n)[0]),e.stsz=t.stsz(t.findBox(r,["stsz"],n)[0]),e.stco=t.stco(t.findBox(r,["stco"],n)[0]),e.stss=t.stss(t.findBox(r,["stss"],n)[0])}))}},{key:"stsd",value:function(e){return PE(e,!0,(function(e,r,n){e.entryCount=aE(r),e.entries=t.findBox(r.subarray(4),[],n+4).map((function(e){switch(e.type){case"avc1":case"avc2":case"avc3":case"avc4":return t.avc1(e);case"hvc1":case"hev1":return t.hvc1(e);case"mp4a":return t.mp4a(e)}})).filter(Boolean)}))}},{key:"avc1",value:function(e){return PE(e,!1,(function(e,r,n){var o=LE(e,r),i=r.subarray(o);n+=o,e.avcC=t.avcC(t.findBox(i,["avcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"avcC",value:function(t){return PE(t,!1,(function(t,e){t.configurationVersion=e[0],t.AVCProfileIndication=e[1],t.profileCompatibility=e[2],t.AVCLevelIndication=e[3],t.codec=function(t){for(var e,r="avc1.",n=0;n<3;n++)(e=t[n].toString(16)).length<2&&(e="0".concat(e)),r+=e;return r}([e[1],e[2],e[3]]),t.lengthSizeMinusOne=3&e[4],t.spsLength=31&e[5],t.sps=[];for(var r=6,n=0;n<t.spsLength;n++){var o=iE(e,r);r+=2,t.sps.push(e.subarray(r,r+o)),r+=o}t.ppsLength=e[r],r+=1,t.pps=[];for(var i=0;i<t.ppsLength;i++){var a=iE(e,r);r+=2,t.pps.push(e.subarray(r,r+=a)),r+=a}}))}},{key:"hvc1",value:function(e){return PE(e,!1,(function(e,r,n){var o=LE(e,r),i=r.subarray(o);n+=o,e.hvcC=t.hvcC(t.findBox(i,["hvcC"],n)[0]),e.pasp=t.pasp(t.findBox(i,["pasp"],n)[0])}))}},{key:"hvcC",value:function(t){return PE(t,!1,(function(e,r){e.data=t.data,e.codec="hev1.1.6.L93.B0",e.configurationVersion=r[0];var n=r[1];e.generalProfileSpace=n>>6,e.generalTierFlag=(32&n)>>5,e.generalProfileIdc=31&n,e.generalProfileCompatibility=aE(r,2),e.generalConstraintIndicatorFlags=r.subarray(6,12),e.generalLevelIdc=r[12],e.avgFrameRate=iE(r,19),e.numOfArrays=r[22],e.vps=[],e.sps=[],e.pps=[];for(var o=23,i=0,a=0,u=0,c=0;c<e.numOfArrays;c++){i=63&r[o],a=iE(r,o+1),o+=3;for(var s,f=[],l=0;l<a;l++)u=iE(r,o),o+=2,f.push(r.subarray(o,o+u)),o+=u;if(32===i)(s=e.vps).push.apply(s,f);else if(33===i){var h;(h=e.sps).push.apply(h,f)}else if(34===i){var p;(p=e.pps).push.apply(p,f)}}}))}},{key:"pasp",value:function(t){return PE(t,!1,(function(t,e){t.hSpacing=aE(e),t.vSpacing=aE(e,4)}))}},{key:"mp4a",value:function(e){return PE(e,!1,(function(e,r,n){var o=function(t,e){return t.dataReferenceIndex=iE(e,6),t.channelCount=iE(e,16),t.sampleSize=iE(e,18),t.sampleRate=aE(e,24)/65536,28}(e,r);e.esds=t.esds(t.findBox(r.subarray(o),["esds"],n+o)[0])}))}},{key:"esds",value:function(t){return PE(t,!0,(function(t,e){t.codec="mp4a.";for(var r=0,n=0,o=0,i=0;e.length;){for(i=e[r=0],n=e[r+1],r+=2;128&n;)o=(127&n)<<7,n=e[r],r+=1;if(o+=127&n,3===i)e=e.subarray(r+3);else{if(4!==i){if(5===i){var a=t.config=e.subarray(r,r+o),u=(248&a[0])>>3;return 31===u&&a.length>=2&&(u=32+((7&a[0])<<3)+((224&a[1])>>5)),t.objectType=u,void(t.codec+=u.toString(16))}return}t.codec+=(e[r].toString(16)+".").padStart(3,"0"),e=e.subarray(r+13)}}}))}},{key:"stts",value:function(t){return PE(t,!0,(function(t,e){for(var r=aE(e),n=[],o=4,i=0;i<r;i++)n.push({count:aE(e,o),delta:aE(e,o+4)}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"ctts",value:function(t){return PE(t,!0,(function(t,e){var r=aE(e),n=[],o=4;if(1===t.version)for(var i=0;i<r;i++)n.push({count:aE(e,o),offset:aE(e,o+4)}),o+=8;else for(var a=0;a<r;a++)n.push({count:aE(e,o),offset:-(1+~aE(e,o+4))}),o+=8;t.entryCount=r,t.entries=n}))}},{key:"stsc",value:function(t){return PE(t,!0,(function(t,e){for(var r=aE(e),n=[],o=4,i=0;i<r;i++)n.push({firstChunk:aE(e,o),samplesPerChunk:aE(e,o+4),sampleDescriptionIndex:aE(e,o+8)}),o+=12;t.entryCount=r,t.entries=n}))}},{key:"stsz",value:function(t){return PE(t,!0,(function(t,e){var r=aE(e),n=aE(e,4),o=[];if(!r)for(var i=8,a=0;a<n;a++)o.push(aE(e,i)),i+=4;t.sampleSize=r,t.sampleCount=n,t.entrySizes=o}))}},{key:"stco",value:function(t){return PE(t,!0,(function(t,e){for(var r=aE(e),n=[],o=4,i=0;i<r;i++)n.push(aE(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"stss",value:function(t){return PE(t,!0,(function(t,e){for(var r=aE(e),n=[],o=4,i=0;i<r;i++)n.push(aE(e,o)),o+=4;t.entryCount=r,t.entries=n}))}},{key:"moovToTrack",value:function(t,e,r){var n=t.trak;if(n&&n.length){var o=n.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),i=n.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(o&&e){var a=e;a.timescale=a.formatTimescale=o.mdia.mdhd.timescale,a.duration=o.mdia.mdhd.duration;var u=o.mdia.minf.stbl.stsd.entries[0];if(a.width=u.width,a.height=u.height,u.pasp&&(a.sarRatio=[u.pasp.hSpacing,u.pasp.vSpacing]),u.hvcC)a.codecType=qA,a.codec=u.hvcC.codec,a.vps=u.hvcC.vps,a.sps=u.hvcC.sps,a.pps=u.hvcC.pps,a.hvcC=u.hvcC.data;else{if(!u.avcC)throw new Error("unknown video stsd entry");a.codec=u.avcC.codec,a.sps=u.avcC.sps,a.pps=u.avcC.pps}a.present=!0}if(i&&r){var c,s,f=r;f.timescale=f.formatTimescale=i.mdia.mdhd.timescale,f.duration=i.mdia.mdhd.duration;var l=i.mdia.minf.stbl.stsd.entries[0];f.sampleSize=l.sampleSize,f.sampleRate=l.sampleRate,f.channelCount=l.channelCount,f.sampleDuration=cE.getFrameDuration(f.sampleRate,f.timescale),f.objectType=(null===(c=l.esds)||void 0===c?void 0:c.objectType)||2,l.esds&&(f.config=Array.from(l.esds.config)),f.codec=(null===(s=l.esds)||void 0===s?void 0:s.codec)||"mp4a.40.2",f.sampleRateIndex=cE.getRateIndexByRate(f.sampleRate),f.present=!0}return{videoTrack:e,audioTrack:r}}}},{key:"moovToSamples",value:function(t){var e=t.trak;if(e&&e.length){var r=e.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),n=e.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(r||n){var o,i;if(r){var a,u,c=null===(a=r.mdia)||void 0===a||null===(u=a.minf)||void 0===u?void 0:u.stbl;if(!c)return;var s=c.stts,f=c.stsc,l=c.stsz,h=c.stco,p=c.stss,d=c.ctts;if(!(s&&f&&l&&h&&p))return;o=EE(s,f,l,h,d,p)}if(n){var v,y,g,m=null===(v=n.mdia)||void 0===v||null===(y=v.minf)||void 0===y?void 0:y.stbl;if(!m)return;var b=null===(g=n.mdia.mdhd)||void 0===g?void 0:g.timescale,w=m.stts,_=m.stsc,x=m.stsz,S=m.stco;if(!(b&&w&&_&&x&&S))return;i=EE(w,_,x,S)}return{videoSamples:o,audioSamples:i}}}}}]),t}();function EE(t,e,r,n,o,i){var a,u,c,s=[],f=null==o?void 0:o.entries,l=e.entries,h=n.entries,p=r.entrySizes,d=null==i?void 0:i.entries;d&&(a={},d.forEach((function(t){a[t-1]=!0}))),f&&(u=[],f.forEach((function(t){for(var e=t.count,r=t.offset,n=0;n<e;n++)u.push(r)})));var v=-1,y=0,g=0,m=0,b=0,w=0,_=l[0].samplesPerChunk,x=l[1]?l[1].firstChunk-1:1/0;return t.entries.forEach((function(t){for(var e=t.count,n=t.delta,o=0;o<e;o++)c={dts:y,duration:n,size:p[g]||r.sampleSize,offset:h[m]+w,index:g},d&&(c.keyframe=a[g],c.keyframe&&v++,c.gopId=v),u&&u[g]&&(c.pts=c.dts+u[g]),s.push(c),y+=n,++g<_?w+=c.size:(m++,w=0,m>=x&&(b++,x=l[b+1]?l[b+1].firstChunk-1:1/0),_+=l[b].samplesPerChunk)})),s}function LE(t,e){return t.dataReferenceIndex=iE(e,6),t.width=iE(e,24),t.height=iE(e,26),t.horizresolution=aE(e,28),t.vertresolution=aE(e,32),t.frameCount=iE(e,40),t.depth=iE(e,74),78}function PE(t,e,r){if(t){if(t.size!==t.data.length)throw new Error("box ".concat(t.type," size !== data.length"));var n={start:t.start,size:t.size,headerSize:t.headerSize,type:t.type};return e&&(n.version=t.data[t.headerSize],n.flags=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<16)+(t[e+1]<<8)+(t[e+2]||0)}(t.data,t.headerSize+1),n.headerSize+=4),r(n,t.data.subarray(n.headerSize),n.start+n.headerSize),n}}function CE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function RE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CE(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var IE=function t(e,r){n(this,t),this.type="file",this.message=e,this.data=r},ME=function(){function t(){n(this,t),a(this,"_data",Object.create(null))}return i(t,[{key:"set",value:function(t,e){this._data[t]=e}},{key:"get",value:function(t){return this._data[t]}},{key:"clear",value:function(){this._data=Object.create(null)}}]),t}();function BE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function DE(t){return function(t){if(Array.isArray(t))return BE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return BE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?BE(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var FE=Do.map;Wn({target:"Array",proto:!0,forced:!Ti("map")},{map:function(t){return FE(this,t,arguments.length>1?arguments[1]:void 0)}});var NE,zE,UE,GE={},qE=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),VE=s,YE=Nt,WE=Y,$E=Bt,HE=qE,KE=fr("IE_PROTO"),QE=VE.Object,XE=QE.prototype,JE=HE?QE.getPrototypeOf:function(t){var e=$E(t);if(YE(e,KE))return e[KE];var r=e.constructor;return WE(r)&&e instanceof r?r.prototype:e instanceof QE?XE:null},ZE=l,tL=Y,eL=JE,rL=Ke.exports,nL=ee("iterator"),oL=!1;[].keys&&("next"in(UE=[].keys())?(zE=eL(eL(UE)))!==Object.prototype&&(NE=zE):oL=!0),(null==NE||ZE((function(){var t={};return NE[nL].call(t)!==t})))&&(NE={}),tL(NE[nL])||rL(NE,nL,(function(){return this}));var iL={IteratorPrototype:NE,BUGGY_SAFARI_ITERATORS:oL},aL=iL.IteratorPrototype,uL=ui,cL=S,sL=ga,fL=GE,lL=function(){return this},hL=s,pL=Y,dL=hL.String,vL=hL.TypeError,yL=E,gL=Ie,mL=function(t){if("object"==typeof t||pL(t))return t;throw vL("Can't set "+dL(t)+" as a prototype")},bL=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=yL(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return gL(r),mL(n),e?t(r,n):r.__proto__=n,r}}():void 0),wL=Wn,_L=y,xL=Mr,SL=Y,OL=function(t,e,r,n){var o=e+" Iterator";return t.prototype=uL(aL,{next:cL(+!n,r)}),sL(t,o,!1),fL[o]=lL,t},TL=JE,kL=bL,jL=ga,AL=He,EL=Ke.exports,LL=GE,PL=xL.PROPER,CL=xL.CONFIGURABLE,RL=iL.IteratorPrototype,IL=iL.BUGGY_SAFARI_ITERATORS,ML=ee("iterator"),BL="keys",DL="values",FL="entries",NL=function(){return this},zL=V,UL=hi,GL=GE,qL=Er,VL=Ae.f,YL=function(t,e,r,n,o,i,a){OL(r,e,n);var u,c,s,f=function(t){if(t===o&&v)return v;if(!IL&&t in p)return p[t];switch(t){case BL:case DL:case FL:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[ML]||p["@@iterator"]||o&&p[o],v=!IL&&d||f(o),y="Array"==e&&p.entries||d;if(y&&(u=TL(y.call(new t)))!==Object.prototype&&u.next&&(TL(u)!==RL&&(kL?kL(u,RL):SL(u[ML])||EL(u,ML,NL)),jL(u,l,!0)),PL&&o==DL&&d&&d.name!==DL&&(CL?AL(p,"name",DL):(h=!0,v=function(){return _L(d,this)})),o)if(c={values:f(DL),keys:i?v:f(BL),entries:f(FL)},a)for(s in c)(IL||h||!(s in p))&&EL(p,s,c[s]);else wL({target:e,proto:!0,forced:IL||h},c);return p[ML]!==v&&EL(p,ML,v,{name:o}),LL[e]=v,c},WL=h,$L="Array Iterator",HL=qL.set,KL=qL.getterFor($L),QL=YL(Array,"Array",(function(t,e){HL(this,{type:$L,target:zL(t),index:0,kind:e})}),(function(){var t=KL(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),XL=GL.Arguments=GL.Array;if(UL("keys"),UL("values"),UL("entries"),WL&&"values"!==XL.name)try{VL(XL,"name",{value:"values"})}catch(t){}var JL=uo,ZL=Zn?{}.toString:function(){return"[object "+JL(this)+"]"},tP=Zn,eP=Ke.exports,rP=ZL;tP||eP(Object.prototype,"toString",rP,{unsafe:!0});var nP=s,oP=qu,iP=Wu,aP=QL,uP=He,cP=ee,sP=cP("iterator"),fP=cP("toStringTag"),lP=aP.values,hP=function(t,e){if(t){if(t[sP]!==lP)try{uP(t,sP,lP)}catch(e){t[sP]=lP}if(t[fP]||uP(t,fP,e),oP[e])for(var r in aP)if(t[r]!==aP[r])try{uP(t,r,aP[r])}catch(e){t[r]=aP[r]}}};for(var pP in oP)hP(nP[pP]&&nP[pP].prototype,pP);function dP(t,e){var r=t.trak;if(r&&r.length){var n=r.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),o=r.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(n||o){var i,a=[],u=[];if(n){var c,s,f,l=null===(c=n.mdia)||void 0===c||null===(s=c.minf)||void 0===s?void 0:s.stbl;if(!l)return;var h=null===(f=n.mdia.mdhd)||void 0===f?void 0:f.timescale,p=l.stts,d=l.stsc,v=l.stsz,y=l.stco,g=l.stss;if(!(h&&p&&d&&v&&y&&g))return;i=(a=vP(e,h,p,d,v,y,g)).map((function(t){return t.endTime-t.startTime}))}if(o){var m,b,w,_=null===(m=o.mdia)||void 0===m||null===(b=m.minf)||void 0===b?void 0:b.stbl;if(!_)return;var x=null===(w=o.mdia.mdhd)||void 0===w?void 0:w.timescale,S=_.stts,O=_.stsc,T=_.stsz,k=_.stco;if(!(x&&S&&O&&T&&k))return;u=vP(e,x,S,O,T,k,null,i)}return{videoSegments:a,audioSegments:u}}}}function vP(t,e,r,n,o,i,a,u){var c,s,f,l=[],h=[],p=[],d=n.entries,v=i.entries,y=o.entrySizes,g=null==a?void 0:a.entries;g&&(c={},g.forEach((function(t){c[t-1]=!0})));var m=0,b=0,w=0,_=0,x=0,S=d[0].samplesPerChunk,O=d[1]?d[1].firstChunk-1:1/0;r.entries.forEach((function(t){var r=t.count,n=t.delta;f=n/e;for(var i=0;i<r;i++)s={startTime:m,duration:f,size:y[b]||o.sampleSize,offset:v[w]+x,index:b},g&&(s.keyframe=c[b],s.keyframe?(h.push([s]),p.push(s.duration)):(h[h.length-1].push(s),p[h.length-1]+=s.duration)),l.push(s),m+=f,++b<S?x+=s.size:(w++,x=0,w>=O&&(_++,O=d[_+1]?d[_+1].firstChunk-1:1/0),S+=d[_].samplesPerChunk)}));var T=l.length;if(T&&(!a||l[0].keyframe)){var k,j=[],A=[],E=0,L=function(){var t;k=A[A.length-1],j.push({index:j.length,startTime:(null===(t=j[j.length-1])||void 0===t?void 0:t.endTime)||A[0].startTime,endTime:k.startTime+k.duration,range:[A[0].offset,k.offset+k.size],frames:A}),E=0,A=[]};if(a)for(var P=0,C=0,R=h.length;C<R;C++){var I,M;if(E+=p[C],(I=A).push.apply(I,DE(h[C])),C+1<R){if((P=E+p[C+1])>=t)if(P-t<Math.abs(t-E))(M=A).push.apply(M,DE(h[C+1])),L(),C++;else L()}else L()}else for(var B=(u=u||[])[0]||t,D=0;D<T;D++)A.push(l[D]),E+=l[D].duration,(D+1>=T||E>=B)&&(L(),B=u[j.length]||t);return j}}function yP(t){var e="",r="",n=0,o=0,i=0,a=0,u=0;t.mvhd&&(u=t.mvhd.duration/t.mvhd.timescale);var c=t.trak;if(c){var s,f,l,h,p,d,v,y,g,m=c.find((function(t){var e,r;return"vide"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)})),b=c.find((function(t){var e,r;return"soun"===(null===(e=t.mdia)||void 0===e||null===(r=e.hdlr)||void 0===r?void 0:r.handlerType)}));if(m)if(s=null===(f=m.mdia)||void 0===f||null===(l=f.minf)||void 0===l||null===(h=l.stbl)||void 0===h?void 0:h.stsd.entries[0])n=s.width,o=s.height,e=null===(p=s.avcC||s.hvcC)||void 0===p?void 0:p.codec;if(b)if(s=null===(d=b.mdia)||void 0===d||null===(v=d.minf)||void 0===v||null===(y=v.stbl)||void 0===y?void 0:y.stsd.entries[0])i=s.channelCount,a=s.sampleRate,r=null===(g=s.esds)||void 0===g?void 0:g.codec}return{videoCodec:e,audioCodec:r,width:n,height:o,audioChannelCount:i,audioSampleRate:a,duration:u,moov:t}}function gP(t){return"number"==typeof t&&!isNaN(t)}hP(iP,"DOMTokenList");var mP=["vid","moovEnd","segmentDuration","cache","maxDownloadInfoSize"];function bP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}return function(){function t(e){n(this,t),a(this,"vid",""),a(this,"url",""),a(this,"meta",{}),a(this,"downloadInfo",[]),a(this,"videoSegments",[]),a(this,"audioSegments",[]),a(this,"cache",null),a(this,"_currentSegmentIndex",-1),a(this,"_currentLoadingSegmentIndex",-1),a(this,"_transformError",(function(t){return t.type="network",t})),this._config=RE(RE({vid:"",moovEnd:8e3,segmentDuration:5,maxDownloadInfoSize:30,cache:null},e),{},{responseType:"arraybuffer"});var o=this._config,i=o.vid;o.moovEnd,o.segmentDuration;var u=o.cache;o.maxDownloadInfoSize;var c=r(o,mP);this.cache=u||new ME,this.vid=i||c.url,this.url=c.url,c.transformError=this._transformError,this.logger=new MA("MP4Loader"),e.openLog&&MA.enable(),c.logger=this.logger,this._loader=new CA(c)}var o,u,c,s,f,l,h,p,d,v;return i(t,[{key:"isMetaLoaded",get:function(){return this.videoSegments.length||this.audioSegments.length}},{key:"setCurrentSegment",value:function(t){gP(t)&&(this._currentSegmentIndex=t)}},{key:"isLastSegment",value:function(t){var e,r;return!!gP(t)&&t===((null===(e=this.videoSegments[this.videoSegments.length-1])||void 0===e?void 0:e.index)||(null===(r=this.audioSegments[this.audioSegments.length-1])||void 0===r?void 0:r.index)||0)}},{key:"isSegmentLoading",value:function(t){return t===this._currentLoadingSegmentIndex}},{key:"changeUrl",value:(v=e(uc.mark((function t(e){var r,n,o=arguments;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:e,n=o.length>2?o[2]:void 0,t.next=4,this.reset();case 4:e&&(this.url=e),r&&(this.vid=r),n&&(this._config.moovEnd=n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"getOrLoadMeta",value:(d=e(uc.mark((function t(e){return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(e);case 3:return t.abrupt("return",this.meta);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"loadMeta",value:(p=e(uc.mark((function t(e,r){var n,o,i,a,u,c,s,f,l;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.next=3,this._loadData([0,r||this._config.moovEnd],e);case 3:if(o=t.sent){t.next=6;break}return t.abrupt("return");case 6:if(n.push(o),i=AE.findBox(o.data,["moov"])[0]){t.next=22;break}if(a=AE.findBox(o.data,["mdat"])[0]){t.next=12;break}throw new IE("cannot find moov or mdat box",o.data);case 12:return u=a.start+a.size,t.next=15,this._loadData([u],e);case 15:if(o=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(n.push(o),i=AE.findBox(o.data,["moov"],u)[0]){t.next=22;break}throw new IE("cannot find moov box",o.data);case 22:if(!(i.size>i.data.length)){t.next=30;break}return t.next=25,this._loadData([o.data.length,i.start+i.size-1],e);case 25:if(o=t.sent){t.next=28;break}return t.abrupt("return");case 28:n.push(o),i.data=RA(i.data,o.data);case 30:if(c=AE.moov(i)){t.next=33;break}throw new IE("cannot parse moov box",i.data);case 33:if(s=dP(c,this._config.segmentDuration)){t.next=36;break}throw new IE("cannot parse segments",i.data);case 36:return this.meta=yP(c),f=s.videoSegments,l=s.audioSegments,this.videoSegments=f,this.audioSegments=l,t.abrupt("return",{meta:this.meta,videoSegments:f,audioSegments:l,responses:n});case 41:case"end":return t.stop()}}),t,this)}))),function(t,e){return p.apply(this,arguments)})},{key:"getSegmentByTime",value:function(t){var e,r;return this.videoSegments.length?(e=this.videoSegments.find((function(e){return e.startTime<=t&&e.endTime>t})))&&(r=this.audioSegments[e.index]):r=this.audioSegments.find((function(e){return e.startTime<=t&&e.endTime>t})),{video:e,audio:r}}},{key:"loadSegmentByTime",value:(h=e(uc.mark((function t(e,r){var n,o,i,a,u=arguments;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(u.length>2&&void 0!==u[2])||u[2],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta(r);case 4:return o=this.getSegmentByTime(e),i=o.video,a=o.audio,t.abrupt("return",this._loadSegment(i,a,r,n));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:"loadNextSegment",value:(l=e(uc.mark((function t(e){var r,n,o,i=arguments;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!(i.length>1&&void 0!==i[1])||i[1],this.isMetaLoaded){t.next=4;break}return t.next=4,this.loadMeta();case 4:return n=this.videoSegments[this._currentSegmentIndex+1],o=this.audioSegments[this._currentSegmentIndex+1],t.abrupt("return",this._loadSegment(n,o,e,r));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"preload",value:(f=e(uc.mark((function t(r){var n,o,i,a,u,c,s,f=this;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isMetaLoaded){t.next=3;break}return t.next=3,this.loadMeta(!0);case 3:if(r&&!(r<0)){t.next=5;break}return t.abrupt("return");case 5:if(n=this.getSegmentByTime(r),o=n.video,i=n.audio,a=Math.max((null==o?void 0:o.index)||0,(null==i?void 0:i.index)||0)){t.next=9;break}return t.abrupt("return");case 9:return u=this.videoSegments.slice(0,a),c=this.audioSegments.slice(0,a),s=function(){var t=e(uc.mark((function t(e){return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e>a)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,f._loadSegment(u[e],c[e],!0,!1);case 4:return t.next=6,s(e+1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=14,s(0);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"cancel",value:function(){return this._loader.cancel()}},{key:"reset",value:(s=e(uc.mark((function t(){return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._loader.cancel();case 2:this.vid=this.url="",this.meta={},this.downloadInfo=[],this.videoSegments=[],this.audioSegments=[],this._currentSegmentIndex=-1,this._currentLoadingSegmentIndex=-1;case 9:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"destroy",value:(c=e(uc.mark((function t(){return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.cancel();case 2:this.cache.clear();case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"_loadSegment",value:(u=e(uc.mark((function t(e,r,n,o){var i,a;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||r){t.next=2;break}return t.abrupt("return");case 2:return i=(null==e?void 0:e.index)||(null==r?void 0:r.index)||0,this._currentLoadingSegmentIndex=i,t.prev=4,t.next=7,this._loadData([Math.min((null==e?void 0:e.range[0])||1/0,(null==r?void 0:r.range[0])||1/0),Math.max((null==e?void 0:e.range[1])||0,(null==r?void 0:r.range[1])||0)],n);case 7:a=t.sent;case 8:return t.prev=8,this._currentLoadingSegmentIndex=-1,t.finish(8);case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return o&&(this._currentSegmentIndex=i),a.video=e,a.audio=r,t.abrupt("return",a);case 17:case"end":return t.stop()}}),t,this,[[4,,8,11]])}))),function(t,e,r,n){return u.apply(this,arguments)})},{key:"loadData",value:(o=e(uc.mark((function t(e,r,n){var o,i,a;return uc.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this._getCacheKey(e),t.next=3,this.cache.get(o);case 3:if(i=t.sent){t.next=10;break}return t.next=7,this._loader.load(this.url,wP({range:e},n));case 7:a=t.sent,t.next=11;break;case 10:a={data:i,state:!0,options:{fromCache:!0,range:e}};case 11:if(a){t.next=13;break}return t.abrupt("return");case 13:return i||(a.data&&this.downloadInfo.push({startTime:a.startTime,endTime:a.endTime,size:a.data.byteLength,range:e}),this.downloadInfo&&this.downloadInfo.length>this._config.maxDownloadInfoSize&&(this.downloadInfo=this.downloadInfo.slice(-this._config.maxDownloadInfoSize))),!i&&r&&this.cache.set(o,a.data),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"_getCacheKey",value:function(t){return(this.vid||this.url)+":"+t}}]),t}()}));
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|