extra-react-hooks 0.1.15 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +6 -6
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +6 -6
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +6 -6
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +6 -6
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/use-multiple-selection.d.ts +1 -1
- package/lib/es2015/use-multiple-selection.js +3 -3
- package/lib/es2015/use-multiple-selection.js.map +1 -1
- package/lib/es2015/use-single-selection.d.ts +2 -2
- package/lib/es2015/use-single-selection.js +3 -3
- package/lib/es2015/use-single-selection.js.map +1 -1
- package/lib/es2018/use-multiple-selection.d.ts +1 -1
- package/lib/es2018/use-multiple-selection.js +3 -3
- package/lib/es2018/use-multiple-selection.js.map +1 -1
- package/lib/es2018/use-single-selection.d.ts +2 -2
- package/lib/es2018/use-single-selection.js +3 -3
- package/lib/es2018/use-single-selection.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ var e,t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/function p(){return c||(c=1,e=f,"production"!==process.env.NODE_ENV&&function(){var t=a(),r=60103,n=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,u=60112;e.Suspense=60113;var c=60120,s=60115,l=60116,f=60121,p=60122,d=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),u=y("react.forward_ref"),e.Suspense=y("react.suspense"),c=y("react.suspense_list"),s=y("react.memo"),l=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),d=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),v=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},w={current:null},O={},S=null;function _(e){S=e}O.setExtraStackFrame=function(e){S=e},O.getCurrentStack=null,O.getStackAddendum=function(){var e="";S&&(e+=S);var t=O.getCurrentStack;return t&&(e+=t()||""),e};var x={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:t};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("warn",e,r)}function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("error",e,r)}function A(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=O;var P={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;P[o]||(E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),P[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},k={};function C(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}Object.freeze(k),C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(C.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var R in F)F.hasOwnProperty(R)&&M(R,F[R]);function N(){}function B(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}N.prototype=C.prototype;var L=B.prototype=new N;function z(e){return e.displayName||"Context"}function U(t){if(null==t)return null;if("number"==typeof t.tag&&E("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case n:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return z(t)+".Consumer";case o:return z(t._context)+".Provider";case u:return d=t,v=t.render,b="ForwardRef",y=v.displayName||v.name||"",d.displayName||(""!==y?b+"("+y+")":b);case s:return U(t.type);case f:return U(t._render);case l:var r=t,a=r._payload,p=r._init;try{return U(p(a))}catch(e){return null}}var d,v,b,y;return null}L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var W,q,D,$=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){W||(W=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function K(e,t){var r=function(){q||(q=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=U(w.current.type);D[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),D[t]=!0)}}D={};var Q=function(e,t,n,o,i,a,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},i=null,a=null,u=null,c=null;if(null!=t)for(n in Y(t)&&(a=t.ref,G(t)),J(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)$.call(t,n)&&!V.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&K(o,d)}return Q(e,i,a,u,c,w.current,o)}function Z(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,a=t({},e.props),u=e.key,c=e.ref,s=e._self,l=e._source,f=e._owner;if(null!=r)for(o in Y(r)&&(c=r.ref,f=w.current),J(r)&&(u=""+r.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),r)$.call(r,o)&&!V.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),v=0;v<p;v++)d[v]=arguments[v+2];a.children=d}return Q(e.type,u,c,s,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),v=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var b="";null!=v&&(b=ne(v)+"/"),ie(d,t,b,"",(function(e){return e}))}else null!=d&&(ee(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+v,d=Q(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var y=0,h=""===i?".":i+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)y+=ie(l=e[g],t,o,h+oe(l,g),a);else{var w=m(e);if("function"==typeof w){var O=e;w===O.entries&&(te||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,_=w.call(O),x=0;!(S=_.next()).done;)y+=ie(l=S.value,t,o,h+oe(l,x++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===e.Profiler||t===v||t===e.StrictMode||t===e.Suspense||t===c||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===i||t.$$typeof===u||t.$$typeof===d||t.$$typeof===f||t[0]===p)}function se(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var le,fe,pe,de,ve,be,ye,he=0;function me(){}me.__reactDisabledLog=!0;var ge,we=x.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===ge)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);ge=n&&n[1]||""}return"\n"+ge+e}var Se,_e=!1,xe="function"==typeof WeakMap?WeakMap:Map;function je(e,r){if(!e||_e)return"";var n,o=Se.get(e);if(void 0!==o)return o;_e=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=we.current,we.current=null,function(){if(0===he){le=console.log,fe=console.info,pe=console.warn,de=console.error,ve=console.group,be=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(e,[],u)}else{try{u.call()}catch(e){n=e}e.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{_e=!1,we.current=i,function(){if(0==--he){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:le}),info:t({},e,{value:fe}),warn:t({},e,{value:pe}),error:t({},e,{value:de}),group:t({},e,{value:ve}),groupCollapsed:t({},e,{value:be}),groupEnd:t({},e,{value:ye})})}he<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",v=d?Oe(d):"";return"function"==typeof e&&Se.set(e,v),v}function Ee(e,t,r){return je(e,!1)}function Ae(t,r,n){if(null==t)return"";if("function"==typeof t)return je(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return Oe(t);switch(t){case e.Suspense:return Oe("Suspense");case c:return Oe("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return Ee(t.render);case s:return Ae(t.type,r,n);case f:return Ee(t._render);case l:var o=t,i=o._payload,a=o._init;try{return Ae(a(i),r,n)}catch(e){}}return""}Se=new xe;var Pe,Te={},Ie=x.ReactDebugCurrentFrame;function ke(e){if(e){var t=e._owner,r=Ae(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function Ce(e){if(e){var t=e._owner;_(Ae(e.type,e._source,t?t.type:null))}else _(null)}function Fe(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Me(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Re={};function Ne(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Fe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Re[r]){Re[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+U(e._owner.type)+"."),Ce(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ce(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Ne(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Ne(i.value,t)}}function Le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=U(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(ke(o),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),ke(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,ke(o),E("Failed %s type: %s",r,u.message),ke(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ze(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ce(null);break}}null!==e.ref&&(Ce(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null))}function Ue(t,n,o){var i=ce(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=Me(n);a+=c||Fe(),null===t?u="null":Array.isArray(t)?u="array":void 0!==t&&t.$$typeof===r?(u="<"+(U(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof t,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var s=X.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)Be(arguments[l],t);return t===e.Fragment?ze(s):Le(s),s}var We=!1;try{var qe=Object.freeze({});new Map([[qe,null]]),new Set([qe])}catch(e){}var De=Ue,$e=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],n.type);return Le(n),n},Ve=function(e){var t=Ue.bind(null,e);return t.type=e,We||(We=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ye={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ye,e.Component=C,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,e.cloneElement=$e,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&E("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,a=!1,u=!1,c={$$typeof:i,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},e.createElement=De,e.createFactory=Ve,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===s?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:u,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},e.isValidElement=ee,e.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},e.memo=function(e,t){ce(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var r=se();if(void 0!==t&&E("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,r){return se().useReducer(e,t,r)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()),f;var e}function d(e){const[t,r]=o.exports.useState(e);return[t,o.exports.useCallback(((e=1)=>{r((t=>t+e))}),[]),o.exports.useCallback((()=>{r(e)}),[])]}function v(e){o.exports.useEffect(e,[])}function b(){const e=o.exports.useRef(!1);return v((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}function y(){const e=o.exports.useRef(l.InitialValue);switch(e.current){case l.InitialValue:e.current=l.First;break;case l.First:e.current=l.NotFirst;break;case l.NotFirst:}return()=>e.current===l.First}function h(){const e=o.exports.useRef(0);return e.current++,e.current}function m(e,t){const r=y();o.exports.useEffect((()=>{if(!r())return e()}),t)}s=o,"production"===process.env.NODE_ENV?s.exports=u():s.exports=p(),function(e){e[e.InitialValue=0]="InitialValue",e[e.First=1]="First",e[e.NotFirst=2]="NotFirst"}(l||(l={}));var g={},w={};function O(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=O,w.isntArray=function(e){return!O(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var S={},_={};function x(e){return null===e}_.isntNull=_.isNull=void 0,_.isNull=x,_.isntNull=function(e){return!x(e)};var j={};function E(e){return void 0===e}j.isntUndefined=j.isUndefined=void 0,j.isUndefined=E,j.isntUndefined=function(e){return!E(e)};var A={};function P(e){return"function"==typeof e}A.isntFunction=A.isFunction=void 0,A.isFunction=P,A.isntFunction=function(e){return!P(e)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const T=_,I=j,k=A;function C(e){return(0,T.isntNull)(e)&&(0,I.isntUndefined)(e)&&(0,k.isFunction)(e[Symbol.asyncIterator])}S.isAsyncIterable=C,S.isntAsyncIterable=function(e){return!C(e)};var F={};function M(e){return"bigint"==typeof e}F.isntBigInt=F.isBigInt=void 0,F.isBigInt=M,F.isntBigInt=function(e){return!M(e)};var R={};function N(e){return"boolean"==typeof e}R.isntBoolean=R.isBoolean=void 0,R.isBoolean=N,R.isntBoolean=function(e){return!N(e)};var B={},L={};function z(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=z,L.isntString=function(e){return!z(e)},B.isntChar=B.isChar=void 0;const U=L;function W(e){return(0,U.isString)(e)&&1===e.length}B.isChar=W,B.isntChar=function(e){return!W(e)};var q={};function D(e){return e instanceof Date}q.isntDate=q.isDate=void 0,q.isDate=D,q.isntDate=function(e){return!D(e)};var $={};$.inEnum=void 0,$.inEnum=function(e,t){return Object.values(t).includes(e)};var V={};function Y(e){return e instanceof Error}V.isntError=V.isError=void 0,V.isError=Y,V.isntError=function(e){return!Y(e)};var J={};function H(e){return!e}J.isntFalsy=J.isFalsy=void 0,J.isFalsy=H,J.isntFalsy=function(e){return!H(e)};var K={};K.isntIterable=K.isIterable=void 0;const G=_,Q=j,X=A;function Z(e){return(0,G.isntNull)(e)&&(0,Q.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Z,K.isntIterable=function(e){return!Z(e)};var ee={},te={};function re(e){return"number"==typeof e}function ne(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=re,te.isntNumber=function(e){return!re(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=ne,te.isntNaN=function(e){return!ne(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=(ie||ae||Function("return this")()).Symbol,ce=ue,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0;var de=function(e){var t=le.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(e){}var o=fe.call(e);return n&&(t?e[pe]=r:delete e[pe]),o},ve=Object.prototype.toString;var be=de,ye=function(e){return ve.call(e)},he=ue?ue.toStringTag:void 0;var me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?be(e):ye(e)};var ge=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var we=me,Oe=ge,Se=function(e){return null!=e&&"object"==typeof e},_e=Function.prototype,xe=Object.prototype,je=_e.toString,Ee=xe.hasOwnProperty,Ae=je.call(Object);var Pe=function(e){if(!Se(e)||"[object Object]"!=we(e))return!1;var t=Oe(e);if(null===t)return!0;var r=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&je.call(r)==Ae},Te=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Ie=Te(Pe);function ke(e){return null!==e&&"object"==typeof e}function Ce(e){return(0,Ie.default)(e)}oe.isObject=ke,oe.isntObject=function(e){return!ke(e)},oe.isPlainObject=Ce,oe.isntPlainObject=function(e){return!Ce(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Fe=_,Me=R,Re=L,Ne=te,Be=w,Le=oe;function ze(e){return(0,Fe.isNull)(e)||(0,Me.isBoolean)(e)||(0,Re.isString)(e)||(0,Ne.isNumber)(e)||(0,Be.isArray)(e)&&e.every(ze)||(0,Le.isPlainObject)(e)&&Object.values(e).every(ze)}ee.isJson=ze,ee.isntJson=function(e){return!ze(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var Ue={};Ue.isPromiseLike=Ue.isntPromiseLike=Ue.isntPromise=Ue.isPromise=void 0;const We=oe,qe=A;function De(e){return e instanceof Promise}function $e(e){return(0,We.isObject)(e)&&(0,qe.isFunction)(e.then)}Ue.isPromise=De,Ue.isntPromise=function(e){return!De(e)},Ue.isntPromiseLike=function(e){return!$e(e)},Ue.isPromiseLike=$e;var Ve,Ye,Je,He={};He.isAbsoluteURL=void 0,He.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},Ve=g,Ye=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),(Je=n&&n.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Ye(t,e,r)})(w,Ve),Je(S,Ve),Je(F,Ve),Je(R,Ve),Je(B,Ve),Je(q,Ve),Je($,Ve),Je(V,Ve),Je(J,Ve),Je(A,Ve),Je(K,Ve),Je(ee,Ve),Je(_,Ve),Je(te,Ve),Je(oe,Ve),Je(Ue,Ve),Je(L,Ve),Je(j,Ve),Je(He,Ve);var Ke,Ge={},Qe={},Xe={},Ze={},et={},tt={},rt={};rt.go=void 0,rt.go=function(e){return e()},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(rt,e)}(tt);var nt={chunkByAsync:void 0};const ot=g;nt.chunkByAsync=function(e,t){return(0,ot.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e):async function*(e){let r=[],n=0;for(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e)};var it={};it.chunkBy=void 0,it.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)};var at,ut={};var ct={concatAsync:void 0};const st=g,lt=tt;ct.concatAsync=function(e,...t){return(0,lt.go)((async function*(){for(const r of[e,...t])if((0,st.isAsyncIterable)(r))for await(const e of r)yield e;else for(const e of r)yield e}))};var ft={concat:void 0};const pt=tt;ft.concat=function(e,...t){return(0,pt.go)((function*(){for(const r of[e,...t])yield*r}))};var dt,vt={},bt={};bt.copyIterable=bt.copyAsyncIterable=void 0,bt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},bt.copyIterable=function*(e){for(const t of e)yield t};var yt,ht={};var mt,gt={};var wt={dropUntilAsync:void 0};const Ot=g;wt.dropUntilAsync=function(e,t){return(0,Ot.isAsyncIterable)(e)?async function*(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await n.next())}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}}(e):async function*(e){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}}(e)};var St={};St.dropUntil=void 0,St.dropUntil=function*(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}};var _t,xt={};var jt={filterAsync:void 0};const Et=g;jt.filterAsync=function(e,t){return(0,Et.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r)&&(yield n),r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r)&&(yield n),r++}(e)};var At={};At.filter=void 0,At.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++};var Pt={},Tt={},It={flattenByAsync:void 0};const kt=g;function Ct(e){return(0,kt.isIterable)(e)&&(0,kt.isntChar)(e)}var Ft,Mt;function Rt(){if(Ft)return Tt;Ft=1,Tt.flattenDeepAsync=void 0;const e=It,t=Wn();return Tt.flattenDeepAsync=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(r,((e,t)=>t<=n))},Tt}It.flattenByAsync=function(e,t){return(0,kt.isAsyncIterable)(e)?async function*(e){const n=1;for await(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}(e):function(e){return r(e,1)}(e);async function*r(e,n){for(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}};var Nt={flattenBy:void 0};const Bt=g;Nt.flattenBy=function(e,t){return function*e(r,n){for(const i of r)o=i,(0,Bt.isIterable)(o)&&(0,Bt.isntChar)(o)&&t(i,n)?yield*e(i,n+1):yield i;var o}(e,1)};var Lt,zt={};function Ut(){if(Lt)return zt;Lt=1,zt.flattenDeep=void 0;const e=Nt,t=Wn();return zt.flattenDeep=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(r,((e,t)=>t<=n))},zt}var Wt,qt={};var Dt={mapAsync:void 0};const $t=g;Dt.mapAsync=function(e,t){return(0,$t.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)yield await t(n,r),r++}(e):async function*(e){let r=0;for(const n of e)yield await t(n,r),r++}(e)};var Vt={};Vt.map=void 0,Vt.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++};var Yt,Jt={};function Ht(){if(Yt)return Jt;Yt=1,Jt.repeatAsync=void 0;const e=tt,t=Wn();return Jt.repeatAsync=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(n>0){for await(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Jt}var Kt,Gt={};function Qt(){if(Kt)return Gt;Kt=1,Gt.repeat=void 0;const e=tt,t=Wn();return Gt.repeat=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(n>0){for(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Gt}var Xt,Zt={};var er,tr={};var rr={};rr.splitAsync=void 0,rr.splitAsync=async function*(e,t){let r=[];for await(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var nr={splitByAsync:void 0};const or=g;nr.splitByAsync=function(e,t){return(0,or.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e):async function*(e){let r=[],n=0;for(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e)};var ir={};ir.splitBy=void 0,ir.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r};var ar={};ar.split=void 0,ar.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var ur,cr={};var sr,lr={};var fr,pr={};var dr={takeUntilAsync:void 0};const vr=g;dr.takeUntilAsync=function(e,t){return(0,vr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e){if(await t(n,r))break;yield n,r++}}(e):async function*(e){let r=0;for(const n of e){if(await t(n,r))break;yield n,r++}}(e)};var br={};br.takeUntil=void 0,br.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}};var yr,hr={};var mr={tapAsync:void 0};const gr=g;mr.tapAsync=function(e,t){return(0,gr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r),yield n,r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r),yield n,r++}(e)};var wr={};wr.tap=void 0,wr.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++};var Or={};Or.toAsyncIterable=void 0,Or.toAsyncIterable=async function*(e){for(const t of e)yield t};var Sr={};Sr.transformAsync=void 0,Sr.transformAsync=async function*(e,t){yield*t(e)};var _r={};_r.transform=void 0,_r.transform=function*(e,t){yield*t(e)};var xr={};xr.uniqAsync=void 0,xr.uniqAsync=async function*(e){const t=new Set;for await(const r of e)t.has(r)||(yield r,t.add(r))};var jr={uniqByAsync:void 0};const Er=g;jr.uniqByAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function*(e){const r=new Set;let n=0;for await(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e):async function*(e){const r=new Set;let n=0;for(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e)};var Ar={};Ar.uniqBy=void 0,Ar.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}};var Pr={};Pr.uniq=void 0,Pr.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))};var Tr={zipAsync:void 0};const Ir=g;var kr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(kr||(kr={})),Tr.zipAsync=function(e,...t){return async function*(...e){var t,r,n,o;const i=e.length,a=e.map((e=>(0,Ir.isAsyncIterable)(e)?[kr.Async,e[Symbol.asyncIterator]()]:[kr.Sync,e[Symbol.iterator]()])),u=a.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[r,n]=a[t];let o;if(o=r===kr.Async?await n.next():n.next(),o.done)return void(u[t]=!0);e[t]=o.value}yield e}}finally{const e=a.filter(((e,t)=>!u[t]));for(const[i,a]of e)i===kr.Async?await(null===(r=(t=a).return)||void 0===r?void 0:r.call(t)):null===(o=(n=a).return)||void 0===o||o.call(n)}}(e,...t)};var Cr,Fr={};function Mr(){return Cr||(Cr=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(function(){if(Ke)return et;Ke=1,et.chunkAsync=void 0;const e=tt,t=Wn();return et.chunkAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},et}(),e),r(nt,e),r(it,e),r(function(){if(at)return ut;at=1,ut.chunk=void 0;const e=tt,t=Wn();return ut.chunk=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},ut}(),e),r(ct,e),r(ft,e),r(function(){if(dt)return vt;dt=1,vt.dropAsync=void 0;const e=tt,t=bt,r=Wn();return vt.dropAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let r;try{let n;for(;({value:n,done:r}=await t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=await t.next())}finally{r||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},vt}(),e),r(function(){if(yt)return ht;yt=1,ht.dropRightAsync=void 0;const e=tt,t=bt,r=Wn();return ht.dropRightAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const r of e)t.push(r);return t}(n)).slice(0,-o);for(const t of e)yield t}))},ht}(),e),r(function(){if(mt)return gt;mt=1,gt.dropRight=void 0;const e=tt,t=bt,r=Wn();return gt.dropRight=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){const e=Array.from(n);yield*e.slice(0,-o)}))},gt}(),e),r(wt,e),r(St,e),r(function(){if(_t)return xt;_t=1,xt.drop=void 0;const e=tt,t=bt,r=Wn();return xt.drop=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let r;try{let n;for(;({value:n,done:r}=t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=t.next())}finally{r||null===(e=t.return)||void 0===e||e.call(t)}}))},xt}(),e),r(jt,e),r(At,e),r(function(){if(Mt)return Pt;Mt=1,Pt.flattenAsync=void 0;const e=Rt();return Pt.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},Pt}(),e),r(It,e),r(Nt,e),r(Rt(),e),r(Ut(),e),r(function(){if(Wt)return qt;Wt=1,qt.flatten=void 0;const e=Ut();return qt.flatten=function(t){return(0,e.flattenDeep)(t,1)},qt}(),e),r(Dt,e),r(Vt,e),r(Ht(),e),r(Qt(),e),r(function(){if(Xt)return Zt;Xt=1,Zt.sliceAsync=void 0;const e=tt,t=Wn();return Zt.sliceAsync=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},Zt}(),e),r(function(){if(er)return tr;er=1,tr.slice=void 0;const e=tt,t=Wn();return tr.slice=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},tr}(),e),r(rr,e),r(nr,e),r(ir,e),r(ar,e),r(function(){if(ur)return cr;ur=1,cr.takeAsync=void 0;const e=tt,t=Wn();return cr.takeAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==n)for await(const e of r)if(yield e,0==--n)break}))},cr}(),e),r(function(){if(sr)return lr;sr=1,lr.takeRightAsync=void 0;const e=tt,t=Wn();return lr.takeRightAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=await t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},lr}(),e),r(function(){if(fr)return pr;fr=1,pr.takeRight=void 0;const e=tt,t=Wn();return pr.takeRight=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},pr}(),e),r(dr,e),r(br,e),r(function(){if(yr)return hr;yr=1,hr.take=void 0;const e=tt,t=Wn();return hr.take=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==n)for(const e of r)if(yield e,0==--n)break}))},hr}(),e),r(mr,e),r(wr,e),r(Or,e),r(Sr,e),r(_r,e),r(xr,e),r(jr,e),r(Ar,e),r(Pr,e),r(Tr,e),r(Fr,e)}(Ze)),Ze}Fr.zip=void 0,Fr.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]())),n=r.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=r[o].next();if(i)return void(n[o]=!0);e[o]=t}yield e}}finally{r.filter(((e,t)=>!n[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var Rr={},Nr={};Nr.consume=void 0,Nr.consume=function(e,t){return t(e)};var Br={eachAsync:void 0};const Lr=g;Br.eachAsync=function(e,t){return(0,Lr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e)await t(n,r),r++}(e):async function(e){let r=0;for(const n of e)await t(n,r),r++}(e)};var zr={};zr.each=void 0,zr.each=function(e,t){let r=0;for(const n of e)t(n,r),r++};var Ur={everyAsync:void 0};const Wr=g;Ur.everyAsync=function(e,t){return(0,Wr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(!await t(n,r))return!1;r++}return!0}(e):async function(e){let r=0;for(const n of e){if(!await t(n,r))return!1;r++}return!0}(e)};var qr={};qr.every=void 0,qr.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0};var Dr={findAsync:void 0};const $r=g;Dr.findAsync=function(e,t){return(0,$r.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return n;r++}return}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return n;r++}return}(e)};var Vr={};Vr.find=void 0,Vr.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}};var Yr={};Yr.firstAsync=void 0,Yr.firstAsync=async function(e){for await(const t of e)return t};var Jr={};Jr.first=void 0,Jr.first=function(e){for(const t of e)return t};var Hr={};Hr.includesAsync=void 0,Hr.includesAsync=async function(e,t){for await(const r of e)if(r===t)return!0;return!1};var Kr={};Kr.includes=void 0,Kr.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1};var Gr={};Gr.matchAsync=void 0,Gr.matchAsync=async function(e,t){const r=t.length;let n=0;for await(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Qr={};Qr.match=void 0,Qr.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Xr={reduceAsync:void 0};const Zr=g;Xr.reduceAsync=function(e,t,r){return(0,Zr.isUndefined)(r)?function(e,t){return(0,Zr.isAsyncIterable)(e)?r(e):n(e);async function r(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,a=await i(n),u=1;for(;({value:e,done:o}=await n.next()),!o;)a=await t(a,e,u++);return a}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function n(e){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=await t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,r){return(0,Zr.isAsyncIterable)(e)?o(e):n(e);async function n(e){let n=r,o=0;for(const r of e)n=await t(n,r,o++);return n}async function o(e){let n=r,o=0;for await(const r of e)n=await t(n,r,o++);return n}}(e,t,r)};var en={reduce:void 0};const tn=g;en.reduce=function(e,t,r){return(0,tn.isUndefined)(r)?function(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)};var rn={someAsync:void 0};const nn=g;rn.someAsync=function(e,t){return(0,nn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return!0;r++}return!1}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return!0;r++}return!1}(e)};var on={};on.some=void 0,on.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1};var an={};an.lastAsync=void 0,an.lastAsync=async function(e){var t;const r=e[Symbol.asyncIterator]();let n;try{let e,o;for(;({value:e,done:n}=await r.next()),!n;)o=e;return o}finally{n||await(null===(t=r.return)||void 0===t?void 0:t.call(r))}};var un={};un.last=void 0,un.last=function(e){var t;const r=e[Symbol.iterator]();let n;try{let e,o;for(;({value:e,done:n}=r.next()),!n;)o=e;return o}finally{n||null===(t=r.return)||void 0===t||t.call(r)}};var cn={toArrayAsync:void 0};const sn=Nr;cn.toArrayAsync=function(e){return(0,sn.consume)(e,(async e=>{const t=[];for await(const r of e)t.push(r);return t}))};var ln={toArray:void 0};const fn=Nr;ln.toArray=function(e){return(0,fn.consume)(e,(e=>Array.from(e)))};var pn={toSetAsync:void 0};const dn=Nr;pn.toSetAsync=function(e){return(0,dn.consume)(e,(async e=>{const t=new Set;for await(const r of e)t.add(r);return t}))};var vn={toSet:void 0};const bn=Nr;vn.toSet=function(e){return(0,bn.consume)(e,(e=>new Set(e)))};var yn={};yn.count=void 0,yn.count=function(e){let t=0;for(const r of e)t++;return t};var hn,mn={};function gn(){return hn||(hn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Mr(),e),r(Rr,e)}(Xe)),Xe}mn.countAsync=void 0,mn.countAsync=async function(e){let t=0;for await(const r of e)t++;return t},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Nr,e),r(Br,e),r(zr,e),r(Ur,e),r(qr,e),r(Dr,e),r(Vr,e),r(Yr,e),r(Jr,e),r(Hr,e),r(Kr,e),r(Gr,e),r(Qr,e),r(Xr,e),r(en,e),r(rn,e),r(on,e),r(an,e),r(un,e),r(cn,e),r(ln,e),r(pn,e),r(vn,e),r(yn,e),r(mn,e)}(Rr);var wn={},On={};On.traverseErrorPrototypeChain=void 0,On.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},wn.getErrorNames=void 0;const Sn=g,_n=On;wn.getErrorNames=function*(e){var t;if((0,Sn.isError)(e))for(const r of(0,_n.traverseErrorPrototypeChain)(e))(null===(t=r.constructor)||void 0===t?void 0:t.name)&&(yield r.constructor.name);else yield e.name,yield*e.ancestors};var xn={isSerializableError:void 0};const jn=g;var En;function An(){if(En)return Qe;En=1,Qe.CustomError=void 0;const e=gn(),t=wn,r=g,n=xn;class o extends Error{get name(){var r,n;return null!==(n=null!==(r=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==r?r:o.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,r.isError)(o)||(0,n.isSerializableError)(o)){const r=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),n=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return r.every(((e,t)=>e===n[t]))}return!1}}return Qe.CustomError=o,Qe}xn.isSerializableError=function(e){return(0,jn.isObject)(e)&&(0,jn.isString)(e.name)&&(0,jn.isString)(e.message)&&((0,jn.isString)(e.stack)||(0,jn.isNull)(e.stack))&&(0,jn.isArray)(e.ancestors)&&e.ancestors.every(jn.isString)};var Pn,Tn={};function In(){if(Pn)return Tn;Pn=1,Tn.AssertionError=void 0;const e=An();class t extends e.CustomError{}return Tn.AssertionError=t,Tn}var kn,Cn={};var Fn={},Mn={},Rn={};Rn.pass=void 0,Rn.pass=function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(Rn,e)}(Mn),Fn.hydrate=void 0;const Nn=Mn;function Bn(e,t){const r=function(){(0,Nn.pass)()};return(r.prototype=Object.create(e.prototype)).constructor=r,Object.defineProperty(r,"name",{value:t}),r}Fn.hydrate=function(e){var t;const r=[e.name,...e.ancestors].slice(0,-1).reverse();let n=Error;for(const e of r)n=Bn(n,e);const o=new n;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Ln,zn,Un={};function Wn(){return zn||(zn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(An(),e),r(In(),e),r(xn,e),r(function(){if(kn)return Cn;kn=1,Cn.normalize=void 0;const e=wn,t=gn();return Cn.normalize=function(r){var n;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(r));return{name:o,ancestors:i,message:r.message,stack:null!==(n=r.stack)&&void 0!==n?n:null}},Cn}(),e),r(Fn,e),r(function(){if(Ln)return Un;Ln=1,Un.assert=void 0;const e=In();return Un.assert=function(t,r){if(!t)throw new e.AssertionError(r)},Un}(),e),r(wn,e),r(On,e)}(Ge)),Ge}var qn=Wn();function Dn(e,t){qn.assert(e.length>0,"The parameter values must be a non-empty array"),g.isntUndefined(t)&&qn.assert(t>=0&&t<e.length,"The parameter defaultSelectedIndex must be in the range of 0 to values.length");const[r,n]=o.exports.useState(t);return{value:g.isUndefined(r)?void 0:e[r],options:e.map(((e,t)=>({value:e,index:t,selected:t===r,select:()=>n(t)})))}}var $n=gn();function Vn(e,t=[]){qn.assert(e.length>0,"The parameter values must be a non-empty array");for(const r of t)qn.assert(r>=0&&r<e.length,"The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length");const[r,n]=o.exports.useState(new Set(t));return{values:$n.toArray($n.map(r,(t=>e[t]))),options:e.map(((e,t)=>{const o=r.has(t),i=()=>{const e=new Set(r);e.add(t),n(e)},a=()=>{const e=new Set(r);e.delete(t),n(e)};return{value:e,index:t,selected:o,select:i,unselect:a,toggle:o?a:i}}))}}function Yn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>n((t=>t+1<e.length?t+1:0))]}function Jn(e=!1){const[t,r]=o.exports.useState(e);return[t,()=>r((e=>!e))]}function Hn(e,t){const r=t.map((e=>e.current));o.exports.useEffect((()=>{const r=new ResizeObserver(e);return t.map((e=>e.current)).filter(g.isntNull).forEach((e=>r.observe(e))),()=>r.disconnect()}),r)}function Kn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>{n((t=>t===e.length-1?t:t+1))},()=>{n((e=>0===e?e:e-1))}]}function Gn(){const[,e]=o.exports.useState({});return()=>e({})}var Qn={},Xn={Box:void 0};Xn.Box=class{constructor(e){this.value=e}set(e){this.value=e}get(){return this.value}};var Zn={};Zn.convertArrayToCons=Zn.convertConsToArray=void 0,Zn.convertConsToArray=function e([t,r]){return null===r?[t]:[t,...e(r)]},Zn.convertArrayToCons=function e([t,...r]){return[t,r.length?e(r):null]};var eo={Emitter:void 0};class to{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(e,t){this.map.has(e)||this.map.set(e,new Set);return this.map.get(e).add(r),()=>{if(!this.map.has(e))return;const t=this.map.get(e);t.delete(r),0===t.size&&this.map.delete(e)};function r(...e){t(...e)}}once(e,t){const r=this.on(e,((...e)=>{t(...e),r()}));return r}emit(e,...t){this.map.has(e)&&this.map.get(e).forEach((e=>e(...t)))}}eo.Emitter=to;var ro={HashMap:void 0};class no{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.set(this.hash(e),t),this}has(e){return this.map.has(this.hash(e))}get(e){return this.map.get(this.hash(e))}delete(e){return this.map.delete(this.hash(e))}clear(){this.map.clear()}}ro.HashMap=no;var oo={HashSet:void 0};class io{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(e){return this.map.set(this.hash(e),e),this}delete(e){return this.map.delete(this.hash(e))}has(e){return this.map.has(this.hash(e))}clear(){this.map.clear()}values(){return this.map.values()}}oo.HashSet=io;var ao={Queue:void 0};class uo{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...e){this.items.push(...e)}dequeue(){return this.items.shift()}remove(e){let t;for(;(t=this.items.indexOf(e))>=0;)this.items.splice(t,1)}}ao.Queue=uo;var co={LRUMap:void 0};const so=Wn(),lo=gn();class fo{constructor(e){this.map=new Map,(0,so.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,so.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.has(e)?this.updateItem(e,t):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t)),this}has(e){return this.map.has(e)}get(e){if(!this.has(e))return;const t=this.map.get(e);return this.updateItem(e,t),t}delete(e){return this.map.delete(e)}clear(){this.map.clear()}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}getColdestKey(){return(0,lo.first)(this.map.keys())}}co.LRUMap=fo;var po={},vo={},bo={},yo={},ho={};ho.random=void 0,ho.random=function(e,t){return Math.random()*(t-e)+e};var mo={};mo.randomInt=void 0,mo.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var go={};go.randomIntInclusive=void 0,go.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ho,e),r(mo,e),r(go,e)}(yo),bo.calculateExponentialBackoffTimeout=void 0;const wo=yo;bo.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:r=1/0,factor:n=2,jitter:o=!0}){const i=Math.min(n**t*e,r);return o?(0,wo.randomIntInclusive)(0,i):i};var Oo={};Oo.setTimeout=void 0,Oo.setTimeout=function(e,t){const r=globalThis.setTimeout(t,e);return()=>clearTimeout(r)};var So={setSchedule:void 0};const _o=Oo;So.setSchedule=function(e,t){const r=e-Date.now();return(0,_o.setTimeout)(r,t)};var xo={};xo.setInterval=void 0,xo.setInterval=function(e,t){const r=globalThis.setInterval(t,e);return()=>clearInterval(r)};var jo={setImmediate:void 0};const Eo=Oo;jo.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Eo.setTimeout)(0,e)};var Ao={setTimeoutLoop:void 0};const Po=Oo;Ao.setTimeoutLoop=function(e,t){let r=!1,n=(0,Po.setTimeout)(e,(async function o(){await t(),r||(n=(0,Po.setTimeout)(e,o))}));return()=>{r=!0,n()}};var To={setDynamicTimeoutLoop:void 0};const Io=Oo;To.setDynamicTimeoutLoop=function(e,t){let r=!1,n=(0,Io.setTimeout)(e,(async function o(){const i=Date.now();await t();const a=Date.now()-i;r||(n=(0,Io.setTimeout)(Math.max(e-a,0),o))}));return()=>{r=!0,n()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(bo,e),r(Oo,e),r(So,e),r(xo,e),r(jo,e),r(Ao,e),r(To,e)}(vo),po.ExpirableMap=void 0;const ko=vo;class Co{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r),this}has(e){return this.map.has(e)}get(e){return this.map.get(e)}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,ko.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}}po.ExpirableMap=Co;var Fo={TLRUMap:void 0};const Mo=Wn(),Ro=gn(),No=vo;class Bo{constructor(e){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],(0,Mo.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Mo.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t),this.addItemMetadata(e,Date.now()+r)),this}has(e){return this.map.has(e)}get(e){if(this.has(e)){const t=this.map.get(e);return this.updateItem(e,t),t}}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,No.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return(0,Ro.first)(this.map.keys())}}Fo.TLRUMap=Bo;var Lo={TrieMap:void 0};const zo=gn();class Uo{constructor(e){this.value=e,this.children=new Map}}class Wo{constructor(){this.root=new Uo}get[Symbol.toStringTag](){return this.constructor.name}set(e,t){let r=this.root;for(const t of e)r.children.has(t)||r.children.set(t,new Uo),r=r.children.get(t);return r.value=t,this}has(e){let t=this.root;for(const r of e){if(!t.children.has(r))return!1;t=t.children.get(r)}return void 0!==t.value}get(e){let t=this.root;for(const r of e){if(!t.children.has(r))return;t=t.children.get(r)}return t.value}delete(e){const t=[];let r=this.root;for(const n of e){if(!r.children.has(n))return!1;t.push(r),r=r.children.get(n)}if(delete r.value,0===r.children.size)for(const[r,n]of(0,zo.toArray)((0,zo.zip)(e,t)).reverse())if(n.children.delete(r),0!==n.children.size)break;return!0}}Lo.TrieMap=Wo;var qo={};qo.BadEventError=qo.FiniteStateMachine=void 0;const Do=Wn();qo.FiniteStateMachine=class{constructor(e,t){this.schema=e,this._state=t}get state(){return this._state}matches(e){return this._state===e}can(e){return e in this.schema[this.state]}send(e){if(!this.can(e))throw new $o(this.state,e);this._state=this.schema[this.state][e]}};class $o extends Do.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}qo.BadEventError=$o;var Vo={},Yo={},Jo={},Ho={},Ko={};Ko.isFunction=void 0,Ko.isFunction=function(e){return"function"==typeof e};var Go={},Qo={},Xo={};Xo.createErrorClass=void 0,Xo.createErrorClass=function(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},Qo.UnsubscriptionError=void 0;var Zo=Xo;Qo.UnsubscriptionError=Zo.createErrorClass((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}}));var ei={};ei.arrRemove=void 0,ei.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}};var ti=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ri=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ni=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Go.isSubscription=Go.EMPTY_SUBSCRIPTION=Go.Subscription=void 0;var oi=Ko,ii=Qo,ai=ei,ui=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=ti(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(oi.isFunction(c))try{c()}catch(e){o=e instanceof ii.UnsubscriptionError?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=ti(s),f=l.next();!f.done;f=l.next()){var p=f.value;try{ci(p)}catch(e){o=null!=o?o:[],e instanceof ii.UnsubscriptionError?o=ni(ni([],ri(o)),ri(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ii.UnsubscriptionError(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ci(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&ai.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&ai.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function ci(e){oi.isFunction(e)?e():e.unsubscribe()}Go.Subscription=ui,Go.EMPTY_SUBSCRIPTION=ui.EMPTY,Go.isSubscription=function(e){return e instanceof ui||e&&"closed"in e&&oi.isFunction(e.remove)&&oi.isFunction(e.add)&&oi.isFunction(e.unsubscribe)};var si={config:void 0};si.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var li={},fi={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(t){var r=e.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0}}(fi),li.reportUnhandledError=void 0;var pi=si,di=fi;li.reportUnhandledError=function(e){di.timeoutProvider.setTimeout((function(){var t=pi.config.onUnhandledError;if(!t)throw e;t(e)}))};var vi={};vi.noop=void 0,vi.noop=function(){};var bi={};function yi(e,t,r){return{kind:e,value:t,error:r}}bi.createNotification=bi.nextNotification=bi.errorNotification=bi.COMPLETE_NOTIFICATION=void 0,bi.COMPLETE_NOTIFICATION=yi("C",void 0,void 0),bi.errorNotification=function(e){return yi("E",void 0,e)},bi.nextNotification=function(e){return yi("N",e,void 0)},bi.createNotification=yi;var hi={};hi.captureError=hi.errorContext=void 0;var mi=si,gi=null;hi.errorContext=function(e){if(mi.config.useDeprecatedSynchronousErrorHandling){var t=!gi;if(t&&(gi={errorThrown:!1,error:null}),e(),t){var r=gi,n=r.errorThrown,o=r.error;if(gi=null,n)throw o}}else e()},hi.captureError=function(e){mi.config.useDeprecatedSynchronousErrorHandling&&gi&&(gi.errorThrown=!0,gi.error=e)},function(e){var t,r=n&&n.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var o=Ko,i=Go,a=si,u=li,c=vi,s=bi,l=fi,f=hi,p=function(t){function n(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=e.EMPTY_OBSERVER,n}return r(n,t),n.create=function(e,t,r){return new y(e,t,r)},n.prototype.next=function(e){this.isStopped?m(s.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?m(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?m(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(i.Subscription);e.Subscriber=p;var d=Function.prototype.bind;function v(e,t){return d.call(e,t)}var b=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){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),y=function(e){function t(t,r,n){var i,u,c=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.config.useDeprecatedNextContext?((u=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&v(t.next,u),error:t.error&&v(t.error,u),complete:t.complete&&v(t.complete,u)}):i=t;return c.destination=new b(i),c}return r(t,e),t}(p);function h(e){a.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}(Ho);var wi={observable:void 0};wi.observable="function"==typeof Symbol&&Symbol.observable||"@@observable";var Oi={},Si={};Si.identity=void 0,Si.identity=function(e){return e},Oi.pipeFromArray=Oi.pipe=void 0;var _i=Si;function xi(e){return 0===e.length?_i.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}Oi.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xi(e)},Oi.pipeFromArray=xi,Jo.Observable=void 0;var ji=Ho,Ei=Go,Ai=wi,Pi=Oi,Ti=si,Ii=Ko,ki=hi,Ci=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof ji.Subscriber||function(e){return e&&Ii.isFunction(e.next)&&Ii.isFunction(e.error)&&Ii.isFunction(e.complete)}(n)&&Ei.isSubscription(n)?e:new ji.SafeSubscriber(e,t,r);return ki.errorContext((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Fi(t))((function(t,n){var o=new ji.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ai.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pi.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fi(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Fi(e){var t;return null!==(t=null!=e?e:Ti.config.Promise)&&void 0!==t?t:Promise}Jo.Observable=Ci;var Mi={},Ri={},Ni={};Ni.operate=Ni.hasLift=void 0;var Bi=Ko;function Li(e){return Bi.isFunction(null==e?void 0:e.lift)}Ni.hasLift=Li,Ni.operate=function(e){return function(t){if(Li(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")}};var zi,Ui={},Wi=n&&n.__extends||(zi=function(e,t){return(zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Ui.OperatorSubscriber=Ui.createOperatorSubscriber=void 0;var qi=Ho;Ui.createOperatorSubscriber=function(e,t,r,n,o){return new Di(e,t,r,n,o)};var Di=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return Wi(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(qi.Subscriber);Ui.OperatorSubscriber=Di,Ri.refCount=void 0;var $i=Ni,Vi=Ui;Ri.refCount=function(){return $i.operate((function(e,t){var r=null;e._refCount++;var n=Vi.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))};var Yi=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Mi.ConnectableObservable=void 0;var Ji=Go,Hi=Ri,Ki=Ui,Gi=Ni,Qi=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,Gi.hasLift(t)&&(n.lift=t.lift),n}return Yi(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Ji.Subscription;var r=this.getSubject();t.add(this.source.subscribe(Ki.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=Ji.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return Hi.refCount()(this)},t}(Jo.Observable);Mi.ConnectableObservable=Qi;var Xi={},Zi={};!function(e){e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(Zi);var ea={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.animationFrameProvider=void 0;var o=Go;e.animationFrameProvider={schedule:function(t){var r=requestAnimationFrame,n=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=r((function(e){n=void 0,t(e)}));return new o.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,r([],t(n)))},cancelAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,r([],t(n)))},delegate:void 0}}(ea),Xi.animationFrames=void 0;var ta=Jo,ra=Go,na=Zi,oa=ea;function ia(e){var t=oa.animationFrameProvider.schedule;return new ta.Observable((function(r){var n=new ra.Subscription,o=e||na.performanceTimestampProvider,i=o.now(),a=function(u){var c=o.now();r.next({timestamp:e?c:u,elapsed:c-i}),r.closed||n.add(t(a))};return n.add(t(a)),n}))}Xi.animationFrames=function(e){return e?ia(e):aa};var aa=ia(),ua={},ca={ObjectUnsubscribedError:void 0},sa=Xo;ca.ObjectUnsubscribedError=sa.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}));var la=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fa=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ua.AnonymousSubject=ua.Subject=void 0;var pa=Jo,da=Go,va=ca,ba=ei,ya=hi,ha=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 la(t,e),t.prototype.lift=function(e){var t=new ma(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new va.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;ya.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=fa(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;ya.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ya.errorContext((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?da.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new da.Subscription((function(){t.currentObservers=null,ba.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new pa.Observable;return e.source=this,e},t.create=function(e,t){return new ma(e,t)},t}(pa.Observable);ua.Subject=ha;var ma=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return la(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:da.EMPTY_SUBSCRIPTION},t}(ha);ua.AnonymousSubject=ma;var ga={},wa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ga.BehaviorSubject=void 0;var Oa=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return wa(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ua.Subject);ga.BehaviorSubject=Oa;var Sa={},_a={};!function(e){e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(_a);var xa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Sa.ReplaySubject=void 0;var ja=_a,Ea=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=ja.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return xa(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(ua.Subject);Sa.ReplaySubject=Ea;var Aa={},Pa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Aa.AsyncSubject=void 0;var Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return Pa(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(ua.Subject);Aa.AsyncSubject=Ta;var Ia={},ka={},Ca={},Fa={},Ma=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Fa.Action=void 0;var Ra=function(e){function t(t,r){return e.call(this)||this}return Ma(t,e),t.prototype.schedule=function(e,t){return this},t}(Go.Subscription);Fa.Action=Ra;var Na={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(t){var r=e.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0}}(Na);var Ba=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ca.AsyncAction=void 0;var La=Na,za=ei,Ua=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return Ba(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),La.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;La.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,za.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Fa.Action);Ca.AsyncAction=Ua;var Wa={},qa={};qa.TestTools=qa.Immediate=void 0;var Da,$a=1,Va={};function Ya(e){return e in Va&&(delete Va[e],!0)}qa.Immediate={setImmediate:function(e){var t=$a++;return Va[t]=!0,Da||(Da=Promise.resolve()),Da.then((function(){return Ya(t)&&e()})),t},clearImmediate:function(e){Ya(e)}},qa.TestTools={pending:function(){return Object.keys(Va).length}},function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.immediateProvider=void 0;var o=qa,i=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||i).apply(void 0,r([],t(n)))},clearImmediate:function(t){var r=e.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(t)},delegate:void 0}}(Wa);var Ja=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ka.AsapAction=void 0;var Ha=Wa,Ka=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Ja(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ha.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Ha.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(Ca.AsyncAction);ka.AsapAction=Ka;var Ga={},Qa={},Xa={Scheduler:void 0},Za=_a,eu=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=Za.dateTimestampProvider.now,e}();Xa.Scheduler=eu;var tu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Qa.AsyncScheduler=void 0;var ru=Xa,nu=function(e){function t(t,r){void 0===r&&(r=ru.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return tu(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(ru.Scheduler);Qa.AsyncScheduler=nu;var ou=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ga.AsapScheduler=void 0;var iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);Ga.AsapScheduler=iu,function(e){e.asap=e.asapScheduler=void 0;var t=ka,r=Ga;e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler}(Ia);var au={};!function(e){e.async=e.asyncScheduler=void 0;var t=Ca,r=Qa;e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler}(au);var uu={},cu={},su=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();cu.QueueAction=void 0;var lu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return su(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(Ca.AsyncAction);cu.QueueAction=lu;var fu={},pu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();fu.QueueScheduler=void 0;var du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t}(Qa.AsyncScheduler);fu.QueueScheduler=du,function(e){e.queue=e.queueScheduler=void 0;var t=cu,r=fu;e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler}(uu);var vu={},bu={},yu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();bu.AnimationFrameAction=void 0;var hu=ea,mu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return yu(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=hu.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(hu.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(Ca.AsyncAction);bu.AnimationFrameAction=mu;var gu={},wu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();gu.AnimationFrameScheduler=void 0;var Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wu(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);gu.AnimationFrameScheduler=Ou,function(e){e.animationFrame=e.animationFrameScheduler=void 0;var t=bu,r=gu;e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(vu);var Su={},_u=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Su.VirtualAction=Su.VirtualTimeScheduler=void 0;var xu=Ca,ju=Go,Eu=function(e){function t(t,r){void 0===t&&(t=Au),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return _u(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(Qa.AsyncScheduler);Su.VirtualTimeScheduler=Eu;var Au=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return _u(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return ju.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(xu.AsyncAction);Su.VirtualAction=Au;var Pu={},Tu={};!function(e){e.empty=e.EMPTY=void 0;var t=Jo;e.EMPTY=new t.Observable((function(e){return e.complete()})),e.empty=function(r){return r?function(e){return new t.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(r):e.EMPTY}}(Tu);var Iu={},ku={},Cu={isScheduler:void 0},Fu=Ko;Cu.isScheduler=function(e){return e&&Fu.isFunction(e.schedule)},ku.popNumber=ku.popScheduler=ku.popResultSelector=void 0;var Mu=Ko,Ru=Cu;function Nu(e){return e[e.length-1]}ku.popResultSelector=function(e){return Mu.isFunction(Nu(e))?e.pop():void 0},ku.popScheduler=function(e){return Ru.isScheduler(Nu(e))?e.pop():void 0},ku.popNumber=function(e,t){return"number"==typeof Nu(e)?e.pop():t};var Bu={},Lu={},zu={},Uu={},Wu={isArrayLike:void 0};Wu.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var qu={isPromise:void 0},Du=Ko;qu.isPromise=function(e){return Du.isFunction(null==e?void 0:e.then)};var $u={isInteropObservable:void 0},Vu=wi,Yu=Ko;$u.isInteropObservable=function(e){return Yu.isFunction(e[Vu.observable])};var Ju={isAsyncIterable:void 0},Hu=Ko;Ju.isAsyncIterable=function(e){return Symbol.asyncIterator&&Hu.isFunction(null==e?void 0:e[Symbol.asyncIterator])};var Ku={};Ku.createInvalidObservableTypeError=void 0,Ku.createInvalidObservableTypeError=function(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 Gu={},Qu={};function Xu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Qu.iterator=Qu.getSymbolIterator=void 0,Qu.getSymbolIterator=Xu,Qu.iterator=Xu(),Gu.isIterable=void 0;var Zu=Qu,ec=Ko;Gu.isIterable=function(e){return ec.isFunction(null==e?void 0:e[Zu.iterator])};var tc={},rc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},nc=n&&n.__await||function(e){return this instanceof nc?(this.v=e,this):new nc(e)},oc=n&&n.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof nc?Promise.resolve(r.value.v).then(c,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}};tc.isReadableStreamLike=tc.readableStreamLikeToAsyncGenerator=void 0;var ic=Ko;tc.readableStreamLikeToAsyncGenerator=function(e){return oc(this,arguments,(function(){var t,r,n;return rc(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,nc(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,nc(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,nc(n)];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]}}))}))},tc.isReadableStreamLike=function(e){return ic.isFunction(null==e?void 0:e.getReader)};var ac=n&&n.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},uc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},cc=n&&n.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof sc?sc(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},sc=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Uu.fromReadableStreamLike=Uu.fromAsyncIterable=Uu.fromIterable=Uu.fromPromise=Uu.fromArrayLike=Uu.fromInteropObservable=Uu.innerFrom=void 0;var lc=Wu,fc=qu,pc=Jo,dc=$u,vc=Ju,bc=Ku,yc=Gu,hc=tc,mc=Ko,gc=li,wc=wi;function Oc(e){return new pc.Observable((function(t){var r=e[wc.observable]();if(mc.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Sc(e){return new pc.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function _c(e){return new pc.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,gc.reportUnhandledError)}))}function xc(e){return new pc.Observable((function(t){var r,n;try{for(var o=sc(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function jc(e){return new pc.Observable((function(t){(function(e,t){var r,n,o,i;return ac(this,void 0,void 0,(function(){var a,u;return uc(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=cc(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[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 Ec(e){return jc(hc.readableStreamLikeToAsyncGenerator(e))}Uu.innerFrom=function(e){if(e instanceof pc.Observable)return e;if(null!=e){if(dc.isInteropObservable(e))return Oc(e);if(lc.isArrayLike(e))return Sc(e);if(fc.isPromise(e))return _c(e);if(vc.isAsyncIterable(e))return jc(e);if(yc.isIterable(e))return xc(e);if(hc.isReadableStreamLike(e))return Ec(e)}throw bc.createInvalidObservableTypeError(e)},Uu.fromInteropObservable=Oc,Uu.fromArrayLike=Sc,Uu.fromPromise=_c,Uu.fromIterable=xc,Uu.fromAsyncIterable=jc,Uu.fromReadableStreamLike=Ec;var Ac={},Pc={};Pc.executeSchedule=void 0,Pc.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i},Ac.observeOn=void 0;var Tc=Pc,Ic=Ni,kc=Ui;Ac.observeOn=function(e,t){return void 0===t&&(t=0),Ic.operate((function(r,n){r.subscribe(kc.createOperatorSubscriber(n,(function(r){return Tc.executeSchedule(n,e,(function(){return n.next(r)}),t)}),(function(){return Tc.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(r){return Tc.executeSchedule(n,e,(function(){return n.error(r)}),t)})))}))};var Cc={subscribeOn:void 0},Fc=Ni;Cc.subscribeOn=function(e,t){return void 0===t&&(t=0),Fc.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))},zu.scheduleObservable=void 0;var Mc=Uu,Rc=Ac,Nc=Cc;zu.scheduleObservable=function(e,t){return Mc.innerFrom(e).pipe(Nc.subscribeOn(t),Rc.observeOn(t))};var Bc={schedulePromise:void 0},Lc=Uu,zc=Ac,Uc=Cc;Bc.schedulePromise=function(e,t){return Lc.innerFrom(e).pipe(Uc.subscribeOn(t),zc.observeOn(t))};var Wc={scheduleArray:void 0},qc=Jo;Wc.scheduleArray=function(e,t){return new qc.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))};var Dc={scheduleIterable:void 0},$c=Jo,Vc=Qu,Yc=Ko,Jc=Pc;Dc.scheduleIterable=function(e,t){return new $c.Observable((function(r){var n;return Jc.executeSchedule(r,t,(function(){n=e[Vc.iterator](),Jc.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return Yc.isFunction(null==n?void 0:n.return)&&n.return()}}))};var Hc={scheduleAsyncIterable:void 0},Kc=Jo,Gc=Pc;Hc.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kc.Observable((function(r){Gc.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();Gc.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))};var Qc={scheduleReadableStreamLike:void 0},Xc=Hc,Zc=tc;Qc.scheduleReadableStreamLike=function(e,t){return Xc.scheduleAsyncIterable(Zc.readableStreamLikeToAsyncGenerator(e),t)},Lu.scheduled=void 0;var es=zu,ts=Bc,rs=Wc,ns=Dc,os=Hc,is=$u,as=qu,us=Wu,cs=Gu,ss=Ju,ls=Ku,fs=tc,ps=Qc;Lu.scheduled=function(e,t){if(null!=e){if(is.isInteropObservable(e))return es.scheduleObservable(e,t);if(us.isArrayLike(e))return rs.scheduleArray(e,t);if(as.isPromise(e))return ts.schedulePromise(e,t);if(ss.isAsyncIterable(e))return os.scheduleAsyncIterable(e,t);if(cs.isIterable(e))return ns.scheduleIterable(e,t);if(fs.isReadableStreamLike(e))return ps.scheduleReadableStreamLike(e,t)}throw ls.createInvalidObservableTypeError(e)},Bu.from=void 0;var ds=Lu,vs=Uu;Bu.from=function(e,t){return t?ds.scheduled(e,t):vs.innerFrom(e)},Iu.of=void 0;var bs=ku,ys=Bu;Iu.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bs.popScheduler(e);return ys.from(e,r)};var hs={throwError:void 0},ms=Jo,gs=Ko;hs.throwError=function(e,t){var r=gs.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new ms.Observable(t?function(e){return t.schedule(n,0,e)}:n)},function(e){e.observeNotification=e.Notification=e.NotificationKind=void 0;var t,r=Tu,n=Iu,o=hs,i=Ko;(t=e.NotificationKind||(e.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,i=e.value,a=e.error,u="N"===t?n.of(i):"E"===t?o.throwError((function(){return a})):"C"===t?r.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}e.Notification=a,e.observeNotification=u}(Pu);var ws={isObservable:void 0},Os=Jo,Ss=Ko;ws.isObservable=function(e){return!!e&&(e instanceof Os.Observable||Ss.isFunction(e.lift)&&Ss.isFunction(e.subscribe))};var _s={},xs={EmptyError:void 0},js=Xo;xs.EmptyError=js.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),_s.lastValueFrom=void 0;var Es=xs;_s.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i,a=!1;e.subscribe({next:function(e){i=e,a=!0},error:o,complete:function(){a?n(i):r?n(t.defaultValue):o(new Es.EmptyError)}})}))};var As={firstValueFrom:void 0},Ps=xs,Ts=Ho;As.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i=new Ts.SafeSubscriber({next:function(e){n(e),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new Ps.EmptyError)}});e.subscribe(i)}))};var Is={ArgumentOutOfRangeError:void 0},ks=Xo;Is.ArgumentOutOfRangeError=ks.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}));var Cs={NotFoundError:void 0},Fs=Xo;Cs.NotFoundError=Fs.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}));var Ms={SequenceError:void 0},Rs=Xo;Ms.SequenceError=Rs.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));var Ns={},Bs={};Bs.isValidDate=void 0,Bs.isValidDate=function(e){return e instanceof Date&&!isNaN(e)},function(e){e.timeout=e.TimeoutError=void 0;var t=au,r=Bs,n=Ni,o=Uu,i=Xo,a=Ui,u=Pc;function c(t){throw new e.TimeoutError(t)}e.TimeoutError=i.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),e.timeout=function(e,i){var s=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=s.first,f=s.each,p=s.with,d=void 0===p?c:p,v=s.scheduler,b=void 0===v?null!=i?i:t.asyncScheduler:v,y=s.meta,h=void 0===y?null:y;if(null==l&&null==f)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,n,i=null,c=0,s=function(e){n=u.executeSchedule(t,b,(function(){try{r.unsubscribe(),o.innerFrom(d({meta:h,lastValue:i,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(a.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),c++,t.next(i=e),f>0&&s(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!c&&s(null!=l?"number"==typeof l?l:+l-b.now():f)}))}}(Ns);var Ls={},zs={},Us={},Ws={map:void 0},qs=Ni,Ds=Ui;Ws.map=function(e,t){return qs.operate((function(r,n){var o=0;r.subscribe(Ds.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))};var $s=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Vs=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Us.mapOneOrManyArgs=void 0;var Ys=Ws,Js=Array.isArray;Us.mapOneOrManyArgs=function(e){return Ys.map((function(t){return function(e,t){return Js(t)?e.apply(void 0,Vs([],$s(t))):e(t)}(e,t)}))};var Hs=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Ks=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};zs.bindCallbackInternals=void 0;var Gs=Cu,Qs=Jo,Xs=Cc,Zs=Us,el=Ac,tl=Aa;zs.bindCallbackInternals=function e(t,r,n,o){if(n){if(!Gs.isScheduler(n))return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e(t,r,o).apply(this,i).pipe(Zs.mapOneOrManyArgs(n))};o=n}return o?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(Xs.subscribeOn(o),el.observeOn(o))}:function(){for(var e=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new tl.AsyncSubject,a=!0;return new Qs.Observable((function(o){var u=i.subscribe(o);if(a){a=!1;var c=!1,s=!1;r.apply(e,Ks(Ks([],Hs(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void i.error(n)}i.next(1<e.length?e:e[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return u}))}},Ls.bindCallback=void 0;var rl=zs;Ls.bindCallback=function(e,t,r){return rl.bindCallbackInternals(!1,e,t,r)};var nl={bindNodeCallback:void 0},ol=zs;nl.bindNodeCallback=function(e,t,r){return ol.bindCallbackInternals(!0,e,t,r)};var il={},al={argsArgArrayOrObject:void 0},ul=Array.isArray,cl=Object.getPrototypeOf,sl=Object.prototype,ll=Object.keys;al.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(ul(t))return{args:t,keys:null};if((n=t)&&"object"==typeof n&&cl(n)===sl){var r=ll(t);return{args:r.map((function(e){return t[e]})),keys:r}}}var n;return{args:e,keys:null}};var fl={};fl.createObject=void 0,fl.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},il.combineLatestInit=il.combineLatest=void 0;var pl=Jo,dl=al,vl=Bu,bl=Si,yl=Us,hl=ku,ml=fl,gl=Ui,wl=Pc;function Ol(e,t,r){return void 0===r&&(r=bl.identity),function(n){Sl(t,(function(){for(var o=e.length,i=new Array(o),a=o,u=o,c=function(o){Sl(t,(function(){var c=vl.from(e[o],t),s=!1;c.subscribe(gl.createOperatorSubscriber(n,(function(e){i[o]=e,s||(s=!0,u--),u||n.next(r(i.slice()))}),(function(){--a||n.complete()})))}),n)},s=0;s<o;s++)c(s)}),n)}}function Sl(e,t,r){e?wl.executeSchedule(r,e,t):t()}il.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hl.popScheduler(e),n=hl.popResultSelector(e),o=dl.argsArgArrayOrObject(e),i=o.args,a=o.keys;if(0===i.length)return vl.from([],r);var u=new pl.Observable(Ol(i,r,a?function(e){return ml.createObject(a,e)}:bl.identity));return n?u.pipe(yl.mapOneOrManyArgs(n)):u},il.combineLatestInit=Ol;var _l={},xl={},jl={},El={},Al={mergeInternals:void 0},Pl=Uu,Tl=Pc,Il=Ui;Al.mergeInternals=function(e,t,r,n,o,i,a,u){var c=[],s=0,l=0,f=!1,p=function(){!f||c.length||s||t.complete()},d=function(e){return s<n?v(e):c.push(e)},v=function(e){i&&t.next(e),s++;var u=!1;Pl.innerFrom(r(e,l++)).subscribe(Il.createOperatorSubscriber(t,(function(e){null==o||o(e),i?d(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{s--;for(var e=function(){var e=c.shift();a?Tl.executeSchedule(t,a,(function(){return v(e)})):v(e)};c.length&&s<n;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(Il.createOperatorSubscriber(t,d,(function(){f=!0,p()}))),function(){null==u||u()}},El.mergeMap=void 0;var kl=Ws,Cl=Uu,Fl=Ni,Ml=Al,Rl=Ko;El.mergeMap=function e(t,r,n){return void 0===n&&(n=1/0),Rl.isFunction(r)?e((function(e,n){return kl.map((function(t,o){return r(e,t,n,o)}))(Cl.innerFrom(t(e,n)))}),n):("number"==typeof r&&(n=r),Fl.operate((function(e,r){return Ml.mergeInternals(e,r,t,n)})))},jl.mergeAll=void 0;var Nl=El,Bl=Si;jl.mergeAll=function(e){return void 0===e&&(e=1/0),Nl.mergeMap(Bl.identity,e)},xl.concatAll=void 0;var Ll=jl;xl.concatAll=function(){return Ll.mergeAll(1)},_l.concat=void 0;var zl=xl,Ul=ku,Wl=Bu;_l.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zl.concatAll()(Wl.from(e,Ul.popScheduler(e)))};var ql={},Dl={defer:void 0},$l=Jo,Vl=Uu;Dl.defer=function(e){return new $l.Observable((function(t){Vl.innerFrom(e()).subscribe(t)}))},ql.connectable=void 0;var Yl=ua,Jl=Jo,Hl=Dl,Kl={connector:function(){return new Yl.Subject},resetOnDisconnect:!0};ql.connectable=function(e,t){void 0===t&&(t=Kl);var r=null,n=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,a=n(),u=new Jl.Observable((function(e){return a.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=Hl.defer((function(){return e})).subscribe(a),i&&r.add((function(){return a=n()}))),r},u};var Gl={forkJoin:void 0},Ql=Jo,Xl=al,Zl=Uu,ef=ku,tf=Ui,rf=Us,nf=fl;Gl.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ef.popResultSelector(e),n=Xl.argsArgArrayOrObject(e),o=n.args,i=n.keys,a=new Ql.Observable((function(e){var t=o.length;if(t)for(var r=new Array(t),n=t,a=t,u=function(t){var u=!1;Zl.innerFrom(o[t]).subscribe(tf.createOperatorSubscriber(e,(function(e){u||(u=!0,a--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&u||(a||e.next(i?nf.createObject(i,r):r),e.complete())})))},c=0;c<t;c++)u(c);else e.complete()}));return r?a.pipe(rf.mapOneOrManyArgs(r)):a};var of={},af=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};of.fromEvent=void 0;var uf=Uu,cf=Jo,sf=El,lf=Wu,ff=Ko,pf=Us,df=["addListener","removeListener"],vf=["addEventListener","removeEventListener"],bf=["on","off"];function yf(e,t){return function(r){return function(n){return e[r](t,n)}}}of.fromEvent=function e(t,r,n,o){if(ff.isFunction(n)&&(o=n,n=void 0),o)return e(t,r,n).pipe(pf.mapOneOrManyArgs(o));var i=af(function(e){return ff.isFunction(e.addEventListener)&&ff.isFunction(e.removeEventListener)}(t)?vf.map((function(e){return function(o){return t[e](r,o,n)}})):function(e){return ff.isFunction(e.addListener)&&ff.isFunction(e.removeListener)}(t)?df.map(yf(t,r)):function(e){return ff.isFunction(e.on)&&ff.isFunction(e.off)}(t)?bf.map(yf(t,r)):[],2),a=i[0],u=i[1];if(!a&&lf.isArrayLike(t))return sf.mergeMap((function(t){return e(t,r,n)}))(uf.innerFrom(t));if(!a)throw new TypeError("Invalid event target");return new cf.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return u(t)}}))};var hf={fromEventPattern:void 0},mf=Jo,gf=Ko,wf=Us;hf.fromEventPattern=function e(t,r,n){return n?e(t,r).pipe(wf.mapOneOrManyArgs(n)):new mf.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return gf.isFunction(r)?function(){return r(n,o)}:void 0}))};var Of={},Sf=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Of.generate=void 0;var _f=Si,xf=Cu,jf=Dl,Ef=Dc;Of.generate=function(e,t,r,n,o){var i,a,u,c;function s(){var e;return Sf(this,(function(n){switch(n.label){case 0:e=c,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,r=i.iterate,a=i.resultSelector,u=void 0===a?_f.identity:a,o=i.scheduler):(c=e,!n||xf.isScheduler(n)?(u=_f.identity,o=n):u=n),jf.defer(o?function(){return Ef.scheduleIterable(s(),o)}:s)};var Af={iif:void 0},Pf=Dl;Af.iif=function(e,t,r){return Pf.defer((function(){return e()?t:r}))};var Tf={},If={timer:void 0},kf=Jo,Cf=au,Ff=Cu,Mf=Bs;If.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=Cf.async);var n=-1;return null!=t&&(Ff.isScheduler(t)?r=t:n=t),new kf.Observable((function(t){var o=Mf.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=n?this.schedule(void 0,n):t.complete())}),o)}))},Tf.interval=void 0;var Rf=au,Nf=If;Tf.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=Rf.asyncScheduler),e<0&&(e=0),Nf.timer(e,e,t)};var Bf={merge:void 0},Lf=jl,zf=Uu,Uf=Tu,Wf=ku,qf=Bu;Bf.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Wf.popScheduler(e),n=Wf.popNumber(e,1/0),o=e;return o.length?1===o.length?zf.innerFrom(o[0]):Lf.mergeAll(n)(qf.from(o,r)):Uf.EMPTY};var Df={};!function(e){e.never=e.NEVER=void 0;var t=Jo,r=vi;e.NEVER=new t.Observable(r.noop),e.never=function(){return e.NEVER}}(Df);var $f={},Vf={},Yf={argsOrArgArray:void 0},Jf=Array.isArray;Yf.argsOrArgArray=function(e){return 1===e.length&&Jf(e[0])?e[0]:e};var Hf=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kf=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Vf.onErrorResumeNext=void 0;var Gf=Ni,Qf=Uu,Xf=Yf,Zf=Ui,ep=vi;Vf.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xf.argsOrArgArray(e);return Gf.operate((function(e,t){var n=Kf([e],Hf(r)),o=function(){if(!t.closed)if(n.length>0){var e=void 0;try{e=Qf.innerFrom(n.shift())}catch(e){return void o()}var r=Zf.createOperatorSubscriber(t,void 0,ep.noop,ep.noop);e.subscribe(r),r.add(o)}else t.complete()};o()}))},$f.onErrorResumeNext=void 0;var tp=Tu,rp=Vf,np=Yf;$f.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rp.onErrorResumeNext(np.argsOrArgArray(e))(tp.EMPTY)};var op={pairs:void 0},ip=Bu;op.pairs=function(e,t){return ip.from(Object.entries(e),t)};var ap={},up={};up.not=void 0,up.not=function(e,t){return function(r,n){return!e.call(t,r,n)}};var cp={filter:void 0},sp=Ni,lp=Ui;cp.filter=function(e,t){return sp.operate((function(r,n){var o=0;r.subscribe(lp.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))},ap.partition=void 0;var fp=up,pp=cp,dp=Uu;ap.partition=function(e,t,r){return[pp.filter(t,r)(dp.innerFrom(e)),pp.filter(fp.not(t,r))(dp.innerFrom(e))]};var vp={};vp.raceInit=vp.race=void 0;var bp=Jo,yp=Uu,hp=Yf,mp=Ui;function gp(e){return function(t){for(var r=[],n=function(n){r.push(yp.innerFrom(e[n]).subscribe(mp.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}vp.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=hp.argsOrArgArray(e)).length?yp.innerFrom(e[0]):new bp.Observable(gp(e))},vp.raceInit=gp;var wp={range:void 0},Op=Jo,Sp=Tu;wp.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return Sp.EMPTY;var n=t+e;return new Op.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})};var _p={using:void 0},xp=Jo,jp=Uu,Ep=Tu;_p.using=function(e,t){return new xp.Observable((function(r){var n=e(),o=t(n);return(o?jp.innerFrom(o):Ep.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))};var Ap={},Pp=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Tp=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Ap.zip=void 0;var Ip=Jo,kp=Uu,Cp=Yf,Fp=Tu,Mp=Ui,Rp=ku;Ap.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Rp.popResultSelector(e),n=Cp.argsOrArgArray(e);return n.length?new Ip.Observable((function(e){var t=n.map((function(){return[]})),o=n.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){kp.innerFrom(n[i]).subscribe(Mp.createOperatorSubscriber(e,(function(n){if(t[i].push(n),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,Tp([],Pp(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},a=0;!e.closed&&a<n.length;a++)i(a);return function(){t=o=null}})):Fp.EMPTY};var Np={},Bp={audit:void 0},Lp=Ni,zp=Uu,Up=Ui;Bp.audit=function(e){return Lp.operate((function(t,r){var n=!1,o=null,i=null,a=!1,u=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(Up.createOperatorSubscriber(r,(function(t){n=!0,o=t,i||zp.innerFrom(e(t)).subscribe(i=Up.createOperatorSubscriber(r,u,c))}),(function(){a=!0,(!n||!i||i.closed)&&r.complete()})))}))};var Wp={auditTime:void 0},qp=au,Dp=Bp,$p=If;Wp.auditTime=function(e,t){return void 0===t&&(t=qp.asyncScheduler),Dp.audit((function(){return $p.timer(e,t)}))};var Vp={buffer:void 0},Yp=Ni,Jp=vi,Hp=Ui;Vp.buffer=function(e){return Yp.operate((function(t,r){var n=[];return t.subscribe(Hp.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(Hp.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),Jp.noop)),function(){n=null}}))};var Kp={},Gp=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Kp.bufferCount=void 0;var Qp=Ni,Xp=Ui,Zp=ei;Kp.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,Qp.operate((function(r,n){var o=[],i=0;r.subscribe(Xp.createOperatorSubscriber(n,(function(r){var a,u,c,s,l=null;i++%t==0&&o.push([]);try{for(var f=Gp(o),p=f.next();!p.done;p=f.next()){(b=p.value).push(r),e<=b.length&&(l=null!=l?l:[]).push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(l)try{for(var d=Gp(l),v=d.next();!v.done;v=d.next()){var b=v.value;Zp.arrRemove(o,b),n.next(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=Gp(o),i=r.next();!i.done;i=r.next()){var a=i.value;n.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))};var ed={},td=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ed.bufferTime=void 0;var rd=Go,nd=Ni,od=Ui,id=ei,ad=au,ud=ku,cd=Pc;ed.bufferTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=ud.popScheduler(n))&&void 0!==t?t:ad.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return nd.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),id.arrRemove(n,e),r.next(t),o&&s()},s=function(){if(n){var t=new rd.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),cd.executeSchedule(t,i,(function(){return c(o)}),e)}};null!==a&&a>=0?cd.executeSchedule(r,i,s,a,!0):o=!0,s();var l=od.createOperatorSubscriber(r,(function(e){var t,r,o=n.slice();try{for(var i=td(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.buffer;l.push(e),u<=l.length&&c(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==l||l.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(l)}))};var sd={},ld=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};sd.bufferToggle=void 0;var fd=Go,pd=Ni,dd=Uu,vd=Ui,bd=vi,yd=ei;sd.bufferToggle=function(e,t){return pd.operate((function(r,n){var o=[];dd.innerFrom(e).subscribe(vd.createOperatorSubscriber(n,(function(e){var r=[];o.push(r);var i=new fd.Subscription;i.add(dd.innerFrom(t(e)).subscribe(vd.createOperatorSubscriber(n,(function(){yd.arrRemove(o,r),n.next(r),i.unsubscribe()}),bd.noop)))}),bd.noop)),r.subscribe(vd.createOperatorSubscriber(n,(function(e){var t,r;try{for(var n=ld(o),i=n.next();!i.done;i=n.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)n.next(o.shift());n.complete()})))}))};var hd={bufferWhen:void 0},md=Ni,gd=vi,wd=Ui,Od=Uu;hd.bufferWhen=function(e){return md.operate((function(t,r){var n=null,o=null,i=function(){null==o||o.unsubscribe();var t=n;n=[],t&&r.next(t),Od.innerFrom(e()).subscribe(o=wd.createOperatorSubscriber(r,i,gd.noop))};i(),t.subscribe(wd.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=o=null})))}))};var Sd={catchError:void 0},_d=Uu,xd=Ui,jd=Ni;Sd.catchError=function e(t){return jd.operate((function(r,n){var o,i=null,a=!1;i=r.subscribe(xd.createOperatorSubscriber(n,void 0,void 0,(function(u){o=_d.innerFrom(t(u,e(t)(r))),i?(i.unsubscribe(),i=null,o.subscribe(n)):a=!0}))),a&&(i.unsubscribe(),i=null,o.subscribe(n))}))};var Ed={},Ad={},Pd={},Td={},Id={},kd={scanInternals:void 0},Cd=Ui;kd.scanInternals=function(e,t,r,n,o){return function(i,a){var u=r,c=t,s=0;i.subscribe(Cd.createOperatorSubscriber(a,(function(t){var r=s++;c=u?e(c,t,r):(u=!0,t),n&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}},Id.reduce=void 0;var Fd=kd,Md=Ni;Id.reduce=function(e,t){return Md.operate(Fd.scanInternals(e,t,arguments.length>=2,!1,!0))},Td.toArray=void 0;var Rd=Id,Nd=Ni,Bd=function(e,t){return e.push(t),e};Td.toArray=function(){return Nd.operate((function(e,t){Rd.reduce(Bd,[])(e).subscribe(t)}))},Pd.joinAllInternals=void 0;var Ld=Si,zd=Us,Ud=Oi,Wd=El,qd=Td;Pd.joinAllInternals=function(e,t){return Ud.pipe(qd.toArray(),Wd.mergeMap((function(t){return e(t)})),t?zd.mapOneOrManyArgs(t):Ld.identity)},Ad.combineLatestAll=void 0;var Dd=il,$d=Pd;Ad.combineLatestAll=function(e){return $d.joinAllInternals(Dd.combineLatest,e)},Ed.combineAll=void 0;var Vd=Ad;Ed.combineAll=Vd.combineLatestAll;var Yd={},Jd={},Hd=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kd=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Jd.combineLatest=void 0;var Gd=il,Qd=Ni,Xd=Yf,Zd=Us,ev=Oi,tv=ku;Jd.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=tv.popResultSelector(t);return n?ev.pipe(e.apply(void 0,Kd([],Hd(t))),Zd.mapOneOrManyArgs(n)):Qd.operate((function(e,r){Gd.combineLatestInit(Kd([e],Hd(Xd.argsOrArgArray(t))))(r)}))};var rv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Yd.combineLatestWith=void 0;var ov=Jd;Yd.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ov.combineLatest.apply(void 0,nv([],rv(e)))};var iv={concatMap:void 0},av=El,uv=Ko;iv.concatMap=function(e,t){return uv.isFunction(t)?av.mergeMap(e,t,1):av.mergeMap(e,1)};var cv={concatMapTo:void 0},sv=iv,lv=Ko;cv.concatMapTo=function(e,t){return lv.isFunction(t)?sv.concatMap((function(){return e}),t):sv.concatMap((function(){return e}))};var fv={},pv={},dv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},vv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};pv.concat=void 0;var bv=Ni,yv=xl,hv=ku,mv=Bu;pv.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hv.popScheduler(e);return bv.operate((function(t,n){yv.concatAll()(mv.from(vv([t],dv(e)),r)).subscribe(n)}))};var gv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},wv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};fv.concatWith=void 0;var Ov=pv;fv.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ov.concat.apply(void 0,wv([],gv(e)))};var Sv={},_v={fromSubscribable:void 0},xv=Jo;_v.fromSubscribable=function(e){return new xv.Observable((function(t){return e.subscribe(t)}))},Sv.connect=void 0;var jv=ua,Ev=Bu,Av=Ni,Pv=_v,Tv={connector:function(){return new jv.Subject}};Sv.connect=function(e,t){void 0===t&&(t=Tv);var r=t.connector;return Av.operate((function(t,n){var o=r();Ev.from(e(Pv.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))};var Iv={count:void 0},kv=Id;Iv.count=function(e){return kv.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)};var Cv={debounce:void 0},Fv=Ni,Mv=vi,Rv=Ui,Nv=Uu;Cv.debounce=function(e){return Fv.operate((function(t,r){var n=!1,o=null,i=null,a=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe(Rv.createOperatorSubscriber(r,(function(t){null==i||i.unsubscribe(),n=!0,o=t,i=Rv.createOperatorSubscriber(r,a,Mv.noop),Nv.innerFrom(e(t)).subscribe(i)}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))};var Bv={debounceTime:void 0},Lv=au,zv=Ni,Uv=Ui;Bv.debounceTime=function(e,t){return void 0===t&&(t=Lv.asyncScheduler),zv.operate((function(r,n){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,n.next(e)}};function c(){var r=a+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);u()}r.subscribe(Uv.createOperatorSubscriber(n,(function(r){i=r,a=t.now(),o||(o=t.schedule(c,e),n.add(o))}),(function(){u(),n.complete()}),void 0,(function(){i=o=null})))}))};var Wv={defaultIfEmpty:void 0},qv=Ni,Dv=Ui;Wv.defaultIfEmpty=function(e){return qv.operate((function(t,r){var n=!1;t.subscribe(Dv.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))};var $v={},Vv={},Yv={take:void 0},Jv=Tu,Hv=Ni,Kv=Ui;Yv.take=function(e){return e<=0?function(){return Jv.EMPTY}:Hv.operate((function(t,r){var n=0;t.subscribe(Kv.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))};var Gv={ignoreElements:void 0},Qv=Ni,Xv=Ui,Zv=vi;Gv.ignoreElements=function(){return Qv.operate((function(e,t){e.subscribe(Xv.createOperatorSubscriber(t,Zv.noop))}))};var eb={mapTo:void 0},tb=Ws;eb.mapTo=function(e){return tb.map((function(){return e}))},Vv.delayWhen=void 0;var rb=_l,nb=Yv,ob=Gv,ib=eb,ab=El;Vv.delayWhen=function e(t,r){return r?function(n){return rb.concat(r.pipe(nb.take(1),ob.ignoreElements()),n.pipe(e(t)))}:ab.mergeMap((function(e,r){return t(e,r).pipe(nb.take(1),ib.mapTo(e))}))},$v.delay=void 0;var ub=au,cb=Vv,sb=If;$v.delay=function(e,t){void 0===t&&(t=ub.asyncScheduler);var r=sb.timer(e,t);return cb.delayWhen((function(){return r}))};var lb={dematerialize:void 0},fb=Pu,pb=Ni,db=Ui;lb.dematerialize=function(){return pb.operate((function(e,t){e.subscribe(db.createOperatorSubscriber(t,(function(e){return fb.observeNotification(e,t)})))}))};var vb={distinct:void 0},bb=Ni,yb=Ui,hb=vi;vb.distinct=function(e,t){return bb.operate((function(r,n){var o=new Set;r.subscribe(yb.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(yb.createOperatorSubscriber(n,(function(){return o.clear()}),hb.noop))}))};var mb={distinctUntilChanged:void 0},gb=Si,wb=Ni,Ob=Ui;function Sb(e,t){return e===t}mb.distinctUntilChanged=function(e,t){return void 0===t&&(t=gb.identity),e=null!=e?e:Sb,wb.operate((function(r,n){var o,i=!0;r.subscribe(Ob.createOperatorSubscriber(n,(function(r){var a=t(r);!i&&e(o,a)||(i=!1,o=a,n.next(r))})))}))};var _b={distinctUntilKeyChanged:void 0},xb=mb;_b.distinctUntilKeyChanged=function(e,t){return xb.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))};var jb={},Eb={throwIfEmpty:void 0},Ab=xs,Pb=Ni,Tb=Ui;function Ib(){return new Ab.EmptyError}Eb.throwIfEmpty=function(e){return void 0===e&&(e=Ib),Pb.operate((function(t,r){var n=!1;t.subscribe(Tb.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))},jb.elementAt=void 0;var kb=Is,Cb=cp,Fb=Eb,Mb=Wv,Rb=Yv;jb.elementAt=function(e,t){if(e<0)throw new kb.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(n){return n.pipe(Cb.filter((function(t,r){return r===e})),Rb.take(1),r?Mb.defaultIfEmpty(t):Fb.throwIfEmpty((function(){return new kb.ArgumentOutOfRangeError})))}};var Nb={},Bb=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Lb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Nb.endWith=void 0;var zb=_l,Ub=Iu;Nb.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return zb.concat(t,Ub.of.apply(void 0,Lb([],Bb(e))))}};var Wb={every:void 0},qb=Ni,Db=Ui;Wb.every=function(e,t){return qb.operate((function(r,n){var o=0;r.subscribe(Db.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))};var $b={},Vb={exhaustAll:void 0},Yb=Ni,Jb=Uu,Hb=Ui;Vb.exhaustAll=function(){return Yb.operate((function(e,t){var r=!1,n=null;e.subscribe(Hb.createOperatorSubscriber(t,(function(e){n||(n=Jb.innerFrom(e).subscribe(Hb.createOperatorSubscriber(t,void 0,(function(){n=null,r&&t.complete()}))))}),(function(){r=!0,!n&&t.complete()})))}))},$b.exhaust=void 0;var Kb=Vb;$b.exhaust=Kb.exhaustAll;var Gb={exhaustMap:void 0},Qb=Ws,Xb=Uu,Zb=Ni,ey=Ui;Gb.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return Xb.innerFrom(t(e,n)).pipe(Qb.map((function(t,o){return r(e,t,n,o)})))})))}:Zb.operate((function(e,r){var n=0,o=null,i=!1;e.subscribe(ey.createOperatorSubscriber(r,(function(e){o||(o=ey.createOperatorSubscriber(r,void 0,(function(){o=null,i&&r.complete()})),Xb.innerFrom(t(e,n++)).subscribe(o))}),(function(){i=!0,!o&&r.complete()})))}))};var ty={expand:void 0},ry=Ni,ny=Al;ty.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,ry.operate((function(n,o){return ny.mergeInternals(n,o,e,t,void 0,!0,r)}))};var oy={finalize:void 0},iy=Ni;oy.finalize=function(e){return iy.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))};var ay={};ay.createFind=ay.find=void 0;var uy=Ni,cy=Ui;function sy(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(cy.createOperatorSubscriber(o,(function(a){var u=i++;e.call(t,a,u,r)&&(o.next(n?u:a),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}ay.find=function(e,t){return uy.operate(sy(e,t,"value"))},ay.createFind=sy;var ly={findIndex:void 0},fy=Ni,py=ay;ly.findIndex=function(e,t){return fy.operate(py.createFind(e,t,"index"))};var dy={first:void 0},vy=xs,by=cp,yy=Yv,hy=Wv,my=Eb,gy=Si;dy.first=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?by.filter((function(t,r){return e(t,r,n)})):gy.identity,yy.take(1),r?hy.defaultIfEmpty(t):my.throwIfEmpty((function(){return new vy.EmptyError})))}};var wy={groupBy:void 0},Oy=Jo,Sy=Uu,_y=ua,xy=Ni,jy=Ui;wy.groupBy=function(e,t,r,n){return xy.operate((function(o,i){var a;t&&"function"!=typeof t?(r=t.duration,a=t.element,n=t.connector):a=t;var u=new Map,c=function(e){u.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},l=0,f=!1,p=new jy.OperatorSubscriber(i,(function(t){try{var o=e(t),c=u.get(o);if(!c){u.set(o,c=n?n():new _y.Subject);var d=(b=o,y=c,(h=new Oy.Observable((function(e){l++;var t=y.subscribe(e);return function(){t.unsubscribe(),0==--l&&f&&p.unsubscribe()}}))).key=b,h);if(i.next(d),r){var v=jy.createOperatorSubscriber(c,(function(){c.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return u.delete(o)}));p.add(Sy.innerFrom(r(d)).subscribe(v))}}c.next(a?a(t):t)}catch(e){s(e)}var b,y,h}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return u.clear()}),(function(){return f=!0,0===l}));o.subscribe(p)}))};var Ey={isEmpty:void 0},Ay=Ni,Py=Ui;Ey.isEmpty=function(){return Ay.operate((function(e,t){e.subscribe(Py.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))};var Ty={},Iy={},ky=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Iy.takeLast=void 0;var Cy=Tu,Fy=Ni,My=Ui;Iy.takeLast=function(e){return e<=0?function(){return Cy.EMPTY}:Fy.operate((function(t,r){var n=[];t.subscribe(My.createOperatorSubscriber(r,(function(t){n.push(t),e<n.length&&n.shift()}),(function(){var e,t;try{for(var o=ky(n),i=o.next();!i.done;i=o.next()){var a=i.value;r.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){n=null})))}))},Ty.last=void 0;var Ry=xs,Ny=cp,By=Iy,Ly=Eb,zy=Wv,Uy=Si;Ty.last=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Ny.filter((function(t,r){return e(t,r,n)})):Uy.identity,By.takeLast(1),r?zy.defaultIfEmpty(t):Ly.throwIfEmpty((function(){return new Ry.EmptyError})))}};var Wy={materialize:void 0},qy=Pu,Dy=Ni,$y=Ui;Wy.materialize=function(){return Dy.operate((function(e,t){e.subscribe($y.createOperatorSubscriber(t,(function(e){t.next(qy.Notification.createNext(e))}),(function(){t.next(qy.Notification.createComplete()),t.complete()}),(function(e){t.next(qy.Notification.createError(e)),t.complete()})))}))};var Vy={max:void 0},Yy=Id,Jy=Ko;Vy.max=function(e){return Yy.reduce(Jy.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})};var Hy={flatMap:void 0},Ky=El;Hy.flatMap=Ky.mergeMap;var Gy={mergeMapTo:void 0},Qy=El,Xy=Ko;Gy.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),Xy.isFunction(t)?Qy.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),Qy.mergeMap((function(){return e}),r))};var Zy={mergeScan:void 0},eh=Ni,th=Al;Zy.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),eh.operate((function(n,o){var i=t;return th.mergeInternals(n,o,(function(t,r){return e(i,t,r)}),r,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))};var rh={},nh={},oh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ih=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};nh.merge=void 0;var ah=Ni,uh=Yf,ch=jl,sh=ku,lh=Bu;nh.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=sh.popScheduler(e),n=sh.popNumber(e,1/0);return e=uh.argsOrArgArray(e),ah.operate((function(t,o){ch.mergeAll(n)(lh.from(ih([t],oh(e)),r)).subscribe(o)}))};var fh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ph=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};rh.mergeWith=void 0;var dh=nh;rh.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dh.merge.apply(void 0,ph([],fh(e)))};var vh={min:void 0},bh=Id,yh=Ko;vh.min=function(e){return bh.reduce(yh.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})};var hh={multicast:void 0},mh=Mi,gh=Ko,wh=Sv;hh.multicast=function(e,t){var r=gh.isFunction(e)?e:function(){return e};return gh.isFunction(t)?wh.connect(t,{connector:r}):function(e){return new mh.ConnectableObservable(e,r)}};var Oh={pairwise:void 0},Sh=Ni,_h=Ui;Oh.pairwise=function(){return Sh.operate((function(e,t){var r,n=!1;e.subscribe(_h.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))};var xh={pluck:void 0},jh=Ws;xh.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return jh.map((function(t){for(var n=t,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))};var Eh={publish:void 0},Ah=ua,Ph=hh,Th=Sv;Eh.publish=function(e){return e?function(t){return Th.connect(e)(t)}:function(e){return Ph.multicast(new Ah.Subject)(e)}};var Ih={publishBehavior:void 0},kh=ga,Ch=Mi;Ih.publishBehavior=function(e){return function(t){var r=new kh.BehaviorSubject(e);return new Ch.ConnectableObservable(t,(function(){return r}))}};var Fh={publishLast:void 0},Mh=Aa,Rh=Mi;Fh.publishLast=function(){return function(e){var t=new Mh.AsyncSubject;return new Rh.ConnectableObservable(e,(function(){return t}))}};var Nh={publishReplay:void 0},Bh=Sa,Lh=hh,zh=Ko;Nh.publishReplay=function(e,t,r,n){r&&!zh.isFunction(r)&&(n=r);var o=zh.isFunction(r)?r:void 0;return function(r){return Lh.multicast(new Bh.ReplaySubject(e,t,n),o)(r)}};var Uh={},Wh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},qh=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Uh.raceWith=void 0;var Dh=vp,$h=Ni,Vh=Si;Uh.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?$h.operate((function(t,r){Dh.raceInit(qh([t],Wh(e)))(r)})):Vh.identity};var Yh={repeat:void 0},Jh=Tu,Hh=Ni,Kh=Ui,Gh=Uu,Qh=If;Yh.repeat=function(e){var t,r,n=1/0;return null!=e&&("object"==typeof e?(t=e.count,n=void 0===t?1/0:t,r=e.delay):n=e),n<=0?function(){return Jh.EMPTY}:Hh.operate((function(e,t){var o,i=0,a=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?Qh.timer(r):Gh.innerFrom(r(i)),n=Kh.createOperatorSubscriber(t,(function(){n.unsubscribe(),u()}));e.subscribe(n)}else u()},u=function(){var r=!1;o=e.subscribe(Kh.createOperatorSubscriber(t,void 0,(function(){++i<n?o?a():r=!0:t.complete()}))),r&&a()};u()}))};var Xh={repeatWhen:void 0},Zh=ua,em=Ni,tm=Ui;Xh.repeatWhen=function(e){return em.operate((function(t,r){var n,o,i=!1,a=!1,u=!1,c=function(){return u&&a&&(r.complete(),!0)},s=function(){u=!1,n=t.subscribe(tm.createOperatorSubscriber(r,void 0,(function(){u=!0,!c()&&(o||(o=new Zh.Subject,e(o).subscribe(tm.createOperatorSubscriber(r,(function(){n?s():i=!0}),(function(){a=!0,c()})))),o).next()}))),i&&(n.unsubscribe(),n=null,i=!1,s())};s()}))};var rm={retry:void 0},nm=Ni,om=Ui,im=Si,am=If,um=Uu;rm.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,n=void 0===r?1/0:r,o=t.delay,i=t.resetOnSuccess,a=void 0!==i&&i;return n<=0?im.identity:nm.operate((function(e,t){var r,i=0,u=function(){var c=!1;r=e.subscribe(om.createOperatorSubscriber(t,(function(e){a&&(i=0),t.next(e)}),void 0,(function(e){if(i++<n){var a=function(){r?(r.unsubscribe(),r=null,u()):c=!0};if(null!=o){var s="number"==typeof o?am.timer(o):um.innerFrom(o(e,i)),l=om.createOperatorSubscriber(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));s.subscribe(l)}else a()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,u())};u()}))};var cm={retryWhen:void 0},sm=ua,lm=Ni,fm=Ui;cm.retryWhen=function(e){return lm.operate((function(t,r){var n,o,i=!1,a=function(){n=t.subscribe(fm.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new sm.Subject,e(o).subscribe(fm.createOperatorSubscriber(r,(function(){return n?a():i=!0})))),o&&o.next(t)}))),i&&(n.unsubscribe(),n=null,i=!1,a())};a()}))};var pm={sample:void 0},dm=Ni,vm=vi,bm=Ui;pm.sample=function(e){return dm.operate((function(t,r){var n=!1,o=null;t.subscribe(bm.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(bm.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),vm.noop))}))};var ym={sampleTime:void 0},hm=au,mm=pm,gm=Tf;ym.sampleTime=function(e,t){return void 0===t&&(t=hm.asyncScheduler),mm.sample(gm.interval(e,t))};var wm={scan:void 0},Om=Ni,Sm=kd;wm.scan=function(e,t){return Om.operate(Sm.scanInternals(e,t,arguments.length>=2,!0))};var _m={sequenceEqual:void 0},xm=Ni,jm=Ui;_m.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),xm.operate((function(r,n){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=function(e){n.next(e),n.complete()},u=function(e,r){var o=jm.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?a(!1):e.buffer.push(n):!t(n,o.shift())&&a(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&a(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(u(o,i)),e.subscribe(u(i,o))}))};var Em={},Am=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Pm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Em.share=void 0;var Tm=Bu,Im=Yv,km=ua,Cm=Ho,Fm=Ni;function Mm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,Pm([],Am(r))).pipe(Im.take(1)).subscribe((function(){return e()}))}Em.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new km.Subject}:t,n=e.resetOnError,o=void 0===n||n,i=e.resetOnComplete,a=void 0===i||i,u=e.resetOnRefCountZero,c=void 0===u||u;return function(e){var t=null,n=null,i=null,u=0,s=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=null},p=function(){f(),t=i=null,s=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return Fm.operate((function(e,v){u++,l||s||f();var b=i=null!=i?i:r();v.add((function(){0!==--u||l||s||(n=Mm(d,c))})),b.subscribe(v),t||(t=new Cm.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){l=!0,f(),n=Mm(p,o,e),b.error(e)},complete:function(){s=!0,f(),n=Mm(p,a),b.complete()}}),Tm.from(e).subscribe(t))}))(e)}};var Rm={shareReplay:void 0},Nm=Sa,Bm=Em;Rm.shareReplay=function(e,t,r){var n,o,i,a,u=!1;return e&&"object"==typeof e?(n=e.bufferSize,a=void 0===n?1/0:n,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(i=e.refCount)&&i,r=e.scheduler):a=null!=e?e:1/0,Bm.share({connector:function(){return new Nm.ReplaySubject(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})};var Lm={single:void 0},zm=xs,Um=Ms,Wm=Cs,qm=Ni,Dm=Ui;Lm.single=function(e){return qm.operate((function(t,r){var n,o=!1,i=!1,a=0;t.subscribe(Dm.createOperatorSubscriber(r,(function(u){i=!0,e&&!e(u,a++,t)||(o&&r.error(new Um.SequenceError("Too many matching values")),o=!0,n=u)}),(function(){o?(r.next(n),r.complete()):r.error(i?new Wm.NotFoundError("No matching values"):new zm.EmptyError)})))}))};var $m={skip:void 0},Vm=cp;$m.skip=function(e){return Vm.filter((function(t,r){return e<=r}))};var Ym={skipLast:void 0},Jm=Si,Hm=Ni,Km=Ui;Ym.skipLast=function(e){return e<=0?Jm.identity:Hm.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(Km.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))};var Gm={skipUntil:void 0},Qm=Ni,Xm=Ui,Zm=Uu,eg=vi;Gm.skipUntil=function(e){return Qm.operate((function(t,r){var n=!1,o=Xm.createOperatorSubscriber(r,(function(){null==o||o.unsubscribe(),n=!0}),eg.noop);Zm.innerFrom(e).subscribe(o),t.subscribe(Xm.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))};var tg={skipWhile:void 0},rg=Ni,ng=Ui;tg.skipWhile=function(e){return rg.operate((function(t,r){var n=!1,o=0;t.subscribe(ng.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))};var og={startWith:void 0},ig=_l,ag=ku,ug=Ni;og.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ag.popScheduler(e);return ug.operate((function(t,n){(r?ig.concat(e,t,r):ig.concat(e,t)).subscribe(n)}))};var cg={},sg={switchMap:void 0},lg=Uu,fg=Ni,pg=Ui;sg.switchMap=function(e,t){return fg.operate((function(r,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};r.subscribe(pg.createOperatorSubscriber(n,(function(r){null==o||o.unsubscribe();var a=0,c=i++;lg.innerFrom(e(r,c)).subscribe(o=pg.createOperatorSubscriber(n,(function(e){return n.next(t?t(r,e,c,a++):e)}),(function(){o=null,u()})))}),(function(){a=!0,u()})))}))},cg.switchAll=void 0;var dg=sg,vg=Si;cg.switchAll=function(){return dg.switchMap(vg.identity)};var bg={switchMapTo:void 0},yg=sg,hg=Ko;bg.switchMapTo=function(e,t){return hg.isFunction(t)?yg.switchMap((function(){return e}),t):yg.switchMap((function(){return e}))};var mg={switchScan:void 0},gg=sg,wg=Ni;mg.switchScan=function(e,t){return wg.operate((function(r,n){var o=t;return gg.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(n),function(){o=null}}))};var Og={takeUntil:void 0},Sg=Ni,_g=Ui,xg=Uu,jg=vi;Og.takeUntil=function(e){return Sg.operate((function(t,r){xg.innerFrom(e).subscribe(_g.createOperatorSubscriber(r,(function(){return r.complete()}),jg.noop)),!r.closed&&t.subscribe(r)}))};var Eg={takeWhile:void 0},Ag=Ni,Pg=Ui;Eg.takeWhile=function(e,t){return void 0===t&&(t=!1),Ag.operate((function(r,n){var o=0;r.subscribe(Pg.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))};var Tg={tap:void 0},Ig=Ko,kg=Ni,Cg=Ui,Fg=Si;Tg.tap=function(e,t,r){var n=Ig.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return n?kg.operate((function(e,t){var r;null===(r=n.subscribe)||void 0===r||r.call(n);var o=!0;e.subscribe(Cg.createOperatorSubscriber(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;o=!1,null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;o=!1,null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)}),(function(){var e,t;o&&(null===(e=n.unsubscribe)||void 0===e||e.call(n)),null===(t=n.finalize)||void 0===t||t.call(n)})))})):Fg.identity};var Mg={};!function(e){e.throttle=e.defaultThrottleConfig=void 0;var t=Ni,r=Ui,n=Uu;e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(o,i){return void 0===i&&(i=e.defaultThrottleConfig),t.operate((function(e,t){var a=i.leading,u=i.trailing,c=!1,s=null,l=null,f=!1,p=function(){null==l||l.unsubscribe(),l=null,u&&(b(),f&&t.complete())},d=function(){l=null,f&&t.complete()},v=function(e){return l=n.innerFrom(o(e)).subscribe(r.createOperatorSubscriber(t,p,d))},b=function(){if(c){c=!1;var e=s;s=null,t.next(e),!f&&v(e)}};e.subscribe(r.createOperatorSubscriber(t,(function(e){c=!0,s=e,(!l||l.closed)&&(a?b():v(e))}),(function(){f=!0,(!(u&&c&&l)||l.closed)&&t.complete()})))}))}}(Mg);var Rg={throttleTime:void 0},Ng=au,Bg=Mg,Lg=If;Rg.throttleTime=function(e,t,r){void 0===t&&(t=Ng.asyncScheduler),void 0===r&&(r=Bg.defaultThrottleConfig);var n=Lg.timer(e,t);return Bg.throttle((function(){return n}),r)};var zg={};zg.TimeInterval=zg.timeInterval=void 0;var Ug=au,Wg=Ni,qg=Ui;zg.timeInterval=function(e){return void 0===e&&(e=Ug.asyncScheduler),Wg.operate((function(t,r){var n=e.now();t.subscribe(qg.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new Dg(t,i))})))}))};var Dg=function(e,t){this.value=e,this.interval=t};zg.TimeInterval=Dg;var $g={timeoutWith:void 0},Vg=au,Yg=Bs,Jg=Ns;$g.timeoutWith=function(e,t,r){var n,o,i;if(r=null!=r?r:Vg.async,Yg.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return Jg.timeout({first:n,each:o,scheduler:r,with:i})};var Hg={timestamp:void 0},Kg=_a,Gg=Ws;Hg.timestamp=function(e){return void 0===e&&(e=Kg.dateTimestampProvider),Gg.map((function(t){return{value:t,timestamp:e.now()}}))};var Qg={window:void 0},Xg=ua,Zg=Ni,ew=Ui,tw=vi;Qg.window=function(e){return Zg.operate((function(t,r){var n=new Xg.Subject;r.next(n.asObservable());var o=function(e){n.error(e),r.error(e)};return t.subscribe(ew.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),r.complete()}),o)),e.subscribe(ew.createOperatorSubscriber(r,(function(){n.complete(),r.next(n=new Xg.Subject)}),tw.noop,o)),function(){null==n||n.unsubscribe(),n=null}}))};var rw={},nw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};rw.windowCount=void 0;var ow=ua,iw=Ni,aw=Ui;rw.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return iw.operate((function(t,n){var o=[new ow.Subject],i=0;n.next(o[0].asObservable()),t.subscribe(aw.createOperatorSubscriber(n,(function(t){var a,u;try{for(var c=nw(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var l=i-e+1;if(l>=0&&l%r==0&&o.shift().complete(),++i%r==0){var f=new ow.Subject;o.push(f),n.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();n.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);n.error(e)}),(function(){o=null})))}))};var uw={windowTime:void 0},cw=ua,sw=au,lw=Go,fw=Ni,pw=Ui,dw=ei,vw=ku,bw=Pc;uw.windowTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=vw.popScheduler(n))&&void 0!==t?t:sw.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return fw.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),dw.arrRemove(n,e),o&&s()},s=function(){if(n){var t=new lw.Subscription;r.add(t);var o=new cw.Subject,a={window:o,subs:t,seen:0};n.push(a),r.next(o.asObservable()),bw.executeSchedule(t,i,(function(){return c(a)}),e)}};null!==a&&a>=0?bw.executeSchedule(r,i,s,a,!0):o=!0,s();var l=function(e){return n.slice().forEach(e)},f=function(e){l((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(pw.createOperatorSubscriber(r,(function(e){l((function(t){t.window.next(e),u<=++t.seen&&c(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){n=null}}))};var yw={},hw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};yw.windowToggle=void 0;var mw=ua,gw=Go,ww=Ni,Ow=Uu,Sw=Ui,_w=vi,xw=ei;yw.windowToggle=function(e,t){return ww.operate((function(r,n){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);n.error(e)};Ow.innerFrom(e).subscribe(Sw.createOperatorSubscriber(n,(function(e){var r=new mw.Subject;o.push(r);var a,u=new gw.Subscription;try{a=Ow.innerFrom(t(e))}catch(e){return void i(e)}n.next(r.asObservable()),u.add(a.subscribe(Sw.createOperatorSubscriber(n,(function(){xw.arrRemove(o,r),r.complete(),u.unsubscribe()}),_w.noop,i)))}),_w.noop)),r.subscribe(Sw.createOperatorSubscriber(n,(function(e){var t,r,n=o.slice();try{for(var i=hw(n),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();n.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))};var jw={windowWhen:void 0},Ew=ua,Aw=Ni,Pw=Ui,Tw=Uu;jw.windowWhen=function(e){return Aw.operate((function(t,r){var n,o,i=function(e){n.error(e),r.error(e)},a=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new Ew.Subject,r.next(n.asObservable());try{t=Tw.innerFrom(e())}catch(e){return void i(e)}t.subscribe(o=Pw.createOperatorSubscriber(r,a,a,i))};a(),t.subscribe(Pw.createOperatorSubscriber(r,(function(e){return n.next(e)}),(function(){n.complete(),r.complete()}),i,(function(){null==o||o.unsubscribe(),n=null})))}))};var Iw={},kw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Cw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Iw.withLatestFrom=void 0;var Fw=Ni,Mw=Ui,Rw=Uu,Nw=Si,Bw=vi,Lw=ku;Iw.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Lw.popResultSelector(e);return Fw.operate((function(t,n){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),u=!1,c=function(t){Rw.innerFrom(e[t]).subscribe(Mw.createOperatorSubscriber(n,(function(e){i[t]=e,u||a[t]||(a[t]=!0,(u=a.every(Nw.identity))&&(a=null))}),Bw.noop))},s=0;s<o;s++)c(s);t.subscribe(Mw.createOperatorSubscriber(n,(function(e){if(u){var t=Cw([e],kw(i));n.next(r?r.apply(void 0,Cw([],kw(t))):t)}})))}))};var zw={zipAll:void 0},Uw=Ap,Ww=Pd;zw.zipAll=function(e){return Ww.joinAllInternals(Uw.zip,e)};var qw={},Dw={},$w=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Vw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Dw.zip=void 0;var Yw=Ap,Jw=Ni;Dw.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jw.operate((function(t,r){Yw.zip.apply(void 0,Vw([t],$w(e))).subscribe(r)}))};var Hw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};qw.zipWith=void 0;var Gw=Dw;function Qw(e,t){const r=Gn(),n=o.exports.useMemo((()=>new Qn.ObservableFiniteStateMachine(e,t)),[e]);return o.exports.useEffect((()=>{const e=n.observeStateChanges().subscribe((()=>r()));return()=>e.unsubscribe()}),[n]),n}qw.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gw.zip.apply(void 0,Kw([],Hw(e)))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var o=Jo;Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return o.Observable}});var i=Mi;Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=wi;Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var u=Xi;Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=ua;Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var s=ga;Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return s.BehaviorSubject}});var l=Sa;Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var f=Aa;Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var p=Ia;Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var d=au;Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var v=uu;Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var b=vu;Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=Su;Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var h=Xa;Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return h.Scheduler}});var m=Go;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var g=Ho;Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var w=Pu;Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return w.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return w.NotificationKind}});var O=Oi;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=vi;Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var _=Si;Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return _.identity}});var x=ws;Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return x.isObservable}});var j=_s;Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return j.lastValueFrom}});var E=As;Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var A=Is;Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var P=xs;Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var T=Cs;Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var I=ca;Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var k=Ms;Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var C=Ns;Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return C.TimeoutError}});var F=Qo;Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var M=Ls;Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var R=nl;Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return R.bindNodeCallback}});var N=il;Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var B=_l;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}});var L=ql;Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return L.connectable}});var z=Dl;Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return z.defer}});var U=Tu;Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return U.empty}});var W=Gl;Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return W.forkJoin}});var q=Bu;Object.defineProperty(e,"from",{enumerable:!0,get:function(){return q.from}});var D=of;Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return D.fromEvent}});var $=hf;Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return $.fromEventPattern}});var V=Of;Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return V.generate}});var Y=Af;Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var J=Tf;Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return J.interval}});var H=Bf;Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return H.merge}});var K=Df;Object.defineProperty(e,"never",{enumerable:!0,get:function(){return K.never}});var G=Iu;Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=$f;Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=op;Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return X.pairs}});var Z=ap;Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Z.partition}});var ee=vp;Object.defineProperty(e,"race",{enumerable:!0,get:function(){return ee.race}});var te=wp;Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.range}});var re=hs;Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ne=If;Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return ne.timer}});var oe=_p;Object.defineProperty(e,"using",{enumerable:!0,get:function(){return oe.using}});var ie=Ap;Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ie.zip}});var ae=Lu;Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=Tu;Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=Df;Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(Np,e);var se=si;Object.defineProperty(e,"config",{enumerable:!0,get:function(){return se.config}});var le=Bp;Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return le.audit}});var fe=Wp;Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return fe.auditTime}});var pe=Vp;Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var de=Kp;Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var ve=ed;Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var be=sd;Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=hd;Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var he=Sd;Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return he.catchError}});var me=Ed;Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var ge=Ad;Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}});var we=Yd;Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return we.combineLatestWith}});var Oe=xl;Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Oe.concatAll}});var Se=iv;Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var _e=cv;Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var xe=fv;Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return xe.concatWith}});var je=Sv;Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return je.connect}});var Ee=Iv;Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ee.count}});var Ae=Cv;Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Ae.debounce}});var Pe=Bv;Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Te=Wv;Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Ie=$v;Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Ie.delay}});var ke=Vv;Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Ce=lb;Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ce.dematerialize}});var Fe=vb;Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Me=mb;Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Re=_b;Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Re.distinctUntilKeyChanged}});var Ne=jb;Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Be=Nb;Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Le=Wb;Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Le.every}});var ze=$b;Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return ze.exhaust}});var Ue=Vb;Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var We=Gb;Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var qe=ty;Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return qe.expand}});var De=cp;Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return De.filter}});var $e=oy;Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return $e.finalize}});var Ve=ay;Object.defineProperty(e,"find",{enumerable:!0,get:function(){return Ve.find}});var Ye=ly;Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Ye.findIndex}});var Je=dy;Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Je.first}});var He=wy;Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return He.groupBy}});var Ke=Gv;Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Ge=Ey;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ge.isEmpty}});var Qe=Ty;Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=Ws;Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Xe.map}});var Ze=eb;Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Ze.mapTo}});var et=Wy;Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return et.materialize}});var tt=Vy;Object.defineProperty(e,"max",{enumerable:!0,get:function(){return tt.max}});var rt=jl;Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var nt=Hy;Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return nt.flatMap}});var ot=El;Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var it=Gy;Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return it.mergeMapTo}});var at=Zy;Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=rh;Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=vh;Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ct.min}});var st=hh;Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return st.multicast}});var lt=Ac;Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var ft=Oh;Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ft.pairwise}});var pt=xh;Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var dt=Eh;Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return dt.publish}});var vt=Ih;Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var bt=Fh;Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bt.publishLast}});var yt=Nh;Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var ht=Uh;Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ht.raceWith}});var mt=Id;Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return mt.reduce}});var gt=Yh;Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return gt.repeat}});var wt=Xh;Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return wt.repeatWhen}});var Ot=rm;Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Ot.retry}});var St=cm;Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var _t=Ri;Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var xt=pm;Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return xt.sample}});var jt=ym;Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}});var Et=wm;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Et.scan}});var At=_m;Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return At.sequenceEqual}});var Pt=Em;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Pt.share}});var Tt=Rm;Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var It=Lm;Object.defineProperty(e,"single",{enumerable:!0,get:function(){return It.single}});var kt=$m;Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ct=Ym;Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Ct.skipLast}});var Ft=Gm;Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Mt=tg;Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Mt.skipWhile}});var Rt=og;Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Rt.startWith}});var Nt=Cc;Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var Bt=cg;Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Lt=sg;Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var zt=bg;Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return zt.switchMapTo}});var Ut=mg;Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var Wt=Yv;Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Wt.take}});var qt=Iy;Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Dt=Og;Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Dt.takeUntil}});var $t=Eg;Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return $t.takeWhile}});var Vt=Tg;Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return Vt.tap}});var Yt=Mg;Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Jt=Rg;Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Ht=Eb;Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Ht.throwIfEmpty}});var Kt=zg;Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Gt=Ns;Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Gt.timeout}});var Qt=$g;Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Xt=Hg;Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Xt.timestamp}});var Zt=Td;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Zt.toArray}});var er=Qg;Object.defineProperty(e,"window",{enumerable:!0,get:function(){return er.window}});var tr=rw;Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return tr.windowCount}});var rr=uw;Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return rr.windowTime}});var nr=yw;Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var or=jw;Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ir=Iw;Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ir.withLatestFrom}});var ar=zw;Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}});var ur=qw;Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}(Yo),function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=qo,r=Yo,n=g;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new r.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const r=this.state;this.stateChanges.next({event:e,oldState:t,newState:r}),(0,n.isEmptyObject)(this.schema[r])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=qo;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}(Vo),function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Xn,e),r(Zn,e),r(eo,e),r(ro,e),r(oo,e),r(ao,e),r(co,e),r(po,e),r(Fo,e),r(Lo,e),r(qo,e),r(Vo,e)}(Qn);var Xw=Qn.ObservableFiniteStateMachine;export{Xw as ObservableFiniteStateMachine,Qw as useFiniteStateMachine,Gn as useForceUpdate,d as useIncrement,y as useIsFirstRender,b as useIsMounted,v as useMount,Vn as useMultipleSelection,h as useRenderCounter,Hn as useResizeObserver,Dn as useSingleSelection,Yn as useStateCycle,Kn as useStep,Jn as useToggle,m as useUpdateEffect};
|
|
17
|
+
*/function p(){return c||(c=1,e=f,"production"!==process.env.NODE_ENV&&function(){var t=a(),r=60103,n=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,u=60112;e.Suspense=60113;var c=60120,s=60115,l=60116,f=60121,p=60122,d=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),u=y("react.forward_ref"),e.Suspense=y("react.suspense"),c=y("react.suspense_list"),s=y("react.memo"),l=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),d=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),v=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},w={current:null},O={},S=null;function _(e){S=e}O.setExtraStackFrame=function(e){S=e},O.getCurrentStack=null,O.getStackAddendum=function(){var e="";S&&(e+=S);var t=O.getCurrentStack;return t&&(e+=t()||""),e};var x={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:t};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("warn",e,r)}function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("error",e,r)}function A(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=O;var P={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;P[o]||(E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),P[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},k={};function C(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}Object.freeze(k),C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(C.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var R in F)F.hasOwnProperty(R)&&M(R,F[R]);function N(){}function B(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}N.prototype=C.prototype;var L=B.prototype=new N;function z(e){return e.displayName||"Context"}function U(t){if(null==t)return null;if("number"==typeof t.tag&&E("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case n:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return z(t)+".Consumer";case o:return z(t._context)+".Provider";case u:return d=t,v=t.render,b="ForwardRef",y=v.displayName||v.name||"",d.displayName||(""!==y?b+"("+y+")":b);case s:return U(t.type);case f:return U(t._render);case l:var r=t,a=r._payload,p=r._init;try{return U(p(a))}catch(e){return null}}var d,v,b,y;return null}L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var W,q,D,V=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){W||(W=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function K(e,t){var r=function(){q||(q=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=U(w.current.type);D[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),D[t]=!0)}}D={};var Q=function(e,t,n,o,i,a,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},i=null,a=null,u=null,c=null;if(null!=t)for(n in Y(t)&&(a=t.ref,G(t)),J(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)V.call(t,n)&&!$.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&K(o,d)}return Q(e,i,a,u,c,w.current,o)}function Z(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,a=t({},e.props),u=e.key,c=e.ref,s=e._self,l=e._source,f=e._owner;if(null!=r)for(o in Y(r)&&(c=r.ref,f=w.current),J(r)&&(u=""+r.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),r)V.call(r,o)&&!$.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),v=0;v<p;v++)d[v]=arguments[v+2];a.children=d}return Q(e.type,u,c,s,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),v=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var b="";null!=v&&(b=ne(v)+"/"),ie(d,t,b,"",(function(e){return e}))}else null!=d&&(ee(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+v,d=Q(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var y=0,h=""===i?".":i+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)y+=ie(l=e[g],t,o,h+oe(l,g),a);else{var w=m(e);if("function"==typeof w){var O=e;w===O.entries&&(te||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,_=w.call(O),x=0;!(S=_.next()).done;)y+=ie(l=S.value,t,o,h+oe(l,x++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===e.Profiler||t===v||t===e.StrictMode||t===e.Suspense||t===c||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===i||t.$$typeof===u||t.$$typeof===d||t.$$typeof===f||t[0]===p)}function se(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var le,fe,pe,de,ve,be,ye,he=0;function me(){}me.__reactDisabledLog=!0;var ge,we=x.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===ge)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);ge=n&&n[1]||""}return"\n"+ge+e}var Se,_e=!1,xe="function"==typeof WeakMap?WeakMap:Map;function je(e,r){if(!e||_e)return"";var n,o=Se.get(e);if(void 0!==o)return o;_e=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=we.current,we.current=null,function(){if(0===he){le=console.log,fe=console.info,pe=console.warn,de=console.error,ve=console.group,be=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(e,[],u)}else{try{u.call()}catch(e){n=e}e.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{_e=!1,we.current=i,function(){if(0==--he){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:le}),info:t({},e,{value:fe}),warn:t({},e,{value:pe}),error:t({},e,{value:de}),group:t({},e,{value:ve}),groupCollapsed:t({},e,{value:be}),groupEnd:t({},e,{value:ye})})}he<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",v=d?Oe(d):"";return"function"==typeof e&&Se.set(e,v),v}function Ee(e,t,r){return je(e,!1)}function Ae(t,r,n){if(null==t)return"";if("function"==typeof t)return je(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return Oe(t);switch(t){case e.Suspense:return Oe("Suspense");case c:return Oe("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return Ee(t.render);case s:return Ae(t.type,r,n);case f:return Ee(t._render);case l:var o=t,i=o._payload,a=o._init;try{return Ae(a(i),r,n)}catch(e){}}return""}Se=new xe;var Pe,Te={},Ie=x.ReactDebugCurrentFrame;function ke(e){if(e){var t=e._owner,r=Ae(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function Ce(e){if(e){var t=e._owner;_(Ae(e.type,e._source,t?t.type:null))}else _(null)}function Fe(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Me(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Re={};function Ne(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Fe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Re[r]){Re[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+U(e._owner.type)+"."),Ce(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ce(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Ne(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Ne(i.value,t)}}function Le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=U(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(ke(o),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),ke(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,ke(o),E("Failed %s type: %s",r,u.message),ke(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ze(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ce(null);break}}null!==e.ref&&(Ce(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null))}function Ue(t,n,o){var i=ce(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=Me(n);a+=c||Fe(),null===t?u="null":Array.isArray(t)?u="array":void 0!==t&&t.$$typeof===r?(u="<"+(U(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof t,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var s=X.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)Be(arguments[l],t);return t===e.Fragment?ze(s):Le(s),s}var We=!1;try{var qe=Object.freeze({});new Map([[qe,null]]),new Set([qe])}catch(e){}var De=Ue,Ve=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],n.type);return Le(n),n},$e=function(e){var t=Ue.bind(null,e);return t.type=e,We||(We=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ye={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ye,e.Component=C,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,e.cloneElement=Ve,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&E("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,a=!1,u=!1,c={$$typeof:i,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},e.createElement=De,e.createFactory=$e,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===s?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:u,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},e.isValidElement=ee,e.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},e.memo=function(e,t){ce(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var r=se();if(void 0!==t&&E("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,r){return se().useReducer(e,t,r)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()),f;var e}function d(e){const[t,r]=o.exports.useState(e);return[t,o.exports.useCallback(((e=1)=>{r((t=>t+e))}),[]),o.exports.useCallback((()=>{r(e)}),[])]}function v(e){o.exports.useEffect(e,[])}function b(){const e=o.exports.useRef(!1);return v((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}function y(){const e=o.exports.useRef(l.InitialValue);switch(e.current){case l.InitialValue:e.current=l.First;break;case l.First:e.current=l.NotFirst;break;case l.NotFirst:}return()=>e.current===l.First}function h(){const e=o.exports.useRef(0);return e.current++,e.current}function m(e,t){const r=y();o.exports.useEffect((()=>{if(!r())return e()}),t)}s=o,"production"===process.env.NODE_ENV?s.exports=u():s.exports=p(),function(e){e[e.InitialValue=0]="InitialValue",e[e.First=1]="First",e[e.NotFirst=2]="NotFirst"}(l||(l={}));var g={},w={};function O(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=O,w.isntArray=function(e){return!O(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var S={},_={};function x(e){return null===e}_.isntNull=_.isNull=void 0,_.isNull=x,_.isntNull=function(e){return!x(e)};var j={};function E(e){return void 0===e}j.isntUndefined=j.isUndefined=void 0,j.isUndefined=E,j.isntUndefined=function(e){return!E(e)};var A={};function P(e){return"function"==typeof e}A.isntFunction=A.isFunction=void 0,A.isFunction=P,A.isntFunction=function(e){return!P(e)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const T=_,I=j,k=A;function C(e){return(0,T.isntNull)(e)&&(0,I.isntUndefined)(e)&&(0,k.isFunction)(e[Symbol.asyncIterator])}S.isAsyncIterable=C,S.isntAsyncIterable=function(e){return!C(e)};var F={};function M(e){return"bigint"==typeof e}F.isntBigInt=F.isBigInt=void 0,F.isBigInt=M,F.isntBigInt=function(e){return!M(e)};var R={};function N(e){return"boolean"==typeof e}R.isntBoolean=R.isBoolean=void 0,R.isBoolean=N,R.isntBoolean=function(e){return!N(e)};var B={},L={};function z(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=z,L.isntString=function(e){return!z(e)},B.isntChar=B.isChar=void 0;const U=L;function W(e){return(0,U.isString)(e)&&1===e.length}B.isChar=W,B.isntChar=function(e){return!W(e)};var q={};function D(e){return e instanceof Date}q.isntDate=q.isDate=void 0,q.isDate=D,q.isntDate=function(e){return!D(e)};var V={};V.inEnum=void 0,V.inEnum=function(e,t){return Object.values(t).includes(e)};var $={};function Y(e){return e instanceof Error}$.isntError=$.isError=void 0,$.isError=Y,$.isntError=function(e){return!Y(e)};var J={};function H(e){return!e}J.isntFalsy=J.isFalsy=void 0,J.isFalsy=H,J.isntFalsy=function(e){return!H(e)};var K={};K.isntIterable=K.isIterable=void 0;const G=_,Q=j,X=A;function Z(e){return(0,G.isntNull)(e)&&(0,Q.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Z,K.isntIterable=function(e){return!Z(e)};var ee={},te={};function re(e){return"number"==typeof e}function ne(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=re,te.isntNumber=function(e){return!re(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=ne,te.isntNaN=function(e){return!ne(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=(ie||ae||Function("return this")()).Symbol,ce=ue,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0;var de=function(e){var t=le.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(e){}var o=fe.call(e);return n&&(t?e[pe]=r:delete e[pe]),o},ve=Object.prototype.toString;var be=de,ye=function(e){return ve.call(e)},he=ue?ue.toStringTag:void 0;var me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?be(e):ye(e)};var ge=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var we=me,Oe=ge,Se=function(e){return null!=e&&"object"==typeof e},_e=Function.prototype,xe=Object.prototype,je=_e.toString,Ee=xe.hasOwnProperty,Ae=je.call(Object);var Pe=function(e){if(!Se(e)||"[object Object]"!=we(e))return!1;var t=Oe(e);if(null===t)return!0;var r=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&je.call(r)==Ae},Te=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Ie=Te(Pe);function ke(e){return null!==e&&"object"==typeof e}function Ce(e){return(0,Ie.default)(e)}oe.isObject=ke,oe.isntObject=function(e){return!ke(e)},oe.isPlainObject=Ce,oe.isntPlainObject=function(e){return!Ce(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Fe=_,Me=R,Re=L,Ne=te,Be=w,Le=oe;function ze(e){return(0,Fe.isNull)(e)||(0,Me.isBoolean)(e)||(0,Re.isString)(e)||(0,Ne.isNumber)(e)||(0,Be.isArray)(e)&&e.every(ze)||(0,Le.isPlainObject)(e)&&Object.values(e).every(ze)}ee.isJson=ze,ee.isntJson=function(e){return!ze(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var Ue={};Ue.isPromiseLike=Ue.isntPromiseLike=Ue.isntPromise=Ue.isPromise=void 0;const We=oe,qe=A;function De(e){return e instanceof Promise}function Ve(e){return(0,We.isObject)(e)&&(0,qe.isFunction)(e.then)}Ue.isPromise=De,Ue.isntPromise=function(e){return!De(e)},Ue.isntPromiseLike=function(e){return!Ve(e)},Ue.isPromiseLike=Ve;var $e,Ye,Je,He={};He.isAbsoluteURL=void 0,He.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},$e=g,Ye=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),(Je=n&&n.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Ye(t,e,r)})(w,$e),Je(S,$e),Je(F,$e),Je(R,$e),Je(B,$e),Je(q,$e),Je(V,$e),Je($,$e),Je(J,$e),Je(A,$e),Je(K,$e),Je(ee,$e),Je(_,$e),Je(te,$e),Je(oe,$e),Je(Ue,$e),Je(L,$e),Je(j,$e),Je(He,$e);var Ke,Ge={},Qe={},Xe={},Ze={},et={},tt={},rt={};rt.go=void 0,rt.go=function(e){return e()},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(rt,e)}(tt);var nt={chunkByAsync:void 0};const ot=g;nt.chunkByAsync=function(e,t){return(0,ot.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e):async function*(e){let r=[],n=0;for(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e)};var it={};it.chunkBy=void 0,it.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)};var at,ut={};var ct={concatAsync:void 0};const st=g,lt=tt;ct.concatAsync=function(e,...t){return(0,lt.go)((async function*(){for(const r of[e,...t])if((0,st.isAsyncIterable)(r))for await(const e of r)yield e;else for(const e of r)yield e}))};var ft={concat:void 0};const pt=tt;ft.concat=function(e,...t){return(0,pt.go)((function*(){for(const r of[e,...t])yield*r}))};var dt,vt={},bt={};bt.copyIterable=bt.copyAsyncIterable=void 0,bt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},bt.copyIterable=function*(e){for(const t of e)yield t};var yt,ht={};var mt,gt={};var wt={dropUntilAsync:void 0};const Ot=g;wt.dropUntilAsync=function(e,t){return(0,Ot.isAsyncIterable)(e)?async function*(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await n.next())}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}}(e):async function*(e){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}}(e)};var St={};St.dropUntil=void 0,St.dropUntil=function*(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}};var _t,xt={};var jt={filterAsync:void 0};const Et=g;jt.filterAsync=function(e,t){return(0,Et.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r)&&(yield n),r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r)&&(yield n),r++}(e)};var At={};At.filter=void 0,At.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++};var Pt={},Tt={},It={flattenByAsync:void 0};const kt=g;function Ct(e){return(0,kt.isIterable)(e)&&(0,kt.isntChar)(e)}var Ft,Mt;function Rt(){if(Ft)return Tt;Ft=1,Tt.flattenDeepAsync=void 0;const e=It,t=Wn();return Tt.flattenDeepAsync=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(r,((e,t)=>t<=n))},Tt}It.flattenByAsync=function(e,t){return(0,kt.isAsyncIterable)(e)?async function*(e){const n=1;for await(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}(e):function(e){return r(e,1)}(e);async function*r(e,n){for(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}};var Nt={flattenBy:void 0};const Bt=g;Nt.flattenBy=function(e,t){return function*e(r,n){for(const i of r)o=i,(0,Bt.isIterable)(o)&&(0,Bt.isntChar)(o)&&t(i,n)?yield*e(i,n+1):yield i;var o}(e,1)};var Lt,zt={};function Ut(){if(Lt)return zt;Lt=1,zt.flattenDeep=void 0;const e=Nt,t=Wn();return zt.flattenDeep=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(r,((e,t)=>t<=n))},zt}var Wt,qt={};var Dt={mapAsync:void 0};const Vt=g;Dt.mapAsync=function(e,t){return(0,Vt.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)yield await t(n,r),r++}(e):async function*(e){let r=0;for(const n of e)yield await t(n,r),r++}(e)};var $t={};$t.map=void 0,$t.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++};var Yt,Jt={};function Ht(){if(Yt)return Jt;Yt=1,Jt.repeatAsync=void 0;const e=tt,t=Wn();return Jt.repeatAsync=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(n>0){for await(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Jt}var Kt,Gt={};function Qt(){if(Kt)return Gt;Kt=1,Gt.repeat=void 0;const e=tt,t=Wn();return Gt.repeat=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(n>0){for(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Gt}var Xt,Zt={};var er,tr={};var rr={};rr.splitAsync=void 0,rr.splitAsync=async function*(e,t){let r=[];for await(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var nr={splitByAsync:void 0};const or=g;nr.splitByAsync=function(e,t){return(0,or.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e):async function*(e){let r=[],n=0;for(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e)};var ir={};ir.splitBy=void 0,ir.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r};var ar={};ar.split=void 0,ar.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var ur,cr={};var sr,lr={};var fr,pr={};var dr={takeUntilAsync:void 0};const vr=g;dr.takeUntilAsync=function(e,t){return(0,vr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e){if(await t(n,r))break;yield n,r++}}(e):async function*(e){let r=0;for(const n of e){if(await t(n,r))break;yield n,r++}}(e)};var br={};br.takeUntil=void 0,br.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}};var yr,hr={};var mr={tapAsync:void 0};const gr=g;mr.tapAsync=function(e,t){return(0,gr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r),yield n,r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r),yield n,r++}(e)};var wr={};wr.tap=void 0,wr.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++};var Or={};Or.toAsyncIterable=void 0,Or.toAsyncIterable=async function*(e){for(const t of e)yield t};var Sr={};Sr.transformAsync=void 0,Sr.transformAsync=async function*(e,t){yield*t(e)};var _r={};_r.transform=void 0,_r.transform=function*(e,t){yield*t(e)};var xr={};xr.uniqAsync=void 0,xr.uniqAsync=async function*(e){const t=new Set;for await(const r of e)t.has(r)||(yield r,t.add(r))};var jr={uniqByAsync:void 0};const Er=g;jr.uniqByAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function*(e){const r=new Set;let n=0;for await(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e):async function*(e){const r=new Set;let n=0;for(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e)};var Ar={};Ar.uniqBy=void 0,Ar.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}};var Pr={};Pr.uniq=void 0,Pr.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))};var Tr={zipAsync:void 0};const Ir=g;var kr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(kr||(kr={})),Tr.zipAsync=function(e,...t){return async function*(...e){var t,r,n,o;const i=e.length,a=e.map((e=>(0,Ir.isAsyncIterable)(e)?[kr.Async,e[Symbol.asyncIterator]()]:[kr.Sync,e[Symbol.iterator]()])),u=a.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[r,n]=a[t];let o;if(o=r===kr.Async?await n.next():n.next(),o.done)return void(u[t]=!0);e[t]=o.value}yield e}}finally{const e=a.filter(((e,t)=>!u[t]));for(const[i,a]of e)i===kr.Async?await(null===(r=(t=a).return)||void 0===r?void 0:r.call(t)):null===(o=(n=a).return)||void 0===o||o.call(n)}}(e,...t)};var Cr,Fr={};function Mr(){return Cr||(Cr=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(function(){if(Ke)return et;Ke=1,et.chunkAsync=void 0;const e=tt,t=Wn();return et.chunkAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},et}(),e),r(nt,e),r(it,e),r(function(){if(at)return ut;at=1,ut.chunk=void 0;const e=tt,t=Wn();return ut.chunk=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},ut}(),e),r(ct,e),r(ft,e),r(function(){if(dt)return vt;dt=1,vt.dropAsync=void 0;const e=tt,t=bt,r=Wn();return vt.dropAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let r;try{let n;for(;({value:n,done:r}=await t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=await t.next())}finally{r||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},vt}(),e),r(function(){if(yt)return ht;yt=1,ht.dropRightAsync=void 0;const e=tt,t=bt,r=Wn();return ht.dropRightAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const r of e)t.push(r);return t}(n)).slice(0,-o);for(const t of e)yield t}))},ht}(),e),r(function(){if(mt)return gt;mt=1,gt.dropRight=void 0;const e=tt,t=bt,r=Wn();return gt.dropRight=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){const e=Array.from(n);yield*e.slice(0,-o)}))},gt}(),e),r(wt,e),r(St,e),r(function(){if(_t)return xt;_t=1,xt.drop=void 0;const e=tt,t=bt,r=Wn();return xt.drop=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let r;try{let n;for(;({value:n,done:r}=t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=t.next())}finally{r||null===(e=t.return)||void 0===e||e.call(t)}}))},xt}(),e),r(jt,e),r(At,e),r(function(){if(Mt)return Pt;Mt=1,Pt.flattenAsync=void 0;const e=Rt();return Pt.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},Pt}(),e),r(It,e),r(Nt,e),r(Rt(),e),r(Ut(),e),r(function(){if(Wt)return qt;Wt=1,qt.flatten=void 0;const e=Ut();return qt.flatten=function(t){return(0,e.flattenDeep)(t,1)},qt}(),e),r(Dt,e),r($t,e),r(Ht(),e),r(Qt(),e),r(function(){if(Xt)return Zt;Xt=1,Zt.sliceAsync=void 0;const e=tt,t=Wn();return Zt.sliceAsync=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},Zt}(),e),r(function(){if(er)return tr;er=1,tr.slice=void 0;const e=tt,t=Wn();return tr.slice=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},tr}(),e),r(rr,e),r(nr,e),r(ir,e),r(ar,e),r(function(){if(ur)return cr;ur=1,cr.takeAsync=void 0;const e=tt,t=Wn();return cr.takeAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==n)for await(const e of r)if(yield e,0==--n)break}))},cr}(),e),r(function(){if(sr)return lr;sr=1,lr.takeRightAsync=void 0;const e=tt,t=Wn();return lr.takeRightAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=await t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},lr}(),e),r(function(){if(fr)return pr;fr=1,pr.takeRight=void 0;const e=tt,t=Wn();return pr.takeRight=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},pr}(),e),r(dr,e),r(br,e),r(function(){if(yr)return hr;yr=1,hr.take=void 0;const e=tt,t=Wn();return hr.take=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==n)for(const e of r)if(yield e,0==--n)break}))},hr}(),e),r(mr,e),r(wr,e),r(Or,e),r(Sr,e),r(_r,e),r(xr,e),r(jr,e),r(Ar,e),r(Pr,e),r(Tr,e),r(Fr,e)}(Ze)),Ze}Fr.zip=void 0,Fr.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]())),n=r.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=r[o].next();if(i)return void(n[o]=!0);e[o]=t}yield e}}finally{r.filter(((e,t)=>!n[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var Rr={},Nr={};Nr.consume=void 0,Nr.consume=function(e,t){return t(e)};var Br={eachAsync:void 0};const Lr=g;Br.eachAsync=function(e,t){return(0,Lr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e)await t(n,r),r++}(e):async function(e){let r=0;for(const n of e)await t(n,r),r++}(e)};var zr={};zr.each=void 0,zr.each=function(e,t){let r=0;for(const n of e)t(n,r),r++};var Ur={everyAsync:void 0};const Wr=g;Ur.everyAsync=function(e,t){return(0,Wr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(!await t(n,r))return!1;r++}return!0}(e):async function(e){let r=0;for(const n of e){if(!await t(n,r))return!1;r++}return!0}(e)};var qr={};qr.every=void 0,qr.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0};var Dr={findAsync:void 0};const Vr=g;Dr.findAsync=function(e,t){return(0,Vr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return n;r++}return}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return n;r++}return}(e)};var $r={};$r.find=void 0,$r.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}};var Yr={};Yr.firstAsync=void 0,Yr.firstAsync=async function(e){for await(const t of e)return t};var Jr={};Jr.first=void 0,Jr.first=function(e){for(const t of e)return t};var Hr={};Hr.includesAsync=void 0,Hr.includesAsync=async function(e,t){for await(const r of e)if(r===t)return!0;return!1};var Kr={};Kr.includes=void 0,Kr.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1};var Gr={};Gr.matchAsync=void 0,Gr.matchAsync=async function(e,t){const r=t.length;let n=0;for await(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Qr={};Qr.match=void 0,Qr.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Xr={reduceAsync:void 0};const Zr=g;Xr.reduceAsync=function(e,t,r){return(0,Zr.isUndefined)(r)?function(e,t){return(0,Zr.isAsyncIterable)(e)?r(e):n(e);async function r(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,a=await i(n),u=1;for(;({value:e,done:o}=await n.next()),!o;)a=await t(a,e,u++);return a}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function n(e){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=await t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,r){return(0,Zr.isAsyncIterable)(e)?o(e):n(e);async function n(e){let n=r,o=0;for(const r of e)n=await t(n,r,o++);return n}async function o(e){let n=r,o=0;for await(const r of e)n=await t(n,r,o++);return n}}(e,t,r)};var en={reduce:void 0};const tn=g;en.reduce=function(e,t,r){return(0,tn.isUndefined)(r)?function(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)};var rn={someAsync:void 0};const nn=g;rn.someAsync=function(e,t){return(0,nn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return!0;r++}return!1}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return!0;r++}return!1}(e)};var on={};on.some=void 0,on.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1};var an={};an.lastAsync=void 0,an.lastAsync=async function(e){var t;const r=e[Symbol.asyncIterator]();let n;try{let e,o;for(;({value:e,done:n}=await r.next()),!n;)o=e;return o}finally{n||await(null===(t=r.return)||void 0===t?void 0:t.call(r))}};var un={};un.last=void 0,un.last=function(e){var t;const r=e[Symbol.iterator]();let n;try{let e,o;for(;({value:e,done:n}=r.next()),!n;)o=e;return o}finally{n||null===(t=r.return)||void 0===t||t.call(r)}};var cn={toArrayAsync:void 0};const sn=Nr;cn.toArrayAsync=function(e){return(0,sn.consume)(e,(async e=>{const t=[];for await(const r of e)t.push(r);return t}))};var ln={toArray:void 0};const fn=Nr;ln.toArray=function(e){return(0,fn.consume)(e,(e=>Array.from(e)))};var pn={toSetAsync:void 0};const dn=Nr;pn.toSetAsync=function(e){return(0,dn.consume)(e,(async e=>{const t=new Set;for await(const r of e)t.add(r);return t}))};var vn={toSet:void 0};const bn=Nr;vn.toSet=function(e){return(0,bn.consume)(e,(e=>new Set(e)))};var yn={};yn.count=void 0,yn.count=function(e){let t=0;for(const r of e)t++;return t};var hn,mn={};function gn(){return hn||(hn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Mr(),e),r(Rr,e)}(Xe)),Xe}mn.countAsync=void 0,mn.countAsync=async function(e){let t=0;for await(const r of e)t++;return t},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Nr,e),r(Br,e),r(zr,e),r(Ur,e),r(qr,e),r(Dr,e),r($r,e),r(Yr,e),r(Jr,e),r(Hr,e),r(Kr,e),r(Gr,e),r(Qr,e),r(Xr,e),r(en,e),r(rn,e),r(on,e),r(an,e),r(un,e),r(cn,e),r(ln,e),r(pn,e),r(vn,e),r(yn,e),r(mn,e)}(Rr);var wn={},On={};On.traverseErrorPrototypeChain=void 0,On.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},wn.getErrorNames=void 0;const Sn=g,_n=On;wn.getErrorNames=function*(e){var t;if((0,Sn.isError)(e))for(const r of(0,_n.traverseErrorPrototypeChain)(e))(null===(t=r.constructor)||void 0===t?void 0:t.name)&&(yield r.constructor.name);else yield e.name,yield*e.ancestors};var xn={isSerializableError:void 0};const jn=g;var En;function An(){if(En)return Qe;En=1,Qe.CustomError=void 0;const e=gn(),t=wn,r=g,n=xn;class o extends Error{get name(){var r,n;return null!==(n=null!==(r=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==r?r:o.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,r.isError)(o)||(0,n.isSerializableError)(o)){const r=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),n=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return r.every(((e,t)=>e===n[t]))}return!1}}return Qe.CustomError=o,Qe}xn.isSerializableError=function(e){return(0,jn.isObject)(e)&&(0,jn.isString)(e.name)&&(0,jn.isString)(e.message)&&((0,jn.isString)(e.stack)||(0,jn.isNull)(e.stack))&&(0,jn.isArray)(e.ancestors)&&e.ancestors.every(jn.isString)};var Pn,Tn={};function In(){if(Pn)return Tn;Pn=1,Tn.AssertionError=void 0;const e=An();class t extends e.CustomError{}return Tn.AssertionError=t,Tn}var kn,Cn={};var Fn={},Mn={},Rn={};Rn.pass=void 0,Rn.pass=function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(Rn,e)}(Mn),Fn.hydrate=void 0;const Nn=Mn;function Bn(e,t){const r=function(){(0,Nn.pass)()};return(r.prototype=Object.create(e.prototype)).constructor=r,Object.defineProperty(r,"name",{value:t}),r}Fn.hydrate=function(e){var t;const r=[e.name,...e.ancestors].slice(0,-1).reverse();let n=Error;for(const e of r)n=Bn(n,e);const o=new n;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Ln,zn,Un={};function Wn(){return zn||(zn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(An(),e),r(In(),e),r(xn,e),r(function(){if(kn)return Cn;kn=1,Cn.normalize=void 0;const e=wn,t=gn();return Cn.normalize=function(r){var n;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(r));return{name:o,ancestors:i,message:r.message,stack:null!==(n=r.stack)&&void 0!==n?n:null}},Cn}(),e),r(Fn,e),r(function(){if(Ln)return Un;Ln=1,Un.assert=void 0;const e=In();return Un.assert=function(t,r){if(!t)throw new e.AssertionError(r)},Un}(),e),r(wn,e),r(On,e)}(Ge)),Ge}var qn=Wn();function Dn(e,t){qn.assert(e.length>0,"The parameter values must be a non-empty array"),g.isntUndefined(t)&&qn.assert(t>=0&&t<e.length,"The parameter defaultSelectedIndex must be in the range of 0 to values.length");const[r,n]=o.exports.useState(t);return o.exports.useMemo((()=>({selectedValue:g.isUndefined(r)?void 0:e[r],options:e.map(((e,t)=>({value:e,index:t,selected:t===r,select:()=>n(t)})))})),[r])}var Vn=gn();function $n(e,t=[]){qn.assert(e.length>0,"The parameter values must be a non-empty array");for(const r of t)qn.assert(r>=0&&r<e.length,"The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length");const[r,n]=o.exports.useState(new Set(t));return o.exports.useMemo((()=>({selectedValues:Vn.toArray(Vn.map(r,(t=>e[t]))),options:e.map(((e,t)=>{const o=r.has(t),i=()=>{const e=new Set(r);e.add(t),n(e)},a=()=>{const e=new Set(r);e.delete(t),n(e)};return{value:e,index:t,selected:o,select:i,unselect:a,toggle:o?a:i}}))})),[r])}function Yn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>n((t=>t+1<e.length?t+1:0))]}function Jn(e=!1){const[t,r]=o.exports.useState(e);return[t,()=>r((e=>!e))]}function Hn(e,t){const r=t.map((e=>e.current));o.exports.useEffect((()=>{const r=new ResizeObserver(e);return t.map((e=>e.current)).filter(g.isntNull).forEach((e=>r.observe(e))),()=>r.disconnect()}),r)}function Kn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>{n((t=>t===e.length-1?t:t+1))},()=>{n((e=>0===e?e:e-1))}]}function Gn(){const[,e]=o.exports.useState({});return()=>e({})}var Qn={},Xn={Box:void 0};Xn.Box=class{constructor(e){this.value=e}set(e){this.value=e}get(){return this.value}};var Zn={};Zn.convertArrayToCons=Zn.convertConsToArray=void 0,Zn.convertConsToArray=function e([t,r]){return null===r?[t]:[t,...e(r)]},Zn.convertArrayToCons=function e([t,...r]){return[t,r.length?e(r):null]};var eo={Emitter:void 0};class to{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(e,t){this.map.has(e)||this.map.set(e,new Set);return this.map.get(e).add(r),()=>{if(!this.map.has(e))return;const t=this.map.get(e);t.delete(r),0===t.size&&this.map.delete(e)};function r(...e){t(...e)}}once(e,t){const r=this.on(e,((...e)=>{t(...e),r()}));return r}emit(e,...t){this.map.has(e)&&this.map.get(e).forEach((e=>e(...t)))}}eo.Emitter=to;var ro={HashMap:void 0};class no{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.set(this.hash(e),t),this}has(e){return this.map.has(this.hash(e))}get(e){return this.map.get(this.hash(e))}delete(e){return this.map.delete(this.hash(e))}clear(){this.map.clear()}}ro.HashMap=no;var oo={HashSet:void 0};class io{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(e){return this.map.set(this.hash(e),e),this}delete(e){return this.map.delete(this.hash(e))}has(e){return this.map.has(this.hash(e))}clear(){this.map.clear()}values(){return this.map.values()}}oo.HashSet=io;var ao={Queue:void 0};class uo{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...e){this.items.push(...e)}dequeue(){return this.items.shift()}remove(e){let t;for(;(t=this.items.indexOf(e))>=0;)this.items.splice(t,1)}}ao.Queue=uo;var co={LRUMap:void 0};const so=Wn(),lo=gn();class fo{constructor(e){this.map=new Map,(0,so.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,so.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.has(e)?this.updateItem(e,t):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t)),this}has(e){return this.map.has(e)}get(e){if(!this.has(e))return;const t=this.map.get(e);return this.updateItem(e,t),t}delete(e){return this.map.delete(e)}clear(){this.map.clear()}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}getColdestKey(){return(0,lo.first)(this.map.keys())}}co.LRUMap=fo;var po={},vo={},bo={},yo={},ho={};ho.random=void 0,ho.random=function(e,t){return Math.random()*(t-e)+e};var mo={};mo.randomInt=void 0,mo.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var go={};go.randomIntInclusive=void 0,go.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ho,e),r(mo,e),r(go,e)}(yo),bo.calculateExponentialBackoffTimeout=void 0;const wo=yo;bo.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:r=1/0,factor:n=2,jitter:o=!0}){const i=Math.min(n**t*e,r);return o?(0,wo.randomIntInclusive)(0,i):i};var Oo={};Oo.setTimeout=void 0,Oo.setTimeout=function(e,t){const r=globalThis.setTimeout(t,e);return()=>clearTimeout(r)};var So={setSchedule:void 0};const _o=Oo;So.setSchedule=function(e,t){const r=e-Date.now();return(0,_o.setTimeout)(r,t)};var xo={};xo.setInterval=void 0,xo.setInterval=function(e,t){const r=globalThis.setInterval(t,e);return()=>clearInterval(r)};var jo={setImmediate:void 0};const Eo=Oo;jo.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Eo.setTimeout)(0,e)};var Ao={setTimeoutLoop:void 0};const Po=Oo;Ao.setTimeoutLoop=function(e,t){let r=!1,n=(0,Po.setTimeout)(e,(async function o(){await t(),r||(n=(0,Po.setTimeout)(e,o))}));return()=>{r=!0,n()}};var To={setDynamicTimeoutLoop:void 0};const Io=Oo;To.setDynamicTimeoutLoop=function(e,t){let r=!1,n=(0,Io.setTimeout)(e,(async function o(){const i=Date.now();await t();const a=Date.now()-i;r||(n=(0,Io.setTimeout)(Math.max(e-a,0),o))}));return()=>{r=!0,n()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(bo,e),r(Oo,e),r(So,e),r(xo,e),r(jo,e),r(Ao,e),r(To,e)}(vo),po.ExpirableMap=void 0;const ko=vo;class Co{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r),this}has(e){return this.map.has(e)}get(e){return this.map.get(e)}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,ko.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}}po.ExpirableMap=Co;var Fo={TLRUMap:void 0};const Mo=Wn(),Ro=gn(),No=vo;class Bo{constructor(e){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],(0,Mo.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Mo.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t),this.addItemMetadata(e,Date.now()+r)),this}has(e){return this.map.has(e)}get(e){if(this.has(e)){const t=this.map.get(e);return this.updateItem(e,t),t}}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,No.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return(0,Ro.first)(this.map.keys())}}Fo.TLRUMap=Bo;var Lo={TrieMap:void 0};const zo=gn();class Uo{constructor(e){this.value=e,this.children=new Map}}class Wo{constructor(){this.root=new Uo}get[Symbol.toStringTag](){return this.constructor.name}set(e,t){let r=this.root;for(const t of e)r.children.has(t)||r.children.set(t,new Uo),r=r.children.get(t);return r.value=t,this}has(e){let t=this.root;for(const r of e){if(!t.children.has(r))return!1;t=t.children.get(r)}return void 0!==t.value}get(e){let t=this.root;for(const r of e){if(!t.children.has(r))return;t=t.children.get(r)}return t.value}delete(e){const t=[];let r=this.root;for(const n of e){if(!r.children.has(n))return!1;t.push(r),r=r.children.get(n)}if(delete r.value,0===r.children.size)for(const[r,n]of(0,zo.toArray)((0,zo.zip)(e,t)).reverse())if(n.children.delete(r),0!==n.children.size)break;return!0}}Lo.TrieMap=Wo;var qo={};qo.BadEventError=qo.FiniteStateMachine=void 0;const Do=Wn();qo.FiniteStateMachine=class{constructor(e,t){this.schema=e,this._state=t}get state(){return this._state}matches(e){return this._state===e}can(e){return e in this.schema[this.state]}send(e){if(!this.can(e))throw new Vo(this.state,e);this._state=this.schema[this.state][e]}};class Vo extends Do.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}qo.BadEventError=Vo;var $o={},Yo={},Jo={},Ho={},Ko={};Ko.isFunction=void 0,Ko.isFunction=function(e){return"function"==typeof e};var Go={},Qo={},Xo={};Xo.createErrorClass=void 0,Xo.createErrorClass=function(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},Qo.UnsubscriptionError=void 0;var Zo=Xo;Qo.UnsubscriptionError=Zo.createErrorClass((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}}));var ei={};ei.arrRemove=void 0,ei.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}};var ti=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ri=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ni=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Go.isSubscription=Go.EMPTY_SUBSCRIPTION=Go.Subscription=void 0;var oi=Ko,ii=Qo,ai=ei,ui=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=ti(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(oi.isFunction(c))try{c()}catch(e){o=e instanceof ii.UnsubscriptionError?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=ti(s),f=l.next();!f.done;f=l.next()){var p=f.value;try{ci(p)}catch(e){o=null!=o?o:[],e instanceof ii.UnsubscriptionError?o=ni(ni([],ri(o)),ri(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ii.UnsubscriptionError(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ci(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&ai.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&ai.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function ci(e){oi.isFunction(e)?e():e.unsubscribe()}Go.Subscription=ui,Go.EMPTY_SUBSCRIPTION=ui.EMPTY,Go.isSubscription=function(e){return e instanceof ui||e&&"closed"in e&&oi.isFunction(e.remove)&&oi.isFunction(e.add)&&oi.isFunction(e.unsubscribe)};var si={config:void 0};si.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var li={},fi={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(t){var r=e.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0}}(fi),li.reportUnhandledError=void 0;var pi=si,di=fi;li.reportUnhandledError=function(e){di.timeoutProvider.setTimeout((function(){var t=pi.config.onUnhandledError;if(!t)throw e;t(e)}))};var vi={};vi.noop=void 0,vi.noop=function(){};var bi={};function yi(e,t,r){return{kind:e,value:t,error:r}}bi.createNotification=bi.nextNotification=bi.errorNotification=bi.COMPLETE_NOTIFICATION=void 0,bi.COMPLETE_NOTIFICATION=yi("C",void 0,void 0),bi.errorNotification=function(e){return yi("E",void 0,e)},bi.nextNotification=function(e){return yi("N",e,void 0)},bi.createNotification=yi;var hi={};hi.captureError=hi.errorContext=void 0;var mi=si,gi=null;hi.errorContext=function(e){if(mi.config.useDeprecatedSynchronousErrorHandling){var t=!gi;if(t&&(gi={errorThrown:!1,error:null}),e(),t){var r=gi,n=r.errorThrown,o=r.error;if(gi=null,n)throw o}}else e()},hi.captureError=function(e){mi.config.useDeprecatedSynchronousErrorHandling&&gi&&(gi.errorThrown=!0,gi.error=e)},function(e){var t,r=n&&n.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var o=Ko,i=Go,a=si,u=li,c=vi,s=bi,l=fi,f=hi,p=function(t){function n(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=e.EMPTY_OBSERVER,n}return r(n,t),n.create=function(e,t,r){return new y(e,t,r)},n.prototype.next=function(e){this.isStopped?m(s.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?m(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?m(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(i.Subscription);e.Subscriber=p;var d=Function.prototype.bind;function v(e,t){return d.call(e,t)}var b=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){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),y=function(e){function t(t,r,n){var i,u,c=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.config.useDeprecatedNextContext?((u=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&v(t.next,u),error:t.error&&v(t.error,u),complete:t.complete&&v(t.complete,u)}):i=t;return c.destination=new b(i),c}return r(t,e),t}(p);function h(e){a.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}(Ho);var wi={observable:void 0};wi.observable="function"==typeof Symbol&&Symbol.observable||"@@observable";var Oi={},Si={};Si.identity=void 0,Si.identity=function(e){return e},Oi.pipeFromArray=Oi.pipe=void 0;var _i=Si;function xi(e){return 0===e.length?_i.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}Oi.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xi(e)},Oi.pipeFromArray=xi,Jo.Observable=void 0;var ji=Ho,Ei=Go,Ai=wi,Pi=Oi,Ti=si,Ii=Ko,ki=hi,Ci=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof ji.Subscriber||function(e){return e&&Ii.isFunction(e.next)&&Ii.isFunction(e.error)&&Ii.isFunction(e.complete)}(n)&&Ei.isSubscription(n)?e:new ji.SafeSubscriber(e,t,r);return ki.errorContext((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Fi(t))((function(t,n){var o=new ji.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ai.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pi.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fi(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Fi(e){var t;return null!==(t=null!=e?e:Ti.config.Promise)&&void 0!==t?t:Promise}Jo.Observable=Ci;var Mi={},Ri={},Ni={};Ni.operate=Ni.hasLift=void 0;var Bi=Ko;function Li(e){return Bi.isFunction(null==e?void 0:e.lift)}Ni.hasLift=Li,Ni.operate=function(e){return function(t){if(Li(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")}};var zi,Ui={},Wi=n&&n.__extends||(zi=function(e,t){return(zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Ui.OperatorSubscriber=Ui.createOperatorSubscriber=void 0;var qi=Ho;Ui.createOperatorSubscriber=function(e,t,r,n,o){return new Di(e,t,r,n,o)};var Di=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return Wi(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(qi.Subscriber);Ui.OperatorSubscriber=Di,Ri.refCount=void 0;var Vi=Ni,$i=Ui;Ri.refCount=function(){return Vi.operate((function(e,t){var r=null;e._refCount++;var n=$i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))};var Yi=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Mi.ConnectableObservable=void 0;var Ji=Go,Hi=Ri,Ki=Ui,Gi=Ni,Qi=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,Gi.hasLift(t)&&(n.lift=t.lift),n}return Yi(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Ji.Subscription;var r=this.getSubject();t.add(this.source.subscribe(Ki.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=Ji.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return Hi.refCount()(this)},t}(Jo.Observable);Mi.ConnectableObservable=Qi;var Xi={},Zi={};!function(e){e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(Zi);var ea={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.animationFrameProvider=void 0;var o=Go;e.animationFrameProvider={schedule:function(t){var r=requestAnimationFrame,n=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=r((function(e){n=void 0,t(e)}));return new o.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,r([],t(n)))},cancelAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,r([],t(n)))},delegate:void 0}}(ea),Xi.animationFrames=void 0;var ta=Jo,ra=Go,na=Zi,oa=ea;function ia(e){var t=oa.animationFrameProvider.schedule;return new ta.Observable((function(r){var n=new ra.Subscription,o=e||na.performanceTimestampProvider,i=o.now(),a=function(u){var c=o.now();r.next({timestamp:e?c:u,elapsed:c-i}),r.closed||n.add(t(a))};return n.add(t(a)),n}))}Xi.animationFrames=function(e){return e?ia(e):aa};var aa=ia(),ua={},ca={ObjectUnsubscribedError:void 0},sa=Xo;ca.ObjectUnsubscribedError=sa.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}));var la=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fa=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ua.AnonymousSubject=ua.Subject=void 0;var pa=Jo,da=Go,va=ca,ba=ei,ya=hi,ha=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 la(t,e),t.prototype.lift=function(e){var t=new ma(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new va.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;ya.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=fa(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;ya.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ya.errorContext((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?da.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new da.Subscription((function(){t.currentObservers=null,ba.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new pa.Observable;return e.source=this,e},t.create=function(e,t){return new ma(e,t)},t}(pa.Observable);ua.Subject=ha;var ma=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return la(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:da.EMPTY_SUBSCRIPTION},t}(ha);ua.AnonymousSubject=ma;var ga={},wa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ga.BehaviorSubject=void 0;var Oa=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return wa(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ua.Subject);ga.BehaviorSubject=Oa;var Sa={},_a={};!function(e){e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(_a);var xa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Sa.ReplaySubject=void 0;var ja=_a,Ea=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=ja.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return xa(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(ua.Subject);Sa.ReplaySubject=Ea;var Aa={},Pa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Aa.AsyncSubject=void 0;var Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return Pa(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(ua.Subject);Aa.AsyncSubject=Ta;var Ia={},ka={},Ca={},Fa={},Ma=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Fa.Action=void 0;var Ra=function(e){function t(t,r){return e.call(this)||this}return Ma(t,e),t.prototype.schedule=function(e,t){return this},t}(Go.Subscription);Fa.Action=Ra;var Na={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(t){var r=e.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0}}(Na);var Ba=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ca.AsyncAction=void 0;var La=Na,za=ei,Ua=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return Ba(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),La.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;La.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,za.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Fa.Action);Ca.AsyncAction=Ua;var Wa={},qa={};qa.TestTools=qa.Immediate=void 0;var Da,Va=1,$a={};function Ya(e){return e in $a&&(delete $a[e],!0)}qa.Immediate={setImmediate:function(e){var t=Va++;return $a[t]=!0,Da||(Da=Promise.resolve()),Da.then((function(){return Ya(t)&&e()})),t},clearImmediate:function(e){Ya(e)}},qa.TestTools={pending:function(){return Object.keys($a).length}},function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.immediateProvider=void 0;var o=qa,i=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||i).apply(void 0,r([],t(n)))},clearImmediate:function(t){var r=e.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(t)},delegate:void 0}}(Wa);var Ja=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ka.AsapAction=void 0;var Ha=Wa,Ka=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Ja(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ha.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Ha.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(Ca.AsyncAction);ka.AsapAction=Ka;var Ga={},Qa={},Xa={Scheduler:void 0},Za=_a,eu=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=Za.dateTimestampProvider.now,e}();Xa.Scheduler=eu;var tu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Qa.AsyncScheduler=void 0;var ru=Xa,nu=function(e){function t(t,r){void 0===r&&(r=ru.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return tu(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(ru.Scheduler);Qa.AsyncScheduler=nu;var ou=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ga.AsapScheduler=void 0;var iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);Ga.AsapScheduler=iu,function(e){e.asap=e.asapScheduler=void 0;var t=ka,r=Ga;e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler}(Ia);var au={};!function(e){e.async=e.asyncScheduler=void 0;var t=Ca,r=Qa;e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler}(au);var uu={},cu={},su=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();cu.QueueAction=void 0;var lu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return su(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(Ca.AsyncAction);cu.QueueAction=lu;var fu={},pu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();fu.QueueScheduler=void 0;var du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t}(Qa.AsyncScheduler);fu.QueueScheduler=du,function(e){e.queue=e.queueScheduler=void 0;var t=cu,r=fu;e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler}(uu);var vu={},bu={},yu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();bu.AnimationFrameAction=void 0;var hu=ea,mu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return yu(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=hu.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(hu.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(Ca.AsyncAction);bu.AnimationFrameAction=mu;var gu={},wu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();gu.AnimationFrameScheduler=void 0;var Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wu(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);gu.AnimationFrameScheduler=Ou,function(e){e.animationFrame=e.animationFrameScheduler=void 0;var t=bu,r=gu;e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(vu);var Su={},_u=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Su.VirtualAction=Su.VirtualTimeScheduler=void 0;var xu=Ca,ju=Go,Eu=function(e){function t(t,r){void 0===t&&(t=Au),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return _u(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(Qa.AsyncScheduler);Su.VirtualTimeScheduler=Eu;var Au=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return _u(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return ju.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(xu.AsyncAction);Su.VirtualAction=Au;var Pu={},Tu={};!function(e){e.empty=e.EMPTY=void 0;var t=Jo;e.EMPTY=new t.Observable((function(e){return e.complete()})),e.empty=function(r){return r?function(e){return new t.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(r):e.EMPTY}}(Tu);var Iu={},ku={},Cu={isScheduler:void 0},Fu=Ko;Cu.isScheduler=function(e){return e&&Fu.isFunction(e.schedule)},ku.popNumber=ku.popScheduler=ku.popResultSelector=void 0;var Mu=Ko,Ru=Cu;function Nu(e){return e[e.length-1]}ku.popResultSelector=function(e){return Mu.isFunction(Nu(e))?e.pop():void 0},ku.popScheduler=function(e){return Ru.isScheduler(Nu(e))?e.pop():void 0},ku.popNumber=function(e,t){return"number"==typeof Nu(e)?e.pop():t};var Bu={},Lu={},zu={},Uu={},Wu={isArrayLike:void 0};Wu.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var qu={isPromise:void 0},Du=Ko;qu.isPromise=function(e){return Du.isFunction(null==e?void 0:e.then)};var Vu={isInteropObservable:void 0},$u=wi,Yu=Ko;Vu.isInteropObservable=function(e){return Yu.isFunction(e[$u.observable])};var Ju={isAsyncIterable:void 0},Hu=Ko;Ju.isAsyncIterable=function(e){return Symbol.asyncIterator&&Hu.isFunction(null==e?void 0:e[Symbol.asyncIterator])};var Ku={};Ku.createInvalidObservableTypeError=void 0,Ku.createInvalidObservableTypeError=function(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 Gu={},Qu={};function Xu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Qu.iterator=Qu.getSymbolIterator=void 0,Qu.getSymbolIterator=Xu,Qu.iterator=Xu(),Gu.isIterable=void 0;var Zu=Qu,ec=Ko;Gu.isIterable=function(e){return ec.isFunction(null==e?void 0:e[Zu.iterator])};var tc={},rc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},nc=n&&n.__await||function(e){return this instanceof nc?(this.v=e,this):new nc(e)},oc=n&&n.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof nc?Promise.resolve(r.value.v).then(c,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}};tc.isReadableStreamLike=tc.readableStreamLikeToAsyncGenerator=void 0;var ic=Ko;tc.readableStreamLikeToAsyncGenerator=function(e){return oc(this,arguments,(function(){var t,r,n;return rc(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,nc(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,nc(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,nc(n)];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]}}))}))},tc.isReadableStreamLike=function(e){return ic.isFunction(null==e?void 0:e.getReader)};var ac=n&&n.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},uc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},cc=n&&n.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof sc?sc(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},sc=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Uu.fromReadableStreamLike=Uu.fromAsyncIterable=Uu.fromIterable=Uu.fromPromise=Uu.fromArrayLike=Uu.fromInteropObservable=Uu.innerFrom=void 0;var lc=Wu,fc=qu,pc=Jo,dc=Vu,vc=Ju,bc=Ku,yc=Gu,hc=tc,mc=Ko,gc=li,wc=wi;function Oc(e){return new pc.Observable((function(t){var r=e[wc.observable]();if(mc.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Sc(e){return new pc.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function _c(e){return new pc.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,gc.reportUnhandledError)}))}function xc(e){return new pc.Observable((function(t){var r,n;try{for(var o=sc(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function jc(e){return new pc.Observable((function(t){(function(e,t){var r,n,o,i;return ac(this,void 0,void 0,(function(){var a,u;return uc(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=cc(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[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 Ec(e){return jc(hc.readableStreamLikeToAsyncGenerator(e))}Uu.innerFrom=function(e){if(e instanceof pc.Observable)return e;if(null!=e){if(dc.isInteropObservable(e))return Oc(e);if(lc.isArrayLike(e))return Sc(e);if(fc.isPromise(e))return _c(e);if(vc.isAsyncIterable(e))return jc(e);if(yc.isIterable(e))return xc(e);if(hc.isReadableStreamLike(e))return Ec(e)}throw bc.createInvalidObservableTypeError(e)},Uu.fromInteropObservable=Oc,Uu.fromArrayLike=Sc,Uu.fromPromise=_c,Uu.fromIterable=xc,Uu.fromAsyncIterable=jc,Uu.fromReadableStreamLike=Ec;var Ac={},Pc={};Pc.executeSchedule=void 0,Pc.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i},Ac.observeOn=void 0;var Tc=Pc,Ic=Ni,kc=Ui;Ac.observeOn=function(e,t){return void 0===t&&(t=0),Ic.operate((function(r,n){r.subscribe(kc.createOperatorSubscriber(n,(function(r){return Tc.executeSchedule(n,e,(function(){return n.next(r)}),t)}),(function(){return Tc.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(r){return Tc.executeSchedule(n,e,(function(){return n.error(r)}),t)})))}))};var Cc={subscribeOn:void 0},Fc=Ni;Cc.subscribeOn=function(e,t){return void 0===t&&(t=0),Fc.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))},zu.scheduleObservable=void 0;var Mc=Uu,Rc=Ac,Nc=Cc;zu.scheduleObservable=function(e,t){return Mc.innerFrom(e).pipe(Nc.subscribeOn(t),Rc.observeOn(t))};var Bc={schedulePromise:void 0},Lc=Uu,zc=Ac,Uc=Cc;Bc.schedulePromise=function(e,t){return Lc.innerFrom(e).pipe(Uc.subscribeOn(t),zc.observeOn(t))};var Wc={scheduleArray:void 0},qc=Jo;Wc.scheduleArray=function(e,t){return new qc.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))};var Dc={scheduleIterable:void 0},Vc=Jo,$c=Qu,Yc=Ko,Jc=Pc;Dc.scheduleIterable=function(e,t){return new Vc.Observable((function(r){var n;return Jc.executeSchedule(r,t,(function(){n=e[$c.iterator](),Jc.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return Yc.isFunction(null==n?void 0:n.return)&&n.return()}}))};var Hc={scheduleAsyncIterable:void 0},Kc=Jo,Gc=Pc;Hc.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kc.Observable((function(r){Gc.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();Gc.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))};var Qc={scheduleReadableStreamLike:void 0},Xc=Hc,Zc=tc;Qc.scheduleReadableStreamLike=function(e,t){return Xc.scheduleAsyncIterable(Zc.readableStreamLikeToAsyncGenerator(e),t)},Lu.scheduled=void 0;var es=zu,ts=Bc,rs=Wc,ns=Dc,os=Hc,is=Vu,as=qu,us=Wu,cs=Gu,ss=Ju,ls=Ku,fs=tc,ps=Qc;Lu.scheduled=function(e,t){if(null!=e){if(is.isInteropObservable(e))return es.scheduleObservable(e,t);if(us.isArrayLike(e))return rs.scheduleArray(e,t);if(as.isPromise(e))return ts.schedulePromise(e,t);if(ss.isAsyncIterable(e))return os.scheduleAsyncIterable(e,t);if(cs.isIterable(e))return ns.scheduleIterable(e,t);if(fs.isReadableStreamLike(e))return ps.scheduleReadableStreamLike(e,t)}throw ls.createInvalidObservableTypeError(e)},Bu.from=void 0;var ds=Lu,vs=Uu;Bu.from=function(e,t){return t?ds.scheduled(e,t):vs.innerFrom(e)},Iu.of=void 0;var bs=ku,ys=Bu;Iu.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bs.popScheduler(e);return ys.from(e,r)};var hs={throwError:void 0},ms=Jo,gs=Ko;hs.throwError=function(e,t){var r=gs.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new ms.Observable(t?function(e){return t.schedule(n,0,e)}:n)},function(e){e.observeNotification=e.Notification=e.NotificationKind=void 0;var t,r=Tu,n=Iu,o=hs,i=Ko;(t=e.NotificationKind||(e.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,i=e.value,a=e.error,u="N"===t?n.of(i):"E"===t?o.throwError((function(){return a})):"C"===t?r.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}e.Notification=a,e.observeNotification=u}(Pu);var ws={isObservable:void 0},Os=Jo,Ss=Ko;ws.isObservable=function(e){return!!e&&(e instanceof Os.Observable||Ss.isFunction(e.lift)&&Ss.isFunction(e.subscribe))};var _s={},xs={EmptyError:void 0},js=Xo;xs.EmptyError=js.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),_s.lastValueFrom=void 0;var Es=xs;_s.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i,a=!1;e.subscribe({next:function(e){i=e,a=!0},error:o,complete:function(){a?n(i):r?n(t.defaultValue):o(new Es.EmptyError)}})}))};var As={firstValueFrom:void 0},Ps=xs,Ts=Ho;As.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i=new Ts.SafeSubscriber({next:function(e){n(e),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new Ps.EmptyError)}});e.subscribe(i)}))};var Is={ArgumentOutOfRangeError:void 0},ks=Xo;Is.ArgumentOutOfRangeError=ks.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}));var Cs={NotFoundError:void 0},Fs=Xo;Cs.NotFoundError=Fs.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}));var Ms={SequenceError:void 0},Rs=Xo;Ms.SequenceError=Rs.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));var Ns={},Bs={};Bs.isValidDate=void 0,Bs.isValidDate=function(e){return e instanceof Date&&!isNaN(e)},function(e){e.timeout=e.TimeoutError=void 0;var t=au,r=Bs,n=Ni,o=Uu,i=Xo,a=Ui,u=Pc;function c(t){throw new e.TimeoutError(t)}e.TimeoutError=i.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),e.timeout=function(e,i){var s=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=s.first,f=s.each,p=s.with,d=void 0===p?c:p,v=s.scheduler,b=void 0===v?null!=i?i:t.asyncScheduler:v,y=s.meta,h=void 0===y?null:y;if(null==l&&null==f)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,n,i=null,c=0,s=function(e){n=u.executeSchedule(t,b,(function(){try{r.unsubscribe(),o.innerFrom(d({meta:h,lastValue:i,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(a.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),c++,t.next(i=e),f>0&&s(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!c&&s(null!=l?"number"==typeof l?l:+l-b.now():f)}))}}(Ns);var Ls={},zs={},Us={},Ws={map:void 0},qs=Ni,Ds=Ui;Ws.map=function(e,t){return qs.operate((function(r,n){var o=0;r.subscribe(Ds.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))};var Vs=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$s=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Us.mapOneOrManyArgs=void 0;var Ys=Ws,Js=Array.isArray;Us.mapOneOrManyArgs=function(e){return Ys.map((function(t){return function(e,t){return Js(t)?e.apply(void 0,$s([],Vs(t))):e(t)}(e,t)}))};var Hs=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Ks=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};zs.bindCallbackInternals=void 0;var Gs=Cu,Qs=Jo,Xs=Cc,Zs=Us,el=Ac,tl=Aa;zs.bindCallbackInternals=function e(t,r,n,o){if(n){if(!Gs.isScheduler(n))return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e(t,r,o).apply(this,i).pipe(Zs.mapOneOrManyArgs(n))};o=n}return o?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(Xs.subscribeOn(o),el.observeOn(o))}:function(){for(var e=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new tl.AsyncSubject,a=!0;return new Qs.Observable((function(o){var u=i.subscribe(o);if(a){a=!1;var c=!1,s=!1;r.apply(e,Ks(Ks([],Hs(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void i.error(n)}i.next(1<e.length?e:e[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return u}))}},Ls.bindCallback=void 0;var rl=zs;Ls.bindCallback=function(e,t,r){return rl.bindCallbackInternals(!1,e,t,r)};var nl={bindNodeCallback:void 0},ol=zs;nl.bindNodeCallback=function(e,t,r){return ol.bindCallbackInternals(!0,e,t,r)};var il={},al={argsArgArrayOrObject:void 0},ul=Array.isArray,cl=Object.getPrototypeOf,sl=Object.prototype,ll=Object.keys;al.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(ul(t))return{args:t,keys:null};if((n=t)&&"object"==typeof n&&cl(n)===sl){var r=ll(t);return{args:r.map((function(e){return t[e]})),keys:r}}}var n;return{args:e,keys:null}};var fl={};fl.createObject=void 0,fl.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},il.combineLatestInit=il.combineLatest=void 0;var pl=Jo,dl=al,vl=Bu,bl=Si,yl=Us,hl=ku,ml=fl,gl=Ui,wl=Pc;function Ol(e,t,r){return void 0===r&&(r=bl.identity),function(n){Sl(t,(function(){for(var o=e.length,i=new Array(o),a=o,u=o,c=function(o){Sl(t,(function(){var c=vl.from(e[o],t),s=!1;c.subscribe(gl.createOperatorSubscriber(n,(function(e){i[o]=e,s||(s=!0,u--),u||n.next(r(i.slice()))}),(function(){--a||n.complete()})))}),n)},s=0;s<o;s++)c(s)}),n)}}function Sl(e,t,r){e?wl.executeSchedule(r,e,t):t()}il.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hl.popScheduler(e),n=hl.popResultSelector(e),o=dl.argsArgArrayOrObject(e),i=o.args,a=o.keys;if(0===i.length)return vl.from([],r);var u=new pl.Observable(Ol(i,r,a?function(e){return ml.createObject(a,e)}:bl.identity));return n?u.pipe(yl.mapOneOrManyArgs(n)):u},il.combineLatestInit=Ol;var _l={},xl={},jl={},El={},Al={mergeInternals:void 0},Pl=Uu,Tl=Pc,Il=Ui;Al.mergeInternals=function(e,t,r,n,o,i,a,u){var c=[],s=0,l=0,f=!1,p=function(){!f||c.length||s||t.complete()},d=function(e){return s<n?v(e):c.push(e)},v=function(e){i&&t.next(e),s++;var u=!1;Pl.innerFrom(r(e,l++)).subscribe(Il.createOperatorSubscriber(t,(function(e){null==o||o(e),i?d(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{s--;for(var e=function(){var e=c.shift();a?Tl.executeSchedule(t,a,(function(){return v(e)})):v(e)};c.length&&s<n;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(Il.createOperatorSubscriber(t,d,(function(){f=!0,p()}))),function(){null==u||u()}},El.mergeMap=void 0;var kl=Ws,Cl=Uu,Fl=Ni,Ml=Al,Rl=Ko;El.mergeMap=function e(t,r,n){return void 0===n&&(n=1/0),Rl.isFunction(r)?e((function(e,n){return kl.map((function(t,o){return r(e,t,n,o)}))(Cl.innerFrom(t(e,n)))}),n):("number"==typeof r&&(n=r),Fl.operate((function(e,r){return Ml.mergeInternals(e,r,t,n)})))},jl.mergeAll=void 0;var Nl=El,Bl=Si;jl.mergeAll=function(e){return void 0===e&&(e=1/0),Nl.mergeMap(Bl.identity,e)},xl.concatAll=void 0;var Ll=jl;xl.concatAll=function(){return Ll.mergeAll(1)},_l.concat=void 0;var zl=xl,Ul=ku,Wl=Bu;_l.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zl.concatAll()(Wl.from(e,Ul.popScheduler(e)))};var ql={},Dl={defer:void 0},Vl=Jo,$l=Uu;Dl.defer=function(e){return new Vl.Observable((function(t){$l.innerFrom(e()).subscribe(t)}))},ql.connectable=void 0;var Yl=ua,Jl=Jo,Hl=Dl,Kl={connector:function(){return new Yl.Subject},resetOnDisconnect:!0};ql.connectable=function(e,t){void 0===t&&(t=Kl);var r=null,n=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,a=n(),u=new Jl.Observable((function(e){return a.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=Hl.defer((function(){return e})).subscribe(a),i&&r.add((function(){return a=n()}))),r},u};var Gl={forkJoin:void 0},Ql=Jo,Xl=al,Zl=Uu,ef=ku,tf=Ui,rf=Us,nf=fl;Gl.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ef.popResultSelector(e),n=Xl.argsArgArrayOrObject(e),o=n.args,i=n.keys,a=new Ql.Observable((function(e){var t=o.length;if(t)for(var r=new Array(t),n=t,a=t,u=function(t){var u=!1;Zl.innerFrom(o[t]).subscribe(tf.createOperatorSubscriber(e,(function(e){u||(u=!0,a--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&u||(a||e.next(i?nf.createObject(i,r):r),e.complete())})))},c=0;c<t;c++)u(c);else e.complete()}));return r?a.pipe(rf.mapOneOrManyArgs(r)):a};var of={},af=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};of.fromEvent=void 0;var uf=Uu,cf=Jo,sf=El,lf=Wu,ff=Ko,pf=Us,df=["addListener","removeListener"],vf=["addEventListener","removeEventListener"],bf=["on","off"];function yf(e,t){return function(r){return function(n){return e[r](t,n)}}}of.fromEvent=function e(t,r,n,o){if(ff.isFunction(n)&&(o=n,n=void 0),o)return e(t,r,n).pipe(pf.mapOneOrManyArgs(o));var i=af(function(e){return ff.isFunction(e.addEventListener)&&ff.isFunction(e.removeEventListener)}(t)?vf.map((function(e){return function(o){return t[e](r,o,n)}})):function(e){return ff.isFunction(e.addListener)&&ff.isFunction(e.removeListener)}(t)?df.map(yf(t,r)):function(e){return ff.isFunction(e.on)&&ff.isFunction(e.off)}(t)?bf.map(yf(t,r)):[],2),a=i[0],u=i[1];if(!a&&lf.isArrayLike(t))return sf.mergeMap((function(t){return e(t,r,n)}))(uf.innerFrom(t));if(!a)throw new TypeError("Invalid event target");return new cf.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return u(t)}}))};var hf={fromEventPattern:void 0},mf=Jo,gf=Ko,wf=Us;hf.fromEventPattern=function e(t,r,n){return n?e(t,r).pipe(wf.mapOneOrManyArgs(n)):new mf.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return gf.isFunction(r)?function(){return r(n,o)}:void 0}))};var Of={},Sf=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Of.generate=void 0;var _f=Si,xf=Cu,jf=Dl,Ef=Dc;Of.generate=function(e,t,r,n,o){var i,a,u,c;function s(){var e;return Sf(this,(function(n){switch(n.label){case 0:e=c,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,r=i.iterate,a=i.resultSelector,u=void 0===a?_f.identity:a,o=i.scheduler):(c=e,!n||xf.isScheduler(n)?(u=_f.identity,o=n):u=n),jf.defer(o?function(){return Ef.scheduleIterable(s(),o)}:s)};var Af={iif:void 0},Pf=Dl;Af.iif=function(e,t,r){return Pf.defer((function(){return e()?t:r}))};var Tf={},If={timer:void 0},kf=Jo,Cf=au,Ff=Cu,Mf=Bs;If.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=Cf.async);var n=-1;return null!=t&&(Ff.isScheduler(t)?r=t:n=t),new kf.Observable((function(t){var o=Mf.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=n?this.schedule(void 0,n):t.complete())}),o)}))},Tf.interval=void 0;var Rf=au,Nf=If;Tf.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=Rf.asyncScheduler),e<0&&(e=0),Nf.timer(e,e,t)};var Bf={merge:void 0},Lf=jl,zf=Uu,Uf=Tu,Wf=ku,qf=Bu;Bf.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Wf.popScheduler(e),n=Wf.popNumber(e,1/0),o=e;return o.length?1===o.length?zf.innerFrom(o[0]):Lf.mergeAll(n)(qf.from(o,r)):Uf.EMPTY};var Df={};!function(e){e.never=e.NEVER=void 0;var t=Jo,r=vi;e.NEVER=new t.Observable(r.noop),e.never=function(){return e.NEVER}}(Df);var Vf={},$f={},Yf={argsOrArgArray:void 0},Jf=Array.isArray;Yf.argsOrArgArray=function(e){return 1===e.length&&Jf(e[0])?e[0]:e};var Hf=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kf=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};$f.onErrorResumeNext=void 0;var Gf=Ni,Qf=Uu,Xf=Yf,Zf=Ui,ep=vi;$f.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xf.argsOrArgArray(e);return Gf.operate((function(e,t){var n=Kf([e],Hf(r)),o=function(){if(!t.closed)if(n.length>0){var e=void 0;try{e=Qf.innerFrom(n.shift())}catch(e){return void o()}var r=Zf.createOperatorSubscriber(t,void 0,ep.noop,ep.noop);e.subscribe(r),r.add(o)}else t.complete()};o()}))},Vf.onErrorResumeNext=void 0;var tp=Tu,rp=$f,np=Yf;Vf.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rp.onErrorResumeNext(np.argsOrArgArray(e))(tp.EMPTY)};var op={pairs:void 0},ip=Bu;op.pairs=function(e,t){return ip.from(Object.entries(e),t)};var ap={},up={};up.not=void 0,up.not=function(e,t){return function(r,n){return!e.call(t,r,n)}};var cp={filter:void 0},sp=Ni,lp=Ui;cp.filter=function(e,t){return sp.operate((function(r,n){var o=0;r.subscribe(lp.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))},ap.partition=void 0;var fp=up,pp=cp,dp=Uu;ap.partition=function(e,t,r){return[pp.filter(t,r)(dp.innerFrom(e)),pp.filter(fp.not(t,r))(dp.innerFrom(e))]};var vp={};vp.raceInit=vp.race=void 0;var bp=Jo,yp=Uu,hp=Yf,mp=Ui;function gp(e){return function(t){for(var r=[],n=function(n){r.push(yp.innerFrom(e[n]).subscribe(mp.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}vp.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=hp.argsOrArgArray(e)).length?yp.innerFrom(e[0]):new bp.Observable(gp(e))},vp.raceInit=gp;var wp={range:void 0},Op=Jo,Sp=Tu;wp.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return Sp.EMPTY;var n=t+e;return new Op.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})};var _p={using:void 0},xp=Jo,jp=Uu,Ep=Tu;_p.using=function(e,t){return new xp.Observable((function(r){var n=e(),o=t(n);return(o?jp.innerFrom(o):Ep.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))};var Ap={},Pp=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Tp=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Ap.zip=void 0;var Ip=Jo,kp=Uu,Cp=Yf,Fp=Tu,Mp=Ui,Rp=ku;Ap.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Rp.popResultSelector(e),n=Cp.argsOrArgArray(e);return n.length?new Ip.Observable((function(e){var t=n.map((function(){return[]})),o=n.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){kp.innerFrom(n[i]).subscribe(Mp.createOperatorSubscriber(e,(function(n){if(t[i].push(n),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,Tp([],Pp(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},a=0;!e.closed&&a<n.length;a++)i(a);return function(){t=o=null}})):Fp.EMPTY};var Np={},Bp={audit:void 0},Lp=Ni,zp=Uu,Up=Ui;Bp.audit=function(e){return Lp.operate((function(t,r){var n=!1,o=null,i=null,a=!1,u=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(Up.createOperatorSubscriber(r,(function(t){n=!0,o=t,i||zp.innerFrom(e(t)).subscribe(i=Up.createOperatorSubscriber(r,u,c))}),(function(){a=!0,(!n||!i||i.closed)&&r.complete()})))}))};var Wp={auditTime:void 0},qp=au,Dp=Bp,Vp=If;Wp.auditTime=function(e,t){return void 0===t&&(t=qp.asyncScheduler),Dp.audit((function(){return Vp.timer(e,t)}))};var $p={buffer:void 0},Yp=Ni,Jp=vi,Hp=Ui;$p.buffer=function(e){return Yp.operate((function(t,r){var n=[];return t.subscribe(Hp.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(Hp.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),Jp.noop)),function(){n=null}}))};var Kp={},Gp=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Kp.bufferCount=void 0;var Qp=Ni,Xp=Ui,Zp=ei;Kp.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,Qp.operate((function(r,n){var o=[],i=0;r.subscribe(Xp.createOperatorSubscriber(n,(function(r){var a,u,c,s,l=null;i++%t==0&&o.push([]);try{for(var f=Gp(o),p=f.next();!p.done;p=f.next()){(b=p.value).push(r),e<=b.length&&(l=null!=l?l:[]).push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(l)try{for(var d=Gp(l),v=d.next();!v.done;v=d.next()){var b=v.value;Zp.arrRemove(o,b),n.next(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=Gp(o),i=r.next();!i.done;i=r.next()){var a=i.value;n.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))};var ed={},td=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ed.bufferTime=void 0;var rd=Go,nd=Ni,od=Ui,id=ei,ad=au,ud=ku,cd=Pc;ed.bufferTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=ud.popScheduler(n))&&void 0!==t?t:ad.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return nd.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),id.arrRemove(n,e),r.next(t),o&&s()},s=function(){if(n){var t=new rd.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),cd.executeSchedule(t,i,(function(){return c(o)}),e)}};null!==a&&a>=0?cd.executeSchedule(r,i,s,a,!0):o=!0,s();var l=od.createOperatorSubscriber(r,(function(e){var t,r,o=n.slice();try{for(var i=td(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.buffer;l.push(e),u<=l.length&&c(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==l||l.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(l)}))};var sd={},ld=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};sd.bufferToggle=void 0;var fd=Go,pd=Ni,dd=Uu,vd=Ui,bd=vi,yd=ei;sd.bufferToggle=function(e,t){return pd.operate((function(r,n){var o=[];dd.innerFrom(e).subscribe(vd.createOperatorSubscriber(n,(function(e){var r=[];o.push(r);var i=new fd.Subscription;i.add(dd.innerFrom(t(e)).subscribe(vd.createOperatorSubscriber(n,(function(){yd.arrRemove(o,r),n.next(r),i.unsubscribe()}),bd.noop)))}),bd.noop)),r.subscribe(vd.createOperatorSubscriber(n,(function(e){var t,r;try{for(var n=ld(o),i=n.next();!i.done;i=n.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)n.next(o.shift());n.complete()})))}))};var hd={bufferWhen:void 0},md=Ni,gd=vi,wd=Ui,Od=Uu;hd.bufferWhen=function(e){return md.operate((function(t,r){var n=null,o=null,i=function(){null==o||o.unsubscribe();var t=n;n=[],t&&r.next(t),Od.innerFrom(e()).subscribe(o=wd.createOperatorSubscriber(r,i,gd.noop))};i(),t.subscribe(wd.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=o=null})))}))};var Sd={catchError:void 0},_d=Uu,xd=Ui,jd=Ni;Sd.catchError=function e(t){return jd.operate((function(r,n){var o,i=null,a=!1;i=r.subscribe(xd.createOperatorSubscriber(n,void 0,void 0,(function(u){o=_d.innerFrom(t(u,e(t)(r))),i?(i.unsubscribe(),i=null,o.subscribe(n)):a=!0}))),a&&(i.unsubscribe(),i=null,o.subscribe(n))}))};var Ed={},Ad={},Pd={},Td={},Id={},kd={scanInternals:void 0},Cd=Ui;kd.scanInternals=function(e,t,r,n,o){return function(i,a){var u=r,c=t,s=0;i.subscribe(Cd.createOperatorSubscriber(a,(function(t){var r=s++;c=u?e(c,t,r):(u=!0,t),n&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}},Id.reduce=void 0;var Fd=kd,Md=Ni;Id.reduce=function(e,t){return Md.operate(Fd.scanInternals(e,t,arguments.length>=2,!1,!0))},Td.toArray=void 0;var Rd=Id,Nd=Ni,Bd=function(e,t){return e.push(t),e};Td.toArray=function(){return Nd.operate((function(e,t){Rd.reduce(Bd,[])(e).subscribe(t)}))},Pd.joinAllInternals=void 0;var Ld=Si,zd=Us,Ud=Oi,Wd=El,qd=Td;Pd.joinAllInternals=function(e,t){return Ud.pipe(qd.toArray(),Wd.mergeMap((function(t){return e(t)})),t?zd.mapOneOrManyArgs(t):Ld.identity)},Ad.combineLatestAll=void 0;var Dd=il,Vd=Pd;Ad.combineLatestAll=function(e){return Vd.joinAllInternals(Dd.combineLatest,e)},Ed.combineAll=void 0;var $d=Ad;Ed.combineAll=$d.combineLatestAll;var Yd={},Jd={},Hd=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kd=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Jd.combineLatest=void 0;var Gd=il,Qd=Ni,Xd=Yf,Zd=Us,ev=Oi,tv=ku;Jd.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=tv.popResultSelector(t);return n?ev.pipe(e.apply(void 0,Kd([],Hd(t))),Zd.mapOneOrManyArgs(n)):Qd.operate((function(e,r){Gd.combineLatestInit(Kd([e],Hd(Xd.argsOrArgArray(t))))(r)}))};var rv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Yd.combineLatestWith=void 0;var ov=Jd;Yd.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ov.combineLatest.apply(void 0,nv([],rv(e)))};var iv={concatMap:void 0},av=El,uv=Ko;iv.concatMap=function(e,t){return uv.isFunction(t)?av.mergeMap(e,t,1):av.mergeMap(e,1)};var cv={concatMapTo:void 0},sv=iv,lv=Ko;cv.concatMapTo=function(e,t){return lv.isFunction(t)?sv.concatMap((function(){return e}),t):sv.concatMap((function(){return e}))};var fv={},pv={},dv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},vv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};pv.concat=void 0;var bv=Ni,yv=xl,hv=ku,mv=Bu;pv.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hv.popScheduler(e);return bv.operate((function(t,n){yv.concatAll()(mv.from(vv([t],dv(e)),r)).subscribe(n)}))};var gv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},wv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};fv.concatWith=void 0;var Ov=pv;fv.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ov.concat.apply(void 0,wv([],gv(e)))};var Sv={},_v={fromSubscribable:void 0},xv=Jo;_v.fromSubscribable=function(e){return new xv.Observable((function(t){return e.subscribe(t)}))},Sv.connect=void 0;var jv=ua,Ev=Bu,Av=Ni,Pv=_v,Tv={connector:function(){return new jv.Subject}};Sv.connect=function(e,t){void 0===t&&(t=Tv);var r=t.connector;return Av.operate((function(t,n){var o=r();Ev.from(e(Pv.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))};var Iv={count:void 0},kv=Id;Iv.count=function(e){return kv.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)};var Cv={debounce:void 0},Fv=Ni,Mv=vi,Rv=Ui,Nv=Uu;Cv.debounce=function(e){return Fv.operate((function(t,r){var n=!1,o=null,i=null,a=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe(Rv.createOperatorSubscriber(r,(function(t){null==i||i.unsubscribe(),n=!0,o=t,i=Rv.createOperatorSubscriber(r,a,Mv.noop),Nv.innerFrom(e(t)).subscribe(i)}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))};var Bv={debounceTime:void 0},Lv=au,zv=Ni,Uv=Ui;Bv.debounceTime=function(e,t){return void 0===t&&(t=Lv.asyncScheduler),zv.operate((function(r,n){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,n.next(e)}};function c(){var r=a+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);u()}r.subscribe(Uv.createOperatorSubscriber(n,(function(r){i=r,a=t.now(),o||(o=t.schedule(c,e),n.add(o))}),(function(){u(),n.complete()}),void 0,(function(){i=o=null})))}))};var Wv={defaultIfEmpty:void 0},qv=Ni,Dv=Ui;Wv.defaultIfEmpty=function(e){return qv.operate((function(t,r){var n=!1;t.subscribe(Dv.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))};var Vv={},$v={},Yv={take:void 0},Jv=Tu,Hv=Ni,Kv=Ui;Yv.take=function(e){return e<=0?function(){return Jv.EMPTY}:Hv.operate((function(t,r){var n=0;t.subscribe(Kv.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))};var Gv={ignoreElements:void 0},Qv=Ni,Xv=Ui,Zv=vi;Gv.ignoreElements=function(){return Qv.operate((function(e,t){e.subscribe(Xv.createOperatorSubscriber(t,Zv.noop))}))};var eb={mapTo:void 0},tb=Ws;eb.mapTo=function(e){return tb.map((function(){return e}))},$v.delayWhen=void 0;var rb=_l,nb=Yv,ob=Gv,ib=eb,ab=El;$v.delayWhen=function e(t,r){return r?function(n){return rb.concat(r.pipe(nb.take(1),ob.ignoreElements()),n.pipe(e(t)))}:ab.mergeMap((function(e,r){return t(e,r).pipe(nb.take(1),ib.mapTo(e))}))},Vv.delay=void 0;var ub=au,cb=$v,sb=If;Vv.delay=function(e,t){void 0===t&&(t=ub.asyncScheduler);var r=sb.timer(e,t);return cb.delayWhen((function(){return r}))};var lb={dematerialize:void 0},fb=Pu,pb=Ni,db=Ui;lb.dematerialize=function(){return pb.operate((function(e,t){e.subscribe(db.createOperatorSubscriber(t,(function(e){return fb.observeNotification(e,t)})))}))};var vb={distinct:void 0},bb=Ni,yb=Ui,hb=vi;vb.distinct=function(e,t){return bb.operate((function(r,n){var o=new Set;r.subscribe(yb.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(yb.createOperatorSubscriber(n,(function(){return o.clear()}),hb.noop))}))};var mb={distinctUntilChanged:void 0},gb=Si,wb=Ni,Ob=Ui;function Sb(e,t){return e===t}mb.distinctUntilChanged=function(e,t){return void 0===t&&(t=gb.identity),e=null!=e?e:Sb,wb.operate((function(r,n){var o,i=!0;r.subscribe(Ob.createOperatorSubscriber(n,(function(r){var a=t(r);!i&&e(o,a)||(i=!1,o=a,n.next(r))})))}))};var _b={distinctUntilKeyChanged:void 0},xb=mb;_b.distinctUntilKeyChanged=function(e,t){return xb.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))};var jb={},Eb={throwIfEmpty:void 0},Ab=xs,Pb=Ni,Tb=Ui;function Ib(){return new Ab.EmptyError}Eb.throwIfEmpty=function(e){return void 0===e&&(e=Ib),Pb.operate((function(t,r){var n=!1;t.subscribe(Tb.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))},jb.elementAt=void 0;var kb=Is,Cb=cp,Fb=Eb,Mb=Wv,Rb=Yv;jb.elementAt=function(e,t){if(e<0)throw new kb.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(n){return n.pipe(Cb.filter((function(t,r){return r===e})),Rb.take(1),r?Mb.defaultIfEmpty(t):Fb.throwIfEmpty((function(){return new kb.ArgumentOutOfRangeError})))}};var Nb={},Bb=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Lb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Nb.endWith=void 0;var zb=_l,Ub=Iu;Nb.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return zb.concat(t,Ub.of.apply(void 0,Lb([],Bb(e))))}};var Wb={every:void 0},qb=Ni,Db=Ui;Wb.every=function(e,t){return qb.operate((function(r,n){var o=0;r.subscribe(Db.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))};var Vb={},$b={exhaustAll:void 0},Yb=Ni,Jb=Uu,Hb=Ui;$b.exhaustAll=function(){return Yb.operate((function(e,t){var r=!1,n=null;e.subscribe(Hb.createOperatorSubscriber(t,(function(e){n||(n=Jb.innerFrom(e).subscribe(Hb.createOperatorSubscriber(t,void 0,(function(){n=null,r&&t.complete()}))))}),(function(){r=!0,!n&&t.complete()})))}))},Vb.exhaust=void 0;var Kb=$b;Vb.exhaust=Kb.exhaustAll;var Gb={exhaustMap:void 0},Qb=Ws,Xb=Uu,Zb=Ni,ey=Ui;Gb.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return Xb.innerFrom(t(e,n)).pipe(Qb.map((function(t,o){return r(e,t,n,o)})))})))}:Zb.operate((function(e,r){var n=0,o=null,i=!1;e.subscribe(ey.createOperatorSubscriber(r,(function(e){o||(o=ey.createOperatorSubscriber(r,void 0,(function(){o=null,i&&r.complete()})),Xb.innerFrom(t(e,n++)).subscribe(o))}),(function(){i=!0,!o&&r.complete()})))}))};var ty={expand:void 0},ry=Ni,ny=Al;ty.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,ry.operate((function(n,o){return ny.mergeInternals(n,o,e,t,void 0,!0,r)}))};var oy={finalize:void 0},iy=Ni;oy.finalize=function(e){return iy.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))};var ay={};ay.createFind=ay.find=void 0;var uy=Ni,cy=Ui;function sy(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(cy.createOperatorSubscriber(o,(function(a){var u=i++;e.call(t,a,u,r)&&(o.next(n?u:a),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}ay.find=function(e,t){return uy.operate(sy(e,t,"value"))},ay.createFind=sy;var ly={findIndex:void 0},fy=Ni,py=ay;ly.findIndex=function(e,t){return fy.operate(py.createFind(e,t,"index"))};var dy={first:void 0},vy=xs,by=cp,yy=Yv,hy=Wv,my=Eb,gy=Si;dy.first=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?by.filter((function(t,r){return e(t,r,n)})):gy.identity,yy.take(1),r?hy.defaultIfEmpty(t):my.throwIfEmpty((function(){return new vy.EmptyError})))}};var wy={groupBy:void 0},Oy=Jo,Sy=Uu,_y=ua,xy=Ni,jy=Ui;wy.groupBy=function(e,t,r,n){return xy.operate((function(o,i){var a;t&&"function"!=typeof t?(r=t.duration,a=t.element,n=t.connector):a=t;var u=new Map,c=function(e){u.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},l=0,f=!1,p=new jy.OperatorSubscriber(i,(function(t){try{var o=e(t),c=u.get(o);if(!c){u.set(o,c=n?n():new _y.Subject);var d=(b=o,y=c,(h=new Oy.Observable((function(e){l++;var t=y.subscribe(e);return function(){t.unsubscribe(),0==--l&&f&&p.unsubscribe()}}))).key=b,h);if(i.next(d),r){var v=jy.createOperatorSubscriber(c,(function(){c.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return u.delete(o)}));p.add(Sy.innerFrom(r(d)).subscribe(v))}}c.next(a?a(t):t)}catch(e){s(e)}var b,y,h}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return u.clear()}),(function(){return f=!0,0===l}));o.subscribe(p)}))};var Ey={isEmpty:void 0},Ay=Ni,Py=Ui;Ey.isEmpty=function(){return Ay.operate((function(e,t){e.subscribe(Py.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))};var Ty={},Iy={},ky=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Iy.takeLast=void 0;var Cy=Tu,Fy=Ni,My=Ui;Iy.takeLast=function(e){return e<=0?function(){return Cy.EMPTY}:Fy.operate((function(t,r){var n=[];t.subscribe(My.createOperatorSubscriber(r,(function(t){n.push(t),e<n.length&&n.shift()}),(function(){var e,t;try{for(var o=ky(n),i=o.next();!i.done;i=o.next()){var a=i.value;r.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){n=null})))}))},Ty.last=void 0;var Ry=xs,Ny=cp,By=Iy,Ly=Eb,zy=Wv,Uy=Si;Ty.last=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Ny.filter((function(t,r){return e(t,r,n)})):Uy.identity,By.takeLast(1),r?zy.defaultIfEmpty(t):Ly.throwIfEmpty((function(){return new Ry.EmptyError})))}};var Wy={materialize:void 0},qy=Pu,Dy=Ni,Vy=Ui;Wy.materialize=function(){return Dy.operate((function(e,t){e.subscribe(Vy.createOperatorSubscriber(t,(function(e){t.next(qy.Notification.createNext(e))}),(function(){t.next(qy.Notification.createComplete()),t.complete()}),(function(e){t.next(qy.Notification.createError(e)),t.complete()})))}))};var $y={max:void 0},Yy=Id,Jy=Ko;$y.max=function(e){return Yy.reduce(Jy.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})};var Hy={flatMap:void 0},Ky=El;Hy.flatMap=Ky.mergeMap;var Gy={mergeMapTo:void 0},Qy=El,Xy=Ko;Gy.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),Xy.isFunction(t)?Qy.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),Qy.mergeMap((function(){return e}),r))};var Zy={mergeScan:void 0},eh=Ni,th=Al;Zy.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),eh.operate((function(n,o){var i=t;return th.mergeInternals(n,o,(function(t,r){return e(i,t,r)}),r,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))};var rh={},nh={},oh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ih=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};nh.merge=void 0;var ah=Ni,uh=Yf,ch=jl,sh=ku,lh=Bu;nh.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=sh.popScheduler(e),n=sh.popNumber(e,1/0);return e=uh.argsOrArgArray(e),ah.operate((function(t,o){ch.mergeAll(n)(lh.from(ih([t],oh(e)),r)).subscribe(o)}))};var fh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ph=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};rh.mergeWith=void 0;var dh=nh;rh.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dh.merge.apply(void 0,ph([],fh(e)))};var vh={min:void 0},bh=Id,yh=Ko;vh.min=function(e){return bh.reduce(yh.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})};var hh={multicast:void 0},mh=Mi,gh=Ko,wh=Sv;hh.multicast=function(e,t){var r=gh.isFunction(e)?e:function(){return e};return gh.isFunction(t)?wh.connect(t,{connector:r}):function(e){return new mh.ConnectableObservable(e,r)}};var Oh={pairwise:void 0},Sh=Ni,_h=Ui;Oh.pairwise=function(){return Sh.operate((function(e,t){var r,n=!1;e.subscribe(_h.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))};var xh={pluck:void 0},jh=Ws;xh.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return jh.map((function(t){for(var n=t,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))};var Eh={publish:void 0},Ah=ua,Ph=hh,Th=Sv;Eh.publish=function(e){return e?function(t){return Th.connect(e)(t)}:function(e){return Ph.multicast(new Ah.Subject)(e)}};var Ih={publishBehavior:void 0},kh=ga,Ch=Mi;Ih.publishBehavior=function(e){return function(t){var r=new kh.BehaviorSubject(e);return new Ch.ConnectableObservable(t,(function(){return r}))}};var Fh={publishLast:void 0},Mh=Aa,Rh=Mi;Fh.publishLast=function(){return function(e){var t=new Mh.AsyncSubject;return new Rh.ConnectableObservable(e,(function(){return t}))}};var Nh={publishReplay:void 0},Bh=Sa,Lh=hh,zh=Ko;Nh.publishReplay=function(e,t,r,n){r&&!zh.isFunction(r)&&(n=r);var o=zh.isFunction(r)?r:void 0;return function(r){return Lh.multicast(new Bh.ReplaySubject(e,t,n),o)(r)}};var Uh={},Wh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},qh=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Uh.raceWith=void 0;var Dh=vp,Vh=Ni,$h=Si;Uh.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?Vh.operate((function(t,r){Dh.raceInit(qh([t],Wh(e)))(r)})):$h.identity};var Yh={repeat:void 0},Jh=Tu,Hh=Ni,Kh=Ui,Gh=Uu,Qh=If;Yh.repeat=function(e){var t,r,n=1/0;return null!=e&&("object"==typeof e?(t=e.count,n=void 0===t?1/0:t,r=e.delay):n=e),n<=0?function(){return Jh.EMPTY}:Hh.operate((function(e,t){var o,i=0,a=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?Qh.timer(r):Gh.innerFrom(r(i)),n=Kh.createOperatorSubscriber(t,(function(){n.unsubscribe(),u()}));e.subscribe(n)}else u()},u=function(){var r=!1;o=e.subscribe(Kh.createOperatorSubscriber(t,void 0,(function(){++i<n?o?a():r=!0:t.complete()}))),r&&a()};u()}))};var Xh={repeatWhen:void 0},Zh=ua,em=Ni,tm=Ui;Xh.repeatWhen=function(e){return em.operate((function(t,r){var n,o,i=!1,a=!1,u=!1,c=function(){return u&&a&&(r.complete(),!0)},s=function(){u=!1,n=t.subscribe(tm.createOperatorSubscriber(r,void 0,(function(){u=!0,!c()&&(o||(o=new Zh.Subject,e(o).subscribe(tm.createOperatorSubscriber(r,(function(){n?s():i=!0}),(function(){a=!0,c()})))),o).next()}))),i&&(n.unsubscribe(),n=null,i=!1,s())};s()}))};var rm={retry:void 0},nm=Ni,om=Ui,im=Si,am=If,um=Uu;rm.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,n=void 0===r?1/0:r,o=t.delay,i=t.resetOnSuccess,a=void 0!==i&&i;return n<=0?im.identity:nm.operate((function(e,t){var r,i=0,u=function(){var c=!1;r=e.subscribe(om.createOperatorSubscriber(t,(function(e){a&&(i=0),t.next(e)}),void 0,(function(e){if(i++<n){var a=function(){r?(r.unsubscribe(),r=null,u()):c=!0};if(null!=o){var s="number"==typeof o?am.timer(o):um.innerFrom(o(e,i)),l=om.createOperatorSubscriber(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));s.subscribe(l)}else a()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,u())};u()}))};var cm={retryWhen:void 0},sm=ua,lm=Ni,fm=Ui;cm.retryWhen=function(e){return lm.operate((function(t,r){var n,o,i=!1,a=function(){n=t.subscribe(fm.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new sm.Subject,e(o).subscribe(fm.createOperatorSubscriber(r,(function(){return n?a():i=!0})))),o&&o.next(t)}))),i&&(n.unsubscribe(),n=null,i=!1,a())};a()}))};var pm={sample:void 0},dm=Ni,vm=vi,bm=Ui;pm.sample=function(e){return dm.operate((function(t,r){var n=!1,o=null;t.subscribe(bm.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(bm.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),vm.noop))}))};var ym={sampleTime:void 0},hm=au,mm=pm,gm=Tf;ym.sampleTime=function(e,t){return void 0===t&&(t=hm.asyncScheduler),mm.sample(gm.interval(e,t))};var wm={scan:void 0},Om=Ni,Sm=kd;wm.scan=function(e,t){return Om.operate(Sm.scanInternals(e,t,arguments.length>=2,!0))};var _m={sequenceEqual:void 0},xm=Ni,jm=Ui;_m.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),xm.operate((function(r,n){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=function(e){n.next(e),n.complete()},u=function(e,r){var o=jm.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?a(!1):e.buffer.push(n):!t(n,o.shift())&&a(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&a(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(u(o,i)),e.subscribe(u(i,o))}))};var Em={},Am=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Pm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Em.share=void 0;var Tm=Bu,Im=Yv,km=ua,Cm=Ho,Fm=Ni;function Mm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,Pm([],Am(r))).pipe(Im.take(1)).subscribe((function(){return e()}))}Em.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new km.Subject}:t,n=e.resetOnError,o=void 0===n||n,i=e.resetOnComplete,a=void 0===i||i,u=e.resetOnRefCountZero,c=void 0===u||u;return function(e){var t=null,n=null,i=null,u=0,s=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=null},p=function(){f(),t=i=null,s=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return Fm.operate((function(e,v){u++,l||s||f();var b=i=null!=i?i:r();v.add((function(){0!==--u||l||s||(n=Mm(d,c))})),b.subscribe(v),t||(t=new Cm.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){l=!0,f(),n=Mm(p,o,e),b.error(e)},complete:function(){s=!0,f(),n=Mm(p,a),b.complete()}}),Tm.from(e).subscribe(t))}))(e)}};var Rm={shareReplay:void 0},Nm=Sa,Bm=Em;Rm.shareReplay=function(e,t,r){var n,o,i,a,u=!1;return e&&"object"==typeof e?(n=e.bufferSize,a=void 0===n?1/0:n,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(i=e.refCount)&&i,r=e.scheduler):a=null!=e?e:1/0,Bm.share({connector:function(){return new Nm.ReplaySubject(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})};var Lm={single:void 0},zm=xs,Um=Ms,Wm=Cs,qm=Ni,Dm=Ui;Lm.single=function(e){return qm.operate((function(t,r){var n,o=!1,i=!1,a=0;t.subscribe(Dm.createOperatorSubscriber(r,(function(u){i=!0,e&&!e(u,a++,t)||(o&&r.error(new Um.SequenceError("Too many matching values")),o=!0,n=u)}),(function(){o?(r.next(n),r.complete()):r.error(i?new Wm.NotFoundError("No matching values"):new zm.EmptyError)})))}))};var Vm={skip:void 0},$m=cp;Vm.skip=function(e){return $m.filter((function(t,r){return e<=r}))};var Ym={skipLast:void 0},Jm=Si,Hm=Ni,Km=Ui;Ym.skipLast=function(e){return e<=0?Jm.identity:Hm.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(Km.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))};var Gm={skipUntil:void 0},Qm=Ni,Xm=Ui,Zm=Uu,eg=vi;Gm.skipUntil=function(e){return Qm.operate((function(t,r){var n=!1,o=Xm.createOperatorSubscriber(r,(function(){null==o||o.unsubscribe(),n=!0}),eg.noop);Zm.innerFrom(e).subscribe(o),t.subscribe(Xm.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))};var tg={skipWhile:void 0},rg=Ni,ng=Ui;tg.skipWhile=function(e){return rg.operate((function(t,r){var n=!1,o=0;t.subscribe(ng.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))};var og={startWith:void 0},ig=_l,ag=ku,ug=Ni;og.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ag.popScheduler(e);return ug.operate((function(t,n){(r?ig.concat(e,t,r):ig.concat(e,t)).subscribe(n)}))};var cg={},sg={switchMap:void 0},lg=Uu,fg=Ni,pg=Ui;sg.switchMap=function(e,t){return fg.operate((function(r,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};r.subscribe(pg.createOperatorSubscriber(n,(function(r){null==o||o.unsubscribe();var a=0,c=i++;lg.innerFrom(e(r,c)).subscribe(o=pg.createOperatorSubscriber(n,(function(e){return n.next(t?t(r,e,c,a++):e)}),(function(){o=null,u()})))}),(function(){a=!0,u()})))}))},cg.switchAll=void 0;var dg=sg,vg=Si;cg.switchAll=function(){return dg.switchMap(vg.identity)};var bg={switchMapTo:void 0},yg=sg,hg=Ko;bg.switchMapTo=function(e,t){return hg.isFunction(t)?yg.switchMap((function(){return e}),t):yg.switchMap((function(){return e}))};var mg={switchScan:void 0},gg=sg,wg=Ni;mg.switchScan=function(e,t){return wg.operate((function(r,n){var o=t;return gg.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(n),function(){o=null}}))};var Og={takeUntil:void 0},Sg=Ni,_g=Ui,xg=Uu,jg=vi;Og.takeUntil=function(e){return Sg.operate((function(t,r){xg.innerFrom(e).subscribe(_g.createOperatorSubscriber(r,(function(){return r.complete()}),jg.noop)),!r.closed&&t.subscribe(r)}))};var Eg={takeWhile:void 0},Ag=Ni,Pg=Ui;Eg.takeWhile=function(e,t){return void 0===t&&(t=!1),Ag.operate((function(r,n){var o=0;r.subscribe(Pg.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))};var Tg={tap:void 0},Ig=Ko,kg=Ni,Cg=Ui,Fg=Si;Tg.tap=function(e,t,r){var n=Ig.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return n?kg.operate((function(e,t){var r;null===(r=n.subscribe)||void 0===r||r.call(n);var o=!0;e.subscribe(Cg.createOperatorSubscriber(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;o=!1,null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;o=!1,null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)}),(function(){var e,t;o&&(null===(e=n.unsubscribe)||void 0===e||e.call(n)),null===(t=n.finalize)||void 0===t||t.call(n)})))})):Fg.identity};var Mg={};!function(e){e.throttle=e.defaultThrottleConfig=void 0;var t=Ni,r=Ui,n=Uu;e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(o,i){return void 0===i&&(i=e.defaultThrottleConfig),t.operate((function(e,t){var a=i.leading,u=i.trailing,c=!1,s=null,l=null,f=!1,p=function(){null==l||l.unsubscribe(),l=null,u&&(b(),f&&t.complete())},d=function(){l=null,f&&t.complete()},v=function(e){return l=n.innerFrom(o(e)).subscribe(r.createOperatorSubscriber(t,p,d))},b=function(){if(c){c=!1;var e=s;s=null,t.next(e),!f&&v(e)}};e.subscribe(r.createOperatorSubscriber(t,(function(e){c=!0,s=e,(!l||l.closed)&&(a?b():v(e))}),(function(){f=!0,(!(u&&c&&l)||l.closed)&&t.complete()})))}))}}(Mg);var Rg={throttleTime:void 0},Ng=au,Bg=Mg,Lg=If;Rg.throttleTime=function(e,t,r){void 0===t&&(t=Ng.asyncScheduler),void 0===r&&(r=Bg.defaultThrottleConfig);var n=Lg.timer(e,t);return Bg.throttle((function(){return n}),r)};var zg={};zg.TimeInterval=zg.timeInterval=void 0;var Ug=au,Wg=Ni,qg=Ui;zg.timeInterval=function(e){return void 0===e&&(e=Ug.asyncScheduler),Wg.operate((function(t,r){var n=e.now();t.subscribe(qg.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new Dg(t,i))})))}))};var Dg=function(e,t){this.value=e,this.interval=t};zg.TimeInterval=Dg;var Vg={timeoutWith:void 0},$g=au,Yg=Bs,Jg=Ns;Vg.timeoutWith=function(e,t,r){var n,o,i;if(r=null!=r?r:$g.async,Yg.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return Jg.timeout({first:n,each:o,scheduler:r,with:i})};var Hg={timestamp:void 0},Kg=_a,Gg=Ws;Hg.timestamp=function(e){return void 0===e&&(e=Kg.dateTimestampProvider),Gg.map((function(t){return{value:t,timestamp:e.now()}}))};var Qg={window:void 0},Xg=ua,Zg=Ni,ew=Ui,tw=vi;Qg.window=function(e){return Zg.operate((function(t,r){var n=new Xg.Subject;r.next(n.asObservable());var o=function(e){n.error(e),r.error(e)};return t.subscribe(ew.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),r.complete()}),o)),e.subscribe(ew.createOperatorSubscriber(r,(function(){n.complete(),r.next(n=new Xg.Subject)}),tw.noop,o)),function(){null==n||n.unsubscribe(),n=null}}))};var rw={},nw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};rw.windowCount=void 0;var ow=ua,iw=Ni,aw=Ui;rw.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return iw.operate((function(t,n){var o=[new ow.Subject],i=0;n.next(o[0].asObservable()),t.subscribe(aw.createOperatorSubscriber(n,(function(t){var a,u;try{for(var c=nw(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var l=i-e+1;if(l>=0&&l%r==0&&o.shift().complete(),++i%r==0){var f=new ow.Subject;o.push(f),n.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();n.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);n.error(e)}),(function(){o=null})))}))};var uw={windowTime:void 0},cw=ua,sw=au,lw=Go,fw=Ni,pw=Ui,dw=ei,vw=ku,bw=Pc;uw.windowTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=vw.popScheduler(n))&&void 0!==t?t:sw.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return fw.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),dw.arrRemove(n,e),o&&s()},s=function(){if(n){var t=new lw.Subscription;r.add(t);var o=new cw.Subject,a={window:o,subs:t,seen:0};n.push(a),r.next(o.asObservable()),bw.executeSchedule(t,i,(function(){return c(a)}),e)}};null!==a&&a>=0?bw.executeSchedule(r,i,s,a,!0):o=!0,s();var l=function(e){return n.slice().forEach(e)},f=function(e){l((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(pw.createOperatorSubscriber(r,(function(e){l((function(t){t.window.next(e),u<=++t.seen&&c(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){n=null}}))};var yw={},hw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};yw.windowToggle=void 0;var mw=ua,gw=Go,ww=Ni,Ow=Uu,Sw=Ui,_w=vi,xw=ei;yw.windowToggle=function(e,t){return ww.operate((function(r,n){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);n.error(e)};Ow.innerFrom(e).subscribe(Sw.createOperatorSubscriber(n,(function(e){var r=new mw.Subject;o.push(r);var a,u=new gw.Subscription;try{a=Ow.innerFrom(t(e))}catch(e){return void i(e)}n.next(r.asObservable()),u.add(a.subscribe(Sw.createOperatorSubscriber(n,(function(){xw.arrRemove(o,r),r.complete(),u.unsubscribe()}),_w.noop,i)))}),_w.noop)),r.subscribe(Sw.createOperatorSubscriber(n,(function(e){var t,r,n=o.slice();try{for(var i=hw(n),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();n.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))};var jw={windowWhen:void 0},Ew=ua,Aw=Ni,Pw=Ui,Tw=Uu;jw.windowWhen=function(e){return Aw.operate((function(t,r){var n,o,i=function(e){n.error(e),r.error(e)},a=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new Ew.Subject,r.next(n.asObservable());try{t=Tw.innerFrom(e())}catch(e){return void i(e)}t.subscribe(o=Pw.createOperatorSubscriber(r,a,a,i))};a(),t.subscribe(Pw.createOperatorSubscriber(r,(function(e){return n.next(e)}),(function(){n.complete(),r.complete()}),i,(function(){null==o||o.unsubscribe(),n=null})))}))};var Iw={},kw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Cw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Iw.withLatestFrom=void 0;var Fw=Ni,Mw=Ui,Rw=Uu,Nw=Si,Bw=vi,Lw=ku;Iw.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Lw.popResultSelector(e);return Fw.operate((function(t,n){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),u=!1,c=function(t){Rw.innerFrom(e[t]).subscribe(Mw.createOperatorSubscriber(n,(function(e){i[t]=e,u||a[t]||(a[t]=!0,(u=a.every(Nw.identity))&&(a=null))}),Bw.noop))},s=0;s<o;s++)c(s);t.subscribe(Mw.createOperatorSubscriber(n,(function(e){if(u){var t=Cw([e],kw(i));n.next(r?r.apply(void 0,Cw([],kw(t))):t)}})))}))};var zw={zipAll:void 0},Uw=Ap,Ww=Pd;zw.zipAll=function(e){return Ww.joinAllInternals(Uw.zip,e)};var qw={},Dw={},Vw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$w=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Dw.zip=void 0;var Yw=Ap,Jw=Ni;Dw.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jw.operate((function(t,r){Yw.zip.apply(void 0,$w([t],Vw(e))).subscribe(r)}))};var Hw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};qw.zipWith=void 0;var Gw=Dw;function Qw(e,t){const r=Gn(),n=o.exports.useMemo((()=>new Qn.ObservableFiniteStateMachine(e,t)),[e]);return o.exports.useEffect((()=>{const e=n.observeStateChanges().subscribe((()=>r()));return()=>e.unsubscribe()}),[n]),n}qw.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gw.zip.apply(void 0,Kw([],Hw(e)))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var o=Jo;Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return o.Observable}});var i=Mi;Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=wi;Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var u=Xi;Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=ua;Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var s=ga;Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return s.BehaviorSubject}});var l=Sa;Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var f=Aa;Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var p=Ia;Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var d=au;Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var v=uu;Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var b=vu;Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=Su;Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var h=Xa;Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return h.Scheduler}});var m=Go;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var g=Ho;Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var w=Pu;Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return w.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return w.NotificationKind}});var O=Oi;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=vi;Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var _=Si;Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return _.identity}});var x=ws;Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return x.isObservable}});var j=_s;Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return j.lastValueFrom}});var E=As;Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var A=Is;Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var P=xs;Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var T=Cs;Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var I=ca;Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var k=Ms;Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var C=Ns;Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return C.TimeoutError}});var F=Qo;Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var M=Ls;Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var R=nl;Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return R.bindNodeCallback}});var N=il;Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var B=_l;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}});var L=ql;Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return L.connectable}});var z=Dl;Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return z.defer}});var U=Tu;Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return U.empty}});var W=Gl;Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return W.forkJoin}});var q=Bu;Object.defineProperty(e,"from",{enumerable:!0,get:function(){return q.from}});var D=of;Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return D.fromEvent}});var V=hf;Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return V.fromEventPattern}});var $=Of;Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return $.generate}});var Y=Af;Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var J=Tf;Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return J.interval}});var H=Bf;Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return H.merge}});var K=Df;Object.defineProperty(e,"never",{enumerable:!0,get:function(){return K.never}});var G=Iu;Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=Vf;Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=op;Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return X.pairs}});var Z=ap;Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Z.partition}});var ee=vp;Object.defineProperty(e,"race",{enumerable:!0,get:function(){return ee.race}});var te=wp;Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.range}});var re=hs;Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ne=If;Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return ne.timer}});var oe=_p;Object.defineProperty(e,"using",{enumerable:!0,get:function(){return oe.using}});var ie=Ap;Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ie.zip}});var ae=Lu;Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=Tu;Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=Df;Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(Np,e);var se=si;Object.defineProperty(e,"config",{enumerable:!0,get:function(){return se.config}});var le=Bp;Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return le.audit}});var fe=Wp;Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return fe.auditTime}});var pe=$p;Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var de=Kp;Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var ve=ed;Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var be=sd;Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=hd;Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var he=Sd;Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return he.catchError}});var me=Ed;Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var ge=Ad;Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}});var we=Yd;Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return we.combineLatestWith}});var Oe=xl;Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Oe.concatAll}});var Se=iv;Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var _e=cv;Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var xe=fv;Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return xe.concatWith}});var je=Sv;Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return je.connect}});var Ee=Iv;Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ee.count}});var Ae=Cv;Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Ae.debounce}});var Pe=Bv;Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Te=Wv;Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Ie=Vv;Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Ie.delay}});var ke=$v;Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Ce=lb;Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ce.dematerialize}});var Fe=vb;Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Me=mb;Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Re=_b;Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Re.distinctUntilKeyChanged}});var Ne=jb;Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Be=Nb;Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Le=Wb;Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Le.every}});var ze=Vb;Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return ze.exhaust}});var Ue=$b;Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var We=Gb;Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var qe=ty;Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return qe.expand}});var De=cp;Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return De.filter}});var Ve=oy;Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Ve.finalize}});var $e=ay;Object.defineProperty(e,"find",{enumerable:!0,get:function(){return $e.find}});var Ye=ly;Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Ye.findIndex}});var Je=dy;Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Je.first}});var He=wy;Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return He.groupBy}});var Ke=Gv;Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Ge=Ey;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ge.isEmpty}});var Qe=Ty;Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=Ws;Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Xe.map}});var Ze=eb;Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Ze.mapTo}});var et=Wy;Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return et.materialize}});var tt=$y;Object.defineProperty(e,"max",{enumerable:!0,get:function(){return tt.max}});var rt=jl;Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var nt=Hy;Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return nt.flatMap}});var ot=El;Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var it=Gy;Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return it.mergeMapTo}});var at=Zy;Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=rh;Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=vh;Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ct.min}});var st=hh;Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return st.multicast}});var lt=Ac;Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var ft=Oh;Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ft.pairwise}});var pt=xh;Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var dt=Eh;Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return dt.publish}});var vt=Ih;Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var bt=Fh;Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bt.publishLast}});var yt=Nh;Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var ht=Uh;Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ht.raceWith}});var mt=Id;Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return mt.reduce}});var gt=Yh;Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return gt.repeat}});var wt=Xh;Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return wt.repeatWhen}});var Ot=rm;Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Ot.retry}});var St=cm;Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var _t=Ri;Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var xt=pm;Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return xt.sample}});var jt=ym;Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}});var Et=wm;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Et.scan}});var At=_m;Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return At.sequenceEqual}});var Pt=Em;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Pt.share}});var Tt=Rm;Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var It=Lm;Object.defineProperty(e,"single",{enumerable:!0,get:function(){return It.single}});var kt=Vm;Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ct=Ym;Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Ct.skipLast}});var Ft=Gm;Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Mt=tg;Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Mt.skipWhile}});var Rt=og;Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Rt.startWith}});var Nt=Cc;Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var Bt=cg;Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Lt=sg;Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var zt=bg;Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return zt.switchMapTo}});var Ut=mg;Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var Wt=Yv;Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Wt.take}});var qt=Iy;Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Dt=Og;Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Dt.takeUntil}});var Vt=Eg;Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var $t=Tg;Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return $t.tap}});var Yt=Mg;Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Jt=Rg;Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Ht=Eb;Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Ht.throwIfEmpty}});var Kt=zg;Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Gt=Ns;Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Gt.timeout}});var Qt=Vg;Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Xt=Hg;Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Xt.timestamp}});var Zt=Td;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Zt.toArray}});var er=Qg;Object.defineProperty(e,"window",{enumerable:!0,get:function(){return er.window}});var tr=rw;Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return tr.windowCount}});var rr=uw;Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return rr.windowTime}});var nr=yw;Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var or=jw;Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ir=Iw;Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ir.withLatestFrom}});var ar=zw;Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}});var ur=qw;Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}(Yo),function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=qo,r=Yo,n=g;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new r.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const r=this.state;this.stateChanges.next({event:e,oldState:t,newState:r}),(0,n.isEmptyObject)(this.schema[r])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=qo;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}($o),function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Xn,e),r(Zn,e),r(eo,e),r(ro,e),r(oo,e),r(ao,e),r(co,e),r(po,e),r(Fo,e),r(Lo,e),r(qo,e),r($o,e)}(Qn);var Xw=Qn.ObservableFiniteStateMachine;export{Xw as ObservableFiniteStateMachine,Qw as useFiniteStateMachine,Gn as useForceUpdate,d as useIncrement,y as useIsFirstRender,b as useIsMounted,v as useMount,$n as useMultipleSelection,h as useRenderCounter,Hn as useResizeObserver,Dn as useSingleSelection,Yn as useStateCycle,Kn as useStep,Jn as useToggle,m as useUpdateEffect};
|
|
18
18
|
//# sourceMappingURL=index.min.mjs.map
|