UNPKG

cloudhub-rts-web-puller

Version:

CloudHubRts WebPuller JSSDK

1 lines 794 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CloudHubRtsWebPlayer=t():e.CloudHubRtsWebPlayer=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=650)}([function(e,t,r){var n=r(234),i=r(424);function o(t){return e.exports=o="function"==typeof n&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(254);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),n(e,i.key,i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),n(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){e.exports=r(365)},function(e,t,r){e.exports=r(350)},function(e,t,r){e.exports=r(493)},function(e,t,r){e.exports=r(429)},function(e,t,r){e.exports=r(347)},function(e,t,r){e.exports=r(275)},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(269))},function(e,t,r){var n=r(254);e.exports=function(e,t,r){return t in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(269))},function(e,t,r){var n=r(352),i=r(578);function o(t){return e.exports=o=n?i:function(e){return e.__proto__||i(e)},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(372);function i(e,t,r,i,o,a,s){try{var u=e[a](s),c=u.value}catch(e){return void r(e)}u.done?t(c):n.resolve(c).then(i,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new n((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){e.exports=r(434)},function(e,t,r){var n=r(246),i=r(91),o=r(492);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){e.exports=r(449)},function(e,t,r){"use strict";var n=r(11),i=r(116),o=r(22),a=r(38),s=r(117).f,u=r(272),c=r(28),l=r(108),d=r(109),h=r(47),f=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return i(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,i,p,v,m,_,g,A,y=e.target,b=e.global,S=e.stat,k=e.proto,w=b?n:S?n[y]:(n[y]||{}).prototype,C=b?c:c[y]||d(c,y,{})[y],T=C.prototype;for(p in t)r=!u(b?p:y+(S?".":"#")+p,e.forced)&&w&&h(w,p),m=C[p],r&&(_=e.noTargetGet?(A=s(w,p))&&A.value:w[p]),v=r&&_?_:t[p],r&&typeof m==typeof v||(g=e.bind&&r?l(v,n):e.wrap&&r?f(v):k&&a(v)?o(v):v,(e.sham||v&&v.sham||m&&m.sham)&&d(g,"sham",!0),d(C,p,g),k&&(h(c,i=y+"Prototype")||d(c,i,{}),d(c[i],p,v),e.real&&T&&!T[p]&&d(T,p,v)))}},function(e,t,r){var n=r(195),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t,r){e.exports=r(448)},function(e,t,r){e.exports=r(298)},function(e,t,r){e.exports=r(445)},function(e,t,r){var n=r(157),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){e.exports=r(325)},function(e,t,r){var n=r(572),i=r(254),o=r(351);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),i(e,"prototype",{writable:!1}),t&&o(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(0).default,i=r(100);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,r){"use strict";var n,i,o,a=r(256),s=r(54),u=r(9),c=r(36),l=r(87),d=r(55),h=r(148),f=r(173),p=r(112),v=r(91),m=r(56).f,_=r(103),g=r(208),A=r(150),y=r(39),b=r(198),S=u.Int8Array,k=S&&S.prototype,w=u.Uint8ClampedArray,C=w&&w.prototype,T=S&&g(S),E=k&&g(k),P=Object.prototype,x=u.TypeError,I=y("toStringTag"),R=b("TYPED_ARRAY_TAG"),M=b("TYPED_ARRAY_CONSTRUCTOR"),B=a&&!!A&&"Opera"!==h(u.opera),D=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O={BigInt64Array:8,BigUint64Array:8},U=function(e){if(!l(e))return!1;var t=h(e);return d(L,t)||d(O,t)};for(n in L)(o=(i=u[n])&&i.prototype)?p(o,M,i):B=!1;for(n in O)(o=(i=u[n])&&i.prototype)&&p(o,M,i);if((!B||!c(T)||T===Function.prototype)&&(T=function(){throw x("Incorrect invocation")},B))for(n in L)u[n]&&A(u[n],T);if((!B||!E||E===P)&&(E=T.prototype,B))for(n in L)u[n]&&A(u[n].prototype,E);if(B&&g(C)!==E&&A(C,E),s&&!d(E,I))for(n in D=!0,m(E,I,{get:function(){return l(this)?this[R]:void 0}}),L)u[n]&&p(u[n],R,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_CONSTRUCTOR:M,TYPED_ARRAY_TAG:D&&R,aTypedArray:function(e){if(U(e))return e;throw x("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!A||_(T,e)))return e;throw x(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var i in L){var o=u[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}E[e]&&!r||v(E,e,r?t:B&&k[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(s){if(A){if(r)for(n in L)if((i=u[n])&&d(i,e))try{delete i[e]}catch(e){}if(T[e]&&!r)return;try{return v(T,e,r?t:B&&T[e]||t)}catch(e){}}for(n in L)!(i=u[n])||i[e]&&!r||v(i,e,t)}},isView:function(e){if(!l(e))return!1;var t=h(e);return"DataView"===t||d(L,t)||d(O,t)},isTypedArray:U,TypedArray:T,TypedArrayPrototype:E}},function(e,t,r){e.exports=r(462)},function(e,t,r){var n=r(11),i=r(222),o=r(47),a=r(186),s=r(220),u=r(270),c=i("wks"),l=n.Symbol,d=l&&l.for,h=u?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(l,e)?c[e]=l[e]:c[e]=u&&d?d(t):h(t)}return c[e]}},function(e,t,r){e.exports=r(465)},function(e,t,r){e.exports=r(322)},function(e,t,r){e.exports=r(469)},function(e,t,r){e.exports=r(516)},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){e.exports=r(324)},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(9),i=r(197),o=r(55),a=r(198),s=r(239),u=r(307),c=i("wks"),l=n.Symbol,d=l&&l.for,h=u?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(l,e)?c[e]=l[e]:c[e]=u&&d?d(t):h(t)}return c[e]}},function(e,t,r){var n=r(18),i=r(91),o=Date.prototype,a=n(o.toString),s=n(o.getTime);"Invalid Date"!=String(new Date(NaN))&&i(o,"toString",(function(){var e=s(this);return e==e?a(this):"Invalid Date"}))},function(e,t,r){var n=r(28),i=r(47),o=r(236),a=r(89).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,r){e.exports=r(441)},function(e,t,r){e.exports=r(430)},function(e,t,r){var n=r(38);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){var n=r(22);e.exports=n({}.isPrototypeOf)},function(e,t,r){var n=r(27);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(22),i=r(97),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,r){"use strict";var n=r(92),i=r(203);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,r){var n=r(195),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,r){var n=r(9),i=r(87),o=n.String,a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},function(e,t,r){"use strict";var n=r(110),i=r(530),o=r(176),a=r(126),s=r(56).f,u=r(531),c=r(146),l=r(54),d=a.set,h=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var f=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(e){}},function(e,t,r){"use strict";var n=r(92),i=r(18),o=r(23),a=r(209),s=r(50),u=r(147),c=r(113),l=r(204),d=a.ArrayBuffer,h=a.DataView,f=h.prototype,p=i(d.prototype.slice),v=i(f.getUint8),m=i(f.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var r=s(this).byteLength,n=u(e,r),i=u(void 0===t?r:t,r),o=new(l(this,d))(c(i-n)),a=new h(this),f=new h(o),_=0;n<i;)m(f,_++,v(a,n++));return o}})},function(e,t,r){e.exports=r(479)},function(e,t,r){var n=r(23);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(18),i=r(104),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,r){var n=r(9),i=r(54),o=r(308),a=r(309),s=r(50),u=r(171),c=n.TypeError,l=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,r){if(s(e),t=u(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=d(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(s(e),t=u(t),s(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(54),i=r(174).EXISTS,o=r(18),a=r(56).f,s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);n&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(18),i=r(29),o=n(r(539)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(114).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(49),o=r(340),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(e){var t=arguments.length;return i(o,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(114).filter,o=r(540),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},function(e,t,r){"use strict";var n=r(29),i=r(114).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(114).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(114).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(244).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(244).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(23),o=r(18),a=r(29),s=r(51),u=r(39)("iterator"),c=n.Uint8Array,l=o(s.values),d=o(s.keys),h=o(s.entries),f=a.aTypedArray,p=a.exportTypedArrayMethod,v=c&&c.prototype,m=!i((function(){v[u].call([1])})),_=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,g=function(){return l(f(this))};p("entries",(function(){return h(f(this))}),m),p("keys",(function(){return d(f(this))}),m),p("values",g,m||!_,{name:"values"}),p(u,g,m||!_,{name:"values"})},function(e,t,r){"use strict";var n=r(29),i=r(18),o=n.aTypedArray,a=n.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},function(e,t,r){"use strict";var n=r(29),i=r(136),o=r(542),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,r){"use strict";var n=r(29),i=r(114).map,o=r(210),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},function(e,t,r){"use strict";var n=r(29),i=r(346).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=r(346).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(29),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=i(this).length,r=a(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}))},function(e,t,r){"use strict";var n=r(9),i=r(49),o=r(29),a=r(98),s=r(341),u=r(104),c=r(23),l=n.RangeError,d=n.Int8Array,h=d&&d.prototype,f=h&&h.set,p=o.aTypedArray,v=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),_=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(m)return i(f,this,r,t);var n=this.length,o=a(r),c=0;if(o+t>n)throw l("Wrong length");for(;c<o;)this[t+c]=r[c++]}),!m||_)},function(e,t,r){"use strict";var n=r(29),i=r(210),o=r(23),a=r(211),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(s(this),e,t),n=i(this),o=0,u=r.length,c=new n(u);u>o;)c[o]=r[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(e,t,r){"use strict";var n=r(29),i=r(114).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(9),i=r(18),o=r(23),a=r(134),s=r(543),u=r(29),c=r(544),l=r(545),d=r(240),h=r(546),f=n.Array,p=u.aTypedArray,v=u.exportTypedArrayMethod,m=n.Uint16Array,_=m&&i(m.prototype.sort),g=!(!_||o((function(){_(new m(2),null)}))&&o((function(){_(new m(2),{})}))),A=!!_&&!o((function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var e,t,r=new m(516),n=f(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(_(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));v("sort",(function(e){return void 0!==e&&a(e),A?_(this,e):s(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!A||g)},function(e,t,r){"use strict";var n=r(29),i=r(113),o=r(147),a=r(210),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,u=o(e,n);return new(a(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-u))}))},function(e,t,r){"use strict";var n=r(9),i=r(136),o=r(29),a=r(23),s=r(211),u=n.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!u&&a((function(){d.call(new u(1))}));l("toLocaleString",(function(){return i(d,h?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,r){"use strict";var n=r(29).exportTypedArrayMethod,i=r(23),o=r(9),a=r(18),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=a([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var d=u.toString!=c;n("toString",c,d)},function(e,t,r){var n=r(11),i=r(44),o=n.String,a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},function(e,t,r){r(178)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){e.exports=r(472)},function(e,t,r){e.exports=r(323)},function(e,t,r){e.exports=r(326)},function(e,t,r){var n=r(157),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,r){var n=r(36);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){var n=r(28),i=r(11),o=r(38),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){var n=r(11),i=r(46),o=r(271),a=r(273),s=r(81),u=r(183),c=n.TypeError,l=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,r){if(s(e),t=u(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=d(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(s(e),t=u(t),s(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(28);e.exports=function(e){return n[e+"Prototype"]}},function(e,t,r){var n=r(9),i=r(36),o=r(55),a=r(112),s=r(242),u=r(199),c=r(126),l=r(174).CONFIGURABLE,d=c.get,h=c.enforce,f=String(String).split("String");(e.exports=function(e,t,r,u){var c,d=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,m=u&&void 0!==u.name?u.name:t;i(r)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||l&&r.name!==m)&&a(r,"name",m),(c=h(r)).source||(c.source=f.join("string"==typeof m?m:""))),e!==n?(d?!v&&e[t]&&(p=!0):delete e[t],p?e[t]=r:a(e,t,r)):p?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||u(this)}))},function(e,t,r){var n=r(9),i=r(143).f,o=r(112),a=r(91),s=r(242),u=r(310),c=r(202);e.exports=function(e,t){var r,l,d,h,f,p=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in t){if(h=t[l],d=e.noTargetGet?(f=i(r,l))&&f.value:r[l],!c(v?l:p+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(r,l,h,e)}}},function(e,t,r){var n=r(9),i=r(148),o=n.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,r){e.exports=r(527)},function(e,t,r){var n=r(513),i=r(514),o=r(331),a=r(515);e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(218),i=r(158);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(11),i=r(158),o=n.Object;e.exports=function(e){return o(i(e))}},function(e,t,r){var n=r(113);e.exports=function(e){return n(e.length)}},function(e,t,r){"use strict";var n=r(18),i=r(174).PROPER,o=r(91),a=r(50),s=r(103),u=r(93),c=r(23),l=r(247),d=RegExp.prototype,h=d.toString,f=n(l),p=c((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),v=i&&"toString"!=h.name;(p||v)&&o(RegExp.prototype,"toString",(function(){var e=a(this),t=u(e.source),r=e.flags;return"/"+t+"/"+u(void 0===r&&s(d,e)&&!("flags"in d)?f(e):r)}),{unsafe:!0})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(274);e.exports=function(e){return n(e.length)}},function(e,t,r){var n=r(11),i=r(120),o=n.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,r){var n=r(18);e.exports=n({}.isPrototypeOf)},function(e,t,r){var n=r(9),i=r(111),o=n.Object;e.exports=function(e){return o(i(e))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?n:r)(t)}},function(e,t,r){e.exports=r(437)},function(e,t){e.exports=!0},function(e,t,r){var n=r(22),i=r(119),o=r(157),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(46),i=r(89),o=r(118);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(196),i=r(111);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(9).TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},function(e,t,r){var n=r(54),i=r(56),o=r(144);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(105),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(179),i=r(18),o=r(196),a=r(104),s=r(98),u=r(537),c=i([].push),l=function(e){var t=1==e,r=2==e,i=3==e,l=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,v,m,_){for(var g,A,y=a(p),b=o(y),S=n(v,m),k=s(b),w=0,C=_||u,T=t?C(p,k):r||h?C(p,0):void 0;k>w;w++)if((f||w in b)&&(A=S(g=b[w],w,y),e))if(t)T[w]=A;else if(A)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:c(T,g)}else switch(e){case 4:return!1;case 7:c(T,g)}return d?-1:i||l?l:T}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(2),a=r.n(o),s=function(){function e(){i()(this,e),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return a()(e,[{key:"isComplete",value:function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&e&&t}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,r=this._search(t.times,e);return{index:r,milliseconds:t.times[r],fileposition:t.filepositions[r]}}},{key:"_search",value:function(e,t){var r=0,n=e.length-1,i=0,o=0,a=n;for(t<e[0]&&(r=0,o=a+1);o<=a;){if((i=o+Math.floor((a-o)/2))===n||t>=e[i]&&t<e[i+1]){r=i;break}e[i]<t?o=i+1:a=i-1}return r}}]),e}();t.a=s},function(e,t,r){var n=r(157),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,r){var n=r(46),i=r(86),o=r(217),a=r(118),s=r(96),u=r(183),c=r(47),l=r(271),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(11),i=r(38),o=r(185),a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},function(e,t,r){var n=r(11),i=r(226),o=r(38),a=r(129),s=r(31)("toStringTag"),u=n.Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=u(e),s))?r:c?a(t):"Object"==(n=a(t))&&o(t.callee)?"Arguments":n}},function(e,t,r){var n,i=r(81),o=r(191),a=r(228),s=r(164),u=r(281),c=r(224),l=r(188),d=l("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;v="undefined"!=typeof document?document.domain&&n?p(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):p(n);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=i(e),r=new h,h.prototype=null,r[d]=e):r=v(),void 0===t?r:o.f(r,t)}},function(e,t,r){var n,i,o,a=r(382),s=r(11),u=r(22),c=r(44),l=r(109),d=r(47),h=r(223),f=r(188),p=r(164),v=s.TypeError,m=s.WeakMap;if(a||h.state){var _=h.state||(h.state=new m),g=u(_.get),A=u(_.has),y=u(_.set);n=function(e,t){if(A(_,e))throw new v("Object already initialized");return t.facade=e,y(_,e,t),t},i=function(e){return g(_,e)||{}},o=function(e){return A(_,e)}}else{var b=f("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new v("Object already initialized");return t.facade=e,l(e,b,t),t},i=function(e){return d(e,b)?e[b]:{}},o=function(e){return d(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(109);e.exports=function(e,t,r,i){i&&i.enumerable?e[t]=r:n(e,t,r)}},function(e,t,r){var n=r(226),i=r(89).f,o=r(109),a=r(47),s=r(384),u=r(31)("toStringTag");e.exports=function(e,t,r,c){if(e){var l=r?e:e.prototype;a(l,u)||i(l,u,{configurable:!0,value:t}),c&&!n&&o(l,"toString",s)}}},function(e,t,r){var n=r(9),i=r(36),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},function(e,t,r){var n,i,o,a=r(455),s=r(9),u=r(18),c=r(87),l=r(112),d=r(55),h=r(241),f=r(200),p=r(201),v=s.TypeError,m=s.WeakMap;if(a||h.state){var _=h.state||(h.state=new m),g=u(_.get),A=u(_.has),y=u(_.set);n=function(e,t){if(A(_,e))throw new v("Object already initialized");return t.facade=e,y(_,e,t),t},i=function(e){return g(_,e)||{}},o=function(e){return A(_,e)}}else{var b=f("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new v("Object already initialized");return t.facade=e,l(e,b,t),t},i=function(e){return d(e,b)?e[b]:{}},o=function(e){return d(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(607),i=r(614),o=r(617);function a(){return"undefined"!=typeof Reflect&&n?(e.exports=a=n,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,r){var n=o(e,t);if(n){var a=i(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){e.exports=r(497)},function(e,t,r){var n=r(22),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,r){"use strict";var n=r(96),i=r(284),o=r(141),a=r(122),s=r(89).f,u=r(231),c=r(107),l=r(46),d=a.set,h=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var f=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(e){}},function(e,t,r){r(130);var n=r(393),i=r(11),o=r(120),a=r(109),s=r(141),u=r(31)("toStringTag");for(var c in n){var l=i[c],d=l&&l.prototype;d&&o(d)!==u&&a(d,u,c),s[c]=s.Array}},function(e,t,r){var n=r(18),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,r){var n=r(125);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(9),i=r(36),o=r(173),a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},function(e,t,r){var n=r(311),i=r(245).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(195),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,r){"use strict";const n={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};n.localCName=n.generateIdentifier(),n.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},n.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},n.getDescription=function(e){const t=n.splitSections(e);return t&&t[0]},n.getMediaSections=function(e){const t=n.splitSections(e);return t.shift(),t},n.matchPrefix=function(e,t){return n.splitLines(e).filter(e=>0===e.indexOf(t))},n.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const r={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":r.relatedAddress=t[e+1];break;case"rport":r.relatedPort=parseInt(t[e+1],10);break;case"tcptype":r.tcpType=t[e+1];break;case"ufrag":r.ufrag=t[e+1],r.usernameFragment=t[e+1];break;default:void 0===r[t[e]]&&(r[t[e]]=t[e+1])}return r},n.writeCandidate=function(e){const t=[];t.push(e.foundation);const r=e.component;"rtp"===r?t.push(1):"rtcp"===r?t.push(2):t.push(r),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},n.parseIceOptions=function(e){return e.substr(14).split(" ")},n.parseRtpMap=function(e){let t=e.substr(9).split(" ");const r={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),r.name=t[0],r.clockRate=parseInt(t[1],10),r.channels=3===t.length?parseInt(t[2],10):1,r.numChannels=r.channels,r},n.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const r=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==r?"/"+r:"")+"\r\n"},n.parseExtmap=function(e){const t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},n.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},n.parseFmtp=function(e){const t={};let r;const n=e.substr(e.indexOf(" ")+1).split(";");for(let e=0;e<n.length;e++)r=n[e].trim().split("="),t[r[0].trim()]=r[1];return t},n.writeFmtp=function(e){let t="",r=e.payloadType;if(void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const n=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?n.push(t+"="+e.parameters[t]):n.push(t)}),t+="a=fmtp:"+r+" "+n.join(";")+"\r\n"}return t},n.parseRtcpFb=function(e){const t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},n.writeRtcpFb=function(e){let t="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},n.parseSsrcMedia=function(e){const t=e.indexOf(" "),r={ssrc:parseInt(e.substr(7,t-7),10)},n=e.indexOf(":",t);return n>-1?(r.attribute=e.substr(t+1,n-t-1),r.value=e.substr(n+1)):r.attribute=e.substr(t+1),r},n.parseSsrcGroup=function(e){const t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},n.getMid=function(e){const t=n.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},n.parseFingerprint=function(e){const t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},n.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:n.matchPrefix(e+t,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(e,t){let r="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),r},n.parseCryptoLine=function(e){const t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},n.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?n.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},n.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},n.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},n.getCryptoParameters=function(e,t){return n.matchPrefix(e+t,"a=crypto:").map(n.parseCryptoLine)},n.getIceParameters=function(e,t){const r=n.matchPrefix(e+t,"a=ice-ufrag:")[0],i=n.matchPrefix(e+t,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substr(12),password:i.substr(10)}:null},n.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},n.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=n.splitLines(e)[0].split(" ");for(let i=3;i<r.length;i++){const o=r[i],a=n.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){const r=n.parseRtpMap(a),i=n.matchPrefix(e,"a=fmtp:"+o+" ");switch(r.parameters=i.length?n.parseFmtp(i[0]):{},r.rtcpFeedback=n.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(n.parseRtcpFb),t.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(r.name.toUpperCase())}}}return n.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(n.parseExtmap(e))}),t},n.writeRtpDescription=function(e,t){let r="";r+="m="+e+" ",r+=t.codecs.length>0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=t.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(e=>{r+=n.writeRtpMap(e),r+=n.writeFmtp(e),r+=n.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+="a=maxptime:"+i+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{r+=n.writeExtmap(e)}),r},n.parseRtpEncodingParameters=function(e){const t=[],r=n.parseRtpParameters(e),i=-1!==r.fecMechanisms.indexOf("RED"),o=-1!==r.fecMechanisms.indexOf("ULPFEC"),a=n.matchPrefix(e,"a=ssrc:").map(e=>n.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),s=a.length>0&&a[0].ssrc;let u;const c=n.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substr(17).split(" ").map(e=>parseInt(e,10)));c.length>0&&c[0].length>1&&c[0][0]===s&&(u=c[0][1]),r.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let r={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&u&&(r.rtx={ssrc:u}),t.push(r),i&&(r=JSON.parse(JSON.stringify(r)),r.fec={ssrc:s,mechanism:o?"red+ulpfec":"red"},t.push(r))}}),0===t.length&&s&&t.push({ssrc:s});let l=n.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=l})),t},n.parseRtcpParameters=function(e){const t={},r=n.matchPrefix(e,"a=ssrc:").map(e=>n.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);const i=n.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;const o=n.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},n.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},n.parseMsid=function(e){let t;const r=n.matchPrefix(e,"a=msid:");if(1===r.length)return t=r[0].substr(7).split(" "),{stream:t[0],track:t[1]};const i=n.matchPrefix(e,"a=ssrc:").map(e=>n.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return i.length>0?(t=i[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},n.parseSctpDescription=function(e){const t=n.parseMLine(e),r=n.matchPrefix(e,"a=max-message-size:");let i;r.length>0&&(i=parseInt(r[0].substr(19),10)),isNaN(i)&&(i=65536);const o=n.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:t.fmt,maxMessageSize:i};const a=n.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substr(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},n.writeSctpDescription=function(e,t){let r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},n.generateSessionId=function(){return Math.random().toString().substr(2,21)},n.writeSessionBoilerplate=function(e,t,r){let i;const o=void 0!==t?t:2;i=e||n.generateSessionId();return"v=0\r\no="+(r||"thisisadapterortc")+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},n.getDirection=function(e,t){const r=n.splitLines(e);for(let e=0;e<r.length;e++)switch(r[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[e].substr(2)}return t?n.getDirection(t):"sendrecv"},n.getKind=function(e){return n.splitLines(e)[0].split(" ")[0].substr(2)},n.isRejected=function(e){return"0"===e.split(" ",2)[1]},n.parseMLine=function(e){const t=n.splitLines(e)[0].substr(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},n.parseOLine=function(e){const t=n.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},n.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const t=n.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||"="!==t[e].charAt(1))return!1;return!0},e.exports=n},function(e,t,r){var n=r(129);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){"use strict";var n=r(183),i=r(89),o=r(118);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},function(e,t,r){var n=r(11),i=r(108),o=r(86),a=r(81),s=r(185),u=r(282),c=r(101),l=r(45),d=r(230),h=r(165),f=r(283),p=n.TypeError,v=function(e,t){this.stopped=e,this.result=t},m=v.prototype;e.exports=function(e,t,r){var n,_,g,A,y,b,S,k=r&&r.that,w=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),E=i(t,k),P=function(e){return n&&f(n,"normal",e),new v(!0,e)},x=function(e){return w?(a(e),T?E(e[0],e[1],P):E(e[0],e[1])):T?E(e,P):E(e)};if(C)n=e;else{if(!(_=h(e)))throw p(s(e)+" is not iterable");if(u(_)){for(g=0,A=c(e);A>g;g++)if((y=x(e[g]))&&l(m,y))return y;return new v(!1)}n=d(e,_)}for(b=n.next;!(S=o(b,n)).done;){try{y=x(S.value)}catch(e){f(n,"throw",e)}if("object"==typeof y&&y&&l(m,y))return y}return new v(!1)}},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(297).charAt,i=r(102),o=r(122),a=r(231),s=o.set,u=o.getterFor("String Iterator");a(String,"String",(function(e){s(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=u(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(54),i=r(49),o=r(305),a=r(144),s=r(110),u=r(171),c=r(55),l=r(308),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(134);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},function(e,t){e.exports=!1},function(e,t,r){var n=r(105),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t,r){var n=r(9),i=r(246),o=r(36),a=r(132),s=r(39)("toStringTag"),u=n.Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=u(e),s))?r:c?a(t):"Object"==(n=a(t))&&o(t.callee)?"Arguments":n}},function(e,t,r){var n,i=r(50),o=r(313),a=r(245),s=r(201),u=r(315),c=r(243),l=r(200),d=l("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;v="undefined"!=typeof document?document.domain&&n?p(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):p(n);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=i(e),r=new h,h.prototype=null,r[d]=e):r=v(),void 0===t?r:o.f(r,t)}},function(e,t,r){var n=r(18),i=r(50),o=r(459);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},function(e,t,r){"use strict";var n=r(49),i=r(249),o=r(50),a=r(113),s=r(93),u=r(111),c=r(145),l=r(250),d=r(251);i("match",(function(e,t,r){return[function(t){var r=u(this),i=null==t?void 0:c(t,e);return i?n(i,t,r):new RegExp(t)[e](s(r))},function(e){var n=o(this),i=s(e),u=r(t,n,i);if(u.done)return u.value;if(!n.global)return d(n,i);var c=n.unicode;n.lastIndex=0;for(var h,f=[],p=0;null!==(h=d(n,i));){var v=s(h[0]);f[p]=v,""===v&&(n.lastIndex=l(i,a(n.lastIndex),c)),p++}return 0===p?null:f}]}))},function(e,t,r){"use strict";var n=r(92),i=r(9),o=r(209),a=r(206),s=o.ArrayBuffer;n({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},function(e,t,r){var n=r(503),i=r(506),o=r(331),a=r(512);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(2),a=r.n(o),s=(r(51),r(52),r(15),r(82),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(69),r(70),r(71),r(72),r(73),r(74),r(75),r(76),r(77),r(78),r(79),r(80),r(40),r(99),r(355),r(212),function(){function e(t){i()(this,e),this.TAG="ExpGolomb",this._buffer=t,this._buffer_index=0,this._total_bytes=t.byteLength,this._total_bits=8*t.byteLength,this._current_word=0,this._current_word_bits_left=0}return a()(e,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var e=this._total_bytes-this._buffer_index,t=Math.min(4,e),r=new Uint8Array(4);r.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(r.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t}},{key:"readBits",value:function(e){if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var r=this._current_word_bits_left?this._current_word:0;r>>>=32-this._current_word_bits_left;var n=e-this._current_word_bits_left;this._fillCurrentWord();var i=Math.min(n,this._current_word_bits_left),o=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,r=r<<i|o}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var e;for(e=0;e<this._current_word_bits_left;e++)if(0!=(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),e}()),u=function(){function e(){i()(this,e)}return a()(e,null,[{key:"_ebsp2rbsp",value:function(e){for(var t=e,r=t.byteLength,n=new Uint8Array(r),i=0,o=0;o<r;o++)o>=2&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(n[i]=t[o],i++);return new Uint8Array(n.buffer,0,i)}},{key:"parseSPS",value:function(t){for(var r=t.subarray(1,4),n="avc1.",i=0;i<3;i++){var o=r[i].toString(16);o.length<2&&(o="0"+o),n+=o}var a=e._ebsp2rbsp(t),u=new s(a);u.readByte();var c=u.readByte();u.readByte();var l=u.readByte();u.readUEG();var d=e.getProfileString(c),h=e.getLevelString(l),f=1,p=420,v=8,m=8;if((100===c||110===c||122===c||244===c||44===c||83===c||86===c||118===c||128===c||138===c||144===c)&&(3===(f=u.readUEG())&&u.readBits(1),f<=3&&(p=[0,420,422,444][f]),v=u.readUEG()+8,m=u.readUEG()+8,u.readBits(1),u.readBool()))for(var _=3!==f?8:12,g=0;g<_;g++)u.readBool()&&(g<6?e._skipScalingList(u,16):e._skipScalingList(u,64));u.readUEG();var A=u.readUEG();if(0===A)u.readUEG();else if(1===A){u.readBits(1),u.readSEG(),u.readSEG();for(var y=u.readUEG(),b=0;b<y;b++)u.readSEG()}var S=u.readUEG();u.readBits(1);var k=u.readUEG(),w=u.readUEG(),C=u.readBits(1);0===C&&u.readBits(1),u.readBits(1);var T=0,E=0,P=0,x=0;u.readBool()&&(T=u.readUEG(),E=u.readUEG(),P=u.readUEG(),x=u.readUEG());var I=1,R=1,M=0,B=!0,D=0,L=0;if(u.readBool()){if(u.readBool()){var O=u.readByte();O>0&&O<16?(I=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][O-1],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][O-1]):255===O&&(I=u.readByte()<<8|u.readByte(),R=u.readByte()<<8|u.readByte())}if(u.readBool()&&u.readBool(),u.readBool()&&(u.readBits(4),u.readBool()&&u.readBits(24)),u.readBool()&&(u.readUEG(),u.readUEG()),u.readBool()){var U=u.readBits(32),N=u.readBits(32);B=u.readBool(),M=(D=N)/(L=2*U)}}var F=1;1===I&&1===R||(F=I/R);var V=0,j=0;0===f?(V=1,j=2-C):(V=3===f?1:2,j=(1===f?2:1)*(2-C));var G=16*(k+1),W=16*(w+1)*(2-C);G-=(T+E)*V,W-=(P+x)*j;var H=Math.ceil(G*F);return u.destroy(),u=null,{codec_mimetype:n,profile_idc:c,level_idc:l,profile_string:d,level_string:h,chroma_format_idc:f,bit_depth:v,bit_depth_luma:v,bit_depth_chroma:m,ref_frames:S,chroma_format:p,chroma_format_string:e.getChromaFormatString(p),frame_rate:{fixed:B,fps:M,fps_den:L,fps_num:D},sar_ratio:{width:I,height:R},codec_size:{width:G,height:W},present_size:{width:H,height:W}}}},{key:"parseHevcVps",value:function(t){var r=e._ebsp2rbsp(t),n=new s(r),i=n.readBits(4);return n.readUEG(1),n.readUEG(1),{vps_video_parameter_set_id:i,vps_max_layers_minus1:n.readBits(6),vps_max_sub_layers_minus1:n.readBits(3)}}},{key:"parseHevcPp