UNPKG

@zoom/videosdk

Version:
1 lines 782 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WebVideoSDK={})}(this,(function(e){"use strict";var t=function(e,o){return t=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])},t(e,o)};function o(e,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=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}var r=function(){return r=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},r.apply(this,arguments)};function i(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 n(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 s(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 a(e,t){for(var o=0,r=t.length,i=e.length;o<r;o++,i++)e[i]=t[o];return e}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function u(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=n(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 c(e){return"function"==typeof e}function l(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 p=l((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 h(e,t){if(e){var o=e.indexOf(t);0<=o&&e.splice(o,1)}}var m=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,i;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var u=n(d),l=u.next();!l.done;l=u.next())l.value.remove(this)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else d.remove(this);var h=this.initialTeardown;if(c(h))try{h()}catch(e){i=e instanceof p?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=n(m),v=g.next();!v.done;v=g.next()){var f=v.value;try{S(f)}catch(e){i=null!=i?i:[],e instanceof p?i=a(a([],s(i)),s(e.errors)):i.push(e)}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}}if(i)throw new p(i)}},e.prototype.add=function(t){var o;if(t&&t!==this)if(this.closed)S(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)&&h(t,e)},e.prototype.remove=function(t){var o=this._finalizers;o&&h(o,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),g=m.EMPTY;function v(e){return e instanceof m||e&&"closed"in e&&c(e.remove)&&c(e.add)&&c(e.unsubscribe)}function S(e){c(e)?e():e.unsubscribe()}var f=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,a([e,t],s(o)))}((function(){throw e}))}function E(){}function I(e){e()}var A=function(e){function t(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,v(t)&&t.add(o)):o.destination=R,o}return o(t,e),t.create=function(e,t,o){return new b(e,t,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(m),C=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}(),b=function(e){function t(t,o,r){var i,n=e.call(this)||this;return i=c(t)||!t?{next:null!=t?t:void 0,error:null!=o?o:void 0,complete:null!=r?r:void 0}:t,n.destination=new C(i),n}return o(t,e),t}(A);function _(e){y(e)}var R={closed:!0,next:E,error:function(e){throw e},complete:E},T="function"==typeof Symbol&&Symbol.observable||"@@observable";function O(e){return e}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)}function w(e){return 0===e.length?O:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var M=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 A||function(e){return e&&c(e.next)&&c(e.error)&&c(e.complete)}(r)&&v(r)?e:new b(e,t,o);return I((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=N(t))((function(t,r){var i=new b({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[T]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=N(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 N(e){var t;return null!==(t=null!=e?e:f)&&void 0!==t?t:Promise}function P(e){return function(t){if(function(e){return c(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 L(e,t,o,r,i){return new V(e,t,o,r,i)}var k,V=function(e){function t(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 o(t,e),t.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))}},t}(A),U=l((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),j=function(e){function t(){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 o(t,e),t.prototype.lift=function(e){var t=new B(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new U},t.prototype.next=function(e){var t=this;I((function(){var o,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=n(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}}}))},t.prototype.error=function(e){var t=this;I((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)}}))},t.prototype.complete=function(){var e=this;I((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,o=this,r=o.hasError,i=o.isStopped,n=o.observers;return r||i?g:(this.currentObservers=null,n.push(e),new m((function(){t.currentObservers=null,h(n,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,o=t.hasError,r=t.thrownError,i=t.isStopped;o?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new M;return e.source=this,e},t.create=function(e,t){return new B(e,t)},t}(M),B=function(e){function t(t,o){var r=e.call(this)||this;return r.destination=t,r.source=o,r}return o(t,e),t.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)},t.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)},t.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)},t.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:g},t}(j),H=function(e){function t(t){var o=e.call(this)||this;return o._value=t,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var o=e.prototype._subscribe.call(this,t);return!o.closed&&t.next(this._value),o},t.prototype.getValue=function(){var e=this,t=e.hasError,o=e.thrownError,r=e._value;if(t)throw o;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(j),x=function(){return Date.now()},F=function(e){function t(t,o){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return this},t}(m),$=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r.pending=!1,r}return o(t,e),t.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},t.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,a([e,t],s(o)))}(e.flush.bind(e,this),o)},t.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)},t.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))},t.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},t.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,h(r,this),null!=t&&(this.id=this.recycleAsyncId(o,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(F),W=1,G={};function K(e){return e in G&&(delete G[e],!0)}var z=function(e){var t=W++;return G[t]=!0,k||(k=Promise.resolve()),k.then((function(){return K(t)&&e()})),t},q=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return z.apply(void 0,a([],s(e)))},J=function(e){return function(e){K(e)}(e)},Q=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return o(t,e),t.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=q(t.flush.bind(t,void 0))))},t.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&&(J(o),t._scheduled===o&&(t._scheduled=void 0))},t}($),Y=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=x,e}(),Z=function(e){function t(t,o){void 0===o&&(o=Y.now);var r=e.call(this,t,o)||this;return r.actions=[],r._active=!1,r}return o(t,e),t.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}}},t}(Y),X=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.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}},t}(Z))(Q),ee=new Z($),te=ee,oe=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return o(t,e),t.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)},t.prototype.execute=function(t,o){return o>0||this.closed?e.prototype.execute.call(this,t,o):this._execute(t,o)},t.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)},t}($),re=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(Z))(oe),ie=new M((function(e){return e.complete()}));function ne(e){return e&&c(e.schedule)}function se(e){return e[e.length-1]}function ae(e){return c(se(e))?e.pop():void 0}function de(e){return ne(se(e))?e.pop():void 0}var ue=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ce(e){return c(null==e?void 0:e.then)}function le(e){return c(e[T])}function pe(e){return Symbol.asyncIterator&&c(null==e?void 0:e[Symbol.asyncIterator])}function he(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 me="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ge(e){return c(null==e?void 0:e[me])}function ve(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||a(e,t)}))})}function a(e,t){try{!function(e){e.value instanceof d?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){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),n.shift(),n.length&&a(n[0][0],n[0][1])}}(this,arguments,(function(){var t,o,r;return i(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,d(t.read())];case 3:return o=i.sent(),r=o.value,o.done?[4,d(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,d(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function Se(e){return c(null==e?void 0:e.getReader)}function fe(e){if(e instanceof M)return e;if(null!=e){if(le(e))return i=e,new M((function(e){var t=i[T]();if(c(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(ue(e))return r=e,new M((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(ce(e))return o=e,new M((function(e){o.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,y)}));if(pe(e))return ye(e);if(ge(e))return t=e,new M((function(e){var o,r;try{for(var i=n(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}e.complete()}));if(Se(e))return ye(ve(e))}var t,o,r,i;throw he(e)}function ye(e){return new M((function(t){(function(e,t){var o,r,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,d;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),o=u(e),i.label=1;case 1:return[4,o.next()];case 2:if((r=i.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=i.sent(),n={error:d},[3,11];case 6:return i.trys.push([6,,9,10]),r&&!r.done&&(s=o.return)?[4,s.call(o)]:[3,8];case 7:i.sent(),i.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 Ee(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 Ie(e,t){return void 0===t&&(t=0),P((function(o,r){o.subscribe(L(r,(function(o){return Ee(r,e,(function(){return r.next(o)}),t)}),(function(){return Ee(r,e,(function(){return r.complete()}),t)}),(function(o){return Ee(r,e,(function(){return r.error(o)}),t)})))}))}function Ae(e,t){return void 0===t&&(t=0),P((function(o,r){r.add(e.schedule((function(){return o.subscribe(r)}),t))}))}function Ce(e,t){if(!e)throw new Error("Iterable cannot be null");return new M((function(o){Ee(o,t,(function(){var r=e[Symbol.asyncIterator]();Ee(o,t,(function(){r.next().then((function(e){e.done?o.complete():o.next(e.value)}))}),0,!0)}))}))}function be(e,t){return t?function(e,t){if(null!=e){if(le(e))return function(e,t){return fe(e).pipe(Ae(t),Ie(t))}(e,t);if(ue(e))return function(e,t){return new M((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(ce(e))return function(e,t){return fe(e).pipe(Ae(t),Ie(t))}(e,t);if(pe(e))return Ce(e,t);if(ge(e))return function(e,t){return new M((function(o){var r;return Ee(o,t,(function(){r=e[me](),Ee(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 c(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(Se(e))return function(e,t){return Ce(ve(e),t)}(e,t)}throw he(e)}(e,t):fe(e)}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return be(e,de(e))}function Re(e,t){var o=c(e)?e:function(){return e};return new M((function(e){return e.error(o())}))}var Te=l((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Oe(e,t){return new Promise((function(t,o){var r=new b({next:function(e){t(e),r.unsubscribe()},error:o,complete:function(){o(new Te)}});e.subscribe(r)}))}function De(e){return e instanceof Date&&!isNaN(e)}var we=l((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?ee:a,u=o.meta,c=void 0===u?null:u;if(null==r&&null==i)throw new TypeError("No timeout provided.");return P((function(e,t){var o,n,a=null,u=0,l=function(e){n=Ee(t,d,(function(){try{o.unsubscribe(),fe(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}}),e)};o=e.subscribe(L(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 P((function(o,r){var i=0;o.subscribe(L(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,a([],s(t))):e(t)}(e,t)}))}var Ve=Array.isArray,Ue=Object.getPrototypeOf,je=Object.prototype,Be=Object.keys;function He(e,t,o){return void 0===o&&(o=1/0),c(t)?He((function(o,r){return Pe((function(e,i){return t(o,e,r,i)}))(fe(e(o,r)))}),o):("number"==typeof t&&(o=t),P((function(t,r){return function(e,t,o,r){var i=[],n=0,s=0,a=!1,d=function(){!a||i.length||n||t.complete()},u=function(e){n++;var a=!1;fe(o(e,s++)).subscribe(L(t,(function(e){t.next(e)}),(function(){a=!0}),void 0,(function(){if(a)try{for(n--;i.length&&n<r;)void 0,e=i.shift(),u(e);d()}catch(e){t.error(e)}var e})))};return e.subscribe(L(t,(function(e){return n<r?u(e):i.push(e)}),(function(){a=!0,d()}))),function(){}}(t,r,e,o)})))}function xe(e){return void 0===e&&(e=1/0),He(O,e)}function Fe(){return xe(1)}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fe()(be(e,de(e)))}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(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)===je){var o=Be(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 M((function(e){var t=i.length;if(t)for(var o=new Array(t),r=t,s=t,a=function(t){var a=!1;fe(i[t]).subscribe(L(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 Ge=["addListener","removeListener"],Ke=["addEventListener","removeEventListener"],ze=["on","off"];function qe(e,t,o,r){if(c(o)&&(r=o,o=void 0),r)return qe(e,t,o).pipe(ke(r));var i=s(function(e){return c(e.addEventListener)&&c(e.removeEventListener)}(e)?Ke.map((function(r){return function(i){return e[r](t,i,o)}})):function(e){return c(e.addListener)&&c(e.removeListener)}(e)?Ge.map(Je(e,t)):function(e){return c(e.on)&&c(e.off)}(e)?ze.map(Je(e,t)):[],2),n=i[0],a=i[1];if(!n&&ue(e))return He((function(e){return qe(e,t,o)}))(fe(e));if(!n)throw new TypeError("Invalid event target");return new M((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 n(t),function(){return a(t)}}))}function Je(e,t){return function(o){return function(r){return e[o](t,r)}}}function Qe(e,t,o){return o?Qe(e,t).pipe(ke(o)):new M((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 c(t)?function(){return t(r,i)}:void 0}))}function Ye(e,t,o){void 0===e&&(e=0),void 0===o&&(o=te);var r=-1;return null!=t&&(ne(t)?o=t:r=t),new M((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 Ze(e,t){return void 0===e&&(e=0),void 0===t&&(t=ee),e<0&&(e=0),Ye(e,e,t)}function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e),r=function(e){return"number"==typeof se(e)?e.pop():1/0}(e),i=e;return i.length?1===i.length?fe(i[0]):xe(r)(be(i,o)):ie}var et=new M(E),tt=Array.isArray;function ot(e,t){return function(o,r){return!e.call(t,o,r)}}function rt(e,t){return P((function(o,r){var i=0;o.subscribe(L(r,(function(o){return e.call(t,o,i++)&&r.next(o)})))}))}function it(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===(t=1===(e=t).length&&tt(e[0])?e[0]:e).length?fe(t[0]):new M(function(e){return function(t){for(var o=[],r=function(r){o.push(fe(e[r]).subscribe(L(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 nt(e){return P((function(t,o){var r,i=null,n=!1;i=t.subscribe(L(o,void 0,void 0,(function(s){r=fe(e(s,nt(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(o)):n=!0}))),n&&(i.unsubscribe(),i=null,r.subscribe(o))}))}function st(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e);return P((function(t,r){Fe()(be(a([t],s(e)),o)).subscribe(r)}))}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return st.apply(void 0,a([],s(e)))}function dt(e){return e<=0?function(){return ie}:P((function(t,o){var r=0;t.subscribe(L(o,(function(t){++r<=e&&(o.next(t),e<=r&&o.complete())})))}))}function ut(){return P((function(e,t){e.subscribe(L(t,E))}))}function ct(e){return Pe((function(){return e}))}function lt(e,t){void 0===t&&(t=ee);var o,r=Ye(e,t);return o=function(){return r},He((function(e,t){return fe(o()).pipe(dt(1),ct(e))}))}function pt(e,t,o){return void 0===o&&(o=1/0),c(t)?He((function(){return e}),t,o):He((function(){return e}),o)}function ht(e,t){return P(function(e,t,o){return function(r,i){var n=o,s=t,a=0;r.subscribe(L(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 mt(e){return P((function(t,o){var r=!1,i=0;t.subscribe(L(o,(function(t){return(r||(r=!e(t,i++)))&&o.next(t)})))}))}function gt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e);return P((function(t,r){(o?$e(e,t,o):$e(e,t)).subscribe(r)}))}function vt(e,t){return P((function(o,r){var i=null,n=0,s=!1,a=function(){return s&&!i&&r.complete()};o.subscribe(L(r,(function(o){null==i||i.unsubscribe();var s=0,d=n++;fe(e(o,d)).subscribe(i=L(r,(function(e){return r.next(t?t(o,e,d,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function St(e){return P((function(t,o){fe(e).subscribe(L(o,(function(){return o.complete()}),E)),!o.closed&&t.subscribe(o)}))}function ft(e,t){return void 0===t&&(t=!1),P((function(o,r){var i=0;o.subscribe(L(r,(function(o){var n=e(o,i++);(n||t)&&r.next(o),!n&&r.complete()})))}))}function yt(e,t,o){var r=c(e)||t||o?{next:e,error:t,complete:o}:e;return r?P((function(e,t){var o;null===(o=r.subscribe)||void 0===o||o.call(r);var i=!0;e.subscribe(L(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)})))})):O}function Et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return P((function(t,r){for(var i=e.length,n=new Array(i),d=e.map((function(){return!1})),u=!1,c=function(t){fe(e[t]).subscribe(L(r,(function(e){n[t]=e,u||d[t]||(d[t]=!0,(u=d.every(O))&&(d=null))}),E))},l=0;l<i;l++)c(l);t.subscribe(L(r,(function(e){if(u){var t=a([e],s(n));r.next(o?o.apply(void 0,a([],s(t))):t)}})))}))}function It(e){return It="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},It(e)}function At(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==It(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ct(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 bt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(o),!0).forEach((function(t){At(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ct(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function _t(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 Rt="function"==typeof Symbol&&Symbol.observable||"@@observable",Tt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ot={INIT:"@@redux/INIT"+Tt(),REPLACE:"@@redux/REPLACE"+Tt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tt()}};function Dt(e,t,o){var r;if("function"==typeof t&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(_t(0));if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error(_t(1));return o(Dt)(e,t)}if("function"!=typeof e)throw new Error(_t(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(_t(3));return n}function l(e){if("function"!=typeof e)throw new Error(_t(4));if(d)throw new Error(_t(5));var t=!0;return u(),a.push(e),function(){if(t){if(d)throw new Error(_t(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(_t(7));if(void 0===e.type)throw new Error(_t(8));if(d)throw new Error(_t(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:Ot.INIT}),(r={dispatch:p,subscribe:l,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(_t(10));i=e,p({type:Ot.REPLACE})}})[Rt]=function(){var e,t=l;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(_t(11));function o(){e.next&&e.next(c())}return o(),{unsubscribe:t(o)}}})[Rt]=function(){return this},e},r}function wt(){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 Mt=function(e){function t(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 j,r.value=o,t.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return o(t,e),t}(M),Nt=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function Pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.length;return rt(1===o?function(t){return Nt(t.type,e[0])}:function(t){for(var r=0;r<o;r++)if(Nt(t.type,e[r]))return!0;return!1})}var Lt="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 kt(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Vt(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":Lt(global))&&global?global:"undefined"!=typeof window?window:{}).DeepDiff,kt((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})}),Vt),kt((function e(t,o){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:o,enumerable:!0})}),Vt),kt((function e(t,o){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0})}),Vt),kt((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})}),Vt);var Ut,jt,Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt=(jt||(jt=1,Ut=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}}),Ut),Ft=Ht(xt),$t=function(e){return"function"==typeof e},Wt=function(e){return e.toString()},Gt=function(e){return"string"==typeof e},Kt="||",zt=function(e){return e},qt=function(e){return null===e};function Jt(e,t,o){void 0===t&&(t=zt),Ft($t(t)||qt(t),"Expected payloadCreator to be a function, undefined or null");var r=qt(t)||t===zt?zt: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=$t(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 Qt,Yt,Zt,Xt,eo,to,oo=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},ro=function(e){return Array.isArray(e)},io=function(e){return null==e};var no=Ht(function(){if(to)return eo;to=1;var e=function(){if(Xt)return Zt;Xt=1;var e=function(){if(Yt)return Qt;Yt=1,Qt=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 Qt}();return Zt=function(t){return e(t).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}();return eo=function(t){return e(t).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}}()),so=function(e){return-1===e.indexOf("/")?no(e):e.split("/").map(no).join("/")},ao=function(e,t){return e.reduce((function(e,o){return t(e,o)}),{})},uo=function(e){return"undefined"!=typeof Map&&e instanceof Map};function co(e){if(uo(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 lo(e,t){return uo(t)?t.get(e):t[e]}var po=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=""),co(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(Kt),r=n.split(Kt);return(t=[]).concat.apply(t,r.map((function(e){return o.map((function(t){return""+e+d+t}))}))).join(Kt)}(r)),a=lo(r,o);e(a)?t(a,{namespace:d,prefix:u},i,s):i[s]=a})),i}},ho=po(oo);function mo(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){go(e,t,o[t])}))}return e}function go(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function vo(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=oo((i=o)[i.length-1])?o.pop():{};return Ft(o.every(Gt)&&(Gt(e)||oo(e)),"Expected optional object followed by string action types"),Gt(e)?fo([e].concat(o),n):mo({},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=so(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}(So(ho(e,t)),t)}(e,n),fo(o,n))}function So(e,t){var o=void 0===t?{}:t,r=o.prefix,i=o.namespace,n=void 0===i?"/":i;return ao(Object.keys(e),(function(t,o){var i,s=e[o];Ft(function(e){if($t(e)||io(e))return!0;if(ro(e)){var t=e[0],o=void 0===t?zt:t,r=e[1];return $t(o)&&$t(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=ro(s)?Jt.apply(void 0,[a].concat(s)):Jt(a,s);return mo({},t,((i={})[o]=d,i))}))}function fo(e,t){var o=So(ao(e,(function(e,t){var o;return mo({},e,((o={})[t]=zt,o))})),t);return ao(Object.keys(o),(function(e,t){var r;return mo({},e,((r={})[so(t)]=o[t],r))}))}var yo=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)}},Eo=po((function(e){return(oo(e)||uo(e))&&!function(e){var t=co(e),o=t.every((function(e){return"next"===e||"throw"===e}));return t.length&&t.length<=2&&o}(e)}));function Io(e,t,o){void 0===o&&(o={}),Ft(oo(e)||uo(e),"Expected handlers to be a plain object.");var r=Eo(e,o),i=co(r).map((function(e){return function(e,t,o){void 0===t&&(t=zt);var r=Wt(e).split(Kt);Ft(!(void 0===o),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Ft($t(t)||oo(t),"Expected reducer to be a function or object with next and throw reducers");var i=$t(t)?[t,t]:[t.next,t.throw].map((function(e){return io(e)?zt: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(Wt(i))?(!0===t.error?s:n)(e,t):e}}(e,lo(e,r),t)})),n=yo.apply(void 0,i.concat([t]));return function(e,o){return void 0===e&&(e=t),n(e,o)}}const Ao=Jt("CONNECT_ZOOM_SOCKET"),Co=Jt("CONNECT_XMPP_SOCKET"),bo=Jt("CLOSE_ZOOM_SOCKET"),_o=Jt("CLOSE_XMPP_SOCKET"),Ro=Jt("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),To=Jt("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),Oo=Jt("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),Do=Jt("CONNECT_MAIN_SESSION_SOCKET"),wo=Jt("CLOSE_MAIN_SESSION_SOCKET"),Mo=Jt("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:No,setRwgServersList:Po,setRwgRetryCount:Lo,setXmppSocketStatus:ko,setMainSessionSocketStatus:Vo,resetSocket:Uo}=vo("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","RESET_SOCKET"),jo=Jt("CONNECT_TO_MEDIA_STREAM"),Bo=Jt("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:Ho,setAudioDecodeStatus:xo,setVideoEncodeStatus:Fo,setVideoDecodeStatus:$o,setSharingEncodeStatus:Wo,setSharingDecodeStatus:Go,setMediaConstraints:Ko,setMediaEncryptKey:zo,setIsEnableDecoderInWorklet:qo,setPatchedMediaSdkStatus:Jo,setMediaAssetsPath:Qo,setIsMediaAgentInitialized:Yo,resetMedia:Zo}=vo("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 Xo(e,t,...o){return e(_e(...o||[]),t,null)}function er(...e){const t=(...t)=>Xe(...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(nt(((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 tr(...e){return er(...e.flatMap((e=>Object.values(e))))}function or(e,t){return e.pipe(Pt(`${Ro}`),rt((e=>e.payload.evt===t)))}function rr(e,t){return e.pipe(Pt(`${Mo}`),rt((e=>e.payload.evt===t)))}function ir(e,t){return e.pipe(Pt(`${Oo}`),rt((e=>e.payload.evt===t)))}function nr(e,t){return e.pipe(Pt(`${Ro}`,`${Mo}`),rt((e=>e.payload.evt===t)))}function sr(e,t){return e.pipe(Pt(`${Bo}`),rt((e=>Array.isArray(t)?t.indexOf(e.payload.type)>-1:e.payload.type===t)))}function ar(e,t){return e.pipe(Pt(`${jo}`),rt((()=>{const{media:{assetsPath:e,mediaConstraints:o}}=t.value;return void 0!==e&&void 0!==o})),vt((()=>{const{media:{isMediaAgentInitialized:o}}=t.value;return o?be([0]):e.pipe(Pt(`${Yo}`),rt((e=>!!e.payload)),dt(1))})))}function dr(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 ur(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 cr(e){if(e){var t;const o=document.getElementById(e);null==o||null===(t=o.parentNode)||void 0===t||t.removeChild(o)}}function lr(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 pr(e){return lr(e,HTMLVideoElement)}function hr(e){return lr(e,HTMLCanvasElement)}function mr(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 gr(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),f=(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:`${f+((s.width-l-p-g.width)/2+l)}px`}}}let vr="zoom.us";const Sr="3.13.0",fr=`https://dmogdx0jrul3u.cloudfront.net/${Sr}/lib/av`,yr=`https://source.zoom.us/${Sr}/lib/av`,Er=`https://jssdk.zoomus.cn/${Sr}/lib/av`,Ir=()=>vr,Ar="function"==typeof Buffer,Cr="function"==typeof TextDecoder?new TextDecoder:void 0,br="function"==typeof TextEncoder?new TextEncoder:void 0,_r=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Rr=(()=>{let e={};return _r.forEach(((t,o)=>e[t]=o)),e})(),Tr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Or=String.fromCharCode.bind(String),Dr="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),wr=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Mr=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Nr="function"==typeof btoa?e=>btoa(e):Ar?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+=_r[t>>18&63]+_r[t>>12&63]+_r[t>>6&63]+_r[63&t]}return s?n.slice(0,s-3)+"===".substring(s):n},Pr=Ar?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let o=0,r=e.length;o<r;o+=4096)t.push(Or.apply(null,e.subarray(o,o+4096)));return Nr(t.join(""))},Lr=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Or(192|t>>>6)+Or(128|63&t):Or(224|t>>>12&15)+Or(128|t>>>6&63)+Or(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Or(240|t>>>18&7)+Or(128|t>>>12&63)+Or(128|t>>>6&63)+Or(128|63&t)},kr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Vr=Ar?e=>Buffer.from(e,"utf8").toString("base64"):br?e=>Pr(br.encode(e)):e=>Nr((e=>e.replace(kr,Lr))(e)),Ur=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,jr=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 Or((t>>>10)+55296)+Or(56320+(1023&t));case 3:return Or((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Or((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Br="function"==typeof atob?e=>atob(Mr(e)):Ar?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!Tr.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=Rr[e.charAt(n++)]<<18|Rr[e.charAt(n++)]<<12|(o=Rr[e.charAt(n++)])<<6|(r=Rr[e.charAt(n++)]),i+=64===o?Or(t>>16&255):64===r?Or(t>>16&255,t>>8&255):Or(t>>16&255,t>>8&255,255&t);return i},Hr=Ar?e=>Dr(Buffer.from(e,"base64")):e=>Dr(Br(e).split("").map((e=>e.charCodeAt(0)))),xr=Ar?e=>Buffer.from(e,"base64").toString("utf8"):Cr?e=>Cr.decode(Hr(e)):e=>(e=>e.replace(Ur,jr))(Br(e)),Fr=(e,t=!1)=>t?wr(Vr(e)):Vr(e),$r=e=>xr((e=>Mr(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))))(e)),Wr=(e,t=!1)=>t?wr(Pr(e)):Pr(e);function Gr(e){return Fr(e,!0)}function Kr(e){return $r(e)}function zr(e){return Fr(e,!1)}const qr={"-":"+",_:"/",".":"="};function Jr(e){const