xgplayer-transmuxer 3.0.0-next.1

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.
Files changed (56) hide show
  1. package/dist/index.min.js +2 -0
  2. package/dist/index.min.js.map +1 -0
  3. package/es/codec/aac.d.ts +33 -0
  4. package/es/codec/aac.js +237 -0
  5. package/es/codec/avc.d.ts +35 -0
  6. package/es/codec/avc.js +261 -0
  7. package/es/codec/hevc.d.ts +38 -0
  8. package/es/codec/hevc.js +202 -0
  9. package/es/codec/index.d.ts +4 -0
  10. package/es/codec/nalu.d.ts +11 -0
  11. package/es/codec/nalu.js +194 -0
  12. package/es/flv/amf.d.ts +16 -0
  13. package/es/flv/amf.js +247 -0
  14. package/es/flv/fixer.d.ts +26 -0
  15. package/es/flv/fixer.js +431 -0
  16. package/es/flv/index.d.ts +63 -0
  17. package/es/flv/index.js +410 -0
  18. package/es/index.d.ts +5 -0
  19. package/es/index.js +12 -0
  20. package/es/model/audio-sample.d.ts +18 -0
  21. package/es/model/audio-sample.js +26 -0
  22. package/es/model/audio-track.d.ts +38 -0
  23. package/es/model/audio-track.js +94 -0
  24. package/es/model/index.d.ts +6 -0
  25. package/es/model/metadata-track.d.ts +36 -0
  26. package/es/model/metadata-track.js +100 -0
  27. package/es/model/types.d.ts +26 -0
  28. package/es/model/types.js +31 -0
  29. package/es/model/video-sample.d.ts +44 -0
  30. package/es/model/video-sample.js +66 -0
  31. package/es/model/video-track.d.ts +43 -0
  32. package/es/model/video-track.js +96 -0
  33. package/es/mp4/fmp4-remuxer.d.ts +29 -0
  34. package/es/mp4/fmp4-remuxer.js +149 -0
  35. package/es/mp4/index.d.ts +3 -0
  36. package/es/mp4/mp4-parser.d.ts +2 -0
  37. package/es/mp4/mp4-parser.js +7 -0
  38. package/es/mp4/mp4-remuxer.d.ts +23 -0
  39. package/es/mp4/mp4-remuxer.js +273 -0
  40. package/es/mp4/mp4.d.ts +56 -0
  41. package/es/mp4/mp4.js +572 -0
  42. package/es/mpeg-ts/fixer.d.ts +23 -0
  43. package/es/mpeg-ts/fixer.js +383 -0
  44. package/es/mpeg-ts/index.d.ts +60 -0
  45. package/es/mpeg-ts/index.js +480 -0
  46. package/es/utils/env.d.ts +4 -0
  47. package/es/utils/env.js +10 -0
  48. package/es/utils/exp-golomb.d.ts +17 -0
  49. package/es/utils/exp-golomb.js +172 -0
  50. package/es/utils/index.d.ts +6 -0
  51. package/es/utils/index.js +51 -0
  52. package/es/utils/logger.d.ts +9 -0
  53. package/es/utils/logger.js +45 -0
  54. package/es/utils/utf8.d.ts +9 -0
  55. package/es/utils/utf8.js +91 -0
  56. package/package.json +25 -0
