@blackglory/observe 0.1.5 → 0.1.7

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 CHANGED
@@ -2,7 +2,6 @@
2
2
  A module for observing things happening.
3
3
 
4
4
  ## Install
5
-
6
5
  ```sh
7
6
  npm install --save @blackglory/observe
8
7
  # or
@@ -10,8 +9,22 @@ yarn add @blackglory/observe
10
9
  ```
11
10
 
12
11
  ## API
12
+ ### observeUrlChanges
13
+ ```ts
14
+ function observeUrlChanges(): Observable<void>
15
+ ```
16
+
17
+ ### observeStateChanges
18
+ ```ts
19
+ function observeStateChanges(): Observable<void>
20
+ ```
13
21
 
14
- - `function observeUrlChanges(): Observable<void>`
15
- - `function observeStateChanges(): Observable<void>`
16
- - `function observeAdditionOfDescendantNodes(node: Node): Observable<Node[]>`
17
- - `function observeRemovalOfDescendantNodes(node: Node): Observable<Node[]>`
22
+ ### observeAdditionOfDescendantNodes
23
+ ```ts
24
+ function observeAdditionOfDescendantNodes(node: Node): Observable<Node[]>
25
+ ```
26
+
27
+ ### observeRemovalOfDescendantNodes
28
+ ```ts
29
+ function observeRemovalOfDescendantNodes(node: Node): Observable<Node[]>
30
+ ```
@@ -12,5 +12,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(t,e)};function t(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function e(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))}function r(n,t){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=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(n,a)}catch(n){i=[6,n],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function o(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function a(n,t,e){if(e||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))}function c(n){return this instanceof c?(this.v=n,this):new c(n)}function s(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||s(n,t)}))})}function s(n,t){try{(e=o[n](t)).value instanceof c?Promise.resolve(e.value.v).then(u,l):f(i[0][2],e)}catch(n){f(i[0][3],n)}var e}function u(n){s("next",n)}function l(n){s("throw",n)}function f(n,t){n(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function u(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=o(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}}function l(n){return"function"==typeof n}var f,y=((f=function(n){return function(t){n(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(n,t){return t+1+") "+n.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}((function(n){Error.call(n),n.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),f.prototype.constructor=f,f);function d(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var p=function(){function n(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}var t;return n.prototype.unsubscribe=function(){var n,t,e,r,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=o(s),f=u.next();!f.done;f=u.next()){f.value.remove(this)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(t=u.return)&&t.call(u)}finally{if(n)throw n.error}}else s.remove(this);var d=this.initialTeardown;if(l(d))try{d()}catch(n){c=n instanceof y?n.errors:[n]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var h=o(p),b=h.next();!b.done;b=h.next()){var m=b.value;try{v(m)}catch(n){c=null!=c?c:[],n instanceof y?c=a(a([],i(c)),i(n.errors)):c.push(n)}}}catch(n){e={error:n}}finally{try{b&&!b.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}}if(c)throw new y(c)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)v(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},n.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},n.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},n.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&d(t,n)},n.prototype.remove=function(t){var e=this._teardowns;e&&d(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=((t=new n).closed=!0,t),n}();function h(n){return n instanceof p||n&&"closed"in n&&l(n.remove)&&l(n.add)&&l(n.unsubscribe)}function v(n){l(n)?n():n.unsubscribe()}var b={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},m={setTimeout:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=m.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,a([],i(n)))},clearTimeout:function(n){var t=m.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function w(n){m.setTimeout((function(){var t=b.onUnhandledError;if(!t)throw n;t(n)}))}function A(){}var S=_("C",void 0,void 0);function _(n,t,e){return{kind:n,value:t,error:e}}var O=null;function I(n){b.useDeprecatedSynchronousErrorHandling&&O&&(O.errorThrown=!0,O.error=n)}var g=function(n){function e(t){var e=n.call(this)||this;return e.isStopped=!1,t?(e.destination=t,h(t)&&t.add(e)):e.destination=j,e}return t(e,n),e.create=function(n,t,e){return new x(n,t,e)},e.prototype.next=function(n){this.isStopped?B(function(n){return _("N",n,void 0)}(n),this):this._next(n)},e.prototype.error=function(n){this.isStopped?B(function(n){return _("E",void 0,n)}(n),this):(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped?B(S,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(p),x=function(n){function e(t,e,r){var o,i=n.call(this)||this;if(l(t))o=t;else if(t){var a;o=t.next,e=t.error,r=t.complete,i&&b.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:a=t,o=null==o?void 0:o.bind(a),e=null==e?void 0:e.bind(a),r=null==r?void 0:r.bind(a)}return i.destination={next:o?P(o):A,error:P(null!=e?e:T),complete:r?P(r):A},i}return t(e,n),e}(g);function P(n,t){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{n.apply(void 0,a([],i(t)))}catch(n){b.useDeprecatedSynchronousErrorHandling?I(n):w(n)}}}function T(n){throw n}function B(n,t){var e=b.onStoppedNotification;e&&m.setTimeout((function(){return e(n,t)}))}var j={closed:!0,next:A,error:T,complete:A},E="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(n){return n}function C(n){return 0===n.length?k:1===n.length?n[0]:function(t){return n.reduce((function(n,t){return t(n)}),t)}}var R=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(n,t,e){var r,o=this,i=(r=n)&&r instanceof g||function(n){return n&&l(n.next)&&l(n.error)&&l(n.complete)}(r)&&h(r)?n:new x(n,t,e);return function(n){if(b.useDeprecatedSynchronousErrorHandling){var t=!O;if(t&&(O={errorThrown:!1,error:null}),n(),t){var e=O,r=e.errorThrown,o=e.error;if(O=null,r)throw o}}else n()}((function(){var n=o,t=n.operator,e=n.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var e=this;return new(t=U(t))((function(t,r){var o=new x({next:function(t){try{n(t)}catch(n){r(n),o.unsubscribe()}},error:r,complete:t});e.subscribe(o)}))},n.prototype._subscribe=function(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)},n.prototype[E]=function(){return this},n.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return C(n)(this)},n.prototype.toPromise=function(n){var t=this;return new(n=U(n))((function(n,e){var r;t.subscribe((function(n){return r=n}),(function(n){return e(n)}),(function(){return n(r)}))}))},n.create=function(t){return new n(t)},n}();function U(n){var t;return null!==(t=null!=n?n:b.Promise)&&void 0!==t?t:Promise}function F(n){return function(t){if(function(n){return l(null==n?void 0:n.lift)}(t))return t.lift((function(t){try{return n(t,this)}catch(n){this.error(n)}}));throw new TypeError("Unable to lift unknown Observable type")}}var D=function(n){function e(t,e,r,o,i){var a=n.call(this,t)||this;return a.onFinalize=i,a._next=e?function(n){try{e(n)}catch(n){t.error(n)}}:n.prototype._next,a._error=o?function(n){try{o(n)}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._error,a._complete=r?function(){try{r()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,a}return t(e,n),e.prototype.unsubscribe=function(){var t,e=this.closed;n.prototype.unsubscribe.call(this),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},e}(g),q={now:function(){return(q.delegate||performance).now()},delegate:void 0},N={schedule:function(n){var t=requestAnimationFrame,e=cancelAnimationFrame,r=N.delegate;r&&(t=r.requestAnimationFrame,e=r.cancelAnimationFrame);var o=t((function(t){e=void 0,n(t)}));return new p((function(){return null==e?void 0:e(o)}))},requestAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=N.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,a([],i(n)))},cancelAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=N.delegate;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,a([],i(n)))},delegate:void 0};function V(n){var t=N.schedule;return new R((function(e){var r=new p,o=n||q,i=o.now(),a=function(c){var s=o.now();e.next({timestamp:n?s:c,elapsed:s-i}),e.closed||r.add(t(a))};return r.add(t(a)),r}))}var G=V(),L=new R((function(n){return n.complete()}));function J(n){return n[n.length-1]}function z(n){return(t=J(n))&&l(t.schedule)?n.pop():void 0;var t}function M(n,t){return"number"==typeof J(n)?n.pop():t}var Z=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function H(n){return l(null==n?void 0:n.then)}function Y(n){return l(n[E])}function W(n){return Symbol.asyncIterator&&l(null==n?void 0:n[Symbol.asyncIterator])}function K(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Q="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function X(n){return l(null==n?void 0:n[Q])}function $(n){return s(this,arguments,(function(){var t,e,o;return r(this,(function(r){switch(r.label){case 0:t=n.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,c(t.read())];case 3:return e=r.sent(),o=e.value,e.done?[4,c(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,c(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function nn(n){return l(null==n?void 0:n.getReader)}function tn(n){if(n instanceof R)return n;if(null!=n){if(Y(n))return e=n,new R((function(n){var t=e[E]();if(l(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Z(n))return function(n){return new R((function(t){for(var e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()}))}(n);if(H(n))return t=n,new R((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,w)}));if(W(n))return en(n);if(X(n))return function(n){return new R((function(t){var e,r;try{for(var i=o(n),a=i.next();!a.done;a=i.next()){var c=a.value;if(t.next(c),t.closed)return}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()}))}(n);if(nn(n))return en($(n))}var t,e;throw K(n)}function en(n){return new R((function(t){(function(n,t){var o,i,a,c;return e(this,void 0,void 0,(function(){var e,s;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=u(n),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(e=i.value,t.next(e),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=r.sent(),a={error:s},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(c=o.return)?[4,c.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(n,t).catch((function(n){return t.error(n)}))}))}function rn(n,t,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=t.schedule((function(){e(),o?n.add(this.schedule(null,r)):this.unsubscribe()}),r);if(n.add(i),!o)return i}function on(n,t){return void 0===t&&(t=0),F((function(e,r){e.subscribe(new D(r,(function(e){return rn(r,n,(function(){return r.next(e)}),t)}),(function(){return rn(r,n,(function(){return r.complete()}),t)}),(function(e){return rn(r,n,(function(){return r.error(e)}),t)})))}))}function an(n,t){return void 0===t&&(t=0),F((function(e,r){r.add(n.schedule((function(){return e.subscribe(r)}),t))}))}function cn(n,t){if(!n)throw new Error("Iterable cannot be null");return new R((function(e){rn(e,t,(function(){var r=n[Symbol.asyncIterator]();rn(e,t,(function(){r.next().then((function(n){n.done?e.complete():e.next(n.value)}))}),0,!0)}))}))}function sn(n,t){if(null!=n){if(Y(n))return function(n,t){return tn(n).pipe(an(t),on(t))}(n,t);if(Z(n))return function(n,t){return new R((function(e){var r=0;return t.schedule((function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())}))}))}(n,t);if(H(n))return function(n,t){return tn(n).pipe(an(t),on(t))}(n,t);if(W(n))return cn(n,t);if(X(n))return function(n,t){return new R((function(e){var r;return rn(e,t,(function(){r=n[Q](),rn(e,t,(function(){var n,t,o;try{t=(n=r.next()).value,o=n.done}catch(n){return void e.error(n)}o?e.complete():e.next(t)}),0,!0)})),function(){return l(null==r?void 0:r.return)&&r.return()}}))}(n,t);if(nn(n))return function(n,t){return cn($(n),t)}(n,t)}throw K(n)}function un(n,t){return t?sn(n,t):tn(n)}function ln(n,t){return F((function(e,r){var o=0;e.subscribe(new D(r,(function(e){r.next(n.call(t,e,o++))})))}))}var fn=Array.isArray;function yn(n){return ln((function(t){return function(n,t){return fn(t)?n.apply(void 0,a([],i(t))):n(t)}(n,t)}))}function dn(n,t,e){return void 0===e&&(e=1/0),l(t)?dn((function(e,r){return ln((function(n,o){return t(e,n,r,o)}))(tn(n(e,r)))}),e):("number"==typeof t&&(e=t),F((function(t,r){return function(n,t,e,r,o,i,a,c){var s=[],u=0,l=0,f=!1,y=function(){!f||s.length||u||t.complete()},d=function(n){return u<r?p(n):s.push(n)},p=function(n){i&&t.next(n),u++;var c=!1;tn(e(n,l++)).subscribe(new D(t,(function(n){null==o||o(n),i?d(n):t.next(n)}),(function(){c=!0}),void 0,(function(){if(c)try{u--;for(var n=function(){var n=s.shift();a?rn(t,a,(function(){return p(n)})):p(n)};s.length&&u<r;)n();y()}catch(n){t.error(n)}})))};return n.subscribe(new D(t,d,(function(){f=!0,y()}))),function(){null==c||c()}}(t,r,n,e)})))}function pn(n){return void 0===n&&(n=1/0),dn(k,n)}var hn=["addListener","removeListener"],vn=["addEventListener","removeEventListener"],bn=["on","off"];function mn(n,t,e,r){if(l(e)&&(r=e,e=void 0),r)return mn(n,t,e).pipe(yn(r));var o=i(function(n){return l(n.addEventListener)&&l(n.removeEventListener)}(n)?vn.map((function(r){return function(o){return n[r](t,o,e)}})):function(n){return l(n.addListener)&&l(n.removeListener)}(n)?hn.map(wn(n,t)):function(n){return l(n.on)&&l(n.off)}(n)?bn.map(wn(n,t)):[],2),a=o[0],c=o[1];if(!a&&Z(n))return dn((function(n){return mn(n,t,e)}))(tn(n));if(!a)throw new TypeError("Invalid event target");return new R((function(n){var t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1<t.length?t:t[0])};return a(t),function(){return c(t)}}))}function wn(n,t){return function(e){return function(r){return n[e](t,r)}}}function An(n,t){return F((function(e,r){var o=0;e.subscribe(new D(r,(function(e){return n.call(t,e,o++)&&r.next(e)})))}))}function Sn(...n){return new R((t=>{const e=new MutationObserver((n=>t.next(n)));return e.observe(...n),()=>e.disconnect()}))}var _n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},On={},In={},gn={};gn.mixinDecorators=void 0,gn.mixinDecorators=function(n,t){for(const e of t)for(const t of Object.getOwnPropertyNames(e.prototype)){if("constructor"===t)continue;const r=Object.getOwnPropertyDescriptor(e.prototype,t);Object.defineProperty(n.prototype,t,r)}};var xn={},Pn={Subject:void 0};Pn.Subject=class{constructor(n){this.subject=n}},xn.IterableOperatorBase=void 0;const Tn=Pn;class Bn extends Tn.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}xn.IterableOperatorBase=Bn;var jn={},En={},kn={},Cn={AsyncIterableOperatorBase:void 0};const Rn=Pn;class Un extends Rn.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}Cn.AsyncIterableOperatorBase=Un;var Fn,Dn,qn={},Nn={},Vn={},Gn={};Gn.go=void 0,Gn.go=function(n){return n()},Fn=Vn,Dn=_n&&_n.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),(_n&&_n.__exportStar||function(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Dn(t,n,e)})(Gn,Fn);var Ln={},Jn={CustomError:void 0};class zn extends Error{get name(){return this.constructor.name}}Jn.CustomError=zn;var Mn={ExpectedError:void 0};const Zn=Jn;class Hn extends Zn.CustomError{}Mn.ExpectedError=Hn;var Yn={AssertionError:void 0};const Wn=Jn;class Kn extends Wn.CustomError{}Yn.AssertionError=Kn;var Qn={};Qn.normalize=void 0,Qn.normalize=function(n){var t;return{name:n.name,message:n.message,stack:null!==(t=n.stack)&&void 0!==t?t:null}};var Xn={refute:void 0};const $n=Mn;Xn.refute=function(n,t){if(n)throw new $n.ExpectedError(t)};var nt={assert:void 0};const tt=Yn;nt.assert=function(n,t){if(!n)throw new tt.AssertionError(t)},function(n){var t=_n&&_n.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=_n&&_n.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(Jn,n),e(Mn,n),e(Yn,n),e(Qn,n),e(Xn,n),e(nt,n)}(Ln);var et=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},rt=_n&&_n.__await||function(n){return this instanceof rt?(this.v=n,this):new rt(n)},ot=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof rt?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Nn.chunkAsync=void 0;const it=Vn,at=Ln;Nn.chunkAsync=function(n,t){return(0,at.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,at.assert)(t>0,"The parameter size must be greater than 0"),(0,it.go)((function(){return ot(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=et(n);!(i=yield rt(a.next())).done;){const n=i.value;o.push(n),o.length>=t&&(yield yield rt(o),o=[])}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield rt(r.call(a)))}finally{if(e)throw e.error}}o.length&&(yield yield rt(o))}))}))},qn.ChunkAsyncOperator=void 0;const ct=En,st=Cn,ut=Nn;class lt extends st.AsyncIterableOperatorBase{chunkAsync(...n){return(0,ct.applyChainingAsync)(this.subject,ut.chunkAsync,n)}}qn.ChunkAsyncOperator=lt;var ft={},yt={},dt={},pt={};function ht(n){return Array.isArray(n)}pt.isntEmptyArray=pt.isEmptyArray=pt.isntArray=pt.isArray=void 0,pt.isArray=ht,pt.isntArray=function(n){return!ht(n)},pt.isEmptyArray=function(n){return 0===n.length},pt.isntEmptyArray=function(n){return 0!==n.length};var vt={},bt={};function mt(n){return null===n}bt.isntNull=bt.isNull=void 0,bt.isNull=mt,bt.isntNull=function(n){return!mt(n)};var wt={};function At(n){return void 0===n}wt.isntUndefined=wt.isUndefined=void 0,wt.isUndefined=At,wt.isntUndefined=function(n){return!At(n)},vt.isntAsyncIterable=vt.isAsyncIterable=void 0;const St=bt,_t=wt;function Ot(n){return(0,St.isntNull)(n)&&(0,_t.isntUndefined)(n)&&"function"==typeof n[Symbol.asyncIterator]}vt.isAsyncIterable=Ot,vt.isntAsyncIterable=function(n){return!Ot(n)};var It={};function gt(n){return"bigint"==typeof n}It.isntBigInt=It.isBigInt=void 0,It.isBigInt=gt,It.isntBigInt=function(n){return!gt(n)};var xt={};function Pt(n){return"boolean"==typeof n}xt.isntBoolean=xt.isBoolean=void 0,xt.isBoolean=Pt,xt.isntBoolean=function(n){return!Pt(n)};var Tt={},Bt={};function jt(n){return"string"==typeof n}Bt.isntString=Bt.isString=void 0,Bt.isString=jt,Bt.isntString=function(n){return!jt(n)},Tt.isntChar=Tt.isChar=void 0;const Et=Bt;function kt(n){return(0,Et.isString)(n)&&1===n.length}Tt.isChar=kt,Tt.isntChar=function(n){return!kt(n)};var Ct={};function Rt(n){return n instanceof Date}Ct.isntDate=Ct.isDate=void 0,Ct.isDate=Rt,Ct.isntDate=function(n){return!Rt(n)};var Ut={};Ut.inEnum=void 0,Ut.inEnum=function(n,t){return Object.values(t).includes(n)};var Ft={};function Dt(n){return n instanceof Error}Ft.isntError=Ft.isError=void 0,Ft.isError=Dt,Ft.isntError=function(n){return!Dt(n)};var qt={};function Nt(n){return!n}qt.isntFalsy=qt.isFalsy=void 0,qt.isFalsy=Nt,qt.isntFalsy=function(n){return!Nt(n)};var Vt={};function Gt(n){return"function"==typeof n}Vt.isntFunction=Vt.isFunction=void 0,Vt.isFunction=Gt,Vt.isntFunction=function(n){return!Gt(n)};var Lt={};Lt.isntIterable=Lt.isIterable=void 0;const Jt=bt,zt=wt;function Mt(n){return(0,Jt.isntNull)(n)&&(0,zt.isntUndefined)(n)&&"function"==typeof n[Symbol.iterator]}Lt.isIterable=Mt,Lt.isntIterable=function(n){return!Mt(n)};var Zt={},Ht={};var Yt=Function.prototype,Wt=Object.prototype,Kt=Yt.toString,Qt=Wt.hasOwnProperty,Xt=Kt.call(Object),$t=Wt.toString,ne=function(n,t){return function(e){return n(t(e))}}(Object.getPrototypeOf,Object);var te=function(n){if(!function(n){return!!n&&"object"==typeof n}(n)||"[object Object]"!=$t.call(n)||function(n){var t=!1;if(null!=n&&"function"!=typeof n.toString)try{t=!!(n+"")}catch(n){}return t}(n))return!1;var t=ne(n);if(null===t)return!0;var e=Qt.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&Kt.call(e)==Xt},ee=_n&&_n.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Ht.isntEmptyObject=Ht.isEmptyObject=Ht.isntPlainObject=Ht.isPlainObject=Ht.isntObject=Ht.isObject=void 0;const re=ee(te);function oe(n){return null!==n&&"object"==typeof n}function ie(n){return(0,re.default)(n)}Ht.isObject=oe,Ht.isntObject=function(n){return!oe(n)},Ht.isPlainObject=ie,Ht.isntPlainObject=function(n){return!ie(n)},Ht.isEmptyObject=function(n){return 0===Object.keys(n).length},Ht.isntEmptyObject=function(n){return 0!==Object.keys(n).length};var ae={};function ce(n){return"number"==typeof n}ae.isntNumber=ae.isNumber=void 0,ae.isNumber=ce,ae.isntNumber=function(n){return!ce(n)},Zt.isntJsonRpcError=Zt.isJsonRpcError=Zt.isntJsonRpcSuccess=Zt.isJsonRpcSuccess=Zt.isntJsonRpcRequest=Zt.isJsonRpcRequest=Zt.isntJsonRpcNotification=Zt.isJsonRpcNotification=void 0;const se=pt,ue=Ht,le=Bt,fe=ae,ye=wt;function de(n){return(0,le.isString)(n)||(0,fe.isNumber)(n)}function pe(n){return(0,se.isArray)(n)||(0,ue.isObject)(n)}function he(n){return(0,ue.isPlainObject)(n)&&(0,le.isString)(n.jsonrpc)&&(0,le.isString)(n.method)&&(0,ye.isUndefined)(n.id)&&pe(n.params)}function ve(n){return(0,ue.isPlainObject)(n)&&(0,le.isString)(n.jsonrpc)&&(0,le.isString)(n.method)&&de(n.id)&&pe(n.params)}function be(n){return(0,ue.isPlainObject)(n)&&(0,le.isString)(n.jsonrpc)&&(0,le.isString)(n.id)&&"result"in n}function me(n){return(0,ue.isPlainObject)(n)&&(0,le.isString)(n.jsonrpc)&&de(n.id)&&function(n){return(0,ue.isPlainObject)(n)&&(0,fe.isNumber)(n.code)&&(0,le.isString)(n.message)&&((0,ye.isUndefined)(n.data)||(0,ue.isObject)(n.data))}(n.error)}Zt.isJsonRpcNotification=he,Zt.isntJsonRpcNotification=function(n){return!he(n)},Zt.isJsonRpcRequest=ve,Zt.isntJsonRpcRequest=function(n){return!ve(n)},Zt.isJsonRpcSuccess=be,Zt.isntJsonRpcSuccess=function(n){return!be(n)},Zt.isJsonRpcError=me,Zt.isntJsonRpcError=function(n){return!me(n)};var we={};we.isntJson=we.isJson=void 0,we.isJson=function(n){try{return JSON.stringify(n),!0}catch(n){return!1}},we.isntJson=function n(t){return!n()};var Ae={};Ae.isAbsoluteURL=void 0,Ae.isAbsoluteURL=function(n){try{return new URL(n),!0}catch(n){return!1}},function(n){var t=_n&&_n.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=_n&&_n.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(pt,n),e(vt,n),e(It,n),e(xt,n),e(Tt,n),e(Ct,n),e(Ut,n),e(Ft,n),e(qt,n),e(Vt,n),e(Lt,n),e(Zt,n),e(we,n),e(bt,n),e(ae,n),e(Ht,n),e(Bt,n),e(wt,n),e(Ae,n)}(dt);var Se=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},_e=_n&&_n.__await||function(n){return this instanceof _e?(this.v=n,this):new _e(n)},Oe=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof _e?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};yt.chunkByAsync=void 0;const Ie=dt;yt.chunkByAsync=function(n,t){return(0,Ie.isAsyncIterable)(n)?function(n){return Oe(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=Se(n);!(a=yield _e(c.next())).done;){const n=a.value;o.push(n),(yield _e(t(n,i)))&&(yield yield _e(o),o=[]),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield _e(r.call(c)))}finally{if(e)throw e.error}}o.length&&(yield yield _e(o))}))}(n):function(n){return Oe(this,arguments,(function*(){let e=[],r=0;for(const o of n)e.push(o),(yield _e(t(o,r)))&&(yield yield _e(e),e=[]),r++;e.length&&(yield yield _e(e))}))}(n)},ft.ChunkByAsyncOperator=void 0;const ge=En,xe=yt,Pe=Pn;class Te extends Pe.Subject{chunkByAsync(...n){return(0,ge.applyChainingAsync)(this.subject,xe.chunkByAsync,n)}}ft.ChunkByAsyncOperator=Te;var Be={},je={},Ee=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ke=_n&&_n.__await||function(n){return this instanceof ke?(this.v=n,this):new ke(n)},Ce=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ke?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};je.concatAsync=void 0;const Re=dt,Ue=Vn;je.concatAsync=function(n,...t){return(0,Ue.go)((function(){return Ce(this,arguments,(function*(){var e,r;for(const a of[n,...t])if((0,Re.isAsyncIterable)(a))try{for(var o,i=(e=void 0,Ee(a));!(o=yield ke(i.next())).done;){const n=o.value;yield yield ke(n)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(r=i.return)&&(yield ke(r.call(i)))}finally{if(e)throw e.error}}else for(const n of a)yield yield ke(n)}))}))},Be.ConcatAsyncOperator=void 0;const Fe=En,De=je,qe=Pn;class Ne extends qe.Subject{concatAsync(...n){return(0,Fe.applyChainingAsync)(this.subject,De.concatAsync,n)}}Be.ConcatAsyncOperator=Ne;var Ve={},Ge={},Le={},Je=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ze=_n&&_n.__await||function(n){return this instanceof ze?(this.v=n,this):new ze(n)},Me=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ze?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Le.copyIterable=Le.copyAsyncIterable=void 0,Le.copyAsyncIterable=function(n){return Me(this,arguments,(function*(){var t,e;try{for(var r,o=Je(n);!(r=yield ze(o.next())).done;){const n=r.value;yield yield ze(n)}}catch(n){t={error:n}}finally{try{r&&!r.done&&(e=o.return)&&(yield ze(e.call(o)))}finally{if(t)throw t.error}}}))},Le.copyIterable=function*(n){for(const t of n)yield t};var Ze=_n&&_n.__await||function(n){return this instanceof Ze?(this.v=n,this):new Ze(n)},He=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Ze?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ge.dropAsync=void 0;const Ye=Vn,We=Le,Ke=Ln;Ge.dropAsync=function(n,t){return(0,Ke.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ke.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,We.copyAsyncIterable)(n):(0,Ye.go)((function(){var e;return He(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n;for(;!(({value:n,done:o}=yield Ze(r.next())),o||t<=0);)t--;for(;!o;)yield yield Ze(n),({value:n,done:o}=yield Ze(r.next()))}finally{o||(yield Ze(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))},Ve.DropAsyncOperator=void 0;const Qe=En,Xe=Cn,$e=Ge;class nr extends Xe.AsyncIterableOperatorBase{dropAsync(...n){return(0,Qe.applyChainingAsync)(this.subject,$e.dropAsync,n)}}Ve.DropAsyncOperator=nr;var tr={},er={},rr=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},or=_n&&_n.__await||function(n){return this instanceof or?(this.v=n,this):new or(n)},ir=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof or?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},ar=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};er.dropRightAsync=void 0;const cr=Vn,sr=Le,ur=Ln;function lr(n){var t,e,r,o;return rr(this,void 0,void 0,(function*(){const i=[];try{for(t=ar(n);!(e=yield t.next()).done;){const n=e.value;i.push(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}er.dropRightAsync=function(n,t){return(0,ur.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,ur.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,sr.copyAsyncIterable)(n):(0,cr.go)((function(){return ir(this,arguments,(function*(){const e=(yield or(lr(n))).slice(0,-t);for(const n of e)yield yield or(n)}))}))},tr.DropRightAsyncOperator=void 0;const fr=En,yr=Cn,dr=er;class pr extends yr.AsyncIterableOperatorBase{dropRightAsync(...n){return(0,fr.applyChainingAsync)(this.subject,dr.dropRightAsync,n)}}tr.DropRightAsyncOperator=pr;var hr={},vr={},br=_n&&_n.__await||function(n){return this instanceof br?(this.v=n,this):new br(n)},mr=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof br?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};vr.dropUntilAsync=void 0;const wr=dt;vr.dropUntilAsync=function(n,t){return(0,wr.isAsyncIterable)(n)?function(n){var e;return mr(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=yield br(r.next())),o||(yield br(t(n,i++)))););for(;!o;)yield yield br(n),({value:n,done:o}=yield br(r.next()))}finally{o||(yield br(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}(n):function(n){var e;return mr(this,arguments,(function*(){const r=n[Symbol.iterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=r.next()),o||(yield br(t(n,i++)))););for(;!o;)yield yield br(n),({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))}(n)},hr.DropUntilAsyncOperator=void 0;const Ar=En,Sr=Pn,_r=vr;class Or extends Sr.Subject{dropUntilAsync(...n){return(0,Ar.applyChainingAsync)(this.subject,_r.dropUntilAsync,n)}}hr.DropUntilAsyncOperator=Or;var Ir={},gr={},xr=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Pr=_n&&_n.__await||function(n){return this instanceof Pr?(this.v=n,this):new Pr(n)},Tr=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Pr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};gr.filterAsync=void 0;const Br=dt;gr.filterAsync=function(n,t){return(0,Br.isAsyncIterable)(n)?function(n){return Tr(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=xr(n);!(i=yield Pr(a.next())).done;){const n=i.value;(yield Pr(t(n,o)))&&(yield yield Pr(n)),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Pr(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return Tr(this,arguments,(function*(){let e=0;for(const r of n)(yield Pr(t(r,e)))&&(yield yield Pr(r)),e++}))}(n)},Ir.FilterAsyncOperator=void 0;const jr=En,Er=Pn,kr=gr;class Cr extends Er.Subject{filterAsync(...n){return(0,jr.applyChainingAsync)(this.subject,kr.filterAsync,n)}}Ir.FilterAsyncOperator=Cr;var Rr={},Ur={},Fr={},Dr={},qr=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Nr=_n&&_n.__await||function(n){return this instanceof Nr?(this.v=n,this):new Nr(n)},Vr=_n&&_n.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:Nr(n[r](t)),done:"return"===r}:o?o(t):t}:o}},Gr=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Nr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Dr.flattenByAsync=void 0;const Lr=dt;function Jr(n){return(0,Lr.isIterable)(n)&&(0,Lr.isntChar)(n)}Dr.flattenByAsync=function(n,t){return(0,Lr.isAsyncIterable)(n)?function(n){return Gr(this,arguments,(function*(){var r,o;const i=1;try{for(var a,c=qr(n);!(a=yield Nr(c.next())).done;){const n=a.value;Jr(n)&&(yield Nr(t(n,i)))?yield Nr(yield*Vr(qr(e(n,i+1)))):yield yield Nr(n)}}catch(n){r={error:n}}finally{try{a&&!a.done&&(o=c.return)&&(yield Nr(o.call(c)))}finally{if(r)throw r.error}}}))}(n):function(n){return e(n,1)}(n);function e(n,r){return Gr(this,arguments,(function*(){for(const o of n)Jr(o)&&(yield Nr(t(o,r)))?yield Nr(yield*Vr(qr(e(o,r+1)))):yield yield Nr(o)}))}},Fr.flattenDeepAsync=void 0;const zr=Dr,Mr=Ln;Fr.flattenDeepAsync=function(n,t=1/0){return(0,Mr.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,Mr.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,zr.flattenByAsync)(n,((n,e)=>e<=t))},Ur.flattenAsync=void 0;const Zr=Fr;Ur.flattenAsync=function(n){return(0,Zr.flattenDeepAsync)(n,1)},Rr.FlattenAsyncOperator=void 0;const Hr=En,Yr=Cn,Wr=Ur;class Kr extends Yr.AsyncIterableOperatorBase{flattenAsync(...n){return(0,Hr.applyChainingAsync)(this.subject,Wr.flattenAsync,n)}}Rr.FlattenAsyncOperator=Kr;var Qr={FlattenByAsync:void 0};const Xr=En,$r=Pn,no=Dr;class to extends $r.Subject{flattenByAsync(...n){return(0,Xr.applyChainingAsync)(this.subject,no.flattenByAsync,n)}}Qr.FlattenByAsync=to;var eo={FlattenDeepAsyncOperator:void 0};const ro=En,oo=Cn,io=Fr;class ao extends oo.AsyncIterableOperatorBase{flattenDeepAsync(...n){return(0,ro.applyChainingAsync)(this.subject,io.flattenDeepAsync,n)}}eo.FlattenDeepAsyncOperator=ao;var co={},so={},uo=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},lo=_n&&_n.__await||function(n){return this instanceof lo?(this.v=n,this):new lo(n)},fo=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof lo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};so.mapAsync=void 0;const yo=dt;so.mapAsync=function(n,t){return(0,yo.isAsyncIterable)(n)?function(n){return fo(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=uo(n);!(i=yield lo(a.next())).done;){const n=i.value;yield yield lo(yield lo(t(n,o))),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield lo(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return fo(this,arguments,(function*(){let e=0;for(const r of n)yield yield lo(yield lo(t(r,e))),e++}))}(n)},co.MapAsyncOperator=void 0;const po=En,ho=Pn,vo=so;class bo extends ho.Subject{mapAsync(...n){return(0,po.applyChainingAsync)(this.subject,vo.mapAsync,n)}}co.MapAsyncOperator=bo;var mo={},wo={},Ao=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},So=_n&&_n.__await||function(n){return this instanceof So?(this.v=n,this):new So(n)},_o=_n&&_n.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:So(n[r](t)),done:"return"===r}:o?o(t):t}:o}},Oo=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof So?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};wo.repeatAsync=void 0;const Io=Vn,go=Ln;wo.repeatAsync=function(n,t){return(0,go.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,go.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,Io.go)((function(){return Oo(this,arguments,(function*(){var e,r;const o=[];if(t>0){try{for(var i,a=Ao(n);!(i=yield So(a.next())).done;){const n=i.value;yield yield So(n),o.push(n)}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield So(r.call(a)))}finally{if(e)throw e.error}}t--}for(;t>0;)yield So(yield*_o(Ao(o))),t--}))}))},mo.RepeatAsyncOperator=void 0;const xo=En,Po=Cn,To=wo;class Bo extends Po.AsyncIterableOperatorBase{repeatAsync(...n){return(0,xo.applyChainingAsync)(this.subject,To.repeatAsync,n)}}mo.RepeatAsyncOperator=Bo;var jo={},Eo={},ko=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Co=_n&&_n.__await||function(n){return this instanceof Co?(this.v=n,this):new Co(n)},Ro=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Co?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Eo.sliceAsync=void 0;const Uo=Vn,Fo=Ln;Eo.sliceAsync=function(n,t,e=1/0){return(0,Fo.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Fo.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Fo.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Fo.assert)(e>=t,"The parameter end must be greater than or equal to start"),(0,Uo.go)((function(){return Ro(this,arguments,(function*(){var r,o;let i=0;try{for(var a,c=ko(n);!(a=yield Co(c.next())).done;){const n=a.value;if(i>=e)break;i>=t&&(yield yield Co(n)),i++}}catch(n){r={error:n}}finally{try{a&&!a.done&&(o=c.return)&&(yield Co(o.call(c)))}finally{if(r)throw r.error}}}))}))},jo.SliceAsyncOperator=void 0;const Do=En,qo=Cn,No=Eo;class Vo extends qo.AsyncIterableOperatorBase{sliceAsync(...n){return(0,Do.applyChainingAsync)(this.subject,No.sliceAsync,n)}}jo.SliceAsyncOperator=Vo;var Go={},Lo={},Jo=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},zo=_n&&_n.__await||function(n){return this instanceof zo?(this.v=n,this):new zo(n)},Mo=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof zo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Lo.splitAsync=void 0,Lo.splitAsync=function(n,t){return Mo(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=Jo(n);!(i=yield zo(a.next())).done;){const n=i.value;n===t?(yield yield zo(o),o=[]):o.push(n)}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield zo(r.call(a)))}finally{if(e)throw e.error}}yield yield zo(o)}))},Go.SplitAsyncOperator=void 0;const Zo=En,Ho=Cn,Yo=Lo;class Wo extends Ho.AsyncIterableOperatorBase{splitAsync(...n){return(0,Zo.applyChainingAsync)(this.subject,Yo.splitAsync,n)}}Go.SplitAsyncOperator=Wo;var Ko={},Qo={},Xo=_n&&_n.__await||function(n){return this instanceof Xo?(this.v=n,this):new Xo(n)},$o=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Xo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},ni=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Qo.splitByAsync=void 0;const ti=dt;Qo.splitByAsync=function(n,t){return(0,ti.isAsyncIterable)(n)?function(n){return $o(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=ni(n);!(a=yield Xo(c.next())).done;){const n=a.value;(yield Xo(t(n,i)))?(yield yield Xo(o),o=[]):o.push(n),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield Xo(r.call(c)))}finally{if(e)throw e.error}}yield yield Xo(o)}))}(n):function(n){return $o(this,arguments,(function*(){let e=[],r=0;for(const o of n)(yield Xo(t(o,r)))?(yield yield Xo(e),e=[]):e.push(o),r++;yield yield Xo(e)}))}(n)},Ko.SplitByAsyncOperator=void 0;const ei=En,ri=Pn,oi=Qo;class ii extends ri.Subject{splitByAsync(...n){return(0,ei.applyChainingAsync)(this.subject,oi.splitByAsync,n)}}Ko.SplitByAsyncOperator=ii;var ai={},ci={},si=_n&&_n.__await||function(n){return this instanceof si?(this.v=n,this):new si(n)},ui=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},li=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof si?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ci.takeAsync=void 0;const fi=Vn,yi=Ln;ci.takeAsync=function(n,t){return(0,yi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,yi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,fi.go)((function(){return li(this,arguments,(function*(){var e,r;if(0===t)return yield si(void 0);try{for(var o,i=ui(n);!(o=yield si(i.next())).done;){const n=o.value;if(yield yield si(n),0===--t)break}}catch(n){e={error:n}}finally{try{o&&!o.done&&(r=i.return)&&(yield si(r.call(i)))}finally{if(e)throw e.error}}}))}))},ai.TakeAsyncOperator=void 0;const di=En,pi=Cn,hi=ci;class vi extends pi.AsyncIterableOperatorBase{takeAsync(...n){return(0,di.applyChainingAsync)(this.subject,hi.takeAsync,n)}}ai.TakeAsyncOperator=vi;var bi={},mi={},wi=_n&&_n.__await||function(n){return this instanceof wi?(this.v=n,this):new wi(n)},Ai=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Si=_n&&_n.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:wi(n[r](t)),done:"return"===r}:o?o(t):t}:o}},_i=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof wi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};mi.takeRightAsync=void 0;const Oi=Vn,Ii=Ln;mi.takeRightAsync=function(n,t){return(0,Ii.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ii.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Oi.go)((function(){var e;return _i(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=yield wi(r.next())),!o;)n.push(i),n.length>t&&n.shift();yield wi(yield*Si(Ai(n)))}finally{o||(yield wi(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))},bi.TakeRightAsyncOperator=void 0;const gi=En,xi=Cn,Pi=mi;class Ti extends xi.AsyncIterableOperatorBase{takeRightAsync(...n){return(0,gi.applyChainingAsync)(this.subject,Pi.takeRightAsync,n)}}bi.TakeRightAsyncOperator=Ti;var Bi={},ji={},Ei=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ki=_n&&_n.__await||function(n){return this instanceof ki?(this.v=n,this):new ki(n)},Ci=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ki?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ji.takeUntilAsync=void 0;const Ri=dt;ji.takeUntilAsync=function(n,t){return(0,Ri.isAsyncIterable)(n)?function(n){return Ci(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Ei(n);!(i=yield ki(a.next())).done;){const n=i.value;if(yield ki(t(n,o)))break;yield yield ki(n),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield ki(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return Ci(this,arguments,(function*(){let e=0;for(const r of n){if(yield ki(t(r,e)))break;yield yield ki(r),e++}}))}(n)},Bi.TakeUntilAsyncOperator=void 0;const Ui=En,Fi=Pn,Di=ji;class qi extends Fi.Subject{takeUntilAsync(...n){return(0,Ui.applyChainingAsync)(this.subject,Di.takeUntilAsync,n)}}Bi.TakeUntilAsyncOperator=qi;var Ni={},Vi={},Gi=_n&&_n.__await||function(n){return this instanceof Gi?(this.v=n,this):new Gi(n)},Li=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Gi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},Ji=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Vi.tapAsync=void 0;const zi=dt;Vi.tapAsync=function(n,t){return(0,zi.isAsyncIterable)(n)?function(n){return Li(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Ji(n);!(i=yield Gi(a.next())).done;){const n=i.value;yield Gi(t(n,o)),yield yield Gi(n),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Gi(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return Li(this,arguments,(function*(){let e=0;for(const r of n)yield Gi(t(r,e)),yield yield Gi(r),e++}))}(n)},Ni.TapAsyncOperator=void 0;const Mi=En,Zi=Pn,Hi=Vi;class Yi extends Zi.Subject{tapAsync(...n){return(0,Mi.applyChainingAsync)(this.subject,Hi.tapAsync,n)}}Ni.TapAsyncOperator=Yi;var Wi={},Ki={},Qi=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Xi=_n&&_n.__await||function(n){return this instanceof Xi?(this.v=n,this):new Xi(n)},$i=_n&&_n.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:Xi(n[r](t)),done:"return"===r}:o?o(t):t}:o}},na=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Xi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ki.transformAsync=void 0,Ki.transformAsync=function(n,t){return na(this,arguments,(function*(){yield Xi(yield*$i(Qi(t(n))))}))},Wi.TransformAsyncOperator=void 0;const ta=En,ea=Pn,ra=Ki;class oa extends ea.Subject{transformAsync(...n){return(0,ta.applyChainingAsync)(this.subject,ra.transformAsync,n)}}Wi.TransformAsyncOperator=oa;var ia={},aa={},ca=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},sa=_n&&_n.__await||function(n){return this instanceof sa?(this.v=n,this):new sa(n)},ua=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof sa?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};aa.uniqAsync=void 0,aa.uniqAsync=function(n){return ua(this,arguments,(function*(){var t,e;const r=new Set;try{for(var o,i=ca(n);!(o=yield sa(i.next())).done;){const n=o.value;r.has(n)||(yield yield sa(n),r.add(n))}}catch(n){t={error:n}}finally{try{o&&!o.done&&(e=i.return)&&(yield sa(e.call(i)))}finally{if(t)throw t.error}}}))},ia.UniqAsyncOperator=void 0;const la=En,fa=Cn,ya=aa;class da extends fa.AsyncIterableOperatorBase{uniqAsync(...n){return(0,la.applyChainingAsync)(this.subject,ya.uniqAsync,n)}}ia.UniqAsyncOperator=da;var pa={},ha={},va=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ba=_n&&_n.__await||function(n){return this instanceof ba?(this.v=n,this):new ba(n)},ma=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ba?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ha.uniqByAsync=void 0;const wa=dt;ha.uniqByAsync=function(n,t){return(0,wa.isAsyncIterable)(n)?function(n){return ma(this,arguments,(function*(){var e,r;const o=new Set;let i=0;try{for(var a,c=va(n);!(a=yield ba(c.next())).done;){const n=a.value,e=yield ba(t(n,i));o.has(e)||(yield yield ba(n),o.add(e)),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield ba(r.call(c)))}finally{if(e)throw e.error}}}))}(n):function(n){return ma(this,arguments,(function*(){const e=new Set;let r=0;for(const o of n){const n=yield ba(t(o,r));e.has(n)||(yield yield ba(o),e.add(n)),r++}}))}(n)},pa.UniqByAsyncOperator=void 0;const Aa=En,Sa=Pn,_a=ha;class Oa extends Sa.Subject{uniqByAsync(...n){return(0,Aa.applyChainingAsync)(this.subject,_a.uniqByAsync,n)}}pa.UniqByAsyncOperator=Oa;var Ia={},ga={},xa=_n&&_n.__await||function(n){return this instanceof xa?(this.v=n,this):new xa(n)},Pa=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof xa?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ga.zipAsync=void 0;const Ta=dt;var Ba;!function(n){n[n.Sync=0]="Sync",n[n.Async=1]="Async"}(Ba||(Ba={})),ga.zipAsync=function(n,...t){return function(...n){var t,e,r,o;return Pa(this,arguments,(function*(){const i=n.length,a=n.map((n=>(0,Ta.isAsyncIterable)(n)?[Ba.Async,n[Symbol.asyncIterator]()]:[Ba.Sync,n[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const n=new Array(i);for(let t=0;t<i;t++){const[e,r]=a[t];let o;if(o=e===Ba.Async?yield xa(r.next()):r.next(),o.done)return c[t]=!0,yield xa(void 0);n[t]=o.value}yield yield xa(n)}}finally{const n=a.filter(((n,t)=>!c[t]));for(const[i,a]of n)i===Ba.Async?yield xa(null===(e=(t=a).return)||void 0===e?void 0:e.call(t)):null===(o=(r=a).return)||void 0===o||o.call(r)}}))}(n,...t)},Ia.ZipAsyncOperator=void 0;const ja=En,Ea=Pn,ka=ga;class Ca extends Ea.Subject{zipAsync(...n){return(0,ja.applyChainingAsync)(this.subject,ka.zipAsync,n)}}Ia.ZipAsyncOperator=Ca;var Ra={},Ua={};Ua.consume=void 0,Ua.consume=function(n,t){return t(n)},Ra.ConsumeOperator=void 0;const Fa=En,Da=Ua,qa=Pn;class Na extends qa.Subject{consume(...n){return(0,Fa.applyBinding)(this.subject,Da.consume,n)}}Ra.ConsumeOperator=Na;var Va={},Ga={},La=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Ja=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Ga.eachAsync=void 0;const za=dt;Ga.eachAsync=function(n,t){return(0,za.isAsyncIterable)(n)?function(n){var e,r,o,i;return La(this,void 0,void 0,(function*(){let a=0;try{for(e=Ja(n);!(r=yield e.next()).done;){const n=r.value;yield t(n,a),a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(n):function(n){return La(this,void 0,void 0,(function*(){let e=0;for(const r of n)yield t(r,e),e++}))}(n)},Va.EachAsyncOperator=void 0;const Ma=En,Za=Pn,Ha=Ga;class Ya extends Za.Subject{eachAsync(...n){return(0,Ma.applyBinding)(this.subject,Ha.eachAsync,n)}}Va.EachAsyncOperator=Ya;var Wa={},Ka={},Qa=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Xa=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Ka.everyAsync=void 0;const $a=dt;Ka.everyAsync=function(n,t){return(0,$a.isAsyncIterable)(n)?function(n){var e,r,o,i;return Qa(this,void 0,void 0,(function*(){let a=0;try{for(e=Xa(n);!(r=yield e.next()).done;){const n=r.value;if(!(yield t(n,a)))return!1;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!0}))}(n):function(n){return Qa(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(!(yield t(r,e)))return!1;e++}return!0}))}(n)},Wa.EveryAsyncOperator=void 0;const nc=En,tc=Pn,ec=Ka;class rc extends tc.Subject{everyAsync(...n){return(0,nc.applyBinding)(this.subject,ec.everyAsync,n)}}Wa.EveryAsyncOperator=rc;var oc={},ic={},ac=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},cc=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};ic.findAsync=void 0;const sc=dt;ic.findAsync=function(n,t){return(0,sc.isAsyncIterable)(n)?function(n){var e,r,o,i;return ac(this,void 0,void 0,(function*(){let a=0;try{for(e=cc(n);!(r=yield e.next()).done;){const n=r.value;if(yield t(n,a))return n;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(n):function(n){return ac(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(yield t(r,e))return r;e++}}))}(n)},oc.FindAsyncOperator=void 0;const uc=En,lc=Pn,fc=ic;class yc extends lc.Subject{findAsync(...n){return(0,uc.applyBinding)(this.subject,fc.findAsync,n)}}oc.FindAsyncOperator=yc;var dc={},pc={},hc=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},vc=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};pc.firstAsync=void 0,pc.firstAsync=function(n){var t,e,r,o;return hc(this,void 0,void 0,(function*(){try{for(t=vc(n);!(e=yield t.next()).done;){return e.value}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}}))},dc.FirstAsyncOperator=void 0;const bc=En,mc=Cn,wc=pc;class Ac extends mc.AsyncIterableOperatorBase{firstAsync(...n){return(0,bc.applyBinding)(this.subject,wc.firstAsync,n)}}dc.FirstAsyncOperator=Ac;var Sc={},_c={},Oc=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Ic=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};_c.includesAsync=void 0,_c.includesAsync=function(n,t){var e,r,o,i;return Oc(this,void 0,void 0,(function*(){try{for(e=Ic(n);!(r=yield e.next()).done;){if(r.value===t)return!0}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))},Sc.IncludesAsyncOperator=void 0;const gc=En,xc=Cn,Pc=_c;class Tc extends xc.AsyncIterableOperatorBase{includesAsync(...n){return(0,gc.applyBinding)(this.subject,Pc.includesAsync,n)}}Sc.IncludesAsyncOperator=Tc;var Bc={},jc={},Ec=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},kc=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};jc.matchAsync=void 0,jc.matchAsync=function(n,t){var e,r,o,i;return Ec(this,void 0,void 0,(function*(){const a=t.length;let c=0;try{for(e=kc(n);!(r=yield e.next()).done;){if(r.value===t[c]&&c++,c===a)return!0}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))},Bc.MatchAsyncOperator=void 0;const Cc=En,Rc=Cn,Uc=jc;class Fc extends Rc.AsyncIterableOperatorBase{matchAsync(...n){return(0,Cc.applyBinding)(this.subject,Uc.matchAsync,n)}}Bc.MatchAsyncOperator=Fc;var Dc={},qc={},Nc=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Vc=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};qc.reduceAsync=void 0;const Gc=dt;qc.reduceAsync=function(n,t,e){return(0,Gc.isUndefined)(e)?function(n,t){return(0,Gc.isAsyncIterable)(n)?e(n):r(n);function e(n){var e;return Nc(this,void 0,void 0,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n,a=yield i(r),c=1;for(;({value:n,done:o}=yield r.next()),!o;)a=yield t(a,n,c++);return a}finally{o||(yield null===(e=r.return)||void 0===e?void 0:e.call(r))}function i(n){return Nc(this,void 0,void 0,(function*(){const t=yield n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}))}}))}function r(n){var e;return Nc(this,void 0,void 0,(function*(){const r=n[Symbol.iterator]();let o;try{let n,a=i(r),c=1;for(;({value:n,done:o}=r.next()),!o;)a=yield t(a,n,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(n){const t=n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}))}}(n,t):function(n,t,e){return(0,Gc.isAsyncIterable)(n)?o(n):r(n);function r(n){return Nc(this,void 0,void 0,(function*(){let r=e,o=0;for(const e of n)r=yield t(r,e,o++);return r}))}function o(n){var r,o,i,a;return Nc(this,void 0,void 0,(function*(){let c=e,s=0;try{for(r=Vc(n);!(o=yield r.next()).done;){const n=o.value;c=yield t(c,n,s++)}}catch(n){i={error:n}}finally{try{o&&!o.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}return c}))}}(n,t,e)},Dc.ReduceAsyncOperator=void 0;const Lc=En,Jc=Pn,zc=qc;class Mc extends Jc.Subject{reduceAsync(...n){return(0,Lc.applyBinding)(this.subject,zc.reduceAsync,n)}}Dc.ReduceAsyncOperator=Mc;var Zc={},Hc={},Yc=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Wc=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Hc.someAsync=void 0;const Kc=dt;Hc.someAsync=function(n,t){return(0,Kc.isAsyncIterable)(n)?function(n){var e,r,o,i;return Yc(this,void 0,void 0,(function*(){let a=0;try{for(e=Wc(n);!(r=yield e.next()).done;){const n=r.value;if(yield t(n,a))return!0;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))}(n):function(n){return Yc(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(yield t(r,e))return!0;e++}return!1}))}(n)},Zc.SomeAsyncOperator=void 0;const Qc=En,Xc=Pn,$c=Hc;class ns extends Xc.Subject{someAsync(...n){return(0,Qc.applyBinding)(this.subject,$c.someAsync,n)}}Zc.SomeAsyncOperator=ns;var ts={},es={},rs=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))};es.lastAsync=void 0,es.lastAsync=function(n){var t;return rs(this,void 0,void 0,(function*(){const e=n[Symbol.asyncIterator]();let r;try{let n,o;for(;({value:n,done:r}=yield e.next()),!r;)o=n;return o}finally{r||(yield null===(t=e.return)||void 0===t?void 0:t.call(e))}}))},ts.LastAsyncOperator=void 0;const os=En,is=Cn,as=es;class cs extends is.AsyncIterableOperatorBase{lastAsync(...n){return(0,os.applyBinding)(this.subject,as.lastAsync,n)}}ts.LastAsyncOperator=cs;var ss={},us={},ls=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},fs=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};us.toArrayAsync=void 0;const ys=Ua;us.toArrayAsync=function(n){return(0,ys.consume)(n,(n=>{var t,e;return ls(this,void 0,void 0,(function*(){var r,o;const i=[];try{for(t=fs(n);!(e=yield t.next()).done;){const n=e.value;i.push(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}))},ss.ToArrayAsyncOperator=void 0;const ds=En,ps=Cn,hs=us;class vs extends ps.AsyncIterableOperatorBase{toArrayAsync(...n){return(0,ds.applyBinding)(this.subject,hs.toArrayAsync,n)}}ss.ToArrayAsyncOperator=vs;var bs={},ms={},ws=_n&&_n.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},As=_n&&_n.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};ms.toSetAsync=void 0;const Ss=Ua;ms.toSetAsync=function(n){return(0,Ss.consume)(n,(n=>{var t,e;return ws(this,void 0,void 0,(function*(){var r,o;const i=new Set;try{for(t=As(n);!(e=yield t.next()).done;){const n=e.value;i.add(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}))},bs.ToSetAsyncOperator=void 0;const _s=En,Os=Cn,Is=ms;class gs extends Os.AsyncIterableOperatorBase{toSetAsync(...n){return(0,_s.applyBinding)(this.subject,Is.toSetAsync,n)}}bs.ToSetAsyncOperator=gs,kn.AsyncIterableOperator=void 0;const xs=gn,Ps=Cn,Ts=qn,Bs=ft,js=Be,Es=Ve,ks=tr,Cs=hr,Rs=Ir,Us=Rr,Fs=Qr,Ds=eo,qs=co,Ns=mo,Vs=jo,Gs=Go,Ls=Ko,Js=ai,zs=bi,Ms=Bi,Zs=Ni,Hs=Wi,Ys=ia,Ws=pa,Ks=Ia,Qs=Ra,Xs=Va,$s=Wa,nu=oc,tu=dc,eu=Sc,ru=Bc,ou=Dc,iu=Zc,au=ts,cu=ss,su=bs;class uu extends Ps.AsyncIterableOperatorBase{}kn.AsyncIterableOperator=uu,(0,xs.mixinDecorators)(uu,[Ts.ChunkAsyncOperator,Bs.ChunkByAsyncOperator,js.ConcatAsyncOperator,Es.DropAsyncOperator,ks.DropRightAsyncOperator,Cs.DropUntilAsyncOperator,Rs.FilterAsyncOperator,Us.FlattenAsyncOperator,Fs.FlattenByAsync,Ds.FlattenDeepAsyncOperator,qs.MapAsyncOperator,Ns.RepeatAsyncOperator,Vs.SliceAsyncOperator,Gs.SplitAsyncOperator,Ls.SplitByAsyncOperator,Js.TakeAsyncOperator,zs.TakeRightAsyncOperator,Ms.TakeUntilAsyncOperator,Zs.TapAsyncOperator,Hs.TransformAsyncOperator,Ys.UniqAsyncOperator,Ws.UniqByAsyncOperator,Ks.ZipAsyncOperator,Qs.ConsumeOperator,Xs.EachAsyncOperator,$s.EveryAsyncOperator,nu.FindAsyncOperator,tu.FirstAsyncOperator,eu.IncludesAsyncOperator,ru.MatchAsyncOperator,ou.ReduceAsyncOperator,iu.SomeAsyncOperator,au.LastAsyncOperator,cu.ToArrayAsyncOperator,su.ToSetAsyncOperator]),En.applyChainingAsync=En.applyChaining=En.applyBinding=En.getPipelineProxy=void 0;const lu=In,fu=kn;En.getPipelineProxy=function(n,t){return(...e)=>n(...e,...t)},En.applyBinding=function(n,t,e){return t(n,...e)},En.applyChaining=function(n,t,e){return new lu.IterableOperator(t(n,...e))},En.applyChainingAsync=function(n,t,e){return new fu.AsyncIterableOperator(t(n,...e))};var yu={};yu.chunkBy=void 0,yu.chunkBy=function*(n,t){let e=[],r=0;for(const o of n)e.push(o),t(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)},jn.ChunkByOperator=void 0;const du=En,pu=yu,hu=xn;class vu extends hu.IterableOperatorBase{chunkBy(...n){return(0,du.applyChaining)(this.subject,pu.chunkBy,n)}}jn.ChunkByOperator=vu;var bu={},mu={chunk:void 0};const wu=Vn,Au=Ln;mu.chunk=function(n,t){return(0,Au.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,Au.assert)(t>0,"The parameter size must be greater than 0"),(0,wu.go)((function*(){let e=[];for(const r of n)e.push(r),e.length>=t&&(yield e,e=[]);e.length&&(yield e)}))},bu.ChunkOperator=void 0;const Su=En,_u=mu,Ou=xn;class Iu extends Ou.IterableOperatorBase{chunk(...n){return(0,Su.applyChaining)(this.subject,_u.chunk,n)}}bu.ChunkOperator=Iu;var gu={},xu={concat:void 0};const Pu=Vn;xu.concat=function(n,...t){return(0,Pu.go)((function*(){for(const e of[n,...t])yield*e}))},gu.ConcatOperator=void 0;const Tu=En,Bu=xu,ju=xn;class Eu extends ju.IterableOperatorBase{concat(...n){return(0,Tu.applyChaining)(this.subject,Bu.concat,n)}}gu.ConcatOperator=Eu;var ku={},Cu={dropRight:void 0};const Ru=Vn,Uu=Le,Fu=Ln;Cu.dropRight=function(n,t){return(0,Fu.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Fu.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Uu.copyIterable)(n):(0,Ru.go)((function*(){const e=Array.from(n);yield*e.slice(0,-t)}))},ku.DropRightOperator=void 0;const Du=En,qu=Cu,Nu=xn;class Vu extends Nu.IterableOperatorBase{dropRight(...n){return(0,Du.applyChaining)(this.subject,qu.dropRight,n)}}ku.DropRightOperator=Vu;var Gu={},Lu={};Lu.dropUntil=void 0,Lu.dropUntil=function*(n,t){var e;const r=n[Symbol.iterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=r.next()),o||t(n,i++)););for(;!o;)yield n,({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}},Gu.DropUntilOperator=void 0;const Ju=En,zu=Lu,Mu=xn;class Zu extends Mu.IterableOperatorBase{dropUntil(...n){return(0,Ju.applyChaining)(this.subject,zu.dropUntil,n)}}Gu.DropUntilOperator=Zu;var Hu={},Yu={drop:void 0};const Wu=Vn,Ku=Le,Qu=Ln;Yu.drop=function(n,t){return(0,Qu.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Qu.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Ku.copyIterable)(n):(0,Wu.go)((function*(){var e;const r=n[Symbol.iterator]();let o;try{let n;for(;!(({value:n,done:o}=r.next()),o||t<=0);)t--;for(;!o;)yield n,({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))},Hu.DropOperator=void 0;const Xu=En,$u=Yu,nl=xn;class tl extends nl.IterableOperatorBase{drop(...n){return(0,Xu.applyChaining)(this.subject,$u.drop,n)}}Hu.DropOperator=tl;var el={},rl={};rl.filter=void 0,rl.filter=function*(n,t){let e=0;for(const r of n)t(r,e)&&(yield r),e++},el.FilterOperator=void 0;const ol=En,il=rl,al=xn;class cl extends al.IterableOperatorBase{filter(...n){return(0,ol.applyChaining)(this.subject,il.filter,n)}}el.FilterOperator=cl;var sl={},ul={flattenBy:void 0};const ll=dt;ul.flattenBy=function(n,t){return function*n(e,r){for(const i of e)(0,ll.isIterable)(o=i)&&(0,ll.isntChar)(o)&&t(i,r)?yield*n(i,r+1):yield i;var o}(n,1)},sl.FlattenByOperator=void 0;const fl=En,yl=ul,dl=xn;class pl extends dl.IterableOperatorBase{flattenBy(...n){return(0,fl.applyChaining)(this.subject,yl.flattenBy,n)}}sl.FlattenByOperator=pl;var hl={},vl={flattenDeep:void 0};const bl=ul,ml=Ln;vl.flattenDeep=function(n,t=1/0){return(0,ml.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,ml.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,bl.flattenBy)(n,((n,e)=>e<=t))},hl.FlattenDeepOperator=void 0;const wl=En,Al=vl,Sl=xn;class _l extends Sl.IterableOperatorBase{flattenDeep(...n){return(0,wl.applyChaining)(this.subject,Al.flattenDeep,n)}}hl.FlattenDeepOperator=_l;var Ol={},Il={flatten:void 0};const gl=vl;Il.flatten=function(n){return(0,gl.flattenDeep)(n,1)},Ol.FlattenOperator=void 0;const xl=En,Pl=Il,Tl=xn;class Bl extends Tl.IterableOperatorBase{flatten(...n){return(0,xl.applyChaining)(this.subject,Pl.flatten,n)}}Ol.FlattenOperator=Bl;var jl={},El={};El.map=void 0,El.map=function*(n,t){let e=0;for(const r of n)yield t(r,e),e++},jl.MapOperator=void 0;const kl=En,Cl=El,Rl=xn;class Ul extends Rl.IterableOperatorBase{map(...n){return(0,kl.applyChaining)(this.subject,Cl.map,n)}}jl.MapOperator=Ul;var Fl={},Dl={repeat:void 0};const ql=Vn,Nl=Ln;Dl.repeat=function(n,t){return(0,Nl.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Nl.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,ql.go)((function*(){const e=[];if(t>0){for(const t of n)yield t,e.push(t);t--}for(;t>0;)yield*e,t--}))},Fl.RepeatOperator=void 0;const Vl=En,Gl=Dl,Ll=xn;class Jl extends Ll.IterableOperatorBase{repeat(...n){return(0,Vl.applyChaining)(this.subject,Gl.repeat,n)}}Fl.RepeatOperator=Jl;var zl={},Ml={slice:void 0};const Zl=Vn,Hl=Ln;Ml.slice=function(n,t,e=1/0){return(0,Hl.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Hl.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Hl.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Hl.assert)(e>=t,"The parameter end must be greater than or equal to start"),(0,Zl.go)((function*(){let r=0;for(const o of n){if(r>=e)break;r>=t&&(yield o),r++}}))},zl.SliceOperator=void 0;const Yl=En,Wl=Ml,Kl=xn;class Ql extends Kl.IterableOperatorBase{slice(...n){return(0,Yl.applyChaining)(this.subject,Wl.slice,n)}}zl.SliceOperator=Ql;var Xl={},$l={};$l.splitBy=void 0,$l.splitBy=function*(n,t){let e=[],r=0;for(const o of n)t(o,r)?(yield e,e=[]):e.push(o),r++;yield e},Xl.SplitByOperator=void 0;const nf=En,tf=$l,ef=xn;class rf extends ef.IterableOperatorBase{splitBy(...n){return(0,nf.applyChaining)(this.subject,tf.splitBy,n)}}Xl.SplitByOperator=rf;var of={},af={};af.split=void 0,af.split=function*(n,t){let e=[];for(const r of n)r===t?(yield e,e=[]):e.push(r);yield e},of.SplitOperator=void 0;const cf=En,sf=af,uf=xn;class lf extends uf.IterableOperatorBase{split(...n){return(0,cf.applyChaining)(this.subject,sf.split,n)}}of.SplitOperator=lf;var ff={},yf={takeRight:void 0};const df=Vn,pf=Ln;yf.takeRight=function(n,t){return(0,pf.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,pf.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,df.go)((function*(){var e;const r=n[Symbol.iterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=r.next()),!o;)n.push(i),n.length>t&&n.shift();yield*n}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))},ff.TakeRightOperator=void 0;const hf=En,vf=yf,bf=xn;class mf extends bf.IterableOperatorBase{takeRight(...n){return(0,hf.applyChaining)(this.subject,vf.takeRight,n)}}ff.TakeRightOperator=mf;var wf={},Af={};Af.takeUntil=void 0,Af.takeUntil=function*(n,t){let e=0;for(const r of n){if(t(r,e))break;yield r,e++}},wf.TakeUntilOperator=void 0;const Sf=En,_f=Af,Of=xn;class If extends Of.IterableOperatorBase{takeUntil(...n){return(0,Sf.applyChaining)(this.subject,_f.takeUntil,n)}}wf.TakeUntilOperator=If;var gf={},xf={take:void 0};const Pf=Vn,Tf=Ln;xf.take=function(n,t){return(0,Tf.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Tf.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Pf.go)((function*(){if(0!==t)for(const e of n)if(yield e,0===--t)break}))},gf.TakeOperator=void 0;const Bf=En,jf=xf,Ef=xn;class kf extends Ef.IterableOperatorBase{take(...n){return(0,Bf.applyChaining)(this.subject,jf.take,n)}}gf.TakeOperator=kf;var Cf={},Rf={};Rf.tap=void 0,Rf.tap=function*(n,t){let e=0;for(const r of n)t(r,e),yield r,e++},Cf.TapOperator=void 0;const Uf=En,Ff=Rf,Df=xn;class qf extends Df.IterableOperatorBase{tap(...n){return(0,Uf.applyChaining)(this.subject,Ff.tap,n)}}Cf.TapOperator=qf;var Nf={},Vf={},Gf=_n&&_n.__await||function(n){return this instanceof Gf?(this.v=n,this):new Gf(n)},Lf=_n&&_n.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Gf?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Vf.toAsyncIterable=void 0,Vf.toAsyncIterable=function(n){return Lf(this,arguments,(function*(){for(const t of n)yield yield Gf(t)}))},Nf.ToAsyncIterableOperator=void 0;const Jf=En,zf=xn,Mf=Vf;class Zf extends zf.IterableOperatorBase{toAsyncIterable(...n){return(0,Jf.applyChainingAsync)(this.subject,Mf.toAsyncIterable,n)}}Nf.ToAsyncIterableOperator=Zf;var Hf={},Yf={};Yf.transform=void 0,Yf.transform=function*(n,t){yield*t(n)},Hf.TransformOperator=void 0;const Wf=En,Kf=Yf,Qf=xn;class Xf extends Qf.IterableOperatorBase{transform(...n){return(0,Wf.applyChaining)(this.subject,Kf.transform,n)}}Hf.TransformOperator=Xf;var $f={},ny={};ny.uniqBy=void 0,ny.uniqBy=function*(n,t){const e=new Set;let r=0;for(const o of n){const n=t(o,r);e.has(n)||(yield o,e.add(n)),r++}},$f.UniqByOperator=void 0;const ty=En,ey=ny,ry=xn;class oy extends ry.IterableOperatorBase{uniqBy(...n){return(0,ty.applyChaining)(this.subject,ey.uniqBy,n)}}$f.UniqByOperator=oy;var iy={},ay={};ay.uniq=void 0,ay.uniq=function*(n){const t=new Set;for(const e of n)t.has(e)||(yield e,t.add(e))},iy.UniqOperator=void 0;const cy=En,sy=ay,uy=xn;class ly extends uy.IterableOperatorBase{uniq(...n){return(0,cy.applyChaining)(this.subject,sy.uniq,n)}}iy.UniqOperator=ly;var fy={},yy={};yy.zip=void 0,yy.zip=function(n,...t){return function*(...n){const t=n.length,e=n.map((n=>n[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const n=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=e[o].next();if(i)return void(r[o]=!0);n[o]=t}yield n}}finally{e.filter(((n,t)=>!r[t])).forEach((n=>{var t;return null===(t=n.return)||void 0===t?void 0:t.call(n)}))}}(n,...t)},fy.ZipOperator=void 0;const dy=En,py=yy,hy=xn;class vy extends hy.IterableOperatorBase{zip(...n){return(0,dy.applyChaining)(this.subject,py.zip,n)}}fy.ZipOperator=vy;var by={},my={};my.each=void 0,my.each=function(n,t){let e=0;for(const r of n)t(r,e),e++},by.EachOperator=void 0;const wy=En,Ay=my,Sy=xn;class _y extends Sy.IterableOperatorBase{each(...n){return(0,wy.applyBinding)(this.subject,Ay.each,n)}}by.EachOperator=_y;var Oy={},Iy={};Iy.every=void 0,Iy.every=function(n,t){let e=0;for(const r of n){if(!t(r,e))return!1;e++}return!0},Oy.EveryOperator=void 0;const gy=En,xy=Iy,Py=xn;class Ty extends Py.IterableOperatorBase{every(...n){return(0,gy.applyBinding)(this.subject,xy.every,n)}}Oy.EveryOperator=Ty;var By={},jy={};jy.find=void 0,jy.find=function(n,t){let e=0;for(const r of n){if(t(r,e))return r;e++}},By.FindOperator=void 0;const Ey=En,ky=jy,Cy=xn;class Ry extends Cy.IterableOperatorBase{find(...n){return(0,Ey.applyBinding)(this.subject,ky.find,n)}}By.FindOperator=Ry;var Uy={},Fy={};Fy.first=void 0,Fy.first=function(n){for(const t of n)return t},Uy.FirstOperator=void 0;const Dy=En,qy=Fy,Ny=xn;class Vy extends Ny.IterableOperatorBase{first(...n){return(0,Dy.applyBinding)(this.subject,qy.first,n)}}Uy.FirstOperator=Vy;var Gy={},Ly={};Ly.includes=void 0,Ly.includes=function(n,t){for(const e of n)if(e===t)return!0;return!1},Gy.IncludesOperator=void 0;const Jy=En,zy=Ly,My=xn;class Zy extends My.IterableOperatorBase{includes(...n){return(0,Jy.applyBinding)(this.subject,zy.includes,n)}}Gy.IncludesOperator=Zy;var Hy={},Yy={};Yy.match=void 0,Yy.match=function(n,t){const e=t.length;let r=0;for(const o of n)if(o===t[r]&&r++,r===e)return!0;return!1},Hy.MatchOperator=void 0;const Wy=En,Ky=Yy,Qy=xn;class Xy extends Qy.IterableOperatorBase{match(...n){return(0,Wy.applyBinding)(this.subject,Ky.match,n)}}Hy.MatchOperator=Xy;var $y={},nd={reduce:void 0};const td=dt;nd.reduce=function(n,t,e){return(0,td.isUndefined)(e)?function(n,t){var e;const r=n[Symbol.iterator]();let o;try{let n,a=i(r),c=1;for(;({value:n,done:o}=r.next()),!o;)a=t(a,n,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(n){const t=n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(n,t):function(n,t,e){let r=e,o=0;for(const e of n)r=t(r,e,o++);return r}(n,t,e)},$y.ReduceOperator=void 0;const ed=En,rd=nd,od=xn;class id extends od.IterableOperatorBase{reduce(...n){return(0,ed.applyBinding)(this.subject,rd.reduce,n)}}$y.ReduceOperator=id;var ad={},cd={};cd.some=void 0,cd.some=function(n,t){let e=0;for(const r of n){if(t(r,e))return!0;e++}return!1},ad.SomeOperator=void 0;const sd=En,ud=cd,ld=xn;class fd extends ld.IterableOperatorBase{some(...n){return(0,sd.applyBinding)(this.subject,ud.some,n)}}ad.SomeOperator=fd;var yd={},dd={};dd.last=void 0,dd.last=function(n){var t;const e=n[Symbol.iterator]();let r;try{let n,o;for(;({value:n,done:r}=e.next()),!r;)o=n;return o}finally{r||null===(t=e.return)||void 0===t||t.call(e)}},yd.LastOperator=void 0;const pd=En,hd=dd,vd=xn;class bd extends vd.IterableOperatorBase{last(...n){return(0,pd.applyBinding)(this.subject,hd.last,n)}}yd.LastOperator=bd;var md={},wd={toArray:void 0};const Ad=Ua;wd.toArray=function(n){return(0,Ad.consume)(n,(n=>Array.from(n)))},md.ToArrayOperator=void 0;const Sd=En,_d=wd,Od=xn;class Id extends Od.IterableOperatorBase{toArray(...n){return(0,Sd.applyBinding)(this.subject,_d.toArray,n)}}md.ToArrayOperator=Id;var gd={},xd={toSet:void 0};const Pd=Ua;xd.toSet=function(n){return(0,Pd.consume)(n,(n=>new Set(n)))},gd.ToSetOperator=void 0;const Td=En,Bd=xd,jd=xn;class Ed extends jd.IterableOperatorBase{toSet(...n){return(0,Td.applyBinding)(this.subject,Bd.toSet,n)}}gd.ToSetOperator=Ed,In.IterableOperator=void 0;const kd=gn,Cd=xn,Rd=jn,Ud=bu,Fd=gu,Dd=ku,qd=Gu,Nd=Hu,Vd=el,Gd=sl,Ld=hl,Jd=Ol,zd=jl,Md=Fl,Zd=zl,Hd=Xl,Yd=of,Wd=ff,Kd=wf,Qd=gf,Xd=Cf,$d=Nf,np=Wi,tp=Hf,ep=$f,rp=iy,op=fy,ip=ft,ap=Be,cp=hr,sp=Ir,up=Qr,lp=co,fp=Ko,yp=Bi,dp=Ni,pp=pa,hp=Ia,vp=Ra,bp=by,mp=Oy,wp=By,Ap=Uy,Sp=Gy,_p=Hy,Op=$y,Ip=ad,gp=yd,xp=md,Pp=gd,Tp=Va,Bp=Wa,jp=oc,Ep=Dc,kp=Zc;class Cp extends Cd.IterableOperatorBase{}function Rp(n){return Sn(n,{childList:!0,subtree:!0}).pipe(ln((n=>new On.IterableOperator(n).map((n=>n.addedNodes)).flatten().toArray())),An((n=>n.length>0)))}function Up(n){return Sn(n,{childList:!0,subtree:!0}).pipe(ln((n=>new On.IterableOperator(n).map((n=>n.removedNodes)).flatten().toArray())),An((n=>n.length>0)))}In.IterableOperator=Cp,(0,kd.mixinDecorators)(Cp,[Ud.ChunkOperator,Rd.ChunkByOperator,Fd.ConcatOperator,Dd.DropRightOperator,qd.DropUntilOperator,Nd.DropOperator,Vd.FilterOperator,Gd.FlattenByOperator,Ld.FlattenDeepOperator,Jd.FlattenOperator,zd.MapOperator,Md.RepeatOperator,Zd.SliceOperator,Hd.SplitByOperator,Yd.SplitOperator,Wd.TakeRightOperator,Kd.TakeUntilOperator,Qd.TakeOperator,Xd.TapOperator,tp.TransformOperator,ep.UniqByOperator,rp.UniqOperator,op.ZipOperator,ip.ChunkByAsyncOperator,ap.ConcatAsyncOperator,cp.DropUntilAsyncOperator,sp.FilterAsyncOperator,up.FlattenByAsync,lp.MapAsyncOperator,fp.SplitByAsyncOperator,yp.TakeUntilAsyncOperator,dp.TapAsyncOperator,$d.ToAsyncIterableOperator,np.TransformAsyncOperator,pp.UniqByAsyncOperator,hp.ZipAsyncOperator,vp.ConsumeOperator,bp.EachOperator,mp.EveryOperator,wp.FindOperator,Ap.FirstOperator,Sp.IncludesOperator,_p.MatchOperator,Op.ReduceOperator,Ip.SomeOperator,gp.LastOperator,xp.ToArrayOperator,Pp.ToSetOperator,Tp.EachAsyncOperator,Bp.EveryAsyncOperator,jp.FindAsyncOperator,Ep.ReduceAsyncOperator,kp.SomeAsyncOperator]),function(n){var t=_n&&_n.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=_n&&_n.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(In,n),e(kn,n)}(On);const Fp=new Set,Dp=new Set;let qp=!1,Np=!1;function Vp(){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=z(n),r=M(n,1/0),o=n;return o.length?1===o.length?tn(o[0]):pn(r)(un(o,e)):L}(new R((n=>(qp||function(){const n=history.pushState;history.pushState=function(...t){Reflect.apply(n,this,t),Fp.forEach((n=>n.next()))},qp=!0}(),Fp.add(n),()=>Fp.delete(n)))),new R((n=>(Np||function(){const n=history.replaceState;history.replaceState=function(...t){Reflect.apply(n,this,t),Dp.forEach((n=>n.next()))},Np=!0}(),Dp.add(n),()=>Dp.delete(n)))),mn(window,"popstate")).pipe(ln((n=>{})))}function Gp(){let n=document.URL;return(t?V(t):G).pipe(An((()=>n!==document.URL)),function(n,t,e){var r=l(n)||t||e?{next:n,error:t,complete:e}:n;return r?F((function(n,t){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;n.subscribe(new D(t,(function(n){var e;null===(e=r.next)||void 0===e||e.call(r,n),t.next(n)}),(function(){var n;o=!1,null===(n=r.complete)||void 0===n||n.call(r),t.complete()}),(function(n){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,n),t.error(n)}),(function(){var n,t;o&&(null===(n=r.unsubscribe)||void 0===n||n.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):k}((()=>n=document.URL)),ln((()=>{})));var t}export{Rp as observeAdditionOfDescendantNodes,Up as observeRemovalOfDescendantNodes,Vp as observeStateChanges,Gp as observeUrlChanges};
15
+ var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};function n(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function e(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,c)}s((r=r.apply(t,n||[])).next())}))}function r(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function o(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function u(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function c(t){return this instanceof c?(this.v=t,this):new c(t)}function s(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||s(t,n)}))})}function s(t,n){try{(e=o[t](n)).value instanceof c?Promise.resolve(e.value.v).then(a,l):f(i[0][2],e)}catch(t){f(i[0][3],t)}var e}function a(t){s("next",t)}function l(t){s("throw",t)}function f(t,n){t(n),i.shift(),i.length&&s(i[0][0],i[0][1])}}function a(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=o(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function l(t){return"function"==typeof t}function f(t){var n=t((function(t){Error.call(t),t.stack=(new Error).stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var d=f((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function y(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var v=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var n;return t.prototype.unsubscribe=function(){var t,n,e,r,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=o(s),f=a.next();!f.done;f=a.next()){f.value.remove(this)}}catch(n){t={error:n}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var y=this.initialTeardown;if(l(y))try{y()}catch(t){c=t instanceof d?t.errors:[t]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=o(v),p=h.next();!p.done;p=h.next()){var m=p.value;try{b(m)}catch(t){c=null!=c?c:[],t instanceof d?c=u(u([],i(c)),i(t.errors)):c.push(t)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}}if(c)throw new d(c)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)b(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&y(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&y(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),h=v.EMPTY;function p(t){return t instanceof v||t&&"closed"in t&&l(t.remove)&&l(t.add)&&l(t.unsubscribe)}function b(t){l(t)?t():t.unsubscribe()}var m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,u([t,n],i(e)))};function g(t){w((function(){throw t}))}function _(){}function A(t){t()}var x=function(t){function e(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,p(n)&&n.add(e)):e.destination=T,e}return n(e,t),e.create=function(t,n,e){return new E(t,n,e)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(v),S=Function.prototype.bind;function I(t,n){return S.call(t,n)}var O=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){j(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){j(t)}else j(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){j(t)}},t}(),E=function(t){function e(n,e,r){var o,i,u=t.call(this)||this;l(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:u&&m.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return u.unsubscribe()},o={next:n.next&&I(n.next,i),error:n.error&&I(n.error,i),complete:n.complete&&I(n.complete,i)}):o=n;return u.destination=new O(o),u}return n(e,t),e}(x);function j(t){g(t)}var T={closed:!0,next:_,error:function(t){throw t},complete:_},P="function"==typeof Symbol&&Symbol.observable||"@@observable";function N(t){return t}function k(t){return 0===t.length?N:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var B=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var r,o=this,i=(r=t)&&r instanceof x||function(t){return t&&l(t.next)&&l(t.error)&&l(t.complete)}(r)&&p(r)?t:new E(t,n,e);return A((function(){var t=o,n=t.operator,e=t.source;i.add(n?n.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=q(n))((function(n,r){var o=new E({next:function(n){try{t(n)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});e.subscribe(o)}))},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[P]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return k(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=q(t))((function(t,e){var r;n.subscribe((function(t){return r=t}),(function(t){return e(t)}),(function(){return t(r)}))}))},t.create=function(n){return new t(n)},t}();function q(t){var n;return null!==(n=null!=t?t:m.Promise)&&void 0!==n?n:Promise}function F(t){return l(null==t?void 0:t.lift)}function C(t){return function(n){if(F(n))return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function M(t,n,e,r,o){return new R(t,n,e,r,o)}var R=function(t){function e(n,e,r,o,i,u){var c=t.call(this,n)||this;return c.onFinalize=i,c.shouldUnsubscribe=u,c._next=e?function(t){try{e(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=o?function(t){try{o(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return n(e,t),e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;t.prototype.unsubscribe.call(this),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}},e}(x);!function(t){function e(n,e){var r=t.call(this)||this;return r.source=n,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,F(n)&&(r.lift=n.lift),r}n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new v;var e=this.getSubject();n.add(this.source.subscribe(M(e,void 0,(function(){t._teardown(),e.complete()}),(function(n){t._teardown(),e.error(n)}),(function(){return t._teardown()})))),n.closed&&(this._connection=null,n=v.EMPTY)}return n},e.prototype.refCount=function(){return C((function(t,n){var e=null;t._refCount++;var r=M(n,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var r=t._connection,o=e;e=null,!r||o&&r!==o||r.unsubscribe(),n.unsubscribe()}}));t.subscribe(r),r.closed||(e=t.connect())}))(this)}}(B);var U={now:function(){return(U.delegate||performance).now()},delegate:void 0},z={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=n((function(n){e=void 0,t(n)}));return new v((function(){return null==e?void 0:e(r)}))},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=z.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,u([],i(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,u([],i(t)))},delegate:void 0};function D(t){var n=z.schedule;return new B((function(e){var r=new v,o=t||U,i=o.now(),u=function(c){var s=o.now();e.next({timestamp:t?s:c,elapsed:s-i}),e.closed||r.add(n(u))};return r.add(n(u)),r}))}var L=D(),J=f((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),V=function(t){function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return n(e,t),e.prototype.lift=function(t){var n=new W(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new J},e.prototype.next=function(t){var n=this;A((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=o(n.currentObservers),u=i.next();!u.done;u=i.next()){u.value.next(t)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}))},e.prototype.error=function(t){var n=this;A((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}}))},e.prototype.complete=function(){var t=this;A((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?h:(this.currentObservers=null,i.push(t),new v((function(){n.currentObservers=null,y(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new B;return t.source=this,t},e.create=function(t,n){return new W(t,n)},e}(B),W=function(t){function e(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return n(e,t),e.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},e.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},e.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},e.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:h},e}(V);!function(t){function e(n){var e=t.call(this)||this;return e._value=n,e}n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},e.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(V);var Y={now:function(){return(Y.delegate||Date).now()},delegate:void 0};!function(t){function e(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Y);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,e),o}n(e,t),e.prototype.next=function(n){var e=this,r=e.isStopped,o=e._buffer,i=e._infiniteTimeWindow,u=e._timestampProvider,c=e._windowTime;r||(o.push(n),!i&&o.push(u.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),e=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=e?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),n},e.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,e=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var u=e.now(),c=0,s=1;s<r.length&&r[s]<=u;s+=2)c=s;c&&r.splice(0,c+1)}}}(V),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}n(e,t),e.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n._hasValue,o=n._value,i=n.thrownError,u=n.isStopped,c=n._isComplete;e?t.error(i):(u||c)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var n=this,e=n._hasValue,r=n._value;n._isComplete||(this._isComplete=!0,e&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(V);var G,H=function(t){function e(n,e){return t.call(this)||this}return n(e,t),e.prototype.schedule=function(t,n){return this},e}(v),X=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,u([t,n],i(e)))},K=function(t){return clearInterval(t)},Q=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return n(e,t),e.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},e.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),X(t.flush.bind(t,this),e)},e.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;K(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var e,r=!1;try{this.work(t)}catch(t){r=!0,e=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),e},e.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,y(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(H),Z=1,$={};function tt(t){return t in $&&(delete $[t],!0)}var nt=function(t){var n=Z++;return $[n]=!0,G||(G=Promise.resolve()),G.then((function(){return tt(n)&&t()})),n},et=function(t){tt(t)},rt={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=rt.delegate;return((null==e?void 0:e.setImmediate)||nt).apply(void 0,u([],i(t)))},clearImmediate:function(t){return et(t)},delegate:void 0},ot=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=rt.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(rt.clearImmediate(e),n._scheduled=void 0)},e}(Q),it=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(e,n)},t.now=Y.now,t}(),ut=function(t){function e(n,e){void 0===e&&(e=it.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return n(e,t),e.prototype.flush=function(t){var n=this.actions;if(this._active)n.push(t);else{var e;this._active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},e}(it);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(ut))(ot),new ut(Q);var ct=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},e.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,r):n.flush(this)},e}(Q);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(ut))(ct);var st=function(t){function e(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return n(e,t),e.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=z.requestAnimationFrame((function(){return n.flush(void 0)}))))},e.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(z.cancelAnimationFrame(e),n._scheduled=void 0)},e}(Q);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},e}(ut))(st),function(t){function e(n,e){void 0===n&&(n=at),void 0===e&&(e=1/0);var r=t.call(this,n,(function(){return r.frame}))||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}n(e,t),e.prototype.flush=function(){for(var t,n,e=this.actions,r=this.maxFrames;(n=e[0])&&n.delay<=r&&(e.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=e.shift();)n.unsubscribe();throw t}},e.frameTimeFactor=10}(ut);var at=function(t){function e(n,e,r){void 0===r&&(r=n.index+=1);var o=t.call(this,n,e)||this;return o.scheduler=n,o.work=e,o.index=r,o.active=!0,o.index=n.index=r,o}return n(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return v.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,e){},e.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(Q),lt=new B((function(t){return t.complete()}));function ft(t){return t[t.length-1]}function dt(t){return(n=ft(t))&&l(n.schedule)?t.pop():void 0;var n}function yt(t,n){return"number"==typeof ft(t)?t.pop():n}var vt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function ht(t){return l(null==t?void 0:t.then)}function pt(t){return l(t[P])}function bt(t){return Symbol.asyncIterator&&l(null==t?void 0:t[Symbol.asyncIterator])}function mt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var wt,gt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function _t(t){return l(null==t?void 0:t[gt])}function At(t){return s(this,arguments,(function(){var n,e,o;return r(this,(function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,c(n.read())];case 3:return e=r.sent(),o=e.value,e.done?[4,c(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,c(o)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function xt(t){return l(null==t?void 0:t.getReader)}function St(t){if(t instanceof B)return t;if(null!=t){if(pt(t))return n=t,new B((function(t){var e=n[P]();if(l(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(vt(t))return function(t){return new B((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(ht(t))return function(t){return new B((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,g)}))}(t);if(bt(t))return It(t);if(_t(t))return function(t){return new B((function(n){var e,r;try{for(var i=o(t),u=i.next();!u.done;u=i.next()){var c=u.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}n.complete()}))}(t);if(xt(t))return It(At(t))}var n;throw mt(t)}function It(t){return new B((function(n){(function(t,n){var o,i,u,c;return e(this,void 0,void 0,(function(){var e,s;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=a(t),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(e=i.value,n.next(e),n.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=r.sent(),u={error:s},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(c=o.return)?[4,c.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(t,n).catch((function(t){return n.error(t)}))}))}function Ot(t,n,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=n.schedule((function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(i),!o)return i}function Et(t,n){return void 0===n&&(n=0),C((function(e,r){e.subscribe(M(r,(function(e){return Ot(r,t,(function(){return r.next(e)}),n)}),(function(){return Ot(r,t,(function(){return r.complete()}),n)}),(function(e){return Ot(r,t,(function(){return r.error(e)}),n)})))}))}function jt(t,n){return void 0===n&&(n=0),C((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function Tt(t,n){if(!t)throw new Error("Iterable cannot be null");return new B((function(e){Ot(e,n,(function(){var r=t[Symbol.asyncIterator]();Ot(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function Pt(t,n){if(null!=t){if(pt(t))return function(t,n){return St(t).pipe(jt(n),Et(n))}(t,n);if(vt(t))return function(t,n){return new B((function(e){var r=0;return n.schedule((function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())}))}))}(t,n);if(ht(t))return function(t,n){return St(t).pipe(jt(n),Et(n))}(t,n);if(bt(t))return Tt(t,n);if(_t(t))return function(t,n){return new B((function(e){var r;return Ot(e,n,(function(){r=t[gt](),Ot(e,n,(function(){var t,n,o;try{n=(t=r.next()).value,o=t.done}catch(t){return void e.error(t)}o?e.complete():e.next(n)}),0,!0)})),function(){return l(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(xt(t))return function(t,n){return Tt(At(t),n)}(t,n)}throw mt(t)}function Nt(t,n){return n?Pt(t,n):St(t)}function kt(t,n){return C((function(e,r){var o=0;e.subscribe(M(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(wt||(wt={})),f((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),f((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),f((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),f((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),f((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var Bt=Array.isArray;function qt(t){return kt((function(n){return function(t,n){return Bt(n)?t.apply(void 0,u([],i(n))):t(n)}(t,n)}))}function Ft(t,n,e){return void 0===e&&(e=1/0),l(n)?Ft((function(e,r){return kt((function(t,o){return n(e,t,r,o)}))(St(t(e,r)))}),e):("number"==typeof n&&(e=n),C((function(n,r){return function(t,n,e,r,o,i,u,c){var s=[],a=0,l=0,f=!1,d=function(){!f||s.length||a||n.complete()},y=function(t){return a<r?v(t):s.push(t)},v=function(t){i&&n.next(t),a++;var c=!1;St(e(t,l++)).subscribe(M(n,(function(t){null==o||o(t),i?y(t):n.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{a--;for(var t=function(){var t=s.shift();u?Ot(n,u,(function(){return v(t)})):v(t)};s.length&&a<r;)t();d()}catch(t){n.error(t)}})))};return t.subscribe(M(n,y,(function(){f=!0,d()}))),function(){null==c||c()}}(n,r,t,e)})))}function Ct(t){return void 0===t&&(t=1/0),Ft(N,t)}var Mt=["addListener","removeListener"],Rt=["addEventListener","removeEventListener"],Ut=["on","off"];function zt(t,n,e,r){if(l(e)&&(r=e,e=void 0),r)return zt(t,n,e).pipe(qt(r));var o=i(function(t){return l(t.addEventListener)&&l(t.removeEventListener)}(t)?Rt.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return l(t.addListener)&&l(t.removeListener)}(t)?Mt.map(Dt(t,n)):function(t){return l(t.on)&&l(t.off)}(t)?Ut.map(Dt(t,n)):[],2),u=o[0],c=o[1];if(!u&&vt(t))return Ft((function(t){return zt(t,n,e)}))(St(t));if(!u)throw new TypeError("Invalid event target");return new B((function(t){var n=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1<n.length?n:n[0])};return u(n),function(){return c(n)}}))}function Dt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Lt(t,n){return C((function(e,r){var o=0;e.subscribe(M(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Jt(...t){return new B((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new B(_);var Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wt={},Yt={},Gt={},Ht={},Xt={};Xt.go=void 0,Xt.go=function(t){return t()};var Kt={};Kt.goMicrotask=void 0,Kt.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var Qt={},Zt={},$t={},tn={},nn={};nn.random=void 0,nn.random=function(t,n){return Math.random()*(n-t)+t};var en={};en.randomInt=void 0,en.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var rn,on,un,cn={};cn.randomIntInclusive=void 0,cn.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},rn=tn,on=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),(un=Vt&&Vt.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||on(n,t,e)})(nn,rn),un(en,rn),un(cn,rn),$t.calculateExponentialBackoffTimeout=void 0;const sn=tn;$t.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,sn.randomIntInclusive)(0,i):i};var an={};an.setTimeout=void 0,an.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var ln={setSchedule:void 0};const fn=an;ln.setSchedule=function(t,n){const e=t-Date.now();return(0,fn.setTimeout)(e,n)};var dn={};dn.setInterval=void 0,dn.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var yn={setImmediate:void 0};const vn=an;yn.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,vn.setTimeout)(0,t)};var hn={setTimeoutLoop:void 0};const pn=an;hn.setTimeoutLoop=function(t,n){let e=!1,r=(0,pn.setTimeout)(t,(async function o(){await n(),e||(r=(0,pn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var bn={setDynamicTimeoutLoop:void 0};const mn=an;bn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,mn.setTimeout)(t,(async function o(){const i=Date.now();await n();const u=Date.now()-i;e||(r=(0,mn.setTimeout)(Math.max(t-u,0),o))}));return()=>{e=!0,r()}},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e($t,t),e(an,t),e(ln,t),e(dn,t),e(yn,t),e(hn,t),e(bn,t)}(Zt),Qt.goMacrotask=void 0;const wn=Zt;Qt.goMacrotask=function(t){return new Promise(((n,e)=>{(0,wn.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Xt,t),e(Kt,t),e(Qt,t)}(Ht);var gn={},_n={},An={},xn={},Sn={};function In(t){return Array.isArray(t)}Sn.isntEmptyArray=Sn.isEmptyArray=Sn.isntArray=Sn.isArray=void 0,Sn.isArray=In,Sn.isntArray=function(t){return!In(t)},Sn.isEmptyArray=function(t){return 0===t.length},Sn.isntEmptyArray=function(t){return 0!==t.length};var On={},En={};function jn(t){return null===t}En.isntNull=En.isNull=void 0,En.isNull=jn,En.isntNull=function(t){return!jn(t)};var Tn={};function Pn(t){return void 0===t}Tn.isntUndefined=Tn.isUndefined=void 0,Tn.isUndefined=Pn,Tn.isntUndefined=function(t){return!Pn(t)};var Nn={};function kn(t){return"function"==typeof t}Nn.isntFunction=Nn.isFunction=void 0,Nn.isFunction=kn,Nn.isntFunction=function(t){return!kn(t)},On.isntAsyncIterable=On.isAsyncIterable=void 0;const Bn=En,qn=Tn,Fn=Nn;function Cn(t){return(0,Bn.isntNull)(t)&&(0,qn.isntUndefined)(t)&&(0,Fn.isFunction)(t[Symbol.asyncIterator])}On.isAsyncIterable=Cn,On.isntAsyncIterable=function(t){return!Cn(t)};var Mn={};function Rn(t){return"bigint"==typeof t}Mn.isntBigInt=Mn.isBigInt=void 0,Mn.isBigInt=Rn,Mn.isntBigInt=function(t){return!Rn(t)};var Un={};function zn(t){return"boolean"==typeof t}Un.isntBoolean=Un.isBoolean=void 0,Un.isBoolean=zn,Un.isntBoolean=function(t){return!zn(t)};var Dn={},Ln={};function Jn(t){return"string"==typeof t}Ln.isntString=Ln.isString=void 0,Ln.isString=Jn,Ln.isntString=function(t){return!Jn(t)},Dn.isntChar=Dn.isChar=void 0;const Vn=Ln;function Wn(t){return(0,Vn.isString)(t)&&1===t.length}Dn.isChar=Wn,Dn.isntChar=function(t){return!Wn(t)};var Yn={};function Gn(t){return t instanceof Date}Yn.isntDate=Yn.isDate=void 0,Yn.isDate=Gn,Yn.isntDate=function(t){return!Gn(t)};var Hn={};Hn.inEnum=void 0,Hn.inEnum=function(t,n){return Object.values(n).includes(t)};var Xn={};function Kn(t){return t instanceof Error}Xn.isntError=Xn.isError=void 0,Xn.isError=Kn,Xn.isntError=function(t){return!Kn(t)};var Qn={};function Zn(t){return!t}Qn.isntFalsy=Qn.isFalsy=void 0,Qn.isFalsy=Zn,Qn.isntFalsy=function(t){return!Zn(t)};var $n={};$n.isntIterable=$n.isIterable=void 0;const te=En,ne=Tn,ee=Nn;function re(t){return(0,te.isntNull)(t)&&(0,ne.isntUndefined)(t)&&(0,ee.isFunction)(t[Symbol.iterator])}$n.isIterable=re,$n.isntIterable=function(t){return!re(t)};var oe={},ie={};function ue(t){return"number"==typeof t}function ce(t){return Number.isNaN(t)}ie.isntNaN=ie.isNaN=ie.isNegativeInfinity=ie.isPositiveInfinity=ie.isFinite=ie.isntNumber=ie.isNumber=void 0,ie.isNumber=ue,ie.isntNumber=function(t){return!ue(t)},ie.isFinite=function(t){return Number.isFinite(t)},ie.isPositiveInfinity=function(t){return t===1/0},ie.isNegativeInfinity=function(t){return t===-1/0},ie.isNaN=ce,ie.isntNaN=function(t){return!ce(t)};var se={},ae="object"==typeof Vt&&Vt&&Vt.Object===Object&&Vt,le="object"==typeof self&&self&&self.Object===Object&&self,fe=(ae||le||Function("return this")()).Symbol,de=fe,ye=Object.prototype,ve=ye.hasOwnProperty,he=ye.toString,pe=de?de.toStringTag:void 0;var be=function(t){var n=ve.call(t,pe),e=t[pe];try{t[pe]=void 0;var r=!0}catch(t){}var o=he.call(t);return r&&(n?t[pe]=e:delete t[pe]),o},me=Object.prototype.toString;var we=be,ge=function(t){return me.call(t)},_e=fe?fe.toStringTag:void 0;var Ae=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":_e&&_e in Object(t)?we(t):ge(t)};var xe=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Se=Ae,Ie=xe,Oe=function(t){return null!=t&&"object"==typeof t},Ee=Function.prototype,je=Object.prototype,Te=Ee.toString,Pe=je.hasOwnProperty,Ne=Te.call(Object);var ke=function(t){if(!Oe(t)||"[object Object]"!=Se(t))return!1;var n=Ie(t);if(null===n)return!0;var e=Pe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Te.call(e)==Ne},Be=Vt&&Vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};se.isntEmptyObject=se.isEmptyObject=se.isntPlainObject=se.isPlainObject=se.isntObject=se.isObject=void 0;const qe=Be(ke);function Fe(t){return null!==t&&"object"==typeof t}function Ce(t){return(0,qe.default)(t)}se.isObject=Fe,se.isntObject=function(t){return!Fe(t)},se.isPlainObject=Ce,se.isntPlainObject=function(t){return!Ce(t)},se.isEmptyObject=function(t){return 0===Object.keys(t).length},se.isntEmptyObject=function(t){return 0!==Object.keys(t).length},oe.isntJsonable=oe.isJsonable=oe.isntJson=oe.isJson=void 0;const Me=En,Re=Un,Ue=Ln,ze=ie,De=Sn,Le=se;function Je(t){return(0,Me.isNull)(t)||(0,Re.isBoolean)(t)||(0,Ue.isString)(t)||(0,ze.isNumber)(t)||(0,De.isArray)(t)&&t.every(Je)||(0,Le.isPlainObject)(t)&&Object.values(t).every(Je)}oe.isJson=Je,oe.isntJson=function(t){return!Je(t)},oe.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},oe.isntJsonable=function t(n){return!t()};var Ve={};Ve.isntNullish=Ve.isNullish=void 0;const We=En,Ye=Tn;function Ge(t){return(0,We.isNull)(t)||(0,Ye.isUndefined)(t)}Ve.isNullish=Ge,Ve.isntNullish=function(t){return!Ge(t)};var He={};He.isPromiseLike=He.isntPromiseLike=He.isntPromise=He.isPromise=void 0;const Xe=se,Ke=Nn;function Qe(t){return t instanceof Promise}function Ze(t){return(0,Xe.isObject)(t)&&(0,Ke.isFunction)(t.then)}He.isPromise=Qe,He.isntPromise=function(t){return!Qe(t)},He.isntPromiseLike=function(t){return!Ze(t)},He.isPromiseLike=Ze;var $e={};$e.isAbsoluteURL=void 0,$e.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var tr={};function nr(t){return t instanceof RegExp}tr.isntRegExp=tr.isRegExp=void 0,tr.isRegExp=nr,tr.isntRegExp=function(t){return!nr(t)};var er={};function rr(t){return"symbol"==typeof t}er.isntSymbol=er.isSymbol=void 0,er.isSymbol=rr,er.isntSymbol=function(t){return!rr(t)},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Sn,t),e(On,t),e(Mn,t),e(Un,t),e(Dn,t),e(Yn,t),e(Hn,t),e(Xn,t),e(Qn,t),e(Nn,t),e($n,t),e(oe,t),e(En,t),e(Ve,t),e(ie,t),e(se,t),e(He,t),e(Ln,t),e(Tn,t),e($e,t),e(tr,t),e(er,t)}(xn);var or={};or.traverseErrorPrototypeChain=void 0,or.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},An.getErrorNames=void 0;const ir=xn,ur=or;An.getErrorNames=function*(t){var n;if((0,ir.isError)(t))for(const e of(0,ur.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var cr={isSerializableError:void 0};const sr=xn;var ar;function lr(){if(ar)return _n;ar=1,_n.CustomError=void 0;const t=nu(),n=An,e=xn,r=cr;class o extends Error{get name(){var e,r;return null!==(r=null!==(e=(0,t.first)((0,n.getErrorNames)(this)))&&void 0!==e?e:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,e.isError)(o)||(0,r.isSerializableError)(o)){const e=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,n.getErrorNames)(this.prototype)].reverse(),r=(0,t.toArray)((0,n.getErrorNames)(o)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}return _n.CustomError=o,_n}cr.isSerializableError=function(t){return(0,sr.isObject)(t)&&(0,sr.isString)(t.name)&&(0,sr.isString)(t.message)&&((0,sr.isString)(t.stack)||(0,sr.isNull)(t.stack))&&(0,sr.isArray)(t.ancestors)&&t.ancestors.every(sr.isString)};var fr,dr={};function yr(){if(fr)return dr;fr=1,dr.AssertionError=void 0;const t=lr();class n extends t.CustomError{}return dr.AssertionError=n,dr}var vr,hr={};var pr={},br={},mr={};mr.pass=void 0,mr.pass=function(){},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(mr,t)}(br),pr.hydrate=void 0;const wr=br;function gr(t,n){const e=function(){(0,wr.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}pr.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=gr(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var _r,Ar,xr,Sr={};function Ir(){return Ar||(Ar=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(lr(),t),e(yr(),t),e(cr,t),e(function(){if(vr)return hr;vr=1,hr.normalize=void 0;const t=An,n=nu();return hr.normalize=function(e){var r;const[o,...i]=(0,n.toArray)((0,t.getErrorNames)(e));return{name:o,ancestors:i,message:e.message,stack:null!==(r=e.stack)&&void 0!==r?r:null}},hr}(),t),e(pr,t),e(function(){if(_r)return Sr;_r=1,Sr.assert=void 0;const t=yr();return Sr.assert=function(n,e){if(!n)throw new t.AssertionError(e)},Sr}(),t),e(An,t),e(or,t)}(gn)),gn}var Or={chunkByAsync:void 0};const Er=xn;Or.chunkByAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var jr={};jr.chunkBy=void 0,jr.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var Tr,Pr={};var Nr={concatAsync:void 0};const kr=xn,Br=Ht;Nr.concatAsync=function(t,...n){return(0,Br.go)((async function*(){for(const e of[t,...n])if((0,kr.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var qr={concat:void 0};const Fr=Ht;qr.concat=function(t,...n){return(0,Fr.go)((function*(){for(const e of[t,...n])yield*e}))};var Cr={},Mr={filterAsync:void 0};const Rr=xn;Mr.filterAsync=function(t,n){return(0,Rr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Ur={};Ur.toSetAsync=void 0,Ur.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Cr.differenceAsync=void 0;const zr=Mr,Dr=Ur;Cr.differenceAsync=async function*(t,n){const e=await(0,Dr.toSetAsync)(n);yield*(0,zr.filterAsync)(t,(async t=>!e.has(await t)))};var Lr={},Jr={};Jr.filter=void 0,Jr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Vr={};Vr.toSet=void 0,Vr.toSet=function(t){return new Set(t)},Lr.difference=void 0;const Wr=Jr,Yr=Vr;Lr.difference=function(t,n){const e=(0,Yr.toSet)(n);return(0,Wr.filter)(t,(t=>!e.has(t)))};var Gr,Hr={},Xr={};Xr.copyIterable=Xr.copyAsyncIterable=void 0,Xr.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Xr.copyIterable=function*(t){for(const n of t)yield n};var Kr,Qr={},Zr={};Zr.toArrayAsync=void 0,Zr.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n};var $r,to={};var no={dropUntilAsync:void 0};const eo=xn;no.dropUntilAsync=function(t,n){return(0,eo.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var ro={};ro.dropUntil=void 0,ro.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var oo,io={};var uo={},co={},so={flattenByAsync:void 0};const ao=xn;async function*lo(t,n,e){for(const r of t)fo(r)&&await n(r,e)?yield*lo(r,n,e+1):yield r}function fo(t){return(0,ao.isIterable)(t)&&(0,ao.isntChar)(t)}var yo,vo;function ho(){if(yo)return co;yo=1,co.flattenDeepAsync=void 0;const t=so,n=Ir();return co.flattenDeepAsync=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(e,((t,n)=>n<=r))},co}so.flattenByAsync=function(t,n){return(0,ao.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)fo(r)&&await n(r,e)?yield*lo(r,n,e+1):yield r}(t,n):function(t,n){return lo(t,n,1)}(t,n)};var po={flattenBy:void 0};const bo=xn;function*mo(t,n,e){for(const o of t)(0,bo.isIterable)(r=o)&&(0,bo.isntChar)(r)&&n(o,e)?yield*mo(o,n,e+1):yield o;var r}po.flattenBy=function(t,n){return mo(t,n,1)};var wo,go={};function _o(){if(wo)return go;wo=1,go.flattenDeep=void 0;const t=po,n=Ir();return go.flattenDeep=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(e,((t,n)=>n<=r))},go}var Ao,xo={};var So={intersectionAsync:void 0};const Io=Mr,Oo=Ur;So.intersectionAsync=async function*(t,n){const e=await(0,Oo.toSetAsync)(n);yield*(0,Io.filterAsync)(t,(async t=>e.has(await t)))};var Eo={intersection:void 0};const jo=Jr,To=Vr;Eo.intersection=function(t,n){const e=(0,To.toSet)(n);return(0,jo.filter)(t,(t=>e.has(t)))};var Po={mapAsync:void 0};const No=xn;Po.mapAsync=function(t,n){return(0,No.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var ko={};ko.map=void 0,ko.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Bo,qo={};function Fo(){if(Bo)return qo;Bo=1,qo.repeatAsync=void 0;const t=Ht,n=Ir();return qo.repeatAsync=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===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,t.go)((async function*(){const t=[];if(r>0){for await(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},qo}var Co,Mo={};function Ro(){if(Co)return Mo;Co=1,Mo.repeat=void 0;const t=Ht,n=Ir();return Mo.repeat=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===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,t.go)((function*(){const t=[];if(r>0){for(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},Mo}var Uo,zo={};var Do,Lo={};var Jo={};Jo.splitAsync=void 0,Jo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Vo={splitByAsync:void 0};const Wo=xn;Vo.splitByAsync=function(t,n){return(0,Wo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Yo={};Yo.splitBy=void 0,Yo.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Go={};Go.split=void 0,Go.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Ho,Xo={};var Ko,Qo={};var Zo,$o={};var ti={takeUntilAsync:void 0};const ni=xn;ti.takeUntilAsync=function(t,n){return(0,ni.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ei={};ei.takeUntil=void 0,ei.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var ri,oi={};var ii={tapAsync:void 0};const ui=xn;ii.tapAsync=function(t,n){return(0,ui.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var ci={};ci.tap=void 0,ci.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var si={};si.toAsyncIterable=void 0,si.toAsyncIterable=async function*(t){for(const n of t)yield await n};var ai={};ai.transformAsync=void 0,ai.transformAsync=async function*(t,n){yield*n(t)};var li={};li.transform=void 0,li.transform=function*(t,n){yield*n(t)};var fi={};fi.uniqAsync=void 0,fi.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var di={uniqByAsync:void 0};const yi=xn;di.uniqByAsync=function(t,n){return(0,yi.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var vi={};vi.uniqBy=void 0,vi.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var hi={};hi.uniq=void 0,hi.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var pi={zipAsync:void 0};const bi=xn;var mi;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(mi||(mi={})),pi.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,u=t.map((t=>(0,bi.isAsyncIterable)(t)?[mi.Async,t[Symbol.asyncIterator]()]:[mi.Sync,t[Symbol.iterator]()])),c=u.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=u[n];let o;if(o=e===mi.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=await o.value}yield t}}finally{const t=u.filter(((t,n)=>!c[n]));for(const[i,u]of t)i===mi.Async?await(null===(e=(n=u).return)||void 0===e?void 0:e.call(n)):null===(o=(r=u).return)||void 0===o||o.call(r)}}(t,...n)};var wi,gi={};function _i(){return wi||(wi=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(xr)return Gt;xr=1,Gt.chunkAsync=void 0;const t=Ht,n=Ir();return Gt.chunkAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Gt}(),t),e(Or,t),e(jr,t),e(function(){if(Tr)return Pr;Tr=1,Pr.chunk=void 0;const t=Ht,n=Ir();return Pr.chunk=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Pr}(),t),e(Nr,t),e(qr,t),e(Cr,t),e(Lr,t),e(function(){if(Gr)return Hr;Gr=1,Hr.dropAsync=void 0;const t=Ht,n=Xr,e=Ir();return Hr.dropAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const n=r[Symbol.asyncIterator]();let e;try{let r;for(;({value:r,done:e}=await n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=await n.next())}finally{e||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Hr}(),t),e(function(){if(Kr)return Qr;Kr=1,Qr.dropRightAsync=void 0;const t=Ht,n=Xr,e=Ir(),r=Zr;return Qr.dropRightAsync=function(o,i){return(0,e.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,e.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,n.copyAsyncIterable)(o):(0,t.go)((async function*(){const t=(await(0,r.toArrayAsync)(o)).slice(0,-i);for(const n of t)yield n}))},Qr}(),t),e(function(){if($r)return to;$r=1,to.dropRight=void 0;const t=Ht,n=Xr,e=Ir();return to.dropRight=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-o)}))},to}(),t),e(no,t),e(ro,t),e(function(){if(oo)return io;oo=1,io.drop=void 0;const t=Ht,n=Xr,e=Ir();return io.drop=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){var t;const n=r[Symbol.iterator]();let e;try{let r;for(;({value:r,done:e}=n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=n.next())}finally{e||null===(t=n.return)||void 0===t||t.call(n)}}))},io}(),t),e(Mr,t),e(Jr,t),e(function(){if(vo)return uo;vo=1,uo.flattenAsync=void 0;const t=ho();return uo.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},uo}(),t),e(so,t),e(po,t),e(ho(),t),e(_o(),t),e(function(){if(Ao)return xo;Ao=1,xo.flatten=void 0;const t=_o();return xo.flatten=function(n){return(0,t.flattenDeep)(n,1)},xo}(),t),e(So,t),e(Eo,t),e(Po,t),e(ko,t),e(Fo(),t),e(Ro(),t),e(function(){if(Uo)return zo;Uo=1,zo.sliceAsync=void 0;const t=Ht,n=Ir();return zo.sliceAsync=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},zo}(),t),e(function(){if(Do)return Lo;Do=1,Lo.slice=void 0;const t=Ht,n=Ir();return Lo.slice=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},Lo}(),t),e(Jo,t),e(Vo,t),e(Yo,t),e(Go,t),e(function(){if(Ho)return Xo;Ho=1,Xo.takeAsync=void 0;const t=Ht,n=Ir();return Xo.takeAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of e)if(yield t,0==--r)break}))},Xo}(),t),e(function(){if(Ko)return Qo;Ko=1,Qo.takeRightAsync=void 0;const t=Ht,n=Ir();return Qo.takeRightAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const n=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Qo}(),t),e(function(){if(Zo)return $o;Zo=1,$o.takeRight=void 0;const t=Ht,n=Ir();return $o.takeRight=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const n=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||null===(t=n.return)||void 0===t||t.call(n)}}))},$o}(),t),e(ti,t),e(ei,t),e(function(){if(ri)return oi;ri=1,oi.take=void 0;const t=Ht,n=Ir();return oi.take=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of e)if(yield t,0==--r)break}))},oi}(),t),e(ii,t),e(ci,t),e(si,t),e(ai,t),e(li,t),e(fi,t),e(di,t),e(vi,t),e(hi,t),e(pi,t),e(gi,t)}(Yt)),Yt}gi.zip=void 0,gi.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Ai={},xi={};xi.consume=void 0,xi.consume=function(t,n){return n(t)};var Si={};Si.consumeAsync=void 0,Si.consumeAsync=async function(t,n){return await n(t)};var Ii={eachAsync:void 0};const Oi=xn;Ii.eachAsync=function(t,n){return(0,Oi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var Ei={};Ei.each=void 0,Ei.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var ji={everyAsync:void 0};const Ti=xn;ji.everyAsync=function(t,n){return(0,Ti.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var Pi={};Pi.every=void 0,Pi.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ni={findAsync:void 0};const ki=xn;Ni.findAsync=function(t,n){return(0,ki.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Bi={};Bi.find=void 0,Bi.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var qi={};qi.firstAsync=void 0,qi.firstAsync=async function(t){for await(const n of t)return n};var Fi={};Fi.first=void 0,Fi.first=function(t){for(const n of t)return n};var Ci={};Ci.includesAsync=void 0,Ci.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Mi={};Mi.includes=void 0,Mi.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Ri={reduceAsync:void 0};const Ui=xn;Ri.reduceAsync=function(t,n,e){return(0,Ui.isUndefined)(e)?function(t,n){return(0,Ui.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,u=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)u=await n(u,t,c++);return u}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=await n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ui.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var zi={reduce:void 0};const Di=xn;zi.reduce=function(t,n,e){return(0,Di.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var Li={someAsync:void 0};const Ji=xn;Li.someAsync=function(t,n){return(0,Ji.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Vi={};Vi.some=void 0,Vi.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Wi={};Wi.lastAsync=void 0,Wi.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Yi={};Yi.last=void 0,Yi.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Gi={};Gi.toArray=void 0,Gi.toArray=function(t){return Array.from(t)};var Hi={};Hi.count=void 0,Hi.count=function(t){let n=0;for(const e of t)n++;return n};var Xi={};Xi.countAsync=void 0,Xi.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Ki={groupBy:void 0};const Qi=Ei;Ki.groupBy=function(t,n){const e=new Map;return(0,Qi.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Zi={groupByAsync:void 0};const $i=Ii;var tu;function nu(){return tu||(tu=1,function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(_i(),t),e(Ai,t)}(Wt)),Wt}Zi.groupByAsync=async function(t,n){const e=new Map;return await(0,$i.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Vt&&Vt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Vt&&Vt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(xi,t),e(Si,t),e(Ii,t),e(Ei,t),e(ji,t),e(Pi,t),e(Ni,t),e(Bi,t),e(qi,t),e(Fi,t),e(Ci,t),e(Mi,t),e(Ri,t),e(zi,t),e(Li,t),e(Vi,t),e(Wi,t),e(Yi,t),e(Zr,t),e(Gi,t),e(Ur,t),e(Vr,t),e(Hi,t),e(Xi,t),e(Ki,t),e(Zi,t)}(Ai);var eu=nu();function ru(t){return Jt(t,{childList:!0,subtree:!0}).pipe(kt((t=>eu.toArray(eu.flatten(eu.map(t,(t=>t.addedNodes)))))),Lt((t=>t.length>0)))}function ou(t){return Jt(t,{childList:!0,subtree:!0}).pipe(kt((t=>eu.toArray(eu.flatten(eu.map(t,(t=>t.removedNodes)))))),Lt((t=>t.length>0)))}const iu=new Set,uu=new Set;let cu=!1,su=!1;function au(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=dt(t),r=yt(t,1/0),o=t;return o.length?1===o.length?St(o[0]):Ct(r)(Nt(o,e)):lt}(new B((t=>(cu||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),iu.forEach((t=>t.next()))},cu=!0}(),iu.add(t),()=>iu.delete(t)))),new B((t=>(su||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),uu.forEach((t=>t.next()))},su=!0}(),uu.add(t),()=>uu.delete(t)))),zt(window,"popstate")).pipe(kt((t=>{})))}function lu(){let t=document.URL;return(n?D(n):L).pipe(Lt((()=>t!==document.URL)),function(t,n,e){var r=l(t)||n||e?{next:t,error:n,complete:e}:t;return r?C((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(M(n,(function(t){var e;null===(e=r.next)||void 0===e||e.call(r,t),n.next(t)}),(function(){var t;o=!1,null===(t=r.complete)||void 0===t||t.call(r),n.complete()}),(function(t){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,t),n.error(t)}),(function(){var t,n;o&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(n=r.finalize)||void 0===n||n.call(r)})))})):N}((()=>t=document.URL)),kt((()=>{})));var n}export{ru as observeAdditionOfDescendantNodes,ou as observeRemovalOfDescendantNodes,au as observeStateChanges,lu as observeUrlChanges};
16
16
  //# sourceMappingURL=index.min.mjs.map