@zoom/videosdk
Version:
Zoom Web Video SDK
1 lines • 803 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};function t(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function r(e,t){var o,r,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,r=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}function i(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s}function s(e,t){for(var o=0,r=t.length,i=e.length;o<r;o++,i++)e[i]=t[o];return e}function a(e){return this instanceof a?(this.v=e,this):new a(e)}function d(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=i(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(t){return new Promise((function(r,i){!function(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}(r,i,(t=e[o](t)).done,t.value)}))}}}function u(e){return"function"==typeof e}function c(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var l=c((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function p(e,t){if(e){var o=e.indexOf(t);0<=o&&e.splice(o,1)}}var h=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,o,r,a;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var c=i(d),p=c.next();!p.done;p=c.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else d.remove(this);var h=this.initialTeardown;if(u(h))try{h()}catch(e){a=e instanceof l?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=i(m),S=g.next();!S.done;S=g.next()){var y=S.value;try{v(y)}catch(e){a=null!=a?a:[],e instanceof l?a=s(s([],n(a)),n(e.errors)):a.push(e)}}}catch(e){o={error:e}}finally{try{S&&!S.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}}if(a)throw new l(a)}},e.prototype.add=function(t){var o;if(t&&t!==this)if(this.closed)v(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(o=this._finalizers)&&void 0!==o?o:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&p(t,e)},e.prototype.remove=function(t){var o=this._finalizers;o&&p(o,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),m=h.EMPTY;function g(e){return e instanceof h||e&&"closed"in e&&u(e.remove)&&u(e.add)&&u(e.unsubscribe)}function v(e){u(e)?e():e.unsubscribe()}var S=void 0;function y(e){!function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];setTimeout.apply(void 0,s([e,t],n(o)))}((function(){throw e}))}function f(){}function E(e){e()}var I=function(e){function o(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,g(t)&&t.add(o)):o.destination=b,o}return t(o,e),o.create=function(e,t,o){return new C(e,t,o)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},o}(h),A=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){_(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){_(e)}else _(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){_(e)}},e}(),C=function(e){function o(t,o,r){var i,n=e.call(this)||this;return i=u(t)||!t?{next:null!=t?t:void 0,error:null!=o?o:void 0,complete:null!=r?r:void 0}:t,n.destination=new A(i),n}return t(o,e),o}(I);function _(e){y(e)}var b={closed:!0,next:f,error:function(e){throw e},complete:f},R="function"==typeof Symbol&&Symbol.observable||"@@observable";function T(e){return e}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D(e)}function D(e){return 0===e.length?T:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var w=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var o=new e;return o.source=this,o.operator=t,o},e.prototype.subscribe=function(e,t,o){var r,i=this,n=(r=e)&&r instanceof I||function(e){return e&&u(e.next)&&u(e.error)&&u(e.complete)}(r)&&g(r)?e:new C(e,t,o);return E((function(){var e=i,t=e.operator,o=e.source;n.add(t?t.call(n,o):o?i._subscribe(n):i._trySubscribe(n))})),n},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var o=this;return new(t=M(t))((function(t,r){var i=new C({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});o.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[R]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=M(e))((function(e,o){var r;t.subscribe((function(e){return r=e}),(function(e){return o(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function M(e){var t;return null!==(t=null!=e?e:S)&&void 0!==t?t:Promise}function N(e){return function(t){if(function(e){return u(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function P(e,t,o,r,i){return new k(e,t,o,r,i)}var L,k=function(e){function o(t,o,r,i,n,s){var a=e.call(this,t)||this;return a.onFinalize=n,a.shouldUnsubscribe=s,a._next=o?function(e){try{o(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t(o,e),o.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},o}(I),V=c((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),U=function(e){function o(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t(o,e),o.prototype.lift=function(e){var t=new B(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new V},o.prototype.next=function(e){var t=this;E((function(){var o,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=i(t.currentObservers),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}}}))},o.prototype.error=function(e){var t=this;E((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var o=t.observers;o.length;)o.shift().error(e)}}))},o.prototype.complete=function(){var e=this;E((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,o=this,r=o.hasError,i=o.isStopped,n=o.observers;return r||i?m:(this.currentObservers=null,n.push(e),new h((function(){t.currentObservers=null,p(n,e)})))},o.prototype._checkFinalizedStatuses=function(e){var t=this,o=t.hasError,r=t.thrownError,i=t.isStopped;o?e.error(r):i&&e.complete()},o.prototype.asObservable=function(){var e=new w;return e.source=this,e},o.create=function(e,t){return new B(e,t)},o}(w),B=function(e){function o(t,o){var r=e.call(this)||this;return r.destination=t,r.source=o,r}return t(o,e),o.prototype.next=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===o||o.call(t,e)},o.prototype.error=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===o||o.call(t,e)},o.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},o.prototype._subscribe=function(e){var t,o;return null!==(o=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==o?o:m},o}(U),j=function(e){function o(t){var o=e.call(this)||this;return o._value=t,o}return t(o,e),Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),o.prototype._subscribe=function(t){var o=e.prototype._subscribe.call(this,t);return!o.closed&&t.next(this._value),o},o.prototype.getValue=function(){var e=this,t=e.hasError,o=e.thrownError,r=e._value;if(t)throw o;return this._throwIfClosed(),r},o.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},o}(U),H=function(){return Date.now()},x=function(e){function o(t,o){return e.call(this)||this}return t(o,e),o.prototype.schedule=function(e,t){return this},o}(h),F=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r.pending=!1,r}return t(o,e),o.prototype.schedule=function(e,t){var o;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(o=this.id)&&void 0!==o?o:this.requestAsyncId(i,this.id,t),this},o.prototype.requestAsyncId=function(e,t,o){return void 0===o&&(o=0),function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return setInterval.apply(void 0,s([e,t],n(o)))}(e.flush.bind(e,this),o)},o.prototype.recycleAsyncId=function(e,t,o){if(void 0===o&&(o=0),null!=o&&this.delay===o&&!1===this.pending)return t;null!=t&&function(e){clearInterval(e)}(t)},o.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(e,t);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},o.prototype._execute=function(e,t){var o,r=!1;try{this.work(e)}catch(e){r=!0,o=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o},o.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,o=this.scheduler,r=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,p(r,this),null!=t&&(this.id=this.recycleAsyncId(o,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},o}(x),$=1,G={};function W(e){return e in G&&(delete G[e],!0)}var K=function(e){var t=$++;return G[t]=!0,L||(L=Promise.resolve()),L.then((function(){return W(t)&&e()})),t},z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return K.apply(void 0,s([],n(e)))},q=function(e){return function(e){W(e)}(e)},J=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return t(o,e),o.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.actions.push(this),t._scheduled||(t._scheduled=z(t.flush.bind(t,void 0))))},o.prototype.recycleAsyncId=function(t,o,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,o,r);var n=t.actions;null!=o&&(null===(i=n[n.length-1])||void 0===i?void 0:i.id)!==o&&(q(o),t._scheduled===o&&(t._scheduled=void 0))},o}(F),Q=function(){function e(t,o){void 0===o&&(o=e.now),this.schedulerActionCtor=t,this.now=o}return e.prototype.schedule=function(e,t,o){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(o,t)},e.now=H,e}(),Y=function(e){function o(t,o){void 0===o&&(o=Q.now);var r=e.call(this,t,o)||this;return r.actions=[],r._active=!1,r}return t(o,e),o.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var o;this._active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}},o}(Q),Z=new(function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var o,r=this.actions;e=e||r.shift();do{if(o=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw o}},o}(Y))(J),X=new Y(F),ee=X,te=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return t(o,e),o.prototype.schedule=function(t,o){return void 0===o&&(o=0),o>0?e.prototype.schedule.call(this,t,o):(this.delay=o,this.state=t,this.scheduler.flush(this),this)},o.prototype.execute=function(t,o){return o>0||this.closed?e.prototype.execute.call(this,t,o):this._execute(t,o)},o.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.flush(this),0)},o}(F),oe=new(function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o}(Y))(te),re=new w((function(e){return e.complete()}));function ie(e){return e&&u(e.schedule)}function ne(e){return e[e.length-1]}function se(e){return u(ne(e))?e.pop():void 0}function ae(e){return ie(ne(e))?e.pop():void 0}var de=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ue(e){return u(null==e?void 0:e.then)}function ce(e){return u(e[R])}function le(e){return Symbol.asyncIterator&&u(null==e?void 0:e[Symbol.asyncIterator])}function pe(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var he="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function me(e){return u(null==e?void 0:e[he])}function ge(e){return function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=o.apply(e,t||[]),n=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(o,r){n.push([e,t,o,r])>1||d(e,t)}))})}function d(e,t){try{!function(e){e.value instanceof a?Promise.resolve(e.value.v).then(u,c):l(n[0][2],e)}(i[e](t))}catch(e){l(n[0][3],e)}}function u(e){d("next",e)}function c(e){d("throw",e)}function l(e,t){e(t),n.shift(),n.length&&d(n[0][0],n[0][1])}}(this,arguments,(function(){var t,o,i;return r(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,a(t.read())];case 3:return o=r.sent(),i=o.value,o.done?[4,a(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,a(i)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function ve(e){return u(null==e?void 0:e.getReader)}function Se(e){if(e instanceof w)return e;if(null!=e){if(ce(e))return n=e,new w((function(e){var t=n[R]();if(u(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(de(e))return r=e,new w((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(ue(e))return o=e,new w((function(e){o.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,y)}));if(le(e))return ye(e);if(me(e))return t=e,new w((function(e){var o,r;try{for(var n=i(t),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}e.complete()}));if(ve(e))return ye(ge(e))}var t,o,r,n;throw pe(e)}function ye(e){return new w((function(t){(function(e,t){var o,i,n,s;return function(e,t,o,r){return new(o||(o=Promise))((function(t,i){function n(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,u;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=d(e),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=r.sent(),n={error:u},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(s=o.return)?[4,s.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function fe(e,t,o,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var n=t.schedule((function(){o(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(n),!i)return n}function Ee(e,t){return void 0===t&&(t=0),N((function(o,r){o.subscribe(P(r,(function(o){return fe(r,e,(function(){return r.next(o)}),t)}),(function(){return fe(r,e,(function(){return r.complete()}),t)}),(function(o){return fe(r,e,(function(){return r.error(o)}),t)})))}))}function Ie(e,t){return void 0===t&&(t=0),N((function(o,r){r.add(e.schedule((function(){return o.subscribe(r)}),t))}))}function Ae(e,t){if(!e)throw new Error("Iterable cannot be null");return new w((function(o){fe(o,t,(function(){var r=e[Symbol.asyncIterator]();fe(o,t,(function(){r.next().then((function(e){e.done?o.complete():o.next(e.value)}))}),0,!0)}))}))}function Ce(e,t){return t?function(e,t){if(null!=e){if(ce(e))return function(e,t){return Se(e).pipe(Ie(t),Ee(t))}(e,t);if(de(e))return function(e,t){return new w((function(o){var r=0;return t.schedule((function(){r===e.length?o.complete():(o.next(e[r++]),o.closed||this.schedule())}))}))}(e,t);if(ue(e))return function(e,t){return Se(e).pipe(Ie(t),Ee(t))}(e,t);if(le(e))return Ae(e,t);if(me(e))return function(e,t){return new w((function(o){var r;return fe(o,t,(function(){r=e[he](),fe(o,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void o.error(e)}i?o.complete():o.next(t)}),0,!0)})),function(){return u(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(ve(e))return function(e,t){return Ae(ge(e),t)}(e,t)}throw pe(e)}(e,t):Se(e)}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ce(e,ae(e))}function be(e,t){var o=u(e)?e:function(){return e};return new w((function(e){return e.error(o())}))}var Re=c((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Te(e,t){return new Promise((function(t,o){var r,i=!1;e.subscribe({next:function(e){r=e,i=!0},error:o,complete:function(){i?t(r):o(new Re)}})}))}function Oe(e,t){return new Promise((function(t,o){var r=new C({next:function(e){t(e),r.unsubscribe()},error:o,complete:function(){o(new Re)}});e.subscribe(r)}))}function De(e){return e instanceof Date&&!isNaN(e)}var we=c((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function Me(e,t){var o=De(e)?{first:e}:"number"==typeof e?{each:e}:e,r=o.first,i=o.each,n=o.with,s=void 0===n?Ne:n,a=o.scheduler,d=void 0===a?X:a,u=o.meta,c=void 0===u?null:u;if(null==r&&null==i)throw new TypeError("No timeout provided.");return N((function(e,t){var o,n,a=null,u=0,l=function(e){n=fe(t,d,(function(){try{o.unsubscribe(),Se(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}}),e)};o=e.subscribe(P(t,(function(e){null==n||n.unsubscribe(),u++,t.next(a=e),i>0&&l(i)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),a=null}))),!u&&l(null!=r?"number"==typeof r?r:+r-d.now():i)}))}function Ne(e){throw new we(e)}function Pe(e,t){return N((function(o,r){var i=0;o.subscribe(P(r,(function(o){r.next(e.call(t,o,i++))})))}))}var Le=Array.isArray;function ke(e){return Pe((function(t){return function(e,t){return Le(t)?e.apply(void 0,s([],n(t))):e(t)}(e,t)}))}var Ve=Array.isArray,Ue=Object.getPrototypeOf,Be=Object.prototype,je=Object.keys;function He(e,t,o,r,i,n,s,a){var d=[],u=0,c=0,l=!1,p=function(){!l||d.length||u||t.complete()},h=function(e){return u<r?m(e):d.push(e)},m=function(e){n&&t.next(e),u++;var i=!1;Se(o(e,c++)).subscribe(P(t,(function(e){n?h(e):t.next(e)}),(function(){i=!0}),void 0,(function(){if(i)try{for(u--;d.length&&u<r;)void 0,e=d.shift(),s||m(e);p()}catch(e){t.error(e)}var e})))};return e.subscribe(P(t,h,(function(){l=!0,p()}))),function(){}}function xe(e,t,o){return void 0===o&&(o=1/0),u(t)?xe((function(o,r){return Pe((function(e,i){return t(o,e,r,i)}))(Se(e(o,r)))}),o):("number"==typeof t&&(o=t),N((function(t,r){return He(t,r,e,o)})))}function Fe(e){return void 0===e&&(e=1/0),xe(T,e)}function $e(){return Fe(1)}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $e()(Ce(e,ae(e)))}function We(e){return new w((function(t){Se(e()).subscribe(t)}))}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=se(e),r=function(e){if(1===e.length){var t=e[0];if(Ve(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Ue(r)===Be){var o=je(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var r;return{args:e,keys:null}}(e),i=r.args,n=r.keys,s=new w((function(e){var t=i.length;if(t)for(var o=new Array(t),r=t,s=t,a=function(t){var a=!1;Se(i[t]).subscribe(P(e,(function(e){a||(a=!0,s--),o[t]=e}),(function(){return r--}),void 0,(function(){r&&a||(s||e.next(n?function(e,t){return e.reduce((function(e,o,r){return e[o]=t[r],e}),{})}(n,o):o),e.complete())})))},d=0;d<t;d++)a(d);else e.complete()}));return o?s.pipe(ke(o)):s}var ze=["addListener","removeListener"],qe=["addEventListener","removeEventListener"],Je=["on","off"];function Qe(e,t,o,r){if(u(o)&&(r=o,o=void 0),r)return Qe(e,t,o).pipe(ke(r));var i=n(function(e){return u(e.addEventListener)&&u(e.removeEventListener)}(e)?qe.map((function(r){return function(i){return e[r](t,i,o)}})):function(e){return u(e.addListener)&&u(e.removeListener)}(e)?ze.map(Ye(e,t)):function(e){return u(e.on)&&u(e.off)}(e)?Je.map(Ye(e,t)):[],2),s=i[0],a=i[1];if(!s&&de(e))return xe((function(e){return Qe(e,t,o)}))(Se(e));if(!s)throw new TypeError("Invalid event target");return new w((function(e){var t=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.next(1<t.length?t:t[0])};return s(t),function(){return a(t)}}))}function Ye(e,t){return function(o){return function(r){return e[o](t,r)}}}function Ze(e,t,o){return o?Ze(e,t).pipe(ke(o)):new w((function(o){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.next(1===e.length?e[0]:e)},i=e(r);return u(t)?function(){return t(r,i)}:void 0}))}function Xe(e,t,o){void 0===e&&(e=0),void 0===o&&(o=ee);var r=-1;return null!=t&&(ie(t)?o=t:r=t),new w((function(t){var i=De(e)?+e-o.now():e;i<0&&(i=0);var n=0;return o.schedule((function(){t.closed||(t.next(n++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function et(e,t){return void 0===e&&(e=0),void 0===t&&(t=X),e<0&&(e=0),Xe(e,e,t)}function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e),r=function(e){return"number"==typeof ne(e)?e.pop():1/0}(e),i=e;return i.length?1===i.length?Se(i[0]):Fe(r)(Ce(i,o)):re}var ot=new w(f),rt=Array.isArray;function it(e,t){return function(o,r){return!e.call(t,o,r)}}function nt(e,t){return N((function(o,r){var i=0;o.subscribe(P(r,(function(o){return e.call(t,o,i++)&&r.next(o)})))}))}function st(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===(t=1===(e=t).length&&rt(e[0])?e[0]:e).length?Se(t[0]):new w(function(e){return function(t){for(var o=[],r=function(r){o.push(Se(e[r]).subscribe(P(t,(function(e){if(o){for(var i=0;i<o.length;i++)i!==r&&o[i].unsubscribe();o=null}t.next(e)}))))},i=0;o&&!t.closed&&i<e.length;i++)r(i)}}(t))}function at(e){return N((function(t,o){var r,i=null,n=!1;i=t.subscribe(P(o,void 0,void 0,(function(s){r=Se(e(s,at(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(o)):n=!0}))),n&&(i.unsubscribe(),i=null,r.subscribe(o))}))}function dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return N((function(t,r){$e()(Ce(s([t],n(e)),o)).subscribe(r)}))}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dt.apply(void 0,s([],n(e)))}function ct(e){return e<=0?function(){return re}:N((function(t,o){var r=0;t.subscribe(P(o,(function(t){++r<=e&&(o.next(t),e<=r&&o.complete())})))}))}function lt(){return N((function(e,t){e.subscribe(P(t,f))}))}function pt(e){return Pe((function(){return e}))}function ht(e,t){return xe((function(t,o){return Se(e(t,o)).pipe(ct(1),pt(t))}))}function mt(e,t){void 0===t&&(t=X);var o=Xe(e,t);return ht((function(){return o}))}function gt(e,t,o){return void 0===o&&(o=1/0),u(t)?xe((function(){return e}),t,o):xe((function(){return e}),o)}function vt(e,t){return N(function(e,t,o){return function(r,i){var n=o,s=t,a=0;r.subscribe(P(i,(function(t){var o=a++;s=n?e(s,t,o):(n=!0,t),i.next(s)}),undefined))}}(e,t,arguments.length>=2))}function St(e){return N((function(t,o){var r=!1,i=0;t.subscribe(P(o,(function(t){return(r||(r=!e(t,i++)))&&o.next(t)})))}))}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return N((function(t,r){(o?Ge(e,t,o):Ge(e,t)).subscribe(r)}))}function ft(e,t){return N((function(o,r){var i=null,n=0,s=!1,a=function(){return s&&!i&&r.complete()};o.subscribe(P(r,(function(o){null==i||i.unsubscribe();var s=0,d=n++;Se(e(o,d)).subscribe(i=P(r,(function(e){return r.next(t?t(o,e,d,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function Et(e){return N((function(t,o){Se(e).subscribe(P(o,(function(){return o.complete()}),f)),!o.closed&&t.subscribe(o)}))}function It(e,t){return void 0===t&&(t=!1),N((function(o,r){var i=0;o.subscribe(P(r,(function(o){var n=e(o,i++);(n||t)&&r.next(o),!n&&r.complete()})))}))}function At(e,t,o){var r=u(e)||t||o?{next:e,error:t,complete:o}:e;return r?N((function(e,t){var o;null===(o=r.subscribe)||void 0===o||o.call(r);var i=!0;e.subscribe(P(t,(function(e){var o;null===(o=r.next)||void 0===o||o.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var o;i=!1,null===(o=r.error)||void 0===o||o.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):T}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=se(e);return N((function(t,r){for(var i=e.length,a=new Array(i),d=e.map((function(){return!1})),u=!1,c=function(t){Se(e[t]).subscribe(P(r,(function(e){a[t]=e,u||d[t]||(d[t]=!0,(u=d.every(T))&&(d=null))}),f))},l=0;l<i;l++)c(l);t.subscribe(P(r,(function(e){if(u){var t=s([e],n(a));r.next(o?o.apply(void 0,s([],n(t))):t)}})))}))}function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function bt(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_t(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Rt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function Tt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(o),!0).forEach((function(t){bt(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dt="function"==typeof Symbol&&Symbol.observable||"@@observable",wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mt={INIT:"@@redux/INIT"+wt(),REPLACE:"@@redux/REPLACE"+wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wt()}};function Nt(e,t,o){var r;if("function"==typeof t&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Ot(0));if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Ot(1));return o(Nt)(e,t)}if("function"!=typeof e)throw new Error(Ot(2));var i=e,n=t,s=[],a=s,d=!1;function u(){a===s&&(a=s.slice())}function c(){if(d)throw new Error(Ot(3));return n}function l(e){if("function"!=typeof e)throw new Error(Ot(4));if(d)throw new Error(Ot(5));var t=!0;return u(),a.push(e),function(){if(t){if(d)throw new Error(Ot(6));t=!1,u();var o=a.indexOf(e);a.splice(o,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ot(7));if(void 0===e.type)throw new Error(Ot(8));if(d)throw new Error(Ot(9));try{d=!0,n=i(n,e)}finally{d=!1}for(var t=s=a,o=0;o<t.length;o++)(0,t[o])();return e}return p({type:Mt.INIT}),(r={dispatch:p,subscribe:l,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ot(10));i=e,p({type:Mt.REPLACE})}})[Dt]=function(){var e,t=l;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ot(11));function o(){e.next&&e.next(c())}return o(),{unsubscribe:t(o)}}})[Dt]=function(){return this},e},r}function Pt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Lt=function(e){function o(t,o){var r=e.call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t}))||this;return r.__notifier=new U,r.value=o,t.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return t(o,e),o}(w),kt=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function Vt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.length;return nt(1===o?function(t){return kt(t.type,e[0])}:function(t){for(var r=0;r<o;r++)if(kt(t.type,e[r]))return!0;return!1})}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Bt(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function jt(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}("object"===("undefined"==typeof global?"undefined":Ut(global))&&global?global:"undefined"!=typeof window?window:{}).DeepDiff,Bt((function e(t,o,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),jt),Bt((function e(t,o){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:o,enumerable:!0})}),jt),Bt((function e(t,o){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0})}),jt),Bt((function e(t,o,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:o,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),jt);var Ht,xt,Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt=(xt||(xt=1,Ht=function(e,t,o,r,i,n,s,a){if(!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,n,s,a],c=0;(d=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}),Ht),Wt=$t(Gt),Kt=function(e){return"function"==typeof e},zt=function(e){return e.toString()},qt=function(e){return"string"==typeof e},Jt="||",Qt=function(e){return e},Yt=function(e){return null===e};function Zt(e,t,o){void 0===t&&(t=Qt),Wt(Kt(t)||Yt(t),"Expected payloadCreator to be a function, undefined or null");var r=Yt(t)||t===Qt?Qt:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},i=Kt(o),n=e.toString(),s=function(){var t=r.apply(void 0,arguments),n={type:e};return t instanceof Error&&(n.error=!0),void 0!==t&&(n.payload=t),i&&(n.meta=o.apply(void 0,arguments)),n};return s.toString=function(){return n},s}var Xt,eo,to,oo,ro,io,no=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},so=function(e){return Array.isArray(e)},ao=function(e){return null==e};var uo=$t(function(){if(io)return ro;io=1;var e=function(){if(oo)return to;oo=1;var e=function(){if(eo)return Xt;eo=1,Xt=function(n){return e.test(n)?n.toLowerCase():t.test(n)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(n)||n).toLowerCase():o.test(n)?function(e){return e.replace(i,(function(e,t,o){return t+" "+o.toLowerCase().split("").join(" ")}))}(n).toLowerCase():n.toLowerCase()};var e=/\s/,t=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,i=/(.)([A-Z]+)/g;return Xt}();return to=function(t){return e(t).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}();return ro=function(t){return e(t).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}}()),co=function(e){return-1===e.indexOf("/")?uo(e):e.split("/").map(uo).join("/")},lo=function(e,t){return e.reduce((function(e,o){return t(e,o)}),{})},po=function(e){return"undefined"!=typeof Map&&e instanceof Map};function ho(e){if(po(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function mo(e,t){return po(t)?t.get(e):t[e]}var go=function(e){return function t(o,r,i,n){var s=void 0===r?{}:r,a=s.namespace,d=void 0===a?"/":a,u=s.prefix;return void 0===i&&(i={}),void 0===n&&(n=""),ho(o).forEach((function(r){var s=function(e){return n||!u||u&&new RegExp("^"+u+d).test(e)?e:""+u+d+e}(function(e){var t;if(!n)return e;var o=e.toString().split(Jt),r=n.split(Jt);return(t=[]).concat.apply(t,r.map((function(e){return o.map((function(t){return""+e+d+t}))}))).join(Jt)}(r)),a=mo(r,o);e(a)?t(a,{namespace:d,prefix:u},i,s):i[s]=a})),i}},vo=go(no);function So(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},r=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),r.forEach((function(t){yo(e,t,o[t])}))}return e}function yo(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function fo(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];var i,n=no((i=o)[i.length-1])?o.pop():{};return Wt(o.every(qt)&&(qt(e)||no(e)),"Expected optional object followed by string action types"),qt(e)?Io([e].concat(o),n):So({},function(e,t){return function(e,t){var o=void 0===t?{}:t,r=o.namespace,i=void 0===r?"/":r,n=o.prefix;function s(t,o,r){var i=co(r.shift());0===r.length?o[i]=e[t]:(o[i]||(o[i]={}),s(t,o[i],r))}var a={};return Object.getOwnPropertyNames(e).forEach((function(e){var t=n?e.replace(""+n+i,""):e;return s(e,a,t.split(i))})),a}(Eo(vo(e,t)),t)}(e,n),Io(o,n))}function Eo(e,t){var o=void 0===t?{}:t,r=o.prefix,i=o.namespace,n=void 0===i?"/":i;return lo(Object.keys(e),(function(t,o){var i,s=e[o];Wt(function(e){if(Kt(e)||ao(e))return!0;if(so(e)){var t=e[0],o=void 0===t?Qt:t,r=e[1];return Kt(o)&&Kt(r)}return!1}(s),"Expected function, undefined, null, or array with payload and meta functions for "+o);var a=r?""+r+n+o:o,d=so(s)?Zt.apply(void 0,[a].concat(s)):Zt(a,s);return So({},t,((i={})[o]=d,i))}))}function Io(e,t){var o=Eo(lo(e,(function(e,t){var o;return So({},e,((o={})[t]=Qt,o))})),t);return lo(Object.keys(o),(function(e,t){var r;return So({},e,((r={})[co(t)]=o[t],r))}))}var Ao=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var r="function"!=typeof t[t.length-1]&&t.pop(),i=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var o=arguments.length,n=Array(o>2?o-2:0),s=2;s<o;s++)n[s-2]=arguments[s];var a=void 0===e,d=void 0===t;return a&&d&&r?r:i.reduce((function(e,o){return o.apply(void 0,[e,t].concat(n))}),a&&!d&&r?r:e)}},Co=go((function(e){return(no(e)||po(e))&&!function(e){var t=ho(e),o=t.every((function(e){return"next"===e||"throw"===e}));return t.length&&t.length<=2&&o}(e)}));function _o(e,t,o){void 0===o&&(o={}),Wt(no(e)||po(e),"Expected handlers to be a plain object.");var r=Co(e,o),i=ho(r).map((function(e){return function(e,t,o){void 0===t&&(t=Qt);var r=zt(e).split(Jt);Wt(!(void 0===o),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Wt(Kt(t)||no(t),"Expected reducer to be a function or object with next and throw reducers");var i=Kt(t)?[t,t]:[t.next,t.throw].map((function(e){return ao(e)?Qt:e})),n=i[0],s=i[1];return function(e,t){void 0===e&&(e=o);var i=t.type;return i&&-1!==r.indexOf(zt(i))?(!0===t.error?s:n)(e,t):e}}(e,mo(e,r),t)})),n=Ao.apply(void 0,i.concat([t]));return function(e,o){return void 0===e&&(e=t),n(e,o)}}const bo=Zt("CONNECT_ZOOM_SOCKET"),Ro=Zt("CONNECT_XMPP_SOCKET"),To=Zt("CLOSE_ZOOM_SOCKET"),Oo=Zt("CLOSE_XMPP_SOCKET"),Do=Zt("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),wo=Zt("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),Mo=Zt("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),No=Zt("CONNECT_MAIN_SESSION_SOCKET"),Po=Zt("CLOSE_MAIN_SESSION_SOCKET"),Lo=Zt("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:ko,setRwgServersList:Vo,setRwgRetryCount:Uo,setXmppSocketStatus:Bo,setMainSessionSocketStatus:jo,resetSocket:Ho}=fo("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","RESET_SOCKET"),xo=Zt("CONNECT_TO_MEDIA_STREAM"),Fo=Zt("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:$o,setAudioDecodeStatus:Go,setVideoEncodeStatus:Wo,setVideoDecodeStatus:Ko,setSharingEncodeStatus:zo,setSharingDecodeStatus:qo,setMediaConstraints:Jo,setMediaEncryptKey:Qo,setIsEnableDecoderInWorklet:Yo,setPatchedMediaSdkStatus:Zo,setMediaAssetsPath:Xo,setIsMediaAgentInitialized:er,resetMedia:tr}=fo("SET_AUDIO_ENCODE_STATUS","SET_AUDIO_DECODE_STATUS","SET_VIDEO_ENCODE_STATUS","SET_VIDEO_DECODE_STATUS","SET_SHARING_ENCODE_STATUS","SET_SHARING_DECODE_STATUS","SET_MEDIA_CONSTRAINTS","SET_MEDIA_ENCRYPT_KEY","SET_IS_ENABLE_DECODER_IN_WORKLET","SET_PATCHED_MEDIA_SDK_STATUS","SET_MEDIA_ASSETS_PATH","SET_IS_MEDIA_AGENT_INITIALIZED","RESET_MEDIA");function or(e,t,...o){return e(_e(...o||[]),t,null)}function rr(...e){const t=(...t)=>tt(...e.map((e=>{const o=e(...t);if(!o)throw new TypeError(`combineEpics: one of the provided Epics "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return o.pipe(at(((e,t)=>(setTimeout((()=>{throw e}),0),t))))})));try{Object.defineProperty(t,"name",{value:`combineEpics(${e.map((e=>e.name||"<anonymous>")).join(", ")})`})}catch(e){}return t}function ir(...e){return rr(...e.flatMap((e=>Object.values(e))))}function nr(e,t){return e.pipe(Vt(`${Do}`),nt((e=>e.payload.evt===t)))}function sr(e,t){return e.pipe(Vt(`${Lo}`),nt((e=>e.payload.evt===t)))}function ar(e,t){return e.pipe(Vt(`${Mo}`),nt((e=>e.payload.evt===t)))}function dr(e,t){return e.pipe(Vt(`${Do}`,`${Lo}`),nt((e=>e.payload.evt===t)))}function ur(e,t){return e.pipe(Vt(`${Fo}`),nt((e=>Array.isArray(t)?t.indexOf(e.payload.type)>-1:e.payload.type===t)))}function cr(e,t){return e.pipe(Vt(`${xo}`),nt((()=>{const{media:{assetsPath:e,mediaConstraints:o}}=t.value;return void 0!==e&&void 0!==o})),ft((()=>{const{media:{isMediaAgentInitialized:o}}=t.value;return o?Ce([0]):e.pipe(Vt(`${er}`),nt((e=>!!e.payload)),ct(1))})))}function lr(e,t,o){const r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=()=>{"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:(r.onload=()=>{t()},r.onerror=()=>{o()}),r.src=e,window.crossOriginIsolated&&(r.crossOrigin="anonymous"),"function"==typeof document.body.append?document.getElementsByTagName("head")[0].append(r):document.getElementsByTagName("head")[0].appendChild(r)}function pr(e,t){let o=e;/^https?:\/\//.test(o)||(o=`https://${e}`);try{const e=new URL(o);if(!t)return e.href;if(t.hostname)return e.hostname;if(t.path)return e.pathname}catch(e){return""}return""}function hr(e){if(e){var t;const o=document.getElementById(e);null==o||null===(t=o.parentNode)||void 0===t||t.removeChild(o)}}function mr(e,t){if(!e||"string"==typeof e)return!1;if(e.ownerDocument===window.document)return e instanceof t;{var o;const r=null===(o=e.ownerDocument)||void 0===o?void 0:o.defaultView;let i;return!!r&&("HTMLVideoElement"===t.name?i=r.HTMLVideoElement:"HTMLCanvasElement"===t.name?i=r.HTMLCanvasElement:"HTMLElement"===t.name&&(i=r.HTMLElement),!!i&&e instanceof i||e instanceof t)}}function gr(e){return mr(e,HTMLVideoElement)}function vr(e){return mr(e,HTMLCanvasElement)}function Sr(e,t){return Array.from(document.getElementsByTagName(t)).some((t=>t.contains(e)))}function yr(e,t,o){const r=e.parentElement;if(!r)return null;const i=document.createElement("canvas");i.id=t,null==r||r.appendChild(i);let n=null;function s(){o&&o()}return"undefined"!=typeof ResizeObserver?(n=new ResizeObserver(s),n.observe(e),r&&n.observe(r)):window.addEventListener("resize",s),s(),i._overlayCleanup=function(){n?(n.unobserve(e),r&&n.unobserve(r),n.disconnect(),n=null):window.removeEventListener("resize",s),"function"==typeof i.remove?i.remove():r&&r.removeChild(i)},i}function fr(e){var t,o,r,i,n;const s=e.getBoundingClientRect(),a=e.width,d=e.height,u=getComputedStyle(e),c=parseFloat(u.borderTopWidth)||0,l=parseFloat(u.borderLeftWidth)||0,p=parseFloat(u.borderRightWidth)||0,h=parseFloat(u.borderBottomWidth)||0,m=Math.max(a/(s.width-l-p),d/(s.height-c-h)),g={width:a/m,height:d/m},v=null==e||null===(t=e.parentElement)||void 0===t?void 0:t.getBoundingClientRect(),S=(null!==(o=null==s?void 0:s.top)&&void 0!==o?o:0)-(null!==(r=null==v?void 0:v.top)&&void 0!==r?r:0),y=(null!==(i=null==s?void 0:s.left)&&void 0!==i?i:0)-(null!==(n=null==v?void 0:v.left)&&void 0!==n?n:0);return{size:g,position:{top:`${S+((s.height-c-h-g.height)/2+c)}px`,left:`${y+((s.width-l-p-g.width)/2+l)}px`}}}let Er="zoom.us";const Ir="4.0.0",Ar=`https://dmogdx0jrul3u.cloudfront.net/${Ir}/lib/av`,Cr=`https://source.zoom.us/${Ir}/lib/av`,_r=`https://jssdk.zoomus.cn/${Ir}/lib/av`,br=()=>Er,Rr="function"==typeof Buffer,Tr="function"==typeof TextDecoder?new TextDecoder:void 0,Or="function"==typeof TextEncoder?new TextEncoder:void 0,Dr=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),wr=(()=>{let e={};return Dr.forEach(((t,o)=>e[t]=o)),e})(),Mr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Nr=String.fromCharCode.bind(String),Pr="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Lr=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),kr=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Vr="function"==typeof btoa?e=>btoa(e):Rr?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,o,r,i,n="";const s=e.length%3;for(let s=0;s<e.length;){if((o=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=o<<16|r<<8|i,n+=Dr[t>>18&63]+Dr[t>>12&63]+Dr[t>>6&63]+Dr[63&t]}return s?n.slice(0,s-3)+"===".substring(s):n},Ur=Rr?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let o=0,r=e.length;o<r;o+=4096)t.push(Nr.apply(null,e.subarray(o,o+4096)));return Vr(t.join(""))},Br=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Nr(192|t>>>6)+Nr(128|63&t):Nr(224|t>>>12&15)+Nr(128|t>>>6&63)+Nr(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Nr(240|t>>>18&7)+Nr(128|t>>>12&63)+Nr(128|t>>>6&63)+Nr(128|63&t)},jr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Hr=Rr?e=>Buffer.from(e,"utf8").toString("base64"):Or?e=>Ur(Or.encode(e)):e=>Vr((e=>e.replace(jr,Br))(e)),xr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fr=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Nr((t>>>10)+55296)+Nr(56320+(1023&t));case 3:return Nr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Nr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},$r="function"==typeof atob?e=>atob(kr(e)):Rr?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!Mr.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,o,r,i="";for(let n=0;n<e.length;)t=wr[e.charAt(n++)]<<18|wr[e.charAt(n++)]<<12|(o=wr[e.charAt(n++)])<<6|(r=wr[e.charAt(n++)]),i+=64===o?Nr(t>>16&255):64===r?Nr(t>>16&255,t>>8&255):Nr(t>>16&255,t>>8&255,255&t);return i},Gr=Rr?e=>Pr(Buffer.from(e,"base64")):e=>Pr($r(e).split("").map((e=>e.charCodeAt(0)))),Wr=Rr?e=>Buffer.from(e,"base64").toString("utf8"):Tr?e=>Tr.decode(Gr(e)):e=>(e=>e.replace(xr,Fr))($r(e)),Kr=(e,t=!1)=>t?Lr(Hr(e)):Hr(e),zr=e=>Wr((e=>kr(e.replace(/[-_]/g,(e=