@@ -0,0 +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).XGPlayerTransmuxer=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={},s={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c=u&&!s.call({1:2},1);o.f=c?function(t){var e=u(this,t);return!!e&&e.enumerable}:s;var f,l,h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,d=function(t){return p.call(t).slice(8,-1)},y=d,v="".split,m=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==y(t)?v.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=m,_=g,k=function(t){return b(_(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=r,T=function(t){return"function"==typeof t?t:void 0},D=function(t,e){return arguments.length<2?T(w[t]):w[t]&&w[t][e]},x=D("navigator","userAgent")||"",S=r,E=x,P=S.process,O=S.Deno,I=P&&P.versions||O&&O.version,U=I&&I.v8;U?l=(f=U.split("."))[0]<4?1:f[0]+f[1]:E&&(!(f=E.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=E.match(/Chrome\/(\d+)/))&&(l=f[1]);var C=l&&+l,B=C,M=i,L=!!Object.getOwnPropertySymbols&&!M((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),R=L&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,N=D,j=R?function(t){return"symbol"==typeof t}:function(t){var e=N("Symbol");return"function"==typeof e&&Object(t)instanceof e},V=A,G={exports:{}},F=r,z=function(t,e){try{Object.defineProperty(F,t,{value:e,configurable:!0,writable:!0})}catch(r){F[t]=e}return e},W=z,H="__core-js_shared__",Y=r[H]||W(H,{}),q=Y;(G.exports=function(t,e){return q[t]||(q[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var K=g,Z=function(t){return Object(K(t))},Q=Z,X={}.hasOwnProperty,$=Object.hasOwn||function(t,e){return X.call(Q(t),e)},J=0,tt=Math.random(),et=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++J+tt).toString(36)},rt=r,nt=G.exports,it=$,at=et,ot=L,st=R,ut=nt("wks"),ct=rt.Symbol,ft=st?ct:ct&&ct.withoutSetter||at,lt=function(t){return it(ut,t)&&(ot||"string"==typeof ut[t])||(ot&&it(ct,t)?ut[t]=ct[t]:ut[t]=ft("Symbol."+t)),ut[t]},ht=A,pt=j,dt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!V(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!V(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!V(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},yt=lt("toPrimitive"),vt=function(t,e){if(!ht(t)||pt(t))return t;var r,n=t[yt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!ht(r)||pt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),dt(t,e)},mt=vt,gt=j,bt=function(t){var e=mt(t,"string");return gt(e)?e:String(e)},_t=A,kt=r.document,At=_t(kt)&&_t(kt.createElement),wt=function(t){return At?kt.createElement(t):{}},Tt=wt,Dt=!a&&!i((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),xt=a,St=o,Et=h,Pt=k,Ot=bt,It=$,Ut=Dt,Ct=Object.getOwnPropertyDescriptor;n.f=xt?Ct:function(t,e){if(t=Pt(t),e=Ot(e),Ut)try{return Ct(t,e)}catch(t){}if(It(t,e))return Et(!St.f.call(t,e),t[e])};var Bt={},Mt=A,Lt=function(t){if(!Mt(t))throw TypeError(String(t)+" is not an object");return t},Rt=a,Nt=Dt,jt=Lt,Vt=bt,Gt=Object.defineProperty;Bt.f=Rt?Gt:function(t,e,r){if(jt(t),e=Vt(e),jt(r),Nt)try{return Gt(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 Ft=Bt,zt=h,Wt=a?function(t,e,r){return Ft.f(t,e,zt(1,r))}:function(t,e,r){return t[e]=r,t},Ht={exports:{}},Yt=Y,qt=Function.toString;"function"!=typeof Yt.inspectSource&&(Yt.inspectSource=function(t){return qt.call(t)});var Kt,Zt,Qt,Xt=Yt.inspectSource,$t=Xt,Jt=r.WeakMap,te="function"==typeof Jt&&/native code/.test($t(Jt)),ee=G.exports,re=et,ne=ee("keys"),ie=function(t){return ne[t]||(ne[t]=re(t))},ae={},oe=te,se=A,ue=Wt,ce=$,fe=Y,le=ie,he=ae,pe="Object already initialized",de=r.WeakMap;if(oe||fe.state){var ye=fe.state||(fe.state=new de),ve=ye.get,me=ye.has,ge=ye.set;Kt=function(t,e){if(me.call(ye,t))throw new TypeError(pe);return e.facade=t,ge.call(ye,t,e),e},Zt=function(t){return ve.call(ye,t)||{}},Qt=function(t){return me.call(ye,t)}}else{var be=le("state");he[be]=!0,Kt=function(t,e){if(ce(t,be))throw new TypeError(pe);return e.facade=t,ue(t,be,e),e},Zt=function(t){return ce(t,be)?t[be]:{}},Qt=function(t){return ce(t,be)}}var _e={set:Kt,get:Zt,has:Qt,enforce:function(t){return Qt(t)?Zt(t):Kt(t,{})},getterFor:function(t){return function(e){var r;if(!se(e)||(r=Zt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},ke=r,Ae=Wt,we=$,Te=z,De=Xt,xe=_e.get,Se=_e.enforce,Ee=String(String).split("String");(Ht.exports=function(t,e,r,n){var i,a=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||we(r,"name")||Ae(r,"name",e),(i=Se(r)).source||(i.source=Ee.join("string"==typeof e?e:""))),t!==ke?(a?!s&&t[e]&&(o=!0):delete t[e],o?t[e]=r:Ae(t,e,r)):o?t[e]=r:Te(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&xe(this).source||De(this)}));var Pe={},Oe=Math.ceil,Ie=Math.floor,Ue=function(t){return isNaN(t=+t)?0:(t>0?Ie:Oe)(t)},Ce=Ue,Be=Math.min,Me=function(t){return t>0?Be(Ce(t),9007199254740991):0},Le=Ue,Re=Math.max,Ne=Math.min,je=function(t,e){var r=Le(t);return r<0?Re(r+e,0):Ne(r,e)},Ve=k,Ge=Me,Fe=je,ze=function(t){return function(e,r,n){var i,a=Ve(e),o=Ge(a.length),s=Fe(n,o);if(t&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}},We={includes:ze(!0),indexOf:ze(!1)},He=$,Ye=k,qe=We.indexOf,Ke=ae,Ze=function(t,e){var r,n=Ye(t),i=0,a=[];for(r in n)!He(Ke,r)&&He(n,r)&&a.push(r);for(;e.length>i;)He(n,r=e[i++])&&(~qe(a,r)||a.push(r));return a},Qe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe=Ze,$e=Qe.concat("length","prototype");Pe.f=Object.getOwnPropertyNames||function(t){return Xe(t,$e)};var Je={};Je.f=Object.getOwnPropertySymbols;var tr=Pe,er=Je,rr=Lt,nr=D("Reflect","ownKeys")||function(t){var e=tr.f(rr(t)),r=er.f;return r?e.concat(r(t)):e},ir=$,ar=nr,or=n,sr=Bt,ur=i,cr=/#|\.prototype\./,fr=function(t,e){var r=hr[lr(t)];return r==dr||r!=pr&&("function"==typeof e?ur(e):!!e)},lr=fr.normalize=function(t){return String(t).replace(cr,".").toLowerCase()},hr=fr.data={},pr=fr.NATIVE="N",dr=fr.POLYFILL="P",yr=fr,vr=r,mr=n.f,gr=Wt,br=Ht.exports,_r=z,kr=function(t,e){for(var r=ar(e),n=sr.f,i=or.f,a=0;a<r.length;a++){var o=r[a];ir(t,o)||n(t,o,i(e,o))}},Ar=yr,wr=function(t,e){var r,n,i,a,o,s=t.target,u=t.global,c=t.stat;if(r=u?vr:c?vr[s]||_r(s,{}):(vr[s]||{}).prototype)for(n in e){if(a=e[n],i=t.noTargetGet?(o=mr(r,n))&&o.value:r[n],!Ar(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;kr(a,i)}(t.sham||i&&i.sham)&&gr(a,"sham",!0),br(r,n,a,t)}},Tr=Ze,Dr=Qe,xr=Object.keys||function(t){return Tr(t,Dr)},Sr=Z,Er=xr;wr({target:"Object",stat:!0,forced:i((function(){Er(1)}))},{keys:function(t){return Er(Sr(t))}});var Pr,Or=d,Ir=Array.isArray||function(t){return"Array"==Or(t)},Ur=j,Cr=function(t){if(Ur(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Br=Bt,Mr=Lt,Lr=xr,Rr=a?Object.defineProperties:function(t,e){Mr(t);for(var r,n=Lr(e),i=n.length,a=0;i>a;)Br.f(t,r=n[a++],e[r]);return t},Nr=D("document","documentElement"),jr=Lt,Vr=Rr,Gr=Qe,Fr=ae,zr=Nr,Wr=wt,Hr=ie("IE_PROTO"),Yr=function(){},qr=function(t){return"<script>"+t+"</"+"script>"},Kr=function(t){t.write(qr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Zr=function(){try{Pr=new ActiveXObject("htmlfile")}catch(t){}var t,e;Zr="undefined"!=typeof document?document.domain&&Pr?Kr(Pr):((e=Wr("iframe")).style.display="none",zr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(qr("document.F=Object")),t.close(),t.F):Kr(Pr);for(var r=Gr.length;r--;)delete Zr.prototype[Gr[r]];return Zr()};Fr[Hr]=!0;var Qr=Object.create||function(t,e){var r;return null!==t?(Yr.prototype=jr(t),r=new Yr,Yr.prototype=null,r[Hr]=t):r=Zr(),void 0===e?r:Vr(r,e)},Xr={},$r=k,Jr=Pe.f,tn={}.toString,en="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Xr.f=function(t){return en&&"[object Window]"==tn.call(t)?function(t){try{return Jr(t)}catch(t){return en.slice()}}(t):Jr($r(t))};var rn={},nn=lt;rn.f=nn;var an=r,on=$,sn=rn,un=Bt.f,cn=Bt.f,fn=$,ln=lt("toStringTag"),hn=function(t,e,r){t&&!fn(t=r?t:t.prototype,ln)&&cn(t,ln,{configurable:!0,value:e})},pn=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},dn=pn,yn=function(t,e,r){if(dn(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,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},vn=A,mn=Ir,gn=lt("species"),bn=function(t){var e;return mn(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!mn(e.prototype)?vn(e)&&null===(e=e[gn])&&(e=void 0):e=void 0),void 0===e?Array:e},_n=function(t,e){return new(bn(t))(0===e?0:e)},kn=yn,An=m,wn=Z,Tn=Me,Dn=_n,xn=[].push,Sn=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,a=6==t,o=7==t,s=5==t||a;return function(u,c,f,l){for(var h,p,d=wn(u),y=An(d),v=kn(c,f,3),m=Tn(y.length),g=0,b=l||Dn,_=e?b(u,m):r||o?b(u,0):void 0;m>g;g++)if((s||g in y)&&(p=v(h=y[g],g,d),t))if(e)_[g]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return g;case 2:xn.call(_,h)}else switch(t){case 4:return!1;case 7:xn.call(_,h)}return a?-1:n||i?i:_}},En={forEach:Sn(0),map:Sn(1),filter:Sn(2),some:Sn(3),every:Sn(4),find:Sn(5),findIndex:Sn(6),filterReject:Sn(7)},Pn=wr,On=r,In=D,Un=a,Cn=L,Bn=i,Mn=$,Ln=Ir,Rn=A,Nn=j,jn=Lt,Vn=Z,Gn=k,Fn=bt,zn=Cr,Wn=h,Hn=Qr,Yn=xr,qn=Pe,Kn=Xr,Zn=Je,Qn=n,Xn=Bt,$n=o,Jn=Wt,ti=Ht.exports,ei=G.exports,ri=ae,ni=et,ii=lt,ai=rn,oi=function(t){var e=an.Symbol||(an.Symbol={});on(e,t)||un(e,t,{value:sn.f(t)})},si=hn,ui=_e,ci=En.forEach,fi=ie("hidden"),li="Symbol",hi=ii("toPrimitive"),pi=ui.set,di=ui.getterFor(li),yi=Object.prototype,vi=On.Symbol,mi=In("JSON","stringify"),gi=Qn.f,bi=Xn.f,_i=Kn.f,ki=$n.f,Ai=ei("symbols"),wi=ei("op-symbols"),Ti=ei("string-to-symbol-registry"),Di=ei("symbol-to-string-registry"),xi=ei("wks"),Si=On.QObject,Ei=!Si||!Si.prototype||!Si.prototype.findChild,Pi=Un&&Bn((function(){return 7!=Hn(bi({},"a",{get:function(){return bi(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=gi(yi,e);n&&delete yi[e],bi(t,e,r),n&&t!==yi&&bi(yi,e,n)}:bi,Oi=function(t,e){var r=Ai[t]=Hn(vi.prototype);return pi(r,{type:li,tag:t,description:e}),Un||(r.description=e),r},Ii=function(t,e,r){t===yi&&Ii(wi,e,r),jn(t);var n=Fn(e);return jn(r),Mn(Ai,n)?(r.enumerable?(Mn(t,fi)&&t[fi][n]&&(t[fi][n]=!1),r=Hn(r,{enumerable:Wn(0,!1)})):(Mn(t,fi)||bi(t,fi,Wn(1,{})),t[fi][n]=!0),Pi(t,n,r)):bi(t,n,r)},Ui=function(t,e){jn(t);var r=Gn(e),n=Yn(r).concat(Li(r));return ci(n,(function(e){Un&&!Ci.call(r,e)||Ii(t,e,r[e])})),t},Ci=function(t){var e=Fn(t),r=ki.call(this,e);return!(this===yi&&Mn(Ai,e)&&!Mn(wi,e))&&(!(r||!Mn(this,e)||!Mn(Ai,e)||Mn(this,fi)&&this[fi][e])||r)},Bi=function(t,e){var r=Gn(t),n=Fn(e);if(r!==yi||!Mn(Ai,n)||Mn(wi,n)){var i=gi(r,n);return!i||!Mn(Ai,n)||Mn(r,fi)&&r[fi][n]||(i.enumerable=!0),i}},Mi=function(t){var e=_i(Gn(t)),r=[];return ci(e,(function(t){Mn(Ai,t)||Mn(ri,t)||r.push(t)})),r},Li=function(t){var e=t===yi,r=_i(e?wi:Gn(t)),n=[];return ci(r,(function(t){!Mn(Ai,t)||e&&!Mn(yi,t)||n.push(Ai[t])})),n};(Cn||(ti((vi=function(){if(this instanceof vi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?zn(arguments[0]):void 0,e=ni(t),r=function(t){this===yi&&r.call(wi,t),Mn(this,fi)&&Mn(this[fi],e)&&(this[fi][e]=!1),Pi(this,e,Wn(1,t))};return Un&&Ei&&Pi(yi,e,{configurable:!0,set:r}),Oi(e,t)}).prototype,"toString",(function(){return di(this).tag})),ti(vi,"withoutSetter",(function(t){return Oi(ni(t),t)})),$n.f=Ci,Xn.f=Ii,Qn.f=Bi,qn.f=Kn.f=Mi,Zn.f=Li,ai.f=function(t){return Oi(ii(t),t)},Un&&(bi(vi.prototype,"description",{configurable:!0,get:function(){return di(this).description}}),ti(yi,"propertyIsEnumerable",Ci,{unsafe:!0}))),Pn({global:!0,wrap:!0,forced:!Cn,sham:!Cn},{Symbol:vi}),ci(Yn(xi),(function(t){oi(t)})),Pn({target:li,stat:!0,forced:!Cn},{for:function(t){var e=zn(t);if(Mn(Ti,e))return Ti[e];var r=vi(e);return Ti[e]=r,Di[r]=e,r},keyFor:function(t){if(!Nn(t))throw TypeError(t+" is not a symbol");if(Mn(Di,t))return Di[t]},useSetter:function(){Ei=!0},useSimple:function(){Ei=!1}}),Pn({target:"Object",stat:!0,forced:!Cn,sham:!Un},{create:function(t,e){return void 0===e?Hn(t):Ui(Hn(t),e)},defineProperty:Ii,defineProperties:Ui,getOwnPropertyDescriptor:Bi}),Pn({target:"Object",stat:!0,forced:!Cn},{getOwnPropertyNames:Mi,getOwnPropertySymbols:Li}),Pn({target:"Object",stat:!0,forced:Bn((function(){Zn.f(1)}))},{getOwnPropertySymbols:function(t){return Zn.f(Vn(t))}}),mi)&&Pn({target:"JSON",stat:!0,forced:!Cn||Bn((function(){var t=vi();return"[null]"!=mi([t])||"{}"!=mi({a:t})||"{}"!=mi(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],a=1;arguments.length>a;)i.push(arguments[a++]);if(n=e,(Rn(e)||void 0!==t)&&!Nn(t))return Ln(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Nn(e))return e}),i[1]=e,mi.apply(null,i)}});vi.prototype[hi]||Jn(vi.prototype,hi,vi.prototype.valueOf),si(vi,li),ri[fi]=!0;var Ri=i,Ni=C,ji=lt("species"),Vi=function(t){return Ni>=51||!Ri((function(){var e=[];return(e.constructor={})[ji]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Gi=En.filter;wr({target:"Array",proto:!0,forced:!Vi("filter")},{filter:function(t){return Gi(this,t,arguments.length>1?arguments[1]:void 0)}});var Fi=wr,zi=i,Wi=k,Hi=n.f,Yi=a,qi=zi((function(){Hi(1)}));Fi({target:"Object",stat:!0,forced:!Yi||qi,sham:!Yi},{getOwnPropertyDescriptor:function(t,e){return Hi(Wi(t),e)}});var Ki=i,Zi=function(t,e){var r=[][t];return!!r&&Ki((function(){r.call(null,e||function(){throw 1},1)}))},Qi=En.forEach,Xi=r,$i={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},Ji=Zi("forEach")?[].forEach:function(t){return Qi(this,t,arguments.length>1?arguments[1]:void 0)},ta=Wt;for(var ea in $i){var ra=Xi[ea],na=ra&&ra.prototype;if(na&&na.forEach!==Ji)try{ta(na,"forEach",Ji)}catch(t){na.forEach=Ji}}var ia=bt,aa=Bt,oa=h,sa=function(t,e,r){var n=ia(e);n in t?aa.f(t,n,oa(0,r)):t[n]=r},ua=nr,ca=k,fa=n,la=sa;function ha(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(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 ya(t,e,r){return e&&da(t.prototype,e),r&&da(t,r),t}wr({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,r,n=ca(t),i=fa.f,a=ua(n),o={},s=0;a.length>s;)void 0!==(r=i(n,e=a[s++]))&&la(o,e,r);return o}});var va=wr,ma=i,ga=Ir,ba=A,_a=Z,ka=Me,Aa=sa,wa=_n,Ta=Vi,Da=C,xa=lt("isConcatSpreadable"),Sa=9007199254740991,Ea="Maximum allowed index exceeded",Pa=Da>=51||!ma((function(){var t=[];return t[xa]=!1,t.concat()[0]!==t})),Oa=Ta("concat"),Ia=function(t){if(!ba(t))return!1;var e=t[xa];return void 0!==e?!!e:ga(t)};va({target:"Array",proto:!0,forced:!Pa||!Oa},{concat:function(t){var e,r,n,i,a,o=_a(this),s=wa(o,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ia(a=-1===e?o:arguments[e])){if(u+(i=ka(a.length))>Sa)throw TypeError(Ea);for(r=0;r<i;r++,u++)r in a&&Aa(s,u,a[r])}else{if(u>=Sa)throw TypeError(Ea);Aa(s,u++,a)}return s.length=u,s}});var Ua={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},Ca={AVC:"avc",HEVC:"hevc"},Ba={AAC:"aac",G711PCMA:"g7110a",G711PCMU:"g7110m"},Ma={LARGE_AV_SHIFT:"LARGE_AV_SHIFT",LARGE_VIDEO_GAP:"LARGE_VIDEO_GAP",LARGE_VIDEO_GAP_BETWEEN_CHUNK:"LARGE_VIDEO_GAP_BETWEEN_CHUNK",LARGE_AUDIO_GAP:"LARGE_AUDIO_GAP",AUDIO_FILLED:"AUDIO_FILLED",AUDIO_DROPPED:"AUDIO_DROPPED"},La=function(){function t(){pa(this,t),ha(this,"id",1),ha(this,"type",Ua.VIDEO),ha(this,"codecType",Ca.AVC),ha(this,"pid",-1),ha(this,"codec",""),ha(this,"timescale",0),ha(this,"formatTimescale",0),ha(this,"sequenceNumber",0),ha(this,"baseMediaDecodeTime",0),ha(this,"baseDts",0),ha(this,"duration",0),ha(this,"warnings",[]),ha(this,"samples",[]),ha(this,"pps",[]),ha(this,"sps",[]),ha(this,"vps",[]),ha(this,"fpsNum",0),ha(this,"fpsDen",0),ha(this,"sarRatio",[]),ha(this,"width",0),ha(this,"height",0),ha(this,"nalUnitSize",4),ha(this,"present",!1),ha(this,"ext",void 0)}return ya(t,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}}]),t}(),Ra=function(){function t(){pa(this,t),ha(this,"id",2),ha(this,"type",Ua.AUDIO),ha(this,"codecType",Ba.AAC),ha(this,"pid",-1),ha(this,"codec",""),ha(this,"sequenceNumber",0),ha(this,"sampleDuration",0),ha(this,"timescale",0),ha(this,"formatTimescale",0),ha(this,"baseMediaDecodeTime",0),ha(this,"duration",0),ha(this,"warnings",[]),ha(this,"samples",[]),ha(this,"baseDts",0),ha(this,"sampleSize",16),ha(this,"sampleRate",0),ha(this,"channelCount",0),ha(this,"objectType",0),ha(this,"sampleRateIndex",0),ha(this,"config",[]),ha(this,"present",!1),ha(this,"ext",void 0)}return ya(t,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}}]),t}(),Na=function(){function t(e,r,n){pa(this,t),ha(this,"flag",{}),ha(this,"keyframe",!1),ha(this,"gopId",0),ha(this,"duration",0),ha(this,"size",0),ha(this,"units",[]),ha(this,"chromaFormat",420),this.originPts=this.pts=e,this.originDts=this.dts=r,n&&(this.units=n)}return ya(t,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),t}(),ja=function t(e,r,n){pa(this,t),ha(this,"duration",1024),ha(this,"flag",{dependsOn:2,isNonSyncSample:0}),this.originPts=this.pts=this.dts=e,this.data=r,this.size=r.byteLength,n&&(this.duration=n)},Va=pn,Ga=A,Fa=[].slice,za={},Wa=function(t,e,r){if(!(e in za)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";za[e]=Function("C,a","return new C("+n.join(",")+")")}return za[e](t,r)},Ha=Function.bind||function(t){var e=Va(this),r=Fa.call(arguments,1),n=function(){var i=r.concat(Fa.call(arguments));return this instanceof n?Wa(e,i.length,i):e.apply(t,i)};return Ga(e.prototype)&&(n.prototype=e.prototype),n},Ya=wr,qa=pn,Ka=Lt,Za=A,Qa=Qr,Xa=Ha,$a=i,Ja=D("Reflect","construct"),to=$a((function(){function t(){}return!(Ja((function(){}),[],t)instanceof t)})),eo=!$a((function(){Ja((function(){}))})),ro=to||eo;function no(t,e){return(no=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function io(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&&no(t,e)}function ao(t){return(ao="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 oo(t,e){if(e&&("object"===ao(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function so(t){return(so=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uo(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=so(t);if(e){var i=so(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return oo(this,r)}}Ya({target:"Reflect",stat:!0,forced:ro,sham:ro},{construct:function(t,e){qa(t),Ka(e);var r=arguments.length<3?t:qa(arguments[2]);if(eo&&!to)return Ja(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(Xa.apply(t,n))}var i=r.prototype,a=Qa(Za(i)?i:Object.prototype),o=Function.apply.call(t,a,e);return Za(o)?o:a}});var co=function t(e,r){pa(this,t),ha(this,"time",0),this.data=e,this.originPts=this.pts=r},fo=function(t){io(r,t);var e=uo(r);function r(){return pa(this,r),e.apply(this,arguments)}return r}(co),lo=function(t){io(r,t);var e=uo(r);function r(){return pa(this,r),e.apply(this,arguments)}return r}(co),ho=function(){function t(){pa(this,t),ha(this,"id",3),ha(this,"type",Ua.METADATA),ha(this,"timescale",0),ha(this,"flvScriptSamples",[]),ha(this,"seiSamples",[])}return ya(t,[{key:"exist",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length||!this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length)}}]),t}(),po=Object.freeze({__proto__:null,VideoTrack:La,AudioTrack:Ra,VideoSample:Na,AudioSample:ja,FlvScriptSample:fo,SeiSample:lo,MetadataTrack:ho,TrackType:Ua,VideoCodecType:Ca,AudioCodecType:Ba,WarningType:Ma}),yo=r.isFinite;wr({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&yo(t)}});var vo=A,mo=Lt,go=function(t){if(!vo(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},bo=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 mo(r),go(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),_o=A,ko=bo,Ao=function(t,e,r){var n,i;return ko&&"function"==typeof(n=e.constructor)&&n!==r&&_o(i=n.prototype)&&i!==r.prototype&&ko(t,i),t},wo=g,To=Cr,Do="[\t\n\v\f\r                 \u2028\u2029\ufeff]",xo=RegExp("^"+Do+Do+"*"),So=RegExp(Do+Do+"*$"),Eo=function(t){return function(e){var r=To(wo(e));return 1&t&&(r=r.replace(xo,"")),2&t&&(r=r.replace(So,"")),r}},Po={start:Eo(1),end:Eo(2),trim:Eo(3)},Oo=a,Io=r,Uo=yr,Co=Ht.exports,Bo=$,Mo=d,Lo=Ao,Ro=j,No=vt,jo=i,Vo=Qr,Go=Pe.f,Fo=n.f,zo=Bt.f,Wo=Po.trim,Ho="Number",Yo=Io.Number,qo=Yo.prototype,Ko=Mo(Vo(qo))==Ho,Zo=function(t){if(Ro(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,i,a,o,s,u,c=No(t,"number");if("string"==typeof c&&c.length>2)if(43===(e=(c=Wo(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(o=(a=c.slice(2)).length,s=0;s<o;s++)if((u=a.charCodeAt(s))<48||u>i)return NaN;return parseInt(a,n)}return+c};if(Uo(Ho,!Yo(" 0o1")||!Yo("0b1")||Yo("+0x1"))){for(var Qo,Xo=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Xo&&(Ko?jo((function(){qo.valueOf.call(r)})):Mo(r)!=Ho)?Lo(new Yo(Zo(e)),r,Xo):Zo(e)},$o=Oo?Go(Yo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Jo=0;$o.length>Jo;Jo++)Bo(Yo,Qo=$o[Jo])&&!Bo(Xo,Qo)&&zo(Xo,Qo,Fo(Yo,Qo));Xo.prototype=qo,qo.constructor=Xo,Co(Io,Ho,Xo)}var ts=wr,es=je,rs=Ue,ns=Me,is=Z,as=_n,os=sa,ss=Vi("splice"),us=Math.max,cs=Math.min,fs=9007199254740991,ls="Maximum allowed length exceeded";ts({target:"Array",proto:!0,forced:!ss},{splice:function(t,e){var r,n,i,a,o,s,u=is(this),c=ns(u.length),f=es(t,c),l=arguments.length;if(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=cs(us(rs(e),0),c-f)),c+r-n>fs)throw TypeError(ls);for(i=as(u,n),a=0;a<n;a++)(o=f+a)in u&&os(i,a,u[o]);if(i.length=n,r<n){for(a=f;a<c-n;a++)s=a+r,(o=a+n)in u?u[s]=u[o]:delete u[s];for(a=c;a>c-n+r;a--)delete u[a-1]}else if(r>n)for(a=c-n;a>f;a--)s=a+r-1,(o=a+n-1)in u?u[s]=u[o]:delete u[s];for(a=0;a<r;a++)u[a+f]=arguments[a+2];return u.length=c-n+r,i}});var hs=Qr,ps=Bt,ds=lt("unscopables"),ys=Array.prototype;null==ys[ds]&&ps.f(ys,ds,{configurable:!0,value:hs(null)});var vs,ms,gs,bs=function(t){ys[ds][t]=!0},_s={},ks=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),As=$,ws=Z,Ts=ks,Ds=ie("IE_PROTO"),xs=Object.prototype,Ss=Ts?Object.getPrototypeOf:function(t){return t=ws(t),As(t,Ds)?t[Ds]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?xs:null},Es=i,Ps=Ss,Os=Wt,Is=$,Us=lt("iterator"),Cs=!1;[].keys&&("next"in(gs=[].keys())?(ms=Ps(Ps(gs)))!==Object.prototype&&(vs=ms):Cs=!0),(null==vs||Es((function(){var t={};return vs[Us].call(t)!==t})))&&(vs={}),Is(vs,Us)||Os(vs,Us,(function(){return this}));var Bs={IteratorPrototype:vs,BUGGY_SAFARI_ITERATORS:Cs},Ms=Bs.IteratorPrototype,Ls=Qr,Rs=h,Ns=hn,js=_s,Vs=function(){return this},Gs=wr,Fs=function(t,e,r){var n=e+" Iterator";return t.prototype=Ls(Ms,{next:Rs(1,r)}),Ns(t,n,!1),js[n]=Vs,t},zs=Ss,Ws=bo,Hs=hn,Ys=Wt,qs=Ht.exports,Ks=_s,Zs=Bs.IteratorPrototype,Qs=Bs.BUGGY_SAFARI_ITERATORS,Xs=lt("iterator"),$s="keys",Js="values",tu="entries",eu=function(){return this},ru=k,nu=bs,iu=_s,au=_e,ou=function(t,e,r,n,i,a,o){Fs(r,e,n);var s,u,c,f=function(t){if(t===i&&y)return y;if(!Qs&&t in p)return p[t];switch(t){case $s:case Js:case tu:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[Xs]||p["@@iterator"]||i&&p[i],y=!Qs&&d||f(i),v="Array"==e&&p.entries||d;if(v&&(s=zs(v.call(new t)),Zs!==Object.prototype&&s.next&&(zs(s)!==Zs&&(Ws?Ws(s,Zs):"function"!=typeof s[Xs]&&Ys(s,Xs,eu)),Hs(s,l,!0))),i==Js&&d&&d.name!==Js&&(h=!0,y=function(){return d.call(this)}),p[Xs]!==y&&Ys(p,Xs,y),Ks[e]=y,i)if(u={values:f(Js),keys:a?y:f($s),entries:f(tu)},o)for(c in u)(Qs||h||!(c in p))&&qs(p,c,u[c]);else Gs({target:e,proto:!0,forced:Qs||h},u);return u},su="Array Iterator",uu=au.set,cu=au.getterFor(su),fu=ou(Array,"Array",(function(t,e){uu(this,{type:su,target:ru(t),index:0,kind:e})}),(function(){var t=cu(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");iu.Arguments=iu.Array,nu("keys"),nu("values"),nu("entries");var lu={};lu[lt("toStringTag")]="z";var hu="[object z]"===String(lu),pu=hu,du=d,yu=lt("toStringTag"),vu="Arguments"==du(function(){return arguments}()),mu=pu?du: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),yu))?r:vu?du(e):"Object"==(n=du(e))&&"function"==typeof e.callee?"Arguments":n},gu=mu,bu=hu?{}.toString:function(){return"[object "+gu(this)+"]"},_u=hu,ku=Ht.exports,Au=bu;_u||ku(Object.prototype,"toString",Au,{unsafe:!0});var wu={exports:{}},Tu=lt("iterator"),Du=!1;try{var xu=0,Su={next:function(){return{done:!!xu++}},return:function(){Du=!0}};Su[Tu]=function(){return this},Array.from(Su,(function(){throw 2}))}catch(t){}var Eu,Pu,Ou,Iu="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Uu=Iu,Cu=a,Bu=r,Mu=A,Lu=$,Ru=mu,Nu=Wt,ju=Ht.exports,Vu=Bt.f,Gu=Ss,Fu=bo,zu=lt,Wu=et,Hu=Bu.Int8Array,Yu=Hu&&Hu.prototype,qu=Bu.Uint8ClampedArray,Ku=qu&&qu.prototype,Zu=Hu&&Gu(Hu),Qu=Yu&&Gu(Yu),Xu=Object.prototype,$u=Xu.isPrototypeOf,Ju=zu("toStringTag"),tc=Wu("TYPED_ARRAY_TAG"),ec=Wu("TYPED_ARRAY_CONSTRUCTOR"),rc=Uu&&!!Fu&&"Opera"!==Ru(Bu.opera),nc=!1,ic={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ac={BigInt64Array:8,BigUint64Array:8},oc=function(t){if(!Mu(t))return!1;var e=Ru(t);return Lu(ic,e)||Lu(ac,e)};for(Eu in ic)(Ou=(Pu=Bu[Eu])&&Pu.prototype)?Nu(Ou,ec,Pu):rc=!1;for(Eu in ac)(Ou=(Pu=Bu[Eu])&&Pu.prototype)&&Nu(Ou,ec,Pu);if((!rc||"function"!=typeof Zu||Zu===Function.prototype)&&(Zu=function(){throw TypeError("Incorrect invocation")},rc))for(Eu in ic)Bu[Eu]&&Fu(Bu[Eu],Zu);if((!rc||!Qu||Qu===Xu)&&(Qu=Zu.prototype,rc))for(Eu in ic)Bu[Eu]&&Fu(Bu[Eu].prototype,Qu);if(rc&&Gu(Ku)!==Qu&&Fu(Ku,Qu),Cu&&!Lu(Qu,Ju))for(Eu in nc=!0,Vu(Qu,Ju,{get:function(){return Mu(this)?this[tc]:void 0}}),ic)Bu[Eu]&&Nu(Bu[Eu],tc,Eu);var sc={NATIVE_ARRAY_BUFFER_VIEWS:rc,TYPED_ARRAY_CONSTRUCTOR:ec,TYPED_ARRAY_TAG:nc&&tc,aTypedArray:function(t){if(oc(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Fu&&!$u.call(Zu,t))throw TypeError("Target is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,r){if(Cu){if(r)for(var n in ic){var i=Bu[n];if(i&&Lu(i.prototype,t))try{delete i.prototype[t]}catch(t){}}Qu[t]&&!r||ju(Qu,t,r?e:rc&&Yu[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(Cu){if(Fu){if(r)for(n in ic)if((i=Bu[n])&&Lu(i,t))try{delete i[t]}catch(t){}if(Zu[t]&&!r)return;try{return ju(Zu,t,r?e:rc&&Zu[t]||e)}catch(t){}}for(n in ic)!(i=Bu[n])||i[t]&&!r||ju(i,t,e)}},isView:function(t){if(!Mu(t))return!1;var e=Ru(t);return"DataView"===e||Lu(ic,e)||Lu(ac,e)},isTypedArray:oc,TypedArray:Zu,TypedArrayPrototype:Qu},uc=r,cc=i,fc=function(t,e){if(!e&&!Du)return!1;var r=!1;try{var n={};n[Tu]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},lc=sc.NATIVE_ARRAY_BUFFER_VIEWS,hc=uc.ArrayBuffer,pc=uc.Int8Array,dc=!lc||!cc((function(){pc(1)}))||!cc((function(){new pc(-1)}))||!fc((function(t){new pc,new pc(null),new pc(1.5),new pc(t)}),!0)||cc((function(){return 1!==new pc(new hc(2),1,void 0).length})),yc=Ht.exports,vc=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},mc=Ue,gc=Me,bc=function(t){if(void 0===t)return 0;var e=mc(t),r=gc(e);if(e!==r)throw RangeError("Wrong length or index");return r},_c=Math.abs,kc=Math.pow,Ac=Math.floor,wc=Math.log,Tc=Math.LN2,Dc=Z,xc=je,Sc=Me,Ec=function(t){for(var e=Dc(this),r=Sc(e.length),n=arguments.length,i=xc(n>1?arguments[1]:void 0,r),a=n>2?arguments[2]:void 0,o=void 0===a?r:xc(a,r);o>i;)e[i++]=t;return e},Pc=r,Oc=a,Ic=Iu,Uc=Wt,Cc=function(t,e,r){for(var n in e)yc(t,n,e[n],r);return t},Bc=i,Mc=vc,Lc=Ue,Rc=Me,Nc=bc,jc={pack:function(t,e,r){var n,i,a,o=new Array(r),s=8*r-e-1,u=(1<<s)-1,c=u>>1,f=23===e?kc(2,-24)-kc(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=_c(t))!=t||t===1/0?(i=t!=t?1:0,n=u):(n=Ac(wc(t)/Tc),t*(a=kc(2,-n))<1&&(n--,a*=2),(t+=n+c>=1?f/a:f*kc(2,1-c))*a>=2&&(n++,a/=2),n+c>=u?(i=0,n=u):n+c>=1?(i=(t*a-1)*kc(2,e),n+=c):(i=t*kc(2,c-1)*kc(2,e),n=0));e>=8;o[h++]=255&i,i/=256,e-=8);for(n=n<<e|i,s+=e;s>0;o[h++]=255&n,n/=256,s-=8);return o[--h]|=128*l,o},unpack:function(t,e){var r,n=t.length,i=8*n-e-1,a=(1<<i)-1,o=a>>1,s=i-7,u=n-1,c=t[u--],f=127&c;for(c>>=7;s>0;f=256*f+t[u],u--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===f)f=1-o;else{if(f===a)return r?NaN:c?-1/0:1/0;r+=kc(2,e),f-=o}return(c?-1:1)*r*kc(2,f-e)}},Vc=Ss,Gc=bo,Fc=Pe.f,zc=Bt.f,Wc=Ec,Hc=hn,Yc=_e.get,qc=_e.set,Kc="ArrayBuffer",Zc="DataView",Qc="Wrong index",Xc=Pc.ArrayBuffer,$c=Xc,Jc=Pc.DataView,tf=Jc&&Jc.prototype,ef=Object.prototype,rf=Pc.RangeError,nf=jc.pack,af=jc.unpack,of=function(t){return[255&t]},sf=function(t){return[255&t,t>>8&255]},uf=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},cf=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},ff=function(t){return nf(t,23,4)},lf=function(t){return nf(t,52,8)},hf=function(t,e){zc(t.prototype,e,{get:function(){return Yc(this)[e]}})},pf=function(t,e,r,n){var i=Nc(r),a=Yc(t);if(i+e>a.byteLength)throw rf(Qc);var o=Yc(a.buffer).bytes,s=i+a.byteOffset,u=o.slice(s,s+e);return n?u:u.reverse()},df=function(t,e,r,n,i,a){var o=Nc(r),s=Yc(t);if(o+e>s.byteLength)throw rf(Qc);for(var u=Yc(s.buffer).bytes,c=o+s.byteOffset,f=n(+i),l=0;l<e;l++)u[c+l]=f[a?l:e-l-1]};if(Ic){if(!Bc((function(){Xc(1)}))||!Bc((function(){new Xc(-1)}))||Bc((function(){return new Xc,new Xc(1.5),new Xc(NaN),Xc.name!=Kc}))){for(var yf,vf=($c=function(t){return Mc(this,$c),new Xc(Nc(t))}).prototype=Xc.prototype,mf=Fc(Xc),gf=0;mf.length>gf;)(yf=mf[gf++])in $c||Uc($c,yf,Xc[yf]);vf.constructor=$c}Gc&&Vc(tf)!==ef&&Gc(tf,ef);var bf=new Jc(new $c(2)),_f=tf.setInt8;bf.setInt8(0,2147483648),bf.setInt8(1,2147483649),!bf.getInt8(0)&&bf.getInt8(1)||Cc(tf,{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 $c=function(t){Mc(this,$c,Kc);var e=Nc(t);qc(this,{bytes:Wc.call(new Array(e),0),byteLength:e}),Oc||(this.byteLength=e)},Jc=function(t,e,r){Mc(this,Jc,Zc),Mc(t,$c,Zc);var n=Yc(t).byteLength,i=Lc(e);if(i<0||i>n)throw rf("Wrong offset");if(i+(r=void 0===r?n-i:Rc(r))>n)throw rf("Wrong length");qc(this,{buffer:t,byteLength:r,byteOffset:i}),Oc||(this.buffer=t,this.byteLength=r,this.byteOffset=i)},Oc&&(hf($c,"byteLength"),hf(Jc,"buffer"),hf(Jc,"byteLength"),hf(Jc,"byteOffset")),Cc(Jc.prototype,{getInt8:function(t){return pf(this,1,t)[0]<<24>>24},getUint8:function(t){return pf(this,1,t)[0]},getInt16:function(t){var e=pf(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=pf(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return cf(pf(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return cf(pf(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return af(pf(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return af(pf(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){df(this,1,t,of,e)},setUint8:function(t,e){df(this,1,t,of,e)},setInt16:function(t,e){df(this,2,t,sf,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){df(this,2,t,sf,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){df(this,4,t,uf,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){df(this,4,t,uf,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){df(this,4,t,ff,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){df(this,8,t,lf,e,arguments.length>2?arguments[2]:void 0)}});Hc($c,Kc),Hc(Jc,Zc);var kf={ArrayBuffer:$c,DataView:Jc},Af=A,wf=Math.floor,Tf=Ue,Df=function(t){var e=Tf(t);if(e<0)throw RangeError("The argument can't be less than 0");return e},xf=function(t,e){var r=Df(t);if(r%e)throw RangeError("Wrong offset");return r},Sf=mu,Ef=_s,Pf=lt("iterator"),Of=_s,If=lt("iterator"),Uf=Array.prototype,Cf=Z,Bf=Me,Mf=function(t){if(null!=t)return t[Pf]||t["@@iterator"]||Ef[Sf(t)]},Lf=function(t){return void 0!==t&&(Of.Array===t||Uf[If]===t)},Rf=yn,Nf=sc.aTypedArrayConstructor,jf=D,Vf=Bt,Gf=a,Ff=lt("species"),zf=wr,Wf=r,Hf=a,Yf=dc,qf=sc,Kf=kf,Zf=vc,Qf=h,Xf=Wt,$f=function(t){return!Af(t)&&isFinite(t)&&wf(t)===t},Jf=Me,tl=bc,el=xf,rl=bt,nl=$,il=mu,al=A,ol=j,sl=Qr,ul=bo,cl=Pe.f,fl=function(t){var e,r,n,i,a,o,s=Cf(t),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,l=Mf(s);if(null!=l&&!Lf(l))for(o=(a=l.call(s)).next,s=[];!(i=o.call(a)).done;)s.push(i.value);for(f&&u>2&&(c=Rf(c,arguments[2],2)),r=Bf(s.length),n=new(Nf(this))(r),e=0;r>e;e++)n[e]=f?c(s[e],e):s[e];return n},ll=En.forEach,hl=function(t){var e=jf(t),r=Vf.f;Gf&&e&&!e[Ff]&&r(e,Ff,{configurable:!0,get:function(){return this}})},pl=Bt,dl=n,yl=Ao,vl=_e.get,ml=_e.set,gl=pl.f,bl=dl.f,_l=Math.round,kl=Wf.RangeError,Al=Kf.ArrayBuffer,wl=Kf.DataView,Tl=qf.NATIVE_ARRAY_BUFFER_VIEWS,Dl=qf.TYPED_ARRAY_CONSTRUCTOR,xl=qf.TYPED_ARRAY_TAG,Sl=qf.TypedArray,El=qf.TypedArrayPrototype,Pl=qf.aTypedArrayConstructor,Ol=qf.isTypedArray,Il="BYTES_PER_ELEMENT",Ul="Wrong length",Cl=function(t,e){for(var r=0,n=e.length,i=new(Pl(t))(n);n>r;)i[r]=e[r++];return i},Bl=function(t,e){gl(t,e,{get:function(){return vl(this)[e]}})},Ml=function(t){var e;return t instanceof Al||"ArrayBuffer"==(e=il(t))||"SharedArrayBuffer"==e},Ll=function(t,e){return Ol(t)&&!ol(e)&&e in t&&$f(+e)&&e>=0},Rl=function(t,e){return e=rl(e),Ll(t,e)?Qf(2,t[e]):bl(t,e)},Nl=function(t,e,r){return e=rl(e),!(Ll(t,e)&&al(r)&&nl(r,"value"))||nl(r,"get")||nl(r,"set")||r.configurable||nl(r,"writable")&&!r.writable||nl(r,"enumerable")&&!r.enumerable?gl(t,e,r):(t[e]=r.value,t)};Hf?(Tl||(dl.f=Rl,pl.f=Nl,Bl(El,"buffer"),Bl(El,"byteOffset"),Bl(El,"byteLength"),Bl(El,"length")),zf({target:"Object",stat:!0,forced:!Tl},{getOwnPropertyDescriptor:Rl,defineProperty:Nl}),wu.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,i=t+(r?"Clamped":"")+"Array",a="get"+t,o="set"+t,s=Wf[i],u=s,c=u&&u.prototype,f={},l=function(t,e){gl(t,e,{get:function(){return function(t,e){var r=vl(t);return r.view[a](e*n+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var a=vl(t);r&&(i=(i=_l(i))<0?0:i>255?255:255&i),a.view[o](e*n+a.byteOffset,i,!0)}(this,e,t)},enumerable:!0})};Tl?Yf&&(u=e((function(t,e,r,a){return Zf(t,u,i),yl(al(e)?Ml(e)?void 0!==a?new s(e,el(r,n),a):void 0!==r?new s(e,el(r,n)):new s(e):Ol(e)?Cl(u,e):fl.call(u,e):new s(tl(e)),t,u)})),ul&&ul(u,Sl),ll(cl(s),(function(t){t in u||Xf(u,t,s[t])})),u.prototype=c):(u=e((function(t,e,r,a){Zf(t,u,i);var o,s,c,f=0,h=0;if(al(e)){if(!Ml(e))return Ol(e)?Cl(u,e):fl.call(u,e);o=e,h=el(r,n);var p=e.byteLength;if(void 0===a){if(p%n)throw kl(Ul);if((s=p-h)<0)throw kl(Ul)}else if((s=Jf(a)*n)+h>p)throw kl(Ul);c=s/n}else c=tl(e),o=new Al(s=c*n);for(ml(t,{buffer:o,byteOffset:h,byteLength:s,length:c,view:new wl(o)});f<c;)l(t,f++)})),ul&&ul(u,Sl),c=u.prototype=sl(El)),c.constructor!==u&&Xf(c,"constructor",u),Xf(c,Dl,u),xl&&Xf(c,xl,i),f[i]=u,zf({global:!0,forced:u!=s,sham:!Tl},f),Il in u||Xf(u,Il,n),Il in c||Xf(c,Il,n),hl(i)}):wu.exports=function(){},(0,wu.exports)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var jl=Z,Vl=je,Gl=Me,Fl=Math.min,zl=[].copyWithin||function(t,e){var r=jl(this),n=Gl(r.length),i=Vl(t,n),a=Vl(e,n),o=arguments.length>2?arguments[2]:void 0,s=Fl((void 0===o?n:Vl(o,n))-a,n-i),u=1;for(a<i&&i<a+s&&(u=-1,a+=s-1,i+=s-1);s-- >0;)a in r?r[i]=r[a]:delete r[i],i+=u,a+=u;return r},Wl=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("copyWithin",(function(t,e){return zl.call(Wl(this),t,e,arguments.length>2?arguments[2]:void 0)}));var Hl=En.every,Yl=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("every",(function(t){return Hl(Yl(this),t,arguments.length>1?arguments[1]:void 0)}));var ql=Ec,Kl=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("fill",(function(t){return ql.apply(Kl(this),arguments)}));var Zl=Lt,Ql=pn,Xl=lt("species"),$l=function(t,e){var r,n=Zl(t).constructor;return void 0===n||null==(r=Zl(n)[Xl])?e:Ql(r)},Jl=sc.TYPED_ARRAY_CONSTRUCTOR,th=sc.aTypedArrayConstructor,eh=function(t){return th($l(t,t[Jl]))},rh=function(t,e){for(var r=0,n=e.length,i=new t(n);n>r;)i[r]=e[r++];return i},nh=eh,ih=En.filter,ah=function(t,e){return rh(nh(t),e)},oh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("filter",(function(t){var e=ih(oh(this),t,arguments.length>1?arguments[1]:void 0);return ah(this,e)}));var sh=En.find,uh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("find",(function(t){return sh(uh(this),t,arguments.length>1?arguments[1]:void 0)}));var ch=En.findIndex,fh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("findIndex",(function(t){return ch(fh(this),t,arguments.length>1?arguments[1]:void 0)}));var lh=En.forEach,hh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("forEach",(function(t){lh(hh(this),t,arguments.length>1?arguments[1]:void 0)}));var ph=We.includes,dh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("includes",(function(t){return ph(dh(this),t,arguments.length>1?arguments[1]:void 0)}));var yh=We.indexOf,vh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("indexOf",(function(t){return yh(vh(this),t,arguments.length>1?arguments[1]:void 0)}));var mh=r,gh=sc,bh=fu,_h=lt("iterator"),kh=mh.Uint8Array,Ah=bh.values,wh=bh.keys,Th=bh.entries,Dh=gh.aTypedArray,xh=gh.exportTypedArrayMethod,Sh=kh&&kh.prototype[_h],Eh=!!Sh&&("values"==Sh.name||null==Sh.name),Ph=function(){return Ah.call(Dh(this))};xh("entries",(function(){return Th.call(Dh(this))})),xh("keys",(function(){return wh.call(Dh(this))})),xh("values",Ph,!Eh),xh(_h,Ph,!Eh);var Oh=sc.aTypedArray,Ih=[].join;(0,sc.exportTypedArrayMethod)("join",(function(t){return Ih.apply(Oh(this),arguments)}));var Uh=k,Ch=Ue,Bh=Me,Mh=Zi,Lh=Math.min,Rh=[].lastIndexOf,Nh=!!Rh&&1/[1].lastIndexOf(1,-0)<0,jh=Mh("lastIndexOf"),Vh=Nh||!jh?function(t){if(Nh)return Rh.apply(this,arguments)||0;var e=Uh(this),r=Bh(e.length),n=r-1;for(arguments.length>1&&(n=Lh(n,Ch(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:Rh,Gh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("lastIndexOf",(function(t){return Vh.apply(Gh(this),arguments)}));var Fh=En.map,zh=eh,Wh=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("map",(function(t){return Fh(Wh(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(zh(t))(e)}))}));var Hh=pn,Yh=Z,qh=m,Kh=Me,Zh=function(t){return function(e,r,n,i){Hh(r);var a=Yh(e),o=qh(a),s=Kh(a.length),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in o){i=o[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in o&&(i=r(i,o[u],u,a));return i}},Qh={left:Zh(!1),right:Zh(!0)},Xh=Qh.left,$h=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("reduce",(function(t){return Xh($h(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Jh=Qh.right,tp=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("reduceRight",(function(t){return Jh(tp(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var ep=sc.aTypedArray,rp=sc.exportTypedArrayMethod,np=Math.floor;rp("reverse",(function(){for(var t,e=this,r=ep(e).length,n=np(r/2),i=0;i<n;)t=e[i],e[i++]=e[--r],e[r]=t;return e}));var ip=Me,ap=xf,op=Z,sp=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("set",(function(t){sp(this);var e=ap(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=op(t),i=ip(n.length),a=0;if(i+e>r)throw RangeError("Wrong length");for(;a<i;)this[e+a]=n[a++]}),i((function(){new Int8Array(1).set({})})));var up=eh,cp=sc.aTypedArray,fp=[].slice;(0,sc.exportTypedArrayMethod)("slice",(function(t,e){for(var r=fp.call(cp(this),t,e),n=up(this),i=0,a=r.length,o=new n(a);a>i;)o[i]=r[i++];return o}),i((function(){new Int8Array(1).slice()})));var lp=En.some,hp=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("some",(function(t){return lp(hp(this),t,arguments.length>1?arguments[1]:void 0)}));var pp=Math.floor,dp=function(t,e){var r=t.length,n=pp(r/2);return r<8?yp(t,e):vp(dp(t.slice(0,n),e),dp(t.slice(n),e),e)},yp=function(t,e){for(var r,n,i=t.length,a=1;a<i;){for(n=a,r=t[a];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==a++&&(t[n]=r)}return t},vp=function(t,e,r){for(var n=t.length,i=e.length,a=0,o=0,s=[];a<n||o<i;)a<n&&o<i?s.push(r(t[a],e[o])<=0?t[a++]:e[o++]):s.push(a<n?t[a++]:e[o++]);return s},mp=dp,gp=x.match(/firefox\/(\d+)/i),bp=!!gp&&+gp[1],_p=/MSIE|Trident/.test(x),kp=x.match(/AppleWebKit\/(\d+)\./),Ap=!!kp&&+kp[1],wp=i,Tp=pn,Dp=Me,xp=mp,Sp=bp,Ep=_p,Pp=C,Op=Ap,Ip=sc.aTypedArray,Up=sc.exportTypedArrayMethod,Cp=r.Uint16Array,Bp=Cp&&Cp.prototype.sort,Mp=!!Bp&&!wp((function(){var t=new Cp(2);t.sort(null),t.sort({})})),Lp=!!Bp&&!wp((function(){if(Pp)return Pp<74;if(Sp)return Sp<67;if(Ep)return!0;if(Op)return Op<602;var t,e,r=new Cp(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}));Up("sort",(function(t){var e=this;if(void 0!==t&&Tp(t),Lp)return Bp.call(e,t);Ip(e);var r,n=Dp(e.length),i=Array(n);for(r=0;r<n;r++)i[r]=e[r];for(i=xp(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]=i[r];return e}),!Lp||Mp);var Rp=Me,Np=je,jp=eh,Vp=sc.aTypedArray;(0,sc.exportTypedArrayMethod)("subarray",(function(t,e){var r=Vp(this),n=r.length,i=Np(t,n);return new(jp(r))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,Rp((void 0===e?n:Np(e,n))-i))}));var Gp=sc,Fp=i,zp=r.Int8Array,Wp=Gp.aTypedArray,Hp=Gp.exportTypedArrayMethod,Yp=[].toLocaleString,qp=[].slice,Kp=!!zp&&Fp((function(){Yp.call(new zp(1))}));Hp("toLocaleString",(function(){return Yp.apply(Kp?qp.call(Wp(this)):Wp(this),arguments)}),Fp((function(){return[1,2].toLocaleString()!=new zp([1,2]).toLocaleString()}))||!Fp((function(){zp.prototype.toLocaleString.call([1,2])})));var Zp=sc.exportTypedArrayMethod,Qp=i,Xp=r.Uint8Array,$p=Xp&&Xp.prototype||{},Jp=[].toString,td=[].join;Qp((function(){Jp.call({})}))&&(Jp=function(){return td.call(this)});var ed=$p.toString!=Jp;Zp("toString",Jp,ed);var rd=Lt,nd=Ht.exports,id=Lt,ad=Cr,od=i,sd=function(){var t=rd(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},ud="toString",cd=RegExp.prototype,fd=cd.toString,ld=od((function(){return"/a/b"!=fd.call({source:"a",flags:"b"})})),hd=fd.name!=ud;(ld||hd)&&nd(RegExp.prototype,ud,(function(){var t=id(this),e=ad(t.source),r=t.flags;return"/"+e+"/"+ad(void 0===r&&t instanceof RegExp&&!("flags"in cd)?sd.call(t):r)}),{unsafe:!0});var pd=function(){function t(e){if(pa(this,t),ha(this,"_bytesAvailable",void 0),ha(this,"_bitsAvailable",0),ha(this,"_word",0),!e)throw new Error("ExpGolomb data params is required");this._data=e,this._bytesAvailable=e.byteLength,this._bytesAvailable&&this._loadWord()}return ya(t,[{key:"_loadWord",value:function(){var t=this._data.byteLength-this._bytesAvailable,e=Math.min(4,this._bytesAvailable);if(0===e)throw new Error("No bytes available");var r=new Uint8Array(4);r.set(this._data.subarray(t,t+e)),this._word=new DataView(r.buffer).getUint32(0),this._bitsAvailable=8*e,this._bytesAvailable-=e}},{key:"skipBits",value:function(t){if(this._bitsAvailable>t)this._word<<=t,this._bitsAvailable-=t;else{t-=this._bitsAvailable;var e=Math.floor(t/8);t-=8*e,this._bytesAvailable-=e,this._loadWord(),this._word<<=t,this._bitsAvailable-=t}}},{key:"readBits",value:function(t){if(t>32)throw new Error("Cannot read more than 32 bits");var e=Math.min(this._bitsAvailable,t),r=this._word>>>32-e;return this._bitsAvailable-=e,this._bitsAvailable>0?this._word<<=e:this._bytesAvailable>0&&this._loadWord(),(e=t-e)>0&&this._bitsAvailable?r<<e|this.readBits(e):r}},{key:"skipLZ",value:function(){var t;for(t=0;t<this._bitsAvailable;++t)if(0!=(this._word&2147483648>>>t))return this._word<<=t,this._bitsAvailable-=t,t;return this._loadWord(),t+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var t=this.skipLZ();return this.readBits(t+1)-1}},{key:"readEG",value:function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(t){for(var e=8,r=8,n=0;n<t;n++)0!==r&&(r=(e+this.readEG()+256)%256),e=0===r?e:r}}]),t}(),dd=a,yd=Bt.f,vd=Function.prototype,md=vd.toString,gd=/^\s*function ([^ (]*)/,bd="name";dd&&!(bd in vd)&&yd(vd,bd,{configurable:!0,get:function(){try{return md.call(this).match(gd)[1]}catch(t){return""}}});var _d=function(){function t(e){pa(this,t),this.name=e||"",this._prefix="[".concat(this.name,"]")}return ya(t,[{key:"warn",value:function(){var e;if(!t.disabled){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(e=console).warn.apply(e,[this._prefix].concat(n))}}}],[{key:"enable",value:function(){t.disabled=!1}},{key:"disable",value:function(){t.disabled=!0}}]),t}();ha(_d,"disabled",!0);var kd=wr,Ad=k,wd=[].join,Td=m!=Object,Dd=Zi("join",",");kd({target:"Array",proto:!0,forced:Td||!Dd},{join:function(t){return wd.call(Ad(this),void 0===t?",":t)}});var xd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"decode",value:function(e){for(var r=[],n=e,i=0,a=e.length;i<a;)if(n[i]<128)r.push(String.fromCharCode(n[i])),++i;else{if(n[i]<192);else if(n[i]<224){if(t._checkContinuation(n,i,1)){var o=(31&n[i])<<6|63&n[i+1];if(o>=128){r.push(String.fromCharCode(65535&o)),i+=2;continue}}}else if(n[i]<240){if(t._checkContinuation(n,i,2)){var s=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(s>=2048&&55296!=(63488&s)){r.push(String.fromCharCode(65535&s)),i+=3;continue}}}else if(n[i]<248&&t._checkContinuation(n,i,3)){var u=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(u>65536&&u<1114112){u-=65536,r.push(String.fromCharCode(u>>>10|55296)),r.push(String.fromCharCode(1023&u|56320)),i+=4;continue}}r.push(String.fromCharCode(65533)),++i}return r.join("")}},{key:"_checkContinuation",value:function(t,e,r){var n=t;if(e+r<n.length){for(;r--;)if(128!=(192&n[++e]))return!1;return!0}return!1}}]),t}(),Sd=We.includes,Ed=bs;wr({target:"Array",proto:!0},{includes:function(t){return Sd(this,t,arguments.length>1?arguments[1]:void 0)}}),Ed("includes");var Pd=A,Od=d,Id=lt("match"),Ud=function(t){var e;return Pd(t)&&(void 0!==(e=t[Id])?!!e:"RegExp"==Od(t))},Cd=lt("match"),Bd=function(t){if(Ud(t))throw TypeError("The method doesn't accept regular expressions");return t},Md=g,Ld=Cr;wr({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Cd]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Ld(Md(this)).indexOf(Ld(Bd(t)),arguments.length>1?arguments[1]:void 0)}});var Rd="undefined"!=typeof window,Nd=Rd&&navigator.userAgent.toLocaleLowerCase(),jd=Rd&&/^((?!chrome|android).)*safari/.test(Nd),Vd=Rd&&Nd.includes("firefox"),Gd=Rd&&Nd.includes("android");function Fd(){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)),i=0;return e.forEach((function(t){n.set(t,i),i+=t.byteLength})),n}function zd(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)}var Wd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"parseAnnexB",value:function(t){for(var e=t.length,r=2,n=0;null!=t[r]&&1!==t[r];)r++;if((n=++r+2)>=e)return[];for(var i=[];n<e;)switch(t[n]){case 0:if(0!==t[n-1]){n+=2;break}if(0!==t[n-2]){n++;break}r!==n-2&&i.push(t.subarray(r,n-2));do{n++}while(1!==t[n]&&n<e);n=(r=n+1)+2;break;case 1:if(0!==t[n-1]||0!==t[n-2]){n+=3;break}r!==n-2&&i.push(t.subarray(r,n-2)),n=(r=n+1)+2;break;default:n+=3}return r<e&&i.push(t.subarray(r)),i}},{key:"parseAvcC",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(t.length<4)){for(var r,n=t.length,i=[],a=0;a+e<n;)if(r=zd(t,a),3===e&&(r>>>=8),a+=e,r){if(a+r>n)break;i.push(t.subarray(a,a+r)),a+=r}return i}}},{key:"parseSEI",value:function(t){for(var e=t.length,r=1,n=0,i=0,a="";255===t[r];)n+=255,r++;for(n+=t[r++];255===t[r];)i+=255,r++;if(i+=t[r++],5===n&&e>r+16)for(var o=0;o<16;o++)a+=t[r].toString(16),r++;return{payload:t.subarray(r),type:n,size:i,uuid:a}}},{key:"removeEPB",value:function(t){for(var e=t.byteLength,r=[],n=1;n<e-2;)0===t[n]&&0===t[n+1]&&3===t[n+2]?(r.push(n+2),n+=2):n++;if(!r.length)return t;var i=e-r.length,a=new Uint8Array(i),o=0;for(n=0;n<i;o++,n++)o===r[0]&&(o++,r.shift()),a[n]=t[o];return a}}]),t}(),Hd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(e){if(!(e.length<7)){for(var r,n,i=1+(3&e[4]),a=[],o=[],s=6,u=31&e[5],c=0;c<u;c++)if(n=e[s]<<8|e[s+1],s+=2,n){var f=e.subarray(s,s+n);s+=n,a.push(f),r||(r=t.parseSPS(Wd.removeEPB(f)))}var l,h=e[s];s++;for(var p=0;p<h;p++)l=e[s]<<8|e[s+1],s+=2,l&&(o.push(e.subarray(s,s+l)),s+=l);return{sps:r,spsArr:a,ppsArr:o,nalUnitSize:i}}}},{key:"parseSPS",value:function(t){var e=new pd(t);e.readUByte();var r=e.readUByte(),n=e.readUByte(),i=e.readUByte();e.skipUEG();var a=420;if(100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r){var o=e.readUEG();if(o<=3&&(a=[0,420,422,444][o]),3===o&&e.skipBits(1),e.skipUEG(),e.skipUEG(),e.skipBits(1),e.readBool())for(var s=3!==o?8:12,u=0;u<s;u++)e.readBool()&&(u<6?e.skipScalingList(16):e.skipScalingList(64))}e.skipUEG();var c=e.readUEG();if(0===c)e.readUEG();else if(1===c){e.skipBits(1),e.skipUEG(),e.skipUEG();for(var f=e.readUEG(),l=0;l<f;l++)e.skipUEG()}e.skipUEG(),e.skipBits(1);var h=e.readUEG(),p=e.readUEG(),d=e.readBits(1);0===d&&e.skipBits(1),e.skipBits(1);var y,v,m,g,b,_=0,k=0,A=0,w=0;if(e.readBool()&&(_=e.readUEG(),k=e.readUEG(),A=e.readUEG(),w=e.readUEG()),e.readBool()){if(e.readBool())switch(e.readUByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[e.readUByte()<<8|e.readUByte(),e.readUByte()<<8|e.readUByte()]}if(e.readBool()&&e.readBool(),e.readBool()&&(e.readBits(4),e.readBool()&&e.readBits(24)),e.readBool()&&(e.readUEG(),e.readUEG()),e.readBool()){var T=e.readBits(32),D=e.readBits(32);v=e.readBool(),b=(m=D)/(g=2*T)}}for(var x=t.subarray(1,4),S="avc1.",E=0;E<3;E++){var P=x[E].toString(16);P.length<2&&(P="0".concat(P)),S+=P}return{codec:S,profileIdc:r,profileCompatibility:n,levelIdc:i,chromaFormat:a,width:Math.ceil(16*(h+1)-2*(_+k)),height:(2-d)*(p+1)*16-(d?2:4)*(A+w),sarRatio:y,fpsNum:m,fpsDen:g,fps:b,fixedFrame:v}}}]),t}(),Yd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"parseADTS",value:function(e,r){for(var n=e.length,i=0;i+2<n&&(255!==e[i]||240!=(246&e[i+1]));)i++;if(!(i>=n)){var a=i,o=[],s=(60&e[i+2])>>>2,u=t.FREQ[s];if(!u)throw new Error("Invalid sampling index: ".concat(s));for(var c,f,l=1+((192&e[i+2])>>>6),h=(1&e[i+2])<<2|(192&e[i+3])>>>6,p=t._getConfig(s,h,l),d=p.config,y=p.codec,v=0,m=t.getFrameDuration(u);i+7<n;)if(255===e[i]&&240==(246&e[i+1])){if(n-i<(f=(3&e[i+3])<<11|e[i+4]<<3|(224&e[i+5])>>5))break;c=2*(1&~e[i+1]),o.push({pts:r+v*m,data:e.subarray(i+7+c,i+f)}),v++,i+=f}else i++;return{skip:a,remaining:i>=n?void 0:e.subarray(i),frames:o,samplingFrequencyIndex:s,sampleRate:u,objectType:l,channelCount:h,codec:y,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,i=(120&e[1])>>>3,a=t.FREQ[n];if(!a)throw new Error("Invalid sampling index: ".concat(n));var o=t._getConfig(n,i,r);return{samplingFrequencyIndex:n,sampleRate:a,objectType:r,channelCount:i,config:o.config,codec:o.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,i,a=[];return Vd?t>=6?(n=5,i=t-3):(n=2,i=t):Gd?(n=2,i=t):(n=r,i=t,t>=6?i=t-3:1===e&&(n=2,i=t)),a[0]=n<<3,a[0]|=(14&t)>>1,a[1]=(1&t)<<7,a[1]|=e<<3,5===n&&(a[1]|=(14&i)>>1,a[2]=(1&i)<<7,a[2]|=8,a[3]=0),{config:a,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}();ha(Yd,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var qd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(e){if(!(e.length<23)){for(var r,n,i,a,o=1+(3&e[21]),s=[],u=[],c=[],f=23,l=e[22],h=0;h<l;h++){n=63&e[f],i=e[f+1]<<8|e[f+2],f+=3;for(var p=0;p<i;p++)if(a=e[f]<<8|e[f+1],f+=2,a){switch(n){case 32:c.push(e.subarray(f,f+a));break;case 33:var d=e.subarray(f,f+a);r||(r=t.parseSPS(Wd.removeEPB(d))),s.push(d);break;case 34:u.push(e.subarray(f,f+a))}f+=a}}return{sps:r,spsArr:s,ppsArr:u,vpsArr:c,nalUnitSize:o}}}},{key:"parseSPS",value:function(t){var e=new pd(t);e.readUByte(),e.readUByte(),e.readBits(4);var r=e.readBits(3);e.readBits(1);var n=this._parseProfileTierLevel(e,r);e.readUEG();var i=e.readUEG(),a=420;i<=3&&(a=[0,420,422,444][i]);var o=0;3===i&&(o=e.readBits(1));var s,u,c,f,l=e.readUEG(),h=e.readUEG(),p=e.readBits(1);(1===p&&(s=e.readUEG(),u=e.readUEG(),c=e.readUEG(),f=e.readUEG()),1===p)&&(l-=(1!==i&&2!==i||0!==o?1:2)*(u+s),h-=(1===i&&0===o?2:1)*(f+c));return{codec:"hev1.1.6.L93.B0",width:l,height:h,chromaFormat:a,bitDepthLumaMinus8:e.readUEG(),bitDepthChromaMinus8:e.readUEG(),generalProfileSpace:n.generalProfileSpace,generalTierFlag:n.generalTierFlag,generalProfileIdc:n.generalProfileIdc,generalLevelIdc:n.generalLevelIdc}}},{key:"_parseProfileTierLevel",value:function(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;a&&(r=t.readBits(2),n=t.readBits(1),i=t.readBits(5)),t.readBits(32),t.readBits(1),t.readBits(1),t.readBits(1),t.readBits(1),t.readBits(16),t.readBits(16),t.readBits(12);for(var o=t.readUByte(),s=[],u=[],c=0;c<e;c++)s[c]=t.readBits(1),u[c]=t.readBits(1);e>0&&t.readBits(2*(8-e));for(var f=0;f<e;f++)0!==s[f]&&(t.readBits(2),t.readBits(1),t.readBits(5),t.readBits(16),t.readBits(16),t.readBits(4),t.readBits(16),t.readBits(16),t.readBits(12)),0!==u[f]&&t.readBits(8);return{generalProfileSpace:r,generalTierFlag:n,generalProfileIdc:i,generalLevelIdc:o}}}]),t}(),Kd=1e3,Zd=5e3,Qd=function(){function t(e,r,n){pa(this,t),this.videoTrack=e,this.audioTrack=r,this.metadataTrack=n,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0}return ya(t,[{key:"fix",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=Math.round(1e3*e);var i=this.videoTrack,a=this.audioTrack;if(!r&&n||(this._videoLastSample=null,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0),r&&(this._baseDtsInited=!1),this._baseDtsInited||this._calculateBaseDts(a,i),this._baseDtsInited){if(!n&&e&&(this._audioNextPts=this._videoNextDts=e),this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(a),this._fixVideo(i),this.metadataTrack.exist()){var o=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach((function(e){e.pts=e.originPts-t._baseDts,e.time=Math.max(0,e.pts)/o})),this.metadataTrack.flvScriptSamples.forEach((function(e){e.pts=e.originPts-t._baseDts,e.time=Math.max(0,e.pts)/o}))}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),a.samples.length&&(a.baseMediaDecodeTime=a.samples[0].pts*a.timescale/1e3)}}},{key:"_fixVideo",value:function(t){var e=this,r=t.samples;if(r.length){var n;if(r.forEach((function(t){t.dts-=e._baseDts,t.pts-=e._baseDts})),t.fpsNum&&t.fpsDen)n=t.timescale*(t.fpsDen/t.fpsNum);else{var i=t.samples[0],a=t.samples[r.length-1];n=Math.floor((a.dts-i.dts)/(r.length-1))}var o=r.pop();if(this._videoLastSample&&r.unshift(this._videoLastSample),this._videoLastSample=o,r.length){if(void 0===this._videoNextDts){var s=r[0];this._videoNextDts=s.dts}var u=r.length,c=0,f=r[0],l=this._videoNextDts-f.dts;if(Math.abs(l)>200){var h;if(Math.abs(f.dts-this._lastVideoExceptionChunkFirstDtsDot)>5e3)this._lastVideoExceptionChunkFirstDtsDot=f.dts,t.warnings.push({type:Ma.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts,firstSampleDts:f.dts,nextSampleDts:null===(h=r[1])||void 0===h?void 0:h.dts,sampleDuration:l});this._videoTimestampBreak>=5?(this._videoNextDts=f.dts,this._videoTimestampBreak=0):(f.dts+=l,f.pts+=l)}for(var p=0;p<u;p++){var d=r[p].dts,y=r[p+1];((c=p<u-1?y.dts-d:o?o.dts-d:n)>1e3||c<0)&&(this._videoTimestampBreak++,Math.abs(d-this._lastVideoExceptionLargeGapDot)>5e3&&(this._lastVideoExceptionLargeGapDot=d,t.warnings.push({type:Ma.LARGE_VIDEO_GAP,time:d/t.timescale,dts:d,originDts:r[p].originDts,nextDts:this._videoNextDts,sampleDuration:c,refSampleDuration:n})),c=n),r[p].duration=c,this._videoNextDts+=c}}}}},{key:"_fixAudio",value:function(t){var e=this,r=t.samples;r.length&&(r.forEach((function(t){t.dts=t.pts-=e._baseDts})),this._doFixAudioInternal(t,r,1e3))}},{key:"_calculateBaseDts",value:function(t,e){var r=t.samples,n=e.samples;if(!r.length&&!n.length)return!1;var i=1/0,a=1/0;r.length&&(t.baseDts=i=r[0].pts),n.length&&(e.baseDts=a=n[0].dts),this._baseDts=Math.min(i,a);var o=a-i;return Number.isFinite(o)&&Math.abs(o)>500&&e.warnings.push({type:Ma.LARGE_AV_SHIFT,videoBaseDts:a,audioBasePts:i,baseDts:this._baseDts,delta:o}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){if(this._baseDtsInited&&this._videoTimestampBreak&&this._audioTimestampBreak){if(!this._calculateBaseDts(this.audioTrack,this.videoTrack))return;this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts),this._videoLastSample=null,this._videoTimestampBreak=0,this._audioTimestampBreak=0}}},{key:"_doFixAudioInternal",value:function(t,e,r){t.sampleDuration||(t.sampleDuration=t.codecType===Ba.AAC?Yd.getFrameDuration(t.timescale,r):this._getG711Duration(t));var n=t.sampleDuration,i=t.codecType===Ba.AAC?1024:n*t.timescale/1e3;if(void 0===this._audioNextPts){var a=e[0];this._audioNextPts=a.pts}for(var o=0;o<e.length;o++){var s=this._audioNextPts,u=e[o],c=u.pts-s;if(0===o&&this._audioTimestampBreak>=5&&(s=this._audioNextPts=u.dts,c=0,this._audioTimestampBreak=0),!this._audioTimestampBreak&&c>=3*n&&c<=Kd&&!jd){var f=this._getSilentFrame(t)||e[0].data.subarray(),l=Math.floor(c/n);Math.abs(u.pts-this._lastAudioExceptionGapDot)>Zd&&(this._lastAudioExceptionGapDot=u.pts,t.warnings.push({type:Ma.AUDIO_FILLED,pts:u.pts,originPts:u.originPts,count:l,nextPts:s,refSampleDuration:n}));for(var h=0;h<l;h++){var p=new ja(Math.floor(this._audioNextPts+n)-Math.floor(this._audioNextPts),f,i);p.originPts=Math.floor(this._baseDts+s),e.splice(o,0,p),this._audioNextPts+=n,o++}o--}else c<=-3*n&&c>=-1e3?(Math.abs(u.pts-this._lastAudioExceptionOverlapDot)>Zd&&(this._lastAudioExceptionOverlapDot=u.pts,t.warnings.push({type:Ma.AUDIO_DROPPED,pts:u.pts,originPts:u.originPts,nextPts:s,refSampleDuration:n})),e.splice(o,1),o--):(Math.abs(c)>Kd&&(this._audioTimestampBreak++,Math.abs(u.pts-this._lastAudioExceptionLargeGapDot)>Zd&&(this._lastAudioExceptionLargeGapDot=u.pts,t.warnings.push({type:Ma.LARGE_AUDIO_GAP,time:u.pts/1e3,pts:u.pts,originPts:u.originPts,nextPts:s,sampleDuration:c,refSampleDuration:n}))),u.dts=u.pts=s,u.duration=i,this._audioNextPts+=n)}}},{key:"_getG711Duration",value:function(t){var e=t.sampleSize,r=t.channelCount,n=t.sampleRate,i=t.samples[0];if(i)return 2*i.data.byteLength/r/(e/8)/n*1e3}},{key:"_getSilentFrame",value:function(t){return t.codecType===Ba.AAC?Yd.getSilentFrame(t.codec,t.channelCount):new Uint8Array(8*t.sampleDuration*t.channelCount)}}]),t}(),Xd=function(){function t(){pa(this,t)}return ya(t,null,[{key:"parse",value:function(e){if(!(e.length<3)){var r={},n=t._parseValue(new DataView(e.buffer,e.byteOffset,e.byteLength)),i=t._parseValue(new DataView(e.buffer,e.byteOffset+n.size,e.byteLength-n.size));return r[n.data]=i.data,r}}},{key:"_parseValue",value:function(e){var r,n=e.byteLength,i=1,a=!1;switch(e.getUint8(0)){case 0:r=e.getFloat64(1),i+=8;break;case 1:r=!!e.getUint8(1),i+=1;break;case 2:var o=t._parseString(new DataView(e.buffer,e.byteOffset+i,e.byteLength-i));r=o.data,i+=o.size;break;case 3:r={};var s=0;for(9==(16777215&e.getUint32(n-4))&&(s=3);i<n-4;){var u=t._parseObject(new DataView(e.buffer,e.byteOffset+i,e.byteLength-i-s)),c=u.size,f=u.data;if(u.isEnd)break;r[f.name]=f.value,i+=c}if(i<=n-3)9===(16777215&e.getUint32(i-1))&&(i+=3);break;case 8:r={},i+=4;var l=0;for(9==(16777215&e.getUint32(n-4))&&(l=3);i<n-8;){var h=t._parseObject(new DataView(e.buffer,e.byteOffset+i,e.byteLength-i-l)),p=h.size,d=h.data;if(h.isEnd)break;r[d.name]=d.value,i+=p}if(i<=n-3)9===(16777215&e.getUint32(i-1))&&(i+=3);break;case 9:r=void 0,i=1,a=!0;break;case 10:r=[];var y=e.getUint32(1);i+=4;for(var v=0;v<y;v++){var m=t._parseValue(new DataView(e.buffer,e.byteOffset+i,e.byteLength-i)),g=m.data,b=m.size;r.push(g),i+=b}break;case 11:var _=e.getFloat64(i)+6e4*e.getInt16(i+8);r=new Date(_),i+=10;break;case 12:var k=e.getUint32(1);i+=4,r="",k>0&&(r=xd.decode(new Uint8Array(e.buffer,e.byteOffset+i,k))),i+=k;break;default:i=n}return{data:r,size:i,isEnd:a}}},{key:"_parseString",value:function(t){var e=t.getUint16(0),r="";return e>0&&(r=xd.decode(new Uint8Array(t.buffer,t.byteOffset+2,e))),{data:r,size:2+e}}},{key:"_parseObject",value:function(e){if(!(e.byteLength<3)){var r=t._parseString(e),n=t._parseValue(new DataView(e.buffer,e.byteOffset+r.size,e.byteLength-r.size));return{data:{name:r.data,value:n.data},size:r.size+n.size,isEnd:n.isEnd}}}}]),t}(),$d=new _d("FlvDemuxer"),Jd=function(){function t(e,r,n){pa(this,t),ha(this,"_headerParsed",!1),ha(this,"_remainingData",null),ha(this,"_gopId",0),this.videoTrack=e||new La,this.audioTrack=r||new Ra,this.metadataTrack=n||new ho,this._fixer=new Qd(this.videoTrack,this.audioTrack,this.metadataTrack)}return ya(t,[{key:"demux",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.audioTrack,a=this.videoTrack,o=this.metadataTrack;if(!r&&n||(this._remainingData=null),r?(this._headerParsed=!1,a.reset(),i.reset(),o.reset()):(a.samples=[],i.samples=[],o.seiSamples=[],o.flvScriptSamples=[],a.warnings=[],i.warnings=[],this._remainingData&&(e=Fd(this._remainingData,e),this._remainingData=null)),!e.length)return{videoTrack:a,audioTrack:i,metadataTrack:o};var s=0;if(!this._headerParsed){if(!t.probe(e))throw new Error("Invalid flv file");i.present=(4&e[4])>>>2!=0,a.present=0!=(1&e[4]),this._headerParsed=!0,s=zd(e,5)+4}for(var u,c,f,l,h,p=e.length;s+15<p&&(u=e[s],!(s+15+(c=e[s+1]<<16|e[s+2]<<8|e[s+3])>p));)f=(e[s+7]<<24>>>0)+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6],s+=11,l=e.subarray(s,s+c),8===u?this._parseAudio(l,f):9===u?this._parseVideo(l,f):18===u?this._parseScript(l,f):$d.warn("Invalid tag type: ".concat(u)),(h=zd(e,s+=c))!==11+c&&$d.warn("Invalid PrevTagSize ".concat(h," (").concat(11+c,")")),s+=4;return s<p&&(this._remainingData=e.subarray(s)),i.formatTimescale=a.formatTimescale=a.timescale=o.timescale=1e3,i.timescale=i.sampleRate||0,!i.exist()&&i.hasSample()&&i.reset(),!a.exist()&&a.hasSample()&&a.reset(),{videoTrack:a,audioTrack:i,metadataTrack:o}}},{key:"fix",value:function(t,e,r){return this._fixer.fix(t,e,r),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(t,e,r,n){return this.demux(t,e,r),this.fix(n,e,r)}},{key:"_parseAudio",value:function(e,r){if(e.length){var n=(240&e[0])>>>4,i=this.audioTrack;if(10!==n&&7!==n&&8!==n)return $d.warn("Unsupported sound format: ".concat(n)),void i.reset();if(10!==n){var a=(12&e[0])>>2,o=(2&e[0])>>1,s=1&e[0];i.sampleRate=t.AUDIO_RATE[a],i.sampleSize=o?16:8,i.channelCount=s+1}10===n?this._parseAac(e,r):this._parseG711(e,r,n)}}},{key:"_parseG711",value:function(t,e,r){var n=this.audioTrack;n.codecType=7===r?Ba.G711PCMA:Ba.G711PCMU,n.sampleRate=8e3,n.codec=n.codecType,n.samples.push(new ja(e,t.subarray(1)))}},{key:"_parseAac",value:function(t,e){var r=this.audioTrack;if(r.codecType=Ba.AAC,0===t[1]){var n=Yd.parseAudioSpecificConfig(t.subarray(2));n?(r.codec=n.codec,r.channelCount=n.channelCount,r.sampleRate=n.sampleRate,r.config=n.config,r.objectType=n.objectType,r.sampleRateIndex=n.samplingFrequencyIndex):(r.reset(),$d.warn("Cannot parse AudioSpecificConfig",t))}else if(1===t[1]){if(null==e)return;r.samples.push(new ja(e,t.subarray(2)))}else $d.warn("Unknown AACPacketType: ".concat(t[1]))}},{key:"_parseVideo",value:function(t,e){var r=this;if(!(t.length<6)){var n=(240&t[0])>>>4,i=15&t[0],a=this.videoTrack;if(7!==i&&12!==i)return a.reset(),void $d.warn("Unsupported codecId: ".concat(i));var o=12===i;a.codecType=o?Ca.HEVC:Ca.AVC;var s=t[1],u=(t[2]<<16|t[3]<<8|t[4])<<8>>8;if(0===s){var c=t.subarray(5),f=o?qd.parseHEVCDecoderConfigurationRecord(c):Hd.parseAVCDecoderConfigurationRecord(c);if(f){var l=f.sps,h=f.ppsArr,p=f.spsArr,d=f.vpsArr,y=f.nalUnitSize;l&&(a.codec=l.codec,a.width=l.width,a.height=l.height,a.sarRatio=l.sarRatio,a.fpsNum=l.fpsNum,a.fpsDen=l.fpsDen,a.chromaFormat=l.chromaFormat),p.length&&(a.sps=p),h.length&&(a.pps=h),d&&d.length&&(a.vps=d),y&&(a.nalUnitSize=y)}else $d.warn("Cannot parse ".concat(o?"HEVC":"AVC","DecoderConfigurationRecord"),t)}else if(1===s){var v=Wd.parseAvcC(t.subarray(5),a.nalUnitSize);if(v&&v.length){var m=new Na(e+u,e,v);1===n&&m.setToKeyframe(),a.samples.push(m),v.forEach((function(t){var n=o?t[0]>>>1&63:31&t[0];switch(n){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!o&&5!==n||o&&5===n)break;m.setToKeyframe();break;case 6:case 39:case 40:if(!o&&6!==n||o&&6===n)break;r.metadataTrack.seiSamples.push(new lo(Wd.parseSEI(Wd.removeEPB(t)),e+u))}})),m.keyframe&&this._gopId++,m.gopId=this._gopId}else $d.warn("Cannot parse NALUs",t)}else 2===s||$d.warn("Unknown AVCPacketType: ".concat(s))}}},{key:"_parseScript",value:function(t,e){this.metadataTrack.flvScriptSamples.push(new fo(Xd.parse(t),e))}}],[{key:"probe",value:function(t){return 70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]&&zd(t,5)>=9}}]),t}();ha(Jd,"AUDIO_RATE",[5500,11e3,22e3,44e3]);var ty=Object.freeze({__proto__:null,FlvDemuxer:Jd});function ey(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 ry(t,e){if(t){if("string"==typeof t)return ey(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)?ey(t,e):void 0}}function ny(t){return function(t){if(Array.isArray(t))return ey(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ry(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 iy=En.map;wr({target:"Array",proto:!0,forced:!Vi("map")},{map:function(t){return iy(this,t,arguments.length>1?arguments[1]:void 0)}});var ay=9e4,oy=45e4,sy=9e4,uy=function(){function t(e,r,n){pa(this,t),this.videoTrack=e,this.audioTrack=r,this.metadataTrack=n,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=!1,this._videoTimestampBreak=!1,this._lastAudioExceptionGapDot=0,this._lastAudioExceptionOverlapDot=0,this._lastAudioExceptionLargeGapDot=0}return ya(t,[{key:"fix",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=Math.round(9e4*e);var i=this.videoTrack,a=this.audioTrack,o=i.samples,s=a.samples;if(o.length||s.length){var u=o[0],c=s[0],f=0;if(o.length&&s.length&&(f=u.dts-c.pts),this._baseDtsInited||this._calculateBaseDts(this.audioTrack,this.videoTrack),r&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=e),!n){this._videoNextDts=f>0?e+f:e,this._audioNextPts=f>0?e:e-f;var l=u?u.dts-this._baseDts-this._videoNextDts:0,h=c?c.pts-this._baseDts-this._audioNextPts:0;Math.abs(l||h)>sy&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=e)}if(this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(a),this._fixVideo(i),this.metadataTrack.exist()){var p=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach((function(e){e.pts=e.originPts-t._baseDts,e.time=Math.max(0,e.pts)/p}))}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),a.samples.length&&(a.baseMediaDecodeTime=a.samples[0].pts*a.timescale/9e4)}}},{key:"_fixVideo",value:function(t){var e=this,r=t.samples;if(r.length){if(r.forEach((function(t){t.dts-=e._baseDts,t.pts-=e._baseDts})),void 0===this._videoNextDts){var n=r[0];this._videoNextDts=n.dts}var i,a,o=r.length,s=0,u=r[0],c=r[1],f=this._videoNextDts-u.dts;if(Math.abs(f)>45e3)u.dts+=f,u.pts+=f,t.warnings.push({type:Ma.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts,firstSampleDts:u.dts,nextSampleDts:null===(i=r[1])||void 0===i?void 0:i.dts,sampleDuration:f}),c&&Math.abs(c.dts-u.dts)>sy&&(this._videoTimestampBreak=!0,r.forEach((function(t,e){0!==e&&(t.dts+=f,t.pts+=f)})));if(t.fpsNum&&t.fpsDen)a=t.timescale*(t.fpsDen/t.fpsNum);else{var l=t.samples[0],h=t.samples[o-1];a=Math.floor((h.dts-l.dts)/(o-1))}for(var p=0;p<o;p++){var d=r[p].dts,y=r[p+1];if((s=p<o-1?y.dts-d:r[p-1]?d-r[p-1].dts:a)>sy||s<0){this._videoTimestampBreak=!0,s=this._audioTimestampBreak?a:s;var v=(this._audioNextDts||0)/1e3;Math.abs(d/1e3+s)>v&&(s=a),t.warnings.push({type:Ma.LARGE_VIDEO_GAP,time:d/t.timescale,dts:d,originDts:r[p].originDts,nextDts:this._videoNextDts,sampleDuration:s,refSampleDuration:a})}r[p].duration=s,this._videoNextDts+=s}}}},{key:"_fixAudio",value:function(t){var e=this,r=t.samples;r.length&&(r.forEach((function(t){t.pts-=e._baseDts,t.dts=t.pts})),this._doFixAudioInternal(t,r,9e4))}},{key:"_calculateBaseDts",value:function(t,e){var r=t.samples,n=e.samples;if(!r.length&&!n.length)return!1;var i=1/0,a=1/0;r.length&&(t.baseDts=i=r[0].pts),n.length&&(e.baseDts=a=n[0].dts),this._baseDts=Math.min(i,a);var o=a-i;return Number.isFinite(o)&&Math.abs(o)>45e3&&e.warnings.push({type:Ma.LARGE_AV_SHIFT,videoBaseDts:a,audioBasePts:i,baseDts:this._baseDts,delta:o}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){if(this._baseDtsInited&&this._videoTimestampBreak&&this._audioTimestampBreak){if(!this._calculateBaseDts(this.audioTrack,this.videoTrack))return;this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts),this._audioLastSample=null,this._videoLastSample=null,this._videoTimestampBreak=!1,this._audioTimestampBreak=!1}}},{key:"_doFixAudioInternal",value:function(t,e,r){t.sampleDuration||(t.sampleDuration=Yd.getFrameDuration(t.timescale,r));var n=t.sampleDuration;if(void 0===this._audioNextPts){var i=e[0];this._audioNextPts=i.pts}for(var a=0;a<e.length;a++){var o=this._audioNextPts,s=e[a],u=s.pts-o;if(!this._audioTimestampBreak&&u>=3*n&&u<=ay&&!jd){var c=Yd.getSilentFrame(t.codec,t.channelCount)||e[0].data.subarray(),f=Math.floor(u/n);Math.abs(s.pts-this._lastAudioExceptionGapDot)>oy&&(this._lastAudioExceptionGapDot=s.pts),t.warnings.push({type:Ma.AUDIO_FILLED,pts:s.pts,originPts:s.originPts,count:f,nextPts:o,refSampleDuration:n});for(var l=0;l<f;l++){var h=new ja(Math.floor(o),c);h.originPts=Math.floor(this._baseDts+o),e.splice(a,0,h),this._audioNextPts+=n,a++}a--}else u<=-3*n&&u>=-9e4?(Math.abs(s.pts-this._lastAudioExceptionOverlapDot)>oy&&(this._lastAudioExceptionOverlapDot=s.pts,t.warnings.push({type:Ma.AUDIO_DROPPED,pts:s.pts,originPts:s.originPts,nextPts:o,refSampleDuration:n})),e.splice(a,1),a--):(Math.abs(u)>=ay&&(this._audioTimestampBreak=!0,Math.abs(s.pts-this._lastAudioExceptionLargeGapDot)>oy&&(this._lastAudioExceptionLargeGapDot=s.pts,t.warnings.push({type:Ma.LARGE_AUDIO_GAP,time:s.pts/1e3,pts:s.pts,originPts:s.originPts,nextPts:o,sampleDuration:u,refSampleDuration:n}))),s.dts=s.pts=o,this._audioNextPts+=n)}}}]),t}(),cy=new _d("TsDemuxer"),fy=function(){function t(e,r,n){pa(this,t),ha(this,"_pmtId",-1),ha(this,"_remainingPacketData",null),ha(this,"_videoPesData",[]),ha(this,"_audioPesData",[]),ha(this,"_gopId",0),this.videoTrack=e||new La,this.audioTrack=r||new Ra,this.metadataTrack=n||new ho,this._fixer=new uy(this.videoTrack,this.audioTrack,this.metadataTrack)}return ya(t,[{key:"demux",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.audioTrack,i=this.videoTrack,a=this.metadataTrack;e&&(this._pmtId=-1,i.reset(),n.reset(),a.reset()),!r||e?(this._remainingPacketData=null,this._videoPesData=[],this._audioPesData=[]):(i.samples=[],n.samples=[],a.seiSamples=[],i.warnings=[],n.warnings=[],this._remainingPacketData&&(t=Fd(this._remainingPacketData,t),this._remainingPacketData=null));var o=t.length,s=o%188;s&&(this._remainingPacketData=t.subarray(o-s),o-=s);for(var u=i.pid,c=n.pid,f=0;f<o;f+=188){if(71!==t[f])throw new Error("TS packet did not start with 0x47");var l=!!(64&t[f+1]),h=((31&t[f+1])<<8)+t[f+2],p=(48&t[f+3])>>4,d=void 0;if(p>1){if((d=f+5+t[f+4])===f+188)continue}else d=f+4;switch(h){case 0:l&&(d+=t[d]+1),this._pmtId=(31&t[d+10])<<8|t[d+11];break;case this._pmtId:l&&(d+=t[d]+1);var y=d+3+((15&t[d+1])<<8|t[d+2])-4,v=(15&t[d+10])<<8|t[d+11];for(d+=12+v;d<y;){var m=(31&t[d+1])<<8|t[d+2];switch(t[d]){case 15:n.pid=c=m;break;case 27:if(-1!==u)break;i.codecType=Ca.AVC,i.pid=u=m;break;case 36:if(-1!==u)break;i.codecType=Ca.HEVC,i.pid=u=m;break;default:cy.warn("Unsupported stream. type: ".concat(t[d],", pid: ").concat(m))}d+=5+((15&t[d+3])<<8|t[d+4])}break;case u:l&&this._videoPesData.length&&this._parseVideoData(),this._videoPesData.push(t.subarray(d,f+188));break;case c:l&&this._audioPesData.length&&this._parseAudioData(),this._audioPesData.push(t.subarray(d,f+188));break;case 17:case 8191:break;default:cy.warn("Unknown pid: ".concat(h))}}return this._parseVideoData(),this._parseAudioData(),n.formatTimescale=i.formatTimescale=i.timescale=a.timescale=9e4,n.timescale=n.sampleRate||0,{videoTrack:i,audioTrack:n,metadataTrack:a}}},{key:"fix",value:function(t,e,r){return this._fixer.fix(t,e,r),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(t,e,r,n){return this.demux(t,e,r),this.fix(n,e,r)}},{key:"_parseVideoData",value:function(){if(this._videoPesData.length){var e=t._parsePES(Fd.apply(void 0,ny(this._videoPesData)));if(e){var r=Wd.parseAnnexB(e.data);r?this._createVideoSample(r,e.pts,e.dts):cy.warn("Cannot parse avc units",e),this._videoPesData=[]}else cy.warn("Cannot parse video pes",this._videoPesData)}}},{key:"_createVideoSample",value:function(t,e,r){var n=this;if(t.length){var i=this.videoTrack,a=i.codecType===Ca.HEVC,o=new Na(e,r);t.forEach((function(t){var s=a?t[0]>>>1&63:31&t[0];switch(s){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!a&&5!==s||a&&5===s)break;o.setToKeyframe(),n._gopId++;break;case 6:case 39:case 40:if(!a&&6!==s||a&&6===s)break;n.metadataTrack.seiSamples.push(new lo(Wd.parseSEI(Wd.removeEPB(t)),e));break;case 32:if(!a)break;i.vps=[t];break;case 7:case 33:if(!a&&7!==s||a&&7===s)break;if(!i.sps.length){var u=Wd.removeEPB(t),c=a?qd.parseSPS(u):Hd.parseSPS(u);i.sps=[t],i.codec=c.codec,i.width=c.width,i.height=c.height,i.sarRatio=c.sarRatio,i.fpsNum=c.fpsNum,i.fpsDen=c.fpsDen}break;case 8:case 34:if(!a&&8!==s||a&&8===s)break;i.pps.length||(i.pps=[t]);break;case 9:case 35:if(!a&&9!==s||a&&9===s)break;o.gopId=n._gopId,o.units.length&&(n._pushVideoSample(i,o),o=n.prevAvcSample=new Na(e,r))}o.units.push(t)})),o.gopId=this._gopId,this._pushVideoSample(i,o)}}},{key:"_pushVideoSample",value:function(t,e){if(e.units.length){if(null==e.pts){cy.warn("Video sample no pts",e);var r=t.samples[t.samples.length-1];r?(e.pts=r.pts,e.dts=r.dts):cy.warn("Drop video sample",e)}null!=e.pts&&t.samples.push(e)}}},{key:"_parseAudioData",value:function(){if(this._audioPesData.length){var e=t._parsePES(Fd.apply(void 0,ny(this._audioPesData)));e?(this._parseAacData(e),this._audioPesData=[]):cy.warn("Cannot parse audio pes",this._audioPesData)}}},{key:"_parseAacData",value:function(t){var e=this.audioTrack,r=t.pts;if(null==r){if(cy.warn("AAC pes not pts",e),!e.samples.length||!e.sampleRate)return;r=e.samples[e.samples.length-1].pts+Yd.getFrameDuration(e.sampleRate)}var n,i=Yd.parseADTS(t.data,r);i?(e.codec=i.codec,e.channelCount=i.channelCount,e.sampleRate=i.sampleRate,e.objectType=i.objectType,e.sampleRateIndex=i.samplingFrequencyIndex,e.config=i.config,(n=e.samples).push.apply(n,ny(i.frames.map((function(t){return new ja(t.pts,t.data)})))),i.skip&&cy.warn("Skip aac adts ".concat(i.skip," bits")),i.remaining&&cy.warn("Remaining aac adts ".concat(i.remaining," bits"))):cy.warn("Cannot parse aac adts",t)}}],[{key:"probe",value:function(t){return!!t.length&&(71===t[0]&&71===t[188]&&71===t[376])}},{key:"_parsePES",value:function(t){var e=t[8];if(!(null==e||t.length<e+9)&&1===(t[0]<<16|t[1]<<8|t[2])){var r=(t[4]<<8)+t[5];if(!(r&&r>t.length-6)){var n,i,a=t[7];return 192&a&&(n=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&a?n-(i=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(n=i):i=n),{data:t.subarray(9+e),pts:n,dts:i}}}}}]),t}(),ly=Object.freeze({__proto__:null,TsDemuxer:fy});function hy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||ry(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var py=wr,dy=En.find,yy=bs,vy="find",my=!0;vy in[]&&Array(1).find((function(){my=!1})),py({target:"Array",proto:!0,forced:my},{find:function(t){return dy(this,t,arguments.length>1?arguments[1]:void 0)}}),yy(vy);var gy=Math.pow(2,32)-1,by=function(){function t(){pa(this,t)}return ya(t,null,[{key:"box",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=8+r.reduce((function(t,e){return t+e.byteLength}),0),a=new Uint8Array(i);a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=255&i,a.set(t,4);var o=8;return r.forEach((function(t){a.set(t,o),o+=t.byteLength})),a}},{key:"ftyp",value:function(e){return e.find((function(t){return t.type===Ua.VIDEO&&t.codecType===Ca.HEVC}))?t.FTYPHEV1:t.FTYPAVC1}},{key:"initSegment",value:function(e){return Fd(t.ftyp(e),t.moov(e))}},{key:"moov",value:function(e){return t.box.apply(t,[t.types.moov,t.mvhd(e[0].duration,e[0].timescale)].concat(ny(e.map((function(e){return t.trak(e)}))),[t.mvex(e)]))}},{key:"mvhd",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return t.box(t.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,e>>24&255,e>>16&255,e>>8&255,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(e){return t.box(t.types.trak,t.tkhd(e.id,e.duration,e.width,e.height),t.mdia(e))}},{key:"tkhd",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t.box(t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,i>>8&255,255&i,0,0]))}},{key:"mdia",value:function(e){return t.box(t.types.mdia,t.mdhd(e.duration,e.timescale),t.hdlr(e.type),t.minf(e))}},{key:"mdhd",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return t.box(t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,e>>24&255,e>>16&255,e>>8&255,255&e,85,196,0,0]))}},{key:"hdlr",value:function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])}},{key:"minf",value:function(e){return t.box(t.types.minf,e.type===Ua.VIDEO?t.VMHD:t.SMHD,t.DINF,t.stbl(e))}},{key:"stbl",value:function(e){return t.box(t.types.stbl,t.stsd(e),t.STTS,t.STSC,t.STSZ,t.STCO)}},{key:"stsd",value:function(e){return t.box(t.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),e.type===Ua.VIDEO?t.avc1hev1(e):t.mp4a(e))}},{key:"avc1hev1",value:function(e){var r=e.codecType===Ca.HEVC,n=r?t.types.hvc1:t.types.avc1,i=r?t.hvcC():t.avcC(e),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,e.width>>8&255,255&e.width,e.height>>8&255,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return e.sarRatio&&e.sarRatio.length>1&&a.push(t.pasp(e.sarRatio)),t.box.apply(t,[n].concat(a))}},{key:"avcC",value:function(e){var r,n=[],i=[];return e.sps.forEach((function(t){r=t.byteLength,n.push(r>>>8&255),n.push(255&r),n.push.apply(n,ny(t))})),e.pps.forEach((function(t){r=t.byteLength,i.push(r>>>8&255),i.push(255&r),i.push.apply(i,ny(t))})),t.box(t.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|e.sps.length].concat(n).concat([e.pps.length]).concat(i)))}},{key:"hvcC",value:function(){return t.box(t.types.hvcC,new Uint8Array([1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64]))}},{key:"pasp",value:function(e){var r=hy(e,2),n=r[0],i=r[1];return t.box(t.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"mp4a",value:function(e){return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,e.sampleRate>>8&255,255&e.sampleRate,0,0]),t.esds(e.config))}},{key:"esds",value:function(e){var r=e.length;return t.box(t.types.esds,new Uint8Array([0,0,0,0,3,23+r,0,0,0,4,15+r,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([r]).concat(e).concat([6,1,2])))}},{key:"mvex",value:function(e){return t.box.apply(t,[t.types.mvex].concat(ny(e.map((function(e){return t.trex(e.id)})))))}},{key:"trex",value:function(e){return t.box(t.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"moof",value:function(e,r){return t.box.apply(t,[t.types.moof,t.mfhd(e)].concat(ny(r.map((function(e){return t.traf(e)})))))}},{key:"mfhd",value:function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}},{key:"traf",value:function(e){return t.box(t.types.traf,t.tfhd(e.id),t.tfdt(e.baseMediaDecodeTime),t.trun(e.samples,76))}},{key:"tfhd",value:function(e){return t.box(t.types.tfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}},{key:"tfdt",value:function(e){var r=Math.floor(e/(gy+1)),n=Math.floor(e%(gy+1));return t.box(t.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,n>>24,n>>16&255,n>>8&255,255&n]))}},{key:"trun",value:function(e,r){var n=e.length,i=12+16*n;r+=8+i;var a=new Uint8Array(i);a.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0);for(var o=0;o<n;o++){var s=e[o],u=s.duration,c=s.size,f=s.flag,l=void 0===f?{}:f,h=s.cts,p=void 0===h?0:h;a.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,c>>>24&255,c>>>16&255,c>>>8&255,255&c,l.isLeading<<2|(null==l.dependsOn?1:l.dependsOn),l.isDependedOn<<6|l.hasRedundancy<<4|l.paddingValue<<1|(null==l.isNonSyncSample?1:l.isNonSyncSample),61440&l.degradationPriority,15&l.degradationPriority,p>>>24&255,p>>>16&255,p>>>8&255,255&p],12+16*o)}return t.box(t.types.trun,a)}},{key:"mdat",value:function(e){return t.box(t.types.mdat,e)}},{key:"moovMP4",value:function(e){return t.box.apply(t,[t.types.moov,t.mvhd(e[0].duration,e[0].timescale)].concat(ny(e.map((function(e){return t.trackMP4(e)})))))}},{key:"trackMP4",value:function(e){return t.box(t.types.trak,t.tkhd(e.id,e.duration,e.width,e.height),t.mdiaMP4(e))}},{key:"mdiaMP4",value:function(e){return t.box(t.types.mdia,t.mdhd(e.duration,e.timescale),t.hdlr(e.type),t.minfMP4(e))}},{key:"minfMP4",value:function(e){return t.box(t.types.minf,e.type===Ua.VIDEO?t.VMHD:t.SMHD,t.DINF,t.stblMP4(e))}},{key:"stblMP4",value:function(e){var r=e.ext,n=[t.stsd(e),t.stts(r.stts),t.stsc(r.stsc),t.stsz(r.stsz),t.stco(r.stco)];return r.stss.length&&n.push(t.stss(r.stss)),r.ctts.length&&n.push(t.ctts(r.ctts)),t.box.apply(t,[t.types.stbl].concat(n))}},{key:"stts",value:function(e){var r=e.length,n=new Uint8Array(8*r),i=0;return e.forEach((function(t){var e=t.value,r=t.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,e>>24,e>>16&255,e>>8&255,255&e],i),i+=8})),t.box(t.types.stts,Fd(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsc",value:function(e){var r=e.length,n=new Uint8Array(12*r),i=0;return e.forEach((function(t){var e=t.firstChunk,r=t.samplesPerChunk,a=t.sampleDescIndex;n.set([e>>24,e>>16&255,e>>8&255,255&e,r>>24,r>>16&255,r>>8&255,255&r,a>>24,a>>16&255,a>>8&255,255&a],i),i+=12})),t.box(t.types.stsc,Fd(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsz",value:function(e){var r=e.length,n=new Uint8Array(4*r),i=0;return e.forEach((function(t){n.set([t>>24,t>>16&255,t>>8&255,255&t],i),i+=4})),t.box(t.types.stsz,Fd(new Uint8Array([0,0,0,0,0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stco",value:function(e){var r=e.length,n=new Uint8Array(4*r),i=0;return e.forEach((function(t){n.set([t>>24,t>>16&255,t>>8&255,255&t],i),i+=4})),t.box(t.types.stco,Fd(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stss",value:function(e){var r=e.length,n=new Uint8Array(4*r),i=0;return e.forEach((function(t){n.set([t>>24,t>>16&255,t>>8&255,255&t],i),i+=4})),t.box(t.types.stss,Fd(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"ctts",value:function(e){var r=e.length,n=new Uint8Array(8*r),i=0;return e.forEach((function(t){var e=t.value,r=t.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,e>>24,e>>16&255,e>>8&255,255&e],i),i+=8})),t.box(t.types.ctts,Fd(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}}]),t}();ha(by,"types",["avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trun","trex","tkhd","vmhd","smhd","ctts","stss"].reduce((function(t,e){return t[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)],t}),Object.create(null))),ha(by,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),ha(by,"FTYPAVC1",by.box(by.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),ha(by,"FTYPHEV1",by.box(by.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),ha(by,"DINF",by.box(by.types.dinf,by.box(by.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),ha(by,"VMHD",by.box(by.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),ha(by,"SMHD",by.box(by.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),ha(by,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),ha(by,"STTS",by.box(by.types.stts,by.StblTable)),ha(by,"STSC",by.box(by.types.stsc,by.StblTable)),ha(by,"STSZ",by.box(by.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),ha(by,"STCO",by.box(by.types.stco,by.StblTable));var _y=function(){function t(e,r){pa(this,t),this.videoTrack=e,this.audioTrack=r}return ya(t,[{key:"remux",value:function(){var t,e,r,n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.videoTrack,o=this.audioTrack,s=a.exist(),u=o.exist();return a.duration=a.duration||4294967295,o.duration=o.duration||4294967295,i&&(s&&(t=by.initSegment([this.videoTrack])),u&&(e=by.initSegment([this.audioTrack]))),s&&a.hasSample()&&(r=this._remuxVideo()),u&&o.hasSample()&&(n=this._remuxAudio()),a.samples=[],o.samples=[],{videoInitSegment:t,audioInitSegment:e,videoSegment:r,audioSegment:n}}},{key:"_remuxVideo",value:function(){var t=this.videoTrack,e=t.samples,r=0;e.forEach((function(t){r+=t.units.reduce((function(t,e){return t+e.byteLength}),0),r+=4*t.units.length}));for(var n,i=new Uint8Array(r),a=new DataView(i.buffer),o=function(t,r,o,s){s=e[t];var u=0;s.units.forEach((function(t){a.setUint32(o,t.byteLength),o+=4,i.set(t,o),o+=t.byteLength,u+=4+t.byteLength})),s.size=u,c=o,n=s},s=0,u=e.length,c=0;s<u;s++)o(s,0,c,n);return Fd(by.moof(this.videoTrack.sequenceNumber++,[t]),by.mdat(i))}},{key:"_remuxAudio",value:function(){var t=this.audioTrack,e=by.moof(this.audioTrack.sequenceNumber++,[t]),r=new Uint8Array(t.samples.reduce((function(t,e){return t+e.size}),0));return t.samples.reduce((function(t,e){return r.set(e.data,t),t+e.size}),0),Fd(e,by.mdat(r))}}]),t}(),ky=function(){function t(e,r){pa(this,t),this.videoTrack=e,this.audioTrack=r}return ya(t,[{key:"remux",value:function(t,e){this.videoTrack=t||this.videoTrack,this.audioTrack=e||this.audioTrack;var r,n,i=(null==t?void 0:t.exist())&&(null==t?void 0:t.hasSample()),a=(null==e?void 0:e.exist())&&(null==e?void 0:e.hasSample());return i&&a?r=this._remuxMix(t,e):i?r=this._remuxTrack(t):a&&(n=this._remuxTrack(e)),t&&(t.samples=[]),e&&(e.samples=[]),{videoSegment:r,audioSegment:n}}},{key:"_remuxMix",value:function(t,e){var r=by.ftyp([t,e]),n=this._remuxData(t,r.byteLength+8),i=n.mdatData,a=n.chunkOffset,o=this._remuxData(e,a).mdatData,s=by.mdat(Fd(i,o)),u=by.moovMP4([t,e]);return t.ext=void 0,e.ext=void 0,t.samples=[],e.samples=[],Fd(r,s,u)}},{key:"_remuxTrack",value:function(t){var e=by.ftyp([t]),r=this._remuxData(t,e.byteLength+8).mdatData,n=by.mdat(r),i=by.moovMP4([t]);return t.ext=void 0,t.samples=[],Fd(e,n,i)}},{key:"_remuxData",value:function(t,e){var r=t.type===Ua.VIDEO,n=t.samples,i=0;r?n.forEach((function(t){i+=t.units.reduce((function(t,e){return t+e.byteLength}),0),i+=4*t.units.length})):i=n.reduce((function(t,e){return t+e.size}),0);for(var a,o=new Uint8Array(i),s=new DataView(o.buffer),u=t.ext={stts:[],stsc:[],stsz:[],stco:[],stss:[],ctts:[]},c=0,f=0,l=n.length,h=0;h<l;h++){f+=(a=n[h]).duration;var p=r?0:a.size;r?a.units.forEach((function(t){s.setUint32(c,t.byteLength),c+=4,o.set(t,c),c+=t.byteLength,p+=4+t.byteLength})):(o.set(a.data,c),c+=p),a.size=p,u.stsz.push(p),r&&this._fillCttsSamples(u.ctts,a.cts),this._fillSttsSamples(u.stts,a,n[h+1]),this._fillStcoSamples(u.stco,h,1,e),e+=p,r&&a.keyframe&&u.stss.push(h+1)}return t.duration=f,this._fillStscSamples(u.stsc,l,1),{mdatData:o,chunkOffset:e}}},{key:"_fillSttsSamples",value:function(t,e,r){var n=t[t.length-1];r?n&&n.value===e.duration?n.count++:t.push({value:e.duration,count:1}):n?n.count++:t.push({value:40,count:1})}},{key:"_fillCttsSamples",value:function(t,e){var r=t[t.length-1];r&&r.value===e?r.count++:t.push({value:e,count:1})}},{key:"_fillStcoSamples",value:function(t,e,r,n){e%r||t.push(n)}},{key:"_fillStscSamples",value:function(t,e,r){if(e<=r)t.push({firstChunk:1,samplesPerChunk:e,sampleDescIndex:1});else{var n=Math.floor(e/r),i=e%r;t.push({firstChunk:1,samplesPerChunk:r,sampleDescIndex:1}),i&&t.push({firstChunk:n+1,samplesPerChunk:i,sampleDescIndex:1})}}}]),t}(),Ay=Object.freeze({__proto__:null,FMP4Remuxer:_y,MP4Remuxer:ky,MP4Parser:function t(){pa(this,t)}});function wy(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 Ty(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wy(Object(r),!0).forEach((function(e){ha(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}return Ty(Ty(Ty(Ty(Ty({},ty),ly),Ay),po),{},{Logger:_d})}));
2
+ //# sourceMappingURL=index.min.js.map