UNPKG

@zoom/meetingsdk

Version:
2 lines 3.29 MB
/*! For license information please see zoom-meeting-embedded-3.13.2.min.js.LICENSE.txt */ !function(){var e={358:function(e,t,n){e=n.nmd(e);var r,o,i,a,s,c,l,u,d,p,h,f,m,_,g,v,b,w,y,k=n(287).hp,x=["deviceId"],S=["deviceId"],C=["dimension"],E=["isFromMainSession"],A=["rate"],T=["data"],I=["rate"],R=["data"],O=["isActive","activeUserId"],j=["rate"],P=["data"],M=["encoding","rate"],L=["encoding","rate"],D=["encoding","rate"],z=["encoding","rate"],N=["encoding","rate"],V=["encoding","rate"],B=["lastCopy"],U=["isMaskConfigured","imageSrc"],H=["originFile"],F=["upload","download","originFile"],q=["uniqueId"],W=["highResTimeStampForIdentification"],G=["upload"],K=["highResTimeStampForIdentification"],Q=["sn"],Z=["file","receiver"],J=["attendeeId"],Y=["sn"],X=["answers","jid"],$=["jid","isFromHostOrPanelist"],ee=["whoStart","whoStop"],te=["transcriptionLang","translatedSetting"],ne=["text"],re=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function oe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ie(e){var t="function"==typeof Map?new Map:void 0;return ie=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(pe())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&me(o,n.prototype),o}(e,arguments,he(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),me(n,e)},ie(e)}function ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ee(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function se(){"use strict";se=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",_={};function g(){}function v(){}function b(){}var w={};l(w,a,(function(){return this}));var y=Object.getPrototypeOf,k=y&&y(y(O([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=b.prototype=g.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Te(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=A(s,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=d(t,n,r);if("normal"===l.type){if(o=r.done?m:h,l.arg===_)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Te(t)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(C.prototype),l(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function ce(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function le(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ce(i,r,o,a,s,"next",e)}function s(e){ce(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ue(e,t,n){return t=he(t),function(e,t){if(t&&("object"==Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return de(e)}(e,pe()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}function _e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Se(r.key),r)}}function be(e,t,n){return t&&ve(e.prototype,t),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Te(t)?t:t+""}function Ce(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Te(e){return Te="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},Te(e)}y=function(r,o){"use strict";var i,y,ce,pe,he,me,ve,ye,Se,Ee,Ae,Ie,Re,Oe,je,Pe,Me,Le,De;function ze(e){return e&&"object"==Te(e)&&"default"in e?e:{default:e}}function Ne(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var Ve=Ne(r),Be=ze(r),Ue=ze(o),He=Ne(o);function Fe(e,t,n){return(t=function(e){var t=function(e){if("object"!=Te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ke,Qe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Ze(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Je=Ue.default;function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==Te(Symbol.iterator)?function(e){return Te(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Te(e)},Ye(e)}function Xe(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(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. "}Ke=Je.createRoot,Je.hydrateRoot;var nt="function"==typeof Symbol&&Symbol.observable||"@@observable",rt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ot={INIT:"@@redux/INIT"+rt(),REPLACE:"@@redux/REPLACE"+rt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rt()}};function it(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(tt(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(tt(1));return n(it)(e,t)}if("function"!=typeof e)throw new Error(tt(2));var o=e,i=t,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(tt(3));return i}function d(e){if("function"!=typeof e)throw new Error(tt(4));if(c)throw new Error(tt(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw new Error(tt(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=Te(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(tt(7));if(void 0===e.type)throw new Error(tt(8));if(c)throw new Error(tt(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:ot.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(tt(10));o=e,p({type:ot.REPLACE})}})[nt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=Te(e)||null===e)throw new Error(tt(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[nt]=function(){return this},e},r}function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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 st=function(e,t){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},st(e,t)};function ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}st(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lt.apply(this,arguments)};function ut(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function dt(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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 pt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ht(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function ft(e){return this instanceof ft?(this.v=e,this):new ft(e)}function mt(e){return"function"==typeof e}function _t(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 gt=_t((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 vt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var bt=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,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=dt(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(mt(c))try{c()}catch(e){o=e instanceof gt?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=dt(l),d=u.next();!d.done;d=u.next()){var p=d.value;try{kt(p)}catch(e){o=null!=o?o:[],e instanceof gt?o=ht(ht([],pt(o)),pt(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(o)throw new gt(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)kt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).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)&&vt(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&vt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),wt=bt.EMPTY;function yt(e){return e instanceof bt||e&&"closed"in e&&mt(e.remove)&&mt(e.add)&&mt(e.unsubscribe)}function kt(e){mt(e)?e():e.unsubscribe()}function xt(e){!function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];setTimeout.apply(void 0,ht([e,t],pt(n)))}((function(){throw e}))}function St(){}function Ct(e){e()}var Et=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,yt(t)&&t.add(n)):n.destination=Rt,n}return ct(t,e),t.create=function(e,t,n){return new Tt(e,t,n)},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}(bt),At=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){It(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){It(e)}else It(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){It(e)}},e}(),Tt=function(e){function t(t,n,r){var o,i=e.call(this)||this;return o=mt(t)||!t?{next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:t,i.destination=new At(o),i}return ct(t,e),t}(Et);function It(e){xt(e)}var Rt={closed:!0,next:St,error:function(e){throw e},complete:St},Ot="function"==typeof Symbol&&Symbol.observable||"@@observable";function jt(e){return e}function Pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mt(e)}function Mt(e){return 0===e.length?jt:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Lt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof Et||function(e){return e&&mt(e.next)&&mt(e.error)&&mt(e.complete)}(r)&&yt(r)?e:new Tt(e,t,n);return Ct((function(){var e=o,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(o){e.error(o)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Dt(t))((function(t,r){var o=new Tt({next:function(t){try{e(t)}catch(e){r(e),o.unsubscribe()}},error:r,complete:t});n.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ot]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mt(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Dt(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Dt(e){var t;return null!==(t=null!=e?e:void 0)&&void 0!==t?t:Promise}function zt(e){return function(t){if(function(e){return mt(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 Nt(e,t,n,r,o){return new Bt(e,t,n,r,o)}var Vt,Bt=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return ct(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Et),Ut=_t((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ht=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 ct(t,e),t.prototype.lift=function(e){var t=new Ft(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ut},t.prototype.next=function(e){var t=this;Ct((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=dt(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ct((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ct((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,n=this,r=n.hasError,o=n.isStopped,i=n.observers;return r||o?wt:(this.currentObservers=null,i.push(e),new bt((function(){t.currentObservers=null,vt(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new Lt;return e.source=this,e},t.create=function(e,t){return new Ft(e,t)},t}(Lt),Ft=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ct(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.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,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:wt},t}(Ht),qt=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return ct(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ht),Wt=function(){return Date.now()},Gt=function(e){function t(t,n){return e.call(this)||this}return ct(t,e),t.prototype.schedule=function(e,t){return this},t}(bt),Kt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return ct(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,ht([e,t],pt(n)))}(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!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 n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,vt(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Gt),Qt=1,Zt={};function Jt(e){return e in Zt&&(delete Zt[e],!0)}var Yt=function(e){var t=Qt++;return Zt[t]=!0,Vt||(Vt=Promise.resolve()),Vt.then((function(){return Jt(t)&&e()})),t},Xt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Yt.apply(void 0,ht([],pt(e)))},$t=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return ct(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Xt(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var o;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;null!=n&&(null===(o=i[i.length-1])||void 0===o?void 0:o.id)!==n&&(function(e){!function(e){Jt(e)}(e)}(n),t._scheduled===n&&(t._scheduled=void 0))},t}(Kt),en=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=Wt,e}(),tn=function(e){function t(t,n){void 0===n&&(n=en.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return ct(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(en),nn=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ct(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(tn))($t),rn=new tn(Kt),on=rn,an=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return ct(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},t}(Kt),sn=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ct(t,e),t}(tn))(an),cn=new Lt((function(e){return e.complete()}));function ln(e){return e&&mt(e.schedule)}function un(e){return e[e.length-1]}function dn(e){return mt(un(e))?e.pop():void 0}function pn(e){return ln(un(e))?e.pop():void 0}var hn=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function fn(e){return mt(null==e?void 0:e.then)}function mn(e){return mt(e[Ot])}function _n(e){return Symbol.asyncIterator&&mt(null==e?void 0:e[Symbol.asyncIterator])}function gn(e){return new TypeError("You provided "+(null!==e&&"object"==Te(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var vn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function bn(e){return mt(null==e?void 0:e[vn])}function wn(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof ft?Promise.resolve(e.value.v).then(c,l):u(i[0][2],e)}(o[e](t))}catch(e){u(i[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,(function(){var t,n,r;return ut(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,ft(t.read())];case 3:return n=o.sent(),r=n.value,n.done?[4,ft(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,ft(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function yn(e){return mt(null==e?void 0:e.getReader)}function kn(e){if(e instanceof Lt)return e;if(null!=e){if(mn(e))return o=e,new Lt((function(e){var t=o[Ot]();if(mt(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(hn(e))return r=e,new Lt((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(fn(e))return n=e,new Lt((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,xt)}));if(_n(e))return xn(e);if(bn(e))return t=e,new Lt((function(e){var n,r;try{for(var o=dt(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()}));if(yn(e))return xn(wn(e))}var t,n,r,o;throw gn(e)}function xn(e){return new Lt((function(t){(function(e,t){var n,r,o,i;return function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,s;return ut(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=dt(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(e),c.label=1;case 1:return[4,n.next()];case 2:if((r=c.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Sn(e,t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=t.schedule((function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(i),!o)return i}function Cn(e,t){return void 0===t&&(t=0),zt((function(n,r){n.subscribe(Nt(r,(function(n){return Sn(r,e,(function(){return r.next(n)}),t)}),(function(){return Sn(r,e,(function(){return r.complete()}),t)}),(function(n){return Sn(r,e,(function(){return r.error(n)}),t)})))}))}function En(e,t){return void 0===t&&(t=0),zt((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function An(e,t){if(!e)throw new Error("Iterable cannot be null");return new Lt((function(n){Sn(n,t,(function(){var r=e[Symbol.asyncIterator]();Sn(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}function Tn(e,t){return t?function(e,t){if(null!=e){if(mn(e))return function(e,t){return kn(e).pipe(En(t),Cn(t))}(e,t);if(hn(e))return function(e,t){return new Lt((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t);if(fn(e))return function(e,t){return kn(e).pipe(En(t),Cn(t))}(e,t);if(_n(e))return An(e,t);if(bn(e))return function(e,t){return new Lt((function(n){var r;return Sn(n,t,(function(){r=e[vn](),Sn(n,t,(function(){var e,t,o;try{t=(e=r.next()).value,o=e.done}catch(e){return void n.error(e)}o?n.complete():n.next(t)}),0,!0)})),function(){return mt(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(yn(e))return function(e,t){return An(wn(e),t)}(e,t)}throw gn(e)}(e,t):kn(e)}function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tn(e,pn(e))}function Rn(e,t){var n=mt(e)?e:function(){return e};return new Lt((function(e){return e.error(n())}))}var On=_t((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function jn(e,t){return new Promise((function(t,n){var r=new Tt({next:function(e){t(e),r.unsubscribe()},error:n,complete:function(){n(new On)}});e.subscribe(r)}))}function Pn(e){return e instanceof Date&&!isNaN(e)}var Mn=_t((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function Ln(e,t){var n=Pn(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,o=n.each,i=n.with,a=void 0===i?Dn:i,s=n.scheduler,c=void 0===s?rn:s,l=n.meta,u=void 0===l?null:l;if(null==r&&null==o)throw new TypeError("No timeout provided.");return zt((function(e,t){var n,i,s=null,l=0,d=function(e){i=Sn(t,c,(function(){try{n.unsubscribe(),kn(a({meta:u,lastValue:s,seen:l})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(Nt(t,(function(e){null==i||i.unsubscribe(),l++,t.next(s=e),o>0&&d(o)}),void 0,void 0,(function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),s=null}))),!l&&d(null!=r?"number"==typeof r?r:+r-c.now():o)}))}function Dn(e){throw new Mn(e)}function zn(e,t){return zt((function(n,r){var o=0;n.subscribe(Nt(r,(function(n){r.next(e.call(t,n,o++))})))}))}var Nn=Array.isArray;function Vn(e){return zn((function(t){return function(e,t){return Nn(t)?e.apply(void 0,ht([],pt(t))):e(t)}(e,t)}))}var Bn=Array.isArray,Un=Object.getPrototypeOf,Hn=Object.prototype,Fn=Object.keys;function qn(e,t,n){return void 0===n&&(n=1/0),mt(t)?qn((function(n,r){return zn((function(e,o){return t(n,e,r,o)}))(kn(e(n,r)))}),n):("number"==typeof t&&(n=t),zt((function(t,r){return function(e,t,n,r){var o=[],i=0,a=0,s=!1,c=function(){!s||o.length||i||t.complete()},l=function(e){i++;var s=!1;kn(n(e,a++)).subscribe(Nt(t,(function(e){t.next(e)}),(function(){s=!0}),void 0,(function(){if(s)try{for(i--;o.length&&i<r;)e=o.shift(),l(e);c()}catch(e){t.error(e)}var e})))};return e.subscribe(Nt(t,(function(e){return i<r?l(e):o.push(e)}),(function(){s=!0,c()}))),function(){}}(t,r,e,n)})))}function Wn(e){return void 0===e&&(e=1/0),qn(jt,e)}function Gn(){return Wn(1)}function Kn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gn()(Tn(e,pn(e)))}function Qn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dn(e),r=function(e){if(1===e.length){var t=e[0];if(Bn(t))return{args:t,keys:null};if((r=t)&&"object"==Te(r)&&Un(r)===Hn){var n=Fn(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}(e),o=r.args,i=r.keys,a=new Lt((function(e){var t=o.length;if(t)for(var n=new Array(t),r=t,a=t,s=function(t){var s=!1;kn(o[t]).subscribe(Nt(e,(function(e){s||(s=!0,a--),n[t]=e}),(function(){return r--}),void 0,(function(){r&&s||(a||e.next(i?function(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}(i,n):n),e.complete())})))},c=0;c<t;c++)s(c);else e.complete()}));return n?a.pipe(Vn(n)):a}var Zn=["addListener","removeListener"],Jn=["addEventListener","removeEventListener"],Yn=["on","off"];function Xn(e,t,n,r){if(mt(n)&&(r=n,n=void 0),r)return Xn(e,t,n).pipe(Vn(r));var o=pt(function(e){return mt(e.addEventListener)&&mt(e.removeEventListener)}(e)?Jn.map((function(r){return function(o){return e[r](t,o,n)}})):function(e){return mt(e.addListener)&&mt(e.removeListener)}(e)?Zn.map($n(e,t)):function(e){return mt(e.on)&&mt(e.off)}(e)?Yn.map($n(e,t)):[],2),i=o[0],a=o[1];if(!i&&hn(e))return qn((function(e){return Xn(e,t,n)}))(kn(e));if(!i)throw new TypeError("Invalid event target");return new Lt((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return i(t),function(){return a(t)}}))}function $n(e,t){return function(n){return function(r){return e[n](t,r)}}}function er(e,t,n){return n?er(e,t).pipe(Vn(n)):new Lt((function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},o=e(r);return mt(t)?function(){return t(r,o)}:void 0}))}function tr(e,t,n){void 0===e&&(e=0),void 0===n&&(n=on);var r=-1;return null!=t&&(ln(t)?n=t:r=t),new Lt((function(t){var o=Pn(e)?+e-n.now():e;o<0&&(o=0);var i=0;return n.schedule((function(){t.closed||(t.next(i++),0<=r?this.schedule(void 0,r):t.complete())}),o)}))}function nr(e,t){return void 0===e&&(e=0),void 0===t&&(t=rn),e<0&&(e=0),tr(e,e,t)}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pn(e),r=function(e){return"number"==typeof un(e)?e.pop():1/0}(e),o=e;return o.length?1===o.length?kn(o[0]):Wn(r)(Tn(o,n)):cn}var or=new Lt(St),ir=Array.isArray;function ar(e,t){return function(n,r){return!e.call(t,n,r)}}function sr(e,t){return zt((function(n,r){var o=0;n.subscribe(Nt(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}function cr(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===(t=1===(e=t).length&&ir(e[0])?e[0]:e).length?kn(t[0]):new Lt(function(e){return function(t){for(var n=[],r=function(r){n.push(kn(e[r]).subscribe(Nt(t,(function(e){if(n){for(var o=0;o<n.length;o++)o!==r&&n[o].unsubscribe();n=null}t.next(e)}))))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}(t))}function lr(e){return zt((function(t,n){var r,o=null,i=!1;o=t.subscribe(Nt(n,void 0,void 0,(function(a){r=kn(e(a,lr(e)(t))),o?(o.unsubscribe(),o=null,r.subscribe(n)):i=!0}))),i&&(o.unsubscribe(),o=null,r.subscribe(n))}))}function ur(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pn(e);return zt((function(t,r){Gn()(Tn(ht([t],pt(e)),n)).subscribe(r)}))}function dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ur.apply(void 0,ht([],pt(e)))}function pr(e,t){return void 0===t&&(t=rn),zt((function(n,r){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,r.next(e)}};function c(){var n=a+e,i=t.now();if(i<n)return o=this.schedule(void 0,n-i),void r.add(o);s()}n.subscribe(Nt(r,(function(n){i=n,a=t.now(),o||(o=t.schedule(c,e),r.add(o))}),(function(){s(),r.complete()}),void 0,(function(){i=o=null})))}))}function hr(e){return e<=0?function(){return cn}:zt((function(t,n){var r=0;t.subscribe(Nt(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function fr(e){return zn((function(){return e}))}function mr(e,t){void 0===t&&(t=rn);var n,r=tr(e,t);return n=function(){return r},qn((function(e,t){return kn(n()).pipe(hr(1),fr(e))}))}function _r(e,t,n){return void 0===n&&(n=1/0),mt(t)?qn((function(){return e}),t,n):qn((function(){return e}),n)}function gr(e,t){return zt(function(e,t,n){return function(r,o){var i=n,a=t,s=0;r.subscribe(Nt(o,(function(t){var n=s++;a=i?e(a,t,n):(i=!0,t),o.next(a)}),void 0))}}(e,t,arguments.length>=2))}function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pn(e);return zt((function(t,r){(n?Kn(e,t,n):Kn(e,t)).subscribe(r)}))}function br(e,t){return zt((function(n,r){var o=null,i=0,a=!1,s=function(){return a&&!o&&r.complete()};n.subscribe(Nt(r,(function(n){null==o||o.unsubscribe();var a=0,c=i++;kn(e(n,c)).subscribe(o=Nt(r,(function(e){return r.next(t?t(n,e,c,a++):e)}),(function(){o=null,s()})))}),(function(){a=!0,s()})))}))}function wr(e){return zt((function(t,n){kn(e).subscribe(Nt(n,(function(){return n.complete()}),St)),!n.closed&&t.subscribe(n)}))}function yr(e,t){return void 0===t&&(t=!1),zt((function(n,r){var o=0;n.subscribe(Nt(r,(function(n){var i=e(n,o++);(i||t)&&r.next(n),!i&&r.complete()})))}))}function kr(e,t,n){var r=mt(e)||t||n?{next:e,error:t,complete:n}:e;return r?zt((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var o=!0;e.subscribe(Nt(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;o=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;o=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;o&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):jt}function xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dn(e);return zt((function(t,r){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),s=!1,c=function(t){kn(e[t]).subscribe(Nt(r,(function(e){i[t]=e,s||a[t]||(a[t]=!0,(s=a.every(jt))&&(a=null))}),St))},l=0;l<o;l++)c(l);t.subscribe(Nt(r,(function(e){if(s){var t=ht([e],pt(i));r.next(n?n.apply(void 0,ht([],pt(t))):t)}})))}))}var Sr=function(e){function t(t,n){var r=e.call(this,(function(e){var t=r